IGDAudioCoordinator",[],(function(t,n,r,o,a,i){"use strict";var e=(function(){function e(){this.$2=new Map,this.$3=null}e.getInstance=function(){return e.$1==null&&(e.$1=new e),e.$1};var t=e.prototype;return t.registerAudioInstance=function(t,n,r){this.$2.set(t,{controls:n,onGlobalPause:r})},t.unregisterAudioInstance=function(t){this.$3===t&&(this.$3=null),this.$2.delete(t)},t.pauseAllExcept=function(t){this.$3=t;for(var e of this.$2){var n=e[0],r=e[1];n!==t&&(r.controls.pause(),r.onGlobalPause==null||r.onGlobalPause())}},t.getCurrentlyPlaying=function(){return this.$3},t.isGloballyActive=function(t){return this.$3===t},t.notifyAudioStopped=function(t){this.$3===t&&(this.$3=null)},t.__clearForTesting=function(){this.$2.clear(),this.$3=null},e})();e.$1=null,i.default=e}),66);
-----
useIGDAudioManagerWithReducer",["IGDAudioCoordinator","cancelAnimationFrame","generateAudioInstanceId","react","react-compiler-runtime","requestAnimationFrameAcrossTransitions"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=o("react")),u=s.useCallback,c=s.useEffect,d=s.useReducer,m=s.useRef,p={animationProgress:0,currentTime:0,duration:0,error:null,isDragging:!1,isGloballyActive:!1,isLoading:!1,isPlaying:!1};function _(e,t){switch(t.type){case"PLAY":return babelHelpers.extends({},e,{error:null,isGloballyActive:!0,isPlaying:!0});case"PAUSE":return babelHelpers.extends({},e,{isGloballyActive:!1,isPlaying:!1});case"ENDED":return babelHelpers.extends({},e,{animationProgress:0,currentTime:0,isGloballyActive:!1,isPlaying:!1});case"ERROR":return babelHelpers.extends({},e,{error:t.payload.error,isGloballyActive:!1,isLoading:!1,isPlaying:!1});case"LOAD_START":return babelHelpers.extends({},e,{error:null,isLoading:!0});case"CAN_PLAY":return babelHelpers.extends({},e,{duration:t.payload.duration,isLoading:!1});case"LOADED_METADATA":return babelHelpers.extends({},e,{duration:t.payload.duration});case"TIME_UPDATE":return babelHelpers.extends({},e,{currentTime:t.payload.currentTime,duration:t.payload.duration});case"SET_GLOBAL_ACTIVITY":return babelHelpers.extends({},e,{isGloballyActive:t.payload.isGloballyActive});case"DRAGGING_START":return babelHelpers.extends({},e,{isDragging:!0});case"DRAGGING_STOP":return babelHelpers.extends({},e,{isDragging:!1});case"UPDATE_ANIMATION_PROGRESS":return babelHelpers.extends({},e,{animationProgress:t.payload.progress});case"SEEK":return babelHelpers.extends({},e,{currentTime:t.payload.time});case"RESET":return p;default:return e}}function f(e,t,n,a,i){var l=o("react-compiler-runtime").c(50),s=d(_,p),u=s[0],f=s[1],g=m(null),h=m(null),y=m(null),C=m(null),b;l[0]!==e?(b=r("generateAudioInstanceId")(e),l[0]=e,l[1]=b):b=l[1];var v=m(b),S;l[2]===Symbol.for("react.memo_cache_sentinel")?(S=r("IGDAudioCoordinator").getInstance(),l[2]=S):S=l[2];var R=m(S),L,E;l[3]!==e?(L=function(){var t=new Audio;return g.current=t,e!=null&&(t.src=e),function(){t.pause(),t.removeAttribute("src"),t.load(),g.current=null}},E=[e],l[3]=e,l[4]=L,l[5]=E):(L=l[4],E=l[5]),c(L,E);var k;l[6]===Symbol.for("react.memo_cache_sentinel")?(k=function(){var e=g.current;e!=null&&f({payload:{currentTime:e.currentTime,duration:e.duration||0},type:"TIME_UPDATE"})},l[6]=k):k=l[6];var I=k,T;l[7]===Symbol.for("react.memo_cache_sentinel")?(T=function(){var e=R.current,t=v.current;e!=null&&t!=null&&f({payload:{isGloballyActive:e.isGloballyActive(t)},type:"SET_GLOBAL_ACTIVITY"})},l[7]=T):T=l[7];var D;l[8]!==u.isPlaying?(D=[u.isPlaying],l[8]=u.isPlaying,l[9]=D):D=l[9],c(T,D);var x,$;l[10]!==i?(x=function(){var e=R.current,t=v.current;if(e!=null&&t!=null){var n={pause:function(){var e=g.current;e!=null&&e.pause()}};return e.registerAudioInstance(t,n,i),function(){e.unregisterAudioInstance(t)}}},$=[i],l[10]=i,l[11]=x,l[12]=$):(x=l[11],$=l[12]),c(x,$);var P;l[13]===Symbol.for("react.memo_cache_sentinel")?(P=function(){if(C.current==null){var e=function(){var t=g.current;if(t!=null){var n=t.currentTime,o=t.duration;if(o>0){var a=n/o*100,i=Math.min(Math.max(a,0),100);f({payload:{progress:i},type:"UPDATE_ANIMATION_PROGRESS"});var l=y.current;l!=null&&l.updateHighlight(i)}}C.current=r("requestAnimationFrameAcrossTransitions")(e)};C.current=r("requestAnimationFrameAcrossTransitions")(e)}},l[13]=P):P=l[13];var N=P,M;l[14]===Symbol.for("react.memo_cache_sentinel")?(M=function(){C.current!=null&&(r("cancelAnimationFrame")(C.current),C.current=null)},l[14]=M):M=l[14];var w=M,A;l[15]!==u.isDragging||l[16]!==a||l[17]!==n||l[18]!==t?(A=function(){var e=g.current;if(e!=null){var r=function(){f({type:"LOAD_START"})},o=function(){f({payload:{duration:e.duration||0},type:"CAN_PLAY"})},i=function(){var e=R.current,n=v.current;f({type:"PLAY"}),N(),e!=null&&n!=null&&e.pauseAllExcept(n),t==null||t()},l=function(){var e=R.current,t=v.current;f({type:"PAUSE"}),u.isDragging||w(),e!=null&&t!=null&&e.notifyAudioStopped(t),n==null||n()},s=function(){var e=R.current,t=v.current;f({type:"ENDED"}),w(),e!=null&&t!=null&&e.notifyAudioStopped(t),n==null||n()},c=function(){var t,n=R.current,r=v.current,o=((t=e.error)==null?void 0:t.message)!=null?e.error.message:"Unknown audio error";f({payload:{error:o},type:"ERROR"}),n!=null&&r!=null&&n.notifyAudioStopped(r),a==null||a(o)},d=function(){f({payload:{duration:e.duration||0},type:"LOADED_METADATA"})};return e.addEventListener("loadstart",r),e.addEventListener("canplay",o),e.addEventListener("play",i),e.addEventListener("pause",l),e.addEventListener("ended",s),e.addEventListener("error",c),e.addEventListener("timeupdate",I),e.addEventListener("loadedmetadata",d),function(){e.removeEventListener("loadstart",r),e.removeEventListener("canplay",o),e.removeEventListener("play",i),e.removeEventListener("pause",l),e.removeEventListener("ended",s),e.removeEventListener("error",c),e.removeEventListener("timeupdate",I),e.removeEventListener("loadedmetadata",d)}}},l[15]=u.isDragging,l[16]=a,l[17]=n,l[18]=t,l[19]=A):A=l[19];var F;l[20]!==u.isDragging||l[21]!==a||l[22]!==i||l[23]!==n||l[24]!==t?(F=[I,t,n,a,i,N,w,u.isDragging],l[20]=u.isDragging,l[21]=a,l[22]=i,l[23]=n,l[24]=t,l[25]=F):F=l[25],c(A,F);var O,B;l[26]===Symbol.for("react.memo_cache_sentinel")?(O=function(){return function(){w()}},B=[w],l[26]=O,l[27]=B):(O=l[26],B=l[27]),c(O,B);var W;l[28]!==u.isPlaying||l[29]!==a?(W=function(){var e=g.current;if(e!=null&&!u.isPlaying){var t=e.play();t!=null&&t.catch(function(e){var t=e instanceof Error?e.message:"Failed to play audio";f({payload:{error:t},type:"ERROR"}),a==null||a(t)})}},l[28]=u.isPlaying,l[29]=a,l[30]=W):W=l[30];var q=W,U;l[31]!==u.isPlaying?(U=function(){var e=g.current;e!=null&&u.isPlaying&&e.pause()},l[31]=u.isPlaying,l[32]=U):U=l[32];var V=U,H;l[33]!==u.isPlaying||l[34]!==V||l[35]!==q?(H=function(){u.isPlaying?V():q()},l[33]=u.isPlaying,l[34]=V,l[35]=q,l[36]=H):H=l[36];var G=H,z;l[37]===Symbol.for("react.memo_cache_sentinel")?(z=function(t){var e=g.current;e!=null&&!isNaN(e.duration)&&t>=0&&t<=e.duration&&(e.currentTime=t,f({payload:{time:t},type:"SEEK"}))},l[37]=z):z=l[37];var j=z,K;l[38]===Symbol.for("react.memo_cache_sentinel")?(K=function(t){var e=g.current;e!=null&&(f({type:"RESET"}),e.src=t,e.load())},l[38]=K):K=l[38];var Q=K,X;l[39]!==u.isPlaying?(X=function(t){t?(f({type:"DRAGGING_START"}),N()):(f({type:"DRAGGING_STOP"}),u.isPlaying||w())},l[39]=u.isPlaying,l[40]=X):X=l[40];var Y=X,J;l[41]!==V||l[42]!==q||l[43]!==Y||l[44]!==G?(J={load:Q,pause:V,play:q,seek:j,setDragging:Y,toggle:G},l[41]=V,l[42]=q,l[43]=Y,l[44]=G,l[45]=J):J=l[45];var Z=J,ee;l[46]===Symbol.for("react.memo_cache_sentinel")?(ee={audioRef:g,dragContainerRef:h,progressHighlightRef:y},l[46]=ee):ee=l[46];var te=ee,ne;return l[47]!==u||l[48]!==Z?(ne=[u,Z,te],l[47]=u,l[48]=Z,l[49]=ne):ne=l[49],ne}l.default=f}),98);
-----