(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,31334,e=>{"use strict";var t=e.i(71645);let n={emerald:523.25,rose:587.33,amber:659.25,fuchsia:698.46};class r{ctx=null;master=null;enabled=!0;volume=.35;ensure(){if(!this.ctx){let e=window.AudioContext||window.webkitAudioContext;if(!e)return null;this.ctx=new e,this.master=this.ctx.createGain(),this.master.gain.value=this.volume,this.master.connect(this.ctx.destination)}return"suspended"===this.ctx.state&&this.ctx.resume(),this.ctx}setEnabled(e){this.enabled=e}setVolume(e){this.volume=Math.max(0,Math.min(1,e)),this.master&&(this.master.gain.value=this.volume)}tone(e,t,n="sine",r=.3,o=0,a=0,i){let s=this.ensure();if(!s||!this.master)return;let c=s.currentTime+o,l=s.createOscillator(),u=s.createGain();if(l.type=n,l.frequency.setValueAtTime(e,c),a&&l.detune.setValueAtTime(a,c),u.gain.setValueAtTime(0,c),u.gain.linearRampToValueAtTime(r,c+.008),u.gain.exponentialRampToValueAtTime(1e-4,c+t),i){let e=s.createBiquadFilter();e.type="lowpass",e.frequency.value=i,l.connect(e),e.connect(u)}else l.connect(u);u.connect(this.master),l.start(c),l.stop(c+t+.05)}sweep(e,t,n,r="sine",o=.3,a=0){let i=this.ensure();if(!i||!this.master)return;let s=i.currentTime+a,c=i.createOscillator(),l=i.createGain();c.type=r,c.frequency.setValueAtTime(e,s),c.frequency.exponentialRampToValueAtTime(Math.max(1,t),s+n),l.gain.setValueAtTime(0,s),l.gain.linearRampToValueAtTime(o,s+.02),l.gain.exponentialRampToValueAtTime(1e-4,s+n),c.connect(l),l.connect(this.master),c.start(s),c.stop(s+n+.05)}noise(e,t=.2,n=0,r=1200){let o=this.ensure();if(!o||!this.master)return;let a=o.currentTime+n,i=Math.floor(o.sampleRate*e),s=o.createBuffer(1,i,o.sampleRate),c=s.getChannelData(0);for(let e=0;ee.soundOn);(0,t.useEffect)(()=>{a().setEnabled(e)},[e])}function c(e,t){a().play(e,t)}e.s(["sfx",()=>c,"useAudioSync",()=>s],31334)},76639,10772,e=>{"use strict";let t,n,r,o;var a,i,s,c,l,u,d,f=e.i(43476),p=e.i(71645),h=e.i(81140),m=e.i(20783),v=e.i(30030),g=e.i(34620),y=p[" useId ".trim().toString()]||(()=>void 0),b=0;function w(e){let[t,n]=p.useState(y());return(0,g.useLayoutEffect)(()=>{e||n(e=>e??String(b++))},[e]),e||(t?`radix-${t}`:"")}e.s(["useId",()=>w],10772);var E=e.i(69340),x=e.i(26330),C=e.i(48425),R=e.i(30207),k="focusScope.autoFocusOnMount",S="focusScope.autoFocusOnUnmount",T={bubbles:!1,cancelable:!0},A=p.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,c]=p.useState(null),l=(0,R.useCallbackRef)(o),u=(0,R.useCallbackRef)(a),d=p.useRef(null),h=(0,m.useComposedRefs)(t,e=>c(e)),v=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(r){let e=function(e){if(v.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:D(d.current,{select:!0})},t=function(e){if(v.paused||!s)return;let t=e.relatedTarget;null!==t&&(s.contains(t)||D(d.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&D(s)});return s&&n.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,s,v.paused]),p.useEffect(()=>{if(s){O.add(v);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(k,T);s.addEventListener(k,l),s.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(D(r,{select:t}),document.activeElement!==n)return}(N(s).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&D(s))}return()=>{s.removeEventListener(k,l),setTimeout(()=>{let t=new CustomEvent(S,T);s.addEventListener(S,u),s.dispatchEvent(t),t.defaultPrevented||D(e??document.body,{select:!0}),s.removeEventListener(S,u),O.remove(v)},0)}}},[s,l,u,v]);let g=p.useCallback(e=>{if(!n&&!r||v.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){var a;let t,r=e.currentTarget,[i,s]=[j(t=N(a=r),a),j(t.reverse(),a)];i&&s?e.shiftKey||o!==s?e.shiftKey&&o===i&&(e.preventDefault(),n&&D(s,{select:!0})):(e.preventDefault(),n&&D(i,{select:!0})):o===r&&e.preventDefault()}},[n,r,v.paused]);return(0,f.jsx)(C.Primitive.div,{tabIndex:-1,...i,ref:h,onKeyDown:g})});function N(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function j(e,t){for(let n of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function D(e,{select:t=!1}={}){if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}A.displayName="FocusScope";var O=(r=[],{add(e){let t=r[0];e!==t&&t?.pause(),(r=P(r,e)).unshift(e)},remove(e){r=P(r,e),r[0]?.resume()}});function P(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var M=e.i(74606),I=e.i(96626),_=0;function F(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var L=function(){return(L=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}var B=("function"==typeof SuppressedError&&SuppressedError,"right-scroll-bar-position"),V="width-before-scroll-bar";function q(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var H="u">typeof window?p.useLayoutEffect:p.useEffect,K=new WeakMap,z=(void 0===a&&(a={}),(void 0===i&&(i=function(e){return e}),s=[],c=!1,l={read:function(){if(c)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return s.length?s[s.length-1]:null},useMedium:function(e){var t=i(e,c);return s.push(t),function(){s=s.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(c=!0;s.length;){var t=s;s=[],t.forEach(e)}s={push:function(t){return e(t)},filter:function(){return s}}},assignMedium:function(e){c=!0;var t=[];if(s.length){var n=s;s=[],n.forEach(e),t=s}var r=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(r)};o(),s={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),s}}}}).options=L({async:!0,ssr:!1},a),l),U=function(){},X=p.forwardRef(function(e,t){var n,r,o,a,i=p.useRef(null),s=p.useState({onScrollCapture:U,onWheelCapture:U,onTouchMoveCapture:U}),c=s[0],l=s[1],u=e.forwardProps,d=e.children,f=e.className,h=e.removeScrollBar,m=e.enabled,v=e.shards,g=e.sideCar,y=e.noRelative,b=e.noIsolation,w=e.inert,E=e.allowPinchZoom,x=e.as,C=e.gapMode,R=W(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=(n=[i,t],r=function(e){return n.forEach(function(t){return q(t,e)})},(o=(0,p.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,a=o.facade,H(function(){var e=K.get(a);if(e){var t=new Set(e),r=new Set(n),o=a.current;t.forEach(function(e){r.has(e)||q(e,null)}),r.forEach(function(e){t.has(e)||q(e,o)})}K.set(a,n)},[n]),a),S=L(L({},R),c);return p.createElement(p.Fragment,null,m&&p.createElement(g,{sideCar:z,removeScrollBar:h,shards:v,noRelative:y,noIsolation:b,inert:w,setCallbacks:l,allowPinchZoom:!!E,lockRef:i,gapMode:C}),u?p.cloneElement(p.Children.only(d),L(L({},S),{ref:k})):p.createElement(void 0===x?"div":x,L({},S,{className:f,ref:k}),d))});X.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},X.classNames={fullWidth:V,zeroRight:B};var Y=function(e){var t=e.sideCar,n=W(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return p.createElement(r,L({},n))};Y.isSideCarExport=!0;var G=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=d||("u">typeof __webpack_nonce__?__webpack_nonce__:void 0);return t&&e.setAttribute("nonce",t),e}())){var r,o;(r=t).styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Z=function(){var e=G();return function(t,n){p.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},$=function(){var e=Z();return function(t){return e(t.styles,t.dynamic),null}},J={left:0,top:0,right:0,gap:0},Q=function(e){return parseInt(e||"",10)||0},ee=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[Q(n),Q(r),Q(o)]},et=function(e){if(void 0===e&&(e="margin"),"u"