1import{D as e,at as t,m as n,nt as r}from"./preload-helper-WFbWupcG.js";import{C as i,D as a,E as o,T as s,_ as c,b as l,v as u,y as d}from"./index-BsqDqKrT.js";var f=t(r(),1),p=e(),m=/\[\[(.+?)\]\]|<em>(.*?)<\/em>|\bmira\b|\|/g,h=/(\{[^}]*\})/;function g(e,t){let r=[],i=0,a=0;for(let o of e.matchAll(m)){o.index>i&&r.push(e.slice(i,o.index));let s=`${t}-${a++}`;o[1]===void 0?o[2]===void 0?o[0]===`|`?r.push((0,p.jsx)(`br`,{},s)):r.push((0,p.jsx)(n,{},s)):r.push((0,p.jsx)(`span`,{className:`accent`,children:o[2]},s)):r.push((0,p.jsx)(`span`,{className:`w g`,children:o[1]},s)),i=o.index+o[0].length}return i<e.length&&r.push(e.slice(i)),r}function _({text:e}){return(0,p.jsx)(p.Fragment,{children:e.split(h).filter(Boolean).map((e,t)=>e.startsWith(`{`)&&e.endsWith(`}`)?(0,p.jsx)(`span`,{className:`k`,children:g(e.slice(1,-1),`k${t}`)},t):(0,p.jsx)(f.Fragment,{children:g(e,`s${t}`)},t))})}var v={opacity:0,y:28};function y(e,t=`:scope > *`,{touchOnly:n=!1,pairs:r=!1}={}){o(()=>{let o=e.current;if(!o)return;a.registerPlugin(s);let c=a.matchMedia();return c.add(i(),e=>{let{motion:i,touch:s}=e.conditions;if(!i||n&&!l(e.conditions))return;let c=a.utils.toArray(t,o);if(c.length){if(s){let e=r?2:1;for(let t=0;t<c.length;t+=e){let n=c.slice(t,t+e);a.fromTo(n,v,{opacity:1,y:0,duration:.7,ease:`power2.out`,stagger:.12,scrollTrigger:{trigger:n[0],start:`top 92%`,once:!0}})}return}a.fromTo(c,v,{opacity:1,y:0,ease:`none`,stagger:.6,scrollTrigger:{trigger:o,start:`top 80%`,end:`bottom 50%`,scrub:.6}})}}),()=>c.revert()},{scope:e})}var b=960,x=800,S=120,C=()=>window.innerWidth>b;function w(e){return e.parentElement?.classList.contains(`pin-spacer`)?e.parentElement:e}function T(e){let t=null,n=!1,r=0,i=0,a=()=>{let n=[...e.children].find(e=>{let t=e.getBoundingClientRect();return t.top<=0&&t.bottom>0}),r=n?.classList.contains(`pin-spacer`)?n.firstElementChild:n;if(!n||!r)return;let i=n.getBoundingClientRect();t={el:r,fraction:-i.top/Math.max(i.height,1),wide:C()}},o=()=>{n||(window.clearTimeout(r),r=window.setTimeout(a,S))},c=()=>{n=!0,window.clearTimeout(r),window.clearTimeout(i),i=window.setTimeout(()=>{n=!1,a()},x)},l=()=>{if(!n||!t||!t.el.isConnected||t.wide===C()||window.scrollY>0)return;let e=w(t.el).getBoundingClientRect();window.scrollTo(0,Math.max(window.scrollY+e.top+t.fraction*e.height,0))};return a(),window.addEventListener(`scroll`,o,{passive:!0}),window.addEventListener(`resize`,c,!0),s.addEventListener(`refresh`,l),()=>{window.clearTimeout(r),window.clearTimeout(i),window.removeEventListener(`scroll`,o),window.removeEventListener(`resize`,c,!0),s.removeEventListener(`refresh`,l)}}var E=/\bmira\b/,D=({text:e})=>[...e].map((e,t)=>(0,p.jsx)(`span`,{className:`ch`,"data-ch-char":!0,children:e},t)),O=({text:e})=>e.split(` `).map((e,t)=>(0,p.jsxs)(f.Fragment,{children:[t>0&&(0,p.jsx)(`span`,{className:`ch ch-sp`,"data-ch-char":!0,children:`\xA0`}),(0,p.jsx)(`span`,{className:`ch-w`,children:(0,p.jsx)(D,{text:e})})]},t)),k=()=>(0,p.jsx)(`span`,{className:`ch-logo`,"data-ch-logo":!0,"aria-hidden":`true`,children:(0,p.jsx)(n,{})});function A({text:e,as:t=`h2`,scene:n,aside:r,children:i}){let a=E.exec(e),o=a?e.slice(0,a.index).trim():``,s=a?e.slice(a.index+a[0].length):``,c=a?`${o} ${s}`.trim():e,l=Math.max(...e.split(` `).map(e=>[...e].length)),u={"--n":a?[...e].length:[...e].length+4,"--nw":l},d=a?(0,p.jsxs)(t,{className:`ch-h`,"aria-label":e,style:u,children:[o&&(0,p.jsx)(`span`,{className:`ch-t`,"aria-hidden":`true`,children:(0,p.jsx)(O,{text:o})}),(0,p.jsxs)(`span`,{className:`ch-w ch-mira`,children:[(0,p.jsx)(k,{}),(0,p.jsx)(`span`,{className:`ch-t`,"aria-hidden":`true`,children:(0,p.jsx)(D,{text:s})})]})]}):(0,p.jsxs)(t,{className:`ch-h`,"aria-label":`mira ${c}`,style:u,children:[(0,p.jsx)(k,{}),` `,(0,p.jsx)(`span`,{className:`ch-t`,"aria-hidden":`true`,children:(0,p.jsx)(O,{text:e})})]}),f=(0,p.jsx)(`i`,{className:`ch-glow`,"data-ch-glow":!0,"aria-hidden":`true`});return(0,p.jsx)(`section`,{className:i?`chtitle chtitle-body`:`chtitle`,"data-chapter":!0,"data-scene":n,children:i?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(`div`,{className:`ch-head`,children:[f,d,r]}),i]}):(0,p.jsxs)(p.Fragment,{children:[f,d]})})}function j(e){o(()=>{let t=e.current;if(!t)return;a.registerPlugin(s);let n=a.matchMedia(),r=(e,t,n)=>{let r=n&&e.dataset.scene===`why`,i=t?{from:{opacity:0,scale:.9},to:{opacity:1,scale:1}}:{from:{opacity:0,filter:`blur(8px)`},to:{opacity:1,filter:`blur(0px)`}}
1,o=a.timeline({scrollTrigger:r?{trigger:e,start:`top 92%`,once:!0}:n?{trigger:e,start:`top 85%`,end:`center 45%`,scrub:.6}:{trigger:e,start:`top 75%`,end:`center 50%`,scrub:.6}});r&&o.timeScale(2.4),o.fromTo(e.querySelector(`[data-ch-logo]`),{opacity:0,scale:1.3},{opacity:1,scale:1,ease:`expo.out`,duration:1}).fromTo(e.querySelector(`[data-ch-glow]`),{opacity:0,scale:.6},{opacity:1,scale:1,duration:1.4},.3).fromTo(e.querySelectorAll(`[data-ch-char]`),i.from,{...i.to,duration:.4,stagger:.05},.6)};return n.add({motion:c,touch:d,phone:u},e=>{let{touch:n,phone:i}=e.conditions;a.utils.toArray(`[data-chapter]`,t).forEach(e=>{n&&e.getBoundingClientRect().top<window.innerHeight||r(e,i,n)})}),()=>n.revert()},{scope:e})}var M=[{name:`Deutsches Ãrzteblatt`,src:`/assets/deutsches-aerzteblatt-DV5p7x15.svg`,width:190,height:17},{name:`Handelsblatt`,src:`/assets/handelsblatt-DX03CFjr.svg`,width:134,height:40},{name:`Freie Presse`,src:`/assets/freie-presse-Iis0Hs9t.svg`,width:135,height:26},{name:`n-tv`,src:`/assets/n-tv-CboFFGSh.svg`,width:56,height:36},{name:`Sächsische Zeitung`,src:`/assets/saechsische-zeitung-DC5hK5P3.png`,width:2376,height:709}];function N({label:e}){return(0,p.jsxs)(`div`,{className:`press-logos`,children:[(0,p.jsx)(`p`,{className:`press-logos-label`,children:e}),(0,p.jsx)(`ul`,{className:`press-logos-list`,children:M.map(e=>(0,p.jsx)(`li`,{className:e.width/e.height>6?`wide`:void 0,children:(0,p.jsx)(`img`,{src:e.src,alt:e.name,width:e.width,height:e.height,loading:`lazy`,decoding:`async`})},e.name))})]})}function P(e,t){let n=[...e.querySelectorAll(`.w`)],r=e=>{let t=Math.round(e*n.length);n.forEach((e,n)=>e.classList.toggle(`on`,n<t))};return r(0),s.create({trigger:e,start:`top 80%`,end:t?`bottom 70%`:`bottom 45%`,scrub:!0,onUpdate:e=>r(e.progress)}),()=>n.forEach(e=>e.classList.add(`on`))}function F(e){j(e),o(()=>{let t=e.current;if(!t)return;a.registerPlugin(s);let n=a.matchMedia(),r=T(t);return n.add({motion:c,phone:u},e=>{let{motion:n,phone:r}=e.conditions;if(!n)return;let i=a.utils.toArray(`[data-scrub]`,t).map(e=>P(e,r)),o=t.querySelector(`.nodes`),c=t.querySelector(`[data-bridge-line]`);if(o&&c){let e=r?{scaleY:0}:{scaleX:0},n=r?{scaleY:1}:{scaleX:1};a.timeline({defaults:{ease:`none`},scrollTrigger:{trigger:o,start:`top 85%`,end:`top 45%`,scrub:!0}}).fromTo(c,e,{...n,duration:1}),a.from(`[data-bridge-node]`,{scale:.6,opacity:0,duration:1,ease:`back.out(1.6)`,stagger:.12,scrollTrigger:{trigger:o,start:`top 80%`,once:!0}});let i=t.querySelector(`[data-bridge-flow]`),l=t.querySelector(`.nodes .pulse`),u=a.utils.toArray(`[data-bridge-node] .dot`,t);if(i&&l&&u.length===3){let e=1.9,t=r?`yPercent`:`xPercent`,n=`power2.inOut`,c=a.timeline({repeat:-1,repeatDelay:2.5,paused:!0});c.set(i,{[t]:-100},0),c.to(l,{opacity:1,duration:.4},0),c.to(i,{[t]:-50,duration:e,ease:n},0),c.to(i,{[t]:0,duration:e,ease:n},2.4),c.to(l,{opacity:0,duration:.4},4),[e,4.3].forEach((e,t)=>{c.fromTo(u[t+1]??l,{"--ring":0},{"--ring":1,duration:.5,ease:`power1.out`,yoyo:!0,repeat:1},e-.1)}),s.create({trigger:o,start:`top 45%`,end:`bottom top`,onToggle:e=>e.isActive?c.play():c.pause()})}}let l=a.utils.toArray(`[data-strike]`,t);return l.length&&a.fromTo(l,{"--strike":0},{"--strike":1,ease:`none`,stagger:.4,scrollTrigger:{trigger:l[0]?.parentElement,start:`top 80%`,end:`top 45%`,scrub:.5}}),()=>i.forEach(e=>e())}),()=>{r(),n.revert()}},{scope:e})}var I=/(\{[^}]*\})/,L=/^\[\[(.+)\]\](.*)$/;function R({token:e}){let t=L.exec(e);return t?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`span`,{className:`w g on`,children:t[1]}),t[2]]}):(0,p.jsx)(`span`,{className:`w on`,children:e===`mira`?(0,p.jsx)(n,{}):e})}function z(e){return e.split(` `).map((e,t)=>(0,p.jsxs)(f.Fragment,{children:[t>0&&` `,e&&(0,p.jsx)(R,{token:e})]},t))}function B({text:e,className:t,as:n=`p`}){return(0,p.jsx)(n,{className:t?`scrub ${t}`:`scrub`,"data-scrub":!0,children:e.split(I).filter(Boolean).map((e,t)=>e.startsWith(`{`)&&e.endsWith(`}`)?(0,p.jsx)(`span`,{className:`k`,children:z(e.slice(1,-1))},t):(0,p.jsx)(f.Fragment,{children:z(e)},t))})}export{j as a,y as c,N as i,_ as l,P as n,A as o,F as r,T as s,B as t};
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.