1import{l as v,d as j,R as U,A as C,E as X,I as H,K as R,J as T,V as G,B as Q,z as B,M as D,W as K,a0 as N,a1 as $,a2 as J,a3 as Z,L as A,o as V,Q as q,a4 as ee,a5 as _,s as y,c as g,e as te}from"./CMN-VfcR.js";import{_ as ne}from"./DlAUqK2U.js";const oe=140;function O(e,t,o){const a=Math.sin(e*97.13)*1e4,n=a-Math.floor(a);return t+n*(o-t)}function ae(e=0,t){return{style:v(()=>({"--floating-delay":`${Math.round(e*oe+O(e+1,0,90))}ms`,"--floating-offset-y":`${Math.round(O(e+2,-18,18))}px`,"--floating-rotation":t??`${O(e+3,-3,3).toFixed(2)}deg`,"--floating-idle-start-offset":`${Math.round(O(e+4,0,1400))}ms`}))}}const ie=["src","alt"],le=j({__name:"FloatingWindow",props:{index:{default:0},frameSrc:{default:""},frameAlt:{default:""},href:{default:""},contentClass:{default:""},rotation:{default:void 0},idleFloat:{type:Boolean,default:!1}},setup(e){const t=e,{style:o}=ae(t.index,t.rotation),a=v(()=>t.href?"a":"div");return(n,i)=>(C(),U(G(R(a)),{href:e.href||void 0,class:T(["floating-window",{"floating-window--with-frame":!!e.frameSrc}]),style:H(R(o))},{default:X(()=>[Q("div",{class:T(["floating-window__motion",{"floating-window__motion--idle":e.idleFloat}])},[e.frameSrc?(C(),B("img",{key:0,class:"floating-window__frame",src:e.frameSrc,alt:e.frameAlt},null,8,ie)):D("",!0),n.$slots.default?(C(),B("div",{key:1,class:T(["floating-window__content",[e.contentClass,{"floating-window__content--framed":!!e.frameSrc}]])},[K(n.$slots,"default",{},void 0,!0)],2)):D("",!0)],2)]),_:3},8,["href","class","style"]))}}),Ae=Object.assign(ne(le,[["__scopeId","data-v-ff70746a"]]),{__name:"FloatingWindow"}),Ce=""+new URL("background-desktop.DcpOVOkq.jpg",import.meta.url).href,Te=""+new URL("background-mobile.hiMakhNT.jpg",import.meta.url).href,ke=""+new URL("button-ok.DedgAyKQ.png",import.meta.url).href,xe=""+new URL("button-yes.Cd1gYOS5.png",import.meta.url).href,We=""+new URL("window-1.CtWdLMmY.png",import.meta.url).href,Ie=""+new URL("window-2.B3nFzXGY.png",import.meta.url).href,Re=""+new URL("window-3.NUCHR01z.png",import.meta.url).href,Pe=""+new URL("window-4.C6re9AUG.png",import.meta.url).href,Ne=""+new URL("window-start.C5N4CzFv.png",import.meta.url).href,k=new WeakMap,re=(...e)=>{var t;const o=e[0],a=(t=N())===null||t===void 0?void 0:t.proxy,n=a??J();if(n==null&&!$())throw new Error("injectLocal must be called in setup");return n&&k.has(n)&&o in k.get(n)?k.get(n)[o]:Z(...e)},ue=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const se=Object.prototype.toString,ce=e=>se.call(e)==="[object Object]";function Y(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function x(e){return Array.isArray(e)?e:[e]}function de(e){return N()}function fe(e,t=!0,o){de()?V(e,o):t?e():q(e)}function ve(e,t,o){return A(e,t,{...o,immediate:!0})}const F=ue?window:void 0;function me(e){var t;const o=_(e);return(t=o?.$el)!==null&&t!==void 0?t:o}function P(...e){const t=(a,n,i,l)=>(a.addEventListener(n,i,l),()=>a.removeEventListener(n,i,l)),o=v(()=>{const a=x(_(e[0])).filter(n=>n!=null);return a.every(n=>typeof n!="string")?a:void 0});return ve(()=>{var a,n;return[(a=(n=o.value)===null||n===void 0?void 0:n.map(i=>me(i)))!==null&&a!==void 0?a:[F].filter(i=>i!=null),x(_(o.value?e[1]:e[0])),x(R(o.value?e[2]:e[1])),_(o.value?e[3]:e[2])]},([a,n,i,l],r,d)=>{if(!a?.length||!n?.length||!i?.length)return;const u=ce(l)?{...l}:l,h=a.flatMap(f=>n.flatMap(m=>i.map(c=>t(f,m,c,u))));d(()=>{h.forEach(f=>f())})},{flush:"post"})}function he(){const e=y(!1),t=N();return t&&V(()=>{e.value=!0},t),e}function pe(e){const t=he();return v(()=>(t.value,!!e()))}const we=Symbol("vueuse-ssr-width");function ge(){const e=$()?re(we,null):null;return typeof e=="number"?e:void 0}function z(e,t={}){const{window:o=F,ssrWidth:a=ge()}=t,n=pe(()=>o&&"matchMedia"in o&&typeof o.matchMedia=="function"),i=y(typeof a=="number"),l=y(),r=y(!1),d=u=>{r.value=u.matches};return ee(()=>{if(i.value){i.value=!n.value,r.value=_(e).split(",").some(u=>{const h=u.includes("not all"),f=u.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),m=u.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let c=!!(f||m);return f&&c&&(c=a>=Y(f[1])),m&&c&&(c=a<=Y(m[1])),h?!c:c});return}n.value&&(l.value=o.matchMedia(_(e)),r.value=l.value.matches)}),P(l,"change",d,{passive:!0}),v(()=>r.value)}function Ve(e={}){const{window:t=F,initialWidth:o=Number.POSITIVE_INFINITY,initialHeight:a=Number.POSITIVE_INFINITY,listenOrientation:n=!0,includeScrollbar:i=!0,type:l="inner"}=e,r=y(o),d=y(a),u=()=>{if(t)if(l==="outer")r.value=t.outerWidth,d.value=t.outerHeight;
1else if(l==="visual"&&t.visualViewport){const{width:f,height:m,scale:c}=t.visualViewport;r.value=Math.round(f*c),d.value=Math.round(m*c)}else i?(r.value=t.innerWidth,d.value=t.innerHeight):(r.value=t.document.documentElement.clientWidth,d.value=t.document.documentElement.clientHeight)};u(),fe(u);const h={passive:!0};return P("resize",u,h),t&&l==="visual"&&t.visualViewport&&P(t.visualViewport,"resize",u,h),n&&A(z("(orientation: portrait)"),()=>u()),{width:r,height:d}}const _e="(min-width: 768px) and (orientation: landscape)";function Fe(){return z(_e)}const ye=18,Me=.18;function W(e,t,o){return Math.min(Math.max(e,t),o)}function be(){if(typeof window.screen?.orientation?.angle=="number")return window.screen.orientation.angle;const e=window.orientation;return typeof e=="number"?e:0}function Le({enabled:e,maxTilt:t=ye,smoothing:o=Me}){const a=g(0),n=g(0),i=g("idle"),l=g(!1),r=v(()=>Math.max(t,1)),d=v(()=>W(o,.01,1));let u=null;function h(){a.value=0,n.value=0}function f(){u?.(),u=null}function m(s,w){const p=be();let M=w/r.value,b=-s/r.value;p===90?(M=s/r.value,b=w/r.value):(p===-90||p===270)&&(M=-s/r.value,b=-w/r.value);const S=W(M,-1,1),E=W(b,-1,1);a.value+=(S-a.value)*d.value,n.value+=(E-n.value)*d.value}function c(s){!e.value||s.beta===null||s.gamma===null||(l.value=!0,i.value!=="granted"&&(i.value="granted"),m(s.beta,s.gamma))}function L(){if(u||i.value!=="granted")return;const s=w=>c(w);window.addEventListener("deviceorientation",s,!0),u=()=>window.removeEventListener("deviceorientation",s,!0)}return V(()=>{if(!("DeviceOrientationEvent"in window)){i.value="unsupported";return}l.value=!0;const s=window.DeviceOrientationEvent;i.value=typeof s.requestPermission=="function"?"idle":"granted",e.value&&i.value==="granted"&&L()}),te(()=>{f()}),A(e,s=>{if(!s){f(),h();return}i.value==="granted"&&L()},{immediate:!0}),{tiltX:a,tiltY:n,isSupported:v(()=>l.value&&i.value!=="unsupported")}}const Se=.65;function I(e,t,o){return Math.min(Math.max(e,t),o)}function ze({enabled:e,strength:t=Se}){const o=g(null),a=g(0),n=g(0),i=z("(prefers-reduced-motion: reduce)"),l=v(()=>e.value&&!i.value),r=v(()=>!e.value&&!i.value),d=v(()=>I(t,0,1)),{tiltX:u,tiltY:h}=Le({enabled:r}),f=v(()=>l.value?a.value:u.value),m=v(()=>l.value?n.value:h.value);function c(){a.value=0,n.value=0}function L(p){if(!l.value||!o.value)return;const{left:M,top:b,width:S,height:E}=o.value.getBoundingClientRect();!S||!E||(a.value=I(((p.clientX-M)/S-.5)*2,-1,1),n.value=I(((p.clientY-b)/E-.5)*2,-1,1))}function s(){c()}A(l,p=>{p||c()},{immediate:!0});const w=v(()=>({"--pointer-parallax-x":(f.value*d.value).toFixed(4),"--pointer-parallax-y":(m.value*d.value).toFixed(4)}));return{containerRef:o,style:w,handlePointerMove:L,handlePointerLeave:s}}export{Ae as _,ze as a,Ce as b,Te as c,ke as d,xe as e,We as f,Ie as g,Re as h,Pe as i,Ne as j,Ve as k,Fe 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.