PageSourceSearch

https://www.bike-magazin.de/_next/static/chunks/pages/_app-3e43dc8bcdc6e0c9.js

js bike-magazin.de collected 2026-09-24 19:40:50 UTC 403,209 bytes, 249 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90636],{683:(e,t,r)=>{"use strict";let i;r.r(t),r.d(t,{getActive:()=>s,getAuthorFallbackImage:()=>u,getByPortal:()=>o,getFallbackImage:()=>l,getSample:()=>c,setActive:()=>a});var n=r(29143);let s=()=>n?.env?.ACTIVE_CONFIG_PARSED&&"object"==typeof n?.env?.ACTIVE_CONFIG_PARSED?n?.env?.ACTIVE_CONFIG_PARSED:i,a=e=>{i=e},o=async e=>(Array.isArray(e)&&(e=e[0]),(await r(7971)("./"+e)).default()),l=()=>{let e=s()?.env?.FALLBACK_IMAGE_ID;return e?{public_id:e}:null},u=()=>{let e=s()?.env?.AUTHOR_FALLBACK_IMAGE_ID;return e?{public_id:e}:null},c=(e,t={})=>({__is_sample:!0,__is_sample_type:e,__is_sample_options:t})},4212:(e,t,r)=>{"use strict";r.d(t,{EQ:()=>u,LG:()=>l,sK:()=>a});var i=r(6029),n=r(55729),s=r(61813);let a=(0,n.createContext)(!1),o={Startseite:"HP",Model:"Modell"},l=e=>{let{marfeelPageType:t,marfeelRecirculationPrefix:r}=(0,n.useContext)(s.f);if(!e)return null;let i=r||o[t]||t;return i?`${i} ${e}`:e},u=({children:e})=>{let t=e?.props?.attributes,r=l(t?.upscoreZone);return r?(0,i.jsx)(a.Provider,{value:!0,children:(0,i.jsx)("div",{"data-mrf-recirculation":r,children:e})}):e}},4954:(e,t,r)=>{"use strict";r.d(t,{E:()=>n});var i=r(55729);function n(e,t){return"u"<typeof window?(0,i.useEffect)(e,t):(0,i.useLayoutEffect)(e,t)}},5640:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n,defaultSamples:()=>i});let i={images:"storybook",image:"storybook"};function n(e,t=!1){if(e.defaultArgs={roundedEdges:!1,mouseOverEffect:"none",...e.defaultArgs||{}},e.styles={roundedEdges:!1,hasTextShadow:!1,mouseOverEffect:"none",...e.styles||{}},e.env={PORTAL:e.id,...e.env},t)for(let t in e.samples={...i,...e.samples||{}},e.samples)"function"==typeof e.samples&&(e.samples[t]=e.samples[t].bind(null,e));else delete e.samples;return e}},6772:(e,t,r)=>{e.exports=r(85512)},7203:(e,t,r)=>{"use strict";e.exports=r(65675)},7881:(e,t,r)=>{"use strict";r.d(t,{Q:()=>i});class i{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){let t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},7971:(e,t,r)=>{var i={"./":[683,9],"./BIKE":[74216,9],"./BIKE.js":[74216,9],"./BOEX":[12259,9,12259],"./BOEX.js":[12259,9,12259],"./BOOT":[74393,9,74393],"./BOOT.js":[74393,9,74393],"./DK-EVENTS":[32430,9,32430],"./DK-EVENTS.js":[32430,9,32430],"./DK-SHOP":[15355,9,15355],"./DK-SHOP.js":[15355,9,15355],"./DK-WEB":[93011,9,93011],"./DK-WEB.js":[93011,9,93011],"./DKEVENTS":[67441,9,67441],"./DKEVENTS.js":[67441,9,67441],"./DKSHOP":[71560,9,71560],"./DKSHOP.js":[71560,9,71560],"./GUTEFAHRT":[18983,9,18983],"./GUTEFAHRT.js":[18983,9,18983],"./MEDIASALES":[32513,9,32513],"./MEDIASALES.js":[32513,9,32513],"./MOD":[72675,9,72675],"./MOD.js":[72675,9,72675],"./MYBIKE":[92286,9,92286],"./MYBIKE.js":[92286,9,92286],"./PORSCHEFAHRER":[96187,9,96187],"./PORSCHEFAHRER.js":[96187,9,96187],"./RADFAHREN":[31192,9,31192],"./RADFAHREN.js":[31192,9,31192],"./SUP":[37199,9,37199],"./SUP.js":[37199,9,37199],"./SURF":[80549,9,80549],"./SURF.js":[80549,9,80549],"./TOUR":[65971,9,65971],"./TOUR.js":[65971,9,65971],"./VDW":[5604,9,5604],"./VDW.js":[5604,9,5604],"./WING":[38158,9,38158],"./WING.js":[38158,9,38158],"./YACHT":[74376,9,74376],"./YACHT.js":[74376,9,74376],"./affiliates":[75857,7,75857],"./affiliates.js":[75857,7,75857],"./base":[5640,9],"./base.js":[5640,9],"./bidexCategories.cjs":[90072,7],"./common":[49436,7,49436],"./common.js":[49436,7,49436],"./domains":[77827,3,77827],"./domains.json":[77827,3,77827],"./globals":[76315,9,76315],"./globals.js":[76315,9,76315],"./index":[683,9],"./index.js":[683,9],"./package":[28326,3,28326],"./package.json":[28326,3,28326],"./plenigo":[28754,9,28754],"./plenigo.mjs":[28754,9,28754],"./samples/util/cloudinary":[36586,9,36586],"./samples/util/cloudinary.js":[36586,9,36586],"./samples/util/contentful":[38618,9,38618],"./samples/util/contentful.js":[38618,9,38618],"./spaces":[26863,3,26863],"./spaces.json":[26863,3,26863]};function n(e){if(!r.o(i,e))return Promise.resolve().then(()=>{var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=i[e],n=t[0];return Promise.all(t.slice(2).map(r.e)).then(()=>r.t(n,16|t[1]))}n.keys=()=>Object.keys(i),n.id=7971,e.exports=n},8032:(e,t,r)=>{"use strict";r.d(t,{l:()=>u});var i=r(6029),n=r(55729),s=r(75828),a=r.n(s),o=r(42418),l=r.n(o);let u=(0,n.forwardRef)(function({className:e,...t},r){return(0,i.jsx)("div",{ref:r,className:a()(" editor-item clear-both mx-auto w-full px-4 md:w-2/3 md:px-0",l().editorItem,e),...t})})},9326:(e,t,r)=>{"use strict";r.d(t,{De:()=>d,Gd:()=>c,eQ:()=>u,mp:()=>l});var i=r(89972);let n=(e=[])=>e.filter(Boolean).slice(0,5).reduce((e,t,r)=>({...e,[0===r?"item_category":`item_category${r+1}`]:t}),{}),s=e=>({item_id:e?.merchandise?.sku||void 0,item_name:e?.merchandise?.product?.title||e?.merchandise?.sku||void 0,...n([e?.merchandise?.product?.productType]),price:parseFloat(e?.merchandise?.priceV2?.amount)||0,quantity:e?.quantity||1}),a=e=>e?.cost?.totalAmount?.currencyCode||(e?.lines?.nodes||[]).filter(
1Boolean)[0]?.merchandise?.priceV2?.currencyCode||"EUR",o=(e,{currency:t,value:r,items:i}={})=>{try{if(window.__trackingStateDenied)return!1;window.dataLayer||(window.dataLayer=[]),console.debug(`GA4 :: ${e} :: ${JSON.stringify({currency:t,value:r,items:i})}`),window.dataLayer.push({ecommerce:null}),window.dataLayer.push({event:e,ecommerce:{currency:t,value:r,items:i}})}catch(e){console.error("GA4 :: ECOMMERCE TRACKING ERROR",e)}},l=(e,t)=>{let r=(t?.lines?.nodes||[]).filter(Boolean).map(s);r.length&&o(e,{currency:a(t),value:parseFloat(t?.cost?.totalAmount?.amount)||0,items:r})},u=(e,t,r)=>{if(!t)return;let i=s(t);o(e,{currency:t?.merchandise?.priceV2?.currencyCode||a(r),value:i.price*i.quantity,items:[i]})},c=(e,t)=>{if(e?.__typename!=="Product")return;let r=(0,i.m)(t)?.map(e=>e.title)||[],s=parseFloat(e?.price)||void 0;o("view_item",{currency:"EUR",value:s,items:[{item_id:e?.sku||void 0,item_name:e?.sku?e?.title:void 0,...n([e?.family,...r]),price:s,quantity:1}]})},d=()=>{if(window.__trackingStateDenied)return{};let e=document.cookie.split(";").map(e=>e.trim()),t=e.find(e=>e.startsWith("_ga="))?.split("=")[1],r=`_ga_${"G-S3HR0SV7EK".replace(/^G-/,"")}=`,i=e.find(e=>e.startsWith(r))?.split("=")[1];return{clientId:t?t.split(".").slice(-2).join("."):void 0,sessionId:(e=>{let t=e?.split(".")[2];if(t)return t.match(/^s(\d+)/)?.[1]||(/^\d+$/.test(t)?t:void 0)})(i)}}},9793:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Tagmanager:()=>a});var i=r(683),n=r(55729),s=r(13675);let a=()=>{let e=(0,i.getActive)()?.env?.NEXT_PUBLIC_GTM_ID,t=(0,s.Y)("Google Tag Manager");return(0,n.useEffect)(()=>{if(e&&t){var r,i,n,s,a;window.gtag_enable_tcf_support=!0,console.log(`GA :: ${e} loading.....`),r=window,i=document,r[n="dataLayer"]=r[n]||[],r[n].push({"gtm.start":new Date().getTime(),event:"gtm.js"}),s=i.getElementsByTagName("script")[0],(a=i.createElement("script")).async=!0,a.src="https://www.googletagmanager.com/gtm.js?id="+e,s.parentNode.insertBefore(a,s)}},[t,e]),null}},12506:(e,t,r)=>{"use strict";r.d(t,{E:()=>s,q:()=>n});var i={};function n(){return i}function s(e){i=e}},13155:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(18368)}])},13301:(e,t,r)=>{"use strict";r.d(t,{I:()=>a});var i=r(47899),n=r(29506),s=r(97688);function a(e,t,r){let a=(0,i.vh)(e,t,r);return(0,s.t)(a,n.$)}},13675:(e,t,r)=>{"use strict";r.d(t,{Y:()=>c,_:()=>d});var i=r(55729),n=r(29784),s=r(27652),a=r(49832);let o=(0,n.vt)(e=>({cmpLoaded:!1,cmpBlocked:!1,hasConsent:!1,cmpVisibilityObserver:null,setHasConsent:t=>e(()=>({hasConsent:t})),setCmpLoaded:t=>e(()=>({cmpLoaded:t})),setCmpBlocked:t=>e(()=>({cmpBlocked:t})),setCmpVisibilityObserver:t=>e(()=>({cmpVisibilityObserver:t}))})),l=["INFOnline GmbH","UpScore GmbH","Piwik Pro","Google Tag Manager"],u=["Piwik Pro","UpPromote","UpScore GmbH","Marfeel Solutions, SL (Compass)"],c=e=>{let{isAppStoreSubscriber:t,isPremiumSubscriber:r,isPlusSubscriber:n}=(0,s.T)((0,a.k)(e=>({isAppStoreSubscriber:e.isAppStoreSubscriber,isPremiumSubscriber:e.isPremiumSubscriber,isPlusSubscriber:e.isPlusSubscriber}))),c=o((0,a.k)(e=>e.hasConsent)),[d,h]=(0,i.useState)(!e&&c);return(0,i.useEffect)(()=>{if(e){if(window.__trackingStateDenied&&u.includes(e)){console.log(`CMP :: Disabled vendor ${e} (Denied tracking state)`),h(!1);return}if((r||n||t)&&l.includes(e)){console.log(`CMP :: Enabled vendor ${e} (PLUS/PREMIUM/APP-STORE-SUB)`),h(!0);return}}if(!e&&c)h(c);else if(c)try{let t=__cmp("getCMPData"),r=t?.vendorsList?.find(t=>t.name===e);r&&t.vendorConsents[r.id]?(console.log(`CMP :: Found consent for vendor ${e} (${r.id})`),h(!0)):console.warn(`CMP :: NO consent for vendor ${e}`)}catch(e){console.error(e)}},[c,e,r,n,t]),d},d=e=>{let{setHasConsent:t,cmpLoaded:r}=o(e=>({setHasConsent:e.setHasConsent,cmpLoaded:e.cmpLoaded})),n=o(e);return(0,i.useEffect)(()=>{if(r)try{if("function"!=typeof __cmp)throw Error("CMP :: STORE :: missing __cmp in window!");__cmp("addEventListener",["consent",()=>{t(!0),window.postMessage({type:"web:consent",consent:!0},"*")},"consent-loaded"])}catch(e){console.error(e)}},[r]),n}},14797:(e,t,r)=>{"use strict";function i(e){return function(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=i.width,s=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],a=t.match(s);if(!a)return null;var o=a[0],l=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?function(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}(l,function(e){return e.test(o)}):function(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}(l,function(e){return e.test(o)});return r=e.valueCallback?e.valueCallback(u):u,{value:r=i.valueCallback?i.valueCallback(r):r,rest:t.slice(o.length)}}}r.d(t,{A:()=>i})},15259:(e,t,r)=>{"use strict";function i(e,t){if(t.length<e)throw TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}r.d(t,{A:()=>i})},15404:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var i=r(14797);
1let n={ordinalNumber:(0,r(30831).A)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,i.A)({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:(0,i.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,i.A)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,i.A)({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,i.A)({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})}},17236:(e,t,r)=>{"use strict";r.r(t),r.d(t,{UpPromote:()=>l});var i=r(6029),n=r(13675),s=r(683),a=r(6772),o=r.n(a);r(55729);let l=()=>{let e=(0,n.Y)("UpPromote"),t=(0,s.getActive)();return t?.upPromote&&e?(window.upDataLayer||(window.upDataLayer=[],window.upTag=function(){return window.upDataLayer.push(arguments)},window.upTag("config","myshopify_domain","delius-klasing.myshopify.com"),window.upTag("config","linker",["delius-klasing.myshopify.com","shop.delius-klasing.de","dkshop-frontend.release.dk-features.de","beta-dkshop-frontend.stages.dk-features.de"])),(0,i.jsx)(o(),{src:"https://static-pixel.uppromote.com/collect/v1/collect.js"})):null}},17469:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var i={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};let n=function(e,t,r){var n,s=i[e];if(n="string"==typeof s?s:1===t?s.one:s.other.replace("{{count}}",t.toString()),null!=r&&r.addSuffix)if(r.comparison&&r.comparison>0)return"in "+n;else return n+" ago";return n}},17590:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var i=r(92941);let n={ordinalNumber:function(e,t){var r=Number(e),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:(0,i.A)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:(0,i.A)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,i.A)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:(0,i.A)({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1ay","Saturday"]},defaultWidth:"wide"}),dayPeriod:(0,i.A)({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})}},18027:(e,t,r)=>{"use strict";r.d(t,{Gv:()=>l,IY:()=>d,X$:()=>function e(){for(var t=Object(arguments.length<=0?void 0:arguments[0]),r=["__proto__","constructor","prototype"],i=1;i<arguments.length;i+=1){var n=i<0||arguments.length<=i?void 0:arguments[i];if(null!=n&&("u">typeof window&&void 0!==window.HTMLElement?!(n instanceof HTMLElement):!n||1!==n.nodeType&&11!==n.nodeType))for(var s=Object.keys(Object(n)).filter(function(e){return 0>r.indexOf(e)}),a=0,o=s.length;a<o;a+=1){var u=s[a],c=Object.getOwnPropertyDescriptor(n,u);void 0!==c&&c.enumerable&&(l(t[u])&&l(n[u])?n[u].__swiper__?t[u]=n[u]:e(t[u],n[u]):!l(t[u])&&l(n[u])?(t[u]={},n[u].__swiper__?t[u]=n[u]:e(t[u],n[u])):t[u]=n[u])}}return t},dY:()=>s,fq:()=>c,oR:()=>n,ro:()=>o,tB:()=>a,wD:()=>u});var i=r(24423);function n(e){Object.keys(e).forEach(function(t){try{e[t]=null}catch(e){}try{delete e[t]}catch(e){}})}function s(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function a(){return Date.now()}function o(e,t){void 0===t&&(t="x");var r,n,s,a,o,l=(0,i.zk)(),u=((n=(0,i.zk)()).getComputedStyle&&(r=n.getComputedStyle(e,null)),!r&&e.currentStyle&&(r=e.currentStyle),r||(r=e.style),r);return l.WebKitCSSMatrix?((a=u.transform||u.webkitTransform).split(",").length>6&&(a=a.split(", ").map(function(e){return e.replace(",",".")}).join(", ")),o=new l.WebKitCSSMatrix("none"===a?"":a)):s=(o=u.MozTransform||u.OTransform||u.MsTransform||u.msTransform||u.transform||u.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===t&&(a=l.WebKitCSSMatrix?o.m41:16===s.length?parseFloat(s[12]):parseFloat(s[4])),"y"===t&&(a=l.WebKitCSSMatrix?o.m42:16===s.length?parseFloat(s[13]):parseFloat(s[5])),a||0}function l(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function u(e,t){Object.keys(t).forEach(function(r){l(t[r])&&Object.keys(t[r]).forEach(function(i){"function"==typeof t[r][i]&&(t[r][i]=t[r][i].bind(e))}),e[r]=t[r]})}function c(e){return void 0===e&&(e=""),"."+e.trim().replace(/([\.:!\/])/g,"\\$1").replace(/ /g,".")}function d(e,t,r,n){var s=(0,i.YE)();return r&&Object.keys(n).forEach(function(r){if(!t[r]&&!0===t.auto){var i=s.createElement("div");i.className=n[r],e.append(i),t[r]=i}}),t}},18368:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>P,reportWebVitals:()=>I});var i=r(6029);r(64780);var n=r(53028),s=r(44888),a=r(55729),o=r(71024),l=r.n(o),u=r(81278),c=r(91694);function d({locale:e,...t}){if(!e)throw Error(void 0);return(0,i.jsx)(c.Dk,{locale:e,...t})}var h=r(48093),p=r(13301),f=r(42691),g=r(74480),m=r(63147),v=r(683),b=r(65871);r(75291);var y=r(49832),w=r(6772),_=r.n(w),E=r(87059),S=r(17236),T=r(9326);let C=({children:e})=>{let t=(0,E.c)(),r=(0,b.x3)((0,y.k)(e=>e.updateAttributes)),n=(0,b.x3)((0,y.k)(e=>e.cart?.id)),s=(0,b.x3)((0,y.k)(e=>e.cart?.attributes)),o=(0,b.I$)("https://6e8lbjwzm5.execute-api.eu-central-1.amazonaws.com/generate-token"),l=(0,b.x3)((0,y.k)(e=>e.isCartOpen)),[u,c]=(0,a.useState)(null);return(0,a.useEffect)(()=>{let e=new URLSearchParams(window.location.search).get("sca_ref");e&&c(e)},[]),(0,a.useEffect)(()=>
1{if(!u||!n||(s||[]).find(e=>"sca_ref"===e.key))return;let{cart:e}=b.x3.getState(),t=e?.lines?.nodes?.length??e?.totalQuantity??10,i=e=>(e?.attributes||[]).some(e=>"sca_ref"===e.key),a=b.x3.subscribe((e,t)=>{e.isCartOpen&&!t.isCartOpen&&i(e.cart)&&!i(t.cart)&&(a(),b.x3.setState({isCartOpen:!1}))});r({cartId:n,attributes:[{key:"sca_ref",value:u}],linesCount:Math.max(0,t-1)}).finally(a)},[u,n,s,r]),(0,a.useEffect)(()=>{l&&(0,T.mp)("view_cart",b.x3.getState().cart)},[l]),(0,v.getActive)(),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(S.UpPromote,{}),(0,i.jsx)(_(),{id:"react-ts-cart-config",strategy:"beforeInteractive",dangerouslySetInnerHTML:{__html:`
2                window.SHOPIFY_STOREFRONT_ENDPOINT = "https://delius-klasing.myshopify.com/api/2025-04/graphql.json";
3                window.SHOPIFY_STOREFRONT_TOKEN = "7220e092c92ee7d36c7f144851721182";
4            `}}),(0,i.jsx)(b.d7,{hideDefaultCartButton:!0,onCartUpdate:e=>window?.onCartUpdate?.(e),onLoginClick:e=>window?.signIn?.(e),onRegistrationClick:e=>window?.signIn?.(e),onCheckout:async(e,i)=>{if(!globalThis?.window||!e)return;try{let e=await fetch("/api/checkoutService/validateCountry");if((await e.json()).blocked)return void console.error("Bestellungen aus Ihrem Land sind derzeit nicht m\xf6glich.")}catch(e){console.error("Country validation failed:",e);return}(0,T.mp)("begin_checkout",e);let n=Promise.resolve(e),s=(e.attributes||[]).find(e=>"cart_origin"===e.key),a=(e.attributes||[]).find(e=>"fbp"===e.key),l=(e.attributes||[]).find(e=>"fbc"===e.key),u=(e.attributes||[]).find(e=>"ga_client_id"===e.key),c=(e.attributes||[]).find(e=>"ga_session_id"===e.key),d=(0,T.De)(),h=!!d.sessionId&&c?.value!==d.sessionId;if(!s?.value||!a&&t.fbp||!l&&t.fbc||!u&&d.clientId||h){let i=[...(e.attributes||[]).filter(e=>!(h&&"ga_session_id"===e.key)).map(e=>({key:e.key,value:e.value}))];s?.value||i.push({key:"cart_origin",value:window.location.host.replace("www.","checkout.")}),!a&&t.fbp&&i.push({key:"fbp",value:t.fbp}),!l&&t.fbc&&i.push({key:"fbc",value:t.fbc}),!u&&d.clientId&&i.push({key:"ga_client_id",value:d.clientId}),h&&i.push({key:"ga_session_id",value:d.sessionId}),(i.length>(e.attributes||[]).length||h)&&(n=r({cartId:e.id,attributes:i,linesCount:e.totalQuantity||e.lines?.nodes?.length||10}))}n.then(e=>{let t=new URLSearchParams({eftid:window?.eftId,cart:e.id.replace("gid://shopify/Cart/","").trim(),cart_origin:encodeURIComponent(window.location.host.replace("www.","checkout.").replace("shop.","checkout."))});if("function"==typeof window.upTag){let e=window.upTag("app","linker");e&&t.set("_upl",e)}let r=e.checkoutUrl.includes("?")?e.checkoutUrl+"&"+t.toString():e.checkoutUrl+"?"+t.toString();if(!i)return globalThis.window.location.href=r;o?.({body:{email:i,return_to:r}}).then(({url:e})=>{globalThis.window.location.href=e})})}}),e]})};var k=r(29143);p.I,f.R;let x=l()(()=>Promise.all([r.e(73405),r.e(71884),r.e(88167),r.e(19877),r.e(13431)]).then(r.bind(r,17066)),{loadableGenerated:{webpack:()=>[17066]}});function I(e){}var A=r(74216);(0,v.setActive)((0,A.default)());let P=function({Component:e,pageProps:t}){let r=(0,u.useRouter)(),a=t?.content?.content||[],o=!!a.find(e=>e?.block?.toLowerCase()==="plenigo/orderconfirmation");if(e?.getLayout){let n=e.getLayout;return(0,i.jsx)(d,{locale:r.locale||"de",messages:t.messages||{},timeZone:"Europe/Berlin",children:n((0,i.jsx)(e,{...t}))})}return(0,i.jsx)(d,{locale:r.locale||"de",messages:t.messages||{},timeZone:"Europe/Berlin",children:(0,i.jsx)(n.e.Provider,{value:{cloudinary:{apiKey:"163953246332712",cloudName:"delius-klasing-eu"},contentful:{root:"https://graphql.contentful.com/content/v1/spaces/2asspynmne8s",accessToken:"-Qsu9rvN4hI_aomDR6q6qOx7ee_asJQrlfOhGzT3SqQ"},getStreamValue:s.or},children:(0,i.jsx)(x,{style:t.style,embedConfigs:t.embedConfigs,disableInlineAds:t?.layout?.disableInlineAds,layout:t.layout,content:a,pageType:t?.pageType,editorPropsMap:h.lh,adSiteId:k.env.NEXT_PUBLIC_STROER_SITE_ID,adZoneIds:t.adZones||["rest"],adDemo:k.env.NEXT_PUBLIC_STROER_AD_DEMO||!1,adsDisabled:!!k.env.NEXT_PUBLIC_DISABLE_ADS||t.layout?.noAd||t?.content?.noAd||!1,consentLayerDisabled:t?.content?.noConsentLayer||!1,consentLayerForced:o,domain:"https://www.bike-magazin.de",activeNavigation:t.activeNavigation,activeContent:t?.content,pageHasH1:t?.pageHasH1,children:(0,i.jsxs)(C,{children:[(0,i.jsx)(e,{...t}),(0,i.jsx)(g.ToolbarPlaceholder,{}),(0,i.jsx)(m.HashScrollHandler,{})]})})})})}},24423:(e,t,r)=>{"use strict";function i(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function n(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach(function(r){void 0===e[r]?e[r]=t[r]:i(t[r])&&i(e[r])&&Object.keys(t[r]).length>0&&n(e[r],t[r])})}r.d(t,{YE:()=>a,zk:()=>l});var s={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function a(){var e="u">typeof document?document:{};return n(e,s),e}var o={document:s,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){return"u"<typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){"u">typeof setTimeout&&clearTimeout(e)}};function l(){var e="u">typeof window?window:{};return n(e,o),e}},25156:()=>{},25270:(e,t,r)=>{"use strict";function i(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}r.d(t,{A:()=>i})},25458:(e,t,r)=>{"use strict";r.d(t,{a:()=>n});var i=r(49955);let n=(e,t=1e3,r)=>{let n=Date.now(),s=(0,i.s)(),a=s.isEnabled()?s.startSpan(e,r):null;return()=>{a&&s.endSpan(a);let r=Date.now()-n;r>=t&&console.log(`SLOW QUERY :: ${e} :: ${r}ms`)}}},26350:(e,t,r)=>{"use strict";r.d(t,{q_:()=>y,W0:()=>w,sD:()=>S,ZS:()=>E}
4);var i=r(6029),n=r(683),s=r(54351),a=r(81278),o=r(6772),l=r.n(o),u=r(55729),c=r(49832),d=r(13675),h=r(26898),p=r(62745),f=r(27652),g=r(43554),m=r(89972);let v={YACHT:{"test-und-technik":{playlistId:"27907",label:"Test & Technik",tag:"test-und-technik-rubrik"},"diy-und-wissen":{playlistId:"27908",label:"DIY & Wissen",tag:"diy-und-wissen-rubrik"},shorts:{playlistId:"27909",label:"Shorts",tag:"shorts-rubrik"},"regatta-und-events":{playlistId:"27911",label:"Regatta & Events",tag:"regatta-und-events-rubrik"}},BIKE:{"test-und-technik":{playlistId:"27938",label:"Test & Technik",tag:"test-und-technik-rubrik"},"how-to":{playlistId:"27939",label:"How to",tag:"how-to-rubrik"},events:{playlistId:"27940",label:"Events",tag:"events-rubrik"},shorts:{playlistId:"27937",label:"Shorts",tag:"shorts-rubrik"}},TOUR:{"test-und-technik":{playlistId:"27896",label:"Test & Technik",tag:"test-und-technik-rubrik"},"how-to":{playlistId:"27946",label:"How to",tag:"how-to-rubrik"},shorts:{playlistId:"27945",label:"Shorts",tag:"shorts-rubrik"}},BOOT:{"test-und-technik":{playlistId:"27961",label:"Test & Technik",tag:"test-und-technik-rubrik"},"diy-und-wissen":{playlistId:"27962",label:"DIY & Wissen",tag:"diy-und-wissen-rubrik"},shorts:{playlistId:"27941",label:"Shorts",tag:"shorts-rubrik"}},SURF:{"how-to":{playlistId:"27986",label:"How to",tag:"how-to-rubrik"},"test-und-produkte":{playlistId:"27985",label:"Test & Produkte",tag:"test-und-produkte-rubrik"}}};var b=r(29143);let y=({trackPositions:e})=>{let{user:t}=(0,h.A)(),r=(0,a.useRouter)(),s=(0,d.Y)("UpScore GmbH"),o=(0,g.I)((0,c.k)(e=>e.setCurrentPageEvaluated)),m=(0,g.I)(e=>e.setPaywallBlocked),{isPremiumSubscriber:v,isDigitalSubscriber:y,isPrintSubscriber:w,isPlenigoReady:_,isDSBReady:S,setPaywallActive:T,setPaywall:C}=(0,f.T)((0,c.k)(e=>({isPremiumSubscriber:e.isPremiumSubscriber,isDigitalSubscriber:e.isDigitalSubscriber,isPrintSubscriber:e.isPrintSubscriber,isPlenigoReady:e.isPlenigoReady,isDSBReady:e.isDSBReady,setPaywallActive:e.setPaywallActive,setPaywall:e.setPaywall}))),k=(0,g.I)(e=>e.isPaywallBlocked),x=(0,p.K)((0,c.k)(e=>e.isApp)),I=(0,n.getActive)()?.upscore;return(e||I?.track_positions,(0,u.useEffect)(()=>{if(!r?.events)return;let e=()=>{o(!1)};return r.events.on("routeChangeStart",e),()=>{r.events.off("routeChangeStart",e)}},[o]),(0,u.useEffect)(()=>{k&&"true"!==b.env.NEXT_PUBLIC_DISABLE_PAYWALL&&(v||w||y?T(!1):T(!0))},[k,v,w,y]),(0,u.useEffect)(()=>{if(_&&S){let e=0;v||w||y?e=2:t&&(e=1),console.info("upScore :: user_status",e),window.userStatus=e,E("update_data",{user_status:e}),E("paywall_on_evaluated",function(t){console.log(`upScore("paywall_on_evaluated") CALLBACK paywallActive: ${t?.display_paywall?"true":"false"}`),T(t?.display_paywall||!1),C(t?{...t,data:{user_status:e}}:null),o(!0)})}},[_,S]),I?.domain&&s&&!x)?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l(),{id:"upscore-site-script",src:`https://files.upscore.com/site_script/${I.domain}.js`,async:!0,onError:()=>{console.error("Failed to load Upscore site script"),m(!0)}}),(0,i.jsx)(l(),{id:"upscore-queue-init",dangerouslySetInnerHTML:{__html:"(function(w,u){w[u]=w[u]||function(){(w[u].q=w[u].q||[]).push(arguments)}})(window,'upScore');"}})]}):null},w=(e,t,r="de")=>{let i=e?.sys?.id||e?.sku||e?.id;if(!i)return void console.error(`Upscore data for content not found (type: ${e?.__typename||typeof e}, slug: ${e?.slug||"-"})`);let a=(0,m.m)(t)||[],o=e?.authorsCollection?.items?.map(e=>e?.name).filter(Boolean).join(","),l=e?.featureFlags?.includes("video"),u=!!((e?.tagsCollection?.items||[]).find(e=>e?.slug==="affiliate")||e?.affiliateUrl),c=e?.tagsCollection?.items?.find(e=>e?.slug==="hafendb"),d={content_type:((e,t,r)=>{if("Article"!==r||!t)return 0;let i=Math.floor((new Date-t)/864e5);return i>84?1:e&&i<=3?2:0})(u,e?.sys?.firstPublishedAt?new Date(e.sys.firstPublishedAt):null,e?.__typename),object_type:"landingpage",object_id:i,pubdate:e?.sys?.firstPublishedAt?(0,s.A)(new Date(e?.sys?.firstPublishedAt),"yyyy-MM-dd'T'HH:mm:ssXX"):"",author:o,section:"",taxonomy:[r],custom_video:+!!l};"/"===e.slug?d.section="Startseite":(d.section=a.at(0)?.title||"",d.taxonomy=[...d.taxonomy,...a.map(e=>e.title).filter(e=>e!==d.section&&e),...e?.tagsCollection?.items?.filter(e=>e?.isArtikelauszeichnung)?.map(e=>
4e.title)||[]].filter(Boolean)),c&&(d.object_type="landingpage",d.section="Reisen & Chartern",d.taxonomy=[...d.taxonomy,e?.title]);let h=e?.tagsCollection?.items?.find(e=>e?.disablePaywall);switch(e?.__typename){case"Article":case"Product":d.object_type="article",e?.featureFlags?.includes("ticker")&&(d.object_type="liveblog"),h&&(console.debug(`Disabling Paywall because of tag ${h?.title} (upScore object_type="misc")`),d.object_type="misc");break;case"Kleinanzeige":{d.object_type="anzeige";let t=e?.fields?.model?.value;t&&d.taxonomy.push(t);let r=e?.fields?.hull_construction?.value;r&&d.taxonomy.push(r);let i=e?.fields?.location?.value;i&&d.taxonomy.push(i);let n=parseInt(e?.fields?.year?.value||0);if(n&&!isNaN(n)){let e="vor1980";if(n>1980&&n<2020){let t=n-n%10;e=`${t}-${t+9}`}else n>2020&&(e="ab2020");d.taxonomy.push(e)}let s=e?.fields?.boat_type?.value,a=parseInt(e?.fields?.loa?.value||0);if(s&&a&&!isNaN(a)){let e="ab 20";a<=5?e="bis5":a<=7?e="bis7":a<=20&&(e="bis20"),d.taxonomy.push(`${s} (${e})`)}let o=parseInt(e?.fields?.price?.amount||0);if(o&&!isNaN(o)){let e="kleiner 10TEUR";if(o>1e4){let t=o-o%1e4,r=Math.trunc((t+9999)/1e4*10)/10;e=`${Math.floor(t/1e4)}-${r}TEUR`}d.taxonomy.push(e)}break}case"Hafen":d.object_type="product",d.section="Reisen & Chartern",d.taxonomy=[...d.taxonomy,...a.map(e=>e.title).filter(e=>e!==d.section&&e),e?.basic?.name?.official].filter(Boolean);break;case"BidexModel":d.object_type="product",d.section="Marken und Modelle",d.taxonomy=[...d.taxonomy,...a.map(e=>e.title).filter(e=>e!==d.section&&e),"Marken",e?.brand?.name,e?.model?.model?.name].filter(Boolean);break;case"PCSRace":d.object_type="product",d.section="Radsport-Rennkalender",d.taxonomy=[...d.taxonomy,...a.map(e=>e.title).filter(e=>e!==d.section&&e),e?.event?.title].filter(Boolean);break;case"PCSRaceStage":d.object_type="product",d.section="Radsport-Rennkalender",d.taxonomy=[...d.taxonomy,...a.map(e=>e.title).filter(e=>e!==d.section&&e),e?.event?.title,e?.stage?.title].filter(Boolean);break;case"PCSRaceLiveticker":d.object_type="liveblog",d.section="Radsport-Rennkalender",d.taxonomy=[...d.taxonomy,...a.map(e=>e.title).filter(e=>e!==d.section&&e),e?.event?.title,e?.currentStage?.stage?.title].filter(Boolean);break;case"TargetVideo":d.object_type="video page",d.section="Video",d.taxonomy=[r,e?.rubrikLabel||e?.rubrik].filter(Boolean);break;default:d.object_type=e?.pageType||"landingpage"}if(e?.__typename!=="TargetVideo"){let t=/^\/?video\/?$|^\/?video\/([^/]+)\/?$/.exec(e?.slug||"");if(t){let e,i=t[1]||null,s=i?(!(e=(0,n.getActive)()?.id)?{}:v[e]||{})?.[i]?.label:null;d.section="Video",d.taxonomy=[r,s].filter(Boolean)}}return Array.isArray(d.taxonomy)&&(d.taxonomy=d.taxonomy.join(",")),d.section=String(d.section||"").trim(),d},_=[],E=function(e,t){if(window.upScore||(window.upScore=function(){(window.upScore.q=window.upScore.q||[]).push(arguments)},window.upScore.q=[]),["paywall_on_evaluated","paywall_on_click","update_data"].includes(e)||"function"==typeof t)try{console.info(`upScore("${e}", ...)`,"function"==typeof t?"[callback]":t),window.upScore(e,t)}catch(e){console.error(e)}else _.push({command:e,data:t});if(![0,1,2].includes(window.userStatus))return void console.info("upScore:: PUSHED TO QUEUE :: USER STATUS NOT READY YET (Value: "+window.userStatus+")!");for(;_.length;){let e=_.shift();"page_view"===e.command&&"object"==typeof e.data&&(e.data.user_status=window.userStatus);try{console.info(`upScore("${e.command}", ${JSON.stringify(e.data,null,2)})`),window.upScore(e.command,e.data)}catch(e){console.error(e)}}},S=function(e){try{if(window.__trackingStateDenied)return console.info("upScore:: DENIED :: __trackingStateDenied"),!1;if(e.conversion&&E("page_view",{section:"",pubdate:"",author:"",object_type:e.conversionType,object_id:e.conversion,url:e.conversionUrl,conversion:"2"}),e.update_data&&E("update_data",e.update_data),e.data){let t={content_type:0,object_type:"",object_id:"Error: no object_id",pubdate:"",author:"",section:"",taxonomy:"",custom_video:0,article_content_container:".va-upscore-article-text",...e.data};E("page_view",t)}"gallery"===e.event&&E("gallery_view",e.options||{}),e.custom_event&&E("custom_event",e.custom_event)}catch(e){console.error(e)}}},26483:(e,t,r)=>{"use strict";function i(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}r.d(t,{A:()=>i})},26898:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var i=r(55729),n=r(34991);function s(){return(0,i.useContext)(n.V)}},27009:(e,t,r)=>{"use strict";r.d(t,{A:()=>x});let i={user:0,currency:1,language:1,home:2,category:2,product:2,cart:2,purchase:2,checkout:2,other:2,page_type:2,add_to_cart:3,remove_from_cart:3,custom_event:3,set_identifier:3,set_custom_identifier:3,init:99},n=e=>i[e]??50,s={user:"#4CAF50",anonymous:"#4CAF50",init:"#9C27B0",home:"#2196F3",category:"#2196F3",product:"#2196F3",cart:"#2196F3",purchase:"#2196F3",checkout:"#2196F3",other:"#2196F3",add_to_cart:"#FF9800",remove_from_cart:"#F44336",reset:"#795548",queued:"#FF5722"},a=e=>{let t=e?.type||"unknown",r=s[t]||"#607D8B";console.log(`%c Insider %c ${t} `,"background: #6A1B9A; color: white; border-radius: 3px 0 0 3px; padding: 2px 4px;",`background: ${r}; color: white; border-radius: 0 3px 3px 0; padding: 2px 4px;`,e?.value||"")},o=e=>{try{window.InsiderQueue||(window.InsiderQueue=[]),a(e),window.InsiderQueue.push(e)}catch(e){console.error("Insider :: push error",e)}},l=[],u=[],c=!1,d=!1,h=!1,p={products:[]},f=e=>{a({type:"bufferEvent",value:JSON.stringify(e)}),l.push(e)},g=()=>{if(!c||!d)return;let e=l.slice().sort((e,t)=>
4n(e.type)-n(t.type));e.forEach(o),o({type:"init"}),l=[],c=!1,d=!1,h=!0,u.forEach(o),u=[],console.log("%c Insider %c flushed ","background: #6A1B9A; color: white; border-radius: 3px 0 0 3px; padding: 2px 4px;","background: #00BCD4; color: white; border-radius: 0 3px 3px 0; padding: 2px 4px;",e.map(e=>e.type))},m=e=>{c=!0,f({type:"user",value:{email:e,gdpr_optin:!0,language:"de_DE"}}),g()},v=()=>{a({type:"anonymous"}),c=!0,g()},b=(e,t={})=>{e&&(d=!0,l=l.filter(e=>n(e.type)!==i.page_type),f({type:e,value:t}),g())},y=()=>{if(h){a({type:"reset"}),l=[],u=[],d=!1,c=!1,h=!1;try{let e=window?.Insider?.insiderObject;e&&(delete e.page,delete e.transaction)}catch(e){console.error("Insider :: IO reset error",e)}try{window?.Insider?.eventManager?.dispatch("init-manager:re-initialize")}catch(e){console.error("Insider :: re-initialize error",e)}}},w=e=>{h?o(e):(a({type:"queued",value:JSON.stringify(e)}),u.push(e))},_=e=>{w({type:"add_to_cart",value:{id:e.sku,name:e.name,taxonomy:e.category?[e.category]:[],unit_price:parseFloat(e.price),unit_sale_price:parseFloat(e.price),product_image_url:e.imageUrl,url:e.url,quantity:1}})},E=e=>{w({type:"remove_from_cart",value:{id:e.sku,name:e.name,taxonomy:e.category?[e.category]:[],unit_price:parseFloat(e.price),unit_sale_price:parseFloat(e.price),product_image_url:e.imageUrl,url:e.url,quantity:1}})},S=!1,T=setTimeout(()=>{S=!0},3e3),C=e=>{let t=k(e);if(!S){clearTimeout(T),S=!0,p={products:t};return}let r=t.filter(e=>!p.products.find(t=>t.sku===e.sku)),i=p.products.filter(e=>!t.find(t=>t.sku===e.sku));r.forEach(_),i.forEach(E),p={products:t}},k=e=>e?.lines?.nodes?.map?.(e=>e?.merchandise?.sku?{sku:e?.merchandise?.sku,name:e?.merchandise?.product?.title,category:e?.merchandise?.product?.productType||"",price:e?.merchandise?.priceV2?.amount,currency:e?.merchandise?.priceV2?.currencyCode||"EUR",quantity:e?.quantity||1,imageUrl:e?.merchandise?.image?.url||"https://shop.delius-klasing.de/apple-touch-icon.png",url:window.location.origin+window.location.pathname}:null)?.filter(Boolean)||[];function x(){return{identify:m,setAnonymous:v,setPageType:b,resetForNavigation:y,addToCart:_,removeFromCart:E,trackCartUpdate:C}}},27133:(e,t,r)=>{"use strict";e.exports=r(85596)},27652:(e,t,r)=>{"use strict";r.d(t,{T:()=>i});let i=(0,r(29784).vt)(e=>({isPlusEnabled:!0,isPremiumEnabled:!0,isPlenigoReady:!1,isStripeReady:!1,isDSBReady:!1,plenigoPermissions:[],isPlusSubscriber:!1,isPremiumSubscriber:!1,dsbPermissions:[],isDigitalSubscriber:!1,isPrintSubscriber:!1,isPaywallActive:!1,paywall:null,setPaywallActive:t=>e(()=>({isPaywallActive:t})),setPaywall:t=>e(()=>({paywall:t})),setPlenigoPermissions:t=>e(()=>({plenigoPermissions:t}
4)),setIsPlusSubscriber:t=>e(()=>({isPlusSubscriber:t})),setIsPremiumSubscriber:t=>e(()=>({isPremiumSubscriber:t})),setIsPremiumEnabled:t=>e(()=>({isPremiumEnabled:t})),setIsPlusEnabled:t=>e(()=>({isPlusEnabled:t})),setDSBPermissions:t=>e(()=>({dsbPermissions:t})),setIsDigitalSubscriber:t=>e(()=>({isDigitalSubscriber:t})),setIsPrintSubscriber:t=>e(()=>({isPrintSubscriber:t})),setIsPlenigoReady:t=>e(()=>({isPlenigoReady:t})),setIsDSBReady:t=>e(()=>({isDSBReady:t})),setIsStripeReady:t=>e(()=>({isStripeReady:t})),isAppStoreSubscriber:!1,setIsAppStoreSubscriber:t=>e(()=>({isAppStoreSubscriber:t}))}))},29304:function(e,t,r){var i;i=r(35596),function(e){var t=i.lib,r=t.WordArray,n=t.Hasher,s=i.algo,a=[],o=[];function l(e){return(e-(0|e))*0x100000000|0}for(var u=2,c=0;c<64;)(function(t){for(var r=e.sqrt(t),i=2;i<=r;i++)if(!(t%i))return!1;return!0})(u)&&(c<8&&(a[c]=l(e.pow(u,.5))),o[c]=l(e.pow(u,1/3)),c++),u++;var d=[],h=s.SHA256=n.extend({_doReset:function(){this._hash=new r.init(a.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,i=r[0],n=r[1],s=r[2],a=r[3],l=r[4],u=r[5],c=r[6],h=r[7],p=0;p<64;p++){if(p<16)d[p]=0|e[t+p];else{var f=d[p-15],g=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,m=d[p-2],v=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;d[p]=g+d[p-7]+v+d[p-16]}var b=l&u^~l&c,y=i&n^i&s^n&s,w=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),_=h+((l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25))+b+o[p]+d[p],E=w+y;h=c,c=u,u=l,l=a+_|0,a=s,s=n,n=i,i=_+E|0}r[0]=r[0]+i|0,r[1]=r[1]+n|0,r[2]=r[2]+s|0,r[3]=r[3]+a|0,r[4]=r[4]+l|0,r[5]=r[5]+u|0,r[6]=r[6]+c|0,r[7]=r[7]+h|0},_doFinalize:function(){var t=this._data,r=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;return r[n>>>5]|=128<<24-n%32,r[(n+64>>>9<<4)+14]=e.floor(i/0x100000000),r[(n+64>>>9<<4)+15]=i,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e}});i.SHA256=n._createHelper(h),i.HmacSHA256=n._createHmacHelper(h)}(Math),e.exports=i.SHA256},29506:(e,t,r)=>{"use strict";r.d(t,{$:()=>l});var i=r(47899),n=r(60400),s=r(44779),a=r(7881),o=r(32343);class l extends a.Q{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),u(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return c(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return c(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){let r=this.options,n=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),(0,i.f8)(r,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();let s=this.hasListeners();s&&d(this.currentQuery,n,this.options,r)&&this.executeFetch(),this.updateResult(t),s&&(this.currentQuery!==n||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();let a=this.computeRefetchInterval();s&&(this.currentQuery!==n||this.options.enabled!==r.enabled||a!==this.currentRefetchInterval)&&this.updateRefetchInterval(a)}getOptimisticResult(e){var t,r,n;let s=this.client.getQueryCache().build(this.client,e),a=this.createResult(s,e);return t=this,r=a,(n=e).keepPreviousData||(void 0!==n.placeholderData?!r.isPlaceholderData:(0,i.f8)(t.getCurrentResult(),r))||(this.currentResult=a,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),a}getCurrentResult(){return this.currentResult}trackResult(e){let t={};return Object.keys(e).forEach(r=>{Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(r),e[r])})}),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){let t=this.client.defaultQueryOptions(e),r=this.client.getQueryCache().build(this.client,t);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,t))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:null==(t=e.cancelRefetch)||t}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return null!=e&&e.throwOnError||(t=t.catch(i.lQ)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),i.S$||this.currentResult.isStale||!(0,i.gn)(this.options.staleTime))return;let e=(0,i.j3)(this.currentResult.dataUpdatedAt,this.options.staleTime);this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},e+1)}computeRefetchInterval(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!i.S$&&!1!==this.options.enabled&&(0,i.gn)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(()=>
4{(this.options.refetchIntervalInBackground||s.m.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){let r,n=this.currentQuery,s=this.options,a=this.currentResult,l=this.currentResultState,c=this.currentResultOptions,p=e!==n,f=p?e.state:this.currentQueryInitialState,g=p?this.currentResult:this.previousQueryResult,{state:m}=e,{dataUpdatedAt:v,error:b,errorUpdatedAt:y,fetchStatus:w,status:_}=m,E=!1,S=!1;if(t._optimisticResults){let r=this.hasListeners(),i=!r&&u(e,t),a=r&&d(e,n,t,s);(i||a)&&(w=(0,o.v_)(e.options.networkMode)?"fetching":"paused",v||(_="loading")),"isRestoring"===t._optimisticResults&&(w="idle")}if(t.keepPreviousData&&!m.dataUpdatedAt&&null!=g&&g.isSuccess&&"error"!==_)r=g.data,v=g.dataUpdatedAt,_=g.status,E=!0;else if(t.select&&void 0!==m.data)if(a&&m.data===(null==l?void 0:l.data)&&t.select===this.selectFn)r=this.selectResult;else try{this.selectFn=t.select,r=t.select(m.data),r=(0,i.pl)(null==a?void 0:a.data,r,t),this.selectResult=r,this.selectError=null}catch(e){this.selectError=e}else r=m.data;if(void 0!==t.placeholderData&&void 0===r&&"loading"===_){let e;if(null!=a&&a.isPlaceholderData&&t.placeholderData===(null==c?void 0:c.placeholderData))e=a.data;else if(e="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.selectError=null}catch(e){this.selectError=e}void 0!==e&&(_="success",r=(0,i.pl)(null==a?void 0:a.data,e,t),S=!0)}this.selectError&&(b=this.selectError,r=this.selectResult,y=Date.now(),_="error");let T="fetching"===w,C="loading"===_,k="error"===_;return{status:_,fetchStatus:w,isLoading:C,isSuccess:"success"===_,isError:k,isInitialLoading:C&&T,data:r,dataUpdatedAt:v,error:b,errorUpdatedAt:y,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>f.dataUpdateCount||m.errorUpdateCount>f.errorUpdateCount,isFetching:T,isRefetching:T&&!C,isLoadingError:k&&0===m.dataUpdatedAt,isPaused:"paused"===w,isPlaceholderData:S,isPreviousData:E,isRefetchError:k&&0!==m.dataUpdatedAt,isStale:h(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){let t=this.currentResult,r=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,(0,i.f8)(r,t))return;this.currentResult=r;let n={cache:!0},s=()=>{if(!t)return!0;let{notifyOnChangeProps:e}=this.options,r="function"==typeof e?e():e;if("all"===r||!r&&!this.trackedProps.size)return!0;let i=new Set(null!=r?r:this.trackedProps);return this.options.useErrorBoundary&&i.add("error"),Object.keys(this.currentResult).some(e=>this.currentResult[e]!==t[e]&&i.has(e))};(null==e?void 0:e.listeners)!==!1&&s()&&(n.listeners=!0),this.notify({...n,...e})}updateQuery(){let e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;let t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){let t={};"success"===e.type?t.onSuccess=!e.manual:"error"!==e.type||(0,o.wm)(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){n.j.batch(()=>{var t,r,i,n,s,a,o,l;e.onSuccess?(null==(t=(r=this.options).onSuccess)||t.call(r,this.currentResult.data),null==(i=(n=this.options).onSettled)||i.call(n,this.currentResult.data,null)):e.onError&&(null==(s=(a=this.options).onError)||s.call(a,this.currentResult.error),null==(o=(l=this.options).onSettled)||o.call(l,void 0,this.currentResult.error)),e.listeners&&this.listeners.forEach(({listener:e})=>{e(this.currentResult)}),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function u(e,t){return!1!==t.enabled&&!e.state.dataUpdatedAt&&("error"!==e.state.status||!1!==t.retryOn
4Mount)||e.state.dataUpdatedAt>0&&c(e,t,t.refetchOnMount)}function c(e,t,r){if(!1!==t.enabled){let i="function"==typeof r?r(e):r;return"always"===i||!1!==i&&h(e,t)}return!1}function d(e,t,r,i){return!1!==r.enabled&&(e!==t||!1===i.enabled)&&(!r.suspense||"error"!==e.state.status)&&h(e,r)}function h(e,t){return e.isStaleByTime(t.staleTime)}},29784:(e,t,r)=>{"use strict";r.d(t,{vt:()=>c});let i=e=>{let t,r=new Set,i=(e,i)=>{let n="function"==typeof e?e(t):e;if(!Object.is(n,t)){let e=t;t=(null!=i?i:"object"!=typeof n||null===n)?n:Object.assign({},t,n),r.forEach(r=>r(t,e))}},n=()=>t,s={setState:i,getState:n,getInitialState:()=>a,subscribe:e=>(r.add(e),()=>r.delete(e)),destroy:()=>{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."),r.clear()}},a=t=e(i,n,s);return s};var n=r(55729),s=r(7203);let{useDebugValue:a}=n,{useSyncExternalStoreWithSelector:o}=s,l=!1,u=e=>{"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");let t="function"==typeof e?e?i(e):i:e,r=(e,r)=>(function(e,t=e=>e,r){r&&!l&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),l=!0);let i=o(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,r);return a(i),i})(t,e,r);return Object.assign(r,t),r},c=e=>e?u(e):u},30158:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Marfeel:()=>c});var i=r(683),n=r(55729),s=r(81278),a=r(13675),o=r(89557),l=r(29143);let u=!1,c=({pageType:e})=>{let t=(0,i.getActive)()?.env?.MARFEEL_ACCOUNT_ID,r=(0,s.useRouter)(),c=(0,a.Y)("Marfeel Solutions, SL (Compass)"),d=(0,n.useRef)(e);return d.current=e,(0,n.useEffect)(()=>{if(!l.env.NEXT_PUBLIC_DISABLE_TRACKING&&t&&c&&!u)try{let e=(e,t)=>{let r=document.createElement("script");r.src=e,t?r.type="module":(r.async=!0,r.type="text/javascript",r.setAttribute("nomodule",""));let i=document.getElementsByTagName("script")[0];i.parentNode.insertBefore(r,i)},r=(0,o._G)();(0,o.hA)(),window.marfeel=window.marfeel||{},window.marfeel.cmd=window.marfeel.cmd||[],window.marfeel.config=r?{accountId:t,pageType:r}:{accountId:t};let i=d.current;i&&window.marfeel.cmd.push(["compass",e=>{console.log(`MARFEEL :: setPageVar(pageType) :: ${i}`),e.setPageVar("pageType",i)}]);let n="https://sdk.mrf.io/statics";u=!0,console.log(`MARFEEL :: SDK init (accountId ${t})`),e(`${n}/marfeel-sdk.js?id=${t}`,!0),e(`${n}/marfeel-sdk.es5.js?id=${t}`,!1)}catch(e){console.error("MARFEEL :: SDK init error",e)}},[t,c]),(0,n.useEffect)(()=>{if(l.env.NEXT_PUBLIC_DISABLE_TRACKING||!t||!c||!r?.events)return;console.log("MARFEEL :: SPA pageview tracking enabled");let e=()=>{(0,o.K6)()},i=e=>{console.log(`MARFEEL :: routeChangeComplete :: ${e}`);try{let t=d.current;window.marfeel=window.marfeel||{},window.marfeel.cmd=window.marfeel.cmd||[],window.marfeel.cmd.push(["compass",r=>{console.log(`MARFEEL :: trackNewPage() :: ${e}${t?` :: pageType ${t}`:""}`),t?r.trackNewPage({initialPageVars:{pageType:t}}):r.trackNewPage()}])}catch(e){console.error("MARFEEL :: trackNewPage error",e)}};return r.events.on("routeChangeStart",e),r.events.on("routeChangeComplete",i),()=>{r.events.off("routeChangeStart",e),r.events.off("routeChangeComplete",i)}},[t,c,r]),null}},30831:(e,t,r)=>{"use strict";function i(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.match(e.matchPattern);if(!i)return null;var n=i[0],s=t.match(e.parsePattern);if(!s)return null;var a=e.valueCallback?e.valueCallback(s[0]):s[0];return{value:a=r.valueCallback?r.valueCallback(a):a,rest:t.slice(n.length)}}}r.d(t,{A:()=>i})},32343:(e,t,r)=>{"use strict";r.d(t,{II:()=>c,v_:()=>o,wm:()=>u});var i=r(44779),n=r(58986),s=r(47899);function a(e){return Math.min(1e3*2**e,3e4)}function o(e){return(null!=e?e:"online")!=="online"||n.t.isOnline()}class l{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function u(e){return e instanceof l}function c(e){let t,r,u,c=!1,d=0,h=!1,p=new Promise((e,t)=>
4{r=e,u=t}),f=()=>!i.m.isFocused()||"always"!==e.networkMode&&!n.t.isOnline(),g=i=>{h||(h=!0,null==e.onSuccess||e.onSuccess(i),null==t||t(),r(i))},m=r=>{h||(h=!0,null==e.onError||e.onError(r),null==t||t(),u(r))},v=()=>new Promise(r=>{t=e=>{let t=h||!f();return t&&r(e),t},null==e.onPause||e.onPause()}).then(()=>{t=void 0,h||null==e.onContinue||e.onContinue()}),b=()=>{let t;if(!h){try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(g).catch(t=>{var r,i;if(h)return;let n=null!=(r=e.retry)?r:3,o=null!=(i=e.retryDelay)?i:a,l="function"==typeof o?o(d,t):o,u=!0===n||"number"==typeof n&&d<n||"function"==typeof n&&n(d,t);c||!u?m(t):(d++,null==e.onFail||e.onFail(d,t),(0,s.yy)(l).then(()=>{if(f())return v()}).then(()=>{c?m(t):b()}))})}};return o(e.networkMode)?b():v().then(b),{promise:p,cancel:t=>{h||(m(new l(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?p:Promise.resolve(),cancelRetry:()=>{c=!0},continueRetry:()=>{c=!1}}}},34991:(e,t,r)=>{"use strict";r.d(t,{G:()=>m,V:()=>g});var i=r(6029),n=r(55729),s=r(37051),a=r(81278),o=r(37374),l=r(27009),u=r(35627),c=r(683),d=r(65871),h=r(49832),p=r(62745),f=r(29143);let g=(0,n.createContext)({communityEnabled:!1,removeSession:()=>{},signOut:()=>{},signIn:()=>{},user:null,profile:null,isAuthorized:!1,isReady:!1,isProfileReady:!1,redirectTo:null}),m=({enabled:e,children:t})=>{let r=(0,a.useRouter)(),m=(0,s.As)(),{identify:v,setAnonymous:b}=(0,l.A)(),y=(0,u.s)(e=>
4e.setUser),[w,_]=(0,n.useState)(null),[E,S]=(0,n.useState)(!1),[T,C]=(0,n.useState)(!1),[k,x]=(0,n.useState)(""),[I,A]=(0,n.useState)(!e),[P,O]=(0,n.useState)(!e),[N,R]=(0,n.useState)(null),[M,L]=(0,n.useState)(null),[D,B,j]=(0,o.A)(["ape_token","ape_access_token"]),U=D.ape_token,H=D.ape_access_token,F=(0,n.useRef)(!1),q=(0,d.x3)((0,h.k)(e=>e.email)),$=(0,d.x3)((0,h.k)(e=>e.setEmail)),G=(0,d.x3)((0,h.k)(e=>e.cart?.id)),z=(0,d.x3)((0,h.k)(e=>e.cart?.checkoutUrl)),V=(0,d.I$)("https://6e8lbjwzm5.execute-api.eu-central-1.amazonaws.com/generate-token"),W=(0,p.K)((0,h.k)(e=>e.isApp)),{token:K}=r.query,Y=async(t={})=>e?W?(window.postMessage({type:"web:signIn"},"*"),null):(t.state=t?.state||{},t?.state?.redirectTo||t?.disableRedirectTo||(t.state.redirectTo=window.location.pathname+window.location.search),await m.signinRedirect(t)):null,X=()=>{if(W)return window.postMessage({type:"web:showPaywall"},"*"),null},Q=async()=>{if(e){try{await fetch("/api/community/session/",{method:"DELETE"})}catch(e){}j("ape_access_token",{path:"/"}),j("ape_token",{path:"/"}),_(null),R(null)}},J=async()=>{e&&(j("ape_access_token",{path:"/"}),j("ape_token",{path:"/"}),_(null),R(null))},Z=async()=>{if(!e||F.current)return null;let t="",r=null,i="";A(!1),O(!1),F.current=!0;try{if((U||m?.user?.id_token||H)&&S(!0),m?.user?.id_token){try{console.log("OIDC::AUTH",JSON.stringify(m,null,3))}catch(e){}t=`?${new URLSearchParams({id_token:m?.user?.id_token})}`,r=m?.user?.state?.redirectTo,i=m?.user?.state?.require||"",console.log("OIDC::REDIRECT",r),console.log("OIDC::REQUIRE",i||"none"),C(r),x(i),await m.removeUser()}if(K){let e=m?.settings?.stateStore,n=e?await e.getAllKeys():[],s=null;try{if(n.length){let t=await e.get(n[0])||null;t?.length&&(t=JSON.parse(t),t?.data&&(s=t.data))}}catch(e){}console.log("OIDC::FAST_AUTH",JSON.stringify(s,null,3)),t=`?${new URLSearchParams({token:K})}`,r=s?.redirectTo,i=s?.require||"",console.log("OIDC::FAST_AUTH::REDIRECT",r),console.log("OIDC::FAST_AUTH::REQUIRE",i||"none"),C(r),x(i),await m.clearStaleState()}let e=await fetch(`/api/community/session/${t}`,{method:"GET"}),n=await e.json();if(n?.expired)return j("ape_token",{path:"/"}),j("ape_access_token",{path:"/"}),_(null),R(null),S(!1),setTimeout(()=>{A(!0),O(!0),F.current=!1});return n?.token&&B("ape_token",n.token,{path:"/",maxAge:n.ttl,secure:!f.env.NEXT_PUBLIC_OIDC_DEV,sameSite:f.env.NEXT_PUBLIC_OIDC_DEV?void 0:"none"}),n?.user&&ee(n?.token),_(n?.user),S(!!n?.user),C(r),x(i),setTimeout(()=>{A(!0),n?.user||(R(null),O(!0)),F.current=!1}),n}catch(e){console.error(e),F.current=!1}},ee=async e=>{let t=null;try{let r=await fetch(`/api/community/profile/?context=${(0,c.getActive)()?.id}`,{method:"GET",headers:e?{"X-Ape-Token":e}:{}});r.ok&&(t=await r.json())}catch(e){console.error(e)}R(t),setTimeout(()=>{O(!0)})};e&&((0,n.useEffect)(()=>{(async()=>{(m.user||K||U||H)&&!m.isLoading&&r.asPath!==M?(console.log("OIDC::VALIDATE"),L(r.asPath),await Z()):m.user||U||H||m.isLoading||F.current||(console.log("OIDC::NOUSER - IS READY"),A(!0),O(!0),b())})()},[m.user,K,U,H,r.asPath,M,m.isLoading]),(0,n.useEffect)(()=>{m.error&&console.log("OIDC::AUTH_ERROR",m.error)},[m.error]),(0,n.useEffect)(()=>{globalThis?.window&&(globalThis.window.signIn=Y,globalThis.window.showPaywall=X)},[W])),(0,n.useEffect)(()=>{I&&y(w)},[I,w]),(0,n.useEffect)(()=>{w&&(q!==w.traits.email&&$?.(w.traits.email),v(w.traits.email))},[w,m?.user]),(0,n.useEffect)(()=>{globalThis?.window&&(globalThis.window.isRetailer=N?.isRetailer)},[N]),(0,n.useEffect)(()=>{w?.traits?.email&&V&&et()},[w?.traits?.email]);let et=async()=>{if("1"===localStorage.getItem("return_to_shopify_checkout")&&G&&z){localStorage.setItem("return_to_shopify_checkout","0");let e=new URLSearchParams({eftid:window?.eftId,cart:G.replace("gid://shopify/Cart/","").trim()});if("function"==typeof window.upTag){let t=window.upTag("app","linker");t&&e.set("_upl",t)}let t=z+"?"+e.toString(),r={body:{email:w.traits.email,return_to:t}},{url:i}=await V?.(r);window.location.href=i}};return(0,i.jsx)(g.Provider,{value:{isProfileReady:P,communityEnabled:e,isAuthorized:E,redirectTo:T,require:k,isReady:I,removeSession:J,signOut:Q,sign
4In:Y,profile:N,user:w},children:t})}},35596:function(e,t,r){var i;e.exports=i||function(e){if("u">typeof window&&window.crypto&&(t=window.crypto),"u">typeof self&&self.crypto&&(t=self.crypto),"u">typeof globalThis&&globalThis.crypto&&(t=globalThis.crypto),!t&&"u">typeof window&&window.msCrypto&&(t=window.msCrypto),!t&&void 0!==r.g&&r.g.crypto&&(t=r.g.crypto),!t)try{t=r(25156)}catch(e){}var t,i=function(){if(t){if("function"==typeof t.getRandomValues)try{return t.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof t.randomBytes)try{return t.randomBytes(4).readInt32LE()}catch(e){}}throw Error("Native crypto module could not be used to get secure random number.")},n=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),s={},a=s.lib={},o=a.Base={extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},l=a.WordArray=o.extend({init:function(e,t){e=this.words=e||[],void 0!=t?this.sigBytes=t:this.sigBytes=4*e.length},toString:function(e){return(e||c).stringify(this)},concat:function(e){var t=this.words,r=e.words,i=this.sigBytes,n=e.sigBytes;if(this.clamp(),i%4)for(var s=0;s<n;s++){var a=r[s>>>2]>>>24-s%4*8&255;t[i+s>>>2]|=a<<24-(i+s)%4*8}else for(var o=0;o<n;o+=4)t[i+o>>>2]=r[o>>>2];return this.sigBytes+=n,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=0xffffffff<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r<e;r+=4)t.push(i());return new l.init(t,e)}}),u=s.enc={},c=u.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,i=[],n=0;n<r;n++){var s=t[n>>>2]>>>24-n%4*8&255;i.push((s>>>4).toString(16)),i.push((15&s).toString(16))}return i.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i<t;i+=2)r[i>>>3]|=parseInt(e.substr(i,2),16)<<24-i%8*4;return new l.init(r,t/2)}},d=u.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,i=[],n=0;n<r;n++){var s=t[n>>>2]>>>24-n%4*8&255;i.push(String.fromCharCode(s))}return i.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i<t;i++)r[i>>>2]|=(255&e.charCodeAt(i))<<24-i%4*8;return new l.init(r,t)}},h=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(d.stringify(e)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(e){return d.parse(unescape(encodeURIComponent(e)))}},p=a.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=h.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,i=this._data,n=i.words,s=i.sigBytes,a=this.blockSize,o=s/(4*a),u=(o=t?e.ceil(o):e.max((0|o)-this._minBufferSize,0))*a,c=e.min(4*u,s);if(u){for(var d=0;d<u;d+=a)this._doProcessBlock(n,d);r=n.splice(0,u),i.sigBytes-=c}return new l.init(r,c)},clone:function(){var e=o.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});a.Hasher=p.extend({cfg:o.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new f.HMAC.init(e,r).finalize(t)}}});var f=s.algo={};return s}(Math)},35627:(e,t,r)=>{"use strict";r.d(t,{U:()=>o,s:()=>l});var i=r(29784),n=r(36017),s=r(89557);let a=null,o=new Promise(function(e){a=e}),l=(0,i.vt)(e=>({isLoggedIn:!1,user:null,ready:!1,waitForAuthReady:o,setUser:t=>e(()=>(a({user:t,isLoggedIn:!!t}),(0,n.Nl)(!!t),(0,s.jf)(!!t),(0,s.Qq)(t?"logged":null),{user:t,isLoggedIn:!!t})),setReady:t=>e(()=>({ready:t}))}))},36013:(e,t,r)=>{"use strict";
4Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return h}});let i=r(30758)._(r(55729)),n=r(67527),s=[],a=[],o=!1;function l(e){let t=e(),r={loading:!0,loaded:null,error:null};return r.promise=t.then(e=>(r.loading=!1,r.loaded=e,e)).catch(e=>{throw r.loading=!1,r.error=e,e}),r}class u{constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}}function c(e){return function(e,t){let r=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),s=null;function l(){if(!s){let t=new u(e,r);s={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return s.promise()}if(!o){let e=r.webpack&&1?r.webpack():r.modules;e&&a.push(t=>{for(let r of e)if(t.includes(r))return l()})}function c(e,t){let a;l(),(a=i.default.useContext(n.LoadableContext))&&Array.isArray(r.modules)&&r.modules.forEach(e=>{a(e)});let o=i.default.useSyncExternalStore(s.subscribe,s.getCurrentValue,s.getCurrentValue);return i.default.useImperativeHandle(t,()=>({retry:s.retry}),[]),i.default.useMemo(()=>{var t;return o.loading||o.error?i.default.createElement(r.loading,{isLoading:o.loading,pastDelay:o.pastDelay,timedOut:o.timedOut,error:o.error,retry:s.retry}):o.loaded?i.default.createElement((t=o.loaded)&&t.default?t.default:t,e):null},[e,o])}return c.preload=()=>l(),c.displayName="LoadableComponent",i.default.forwardRef(c)}(l,e)}function d(e,t){let r=[];for(;e.length;){let i=e.pop();r.push(i(t))}return Promise.all(r).then(()=>{if(e.length)return d(e,t)})}c.preloadAll=()=>new Promise((e,t)=>{d(s).then(e,t)}),c.preloadReady=(e=[])=>new Promise(t=>{let r=()=>(o=!0,t());d(a,e).then(r,r)}),window.__NEXT_PRELOADREADY=c.preloadReady;let h=c},36017:(e,t,r)=>{"use strict";r.d(t,{Bc:()=>o,JX:()=>c,Lm:()=>p,Nl:()=>l,Y0:()=>a,Yl:()=>u,gg:()=>d,k6:()=>h});var i=r(54351);let n={1:"Seitenpfadebene 1",2:"Seitenpfadebene 2",3:"Seitenpfadebene 3",4:"Seitenpfadebene 4",5:"Seitentyp",6:"Autor",7:"Hat Bildergalerie",8:"Hat Video",9:"Hat Testdaten",10:"Ist Affiliate",11:"Ist Produktseite",12:"Benutzer angemeldet",13:"Ist Bildergalerie Overlay",14:"Ist Einzelbild Overlay",15:"Contentful_ID",16:"Powered By",17:"Publikationsdatum",18:"Sprache",22:"Revier",23:"AI Inhalt",24:"Ist App",25:"Ist Marken Tag",26:"Tag Name",27:"Gallery Current Image",28:"Gallery Total Images"},s={Article:"Artikel",NavigationNode:"Rubrik",Home:"Startseite",Brand:"Marke",Tags:"Thema",Product:"Produkt",SSO:"SSO"},a=(e,t={})=>{let r=t?.customSlug?.split("?")?.[0]||"",i=(t?.livePathname||"").split("?")[0]||"",n=e?.__typename,a=r?.startsWith("/community/")||i?.startsWith("/community/"),o=e?.slug==="/"||"/"===r||""===r||"/app"===r||"/app/"===r||"/app/[[...speakingUrl]]"===r;return a?n="SSO":o?n="Home":t?.customSlug?.includes("tests-und-neuheiten")?n="Rubrik":e?.model?n="Model":e?.isBrand&&(n="Brand"),s[n]||n||"Unbekannt"},o=(e,t,r={locale:"de",isGalleryOverlay:!1,isImageOverlay:!1,isLoggedIn:!1,customSlug:null,isApp:!1})=>{let{isGalleryOverlay:a,isImageOverlay:o,isLoggedIn:l,locale:u="de",isApp:c=!1}=r||{},d=!!(e?.tagsCollection?.items||[]).find(e=>e?.slug==="affiliate"),h=e?.hasAiUsage,p=e?.authorsCollection?.items?.map(e=>e?.name)?.filter(Boolean)?.join(","),f=r?.customSlug||e?.slug||e?.speakingUrl,g=(f?.split("?")?.[0]||"")?.split("/")?.filter(Boolean)||[],m=e?.date||e?.sys?.firstPublishedAt,v="";try{v=m?(0,i.A)(new Date(m),"yyyy-MM-dd"):""}catch(e){console.error(e)}let b=e?.__typename,y=r?.customSlug?.split("?")?.[0]||"",w=(r?.livePathname||"").split("?")[0]||"",_=y?.startsWith("/community/")||w?.startsWith("/community/"),E=e?.slug==="/"||"/"===y||""===y||"/app"===y||"/app/"===y||"/app/[[...speakingUrl]]"===y;
4_?(b="SSO",g=(w||y).split("/").filter(Boolean)):E?(b="Home",g=["/"]):r?.customSlug?.includes("tests-und-neuheiten")?b="Rubrik":e?.model?b="Model":e?.isBrand&&(b="Brand");let S=s[b]||b,T="Hafen"===S?e?.location?.areas?.[0]?.name:null,C={1:g[0]||"",2:g[1]||"",3:g[2]||"",4:g[3]||"",5:S||"Unbekannt",6:p||"",7:e?.featureFlags?.includes("gallery")?"Ja":"Nein",8:e?.featureFlags?.includes("video")?"Ja":"Nein",9:e?.featureFlags?.includes("testdata")?"Ja":"Nein",10:d?"Ja":"Nein",11:"Produkt"===S?"Ja":"Nein",12:l?"Ja":"Nein",13:a?"Ja":"Nein",14:o?"Ja":"Nein",15:e?.sys?.id||"",16:e?.tagsCollection?.items?.find(e=>e?.isPoweredBy)?.title||"",17:v,18:u,22:T||"",23:h&&0!==parseInt(h||"0")?"Ja":"Nein",24:c?"Ja":"Nein"};return Object.keys(C).map(e=>({id:e,name:n[e],value:C[e]}))},l=(e=!1)=>{let t=e?"Ja":"Nein";console.debug(`PIWIK :: SESSION :: setCustomDimensionValue 19 (Benutzer angemeldet) :: ${t}`),h(["setCustomDimensionValue",19,t])},u=(e=!1)=>{let t=e?"Ja":"Nein";console.debug(`PIWIK :: SESSION :: setCustomDimensionValue 20 (Hat Premium) :: ${t}`),h(["setCustomDimensionValue",20,t])},c=e=>{if(!Array.isArray(e))return;let t=e.join(",");console.debug(`PIWIK :: SESSION :: setCustomDimensionValue 21 (Abonnements) :: ${t}`),h(["setCustomDimensionValue",21,t])},d=e=>{e&&(console.debug(`PIWIK :: SESSION :: setCustomDimensionValue 15 (Contentful_ID) :: ${e}`),h(["setCustomDimensionValue",15,`${e}`]))},h=function(e){try{if(window.__trackingStateDenied)return!1;if(!Array.isArray(e))throw Error(`Invalid Piwik value ${JSON.stringify(e)}`);return window._ppas=window?._ppas||[],window?._ppas.push(e),!0}catch(e){return console.error(`ERROR sending data to Piwik: ${e}`),!1}},p=function(e){try{if(window.__trackingStateDenied)return!1;return window.dataLayer=window?.dataLayer||[],window?.dataLayer.push(e)}catch(e){console.error(`ERROR sending data to Piwik dataLayer: ${e}`)}}},37051:(e,t,r)=>{"use strict";r.d(t,{As:()=>m,OJ:()=>g});var i=r(55729),n=r(78687),s=i.createContext(void 0);s.displayName="AuthContext";var a={isLoading:!0,isAuthenticated:!1},o=(e,t)=>{switch(t.type){case"INITIALISED":case"USER_LOADED":return{...e,user:t.user,isLoading:!1,isAuthenticated:!!t.user&&!t.user.expired,error:void 0};case"USER_SIGNED_OUT":case"USER_UNLOADED":return{...e,user:void 0,isAuthenticated:!1};case"NAVIGATOR_INIT":return{...e,isLoading:!0,activeNavigator:t.method};case"NAVIGATOR_CLOSE":return{...e,isLoading:!1,activeNavigator:void 0};case"ERROR":return{...e,isLoading:!1,error:t.error};default:return{...e,isLoading:!1,error:Error(`unknown type ${t.type}`)}}},l=e=>t=>t instanceof Error?t:Error(e),u=l("Login failed"),c=l("Sign-out failed"),d=["clearStaleState","querySessionStatus","revokeTokens","startSilentRenew","stopSilentRenew"],h=["signinPopup","signinSilent","signinRedirect","signinResourceOwnerCredentials","signoutPopup","signoutRedirect","signoutSilent"],p=e=>()=>{throw Error(`UserManager#${e} was called from an unsupported context. If this is a server-rendered page, defer this call with useEffect() or pass a custom UserManager implementation.`)},f="u"<typeof window?null:n.$5,g=e=>{let{children:t,onSigninCallback:r,skipSigninCallback:n,matchSignoutCallback:l,onSignoutCallback:g,onRemoveUser:m,onSignoutRedirect:v,onSignoutPopup:b,implementation:y=f,userManager:w,..._}=e,[E]=i.useState(()=>null!=w?w:y?new y(_):{settings:_}),[S,T]=i.useReducer(o,a),C=i.useMemo(()=>Object.assign({settings:E.settings,events:E.events},Object.fromEntries(d.map(e=>{var t,r;return[e,null!=(r=null==(t=E[e])?void 0:t.bind(E))?r:p(e)]})),Object.fromEntries(h.map(e=>[e,E[e]?async t=>{T({type:"NAVIGATOR_INIT",method:e});try{return await E[e](t)}catch(e){return T({type:"ERROR",error:e}),null}finally{T({type:"NAVIGATOR_CLOSE"})}}:p(e)]))),[E]),k=i.useRef(!1);i.useEffect(()=>{E&&!k.current&&(k.current=!0,(async()=>{let e=null;try{((e=window.location)=>{let t=new URLSearchParams(e.search);return!!((t.get("code")||t.get("error"))&&t.get("state")||((t=new URLSearchParams(e.hash.replace("#","?"))).get("code")||t.get("error"))&&t.get("state"))})()&&!n&&(e=await E.signinCallback(),r&&await r(e)),e=e||await E.getUser(),T({type:"INITIALISED",user:e})}catch(e){T({type:"ERROR",error:u(e)})}try{if(l&&l(E.settings)){let e=await E.signoutCallback();g&&await g(e)}}catch(e){T({type:"ERROR",error:c(e)})}})())},[E,n,r,g,l]),i.useEffect(()=>{if(!E)return;let e=e=>{T({type:"USER_LOADED",user:e})};E.events.addUserLoaded(e);let t=()=>{T({type:"USER_UNLOADED"})};E.events.addUserUnloaded(t);let r=()=>{T({type:"USER_SIGNED_OUT"})};E.events.addUserSignedOut(r);let i=e=>{T({type:"ERROR",error:e})};return E.events.addSilentRenewError(i),()=>{E.events.removeUserLoaded(e),E.events.removeUserUnloaded(t),E.events.removeUserSignedOut(r),E.events.removeSilentRenewError(i)}},[E]);let x=i.useCallback(E?()=>E.removeUser().then(m):p("removeUser"),[E,m]),I=i.useCallback(e=>C.signoutRedirect(e).then(v),[C.signoutRedirect,v]),A=i.useCallback(e=>C.signoutPopup(e).then(b),[C.signoutPopup,b]),P=i.useCallback(e=>C.signoutSilent(e),[C.signoutSilent]),O=i.useMemo(()=>({...S,...C,removeUser:x,signoutRedirect:I,signoutPopup:A,signoutSilent:P}),[S,C,x]);return i.createElement(s.Provider,{value:O},t)},m=()=>{let e=i.useContext(s);return e||console.warn("AuthProvider context is undefined, please verify you are calling useAuth() as child of a <AuthProvider> component."),e}},37374:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var i=r(55729),n=r(52855);function s(e){var t=(0,i.useContext)(n.Ay);if(!t)throw Error("Missing <CookiesProvider>");var r=t.getAll(),s=(0,i.useState)(r),a=s[0],o=s[1],l=(0,i.useRef)(a);return"u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement&&(0,i.useLayoutEffect)(function(){function r(){var r=t.getAll();(function(e,t,r){if(!e)return!0;for(var i=0;i<e.length;i++){var n=e[i];if(t[n]!==r[n])return!0}return!1})(e||null,r,l.current)&&o(r),l.current=r}return t.addChangeListener(r),function(){t.removeChangeListener(r)}},[t]),[a,(0,i.useMemo)(function(){return t.set.bind(t)},[t]),(0,i.useMemo)(function(){return t.remove.bind(t)},[t])]}},37990:(e,t,r)=>{"use strict";r.r(t),r.d(t,{FacebookPixel:()=>l});var i=r(6029),n=r(13675),s=r(683),a=r(95669),o=r.n(a);let l=()=>{let e=(0,s.getActive)()?.env?.FACEBOOK_PIXEL_ID,t=(0,n.Y)("Facebook (Meta)");return e&&t?(0,i.jsxs)(o(),{children:[(0,i.jsx)("script",{dangerouslySetInnerHTML:{__html:`
5                        !function(f,b,e,v,n,t,s)
6                        {if(f.fbq)return;n=f.fbq=function(){n.callMethod?
7                        n.callMethod.apply(n,arguments):n.queue.push(arguments)};
8                        if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
9                        n.queue=[];t=b.createElement(e);t.async=!0;
10                        t.src=v;s=b.getElementsByTagName(e)[0];
11                        s.parentNode.insertBefore(t,s)}(window, document,'script',
12                        'https://connect.facebook.net/en_US/fbevents.js');
13                        fbq('init', '${e}');
14                        fbq('track', 'PageView');
15                    `}}),(0,i.jsx)("noscript",{children:(0,i.jsx)("img",{height:"1",width:"1",style:{display:"none"},src:`https://www.facebook.com/tr?id=${e}&ev=PageView&noscript=1`,alt:""})})]}):null}},42418:e=>{e.exports={"editor-item":"ArticleDetail_editor-item__rRM1N",editorItem:"ArticleDetail_editor-item__rRM1N"}},42691:(e,t,r)=>{"use strict";r.d(t,{R:()=>d});var i=r(55729),n=r(93462),s=r(80145),a=["init","_direction","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_freeModeMomentum","_freeModeMomentumRatio","_freeModeMomentumBounce","_freeModeMomentumBounceRatio","_freeModeMomentumVelocityRatio","_freeModeSticky","_freeModeMinimumVelocity","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","_slidesPerColumn","_slidesPerColumnFill","_slidesPerGroup","_slidesPerGroupSkip","_centeredSlides","_centeredSlidesB
15ounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_watchSlidesVisibility","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_preloadImages","updateOnImagesReady","_loop","_loopAdditionalSlides","_loopedSlides","_loopFillGroupWithBlank","loopPreventsSlide","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideBlankClass","slideActiveClass","slideDuplicateActiveClass","slideVisibleClass","slideDuplicateClass","slideNextClass","slideDuplicateNextClass","slidePrevClass","slideDuplicatePrevClass","wrapperClass","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","hashNavigation","history","keyboard","lazy","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom"];function o(e,t){var r=t.slidesPerView;if(t.breakpoints){var i=n.A.prototype.getBreakpoint(t.breakpoints),s=i in t.breakpoints?t.breakpoints[i]:void 0;s&&s.slidesPerView&&(r=s.slidesPerView)}var a=Math.ceil(parseFloat(t.loopedSlides||r,10));return(a+=t.loopAdditionalSlides)>e.length&&(a=e.length),a}var l=r(4954),u=["className","tag","wrapperTag","children","onSwiper"];function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e}).apply(this,arguments)}var d=(0,i.forwardRef)(function(e,t){var r,d,h,p,f,g,m,v,b=void 0===e?{}:e,y=b.className,w=b.tag,_=b.wrapperTag,E=b.children,S=b.onSwiper,T=function(e,t){if(null==e)return{};var r,i,n={},s=Object.keys(e);for(i=0;i<s.length;i++)r=s[i],t.indexOf(r)>=0||(n[r]=e[r]);return n}(b,u),C=!1,k=(0,i.useState)("swiper-container"),x=k[0],I=k[1],A=(0,i.useState)(null),P=A[0],O=A[1],N=(0,i.useState)(!1),R=N[0],M=N[1],L=(0,i.useRef)(!1),D=(0,i.useRef)(null),B=(0,i.useRef)(null),j=(0,i.useRef)(null),U=(0,i.useRef)(null),H=(0,i.useRef)(null),F=(0,i.useRef)(null),q=(0,i.useRef)(null),$=(0,i.useRef)(null),G=(void 0===(r=T)&&(r={}),d={on:{}},h={},p={},(0,s.X$)(d,n.A.defaults),(0,s.X$)(d,n.A.extendedDefaults),d._emitClasses=!0,d.init=!1,f={},g=a.map(function(e){return e.replace(/_/,"")}),Object.keys(r).forEach(function(e){g.indexOf(e)>=0?(0,s.Gv)(r[e])?(d[e]={},p[e]={},(0,s.X$)(d[e],r[e]),(0,s.X$)(p[e],r[e])):(d[e]=r[e],p[e]=r[e]):0===e.search(/on[A-Z]/)&&"function"==typeof r[e]?h[""+e[2].toLowerCase()+e.substr(3)]=r[e]:f[e]=r[e]}),["navigation","pagination","scrollbar"].forEach(function(e){!0===d[e]&&(d[e]={}),!1===d[e]&&delete d[e]}),{params:d,passedParams:p,rest:f,events:h}),z=G.params,V=G.passedParams,W=G.rest,K=G.events,Y=(m=[],v={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]},i.Children.toArray(E).forEach(function(e){if(e.type&&"SwiperSlide"===e.type.displayName)m.push(e);else if(e.props&&e.props.slot&&v[e.props.slot])v[e.props.slot].push(e);else if(e.props&&e.props.children){var t=function e(t){var r=[];return i.Children.toArray(t).forEach(function(t){t.type&&"SwiperSlide"===t.type.displayName?r.push(t):t.props&&t.props.children&&e(t.props.children).forEach(function(e){return r.push(e)})}),r}(e.props.children);t.length>0?t.forEach(function(e){return m.push(e)}):v["container-end"].push(e)}else v["container-end"].push(e)}),{slides:m,slots:v}),X=Y.slides,Q=Y.slots,J=function(){M(!R)};if((Object.assign(z.on,{_containerClasses:function(e,t){I(t)}}),!D.current)&&(Object.assign(z.on,K),C=!0,B.current=new n.A(z),B.current.loopCreate=function(){},B.current.loopDestroy=function(){},z.loop&&(B.current.loopedSlides=o(X,z)),B.current.virtual&&B.current.params.virtual.enabled)){B.current.virtual.slides=X;var Z={cache:!1,renderExternal:O,renderExternalUpdate:!1};(0,s.X$)(B.current.params.virtual,Z),(0,s.X$)(B.current.originalParams.virtual,Z)}B.current&&B.current.on("_beforeBreakpoint",J);
15var ee=function(){!C&&K&&B.current&&Object.keys(K).forEach(function(e){B.current.on(e,K[e])})},et=function(){K&&B.current&&Object.keys(K).forEach(function(e){B.current.off(e,K[e])})};return(0,i.useEffect)(function(){return function(){B.current&&B.current.off("_beforeBreakpoint",J)}}),(0,i.useEffect)(function(){!L.current&&B.current&&(B.current.emitSlidesClasses(),L.current=!0)}),(0,l.E)(function(){if(t&&(t.current=D.current),D.current){var e,r,i,n,a,o,l;return e={el:D.current,nextEl:H.current,prevEl:F.current,paginationEl:q.current,scrollbarEl:$.current,swiper:B.current},r=e.el,i=e.nextEl,n=e.prevEl,a=e.paginationEl,o=e.scrollbarEl,l=e.swiper,(0,s.qi)(z)&&i&&n&&(l.params.navigation.nextEl=i,l.originalParams.navigation.nextEl=i,l.params.navigation.prevEl=n,l.originalParams.navigation.prevEl=n),(0,s.Oj)(z)&&a&&(l.params.pagination.el=a,l.originalParams.pagination.el=a),(0,s.IB)(z)&&o&&(l.params.scrollbar.el=o,l.originalParams.scrollbar.el=o),l.init(r),S&&S(B.current),function(){B.current&&!B.current.destroyed&&B.current.destroy(!0,!1)}}},[]),(0,l.E)(function(){ee();var e,t,r,i,n,o,l,u,c,d,h,p,f,g,m,v,b,y,w,_,E,S,T=function(e,t,r,i){var n=[];if(!t)return n;var o=function(e){0>n.indexOf(e)&&n.push(e)},l=i.map(function(e){return e.key}),u=r.map(function(e){return e.key});return l.join("")!==u.join("")&&o("children"),i.length!==r.length&&o("children"),a.filter(function(e){return"_"===e[0]}).map(function(e){return e.replace(/_/,"")}).forEach(function(r){if(r in e&&r in t)if((0,s.Gv)(e[r])&&(0,s.Gv)(t[r])){var i=Object.keys(e[r]),n=Object.keys(t[r]);i.length!==n.length?o(r):(i.forEach(function(i){e[r][i]!==t[r][i]&&o(r)}),n.forEach(function(i){e[r][i]!==t[r][i]&&o(r)}))}else e[r]!==t[r]&&o(r)}),n}(V,j.current,X,U.current);return j.current=V,U.current=X,T.length&&B.current&&!B.current.destroyed&&(l=(e={swiper:B.current,slides:X,passedParams:V,changedParams:T,nextEl:H.current,prevEl:F.current,scrollbarEl:$.current,paginationEl:q.current}).swiper,u=e.slides,c=e.passedParams,d=e.changedParams,h=e.nextEl,p=e.prevEl,f=e.scrollbarEl,g=e.paginationEl,m=d.filter(function(e){return"children"!==e&&"direction"!==e}),v=l.params,b=l.pagination,y=l.navigation,w=l.scrollbar,_=l.virtual,E=l.thumbs,d.includes("thumbs")&&c.thumbs&&c.thumbs.swiper&&v.thumbs&&!v.thumbs.swiper&&(t=!0),d.includes("controller")&&c.controller&&c.controller.control&&v.controller&&!v.controller.control&&(r=!0),d.includes("pagination")&&c.pagination&&(c.pagination.el||g)&&(v.pagination||!1===v.pagination)&&b&&!b.el&&(i=!0),d.includes("scrollbar")&&c.scrollbar&&(c.scrollbar.el||f)&&(v.scrollbar||!1===v.scrollbar)&&w&&!w.el&&(n=!0),d.includes("navigation")&&c.navigation&&(c.navigation.prevEl||p)&&(c.navigation.nextEl||h)&&(v.navigation||!1===v.navigation)&&y&&!y.prevEl&&!y.nextEl&&(o=!0),S=function(e){l[e]&&(l[e].destroy(),"navigation"===e?(v[e].prevEl=void 0,v[e].nextEl=void 0,l[e].prevEl=void 0,l[e].nextEl=void 0):(v[e].el=void 0,l[e].el=void 0))},m.forEach(function(e){if((0,s.Gv)(v[e])&&(0,s.Gv)(c[e]))(0,s.X$)(v[e],c[e]);else{var t=c[e];(!0===t||!1===t)&&("navigation"===e||"pagination"===e||"scrollbar"===e)?!1===t&&S(e):v[e]=c[e]}}),d.includes("children")&&_&&v.virtual.enabled?(_.slides=u,_.update(!0)):d.includes("children")&&l.lazy&&l.params.lazy.enabled&&l.lazy.load(),t&&E.init()&&E.update(!0),r&&(l.controller.control=v.controller.control),i&&(g&&(v.pagination.el=g),b.init(),b.render(),b.update()),n&&(f&&(v.scrollbar.el=f),w.init(),w.updateSize(),w.setTranslate()),o&&(h&&(v.navigation.nextEl=h),p&&(v.navigation.prevEl=p),y.init(),y.update()),d.includes("allowSlideNext")&&(l.allowSlideNext=c.allowSlideNext),d.includes("allowSlidePrev")&&(l.allowSlidePrev=c.allowSlidePrev),d.includes("direction")&&l.changeDirection(c.direction,!1),l.update()),function(){et()}}),(0,l.E)(function(){var e;(e=B.current)&&!e.destroyed&&e.params.virtual&&(!e.params.virtual||e.params.virtual.enabled)&&(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.lazy&&e.params.lazy.enabled&&e.lazy.load(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())},[P]),i.createElement(void 0===w?"div":w,c({ref:D,className:(0,s.Cv)(""+x+(y?" "+y:""))},W),Q["container-start"],(0,s.qi)(z)&&i.createElement(i.Fragment,null,i.createElement("div",{ref:F,className:"swiper-button-prev"}),i.createElement("div",{ref:H,className:"swiper-button-next"})),(0,s.IB)(z)&&i.createElement("div",{ref:$,className:"swiper-scrollbar"}),(0,s.Oj)(z)&&i.createElement("div",{ref:q,className:"swiper-pagination"}),i.createElement(void 0===_?"div":_,{className:"swiper-wrapper"},Q["wrapper-start"],function(){if(z.virtual){var e=B.current;if(!P)return null;var t,r=e.isHorizontal()?((t={})[e.rtlTranslate?"right":"left"]=P.offset+"px",t):{top:P.offset+"px"};return X.filter(function(e,t){return t>=P.from&&t<=P.to}).map(function(t){return i.cloneElement(t,{swiper:e,style:r})})}return!z.loop||B.current&&B.current.destroyed?X.map(function(e){return i.cloneElement(e,{swiper:B.current})}):function(e,t,r){var n=t.map(function(t,r){return i.cloneElement(t,{swiper:e,"data-swiper-slide-index":r})});function s(e,t,n){return i.cloneElement(e,{key:e.key+"-duplicate-"+t+"-"+n,className:(e.props.className||"")+" "+r.slideDuplicateClass})}if(r.loopFillGroupWithBlank){var a=r.slidesPerGroup-n.length%r.slidesPerGroup;
15if(a!==r.slidesPerGroup)for(var l=0;l<a;l+=1){var u=i.createElement("div",{className:r.slideClass+" "+r.slideBlankClass});n.push(u)}}"auto"!==r.slidesPerView||r.loopedSlides||(r.loopedSlides=n.length);var c=o(n,r),d=[],h=[];return n.forEach(function(e,t){t<c&&h.push(s(e,t,"prepend")),t<n.length&&t>=n.length-c&&d.push(s(e,t,"append"))}),e&&(e.loopedSlides=c),[].concat(d,n,h)}(B.current,X,z)}(),Q["wrapper-end"]),Q["container-end"])});d.displayName="Swiper"},43554:(e,t,r)=>{"use strict";r.d(t,{I:()=>i});let i=(0,r(29784).vt)(e=>({isPaywallBlocked:!1,setPaywallBlocked:t=>e(()=>({isPaywallBlocked:t})),setCurrentPageEvaluated:t=>{console.debug(`UpScore :: _pw :: current page evaluated: ${t?"true":"false"}`),e(()=>({isCurrentPageEvaluated:t}))},isCurrentPageEvaluated:!1}))},44779:(e,t,r)=>{"use strict";r.d(t,{m:()=>a});var i=r(7881),n=r(47899);class s extends i.Q{constructor(){super(),this.setup=e=>{if(!n.S$&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach(({listener:e})=>{e()})}isFocused(){return"boolean"==typeof this.focused?this.focused:"u"<typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}}let a=new s},44888:(e,t,r)=>{"use strict";r.d(t,{or:()=>c});var i=r(683),n=r(25458),s=r(49955);let a=r(64387).P,o=async e=>{if(!e)return null;let t=d(e);if(!t)return null;try{if(t.includes(".js"))return r(78786)(`./${t}`).then(e=>e.default);return r(92448)(`./${t}.gql`).then(e=>e.default)}catch(t){return console.log(`error reading stream ${e} in getStream: ${t.toString()}`),null}},l=async(e,t)=>{let r=await o(e),n={$$_parsed:!0};if(!r)return null;if(t.$$_parsed)return t;if(e.includes(".js")){let e=r.parseArgs||(e=>e);n={...n,...e(t)}}else{let e=[...new Set(String(r).match(/\$[a-zA-Z0-9]+/g)||[])].map(e=>e.replace(/^\$/,"")),s={};if(e.length)for(let r=0;r<e.length;r++){let n=e[r];if("portal"===n&&!t[n]){let e=(0,i.getActive)();e&&(s[n]=e?.id)}t[n]&&(s[n]=t[n])}n={...n,...s}}return n},u={},c=async(e,t={})=>{let r=await o(e),i=null;if(!r)return i;let c=(0,n.a)(`getStreamValue-parseStreamArgs-${e}`,1e3),d=await l(e,t);c();let h=!(d.__blacklist&&Array.isArray(d.__blacklist)),p=h?`${e}-${JSON.stringify(d)}`:null;if(h&&p&&u[p])return(0,s.s)().recordCacheHit(`getStreamValue-${e}`),u[p];let f=(async()=>{let t=(0,n.a)(`getStreamValue-${e}`);try{i=e.includes(".js")?await r(d,e):await a(r,d,e)}catch(t){throw h&&p&&delete u[p],console.error(`FATAL ERROR in getStreamValue ${e} with variables ${JSON.stringify(d)}: ${t.message}`),t}finally{t()}return i})();return h&&p&&(u[p]=f,setTimeout(()=>{delete u[p]},1e4)),f},d=e=>{if(!e)return"";let t=RegExp('["]*\\$\\$[_]*STREAM__(.*)__["]*',"g");return e.replace(t,"$1").trim()}},47899:(e,t,r)=>{"use strict";r.d(t,{Cp:()=>f,F$:()=>h,G6:()=>E,MK:()=>c,Od:()=>p,S$:()=>i,Zw:()=>s,b_:()=>u,f8:()=>m,gn:()=>a,j3:()=>o,jY:()=>S,lQ:()=>n,nJ:()=>d,pl:()=>T,vh:()=>l,yy:()=>_});let i="u"<typeof window||"Deno"in window;function n(){}function s(e,t){return"function"==typeof e?e(t):e}function a(e){return"number"==typeof e&&e>=0&&e!==1/0}function o(e,t){return Math.max(e+(t||0)-Date.now(),0)}function l(e,t,r){return w(e)?"function"==typeof t?{...r,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function u(e,t,r){return w(e)?[{...t,queryKey:e},r]:[e||{},t]}function c(e,t){let{type:r="all",exact:i,fetchStatus:n,predicate:s,queryKey:a,stale:o}=e;if(w(a))if(i){if(t.queryHash!==h(a,t.options))return!1}else{var l;if(l=t.queryKey,!g(l,a))return!1}if("all"!==r){let e=t.isActive();if("active"===r&&!e||"inactive"===r&&e)return!1}return("boolean"!=typeof o||t.isStale()===o)&&(void 0===n||n===t.state.fetchStatus)&&(!s||!!s(t))}function d(e,t){let{exact:r,fetching:i,predicate:n,mutationKey:s}=e;if(w(s)){if(!t.options.mutationKey)return!1;if(r){if(p(t.options.mutationKey)!==p(s))return!1}else{var a;if(a=t.options.mutationKey,!g(a,s))return!1}}return("boolean"!=typeof i||"loading"===t.state.status===i)&&(!n||!!n(t))}function h(e,t){return((null==t?void 0:t.queryKeyHashFn)||p)(e)}function p(e){return JSON.stringify(e,(e,t)=>b(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function f(e,t){return g(e,t)}function g(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&!Object.keys(t).some(r=>!g(e[r],t[r]))}function m(e,t){if(e&&!t||t&&!e)return!1;for(let r in e)if(e[r]!==t[r])return!1;return!0}function v(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function b(e){if(!y(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!!y(r)&&!!r.hasOwnProperty("isPrototypeOf")}function y(e){return"[object Object]"===Object.prototype.toString.call(e)}function w(e){return Array.isArray(e)}function _(e){return new Promise(t=>{setTimeout(t,e)})}function E(e){_(0).then(e)}function S(){if("function"==typeof AbortController)return new AbortController}function T(e,t,r){return null!=r.isDataEqual&&r.isDataEqual(e,t)?e:"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?function e(t,r){if(t===r)return t;let i=v(t)&&v(r);if(i||b(t)&&b(r)){let n=i?t.length:Object.keys(t).length,s=i?r:Object.keys(r),a=s.length,o=i?[]:{},l=0;for(let n=0;n<a;n++){let a=i?n:s[n];
15o[a]=e(t[a],r[a]),o[a]===t[a]&&l++}return n===a&&l===n?t:o}return r}(e,t):t}},48093:(e,t,r)=>{"use strict";r.d(t,{lh:()=>d});var i=r(6029),n=r(75828),s=r.n(n),a=r(8032),o=r(51383),l=r(4212);let u=({children:e})=>(0,i.jsx)("div",{className:s()({"px-4 mx-auto max-w-screen-xl":!0}),children:(0,i.jsx)(a.l,{children:e})}),c=({children:e})=>(0,i.jsx)(o.g,{children:e}),d={"paragraph-in-slot":{wrapper:c},paragraph:{wrapper:u},layout:{classNameArticle:"px-4 md:px-0 mx-auto w-full",classNameSite:"px-4 md:px-0 mx-auto w-full"},"heading-in-slot":{wrapper:c},heading:{wrapper:u},"unordered-list-in-slot":{wrapper:c},"unordered-list":{wrapper:u},"ordered-list-in-slot":{wrapper:c},"ordered-list":{wrapper:u},"plus-list-in-slot":{wrapper:c},"plus-list":{wrapper:u},"blockquote-in-slot":{wrapper:c},blockquote:{wrapper:u},"divider-in-slot":{wrapper:c},divider:{wrapper:u},"storychief-in-slot":{isInSlot:!0},storybook:{wrapper:l.EQ}}},49832:(e,t,r)=>{"use strict";r.d(t,{k:()=>n});let{useRef:i}=r(55729);function n(e){let t=i();return r=>{let i=e(r);return!function(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[r,i]of e)if(!Object.is(i,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}let r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let i of r)if(!Object.prototype.hasOwnProperty.call(t,i)||!Object.is(e[i],t[i]))return!1;return!0}(t.current,i)?t.current=i:t.current}}},49955:(e,t,r)=>{"use strict";r.d(t,{s:()=>c});var i=r(29143);let n=()=>"true"===i.env.PERF_TRACKING_ENABLED,s=null,a=null,o={startRequest:()=>{},startSpan:()=>null,endSpan:()=>{},recordCacheHit:()=>{},endRequest:()=>null,getLastReport:()=>null,isEnabled:()=>!1,run:e=>e()},l=e=>{if(0===e.spanStack.length)return e.phases;let t=e.spanStack[e.spanStack.length-1];return t.children||(t.children=[]),t.children},u={isEnabled:n,run:e=>e(),startRequest(e){n()&&(a={url:e,startTime:Date.now(),duration:null,phases:[],spanStack:[],summary:null})},startSpan(e,t){if(!n())return null;let r=a;if(!r)return null;let i={name:e,startTime:Date.now(),duration:null,...t};return l(r).push(i),r.spanStack.push(i),i},endSpan(e){if(!n())return;let t=a;if(t&&0!==t.spanStack.length)if(e){let r=t.spanStack.indexOf(e);-1!==r&&t.spanStack.splice(r,1),e.duration=Date.now()-e.startTime,delete e.startTime}else{let e=t.spanStack.pop();e.duration=Date.now()-e.startTime,delete e.startTime}},recordCacheHit(e){if(!n())return;let t=a;t&&l(t).push({name:e||"cache-hit",duration:0,cacheHit:!0})},endRequest(){let e,t;if(!n())return null;let r=a;if(!r)return null;for(r.duration=Date.now()-r.startTime;r.spanStack.length>0;)this.endSpan();e={totalDuration:r.duration,contentfulQueries:0,cacheHits:0,cacheMisses:0,loaderCount:0,serialLoaderCount:0},(t=r=>{for(let i of r)("contentful-graphql"===i.type||"contentful-rest"===i.type)&&e.contentfulQueries++,!0===i.cacheHit&&e.cacheHits++,!1===i.cacheHit&&e.cacheMisses++,i.name&&i.name.startsWith("executeElement-")&&(e.loaderCount++,i.serial&&e.serialLoaderCount++),i.children&&t(i.children)})(r.phases),r.summary=e;let i={url:r.url,duration:r.duration,phases:r.phases,summary:r.summary};return delete r.startTime,s=i,a=null,i},getLastReport:()=>s};n();let c=()=>n()?u:o},51383:(e,t,r)=>{"use strict";r.d(t,{g:()=>a});var i=r(6029),n=r(42418),s=r.n(n);let a=e=>(0,i.jsx)("div",{className:" editor-item "+s().editorItem,...e})},52855:(e,t,r)=>{"use strict";r.d(t,{Kq:()=>a,Ay:()=>o});var i=r(55729);let n=r(81727).A;var s=i.createContext(new n),a=s.Provider;s.Consumer;let o=s},53028:(e,t,r)=>{"use strict";r.d(t,{e:()=>i});let i=(0,r(55729).createContext)({activeConfig:"default",cloudinary:{apiKey:null,cloudName:null},contentful:{root:null,accessToken:null}})},54351:(e,t,r)=>{"use strict";r.d(t,{A:()=>j});var i=r(63984),n=r(15259),s=r(56441),a=r(25270);function o(e){(0,n.A)(1,arguments);var t=(0,s.A)(e),r=t.getUTCDay();return t.setUTCDate(t.getUTCDate()-(7*(r<1)+r-1)),t.setUTCHours(0,0,0,0),t}function l(e){(0,n.A)(1,arguments);var t=(0,s.A)(e),r=t.getUTCFullYear(),i=new Date(0);i.setUTCFullYear(r+1,0,4),i.setUTCHours(0,0,0,0);var a=o(i),l=new Date(0);l.setUTCFullYear(r,0,4),l.setUTCHours(0,0,0,0);var u=o(l);return t.getTime()>=a.getTime()?r+1:t.getTime()>=u.getTime()?r:r-1}var u=r(12506);function c(e,t){(0,n.A)(1,arguments);var r,i,o,l,c,d,h,p,f=(0,u.q)(),g=(0,a.A)(null!=(r=null!=(i=null!=(o=null!=(l=null==t?void 0:t.weekStartsOn)?l:null==t||null==(c=t.locale)||null==(d=c.options)?void 0:d.weekStartsOn)?o:f.
15weekStartsOn)?i:null==(h=f.locale)||null==(p=h.options)?void 0:p.weekStartsOn)?r:0);if(!(g>=0&&g<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=(0,s.A)(e),v=m.getUTCDay();return m.setUTCDate(m.getUTCDate()-(7*(v<g)+v-g)),m.setUTCHours(0,0,0,0),m}function d(e,t){(0,n.A)(1,arguments);var r,i,o,l,d,h,p,f,g=(0,s.A)(e),m=g.getUTCFullYear(),v=(0,u.q)(),b=(0,a.A)(null!=(r=null!=(i=null!=(o=null!=(l=null==t?void 0:t.firstWeekContainsDate)?l:null==t||null==(d=t.locale)||null==(h=d.options)?void 0:h.firstWeekContainsDate)?o:v.firstWeekContainsDate)?i:null==(p=v.locale)||null==(f=p.options)?void 0:f.firstWeekContainsDate)?r:1);if(!(b>=1&&b<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setUTCFullYear(m+1,0,b),y.setUTCHours(0,0,0,0);var w=c(y,t),_=new Date(0);_.setUTCFullYear(m,0,b),_.setUTCHours(0,0,0,0);var E=c(_,t);return g.getTime()>=w.getTime()?m+1:g.getTime()>=E.getTime()?m:m-1}function h(e,t){for(var r=Math.abs(e).toString();r.length<t;)r="0"+r;return(e<0?"-":"")+r}let p=function(e,t){var r=e.getUTCFullYear(),i=r>0?r:1-r;return h("yy"===t?i%100:i,t.length)},f=function(e,t){var r=e.getUTCMonth();return"M"===t?String(r+1):h(r+1,2)},g=function(e,t){var r=t.length;return h(Math.floor(e.getUTCMilliseconds()*Math.pow(10,r-3)),t.length)};function m(e,t){var r=e>0?"-":"+",i=Math.abs(e),n=Math.floor(i/60),s=i%60;return 0===s?r+String(n):r+String(n)+(t||"")+h(s,2)}function v(e,t){return e%60==0?(e>0?"-":"+")+h(Math.abs(e)/60,2):b(e,t)}function b(e,t){var r=Math.abs(e);return(e>0?"-":"+")+h(Math.floor(r/60),2)+(t||"")+h(r%60,2)}let y={G:function(e,t,r){var i=+(e.getUTCFullYear()>0);switch(t){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});default:return r.era(i,{width:"wide"})}},y:function(e,t,r){if("yo"===t){var i=e.getUTCFullYear();return r.ordinalNumber(i>0?i:1-i,{unit:"year"})}return p(e,t)},Y:function(e,t,r,i){var n=d(e,i),s=n>0?n:1-n;return"YY"===t?h(s%100,2):"Yo"===t?r.ordinalNumber(s,{unit:"year"}):h(s,t.length)},R:function(e,t){return h(l(e),t.length)},u:function(e,t){return h(e.getUTCFullYear(),t.length)},Q:function(e,t,r){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return h(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,t,r){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return h(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,t,r){var i=e.getUTCMonth();switch(t){case"M":case"MM":return f(e,t);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(e,t,r){var i=e.getUTCMonth();switch(t){case"L":return String(i+1);case"LL":return h(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(e,t,r,i){var o=function(e,t){(0,n.A)(1,arguments);var r=(0,s.A)(e);return Math.round((c(r,t).getTime()-(function(e,t){(0,n.A)(1,arguments);var r,i,s,o,l,h,p,f,g=(0,u.q)(),m=(0,a.A)(null!=(r=null!=(i=null!=(s=null!=(o=null==t?void 0:t.firstWeekContainsDate)?o:null==t||null==(l=t.locale)||null==(h=l.options)?void 0:h.firstWeekContainsDate)?s:g.firstWeekContainsDate)?i:null==(p=g.locale)||null==(f=p.options)?void 0:f.firstWeekContainsDate)?r:1),v=d(e,t),b=new Date(0);return b.setUTCFullYear(v,0,m),b.setUTCHours(0,0,0,0),c(b,t)})(r,t).getTime())/6048e5)+1}(e,i);return"wo"===t?r.ordinalNumber(o,{unit:"week"}):h(o,t.length)},I:function(e,t,r){var i=function(e){(0,n.A)(1,arguments);var t=(0,s.A)(e);return Math.round((o(t).getTime()-(function(e){(0,n.A)(1,arguments);var t=l(e),r=new Date(0);return r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0),o(r)})(t).getTime())/6048e5)+1}(e);return"Io"===t?r.ordinalNumber(i,{unit:"week"}):h(i,t.length)},d:function(e,t,r){var i,n;return"do"===t?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):(i=e,n=t,h(i.getUTCDate(),n.length))},D:function(e,t,r){var i=function(e){(0,n.A)(1,arguments);var t=(0,s.A)(e),r=t.getTime();return t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0),Math.floor((r-t.getTime())/864e5)+1}(e);return"Do"===t?r.ordinalNumber(i,{unit:"dayOfYear"}):h(i,t.length)},E:function(e,t,r){var i=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(e,t,r,i){var n=e.getUTCDay(),s=(n-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return h(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(n,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},c:function(e,t,r,i){var n=e.getUTCDay(),s=(n-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return h(s,t.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(n,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(n,{width:"narrow",context:"standalone"});case"cccccc":return r.day(n,{width:"short",context:"standalone"});default:return r.day(n,{width:"wide",context:"standalone"})}},i:function(e,t,r){var i=e.getUTCDay(),n=0===i?7:i;switch(t){case"i":return String(n);case"ii":return h(n,t.length);case"io":return r.ordinalNumber(n,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(e,t,r){var i=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,r){var i,n=e.getUTCHours();switch(i=12===n?"noon":0===n?"midnight":n/12>
15=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,r){var i,n=e.getUTCHours();switch(i=n>=17?"evening":n>=12?"afternoon":n>=4?"morning":"night",t){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){var i,n,s=e.getUTCHours()%12;return 0===s&&(s=12),r.ordinalNumber(s,{unit:"hour"})}return i=e,n=t,h(i.getUTCHours()%12||12,n.length)},H:function(e,t,r){var i,n;return"Ho"===t?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):(i=e,n=t,h(i.getUTCHours(),n.length))},K:function(e,t,r){var i=e.getUTCHours()%12;return"Ko"===t?r.ordinalNumber(i,{unit:"hour"}):h(i,t.length)},k:function(e,t,r){var i=e.getUTCHours();return(0===i&&(i=24),"ko"===t)?r.ordinalNumber(i,{unit:"hour"}):h(i,t.length)},m:function(e,t,r){var i,n;return"mo"===t?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):(i=e,n=t,h(i.getUTCMinutes(),n.length))},s:function(e,t,r){var i,n;return"so"===t?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):(i=e,n=t,h(i.getUTCSeconds(),n.length))},S:function(e,t){return g(e,t)},X:function(e,t,r,i){var n=(i._originalDate||e).getTimezoneOffset();if(0===n)return"Z";switch(t){case"X":return v(n);case"XXXX":case"XX":return b(n);default:return b(n,":")}},x:function(e,t,r,i){var n=(i._originalDate||e).getTimezoneOffset();switch(t){case"x":return v(n);case"xxxx":case"xx":return b(n);default:return b(n,":")}},O:function(e,t,r,i){var n=(i._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+m(n,":");default:return"GMT"+b(n,":")}},z:function(e,t,r,i){var n=(i._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+m(n,":");default:return"GMT"+b(n,":")}},t:function(e,t,r,i){return h(Math.floor((i._originalDate||e).getTime()/1e3),t.length)},T:function(e,t,r,i){return h((i._originalDate||e).getTime(),t.length)}};var w=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},_=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}};let E={p:_,P:function(e,t){var r,i=e.match(/(P+)(p+)?/)||[],n=i[1],s=i[2];if(!s)return w(e,t);switch(n){case"P":r=t.dateTime({width:"short"});break;case"PP":r=t.dateTime({width:"medium"});break;case"PPP":r=t.dateTime({width:"long"});break;default:r=t.dateTime({width:"full"})}return r.replace("{{date}}",w(n,t)).replace("{{time}}",_(s,t))}};var S=["D","DD"],T=["YY","YYYY"];function C(e,t,r){if("YYYY"===e)throw RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").
15concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var k=r(17469),x=r(26483),I={date:(0,x.A)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,x.A)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,x.A)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},A=r(78862),P=r(17590),O=r(15404),N={code:"en-US",formatDistance:k.A,formatLong:I,formatRelative:A.A,localize:P.A,match:O.A,options:{weekStartsOn:0,firstWeekContainsDate:1}},R=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,M=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,L=/^'([^]*?)'?$/,D=/''/g,B=/[a-zA-Z]/;function j(e,t,r){(0,n.A)(2,arguments);var o,l,c,d,h,p,f,g,m,v,b,w,_,k,x,I,A,P,O,j=String(t),U=(0,u.q)(),H=null!=(l=null!=(c=null==r?void 0:r.locale)?c:U.locale)?l:N,F=(0,a.A)(null!=(d=null!=(h=null!=(p=null!=(f=null==r?void 0:r.firstWeekContainsDate)?f:null==r||null==(g=r.locale)||null==(m=g.options)?void 0:m.firstWeekContainsDate)?p:U.firstWeekContainsDate)?h:null==(v=U.locale)||null==(b=v.options)?void 0:b.firstWeekContainsDate)?d:1);if(!(F>=1&&F<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var q=(0,a.A)(null!=(w=null!=(_=null!=(k=null!=(x=null==r?void 0:r.weekStartsOn)?x:null==r||null==(I=r.locale)||null==(A=I.options)?void 0:A.weekStartsOn)?k:U.weekStartsOn)?_:null==(P=U.locale)||null==(O=P.options)?void 0:O.weekStartsOn)?w:0);if(!(q>=0&&q<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!H.localize)throw RangeError("locale must contain localize property");if(!H.formatLong)throw RangeError("locale must contain formatLong property");var $=(0,s.A)(e);if(!function(e){return(0,n.A)(1,arguments),(!!function(e){return(0,n.A)(1,arguments),e instanceof Date||"object"===(0,i.A)(e)&&"[object Date]"===Object.prototype.toString.call(e)}(e)||"number"==typeof e)&&!isNaN(Number((0,s.A)(e)))}($))throw RangeError("Invalid time value");var G=((o=new Date(Date.UTC($.getFullYear(),$.getMonth(),$.getDate(),$.getHours(),$.getMinutes(),$.getSeconds(),$.getMilliseconds()))).setUTCFullYear($.getFullYear()),$.getTime()-o.getTime()),z=function(e,t){return(0,n.A)(2,arguments),function(e,t){return(0,n.A)(2,arguments),new Date((0,s.A)(e).getTime()+(0,a.A)(t))}(e,-(0,a.A)(t))}($,G),V={firstWeekContainsDate:F,weekStartsOn:q,locale:H,_originalDate:$};return j.match(M).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,E[t])(e,H.formatLong):e}).join("").match(R).map(function(i){if("''"===i)return"'";var n,s,a=i[0];if("'"===a){return(s=(n=i).match(L))?s[1].replace(D,"'"):n}var o=y[a];if(o)return null!=r&&r.useAdditionalWeekYearTokens||-1===T.indexOf(i)||C(i,t,String(e)),null!=r&&r.useAdditionalDayOfYearTokens||-1===S.indexOf(i)||C(i,t,String(e)),o(z,i,H.localize,V);if(a.match(B))throw RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");return i}).join("")}},56441:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var i=r(63984),n=r(15259);function s(e){(0,n.A)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===(0,i.A)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&"u">
15typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(Error().stack)),new Date(NaN))}},58986:(e,t,r)=>{"use strict";r.d(t,{t:()=>o});var i=r(7881),n=r(47899);let s=["online","offline"];class a extends i.Q{constructor(){super(),this.setup=e=>{if(!n.S$&&window.addEventListener){let t=()=>e();return s.forEach(e=>{window.addEventListener(e,t,!1)}),()=>{s.forEach(e=>{window.removeEventListener(e,t)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setOnline(e):this.onOnline()})}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach(({listener:e})=>{e()})}isOnline(){return"boolean"==typeof this.online?this.online:"u"<typeof navigator||void 0===navigator.onLine||navigator.onLine}}let o=new a},60400:(e,t,r)=>{"use strict";let i,n,s,a,o,l;r.d(t,{j:()=>c});var u=r(47899);let c=(i=[],n=0,s=e=>{e()},a=e=>{e()},o=e=>{n?i.push(e):(0,u.G6)(()=>{s(e)})},l=()=>{let e=i;i=[],e.length&&(0,u.G6)(()=>{a(()=>{e.forEach(e=>{s(e)})})})},{batch:e=>{let t;n++;try{t=e()}finally{--n||l()}return t},batchCalls:e=>(...t)=>{o(()=>{e(...t)})},schedule:o,setNotifyFunction:e=>{s=e},setBatchNotifyFunction:e=>{a=e}})},61813:(e,t,r)=>{"use strict";r.d(t,{U:()=>_,f:()=>w});var i=r(6029),n=r(55729),s=r(81278),a=r(95654),o=r(9326),l=r(36017),u=r(67756),c=r(26350),d=r(91694),h=r(35627),p=r(9793),f=r(30158),g=r(37990),m=r(27009),v=r(37374),b=r(62745),y=r(49832);let w=(0,n.createContext)({trackPageview:(e={},t={})=>{},trackGaEvent:a.A,trackPiwikEvent:u.trackPiwikEvent,customSlug:null}),_=({value:e={},children:t})=>{let r=(0,s.useRouter)(),m=(0,d.Ym)(),{activeNavigation:v,activeContent:_}=e,E=(0,b.K)((0,y.k)(e=>e.isApp)),T=(0,c.W0)(_,v,m),C=r?.asPath,k=(0,l.Y0)(_,{customSlug:C,livePathname:C});(0,n.useEffect)(()=>{let e=e=>{e?.data?.type==="app:setTrackingStatus"&&e?.data?.status&&(console.log("APP :: SET TRACKING STATUS :: ",e?.data?.status),e?.data?.status==="denied"?window.__trackingStateDenied=!0:window.__trackingStateDenied=!1)};return E&&window.addEventListener("message",e),()=>{E&&window.removeEventListener("message",e)}},[E]);let x=["NavigationNode"].includes(_?.__typename)&&_?.slug==="/";return(0,i.jsxs)(w.Provider,{value:{trackPageview:({ga:e=!0,piwik:t=!0,upscore:r=!0}={},i={virtualPagePath:"",isGalleryOverlay:!1,isImageOverlay:!1,galleryIndex:null})=>{let{virtualPagePath:n,isGalleryOverlay:s=!1,galleryIndex:a=null,isImageOverlay:d=!1}=i||{};e&&(((e={})=>{let{additionalDataLayerVariables:t={}}=e;try{if(window.__trackingStateDenied)return!1;window.dataLayer||(window.dataLayer=[]),console.debug("GA :: page_view"),window.dataLayer.push({event:"page_view",...t})}catch(e){console.error(e)}})({additionalDataLayerVariables:((e,t)=>{let r=window.location.pathname+window.location.search,i=window.location.href;t&&(r=t,i=window.location.origin+r);let n={poweredBy:"",virtualPagePath:r,virtualPageURL:i,sku:e?.sku},s=e?.tagsCollection?.items?.filter(Boolean);if(s){let e=s.find(e=>e.isPoweredBy);e?.title&&(n.poweredBy=e.title)}return n})(_,n)}),(0,o.Gd)(_,v)),t&&h.U.then(({isLoggedIn:e})=>{let t="u">typeof document?document.location.pathname:"";(0,l.Bc)(_,v,{locale:m,isGalleryOverlay:s,isImageOverlay:d,isLoggedIn:e,customSlug:C,isApp:E,livePathname:t}).forEach(e=>{console.debug(`PIWIK :: setCustomDimensionValue ${e.id} (${e.name}) :: ${e.value}`),(0,l.k6)(["setCustomDimensionValue",e.id,e.value])}),(0,u.trackPiwikProductDetailView)(_,v);let r=document.location.pathname+document.location.search;console.debug(`PIWIK :: setCustomUrl ${r}`),(0,l.k6)(["setCustomUrl",r]),console.debug(`PIWIK :: setDocumentTitle ${document.title}`),(0,l.k6)(["setDocumentTitle",document.title]),console.debug("PIWIK :: trackPageView"),window.piwikResultForAutoTest=(0,l.k6)(["trackPageView"])}),r&&(null!==a?(0,c.ZS)("gallery_view",{image:a+1}):T&&(0,c.sD)({data:{...T}}))},trackGaEvent:a.A,trackPiwikEvent:u.trackPiwikEvent,customSlug:C,upscoreData:T,marfeelPageType:k,marfeelRecirculationPrefix:_?.marfeelRecirculationPrefix},children:[(0,i.jsx)(p.Tagmanager,{}),(0,i.jsx)(g.FacebookPixel,{}),(0,i.jsx)(f.Marfeel,{pageType:k}),(0,i.jsxs)(u.PiwikProTracking,{value:e,children:[(0,i.jsx)(c.q_,{trackPositions:x}),(0,i.jsx)(S,{}),t]})]})},E=!1,S=()=>{let{trackPageview:e}=(0,n.useContext)(w),t=(0,s.useRouter)(),{resetForNavigation:r}=(0,m.A)(),i=t?.query||{},[a,o,l]=(0,v.A)(["utm_params"]),u=i.utm_source||null,c=i.utm_medium||null,d=i.utm_campaign||null,h=(0,n.useRef)(e);return h.current=e,(0,n.useEffect)(()=>
15{if(!t)return;let e=e=>{console.log(`URL Change :: Changed to ${e}`),h.current()},i=e=>{console.log(`URL Change :: About to change to ${e}`),r()};return t.events.on("routeChangeStart",i),t.events.on("routeChangeComplete",e),E||(E=!0,console.log(`URL Change :: initial load of ${t.asPath}`),h.current()),()=>{console.log("URL Change :: Remount"),t.events.off("routeChangeStart",i),t.events.off("routeChangeComplete",e)}},[t]),(0,n.useEffect)(()=>{(u||c||d)&&o("utm_params",JSON.stringify({source:u,medium:c,campaign:d}),{path:"/",secure:!0,sameSite:"none"})},[u,c,d]),null}},62745:(e,t,r)=>{"use strict";r.d(t,{K:()=>i});let i=(0,r(29784).vt)(e=>({isApp:null,platform:null,setIsApp:t=>e(()=>({isApp:t})),setPlatform:t=>e(()=>({platform:t}))}))},63147:(e,t,r)=>{"use strict";r.r(t),r.d(t,{HashScrollHandler:()=>n});var i=r(55729);let n=()=>((0,i.useEffect)(()=>{"window"in r.g&&window.location.hash&&setTimeout(()=>{let e=document.getElementById(window.location.hash.replace("#",""));e&&e.scrollIntoView({behavior:"smooth"})},300)},[]),null)},63984:(e,t,r)=>{"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r.d(t,{A:()=>i})},64387:(e,t,r)=>{"use strict";r.d(t,{P:()=>h,Wz:()=>o});var i=r(683),n=r(25458);let s={},a={},o=async e=>{let t={};if(!(t=e?await (0,i.getByPortal)(e):(0,i.getActive)()))throw Error("Contentful getRestClient called before config is set or config was not found");if(a[t.id])return a[t.id];let{createClient:o}=await Promise.all([r.e(51642),r.e(54913),r.e(72552),r.e(86973)]).then(r.bind(r,72552));s[t.id]||((e,t,r,i=!1,n="master")=>{s[e]={space:t,accessToken:r,environment:n,host:i?"preview.contentful.com":void 0}})(t.id,t.env.CONTENTFUL_SPACE,t.env.CONTENTFUL_ACCESSTOKEN,1==t.env.CONTENTFUL_USE_PREVIEW,t.env.CONTENTFUL_ENVIRONMENT||"master"),a[t.id]=o(s[t.id]);let l=a[t.id].getEntries,u={};return a[t.id].getEntries=async e=>{if("sys.id[in]"in e&&!e["sys.id[in]"])return{items:[],total:0,skip:0,limit:0};try{for(let t of["fields.date[lte]","fields.date[gte]","fields.startDate[lte]","fields.startDate[gte]","fields.teaserDate[lte]","fields.teaserDate[gte]"])if(e[t]){let r=new Date(e[t]);e[t],r.setSeconds(0),r.setMilliseconds(0),e[t]=r.toISOString()}}catch(e){console.error(e)}let t=JSON.stringify(e);if(u[t])return u[t];let r=(0,n.a)(`getEntries-${e.limit}-${JSON.stringify(e)}`,1e3,{type:"contentful-rest"}),{includes:i,...s}=e,a=l(s,{withAllLocales:!1,withoutLinkResolution:0===(i||0),withoutUnresolvableLinks:!0}).then(e=>(r(),e)).catch(e=>{throw r(),delete u[t],e});return u[t]=a,setTimeout(()=>delete u[t],5e3),a},a[t.id]},l={},u={},c=async()=>{var e,t,r,n;let s=(0,i.getActive)();return l[s.id]||(e=s.id,t=s.env.CONTENTFUL_ROOT,r=s.env.CONTENTFUL_ACCESSTOKEN,n=s.env.CONTENTFUL_ACCESSTOKEN_PREVIEW,l[e]={root:t,accessToken:r,accessTokenPreview:n}),d(s.id)},d=async e=>(u[e]||(u[e]={query:async({query:t,variables:r})=>{try{let i;if(!(t=t.replace(/#[^\n]+/g," ").replace(/[\s]+/g," ").trim()))throw Error(`Empty Query with variables ${JSON.stringify(r)}!`);let n=l[e].accessToken;r.preview&&(n=l[e].accessTokenPreview);for(let s=1;s<=3;s++)try{let a=await fetch(l[e].root,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${n}`},body:JSON.stringify({query:t,variables:r})});if(429===a.status){let e=parseFloat(a.headers.get("x-contentful-ratelimit-reset"))||1,t=Math.ceil(1e3*e)+100;if(console.warn(`[Contentful] Rate limit (HTTP 429) on attempt ${s}/3, waiting ${t}ms...`),s<3){await new Promise(e=>setTimeout(e,t));continue}let r=Error("Contentful rate limit exceeded after 3 attempts — failing build.");throw r.passthrough=!0,r}if(i=await a.json(),i?.errors?.find(e=>e?.extensions?.contentful?.code==="RATE_LIMIT_EXCEEDED"||e?.message?.toLowerCase?.().includes?.("rate limit"))){let e=1500*s+100;if(console.warn(`[Contentful] Rate limit in GraphQL response on attempt ${s}/3, waiting ${e}ms...`),s<3){await new Promise(t=>setTimeout(t,e));continue}let t=Error("Contentful rate limit exceeded after 3 attempts — failing build.");throw t.passthrough=!0,t}break}catch(t){if(t.passthrough)throw t;let e=Error(t.message);throw e.passthrough=!0,e}return(i?.errors?.filter(e=>e?.message?.includes?.("Requested locale ")?null:e)||[]).length&&i.errors?.map?.(e=>{let r=e.message?.match?.(/'[a-z]*' cannot be resolved$/i),i=e?.message?.match(/^Cannot query field "[a-z0-9]*" on type "[a-z0-9]*"/i);if(r?.length||console.error(`Error in GraphQL response for query ${t}:${JSON.stringify(e)}`),i?.length){console.error(`Errors in GraphQL: ${i[0]}`);let t=Error(e.message);throw t.passthrough=!0,t}}),i}catch(e){if(e.passthrough)throw e;console.error(`Error in GraphQL query ${t} with variables ${JSON.stringify(r)}`),console.error(e)}}}),u[e]),h=async(e,t={},r)=>{try{let i=await c();["sponsoring"].includes(r);let s="no-cache";t.$enableCache&&(s=null);let a=(0,n.a)(`query-${r}`,1e3,{type:"contentful-graphql"}),o=await i.query({query:e,variables:{...t,$$_parsed:void 0,$enableCache:void 0},errorPolicy:"ignore",fetchPolicy:s});return a(),o?.data}catch(e){if(e.passthrough)throw e;return console.error(`Error in GQL Query ${r} with vars ${JSON.stringify(t)}`),console.error(e),null}}},64780:()=>{},65675:(e,t,r)=>{"use strict";var i=r(55729),n=r(27133),s="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=n.useSyncExternalStore,o=i.useRef,l=i.useEffect,u=i.useMemo,c=i.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,i,n){var d=o(null);if(null===d.current){var h={hasValue:!1,value:null};d.current=h}else h=d.current;var p=a(e,(d=u(function(){function e(e){if(!l){if(l=!0,a=e,e=i(e),void 0!==n&&h.hasValue){var t=h.value;if(n(t,e))return o=t}return o=e}if(t=o,s(a,e))return t;var r=i(e);return void 0!==n&&n(t,r)?(a=e,t):(a=e,o=r)}var a,o,l=!1,u=void 0===r?null:r;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,r,i,n]))[0],d[1]);return l(function(){h.hasValue=!0,h.value=p},[p]),c(p),p}},65871:(e,t,r)=>{"use strict";let i,n,s,a,o,l,u,c,d,h,p,f,g,m,v,b,y,w,_;r.d(t,{I$:()=>G,Jb:()=>Z,X1:()=>X,d7:()=>tQ,no:()=>K,x3:()=>V});var E,S,T,C,k=r(55729),x=r(6029),I=r(56760),A=r(29143);let P=e=>{let t,r=new Set,i=(e,i)=>{let n="function"==typeof e?e(t):e;if(!Object.is(n,t)){let e=t;t=i??("object"!=typeof n||null===n)?n:Object.assign({},t,n),r.forEach(r=>r(t,e))}},n=()=>t,s={setState:i,getState:n,getInitialState:()=>a,subscribe:e=>(r.add(e),()=>r.delete(e))},a=t=e(i,n,s);return s};function O(e,t){let r;try{r=e()}catch{return}return{getItem:e=>{var t;let i=e=>null===e?null:JSON.parse(e,void 0),n=null!=(t=r.getItem(e))?t:null;return n instanceof Promise?n.then(i):i(n)},setItem:(e,t)=>
15r.setItem(e,JSON.stringify(t,void 0)),removeItem:e=>r.removeItem(e)}}let N=e=>t=>{try{let r=e(t);return r instanceof Promise?r:{then:e=>N(e)(r),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>N(t)(e)}}},R="react-ez-cart-id",M=`
16    fragment PriceFragment on MoneyV2 {
17        currencyCode
18        amount
19    }
20`,L=`
21    ${M}
22    fragment CartDetailsFragment on Cart {
23        totalQuantity
24        discountAllocations {
25            discountedAmount {
26                ...PriceFragment
27            }
28        }
29        discountCodes {
30            applicable
31            code
32        }
33        checkoutUrl
34        id
35        buyerIdentity {
36            countryCode
37            email
38            customer {
39                id
40            }
41        }
42        cost {
43            subtotalAmount {
44                ...PriceFragment
45            }
46            totalAmount {
47                ...PriceFragment
48            }
49        }
50        lines(first: $linesCount) {
51            nodes {
52                id
53                quantity
54                cost {
55                    amountPerQuantity {
56                        ...PriceFragment
57                    }
58                    subtotalAmount {
59                        ...PriceFragment
60                    }
61                    totalAmount {
62                        ...PriceFragment
63                    }
64                }
65                attributes {
66                    key
67                    value
68                }
69                discountAllocations {
70                    discountedAmount {
71                        ...PriceFragment
72                    }
73                }
74                merchandise {
75                    ...on ProductVariant {
76                        id
77                        title
78                        sku
79                        requiresShipping
80                        priceV2 {
81                            ...PriceFragment
82                        }
83                        image {
84                            url(transform: {maxHeight: 128, maxWidth: 128, crop: CENTER, preferredContentType: WEBP})
85                            altText
86                        }
87                        product {
88                            id
89                            title
90                            productType
91                        }
92                    }
93                }
94            }
95        }
96        attributes {
97            key
98            value
99        }
100    }
101`,D=`
102    ${L}
103    query Cart($cartId:ID!, $country: CountryCode, $linesCount: Int!) @inContext(country: $country) {
104        cart(id: $cartId) {
105            id
106            ...CartDetailsFragment
107        }
108    }
109`,B=`
110    ${L}
111    mutation CreateCart($input: CartInput!, $linesCount: Int!) {
112        cartCreate(input: $input) {
113            cart {
114                ...CartDetailsFragment
115            }
116            userErrors {
117                field
118                message
119                code
120            }
121        }
122    }
123`,j=({lines:e=[],updatedVariantId:t,requestedQuantity:r})=>{e.forEach(e=>{e.merchandise.id===t&&e.quantity<r&&(console.warn("we are out of",t),e.displayMessage=`Nur noch ${e.quantity} verf\xfcgbar`)})},U=`
124    ${L}
125    mutation cartLinesUpdate($cartId: ID!, $lines: [CartLineUpdateInput!]!, $linesCount: Int!) {
126        cartLinesUpdate(cartId: $cartId, lines: $lines) {
127            cart {
128                ...CartDetailsFragment
129            }
130            userErrors {
131                field
132                message
133            }
134        }
135    }
136`,H=`
137    ${L}
138    mutation cartLinesAdd($cartId: ID!, $lines: [CartLineInput!]!, $linesCount: Int!) {
139        cartLinesAdd(cartId: $cartId, lines: $lines) {
140            cart {
141                ...CartDetailsFragment
142            }
143            userErrors {
144                field
145                message
146            }
147        }
148    }
149`,F=`
150    ${L}
151    mutation cartBuyerIdentityUpdate($buyerIdentity: CartBuyerIdentityInput!, $cartId: ID!, $linesCount: Int!) {
152        cartBuyerIdentityUpdate(buyerIdentity: $buyerIdentity, cartId: $cartId) {
153            cart {
154                ...CartDetailsFragment
155            }
156            userErrors {
157                field
158                message
159            }
160        }
161    }
162`,q=`
163    ${L}
164    mutation cartDiscountCodesUpdate($cartId: ID!, $discountCodes: [String!], $linesCount: Int!) {
165        cartDiscountCodesUpdate(cartId: $cartId, discountCodes: $discountCodes) {
166            cart {
167                ...CartDetailsFragment
168            }
169            userErrors {
170                field
171                message
172            }
173        }
174    }
175`,$=`
176    ${L}
177    mutation cartAttributesUpdate($attributes: [AttributeInput!]!, $cartId: ID!, $linesCount: Int!) {
178        cartAttributesUpdate(attributes: $attributes, cartId: $cartId) {
179            cart {
180                ...CartDetailsFragment
181            }
182            userErrors {
183                field
184                message
185            }
186        }
187    }
188`,G=e=>async t=>{try{let{token:r,url:i}=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t.body)}).then(e=>e.json());return{token:r,url:i}}catch(e){console.error("error in useMultipass:",e)}},z={name:R,storage:O(()=>localStorage),skipHydration:!0},V=(w=(E=(i=e=>({cart:null,setCart:t=>e({cart:t}),email:null,setEmail:t=>e({email:t}),isCartOpen:!1,setCartOpen:t=>e({isCartOpen:t}),isLoadingLineItems:!1,setLoadingLineItems:t=>e({isLoadingLineItems:t}),isLoadingShippingMethods:!1,setLoadingShippingMethods:t=>e({isLoadingShippingMethods:t}),getCart:async e=>{var t,r;let i=null==(t=null==globalThis?void 0:globalThis.window)?void 0:t.SHOPIFY_STOREFRONT_ENDPOINT,n=null==(r=null==globalThis?void 0:globalThis.window)?void 0:r.SHOPIFY_STOREFRONT_TOKEN;return await (async({cartId:e,linesCount:t})=>{try{let{data:r}=await fetch(i,{method:"POST",headers:{"X-Shopify-Storefront-Access-Token":n,"Content-Type":"application/json"},body:JSON.stringify({query:D,variables:{cartId:e,linesCount:(t||0)+1}})}).then(e=>e.json());return null==r?void 0:r.cart}catch(e){console.debug("error in useCart",e);return}})(e)},createCart:async t=>{var r,i;let n=null==(r=null==globalThis?void 0:globalThis.window)?void 0:r.SHOPIFY_STOREFRONT_ENDPOINT,s=null==(i=null==globalThis?void 0:globalThis.window)?void 0:i.SHOPIFY_STOREFRONT_TOKEN,a=await (async({lines:e})=>{var t,r,i,a,o,l;let u=null==(t=null==e?void 0:e[0])?void 0:t.merchandiseId,c=null==(r=null==e?void 0:e[0])?void 0:r.quantity,{data:d}=await fetch(n,{method:"POST",headers:{"X-Shopify-Storefront-Access-Token":s,"Content-Type":"application/json"},body:JSON.stringify({query:B,variables:{input:{lines:e},linesCount:e.length}})}).then(e=>e.json());if(null!=(a=null==(i=null==d?void 0:d.cartCreate)?void 0:i.userErrors)&&a.length&&d.cartCreate.userErrors.forEach(e=>console.warn(e)),null!=(l=null==(o=null==d?void 0:d.cartCreate)?void 0:o.cart)&&l.id)return j({lines:d.cartCreate.cart.lines.nodes,requestedQuantity:c,updatedVariantId:u}),d.cartCreate.cart})(t);return e({cart:a,isCartOpen:!0}),a},createCartLine:async t=>{var r,i;let n=null==(r=null==globalThis?void 0:globalThis.window)?void 0:r.SHOPIFY_STOREFRONT_ENDPOINT,s=null==(i=null==globalThis?void 0:globalThis.window)?void 0:i.SHOPIFY_STOREFRONT_TOKEN,a=await (async({cartId:e,lines:t,linesCount:r})=>{var i,a,o,l;let u=t[0].merchandiseId,c=null==(i=null==t?void 0:t[0])?void 0:i.quantity,{data:d}=await fetch(n,{method:"POST",headers:{"X-Shopify-Storefront-Access-Token":s,"Content-Type":"application/json"},body:JSON.stringify({query:H,variables:{cartId:e,lines:t,linesCount:(r||0)+1}})}).then(e=>e.json());if(null!=(o=null==(a=null==d?void 0:d.cartLinesAdd)?void 0:a.userErrors)&&o.length&&d.cartLinesAdd.userErrors.forEach(e=>console.warn(e)),null!=(l=null==d?void 0:d.cartLinesAdd)&&l.cart)return j({lines:d.cartLinesAdd.cart.lines.nodes,requestedQuantity:c,updatedVariantId:u}),d.cartLinesAdd.cart})(t);return e({cart:a,isCartOpen:!0}),a},updateCartLines:async t=>{var r,i;e({isLoadingLineItems:!0});let n=null==(r=null==globalThis?void 0:globalThis.window)?void 0:r.SHOPIFY_STOREFRONT_ENDPOINT,s=null==(i=null==globalThis?void 0:globalThis.window)?void 0:i.SHOPIFY_STOREFRONT_TOKEN,a=await (async({cartId:e,lines:t,linesCount:r})=>{var i,a,o,l,u;let c=null==(i=null==t?void 0:t[0])?void 0:i.merchandiseId,d=null==(a=null==t?void 0:t[0])?void 0:a.quantity,{data:h}=await fetch(n,{method:"POST",headers:{"X-Shopify-Storefront-Access-Token":s,"Content-Type":"application/json"},body:JSON.stringify({query:U,variables:{cartId:e,lines:t,linesCount:(r||0)+1}})}).then(e=>e.json());if(null!=(l=null==(o=null==h?void 0:h.cartLinesUpdate)?void 0:o.userErrors)&&l.length&&h.cartLinesUpdate.userErrors.forEach(e=>console.warn(e)),null!=(u=null==h?void 0:h.cartLinesUpdate)&&u.cart)return j({lines:h.cartLinesUpdate.cart.lines.nodes,requestedQuantity:d,updatedVariantId:c}),h.cartLinesUpdate.cart})(t);return e({cart:a,isLoadingLineItems:!1,isCartOpen:!0}),a},updateBuyerIdentity:async t=>{var r,i;let n=null==(r=null==globalThis?void 0:globalThis.window)?void 0:r.SHOPIFY_STOREFRONT_ENDPOINT,s=null==(i=null==globalThis?void 0:globalThis.window)?void 0:i.SHOPIFY_STOREFRONT_TOKEN,a=await (async({cartId:e,buyerIdentity:t,linesCount:r})=>{var i;let{data:a}=await fetch(n,{method:"POST",headers:{"X-Shopify-Storefront-Access-Token":s,"Content-Type":"application/json"},body:JSON.stringify({query:F,variables:{cartId:e,buyerIdentity:t,linesCount:(r||0)+1}})}).then(e=>e.json());return null==(i=null==a?void 0:a.cartBuyerIdentityUpdate)?void 0:i.cart})(t);return e({cart:a}),a},updateDiscountCodes:async t=>{var r,i;let n=null==(r=null==globalThis?void 0:globalThis.window)?void 0:r.SHOPIFY_STOREFRONT_ENDPOINT,s=null==(i=null==globalThis?void 0:globalThis.window)?void 0:i.SHOPIFY_STOREFRONT_TOKEN,a=await (async({cartId:e,discountCodes:t,linesCount:r})=>{var i;let{data:a}=await fetch(n,{method:"POST",headers:{"X-Shopify-Storefront-Access-Token":s,"Content-Type":"application/json"},body:JSON.stringify({query:q,variables:{cartId:e,discountCodes:t,linesCount:(r||0)+1}})}).then(e=>e.json());return null==(i=null==a?void 0:a.cartDiscountCodesUpdate)?void 0:i.cart})(t);return e({cart:a,isCartOpen:!0}),a},updateAttributes:async t=>{var r,i;let n=null==(r=null==globalThis?void 0:globalThis.window)?void 0:r.SHOPIFY_STOREFRONT_ENDPOINT,s=null==(i=null==globalThis?void 0:globalThis.window)?void 0:i.SHOPIFY_STOREFRONT_TOKEN,a=await (async({cartId:e,attributes:t,linesCount:r})=>{var i;let{data:a}=await fetch(n,{method:"POST",headers:{"X-Shopify-Storefront-Access-Token":s,"Content-Type":"application/json"},body:JSON.stringify({query:$,variables:{cartId:e,attributes:t,linesCount:(r||0)+1}})}).then(e=>e.json());return null==(i=null==a?void 0:a.cartAttributesUpdate)?void 0:i.cart})(t);return e({cart:a,isCartOpen:!0}),a},multipassLogin:async(e,t)=>
188G(e)(t),getFinishedCart:async(e,t,r)=>(async({cartId:r,headers:i})=>{if(!r||!e||!t)return null;let n=new Headers({"Content-Type":"application/json"});i&&Object.keys(i).forEach(e=>{n.set(e,i[e])});let s=r.replace("gid://shopify/Cart/","").split("?").shift(),{order:a}=await fetch(e+"?cartToken="+s,{method:"GET",headers:n}).then(e=>e.json());return a})(r)}),(e,t,r)=>{let n,s={storage:O(()=>localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...z},a=!1,o=new Set,l=new Set,u=s.storage;if(!u)return i((...t)=>{console.warn(`[zustand persist middleware] Unable to update item '${s.name}', the given storage is currently unavailable.`),e(...t)});let c=()=>{let e=s.partialize({...t()});return u.setItem(s.name,{state:e,version:s.version})},d=r.setState;r.setState=(e,t)=>{d(e,t),c()};let h=i((...t)=>{e(...t),c()});r.getInitialState=()=>h;let p=()=>{var r,i;if(!u)return;a=!1,o.forEach(e=>{var r;return e(null!=(r=t())?r:h)});let d=(null==(i=s.onRehydrateStorage)?void 0:i.call(s,null!=(r=t())?r:h))||void 0;return N(u.getItem.bind(u))(s.name).then(e=>{if(e)if("number"!=typeof e.version||e.version===s.version)return[!1,e.state];else{if(s.migrate){let t=s.migrate(e.state,e.version);return t instanceof Promise?t.then(e=>[!0,e]):[!0,t]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]}).then(r=>{var i;let[a,o]=r;if(e(n=s.merge(o,null!=(i=t())?i:h),!0),a)return c()}).then(()=>{null==d||d(n,void 0),n=t(),a=!0,l.forEach(e=>e(n))}).catch(e=>{null==d||d(void 0,e)})};return r.persist={setOptions:e=>{s={...s,...e},e.storage&&(u=e.storage)},clearStorage:()=>{null==u||u.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>p(),hasHydrated:()=>a,onHydrate:e=>(o.add(e),()=>{o.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},s.skipHydration||p(),n||h}))?P(E):P,Object.assign(_=e=>(function(e,t=e=>e){let r=k.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return k.useDebugValue(r),r})(w,e),w),_);setTimeout(async()=>{var e,t;if(null!=globalThis&&globalThis.window){try{let r=JSON.parse(localStorage.getItem(R)||"{}"),i=null==(t=null==(e=null==r?void 0:r.state)?void 0:e.cart)?void 0:t.id;i&&(await V.getState().getCart({cartId:i,linesCount:1}).catch(()=>{console.warn("Couldn't successfully fetch cart with id '"+i+"'")})||localStorage.setItem(R,JSON.stringify(V.getInitialState())))}catch(e){console.error("error fetching cached store value:",e)}V.persist.rehydrate()}},0);let W=`
189    query ProductBySku($query: String!, $variantLimit: Int!, $productCursor: String, $variantCursor: String) {
190        products(first: 1, query: $query, after: $productCursor) {
191            nodes {
192                id
193                variants(first: $variantLimit, after: $variantCursor) {
194                    nodes {
195                        id
196                        sku
197                        priceV2 {
198                            amount
199                            currencyCode
200                        }
201                    }
202                    pageInfo {
203                        endCursor
204                        hasNextPage
205                    }
206                }
207            }
208            pageInfo {
209                endCursor
210                hasNextPage
211            }
212        }
213    }
214`,K=(e,t)=>{let r=async({sku:i,onlyMatchingVariant:n,productCursor:s,variantCursor:a})=>{var o,l,u,c,d,h,p,f,g,m,v,b,y,w,_,E,S,T,C,k,x;let I=`tag:${i}`,A=async({productCursor:r,variantCursor:i})=>{let n=await fetch(e,{method:"POST",headers:{"X-Shopify-Storefront-Access-Token":t,"Content-Type":"application/json"},body:JSON.stringify({query:W,variables:{query:I,variantLimit:3,variantCursor:i,productCursor:r}})}).then(e=>e.json());if(n.errors)throw Error(`Shopify Storefront API Error: ${JSON.stringify(n.errors)}`);return n.data},P=await A({variantCursor:a,productCursor:s}),O=null==(c=null==(u=null==(l=null==(o=P.products.nodes)?void 0:o[0])?void 0:l.variants)?void 0:u.pageInfo)?void 0:c.endCursor,N=null==(f=null==(p=null==(h=null==(d=P.products.nodes)?void 0:d[0])?void 0:h.variants)?void 0:p.pageInfo)?void 0:f.hasNextPage;if(n){let e=null;return null!=(m=null==(g=null==P?void 0:P.products)?void 0:g.nodes)&&m.length&&(null==(w=null==(y=null==(b=null==(v=P.products.nodes)?void 0:v[0])?void 0:b.variants)?void 0:y.nodes)||w.forEac
214h(t=>{String(t.sku).toLowerCase()===String(i).toLowerCase()&&(e={...P.products.nodes[0],variants:{nodes:[t]}})})),e||(N?r({sku:i,onlyMatchingVariant:n,variantCursor:O}):null!=(E=null==(_=P.products)?void 0:_.pageInfo)&&E.hasNextPage?r({sku:i,onlyMatchingVariant:n,productCursor:P.products.pageInfo.endCursor}):null)}{let e={...null==(T=null==(S=null==P?void 0:P.products)?void 0:S.nodes)?void 0:T[0]},t=[...(null==(C=null==e?void 0:e.variants)?void 0:C.nodes)||[]],r=async({variantCursor:e,productCursor:r})=>{P=await A({variantCursor:e,productCursor:r}),({endCursor:O,hasNextPage:N}=P.products.nodes[0].variants.pageInfo),t=t.concat(P.products.nodes[0].variants.nodes)};for(;N;)await r({variantCursor:O});for(;null!=(x=null==(k=P.products)?void 0:k.pageInfo)&&x.hasNextPage;)P=await r({productCursor:P.products.pageInfo.endCursor});return{...e,variants:{nodes:t}}}};return r},Y=`
215    query metafieldFile($id:ID!) {
216        node(id:$id) {
217            ... on GenericFile {
218                url
219            }
220            ... on MediaImage {
221                image {
222                    url
223                }
224            }
225            ... on Metaobject {
226                fields {
227                    reference {
228                        ... on GenericFile {
229                            url
230                        }
231                        ... on MediaImage {
232                            image {
233                                url
234                            }
235                        }
236                    }
237                    key
238                    value
239                }
240            }
241        }
242    }
243`,X=(e,t)=>async r=>{var i,n,s;let{data:a}=await fetch(e,{method:"POST",headers:{"X-Shopify-Storefront-Access-Token":t,"Content-Type":"application/json"},body:JSON.stringify({query:Y,variables:{id:r}})}).then(e=>e.json());return null!=(i=null==a?void 0:a.errors)&&i.length&&a.errors.forEach(e=>console.warn(e)),null!=(s=null==(n=null==a?void 0:a.node)?void 0:n.userErrors)&&s.length&&a.node.userErrors.forEach(e=>console.warn(e)),null==a?void 0:a.node},Q=(e,t)=>{let r=e instanceof Map?e:new Map(e.entries()),i=t instanceof Map?t:new Map(t.entries());if(r.size!==i.size)return!1;for(let[e,t]of r)if(!Object.is(t,i.get(e)))return!1;return!0};function J(e){let t=k.useRef(void 0);return r=>{var i,n;let s=e(r);return(i=t.current,Object.is(i,n=s)||"object"==typeof i&&null!==i&&"object"==typeof n&&null!==n&&(Symbol.iterator in i&&Symbol.iterator in n?"entries"in i&&"entries"in n?Q(i,n):((e,t)=>{let r=e[Symbol.iterator](),i=t[Symbol.iterator](),n=r.next(),s=i.next();for(;!n.done&&!s.done;){if(!Object.is(n.value,s.value))return!1;n=r.next(),s=i.next()}return!!n.done&&!!s.done})(i,n):Q({entries:()=>Object.entries(i)},{entries:()=>Object.entries(n)})))?t.current:t.current=s}}let Z=({variantId:e,attributes:t,disabled:r,showCountSelection:i,maxCountSelection:n,buttonLabels:s,classNameButton:a,classNameContainer:o,classNameCountSelection:l,onProductAdded:u})=>{let c=V(J(e=>{var t;return null==(t=e.cart)?void 0:t.id})),d=V(J(e=>{var t,r,i;return(null==(i=null==(r=null==(t=e.cart)?void 0:t.lines)?void 0:r.nodes)?void 0:i.length)||1})),h=V(J(e=>e.createCart)),p=V(J(e=>e.createCartLine)),[f,g]=(0,k.useState)(1),m=(null==s?void 0:s.default)||"In den Warenkorb",v=(null==s?void 0:s.disabled)||"Nicht verf\xfcgbar",b=async()=>{let i;if(r)return;let n={merchandiseId:e,quantity:f};t&&(n.attributes=t),i=c?await p({cartId:c,lines:[n],linesCount:d}):await h({lines:[n]}),u&&u(n,i)};return(0,x.jsxs)("div",{className:o||"",children:[i&&(0,x.jsx)("select",{className:l||"",onChange:e=>{let t=parseInt(e.target.value);isNaN(t)||t!==f&&g(t)},defaultValue:f,children:Array(n&&n>0?n:20).fill(void 0).map((e,t)=>(0,x.jsx)("option",{value:t+1,children:t+1},`count-${t}`))}),(0,x.jsx)("button",{className:a||"",type:"button",onClick:b,children:r?v:m})]})};var ee=Object.defineProperty,et=(e,t,r)=>{let i;return(i="symbol"!=typeof t?t+"":t)in e?ee(e,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[i]=r,r};let er=new class{constructor(){et(this,"current",this.detect()),et(this,"handoffState","pending"),et(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return typeof window>"u"||typeof document>
243"u"?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}};function ei(e){return er.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function en(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}function es(){let e=[],t={addEventListener:(e,r,i,n)=>(e.addEventListener(r,i,n),t.add(()=>e.removeEventListener(r,i,n))),requestAnimationFrame(...e){let r=requestAnimationFrame(...e);return t.add(()=>cancelAnimationFrame(r))},nextFrame:(...e)=>t.requestAnimationFrame(()=>t.requestAnimationFrame(...e)),setTimeout(...e){let r=setTimeout(...e);return t.add(()=>clearTimeout(r))},microTask(...e){let r={current:!0};return en(()=>{r.current&&e[0]()}),t.add(()=>{r.current=!1})},style(e,t,r){let i=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:r}),this.add(()=>{Object.assign(e.style,{[t]:i})})},group(e){let t=es();return e(t),this.add(()=>t.dispose())},add:t=>(e.includes(t)||e.push(t),()=>{let r=e.indexOf(t);if(r>=0)for(let t of e.splice(r,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function ea(){let[e]=(0,k.useState)(es);return(0,k.useEffect)(()=>()=>e.dispose(),[e]),e}let eo=(e,t)=>{er.isServer?(0,k.useEffect)(e,t):(0,k.useLayoutEffect)(e,t)};function el(e){let t=(0,k.useRef)(e);return eo(()=>{t.current=e},[e]),t}let eu=function(e){let t=el(e);return k.useCallback((...e)=>t.current(...e),[t])},ec=(0,k.createContext)(void 0);function ed(...e){return Array.from(new Set(e.flatMap(e=>"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}function eh(e,t,...r){if(e in t){let i=t[e];return"function"==typeof i?i(...r):i}let i=Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(e=>`"${e}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(i,eh),i}var ep=((n=ep||{})[n.None=0]="None",n[n.RenderStrategy=1]="RenderStrategy",n[n.Static=2]="Static",n),ef=((s=ef||{})[s.Unmount=0]="Unmount",s[s.Hidden=1]="Hidden",s);function eg(){let e,t,r=(e=(0,k.useRef)([]),t=(0,k.useCallback)(t=>{for(let r of e.current)null!=r&&("function"==typeof r?r(t):r.current=t)},[]),(...r)=>{if(!r.every(e=>null==e))return e.current=r,t});return(0,k.useCallback)(e=>(function({ourProps:e,theirProps:t,slot:r,defaultTag:i,features:n,visible:s=!0,name:a,mergeRefs:o}){o=o??ev;let l=eb(t,e);if(s)return em(l,r,i,a,o);let u=n??0;if(2&u){let{static:e=!1,...t}=l;if(e)return em(t,r,i,a,o)}if(1&u){let{unmount:e=!0,...t}=l;return eh(+!e,{0:()=>null,1:()=>em({...t,hidden:!0,style:{display:"none"}},r,i,a,o)})}return em(l,r,i,a,o)})({mergeRefs:r,...e}),[r])}function em(e,t={},r,i,n){let{as:s=r,children:a,refName:o="ref",...l}=e_(e,["unmount","static"]),u=void 0!==e.ref?{[o]:e.ref}:{},c="function"==typeof a?a(t):a;"className"in l&&l.className&&"function"==typeof l.className&&(l.className=l.className(t)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let d={};if(t){let e=!1,r=[];for(let[i,n]of Object.entries(t))"boolean"==typeof n&&(e=!0),!0===n&&r.push(i.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`));if(e)for(let e of(d["data-headlessui-state"]=r.join(" "),r))d[`data-${e}`]=""}if(s===k.Fragment&&(Object.keys(ew(l)).length>0||Object.keys(ew(d)).length>0))if(!(0,k.isValidElement)(c)||Array.isArray(c)&&c.length>1){if(Object.keys(ew(l)).length>0)throw Error(['Passing props on "Fragment"!',"",`The current component <${i} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(ew(l)).concat(Object.keys(ew(d))).map(e=>`  - ${e}`).join(`
244`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>`  - ${e}`).join(`
245`)].join(`
246`))}else{var h;let e=c.props,t=null==e?void 0:e.className,r="function"==typeof t?(...e)=>ed(t(...e),l.className):ed(t,l.className),i=eb(c.props,ew(e_(l,["ref"])));for(let e in d)e in i&&delete d[e];return(0,k.cloneElement)(c,Object.assign({},i,d,u,{ref:n((h=c,k.version.split(".")[0]>="19"?h.props.ref:h.ref),u.ref)},r?{className:r}:{}))}return(0,k.createElement)(s,Object.assign({},e_(l,["ref"]),s!==k.Fragment&&u,s!==k.Fragment&&d),c)}function ev(...e){return e.every(e=>null==e)?void 0:t=>{for(let r of e)null!=r&&("function"==typeof r?r(t):r.current=t)}}function eb(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},r={};for(let i of e)for(let e in i)e.startsWith("on")&&"function"==typeof i[e]?(null!=r[e]||(r[e]=[]),r[e].push(i[e])):t[e]=i[e];if(t.disabled||t["aria-disabled"])for(let e in r)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(e)&&(r[e]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let e in r)Object.assign(t,{[e](t,...i){for(let n of r[e]){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;n(t,...i)}}});return t}function ey(e){var t;return Object.assign((0,k.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function ew(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function e_(e,t=[]){let r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}var eE=((a=eE||{})[a.None=1]="None",a[a.Focusable=2]="Focusable",a[a.Hidden=4]="Hidden",a);let eS=ey(function(e,t){var r;let{features:i=1,...n}=e,s={ref:t,"aria-hidden":(2&i)==2||(null!=(r=n["aria-hidden"])?r:void 0),hidden:(4&i)==4||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(4&i)==4&&(2&i)!=2&&{display:"none"}}};return eg()({ourProps:s,theirProps:n,slot:{},defaultTag:"span",name:"Hidden"})}),eT=Symbol();function eC(...e){let t=(0,k.useRef)(e);(0,k.useEffect)(()=>{t.current=e},[e]);let r=eu(e=>{for(let r of t.current)null!=r&&("function"==typeof r?r(e):r.current=e)});return e.every(e=>null==e||(null==e?void 0:e[eT]))?void 0:r}let ek=(0,k.createContext)(null);ek.displayName="DescriptionContext";let ex=Object.assign(ey(function(e,t){let r=(0,k.useId)(),i=(0,k.useContext)(ec),{id:n=`headlessui-description-${r}`,...s}=e,a=function e(){let t=(0,k.useContext)(ek);if(null===t){let t=Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}(),o=eC(t);eo(()=>a.register(n),[n,a.register]);let l=i||!1,u=(0,k.useMemo)(()=>({...a.slot,disabled:l}),[a.slot,l]),c={ref:o,...a.props,id:n};return eg()({ourProps:c,theirProps:s,slot:u,defaultTag:"p",name:a.name||"Description"})}),{});var eI=((o=eI||{}).Space=" ",o.Enter="Enter",o.Escape="Escape",o.Backspace="Backspace",o.Delete="Delete",o.ArrowLeft="ArrowLeft",o.ArrowUp="ArrowUp",o.ArrowRight="ArrowRight",o.ArrowDown="ArrowDown",o.Home="Home",o.End="End",o.PageUp="PageUp",o.PageDown="PageDown",o.Tab="Tab",o);let eA=(0,k.createContext)(()=>{});function eP({value:e,children:t}){return k.createElement(eA.Provider,{value:e},t)}function eO(e,t){let r=e(),i=new Set;return{getSnapshot:()=>r,subscribe:e=>(i.add(e),()=>i.delete(e)),dispatch(e,...n){let s=t[e].call(r,...n);
246s&&(r=s,i.forEach(e=>e()))}}}function eN(e){return(0,k.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot)}let eR=new class extends Map{constructor(e){super(),this.factory=e}get(e){let t=super.get(e);return void 0===t&&(t=this.factory(e),this.set(e,t)),t}}(()=>eO(()=>[],{ADD(e){return this.includes(e)?this:[...this,e]},REMOVE(e){let t=this.indexOf(e);if(-1===t)return this;let r=this.slice();return r.splice(t,1),r}}));function eM(e,t){let r=eR.get(t),i=(0,k.useId)(),n=eN(r);if(eo(()=>{if(e)return r.dispatch("ADD",i),()=>r.dispatch("REMOVE",i)},[r,e]),!e)return!1;let s=n.indexOf(i),a=n.length;return -1===s&&(s=a,a+=1),s===a-1}let eL=new Map,eD=new Map;function eB(e){var t;let r=null!=(t=eD.get(e))?t:0;return eD.set(e,r+1),0!==r?()=>ej(e):(eL.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>ej(e))}function ej(e){var t;let r=null!=(t=eD.get(e))?t:1;if(1===r?eD.delete(e):eD.set(e,r-1),1!==r)return;let i=eL.get(e);i&&(null===i["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",i["aria-hidden"]),e.inert=i.inert,eL.delete(e))}let eU=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),eH=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var eF=((l=eF||{})[l.First=1]="First",l[l.Previous=2]="Previous",l[l.Next=4]="Next",l[l.Last=8]="Last",l[l.WrapAround=16]="WrapAround",l[l.NoScroll=32]="NoScroll",l[l.AutoFocus=64]="AutoFocus",l),eq=((u=eq||{})[u.Error=0]="Error",u[u.Overflow=1]="Overflow",u[u.Success=2]="Success",u[u.Underflow=3]="Underflow",u),e$=((c=e$||{})[c.Previous=-1]="Previous",c[c.Next=1]="Next",c),eG=((d=eG||{})[d.Strict=0]="Strict",d[d.Loose=1]="Loose",d),ez=((h=ez||{})[h.Keyboard=0]="Keyboard",h[h.Mouse=1]="Mouse",h);function eV(e){null==e||e.focus({preventScroll:!0})}function eW(e,t,{sorted:r=!0,relativeTo:i=null,skipElements:n=[]}={}){var s,a,o;let l=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,u=Array.isArray(e)?r?function(e,t=e=>e){return e.slice().sort((e,r)=>{let i=t(e),n=t(r);if(null===i||null===n)return 0;let s=i.compareDocumentPosition(n);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}(e):e:64&t?function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(eH)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}(e):function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(eU)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}(e);n.length>0&&u.length>1&&(u=u.filter(e=>!n.some(t=>null!=t&&"current"in t?(null==t?void 0:t.current)===e:t===e))),i=i??l.activeElement;let c=(()=>{if(5&t)return 1;if(10&t)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,u.indexOf(i))-1;if(4&t)return Math.max(0,u.indexOf(i))+1;if(8&t)return u.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),h=32&t?{preventScroll:!0}:{},p=0,f=u.length,g;do{if(p>=f||p+f<=0)return 0;let e=d+p;if(16&t)e=(e+f)%f;else{if(e<0)return 3;if(e>=f)return 1}null==(g=u[e])||g.focus(h),p+=c}while(g!==l.activeElement);return 6&t&&null!=(o=null==(a=null==(s=g)?void 0:s.matches)?void 0:a.call(s,"textarea,input"))&&o&&g.select(),2}function eK(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}
246function eY(e,t,r,i){let n=el(r);(0,k.useEffect)(()=>{if(e)return document.addEventListener(t,r,i),()=>document.removeEventListener(t,r,i);function r(e){n.current(e)}},[e,t,i])}function eX(e,t,r,i){let n=el(r);(0,k.useEffect)(()=>{if(e)return window.addEventListener(t,r,i),()=>window.removeEventListener(t,r,i);function r(e){n.current(e)}},[e,t,i])}function eQ(...e){return(0,k.useMemo)(()=>ei(...e),[...e])}function eJ(e,t,r,i){let n=el(r);(0,k.useEffect)(()=>{function r(e){n.current(e)}return(e=e??window).addEventListener(t,r,i),()=>e.removeEventListener(t,r,i)},[e,t,i])}"u">typeof window&&"u">typeof document&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));let eZ=eO(()=>new Map,{PUSH(e,t){var r;let i=null!=(r=this.get(e))?r:{doc:e,count:0,d:es(),meta:new Set};return i.count++,i.meta.add(t),this.set(e,i),this},POP(e,t){let r=this.get(e);return r&&(r.count--,r.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:r}){let i,n={doc:e,d:t,meta:function(e){let t={};for(let r of e)Object.assign(t,r(t));return t}(r)},s=[eK()?{before({doc:e,d:t,meta:r}){function i(e){return r.containers.flatMap(e=>e()).some(t=>t.contains(e))}t.microTask(()=>{var r;if("auto"!==window.getComputedStyle(e.documentElement).scrollBehavior){let r=es();r.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>r.dispose()))}let n=null!=(r=window.scrollY)?r:window.pageYOffset,s=null;t.addEventListener(e,"click",t=>{if(t.target instanceof HTMLElement)try{let r=t.target.closest("a");if(!r)return;let{hash:n}=new URL(r.href),a=e.querySelector(n);a&&!i(a)&&(s=a)}catch{}},!0),t.addEventListener(e,"touchstart",e=>{if(e.target instanceof HTMLElement)if(i(e.target)){let r=e.target;for(;r.parentElement&&i(r.parentElement);)r=r.parentElement;t.style(r,"overscrollBehavior","contain")}else t.style(e.target,"touchAction","none")}),t.addEventListener(e,"touchmove",e=>{if(e.target instanceof HTMLElement&&"INPUT"!==e.target.tagName)if(i(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()},{passive:!1}),t.add(()=>{var e;n!==(null!=(e=window.scrollY)?e:window.pageYOffset)&&window.scrollTo(0,n),s&&s.isConnected&&(s.scrollIntoView({block:"nearest"}),s=null)})})}}:{},{before({doc:e}){var t;let r=e.documentElement;i=Math.max(0,(null!=(t=e.defaultView)?t:window).innerWidth-r.clientWidth)},after({doc:e,d:t}){let r=e.documentElement,n=Math.max(0,r.clientWidth-r.offsetWidth),s=Math.max(0,i-n);t.style(r,"paddingRight",`${s}px`)}},{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];s.forEach(({before:e})=>null==e?void 0:e(n)),s.forEach(({after:e})=>null==e?void 0:e(n))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});eZ.subscribe(()=>{let e=eZ.getSnapshot(),t=new Map;for(let[r]of e)t.set(r,r.documentElement.style.overflow);for(let r of e.values()){let e="hidden"===t.get(r.doc),i=0!==r.count;(i&&!e||!i&&e)&&eZ.dispatch(r.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",r),0===r.count&&eZ.dispatch("TEARDOWN",r)}}),"u">typeof A&&"u">typeof globalThis&&"u">typeof Element&&(null==(T=null==A?void 0:A.env)?void 0:T.NODE_ENV)==="test"&&typeof(null==(C=null==Element?void 0:Element.prototype)?void 0:C.getAnimations)>"u"&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(`
247`)),[]});var e0=((p=e0||{})[p.None=0]="None",p[p.Closed=1]="Closed",p[p.Enter=2]="Enter",p[p.Leave=4]="Leave",p);function e1(e,t){let r=(0,k.useRef)([]),i=eu(e);(0,k.useEffect)(()=>{let e=[...r.current];for(let[n,s]of t.entries())if(r.current[n]!==s){let n=i(t,e);return r.current=t,n}},[i,...t])}let e5=(0,k.createContext)(null);e5.displayName="OpenClosedContext";var e2=((f=e2||{})[f.Open=1]="Open",f[f.Closed=2]="Closed",f[f.Closing=4]="Closing",f[f.Opening=8]="Opening",f);function e6(){return(0,k.useContext)(e5)}function e9({value:e,children:t}){return k.createElement(e5.Provider,{value:e},t)}function e4({children:e}){return k.createElement(e5.Provider,{value:null},e)}let e3=[];function e7(){"loading"!==document.readyState&&((()=>{function e(e){if(!(e.target instanceof HTMLElement)||e.target===document.body||e3[0]===e.target)return;let t=e.target;t=t.closest(eU),e3.unshift(t??e.target),(e3=e3.filter(e=>null!=e&&e.isConnected)).splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})})(),document.removeEventListener("DOMContentLoaded",e7))}function e8(e){let t=eu(e),r=(0,k.useRef)(!1);(0,k.useEffect)(()=>(r.current=!1,()=>{r.current=!0,en(()=>{r.current&&t()})}),[t])}function te(){let e,t=(e=typeof document>"u",(0,(S||(S=r.t(k,2))).useSyncExternalStore)(()=>()=>{},()=>!1,()=>!e)),[i,n]=k.useState(er.isHandoffComplete);return i&&!1===er.isHandoffComplete&&n(!1),k.useEffect(()=>{!0!==i&&n(!0)},[i]),k.useEffect(()=>er.handoff(),[]),!t&&i}"u">typeof window&&"u">typeof document&&(document.addEventListener("DOMContentLoaded",e7),e7());let tt=(0,k.createContext)(!1);function tr(e){return k.createElement(tt.Provider,{value:e.force},e.children)}let ti=k.Fragment,tn=ey(function(e,t){let r=(0,k.useRef)(null),i=eC(function(e,t=!0){return Object.assign(e,{[eT]:t})}(e=>{r.current=e}),t),n=eQ(r),s=function(e){let t=(0,k.useContext)(tt),r=(0,k.useContext)(ta),i=eQ(e),[n,s]=(0,k.useState)(()=>{var e;if(!t&&null!==r)return null!=(e=r.current)?e:null;if(er.isServer)return null;let n=null==i?void 0:i.getElementById("headlessui-portal-root");
247if(n)return n;if(null===i)return null;let s=i.createElement("div");return s.setAttribute("id","headlessui-portal-root"),i.body.appendChild(s)});return(0,k.useEffect)(()=>{null!==n&&(null!=i&&i.body.contains(n)||null==i||i.body.appendChild(n))},[n,i]),(0,k.useEffect)(()=>{t||null!==r&&s(r.current)},[r,s,t]),n}(r),[a]=(0,k.useState)(()=>{var e;return er.isServer?null:null!=(e=null==n?void 0:n.createElement("div"))?e:null}),o=(0,k.useContext)(to),l=te();eo(()=>{!s||!a||s.contains(a)||(a.setAttribute("data-headlessui-portal",""),s.appendChild(a))},[s,a]),eo(()=>{if(a&&o)return o.register(a)},[o,a]),e8(()=>{var e;s&&a&&(a instanceof Node&&s.contains(a)&&s.removeChild(a),s.childNodes.length<=0&&(null==(e=s.parentElement)||e.removeChild(s)))});let u=eg();return l&&s&&a?(0,I.createPortal)(u({ourProps:{ref:i},theirProps:e,slot:{},defaultTag:ti,name:"Portal"}),a):null}),ts=k.Fragment,ta=(0,k.createContext)(null),to=(0,k.createContext)(null),tl=ey(function(e,t){let r=eC(t),{enabled:i=!0,...n}=e,s=eg();return i?k.createElement(tn,{...n,ref:r}):s({ourProps:{ref:r},theirProps:n,slot:{},defaultTag:ti,name:"Portal"})}),tu=ey(function(e,t){let{target:r,...i}=e,n={ref:eC(t)},s=eg();return k.createElement(ta.Provider,{value:r},s({ourProps:n,theirProps:i,defaultTag:ts,name:"Popover.Group"}))}),tc=Object.assign(tl,{Group:tu}),td=(0,k.createContext)(null);function th({children:e,node:t}){let[r,i]=(0,k.useState)(null),n=tp(t??r);return k.createElement(td.Provider,{value:n},e,null===n&&k.createElement(eS,{features:eE.Hidden,ref:e=>{var t,r;if(e){for(let n of null!=(r=null==(t=ei(e))?void 0:t.querySelectorAll("html > *, body > *"))?r:[])if(n!==document.body&&n!==document.head&&n instanceof HTMLElement&&null!=n&&n.contains(e)){i(n);break}}}}))}function tp(e=null){var t;return null!=(t=(0,k.useContext)(td))?t:e}function tf(){let e=(0,k.useRef)(!1);return eo(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var tg=((g=tg||{})[g.Forwards=0]="Forwards",g[g.Backwards=1]="Backwards",g);function tm(e){if(!e)return new Set;if("function"==typeof e)return new Set(e());let t=new Set;for(let r of e.current)r.current instanceof HTMLElement&&t.add(r.current);return t}var tv=((m=tv||{})[m.None=0]="None",m[m.InitialFocus=1]="InitialFocus",m[m.TabLock=2]="TabLock",m[m.FocusLock=4]="FocusLock",m[m.RestoreFocus=8]="RestoreFocus",m[m.AutoFocus=16]="AutoFocus",m);let tb=Object.assign(ey(function(e,t){let r,i=(0,k.useRef)(null),n=eC(i,t),{initialFocus:s,initialFocusFallback:a,containers:o,features:l=15,...u}=e;te()||(l=0);let c=eQ(i);!function(e,{ownerDocument:t}){let r=!!(8&e),i=function(e=!0){let t=(0,k.useRef)(e3.slice());return e1(([e],[r])=>{!0===r&&!1===e&&en(()=>{t.current.splice(0)}),!1===r&&!0===e&&(t.current=e3.slice())},[e,e3,t]),eu(()=>{var e;return null!=(e=t.current.find(e=>null!=e&&e.isConnected))?e:null})}(r);e1(()=>{r||(null==t?void 0:t.activeElement)===(null==t?void 0:t.body)&&eV(i())},[r]),e8(()=>{r&&eV(i())})}(l,{ownerDocument:c});let d=function(e,{ownerDocument:t,container:r,initialFocus:i,initialFocusFallback:n}){let s=(0,k.useRef)(null),a=eM(!!(1&e),"focus-trap#initial-focus"),o=tf();return e1(()=>{if(0===e)return;if(!a){null!=n&&n.current&&eV(n.current);return}let l=r.current;l&&en(()=>{if(!o.current)return;let r=null==t?void 0:t.activeElement;if(null!=i&&i.current){if((null==i?void 0:i.current)===r){s.current=r;return}}else if(l.contains(r)){s.current=r;return}if(null!=i&&i.current)eV(i.current);else{if(16&e){if(eW(l,eF.First|eF.AutoFocus)!==eq.Error)return}else if(eW(l,eF.First)!==eq.Error)return;if(null!=n&&n.current&&(eV(n.current),(null==t?void 0:t.activeElement)===n.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}s.current=null==t?void 0:t.activeElement})},[n,a,e]),s}(l,{ownerDocument:c,container:i,initialFocus:s,initialFocusFallback:a});!function(e,{ownerDocument:t,container:r,containers:i,previousActiveElement:n}){let s=tf(),a=!!(4&e);eJ(null==t?void 0:t.defaultView,"focus",e=>{if(!a||!s.current)return;let t=tm(i);r.current instanceof HTMLElement&&t.add(r.current);let o=n.current;if(!o)return;let l=e.target;l&&l instanceof HTMLElement?ty(t,l)?(n.current=l,eV(l)):(e.preventDefault(),e.stopPropagation(),eV(o)):eV(n.current)},!0)}(l,{ownerDocument:c,container:i,containers:o,previousActiveElement:d});let h=(r=(0,k.useRef)(0),eX(!0,"keydown",e=>{"Tab"===e.key&&(r.current=+!!e.shiftKey)},!0),r),p=eu(e=>{let t=i.current;t&&eh(h.current,{[tg.Forwards]:()=>{eW(t,eF.First,{skipElements:[e.relatedTarget,a]})},[tg.Backwards]:()=>{eW(t,eF.Last,{skipElements:[e.relatedTarget,a]})}})}
247),f=eM(!!(2&l),"focus-trap#tab-lock"),g=ea(),m=(0,k.useRef)(!1),v=eg();return k.createElement(k.Fragment,null,f&&k.createElement(eS,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:eE.Focusable}),v({ourProps:{ref:n,onKeyDown(e){"Tab"==e.key&&(m.current=!0,g.requestAnimationFrame(()=>{m.current=!1}))},onBlur(e){if(!(4&l))return;let t=tm(o);i.current instanceof HTMLElement&&t.add(i.current);let r=e.relatedTarget;r instanceof HTMLElement&&"true"!==r.dataset.headlessuiFocusGuard&&(ty(t,r)||(m.current?eW(i.current,eh(h.current,{[tg.Forwards]:()=>eF.Next,[tg.Backwards]:()=>eF.Previous})|eF.WrapAround,{relativeTo:e.target}):e.target instanceof HTMLElement&&eV(e.target)))}},theirProps:u,defaultTag:"div",name:"FocusTrap"}),f&&k.createElement(eS,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:eE.Focusable}))}),{features:tv});function ty(e,t){for(let r of e)if(r.contains(t))return!0;return!1}function tw(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||(null!=(t=e.as)?t:tk)!==k.Fragment||1===k.Children.count(e.children)}let t_=(0,k.createContext)(null);t_.displayName="TransitionContext";var tE=((v=tE||{}).Visible="visible",v.Hidden="hidden",v);let tS=(0,k.createContext)(null);function tT(e){return"children"in e?tT(e.children):e.current.filter(({el:e})=>null!==e.current).filter(({state:e})=>"visible"===e).length>0}function tC(e,t){let r=el(e),i=(0,k.useRef)([]),n=tf(),s=ea(),a=eu((e,t=ef.Hidden)=>{let a=i.current.findIndex(({el:t})=>t===e);-1!==a&&(eh(t,{[ef.Unmount](){i.current.splice(a,1)},[ef.Hidden](){i.current[a].state="hidden"}}),s.microTask(()=>{var e;!tT(i)&&n.current&&(null==(e=r.current)||e.call(r))}))}),o=eu(e=>{let t=i.current.find(({el:t})=>t===e);return t?"visible"!==t.state&&(t.state="visible"):i.current.push({el:e,state:"visible"}),()=>a(e,ef.Unmount)}),l=(0,k.useRef)([]),u=(0,k.useRef)(Promise.resolve()),c=(0,k.useRef)({enter:[],leave:[]}),d=eu((e,r,i)=>{l.current.splice(0),t&&(t.chains.current[r]=t.chains.current[r].filter(([t])=>t!==e)),null==t||t.chains.current[r].push([e,new Promise(e=>{l.current.push(e)})]),null==t||t.chains.current[r].push([e,new Promise(e=>{Promise.all(c.current[r].map(([e,t])=>t)).then(()=>e())}
247)]),"enter"===r?u.current=u.current.then(()=>null==t?void 0:t.wait.current).then(()=>i(r)):i(r)}),h=eu((e,t,r)=>{Promise.all(c.current[t].splice(0).map(([e,t])=>t)).then(()=>{var e;null==(e=l.current.shift())||e()}).then(()=>r(t))});return(0,k.useMemo)(()=>({children:i,register:o,unregister:a,onStart:d,onStop:h,wait:u,chains:c}),[o,a,i,d,h,c,u])}tS.displayName="NestingContext";let tk=k.Fragment,tx=ep.RenderStrategy,tI=ey(function(e,t){let{show:r,appear:i=!1,unmount:n=!0,...s}=e,a=(0,k.useRef)(null),o=eC(...tw(e)?[a,t]:null===t?[]:[t]);te();let l=e6();if(void 0===r&&null!==l&&(r=(l&e2.Open)===e2.Open),void 0===r)throw Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[u,c]=(0,k.useState)(r?"visible":"hidden"),d=tC(()=>{r||c("hidden")}),[h,p]=(0,k.useState)(!0),f=(0,k.useRef)([r]);eo(()=>{!1!==h&&f.current[f.current.length-1]!==r&&(f.current.push(r),p(!1))},[f,r]);let g=(0,k.useMemo)(()=>({show:r,appear:i,initial:h}),[r,i,h]);eo(()=>{r?c("visible"):tT(d)||null===a.current||c("hidden")},[r,d]);let m={unmount:n},v=eu(()=>{var t;h&&p(!1),null==(t=e.beforeEnter)||t.call(e)}),b=eu(()=>{var t;h&&p(!1),null==(t=e.beforeLeave)||t.call(e)}),y=eg();return k.createElement(tS.Provider,{value:d},k.createElement(t_.Provider,{value:g},y({ourProps:{...m,as:k.Fragment,children:k.createElement(tA,{ref:o,...m,...s,beforeEnter:v,beforeLeave:b})},theirProps:{},defaultTag:k.Fragment,features:tx,visible:"visible"===u,name:"Transition"})))}),tA=ey(function(e,t){var r,i;let{transition:n=!0,beforeEnter:s,afterEnter:a,beforeLeave:o,afterLeave:l,enter:u,enterFrom:c,enterTo:d,entered:h,leave:p,leaveFrom:f,leaveTo:g,...m}=e,[v,b]=(0,k.useState)(null),y=(0,k.useRef)(null),w=tw(e),_=eC(...w?[y,t,b]:null===t?[]:[t]),E=null==(r=m.unmount)||r?ef.Unmount:ef.Hidden,{show:S,appear:T,initial:C}=function(){let e=(0,k.useContext)(t_);if(null===e)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[x,I]=(0,k.useState)(S?"visible":"hidden"),A=function(){let e=(0,k.useContext)(tS);if(null===e)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:P,unregister:O}=A;eo(()=>P(y),[P,y]),eo(()=>{if(E===ef.Hidden&&y.current)return S&&"visible"!==x?void I("visible"):eh(x,{hidden:()=>O(y),visible:()=>P(y)})},[x,y,P,O,S,E]);let N=te();eo(()=>{if(w&&N&&"visible"===x&&null===y.current)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[y,x,N,w]);let R=C&&!T,M=T&&S&&C,L=(0,k.useRef)(!1),D=tC(()=>{L.current||(I("hidden"),O(y))},A),B=eu(e=>{L.current=!0,D.onStart(y,e?"enter":"leave",e=>{"enter"===e?null==s||s():"leave"===e&&(null==o||o())})}),j=eu(e=>{let t=e?"enter":"leave";L.current=!1,D.onStop(y,t,e=>{"enter"===e?null==a||a():"leave"===e&&(null==l||l())}),"leave"!==t||tT(D)||(I("hidden"),O(y))});(0,k.useEffect)(()=>{w&&n||(B(S),j(S))},[S,w,n]);let[,U]=function(e,t,r,i){let[n,s]=(0,k.useState)(r),{hasFlag:a,addFlag:o,removeFlag:l}=function(e=0){let[t,r]=(0,k.useState)(e),i=(0,k.useCallback)(e=>r(e),[t]),n=(0,k.useCallback)(e=>r(t=>t|e),[t]),s=(0,k.useCallback)(e=>(t&e)===e,[t]);return{flags:t,setFlag:i,addFlag:n,hasFlag:s,removeFlag:(0,k.useCallback)(e=>r(t=>t&~e),[r]),toggleFlag:(0,k.useCallback)(e=>r(t=>t^e),[r])}}(e&&n?3:0),u=(0,k.useRef)(!1),c=(0,k.useRef)(!1);return eo(()=>{var n;if(e){if(r&&s(!0),!t){r&&o(3);return}return null==(n=null==i?void 0:i.start)||n.call(i,r),function(e,{prepare:t,run:r,done:i,inFlight:n}){let s=es();return function(e,{inFlight:t,prepare:r}){if(null!=t&&t.current)return r();let i=e.style.transition;e.style.transition="none",r(),e.offsetHeight,e.style.transition=i}(e,{prepare:t,inFlight:n}),s.nextFrame(()=>{r(),s.requestAnimationFrame(()=>{s.add(function(e,t){var r,i;let n=es();if(!e)return n.dispose;let s=!1;n.add(()=>{s=!0});let a=null!=(i=null==(r=e.getAnimations)?void 0:r.call(e).filter(e=>e instanceof CSSTransition))?i:[];return 0===a.length?t():Promise.allSettled(a.map(e=>e.finished)).then(()=>{s||t()}),n.dispose}(e,i))})}),s.dispose}(t,{inFlight:u,prepare(){c.current?c.current=!1:c.current=u.current,u.current=!0,
247c.current||(r?(o(3),l(4)):(o(4),l(2)))},run(){c.current?r?(l(3),o(4)):(l(4),o(3)):r?l(1):o(1)},done(){var e;c.current&&"function"==typeof t.getAnimations&&t.getAnimations().length>0||(u.current=!1,l(7),r||s(!1),null==(e=null==i?void 0:i.end)||e.call(i,r))}})}},[e,r,t,ea()]),e?[n,{closed:a(1),enter:a(2),leave:a(4),transition:a(2)||a(4)}]:[r,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}(!(!n||!w||!N||R),v,S,{start:B,end:j}),H=ew({ref:_,className:(null==(i=ed(m.className,M&&u,M&&c,U.enter&&u,U.enter&&U.closed&&c,U.enter&&!U.closed&&d,U.leave&&p,U.leave&&!U.closed&&f,U.leave&&U.closed&&g,!U.transition&&S&&h))?void 0:i.trim())||void 0,...function(e){let t={};for(let r in e)!0===e[r]&&(t[`data-${r}`]="");return t}(U)}),F=0;"visible"===x&&(F|=e2.Open),"hidden"===x&&(F|=e2.Closed),U.enter&&(F|=e2.Opening),U.leave&&(F|=e2.Closing);let q=eg();return k.createElement(tS.Provider,{value:D},k.createElement(e9,{value:F},q({ourProps:H,theirProps:m,defaultTag:tk,features:tx,visible:"visible"===x,name:"Transition.Child"})))}),tP=ey(function(e,t){let r=null!==(0,k.useContext)(t_),i=null!==e6();return k.createElement(k.Fragment,null,!r&&i?k.createElement(tI,{ref:t,...e}):k.createElement(tA,{ref:t,...e}))}),tO=Object.assign(tI,{Child:tP,Root:tI});var tN=((b=tN||{})[b.Open=0]="Open",b[b.Closed=1]="Closed",b),tR=((y=tR||{})[y.SetTitleId=0]="SetTitleId",y);let tM={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},tL=(0,k.createContext)(null);function tD(e){let t=(0,k.useContext)(tL);if(null===t){let t=Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,tD),t}return t}function tB(e,t){return eh(t.type,tM,e,t)}tL.displayName="DialogContext";let tj=ey(function(e,t){let r,i,n,s,a,o,l,u,c,d,h,p=(0,k.useId)(),{id:f=`headlessui-dialog-${p}`,open:g,onClose:m,initialFocus:v,role:b="dialog",autoFocus:y=!0,__demoMode:w=!1,unmount:_=!1,...E}=e,S=(0,k.useRef)(!1);b="dialog"===b||"alertdialog"===b?b:(S.current||(S.current=!0,console.warn(`Invalid role [${b}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog");let T=e6();void 0===g&&null!==T&&(g=(T&e2.Open)===e2.Open);let C=(0,k.useRef)(null),x=eC(C,t),I=eQ(C),A=+!g,[P,O]=(0,k.useReducer)(tB,{titleId:null,descriptionId:null,panelRef:(0,k.createRef)()}),N=eu(()=>m(!1)),R=eu(e=>O({type:0,id:e})),M=!!te()&&0===A,[L,D]=(r=(0,k.useContext)(to),i=(0,k.useRef)([]),n=eu(e=>(i.current.push(e),r&&r.register(e),()=>s(e))),s=eu(e=>{let t=i.current.indexOf(e);-1!==t&&i.current.splice(t,1),r&&r.unregister(e)}),a=(0,k.useMemo)(()=>({register:n,unregister:s,portals:i}),[n,s,i]),[i,(0,k.useMemo)(()=>function({children:e}){return k.createElement(to.Provider,{value:a},e)},[a])]),B=tp(),{resolveContainers:j}=function({defaultContainers:e=[],portals:t,mainTreeNode:r}={}){let i=eQ(r),n=eu(()=>{var n,s;let a=[];for(let t of e)null!==t&&(t instanceof HTMLElement?a.push(t):"current"in t&&t.current instanceof HTMLElement&&a.push(t.current));if(null!=t&&t.current)for(let e of t.current)a.push(e);for(let e of null!=(n=null==i?void 0:i.querySelectorAll("html > *, body > *"))?n:[])e!==document.body&&e!==document.head&&e instanceof HTMLElement&&"headlessui-portal-root"!==e.id&&(r&&(e.contains(r)||e.contains(null==(s=null==r?void 0:r.getRootNode())?void 0:s.host))||a.some(t=>e.contains(t))||a.push(e));return a});
247return{resolveContainers:n,contains:eu(e=>n().some(t=>t.contains(e)))}}({mainTreeNode:B,portals:L,defaultContainers:[{get current(){var U;return null!=(U=P.panelRef.current)?U:C.current}}]}),H=null!==T&&(T&e2.Closing)===e2.Closing;(function(e,{allowed:t,disallowed:r}={}){let i=eM(e,"inert-others");eo(()=>{var e,n;if(!i)return;let s=es();for(let t of null!=(e=null==r?void 0:r())?e:[])t&&s.add(eB(t));let a=null!=(n=null==t?void 0:t())?n:[];for(let e of a){if(!e)continue;let t=ei(e);if(!t)continue;let r=e.parentElement;for(;r&&r!==t.body;){for(let e of r.children)a.some(t=>e.contains(t))||s.add(eB(e));r=r.parentElement}}return s.dispose},[i,t,r])})(!w&&!H&&M,{allowed:eu(()=>{var e,t;return[null!=(t=null==(e=C.current)?void 0:e.closest("[data-headlessui-portal]"))?t:null]}),disallowed:eu(()=>{var e;return[null!=(e=null==B?void 0:B.closest("body > *:not(#headlessui-portal-root)"))?e:null]})}),o=eM(M,"outside-click"),l=el(e=>{e.preventDefault(),N()}),u=(0,k.useCallback)(function(e,t){if(e.defaultPrevented)return;let r=t(e);if(null!==r&&r.getRootNode().contains(r)&&r.isConnected){for(let t of function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(j))if(null!==t&&(t.contains(r)||e.composed&&e.composedPath().includes(t)))return;return function(e,t=0){var r;return e!==(null==(r=ei(e))?void 0:r.body)&&eh(t,{0:()=>e.matches(eU),1(){let t=e;for(;null!==t;){if(t.matches(eU))return!0;t=t.parentElement}return!1}})}(r,eG.Loose)||-1===r.tabIndex||e.preventDefault(),l.current(e,r)}},[l,j]),c=(0,k.useRef)(null),eY(o,"pointerdown",e=>{var t,r;c.current=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target},!0),eY(o,"mousedown",e=>{var t,r;c.current=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target},!0),eY(o,"click",e=>{eK()||/Android/gi.test(window.navigator.userAgent)||c.current&&(u(e,()=>c.current),c.current=null)},!0),d=(0,k.useRef)({x:0,y:0}),eY(o,"touchstart",e=>{d.current.x=e.touches[0].clientX,d.current.y=e.touches[0].clientY},!0),eY(o,"touchend",e=>{let t={x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY};if(!(Math.abs(t.x-d.current.x)>=30||Math.abs(t.y-d.current.y)>=30))return u(e,()=>e.target instanceof HTMLElement?e.target:null)},!0),eX(o,"blur",e=>u(e,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0),function(e,t="u">typeof document?document.defaultView:null,r){let i=eM(e,"escape");eJ(t,"keydown",e=>{i&&(e.defaultPrevented||e.key===eI.Escape&&r(e))})}(M,null==I?void 0:I.defaultView,e=>{e.preventDefault(),e.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur(),N()}),function(e,t,r=()=>[document.body]){!function(e,t,r=()=>({containers:[]})){let i=eN(eZ),n=t?i.get(t):void 0;n&&n.count,eo(()=>{if(!(!t||!e))return eZ.dispatch("PUSH",t,r),()=>eZ.dispatch("POP",t,r)},[e,t])}(eM(e,"scroll-lock"),t,e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],r]}})}(!w&&!H&&M,I,j),h=el(e=>{let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&N()}),(0,k.useEffect)(()=>{if(!M)return;let e=null===C?null:C instanceof HTMLElement?C:C.current;if(!e)return;let t=es();if("u">typeof ResizeObserver){let r=new ResizeObserver(()=>h.current(e));r.observe(e),t.add(()=>r.disconnect())}if("u">typeof IntersectionObserver){let r=new IntersectionObserver(()=>h.current(e));r.observe(e),t.add(()=>r.disconnect())}return()=>t.dispose()},[C,h,M]);let[F,q]=function(){let[e,t]=(0,k.useState)([]);return[e.length>0?e.join(" "):void 0,(0,k.useMemo)(()=>function(e){let r=eu(e=>(t(t=>[...t,e]),()=>t(t=>{let r=t.slice(),i=r.indexOf(e);return -1!==i&&r.splice(i,1),r}))),i=(0,k.useMemo)(()=>({register:r,slot:e.slot,name:e.name,props:e.props,value:e.value}),[r,e.slot,e.name,e.props,e.value]);return k.createElement(ek.Provider,{value:i},e.children)},[t])]}(),$=(0,k.useMemo)(()=>[{dialogState:A,close:N,setTitleId:R,unmount:_},P],[A,P,N,R,_]),G=(0,k.useMemo)(()=>({open:0===A}),[A]),z={ref:x,id:f,role:b,tabIndex:-1,"aria-modal":w?void 0:0===A||void 0,"aria-labelledby":P.titleId,"aria-describedby":F,unmount:_},V=!function(){var e;let[t]=(0,k.useState)(()=>"u">typeof window&&"function"==typeof window.matchMedia?window.matchMedia("(pointer: coarse)"):null),[r,i]=(0,k.useState)(null!=(e=null==t?void 0:t.matches)&&e);return eo(()=>
247{if(t)return t.addEventListener("change",e),()=>t.removeEventListener("change",e);function e(e){i(e.matches)}},[t]),r}(),W=tv.None;M&&!w&&(W|=tv.RestoreFocus,W|=tv.TabLock,y&&(W|=tv.AutoFocus),V&&(W|=tv.InitialFocus));let K=eg();return k.createElement(e4,null,k.createElement(tr,{force:!0},k.createElement(tc,null,k.createElement(tL.Provider,{value:$},k.createElement(tu,{target:C},k.createElement(tr,{force:!1},k.createElement(q,{slot:G},k.createElement(D,null,k.createElement(tb,{initialFocus:v,initialFocusFallback:C,containers:j,features:W},k.createElement(eP,{value:N},K({ourProps:z,theirProps:E,slot:G,defaultTag:tU,features:tH,visible:0===A,name:"Dialog"})))))))))))}),tU="div",tH=ep.RenderStrategy|ep.Static,tF=ey(function(e,t){let{transition:r=!1,open:i,...n}=e,s=e6(),a=e.hasOwnProperty("open")||null!==s,o=e.hasOwnProperty("onClose");if(!a&&!o)throw Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!a)throw Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!o)throw Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!s&&"boolean"!=typeof e.open)throw Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);if("function"!=typeof e.onClose)throw Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);return(void 0!==i||r)&&!n.static?k.createElement(th,null,k.createElement(tO,{show:i,transition:r,unmount:n.unmount},k.createElement(tj,{ref:t,...n}))):k.createElement(th,null,k.createElement(tj,{ref:t,open:i,...n}))}),tq=ey(function(e,t){let r=(0,k.useId)(),{id:i=`headlessui-dialog-panel-${r}`,transition:n=!1,...s}=e,[{dialogState:a,unmount:o},l]=tD("Dialog.Panel"),u=eC(t,l.panelRef),c=(0,k.useMemo)(()=>({open:0===a}),[a]),d=eu(e=>{e.stopPropagation()}),h=n?tP:k.Fragment,p=eg();return k.createElement(h,{...n?{unmount:o}:{}},p({ourProps:{ref:u,id:i,onClick:d},theirProps:s,slot:c,defaultTag:"div",name:"Dialog.Panel"}))});ey(function(e,t){let{transition:r=!1,...i}=e,[{dialogState:n,unmount:s}]=tD("Dialog.Backdrop"),a=(0,k.useMemo)(()=>({open:0===n}),[n]),o=r?tP:k.Fragment,l=eg();return k.createElement(o,{...r?{unmount:s}:{}},l({ourProps:{ref:t,"aria-hidden":!0},theirProps:i,slot:a,defaultTag:"div",name:"Dialog.Backdrop"}))});let t$=Object.assign(tF,{Panel:tq,Title:ey(function(e,t){let r=(0,k.useId)(),{id:i=`headlessui-dialog-title-${r}`,...n}=e,[{dialogState:s,setTitleId:a}]=tD("Dialog.Title"),o=eC(t);(0,k.useEffect)(()=>(a(i),()=>a(null)),[i,a]);let l=(0,k.useMemo)(()=>({open:0===s}),[s]);return eg()({ourProps:{ref:o,id:i},theirProps:n,slot:l,defaultTag:"h2",name:"Dialog.Title"})}),Description:ex}),tG=k.forwardRef(function({title:e,titleId:t,...r},i){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":t},r),e?k.createElement("title",{id:t},e):null,k.createElement("path",{fillRule:"evenodd",d:"M5.47 5.47a.75.75 0 0 1 1.06 0L12 10.94l5.47-5.47a.75.75 0 1 1 1.06 1.06L13.06 12l5.47 5.47a.75.75 0 1 1-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 0 1-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))}),tz=({price:e})=>{if(!e&&0!==e)return(0,x.jsx)(x.Fragment,{children:"--"});let t=String(e=parseFloat(String(e)).toFixed(2)).replace(",",".").split(".");return 1===t.length?t.push("00"):2===t.length&&1===t[1].length&&(t[1]=e[1]+"0"),(0,x.jsx)(x.Fragment,{children:t.join(",")})},tV=({w:e=5,h:t=5,className:r,style:i={}})=>(0,x.jsxs)("svg",{className:`animate-spin h-${t} w-${e} text-bg-color-600 ${r||""}`,style:i,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,x.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,x.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),tW=({id:e,merchandise:t,quantity:r,attributes:i=[],cost:n,discountAllocations:s,displayMessage:a=""})=>{var o,l,u,c,d,h;let p=V(J(e=>{var t;return((null==(t=e.cart)?void 0:t.discountCodes)||[]).map(e=>e.code).join(", ")})),f=V(J(e=>e.updateCartLines)),g=V(J(e=>{var t;return null==(t=e.cart)?void 0:t.id})),m=V(J(e=>{var t,r,i;return(null==(i=null==(r=null==(t=e.cart)?void 0:t.lines)?void 0:r.no
247des)?void 0:i.length)||1})),[v,b]=(0,k.useState)(!1),y=i.find(e=>"overwrite_product_image_url"===e.key),w=(null==(o=i.find(e=>"binding"===e.key))?void 0:o.value)||"",_=(null==(l=i.find(e=>"delivery_date"===e.key))?void 0:l.value)||"",E=null==s?void 0:s[0],S=async r=>{if(!g)return;let n=parseInt(r.target.value);b(!0),await f({cartId:g,lines:[{attributes:i,id:e,merchandiseId:t.id,quantity:n}],linesCount:m}),b(!1)},T="";return"default title"!==String(null==t?void 0:t.title).toLowerCase()&&(T=(null==(u=null==t?void 0:t.title)?void 0:u.charAt(0).toUpperCase())+(null==(c=null==t?void 0:t.title)?void 0:c.substring(1))),(0,x.jsx)(x.Fragment,{children:(0,x.jsxs)("li",{className:"flex flex-col py-6",children:[(0,x.jsxs)("div",{className:"flex flex-row",children:[(0,x.jsx)("div",{className:"h-24 w-24 flex-shrink-0 overflow-hidden rounded-md",children:(0,x.jsx)("img",{src:(null==y?void 0:y.value)||(null==(d=null==t?void 0:t.image)?void 0:d.url),alt:null==(h=null==t?void 0:t.image)?void 0:h.altText,className:"h-full mx-auto object-cover object-center"})}),(0,x.jsxs)("div",{className:"ml-4 flex flex-1 flex-col",children:[(0,x.jsxs)("div",{children:[(0,x.jsx)("div",{className:"flex justify-between text-base font-medium text-color-900",children:(0,x.jsx)("h3",{children:t.product.title})}),w&&(0,x.jsx)("p",{className:"text-sm text-color-500",children:w}),_&&(0,x.jsx)("p",{className:"text-sm text-teal-600",children:_}),(null==E?void 0:E.discountedAmount.amount)>0?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)("p",{children:[(0,x.jsxs)("span",{className:"text-sm line-through text-color-900",children:[(0,x.jsx)(tz,{price:n.subtotalAmount.amount})," ",n.subtotalAmount.currencyCode]}),(0,x.jsxs)("span",{className:"text-base font-bold text-color-900",children:[" ",(0,x.jsx)(tz,{price:n.subtotalAmount.amount-(null==E?void 0:E.discountedAmount.amount)})," ",n.subtotalAmount.currencyCode]})]}),(0,x.jsxs)("p",{className:"text-sm text-color-500",children:[p," (-",(0,x.jsx)(tz,{price:E.discountedAmount.amount})," ",E.discountedAmount.currencyCode,")"]})]}):(0,x.jsxs)("p",{className:"text-base font-bold text-color-900",children:[(0,x.jsx)(tz,{price:n.totalAmount.amount})," ",n.totalAmount.currencyCode]})]}),(0,x.jsxs)("div",{className:"flex flex-1 items-end justify-between text-sm",children:[(0,x.jsx)("p",{className:"mt-1 text-sm text-color-900",children:T}),(0,x.jsx)("div",{className:"mt-1 text-sm text-color-900",children:v?(0,x.jsx)("div",{className:"rounded-md border border-gray-300 ml-2 pl-2 pr-2 py-2",children:(0,x.jsx)(tV,{h:6,w:6})}):(0,x.jsx)("select",{id:"quantity",name:"quantity",onChange:S,value:r,disabled:v,className:"rounded-md border border-gray-300 text-base font-medium text-color-700 text-left shadow-sm focus:outline-none focus:ring-1 focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm",children:(0,x.jsx)(tK,{quantity:r,id:e})})})]})]})]}),(0,x.jsx)("p",{className:"mt-1 text-sm text-red-500 text-end",children:a})]})})},tK=({quantity:e,id:t})=>{let r=[e];0!==e&&r.push(0);let i=0;for(;r.length<8;){let t=e-1-i,n=e+1+i;t>0&&r.push(t),r.push(n),i++}return r.sort((e,t)=>e>t?1:-1),(0,x.jsx)(x.Fragment,{children:r.map(e=>(0,x.jsx)("option",{value:e,children:e},"checkout-line-option-"+t+e))})},tY=({show:e,onClose:t,children:r})=>(0,x.jsx)(tO,{show:e,as:"div",children:(0,x.jsxs)(t$,{className:"relative z-insane",onClose:t,children:[(0,x.jsx)(tO.Child,{as:k.Fragment,enter:"ease-in-out duration-500",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in-out duration-500",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,x.jsx)("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})}),(0,x.jsx)(tO.Child,{as:k.Fragment,enter:"transform transition ease-in-out duration-500 sm:duration-500",enterFrom:"translate-x-full",enterTo:"translate-x-0",leave:"transform transition ease-in-out duration-500 sm:duration-500",leaveFrom:"translate-x-0",leaveTo:"translate-x-full hidden",children:(0,x.jsx)("div",{className:"fixed inset-0 overflow-hidden",children:(0,x.jsx)("div",{className:"absolute inset-0 overflow-hidden",children:(0,x.jsx)("div",{className:"pointer-events-none fixed inset-y-0 right-0 flex max-w-full pl-10",children:r})})})})]})}),tX=()=>(0,x.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6",children:(0,x.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 3h1.386c.51 0 .955.343 1.087.835l.383 1.437M7.5 14.25a3 3 0 00-3 3h15.75m-12.75-3h11.218c1.121-2.3 2.1-4.684 2.924-7.138a60.114 60.114 0 00-16.536-1.84M7.5 14.25L5.106 5.272M6 20.25a.75.75 0 11-1.5 0 .75.75 0 011.5 0zm12.75 0a.75.75 0 11-1.5 0 .75.75 0 011.5 0z"})}
247),tQ=({onLoginClick:e,onRegistrationClick:t,onCheckout:r,onCartUpdate:i,hideDefaultCartButton:n,hideContinueShippingButton:s,showDiscountInput:a,showAppliedDiscounts:o,showShippingCostHint:l,renderBlocks:u})=>{var c,d,h;let p=V(J(e=>e.cart)),f=V(J(e=>e.email)),g=V(J(e=>e.isCartOpen)),m=V(J(e=>e.setCartOpen)),v=V(J(e=>e.updateDiscountCodes)),b=e||t,y=(0,k.useRef)(null),w=V(J(e=>{var t;return((null==(t=e.cart)?void 0:t.discountCodes)||[]).map(e=>e.code).join(", ")})),_=null==(c=null==p?void 0:p.discountAllocations)?void 0:c[0],E=async e=>{var t;e.preventDefault(),null!=(t=null==p?void 0:p.lines)&&t.nodes.length&&(r?r(p,f):window.location.href=p.checkoutUrl)},S=async e=>{if(!(null!=p&&p.id)||!(null!=y&&y.current))return;let t=y.current.value,r=e.currentTarget;e.persist(),r.setAttribute("disabled","true"),await v({cartId:p.id,discountCodes:[t],linesCount:p.totalQuantity}),r.removeAttribute("disabled")};return(0,k.useEffect)(()=>{null==i||i(p)},[p]),(0,x.jsxs)("div",{className:"react-ez-checkout-cart-wrapper",children:[!g&&(()=>{if("function"==typeof n){if(n(p))return!1}else if(n)return!1;return!0})()&&((null==p?void 0:p.totalQuantity)||0)>0&&(0,x.jsx)("div",{className:"bg-opacity-50 flex justify-center items-center fixed right-0 z-50",style:{to
247p:"50%",transform:"translate(0%, -50%)"},children:(0,x.jsxs)("button",{className:"bg-color-500 px-4 py-2 text-md text-white",onClick:()=>m(!0),children:[(0,x.jsx)("span",{className:"pb-2 block",children:(null==p?void 0:p.totalQuantity)||0}),(0,x.jsx)("span",{children:(0,x.jsx)(tX,{})})]})}),(0,x.jsx)(tY,{show:g,onClose:m,children:(0,x.jsx)(t$.Panel,{className:"pointer-events-auto w-screen max-w-md",children:(0,x.jsxs)("div",{className:"flex h-full flex-col overflow-y-scroll bg-white shadow-xl",children:[(null==u?void 0:u.beforeItems)&&u.beforeItems(p),(0,x.jsxs)("div",{className:"flex-1 py-6 px-4 sm:px-6 lg:overflow-y-auto xl:overflow-y-auto",children:[" ",(0,x.jsxs)("div",{className:"flex items-start justify-between",children:[(0,x.jsx)(t$.Title,{className:"text-lg font-medium text-color-900",children:"Warenkorb"}),(0,x.jsx)("div",{className:"ml-3 flex h-7 items-center",children:(0,x.jsxs)("button",{type:"button",className:"-m-2 p-2 text-color-400 hover:text-color-500",onClick:()=>m(!1),children:[(0,x.jsx)("span",{className:"sr-only",children:"Schlie\xdfen"}),(0,x.jsx)(tG,{className:"h-5 w-5","aria-hidden":"true"})]})})]}),(0,x.jsx)("div",{className:"mt-8",children:(0,x.jsx)("div",{className:"flow-root",children:(0,x.jsx)("ul",{role:"list",className:"-my-6 divide-y divide-gray-200 relative",children:null==(h=null==(d=null==p?void 0:p.lines)?void 0:d.nodes)?void 0:h.map(e=>(0,k.createElement)(tW,{...e,key:e.id}))})})})]}),(null==u?void 0:u.beforeDiscountCodes)&&u.beforeDiscountCodes(p),a&&(0,x.jsxs)("div",{className:"border-t border-gray-200 py-6 px-4 sm:px-6",children:[(0,x.jsx)("div",{className:"flex justify-between text-sm font-medium text-color-500",children:(0,x.jsx)("input",{type:"text",placeholder:"Gutscheincode",ref:y,className:"w-full text-bg-color-600 rounded-md text-base font-medium"})}),(0,x.jsx)("div",{className:"mt-2",children:(0,x.jsx)("button",{onClick:S,type:"button",className:"w-full text-bg-color-600 border border-bg-color-600 rounded-md shadow-sm py-3 px-4 text-base font-medium focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-50 focus:ring-indigo-500",children:"Gutschein berechnen"})})]}),o&&(0,x.jsxs)("div",{className:"border-t border-gray-200 py-6 px-4 sm:px-6",children:[w&&_&&(0,x.jsxs)("div",{className:"mt-4 flex justify-between text-base text-green-800",children:[(0,x.jsx)("p",{className:"font-medium",children:w}),(0,x.jsxs)("p",{className:"font-medium",children:[(0,x.jsx)(tz,{price:_.discountedAmount.amount})," ",_.discountedAmount.currencyCode]})]}),w&&!_&&(0,x.jsxs)("div",{className:"mt-4 flex justify-between text-base text-red-800",children:[(0,x.jsx)("p",{className:"font-medium",children:w}),(0,x.jsx)("p",{className:"font-medium",children:"Ung\xfcltig"})]})]}),(null==u?void 0:u.beforeCosts)&&u.beforeCosts(p),(0,x.jsxs)("div",{className:"border-t border-gray-200 py-6 px-4 sm:px-6",children:[l&&(0,x.jsx)("div",{className:"flex justify-between text-sm font-medium text-color-500",children:(0,x.jsx)("p",{className:"mb-2",children:"Versandkosten werden an der Kasse berechnet"})}),(0,x.jsxs)("div",{className:"flex justify-between text-base text-color-900",children:[(0,x.jsx)("p",{className:"font-medium",children:"Gesamtsumme inkl. gesetzlicher Mwst."}),(0,x.jsxs)("p",{className:"font-medium",children:[(0,x.jsx)(tz,{price:null==p?void 0:p.cost.subtotalAmount.amount})," ",null==p?void 0:p.cost.subtotalAmount.currencyCode]})]}),(0,x.jsx)("div",{className:"mt-6",children:(0,x.jsx)("button",{onClick:E,className:function(...e){return e.filter(Boolean).join(" ")}(p?"hover:bg-color-700 cursor-pointer":"cursor-not-allowed","flex items-center justify-center rounded-md border border-transparent bg-color-600 px-6 py-3 text-base font-medium text-white shadow-sm w-full"),children:"Zur Kasse"})}),b&&!f&&(0,x.jsx)(x.Fragment,{children:(0,x.jsxs)("div",{className:"mt-6",children:[(0,x.jsx)("div",{className:"mb-6 flex items-center justify-between text-center uppercase text-sm text-color-500 before:content-[''] before:inline-block before:h-px before:bg-gray-200 before:grow after:content-[''] after:inline-block after:h-px after:bg-gray-200 after:grow",children:(0,x.jsx)("span",{className:"inline-block px-1",children:"ODER ANMELDEN"})}),(0,x.jsxs)("div",{className:"lg:grid lg:grid-cols-2",children:[t&&(0,x.jsx)("div",{className:"pb-3 lg:pr-4",children:(0,x.jsx)("button",{onClick:e=>{e&&(e.preventDefault(),e.stopPropagation()),t&&t({extraQueryParams:{type:"registration"}})},type:"button",className:"w-full text-bg-color-600 border border-bg-color-600 rounded-md shadow-sm py-3 px-4 text-base font-medium focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-50 focus:ring-indigo-500",children:"Registrieren"})}),e&&(0,x.jsx)("div",{className:"pb-3 lg:pl-4",children:(0,x.jsx)("button",{onClick:t=>{t&&(t.preventDefault(),t.stopPropagation()),e&&e()},type:"button",className:"w-full text-bg-color-600 border border-bg-color-600 rounded-md shadow-sm py-3 px-4 text-base font-medium focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-50 focus:ring-indigo-500",children:"Anmelden"})})]})]})}),!s&&(0,x.jsx)("div",{className:"mt-6 flex justify-center text-center text-sm text-color-500",children:(0,x.jsxs)("p",{children:["oder"," ",(0,x.jsxs)("button",{type:"button",className:"font-medium text-bg-color-600 hover:text-bg-color-500",onClick:()=>m(!1),children:["Weiter einkaufen",(0,x.jsx)("span",{"aria-hidden":"true",children:" →"})]})]})})]})]})})})]})}},66259:function(e,t,r){e.exports=r(35596).enc.Utf8},67080:(e,t,r)=>{"use strict";r.d(t,{l:()=>i});let i=(0,r(29784).vt)(e=>({hasToolbar:!1,setHasToolbar:t=>e(()=>({hasToolbar:t}))}))},67527:(e,t,r)=>{"use strict";
247Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return i}});let i=r(30758)._(r(55729)).default.createContext(null)},67756:(e,t,r)=>{"use strict";r.r(t),r.d(t,{PiwikProTracking:()=>g,trackPiwikAddToCart:()=>b,trackPiwikEvent:()=>m,trackPiwikOrderFunnelEvent:()=>v,trackPiwikProductDetailView:()=>w,trackPiwikRemoveFromCart:()=>y});var i=r(6029),n=r(27009),s=r(26898),a=r(55729),o=r(683),l=r(95654),u=r(9326);let c=e=>(e||[]).filter(Boolean).reduce((e,t)=>{let r=t?.merchandise?.sku;return e.set(r,(e.get(r)||0)+(t?.quantity??1))},new Map);var d=r(36017),h=r(89972),p=r(13675),f=r(29143);let g=({value:e,children:t})=>(0,i.jsxs)(_,{children:[(0,i.jsx)(C,{value:e}),t]}),m=(e,t="",r,i="")=>{console.debug(`PIWIK :: EVENT :: ${JSON.stringify({category:e,action:r,name:t,value:i})}`);try{(0,d.k6)(["trackEvent",e,r,t||void 0,i||void 0])}catch(e){console.error("PIWIK :: EVENT TRACKING ERROR",e)}},v=(e,t,r)=>{m("Order",e,t,r)},b=(e={sku:"",name:"",price:0},t=1)=>{try{console.debug(`PIWIK :: ECOMMERCE :: ecommerceAddToCart :: ${[e?.sku,e?.name,e?.price,t].join(" ")}`),(0,d.Lm)({event:"ConversionAddToCart",price:e?.price}),(0,d.k6)(["ecommerceAddToCart",[{sku:"",name:"",price:0,...e,quantity:t}]])}catch(e){console.error(e)}},y=(e={},t=1)=>{try{console.debug(`PIWIK :: ECOMMERCE :: trackPiwikRemoveFromCart :: ${[e?.sku,e?.name,e?.price,t].join(" ")}`),(0,d.k6)(["ecommerceRemoveFromCart",[{sku:"",name:"",price:0,...e,quantity:t}]])}catch(e){console.error(e)}},w=(e,t)=>{if(e?.__typename!=="Product")return;console.debug("PIWIK :: setEcommerceView");let r=(0,h.m)(t)?.map(e=>e.title)||[],i=e?.sku||void 0,n=i?e?.title:void 0,s=e?.price||void 0;try{console.debug("PIWIK :: ecommerceProductDetailView :: ",[i,n,s,[e?.family,...r].join(",")].join(" ")),(0,d.k6)(["ecommerceProductDetailView",[{sku:i,name:n,category:[e?.family,...r],price:s,quantity:3}]])}catch(e){console.error(e)}},_=({children:e})=>{if(f.env.NEXT_PUBLIC_DISABLE_TRACKING||!(0,o.getActive)()?.env?.PIWIK_CONTAINER_URL||!(0,o.getActive)()?.env?.PIWIK_CONTAINER_ID)return e;let t=(0,p.Y)("Piwik Pro");return(0,a.useEffect)(()=>{!function(e,t,r,i,n){if(e[r]=e[r]||[],e[r].push({start:(new Date).getTime(),event:"stg.start"}),n){var s=t.getElementsByTagName("script")[0],a=t.createElement("script"),o=(e.location.href.match("stg_debug")||t.cookie.match("stg_debug"))&&!e.location.href.match("stg_disable_debug");!function(e,r,i){var n,s="";if(i){var a=new Date;a.setTime(a.getTime()+24*i*36e5),n="; expires="+a.toUTCString(),s="; SameSite=Strict"}t.cookie=e+"="+r+n+s+"; path=/"}("stg_debug",o?1:"",o?14:-1);var l=[];"dataLayer"!==r&&l.push("data_layer_name="+r),o&&l.push("stg_debug");var u=l.length>0?"?"+l.join("&"):"";a.async=!0,a.src="https://delius.containers.piwik.pro/"+i+".js"+u,s.parentNode.insertBefore(a,s),a.onload=()=>
247{try{let e=window?.__cmp&&__cmp("getCMPData"),t=e?.vendorsList?.find(e=>"Piwik Pro"===e.name);t&&e.vendorConsents[t.id]&&(console.log("PIWIK :: setComplianceSettings"),ppms.cm.api("setComplianceSettings",{consents:{analytics:{status:1},ab_testing_and_personalization:{status:1},custom_consent:{status:1},user_feedback:{status:1},marketing_automation:{status:1},remarketing:{status:1},conversion_tracking:{status:1}}},console.log,console.error))}catch(e){console.error("Error in initPiwikConsent!",e)}};var c="ppms",d=["tm","cm"];e[c]=e[c]||{};for(var h=0;h<d.length;h++)!function(t){e[c][t]=e[c][t]||{},e[c][t].api=e[c][t].api||function(){var i=[].slice.call(arguments,0);"string"==typeof i[0]&&e[r].push({event:c+"."+t+":"+i[0],parameters:[].slice.call(arguments,1)})}}(d[h])}}(window,document,"dataLayer",(0,o.getActive)()?.env?.PIWIK_CONTAINER_ID,t)},[t]),(0,i.jsx)(i.Fragment,{children:e})},E=!1,S=[],T=setTimeout(()=>{E=!0},3e3),C=()=>{let{trackCartUpdate:e}=(0,n.A)(),{user:t}=(0,s.A)(),r=async t=>{if(!t)return;try{e(t)}catch(e){console.error("Insider ERROR in trackCartUpdate",e)}let r=(t?.lines?.nodes||[]).map(e=>{let t=e?.merchandise.sku,r=e?.merchandise.product?.title||t,i=e?.merchandise.priceV2.amount||0,n=e?.quantity||1;return{sku:t,name:r,category:[e?.merchandise.product?.productType].filter(Boolean),price:parseFloat(i),quantity:n}});if(clearTimeout(T),E){var i;let e,r,n=(t?.lines?.nodes||[]).filter(Boolean);(e=c(i=S),r=c(n),[...new Set([...e.keys(),...r.keys()])].map(t=>{let s=(r.get(t)||0)-(e.get(t)||0);return{line:((s>0?n:i)||[]).filter(Boolean).find(e=>e?.merchandise?.sku===t),delta:s}}).filter(({delta:e,line:t})=>0!==e&&t).map(({line:e,delta:t})=>({line:{...e,quantity:Math.abs(t)},delta:t}))).forEach(({line:e,delta:r})=>{let i={sku:e?.merchandise.sku,price:e?.merchandise.priceV2.amount||0,name:e?.merchandise.product?.title||e?.merchandise.sku,quantity:e?.quantity||1};r>0?((0,l.A)("cart.add",i),(0,u.eQ)("add_to_cart",e,t),b(i,i.quantity)):((0,l.A)("cart.remove",i),(0,u.eQ)("remove_from_cart",e,t),y(i,i.quantity))}),S=n}else{E=!0,S=(t?.lines?.nodes||[]).filter(Boolean);let e=["ecommerceCartUpdate",r,parseFloat(t?.cost?.totalAmount?.amount)||0];console.debug("PIWIK :: ecommerceCartUpdate",e),(0,d.k6)(e)}};return(0,a.useEffect)(()=>{(0,o.getActive)()?.env?.PIWIK_USE_ECOMMERCE&&(globalThis.window.onCartUpdate=r)},[]),(0,a.useEffect)(()=>{t?.traits?.email?(console.debug("PIWIK :: setUserId"),(0,d.k6)(["setUserId",t.traits.email])):(console.debug("PIWIK :: resetUserId"),(0,d.k6)(["resetUserId"]))},[t]),null}},71024:(e,t,r)=>{e.exports=r(87690)},72355:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var i=r(24423);function n(e){return(n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e,t,r){return(a=!function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()?function(e,t,r){var i=[null];i.push.apply(i,t);var n=new(Function.bind.apply(e,i));return r&&s(n,r.prototype),n}:Reflect.construct).apply(null,arguments)}function o(e){var t="function"==typeof Map?new Map:void 0;return(o=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return a(e,arguments,n(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s(r,e)})(e)}var l=function(e){function t(t){var r,i,n;return n=(i=function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r=e.call.apply(e,[this].concat(t))||this)).__proto__,Object.defineProperty(i,"__proto__",{get:function(){return n},set:function(e){n.__proto__=e}}),r}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e,t}(o(Array));function u(e){void 0===e&&(e=[]);var t=[];return e.forEach(function(e){Array.isArray(e)?t.push.apply(t,u(e)):t.push(e)}),t}function c(e,t){return Array.prototype.filter.call(e,t)}function d(e,t){var r=(0,i.zk)(),n=(0,i.YE)(),s=[];if(!t&&e instanceof l)return e;if(!e)return new l(s);if("string"==typeof e){var a=e.trim();if(a.indexOf("<")>=0&&a.indexOf(">")>=0){var o="div";0===a.indexOf("<li")&&(o="ul"),0===a.indexOf("<tr")&&(o="tbody"),(0===a.indexOf("<td")||0===a.indexOf("<th"))&&(o="tr"),0===a.indexOf("<tbody")&&(o="table"),0===a.indexOf("<option")&&(o="select");var u=n.createElement(o);u.innerHTML=a;for(var c=0;c<u.childNodes.length;c+=1)s.push(u.childNodes[c])}else s=function(e,t){if("string"!=typeof e)return[e];for(var r=[],i=t.querySelectorAll(e),n=0;n<i.length;n+=1)r.push(i[n]);return r}(e.trim(),t||n)}else if(e.nodeType||e===r||e===n)s.push(e);else if(Array.isArray(e)){if(e instanceof l)return e;s=e}return new l(function(e){for(var t=[],r=0;r<e.length;r+=1)-1===t.indexOf(e[r])&&t.push(e[r]);return t}(s))}d.fn=l.prototype;var h="resize scroll".split(" ");function p(e){return function(){for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];if(void 0===r[0]){for(var n=0;n<this.length;n+=1)0>h.indexOf(e)&&(e in this[n]?this[n][e]():d(this[n]).trigger(e));return this}
247return this.on.apply(this,[e].concat(r))}}p("click"),p("blur"),p("focus"),p("focusin"),p("focusout"),p("keyup"),p("keydown"),p("keypress"),p("submit"),p("change"),p("mousedown"),p("mousemove"),p("mouseup"),p("mouseenter"),p("mouseleave"),p("mouseout"),p("mouseover"),p("touchstart"),p("touchend"),p("touchmove"),p("resize"),p("scroll");var f={addClass:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=u(t.map(function(e){return e.split(" ")}));return this.forEach(function(e){var t;(t=e.classList).add.apply(t,i)}),this},removeClass:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=u(t.map(function(e){return e.split(" ")}));return this.forEach(function(e){var t;(t=e.classList).remove.apply(t,i)}),this},hasClass:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=u(t.map(function(e){return e.split(" ")}));return c(this,function(e){return i.filter(function(t){return e.classList.contains(t)}).length>0}).length>0},toggleClass:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=u(t.map(function(e){return e.split(" ")}));this.forEach(function(e){i.forEach(function(t){e.classList.toggle(t)})})},attr:function(e,t){if(1==arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var r=0;r<this.length;r+=1)if(2==arguments.length)this[r].setAttribute(e,t);else for(var i in e)this[r][i]=e[i],this[r].setAttribute(i,e[i]);return this},removeAttr:function(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this},transform:function(e){for(var t=0;t<this.length;t+=1)this[t].style.transform=e;return this},transition:function(e){for(var t=0;t<this.length;t+=1)this[t].style.transitionDuration="string"!=typeof e?e+"ms":e;return this},on:function(){for(var e,t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];var n=r[0],s=r[1],a=r[2],o=r[3];function l(e){var t=e.target;if(t){var r=e.target.dom7EventData||[];if(0>r.indexOf(e)&&r.unshift(e),d(t).is(s))a.apply(t,r);else for(var i=d(t).parents(),n=0;n<i.length;n+=1)d(i[n]).is(s)&&a.apply(i[n],r)}}function u(e){var t=e&&e.target&&e.target.dom7EventData||[];0>t.indexOf(e)&&t.unshift(e),a.apply(this,t)}"function"==typeof r[1]&&(n=r[0],a=r[1],o=r[2],s=void 0),o||(o=!1);for(var c=n.split(" "),h=0;h<this.length;h+=1){var p=this[h];if(s)for(e=0;e<c.length;e+=1){var f=c[e];p.dom7LiveListeners||(p.dom7LiveListeners={}),p.dom7LiveListeners[f]||(p.dom7LiveListeners[f]=[]),p.dom7LiveListeners[f].push({listener:a,proxyListener:l}),p.addEventListener(f,l,o)}else for(e=0;e<c.length;e+=1){var g=c[e];p.dom7Listeners||(p.dom7Listeners={}),p.dom7Listeners[g]||(p.dom7Listeners[g]=[]),p.dom7Listeners[g].push({listener:a,proxyListener:u}),p.addEventListener(g,u,o)}}return this},off:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=t[0],n=t[1],s=t[2],a=t[3];"function"==typeof t[1]&&(i=t[0],s=t[1],a=t[2],n=void 0),a||(a=!1);for(var o=i.split(" "),l=0;l<o.length;l+=1)for(var u=o[l],c=0;c<this.length;c+=1){var d=this[c],h=void 0;if(!n&&d.dom7Listeners?h=d.dom7Listeners[u]:n&&d.dom7LiveListeners&&(h=d.dom7LiveListeners[u]),h&&h.length)for(var p=h.length-1;p>=0;p-=1){var f=h[p];s&&f.listener===s||s&&f.listener&&f.listener.dom7proxy&&f.listener.dom7proxy===s?(d.removeEventListener(u,f.proxyListener,a),h.splice(p,1)):s||(d.removeEventListener(u,f.proxyListener,a),h.splice(p,1))}}return this},trigger:function(){for(var e=(0,i.zk)(),t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];for(var s=r[0].split(" "),a=r[1],o=0;o<s.length;o+=1)for(var l=s[o],u=0;u<this.length;u+=1){var c=this[u];if(e.CustomEvent){var d=new e.CustomEvent(l,{detail:a,bubbles:!0,cancelable:!0});c.dom7EventData=r.filter(function(e,t){return t>0}),c.dispatchEvent(d),c.dom7EventData=[],delete c.dom7EventData}}return this},transitionEnd:function(e){var t=this;return e&&t.on("transitionend",function r(i){i.target===this&&(e.call(this,i),t.off("transitionend",r))}),this},outerWidth:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+
247parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},styles:function(){var e=(0,i.zk)();return this[0]?e.getComputedStyle(this[0],null):{}},offset:function(){if(this.length>0){var e=(0,i.zk)(),t=(0,i.YE)(),r=this[0],n=r.getBoundingClientRect(),s=t.body,a=r.clientTop||s.clientTop||0,o=r.clientLeft||s.clientLeft||0,l=r===e?e.scrollY:r.scrollTop,u=r===e?e.scrollX:r.scrollLeft;return{top:n.top+l-a,left:n.left+u-o}}return null},css:function(e,t){var r,n=(0,i.zk)();if(1==arguments.length)if("string"==typeof e){if(this[0])return n.getComputedStyle(this[0],null).getPropertyValue(e)}else{for(r=0;r<this.length;r+=1)for(var s in e)this[r].style[s]=e[s];return this}if(2==arguments.length&&"string"==typeof e)for(r=0;r<this.length;r+=1)this[r].style[e]=t;return this},each:function(e){return e&&this.forEach(function(t,r){e.apply(t,[t,r])}),this},html:function(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this},text:function(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this},is:function(e){var t,r,n=(0,i.zk)(),s=(0,i.YE)(),a=this[0];if(!a||void 0===e)return!1;if("string"==typeof e){if(a.matches)return a.matches(e);if(a.webkitMatchesSelector)return a.webkitMatchesSelector(e);if(a.msMatchesSelector)return a.msMatchesSelector(e);for(t=d(e),r=0;r<t.length;r+=1)if(t[r]===a)return!0;return!1}if(e===s)return a===s;if(e===n)return a===n;if(e.nodeType||e instanceof l){for(t=e.nodeType?[e]:e,r=0;r<t.length;r+=1)if(t[r]===a)return!0}return!1},index:function(){var e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}},eq:function(e){if(void 0===e)return this;var t=this.length;if(e>t-1)return d([]);if(e<0){var r=t+e;return r<0?d([]):d([this[r]])}return d([this[e]])},append:function(){for(var e,t=(0,i.YE)(),r=0;r<arguments.length;r+=1){e=r<0||arguments.length<=r?void 0:arguments[r];for(var n=0;n<this.length;n+=1)if("string"==typeof e){var s=t.createElement("div");for(s.innerHTML=e;s.firstChild;)this[n].appendChild(s.firstChild)}else if(e instanceof l)for(var a=0;a<e.length;a+=1)this[n].appendChild(e[a]);else this[n].appendChild(e)}return this},prepend:function(e){var t,r,n=(0,i.YE)();for(t=0;t<this.length;t+=1)if("string"==typeof e){var s=n.createElement("div");for(s.innerHTML=e,r=s.childNodes.length-1;r>=0;r-=1)this[t].insertBefore(s.childNodes[r],this[t].childNodes[0])}else if(e instanceof l)for(r=0;r<e.length;r+=1)this[t].insertBefore(e[r],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this},next:function(e){if(this.length>0){if(e)return this[0].nextElementSibling&&d(this[0].nextElementSibling).is(e)?d([this[0].nextElementSibling]):d([]);if(this[0].nextElementSibling)return d([this[0].nextElementSibling])}return d([])},nextAll:function(e){var t=[],r=this[0];if(!r)return d([]);for(;r.nextElementSibling;){var i=r.nextElementSibling;e?d(i).is(e)&&t.push(i):t.push(i),r=i}return d(t)},prev:function(e){if(this.length>0){var t=this[0];if(e)return t.previousElementSibling&&d(t.previousElementSibling).is(e)?d([t.previousElementSibling]):d([]);if(t.previousElementSibling)return d([t.previousElementSibling])}return d([])},prevAll:function(e){var t=[],r=this[0];if(!r)return d([]);for(;r.previousElementSibling;){var i=r.previousElementSibling;e?d(i).is(e)&&t.push(i):t.push(i),r=i}return d(t)},parent:function(e){for(var t=[],r=0;r<this.length;r+=1)null!==this[r].parentNode&&(e?d(this[r].parentNode).is(e)&&t.push(this[r].parentNode):t.push(this[r].parentNode));return d(t)},parents:function(e){for(var t=[],r=0;r<this.length;r+=1)for(var i=this[r].parentNode;i;)e?d(i).is(e)&&t.push(i):t.push(i),i=i.parentNode;return d(t)},closest:function(e){var t=this;return void 0===e?d([]):(t.is(e)||(t=t.parents(e).eq(0)),t)},find:function(e){for(var t=[],r=0;r<this.length;r+=1)for(var i=this[r].querySelectorAll(e),n=0;n<i.length;n+=1)t.push(i[n]);return d(t)},children:function(e){for(var t=[],r=0;r<this.length;r+=1)for(var i=this[r].children,n=0;n<i.length;n+=1)(!e||d(i[n]).is(e))&&t.push(i[n]);return d(t)},filter:function(e){return d(c(this,e))},remove:function(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}};Object.keys(f).forEach(function(e){Object.defineProperty(d.fn,e,{value:f[e],writable:!0})});let g=d},74216:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var i=r(5640),n=r(90072),s=r.n(n),a=r(29143);let o=(e=!1)=>(0,i.default)({id:"BIKE",className:"bike-theme bg-body-light font-normal font-sans",label:"BIKE",bidexCategoryWhitelist:s().BIKE,env:{FALLBACK_IMAGE_ID:"/bike-placeholder_u74mc4",AUTHOR_FALLBACK_IMAGE_ID:"bike-logo_imzi9z",STORYBOOK_URL:"https://dk-storybook.vercel.app/",CLOUDINARY_DOMAIN:"media.delius-klasing.de",CLOUDINARY_CLOUD_NAME:"delius-klasing-eu",CLOUDINARY_API_KEY:"163953246332712",CONTENTFUL_SPACE:"2asspynmne8s",CONTENTFUL_ACCESSTOKEN_PREVIEW:a.env.CONTENTFUL_ACCESSTOKEN_PREVIEW,CONTENTFUL_ENVIRONMENT:a.env.NEXT_PUBLIC_CONTENTFUL_ENVIRONMENT||"master",CONTENTFUL_ACCESSTOKEN:"-Qsu9rvN4hI_aomDR6q6qOx7ee_asJQrlfOhGzT3SqQ",CONTENTFUL_ROOT:"https://graphql.contentful.com/content/v1/spaces
247/2asspynmne8s",CONTENTFUL_USE_PREVIEW:a.env.NEXT_PUBLIC_CONTENTFUL_PREVIEW||!1,ALGOLIA_INDEX:"prod_WASSERSPORT",ALGOLIA_APPLICATION_ID:"ZXSCOHJ8KV",YOUTUBE_API_KEY:a.env.BIKE_YOUTUBE_API_KEY,PIWIK_CONTAINER_URL:"https://delius.piwik.pro",PIWIK_CONTAINER_ID:"66d24622-235e-468b-a2fb-88ac6a6405c1",PIWIK_COOKIE_DOMAIN:".bike-magazin.de",PIWIK_USE_ECOMMERCE:!0,AUTHOR_LINKS_IN_ARTICLES:!0,NEXT_PUBLIC_GTM_ID:"GTM-WSLMKN4",FACEBOOK_PIXEL_ID:"1551822323357324",MARFEEL_ACCOUNT_ID:11332},involveme:{optinMail:{templateId:3370751,sender:{Email:"[email protected]",Name:"bike-magazin.de"}},optin:{"Ich bin damit einverstanden, dass mich die Delius Klasing Verlag GmbH (Delius Klasing) per E-Mail unter Verwendung der zu mir erhobenen Daten \xfcber interessante Angebote von Delius Klasing informiert.":"marketing","Ich bin damit einverstanden, dass mich der Delius Klasing Verlag k\xfcnftig per E-Mail unter Verwendung der zu mir erhobenen Daten \xfcber interessante Angebote informiert.":"marketing","Ich akzeptiere die Nutzungsbedingungen und habe die Datenschutzerkl\xe4rung gelesen.":"optin","Ich bin damit einverstanden, dass mich die Althoff Beratungs- und Betreuungsgesellschaft mbH k\xfcnftig per E-Mail und postalisch unter Verwendung der zu mir erhobenen Daten \xfcber interessante Angebote informiert.":"optinalthoff","Ich bin damit einverstanden, dass mich die TechniBike GmbH k\xfcnftig per E-Mail und postalisch unter Verwendung der zu mir erhobenen Daten \xfcber interessante Angebote informiert.":"optintechnibike","Ich bin damit einverstanden, dass mich die BOA Technology GmbH k\xfcnftig per E-Mail und postalisch unter Verwendung der zu mir erhobenen Daten \xfcber interessante Angebote informiert.":"optinboatechnology","Ich bin damit einverstanden, dass mich die GlobeSailor SAS k\xfcnftig per E-Mail und postalisch unter Verwendung der zu mir erhobenen Daten \xfcber interessante Angebote informiert.":"optinglobesailorsas"},newsletters:{"Hiermit melde ich mich zum BIKE-Newsletter an.":"optinnewsletter","Hiermit melde ich mich zum BIKE-Newsletter an. Der Newsletter kann jederzeit wieder abbestellt werden.":"optinnewsletter"}},samples:{images:"bike/storybook",image:"bike/storybook"},styles:{roundedEdges:!1,showTeasertext:!1,hasTextShadow:!1,mouseOverEffect:"none",teaserStyle:"below"},i18n:{enableTranslationOnPublish:["en"],enableLocalizedSitemap:["en"]},defaultArgs:{mouseOverEffect:"none",tags_nin:["cvCdiPNgIiDajEvbscLXv"]},upscore:{domain:"bike-magazin.de",key:"FBB1368D"},siteUrl:"https://www.bike-magazin.de",articlesFeedSettings:{maxArticles:6,priorityTags:["spon"],excludedTags:["advertorial","hide"],requiredCategories:["komponenten","ausruestung","fahrr\xe4der"],blockedAuthors:[]},msnFeedSettings:{maxArticles:30,minTextLength:450,excludedTags:["advertorial","hide","sponsored"],blockedAuthors:[],requiredCategories:["komponenten","ausruestung","fahrr\xe4der"],hasSyndicationRights:1,enableBidex:!0},appStoreLinks:{iOS:"https://apps.apple.com/de/app/bike-tests-technik-touren/id6748683537",android:"https://play.google.com/store/apps/details?id=de.deliusklasing.bike&hl=de",fallback:"https://www.bike-magazin.de/bike-app"}},e)},74480:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ToolbarPlaceholder:()=>a});var i=r(6029);r(55729);var n=r(67080),s=r(49832);let a=()=>(0,n.l)((0,s.k)(e=>e.hasToolbar))?(0,i.jsx)("div",{className:"dxp-toolbar-placeholder"}):null},74987:function(e,t,r){var i,n;n=(i=r(35596)).lib.WordArray,i.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,i=this._map;e.clamp();for(var n=[],s=0;s<r;s+=3)for(var a=(t[s>>>2]>>>24-s%4*8&255)<<16|(t[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|t[s+2>>>2]>>>24-(s+2)%4*8&255,o=0;o<4&&s+.75*o<r;o++)n.push(i.charAt(a>>>6*(3-o)&63));var l=i.charAt(64);if(l)for(;n.length%4;)n.push(l);return n.join("")},parse:function(e){var t=e.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var s=0;s<r.length;s++)i[r.charCodeAt(s)]=s}var a=r.charAt(64);if(a){var o=e.indexOf(a);-1!==o&&(t=o)}for(var l=e,u=t,c=i,d=[],h=0,p=0;p<u;p++)if(p%4){var f=c[l.charCodeAt(p-1)]<<p%4*2|c[l.charCodeAt(p)]>>>6-p%4*2;d[h>
247>>2]|=f<<24-h%4*8,h++}return n.create(d,h)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},e.exports=i.enc.Base64},75291:()=>{},75828:(e,t)=>{var r;!function(){"use strict";var i={}.hasOwnProperty;function n(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var s=typeof r;if("string"===s||"number"===s)e.push(r);else if(Array.isArray(r)){if(r.length){var a=n.apply(null,r);a&&e.push(a)}}else if("object"===s){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){e.push(r.toString());continue}for(var o in r)i.call(r,o)&&r[o]&&e.push(o)}}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):void 0===(r=(function(){return n}).apply(t,[]))||(e.exports=r)}()},78687:(e,t,r)=>{"use strict";r.d(t,{i7:()=>I,$5:()=>eo,O:()=>O});var i,n,s,a,o=r(35596),l=r(29304),u=r(74987),c=r(66259);function d(e){this.message=e}d.prototype=Error(),d.prototype.name="InvalidCharacterError";var h="u">typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new d("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,i,n=0,s=0,a="";i=t.charAt(s++);~i&&(r=n%4?64*r+i:i,n++%4)&&(a+=String.fromCharCode(255&r>>(-2*n&6))))i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return a};function p(e){this.message=e}p.prototype=Error(),p.prototype.name="InvalidTokenError";let f=function(e,t){if("string"!=typeof e)throw new p("Invalid token specified");var r=+(!0!==(t=t||{}).header);try{return JSON.parse(function(e){var t,r=e.replace(/-/g,"+").replace(/_/g,"/");switch(r.length%4){case 0:break;case 2:r+="==";break;case 3:r+="=";break;default:throw"Illegal base64url string!"}try{return t=r,decodeURIComponent(h(t).replace(/(.)/g,function(e,t){var r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}catch(e){return h(r)}}(e.split(".")[r]))}catch(e){throw new p("Invalid token specified: "+e.message)}};var g={debug:()=>void 0,info:()=>void 0,warn:()=>void 0,error:()=>void 0},m=((i=m||{})[i.NONE=0]="NONE",i[i.ERROR=1]="ERROR",i[i.WARN=2]="WARN",i[i.INFO=3]="INFO",i[i.DEBUG=4]="DEBUG",i);(n=m||(m={})).reset=function(){s=3,a=g},n.setLevel=function(e){if(!(0<=e&&e<=4))throw Error("Invalid log level");s=e},n.setLogger=function(e){a=e};var v=class{constructor(e){this._name=e}debug(...e){s>=4&&a.debug(v._format(this._name,this._method),...e)}info(...e){s>=3&&a.info(v._format(this._name,this._method),...e)}warn(...e){s>=2&&a.warn(v._format(this._name,this._method),...e)}error(...e){s>=1&&a.error(v._format(this._name,this._method),...e)}throw(e){throw this.error(e),e}create(e){let t=Object.create(this);return t._method=e,t.debug("begin"),t}static createStatic(e,t){let r=new v(`${e}.${t}`);return r.debug("begin"),r}static _format(e,t){let r=`[${e}]`;return t?`${r} ${t}:`:r}static debug(e,...t){s>=4&&a.debug(v._format(e),...t)}static info(e,...t){s>=3&&a.info(v._format(e),...t)}static warn(e,...t){s>=2&&a.warn(v._format(e),...t)}static error(e,...t){s>=1&&a.error(v._format(e),...t)}};m.reset();var b=class{static _randomWord(){return o.lib.WordArray.random(1).words[0]}static generateUUIDv4(){return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,e=>(e^b._randomWord()&15>>e/4).toString(16)).replace(/-/g,"")}static generateCodeVerifier(){return b.generateUUIDv4()+b.generateUUIDv4()+b.generateUUIDv4()}static generateCodeChallenge(e){try{let t=l(e);return u.stringify(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}catch(e){throw v.error("CryptoUtils.generateCodeChallenge",e),e}}static generateBasicAuth(e,t){let r=c.parse([e,t].join(":"));return u.stringify(r)}},y=class{constructor(e){this._name=e,this._logger=new v(`Event('${this._name}')`),this._callbacks=[]}addHandler(e){return this._callbacks.push(e),()=>this.removeHandler(e)}removeHandler(e){let t=this._callbacks.lastIndexOf(e);t>=0&&this._callbacks.splice(t,1)}raise(...e){for(let t of(this._logger.debug("raise:",...e),this._callbacks))t(...e)}},w=class{static decode(e){try{return f(e)}catch(e){throw v.error("JwtUtils.decode",e),e}}},_=class{static center({...e}){var t;return null==e.width&&(e.width=null!=(t=[800,720,600,480].find(e=>
247e<=window.outerWidth/1.618))?t:360),null!=e.left||(e.left=Math.max(0,Math.round(window.screenX+(window.outerWidth-e.width)/2))),null!=e.height&&(null!=e.top||(e.top=Math.max(0,Math.round(window.screenY+(window.outerHeight-e.height)/2)))),e}static serialize(e){return Object.entries(e).filter(([,e])=>null!=e).map(([e,t])=>`${e}=${"boolean"!=typeof t?t:t?"yes":"no"}`).join(",")}},E=class extends y{constructor(){super(...arguments),this._logger=new v(`Timer('${this._name}')`),this._timerHandle=null,this._expiration=0,this._callback=()=>{let e=this._expiration-E.getEpochTime();this._logger.debug("timer completes in",e),this._expiration<=E.getEpochTime()&&(this.cancel(),super.raise())}}static getEpochTime(){return Math.floor(Date.now()/1e3)}init(e){let t=this._logger.create("init");e=Math.max(Math.floor(e),1);let r=E.getEpochTime()+e;if(this.expiration===r&&this._timerHandle)return void t.debug("skipping since already initialized for expiration at",this.expiration);this.cancel(),t.debug("using duration",e),this._expiration=r;let i=Math.min(e,5);this._timerHandle=setInterval(this._callback,1e3*i)}get expiration(){return this._expiration}cancel(){this._logger.create("cancel"),this._timerHandle&&(clearInterval(this._timerHandle),this._timerHandle=null)}},S=class{static readParams(e,t="query"){if(!e)throw TypeError("Invalid URL");return new URLSearchParams(new URL(e,"http://127.0.0.1")["fragment"===t?"hash":"search"].slice(1))}},T=class extends Error{constructor(e,t){var r,i,n;if(super(e.error_description||e.error||""),this.form=t,this.name="ErrorResponse",!e.error)throw v.error("ErrorResponse","No error passed"),Error("No error passed");this.error=e.error,this.error_description=null!=(r=e.error_description)?r:null,this.error_uri=null!=(i=e.error_uri)?i:null,this.state=e.userState,this.session_state=null!=(n=e.session_state)?n:null,this.url_state=e.url_state}},C=class extends Error{constructor(e){super(e),this.name="ErrorTimeout"}},k=class{constructor(e){this._logger=new v("AccessTokenEvents"),this._expiringTimer=new E("Access token expiring"),this._expiredTimer=new E("Access token expired"),this._expiringNotificationTimeInSeconds=e.expiringNotificationTimeInSeconds}load(e){let t=this._logger.create("load");if(e.access_token&&void 0!==e.expires_in){let r=e.expires_in;if(t.debug("access token present, remaining duration:",r),r>0){let e=r-this._expiringNotificationTimeInSeconds;e<=0&&(e=1),t.debug("registering expiring timer, raising in",e,"seconds"),this._expiringTimer.init(e)}else t.debug("canceling existing expiring timer because we're past expiration."),this._expiringTimer.cancel();let i=r+1;t.debug("registering expired timer, raising in",i,"seconds"),this._expiredTimer.init(i)}else this._expiringTimer.cancel(),this._expiredTimer.cancel()}unload(){this._logger.debug("unload: canceling existing access token timers"),this._expiringTimer.cancel(),this._expiredTimer.cancel()}addAccessTokenExpiring(e){return this._expiringTimer.addHandler(e)}removeAccessTokenExpiring(e){this._expiringTimer.removeHandler(e)}addAccessTokenExpired(e){return this._expiredTimer.addHandler(e)}removeAccessTokenExpired(e){this._expiredTimer.removeHandler(e)}},x=class{constructor(e,t,r,i,n){this._callback=e,this._client_id=t,this._intervalInSeconds=i,this._stopOnError=n,this._logger=new v("CheckSessionIFrame"),this._timer=null,this._session_state=null,this._message=e=>{e.origin===this._frame_origin&&e.source===this._frame.contentWindow&&("error"===e.data?(this._logger.error("error message from check session op iframe"),this._stopOnError&&this.stop()):"changed"===e.data?(this._logger.debug("changed message from check session op iframe"),this.stop(),this._callback()):this._logger.debug(e.data+" message from check session op iframe"))};const s=new URL(r);this._frame_origin=s.origin,this._frame=window.document.createElement("iframe"),this._frame.style.visibility="hidden",this._frame.style.position="fixed",this._frame.style.left="-1000px",this._frame.style.top="0",this._frame.width="0",this._frame.height="0",this._frame.src=s.href}load(){return new Promise(e=>{this._frame.onload=()=>{e()},window.document.body.appendChild(this._frame),window.addEventListener("message",this._message,!1)})}start(e){if(this._session_state===e)return;this._logger.create("start"),this.stop(),this._session_state=e;let t=()=>{this._frame.contentWindow&&this._session_state&&this._frame.contentWindow.postMessage(this._client_id+" "+this._session_state,this._frame_origin)};t(),this._timer=setInterval(t,1e3*this._intervalInSeconds)}stop(){this._logger.create("stop"),this._session_state=null,this._timer&&(clearInterval(this._timer),this._timer=null)}},I=class{constructor(){this._logger=new v("InMemoryWebStorage"),this._data={}}clear(){this._logger.create("clear"),this._data={}}getItem(e){return this._logger.create(`getItem('${e}')`),this._data[e]}setItem(e,t){this._logger.create(`setItem('${e}')`),this._data[e]=t}removeItem(e){this._logger.create(`removeItem('${e}')`),delete this._data[e]}get length(){return Object.getOwnPropertyNames(this._data).length}key(e){return Object.getOwnPropertyNames(this._data)[e]}},A=class{constructor(e=[],t=null,r={}){this._jwtHandler=t,this._extraHeaders=r,this._logger=new v("JsonService"),this._contentTypes=[],this._contentTypes.push(...e,"application/json"),t&&this._contentTypes.push("application/jwt")}async fetchWithTimeout(e,t={}){let{timeoutInSeconds:r,...i}=t;if(!r)return await fetch(e,i);let n=new AbortController,s=setTimeout(()=>n.abort(),1e3*r);try{return await fetch(e,{...t,signal:n.signal})}catch(e){if(e instanceof DOMException&&"AbortError"===e.name)throw new C("Network timed out");throw e}finally{clearTimeout(s)}}async getJson(e,{token:t,credentials:r}={}){let i,n,s=this._logger.create("getJson"),a={Accept:this._contentTypes.join(", ")};t&&(s.debug("token passed, setting Authorization header"),a.Authorization="Bearer "+t),this.appendExtraHeaders(a);try{s.debug("url:",e),i=await this.fetchWithTimeout(e,{method:"GET",headers:a,credentials:r})}catch(e){throw s.error("Network Error"),e}s.debug("HTTP response received, status",i.status);let o=i.headers.get("Content-Type");if(o&&!this._contentTypes.find(e=>o.startsWith(e))&&s.throw(Error(`Invalid response Content-Type: ${null!=o?o:"undefined"}, from URL: ${e}`)),i.ok&&this._jwtHandler&&(null==o?void 0:o.startsWith("application/jwt")))return await this._jwtHandler(await i.text());try{n=await i.json()}catch(e){if(s.error("Error parsing JSON response",e),i.ok)throw e;throw Error(`${i.statusText} (${i.status})`)}if(!i.ok){if(s.error("Error from server:",n),n.error)throw new T(n);throw Error(`${i.statusText} (${i.status}): ${JSON.stringify(n)}`)}return n}async postForm(e,{body:t,basicAuth:r,timeoutInSeconds:i,initCredentials:n}){let s,a=this._logger.create("postForm"),o={Accept:this._contentTypes.join(", "),"Content-Type":"application/x-www-form-urlencoded"};void 0!==r&&(o.Authorization="Basic "+r),this.appendExtraHeaders(o);try{a.debug("url:",e),s=await this.fetchWithTimeout(e,{method:"POST",headers:o,body:t,timeoutInSeconds:i,credentials:n})}catch(e){throw a.error("Network error"),e}a.debug("HTTP response received, status",s.status);let l=s.headers.get("Content-Type");if(l&&!this._contentTypes.find(e=>l.startsWith(e)))throw Error(`Invalid response Content-Type: ${null!=l?l:"undefined"}, from URL: ${e}`);let u=await s.text(),c={};if(u)try{c=JSON.parse(u)}catch(e){if(a.error("Error parsing JSON response",e),s.ok)throw e;throw Error(`${s.statusText} (${s.status})`)}if(!s.ok){if(a.error("Error from server:",c),c.error)throw new T(c,t);throw Error(`${s.statusText} (${s.status}): ${JSON.stringify(c)}`)}return c}appendExtraHeaders(e){let t=this._logger.create("appendExtraHeaders"),r=Object.keys(this._extraHeaders),i=["authorization","accept","content-type"];0!==r.length&&r.forEach(r=>{if(i.includes(r.toLocaleLowerCase()))return void t.warn("Protected header could not be overridden",r,i);let n="function"==typeof this._extraHeaders[r]?this._extraHeaders[r]():this._extraHeaders[r];n&&""!==n&&(e[r]=n)})}},P=class{constructor(e){this._settings=e,this._logger=new v("MetadataService"),this._signingKeys=null,this._metadata=null,this._metadataUrl=this._settings.metadataUrl,this._jsonService=new A(["application/jwk-set+json"],null,this._settings.extraHeaders),this._settings.signingKeys&&(this._logger.debug("using signingKeys from settings"),this._signingKeys=this._settings.signingKeys),this._settings.metadata&&(this._logger.debug("using metadata from settings"),this._metadata=this._settings.metadata),this._settings.fetchRequestCredentials&&(this._logger.debug("using fetchRequestCredentials from settings"),this._fetchRequestCredentials=this._settings.fetchRequestCredentials)}resetSigningKeys(){this._signingKeys=null}async getMetadata(){let e=this._logger.create("getMetadata");if(this._metadata)return e.debug("using cached values"),this._metadata;if(!this._metadataUrl)throw e.throw(Error("No authority or metadataUrl configured on settings")),null;e.debug("getting metadata from",this._metadataUrl);let t=await this._jsonService.getJson(this._metadataUrl,{credentials:this._fetchRequestCredentials});return e.debug("merging remote JSON with seed metadata"),this._metadata=Object.assign({},this._settings.metadataSeed,t),this._metadata}getIssuer(){return this._getMetadataProperty("issuer")}getAuthorizationEndpoint(){return this._getMetadataProperty("authorization_endpoint")}getUserInfoEndpoint(){return this._getMetadataProperty("userinfo_endpoint")}getTokenEndpoint(e=!0){return this._getMetadataProperty("token_endpoint",e)}getCheckSessionIframe(){return this._getMetadataProperty("check_session_iframe",!0)}getEndSessionEndpoint(){return this._getMetadataProperty("end_session_endpoint",!0)}getRevocationEndpoint(e=!0){return this._getMetadataProperty("revocation_endpoint",e)}getKeysEndpoint(e=!0){return this._getMetadataProperty("jwks_uri",e)}async _getMetadataProperty(e,t=!1){let r=this._logger.create(`_getMetadataProperty('${e}')`),i=await this.getMetadata();if(r.debug("resolved"),void 0===i[e]){if(!0===t)return void r.warn("Metadata does not contain optional property");r.throw(Error("Metadata does not contain property "+e))}return i[e]}async getSigningKeys(){let e=this._logger.create("getSigningKeys");if(this._signingKeys)return e.debug("returning signingKeys from cache"),this._signingKeys;let t=await this.getKeysEndpoint(!1);e.debug("got jwks_uri",t);let r=await this._jsonService.getJson(t);
247if(e.debug("got key set",r),!Array.isArray(r.keys))throw e.throw(Error("Missing keys on keyset")),null;return this._signingKeys=r.keys,this._signingKeys}},O=class{constructor({prefix:e="oidc.",store:t=localStorage}={}){this._logger=new v("WebStorageStateStore"),this._store=t,this._prefix=e}async set(e,t){this._logger.create(`set('${e}')`),e=this._prefix+e,await this._store.setItem(e,t)}async get(e){return this._logger.create(`get('${e}')`),e=this._prefix+e,await this._store.getItem(e)}async remove(e){this._logger.create(`remove('${e}')`),e=this._prefix+e;let t=await this._store.getItem(e);return await this._store.removeItem(e),t}async getAllKeys(){this._logger.create("getAllKeys");let e=await this._store.length,t=[];for(let r=0;r<e;r++){let e=await this._store.key(r);e&&0===e.indexOf(this._prefix)&&t.push(e.substr(this._prefix.length))}return t}},N=class{constructor({authority:e,metadataUrl:t,metadata:r,signingKeys:i,metadataSeed:n,client_id:s,client_secret:a,response_type:o="code",scope:l="openid",redirect_uri:u,post_logout_redirect_uri:c,client_authentication:d="client_secret_post",prompt:h,display:p,max_age:f,ui_locales:g,acr_values:m,resource:v,response_mode:b="query",filterProtocolClaims:y=!0,loadUserInfo:w=!1,staleStateAgeInSeconds:_=900,clockSkewInSeconds:E=300,userInfoJwtIssuer:S="OP",mergeClaims:T=!1,disablePKCE:C=!1,stateStore:k,refreshTokenCredentials:x,revokeTokenAdditionalContentTypes:A,fetchRequestCredentials:P,refreshTokenAllowedScope:N,extraQueryParams:R={},extraTokenParams:M={},extraHeaders:L={}}){if(this.authority=e,t?this.metadataUrl=t:(this.metadataUrl=e,e&&(this.metadataUrl.endsWith("/")||(this.metadataUrl+="/"),this.metadataUrl+=".well-known/openid-configuration")),this.metadata=r,this.metadataSeed=n,this.signingKeys=i,this.client_id=s,this.client_secret=a,this.response_type=o,this.scope=l,this.redirect_uri=u,this.post_logout_redirect_uri=c,this.client_authentication=d,this.prompt=h,this.display=p,this.max_age=f,this.ui_locales=g,this.acr_values=m,this.resource=v,this.response_mode=b,this.filterProtocolClaims=null==y||y,this.loadUserInfo=!!w,this.staleStateAgeInSeconds=_,this.clockSkewInSeconds=E,this.userInfoJwtIssuer=S,this.mergeClaims=!!T,this.disablePKCE=!!C,this.revokeTokenAdditionalContentTypes=A,P&&x&&console.warn("Both fetchRequestCredentials and refreshTokenCredentials is set. Only fetchRequestCredentials will be used."),this.fetchRequestCredentials=P||x||"same-origin",k)this.stateStore=k;else{const e="u">typeof window?window.localStorage:new I;this.stateStore=new O({store:e})}this.refreshTokenAllowedScope=N,this.extraQueryParams=R,this.extraTokenParams=M,this.extraHeaders=L}},R=class{constructor(e,t){this._settings=e,this._metadataService=t,this._logger=new v("UserInfoService"),this._getClaimsFromJwt=async e=>{let t=this._logger.create("_getClaimsFromJwt");try{let r=w.decode(e);return t.debug("JWT decoding successful"),r}catch(e){throw t.error("Error parsing JWT response"),e}},this._jsonService=new A(void 0,this._getClaimsFromJwt,this._settings.extraHeaders)}async getClaims(e){let t=this._logger.create("getClaims");e||this._logger.throw(Error("No token passed"));let r=await this._metadataService.getUserInfoEndpoint();t.debug("got userinfo url",r);let i=await this._jsonService.getJson(r,{token:e,credentials:this._settings.fetchRequestCredentials});return t.debug("got claims",i),i}},M=class{constructor(e,t){this._settings=e,this._metadataService=t,this._logger=new v("TokenClient"),this._jsonService=new A(this._settings.revokeTokenAdditionalContentTypes,null,this._settings.extraHeaders)}async exchangeCode({grant_type:e="authorization_code",redirect_uri:t=this._settings.redirect_uri,client_id:r=this._settings.client_id,client_secret:i=this._settings.client_secret,...n}){let s,a=this._logger.create("exchangeCode");r||a.throw(Error("A client_id is required")),t||a.throw(Error("A redirect_uri is required")),n.code||a.throw(Error("A code is required"));let o=new URLSearchParams({grant_type:e,redirect_uri:t});for(let[e,t]of Object.entries(n))null!=t&&o.set(e,t);switch(this._settings.client_authentication){case"client_secret_basic":if(!i)throw a.throw(Error("A client_secret is required")),null;s=b.generateBasicAuth(r,i);break;case"client_secret_post":o.append("client_id",r),i&&o.append("client_secret",i)}let l=await this._metadataService.getTokenEndpoint(!1);a.debug("got token endpoint");let u=await this._jsonService.postForm(l,{body:o,basicAuth:s,initCredentials:this._settings.fetchRequestCredentials});return a.debug("got response"),u}async exchangeCredentials({grant_type:e="password",client_id:t=this._settings.client_id,client_secret:r=this._settings.client_secret,scope:i=this._settings.scope,...n}){let s,a=this._logger.create("exchangeCredentials");t||a.throw(Error("A client_id is required"));let o=new URLSearchParams({grant_type:e,scope:i});for(let[e,t]of Object.entries(n))null!=t&&o.set(e,t);
247switch(this._settings.client_authentication){case"client_secret_basic":if(!r)throw a.throw(Error("A client_secret is required")),null;s=b.generateBasicAuth(t,r);break;case"client_secret_post":o.append("client_id",t),r&&o.append("client_secret",r)}let l=await this._metadataService.getTokenEndpoint(!1);a.debug("got token endpoint");let u=await this._jsonService.postForm(l,{body:o,basicAuth:s,initCredentials:this._settings.fetchRequestCredentials});return a.debug("got response"),u}async exchangeRefreshToken({grant_type:e="refresh_token",client_id:t=this._settings.client_id,client_secret:r=this._settings.client_secret,timeoutInSeconds:i,...n}){let s,a=this._logger.create("exchangeRefreshToken");t||a.throw(Error("A client_id is required")),n.refresh_token||a.throw(Error("A refresh_token is required"));let o=new URLSearchParams({grant_type:e});for(let[e,t]of Object.entries(n))Array.isArray(t)?t.forEach(t=>o.append(e,t)):null!=t&&o.set(e,t);switch(this._settings.client_authentication){case"client_secret_basic":if(!r)throw a.throw(Error("A client_secret is required")),null;s=b.generateBasicAuth(t,r);break;case"client_secret_post":o.append("client_id",t),r&&o.append("client_secret",r)}let l=await this._metadataService.getTokenEndpoint(!1);a.debug("got token endpoint");let u=await this._jsonService.postForm(l,{body:o,basicAuth:s,timeoutInSeconds:i,initCredentials:this._settings.fetchRequestCredentials});return a.debug("got response"),u}async revoke(e){var t;let r=this._logger.create("revoke");e.token||r.throw(Error("A token is required"));let i=await this._metadataService.getRevocationEndpoint(!1);r.debug(`got revocation endpoint, revoking ${null!=(t=e.token_type_hint)?t:"default token type"}`);let n=new URLSearchParams;for(let[t,r]of Object.entries(e))null!=r&&n.set(t,r);n.set("client_id",this._settings.client_id),this._settings.client_secret&&n.set("client_secret",this._settings.client_secret),await this._jsonService.postForm(i,{body:n}),r.debug("got response")}},L=class{constructor(e,t,r){this._settings=e,this._metadataService=t,this._claimsService=r,this._logger=new v("ResponseValidator"),this._userInfoService=new R(this._settings,this._metadataService),this._tokenClient=new M(this._settings,this._metadataService)}async validateSigninResponse(e,t){let r=this._logger.create("validateSigninResponse");this._processSigninState(e,t),r.debug("state processed"),await this._processCode(e,t),r.debug("code processed"),e.isOpenId&&this._validateIdTokenAttributes(e),r.debug("tokens validated"),await this._processClaims(e,null==t?void 0:t.skipUserInfo,e.isOpenId),r.debug("claims processed")}async validateCredentialsResponse(e,t){let r=this._logger.create("validateCredentialsResponse");e.isOpenId&&e.id_token&&this._validateIdTokenAttributes(e),r.debug("tokens validated"),await this._processClaims(e,t,e.isOpenId),r.debug("claims processed")}async validateRefreshResponse(e,t){let r=this._logger.create("validateRefreshResponse");e.userState=t.data,null!=e.session_state||(e.session_state=t.session_state),null!=e.scope||(e.scope=t.scope),e.isOpenId&&e.id_token&&(this._validateIdTokenAttributes(e,t.id_token),r.debug("ID Token validated")),e.id_token||(e.id_token=t.id_token,e.profile=t.profile);let i=e.isOpenId&&!!e.id_token;await this._processClaims(e,!1,i),r.debug("claims processed")}validateSignoutResponse(e,t){let r=this._logger.create("validateSignoutResponse");if(t.id!==e.state&&r.throw(Error("State does not match")),r.debug("state validated"),e.userState=t.data,e.error)throw r.warn("Response was error",e.error),new T(e)}_processSigninState(e,t){let r=this._logger.create("_processSigninState");if(t.id!==e.state&&r.throw(Error("State does not match")),t.client_id||r.throw(Error("No client_id on state")),t.authority||r.throw(Error("No authority on state")),this._settings.authority!==t.authority&&r.throw(Error("authority mismatch on settings vs. signin state")),this._settings.client_id&&this._settings.client_id!==t.client_id&&r.throw(Error("client_id mismatch on settings vs. signin state")),r.debug("state validated"),e.userState=t.data,e.url_state=t.url_state,null!=e.scope||(e.scope=t.scope),e.error)throw r.warn("Response was error",e.error),new T(e);t.code_verifier&&!e.code&&r.throw(Error("Expected code in response"))}async _processClaims(e,t=!1,r=!0){let i=this._logger.create("_processClaims");if(e.profile=this._claimsService.filterProtocolClaims(e.profile),t||!this._settings.loadUserInfo||!e.access_token)return void i.debug("not loading user info");i.debug("loading user info");let n=await this._userInfoService.getClaims(e.access_token);i.debug("user info claims received from user info endpoint"),r&&n.sub!==e.profile.sub&&i.throw(Error("subject from UserInfo response does not match subject in ID Token")),e.profile=this._claimsService.mergeClaims(e.profile,this._claimsService.filterProtocolClaims(n)),i.debug("user info claims received, updated profile:",e.profile)}async _processCode(e,t){let r=this._logger.create("_processCode");if(e.code){r.debug("Validating code");let i=await this._tokenClient.exchangeCode({client_id:t.client_id,client_secret:t.client_secret,code:e.code,redirect_uri:t.redirect_uri,code_verifier:t.code_verifier,...t.extraTokenParams});Object.assign(e,i)}else r.debug("No code to process")}_validateIdTokenAttributes(e,t){var r;let i=this._logger.create("_validateIdTokenAttributes");i.debug("decoding ID Token JWT");let n=w.decode(null!=(r=e.id_token)?r:"");
247if(n.sub||i.throw(Error("ID Token is missing a subject claim")),t){let e=w.decode(t);n.sub!==e.sub&&i.throw(Error("sub in id_token does not match current sub")),n.auth_time&&n.auth_time!==e.auth_time&&i.throw(Error("auth_time in id_token does not match original auth_time")),n.azp&&n.azp!==e.azp&&i.throw(Error("azp in id_token does not match original azp")),!n.azp&&e.azp&&i.throw(Error("azp not in id_token, but present in original id_token"))}e.profile=n}},D=class{constructor(e){this.id=e.id||b.generateUUIDv4(),this.data=e.data,e.created&&e.created>0?this.created=e.created:this.created=E.getEpochTime(),this.request_type=e.request_type,this.url_state=e.url_state}toStorageString(){return new v("State").create("toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,url_state:this.url_state})}static fromStorageString(e){return v.createStatic("State","fromStorageString"),new D(JSON.parse(e))}static async clearStaleState(e,t){let r=v.createStatic("State","clearStaleState"),i=E.getEpochTime()-t,n=await e.getAllKeys();r.debug("got keys",n);for(let t=0;t<n.length;t++){let s=n[t],a=await e.get(s),o=!1;if(a)try{let e=D.fromStorageString(a);r.debug("got item from key:",s,e.created),e.created<=i&&(o=!0)}catch(e){r.error("Error parsing state for key:",s,e),o=!0}else r.debug("no item in storage for key:",s),o=!0;o&&(r.debug("removed item for key:",s),e.remove(s))}}},B=class extends D{constructor(e){super(e),!0===e.code_verifier?this.code_verifier=b.generateCodeVerifier():e.code_verifier&&(this.code_verifier=e.code_verifier),this.code_verifier&&(this.code_challenge=b.generateCodeChallenge(this.code_verifier)),this.authority=e.authority,this.client_id=e.client_id,this.redirect_uri=e.redirect_uri,this.scope=e.scope,this.client_secret=e.client_secret,this.extraTokenParams=e.extraTokenParams,this.response_mode=e.response_mode,this.skipUserInfo=e.skipUserInfo}toStorageString(){return new v("SigninState").create("toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,url_state:this.url_state,code_verifier:this.code_verifier,authority:this.authority,client_id:this.client_id,redirect_uri:this.redirect_uri,scope:this.scope,client_secret:this.client_secret,extraTokenParams:this.extraTokenParams,response_mode:this.response_mode,skipUserInfo:this.skipUserInfo})}static fromStorageString(e){return v.createStatic("SigninState","fromStorageString"),new B(JSON.parse(e))}},j=class{constructor({url:e,authority:t,client_id:r,redirect_uri:i,response_type:n,scope:s,state_data:a,response_mode:o,request_type:l,client_secret:u,nonce:c,url_state:d,resource:h,skipUserInfo:p,extraQueryParams:f,extraTokenParams:g,disablePKCE:m,...b}){if(this._logger=new v("SigninRequest"),!e)throw this._logger.error("ctor: No url passed"),Error("url");if(!r)throw this._logger.error("ctor: No client_id passed"),Error("client_id");if(!i)throw this._logger.error("ctor: No redirect_uri passed"),Error("redirect_uri");if(!n)throw this._logger.error("ctor: No response_type passed"),Error("response_type");if(!s)throw this._logger.error("ctor: No scope passed"),Error("scope");if(!t)throw this._logger.error("ctor: No authority passed"),Error("authority");this.state=new B({data:a,request_type:l,url_state:d,code_verifier:!m,client_id:r,authority:t,redirect_uri:i,response_mode:o,client_secret:u,scope:s,extraTokenParams:g,skipUserInfo:p});const y=new URL(e);y.searchParams.append("client_id",r),y.searchParams.append("redirect_uri",i),y.searchParams.append("response_type",n),y.searchParams.append("scope",s),c&&y.searchParams.append("nonce",c);let w=this.state.id;for(const[e,t]of(d&&(w=`${w};${d}`),y.searchParams.append("state",w),this.state.code_challenge&&(y.searchParams.append("code_challenge",this.state.code_challenge),y.searchParams.append("code_challenge_method","S256")),h&&(Array.isArray(h)?h:[h]).forEach(e=>y.searchParams.append("resource",e)),Object.entries({response_mode:o,...b,...f})))null!=t&&y.searchParams.append(e,t.toString());this.url=y.href}},U=class{constructor(e){if(this.access_token="",this.token_type="",this.profile={},this.state=e.get("state"),this.session_state=e.get("session_state"),this.state){const e=decodeURIComponent(this.state).split(";");this.state=e[0],e.length>1&&(this.url_state=e.slice(1).join(";"))}this.error=e.get("error"),this.error_description=e.get("error_description"),this.error_uri=e.get("error_uri"),this.code=e.get("code")}get expires_in(){if(void 0!==this.expires_at)return this.expires_at-E.getEpochTime()}set expires_in(e){"string"==typeof e&&(e=Number(e)),void 0!==e&&e>=0&&(this.expires_at=Math.floor(e)+E.getEpochTime())}get isOpenId(){var e;return(null==(e=this.scope)?void 0:e.split(" ").includes("openid"))||!!this.id_token}}
247,H=class{constructor({url:e,state_data:t,id_token_hint:r,post_logout_redirect_uri:i,extraQueryParams:n,request_type:s,client_id:a}){if(this._logger=new v("SignoutRequest"),!e)throw this._logger.error("ctor: No url passed"),Error("url");const o=new URL(e);for(const[e,l]of(r&&o.searchParams.append("id_token_hint",r),a&&o.searchParams.append("client_id",a),i&&(o.searchParams.append("post_logout_redirect_uri",i),t&&(this.state=new D({data:t,request_type:s}),o.searchParams.append("state",this.state.id))),Object.entries({...n})))null!=l&&o.searchParams.append(e,l.toString());this.url=o.href}},F=class{constructor(e){this.state=e.get("state"),this.error=e.get("error"),this.error_description=e.get("error_description"),this.error_uri=e.get("error_uri")}},q=["nbf","jti","auth_time","nonce","acr","amr","azp","at_hash"],$=["sub","iss","aud","exp","iat"],G=class{constructor(e){this._settings=e,this._logger=new v("ClaimsService")}filterProtocolClaims(e){let t={...e};if(this._settings.filterProtocolClaims){for(let e of Array.isArray(this._settings.filterProtocolClaims)?this._settings.filterProtocolClaims:q)$.includes(e)||delete t[e]}return t}mergeClaims(e,t){let r={...e};for(let[e,i]of Object.entries(t))for(let t of Array.isArray(i)?i:[i]){let i=r[e];void 0===i?r[e]=t:Array.isArray(i)?i.includes(t)||i.push(t):r[e]!==t&&("object"==typeof t&&this._settings.mergeClaims?r[e]=this.mergeClaims(i,t):r[e]=[i,t])}return r}},z=class{constructor(e,t){this._logger=new v("OidcClient"),this.settings=e instanceof N?e:new N(e),this.metadataService=null!=t?t:new P(this.settings),this._claimsService=new G(this.settings),this._validator=new L(this.settings,this.metadataService,this._claimsService),this._tokenClient=new M(this.settings,this.metadataService)}async createSigninRequest({state:e,request:t,request_uri:r,request_type:i,id_token_hint:n,login_hint:s,skipUserInfo:a,nonce:o,url_state:l,response_type:u=this.settings.response_type,scope:c=this.settings.scope,redirect_uri:d=this.settings.redirect_uri,prompt:h=this.settings.prompt,display:p=this.settings.display,max_age:f=this.settings.max_age,ui_locales:g=this.settings.ui_locales,acr_values:m=this.settings.acr_values,resource:v=this.settings.resource,response_mode:b=this.settings.response_mode,extraQueryParams:y=this.settings.extraQueryParams,extraTokenParams:w=this.settings.extraTokenParams}){let _=this._logger.create("createSigninRequest");if("code"!==u)throw Error("Only the Authorization Code flow (with PKCE) is supported");let E=await this.metadataService.getAuthorizationEndpoint();_.debug("Received authorization endpoint",E);let S=new j({url:E,authority:this.settings.authority,client_id:this.settings.client_id,redirect_uri:d,response_type:u,scope:c,state_data:e,url_state:l,prompt:h,display:p,max_age:f,ui_locales:g,id_token_hint:n,login_hint:s,acr_values:m,resource:v,request:t,request_uri:r,extraQueryParams:y,extraTokenParams:w,request_type:i,response_mode:b,client_secret:this.settings.client_secret,skipUserInfo:a,nonce:o,disablePKCE:this.settings.disablePKCE});await this.clearStaleState();let T=S.state;return await this.settings.stateStore.set(T.id,T.toStorageString()),S}async readSigninResponseState(e,t=!1){let r=this._logger.create("readSigninResponseState"),i=new U(S.readParams(e,this.settings.response_mode));if(!i.state)throw r.throw(Error("No state in response")),null;let n=await this.settings.stateStore[t?"remove":"get"](i.state);if(!n)throw r.throw(Error("No matching state found in storage")),null;return{state:B.fromStorageString(n),response:i}}async processSigninResponse(e){let t=this._logger.create("processSigninResponse"),{state:r,response:i}=await this.readSigninResponseState(e,!0);return t.debug("received state from storage; validating response"),await this._validator.validateSigninResponse(i,r),i}async processResourceOwnerPasswordCredentials({username:e,password:t,skipUserInfo:r=!1,extraTokenParams:i={}}){let n=await this._tokenClient.exchangeCredentials({username:e,password:t,...i}),s=new U(new URLSearchParams);return Object.assign(s,n),await this._validator.validateCredentialsResponse(s,r),s}async useRefreshToken({state:e,timeoutInSeconds:t}){var r;let i,n=this._logger.create("useRefreshToken");if(void 0===this.settings.refreshTokenAllowedScope)i=e.scope;else{let t=this.settings.refreshTokenAllowedScope.split(" ");i=((null==(r=e.scope)?void 0:r.split(" "))||[]).filter(e=>t.includes(e)).join(" ")}let s=await this._tokenClient.exchangeRefreshToken({refresh_token:e.refresh_token,resource:e.resource,scope:i,timeoutInSeconds:t}),a=new U(new URLSearchParams);return Object.assign(a,s),n.debug("validating response",a),await this._val
247idator.validateRefreshResponse(a,{...e,scope:i}),a}async createSignoutRequest({state:e,id_token_hint:t,client_id:r,request_type:i,post_logout_redirect_uri:n=this.settings.post_logout_redirect_uri,extraQueryParams:s=this.settings.extraQueryParams}={}){let a=this._logger.create("createSignoutRequest"),o=await this.metadataService.getEndSessionEndpoint();if(!o)throw a.throw(Error("No end session endpoint")),null;a.debug("Received end session endpoint",o),r||!n||t||(r=this.settings.client_id);let l=new H({url:o,id_token_hint:t,client_id:r,post_logout_redirect_uri:n,state_data:e,extraQueryParams:s,request_type:i});await this.clearStaleState();let u=l.state;return u&&(a.debug("Signout request has state to persist"),await this.settings.stateStore.set(u.id,u.toStorageString())),l}async readSignoutResponseState(e,t=!1){let r=this._logger.create("readSignoutResponseState"),i=new F(S.readParams(e,this.settings.response_mode));if(!i.state){if(r.debug("No state in response"),i.error)throw r.warn("Response was error:",i.error),new T(i);return{state:void 0,response:i}}let n=await this.settings.stateStore[t?"remove":"get"](i.state);if(!n)throw r.throw(Error("No matching state found in storage")),null;return{state:D.fromStorageString(n),response:i}}async processSignoutResponse(e){let t=this._logger.create("processSignoutResponse"),{state:r,response:i}=await this.readSignoutResponseState(e,!0);return r?(t.debug("Received state from storage; validating response"),this._validator.validateSignoutResponse(i,r)):t.debug("No state from storage; skipping response validation"),i}clearStaleState(){return this._logger.create("clearStaleState"),D.clearStaleState(this.settings.stateStore,this.settings.staleStateAgeInSeconds)}async revokeToken(e,t){return this._logger.create("revokeToken"),await this._tokenClient.revoke({token:e,token_type_hint:t})}},V=class{constructor(e){this._userManager=e,this._logger=new v("SessionMonitor"),this._start=async e=>{let t=e.session_state;if(!t)return;let r=this._logger.create("_start");if(e.profile?(this._sub=e.profile.sub,this._sid=e.profile.sid,r.debug("session_state",t,", sub",this._sub)):(this._sub=void 0,this._sid=void 0,r.debug("session_state",t,", anonymous user")),this._checkSessionIFrame)return void this._checkSessionIFrame.start(t);try{let e=await this._userManager.metadataService.getCheckSessionIframe();if(e){r.debug("initializing check session iframe");let i=this._userManager.settings.client_id,n=this._userManager.settings.checkSessionIntervalInSeconds,s=this._userManager.settings.stopCheckSessionOnError,a=new x(this._callback,i,e,n,s);await a.load(),this._checkSessionIFrame=a,a.start(t)}else r.warn("no check session iframe found in the metadata")}catch(e){r.error("Error from getCheckSessionIframe:",e instanceof Error?e.message:e)}},this._stop=()=>{let e=this._logger.create("_stop");if(this._sub=void 0,this._sid=void 0,this._checkSessionIFrame&&this._checkSessionIFrame.stop(),this._userManager.settings.monitorAnonymousSession){let t=setInterval(async()=>{clearInterval(t);try{let e=await this._userManager.querySessionStatus();if(e){let t={session_state:e.session_state,profile:e.sub&&e.sid?{sub:e.sub,sid:e.sid}:null};this._start(t)}}catch(t){e.error("error from querySessionStatus",t instanceof Error?t.message:t)}},1e3)}},this._callback=async()=>{let e=this._logger.create("_callback");try{let t=await this._userManager.querySessionStatus(),r=!0;t&&this._checkSessionIFrame?t.sub===this._sub?(r=!1,this._checkSessionIFrame.start(t.session_state),t.sid===this._sid?e.debug("same sub still logged in at OP, restarting check session iframe; session_state",t.session_state):(e.debug("same sub still logged in at OP, session state has changed, restarting check session iframe; session_state",t.session_state),this._userManager.events._raiseUserSessionChanged())):e.debug("different subject signed into OP",t.sub):e.debug("subject no longer signed into OP"),r?this._sub?this._userManager.events._raiseUserSignedOut():this._userManager.events._raiseUserSignedIn():e.debug("no change in session detected, no event to raise")}catch(t){this._sub&&(e.debug("Error calling queryCurrentSigninSession; raising signed out event",t),this._userManager.events._raiseUserSignedOut())}},e||this._logger.throw(Error("No user manager passed")),this._userManager.events.addUserLoaded(this._start),this._userManager.events.addUserUnloaded(this._stop),this._init().catch(e=>{this._logger.error(e)})}async _init(){this._logger.create("_init");let e=await this._userManager.getUser();if(e)this._start(e);else if(this._userManager.settings.monitorAnonymousSession){let e=await this._userManager.querySessionStatus();if(e){let t={session_state:e.session_state,profile:e.sub&&e.sid?{sub:e.sub,sid:e.sid}:null};this._start(t)}}}},W=class{constructor(e){var t;this.id_token=e.id_token,this.session_state=null!=(t=e.session_state)?t:null,this.access_token=e.access_token,this.refresh_token=e.refresh_token,this.token_type=e.token_type,this.scope=e.scope,this.profile=e.profile,this.expires_at=e.expires_at,this.state=e.userState,this.url_state=e.url_state}get expires_in(){if(void 0!==this.expires_at)return this.expires_at-E.getEpochTime()}set expires_in(e){void 0!==e&&(this.expires_at=Math.floor(e)+E.getEpochTime())}get expired(){let e=this.expires_in;if(void 0!==e)return e<=0}get scopes(){var e,t;return null!=(t=null==(e=this.scope)?void 0:e.split(" "))?t:[]}toStorageString(){return new v("User").create("toStorageString"),JSON.stringify({id_token:this.id_token,session_state:this.session_state,access_token:this.access_token,refresh_token:this.refresh_token,token_type:this.token_type,scope:this.scope,profile:this.profile,expires_at:this.expires_at})}static fromStorageString(e){return v.createStatic("User","fromStorageString"),new W(JSON.parse(e))}},K="oidc-client",Y=class{constructor(){this._abort=new y("Window navigation aborted"),this._disposeHandlers=new Set,this._window=null}async navigate(e){let t=this._logger.create("navigate");if(!this._window)throw Error("Attempted to navigate on a disposed window");t.debug("setting URL in window"),this._window.location.replace(e.url);let{url:r,keepOpen:i}=await new Promise((r,i)=>{let n=n=>{var s;let a=n.data,o=null!=(s=e.scriptOrigin)?s:window.location.origin;if(n.origin===o&&(null==a?void 0:a.source)===K){try{let r=S.readParams(a.url,e.response_mode).get("state");if(r||t.warn("no state found in response url"),n.source!==this._window&&r!==e.state)return}catch(e){this._dispose(),i(Error("Invalid response from window"))}r(a)}};window.addEventListener("message",n,!1),this._disposeHandlers.add(()=>window.removeEventListener("message",n,!1)),this._disposeHandlers.add(this._abort.addHandler(e=>{this._dispose(),i(e)}))});return t.debug("got response from window"),this._dispose(),i||this.close(),{url:r}}_dispose(){for(let e of(this._logger.create("_dispose"),this._disposeHandlers))e();this._disposeHandlers.clear()}static _notifyParent(e,t,r=!1,i=window.location.origin){e.postMessage({source:K,url:t,keepOpen:r},i)}},X={location:!1,toolbar:!1,height:640,closePopupWindowAfterInSeconds:-1},Q="_blank",J=class extends N{constructor(e){const{popup_redirect_uri:t=e.redirect_uri,popup_post_logout_redirect_uri:r=e.post_logout_redirect_uri,popupWindowFeatures:i=X,popupWindowTarget:n=Q,redirectMethod:s="assign",redirectTarget:a="self",iframeNotifyParentOrigin:o=e.iframeNotifyParentOrigin,iframeScriptOrigin:l=e.iframeScriptOrigin,silent_redirect_uri:u=e.redirect_uri,silentRequestTimeoutInSeconds:c=10,automaticSilentRenew:d=!0,validateSubOnSilentRenew:h=!0,includeIdTokenInSilentRenew:p=!1,monitorSession:f=!1,monitorAnonymousSession:g=!1,checkSessionIntervalInSeconds:m=2,query_status_response_type:v="code",stopCheckSessionOnError:b=!0,revokeTokenTypes:y=["access_token","refresh_token"],revokeTokensOnSignout:w=!1,includeIdTokenInSilentSignout:_=!1,accessTokenExpiringNotificationTimeInSeconds:E=60,userStore:S}=e;if(super(e),this.popup_redirect_uri=t,this.popup_post_logout_redirect_uri=r,this.popupWindowFeatures=i,this.popupWindowTarget=n,this.redirectMethod=s,this.redirectTarget=a,this.iframeNotifyParentOrigin=o,this.iframeScriptOrigin=l,this.silent_redirect_uri=u,this.silentRequestTimeoutInSeconds=c,this.automaticSilentRenew=d,this.validateSubOnSilentRenew=h,this.includeIdTokenInSilentRenew=p,this.monitorSession=f,this.monitorAnonymousSession=g,this.checkSessionIntervalInSeconds=m,this.stopCheckSessionOnError=b,this.query_status_response_type=v,this.revokeTokenTypes=y,this.revokeTokensOnSignout=w,this.includeIdTokenInSilentSignout=_,this.accessTokenExpiringNotificationTimeInSeconds=E,S)this.userStore=S;else{const e="u">typeof window?window.sessionStorage:new I;this.userStore=new O({store:e})}}},Z=class extends Y{constructor({silentRequestTimeoutInSeconds:e=10}
247){super(),this._logger=new v("IFrameWindow"),this._timeoutInSeconds=e,this._frame=Z.createHiddenIframe(),this._window=this._frame.contentWindow}static createHiddenIframe(){let e=window.document.createElement("iframe");return e.style.visibility="hidden",e.style.position="fixed",e.style.left="-1000px",e.style.top="0",e.width="0",e.height="0",window.document.body.appendChild(e),e}async navigate(e){this._logger.debug("navigate: Using timeout of:",this._timeoutInSeconds);let t=setTimeout(()=>this._abort.raise(new C("IFrame timed out without a response")),1e3*this._timeoutInSeconds);return this._disposeHandlers.add(()=>clearTimeout(t)),await super.navigate(e)}close(){var e;this._frame&&(this._frame.parentNode&&(this._frame.addEventListener("load",e=>{var t;let r=e.target;null==(t=r.parentNode)||t.removeChild(r),this._abort.raise(Error("IFrame removed from DOM"))},!0),null==(e=this._frame.contentWindow)||e.location.replace("about:blank")),this._frame=null),this._window=null}static notifyParent(e,t){return super._notifyParent(window.parent,e,!1,t)}},ee=class{constructor(e){this._settings=e,this._logger=new v("IFrameNavigator")}async prepare({silentRequestTimeoutInSeconds:e=this._settings.silentRequestTimeoutInSeconds}){return new Z({silentRequestTimeoutInSeconds:e})}async callback(e){this._logger.create("callback"),Z.notifyParent(e,this._settings.iframeNotifyParentOrigin)}},et=class extends Y{constructor({popupWindowTarget:e=Q,popupWindowFeatures:t={}}){super(),this._logger=new v("PopupWindow");const r=_.center({...X,...t});this._window=window.open(void 0,e,_.serialize(r)),t.closePopupWindowAfterInSeconds&&t.closePopupWindowAfterInSeconds>0&&setTimeout(()=>{!this._window||"boolean"!=typeof this._window.closed||this._window.closed?this._abort.raise(Error("Popup blocked by user")):this.close()},1e3*t.closePopupWindowAfterInSeconds)}async navigate(e){var t;null==(t=this._window)||t.focus();let r=setInterval(()=>{(!this._window||this._window.closed)&&this._abort.raise(Error("Popup closed by user"))},500);return this._disposeHandlers.add(()=>clearInterval(r)),await super.navigate(e)}close(){this._window&&!this._window.closed&&(this._window.close(),this._abort.raise(Error("Popup closed"))),this._window=null}static notifyOpener(e,t){if(!window.opener)throw Error("No window.opener. Can't complete notification.");return super._notifyParent(window.opener,e,t)}},er=class{constructor(e){this._settings=e,this._logger=new v("PopupNavigator")}async prepare({popupWindowFeatures:e=this._settings.popupWindowFeatures,popupWindowTarget:t=this._settings.popupWindowTarget}){return new et({popupWindowFeatures:e,popupWindowTarget:t})}async callback(e,{keepOpen:t=!1}){this._logger.create("callback"),et.notifyOpener(e,t)}},ei=class{constructor(e){this._settings=e,this._logger=new v("RedirectNavigator")}async prepare({redirectMethod:e=this._settings.redirectMethod,redirectTarget:t=this._settings.redirectTarget}){var r;let i;this._logger.create("prepare");let n=window.self;"top"===t&&(n=null!=(r=window.top)?r:window.self);let s=n.location[e].bind(n.location);return{navigate:async e=>{this._logger.create("navigate");let t=new Promise((e,t)=>{i=t});return s(e.url),await t},close:()=>{this._logger.create("close"),null==i||i(Error("Redirect aborted")),n.stop()}}}async callback(){}},en=class extends k{constructor(e){super({expiringNotificationTimeInSeconds:e.accessTokenExpiringNotificationTimeInSeconds}),this._logger=new v("UserManagerEvents"),this._userLoaded=new y("User loaded"),this._userUnloaded=new y("User unloaded"),this._silentRenewError=ne
247w y("Silent renew error"),this._userSignedIn=new y("User signed in"),this._userSignedOut=new y("User signed out"),this._userSessionChanged=new y("User session changed")}load(e,t=!0){super.load(e),t&&this._userLoaded.raise(e)}unload(){super.unload(),this._userUnloaded.raise()}addUserLoaded(e){return this._userLoaded.addHandler(e)}removeUserLoaded(e){return this._userLoaded.removeHandler(e)}addUserUnloaded(e){return this._userUnloaded.addHandler(e)}removeUserUnloaded(e){return this._userUnloaded.removeHandler(e)}addSilentRenewError(e){return this._silentRenewError.addHandler(e)}removeSilentRenewError(e){return this._silentRenewError.removeHandler(e)}_raiseSilentRenewError(e){this._silentRenewError.raise(e)}addUserSignedIn(e){return this._userSignedIn.addHandler(e)}removeUserSignedIn(e){this._userSignedIn.removeHandler(e)}_raiseUserSignedIn(){this._userSignedIn.raise()}addUserSignedOut(e){return this._userSignedOut.addHandler(e)}removeUserSignedOut(e){this._userSignedOut.removeHandler(e)}_raiseUserSignedOut(){this._userSignedOut.raise()}addUserSessionChanged(e){return this._userSessionChanged.addHandler(e)}removeUserSessionChanged(e){this._userSessionChanged.removeHandler(e)}_raiseUserSessionChanged(){this._userSessionChanged.raise()}},es=class{constructor(e){this._userManager=e,this._logger=new v("SilentRenewService"),this._isStarted=!1,this._retryTimer=new E("Retry Silent Renew"),this._tokenExpiring=async()=>{let e=this._logger.create("_tokenExpiring");try{await this._userManager.signinSilent(),e.debug("silent token renewal successful")}catch(t){if(t instanceof C){e.warn("ErrorTimeout from signinSilent:",t,"retry in 5s"),this._retryTimer.init(5);return}e.error("Error from signinSilent:",t),this._userManager.events._raiseSilentRenewError(t)}}}async start(){let e=this._logger.create("start");if(!this._isStarted){this._isStarted=!0,this._userManager.events.addAccessTokenExpiring(this._tokenExpiring),this._retryTimer.addHandler(this._tokenExpiring);try{await this._userManager.getUser()}catch(t){e.error("getUser error",t)}}}stop(){this._isStarted&&(this._retryTimer.cancel(),this._retryTimer.removeHandler(this._tokenExpiring),this._userManager.events.removeAccessTokenExpiring(this._tokenExpiring),this._isStarted=!1)}},ea=class{constructor(e,t){this.refresh_token=e.refresh_token,this.id_token=e.id_token,this.session_state=e.session_state,this.scope=e.scope,this.profile=e.profile,this.resource=t,this.data=e.state}}
247,eo=class{constructor(e,t,r,i){this._logger=new v("UserManager"),this.settings=new J(e),this._client=new z(e),this._redirectNavigator=null!=t?t:new ei(this.settings),this._popupNavigator=null!=r?r:new er(this.settings),this._iframeNavigator=null!=i?i:new ee(this.settings),this._events=new en(this.settings),this._silentRenewService=new es(this),this.settings.automaticSilentRenew&&this.startSilentRenew(),this._sessionMonitor=null,this.settings.monitorSession&&(this._sessionMonitor=new V(this))}get events(){return this._events}get metadataService(){return this._client.metadataService}async getUser(){let e=this._logger.create("getUser"),t=await this._loadUser();return t?(e.info("user loaded"),this._events.load(t,!1),t):(e.info("user not found in storage"),null)}async removeUser(){let e=this._logger.create("removeUser");await this.storeUser(null),e.info("user removed from storage"),this._events.unload()}async signinRedirect(e={}){this._logger.create("signinRedirect");let{redirectMethod:t,...r}=e,i=await this._redirectNavigator.prepare({redirectMethod:t});await this._signinStart({request_type:"si:r",...r},i)}async signinRedirectCallback(e=window.location.href){let t=this._logger.create("signinRedirectCallback"),r=await this._signinEnd(e);return r.profile&&r.profile.sub?t.info("success, signed in subject",r.profile.sub):t.info("no subject"),r}async signinResourceOwnerCredentials({username:e,password:t,skipUserInfo:r=!1}){let i=this._logger.create("signinResourceOwnerCredential"),n=await this._client.processResourceOwnerPasswordCredentials({username:e,password:t,skipUserInfo:r,extraTokenParams:this.settings.extraTokenParams});i.debug("got signin response");let s=await this._buildUser(n);return s.profile&&s.profile.sub?i.info("success, signed in subject",s.profile.sub):i.info("no subject"),s}async signinPopup(e={}){let t=this._logger.create("signinPopup"),{popupWindowFeatures:r,popupWindowTarget:i,...n}=e,s=this.settings.popup_redirect_uri;s||t.throw(Error("No popup_redirect_uri configured"));let a=await this._popupNavigator.prepare({popupWindowFeatures:r,popupWindowTarget:i}),o=await this._signin({request_type:"si:p",redirect_uri:s,display:"popup",...n},a);return o&&(o.profile&&o.profile.sub?t.info("success, signed in subject",o.profile.sub):t.info("no subject")),o}async signinPopupCallback(e=window.location.href,t=!1){let r=this._logger.create("signinPopupCallback");await this._popupNavigator.callback(e,{keepOpen:t}),r.info("success")}async signinSilent(e={}){var t;let r,i=this._logger.create("signinSilent"),{silentRequestTimeoutInSeconds:n,resource:s,...a}=e,o=await this._loadUser();if(null==o?void 0:o.refresh_token){i.debug("using refresh token");let e=new ea(o,s);return await this._useRefreshToken(e)}let l=this.settings.silent_redirect_uri;l||i.throw(Error("No silent_redirect_uri configured")),o&&this.settings.validateSubOnSilentRenew&&(i.debug("subject prior to silent renew:",o.profile.sub),r=o.profile.sub);let u=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:n});return(o=await this._signin({request_type:"si:s",redirect_uri:l,prompt:"none",id_token_hint:this.settings.includeIdTokenInSilentRenew?null==o?void 0:o.id_token:void 0,...a},u,r))&&((null==(t=o.profile)?void 0:t.sub)?i.info("success, signed in subject",o.profile.sub):i.info("no subject")),o}async _useRefreshToken(e){let t=await this._client.useRefreshToken({state:e,timeoutInSeconds:this.settings.silentRequestTimeoutInSeconds}),r=new W({...e,...t});return await this.storeUser(r),this._events.load(r),r}async signinSilentCallback(e=window.location.href){let t=this._logger.create("signinSilentCallback");await this._iframeNavigator.callback(e),t.info("success")}async signinCallback(e=window.location.href){let{state:t}=await this._client.readSigninResponseState(e);switch(t.request_type){case"si:r":return await this.signinRedirectCallback(e);case"si:p":return await this.signinPopupCallback(e);case"si:s":return await this.signinSilentCallback(e);default:throw Error("invalid response_type in state")}}async signoutCallback(e=window.location.href,t=!1){let{state:r}=await this._client.readSignoutResponseState(e);if(r)switch(r.request_type){case"so:r":return await this.signoutRedirectCallback(e);case"so:p":await this.signoutPopupCallback(e,t);break;case"so:s":await this.signoutSilentCallback(e);break;default:throw Error("invalid response_type in state")}}async querySessionStatus(e={}){let t=this._logger.create("querySessionStatus"),{silentRequestTimeoutInSeconds:r,...i}=e,n=this.settings.silent_redirect_uri;n||t.throw(Error("No silent_redirect_uri configured"));let s=await this._loadUser(),a=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:r}),o=await this._signinStart({request_type:"si:s",redirect_uri:n,prompt:"none",id_token_hint:this.settings.includeIdTokenInSilentRenew?null==s?void 0:s.id_token:void 0,response_type:this.settings.query_status_response_type,scope:"openid",skipUserInfo:!0,...i},a);try{let e=await this._client.processSigninResponse(o.url);if(t.debug("got signin response"),e.session_state&&e.profile.sub)return t.info("success for subject",e.profile.sub),{session_state:e.session_state,sub:e.profile.sub,sid:e.profile.sid};return t.info("success, user not authenticated"),null}catch(e){if(this.settings.monitorAnonymousSession&&e instanceof T)switch(e.error){case"login_required":case"consent_required":case"interaction_required":case"account_selection_required":return t.info("success for anonymous user"),{session_state:e.session_state}}throw e}}async _signin(e,t,r){let i=await this._signinStart(e,t);return await this._signinEnd(i.url,r)}async _signinStart(e,t){let r=this._logger.create("_signinStart");try{let i=await this._client.createSigninRequest(e);return r.debug("got signin request"),await t.navigate({url:i.url,state:i.state.id,response_mode:i.state.response_mode,scriptOrigin:this.settings.iframeScriptOrigin})}catch(e){throw r.debug("error after preparing navigator, closing navigator window"),t.close(),e}}async _signinEnd(e,t){let r=this._logger.create("_signinEnd"),i=await this._client.processSigninResponse(e);return r.debug("got signin response"),await this._buildUser(i,t)}async _buildUser(e,t){let r=this._logger.create("_buildUser"),i=new W(e);if(t){if(t!==i.profile.sub)throw r.debug("current user does not match user returned from signin. sub from signin:",i.profile.sub),new T({...e,error:"login_required"});r.debug("current user matches user returned from signin")}return await this.storeUser(i),r.debug("user stored"),this._events.load(i),i}async signoutRedirect(e={}){let t=this._logger.create("signoutRedirect"),{redirectMethod:r,...i}=e,n=await this._redirectNavigator.prepare({redirectMethod:r});await this._signoutStart({request_type:"so:r",post_logout_redirect_uri:this.settings.post_logout_redirect_uri,...i},n),t.info("success")}async signoutRedirectCallback(e=window.location.href){let t=this._logger.create("signoutRedirectCallback"),r=await this._signoutEnd(e);return t.info("success"),r}async signoutPopup(e={}){let t=this._logger.create("signoutPopup"),{popupWindowFeatures:r,popupWindowTarget:i,...n}=e,s=this.settings.popup_post_logout_redirect_uri,a=await this._popupNavigator.prepare({popupWindowFeatures:r,popupWindowTarget:i});await this._signout({request_type:"so:p",post_logout_redirect_uri:s,state:null==s?void 0:{},...n},a),t.info("success")}async signoutPopupCallback(e=window.location.href,t=!1){let r=this._logger.create("signoutPopupCallback");await this._popupNavigator.callback(e,{keepOpen:t}),r.info("success")}async _signout(e,t){let r=await this._signoutStart(e,t);return await this._signoutEnd(r.url)}async _signoutStart(e={},t){var r;let i=this._logger.create("_signoutStart");try{let n=await this._loadUser();i.debug("loaded current user from storage"),this.settings.revokeTokensOnSignout&&await this._revokeInternal(n);let s=e.id_token_hint||n&&n.id_token;s&&(i.debug("setting id_token_hint in signout request"),e.id_token_hint=s),await this.removeUser(),i.debug("user removed, creating signout request");
247let a=await this._client.createSignoutRequest(e);return i.debug("got signout request"),await t.navigate({url:a.url,state:null==(r=a.state)?void 0:r.id,scriptOrigin:this.settings.iframeScriptOrigin})}catch(e){throw i.debug("error after preparing navigator, closing navigator window"),t.close(),e}}async _signoutEnd(e){let t=this._logger.create("_signoutEnd"),r=await this._client.processSignoutResponse(e);return t.debug("got signout response"),r}async signoutSilent(e={}){var t;let r=this._logger.create("signoutSilent"),{silentRequestTimeoutInSeconds:i,...n}=e,s=this.settings.includeIdTokenInSilentSignout?null==(t=await this._loadUser())?void 0:t.id_token:void 0,a=this.settings.popup_post_logout_redirect_uri,o=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:i});await this._signout({request_type:"so:s",post_logout_redirect_uri:a,id_token_hint:s,...n},o),r.info("success")}async signoutSilentCallback(e=window.location.href){let t=this._logger.create("signoutSilentCallback");await this._iframeNavigator.callback(e),t.info("success")}async revokeTokens(e){let t=await this._loadUser();await this._revokeInternal(t,e)}async _revokeInternal(e,t=this.settings.revokeTokenTypes){let r=this._logger.create("_revokeInternal");if(!e)return;let i=t.filter(t=>"string"==typeof e[t]);if(!i.length)return void r.debug("no need to revoke due to no token(s)");for(let t of i)await this._client.revokeToken(e[t],t),r.info(`${t} revoked successfully`),"access_token"!==t&&(e[t]=null);await this.storeUser(e),r.debug("user stored"),this._events.load(e)}startSilentRenew(){this._logger.create("startSilentRenew"),this._silentRenewService.start()}stopSilentRenew(){this._silentRenewService.stop()}get _userStoreKey(){return`user:${this.settings.authority}:${this.settings.client_id}`}async _loadUser(){let e=this._logger.create("_loadUser"),t=await this.settings.userStore.get(this._userStoreKey);return t?(e.debug("user storageString loaded"),W.fromStorageString(t)):(e.debug("no user storageString"),null)}async storeUser(e){let t=this._logger.create("storeUser");if(e){t.debug("storing user");let r=e.toStorageString();await this.settings.userStore.set(this._userStoreKey,r)}else this._logger.debug("removing user"),await this.settings.userStore.remove(this._userStoreKey)}async clearStaleState(){await this._client.clearStaleState()}}},78786:(e,t,r)=>{var i={"./abonnement-campaign-detail":[92147,92147],"./abonnement-campaign-detail.js":[92147,92147],"./active-navigation-page-by-product.gql":[24615,24615],"./active-navigation-page-by-slug.gql":[9249,9249],"./active-navigation-page-by-uniqueName.gql":[26272,26272],"./active-navigation-page.gql":[37619,37619],"./active-navigation.gql":[16719,16719],"./adventcalendar":[19541,25112,85450,62966,31739,51642,49037,54913,40035,59870,49436,71879,63007,13049,12541,19541],"./adventcalendar.js":[19541,25112,85450,62966,31739,51642,49037,54913,40035,59870,49436,71879,63007,13049,12541,19541],"./akeneo-author":[36096,25112,85450,62966,51642,54913,40035,59870,49436,71879,36096],"./akeneo-author.js":[36096,25112,85450,62966,51642,54913,40035,59870,49436,71879,36096],"./algolia-geosearch":[20588,20588],"./algolia-geosearch.js":[20588,20588],"./algolia-list":[27867,49037,27867],"./algolia-list.js":[27867,49037,27867],"./algolia-related":[85978,85978],"./algolia-related.js":[85978,85978],"./algolia-search":[7003,7003],"./algolia-search.js":[7003,7003],"./allArticleSlugs.gql":[16081,16081],"./allAuthors.gql":[80487,80487],"./allBrandSlugs.gql":[39214,39214],"./allOptions.gql":[58725,58725],"./allPageSlugs.gql":[50452,50452],"./allTagSlugs.gql":[8479,8479],"./antriebsarten-search":[52040,25112,52040],"./antriebsarten-search.js":[52040,25112,52040],"./article-all-affiliate.gql":[9812,9812],"./article-by-vehicle-tag-search":[37092,25112,37092],"./article-by-vehicle-tag-search.js":[37092,25112,37092],"./article-publication-stats.gql":[87499,87499],"./articleById.gql":[19032,19032],"./articleRouter.gql":[86219,86219],"./articles-feed-simple.gql":[8897,8897],"./articles-feed.gql":[79892,79892],"./articlesBySlugs.gql":[38156,38156],"./authors-list":[92262,92262],"./authors-list.js":[92262,92262],"./bikes-list":[38823,25112,85450,62966,51642,54913,40035,59870,49436,71879,38823],"./bikes-list.js":[38823,25112,85450,62966,51642,54913,40035,59870,49436,71879,38823],"./bikes-popularity-list":[32698,25112,85450,62966,51642,54913,40035,59870,49436,71879,32698],"./bikes-popularity-list.js":[32698,25112,85450,62966,51642,54913,40035,59870,49436,71879,32698],"./boat24":[93833,31739,51642,49037,54913,40035,41956,63007,93833],"./boat24.js":[93833,31739,51642,49037,54913,40035,41956,63007,93833],"./boatExclusiveTopById.gql":[52467,52467],"./boatExclusiveTopCatalogue.gql":[64716,64716],"./brandOptions.gql":[78491,78491],"./brands":[71819,71819],"./brands.js":[71819,71819],"./categoryOptions.gql":[18116,18116],"./cloudinary-collection":[94777,94777],"./cloudinary-collection.js":[94777,94777],"./contentById.gql":[6569,6569],"./contentByUniqueName.gql":[51502,51502],"./dkf-1258-
247article-content-types.gql":[29155,29155],"./events-search":[71443,71443],"./events-search.js":[71443,71443],"./findAuthorBySlug.gql":[78978,78978],"./findDealers.gql":[95039,95039],"./findPcsRiderByRiderId.gql":[2633,2633],"./findPcsTeamByTeamId.gql":[43843,43843],"./findRedirect.gql":[81977,81977],"./findSlugById.gql":[59428,59428],"./genericRouter.gql":[79238,79238],"./getBrandModelsCars":[62885,62885],"./getBrandModelsCars.js":[62885,62885],"./getEmbedConfigs.gql":[9378,9378],"./getGUTArticlesWithTags.gql":[66202,66202],"./getLinkedVideos.gql":[27625,27625],"./getPaywallByPortal.gql":[88039,88039],"./getTagByCountryCode.gql":[29486,29486],"./getTagByEventID.gql":[82460,82460],"./getTagByRiderID.gql":[16156,16156],"./getTagByTeamID.gql":[89043,89043],"./getTourTeamImages.gql":[33465,33465],"./getUmfrageByID.gql":[10719,10719],"./getYachtCharters.gql":[5105,5105],"./gpxTrackWithFileById.gql":[66090,66090],"./gpxTracks.gql":[52205,52205],"./gpxTracksFilter.gql":[84647,84647],"./hafendb-nearby-harbors":[31907,49037,31907],"./hafendb-nearby-harbors.js":[31907,49037,31907],"./initAntriebsartenSearch":[74515,74515],"./initAntriebsartenSearch.js":[74515,74515],"./initVehicleBrandsFilter":[51406,25112,29025],"./initVehicleBrandsFilter.js":[51406,25112,29025],"./initVehicleSearch":[73613,73613],"./initVehicleSearch.js":[73613,73613],"./initVehicleTypesSearch":[31030,31030],"./initVehicleTypesSearch.js":[31030,31030],"./layoutByType.gql":[37013,37013],"./layoutByUniqueName.gql":[84657,84657],"./layoutOptions.gql":[93958,93958],"./mongo-atlas-list":[74692,25112,85450,62966,31739,51642,49037,54913,40035,59870,49436,71879,63007,13049,12541,74692],"./mongo-atlas-list.js":[74692,25112,85450,62966,31739,51642,49037,54913,40035,59870,49436,71879,63007,13049,12541,74692],"./most-read":[79857,25112,85450,62966,31739,51642,49037,54913,40035,59870,49436,71879,63007,13049,12541,79857],"./most-read.js":[79857,25112,85450,62966,31739,51642,49037,54913,40035,59870,49436,71879,63007,13049,12541,79857],"./mostRecentNotification.gql":[20861,20861],"./msn-feed-debug.gql":[63029,63029],"./msn-feed.gql":[13263,13263],"./nativeAd.gql":[96994,96994],"./navigation-footer-links.gql":[79068,79068],"./navigation-footer.gql":[61600,61600],"./navigation-main.gql":[24198,24198],"./no-loader":[79114,79114],"./no-loader.js":[79114,79114],"./page-article":[10965,10965],"./page-article.js":[10965,10965],"./pageById.gql":[28757,28757],"./pageByUniqueName.gql":[82122,82122],"./pageRouter.gql":[77874,77874],"./premiumPdf.gql":[33935,33935],"./premiumPdfWithFileById.gql":[4001,4001],"./product-category":[14567,25112,85450,62966,51642,49037,54913,40035,59870,49436,71879,14567],"./product-category.js":[14567,25112,85450,62966,51642,49037,54913,40035,59870,49436,71879,14567],"./raceListsByCategories.gql":[48247,48247],"./resolveArticleUrl.gql":[94039,94039],"./rss.gql":[59406,59406],"./selected-article":[29879,29879],"./selected-article.js":[29879,29879],"./selected-navigation.gql":[13976,13976],"./shop-list":[77352,25112,85450,62966,51642,49037,54913,40035,59870,49436,71879,77352],"./shop-list.js":[77352,25112,85450,62966,51642,49037,54913,40035,59870,49436,71879,77352],"./shop-rubric-navigation.gql":[91933,91933],"./siegelCatalog.gql":[84786,84786],"./siteSettings.gql":[97318,97318],"./sitemap-articles.gql":[42823,42823],"./sitemap-counts.gql":[29658,29658],"./sitemap-news.gql":[44119,44119],"./sitemap-pages.gql":[6568,6568],"./sitemap-product-counts":[94357,25112,85450,62966,51642,54913,40035,59870,49436,71879,94357],"./sitemap-product-counts.js":[94357,25112,85450,62966,51642,54913,40035,59870,49436,71879,94357],"./sitemap-products":[41431,25112,85450,62966,51642,54913,40035,59870,49436,71879,41431],"./sitemap-products.js":[41431,25112,85450,62966,51642,54913,40035,59870,49436,71879,41431],"./sitemap-tags.gql":[79037,79037],"./sitemap.gql":[27915,27915],"./sponsoring.gql":[86650,86650],"./sub-navigation-by-page-id.gql":[81165,81165],"./subscription-list":[22339,25112,85450,62966,31739,67569,51642,49037,54913,40035,59870,49436,71879,63007,13049,22339],"./subscription-list.js":[22339,25112,85450,62966,31739,67569,51642,49037,54913,40035,59870,49436,71879,63007,13049,22339],"./surf-schools.gql":[62556,62556],"./surfDealersSearch.gql":[74536,74536],"./surfSchoolsSearch.gql":[88269,88269],"./tagRouter.gql":[32561,32561],"./tagsAlphabetical.gql":[15861,15861],"./teaser-regular":[12541,25112,85450,62966,31739,51642,49037,54913,40035,59870,49436,71879,63007,13049,12541],"./teaser-regular.js":[12541,25112,85450,62966,31739,51642,49037,54913,40035,59870,49436,71879,63007,13049,12541],"./testSiegelOptions.gql":[94641,94641],"./timeline.gql":[65193,65193],"./top-rider-teaser":[4808,4808],"./top-rider-teaser.js":[4808,4808],"./vehicle-search":[73574,25112,73574],"./vehicle-search.js":[73574,25112,73574],"./vehicle-type-search":[54753,25112,54753],"./vehicle-type-search.js":[54753,25112,54753]};function n(e){if(!r.o(i,e))return Promise.resolve().then(()=>{var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=i[e],n=t[0];return Promise.all(t.slice(1).map(r.e)).then(()=>r(n))}n.keys=()=>Object.keys(i),n.id=78786,e.exports=n},78862:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var i={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};let n=function(e,t,r,n){return i[e]}},80145:(e,t,r)=>{"use strict";function i(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function n(e){return void 0===e&&(e={}),e.navigation&&void 0===e.navigation.nextEl&&void 0===e.navigation.prevEl}function s(e){return void 0===e&&(e={}),e.pagination&&void 0===e.pagination.el}function a(e){return void 0===e&&(e={}),e.scrollbar&&void 0===e.scrollbar.el}function o(e){void 0===e&&(e="");var t=e.split(" ").map(function(e){return e.trim()}).filter(function(e){return!!e}),r=[];return t.forEach(function(e){0>r.indexOf(e)&&r.push(e)}),r.join(" ")}r.d(t,{Cv:()=>o,Gv:()=>i,IB:()=>a,Oj:()=>s,X$:()=>function e(t,r){var n=["__proto__","constructor","prototype"];Object.keys(r).filter(function(e){return 0>n.indexOf(e)}
247).forEach(function(n){void 0===t[n]?t[n]=r[n]:i(r[n])&&i(t[n])&&Object.keys(r[n]).length>0?r[n].__swiper__?t[n]=r[n]:e(t[n],r[n]):t[n]=r[n]})},qi:()=>n})},81278:(e,t,r)=>{e.exports=r(54826)},81727:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var i=r(86548);function n(e,t){void 0===t&&(t={});var r,i,n=(r=e)&&"j"===r[0]&&":"===r[1]?r.substr(2):r;if(void 0===(i=t.doNotParse)&&(i=!n||"{"!==n[0]&&"["!==n[0]&&'"'!==n[0]),!i)try{return JSON.parse(n)}catch(e){}return e}var s=function(){return(s=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};let a=function(){function e(e,t){var r=this;this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.cookies="string"==typeof e?i.q(e,t):"object"==typeof e&&null!==e?e:{},new Promise(function(){r.HAS_DOCUMENT_COOKIE="object"==typeof document&&"string"==typeof document.cookie}).catch(function(){})}return e.prototype._updateBrowserValues=function(e){this.HAS_DOCUMENT_COOKIE&&(this.cookies=i.q(document.cookie,e))},e.prototype._emitChange=function(e){for(var t=0;t<this.changeListeners.length;++t)this.changeListeners[t](e)},e.prototype.get=function(e,t,r){return void 0===t&&(t={}),this._updateBrowserValues(r),n(this.cookies[e],t)},e.prototype.getAll=function(e,t){void 0===e&&(e={}),this._updateBrowserValues(t);var r={};for(var i in this.cookies)r[i]=n(this.cookies[i],e);return r},e.prototype.set=function(e,t,r){var n;"object"==typeof t&&(t=JSON.stringify(t)),this.cookies=s(s({},this.cookies),((n={})[e]=t,n)),this.HAS_DOCUMENT_COOKIE&&(document.cookie=i.l(e,t,r)),this._emitChange({name:e,value:t,options:r})},e.prototype.remove=function(e,t){var r=t=s(s({},t),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=s({},this.cookies),delete this.cookies[e],this.HAS_DOCUMENT_COOKIE&&(document.cookie=i.l(e,"",r)),this._emitChange({name:e,value:void 0,options:t})},e.prototype.addChangeListener=function(e){this.changeListeners.push(e)},e.prototype.removeChangeListener=function(e){var t=this.changeListeners.indexOf(e);t>=0&&this.changeListeners.splice(t,1)},e}()},85596:(e,t,r)=>{"use strict";var i=r(55729),n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=i.useState,a=i.useEffect,o=i.useLayoutEffect,l=i.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!n(e,r)}catch(e){return!0}}var c="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),i=s({inst:{value:r,getSnapshot:t}}),n=i[0].inst,c=i[1];return o(function(){n.value=r,n.getSnapshot=t,u(n)&&c({inst:n})},[e,r,t]),a(function(){return u(n)&&c({inst:n}),e(function(){u(n)&&c({inst:n})})},[e]),l(r),r};t.useSyncExternalStore=void 0!==i.useSyncExternalStore?i.useSyncExternalStore:c},86548:(e,t)=>{"use strict";t.q=function(e,t){if("string"!=typeof e)throw TypeError("argument str must be a string");for(var i={},n=e.split(";"),s=(t||{}).decode||r,a=0;a<n.length;a++){var o=n[a],l=o.indexOf("=");if(!(l<0)){var u=o.substring(0,l).trim();if(void 0==i[u]){var c=o.substring(l+1,o.length).trim();'"'===c[0]&&(c=c.slice(1,-1)),i[u]=function(e,t){try{return t(e)}catch(t){return e}}(c,s)}}}return i},t.l=function(e,t,r){var s=r||{},a=s.encode||i;if("function"!=typeof a)throw TypeError("option encode is invalid");if(!n.test(e))throw TypeError("argument name is invalid");var o=a(t);if(o&&!n.test(o))throw TypeError("argument val is invalid");var l=e+"="+o;if(null!=s.maxAge){var u=s.maxAge-0;if(isNaN(u)||!isFinite(u))throw TypeError("option maxAge is invalid");l+="; Max-Age="+Math.floor(u)}if(s.domain){if(!n.test(s.domain))throw TypeError("option domain is invalid");l+="; Domain="+s.domain}if(s.path){if(!n.test(s.path))throw TypeError("option path is invalid");l+="; Path="+s.path}if(s.expires){if("function"!=typeof s.expires.toUTCString)throw TypeError("option expires is invali
247d");l+="; Expires="+s.expires.toUTCString()}if(s.httpOnly&&(l+="; HttpOnly"),s.secure&&(l+="; Secure"),s.sameSite)switch("string"==typeof s.sameSite?s.sameSite.toLowerCase():s.sameSite){case!0:case"strict":l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"none":l+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return l};var r=decodeURIComponent,i=encodeURIComponent,n=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/},87059:(e,t,r)=>{"use strict";r.d(t,{c:()=>s});var i=r(55729),n=r(13675);let s=()=>{let e=(0,n.Y)("Facebook (Meta)"),[t,r]=(0,i.useState)({});return(0,i.useEffect)(()=>{let t=document.cookie.split(";");r({fbp:e&&t.find(e=>e.includes("_fbp"))?.split("=")[1],fbc:e&&t.find(e=>e.includes("_fbc"))?.split("=")[1]})},[e]),t}},87690:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={default:function(){return u},noSSR:function(){return l}};for(var n in i)Object.defineProperty(t,n,{enumerable:!0,get:i[n]});let s=r(30758);r(6029),r(55729);let a=s._(r(36013));function o(e){return{default:e?.default||e}}function l(e,t){return delete t.webpack,delete t.modules,e(t)}function u(e,t){let r=a.default,i={loading:({error:e,isLoading:t,pastDelay:r})=>null};e instanceof Promise?i.loader=()=>e:"function"==typeof e?i.loader=e:"object"==typeof e&&(i={...i,...e});let n=(i={...i,...t}).loader;return(i.loadableGenerated&&(i={...i,...i.loadableGenerated},delete i.loadableGenerated),"boolean"!=typeof i.ssr||i.ssr)?r({...i,loader:()=>null!=n?n().then(o):Promise.resolve(o(()=>null))}):(delete i.webpack,delete i.modules,l(r,i))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},89557:(e,t,r)=>{"use strict";r.d(t,{H9:()=>E,K6:()=>c,KM:()=>v,Mx:()=>h,OA:()=>o,Qd:()=>d,Qq:()=>w,Sc:()=>p,_G:()=>g,hA:()=>m,jF:()=>S,jf:()=>a,vg:()=>l});var i=r(683),n=r(29143);let s=(e,t,r)=>{if(!n.env.NEXT_PUBLIC_DISABLE_TRACKING&&(0,i.getActive)()?.env?.MARFEEL_ACCOUNT_ID)try{console.debug(`MARFEEL :: ${e} :: ${t} = ${r}`),window.marfeel=window.marfeel||{},window.marfeel.cmd=window.marfeel.cmd||[],window.marfeel.cmd.push(["compass",i=>i[e](t,String(r))])}catch(t){console.error(`MARFEEL :: ${e} error`,t)}},a=(e=!1)=>{s("setSessionVar","loggedIn",e?"Ja":"Nein")},o=(e=!1)=>{s("setUserVar","hasPremium",e?"Ja":"Nein")},l=e=>{Array.isArray(e)&&s("setUserVar","abonnements",e.join(","))},u=new Map,c=()=>u.clear(),d=(e,t=1)=>{if(n.env.NEXT_PUBLIC_DISABLE_TRACKING||!e||!(0,i.getActive)()?.env?.MARFEEL_ACCOUNT_ID)return;let r=(u.get(e)||0)+Number(t||0);u.set(e,r);try{console.debug(`MARFEEL :: setPageMetric :: ${e} = ${r}`),window.marfeel=window.marfeel||{},window.marfeel.cmd=window.marfeel.cmd||[],window.marfeel.cmd.push(["compass",t=>t.setPageMetric(e,r)])}catch(e){console.error("MARFEEL :: setPageMetric error",e)}},h=(e,t)=>{e&&null!=t&&""!==t&&s("setPageVar",e,t)},p=(e,{type:t,name:r,action:i,value:n}={})=>{let s="click"===e,a=s?"elementClick":"elementView";d(a),h(`${a}Type`,t),h(`${a}Label`,[i,r].filter(Boolean).join(":")),s&&h(`${a}Value`,n)},f={ios:3,android:4},g=()=>{if(!n.env.NEXT_PUBLIC_DISABLE_TRACKING&&(0,i.getActive)()?.env?.MARFEEL_ACCOUNT_ID)try{let e=window.localStorage?.getItem?.("isApp");if(!e)return;let t=f[e];if(!t)return void console.debug(`MARFEEL :: pageTechnology :: none (isApp = ${e}, platform unknown)`);return console.debug(`MARFEEL :: pageTechnology :: ${t} (isApp = ${e})`),t}catch(e){console.error("MARFEEL :: pageTechnology error",e);return}},m=()=>{let e=!1;try{e=window.matchMedia?.("(display-mode: standalone), (display-mode: fullscreen), (display-mode: minimal-ui)")?.matches===!0||window.navigator?.standalone===!0}catch(e){console.error("MARFEEL :: pwa detection error",e);return}s("setSessionVar","pwa",e?"Ja":"Nein")},v=(e,{id:t,scope:r,value:s,meta:a}={})=>{if(n.env.NEXT_PUBLIC_DISABLE_TRACKING||!e||!(0,i.getActive)()?.env?.MARFEEL_ACCOUNT_ID)return;let o={};t&&(o.id=String(t)),r&&(o.scope=r),Number.isFinite(Number(s))&&(o.value=Number(s)),a&&Object.keys(a).length&&(o.meta=a);let l=Object.keys(o).length>0;try{console.debug(`MARFEEL :: trackConversion :: ${e}${o.scope?` (scope ${o.scope})`:""}`),window.marfeel=window.marfeel||{},window.marfeel.cmd=window.marfeel.cmd||[],window.marfeel.cmd.push(["compass",t=>l?t.trackConversion(e,o):t.trackConversion(e)])}catch(e){console.error("MARFEEL :: trackConversion error",e)}},b={logged:1,paid:2},y=0,w=e=>{if(!e){y=0;return}if(n.env.NEXT_PUBLIC_DISABLE_TRACKING||!(0,i.getActive)()?.env?.MARFEEL_ACCOUNT_ID)return;let t=b[e]||0;if(t&&t<=y)return void console.debug(`MARFEEL :: setUserType :: ${e} skipped (already ${2===y?"paid":"logged"})`);y=Math.max(t,y);try{console.debug(`MARFEEL :: setUserType :: ${e}`),window.marfeel=window.marfeel||{},window.marfeel.cmd=window.marfeel.cmd||[],window.marfeel.cmd.push(["compass",t=>t.setUserType(e)])}catch(e){console.error("MARFEEL :: setUserType error",e)}},_=(e,t)=>
247{if(!n.env.NEXT_PUBLIC_DISABLE_TRACKING&&(0,i.getActive)()?.env?.MARFEEL_ACCOUNT_ID)try{console.debug(`MARFEEL :: ${e}`),window.marfeel=window.marfeel||{},window.marfeel.cmd=window.marfeel.cmd||[],window.marfeel.cmd.push(["multimedia",t])}catch(e){console.error("MARFEEL :: multimedia error",e)}},E=(e,t,r)=>{if(!e||!t?.id)return;let i=t.link||"";i.startsWith("/")&&(i=`${window.location.origin}${i}`);let n=Date.parse(t.publishedAt),s=Number(t.duration),a={isLive:!1,title:t.title||"",description:t.description||"",url:i,thumbnail:t.image?.src||"",duration:Number.isFinite(s)&&s>0?s:-1};Number.isFinite(n)&&(a.publishTime=Math.floor(n/1e3)),_(`initializeItem :: ${e} ${t.id}`,i=>i.initializeItem(e,"targetvideo",String(t.id),"video",a,r))},S=(e,t,r)=>{if(!e||!t)return;let i=Number(r),n=Number.isFinite(i)?i:0;_(`registerEvent :: ${t} @ ${n}s`,r=>r.registerEvent(e,t,n))}},89972:(e,t,r)=>{"use strict";r.d(t,{m:()=>i});let i=e=>{let t=(e,r=[])=>e?(e.hidden||r.unshift(e),t(e?.linkedFrom?.navigationNodeCollection?.items?.filter(Boolean)?.[0],r)):r;return t(e)}},90072:e=>{"use strict";e.exports={BIKE:["655b6bc93e9ee4401cd5d1fa","655c86ceeba1ae5516c41f10","655ca189eba1ae5516c46371","655ca189eba1ae5516c46374","655ca189eba1ae5516c46376","655ca1a5eba1ae5516c463c9","655ca1baeba1ae5516c46418","655cac33eba1ae5516c49f77","655cac34eba1ae5516c49f79","655caf09eba1ae5516c4aa2e","655caf1ceba1ae5516c4aa75","655caf4feba1ae5516c4ab38","655caf51eba1ae5516c4ab91","655caf69eba1ae5516c4ac0c","655caf78eba1ae5516c4ac59","655cafadeba1ae5516c4ad72","655cb334eba1ae5516c4bdc9","655cb86feba1ae5516c4cf7a","655cb86feba1ae5516c4cf7c","655cb86feba1ae5516c4cfa5","655cb870eba1ae5516c4cfa7","655cb870eba1ae5516c4cfc1","655cb880eba1ae5516c4d29f","655cb883eba1ae5516c4d303","655cb883eba1ae5516c4d305","655cbc3beba1ae5516c4e679","655cbc3beba1ae5516c4e67b","655cbd5beba1ae5516c4ea50","655cbd5beba1ae5516c4ea52","655cbdd2eba1ae5516c4ebee","655cbe08eba1ae5516c4ec9f","655cbee7eba1ae5516c4efb0","655cc060eba1ae5516c4f75f","655cc4e6eba1ae5516c514dd","655cc78beba1ae5516c51d69","655cdb3178f38e98972a1af3","655ce42778f38e98972a403f","655ce63378f38e98972a4719","655cfde578f38e98972a9bab","655cfde578f38e98972a9bad","655d04cd78f38e98972acbac","655d072778f38e98972ad020","655d072778f38e98972ad022","655d1f805b4295fbb4539199","655d1f805b4295fbb453919b","655d42e66317588f39385e99","655d43a96317588f393862a7","655dba8772db5239cb44a9a2","655dc1925121d8234b1e447f","655dc1925121d8234b1e4481","655ddbede6f6694e5566d315","655dde14e6f6694e556720ad","655dde89e6f6694e556725e5","655de0d4e6f6694e5567407c","655de6c3e6f6694e556789fd","655dec0de6f6694e5567c3c4","655e336f26f547878a56bfff","655e338826f547878a56c086","655e345426f547878a56c27d","655e345b26f547878a56c2a3","655e546026f547878a57f198","655e5f6126f547878a584d7b","65a28bedf54232ff067cc80b","65c24514e329765964bb610c","65c34adf20b993fab94e5e5d","661e3bcfc7cf3dfdbefba195","661e3bcfc7cf3dfdbefba1e1","661e3bd0c7cf3dfdbefba22d","661e3bd0c7cf3dfdbefba254","661e3bd1c7cf3dfdbefba334","661e3c38451951b09299ee63","661e3c3a451951b09299ef66","661e3ca5451951b09299f666","661e3ca5451951b09299f6e9","661e3ca6451951b09299f741","661e3ca6451951b09299f76e","661e3ca7451951b09299f81c","6629063e4e245140115dc7f9","662906444e245140115dc8bf","662906484e245140115dc909","667a9ac3395b78ea23528886","6870cd4588011f8f543c07b8","6891eea5813b6481d877332d","69772446c130dffe199a1c95","69776f14938f8bdeed149f32","69776f14938f8bdeed149f36","69776f17938f8bdeed149f6a"],TOUR:["655caf51eba1ae5516c4ab8f","655caf51eba1ae5516c4ab91","655cbc64eba1ae5516c4e70d","655cbdd2eba1ae5516c4ebec","655cbdd2eba1ae5516c4ebee","655cc060eba1ae5516c4f75f","655cc765eba1ae5516c51cd3","655cc7c8eba1ae5516c51e53","655cda6078f38e98972a1794","655de0cae6f6694e55674008","655de0cbe6f6694e5567400a","661e3b4c451951b09299e3b2","661e3b4d451951b09299e40a","661e3b4d451951b09299e462","661e3b7ec7cf3dfdbefb93ce","661e3ca5451951b09299f666","661e3ca5451951b09299f6e9","661e3ca6451951b09299f741","661e3ca6451951b09299f76e","661e3ca7451951b09299f81c","6937db01c4170727adac4773"]}},91694:(e,t,r)=>{"use strict";r.d(t,{Dk:()=>e_,kc:()=>ex,Ym:()=>ek,c3:()=>eC});var i,n,s,a,o,l,u=r(55729);function c(e,t){let r=t&&t.cache?t.cache:g,i=t&&t.serializer?t.serializer:p;return(t&&t.strategy?t.strategy:function(e,t){var r,i;let n=1===e.length?d:h;return r=t.cache.create(),i=t.serializer,n.bind(this,e,r,i)})(e,{cache:r,serializer:i})}function d(e,t,r,i){let n=null==i||"number"==typeof i||"boolean"==typeof i?i:r(i),s=t.get(n);return void 0===s&&(s=e.call(this,i),t.set(n,s)),s}function h(e,t,r){let i=Array.prototype.slice.call(arguments,3),n=r(i),s=t.get(n);return void 0===s&&(s=e.apply(this,i),t.set(n,s)),s}let p=function(){return JSON.stringify(arguments)};class f{cache;
247constructor(){this.cache=Object.create(null)}get(e){return this.cache[e]}set(e,t){this.cache[e]=t}}let g={create:function(){return new f}},m={variadic:function(e,t){var r,i;return r=t.cache.create(),i=t.serializer,h.bind(this,e,r,i)},monadic:function(e,t){var r,i;return r=t.cache.create(),i=t.serializer,d.bind(this,e,r,i)}};class v extends Error{constructor(e,t){let r=e;t&&(r+=": "+t),super(r),this.code=e,t&&(this.originalMessage=t)}}var b=((i=b||{}).MISSING_MESSAGE="MISSING_MESSAGE",i.MISSING_FORMAT="MISSING_FORMAT",i.ENVIRONMENT_FALLBACK="ENVIRONMENT_FALLBACK",i.INSUFFICIENT_PATH="INSUFFICIENT_PATH",i.INVALID_MESSAGE="INVALID_MESSAGE",i.INVALID_KEY="INVALID_KEY",i.FORMATTING_ERROR="FORMATTING_ERROR",i);function y(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function w(e,t){return c(e,{cache:{create:()=>({get:e=>t[e],set(e,r){t[e]=r}})},strategy:m.variadic})}function _(e,t){return w((...t)=>new e(...t),t)}function E(e){return{getDateTimeFormat:_(Intl.DateTimeFormat,e.dateTime),getNumberFormat:_(Intl.NumberFormat,e.number),getPluralRules:_(Intl.PluralRules,e.pluralRules),getRelativeTimeFormat:_(Intl.RelativeTimeFormat,e.relativeTime),getListFormat:_(Intl.ListFormat,e.list),getDisplayNames:_(Intl.DisplayNames,e.displayNames)}}let S=((n={})[n.literal=0]="literal",n[n.argument=1]="argument",n[n.number=2]="number",n[n.date=3]="date",n[n.time=4]="time",n[n.select=5]="select",n[n.plural=6]="plural",n[n.pound=7]="pound",n[n.tag=8]="tag",n),T=((s={})[s.number=0]="number",s[s.dateTime=1]="dateTime",s);function C(e){return e.type===S.literal}function k(e){return e.type===S.number}function x(e){return e.type===S.date}function I(e){return e.type===S.time}function A(e){return e.type===S.select}function P(e){return e.type===S.plural}function O(e){return e.type===S.tag}function N(e){return!!(e&&"object"==typeof e&&e.type===T.number)}function R(e){return!!(e&&"object"==typeof e&&e.type===T.dateTime)}let M=((a={})[a.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",a[a.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",a[a.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",a[a.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",a[a.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",a[a.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",a[a.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",a[a.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",a[a.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",a[a.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",a[a.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",a[a.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",a[a.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",a[a.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",a[a.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",a[a.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",a[a.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",a[a.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",a[a.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",a[a.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",a[a.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",a[a.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",a[a.INVALID_TAG=23]="INVALID_TAG",a[a.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",a[a.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",a[a.UNCLOSED_TAG=27]="UNCLOSED_TAG",a),L=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,D=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g,B=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,j=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,U=/^(@+)?(\+|#+)?[rs]?$/g,H=/(\*)(0+)|(#+)(0+)|(0+)/g,F=/^(0+)$/;function q(e){let t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(U,function(e,r,i){return"string"!=typeof i?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===i?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof i?i.length:0)),""}),t}function $(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function G(e){let t=$(e);return t||{}}let z={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GS:["H","h","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA
247:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ku-SY":["H","hB"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]},V=RegExp(`^${L.source}*`),W=RegExp(`${L.source}*$`);function K(e,t){return{start:e,end:t}}let Y=!!Object.fromEntries,X=!!String.prototype.trimStart,Q=!!String.prototype.trimEnd,J=Y?Object.fromEntries:function(e){let t={};for(let[r,i]of e)t[r]=i;return t},Z=X?function(e){return e.trimStart()}:function(e){return e.replace(V,"")},ee=Q?function(e){return e.trimEnd()}:function(e){return e.replace(W,"")},et=RegExp("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");class er{message;position;locale;ignoreTag;requiresOtherClause;shouldParseSkeletons;constructor(e,t={}){this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}parse(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)}parseMessage(e,t,r){let i=[];for(;!this.isEOF();){let n=this.char();if(123===n){let t=this.parseArgument(e,r);if(t.err)return t;i.push(t.val)}else if(125===n&&e>0)break;else if(35===n&&("plural"===t||"selectordinal"===t)){let e=this.clonePosition();this.bump(),i.push({type:S.pound,location:K(e,this.clonePosition())})}else if(60!==n||this.ignoreTag||47!==this.peek())if(60===n&&!this.ignoreTag&&ei(this.peek()||0)){let r=this.parseTag(e,t);if(r.err)return r;i.push(r.val)}else{let r=this.parseLiteral(e,t);if(r.err)return r;i.push(r.val)}else if(!r)return this.error(M.UNMATCHED_CLOSING_TAG,K(this.clonePosition(),this.clonePosition()));else break}return{val:i,err:null}}parseTag(e,t){let r=this.clonePosition();this.bump();let i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:S.literal,value:`<${i}/>`,location:K(r,this.clonePosition())},err:null};if(!this.bumpIf(">"))return this.error(M.INVALID_TAG,K(r,this.clonePosition()));{let n=this.parseMessage(e+1,t,!0);if(n.err)return n;let s=n.val,a=this.clonePosition();if(!this.bumpIf("</"))return this.error(M.UNCLOSED_TAG,K(r,this.clonePosition()));{if(this.isEOF()||!ei(this.char()))return this.error(M.INVALID_TAG,K(a,this.clonePosition()));let e=this.clonePosition();return i!==this.parseTagName()?this.error(M.UNMATCHED_CLOSING_TAG,K(e,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">"))?{val:{type:S.tag,value:i,children:s,location:K(r,this.clonePosition())},err:null}:this.error(M.INVALID_TAG,K(a,this.clonePosition()))}}}parseTagName(){var e;let t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())}parseLiteral(e,t){let r=this.clonePosition(),i="";for(;;){let r=this.tryParseQuote(t);if(r){i+=r;
247continue}let n=this.tryParseUnquoted(e,t);if(n){i+=n;continue}let s=this.tryParseLeftAngleBracket();if(s){i+=s;continue}break}let n=K(r,this.clonePosition());return{val:{type:S.literal,value:i,location:n},err:null}}tryParseLeftAngleBracket(){var e;return this.isEOF()||60!==this.char()||!this.ignoreTag&&(ei(e=this.peek()||0)||47===e)?null:(this.bump(),"<")}tryParseQuote(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();let t=[this.char()];for(this.bump();!this.isEOF();){let e=this.char();if(39===e)if(39===this.peek())t.push(39),this.bump();else{this.bump();break}else t.push(e);this.bump()}return String.fromCodePoint(...t)}tryParseUnquoted(e,t){if(this.isEOF())return null;let r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),String.fromCodePoint(r))}parseArgument(e,t){let r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,K(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(M.EMPTY_ARGUMENT,K(r,this.clonePosition()));let i=this.parseIdentifierIfPossible().value;if(!i)return this.error(M.MALFORMED_ARGUMENT,K(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,K(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:S.argument,value:i,location:K(r,this.clonePosition())},err:null};case 44:if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,K(r,this.clonePosition()));return this.parseArgumentOptions(e,t,i,r);default:return this.error(M.MALFORMED_ARGUMENT,K(r,this.clonePosition()))}}parseIdentifierIfPossible(){var e;let t=this.clonePosition(),r=this.offset(),i=(e=this.message,et.lastIndex=r,et.exec(e)[1]??""),n=r+i.length;return this.bumpTo(n),{value:i,location:K(t,this.clonePosition())}}parseArgumentOptions(e,t,r,i){let n=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(M.EXPECT_ARGUMENT_TYPE,K(n,a));case"number":case"date":case"time":{this.bumpSpace();let e=null;if(this.bumpIf(",")){this.bumpSpace();let t=this.clonePosition(),r=this.parseSimpleArgStyleIfPossible();if(r.err)return r;let i=ee(r.val);if(0===i.length)return this.error(M.EXPECT_ARGUMENT_STYLE,K(this.clonePosition(),this.clonePosition()));e={style:i,styleLocation:K(t,this.clonePosition())}}let t=this.tryParseArgumentClose(i);if(t.err)return t;let n=K(i,this.clonePosition());if(e&&e.style.startsWith("::")){let t=Z(e.style.slice(2));if("number"===s){let i=this.parseNumberSkeletonFromString(t,e.styleLocation);if(i.err)return i;return{val:{type:S.number,value:r,location:n,style:i.val},err:null}}{let i;if(0===t.length)return this.error(M.EXPECT_DATE_TIME_SKELETON,n);let a=t;this.locale&&(a=function(e,t){let r="";for(let i=0;i<e.length;i++){let n=e.charAt(i);if("j"===n){let s=0;for(;i+1<e.length&&e.charAt(i+1)===n;)s++,i++;let a=1+(1&s),o=s<2?1:3+(s>>1),l=function(e){let t,r=e.hourCycle;if(void 0===r&&e.hourCycles&&e.hourCycles.length&&(r=e.hourCycles[0]),r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw Error("Invalid hourCycle")}let i=e.language;return"root"!==i&&(t=e.maximize().region),(z[t||""]||z[i||""]||z[`${i}-001`]||z["001"])[0]}(t);for(("H"==l||"k"==l)&&(o=0);o-- >0;)r+="a";for(;a-- >0;)r=l+r}else"J"===n?r+="H":r+=n}return r}(t,this.locale));let o={type:T.dateTime,pattern:a,location:e.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},a.replace(D,e=>{let t=e.length;switch(e[0]){case"G":i.era=4===t?"long":5===t?"narrow":"short";break;case"y":i.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":i.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw RangeError("`w/W` (week) patterns are not supported");case"d":i.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":i.weekday=4===t?"long":5===t?"narrow":"short";break;case"e":if(t<4)throw RangeError("`e..eee` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"a":i.hour12=!0;break;case"b":case"B":throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":i.hourCycle="h12",i.hour=["numeric","2-digit"][t-1];break;case"H":i.hourCycle="h23",i.hour=["numeric","2-digit"][t-1];break;case"K":i.hourCycle="h11",i.hour=["numeric","2-digit"][t-1];break;case"k":i.hourCycle="h24",i.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":i.minute=["numeric","2-digit"][t-1];break;case"s":i.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":i.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),i):{}};return{val:{type:"date"===s?S.date:S.time,value:r,location:n,style:o},err:null}}}return{val:{type:"number"===s?S.number:"date"===s?S.date:S.time,value:r,location:n,style:e?.style??null},err:null}}
247case"plural":case"selectordinal":case"select":{let n=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(M.EXPECT_SELECT_ARGUMENT_OPTIONS,K(n,{...n}));this.bumpSpace();let a=this.parseIdentifierIfPossible(),o=0;if("select"!==s&&"offset"===a.value){if(!this.bumpIf(":"))return this.error(M.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,K(this.clonePosition(),this.clonePosition()));this.bumpSpace();let e=this.tryParseDecimalInteger(M.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,M.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(e.err)return e;this.bumpSpace(),a=this.parseIdentifierIfPossible(),o=e.val}let l=this.tryParsePluralOrSelectOptions(e,s,t,a);if(l.err)return l;let u=this.tryParseArgumentClose(i);if(u.err)return u;let c=K(i,this.clonePosition());if("select"===s)return{val:{type:S.select,value:r,options:J(l.val),location:c},err:null};return{val:{type:S.plural,value:r,options:J(l.val),offset:o,pluralType:"plural"===s?"cardinal":"ordinal",location:c},err:null}}default:return this.error(M.INVALID_ARGUMENT_TYPE,K(n,a))}}tryParseArgumentClose(e){return this.isEOF()||125!==this.char()?this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,K(e,this.clonePosition())):(this.bump(),{val:!0,err:null})}parseSimpleArgStyleIfPossible(){let e=0,t=this.clonePosition();for(;!this.isEOF();)switch(this.char()){case 39:{this.bump();let e=this.clonePosition();if(!this.bumpUntil("'"))return this.error(M.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,K(e,this.clonePosition()));this.bump();break}case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}}parseNumberSkeletonFromString(e,t){let r=[];try{r=function(e){if(0===e.length)throw Error("Number skeleton cannot be empty");let t=e.split(B).filter(e=>e.length>0),r=[];for(let e of t){let t=e.split("/");if(0===t.length)throw Error("Invalid number skeleton");let[i,...n]=t;for(let e of n)if(0===e.length)throw Error("Invalid number skeleton");r.push({stem:i,options:n})}return r}(e)}catch{return this.error(M.INVALID_NUMBER_SKELETON,t)}return{val:{type:T.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?function(e){let t={};for(let r of e){switch(r.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=r.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=r.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t={...t,notation:"scientific",...r.options.reduce((e,t)=>({...e,...G(t)}),{})};continue;case"engineering":t={...t,notation:"engineering",...r.options.reduce((e,t)=>({...e,...G(t)}),{})};continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(r.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(r.options.length>1)throw RangeError("integer-width stems only accept a single optional option");r.options[0].replace(H,function(e,r,i,n,s,a){if(r)t.minimumIntegerDigits=i.length;else if(n&&s)throw Error("We currently do not support maximum integer digits");else if(a)throw Error("We currently do not support exact integer digits");return""});continue}if(F.test(r.stem)){t.minimumIntegerDigits=r.stem.length;continue}if(j.test(r.stem)){if(r.options.length>1)throw RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(j,function(e,r,i,n,s,a){return"*"===i?t.minimumFractionDigits=r.length:n&&"#"===n[0]?t.maximumFractionDigits=n.length:s&&a?(t.minimumFractionDigits=s.length,t.maximumFractionDigits=s.length+a.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""});let e=r.options[0];
247"w"===e?t={...t,trailingZeroDisplay:"stripIfInteger"}:e&&(t={...t,...q(e)});continue}if(U.test(r.stem)){t={...t,...q(r.stem)};continue}let e=$(r.stem);e&&(t={...t,...e});let i=function(e){let t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){let r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!F.test(e))throw Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(r.stem);i&&(t={...t,...i})}return t}(r):{}},err:null}}tryParsePluralOrSelectOptions(e,t,r,i){let n=!1,s=[],a=new Set,{value:o,location:l}=i;for(;;){if(0===o.length){let e=this.clonePosition();if("select"!==t&&this.bumpIf("=")){let t=this.tryParseDecimalInteger(M.EXPECT_PLURAL_ARGUMENT_SELECTOR,M.INVALID_PLURAL_ARGUMENT_SELECTOR);if(t.err)return t;l=K(e,this.clonePosition()),o=this.message.slice(e.offset,this.offset())}else break}if(a.has(o))return this.error("select"===t?M.DUPLICATE_SELECT_ARGUMENT_SELECTOR:M.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===o&&(n=!0),this.bumpSpace();let i=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?M.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:M.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,K(this.clonePosition(),this.clonePosition()));let u=this.parseMessage(e+1,t,r);if(u.err)return u;let c=this.tryParseArgumentClose(i);if(c.err)return c;s.push([o,{value:u.val,location:K(i,this.clonePosition())}]),a.add(o),this.bumpSpace(),{value:o,location:l}=this.parseIdentifierIfPossible()}return 0===s.length?this.error("select"===t?M.EXPECT_SELECT_ARGUMENT_SELECTOR:M.EXPECT_PLURAL_ARGUMENT_SELECTOR,K(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!n?this.error(M.MISSING_OTHER_CLAUSE,K(this.clonePosition(),this.clonePosition())):{val:s,err:null}}tryParseDecimalInteger(e,t){let r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);let n=!1,s=0;for(;!this.isEOF();){let e=this.char();if(e>=48&&e<=57)n=!0,s=10*s+(e-48),this.bump();else break}let a=K(i,this.clonePosition());return n?Number.isSafeInteger(s*=r)?{val:s,err:null}:this.error(t,a):this.error(e,a)}offset(){return this.position.offset}isEOF(){return this.offset()===this.message.length}clonePosition(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}}char(){let e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");let t=this.message.codePointAt(e);if(void 0===t)throw Error(`Offset ${e} is at invalid UTF-16 code unit boundary`);return t}error(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}}bump(){if(this.isEOF())return;let e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}bumpIf(e){if(this.message.startsWith(e,this.offset())){for(let t=0;t<e.length;t++)this.bump();return!0}return!1}bumpUntil(e){let t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)}bumpTo(e){if(this.offset()>e)throw Error(`targetOffset ${e} must be greater than or equal to the current offset ${this.offset()}`);for(e=Math.min(e,this.message.length);;){let t=this.offset();if(t===e)break;if(t>e)throw Error(`targetOffset ${e} is at invalid UTF-16 code unit boundary`);if(this.bump(),this.isEOF())break}}bumpSpace(){for(var e;!this.isEOF()&&((e=this.char())>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e);)this.bump()}peek(){if(this.isEOF())return null;let e=this.char(),t=this.offset();return this.message.charCodeAt(t+(e>=65536?2:1))??null}}function ei(e){return e>=97&&e<=122||e>=65&&e<=90}function en(e,t={}){let r=new er(e,t={shouldParseSkeletons:!0,requiresOtherClause:!0,...t}).parse();if(r.err){let e=SyntaxError(M[r.err.kind]);throw e.location=r.err.location,e.originalMessage=r.err.message,e}return t?.captureLocation||function e(t){t.forEach(t=>{if(delete t.location,A(t)||P(t))for(let r in t.options)delete t.options[r].location,e(t.options[r].value);else k(t)&&N(t.style)||(x(t)||I(t))&&R(t.style)?delete t.style.location:O(t)&&e(t.children)})}(r.val),r.val}let es=((o={}).MISSING_VALUE="MISSING_VALUE",o.INVALID_VALUE="INVALID_VALUE",o.MISSING_INTL_API="MISSING_INTL_API",o);
247class ea extends Error{code;originalMessage;constructor(e,t,r){super(e),this.code=t,this.originalMessage=r}toString(){return`[formatjs Error: ${this.code}] ${this.message}`}}class eo extends ea{constructor(e,t,r,i){super(`Invalid values for "${e}": "${t}". Options are "${Object.keys(r).join('", "')}"`,es.INVALID_VALUE,i)}}class el extends ea{constructor(e,t,r){super(`Value for "${e}" must be of type ${t}`,es.INVALID_VALUE,r)}}class eu extends ea{constructor(e,t){super(`The intl string context variable "${e}" was not provided to the string "${t}"`,es.MISSING_VALUE,t)}}let ec=((l={})[l.literal=0]="literal",l[l.object=1]="object",l);function ed(e){return{create:()=>({get:t=>e[t],set(t,r){e[t]=r}})}}class eh{ast;locales;resolvedLocale;formatters;formats;message;formatterCache={number:{},dateTime:{},pluralRules:{}};constructor(e,t=eh.defaultLocale,r,i){if(this.locales=t,this.resolvedLocale=eh.resolveLocale(t),"string"==typeof e){if(this.message=e,!eh.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");const{...t}=i||{};this.ast=eh.__parse(e,{...t,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw TypeError("A message must be provided as a String or AST.");this.formats=function(e,t){return t?Object.keys(e).reduce((r,i)=>{var n,s;return r[i]=(n=e[i],(s=t[i])?{...n,...s,...Object.keys(n).reduce((e,t)=>(e[t]={...n[t],...s[t]},e),{})}:n),r},{...e}):e}(eh.formats,r),this.formatters=i&&i.formatters||function(e={number:{},dateTime:{},pluralRules:{}}){return{getNumberFormat:c((...e)=>new Intl.NumberFormat(...e),{cache:ed(e.number),strategy:m.variadic}),getDateTimeFormat:c((...e)=>new Intl.DateTimeFormat(...e),{cache:ed(e.dateTime),strategy:m.variadic}),getPluralRules:c((...e)=>new Intl.PluralRules(...e),{cache:ed(e.pluralRules),strategy:m.variadic})}}(this.formatterCache)}format=e=>{let t=this.formatToParts(e);if(1===t.length)return t[0].value;let r=t.reduce((e,t)=>(e.length&&t.type===ec.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e),[]);return r.length<=1?r[0]||"":r};formatToParts=e=>(function e(t,r,i,n,s,a,o){if(1===t.length&&C(t[0]))return[{type:ec.literal,value:t[0].value}];let l=[];for(let u of t){if(C(u)){l.push({type:ec.literal,value:u.value});continue}if(u.type===S.pound){"number"==typeof a&&l.push({type:ec.literal,value:i.getNumberFormat(r).format(a)});continue}let{value:t}=u;if(!(s&&t in s))throw new eu(t,o);let c=s[t];if(u.type===S.argument){c&&"string"!=typeof c&&"number"!=typeof c&&"bigint"!=typeof c||(c="string"==typeof c||"number"==typeof c||"bigint"==typeof c?String(c):""),l.push({type:"string"==typeof c?ec.literal:ec.object,value:c});continue}if(x(u)){let e="string"==typeof u.style?n.date[u.style]:R(u.style)?u.style.parsedOptions:void 0;l.push({type:ec.literal,value:i.getDateTimeFormat(r,e).format(c)});continue}if(I(u)){let e="string"==typeof u.style?n.time[u.style]:R(u.style)?u.style.parsedOptions:n.time.medium;l.push({type:ec.literal,value:i.getDateTimeFormat(r,e).format(c)});continue}if(k(u)){let e="string"==typeof u.style?n.number[u.style]:N(u.style)?u.style.parsedOptions:void 0;if(e&&e.scale){let t=e.scale||1;if("bigint"==typeof c){if(!Number.isInteger(t))throw TypeError(`Cannot apply fractional scale ${t} to bigint value. Scale must be an integer when formatting bigint.`);c*=BigInt(t)}else c*=t}l.push({type:ec.literal,value:i.getNumberFormat(r,e).format(c)});continue}if(O(u)){let{children:t,value:c}=u,d=s[c];if("function"!=typeof d)throw new el(c,"function",o);let h=d(e(t,r,i,n,s,a).map(e=>e.value));Array.isArray(h)||(h=[h]),l.push(...h.map(e=>({type:"string"==typeof e?ec.literal:ec.object,value:e})))}if(A(u)){let t=c,a=(Object.prototype.hasOwnProperty.call(u.options,t)?u.options[t]:void 0)||u.options.other;if(!a)throw new eo(u.value,c,Object.keys(u.options),o);l.push(...e(a.value,r,i,n,s));continue}if(P(u)){let t=`=${c}`,a=Object.prototype.hasOwnProperty.call(u.options,t)?u.options[t]:void 0;if(!a){if(!Intl.PluralRules)throw new ea(`Intl.PluralRules is not available in this environment.
248Try polyfilling it using "@formatjs/intl-pluralrules"
249`,es.MISSING_INTL_API,o);let e="bigint"==typeof c?Number(c):c,t=i.getPluralRules(r,{type:u.pluralType}).select(e-(u.offset||0));a=(Object.prototype.hasOwnProperty.call(u.options,t)?u.options[t]:void 0)||u.options.other}
249if(!a)throw new eo(u.value,c,Object.keys(u.options),o);let d="bigint"==typeof c?Number(c):c;l.push(...e(a.value,r,i,n,s,d-(u.offset||0)));continue}}return l.length<2?l:l.reduce((e,t)=>{let r=e[e.length-1];return r&&r.type===ec.literal&&t.type===ec.literal?r.value+=t.value:e.push(t),e},[])})(this.ast,this.locales,this.formatters,this.formats,e,void 0,this.message);resolvedOptions=()=>({locale:this.resolvedLocale?.toString()||Intl.NumberFormat.supportedLocalesOf(this.locales)[0]});getAst=()=>this.ast;static memoizedDefaultLocale=null;static get defaultLocale(){return eh.memoizedDefaultLocale||(eh.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),eh.memoizedDefaultLocale}static resolveLocale=e=>{if(void 0===Intl.Locale)return;let t=Intl.NumberFormat.supportedLocalesOf(e);return new Intl.Locale(t.length>0?t[0]:"string"==typeof e?e:e[0])};static __parse=en;static formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}}}function ep(...[e,t,r,i]){let n;if(Array.isArray(t))throw new v(b.INVALID_MESSAGE,void 0);if("object"==typeof t)throw new v(b.INSUFFICIENT_PATH,void 0);if("string"==typeof t){let e=r||/'[{}<#|']/.test(t)?void 0:t;if(e)return e}let{cache:s,formats:a,formatters:o,globalFormats:l,locale:c,timeZone:d}=i;o.getMessageFormat||(o.getMessageFormat=w((...e)=>new eh(e[0],e[1],e[2],{formatters:o,...e[3]}),s.message));try{let e,r,i,s;n=o.getMessageFormat(t,c,(e=eh.formats.date,r=eh.formats.time,i={...l?.dateTime,...a?.dateTime},s={date:{...e,...i},time:{...r,...i},number:{...l?.number,...a?.number}},d&&["date","time"].forEach(e=>{let t=s[e];for(let[e,r]of Object.entries(t))t[e]={timeZone:d,...r}}),s),{formatters:{...o,getDateTimeFormat:(e,t)=>o.getDateTimeFormat(e,{...t,timeZone:t?.timeZone??d})}})}catch(e){throw new v(b.INVALID_MESSAGE,void 0)}let h=n.format(r);return(0,u.isValidElement)(h)||Array.isArray(h)||"string"==typeof h?h:String(h)}function ef(...e){return e.filter(Boolean).join(".")}function eg(e){return ef(e.namespace,e.key)}function em(e){console.error(e)}function ev(e,t,r,i){let n=ef(i,r);if(!t)throw Error(n);let s=t;return r.split(".").forEach(t=>{let r=s[t];if(null==t||null==r)throw Error(n+` (${e})`);s=r}),s}ep.raw=!0;let eb={second:1,seconds:1,minute:60,minutes:60,hour:3600,hours:3600,day:86400,days:86400,week:604800,weeks:604800,month:2628e3,months:2628e3,quarter:7884e3,quarters:7884e3,year:31536e3,years:31536e3};var ey=r(6029);let ew=(0,u.createContext)(void 0);function e_({children:e,formats:t,getMessageFallback:r,locale:i,messages:n,now:s,onError:a,timeZone:o}){let l=(0,u.useContext)(ew),c=(0,u.useMemo)(()=>l?.cache||y(),[i,l?.cache]),d=(0,u.useMemo)(()=>l?.formatters||E(c),[c,l?.formatters]),h=(0,u.useMemo)(()=>({...function({formats:e,getMessageFallback:t,messages:r,onError:i,...n}){return{...n,formats:e||void 0,messages:r||void 0,onError:i||em,getMessageFallback:t||eg}}({locale:i,formats:void 0===t?l?.formats:t,getMessageFallback:r||l?.getMessageFallback,messages:void 0===n?l?.messages:n,now:s||l?.now,onError:a||l?.onError,timeZone:o||l?.timeZone}),formatters:d,cache:c}),[c,t,d,r,i,n,s,a,l,o]);return(0,ey.jsx)(ew.Provider,{value:h,children:e})}function eE(){let e=(0,u.useContext)(ew);if(!e)throw Error(void 0);return e}let eS=!1,eT="u"<typeof window;function eC(e){return function(e,t){let{cache:r,formats:i,formatters:n,getMessageFallback:s,locale:a,onError:o,timeZone:l}=eE(),c=e["!"],d="!"===t?void 0:t.slice(2);return l||eS||!eT||(eS=!0,o(new v(b.ENVIRONMENT_FALLBACK,void 0))),(0,u.useMemo)(()=>{var e;let t;return t=function(e,t,r){try{if(!t)throw Error(void 0);let i=r?ev(e,t,r):t;if(!i)throw Error(r);return i}catch(e){return new v(b.MISSING_MESSAGE,e.message)}}((e={cache:r,formatters:n,getMessageFallback:s,messages:c,namespace:d,onError:o,formats:i,locale:a,timeZone:l}
249).locale,e.messages,e.namespace),function({cache:e,formats:t,formatters:r,getMessageFallback:i=eg,locale:n,messagesOrError:s,namespace:a,onError:o,timeZone:l}){let c=s instanceof v;function d(e,t,r,n){let s=new v(t,r);return o(s),n??i({error:s,key:e,namespace:a})}function h(h,p,f,g){let m;if(c){if(!g)return o(s),i({error:s,key:h,namespace:a});m=g}else try{m=ev(n,s,h,a)}catch(e){if(!g)return d(h,b.MISSING_MESSAGE,e.message,g);m=g}try{let i,s=ef(a,h);return ep(s,m,p?(i={},Object.keys(p).forEach(e=>{let t,r=0,n=p[e];t="function"==typeof n?t=>{let i=n(t);return(0,u.isValidElement)(i)?(0,u.cloneElement)(i,{key:e+r++}):i}:n,i[e]=t}),i):p,{cache:e,formatters:r,globalFormats:t,formats:f,locale:n,timeZone:l})}catch(r){let e,t;return r instanceof v?(e=r.code,t=r.originalMessage):(e=b.FORMATTING_ERROR,t=r.message),d(h,e,t,g)}}function p(e,t,r,i){let n=h(e,t,r,i);return"string"!=typeof n?d(e,b.INVALID_MESSAGE,void 0):n}return p.rich=h,p.markup=(e,t,r,i)=>h(e,t,r,i),p.raw=e=>{if(c)return o(s),i({error:s,key:e,namespace:a});try{return ev(n,s,e,a)}catch(t){return d(e,b.MISSING_MESSAGE,t.message)}},p.has=e=>{if(c)return!1;try{return ev(n,s,e,a),!0}catch{return!1}},p}({...e,messagesOrError:t})},[r,n,s,c,d,o,i,a,l])}({"!":eE().messages},e?`!.${e}`:"!")}function ek(){return eE().locale}function ex(){let{formats:e,formatters:t,locale:r,now:i,onError:n,timeZone:s}=eE();return(0,u.useMemo)(()=>(function(e){let{_cache:t=y(),_formatters:r=E(t),formats:i,locale:n,onError:s=em,timeZone:a}=e;function o(e){return e?.timeZone||(a?e={...e,timeZone:a}:s(new v(b.ENVIRONMENT_FALLBACK,void 0))),e}function l(e,t,r,i,n){let a;try{a=function(e,t,r){let i;if("string"==typeof t){if(!(i=e?.[t])){let e=new v(b.MISSING_FORMAT,void 0);throw s(e),e}}else i=t;return r&&(i={...i,...r}),i}(r,e,t)}catch{return n()}try{return i(a)}catch(e){return s(new v(b.FORMATTING_ERROR,e.message)),n()}}function u(e,t,s){return l(t,s,i?.dateTime,t=>(t=o(t),r.getDateTimeFormat(n,t).format(e)),()=>String(e))}function c(){return e.now?e.now:(s(new v(b.ENVIRONMENT_FALLBACK,void 0)),new Date)}return{dateTime:u,number:function(e,t,s){return l(t,s,i?.number,t=>r.getNumberFormat(n,t).format(e),()=>String(e))},relativeTime:function(e,t){try{var i;let s,a,o,l={};t instanceof Date||"number"==typeof t?s=new Date(t):t&&(s=null!=t.now?new Date(t.now):c(),a=t.unit,l.style=t.style,l.numberingSystem=t.numberingSystem),s||(s=c());let u=(new Date(e).getTime()-s.getTime())/1e3;a||(a=(o=Math.abs(u))<60?"second":o<3600?"minute":o<86400?"hour":o<604800?"day":o<2628e3?"week":o<31536e3?"month":"year"),l.numeric="second"===a?"auto":"always";let d=(i=a,Math.round(u/eb[i]));return r.getRelativeTimeFormat(n,l).format(d,a)}catch(t){return s(new v(b.FORMATTING_ERROR,t.message)),String(e)}},list:function(e,t,s){let a=[],o=new Map,u=0;for(let t of e){let e;"object"==typeof t?(e=String(u),o.set(e,t)):e=String(t),a.push(e),u++}return l(t,s,i?.list,e=>{let t=r.getListFormat(n,e).formatToParts(a).map(e=>"literal"===e.type?e.value:o.get(e.value)||e.value);return o.size>0?t:t.join("")},()=>String(e))},dateTimeRange:function(e,t,s,a){return l(s,a,i?.dateTime,i=>(i=o(i),r.getDateTimeFormat(n,i).formatRange(e,t)),()=>[u(e),u(t)].join(" – "))},displayName:function(e,t,s){return l(t,s,i?.displayName,t=>r.getDisplayNames(n,t).of(e),()=>e)}}})({formats:e,locale:r,now:i,onError:n,timeZone:s,_formatters:t}),[e,t,i,r,n,s])}},92448:(e,t,r)=>{var i={"./active-navigation-page-by-product.gql":[24615,24615],"./active-navigation-page-by-slug.gql":[9249,9249],"./active-navigation-page-by-uniqueName.gql":[26272,26272],"./active-navigation-page.gql":[37619,37619],"./active-navigation.gql":[16719,16719],"./allArticleSlugs.gql":[16081,16081],"./allAuthors.gql":[80487,80487],"./allBrandSlugs.gql":[39214,39214],"./allOptions.gql":[58725,58725],"./allPageSlugs.gql":[50452,50452],"./allTagSlugs.gql":[8479,8479],"./article-all-affiliate.gql":[9812,9812],"./article-publication-stats.gql":[87499,87499],"./articleById.gql":[19032,19032],"./articleRouter.gql":[86219,86219],"./articles-feed-simple.gql":[8897,8897],"./articles-feed.gql":[79892,79892],"./articlesBySlugs.gql":[38156,38156],"./boatExclusiveTopById.gql":[52467,52467],"./boatExclusiveTopCatalogue.gql":[64716,64716],"./brandOptions.gql":[78491,78491],"./categoryOptions.gql":[18116,18116],"./contentById.gql":[6569,6569],"./contentByUniqueName.gql":[51502,51502],"./dkf-1258-
249article-content-types.gql":[29155,29155],"./findAuthorBySlug.gql":[78978,78978],"./findDealers.gql":[95039,95039],"./findPcsRiderByRiderId.gql":[2633,2633],"./findPcsTeamByTeamId.gql":[43843,43843],"./findRedirect.gql":[81977,81977],"./findSlugById.gql":[59428,59428],"./genericRouter.gql":[79238,79238],"./getEmbedConfigs.gql":[9378,9378],"./getGUTArticlesWithTags.gql":[66202,66202],"./getLinkedVideos.gql":[27625,27625],"./getPaywallByPortal.gql":[88039,88039],"./getTagByCountryCode.gql":[29486,29486],"./getTagByEventID.gql":[82460,82460],"./getTagByRiderID.gql":[16156,16156],"./getTagByTeamID.gql":[89043,89043],"./getTourTeamImages.gql":[33465,33465],"./getUmfrageByID.gql":[10719,10719],"./getYachtCharters.gql":[5105,5105],"./gpxTrackWithFileById.gql":[66090,66090],"./gpxTracks.gql":[52205,52205],"./gpxTracksFilter.gql":[84647,84647],"./layoutByType.gql":[37013,37013],"./layoutByUniqueName.gql":[84657,84657],"./layoutOptions.gql":[93958,93958],"./mostRecentNotification.gql":[20861,20861],"./msn-feed-debug.gql":[63029,63029],"./msn-feed.gql":[13263,13263],"./nativeAd.gql":[96994,96994],"./navigation-footer-links.gql":[79068,79068],"./navigation-footer.gql":[61600,61600],"./navigation-main.gql":[24198,24198],"./pageById.gql":[28757,28757],"./pageByUniqueName.gql":[82122,82122],"./pageRouter.gql":[77874,77874],"./premiumPdf.gql":[33935,33935],"./premiumPdfWithFileById.gql":[4001,4001],"./raceListsByCategories.gql":[48247,48247],"./resolveArticleUrl.gql":[94039,94039],"./rss.gql":[59406,59406],"./selected-navigation.gql":[13976,13976],"./shop-rubric-navigation.gql":[91933,91933],"./siegelCatalog.gql":[84786,84786],"./siteSettings.gql":[97318,97318],"./sitemap-articles.gql":[42823,42823],"./sitemap-counts.gql":[29658,29658],"./sitemap-news.gql":[44119,44119],"./sitemap-pages.gql":[6568,6568],"./sitemap-tags.gql":[79037,79037],"./sitemap.gql":[27915,27915],"./sponsoring.gql":[86650,86650],"./sub-navigation-by-page-id.gql":[81165,81165],"./surf-schools.gql":[62556,62556],"./surfDealersSearch.gql":[74536,74536],"./surfSchoolsSearch.gql":[88269,88269],"./tagRouter.gql":[32561,32561],"./tagsAlphabetical.gql":[15861,15861],"./testSiegelOptions.gql":[94641,94641],"./timeline.gql":[65193,65193]};function n(e){if(!r.o(i,e))return Promise.resolve().then(()=>{var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=i[e],n=t[0];return r.e(t[1]).then(()=>r(n))}n.keys=()=>Object.keys(i),n.id=92448,e.exports=n},92941:(e,t,r)=>{"use strict";function i(e){return function(t,r){var i;if("formatting"===(null!=r&&r.context?String(r.context):"standalone")&&e.formattingValues){var n=e.defaultFormattingWidth||e.defaultWidth,s=null!=r&&r.width?String(r.width):n;i=e.formattingValues[s]||e.formattingValues[n]}else{var a=e.defaultWidth,o=null!=r&&r.width?String(r.width):e.defaultWidth;i=e.values[o]||e.values[a]}return i[e.argumentCallback?e.argumentCallback(t):t]}}r.d(t,{A:()=>i})},93258:(e,t,r)=>{"use strict";r.d(t,{Ht:()=>l,jE:()=>o});var i=r(55729);let n=i.createContext(void 0),s=i.createContext(!1);function a(e,t){return e||(t&&"u">typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=n),window.ReactQueryClientContext):n)}let o=({context:e}={})=>{let t=i.useContext(a(e,i.useContext(s)));if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},l=({client:e,children:t,context:r,contextSharing:n=!1})=>{i.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);let o=a(r,n);return i.createElement(s.Provider,{value:!r&&n},i.createElement(o.Provider,{value:e},t))}},93462:(e,t,r)=>{"use strict";r.d(t,{A:()=>T});var i,n,s,a=r(24423),o=r(72355),l=r(18027);function u(){var e,t;return i||(e=(0,a.zk)(),t=(0,a.YE)(),i={touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch),pointerEvents:!!e.PointerEvent&&"maxTouchPoints"in e.navigator&&e.navigator.maxTouchPoints>=0,observer:"MutationObserver"in e||"WebkitMutationObserver"in e,passiveListener:function(){var t=!1;try{var r=Object.defineProperty({},"passive",{get:function(){t=!0}});e.addEventListener("testPassiveListener",null,r)}catch(e){}return t}(),gestures:"ongesturestart"in e}),i}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e}).apply(this,arguments)}var d={attach:function(e,t){void 0===t&&(t={});var r=(0,a.zk)(),i=this,n=new(r.MutationObserver||r.WebkitMutationObserver)(function(e){if(1===e.length)return void i.emit("observerUpdate",e[0]);var t=function(){i.emit("observerUpdate",e[0])};r.requestAnimationFrame?r.requestAnimationFrame(t):r.setTimeout(t,0)});n.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),i.observer.observers.push(n)},init:function(){if(this.support.observer&&this.params.observer){if(this.params.observeParents)for(var e=this.$el.parents(),t=0;t<e.length;t+=1)this.observer.attach(e[t]);this.observer.attach(this.$el[0],{childList:this.params.observeSlideChildren}),this.observer.attach(this.$wrapperEl[0],{attributes:!1})}}
249,destroy:function(){this.observer.observers.forEach(function(e){e.disconnect()}),this.observer.observers=[]}};function h(e){var t=(0,a.YE)(),r=(0,a.zk)(),i=this.touchEventsData,n=this.params,s=this.touches;if(!this.enabled||this.animating&&n.preventInteractionOnTransition)return;var u=e;u.originalEvent&&(u=u.originalEvent);var c=(0,o.A)(u.target);if("wrapper"!==n.touchEventsTarget||c.closest(this.wrapperEl).length){if(i.isTouchEvent="touchstart"===u.type,(i.isTouchEvent||!("which"in u)||3!==u.which)&&(i.isTouchEvent||!("button"in u)||!(u.button>0))&&(!i.isTouched||!i.isMoved)){n.noSwipingClass&&""!==n.noSwipingClass&&u.target&&u.target.shadowRoot&&e.path&&e.path[0]&&(c=(0,o.A)(e.path[0]));var d=n.noSwipingSelector?n.noSwipingSelector:"."+n.noSwipingClass,h=!!(u.target&&u.target.shadowRoot);if(n.noSwiping&&(h?function(e,t){return void 0===t&&(t=this),function t(r){return r&&r!==(0,a.YE)()&&r!==(0,a.zk)()?(r.assignedSlot&&(r=r.assignedSlot),r.closest(e)||t(r.getRootNode().host)):null}(t)}(d,u.target):c.closest(d)[0])){this.allowClick=!0;return}if(!n.swipeHandler||c.closest(n.swipeHandler)[0]){s.currentX="touchstart"===u.type?u.targetTouches[0].pageX:u.pageX,s.currentY="touchstart"===u.type?u.targetTouches[0].pageY:u.pageY;var p=s.currentX,f=s.currentY,g=n.edgeSwipeDetection||n.iOSEdgeSwipeDetection,m=n.edgeSwipeThreshold||n.iOSEdgeSwipeThreshold;if(g&&(p<=m||p>=r.innerWidth-m))if("prevent"!==g)return;else e.preventDefault();if((0,l.X$)(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=p,s.startY=f,i.touchStartTime=(0,l.tB)(),this.allowClick=!0,this.updateSize(),this.swipeDirection=void 0,n.threshold>0&&(i.allowThresholdMove=!1),"touchstart"!==u.type){var v=!0;c.is(i.focusableElements)&&(v=!1),t.activeElement&&(0,o.A)(t.activeElement).is(i.focusableElements)&&t.activeElement!==c[0]&&t.activeElement.blur();var b=v&&this.allowTouchMove&&n.touchStartPreventDefault;(n.touchStartForcePreventDefault||b)&&!c[0].isContentEditable&&u.preventDefault()}this.emit("touchStart",u)}}}}function p(e){var t,r=(0,a.YE)(),i=this.touchEventsData,n=this.params,s=this.touches,u=this.rtlTranslate;if(!this.enabled)return;var c=e;if(c.originalEvent&&(c=c.originalEvent),!i.isTouched){i.startMoving&&i.isScrolling&&this.emit("touchMoveOpposite",c);return}if(i.isTouchEvent&&"touchmove"!==c.type)return;var d="touchmove"===c.type&&c.targetTouches&&(c.targetTouches[0]||c.changedTouches[0]),h="touchmove"===c.type?d.pageX:c.pageX,p="touchmove"===c.type?d.pageY:c.pageY;if(c.preventedByNestedSwiper){s.startX=h,s.startY=p;return}if(!this.allowTouchMove){this.allowClick=!1,i.isTouched&&((0,l.X$)(s,{startX:h,startY:p,currentX:h,currentY:p}),i.touchStartTime=(0,l.tB)());return}if(i.isTouchEvent&&n.touchReleaseOnEdges&&!n.loop){if(this.isVertical()){if(p<s.startY&&this.translate<=this.maxTranslate()||p>s.startY&&this.translate>=this.minTranslate()){i.isTouched=!1,i.isMoved=!1;return}}else if(h<s.startX&&this.translate<=this.maxTranslate()||h>s.startX&&this.translate>=this.minTranslate())return}if(i.isTouchEvent&&r.activeElement&&c.target===r.activeElement&&(0,o.A)(c.target).is(i.focusableElements)){i.isMoved=!0,this.allowClick=!1;return}if(i.allowTouchCallbacks&&this.emit("touchMove",c),c.targetTouches&&c.targetTouches.length>1)return;s.currentX=h,s.currentY=p;var f=s.currentX-s.startX,g=s.currentY-s.startY;if(!(this.params.threshold&&Math.sqrt(Math.pow(f,2)+Math.pow(g,2))<this.params.threshold)){if(void 0===i.isScrolling&&(this.isHorizontal()&&s.currentY===s.startY||this.isVertical()&&s.currentX===s.startX?i.isScrolling=!1:f*f+g*g>=25&&(t=180*Math.atan2(Math.abs(g),Math.abs(f))/Math.PI,i.isScrolling=this.isHorizontal()?t>n.touchAngle:90-t>n.touchAngle)),i.isScrolling&&this.emit("touchMoveOpposite",c),void 0===i.startMoving&&(s.currentX!==s.startX||s.currentY!==s.startY)&&(i.startMoving=!0),i.isScrolling){i.isTouched=!1;return}if(i.startMoving){this.allowClick=!1,!n.cssMode&&c.cancelable&&c.preventDefault(),n.touchMoveStopPropagation&&!n.nested&&c.stopPropagation(),i.isMoved||(n.loop&&this.loopFix(),i.startTranslate=this.getTranslate(),this.setTransition(0),this.animating&&this.$wrapperEl.trigger("webkitTransitionEnd transitionend"),i.allowMomentumBounce
249=!1,n.grabCursor&&(!0===this.allowSlideNext||!0===this.allowSlidePrev)&&this.setGrabCursor(!0),this.emit("sliderFirstMove",c)),this.emit("sliderMove",c),i.isMoved=!0;var m=this.isHorizontal()?f:g;s.diff=m,m*=n.touchRatio,u&&(m=-m),this.swipeDirection=m>0?"prev":"next",i.currentTranslate=m+i.startTranslate;var v=!0,b=n.resistanceRatio;if(n.touchReleaseOnEdges&&(b=0),m>0&&i.currentTranslate>this.minTranslate()?(v=!1,n.resistance&&(i.currentTranslate=this.minTranslate()-1+Math.pow(-this.minTranslate()+i.startTranslate+m,b))):m<0&&i.currentTranslate<this.maxTranslate()&&(v=!1,n.resistance&&(i.currentTranslate=this.maxTranslate()+1-Math.pow(this.maxTranslate()-i.startTranslate-m,b))),v&&(c.preventedByNestedSwiper=!0),!this.allowSlideNext&&"next"===this.swipeDirection&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!this.allowSlidePrev&&"prev"===this.swipeDirection&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),this.allowSlidePrev||this.allowSlideNext||(i.currentTranslate=i.startTranslate),n.threshold>0)if(Math.abs(m)>n.threshold||i.allowThresholdMove){if(!i.allowThresholdMove){i.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,i.currentTranslate=i.startTranslate,s.diff=this.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY;return}}else{i.currentTranslate=i.startTranslate;return}n.followFinger&&!n.cssMode&&((n.freeMode||n.watchSlidesProgress||n.watchSlidesVisibility)&&(this.updateActiveIndex(),this.updateSlidesClasses()),n.freeMode&&(0===i.velocities.length&&i.velocities.push({position:s[this.isHorizontal()?"startX":"startY"],time:i.touchStartTime}),i.velocities.push({position:s[this.isHorizontal()?"currentX":"currentY"],time:(0,l.tB)()})),this.updateProgress(i.currentTranslate),this.setTranslate(i.currentTranslate))}}}function f(e){var t=this,r=t.touchEventsData,i=t.params,n=t.touches,s=t.rtlTranslate,a=t.$wrapperEl,o=t.slidesGrid,u=t.snapGrid;if(t.enabled){var c=e;if(c.originalEvent&&(c=c.originalEvent),r.allowTouchCallbacks&&t.emit("touchEnd",c),r.allowTouchCallbacks=!1,!r.isTouched){r.isMoved&&i.grabCursor&&t.setGrabCursor(!1),r.isMoved=!1,r.startMoving=!1;return}i.grabCursor&&r.isMoved&&r.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);var d=(0,l.tB)(),h=d-r.touchStartTime;if(t.allowClick&&(t.updateClickedSlide(c),t.emit("tap click",c),h<300&&d-r.lastClickTime<300&&t.emit("doubleTap doubleClick",c)),r.lastClickTime=(0,l.tB)(),(0,l.dY)(function(){t.destroyed||(t.allowClick=!0)}),!r.isTouched||!r.isMoved||!t.swipeDirection||0===n.diff||r.currentTranslate===r.startTranslate){r.isTouched=!1,r.isMoved=!1,r.startMoving=!1;return}if(r.isTouched=!1,r.isMoved=!1,r.startMoving=!1,p=i.followFinger?s?t.translate:-t.translate:-r.currentTranslate,!i.cssMode){if(i.freeMode){if(p<-t.minTranslate())return void t.slideTo(t.activeIndex);if(p>-t.maxTranslate())return void(t.slides.length<u.length?t.slideTo(u.length-1):t.slideTo(t.slides.length-1));if(i.freeModeMomentum){if(r.velocities.length>1){var p,f,g,m,v=r.velocities.pop(),b=r.velocities.pop(),y=v.position-b.position,w=v.time-b.time;t.velocity=y/w,t.velocity/=2,Math.abs(t.velocity)<i.freeModeMinimumVelocity&&(t.velocity=0),(w>150||(0,l.tB)()-v.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=i.freeModeMomentumVelocityRatio,r.velocities.length=0;var _=1e3*i.freeModeMomentumRatio,E=t.velocity*_,S=t.translate+E;s&&(S=-S);var T=!1,C=20*Math.abs(t.velocity)*i.freeModeMomentumBounceRatio;if(S<t.maxTranslate())i.freeModeMomentumBounce?(S+t.maxTranslate()<-C&&(S=t.maxTranslate()-C),f=t.maxTranslate(),T=!0,r.allowMomentumBounce=!0):S=t.maxTranslate(),i.loop&&i.centeredSlides&&(g=!0);else if(S>t.minTranslate())i.freeModeMomentumBounce?(S-t.minTranslate()>C&&(S=t.minTranslate()+C),f=t.minTranslate(),T=!0,r.allowMomentumBounce=!0):S=t.minTranslate(),i.loop&&i.centeredSlides&&(g=!0);else if(i.freeModeSticky){for(var k=0;k<u.length;k+=1)if(u[k]>-S){m=k;break}S=-(S=Math.abs(u[m]-S)<Math.abs(u[m-1]-S)||"next"===t.swipeDirection?u[m]:u[m-1])}if(g&&t.once("transitionEnd",function(){t.loopFix()}
249),0!==t.velocity){if(_=s?Math.abs((-S-t.translate)/t.velocity):Math.abs((S-t.translate)/t.velocity),i.freeModeSticky){var x=Math.abs((s?-S:S)-t.translate),I=t.slidesSizesGrid[t.activeIndex];_=x<I?i.speed:x<2*I?1.5*i.speed:2.5*i.speed}}else if(i.freeModeSticky)return void t.slideToClosest();i.freeModeMomentumBounce&&T?(t.updateProgress(f),t.setTransition(_),t.setTranslate(S),t.transitionStart(!0,t.swipeDirection),t.animating=!0,a.transitionEnd(function(){t&&!t.destroyed&&r.allowMomentumBounce&&(t.emit("momentumBounce"),t.setTransition(i.speed),setTimeout(function(){t.setTranslate(f),a.transitionEnd(function(){t&&!t.destroyed&&t.transitionEnd()})},0))})):t.velocity?(t.updateProgress(S),t.setTransition(_),t.setTranslate(S),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,a.transitionEnd(function(){t&&!t.destroyed&&t.transitionEnd()}))):(t.emit("_freeModeNoMomentumRelease"),t.updateProgress(S)),t.updateActiveIndex(),t.updateSlidesClasses()}else{if(i.freeModeSticky)return void t.slideToClosest();i.freeMode&&t.emit("_freeModeNoMomentumRelease")}return void((!i.freeModeMomentum||h>=i.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses()))}for(var A=0,P=t.slidesSizesGrid[0],O=0;O<o.length;O+=O<i.slidesPerGroupSkip?1:i.slidesPerGroup){var N=O<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;void 0!==o[O+N]?p>=o[O]&&p<o[O+N]&&(A=O,P=o[O+N]-o[O]):p>=o[O]&&(A=O,P=o[o.length-1]-o[o.length-2])}var R=(p-o[A])/P,M=A<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;if(h>i.longSwipesMs){if(!i.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(R>=i.longSwipesRatio?t.slideTo(A+M):t.slideTo(A)),"prev"===t.swipeDirection&&(R>1-i.longSwipesRatio?t.slideTo(A+M):t.slideTo(A))}else{if(!i.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(c.target===t.navigation.nextEl||c.target===t.navigation.prevEl)?c.target===t.navigation.nextEl?t.slideTo(A+M):t.slideTo(A):("next"===t.swipeDirection&&t.slideTo(A+M),"prev"===t.swipeDirection&&t.slideTo(A))}}}}function g(){var e=this.params,t=this.el;if(!t||0!==t.offsetWidth){e.breakpoints&&this.setBreakpoint();var r=this.allowSlideNext,i=this.allowSlidePrev,n=this.snapGrid;this.allowSlideNext=!0,this.allowSlidePrev=!0,this.updateSize(),this.updateSlides(),this.updateSlidesClasses(),("auto"===e.slidesPerView||e.slidesPerView>1)&&this.isEnd&&!this.isBeginning&&!this.params.centeredSlides?this.slideTo(this.slides.length-1,0,!1,!0):this.slideTo(this.activeIndex,0,!1,!0),this.autoplay&&this.autoplay.running&&this.autoplay.paused&&this.autoplay.run(),this.allowSlidePrev=i,this.allowSlideNext=r,this.params.watchOverflow&&n!==this.snapGrid&&this.checkOverflow()}}function m(e){this.enabled&&!this.allowClick&&(this.params.preventClicks&&e.preventDefault(),this.params.preventClicksPropagation&&this.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}function v(){var e=this.wrapperEl,t=this.rtlTranslate;if(this.enabled){this.previousTranslate=this.translate,this.isHorizontal()?t?this.translate=e.scrollWidth-e.offsetWidth-e.scrollLeft:this.translate=-e.scrollLeft:this.translate=-e.scrollTop,-0===this.translate&&(this.translate=0),this.updateActiveIndex(),this.updateSlidesClasses();var r=this.maxTranslate()-this.minTranslate();(0===r?0:(this.translate-this.minTranslate())/r)!==this.progress&&this.updateProgress(t?-this.translate:this.translate),this.emit("setTranslate",this.translate,!1)}}var b=!1;function y(){}let w={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!1,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",
249spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,slidesPerGroupSkip:0,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0,_emitClasses:!1};var _={modular:{useParams:function(e){var t=this;t.modules&&Object.keys(t.modules).forEach(function(r){var i=t.modules[r];i.params&&(0,l.X$)(e,i.params)})},useModules:function(e){void 0===e&&(e={});var t=this;t.modules&&Object.keys(t.modules).forEach(function(r){var i=t.modules[r],n=e[r]||{};i.on&&t.on&&Object.keys(i.on).forEach(function(e){t.on(e,i.on[e])}),i.create&&i.create.bind(t)(n)})}},eventsEmitter:{on:function(e,t,r){var i=this;if("function"!=typeof t)return i;var n=r?"unshift":"push";return e.split(" ").forEach(function(e){i.eventsListeners[e]||(i.eventsListeners[e]=[]),i.eventsListeners[e][n](t)}),i},once:function(e,t,r){var i=this;if("function"!=typeof t)return i;function n(){i.off(e,n),n.__emitterProxy&&delete n.__emitterProxy;for(var r=arguments.length,s=Array(r),a=0;a<r;a++)s[a]=arguments[a];t.apply(i,s)}return n.__emitterProxy=t,i.on(e,n,r)},onAny:function(e,t){return"function"!=typeof e||0>this.eventsAnyListeners.indexOf(e)&&this.eventsAnyListeners[t?"unshift":"push"](e),this},offAny:function(e){if(!this.eventsAnyListeners)return this;var t=this.eventsAnyListeners.indexOf(e);return t>=0&&this.eventsAnyListeners.splice(t,1),this},off:function(e,t){var r=this;return r.eventsListeners&&e.split(" ").forEach(function(e){void 0===t?r.eventsListeners[e]=[]:r.eventsListeners[e]&&r.eventsListeners[e].forEach(function(i,n){(i===t||i.__emitterProxy&&i.__emitterProxy===t)&&r.eventsListeners[e].splice(n,1)})}),r},emit:function(){var e,t,r,i=this;if(!i.eventsListeners)return i;for(var n=arguments.length,s=Array(n),a=0;a<n;a++)s[a]=arguments[a];return"string"==typeof s[0]||Array.isArray(s[0])?(e=s[0],t=s.slice(1,s.length),r=i):(e=s[0].events,t=s[0].data,r=s[0].context||i),t.unshift(r),(Array.isArray(e)?e:e.split(" ")).forEach(function(e){i.eventsAnyListeners&&i.eventsAnyListeners.length&&i.eventsAnyListeners.forEach(function(i){i.apply(r,[e].concat(t))}),i.eventsListeners&&i.eventsListeners[e]&&i.eventsListeners[e].forEach(function(e){e.apply(r,t)})}),i}},update:{updateSize:function(){var e,t,r=this.$el;e=void 0!==this.params.width&&null!==this.params.width?this.params.width:r[0].clientWidth,t=void 0!==this.params.height&&null!==this.params.height?this.params.height:r[0].clientHeight,0===e&&this.isHorizontal()||0===t&&this.isVertical()||(e=e-parseInt(r.css("padding-left")||0,10)-parseInt(r.css("padding-right")||0,10),t=t-parseInt(r.css("padding-top")||0,10)-parseInt(r.css("padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(t)&&(t=0),(0,l.X$)(this,{width:e,height:t,size:this.isHorizontal()?e:t}))},updateSlides:function(){var e=this;function t(t){return e.isHorizontal()?t:({width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"})[t]}function r(e,r){return parseFloat(e.getPropertyValue(t(r))||0)}var i=e.params,n=e.$wrapperEl,s=e.size,a=e.rtlTranslate,o=e.wrongRTL,u=e.virtual&&i.virtual.enabled,c=u?e.virtual.slides.length:e.slides.length,d=n.children("."+e.params.slideClass),h=u?e.virtual.slides.length:d.length,p=[],f=[],g=[],m=i.slidesOffsetBefore;"function"==typeof m&&(m=i.slidesOffsetBefore.call(e));var v=i.slidesOffsetAfter;"function"==typeof v&&(v=i.slidesOffsetAfter.call(e));var b=e.snapGrid.length,y=e.slidesGrid.length,w=i.spaceBetween,_=-m,E=0,S=0;if(void 0!==s){"string"==typeof w&&w.indexOf("%")>=0&&(w=parseFloat(w.replace("%",""))/100*s),e.virtualSize=-w,a?d.css({marginLeft:"",marginBottom:"",marginTop:""}):d.css({marginRight:"",marginBottom:"",marginTop:""}),i.slidesPerColumn>1&&(X=Math.floor(h/i.slidesPerColumn)===h/e.params.slidesPerColumn?h:Math.ceil(h/i.slidesPerColumn)*i.slidesPerColumn,"auto"!==i.slidesPerView&&"row"===i.slidesPerColumnFill&&(X=Math.max(X,i.slidesPerView*i.slidesPerColumn)));for(var T=i.slidesPerColumn,C=X/T,k=Math.floor(h/i.slidesPerColumn),x=0;x<h;x+=1){Q=0;var I=d.eq(x);if(i.slidesPerColumn>1){var A=void 0,P=void 0,O=void 0;if("row"===i.slidesPerColumnFill&&i.slidesPerGroup>1){var N=Math.floor(x/(i.slidesPerGroup*i.slidesPerColumn)),R=x-i.slidesPerColumn*i.slidesPerGroup*N,M=0===N?i.slidesPerGroup:Math.min(Math.ceil((h-N*T*i.slidesPerGroup)/T),i.slidesPerGroup);O=Math.floor(R/M),A=(P=R-O*M+N*i.slidesPerGroup)+O*X/T,I.css({"-webkit-box-ordinal-group":A,"-moz-box-ordinal-group":A,"-ms-flex-order":A,"-webkit-order":A,order:A})}else"column"===i.slidesPerColumnFill?(P=Math.floor(x/T),O=x-P*T,(P>k||P===k&&O===T-1)&&(O+=1)>=T&&(O=0,P+=1)):(O=Math.floor(x/C),P=x-O*C);I.css(t("margin-top"),0!==O?i.spaceBetween&&i.spaceBetween+"px":"")}if("none"!==I.css("display")){if("auto"===i.slidesPerView){var L=getComputedStyle(I[0]),D=I[0].style.transform,B=I[0].style.webkitTransform;if(D&&(I[0].style.transform="none"),B&&(I[0].style.webkitTransform="none"),i.roun
249dLengths)Q=e.isHorizontal()?I.outerWidth(!0):I.outerHeight(!0);else{var j=r(L,"width"),U=r(L,"padding-left"),H=r(L,"padding-right"),F=r(L,"margin-left"),q=r(L,"margin-right"),$=L.getPropertyValue("box-sizing");if($&&"border-box"===$)Q=j+F+q;else{var G=I[0],z=G.clientWidth;Q=j+U+H+F+q+(G.offsetWidth-z)}}D&&(I[0].style.transform=D),B&&(I[0].style.webkitTransform=B),i.roundLengths&&(Q=Math.floor(Q))}else Q=(s-(i.slidesPerView-1)*w)/i.slidesPerView,i.roundLengths&&(Q=Math.floor(Q)),d[x]&&(d[x].style[t("width")]=Q+"px");d[x]&&(d[x].swiperSlideSize=Q),g.push(Q),i.centeredSlides?(_=_+Q/2+E/2+w,0===E&&0!==x&&(_=_-s/2-w),0===x&&(_=_-s/2-w),.001>Math.abs(_)&&(_=0),i.roundLengths&&(_=Math.floor(_)),S%i.slidesPerGroup==0&&p.push(_),f.push(_)):(i.roundLengths&&(_=Math.floor(_)),(S-Math.min(e.params.slidesPerGroupSkip,S))%e.params.slidesPerGroup==0&&p.push(_),f.push(_),_=_+Q+w),e.virtualSize+=Q+w,E=Q,S+=1}}if(e.virtualSize=Math.max(e.virtualSize,s)+v,a&&o&&("slide"===i.effect||"coverflow"===i.effect)&&n.css({width:e.virtualSize+i.spaceBetween+"px"}),i.setWrapperSize&&n.css(((Z={})[t("width")]=e.virtualSize+i.spaceBetween+"px",Z)),i.slidesPerColumn>1&&(e.virtualSize=(Q+i.spaceBetween)*X,e.virtualSize=Math.ceil(e.virtualSize/i.slidesPerColumn)-i.spaceBetween,n.css(((ee={})[t("width")]=e.virtualSize+i.spaceBetween+"px",ee)),i.centeredSlides)){J=[];for(var V=0;V<p.length;V+=1){var W=p[V];i.roundLengths&&(W=Math.floor(W)),p[V]<e.virtualSize+p[0]&&J.push(W)}p=J}if(!i.centeredSlides){J=[];for(var K=0;K<p.length;K+=1){var Y=p[K];i.roundLengths&&(Y=Math.floor(Y)),p[K]<=e.virtualSize-s&&J.push(Y)}p=J,Math.floor(e.virtualSize-s)-Math.floor(p[p.length-1])>1&&p.push(e.virtualSize-s)}if(0===p.length&&(p=[0]),0!==i.spaceBetween){var X,Q,J,Z,ee,et,er=e.isHorizontal()&&a?"marginLeft":t("marginRight");d.filter(function(e,t){return!i.cssMode||t!==d.length-1}).css(((et={})[er]=w+"px",et))}if(i.centeredSlides&&i.centeredSlidesBounds){var ei=0;g.forEach(function(e){ei+=e+(i.spaceBetween?i.spaceBetween:0)});var en=(ei-=i.spaceBetween)-s;p=p.map(function(e){return e<0?-m:e>en?en+v:e})}if(i.centerInsufficientSlides){var es=0;if(g.forEach(function(e){es+=e+(i.spaceBetween?i.spaceBetween:0)}),(es-=i.spaceBetween)<s){var ea=(s-es)/2;p.forEach(function(e,t){p[t]=e-ea}),f.forEach(function(e,t){f[t]=e+ea})}}(0,l.X$)(e,{slides:d,snapGrid:p,slidesGrid:f,slidesSizesGrid:g}),h!==c&&e.emit("slidesLengthChange"),p.length!==b&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),f.length!==y&&e.emit("slidesGridLengthChange"),(i.watchSlidesProgress||i.watchSlidesVisibility)&&e.updateSlidesOffset()}},updateAutoHeight:function(e){var t,r=this,i=[],n=r.virtual&&r.params.virtual.enabled,s=0;"number"==typeof e?r.setTransition(e):!0===e&&r.setTransition(r.params.speed);var a=function(e){return n?r.slides.filter(function(t){return parseInt(t.getAttribute("data-swiper-slide-index"),10)===e})[0]:r.slides.eq(e)[0]};if("auto"!==r.params.slidesPerView&&r.params.slidesPerView>1)if(r.params.centeredSlides)r.visibleSlides.each(function(e){i.push(e)});else for(t=0;t<Math.ceil(r.params.slidesPerView);t+=1){var o=r.activeIndex+t;if(o>r.slides.length&&!n)break;i.push(a(o))}else i.push(a(r.activeIndex));for(t=0;t<i.length;t+=1)if(void 0!==i[t]){var l=i[t].offsetHeight;s=l>s?l:s}s&&r.$wrapperEl.css("height",s+"px")},updateSlidesOffset:function(){for(var e=this.slides,t=0;t<e.length;t+=1)e[t].swiperSlideOffset=this.isHorizontal()?e[t].offsetLeft:e[t].offsetTop},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);var t=this.params,r=this.slides,i=this.rtlTranslate;if(0!==r.length){void 0===r[0].swiperSlideOffset&&this.updateSlidesOffset();var n=-e;i&&(n=e),r.removeClass(t.slideVisibleClass),this.visibleSlidesIndexes=[],this.visibleSlides=[];for(var s=0;s<r.length;s+=1){var a=r[s],l=(n+(t.centeredSlides?this.minTranslate():0)-a.swiperSlideOffset)/(a.swiperSlideSize+t.spaceBetween);if(t.watchSlidesVisibility||t.centeredSlides&&t.autoHeight){var u=-(n-a.swiperSlideOffset),c=u+this.slidesSizesGrid[s];(u>=0&&u<this.size-1||c>1&&c<=this.size||u<=0&&c>=this.size)&&(this.visibleSlides.push(a),this.visibleSlidesIndexes.push(s),r.eq(s).addClass(t.slideVisibleClass))}a.progress=i?-l:l}this.visibleSlides=(0,o.A)(this.visibleSlides)}},updateProgress:function(e){if(void 0===e){var t=this.rtlTranslate?-1:1;e=this&&this.translate&&this.translate*t||0}var r=this.params,i=this.maxTranslate()-this.minTranslate(),n=this.progress,s=this.isBeg
249inning,a=this.isEnd,o=s,u=a;0===i?(n=0,s=!0,a=!0):(s=(n=(e-this.minTranslate())/i)<=0,a=n>=1),(0,l.X$)(this,{progress:n,isBeginning:s,isEnd:a}),(r.watchSlidesProgress||r.watchSlidesVisibility||r.centeredSlides&&r.autoHeight)&&this.updateSlidesProgress(e),s&&!o&&this.emit("reachBeginning toEdge"),a&&!u&&this.emit("reachEnd toEdge"),(o&&!s||u&&!a)&&this.emit("fromEdge"),this.emit("progress",n)},updateSlidesClasses:function(){var e,t=this.slides,r=this.params,i=this.$wrapperEl,n=this.activeIndex,s=this.realIndex,a=this.virtual&&r.virtual.enabled;t.removeClass(r.slideActiveClass+" "+r.slideNextClass+" "+r.slidePrevClass+" "+r.slideDuplicateActiveClass+" "+r.slideDuplicateNextClass+" "+r.slideDuplicatePrevClass),(e=a?this.$wrapperEl.find("."+r.slideClass+'[data-swiper-slide-index="'+n+'"]'):t.eq(n)).addClass(r.slideActiveClass),r.loop&&(e.hasClass(r.slideDuplicateClass)?i.children("."+r.slideClass+":not(."+r.slideDuplicateClass+')[data-swiper-slide-index="'+s+'"]').addClass(r.slideDuplicateActiveClass):i.children("."+r.slideClass+"."+r.slideDuplicateClass+'[data-swiper-slide-index="'+s+'"]').addClass(r.slideDuplicateActiveClass));var o=e.nextAll("."+r.slideClass).eq(0).addClass(r.slideNextClass);r.loop&&0===o.length&&(o=t.eq(0)).addClass(r.slideNextClass);var l=e.prevAll("."+r.slideClass).eq(0).addClass(r.slidePrevClass);
249r.loop&&0===l.length&&(l=t.eq(-1)).addClass(r.slidePrevClass),r.loop&&(o.hasClass(r.slideDuplicateClass)?i.children("."+r.slideClass+":not(."+r.slideDuplicateClass+')[data-swiper-slide-index="'+o.attr("data-swiper-slide-index")+'"]').addClass(r.slideDuplicateNextClass):i.children("."+r.slideClass+"."+r.slideDuplicateClass+'[data-swiper-slide-index="'+o.attr("data-swiper-slide-index")+'"]').addClass(r.slideDuplicateNextClass),l.hasClass(r.slideDuplicateClass)?i.children("."+r.slideClass+":not(."+r.slideDuplicateClass+')[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(r.slideDuplicatePrevClass):i.children("."+r.slideClass+"."+r.slideDuplicateClass+'[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(r.slideDuplicatePrevClass)),this.emitSlidesClasses()},updateActiveIndex:function(e){var t,r=this.rtlTranslate?this.translate:-this.translate,i=this.slidesGrid,n=this.snapGrid,s=this.params,a=this.activeIndex,o=this.realIndex,u=this.snapIndex,c=e;if(void 0===c){for(var d=0;d<i.length;d+=1)void 0!==i[d+1]?r>=i[d]&&r<i[d+1]-(i[d+1]-i[d])/2?c=d:r>=i[d]&&r<i[d+1]&&(c=d+1):r>=i[d]&&(c=d);s.normalizeSlideIndex&&(c<0||void 0===c)&&(c=0)}if(n.indexOf(r)>=0)t=n.indexOf(r);else{var h=Math.min(s.slidesPerGroupSkip,c);t=h+Math.floor((c-h)/s.slidesPerGroup)}if(t>=n.length&&(t=n.length-1),c===a){t!==u&&(this.snapIndex=t,this.emit("snapIndexChange"));return}var p=parseInt(this.slides.eq(c).attr("data-swiper-slide-index")||c,10);(0,l.X$)(this,{snapIndex:t,realIndex:p,previousIndex:a,activeIndex:c}),this.emit("activeIndexChange"),this.emit("snapIndexChange"),o!==p&&this.emit("realIndexChange"),(this.initialized||this.params.runCallbacksOnInit)&&this.emit("slideChange")},updateClickedSlide:function(e){var t,r=this.params,i=(0,o.A)(e.target).closest("."+r.slideClass)[0],n=!1;if(i){for(var s=0;s<this.slides.length;s+=1)if(this.slides[s]===i){n=!0,t=s;break}}if(i&&n)this.clickedSlide=i,this.virtual&&this.params.virtual.enabled?this.clickedIndex=parseInt((0,o.A)(i).attr("data-swiper-slide-index"),10):this.clickedIndex=t;else{this.clickedSlide=void 0,this.clickedIndex=void 0;return}r.slideToClickedSlide&&void 0!==this.clickedIndex&&this.clickedIndex!==this.activeIndex&&this.slideToClickedSlide()}},translate:{getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");var t=this.params,r=this.rtlTranslate,i=this.translate,n=this.$wrapperEl;if(t.virtualTranslate)return r?-i:i;if(t.cssMode)return i;var s=(0,l.ro)(n[0],e);return r&&(s=-s),s||0},setTranslate:function(e,t){var r=this.rtlTranslate,i=this.params,n=this.$wrapperEl,s=this.wrapperEl,a=this.progress,o=0,l=0;this.isHorizontal()?o=r?-e:e:l=e,i.roundLengths&&(o=Math.floor(o),l=Math.floor(l)),i.cssMode?s[this.isHorizontal()?"scrollLeft":"scrollTop"]=this.isHorizontal()?-o:-l:i.virtualTranslate||n.transform("translate3d("+o+"px, "+l+"px, 0px)"),this.previousTranslate=this.translate,this.translate=this.isHorizontal()?o:l;var u=this.maxTranslate()-this.minTranslate();(0===u?0:(e-this.minTranslate())/u)!==a&&this.updateProgress(e),this.emit("setTranslate",this.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e,t,r,i,n){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===r&&(r=!0),void 0===i&&(i=!0);var s=this,a=s.params,o=s.wrapperEl;if(s.animating&&a.preventInteractionOnTransition)return!1;var l=s.minTranslate(),u=s.maxTranslate();if(c=i&&e>l?l:i&&e<u?u:e,s.updateProgress(c),a.cssMode){var c,d,h=s.isHorizontal();return 0===t?o[h?"scrollLeft":"scrollTop"]=-c:o.scrollTo?o.scrollTo(((d={})[h?"left":"top"]=-c,d.behavior="smooth",d)):o[h?"scrollLeft":"scrollTop"]=-c,!0}return 0===t?(s.setTransition(0),s.setTranslate(c),r&&(s.emit("beforeTransitionStart",t,n),s.emit("transitionEnd"))):(s.setTransition(t),s.setTranslate(c),r&&(s.emit("beforeTransitionStart",t,n),s.emit("transitionStart")),s.animating||(s.animating=!0,s.onTranslateToWrapperTransitionEnd||(s.onTranslateToWrapperTransitionEnd=function(e){!s||s.destroyed||e.target===this&&(s.$wrapperEl[0].removeEventListener("transitionend",s.onTranslateToWrapperTransitionEnd),s.$wrapperEl[0].removeEventListener("webkitTransitionEnd",s.onTranslateToWrapperTransitionEnd),s.onTranslateToWrapperTransitionEnd=null,delete s.onTranslateToWrapperTransitionEnd,r&&s.emit("transitionEnd"))}),s.$wrapperEl[0].addEventListener("transitionend",s.onTranslateToWrapperTransitionEnd),s.$wrapperEl[0].addEventListener("webkitTransitionEnd",s.onTranslateToWrapperTransitionEnd))),!0}},transition:{setTransition:function(e,t){this.params.cssMode||this.$wrapperEl.transition(e),this.emit
249("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);var r=this.activeIndex,i=this.params,n=this.previousIndex;if(!i.cssMode){i.autoHeight&&this.updateAutoHeight();var s=t;if(s||(s=r>n?"next":r<n?"prev":"reset"),this.emit("transitionStart"),e&&r!==n){if("reset"===s)return void this.emit("slideResetTransitionStart");this.emit("slideChangeTransitionStart"),"next"===s?this.emit("slideNextTransitionStart"):this.emit("slidePrevTransitionStart")}}},transitionEnd:function(e,t){void 0===e&&(e=!0);var r=this.activeIndex,i=this.previousIndex,n=this.params;if(this.animating=!1,!n.cssMode){this.setTransition(0);var s=t;if(s||(s=r>i?"next":r<i?"prev":"reset"),this.emit("transitionEnd"),e&&r!==i){if("reset"===s)return void this.emit("slideResetTransitionEnd");this.emit("slideChangeTransitionEnd"),"next"===s?this.emit("slideNextTransitionEnd"):this.emit("slidePrevTransitionEnd")}}}},slide:{slideTo:function(e,t,r,i,n){if(void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===r&&(r=!0),"number"!=typeof e&&"string"!=typeof e)throw Error("The 'index' argument cannot have type other than 'number' or 'string'. ["+typeof e+"] given.");if("string"==typeof e){var s=parseInt(e,10);if(!isFinite(s))throw Error("The passed-in 'index' (string) couldn't be converted to 'number'. ["+e+"] given.");e=s}var a=this,o=e;o<0&&(o=0);var l=a.params,u=a.snapGrid,c=a.slidesGrid,d=a.previousIndex,h=a.activeIndex,p=a.rtlTranslate,f=a.wrapperEl,g=a.enabled;if(a.animating&&l.preventInteractionOnTransition||!g&&!i&&!n)return!1;var m=Math.min(a.params.slidesPerGroupSkip,o),v=m+Math.floor((o-m)/a.params.slidesPerGroup);v>=u.length&&(v=u.length-1),(h||l.initialSlide||0)===(d||0)&&r&&a.emit("beforeSlideChangeStart");var b=-u[v];if(a.updateProgress(b),l.normalizeSlideIndex)for(var y=0;y<c.length;y+=1){var w=-Math.floor(100*b),_=Math.floor(100*c[y]),E=Math.floor(100*c[y+1]);void 0!==c[y+1]?w>=_&&w<E-(E-_)/2?o=y:w>=_&&w<E&&(o=y+1):w>=_&&(o=y)}if(a.initialized&&o!==h&&(!a.allowSlideNext&&b<a.translate&&b<a.minTranslate()||!a.allowSlidePrev&&b>a.translate&&b>a.maxTranslate()&&(h||0)!==o))return!1;if(S=o>h?"next":o<h?"prev":"reset",p&&-b===a.translate||!p&&b===a.translate)return a.updateActiveIndex(o),l.autoHeight&&a.updateAutoHeight(),a.updateSlidesClasses(),"slide"!==l.effect&&a.setTranslate(b),"reset"!==S&&(a.transitionStart(r,S),a.transitionEnd(r,S)),!1;if(l.cssMode){var S,T,C=a.isHorizontal(),k=-b;return p&&(k=f.scrollWidth-f.offsetWidth-k),0===t?f[C?"scrollLeft":"scrollTop"]=k:f.scrollTo?f.scrollTo(((T={})[C?"left":"top"]=k,T.behavior="smooth",T)):f[C?"scrollLeft":"scrollTop"]=k,!0}return 0===t?(a.setTransition(0),a.setTranslate(b),a.updateActiveIndex(o),a.updateSlidesClasses(),a.emit("beforeTransitionStart",t,i),a.transitionStart(r,S),a.transitionEnd(r,S)):(a.setTransition(t),a.setTranslate(b),a.updateActiveIndex(o),a.updateSlidesClasses(),a.emit("beforeTransitionStart",t,i),a.transitionStart(r,S),a.animating||(a.animating=!0,a.onSlideToWrapperTransitionEnd||(a.onSlideToWrapperTransitionEnd=function(e){!a||a.destroyed||e.target===this&&(a.$wrapperEl[0].removeEventListener("transitionend",a.onSlideToWrapperTransitionEnd),a.$wrapperEl[0].removeEventListener("webkitTransitionEnd",a.onSlideToWrapperTransitionEnd),a.onSlideToWrapperTransitionEnd=null,delete a.onSlideToWrapperTransitionEnd,a.transitionEnd(r,S))}),a.$wrapperEl[0].addEventListener("transitionend",a.onSlideToWrapperTransitionEnd),a.$wrapperEl[0].addEventListener("webkitTransitionEnd",a.onSlideToWrapperTransitionEnd))),!0},slideToLoop:function(e,t,r,i){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===r&&(r=!0);var n=e;return this.params.loop&&(n+=this.loopedSlides),this.slideTo(n,t,r,i)},slideNext:function(e,t,r){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var i=this.params,n=this.animating;if(!this.enabled)return this;var s=this.activeIndex<i.slidesPerGroupSkip?1:i.slidesPerGroup;if(i.loop){if(n&&i.loopPreventsSlide)return!1;this.loopFix(),this._clientLeft=this.$wrapperEl[0].clientLeft}return this.slideTo(this.activeIndex+s,e,t,r)},slidePrev:function(e,t,r){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var i,n=this.params,s=this.animating,a=this.snapGrid,o=this.slidesGrid,l=this.rtlTranslate;if(!this.enabled)return this;if(n.loop){if(s&&n.loopPreventsSlide)return!1;this.loopFix(),this._clientLeft=this.$wrapperEl[0].clientLeft}function u(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}var c=u(l?this.translate:-this.translate),d=a.map(function(e){return u(e)}),h=a[d.indexOf(c)-1];return void 0===h&&n.cssMode&&a.forEach(function(e){!h&&c>=e&&(h=e)}),void 0!==h&&(i=o.indexOf(h))<0&&(i=this.activeIndex-1),this.slideTo(i,e,t,r)},slideReset:function(e,t,r){return void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),this.slideTo(this.activeIndex,e,t,r)},slideToClosest:function(e,t,r,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),void 0===i&&(i=.5);var n=this.activeIndex,s=Math.min(this.params.slidesPerGroupSkip,n),a=s+Math.floor((n-s)/this.params.slidesPerGroup),o=this.rtlTranslate?this.translate:-this.translate;if(o>=this.snapGrid[a]){var l=this.snapGrid[a];o-l>(this.snapGrid[a+1]-l)*i&&(n+=this.params.slidesPerGroup)}else{var u=this.snapGrid[a-1];o-u<=(this.snapGrid[a]-u)*i&&(n-=this.params.slidesPerGroup)}return n=Math.min(n=Math.max(n,0),this.slidesGrid.length-1),this.slideTo(n,e,t,r)},slideToClickedSlide:function(){var e,t=this,r=t.params,i=t.$wrapperEl,n="auto"===r.slidesPerView?t.slidesPerViewDynamic():r.slidesPerView,s=t.clickedIndex;if(r.loop){if(t.animating)return;e=parseInt((0,o.A)(t.clickedSlide).attr("data-swiper-slide-index"),10),r.centeredSlides?s<t.loopedSlides-n/2||s>
249t.slides.length-t.loopedSlides+n/2?(t.loopFix(),s=i.children("."+r.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+r.slideDuplicateClass+")").eq(0).index(),(0,l.dY)(function(){t.slideTo(s)})):t.slideTo(s):s>t.slides.length-n?(t.loopFix(),s=i.children("."+r.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+r.slideDuplicateClass+")").eq(0).index(),(0,l.dY)(function(){t.slideTo(s)})):t.slideTo(s)}else t.slideTo(s)}},loop:{loopCreate:function(){var e=this,t=(0,a.YE)(),r=e.params,i=e.$wrapperEl;i.children("."+r.slideClass+"."+r.slideDuplicateClass).remove();var n=i.children("."+r.slideClass);if(r.loopFillGroupWithBlank){var s=r.slidesPerGroup-n.length%r.slidesPerGroup;if(s!==r.slidesPerGroup){for(var l=0;l<s;l+=1){var u=(0,o.A)(t.createElement("div")).addClass(r.slideClass+" "+r.slideBlankClass);i.append(u)}n=i.children("."+r.slideClass)}}"auto"!==r.slidesPerView||r.loopedSlides||(r.loopedSlides=n.length),e.loopedSlides=Math.ceil(parseFloat(r.loopedSlides||r.slidesPerView,10)),e.loopedSlides+=r.loopAdditionalSlides,e.loopedSlides>n.length&&(e.loopedSlides=n.length);var c=[],d=[];n.each(function(t,r){var i=(0,o.A)(t);r<e.loopedSlides&&d.push(t),r<n.length&&r>=n.length-e.loopedSlides&&c.push(t),i.attr("data-swiper-slide-index",r)});for(var h=0;h<d.length;h+=1)i.append((0,o.A)(d[h].cloneNode(!0)).addClass(r.slideDuplicateClass));for(var p=c.length-1;p>=0;p-=1)i.prepend((0,o.A)(c[p].cloneNode(!0)).addClass(r.slideDuplicateClass))},loopFix:function(){this.emit("beforeLoopFix");var e,t=this.activeIndex,r=this.slides,i=this.loopedSlides,n=this.allowSlidePrev,s=this.allowSlideNext,a=this.snapGrid,o=this.rtlTranslate;this.allowSlidePrev=!0,this.allowSlideNext=!0;var l=-a[t]-this.getTranslate();t<i?(e=r.length-3*i+t+i,this.slideTo(e,0,!1,!0)&&0!==l&&this.setTranslate((o?-this.translate:this.translate)-l)):t>=r.length-i&&(e=-r.length+t+i+i,this.slideTo(e,0,!1,!0)&&0!==l&&this.setTranslate((o?-this.translate:this.translate)-l)),this.allowSlidePrev=n,this.allowSlideNext=s,this.emit("loopFix")},loopDestroy:function(){var e=this.$wrapperEl,t=this.params,r=this.slides;e.children("."+t.slideClass+"."+t.slideDuplicateClass+",."+t.slideClass+"."+t.slideBlankClass).remove(),r.removeAttr("data-swiper-slide-index")}},grabCursor:{setGrabCursor:function(e){if(!this.support.touch&&this.params.simulateTouch&&(!this.params.watchOverflow||!this.isLocked)&&!this.params.cssMode){var t=this.el;t.style.cursor="move",t.style.cursor=e?"-webkit-grabbing":"-webkit-grab",t.style.cursor=e?"-moz-grabbin":"-moz-grab",t.style.cursor=e?"grabbing":"grab"}},unsetGrabCursor:function(){this.support.touch||this.params.watchOverflow&&this.isLocked||this.params.cssMode||(this.el.style.cursor="")}},manipulation:{appendSlide:function(e){var t=this.$wrapperEl,r=this.params;if(r.loop&&this.loopDestroy(),"object"==typeof e&&"length"in e)for(var i=0;i<e.length;i+=1)e[i]&&t.append(e[i]);else t.append(e);r.loop&&this.loopCreate(),r.observer&&this.support.observer||this.update()},prependSlide:function(e){var t=this.params,r=this.$wrapperEl,i=this.activeIndex;t.loop&&this.loopDestroy();var n=i+1;if("object"==typeof e&&"length"in e){for(var s=0;s<e.length;s+=1)e[s]&&r.prepend(e[s]);n=i+e.length}else r.prepend(e);t.loop&&this.loopCreate(),t.observer&&this.support.observer||this.update(),this.slideTo(n,0,!1)},addSlide:function(e,t){var r=this.$wrapperEl,i=this.params,n=this.activeIndex;i.loop&&(n-=this.loopedSlides,this.loopDestroy(),this.slides=r.children("."+i.slideClass));var s=this.slides.length;if(e<=0)return void this.prependSlide(t);if(e>=s)return void this.appendSlide(t);for(var a=n>e?n+1:n,o=[],l=s-1;l>=e;l-=1){var u=this.slides.eq(l);u.remove(),o.unshift(u)}if("object"==typeof t&&"length"in t){for(var c=0;c<t.length;c+=1)t[c]&&r.append(t[c]);a=n>e?n+t.length:n}else r.append(t);for(var d=0;d<o.length;d+=1)r.append(o[d]);i.loop&&this.loopCreate(),i.observer&&this.support.observer||this.update(),i.loop?this.slideTo(a+this.loopedSlides,0,!1):this.slideTo(a,0,!1)},removeSlide:function(e){var t,r=this.params,i=this.$wrapperEl,n=this.activeIndex;r.loop&&(n-=this.loopedSlides,this.loopDestroy(),this.slides=i.children("."+r.slideClass));var s=n;
249if("object"==typeof e&&"length"in e){for(var a=0;a<e.length;a+=1)t=e[a],this.slides[t]&&this.slides.eq(t).remove(),t<s&&(s-=1);s=Math.max(s,0)}else t=e,this.slides[t]&&this.slides.eq(t).remove(),t<s&&(s-=1),s=Math.max(s,0);r.loop&&this.loopCreate(),r.observer&&this.support.observer||this.update(),r.loop?this.slideTo(s+this.loopedSlides,0,!1):this.slideTo(s,0,!1)},removeAllSlides:function(){for(var e=[],t=0;t<this.slides.length;t+=1)e.push(t);this.removeSlide(e)}},events:{attachEvents:function(){var e=(0,a.YE)(),t=this.params,r=this.touchEvents,i=this.el,n=this.wrapperEl,s=this.device,o=this.support;this.onTouchStart=h.bind(this),this.onTouchMove=p.bind(this),this.onTouchEnd=f.bind(this),t.cssMode&&(this.onScroll=v.bind(this)),this.onClick=m.bind(this);var l=!!t.nested;if(!o.touch&&o.pointerEvents)i.addEventListener(r.start,this.onTouchStart,!1),e.addEventListener(r.move,this.onTouchMove,l),e.addEventListener(r.end,this.onTouchEnd,!1);else{if(o.touch){var u="touchstart"===r.start&&!!o.passiveListener&&!!t.passiveListeners&&{passive:!0,capture:!1};i.addEventListener(r.start,this.onTouchStart,u),i.addEventListener(r.move,this.onTouchMove,o.passiveListener?{passive:!1,capture:l}:l),i.addEventListener(r.end,this.onTouchEnd,u),r.cancel&&i.addEventListener(r.cancel,this.onTouchEnd,u),b||(e.addEventListener("touchstart",y),b=!0)}(t.simulateTouch&&!s.ios&&!s.android||t.simulateTouch&&!o.touch&&s.ios)&&(i.addEventListener("mousedown",this.onTouchStart,!1),e.addEventListener("mousemove",this.onTouchMove,l),e.addEventListener("mouseup",this.onTouchEnd,!1))}(t.preventClicks||t.preventClicksPropagation)&&i.addEventListener("click",this.onClick,!0),t.cssMode&&n.addEventListener("scroll",this.onScroll),t.updateOnWindowResize?this.on(s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",g,!0):this.on("observerUpdate",g,!0)},detachEvents:function(){var e=(0,a.YE)(),t=this.params,r=this.touchEvents,i=this.el,n=this.wrapperEl,s=this.device,o=this.support,l=!!t.nested;if(!o.touch&&o.pointerEvents)i.removeEventListener(r.start,this.onTouchStart,!1),e.removeEventListener(r.move,this.onTouchMove,l),e.removeEventListener(r.end,this.onTouchEnd,!1);else{if(o.touch){var u="onTouchStart"===r.start&&!!o.passiveListener&&!!t.passiveListeners&&{passive:!0,capture:!1};i.removeEventListener(r.start,this.onTouchStart,u),i.removeEventListener(r.move,this.onTouchMove,l),i.removeEventListener(r.end,this.onTouchEnd,u),r.cancel&&i.removeEventListener(r.cancel,this.onTouchEnd,u)}(t.simulateTouch&&!s.ios&&!s.android||t.simulateTouch&&!o.touch&&s.ios)&&(i.removeEventListener("mousedown",this.onTouchStart,!1),e.removeEventListener("mousemove",this.onTouchMove,l),e.removeEventListener("mouseup",this.onTouchEnd,!1))}(t.preventClicks||t.preventClicksPropagation)&&i.removeEventListener("click",this.onClick,!0),t.cssMode&&n.removeEventListener("scroll",this.onScroll),this.off(s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",g)}},breakpoints:{setBreakpoint:function(){var e=this.activeIndex,t=this.initialized,r=this.loopedSlides,i=this.params,n=this.$el,s=i.breakpoints;if(s&&(!s||0!==Object.keys(s).length)){var a=this.getBreakpoint(s,this.params.breakpointsBase,this.el);if(a&&this.currentBreakpoint!==a){var o=a in s?s[a]:void 0;o&&["slidesPerView","spaceBetween","slidesPerGroup","slidesPerGroupSkip","slidesPerColumn"].forEach(function(e){var t=o[e];void 0!==t&&("slidesPerView"===e&&("AUTO"===t||"auto"===t)?o[e]="auto":"slidesPerView"===e?o[e]=parseFloat(t):o[e]=parseInt(t,10))});var u=o||this.originalParams,c=i.slidesPerColumn>1,d=u.slidesPerColumn>1,h=i.enabled;c&&!d?(n.removeClass(i.containerModifierClass+"multirow "+i.containerModifierClass+"multirow-column"),this.emitContainerClasses()):!c&&d&&(n.addClass(i.containerModifierClass+"multirow"),(u.slidesPerColumnFill&&"column"===u.slidesPerColumnFill||!u.slidesPerColumnFill&&"column"===i.slidesPerColumnFill)&&n.addClass(i.containerModifierClass+"multirow-column"),this.emitContainerClasses());var p=u.direction&&u.direction!==i.direction,f=i.loop&&(u.slidesPerView!==i.slidesPerView||p);p&&t&&this.changeDirection(),(0,l.X$)(this.params,u);var g=this.params.enabled;(0,l.X$)(this,{allowTouchMove:this.params.allowTouchMove,allowSlideNext:this.params.allowSlideNext,allowSlidePrev:this.params.allowSlidePrev}),h&&!g?this.disable():!h&&g&&this.enable(),this.currentBreakpoint=a,this.emit
249("_beforeBreakpoint",u),f&&t&&(this.loopDestroy(),this.loopCreate(),this.updateSlides(),this.slideTo(e-(void 0===r?0:r)+this.loopedSlides,0,!1)),this.emit("breakpoint",u)}}},getBreakpoint:function(e,t,r){if(void 0===t&&(t="window"),e&&("container"!==t||r)){var i=!1,n=(0,a.zk)(),s="window"===t?n.innerHeight:r.clientHeight,o=Object.keys(e).map(function(e){return"string"==typeof e&&0===e.indexOf("@")?{value:s*parseFloat(e.substr(1)),point:e}:{value:e,point:e}});o.sort(function(e,t){return parseInt(e.value,10)-parseInt(t.value,10)});for(var l=0;l<o.length;l+=1){var u=o[l],c=u.point,d=u.value;"window"===t?n.matchMedia("(min-width: "+d+"px)").matches&&(i=c):d<=r.clientWidth&&(i=c)}return i||"max"}}},checkOverflow:{checkOverflow:function(){var e=this.params,t=this.isLocked,r=this.slides.length>0&&e.slidesOffsetBefore+e.spaceBetween*(this.slides.length-1)+this.slides[0].offsetWidth*this.slides.length;e.slidesOffsetBefore&&e.slidesOffsetAfter&&r?this.isLocked=r<=this.size:this.isLocked=1===this.snapGrid.length,this.allowSlideNext=!this.isLocked,this.allowSlidePrev=!this.isLocked,t!==this.isLocked&&this.emit(this.isLocked?"lock":"unlock"),t&&t!==this.isLocked&&(this.isEnd=!1,this.navigation&&this.navigation.update())}},classes:{addClasses:function(){var e,t,r,i=this.classNames,n=this.params,s=this.rtl,a=this.$el,o=this.device,l=this.support,u=(e=["initialized",n.direction,{"pointer-events":l.pointerEvents&&!l.touch},{"free-mode":n.freeMode},{autoheight:n.autoHeight},{rtl:s},{multirow:n.slidesPerColumn>1},{"multirow-column":n.slidesPerColumn>1&&"column"===n.slidesPerColumnFill},{android:o.android},{ios:o.ios},{"css-mode":n.cssMode}],t=n.containerModifierClass,r=[],e.forEach(function(e){"object"==typeof e?Object.keys(e).forEach(function(i){e[i]&&r.push(t+i)}):"string"==typeof e&&r.push(t+e)}),r);i.push.apply(i,u),a.addClass([].concat(i).join(" ")),this.emitContainerClasses()},removeClasses:function(){var e=this.$el,t=this.classNames;e.removeClass(t.join(" ")),this.emitContainerClasses()}},images:{loadImage:function(e,t,r,i,n,s){var l,u=(0,a.zk)();function c(){s&&s()}(0,o.A)(e).parent("picture")[0]||e.complete&&n?c():t?((l=new u.Image).onload=c,l.onerror=c,i&&(l.sizes=i),r&&(l.srcset=r),t&&(l.src=t)):c()},preloadImages:function(){var e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(var r=0;r<e.imagesToLoad.length;r+=1){var i=e.imagesToLoad[r];e.loadImage(i,i.currentSrc||i.getAttribute("src"),i.srcset||i.getAttribute("srcset"),i.sizes||i.getAttribute("sizes"),!0,t)}}}},E={},S=function(){function e(){for(var t,r,i,c,d,h,p,f,g,m,v,b,y,_,S,T,C,k,x,I=arguments.length,A=Array(I),P=0;P<I;P++)A[P]=arguments[P];if(1===A.length&&A[0].constructor&&"Object"===Object.prototype.toString.call(A[0]).slice(8,-1)?x=A[0]:(k=A[0],x=A[1]),x||(x={}),x=(0,l.X$)({},x),k&&!x.el&&(x.el=k),x.el&&(0,o.A)(x.el).length>1){var O=[];return(0,o.A)(x.el).each(function(t){var r=(0,l.X$)({},x,{el:t});O.push(new e(r))}),O}var N=this;N.__swiper__=!0,N.support=u(),t={userAgent:x.userAgent},n||(r=(void 0===t?{}:t).userAgent,i=u(),d=(c=(0,a.zk)()).navigator.platform,h=r||c.navigator.userAgent,p={ios:!1,android:!1},f=c.screen.width,g=c.screen.height,m=h.match(/(Android);?[\s\/]+([\d.]+)?/),v=h.match(/(iPad).*OS\s([\d_]+)/),b=h.match(/(iPod)(.*OS\s([\d_]+))?/),y=!v&&h.match(/(iPhone\sOS|iOS)\s([\d_]+)/),_="MacIntel"===d,!v&&_&&i.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(f+"x"+g)>=0&&((v=h.match(/(Version)\/([\d.]+)/))||(v=[0,1,"13_0_0"]),_=!1),m&&"Win32"!==d&&(p.os="android",p.android=!0),(v||y||b)&&(p.os="ios",p.ios=!0),n=p),N.device=n,s||(s={isEdge:!!(S=(0,a.zk)()).navigator.userAgent.match(/Edge/g),isSafari:(T=S.navigator.userAgent.toLowerCase()).indexOf("safari")>=0&&0>T.indexOf("chrome")&&0>T.indexOf("android"),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(S.navigator.userAgent)}),N.browser=s,N.eventsListeners={},N.eventsAnyListeners=[],void 0===N.modules&&(N.modules={}
249),Object.keys(N.modules).forEach(function(e){var t=N.modules[e];if(t.params){var r=Object.keys(t.params)[0],i=t.params[r];if("object"!=typeof i||null===i||(["navigation","pagination","scrollbar"].indexOf(r)>=0&&!0===x[r]&&(x[r]={auto:!0}),!(r in x&&"enabled"in i)))return;!0===x[r]&&(x[r]={enabled:!0}),"object"!=typeof x[r]||"enabled"in x[r]||(x[r].enabled=!0),x[r]||(x[r]={enabled:!1})}});var R=(0,l.X$)({},w);return N.useParams(R),N.params=(0,l.X$)({},R,E,x),N.originalParams=(0,l.X$)({},N.params),N.passedParams=(0,l.X$)({},x),N.params&&N.params.on&&Object.keys(N.params.on).forEach(function(e){N.on(e,N.params.on[e])}),N.params&&N.params.onAny&&N.onAny(N.params.onAny),N.$=o.A,(0,l.X$)(N,{enabled:N.params.enabled,el:k,classNames:[],slides:(0,o.A)(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===N.params.direction},isVertical:function(){return"vertical"===N.params.direction},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:N.params.allowSlideNext,allowSlidePrev:N.params.allowSlidePrev,touchEvents:(C=["mousedown","mousemove","mouseup"],N.support.pointerEvents&&(C=["pointerdown","pointermove","pointerup"]),N.touchEventsTouch={start:"touchstart",move:"touchmove",end:"touchend",cancel:"touchcancel"},N.touchEventsDesktop={start:C[0],move:C[1],end:C[2]},N.support.touch||!N.params.simulateTouch?N.touchEventsTouch:N.touchEventsDesktop),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:N.params.focusableElements,lastClickTime:(0,l.tB)(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:N.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),N.useModules(),N.emit("_swiper"),N.params.init&&N.init(),N}var t,r=e.prototype;return r.enable=function(){this.enabled||(this.enabled=!0,this.params.grabCursor&&this.setGrabCursor(),this.emit("enable"))},r.disable=function(){this.enabled&&(this.enabled=!1,this.params.grabCursor&&this.unsetGrabCursor(),this.emit("disable"))},r.setProgress=function(e,t){e=Math.min(Math.max(e,0),1);var r=this.minTranslate(),i=(this.maxTranslate()-r)*e+r;this.translateTo(i,void 0===t?0:t),this.updateActiveIndex(),this.updateSlidesClasses()},r.emitContainerClasses=function(){var e=this;if(e.params._emitClasses&&e.el){var t=e.el.className.split(" ").filter(function(t){return 0===t.indexOf("swiper-container")||0===t.indexOf(e.params.containerModifierClass)});e.emit("_containerClasses",t.join(" "))}},r.getSlideClasses=function(e){var t=this;return e.className.split(" ").filter(function(e){return 0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass)}).join(" ")},r.emitSlidesClasses=function(){var e=this;if(e.params._emitClasses&&e.el){var t=[];e.slides.each(function(r){var i=e.getSlideClasses(r);t.push({slideEl:r,classNames:i}),e.emit("_slideClass",r,i)}),e.emit("_slideClasses",t)}},r.slidesPerViewDynamic=function(){var e=this.params,t=this.slides,r=this.slidesGrid,i=this.size,n=this.activeIndex,s=1;if(e.centeredSlides){for(var a,o=t[n].swiperSlideSize,l=n+1;l<t.length;l+=1)t[l]&&!a&&(o+=t[l].swiperSlideSize,s+=1,o>i&&(a=!0));for(var u=n-1;u>=0;u-=1)t[u]&&!a&&(o+=t[u].swiperSlideSize,s+=1,o>i&&(a=!0))}else for(var c=n+1;c<t.length;c+=1)r[c]-r[n]<i&&(s+=1);return s},r.update=function(){var e=this;if(e&&!e.destroyed){var t=e.snapGrid,r=e.params;r.breakpoints&&e.setBreakpoint(),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.params.freeMode?(i(),e.params.autoHeight&&e.updateAutoHeight()):(("auto"===e.params.slidesPerView||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0))||i(),r.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}function i(){var t=Math.min(Math.max(e.rtlTranslate?-1*e.translate:e.translate,e.maxTranslate()),e.minTranslate());e.setTranslate(t),e.updateActiveIndex(),e.updateSlidesClasses()}},r.changeDirection=function(e,t){void 0===t&&(t=!0);var r=this.params.direction;return e||(e="horizontal"===r?"vertical":"horizontal"),e===r||"horizontal"!==e&&"vertical"!==e||(this.$el.removeClass(""+this.params.containerModifierClass+r).addClass(""+this.params.containerModifierClass+e),this.emitContainerClasses(),this.params.direction=e,this.slides.each(function(t){"vertical"===e?t.style.width="":t.style.height=""}
249),this.emit("changeDirection"),t&&this.update()),this},r.mount=function(e){var t=this;if(t.mounted)return!0;var r=(0,o.A)(e||t.params.el);if(!(e=r[0]))return!1;e.swiper=t;var i=function(){return"."+(t.params.wrapperClass||"").trim().split(" ").join(".")},n=function(){if(e&&e.shadowRoot&&e.shadowRoot.querySelector){var t=(0,o.A)(e.shadowRoot.querySelector(i()));return t.children=function(e){return r.children(e)},t}return r.children(i())}();if(0===n.length&&t.params.createElements){var s=(0,a.YE)().createElement("div");n=(0,o.A)(s),s.className=t.params.wrapperClass,r.append(s),r.children("."+t.params.slideClass).each(function(e){n.append(e)})}return(0,l.X$)(t,{$el:r,el:e,$wrapperEl:n,wrapperEl:n[0],mounted:!0,rtl:"rtl"===e.dir.toLowerCase()||"rtl"===r.css("direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===e.dir.toLowerCase()||"rtl"===r.css("direction")),wrongRTL:"-webkit-box"===n.css("display")}),!0},r.init=function(e){return this.initialized||!1===this.mount(e)||(this.emit("beforeInit"),this.params.breakpoints&&this.setBreakpoint(),this.addClasses(),this.params.loop&&this.loopCreate(),this.updateSize(),this.updateSlides(),this.params.watchOverflow&&this.checkOverflow(),this.params.grabCursor&&this.enabled&&this.setGrabCursor(),this.params.preloadImages&&this.preloadImages(),this.params.loop?this.slideTo(this.params.initialSlide+this.loopedSlides,0,this.params.runCallbacksOnInit,!1,!0):this.slideTo(this.params.initialSlide,0,this.params.runCallbacksOnInit,!1,!0),this.attachEvents(),this.initialized=!0,this.emit("init"),this.emit("afterInit")),this},r.destroy=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);var r=this,i=r.params,n=r.$el,s=r.$wrapperEl,a=r.slides;return void 0===r.params||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),i.loop&&r.loopDestroy(),t&&(r.removeClasses(),n.removeAttr("style"),s.removeAttr("style"),a&&a.length&&a.removeClass([i.slideVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(function(e){r.off(e)}),!1!==e&&(r.$el[0].swiper=null,(0,l.oR)(r)),r.destroyed=!0),null},e.extendDefaults=function(e){(0,l.X$)(E,e)},e.installModule=function(t){e.prototype.modules||(e.prototype.modules={});var r=t.name||Object.keys(e.prototype.modules).length+"_"+(0,l.tB)();e.prototype.modules[r]=t},e.use=function(t){return Array.isArray(t)?t.forEach(function(t){return e.installModule(t)}):e.installModule(t),e},t=[{key:"extendedDefaults",get:function(){return E}},{key:"defaults",get:function(){return w}}],function(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(e,t),e}();
249Object.keys(_).forEach(function(e){Object.keys(_[e]).forEach(function(t){S.prototype[t]=_[e][t]})}),S.use([{name:"resize",create:function(){var e=this;(0,l.X$)(e,{resize:{observer:null,createObserver:function(){e&&!e.destroyed&&e.initialized&&(e.resize.observer=new ResizeObserver(function(t){var r=e.width,i=e.height,n=r,s=i;t.forEach(function(t){var r=t.contentBoxSize,i=t.contentRect,a=t.target;a&&a!==e.el||(n=i?i.width:(r[0]||r).inlineSize,s=i?i.height:(r[0]||r).blockSize)}),(n!==r||s!==i)&&e.resize.resizeHandler()}),e.resize.observer.observe(e.el))},removeObserver:function(){e.resize.observer&&e.resize.observer.unobserve&&e.el&&(e.resize.observer.unobserve(e.el),e.resize.observer=null)},resizeHandler:function(){e&&!e.destroyed&&e.initialized&&(e.emit("beforeResize"),e.emit("resize"))},orientationChangeHandler:function(){e&&!e.destroyed&&e.initialized&&e.emit("orientationchange")}}})},on:{init:function(e){var t=(0,a.zk)();e.params.resizeObserver&&void 0!==(0,a.zk)().ResizeObserver?e.resize.createObserver():(t.addEventListener("resize",e.resize.resizeHandler),t.addEventListener("orientationchange",e.resize.orientationChangeHandler))},destroy:function(e){var t=(0,a.zk)();e.resize.removeObserver(),t.removeEventListener("resize",e.resize.resizeHandler),t.removeEventListener("orientationchange",e.resize.orientationChangeHandler)}}},{name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create:function(){(0,l.wD)(this,{observer:c({},d,{observers:[]})})},on:{init:function(e){e.observer.init()},destroy:function(e){e.observer.destroy()}}}]);let T=S},95654:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});let i=(e,t={})=>{try{if(window.__trackingStateDenied)return!1;window.dataLayer||(window.dataLayer=[]),console.debug(`GA :: ${e} :: ${JSON.stringify(t)}`),window.dataLayer.push({event:e,...t})}catch(e){console.error(e)}}},95669:(e,t,r)=>{e.exports=r(93731)},97688:(e,t,r)=>{"use strict";let i;r.d(t,{t:()=>c});var n=r(55729),s=r(60400);let a=r(27133).useSyncExternalStore,o=n.createContext((i=!1,{clearReset:()=>{i=!1},reset:()=>{i=!0},isReset:()=>i}));var l=r(93258);let u=n.createContext(!1);function c(e,t){let r=(0,l.jE)({context:e.context}),i=n.useContext(u),c=n.useContext(o),d=r.defaultQueryOptions(e);d._optimisticResults=i?"isRestoring":"optimistic",d.onError&&(d.onError=s.j.batchCalls(d.onError)),d.onSuccess&&(d.onSuccess=s.j.batchCalls(d.onSuccess)),d.onSettled&&(d.onSettled=s.j.batchCalls(d.onSettled)),d.suspense&&"number"!=typeof d.staleTime&&(d.staleTime=1e3),(d.suspense||d.useErrorBoundary)&&!c.isReset()&&(d.retryOnMount=!1),n.useEffect(()=>{c.clearReset()},[c]);let[h]=n.useState(()=>new t(r,d)),p=h.getOptimisticResult(d);if(a(n.useCallback(e=>{let t=i?()=>void 0:h.subscribe(s.j.batchCalls(e));return h.updateResult(),t},[h,i]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),n.useEffect(()=>{h.setOptions(d,{listeners:!1})},[d,h]),(null==d?void 0:d.suspense)&&p.isLoading&&p.isFetching&&!i)throw h.fetchOptimistic(d).then(({data:e})=>{null==d.onSuccess||d.onSuccess(e),null==d.onSettled||d.onSettled(e,null)}
249).catch(e=>{c.clearReset(),null==d.onError||d.onError(e),null==d.onSettled||d.onSettled(void 0,e)});if((({result:e,errorResetBoundary:t,useErrorBoundary:r,query:i})=>{var n;return e.isError&&!t.isReset()&&!e.isFetching&&(n=[e.error,i],"function"==typeof r?r(...n):!!r)})({result:p,errorResetBoundary:c,useErrorBoundary:d.useErrorBoundary,query:h.getCurrentQuery()}))throw p.error;return d.notifyOnChangeProps?p:h.trackResult(p)}u.Provider}},e=>{var t=t=>e(e.s=t);e.O(0,[46593,38792],()=>(t(13155),t(54826))),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.