PageSourceSearch

https://table-top-tunes.web.app/_expo/static/js/web/build-555ed216…ug-menu-e7c7abaf35702479d757c933cd01bfac.js

js table-top-tunes.web.app collected 2026-10-03 12:37:44 UTC 50,416 bytes, 9 lines download raw bytes

1__d(function(g,r,_i,a,m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return _}});var t=r(_d[0]),o=r(_d[1]),s=r(_d[2]),n=r(_d[3]),i=r(_d[4]),l=r(_d[5]),c=r(_d[6]),d=r(_d[7]),u=r(_d[8]),p=r(_d[9]),f=r(_d[10]),S=r(_d[11]),x=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(o){var s=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,s.get?s:{enumerable:!0,get:function(){return e[o]}})}),t.default=e,t})(r(_d[12])),C=r(_d[13]),O=r(_d[14]),y=e(r(_d[15]));r(_d[16]);var b=e(r(_d[17])),h=e(r(_d[18])),j=e(r(_d[19])),T=e(r(_d[20])),I=e(r(_d[21])),k=r(_d[22]),E=e(r(_d[23])),R=r(_d[24]),v=r(_d[25]);function L(){const[e,o]=(0,O.useState)(i.getCrossfadeConfig),[s,n]=(0,O.useState)(!1),d=(e,t)=>{if('curve'===e)o(e=>Object.assign({},e,{curve:t}));else{const s=parseInt(t,10);!isNaN(s)&&s>=0&&o(t=>Object.assign({},t,{[e]:s}))}n(!0)},p=async()=>{try{await x.setStringAsync(JSON.stringify(e)),y.default.alert('Copied','Crossfade settings JSON copied to clipboard.')}catch{y.default.alert('Error','Failed to copy to clipboard.')}},f=[{key:'crossfadeDurationMs',label:'Crossfade Fade-Out Duration',unit:'ms',defaultVal:i.DEFAULTS.crossfadeDurationMs},{key:'crossfadeNewTrackDelayMs',label:'New Track Delay',unit:'ms',defaultVal:i.DEFAULTS.crossfadeNewTrackDelayMs},{key:'battleFadeDurationMs',label:'Battle Fade Duration',unit:'ms',defaultVal:i.DEFAULTS.battleFadeDurationMs},{key:'restoreFadeDurationMs',label:'Restore Fade Duration',unit:'ms',defaultVal:i.DEFAULTS.restoreFadeDurationMs},{key:'crossfadeSteps',label:'Crossfade Steps (native iOS)',unit:'steps',defaultVal:i.DEFAULTS.crossfadeSteps},{key:'battleFadeSteps',label:'Battle Fade Steps',unit:'steps',defaultVal:i.DEFAULTS.battleFadeSteps}];return(0,v.jsxs)(R.YStack,{gap:"$3",children:[(0,v.jsx)(u.CustomText,{style:{fontSize:16,color:t.COLOR_WHITE,fontWeight:'600'},children:"Crossfade Tuning"}),f.map(({key:o,label:s,unit:n,defaultVal:i})=>(0,v.jsxs)(R.YStack,{gap:"$1",children:[(0,v.jsxs)(u.CustomText,{style:{fontSize:12,color:t.COLOR_WHITE,opacity:.7},children:[s," (",n,") \u2014 default: ",i]}),(0,v.jsx)(T.default,{style:W.input,value:String(e[o]),onChangeText:e=>{d(o,e)},keyboardType:"numeric",selectTextOnFocus:!0})]},o)),(0,v.jsxs)(R.YStack,{gap:"$1",children:[(0,v.jsxs)(u.CustomText,{style:{fontSize:12,color:t.COLOR_WHITE,opacity:.7},children:["Fade Curve \u2014 default: ",i.DEFAULTS.curve]}),(0,v.jsxs)(R.XStack,{gap:"$2",children:[(0,v.jsx)(b.default,{onPress:()=>{d('curve','linear')},style:[W.curveOption,'linear'===e.curve&&W.curveOptionActive],children:(0,v.jsx)(u.CustomText,{style:{fontSize:13,color:t.COLOR_WHITE},children:"Linear"})}),(0,v.jsx)(b.default,{onPress:()=>{d('curve','equal-power')},style:[W.curveOption,'equal-power'===e.curve&&W.curveOptionActive],children:(0,v.jsx)(u.CustomText,{style:{fontSize:13,color:t.COLOR_WHITE},children:"Equal-Power"})})]})]}),(0,v.jsxs)(R.XStack,{gap:"$2",flexWrap:"wrap",marginTop:"$2",children:[(0,v.jsx)(R.Button,{flex:1,backgroundColor:s?'rgba(76, 175, 80, 0.8)':'rgba(76, 175, 80, 0.4)',color:t.COLOR_WHITE,onPress:()=>{(0,i.saveCrossfadeConfig)(e),l.ExpoRpgAudio.musicSetCrossfadeSteps(e.crossfadeSteps),n(!1),y.default.alert('Applied','Crossfade settings updated. Changes take effect on the next crossfade.')},disabled:!s,icon:(0,v.jsx)(c.Ionicons,{name:"checkmark-circle-outline",size:18,color:t.COLOR_WHITE}),children:"Apply"}),(0,v.jsx)(R.Button,{flex:1,backgroundColor:"rgba(255, 152, 0, 0.7)",color:t.COLOR_WHITE,onPress:()=>{(0,i.resetCrossfadeConfig)();const e=Object.assign({},i.DEFAULTS);o(e),l.ExpoRpgAudio.musicSetCrossfadeSteps(e.crossfadeSteps),n(!1),y.default.alert('Reverted','Crossfade settings reset to defaults.')},icon:(0,v.jsx)(c.Ionicons,{name:"refresh-outline",size:18,color:t.COLOR_WHITE}),children:"Defaults"}),(0,v.jsx)(R.Button,{flex:1,backgroundColor:"rgba(33, 150, 243, 0.7)",color:t.COLOR_WHITE,onPress:()=>{p()},icon:(0,v.jsx)(c.Ionicons,{name:"copy-outline",size:18,color:t.COLOR_WHITE}),children:"Copy"})]})]})}function A(){const{user:e}=(0,o.useAuth)(),[i,l]=(0,O.useState)(null),[d,f]=(0,O.useState)(''),[S,C]=(0,O.useState)(!0),[h,j]=(0,O.useState)(''),[T,I]=(0,O.useState)('N/A'),[L,A]=(0,O.useState)('N/A'),[D,_]=(0,O.useState)('N/A'),[W,H]=(0,O.useState)(!1),[N,w]=(0,O.useState)(!1),[z,P]=(0,O.useState)(void 0),[$,F]=(0,O.useState)(!1);(0,O.useEffect)(()=>
1{if(!$)return;(async()=>{try{f((0,p.getAppVersionDisplay)());const e=await(0,s.getFacebookAdvertiserID)();j(e);const t=await E.default.getCustomerInfo();l(t);try{I(await k.OneSignal.User.getOnesignalId()??'N/A'),A(await k.OneSignal.User.pushSubscription.getIdAsync()??'N/A'),_(await k.OneSignal.User.pushSubscription.getTokenAsync()??'N/A'),H(await k.OneSignal.Notifications.getPermissionAsync()),w(await k.OneSignal.User.pushSubscription.getOptedInAsync())}catch(e){console.error('OneSignal error:',e)}P((0,n.getGDPRTrackingConsent)())}catch(e){console.error('Error loading debug info:',e)}finally{C(!1)}})()},[$]);const B=async(e,t)=>{try{await x.setStringAsync(e),y.default.alert('Copied',`${t} copied to clipboard`)}catch{y.default.alert('Error','Failed to copy to clipboard')}},U=async()=>{const t={app:{version:d,platform:'React Native'},facebook:{advertiserId:h},user:{uid:e?.uid??'Not logged in',email:e?.email??'N/A',displayName:e?.displayName??'N/A',isAnonymous:e?.isAnonymous??!1},revenueCat:{appUserID:i?.originalAppUserId??'N/A',activeEntitlements:Object.keys(i?.entitlements.active??{}),activeSubscriptions:i?.activeSubscriptions??[]},oneSignal:{userId:T,subscriptionId:L,pushToken:D,permission:W?'Granted':'Denied',subscribed:N?'Yes':'No',gdprConsent:void 0===z?'Not Set':z?'Granted':'Denied'}};try{await x.setStringAsync(JSON.stringify(t,null,2)),y.default.alert('Copied','All debug info copied to clipboard')}catch{y.default.alert('Error','Failed to copy')}},Y=(e,o,s=!0)=>(0,v.jsxs)(R.YStack,{gap:"$1",marginBottom:"$3",children:[(0,v.jsx)(u.CustomText,{style:{fontSize:12,color:t.COLOR_WHITE,opacity:.7},children:e}),(0,v.jsxs)(R.XStack,{alignItems:"center",gap:"$2",children:[(0,v.jsx)(u.CustomText,{style:{fontSize:13,color:t.COLOR_WHITE,flex:1},children:o}),s&&(0,v.jsx)(b.default,{onPress:()=>{B(o,e)},children:(0,v.jsx)(c.Ionicons,{name:"copy-outline",size:20,color:t.COLOR_WHITE})})]})]},e),M=async()=>{try{const e=await(0,s.getFacebookTrackingStatus)();y.default.alert('Facebook Tracking',[`Platform: ${e.platform}`,"GDPR: "+(void 0===e.gdprConsent?'Not set':e.gdprConsent?'Granted':'Denied'),`ATT: ${e.attStatus}`,"ATE: "+(e.ateEnabled?'Yes':'No')].join('\n'))}catch(e){y.default.alert('Error',e instanceof Error?e.message:'Unknown error')}};return(0,v.jsxs)(R.YStack,{gap:"$2",children:[(0,v.jsx)(b.default,{onPress:()=>{F(!$)},children:(0,v.jsxs)(R.XStack,{alignItems:"center",gap:"$2",children:[(0,v.jsx)(c.Ionicons,{name:$?'chevron-down':'chevron-forward',size:20,color:t.COLOR_WHITE}),(0,v.jsx)(u.CustomText,{style:{fontSize:16,color:t.COLOR_WHITE,fontWeight:'600'},children:"Debug Info"}),!$&&(0,v.jsx)(u.CustomText,{style:{fontSize:12,color:t.COLOR_WHITE,opacity:.5},children:"(tap to show)"})]})}),$&&(0,v.jsxs)(R.YStack,{gap:"$4",marginTop:"$2",children:[(0,v.jsx)(R.Button,{backgroundColor:"rgba(255,255,255,0.2)",color:t.COLOR_WHITE,onPress:()=>{U()},icon:(0,v.jsx)(c.Ionicons,{name:"copy-outline",size:20,color:t.COLOR_WHITE}),children:"Copy All Debug Info"}),S?(0,v.jsx)(u.CustomText,{style:{fontSize:13,color:t.COLOR_WHITE,opacity:.7},children:"Loading..."}):(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(R.Separator,{}),(0,v.jsxs)(R.YStack,{gap:"$2",children:[(0,v.jsx)(u.CustomText,{style:{fontSize:16,color:t.COLOR_WHITE,marginBottom:8},children:"App Information"}),Y('Version',d),Y('Platform','React Native',!1)]}),(0,v.jsx)(R.Separator,{}),(0,v.jsxs)(R.YStack,{gap:"$2",children:[(0,v.jsx)(u.CustomText,{style:{fontSize:16,color:t.COLOR_WHITE,marginBottom:8},children:"Firebase User"}),e?(0,v.jsxs)(v.Fragment,{children:[Y('UID',e.uid),Y('Email',e.email??'N/A'),Y('Display Name',e.displayName??'N/A'),Y('Is Anonymous',e.isAnonymous?'Yes':'No',!1)]}):(0,v.jsx)(u.CustomText,{style:{fontSize:13,color:t.COLOR_WHITE,opacity:.7},children:"Not logged in"})]}),(0,v.jsx)(R.Separator,{}),(0,v.jsxs)(R.YStack,{gap:"$2",children:[(0,v.jsx)(u.CustomText,{style:{fontSize:16,color:t.COLOR_WHITE,marginBottom:8},children:"RevenueCat"}),i?(0,v.jsxs)(v.Fragment,{children:[Y('App User ID',i.originalAppUserId),Y('Anonymous',i.originalAppUserId.startsWith('$RCAnonymousID:')?'Yes':'No',!1),Y('First Seen',new Date(i.firstSeen).toLocaleStr
1ing(),!1),i.latestExpirationDate&&Y('Expires',new Date(i.latestExpirationDate).toLocaleString(),!1),i.managementURL&&Y('Management URL',i.managementURL)]}):(0,v.jsx)(u.CustomText,{style:{fontSize:13,color:t.COLOR_WHITE,opacity:.7},children:"No customer info"})]}),(0,v.jsx)(R.Separator,{}),(0,v.jsxs)(R.YStack,{gap:"$2",children:[(0,v.jsx)(u.CustomText,{style:{fontSize:16,color:t.COLOR_WHITE,marginBottom:8},children:"OneSignal"}),Y('User ID',T),Y('Subscription ID',L),Y('Push Token',D),Y('Permission',W?'Granted':'Denied',!1),Y('Subscribed',N?'Yes':'No',!1),Y('GDPR Consent',void 0===z?'Not Set':z?'Granted':'Denied',!1)]}),(0,v.jsx)(R.Separator,{}),(0,v.jsxs)(R.YStack,{gap:"$2",children:[(0,v.jsx)(u.CustomText,{style:{fontSize:16,color:t.COLOR_WHITE,marginBottom:8},children:"Active Entitlements"}),i&&Object.keys(i.entitlements.active).length>0?Object.entries(i.entitlements.active).map(([e,o])=>{return s=e,n=o,(0,v.jsxs)(R.YStack,{backgroundColor:"rgba(255,255,255,0.1)",padding:"$3",borderRadius:"$2",marginBottom:"$2",children:[(0,v.jsx)(u.CustomText,{style:{fontSize:14,color:t.COLOR_WHITE,marginBottom:8},children:s}),Y('Product',n.productIdentifier),Y('Active',n.isActive?'Yes':'No',!1),Y('Will Renew',n.willRenew?'Yes':'No',!1),n.expirationDate&&Y('Expires',new Date(n.expirationDate).toLocaleString(),!1),Y('Store',n.store)]},s);var s,n}):(0,v.jsx)(u.CustomText,{style:{fontSize:13,color:t.COLOR_WHITE,opacity:.7},children:"No active entitlements"})]}),(0,v.jsx)(R.Separator,{}),(0,v.jsxs)(R.YStack,{gap:"$2",children:[(0,v.jsx)(u.CustomText,{style:{fontSize:16,color:t.COLOR_WHITE,marginBottom:8},children:"Active Subscriptions"}),i&&i.activeSubscriptions.length>0?i.activeSubscriptions.map((e,o)=>(0,v.jsxs)(u.CustomText,{style:{fontSize:13,color:t.COLOR_WHITE},children:["- ",e]},o)):(0,v.jsx)(u.CustomText,{style:{fontSize:13,color:t.COLOR_WHITE,opacity:.7},children:"None"})]}),(0,v.jsx)(R.Separator,{}),(0,v.jsx)(R.Button,{backgroundColor:"rgba(255,255,255,0.1)",color:t.COLOR_WHITE,onPress:()=>{y.default.alert('Raw JSON',JSON.stringify(i,null,2),[{text:'Close',style:'cancel'},{text:'Copy',onPress:()=>{B(JSON.stringify(i,null,2),'Raw JSON')}}])},children:"View Raw JSON"}),(0,v.jsx)(R.Separator,{}),(0,v.jsxs)(R.YStack,{gap:"$2",children:[(0,v.jsx)(u.CustomText,{style:{fontSize:16,color:t.COLOR_WHITE,marginBottom:8},children:"Facebook SDK"}),Y('Advertiser ID',h||'Loading...',!0),(0,v.jsx)(R.Button,{backgroundColor:"rgba(66, 103, 178, 0.8)",color:t.COLOR_WHITE,onPress:()=>{M()},icon:(0,v.jsx)(c.Ionicons,{name:"logo-facebook",size:20,color:t.COLOR_WHITE}),children:"Check Tracking Status"})]}),(0,v.jsx)(R.Separator,{}),(0,v.jsxs)(R.YStack,{gap:"$2",children:[(0,v.jsx)(u.CustomText,{style:{fontSize:16,color:t.COLOR_WHITE,marginBottom:8},children:"Storage"}),(0,v.jsx)(R.Button,{backgroundColor:"rgba(255, 59, 48, 0.8)",color:t.COLOR_WHITE,onPress:()=>{y.default.alert('Clear All Storage','Delete ALL locally stored data?',[{text:'Cancel',style:'cancel'},{text:'Clear All',style:'destructive',onPress:()=>{try{(0,n.clearAllMMKVStorage)(),y.default.alert('Success','All storage cleared. Restart the app.')}catch(e){y.default.alert('Error',e instanceof Error?e.message:'Unknown error')}}}])},icon:(0,v.jsx)(c.Ionicons,{name:"trash-outline",size:20,color:t.COLOR_WHITE}),children:"Clear All MMKV Storage"})]})]})]})]})}function D(){const e=(0,S.useUpdateStore)(e=>e.lastPollAt),o=(0,S.useUpdateStore)(e=>e.manualCheckInProgress),s=async()=>{const e=await(0,f.manualCheck)();'up-to-date'===e.state?y.default.alert('Up to date',`You are on version ${e.version} (build ${e.buildId}).`):'update-available'===e.state?y.default.alert('Update available',`New version ${e.version} (build ${e.buildId}) is ready. The banner will let you reload when convenient.`):'error'===e.state?y.default.alert('Check failed',e.error):y.default.alert('Disabled','Version checks run only on production web builds.')},n=e?`${Math.max(0,Math.round((Date.now()-e)/1e3)).toString()}s ago`:'never';return(0,v.jsxs)(R.YStack,{gap:"$2",children:[(0,v.jsx)(u.CustomText,{style:{fontSize:16,color:t.COLOR_WHITE,fontWeight:'600'},children:"Web Deploy Tools"}),(0,v.jsxs)(u.CustomText,{style:{fontSize:13,color:'rgba(255,255,255,0.7)'},children:["Build: ",(0,p.getBuildIdDisplay)()," \xb7 Last checked: ",n]}),(0,v.jsx)(R.Button,{backgroundColor:"rgba(33, 150, 243, 0.6)",color:t.COLOR_WHITE,disabled:o,opacity:o?.6:1,onPress:()=>{s()}
1,children:o?'Checking\u2026':'Check for updates now'})]})}function _(){return(0,v.jsxs)(d.Stack,{flex:1,backgroundColor:t.COLOR_PRIMARY,children:[(0,v.jsxs)(I.default,{style:W.header,children:[(0,v.jsx)(b.default,{style:({pressed:e})=>[W.backButton,e&&{opacity:.8}],onPress:()=>{C.router.back()},children:(0,v.jsx)(c.Ionicons,{name:"arrow-back",size:24,color:t.COLOR_WHITE})}),(0,v.jsx)(u.CustomText,{style:{fontSize:18,color:t.COLOR_WHITE},children:"Developer Options"}),(0,v.jsx)(I.default,{style:{width:44}})]}),(0,v.jsx)(h.default,{style:W.scrollView,contentContainerStyle:W.contentContainer,children:(0,v.jsxs)(R.YStack,{gap:"$4",padding:"$4",children:[(0,v.jsx)(L,{}),(0,v.jsx)(R.Separator,{}),(0,v.jsx)(D,{}),(0,v.jsx)(R.Separator,{}),(0,v.jsx)(A,{}),(0,v.jsx)(R.Separator,{}),(0,v.jsx)(R.Button,{backgroundColor:"rgba(255,255,255,0.1)",color:t.COLOR_WHITE,onPress:()=>{y.default.alert('Hide Developer Options','Remove Developer Options from the menu? You can re-enable by tapping the build number 5 times.',[{text:'Cancel',style:'cancel'},{text:'Hide',onPress:()=>{n.appStorageMmkv.set(n.MMKV_STORAGE_KEY.DEV_OPTIONS_ENABLED,!1),C.router.back()}}])},icon:(0,v.jsx)(c.Ionicons,{name:"eye-off-outline",size:18,color:t.COLOR_WHITE}),children:"Hide Developer Options"})]})})]})}const W=j.default.create({header:{flexDirection:'row',alignItems:'center',justifyContent:'space-between',paddingTop:60,paddingBottom:20,paddingHorizontal:20,backgroundColor:t.COLOR_PRIMARY},backButton:{width:44,height:44,borderRadius:22,backgroundColor:'rgba(255,255,255,0.1)',alignItems:'center',justifyContent:'center'},scrollView:{flex:1},contentContainer:{paddingBottom:40},input:{backgroundColor:'rgba(255,255,255,0.1)',color:t.COLOR_WHITE,fontSize:15,paddingHorizontal:12,paddingVertical:10,borderRadius:8,borderWidth:1,borderColor:'rgba(255,255,255,0.2)'},curveOption:{flex:1,paddingVertical:10,paddingHorizontal:16,borderRadius:8,borderWidth:1,borderColor:'rgba(255,255,255,0.2)',backgroundColor:'rgba(255,255,255,0.05)',alignItems:'center'},curveOptionActive:{backgroundColor:'rgba(33, 150, 243, 0.5)',borderColor:'rgba(33, 150, 243, 0.8)'}})},717,[732,793,795,14,1092,1084,737,756,740,797,1067,1074,1093,728,41,279,8,401,294,179,411,286,1091,9,739,49]);
2__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"useMainPlayer",{enumerable:!0,get:function(){return t.useMainPlayer}}),Object.defineProperty(_e,"MainPlayerController",{enumerable:!0,get:function(){return t.MainPlayerController}}),Object.defineProperty(_e,"useSoundBoard",{enumerable:!0,get:function(){return n.useSoundBoard}}),Object.defineProperty(_e,"SoundBoardController",{enumerable:!0,get:function(){return n.SoundBoardController}}),Object.defineProperty(_e,"useQueue",{enumerable:!0,get:function(){return u.useQueue}}),Object.defineProperty(_e,"QueueController",{enumerable:!0,get:function(){return u.QueueController}}),Object.defineProperty(_e,"QueueManager",{enumerable:!0,get:function(){return o.QueueManager}}),Object.defineProperty(_e,"EventThrottle",{enumerable:!0,get:function(){return l.EventThrottle}}),Object.defineProperty(_e,"ExpoRpgAudio",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(_e,"rpgAudioEmitter",{enumerable:!0,get:function(){return c.rpgAudioEmitter}}),Object.defineProperty(_e,"equalPowerFadeIn",{enumerable:!0,get:function(){return b.equalPowerFadeIn}}),Object.defineProperty(_e,"equalPowerFadeOut",{enumerable:!0,get:function(){return b.equalPowerFadeOut}}),Object.defineProperty(_e,"getLayerVolumes",{enumerable:!0,get:function(){return b.getLayerVolumes}}),Object.defineProperty(_e,"getDiscreteLayerVolumes",{enumerable:!0,get:function(){return b.getDiscreteLayerVolumes}}),Object.defineProperty(_e,"computeEffectiveVolume",{enumerable:!0,get:function(){return b.computeEffectiveVolume}}),Object.defineProperty(_e,"fadeVolume",{enumerable:!0,get:function(){return b.fadeVolume}});var e,t=r(d[0]),n=r(d[1]),u=r(d[2]),o=r(d[3]),l=r(d[4]),c=r(d[5]),f=(e=c)&&e.__esModule?e:{default:e},b=r(d[6]),y=r(d[7]);
2Object.keys(y).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return y[e]}})});var p=r(d[8]);Object.keys(p).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return p[e]}})})},1084,[1085,1087,1088,1089,1086,745,1094,1090,1095]);
3__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"MainPlayerController",{enumerable:!0,get:function(){return u}}),e.useMainPlayer=function(s,n,o={}){const[l,h]=(0,t.useState)(Object.assign({},c)),y=(0,t.useRef)(null),p=(0,t.useRef)(o);p.current=o,y.current??=new u(s,n);const k=y.current;(0,t.useEffect)(()=>(k.setOnStateChange(t=>{h(t)}),k.setOnTrackEnd((t,s)=>{p.current.onTrackEnd?.(t,s)}),k.setOnRemoteCommand(t=>{p.current.onRemoteCommand?.(t)}),()=>{k.dispose()}),[k]);const T=(0,t.useCallback)(t=>k.loadTrack(t),[k]),b=(0,t.useCallback)(t=>k.loadLayeredTrack(t),[k]),v=(0,t.useCallback)(()=>{k.play()},[k]),S=(0,t.useCallback)(()=>{k.pause()},[k]),f=(0,t.useCallback)(()=>{k.stop()},[k]),C=(0,t.useCallback)(t=>{k.setVolume(t)},[k]),M=(0,t.useCallback)(t=>{k.setSliderPosition(t)},[k]),P=(0,t.useCallback)(t=>k.playStinger(t),[k]),L=(0,t.useCallback)(t=>{k.pauseStinger(t)},[k]),I=(0,t.useCallback)(t=>{k.resumeStinger(t)},[k]),O=(0,t.useCallback)(t=>{k.stopStinger(t)},[k]),E=(0,t.useCallback)((t,s)=>k.deathThrow(t,s),[k]);return{state:l,loadTrack:T,loadLayeredTrack:b,play:v,pause:S,stop:f,setVolume:C,setSliderPosition:M,playStinger:P,pauseStinger:L,resumeStinger:I,stopStinger:O,deathThrow:E}};var t=r(d[0]),s=r(d[1]),n=r(d[2]),o=r(d[3]),l=r(d[4]);const c={playbackState:'idle',trackType:null,volume:1,position:0,duration:0,loopIteration:0,sliderPosition:0};class u{subscriptions=[];onStateChangeCallback=null;onTrackEndCallback=null;onRemoteCommandCallback=null;fadeCancelFn=null;isPlaying=!1;activeMusicPlaybackId=null;activeLayeredPlaybackId=null;requestedTrackType=null;loadGeneration=0;pendingLoad=null;disposed=!1;constructor(t,o){this.nativeModule=t,this.emitter=o,this.state=Object.assign({},c),this.positionThrottle=new s.EventThrottle(n.POSITION_UPDATE_INTERVAL_MS,t=>{this.notifyStateChange(t)}),this.subscribe()}subscribe(){this.subscriptions.push(this.emitter.addListener('onPositionUpdate',t=>{const s=t;if('music'!==s.trackType&&'layered'!==s.trackType)return;const n='music'===s.trackType?this.activeMusicPlaybackId:this.activeLayeredPlaybackId;n&&s.playbackId===n&&(this.state=Object.assign({},this.state,{position:s.position,duration:s.duration}),this.positionThrottle.emit(this.state))})),this.subscriptions.push(this.emitter.addListener('onStateChange',t=>{const s=t;'music'!==s.trackType&&'layered'!==s.trackType||(this.state=Object.assign({},this.state,{playbackState:s.state,trackType:s.trackType}),this.isPlaying='playing_intro'===s.state||'playing_loop'===s.state||'playing'===s.state,this.positionThrottle.emitImmediate(this.state))})),this.subscriptions.push(this.emitter.addListener('onTrackEnd',t=>{const s=t;if('music'!==s.trackType&&'layered'!==s.trackType||!s.playbackId)return;const n=this.pendingLoad;n?.nativeLoadStarted&&n.trackType===s.trackType?(n.earlyEndIds??=new Set).add(s.playbackId):this.consumeTrackEnd(s)})),this.subscriptions.push(this.emitter.addListener('onRemoteCommand',t=>{const s=t;this.onRemoteCommandCallback?.(s.command)}))}notifyStateChange(t){this.onStateChangeCallback?.(t)}setOnStateChange(t){this.onStateChangeCallback=t}setOnTrackEnd(t){this.onTrackEndCallback=t}setOnRemoteCommand(t){this.onRemoteCommandCallback=t}getState(){return Object.assign({},this.state)}cancelFade(){this.fadeCancelFn&&(this.fadeCancelFn(),this.fadeCancelFn=null)}isLatestRequest(t){return this.requestedTrackType===t}stopStaleEngine(t){this.disposed||this.isLatestRequest(t)||('music'===t?(this.nativeModule.musicStop(),this.nativeModule.musicSetVolume(this.state.volume)):(this.nativeModule.layeredStop(),this.nativeModule.layeredSetVolume(this.state.volume)))}beginPendingLoad(t){const s={generation:++this.loadGeneration,trackType:t,nativeLoadStarted:!1,earlyEndIds:null};return this.requestedTrackType=t,this.pendingLoad=s,this.activeMusicPlaybackId=null,this.activeLayeredPlaybackId=null,this.cancelFade(),s}discardPendingLoad(t){this.pendingLoad===t&&(this.pendingLoad=null)}acceptPendingLoad(t,s){this.pendingLoad===t&&t.generation===this.loadGeneration?('music'===t.trackType?(this.activeMusicPlaybackId=s||null,this.state=Object.assign({},this.state,{trackType:'music'})):(this.activeLayeredPlaybackId=s||null,this.state=Object.assign({},this.state,{trackType:'layered',sliderPosition:0})),this.isPlaying=!0,this.discardPendingLoad(t),s&&t.earlyEndIds?.has(s)&&this.consumeTrackEnd({trackType:t.trackType,playbackId:s})):this.stopStaleEngine(t.trackType)}consumeTrackEnd(t){if('music'!==t.trackType&&'layered'!==t.trackType)return;const s='music'===t.trackType?this.activeMusicPlaybackId:this.activeLayeredPlaybackId;if(!s||s!==t.playbackId)return;'music'===t.trackType?this.activeMusicPlaybackId=null:this.activeLayeredPlaybackId=null;const n=this.loadGeneration;this.isPlaying=!1,this.state=Object.assign({},this.state,{playbackState:'idle'}),this.positionThrottle.emitImmediate(this.state),n===this.loadGeneration&&this.onTrackEndCallback?.(t.trackType,t.playbackId)}async loadTrack(t){const s=this.beginPendingLoad('music'),n=s.generation,c=t.
3introUri||null;let u;try{if(this.isPlaying&&'music'===this.state.trackType){if(this.state=Object.assign({},this.state,{playbackState:'crossfading'}),this.positionThrottle.emitImmediate(this.state),n!==this.loadGeneration)return;const l=(0,o.getCrossfadeConfig)();s.nativeLoadStarted=!0,u=await this.nativeModule.musicCrossfadeTo(c,t.loopUri,t.loopCount,l.crossfadeDurationMs,l.crossfadeNewTrackDelayMs)}else if(this.isPlaying&&'layered'===this.state.trackType){if(this.state=Object.assign({},this.state,{playbackState:'crossfading'}),this.positionThrottle.emitImmediate(this.state),n!==this.loadGeneration)return;const h=(0,o.getCrossfadeConfig)(),y=this.state.volume;this.nativeModule.musicSetVolume(0);const p=(0,l.fadeVolume)(t=>{this.nativeModule.layeredSetVolume(t)},y,0,h.crossfadeDurationMs,20,h.curve),k=setTimeout(()=>{n===this.loadGeneration&&this.nativeModule.musicSetVolume(y)},h.crossfadeNewTrackDelayMs),T=()=>{clearTimeout(k),p.cancel()};this.fadeCancelFn=T,s.nativeLoadStarted=!0;try{const[,s]=await Promise.all([p.promise,this.nativeModule.musicLoad(c,t.loopUri,t.loopCount)]);u=s}catch(t){throw T(),t}finally{clearTimeout(k),this.fadeCancelFn===T&&(this.fadeCancelFn=null)}if(n!==this.loadGeneration)return void this.stopStaleEngine('music');this.nativeModule.musicSetVolume(y),this.nativeModule.layeredStop(),this.nativeModule.layeredSetVolume(y)}else{if(this.state=Object.assign({},this.state,{playbackState:'loading',trackType:'music',position:0,duration:0,loopIteration:0}),this.positionThrottle.emitImmediate(this.state),n!==this.loadGeneration)return;s.nativeLoadStarted=!0,u=await this.nativeModule.musicLoad(c,t.loopUri,t.loopCount)}if(n!==this.loadGeneration)return void this.stopStaleEngine('music');this.acceptPendingLoad(s,u)}finally{this.discardPendingLoad(s)}}async loadLayeredTrack(t){const s=this.beginPendingLoad('layered'),n=s.generation,c=t.layers.map(t=>t.introUri),u=t.layers.map(t=>t.loopUri);let h;try{if(this.isPlaying&&'music'===this.state.trackType){if(this.state=Object.assign({},this.state,{playbackState:'crossfading'}),this.positionThrottle.emitImmediate(this.state),n!==this.loadGeneration)return;const y=(0,o.getCrossfadeConfig)(),p=this.state.volume;this.nativeModule.layeredSetVolume(0);const k=(0,l.fadeVolume)(t=>{this.nativeModule.musicSetVolume(t)},p,0,y.crossfadeDurationMs,20,y.curve),T=setTimeout(()=>{n===this.loadGeneration&&this.nativeModule.layeredSetVolume(p)},y.crossfadeNewTrackDelayMs),b=()=>{clearTimeout(T),k.cancel()};this.fadeCancelFn=b,s.nativeLoadStarted=!0;try{const[,s]=await Promise.all([k.promise,this.nativeModule.layeredLoad(c,u,t.loopCount)]);h=s}catch(t){throw b(),t}finally{clearTimeout(T),this.fadeCancelFn===b&&(this.fadeCancelFn=null)}if(n!==this.loadGeneration)return void this.stopStaleEngine('layered');this.nativeModule.layeredSetVolume(p),this.nativeModule.musicStop(),this.nativeModule.musicSetVolume(p)}else if(this.isPlaying&&'layered'===this.state.trackType){if(this.state=Object.assign({},this.state,{playbackState:'crossfading'}),this.positionThrottle.emitImmediate(this.state),n!==this.loadGeneration)return;const y=(0,o.getCrossfadeConfig)(),p=(0,l.fadeVolume)(t=>{this.nativeModule.layeredSetVolume(t)},this.state.volume,0,y.crossfadeDurationMs,20,y.curve);this.fadeCancelFn=p.cancel;try{await p.promise}finally{this.fadeCancelFn===p.cancel&&(this.fadeCancelFn=null)}if(n!==this.loadGeneration)return;if(s.nativeLoadStarted=!0,h=await this.nativeModule.layeredLoad(c,u,t.loopCount),n!==this.loadGeneration)return void this.stopStaleEngine('layered');this.nativeModule.layeredSetVolume(this.state.volume)}else{if(this.state=Object.assign({},this.state,{playbackState:'loading',trackType:'layered',position:0,duration:0,loopIteration:0,sliderPosition:0}),this.positionThrottle.emitImmediate(this.state),n!==this.loadGeneration)return;s.nativeLoadStarted=!0,h=await this.nativeModule.layeredLoad(c,u,t.loopCount)}if(n!==this.loadGeneration)return void this.stopStaleEngine('layered');this.acceptPendingLoad(s,h)}finally{this.discardPendingLoad(s)}}play(){'music'===this.state.trackType?this.nativeModule.musicPlay():'layered'===this.state.trackType&&this.nativeModule.layeredPlay()}pause(){'music'===this.state.trackType?this.nativeModule.musicPau
3se():'layered'===this.state.trackType&&this.nativeModule.layeredPause()}stop(){this.loadGeneration+=1,this.requestedTrackType=null,this.pendingLoad=null,this.activeMusicPlaybackId=null,this.activeLayeredPlaybackId=null,this.cancelFade(),'music'===this.state.trackType?this.nativeModule.musicStop():'layered'===this.state.trackType&&this.nativeModule.layeredStop(),this.state=Object.assign({},c),this.isPlaying=!1,this.positionThrottle.emitImmediate(this.state)}setVolume(t){this.state=Object.assign({},this.state,{volume:t}),'music'===this.state.trackType?this.nativeModule.musicSetVolume(t):'layered'===this.state.trackType&&this.nativeModule.layeredSetVolume(t),this.positionThrottle.emitImmediate(this.state)}setSliderPosition(t){this.state=Object.assign({},this.state,{sliderPosition:t}),'layered'===this.state.trackType&&this.nativeModule.layeredSetIntensity(t)}async playStinger(t){return this.nativeModule.musicPlayStinger(t)}pauseStinger(t){this.nativeModule.musicPauseStinger(t)}resumeStinger(t){this.nativeModule.musicResumeStinger(t)}stopStinger(t){this.nativeModule.musicStopStinger(t)}async deathThrow(t,s){await this.nativeModule.layeredDeathThrow(t,s)}dispose(){if(!this.disposed){this.disposed=!0,this.loadGeneration+=1,this.requestedTrackType=null,this.pendingLoad=null,this.activeMusicPlaybackId=null,this.activeLayeredPlaybackId=null,this.cancelFade(),this.positionThrottle.dispose();for(const t of this.subscriptions)t.remove();this.subscriptions=[],this.onStateChangeCallback=null,this.onTrackEndCallback=null,this.onRemoteCommandCallback=null}}}},1085,[41,1086,1095,1092,1094]);
4__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"EventThrottle",{enumerable:!0,get:function(){return t}});class t{pending=null;timer=null;lastEmitTime=0;disposed=!1;constructor(t,s){this.intervalMs=t,this.callback=s}emit(t){if(this.disposed)return;if(this.intervalMs<=0)return void this.callback(t);const s=Date.now(),l=s-this.lastEmitTime;if(l>=this.intervalMs)this.lastEmitTime=s,this.pending=null,this.callback(t);else if(this.pending=t,null===this.timer){const t=this.intervalMs-l;this.timer=setTimeout(()=>{if(this.timer=null,this.disposed||null===this.pending)return;this.lastEmitTime=Date.now();const t=this.pending;this.pending=null,this.callback(t)},t)}}emitImmediate(t){this.disposed||(this.lastEmitTime=Date.now(),null!==this.timer&&(clearTimeout(this.timer),this.timer=null),this.pending=null,this.callback(t))}dispose(){this.disposed=!0,null!==this.timer&&(clearTimeout(this.timer),this.timer=null),this.pending=null}}},1086,[]);
5__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SoundBoardController",{enumerable:!0,get:function(){return s}}),e.useSoundBoard=function(o){const n=(0,t.useRef)(null);n.current??=new s(o);const l=n.current,c=(0,t.useSyncExternalStore)(l.subscribe,l.getSnapshot),y=(0,t.useCallback)(t=>l.preloadCategory(t),[l]),u=(0,t.useCallback)((t,s)=>l.playOneShot(t,s),[l]),p=(0,t.useCallback)((t,s,o)=>l.startLoop(t,s,o),[l]),h=(0,t.useCallback)(t=>{l.stopLoop(t)},[l]),v=(0,t.useCallback)(()=>{l.stopAll()},[l]),S=(0,t.useCallback)((t,s)=>{l.setCategoryVolume(t,s)},[l]),f=(0,t.useCallback)(()=>l.isAnyPlaying(),[l]),L=(0,t.useCallback)(t=>l.isLoopPlaying(t),[l]);return(0,t.useMemo)(()=>Object.assign({},c,{preloadCategory:y,playOneShot:u,startLoop:p,stopLoop:h,stopAll:v,setCategoryVolume:S,isAnyPlaying:f,isLoopPlaying:L}),[c,y,u,p,h,v,S,f,L])};var t=r(d[0]);class s{_activeSounds=new Map;_activeLoopsByKey=new Map;snapshot={activeSounds:[],activeLoops:[]};listeners=new Set;constructor(t){this.native=t}subscribe=t=>(this.listeners.add(t),()=>this.listeners.delete(t));getSnapshot=()=>this.snapshot;notify(){this.snapshot={activeSounds:Array.from(this._activeSounds.values()),activeLoops:Array.from(this._activeLoopsByKey.keys())},this.listeners.forEach(t=>{t()})}async preloadCategory(t){await Promise.all(t.items.map(t=>this.native.sfxPreload(t.id,t.uri)))}playOneShot(t,s){const o=this.native.sfxPlay(t,s);return this._activeSounds.set(o,t),this.notify(),o}removeSoundTracking(t){this._activeSounds.delete(t)&&this.notify()}async startLoop(t,s,o){const n=await this.native.loopStart(t,s,o);return this._activeLoopsByKey.set(t,n),this.notify(),n}stopLoop(t){const s=this._activeLoopsByKey.get(t);s&&(this.native.loopStop(s),this._activeLoopsByKey.delete(t),this.notify())}stopAll(){this.native.sfxStopAll(),this.native.loopStopAll(),this._activeSounds.clear(),this._activeLoopsByKey.clear(),this.notify()}setCategoryVolume(t,s){this.native.sfxSetCategoryVolume(t,s)}isAnyPlaying(){return this._activeSounds.size>0||this._activeLoopsByKey.size>0}isLoopPlaying(t){return this._activeLoopsByKey.has(t)}}},1087,[41]);
6__d(function(g,r,i,a,m,e,d){"use strict";
6Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"QueueController",{enumerable:!0,get:function(){return c}}),e.useQueue=function(n){const s=(0,t.useRef)(new c(n)),[u,l]=(0,t.useState)(()=>s.current.getState()),o=(0,t.useCallback)(()=>{l(s.current.getState())},[]),h=(0,t.useCallback)(async t=>{await s.current.init(t),o()},[o]),y=(0,t.useCallback)(()=>{s.current.play(),o()},[o]),p=(0,t.useCallback)(()=>{s.current.pause(),o()},[o]),T=(0,t.useCallback)(async()=>{await s.current.nextScene(),o()},[o]),k=(0,t.useCallback)(async(t,n)=>{await s.current.jumpToScene(t,n),o()},[o]),f=(0,t.useCallback)(async()=>{await s.current.onTrackEnd(),o()},[o]),S=(0,t.useCallback)(()=>{s.current.exit(),o()},[o]);return{state:u,init:h,play:y,pause:p,nextScene:T,jumpToScene:k,onTrackEnd:f,exit:S}};var t=r(d[0]),n=r(d[1]),s=r(d[2]),u=r(d[3]);class c{queueManager=null;scenes=[];_isPlaying=!1;_currentTrackType=null;fadeCancelFn=null;constructor(t){this.native=t}cancelFade(){this.fadeCancelFn?.(),this.fadeCancelFn=null}getState(){return this.queueManager?{scenes:this.scenes,currentSceneIndex:this.queueManager.currentSceneIndex,currentTrackIndex:this.queueManager.currentTrackIndex,isPlaying:this._isPlaying,isSoundtrackMode:this.queueManager.isSoundtrackMode}:{scenes:[],currentSceneIndex:0,currentTrackIndex:0,isPlaying:!1,isSoundtrackMode:!1}}async init(t){this.scenes=t,this.queueManager=new n.QueueManager(t),this._isPlaying=!0;const s=this.queueManager.getCurrentTrack();s&&await this.loadTrack(s,!1)}play(){this._isPlaying=!0,'layered'===this._currentTrackType?this.native.layeredPlay():this.native.musicPlay()}pause(){this._isPlaying=!1,'layered'===this._currentTrackType?this.native.layeredPause():this.native.musicPause()}async nextScene(){if(!this.queueManager)return;const t=this.queueManager.nextScene();t&&await this.loadTrack(t,!0)}async jumpToScene(t,n){if(!this.queueManager)return;const s=this.queueManager.jumpToScene(t,n);s&&await this.loadTrack(s,!0)}async onTrackEnd(){if(!this.queueManager)return;const t=this.queueManager.trackEnded();t&&await this.loadTrack(t,!1)}exit(){this.native.musicStop(),this.native.layeredStop(),this._isPlaying=!1,this._currentTrackType=null,this.queueManager&&this.queueManager.exit()}async loadTrack(t,n){if(!this.queueManager)return;this.cancelFade();const c=this.queueManager.getEffectiveVolume(),l=(0,s.getCrossfadeConfig)();if('layered'===t.trackType){const s=t.config,o=s.layers.map(t=>t.introUri),h=s.layers.map(t=>t.loopUri);if(n&&'music'===this._currentTrackType){this.native.layeredSetVolume(c);const t=(0,u.fadeVolume)(t=>{this.native.musicSetVolume(t)},c,0,l.crossfadeDurationMs,20,l.curve);this.fadeCancelFn=t.cancel,await Promise.all([t.promise,this.native.layeredLoad(o,h,s.loopCount)]),this.fadeCancelFn=null,this.native.musicStop(),this.native.musicSetVolume(c)}else'music'===this._currentTrackType&&this.native.musicStop(),this.native.layeredSetVolume(c),await this.native.layeredLoad(o,h,s.loopCount);this._currentTrackType='layered'}else{const s=t.config;if(n&&'layered'===this._currentTrackType){this.native.musicSetVolume(c);const n=(0,u.fadeVolume)(t=>{this.native.layeredSetVolume(t)},c,0,l.crossfadeDurationMs,20,l.curve);this.fadeCancelFn=n.cancel,await Promise.all([n.promise,this.native.musicLoad(s.introUri,s.loopUri,t.loopCount)]),this.fadeCancelFn=null,this.native.layeredStop(),this.native.layeredSetVolume(c)}else'layered'===this._currentTrackType&&this.native.layeredStop(),this.native.musicSetVolume(c),n?await this.native.musicCrossfadeTo(s.introUri,s.loopUri,t.loopCount,l.crossfadeDurationMs,l.crossfadeNewTrackDelayMs):await this.native.musicLoad(s.introUri,s.loopUri,t.loopCount);this._currentTrackType='music'}}}},1088,[41,1089,1092,1094]);
7__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"QueueManager",{enumerable:!0,get:function(){return t}});class t{_currentSceneIndex=0;_currentTrackIndex=0;_isSoundtrackMode=!0;constructor(t){this.scenes=t}get currentSceneIndex(){return this._currentSceneIndex}get currentTrackIndex(){return this._currentTrackIndex}get isSoundtrackMode(){return this._isSoundtrackMode}getCurrentTrack(){if(!this._isSoundtrackMode)return null;const t=this.scenes[this._currentSceneIndex];return t?t.tracks[this._currentTrackIndex]??null:null}getCurrentScene(){return this._isSoundtrackMode?this.scenes[this._currentSceneIndex]??null:null}trackEnded(){const t=this.getCurrentTrack();if(!t)return null;if(-1===t.loopCount)return null;const n=this.scenes[this._currentSceneIndex];if(!n)return null;const c=this._currentTrackIndex+1;return c<n.tracks.length?this._currentTrackIndex=c:this._currentTrackIndex=0,this.getCurrentTrack()}nextScene(){return 0===this.scenes.length?null:(this._currentSceneIndex=(this._currentSceneIndex+1)%this.scenes.length,this._currentTrackIndex=0,this.getCurrentTrack())}jumpToScene(t,n=0){if(0===this.scenes.length)return null;this._currentSceneIndex=Math.min(Math.max(0,t),this.scenes.length-1);const c=this.scenes[this._currentSceneIndex];return this._currentTrackIndex=c?Math.min(Math.max(0,n),c.tracks.length-1):0,this.getCurrentTrack()}getUpcomingTracks(t){const n=this.getCurrentTrack();if(!n)return[];if(-1===n.loopCount)return[];const c=this.scenes[this._currentSceneIndex];if(!c||0===c.tracks.length)return[];const s=[];let u=this._currentTrackIndex;for(let n=0;n<t;n++){u=(u+1)%c.tracks.length;const t=c.tracks[u];t&&s.push(t)}return s}getEffectiveVolume(){const t=this.getCurrentScene(),n=this.getCurrentTrack();return t&&n?t.volume*n.volume:1}exit(){this._isSoundtrackMode=!1,this._currentSceneIndex=0,this._currentTrackIndex=0}}},1089,[]);
8__d(function(g,r,i,a,m,e,d){},1090,[]);
9__d(function(_g,_r,_i,_a,_m,_e,_d){"use strict";
9function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"LogLevel",{enumerable:!0,get:function(){return j}}),Object.defineProperty(_e,"NotificationWillDisplayEvent",{enumerable:!0,get:function(){return S}}),Object.defineProperty(_e,"OSNotification",{enumerable:!0,get:function(){return m}}),Object.defineProperty(_e,"OSNotificationPermission",{enumerable:!0,get:function(){return N}}),Object.defineProperty(_e,"OneSignal",{enumerable:!0,get:function(){return W}});var n=e(_r(_d[0])),t=e(_r(_d[1])),i=e(_r(_d[2]));const o="OneSignal-notificationWillDisplayInForeground",r="OneSignal-notificationClicked",s="OneSignal-inAppMessageClicked",a="OneSignal-inAppMessageWillDisplay",d="OneSignal-inAppMessageDidDisplay",c="OneSignal-inAppMessageWillDismiss",u="OneSignal-inAppMessageDidDismiss",l="OneSignal-permissionChanged",f="OneSignal-subscriptionChanged",g="OneSignal-userStateChanged",v=n.default.OneSignal;class m{constructor(e){this.body=e.body,this.sound=e.sound,this.title=e.title,this.launchURL=e.launchURL,this.rawPayload=e.rawPayload,this.actionButtons=e.actionButtons,this.additionalData=e.additionalData,this.notificationId=e.notificationId,p()?(this.groupKey=e.groupKey,this.ledColor=e.ledColor,this.priority=e.priority,this.smallIcon=e.smallIcon,this.largeIcon=e.largeIcon,this.bigPicture=e.bigPicture,this.collapseId=e.collapseId,this.groupMessage=e.groupMessage,this.fromProjectNumber=e.fromProjectNumber,this.smallIconAccentColor=e.smallIconAccentColor,this.lockScreenVisibility=e.lockScreenVisibility,this.androidNotificationId=e.androidNotificationId):h()&&(this.badge=e.badge,this.category=e.category,this.threadId=e.threadId,this.subtitle=e.subtitle,this.templateId=e.templateId,this.attachments=e.attachments,this.templateName=e.templateName,this.mutableContent=e.mutableContent,this.badgeIncrement=e.badgeIncrement,this.contentAvailable=e.contentAvailable,this.relevanceScore=e.relevanceScore,this.interruptionLevel=e.interruptionLevel)}display(){v.displayNotification(this.notificationId)}}const p=e=>"android"===t.default.OS,h=e=>"ios"===t.default.OS,y=n.default.OneSignal;class S{constructor(e){this.notification=new m(e)}preventDefault(){y.preventDefault(this.notification.notificationId)}getNotification(){return this.notification}}const O=[l,f,g,o,r,s,a,c,u,d];function L(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var b,E;var P=E?b:(E=1,b=function(e,n,t,i,o,r,s,a){if(!e){var d;if(void 0===n)d=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[t,i,o,r,s,a],u=0;(d=new Error(n.replace(/%s/g,function(){return c[u++]}))).name="Invariant Violation"}throw d.framesToPop=1,d}});const A=L(P);function I(e){A("function"==typeof e,"Must provide a valid callback")}function T(e){return null!=e||(console.error("Could not load RNOneSignal native module. Make sure native dependencies are properly linked."),!1)}function w(e){if("object"!=typeof e||null===e||Array.isArray(e))return!1;try{return JSON.stringify(e),!0}catch{return!1}}var N=(e=>(e[e.NotDetermined=0]="NotDetermined",e[e.Denied=1]="Denied",e[e.Authorized=2]="Authorized",e[e.Provisional=3]="Provisional",e[e.Ephemeral=4]="Ephemeral",e))(N||{});const k=n.default.OneSignal,D=new class{constructor(e){this.RNOneSignal=e,this.oneSignalEventEmitter=new i.default(e),this.eventListenerArrayMap=new Map,this.listeners={},this.setupListeners()}setupListeners(){if(null!=this.RNOneSignal)for(let e=0;e<O.length;e++){let n=O[e];this.listeners[n]=this.generateEventListener(n)}}addEventListener(e,n){let t=this.eventListenerArrayMap.get(e);t&&t.length>0?t.push(n):this.eventListenerArrayMap.set(e,[n])}removeEventListener(e,n){const t=this.eventListenerArrayMap.get(e);if(!t)return;const i=t.indexOf(n);-1!==i&&t.splice(i,1),0===t.length&&this.eventListenerArrayMap.delete(e)}generateEventListener(e){return this.oneSignalEventEmitter.addListener(e,n=>{let t=this.eventListenerArrayMap.get(e);
9if(t)if(e===o)t.forEach(e=>{e(new S(n))});else if(e===l){const e=n;t.forEach(n=>{n(e.permission)})}else t.forEach(e=>{e(n)})})}}(k);var j=(e=>(e[e.None=0]="None",e[e.Fatal=1]="Fatal",e[e.Error=2]="Error",e[e.Warn=3]="Warn",e[e.Info=4]="Info",e[e.Debug=5]="Debug",e[e.Verbose=6]="Verbose",e))(j||{});let M=!1,C={id:"",token:"",optedIn:!1};async function U(){W.Notifications.addEventListener("permissionChange",e=>{M=e}),M=await k.hasNotificationPermission()}async function q(){W.User.pushSubscription.addEventListener("change",e=>{C=e.current}),C.id=await k.getPushSubscriptionId(),C.token=await k.getPushSubscriptionToken(),C.optedIn=await k.getOptedIn()}var W,R,z;(R=W||(W={})).initialize=function(e){T(k)&&(k.initialize(e),U(),q())},R.login=function(e){T(k)&&k.login(e)},R.logout=function(){T(k)&&k.logout()},R.setConsentRequired=function(e){T(k)&&k.setPrivacyConsentRequired(e)},R.setConsentGiven=function(e){T(k)&&k.setPrivacyConsentGiven(e)},(z=R.Debug||(R.Debug={})).setLogLevel=function(e){T(k)&&k.setLogLevel(e)},z.setAlertLevel=function(e){T(k)&&k.setAlertLevel(e)},(e=>{e.enter=function(e,n,i=()=>{}){T(k)&&"ios"===t.default.OS&&k.enterLiveActivity(e,n,i)},e.exit=function(e,n=()=>{}){T(k)&&"ios"===t.default.OS&&k.exitLiveActivity(e,n)},e.setPushToStartToken=function(e,n){T(k)&&"ios"===t.default.OS&&k.setPushToStartToken(e,n)},e.removePushToStartToken=function(e){T(k)&&"ios"===t.default.OS&&k.removePushToStartToken(e)},e.setupDefault=function(e){T(k)&&"ios"===t.default.OS&&k.setupDefaultLiveActivity(e)},e.startDefault=function(e,n,i){T(k)&&"ios"===t.default.OS&&k.startDefaultLiveActivity(e,n,i)}})(R.LiveActivities||(R.LiveActivities={})),(e=>{var n;(n=e.pushSubscription||(e.pushSubscription={})).addEventListener=function(e,n){T(k)&&(I(n),k.addPushSubscriptionObserver(),D.addEventListener(f,n))},n.removeEventListener=function(e,n){T(k)&&D.removeEventListener(f,n)},n.getPushSubscriptionId=function(){return T(k)?(console.warn("OneSignal: This method has been deprecated. Use getIdAsync instead for getting push subscription id."),C.id?C.id:""):""},n.getIdAsync=async function(){return T(k)?await k.getPushSubscriptionId():Promise.reject(new Error("OneSignal native module not loaded"))},n.getPushSubscriptionToken=function(){return T(k)?(console.warn("OneSignal: This method has been deprecated. Use getTokenAsync instead for getting push subscription token."),C.token?C.token:""):""},n.getTokenAsync=async function(){return T(k)?await k.getPushSubscriptionToken():Promise.reject(new Error("OneSignal native module not loaded"))},n.getOptedIn=function(){return!!T(k)&&(console.warn("OneSignal: This method has been deprecated. Use getOptedInAsync instead for getting push subscription opted in status."),C.optedIn??!1)},n.getOptedInAsync=async function(){return T(k)?await k.getOptedIn():Promise.reject(new Error("OneSignal native module not loaded"))},n.optOut=function(){T(k)&&k.optOut()},n.optIn=function(){T(k)&&k.optIn()},e.addEventListener=function(e,n){T(k)&&(I(n),k.addUserStateObserver(),D.addEventListener(g,n))},e.removeEventListener=function(e,n){T(k)&&D.removeEventListener(g,n)},e.getOnesignalId=async function(){return T(k)?k.getOnesignalId():Promise.reject(new Error("OneSignal native module not loaded"))},e.getExternalId=async function(){return T(k)?k.getExternalId():Promise.reject(new Error("OneSignal native module not loaded"))},e.setLanguage=function(e){T(k)&&k.setLanguage(e)},e.addAlias=function(e,n){T(k)&&k.addAlias(e,n)},e.addAliases=function(e){T(k)&&k.addAliases(e)},e.removeAlias=function(e){T(k)&&k.removeAlias(e)},e.removeAliases=function(e){T(k)&&k.removeAliases(e)},e.addEmail=function(e){T(k)&&k.addEmail(e)},e.removeEmail=function(e){T(k)&&k.removeEmail(e)},e.addSms=function(e){T(k)&&k.addSms(e)},e.removeSms=function(e){T(k)&&k.removeSms(e)},e.addTag=function(e,n){if(T(k)){if(!e||null==n)return void console.error("OneSignal: addTag: must include a key and a value");"string"!=typeof n&&(console.warn("OneSignal: addTag: tag value must be of type string; attempting to convert"),n=String(n)),k.addTag(e,n)}},e.addTags=function(e){if(!T(k))return;if(!e||0===Object.keys(e).length)return void console.error('OneSignal: addTags: argument must be of type object of the form { key : "value" }');const n=e;Object.keys(e).forEach(function(e){"string"!=typeof n[e]&&(console.warn("OneSignal: addTags: tag value for key "+e+" must be of type string; attempting to convert"),n[e]=String(n[e]))}),k.addTags(e)},e.removeTag=function(e){if(T(k)){if("string"!=typeof e)return void console.error("OneSignal: removeTag: key argument must be of type string");k.removeTags([e])}},e.removeTags=function(e){if(T(k)){if(!Array.isArray(e))return void console.error("OneSignal: removeTags: argument must be of array type");k.removeTags(e)}},e.getTags=function(){return T(k)?k.getTags():Promise.reject(new Error("OneSignal native module not loaded"))},e.trackEvent=function(e,n={}){if(T(k)){if(!w(n))return void console.error("Properties must be a JSON-serializable object");k.trackEvent(e,n)}}})(R.User||(R.User={})),(e=>{e.hasPermission=function(){return console.warn("OneSignal: This method has been deprecated. Use getPermissionAsync instead for getting notification permission status."),M},e.getPermissionAsync=async function(){return k.hasNotificationPermission()},e.requestPermission=function(e){return T(k)?k.requestNotificationPermission(e):Promise.reject(new Error("OneSignal native module not loaded"))},e.canRequestPermission=function(){return T(k)?k.canRequestNotificationPermission():Promise.reject(new Error("OneSignal native module not loaded"))},e.registerForProvisionalAuthorization=function(e){T(k)&&("ios"===t.default.OS?(I(e),k.registerForProvisionalAuthorization(e)):console.warn("registerForProvisionalAuthorization: this function is not supported on Android"))},e.permissionNative=function(){return T(k)?k.permissionNative():Promise.reject(new Error("OneSignal native module not loaded"))},e.addEventListener=function(...[e,n]){T(k)&&(I(n),"click"===e?(k.addNotificationClickListener(),D.addEventListener(r,n)):"foregroundWillDisplay"===e?(k.addNotificationForegroundLifecycleListener(),D.addEventListener(o,n)):"permissionChange"===e&&(I(n),k.addPermissionObserver(),D.addEventListener(l,n)))},e.removeEventListener=function(...[e,n]){"click"===e?D.removeEventListener(r,n):"foregroundWillDisplay"===e?D.removeEventListener(o,n):"permissionChange"===e&&D.removeEventListener(l,n)},e.clearAll=function(){T(k)&&k.clearAllNotifications()},e.removeNotification=function(e){T(k)&&("android"===t.default.OS?k.removeNotification(e):console.warn("removeNotification: this function is not supported on iOS"))},e.removeGroupedNotifications=function(e){T(k)&&("android"===t.default.OS?k.removeGroupedNotifications(e):console.warn("removeGroupedNotifications: this function is not supported on iOS"))}})(R.Notifications||(R.Notifications={})),(e=>{e.addEventListener=function(...[e,n]){T(k)&&(I(n),"click"===e?(k.addInAppMessageClickListener(),D.addEventListener(s,n)):"willDisplay"===e?(k.addInAppMessagesLifecycleListener(),D.addEventListener(a,n)):"didDisplay"===e?(k.addInAppMessagesLifecycleListener(),D.addEventListener(d,n)):"willDismiss"===e?(k.addInAppMessagesLifecycleListener(),D.addEventListener(c,n)):"didDismiss"===e&&(k.addInAppMessagesLifecycleListener(),D.addEventListener(u,n)))},e.removeEventListener=function(...[e,n]){T(k)&&(I(n),"click"===e?D.removeEventListener(s,n):"willDisplay"===e?D.removeEventListener(a,n):"didDisplay"===e?D.removeEventListener(d,n):"willDismiss"===e?D.removeEventListener(c,n):"didDismiss"===e&&D.removeEventListener(u,n))},e.addTrigger=function(e,n){if(!T(k))return;(!e||null==n)&&console.error("OneSignal: addTrigger: must include a key and a value");let t={};t[e]=n,k.addTriggers(t)},e.addTriggers=function(e){T(k)&&(0===Object.keys(e).length&&console.error("OneSignal: addTriggers: argument must be an object of the form { key : 'value' }"),k.addTriggers(e))},e.removeTrigger=function(e){T(k)&&k.removeTrigger(e)},e.removeTriggers=function(e){T(k)&&k.removeTriggers(e)},e.clearTriggers=function(){T(k)&&k.clearTriggers()},e.setPaused=function(e){T(k)&&k.paused(e)},e.getPaused=function(){return T(k)?k.getPaused():Promise.reject(new Error("OneSignal native module not loaded"))}})(R.InAppMessages||(R.InAppMessages={})),(e=>{e.requestPermission=function(){T(k)&&k.requestLocationPermission()},e.setShared=function(e){T(k)&&k.setLocationShared(e)},e.isShared=function(){return T(k)?k.isLocationShared():Promise.reject(new Error("OneSignal native module not loaded"))}})(R.Location||(R.Location={})),(e=>{e.addOutcome=function(e){T(k)&&k.addOutcome(e)},e.addUniqueOutcome=function(e){T(k)&&k.addUniqueOutcome(e)},e.addOutcomeWithValue=function(e,n){T(k)&&k.addOutcomeWithValue(e,Number(n))}}
9)(R.Session||(R.Session={}))},1091,[277,8,380]);

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.