!/**
 * Highcharts JS v13.0.0 (2026-06-11)
 * @module highcharts/modules/sonification
 * @requires highcharts
 *
 * Sonification module
 *
 * (c) 2010-2026 Highsoft AS
 * Author: Øystein Moseng
 *
 * A commercial license may be required depending on use,
 * see www.highcharts.com/license
 */function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(e._Highcharts,e._Highcharts.Templating):"function"==typeof define&&define.amd?define("highcharts/modules/sonification",["highcharts/highcharts"],function(e){return t(e,e.Templating)}):"object"==typeof exports?exports["highcharts/modules/sonification"]=t(e._Highcharts,e._Highcharts.Templating):e.Highcharts=t(e.Highcharts,e.Highcharts.Templating)}("u"<typeof window?this:window,function(e,t){return function(){"use strict";var i={944:function(t){t.exports=e},984:function(e){e.exports=t}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var s=n[e]={exports:{}};return i[e](s,s.exports,o),s.exports}o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},o.d=function(e,t){for(var i in t)o.o(t,i)&&!o.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var s={};o.d(s,{default:function(){return J}});var a=o(944),r=o.n(a),l=function(){return(l=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function c(e,t){return(.2414*e-.2414)*Math.log(t)+(3.5-1.7*e)/1.8}function u(e,t,i){e.gain.cancelScheduledValues(t),e.gain.setTargetAtTime(i,t,f.stopRampTime/4),e.gain.setValueAtTime(i,t+f.stopRampTime)}function h(e,t,i,n,o){void 0===o&&(o=1);var s="attack"===t,a=n.gain;(a.cancelScheduledValues(i),e.length)?(e[0].t>1&&e.unshift({t:0,vol:+!s}),e.forEach(function(t,n){var s=e[n-1],r=s?(t.t-s.t)/1e3:0,l=i+(s?s.t/1e3+f.stopRampTime:0);a.setTargetAtTime(t.vol*o,l,Math.max(r,f.stopRampTime)/2)})):u(n,i,s?o:0)}var p=function(){function e(e,t){this.pulseWidth=Math.min(Math.max(0,t.pulseWidth||.5));var i=function(){return new OscillatorNode(e,{type:"sawtooth",detune:t.detune,frequency:Math.max(1,t.frequency||350)})};this.sawOscA=i(),this.sawOscB=i(),this.phaseInverter=new GainNode(e,{gain:-1}),this.masterGain=new GainNode(e),this.delayNode=new DelayNode(e,{delayTime:this.pulseWidth/this.sawOscA.frequency.value}),this.sawOscA.connect(this.masterGain),this.sawOscB.connect(this.phaseInverter),this.phaseInverter.connect(this.delayNode),this.delayNode.connect(this.masterGain)}return e.prototype.connect=function(e){this.masterGain.connect(e)},e.prototype.getFrequencyFacade=function(){var e=this;return{cancelScheduledValues:function(t){return e.sawOscA.frequency.cancelScheduledValues(t),e.sawOscB.frequency.cancelScheduledValues(t),e.delayNode.delayTime.cancelScheduledValues(t),e.sawOscA.frequency},setValueAtTime:function(t,i){return this.cancelScheduledValues(i),e.sawOscA.frequency.setValueAtTime(t,i),e.sawOscB.frequency.setValueAtTime(t,i),e.delayNode.delayTime.setValueAtTime(Math.round(1e4*e.pulseWidth/t)/1e4,i),e.sawOscA.frequency},setTargetAtTime:function(t,i,n){return this.cancelScheduledValues(i),e.sawOscA.frequency.setTargetAtTime(t,i,n),e.sawOscB.frequency.setTargetAtTime(t,i,n),e.delayNode.delayTime.setTargetAtTime(Math.round(1e4*e.pulseWidth/t)/1e4,i,n),e.sawOscA.frequency}}},e.prototype.getPWMTarget=function(){return this.delayNode.delayTime},e.prototype.start=function(){this.sawOscA.start(),this.sawOscB.start()},e.prototype.stop=function(e){this.sawOscA.stop(e),this.sawOscB.stop(e)},e}(),m=function(){function e(e,t,i){this.audioContext=e,this.options=t,this.fmOscillatorIx=t.fmOscillator,this.vmOscillatorIx=t.vmOscillator,this.createSoundSource(),this.createGain(),this.createFilters(),this.createVolTracking(),i&&this.connect(i)}return e.prototype.connect=function(e){[this.lowpassNode,this.highpassNode,this.volTrackingNode,this.vmNode,this.gainNode,this.whiteNoise,this.pulseNode,this.oscNode].reduce(function(e,t){return t?(t.connect(e),t):e},e)},e.prototype.start=function(){this.oscNode&&this.oscNode.start(),this.whiteNoise&&this.whiteNoise.start(),this.pulseNode&&this.pulseNode.start()},e.prototype.stopAtTime=function(e){this.oscNode&&this.oscNode.stop(e),this.whiteNoise&&this.whiteNoise.stop(e),this.pulseNode&&this.pulseNode.stop(e)},e.prototype.setFreqAtTime=function(e,t,i){void 0===i&&(i=0);var n=this.options,o=(0,a.clamp)((0,a.pick)(n.fixedFrequency,t)*(n.freqMultiplier||1),0,21e3),s=this.getOscTarget(),r=i/5e3;s&&(s.cancelScheduledValues(e),i&&e-(this.lastUpdateTime||-1)>.01?(s.setTargetAtTime(o,e,r),s.setValueAtTime(o,e+r)):s.setValueAtTime(o,e)),this.scheduleVolTrackingChange(o,e,i),this.scheduleFilterTrackingChange(o,e,i),this.lastUpdateTime=e},e.prototype.getFMTarget=function(){return this.oscNode&&this.oscNode.detune||this.whiteNoise&&this.whiteNoise.detune||this.pulseNode&&this.pulseNode.getPWMTarget()},e.prototype.getVMTarget=function(){return this.vmNode&&this.vmNode.gain},e.prototype.runEnvelopeAtTime=function(e,t){this.gainNode&&h(("attack"===e?this.options.attackEnvelope:this.options.releaseEnvelope)||[],e,t,this.gainNode,this.options.volume)},e.prototype.cancelScheduled=function(){this.gainNode&&this.gainNode.gain.cancelScheduledValues(this.audioContext.currentTime);var e=this.getOscTarget();e&&e.cancelScheduledValues(0),this.lowpassNode&&this.lowpassNode.frequency.cancelScheduledValues(0),this.highpassNode&&this.highpassNode.frequency.cancelScheduledValues(0),this.volTrackingNode&&this.volTrackingNode.gain.cancelScheduledValues(0)},e.prototype.scheduleVolTrackingChange=function(e,t,i){if(this.volTrackingNode){var n=c(this.options.volumePitchTrackingMultiplier||1,e),o=i?i/1e3:f.stopRampTime;this.volTrackingNode.gain.cancelScheduledValues(t),this.volTrackingNode.gain.setTargetAtTime(n,t,o/5),this.volTrackingNode.gain.setValueAtTime(n,t+o)}},e.prototype.scheduleFilterTrackingChange=function(e,t,i){var n=this.options,o=i?i/1e3:f.stopRampTime,s=function(i,n){var s=c(n.frequencyPitchTrackingMultiplier||1,e),r=(0,a.clamp)((n.frequency||1e3)*s,0,21e3);i.frequency.cancelScheduledValues(t),i.frequency.setTargetAtTime(r,t,o/5),i.frequency.setValueAtTime(r,t+o)};this.lowpassNode&&n.lowpass&&s(this.lowpassNode,n.lowpass),this.highpassNode&&n.highpass&&s(this.highpassNode,n.highpass)},e.prototype.createGain=function(){var e=this.options;((0,a.defined)(e.volume)||e.attackEnvelope&&e.attackEnvelope.length||e.releaseEnvelope&&e.releaseEnvelope.length)&&(this.gainNode=new GainNode(this.audioContext,{gain:(0,a.pick)(e.volume,1)})),this.vmNode=new GainNode(this.audioContext)},e.prototype.createSoundSource=function(){var e=this.options,t=this.audioContext,i=(e.fixedFrequency||0)*(e.freqMultiplier||1);if("whitenoise"===e.type){for(var n=2*t.sampleRate,o=t.createBuffer(1,n,t.sampleRate),s=o.getChannelData(0),a=0;a<n;++a)s[a]=1.2*Math.random()-.6;var r=this.whiteNoise=t.createBufferSource();r.buffer=o,r.loop=!0}else"pulse"===e.type?this.pulseNode=new p(t,{detune:e.detune,pulseWidth:e.pulseWidth,frequency:i}):this.oscNode=new OscillatorNode(t,{type:e.type||"sine",detune:e.detune,frequency:i})},e.prototype.createFilters=function(){var e=this.options;e.lowpass&&e.lowpass.frequency&&(this.lowpassNode=new BiquadFilterNode(this.audioContext,{type:"lowpass",Q:e.lowpass.Q||1,frequency:e.lowpass.frequency})),e.highpass&&e.highpass.frequency&&(this.highpassNode=new BiquadFilterNode(this.audioContext,{type:"highpass",Q:e.highpass.Q||1,frequency:e.highpass.frequency}))},e.prototype.createVolTracking=function(){var e=this.options;e.volumePitchTrackingMultiplier&&1!==e.volumePitchTrackingMultiplier&&(this.volTrackingNode=new GainNode(this.audioContext,{gain:1}))},e.prototype.getOscTarget=function(){return this.oscNode?this.oscNode.frequency:this.pulseNode&&this.pulseNode.getFrequencyFacade()},e}(),f=function(){function e(e,t){var i=this;this.audioContext=e,this.options=t,this.eqNodes=[],this.midiInstrument=t.midiInstrument||1,this.outputNode=new GainNode(e,{gain:0}),this.createEqChain(this.outputNode);var n=this.eqNodes.length?this.eqNodes[0]:this.outputNode;this.oscillators=(this.options.oscillators||[]).map(function(t){return new m(e,t,(0,a.defined)(t.fmOscillator)||(0,a.defined)(t.vmOscillator)?void 0:n)}),this.oscillators.forEach(function(e){var t=function(t,i){if(i){var n=i[t]();n&&e.connect(n)}};(0,a.defined)(e.fmOscillatorIx)&&t("getFMTarget",i.oscillators[e.fmOscillatorIx]),(0,a.defined)(e.vmOscillatorIx)&&t("getVMTarget",i.oscillators[e.vmOscillatorIx])})}return e.prototype.startSilently=function(){this.outputNode.gain.value=0,this.oscillators.forEach(function(e){return e.start()})},e.prototype.stop=function(){var t=this.audioContext.currentTime,i=t+e.stopRampTime;u(this.outputNode,t,0),this.oscillators.forEach(function(e){return e.stopAtTime(i)}),this.outputNode.disconnect()},e.prototype.silenceAtTime=function(e){if(!e&&this.outputNode.gain.value<.01){this.outputNode.gain.value=0;return}this.releaseAtTime((e||0)+this.audioContext.currentTime)},e.prototype.mute=function(){this.cancelScheduled(),u(this.outputNode,this.audioContext.currentTime,0)},e.prototype.playFreqAtTime=function(e,t,i){var n=(e||0)+this.audioContext.currentTime,o=this.options;this.oscillators.forEach(function(e){e.setFreqAtTime(n,t,o.noteGlideDuration),e.runEnvelopeAtTime("attack",n)}),h(o.masterAttackEnvelope||[],"attack",n,this.outputNode,o.masterVolume),i&&this.releaseAtTime(n+i/1e3)},e.prototype.cancelScheduled=function(){this.outputNode.gain.cancelScheduledValues(this.audioContext.currentTime),this.oscillators.forEach(function(e){return e.cancelScheduled()})},e.prototype.connect=function(e){return this.outputNode.connect(e)},e.prototype.createEqChain=function(e){var t=this;this.eqNodes=(this.options.eq||[]).map(function(e){return new BiquadFilterNode(t.audioContext,l({type:"peaking"},e))}),this.eqNodes.reduceRight(function(e,t){return t.connect(e),t},e)},e.prototype.releaseAtTime=function(e){var t=0;this.oscillators.forEach(function(i){var n=i.options.releaseEnvelope;n&&n.length&&(t=Math.max(t,n[n.length-1].t),i.runEnvelopeAtTime("release",e))});var i=this.options.masterReleaseEnvelope||[];i.length&&(h(i,"release",e,this.outputNode,this.options.masterVolume),t=Math.max(t,i[i.length-1].t)),u(this.outputNode,e+t/1e3,0)},e.stopRampTime=.012,e}(),d={piano:{masterVolume:.45,masterAttackEnvelope:[{t:1,vol:.71},{t:40,vol:.79},{t:82,vol:.64},{t:147,vol:.29},{t:260,vol:.15},{t:417,vol:.05},{t:589,vol:0}],eq:[{frequency:200,Q:.7,gain:6},{frequency:450,gain:6},{frequency:1300,gain:2},{frequency:2600,Q:.8,gain:8},{frequency:3500,Q:.8,gain:6},{frequency:6200,Q:.8,gain:10},{frequency:8e3,gain:-23},{frequency:1e4,Q:.4,gain:-12}],oscillators:[{type:"pulse",volume:.5,pulseWidth:.55,volumePitchTrackingMultiplier:.1,lowpass:{frequency:4.5,frequencyPitchTrackingMultiplier:900,Q:-2},highpass:{frequency:270},attackEnvelope:[{t:1,vol:1}],releaseEnvelope:[{t:1,vol:1},{t:282,vol:.64},{t:597,vol:0}]},{type:"whitenoise",volume:.8,lowpass:{frequency:400},highpass:{frequency:300},attackEnvelope:[{t:1,vol:1},{t:19,vol:0}]}]},plucked:{masterVolume:.5,midiInstrument:25,masterAttackEnvelope:[{t:1,vol:.71},{t:4,vol:.71},{t:31,vol:.4},{t:109,vol:.12},{t:234,vol:.04},{t:442,vol:0}],eq:[{frequency:800,gain:-8},{frequency:1400,Q:4,gain:4},{frequency:1600,gain:-14},{frequency:2200,gain:-8},{frequency:3600,gain:-2},{frequency:6400,Q:2,gain:-6}],oscillators:[{type:"sawtooth",volume:.9,volumePitchTrackingMultiplier:.6,highpass:{frequency:100},lowpass:{frequency:8e3},releaseEnvelope:[{t:1,vol:1},{t:315,vol:.56},{t:550,vol:0}]}]},flute:{masterVolume:1.1,midiInstrument:74,noteGlideDuration:30,masterAttackEnvelope:[{t:0,vol:0},{t:29,vol:1},{t:76,vol:.48},{t:600,vol:.36}],masterReleaseEnvelope:[{t:1,vol:.36},{t:24,vol:.15},{t:119,vol:0}],eq:[{frequency:150,Q:.6,gain:-10},{frequency:500,gain:4},{frequency:1100,gain:-4},{frequency:2200,gain:-14},{frequency:5e3,gain:8},{frequency:6400,gain:10},{frequency:8e3,gain:12},{frequency:10800,gain:8}],oscillators:[{type:"triangle",volume:1,volumePitchTrackingMultiplier:.4,lowpass:{frequency:12,frequencyPitchTrackingMultiplier:100},highpass:{frequency:200}},{type:"sine",fixedFrequency:5,volume:.2,vmOscillator:0,attackEnvelope:[{t:1,vol:1},{t:48,vol:0},{t:225,vol:.05},{t:600,vol:.77}]},{type:"whitenoise",volume:.13,lowpass:{frequency:9e3,Q:3},highpass:{frequency:6e3,Q:3},vmOscillator:0,attackEnvelope:[{t:0,vol:0},{t:26,vol:1},{t:93,vol:.8}]}]},lead:{masterVolume:1,midiInstrument:20,masterAttackEnvelope:[{t:1,vol:.81},{t:98,vol:.5},{t:201,vol:.18},{t:377,vol:.04},{t:586,vol:0},{t:586,vol:0}],eq:[{frequency:200,gain:-6},{frequency:400,gain:-8},{frequency:800,Q:.5,gain:-10},{frequency:1200,gain:4},{frequency:3600,gain:-4},{frequency:4200,gain:-12},{frequency:7400,gain:-14},{frequency:1e4,gain:2}],oscillators:[{type:"triangle",volume:1.1,volumePitchTrackingMultiplier:.6,lowpass:{frequency:5e3},highpass:{frequency:100}},{type:"sawtooth",volume:.4,lowpass:{frequency:7e3},highpass:{frequency:800,Q:6},releaseEnvelope:[{t:0,vol:.99},{t:200,vol:.83},{t:495,vol:0}]}]},vibraphone:{masterVolume:1,midiInstrument:12,masterAttackEnvelope:[{t:1,vol:0},{t:10,vol:.63},{t:82,vol:.64},{t:149,vol:.26},{t:600,vol:0}],eq:[{frequency:200,Q:.8,gain:-12},{frequency:400,gain:-4},{frequency:1600,Q:.5,gain:6},{frequency:2200,Q:.5,gain:6},{frequency:6400,gain:4},{frequency:12800,gain:4}],oscillators:[{type:"sine",volume:1.5,volumePitchTrackingMultiplier:1e-7,attackEnvelope:[{t:1,vol:1}],releaseEnvelope:[{t:1,vol:1},{t:146,vol:.39},{t:597,vol:0}]},{type:"whitenoise",volume:.03,volumePitchTrackingMultiplier:1e-4,lowpass:{frequency:900},highpass:{frequency:800},attackEnvelope:[{t:1,vol:1},{t:9,vol:0}]},{type:"sine",freqMultiplier:4,volume:.15,volumePitchTrackingMultiplier:1e-4},{type:"sine",fixedFrequency:3,volume:6,fmOscillator:0,releaseEnvelope:[{t:1,vol:1},{t:190,vol:.41},{t:600,vol:0}]},{type:"sine",fixedFrequency:6,volume:3,fmOscillator:2},{type:"sine",freqMultiplier:9,volume:5e-4,volumePitchTrackingMultiplier:1e-4,releaseEnvelope:[{t:1,vol:.97},{t:530,vol:0}]}]},saxophone:{masterVolume:1,midiInstrument:67,noteGlideDuration:10,masterAttackEnvelope:[{t:1,vol:.57},{t:35,vol:1},{t:87,vol:.84},{t:111,vol:.6},{t:296,vol:.49},{t:600,vol:.58}],masterReleaseEnvelope:[{t:1,vol:.58},{t:47,vol:.16},{t:119,vol:0}],eq:[{frequency:200,gain:-2},{frequency:600,gain:2},{frequency:800,gain:-10},{frequency:1100,gain:-2},{frequency:2200,gain:-2},{frequency:3500,gain:10},{frequency:12800,gain:4}],oscillators:[{type:"sawtooth",volume:.45,volumePitchTrackingMultiplier:.06,lowpass:{frequency:18,frequencyPitchTrackingMultiplier:200},highpass:{frequency:300}},{type:"whitenoise",fixedFrequency:1,volume:.4,highpass:{frequency:7e3},vmOscillator:0,attackEnvelope:[{t:1,vol:1},{t:51,vol:1},{t:86,vol:.84},{t:500,vol:.78}]},{type:"sine",fixedFrequency:4,volume:2,fmOscillator:0,attackEnvelope:[{t:0,vol:0},{t:15,vol:.94},{t:79,vol:1},{t:172,vol:.47},{t:500,vol:.26}]},{type:"sine",fixedFrequency:7,volume:6,fmOscillator:0,attackEnvelope:[{t:0,vol:0},{t:25,vol:.99},{t:85,vol:0},{t:85,vol:0},{t:387,vol:.02},{t:511,vol:.43},{t:600,vol:0}]}]},trumpet:{masterVolume:.3,midiInstrument:57,noteGlideDuration:40,masterAttackEnvelope:[{t:1,vol:0},{t:17,vol:1},{t:42,vol:.85},{t:76,vol:1},{t:202,vol:.65},{t:226,vol:.86},{t:282,vol:.63}],masterReleaseEnvelope:[{t:1,vol:.62},{t:34,vol:.14},{t:63,vol:.21},{t:96,vol:0}],eq:[{frequency:200,Q:.6,gain:10},{frequency:600,Q:.5,gain:6},{frequency:1500,Q:.7,gain:14},{frequency:3200,Q:2,gain:8},{frequency:3800,Q:.8,gain:10},{frequency:6200,gain:12},{frequency:8400,gain:-20},{frequency:12800,Q:.5,gain:-18}],oscillators:[{type:"sawtooth",volume:.15,pulseWidth:.5,volumePitchTrackingMultiplier:.5,lowpass:{frequency:1900,Q:3}},{type:"sine",fixedFrequency:6,volume:.2,vmOscillator:0,attackEnvelope:[{t:1,vol:1},{t:102,vol:.13},{t:556,vol:.24}]},{type:"whitenoise",volume:.45,highpass:{frequency:7e3,Q:9},vmOscillator:0,attackEnvelope:[{t:1,vol:1},{t:89,vol:.51},{t:577,vol:.29}]},{type:"sine",fixedFrequency:5.7,volume:20,fmOscillator:0,attackEnvelope:[{t:1,vol:1},{t:89,vol:1},{t:137,vol:.46},{t:283,vol:.15},{t:600,vol:.28}]}]},sawsynth:{masterVolume:.3,midiInstrument:51,noteGlideDuration:40,masterAttackEnvelope:[{t:0,vol:.6},{t:9,vol:1},{t:102,vol:.48}],eq:[{frequency:200,gain:-6}],oscillators:[{type:"sawtooth",volume:.4,volumePitchTrackingMultiplier:.3},{type:"sawtooth",volume:.4,detune:11,volumePitchTrackingMultiplier:.3},{type:"sawtooth",volume:.4,detune:-11,volumePitchTrackingMultiplier:.3}]},basic1:{masterVolume:1,noteGlideDuration:0,masterReleaseEnvelope:[{t:1,vol:.36},{t:24,vol:.15},{t:119,vol:0}],eq:[{frequency:150,Q:.6,gain:-12},{frequency:1100,gain:-2},{frequency:2200,gain:-16},{frequency:5e3,gain:8},{frequency:6400,gain:10},{frequency:8e3,gain:12},{frequency:10800,gain:8}],oscillators:[{type:"triangle",volume:1,volumePitchTrackingMultiplier:.05,lowpass:{frequency:17,frequencyPitchTrackingMultiplier:100},highpass:{frequency:200}},{type:"whitenoise",volume:.04,lowpass:{frequency:9e3,Q:3},highpass:{frequency:6e3,Q:3},vmOscillator:0,attackEnvelope:[{t:0,vol:0},{t:26,vol:1},{t:71,vol:.73}]}]},basic2:{masterVolume:.3,eq:[{frequency:200,Q:.7,gain:6},{frequency:450,gain:2},{frequency:1300,gain:-2},{frequency:2600,Q:.8,gain:6},{frequency:3500,Q:.8,gain:6},{frequency:6200,Q:.8,gain:10},{frequency:8e3,gain:-18},{frequency:1e4,Q:.4,gain:-12}],oscillators:[{type:"pulse",volume:.4,pulseWidth:.55,volumePitchTrackingMultiplier:.1,lowpass:{frequency:4.5,frequencyPitchTrackingMultiplier:900,Q:-2},highpass:{frequency:270}}]},chord:{masterVolume:1,masterAttackEnvelope:[{t:1,vol:.79},{t:27,vol:.86},{t:62,vol:.81},{t:150,vol:.35},{t:408,vol:.04},{t:600,vol:0}],eq:[{frequency:200,gain:-8},{frequency:600,Q:2,gain:4},{frequency:800,gain:-10},{frequency:1600,gain:-2},{frequency:2200,gain:-6},{frequency:3600,Q:.7,gain:-2},{frequency:6400,gain:6},{frequency:12800,gain:6}],oscillators:[{type:"triangle",volume:1.1,volumePitchTrackingMultiplier:.05,lowpass:{frequency:8e3},highpass:{frequency:100},releaseEnvelope:[{t:1,vol:1},{t:315,vol:.56},{t:540,vol:0}]},{type:"triangle",freqMultiplier:1.17,volume:.4,volumePitchTrackingMultiplier:.07,lowpass:{frequency:5e3},highpass:{frequency:100},releaseEnvelope:[{t:0,vol:1},{t:476,vol:0}]},{type:"triangle",freqMultiplier:1.58333,volume:.7,volumePitchTrackingMultiplier:.02,highpass:{frequency:200},releaseEnvelope:[{t:0,vol:1},{t:422,vol:.56},{t:577,vol:0}]},{type:"sine",fixedFrequency:10,volume:4,fmOscillator:0,attackEnvelope:[{t:1,vol:1},{t:157,vol:.65}]},{type:"sine",fixedFrequency:5,volume:.3,vmOscillator:2,attackEnvelope:[{t:1,vol:1},{t:155,vol:.91},{t:289,vol:.78}]}]},wobble:{masterVolume:.9,masterReleaseEnvelope:[{t:1,vol:.36},{t:24,vol:.15},{t:119,vol:0}],eq:[{frequency:150,Q:.6,gain:-12},{frequency:1100,gain:-2},{frequency:2200,gain:-16},{frequency:5e3,gain:8},{frequency:6400,gain:10},{frequency:8e3,gain:12},{frequency:10800,gain:8}],oscillators:[{type:"triangle",volume:.9,volumePitchTrackingMultiplier:.1,lowpass:{frequency:17,frequencyPitchTrackingMultiplier:100},highpass:{frequency:200}},{type:"whitenoise",volume:.04,lowpass:{frequency:9e3,Q:3},highpass:{frequency:6e3,Q:3},vmOscillator:0,attackEnvelope:[{t:0,vol:0},{t:26,vol:1},{t:71,vol:.73}]},{type:"sine",freqMultiplier:.011,volume:30,fmOscillator:0}]},sine:{masterVolume:1,oscillators:[{type:"sine",volumePitchTrackingMultiplier:.07}]},sineGlide:{masterVolume:1,noteGlideDuration:100,oscillators:[{type:"sine",volumePitchTrackingMultiplier:.07}]},triangle:{masterVolume:.5,oscillators:[{type:"triangle",volume:1,volumePitchTrackingMultiplier:.07}]},sawtooth:{masterVolume:.25,midiInstrument:82,oscillators:[{type:"sawtooth",volume:.3,volumePitchTrackingMultiplier:.07}]},square:{masterVolume:.3,midiInstrument:81,oscillators:[{type:"square",volume:.2,volumePitchTrackingMultiplier:.07}]},chop:{masterVolume:1,midiInstrument:116,masterAttackEnvelope:[{t:1,vol:1},{t:44,vol:0}],oscillators:[{type:"whitenoise",volume:1,lowpass:{frequency:600},highpass:{frequency:200}}]},shaker:{masterVolume:.4,midiInstrument:116,masterAttackEnvelope:[{t:1,vol:1},{t:44,vol:0}],oscillators:[{type:"whitenoise",volume:1,lowpass:{frequency:6500},highpass:{frequency:5e3}}]},step:{masterVolume:1,midiInstrument:116,masterAttackEnvelope:[{t:1,vol:1},{t:44,vol:0}],eq:[{frequency:200,gain:-1},{frequency:400,gain:-14},{frequency:800,gain:8},{frequency:1e3,Q:5,gain:-24},{frequency:1600,gain:8},{frequency:2200,gain:-10},{frequency:5400,gain:4},{frequency:12800,gain:-36}],oscillators:[{type:"whitenoise",volume:1.5,lowpass:{frequency:300},highpass:{frequency:100,Q:6}}]},kick:{masterVolume:.55,masterAttackEnvelope:[{t:1,vol:.8},{t:15,vol:1},{t:45,vol:.35},{t:121,vol:.11},{t:242,vol:0}],eq:[{frequency:50,gain:6},{frequency:400,gain:-18},{frequency:1600,gain:18}],oscillators:[{type:"triangle",fixedFrequency:90,volume:1,lowpass:{frequency:300},attackEnvelope:[{t:1,vol:1},{t:6,vol:1},{t:45,vol:.01}]},{type:"whitenoise",volume:.4,lowpass:{frequency:200},attackEnvelope:[{t:1,vol:1},{t:30,vol:0}]},{type:"triangle",freqMultiplier:.1,volume:1,lowpass:{frequency:200}}]},shortnote:{masterVolume:.8,midiInstrument:116,masterAttackEnvelope:[{t:1,vol:1},{t:15,vol:0}],eq:[{frequency:400,gain:-4},{frequency:800,gain:-12},{frequency:2400,gain:4},{frequency:7200,gain:-20},{frequency:1e3,Q:5,gain:-12},{frequency:5400,gain:-32},{frequency:12800,gain:-14}],oscillators:[{type:"sawtooth",volume:.6,lowpass:{frequency:1e3}},{type:"whitenoise",volume:.2,lowpass:{frequency:1e4},highpass:{frequency:7e3},attackEnvelope:[{t:1,vol:1},{t:10,vol:0}]},{type:"whitenoise",volume:1.3,lowpass:{frequency:700,Q:4},highpass:{frequency:250}}]},noise:{masterVolume:.3,midiInstrument:122,oscillators:[{type:"whitenoise"}]},filteredNoise:{masterVolume:.3,midiInstrument:122,eq:[{frequency:1600,gain:-8},{frequency:2200,gain:-4}],oscillators:[{type:"whitenoise",lowpass:{frequency:5,frequencyPitchTrackingMultiplier:1300,Q:6},highpass:{frequency:5,frequencyPitchTrackingMultiplier:300,Q:6}}]},wind:{masterVolume:.75,midiInstrument:122,noteGlideDuration:150,masterReleaseEnvelope:[{t:0,vol:1},{t:124,vol:.24},{t:281,vol:0}],oscillators:[{type:"whitenoise",volume:1,lowpass:{frequency:100,frequencyPitchTrackingMultiplier:6,Q:23},highpass:{frequency:170,frequencyPitchTrackingMultiplier:6}},{type:"sine",freqMultiplier:.016,volume:1e3,fmOscillator:0}]}},y=function(){function e(e,t,i){this.audioContext=e,this.curParams={},this.midiTrackName=i.midiTrackName,this.masterVolNode=new GainNode(e),this.masterVolNode.connect(t),this.volumeNode=new GainNode(e),this.createNodesFromCapabilities((0,a.extend)({pan:!0},i.capabilities||{})),this.connectCapabilityNodes(this.volumeNode,this.masterVolNode),this.synthPatch=new f(e,"string"==typeof i.synthPatch?d[i.synthPatch]:i.synthPatch),this.midiInstrument=this.synthPatch.midiInstrument||1,this.synthPatch.startSilently(),this.synthPatch.connect(this.volumeNode)}return e.prototype.setMasterVolume=function(t){this.masterVolNode.gain.setTargetAtTime(t,0,e.rampTime)},e.prototype.scheduleEventAtTime=function(t,i){var n=(0,a.extend)(this.curParams,i),o=(0,a.defined)(i.frequency)?i.frequency:(0,a.defined)(i.note)?e.musicalNoteToFrequency(i.note):220;(0,a.defined)(o)&&this.synthPatch.playFreqAtTime(t,o,n.noteDuration),((0,a.defined)(n.tremoloDepth)||(0,a.defined)(n.tremoloSpeed))&&this.setTremoloAtTime(t,n.tremoloDepth,n.tremoloSpeed),(0,a.defined)(n.pan)&&this.setPanAtTime(t,n.pan),(0,a.defined)(n.volume)&&this.setVolumeAtTime(t,n.volume),((0,a.defined)(n.lowpassFreq)||(0,a.defined)(n.lowpassResonance))&&this.setFilterAtTime("lowpass",t,n.lowpassFreq,n.lowpassResonance),((0,a.defined)(n.highpassFreq)||(0,a.defined)(n.highpassResonance))&&this.setFilterAtTime("highpass",t,n.highpassFreq,n.highpassResonance)},e.prototype.silenceAtTime=function(e){this.synthPatch.silenceAtTime(e)},e.prototype.cancel=function(){this.synthPatch.mute(),[this.tremoloDepth&&this.tremoloDepth.gain,this.tremoloOsc&&this.tremoloOsc.frequency,this.lowpassNode&&this.lowpassNode.frequency,this.lowpassNode&&this.lowpassNode.Q,this.highpassNode&&this.highpassNode.frequency,this.highpassNode&&this.highpassNode.Q,this.panNode&&this.panNode.pan,this.volumeNode.gain].forEach(function(e){return e&&e.cancelScheduledValues(0)})},e.prototype.destroy=function(){this.cancel(),this.synthPatch.stop(),this.tremoloOsc&&this.tremoloOsc.stop(),[this.tremoloDepth,this.tremoloOsc,this.lowpassNode,this.highpassNode,this.panNode,this.volumeNode,this.masterVolNode].forEach(function(e){return e&&e.disconnect()})},e.prototype.setPanAtTime=function(t,i){this.panNode&&this.panNode.pan.setTargetAtTime(i,t+this.audioContext.currentTime,e.rampTime)},e.prototype.setFilterAtTime=function(t,i,n,o){var s=this[t+"Node"],r=this.audioContext.currentTime+i;s&&((0,a.defined)(o)&&s.Q.setTargetAtTime(o,r,e.rampTime),(0,a.defined)(n)&&s.frequency.setTargetAtTime(n,r,e.rampTime))},e.prototype.setVolumeAtTime=function(t,i){this.volumeNode&&this.volumeNode.gain.setTargetAtTime(i,t+this.audioContext.currentTime,e.rampTime)},e.prototype.setTremoloAtTime=function(t,i,n){var o=this.audioContext.currentTime+t;this.tremoloDepth&&(0,a.defined)(i)&&this.tremoloDepth.gain.setTargetAtTime(i,o,e.rampTime),this.tremoloOsc&&(0,a.defined)(n)&&this.tremoloOsc.frequency.setTargetAtTime(15*n,o,e.rampTime)},e.prototype.createNodesFromCapabilities=function(e){var t=this.audioContext;e.pan&&(this.panNode=new StereoPannerNode(t)),e.tremolo&&(this.tremoloOsc=new OscillatorNode(t,{type:"sine",frequency:3}),this.tremoloDepth=new GainNode(t),this.tremoloOsc.connect(this.tremoloDepth),this.tremoloDepth.connect(this.masterVolNode.gain),this.tremoloOsc.start()),e.filters&&(this.lowpassNode=new BiquadFilterNode(t,{type:"lowpass",frequency:2e4}),this.highpassNode=new BiquadFilterNode(t,{type:"highpass",frequency:0}))},e.prototype.connectCapabilityNodes=function(e,t){[this.panNode,this.lowpassNode,this.highpassNode,e].reduce(function(e,t){return t?(t.connect(e),t):e},t)},e.noteStringToC0Distance=function(e){var t=e.match(/^([a-g][#b]?)([0-8])$/i),i=t?t[1]:"a",n=i[0].toLowerCase(),o=i[1];return(({c:0,d:2,e:4,f:5,g:7,a:9,b:11})[n]||0)+("#"===o?1:"b"===o?-1:0)+12*(t?parseInt(t[2],10):4)},e.musicalNoteToFrequency=function(e){return 16.3516*Math.pow(2,Math.min("string"==typeof e?this.noteStringToC0Distance(e):e,107)/12)},e.rampTime=f.stopRampTime/4,e}(),v=function(){function e(e){this.options=e,this.masterVolume=1,this.synthesis=window.speechSynthesis,void 0!==speechSynthesis.onvoiceschanged&&(speechSynthesis.onvoiceschanged=this.setVoice.bind(this)),this.setVoice(),this.scheduled=[]}return e.prototype.say=function(e,t){if(this.synthesis){this.synthesis.cancel();var i=new SpeechSynthesisUtterance(e);this.voice&&(i.voice=this.voice),i.rate=t&&t.rate||this.options.rate||1,i.pitch=t&&t.pitch||this.options.pitch||1,i.volume=(0,a.pick)(t&&t.volume,this.options.volume,1)*this.masterVolume,this.synthesis.speak(i)}},e.prototype.sayAtTime=function(e,t,i){this.scheduled.push(setTimeout(this.say.bind(this,t,i),e))},e.prototype.cancel=function(){this.scheduled.forEach(clearTimeout),this.scheduled=[],this.synthesis.cancel()},e.prototype.destroy=function(){this.cancel()},e.prototype.setMasterVolume=function(e){this.masterVolume=e},e.prototype.setVoice=function(){if(this.synthesis){for(var e=this.options.name,t=this.options.language||"en-US",i=this.synthesis.getVoices(),n=i.length,o=void 0,s=0;s<n;++s){if(e&&i[s].name===e){this.voice=i[s];return}if(!o&&i[s].lang===t&&(o=i[s],!e))break}this.voice=o}},e}(),g=function(){function e(e,t,i,n,o){void 0===i&&(i=!1),this.type=e,this.engine=t,this.showPlayMarker=i,this.muted=o,this.events=n||[]}return e.prototype.addEvent=function(e){var t=this.events[this.events.length-1];if(t&&e.time<t.time){for(var i=this.events.length;i--&&this.events[i].time>e.time;);this.events.splice(i+1,0,e)}else this.events.push(e);return e},e.prototype.mute=function(){this.muted=!0},e.prototype.unmute=function(){this.muted=!1},e.prototype.cancel=function(){this.engine.cancel()},e.prototype.destroy=function(){this.engine.destroy()},e}(),q=function(e,t){return t>>>8*e&255},T=[0,255,81,3,7,161,32],w=function(e){for(var t=127&e,i=[];e>>=7;)t<<=8,t|=127&e|128;for(;;)if(i.push(255&t),128&t)t>>=8;else break;return i},x=function(e){var t,i,n=[],o=function(e){for(var t=n.length;t--&&n[t].timeMS>e.timeMS;);n.splice(t+1,0,e)};return e.forEach(function(e){var n=e.instrumentEventOptions||{},s=e.time,r=i=(0,a.pick)(n.noteDuration,i),l=r&&e.time+r,c=[{valMap:function(e){return 64+63*e&127},data:{10:n.pan,92:n.tremoloDepth,93:n.tremoloSpeed}},{valMap:function(e){return 127*e/2e4&127},data:{74:n.lowpassFreq,75:n.highpassFreq}},{valMap:function(e){return 63*Math.min(18,Math.max(-18,e))/18+63&127},data:{71:n.lowpassResonance,76:n.highpassResonance}}],u=t=void 0===n.volume?(0,a.pick)(t,127):127*n.volume&127,h=n.frequency,p=n.note||0,m=12+(h?Math.round(12*Math.log(h)/Math.LN2-48.37632):"string"==typeof p?y.noteStringToC0Distance(p):p)&127;c.forEach(function(e){return Object.keys(e.data).forEach(function(t){var i=e.data[t];void 0!==i&&o({timeMS:s,type:"CTRL_CHG",data:[176,parseInt(t,10),e.valMap(i)]})})}),l&&(o({timeMS:s,type:"NON",data:[144,m,u]}),o({timeMS:l,type:"NOF",data:[128,m,u]}))}),n},N=function(e,t){var i=[];if(t&&i.push(0,192,127&t),e){for(var n=[],o=0;o<e.length;++o){var s=e.charCodeAt(o);s<128&&n.push(s)}return i.concat([0,255,3],w(n.length),n)}return i},k=function(e,t,i,n){var o=0,s=N(i,n),a=x(e).reduce(function(e,t){var i=w(t.timeMS-o);return o=t.timeMS,e.concat(i,t.data)},[]),r=[0,255,47,0],l=(t?T.length:0)+s.length+a.length+r.length;return[77,84,114,107,q(3,l),q(2,l),q(1,l),q(0,l)].concat(t?T:[],s,a,r)},P=function(e){var t,i=e.filter(function(e){return!!e.events.length}),n=i.length,o=n>1;return new Uint8Array([77,84,104,100,0,0,0,6,0,+((t=o?n+1:n)>1),q(1,t),q(0,t),1,244].concat(o?k([],!0):[],i.reduce(function(e,t){var i=t.engine;return e.concat(k(t.events,!o,i.midiTrackName,i.midiInstrument))},[])))},E=r().isSafari,M=r().win,b=r().win.document,A=M.URL||M.webkitURL||M,O=function(){function e(e,t){this.chart=t,this.isPaused=!1,this.isPlaying=!1,this.channels=[],this.scheduledCallbacks=[],this.playTimestamp=0,this.resumeFromTime=0,this.options=e||{}}return e.prototype.addChannel=function(e,t,i,n){if(void 0===i&&(i=!1),"instrument"===e&&!t.scheduleEventAtTime||"speech"===e&&!t.sayAtTime)throw Error("Highcharts Sonification: Invalid channel engine.");var o=new g(e,t,i,n);return this.channels.push(o),o},e.prototype.play=function(e,t,i,n){var o,s,r=this;void 0===t&&(t=!0),void 0===i&&(i=!0),this.isPlaying?this.cancel():this.clearScheduledCallbacks(),this.onEndArgument=n,this.playTimestamp=Date.now(),this.resumeFromTime=0,this.isPaused=!1,this.isPlaying=!0;var l=this.options.skipThreshold||2,c=this.options.onPlay,u=this.options.showTooltip,h=this.options.showCrosshair,p=e?(s=(o=(this.playingChannels||this.channels).map(function(t){return t.cancel(),{channel:t,filteredEvents:t.muted?[]:t.events.filter(e)}})).reduce(function(e,t){return Math.min(e,t.filteredEvents.length?t.filteredEvents[0].time:1/0)},1/0),o.map(function(e){return new g(e.channel.type,e.channel.engine,e.channel.showPlayMarker,e.filteredEvents.map(function(e){return(0,a.merge)(e,{time:e.time-s})}),e.channel.muted)})):this.channels,m=[];t&&(this.playingChannels=p),c&&c({chart:this.chart,timeline:this});var f=0;p.forEach(function(e){if(!e.muted){var t=e.events.length,i=-1/0,n=-1/0,o="";f=Math.max(e.events[t-1]&&e.events[t-1].time||0,f);for(var s=0;s<t;++s)!function(s){var c=e.events[s],p=Object.keys(c.speechOptions||{}).concat(Object.keys(c.instrumentEventOptions||{})).join();if(p!==o||!(c.time-n<l)){o=p,n=c.time,"instrument"===e.type?e.engine.scheduleEventAtTime(c.time/1e3,c.instrumentEventOptions||{}):e.engine.sayAtTime(c.time,c.message||"",c.speechOptions||{});var f=c.relatedPoint,d=f&&f.series&&f.series.chart,y=c.callback||f&&(u||h)&&!1!==e.showPlayMarker&&(c.time-i>50||s===t-1);f&&m.push(f),y&&(r.scheduledCallbacks.push(setTimeout(function(){if(c.callback&&c.callback(),f){if(h){var e=f.series;e&&e.xAxis&&e.xAxis.crosshair&&e.xAxis.drawCrosshair(void 0,f),e&&e.yAxis&&e.yAxis.crosshair&&e.yAxis.drawCrosshair(void 0,f)}u&&!(d&&d.hoverPoints&&d.hoverPoints.length>1&&(0,a.find)(d.hoverPoints,function(e){return e===f})&&f.onMouseOver)&&f.onMouseOver()}},c.time)),i=c.time)}}(s)}});var d=this.options.onEnd,y=this.options.onStop;this.scheduledCallbacks.push(setTimeout(function(){var e=r.chart,t={chart:e,timeline:r,pointsPlayed:m};r.isPlaying=!1,i&&r.resetPlayState(),y&&y(t),d&&d(t),n&&n(t),e&&(e.tooltip&&e.tooltip.hide(0),e.hoverSeries&&e.hoverSeries.onMouseOut(),e.axes.forEach(function(e){return e.hideCrosshair()}))},f+250)),this.resumeFromTime=t?f:this.getLength()},e.prototype.pause=function(){return this.isPaused=!0,this.cancel(),this.resumeFromTime=Date.now()-this.playTimestamp-10,this.resumeFromTime},e.prototype.getCurrentTime=function(){return this.isPlaying?Date.now()-this.playTimestamp:this.resumeFromTime},e.prototype.getLength=function(){return this.channels.reduce(function(e,t){var i=t.events[t.events.length-1];return i?Math.max(i.time,e):e},0)},e.prototype.resume=function(){if(this.playingChannels){var e=this.resumeFromTime-50;this.play(function(t){return t.time>e},!1,!1,this.onEndArgument),this.playTimestamp-=e}else this.play(void 0,!1,!1,this.onEndArgument)},e.prototype.anchorPlayMoment=function(e,t){this.isPlaying&&this.pause();var i=0;this.play(function(t,n,o){var s=e(t,n,o);return s&&t.time>i&&(i=t.time),s},!1,!1,t),this.playingChannels=this.playingChannels||this.channels,this.isPaused=!0,this.isPlaying=!1,this.resumeFromTime=i},e.prototype.playAdjacent=function(e,t,i,n){this.isPlaying&&this.pause();var o=this.resumeFromTime,s=this.channels.reduce(function(t,i){for(var s=n?i.events.filter(n):i.events,a=0,r=s.length,l=t;a<r;){var c=a+r>>1,u=s[c].time,h=u-o;h>0?(e&&u<l&&(l=u),r=c):h<0?(!e&&u>l&&(l=u),a=c+1):e?a=c+1:r=c}return l},e?1/0:-1/0);if(s===1/0||s===-1/0){i&&i({chart:this.chart,timeline:this,attemptedNext:e});return}this.anchorPlayMoment(function(t,i,a){var r=e?t.time>o&&t.time<=s+.02:t.time<o&&t.time>=s-.02;return n?r&&n(t,i,a):r},t)},e.prototype.playClosestToPropValue=function(e,t,i,n,o){var s=1/0,r=null;(this.playingChannels||this.channels).forEach(function(i){for(var n=i.events,l=n.length;l--;)if(c=n[l],u=l,o?o(c,u,n)&&c.relatedPoint:c.relatedPoint){var c,u,h=n[l].relatedPoint[e],p=(0,a.defined)(h)&&Math.abs(t-h);!1!==p&&p<s&&(s=p,r=n[l])}}),r?(this.play(function(e){return!!(r&&e.time<r.time+1&&e.time>r.time-1&&e.relatedPoint===r.relatedPoint)},!1,!1,i),this.playingChannels=this.playingChannels||this.channels,this.isPaused=!0,this.isPlaying=!1,this.resumeFromTime=r.time):n&&n({chart:this.chart,timeline:this})},e.prototype.getEventsForPoint=function(e){return this.channels.reduce(function(t,i){var n=i.events.filter(function(t){return t.relatedPoint===e});return t.concat(n)},[])},e.prototype.playSegment=function(e,t){var i={first:1/0,last:-1/0};if(this.channels.forEach(function(e){e.events.length&&(i.first=Math.min(e.events[0].time,i.first),i.last=Math.max(e.events[e.events.length-1].time,i.last))}),i.first<1/0){var n=(i.last-i.first)/100,o=i.first+e*n,s=o+n;if(!this.channels.some(function(e){for(var t=e.events,i=0,n=t.length;i<n;){var a=i+n>>1,r=t[a].time;if(r<o)i=a+1;else{if(!(r>s))return!0;n=a}}return!1}))return;this.play(function(e){return e.time>=o&&e.time<=s},!1,!1,t),this.playingChannels=this.playingChannels||this.channels,this.isPaused=!0,this.isPlaying=!1,this.resumeFromTime=s}},e.prototype.getLastPlayedPoint=function(e){var t=this.getCurrentTime(),i=this.playingChannels||this.channels,n=1/0,o=null;return i.forEach(function(i){var s=i.events.filter(function(i,n,o){return!!(i.relatedPoint&&i.time<=t&&(!e||e(i,n,o)))}),a=s[s.length-1];if(a){var r=Math.abs(a.time-t);r<n&&(n=r,o=a.relatedPoint)}}),o},e.prototype.reset=function(){this.isPlaying&&this.cancel(),this.resetPlayState()},e.prototype.cancel=function(){var e=this.options.onStop;e&&e({chart:this.chart,timeline:this}),this.isPlaying=!1,this.channels.forEach(function(e){return e.cancel()}),this.playingChannels&&this.playingChannels!==this.channels&&this.playingChannels.forEach(function(e){return e.cancel()}),this.clearScheduledCallbacks(),this.resumeFromTime=0},e.prototype.destroy=function(){this.cancel(),this.playingChannels&&this.playingChannels!==this.channels&&this.playingChannels.forEach(function(e){return e.destroy()}),this.channels.forEach(function(e){return e.destroy()})},e.prototype.setMasterVolume=function(e){this.channels.forEach(function(t){return t.engine.setMasterVolume(e)})},e.prototype.getMIDIData=function(){return P(this.channels.filter(function(e){return"instrument"===e.type}))},e.prototype.downloadMIDI=function(e){var t=this.getMIDIData(),i=(e||this.chart&&this.chart.options.title&&this.chart.options.title.text||"chart")+".mid",n=new Blob([t],{type:"application/octet-stream"}),o=window.URL.createObjectURL(n);!function(e,t){var i=M.navigator,n=b.createElement("a");if("string"!=typeof e&&!(e instanceof String)&&i.msSaveOrOpenBlob)return i.msSaveOrOpenBlob(e,t);if(e=""+e,i.userAgent.length>1e3)throw Error("Input too long");var o=/Edge\/\d+/.test(i.userAgent);if((E&&"string"==typeof e&&0===e.indexOf("data:application/pdf")||o||e.length>2e6)&&!(e=function(e){var t=e.replace(/filename=.*;/,"").match(/data:([^;]*)(;base64)?,([A-Z+\d\/]+)/i);if(t&&t.length>3&&M.atob&&M.ArrayBuffer&&M.Uint8Array&&M.Blob&&A.createObjectURL){for(var i=M.atob(t[3]),n=new M.ArrayBuffer(i.length),o=new M.Uint8Array(n),s=0;s<o.length;++s)o[s]=i.charCodeAt(s);return A.createObjectURL(new M.Blob([o],{type:t[1]}))}}(e)||""))throw Error("Failed to convert to blob");if(void 0!==n.download)n.href=e,n.download=t,b.body.appendChild(n),n.click(),b.body.removeChild(n);else try{if(!M.open(e,"chart"))throw Error("Failed to open window")}catch(t){M.location.href=e}}(o,i),window.URL.revokeObjectURL(o)},e.prototype.resetPlayState=function(){delete this.playingChannels,delete this.onEndArgument,this.playTimestamp=this.resumeFromTime=0,this.isPaused=!1},e.prototype.clearScheduledCallbacks=function(){this.scheduledCallbacks.forEach(clearTimeout),this.scheduledCallbacks=[]},e}(),C=o(984),S=o.n(C),V=function(){return(V=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},I=S().format,F=function(e){return/^([a-g][#b]?)[0-8]$/i.test(e)};function D(e,t){var i;if(t){if("number"==typeof(i=e[t]))return i;i=(0,a.getNestedProperty)(t,e)}return"number"==typeof i?i:void 0}function Q(e,t,i,n,o){var s=t.max-t.min;if(s<=0)return i.min;var r=i.max-i.min,l=r*(e-t.min)/s;if(o){var c=t.min>0?function(e){return Math.log(e)/Math.LOG10E}:function(e){var t=Math.abs(e);t<10&&(t+=(10-t)/10);var i=Math.log(t)/Math.LN10;return e<0?-i:i},u=c(t.min);l=r*(c(e)-u)/(c(t.max)-u)}var h=n?i.max-l:i.min+l;return(0,a.clamp)(h,i.min,i.max)}function R(e,t,i,n,o,s,r){return(0,a.pick)(function(e,t,i,n,o,s){if("number"==typeof o)return o;if("function"==typeof o)return o((0,a.extend)({time:0},e));var r,l=o,c=n.mapFunction,u=n.min,h=n.max,p=n.within;if("object"==typeof o&&(l=o.mapTo,c=o.mapFunction||c,u=(0,a.pick)(o.min,u),h=(0,a.pick)(o.max,h),p=o.within||n.within,r=o.scale),!l)return null;var m="-"===l.charAt(0);m&&(l=l.slice(1));var f=e.value,d="value"===l&&void 0!==f&&s;if(!d){var y=o.value;if(void 0!==y)f=y;else{if(!e.point)return null;f=e.point[l]}void 0===f&&(f=(0,a.getNestedProperty)(l,e.point))}if("number"!=typeof f||null===f)return null;var v=null;if(e.point)if("xAxis"===p||"yAxis"===p){var g=e.point.series[p];g&&(0,a.defined)(g.dataMin)&&(0,a.defined)(g.dataMax)&&(v={min:g.dataMin,max:g.dataMax})}else("series"===p||i)&&e.point.series&&(v=t.seriesExtremes[e.point.series.index][d?s:l]);if(v||(v=t.globalExtremes[d?s:l]),r){for(var q=[],T=Math.floor(u/12),w=Math.ceil(h/12)+1,x=r.length,N=T;N<w;++N)for(var k=0;k<x;++k){var P=12*N+r[k];P>=u&&P<=h&&q.push(P)}var E=Q(f,v,{min:0,max:q.length-1},m,"logarithmic"===c);return q[Math.round(E)]}return Q(f,v,{min:u,max:h},m,"logarithmic"===c)}(e,t,i,(0,a.extend)({min:0,max:1,mapTo:"y",mapFunction:"linear",within:"chart"},s||{}),n,r),o)}function j(e,t,i,n){var o=n.mapping||{},s="speech"===n.type?new v({language:n.language,name:n.preferredVoice}):new y(t,i,{capabilities:{pan:!!o.pan,tremolo:!!o.tremolo,filters:!!(o.highpass||o.lowpass)},synthPatch:n.instrument,midiTrackName:n.midiName});return e.addChannel(n.type||"instrument",s,(0,a.pick)(n.showPlayMarker,!0))}function B(e,t,i,n,o,s){var r=function(t,o,a,r){return R(e,n,!1,(r||i)[t],o,a,s)},l=[],c={noteDuration:r("noteDuration",200,{min:40,max:1e3}),pan:r("pan",0,{min:-1,max:1}),volume:r("volume",1,{min:.1,max:1})};i.frequency&&(c.frequency=r("frequency",440,{min:50,max:6e3})),i.lowpass&&(c.lowpassFreq=r("frequency",2e4,{min:0,max:2e4},i.lowpass),c.lowpassResonance=r("resonance",0,{min:-6,max:12},i.lowpass)),i.highpass&&(c.highpassFreq=r("frequency",2e4,{min:0,max:2e4},i.highpass),c.highpassResonance=r("resonance",0,{min:-6,max:12},i.highpass)),i.tremolo&&(c.tremoloDepth=r("depth",0,{min:0,max:.8},i.tremolo),c.tremoloSpeed=r("speed",0,{min:0,max:.8},i.tremolo));var u=r("gapBetweenNotes",150,{min:50,max:1e3}),h=r("playDelay",0,{max:200}),p=function(i,r){void 0===r&&(r=0);var p=i;i.mapTo?("string"==typeof i.min&&(p.min=y.noteStringToC0Distance(i.min)),"string"==typeof i.max&&(p.max=y.noteStringToC0Distance(i.max))):"string"==typeof i&&F(i)&&(p=y.noteStringToC0Distance(i)),c.note=R(e,n,!1,p,-1,{min:0,max:107},s),c.note>-1&&(o&&(c.note=Math.round(c.note)),l.push(t.addEvent({time:e.time+h+u*r,relatedPoint:e.point,instrumentEventOptions:void 0!==r?(0,a.extend)({},c):c})))};return i.pitch&&i.pitch.constructor===Array?i.pitch.forEach(p):i.pitch?p(i.pitch):i.frequency&&l.push(t.addEvent({time:e.time+h,relatedPoint:e.point,instrumentEventOptions:c})),l}function G(e,t,i,n,o){var s,a=function(t,s,a){return R(e,n,!1,i[t],s,a,o)},r=a("playDelay",0,{max:200}),l=a("pitch",1,{min:.3,max:2}),c=a("rate",1,{min:.4,max:4}),u=a("volume",1,{min:.1}),h=I("function"==typeof(s=i.text)?s(e):s,e,e.point&&e.point.series.chart);if(h)return t.addEvent({time:e.time+r,relatedPoint:e.point,speechOptions:{pitch:l,rate:c,volume:u},message:h})}function U(e,t,i){if("function"==typeof t)return t(e);if("object"==typeof t){var n=t.prop,o=(0,a.pick)(e.value,e.point&&D(e.point,n));if("number"!=typeof o)return!1;var s=!0,r=t.crossingUp,l=t.crossingDown,c="number"==typeof i;s=r&&l?c&&(i<r&&o>=r||i>l&&o<=l):(void 0===r||c&&i<r&&o>=r)&&(void 0===l||c&&i>l&&o<=l);var u=(0,a.pick)(t.max,1/0),h=(0,a.pick)(t.min,-1/0);return o<=u&&o>=h&&s}return!0}var L=function(e,t,i){var n,o,s,r,l,c,u,h,p,m,f,d,y=i.options.sonification||{},v=y.defaultInstrumentOptions,g=y.defaultSpeechOptions,q=(0,a.merge)({enabled:!0,groupTimespan:15,algorithm:"minmax",prop:"y"},y.pointGrouping),T=y.globalTracks||[],w=y.globalContextTracks||[],x="sequential"===y.order,N=Math.max(50,y.duration-300),k=y.afterSeriesWait,P=y.events||{},E=(o=((n=i.options.sonification||{}).defaultInstrumentOptions||{}).mapping||{time:"x",pitch:"y"},s=n.defaultSpeechOptions&&n.defaultSpeechOptions.mapping||{},r=[],l={},c=function(e,t){null!==t?(r[t]=r[t]||{},r[t][e]=!0):l[e]=!0},u={},h={},p=function(e,t,i){var n=function(e){return"-"===e.charAt(0)?e.slice(1):e};if("string"==typeof t&&"text"!==e){if("pitch"===e&&F(t))return;"time"===e&&(h[t]=!0,c(t,i)),u[n(t)]=!0;return}if(t&&t.mapTo&&"string"==typeof t.mapTo){var o=n(t.mapTo);"time"===e&&c(o,i),("time"===e||"series"===t.within)&&(h[o]=!0),u[o]=!0;return}["tremolo","lowpass","highpass"].indexOf(e)>-1&&"object"==typeof t&&Object.keys(t).forEach(function(e){return p(e,t[e],i)})},m=function(e,t){Object.keys(e).forEach(function(i){return p(i,e[i],t)})},f=function(e){return e.forEach(function(e){u[e.valueProp||"x"]=h[e.valueProp||"x"]=!0})},m(o,null),m(s,null),f(n.globalContextTracks||[]),d=Object.keys(l).length,i.series.forEach(function(e){var t=e.options.sonification;if(e.visible&&!(t&&!1===t.enabled)&&(d&&(r[e.index]=(0,a.merge)(l)),t)){var i=(t.defaultInstrumentOptions||{}).mapping,n=(t.defaultSpeechOptions||{}).mapping;i&&m(i,e.index),n&&m(n,e.index),f(t.contextTracks||[]),(t.tracks||[]).concat(t.contextTracks||[]).forEach(function(t){t.mapping&&m(t.mapping,e.index)})}}),V({seriesTimeProps:r},function(e,t,i){for(var n=e.series,o=t.length,s=i.length,r=function(e){return e.reduce(function(e,t){return e[t]={min:1/0,max:-1/0},e},{})},l=function(e,t,i){var n=t[i];void 0===n&&(n=(0,a.getNestedProperty)(i,t)),"number"==typeof n&&(e[i].min=Math.min(e[i].min,n),e[i].max=Math.max(e[i].max,n))},c=r(t),u=n.length,h=Array(u);u--;){var p=r(i),m=n[u].options;if(n[u].visible&&(!m||!m.sonification||!1!==m.sonification.enabled)){for(var f=n[u].points||[],d=f.length;d--;){for(var y=o;y--;)l(c,f[d],t[y]);for(y=s;y--;)l(p,f[d],i[y])}h[u]=p}}return{globalExtremes:c,seriesExtremes:h}}(i,Object.keys(u),Object.keys(h)))),M=new O({onPlay:P.onPlay,onEnd:P.onEnd,onStop:P.onStop,showCrosshair:y.showCrosshair,showTooltip:y.showTooltip},i);i.sonification&&(i.sonification.propMetrics=E);var b=0;return i.series.forEach(function(i,n){var o=i.options.sonification||{};if(i.visible&&!1!==o.enabled){var s,r=x?function(e,t,i,n){var o,s,a=t-(e.chart.series.length-1)*n;if(i.seriesTimeProps.every(function(e){var t=Object.keys(e);return!(t.length>1)&&(o||(o=t[0]),o===t[0])})){var r=i.seriesExtremes[e.index][o];s=Math.round((r.max-r.min)/i.seriesExtremes.reduce(function(e,t){return t[o]?e+t[o].max-t[o].min:e},0)*a)}else{var l=e.chart.series.reduce(function(e,t){return e+t.points.length},0);s=Math.round((e.points||[]).length/l*a)}return Math.max(50,s)}(i,N,E,k):N,l=(0,a.merge)(v,o.defaultInstrumentOptions),c=(0,a.merge)(g,o.defaultSpeechOptions),u=(0,a.merge)(q,o.pointGrouping),h=(o.tracks||[l]).concat(T),p=M.channels.length&&!x?o.contextTracks||[]:(o.contextTracks||[]).concat(w),m=[];h.forEach(function(n){var o=(0,a.merge)({pointGrouping:u,midiName:n.midiName||i.name},"speech"===n.type?c:l,n),h=o.pointGrouping,p=o.activeWhen,f=function(e){"object"==typeof p&&p.prop&&(s=D(e,p.prop))},d=j(M,e,t,o),y=function(e){return m.push.apply(m,function(e,t,i,n){var o=[];if("speech"===i.type&&i.mapping){var s=G(e,t,i.mapping,n);s&&(o=[s])}else i.mapping&&(o=B(e,t,i.mapping,n,(0,a.pick)(i.roundToMusicalNotes,!0)));return o}(e,d,o,E))},v=[],g=0,q=function(e){if(1===v.length)y({point:v[0].point,time:g+e/2});else{var t=function(e,t){var i=e.algorithm||"minmax",n=function(e){return t[e]?[t[e].point]:[]};if("first"===i)return n(0);if("last"===i)return n(t.length-1);if("middle"===i)return n(t.length>>1);if("firstlast"===i)return n(0).concat(n(t.length-1));if("minmax"===i){var o,s,a,r,l=e.prop||"y";if(t.forEach(function(e){var t=D(e.point,l);void 0!==t&&((!o||t<a)&&(o=e,a=t),(!s||t>r)&&(s=e,r=t))}),o&&s)return o.point===s.point?[o.point]:o.time>s.time?[s.point,o.point]:[o.point,s.point]}return[]}(h,v),i=e/t.length;t.forEach(function(e,t){return y({point:e,time:g+i/2+i*t})})}v=[]};(i.points||[]).forEach(function(e,t){var n,a=t===i.points.length-1,l=(n=b,R({point:e,time:0},E,x,o.mapping&&o.mapping.time||0,0,{min:0,max:r,mapTo:"x"})+n),c={point:e,time:l};if(!o.mapping||!U(c,p,s)){f(e),a&&v.length&&q(v[v.length-1].time-v[0].time);return}if(f(e),h.enabled){var u=l-g,m=h.groupTimespan,d=a&&u<=m?u:m;a||u>m?(u<=m&&v.push(c),q(d),g=Math.floor(l/m)*m,a&&u>m?y({point:c.point,time:g+d/2}):v=[c]):v.push(c)}else y(c)})});var f=m.reduce(function(e,t){return t.time<e.time?t:e},{time:1/0}),d=m.reduce(function(e,t){return t.time>e.time?t:e},{time:-1/0});f.callback=P.onSeriesStart?P.onSeriesStart.bind(null,{series:i,timeline:M}):void 0,d.callback=P.onSeriesEnd?P.onSeriesEnd.bind(null,{series:i,timeline:M}):void 0,p.forEach(function(i){var o="speech"===i.type?(0,a.merge)(g,i):(0,a.merge)(v,{mapping:{pitch:{mapTo:"value"}}},i),l=j(M,e,t,o);s=void 0;var c=o.timeInterval,u=o.valueInterval,h=o.valueProp||"x",p=o.activeWhen,m=E.seriesExtremes[n][h],f=function(e,t){if(!o.mapping||!U({time:e,value:t},"object"==typeof p?(0,a.extend)({prop:h},p):p,s)){s=t;return}s=t,"speech"===o.type?G({time:e,value:t},l,o.mapping,E,h):B({time:e,value:t},l,o.mapping,E,(0,a.pick)(o.roundToMusicalNotes,!0),h)};if(c)for(var d=0;d<=r;){var y=Q(d,{min:0,max:r},m);f(d+b,y),d+=c}if(u)for(var y=m.min;y<=m.max;){var d=Q(y,m,{min:0,max:r},!1,"logarithmic"===o.valueMapFunction);f(d+b,y),y+=u}}),x&&(b+=r+k)}}),M},W=r().defaultOptions,H=r().getOptions,_=r().doc,K=r().win,$=function(){function e(e){this.retryContextCounter=0,this.lastUpdate=0,this.chart=e,this.unbindKeydown=(0,a.addEvent)(_,"keydown",function(t){e&&e.sonification&&("Esc"===t.key||"Escape"===t.key)&&e.sonification.cancel()});try{this.audioContext=new K.AudioContext,this.audioContext.suspend(),this.audioDestination=this.audioContext.destination}catch(e){}}return e.prototype.setAudioDestination=function(e){this.audioDestination=e,this.update()},e.prototype.isPlaying=function(){return!!this.timeline&&this.timeline.isPlaying},e.prototype.playSegment=function(e,t){this.ready(this.playSegment.bind(this,e,t))&&this.timeline&&this.timeline.playSegment(e,t)},e.prototype.playAdjacent=function(e,t,i){var n=this;if(this.ready(this.playAdjacent.bind(this,e,t,i))&&this.timeline){var o=this.chart.options.sonification,s=o&&o.events&&o.events.onBoundaryHit;s||this.initBoundaryInstrument(),this.timeline.playAdjacent(e,t,s||function(){n.defaultBoundaryHit()},i)}},e.prototype.playAdjacentSeries=function(e,t,i){void 0===t&&(t="x");var n=this.getLastPlayedPoint();if(n){var o=n.series.index+(e?1:-1);return this.playClosestToProp(t,n[t],function(e){return!!e.relatedPoint&&e.relatedPoint.series.index===o},i),this.chart.series[o]||null}return null},e.prototype.playClosestToProp=function(e,t,i,n){var o=this;if(this.ready(this.playClosestToProp.bind(this,e,t,i,n))&&this.timeline){var s=this.chart.options.sonification,a=s&&s.events&&s.events.onBoundaryHit;a||this.initBoundaryInstrument(),this.timeline.playClosestToPropValue(e,t,n,a||function(){return o.defaultBoundaryHit()},i)}},e.prototype.getLastPlayedPoint=function(){return this.timeline?this.timeline.getLastPlayedPoint():null},e.prototype.playNote=function(e,t,i){if(void 0===i&&(i=0),this.ready(this.playNote.bind(this,e,t))){var n=t.noteDuration=t.noteDuration||500,o=new y(this.audioContext,this.audioDestination,{synthPatch:e,capabilities:{filters:!0,tremolo:!0,pan:!0}});o.scheduleEventAtTime(i/1e3,t),setTimeout(function(){return o&&o.destroy()},i+n+500)}},e.prototype.speak=function(e,t,i){void 0===i&&(i=0),new v((0,a.merge)({language:"en-US",rate:1.5,volume:.4},t||{})).sayAtTime(i,e)},e.prototype.cancel=function(){this.timeline&&this.timeline.cancel(),(0,a.fireEvent)(this,"cancel")},e.prototype.downloadMIDI=function(){this.ready(this.downloadMIDI.bind(this))&&this.timeline&&(this.timeline.reset(),this.timeline.downloadMIDI())},e.prototype.sonifyChart=function(e,t){this.ready(this.sonifyChart.bind(this,e,t))&&this.timeline&&(this.timeline.reset(),this.beforePlay(),this.timeline.play(void 0,void 0,e,t))},e.prototype.sonifySeries=function(e,t,i){this.ready(this.sonifySeries.bind(this,e,t,i))&&this.timeline&&(this.timeline.reset(),this.beforePlay(),this.timeline.play(function(t){return!!t.relatedPoint&&t.relatedPoint.series===e},void 0,t,i))},e.prototype.sonifyPoint=function(e,t){this.ready(this.sonifyPoint.bind(this,e,t))&&this.timeline&&(this.timeline.reset(),this.beforePlay(),this.timeline.anchorPlayMoment(function(t){return t.relatedPoint===e},t))},e.prototype.setMasterVolume=function(e){this.timeline&&this.timeline.setMasterVolume(e)},e.prototype.destroy=function(){this.unbindKeydown(),this.timeline&&(this.timeline.destroy(),delete this.timeline),this.boundaryInstrument&&this.boundaryInstrument.stop(),this.audioContext&&(this.audioContext.close(),delete this.audioContext)},e.prototype.update=function(){var e=this.chart.options&&this.chart.options.sonification;if(this.ready(this.update.bind(this))&&e){var t=Date.now(),i=e.updateInterval;if(t-this.lastUpdate<i&&!this.forceReady){(0,a.internalClearTimeout)(this.scheduledUpdate),this.scheduledUpdate=setTimeout(this.update.bind(this),i/2);return}var n=e.events||{};if(n.beforeUpdate&&n.beforeUpdate({chart:this.chart,timeline:this.timeline}),this.lastUpdate=t,this.timeline&&this.timeline.destroy(),this.audioContext&&this.audioDestination){this.timeline=L(this.audioContext,this.audioDestination,this.chart);var o=this.chart.options.sonification;this.timeline.setMasterVolume((0,a.pick)(o&&o.masterVolume,1))}n.afterUpdate&&n.afterUpdate({chart:this.chart,timeline:this.timeline})}},e.prototype.ready=function(e){var t=this;return!!this.audioContext&&!!this.audioDestination&&!!this.chart.options&&(!this.chart.options.sonification||!1!==this.chart.options.sonification.enabled)&&("suspended"!==this.audioContext.state||this.forceReady?(this.retryContextCounter=0,!0):(this.retryContextCounter++<20&&setTimeout(function(){t.audioContext&&"suspended"===t.audioContext.state?t.audioContext.resume().then(e):e()},5),!1))},e.prototype.beforePlay=function(){var e=this.chart.options.sonification,t=e&&e.events&&e.events.beforePlay;t&&t({chart:this.chart,timeline:this.timeline})},e.prototype.initBoundaryInstrument=function(){this.boundaryInstrument||(this.boundaryInstrument=new f(this.audioContext,(0,a.merge)(d.chop,{masterVolume:.3})),this.boundaryInstrument.startSilently(),this.boundaryInstrument.connect(this.audioDestination))},e.prototype.defaultBoundaryHit=function(){this.boundaryInstrument&&(this.boundaryInstrument.playFreqAtTime(.1,1,200),this.boundaryInstrument.playFreqAtTime(.2,1,200))},e}();!function(e){var t=[];function i(){var t=this.sonification,i=this.options&&this.options.sonification;i&&i.enabled?t?t.update():(this.sonification=new e(this),this.sonification.update()):t&&(t.destroy(),delete this.sonification)}function n(){this&&this.sonification&&this.sonification.destroy()}function o(){this.updateSonificationEnabled&&this.updateSonificationEnabled()}function s(e){var t=e.options.sonification;t&&((0,a.merge)(!0,this.options.sonification,t),o.call(this))}e.compose=function(e,r,l){-1===t.indexOf(e)&&(t.push(e),(0,a.extend)(e.prototype,{updateSonificationEnabled:i,sonify:function(e){this.sonification&&this.sonification.sonifyChart(!1,e)},toggleSonify:function(e,t){if(void 0===e&&(e=!0),this.sonification){var i=this.sonification.timeline;K.speechSynthesis&&K.speechSynthesis.cancel(),i&&this.sonification.isPlaying()?e?this.sonification.cancel():i.pause():i&&i.isPaused?i.resume():this.sonification.sonifyChart(e,t)}}}),(0,a.addEvent)(e,"destroy",n),(0,a.addEvent)(e,"render",o),(0,a.addEvent)(e,"update",s)),-1===t.indexOf(r)&&(t.push(r),r.prototype.sonify=function(e){this.chart.sonification&&this.chart.sonification.sonifySeries(this,!1,e)}),-1===t.indexOf(l)&&(t.push(l),l.prototype.sonify=function(e){this.series.chart.sonification&&this.series.chart.sonification.sonifyPoint(this,e)});var c=H().exporting;c&&c.buttons&&c.buttons.contextButton.menuItems&&c.buttons.contextButton.menuItems.push("separator","downloadMIDI","playAsSound")}}($||($={})),(0,a.merge)(!0,W,{sonification:{enabled:!0,duration:6e3,afterSeriesWait:700,updateInterval:200,masterVolume:.7,order:"sequential",showTooltip:!0,showCrosshair:!0,pointGrouping:{enabled:!0,groupTimespan:15,algorithm:"minmax",prop:"y"},defaultInstrumentOptions:{roundToMusicalNotes:!0,instrument:"piano",mapping:{time:"x",pan:"x",noteDuration:200,pitch:{mapTo:"y",min:"c2",max:"c6",within:"yAxis"},gapBetweenNotes:100}},defaultSpeechOptions:{language:"en-US",mapping:{time:"x",rate:1.3,volume:.4},pointGrouping:{algorithm:"last"}}},exporting:{menuItemDefinitions:{downloadMIDI:{textKey:"downloadMIDI",onclick:function(){this.sonification&&this.sonification.downloadMIDI()}},playAsSound:{textKey:"playAsSound",onclick:function(){var e=this.sonification;e&&e.isPlaying()?e.cancel():this.sonify()}}}},lang:{downloadMIDI:"Download MIDI",playAsSound:"Play as sound"}});var Z=$,z=r();z.sonification={InstrumentPresets:d,Scales:{minor:[0,2,3,5,7,8,10],dorian:[0,2,3,5,7,9,10],harmonicMinor:[0,2,3,5,7,8,11],phrygian:[0,1,3,5,7,8,11],major:[0,2,4,5,7,9,11],lydian:[0,2,4,6,7,9,11],mixolydian:[0,2,4,5,7,9,10],majorPentatonic:[0,2,4,7,9],minorPentatonic:[0,3,5,7,10]},SynthPatch:f,SonificationInstrument:y,SonificationSpeaker:v,SonificationTimeline:O,Sonification:Z},Z.compose(z.Chart,z.Series,z.Point);var J=r();return s.default}()});