import{n as e,s as t}from"./rolldown-runtime-BG2f4sTM.js";import{Dvt as n,Mvt as r,Nvt as i,Qdt as a,Ydt as o,aft as s,dft as c,dl as l,fl as u,gft as d,ll as f,sft as p,tft as ee,ul as te}from"./app-initial-BHB6SClA.js";function m(e,t){let n=Math.sin((e+1)*12.9898+t*78.233)*43758.5453;return n-Math.floor(n)}var h=e((()=>{})),g,ne,re,ie,_,ae,v,y,b=e((()=>{g=`_FastTrackParticles_1pz9e_1`,ne=`_FastTrackParticleTravel_1pz9e_1`,re=`_FastTrackParticlePath_1pz9e_7`,ie=`_TrackParticle_1pz9e_22`,_=`_TrackParticles_1pz9e_38`,ae=`_Burst_1pz9e_76`,v=`_ParticleBurst_1pz9e_1`,y={FastTrackParticles:g,FastTrackParticleTravel:ne,FastTrackParticlePath:re,TrackParticle:ie,TrackParticles:_,Burst:ae,ParticleBurst:v}}));function oe(e){let t=(0,x.c)(5),{animationActive:n,initialStartPercent:r}=e,[i]=(0,se.useState)(r),a=1-Math.min(Math.max(i,0),100)/100,o;t[0]===a?o=t[1]:(o=Array.from({length:14},(e,t)=>{let n=1+(m(t,21)-.5)*2*le,r=S/n,i=r*a,o=.4+m(t,11)*.6,s=.5+m(t,12)*.45;return(0,ce.jsx)(`span`,{className:y.FastTrackParticlePath,style:{animationDelay:`${t*C-i}s`,animationDuration:`${r}s`,top:`${12+m(t,23)*76}%`},children:(0,ce.jsx)(`span`,{className:y.TrackParticle,style:{opacity:o,transform:`translate(-50%, -50%) scale(${s})`}})},t)}),t[0]=a,t[1]=o);let s;return t[2]!==n||t[3]!==o?(s=(0,ce.jsx)(`span`,{"aria-hidden":!0,className:y.FastTrackParticles,"data-animation-active":n,children:o}),t[2]=n,t[3]=o,t[4]=s):s=t[4],s}var x,se,ce,S,le,C,ue=e((()=>{x=r(),se=t(i(),1),h(),b(),ce=n(),S=1.9,le=.2,C=S/14}));function de(){let e=(0,pe.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,w.jsx)(`span`,{"aria-hidden":!0,className:y.Burst,children:Array.from({length:16},fe)}),e[0]=t):t=e[0],t}function fe(e,t){return(0,w.jsx)(`span`,{},t)}var pe,w,me=e((()=>{pe=r(),b(),w=n()})),he,T,ge,_e,E,D=e((()=>{he=`_Fill_notip_7`,T=`_Reveal_notip_1`,ge=`_Mask_notip_14`,_e=`_Canvas_notip_61`,E={Fill:he,Reveal:T,Mask:ge,Canvas:_e}}));function ve(e){let t=(0,k.c)(7),{active:n,reveal:r,shouldReduceMotion:i}=e,a=(0,xe.useRef)(null),o,s;t[0]!==n||t[1]!==i?(o=()=>{if(!n)return;let e=a.current;if(e!=null)return ye(e,i)},s=[n,i],t[0]=n,t[1]=i,t[2]=o,t[3]=s):(o=t[2],s=t[3]),(0,xe.useEffect)(o,s);let c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,A.jsx)(`span`,{className:E.Mask,children:(0,A.jsx)(`canvas`,{className:E.Canvas,ref:a})}),t[4]=c):c=t[4];let l;return t[5]===r?l=t[6]:(l=(0,A.jsx)(`span`,{"aria-hidden":!0,className:E.Fill,"data-reveal":r,children:c}),t[5]=r,t[6]=l),l}function ye(e,t){if(typeof WebGLRenderingContext>`u`||typeof ResizeObserver>`u`)return;let n=e.getContext(`webgl`,{alpha:!0,antialias:!1,depth:!1,powerPreference:`high-performance`,stencil:!1});if(n==null)return;let r=be(n);if(r==null)return;let i=n.createBuffer();if(i==null){n.deleteProgram(r);return}let a=n.getAttribLocation(r,`aPosition`),o=n.getUniformLocation(r,`uResolution`),s=n.getUniformLocation(r,`uTime`),c=performance.now(),l=0;n.useProgram(r),n.bindBuffer(n.ARRAY_BUFFER,i),n.bufferData(n.ARRAY_BUFFER,N,n.STATIC_DRAW),n.enableVertexAttribArray(a),n.vertexAttribPointer(a,2,n.FLOAT,!1,0,0);let u=e=>{n.uniform1f(s,e),n.drawArrays(n.TRIANGLES,0,6)},d=()=>{let r=Math.min(window.devicePixelRatio,2),{height:i,width:a}=e.getBoundingClientRect(),s=Math.max(Math.round(a),1),l=Math.max(Math.round(i),1);e.width=Math.round(s*r),e.height=Math.round(l*r),n.viewport(0,0,e.width,e.height),n.uniform2f(o,s,l),u(t?0:(performance.now()-c)/1e3)},f=e=>{l=0,u((e-c)/1e3),l=window.requestAnimationFrame(f)},p=new ResizeObserver(d);return d(),p.observe(e),t||(l=window.requestAnimationFrame(f)),()=>{l!==0&&window.cancelAnimationFrame(l),p.disconnect(),n.deleteBuffer(i),n.deleteProgram(r)}}function be(e){let t=O(e,e.VERTEX_SHADER,j),n=O(e,e.FRAGMENT_SHADER,M);if(t==null||n==null)return t!=null&&e.deleteShader(t),n!=null&&e.deleteShader(n),null;let r=e.createProgram();return r==null?(e.deleteShader(t),e.deleteShader(n),null):(e.attachShader(r,t),e.attachShader(r,n),e.linkProgram(r),e.deleteShader(t),e.deleteShader(n),e.getProgramParameter(r,e.LINK_STATUS)?r:(e.deleteProgram(r),null))}function O(e,t,n){let r=e.createShader(t);return r==null?null:(e.shaderSource(r,n),e.compileShader(r),e.getShaderParameter(r,e.COMPILE_STATUS)?r:(e.deleteShader(r),null))}var k,xe,A,j,M,N,P=e((()=>{k=r(),xe=t(i(),1),D(),A=n(),j=`
  attribute vec2 aPosition;
  varying vec2 vUv;

  void main() {
    vUv = aPosition * 0.5 + 0.5;
    gl_Position = vec4(aPosition, 0.0, 1.0);
  }
`,M=`
  precision highp float;

  varying vec2 vUv;

  uniform float uTime;
  uniform vec2 uResolution;

  const vec3 COLOR_1 = vec3(0.592, 0.388, 0.945);
  const vec3 COLOR_2 = vec3(0.831, 0.710, 0.953);
  const vec3 COLOR_3 = vec3(0.286, 0.000, 0.404);
  const vec3 COLOR_4 = vec3(0.145, 0.055, 0.478);
  const vec3 COLOR_5 = vec3(0.592, 0.000, 0.996);
  const vec3 COLOR_6 = vec3(0.780, 0.459, 0.914);
  const vec3 COLOR_7 = vec3(0.725, 0.576, 1.000);
  const vec3 COLOR_8 = vec3(0.400, 0.212, 0.820);
  const vec3 COLOR_9 = vec3(0.882, 0.690, 1.000);
  const vec3 COLOR_10 = vec3(0.498, 0.345, 0.957);
  const vec3 COLOR_11 = vec3(0.659, 0.275, 0.910);
  const vec3 COLOR_12 = vec3(0.212, 0.063, 0.400);

  float grain(vec2 uv) {
    vec2 grainUv = uv * uResolution * 0.5;
    return fract(sin(dot(grainUv + uTime, vec2(12.9898, 78.233))) * 43758.5453) * 2.0 - 1.0;
  }

  float fieldWeight(vec2 point, vec2 center) {
    return exp(-dot(point - center, point - center) * 12.0);
  }

  vec3 fieldColor(vec2 rawUv) {
    const float speed = 1.25;
    vec2 uv = vec2(rawUv.x, 0.40 + rawUv.y * 0.18);
    vec2 spatialScale = vec2(1.55, 1.0);
    vec2 point = uv * spatialScale;
    vec2 center1 = vec2(0.18 + sin(uTime * speed * 0.42) * 0.18, 0.36 + cos(uTime * speed * 0.50) * 0.42) * spatialScale;
    vec2 center2 = vec2(0.34 + cos(uTime * speed * 0.62) * 0.24, 0.62 + sin(uTime * speed * 0.47) * 0.38) * spatialScale;
    vec2 center3 = vec2(0.52 + sin(uTime * speed * 0.38) * 0.28, 0.30 + cos(uTime * speed * 0.58) * 0.36) * spatialScale;
    vec2 center4 = vec2(0.70 + cos(uTime * speed * 0.54) * 0.24, 0.68 + sin(uTime * speed * 0.41) * 0.36) * spatialScale;
    vec2 center5 = vec2(0.88 + sin(uTime * speed * 0.74) * 0.16, 0.36 + cos(uTime * speed * 0.64) * 0.40) * spatialScale;
    vec2 center6 = vec2(0.12 + cos(uTime * speed * 0.48) * 0.20, 0.72 + sin(uTime * speed * 0.70) * 0.30) * spatialScale;
    vec2 center7 = vec2(0.30 + sin(uTime * speed * 0.58) * 0.22, 0.44 + cos(uTime * speed * 0.52) * 0.42) * spatialScale;
    vec2 center8 = vec2(0.46 + cos(uTime * speed * 0.68) * 0.26, 0.72 + sin(uTime * speed * 0.56) * 0.32) * spatialScale;
    vec2 center9 = vec2(0.60 + sin(uTime * speed * 0.44) * 0.28, 0.26 + cos(uTime * speed * 0.60) * 0.38) * spatialScale;
    vec2 center10 = vec2(0.76 + cos(uTime * speed * 0.50) * 0.22, 0.54 + sin(uTime * speed * 0.66) * 0.40) * spatialScale;
    vec2 center11 = vec2(0.92 + sin(uTime * speed * 0.70) * 0.15, 0.66 + cos(uTime * speed * 0.46) * 0.30) * spatialScale;
    vec2 center12 = vec2(0.06 + cos(uTime * speed * 0.40) * 0.14, 0.32 + sin(uTime * speed * 0.60) * 0.40) * spatialScale;
    float weight1 = fieldWeight(point, center1) * (0.7 + 0.3 * sin(uTime * 0.91));
    float weight2 = fieldWeight(point, center2) * (0.7 + 0.3 * cos(uTime * 1.07));
    float weight3 = fieldWeight(point, center3) * (0.7 + 0.3 * sin(uTime * 0.76));
    float weight4 = fieldWeight(point, center4) * (0.7 + 0.3 * cos(uTime * 1.18));
    float weight5 = fieldWeight(point, center5) * (0.7 + 0.3 * sin(uTime * 1.03));
    float weight6 = fieldWeight(point, center6) * (0.7 + 0.3 * cos(uTime * 0.83));
    float weight7 = fieldWeight(point, center7) * (0.7 + 0.3 * sin(uTime * 1.24));
    float weight8 = fieldWeight(point, center8) * (0.7 + 0.3 * cos(uTime * 0.96));
    float weight9 = fieldWeight(point, center9) * (0.7 + 0.3 * sin(uTime * 1.11));
    float weight10 = fieldWeight(point, center10) * (0.7 + 0.3 * cos(uTime * 0.72));
    float weight11 = fieldWeight(point, center11) * (0.7 + 0.3 * sin(uTime * 1.29));
    float weight12 = fieldWeight(point, center12) * (0.7 + 0.3 * cos(uTime * 0.88));
    float totalWeight = max(
      weight1 + weight2 + weight3 + weight4 + weight5 + weight6 +
        weight7 + weight8 + weight9 + weight10 + weight11 + weight12,
      0.0001
    );
    vec3 color = (
      COLOR_1 * weight1 + COLOR_2 * weight2 + COLOR_3 * weight3 +
      COLOR_4 * weight4 + COLOR_5 * weight5 + COLOR_6 * weight6 +
      COLOR_7 * weight7 + COLOR_8 * weight8 + COLOR_9 * weight9 +
      COLOR_10 * weight10 + COLOR_11 * weight11 + COLOR_12 * weight12
    ) / totalWeight;
    color = mix(COLOR_4, color, 0.96);

    return pow(clamp(color, vec3(0.0), vec3(1.0)), vec3(0.9));
  }

  void main() {
    vec3 color = fieldColor(vUv);
    color += grain(vUv) * 0.012;
    color.r += sin(uTime * 0.5) * 0.02;
    color.g += cos(uTime * 0.7) * 0.02;
    color.b += sin(uTime * 0.6) * 0.02;
    color = pow(color, vec3(0.92));

    gl_FragColor = vec4(color, 1.0);
  }
`,N=new Float32Array([-1,-1,1,-1,-1,1,-1,1,1,-1,1,1])}));function Se(e){let t=(0,R.c)(13),{animationActive:n,index:r}=e,i;t[0]===r?i=t[1]:(i=()=>F(r),t[0]=r,t[1]=i);let[a,o]=(0,z.useState)(i),s;t[2]===r?s=t[3]:(s=Math.round(4+m(r,14)*92),t[2]=r,t[3]=s);let c=s,l=V*a.durationScale,u=.4+m(r,11)*.6,d=.5+m(r,12)*.45,f,p;t[4]===n?(f=t[5],p=t[6]):(f=()=>{if(!n)return;let e=0,t=()=>{let n=I();o(n),e=window.setTimeout(t,V*n.durationScale*1e3)},r=window.requestAnimationFrame(t);return()=>{window.cancelAnimationFrame(r),window.clearTimeout(e)}},p=[n],t[4]=n,t[5]=f,t[6]=p),(0,z.useEffect)(f,p);let ee=`calc(${c}% + ${a.horizontalOffset}px)`,te=`translate(-50%, -50%) scale(${d})`,h=`${l}s`,g;return t[7]!==u||t[8]!==ee||t[9]!==te||t[10]!==h||t[11]!==a.y?(g=(0,B.jsx)(`span`,{className:y.TrackParticle,style:{left:ee,opacity:u,top:a.y,transform:te,transitionDuration:h}}),t[7]=u,t[8]=ee,t[9]=te,t[10]=h,t[11]=a.y,t[12]=g):g=t[12],g}function F(e){let t=1;return L(()=>{let n=m(e,t);return t+=1,n})}function I(){return L(Math.random)}function L(e){let t=e(),n=e();return{durationScale:.8+e()*1.2,horizontalOffset:Math.round((t-.5)*8),y:Math.round(12+(n-.5)*14)}}var R,z,B,V,Ce=e((()=>{R=r(),z=t(i(),1),h(),b(),B=n(),V=1.6}));function we(e){let t=(0,Te.c)(2),{animationActive:n}=e,r;return t[0]===n?r=t[1]:(r=(0,H.jsx)(`span`,{"aria-hidden":!0,className:y.TrackParticles,children:Array.from({length:14},(e,t)=>(0,H.jsx)(Se,{animationActive:n,index:t},t))}),t[0]=n,t[1]=r),r}var Te,H,Ee=e((()=>{Te=r(),Ce(),h(),b(),H=n()})),U,W,G,De,Oe,ke,K,Ae,je,Me,Ne,Pe,Fe,Ie,Le,Re,ze,Be,Ve,He,Ue,We,q,Ge=e((()=>{U=`_Container_3jngk_1`,W=`_Thumb_3jngk_12`,G=`_Root_3jngk_19`,De=`_EnableModelPickerPowerSliderThumbInputMotion_3jngk_1`,Oe=`_FastModeTickScale_3jngk_1`,ke=`_FastModeTickTranslate_3jngk_1`,K=`_FastModeTickFade_3jngk_1`,Ae=`_FastModeTickReturnScale_3jngk_1`,je=`_FastModeTickReturnTranslate_3jngk_1`,Me=`_FastModeTickReturnFade_3jngk_1`,Ne=`_Tick_3jngk_40`,Pe=`_ThumbInput_3jngk_116`,Fe=`_Track_3jngk_212`,Ie=`_Range_3jngk_226`,Le=`_MaxEffects_3jngk_236`,Re=`_FastParticleClip_3jngk_242`,ze=`_ParticleTransition_3jngk_251`,Be=`_TickRail_3jngk_259`,Ve=`_VisualThumbRail_3jngk_302`,He=`_ThumbScale_3jngk_343`,Ue=`_MaxBurst_3jngk_352`,We=`_ThumbSpring_3jngk_358`,q={Container:U,Thumb:W,Root:G,EnableModelPickerPowerSliderThumbInputMotion:De,FastModeTickScale:Oe,FastModeTickTranslate:ke,FastModeTickFade:K,FastModeTickReturnScale:Ae,FastModeTickReturnTranslate:je,FastModeTickReturnFade:Me,Tick:Ne,ThumbInput:Pe,Track:Fe,Range:Ie,MaxEffects:Le,FastParticleClip:Re,ParticleTransition:ze,TickRail:Be,VisualThumbRail:Ve,ThumbScale:He,MaxBurst:Ue,ThumbSpring:We}}));function Ke(e){let t=(0,$e.c)(148),{active:n,disabled:r,fastModeEnabled:i,keyboardControlFocused:o,onDragToMax:u,onSelectOption:m,options:h,selectedOptionId:g,shouldReduceMotion:ne,transitionsReady:re}=e,ie=r===void 0?!1:r,_=re===void 0?!0:re,ae=ee(),v=ne??ae??!1,y=i?`active`:`inactive`,b;t[0]!==i||t[1]!==y?(b={enabled:i,phase:y,sequence:0},t[0]=i,t[1]=y,t[2]=b):b=t[2];let[x,se]=(0,Y.useState)(b),[ce,S]=(0,Y.useReducer)(Je,xt),le=(0,Y.useRef)(null),C=(0,Y.useRef)(null),ue=(0,Y.useRef)(!1),fe=(0,Y.useRef)(!1),pe=(0,Y.useRef)(null),w;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(w={accumulatedDelta:0,lastEventTime:0},t[3]=w):w=t[3];let me=(0,Y.useRef)(w),{areEndpointLabelsVisible:he,isDragging:T,isPointerDown:ge,isThumbHovered:_e,maxBurstKey:E,previewBaseOptionId:D,previewIndex:ye,previewOptionIds:be}=ce,O=ie||h.length<=1,k;if(t[4]!==h||t[5]!==g){let e;t[7]===g?e=t[8]:(e=e=>{let{id:t}=e;return t===g},t[7]=g,t[8]=e),k=h.findIndex(e),t[4]=h,t[5]=g,t[6]=k}else k=t[6];let xe=Math.max(k,0),A=ye==null?void 0:h[ye],j;t[9]!==D||t[10]!==be||t[11]!==A||t[12]!==g?(j=A!=null&&A.id!==g&&(g===D||be.slice(0,-1).some(e=>e===g)),t[9]=D,t[10]=be,t[11]=A,t[12]=g,t[13]=j):j=t[13];let M=j;ye!=null&&!M&&S({type:`preview_acknowledged`});let N=h.length-1,P=Math.min(M&&ye!=null?ye:xe,N),Se=h[P],F=N<=0?0:Math.max(P,0)/N*100,I=N>0&&Se?.isMax===!0,L=p(F),R;t[14]===N?R=t[15]:(R=e=>Xe(e,N),t[14]=N,t[15]=R);let z=s(L,R),B;t[16]===N?B=t[17]:(B=e=>Ze(e,N),t[16]=N,t[17]=B);let V=s(L,B),Ce;t[18]!==i||t[19]!==N?(Ce=e=>Xe(e,N,-(1-(i?0:rt))),t[18]=i,t[19]=N,t[20]=Ce):Ce=t[20];let Te=s(L,Ce),H=s(L,Ye);x.enabled!==i&&se({enabled:i,phase:i?`entering`:`exiting`,sequence:x.sequence+1});let Ee,U;t[21]===i?(Ee=t[22],U=t[23]):(Ee=()=>{let e=window.setTimeout(()=>{se(e=>{let t=i?`active`:`inactive`;return e.enabled===i&&e.phase!==t?{...e,phase:t}:e})},i?at:ot);return()=>window.clearTimeout(e)},U=[i],t[21]=i,t[22]=Ee,t[23]=U),(0,Y.useEffect)(Ee,U);let W;t[24]!==P||t[25]!==M||t[26]!==O||t[27]!==I||t[28]!==N||t[29]!==u||t[30]!==m||t[31]!==h||t[32]!==D||t[33]!==g?(W=e=>{let t=h[e];if(O||t==null||e===P)return;let n=N>0&&t.isMax;n?fe.current||(fe.current=!0,ue.current&&u()):fe.current=!1,m(t),S({type:`value_preview`,atMax:n,baseOptionId:M&&D!=null?D:g,enteredMax:n&&!I,index:e,optionId:t.id})},t[24]=P,t[25]=M,t[26]=O,t[27]=I,t[28]=N,t[29]=u,t[30]=m,t[31]=h,t[32]=D,t[33]=g,t[34]=W):W=t[34];let G=W,De;t[35]===Symbol.for(`react.memo_cache_sentinel`)?(De=()=>{C.current!=null&&(window.clearTimeout(C.current),C.current=null)},t[35]=De):De=t[35];let Oe=De,ke;t[36]===Symbol.for(`react.memo_cache_sentinel`)?(ke=()=>{Oe(),pe.current=null,ue.current=!1,fe.current=!1,S({type:`pointer_up`})},t[36]=ke):ke=t[36];let K=ke,Ae;t[37]===Symbol.for(`react.memo_cache_sentinel`)?(Ae=()=>{Oe(),S({type:`show_endpoint_labels`})},t[37]=Ae):Ae=t[37];let je=Ae,Me;t[38]!==P||t[39]!==O||t[40]!==N||t[41]!==G?(Me=e=>{if(e.ctrlKey||O||N<=0)return;e.preventDefault(),e.stopPropagation();let t=Math.abs(e.deltaX)>Math.abs(e.deltaY)?e.deltaX:-e.deltaY;`webkitDirectionInvertedFromDevice`in e&&e.webkitDirectionInvertedFromDevice===!0&&(t*=-1);let n=e.deltaMode===WheelEvent.DOM_DELTA_PIXEL?t:Math.sign(t)*bt;if(n===0)return;let r=me.current;if((e.timeStamp-r.lastEventTime>yt||Math.sign(n)!==Math.sign(r.accumulatedDelta))&&(r.accumulatedDelta=0),r.lastEventTime=e.timeStamp,r.accumulatedDelta+=n,Math.abs(r.accumulatedDelta)<bt)return;let i=Math.sign(r.accumulatedDelta);r.accumulatedDelta-=i*bt;let a=Math.max(0,Math.min(P+i,N));if(a===P){r.accumulatedDelta=0;return}G(a),K()},t[38]=P,t[39]=O,t[40]=N,t[41]=G,t[42]=Me):Me=t[42];let Ne=(0,Y.useEffectEvent)(Me),Pe;t[43]===Ne?Pe=t[44]:(Pe=()=>{let e=le.current;if(e==null)return;let t=e=>Ne(e);return e.addEventListener(`wheel`,t,{passive:!1}),()=>e.removeEventListener(`wheel`,t)},t[43]=Ne,t[44]=Pe);let Fe;t[45]===Symbol.for(`react.memo_cache_sentinel`)?(Fe=[],t[45]=Fe):Fe=t[45],(0,Y.useEffect)(Pe,Fe);let Ie,Le;t[46]===Symbol.for(`react.memo_cache_sentinel`)?(Ie=()=>()=>{C.current!=null&&window.clearTimeout(C.current)},Le=[],t[46]=Ie,t[47]=Le):(Ie=t[46],Le=t[47]),(0,Y.useEffect)(Ie,Le);let Re,ze;if(t[48]!==n||t[49]!==L||t[50]!==F||t[51]!==T||t[52]!==v?(Re=()=>{if(!n||v){L.jump(F);return}let e=a(L,F,T?ct:st);return()=>e.stop()},ze=[n,L,F,T,v],t[48]=n,t[49]=L,t[50]=F,t[51]=T,t[52]=v,t[53]=Re,t[54]=ze):(Re=t[53],ze=t[54]),(0,Y.useEffect)(Re,ze),Se==null)return null;let Be=!O&&(_e||ge),Ve=!O&&T,He=x.phase,Ue=!O&&he,We=!O&&ge,Ge=Math.max(N,1),Ke;t[55]===Symbol.for(`react.memo_cache_sentinel`)?(Ke=e=>{e.stopPropagation(),K()},t[55]=Ke):Ke=t[55];let J;t[56]===O?J=t[57]:(J=e=>{e.stopPropagation(),ue.current=!1,fe.current=!1,O||(S({type:`pointer_down`}),pe.current={x:e.clientX,y:e.clientY},Oe(),C.current=window.setTimeout(()=>{C.current=null,S({type:`show_endpoint_labels`})},tt))},t[56]=O,t[57]=J);let Qe;t[58]===Symbol.for(`react.memo_cache_sentinel`)?(Qe=e=>{e.buttons!==0&&(ue.current=!0)},t[58]=Qe):Qe=t[58];let Z;t[59]===O?Z=t[60]:(Z=e=>{if(e.stopPropagation(),!O&&e.buttons!==0){let t=pe.current;t!=null&&(e.clientX-t.x)**2+(e.clientY-t.y)**2>=nt**2&&je(),S({type:`pointer_move`})}},t[59]=O,t[60]=Z);let it;t[61]===Symbol.for(`react.memo_cache_sentinel`)?(it=e=>{e.stopPropagation(),K()},t[61]=it):it=t[61];let St;t[62]===G?St=t[63]:(St=e=>{let t=e[0];t!=null&&G(t)},t[62]=G,t[63]=St);let Ct;t[64]===P?Ct=t[65]:(Ct=[P],t[64]=P,t[65]=Ct);let wt;t[66]===z?wt=t[67]:(wt={transform:z},t[66]=z,t[67]=wt);let Tt;t[68]!==n||t[69]!==Te||t[70]!==x.enabled||t[71]!==x.phase||t[72]!==x.sequence||t[73]!==I||t[74]!==E||t[75]!==v||t[76]!==_?(Tt=I?(0,X.jsxs)(c.span,{animate:{opacity:1},className:q.MaxEffects,exit:{opacity:0},initial:{opacity:0},style:{transform:Te},transition:v?vt:st,children:[(0,X.jsx)(ve,{active:n,reveal:!v&&E>0,shouldReduceMotion:v}),(0,X.jsx)(d,{children:!x.enabled&&!v?(0,X.jsx)(c.span,{animate:{opacity:1,transition:x.phase===`exiting`?ft:lt,x:0},className:q.ParticleTransition,exit:{opacity:0,transition:pt,x:-110},initial:_?{opacity:0,x:x.phase===`exiting`?28:0}:!1,children:(0,X.jsx)(we,{animationActive:n})},`max-particles-${x.sequence}`):null})]},`max-effects`):null,t[68]=n,t[69]=Te,t[70]=x.enabled,t[71]=x.phase,t[72]=x.sequence,t[73]=I,t[74]=E,t[75]=v,t[76]=_,t[77]=Tt):Tt=t[77];let Et;t[78]===Tt?Et=t[79]:(Et=(0,X.jsx)(d,{initial:!1,children:Tt}),t[78]=Tt,t[79]=Et);let Q;t[80]!==wt||t[81]!==Et?(Q=(0,X.jsx)(c.span,{"aria-hidden":!0,className:q.Range,style:wt,children:Et}),t[80]=wt,t[81]=Et,t[82]=Q):Q=t[82];let Dt;t[83]!==n||t[84]!==V||t[85]!==F||t[86]!==x.enabled||t[87]!==x.sequence||t[88]!==I||t[89]!==v||t[90]!==_?(Dt=x.enabled&&!v?(0,X.jsx)(c.span,{animate:{opacity:1},className:q.FastParticleClip,exit:{opacity:0,transition:I?dt:ht},initial:{opacity:0},style:{clipPath:V},transition:I?ut:mt,children:(0,X.jsx)(oe,{animationActive:n,initialStartPercent:_?F:0})},`fast-particles-${x.sequence}`):null,t[83]=n,t[84]=V,t[85]=F,t[86]=x.enabled,t[87]=x.sequence,t[88]=I,t[89]=v,t[90]=_,t[91]=Dt):Dt=t[91];let Ot;t[92]===Dt?Ot=t[93]:(Ot=(0,X.jsx)(d,{initial:!1,children:Dt}),t[92]=Dt,t[93]=Ot);let kt;if(t[94]!==P||t[95]!==N||t[96]!==h){let e;t[98]!==P||t[99]!==N?(e=(e,t)=>(0,X.jsx)(`span`,{className:q.Tick,"data-selected":t<=P,style:{left:Ye(N===0?0:t/N*100)}},e.id),t[98]=P,t[99]=N,t[100]=e):e=t[100],kt=h.map(e),t[94]=P,t[95]=N,t[96]=h,t[97]=kt}else kt=t[97];let At;t[101]===kt?At=t[102]:(At=(0,X.jsx)(`div`,{className:q.TickRail,children:kt}),t[101]=kt,t[102]=At);let jt;t[103]!==Q||t[104]!==Ot||t[105]!==At?(jt=(0,X.jsxs)(l,{className:q.Track,children:[Q,Ot,At]}),t[103]=Q,t[104]=Ot,t[105]=At,t[106]=jt):jt=t[106];let Mt;t[107]===H?Mt=t[108]:(Mt={left:H},t[107]=H,t[108]=Mt);let Nt;t[109]!==I||t[110]!==E||t[111]!==v?(Nt=I&&E>0&&!v?(0,X.jsx)(`span`,{className:q.MaxBurst,"data-model-picker-power-slider-max-burst":!0,children:(0,X.jsx)(de,{},E)}):null,t[109]=I,t[110]=E,t[111]=v,t[112]=Nt):Nt=t[112];let Pt=!v&&Be?et:1,Ft;t[113]===Pt?Ft=t[114]:(Ft={scale:Pt},t[113]=Pt,t[114]=Ft);let It=v?vt:Be?gt:_t,Lt;t[115]===Symbol.for(`react.memo_cache_sentinel`)?(Lt=(0,X.jsx)(`span`,{className:q.Thumb}),t[115]=Lt):Lt=t[115];let Rt;t[116]!==Ft||t[117]!==It?(Rt=(0,X.jsx)(c.span,{animate:Ft,className:q.ThumbSpring,initial:!1,transition:It,children:Lt}),t[116]=Ft,t[117]=It,t[118]=Rt):Rt=t[118];let zt;t[119]!==Mt||t[120]!==Nt||t[121]!==Rt?(zt=(0,X.jsx)(`div`,{"aria-hidden":!0,className:q.VisualThumbRail,children:(0,X.jsxs)(c.span,{className:q.ThumbScale,style:Mt,children:[Nt,Rt]})}),t[119]=Mt,t[120]=Nt,t[121]=Rt,t[122]=zt):zt=t[122];let Bt;t[123]===O?Bt=t[124]:(Bt=()=>{O||S({type:`thumb_hover`,hovered:!0})},t[123]=O,t[124]=Bt);let Vt;t[125]===Symbol.for(`react.memo_cache_sentinel`)?(Vt=()=>{S({type:`thumb_hover`,hovered:!1})},t[125]=Vt):Vt=t[125];let Ht;t[126]===Bt?Ht=t[127]:(Ht=(0,X.jsx)(te,{"aria-hidden":!0,className:q.ThumbInput,onBlur:K,onPointerEnter:Bt,onPointerLeave:Vt,tabIndex:-1}),t[126]=Bt,t[127]=Ht);let $;t[128]!==i||t[129]!==x.phase||t[130]!==O||t[131]!==I||t[132]!==v||t[133]!==Ve||t[134]!==Ue||t[135]!==We||t[136]!==Ge||t[137]!==J||t[138]!==Z||t[139]!==St||t[140]!==Ct||t[141]!==jt||t[142]!==zt||t[143]!==Ht?($=(0,X.jsxs)(f,{className:q.Root,"data-dragging":Ve,"data-fast-mode":i,"data-fast-mode-dot-transition":He,"data-max":I,"data-endpoint-labels-visible":Ue,"data-pointer-down":We,"data-reduced-motion":v,dir:`ltr`,disabled:O,max:Ge,min:0,onClick:qe,onLostPointerCapture:K,onPointerCancel:Ke,onPointerDown:J,onPointerMoveCapture:Qe,onPointerMove:Z,onPointerUp:it,onValueChange:St,onValueCommit:K,step:1,ref:le,value:Ct,children:[jt,zt,Ht]}),t[128]=i,t[129]=x.phase,t[130]=O,t[131]=I,t[132]=v,t[133]=Ve,t[134]=Ue,t[135]=We,t[136]=Ge,t[137]=J,t[138]=Z,t[139]=St,t[140]=Ct,t[141]=jt,t[142]=zt,t[143]=Ht,t[144]=$):$=t[144];let Ut;return t[145]!==o||t[146]!==$?(Ut=(0,X.jsx)(`div`,{className:q.Container,"data-keyboard-focused":o,"data-model-picker-power-slider":``,children:$}),t[145]=o,t[146]=$,t[147]=Ut):Ut=t[147],Ut}function qe(e){return e.stopPropagation()}function Je(e,t){switch(t.type){case`pointer_down`:return{...e,areEndpointLabelsVisible:!1,isDragging:!1,isPointerDown:!0};case`pointer_move`:return e.isPointerDown&&!e.isDragging?{...e,isDragging:!0}:e;case`pointer_up`:return{...e,areEndpointLabelsVisible:!1,isDragging:!1,isPointerDown:!1,isThumbHovered:!1};case`preview_acknowledged`:return{...e,previewBaseOptionId:null,previewIndex:null,previewOptionIds:[]};case`show_endpoint_labels`:return e.isPointerDown&&!e.areEndpointLabelsVisible?{...e,areEndpointLabelsVisible:!0}:e;case`thumb_hover`:return{...e,isThumbHovered:t.hovered};case`value_preview`:return{...e,maxBurstKey:t.enteredMax?e.maxBurstKey+1:t.atMax?e.maxBurstKey:0,previewBaseOptionId:t.baseOptionId,previewIndex:t.index,previewOptionIds:e.previewBaseOptionId==null?[t.optionId]:[...e.previewOptionIds,t.optionId]}}}function Ye(e){return`calc(${e}% + ${Qe(e)}px)`}function Xe(e,t,n=1){if(t<=0)return`translateX(${-100*n}%)`;let r=J(e,t);return`translateX(calc(${(e-100)*n}% + ${r*n}px))`}function Ze(e,t){let n=J(e,t);return`inset(0 calc(${100-e}% - ${n}px) 0 0)`}function J(e,t){if(t<=0)return 0;let n=100/t,r=Math.min(e/n,(100-e)/n,1);return Qe(e)*r}function Qe(e){let t=Z/2-it;return t-e/50*t}var $e,Y,X,et,tt,nt,rt,Z,it,at,ot,st,ct,lt,ut,dt,ft,pt,mt,ht,gt,_t,vt,yt,bt,xt;e((()=>{$e=r(),u(),o(),Y=t(i(),1),ue(),me(),P(),Ee(),Ge(),X=n(),et=32/28,tt=150,nt=4,rt=.1,Z=28,it=1,at=1200,ot=350,st={duration:.3,ease:[.23,1,.32,1]},ct={duration:.15,ease:[.23,1,.32,1]},lt={delay:.15,duration:.35,ease:[.42,0,.58,1]},ut={duration:.25,ease:[.42,0,1,1]},dt={delay:.1,duration:.3,ease:`linear`},ft={opacity:{delay:.05,duration:.5,ease:`linear`},x:{delay:.05,duration:.5,ease:`easeOut`}},pt={opacity:{delay:1,duration:.55,ease:[.42,0,1,1]},x:{delay:.2,duration:1.35,ease:[.42,0,1,1]}},mt={duration:.08,ease:[.42,0,.58,1]},ht={duration:.25,ease:[.42,0,.58,1]},gt={type:`spring`,stiffness:420,damping:38,mass:1},_t={type:`spring`,stiffness:220,damping:26,mass:1},vt={duration:0},yt=160,bt=30,xt={areEndpointLabelsVisible:!1,isDragging:!1,isPointerDown:!1,isThumbHovered:!1,maxBurstKey:0,previewBaseOptionId:null,previewIndex:null,previewOptionIds:[]}}))();export{Ke as ModelPickerPowerSliderImpl};
//# sourceMappingURL=model-picker-power-slider-impl-DAAGzkiv.js.map