1"use strict";(self.webpackChunkclient=self.webpackChunkclient||[]).push([[143],{2143:(e,t,r)=>{r.r(t),r.d(t,{default:()=>h});var a=r(9379),n=r(5043),s=r(1137),c=r(5966),i=r(4651),l=r(5294),u=r(1271),o=r(1066),d=r(579);function h(e){var t,r,h,m,x,v,f,p,b,y,N,g,j,w,M,C,k,F,T,R,A,E,D,O,L,S,U,z,P,q;let{onNavigate:I}=e;const{t:B,i18n:G}=(0,s.Bd)(),{setPlaying:H}=(0,i.o)(),[_,W]=(0,n.useState)(!1),[V,J]=(0,n.useState)(()=>{try{const e=(0,l.t0)()||{},t=(0,u.NB)();return(0,a.A)((0,a.A)({},t),e)}catch(e){return(0,u.NB)()}}),[K,Q]=(0,n.useState)(()=>(0,u.sb)()),[X,Y]=(0,n.useState)(()=>({currentTime:0,duration:0,playing:!1,hasTrack:!1})),[Z,$]=(0,n.useState)(!1),[ee,te]=(0,n.useState)(0),re=(0,n.useRef)(!1),ae=(0,n.useRef)(null),ne=(0,n.useRef)(null),se=(0,n.useRef)({raf:0,w:0,h:0,col:null,map:null,dpr:1}),ce=(0,n.useRef)(null),ie=(0,n.useRef)(null),le=(0,n.useRef)(null),ue=(0,n.useRef)(!1),oe=(0,n.useRef)(null),de=(0,n.useRef)(null),he=(0,n.useRef)(null),me=(0,n.useRef)(null),xe=(0,n.useRef)(null),ve=(0,n.useRef)(null),fe=(0,n.useRef)(null),pe=(0,n.useRef)(null),be=(0,n.useRef)(null),ye=(0,n.useRef)(0),Ne=(0,n.useRef)(null),ge=(0,n.useRef)(null),je=(0,n.useRef)(null);(0,n.useEffect)(()=>{H(!1)},[H]),(0,n.useEffect)(()=>{let e=!1;return(0,u.yz)().then(t=>{e||(t&&t.tuacParams&&(je.current=t.tuacParams,Q(t.tuacParams)),t&&t.defaults&&(ge.current=t.defaults,J(e=>(0,a.A)((0,a.A)({},e),t.defaults)),W(!1)))}).catch(()=>{}),()=>{e=!0}},[]),(0,n.useEffect)(()=>{const e=ce.current;return()=>{try{if(e){try{e.pause()}catch(n){}try{e.currentTime=0}catch(n){}}}catch(n){}try{Fe()}catch(n){}try{const e=oe.current;e&&"function"===typeof e.close&&e.close().catch(()=>{})}catch(n){}oe.current=null;try{const e=le.current;e&&URL.revokeObjectURL(e)}catch(n){}le.current=null,ue.current=!1;const t=ge.current||(0,u.NB)(),r=je.current||(0,u.sb)();try{window.dispatchEvent(new CustomEvent("app:tuac-set-params",{detail:{params:r}}))}catch(n){}try{window.dispatchEvent(new CustomEvent("app:tuacgui-set",{detail:(0,a.A)((0,a.A)({},t),{},{surroundEnabled:!0})}))}catch(n){}try{window.dispatchEvent(new CustomEvent("app:tuac-set-enabled",{detail:{enabled:!0}}))}catch(n){}try{H(!1)}catch(n){}}},[H]);const we=e=>{Q(t=>(0,a.A)((0,a.A)({},t||{}),e||{}))},Me=e=>{J(t=>(0,a.A)((0,a.A)({},t||{}),e||{}))},Ce=e=>{const t=ce.current;if(!t)return!1;const r=e&&e.url?String(e.url):"/tuac/audio/tuac.mp3",a=!e||"boolean"!==typeof e.loop||e.loop;if(t.loop=a,!t.src||!String(t.src).includes(r)){t.src=r;try{t.load()}catch(n){}}return ue.current=!1,!0};(0,n.useEffect)(()=>()=>{try{const e=le.current;e&&URL.revokeObjectURL(e)}catch(e){}},[]);const ke=async()=>{const e=ce.current;if(!e)return null;const t=(()=>{if(oe.current)return oe.current;const e=new(window.AudioContext||window.webkitAudioContext);return oe.current=e,e})();return de.current&&de.current.context===t||(de.current=t.createMediaElementSource(e)),he.current&&he.current.context===t||(he.current=t.createGain(),me.current=t.createGain(),xe.current=t.createGain(),ve.current=t.createGain(),fe.current=t.createAnalyser(),fe.current.fftSize=2048,fe.current.smoothingTimeConstant=.85,fe.current.minDecibels=-90,fe.current.maxDecibels=-10,ne.current=fe.current,he.current.gain.value=1,me.current.gain.value=1,xe.current.gain.value=1,ve.current.gain.value=1,pe.current=new o.A(t),be.current=null),t},Fe=()=>{const e=de.current,t=he.current,r=me.current,a=xe.current,n=ve.current,s=fe.current,c=pe.current;try{e&&e.disconnect()}catch(i){}try{t&&t.disconnect()}catch(i){}try{r&&r.disconnect()}catch(i){}try{a&&a.disconnect()}catch(i){}try{s&&s.disconnect()}catch(i){}try{n&&n.disconnect()}catch(i){}try{c&&c.output&&c.output.disconnect()}catch(i){}},Te=e=>{const t=de.current,r=he.current,a=fe.current;if(!e||!t||!r||!a)return!1;try{t.connect(r)}catch(n){}try{r.connect(a)}catch(n){}try{a.connect(e.destination)}catch(n){}return!0},Re=async(e,t)=>{var r;const n=++ye.current,s=await ke();if(!s)return!1;const c=he.current,i=me.current,l=xe.current,u=ve.current;if(!c||!i||!l||!u)return!1;const o=!(!t||!t.waitForReady);if(!e){if(n!==ye.current)return!1;Fe();try{c.gain.setTargetAtTime(.85,s.currentTime,.02)}catch(y){}try{i.gain.setTargetAtTime(1,s.currentTime,.02)}catch(y){}try{l.gain.setTargetAtTime(1,s.currentTime,.02)}catch(y){}try{u.gain.setTargetAtTime(1,s.currentTime,.02)}catch(y){}return Te(s),!0}const d=pe.current;if(!d)return!1;if(o){if(n!==ye.current)return!1;Fe();try{c.gain.setTargetAtTime(.85,s.currentTime,.02)}catch(y){}Te(s)}const h=String(V.environmentMode||"studio");if(be.current!==h){be.current=h;try{await d.loadEnvironment(h)}catch(y){}}if(n!==ye.current)return!1;const m=V.distortionEnabled?Number(V.distortionIntensity)||0:Number(K.warmth)||0,x=V.bassEnabled?Math.max(0,Math.min(1,Number(V.bassLevel)||0)):0,v=V.spaceModeEnabled?Math.max(0,Math.min(1,Number(V.reverbLevel)||0)):0,f=V.spaceModeEnabled&&Number(K.spatial)||0;try{var p;d.setParams((0,a.A)((0,a.A)({},K),{},{warmth:m,thickness:Number(null!==(p=K.thickness)&&void 0!==p?p:.2),bassIntensity:x,reverbLevel:v,spatial:f}))}catch(y){}if(!!!d._ready&&o){const e="undefined"!==typeof performance&&performance.now?performance.now():Date.now(),t=e=>new Promise(t=>setTimeout(t,e));for(;!d._ready;){if(n!==ye.current)return!1;if(("undefined"!==typeof performance&&performance.now?performance.now():Date.now())-e>1500)break;await t(50)}}if(!!!d._ready&&o)return!0;
1if(n!==ye.current)return!1;const b=(e=>{const t=Number(e);return!Number.isFinite(t)||t<=0?0:t<=50?t/50:Math.min(4,1+3*(t-50)/50)})(null!==(r=K.outputGain)&&void 0!==r?r:55);try{u.gain.setTargetAtTime(b,s.currentTime,.08)}catch(y){}return Fe(),(e=>{const t=de.current,r=me.current,a=xe.current,n=ve.current,s=fe.current,c=pe.current;if(!e||!t||!r||!a||!n||!s||!c||!c.input||!c.output)return!1;try{t.connect(r)}catch(y){}try{r.connect(c.input)}catch(y){}try{c.output.connect(a)}catch(y){}try{a.connect(s)}catch(y){}try{s.connect(n)}catch(y){}try{n.connect(e.destination)}catch(y){}})(s),!0};Ne.current=Re,(0,n.useEffect)(()=>{const e=setInterval(()=>{const e=ce.current;if(!e)return;const t=Number.isFinite(e.duration)?e.duration:0,r=Number.isFinite(e.currentTime)?e.currentTime:0;Y(a=>({currentTime:r,duration:t,playing:!e.paused,hasTrack:!!e.src}))},200);return()=>clearInterval(e)},[]),(0,n.useEffect)(()=>{if(!Z){const e=X.duration>0?Math.max(0,Math.min(1,(X.currentTime||0)/X.duration)):0;te(e)}},[Z,X.currentTime,X.duration]),(0,n.useEffect)(()=>{var e,t,r;_&&(null===(e=Ne.current)||void 0===e||null===(t=e.call(Ne,!0,{waitForReady:!1}))||void 0===t||null===(r=t.catch)||void 0===r||r.call(t,()=>{}))},[_,K,V]);const Ae=e=>{const t=Math.max(0,Math.floor(Number(e)||0)),r=Math.floor(t/60),a=t%60;return"".concat(r,":").concat(String(a).padStart(2,"0"))},Ee="w-[80px] text-xs text-white/70 whitespace-nowrap",De="grid grid-cols-[80px_minmax(0,1fr)_90px] items-center gap-2",Oe="w-full h-1.5 accent-blue-500",Le="text-right text-xs text-white/60 tabular-nums",Se="flex items-center justify-end gap-1",Ue=(0,n.useMemo)(()=>{const e=[{v:0,c:[0,0,0]},{v:40,c:[40,0,80]},{v:90,c:[120,0,120]},{v:140,c:[220,40,60]},{v:200,c:[255,120,0]},{v:255,c:[255,240,160]}];return t=>{const r=Math.max(0,Math.min(255,0|t));for(let a=0;a<e.length-1;a+=1){const t=e[a],n=e[a+1];if(r>=t.v&&r<=n.v){const e=(r-t.v)/Math.max(1,n.v-t.v);return[Math.round(t.c[0]+(n.c[0]-t.c[0])*e),Math.round(t.c[1]+(n.c[1]-t.c[1])*e),Math.round(t.c[2]+(n.c[2]-t.c[2])*e)]}}return e[e.length-1].c}},[]);return(0,n.useEffect)(()=>{const e=ae.current;if(!e)return;const t=e.getContext("2d",{alpha:!1});if(!t)return;const r=()=>{const r=e.parentElement;if(!r)return;const n=Math.max(1,Math.floor(r.clientWidth)),s=Math.max(1,Math.floor(r.clientHeight)),c=Math.max(1,Math.min(2,window.devicePixelRatio||1));e.width=Math.floor(n*c),e.height=Math.floor(s*c),e.style.width="".concat(n,"px"),e.style.height="".concat(s,"px"),t.fillStyle="#000",t.fillRect(0,0,e.width,e.height);let i=se.current.bufCanvas;i||(i=document.createElement("canvas")),i.width=e.width,i.height=e.height;const l=i.getContext("2d",{alpha:!1});l&&(l.fillStyle="#000",l.fillRect(0,0,i.width,i.height));const u=new Float32Array(e.height),o=ne.current,d=o?o.frequencyBinCount:1024,h=o&&o.context?o.context.sampleRate/2:24e3,m=Math.max(41,h);for(let t=0;t<e.height;t+=1){const r=1-t/Math.max(1,e.height-1),a=40*Math.pow(m/40,r)/h*(d-1);u[t]=Math.max(0,Math.min(d-1,a))}const x=Math.max(1,Math.round(c));se.current=(0,a.A)((0,a.A)({},se.current),{},{w:e.width,h:e.height,dpr:c,shift:x,col:new Uint8ClampedArray(4*e.height*x),img:new ImageData(x,e.height),freq:null,ema:new Float32Array(e.height),emaAlpha:.7,bufCanvas:i,bufCtx:l,map:u})},n=new ResizeObserver(()=>r());try{n.observe(e.parentElement)}catch(c){}r();const s=()=>{var r,a;const n=ne.current,i=se.current,{w:l,h:u,col:o,map:d}=i,h=Math.max(1,i.shift||1);if(!l||!u||!o||!d)return void(i.raf=requestAnimationFrame(s));const m=i.bufCtx,x=i.bufCanvas;if(!m||!x)return void(i.raf=requestAnimationFrame(s));try{m.drawImage(e,-h,0)}catch(c){}let v=null;n&&(i.freq&&i.freq.length===n.frequencyBinCount||(i.freq=new Uint8Array(n.frequencyBinCount)),n.getByteFrequencyData(i.freq),v=i.freq);const f=i.ema,p="number"===typeof i.emaAlpha?i.emaAlpha:.7,b=n&&null!==(r=n.minDecibels)&&void 0!==r?r:-90,y=n&&null!==(a=n.maxDecibels)&&void 0!==a?a:-10,N=Math.max(1e-6,y-b);for(let e=0;e<u;e+=1){let t=0;
1if(v){const r=d[e]||0,a=Math.max(0,Math.min(v.length-1,0|r)),n=Math.min(v.length-1,a+1),s=Math.max(0,Math.min(1,r-a));t=v[a]*(1-s)+v[n]*s}const r=(f?f[e]:0)*p+t*(1-p);f&&(f[e]=r);const a=b+r/255*N,n=Math.max(0,Math.min(1,(a-b)/N)),s=Math.round(255*Math.pow(n,.85)),[c,i,l]=Ue(s);for(let u=0;u<h;u+=1){const t=4*(e*h+u);o[t]=c,o[t+1]=i,o[t+2]=l,o[t+3]=255}}const g=i.img;g&&g.data&&g.data.set(o);try{m.putImageData(g,l-h,0)}catch(c){}try{t.drawImage(x,0,0)}catch(c){}i.raf=requestAnimationFrame(s)};return se.current.raf=requestAnimationFrame(s),()=>{try{cancelAnimationFrame(se.current.raf)}catch(c){}try{n.disconnect()}catch(c){}}},[Ue]),(0,d.jsxs)("div",{className:"w-full max-w-md flex flex-col overflow-hidden",style:{height:"100vh"},children:[(0,d.jsx)("audio",{ref:ce,preload:"metadata",className:"hidden"}),(0,d.jsx)("input",{ref:ie,className:"hidden",type:"file",accept:"audio/*",onChange:e=>{const t=e.target.files&&e.target.files[0]?e.target.files[0]:null;t&&(async e=>{const t=ce.current;if(!t||!e)return!1;const r=!t.paused;try{const e=le.current;e&&URL.revokeObjectURL(e)}catch(n){}const a=URL.createObjectURL(e);le.current=a,ue.current=!0;try{t.pause()}catch(n){}t.loop=!0,t.src=a;try{t.load()}catch(n){}await ke();try{oe.current&&"suspended"===oe.current.state&&await oe.current.resume()}catch(n){}if(await Re(!!_,{waitForReady:!1}),r||_)try{await t.play()}catch(n){}return!0})(t).catch(()=>{});try{e.target.value=""}catch(r){}}}),(0,d.jsx)("section",{className:"flex-shrink-0 border-b border-white/10 bg-white/[0.03]",style:{height:"160px"},"aria-label":"\u6ce2\u5f62\u663e\u793a",children:(0,d.jsxs)("div",{className:"h-full relative",children:[(0,d.jsx)("canvas",{ref:ae,className:"absolute inset-0"}),(0,d.jsxs)("div",{className:"absolute right-0 top-0 h-full w-[26px] bg-black/35 border-l border-white/10",children:[(0,d.jsx)("div",{className:"absolute top-1 right-1 text-[10px] text-white/50",children:"Hz"}),["15k","10k","6k","4k","3k","2k","1k"].map((e,t)=>(0,d.jsx)("div",{className:"absolute right-1 text-[10px] text-white/45 tabular-nums",style:{top:"".concat(14+20*t,"px")},children:e},e))]})]})}),(0,d.jsx)("section",{className:"flex-1 min-h-0 pt-px px-0","aria-label":"\u64cd\u4f5c\u5e73\u53f0",children:(0,d.jsxs)("div",{className:[c.w.surfaces.glassCard,"h-full flex flex-col p-4"].join(" "),children:[(0,d.jsx)("div",{className:"flex items-center justify-center mb-2 flex-shrink-0",children:(0,d.jsx)("h1",{className:"text-lg font-semibold text-white text-center w-full",children:"TUAC\u5168\u666f\u97f3\u6548\u5f15\u64ce"})}),(0,d.jsxs)("div",{className:"flex-1 min-h-0 overflow-y-auto pr-2 space-y-4 text-sm text-white/70",children:[(0,d.jsx)("p",{className:"text-center opacity-80",children:"Tenryu Universal Audio Core | 48kHz SIMD"}),(0,d.jsx)("div",{className:"pt-1 flex justify-center",children:(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("button",{type:"button",onClick:async()=>{const e=!_;W(e);const t=ce.current;if(t){await ke(),await Re(e,{waitForReady:!0}),ue.current||Ce({url:"/tuac/audio/tuac.mp3",loop:!0});try{oe.current&&"suspended"===oe.current.state&&await oe.current.resume()}catch(r){}if(e&&t.src)try{await t.play()}catch(r){}}},className:(0,c.f)({variant:"outline",size:"sm",className:["text-xs px-4 py-2 !bg-gradient-to-r text-white",_?"!from-orange-700 !to-amber-600 hover:!from-orange-600 hover:!to-amber-500 !border-orange-400/50":"!from-blue-900 !to-blue-800 hover:!from-blue-800 hover:!to-blue-700 !border-blue-700/50"].join(" ")}),children:B(_?"player.directOffProcessing":"player.directOn")}),(0,d.jsx)("button",{type:"button",onClick:e=>{e.preventDefault(),(()=>{const e=ie.current;if(e)try{"function"===typeof e.showPicker?e.showPicker():e.click()}catch(t){try{e.click()}catch(t){}}})()},title:"\u6253\u5f00\u672c\u5730\u97f3\u9891\u6587\u4ef6","aria-label":"\u6253\u5f00\u672c\u5730\u97f3\u9891\u6587\u4ef6",className:(0,c.f)({variant:"outline",size:"sm",className:["px-3 py-2",_?"!bg-gradient-to-r !from-orange-700/30 !to-amber-600/30 hover:!from-orange-600/35 hover:!to-amber-500/35 !border-orange-400/40 text-white":"!bg-gradient-to-r !from-blue-900/30 !to-blue-800/30 hover:!from-blue-800/35 hover:!to-blue-700/35 !border-blue-700/40 text-white"].join(" ")}),children:(0,d.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,d.jsx)("path",{d:"M3 7h6l2 2h10v10a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2z"}),(0,d.jsx)("path",{d:"M12 12v5"}),(0,d.jsx)("path",{d:"M9.5 14.5 12 12l2.5 2.5"})]})})]})}),(0,d.jsx)("div",{className:"space-y-2",children:(0,d.jsxs)("div",{className:De,children:[(0,d.jsx)("div",{className:Ee,children:"\u64ad\u653e\u8fdb\u5ea6"}),(0,d.jsx)("input",{type:"range",min:0,max:1e3,value:X.duration>0?Math.round(1e3*((Z?ee:X.currentTime/X.duration)||0)):0,onChange:e=>{const t=Number(e.target.value)||0,r=Math.max(0,Math.min(1,t/1e3));if(te(r),!Z){const e=ce.current;if(!e)return;const t=Number.isFinite(e.duration)?e.duration:0;if(!t||t<=0)return;e.currentTime=r*t}},onPointerDown:()=>{$(!0);const e=ce.current;if(re.current=!(!e||e.paused),e&&!e.paused)try{e.pause()}catch(t){}},onPointerUp:async()=>{const e=ce.current;if($(!1),!e)return;const t=Number.isFinite(e.duration)?e.duration:0;if(t&&!(t<=0)&&(e.currentTime=ee*t,re.current))try{await e.play()}catch(r){}},onPointerCancel:async()=>{const e=ce.current;if($(!1),e&&re.current)try{await e.play()}catch(t){}},onMouseUp:async()=>
1{if(!Z)return;const e=ce.current;if($(!1),!e)return;const t=Number.isFinite(e.duration)?e.duration:0;if(t&&!(t<=0)&&(e.currentTime=ee*t,re.current))try{await e.play()}catch(r){}},onTouchEnd:async()=>{if(!Z)return;const e=ce.current;if($(!1),!e)return;const t=Number.isFinite(e.duration)?e.duration:0;if(t&&!(t<=0)&&(e.currentTime=ee*t,re.current))try{await e.play()}catch(r){}},disabled:!X.hasTrack||!(X.duration>0),className:Oe}),(0,d.jsxs)("div",{className:Se,children:[(0,d.jsxs)("div",{className:Le,children:[Ae((Z?ee*(X.duration||0):X.currentTime)||0)," / ",Ae(X.duration)]}),(0,d.jsx)("button",{type:"button",disabled:!X.hasTrack,onClick:async()=>{const e=ce.current;if(e){await ke();try{oe.current&&"suspended"===oe.current.state&&await oe.current.resume()}catch(t){}if(e.src||Ce({url:"/tuac/audio/tuac.mp3",loop:!0}),await Re(!!_,{waitForReady:!1}),e.paused)try{await e.play()}catch(t){}else try{e.pause()}catch(t){}}},className:(0,c.f)({variant:"outline",size:"xs",className:"px-2 py-1 text-[11px]"}),children:X.playing?"\u275a\u275a":"\u25b6"})]})]})}),(0,d.jsxs)("div",{className:De,children:[(0,d.jsx)("div",{className:Ee,children:"\u8f93\u51fa\u589e\u76ca"}),(0,d.jsx)("input",{type:"range",min:0,max:100,value:Number(null!==(t=K.outputGain)&&void 0!==t?t:55),onChange:e=>we({outputGain:Number(e.target.value)}),className:Oe}),(0,d.jsxs)("div",{className:Le,children:[Number(null!==(r=K.outputGain)&&void 0!==r?r:55),"%"]})]}),(0,d.jsxs)("div",{className:De,children:[(0,d.jsx)("div",{className:Ee,children:"\u865a\u62df\u73af\u7ed5"}),(0,d.jsx)("div",{}),(0,d.jsx)("div",{className:Se,children:(0,d.jsxs)("button",{type:"button",onClick:()=>{var e;return we({spatialDeconstruction:!(null===(e=K.spatialDeconstruction)||void 0===e||e)})},className:(0,c.f)({variant:"outline",size:"xs",className:"px-2 py-1 text-[11px] w-[96px]"}),children:["\u865a\u62df\u73af\u7ed5: ",null===(h=K.spatialDeconstruction)||void 0===h||h?"ON":"OFF"]})})]}),(0,d.jsxs)("div",{className:De,children:[(0,d.jsx)("div",{className:Ee,children:"\u8ddd\u79bb"}),(0,d.jsx)("input",{type:"range",min:1,max:10,step:.1,value:Number(null!==(m=K.distance)&&void 0!==m?m:1.8),onChange:e=>we({distance:Number(e.target.value)}),className:Oe}),(0,d.jsxs)("div",{className:Le,children:[Number(null!==(x=K.distance)&&void 0!==x?x:1.8).toFixed(1),"m"]})]}),(0,d.jsxs)("div",{className:De,children:[(0,d.jsx)("div",{className:Ee,children:"\u4eba\u58f0\u7126\u70b9"}),(0,d.jsx)("input",{type:"range",min:0,max:100,value:Math.round(100*(Number(null!==(v=K.vocalFocus)&&void 0!==v?v:.15)||0)),onChange:e=>we({vocalFocus:(Number(e.target.value)||0)/100}),className:Oe}),(0,d.jsxs)("div",{className:Le,children:[Math.round(100*(Number(null!==(f=K.vocalFocus)&&void 0!==f?f:.15)||0)),"%"]})]}),(0,d.jsxs)("div",{className:De,children:[(0,d.jsx)("div",{className:Ee,children:"\u4fdd\u771f\u5ea6\u589e\u5f3a"}),(0,d.jsx)("input",{type:"range",min:0,max:100,value:Math.round(100*(Number(null!==(p=K.fidelity)&&void 0!==p?p:.45)||0)),onChange:e=>we({fidelity:(Number(e.target.value)||0)/100}),className:Oe}),(0,d.jsxs)("div",{className:Se,children:[(0,d.jsxs)("div",{className:Le,children:[Math.round(100*(Number(null!==(b=K.fidelity)&&void 0!==b?b:.45)||0)),"%"]}),(0,d.jsx)("button",{type:"button",onClick:()=>{var e;const t=(Number(null!==(e=K.fidelity)&&void 0!==e?e:.45)||0)>1e-4;we({fidelity:t?0:.45})},className:(0,c.f)({variant:"outline",size:"xs",className:"px-2 py-1 text-[11px]"}),children:(Number(null!==(y=K.fidelity)&&void 0!==y?y:.45)||0)>1e-4?"ON":"OFF"})]})]}),(0,d.jsxs)("div",{className:De,children:[(0,d.jsx)("div",{className:Ee,children:"\u9ad8\u9891\u4eae\u5ea6"}),(0,d.jsx)("input",{type:"range",min:80,max:100,value:Math.round(100*(Number(null!==(N=K.airHighPass)&&void 0!==N?N:1)||1)),onChange:e=>we({airHighPass:(Number(e.target.value)||100)/100}),className:Oe}),(0,d.jsx)("div",{className:Le,children:Number(null!==(g=K.airHighPass)&&void 0!==g?g:1).toFixed(2)})]}),(0,d.jsxs)("div",{className:De,children:[(0,d.jsx)("div",{className:Ee,children:"\u8ddf\u968f\u611f"}),(0,d.jsx)("input",{type:"range",min:1,max:20,value:Math.max(1,Math.min(20,Math.round(100*(Number(null!==(j=K.smoothing)&&void 0!==j?j:.05)||.05)))),onChange:e=>we({smoothing:(Number(e.target.value)||5)/100}),className:Oe}),(0,d.jsx)("div",{className:Le,children:Number(null!==(w=K.smoothing)&&void 0!==w?w:.05).toFixed(2)})]}),(0,d.jsxs)("div",{className:De,children:[(0,d.jsx)("div",{className:Ee,children:"\u4f4e\u97f3\u589e\u5f3a"}),(0,d.jsx)("input",{type:"range",min:0,max:100,value:Math.round(100*(Number(null!==(M=V.bassLevel)&&void 0!==M?M:.5)||0)),onChange:e=>Me({bassLevel:(Number(e.target.value)||0)/100}),className:Oe}),(0,d.jsxs)("div",{className:Se,children:[(0,d.jsxs)("div",{className:Le,children:[Math.round(100*(Number(null!==(C=V.bassLevel)&&void 0!==C?C:.5)||0)),"%"]}),(0,d.jsx)("button",{type:"button",onClick:()=>Me({bassEnabled:!V.bassEnabled}
1),className:(0,c.f)({variant:"outline",size:"xs",className:"px-2 py-1 text-[11px]"}),children:V.bassEnabled?"ON":"OFF"})]})]}),(0,d.jsx)("div",{className:"pt-2 border-t border-white/10"}),(0,d.jsxs)("div",{className:De,children:[(0,d.jsx)("div",{className:Ee,children:"\u6e7f\u5ea6\u8865\u507f"}),(0,d.jsx)("input",{type:"range",min:0,max:100,value:Math.round(100*(Number(null!==(k=K.humidity)&&void 0!==k?k:.75)||0)),onChange:e=>we({humidity:(Number(e.target.value)||0)/100}),className:Oe}),(0,d.jsxs)("div",{className:Le,children:[Math.round(100*(Number(null!==(F=K.humidity)&&void 0!==F?F:.75)||0)),"%"]})]}),(0,d.jsxs)("div",{className:De,children:[(0,d.jsx)("div",{className:Ee,children:"\u6a21\u62df\u6e29\u63a7\u5668"}),(0,d.jsx)("input",{type:"range",min:0,max:100,value:Math.round(100*(Number(null!==(T=V.distortionIntensity)&&void 0!==T?T:.3)||0)),onChange:e=>Me({distortionIntensity:(Number(e.target.value)||0)/100}),className:Oe}),(0,d.jsxs)("div",{className:Se,children:[(0,d.jsxs)("div",{className:Le,children:[Math.round(100*(Number(null!==(R=V.distortionIntensity)&&void 0!==R?R:.3)||0)),"%"]}),(0,d.jsx)("button",{type:"button",onClick:()=>Me({distortionEnabled:!V.distortionEnabled}),className:(0,c.f)({variant:"outline",size:"xs",className:"px-2 py-1 text-[11px]"}),children:V.distortionEnabled?"ON":"OFF"})]})]}),(0,d.jsxs)("div",{className:De,children:[(0,d.jsx)("div",{className:Ee,children:"\u539a\u5ea6"}),(0,d.jsx)("input",{type:"range",min:0,max:100,value:Math.round(100*(Number(null!==(A=K.thickness)&&void 0!==A?A:.2)||0)),onChange:e=>we({thickness:(Number(e.target.value)||0)/100}),className:Oe}),(0,d.jsxs)("div",{className:Le,children:[Math.round(100*(Number(null!==(E=K.thickness)&&void 0!==E?E:.2)||0)),"%"]})]}),(0,d.jsxs)("div",{className:"space-y-2 pt-2 border-t border-white/10",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between",children:[(0,d.jsx)("div",{className:"text-xs text-white/70",children:"Crossfeed\u6a21\u5f0f"}),(0,d.jsxs)("button",{type:"button",onClick:()=>{var e;return we({crossfeedEnabled:!(null===(e=K.crossfeedEnabled)||void 0===e||e)})},className:(0,c.f)({variant:"outline",size:"xs",className:"px-2 py-1 text-[11px]"}),children:["Crossfeed: ",null===(D=K.crossfeedEnabled)||void 0===D||D?"ON":"OFF"]})]}),(0,d.jsxs)("div",{className:De,children:[(0,d.jsx)("div",{className:Ee,children:"\u5f3a\u5ea6"}),(0,d.jsx)("input",{type:"range",min:0,max:100,value:Number(null!==(O=K.crossfeedStrength)&&void 0!==O?O:60),onChange:e=>we({crossfeedStrength:Number(e.target.value)}),className:Oe}),(0,d.jsxs)("div",{className:Se,children:[(0,d.jsxs)("div",{className:Le,children:[Number(null!==(L=K.crossfeedStrength)&&void 0!==L?L:60),"%"]}),(0,d.jsx)("button",{type:"button",onClick:()=>{var e;return we({crossfeedUseDelay:!(null===(e=K.crossfeedUseDelay)||void 0===e||e)})},className:(0,c.f)({variant:"outline",size:"xs",className:"px-2 py-1 text-[11px]"}),children:null===(S=K.crossfeedUseDelay)||void 0===S||S?"ON":"OFF"})]})]})]}),(0,d.jsxs)("div",{className:"space-y-2 pt-2 border-t border-white/10",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between",children:[(0,d.jsx)("div",{className:"text-xs text-white/70",children:"\u7a7a\u95f4\u6a21\u5f0f\u9009\u62e9"}),(0,d.jsxs)("button",{type:"button",onClick:()=>Me({spaceModeEnabled:!V.spaceModeEnabled}),className:(0,c.f)({variant:"outline",size:"xs",className:"px-2 py-1 text-[11px]"}),children:["\u7a7a\u95f4: ",V.spaceModeEnabled?"ON":"OFF"]})]}),(0,d.jsxs)("div",{className:De,children:[(0,d.jsx)("div",{className:Ee,children:"\u7a7a\u95f4\u89c4\u6a21"}),(0,d.jsx)("input",{type:"range",min:1,max:5,step:.1,value:Number(null!==(U=K.roomDepth)&&void 0!==U?U:1.5),onChange:e=>we({roomDepth:Number(e.target.value)}),className:Oe}),(0,d.jsx)("div",{className:Le,children:Number(null!==(z=K.roomDepth)&&void 0!==z?z:1.5).toFixed(1)})]}),(0,d.jsxs)("div",{className:De,children:[(0,d.jsx)("div",{className:Ee,children:"\u7a7a\u95f4\u6e7f\u58f0"}),(0,d.jsx)("input",{type:"range",min:0,max:100,value:Math.round(100*(Number(null!==(P=V.reverbLevel)&&void 0!==P?P:.05)||0)),onChange:e=>Me({reverbLevel:(Number(e.target.value)||0)/100}),className:Oe}),(0,d.jsxs)("div",{className:Le,children:[Math.round(100*(Number(null!==(q=V.reverbLevel)&&void 0!==q?q:.05)||0)),"%"]})]})]})]})]})})]})}}}]); 2//# sourceMappingURL=143.a720b415.chunk.js.map
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.