PageSourceSearch

https://fachkraefte-initiative.de/assets/BfitFXIS.js

js fachkraefte-initiative.de collected 2026-10-04 03:35:26 UTC 184,064 bytes, 67 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/BbDPkLmQ.js","assets/BcRnRCYa.js","assets/CEi5__fr.js","assets/BweLsvoo.js","assets/DX-jHxTf.js","assets/R8vIpaoW.js","assets/75f94HHq.js","assets/CXaHJRRU.js","assets/Cw5vX12s.js","assets/BwQHkx9C.js","assets/_ZVJn-n1.js","assets/CmY1j2xq.css","assets/CijEqetj.js","assets/AKcxlwN7.js","assets/Bbl9Ptgr.js","assets/Cf3o1oaE.js","assets/BTDES1l1.js","assets/CT8n0Yb2.js","assets/D8KmXmz8.js","assets/Dab63kAg.js","assets/D1gvNsXM.css","assets/BQv70Fm-2.js","assets/Dil86hCU.js","assets/P2s17iji.css","assets/BvK8Cimz2.js","assets/DQLeXVQ6.js","assets/ClLsx3l6.js","assets/pC8PeUjK.js","assets/COHbm6Ae.js","assets/BmXorUnK.css","assets/CEVSCCWo.css","assets/4rVGcz1v.css","assets/D_HZKMjG2.js","assets/nM5hADeL.css","assets/DpwUyFNC2.js","assets/BGQus2li.css","assets/C1_-Zy1B2.js","assets/33gWvZRz2.js","assets/BRE_ObSF.js","assets/B8ul-DXg.css","assets/DKEGe69x2.js","assets/DR-GU3S_2.js","assets/BJ9gCwV7.css","assets/tNr7DyyK.css","assets/DBUUkvgx2.js","assets/CBBR5CSl.js","assets/BjXDVhIH.css","assets/D7PRESqv2.js","assets/C5hFQhHm.css","assets/C16tGl1A2.js","assets/BluEYHTd.css","assets/D8sBbT4h2.js","assets/D4s2wvkJ.css","assets/Bh2ilhv12.js","assets/2Vxr02Cs.js","assets/DQXiiA0L.css"])))=>i.map(i=>d[i]);
2import{i as e,n as t,t as n}from"./BcRnRCYa.js";import{t as r}from"./R8vIpaoW.js";import{t as i}from"./BwQHkx9C.js";import{a,c as o,n as s,t as c}from"./CHnYDZqo.js";import{t as l}from"./DX-jHxTf.js";import{a as u,i as d,n as f,o as p,r as m,s as h,t as g}from"./CEi5__fr.js";import{$ as _,A as v,At as y,B as b,C as x,Ct as S,D as ee,Dt as C,E as w,Et as te,F as T,Ft as E,G as D,H as ne,I as O,It as k,J as re,K as ie,L as ae,Lt as A,M as oe,Mt as j,N as se,Nt as ce,O as le,P as ue,Pt as de,Q as fe,R as pe,T as me,Tt as he,U as ge,V as _e,W as ve,X as ye,Y as M,Z as be,_t as xe,a as Se,b as Ce,bt as we,c as Te,ct as Ee,d as De,et as Oe,f as ke,ft as Ae,g as je,gt as Me,h as Ne,i as Pe,it as Fe,j as Ie,jn as Le,jr as Re,jt as ze,k as Be,l as Ve,lt as He,m as Ue,n as We,nt as Ge,p as Ke,pt as qe,q as Je,r as Ye,s as Xe,t as N,tt as Ze,v as Qe,vt as $e,w as et,wt as tt,xt as nt,yt as rt,z as it}from"./BweLsvoo.js";import{c as at,d as ot,f as st,l as ct,n as lt,o as ut,s as dt,t as ft,u as pt}from"./CijEqetj.js";import{n as mt}from"./AKcxlwN7.js";import{n as ht}from"./_ZVJn-n1.js";import{n as gt,r as _t,t as vt}from"./Bbl9Ptgr.js";import{a as yt,i as P,r as bt,t as xt}from"./CXaHJRRU.js";import{n as St,t as Ct}from"./Dab63kAg.js";import{n as wt,t as Tt}from"./Dil86hCU.js";import{i as Et,n as Dt,r as Ot,t as kt}from"./Cw5vX12s.js";import{a as At,i as jt,n as Mt,o as Nt,r as Pt,t as Ft}from"./CBBR5CSl.js";import{n as It,t as Lt}from"./COHbm6Ae.js";import{r as Rt,t as zt}from"./pC8PeUjK.js";import{c as Bt,d as Vt,i as Ht,l as Ut,o as Wt,t as Gt}from"./D8KmXmz8.js";import{n as Kt,t as qt}from"./CT8n0Yb2.js";import{n as Jt,t as Yt}from"./2Vxr02Cs.js";import{i as Xt,n as Zt,r as Qt,t as $t}from"./BTDES1l1.js";import{a as en,f as tn,i as nn,m as rn,n as an,o as on,r as sn,s as cn,t as ln}from"./75f94HHq.js";var un,dn,fn,pn,mn,hn,gn,_n,vn,yn,bn,xn=t((()=>{un=`IfnE4Hf7`,dn=`_7-IUYowc`,fn=`wy2zVPv2`,pn=`uLIbYO2D`,mn=`CYjO941w`,hn=`_79qucXfy`,gn=`_4ghdn-qk`,_n=`jLNyCGJu`,vn=`b7xw6dz9`,yn=`_5MwFOQp5`,bn={background:un,backgroundOverlay:dn,backgroundColor:fn,backgroundGradient:pn,backgroundMediaOverlay:mn,backgroundMediaOverlayGradient:hn,backgroundMediaOverlayColor:gn,backgroundImage:_n,backgroundVideo:vn,backgroundParallax:yn}}));function Sn({background:e}){let t=fe({activeBackground:`solid`,backgroundSolid:e});return(0,On.jsx)(`div`,{className:P(bn.background,bn.backgroundColor),style:{"--section-background-color":t??`transparent`,"--section-background-opacity":`var(--background-solid-opacity, ${e.opacity??1})`}})}function Cn({background:e}){let t=fe({activeBackground:`simple-gradient`,backgroundSimpleGradient:e});return t?(0,On.jsx)(`div`,{className:P(bn.background,bn.backgroundColor),style:{"--section-background-color":t??``}}):null}function wn({overlay:e}
2){let t=Ze(),n=fe({activeBackground:`simple-gradient`,backgroundSimpleGradient:e?.simpleGradientOverlay});return e?(0,On.jsxs)(On.Fragment,{children:[e.type===`solid`&&e.solidOverlay&&(0,On.jsx)(`div`,{className:P(bn.backgroundMediaOverlay,bn.backgroundMediaOverlayColor),style:{"--overlay-color":t(e.solidOverlay.color)??`transparent`,"--overlay-opacity":e.solidOverlay.opacity??1}}),e.type===`simple-gradient`&&n&&(0,On.jsx)(`div`,{className:P(bn.backgroundMediaOverlay,bn.backgroundMediaOverlayGradient),style:{"--overlay-background-image":n}})]}):null}function Tn({background:e,fetchPriority:t,sizes:n}){let r=Qe(),{resolve:i}=Xe(),a=i({asset:e.asset}),{buildSrcSet:o}=_t();if(!a?.path)return null;let s=o({path:a.path});return(0,On.jsxs)(`div`,{className:bn.background,children:[(0,On.jsx)(wn,{overlay:e.overlay}),(0,On.jsx)(`img`,{alt:``,className:bn.backgroundImage,fetchPriority:t,loading:r?`lazy`:`eager`,srcSet:s,sizes:n,style:{"--focus-x":`${e.focusPoint[0]}%`,"--focus-y":`${e.focusPoint[1]}%`,"--zoom":e.zoom}})]})}function En({background:e}){let{showEditorChrome:t}=Ve(),{shouldLoadVideo:n,videoRef:r}=We({shouldLoadImmediately:t}),{resolve:i}=Xe(),{buildUrl:a}=_t(),o=i({asset:e.asset}),s=i({asset:e.posterAsset});if(!o?.download)return null;let c=s?.path?a({path:s.path}):void 0;return(0,On.jsxs)(`div`,{className:bn.background,children:[(0,On.jsx)(wn,{overlay:e.overlay}),(0,On.jsx)(`video`,{ref:r,className:bn.backgroundVideo,"aria-hidden":`true`,poster:c,disablePictureInPicture:!0,disableRemotePlayback:!0,playsInline:!0,muted:!0,autoPlay:!0,loop:e.playsInLoop,preload:n?`auto`:`none`,src:n?o.download:void 0})]})}function Dn({activeBackground:e,solid:t,simpleGradient:n,mediaImage:r,mediaVideo:i,imageSizes:a,imageFetchPriority:o}){return e?e===`solid`&&t?(0,On.jsx)(Sn,{background:t}):e===`simple-gradient`&&n?(0,On.jsx)(Cn,{background:n}):e===`media-image`&&r?(0,On.jsx)(Tn,{background:r,fetchPriority:o,sizes:a}):e===`media-video`&&i?(0,On.jsx)(En,{background:i}):null:null}var On,kn=t((()=>{r(),vt(),yt(),N(),xn(),On=l()})),An=n(((e,t)=>{var n=4,r=.001,i=1e-7,a=10,o=11,s=1/(o-1),c=typeof Float32Array==`function`;function l(e,t){return 1-3*t+3*e}function u(e,t){return 3*t-6*e}function d(e){return 3*e}function f(e,t,n){return((l(t,n)*e+u(t,n))*e+d(t))*e}function p(e,t,n){return 3*l(t,n)*e*e+2*u(t,n)*e+d(t)}function m(e,t,n,r,o){var s,c,l=0;do c=t+(n-t)/2,s=f(c,r,o)-e,s>0?n=c:t=c;while(Math.abs(s)>i&&++l<a);return c}function h(e,t,r,i){for(var a=0;a<n;++a){var o=p(t,r,i);if(o===0)return t;var s=f(t,r,i)-e;t-=s/o}return t}function g(e){return e}t.exports=function(e,t,n,i){if(!(0<=e&&e<=1&&0<=n&&n<=1))throw Error(`bezier x values must be in [0, 1] range`);if(e===t&&n===i)return g;for(var a=c?new Float32Array(o):Array(o),l=0;l<o;++l)a[l]=f(l*s,e,n);function u(t){for(var i=0,c=1,l=o-1;c!==l&&a[c]<=t;++c)i+=s;--c;var u=(t-a[c])/(a[c+1]-a[c]),d=i+u*s,f=p(d,e,n);return f>=r?h(t,d,e,n):f===0?d:m(t,i,i+s,e,n)}return function(e){return e===0?0:e===1?1:f(u(e),t,i)}}}));function jn(){return jn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jn.apply(this,arguments)}function Mn(){return++or,or}function Nn(e,t){t===void 0&&(t=tr[`%`]);var n={value:0,unit:t};if(e===void 0)return n;if(!(typeof e==`number`||typeof e==`string`))throw Error(`Invalid value provided. Must provide a value as a string or number`);if(e=String(e),n.value=parseFloat(e),n.unit=e.match(/[\d.\-+]*\s*(.*)/)[1]||t,!cr.includes(n.unit))throw Error(`Invalid unit provided.`);return n}function Pn(e){if(Array.isArray(e))return(0,Qn.default)(e[0],e[1],e[2],e[3]);if(typeof e==`string`&&lr[e]!==void 0){var t=lr[e];return(0,Qn.default)(t[0],t[1],t[2],t[3])}}function Fn(e,t){var n={};return ur.forEach(function(r){var i=dr[r];if(typeof e?.[r]==`number`){var a=e?.[r],o=(a||0)*10+`px`,s=(a||0)*-10+`px`,c=Nn(o),l=Nn(s),u={start:c.value,end:l.value,unit:c.unit};t===ir.vertical&&(n.translateY=u),t===ir.horizontal&&(n.translateX=u)}if(Array.isArray(e?.[r])){var d=e?.[r];if(d[0]!==void 0&&d[1]!==void 0){var f=Nn(d?.[0],i),p=Nn(d?.[1],i),m=Pn(d?.[2]);if(n[r]={start:f.value,end:p.value,unit:f.unit,easing:m},f.unit!==p.unit)throw Error(`Must provide matching units for the min and max offset values of each axis.`)}}}),n}function In(e,t,n,r){var i=(n-e)/t;return r&&(i=r(i)),i}function Ln(e,t,n){return n>=e&&n<=t}function Rn(e,t,n,r,i){return(n-t)*(e-r)/(i-r)+t}function zn(e,t){return{value:Rn(typeof e.easing==`function`?e.easing(t):t,e?.start||0,e?.end||0,0,1),unit:e?.unit}}function Bn(e,t){var n=`transform`+(Object.keys(t).includes(`opacity`)?`,o
2pacity`:``);e.style.willChange=n}function Vn(e,t,n){if(n){var r=Un(e,t),i=Hn(e,t);n.style.transform=r,n.style.opacity=i}}function Hn(e,t){var n=e.opacity&&zn(e.opacity,t);return n===void 0||n.value===void 0||n.unit===void 0?``:``+n.value}function Un(e,t){return fr.reduce(function(n,r){var i=e[r]&&zn(e[r],t);return i===void 0||i.value===void 0||i.unit===void 0?n:n+(r+`(`+i.value+i.unit+`)`)},``)}function Wn(e){var t=e.el;t&&(t.style.transform=``,t.style.opacity=``)}function Gn(e,t,n,r){var i=e.top-t.height,a=e.left-t.width,o=e.bottom,s=e.right;return a+=n.x,s+=n.x,i+=n.y,o+=n.y,r&&(n.y+e.top<t.height&&(i=0),n.x+e.left<t.width&&(a=0),o>t.scrollHeight-t.height&&(o=t.scrollHeight-t.height),s>t.scrollWidth-t.width&&(s=t.scrollWidth-t.width)),new $n({startX:a,startY:i,endX:s,endY:o})}function Kn(e,t,n){var r=t>e,i=n+(Math.abs(e)+Math.abs(t))*(r?-1:1);return Math.max(n/i,1)}function qn(e,t){var n=e.start,r=e.end,i=e.unit;if(i===`%`){var a=t/100;n*=a,r*=a}if(i===`vw`){var o=n/100,s=r/100;n=window.innerWidth*o,r=window.innerWidth*s}if(i===`vh`){var c=n/100,l=r/100;n=window.innerHeight*c,r=window.innerHeight*l}return{start:n,end:r}}function Jn(e,t,n,r,i,a){var o=n.translateX||pr,s=n.translateY||pr,c=qn(o,e.width),l=c.start,u=c.end,d=qn(s,e.height),f=d.start,p=d.end,m=e.top-t.height,h=e.left-t.width,g=e.bottom,_=e.right,v=1,y=1;i===ir.vertical&&(v=Kn(f,p,t.height+e.height),y=v);var b=1,x=1;if(i===ir.horizontal&&(b=Kn(l,u,t.width+e.width),x=b),f<0&&(m+=f*v),p>0&&(g+=p*y),l<0&&(h+=l*b),u>0&&(_+=u*x),h+=r.x,_+=r.x,m+=r.y,g+=r.y,a){var S=r.y+e.top<t.height,ee=r.x+e.left<t.width,C=r.y+e.bottom>t.scrollHeight-t.height,w=r.x+e.right>t.scrollWidth-t.height;if(S&&C&&(v=1,y=1,m=0,g=t.scrollHeight-t.height),ee&&w&&(b=1,x=1,h=0,_=t.scrollWidth-t.width),!S&&C&&(m=e.top-t.height+r.y,g=t.scrollHeight-t.height,v=Kn(f,p,g-m),y=1,f<0&&(m+=f*v)),!ee&&w&&(h=e.left-t.width+r.x,_=t.scrollWidth-t.width,b=Kn(l,u,_-h),x=1,l<0&&(h+=l*b)),S&&!C){m=0,g=e.bottom+r.y;var te=g-m;v=1,y=Kn(f,p,te),p>0&&(g+=p*y)}if(ee&&!w){h=0,_=e.right+r.x;var T=_-h;b=1,x=Kn(l,u,T),u>0&&(_+=u*x)}}return new $n({startX:h,startY:m,endX:_,endY:g,startMultiplierX:b,endMultiplierX:x,startMultiplierY:v,endMultiplierY:y})}function Yn(e,t){var n=jn({},e);return n.translateX&&=jn({},e.translateX,{start:n.translateX.start*t.startMultiplierX,end:n.translateX.end*t.endMultiplierX}),n.translateY&&=jn({},e.translateY,{start:n.translateY.start*t.startMultiplierY,end:n.translateY.end*t.endMultiplierY}),n}function Xn(e,t,n){return e.rootMargin||e.targetElement||e.shouldDisableScalingTranslations?!1:!!(t.translateX&&n===ir.horizontal||t.translateY&&n===ir.vertical)}function Zn(){var e=!1;try{var t=Object.defineProperty({},`passive`,{get:function(){return e=!0,!0}});window.addEventListener(`test`,null,t),window.removeEventListener(`test`,null,t)}catch{}return e}var Qn,$n,er,tr,nr,rr,ir,ar,or,sr,cr,lr,ur,dr,fr,pr,mr,hr,gr,_r,vr,yr=t((()=>{Qn=e(An()),$n=function(e){this.startX=e.startX,this.startY=e.startY,this.endX=e.endX,this.endY=e.endY,this.totalX=this.endX-this.startX,this.totalY=this.endY-this.startY,this.startMultiplierX=e.startMultiplierX||1,this.endMultiplierX=e.endMultiplierX||1,this.startMultiplierY=e.startMultiplierY||1,this.endMultiplierY=e.endMultiplierY||1},(function(e){e.speed=`speed`,e.translateX=`translateX`,e.translateY=`translateY`,e.rotate=`rotate`,e.rotateX=`rotateX`,e.rotateY=`rotateY`,e.rotateZ=`rotateZ`,e.scale=`scale`,e.scaleX=`scaleX`,e.scaleY=`scaleY`,e.scaleZ=`scaleZ`,e.opacity=`opacity`})(er||={}),(function(e){e.px=`px`,e[`%`]=`%`,e.vh=`vh`,e.vw=`vw`})(tr||={}),(function(e){e.deg=`deg`,e.turn=`turn`,e.rad=`rad`})(nr||={}),(function(e){e[``]=``})(rr||={}),(function(e){e.vertical=`vertical`,e.horizontal=`horizontal`})(ir||={}),(function(e){e.ease=`ease`,e.easeIn=`easeIn`,e.easeOut=`easeOut`,e.easeInOut=`easeInOut`,e.easeInQuad=`easeInQuad`,e.easeInCubic=`easeInCubic`,e.easeInQuart=`easeInQuart`,e.easeInQuint=`easeInQuint`,e.easeInSine=`easeInSine`,e.easeInExpo=`easeInExpo`,e.easeInCirc=`easeInCirc`,e.easeOutQuad=`easeOutQuad`,e.easeOutCubic=`easeOutCubic`,e.easeOutQuart=`easeOutQuart`,e.easeOutQuint=`easeOutQuint`,e.easeOutSine=`easeOutSine`,e.easeOutExpo=`easeOutExpo`,e.easeOutCirc=`easeOutCirc`,e.easeInOutQuad=`easeInOutQuad`,e.easeInOutCubic=`easeInOutCubic`,e.easeInOutQuart=`easeInOutQuart`,e.easeInOutQuint=`easeInOutQuint`,e.easeInOutSine=`easeInOutSine`,e.easeInOutExpo=`easeInOutExpo`,e.easeInOutCirc=`easeInOutCirc`,e.easeInBack=`easeInBack`,e.easeOutBack=`easeOutBack`,e.easeInOutBack=`easeInOutBack`})(ar||={}),or=0,sr=function(){function e(e){var t=e.el.getBoundingClientRect();if(e.view.scrollContainer){var n=e.view.scrollContainer.getBoundingClientRect();t=jn({},t,{top:t.top-n.top,right:t.right-n.left,bottom:t.bottom-n.top,left
2:t.left-n.left})}this.height=e.el.offsetHeight,this.width=e.el.offsetWidth,this.left=t.left,this.right=t.right,this.top=t.top,this.bottom=t.bottom,e.rootMargin&&this._setRectWithRootMargin(e.rootMargin)}var t=e.prototype;return t._setRectWithRootMargin=function(e){var t=e.top+e.bottom,n=e.left+e.right;this.top-=e.top,this.right+=e.right,this.bottom+=e.bottom,this.left-=e.left,this.height+=t,this.width+=n},e}(),cr=[rr[``],tr.px,tr[`%`],tr.vh,tr.vw,nr.deg,nr.turn,nr.rad],lr={ease:[.25,.1,.25,1],easeIn:[.42,0,1,1],easeOut:[0,0,.58,1],easeInOut:[.42,0,.58,1],easeInQuad:[.55,.085,.68,.53],easeInCubic:[.55,.055,.675,.19],easeInQuart:[.895,.03,.685,.22],easeInQuint:[.755,.05,.855,.06],easeInSine:[.47,0,.745,.715],easeInExpo:[.95,.05,.795,.035],easeInCirc:[.6,.04,.98,.335],easeOutQuad:[.25,.46,.45,.94],easeOutCubic:[.215,.61,.355,1],easeOutQuart:[.165,.84,.44,1],easeOutQuint:[.23,1,.32,1],easeOutSine:[.39,.575,.565,1],easeOutExpo:[.19,1,.22,1],easeOutCirc:[.075,.82,.165,1],easeInOutQuad:[.455,.03,.515,.955],easeInOutCubic:[.645,.045,.355,1],easeInOutQuart:[.77,0,.175,1],easeInOutQuint:[.86,0,.07,1],easeInOutSine:[.445,.05,.55,.95],easeInOutExpo:[1,0,0,1],easeInOutCirc:[.785,.135,.15,.86],easeInBack:[.6,-.28,.735,.045],easeOutBack:[.175,.885,.32,1.275],easeInOutBack:[.68,-.55,.265,1.55]},ur=Object.values(er),dr={speed:`px`,translateX:`%`,translateY:`%`,rotate:`deg`,rotateX:`deg`,rotateY:`deg`,rotateZ:`deg`,scale:``,scaleX:``,scaleY:``,scaleZ:``,opacity:``},fr=Object.values(er).filter(function(e){return e!==`opacity`}),pr={start:0,end:0,unit:``},mr=function(e,t,n){return Math.min(Math.max(e,t),n)},hr=function(){function e(e){this.el=e.el,this.props=e.props,this.scrollAxis=e.scrollAxis,this.disabledParallaxController=e.disabledParallaxController||!1,this.id=Mn(),this.effects=Fn(this.props,this.scrollAxis),this.isInView=null,this.progress=0,this._setElementEasing(e.props.easing),Bn(e.el,this.effects)}var t=e.prototype;return t.updateProps=function(e){return this.props=jn({},this.props,e),this.effects=Fn(e,this.scrollAxis),this._setElementEasing(e.easing),this},t.setCachedAttributes=function(e,t){Wn(this),this.rect=new sr({el:this.props.targetElement||this.el,rootMargin:this.props.rootMargin,view:e});var n=Xn(this.props,this.effects,this.scrollAxis);return typeof this.props.startScroll==`number`&&typeof this.props.endScroll==`number`?(this.limits=new $n({startX:this.props.startScroll,startY:this.props.startScroll,endX:this.props.endScroll,endY:this.props.endScroll}),this._setElementStyles(),this):(n?(this.limits=Jn(this.rect,e,this.effects,t,this.scrollAxis,this.props.shouldAlwaysCompleteAnimation),this.scaledEffects=Yn(this.effects,this.limits)):this.limits=Gn(this.rect,e,t,this.props.shouldAlwaysCompleteAnimation),this._setElementStyles(),this)},t._updateElementIsInView=function(e){var t=this.isInView===null;e!==this.isInView&&(e?this.props.onEnter&&this.props.onEnter(this):t||(this._setFinalProgress(),this._setElementStyles(),this.props.onExit&&this.props.onExit(this))),this.isInView=e},t._setFinalProgress=function(){var e=mr(Math.round(this.progress),0,1);this._updateElementProgress(e)},t._setElementStyles=function(){this.props.disabled||this.disabledParallaxController||Vn(this.scaledEffects||this.effects,this.progress,this.el)},t._updateElementProgress=function(e){this.progress=e,this.props.onProgressChange&&this.props.onProgressChange(this.progress),this.props.onChange&&this.props.onChange(this)},t._setElementEasing=function(e){this.easing=Pn(e)},t.updateElementOptions=function(e){this.scrollAxis=e.scrollAxis,this.disabledParallaxController=e.disabledParallaxController||!1},t.updatePosition=function(e){if(!this.limits)return this;var t=this.scrollAxis===ir.vertical,n=this.isInView===null,r=t?this.limits.startY:this.limits.startX,i=t?this.limits.endY:this.limits.endX,a=t?this.limits.totalY:this.limits.totalX,o=t?e.y:e.x,s=Ln(r,i,o);if(this._updateElementIsInView(s),s){var c=In(r,a,o,this.easing);this._updateElementProgress(c),this._setElementStyles()}else n&&(this.progress=mr(Math.round(In(r,a,o,this.easing)),0,1),this._setElementStyles());return this},e}
2(),gr=function(){function e(e){this.scrollContainer=e.scrollContainer,this.width=e.width,this.height=e.height,this.scrollHeight=e.scrollHeight,this.scrollWidth=e.scrollWidth}var t=e.prototype;return t.hasChanged=function(e){return e.width!==this.width||e.height!==this.height||e.scrollWidth!==this.scrollWidth||e.scrollHeight!==this.scrollHeight},t.setSize=function(e){return this.width=e.width,this.height=e.height,this.scrollHeight=e.scrollHeight,this.scrollWidth=e.scrollWidth,this},e}(),_r=function(){function e(e,t){this.x=e,this.y=t,this.dx=0,this.dy=0}var t=e.prototype;return t.setScroll=function(e,t){return this.dx=e-this.x,this.dy=t-this.y,this.x=e,this.y=t,this},e}(),vr=function(){function e(e){var t=e.scrollAxis,n=t===void 0?ir.vertical:t,r=e.scrollContainer,i=e.disabled,a=i===void 0?!1:i;this.disabled=a,this.scrollAxis=n,this.elements=[],this._hasScrollContainer=!!r,this.viewEl=r??window;var o=this._getScrollPosition(),s=o[0],c=o[1];this.scroll=new _r(s,c),this.view=new gr({width:0,height:0,scrollWidth:0,scrollHeight:0,scrollContainer:this._hasScrollContainer?r:void 0}),this._ticking=!1,this._supportsPassive=Zn(),this._bindAllMethods(),!this.disabled&&(this._addListeners(this.viewEl),this._addResizeObserver(),this._setViewSize())}e.init=function(t){if(!(typeof window<`u`))throw Error(`Looks like ParallaxController.init() was called on the server. This method must be called on the client.`);return new e(t)};var t=e.prototype;return t._bindAllMethods=function(){var e=this;[`_addListeners`,`_removeListeners`,`_getScrollPosition`,`_handleScroll`,`_handleUpdateCache`,`_updateAllElements`,`_updateElementPosition`,`_setViewSize`,`_addResizeObserver`,`_checkIfViewHasChanged`,`_getViewParams`,`getElements`,`createElement`,`removeElementById`,`resetElementStyles`,`updateElementPropsById`,`update`,`updateScrollContainer`,`destroy`].forEach(function(t){e[t]=e[t].bind(e)})},t._addListeners=function(e){e.addEventListener(`scroll`,this._handleScroll,this._supportsPassive?{passive:!0}:!1),window.addEventListener(`resize`,this._handleUpdateCache,!1),window.addEventListener(`blur`,this._handleUpdateCache,!1),window.addEventListener(`focus`,this._handleUpdateCache,!1),window.addEventListener(`load`,this._handleUpdateCache,!1)},t._removeListeners=function(e){var t;e.removeEventListener(`scroll`,this._handleScroll,!1),window.removeEventListener(`resize`,this._handleUpdateCache,!1),window.removeEventListener(`blur`,this._handleUpdateCache,!1),window.removeEventListener(`focus`,this._handleUpdateCache,!1),window.removeEventListener(`load`,this._handleUpdateCache,!1),(t=this._resizeObserver)==null||t.disconnect()},t._addResizeObserver=function(){var e=this;try{var t=this._hasScrollContainer?this.viewEl:document.documentElement;this._resizeObserver=new ResizeObserver(function(){return e.update()}),this._resizeObserver.observe(t)}catch{console.warn(`Failed to create the resize observer in the ParallaxContoller`)}},t._getScrollPosition=function(){return[this._hasScrollContainer?this.viewEl.scrollLeft:window.pageXOffset,this._hasScrollContainer?this.viewEl.scrollTop:window.pageYOffset]},t._handleScroll=function(){var e=this._getScrollPosition(),t=e[0],n=e[1];this.scroll.setScroll(t,n),!this._ticking&&this.elements?.length>0&&(this._ticking=!0,window.requestAnimationFrame(this._updateAllElements))},t._handleUpdateCache=function(){this._setViewSize(),this._updateAllElements({updateCache:!0})},t._updateAllElements=function(e){var t=this,n=(e===void 0?{}:e).updateCache;this.elements&&this.elements.forEach(function(e){n&&e.setCachedAttributes(t.view,t.scroll),t._updateElementPosition(e)}),this._ticking=!1},t._updateElementPosition=function(e){e.props.disabled||this.disabled||e.updatePosition(this.scroll)},t._getViewParams=function(){if(this._hasScrollContainer){var e=this.viewEl.offsetWidth,t=this.viewEl.offsetHeight,n=this.viewEl.scrollHeight,r=this.viewEl.scrollWidth;return this.view.setSize({width:e,height:t,scrollHeight:n,scrollWidth:r})}var i=document.documentElement;return{width:window.innerWidth||i.clientWidth,height:window.innerHeight||i.clientHeight,scrollHeight:i.scrollHeight,scrollWidth:i.scrollWidth}},t._setViewSize=function(){return this.view.setSize(this._getViewParams())},t._checkIfViewHasChanged=function(){return this.view.hasChanged(this._getViewParams())},t.getElements=function(){return this.elements},t.createElement=function(e){var t=new hr(jn({},e,{scrollAxis:this.scrollAxis,disabledParallaxController:this.disabled}));return t.setCachedAttributes(this.view,this.scroll),this.elements=this.elements?[].concat(this.elements,[t]):[t],this._updateElementPosition(t),this._checkIfViewHasChanged()&&this.update(),t},t.removeElementById=function(e){this.elements&&=this.elements.filter(function(t){return t.id!==e})},t.updateElementPropsById=function(e,t){this.elements&&=this.elements.map(function(n){return n.id===e?n.updateProps(t):n}),this.update()},t.resetElementStyles=function(e){Wn(e)},t.update=function(){var e=this._getScrollPosition(),t=e[0],n=e[1];
2this.scroll.setScroll(t,n),this._setViewSize(),this._updateAllElements({updateCache:!0})},t.updateScrollContainer=function(e){this._removeListeners(this.viewEl),this.viewEl=e,this._hasScrollContainer=!!e,this.view=new gr({width:0,height:0,scrollWidth:0,scrollHeight:0,scrollContainer:e}),this._setViewSize(),this._addListeners(this.viewEl),this._updateAllElements({updateCache:!0})},t.disableParallaxController=function(){this.disabled=!0,this._removeListeners(this.viewEl),this.elements&&this.elements.forEach(function(e){return Wn(e)})},t.enableParallaxController=function(){var e=this;this.disabled=!1,this.elements&&this.elements.forEach(function(t){return t.updateElementOptions({disabledParallaxController:!1,scrollAxis:e.scrollAxis})}),this._addListeners(this.viewEl),this._addResizeObserver(),this._setViewSize()},t.disableAllElements=function(){console.warn(`deprecated: use disableParallaxController() instead`),this.elements&&=this.elements.map(function(e){return e.updateProps({disabled:!0})}),this.update()},t.enableAllElements=function(){console.warn(`deprecated: use enableParallaxController() instead`),this.elements&&=this.elements.map(function(e){return e.updateProps({disabled:!1})}),this.update()},t.destroy=function(){this._removeListeners(this.viewEl),this.elements&&this.elements.forEach(function(e){return Wn(e)}),this.elements=void 0},e}()}));function br(e){let t=(0,xr.useRef)(null);return t.current||=Cr({scrollAxis:e.scrollAxis||ir.vertical,scrollContainer:e.scrollContainer,disabled:e.isDisabled}),(0,xr.useEffect)(()=>{e.scrollContainer&&t.current&&t.current.updateScrollContainer(e.scrollContainer)},[e.scrollContainer]),(0,xr.useEffect)(()=>{e.isDisabled&&t.current&&t.current.disableParallaxController(),!e.isDisabled&&t.current&&t.current.enableParallaxController()},[e.isDisabled]),(0,xr.useEffect)(()=>()=>{var e;t==null||(e=t.current)==null||e.destroy()},[]),xr.createElement(Sr.Provider,{value:t.current},e.children)}var xr,Sr,Cr,wr=t((()=>{yr(),xr=e(r(),1),Sr=xr.createContext(null),Cr=e=>typeof window>`u`?null:vr.init(e)}));function Tr(e,{isEnabled:t=!0,shouldFreezeWhileGoogleTranslateActive:n=!1}={}){let[r,i]=(0,Er.useState)({width:0,height:0});return(0,Er.useEffect)(()=>{if(!t)return;let r=e.current;if(!r)return;let a=({width:e,height:t})=>{i(n=>n.width===e&&n.height===t?n:{width:e,height:t})},o=r.getBoundingClientRect();a({width:Math.round(o.width),height:Math.round(o.height)});let s=new ResizeObserver(([e])=>{if(e?.contentRect){if(n&&wt(r.ownerDocument))return;a({width:Math.round(e.contentRect.width),height:Math.round(e.contentRect.height)})}});return s.observe(r),()=>s.disconnect()},[t,e,n]),r}var Er,Dr=t((()=>{Er=e(r()),Tt()}));function Or(e){return ae().atoms.find(t=>t.id===e)??null}var kr=t((()=>{T()})),Ar=t((()=>{T(),it(),ge(),v(),nt()})),jr,Mr=t((()=>{kr(),Ar(),jr=Or})),Nr,Pr=t((()=>{Nr={text:{supportsRelativeWidth:!0,supportsLinkWrapper:!1},badge:{supportsRelativeWidth:!1,supportsLinkWrapper:!1},headline:{supportsRelativeWidth:!0,supportsLinkWrapper:!1},button:{supportsRelativeWidth:!0,supportsLinkWrapper:!1},"custom-code":{supportsRelativeWidth:!1,supportsLinkWrapper:!1},icon:{supportsRelativeWidth:!1,supportsLinkWrapper:!0},logo:{supportsRelativeWidth:!1,supportsLinkWrapper:!0},rating:{supportsRelativeWidth:!1,supportsLinkWrapper:!1},line:{supportsRelativeWidth:!1,supportsLinkWrapper:!1},image:{supportsRelativeWidth:!0,supportsLinkWrapper:!0},"legal-content":{supportsRelativeWidth:!0,supportsLinkWrapper:!1},"google-maps-embed":{supportsRelativeWidth:!0,supportsLinkWrapper:!1},video:{supportsRelativeWidth:!0,supportsLinkWrapper:!1},"contact-social":{supportsRelativeWidth:!0,supportsLinkWrapper:!1},spacer:{supportsRelativeWidth:!1,supportsLinkWrapper:!1},"business-hours":{supportsRelativeWidth:!0,supportsLinkWrapper:!1},accordion:{supportsRelativeWidth:!0,supportsLinkWrapper:!1},"contact-form":{supportsRelativeWidth:!0,supportsLinkWrapper:!1},menu:{supportsRelativeWidth:!0,supportsLinkWrapper:!1},embed:{supportsRelativeWidth:!0,supportsLinkWrapper:!1},gallery:{supportsRelativeWidth:!0,supportsLinkWrapper:!1},"google-reviews":{supportsRelativeWidth:!0,supportsLinkWrapper:!1}}})),Fr,Ir,Lr,Rr=t((()=>{Fr=`txWsiNup`,Ir=`Zb05MVXX`,Lr={group:Fr,badge:Ir}}));function zr({badge:e}){let{mergeFontSettings:t}=x(),n=Oe(e.style.background),r=e.content?.trim()||`Badge`,i=bt(`badge`,{font:t(e.style.font??{family:{kind:`token`,token:`body`},isUppercase:!0},{background:e.style.background}
2),border:e.style.border,padding:e.style.padding,supportedGlobals:[`borderRadius`]});return(0,Vr.jsx)(`div`,{className:Lr.badge,style:{"--badge-background":n??`transparent`,...i},children:r})}function Br({atom:e}){return(0,Vr.jsx)(`div`,{className:Lr.group,style:{"--badge-group-gap":`${e.styles.gap}px`},children:e.settings.badges.map(e=>(0,Vr.jsx)(zr,{badge:e},e.id))})}var Vr,Hr=t((()=>{r(),N(),xt(),Rr(),Vr=l()})),Ur=t((()=>{Hr()})),Wr,Gr,Kr=t((()=>{Wr=`IXlkrodz`,Gr={icon:Wr}}));function qr({atom:e}){let t=Oe(e.styles.background),n=Ge(e.styles.color),r=bt(`icon`,{border:e.styles.border,padding:e.styles.padding,supportedGlobals:[`borderRadius`]});if(!e.settings.icon)return null;let i={...e.settings.icon,size:e.styles.size,strokeWidth:e.styles.strokeWidth,color:e.styles.color};return(0,Jr.jsx)(`div`,{"data-size":i.size,className:Gr.icon,style:{"--icon-background":t??`transparent`,...r},children:(0,Jr.jsx)(f,{icon:i,color:n})})}var Jr,Yr=t((()=>{r(),g(),N(),xt(),Kr(),Jr=l()})),Xr=t((()=>{Yr()})),Zr,Qr,$r,ei,ti,ni,ri,ii,ai,oi,si,ci,li,ui,di,fi,pi,mi,hi,gi,_i,vi,yi,bi,xi,Si,F,Ci=t((()=>{Zr=`D77Gu3G6`,Qr=`oaIaYlVg`,$r=`ZO-Q-CJy`,ei=`Db0hZTrF`,ti=`_6JU-6Pye`,ni=`AEXXlgak`,ri=`FvxAs-2M`,ii=`g7ri-HsD`,ai=`_57ltZyFN`,oi=`hB2bMOPe`,si=`CNgGWfis`,ci=`lt7cpwo8`,li=`LRZuMY5f`,ui=`xsN-ki2N`,di=`eGus6fXx`,fi=`xhPN38iU`,pi=`siR6qjzD`,mi=`jigixHib`,hi=`_1TJg362W`,gi=`t0B-KHGS`,_i=`kSqRvmPM`,vi=`FYTfWhrA`,yi=`dde2gyhN`,bi=`zOaVsosW`,xi=`JsdNW21b`,Si=`nM5DItKL`,F={atom:Zr,atomFullHeight:Qr,atomAligned:$r,frameAutoHeight:ei,frame:ti,frameAutoHeightFullWidth:ni,frameFullHeight:ri,media:ii,mediaContain:ai,mediaCover:oi,mediaFullHeight:si,mediaAutoHeight:ci,mediaAutoHeightFullWidth:li,overlayBackground:ui,hoverOverlay:di,content:fi,contentInner:pi,headline:mi,text:hi,background:gi,blur:_i,shift:vi,scale:yi,radius:bi,shadow:xi,opacity:Si}}));function wi(e,t,n){return Math.min(Math.max(e,t),n)}function Ti({atom:e}){let{mergeFontSettings:t}=x(),n=Oe(e.styles.overlayBackground),r=bt(`image-content`,{padding:e.settings.overlayPadding}),i=bt(`image-headline`,{font:t(e.settings.headlineFont??{family:{kind:`token`,token:ki}},{background:e.styles.overlayBackground})}),a=bt(`image-text`,{font:t(e.settings.textFont??{family:{kind:`token`,token:Ai}},{background:e.styles.overlayBackground})}),o=e.settings.headline?.trim()||null,s=e.settings.text?.trim()||null;return(0,Oi.jsxs)(Oi.Fragment,{children:[n&&(0,Oi.jsx)(`div`,{className:F.overlayBackground,style:{"--image-overlay-background":n}}),(o||s)&&(0,Oi.jsx)(`div`,{className:F.content,style:{"--image-content-justify":p(e.settings.overlayAlignment.vertical),"--image-content-align":u(e.settings.overlayAlignment.horizontal),"--image-content-text-align":e.settings.overlayAlignment.horizontal??`left`},children:(0,Oi.jsxs)(`div`,{className:F.contentInner,style:r,children:[o&&(0,Oi.jsx)(`p`,{className:F.headline,style:i,children:o}),s&&(0,Oi.jsx)(`p`,{className:F.text,style:a,children:s})]})})]})}function Ei({atom:e}){let t=be(),n=pe(),r=ne(),i=Jt(n),a=Ke(r),o=$e(),s=(0,Di.useMemo)(()=>({settings:o}),[o]),{showEditorChrome:c}=Ve(),l=Ce(),d=Qe(),{resolve:f}=Xe(),{buildUrl:p,buildSrcSet:m}=_t(),h=f({asset:e.settings.image?.asset}),g=i?.atoms.findIndex(t=>t.id===e.id)??-1,_=i&&a?Pt({website:s,organism:a,moleculeBorderRadius:i.styles.border?.radius}):null,v=Ft({atom:e,isFirst:g<=0,isLast:g===(i?.atoms.length??0)-1,moleculeBorderRadius:_,globalBorderRadius:o.borderRadius}),y=bt(`image`,{shadow:e.styles.shadow,borderRadius:v,hover:e.styles.hover,supportedGlobals:[`borderRadius`]}),b=P({[F.shift]:!!e.styles.hover.shift,[F.scale]:!!e.styles.hover.scale,[F.radius]:!!e.styles.hover.borderRadius,[F.background]:!!e.styles.hover.backgroundOverlay,[F.blur]:!!e.styles.hover.blur,[F.shadow]:!!e.styles.hover.shadow,[F.opacity]:!!e.styles.hover.opacity}),x=Math.max(e.styles.height??0,1),S=h?.path??void 0,ee=!!S,C=wi(e.settings.image?.focusPoint?.[0]??50,0,100),w=wi(e.settings.image?.focusPoint?.[1]??50,0,100),te=e.settings.image?.zoom??1,T=e.styles.fit===`contain`,E=a?At(e,a):!1,D=!e.styles.height&&!E,O=D&&e.styles.ignoreMoleculePadding,k=!D,re=i&&a?at({areaKind:t.areaKind,contentWidth:o.contentWidth,hasAutoHeight:D,molecule:i,organism:a}):void 0;if(!i||!a||!ee&&!c)return null;let ie=!ee&&c,ae;return ie&&(ae=`128px`),(0,Oi.jsx)(`div`,{className:P(F.atom,b,E&&F.atomFullHeight,e.styles.align&&F.atomAligned),"data-media-full-height":E?`true`:void 0,"data-media-kind":`image`,style:{...y,"--image-align":u(e.styles.align)},children:(0,Oi.jsxs)(`div`,{className:P(F.frame,E&&F.frameFullHeight,D&&F.frameAutoHeight,O&&F.frameAutoHeightFullWidth),"data-media-frame":`true`,style:{...D?{}:{"--media-height-ratio":`${wi(x,1,256)}`},"--image-hover-opacity":`${e.styles.hover.opacity?.amount??1}`,"--image-zoom":`${te}`,height:ae},children:[ee&&(0,Oi.jsx)(`img`,{alt:h?.alt??void 0,className:P(F.media,{[F.mediaAuto
2Height]:D,[F.mediaAutoHeightFullWidth]:O,[F.mediaContain]:T,[F.mediaCover]:!T,[F.mediaFullHeight]:E}),fetchPriority:l,loading:d?`lazy`:`eager`,"data-image-element":`true`,src:D?p({path:S,width:ji}):void 0,srcSet:k?m({path:S}):void 0,sizes:k?re:void 0,style:{"--focus-x":`${C}%`,"--focus-y":`${w}%`,...D?{width:O?`100%`:`auto`,height:`auto`,maxWidth:`100%`}:{}}}),ie&&(0,Oi.jsx)(qt,{children:`Bild`}),(0,Oi.jsx)(`div`,{className:F.hoverOverlay}),(0,Oi.jsx)(Ti,{atom:e})]})})}var Di,Oi,ki,Ai,ji,Mi=t((()=>{Di=e(r()),vt(),yt(),M(),T(),it(),Kt(),h(),dt(),N(),Yt(),ke(),Te(),xe(),xt(),jt(),Ci(),Oi=l(),ki=`h2`,Ai=`body`,ji=2800})),Ni=t((()=>{Mi()})),Pi,Fi,Ii,Li,Ri,zi,Bi=t((()=>{Pi=`l-shU-Sa`,Fi=`dp3crWmp`,Ii=`i7lLUXp2`,Li=`kdZF46jI`,Ri=`kiSxdMMh`,zi={base:Pi,line:Fi,dashed:Ii,curvy:Li,curvyFill:Ri}}));function Vi({atom:e}){let t=we(),n=me(),r=w(),i=Ge(e.styles.color??r??ue(t,n))??`currentColor`,a=Me(e.styles.strokeWidth),o=Math.max(12,a*6);return e.styles.variant===`curvy`?(0,Hi.jsx)(`svg`,{className:P(zi.base,zi.curvy),viewBox:`0 0 120 24`,preserveAspectRatio:`none`,style:{"--line-color":i,"--line-height":`${o}px`,"--line-width":`${e.styles.width}%`},children:(0,Hi.jsx)(`path`,{d:`M0 8 C 4 4, 8 4, 12 8 S 20 12, 24 8 S 32 4, 36 8 S 44 12, 48 8 S 56 4, 60 8 S 68 12, 72 8 S 80 4, 84 8 S 92 12, 96 8 S 104 4, 108 8 S 116 12, 120 8 L 120 16 C 116 20, 112 20, 108 16 S 100 12, 96 16 S 88 20, 84 16 S 76 12, 72 16 S 64 20, 60 16 S 52 12, 48 16 S 40 20, 36 16 S 28 12, 24 16 S 16 20, 12 16 S 4 12, 0 16 Z`,className:zi.curvyFill})}):(0,Hi.jsx)(`div`,{className:P(zi.base,{[zi.dashed]:e.styles.variant===`dashed`,[zi.line]:e.styles.variant!==`dashed`}),style:{"--line-color":i,"--line-height":`${a}px`,"--line-width":`${e.styles.width}%`}})}var Hi,Ui=t((()=>{r(),yt(),N(),Bi(),Hi=l()})),Wi=t((()=>{Ui()})),Gi,Ki,qi,Ji,Yi=t((()=>{Gi=`gfO-cxKn`,Ki=`_91E489co`,qi=`DLUsGus5`,Ji={logo:Gi,image:Ki,text:qi}}));function Xi({first:e,second:t}){return`${e} 1x, ${t} 2x`}function Zi(e){return{activeType:e?`page`:null,target:null,page:e?{pageContentId:e}:null,custom:null,scrollAnchor:null,email:null,phone:null,mediaDownload:null}}function Qi({atom:e,height:t}){let{buildUrl:n}=_t(),r=Ce(),i=Qe(),{name:a,pages:o}=we(),s=De(),c=me(),l=w(),{mergeFontSettings:u}=x(),{scrollWindowToTop:d}=Ue(),{resolve:f}=Xe(),p=f({asset:e.settings.asset}),m=e.settings.content?.trim()||a?.trim()||ta,h=e.settings.font?.color??null,g=u(e.settings.font??{family:{kind:`token`,token:`h2`},size:20,weight:400},{background:c,colorOverride:h?null:l}),_=o.find(e=>e.fullPath===`/`),v=_?.contentId===s.contentId,y=t??e.styles.height??ea,b=t??na,S=Math.max(ra,y),ee=Math.max(ra,b),C=e.settings.crop??void 0,te=Zi(_?.contentId),T=e.link??te,E=T.activeType===`page`?T.page?.pageContentId:null,D=bt(`logo`,{borderRadius:e.styles.border?.radius??null,font:g}),ne=v&&E===_?.contentId?e=>{e.preventDefault(),d(e.currentTarget.ownerDocument)}:void 0,O=(e,t)=>{let a=Xi({first:n({path:e,crop:C,height:S}),second:n({path:e,crop:C,height:S*2})});return(0,$i.jsxs)(`picture`,{children:[(0,$i.jsx)(`source`,{media:`(max-width: 767px)`,srcSet:Xi({first:n({path:e,crop:C,height:ee}),second:n({path:e,crop:C,height:ee*2})})}),(0,$i.jsx)(`img`,{className:Ji.image,fetchPriority:r,loading:i?`lazy`:`eager`,src:n({path:e,crop:C,height:S*2}),srcSet:a,alt:t})]})};return(0,$i.jsx)(Lt,{className:Ji.logo,style:{"--logo-height":`${y}px`,"--logo-mobile-height":`${b}px`,...D},link:T,onClick:ne,children:p?.path?O(p.path,p.alt??``):(0,$i.jsx)(`span`,{className:Ji.text,children:m})})}var $i,ea,ta,na,ra,ia=t((()=>{r(),vt(),N(),xt(),It(),Yi(),$i=l(),ea=64,ta=`Logo`,na=32,ra=1})),aa=t((()=>{ia()})),oa,sa,ca,la,ua,da,fa,pa,ma,ha,ga,_a,va=t((()=>{oa=`fO2WvPxj`,sa=`bRPjLH-c`,ca=`zZClCySb`,la=`_5CRMi3-A`,ua=`GqwyThKD`,da=`_-15vzMib`,fa=`bqQpKVYF`,pa=`_3-lDJqly`,ma=`UBJrmV08`,ha=`_2vpl15JT`,ga=`yr0MwskC`,_a={menu:oa,list:sa,item:ca,subList:la,moreMeasureItem:ua,link:da,menuHeader:fa,moreTrigger:pa,subItem:ma,more:ha,moreList:ga}}));function ya(e){return e===`/`?e:e.endsWith(`/`)?e.slice(0,-1):e}function ba(e){let t=e.startsWith(`/#`)?e.slice(2):e.startsWith(`#`)?e.slice(1):null;return t?{activeType:`scroll-anchor`,target:`_self`,page:null,custom:null,scrollAnchor:{pageContentId:null,sectionContentId:t},email:null,phone:null,mediaDownload:null}:{activeType:`custom`,target:null,page:null,custom:{href:e},scrollAnchor:null,email:null,phone:null,mediaDownload:null}}function xa(e){return e.type===`PAGE`?{id:e.id,title:null,link:{activeType:`page`,target:null,page:{pageContentId:e.contentId},custom:null,scrollAnchor:null,email:null,phone:null,mediaDownload:null},isVisible:e.isVisible,children:e.children.map(xa)}:{id:e.id,title:e.title,link:ba(e.href),isVisible:e.isVisible,children:e.children.map(xa)}}function Sa(e,t,n){if(e.link?.activeType===`page`){let t=n.pages.find(t=>t.contentId===e.link?.page?.pageContentId);if(t?.title)return t.title}return`Menüpunkt ${t+1}`}function Ca(e,t,n){if(!e.isVisible)return null;let r=e.title?.trim()||Sa(e,t,n);if(!r)return null;let i=e.children.map((e,t)=>
2Ca(e,t,n)).filter(e=>!!e);return{id:e.id,title:r,link:e.link,children:i}}function wa(e,t){if(!e?.activeType)return null;if(e.activeType===`page`){let n=t.pages.find(t=>t.contentId===e.page?.pageContentId);return n?.fullPath?ya(n.fullPath):null}if(e.activeType===`custom`){let t=e.custom?.href?.trim();return!t||!t.startsWith(`/`)?null:ya(t)}return null}function Ta(e,t,n){return wa(e.link,n)===t||e.children.some(e=>Ta(e,t,n))}function Ea(e,t,n){return wa(e.link,n)===t}function Da({items:e,currentPath:t,website:n,submenuBackground:r,isMobileNestedBehavior:i,isListExpanded:a,expandedItemIds:o,onExpandItem:s,onScrollAnchorClick:c}){return(0,I.jsx)(`ul`,{className:_a.subList,"data-mobile-expanded":i&&a,style:{"--menu-submenu-background":r},children:e.map(e=>{let a=Ea(e,t,n),l=e.children.some(e=>Ta(e,t,n)),u=e.children.length>0,d=o.has(e.id);return(0,I.jsxs)(`li`,{className:_a.subItem,children:[(0,I.jsxs)(Lt,{className:_a.link,"data-active":a,"data-has-active-child":l,"aria-expanded":u&&i?d:void 0,onClickCapture:t=>{if(!u||!i||d){e.link?.activeType===`scroll-anchor`&&c?.();return}t.preventDefault(),t.stopPropagation(),s(e.id)},link:e.link,children:[e.title,u&&(0,I.jsx)(Vt,{})]}),u&&Da({items:e.children,currentPath:t,website:n,submenuBackground:r,isMobileNestedBehavior:i,isListExpanded:d,expandedItemIds:o,onExpandItem:s,onScrollAnchorClick:c})]},e.id)})})}function Oa({atom:e,onScrollAnchorClick:t}){let n=Me(e.styles.lineWidth),r=De(),i=we(),{mergeFontSettings:a}=x(),{showEditorChrome:o}=Ve(),s=me(),c=ee(),l=le(),d=Ge(e.styles.highlightColor)??`currentColor`,f=Ge(e.styles.itemBackgroun
2d),p=_({activeBackground:s?.activeBackground===`solid`||s?.activeBackground===`simple-gradient`?s.activeBackground:null,backgroundSolid:s?.activeBackground===`solid`||s?.activeBackground===`simple-gradient`?s.solid:null,backgroundSimpleGradient:s?.activeBackground===`simple-gradient`?s.simpleGradient:null}),m=f??p??`#ffffff`,h=bt(`menu`,{font:a(e.styles.font??{family:{kind:`token`,token:`body`}},{background:s})}),g=(0,ka.useRef)(null),v=(0,ka.useRef)(new Map),y=(0,ka.useRef)(new Map),b=(0,ka.useRef)(null),S=(0,ka.useRef)(null),C=(0,ka.useRef)(null),[w,te]=(0,ka.useState)(null),[T,E]=(0,ka.useState)(!1),[D,ne]=(0,ka.useState)(0),[O,k]=(0,ka.useState)(()=>new Set),{document:re}=St(g.current),ie=(0,ka.useMemo)(()=>e.settings.source===`custom`?e.settings.items:i.settings.navigation.map(xa),[e.settings.items,e.settings.source,i.settings.navigation]),ae=(0,ka.useMemo)(()=>ie.map((e,t)=>Ca(e,t,i)).filter(e=>!!e),[ie,i]),A=ya(r.fullPath);if((0,ka.useEffect)(()=>{if(e.styles.orientation!==`horizontal`||e.styles.horizontalOverflow!==`menu`){te(null);return}let t=g.current;if(!t)return;let n=(e=!0)=>{if(e&&wt(t.ownerDocument))return;let n=t.clientWidth,r=window.getComputedStyle(t),i=r.columnGap||r.gap||`0`,a=Number.parseFloat(i)||0,o=ae.map(e=>{let t=v.current.get(e.id)?.offsetWidth??0;return t>0?(y.current.set(e.id,t),t):y.current.get(e.id)??0}),s=S.current?.offsetWidth??0,c=s>0?s:Aa,l=0,u=o.length;for(let e=0;e<o.length;e+=1){let t=o.length-(e+1),r=o[e],i=e>0?a:0,s=t>0?(e>0?a:0)+c:0;if(l+i+r+s>n){u=e;break}l+=i+r}u===o.length&&t.scrollWidth>t.clientWidth+.5&&(u=Math.max(o.length-1,0)),te(e=>e===u?e:u)};n(!1);let r=new ResizeObserver(()=>{n()});r.observe(t),S.current&&r.observe(S.current);for(let e of v.current.values())r.observe(e);return()=>{r.disconnect()}},[e.styles.horizontalOverflow,e.styles.orientation,ae,w]),(0,ka.useEffect)(()=>{if(!T){ne(0);return}let e=C.current;if(!e)return;let t=(t=!0)=>{if(t&&wt(e.ownerDocument))return;let n=e.getBoundingClientRect(),r=ja,i=window.innerWidth-ja,a=0;n.left<r?a=r-n.left:n.right>i&&(a=i-n.right),ne(e=>e===a?e:a)};t(!1);let n=new ResizeObserver(()=>{t()});n.observe(e);let r=()=>t();return window.addEventListener(`resize`,r),()=>{n.disconnect(),window.removeEventListener(`resize`,r)}},[e.styles.horizontalOverflow,e.styles.orientation,T,ae,w]),Xt(()=>{if(!T)return;let e=b.current;e&&(e.open=!1,E(!1))},re,[b.current]),ae.length===0)return o?(0,I.jsx)(qt,{children:`Menü`}):null;let oe=e.styles.orientation===`horizontal`&&e.styles.horizontalOverflow===`menu`,j=l&&!oe,se=oe?w??ae.length:ae.length,ce=ae.slice(0,se),ue=oe?ae.slice(se):[];return(0,I.jsx)(`div`,{className:P(_a.menu,c&&_a.menuHeader),"data-atom-id":e.id,"data-atom-type":e.type,"data-orientation":e.styles.orientation,"data-variant":e.styles.variant,"data-mobile-nested":j,style:{"--menu-gap":`${e.styles.gap}px`,"--menu-align":u(e.styles.align),"--menu-line-width":`${n}px`,"--menu-highlight-color":d,"--menu-item-background":f??`transparent`,"--menu-submenu-background":m,"--menu-more-shift-x":`${D}px`,...h},children:(0,I.jsxs)(`ul`,{ref:g,className:_a.list,"data-overflow":e.styles.orientation===`horizontal`?e.styles.horizontalOverflow:`wrap`,children:[oe&&(0,I.jsx)(`li`,{"aria-hidden":`true`,className:`${_a.item} ${_a.moreMeasureItem}`,children:(0,I.jsx)(`span`,{ref:S,className:_a.moreTrigger,children:`...`})}),ce.map(e=>{let n=Ea(e,A,i),r=e.children.some(e=>Ta(e,A,i)),a=e.children.length>0,o=O.has(e.id);return(0,I.jsxs)(`li`,{ref:t=>{t?(v.current.set(e.id,t),y.current.set(e.id,t.offsetWidth)):v.current.delete(e.id)},className:_a.item,children:[(0,I.jsxs)(Lt,{className:_a.link,"data-active":n,"data-has-active-child":r,"aria-expanded":a&&j?o:void 0,onClickCapture:n=>{if(!a||!j||o){e.link?.activeType===`scroll-anchor`&&t?.();return}n.preventDefault(),n.stopPropagation(),k(t=>new Set(t).add(e.id))},link:e.link,children:[e.title,a&&(0,I.jsx)(Vt,{})]}),a&&Da({items:e.children,currentPath:A,website:i,submenuBackground:m,isMobileNestedBehavior:j,isListExpanded:o,expandedItemIds:O,onExpandItem:e=>{k(t=>new Set(t).add(e))},onScrollAnchorClick:t})]},e.id)}),ue.length>0&&oe&&(0,I.jsx)(`li`,{className:_a.item,children:(0,I.jsxs)(`details`,{ref:b,className:_a.more,onToggle:e=>{E(e.currentTarget.open)},children:[(0,I.jsx)(`summary`,{className:_a.moreTrigger,children:(0,I.jsx)(Ut,{})}),(0,I.jsx)(`ul`,{ref:C,className:_a.moreList,children:ue.map(e=>{let n=Ea(e,A,i),r=e.children.some(e=>Ta(e,A,i));return(0,I.jsx)(`li`,{children:(0,I.jsx)(Lt,{className:_a.link,"data-active":n,"data-has-active-child":r,onClickCapture:()=>{e.link?.activeType===`scroll-anchor`&&t?.()},link:e.link,children:e.title})},e.id)})})]})})]})})}var ka,I,Aa,ja,Ma=t((()=>{ka=e(r()),Gt(),yt(),Kt(),ft(),Tt(),N(),Qt(),Ct(),xt(),It(),va(),I=l(),Aa=40,ja=12})),Na=t((()=>{Ma()})),Pa,Fa,Ia=t((()=>
2{Pa=`EdCd-PeQ`,Fa={spacer:Pa}}));function La({atom:e}){return(0,Ra.jsx)(`div`,{className:Fa.spacer,"data-spacer-mode":e.settings.mode,style:{"--spacer-height":`${e.settings.height??0}px`}})}var Ra,za=t((()=>{r(),Ia(),Ra=l()})),Ba=t((()=>{za()}));function Va({atom:e}){let t=e.settings.content;return(0,Ha.jsx)(en,{content:t,classes:{root:on.root,paragraph:on.paragraph,text:on.text,listItem:on.listItem,orderedListItem:on.orderedListItem,unorderedListItem:on.unorderedListItem}})}var Ha,Ua=t((()=>{r(),ln(),cn(),Ha=l()}));function Wa({atom:e,editableRef:t,wrapperRef:n,hasContent:r,isFocused:i,onFocusRequested:a}){let[o]=nn(),s=ie(),c=ne(),l=pe(),u=A(e=>e.textEditorFocusRequest),d=A(e=>e.clearTextEditorFocusRequest),f=S(e=>e.updateAtom),p=(0,Ga.useRef)(null),m=(0,Ga.useRef)(null);return(0,Ga.useEffect)(()=>{if(!u||!(u.sectionId===s&&u.organismId===c&&u.moleculeId===l&&u.atomId===e.id)||p.current===u.requestId)return;if(!r){f(s,c,l,e.id,{...e,settings:{...e.settings,content:tn()}}),a();return}let h=e=>{let r=t.current?.ownerDocument.defaultView??n.current?.ownerDocument.defaultView??null;r&&(m.current=r.requestAnimationFrame(()=>{let r=t.current,s=n.current;if(!r||!s){e>0&&h(e-1);return}if(s.scrollIntoView({block:`nearest`,inline:`nearest`}),a(),r.focus(),u.preserveCaret?o.focus():o.focus(()=>{o.update(()=>{Le().selectEnd()})}),r.ownerDocument.activeElement!==r&&e>0){h(e-1);return}p.current=u.requestId,i||a(),d(u.requestId)}))};return h(3),()=>{let e=t.current?.ownerDocument.defaultView??n.current?.ownerDocument.defaultView??null;m.current!==null&&(e?.cancelAnimationFrame(m.current),m.current=null)}},[e,d,t,o,r,i,l,a,c,u,s,f,n]),null}var Ga,Ka=t((()=>{Ga=e(r()),sn(),rn(),Re(),T(),it(),ge(),nt(),k()}));function qa({atom:e}){let t=ie(),n=ne(),r=pe(),{mergeFontSettings:i}=x(),a=i({family:{kind:`token`,token:`body`}},{background:me(),colorOverride:w()}),o=bt(`placeholder`,{font:a}),[s,c]=(0,Ja.useState)(!1),[l,u]=(0,Ja.useState)(0),d=(0,Ja.useRef)(null),f=(0,Ja.useRef)(null),{document:p}=St(f.current),m=S(e=>e.updateAtom),h=A(e=>e.closeTextToolbar);Xt(e=>{let t=e.target,n=t instanceof Element?t:t?.parentElement??null;if(n&&!(d.current?.contains(n)??!1)){if(n.closest(`[data-text-editor]`)){s&&c(!1);return}s&&(c(!1),h())}},p,[f.current,d.current]);let g=e.settings.content,_=a.lineHeight*a.size,v=()=>{g||m(t,n,r,e.id,{...e,settings:{...e.settings,content:tn()}})};return(0,Ya.jsx)(`div`,{ref:d,"data-text-editor":!0,className:on.editorWrapper,children:(0,Ya.jsxs)(an,{content:g,editableRef:f,minHeight:_,namespace:`website-text-inline-editor`,onChange:i=>{m(t,n,r,e.id,{...e,settings:{...e.settings,content:i}})},onFocus:()=>{v(),c(!0),u(e=>e+1)},placeholder:(0,Ya.jsx)(`span`,{style:o,className:on.placeholder,children:`Schreibe deinen Text...`}),themeClasses:{editor:on.editor,editable:on.editable,headline:on.headline,paragraph:on.paragraph},children:[(0,Ya.jsx)(Wa,{atom:e,editableRef:f,wrapperRef:d,hasContent:!!g,isFocused:s,onFocusRequested:()=>{c(!0)}}),(0,Ya.jsx)($t,{editableRef:f,focusRevision:l,isFocused:s})]})})}var Ja,Ya,Xa=t((()=>{Ja=e(r()),rn(),T(),it(),ge(),N(),Qt(),Ct(),ln(),nt(),k(),xt(),Ka(),Zt(),cn(),Ya=l()}));function Za({atom:e}){let{showEditorChrome:t}=Ve();return t?(0,Qa.jsx)(qa,{atom:e}):(0,Qa.jsx)(Va,{atom:e})}var Qa,$a=t((()=>{r(),N(),Ua(),Xa(),Qa=l()})),eo=t((()=>{$a()}));function to({atom:e}){let t;switch(e.type){case`button`:t=(0,L.jsx)(Rt,{atom:e});break;case`text`:t=(0,L.jsx)(Za,{atom:e});break;case`badge`:t=(0,L.jsx)(Br,{atom:e});break;case`custom-code`:t=(0,L.jsx)(so,{atom:e});break;case`icon`:t=(0,L.jsx)(qr,{atom:e});break;case`rating`:t=(0,L.jsx)(mo,{atom:e});break;case`line`:t=(0,L.jsx)(Vi,{atom:e});break;case`logo`:t=(0,L.jsx)(Qi,{atom:e});break;case`image`:t=(0,L.jsx)(Ei,{atom:e});break;case`legal-content`:t=(0,L.jsx)(po,{atom:e});break;case`google-maps-embed`:t=(0,L.jsx)(uo,{atom:e});break;case`video`:t=(0,L.jsx)(ho,{atom:e});break;case`contact-social`:t=(0,L.jsx)(oo,{atom:e});break;case`spacer`:t=(0,L.jsx)(La,{atom:e});break;case`business-hours`:t=(0,L.jsx)(io,{atom:e});break;case`accordion`:t=(0,L.jsx)(ro,{atom:e});break;case`contact-form`:t=(0,L.jsx)(ao,{atom:e});break;case`menu`:t=(0,L.jsx)(Oa,{atom:e});break;case`embed`:t=(0,L.jsx)(co,{atom:e});break;case`gallery`:t=(0,L.jsx)(lo,{atom:e});break;case`google-reviews`:t=(0,L.jsx)(fo,{atom:e});break;default:return null}return(0,L.jsx)(no.Suspense,{fallback:null,children:t})}var no,L,ro,io,ao,oo,so,co,lo,uo,fo,po,mo,ho,go=t((()=>{no=e(r()),Ur(),zt(),Xr(),Ni(),Wi(),aa(),Na(),Ba(),eo(),L=l(),d(),ro=(0,no.lazy)(()=>m(()=>import(`./BbDPkLmQ.js`).then(e=>({default:e.AccordionAtom})),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]))),io=(0,no.lazy)(()=>m(()=>import(`./BQv70Fm-2.js`).then(e=>({default:e.BusinessHoursAtom})),__vite__mapDeps([21,1,2,3,4,5,12,13,10,17,18,22,8,23]))),ao=(0,no.lazy)(()=>m(()=>import(`./BvK8Cimz2.js`).then(e=>({default:e.ContactFormAtom})),__vite__mapDeps([24,1,3,4,5,18,25,9,7,8,12,2,13,10,26,27,28,29,30,31]))),oo=(0,no.lazy)(()=>m(()=>import(`./D_HZKMjG2.js`).then(e=>({default:e.ContactSocialAtom})),__vite__mapDeps([32,1,2,3,4,5,7,8,28,25,9,10,29,17,18,33]))),so=(0,no.lazy)(()=>m(()=>import(`./DpwUyFNC2.js`).then(e=>({default:e.CustomCodeAtom})),__vite__mapDeps([34,1,3,4,5,18,35]))),co=(0,no.lazy)(()=>m(()=>import(`./C1_-Zy1B2.js`).then(e=>({default:e.EmbedAtom})),__vite__mapDeps([36,1,2,3,4,5,18,7,8,12,13,10,27,28,25,9,29,30,17,37,38,19,39]))),lo=(0,no.lazy)(()=>m(()=>import(`./DKEGe69x2.js`).then(e=>({default:e.GalleryAtom})),__vite__mapDeps([40,1,2,3,4,5,7,8,41,42,14,15,28,25,9,10,29,17,18,13,43]))),uo=(0,no.lazy)(()=>m(()=>import(`./DBUUkvgx2.js`).then(e=>({default:e.GoogleMapsEmbedAtom})),__vite__mapDeps([44,1,3,4,5,7,8,45,17,18,37,46]))),fo=(0,no.lazy)(()=>m(()=>import(`./D7PRESqv2.js`).then(e=>({default:e.GoogleReviewsAtom})),__vite__mapDeps([47,1,3,4,5,18,7,8,41,2,42,14,15,17,48]))),po=(0,no.lazy)(()=>m(()=>import(`./C16tGl1A2.js`).then(e=>({default:e.LegalContentAtom}
2)),__vite__mapDeps([49,1,6,3,4,5,7,8,9,10,11,50]))),mo=(0,no.lazy)(()=>m(()=>import(`./D8sBbT4h2.js`).then(e=>({default:e.RatingAtom})),__vite__mapDeps([51,1,3,4,5,18,52]))),ho=(0,no.lazy)(()=>m(()=>import(`./Bh2ilhv12.js`).then(e=>({default:e.VideoAtom})),__vite__mapDeps([53,1,3,4,5,7,8,14,15,45,17,18,54,55])))}));function _o(){return ae().styles.padding}function vo({atomId:e,isFirst:t,isLast:n}){let r=jr(e),i=yo(),a=we();if(!r)return{};let o=t&&!r.styles.ignoreMoleculePadding,s=!r.styles.ignoreMoleculePadding,c=n&&!r.styles.ignoreMoleculePadding;return kt(a,`atom`,{padding:{top:o?i?.top??0:0,left:s?i?.left??0:0,right:s?i?.right??0:0,bottom:c?i?.bottom??0:0}})}var yo,bo=t((()=>{T(),it(),ge(),Mr(),Be(),rt(),Dt(),yo=_o})),xo,So,Co,wo,To,Eo,Do,Oo,ko,Ao=t((()=>{xo=`M1S-G4OI`,So=`ovzt3Sb-`,Co=`bYwt-BvD`,wo=`v0jlxtlB`,To=`Hgha-AI5`,Eo=`rnclZETL`,Do=`VWyucqd9`,Oo=`_87tId8Om`,ko={layoutTrack:xo,layoutTrackEditor:So,layoutTrackFillHeight:Co,layoutBox:wo,layoutBoxRelativeWidth:To,layoutBoxFullWidth:Eo,layoutBoxDelivery:Do,layoutBoxFillHeight:Oo}}));function jo({atomId:e,isLast:t,isFirst:n}){let r=jr(e),i=ae(),a=_e(),o=ht(),s=vo({atomId:e,isLast:t,isFirst:n}),c=i.atoms.findIndex(t=>t.id===e),l=c>=0?i.atoms[c+1]??null:null;if(!r)return null;let d=Mt({atom:r,isLast:t,nextAtom:l}),f=r.type===`spacer`&&r.settings.mode===`auto`,p=r.type===`spacer`&&r.settings.mode===`auto`?r.settings.height??20:null,m=Nr[r.type],h=Nt(r,a),g=o.resolve(r.link),_=!!g.href&&!i.link&&r.type!==`logo`,v=P(ko.layoutBox,ko.layoutBoxDelivery,{[ko.layoutBoxRelativeWidth]:m.supportsRelativeWidth,[ko.layoutBoxFullWidth]:!m.supportsRelativeWidth,[ko.layoutBoxFillHeight]:h}),y={"--atom-relative-width":`${r.styles.relativeWidth??100}%`};return(0,Mo.jsx)(`div`,{id:r.contentId,className:P(ko.layoutTrack,h&&ko.layoutTrackFillHeight),"data-atom-fill-height":h?`true`:void 0,"data-atom-spacer-auto":f?`true`:void 0,style:{"--atom-margin-bottom":t?0:`${Et(d)}`,"--atom-justify":u(r.styles.align??i.styles.horizontalAlignment),...p!==null&&{"--atom-spacer-min-height":`${p}px`},...s},children:_?(0,Mo.jsx)(`a`,{href:g.href??void 0,target:g.target??void 0,onClick:g.onClick,className:v,"data-atom-layout-wrapper":!0,"data-atom-fill-height":h?`true`:void 0,style:y,children:(0,Mo.jsx)(to,{atom:r})}):(0,Mo.jsx)(`div`,{className:v,"data-atom-layout-wrapper":!0,"data-atom-fill-height":h?`true`:void 0,style:y,children:(0,Mo.jsx)(to,{atom:r})})})}var Mo,No=t((()=>{r(),yt(),T(),it(),ft(),Mr(),Ot(),Pr(),jt(),go(),bo(),Ao(),Mo=l()})),Po=t((()=>{k()})),Fo=t((()=>{r(),l()})),Io=t((()=>{r(),Po(),Fo(),l()})),Lo=t((()=>{r(),i(),Ct(),l()})),Ro=t((()=>{r(),M(),T(),it(),ge(),Lo(),Po(),Mr(),Be(),nt(),k(),l()})),zo=t((()=>{r(),Po(),l()})),Bo=t((()=>{r(),M(),T(),it(),ge(),Ct(),Yt(),ke(),nt(),k(),Io(),Ro(),zo(),l()}));function Vo(){if(as>1)as--;else{var e,t=!1;for((function(){var e=ls;for(ls=void 0;e!==void 0;)e.S.v===e.v&&(e.S.i=e.i),e=e.o})();is!==void 0;){var n=is;for(is=void 0,os++;n!==void 0;){var r=n.u;if(n.u=void 0,n.f&=-3,!(8&n.f)&&Ko(n))try{n.c()}catch(n){t||=(e=n,!0)}n=r}}if(os=0,as--,t)throw e}}function Ho(e){if(as>0)return e();cs=++ss,as++;try{return e()}finally{Vo()}}function R(e){var t=z;z=void 0;try{return e()}finally{z=t}}function Uo(e){if(z!==void 0){var t=e.n;if(t===void 0||t.t!==z)return t={i:0,S:e,p:z.s,n:void 0,t:z,e:void 0,x:void 0,r:t},z.s!==void 0&&(z.s.n=t),z.s=t,e.n=t,32&z.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=z.s,t.n=void 0,z.s.n=t,z.s=t),t}}function Wo(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=t?.watched,this.Z=t?.unwatched,this.name=t?.name}function Go(e,t){return new Wo(e,t)}function Ko(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function qo(e){for(var t=e.s;t!==void 0;t=t.n){var n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function Jo(e){for(var t=e.s,n=void 0;t!==void 0;){var r=t.p;t.i===-1?(t.S.U(t),r!==void 0&&(r.n=t.n),t.n!==void 0&&(t.n.p=r)):n=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=r}e.s=n}function Yo(e,t){Wo.call(this,void 0),this.x=e,this.s=void 0,this.g=us-1,this.f=4,this.W=t?.watched,this.Z=t?.unwatched,this.name=t?.name}function Xo(e,t){return new Yo(e,t)}function Zo(e){var t=e.m;if(e.m=void 0,typeof t==`function`){as++;var n=z;z=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,Qo(e),t}finally{z=n,Vo()}}}function Qo(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Zo(e)}function $o(e){if(z!==this)throw Error(`Out-of-order effect`);Jo(this),z=e,this.f&=-2,8&this.f&&Qo(this),Vo()}function es(e,t){this.x=e,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=t?.name,rs&&rs.push(this)}function ts(e,t){var n=new es(e,t);try{n.c()}catch(e){throw n.d(),e}var r=n.d.bind(n);return r[Symbol.dispose]=r,r}var ns,z,rs,is,as,os,ss,cs,ls,us,ds=t((()=>{ns=Symbol.for(`preact-signals`),z=void 0,is=void 0,as=0,os=0,ss=0,cs=0,ls=void 0,us=0,Wo.prototype.brand=ns,Wo.prototype.h=function(){return!0},Wo.prototype.S=function(e){var t=this,n=this.t;n!==e&&e.e===void 0&&(e.x=n,this.t=e,n===void 0?R(function(){var e;(e=t.W)==null||e.call(t)}):n.e=e)},Wo.prototype.U=function(e){var t=this;if(this.t!==void 0){var n=e.e,r=e.x;n!==void 0&&(n.x=r,e.e=void 0),r!==void 0&&(r.e=n,e.x=void 0),e===this.t&&(this.t=r,r===void 0&&R(function(){var e;(e=t.Z)==null||e.call(t)}))}},Wo.prototype.subscribe=function(e){var t=this;return ts(function(){var n=t.value,r=z;z=void 0;try{e(n)}finally{z=r}},{name:`sub`})},Wo.prototype.valueOf=function(){return this.value},Wo.prototype.toString=function(){return this.value+``},Wo.prototype.toJSON=function(){return this.value},Wo.prototype.peek=function(){var e=z;z=void 0;try{return this.value}finally{z=e}},Object.defineProperty(Wo.prototype,`value`,{get:function(){var e=Uo(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(os>100)throw Error(`Cycle detected`);(function(e){as!==0&&os===0&&e.l!==cs&&(e.l=cs,ls={S:e,v:e.v,i:e.i,o:ls})})(this),this.v=e,this.i++,us++,as++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Vo()}}}}),Yo.prototype=new Wo,Yo.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===us))return!0;
2if(this.g=us,this.f|=1,this.i>0&&!Ko(this))return this.f&=-2,!0;var e=z;try{qo(this),z=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return z=e,Jo(this),this.f&=-2,!0},Yo.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}Wo.prototype.S.call(this,e)},Yo.prototype.U=function(e){if(this.t!==void 0&&(Wo.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}},Yo.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}},Object.defineProperty(Yo.prototype,`value`,{get:function(){if(1&this.f)throw Error(`Cycle detected`);var e=Uo(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),es.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t==`function`&&(this.m=t)}finally{e()}},es.prototype.S=function(){if(1&this.f)throw Error(`Cycle detected`);this.f|=1,this.f&=-9,Zo(this),qo(this),as++;var e=z;return z=this,$o.bind(this,e)},es.prototype.N=function(){2&this.f||(this.f|=2,this.u=is,is=this)},es.prototype.d=function(){this.f|=8,1&this.f||Qo(this)},es.prototype.dispose=function(){this.d()}}));function fs(e,t){if(t){let n;return Xo(()=>{let r=e();return r&&n&&t(n,r)?n:(n=r,r)})}return Xo(e)}function ps(e,t){if(Object.is(e,t))return!0;if(e===null||t===null)return!1;if(typeof e==`function`&&typeof t==`function`)return e===t;if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}if(Array.isArray(e))return!Array.isArray(t)||e.length!==t.length?!1:!e.some((e,n)=>!ps(e,t[n]));if(typeof e==`object`&&typeof t==`object`){let n=Object.keys(e),r=Object.keys(t);return n.length===r.length?!n.some(n=>!ps(e[n],t[n])):!1}return!1}function B({get:e},t){return{init(e){return Go(e)},get(){return e.call(this).value},set(t){let n=e.call(this);n.peek()!==t&&(n.value=t)}}}function V(e,t){let n=new WeakMap;return function(){let t=n.get(this);return t||(t=fs(e.bind(this)),n.set(this,t)),t.value}}function ms(e=!0){return function(t,n){n.addInitializer(function(){let t=n.kind===`field`||n.static?this:Object.getPrototypeOf(this),r=Object.getOwnPropertyDescriptor(t,n.name);r&&Object.defineProperty(t,n.name,ks(Os({},r),{enumerable:e}))})}}function hs(...e){let t=e.map(e=>ts(e));return()=>t.forEach(e=>e())}function gs(e){return R(()=>{let t={};for(let n in e)t[n]=e[n];return t})}var _s,vs,ys,bs,xs,Ss,Cs,ws,Ts,Es,Ds,Os,ks,As,js,Ms,Ns,Ps,Fs,Is,Ls,Rs,zs,Bs,Vs,Hs,Us,Ws,Gs,Ks,qs,Js,Ys,Xs,Zs,Qs,$s,ec,tc,nc,rc,ic,ac,oc,sc,cc,lc,uc,dc=t((()=>{ds(),_s=Object.create,vs=Object.defineProperty,ys=Object.defineProperties,bs=Object.getOwnPropertyDescriptor,xs=Object.getOwnPropertyDescriptors,Ss=Object.getOwnPropertySymbols,Cs=Object.prototype.hasOwnProperty,ws=Object.prototype.propertyIsEnumerable,Ts=(e,t)=>(t=Symbol[e])?t:Symbol.for(`Symbol.`+e),Es=e=>{throw TypeError(e)},Ds=(e,t,n)=>t in e?vs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Os=(e,t)=>{for(var n in t||={})Cs.call(t,n)&&Ds(e,n,t[n]);if(Ss)for(var n of Ss(t))ws.call(t,n)&&Ds(e,n,t[n]);return e},ks=(e,t)=>ys(e,xs(t)),As=(e,t)=>vs(e,`name`,{value:t,configurable:!0}),js=e=>[,,,_s(e?.[Ts(`metadata`)]??null)],Ms=[`class`,`method`,`getter`,`setter`,`accessor`,`field`,`value`,`get`,`set`],Ns=e=>e!==void 0&&typeof e!=`function`?Es(`Function expected`):e,Ps=(e,t,n,r,i)=>({kind:Ms[e],name:t,metadata:r,addInitializer:e=>n._?Es(`Already initialized`):i.push(Ns(e||null))}),Fs=(e,t)=>Ds(t,Ts(`metadata`),e[3]),Is=(e,t,n,r)=>{for(var i=0,a=e[t>>1],o=a&&a.length;i<o;i++)t&1?a[i].call(n):r=a[i].call(n,r);return r},Ls=(e,t,n,r,i,a)=>{var o,s,c,l,u,d=t&7,f=!!(t&8),p=!!(t&16),m=d>3?e.length+1:d?f?1:2:0,h=Ms[d+5],g=d>3&&(e[m-1]=[]),_=e[m]||(e[m]=[]),v=d&&(!p&&!f&&(i=i.prototype),d<5&&(d>3||!p)&&bs(d<4?i:{get[n](){return Bs(this,a)},set[n](e){return Hs(this,a,e)}},n));d?p&&d<4&&As(a,(d>2?`set `:d>1?`get `:``)+n):As(i,n);for(var y=r.length-1;y>=0;y--)l=Ps(d,n,c={},e[3],_),d&&(l.static=f,l.private=p,u=l.access={has:p?e=>zs(i,e):e=>n in e},d^3&&(u.get=p?e=>(d^1?Bs:Us)(e,i,d^4?a:v.get):e=>e[n]),d>2&&(u.set=p?(e,t)=>Hs(e,i,t,d^4?a:v.set):(e,t)=>e[n]=t)),s=(0,r[y])(d?d<4?p?a:v[h]:d>4?void 0:{get:v.get,set:v.set}:i,l),c._=1,d^4||s===void 0?Ns(s)&&(d>4?g.unshift(s):d?p?a=s:v[h]=s:i=s):typeof s!=`object`||!s?Es(`Object expected`):(Ns(o=s.get)&&(v.get=o),Ns(o=s.set)&&(v.set=o),Ns(o=s.init)&&g.unshift(o));return d||Fs(e,i),v&&vs(i,n,v),p?d^4?a:v:i},Rs=(e,t,n)=>t.has(e)||Es(`Cannot `+n),zs=(e,t)=>Object(t)===t?e.has(t):Es(`Cannot use the "in" operator on this value`),Bs=(e,t,n)=>(Rs(e,t,`read from private field`),n?n.call(e):t.get(e)),Vs=(e,t,n)=>t.has(e)?Es(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),Hs=(e,t,n,r)=>(Rs(e,t,`write to private field`),r?r.call(e,n):t.set(e,n),n),Us=(e,t,n)=>(Rs(e,t,`access private method`),n),Ys=[B],Js=[B],qs=[B],Ks=[ms()],Gs=[ms()],Ws=[ms()],uc=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,Is(Xs,5,this),Vs(this,tc),Vs(this,Zs,Is(Xs,8,this)),Is(Xs,11,this),Vs(this,nc,Is(Xs,12,this)),Is(Xs,15,this),Vs(this,oc,Is(Xs,16,this)),Is(Xs,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return Bs(this,tc,cc)}get initial(){return Bs(this,tc,$s)}get previous(){return Bs(this,tc,ic)}set current(e){let t=R(()=>Bs(this,tc,cc));e&&t&&this.equals(t,e)||Ho(()=>{Bs(this,tc,$s)||Hs(this,tc,e,ec),Hs(this,tc,t,ac),Hs(this,tc,e,lc)})}reset(e=this.defaultValue){Ho(()=>{Hs(this,tc,void 0,ac),Hs(this,tc,e,ec),Hs(this,tc,e,lc)})}},Xs=js(null),Zs=new WeakMap,tc=new WeakSet,nc=new WeakMap,oc=new WeakMap,Qs=Ls(Xs,20,`#initial`,Ys,tc,Zs),$s=Qs.get,ec=Qs.set,rc=Ls(Xs,20,`#previous`,Js,tc,nc),ic=rc.get,ac=rc.set,sc=Ls(Xs,20,`#current`,qs,tc,oc),cc=sc.get,lc=sc.set,Ls(Xs,2,`current`,Ks,uc),Ls(Xs,2,`initial`,Gs,uc),Ls(Xs,2,`previous`,Ws,uc),Fs(Xs,uc)}));function fc(e,t){let n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height),o=i-r,s=a-n;return r<i&&n<a?o*s:0}function pc({x:e,y:t},n){let r=Math.abs(e),i=Math.abs(t);
2return typeof n==`number`?Math.sqrt(Sc(r,2)+Sc(i,2))>n:`x`in n&&`y`in n?r>n.x&&i>n.y:`x`in n?r>n.x:`y`in n?i>n.y:!1}var mc,hc,gc,_c,vc,yc,bc,xc,Sc,Cc,wc,Tc,Ec,Dc,Oc,kc,Ac,jc,Mc,Nc,Pc,Fc,Ic,Lc,Rc,zc,Bc,Vc,Hc,Uc,Wc,Gc,Kc,qc,Jc,Yc=t((()=>{dc(),mc=Object.create,hc=Object.defineProperty,gc=Object.getOwnPropertyDescriptor,_c=Object.getOwnPropertySymbols,vc=Object.prototype.hasOwnProperty,yc=Object.prototype.propertyIsEnumerable,bc=(e,t)=>(t=Symbol[e])?t:Symbol.for(`Symbol.`+e),xc=e=>{throw TypeError(e)},Sc=Math.pow,Cc=(e,t,n)=>t in e?hc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wc=(e,t)=>{for(var n in t||={})vc.call(t,n)&&Cc(e,n,t[n]);if(_c)for(var n of _c(t))yc.call(t,n)&&Cc(e,n,t[n]);return e},Tc=(e,t)=>hc(e,`name`,{value:t,configurable:!0}),Ec=e=>[,,,mc(e?.[bc(`metadata`)]??null)],Dc=[`class`,`method`,`getter`,`setter`,`accessor`,`field`,`value`,`get`,`set`],Oc=e=>e!==void 0&&typeof e!=`function`?xc(`Function expected`):e,kc=(e,t,n,r,i)=>({kind:Dc[e],name:t,metadata:r,addInitializer:e=>n._?xc(`Already initialized`):i.push(Oc(e||null))}),Ac=(e,t)=>Cc(t,bc(`metadata`),e[3]),jc=(e,t,n,r)=>{for(var i=0,a=e[t>>1],o=a&&a.length;i<o;i++)t&1?a[i].call(n):r=a[i].call(n,r);return r},Mc=(e,t,n,r,i,a)=>{var o,s,c,l,u,d=t&7,f=!!(t&8),p=!!(t&16),m=d>3?e.length+1:d?f?1:2:0,h=Dc[d+5],g=d>3&&(e[m-1]=[]),_=e[m]||(e[m]=[]),v=d&&(!p&&!f&&(i=i.prototype),d<5&&(d>3||!p)&&gc(d<4?i:{get[n](){return Fc(this,a)},set[n](e){return Lc(this,a,e)}},n));d?p&&d<4&&Tc(a,(d>2?`set `:d>1?`get `:``)+n):Tc(i,n);for(var y=r.length-1;y>=0;y--)l=kc(d,n,c={},e[3],_),d&&(l.static=f,l.private=p,u=l.access={has:p?e=>Pc(i,e):e=>n in e},d^3&&(u.get=p?e=>(d^1?Fc:Rc)(e,i,d^4?a:v.get):e=>e[n]),d>2&&(u.set=p?(e,t)=>Lc(e,i,t,d^4?a:v.set):(e,t)=>e[n]=t)),s=(0,r[y])(d?d<4?p?a:v[h]:d>4?void 0:{get:v.get,set:v.set}:i,l),c._=1,d^4||s===void 0?Oc(s)&&(d>4?g.unshift(s):d?p?a=s:v[h]=s:i=s):typeof s!=`object`||!s?xc(`Object expected`):(Oc(o=s.get)&&(v.get=o),Oc(o=s.set)&&(v.set=o),Oc(o=s.init)&&g.unshift(o));return d||Ac(e,i),v&&hc(i,n,v),p?d^4?a:v:i},Nc=(e,t,n)=>t.has(e)||xc(`Cannot `+n),Pc=(e,t)=>Object(t)===t?e.has(t):xc(`Cannot use the "in" operator on this value`),Fc=(e,t,n)=>(Nc(e,t,`read from private field`),n?n.call(e):t.get(e)),Ic=(e,t,n)=>t.has(e)?xc(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),Lc=(e,t,n,r)=>(Nc(e,t,`write to private field`),r?r.call(e,n):t.set(e,n),n),Rc=(e,t,n)=>(Nc(e,t,`access private method`),n),zc=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,n){return new e(t.x-n.x,t.y-n.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:n}){return new e(t,n)}},Bc=class e{constructor(e,t,n,r){this.left=e,this.top=t,this.width=n,this.height=r,this.scale={x:1,y:1}}get inverseScale(){return{x:1/this.scale.x,y:1/this.scale.y}}translate(t,n){let{top:r,left:i,width:a,height:o,scale:s}=this,c=new e(i+t,r+n,a,o);return c.scale=wc({},s),c}get boundingRectangle(){let{width:e,height:t,left:n,top:r,right:i,bottom:a}=this;return{width:e,height:t,left:n,top:r,right:i,bottom:a}}get center(){let{left:e,top:t,right:n,bottom:r}=this;return new zc((e+n)/2,(t+r)/2)}get area(){let{width:e,height:t}=this;return e*t}equals(t){if(!(t instanceof e))return!1;let{left:n,top:r,width:i,height:a}=this;return n===t.left&&r===t.top&&i===t.width&&a===t.height}containsPoint(e){let{top:t,left:n,bottom:r,right:i}=this;return t<=e.y&&e.y<=r&&n<=e.x&&e.x<=i}intersectionArea(t){return t instanceof e?fc(this,t):0}intersectionRatio(e){let{area:t}=this,n=this.intersectionArea(e);return n/(e.area+t-n)}get bottom(){let{top:e,height:t}=this;return e+t}get right(){let{left:e,width:t}=this;return e+t}get aspectRatio(){let{width:e,height:t}=this;return e/t}get corners(){return[{x:this.left,y:this.top},{x:this.right,y:this.top},{x:this.left,y:this.bottom},{x:this.right,y:this.bottom}]}static from({top:t,left:n,width:r,height:i}){return new e(n,t,r,i)}static delta(e,t,n={x:`center`,y:`center`}){let r=(e,t)=>{let r=n[t],i=t===`x`?e.left:e.top,a=t===`x`?e.width:e.height;return r==`start`?i:r==`end`?i+a:i+a/2};return zc.delta({x:r(e,`x`),y:r(e,`y`)},{x:r(t,`x`),y:r(t,`y`)})}static intersectionRatio(t,n){return e.from(t).intersectionRatio(e.from(n))}},Kc=class extends (Uc=uc,Hc=[V],Vc=[V],Uc){constructor(e){let t=zc.from(e);super(t,(e,t)=>zc.equals(e,t)),jc(Gc,5,this),Ic(this,Wc,0),this.velocity={x:0,y:0}}get delta(){return zc.delta(this.current,this.initial)}get direction(){let{current:e,previous:t}=this;if(!t)return null;let n={x:e.x-t.x,y:e.y-t.y};return!n.x&&!n.y?null:Math.abs(n.x)>Math.abs(n.y)?n.x>0?`right`:`left`:n.y>0?`down`:`up`}get current(){return super.current}set current(e){let{current:t}=this,n=zc.from(e),r={x:n.x-t.x,y:n.y-t.y},i=Date.now(),a=i-Fc(this,Wc),o=e=>Math.round(e/a*100);Ho(()=>{Lc(this,Wc,i),this.velocity={x:o(r.x),y:o(r.y)},super.current=n})}reset(e=this.defaultValue){super.reset(zc.from(e)),this.velocity={x:0,y:0}}},Gc=Ec(Uc),Wc=new WeakMap,Mc(Gc,2,`delta`,Hc,Kc),Mc(Gc,2,`direction`,Vc,Kc),Ac(Gc,Kc),qc=(e=>(e.Horizontal=`x`,e.Vertical=`y`,e))(qc||{}),Jc=Object.values(qc)}));function Xc(e,t){return{plugin:e,options:t}}function Zc(e){return t=>Xc(e,t)}function Qc(e){return typeof e==`function`?{plugin:e,options:void 0}:e}function $c(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}function el(e,t=!0){let n=!1;return ml(pl({},e),{cancelable:t,get defaultPrevented(){return n},preventDefault(){t&&(n=!0)}})}function tl(e,t){return typeof e==`function`?e(t):e??t}var nl,rl,il,al,ol,sl,cl,ll,ul,dl,fl,pl,ml,hl,gl,_l,vl,yl,bl,xl,H,U,Sl,Cl,W,G,wl,Tl,El,Dl,Ol,kl,Al,jl,Ml,Nl,Pl,Fl,Il,Ll,Rl,zl,Bl,Vl,Hl,Ul,Wl,Gl,Kl,ql,Jl,Yl,Xl,Zl,Ql,$l,eu,tu,nu,ru,iu,au,ou,su,cu,lu,uu,du,fu,pu,mu,hu,gu,_u,vu,yu,bu,xu,Su,Cu,wu,Tu,Eu,Du,Ou,ku,K,Au,ju,Mu,Nu,Pu,Fu,Iu,Lu,Ru,zu,Bu,Vu,Hu,Uu,Wu,Gu,Ku,qu,Ju,Yu,Xu,Zu,Qu,$u,q,ed,td,nd,rd,id,ad,od,sd,cd,ld=t((()=>{dc(),Yc(),nl=Object.create,rl=Object.defineProperty,il=Object.defineProperties,al=Object.getOwnPropertyDescriptor,ol=Object.getOwnPropertyDescriptors,sl=Object.getOwnPropertySymbols,cl=Object.prototype.hasOwnProperty,ll=Object.prototype.propertyIsEnumerable,ul=(e,t)=>
2(t=Symbol[e])?t:Symbol.for(`Symbol.`+e),dl=e=>{throw TypeError(e)},fl=(e,t,n)=>t in e?rl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pl=(e,t)=>{for(var n in t||={})cl.call(t,n)&&fl(e,n,t[n]);if(sl)for(var n of sl(t))ll.call(t,n)&&fl(e,n,t[n]);return e},ml=(e,t)=>il(e,ol(t)),hl=(e,t)=>rl(e,`name`,{value:t,configurable:!0}),gl=(e,t)=>{var n={};for(var r in e)cl.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&sl)for(var r of sl(e))t.indexOf(r)<0&&ll.call(e,r)&&(n[r]=e[r]);return n},_l=e=>[,,,nl(e?.[ul(`metadata`)]??null)],vl=[`class`,`method`,`getter`,`setter`,`accessor`,`field`,`value`,`get`,`set`],yl=e=>e!==void 0&&typeof e!=`function`?dl(`Function expected`):e,bl=(e,t,n,r,i)=>({kind:vl[e],name:t,metadata:r,addInitializer:e=>n._?dl(`Already initialized`):i.push(yl(e||null))}),xl=(e,t)=>fl(t,ul(`metadata`),e[3]),H=(e,t,n,r)=>{for(var i=0,a=e[t>>1],o=a&&a.length;i<o;i++)t&1?a[i].call(n):r=a[i].call(n,r);return r},U=(e,t,n,r,i,a)=>{var o,s,c,l,u,d=t&7,f=!!(t&8),p=!!(t&16),m=d>3?e.length+1:d?f?1:2:0,h=vl[d+5],g=d>3&&(e[m-1]=[]),_=e[m]||(e[m]=[]),v=d&&(!p&&!f&&(i=i.prototype),d<5&&(d>3||!p)&&al(d<4?i:{get[n](){return W(this,a)},set[n](e){return wl(this,a,e)}},n));d?p&&d<4&&hl(a,(d>2?`set `:d>1?`get `:``)+n):hl(i,n);for(var y=r.length-1;y>=0;y--)l=bl(d,n,c={},e[3],_),d&&(l.static=f,l.private=p,u=l.access={has:p?e=>Cl(i,e):e=>n in e},d^3&&(u.get=p?e=>(d^1?W:Tl)(e,i,d^4?a:v.get):e=>e[n]),d>2&&(u.set=p?(e,t)=>wl(e,i,t,d^4?a:v.set):(e,t)=>e[n]=t)),s=(0,r[y])(d?d<4?p?a:v[h]:d>4?void 0:{get:v.get,set:v.set}:i,l),c._=1,d^4||s===void 0?yl(s)&&(d>4?g.unshift(s):d?p?a=s:v[h]=s:i=s):typeof s!=`object`||!s?dl(`Object expected`):(yl(o=s.get)&&(v.get=o),yl(o=s.set)&&(v.set=o),yl(o=s.init)&&g.unshift(o));return d||xl(e,i),v&&rl(i,n,v),p?d^4?a:v:i},Sl=(e,t,n)=>t.has(e)||dl(`Cannot `+n),Cl=(e,t)=>Object(t)===t?e.has(t):dl(`Cannot use the "in" operator on this value`),W=(e,t,n)=>(Sl(e,t,`read from private field`),n?n.call(e):t.get(e)),G=(e,t,n)=>t.has(e)?dl(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),wl=(e,t,n,r)=>(Sl(e,t,`write to private field`),r?r.call(e,n):t.set(e,n),n),Tl=(e,t,n)=>(Sl(e,t,`access private method`),n),El=[B],Al=class{constructor(e,t){this.manager=e,this.options=t,G(this,Ol,H(Dl,8,this,!1)),H(Dl,11,this),G(this,kl,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return R(()=>this.disabled)}configure(e){this.options=e}registerEffect(e){let t=ts(e.bind(this));return W(this,kl).add(t),t}destroy(){W(this,kl).forEach(e=>e())}static configure(e){return Xc(this,e)}},Dl=_l(null),Ol=new WeakMap,kl=new WeakMap,U(Dl,4,`disabled`,El,Al,Ol),xl(Dl,Al),jl=class extends Al{},Nl=class{constructor(e){this.manager=e,this.instances=new Map,G(this,Ml,[])}get values(){return Array.from(this.instances.values())}set values(e){let t=e.map(Qc).reduceRight((e,t)=>e.some(({plugin:e})=>e===t.plugin)?e:[t,...e],[]),n=t.map(({plugin:e})=>e);for(let e of W(this,Ml))if(!n.includes(e)){if(e.prototype instanceof jl)continue;this.unregister(e)}for(let{plugin:e,options:n}of t)this.register(e,n);wl(this,Ml,n)}get(e){return this.instances.get(e)}register(e,t){let n=this.instances.get(e);if(n)return n.options!==t&&(n.options=t),n;let r=new e(this.manager,t);return this.instances.set(e,r),r}unregister(e){let t=this.instances.get(e);t&&(t.destroy(),this.instances.delete(e))}destroy(){for(let e of this.instances.values())e.destroy();this.instances.clear()}},Ml=new WeakMap,Pl=[],Ll=class extends Al{constructor(e){super(e),G(this,Fl),G(this,Il),this.computeCollisions=this.computeCollisions.bind(this),wl(this,Il,Go(Pl)),this.destroy=hs(()=>{let e=this.computeCollisions(),t=R(()=>this.manager.dragOperation.position.current);if(e!==Pl){let e=W(this,Fl);if(wl(this,Fl,t),e&&t.x==e.x&&t.y==e.y)return}else wl(this,Fl,void 0);W(this,Il).value=e},()=>{let{dragOperation:e}=this.manager;e.status.initialized&&this.forceUpdate()})}forceUpdate(e=!0){R(()=>{e?W(this,Il).value=this.computeCollisions():wl(this,Fl,void 0)})}computeCollisions(e,t){let{registry:n,dragOperation:r}=this.manager,{source:i,shape:a,status:o}=r;if(!o.initialized||!a)return Pl;let s=[],c=[];for(let a of e??n.droppables){if(a.disabled||i&&!a.accepts(i))continue;let e=t??a.collisionDetector;if(!e)continue;c.push(a),a.shape;let n=R(()=>e({droppable:a,dragOperation:r}));n&&(a.collisionPriority!=null&&(n.priority=a.collisionPriority),s.push(n))}return c.length===0?Pl:(s.sort($c),s)}get collisions(){return W(this,Il).value}},Fl=new WeakMap,Il=new WeakMap,Rl=class{constructor(){this.registry=new Map}addEventListener(e,t){let{registry:n}=this,r=new Set(n.get(e));return r.add(t),n.set(e,r),()=>this.removeEventListener(e,t)}removeEventListener(e,t){let{registry:n}=this,r=new Set(n.get(e));r.delete(t),n.set(e,r)}
2dispatch(e,...t){let{registry:n}=this,r=n.get(e);if(r)for(let e of r)e(...t)}},zl=class extends Rl{constructor(e){super(),this.manager=e}dispatch(e,t){let n=[t,this.manager];super.dispatch(e,...n)}},Bl=class extends jl{constructor(e){super(e);let t=(e,t)=>e.map(({id:e})=>e).join(``)===t.map(({id:e})=>e).join(``),n=[];this.destroy=hs(()=>{let{dragOperation:t,collisionObserver:r}=e;t.status.initializing&&(n=[],r.enable())},()=>{let{collisionObserver:r,monitor:i}=e,{collisions:a}=r;if(r.isDisabled())return;let o=el({collisions:a});if(i.dispatch(`collision`,o),o.defaultPrevented||t(a,n))return;n=a;let[s]=a;R(()=>{s?.id!==e.dragOperation.target?.id&&(r.disable(),e.actions.setDropTarget(s?.id).then(()=>{r.enable()}))})})}},Vl=(e=>(e[e.Lowest=0]=`Lowest`,e[e.Low=1]=`Low`,e[e.Normal=2]=`Normal`,e[e.High=3]=`High`,e[e.Highest=4]=`Highest`,e))(Vl||{}),Hl=(e=>(e[e.Collision=0]=`Collision`,e[e.ShapeIntersection=1]=`ShapeIntersection`,e[e.PointerIntersection=2]=`PointerIntersection`,e))(Hl||{}),Yl=[B],Jl=[V],ql=[V],Kl=[V],Gl=[V],Wl=[V],Ul=[V],Ql=class{constructor(){H(Xl,5,this),G(this,Zl,H(Xl,8,this,`idle`)),H(Xl,11,this)}get current(){return this.value}get idle(){return this.value===`idle`}get initializing(){return this.value===`initializing`}get initialized(){let{value:e}=this;return e!==`idle`&&e!==`initialization-pending`}get dragging(){return this.value===`dragging`}get dropped(){return this.value===`dropped`}set(e){this.value=e}},Xl=_l(null),Zl=new WeakMap,U(Xl,4,`value`,Yl,Ql,Zl),U(Xl,2,`current`,Jl,Ql),U(Xl,2,`idle`,ql,Ql),U(Xl,2,`initializing`,Kl,Ql),U(Xl,2,`initialized`,Gl,Ql),U(Xl,2,`dragging`,Wl,Ql),U(Xl,2,`dropped`,Ul,Ql),xl(Xl,Ql),$l=class{constructor(e){this.manager=e}setDragSource(e){let{dragOperation:t}=this.manager;t.sourceIdentifier=typeof e==`string`||typeof e==`number`?e:e.id}setDropTarget(e){return R(()=>{let{dragOperation:t}=this.manager,n=e??null;if(t.targetIdentifier===n)return Promise.resolve(!1);t.targetIdentifier=n;let r=el({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch(`dragover`,r),this.manager.renderer.rendering.then(()=>r.defaultPrevented)})}start(e){return R(()=>{let{dragOperation:t}=this.manager;if(e.source!=null&&this.setDragSource(e.source),!t.source)throw Error(`Cannot start a drag operation without a drag source`);if(!t.status.idle)throw Error(`Cannot start a drag operation while another is active`);let n=new AbortController,{event:r,coordinates:i}=e;Ho(()=>{t.status.set(`initialization-pending`),t.shape=null,t.canceled=!1,t.activatorEvent=r??null,t.position.reset(i)});let a=el({operation:t.snapshot()});return this.manager.monitor.dispatch(`beforedragstart`,a),a.defaultPrevented?(t.reset(),n.abort(),n):(t.status.set(`initializing`),t.controller=n,this.manager.renderer.rendering.then(()=>{if(n.signal.aborted)return;let{status:e}=t;e.current===`initializing`&&(t.status.set(`dragging`),this.manager.monitor.dispatch(`dragstart`,{nativeEvent:r,operation:t.snapshot(),cancelable:!1}))}),n)})}move(e){return R(()=>{let{dragOperation:t}=this.manager,{status:n,controller:r}=t;if(!n.dragging||!r||r.signal.aborted)return;let i=el({nativeEvent:e.event,operation:t.snapshot(),by:e.by,to:e.to},e.cancelable??!0);(e.propagate??!0)&&this.manager.monitor.dispatch(`dragmove`,i),queueMicrotask(()=>{if(i.defaultPrevented)return;let n=e.to??{x:t.position.current.x+(e.by?.x??0),y:t.position.current.y+(e.by?.y??0)};t.position.current=n})})}stop(e={}){return R(()=>{let{dragOperation:t}=this.manager,{controller:n}=t;if(!n||n.signal.aborted)return;let r,i=()=>{let e={resume:()=>{},abort:()=>{}};return r=new Promise((t,n)=>{e.resume=t,e.abort=n}),e};n.abort();let a=()=>{this.manager.renderer.rendering.then(()=>{t.status.set(`dropped`);let e=R(()=>t.source?.status===`dropping`),r=()=>{t.controller===n&&(t.controller=void 0),t.reset()};if(e){let{source:e}=t,n=ts(()=>{e?.status===`idle`&&(n(),r())})}else this.manager.renderer.rendering.then(r)})};t.canceled=e.canceled??!1,this.manager.monitor.dispatch(`dragend`,{nativeEvent:e.event,operation:t.snapshot(),canceled:e.canceled??!1,suspend:i}),r?r.then(a).catch(()=>t.reset()):a()})}},ru=[B],nu=[B],tu=[B],eu=[B],lu=class{constructor(e,t){G(this,au,H(iu,8,this)),H(iu,11,this),G(this,ou,H(iu,12,this)),H(iu,15,this),G(this,su,H(iu,16,this)),H(iu,19,this),G(this,cu,H(iu,20,this)),H(iu,23,this);let{effects:n,id:r,data:i={},disabled:a=!1,register:o=!0}=e,s=r;this.manager=t,this.id=r,this.data=i,this.disabled=a,this.effects=()=>[()=>{let{id:e,manager:t}=this;if(e!==s)return t?.registry.register(this),()=>t?.registry.unregister(this)},...n?.()??[]],this.register=this.register.bind(this),this.unregister=this.unregister.bind(this),this.destroy=this.destroy.bind(this),t&&o&&queueMicrotask(this.register)}register(){return this.manager?.registry.register(this)}unregister(){var e;(e=this.manager)==null||e.registry.unregister(this)}destroy(){var e;(e=this.manager)==null||e.registry.unregister(this)}},iu=_l(null),au=new WeakMap,ou=new WeakMap,su=new WeakMap,cu=new WeakMap,U(iu,4,`manager`,ru,lu,au),U(iu,4,`id`,nu,lu,ou),U(iu,4,`data`,tu,lu,su),U(iu,4,`disabled`,eu,lu,cu),xl(iu,lu),uu=class{constructor(){this.map=Go(new Map),this.cleanupFunctions=new WeakMap,this.register=(e,t)=>{let n=this.map.peek(),r=n.get(e),i=()=>this.unregister(e,t);if(r===t)return i;r&&(this.cleanupFunctions.get(r)?.(),this.cleanupFunctions.delete(r));let a=new Map(n);a.set(e,t),this.map.value=a;let o=hs(...t.effects());return this.cleanupFunctions.set(t,o),i},this.unregister=(e,t)=>{let n=this.map.peek();if(n.get(e)!==t)return;this.cleanupFunctions.get(t)?.(),this.cleanupFunctions.delete(t);let r=new Map(n);r.delete(e),this.map.value=r}}[Symbol.iterator](){return this.map.peek().values()}get value(){return this.map.value.values()}has(e){return this.map.value.has(e)}get(e){return this.map.value.get(e)}destroy(){for(let e of this)this.cleanupFunctions.get(e)?.(),e.destroy();this.map.value=new Map}},Su=class extends (_u=lu,gu=[B],hu=[B],mu=[B],pu=[V],fu=[V],du=[V],_u){constructor(e,t){var n=e,{modifiers:r,type:i,sensors:a}=n,o=gl(n,[`modifiers`,`type`,`sensors`]);super(o,t),H(vu,5,this),G(this,yu,H(vu,8,this)),H(vu,11,this),G(this,bu,H(vu,12,this)),H(vu,15,this),G(this,xu,H(vu,16,this,this.isDragSource?`dragging`:`idle`)),H(vu,19,this),this.type=i,this.sensors=a,this.modifiers=r,this.alignment=o.alignment}get isDropping(){return this.status===`dropping`&&this.isDragSource}get isDragging(){return this.status===`dragging`&&this.isDragSource}get isDragSource(){return this.manager?.dragOperation.source?.id===this.id}},vu=_l(_u),yu=new WeakMap,bu=new WeakMap,xu=new WeakMap,U(vu,4,`type`,gu,Su,yu),U(vu,4,`modifiers`,hu,Su,bu),U(vu,4,`status`,mu,Su,xu),U(vu,2,`isDropping`,pu,Su),U(vu,2,`isDragging`,fu,Su),U(vu,2,`isDragSource`,du,Su),xl(vu,Su),Fu=class extends (ku=lu,Ou=[B],Du=[B],Eu=[B],Tu=[B],wu=[B],Cu=[V],ku){constructor(e,t){var n=e,{accept:r,collisionDetector:i,collisionPriority:a,type:o}=n,s=gl(n,[`accept`,`collisionDetector`,`collisionPriority`,`type`]);super(s,t),H(K,5,this),G(this,Au,H(K,8,this)),H(K,11,this),G(this,ju,H(K,12,this)),H(K,15,this),G(this,Mu,H(K,16,this)),H(K,19,this),G(this,Nu,H(K,20,this)),H(K,23,this),G(this,Pu,H(K,24,this)),H(K,27,this),this.accept=r,this.collisionDetector=i,this.collisionPriority=a,this.type=o}accepts(e){let{accept:t}=this;return t?typeof t==`function`?t(e):e.type?Array.isArray(t)?t.includes(e.type):e.type===t:!1:!0}get isDropTarget(){return this.manager?.dragOperation.target?.id===this.id}},K=_l(ku),Au=new WeakMap,ju=new WeakMap,Mu=new WeakMap,Nu=new WeakMap,Pu=new WeakMap,U(K,4,`accept`,Ou,Fu,Au),U(K,4,`t
2ype`,Du,Fu,ju),U(K,4,`collisionDetector`,Eu,Fu,Mu),U(K,4,`collisionPriority`,Tu,Fu,Nu),U(K,4,`shape`,wu,Fu,Pu),U(K,2,`isDropTarget`,Cu,Fu),xl(K,Fu),Iu=class extends Al{constructor(e,t){super(e,t),this.manager=e,this.options=t}},Lu=class extends AbortController{constructor(e,t){super(),this.constraints=e,this.onActivate=t,this.activated=!1;for(let t of e??[])t.controller=this}onEvent(e){if(!this.activated)if(this.constraints?.length)for(let t of this.constraints)t.onEvent(e);else this.activate(e)}activate(e){this.activated||(this.activated=!0,this.onActivate(e))}abort(e){this.activated=!1,super.abort(e)}},zu=class{constructor(e){this.options=e,G(this,Ru)}set controller(e){wl(this,Ru,e),e.signal.addEventListener(`abort`,()=>this.abort())}activate(e){var t;(t=W(this,Ru))==null||t.activate(e)}},Ru=new WeakMap,Bu=class extends Al{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},Vu=class{constructor(e){this.draggables=new uu,this.droppables=new uu,this.plugins=new Nl(e),this.sensors=new Nl(e),this.modifiers=new Nl(e)}register(e,t){if(e instanceof Su)return this.draggables.register(e.id,e);if(e instanceof Fu)return this.droppables.register(e.id,e);if(e.prototype instanceof Bu)return this.modifiers.register(e,t);if(e.prototype instanceof Iu)return this.sensors.register(e,t);if(e.prototype instanceof Al)return this.plugins.register(e,t);throw Error(`Invalid instance type`)}unregister(e){if(e instanceof lu)return e instanceof Su?this.draggables.unregister(e.id,e):e instanceof Fu?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof Bu)return this.modifiers.unregister(e);if(e.prototype instanceof Iu)return this.sensors.unregister(e);if(e.prototype instanceof Al)return this.plugins.unregister(e);throw Error(`Invalid instance type`)}destroy(){this.draggables.destroy(),this.droppables.destroy(),this.plugins.destroy(),this.sensors.destroy(),this.modifiers.destroy()}},Xu=[V],Yu=[B],Ju=[B],qu=[B],Ku=[B],Gu=[B],Wu=[V],Uu=[V],Hu=[V],od=class{constructor(e){H(q,5,this),G(this,Zu),G(this,Qu),G(this,$u,new uc(void 0,(e,t)=>e&&t?e.equals(t):e===t)),this.status=new Ql,G(this,ed,H(q,8,this,!1)),H(q,11,this),G(this,td,H(q,12,this,null)),H(q,15,this),G(this,nd,H(q,16,this,null)),H(q,19,this),G(this,rd,H(q,20,this,null)),H(q,23,this),G(this,id,H(q,24,this,[])),H(q,27,this),this.position=new Kc({x:0,y:0}),G(this,ad,{x:0,y:0}),wl(this,Zu,e)}get shape(){let{current:e,initial:t,previous:n}=W(this,$u);return!e||!t?null:{current:e,initial:t,previous:n}}set shape(e){e?W(this,$u).current=e:W(this,$u).reset()}get source(){let e=this.sourceIdentifier;if(e==null)return null;let t=W(this,Zu).registry.draggables.get(e);return t&&wl(this,Qu,t),t??W(this,Qu)??null}get target(){let e=this.targetIdentifier;return e==null?null:W(this,Zu).registry.droppables.get(e)??null}get transform(){let{x:e,y:t}=this.position.delta,n={x:e,y:t};for(let e of this.modifiers)n=e.apply(ml(pl({},this.snapshot()),{transform:n}));return wl(this,ad,n),n}snapshot(){return R(()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:W(this,ad),shape:this.shape?gs(this.shape):null,position:gs(this.position),status:gs(this.status),canceled:this.canceled}))}reset(){Ho(()=>{this.status.set(`idle`),this.sourceIdentifier=null,this.targetIdentifier=null,W(this,$u).reset(),this.position.reset({x:0,y:0}),wl(this,ad,{x:0,y:0}),this.modifiers=[]})}},q=_l(null),Zu=new WeakMap,Qu=new WeakMap,$u=new WeakMap,ed=new WeakMap,td=new WeakMap,nd=new WeakMap,rd=new WeakMap,id=new WeakMap,ad=new WeakMap,U(q,2,`shape`,Xu,od),U(q,4,`canceled`,Yu,od,ed),U(q,4,`activatorEvent`,Ju,od,td),U(q,4,`sourceIdentifier`,qu,od,nd),U(q,4,`targetIdentifier`,Ku,od,rd),U(q,4,`modifiers`,Gu,od,id),U(q,2,`source`,Wu,od),U(q,2,`target`,Uu,od),U(q,2,`transform`,Hu,od),xl(q,od),sd={get rendering(){return Promise.resolve()}},cd=class{constructor(e){this.destroy=()=>{this.dragOperation.status.idle||this.actions.stop({canceled:!0}),this.dragOperation.modifiers.forEach(e=>e.destroy()),this.registry.destroy(),this.collisionObserver.destroy()};let t=e??{},n=tl(t.plugins,[]),r=tl(t.sensors,[]),i=tl(t.modifiers,[]),a=t.renderer??sd,o=new zl(this),s=new Vu(this);this.registry=s,this.monitor=o,this.renderer=a,this.actions=new $l(this),this.dragOperation=new od(this),this.collisionObserver=new Ll(this),this.plugins=[Bl,...n],this.modifiers=i,this.sensors=r;let{destroy:c}=this,l=hs(()=>{let e=R(()=>this.dragOperation.modifiers),t=this.modifiers;for(let n of e)t.includes(n)||n.destroy();this.dragOperation.modifiers=(this.dragOperation.source?.modifiers)?.map(e=>{let{plugin:t,options:n}=Qc(e);return new t(this,n)})??t});this.destroy=()=>{l(),c()}}get plugins(){return this.registry.plugins.values}set plugins(e){this.registry.plugins.values=e}get modifiers(){return this.registry.modifiers.values}set modifiers(e){this.registry.modifiers.values=e}get sensors(){return this.registry.sensors.values}set sensors(e){this.registry.sensors.values=e}}}
2)),ud,dd,fd,pd=t((()=>{ld(),Yc(),ud=({dragOperation:e,droppable:t})=>{let n=e.position.current;if(!n)return null;let{id:r}=t;return t.shape&&t.shape.containsPoint(n)?{id:r,value:1/zc.distance(t.shape.center,n),type:Hl.PointerIntersection,priority:Vl.High}:null},dd=({dragOperation:e,droppable:t})=>{let{shape:n}=e;if(!t.shape||!n?.current)return null;let r=n.current.intersectionArea(t.shape);if(r){let{position:i}=e,a=zc.distance(t.shape.center,i.current),o=r/(n.current.area+t.shape.area-r)/a;return{id:t.id,value:o,type:Hl.ShapeIntersection,priority:Vl.Normal}}return null},fd=e=>ud(e)??dd(e)}));function md(e){return e?e instanceof KeyframeEffect?!0:`getKeyframes`in e&&typeof e.getKeyframes==`function`:!1}function hd(e,t){let n=e.getAnimations();if(n.length>0)for(let e of n){if(e.playState!==`running`)continue;let{effect:n}=e,r=(md(n)?n.getKeyframes():[]).filter(t);if(r.length>0)return[r[r.length-1],e]}return null}function gd(e){let{width:t,height:n,top:r,left:i,bottom:a,right:o}=e.getBoundingClientRect();return{width:t,height:n,top:r,left:i,bottom:a,right:o}}function _d(e){let t=Object.prototype.toString.call(e);return t===`[object Window]`||t===`[object global]`}function vd(e){return`nodeType`in e}function yd(e){return e?_d(e)?e:vd(e)?`defaultView`in e?e.defaultView??window:e.ownerDocument?.defaultView??window:window:window}function bd(e){let{Document:t}=yd(e);return e instanceof t||`nodeType`in e&&e.nodeType===Node.DOCUMENT_NODE}function xd(e){return!e||_d(e)?!1:e instanceof yd(e).HTMLElement||`namespaceURI`in e&&typeof e.namespaceURI==`string`&&e.namespaceURI.endsWith(`html`)}function Sd(e){return e instanceof yd(e).SVGElement||`namespaceURI`in e&&typeof e.namespaceURI==`string`&&e.namespaceURI.endsWith(`svg`)}function Cd(e){return e?_d(e)?e.document:vd(e)?bd(e)?e:xd(e)||Sd(e)?e.ownerDocument:document:document:document}function wd(e){let{documentElement:t}=Cd(e),n=yd(e).visualViewport,r=n?.width??t.clientWidth,i=n?.height??t.clientHeight,a=n?.offsetTop??0,o=n?.offsetLeft??0;return{top:a,left:o,right:o+r,bottom:a+i,width:r,height:i}}function Td(e,t){if(Ed(e)&&e.open===!1)return!1;let{overflow:n,overflowX:r,overflowY:i}=getComputedStyle(e);return n===`visible`&&r===`visible`&&i===`visible`}function Ed(e){return e.tagName===`DETAILS`}function Dd(e,t=e.getBoundingClientRect(),n=0){let r=t,{ownerDocument:i}=e,a=i.defaultView??window,o=e.parentElement;for(;o&&o!==i.documentElement;){if(!Td(o)){let e=o.getBoundingClientRect(),t=n*(e.bottom-e.top),i=n*(e.right-e.left),a=n*(e.bottom-e.top),s=n*(e.right-e.left);r={top:Math.max(r.top,e.top-t),right:Math.min(r.right,e.right+i),bottom:Math.min(r.bottom,e.bottom+a),left:Math.max(r.left,e.left-s),width:0,height:0},r.width=r.right-r.left,r.height=r.bottom-r.top}o=o.parentElement}let s=a.visualViewport,c=s?.offsetTop??0,l=s?.offsetLeft??0,u=s?.width??a.innerWidth,d=s?.height??a.innerHeight,f=n*d,p=n*u;return r={top:Math.max(r.top,c-f),right:Math.min(r.right,l+u+p),bottom:Math.min(r.bottom,c+d+f),left:Math.max(r.left,l-p),width:0,height:0},r.width=r.right-r.left,r.height=r.bottom-r.top,r.width<0&&(r.width=0),r.height<0&&(r.height=0),r}function Od(e){return{x:e.clientX,y:e.clientY}}function kd(e=document,t=new Set){if(t.has(e))return[];t.add(e);let n=[e];for(let r of Array.from(e.querySelectorAll(`iframe, frame`)))try{let e=r.contentDocument;e&&!t.has(e)&&n.push(...kd(e,t))}catch{}try{let r=e.defaultView;if(r&&r!==window.top){let i=r.parent;i&&i.document&&i.document!==e&&n.push(...kd(i.document,t))}}catch{}return n}function Ad(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function jd(){let e=Ad()?window.visualViewport:null;return{x:e?.offsetLeft??0,y:e?.offsetTop??0}}function Md(e){return!e||!vd(e)?!1:e instanceof yd(e).ShadowRoot}function Nd(e){if(e&&vd(e)){let t=e.getRootNode();if(Md(t)||t instanceof Document)return t}return Cd(e)}function Pd(e){return e.matchMedia(`(prefers-reduced-motion: reduce)`).matches}function Fd(e){let t=`input, textarea, select, canvas, [contenteditable]`,n=e.cloneNode(!0),r=Array.from(e.querySelectorAll(t));
2return Array.from(n.querySelectorAll(t)).forEach((e,t)=>{let n=r[t];Id(e)&&Id(n)&&(e.type!==`file`&&(e.value=n.value),e.type===`radio`&&e.name&&(e.name=`Cloned__${e.name}`)),Ld(e)&&Ld(n)&&n.width>0&&n.height>0&&e.getContext(`2d`)?.drawImage(n,0,0)}),n}function Id(e){return`value`in e}function Ld(e){return e.tagName===`CANVAS`}function Rd(e,{x:t,y:n}){let r=e.elementFromPoint(t,n);if(zd(r)){let{contentDocument:e}=r;if(e){let{left:i,top:a}=r.getBoundingClientRect();return Rd(e,{x:t-i,y:n-a})}}return r}function zd(e){return e?.tagName===`IFRAME`}function Bd(e){return!!e.closest(`
3      input:not([disabled]),
4      select:not([disabled]),
5      textarea:not([disabled]),
6      button:not([disabled]),
7      a[href],
8      [contenteditable]:not([contenteditable="false"])
9    `)}function Vd(e){let t=e?.ownerDocument.defaultView;if(t&&t.self!==t.parent)return t.frameElement}function Hd(e){let t=new Set,n=Vd(e);for(;n;)t.add(n),n=Vd(n);return t}function Ud(e,t){let n=setTimeout(e,t);return()=>clearTimeout(n)}function Wd(e,t){let n=()=>performance.now(),r,i;return function(...a){let o=this;i?(r?.(),r=Ud(()=>{e.apply(o,a),i=n()},t-(n()-i))):(e.apply(o,a),i=n())}}function Gd(e,t){return e===t?!0:!e||!t?!1:e.top==t.top&&e.left==t.left&&e.right==t.right&&e.bottom==t.bottom}function Kd(e,t=e.getBoundingClientRect()){let{width:n,height:r}=Dd(e,t);return n>0&&r>0}function qd(e,t){let n=tp.get(e);return n||={disconnect:new ep(e,t=>{let n=tp.get(e);n&&n.callbacks.forEach(e=>e(t))},{skipInitial:!0}).disconnect,callbacks:new Set},n.callbacks.add(t),tp.set(e,n),()=>{n.callbacks.delete(t),n.callbacks.size===0&&(tp.delete(e),n.disconnect())}}function Jd(e,t){let n=new Set;for(let r of e){let e=qd(r,t);n.add(e)}return()=>n.forEach(e=>e())}function Yd(e,t){let n=e.ownerDocument;if(!np.has(n)){let e=new AbortController,t=new Set;document.addEventListener(`scroll`,e=>t.forEach(t=>t(e)),{capture:!0,passive:!0,signal:e.signal}),np.set(n,{disconnect:()=>e.abort(),listeners:t})}let{listeners:r,disconnect:i}=np.get(n)??{};return!r||!i?()=>{}:(r.add(t),()=>{r.delete(t),r.size===0&&(i(),np.delete(n))})}function Xd(e){return`showPopover`in e&&`hidePopover`in e&&typeof e.showPopover==`function`&&typeof e.hidePopover==`function`}function Zd(e){try{Xd(e)&&e.isConnected&&e.hasAttribute(`popover`)&&!e.matches(`:popover-open`)&&e.showPopover()}catch{}}function Qd(e){return!Ff||!e?!1:e===Cd(e).scrollingElement}function $d(e){let t=yd(e),n=Qd(e)?wd(e):gd(e),r=t.visualViewport,i=Qd(e)?{height:r?.height??t.innerHeight,width:r?.width??t.innerWidth}:{height:e.clientHeight,width:e.clientWidth},a={current:{x:e.scrollLeft,y:e.scrollTop},max:{x:e.scrollWidth-i.width,y:e.scrollHeight-i.height}};return{rect:n,position:a,isTop:a.current.y<=0,isLeft:a.current.x<=0,isBottom:a.current.y>=a.max.y,isRight:a.current.x>=a.max.x}}function ef(e,t){let{isTop:n,isBottom:r,isLeft:i,isRight:a,position:o}=$d(e),{x:s,y:c}=t??{x:0,y:0},l=!n&&o.current.y+c>0,u=!r&&o.current.y+c<o.max.y,d=!i&&o.current.x+s>0,f=!a&&o.current.x+s<o.max.x;return{top:l,bottom:u,left:d,right:f,x:d||f,y:l||u}}function tf(e,t=!1){if(!t)return nf(e);let n=dp.get(e);return n||(n=nf(e),dp.set(e,n),up.schedule(fp),n)}function nf(e){return yd(e).getComputedStyle(e)}function rf(e,t=tf(e,!0)){return t.position===`fixed`||t.position===`sticky`}function af(e,t=tf(e,!0)){let n=/(auto|scroll|overlay)/;return[`overflow`,`overflowX`,`overflowY`].some(e=>{let r=t[e];return typeof r==`string`?n.test(r):!1})}function of(e,t=pp){let{limit:n,excludeElement:r,escapeShadowDOM:i}=t,a=new Set;function o(t){if(n!=null&&a.size>=n||!t)return a;
9if(bd(t)&&t.scrollingElement!=null&&!a.has(t.scrollingElement))return a.add(t.scrollingElement),a;if(i&&Md(t))return o(t.host);if(!xd(t))return Sd(t)?o(t.parentElement):a;if(a.has(t))return a;let s=tf(t,!0);if(r&&t===e||af(t,s)&&a.add(t),rf(t,s)){let{scrollingElement:e}=t.ownerDocument;return e&&a.add(e),a}return o(t.parentNode)}return e?o(e):a}function sf(e){let[t]=of(e,{limit:1});return t??null}function cf(e,t=window.frameElement){let n={x:0,y:0,scaleX:1,scaleY:1};if(!e)return n;let r=Vd(e);for(;r;){if(r===t)return n;let e=gd(r),{x:i,y:a}=lf(r,e);n.x+=e.left,n.y+=e.top,n.scaleX*=i,n.scaleY*=a,r=Vd(r)}return n}function lf(e,t=gd(e)){let n=Math.round(t.width),r=Math.round(t.height);if(xd(e))return{x:n/e.offsetWidth,y:r/e.offsetHeight};let i=tf(e,!0);return{x:(parseFloat(i.width)||n)/n,y:(parseFloat(i.height)||r)/r}}function uf(e){if(e===`none`)return null;let t=e.split(` `),n=parseFloat(t[0]),r=parseFloat(t[1]);return isNaN(n)&&isNaN(r)?null:{x:isNaN(n)?r:n,y:isNaN(r)?n:r}}function df(e){if(e===`none`)return null;let[t,n,r=`0`]=e.split(` `),i={x:parseFloat(t),y:parseFloat(n),z:parseInt(r,10)};return isNaN(i.x)&&isNaN(i.y)?null:{x:isNaN(i.x)?0:i.x,y:isNaN(i.y)?0:i.y,z:isNaN(i.z)?0:i.z}}function ff(e){let{scale:t,transform:n,translate:r}=e,i=uf(t),a=df(r),o=pf(n);if(!o&&!i&&!a)return null;let s={x:i?.x??1,y:i?.y??1},c={x:a?.x??0,y:a?.y??0},l={x:o?.x??0,y:o?.y??0,scaleX:o?.scaleX??1,scaleY:o?.scaleY??1};return{x:c.x+l.x,y:c.y+l.y,z:a?.z??0,scaleX:s.x*l.scaleX,scaleY:s.y*l.scaleY}}function pf(e){if(e.startsWith(`matrix3d(`)){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith(`matrix(`)){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function mf(e,t,n,r=25,i=hp,a=gp){let{x:o,y:s}=t,{rect:c,isTop:l,isBottom:u,isLeft:d,isRight:f}=$d(e),p=cf(e),m=ff(tf(e,!0)),h=m===null?!1:m?.scaleX<0,g=m===null?!1:m?.scaleY<0,_=new Bc(c.left*p.scaleX+p.x,c.top*p.scaleY+p.y,c.width*p.scaleX,c.height*p.scaleY),v={x:0,y:0},y={x:0,y:0},b={height:_.height*i.y,width:_.width*i.x};return(!l||g&&!u)&&s<=_.top+b.height&&n?.y!==1&&o>=_.left-a.x&&o<=_.right+a.x?(v.y=g?1:-1,y.y=r*Math.abs((_.top+b.height-s)/b.height)):(!u||g&&!l)&&s>=_.bottom-b.height&&n?.y!==-1&&o>=_.left-a.x&&o<=_.right+a.x&&(v.y=g?-1:1,y.y=r*Math.abs((_.bottom-b.height-s)/b.height)),(!f||h&&!d)&&o>=_.right-b.width&&n?.x!==-1&&s>=_.top-a.y&&s<=_.bottom+a.y?(v.x=h?-1:1,y.x=r*Math.abs((_.right-b.width-o)/b.width)):(!d||h&&!f)&&o<=_.left+b.width&&n?.x!==1&&s>=_.top-a.y&&s<=_.bottom+a.y&&(v.x=h?1:-1,y.x=r*Math.abs((_.left+b.width-o)/b.width)),{direction:v,speed:y}}function hf(e){return`scrollIntoViewIfNeeded`in e&&typeof e.scrollIntoViewIfNeeded==`function`}function gf(e,t=!1){if(hf(e)){e.scrollIntoViewIfNeeded(t);return}if(!xd(e))return e.scrollIntoView();var n=sf(e);if(!xd(n))return;let r=tf(n,!0),i=parseInt(r.getPropertyValue(`border-top-width`)),a=parseInt(r.getPropertyValue(`border-left-width`)),o=e.offsetTop-n.offsetTop<n.scrollTop,s=e.offsetTop-n.offsetTop+e.clientHeight-i>n.scrollTop+n.clientHeight,c=e.offsetLeft-n.offsetLeft<n.scrollLeft,l=e.offsetLeft-n.offsetLeft+e.clientWidth-a>n.scrollLeft+n.clientWidth,u=o&&!s;(o||s)&&t&&(n.scrollTop=e.offsetTop-n.offsetTop-n.clientHeight/2-i+e.clientHeight/2),(c||l)&&t&&(n.scrollLeft=e.offsetLeft-n.offsetLeft-n.clientWidth/2-a+e.clientWidth/2),(o||s||c||l)&&!t&&e.scrollIntoView(u)}function _f(e,t,n){let{scaleX:r,scaleY:i,x:a,y:o}=t,s=e.left+a+(1-r)*parseFloat(n),c=e.top+o+(1-i)*parseFloat(n.slice(n.indexOf(` `)+1)),l=r?e.width*r:e.width,u=i?e.height*i:e.height;return{width:l,height:u,top:c,right:s+l,bottom:c+u,left:s}}function vf(e,t,n){let{scaleX:r,scaleY:i,x:a,y:o}=t,s=e.left-a-(1-r)*parseFloat(n),c=e.top-o-(1-i)*parseFloat(n.slice(n.indexOf(` `)+1)),l=r?e.width/r:e.width,u=i?e.height/i:e.height;return{width:l,height:u,top:c,right:s+l,bottom:c+u,left:s}}function yf({element:e,keyframes:t,options:n}){return e.animate(t,n).finished}function bf(e){let t=e.ownerDocument,n=vp.get(t);if(n)return n;n=t.getAnimations(),vp.set(t,n),_p.schedule(yp);let r=n.filter(t=>md(t.effect)&&t.effect.target===e);return vp.set(e,r),n}function xf(e,t){let n=bf(e).filter(e=>{if(md(e.effect)){let{target:n}=e.effect;if((n&&t.isValidTarget?.call(t,n))??!0)return e.effect.getKeyframes().some(e=>{for(let n of t.properties)if(e[n])return!0})}}).map(e=>{let{effect:t,currentTime:n}=e,r=t?.getComputedTiming().duration;if(!(e.pending||e.playState===`finished`)&&typeof r==`number`&&typeof n==`
9number`&&n<r)return e.currentTime=r,()=>{e.currentTime=n}});if(n.length>0)return()=>n.forEach(e=>e?.())}function Sf(e,t){let n=e.getAnimations(),r=null;if(!n.length)return null;for(let e of n){if(e.playState!==`running`)continue;let n=md(e.effect)?e.effect.getKeyframes():[],i=n[n.length-1];if(!i)continue;let{transform:a,translate:o,scale:s}=i;if(a||o||s){let e=ff({transform:typeof a==`string`&&a?a:t.transform,translate:typeof o==`string`&&o?o:t.translate,scale:typeof s==`string`&&s?s:t.scale});e&&(r=r?{x:r.x+e.x,y:r.y+e.y,z:r.z??e.z,scaleX:r.scaleX*e.scaleX,scaleY:r.scaleY*e.scaleY}:e)}}return r}function Cf(e){return`style`in e&&typeof e.style==`object`&&e.style!==null&&`setProperty`in e.style&&`removeProperty`in e.style&&typeof e.style.setProperty==`function`&&typeof e.style.removeProperty==`function`}function wf(e){return e?e instanceof yd(e).Element||vd(e)&&e.nodeType===Node.ELEMENT_NODE:!1}function Tf(e){if(!e)return!1;let{KeyboardEvent:t}=yd(e.target);return e instanceof t}function Ef(e){if(!e)return!1;let{PointerEvent:t}=yd(e.target);return e instanceof t}function Df(e){if(!wf(e))return!1;let{tagName:t}=e;return t===`INPUT`||t===`TEXTAREA`||Of(e)}function Of(e){return e.hasAttribute(`contenteditable`)&&e.getAttribute(`contenteditable`)!==`false`}function kf(e){let t=Sp[e]==null?0:Sp[e]+1;return Sp[e]=t,`${e}-${t}`}var Af,jf,J,Mf,Nf,Pf,Ff,If,Lf,Rf,zf,Bf,Vf,Hf,Uf,Wf,Gf,Kf,qf,Jf,Yf,Xf,Zf,Qf,$f,ep,tp,np,rp,ip,ap,op,sp,cp,lp,up,dp,fp,pp,mp,hp,gp,_p,vp,yp,bp,xp,Sp,Cp=t((()=>{Yc(),Af=e=>{throw TypeError(e)},jf=(e,t,n)=>t.has(e)||Af(`Cannot `+n),J=(e,t,n)=>(jf(e,t,`read from private field`),t.get(e)),Mf=(e,t,n)=>t.has(e)?Af(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),Nf=(e,t,n,r)=>(jf(e,t,`write to private field`),t.set(e,n),n),Pf=(e,t,n)=>(jf(e,t,`access private method`),n),Ff=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,If=new WeakMap,Lf=class{constructor(){this.entries=new Set,this.clear=()=>{for(let e of this.entries){let[t,{type:n,listener:r,options:i}]=e;t.removeEventListener(n,r,i)}this.entries.clear()}}bind(e,t){let n=Array.isArray(e)?e:[e],r=Array.isArray(t)?t:[t],i=[];for(let e of n)for(let t of r){let{type:n,listener:r,options:a}=t,o=[e,t];e.addEventListener(n,r,a),this.entries.add(o),i.push(o)}return function(){for(let[e,{type:t,listener:n,options:r}]of i)e.removeEventListener(t,n,r)}}},Rf=Ff?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},Bf=class extends Rf{constructor(e){super(t=>{if(!J(this,zf)){Nf(this,zf,!0);return}e(t,this)}),Mf(this,zf,!1)}},zf=new WeakMap,Vf=Array.from({length:100},(e,t)=>t/100),Hf=75,ep=class{constructor(e,t,n={debug:!1,skipInitial:!1}){this.element=e,this.callback=t,Mf(this,Zf),this.disconnect=()=>{var e,t,n;Nf(this,Yf,!0),(e=J(this,Gf))==null||e.disconnect(),(t=J(this,Kf))==null||t.disconnect(),J(this,qf).disconnect(),(n=J(this,Jf))==null||n.remove()},Mf(this,Uf,!0),Mf(this,Wf),Mf(this,Gf),Mf(this,Kf),Mf(this,qf),Mf(this,Jf),Mf(this,Yf,!1),Mf(this,Xf,Wd(()=>{var e;let{element:t}=this;if((e=J(this,Kf))==null||e.disconnect(),J(this,Yf)||!J(this,Uf)||!t.isConnected)return;let n=t.ownerDocument??document,{innerHeight:r,innerWidth:i}=n.defaultView??window,a=t.getBoundingClientRect(),{top:o,left:s,bottom:c,right:l}=Dd(t,a),u=-Math.floor(o),d=-Math.floor(s),f=`${u}px ${-Math.floor(i-l)}px ${-Math.floor(r-c)}px ${d}px`;this.boundingClientRect=a,Nf(this,Kf,new IntersectionObserver(e=>{let[n]=e,{intersectionRect:r}=n;(n.intersectionRatio===1?Bc.intersectionRatio(r,Dd(t)):n.intersectionRatio)!==1&&J(this,Xf).call(this)},{threshold:Vf,rootMargin:f,root:n})),J(this,Kf).observe(t),Pf(this,Zf,Qf).call(this)},Hf)),this.boundingClientRect=e.getBoundingClientRect(),Nf(this,Uf,Kd(e,this.boundingClientRect));let r=!0;this.callback=e=>{r&&(r=!1,n.skipInitial)||t(e)};let i=e.ownerDocument;n?.debug&&(Nf(this,Jf,document.createElement(`div`)),J(this,Jf).style.background=`rgba(0,0,0,0.15)`,J(this,Jf).style.position=`fixed`,J(this,Jf).style.pointerEvents=`none`,i.body.appendChild(J(this,Jf))),Nf(this,qf,new IntersectionObserver(t=>{var n,r;let{boundingClientRect:i,isIntersecting:a}=t[t.length-1],{width:o,height:s}=i,c=J(this,Uf);Nf(this,Uf,a),!(!o&&!s)&&(c&&!a?((n=J(this,Kf))==null||n.disconnect(),this.callback(null),(r=J(this,Gf))==null||r.disconnect(),Nf(this,Gf,void 0),J(this,Jf)&&(J(this,Jf).style.visibility=`hidden`)):J(this,Xf).call(this),a&&!J(this,Gf)&&(Nf(this,Gf,new Bf(J(this,Xf))),J(this,Gf).observe(e)))},{threshold:Vf,root:i})),J(this,Uf)&&!n.skipInitial&&this.callback(this.boundingClientRect),J(this,qf).observe(e)}},Uf=new WeakMap,Wf=new WeakMap,Gf=new WeakMap,Kf=new WeakMap,qf=new WeakMap,Jf=new WeakMap,Yf=new WeakMap,Xf=ne
9w WeakMap,Zf=new WeakSet,Qf=function(){J(this,Yf)||(Pf(this,Zf,$f).call(this),!Gd(this.boundingClientRect,J(this,Wf))&&(this.callback(this.boundingClientRect),Nf(this,Wf,this.boundingClientRect)))},$f=function(){if(J(this,Jf)){let{top:e,left:t,width:n,height:r}=Dd(this.element);J(this,Jf).style.overflow=`hidden`,J(this,Jf).style.visibility=`visible`,J(this,Jf).style.top=`${Math.floor(e)}px`,J(this,Jf).style.left=`${Math.floor(t)}px`,J(this,Jf).style.width=`${Math.floor(n)}px`,J(this,Jf).style.height=`${Math.floor(r)}px`}},tp=new WeakMap,np=new WeakMap,sp=class{constructor(e,t,n){this.callback=t,Mf(this,rp),Mf(this,ip,!1),Mf(this,ap),Mf(this,op,Wd(e=>{if(!J(this,ip)&&e.target&&`contains`in e.target&&typeof e.target.contains==`function`){for(let t of J(this,ap))if(e.target.contains(t)){this.callback(J(this,rp).boundingClientRect);break}}},Hf));let r=Hd(e),i=Jd(r,t),a=Yd(e,J(this,op));Nf(this,ap,r),Nf(this,rp,new ep(e,t,n)),this.disconnect=()=>{J(this,ip)||(Nf(this,ip,!0),i(),a(),J(this,rp).disconnect())}}},rp=new WeakMap,ip=new WeakMap,ap=new WeakMap,op=new WeakMap,cp=class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{let{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(let t of e)t();for(let e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise(e=>this.resolvers.add(e))}},lp=new cp(e=>{typeof requestAnimationFrame==`function`?requestAnimationFrame(e):e()}),up=new cp(e=>setTimeout(e,50)),dp=new Map,fp=dp.clear.bind(dp),pp={excludeElement:!0,escapeShadowDOM:!0},mp=(e=>(e[e.Idle=0]=`Idle`,e[e.Forward=1]=`Forward`,e[e.Reverse=-1]=`Reverse`,e))(mp||{}),hp={x:.2,y:.2},gp={x:10,y:10},_p=new cp(e=>setTimeout(e,0)),vp=new Map,yp=vp.clear.bind(vp),bp=class extends Bc{constructor(e,t={}){let{frameTransform:n=cf(e),ignoreTransforms:r,getBoundingClientRect:i=gd}=t,a=xf(e,{properties:[`transform`,`translate`,`scale`,`width`,`height`],isValidTarget:t=>(t!==e||Ad())&&t.contains(e)}),o=i(e),{top:s,left:c,width:l,height:u}=o,d,f=tf(e),p=ff(f),m={x:p?.scaleX??1,y:p?.scaleY??1},h=Sf(e,f);a?.(),p&&(d=vf(o,p,f.transformOrigin),(r||h)&&(s=d.top,c=d.left,l=d.width,u=d.height));let g={width:d?.width??l,height:d?.height??u};if(h&&!r&&d){let e=_f(d,h,f.transformOrigin);s=e.top,c=e.left,l=e.width,u=e.height,m.x=h.scaleX,m.y=h.scaleY}n&&(r||(c*=n.scaleX,l*=n.scaleX,s*=n.scaleY,u*=n.scaleY),c+=n.x,s+=n.y),super(c,s,l,u),this.scale=m,this.intrinsicWidth=g.width,this.intrinsicHeight=g.height}},xp=class{constructor(e){this.element=e,this.initial=new Map}set(e,t=``){let{element:n}=this;if(Cf(n))for(let[r,i]of Object.entries(e)){let e=`${t}${r}`;this.initial.has(e)||this.initial.set(e,n.style.getPropertyValue(e)),n.style.setProperty(e,typeof i==`string`?i:`${i}px`)}}remove(e,t=``){let{element:n}=this;if(Cf(n))for(let r of e){let e=`${t}${r}`;n.style.removeProperty(e)}}reset(){let{element:e}=this;if(Cf(e)){for(let[t,n]of this.initial)e.style.setProperty(t,n);e.getAttribute(`style`)===``&&e.removeAttribute(`style`)}}},Sp={}}));function wp(e){let t=e.tagName.toLowerCase();return[`input`,`select`,`textarea`,`a`,`button`].includes(t)}function Tp(e,t){let n=document.createElement(`div`);return n.id=e,n.style.setProperty(`display`,`none`),n.textContent=t,n}function Ep(e){let t=document.createElement(`div`);return t.id=e,t.setAttribute(`role`,`status`),t.setAttribute(`aria-live`,`polite`),t.setAttribute(`aria-atomic`,`true`),t.style.setProperty(`position`,`fixed`),t.style.setProperty(`width`,`1px`),t.style.setProperty(`height`,`1px`),t.style.setProperty(`margin`,`-1px`),t.style.setProperty(`border`,`0`),t.style.setProperty(`padding`,`0`),t.style.setProperty(`overflow`,`hidden`),t.style.setProperty(`clip`,`rect(0 0 0 0)`),t.style.setProperty(`clip-path`,`inset(100%)`),t.style.setProperty(`white-space`,`nowrap`),t}function Dp(e,t){let n,r=()=>{clearTimeout(n),n=setTimeout(e,t)};return r.cancel=()=>clearTimeout(n),r}function Op(e,t=`hidden`){return R(()=>{let{element:n,manager:r}=e;if(!n||!r)return;let i=kp(n,r.registry.droppables),a=[],o=Fd(n),{remove:s}=o;return Ap(i,o,a),jp(o,t),o.remove=()=>
9{a.forEach(e=>e()),s.call(o)},o})}function kp(e,t){let n=new Map;for(let r of t)if(r.element&&(e===r.element||e.contains(r.element))){let e=`${Vm}${kf(`dom-id`)}`;r.element.setAttribute(e,``),n.set(r,e)}return n}function Ap(e,t,n){for(let[r,i]of e){if(!r.element)continue;let e=`[${i}]`,a=t.matches(e)?t:t.querySelector(e);if(r.element.removeAttribute(i),!a)continue;let o=r.element;r.proxy=a,a.removeAttribute(i),If.set(o,a),n.push(()=>{If.delete(o),r.proxy=void 0})}}function jp(e,t=`hidden`){e.setAttribute(`inert`,`true`),e.setAttribute(`tab-index`,`-1`),e.setAttribute(`aria-hidden`,`true`),e.setAttribute(Gm,t)}function Mp(e,t){return e===t?!0:Vd(e)===Vd(t)}function Np(e){let{target:t}=e;`newState`in e&&e.newState===`closed`&&wf(t)&&t.hasAttribute(`popover`)&&requestAnimationFrame(()=>Zd(t))}function Pp(e){return e.tagName===`TR`}function Fp(e,t,n){let r=new MutationObserver(r=>{let i=!1;for(let n of r){if(n.target!==e){i=!0;continue}if(n.type!==`attributes`)continue;let r=n.attributeName;if(r.startsWith(`aria-`)||Km.includes(r))continue;let a=e.getAttribute(r);if(r===`style`){if(Cf(e)&&Cf(t)){let n=e.style;for(let e of Array.from(t.style))n.getPropertyValue(e)===``&&t.style.removeProperty(e);for(let e of Array.from(n)){if(qm.includes(e)||e.startsWith(Um))continue;let r=n.getPropertyValue(e);t.style.setProperty(e,r)}}}else a===null?t.removeAttribute(r):t.setAttribute(r,a)}i&&n&&(t.innerHTML=e.innerHTML)});return r.observe(e,{attributes:!0,subtree:!0,childList:!0}),r}function Ip(e,t,n){let r=new MutationObserver(r=>{for(let i of r)if(i.addedNodes.length!==0)for(let r of Array.from(i.addedNodes)){if(r.contains(e)&&e.nextElementSibling!==t){e.insertAdjacentElement(`afterend`,t),Zd(n);return}if(r.contains(t)&&t.previousElementSibling!==e){t.insertAdjacentElement(`beforebegin`,e),Zd(n);return}}});return r.observe(e.ownerDocument.body,{childList:!0,subtree:!0}),r}function Lp(e){return new ResizeObserver(()=>{var t;let n=new bp(e.placeholder,{frameTransform:e.frameTransform,ignoreTransforms:!0}),r=e.transformOrigin??{x:1,y:1},i=(e.width-n.width)*r.x+e.delta.x,a=(e.height-n.height)*r.y+e.delta.y,o=jd();if(e.styles.set({width:n.width-e.widthOffset,height:n.height-e.heightOffset,top:e.top+a+o.y,left:e.left+i+o.x},Um),(t=e.getElementMutationObserver())==null||t.takeRecords(),Pp(e.element)&&Pp(e.placeholder)){let t=Array.from(e.element.cells),n=Array.from(e.placeholder.cells);e.getSavedCellWidths()||e.setSavedCellWidths(t.map(e=>e.style.width));for(let[e,r]of t.entries()){let t=n[e];r.style.width=`${t.getBoundingClientRect().width}px`}}e.dragOperation.shape=new bp(e.feedbackElement)})}function Rp(e){var t;let{animation:n}=e;if(typeof n==`function`){let t=n({element:e.element,feedbackElement:e.feedbackElement,placeholder:e.placeholder,translate:e.translate,moved:e.moved});Promise.resolve(t).then(()=>{e.cleanup(),requestAnimationFrame(e.restoreFocus)});return}let{duration:r=Ym,easing:i=Xm}=n??{};Zd(e.feedbackElement);let[,a]=hd(e.feedbackElement,e=>`translate`in e)??[];a?.pause();let o=e.placeholder??e.element,s={frameTransform:Mp(e.feedbackElement,o)?null:void 0},c=new bp(e.feedbackElement,s),l=df(tf(e.feedbackElement).translate)??e.translate,u=new bp(o,s),d=Bc.delta(c,u,e.alignment),f={x:l.x-d.x,y:l.y-d.y},p=Math.round(c.intrinsicHeight)===Math.round(u.intrinsicHeight)?{}:{minHeight:[`${c.intrinsicHeight}px`,`${u.intrinsicHeight}px`],maxHeight:[`${c.intrinsicHeight}px`,`${u.intrinsicHeight}px`]},m=Math.round(c.intrinsicWidth)===Math.round(u.intrinsicWidth)?{}:{minWidth:[`${c.intrinsicWidth}px`,`${u.intrinsicWidth}px`],maxWidth:[`${c.intrinsicWidth}px`,`${u.intrinsicWidth}px`]};e.styles.set({transition:e.transition},Um),e.feedbackElement.setAttribute(Hm,``),(t=e.getElementMutationObserver())==null||t.takeRecords(),yf({element:e.feedbackElement,keyframes:am(im(im({},p),m),{translate:[`${l.x}px ${l.y}px 0`,`${f.x}px ${f.y}px 0`]}),options:{duration:Pd(yd(e.feedbackElement))?0:e.moved||e.feedbackElement!==e.element?r:0,easing:i}}).then(()=>{e.feedbackElement.removeAttribute(Hm),a?.finish(),e.cleanup(),requestAnimationFrame(e.restoreFocus)})}function zp(e,t){return Math.sign(e-t)}function Bp(e){return e>0?mp.Forward:e<0?mp.Reverse:mp.Idle}function Vp(){var e;(e=document.getSelection())==null||e.removeAllRanges()}function Hp(e,t){return t.includes(e.code)}function Up(e){return`sensor`in e}function Wp(e){e.preventDefault()}function Gp(){}function Kp(e){!e||Jh.has(e)||(e.addEventListener(`touchmove`,Gp,{capture:!1,passive:!1}),Jh.add(e))}
9var qp,Jp,Yp,Xp,Zp,Qp,$p,em,tm,nm,rm,im,am,om,sm,cm,lm,um,dm,fm,Y,pm,mm,hm,X,Z,gm,_m,vm,ym,bm,xm,Sm,Cm,wm,Tm,Em,Dm,Om,km,Am,jm,Mm,Nm,Pm,Fm,Im,Lm,Rm,zm,Bm,Vm,Hm,Um,Wm,Gm,Km,qm,Jm,Ym,Xm,Zm,Qm,$m,eh,th,nh,rh,ih,ah,oh,sh,ch,lh,uh,dh,fh,ph,mh,hh,gh,_h,vh,yh,bh,xh,Sh,Ch,wh,Th,Eh,Dh,Oh,kh,Ah,jh,Mh,Nh,Ph,Fh,Ih,Lh,Rh,zh,Bh,Vh,Hh,Uh,Wh,Gh,Kh,qh,Jh,Yh,Xh,Zh,Qh,$h,eg,tg,ng,rg,ig,ag,og,sg,cg,lg,ug,dg,fg,pg,mg,hg,gg,_g=t((()=>{ld(),Cp(),dc(),Yc(),pd(),qp=Object.create,Jp=Object.defineProperty,Yp=Object.defineProperties,Xp=Object.getOwnPropertyDescriptor,Zp=Object.getOwnPropertyDescriptors,Qp=Object.getOwnPropertySymbols,$p=Object.prototype.hasOwnProperty,em=Object.prototype.propertyIsEnumerable,tm=(e,t)=>(t=Symbol[e])?t:Symbol.for(`Symbol.`+e),nm=e=>{throw TypeError(e)},rm=(e,t,n)=>t in e?Jp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,im=(e,t)=>{for(var n in t||={})$p.call(t,n)&&rm(e,n,t[n]);if(Qp)for(var n of Qp(t))em.call(t,n)&&rm(e,n,t[n]);return e},am=(e,t)=>Yp(e,Zp(t)),om=(e,t)=>Jp(e,`name`,{value:t,configurable:!0}),sm=(e,t)=>{var n={};for(var r in e)$p.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Qp)for(var r of Qp(e))t.indexOf(r)<0&&em.call(e,r)&&(n[r]=e[r]);return n},cm=e=>[,,,qp(e?.[tm(`metadata`)]??null)],lm=[`class`,`method`,`getter`,`setter`,`accessor`,`field`,`value`,`get`,`set`],um=e=>e!==void 0&&typeof e!=`function`?nm(`Function expected`):e,dm=(e,t,n,r,i)=>({kind:lm[e],name:t,metadata:r,addInitializer:e=>n._?nm(`Already initialized`):i.push(um(e||null))}),fm=(e,t)=>rm(t,tm(`metadata`),e[3]),Y=(e,t,n,r)=>{for(var i=0,a=e[t>>1],o=a&&a.length;i<o;i++)t&1?a[i].call(n):r=a[i].call(n,r);return r},pm=(e,t,n,r,i,a)=>{var o,s,c,l,u,d=t&7,f=!!(t&8),p=!!(t&16),m=d>3?e.length+1:d?f?1:2:0,h=lm[d+5],g=d>3&&(e[m-1]=[]),_=e[m]||(e[m]=[]),v=d&&(!p&&!f&&(i=i.prototype),d<5&&(d>3||!p)&&Xp(d<4?i:{get[n](){return X(this,a)},set[n](e){return gm(this,a,e)}},n));d?p&&d<4&&om(a,(d>2?`set `:d>1?`get `:``)+n):om(i,n);for(var y=r.length-1;y>=0;y--)l=dm(d,n,c={},e[3],_),d&&(l.static=f,l.private=p,u=l.access={has:p?e=>hm(i,e):e=>n in e},d^3&&(u.get=p?e=>(d^1?X:_m)(e,i,d^4?a:v.get):e=>e[n]),d>2&&(u.set=p?(e,t)=>gm(e,i,t,d^4?a:v.set):(e,t)=>e[n]=t)),s=(0,r[y])(d?d<4?p?a:v[h]:d>4?void 0:{get:v.get,set:v.set}:i,l),c._=1,d^4||s===void 0?um(s)&&(d>4?g.unshift(s):d?p?a=s:v[h]=s:i=s):typeof s!=`object`||!s?nm(`Object expected`):(um(o=s.get)&&(v.get=o),um(o=s.set)&&(v.set=o),um(o=s.init)&&g.unshift(o));return d||fm(e,i),v&&Jp(i,n,v),p?d^4?a:v:i},mm=(e,t,n)=>t.has(e)||nm(`Cannot `+n),hm=(e,t)=>Object(t)===t?e.has(t):nm(`Cannot use the "in" operator on this value`),X=(e,t,n)=>(mm(e,t,`read from private field`),n?n.call(e):t.get(e)),Z=(e,t,n)=>t.has(e)?nm(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),gm=(e,t,n,r)=>(mm(e,t,`write to private field`),r?r.call(e,n):t.set(e,n),n),_m=(e,t,n)=>(mm(e,t,`access private method`),n),vm={role:`button`,roleDescription:`draggable`},ym=`dnd-kit-description`,bm=`dnd-kit-announcement`,xm={draggable:`To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item in a given direction. Press space again to drop the item in its new position, or press escape to cancel.`},Sm={dragstart({operation:{source:e}}){if(e)return`Picked up draggable item ${e.id}.`},dragover({operation:{source:e,target:t}}){if(!(!e||e.id===t?.id))return t?`Draggable item ${e.id} was moved over droppable target ${t.id}.`:`Draggable item ${e.id} is no longer over a droppable target.`},dragend({operation:{source:e,target:t},canceled:n}){if(e)return n?`Dragging was cancelled. Draggable item ${e.id} was dropped.`:t?`Draggable item ${e.id} was dropped over droppable target ${t.id}`:`Draggable item ${e.id} was dropped.`}},Cm=[`dragover`,`dragmove`],wm=class extends Al{constructor(e,t){super(e);let{id:n,idPrefix:{description:r=ym,announcement:i=bm}={},announcements:a=Sm,screenReaderInstructions:o=xm,debounce:s=500}=t??{},c=n?`${r}-${n}`:kf(r),l=n?`${i}-${n}`:kf(i),u,d,f,p,m=(e=p)=>{!f||!e||f?.nodeValue!==e&&(f.nodeValue=e)},h=()=>lp.schedule(m),g=Dp(h,s),_=Object.entries(a).map(([e,t])=>this.manager.monitor.addEventListener(e,(n,r)=>{let i=f;if(!i)return;let a=t?.(n,r);a&&i.nodeValue!==a&&(p=a,Cm.includes(e)?g():(h(),g.cancel()))})),v=()=>{let e=[];u?.isConnected||(u=Tp(c,o.draggable),e.push(u)),d?.isConnected||(d=Ep(l),f=document.createTextNode(``),d.appendChild(f),e.push(d)),e.length>0&&document.body.append(...e)},y=new Set;function b(){for(let e of y)e()}this.registerEffect(()=>{y.clear();for(let e of this.manager.registry.draggables.value){let t=e.handle??e.element;if(t){(!u||!d)&&y.add(v),(!wp(t)||Ad())&&!t.hasAttribute(`tabindex`)&&y.add(()=>t.setAttribute(`tabindex`,`0`)),!t.hasAttribute(`role`)&&t.tagName.toLowerCase()!==`button`&&y.add(()=>t.setAttribute(`role`,vm.role)),t.hasAttribute(`aria-roledescription`)||y.add(()=>t.setAttribute(`aria-roledescription`,vm.roleDescription)),t.hasAttribute(`aria-describedby`)||y.add(()=>t.setAttribute(`aria-describedby`,c));for(let n of[`aria-pressed`,`aria-grabbed`]){let r=String(e.isDragging);t.getAttribute(n)!==r&&y.add(()=>t.setAttribute(n,r))}let n=String(e.disabled);t.getAttribute(`aria-disabled`)!==n&&y.add(()=>t.setAttribute(`aria-disabled`,n))}}y.size>0&&lp.schedule(b)}),this.destroy=()=>
9{super.destroy(),u?.remove(),d?.remove(),_.forEach(e=>e())}}},Tm=class extends Al{constructor(e,t){super(e,t),this.manager=e;let n=fs(()=>Cd(this.manager.dragOperation.source?.element));this.destroy=ts(()=>{let{dragOperation:e}=this.manager,{cursor:t=`grabbing`,nonce:r}=this.options??{};if(e.status.initialized){let e=n.value,i=e.createElement(`style`);return r&&i.setAttribute(`nonce`,r),i.textContent=`* { cursor: ${t} !important; }`,e.head.appendChild(i),()=>i.remove()}})}},Em=new Map,Bm=class extends (jm=jl,Am=[B],km=[V],Om=[V],Dm=[V],jm){constructor(e){super(e),Y(Nm,5,this),Z(this,Fm),Z(this,Mm,new Set),Z(this,Pm,Y(Nm,8,this,new Set)),Y(Nm,11,this),this.registerEffect(_m(this,Fm,Im))}register(e){return X(this,Mm).add(e),()=>{X(this,Mm).delete(e)}}addRoot(e){return R(()=>{let t=new Set(this.additionalRoots);t.add(e),this.additionalRoots=t}),()=>{R(()=>{let t=new Set(this.additionalRoots);t.delete(e),this.additionalRoots=t})}}get sourceRoot(){let{source:e}=this.manager.dragOperation;return Nd(e?.element??null)}get targetRoot(){let{target:e}=this.manager.dragOperation;return Nd(e?.element??null)}get roots(){let{status:e}=this.manager.dragOperation;if(e.initializing||e.initialized){let e=[this.sourceRoot,this.targetRoot].filter(e=>e!=null);return new Set([...e,...this.additionalRoots])}return new Set}},Nm=cm(jm),Mm=new WeakMap,Pm=new WeakMap,Fm=new WeakSet,Im=function(){let{roots:e}=this,t=[];for(let n of e)for(let e of X(this,Mm))t.push(_m(this,Fm,Lm).call(this,n,e));return()=>{for(let e of t)e()}},Lm=function(e,t){let n=Em.get(e);n||(n=new Map,Em.set(e,n));let r=n.get(t);if(!r){let i=bd(e)?_m(this,Fm,Rm).call(this,e,n,t):_m(this,Fm,zm).call(this,e,n,t);if(!i)return()=>{};r=i,n.set(t,r)}r.refCount++;let i=!1;return()=>{i||(i=!0,r.refCount--,r.refCount===0&&r.cleanup())}},Rm=function(e,t,n){let r=e.createElement(`style`);r.textContent=n,e.head.prepend(r);let i=new MutationObserver(t=>{for(let n of t)for(let t of Array.from(n.removedNodes))if(t===r){e.head.prepend(r);return}});return i.observe(e.head,{childList:!0}),{refCount:0,cleanup:()=>{i.disconnect(),r.remove(),t.delete(n),t.size===0&&Em.delete(e)}}},zm=function(e,t,n){`adoptedStyleSheets`in e&&Array.isArray(e.adoptedStyleSheets);let{CSSStyleSheet:r}=e.ownerDocument.defaultView??{};if(!r)return null;let i=new r;return i.replaceSync(n),e.adoptedStyleSheets.push(i),{refCount:0,cleanup:()=>{if(Md(e)&&e.host?.isConnected){let t=e.adoptedStyleSheets.indexOf(i);t!==-1&&e.adoptedStyleSheets.splice(t,1)}t.delete(n),t.size===0&&Em.delete(e)}}},pm(Nm,4,`additionalRoots`,Am,Bm,Pm),pm(Nm,2,`sourceRoot`,km,Bm),pm(Nm,2,`targetRoot`,Om,Bm),pm(Nm,2,`roots`,Dm,Bm),fm(Nm,Bm),Vm=`data-dnd-`,Hm=`${Vm}dropping`,Um=`--dnd-`,Wm=`${Vm}dragging`,Gm=`${Vm}placeholder`,Km=[Wm,Gm,`popover`,`aria-pressed`,`aria-grabbing`],qm=[`view-transition-name`],Jm=`
10  :is(:root,:host) [${Wm}] {
11    position: fixed !important;
12    pointer-events: none !important;
13    touch-action: none;
14    z-index: calc(infinity);
15    will-change: translate;
16    top: var(${Um}top, 0px) !important;
17    left: var(${Um}left, 0px) !important;
18    right: unset !important;
19    bottom: unset !important;
20    width: var(${Um}width, auto);
21    max-width: var(${Um}width, auto);
22    height: var(${Um}height, auto);
23    max-height: var(${Um}height, auto);
24    transition: var(${Um}transition) !important;
25  }
26
27  :is(:root,:host) [${Gm}] {
28    transition: none;
29  }
30
31  :is(:root,:host) [${Gm}='hidden'] {
32    visibility: hidden;
33  }
34
35  [${Wm}] * {
36    pointer-events: none !important;
37  }
38
39  [${Wm}]:not([${Hm}]) {
40    translate: var(${Um}translate) !important;
41  }
42
43  [${Wm}][style*='${Um}scale'] {
44    scale: var(${Um}scale) !important;
45    transform-origin: var(${Um}transform-origin) !important;
46  }
47
48  @layer dnd-kit {
49    :where([${Wm}][popover]) {
50      overflow: visible;
51      background: unset;
52      border: unset;
53      margin: unset;
54      padding: unset;
55      color: inherit;
56
57      &:is(input, button) {
58        border: revert;
59        background: revert;
60      }
61    }
62  }
63  [${Wm}]::backdrop, [${Vm}overlay]:not([${Wm}]) {
64    display: none;
65    visibility: hidden;
66  }
67`.replace(/\n+/g,` `).replace(/\s+/g,` `).trim(),Ym=250,Xm=`ease`,ih=class extends (Qm=Al,Zm=[B],Qm){constructor(e,t){super(e,t),Z(this,th),Z(this,eh,Y($m,8,this)),Y($m,11,this),this.state={initial:{},current:{}};let n=e.registry.plugins.get(Bm),r=n?.register(Jm);if(r){let e=this.destroy.bind(this);this.destroy=()=>{r(),e()}}this.registerEffect(_m(this,th,nh).bind(this,n)),this.registerEffect(_m(this,th,rh))}},$m=cm(Qm),eh=new WeakMap,th=new WeakSet,nh=function(e){let{overlay:t}=this;if(!t||!e)return;let n=Nd(t);if(n)return e.addRoot(n)},rh=function(){let{state:e,manager:t,options:n}=this,{dragOperation:r}=t,{position:i,source:a,status:o}=r;if(o.idle){e.current={},e.initial={};return}if(!a)return;let{element:s,feedback:c}=a;if(!s||c===`none`||!o.initialized||o.initializing)return;let{initial:l}=e,u=this.overlay??s,d=cf(u),f=cf(s),p=!Mp(s,u),m=new bp(s,{frameTransform:p?f:null,ignoreTransforms:!p}
67),h={x:f.scaleX/d.scaleX,y:f.scaleY/d.scaleY},{width:g,height:_,top:v,left:y}=m;p&&(g/=h.x,_/=h.y);let b=new xp(u),{transition:x,translate:S,boxSizing:ee,paddingBlockStart:C,paddingBlockEnd:w,paddingInlineStart:te,paddingInlineEnd:T,borderInlineStartWidth:E,borderInlineEndWidth:D,borderBlockStartWidth:ne,borderBlockEndWidth:O}=tf(s),k=c===`clone`,re=ee===`content-box`,ie=re?parseInt(te)+parseInt(T)+parseInt(E)+parseInt(D):0,ae=re?parseInt(C)+parseInt(w)+parseInt(ne)+parseInt(O):0,A=c!==`move`&&!this.overlay?Op(a,k?`clone`:`hidden`):null,oe=R(()=>Tf(t.dragOperation.activatorEvent));if(S!==`none`){let e=df(S);e&&!l.translate&&(l.translate=e)}if(!l.transformOrigin){let e=R(()=>i.current);l.transformOrigin={x:(e.x-y*d.scaleX-d.x)/(g*d.scaleX),y:(e.y-v*d.scaleY-d.y)/(_*d.scaleY)}}let{transformOrigin:j}=l,se=v*d.scaleY+d.y,ce=y*d.scaleX+d.x;if(!l.coordinates&&(l.coordinates={x:ce,y:se},h.x!==1||h.y!==1)){let{scaleX:e,scaleY:t}=f,{x:n,y:r}=j;l.coordinates.x+=(g*e-g)*n,l.coordinates.y+=(_*t-_)*r}l.dimensions||={width:g,height:_},l.frameTransform||=d;let le={x:l.coordinates.x-ce,y:l.coordinates.y-se},ue={width:(l.dimensions.width*l.frameTransform.scaleX-g*d.scaleX)*j.x,height:(l.dimensions.height*l.frameTransform.scaleY-_*d.scaleY)*j.y},de={x:le.x/d.scaleX+ue.width,y:le.y/d.scaleY+ue.height},fe={left:y+de.x,top:v+de.y};u.setAttribute(Wm,`true`);let pe=R(()=>r.transform),me=l.translate??{x:0,y:0},he=pe.x*d.scaleX+me.x,ge=pe.y*d.scaleY+me.y,_e=jd();b.set({width:g-ie,height:_-ae,top:fe.top+_e.y,left:fe.left+_e.x,translate:`${he}px ${ge}px 0`,transition:x?`${x}, translate 0ms linear`:``,scale:p?`${h.x} ${h.y}`:``,"transform-origin":`${j.x*100}% ${j.y*100}%`},Um),A&&(s.insertAdjacentElement(`afterend`,A),n?.rootElement&&(typeof n.rootElement==`function`?n.rootElement(a):n.rootElement).appendChild(s)),Xd(u)&&(u.hasAttribute(`popover`)||u.setAttribute(`popover`,`manual`),Zd(u),u.addEventListener(`beforetoggle`,Np));let ve,ye,M,be=Lp({placeholder:A,element:s,feedbackElement:u,frameTransform:d,transformOrigin:j,width:g,height:_,top:v,left:y,widthOffset:ie,heightOffset:ae,delta:de,styles:b,dragOperation:r,getElementMutationObserver:()=>ve,getSavedCellWidths:()=>M,setSavedCellWidths:e=>{M=e}}),xe=new bp(u);R(()=>r.shape=xe);let Se=yd(u),Ce=e=>{this.manager.actions.stop({event:e})},we=Pd(Se);oe&&Se.addEventListener(`resize`,Ce),R(()=>a.status)===`idle`&&requestAnimationFrame(()=>a.status=`dragging`),A&&(be.observe(A),ve=Fp(s,A,k),ye=Ip(s,A,u));let Te=t.dragOperation.source?.id,Ee=()=>{if(!oe||Te==null)return;let e=t.registry.draggables.get(Te),n=e?.handle??e?.element;xd(n)&&n.focus()},De=()=>{if(ve?.disconnect(),ye?.disconnect(),be.disconnect(),Se.removeEventListener(`resize`,Ce),Xd(u)&&(u.removeEventListener(`beforetoggle`,Np),u.removeAttribute(`popover`)),u.removeAttribute(Wm),b.reset(),M&&Pp(s)){let e=Array.from(s.cells);for(let[t,n]of e.entries())n.style.width=M[t]??``}a.status=`idle`;let t=e.current.translate!=null;A&&(t||A.parentElement!==u.parentElement)&&u.isConnected&&A.replaceWith(u),A?.remove()},Oe=n?.dropAnimation,ke=this,Ae=hs(()=>{let{transform:t,status:n}=r;if(!(!t.x&&!t.y&&!e.current.translate)&&n.dragging){let n=l.translate??{x:0,y:0},i={x:t.x/d.scaleX+n.x,y:t.y/d.scaleY+n.y},a=e.current.translate,o=R(()=>r.modifiers),s=R(()=>r.shape?.current),c=oe&&!we?`250ms cubic-bezier(0.25, 1, 0.5, 1)`:`0ms linear`;if(b.set({transition:`${x}, translate ${c}`,translate:`${i.x}px ${i.y}px 0`},Um),ve?.takeRecords(),s&&s!==xe&&a&&!o.length){let e=zc.delta(i,a);r.shape=Bc.from(s.boundingRectangle).translate(e.x*d.scaleX,e.y*d.scaleY)}else r.shape=new bp(u);e.current.translate=i}},function(){if(r.status.dropped){this.dispose(),a.status=`dropping`;let n=ke.dropAnimation===void 0?Oe:ke.dropAnimation,r=e.current.translate,i=r!=null;if(!r&&s!==u&&(r={x:0,y:0}),!r||n===null){De();return}t.renderer.rendering.then(()=>{Rp({element:s,feedbackElement:u,placeholder:A,translate:r,moved:i,transition:x,alignment:a.alignment,styles:b,animation:n??void 0,getElementMutationObserver:()=>ve,cleanup:De,restoreFocus:Ee})})}});return()=>{De(),Ae()}},pm($m,4,`overlay`,Zm,ih,eh),fm($m,ih),ih.configure=Zc(ih),ah=ih,oh=!0,sh=!1,dh=(uh=[B],mp.Forward),lh=(ch=[B],mp.Reverse),hh=class{constructor(){Z(this,ph,Y(fh,8,this,oh)),Y(fh,11,this),Z(this,mh,Y(fh,12,this,oh)),Y(fh,15,this)}
67isLocked(e){return e===mp.Idle?!1:e==null?this[mp.Forward]===oh&&this[mp.Reverse]===oh:this[e]===oh}unlock(e){e!==mp.Idle&&(this[e]=sh)}},fh=cm(null),ph=new WeakMap,mh=new WeakMap,pm(fh,4,dh,uh,hh,ph),pm(fh,4,lh,ch,hh,mh),fm(fh,hh),gh=[mp.Forward,mp.Reverse],_h=class{constructor(){this.x=new hh,this.y=new hh}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},vh=class extends Al{constructor(e){super(e);let t=Go(new _h),n=null;this.signal=t,ts(()=>{let{status:r}=e.dragOperation;if(!r.initialized){n=null,t.value=new _h;return}let{delta:i}=e.dragOperation.position;if(n){let e={x:zp(i.x,n.x),y:zp(i.y,n.y)},r=t.peek();Ho(()=>{for(let t of Jc)for(let n of gh)e[t]===n&&r[t].unlock(n);t.value=r})}n=i})}get current(){return this.signal.peek()}},Th=class extends (bh=jl,yh=[B],bh){constructor(e){super(e),Z(this,Sh,Y(xh,8,this,!1)),Y(xh,11,this),Z(this,Ch),Z(this,wh,()=>{if(!X(this,Ch))return;let{element:e,by:t}=X(this,Ch);t.y&&(e.scrollTop+=t.y),t.x&&(e.scrollLeft+=t.x)}),this.scroll=e=>{if(this.disabled)return!1;let t=this.getScrollableElements();if(!t)return gm(this,Ch,void 0),!1;let{position:n}=this.manager.dragOperation,r=n?.current;if(r){let{by:n}=e??{},i=n?{x:Bp(n.x),y:Bp(n.y)}:void 0,a=i?void 0:this.scrollIntentTracker.current;if(a?.isLocked())return!1;for(let e of t){let t=ef(e,n);if(t.x||t.y){let{speed:t,direction:o}=mf(e,r,i);if(a)for(let e of Jc)a[e].isLocked(o[e])&&(t[e]=0,o[e]=0);if(o.x||o.y){let{x:r,y:i}=n??o,a=r*t.x,s=i*t.y;if(a||s){let t=X(this,Ch)?.by;if(this.autoScrolling&&t&&(t.x&&!a||t.y&&!s))continue;return gm(this,Ch,{element:e,by:{x:a,y:s}}),lp.schedule(X(this,wh)),!0}}}}}return gm(this,Ch,void 0),!1};let t=null,n=null,r=fs(()=>{let{position:n,source:r}=e.dragOperation;if(!n)return null;let i=Rd(Nd(r?.element),n.current);return i&&(t=i),i??t}),i=fs(()=>{let t=r.value,{documentElement:i}=Cd(t);if(!t||t===i){let{target:t}=e.dragOperation,r=t?.element;if(r){let e=of(r,{excludeElement:!1});return n=e,e}}if(t){let e=of(t,{excludeElement:!1});return this.autoScrolling&&n&&e.size<n?.size?n:(n=e,e)}return n=null,null},ps);this.getScrollableElements=()=>i.value,this.scrollIntentTracker=new vh(e),this.destroy=e.monitor.addEventListener(`dragmove`,t=>{this.disabled||t.defaultPrevented||!Tf(e.dragOperation.activatorEvent)||!t.by||this.scroll({by:t.by})&&t.preventDefault()})}},xh=cm(bh),Sh=new WeakMap,Ch=new WeakMap,wh=new WeakMap,pm(xh,4,`autoScrolling`,yh,Th,Sh),fm(xh,Th),Eh=class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{let{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(let t of e)t();for(let e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise(e=>this.resolvers.add(e))}},Dh=new Eh(e=>{typeof requestAnimationFrame==`function`?requestAnimationFrame(e):e()}),Oh=10,kh=class extends Al{constructor(e,t){super(e);let n=e.registry.plugins.get(Th);if(!n)throw Error(`AutoScroller plugin depends on Scroller plugin`);this.destroy=ts(()=>{if(this.disabled)return;let{position:t,status:r}=e.dragOperation;if(r.dragging)if(n.scroll()){n.autoScrolling=!0;let e=setInterval(()=>Dh.schedule(n.scroll),Oh);return()=>{clearInterval(e)}}else n.autoScrolling=!1})}},Ah={capture:!0,passive:!0},Mh=class extends jl{constructor(e){super(e),Z(this,jh),this.handleScroll=()=>{X(this,jh)??gm(this,jh,setTimeout(()=>{this.manager.collisionObserver.forceUpdate(!1),gm(this,jh,void 0)},50))};let{dragOperation:t}=this.manager;this.destroy=ts(()=>{if(t.status.dragging){let e=t.source?.element?.ownerDocument??document;return e.addEventListener(`scroll`,this.handleScroll,Ah),()=>{e.removeEventListener(`scroll`,this.handleScroll,Ah)}}})}},jh=new WeakMap,Nh=class extends Al{constructor(e,t){super(e,t),this.manager=e,this.destroy=ts(()=>{let{dragOperation:e}=this.manager,{nonce:t}=this.options??{};if(e.status.initialized){let e=document.createElement(`style`);return t&&e.setAttribute(`nonce`,t),e.textContent=`* { user-select: none !important; -webkit-user-select: none !important; }`,document.head.appendChild(e),Vp(),document.addEventListener(`selectionchange`,Vp,{capture:!0}),()=>{document.removeEventListener(`selectionchange`,Vp,{capture:!0}),e.remove()}}})}},Ph=Object.freeze({offset:10,keyboardCodes:{start:[`Space`,`Enter`],cancel:[`Escape`],end:[`Space`,`Enter`,`Tab`],up:[`ArrowUp`],down:[`ArrowDown`],left:[`ArrowLeft`],right:[`ArrowRight`]},preventActivation(e,t){let n=t.handle??t.element;return e.target!==n}}),Ih=class extends Iu{constructor(e,t){super(e),this.manager=e,this.options=t,Z(this,Fh,[]),this.listeners=new Lf,this.handleSourceKeyDown=(e,t,n)=>{if(this.disabled||e.defaultPrevented||!wf(e.target)||t.disabled)return;let{keyboardCodes:r=Ph.keyboardCodes,preventActivation:i=Ph.preventActivation}=n??{};r.start.includes(e.code)&&this.manager.dragOperation.status.idle&&(i?.(e,t)||this.handleStart(e,t,n))}}bind(e,t=this.options){return ts(()=>{let n=e.handle??e.element,r=n=>{Tf(n)&&this.handleSourceKeyDown(n,e,t)};
67if(n)return n.addEventListener(`keydown`,r),()=>{n.removeEventListener(`keydown`,r)}})}handleStart(e,t,n){let{element:r}=t;if(!r)throw Error(`Source draggable does not have an associated element`);e.preventDefault(),e.stopImmediatePropagation(),gf(r);let{center:i}=new bp(r);if(this.manager.actions.start({event:e,coordinates:{x:i.x,y:i.y},source:t}).signal.aborted)return this.cleanup();this.sideEffects();let a=Cd(r),o=[this.listeners.bind(a,[{type:`keydown`,listener:e=>this.handleKeyDown(e,t,n),options:{capture:!0}}])];X(this,Fh).push(...o)}handleKeyDown(e,t,n){let{keyboardCodes:r=Ph.keyboardCodes}=n??{};if(Hp(e,[...r.end,...r.cancel])){e.preventDefault();let t=Hp(e,r.cancel);this.handleEnd(e,t);return}Hp(e,r.up)?this.handleMove(`up`,e):Hp(e,r.down)&&this.handleMove(`down`,e),Hp(e,r.left)?this.handleMove(`left`,e):Hp(e,r.right)&&this.handleMove(`right`,e)}handleEnd(e,t){this.manager.actions.stop({event:e,canceled:t}),this.cleanup()}handleMove(e,t){let{shape:n}=this.manager.dragOperation,r=t.shiftKey?5:1,i={x:0,y:0},a=this.options?.offset??Ph.offset;if(typeof a==`number`&&(a={x:a,y:a}),n){switch(e){case`up`:i={x:0,y:-a.y*r};break;case`down`:i={x:0,y:a.y*r};break;case`left`:i={x:-a.x*r,y:0};break;case`right`:i={x:a.x*r,y:0};break}(i.x||i.y)&&(t.preventDefault(),this.manager.actions.move({event:t,by:i}))}}sideEffects(){let e=this.manager.registry.plugins.get(kh);e?.disabled===!1&&(e.disable(),X(this,Fh).push(()=>{e.enable()}))}cleanup(){X(this,Fh).forEach(e=>e()),gm(this,Fh,[])}destroy(){this.cleanup(),this.listeners.clear()}},Fh=new WeakMap,Ih.configure=Zc(Ih),Ih.defaults=Ph,Lh=Ih,zh=class extends zu{constructor(){super(...arguments),Z(this,Rh)}onEvent(e){switch(e.type){case`pointerdown`:gm(this,Rh,Od(e));break;case`pointermove`:if(!X(this,Rh))return;let{x:t,y:n}=Od(e),r={x:t-X(this,Rh).x,y:n-X(this,Rh).y},{tolerance:i}=this.options;if(i&&pc(r,i)){this.abort();return}pc(r,this.options.value)&&this.activate(e);break;case`pointerup`:this.abort();break}}abort(){gm(this,Rh,void 0)}},Rh=new WeakMap,Hh=class extends zu{constructor(){super(...arguments),Z(this,Bh),Z(this,Vh)}onEvent(e){switch(e.type){case`pointerdown`:gm(this,Vh,Od(e)),gm(this,Bh,setTimeout(()=>this.activate(e),this.options.value));break;case`pointermove`:if(!X(this,Vh))return;let{x:t,y:n}=Od(e);pc({x:t-X(this,Vh).x,y:n-X(this,Vh).y},this.options.tolerance)&&this.abort();break;case`pointerup`:this.abort();break}}abort(){X(this,Bh)&&(clearTimeout(X(this,Bh)),gm(this,Vh,void 0),gm(this,Bh,void 0))}},Bh=new WeakMap,Vh=new WeakMap,Uh=class{},Uh.Delay=Hh,Uh.Distance=zh,Wh=Object.freeze({activationConstraints(e,t){let{pointerType:n,target:r}=e;if(!(n===`mouse`&&wf(r)&&(t.handle===r||t.handle?.contains(r))))return n===`touch`?[new Uh.Delay({value:250,tolerance:5})]:Df(r)&&!e.defaultPrevented?[new Uh.Delay({value:200,tolerance:0})]:[new Uh.Delay({value:200,tolerance:10}),new Uh.Distance({value:5})]},preventActivation(e,t){let{target:n}=e;return n===t.element||n===t.handle||!wf(n)||t.handle?.contains(n)?!1:Bd(n)}}),Kh=class extends Iu{constructor(e,t){super(e),this.manager=e,this.options=t,Z(this,Gh,new Set),this.listeners=new Lf,this.latest={event:void 0,coordinates:void 0},this.handleMove=()=>{let{event:e,coordinates:t}=this.latest;!e||!t||this.manager.actions.move({event:e,to:t})},this.handleCancel=this.handleCancel.bind(this),this.handlePointerUp=this.handlePointerUp.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}activationConstraints(e,t,n=this.options){let{activationConstraints:r=Wh.activationConstraints}=n??{};return typeof r==`function`?r(e,t):r}bind(e,t=this.options){return ts(()=>{let n=new AbortController,{signal:r}=n,i=n=>{Ef(n)&&this.handlePointerDown(n,e,t)},a=[e.handle??e.element];t?.activatorElements&&(a=Array.isArray(t.activatorElements)?t.activatorElements:t.activatorElements(e));for(let e of a)e&&(Kp(e.ownerDocument.defaultView),e.addEventListener(`pointerdown`,i,{signal:r}));return()=>n.abort()})}handlePointerDown(e,t,n){if(this.disabled||!e.isPrimary||e.button!==0||!wf(e.target)||t.disabled||Up(e)||!this.manager.dragOperation.status.idle)return;let{preventActivation:r=Wh.preventActivation}=n??{};if(r?.(e,t))return;let{target:i}=e,a=xd(i)&&i.draggable&&i.getAttribute(`draggable`)===`true`,o=cf(t.element),{x:s,y:c}=Od(e);this.initialCoordinates={x:s*o.scaleX+o.x,y:c*o.scaleY+o.y};
67let l=this.activationConstraints(e,t,n);e.sensor=this;let u=new Lu(l,e=>this.handleStart(t,e));u.signal.onabort=()=>this.handleCancel(e),u.onEvent(e),this.controller=u;let d=kd(),f=this.listeners.bind(d,[{type:`pointermove`,listener:e=>this.handlePointerMove(e,t)},{type:`pointerup`,listener:this.handlePointerUp,options:{capture:!0}},{type:`pointercancel`,listener:this.handleCancel},{type:`dragstart`,listener:a?this.handleCancel:Wp,options:{capture:!0}}]);X(this,Gh).add(()=>{f(),this.initialCoordinates=void 0})}handlePointerMove(e,t){var n;if(this.controller?.activated===!1){(n=this.controller)==null||n.onEvent(e);return}if(this.manager.dragOperation.status.dragging){let n=Od(e),r=cf(t.element);n.x=n.x*r.scaleX+r.x,n.y=n.y*r.scaleY+r.y,e.preventDefault(),e.stopPropagation(),this.latest.event=e,this.latest.coordinates=n,lp.schedule(this.handleMove)}}handlePointerUp(e){let{status:t}=this.manager.dragOperation;if(!t.idle){e.preventDefault(),e.stopPropagation();let n=!t.initialized;this.manager.actions.stop({event:e,canceled:n})}this.cleanup()}handleKeyDown(e){e.key===`Escape`&&(e.preventDefault(),this.handleCancel(e))}handleStart(e,t){let{manager:n,initialCoordinates:r}=this;if(!r||!n.dragOperation.status.idle||t.defaultPrevented)return;if(n.actions.start({coordinates:r,event:t,source:e}).signal.aborted)return this.cleanup();t.preventDefault();let i=Cd(t.target).body;i.setPointerCapture(t.pointerId);let a=wf(t.target)?[t.target,i]:i,o=this.listeners.bind(a,[{type:`touchmove`,listener:Wp,options:{passive:!1}},{type:`click`,listener:Wp},{type:`contextmenu`,listener:Wp},{type:`keydown`,listener:this.handleKeyDown}]);X(this,Gh).add(o)}handleCancel(e){let{dragOperation:t}=this.manager;t.status.initialized&&this.manager.actions.stop({event:e,canceled:!0}),this.cleanup()}cleanup(){this.latest={event:void 0,coordinates:void 0},X(this,Gh).forEach(e=>e()),X(this,Gh).clear()}destroy(){this.cleanup(),this.listeners.clear()}},Gh=new WeakMap,Kh.configure=Zc(Kh),Kh.defaults=Wh,qh=Kh,Jh=new WeakSet,Yh={modifiers:[],plugins:[wm,kh,Tm,ah,Nh],sensors:[qh,Lh]},Xh=class extends cd{constructor(e={}){let t=tl(e.plugins,Yh.plugins),n=tl(e.sensors,Yh.sensors),r=tl(e.modifiers,Yh.modifiers);super(am(im({},e),{plugins:[Mh,Th,Bm,...t],sensors:n,modifiers:r}))}},ag=class extends (eg=Su,$h=[B],Qh=[B],Zh=[B],eg){constructor(e,t){var n=e,{element:r,effects:i=()=>[],handle:a,feedback:o=`default`}=n,s=sm(n,[`element`,`effects`,`handle`,`feedback`]);super(im({effects:()=>[...i(),()=>{let{manager:e}=this;if(!e)return;let t=(this.sensors?.map(Qc)??[...e.sensors]).map(t=>{let n=t instanceof Iu?t:e.registry.register(t.plugin),r=t instanceof Iu?void 0:t.options;return n.bind(this,r)});return function(){t.forEach(e=>e())}}]},s),t),Z(this,ng,Y(tg,8,this)),Y(tg,11,this),Z(this,rg,Y(tg,12,this)),Y(tg,15,this),Z(this,ig,Y(tg,16,this)),Y(tg,19,this),this.element=r,this.handle=a,this.feedback=o}},tg=cm(eg),ng=new WeakMap,rg=new WeakMap,ig=new WeakMap,pm(tg,4,`handle`,$h,ag,ng),pm(tg,4,`element`,Qh,ag,rg),pm(tg,4,`feedback`,Zh,ag,ig),fm(tg,ag),gg=class extends (cg=Fu,sg=[B],og=[B],cg){constructor(e,t){var n=e,{element:r,effects:i=()=>[]}=n,a=sm(n,[`element`,`effects`]);let{collisionDetector:o=fd}=a,s=e=>{let{manager:t,element:n}=this;if(!n||e===null){this.shape=void 0;return}if(!t)return;let r=new bp(n),i=R(()=>this.shape);return r&&i?.equals(r)?i:(this.shape=r,r)},c=Go(!1);super(am(im({},a),{collisionDetector:o,effects:()=>[...i(),()=>{let{element:e,manager:t}=this;if(!t)return;let{dragOperation:n}=t,{source:r}=n;c.value=!!(r&&n.status.initialized&&e&&!this.disabled&&this.accepts(r))},()=>{let{element:e}=this;if(c.value&&e){let t=new sp(e,s);return()=>{t.disconnect(),this.shape=void 0}}},()=>{if(this.manager?.dragOperation.status.initialized)return()=>{this.shape=void 0}}]}),t),Z(this,mg),Z(this,ug,Y(lg,8,this)),Y(lg,11,this),Z(this,hg,Y(lg,12,this)),Y(lg,15,this),this.element=r,this.refreshShape=()=>s()}set element(e){gm(this,mg,e,pg)}get element(){return this.proxy??X(this,mg,fg)}},lg=cm(cg),ug=new WeakMap,mg=new WeakSet,hg=new WeakMap,dg=pm(lg,20,`#element`,sg,mg,ug),fg=dg.get,pg=dg.set,pm(lg,4,`proxy`,og,gg,hg),fm(lg,gg)})),vg,yg,bg=t((()=>{vg=e(r(),1),i(),yg=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0?vg.useLayoutEffect:vg.useEffect})),xg,Sg,Cg,wg,Tg,Eg,Dg,Og,kg,Ag,jg,Mg,Ng,Pg,Fg,Ig,Lg,Rg,zg,Bg,Vg,Hg,Ug,Wg,Gg,Kg,qg=t((()=>{xg=e(r(),1),_g(),bg(),dc(),l(),(0,xg.createContext)(new Xh),(0,xg.memo)((0,xg.forwardRef)(({children:e},t)=>
67{let[n,r]=(0,xg.useState)(0),i=(0,xg.useRef)(null),a=(0,xg.useRef)(null),o=(0,xg.useMemo)(()=>({renderer:{get rendering(){return i.current??Promise.resolve()}},trackRendering(e){i.current||=new Promise(e=>{a.current=e}),(0,xg.startTransition)(()=>{e(),r(e=>e+1)})}}),[]);return yg(()=>{var e;(e=a.current)==null||e.call(a),i.current=null},[e,n]),(0,xg.useImperativeHandle)(t,()=>o),null})),Sg=Object.create,Cg=Object.defineProperty,wg=Object.getOwnPropertyDescriptor,Tg=(e,t)=>(t=Symbol[e])?t:Symbol.for(`Symbol.`+e),Eg=e=>{throw TypeError(e)},Dg=(e,t,n)=>t in e?Cg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Og=e=>[,,,Sg(e?.[Tg(`metadata`)]??null)],kg=[`class`,`method`,`getter`,`setter`,`accessor`,`field`,`value`,`get`,`set`],Ag=e=>e!==void 0&&typeof e!=`function`?Eg(`Function expected`):e,jg=(e,t,n,r,i)=>({kind:kg[e],name:t,metadata:r,addInitializer:e=>n._?Eg(`Already initialized`):i.push(Ag(e||null))}),Mg=(e,t)=>Dg(t,Tg(`metadata`),e[3]),Ng=(e,t,n,r)=>{for(var i=0,a=e[t>>1],o=a&&a.length;i<o;i++)a[i].call(n);return r},Pg=(e,t,n,r,i,a)=>{for(var o,s,c,l,u=t&7,d=!1,f=!1,p=2,m=kg[u+5],h=e[p]||(e[p]=[]),g=(i=i.prototype,wg(i,n)),_=r.length-1;_>=0;_--)c=jg(u,n,s={},e[3],h),c.static=d,c.private=f,l=c.access={has:e=>n in e},l.get=e=>e[n],o=(0,r[_])(g[m],c),s._=1,Ag(o)&&(g[m]=o);return g&&Cg(i,n,g),i},Fg=(e,t,n)=>t.has(e)||Eg(`Cannot `+n),Ig=(e,t,n)=>(Fg(e,t,`read from private field`),t.get(e)),Lg=(e,t,n)=>t.has(e)?Eg(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),Rg=(e,t,n,r)=>(Fg(e,t,`write to private field`),t.set(e,n),n),zg=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,n){return new e(t.x-n.x,t.y-n.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:n}){return new e(t,n)}},Gg=class extends (Hg=uc,Vg=[V],Bg=[V],Hg){constructor(e){let t=zg.from(e);super(t,(e,t)=>zg.equals(e,t)),Ng(Wg,5,this),Lg(this,Ug,0),this.velocity={x:0,y:0}}get delta(){return zg.delta(this.current,this.initial)}get direction(){let{current:e,previous:t}=this;if(!t)return null;let n={x:e.x-t.x,y:e.y-t.y};return!n.x&&!n.y?null:Math.abs(n.x)>Math.abs(n.y)?n.x>0?`right`:`left`:n.y>0?`down`:`up`}get current(){return super.current}set current(e){let{current:t}=this,n=zg.from(e),r={x:n.x-t.x,y:n.y-t.y},i=Date.now(),a=i-Ig(this,Ug),o=e=>Math.round(e/a*100);Ho(()=>{Rg(this,Ug,i),this.velocity={x:o(r.x),y:o(r.y)},super.current=n})}reset(e=this.defaultValue){super.reset(zg.from(e)),this.velocity={x:0,y:0}}},Wg=Og(Hg),Ug=new WeakMap,Pg(Wg,2,`delta`,Vg,Gg),Pg(Wg,2,`direction`,Bg,Gg),Mg(Wg,Gg),Kg=(e=>(e.Horizontal=`x`,e.Vertical=`y`,e))(Kg||{}),Object.values(Kg)})),Jg=t((()=>{r(),M(),T(),it(),ge(),Yt(),Bo(),l()})),Yg=t((()=>{r(),M(),v(),Bo(),Jg(),l()})),Xg=t((()=>{r(),N(),Mr(),Yg(),No(),go(),bo(),l()})),Zg,Qg,$g,e_,t_=t((()=>{Zg=e(r()),No(),Xg(),Qg=l(),$g=jo,e_=Zg.memo(function(e){return(0,Qg.jsx)($g,{...e})})})),n_,r_,i_,a_,o_,s_,c_=t((()=>{n_=`r0MB0KDS`,r_=`bELBv2iX`,i_=`_6jJ-n51R`,a_=`m0TngOHm`,o_=`aChVP9me`,s_={moleculeHighlighting:n_,moleculeDragging:r_,moleculeWrapper:i_,molecule:a_,backgroundWrapper:o_}}));function l_(e,t){if(e){if(typeof e==`function`){e(t);return}e.current=t}}function u_({moleculeId:e,editor:t}){let n=$e(),r=(0,d_.useMemo)(()=>({settings:n}),[n]),i=(0,d_.useRef)(null),a=be(),o=ne(),s=Jt(e),c=Ke(o),{showEditorChrome:l}=Ve(),d=Ce(),[f,m]=(0,d_.useState)(!1),h=s&&c?Pt({website:r,organism:c,moleculeBorderRadius:s.styles.border?.radius}):null,g=bt(`molecule`,{shadow:s?.styles?.shadow,border:s?.styles?.border,borderRadius:h,supportedGlobals:[`borderRadius`]}),_=(0,d_.useCallback)(e=>{i.current=e,l_(t?.sortableRef,e)},[t?.sortableRef]);if(!s||!c)return null;let{contentId:v,background:y,styles:b}=s,x=!!t&&l&&a.areaKind!==`header`,S=t?.isMoleculeSelected(s.id)??!1,ee=pt({areaKind:a.areaKind,contentWidth:n.contentWidth,molecule:s,organism:c});return(0,f_.jsxs)(`div`,{ref:_,id:v,"data-molecule-wrapper":`true`,"data-editor-molecule":t?`true`:void 0,"data-editor-molecule-dragging":t?.isDragging?`true`:void 0,"data-toolbar-hovered":f?`true`:void 0,className:P(`moleculeWrapper`,s_.moleculeWrapper,x&&!t.isAtomLocked&&s_.moleculeHighlighting,t?.isDragging&&s_.moleculeDragging),style:{"--molecule-justify":a.areaKind===`header`?`center`:p(b.verticalAlignment),"--molecule-align":u(b.horizontalAlignment),...g},onClick:e=>
67{!x||!t||t.onMoleculeBackgroundClick({moleculeId:s.id,event:e})},children:[x&&!(t.isMobile&&t.isAtomLocked)&&t.renderToolbar({moleculeId:e,isSelected:t.isMobile&&S,onHoverChange:m,dragHandleRef:t.dragHandleRef}),(0,f_.jsxs)(Lt,{link:s.link,className:P(`molecule`,s_.molecule),"data-molecule-content":`true`,children:[s.atoms.map((e,t)=>(0,f_.jsx)(e_,{atomId:e.id,isFirst:t===0,isLast:t===s.atoms.length-1},e.id)),s.atoms.length===0&&l&&t?.renderEmptyState()]}),y?.activeBackground&&(0,f_.jsx)(`div`,{className:P(s_.backgroundWrapper),"data-molecule-background":`true`,children:(0,f_.jsx)(Dn,{...y,imageFetchPriority:d,imageSizes:ee})})]})}var d_,f_,p_=t((()=>{d_=e(r()),yt(),jt(),t_(),It(),M(),it(),ft(),ct(),N(),Yt(),ke(),xt(),kn(),c_(),f_=l()}));function m_(e){return(0,h_.jsx)(u_,{...e,editor:null})}var h_,g_=t((()=>{r(),p_(),h_=l()})),__,v_,y_=t((()=>{__=e(r()),v_=(0,__.createContext)(null),v_.Provider})),b_=t((()=>{y_()})),x_=t((()=>{r(),M(),T(),it(),ge(),v(),Yt(),l()})),S_=t((()=>{r(),M(),b_(),T(),it(),ge(),v(),Kt(),Po(),Yt(),ke(),k(),x_(),p_(),l()})),C_,w_,T_,E_,D_=t((()=>{C_=e(r()),g_(),S_(),w_=l(),T_=m_,E_=C_.memo(function(e){return(0,w_.jsx)(T_,{...e})})})),O_=t((()=>{D_()})),k_,A_,j_,M_=t((()=>{k_=`ocm4Thhl`,A_=`uEYkFcU-`,j_={bentoGrid:k_,bentoGridItem:A_}}));function N_(e,t){return Math.min(Math.max(e??1,1),t)}function P_({organismId:e}){let t=Ke(e);if(!t)return null;let{molecules:n,layoutSettings:r}=t,{columns:i,gap:a}=r.bento;return(0,F_.jsx)(`div`,{className:j_.bentoGrid,style:{"--bento-grid-columns":i,"--bento-grid-gap":`${a}px`},children:n.map(e=>{let t=N_(e.layoutSettings.bento.colSpan,i),n=N_(e.layoutSettings.bento.rowSpan,i);return(0,F_.jsx)(O,{value:e.id,children:(0,F_.jsx)(`div`,{className:j_.bentoGridItem,style:{"--bento-item-col-span":t,"--bento-item-row-span":n},children:(0,F_.jsx)(E_,{moleculeId:e.id})})},e.id)})})}var F_,I_=t((()=>{r(),T(),ke(),O_(),M_(),F_=l()})),L_,R_,z_,B_=t((()=>{L_=`Rt-0nWvN`,R_=`khJfSTvr`,z_={uniformGrid:L_,uniformGridColumn:R_}}));function V_({organismId:e}){let t=Ke(e);if(!t)return null;let{styles:n,molecules:r}=t,i=ze(t),a=j(t);return(0,H_.jsx)(`div`,{className:z_.uniformGrid,style:{"--grid-gap":`${a}px`,"--grid-columns":i,"--grid-justify":n.alignment??`unset`},children:r.map(e=>(0,H_.jsx)(O,{value:e.id,children:(0,H_.jsx)(`div`,{className:z_.uniformGridColumn,children:(0,H_.jsx)(E_,{moleculeId:e.id})})},e.id))})}var H_,U_=t((()=>{r(),T(),E(),ke(),O_(),B_(),H_=l()})),W_=t((()=>{r(),l()})),G_,K_,q_,J_,Y_,X_,Z_,Q_,$_=t((()=>{G_=`ys2NGBko`,K_=`ieQj140l`,q_=`_-6FJ0JiM`,J_=`Cm08LfaO`,Y_=`JbwyYbkJ`,X_=`CeD5PD6C`,Z_=`rgaVK4Lt`,Q_={headerColumns:G_,column:K_,columnBoundary:q_,widthValue:J_,insertControl:Y_,insertButton:X_,resizeHandle:Z_}}));function ev({children:e,className:t,style:n}){return(0,cv.jsx)(`div`,{className:t,style:n,children:e})}function tv(){return we().header.styles.desktop.moleculeGap}function nv(e){return Math.round(e)}function rv(e){return!Number.isFinite(e)||(e??0)<lv?null:e??null}function iv(e,t){if(e.length===0)return[];let n=e.map(nv),r=n.reduce((e,t)=>e+t,0);if(r<=t)return n;let i=r-t;for(let e=n.length-1;e>=0&&i>0;--e){let t=Math.max(0,n[e]-lv),r=Math.min(t,i);n[e]-=r,i-=r}if(r=n.reduce((e,t)=>e+t,0),r>t)for(let e=n.length-1;e>=0&&r>t;--e){let i=Math.max(0,n[e]),a=Math.min(i,r-t);n[e]-=a,r-=a}return n}function av(e){if(e.length===0)return[];let t=tt(e.length),n=e.map((e,n)=>rv(e.layoutSettings.header?.widthPercent)??t[n]??100),r=n.reduce((e,t)=>e+t,0);if(r<=100)return iv(n,100);let i=100/r;return iv(n.map(e=>e*i),100)}function ov({organismId:e}){let t=ie(),n=Ke(e),{showEditorChrome:r}=Ve(),[i,a]=(0,sv.useState)(null),o=dv(),s=(0,sv.useMemo)(()=>{let e=[...n?.molecules??[]];return r?e:e.sort((e,t)=>e.position-t.position||e.id.localeCompare(t.id))},[n?.molecules,r]),c=(0,sv.useMemo)(()=>av(s),[s]),l=i!==null;if(!n)return null;let u=e=>t=>{t.preventDefault(),t.stopPropagation(),s[e],s[e+1],t.currentTarget.ownerDocument.defaultView,t.currentTarget.closest(`.${Q_.headerColumns}`)},d=e=>e=>{e.preventDefault(),e.stopPropagation()};return(0,cv.jsx)(`div`,{className:Q_.headerColumns,style:{"--header-molecule-gap":`${o}px`,"--header-columns-count":`${Math.max(s.length,1)}`},children:s.map((e,a)=>(0,cv.jsx)(O,{value:e.id,children:(0,cv.jsxs)(uv,{className:Q_.column,molecule:e,organismContentId:n.contentId,organismId:n.id,sectionId:t,style:{"--header-column-width":`${c[a]??100}%`},children:[(0,cv.jsx)(E_,{moleculeId:e.id}),r&&(0,cv.jsxs)(`div`,{className:Q_.widthValue,"data-visible":l?`true`:void 0,children:[c[a]??0,`%`]}),r&&(0,cv.jsxs)(`div`,{className:Q_.columnBoundary,children:[(0,cv.jsx)(`button`,{className:Q_.resizeHandle,"data-resizing":i===a?`true`:void 0,type:`button`,"aria-label":`Header-Spalte skalieren`,onMouseDown:u(a)}),(0,cv.jsx)(`div`,{className:Q_.insertControl,children:(0,cv.jsx)(`button`,{className:Q_.insertButton,type:`button`,"aria-label":`Neues Header-Element dahinter einfügen`,onClick:d(e.id),children:(0,cv.jsx)(Wt,{size:14})})})]})]})},e.id))})}var sv,cv,lv,uv,dv,fv=t((()=>
67{sv=e(r()),Gt(),T(),ge(),ke(),Te(),rt(),nt(),he(),k(),O_(),W_(),$_(),cv=l(),lv=4,uv=ev,dv=tv})),pv,mv,hv,gv,_v=t((()=>{pv=`NcrET1Z3`,mv=`Pw3TBHE1`,hv=`-LjOAb6G`,gv={masonryGrid:pv,masonryGridColumn:mv,masonryGridItem:hv}}));function vv({organismId:e}){let t=Ke(e);if(!t)return null;let{molecules:n}=t,r=ze(t),i=j(t),a=de(t),o=t.layoutSettings.masonry.verticalAlignment,s=a.map((e,t)=>({lane:e,molecules:n.filter(n=>{let r=n.layoutSettings?.masonry?.laneId;return r?r===e.id:n.position%a.length===t}).sort((e,t)=>(e.layoutSettings?.masonry?.position??e.position)-(t.layoutSettings?.masonry?.position??t.position))}));return(0,yv.jsx)(`div`,{className:gv.masonryGrid,style:{"--grid-gap-column":`${i}px`,"--grid-gap-row":`${i}px`,"--grid-columns":s.length||r,"--masonry-justify":p(o)},children:s.map(({lane:e,molecules:t})=>(0,yv.jsx)(`div`,{className:gv.masonryGridColumn,children:t.map(e=>(0,yv.jsx)(O,{value:e.id,children:(0,yv.jsx)(`div`,{className:gv.masonryGridItem,children:(0,yv.jsx)(E_,{moleculeId:e.id})})},e.id))},e.id))})}var yv,bv=t((()=>{r(),T(),h(),E(),N(),O_(),_v(),yv=l()}));function xv(e){let t=e.length;if(t===0)return[];let n=Math.floor(Tv/t),r=Tv-n*t;return e.map((e,t)=>({moleculeId:e,span:n+ +(t<r)}))}function Sv({organismId:e}){ie();let t=Ke(e),n=(0,Cv.useRef)(null),r=(0,Cv.useRef)(null),i=(0,Cv.useRef)(null),[a,o]=(0,Cv.useState)(null),s=t?ze(t):0,c=(0,Cv.useMemo)(()=>{let e=t?.molecules.slice(0,s)??[],n=xv(e.map(e=>e.id)),r=e.map((e,t)=>({moleculeId:e.id,span:e.layoutSettings.spanned.colSpan??n[t]?.span??1}));return r.reduce((e,t)=>
67e+t.span,0)===Tv?r:n},[t?.molecules,s]),l=(0,Cv.useRef)(c),u=(0,Cv.useRef)(t?.molecules.slice(0,s)??[]);(0,Cv.useEffect)(()=>{l.current=c},[c]),(0,Cv.useEffect)(()=>{u.current=t?.molecules.slice(0,s)??[]},[t?.molecules,s]);let d=(e,t,n)=>{let r=e.map(e=>({...e})),i=n;for(let e=t+1;e<r.length&&i>0;e++){let t=Math.max(0,r[e].span-wv);if(t===0)continue;let n=Math.min(t,i);r[e].span-=n,i-=n}let a=n-i;return a>0&&(r[t].span+=a),{next:r,applied:a}},f=(e,t,n)=>{let r=e.map(e=>({...e})),i=-n;for(let e=t;e>=0&&i>0;e--){let t=Math.max(0,r[e].span-wv);if(t===0)continue;let n=Math.min(t,i);r[e].span-=n,i-=n}let a=-n-i;return a>0&&t+1<r.length&&(r[t+1].span+=a),{next:r,applied:-a}},p=e=>{if(!n.current||!i.current)return;let t=i.current.clientWidth/Tv,r=(e.clientX-n.current.startX)/t,a=r>0?Math.floor(r):Math.ceil(r);if(a===0)return;let o=n.current.index,s=l.current,c;c=a>0?d(s,o,a):f(s,o,a);let{next:u,applied:p}=c;p!==0&&(n.current.startX+=p*t,l.current=u)},m=()=>{let e=r.current;n.current=null,e?.removeEventListener(`mousemove`,p),e?.removeEventListener(`mouseup`,m),o(null),e&&(e.document.body.style.cursor=``,e.document.body.style.userSelect=``),r.current=null};return{columns:c,containerRef:i,handleMouseDown:(e,t)=>{let a=e.currentTarget.ownerDocument.defaultView??i.current?.ownerDocument.defaultView??null;a&&(e.preventDefault(),e.stopPropagation(),n.current={index:t,startX:e.clientX},r.current=a,o(t),a.document.body.style.cursor=`ew-resize`,a.document.body.style.userSelect=`none`,a.addEventListener(`mousemove`,p),a.addEventListener(`mouseup`,m))},resizingIndex:a}}var Cv,wv,Tv,Ev=t((()=>{Cv=e(r()),ge(),E(),N(),nt(),wv=1,Tv=24})),Dv,Ov,kv,Av,jv=t((()=>{Dv=`NxYWpSpX`,Ov=`KxJmdu4J`,kv=`-uWW8aNd`,Av={spannedGrid:Dv,spannedGridItem:Ov,spannedGridHandle:kv}}));function Mv(e){return e===`center`?`center`:e===`bottom`?`end`:`start`}function Nv({organismId:e}){let{columns:t,containerRef:n,handleMouseDown:r,resizingIndex:i}=Sv({organismId:e}),a=Ke(e),{showEditorChrome:o}=Ve();if(!a)return null;let{molecules:s}=a,c=j(a),l=ze(a),u=s.slice(0,l),d=t.map(e=>`minmax(0, ${e.span}fr)`).join(` `);return(0,Pv.jsx)(`div`,{className:Av.spannedGrid,ref:n,style:{"--spanned-grid-gap":`${c}px`,...d?{"--spanned-grid-template":d}:{}},children:u.map((e,n)=>{let a=n===t.length-1,s=e.layoutSettings.spanned.overlapX,c=Math.abs(s),l=Math.min(s,0),u=Mv(e.styles.verticalAlignment);return(0,Pv.jsx)(O,{value:e.id,children:(0,Pv.jsxs)(`div`,{className:Av.spannedGridItem,"data-overlap":s===0?void 0:`true`,style:{"--spanned-item-overlap-x":`${s}px`,"--spanned-item-overlap-abs":`${c}px`,"--spanned-item-overlap-shift":`${l}px`,"--spanned-item-overlap-align-self":u},children:[(0,Pv.jsx)(E_,{moleculeId:e.id}),o&&!a&&(0,Pv.jsx)(`div`,{className:Av.spannedGridHandle,"data-dragging":i===n,onMouseDown:e=>r(e,n)})]})},e.id)})})}var Pv,Fv=t((()=>{r(),T(),E(),N(),O_(),Ev(),jv(),Pv=l()}));function Iv({organismId:e,renderEmptyState:t}){let n=be(),r=Ke(e);if(!r)return null;let i=n.areaKind===`header`?`header`:ce(r);return r.molecules.length===0&&t?(0,Lv.jsx)(Lv.Fragment,{children:t()}):i===`grid`?(0,Lv.jsx)(V_,{organismId:e}):i===`masonry`?(0,Lv.jsx)(vv,{organismId:e}):i===`spanned`?(0,Lv.jsx)(Nv,{organismId:e}):i===`bento`?(0,Lv.jsx)(P_,{organismId:e}):i===`header`?(0,Lv.jsx)(ov,{organismId:e}):(0,Lv.jsxs)(`p`,{children:[`layout `,i,` not implemented`]})}var Lv,Rv=t((()=>{r(),M(),E(),ke(),I_(),U_(),fv(),bv(),Fv(),Lv=l()}));function zv(e){return(0,Bv.jsx)(Iv,{...e})}var Bv,Vv=t((()=>{r(),Rv(),Bv=l()})),Hv=t((()=>{r(),M(),it(),ge(),v(),ke(),l()})),Uv=t((()=>{r(),M(),Kt(),Hv(),Rv(),l()}));function Wv(e){return(0,Gv.jsx)(Kv,{...e})}var Gv,Kv,qv=t((()=>{r(),Vv(),Uv(),Gv=l(),Kv=zv})),Jv,Yv,Xv,Zv,Qv,$v,ey,ty,ny,ry,iy,ay,oy,sy,cy,ly,uy,dy,fy,py,my,hy=t((()=>{Jv=`HpjQB8-h`,Yv=`Er34NcHH`,Xv=`b-Ers0Mh`,Zv=`TQlNFKwQ`,Qv=`nIPuQvIh`,$v=`gtQkj5Nq`,ey=`Xa7ENun2`,ty=`_9qliTxqL`,ny=`Y6zEz7wR`,ry=`rtfUZv73`,iy=`pdTgGvnb`,ay=`_5jVE-rkz`,oy=`rs-T1Ay2`,sy=`eOjltR5-`,cy=`tPfK1vi-`,ly=`a9I8eS7D`,uy=`kklZpmcb`,dy=`gD2PTwjw`,fy=`YG5Ky9Fv`,py=`ej6G3dcQ`,my={organismWrapper:Jv,organismWrapperFillHeight:Yv,organismDragging:Xv,organism:Zv,organismHighlighted:Qv,organismFullWidth:$v,organismWidth:ey,organismFillHeight:ty,organismContent:ny,organismContentFillHeight:ry,backgroundWrapper:iy,organismFrame:ay,animationScaleIn:oy,sectionScaleIn:sy,animationSlideUp:cy,sectionSlideUp:ly,animationFadeIn:uy,sectionFadeIn:dy,animationBase:fy,animationVisible:py}}));function gy(e,t){if(e){if(typeof e==`function`){e(t);return}e.current=t}}function _y(e){return Math.max(0,Math.min(xy,e))}function vy({organismId:e,isLast:t,editor:n}){let r=Pe(ie()),i=be(),a=$e(),o=Ke(e),{ref:s,entry:c}=je(),l=(0,yy.useRef)(null),{window:d}=St(l.current),{showEditorChrome:f}=Ve(),p=Ce(),m=Qe(),h=a.animationName,g=!!h&&m,[_,v]=(0,yy.useState)(!1),y=bt(`organism`,{shadow:o?.styles?.shadow,border:o?.styles?.border,padding:o?.styles?.padding,supp
67ortedGlobals:[`borderRadius`]}),[b,x]=(0,yy.useState)(!1),[S,ee]=(0,yy.useState)(!1),[C,w]=(0,yy.useState)(!1),te=(0,yy.useCallback)(e=>{gy(s,g?e:null),gy(n?.sortableRef,e)},[n?.sortableRef,s,g]);if((0,yy.useEffect)(()=>{c?.isIntersecting&&v(!0)},[c?.isIntersecting]),!r||!o)return null;let{contentId:T,styles:E,background:D}=o,ne=r.styles.isFullHeight&&o.molecules.some(e=>e.atoms.some(e=>Nt(e,o))),O,k=i.areaKind===`header`?st(i.area.styles?.desktop.contentWidth,a.contentWidth):null,re=i.areaKind===`header`?k??null:mt({organism:o,contentWidth:a.contentWidth});E.width===-1?O=`${a.contentWidth}px`:Number.isInteger(E.width)&&(O=`${E.width}px`),i.areaKind===`header`&&(O=k?`${k}px`:`100%`);let ae=ut({maxWidth:re}),A=E.marginBottom??a.sectionPadding??32,oe=!!n&&f&&n.isOrganismActive({sectionId:r.id,organismId:o.id}),j=!!n&&f&&i.areaKind!==`header`&&!n.isAnyAtomFocused,se=j&&(b||S||oe),ce=j&&(b||S||oe||C),le=g&&h?P(my.animationBase,Sy[h],_&&my.animationVisible):``;return(0,by.jsxs)(`div`,{ref:te,id:T,"data-editor-organism":n?`true`:void 0,"data-editor-organism-dragging":n?.isDragging?`true`:void 0,className:P(`organismWrapper`,my.organismWrapper,ne&&my.organismWrapperFillHeight,n?.isDragging&&my.organismDragging,le),style:{"--organism-max-width":O??`100%`,"--organism-margin-bottom":t?`0px`:`${A}px`,"--organism-align-self":u(E.alignment),...y},children:[j&&n.renderToolbar({organismId:e,onHoverChange:x,dragHandleRef:n.dragHandleRef}),(0,by.jsxs)(`div`,{ref:l,"data-editor-organism-surface":n?`true`:void 0,"data-show-chrome":se,className:P(`organism`,my.organism,O?my.organismWidth:my.organismFullWidth,ne&&my.organismFillHeight,j&&my.organismHighlighted),children:[(0,by.jsx)(`div`,{className:P(my.organismContent,ne&&my.organismContentFillHeight),"data-organism-fill-height":ne?`true`:void 0,children:(0,by.jsx)(Wv,{organismId:e})}),D?.activeBackground&&(0,by.jsx)(`div`,{className:P(my.backgroundWrapper),children:(0,by.jsx)(Dn,{...D,imageFetchPriority:p,imageSizes:ae})}),(0,by.jsx)(`div`,{className:my.organismFrame,"aria-hidden":`true`}),j&&!t&&n.renderMargin({marginBottom:A,isVisible:ce,isResizing:S,onHoverChange:w,onMouseDown:e=>{if(e.preventDefault(),e.stopPropagation(),!d)return;n.onMarginResizeStart();let t=e.clientY,r=A,i=d.document.body.style.cursor,a=d.document.body.style.userSelect;d.document.body.style.cursor=`ns-resize`,d.document.body.style.userSelect=`none`,ee(!0);let o=e=>{let i=e.clientY-t,a=_y(Math.round(r+i));n.onMarginChange(a)},s=()=>{d.removeEventListener(`mousemove`,o),d.removeEventListener(`mouseup`,s),d.document.body.style.cursor=i,d.document.body.style.userSelect=a,ee(!1)};d.addEventListener(`mousemove`,o),d.addEventListener(`mouseup`,s)}})]})]})}var yy,by,xy,Sy,Cy=t((()=>{yy=e(r()),Ne(),yt(),jt(),M(),D(),ft(),N(),Ct(),Ye(),xt(),kn(),qv(),hy(),by=l(),xy=512,Sy={FADE_IN:my.animationFadeIn,SCALE_IN:my.animationScaleIn,SLIDE_UP:my.animationSlideUp}}));function wy(e){return(0,Ty.jsx)(vy,{...e,editor:null})}var Ty,Ey=t((()=>{r(),Cy(),Ty=l()})),Dy=t((()=>{r(),Fo(),l()})),Oy=t((()=>{r(),M(),b_(),it(),ge(),v(),N(),Ye(),nt(),k(),Dy(),Cy(),l()})),ky,Ay,jy,My,Ny=t((()=>{ky=e(r()),Ey(),Oy(),Ay=l(),jy=wy,My=ky.memo(function(e){return(0,Ay.jsx)(jy,{...e})})})),Py,Fy=t((()=>{Py=e=>`clip-${e}`}));function Iy(e,t){let n=Math.min(Math.max(e/Math.max(1,t),0),1),r=1-n;return{pathD:`M 0,1 L 0,0 1,0 1,1 0,${r} Z`,gapFactor:n,yNormalized:r}}function Ly(e,t,n){let r=Math.min(Math.max(e/Math.max(1,t),0),1),i=1-r,a=[];for(let e=0;e<=n;e+=1){let t=1-e/n,i=2*t-1,o=1-i*i*r;
67a.push(`L ${t},${o}`)}return{pathD:`M 0,1 L 0,0 1,0 1,1 ${a.join(` `)} Z`,gapFactor:r,yNormalized:i}}var Ry=t((()=>{}));function zy({type:e,height:t,sectionId:n,geometry:r}){let i=Py(n),a=Vy(e,t,r);return a?(0,By.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:0,height:0,"aria-hidden":!0,focusable:`false`,children:(0,By.jsx)(`defs`,{children:(0,By.jsx)(`clipPath`,{id:i,clipPathUnits:`objectBoundingBox`,children:(0,By.jsx)(`path`,{d:a.pathD})})})}):null}var By,Vy,Hy=t((()=>{r(),Fy(),Ry(),By=l(),Vy=(e,t,n)=>{if(e===`tilt`)return Iy(t,n.height);if(e===`curve`)return Ly(t,n.height,24);if(e===`sharp`)return Ly(t,n.height,2)}})),Uy,Wy,Gy,Ky,qy,Jy,Yy,Xy,Zy,Qy=t((()=>{Uy=`Rby1c7uT`,Wy=`mAdZBRUn`,Gy=`_1hA9H8o6`,Ky=`_4rwn1L08`,qy=`GH4ZxIMa`,Jy=`obqS7o0l`,Yy=`BlGq-Xuw`,Xy=`E-HF-YGO`,Zy={background:Uy,backgroundOverlay:Wy,backgroundColor:Gy,backgroundGradient:Ky,backgroundImage:qy,backgroundVideo:Jy,backgroundParallax:Yy,mainBackground:Xy}}));function $y({background:e,sectionId:t,sectionGeometry:n,divider:r}){let i=be(),a=(0,eb.useRef)(null),o=Py(t),s=i.areaKind===`header`,c=Ce(),l=e?.activeBackground?e:se();return(0,tb.jsxs)(`div`,{ref:a,className:Zy.mainBackground,style:{clipPath:`url(#${o})`},children:[l&&!s&&(0,tb.jsx)(Dn,{...l,imageFetchPriority:c}),n.width>0&&n.height>0&&r&&r.type!==null&&(0,tb.jsx)(zy,{type:r.type,height:r.height,geometry:n,sectionId:t})]})}var eb,tb,nb=t((()=>{eb=e(r()),Fy(),Hy(),M(),N(),et(),kn(),Qy(),tb=l()}));function rb(e,t){let n=$e();return typeof t==`number`?{top:t,bottom:t}:e?e.styles.padding===null?{top:n.sectionPadding,bottom:n.sectionPadding}:e.styles.padding:{top:0,bottom:0}}var ib=t((()=>{N()})),ab,ob,sb,cb,lb,ub,db,fb,pb=t((()=>{ab=`nTh2pS4S`,ob=`o7oXtQlF`,sb=`xmR6rRyf`,cb=`my6K-FE8`,lb=`lBG9BiGA`,ub=`ZiARKQb9`,db=`_1geT0mW-`,fb={section:ab,sectionWrapper:ob,sectionWrapperEditor:sb,desktopHidden:cb,mobileHidden:lb,fullHeight:ub,content:db}}));function mb(e){let t=we();return e===`header`?t.header?.styles?.desktop.innerPadding??null:null}function hb({sectionId:e,previousSectionId:t,nextSectionId:n,hoveredSectionId:r,onHoverChange:i,zIndex:a,additionalTopOffset:o=0,scrollMarginTopOffset:s=0,editor:c}){let l=be(),u=Pe(e),d=Pe(t),f=vb(l.areaKind),m=(0,gb.useRef)(null),[h,g]=(0,gb.useState)(!1),_=rb(u,f),v=rb(d,f),{respectVisibilityRules:y,showEditorChrome:x}=Ve(),S=!!u?.divider&&u.divider.type!==null,ee=Tr(m,{isEnabled:S,shouldFreezeWhileGoogleTranslateActive:!0});if(!u)return null;let{id:C,styles:w,visibility:te,divider:T,organisms:E,background:D}=u,ne=P(`section`,fb.section,{[fb.mobileHidden]:te?.mobile===!1&&y,[fb.desktopHidden]:te?.desktop===!1&&y}),O=P(`sectionWrapper`,fb.sectionWrapper,{[fb.fullHeight]:u.styles.isFullHeight,[fb.sectionWrapperEditor]:!1}),k=c?.isSectionSelected(u.id)??!1,re=r===u.id,ie=r===n,ae=!!c&&x&&l.areaKind!==`header`&&(re||ie),A=E.length,oe=!!c&&x&&l.areaKind!==`header`;return(0,_b.jsx)(br,{children:(0,_b.jsx)(ve,{value:u.id,children:(0,_b.jsxs)(`section`,{ref:m,id:u.contentId,className:ne,"data-area-kind":l.areaKind,onMouseEnter:()=>{x&&i(u.id)},onMouseLeave:()=>{x&&i(null)},onClick:e=>{!x||!c||l.areaKind===`header`||c.onSectionBackgroundClick({sectionId:u.id,event:e})},style:(()=>{let e=!!d?.divider?.type,t=!!T?.type,n=e?`${d?.divider?.height??0}px`:`0px`,r=e?Et(v.bottom):`0px`;return{"--section-padding-top":Et(_.top),"--section-padding-bottom":Et(_.bottom),"--section-justify":p(w.verticalAlignment),"--incoming-section-divider-height":n,"--incoming-section-bottom-padding":r,"--incoming-section-additional-offset":`${o}px`,"--incoming-section-top-gap":`calc(var(--incoming-section-divider-height, 0px) + var(--incoming-section-bottom-padding, 0px) + var(--incoming-section-additional-offset, 0px))`,"--section-divider-height":`${T?.height??0}px`,"--section-margin-bottom":`calc(var(--section-divider-height, 0px) + var(--section-padding-bottom, 0px))`,marginBottom:t?`calc(var(--section-margin-bottom) * -1)`:0,scrollMarginTop:s}})(),children:[x&&te&&c?.renderVisibilityOverlay(te),x&&c&&!(c.isMobile&&c.isAtomLocked)&&c.renderTopChrome({sectionId:e,isSelected:k,onHoverChange:g}),(0,_b.jsxs)(`div`,{className:O,style:{zIndex:a},"data-toolbar-hovered":x&&h?`true`:void 0,children:[oe&&c.renderPaddingHandle({sectionId:u.id,nextSectionId:n,position:`top`,hasDivider:S}),(0,_b.jsxs)(`div`,{className:P(fb.content),children:[E.length===0&&x&&c?.renderEmptyState(),E.map(e=>(0,_b.jsx)(b,{value:e.id,children:(0,_b.jsx)(My,{organismId:e.id,isLast:E[A-1
67]===e})},e.id))]}),(0,_b.jsx)($y,{sectionId:C,background:D,sectionGeometry:ee,divider:T}),oe&&c.renderPaddingHandle({sectionId:u.id,nextSectionId:n,position:`bottom`,hasDivider:S})]}),x&&c?.renderBottomChrome({isVisible:ae})]})})})}var gb,_b,vb,yb=t((()=>{gb=e(r()),wr(),yt(),M(),it(),ge(),h(),Dr(),Te(),Ye(),rt(),nt(),Ot(),Ny(),nb(),ib(),pb(),_b=l(),vb=mb}));function bb(e){return(0,xb.jsx)(hb,{...e,editor:null})}var xb,Sb=t((()=>{r(),yb(),xb=l()})),Cb=t((()=>{r(),M(),ge(),nt(),k(),l()})),wb=t((()=>{r(),M(),ge(),v(),Ye(),l()})),Tb=t((()=>{r(),lt(),N(),nt(),l()})),Eb=t((()=>{r(),l()})),Db=t((()=>{r(),M(),b_(),ge(),Cb(),Kt(),Po(),Ye(),nt(),k(),wb(),Tb(),Eb(),yb(),l()})),Ob,kb,Ab,jb,Mb=t((()=>{Ob=e(r()),Sb(),Db(),kb=l(),Ab=bb,jb=Ob.memo(function(e){return(0,kb.jsx)(Ab,{...e})})})),Nb=t((()=>{Mb()})),Pb,Fb,Ib,Lb,Rb,zb,Bb,Vb,Hb,Ub,Wb,Gb,Kb,qb=t((()=>{Pb=`tsDi3hb5`,Fb=`rkhATWhB`,Ib=`z3pxVhOa`,Lb=`c50Go3dg`,Rb=`CvkCmyH-`,zb=`PtOq0tox`,Bb=`JWJzc9Oe`,Vb=`DnJHk-cy`,Hb=`fZN5BF00`,Ub=`_9mebb2lj`,Wb=`Z-c9zI3X`,Gb=`AZSHqCBx`,Kb={header:Pb,headerEmpty:Fb,surface:Ib,surfaceTrack:Lb,surfaceTrackBoxed:Rb,backgroundClip:zb,backgroundLayer:Bb,sections:Vb,headerInfo:Hb,emptyState:Ub,headerEditor:Wb,addButton:Gb}}));function Jb({header:e,showEditorChrome:t,onHeaderNodeChange:n,onLayoutMetricsChange:r,defaultContentWidth:i,defaultSectionPadding:a}){let o=we(),[s,c]=(0,Yb.useState)(null),[l,u]=(0,Yb.useState)(!1),d=(0,Yb.useRef)(null),{window:f}=St(d.current),p=(0,Yb.useCallback)(e=>{d.current=e},[]),m=(0,Yb.useMemo)(()=>{let n=[...e.sections];return t?n:n.sort((e,t)=>e.position-t.position||e.id.localeCompare(t.id))},[e.sections,t]),h=e.settings,g=e.styles,v=h.desktop,y=g.desktop??{},b=v.variant===`boxed`,x=!!g.surface.background?.activeBackground,S=st(y.contentWidth,i),ee=y.innerPadding??a,C=y.boxedInsetTop??64,w=y.boxedInsetBottom??20,te=v.isFixed&&Mx(g.surface.background),T=l&&te,E=bt(`header-surface`,{border:g.surface.border,shadow:g.surface.shadow,borderRadius:g.surface.borderRadius}),D=T,ne={...E,"--header-surface-max-width":S?`${S}px`:`100%`,"--header-inner-padding":`${ee}px`},O=(0,Yb.useMemo)(()=>D?Ie(oe(g.surface.background)):null,[D,g.surface.background]),k=(0,Yb.useMemo)(()=>O?ue(o,O):null,[O,o]),re=_({activeBackground:O?.activeBackground===`solid`||O?.activeBackground===`simple-gradient`?O.activeBackground:null,backgroundSolid:O?.activeBackground===`solid`||O?.activeBackground===`simple-gradient`?O.solid:null,backgroundSimpleGradient:O?.activeBackground===`simple-gradient`?O.simpleGradient:null}),ie=Ge(k),ae=b?{"--header-boxed-inset-top":`${C}px`,"--header-boxed-inset-bottom":`${w}px`}:void 0;return(0,Yb.useEffect)(()=>{if(!f)return;let e=()=>{u(f.scrollY>100)};return e(),f.addEventListener(`scroll`,e,{passive:!0}),f.addEventListener(`resize`,e),()=>{f.removeEventListener(`scroll`,e),f.removeEventListener(`resize`,e)}},[f]),(0,Yb.useEffect)(()=>{let e=f?.document.body;if(e){if(!D||!re||!ie){e.style.removeProperty(`--header-background`),e.style.removeProperty(`--header-font-color`);return}return e.style.setProperty(`--header-background`,re),e.style.setProperty(`--header-font-color`,ie),()=>{e.style.removeProperty(`--header-background`),e.style.removeProperty(`--header-font-color`)}}},[re,ie,f,D]),(0,Yb.useEffect)(()=>{if(!r)return;let e=d.current,t=b?C:0,n=b?w:0;if(!e){r({surfaceHeight:0,insetTop:t,insetBottom:n});return}let i=(i=!0)=>{i&&wt(e.ownerDocument)||r({surfaceHeight:Math.round(e.getBoundingClientRect().height),insetTop:t,insetBottom:n})};if(i(!1),typeof ResizeObserver<`u`){let t=new ResizeObserver(()=>i());return t.observe(e),()=>{t.disconnect()}}if(!f)return;let a=()=>i();return f.addEventListener(`resize`,a),()=>{f.removeEventListener(`resize`,a)}},[w,C,b,r,f,m.length]),(0,Xb.jsx)(`header`,{"data-chrome":t,"data-boxed":b||void 0,"data-fixed":v.isFixed||void 0,"data-shrinks":v.shrinksOnScroll||void 0,"data-scrolled":T||void 0,"data-scroll-opacity-effect":te||void 0,"data-bg-default-opacity":g.surface.background?.solid?.opacity,className:P(Kb.header,t&&Kb.headerEditor),id:e.contentId,ref:n,children:(0,Xb.jsx)(`div`,{className:P(Kb.surfaceTrack,b&&Kb.surfaceTrackBoxed),style:ae,children:(0,Xb.
67jsxs)(`div`,{className:Kb.surface,style:ne,ref:p,children:[x&&(0,Xb.jsx)(`div`,{className:Kb.backgroundClip,children:(0,Xb.jsx)(`div`,{className:Kb.backgroundLayer,children:(0,Xb.jsx)(Dn,{...g.surface.background})})}),(0,Xb.jsx)(ye,{value:{areaKind:`header`,area:e,isMobile:!1,contrastBackground:O,foregroundColorOverride:k},children:(0,Xb.jsx)(`div`,{className:Kb.sections,children:m.map((e,t)=>(0,Xb.jsx)(jb,{sectionId:e.id,previousSectionId:m[t-1]?.id,nextSectionId:m[t+1]?.id,hoveredSectionId:s,onHoverChange:c,zIndex:m.length-t},e.id+e.position))})})]})})})}var Yb,Xb,Zb=t((()=>{Yb=e(r()),yt(),M(),Tt(),ot(),N(),Ct(),xt(),kn(),Nb(),Rx(),qb(),Xb=l()})),Qb,$b,ex,tx,nx,rx,ix,ax,ox,sx,cx,lx,ux,dx,fx=t((()=>{Qb=`EXsdQ3yW`,$b=`L9SHRIqp`,ex=`iH-x3SOh`,tx=`sq8RYj8C`,nx=`iK62g9kA`,rx=`KYbjuA-w`,ix=`FNxH0GKY`,ax=`s9nZ04ki`,ox=`MgA8xN25`,sx=`LljBwaBO`,cx=`_4EtFkeNb`,lx=`BXo7fRzK`,ux=`F4h2o-TP`,dx={headerMobileRoot:Qb,surfaceTrackMobile:$b,surfaceMobile:ex,backgroundClip:tx,backgroundLayer:nx,mobileStandardRoot:rx,mobileStandardBar:ix,mobileLogo:ax,mobileLogoFallback:ox,mobileMenuTrigger:sx,mobileMenuOverlay:cx,mobileMenuPanel:lx,mobileMenuGroups:ux}}));function px(e){return e?.activeBackground===`solid`&&e.solid&&(e.solid.opacity??1)>=Cx?e:Sx}function mx(){return{focusSection:()=>void 0,openFloatingDrawer:()=>void 0}}function hx(e){return[...e].sort((e,t)=>e.position-t.position||e.id.localeCompare(t.id))}function gx(e){let t=[];for(let n of hx(e))for(let e of hx(n.organisms))for(let n of hx(e.molecules))for(let e of hx(n.atoms))t.push(e);return t}function _x({innerPaddingSides:e}){return{top:e?.top??16,right:e?.right??16,bottom:e?.bottom??16,left:e?.left??16}}function vx(e,t,n){return Math.min(Math.max(e,t),n)}function yx(e){let t=(vx(e.styles.height??wx,Tx,Ex)-Tx)/(Ex-Tx);return Math.round(Dx+t*(Ox-Dx))}function bx({logoAtom:e,menuAtoms:t,websiteLabel:n,isMenuOpen:r,onMenuOpenChange:i}){let a=De(),o=we(),s=(0,Q.useMemo)(()=>{let e=o.pages.find(e=>e.fullPath===`/`)?.contentId??null;return e?{activeType:`page`,target:null,page:{pageContentId:e},custom:null,scrollAnchor:null,email:null,phone:null,mediaDownload:null}:null},[o.pages]),c=(0,Q.useMemo)(()=>e?yx(e):null,[e]),[l,u]=(0,Q.useState)(56),d=(0,Q.useRef)(null),{window:f,document:p}=St(d.current);Se(r,p);let m=Fe(o,ue(o,me()).color)??void 0;return(0,Q.useEffect)(()=>{i(!1)},[i,a.fullPath]),(0,Q.useEffect)(()=>{let e=d.current;if(!e)return;let t=(t=!0)=>{t&&wt(e.ownerDocument)||u(Math.round(e.getBoundingClientRect().height))};if(t(!1),typeof ResizeObserver<`u`){let n=new ResizeObserver(()=>t());return n.observe(e),()=>{n.disconnect()}}if(!f)return;let n=()=>t();return f.addEventListener(`resize`,n),()=>{f.removeEventListener(`resize`,n)}},[f]),(0,$.jsxs)(`div`,{className:dx.mobileStandardRoot,"data-open":r?`true`:void 0,style:{"--mobile-standard-bar-height":`${l}px`},children:[(0,$.jsxs)(`div`,{className:dx.mobileStandardBar,ref:d,style:{color:m},children:[(0,$.jsx)(`div`,{className:dx.mobileLogo,children:e?(0,$.jsx)(Qi,{atom:e,height:c}):(0,$.jsx)(Lt,{link:s,defaultTag:`div`,children:(0,$.jsx)(`span`,{className:dx.mobileLogoFallback,children:n})})}),(0,$.jsx)(`button`,{className:dx.mobileMenuTrigger,type:`button`,"aria-label":r?`Menü schließen`:`Menü öffnen`,"aria-expanded":r,onClick:e=>{e.stopPropagation(),t.length!==0&&i(e=>!e)},disabled:t.length===0,children:r?(0,$.jsx)(Ht,{size:20}):(0,$.jsx)(Bt,{size:20})})]}),(0,$.jsx)(`div`,{className:dx.mobileMenuOverlay,"data-open":r?`true`:void 0,onClick:e=>{e.stopPropagation(),i(!1)},children:(0,$.jsx)(`div`,{className:dx.mobileMenuPanel,onClick:e=>{e.target.closest(`a`)&&!e.defaultPrevented&&i(!1),e.stopPropagation()},children:(0,$.jsx)(`div`,{className:dx.mobileMenuGroups,children:t.map(e=>(0,$.jsx)(Oa,{atom:e,onScrollAnchorClick:()=>i(!1)},e.id))})})})]})}function xx({header:e,showEditorChrome:t,onHeaderNodeChange:n,onLayoutMetricsChange:r,defaultContentWidth:i}){let a=we(),{focusSection:o,openFloatingDrawer:s}=kx(),[c,l]=(0,Q.useState)(!1),[u,d]=(0,Q.useState)(!1),f=(0,Q.useRef)(null),p=(0,Q.useCallback)(e=>{f.current=e},[]),{window:m}=St(f.current),h=e.settings,g=e.styles,v=g.desktop??{},y=h.mobile?.variant??`standard`,b=g.mobile??{},x=_x(b),S=b.outerPaddingTop??0,ee=b.outerPaddingBottom??0,C=b.alignment??`center`,w=(0,Q.useMemo)(()=>px(g.mobileSurface?.background),[g.mobileSurface?.background]),te=u?w:g.mobileSurface?.background,T=(0,Q.useMemo)(()=>gx(e.sections),[e.sections]),E=(0,Q.useMemo)(()=>hx(e.sections)[0]?.id??null,[e.sections]),D=(0,Q.useCallback)(()=>{!t||!E||(o(E,`content`),s({top:0,left:0}))},[t,E,o,s]),ne=(0,Q.useMemo)(()=>T.find(e=>e.type===`logo`)??null,[T]),O=(0,Q.useMemo)(()=>T.filter(e=>e.type===`menu`),[T]),k=(0,Q.useMemo)(()=>(O.length>0?O:[null]).map((t,n)=>({id:`${t?.id??e.id}-mobile-menu`,workspace:e.workspace,contentId:`${t?.contentId??e.contentId}-mobile-menu`,experienceId:e.experienceId,websiteId:e.websiteId,position:n,link:null,type:`menu`,settings:t?.settings??{source:`automatic`,items:[]},styles:{align:`left`,marginBottom:0,ignoreMoleculePadding:!1,relativeWidth:100,border:null,variant:`underlined`,gap:16,orientation:`vertical`,horizontalOverflow:`wrap`,lineWidth:null,itemBackgroun
67d:null,highlightColor:null,font:null}})),[e,O]),re=(0,Q.useMemo)(()=>{let e=a.pages.find(e=>e.fullPath===`/`)?.title?.trim(),t=a.domain?.name?.trim();return e||t||`Website`},[a.domain,a.pages]),ie=st(v.contentWidth,i),ae=bt(`header-surface-mobile`,{border:g.mobileSurface?.border??null,shadow:g.mobileSurface?.shadow??null,borderRadius:y===`standard`?null:g.mobileSurface?.borderRadius??null}),A=oe(g.mobileSurface?.background,g.surface?.background),j=h.desktop.isFixed&&Mx(A),se=c&&j,ce=se,le={...ae,"--header-surface-max-width":ie?`${ie}px`:`100%`,"--header-mobile-inner-padding-top":`${x.top}px`,"--header-mobile-inner-padding-right":`${x.right}px`,"--header-mobile-inner-padding-bottom":`${x.bottom}px`,"--header-mobile-inner-padding-left":`${x.left}px`,"--header-mobile-outer-padding-top":`${S}px`,"--header-mobile-outer-padding-bottom":`${ee}px`,"--header-mobile-align":C},de=(0,Q.useMemo)(()=>u?w:ce?Ie(oe(g.mobileSurface?.background,g.surface?.background)):null,[u,w,ce,g.mobileSurface?.background,g.surface?.background]),fe=(0,Q.useMemo)(()=>de?ue(a,de):null,[de,a]),pe=_({activeBackground:de?.activeBackground===`solid`||de?.activeBackground===`simple-gradient`?de.activeBackground:null,backgroundSolid:de?.activeBackground===`solid`||de?.activeBackground===`simple-gradient`?de.solid:null,backgroundSimpleGradient:de?.activeBackground===`simple-gradient`?de.simpleGradient:null}),me=Ge(fe);(0,Q.useEffect)(()=>{if(!m)return;let e=()=>{l(m.scrollY>100)};return e(),m.addEventListener(`scroll`,e,{passive:!0}),m.addEventListener(`resize`,e),()=>{m.removeEventListener(`scroll`,e),m.removeEventListener(`resize`,e)}},[m]),(0,Q.useEffect)(()=>{let e=m?.document.body;if(e){if(!pe||!me){e.style.removeProperty(`--header-background`),e.style.removeProperty(`--header-font-color`);return}return e.style.setProperty(`--header-background`,pe),e.style.setProperty(`--header-font-color`,me),()=>{e.style.removeProperty(`--header-background`),e.style.removeProperty(`--header-font-color`)}}},[pe,me,m]),(0,Q.useEffect)(()=>{if(!r)return;let e=f.current;if(!e){r({surfaceHeight:0,insetTop:S,insetBottom:ee});return}let t=(t=!0)=>{t&&wt(e.ownerDocument)||r({surfaceHeight:Math.round(e.getBoundingClientRect().height),insetTop:S,insetBottom:ee})};if(t(!1),typeof ResizeObserver<`u`){let n=new ResizeObserver(()=>t());return n.observe(e),()=>{n.disconnect()}}if(!m)return;let n=()=>t();return m.addEventListener(`resize`,n),()=>{m.removeEventListener(`resize`,n)}},[r,ee,S,m]);let he;switch(y){default:he=(0,$.jsx)(bx,{logoAtom:ne,menuAtoms:k,websiteLabel:re,isMenuOpen:u,onMenuOpenChange:d});break}return(0,$.jsx)(ye,{value:{areaKind:`header`,area:e,isMobile:!0,contrastBackgroun
67d:de,foregroundColorOverride:fe},children:(0,$.jsx)(`header`,{"data-chrome":t,"data-fixed":h.desktop.isFixed||void 0,"data-scrolled":se||void 0,"data-scroll-opacity-effect":j||void 0,"data-bg-default-opacity":te?.solid?.opacity??g.surface?.background?.solid?.opacity,"data-menu-open":u?`true`:void 0,"data-mobile-variant":y,className:P(Kb.header,t&&Kb.headerEditor,dx.headerMobileRoot),id:e.contentId,ref:n,onClick:D,children:(0,$.jsx)(`div`,{className:dx.surfaceTrackMobile,children:(0,$.jsxs)(`div`,{className:dx.surfaceMobile,style:le,ref:p,children:[te?.activeBackground&&(0,$.jsx)(`div`,{className:dx.backgroundClip,children:(0,$.jsx)(`div`,{className:dx.backgroundLayer,children:(0,$.jsx)(Dn,{...te})})}),he]})})})})}var Q,$,Sx,Cx,wx,Tx,Ex,Dx,Ox,kx,Ax=t((()=>{Q=e(r()),Gt(),yt(),It(),aa(),Na(),M(),Tt(),ot(),N(),Ct(),k(),xt(),kn(),Rx(),qb(),fx(),$=l(),Sx={activeBackground:`solid`,solid:{opacity:1,color:{kind:`token`,token:`paletteA`,shade:3}},simpleGradient:null,mediaImage:null,mediaVideo:null},Cx=.25,wx=64,Tx=0,Ex=256,Dx=40,Ox=64,kx=mx}));function jx(){return null}function Mx(e){return e?.activeBackground===`solid`&&!!e.solid&&(e.solid.opacity??1)<=.7}function Nx({onLayoutMetricsChange:e}){let t=we(),{showEditorChrome:n}=Ve(),r=Lx(),i=t.header,[a,o]=(0,Px.useState)(!1),[s,c]=(0,Px.useState)(null),{window:l}=St(s),u=(0,Px.useCallback)(e=>{c(e)},[]);return(0,Px.useEffect)(()=>{if(!l)return;let e=l.matchMedia(Ix),t=()=>{o(e.matches)};return t(),typeof e.addEventListener==`function`?(e.addEventListener(`change`,t),()=>{e.removeEventListener(`change`,t)}):(e.addListener(t),()=>{e.removeListener(t)})},[l]),(0,Px.useEffect)(()=>{e&&(!i||i.sections.length===0)&&e({surfaceHeight:0,insetTop:0,insetBottom:0})},[i,e]),!i||i.sections.length===0?!n||!r?null:(0,Fx.jsx)(`header`,{className:P(Kb.header,Kb.headerEditor,Kb.headerEmpty),children:(0,Fx.jsx)(`div`,{className:Kb.emptyState,children:(0,Fx.jsx)(`button`,{className:Kb.addButton,onClick:()=>r(void 0,`header`),type:`button`,children:`Header hinzufügen`})})}):a?(0,Fx.jsx)(xx,{header:i,showEditorChrome:n,onHeaderNodeChange:u,onLayoutMetricsChange:e,defaultContentWidth:t.settings.contentWidth,defaultSectionPadding:t.settings.sectionPadding}):(0,Fx.jsx)(Jb,{header:i,showEditorChrome:n,onHeaderNodeChange:u,onLayoutMetricsChange:e,defaultContentWidth:t.settings.contentWidth,defaultSectionPadding:t.settings.sectionPadding})}var Px,Fx,Ix,Lx,Rx=t((()=>{Px=e(r()),yt(),N(),Ct(),k(),Zb(),Ax(),qb(),Fx=l(),Ix=`(max-width: 991px)`,Lx=jx})),zx,Bx,Vx,Hx=t((()=>{zx=e(r()),M(),Nb(),Bx=l(),Vx=zx.memo(function({entry:e,renderedSections:t,hoveredSectionId:n,onHoverChange:r,showEditorChrome:i,headerOverlayOffset:a}){let o=t[e.indexInRenderFlow-1]?.sectionId,s=t[e.indexInRenderFlow+1]?.sectionId,c=Math.max(0,Math.round(a)),l=e.areaKind===`page`&&e.isFirstInArea?c:0;return(0,Bx.jsx)(ye,{value:e.areaKind===`page`?{areaKind:`page`,area:e.area}:{areaKind:`footer`,area:e.area},children:(0,Bx.jsx)(jb,{sectionId:e.sectionId,previousSectionId:o,nextSectionId:s,hoveredSectionId:n,onHoverChange:e=>{i&&r(e)},zIndex:t.length-e.indexInRenderFlow,additionalTopOffset:l,scrollMarginTopOffset:c})})})})),Ux,Wx,Gx,Kx,qx,Jx,Yx=t((()=>{Ux=`_6cjOjI6c`,Wx=`WVOPLII3`,Gx=`db89Hlwz`,Kx=`YOFxyyNl`,qx=`LMAuM8Ef`,Jx={footer:Ux,footerEmpty:Wx,footerInfo:Gx,emptyState:Kx,footerBottomSpacing:qx}}));function Xx(){return null}function Zx(){return we().settings.sectionPadding}function Qx(e,t){return e?e.styles.padding?.bottom??t:0}function $x(e,t){return e?.divider?.type?(e.divider.height??0)+Qx(e,t):0}function eS(e){let{area:t}=De(),n=we().footer??null,r=t.sections[t.sections.length-1]??null;return{pageArea:t,pageSectionIds:t.sections.map(e=>e.id),footerArea:n,footerSectionIds:n?.sections.map(e=>e.id)??[],incomingTopGapPx:$x(r,e)}}function tS({children:e,headerOverlayOffset:t=0}){let{pageArea:n,pageSectionIds:r,footerArea:i,footerSectionIds:a,incomingTopGapPx:o}=oS(aS()),{showEditorChrome:s}=Ve(),c=iS(),[l,u]=(0,nS.useState)(null),d={"--footer-incoming-gap":`${o}px`},f=(0,nS.useMemo)(()=>{let e=r.map((e,t)=>({areaKind:`page`,area:n,sectionId:e,isFirstInArea:t===0,isLastInArea:t===r.length-1,indexInArea:t,indexInRenderFlow:t})),t=a.map((t,n)=>({areaKind:`footer`,area:i,sectionId:t,isFirstInArea:n===0,isLastInArea:n===a.length-1,indexInArea:n,indexInRenderFlow:e.length+n}));return[...e,...t]},[i,a,n,r]),p=f.filter(e=>e.areaKind===`footer`);return!i||a.length===0?!s||!c?null:(0,rS.jsx)(`footer`,{className:P(Jx.footer,Jx.footerEmpty),style:d,children:(0,rS.jsx)(`div`,{className:Jx.emptyState,children:(0,rS.jsx)(`div`,{style:{display:`grid`,justifyItems:`center`,gap:10},children:(0,rS.jsx)(`button`,{onClick:()=>
67c(void 0,`footer`),type:`button`,children:`Footer hinzufügen`})})})}):(0,rS.jsxs)(rS.Fragment,{children:[(0,rS.jsx)(`footer`,{className:P(Jx.footer),id:i.contentId,style:d,children:e??p.map(e=>(0,rS.jsx)(Vx,{entry:e,renderedSections:f,hoveredSectionId:l,onHoverChange:u,showEditorChrome:s,headerOverlayOffset:t},e.sectionId))}),s&&(0,rS.jsx)(`div`,{className:Jx.footerBottomSpacing})]})}var nS,rS,iS,aS,oS,sS=t((()=>{nS=e(r()),yt(),N(),nt(),k(),y(),Hx(),Yx(),rS=l(),iS=Xx,aS=Zx,oS=eS})),cS=t((()=>{sS()})),lS=t((()=>{Rx()})),uS,dS,fS=t((()=>{uS=e=>({root:{type:`root`,format:``,indent:0,version:1,children:[{tag:`h1`,type:`heading`,format:`center`,indent:0,version:1,children:[{font:{size:null,color:null,family:{kind:`token`,token:`h1`},weight:null,isItalic:null,lineHeight:null,isUnderline:null,isUppercase:null,letterSpacing:null},mode:`normal`,text:`Fehler ${e}`,type:`website-text`,style:``,detail:0,format:0,version:1}],direction:null}],direction:null}}),dS=e=>({root:{type:`root`,format:``,indent:0,version:1,children:[{tag:`h1`,type:`heading`,format:`center`,indent:0,version:1,children:[{font:{size:null,color:null,family:{kind:`token`,token:`body`},weight:null,isItalic:null,lineHeight:null,isUnderline:null,isUppercase:null,letterSpacing:null},mode:`normal`,text:e,type:`website-text`,style:``,detail:0,format:0,version:1}],direction:null}],direction:null}})})),pS,mS,hS,gS=t((()=>{pS=`Ri9qWkML`,mS=`ha5DWHQX`,hS={layout:pS,content:mS}}));function _S({website:e,media:t,mode:n,isPreview:r,onFetchAtomData:i}){let[a,o]=(0,vS.useState)({surfaceHeight:0,insetTop:0,insetBottom:0}),s=a.insetTop+a.surfaceHeight;return(0,yS.jsx)(C,{value:e,children:(0,yS.jsx)(re,{value:{id:`error404`,workspace:`LIVE`,contentId:`error404`,experienceId:`error404`,websiteId:e.id,headerAreaId:null,headerAreaContentId:null,headerArea:null,footerAreaId:null,footerAreaContentId:null,footerArea:null,title:`Seite nicht gefunden`,isNoIndex:!0,canonicalUrl:null,meta:{description:``,title:`Seite nicht gefunden`},openGraph:{mediaId:null,mediaPath:null,description:null,title:null},path:`/_404`,schema:`WebPage`,fullPath:`/_404`,isPublic:!0,publishedAt:new Date().toDateString(),area:{id:`0404area`,workspace:`LIVE`,contentId:`0404area`,experienceId:`error404`,websiteId:e.id,kind:`PAGE`,sections:[],settings:null,styles:null},customCode:{htmlBody:null,htmlHead:null,css:null}},children:(0,yS.jsx)(He,{value:{mode:n,isPreview:r,onPreviewLinkIntent:()=>{},onContactFormSubmit:()=>Promise.resolve({success:!1}),fetchAtomData:i},children:(0,yS.jsx)(gt,{config:{baseUrl:`https://img.pacewayscdn.com`},children:(0,yS.jsxs)(qe,{media:t,children:[(0,yS.jsx)(Nx,{onLayoutMetricsChange:o}),(0,yS.jsxs)(`div`,{style:{marginTop:s,minHeight:`calc(100dvh - ${s}px)`},className:hS.layout,children:[(0,yS.jsxs)(`div`,{className:hS.content,children:[(0,yS.jsx)(Za,{atom:{i
67d:`headline`,workspace:`LIVE`,contentId:`headline`,experienceId:`error404`,websiteId:e.id,position:0,link:null,type:`text`,settings:{content:uS(`404`)},styles:{align:`center`,marginBottom:0,ignoreMoleculePadding:!1,relativeWidth:100,border:null}}}),(0,yS.jsx)(Za,{atom:{id:`desc`,workspace:`LIVE`,contentId:`desc`,experienceId:`error404`,websiteId:e.id,position:0,link:null,type:`text`,settings:{content:dS(`Seite nicht gefunden`)},styles:{align:`center`,marginBottom:0,ignoreMoleculePadding:!1,relativeWidth:100,border:null}}})]}),(0,yS.jsx)(tS,{})]})]})})})})})}var vS,yS,bS=t((()=>{vS=e(r(),1),vt(),eo(),Ae(),Je(),Ee(),te(),cS(),lS(),fS(),gS(),yS=l()})),xS,SS=t((()=>{c(),s(),xS=a({method:`GET`}).handler(o(`2fb4098c3a317df46f52c067fba06f80a774ae723e18575134b2626a91f34579`))}));export{tS as a,Hx as c,Cy as d,p_ as f,qh as g,Lh as h,bS as i,Nx as l,qg as m,SS as n,sS as o,t_ as p,_S as r,Vx as s,xS as t,Rx as u};

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.