1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["chunk-eJg5ixAe.js","asset-index-oNXnMkFG.css","chunk-CkB-CVLz.js","asset-index-CwtI9Lt5.css","chunk-D01YEjsQ.js","chunk-CD6H4EQ4.js","chunk-DhfTNHpM.js","chunk-Cb9UXlGX.js"])))=>i.map(i=>d[i]); 2/*! 3 * Copyright (c) 2026 4 * Build date (UTC+02:00): 2026/9/30 17:3:40 5 */ 6var be=Object.defineProperty;var ve=(r,e,n)=>e in r?be(r,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[e]=n;var S=(r,e,n)=>ve(r,typeof e!="symbol"?e+"":e,n);function __vite_legacy_guard(){import.meta.url,import("_").catch(()=>1),(async function*(){})().next()}function _mergeNamespaces(r,e){for(var n=0;n<e.length;n++){const o=e[n];if(typeof o!="string"&&!Array.isArray(o)){for(const s in o)if(s!=="default"&&!(s in r)){const a=Object.getOwnPropertyDescriptor(o,s);a&&Object.defineProperty(r,s,a.get?a:{enumerable:!0,get:()=>o[s]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}class Context{constructor({isDev:e,isMobile:n,platform:o,compatibilityMode:s,staticMode:a,xmasTheme:c,gdpr:l,rtl:u,ra:d,isLoggedIn:f,locale:p}){S(this,"isDev");S(this,"isMobile");S(this,"platform");S(this,"compatibilityMode");S(this,"staticMode");S(this,"xmasTheme");S(this,"gdpr");S(this,"rtl");S(this,"locale");S(this,"ra");S(this,"isLoggedIn");this.isDev=e,this.isMobile=n,this.platform=o,this.compatibilityMode=s,this.staticMode=a,this.xmasTheme=c,this.gdpr=l,this.rtl=u,this.ra=d,this.isLoggedIn=f,this.locale=p}}const scriptRel="modulepreload",assetsURL=function(r){return"/dist/page/"+r},seen={},__vitePreload=function(e,n,o){let s=Promise.resolve();if(n&&n.length>0){let u=function(d){return Promise.all(d.map(f=>Promise.resolve(f).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),l=(c==null?void 0:c.nonce)||(c==null?void 0:c.getAttribute("nonce"));s=u(n.map(d=>{if(d=assetsURL(d),d in seen)return;seen[d]=!0;const f=d.endsWith(".css"),p=f?'[rel="stylesheet"]':"";if(document.querySelector('link[href="'.concat(d,'"]').concat(p)))return;const b=document.createElement("link");if(b.rel=f?"stylesheet":scriptRel,f||(b.as="script"),b.crossOrigin="",b.href=d,l&&b.setAttribute("nonce",l),document.head.appendChild(b),f)return new Promise((m,C)=>{b.addEventListener("load",m),b.addEventListener("error",()=>C(new Error("Unable to preload CSS for ".concat(d))))})}))}function a(c){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=c,window.dispatchEvent(l),!l.defaultPrevented)throw c}return s.then(c=>{for(const l of c||[])l.status==="rejected"&&a(l.reason);return e().catch(a)})};class Extension{constructor(e){S(this,"page");this.page=e}}class XmasExtension extends Extension{async init(){if(window.location.hash==="#effect-snow"){await this.initSnow();return}if(!this.page.context.xmasTheme||this.page.context.compatibilityMode)return;const e=new Date,n=e.getFullYear();if(e>=new Date(n+"-12-22T00:00:00Z")&&e<new Date(n+1+"-01-01T23:59:59Z")){await this.initSnow();return}}async initSnow(){const{FallingSnowEffect:e}=await __vitePreload(async()=>{const{FallingSnowEffect:n}=await import("./chunk-CSEliZHz.js");return{FallingSnowEffect:n}},[]);new e}}class VideosExtension extends Extension{async init(){document.querySelectorAll("section.bg-html5-video").forEach(e=>{e.querySelectorAll(".background-wrapper .background video").forEach(o=>{o.load(),o.addEventListener("canplay",()=>{o.classList.remove("loading")})})})}}class LazyLoadExtension extends Extension{constructor(){super(...arguments);S(this,"observersInterrupt",new Map)}
6async init(){document.querySelectorAll("[data-loading-targets]:not([data-lazy-load-src]):not([data-lazy-load-srcset])").forEach(n=>{LazyLoadExtension.attachLoadingTarget(n)}),document.querySelectorAll("[data-lazy-load-src], [data-lazy-load-srcset]").forEach(n=>{if(n.dataset.lazyLoadAttached)return;const o=[];typeof n.dataset.lazyLoadSrc<"u"&&o.push("src"),typeof n.dataset.lazyLoadSrcset<"u"&&o.push("srcset");const s=n.closest("section");if(s===null)throw new Error("Cannot find the closest section");this.observeElement(s,()=>{for(const a of o)n.setAttribute(a,n.dataset[a]),n.removeAttribute("data-".concat(a));setTimeout(()=>{LazyLoadExtension.attachLoadingTarget(n)},10)},n),n.setAttribute("data-lazy-load-attached","")})}observeElement(n,o,s){const a=new IntersectionObserver((c=>{(c[0].isIntersecting?c[0].isIntersecting:c[0].intersectionRatio>0)&&(o(),a.disconnect(),n.dataset.lazyLoadDone="true")}),{rootMargin:"400px 0px 400px 0px",threshold:0});a.observe(n),typeof s<"u"&&(s.id||(s.id="lazy-loaded-element-".concat(Math.random().toString(16).substr(2))),this.observersInterrupt.set(s.id,()=>{o(),a.disconnect(),n.dataset.lazyLoadDone="true"}))}static attachLoadingTarget(n){if(n instanceof HTMLImageElement&&n.dataset.loadingTargets){const o=document.querySelectorAll(n.dataset.loadingTargets);if(o.length>0){const s=()=>{for(const a of Array.from(o))a.classList.remove("loading")};n.complete?s():n.addEventListener("load",()=>{s()})}}}}var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function getAugmentedNamespace(r){if(Object.prototype.hasOwnProperty.call(r,"__esModule"))return r;var e=r.default;if(typeof e=="function"){var n=function o(){var s=!1;try{s=this instanceof o}catch(a){}return s?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(r).forEach(function(o){var s=Object.getOwnPropertyDescriptor(r,o);Object.defineProperty(n,o,s.get?s:{enumerable:!0,get:function(){return r[o]}})}),n}var liteready,hasRequiredLiteready;function requireLiteready(){return hasRequiredLiteready||(hasRequiredLiteready=1,liteready=function(r){document.readyState==="complete"||document.readyState==="interactive"?r.call():document.attachEvent?document.attachEvent("onreadystatechange",function(){document.readyState==="interactive"&&r.call()}):document.addEventListener&&document.addEventListener("DOMContentLoaded",r)}),liteready}var litereadyExports=requireLiteready();const domReady=getDefaultExportFromCjs(litereadyExports);var window_1,hasRequiredWindow;function requireWindow(){if(hasRequiredWindow)return window_1;hasRequiredWindow=1;var r;return typeof window<"u"?r=window:typeof commonjsGlobal<"u"?r=commonjsGlobal:typeof self<"u"?r=self:r={},window_1=r,window_1}var windowExports=requireWindow();const global$1=getDefaultExportFromCjs(windowExports),{navigator:navigator$1}=windowExports.window,isIE=-1<navigator$1.userAgent.indexOf("MSIE ")||-1<navigator$1.userAgent.indexOf("Trident/")||-1<navigator$1.userAgent.indexOf("Edge/"),isMobile=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator$1.userAgent),supportTransform=(()=>{const r="transform WebkitTransform MozTransform".split(" "),e=document.createElement("div");for(let n=0;n<r.length;n+=1)if(e&&e.style[r[n]]!==void 0)return r[n];return!1})();let $deviceHelper;function getDeviceHeight(){return!$deviceHelper&&document.body&&($deviceHelper=document.createElement("div"),$deviceHelper.style.cssText="position: fixed; top: -9999px; left: 0; height: 100vh; width: 0;",document.body.appendChild($deviceHelper)),($deviceHelper?$deviceHelper.clientHeight:0)||windowExports.window.innerHeight||document.documentElement.clientHeight}let wndH;function updateWndVars(){isMobile?wndH=getDeviceHeight():wndH=windowExports.window.innerHeight||document.documentElement.clientHeight}updateWndVars();windowExports.window.addEventListener("resize",updateWndVars);windowExports.window.addEventListener("orientationchange",updateWndVars);windowExports.window.addEventListener("load",updateWndVars);domReady(()=>{updateWndVars()});const jarallaxList=[];function getParents(r){const e=[];for(;r.parentElement!==null;)r=r.parentElement,r.nodeType===1&&e.push(r);return e}function updateParallax(){jarallaxList.length&&(jarallaxList.forEach((r,e)=>{const{instance:n,oldData:o}=r,s=n.$item.getBoundingClientRect(),a={width:s.width,height:s.height,top:s.top,bottom:s.bottom,wndW:windowExports.window.innerWidth,wndH},c=!o||o.wndW!==a.wndW||o.wndH!==a.wndH||o.width!==a.width||o.height!==a.height,l=c||!o||o.top!==a.top||o.bottom!==a.bottom;jarallaxList[e].oldData=a,c&&n.onResize(),l&&n.onScroll()}),windowExports.window.requestAnimationFrame(updateParallax))}let instanceID=0;class Jarallax{constructor(e,n){const o=this;o.instanceID=instanceID,instanceID+=1,o.$item=e,o.defaults={type:"scroll",speed:.5,imgSrc:null,imgElement:".jarallax-img",imgSize:"cover",imgPosition:"50% 50%",imgRepeat:"no-repeat",keepImg:!1,elementInViewport:null,zIndex:-100,disableParallax:!1,disableVideo:!1,videoSrc:null,videoStartTime:0,videoEndTime:0,videoVolume:0,videoLoop:!0,videoPlayOnlyVisible:!0,videoLazyLoading:!0,onScroll:null,onInit:null,onDestroy:null,onCoverImage:null};const s=o.$item.dataset||{},a={};
6if(Object.keys(s).forEach(l=>{const u=l.substr(0,1).toLowerCase()+l.substr(1);u&&typeof o.defaults[u]<"u"&&(a[u]=s[l])}),o.options=o.extend({},o.defaults,a,n),o.pureOptions=o.extend({},o.options),Object.keys(o.options).forEach(l=>{o.options[l]==="true"?o.options[l]=!0:o.options[l]==="false"&&(o.options[l]=!1)}),o.options.speed=Math.min(2,Math.max(-1,parseFloat(o.options.speed))),typeof o.options.disableParallax=="string"&&(o.options.disableParallax=new RegExp(o.options.disableParallax)),o.options.disableParallax instanceof RegExp){const l=o.options.disableParallax;o.options.disableParallax=()=>l.test(navigator$1.userAgent)}if(typeof o.options.disableParallax!="function"&&(o.options.disableParallax=()=>!1),typeof o.options.disableVideo=="string"&&(o.options.disableVideo=new RegExp(o.options.disableVideo)),o.options.disableVideo instanceof RegExp){const l=o.options.disableVideo;o.options.disableVideo=()=>l.test(navigator$1.userAgent)}typeof o.options.disableVideo!="function"&&(o.options.disableVideo=()=>!1);let c=o.options.elementInViewport;c&&typeof c=="object"&&typeof c.length<"u"&&([c]=c),c instanceof Element||(c=null),o.options.elementInViewport=c,o.image={src:o.options.imgSrc||null,$container:null,useImgTag:!1,position:"fixed"},o.initImg()&&o.canInitParallax()&&o.init()}css(e,n){return typeof n=="string"?windowExports.window.getComputedStyle(e).getPropertyValue(n):(n.transform&&supportTransform&&(n[supportTransform]=n.transform),Object.keys(n).forEach(o=>{e.style[o]=n[o]}),e)}extend(e,...n){return e=e||{},Object.keys(n).forEach(o=>{n[o]&&Object.keys(n[o]).forEach(s=>{e[s]=n[o][s]})}),e}getWindowData(){return{width:windowExports.window.innerWidth||document.documentElement.clientWidth,height:wndH,y:document.documentElement.scrollTop}}initImg(){const e=this;let n=e.options.imgElement;return n&&typeof n=="string"&&(n=e.$item.querySelector(n)),n instanceof Element||(e.options.imgSrc?(n=new Image,n.src=e.options.imgSrc):n=null),n&&(e.options.keepImg?e.image.$item=n.cloneNode(!0):(e.image.$item=n,e.image.$itemParent=n.parentNode),e.image.useImgTag=!0),e.image.$item?!0:(e.image.src===null&&(e.image.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",e.image.bgImage=e.css(e.$item,"background-image")),!(!e.image.bgImage||e.image.bgImage==="none"))}canInitParallax(){return supportTransform&&!this.options.disableParallax()}init(){const e=this,n={position:"absolute",top:0,left:0,width:"100%",height:"100%",overflow:"hidden"};let o={pointerEvents:"none",transformStyle:"preserve-3d",backfaceVisibility:"hidden",willChange:"transform,opacity"};if(!e.options.keepImg){const s=e.$item.getAttribute("style");if(s&&e.$item.setAttribute("data-jarallax-original-styles",s),e.image.useImgTag){const a=e.image.$item.getAttribute("style");a&&e.image.$item.setAttribute("data-jarallax-original-styles",a)}}if(e.css(e.$item,"position")==="static"&&e.css(e.$item,{position:"relative"}),e.css(e.$item,"z-index")==="auto"&&e.css(e.$item,{zIndex:0}),e.image.$container=document.createElement("div"),e.css(e.image.$container,n),e.css(e.image.$container,{"z-index":e.options.zIndex}),isIE&&e.css(e.image.$container,{opacity:.9999}),e.image.$container.setAttribute("id","jarallax-container-".concat(e.instanceID)),e.$item.appendChild(e.image.$container),e.image.useImgTag?o=e.extend({"object-fit":e.options.imgSize,"object-position":e.options.imgPosition,"font-family":"object-fit: ".concat(e.options.imgSize,"; object-position: ").concat(e.options.imgPosition,";"),"max-width":"none"},n,o):(e.image.$item=document.createElement("div"),e.image.src&&(o=e.extend({"background-position":e.options.imgPosition,"background-size":e.options.imgSize,"background-repeat":e.options.imgRepeat,"background-image":e.image.bgImage||'url("'.concat(e.image.src,'")')},n,o))),(e.options.type==="opacity"||e.options.type==="scale"||e.options.type==="scale-opacity"||e.options.speed===1)&&(e.image.position="absolute"),e.image.position==="fixed"){const s=getParents(e.$item).filter(a=>{const c=windowExports.window.getComputedStyle(a),l=c["-webkit-transform"]||c["-moz-transform"]||c.transform;return l&&l!=="none"||/(auto|scroll)/.test(c.overflow+c["overflow-y"]+c["overflow-x"])});e.image.position=s.length?"absolute":"fixed"}o.position=e.image.position,e.css(e.image.$item,o),e.image.$container.appendChild(e.image.$item),e.onResize(),e.onScroll(!0),e.o
6ptions.onInit&&e.options.onInit.call(e),e.css(e.$item,"background-image")!=="none"&&e.css(e.$item,{"background-image":"none"}),e.addToParallaxList()}addToParallaxList(){jarallaxList.push({instance:this}),jarallaxList.length===1&&windowExports.window.requestAnimationFrame(updateParallax)}removeFromParallaxList(){const e=this;jarallaxList.forEach((n,o)=>{n.instance.instanceID===e.instanceID&&jarallaxList.splice(o,1)})}destroy(){const e=this;e.removeFromParallaxList();const n=e.$item.getAttribute("data-jarallax-original-styles");if(e.$item.removeAttribute("data-jarallax-original-styles"),n?e.$item.setAttribute("style",n):e.$item.removeAttribute("style"),e.image.useImgTag){const o=e.image.$item.getAttribute("data-jarallax-original-styles");e.image.$item.removeAttribute("data-jarallax-original-styles"),o?e.image.$item.setAttribute("style",n):e.image.$item.removeAttribute("style"),e.image.$itemParent&&e.image.$itemParent.appendChild(e.image.$item)}e.$clipStyles&&e.$clipStyles.parentNode.removeChild(e.$clipStyles),e.image.$container&&e.image.$container.parentNode.removeChild(e.image.$container),e.options.onDestroy&&e.options.onDestroy.call(e),delete e.$item.jarallax}clipContainer(){if(this.image.position!=="fixed")return;const e=this,n=e.image.$container.getBoundingClientRect(),{width:o,height:s}=n;e.$clipStyles||(e.$clipStyles=document.createElement("style"),e.$clipStyles.setAttribute("type","text/css"),e.$clipStyles.setAttribute("id","jarallax-clip-".concat(e.instanceID)),(document.head||document.getElementsByTagName("head")[0]).appendChild(e.$clipStyles));const a="#jarallax-container-".concat(e.instanceID," {\n clip: rect(0 ").concat(o,"px ").concat(s,"px 0);\n clip: rect(0, ").concat(o,"px, ").concat(s,"px, 0);\n -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);\n clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);\n }");e.$clipStyles.styleSheet?e.$clipStyles.styleSheet.cssText=a:e.$clipStyles.innerHTML=a}coverImage(){const e=this,n=e.image.$container.getBoundingClientRect(),o=n.height,{speed:s}=e.options,a=e.options.type==="scroll"||e.options.type==="scroll-opacity";let c=0,l=o,u=0;return a&&(0>s?(c=s*Math.max(o,wndH),wndH<o&&(c-=s*(o-wndH))):c=s*(o+wndH),1<s?l=Math.abs(c-wndH):0>s?l=c/s+Math.abs(c):l+=(wndH-o)*(1-s),c/=2),e.parallaxScrollDistance=c,a?u=(wndH-l)/2:u=(o-l)/2,e.css(e.image.$item,{height:"".concat(l,"px"),marginTop:"".concat(u,"px"),left:e.image.position==="fixed"?"".concat(n.left,"px"):"0",width:"".concat(n.width,"px")}),e.options.onCoverImage&&e.options.onCoverImage.call(e),{image:{height:l,marginTop:u},container:n}}isVisible(){return this.isElementInViewport||!1}onScroll(e){const n=this,o=n.$item.getBoundingClientRect(),s=o.top,a=o.height,c={};let l=o;if(n.options.elementInViewport&&(l=n.options.elementInViewport.getBoundingClientRect()),n.isElementInViewport=0<=l.bottom&&0<=l.right&&l.top<=wndH&&l.left<=windowExports.window.innerWidth,!e&&!n.isElementInViewport)return;const u=Math.max(0,s),d=Math.max(0,a+s),f=Math.max(0,-s),p=Math.max(0,s+a-wndH),b=Math.max(0,a-(s+a-wndH)),m=Math.max(0,-s+wndH-a),C=1-2*((wndH-s)/(wndH+a));let O=1;if(a<wndH?O=1-(f||p)/a:d<=wndH?O=d/wndH:b<=wndH&&(O=b/wndH),(n.options.type==="opacity"||n.options.type==="scale-opacity"||n.options.type==="scroll-opacity")&&(c.transform="translate3d(0,0,0)",c.opacity=O),n.options.type==="scale"||n.options.type==="scale-opacity"){let I=1;0>n.options.speed?I-=n.options.speed*O:I+=n.options.speed*(1-O),c.transform="scale(".concat(I,") translate3d(0,0,0)")}if(n.options.type==="scroll"||n.options.type==="scroll-opacity"){let I=n.parallaxScrollDistance*C;n.image.position==="absolute"&&(I-=s),c.transform="translate3d(0,".concat(I,"px,0)")}n.css(n.image.$item,c),n.options.onScroll&&n.options.onScroll.call(n,{section:o,beforeTop:u,beforeTopEnd:d,afterTop:f,beforeBottom:p,beforeBottomEnd:b,afterBottom:m,visiblePercent:O,fromViewportCenter:C})}onResize(){this.coverImage(),this.clipContainer()}}const plugin=function(r,e,...n){(typeof HTMLElement=="object"?r instanceof HTMLElement:r&&typeof r=="object"&&r!==null&&r.nodeType===1&&typeof r.nodeName=="string")&&(r=[r]);const o=r.length;let s=0,a;for(s;s<o;s+=1)if(typeof e=="object"||typeof e>"u"?r[s].jarallax||(r[s].jarallax=new Jarallax(r[s],e)):r[s].jarallax&&(a=r[s].jarallax[e].apply(r[s].jarallax,n)
6),typeof a<"u")return a;return r};plugin.constructor=Jarallax;const jarallax_esm=Object.freeze(Object.defineProperty({__proto__:null,default:plugin},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(jarallax_esm);function Deferred(){this.doneCallbacks=[],this.failCallbacks=[]}Deferred.prototype={execute(r,e){let n=r.length;for(e=Array.prototype.slice.call(e);n;)n-=1,r[n].apply(null,e)},resolve(...r){this.execute(this.doneCallbacks,r)},reject(...r){this.execute(this.failCallbacks,r)},done(r){this.doneCallbacks.push(r)},fail(r){this.failCallbacks.push(r)}};let ID=0,YoutubeAPIadded=0,VimeoAPIadded=0,loadingYoutubePlayer=0,loadingVimeoPlayer=0;const loadingYoutubeDefer=new Deferred,loadingVimeoDefer=new Deferred;class VideoWorker{constructor(e,n){const o=this;o.url=e,o.options_default={autoplay:!1,loop:!1,mute:!1,volume:100,showControls:!0,accessibilityHidden:!1,startTime:0,endTime:0},o.options=o.extend({},o.options_default,n),typeof o.options.showContols<"u"&&(o.options.showControls=o.options.showContols,delete o.options.showContols),o.videoID=o.parseURL(e),o.videoID&&(o.ID=ID,ID+=1,o.loadAPI(),o.init())}extend(...e){const n=e[0]||{};return Object.keys(e).forEach(o=>{e[o]&&Object.keys(e[o]).forEach(s=>{n[s]=e[o][s]})}),n}parseURL(e){function n(u){const d=/.*(?:youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=)([^#\&\?]*).*/,f=u.match(d);return f&&f[1].length===11?f[1]:!1}function o(u){const d=/https?:\/\/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|video\/|)(\d+)(?:$|\/|\?)/,f=u.match(d);return f&&f[3]?f[3]:!1}function s(u){const d=u.split(/,(?=mp4\:|webm\:|ogv\:|ogg\:)/),f={};let p=0;return d.forEach(b=>{const m=b.match(/^(mp4|webm|ogv|ogg)\:(.*)/);m&&m[1]&&m[2]&&(f[m[1]==="ogv"?"ogg":m[1]]=m[2],p=1)}),p?f:!1}const a=n(e),c=o(e),l=s(e);return a?(this.type="youtube",a):c?(this.type="vimeo",c):l?(this.type="local",l):!1}isValid(){return!!this.videoID}on(e,n){this.userEventsList=this.userEventsList||[],(this.userEventsList[e]||(this.userEventsList[e]=[])).push(n)}off(e,n){!this.userEventsList||!this.userEventsList[e]||(n?this.userEventsList[e].forEach((o,s)=>{o===n&&(this.userEventsList[e][s]=!1)}):delete this.userEventsList[e])}fire(e,...n){this.userEventsList&&typeof this.userEventsList[e]<"u"&&this.userEventsList[e].forEach(o=>{o&&o.apply(this,n)})}play(e){const n=this;n.player&&(n.type==="youtube"&&n.player.playVideo&&(typeof e<"u"&&n.player.seekTo(e||0),global$1.YT.PlayerState.PLAYING!==n.player.getPlayerState()&&n.player.playVideo()),n.type==="vimeo"&&(typeof e<"u"&&n.player.setCurrentTime(e),n.player.getPaused().then(o=>{o&&n.player.play()})),n.type==="local"&&(typeof e<"u"&&(n.player.currentTime=e),n.player.paused&&n.player.play()))}pause(){const e=this;e.player&&(e.type==="youtube"&&e.player.pauseVideo&&global$1.YT.PlayerState.PLAYING===e.player.getPlayerState()&&e.player.pauseVideo(),e.type==="vimeo"&&e.player.getPaused().then(n=>{n||e.player.pause()}),e.type==="local"&&(e.player.paused||e.player.pause()))}mute(){const e=this;e.player&&(e.type==="youtube"&&e.player.mute&&e.player.mute(),e.type==="vimeo"&&e.player.setVolume&&e.player.setVolume(0),e.type==="local"&&(e.$video.muted=!0))}unmute(){const e=this;e.player&&(e.type==="youtube"&&e.player.mute&&e.player.unMute(),e.type==="vimeo"&&e.player.setVolume&&e.player.setVolume(e.options.volume),e.type==="local"&&(e.$video.muted=!1))}setVolume(e=!1){const n=this;!n.player||!e||(n.type==="youtube"&&n.player.setVolume&&n.player.setVolume(e),n.type==="vimeo"&&n.player.setVolume&&n.player.setVolume(e),n.type==="local"&&(n.$video.volume=e/100))}getVolume(e){const n=this;if(!n.player){e(!1);return}n.type==="youtube"&&n.player.getVolume&&e(n.player.getVolume()),n.type==="vimeo"&&n.player.getVolume&&n.player.getVolume().then(o=>{e(o)}),n.type==="local"&&e(n.$video.volume*100)}getMuted(e){const n=this;if(!n.player){e(null);return}n.type==="youtube"&&n.player.isMuted&&e(n.player.isMuted()),n.type==="vimeo"&&n.player.getVolume&&n.player.getVolume().then(o=>{e(!!o)}),n.type==="local"&&e(n.$video.muted)}getImageURL(e){const n=this;if(n.videoImage){e(n.videoImage);return}if(n.type==="youtube"){const o=["maxresdefault","sddefault","hqdefault","0"];let s=0;const a=new Image;
6a.onload=function(){(this.naturalWidth||this.width)!==120||s===o.length-1?(n.videoImage="https://img.youtube.com/vi/".concat(n.videoID,"/").concat(o[s],".jpg"),e(n.videoImage)):(s+=1,this.src="https://img.youtube.com/vi/".concat(n.videoID,"/").concat(o[s],".jpg"))},a.src="https://img.youtube.com/vi/".concat(n.videoID,"/").concat(o[s],".jpg")}if(n.type==="vimeo"){let o=new XMLHttpRequest;o.open("GET","https://vimeo.com/api/v2/video/".concat(n.videoID,".json"),!0),o.onreadystatechange=function(){if(this.readyState===4&&200<=this.status&&400>this.status){const s=JSON.parse(this.responseText);n.videoImage=s[0].thumbnail_large,e(n.videoImage)}},o.send(),o=null}}getIframe(e){this.getVideo(e)}getVideo(e){const n=this;if(n.$video){e(n.$video);return}n.onAPIready(()=>{let o;if(n.$video||(o=document.createElement("div"),o.style.display="none"),n.type==="youtube"){n.playerOptions={host:"https://www.youtube-nocookie.com",videoId:n.videoID,playerVars:{autohide:1,rel:0,autoplay:0,playsinline:1}},n.options.showControls||(n.playerOptions.playerVars.iv_load_policy=3,n.playerOptions.playerVars.modestbranding=1,n.playerOptions.playerVars.controls=0,n.playerOptions.playerVars.showinfo=0,n.playerOptions.playerVars.disablekb=1);let a,c;n.playerOptions.events={onReady(u){n.options.mute?u.target.mute():n.options.volume&&u.target.setVolume(n.options.volume),n.options.autoplay&&n.play(n.options.startTime),n.fire("ready",u),n.options.loop&&!n.options.endTime&&(n.options.endTime=n.player.getDuration()-.1),setInterval(()=>{n.getVolume(d=>{n.options.volume!==d&&(n.options.volume=d,n.fire("volumechange",u))})},150)},onStateChange(u){n.options.loop&&u.data===global$1.YT.PlayerState.ENDED&&n.play(n.options.startTime),!a&&u.data===global$1.YT.PlayerState.PLAYING&&(a=1,n.fire("started",u)),u.data===global$1.YT.PlayerState.PLAYING&&n.fire("play",u),u.data===global$1.YT.PlayerState.PAUSED&&n.fire("pause",u),u.data===global$1.YT.PlayerState.ENDED&&n.fire("ended",u),u.data===global$1.YT.PlayerState.PLAYING?c=setInterval(()=>{n.fire("timeupdate",u),n.options.endTime&&n.player.getCurrentTime()>=n.options.endTime&&(n.options.loop?n.play(n.options.startTime):n.pause())},150):clearInterval(c)},onError(u){n.fire("error",u)}};const l=!n.$video;if(l){const u=document.createElement("div");u.setAttribute("id",n.playerID),o.appendChild(u),document.body.appendChild(o)}n.player=n.player||new global$1.YT.Player(n.playerID,n.playerOptions),l&&(n.$video=document.getElementById(n.playerID),n.options.accessibilityHidden&&(n.$video.setAttribute("tabindex","-1"),n.$video.setAttribute("aria-hidden","true")),n.videoWidth=parseInt(n.$video.getAttribute("width"),10)||1280,n.videoHeight=parseInt(n.$video.getAttribute("height"),10)||720)}if(n.type==="vimeo"){if(n.playerOptions={dnt:1,id:n.videoID,autopause:0,transparent:0,autoplay:n.options.autoplay?1:0,loop:n.options.loop?1:0,muted:n.options.mute?1:0},n.options.volume&&(n.playerOptions.volume=n.options.volume),n.options.showControls||(n.playerOptions.badge=0,n.playerOptions.byline=0,n.playerOptions.portrait=0,n.playerOptions.title=0,n.playerOptions.background=1),!n.$video){let c="";Object.keys(n.playerOptions).forEach(l=>{c!==""&&(c+="&"),c+="".concat(l,"=").concat(encodeURIComponent(n.playerOptions[l]))}),n.$video=document.createElement("iframe"),n.$video.setAttribute("id",n.playerID),n.$video.setAttribute("src","https://player.vimeo.com/video/".concat(n.videoID,"?").concat(c)),n.$video.setAttribute("frameborder","0"),n.$video.setAttribute("mozallowfullscreen",""),n.$video.setAttribute("allowfullscreen",""),n.$video.setAttribute("title","Vimeo video player"),n.options.accessibilityHidden&&(n.$video.setAttribute("tabindex","-1"),n.$video.setAttribute("aria-hidden","true")),o.appendChild(n.$video),document.body.appendChild(o)}n.player=n.player||new global$1.Vimeo.Player(n.$video,n.playerOptions),n.options.startTime&&n.options.autoplay&&n.player.setCurrentTime(n.options.startTime),n.player.getVideoWidth().then(c=>{n.videoWidth=c||1280}),n.player.getVideoHeight().then(c=>{n.videoHeight=c||720});let a;n.player.on("timeupdate",c=>{a||(n.fire("started",c),a=1),n.fire("timeupdate",c),n.options.endTime&&n.options.endTime&&c.seconds>=n.options.endTime&&(n.options.loop?n.play(n.options.startTime):n.pause())}),n.player.on("play",c=>{n.fire("play",c),n.options.startTime&&c.seconds===0&&n.play(n.options.startTime)}),n.player.on("pause",c=>{n.fire("pause",c)}),n.player.on("ended",c=>{n.fire("ended",c)}),n.player.on("loaded",c=>{n.fire("ready",c)}),n.player.on("volumechange",c=>{n.fire("volumechange",c)}),n.player.on("error",c=>{n.fire("error",c)})}function s(a,c,l){const u=document.createElement("source");u.src=c,u.type=l,a.appendChild(u)}if(n.type==="local"){n.$video||(n.$video=document.createElement("video"),n.options.showControls&&(n.$video.controls=!0),n.options.mute?n.$video.muted=!0:n.$video.volume&&(n.$video.volume=n.options.volume/100),n.options.loop&&(n.$video.loop=!0),n.$video.setAttribute("playsinline",""),n.$video.setAttribute("webkit-playsinline",""),n.options.accessibilityHidden&&(n.$video.setAttribute("tabindex","-1"),n.$video.setAttribute("aria-hidden","true")),n.$video.setAttribute("id",n.playerID),o.appendChild(n.$video),document.body.appendChild(o),Object.keys(n.videoID).forEac
6h(c=>{s(n.$video,n.videoID[c],"video/".concat(c))})),n.player=n.player||n.$video;let a;n.player.addEventListener("playing",c=>{a||n.fire("started",c),a=1}),n.player.addEventListener("timeupdate",function(c){n.fire("timeupdate",c),n.options.endTime&&n.options.endTime&&this.currentTime>=n.options.endTime&&(n.options.loop?n.play(n.options.startTime):n.pause())}),n.player.addEventListener("play",c=>{n.fire("play",c)}),n.player.addEventListener("pause",c=>{n.fire("pause",c)}),n.player.addEventListener("ended",c=>{n.fire("ended",c)}),n.player.addEventListener("loadedmetadata",function(){n.videoWidth=this.videoWidth||1280,n.videoHeight=this.videoHeight||720,n.fire("ready"),n.options.autoplay&&n.play(n.options.startTime)}),n.player.addEventListener("volumechange",c=>{n.getVolume(l=>{n.options.volume=l}),n.fire("volumechange",c)}),n.player.addEventListener("error",c=>{n.fire("error",c)})}e(n.$video)})}init(){const e=this;e.playerID="VideoWorker-".concat(e.ID)}loadAPI(){const e=this;if(YoutubeAPIadded&&VimeoAPIadded)return;let n="";if(e.type==="youtube"&&!YoutubeAPIadded&&(YoutubeAPIadded=1,n="https://www.youtube.com/iframe_api"),e.type==="vimeo"&&!VimeoAPIadded){if(VimeoAPIadded=1,typeof global$1.Vimeo<"u")return;n="https://player.vimeo.com/api/player.js"}if(!n)return;let o=document.createElement("script"),s=document.getElementsByTagName("head")[0];o.src=n,s.appendChild(o),s=null,o=null}onAPIready(e){const n=this;if(n.type==="youtube"&&((typeof global$1.YT>"u"||global$1.YT.loaded===0)&&!loadingYoutubePlayer?(loadingYoutubePlayer=1,window.onYouTubeIframeAPIReady=function(){window.onYouTubeIframeAPIReady=null,loadingYoutubeDefer.resolve("done"),e()}):typeof global$1.YT=="object"&&global$1.YT.loaded===1?e():loadingYoutubeDefer.done(()=>{e()})),n.type==="vimeo")if(typeof global$1.Vimeo>"u"&&!loadingVimeoPlayer){loadingVimeoPlayer=1;const o=setInterval(()=>{typeof global$1.Vimeo<"u"&&(clearInterval(o),loadingVimeoDefer.resolve("done"),e())},20)}else typeof global$1.Vimeo<"u"?e():loadingVimeoDefer.done(()=>{e()});n.type==="local"&&e()}}function jarallaxVideo(r=global$1.jarallax){if(typeof r>"u")return;const e=r.constructor,n=e.prototype.onScroll;e.prototype.onScroll=function(){const l=this;n.apply(l),!l.isVideoInserted&&l.video&&(!l.options.videoLazyLoading||l.isElementInViewport)&&!l.options.disableVideo()&&(l.isVideoInserted=!0,l.video.getVideo(d=>{const f=d.parentNode;l.css(d,{position:l.image.position,top:"0px",left:"0px",right:"0px",bottom:"0px",width:"100%",height:"100%",maxWidth:"none",maxHeight:"none",pointerEvents:"none",transformStyle:"preserve-3d",backfaceVisibility:"hidden",willChange:"transform,opacity",margin:0,zIndex:-1}),l.$video=d,l.video.type==="local"&&(l.image.src?l.$video.setAttribute("poster",l.image.src):l.image.$item&&l.image.$item.tagName==="IMG"&&l.image.$item.src&&l.$video.setAttribute("poster",l.image.$item.src)),l.image.$container.appendChild(d),f.parentNode.removeChild(f)}))};const o=e.prototype.coverImage;e.prototype.coverImage=function(){const l=this,u=o.apply(l),d=l.image.$item?l.image.$item.nodeName:!1;if(u&&l.video&&d&&(d==="IFRAME"||d==="VIDEO")){let f=u.image.height,p=f*l.image.width/l.image.height,b=(u.container.width-p)/2,m=u.image.marginTop;u.container.width>p&&(p=u.container.width,f=p*l.image.height/l.image.width,b=0,m+=(u.image.height-f)/2),d==="IFRAME"&&(f+=400,m-=200),l.css(l.$video,{width:"".concat(p,"px"),marginLeft:"".concat(b,"px"),height:"".concat(f,"px"),marginTop:"".concat(m,"px")})}return u};const s=e.prototype.initImg;e.prototype.initImg=function(){const l=this,u=s.apply(l);return l.options.videoSrc||(l.options.videoSrc=l.$item.getAttribute("data-jarallax-video")||null),l.options.videoSrc?(l.defaultInitImgResult=u,!0):u};const a=e.prototype.canInitParallax;e.prototype.canInitParallax=function(){const l=this;let u=a.apply(l);if(!l.options.videoSrc)return u;const d=new VideoWorker(l.options.videoSrc,{autoplay:!0,loop:l.options.videoLoop,showControls:!1,accessibilityHidden:!0,startTime:l.options.videoStartTime||0,endTime:l.options.videoEndTime||0,mute:l.options.videoVolume?0:1,volume:l.options.videoVolume||0});function f(){l.image.$default_item&&(l.image.$item=l.image.$default_item,l.image.$item.style.display="block",l.coverImage(),l.clipContainer(),l.onScroll())}if(d.isValid()){if(this.options.disableParallax()&&(u=!0,l.image.position="absolute",l.options.type="scroll",l.options.speed=1),!u)l.defaultInitImgResult||d.getImageURL(p=>{const b=l.$item.getAttribute("style");b&&l.$item.setAttribute("data-jarallax-original-styles",b),l.css(l.$item,{"background-image":'url("'.concat(p,'")'),"background-position":"center","background-size":"cover"})});else if(d.on("ready",()=>{if(l.options.videoPlayOnlyVisible){const p=l.onScroll;
6l.onScroll=function(){p.apply(l),!l.videoError&&(l.options.videoLoop||!l.options.videoLoop&&!l.videoEnded)&&(l.isVisible()?d.play():d.pause())}}else d.play()}),d.on("started",()=>{l.image.$default_item=l.image.$item,l.image.$item=l.$video,l.image.width=l.video.videoWidth||1280,l.image.height=l.video.videoHeight||720,l.coverImage(),l.clipContainer(),l.onScroll(),l.image.$default_item&&(l.image.$default_item.style.display="none")}),d.on("ended",()=>{l.videoEnded=!0,l.options.videoLoop||f()}),d.on("error",()=>{l.videoError=!0,f()}),l.video=d,!l.defaultInitImgResult&&(l.image.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",d.type!=="local"))return d.getImageURL(p=>{l.image.bgImage='url("'.concat(p,'")'),l.init()}),!1}return u};const c=e.prototype.destroy;e.prototype.destroy=function(){const l=this;l.image.$default_item&&(l.image.$item=l.image.$default_item,delete l.image.$default_item),c.apply(l)}}const jarallaxVideo_esm=Object.freeze(Object.defineProperty({__proto__:null,default:jarallaxVideo},Symbol.toStringTag,{value:"Module"})),require$$1=getAugmentedNamespace(jarallaxVideo_esm);function jarallaxElement(r=global$1.jarallax){if(typeof r>"u")return;const e=r.constructor;["initImg","canInitParallax","init","destroy","clipContainer","coverImage","isVisible","onScroll","onResize"].forEach(n=>{const o=e.prototype[n];e.prototype[n]=function(...s){const a=this;if(n==="initImg"&&a.$item.getAttribute("data-jarallax-element")!==null&&(a.options.type="element",a.pureOptions.speed=a.$item.getAttribute("data-jarallax-element")||a.pureOptions.speed),a.options.type!=="element")return o.apply(a,s);switch(a.pureOptions.threshold=a.$item.getAttribute("data-threshold")||"",n){case"init":const c=a.pureOptions.speed.split(" ");a.options.speed=a.pureOptions.speed||0,a.options.speedY=c[0]?parseFloat(c[0]):0,a.options.speedX=c[1]?parseFloat(c[1]):0;const l=a.pureOptions.threshold.split(" ");a.options.thresholdY=l[0]?parseFloat(l[0]):null,a.options.thresholdX=l[1]?parseFloat(l[1]):null,o.apply(a,s);const u=a.$item.getAttribute("data-jarallax-original-styles");return u&&a.$item.setAttribute("style",u),!0;case"onResize":const d=a.css(a.$item,"transform");a.css(a.$item,{transform:""});const f=a.$item.getBoundingClientRect();a.itemData={width:f.width,height:f.height,y:f.top+a.getWindowData().y,x:f.left},a.css(a.$item,{transform:d});break;case"onScroll":const p=a.getWindowData(),b=(p.y+p.height/2-a.itemData.y-a.itemData.height/2)/(p.height/2),m=b*a.options.speedY,C=b*a.options.speedX;let O=m,I=C;a.options.thresholdY!==null&&m>a.options.thresholdY&&(O=0),a.options.thresholdX!==null&&C>a.options.thresholdX&&(I=0),a.css(a.$item,{transform:"translate3d(".concat(I,"px,").concat(O,"px,0)")});break;case"initImg":case"isVisible":case"clipContainer":case"coverImage":return!0}return o.apply(a,s)}})}const jarallaxElement_esm=Object.freeze(Object.defineProperty({__proto__:null,default:jarallaxElement},Symbol.toStringTag,{value:"Module"})),require$$2=getAugmentedNamespace(jarallaxElement_esm);var jarallax_1,hasRequiredJarallax;function requireJarallax(){if(hasRequiredJarallax)return jarallax_1;hasRequiredJarallax=1;const r=require$$0.default,e=require$$1.default,n=require$$2.default;return jarallax_1={jarallax:r,jarallaxElement(){return n(r)},jarallaxVideo(){return e(r)}},jarallax_1}var jarallaxExports=requireJarallax();class ParallaxExtension extends Extension{async init(){if(this.page.context.compatibilityMode||this.page.context.staticMode){document.querySelectorAll(".background-wrapper.with-parallax .background").forEach(e=>{e.classList.add("background-static")});return}document.querySelectorAll(".background-wrapper.with-parallax").forEach(e=>{const n=e.closest("section");if(n===null){console.error("Cannot find closest section");return}const o={speed:.4,imgElement:".background",automaticResize:!0},s=n.querySelector(".container");s!==null&&(s.style.transition="opacity 0.1s",n.classList.contains("parallax-effect-with-translate")&&(o.onScroll=a=>{s.style.opacity=String(Math.max(.05,a.visiblePercent)),s.style.transform="translatey(".concat(50-Math.min(50,a.visiblePercent*50),"%)")})),jarallaxExports.jarallax(e,o)})}}const breakpoints=["xs","sm","md","lg"];function getCurrentBreakpoint(r){return(r||window.innerWidth)<768?"xs":(r||window.innerWidth)<=992?"sm":(r||window.innerWidth)<=1200?"md":"lg"}
6function getBreakpointChoicesValue(r,e){for(let n=breakpoints.indexOf(getCurrentBreakpoint(e));n>=0;n--)if(breakpoints[n]in r)return r[breakpoints[n]];return r.xs}const breakpointListeners=[];let lastBreakpoint=getCurrentBreakpoint();window.addEventListener("resize",()=>{const r=getCurrentBreakpoint();if(lastBreakpoint!==r){for(const e of breakpointListeners)setTimeout(()=>{e(getCurrentBreakpoint())});lastBreakpoint=r}});function isElementInViewport(r){const e=r.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)}const z=class z{constructor(e){S(this,"animations");S(this,"groupedAnimations");this.section=e,this.animations=[];const n=window.getComputedStyle(this.section).position==="fixed";this.section.querySelectorAll(":scope > .animation-properties").forEach(o=>{try{if(o.innerHTML){const s=JSON.parse(o.innerHTML);if(Array.isArray(s))for(const a of s){const c=Array.from(this.section.querySelectorAll(":scope ".concat(a.targets)));if(c.length<=0)continue;let l=null;if(!n){for(const u of z.ANIMATION_TRIGGER_SELECTORS)if(l=c[0].closest("#".concat(this.section.id," ").concat(u)),l!==null)break;if(l===null){console.warn("Cannot get the trigger element of the animation ".concat(a.targets," for the section: ").concat(this.section.id));continue}}if(this.section.classList.contains("global")&&document.referrer.indexOf(location.protocol+"//"+location.host)===0&&performance.navigation.type!==performance.navigation.TYPE_RELOAD&&(l===null||isElementInViewport(l))){for(const u of c)u.style.visibility="initial";continue}this.animations.push({trigger:l,targets:c,delay:a.delay||z.DEFAULT_ANIMATION_DELAY,delayPerIteration:a.delayPerIteration!==void 0?a.delayPerIteration:z.DEFAULT_ANIMATION_DELAY_PER_ITERATION,duration:a.duration!==void 0?a.duration:z.DEFAULT_ANIMATION_DURATION,name:a.name||z.DEFAULT_ANIMATION_NAME,key:a.key})}else console.warn("The animation properties must be an array",this.section,o.innerHTML)}}catch(s){console.error("Unable to setup an animation set for",this.section,o.innerHTML)}}),this.groupedAnimations=this.getAnimationsGroupedByTrigger()}setupAnimations(){this.animations.length>0&&(this.prepareAnimations(),this.setupObservers())}getAnimationsGroupedByTrigger(){const e=new Map;for(const n of this.animations){const o=e.get(n.trigger);o?o.push(n):e.set(n.trigger,[n])}return e}prepareAnimations(){for(const e of this.animations)for(const n of e.targets)Object.assign(n.style,{visibility:"hidden"})}setupObservers(){this.groupedAnimations.forEach((e,n)=>{let o=!1;if(n){n.getClientRects();const s=n.getBoundingClientRect();o=s.top<window.innerHeight&&s.bottom>0}if(o||n===null)this.runAnimations(e,this.computeTheAnimationsOrder(e,"top"),"top");else{const s="-".concat(Math.min(z.ANIMATION_OFFSET,n.clientHeight/2),"px"),a=new IntersectionObserver(c=>{if(c[0].isIntersecting){a.disconnect();const l=(c[0].boundingClientRect.y||c[0].boundingClientRect.top)+c[0].boundingClientRect.height/2>=0?"top":"bottom";this.runAnimations(e,this.computeTheAnimationsOrder(e,l),l)}},{rootMargin:"".concat(s," 0px ").concat(s," 0px")});a.observe(n)}})}computeTheAnimationsOrder(e,n){const o=new Map,s=new Map;let a=0;for(const c of n==="top"?e:[...e].reverse()){let l=!1,u=a;if(c.key!==void 0){const d=typeof c.key=="number"||typeof c.key=="string"?c.key:getBreakpointChoicesValue(c.key,this.section.clientWidth);s.has(d)?(u=s.get(d),l=!0):s.set(d,u)}o.set(c,u),l||a++}return o}runAnimations(e,n,o){for(const s of e){const a=(typeof s.delay=="number"?s.delay:getBreakpointChoicesValue(s.delay,this.section.clientWidth))+n.get(s)*z.ANIMATION_DELAY_BETWEEN,c=this.getAnimationNameForEntranceSide(typeof s.name=="string"?s.name:getBreakpointChoicesValue(s.name,this.section.clientWidth),o),l=typeof s.duration=="number"?s.duration:getBreakpointChoicesValue(s.duration,this.section.clientWidth),u=typeof s.delayPerIteration=="number"?s.delayPerIteration:getBreakpointChoicesValue(s.delayPerIteration,this.section.clientWidth);let d=null,f=0,p=-1;for(const b of o==="top"?s.targets:[...s.targets].reverse()){const m=b.getBoundingClientRect().y;m!==d&&(d=m,f=0,p++);const C=a+u*(f+z.delayFactorCurveFunction(p));c!=="start-animation"&&Object.assign(b.style,{animationDuration:"".concat(l,"s"),animationDelay:"".concat(C.toFixed(3),"s"),visibility:null}),b.classList.add(c),f++}}}getAnimationNameForEntranceSide(e,n){return n==="bottom"&&e in z.ANIMATION_NAME_SCROLL_UP_REPLACEMENT_MAP?z.ANIMATION_NAME_SCROLL_UP_REPLACEMENT_MAP[e]:e}static delayFactorCurveFunction(e){if(e===0)return 0;const n=.45;return Math.min(Math.log(e+n)/Math.log(1+n),e)}};S(z,"ANIMATION_TRIGGER_SELECTORS",["header",".section-content","footer",".section-container"]),S(z,"ANIMATION_OFFSET",140),S(z,"ANIMATION_DELAY_BETWEEN",.18),S(z,"DEFAULT_ANIMATION_DELAY_PER_ITERATION",.135),S(z,"DEFAULT_ANIMATION_DURATION",.6),S(z,"DEFAULT_ANIMATION_DELAY",0),S(z,"DEFAULT_ANIMATION_NAME","fadeInUp"),S(z,"ANIMATION_NAME_SCROLL_UP_REPLACEMENT_MAP",{fadeInUp:"fadeInDown",fadeInDown:"fadeInUp",slightFadeInUp:"slightFadeInDown",slightFadeInDown:"slightFadeInUp"});let SectionAnimator=z;const objectToString$1=Object.prototype.toString;function isError(r){switch(objectToString$1.call(r)){case"[object Error]":case"[object E
6xception]":case"[object DOMException]":return!0;default:return isInstanceOf(r,Error)}}function isBuiltin(r,e){return objectToString$1.call(r)==="[object ".concat(e,"]")}function isErrorEvent$1(r){return isBuiltin(r,"ErrorEvent")}function isDOMError(r){return isBuiltin(r,"DOMError")}function isDOMException(r){return isBuiltin(r,"DOMException")}function isString(r){return isBuiltin(r,"String")}function isParameterizedString(r){return typeof r=="object"&&r!==null&&"__sentry_template_string__"in r&&"__sentry_template_values__"in r}function isPrimitive(r){return r===null||isParameterizedString(r)||typeof r!="object"&&typeof r!="function"}function isPlainObject(r){return isBuiltin(r,"Object")}function isEvent(r){return typeof Event<"u"&&isInstanceOf(r,Event)}function isElement(r){return typeof Element<"u"&&isInstanceOf(r,Element)}function isRegExp(r){return isBuiltin(r,"RegExp")}function isThenable(r){return!!(r&&r.then&&typeof r.then=="function")}function isSyntheticEvent(r){return isPlainObject(r)&&"nativeEvent"in r&&"preventDefault"in r&&"stopPropagation"in r}function isNaN$1(r){return typeof r=="number"&&r!==r}function isInstanceOf(r,e){try{return r instanceof e}catch(n){return!1}}function isVueViewModel(r){return!!(typeof r=="object"&&r!==null&&(r.__isVue||r._isVue))}function truncate(r,e=0){return typeof r!="string"||e===0||r.length<=e?r:"".concat(r.slice(0,e),"...")}function safeJoin(r,e){if(!Array.isArray(r))return"";const n=[];for(let o=0;o<r.length;o++){const s=r[o];try{isVueViewModel(s)?n.push("[VueViewModel]"):n.push(String(s))}catch(a){n.push("[value cannot be serialized]")}}return n.join(e)}function isMatchingPattern(r,e,n=!1){return isString(r)?isRegExp(e)?e.test(r):isString(e)?n?r===e:r.includes(e):!1:!1}function stringMatchesSomePattern(r,e=[],n=!1){return e.some(o=>isMatchingPattern(r,o,n))}function applyAggregateErrorsToEvent(r,e,n=250,o,s,a,c){if(!a.exception||!a.exception.values||!c||!isInstanceOf(c.originalException,Error))return;const l=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;l&&(a.exception.values=truncateAggregateExceptions(aggregateExceptionsFromError(r,e,s,c.originalException,o,a.exception.values,l,0),n))}function aggregateExceptionsFromError(r,e,n,o,s,a,c,l){if(a.length>=n+1)return a;let u=[...a];if(isInstanceOf(o[s],Error)){applyExceptionGroupFieldsForParentException(c,l);const d=r(e,o[s]),f=u.length;applyExceptionGroupFieldsForChildException(d,s,f,l),u=aggregateExceptionsFromError(r,e,n,o[s],s,[d,...u],d,f)}return Array.isArray(o.errors)&&o.errors.forEach((d,f)=>{if(isInstanceOf(d,Error)){applyExceptionGroupFieldsForParentException(c,l);const p=r(e,d),b=u.length;applyExceptionGroupFieldsForChildException(p,"errors[".concat(f,"]"),b,l),u=aggregateExceptionsFromError(r,e,n,d,s,[p,...u],p,b)}}),u}function applyExceptionGroupFieldsForParentException(r,e){r.mechanism=r.mechanism||{type:"generic",handled:!0},r.mechanism={...r.mechanism,...r.type==="AggregateError"&&{is_exception_group:!0},exception_id:e}}function applyExceptionGroupFieldsForChildException(r,e,n,o){r.mechanism=r.mechanism||{type:"generic",handled:!0},r.mechanism={...r.mechanism,type:"chained",source:e,exception_id:n,parent_id:o}}function truncateAggregateExceptions(r,e){return r.map(n=>(n.value&&(n.value=truncate(n.value,e)),n))}function isGlobalObj(r){return r&&r.Math==Math?r:void 0}const GLOBAL_OBJ=typeof globalThis=="object"&&isGlobalObj(globalThis)||typeof window=="object"&&isGlobalObj(window)||typeof self=="object"&&isGlobalObj(self)||typeof global=="object"&&isGlobalObj(global)||(function(){return this})()||{};function getGlobalObject(){return GLOBAL_OBJ}function getGlobalSingleton(r,e,n){const o=n||GLOBAL_OBJ,s=o.__SENTRY__=o.__SENTRY__||{};return s[r]||(s[r]=e())}const WINDOW$6=getGlobalObject(),DEFAULT_MAX_STRING_LENGTH=80;function htmlTreeAsString(r,e={}){if(!r)return"<unknown>";try{let n=r;const o=5,s=[];let a=0,c=0;const l=" > ",u=l.length;let d;const f=Array.isArray(e)?e:e.keyAttrs,p=!Array.isArray(e)&&e.maxStringLength||DEFAULT_MAX_STRING_LENGTH;for(;n&&a++<o&&(d=_htmlElementAsString(n,f),!(d==="html"||a>1&&c+s.length*u+d.length>=p));)s.push(d),c+=d.length,n=n.parentNode;return s.reverse().join(l)}catch(n){return"<unknown>"}}function _htmlElementAsString(r,e){const n=r,o=[];let s,a,c,l,u;if(!n||!n.tagName)return"";if(WINDOW$6.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;o.push(n.tagName.toLowerCase());const d=e&&e.length?e.filter(p=>n.getAttribute(p)).map(p=>[p,n.getAttribute(p)]):null;
6if(d&&d.length)d.forEach(p=>{o.push("[".concat(p[0],'="').concat(p[1],'"]'))});else if(n.id&&o.push("#".concat(n.id)),s=n.className,s&&isString(s))for(a=s.split(/\s+/),u=0;u<a.length;u++)o.push(".".concat(a[u]));const f=["aria-label","type","name","title","alt"];for(u=0;u<f.length;u++)c=f[u],l=n.getAttribute(c),l&&o.push("[".concat(c,'="').concat(l,'"]'));return o.join("")}function getLocationHref(){try{return WINDOW$6.document.location.href}catch(r){return""}}function getComponentName(r){if(!WINDOW$6.HTMLElement)return null;let e=r;const n=5;for(let o=0;o<n;o++){if(!e)return null;if(e instanceof HTMLElement&&e.dataset.sentryComponent)return e.dataset.sentryComponent;e=e.parentNode}return null}const DEBUG_BUILD$2=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,PREFIX="Sentry Logger ",CONSOLE_LEVELS=["debug","info","warn","error","log","assert","trace"],originalConsoleMethods={};function consoleSandbox(r){if(!("console"in GLOBAL_OBJ))return r();const e=GLOBAL_OBJ.console,n={},o=Object.keys(originalConsoleMethods);o.forEach(s=>{const a=originalConsoleMethods[s];n[s]=e[s],e[s]=a});try{return r()}finally{o.forEach(s=>{e[s]=n[s]})}}function makeLogger(){let r=!1;const e={enable:()=>{r=!0},disable:()=>{r=!1},isEnabled:()=>r};return DEBUG_BUILD$2?CONSOLE_LEVELS.forEach(n=>{e[n]=(...o)=>{r&&consoleSandbox(()=>{GLOBAL_OBJ.console[n]("".concat(PREFIX,"[").concat(n,"]:"),...o)})}}):CONSOLE_LEVELS.forEach(n=>{e[n]=()=>{}}),e}const logger=makeLogger(),DSN_REGEX=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function isValidProtocol(r){return r==="http"||r==="https"}function dsnToString(r,e=!1){const{host:n,path:o,pass:s,port:a,projectId:c,protocol:l,publicKey:u}=r;return"".concat(l,"://").concat(u).concat(e&&s?":".concat(s):"")+"@".concat(n).concat(a?":".concat(a):"","/").concat(o&&"".concat(o,"/")).concat(c)}function dsnFromString(r){const e=DSN_REGEX.exec(r);if(!e){consoleSandbox(()=>{console.error("Invalid Sentry Dsn: ".concat(r))});return}const[n,o,s="",a,c="",l]=e.slice(1);let u="",d=l;const f=d.split("/");if(f.length>1&&(u=f.slice(0,-1).join("/"),d=f.pop()),d){const p=d.match(/^\d+/);p&&(d=p[0])}return dsnFromComponents({host:a,pass:s,path:u,projectId:d,port:c,protocol:n,publicKey:o})}function dsnFromComponents(r){return{protocol:r.protocol,publicKey:r.publicKey||"",pass:r.pass||"",host:r.host,port:r.port||"",path:r.path||"",projectId:r.projectId}}function validateDsn(r){if(!DEBUG_BUILD$2)return!0;const{port:e,projectId:n,protocol:o}=r;return["protocol","publicKey","host","projectId"].find(c=>r[c]?!1:(logger.error("Invalid Sentry Dsn: ".concat(c," missing")),!0))?!1:n.match(/^\d+$/)?isValidProtocol(o)?e&&isNaN(parseInt(e,10))?(logger.error("Invalid Sentry Dsn: Invalid port ".concat(e)),!1):!0:(logger.error("Invalid Sentry Dsn: Invalid protocol ".concat(o)),!1):(logger.error("Invalid Sentry Dsn: Invalid projectId ".concat(n)),!1)}function makeDsn(r){const e=typeof r=="string"?dsnFromString(r):dsnFromComponents(r);if(!(!e||!validateDsn(e)))return e}class SentryError extends Error{constructor(e,n="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}function fill(r,e,n){if(!(e in r))return;const o=r[e],s=n(o);typeof s=="function"&&markFunctionWrapped(s,o),r[e]=s}function addNonEnumerableProperty(r,e,n){try{Object.defineProperty(r,e,{value:n,writable:!0,configurable:!0})}catch(o){DEBUG_BUILD$2&&logger.log('Failed to add non-enumerable property "'.concat(e,'" to object'),r)}}function markFunctionWrapped(r,e){try{const n=e.prototype||{};r.prototype=e.prototype=n,addNonEnumerableProperty(r,"__sentry_original__",e)}catch(n){}}function getOriginalFunction(r){return r.__sentry_original__}function urlEncode(r){return Object.keys(r).map(e=>"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(r[e]))).join("&")}function convertToPlainObject(r){if(isError(r))return{message:r.message,name:r.name,stack:r.stack,...getOwnProperties(r)};if(isEvent(r)){const e={type:r.type,target:serializeEventTarget(r.target),currentTarget:serializeEventTarget(r.currentTarget),...getOwnProperties(r)};return typeof CustomEvent<"u"&&isInstanceOf(r,CustomEvent)&&(e.detail=r.detail),e}else return r}function serializeEventTarget(r){try{return isElement(r)?htmlTreeAsString(r):Object.prototype.toString.call(r)}catch(e){return"<unknown>"}}function getOwnProperties(r){if(typeof r=="object"&&r!==null){const e={};
6for(const n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e}else return{}}function extractExceptionKeysForMessage(r,e=40){const n=Object.keys(convertToPlainObject(r));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return truncate(n[0],e);for(let o=n.length;o>0;o--){const s=n.slice(0,o).join(", ");if(!(s.length>e))return o===n.length?s:truncate(s,e)}return""}function dropUndefinedKeys(r){return _dropUndefinedKeys(r,new Map)}function _dropUndefinedKeys(r,e){if(isPojo(r)){const n=e.get(r);if(n!==void 0)return n;const o={};e.set(r,o);for(const s of Object.keys(r))typeof r[s]<"u"&&(o[s]=_dropUndefinedKeys(r[s],e));return o}if(Array.isArray(r)){const n=e.get(r);if(n!==void 0)return n;const o=[];return e.set(r,o),r.forEach(s=>{o.push(_dropUndefinedKeys(s,e))}),o}return r}function isPojo(r){if(!isPlainObject(r))return!1;try{const e=Object.getPrototypeOf(r).constructor.name;return!e||e==="Object"}catch(e){return!0}}const STACKTRACE_FRAME_LIMIT=50,WEBPACK_ERROR_REGEXP=/\(error: (.*)\)/,STRIP_FRAME_REGEXP=/captureMessage|captureException/;function createStackParser(...r){const e=r.sort((n,o)=>n[0]-o[0]).map(n=>n[1]);return(n,o=0)=>{const s=[],a=n.split("\n");for(let c=o;c<a.length;c++){const l=a[c];if(l.length>1024)continue;const u=WEBPACK_ERROR_REGEXP.test(l)?l.replace(WEBPACK_ERROR_REGEXP,"$1"):l;if(!u.match(/\S*Error: /)){for(const d of e){const f=d(u);if(f){s.push(f);break}}if(s.length>=STACKTRACE_FRAME_LIMIT)break}}return stripSentryFramesAndReverse(s)}}function stackParserFromStackParserOptions(r){return Array.isArray(r)?createStackParser(...r):r}function stripSentryFramesAndReverse(r){if(!r.length)return[];const e=Array.from(r);return/sentryWrapped/.test(e[e.length-1].function||"")&&e.pop(),e.reverse(),STRIP_FRAME_REGEXP.test(e[e.length-1].function||"")&&(e.pop(),STRIP_FRAME_REGEXP.test(e[e.length-1].function||"")&&e.pop()),e.slice(0,STACKTRACE_FRAME_LIMIT).map(n=>({...n,filename:n.filename||e[e.length-1].filename,function:n.function||"?"}))}const defaultFunctionName="<anonymous>";function getFunctionName(r){try{return!r||typeof r!="function"?defaultFunctionName:r.name||defaultFunctionName}catch(e){return defaultFunctionName}}const handlers={},instrumented={};function addHandler(r,e){handlers[r]=handlers[r]||[],handlers[r].push(e)}function maybeInstrument(r,e){instrumented[r]||(e(),instrumented[r]=!0)}function triggerHandlers(r,e){const n=r&&handlers[r];if(n)for(const o of n)try{o(e)}catch(s){DEBUG_BUILD$2&&logger.error("Error while triggering instrumentation handler.\nType: ".concat(r,"\nName: ").concat(getFunctionName(o),"\nError:"),s)}}function addConsoleInstrumentationHandler(r){const e="console";addHandler(e,r),maybeInstrument(e,instrumentConsole)}function instrumentConsole(){"console"in GLOBAL_OBJ&&CONSOLE_LEVELS.forEach(function(r){r in GLOBAL_OBJ.console&&fill(GLOBAL_OBJ.console,r,function(e){return originalConsoleMethods[r]=e,function(...n){triggerHandlers("console",{args:n,level:r});const s=originalConsoleMethods[r];s&&s.apply(GLOBAL_OBJ.console,n)}})})}function uuid4(){const r=GLOBAL_OBJ,e=r.crypto||r.msCrypto;let n=()=>Math.random()*16;try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(n=()=>{const o=new Uint8Array(1);return e.getRandomValues(o),o[0]})}catch(o){}return("10000000100040008000"+1e11).replace(/[018]/g,o=>(o^(n()&15)>>o/4).toString(16))}function getFirstException(r){return r.exception&&r.exception.values?r.exception.values[0]:void 0}function getEventDescription(r){const{message:e,event_id:n}=r;if(e)return e;const o=getFirstException(r);return o?o.type&&o.value?"".concat(o.type,": ").concat(o.value):o.type||o.value||n||"<unknown>":n||"<unknown>"}function addExceptionTypeValue(r,e,n){const o=r.exception=r.exception||{},s=o.values=o.values||[],a=s[0]=s[0]||{};a.value||(a.value=e||""),a.type||(a.type="Error")}function addExceptionMechanism(r,e){const n=getFirstException(r);if(!n)return;const o={type:"generic",handled:!0},s=n.mechanism;if(n.mechanism={...o,...s,...e},e&&"data"in e){const a={...s&&s.data,...e.data};n.mechanism.data=a}}function checkOrSetAlreadyCaught(r){if(r&&r.__sentry_captured__)return!0;try{addNonEnumerableProperty(r,"__sentry_captured__",!0)}catch(e){}return!1}function arrayify(r){return Array.isArray(r)?r:[r]}const WINDOW$5=GLOBAL_OBJ,DEBOUNCE_DURATION=1e3;let debounceTimerID,lastCapturedEventType,lastCapturedEventTargetId;function addClickKeypressInstrumentationHandler(r){addHandler("dom",r),maybeInstrument("dom",instrumentDOM)}function instrumentDOM(){if(!WINDOW$5.document)return;const r=triggerHandlers.bind(null,"dom"),e=makeDOMEventHandler(r,!0);WINDOW$5.document.addEventListener("click",e,!1),WINDOW$5.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(n=>{const o=WINDOW$5[n]&&WINDOW$5[n].prototype;!o||!o.hasOwnProperty||!o.hasOwnProperty("addEventListener")||(fill(o,"addEventListener",function(s){return function(a,c,l){if(a==="click"||a=="keypress")try{const u=this,d=u.__sentry_instrumentation_handlers__=u.__sentry_instrumentation_handlers__||{},f=d[a]=d[a]||{refCount:0};if(!f.handler){const p=makeDOMEventHandler(r);f.handler=p,s.call(this,a,p,l)}f.refCount++}catch(u){}return s.call(this,a,c,l)}}),fill(o,"removeEventListener",function(s){return function(a,c,l){if(a==="click"||a=="keypress")try{const u=this,d=u.__sentry_instrumentation_handlers__||{},f=d[a];f&&(f.refCount--,f.refCount<=0&&(s.call(this,a,f.handler,l),f.handler=void 0,delete d[a]),Object.keys(d).length===0&&delete u.__sentry_instrumentation_handlers__)}catch(u){}return s.call(this,a,c,l)}}))})}function isSimilarToLastCapturedEvent(r){if(r.type!==lastCapturedEventType)return!1;try{if(!r.target||r.target._sentryId!==lastCapturedEventTargetId)return!1}catch(e){}return!0}function shouldSkipDOMEvent(r,e){return r!=="keypress"?!1:!e||!e.tagName?!0:!(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable)}function makeDOMEventHandler(r,e=!1){return n=>{if(!n||n._sentryCaptured)return;const o=getEventTarget(n);if(shouldSkipDOMEvent(n.type,o))return;addNonEnumerableProperty(n,"_sentryCaptured",!0),o&&!o._sentryId&&addNonEnumerableProperty(o,"_sentryId",uuid4());
6const s=n.type==="keypress"?"input":n.type;isSimilarToLastCapturedEvent(n)||(r({event:n,name:s,global:e}),lastCapturedEventType=n.type,lastCapturedEventTargetId=o?o._sentryId:void 0),clearTimeout(debounceTimerID),debounceTimerID=WINDOW$5.setTimeout(()=>{lastCapturedEventTargetId=void 0,lastCapturedEventType=void 0},DEBOUNCE_DURATION)}}function getEventTarget(r){try{return r.target}catch(e){return null}}const WINDOW$4=getGlobalObject();function supportsFetch(){if(!("fetch"in WINDOW$4))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(r){return!1}}function isNativeFetch(r){return r&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(r.toString())}function supportsNativeFetch(){if(typeof EdgeRuntime=="string")return!0;if(!supportsFetch())return!1;if(isNativeFetch(WINDOW$4.fetch))return!0;let r=!1;const e=WINDOW$4.document;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(r=isNativeFetch(n.contentWindow.fetch)),e.head.removeChild(n)}catch(n){DEBUG_BUILD$2&&logger.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return r}function addFetchInstrumentationHandler(r){const e="fetch";addHandler(e,r),maybeInstrument(e,instrumentFetch)}function instrumentFetch(){supportsNativeFetch()&&fill(GLOBAL_OBJ,"fetch",function(r){return function(...e){const{method:n,url:o}=parseFetchArgs(e),s={args:e,fetchData:{method:n,url:o},startTimestamp:Date.now()};return triggerHandlers("fetch",{...s}),r.apply(GLOBAL_OBJ,e).then(a=>{const c={...s,endTimestamp:Date.now(),response:a};return triggerHandlers("fetch",c),a},a=>{const c={...s,endTimestamp:Date.now(),error:a};throw triggerHandlers("fetch",c),a})}})}function hasProp(r,e){return!!r&&typeof r=="object"&&!!r[e]}function getUrlFromResource(r){return typeof r=="string"?r:r?hasProp(r,"url")?r.url:r.toString?r.toString():"":""}function parseFetchArgs(r){if(r.length===0)return{method:"GET",url:""};if(r.length===2){const[n,o]=r;return{url:getUrlFromResource(n),method:hasProp(o,"method")?String(o.method).toUpperCase():"GET"}}const e=r[0];return{url:getUrlFromResource(e),method:hasProp(e,"method")?String(e.method).toUpperCase():"GET"}}let _oldOnErrorHandler=null;function addGlobalErrorInstrumentationHandler(r){const e="error";addHandler(e,r),maybeInstrument(e,instrumentError)}function instrumentError(){_oldOnErrorHandler=GLOBAL_OBJ.onerror,GLOBAL_OBJ.onerror=function(r,e,n,o,s){return triggerHandlers("error",{column:o,error:s,line:n,msg:r,url:e}),_oldOnErrorHandler&&!_oldOnErrorHandler.__SENTRY_LOADER__?_oldOnErrorHandler.apply(this,arguments):!1},GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}let _oldOnUnhandledRejectionHandler=null;function addGlobalUnhandledRejectionInstrumentationHandler(r){const e="unhandledrejection";addHandler(e,r),maybeInstrument(e,instrumentUnhandledRejection)}function instrumentUnhandledRejection(){_oldOnUnhandledRejectionHandler=GLOBAL_OBJ.onunhandledrejection,GLOBAL_OBJ.onunhandledrejection=function(r){return triggerHandlers("unhandledrejection",r),_oldOnUnhandledRejectionHandler&&!_oldOnUnhandledRejectionHandler.__SENTRY_LOADER__?_oldOnUnhandledRejectionHandler.apply(this,arguments):!0},GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const WINDOW$3=getGlobalObject();function supportsHistory(){const r=WINDOW$3.chrome,e=r&&r.app&&r.app.runtime,n="history"in WINDOW$3&&!!WINDOW$3.history.pushState&&!!WINDOW$3.history.replaceState;return!e&&n}const WINDOW$2=GLOBAL_OBJ;let lastHref;function addHistoryInstrumentationHandler(r){const e="history";addHandler(e,r),maybeInstrument(e,instrumentHistory)}function instrumentHistory(){if(!supportsHistory())return;const r=WINDOW$2.onpopstate;WINDOW$2.onpopstate=function(...n){const o=WINDOW$2.location.href,s=lastHref;if(lastHref=o,triggerHandlers("history",{from:s,to:o}),r)try{return r.apply(this,n)}catch(c){}};function e(n){return function(...o){const s=o.length>2?o[2]:void 0;if(s){const a=lastHref,c=String(s);lastHref=c,triggerHandlers("history",{from:a,to:c})}return n.apply(this,o)}}fill(WINDOW$2.history,"pushState",e),fill(WINDOW$2.history,"replaceState",e)}const WINDOW$1=GLOBAL_OBJ,SENTRY_XHR_DATA_KEY="__sentry_xhr_v3__";function addXhrInstrumentationHandler(r){addHandler("xhr",r),maybeInstrument("xhr",instrumentXHR)}function instrumentXHR(){if(!WINDOW$1.XMLHttpRequest)return;const r=XMLHttpRequest.prototype;fill(r,"open",function(e){return function(...n){const o=Date.now(),s=isString(n[0])?n[0].toUpperCase():void 0,a=parseUrl$1(n[1]);if(!s||!a)return e.apply(this,n);this[SENTRY_XHR_DATA_KEY]={method:s,url:a,request_headers:{}}
6,s==="POST"&&a.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const c=()=>{const l=this[SENTRY_XHR_DATA_KEY];if(l&&this.readyState===4){try{l.status_code=this.status}catch(d){}const u={args:[s,a],endTimestamp:Date.now(),startTimestamp:o,xhr:this};triggerHandlers("xhr",u)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?fill(this,"onreadystatechange",function(l){return function(...u){return c(),l.apply(this,u)}}):this.addEventListener("readystatechange",c),fill(this,"setRequestHeader",function(l){return function(...u){const[d,f]=u,p=this[SENTRY_XHR_DATA_KEY];return p&&isString(d)&&isString(f)&&(p.request_headers[d.toLowerCase()]=f),l.apply(this,u)}}),e.apply(this,n)}}),fill(r,"send",function(e){return function(...n){const o=this[SENTRY_XHR_DATA_KEY];if(!o)return e.apply(this,n);n[0]!==void 0&&(o.body=n[0]);const s={args:[o.method,o.url],startTimestamp:Date.now(),xhr:this};return triggerHandlers("xhr",s),e.apply(this,n)}})}function parseUrl$1(r){if(isString(r))return r;try{return r.toString()}catch(e){}}function getSDKSource(){return"npm"}function memoBuilder(){const r=typeof WeakSet=="function",e=r?new WeakSet:[];function n(s){if(r)return e.has(s)?!0:(e.add(s),!1);for(let a=0;a<e.length;a++)if(e[a]===s)return!0;return e.push(s),!1}function o(s){if(r)e.delete(s);else for(let a=0;a<e.length;a++)if(e[a]===s){e.splice(a,1);break}}return[n,o]}function normalize(r,e=100,n=1/0){try{return visit("",r,e,n)}catch(o){return{ERROR:"**non-serializable** (".concat(o,")")}}}function normalizeToSize(r,e=3,n=100*1024){const o=normalize(r,e);return jsonSize(o)>n?normalizeToSize(r,e-1,n):o}function visit(r,e,n=1/0,o=1/0,s=memoBuilder()){const[a,c]=s;if(e==null||["number","boolean","string"].includes(typeof e)&&!isNaN$1(e))return e;const l=stringifyValue(r,e);if(!l.startsWith("[object "))return l;if(e.__sentry_skip_normalization__)return e;const u=typeof e.__sentry_override_normalization_depth__=="number"?e.__sentry_override_normalization_depth__:n;if(u===0)return l.replace("object ","");if(a(e))return"[Circular ~]";const d=e;if(d&&typeof d.toJSON=="function")try{const m=d.toJSON();return visit("",m,u-1,o,s)}catch(m){}const f=Array.isArray(e)?[]:{};let p=0;const b=convertToPlainObject(e);for(const m in b){if(!Object.prototype.hasOwnProperty.call(b,m))continue;if(p>=o){f[m]="[MaxProperties ~]";break}const C=b[m];f[m]=visit(m,C,u-1,o,s),p++}return c(e),f}function stringifyValue(r,e){try{if(r==="domain"&&e&&typeof e=="object"&&e._events)return"[Domain]";if(r==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&e===global)return"[Global]";if(typeof window<"u"&&e===window)return"[Window]";if(typeof document<"u"&&e===document)return"[Document]";if(isVueViewModel(e))return"[VueViewModel]";if(isSyntheticEvent(e))return"[SyntheticEvent]";if(typeof e=="number"&&e!==e)return"[NaN]";if(typeof e=="function")return"[Function: ".concat(getFunctionName(e),"]");if(typeof e=="symbol")return"[".concat(String(e),"]");if(typeof e=="bigint")return"[BigInt: ".concat(String(e),"]");const n=getConstructorName(e);return/^HTML(\w*)Element$/.test(n)?"[HTMLElement: ".concat(n,"]"):"[object ".concat(n,"]")}catch(n){return"**non-serializable** (".concat(n,")")}}function getConstructorName(r){const e=Object.getPrototypeOf(r);return e?e.constructor.name:"null prototype"}function utf8Length(r){return~-encodeURI(r).split(/%..|./).length}function jsonSize(r){return utf8Length(JSON.stringify(r))}var States;(function(r){r[r.PENDING=0]="PENDING";const n=1;r[r.RESOLVED=n]="RESOLVED";const o=2;r[r.REJECTED=o]="REJECTED"})(States||(States={}));function resolvedSyncPromise(r){return new SyncPromise(e=>{e(r)})}
6function rejectedSyncPromise(r){return new SyncPromise((e,n)=>{n(r)})}class SyncPromise{constructor(e){SyncPromise.prototype.__init.call(this),SyncPromise.prototype.__init2.call(this),SyncPromise.prototype.__init3.call(this),SyncPromise.prototype.__init4.call(this),this._state=States.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(n){this._reject(n)}}then(e,n){return new SyncPromise((o,s)=>{this._handlers.push([!1,a=>{if(!e)o(a);else try{o(e(a))}catch(c){s(c)}},a=>{if(!n)s(a);else try{o(n(a))}catch(c){s(c)}}]),this._executeHandlers()})}catch(e){return this.then(n=>n,e)}finally(e){return new SyncPromise((n,o)=>{let s,a;return this.then(c=>{a=!1,s=c,e&&e()},c=>{a=!0,s=c,e&&e()}).then(()=>{if(a){o(s);return}n(s)})})}__init(){this._resolve=e=>{this._setResult(States.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(States.REJECTED,e)}}__init3(){this._setResult=(e,n)=>{if(this._state===States.PENDING){if(isThenable(n)){n.then(this._resolve,this._reject);return}this._state=e,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===States.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach(n=>{n[0]||(this._state===States.RESOLVED&&n[1](this._value),this._state===States.REJECTED&&n[2](this._value),n[0]=!0)})}}}function makePromiseBuffer(r){const e=[];function n(){return r===void 0||e.length<r}function o(c){return e.splice(e.indexOf(c),1)[0]}function s(c){if(!n())return rejectedSyncPromise(new SentryError("Not adding Promise because buffer limit was reached."));const l=c();return e.indexOf(l)===-1&&e.push(l),l.then(()=>o(l)).then(null,()=>o(l).then(null,()=>{})),l}function a(c){return new SyncPromise((l,u)=>{let d=e.length;if(!d)return l(!0);const f=setTimeout(()=>{c&&c>0&&l(!1)},c);e.forEach(p=>{resolvedSyncPromise(p).then(()=>{--d||(clearTimeout(f),l(!0))},u)})})}return{$:e,add:s,drain:a}}function parseUrl(r){if(!r)return{};const e=r.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",o=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:o,relative:e[5]+n+o}}const validSeverityLevels=["fatal","error","warning","log","info","debug"];function severityLevelFromString(r){return r==="warn"?"warning":validSeverityLevels.includes(r)?r:"log"}const ONE_SECOND_IN_MS=1e3;function dateTimestampInSeconds(){return Date.now()/ONE_SECOND_IN_MS}function createUnixTimestampInSecondsFunc(){const{performance:r}=GLOBAL_OBJ;if(!r||!r.now)return dateTimestampInSeconds;const e=Date.now()-r.now(),n=r.timeOrigin==null?e:r.timeOrigin;return()=>(n+r.now())/ONE_SECOND_IN_MS}const timestampInSeconds=createUnixTimestampInSecondsFunc();(()=>{const{performance:r}=GLOBAL_OBJ;if(!r||!r.now)return;const e=3600*1e3,n=r.now(),o=Date.now(),s=r.timeOrigin?Math.abs(r.timeOrigin+n-o):e,a=s<e,c=r.timing&&r.timing.navigationStart,u=typeof c=="number"?Math.abs(c+n-o):e,d=u<e;return a||d?s<=u?r.timeOrigin:c:o})();function createEnvelope(r,e=[]){return[r,e]}function addItemToEnvelope(r,e){const[n,o]=r;return[n,[...o,e]]}function forEachEnvelopeItem(r,e){const n=r[1];for(const o of n){const s=o[0].type;if(e(o,s))return!0}return!1}function encodeUTF8(r,e){return(e||new TextEncoder).encode(r)}function serializeEnvelope(r,e){const[n,o]=r;let s=JSON.stringify(n);function a(c){typeof s=="string"?s=typeof c=="string"?s+c:[encodeUTF8(s,e),c]:s.push(typeof c=="string"?encodeUTF8(c,e):c)}for(const c of o){const[l,u]=c;if(a("\n".concat(JSON.stringify(l),"\n")),typeof u=="string"||u instanceof Uint8Array)a(u);else{let d;try{d=JSON.stringify(u)}catch(f){d=JSON.stringify(normalize(u))}a(d)}}return typeof s=="string"?s:concatBuffers(s)}function concatBuffers(r){const e=r.reduce((s,a)=>s+a.length,0),n=new Uint8Array(e);let o=0;for(const s of r)n.set(s,o),o+=s.length;return n}function createAttachmentEnvelopeItem(r,e){const n=typeof r.data=="string"?encodeUTF8(r.data,e):r.data;return[dropUndefinedKeys({type:"attachment",length:n.length,filename:r.filename,content_type:r.contentType,attachment_type:r.attachmentType}),n]}const ITEM_TYPE_TO_DATA_CATEGORY_MAP={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};
6function envelopeItemTypeToDataCategory(r){return ITEM_TYPE_TO_DATA_CATEGORY_MAP[r]}function getSdkMetadataForEnvelopeHeader(r){if(!r||!r.sdk)return;const{name:e,version:n}=r.sdk;return{name:e,version:n}}function createEventEnvelopeHeaders(r,e,n,o){const s=r.sdkProcessingMetadata&&r.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:r.event_id,sent_at:new Date().toISOString(),...e&&{sdk:e},...!!n&&o&&{dsn:dsnToString(o)},...s&&{trace:dropUndefinedKeys({...s})}}}function createClientReportEnvelope(r,e,n){const o=[{type:"client_report"},{timestamp:dateTimestampInSeconds(),discarded_events:r}];return createEnvelope(e?{dsn:e}:{},[o])}const DEFAULT_RETRY_AFTER=60*1e3;function parseRetryAfterHeader(r,e=Date.now()){const n=parseInt("".concat(r),10);if(!isNaN(n))return n*1e3;const o=Date.parse("".concat(r));return isNaN(o)?DEFAULT_RETRY_AFTER:o-e}function disabledUntil(r,e){return r[e]||r.all||0}function isRateLimited(r,e,n=Date.now()){return disabledUntil(r,e)>n}function updateRateLimits(r,{statusCode:e,headers:n},o=Date.now()){const s={...r},a=n&&n["x-sentry-rate-limits"],c=n&&n["retry-after"];if(a)for(const l of a.trim().split(",")){const[u,d,,,f]=l.split(":",5),p=parseInt(u,10),b=(isNaN(p)?60:p)*1e3;if(!d)s.all=o+b;else for(const m of d.split(";"))m==="metric_bucket"?(!f||f.split(";").includes("custom"))&&(s[m]=o+b):s[m]=o+b}else c?s.all=o+parseRetryAfterHeader(c,o):e===429&&(s.all=o+60*1e3);return s}const DEBUG_BUILD$1=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,DEFAULT_ENVIRONMENT="production";function getGlobalEventProcessors(){return getGlobalSingleton("globalEventProcessors",()=>[])}function addGlobalEventProcessor(r){getGlobalEventProcessors().push(r)}function notifyEventProcessors(r,e,n,o=0){return new SyncPromise((s,a)=>{const c=r[o];if(e===null||typeof c!="function")s(e);else{const l=c({...e},n);DEBUG_BUILD$1&&c.id&&l===null&&logger.log('Event processor "'.concat(c.id,'" dropped event')),isThenable(l)?l.then(u=>notifyEventProcessors(r,u,n,o+1).then(s)).then(null,a):notifyEventProcessors(r,l,n,o+1).then(s).then(null,a)}})}function makeSession(r){const e=timestampInSeconds(),n={sid:uuid4(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>sessionToJSON(n)};return r&&updateSession(n,r),n}function updateSession(r,e={}){if(e.user&&(!r.ipAddress&&e.user.ip_address&&(r.ipAddress=e.user.ip_address),!r.did&&!e.did&&(r.did=e.user.id||e.user.email||e.user.username)),r.timestamp=e.timestamp||timestampInSeconds(),e.abnormal_mechanism&&(r.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(r.ignoreDuration=e.ignoreDuration),e.sid&&(r.sid=e.sid.length===32?e.sid:uuid4()),e.init!==void 0&&(r.init=e.init),!r.did&&e.did&&(r.did="".concat(e.did)),typeof e.started=="number"&&(r.started=e.started),r.ignoreDuration)r.duration=void 0;else if(typeof e.duration=="number")r.duration=e.duration;else{const n=r.timestamp-r.started;r.duration=n>=0?n:0}e.release&&(r.release=e.release),e.environment&&(r.environment=e.environment),!r.ipAddress&&e.ipAddress&&(r.ipAddress=e.ipAddress),!r.userAgent&&e.userAgent&&(r.userAgent=e.userAgent),typeof e.errors=="number"&&(r.errors=e.errors),e.status&&(r.status=e.status)}function closeSession(r,e){let n={};r.status==="ok"&&(n={status:"exited"}),updateSession(r,n)}function sessionToJSON(r){return dropUndefinedKeys({sid:"".concat(r.sid),init:r.init,started:new Date(r.started*1e3).toISOString(),timestamp:new Date(r.timestamp*1e3).toISOString(),status:r.status,errors:r.errors,did:typeof r.did=="number"||typeof r.did=="string"?"".concat(r.did):void 0,duration:r.duration,abnormal_mechanism:r.abnormal_mechanism,attrs:{release:r.release,environment:r.environment,ip_address:r.ipAddress,user_agent:r.userAgent}})}const TRACE_FLAG_SAMPLED=1;function spanToTraceContext(r){const{spanId:e,traceId:n}=r.spanContext(),{data:o,op:s,parent_span_id:a,status:c,tags:l,origin:u}=spanToJSON(r);return dropUndefinedKeys({data:o,op:s,parent_span_id:a,span_id:e,status:c,tags:l,trace_id:n,origin:u})}function spanToJSON(r){return spanIsSpanClass(r)?r.getSpanJSON():typeof r.toJSON=="function"?r.toJSON():{}}function spanIsSpanClass(r){return typeof r.getSpanJSON=="function"}function spanIsSampled(r){const{traceFlags:e}=r.spanContext();return!!(e&TRACE_FLAG_SAMPLED)}function prepareEvent(r,e,n,o,s,a){const{normalizeDepth:c=3,normalizeMaxBreadth:l=1e3}=r,u={...e,event_id:e.event_id||n.event_id||uuid4(),timestamp:e.timestamp||dateTimestampInSeconds()},d=n.integrations||r.integrations.map(I=>I.name);applyClientOptions(u,r),applyIntegrationsMetadata(u,d),e.type===void 0&&applyDebugIds(u,r.stackParser);const f=getFinalScope(o,n.captureContext);n.mechanism&&addExceptionMechanism(u,n.mechanism);const p=s&&s.getEventProcessors?s.getEventProcessors():[],b=getGlobalScope().getScopeData();if(a){const I=a.getScopeData();mergeScopeData(b,I)}if(f){const I=f.getScopeData();mergeScopeData(b,I)}const m=[...n.attachments||[],...b.attachments];m.length&&(n.attachments=m),applyScopeDataToEvent(u,b);const C=[...p,...getGlobalEventProcessors(),...b.eventProcessors];return notifyEventProcessors(C,u,n).then(I=>(I&&applyDebugMeta(I),typeof c=="number"&&c>0?normalizeEvent(I,c,l):I))}function applyClientOptions(r,e){const{environment:n,release:o,dist:s,maxValueLength:a=250}=e;"environment"in r||(r.environment="environment"in e?n:DEFAULT_ENVIRONMENT),r.release===void 0&&o!==void 0&&(r.release=o),r.dist===void 0&&s!==void 0&&(r.dist=s),r.message&&(r.message=truncate(r.message,a));const c=r.exception&&r.exception.values&&r.exception.values[0];c&&c.value&&(c.value=truncate(c.value,a));const l=r.request;l&&l.url&&(l.url=truncate(l.url,a))}const debugIdStackParserCache=new WeakMap;function applyDebugIds(r,e){const n=GLOBAL_OBJ._sentryDebugIds;if(!n)return;let o;const s=debugIdStackParserCache.get(e);s?o=s:(o=new Map,debugIdStackParserCache.set(e,o));const a=Object.keys(n).reduce((c,l)=>{let u;const d=o.get(l);d?u=d:(u=e(l),o.set(l,u));for(let f=u.length-1;f>=0;f--){const p=u[f];if(p.filename){c[p.filename]=n[l];break}}return c},{});
6try{r.exception.values.forEach(c=>{c.stacktrace.frames.forEach(l=>{l.filename&&(l.debug_id=a[l.filename])})})}catch(c){}}function applyDebugMeta(r){const e={};try{r.exception.values.forEach(o=>{o.stacktrace.frames.forEach(s=>{s.debug_id&&(s.abs_path?e[s.abs_path]=s.debug_id:s.filename&&(e[s.filename]=s.debug_id),delete s.debug_id)})})}catch(o){}if(Object.keys(e).length===0)return;r.debug_meta=r.debug_meta||{},r.debug_meta.images=r.debug_meta.images||[];const n=r.debug_meta.images;Object.keys(e).forEach(o=>{n.push({type:"sourcemap",code_file:o,debug_id:e[o]})})}function applyIntegrationsMetadata(r,e){e.length>0&&(r.sdk=r.sdk||{},r.sdk.integrations=[...r.sdk.integrations||[],...e])}function normalizeEvent(r,e,n){if(!r)return null;const o={...r,...r.breadcrumbs&&{breadcrumbs:r.breadcrumbs.map(s=>({...s,...s.data&&{data:normalize(s.data,e,n)}}))},...r.user&&{user:normalize(r.user,e,n)},...r.contexts&&{contexts:normalize(r.contexts,e,n)},...r.extra&&{extra:normalize(r.extra,e,n)}};return r.contexts&&r.contexts.trace&&o.contexts&&(o.contexts.trace=r.contexts.trace,r.contexts.trace.data&&(o.contexts.trace.data=normalize(r.contexts.trace.data,e,n))),r.spans&&(o.spans=r.spans.map(s=>{const a=spanToJSON(s).data;return a&&(s.data=normalize(a,e,n)),s})),o}function getFinalScope(r,e){if(!e)return r;const n=r?r.clone():new Scope;return n.update(e),n}function parseEventHintOrCaptureContext(r){if(r)return hintIsScopeOrFunction(r)?{captureContext:r}:hintIsScopeContext(r)?{captureContext:r}:r}function hintIsScopeOrFunction(r){return r instanceof Scope||typeof r=="function"}const captureContextKeys=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function hintIsScopeContext(r){return Object.keys(r).some(e=>captureContextKeys.includes(e))}function captureException(r,e){return getCurrentHub().captureException(r,parseEventHintOrCaptureContext(e))}function captureMessage(r,e){const n=typeof e=="string"?e:void 0,o=typeof e!="string"?{captureContext:e}:void 0;return getCurrentHub().captureMessage(r,n,o)}function captureEvent(r,e){return getCurrentHub().captureEvent(r,e)}function addBreadcrumb(r,e){getCurrentHub().addBreadcrumb(r,e)}function withScope(...r){const e=getCurrentHub();if(r.length===2){const[n,o]=r;return n?e.withScope(()=>(e.getStackTop().scope=n,o(n))):e.withScope(o)}return e.withScope(r[0])}function getClient(){return getCurrentHub().getClient()}function getCurrentScope(){return getCurrentHub().getScope()}function startSession(r){const e=getClient(),n=getIsolationScope(),o=getCurrentScope(),{release:s,environment:a=DEFAULT_ENVIRONMENT}=e&&e.getOptions()||{},{userAgent:c}=GLOBAL_OBJ.navigator||{},l=makeSession({release:s,environment:a,user:o.getUser()||n.getUser(),...c&&{userAgent:c},...r}),u=n.getSession();return u&&u.status==="ok"&&updateSession(u,{status:"exited"}),endSession(),n.setSession(l),o.setSession(l),l}function endSession(){const r=getIsolationScope(),e=getCurrentScope(),n=e.getSession()||r.getSession();n&&closeSession(n),_sendSessionUpdate(),r.setSession(),e.setSession()}function _sendSessionUpdate(){const r=getIsolationScope(),e=getCurrentScope(),n=getClient(),o=e.getSession()||r.getSession();o&&n&&n.captureSession&&n.captureSession(o)}function captureSession(r=!1){if(r){endSession();return}_sendSessionUpdate()}function getRootSpan(r){return r.transaction}function getDynamicSamplingContextFromClient(r,e,n){const o=e.getOptions(),{publicKey:s}=e.getDsn()||{},{segment:a}=n&&n.getUser()||{},c=dropUndefinedKeys({environment:o.environment||DEFAULT_ENVIRONMENT,release:o.release,user_segment:a,public_key:s,trace_id:r});return e.emit&&e.emit("createDsc",c),c}function getDynamicSamplingContextFromSpan(r){const e=getClient();if(!e)return{};const n=getDynamicSamplingContextFromClient(spanToJSON(r).trace_id||"",e,getCurrentScope()),o=getRootSpan(r);if(!o)return n;const s=o&&o._frozenDynamicSamplingContext;if(s)return s;const{sampleRate:a,source:c}=o.metadata;a!=null&&(n.sample_rate="".concat(a));const l=spanToJSON(o);return c&&c!=="url"&&(n.transaction=l.description),n.sampled=String(spanIsSampled(o)),e.emit&&e.emit("createDsc",n),n}function applyScopeDataToEvent(r,e){const{fingerprint:n,span:o,breadcrumbs:s,sdkProcessingMetadata:a}=e;applyDataToEvent(r,e),o&&applySpanToEvent(r,o),applyFingerprintToEvent(r,n),applyBreadcrumbsToEvent(r,s),applySdkMetadataToEvent(r,a)}function mergeScopeData(r,e){const{extra:n,tags:o,user:s,contexts:a,level:c,sdkProcessingMetadata:l,breadcrumbs:u,fingerprint:d,eventProcessors:f,attachments:p,propagationContext:b,transactionName:m,span:C}=e;mergeAndOverwriteScopeData(r,"extra",n),mergeAndOverwriteScopeData(r,"tags",o),mergeAndOverwriteScopeData(r,"user",s),mergeAndOverwriteScopeData(r,"contexts",a),mergeAndOverwriteScopeData(r,"sdkProcessingMetadata",l),c&&(r.level=c),m&&(r.transactionName=m),C&&(r.span=C),u.length&&(r.breadcrumbs=[...r.breadcrumbs,...u]),d.length&&(r.fingerprint=[...r.fingerprint,...d]),f.length&&(r.eventProcessors=[...r.eventProcessors,...f]),p.length&&(r.attachments=[...r.attachments,...p]),r.propagationContext={...r.propagationContext,...b}}function mergeAndOverwriteScopeData(r,e,n){if(n&&Object.keys(n).length){r[e]={...r[e]};for(const o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[e][o]=n[o])}}function applyDataToEvent(r,e){const{extra:n,tags:o,user:s,contexts:a,level:c,transactionName:l}=e,u=dropUndefinedKeys(n);u&&Object.keys(u).length&&(r.extra={...u,...r.extra});const d=dropUndefinedKeys(o);d&&Object.keys(d).length&&(r.tags={...d,...r.tags});const f=dropUndefinedKeys(s);f&&Object.keys(f).length&&(r.user={...f,...r.user});const p=dropUndefinedKeys(a);p&&Object.keys(p).length&&(r.contexts={...p,...r.contexts}),c&&(r.level=c),l&&(r.transaction=l)}function applyBreadcrumbsToEvent(r,e){const n=[...r.breadcrumbs||[],...e];r.breadcrumbs=n.length?n:void 0}function applySdkMetadataToEvent(r,e){r.sdkProcessingMetadata={...r.sdkProcessingMetadata,...e}}function applySpanToEvent(r,e){r.contexts={trace:spanToTraceContext(e),...r.contexts};const n=getRootSpan(e);if(n){r.sdkProcessingMetadata={dynamicSamplingContext:getDynamicSamplingContextFromSpan(e),...r.sdkProcessingMetadata};const o=spanToJSON(n).description;o&&(r.tags={transaction:o,...r.tags})}}function applyFingerprintToEvent(r,e){r.fingerprint=r.fingerprint?arrayify(r.fingerprint):[],e&&(r.fingerprint=r.fingerprint.concat(e)),r.fingerprint&&!r.fingerprint.length&&delete r.fingerprint}const DEFAULT_MAX_BREADCRUMBS=100;let globalScope;class Scope{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=generatePropagationContext()}static clone(e){return e?e.clone():new Scope}clone(){const e=new Scope;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._span=this._span,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e}setClient(e){this._client=e}getClient(){return this._client}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&updateSession(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,n){return this._tags={...this._tags,[e]:n},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,n){return this._extra={...this._extra,[e]:n},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,n){return n===null?delete this._contexts[e]:this._contexts[e]=n,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this._span;return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const n=typeof e=="function"?e(this):e;
6if(n instanceof Scope){const o=n.getScopeData();this._tags={...this._tags,...o.tags},this._extra={...this._extra,...o.extra},this._contexts={...this._contexts,...o.contexts},o.user&&Object.keys(o.user).length&&(this._user=o.user),o.level&&(this._level=o.level),o.fingerprint.length&&(this._fingerprint=o.fingerprint),n.getRequestSession()&&(this._requestSession=n.getRequestSession()),o.propagationContext&&(this._propagationContext=o.propagationContext)}else if(isPlainObject(n)){const o=e;this._tags={...this._tags,...o.tags},this._extra={...this._extra,...o.extra},this._contexts={...this._contexts,...o.contexts},o.user&&(this._user=o.user),o.level&&(this._level=o.level),o.fingerprint&&(this._fingerprint=o.fingerprint),o.requestSession&&(this._requestSession=o.requestSession),o.propagationContext&&(this._propagationContext=o.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=generatePropagationContext(),this}addBreadcrumb(e,n){const o=typeof n=="number"?n:DEFAULT_MAX_BREADCRUMBS;if(o<=0)return this;const s={timestamp:dateTimestampInSeconds(),...e},a=this._breadcrumbs;return a.push(s),this._breadcrumbs=a.length>o?a.slice(-o):a,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:e,_attachments:n,_contexts:o,_tags:s,_extra:a,_user:c,_level:l,_fingerprint:u,_eventProcessors:d,_propagationContext:f,_sdkProcessingMetadata:p,_transactionName:b,_span:m}=this;return{breadcrumbs:e,attachments:n,contexts:o,tags:s,extra:a,user:c,level:l,fingerprint:u||[],eventProcessors:d,propagationContext:f,sdkProcessingMetadata:p,transactionName:b,span:m}}applyToEvent(e,n={},o=[]){applyScopeDataToEvent(e,this.getScopeData());const s=[...o,...getGlobalEventProcessors(),...this._eventProcessors];return notifyEventProcessors(s,e,n)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,n){const o=n&&n.event_id?n.event_id:uuid4();if(!this._client)return logger.warn("No client configured on scope - will not capture exception!"),o;const s=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:s,...n,event_id:o},this),o}captureMessage(e,n,o){const s=o&&o.event_id?o.event_id:uuid4();if(!this._client)return logger.warn("No client configured on scope - will not capture message!"),s;const a=new Error(e);return this._client.captureMessage(e,n,{originalException:e,syntheticException:a,...o,event_id:s},this),s}captureEvent(e,n){const o=n&&n.event_id?n.event_id:uuid4();return this._client?(this._client.captureEvent(e,{...n,event_id:o},this),o):(logger.warn("No client configured on scope - will not capture event!"),o)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}function getGlobalScope(){return globalScope||(globalScope=new Scope),globalScope}function generatePropagationContext(){return{traceId:uuid4(),spanId:uuid4().substring(16)}}const SDK_VERSION="7.120.4",API_VERSION=parseFloat(SDK_VERSION),DEFAULT_BREADCRUMBS=100;class Hub{constructor(e,n,o,s=API_VERSION){this._version=s;let a;n?a=n:(a=new Scope,a.setClient(e));let c;o?c=o:(c=new Scope,c.setClient(e)),this._stack=[{scope:a}],e&&this.bindClient(e),this._isolationScope=c}isOlderThan(e){return this._version<e}bindClient(e){const n=this.getStackTop();n.client=e,n.scope.setClient(e),e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){const e=this.getScope().clone();
6return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(e){const n=this.pushScope();let o;try{o=e(n)}catch(s){throw this.popScope(),s}return isThenable(o)?o.then(s=>(this.popScope(),s),s=>{throw this.popScope(),s}):(this.popScope(),o)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,n){const o=this._lastEventId=n&&n.event_id?n.event_id:uuid4(),s=new Error("Sentry syntheticException");return this.getScope().captureException(e,{originalException:e,syntheticException:s,...n,event_id:o}),o}captureMessage(e,n,o){const s=this._lastEventId=o&&o.event_id?o.event_id:uuid4(),a=new Error(e);return this.getScope().captureMessage(e,n,{originalException:e,syntheticException:a,...o,event_id:s}),s}captureEvent(e,n){const o=n&&n.event_id?n.event_id:uuid4();return e.type||(this._lastEventId=o),this.getScope().captureEvent(e,{...n,event_id:o}),o}lastEventId(){return this._lastEventId}addBreadcrumb(e,n){const{scope:o,client:s}=this.getStackTop();if(!s)return;const{beforeBreadcrumb:a=null,maxBreadcrumbs:c=DEFAULT_BREADCRUMBS}=s.getOptions&&s.getOptions()||{};if(c<=0)return;const u={timestamp:dateTimestampInSeconds(),...e},d=a?consoleSandbox(()=>a(u,n)):u;d!==null&&(s.emit&&s.emit("beforeAddBreadcrumb",d,n),o.addBreadcrumb(d,c))}setUser(e){this.getScope().setUser(e),this.getIsolationScope().setUser(e)}setTags(e){this.getScope().setTags(e),this.getIsolationScope().setTags(e)}setExtras(e){this.getScope().setExtras(e),this.getIsolationScope().setExtras(e)}setTag(e,n){this.getScope().setTag(e,n),this.getIsolationScope().setTag(e,n)}setExtra(e,n){this.getScope().setExtra(e,n),this.getIsolationScope().setExtra(e,n)}setContext(e,n){this.getScope().setContext(e,n),this.getIsolationScope().setContext(e,n)}configureScope(e){const{scope:n,client:o}=this.getStackTop();o&&e(n)}run(e){const n=makeMain(this);try{e(this)}finally{makeMain(n)}}getIntegration(e){const n=this.getClient();if(!n)return null;try{return n.getIntegration(e)}catch(o){return DEBUG_BUILD$1&&logger.warn("Cannot retrieve integration ".concat(e.id," from the current Hub")),null}}startTransaction(e,n){const o=this._callExtensionMethod("startTransaction",e,n);return DEBUG_BUILD$1&&!o&&(this.getClient()?logger.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):logger.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),o}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const n=this.getStackTop().scope,o=n.getSession();o&&closeSession(o),this._sendSessionUpdate(),n.setSession()}startSession(e){const{scope:n,client:o}=this.getStackTop(),{release:s,environment:a=DEFAULT_ENVIRONMENT}=o&&o.getOptions()||{},{userAgent:c}=GLOBAL_OBJ.navigator||{},l=makeSession({release:s,environment:a,user:n.getUser(),...c&&{userAgent:c},...e}),u=n.getSession&&n.getSession();return u&&u.status==="ok"&&updateSession(u,{status:"exited"}),this.endSession(),n.setSession(l),l}shouldSendDefaultPii(){const e=this.getClient(),n=e&&e.getOptions();return!!(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:n}=this.getStackTop(),o=e.getSession();o&&n&&n.captureSession&&n.captureSession(o)}_callExtensionMethod(e,...n){const s=getMainCarrier().__SENTRY__;if(s&&s.extensions&&typeof s.extensions[e]=="function")return s.extensions[e].apply(this,n);DEBUG_BUILD$1&&logger.warn("Extension method ".concat(e," couldn't be found, doing nothing."))}}function getMainCarrier(){return GLOBAL_OBJ.__SENTRY__=GLOBAL_OBJ.__SENTRY__||{extensions:{},hub:void 0},GLOBAL_OBJ}function makeMain(r){const e=getMainCarrier(),n=getHubFromCarrier(e);return setHubOnCarrier(e,r),n}function getCurrentHub(){const r=getMainCarrier();if(r.__SENTRY__&&r.__SENTRY__.acs){const e=r.__SENTRY__.acs.getCurrentHub();if(e)return e}return getGlobalHub(r)}function getIsolationScope(){return getCurrentHub().getIsolationScope()}function getGlobalHub(r=getMainCarrier()){return(!hasHubOnCarrier(r)||getHubFromCarrier(r).isOlderThan(API_VERSION))&&setHubOnCarrier(r,new Hub),getHubFromCarrier(r)}function hasHubOnCarrier(r){return!!(r&&r.__SENTRY__&&r.__SENTRY__.hub)}function getHubFromCarrier(r){return getGlobalSingleton("hub",()=>new Hub,r)}function setHubOnCarrier(r,e){if(!r)return!1;const n=r.__SENTRY__=r.__SENTRY__||{};return n.hub=e,!0}function enhanceEventWithSdkInfo(r,e){return e&&(r.sdk=r.sdk||{},r.sdk.name=r.sdk.name||e.name,r.sdk.version=r.sdk.version||e.version,r.sdk.integrations=[...r.sdk.integrations||[],...e.integrations||[]],r.sdk.packages=[...r.sdk.packages||[],...e.packages||[]]),r}function createSessionEnvelope(r,e,n,o){const s=getSdkMetadataForEnvelopeHeader(n),a={sent_at:new Date().toISOString(),...s&&{sdk:s},...!!o&&e&&{dsn:dsnToString(e)}},c="aggregates"in r?[{type:"sessions"},r]:[{type:"session"},r.toJSON()];return createEnvelope(a,[c])}function createEventEnvelope(r,e,n,o){const s=getSdkMetadataForEnvelopeHeader(n),a=r.type&&r.type!=="replay_event"?r.type:"event";enhanceEventWithSdkInfo(r,n&&n.sdk);const c=createEventEnvelopeHeaders(r,s,o,e);return delete r.sdkProcessingMetadata,createEnvelope(c,[[{type:a},r]])}const SENTRY_API_VERSION="7";function getBaseApiEndpoint(r){const e=r.protocol?"".concat(r.protocol,":"):"",n=r.port?":".concat(r.port):"";return"".concat(e,"//").concat(r.host).concat(n).concat(r.path?"/".concat(r.path):"","/api/")}function _getIngestEndpoint(r){return"".concat(getBaseApiEndpoint(r)).concat(r.projectId,"/envelope/")}function _encodedAuth(r,e){return urlEncode({sentry_key:r.publicKey,sentry_version:SENTRY_API_VERSION,...e&&{sentry_client:"".concat(e.name,"/").concat(e.version)}})}function getEnvelopeEndpointWithUrlEncodedAuth(r,e={}){const n=typeof e=="string"?e:e.tunnel,o=typeof e=="string"||!e._metadata?void 0:e._metadata.sdk;return n||"".concat(_getIngestEndpoint(r),"?").concat(_encodedAuth(r,o))}const installedIntegrations=[];function filterDuplicates(r){const e={};return r.forEach(n=>{const{name:o}=n,s=e[o];s&&!s.isDefaultInstance&&n.isDefaultInstance||(e[o]=n)}),Object.keys(e).map(n=>e[n])}function getIntegrationsToSetup(r){const e=r.defaultIntegrations||[],n=r.integrations;e.forEach(c=>{c.isDefaultInstance=!0});let o;Array.isArray(n)?o=[...e,...n]:typeof n=="function"?o=arrayify(n(e)):o=e;const s=filterDuplicates(o),a=findIndex(s,c=>c.name==="Debug");if(a!==-1){const[c]=s.splice(a,1);s.push(c)}return s}function setupIntegrations(r,e){const n={};return e.forEach(o=>{o&&setupIntegration(r,o,n)}),n}function afterSetupIntegrations(r,e){for(const n of e)n&&n.afterAllSetup&&n.afterAllSetup(r)}function setupIntegration(r,e,n){if(n[e.name]){DEBUG_BUILD$1&&logger.log("Integration skipped because it was already installed: ".concat(e.name));return}if(n[e.name]=e,installedIntegrations.indexOf(e.name)===-1&&(e.setupOnce(addGlobalEventProcessor,getCurrentHub),installedIntegrations.push(e.name)),e.setup&&typeof e.setup=="function"&&e.setup(r),r.on&&typeof e.preprocessEvent=="function"){const o=e.preprocessEvent.bind(e);r.on("preprocessEvent",(s,a)=>o(s,a,r))}if(r.addEventProcessor&&typeof e.processEvent=="function"){const o=e.processEvent.bind(e),s=(a,c)=>o(a,c,r);s.id=e.name,r.addEventProcessor(s)}DEBUG_BUILD$1&&logger.log("Integration installed: ".concat(e.name))}function findIndex(r,e){for(let n=0;n<r.length;n++)if(e(r[n])===!0)return n;return-1}function defineIntegration(r){return r}function serializeMetricBuckets(r){let e="";for(const n of r){const o=Object.entries(n.tags),s=o.length>0?"|#".concat(o.map(([a,c])=>"".concat(a,":").concat(c)).join(",")):"";e+="".concat(n.name,"@").concat(n.unit,":").concat(n.metric,"|").concat(n.metricType).
6concat(s,"|T").concat(n.timestamp,"\n")}return e}function createMetricEnvelope(r,e,n,o){const s={sent_at:new Date().toISOString()};n&&n.sdk&&(s.sdk={name:n.sdk.name,version:n.sdk.version}),o&&e&&(s.dsn=dsnToString(e));const a=createMetricEnvelopeItem(r);return createEnvelope(s,[a])}function createMetricEnvelopeItem(r){const e=serializeMetricBuckets(r);return[{type:"statsd",length:e.length},e]}const ALREADY_SEEN_ERROR="Not capturing exception because it's already been captured.";class BaseClient{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=makeDsn(e.dsn):DEBUG_BUILD$1&&logger.warn("No DSN provided, client will not send events."),this._dsn){const n=getEnvelopeEndpointWithUrlEncodedAuth(this._dsn,e);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:n})}}captureException(e,n,o){if(checkOrSetAlreadyCaught(e)){DEBUG_BUILD$1&&logger.log(ALREADY_SEEN_ERROR);return}let s=n&&n.event_id;return this._process(this.eventFromException(e,n).then(a=>this._captureEvent(a,n,o)).then(a=>{s=a})),s}captureMessage(e,n,o,s){let a=o&&o.event_id;const c=isParameterizedString(e)?e:String(e),l=isPrimitive(e)?this.eventFromMessage(c,n,o):this.eventFromException(e,o);return this._process(l.then(u=>this._captureEvent(u,o,s)).then(u=>{a=u})),a}captureEvent(e,n,o){if(n&&n.originalException&&checkOrSetAlreadyCaught(n.originalException)){DEBUG_BUILD$1&&logger.log(ALREADY_SEEN_ERROR);return}let s=n&&n.event_id;const c=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,n,c||o).then(l=>{s=l})),s}captureSession(e){typeof e.release!="string"?DEBUG_BUILD$1&&logger.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),updateSession(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const n=this._transport;return n?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(e).then(o=>n.flush(e).then(s=>o&&s))):resolvedSyncPromise(!0)}close(e){return this.flush(e).then(n=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(e){(e&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(e){return this.getIntegrationByName(e)}getIntegrationByName(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(n){return DEBUG_BUILD$1&&logger.warn("Cannot retrieve integration ".concat(e.id," from the current Client")),null}}addIntegration(e){const n=this._integrations[e.name];setupIntegration(this,e,this._integrations),n||afterSetupIntegrations(this,[e])}sendEvent(e,n={}){this.emit("beforeSendEvent",e,n);let o=createEventEnvelope(e,this._dsn,this._options._metadata,this._options.tunnel);for(const a of n.attachments||[])o=addItemToEnvelope(o,createAttachmentEnvelopeItem(a,this._options.transportOptions&&this._options.transportOptions.textEncoder));const s=this._sendEnvelope(o);s&&s.then(a=>
6this.emit("afterSendEvent",e,a),null)}sendSession(e){const n=createSessionEnvelope(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}recordDroppedEvent(e,n,o){if(this._options.sendClientReports){const s=typeof o=="number"?o:1,a="".concat(e,":").concat(n);DEBUG_BUILD$1&&logger.log('Recording outcome: "'.concat(a,'"').concat(s>1?" (".concat(s," times)"):"")),this._outcomes[a]=(this._outcomes[a]||0)+s}}captureAggregateMetrics(e){DEBUG_BUILD$1&&logger.log("Flushing aggregated metrics, number of metrics: ".concat(e.length));const n=createMetricEnvelope(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}on(e,n){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(n)}emit(e,...n){this._hooks[e]&&this._hooks[e].forEach(o=>o(...n))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=setupIntegrations(this,e),afterSetupIntegrations(this,e),this._integrationsInitialized=!0}_updateSessionFromEvent(e,n){let o=!1,s=!1;const a=n.exception&&n.exception.values;if(a){s=!0;for(const u of a){const d=u.mechanism;if(d&&d.handled===!1){o=!0;break}}}const c=e.status==="ok";(c&&e.errors===0||c&&o)&&(updateSession(e,{...o&&{status:"crashed"},errors:e.errors||Number(s||o)}),this.captureSession(e))}_isClientDoneProcessing(e){return new SyncPromise(n=>{let o=0;const s=1,a=setInterval(()=>{this._numProcessing==0?(clearInterval(a),n(!0)):(o+=s,e&&o>=e&&(clearInterval(a),n(!1)))},s)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,n,o,s=getIsolationScope()){const a=this.getOptions(),c=Object.keys(this._integrations);return!n.integrations&&c.length>0&&(n.integrations=c),this.emit("preprocessEvent",e,n),prepareEvent(a,e,n,o,this,s).then(l=>{if(l===null)return l;const u={...s.getPropagationContext(),...o?o.getPropagationContext():void 0};if(!(l.contexts&&l.contexts.trace)&&u){const{traceId:f,spanId:p,parentSpanId:b,dsc:m}=u;l.contexts={trace:{trace_id:f,span_id:p,parent_span_id:b},...l.contexts};const C=m||getDynamicSamplingContextFromClient(f,this,o);l.sdkProcessingMetadata={dynamicSamplingContext:C,...l.sdkProcessingMetadata}}return l})}_captureEvent(e,n={},o){return this._processEvent(e,n,o).then(s=>s.event_id,s=>{if(DEBUG_BUILD$1){const a=s;a.logLevel==="log"?logger.log(a.message):logger.warn(a)}})}_processEvent(e,n,o){const s=this.getOptions(),{sampleRate:a}=s,c=isTransactionEvent(e),l=isErrorEvent(e),u=e.type||"error",d="before send for type `".concat(u,"`");
6if(l&&typeof a=="number"&&Math.random()>a)return this.recordDroppedEvent("sample_rate","error",e),rejectedSyncPromise(new SentryError("Discarding event because it's not included in the random sample (sampling rate = ".concat(a,")"),"log"));const f=u==="replay_event"?"replay":u,b=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,n,o,b).then(m=>{if(m===null)throw this.recordDroppedEvent("event_processor",f,e),new SentryError("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return m;const O=processBeforeSend(s,m,n);return _validateBeforeSendResult(O,d)}).then(m=>{if(m===null){if(this.recordDroppedEvent("before_send",f,e),c){const B=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",B)}throw new SentryError("".concat(d," returned `null`, will not send event."),"log")}const C=o&&o.getSession();if(!c&&C&&this._updateSessionFromEvent(C,m),c){const I=m.sdkProcessingMetadata&&m.sdkProcessingMetadata.spanCountBeforeProcessing||0,B=m.spans?m.spans.length:0,G=I-B;G>0&&this.recordDroppedEvent("before_send","span",G)}const O=m.transaction_info;if(c&&O&&m.transaction!==e.transaction){const I="custom";m.transaction_info={...O,source:I}}return this.sendEvent(m,n),m}).then(null,m=>{throw m instanceof SentryError?m:(this.captureException(m,{data:{__sentry__:!0},originalException:m}),new SentryError("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ".concat(m)))})}_process(e){this._numProcessing++,e.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,n=>{DEBUG_BUILD$1&&logger.error("Error while sending event:",n)});DEBUG_BUILD$1&&logger.error("Transport disabled")}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map(n=>{const[o,s]=n.split(":");return{reason:o,category:s,quantity:e[n]}})}}function _validateBeforeSendResult(r,e){const n="".concat(e," must return `null` or a valid event.");if(isThenable(r))return r.then(o=>{if(!isPlainObject(o)&&o!==null)throw new SentryError(n);return o},o=>{throw new SentryError("".concat(e," rejected with ").concat(o))});if(!isPlainObject(r)&&r!==null)throw new SentryError(n);return r}function processBeforeSend(r,e,n){const{beforeSend:o,beforeSendTransaction:s}=r;if(isErrorEvent(e)&&o)return o(e,n);if(isTransactionEvent(e)&&s){if(e.spans){const a=e.spans.length;e.sdkProcessingMetadata={...e.sdkProcessingMetadata,spanCountBeforeProcessing:a}}return s(e,n)}return e}function isErrorEvent(r){return r.type===void 0}function isTransactionEvent(r){return r.type==="transaction"}function initAndBind(r,e){e.debug===!0&&(DEBUG_BUILD$1?logger.enable():consoleSandbox(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),getCurrentScope().update(e.initialScope);const o=new r(e);setCurrentClient(o),initializeClient(o)}function setCurrentClient(r){const n=getCurrentHub().getStackTop();n.client=r,n.scope.setClient(r)}function initializeClient(r){r.init?r.init():r.setupIntegrations&&r.setupIntegrations()}const DEFAULT_TRANSPORT_BUFFER_SIZE=30;function createTransport(r,e,n=makePromiseBuffer(r.bufferSize||DEFAULT_TRANSPORT_BUFFER_SIZE)){let o={};const s=c=>n.drain(c);function a(c){const l=[];if(forEachEnvelopeItem(c,(p,b)=>{const m=envelopeItemTypeToDataCategory(b);if(isRateLimited(o,m)){const C=getEventForEnvelopeItem(p,b);r.recordDroppedEvent("ratelimit_backoff",m,C)}else l.push(p)}),l.length===0)return resolvedSyncPromise();const u=createEnvelope(c[0],l),d=p=>{forEachEnvelopeItem(u,(b,m)=>{const C=getEventForEnvelopeItem(b,m);r.recordDroppedEvent(p,envelopeItemTypeToDataCategory(m),C)})},f=()=>e({body:serializeEnvelope(u,r.textEncoder)}).then(p=>(p.statusCode!==void 0&&(p.statusCode<200||p.statusCode>=300)&&DEBUG_BUILD$1&&logger.warn("Sentry responded with status code ".concat(p.statusCode," to sent event.")),o=updateRateLimits(o,p),p),p=>{throw d("network_error"),p});return n.add(f).then(p=>p,p=>{if(p instanceof SentryError)return DEBUG_BUILD$1&&logger.error("Skipped sending event because buffer is full."),d("queue_overflow"),resolvedSyncPromise();throw p})}return a.__sentry__baseTransport__=!0,{send:a,flush:s}}function getEventForEnvelopeItem(r,e){if(!(e!=="event"&&e!=="transaction"))return Array.isArray(r)?r[1]:void 0}function applySdkMetadata(r,e,n=[e],o="npm"){const s=r._metadata||{};s.sdk||(s.sdk={name:"sentry.javascript.".concat(e),packages:n.map(a=>({name:"".concat(o,":@sentry/").concat(a),version:SDK_VERSION})),version:SDK_VERSION}),r._metadata=s}
6const DEFAULT_IGNORE_ERRORS=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],DEFAULT_IGNORE_TRANSACTIONS=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],INTEGRATION_NAME$7="InboundFilters",_inboundFiltersIntegration=((r={})=>({name:INTEGRATION_NAME$7,setupOnce(){},processEvent(e,n,o){const s=o.getOptions(),a=_mergeOptions(r,s);return _shouldDropEvent$1(e,a)?null:e}})),inboundFiltersIntegration=_inboundFiltersIntegration;function _mergeOptions(r={},e={}){return{allowUrls:[...r.allowUrls||[],...e.allowUrls||[]],denyUrls:[...r.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...r.ignoreErrors||[],...e.ignoreErrors||[],...r.disableErrorDefaults?[]:DEFAULT_IGNORE_ERRORS],ignoreTransactions:[...r.ignoreTransactions||[],...e.ignoreTransactions||[],...r.disableTransactionDefaults?[]:DEFAULT_IGNORE_TRANSACTIONS],ignoreInternal:r.ignoreInternal!==void 0?r.ignoreInternal:!0}}function _shouldDropEvent$1(r,e){return e.ignoreInternal&&_isSentryError(r)?(DEBUG_BUILD$1&&logger.warn("Event dropped due to being internal Sentry Error.\nEvent: ".concat(getEventDescription(r))),!0):_isIgnoredError(r,e.ignoreErrors)?(DEBUG_BUILD$1&&logger.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: ".concat(getEventDescription(r))),!0):_isIgnoredTransaction(r,e.ignoreTransactions)?(DEBUG_BUILD$1&&logger.warn("Event dropped due to being matched by `ignoreTransactions` option.\nEvent: ".concat(getEventDescription(r))),!0):_isDeniedUrl(r,e.denyUrls)?(DEBUG_BUILD$1&&logger.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: ".concat(getEventDescription(r),".\nUrl: ").concat(_getEventFilterUrl(r))),!0):_isAllowedUrl(r,e.allowUrls)?!1:(DEBUG_BUILD$1&&logger.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: ".concat(getEventDescription(r),".\nUrl: ").concat(_getEventFilterUrl(r))),!0)}function _isIgnoredError(r,e){return r.type||!e||!e.length?!1:_getPossibleEventMessages(r).some(n=>stringMatchesSomePattern(n,e))}function _isIgnoredTransaction(r,e){if(r.type!=="transaction"||!e||!e.length)return!1;const n=r.transaction;return n?stringMatchesSomePattern(n,e):!1}function _isDeniedUrl(r,e){if(!e||!e.length)return!1;const n=_getEventFilterUrl(r);return n?stringMatchesSomePattern(n,e):!1}function _isAllowedUrl(r,e){if(!e||!e.length)return!0;const n=_getEventFilterUrl(r);return n?stringMatchesSomePattern(n,e):!0}function _getPossibleEventMessages(r){const e=[];r.message&&e.push(r.message);let n;try{n=r.exception.values[r.exception.values.length-1]}catch(o){}return n&&n.value&&(e.push(n.value),n.type&&e.push("".concat(n.type,": ").concat(n.value))),DEBUG_BUILD$1&&e.length===0&&logger.error("Could not extract message for event ".concat(getEventDescription(r))),e}function _isSentryError(r){try{return r.exception.values[0].type==="SentryError"}catch(e){}return!1}function _getLastValidUrl(r=[]){for(let e=r.length-1;e>=0;e--){const n=r[e];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function _getEventFilterUrl(r){try{let e;try{e=r.exception.values[0].stacktrace.frames}catch(n){}return e?_getLastValidUrl(e):null}catch(e){return DEBUG_BUILD$1&&logger.error("Cannot extract url for event ".concat(getEventDescription(r))),null}}let originalFunctionToString;const INTEGRATION_NAME$6="FunctionToString",SETUP_CLIENTS=new WeakMap,_functionToStringIntegration=(()=>({name:INTEGRATION_NAME$6,setupOnce(){originalFunctionToString=Function.prototype.toString;try{Function.prototype.toString=function(...r){const e=getOriginalFunction(this),n=SETUP_CLIENTS.has(getClient())&&e!==void 0?e:this;return originalFunctionToString.apply(n,r)}}catch(r){}},setup(r){SETUP_CLIENTS.set(r,!0)}})),functionToStringIntegration=_functionToStringIntegration,WINDOW=GLOBAL_OBJ;let ignoreOnError=0;function shouldIgnoreOnError(){return ignoreOnError>0}function ignoreNextOnError(){ignoreOnError++,setTimeout(()=>{ignoreOnError--})}function wrap(r,e={}
6,n){if(typeof r!="function")return r;try{const s=r.__sentry_wrapped__;if(s)return typeof s=="function"?s:r;if(getOriginalFunction(r))return r}catch(s){return r}const o=function(){const s=Array.prototype.slice.call(arguments);try{const a=s.map(c=>wrap(c,e));return r.apply(this,a)}catch(a){throw ignoreNextOnError(),withScope(c=>{c.addEventProcessor(l=>(e.mechanism&&(addExceptionTypeValue(l,void 0),addExceptionMechanism(l,e.mechanism)),l.extra={...l.extra,arguments:s},l)),captureException(a)}),a}};try{for(const s in r)Object.prototype.hasOwnProperty.call(r,s)&&(o[s]=r[s])}catch(s){}markFunctionWrapped(o,r),addNonEnumerableProperty(r,"__sentry_wrapped__",o);try{Object.getOwnPropertyDescriptor(o,"name").configurable&&Object.defineProperty(o,"name",{get(){return r.name}})}catch(s){}return o}const DEBUG_BUILD=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function exceptionFromError(r,e){const n=parseStackFrames(r,e),o={type:e&&e.name,value:extractMessage(e)};return n.length&&(o.stacktrace={frames:n}),o.type===void 0&&o.value===""&&(o.value="Unrecoverable error caught"),o}function eventFromPlainObject(r,e,n,o){const s=getClient(),a=s&&s.getOptions().normalizeDepth,c={exception:{values:[{type:isEvent(e)?e.constructor.name:o?"UnhandledRejection":"Error",value:getNonErrorObjectExceptionValue(e,{isUnhandledRejection:o})}]},extra:{__serialized__:normalizeToSize(e,a)}};if(n){const l=parseStackFrames(r,n);l.length&&(c.exception.values[0].stacktrace={frames:l})}return c}function eventFromError(r,e){return{exception:{values:[exceptionFromError(r,e)]}}}function parseStackFrames(r,e){const n=e.stacktrace||e.stack||"",o=getPopSize(e);try{return r(n,o)}catch(s){}return[]}const reactMinifiedRegexp=/Minified React error #\d+;/i;function getPopSize(r){if(r){if(typeof r.framesToPop=="number")return r.framesToPop;if(reactMinifiedRegexp.test(r.message))return 1}return 0}function extractMessage(r){const e=r&&r.message;return e?e.error&&typeof e.error.message=="string"?e.error.message:e:"No error message"}function eventFromException(r,e,n,o){const s=n&&n.syntheticException||void 0,a=eventFromUnknownInput(r,e,s,o);return addExceptionMechanism(a),a.level="error",n&&n.event_id&&(a.event_id=n.event_id),resolvedSyncPromise(a)}function eventFromMessage(r,e,n="info",o,s){const a=o&&o.syntheticException||void 0,c=eventFromString(r,e,a,s);return c.level=n,o&&o.event_id&&(c.event_id=o.event_id),resolvedSyncPromise(c)}function eventFromUnknownInput(r,e,n,o,s){let a;if(isErrorEvent$1(e)&&e.error)return eventFromError(r,e.error);if(isDOMError(e)||isDOMException(e)){const c=e;if("stack"in e)a=eventFromError(r,e);else{const l=c.name||(isDOMError(c)?"DOMError":"DOMException"),u=c.message?"".concat(l,": ").concat(c.message):l;a=eventFromString(r,u,n,o),addExceptionTypeValue(a,u)}return"code"in c&&(a.tags={...a.tags,"DOMException.code":"".concat(c.code)}),a}return isError(e)?eventFromError(r,e):isPlainObject(e)||isEvent(e)?(a=eventFromPlainObject(r,e,n,s),addExceptionMechanism(a,{synthetic:!0}),a):(a=eventFromString(r,e,n,o),addExceptionTypeValue(a,"".concat(e)),addExceptionMechanism(a,{synthetic:!0}),a)}function eventFromString(r,e,n,o){const s={};if(o&&n){const a=parseStackFrames(r,n);a.length&&(s.exception={values:[{value:e,stacktrace:{frames:a}}]})}if(isParameterizedString(e)){const{__sentry_template_string__:a,__sentry_template_values__:c}=e;return s.logentry={message:a,params:c},s}return s.message=e,s}function getNonErrorObjectExceptionValue(r,{isUnhandledRejection:e}){const n=extractExceptionKeysForMessage(r),o=e?"promise rejection":"exception";if(isErrorEvent$1(r))return"Event `ErrorEvent` captured as ".concat(o," with message `").concat(r.message,"`");if(isEvent(r)){const s=getObjectClassName(r);return"Event `".concat(s,"` (type=").concat(r.type,") captured as ").concat(o)}return"Object captured as ".concat(o," with keys: ").concat(n)}function getObjectClassName(r){try{const e=Object.getPrototypeOf(r);return e?e.constructor.name:void 0}catch(e){}}function createUserFeedbackEnvelope(r,{metadata:e,tunnel:n,dsn:o}){const s={event_id:r.event_id,sent_at:new Date().toISOString(),...e&&e.sdk&&{sdk:{name:e.sdk.name,version:e.sdk.version}},...!!n&&!!o&&{dsn:dsnToString(o)}},a=createUserFeedbackEnvelopeItem(r);return createEnvelope(s,[a])}function createUserFeedbackEnvelopeItem(r){return[{type:"user_report"},r]}class BrowserClient extends BaseClient{constructor(e){const n=WINDOW.SENTRY_SDK_SOURCE||getSDKSource();applySdkMetadata(e,"browser",["browser"],n),super(e),e.sendClientReports&&WINDOW.document&&WINDOW.document.addEventListener("visibilitychange",()=>{WINDOW.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(e,n){return eventFromException(this._options.stackParser,e,n,this._options.attachStacktrace)}eventFromMessage(e,n="info",o){return eventFromMessage(this._options.stackParser,e,n,o,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled()){DEBUG_BUILD&&logger.warn("SDK not enabled, will not capture user feedback.");return}const n=createUserFeedbackEnvelope(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(n)}_prepareEvent(e,n,o){return e.platform=e.platform||"javascript",super._prepareEvent(e,n,o)}_flushOutcomes(){const e=this._clearOutcomes();if(e.length===0){DEBUG_BUILD&&logger.log("No outcomes to send");return}if(!this._dsn){DEBUG_BUILD&&logger.log("No dsn provided, will not send outcomes");return}DEBUG_BUILD&&logger.log("Sending outcomes:",e);const n=createClientReportEnvelope(e,this._options.tunnel&&dsnToString(this._dsn));this._sendEnvelope(n)}}let cachedFetchImpl;function getNativeFetchImplementation(){if(cachedFetchImpl)return cachedFetchImpl;if(isNativeFetch(WINDOW.fetch))return cachedFetchImpl=WINDOW.fetch.bind(WINDOW);const r=WINDOW.document;let e=WINDOW.fetch;if(r&&typeof r.createElement=="function")try{const n=r.createElement("iframe");n.hidden=!0,r.head.appendChild(n);const o=n.contentWindow;o&&o.fetch&&(e=o.fetch),r.head.removeChild(n)}catch(n){DEBUG_BUILD&&logger.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n
6)}return cachedFetchImpl=e.bind(WINDOW)}function clearCachedFetchImplementation(){cachedFetchImpl=void 0}function makeFetchTransport(r,e=getNativeFetchImplementation()){let n=0,o=0;function s(a){const c=a.body.length;n+=c,o++;const l={body:a.body,method:"POST",referrerPolicy:"origin",headers:r.headers,keepalive:n<=6e4&&o<15,...r.fetchOptions};try{return e(r.url,l).then(u=>(n-=c,o--,{statusCode:u.status,headers:{"x-sentry-rate-limits":u.headers.get("X-Sentry-Rate-Limits"),"retry-after":u.headers.get("Retry-After")}}))}catch(u){return clearCachedFetchImplementation(),n-=c,o--,rejectedSyncPromise(u)}}return createTransport(r,s)}const XHR_READYSTATE_DONE=4;function makeXHRTransport(r){function e(n){return new SyncPromise((o,s)=>{const a=new XMLHttpRequest;a.onerror=s,a.onreadystatechange=()=>{a.readyState===XHR_READYSTATE_DONE&&o({statusCode:a.status,headers:{"x-sentry-rate-limits":a.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":a.getResponseHeader("Retry-After")}})},a.open("POST",r.url);for(const c in r.headers)Object.prototype.hasOwnProperty.call(r.headers,c)&&a.setRequestHeader(c,r.headers[c]);a.send(n.body)})}return createTransport(r,e)}const UNKNOWN_FUNCTION="?",CHROME_PRIORITY=30,WINJS_PRIORITY=40,GECKO_PRIORITY=50;function createFrame(r,e,n,o){const s={filename:r,function:e,in_app:!0};return n!==void 0&&(s.lineno=n),o!==void 0&&(s.colno=o),s}const chromeRegex=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,chromeEvalRegex=/\((\S*)(?::(\d+))(?::(\d+))\)/,chromeStackParserFn=r=>{const e=chromeRegex.exec(r);if(e){if(e[2]&&e[2].indexOf("eval")===0){const a=chromeEvalRegex.exec(e[2]);a&&(e[2]=a[1],e[3]=a[2],e[4]=a[3])}const[o,s]=extractSafariExtensionDetails(e[1]||UNKNOWN_FUNCTION,e[2]);return createFrame(s,o,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}},chromeStackLineParser=[CHROME_PRIORITY,chromeStackParserFn],geckoREgex=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,geckoEvalRegex=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,gecko=r=>{const e=geckoREgex.exec(r);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const a=geckoEvalRegex.exec(e[3]);a&&(e[1]=e[1]||"eval",e[3]=a[1],e[4]=a[2],e[5]="")}let o=e[3],s=e[1]||UNKNOWN_FUNCTION;return[s,o]=extractSafariExtensionDetails(s,o),createFrame(o,s,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},geckoStackLineParser=[GECKO_PRIORITY,gecko],winjsRegex=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,winjs=r=>{const e=winjsRegex.exec(r);return e?createFrame(e[2],e[1]||UNKNOWN_FUNCTION,+e[3],e[4]?+e[4]:void 0):void 0},winjsStackLineParser=[WINJS_PRIORITY,winjs],defaultStackLineParsers=[chromeStackLineParser,geckoStackLineParser,winjsStackLineParser],defaultStackParser=createStackParser(...defaultStackLineParsers),extractSafariExtensionDetails=(r,e)=>{const n=r.indexOf("safari-extension")!==-1,o=r.indexOf("safari-web-extension")!==-1;return n||o?[r.indexOf("@")!==-1?r.split("@")[0]:UNKNOWN_FUNCTION,n?"safari-extension:".concat(e):"safari-web-extension:".concat(e)]:[r,e]},MAX_ALLOWED_STRING_LENGTH=1024,INTEGRATION_NAME$5="Breadcrumbs",_breadcrumbsIntegration=((r={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...r};return{name:INTEGRATION_NAME$5,setupOnce(){},setup(n){e.console&&addConsoleInstrumentationHandler(_getConsoleBreadcrumbHandler(n)),e.dom&&addClickKeypressInstrumentationHandler(_getDomBreadcrumbHandler(n,e.dom)),e.xhr&&addXhrInstrumentationHandler(_getXhrBreadcrumbHandler(n)),e.fetch&&addFetchInstrumentationHandler(_getFetchBreadcrumbHandler(n)),e.history&&addHistoryInstrumentationHandler(_getHistoryBreadcrumbHandler(n)),e.sentry&&n.on&&n.on("beforeSendEvent",_getSentryBreadcrumbHandler(n))}}}),breadcrumbsIntegration=_breadcrumbsIntegration;function _getSentryBreadcrumbHandler(r){return function(n){getClient()===r&&addBreadcrumb({category:"sentry.".concat(n.type==="transaction"?"transaction":"event"),event_id:n.event_id,level:n.level,message:getEventDescription(n)},{event:n})}}
6function _getDomBreadcrumbHandler(r,e){return function(o){if(getClient()!==r)return;let s,a,c=typeof e=="object"?e.serializeAttribute:void 0,l=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;l&&l>MAX_ALLOWED_STRING_LENGTH&&(DEBUG_BUILD&&logger.warn("`dom.maxStringLength` cannot exceed ".concat(MAX_ALLOWED_STRING_LENGTH,", but a value of ").concat(l," was configured. Sentry will use ").concat(MAX_ALLOWED_STRING_LENGTH," instead.")),l=MAX_ALLOWED_STRING_LENGTH),typeof c=="string"&&(c=[c]);try{const d=o.event,f=_isEvent(d)?d.target:d;s=htmlTreeAsString(f,{keyAttrs:c,maxStringLength:l}),a=getComponentName(f)}catch(d){s="<unknown>"}if(s.length===0)return;const u={category:"ui.".concat(o.name),message:s};a&&(u.data={"ui.component_name":a}),addBreadcrumb(u,{event:o.event,name:o.name,global:o.global})}}function _getConsoleBreadcrumbHandler(r){return function(n){if(getClient()!==r)return;const o={category:"console",data:{arguments:n.args,logger:"console"},level:severityLevelFromString(n.level),message:safeJoin(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)o.message="Assertion failed: ".concat(safeJoin(n.args.slice(1)," ")||"console.assert"),o.data.arguments=n.args.slice(1);else return;addBreadcrumb(o,{input:n.args,level:n.level})}}function _getXhrBreadcrumbHandler(r){return function(n){if(getClient()!==r)return;const{startTimestamp:o,endTimestamp:s}=n,a=n.xhr[SENTRY_XHR_DATA_KEY];if(!o||!s||!a)return;const{method:c,url:l,status_code:u,body:d}=a,f={method:c,url:l,status_code:u},p={xhr:n.xhr,input:d,startTimestamp:o,endTimestamp:s};addBreadcrumb({category:"xhr",data:f,type:"http"},p)}}function _getFetchBreadcrumbHandler(r){return function(n){if(getClient()!==r)return;const{startTimestamp:o,endTimestamp:s}=n;if(s&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const a=n.fetchData,c={data:n.error,input:n.args,startTimestamp:o,endTimestamp:s};addBreadcrumb({category:"fetch",data:a,level:"error",type:"http"},c)}else{const a=n.response,c={...n.fetchData,status_code:a&&a.status},l={input:n.args,response:a,startTimestamp:o,endTimestamp:s};addBreadcrumb({category:"fetch",data:c,type:"http"},l)}}}function _getHistoryBreadcrumbHandler(r){return function(n){if(getClient()!==r)return;let o=n.from,s=n.to;const a=parseUrl(WINDOW.location.href);let c=o?parseUrl(o):void 0;const l=parseUrl(s);(!c||!c.path)&&(c=a),a.protocol===l.protocol&&a.host===l.host&&(s=l.relative),a.protocol===c.protocol&&a.host===c.host&&(o=c.relative),addBreadcrumb({category:"navigation",data:{from:o,to:s}})}}function _isEvent(r){return!!r&&!!r.target}const INTEGRATION_NAME$4="Dedupe",_dedupeIntegration=(()=>{let r;return{name:INTEGRATION_NAME$4,setupOnce(){},processEvent(e){if(e.type)return e;try{if(_shouldDropEvent(e,r))return DEBUG_BUILD&&logger.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(n){}return r=e}}}),dedupeIntegration=_dedupeIntegration;function _shouldDropEvent(r,e){return e?!!(_isSameMessageEvent(r,e)||_isSameExceptionEvent(r,e)):!1}function _isSameMessageEvent(r,e){const n=r.message,o=e.message;return!(!n&&!o||n&&!o||!n&&o||n!==o||!_isSameFingerprint(r,e)||!_isSameStacktrace(r,e))}function _isSameExceptionEvent(r,e){const n=_getExceptionFromEvent(e),o=_getExceptionFromEvent(r);return!(!n||!o||n.type!==o.type||n.value!==o.value||!_isSameFingerprint(r,e)||!_isSameStacktrace(r,e))}function _isSameStacktrace(r,e){let n=_getFramesFromEvent(r),o=_getFramesFromEvent(e);if(!n&&!o)return!0;if(n&&!o||!n&&o||(n=n,o=o,o.length!==n.length))return!1;for(let s=0;s<o.length;s++){const a=o[s],c=n[s];if(a.filename!==c.filename||a.lineno!==c.lineno||a.colno!==c.colno||a.function!==c.function)return!1}return!0}function _isSameFingerprint(r,e){let n=r.fingerprint,o=e.fingerprint;if(!n&&!o)return!0;if(n&&!o||!n&&o)return!1;n=n,o=o;try{return n.join("")===o.join("")}catch(s){return!1}}function _getExceptionFromEvent(r){return r.exception&&r.exception.values&&r.exception.values[0]}function _getFramesFromEvent(r){const e=r.exception;if(e)try{return e.values[0].stacktrace.frames}catch(n){return}}const INTEGRATION_NAME$3="GlobalHandlers",_globalHandlersIntegration=((r={})=>{const e={onerror:!0,onunhandledrejection:!0,...r};return{name:INTEGRATION_NAME$3,setupOnce(){Error.stackTraceLimit=50},setup(n){e.onerror&&(_installGlobalOnErrorHandler(n),globalHandlerLog("onerror")),e.onunhandledrejection&&(_installGlobalOnUnhandledRejectionHandler(n),globalHandlerLog("onunhandledrejection"))}}}),globalHandlersIntegration=_globalHandlersIntegration;function _installGlobalOnErrorHandler(r){addGlobalErrorInstrumentationHandler(e=>{const{stackParser:n,attachStacktrace:o}=getOptions();if(getClient()!==r||shouldIgnoreOnError())return;const{msg:s,url:a,line:c,column:l,error:u}=e,d=u===void 0&&isString(s)?_eventFromIncompleteOnError(s,a,c,l):_enhanceEventWithInitialFrame(eventFromUnknownInput(n,u||s,void 0,o,!1),a,c,l);d.level="error",captureEvent(d,{originalException:u,mechanism:{handled:!1,type:"onerror"}})})}function _installGlobalOnUnhandledRejectionHandler(r){addGlobalUnhandledRejectionInstrumentationHandler(e=>{const{stackParser:n,attachStacktrace:o}=getOptions();if(getClient()!==r||shouldIgnoreOnError())return;const s=_getUnhandledRejectionError(e),a=isPrimitive(s)?_eventFromRejectionWithPrimitive(s):eventFromUnknownInput(n,s,void 0,o,!0);a.level="error",captureEvent(a,{originalException:s,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function _getUnhandledRejectionError(r){if(isPrimitive(r))return r;const e=r;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(n){}return r}function _eventFromRejectionWithPrimitive(r){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: ".concat(String(r))}]}}}function _eventFromIncompleteOnError(r,e,n,o){const s=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let a=isErrorEvent$1(r)?r.message:r,c="Error";const l=a.match(s);return l&&(c=l[1],a=l[2]),_enhanceEventWithInitialFrame({exception:{values:[{type:c,value:a}]}},e,n,o)}function _enhanceEventWithInitialFrame(r,e,n,o){const s=r.exception=r.exception||{},a=s.values=s.values||[],c=a[0]=a[0]||{},l=c.stacktrace=c.stacktrace||{},u=l.frames=l.frames||[],d=isNaN(parseInt(o,10))?void 0:o,f=isNaN(parseInt(n,10))?void 0:n,p=isString(e)&&e.length>0?e:getLocationHref();return u.length===0&&u.push({colno:d,filename:p,function:"?",in_app:!0,lineno:f}),r}function globalHandlerLog(r){DEBUG_BUILD&&logger.log("Global Handler attached: ".concat(r))}function getOptions(){const r=getClient();return r&&r.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const INTEGRATION_NAME$2="HttpContext",_httpContextIntegration=(()=>({name:INTEGRATION_NAME$2,setupOnce(){},preprocessEvent(r){if(!WINDOW.navigator&&!WINDOW.location&&!WINDOW.document)return;const e=r.request&&r.request.url||WINDOW.location&&WINDOW.location.href,{referrer:n}=WINDOW.document||{},{userAgent:o}=WINDOW.navigator||{},s={...r.request&&r.request.headers,...n&&{Referer:n},...o&&{"User-Agent":o}},a={...r.request,...e&&{url:e},headers:s};r.request=a}})),httpContextIntegration=_httpContextIntegration,DEFAULT_KEY="cause",DEFAULT_LIMIT=5,INTEGRATION_NAME$1="LinkedErrors",_linkedErrorsIntegration=((r={})=>{const e=r.limit||DEFAULT_LIMIT,n=r.key||DEFAULT_KEY;return{name:INTEGRATION_NAME$1,setupOnce(){},preprocessEvent(o,s,a){const c=a.getOptions();applyAggregateErrorsToEvent(exceptionFromError,c.stackParser,c.maxValueLength,n,e,o,s)}}}),linkedErrorsIntegration=_linkedErrorsIntegration,DEFAULT_EVENT_TARGET=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],INTEGRATION_NAME="TryCatch",_browserApiErrorsIntegration=((r={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...r};return{name:INTEGRATION_NAME,setupOnce(){e.setTimeout&&fill(WINDOW,"setTimeout",_wrapTimeFunction),e.setInterval&&fill(WINDOW,"setInterval",_wrapTimeFunction),e.requestAnimationFrame&&fill(WINDOW,"requestAnimationFrame",_wrapRAF),e.XMLHttpRequest&&"XMLHttpRequest"in WINDOW&&fill(XMLHttpRequest.prototype,"send",_wrapXHR);const n=e.eventTarget;n&&(Array.isArray(n)?n:DEFAULT_EVENT_TARGET).forEach(_wrapEventTarget)}}}),browserApiErrorsIntegration=_browserApiErrorsIntegration;function _wrapTimeFunction(r){return function(...e){const n=e[0];return e[0]=wrap(n,{mechanism:{data:{function:getFunctionName(r)},handled:!1,type:"instrument"}}),r.apply(this,e)}}function _wrapRAF(r){return function(e){return r.apply(this,[wrap(e,{mechanism:{data:{function:"requestAnimationFrame",handler:getFunctionName(r)},handled:!1,type:"instrument"}})])}}function _wrapXHR(r){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(s=>{s in n&&typeof n[s]=="function"&&fill(n,s,function(a){const c={mechanism:{data:{function:s,handler:getFunctionName(a)},handled:!1,type:"instrument"}},l=getOriginalFunction(a);return l&&(c.mechanism.data.handler=getFunctionName(l)),wrap(a,c)})}),r.apply(this,e)}}function _wrapEventTarget(r){const e=WINDOW,n=e[r]&&e[r].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(fill(n,"addEventListener",function(o){return function(s,a,c){try{typeof a.handleEvent=="function"&&(a.handleEvent=wrap(a.handleEvent,{mechanism:{data:{function:"handleEvent",handler:getFunctionName(a),target:r},handled:!1,type:"instrument"}}))}catch(l){}return o.apply(this,[s,wrap(a,{mechanism:{data:{function:"addEventListener",handler:getFunctionName(a),target:r},handled:!1,type:"instrument"}}),c])}}),fill(n,"removeEventListener",function(o){return function(s,a,c){const l=a;try{const u=l&&l.__sentry_wrapped__;u&&o.call(this,s,u,c)}catch(u){}return o.call(this,s,l,c)}}))}const defaultIntegrations=[inboundFiltersIntegration(),functionToStringIntegration(),browserApiErrorsIntegration(),breadcrumbsIntegration(),globalHandlersIntegration(),linkedErrorsIntegration(),dedupeIntegration(),httpContextIntegration()];function getDefaultIntegrations(r){return[...defaultIntegrations]}function init$1(r={}){r.defaultIntegrations===void 0&&(r.defaultIntegrations=getDefaultIntegrations()),r.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(r.release=__SENTRY_RELEASE__),WINDOW.SENTRY_RELEASE&&WINDOW.SENTRY_RELEASE.id&&(r.release=WINDOW.SENTRY_RELEASE.id)),r.autoSessionTracking===void 0&&(r.autoSessionTracking=!0),r.sendClientReports===void 0&&(r.sendClientReports=!0);const e={...r,stackParser:stackParserFromStackParserOptions(r.stackParser||defaultStackParser),integrations:getIntegrationsToSetup(r),transport:r.transport||(supportsFetch()?makeFetchTransport:makeXHRTransport)};initAndBind(BrowserClient,e),r.autoSessionTracking&&startSessionTracking()}function startSessionTracking(){if(typeof WINDOW.document>"u"){DEBUG_BUILD&&logger.warn("Session tracking in non-browser environment with @
6sentry/browser is not supported.");return}startSession({ignoreDuration:!0}),captureSession(),addHistoryInstrumentationHandler(({from:r,to:e})=>{r!==void 0&&r!==e&&(startSession({ignoreDuration:!0}),captureSession())})}class AnimationsExtension extends Extension{async init(){this.page.context.staticMode||this.page.context.compatibilityMode||(this.page.sectionElements.forEach(e=>{try{new SectionAnimator(e).setupAnimations()}catch(n){console.warn("Cannot setup the animation for ".concat(e.id),n),captureException(n,{level:"warning",extra:{section:e.id}})}}),this.page.revealSections())}}function assign(r){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)r[o]=n[o]}return r}var defaultConverter={read:function(r){return r[0]==='"'&&(r=r.slice(1,-1)),r.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(r){return encodeURIComponent(r).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function init(r,e){function n(s,a,c){if(!(typeof document>"u")){c=assign({},e,c),typeof c.expires=="number"&&(c.expires=new Date(Date.now()+c.expires*864e5)),c.expires&&(c.expires=c.expires.toUTCString()),s=encodeURIComponent(s).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var u in c)c[u]&&(l+="; "+u,c[u]!==!0&&(l+="="+c[u].split(";")[0]));return document.cookie=s+"="+r.write(a,s)+l}}function o(s){if(!(typeof document>"u"||arguments.length&&!s)){for(var a=document.cookie?document.cookie.split("; "):[],c={},l=0;l<a.length;l++){var u=a[l].split("="),d=u.slice(1).join("=");try{var f=decodeURIComponent(u[0]);if(c[f]=r.read(d,f),s===f)break}catch(p){}}return s?c[s]:c}}return Object.create({set:n,get:o,remove:function(s,a){n(s,"",assign({},a,{expires:-1}))},withAttributes:function(s){return init(this.converter,assign({},this.attributes,s))},withConverter:function(s){return init(assign({},this.converter,s),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(r)}})}var api$1=init(defaultConverter,{path:"/"});class GdprExtension extends Extension{constructor(){super(...arguments);S(this,"banner",null);S(this,"gdprSettingsLink",null)}
6async init(){var n;if(this.page.context.gdpr.deferScripts&&this.page.context.staticMode){this.displayDisabledContent(),this.banner=document.querySelector(".gdpr-cookie-consent"),(n=this.banner)==null||n.remove();return}if(this.banner=document.querySelector(".gdpr-cookie-consent"),this.gdprSettingsLink=document.querySelector(".js-gdpr-settings"),this.page.context.gdpr.deferScripts||this.displayDisabledContent(),this.page.context.gdpr.enableCookieConsent){let o=!1;switch(api$1.get("gdpr_cookie_consent")){case"accepted":console.log("set to display = accepted"),this.displayDisabledContent(),this.banner&&(this.banner.style.display="none"),this.gtagConsent("default","granted");break;case"declined":this.gtagConsent("default","denied");break;default:o=!0,this.bindCookieConsent(),this.banner&&(this.banner.style.display="block"),this.gtagConsent("default","denied");break}o&&this.bindCookieConsent(),this.bindSettings()}}gtagConsent(n,o){typeof window.gtag=="function"&&window.gtag("consent",n,{ad_storage:o,ad_user_data:o,ad_personalization:o,analytics_storage:o})}bindCookieConsent(){var a,c,l,u;this.gdprSettingsLink&&(this.gdprSettingsLink.style.visibility="hidden"),this.banner&&(this.banner.style.display="block");let n=d=>{d.preventDefault(),api$1.set("gdpr_cookie_consent","accepted",{expires:365}),this.displayDisabledContent(),s(),this.gtagConsent("update","granted")},o=d=>{d.preventDefault(),api$1.set("gdpr_request_cookie_clear","1",{expires:1}),api$1.set("gdpr_cookie_consent","declined",{expires:365}),s(),this.gtagConsent("update","denied"),window.location.reload()},s=()=>{var d,f,p,b;this.banner&&(this.banner.style.display="none"),(f=(d=this.banner)==null?void 0:d.querySelector("a.accept"))==null||f.removeEventListener("click",n),(b=(p=this.banner)==null?void 0:p.querySelector("a.decline"))==null||b.removeEventListener("click",o),this.gdprSettingsLink&&(this.gdprSettingsLink.style.display="inline",this.gdprSettingsLink.style.visibility="")};(c=(a=this.banner)==null?void 0:a.querySelector("a.accept"))==null||c.addEventListener("click",n),(u=(l=this.banner)==null?void 0:l.querySelector("a.decline"))==null||u.addEventListener("click",o)}bindSettings(){this.gdprSettingsLink&&this.gdprSettingsLink.addEventListener("click",n=>{n.preventDefault(),api$1.remove("gdpr_cookie_consent"),this.banner&&(this.banner.style.display="block"),this.bindCookieConsent(),this.gdprSettingsLink&&(this.gdprSettingsLink.style.visibility="visible")})}displayDisabledContent(){this.page.context.gdpr.deferScripts=!1,document.querySelectorAll("template.js-gdpr-deferred").forEach(o=>{var a;const s=o.content.cloneNode(!0);(a=o.parentNode)==null||a.appendChild(s),o.remove()}),this.page.deferredGdprContent.forEach(o=>o()),document.querySelectorAll(".js-gdpr-deferred-iframe").forEach(o=>{var s;o.setAttribute("src",(s=o.dataset.src)!=null?s:""),o.dataset.src="",o.classList.remove("js-gdpr-deferred-iframe"),o.removeAttribute("srcdoc")})}}var waves$1={exports:{}};var waves=waves$1.exports,hasRequiredWaves;function requireWaves(){return hasRequiredWaves||(hasRequiredWaves=1,(function(r,e){(function(n,o){r.exports=o.call(n)})(typeof commonjsGlobal=="object"?commonjsGlobal:waves,function(){var n=n||{},o=document.querySelectorAll.bind(document),s=Object.prototype.toString,a="ontouchstart"in window;function c(y){return y!==null&&y===y.window}function l(y){return c(y)?y:y.nodeType===9&&y.defaultView}function u(y){var E=typeof y;return E==="function"||E==="object"&&!!y}function d(y){return u(y)&&y.nodeType>0}function f(y){var E=s.call(y);return E==="[object String]"?o(y):u(y)&&/^\[object (Array|HTMLCollection|NodeList|Object)\]$/.test(E)&&y.hasOwnProperty("length")?y:d(y)?[y]:[]}function p(y){var E,T,x={top:0,left:0},k=y&&y.ownerDocument;return E=k.documentElement,typeof y.getBoundingClientRect<"u"&&(x=y.getBoundingClientRect()),T=l(k),{top:x.top+T.pageYOffset-E.clientTop,left:x.left+T.pageXOffset-E.clientLeft}}function b(y){var E="";for(var T in y)y.hasOwnProperty(T)&&(E+=T+":"+y[T]+";");return E}var m={duration:750,delay:200,show:function(y,E,T){if(y.button===2)return!1;E=E||this;var x=document.createElement("div");
6x.className="waves-ripple waves-rippling",E.appendChild(x);var k=p(E),g=0,A=0;"touches"in y&&y.touches.length?(g=y.touches[0].pageY-k.top,A=y.touches[0].pageX-k.left):(g=y.pageY-k.top,A=y.pageX-k.left),A=A>=0?A:0,g=g>=0?g:0;var P="scale("+E.clientWidth/100*3+")",$="translate(0,0)";T&&($="translate("+T.x+"px, "+T.y+"px)"),x.setAttribute("data-hold",Date.now()),x.setAttribute("data-x",A),x.setAttribute("data-y",g),x.setAttribute("data-scale",P),x.setAttribute("data-translate",$);var F={top:g+"px",left:A+"px"};x.classList.add("waves-notransition"),x.setAttribute("style",b(F)),x.classList.remove("waves-notransition"),F["-webkit-transform"]=P+" "+$,F["-moz-transform"]=P+" "+$,F["-ms-transform"]=P+" "+$,F["-o-transform"]=P+" "+$,F.transform=P+" "+$,F.opacity="1";var Q=y.type==="mousemove"?2500:m.duration;F["-webkit-transition-duration"]=Q+"ms",F["-moz-transition-duration"]=Q+"ms",F["-o-transition-duration"]=Q+"ms",F["transition-duration"]=Q+"ms",x.setAttribute("style",b(F))},hide:function(y,E){E=E||this;for(var T=E.getElementsByClassName("waves-rippling"),x=0,k=T.length;x<k;x++)O(y,E,T[x]);a&&(E.removeEventListener("touchend",m.hide),E.removeEventListener("touchcancel",m.hide)),E.removeEventListener("mouseup",m.hide),E.removeEventListener("mouseleave",m.hide)}},C={input:function(y){var E=y.parentNode;if(!(E.tagName.toLowerCase()==="i"&&E.classList.contains("waves-effect"))){var T=document.createElement("i");T.className=y.className+" waves-input-wrapper",y.className="waves-button-input",E.replaceChild(T,y),T.appendChild(y);var x=window.getComputedStyle(y,null),k=x.color,g=x.backgroundColor;T.setAttribute("style","color:"+k+";background:"+g),y.setAttribute("style","background-color:rgba(0,0,0,0);")}},img:function(y){var E=y.parentNode;if(!(E.tagName.toLowerCase()==="i"&&E.classList.contains("waves-effect"))){var T=document.createElement("i");E.replaceChild(T,y),T.appendChild(y)}}};function O(y,E,T){if(T){T.classList.remove("waves-rippling");var x=T.getAttribute("data-x"),k=T.getAttribute("data-y"),g=T.getAttribute("data-scale"),A=T.getAttribute("data-translate"),P=Date.now()-Number(T.getAttribute("data-hold")),$=350-P;$<0&&($=0),y.type==="mousemove"&&($=150);var F=y.type==="mousemove"?2500:m.duration;setTimeout(function(){var Q={top:k+"px",left:x+"px",opacity:"0","-webkit-transition-duration":F+"ms","-moz-transition-duration":F+"ms","-o-transition-duration":F+"ms","transition-duration":F+"ms","-webkit-transform":g+" "+A,"-moz-transform":g+" "+A,"-ms-transform":g+" "+A,"-o-transform":g+" "+A,transform:g+" "+A};T.setAttribute("style",b(Q)),setTimeout(function(){try{E.removeChild(T)}catch(ie){return!1}},F)},$)}}var I={touches:0,allowEvent:function(y){var E=!0;return/^(mousedown|mousemove)$/.test(y.type)&&I.touches&&(E=!1),E}
6,registerEvent:function(y){var E=y.type;E==="touchstart"?I.touches+=1:/^(touchend|touchcancel)$/.test(E)&&setTimeout(function(){I.touches&&(I.touches-=1)},500)}};function B(y){if(I.allowEvent(y)===!1)return null;for(var E=null,T=y.target||y.srcElement;T.parentElement;){if(!(T instanceof SVGElement)&&T.classList.contains("waves-effect")){E=T;break}T=T.parentElement}return E}function G(y){var E=B(y);if(E!==null){if(E.disabled||E.getAttribute("disabled")||E.classList.contains("disabled"))return;if(I.registerEvent(y),y.type==="touchstart"&&m.delay){var T=!1,x=setTimeout(function(){x=null,m.show(y,E)},m.delay),k=function(P){x&&(clearTimeout(x),x=null,m.show(y,E)),T||(T=!0,m.hide(P,E)),A()},g=function(P){x&&(clearTimeout(x),x=null),k(P),A()};E.addEventListener("touchmove",g,!1),E.addEventListener("touchend",k,!1),E.addEventListener("touchcancel",k,!1);var A=function(){E.removeEventListener("touchmove",g),E.removeEventListener("touchend",k),E.removeEventListener("touchcancel",k)}}else m.show(y,E),a&&(E.addEventListener("touchend",m.hide,!1),E.addEventListener("touchcancel",m.hide,!1)),E.addEventListener("mouseup",m.hide,!1),E.addEventListener("mouseleave",m.hide,!1)}}return n.init=function(y){var E=document.body;y=y||{},"duration"in y&&(m.duration=y.duration),"delay"in y&&(m.delay=y.delay),a&&(E.addEventListener("touchstart",G,!1),E.addEventListener("touchcancel",I.registerEvent,!1),E.addEventListener("touchend",I.registerEvent,!1)),E.addEventListener("mousedown",G,!1)},n.attach=function(y,E){y=f(y),s.call(E)==="[object Array]"&&(E=E.join(" ")),E=E?" "+E:"";for(var T,x,k=0,g=y.length;k<g;k++)T=y[k],x=T.tagName.toLowerCase(),["input","img"].indexOf(x)!==-1&&(C[x](T),T=T.parentElement),T.className.indexOf("waves-effect")===-1&&(T.className+=" waves-effect"+E)},n.ripple=function(y,E){y=f(y);var T=y.length;if(E=E||{},E.wait=E.wait||0,E.position=E.position||null,T){for(var x,k,g,A={},P=0,$={type:"mousedown",button:1},F=function(ie,de){return function(){m.hide(ie,de)}};P<T;P++)if(x=y[P],k=E.position||{x:x.clientWidth/2,y:x.clientHeight/2},g=p(x),A.x=g.left+k.x,A.y=g.top+k.y,$.pageX=A.x,$.pageY=A.y,m.show($,x),E.wait>=0&&E.wait!==null){var Q={type:"mouseup",button:1};setTimeout(F(Q,x),E.wait)}}},n.calm=function(y){y=f(y);for(var E={type:"mouseup",button:1},T=0,x=y.length;T<x;T++)m.hide(E,y[T])},n.displayEffect=function(y){console.error("Waves.displayEffect() has been deprecated and will be removed in future version. Please use Waves.init() to initialize Waves effect"),n.init(y)},n})})(waves$1)),waves$1.exports}var wavesExports=requireWaves();function bound01(r,e){isOnePointZero(r)&&(r="100%");var n=isPercentage(r);return r=e===360?r:Math.min(e,Math.max(0,parseFloat(r))),n&&(r=parseInt(String(r*e),10)/100),Math.abs(r-e)<1e-6?1:(e===360?r=(r<0?r%e+e:r%e)/parseFloat(String(e)):r=r%e/parseFloat(String(e)),r)}function clamp01(r){return Math.min(1,Math.max(0,r))}function isOnePointZero(r){return typeof r=="string"&&r.indexOf(".")!==-1&&parseFloat(r)===1}function isPercentage(r){return typeof r=="string"&&r.indexOf("%")!==-1}function boundAlpha(r){return r=parseFloat(r),(isNaN(r)||r<0||r>1)&&(r=1),r}function convertToPercentage(r){return r<=1?"".concat(Number(r)*100,"%"):r}function pad2(r){return r.length===1?"0"+r:String(r)}function rgbToRgb(r,e,n){return{r:bound01(r,255)*255,g:bound01(e,255)*255,b:bound01(n,255)*255}}function rgbToHsl(r,e,n){r=bound01(r,255),e=bound01(e,255),n=bound01(n,255);var o=Math.max(r,e,n),s=Math.min(r,e,n),a=0,c=0,l=(o+s)/2;if(o===s)c=0,a=0;else{var u=o-s;switch(c=l>.5?u/(2-o-s):u/(o+s),o){case r:a=(e-n)/u+(e<n?6:0);break;case e:a=(n-r)/u+2;break;case n:a=(r-e)/u+4;break}a/=6}return{h:a,s:c,l}}function hue2rgb(r,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?r+(e-r)*(6*n):n<1/2?e:n<2/3?r+(e-r)*(2/3-n)*6:r}function hslToRgb(r,e,n){var o,s,a;if(r=bound01(r,360),e=bound01(e,100),n=bound01(n,100),e===0)s=n,a=n,o=n;else{var c=n<.5?n*(1+e):n+e-n*e,l=2*n-c;o=hue2rgb(l,c,r+1/3),s=hue2rgb(l,c,r),a=hue2rgb(l,c,r-1/3)}return{r:o*255,g:s*255,b:a*255}}function rgbToHsv(r,e,n){r=bound01(r,255),e=bound01(e,255),n=bound01(n,255);var o=Math.max(r,e,n),s=Math.min(r,e,n),a=0,c=o,l=o-s,u=o===0?0:l/o;if(o===s)a=0;else{switch(o){case r:a=(e-n)/l+(e<n?6:0);break;case e:a=(n-r)/l+2;break;case n:a=(r-e)/l+4;break}a/=6}return{h:a,s:u,v:c}}function hsvToRgb(r,e,n){r=bound01(r,360)*6,e=bound01(e,100),n=bound01(n,100);var o=Math.floor(r),s=r-o,a=n*(1-e),c=n*(1-s*e),l=n*(1-(1-s)*e),u=o%6,d=[n,c,a,a,l,n][u],f=[l,
vendor: 5,345 bytes, line 6
6n,n,c,a,a][u],p=[a,a,l,n,n,c][u];return{r:d*255,g:f*255,b:p*255}}function rgbToHex(r,e,n,o){var s=[pad2(Math.round(r).toString(16)),pad2(Math.round(e).toString(16)),pad2(Math.round(n).toString(16))];return o&&s[0].startsWith(s[0].charAt(1))&&s[1].startsWith(s[1].charAt(1))&&s[2].startsWith(s[2].charAt(1))?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0):s.join("")}function rgbaToHex(r,e,n,o,s){var a=[pad2(Math.round(r).toString(16)),pad2(Math.round(e).toString(16)),pad2(Math.round(n).toString(16)),pad2(convertDecimalToHex(o))];return s&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function convertDecimalToHex(r){return Math.round(parseFloat(r)*255).toString(16)}function convertHexToDecimal(r){return parseIntFromHex(r)/255}function parseIntFromHex(r){return parseInt(r,16)}function numberInputToObject(r){return{r:r>>16,g:(r&65280)>>8,b:r&255}}var names={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function inputToRGB(r){var e={r:0,g:0,b:0},n=1,o=null,s=null,a=null,c=!1,l=!1;return typeof r=="string"&&(r=stringInputToObject(r)),typeof r=="object"&&(isValidCSSUnit(r.r)&&isValidCSSUnit(r.g)&&isValidCSSUnit(r.b)?(e=rgbToRgb(r.r,r.g,r.b),c=!0,l=String(r.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit(r.h)&&isValidCSSUnit(r.s)&&isValidCSSUnit(r.v)?(o=convertToPercentage(r.s),s=convertToPercentage(r.v),e=hsvToRgb(r.h,o,s),c=!0,l="hsv"):isValidCSSUnit(r.h)&&isValidCSSUnit(r.s)&&isValidCSSUnit(r.l)&&(o=convertToPercentage(r.s),a=convertToPercentage(r.l),e=hslToRgb(r.h,o,a),c=!0,l="hsl"),Object.prototype.hasOwnProperty.call(r,"a")&&(n=r.a)),n=boundAlpha(n),{ok:c,format:r.format||l,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:n}}var CSS_INTEGER="[-\\+]?\\d+%?",CSS_NUMBER="[-\\+]?\\d*\\.\\d+%?",CSS_UNIT="(?:".concat(CSS_NUMBER,")|(?:").concat(CSS_INTEGER,")"),PERMISSIVE_MATCH3="[\\s|\\(]+(".concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")\\s*\\)?"),PERMISSIVE_MATCH4="[\\s|\\(]+(".concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")\\s*\\)?"),matchers={CSS_UNIT:new RegExp(CSS_UNIT),rgb:new RegExp("rgb"+PERMISSIVE_MATCH3),rgba:new RegExp("rgba"+PERMISSIVE_MATCH4),hsl:new RegExp("hsl"+PERMISSIVE_MATCH3),hsla:new RegExp("hsla"
6+PERMISSIVE_MATCH4),hsv:new RegExp("hsv"+PERMISSIVE_MATCH3),hsva:new RegExp("hsva"+PERMISSIVE_MATCH4),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function stringInputToObject(r){if(r=r.trim().toLowerCase(),r.length===0)return!1;var e=!1;if(names[r])r=names[r],e=!0;else if(r==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=matchers.rgb.exec(r);return n?{r:n[1],g:n[2],b:n[3]}:(n=matchers.rgba.exec(r),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=matchers.hsl.exec(r),n?{h:n[1],s:n[2],l:n[3]}:(n=matchers.hsla.exec(r),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=matchers.hsv.exec(r),n?{h:n[1],s:n[2],v:n[3]}:(n=matchers.hsva.exec(r),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=matchers.hex8.exec(r),n?{r:parseIntFromHex(n[1]),g:parseIntFromHex(n[2]),b:parseIntFromHex(n[3]),a:convertHexToDecimal(n[4]),format:e?"name":"hex8"}:(n=matchers.hex6.exec(r),n?{r:parseIntFromHex(n[1]),g:parseIntFromHex(n[2]),b:parseIntFromHex(n[3]),format:e?"name":"hex"}:(n=matchers.hex4.exec(r),n?{r:parseIntFromHex(n[1]+n[1]),g:parseIntFromHex(n[2]+n[2]),b:parseIntFromHex(n[3]+n[3]),a:convertHexToDecimal(n[4]+n[4]),format:e?"name":"hex8"}:(n=matchers.hex3.exec(r),n?{r:parseIntFromHex(n[1]+n[1]),g:parseIntFromHex(n[2]+n[2]),b:parseIntFromHex(n[3]+n[3]),format:e?"name":"hex"}:!1)))))))))}function isValidCSSUnit(r){return!!matchers.CSS_UNIT.exec(String(r))}var TinyColor=(function(){function r(e,n){e===void 0&&(e=""),n===void 0&&(n={});var o;if(e instanceof r)return e;typeof e=="number"&&(e=numberInputToObject(e)),this.originalInput=e;var s=inputToRGB(e);this.originalInput=e,this.r=s.r,this.g=s.g,this.b=s.b,this.a=s.a,this.roundA=Math.round(100*this.a)/100,this.format=(o=n.format)!==null&&o!==void 0?o:s.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=s.ok}return r.prototype.isDark=function(){return this.getBrightness()<128},r.prototype.isLight=function(){return!this.isDark()},r.prototype.getBrightness=function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},r.prototype.getLuminance=function(){var e=this.toRgb(),n,o,s,a=e.r/255,c=e.g/255,l=e.b/255;return a<=.03928?n=a/12.92:n=Math.pow((a+.055)/1.055,2.4),c<=.03928?o=c/12.92:o=Math.pow((c+.055)/1.055,2.4),l<=.03928?s=l/12.92:s=Math.pow((l+.055)/1.055,2.4),.2126*n+.7152*o+.0722*s},r.prototype.getAlpha=function(){return this.a},r.prototype.setAlpha=function(e){return this.a=boundAlpha(e),this.roundA=Math.round(100*this.a)/100,this},r.prototype.isMonochrome=function(){var e=this.toHsl().s;return e===0},r.prototype.toHsv=function(){var e=rgbToHsv(this.r,this.g,this.b);return{h:e.h*360,s:e.s,v:e.v,a:this.a}},r.prototype.toHsvString=function(){var e=rgbToHsv(this.r,this.g,this.b),n=Math.round(e.h*360),o=Math.round(e.s*100),s=Math.round(e.v*100);return this.a===1?"hsv(".concat(n,", ").concat(o,"%, ").concat(s,"%)"):"hsva(".concat(n,", ").concat(o,"%, ").concat(s,"%, ").concat(this.roundA,")")},r.prototype.toHsl=function(){var e=rgbToHsl(this.r,this.g,this.b);return{h:e.h*360,s:e.s,l:e.l,a:this.a}},r.prototype.toHslString=function(){var e=rgbToHsl(this.r,this.g,this.b),n=Math.round(e.h*360),o=Math.round(e.s*100),s=Math.round(e.l*100);return this.a===1?"hsl(".concat(n,", ").concat(o,"%, ").concat(s,"%)"):"hsla(".concat(n,", ").concat(o,"%, ").concat(s,"%, ").concat(this.roundA,")")},r.prototype.toHex=function(e){return e===void 0&&(e=!1),rgbToHex(this.r,this.g,this.b,e)},r.prototype.toHexString=function(e){return e===void 0&&(e=!1),"#"+this.toHex(e)},r.prototype.toHex8=function(e){return e===void 0&&(e=!1),rgbaToHex(this.r,this.g,this.b,this.a,e)},r.prototype.toHex8String=function(e){return e===void 0&&(e=!1),"#"+this.toHex8(e)},r.prototype.toHexShortString=function(e){return e===void 0&&(e=!1),this.a===1?this.toHexString(e):this.toHex8String(e)},r.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},r.prototype.toRgbString=function(){var e=Math.round(this.r),n=Math.round(this.g),o=Math.round(this.b);return this.a===1?"rgb(".concat(e,", ").concat(n,", ").concat(o,")"):"rgba(".concat(e,", ").concat(n,", ").concat(o,", ").concat(this.roundA,")")},r.prototype.toPercentageRgb=function(){var e=function(n){return"".concat(Math.round(bound01(n,255)*100),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},r.prototype.toPercentageRgbString=function(){var e=function(n){return Math.round(bound01(n,255)*100)};return this.a===1?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},r.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var e="#"+rgbToHex(this.r,this.g,this.b,!1),n=0,o=Object.entries(names);n<o.length;n++){var s=o[n],a=s[0],c=s[1];if(e===c)return a}return!1},r.prototype.toString=function(e){var n=!!e;e=e!=null?e:this.format;var o=!1,s=this.a<1&&this.a>=0,a=!n&&s&&(e.startsWith("hex")||e==="name");return a?e==="name"&&this.a===0?this.toName():this.toRgbString():(e==="rgb"&&(o=this.toRgbString()),e==="prgb"&&(o=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(o=this.toHexString()),e==="hex3"&&(o=this.toHexString(!0)),e==="hex4"&&(o=this.toHex8String(!0)),e==="hex8"&&(o=this.toHex8String()),e==="name"&&(o=this.toName()),e==="hsl"&&(o=this.toHslString()),e==="hsv"&&(o=this.toHsvString()),o||this.toHexString())},r.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},r.prototype.clone=function(){return new r(this.toString())},r.prototype.lighten=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.l+=e/100,n.l=clamp01(n.l),new r(n)},r.prototype.brighten=function(e){e===void 0&&(e=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(e/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(e/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(e/100)))),new r(n)},r.prototype.darken=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.l-=e/100,n.l=clamp01(n.l),new r(n)},r.prototype.tint=function(e){return e===void 0&&(e=10),this.mix("white",e)},r.prototype.shade=function(e){return e===void 0&&(e=10),this.mix("black",e)},r.prototype.desaturate=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.s-=e/100,n.s=clamp01(n.s),new r(n)},r.prototype.saturate=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.s+=e/100,n.s=clamp01(n.s),new r(n)},r.prototype.greyscale=function(){return this.desaturate(100)},r.prototype.spin=function(e){var n=this.toHsl(),o=(n.h+e)%360;return n.h=o<0?360+o:o,new r(n)}
6,r.prototype.mix=function(e,n){n===void 0&&(n=50);var o=this.toRgb(),s=new r(e).toRgb(),a=n/100,c={r:(s.r-o.r)*a+o.r,g:(s.g-o.g)*a+o.g,b:(s.b-o.b)*a+o.b,a:(s.a-o.a)*a+o.a};return new r(c)},r.prototype.analogous=function(e,n){e===void 0&&(e=6),n===void 0&&(n=30);var o=this.toHsl(),s=360/n,a=[this];for(o.h=(o.h-(s*e>>1)+720)%360;--e;)o.h=(o.h+s)%360,a.push(new r(o));return a},r.prototype.complement=function(){var e=this.toHsl();return e.h=(e.h+180)%360,new r(e)},r.prototype.monochromatic=function(e){e===void 0&&(e=6);for(var n=this.toHsv(),o=n.h,s=n.s,a=n.v,c=[],l=1/e;e--;)c.push(new r({h:o,s,v:a})),a=(a+l)%1;return c},r.prototype.splitcomplement=function(){var e=this.toHsl(),n=e.h;return[this,new r({h:(n+72)%360,s:e.s,l:e.l}),new r({h:(n+216)%360,s:e.s,l:e.l})]},r.prototype.onBackground=function(e){var n=this.toRgb(),o=new r(e).toRgb(),s=n.a+o.a*(1-n.a);return new r({r:(n.r*n.a+o.r*o.a*(1-n.a))/s,g:(n.g*n.a+o.g*o.a*(1-n.a))/s,b:(n.b*n.a+o.b*o.a*(1-n.a))/s,a:s})},r.prototype.triad=function(){return this.polyad(3)},r.prototype.tetrad=function(){return this.polyad(4)},r.prototype.polyad=function(e){for(var n=this.toHsl(),o=n.h,s=[this],a=360/e,c=1;c<e;c++)s.push(new r({h:(o+c*a)%360,s:n.s,l:n.l}));return s},r.prototype.equals=function(e){return this.toRgbString()===new r(e).toRgbString()},r})();function isDark(r){return r instanceof TinyColor&&String(r.originalInput).includes("svg")?r=getAverageColor(String(r.originalInput)).toHsl():r=new TinyColor(r).toHsl(),new TinyColor(r).isDark()}function rgbaExprToArray(r){const e=r.match(/\d+/g);return e===null?null:e.map(n=>+n)}function lightness(r){const e=rgbaExprToArray(r);return e===null||e.length<3?.5:.2126*e[0]+.7152*e[1]+.0722*e[2]}function getAverageColor(r){const e=r.match(/#(?:[0-9a-fA-F]{3}){1,2}/g);if(e===null)return new TinyColor("black");let n=0,o=0,s=0;e.forEach(u=>{const d=new TinyColor(u).toRgb();n+=d.r,o+=d.g,s+=d.b});const a=Math.round(n/e.length),c=Math.round(o/e.length),l=Math.round(s/e.length);return new TinyColor({r:a,g:c,b:l})}class ButtonsWaveExtension extends Extension{async init(){const e=Array.from(document.querySelectorAll(".waves, .btn , input[type=submit], .waves-effect"));for(const n of e)n.addEventListener("mousedown",()=>{this.computeWaveColor(n)},{passive:!1}),n.addEventListener("touchstart",()=>{this.computeWaveColor(n)},{passive:!1});wavesExports.attach(e),wavesExports.init()}computeWaveColor(e){lightness(getComputedStyle(e).color)>127.5?e.classList.add("waves-light"):e.classList.remove("waves-light")}}class SmoothScrollingExtension extends Extension{async init(){window.addEventListener("load",function(e){window.setTimeout(()=>{document.documentElement.style.scrollBehavior="smooth"},200)})}}function isArrayOfString(r){return Array.isArray(r)&&r.every(e=>typeof e=="string")}class TextRotator{constructor(e,n,o){this.element=e,this.phraseElements=[],this.index=0,this.intervalID=null,this.started=!1,this.listeners={start:[],stop:[],rotation:[],widthUpdate:[]},this.maxWidth=0,this.options={interval:4e3,automaticStart:!0,automaticPause:!0,fadeTransitionDuration:200,fadeTransitionTimingFunction:"ease",widthTransitionDuration:350,widthTransitionTimingFunction:"ease",fixedWidth:!1,...o!=null?o:{}},this.element.innerHTML="",this.element.style.display="inline-block",this.element.style.position="relative",this.options.fixedWidth||(this.element.style.transitionProperty="width",this.element.style.transitionDuration="".concat(this.options.widthTransitionDuration,"ms"),this.element.style.transitionTimingFunction=this.options.widthTransitionTimingFunction),n.forEach(s=>{this.append(s)});try{this.setupResizeObserver()}catch(s){console.error(s)}if(this.options.automaticPause)try{this.setupIntersectionObserver()}catch(s){console.error(s)}this.options.automaticStart&&this.start()}start(){this.started&&this.stop(),this.started=!0,this.index=0,this.startInterval()}stop(){this.index!=0&&(this.setElementHidden(this.phraseElements[this.index]),this.setElementVisible(this.phraseElements[0]),this.updateWidth(this.phraseElements[0].offsetWidth)),this.started=!1,this.index=0,this.intervalID&&this.stopInterval()}destroy(){this.started=!1,this.stopInterval()}pause(){this.stopInterval()}resume(){this.startInterval()}next(){this.select((this.index+1)%this.phraseElements.length)}previous(){this.select(this.index===0?this.phraseElements.length-1:this.index-1)}select(e){if(e<0||e>=this.phraseElements.length)throw new Error("Selected index (".concat(e,") is out of range (").concat(this.phraseElements.length-1,")."));this.listeners.rotation.forEach(n=>n({previousIndex:this.index,previousPhraseElement:this.phraseElements[this.index],nextIndex:e,nextPhraseElement:this.phraseElements[e]})),this.setElementHidden(this.phraseElements[this.index]),this.setElementVisible(this.phraseElements[e]),this.updateWidth(this.phraseElements[e].offsetWidth),this.index=e}prepend(e){return this.insert(e,0)}append(e){return this.insert(e,this.phraseElements.length)}insert(e,n){if(n<0||n>this.phraseElements.length)throw new Error("The index (".concat(n,") to insert at is out of range (").concat(this.phraseElements.length,")."));const o=document.createElement("span");return n>0?(o.style.position="absolute",o.style.top="0",o.style.left="0"):this.phraseElements.length>0&&(this.phraseElements[0].style.position="",this.phraseElements[0].style.top="",this.phraseElements[0].style.left=""),o.style.display="inline-block",o.style.whiteSpace="nowrap",o.style.transitionProperty="opacity",o.style.transitionDuration="".concat(this.options.fadeTransitionDuration,"ms"),o.style.transitionTimingFunction=this.options.fadeTransitionTimingFunction,this.phraseElements.length>0?this.setElementHidden(o):(this.setElementVisible(o),this.updateWidth(o.offsetWidth)),o.innerText=e,n>=this.phraseElements.length?this.element.appendChild(o):this.element.insertBefore(o,this.phraseElements[n]),this.phraseElements.splice(n,0,o),n<=this.index&&this.index++,o}remove(e){if(e<0||e>=this.phraseElements.length)throw new Error("The index (".concat(e,") to remove is out of range (").concat(this.phraseElements.length-1,")."));this.element.removeChild(this.phraseElements[e]),this.phraseElements.splice(e,1),e<this.index?this.index--:e===this.index&&this.select(this.index%this.phraseElements.length)}addEventListener(e,n){this.listeners[e].push(n)}removeEventListener(e,n){const o=this.listeners[e].indexOf(n);o!==-1&&this.listeners[e].splice(o,1)}static getInlineSize(e){var o;const n=(o=e.borderBoxSize)==null?void 0:o[0];return n?n.inlineSize:e.target.offsetWidth}setupResizeObserver(){const e=new ResizeObserver(n=>{this.options.fixedWidth||(n.forEach(o=>{o.target===this.phraseElements[this.index]&&this.updateWidth(TextRotator.getInlineSize(o))}),this.computeMaxWidth())});
6this.phraseElements.forEach(n=>{e.observe(n)}),this.computeMaxWidth()}computeMaxWidth(){this.options.fixedWidth&&(this.maxWidth=0,this.phraseElements.forEach(e=>{this.maxWidth=Math.max(this.maxWidth,e.offsetWidth)}),this.element.style.width="".concat(this.maxWidth,"px"))}setupIntersectionObserver(){new IntersectionObserver(n=>{this.started&&(n[0].isIntersecting?this.intervalID===null&&this.resume():this.intervalID!==null&&this.pause())}).observe(this.element)}startInterval(){if(this.intervalID!==null)throw new Error("Cannot start multiple ".concat(window.setInterval.name," function"));this.listeners.start.forEach(e=>e({currentIndex:this.index,currentPhraseElement:this.phraseElements[this.index]})),this.intervalID=window.setInterval(()=>this.next(),this.options.interval)}stopInterval(){if(this.intervalID===null)throw new Error("Cannot stop null interval ".concat(window.setInterval.name));this.listeners.stop.forEach(e=>e({currentIndex:this.index,currentPhraseElement:this.phraseElements[this.index]})),window.clearInterval(this.intervalID),this.intervalID=null}setElementHidden(e){e.style.opacity="0",e.setAttribute("aria-hidden","true"),e.style.pointerEvents="none",e.style.userSelect="none"}setElementVisible(e){e.style.opacity="1",e.removeAttribute("aria-hidden"),e.style.pointerEvents="",e.style.userSelect=""}updateWidth(e){if(this.options.fixedWidth){this.element.style.width="".concat(this.maxWidth,"px");return}this.listeners.widthUpdate.forEach(n=>n({currentIndex:this.index,currentPhraseElement:this.phraseElements[this.index],previousWidth:this.element.offsetWidth,nextWidth:e})),this.element.style.width="".concat(e,"px")}}class TextRotatorElement extends HTMLElement{static getPhrases(e,n){var s;let o=[];if(e.hasAttribute("phrases")){const a=e.getAttribute("phrases");o=JSON.parse(a)}else for(let a of e.children)a.tagName==="SPAN"&&o.push((s=a.textContent)!=null?s:"");if(!isArrayOfString(o)){if(n)throw{error:new Error("The 'phrases' data attribute in the passed element is not a string array"),element:this};return[]}return e.setAttribute("phrases",JSON.stringify(o)),o}connectedCallback(){if(!this.rotator){if(this.getAttribute("enabled")==="0")return[];this.rotator=new TextRotator(this,TextRotatorElement.getPhrases(this,!0))}}disconnectedCallback(){this.rotator&&this.rotator.destroy()}static registerElement(){customElements.define("r-text-rotate",TextRotatorElement)}}class RotatingTextExtension extends Extension{async init(){TextRotatorElement.registerElement()}}class ButtonsEqualWidthExtension extends Extension{async init(){setTimeout(()=>{document.querySelectorAll("section.section--links-equal-width").forEach(e=>{const n=e.querySelectorAll("footer .section-links a.link");n.length>1&&this.handleButtonsGroup(Array.from(n))})},50)}handleButtonsGroup(e){const n=e.reduce((s,a)=>a.offsetWidth>s.offsetWidth?a:s);new ResizeObserver(()=>{this.equalize(n,e)}).observe(n)}equalize(e,n){n.forEach(o=>{o!==e&&(o.style.minWidth="".concat(e.offsetWidth,"px"))})}}function api(r,e,n={}){if(n&&Object.entries(n).length>0)for(const s in n){const a=n[s];a===null?r=r.replace("/{".concat(s,"}"),""):r=r.replace("{".concat(s,"}"),a)}const o=r.includes("?");if(e&&Object.entries(e).length>0){let s=0;for(const a in e)typeof e[a]>"u"||(r+=!o&&s++===0?"?":"&",r+=encodeURIComponent(a)+"="+encodeURIComponent(e[a]))}return r}const routeSiteContactExternalCognito="/_contact/external/{page}/{section}/cognito";class CognitoContact extends Extension{async init(){const e=document.querySelector("script[data-key][data-form]");if(e&&typeof window.Cognito<"u"){const n=e.closest("section[data-uuid]").dataset.uuid;window.Cognito.on("afterSubmit",async o=>{await fetch(api(routeSiteContactExternalCognito,{},{page:this.page.pageId,section:n}),{method:"POST",body:JSON.stringify({entry:o.data.entry})})})}}}var t=function(){return t=Object.assign||function(r){for(var e,n=1,o=arguments.length;n<o;n++)for(var s in e=arguments[n])Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r},t.apply(this,arguments)},i=(function(){function r(e,n,o){var s=this;this.endVal=n,this.options=o,this.version="2.9.0",this.defaults={startVal:0,decimalPlaces:0,duration:2,useEasing:!0,useGrouping:!0,useIndianSeparators:!1,smartEasingThreshold:999,smartEasingAmou
vendor: 4,860 bytes, line 6
6nt:333,separator:",",decimal:".",prefix:"",suffix:"",enableScrollSpy:!1,scrollSpyDelay:200,scrollSpyOnce:!1},this.finalEndVal=null,this.useEasing=!0,this.countDown=!1,this.error="",this.startVal=0,this.paused=!0,this.once=!1,this.count=function(a){s.startTime||(s.startTime=a);var c=a-s.startTime;s.remaining=s.duration-c,s.useEasing?s.countDown?s.frameVal=s.startVal-s.easingFn(c,0,s.startVal-s.endVal,s.duration):s.frameVal=s.easingFn(c,s.startVal,s.endVal-s.startVal,s.duration):s.frameVal=s.startVal+(s.endVal-s.startVal)*(c/s.duration);var l=s.countDown?s.frameVal<s.endVal:s.frameVal>s.endVal;s.frameVal=l?s.endVal:s.frameVal,s.frameVal=Number(s.frameVal.toFixed(s.options.decimalPlaces)),s.printValue(s.frameVal),c<s.duration?s.rAF=requestAnimationFrame(s.count):s.finalEndVal!==null?s.update(s.finalEndVal):s.options.onCompleteCallback&&s.options.onCompleteCallback()},this.formatNumber=function(a){var c,l,u,d,f=a<0?"-":"";c=Math.abs(a).toFixed(s.options.decimalPlaces);var p=(c+="").split(".");if(l=p[0],u=p.length>1?s.options.decimal+p[1]:"",s.options.useGrouping){d="";for(var b=3,m=0,C=0,O=l.length;C<O;++C)s.options.useIndianSeparators&&C===4&&(b=2,m=1),C!==0&&m%b==0&&(d=s.options.separator+d),m++,d=l[O-C-1]+d;l=d}return s.options.numerals&&s.options.numerals.length&&(l=l.replace(/[0-9]/g,(function(I){return s.options.numerals[+I]})),u=u.replace(/[0-9]/g,(function(I){return s.options.numerals[+I]}))),f+s.options.prefix+l+u+s.options.suffix},this.easeOutExpo=function(a,c,l,u){return l*(1-Math.pow(2,-10*a/u))*1024/1023+c},this.options=t(t({},this.defaults),o),this.formattingFn=this.options.formattingFn?this.options.formattingFn:this.formatNumber,this.easingFn=this.options.easingFn?this.options.easingFn:this.easeOutExpo,this.el=typeof e=="string"?document.getElementById(e):e,n=n==null?this.parse(this.el.innerHTML):n,this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.endVal=this.validateValue(n),this.options.decimalPlaces=Math.max(this.options.decimalPlaces),this.resetDuration(),this.options.separator=String(this.options.separator),this.useEasing=this.options.useEasing,this.options.separator===""&&(this.options.useGrouping=!1),this.el?this.printValue(this.startVal):this.error="[CountUp] target is null or undefined",typeof window<"u"&&this.options.enableScrollSpy&&(this.error?console.error(this.error,e):(window.onScrollFns=window.onScrollFns||[],window.onScrollFns.push((function(){return s.handleScroll(s)})),window.onscroll=function(){window.onScrollFns.forEach((function(a){return a()}))},this.handleScroll(this)))}return r.prototype.handleScroll=function(e){if(e&&window&&!e.once){var n=window.innerHeight+window.scrollY,o=e.el.getBoundingClientRect(),s=o.top+window.pageYOffset,a=o.top+o.height+window.pageYOffset;a<n&&a>window.scrollY&&e.paused?(e.paused=!1,setTimeout((function(){return e.start()}),e.options.scrollSpyDelay),e.options.scrollSpyOnce&&(e.once=!0)):(window.scrollY>a||s>n)&&!e.paused&&e.reset()}},r.prototype.determineDirectionAndSmartEasing=function(){var e=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>e;var n=e-this.startVal;if(Math.abs(n)>this.options.smartEasingThreshold&&this.options.useEasing){this.finalEndVal=e;var o=this.countDown?1:-1;this.endVal=e+o*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=e,this.finalEndVal=null;this.finalEndVal!==null?this.useEasing=!1:this.useEasing=this.options.useEasing},r.prototype.start=function(e){this.error||(this.options.onStartCallback&&this.options.onStartCallback(),e&&(this.options.onCompleteCallback=e),this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},r.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},r.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},r.prototype.update=function(e){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(e),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,this.finalEndVal==null&&this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},r.prototype.printValue=function(e){var n;if(this.el){var o=this.formattingFn(e);!((n=this.options.plugin)===null||n===void 0)&&n.render?this.options.plugin.render(this.el,o):this.el.tagName==="INPUT"?this.el.value=o:this.el.tagName==="text"||this.el.tagName==="tspan"?this.el.textContent=o:this.el.
6innerHTML=o}},r.prototype.ensureNumber=function(e){return typeof e=="number"&&!isNaN(e)},r.prototype.validateValue=function(e){var n=Number(e);return this.ensureNumber(n)?n:(this.error="[CountUp] invalid start or end value: ".concat(e),null)},r.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},r.prototype.parse=function(e){var n=function(c){return c.replace(/([.,'Â ])/g,"\\$1")},o=n(this.options.separator),s=n(this.options.decimal),a=e.replace(new RegExp(o,"g"),"").replace(new RegExp(s,"g"),".");return parseFloat(a)},r})();const ne=class ne extends HTMLElement{constructor(){super(...arguments),this.initialized=!1,this.locale="fr"}processValue(){const e=!this.hasAttribute("silence-errors");if(this.hasAttribute("value")){const n=this.getAttribute("value");if(n===null){if(e)throw new Error("CountUpElement: value attribute must be a string");return console.warn("CountUpElement: value attribute must be a string"),{value:0,decimalPlaces:0}}return ne.valueStringToValue(n,this.hasAttribute("precision")?Number(this.getAttribute("precision")):void 0)}else if(this.hasAttribute("age")){const n=this.getAttribute("age");if(n===null){if(e)throw new Error("CountUpElement: age attribute must be an ISO-8601 date string");return console.warn("CountUpElement: age attribute must be an ISO-8601 date string"),{value:0,decimalPlaces:0}}return{value:ne.ageStringToValue(n),decimalPlaces:0}}if(e)throw new Error("CountUpElement: cannot find value or age attribute");return console.warn("CountUpElement: cannot find value or age attribute"),{value:0,decimalPlaces:0}}static valueStringToValue(e,n){const o=Number(e);if(typeof n=="number")return{value:o,decimalPlaces:n};const s=e.split(".");return s.length>1?{value:o,decimalPlaces:s[1].length}:{value:o,decimalPlaces:0}}static ageStringToValue(e){const n=new Date(e);return Math.floor((new Date().getTime()-n.getTime())/(1e3*60*60*24*365))}static textRepresentation(e,n,o){return typeof n=="string"?n.replace(/([\d ,.])+/,function(s){return(s.startsWith(" ")?" ":"")+ne.valueStringToValue(s,o).value.toString()+(s.endsWith(" ")?" ":"")}):typeof e=="string"?ne.ageStringToValue(e).toString():""}attributeChangedCallback(e,n,o){this.initialized&&(this.debounceUpdate&&clearTimeout(this.debounceUpdate),this.debounceUpdate=setTimeout(()=>{this.reset(),this.debounceUpdate=void 0},150))}connectedCallback(){if(this.initialized)return;this.initialized=!0,this.locale=this.lang,this.locale.length===0&&(this.locale=document.documentElement.lang);const{value:e,decimalPlaces:n}=this.processValue(),o=this.createFormatter(n,this.getAttribute("no-grouping")===null);if(ne.staticMode){this.innerText=o(e);return}function s(d){for(;d;){const f=window.getComputedStyle(d);if(f.textDecorationLine.includes("underline"))return f.textDecorationLine;if(!d.parentElement)return"";d=d.parentElement}return""}this.innerHTML=o(e);const a=this.getBoundingClientRect().width;this.innerHTML="0";const c={display:this.style.display,textAlign:this.style.textAlign,textDecorationLine:this.style.textDecorationLine};this.style.width=a+"px",this.style.display="inline-block",this.style.textAlign="right";const l=s(this);l&&(this.style.textDecorationLine=l);const u={startVal:0,useEasing:e>=50,useGrouping:this.getAttribute("no-grouping")===null,duration:e>=50?1.5:1,formattingFn:o,decimalPlaces:n,onCompleteCallback:()=>{this.style.display=c.display,this.style.textAlign=c.textAlign,this.style.textDecorationLine=c.textDecorationLine}};this.countUp=new i(this,e,u),this.observer=new IntersectionObserver((d,f)=>{var b;(typeof d[0].isIntersecting=="boolean"?d[0].isIntersecting:d[0].intersectionRatio>0)&&(this.countUp.reset(),this.countUp.start(),(b=this.observer)==null||b.disconnect())}),this.observer.observe(this)}reset(){var e;this.countUp&&(this.countUp.reset(),(e=this.observer)==null||e.disconnect(),this.countUp=void 0,this.initialized=!1,this.connectedCallback())}createFormatter(e,n=!1){let o=this.locale;if((!o||o.length===0)&&(o="fr"),typeof Intl=="object"&&typeof Intl.NumberFormat=="function"){const s=new Intl.NumberFormat(o,{minimumFractionDigits:e,useGrouping:n});return s.format.bind(s)}else{const s=function(a,c){return function(l){let u=l.toString();l=Number(u.indexOf(".")>-1?u.concat("1"):l).toFixed(3);let d=parseFloat(l).toString().split("."),f=d[0].split(""),p=d[1]||"";return f.reduce(function(m,C,O,I){const B=O<I.length-1&&(I.length-(1+O))%3==0?a:"";return m+C+B},"")+(p&&c+p)}};
6return o.toLowerCase().includes("fr")?s(" ",","):s(" ",".")}}static register(e){ne.staticMode=e,customElements.define("r-count-up",ne)}};ne.staticMode=!1,ne.observedAttributes=["age","value","no-grouping","precision"];let CountUpElement=ne;class CountUpExtension extends Extension{async init(){CountUpElement.register(this.page.context.staticMode)}}function createTooltipMarkup(r){const e=document.createElement("div");e.className="rfui-tooltip",e.setAttribute("role","tooltip");const n=document.createElement("span");n.className="content",e.appendChild(n);const o=document.createElement("div");return o.className="arrow",e.appendChild(o),r.insertAdjacentElement("afterend",e),{tooltip:e,content:n}}class SocialShareElement extends HTMLElement{constructor(){super();S(this,"tooltip",null);S(this,"removers",[])}connectedCallback(){var s;const n=(s=this.getAttribute("copied-message"))!=null?s:"",o={links:0,buttons:5};__vitePreload(async()=>{const{computePosition:a,flip:c,offset:l,shift:u}=await import("./chunk-B7r0GxEE.js");return{computePosition:a,flip:c,offset:l,shift:u}},[]).then(({computePosition:a,flip:c,offset:l,shift:u})=>{const{tooltip:d,content:f}=createTooltipMarkup(this);this.tooltip=d,this.querySelector(".rfui-tooltip .arrow"),this.querySelectorAll("a[title]").forEach(p=>{p.dataset.title=p.title,p.removeAttribute("title");const b=O=>{d.classList.add("visible"),f.innerText=O,a(p,d,{placement:"top",middleware:[l({mainAxis:this.getAttribute("variant")==="buttons"?o.buttons:o.links}),c(),u({padding:5})]}).then(({x:I,y:B,placement:G,middlewareData:y})=>{Object.assign(d.style,{left:"".concat(I,"px"),top:"".concat(B,"px")})})},m=()=>{var O;b((O=p.dataset.title)!=null?O:"")},C=()=>{d.classList.remove("visible")};if([["mouseenter",m],["mouseleave",C],["focus",m],["blur",C]].forEach(([O,I])=>{p.addEventListener(O,I),this.removers.push(()=>p.removeEventListener(O,I))}),p.dataset.actionType==="copy"){p.removeAttribute("target");const O=I=>{I.preventDefault(),I.stopPropagation(),navigator.clipboard.writeText(window.location.href.replace(/#.*/,"")),b(n)};p.addEventListener("click",O),this.removers.push(()=>p.removeEventListener("click",O))}})})}disconnectedCallback(){var n;this.removers.forEach(o=>o()),this.removers=[],(n=this.tooltip)==null||n.remove()}static registerElement(){customElements.define("r-social-share",SocialShareElement)}}class SocialShareElementExtension extends Extension{async init(){SocialShareElement.registerElement()}}async function initExtensions(r){const n=[new AnimationsExtension(r),new LazyLoadExtension(r),new ParallaxExtension(r),new VideosExtension(r),new GdprExtension(r),new ButtonsWaveExtension(r),new XmasExtension(r),new SmoothScrollingExtension(r),new RotatingTextExtension(r),new ButtonsEqualWidthExtension(r),new CognitoContact(r),new CountUpExtension(r),new SocialShareElementExtension(r)].map(async o=>{try{await o.init()}catch(s){console.error("Cannot init the extension ".concat(o.constructor)),captureException(s)}});return Promise.allSettled(n)}class AbstractSection{constructor(e,n){S(this,"sectionElement");S(this,"page");S(this,"id");this.sectionElement=e,this.id=e.id,this.page=n}getDispositions(){return[]}}function getWindow(r){if(r==null)return window;if(r.toString()!=="[object Window]"){var e=r.ownerDocument;return e&&e.defaultView||window}return r}function getComputedStyle$1(r){return getWindow(r).getComputedStyle(r)}class Dropdown{constructor(e,n,o){S(this,"targetElement");S(this,"dropdownElement");S(this,"brotherDropdowns");S(this,"opened",!1);S(this,"currentlyHovered",!1);S(this,"currentClosingTimeout");S(this,"closeInProgress",!1);this.targetElement=e,this.dropdownElement=n,this.brotherDropdowns=o,this.targetElement.querySelector("a.link").addEventListener("mouseover",s=>{this.currentlyHovered=!0,this.clearEventualClosingTimeout(),!this.opened&&(!this.closeInProgress||this.isMouseInsideTheTarget(s))&&this.open()},{passive:!0}),this.targetElement.addEventListener("mouseleave",()=>{this.currentlyHovered=!1,this.opened&&(this.clearEventualClosingTimeout(),this.currentClosingTimeout=window.setTimeout(()=>{this.close()},400))},{passive:!0})}isMouseInsideTheTarget(e){const n=this.targetElement.getBoundingClientRect();return e.clientX>=n.x&&e.clientX<=n.x+n.width&&e.clientY>
6=n.y&&e.clientY<=n.y+n.height}clearEventualClosingTimeout(){this.currentClosingTimeout!==void 0&&(window.clearTimeout(this.currentClosingTimeout),this.currentClosingTimeout=void 0)}open(){return this.clearEventualClosingTimeout(),new Promise(e=>{if(this.clearEventualClosingTimeout(),this.opened)e();else{const n=[];for(const o of this.brotherDropdowns)n.push(o.close());Promise.allSettled(n).then(()=>{this.currentlyHovered?(this.opened=!0,this.dropdownElement.style.display="block",this.updatePosition(),setTimeout(()=>{this.opened&&(this.targetElement.classList.add("dropdown-open"),this.targetElement.children[0].id=this.targetElement.children[0].id.includes("dropdown-open")?this.targetElement.children[0].id:this.targetElement.children[0].id+"-dropdown-open",this.targetElement.children[0].classList.add(this.targetElement.children[0].classList.value.split(" ").filter(o=>o.includes("link-style-")||o.includes("link-alternate-style-"))[0]+"-dropdown-open")),e()},20)):e()})}})}close(){return this.clearEventualClosingTimeout(),new Promise(e=>{this.opened?(this.opened=!1,this.closeInProgress=!0,this.targetElement.classList.remove("dropdown-open"),setTimeout(()=>{this.opened||(this.dropdownElement.style.display="none",this.targetElement.children[0].id=this.targetElement.children[0].id.split("-dropdown-open")[0],this.targetElement.children[0].classList.remove(this.targetElement.children[0].classList.value.split(" ").filter(n=>n.includes("link-style-")||n.includes("link-alternate-style-"))[0]+"-dropdown-open")),this.closeInProgress=!1,e()},200)):e()})}updatePosition(){const e=this.dropdownElement.firstChild;if(e){const n=e.getBoundingClientRect(),o=this.dropdownElement.style.left==""?0:parseFloat(this.dropdownElement.style.left),s=-((document.body.clientWidth||window.innerWidth)-(n.x-o+n.width+10));s>0?this.dropdownElement.style.left="-".concat(s,"px"):this.dropdownElement.style.left=""}}}var freeGlobal=typeof global=="object"&&global&&global.Object===Object&&global,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root=freeGlobal||freeSelf||Function("return this")(),Symbol$1=root.Symbol,objectProto$1=Object.prototype,hasOwnProperty=objectProto$1.hasOwnProperty,nativeObjectToString$1=objectProto$1.toString,symToStringTag$1=Symbol$1?Symbol$1.toStringTag:void 0;function getRawTag(r){var e=hasOwnProperty.call(r,symToStringTag$1),n=r[symToStringTag$1];try{r[symToStringTag$1]=void 0;var o=!0}catch(a){}var s=nativeObjectToString$1.call(r);return o&&(e?r[symToStringTag$1]=n:delete r[symToStringTag$1]),s}var objectProto=Object.prototype,nativeObjectToString=objectProto.toString;function objectToString(r){return nativeObjectToString.call(r)}var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$1?Symbol$1.toStringTag:void 0;function baseGetTag(r){return r==null?r===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(r)?getRawTag(r):objectToString(r)}function isObjectLike(r){return r!=null&&typeof r=="object"}var symbolTag="[object Symbol]";function isSymbol(r){return typeof r=="symbol"||isObjectLike(r)&&baseGetTag(r)==symbolTag}var reWhitespace=/\s/;function trimmedEndIndex(r){for(var e=r.length;e--&&reWhitespace.test(r.charAt(e)););return e}var reTrimStart=/^\s+/;function baseTrim(r){return r&&r.slice(0,trimmedEndIndex(r)+1).replace(reTrimStart,"")}function isObject(r){var e=typeof r;return r!=null&&(e=="object"||e=="function")}var NAN=NaN,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber(r){if(typeof r=="number")return r;if(isSymbol(r))return NAN;if(isObject(r)){var e=typeof r.valueOf=="function"?r.valueOf():r;r=isObject(e)?e+"":e}if(typeof r!="string")return r===0?r:+r;r=baseTrim(r);var n=reIsBinary.test(r);return n||reIsOctal.test(r)?freeParseInt(r.slice(2),n?2:8):reIsBadHex.test(r)?NAN:+r}var now=function(){return root.Date.now()},FUNC_ERROR_TEXT$1="Expected a function",nativeMax=Math.max,nativeMin=Math.min;function debounce(r,e,n){var o,s,a,c,l,u,d=0,f=!1,p=!1,b=!0;if(typeof r!="function")throw new TypeError(FUNC_ERROR_TEXT$1);e=toNumber(e)||0,isObject(n)&&(f=!!n.leading,p="maxWait"in n,a=p?nativeMax(toNumber(n.maxWait)||0,e):a,b="trailing"in n?!!n.trailing:b);function m(x){var k=o,g=s;return o=s=void 0,d=x,c=r.apply(g,k),c}function C(x){return d=x,l=setTimeout(B,e),f?m(x):c}function O(x){var k=x-u,g=x-d,A=e-k;return p?nativeMin(A,a-g):A}function I(x){var k=x-u,g=x-d;return u===void 0||k>=e||k<0||p&&g>=a}function B(){var x=now();if(I(x))return G(x);l=setTimeout(B,O(x))}function G(x){return l=void 0,b&&o?m(x):(o=s=void 0,c)}function y(){l!==void 0&&clearTimeout(l),d=0,o=u=s=l=void 0}function E(){return l===void 0?c:G(now())}function T(){var x=now(),k=I(x);if(o=arguments,s=this,u=x,k){if(l===void 0)return C(u);if(p)return clearTimeout(l),l=setTimeout(B,e),m(u)}return l===void 0&&(l=setTimeout(B,e)),c}return T.cancel=y,T.flush=E,T}
6var FUNC_ERROR_TEXT="Expected a function";function throttle(r,e,n){var o=!0,s=!0;if(typeof r!="function")throw new TypeError(FUNC_ERROR_TEXT);return isObject(n)&&(o="leading"in n?!!n.leading:o,s="trailing"in n?!!n.trailing:s),debounce(r,e,{leading:o,maxWait:e,trailing:s})}const ue=class ue{constructor(e){S(this,"headerSection");S(this,"initialLogoWidth");S(this,"firstLevelElements");S(this,"hamburgerWrapperElement");S(this,"imageSizes",new Map);this.headerSection=e,this.headerSection.navElement?this.firstLevelElements=Array.from(this.headerSection.navElement.querySelectorAll(".first-level")):this.firstLevelElements=[],this.hamburgerWrapperElement=document.querySelector(".hamburger-wrapper"),this.headerSection.logoElement?this.initialLogoWidth=this.headerSection.logoElement.offsetWidth:this.initialLogoWidth=0,this.update=throttle(this.update,25)}init(){this.imageLoadingObserver(),this.bindSidebar(),this.update(),this.updateHamburgerPosition();try{document.fonts.ready.then(()=>{this.update()})}catch(e){}this.bindActiveOnSectionHover(),this.bindDropdowns()}imageLoadingObserver(){if(this.headerSection.logoElement)for(const e of Array.from(this.headerSection.logoElement.querySelectorAll("img, svg")))e instanceof SVGElement?this.imageSizes.set(e,[Number(e.clientWidth),Number(e.clientHeight)]):this.imageSizes.has(e)||this.imageSizes.set(e,[Number(e.dataset.width),Number(e.dataset.height)])}bindActiveOnSectionHover(){const e=[];this.headerSection.sectionElement.querySelectorAll(".link").forEach(n=>{const o=n.href.replace("".concat(window.location.origin).concat(window.location.pathname),"");if(/^#/.test(o))try{const s=document.querySelector(o.replace("-o",""));s&&e.push({section:s,linkButton:n})}catch(s){}}),window.addEventListener("scroll",this.updateActiveOnSectionHover.bind(this,e),{passive:!0}),window.addEventListener("resize",this.updateActiveOnSectionHover.bind(this,e),{passive:!0}),this.updateActiveOnSectionHover(e)}updateActiveOnSectionHover(e){const n=this.headerSection.sectionElement.offsetHeight,o=(window.innerHeight-n)/2;for(const s of e){const a=s.section.getBoundingClientRect(),c=a.y-n,l=c+a.height;c<=o&&l>o?(s.section.className=Array.from(s.section.classList).map(u=>u.includes("link")&&u!=="link"&&!u.includes("-monitor")?u+"-monitor "+u:u).join(" "),s.linkButton.className=Array.from(s.linkButton.classList).map(u=>u.includes("link")&&u!=="link"&&!u.includes("-monitor")?u+"-monitor "+u:u).join(" "),s.linkButton.id+=s.linkButton.id.includes("-monitor")?"":"-monitor"):(s.section.className=Array.from(s.section.classList).map(u=>u.includes("-monitor")?"":u).join(" "),s.linkButton.className=Array.from(s.linkButton.classList).map(u=>u.includes("-monitor")?"":u).join(" "),s.linkButton.id=s.linkButton.id.split("-monitor")[0])}}bindSidebar(){if(!this.headerSection.hamburgerElement||!this.headerSection.sidebarElement)return;this.headerSection.sidebarElement.style.display="",this.headerSection.hamburgerElement.addEventListener("click",()=>{this.headerSection.hamburgerElement&&this.setSidebarStatus(!this.headerSection.sectionElement.classList.contains("sidebar-open"))}),window.addEventListener("resize",()=>{this.updateHamburgerPosition()},{passive:!0}),this.headerSection.sidebarOverlayElement&&this.headerSection.sidebarOverlayElement.addEventListener("click",()=>{this.setSidebarStatus(!1)});const e=this.headerSection.sidebarElement.querySelector(".sidebar-header");e&&e.addEventListener("click",()=>{this.setSidebarStatus(!1)}),this.headerSection.sidebarElement.querySelectorAll(".link-button:not(.dropdown-toggle)").forEach(n=>{n.addEventListener("click",()=>{this.setSidebarStatus(!1)})}),this.headerSection.sidebarElement.querySelectorAll(".dropdown-toggle").forEach(n=>{const o=n.parentElement;n.addEventListener("click",s=>{s.preventDefault(),o&&o.classList.toggle("dropdown-active")})})}setSidebarStatus(e){!this.headerSection.hamburgerElement||!this.headerSection.sidebarElement||(e&&!this.headerSection.sectionElement.classList.contains("sidebar-open")?(this.headerSection.sidebarOverlayElement&&(this.headerSection.sidebarOverlayElement.style.opacity="0",this.headerSection.sidebarOverlayElement.style.display="block",window.setTimeout(()=>{this.headerSection.sidebarOverlayElement.style.opacity="1"},2)),this.headerSection.sectionElement.classList.add("sidebar-open"),this.updateHamburgerPosition()):!e&&this.headerSection.sectionElement.classList.contains("sidebar-open")&&(this.headerSection.sidebarOverlayElement&&(this.headerSection.sidebarOverlayElement.style.opacity="0",window.setTimeout(()=>{this.headerSection.sidebarOverlayElement.style.display="none"},500)),this.headerSection.sectionElement.classList.remove("sidebar-open"),this.headerSection.hamburgerElement.style.transform="translateX(0px)"))}updateHamburgerPosition(){if(!(!this.headerSection.hamburgerWrapperElement||!this.headerSection.hamburgerElement||!this.headerSection.sidebarElement)&&this.headerSection.sectionElement.classList.contains("sidebar-open")){const e=this.headerSection.hamburgerWrapperElement.getBoundingClientRect();this.headerSection.page.context.rtl||this.headerSection.sectionElement.classList.contains("right-logo-disposition")?this.headerSection.hamburgerElement.style.transform="translateX(".concat(this.headerSection.sidebarElement.clientWidth+ue.closeButtonGap-e.left,"px)"):this.headerSection.hamburgerElement.style.transform="translateX(".concat(document.body.clientWidth-e.right-(this.headerSection.sidebarElement.clientWidth+ue.closeButtonGap),"px)")}}update(){this.updateMenuType(),this.updateLogoSize()}updateLogoSize(){if(!this.headerSection.containerElement||!this.hamburgerWrapperElement||!this.headerSection.navElement||!this.headerSection.logoElement)return;const e=Array.from(this.headerSection.logoElement.querySelectorAll("img, svg"));if(!this.headerSection.sectionElement.classList.contains("force-hamburger")){for(const m of e)m.style.width="",m.style.height="";return}const n=getComputedStyle$1(this.headerSection.containerElement),o=this.headerSection.containerElement.clientWidth-parseFloat(n.paddingRight),s=this.headerSection.containerElement.getBoundingClientRect().x+o,c=this.hamburgerWrapperElement.getBoundingClientRect().x+this.hamburgerWrapperElement.getBoundingClientRect().width-s,l=this.headerSection.logoElement.getBoundingClientRect(),u=getComputedStyle$1(this.headerSection.logoElement),f=this.headerSection.navElement.getBoundingClientRect().x-(l.x+l.width),p=f<=0?c:-f,b
6=l.width-p;for(const m of e){const C=this.imageSizes.get(m);if(!C){console.error(m+" not found",this.imageSizes);continue}let O=C[0],I=C[1];if(m instanceof SVGElement){const E=Math.min(I,parseFloat(u.maxHeight)),T=E/I;I=E,O=O*T}const B=b/O,G=O*B,y=I*B;G>=O?(m.style.width="",m.style.height=""):(m.style.maxWidth="".concat(G,"px"),m.style.maxHeight="".concat(y,"px"))}}updateMenuType(){if(!this.headerSection.containerElement)return;const e=getComputedStyle$1(this.headerSection.containerElement),n=this.headerSection.containerElement.clientWidth-(parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)),o=this.getNavWidth();o!==null&&this.setMenuType(o+this.initialLogoWidth+ue.logoGap>=n)}setMenuType(e){e?(this.headerSection.sectionElement.classList.add("force-hamburger"),document.body.classList.add("hamburger")):(document.body.classList.remove("hamburger"),this.headerSection.sectionElement.classList.contains("force-hamburger")&&(this.setSidebarStatus(!1),this.headerSection.sectionElement.classList.remove("force-hamburger"),this.headerSection.navElement&&(this.headerSection.navElement.style.display="none",window.setTimeout(()=>{this.headerSection.navElement.style.display="block"},1))))}getNavWidth(){if(!this.headerSection.navElement)return null;let e=0;for(const n of this.firstLevelElements){const o=getComputedStyle$1(n);e+=n.offsetWidth+parseFloat(o.paddingLeft)+parseFloat(o.paddingRight)+parseFloat(o.marginLeft)+parseFloat(o.marginRight)}return e}bindDropdowns(){if(this.headerSection.navElement){const e=[];for(const n of this.firstLevelElements)if(n.classList.contains("with-dropdown")){const o=n.querySelector(".dropdown-menu-wrapper");o&&e.push(new Dropdown(n,o,e))}else n.addEventListener("mouseenter",()=>{for(const o of e)o.close()},{passive:!0})}}};S(ue,"logoGap",20),S(ue,"closeButtonGap",10);let Navigation=ue;class HeaderSection extends AbstractSection{constructor(n,o){var s,a,c,l;super(n,o);S(this,"heightListeners",[]);S(this,"navigation");S(this,"topSectionElement");S(this,"topSectionContainerElement");S(this,"observerSpyElement");S(this,"topSectionElementTopSectionContainerElement");S(this,"containerElement");S(this,"navElement");S(this,"logoElement");S(this,"logoWrapperElement");S(this,"hamburgerWrapperElement");S(this,"hamburgerElement");S(this,"sidebarElement");S(this,"sidebarOverlayElement");S(this,"autoTransparent");S(this,"currentHeight");S(this,"wasTransparencySet",!1);S(this,"buttonsLink");S(this,"buttonsLinkOriginalStyle",[]);S(this,"sectionOriginalStyle","");this.topSectionElement=this.getTopSectionElement(),this.topSectionContainerElement=((s=this.topSectionElement)==null?void 0:s.querySelector(".section-container"))||null,this.observerSpyElement=((a=this.topSectionContainerElement)==null?void 0:a.querySelector(".observer-spy"))||null,this.topSectionElementTopSectionContainerElement=((c=this.topSectionContainerElement)==null?void 0:c.querySelector(".section-element"))||null,this.containerElement=this.sectionElement.querySelector(".section-container"),this.navElement=this.sectionElement.querySelector("nav"),this.logoElement=this.sectionElement.querySelector(".link-logo"),this.logoWrapperElement=this.sectionElement.querySelector(".link-logo-wrapper"),this.hamburgerWrapperElement=this.sectionElement.querySelector(".hamburger-wrapper"),this.hamburgerElement=this.sectionElement.querySelector(".hamburger"),this.sidebarElement=this.sectionElement.querySelector(".sidebar"),this.sidebarOverlayElement=this.sectionElement.querySelector(".overlay"),this.autoTransparent=this.sectionElement.classList.contains("transparent-header-auto"),this.navigation=new Navigation(this),this.currentHeight=n.offsetHeight,this.buttonsLink=(l=this.navElement)==null?void 0:l.querySelectorAll("ul li .link"),this.setOriginalStyle()}setOriginalStyle(){this.buttonsLink&&this.buttonsLink.forEach(n=>{this.buttonsLinkOriginalStyle.push({class:Array.from(n.classList).filter(o=>o.includes("link-style")).join(" "),id:n.id})}),this.sectionElement&&(this.sectionOriginalStyle=Array.from(this.sectionElement.classList).filter(n=>n.includes("link-style")||n.includes("link-element")).join(" "))}getTopSectionElement(){let n=document.querySelector("main > section:not(.header-section)");for(;n&&n.classList.contains("group-section");)n=n.querySelector("section");return n}
6async init(){this.navigation.init(),this.navigation.update(),this.setupObservers(),this.toggleAlternate(this.sectionElement.className.includes("transparent"))}setupObservers(){if(this.autoTransparent&&this.topSectionContainerElement!==null&&this.observerSpyElement!==null){const o=(this.sectionElement.offsetHeight-(this.logoWrapperElement?parseFloat(getComputedStyle(this.logoWrapperElement).marginBottom):0)-(this.topSectionElementTopSectionContainerElement?parseFloat(getComputedStyle(this.topSectionElementTopSectionContainerElement).paddingTop):0))*-1;new IntersectionObserver(a=>{this.toggleAlternate(a[0].isIntersecting),window.setTimeout(()=>{this.updateNavHeight(),this.navigation.update()},250)},{rootMargin:"".concat(o,"px 0px 0px 0px"),threshold:1}).observe(this.observerSpyElement)}const n=throttle(this.navigation.update.bind(this.navigation),150,{leading:!1,trailing:!0});new ResizeObserver(o=>{n();const s=o[0].contentRect.height;if(s!==this.currentHeight){this.currentHeight=s;for(const a of this.heightListeners)a(s)}}).observe(this.sectionElement)}setTransparency(n){this.wasTransparencySet||this.sectionElement.classList.add("no-animations"),n?this.sectionElement.classList.add("transparent"):this.sectionElement.classList.remove("transparent"),this.wasTransparencySet||window.setTimeout(()=>{this.sectionElement.classList.remove("no-animations")},5),this.wasTransparencySet=!0}addHeightListener(n){this.heightListeners.push(n)}toggleAlternate(n){var o;this.setTransparency(n),(o=this.buttonsLink)==null||o.forEach((s,a)=>{s.getAttribute("data-alternate-style-class")&&(n?s.className=s.className.split(" ").map(c=>c.includes("link-alternate-style")?this.buttonsLinkOriginalStyle[a].class:c).join(" "):s.className=s.className.split(" ").map(c=>c.includes("link-style")?s.getAttribute("data-alternate-style-class"):c).join(" ")),s.getAttribute("data-alternate-style-id")&&(n?s.id=this.buttonsLinkOriginalStyle[a].id:s.id=s.getAttribute("data-alternate-style-id"))}),this.sectionElement.getAttribute("data-alternate-style-class")&&(n?(this.sectionElement.className=this.sectionElement.className.split(" ").map(s=>s.includes("link-alternate-style")||s.includes("link-alternate-element")?"":s).join(" "),this.sectionElement.className+=" "+this.sectionOriginalStyle):(this.sectionElement.className=this.sectionElement.className.split(" ").map(s=>s.includes("link-style")||s.includes("link-element")?"":s).join(" "),this.sectionElement.className+=" "+this.sectionElement.getAttribute("data-alternate-style-class")))}updateNavHeight(){const n=this.navElement,o=n==null?void 0:n.querySelectorAll("li > a.dropdown-toggle");n&&o&&o.length>0&&o.forEach(s=>{const a=s.parentElement.querySelector(".dropdown-menu-wrapper");a.style.top="calc(50% + (".concat(getComputedStyle(s).height," / 2))")})}}class BannerSection extends AbstractSection{constructor(n,o){var a,c;super(n,o);S(this,"isTheTopSection");S(this,"containerElement");S(this,"titleElement");this.containerElement=this.sectionElement.querySelector(".section-container"),this.titleElement=(c=(a=this.containerElement)==null?void 0:a.querySelector(".title"))!=null?c:null,this.isTheTopSection=this.sectionElement.offsetTop<=0;const s=this.sectionElement.querySelector("a.scroll-indicator-link");if(s){let l=this.sectionElement.nextElementSibling;for(;l&&!l.matches("section.base-section");)l=l.nextElementSibling;l&&(s.href="#"+l.getAttribute("id")+"-o")}}
6async init(){if(!this.isTheTopSection)this.sectionElement.classList.add("not-in-top-viewport");else if(this.containerElement&&this.titleElement){const n=this.page.getHeaderSection();if(n){const o=throttle(this.computeLayout.bind(this),150,{leading:!1,trailing:!0});this.computeLayout(n.currentHeight),n.addHeightListener(a=>{window.scrollY<10&&o(a)});const s=new ResizeObserver(()=>{o(n.currentHeight)});s.observe(this.containerElement),s.observe(this.sectionElement)}}}computeLayout(n){if(!this.containerElement||!this.titleElement)return;let o="--section-min-height";window.innerWidth<768&&(o="--section-min-height-mobile");const s=this.getContentHeight();this.sectionElement.style.minHeight="max(var(".concat(o,"), ").concat(n+s,"px)"),this.containerElement.style.marginTop="",this.titleElement.getBoundingClientRect().top-parseInt(window.getComputedStyle(this.titleElement).getPropertyValue("padding-top"))+window.scrollY<n&&(this.containerElement.style.marginTop="var(--header-compensation-margin)")}getContentHeight(){if(!this.containerElement)return 0;let n=0;for(const o of Array.from(this.containerElement.children))n+=o.clientHeight;return n}}var extendStatics=function(r,e){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(n[s]=o[s])},extendStatics(r,e)};function __extends(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");extendStatics(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}function __awaiter(r,e,n,o){function s(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function l(f){try{d(o.next(f))}catch(p){c(p)}}function u(f){try{d(o.throw(f))}catch(p){c(p)}}function d(f){f.done?a(f.value):s(f.value).then(l,u)}d((o=o.apply(r,e||[])).next())})}function __generator(r,e){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,s,a,c=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return c.next=l(0),c.throw=l(1),c.return=l(2),typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function l(d){return function(f){return u([d,f])}}function u(d){if(o)throw new TypeError("Generator is already executing.");for(;c&&(c=0,d[0]&&(n=0)),n;)try{if(o=1,s&&(a=d[0]&2?s.return:d[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,d[1])).done)return a;switch(s=0,a&&(d=[d[0]&2,a.value]),d[0]){case 0:case 1:a=d;break;case 4:return n.label++,{value:d[1],done:!1};case 5:n.label++,s=d[1],d=[0];continue;case 7:d=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]<a[3])){n.label=d[1];break}if(d[0]===6&&n.label<a[1]){n.label=a[1],a=d;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(d);break}a[2]&&n.ops.pop(),n.trys.pop();continue}d=e.call(r,n)}catch(f){d=[6,f],s=0}finally{o=a=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}function __spreadArray(r,e,n){if(n||arguments.length===2)for(var o=0,s=e.length,a;o<s;o++)(a||!(o in e))&&(a||(a=Array.prototype.slice.call(e,0,o)),a[o]=e[o]);return r.concat(a||Array.prototype.slice.call(e))}typeof SuppressedError=="function"&&SuppressedError;var version="1.9.1",BotKind={Awesomium:"awesomium",Cef:"cef",CefSharp:"cefsharp",CoachJS:"coachjs",Electron:"electron",FMiner:"fminer",Geb:"geb",NightmareJS:"nightmarejs",Phantomas:"phantomas",PhantomJS:"phantomjs",Rhino:"rhino",Selenium:"selenium",Sequentum:"sequentum",SlimerJS:"slimerjs",WebDriverIO:"webdriverio",WebDriver:"webdriver",HeadlessChrome:"headless_chrome",Unknown:"unknown"},BotdError=(function(r){__extends(e,r);function e(n,o){var s=r.call(this,o)||this;return s.state=n,s.name="BotdError",Object.setPrototypeOf(s,e.prototype),s}return e})(Error);function detect(r,e){var n={},o={bot:!1};for(var s in e){var a=e[s],c=a(r),l={bot:!1};typeof c=="string"?l={bot:!0,botKind:c}:c&&(l={bot:!0,botKind:BotKind.Unknown}),n[s]=l,l.bot&&(o=l)}return[n,o]}function collect(r){return __awaiter(this,void 0,void 0,function(){var e,n,o=this;return __generator(this,function(s){switch(s.label){case 0:return e={},n=Object.keys(r),[4,Promise.all(n.map(function(a){return __awaiter(o,void 0,void 0,function(){var c,l,u,d,f;return __generator(this,function(p){switch(p.label){case 0:c=r[a],p.label=1;case 1:return p.trys.push([1,3,,4]),l=e,u=a,f={},[4,c()];case 2:return l[u]=(f.value=p.sent(),f.state=0,f),[3,4];
6case 3:return d=p.sent(),d instanceof BotdError?e[a]={state:d.state,error:"".concat(d.name,": ").concat(d.message)}:e[a]={state:-3,error:d instanceof Error?"".concat(d.name,": ").concat(d.message):String(d)},[3,4];case 4:return[2]}})})}))];case 1:return s.sent(),[2,e]}})})}function detectAppVersion(r){var e=r.appVersion;if(e.state!==0)return!1;if(/headless/i.test(e.value))return BotKind.HeadlessChrome;if(/electron/i.test(e.value))return BotKind.Electron;if(/slimerjs/i.test(e.value))return BotKind.SlimerJS}function arrayIncludes(r,e){return r.indexOf(e)!==-1}function strIncludes(r,e){return r.indexOf(e)!==-1}function arrayFind(r,e){if("find"in r)return r.find(e);for(var n=0;n<r.length;n++)if(e(r[n],n,r))return r[n]}function getObjectProps(r){return Object.getOwnPropertyNames(r)}function includes(r){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var o=function(u){if(typeof u=="string"){if(arrayIncludes(r,u))return{value:!0}}else{var d=arrayFind(r,function(f){return u.test(f)});if(d!=null)return{value:!0}}},s=0,a=e;s<a.length;s++){var c=a[s],l=o(c);if(typeof l=="object")return l.value}return!1}function countTruthy(r){return r.reduce(function(e,n){return e+(n?1:0)},0)}function detectDocumentAttributes(r){var e=r.documentElementKeys;if(e.state!==0)return!1;if(includes(e.value,"selenium","webdriver","driver"))return BotKind.Selenium}function detectErrorTrace(r){var e=r.errorTrace;if(e.state!==0)return!1;if(/PhantomJS/i.test(e.value))return BotKind.PhantomJS}function detectEvalLengthInconsistency(r){var e=r.evalLength,n=r.browserKind,o=r.browserEngineKind;if(!(e.state!==0||n.state!==0||o.state!==0)){var s=e.value;return o.value==="unknown"?!1:s===37&&!arrayIncludes(["webkit","gecko"],o.value)||s===39&&!arrayIncludes(["internet_explorer"],n.value)||s===33&&!arrayIncludes(["chromium"],o.value)}}function detectFunctionBind(r){var e=r.functionBind;if(e.state===-2)return BotKind.PhantomJS}function detectLanguagesLengthInconsistency(r){var e=r.languages;if(e.state===0&&e.value.length===0)return BotKind.HeadlessChrome}function detectMimeTypesConsistent(r){var e=r.mimeTypesConsistent;if(e.state===0&&!e.value)return BotKind.Unknown}function detectNotificationPermissions(r){var e=r.notificationPermissions,n=r.browserKind;if(n.state!==0||n.value!=="chrome")return!1;if(e.state===0&&e.value)return BotKind.HeadlessChrome}function detectPluginsArray(r){var e=r.pluginsArray;if(e.state===0&&!e.value)return BotKind.HeadlessChrome}function detectPluginsLengthInconsistency(r){var e=r.pluginsLength,n=r.android,o=r.browserKind,s=r.browserEngineKind;if(!(e.state!==0||n.state!==0||o.state!==0||s.state!==0)&&!(o.value!=="chrome"||n.value||s.value!=="chromium")&&e.value===0)return BotKind.HeadlessChrome}function detectProcess(r){var e,n=r.process;if(n.state!==0)return!1;if(n.value.type==="renderer"||((e=n.value.versions)===null||e===void 0?void 0:e.electron)!=null)return BotKind.Electron}function detectProductSub(r){var e=r.productSub,n=r.browserKind;if(e.state!==0||n.state!==0)return!1;if((n.value==="chrome"||n.value==="safari"||n.value==="opera"||n.value==="wechat")&&e.value!=="20030107")return BotKind.Unknown}function detectUserAgent(r){var e=r.userAgent;if(e.state!==0)return!1;if(/PhantomJS/i.test(e.value))return BotKind.PhantomJS;if(/Headless/i.test(e.value))return BotKind.HeadlessChrome;if(/Electron/i.test(e.value))return BotKind.Electron;if(/slimerjs/i.test(e.value))return BotKind.SlimerJS}function detectWebDriver(r){var e=r.webDriver;if(e.state===0&&e.value)return BotKind.HeadlessChrome}function detectWebGL(r){var e=r.webGL;if(e.state===0){var n=e.value,o=n.vendor,s=n.renderer;if(o=="Brian Paul"&&s=="Mesa OffScreen")return BotKind.HeadlessChrome}}function detectWindowExternal(r){var e=r.windowExternal;if(e.state!==0)return!1;if(/Sequentum/i.test(e.value))return BotKind.Sequentum}function detectWindowSize(r){var e=r.windowSize,n=r.documentFocus;if(e.state!==0||n.state!==0)return!1;var o=e.value,s=o.outerWidth,a=o.outerHeight;if(n.value&&s===0&&a===0)return BotKind.HeadlessChrome}function detectDistinctiveProperties(r){var e=r.distinctiveProps;if(e.state!==0)return!1;var n=e.value,o;for(o in n)if(n[o])return o}var detectors={detectAppVersion,detectDocumentAttributes,detectErrorTrace,detectEvalLengthInconsistency,detectFunctionBind,detectLanguagesLengthInconsistency,detectNotificationPermissions,detectPluginsArray,detectPluginsLengthInconsistency,detectProcess,detectUserAgent,detectWebDriver,detectWebGL,detectWindowExternal,detectWindowSize,detectMimeTypesConsistent,detectProductSub,detectDistinctiveProperties};function getAppVersion(){var r=navigator.appVersion;if(r==null)throw new BotdError(-1,"navigator.appVersion is undefined");return r}function getDocumentElementKeys(){if(document.documentElement===void 0)throw new BotdError(-1,"document.documentElement is undefined");var r=document.documentElement;if(typeof r.getAttributeNames!="function")throw new BotdError(-2,"document.documentElement.getAttributeNames is not a function");return r.getAttributeNames()}function getErrorTrace(){try{null[0]()}catch(r){if(r instanceof Error&&r.stack!=null)return r.stack.toString()}throw new BotdError(-3,"errorTrace signal unexpected behaviour")}function getEvalLength(){return eval.toString().length}function getFunctionBind(){if(Function.prototype.bind===void 0)throw new BotdError(-2,"Function.prototype.bind is undefined");return Function.prototype.bind.toString()}function getBrowserEngineKind(){var r,e,n=window,o=navigator;return countTruthy(["webkitPersistentStorage"in o,"webkitTemporaryStorage"in o,o.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in n,"BatteryManager"in n,"webkitMediaStream"in n,"webkitSpeechGrammar"in n])>=5?"chromium":countTruthy(["ApplePayError"in n,"CSSPrimitiveValue"in n,"Counter"in n,o.vendor.indexOf("Apple")===0,"getStorageUpdates"in o,"WebKitMediaKeys"in n])>=4?"webkit":countTruthy(["buildID"in navigator,"MozAppearance"in((e=(r=document.documentElement)===null||r===void 0?void 0:r.style)!==null&&e!==void 0?e:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4?"gecko":"unknown"}function getBrowserKind(){var r,e=(r=navigator.userAgent)===null||r===void 0?void 0:r.toLowerCase();return strIncludes(e,"edg/")?"edge":strIncludes(e,"trident")||strIncludes(e,"msie")?"internet_explorer":strIncludes(e,"wechat")?"wechat":strIncludes(e,"firefox")?"firefox":strIncludes(e,"opera")||strIncludes(e,"opr")?"opera":strIncludes(e,"chrome")?"chrome":strIncludes(e,"safari")?"safari":"unknown"}function isAndroid(){var r=getBrowserEngineKind(),e=r==="chromium",n=r==="gecko";if(!e&&!n)return!1;var o=window;return countTruthy(["onorientationchange"in o,"orientation"in o,e&&!("SharedWorker"in o),n&&/android/i.test(navigator.appVersion)])>=2}function getDocumentFocus(){return document.hasFocus===void 0?!1:document.hasFocus()}function isChromium86OrNewer(){var r=window;return countTruthy([!("MediaSettingsRange"in r),"RTCEncodedAudioFrame"in r,""+r.Intl=="[object Intl]",""+r.Reflect=="[object Reflect]"])>=3}function getLanguages(){var r=navigator,e=[],n=r.language||r.userLanguage||r.browserLanguage||r.systemLanguage;
6if(n!==void 0&&e.push([n]),Array.isArray(r.languages)){var o=getBrowserEngineKind();o==="chromium"&&isChromium86OrNewer()||e.push(r.languages)}else if(typeof r.languages=="string"){var s=r.languages;s&&e.push(s.split(","))}return e}function areMimeTypesConsistent(){if(navigator.mimeTypes===void 0)throw new BotdError(-1,"navigator.mimeTypes is undefined");for(var r=navigator.mimeTypes,e=Object.getPrototypeOf(r)===MimeTypeArray.prototype,n=0;n<r.length;n++)e&&(e=Object.getPrototypeOf(r[n])===MimeType.prototype);return e}function getNotificationPermissions(){return __awaiter(this,void 0,void 0,function(){var r,e;return __generator(this,function(n){switch(n.label){case 0:if(window.Notification===void 0)throw new BotdError(-1,"window.Notification is undefined");if(navigator.permissions===void 0)throw new BotdError(-1,"navigator.permissions is undefined");if(r=navigator.permissions,typeof r.query!="function")throw new BotdError(-2,"navigator.permissions.query is not a function");n.label=1;case 1:return n.trys.push([1,3,,4]),[4,r.query({name:"notifications"})];case 2:return e=n.sent(),[2,window.Notification.permission==="denied"&&e.state==="prompt"];case 3:throw n.sent(),new BotdError(-3,"notificationPermissions signal unexpected behaviour");case 4:return[2]}})})}function getPluginsArray(){if(navigator.plugins===void 0)throw new BotdError(-1,"navigator.plugins is undefined");if(window.PluginArray===void 0)throw new BotdError(-1,"window.PluginArray is undefined");return navigator.plugins instanceof PluginArray}function getPluginsLength(){if(navigator.plugins===void 0)throw new BotdError(-1,"navigator.plugins is undefined");if(navigator.plugins.length===void 0)throw new BotdError(-3,"navigator.plugins.length is undefined");return navigator.plugins.length}function getProcess(){var r=window.process,e="window.process is";if(r===void 0)throw new BotdError(-1,"".concat(e," undefined"));if(r&&typeof r!="object")throw new BotdError(-3,"".concat(e," not an object"));return r}function getProductSub(){var r=navigator.productSub;if(r===void 0)throw new BotdError(-1,"navigator.productSub is undefined");return r}function getRTT(){if(navigator.connection===void 0)throw new BotdError(-1,"navigator.connection is undefined");if(navigator.connection.rtt===void 0)throw new BotdError(-1,"navigator.connection.rtt is undefined");return navigator.connection.rtt}function getUserAgent(){return navigator.userAgent}function getWebDriver(){if(navigator.webdriver==null)throw new BotdError(-1,"navigator.webdriver is undefined");return navigator.webdriver}function getWebGL(){var r=document.createElement("canvas");if(typeof r.getContext!="function")throw new BotdError(-2,"HTMLCanvasElement.getContext is not a function");var e=r.getContext("webgl");if(e===null)throw new BotdError(-4,"WebGLRenderingContext is null");if(typeof e.getParameter!="function")throw new BotdError(-2,"WebGLRenderingContext.getParameter is not a function");var n=e.getParameter(e.VENDOR),o=e.getParameter(e.RENDERER);return{vendor:n,renderer:o}}function getWindowExternal(){if(window.external===void 0)throw new BotdError(-1,"window.external is undefined");var r=window.external;if(typeof r.toString!="function")throw new BotdError(-2,"window.external.toString is not a function");return r.toString()}function getWindowSize(){return{outerWidth:window.outerWidth,outerHeight:window.outerHeight,innerWidth:window.innerWidth,innerHeight:window.innerHeight}}function checkDistinctiveProperties(){var r,e=(r={},r[BotKind.Awesomium]={window:["awesomium"]},r[BotKind.Cef]={window:["RunPerfTest"]},r[BotKind.CefSharp]={window:["CefSharp"]},r[BotKind.CoachJS]={window:["emit"]},r[BotKind.FMiner]={window:["fmget_targets"]},r[BotKind.Geb]={window:["geb"]}
6,r[BotKind.NightmareJS]={window:["__nightmare","nightmare"]},r[BotKind.Phantomas]={window:["__phantomas"]},r[BotKind.PhantomJS]={window:["callPhantom","_phantom"]},r[BotKind.Rhino]={window:["spawn"]},r[BotKind.Selenium]={window:["_Selenium_IDE_Recorder","_selenium","calledSelenium",/^([a-z]){3}_.*_(Array|Promise|Symbol)$/],document:["__selenium_evaluate","selenium-evaluate","__selenium_unwrapped"]},r[BotKind.WebDriverIO]={window:["wdioElectron"]},r[BotKind.WebDriver]={window:["webdriver","__webdriverFunc","__lastWatirAlert","__lastWatirConfirm","__lastWatirPrompt","_WEBDRIVER_ELEM_CACHE","ChromeDriverw"],document:["__webdriver_script_fn","__driver_evaluate","__webdriver_evaluate","__fxdriver_evaluate","__driver_unwrapped","__webdriver_unwrapped","__fxdriver_unwrapped","__webdriver_script_fn","__webdriver_script_func","__webdriver_script_function","$cdc_asdjflasutopfhvcZLmcf","$cdc_asdjflasutopfhvcZLmcfl_","$chrome_asyncScriptInfo","__$webdriverAsyncExecutor"]},r[BotKind.HeadlessChrome]={window:["domAutomation","domAutomationController"]},r),n,o={},s=getObjectProps(window),a=[];window.document!==void 0&&(a=getObjectProps(window.document));for(n in e){var c=e[n];if(c!==void 0){var l=c.window===void 0?!1:includes.apply(void 0,__spreadArray([s],c.window,!1)),u=c.document===void 0||!a.length?!1:includes.apply(void 0,__spreadArray([a],c.document,!1));o[n]=l||u}}return o}var sources={android:isAndroid,browserKind:getBrowserKind,browserEngineKind:getBrowserEngineKind,documentFocus:getDocumentFocus,userAgent:getUserAgent,appVersion:getAppVersion,rtt:getRTT,windowSize:getWindowSize,pluginsLength:getPluginsLength,pluginsArray:getPluginsArray,errorTrace:getErrorTrace,productSub:getProductSub,windowExternal:getWindowExternal,mimeTypesConsistent:areMimeTypesConsistent,evalLength:getEvalLength,webGL:getWebGL,webDriver:getWebDriver,languages:getLanguages,notificationPermissions:getNotificationPermissions,documentElementKeys:getDocumentElementKeys,functionBind:getFunctionBind,process:getProcess,distinctiveProps:checkDistinctiveProperties},BotDetector=(function(){function r(){this.components=void 0,this.detections=void 0}return r.prototype.getComponents=function(){return this.components},r.prototype.getDetections=function(){return this.detections},r.prototype.detect=function(){if(this.components===void 0)throw new Error("BotDetector.detect can't be called before BotDetector.collect");var e=detect(this.components,detectors),n=e[0],o=e[1];return this.detections=n,o},r.prototype.collect=function(){return __awaiter(this,void 0,void 0,function(){var e;return __generator(this,function(n){switch(n.label){case 0:return e=this,[4,collect(sources)];case 1:return e.components=n.sent(),[2,this.components]}})})},r})();function monitor(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var r=new XMLHttpRequest;r.open("get","https://m1.openfpcdn.io/botd/v".concat(version,"/npm-monitoring"),!0),r.send()}catch(e){console.error(e)}}function load(r){var e=r===void 0?{}:r,n=e.monitoring,o=n===void 0?!0:n;return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(a){switch(a.label){case 0:return o&&monitor(),s=new BotDetector,[4,s.collect()];case 1:return a.sent(),[2,s]}})})}const encoder=new TextEncoder;function ab2hex(r){return[...new Uint8Array(r)].map(e=>e.toString(16).padStart(2,"0")).join("")}async function hash(r,e){return crypto.subtle.digest(r.toUpperCase(),typeof e=="string"?encoder.encode(e):new Uint8Array(e))}async function hashHex(r,e){return ab2hex(await hash(r,e))}function solveChallenge(r,e,n="SHA-256",o=1e6,s=0){const a=new AbortController,c=Date.now();return{promise:(async()=>{for(let u=s;u<=o;u+=1){if(a.signal.aborted)return null;if(await hashHex(n,e+u)===r)return{number:u,took:Date.now()-c}}return null})(),controller:a}}async function solveChallengeWorkers(r,e,n,o,s="SHA-256",a=1e6,c=0){const l=[];e=Math.max(1,Math.min(16,e));for(let f=0;f<e;f++)typeof r=="function"?l.push(r()):l.push(new Worker(r,{type:"module"}));const u=Math.ceil(a/e),d=await Promise.all(l.map((f,p)=>{const b=c+p*u;return new Promise(m=>{f.addEventListener("message",C=>{if(C.data)for(const O of l)O!==f&&O.postMessage({type:"abort"});m(C.data)}),f.postMessage({payload:{algorithm:s,challenge:n,max:b+u,salt:o,start:b},type:"work"})})}));for(const f of l)f.terminate();return d.find(f=>!!f)||null}const altchaWorker="/dist/page/assets/worker-ezsWFtT6.js";async function fallback(r){const n=await solveChallenge(r.challenge,r.salt,r.algorithm,r.maxNumber).promise;if(console.log(n),n===null)throw new Error("No solution found");return{...r,number:n.number}}const startChallenge=async(r,e)=>{const s=await(await fetch(r,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({botd:e})})).json();try{console.log("web working");const a=await solveChallengeWorkers(altchaWorker,8,s.challenge,s.salt,s.algorithm,s.maxNumber);return console.log(a),a===null?await fallback(s):{...s,number:a.number}}catch(a){return captureException(a),console.log("not web working"),console.error(a),await fallback(s)}};class ContactSection extends AbstractSection{constructor(){super(...arguments);S(this,"recaptchaKey");S(this,"messageSubmitted",!1);S(this,"currentScreen");S(this,"elements");S(this,"botdPromise");S(this,"challengeUrl",null);S(this,"lastKnownFormHeight")}
6async init(){var c,l,u;const e=this.sectionElement.querySelector(".js-contact-form-target");if(e){const d=e.querySelector(".js-form-slot");if(!d)throw new Error("Cannot find form slot");const f=e.querySelector("template.js-delayed-form");if(f){const p=f.content;if(p){const b=p.cloneNode(!0);d.outerHTML=(l=(c=b.firstElementChild)==null?void 0:c.outerHTML.replace(/<r-contact/g,"<form"))!=null?l:"",(u=f.parentElement)==null||u.removeChild(f)}}}this.initAdwords();let n=this.sectionElement.querySelector("[data-challenge]");if(n===null)throw new Error("Cannot find [data-recaptcha]");this.recaptchaKey=n.dataset.recaptcha;let o=n.dataset.challengeTarget;if(o===void 0)throw new Error("Cannot find the challenge target selector");let s=n.dataset.fpTarget;if(s===void 0)throw new Error("Cannot find the fp target selector");this.challengeUrl=n.dataset.challenge;const a=this.sectionElement.querySelector('form[name="contact"]');a!==null&&(this.elements={form:a,formDone:this.getElement(".js-contact-form-done"),formError:this.getElement(".js-contact-form-error"),formWait:this.getElement(".js-contact-form-wait"),formRevalidate:this.getElement(".js-contact-form-revalidate"),challengeTarget:this.getElement(o),formSubmitButton:this.getElement(".form-submit.submit button"),fpTarget:this.getElement(s),formGdprCheckbox:this.sectionElement.querySelector(".js-contact-form-gdpr")},this.currentScreen=this.elements.form,this.botdPromise=load({monitoring:!1}),this.bind())}getElement(e){const n=this.sectionElement.querySelector(e);if(n===null)throw new Error("Cannot find "+e);return n}bind(){if(this.elements===void 0)throw"Unable to get elements of the contact section";if(this.sectionElement.querySelector("form")===null)throw"Unable to get the form of the contact section";(()=>{const o=this.sectionElement.querySelector("form");if(o===null)throw new Error("Cannot get the section form");o.addEventListener("submit",s=>{this.submit(s)})})(),this.elements.formGdprCheckbox&&this.elements.formGdprCheckbox.addEventListener("change",()=>{if(this.elements===void 0)throw"Unable to get elements of the contact section";this.elements.formGdprCheckbox&&this.elements.formGdprCheckbox.checked?this.elements.formSubmitButton.removeAttribute("disabled"):this.elements.formSubmitButton.setAttribute("disabled","disabled")}),this.sectionElement.querySelectorAll(":disabled").forEach(o=>{o.setAttribute("disabled",!1)}),this.elements.formError.style.display="none",this.materialFormInputs()}injectRecaptcha(e){const n=document.createElement("script"),o=document.head||document.getElementsByTagName("head")[0];n.src="https://www.google.com/recaptcha/api.js?render=".concat(this.recaptchaKey),n.async=!1,o.insertBefore(n,o.firstChild),n.addEventListener("load",()=>{window.grecaptcha.ready(()=>e())})}async submit(e){if(e.preventDefault(),this.elements===void 0)throw"Unable to get elements of the contact section";if(this.messageSubmitted)return;this.messageSubmitted=!0,this.waitScreen(!0,this.elements.form),await this.runBotd();const n=await startChallenge(this.challengeUrl,this.elements.fpTarget.value);this.elements.challengeTarget.value=btoa(JSON.stringify(n)),this.sendForm()}runBotd(){return new Promise((e,n)=>{var o;(o=this.botdPromise)==null||o.then(s=>s.detect()).then(s=>{if(this.elements){const a=JSON.stringify(s).split("").reverse().join("");this.elements.fpTarget.value=btoa(a)}e()}).catch(s=>{console.error(s),n()})})}sendForm(e){if(this.elements===void 0)throw"Unable to get elements of the contact section";e=e||this.elements.form.action,fetch(e,{method:"POST",body:new FormData(this.elements.form)}).then(n=>{n.ok?n.json().then(o=>{o.type==="iframe_challenge"?this.iframeChallenge(o):this.submitDone()}):n.json().then(o=>{this.submitError(o)}).catch(o=>{console.error("Server returned error",o),this.submitError("Une erreur serveur est survenue, merci de réessayer plus tard.")})}).catch(n=>{console.error("Form send error",n),this.submitError()})}submitDone(){var e,n;this.transitionToBlock(this.elements.formDone);const callbackCode=this.sectionElement.querySelector(".js-conversion-callback");callbackCode&&(callbackCode.insertAdjacentHTML("beforeend",callbackCode.dataset.code),callbackCode.querySelectorAll("script").forEach(script=>{eval(script.innerText)})),(e=this.page.analytics)!=null&&e.trackEvent&&((n=this.page.analytics)==null||n.trackEvent({contact:"contact"},"contact")),typeof window.goog_report_conversion=="function"?window.goog_report_conversion():typeof window.gtag_report_conversion=="function"&&window.gtag_report_conversion()}submitError(e){if(this.elements===void 0)throw"Unable to get elements of the contact section";this.messageSubmitted=!1,this.waitScreen(!1,this.elements.form),console.error("Submit error",e),this.elements.formError.style.display="block",e.error?typeof e.error.join=="function"?this.elements.formError.innerText=e.error.join(" ; "):this.elements.formError.innerText=e.error:this.elements.formError.innerText="Une erreur est survenue",this.elements.formWait.classList.remove("active"),this.elements.form.classList.remove("wait")}materialFormInputs(){let e=n=>{if(n.value.length>0){n.classList.add("has-value");return}n.classList.remove("has-value")};this.sectionElement.querySelectorAll(".md-form-group input, .md-form-group textarea").forEach(n=>
6{n.addEventListener("focus",()=>e(n)),n.addEventListener("change",()=>e(n)),n.addEventListener("input",()=>e(n)),n.addEventListener("blur",()=>e(n)),e(n)})}initAdwords(){const e=this.sectionElement.querySelector("[data-adw]").dataset.adw;try{JSON.parse(e)}catch(s){return}let n;try{n=this.sectionElement.querySelector("[data-phone-number]").dataset.phoneNumber}catch(s){console.error("Could not retrieve phone number");return}const o=(s,a)=>{console.info("Received callback"),document.querySelectorAll("[data-replace=phone-text]").forEach(c=>{c.innerHTML=s}),document.querySelectorAll("[data-replace=phone-link]").forEach(c=>{c.setAttribute("href","tel:".concat(a))})};_googWcmGet(o,n)}waitScreen(e=!0,n){if(this.elements===void 0)throw"Unable to get elements of the contact section";e?(n.classList.add("wait"),this.elements.formWait.classList.add("active"),n.querySelectorAll("input, textarea, button").forEach(o=>{o.setAttribute("readonly","readonly")})):(this.elements.formWait.classList.remove("active"),n.classList.remove("wait"),n.querySelectorAll("input, textarea, button").forEach(o=>{o.removeAttribute("readonly")}))}transitionToBlock(e){if(this.elements===void 0)throw"Unable to get elements of the contact section";if(this.currentScreen===void 0)throw"Unable to get currentScreen of the contact section";e.style.height="0",e.style.overflow="hidden",this.currentScreen.classList.remove("active"),this.currentScreen.classList.add("out"),e.classList.remove("out"),e.style.display="block",setTimeout(()=>{if(this.elements===void 0)throw"Unable to get elements of the contact section";if(this.currentScreen===void 0)throw"Unable to get currentScreen of the contact section";let n=this.elements.form.offsetHeight;this.elements.form.offsetHeight!==0?this.lastKnownFormHeight=this.elements.form.offsetHeight:n=this.lastKnownFormHeight,e.style.height=n+"px",this.currentScreen.style.display="none",e.classList.add("active"),e.style.display="block",this.currentScreen=e},500),this.waitScreen(!1,this.currentScreen)}iframeChallenge(e){if(this.elements===void 0)throw"Unable to get elements of the contact section";const n=this.elements.formRevalidate.querySelector(".js-captcha-container");this.elements.formRevalidate.classList.add("out"),this.elements.formRevalidate.style.minHeight="600px";const o=document.createElement("iframe");o.src=e.url,o.height="600";const s=a=>{var c,l,u,d,f,p,b;if(this.elements===void 0)throw"Unable to get elements of the contact section";if(((c=a.data)==null?void 0:c.status)==="loaded"&&((l=a.data)==null?void 0:l.source)==="challenge"&&((u=a.data)==null?void 0:u.id)===e.id&&this.transitionToBlock(this.elements.formRevalidate),((d=a.data)==null?void 0:d.status)==="ok"&&((f=a.data)==null?void 0:f.source)==="challenge"&&((p=a.data)!=null&&p.response)&&((b=a.data)==null?void 0:b.id)===e.id){const m=new Map;m.set("g-recaptcha-v2-response",a.data.response),m.set("original-data",e.data),m.forEach((O,I)=>{let B=!0,G=this.elements.form.querySelector("[name=".concat(I,"]"));G||(G=document.createElement("input"),B=!1),G.type="hidden",G.name=I,G.value=O,B||this.elements.form.appendChild(G)}),this.waitScreen(!0,this.elements.formRevalidate);const C=this.elements.form.action;this.elements.form.action=e.return,this.sendForm(),this.elements.form.action=C,window.removeEventListener("message",s),setTimeout(()=>{o.remove(),this.elements&&(this.elements.formRevalidate.style.minHeight="")},1e3)}};window.addEventListener("message",s),n.appendChild(o)}}S(ContactSection,"recaptchaInjected",!1);const INIT_DISTANCE=400;function getSectionFactories(){return[{selector:"section.header-section",instantiate:async(r,e)=>new HeaderSection(r,e),lazyLoad:!1},{selector:"section.banner-section",instantiate:async(r,e)=>new BannerSection(r,e),lazyLoad:!1},{selector:"section.projects-section",instantiate:async(r,e)=>{const{GallerySection:n}=await __vitePreload(async()=>{const{GallerySection:o}=await import("./chunk-Cpwn0gUX.js");return{GallerySection:o}},[]);return new n(r,e)},lazyLoad:!1},{selector:"section.group-section > .section-container > .section-content > .partition-carousel",instantiate:async(r,e)=>{const{GroupSection:n}=await __vitePreload(async()=>{const{GroupSection:o}=await import("./chunk-eJg5ixAe.js");return{GroupSection:o}},__vite__mapDeps([0,1]));return new n(r.closest("section"),e)},lazyLoad:!1},{selector:"section.contact-section",instantiate:async(r,e)=>new ContactSection(r,e),lazyLoad:!0},{selector:"section.footer-section",instantiate:async(r,e)=>{const{FooterSection:n}=await __vitePreload(async()=>{const{FooterSection:o}=await import("./chunk-zdr9PkEj.js");return{FooterSection:o}},[]);return new n(r,e)},lazyLoad:!1},{selector:"section.map-section",instantiate:async(r,e)=>{const{MapSection:n}=await __vitePreload(async()=>{const{MapSection:o}=await import("./chunk-CkB-CVLz.js");return{MapSection:o}},__vite__mapDeps([2,3]));return new n(r,e)},lazyLoad:!0},{selector:"section.partnerships-section",instantiate:async(r,e)=>{const{PartnershipsSection:n}=await __vitePreload(async()=>{const{PartnershipsSection:o}=await import("./chunk-D01YEjsQ.js");return{PartnershipsSection:o}},__vite__mapDeps([4,5,6]));return new n(r,e)},lazyLoad:!1},{selector:"section.testimonies-section",instantiate:async(r,e)=>{const{TestimoniesSection:n}=await __vitePreload(async()=>{const{TestimoniesSection:o}=await import("./chunk-Cb9UXlGX.js");return{TestimoniesSection:o}},__vite__mapDeps([7,5,6]));return new n(r,e)},lazyLoad:!1},{selector:"section.people-section",instantiate:async(r,e)=>{const{PeopleSection:n}=await __vitePreload(async()=>{const{PeopleSection:o}=await import("./chunk-Dor2BvYx.js");return{PeopleSection:o}},[]);return new n(r,e)},lazyLoad:!1},{selector:"section.epx-post-list-section",instantiate:async(r,e)=>{const{PostListSection:n}=await __vitePreload(async()=>{const{PostListSection:o}=await import("./chunk-BpwUI3qu.js");return{PostListSection:o}},[]);return new n(r,e)},lazyLoad:!1},{selector:"section.epx-social-media-posts-section",instantiate:async(r,e)=>{const{SocialMediaPostsSection:n}=await __vitePreload(async()=>{const{SocialMediaPostsSection:o}=await import("./chunk-BvCaPHaR.js");return{SocialMediaPostsSection:o}},[]);return new n(r,e)},lazyLoad:!1}]}async function initSections(r){for(const e of getSectionFactories())for(const n of document.querySelectorAll(e.selector))try{const o=await e.instantiate(n,r);r.sections.push(o);const s=[];
6s.push(o.init.bind(o));for(const a of o.getDispositions()){const c=await a;s.push(c.init.bind(c))}if(e.lazyLoad){const a=new IntersectionObserver(c=>{if(c[0].isIntersecting){a.disconnect();for(const l of s)l()}},{rootMargin:"".concat(INIT_DISTANCE,"px 0px ").concat(INIT_DISTANCE,"px 0px")});a.observe(n)}else for(const a of s)a()}catch(o){console.error("Cannot init the section ".concat(e.selector," for the section element"),[n,o]),captureException(o,{extra:{element:n,selector:e.selector}})}}var platform$3={exports:{}};var platform$2=platform$3.exports,hasRequiredPlatform;function requirePlatform(){return hasRequiredPlatform||(hasRequiredPlatform=1,(function(r,e){(function(){var n={function:!0,object:!0},o=n[typeof window]&&window||this,s=e,a=r&&!r.nodeType&&r,c=s&&a&&typeof commonjsGlobal=="object"&&commonjsGlobal;c&&(c.global===c||c.window===c||c.self===c)&&(o=c);var l=Math.pow(2,53)-1,u=/\bOpera/,d=Object.prototype,f=d.hasOwnProperty,p=d.toString;function b(g){return g=String(g),g.charAt(0).toUpperCase()+g.slice(1)}function m(g,A,P){var $={"10.0":"10","6.4":"10 Technical Preview","6.3":"8.1","6.2":"8","6.1":"Server 2008 R2 / 7","6.0":"Server 2008 / Vista","5.2":"Server 2003 / XP 64-bit","5.1":"XP","5.01":"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return A&&P&&/^Win/i.test(g)&&!/^Windows Phone /i.test(g)&&($=$[/[\d.]+$/.exec(g)])&&(g="Windows "+$),g=String(g),A&&P&&(g=g.replace(RegExp(A,"i"),P)),g=O(g.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0]),g}function C(g,A){var P=-1,$=g?g.length:0;if(typeof $=="number"&&$>-1&&$<=l)for(;++P<$;)A(g[P],P,g);else I(g,A)}function O(g){return g=T(g),/^(?:webOS|i(?:OS|P))/.test(g)?g:b(g)}function I(g,A){for(var P in g)f.call(g,P)&&A(g[P],P,g)}function B(g){return g==null?b(g):p.call(g).slice(8,-1)}function G(g,A){var P=g!=null?typeof g[A]:"number";return!/^(?:boolean|number|string|undefined)$/.test(P)&&(P=="object"?!!g[A]:!0)}function y(g){return String(g).replace(/([ -])(?!$)/g,"$1?")}function E(g,A){var P=null;return C(g,function($,F){P=A(P,$,F,g)}
vendor: 8,338 bytes, line 6
6),P}function T(g){return String(g).replace(/^ +| +$/g,"")}function x(g){var A=o,P=g&&typeof g=="object"&&B(g)!="String";P&&(A=g,g=null);var $=A.navigator||{},F=$.userAgent||"";g||(g=F);var Q=P?!!$.likeChrome:/\bChrome\b/.test(g)&&!/internal|\n/i.test(p.toString()),ie="Object",de=P?ie:"ScriptBridgingProxyObject",oe=P?ie:"Environment",ye=P&&A.java?"JavaPackage":B(A.java),ae=P?ie:"RuntimeObject",ce=/\bJava/.test(ye)&&A.java,Ee=ce&&B(A.environment)==oe,fe=ce?"a":"α",he=ce?"b":"β",pe=A.document||{},ee=A.operamini||A.opera,re=u.test(re=P&&ee?ee["[[Class]]"]:B(ee))?re:ee=null,h,D=g,L=[],H=null,j=g==F,w=j&&ee&&typeof ee.version=="function"&&ee.version(),K,R=ge([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),v=Y(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"(?:Edge|Edg|EdgA|EdgiOS)"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Vivaldi","Waterfox","WebPositive",{label:"Yandex Browser",pattern:"YaBrowser"},{label:"UC Browser",pattern:"UCBrowser"},"Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chromium","Chrome",{label:"Chrome",pattern:"(?:HeadlessChrome)"},{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),N=Z([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),q=W({Apple:{iPad:1,iPhone:1,iPod:1},Alcatel:{},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},Huawei:{},Lenovo:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Oppo:{},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1},Xiaomi:{Mi:1,Redmi:1}}),_=U(["Windows Phone","KaiOS","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian",{label:"DragonFly BSD",pattern:"DragonFly"},"Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);function ge(J){return E(J,function(V,M){return V||RegExp("\\b"+(M.pattern||y(M))+"\\b","i").exec(g)&&(M.label||M)})}function W(J){return E(J,function(V,M,te){return V||(M[N]||M[/^[a-z]+(?: +[a-z]+\b)*/i.exec(N)]||RegExp("\\b"+y(te)+"(?:\\b|\\w*\\d)","i").exec(g))&&te})}function Y(J){return E(J,function(V,M){return V||RegExp("\\b"+(M.pattern||y(M))+"\\b","i").exec(g)&&(M.label||M)})}function U(J){return E(J,function(V,M){var te=M.pattern||y(M);return!V&&(V=RegExp("\\b"+te+"(?:/[\\d.]+|[ \\w.]*)","i").exec(g))&&(V=m(V,te,M.label||M)),V})}function Z(J){return E(J,function(V,M){var te=M.pattern||y(M);return!V&&(V=RegExp("\\b"+te+" *\\d+[.\\w_]*","i").exec(g)||RegExp("\\b"+te+" *\\w+-[\\w]*","i").exec(g)||RegExp("\\b"+te+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(g))&&((V=String(M.label&&!RegExp(te,"i").test(M.label)?M.label:V).split("/"))[1]&&!/[\d.]+/.test(V[0])&&(V[0]+=" "+V[1]),M=M.label||M,V=O(V[0].replace(RegExp(te,"i"),M).replace(RegExp("; *(?:"+M+"[_-])?","i")," ").replace(RegExp("("+M+")[-_.]?(\\w)","i"),"$1 $2"))),V})}function le(J){return E(J,function(V,M){return V||(RegExp(M+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(g)||0)[1]||null})}function me(){return this.description||""}if(R&&(R=[R]),/\bAndroid\b/.test(_)&&!N&&(h=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(g))&&(N=T(h[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),q&&!N?N=Z([q]):q&&N&&(N=N.replace(RegExp("^("+y(q)+")[-_.\\s]","i"),q+" ").replace(RegExp("^("+y(q)+")[-_.]?(\\w)","i"),q+" $2")),(h=/\bGoogle TV\b/.exec(N))&&(N=h[0]),/\bSimulator\b/i.test(g)&&(N=(N?N+" ":"")+"Simulator"),v=="Opera Mini"&&/\bOPiOS\b/.test(g)&&L.push("running in Turbo/Uncompressed mode"),v=="IE"&&/\blike iPhone OS\b/.test(g)?(h=x(g.replace(/like iPhone OS/,"")),q=h.manufacturer,N=h.product):/^iP/.test(N)?(v||(v="Safari"),_="iOS"+((h=/ OS ([\d_]+)/i.exec(g))?" "+h[1].replace(/_/g,"."):"")):v=="Konqueror"&&/^Linux\b/i.test(_)?_="Kubuntu":q&&q!="Google"&&(/Chrome/.test(v)&&!/\bMobile Safari\b/i.test(g)||/\bVita\b/.test(N))||/\bAndroid\b/.test(_)&&/^Chrome/.test(v)&&/\bVersion\//i.test(g)?(v="Android Browser",_=/\bAndroid\b/.test(_)?_:"Android"):v=="Silk"?(/\bMobi/i.test(g)||(_="Android",L.unshift("desktop mode")),/Accelerated *= *true/i.test(g)&&L.unshift("accelerated")):v=="UC Browser"&&/\bUCWEB\b/.test(g)?L.push("speed mode"):v=="PaleMoon"&&(h=/\bFirefox\/([\d.]+)\b/.exec(g))?L.push("identifying as Firefox "+h[1]):v=="Firefox"&&(h=/\b(Mobile|Tablet|TV)\b/i.exec(g))?(_||(_="Firefox OS"),N||(N=h[1])):!v||(h=!/\bMinefield\b/i.test(g)&&/\b(?:Firefox|Safari)\b/.exec(v))?(v&&!N&&/[\/,]|^[^(]+?\)/.test(g.slice(g.indexOf(h+"/")+8))&&(v=null),(h=N||q||_)&&(N||q||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(_))&&(v=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(_)?_:h)+" Browser")):v=="Electron"&&(h=(/\bChrome\/([\d.]+)\b/.exec(g)||0)[1])&&L.push("Chromium "+h),w||(w=le(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",y(v),"(?:Firefox|Minefield|NetFront)"])),(h=R=="iCab"&&parseFloat(w)>3&&"WebKit"||/\bOpera\b/.test(v)&&(/\bOPR\b/.test(g)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(g)&&!/^(?:Trident|EdgeHTML)$/.test(R)&&"WebKit"||!R&&/\bMSIE\b/i.test(g)&&(_=="Mac OS"?"Tasman":"Trident")||R=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(v)&&"NetFront")&&(R=[h]),v=="IE"&&(h=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(g)||0)[1])?(v+=" Mobile",_="Windows Phone "+(/\+$/.test(h)?h:h+".x"),L.unshift("desktop mode")):/\bWPDesktop\b/i.test(g)?(v="IE Mobile",_="Windows Phone 8.x",L.unshift("desktop mode"),w||(w=(/\brv:([\d.]+)/.exec(g)||0)[1])):v!="IE"&&R=="Trident"&&(h=/\brv:([\d.]+)/.exec(g))&&(v&&L.push("identifying as "+v+(w?" "+w:"")),v="IE",w=h[1]),j){if(G(A,"global"))if(ce&&(h=ce.lang.System,D=h.getProperty("os.arch"),_=_||h.getProperty("os.name")+" "+h.getProperty("os.version")),Ee){try{w=A.require("ringo/engine").version.join("."),v="RingoJS"}catch(J){(h=A.system)&&h.global.system==A.system&&(v="Narwhal",_||(_=h[0].os||null))}v||(v="Rhino")}else typeof A.process=="object"&&!A.process.browser&&(h=A.process)&&(typeof h.versions=="object"&&(typeof h.versions.electron=="string"?(L.push("Node "+h.versions.node),v="Electron",w=h.versions.electron):typeof h.versions.nw=="string"&&(L.push("Chromium "+w,"Node "+h.versions.node),v="NW.js",w=h.versions.nw)),v||(v="Node.js",D=h.arch,_=h.platform,w=/[\d.]+/.exec(h.version),w=w?w[0]:null));else B(h=A.runtime)==de?(v="Adobe AIR",_=h.flash.system.Capabilities.os):B(h=A.phantom)==ae?(v="PhantomJS",w=(h=h.version||null)&&h.major+"."+h.minor+"."+h.patch):typeof pe.documentMode=="number"&&(h=/\bTrident\/(\d+)/i.exec(g))?(w=[w,pe.documentMode],(h=+h[1]+4)!=w[1]&&(L.push("IE "+w[1]+" mode"),R&&(R[1]=""),w[1]=h),w=v=="IE"?String(w[1].toFixed(1)):w[0]):typeof pe.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(v)&&(L.push("masking as "+v+" "+w),v="IE",w="11.0",R=["Tr
6ident"],_="Windows");_=_&&O(_)}if(w&&(h=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(w)||/(?:alpha|beta)(?: ?\d)?/i.exec(g+";"+(j&&$.appMinorVersion))||/\bMinefield\b/i.test(g)&&"a")&&(H=/b/i.test(h)?"beta":"alpha",w=w.replace(RegExp(h+"\\+?$"),"")+(H=="beta"?he:fe)+(/\d+\+?/.exec(h)||"")),v=="Fennec"||v=="Firefox"&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(_))v="Firefox Mobile";else if(v=="Maxthon"&&w)w=w.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(N))N=="Xbox 360"&&(_=null),N=="Xbox 360"&&/\bIEMobile\b/.test(g)&&L.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(v)||v&&!N&&!/Browser|Mobi/.test(v))&&(_=="Windows CE"||/Mobi/i.test(g)))v+=" Mobile";else if(v=="IE"&&j)try{A.external===null&&L.unshift("platform preview")}catch(J){L.unshift("embedded")}else(/\bBlackBerry\b/.test(N)||/\bBB10\b/.test(g))&&(h=(RegExp(N.replace(/ +/g," *")+"/([.\\d]+)","i").exec(g)||0)[1]||w)?(h=[h,/BB10/.test(g)],_=(h[1]?(N=null,q="BlackBerry"):"Device Software")+" "+h[0],w=null):this!=I&&N!="Wii"&&(j&&ee||/Opera/.test(v)&&/\b(?:MSIE|Firefox)\b/i.test(g)||v=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(_)||v=="IE"&&(_&&!/^Win/.test(_)&&w>5.5||/\bWindows XP\b/.test(_)&&w>8||w==8&&!/\bTrident\b/.test(g)))&&!u.test(h=x.call(I,g.replace(u,"")+";"))&&h.name&&(h="ing as "+h.name+((h=h.version)?" "+h:""),u.test(v)?(/\bIE\b/.test(h)&&_=="Mac OS"&&(_=null),h="identify"+h):(h="mask"+h,re?v=O(re.replace(/([a-z])([A-Z])/g,"$1 $2")):v="Opera",/\bIE\b/.test(h)&&(_=null),j||(w=null)),R=["Presto"],L.push(h));(h=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(g)||0)[1])&&(h=[parseFloat(h.replace(/\.(\d)$/,".0$1")),h],v=="Safari"&&h[1].slice(-1)=="+"?(v="WebKit Nightly",H="alpha",w=h[1].slice(0,-1)):(w==h[1]||w==(h[2]=(/\bSafari\/([\d.]+\+?)/i.exec(g)||0)[1]))&&(w=null),h[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(g)||0)[1],h[0]==537.36&&h[2]==537.36&&parseFloat(h[1])>=28&&R=="WebKit"&&(R=["Blink"]),!j||!Q&&!h[1]?(R&&(R[1]="like Safari"),h=(h=h[0],h<400?1:h<500?2:h<526?3:h<533?4:h<534?"4+":h<535?5:h<537?6:h<538?7:h<601?8:h<602?9:h<604?10:h<606?11:h<608?12:"12")):(R&&(R[1]="like Chrome"),h=h[1]||(h=h[0],h<530?1:h<532?2:h<532.05?3:h<533?4:h<534.03?5:h<534.07?6:h<534.1?7:h<534.13?8:h<534.16?9:h<534.24?10:h<534.3?11:h<535.01?12:h<535.02?"13+":h<535.07?15:h<535.11?16:h<535.19?17:h<536.05?18:h<536.1?19:h<537.01?20:h<537.11?"21+":h<537.13?23:h<537.18?24:h<537.24?25:h<537.36?26:R!="Blink"?"27":"28")),R&&(R[1]+=" "+(h+=typeof h=="number"?".x":/[.+]/.test(h)?"":"+")),v=="Safari"&&(!w||parseInt(w)>45)?w=h:v=="Chrome"&&/\bHeadlessChrome/i.test(g)&&L.unshift("headless")),v=="Opera"&&(h=/\bzbov|zvav$/.exec(_))?(v+=" ",L.unshift("desktop mode"),h=="zvav"?(v+="Mini",w=null):v+="Mobile",_=_.replace(RegExp(" *"+h+"$"),"")):v=="Safari"&&/\bChrome\b/.exec(R&&R[1])?(L.unshift("desktop mode"),v="Chrome Mobile",w=null,/\bOS X\b/.test(_)?(q="Apple",_="iOS 4.3+"):_=null):/\bSRWare Iron\b/.test(v)&&!w&&(w=le("Chrome")),w&&w.indexOf(h=/[\d.]+$/.exec(_))==0&&g.indexOf("/"+h+"-")>-1&&(_=T(_.replace(h,""))),_&&_.indexOf(v)!=-1&&!RegExp(v+" OS").test(_)&&(_=_.replace(RegExp(" *"+y(v)+" *"),"")),R&&!/\b(?:Avant|Nook)\b/.test(v)&&(/Browser|Lunascape|Maxthon/.test(v)||v!="Safari"&&/^iOS/.test(_)&&/\bSafari\b/.test(R[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(v)&&R[1])&&(h=R[R.length-1])&&L.push(h),L.length&&(L=["("+L.join("; ")+")"]),q&&N&&N.indexOf(q)<0&&L.push("on "+q),N&&L.push((/^on /.test(L[L.length-1])?"":"on ")+N),_&&(h=/ ([\d.+]+)$/.exec(_),K=h&&_.charAt(_.length-h[0].length-1)=="/",_={architecture:32,family:h&&!K?_.replace(h[0],""):_,version:h?h[1]:null,toString:function(){var J=this.version;return this.family+(J&&!K?" "+J:"")+(this.architecture==64?" 64-bit":"")}}),(h=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(D))&&!/\bi686\b/i.test(D)?(_&&(_.architecture=64,_.family=_.family.replace(RegExp(" *"+h),"")),v&&(/\bWOW64\b/i.test(g)||j&&/\w(?:86|32)$/.test($.cpuClass||$.platform)&&!/\bWin64; x64\b/i.test(g))&&L.unshift("32-bit")):_&&/^OS X/.test(_.family)&&v=="Chrome"&&parseFloat(w)>=39&&(_.architecture=64),g||(g=null);var X={};return X.description=g,X.layout=R&&R[0],X.manufacturer=q,X.name=v,X.prerelease=H,X.product=N,X.ua=g,X.version=v&&w,X.os=_||{architecture:null,family:null,version:null,toString:function(){return"null"}},X.parse=x,X.toString=me,X.version&&L.unshift(w),X.name&&L.unshift(v),_&&v&&!(_==String(_).split(" ")[0]&&(_==v.split(" ")[0]||N))&&L.push(N?"("+_+")":"on "+_),L.length&&(X.description=L.join(" ")),X}var k=x();s&&a?I(k,function(g,A){s[A]=g}):o.platform=k}).call(platform$2)})(platform$3,platform$3.exports)),platform$3.exports}var platformExports=requirePlatform();const platform=getDefaultExportFromCjs(platformExports),platform$1=_mergeNamespaces({__proto__:null,default:platform},[platformExports]);function faviconPolyfill(){if(!window.matchMedia)return;const r=document.querySelectorAll("link[rel='icon']");let e=r.length;r.forEach(n=>{var o,s;if(window.matchMedia(n.media).matches){const a=document.createElement("link");a.setAttribute("rel","icon"),a.setAttribute("type",(o=n.getAttribute("type"))!=null?o:""),a.setAttribute("href",(s=n.getAttribute("href"))!=null?s:""),n.remove(),document.head.appendChild(a)}else e>1&&(n.remove(),e-=1)})}async function initPolyfills(r){typeof Promise.allSettled!="function"&&(await __vitePreload(async()=>{const{default:e}=await import("./chunk-BNNqytWD.js").then(n=>n.i);return{default:e}},[])).default.shim(),typeof window.ResizeObserver!="function"&&(window.ResizeObserver=(await __vitePreload(async()=>{const{ResizeObserver:e}=await import("./chunk-Du9n0nV5.js");return{ResizeObserver:e}},[])).ResizeObserver),faviconPolyfill(),String.prototype.startsWith||(String.prototype.startsWith=function(e,n){const o=n>0?n|0:0;return this.substring(o,o+e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,n){return(n===void 0||n>this.length)&&(n=this.length),this.substring(n-e.length,n)===e})}function initUmami(r,e){const{screen:{width:n,height:o},navigator:{language:s},location:a,document:c,history:l,top:u}=window,{referrer:d}=c,{hostname:f,href:p,origin:b}=a,m=p.startsWith("data:")?void 0:window.localStorage,C=void 0,O=void 0,I=!1,B=!1,G=!1,y="",E="omit";y.split(",").map(D=>D.trim());const T="/_ra/api/send",x="".concat(n,"x").concat(o),k=/data-ra-event-([\w-_]+)/,g="data-ra-event",A=300,P=D=>{if(!D)return D;try{return new URL(D,a.href).toString()}catch(L){return D}},$=()=>({website:r,screen:x,language:s,title:c.title,hostname:f,url:fe,referrer:he,tag:O,id:h||void 0}),F=(D,L,H)=>
6{H&&(he=fe,fe=P(new URL(H,a.href).toString()),fe!==he&&setTimeout(ae,A))},Q=()=>{const D=(L,H,j)=>{const w=L[H];return(...K)=>(j.apply(null,K),w.apply(L,K))};l.pushState=D(l,"pushState",F),l.replaceState=D(l,"replaceState",F)},ie=()=>{const D=async H=>{const j=H.getAttribute(g);if(j){const w={};return H.getAttributeNames().forEach(K=>{const R=K.match(k);R&&(w[R[1]]=H.getAttribute(K))}),ae(j,w)}},L=async H=>{const j=H.target,w=j.closest("a,button");if(!w)return D(j);const{href:K,target:R}=w;if(w.getAttribute(g)){if(w.tagName==="BUTTON")return D(w);if(w.tagName==="A"&&K){const v=R==="_blank"||H.ctrlKey||H.shiftKey||H.metaKey||H.button&&H.button===1;return v||H.preventDefault(),D(w).then(()=>{v||((R==="_top"?u.location:a).href=K)})}}};c.addEventListener("click",L,!0)},de=()=>ee||!r||(m==null?void 0:m.getItem("ra.disabled"))||y||I,oe=async(D,L="event")=>{if(de())return;const H=window[C];if(typeof H=="function"&&(D=await Promise.resolve(H(L,D))),!!D)try{const w=await(await fetch(T,{keepalive:!0,method:"POST",body:JSON.stringify({type:L,payload:D}),headers:{"Content-Type":"application/json",...typeof re<"u"&&{"x-ra-cache":re}},credentials:E}
6)).json();w&&(ee=!!w.disabled,re=w.cache)}catch(j){}},ye=()=>{pe||(pe=!0,e?e(ae):ae(),Q(),ie(),Ee())},ae=(D,L)=>oe(typeof D=="string"?{...$(),name:D,data:L}:typeof D=="object"?{...D}:typeof D=="function"?D($()):$()),ce=(D,L)=>(typeof D=="string"&&(h=D),re="",oe({...$(),data:typeof D=="object"?D:L},"identify")),Ee=()=>{const D={};let L=!1,H,j=0,w=0;const K=(W,Y)=>{try{new PerformanceObserver(Z=>{Z.getEntries().forEach(Y)}).observe({type:W,buffered:!0})}catch(U){}};K("navigation",W=>{j=W.activationStart||0,D.ttfb=Math.max(W.responseStart-j,0)}),K("paint",W=>{W.name==="first-contentful-paint"&&(D.fcp=Math.max(W.startTime-j,0))}),K("largest-contentful-paint",W=>{D.lcp=Math.max(W.startTime-j,0)});let R=0,v=[];K("layout-shift",W=>{if(!W.hadRecentInput){const Y=v[v.length-1],U=v[0];Y&&W.startTime-Y.startTime-Y.duration<1e3&&W.startTime-U.startTime<5e3?(R+=W.value,v.push(W)):(R=W.value,v=[W]),R>(D.cls||0)&&(D.cls=R)}});let N={};try{new PerformanceObserver(Y=>{Y.getEntries().forEach(U=>{if(U.interactionId){const Z=N[U.interactionId];(!Z||U.duration>Z)&&(N[U.interactionId]=U.duration);const le=Object.values(N).sort((me,X)=>X-me);if(le.length){const me=Math.floor(Math.max(le.length,10)*.02);D.inp=le[Math.min(me,le.length-1)]}}})}).observe({type:"event",buffered:!0,durationThreshold:40})}catch(W){}const q=W=>{var Y,U;try{return((U=(Y=window.performance)==null?void 0:Y.getEntriesByType)==null?void 0:U.call(Y,W))||[]}catch(Z){return[]}},_=()=>{var W,Y;if(D.ttfb===void 0){const U=(W=q("navigation"))==null?void 0:W[0];U&&(D.ttfb=Math.max(U.responseStart-(U.activationStart||0),0))}if(D.fcp===void 0){const U=(Y=q("paint"))==null?void 0:Y.find(Z=>Z.name==="first-contentful-paint");U&&(D.fcp=Math.max(U.startTime-j,0))}if(D.lcp===void 0){const U=q("largest-contentful-paint"),Z=U==null?void 0:U[U.length-1];Z&&(D.lcp=Math.max(Z.startTime-j,0))}},ge=()=>{L||(_(),D.duration=Math.round(performance.now()-w),L=!0,H&&clearTimeout(H),oe({...$(),...D},"performance"))};H=setTimeout(ge,1e4),c.addEventListener("visibilitychange",()=>{c.visibilityState==="hidden"&&ge()}),window.addEventListener("pagehide",ge)};let fe=P(p),he=P(d.startsWith(b)?"":d),pe=!1,ee=!1,re,h;return de()||(c.readyState==="complete"?ye():c.addEventListener("readystatechange",ye,!0)),{track:ae,identify:ce}}class Analytics{constructor(e){S(this,"trackEvent");S(this,"context");this.context=e,typeof this.context.ra<"u"&&this.initAnalytics(this.context.ra)}
6async init(){}initAnalytics(e){const{track:n}=initUmami(e,o=>{o(s=>({...s,category:"blog"}))});this.trackEvent=(o,s="custom")=>n(s,{value:o}),document.querySelectorAll('a[href^="mailto:"]').forEach(o=>o.setAttribute("data-ra-event","mail")),document.querySelectorAll('a[href^="tel:"]').forEach(o=>o.setAttribute("data-ra-event","tel")),document.querySelectorAll('a[href^="http"]').forEach(o=>{let s;try{s=new URL(o.href)}catch(a){return}if(s.hostname!==window.location.hostname){const a=s.hostname.replace(/^www\./,"");o.setAttribute("data-ra-event","link:".concat(a))}})}}function getStorage(r){var e;try{return(e=window[r])!=null?e:null}catch(n){return null}}function readStorageItem(r,e){var n,o;try{return(o=(n=getStorage(r))==null?void 0:n.getItem(e))!=null?o:null}catch(s){return null}}function writeStorageItem(r,e,n){var o;try{(o=getStorage(r))==null||o.setItem(e,n)}catch(s){}}const RELOAD_KEY="reboot-stale-assets-reload",RELOAD_EXPIRATION=6e4,STALE_ASSETS_MESSAGE="A page asset is still missing after reloading";let staleAssets=!1;function alreadyReloaded(){const r=Number(readStorageItem("sessionStorage",RELOAD_KEY));return r>0&&Date.now()-r<RELOAD_EXPIRATION}function hasStaleAssets(){return staleAssets}function watchStaleAssets(){window.addEventListener("vite:preloadError",(r=>{var e,n;if(staleAssets=!0,alreadyReloaded()){captureMessage(STALE_ASSETS_MESSAGE,{level:"error",extra:{reason:String((n=(e=r.payload)==null?void 0:e.message)!=null?n:r.payload)}});return}writeStorageItem("sessionStorage",RELOAD_KEY,String(Date.now())),window.location.reload()}))}const ALLOW_URLS=[/\/dist\/page\//],DENY_URLS=[/^(?:chrome|moz|safari|safari-web|ms-browser)-extension:\/\//i,/^webkit-masked-url:/i],IGNORE_ERRORS=[/^Script error\.?$/,/^ResizeObserver loop/,"Non-Error promise rejection captured"],BOT_USER_AGENT=/bot|crawl|spider|slurp|headless|lighthouse|pingdom|gtmetrix|phantomjs|selenium|puppeteer|playwright/i,MAX_EVENTS_PER_PAGE=5;function isStaleAssetsFallout(r){return hasStaleAssets()&&r.message!==STALE_ASSETS_MESSAGE}function isBot(){return navigator.webdriver===!0||BOT_USER_AGENT.test(navigator.userAgent)}function initPageSentry(r){if(isBot())return;let e=0;init$1({dsn:r.dsn,release:r.release,environment:r.environment,allowUrls:ALLOW_URLS,denyUrls:DENY_URLS,ignoreErrors:IGNORE_ERRORS,beforeSend(n){return isStaleAssetsFallout(n)||e>=MAX_EVENTS_PER_PAGE?null:(e++,n)}})}const REVEAL_SECTIONS_TIMEOUT=5e3,POLYFILLS_TIMEOUT=3e3,se=class se{constructor(e){S(this,"context");S(this,"sections",[]);S(this,"sectionElements");S(this,"analytics");S(this,"pageId");S(this,"deferredGdprContent",[]);S(this,"initStep","constructor");var n;if(se.instance=this,((n=e.glitch)!=null?n:"").length>0&&!e.staticPage)try{initPageSentry({dsn:e.glitch,release:e.release,environment:e.environment})}catch(o){console.error("Unable to init Sentry",o)}if(watchStaleAssets(),this.context=new Context({isDev:e.environment==="dev"||readStorageItem("localStorage","dev-mode")!==null,isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|WPDesktop|Opera Mini/i.test(navigator.userAgent),platform:platform$1,compatibilityMode:!1,staticMode:e.staticPage,xmasTheme:e.xmasTheme,gdpr:e.gdpr,rtl:e.rtl,ra:e.ra,isLoggedIn:document.getElementById("admin-toolbar")!==null,locale:e.locale}),!document.body.dataset.page)throw new Error("body[data-page] is not defined");if(this.pageId=document.body.dataset.page,this.context.isMobile&&document.documentElement.classList.add("mobile"),this.context.compatibilityMode&&document.documentElement.classList.add("compatibility"),this.context.staticMode&&document.documentElement.classList.add("static"),platform$1&&platformExports.name&&platformExports.version&&platformExports.os&&platformExports.os.family&&platformExports.os.version){const o=s=>s.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]+/g,"-").replace(/^-+/,"").replace(/-+$/,"");document.documentElement.classList.add(o(platformExports.name)),document.documentElement.classList.add(o("".concat(platformExports.name,"-").concat(platformExports.version))),document.documentElement.classList.add(o(platformExports.os.family)),document.documentElement.classList.add(o("".concat(platformExports.os.family,"-").concat(platformExports.os.version)))}
6this.context.isDev&&console.info("You are in dev mode on ".concat(platformExports.toString()),this.context),this.sectionElements=document.querySelectorAll("section.base-section"),this.watchSectionsReveal(),this.init()}revealSections(){const e=document.getElementById("prevent-animations-flickering");return e?(e.remove(),!0):!1}watchSectionsReveal(){const e=Date.now();let n=document.visibilityState==="hidden";document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&(n=!0)}),window.setTimeout(()=>{this.revealSections()&&(console.error("Sections were not revealed after ".concat(REVEAL_SECTIONS_TIMEOUT,'ms, initialization stuck at step "').concat(this.initStep,'"')),n||captureMessage("Page initialization did not reveal the sections",{level:"error",extra:{initStep:this.initStep,elapsed:Date.now()-e,readyState:document.readyState}}))},REVEAL_SECTIONS_TIMEOUT)}async init(){this.initStep="polyfills";try{await Promise.race([initPolyfills(this),new Promise((e,n)=>{window.setTimeout(()=>n(new Error("The polyfills did not load after ".concat(POLYFILLS_TIMEOUT,"ms"))),POLYFILLS_TIMEOUT)})])}catch(e){console.error("Unable to init polyfills",e),captureException(e,{level:"error"})}this.initStep="analytics";try{this.analytics=new Analytics(this.context)}catch(e){console.error("Unable to init analytics",e),captureException(e,{level:"error"})}window.setTimeout(()=>{this.initStep="extensions",initExtensions(this).catch(e=>{console.error("Could not init extensions",e),captureException(e,{level:"fatal"}),this.revealSections()}),this.initStep="sections";try{initSections(this)}catch(e){console.error("Could not init sections",e),captureException(e,{level:"fatal"})}this.initStep="done"},10)}getHeaderSection(){return this.sections.find(e=>e instanceof HeaderSection)}static getInstance(e){if(se.instance){e(se.instance);return}const n=window.setInterval(()=>{se.instance&&(clearInterval(n),e(se.instance))},100)}};S(se,"instance");let Page=se;window.Page=Page;export{AbstractSection as A,LazyLoadExtension as L,__vitePreload as _,__vite_legacy_guard,getDefaultExportFromCjs as a,commonjsGlobal as c,debounce as d,getAugmentedNamespace as g,isDark as i};
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.