diff --git a/build/2.js b/build/2.js index 3b6b14d..34b702a 100644 --- a/build/2.js +++ b/build/2.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{1071:function(e,t,n){},1073:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return Fe}));var a,r=n(169),i=n.n(r),l=n(102),s=n.n(l),c=n(82),o=n.n(c),u=n(63),m=n.n(u),p=n(843),g=n.n(p),d=n(167),h=n.n(d),f=n(168),x=n.n(f),y=n(130),b=n.n(y),$=n(64),v=n.n($),E=(n(842),n(0)),w=n.n(E),k=n(110),C=n(3),N=n(131),R=n(56);function q(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var I,O=Object(N.a)((function(e,t,n){return t}))(a=Object(N.b)(a=function(e){h()(a,e);var t,n=(t=a,function(){var e,n=b()(t);if(q()){var a=b()(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return x()(this,e)});function a(){return o()(this,a),n.apply(this,arguments)}return m()(a,[{key:"render",value:function(){var e=this,t=this.props.card;return 0==this.props.ext?w.a.createElement("div",{className:"card attack"},w.a.createElement("img",{className:"thumb",src:k.a.base_image+(t.gsx$thumb||k.a.thumb_missing),onClick:function(){return e.props.setImage(t.gsx$image)}}),w.a.createElement("div",{className:"left"},w.a.createElement(R.k,{name:t.gsx$name}),w.a.createElement("br",null),w.a.createElement(R.m,{set:t.gsx$set,rarity:t.gsx$rarity}),w.a.createElement("br",null),w.a.createElement("span",null,w.a.createElement(R.b,{bp:t.gsx$bp})," Attack - ",t.gsx$bp),w.a.createElement("br",null),w.a.createElement("div",null,w.a.createElement("span",{className:"bp bigger"},t.gsx$base)," | ",w.a.createElement(R.f,{element:"fire",value:t.gsx$fire}),t.gsx$fire," ",w.a.createElement(R.f,{element:"air",value:t.gsx$air}),t.gsx$air," ",w.a.createElement(R.f,{element:"earth",value:t.gsx$earth}),t.gsx$earth," ",w.a.createElement(R.f,{element:"water",value:t.gsx$water}),t.gsx$water)),w.a.createElement("br",null),w.a.createElement("div",{className:"right"},w.a.createElement(R.a,{ability:t.gsx$ability}),w.a.createElement(R.q,{data:{unique:t.gsx$unique,loyal:t.gsx$loyal,legendary:t.gsx$legendary}}),w.a.createElement("span",{className:"flavortext"},t.gsx$flavortext))):w.a.createElement("div",{className:"card attack"},w.a.createElement("img",{className:"fullcard",src:k.a.base_image+(t.gsx$image||k.a.card_back)}),w.a.createElement("div",{className:"right"},w.a.createElement(R.k,{name:t.gsx$name}),w.a.createElement("br",null),w.a.createElement(R.a,{ability:t.gsx$ability}),w.a.createElement(R.q,{data:{unique:t.gsx$unique,loyal:t.gsx$loyal,legendary:t.gsx$legendary}}),t.gsx$flavortext&&w.a.createElement(w.a.Fragment,null,w.a.createElement("span",{className:"flavortext"},t.gsx$flavortext),w.a.createElement("br",null)),w.a.createElement("span",null,"Art By: ",t.gsx$artist)))}}]),a}(w.a.Component))||a)||a;function S(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var _,j=Object(N.a)((function(e,t,n){return t}))(I=Object(N.b)(I=function(e){h()(a,e);var t,n=(t=a,function(){var e,n=b()(t);if(S()){var a=b()(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return x()(this,e)});function a(){return o()(this,a),n.apply(this,arguments)}return m()(a,[{key:"render",value:function(){var e=this,t=this.props.card;return 0==this.props.ext?w.a.createElement("div",{className:"card battlegear"},w.a.createElement("img",{className:"thumb",style:{float:"left"},src:k.a.base_image+(t.gsx$thumb||k.a.thumb_missing),onClick:function(){return e.props.setImage(t.gsx$image)}}),w.a.createElement("div",{className:"left"},w.a.createElement(R.k,{name:t.gsx$name}),w.a.createElement("br",null),w.a.createElement(R.m,{set:t.gsx$set,rarity:t.gsx$rarity}),w.a.createElement("br",null),w.a.createElement("span",null,w.a.createElement(R.c,null)," Battlegear",t.gsx$types.length>0?" - "+t.gsx$types:null)),w.a.createElement("div",{className:"right"},w.a.createElement(R.a,{ability:t.gsx$ability}),w.a.createElement(R.q,{data:{unique:t.gsx$unique,loyal:t.gsx$loyal,legendary:t.gsx$legendary}}),w.a.createElement("span",{className:"flavortext"},t.gsx$flavortext))):w.a.createElement("div",{className:"card battlegear"},w.a.createElement("img",{className:"fullcard",src:k.a.base_image+(t.gsx$image||k.a.card_back)}),w.a.createElement("div",{className:"right"},w.a.createElement(R.k,{name:t.gsx$name}),w.a.createElement("br",null),w.a.createElement(R.a,{ability:t.gsx$ability}),w.a.createElement(R.q,{data:{unique:t.gsx$unique,loyal:t.gsx$loyal,legendary:t.gsx$legendary}}),t.gsx$flavortext&&w.a.createElement(w.a.Fragment,null,w.a.createElement("span",{className:"flavortext"},t.gsx$flavortext),w.a.createElement("br",null)),w.a.createElement("span",null,"Art By: ",t.gsx$artist)))}}]),a}(w.a.Component))||I)||I;function B(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var D,F=Object(N.a)((function(e,t,n){return t}))(_=Object(N.b)(_=function(e){h()(a,e);var t,n=(t=a,function(){var e,n=b()(t);if(B()){var a=b()(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return x()(this,e)});function a(){return o()(this,a),n.apply(this,arguments)}return m()(a,[{key:"render",value:function(){for(var e=this,t=this.props.card,n=[],a=0;a=0})," ",w.a.createElement(R.f,{element:"air",value:t.gsx$elements.toLowerCase().indexOf("air")>=0})," ",w.a.createElement(R.f,{element:"earth",value:t.gsx$elements.toLowerCase().indexOf("earth")>=0})," ",w.a.createElement(R.f,{element:"water",value:t.gsx$elements.toLowerCase().indexOf("water")>=0})),w.a.createElement("span",null,n)),w.a.createElement("br",null),w.a.createElement("div",{className:"right"},w.a.createElement(R.a,{ability:t.gsx$ability,tribe:t.gsx$tribe}),t.gsx$brainwashed&&w.a.createElement(w.a.Fragment,null,w.a.createElement("div",{className:"text_brainwashed"},"Brainwashed"),w.a.createElement(R.a,{type:"brainwashed",tribe:t.gsx$tribe,ability:t.gsx$brainwashed})),w.a.createElement(R.q,{data:{unique:t.gsx$unique,loyal:t.gsx$loyal,legendary:t.gsx$legendary,tribe:t.gsx$tribe}}),t.gsx$types.includes("Chieftain")&&w.a.createElement("span",{className:"chieftain"},"(Minions use Brainwashed text. Minions may only play Generic Mugic.)",w.a.createElement("br",null)),w.a.createElement("span",{className:"flavortext"},t.gsx$flavortext)),w.a.createElement("br",null),w.a.createElement("div",{className:"stats"},w.a.createElement("div",{className:"energy"},t.gsx$courage,w.a.createElement(R.d,{discipline:"courage"})),w.a.createElement("div",{className:"energy"},t.gsx$power,w.a.createElement(R.d,{discipline:"power"})),w.a.createElement("div",{className:"energy"},t.gsx$wisdom,w.a.createElement(R.d,{discipline:"wisdom"})),w.a.createElement("div",{className:"energy"},t.gsx$speed,w.a.createElement(R.d,{discipline:"speed"})),w.a.createElement("div",{className:"energy",style:{fontWeight:"bold"}},t.gsx$energy))):w.a.createElement("div",{className:"card creature"},w.a.createElement("img",{className:"fullcard",src:k.a.base_image+(t.gsx$image||k.a.card_back)}),w.a.createElement("div",{className:"right"},w.a.createElement(R.k,{name:t.gsx$name}),w.a.createElement("br",null),w.a.createElement("span",null,t.gsx$courage," ",w.a.createElement(R.d,{discipline:"courage"}))," ",w.a.createElement("span",null,t.gsx$power," ",w.a.createElement(R.d,{discipline:"power"}))," ",w.a.createElement("span",null,t.gsx$wisdom," ",w.a.createElement(R.d,{discipline:"wisdom"}))," ",w.a.createElement("span",null,t.gsx$speed," ",w.a.createElement(R.d,{discipline:"speed"}))," ",w.a.createElement("span",{style:{fontWeight:"bold"}},t.gsx$energy),w.a.createElement("br",null),w.a.createElement(R.a,{ability:t.gsx$ability,tribe:t.gsx$tribe}),t.gsx$brainwashed&&w.a.createElement(w.a.Fragment,null,w.a.createElement("div",{className:"text_brainwashed"},"Brainwashed"),w.a.createElement(R.a,{type:"brainwashed",tribe:t.gsx$tribe,ability:t.gsx$brainwashed})),w.a.createElement(R.q,{data:{unique:t.gsx$unique,loyal:t.gsx$loyal,legendary:t.gsx$legendary,tribe:t.gsx$tribe}}),t.gsx$types.includes("Chieftain")&&w.a.createElement("span",{className:"chieftain"},"(Minions use Brainwashed text. Minions may only play Generic Mugic.)",w.a.createElement("br",null)),t.gsx$flavortext&&w.a.createElement(w.a.Fragment,null,w.a.createElement("span",{className:"flavortext"},t.gsx$flavortext),w.a.createElement("br",null)),w.a.createElement("span",null,"Art By: ",t.gsx$artist)))}}]),a}(w.a.Component))||_)||_;function P(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var L=Object(N.a)((function(e,t,n){return t}))(D=Object(N.b)(D=function(e){h()(a,e);var t,n=(t=a,function(){var e,n=b()(t);if(P()){var a=b()(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return x()(this,e)});function a(){return o()(this,a),n.apply(this,arguments)}return m()(a,[{key:"render",value:function(){var e=this,t=this.props.card;return 0==this.props.ext?w.a.createElement("div",{className:"card location"},w.a.createElement("img",{className:"thumb",style:{float:"left",width:"100px",height:"98px"},src:k.a.base_image+(t.gsx$thumb||k.a.thumb_missing),onClick:function(){return e.props.setImage(t.gsx$image)}}),w.a.createElement("div",{className:"left"},w.a.createElement(R.k,{name:t.gsx$name}),w.a.createElement("br",null),w.a.createElement(R.m,{set:t.gsx$set,rarity:t.gsx$rarity}),w.a.createElement("br",null),w.a.createElement("span",null,w.a.createElement(R.i,null)," Location",t.gsx$types.length>0?" - "+t.gsx$types:null),w.a.createElement("br",null),w.a.createElement(R.g,{initiative:t.gsx$initiative})),w.a.createElement("div",{className:"right"},w.a.createElement(R.a,{ability:t.gsx$ability}),w.a.createElement(R.q,{data:{unique:t.gsx$unique,loyal:t.gsx$loyal,legendary:t.gsx$legendary}}),w.a.createElement("span",{className:"flavortext"},t.gsx$flavortext))):w.a.createElement("div",{className:"card location"},w.a.createElement("img",{className:"fullcard",src:k.a.base_image+(t.gsx$image||k.a.card_back)}),w.a.createElement("div",{className:"right"},w.a.createElement(R.k,{name:t.gsx$name}),w.a.createElement("br",null),w.a.createElement(R.a,{ability:t.gsx$ability}),w.a.createElement(R.q,{data:{unique:t.gsx$unique,loyal:t.gsx$loyal,legendary:t.gsx$legendary}}),t.gsx$flavortext&&w.a.createElement(w.a.Fragment,null,w.a.createElement("span",{className:"flavortext"},t.gsx$flavortext),w.a.createElement("br",null)),w.a.createElement("span",null,"Art By: ",t.gsx$artist)))}}]),a}(w.a.Component))||D)||D,M=n(1067),A=function(){function e(t,n,a){o()(this,e),this.pitch=void 0,this.octave=void 0,this.duration=void 0,this.velocity=void 0,this.duration=t,this.pitch=n.pitch,this.octave=n.octave,a&&(this.velocity=a)}return m()(e,[{key:"value",get:function(){return{velocity:this.velocity,pitch:this.pitch+this.octave.toString(),duration:this.duration+"/4n"}}}]),e}(),T=function(){function e(){o()(this,e),this.synth=void 0,this.part=void 0,this.synth=(new M.b).toDestination(),M.c.bpm.value=140}return m()(e,null,[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),e.instance}}]),m()(e,[{key:"play",value:function(e){var t=this;M.c.stop(),this.part.dispose();try{var n=U(e);this.part=new M.a((function(e,n){t.synth.triggerAttackRelease(n.pitch,n.duration,e,n.velocity)}),n.map((function(e){return e.value}))).start(),M.c.start()}catch(e){return void console.log(e)}}}]),e}();T.instance=void 0;var z,U=function(e){var t=[];return e.split(" ").forEach((function(e){var n=e.match(/(?:[1-8]{1})/);if(null===n)throw new Error("invalid_input");var a=parseInt(n[0]),r=e.split(/(?:[1-8]{1})/)[1];t.push(new A(a,H(r,t)))})),t},H=function(e,t){var n=function(){if(0===t.length)return 4;var n=t.length,a=Q(e),r=Q(t[n-1].pitch),i=J(r,a);return i<3?0===i?t[n-1].octave:r>5?a<3?t[n-1].octave+1:t[n-1].octave:r<3&&a>5?t[n-1].octave-1:t[n-1].octave:G(a,n,t)}();return{pitch:e,octave:n}},G=function e(t,n,a){if(n<2)return a[n-1].octave;var r=Q(a[n-1].pitch),i=Q(a[n-2].pitch);return i>r?r3.5?n-1:n>4.5?n-2:n>5.5?n-3:n>6.5?n-4:n},Q=function(e){var t;switch(e.charAt(0).toUpperCase()){case"A":t=1;break;case"B":t=2;break;case"C":t=3;break;case"D":t=4;break;case"E":t=5;break;case"F":t=6;break;case"G":t=7;break;default:t=3}return e.length>1&&("b"===e.charAt(1).toLowerCase()?t-=.5:"#"===e.charAt(1)&&(t+=.5)),t},W=T.getInstance(),Y=function(e){return w.a.createElement(w.a.Fragment,null,w.a.createElement("input",{type:"button",value:"Play",onClick:function(){W.play(e.notes)}}))},V=n(60);function K(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var X,Z=Object(N.a)((function(e,t,n){return t}))(z=Object(N.b)(z=function(e){h()(a,e);var t,n=(t=a,function(){var e,n=b()(t);if(K()){var a=b()(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return x()(this,e)});function a(){return o()(this,a),n.apply(this,arguments)}return m()(a,[{key:"render",value:function(){var e=this,t=this.props,n=t.card,a=(t.history,[]);if(0==n.gsx$cost)a.push(w.a.createElement(R.j,{tribe:n.gsx$tribe,key:0,amount:"0"}));else if("x"==n.gsx$cost.toLowerCase())a.push(w.a.createElement(R.j,{tribe:n.gsx$tribe,key:0,amount:"x"}));else if(n.gsx$cost>5)a.push(w.a.createElement(R.j,{tribe:n.gsx$tribe,key:0,amount:n.gsx$cost}));else for(var r=0;r=0&&(t.input.energy.min=l[0]),l[1]>=0&&(t.input.energy.max=l[1])}if(n.hasOwnProperty("mcbp")){var s=n.mcbp.split(",");s[0]>=0&&(t.input.mcbp.min=s[0]),s[1]>=0&&(t.input.mcbp.max=s[1])}},t.reset=function(e){e.preventDefault(),e.stopPropagation(),t.cleanInput()},t.handleChange=function(e,n){var a=e.target,r="checkbox"===a.type?a.checked:a.value,i=a.name;n?t.input[n][i]=r:t.input[i]=r},t.search=function(e){e&&(e.preventDefault(),e.stopPropagation(),t.updateQuery());var n=function(e){var t,n,a,r,i=new he.a("filter.db").addCollection("filter"),l=i.addDynamicView("filter");l.applySimpleSort("gsx$name");var s,c=k.a.cards.attacks.chain(),o=k.a.cards.battlegear.chain(),u=k.a.cards.creatures.chain(),m=k.a.cards.locations.chain(),p=k.a.cards.mugic.chain();if(c=c.where((function(e){return""!=e.gsx$set})),o=o.where((function(e){return""!=e.gsx$set})),u=u.where((function(e){return""!=e.gsx$set})),m=m.where((function(e){return""!=e.gsx$set})),p=p.where((function(e){return""!=e.gsx$set})),e.name.length>0){var g=fe(e.name);c=c.find({$or:[{gsx$name:{$regex:g}},{gsx$tags:{$regex:g}}]}),o=o.find({$or:[{gsx$name:{$regex:g}},{gsx$tags:{$regex:g}}]}),u=u.find({$or:[{gsx$name:{$regex:g}},{gsx$tags:{$regex:g}}]}),m=m.find({$or:[{gsx$name:{$regex:g}},{gsx$tags:{$regex:g}}]}),p=p.find({$or:[{gsx$name:{$regex:g}},{gsx$tags:{$regex:g}}]})}if(e.text.length>0){var d=e.text.split(",").filter(Boolean).map((function(e){return{$regex:fe(e)}})),h=fe(e.text),f=(s=[{gsx$tags:{$or:d}},{gsx$ability:{$regex:h}}],e.flavor&&(s.push({gsx$flavortext:{$or:d}}),s.push({gsx$artist:{$or:d}})),s);c=c.find({$or:f}),o=o.find({$or:f}),u=u.find({$or:f.concat([{gsx$brainwashed:{$regex:h}}])}),m=m.find({$or:f}),p=p.find({$or:f})}if(e.subtypes.length>0){var x=e.subtypes.split(",").filter(Boolean).map((function(e){return{$regex:fe(e)}}));u=u.find({gsx$types:{$or:x}}),m=m.find({$or:[{gsx$initiative:{$or:x}},{gsx$types:{$or:x}}]}),c=c.limit(0),o=o.find({gsx$types:{$or:x}}),p=p.limit(0)}var y=[];for(var b in e.tribes)e.tribes[b]&&y.push({$regex:new RegExp(b,"i")});if(y.length>0&&(u=u.find({gsx$tribe:{$or:y}}),p=p.find({gsx$tribe:{$or:y}}),c=c.limit(0),o=o.limit(0),m=m.limit(0)),e.elements.none){if(e.elements.and){c=c.where((function(t){return e.elements.fire?""!=t.gsx$fire:""==t.gsx$fire})).where((function(t){return e.elements.air?""!=t.gsx$air:""==t.gsx$air})).where((function(t){return e.elements.earth?""!=t.gsx$earth:""==t.gsx$earth})).where((function(t){return e.elements.water?""!=t.gsx$water:""==t.gsx$water}));var $="";["fire","air","earth","water"].forEach((function(t){e.elements[t]&&($+=t+", ")})),""!==$&&(u=u.find({gsx$elements:{$regex:new RegExp("^"+$.substring(0,$.length-2)+"s*$","i")}}))}else c=c.where((function(e){return""==e.gsx$fire})).where((function(e){return""==e.gsx$air})).where((function(e){return""==e.gsx$earth})).where((function(e){return""==e.gsx$water})),u=u.where((function(e){return""==e.gsx$elements}));o=o.limit(0),m=m.limit(0),p=p.limit(0)}else{var v=[],E=[];for(var w in e.elements){var C;if("none"!==w&&"and"!==w)if(e.elements[w])v.push({$regex:new RegExp(w,"i")}),E.push(((C={})["gsx$"+w]={$gte:0},C))}v.length>0&&(e.elements.and?(u=u.find({gsx$elements:{$and:v}}),c=c.find({$and:E})):(u=u.find({gsx$elements:{$or:v}}),c=c.find({$or:E})),o=o.limit(0),m=m.limit(0),p=p.limit(0))}var N=e.disciplines.max&&e.disciplines.max?"$lte":"$gte";e.disciplines.courage>0&&(u=u.find({gsx$courage:(t={},t[N]=e.disciplines.courage,t)})),e.disciplines.power>0&&(u=u.find({gsx$power:(n={},n[N]=e.disciplines.power,n)})),e.disciplines.wisdom>0&&(u=u.find({gsx$wisdom:(a={},a[N]=e.disciplines.wisdom,a)})),e.disciplines.speed>0&&(u=u.find({gsx$speed:(r={},r[N]=e.disciplines.speed,r)})),e.energy.min>0&&(u=u.find({gsx$energy:{$gte:e.energy.min}})),e.energy.max>0&&e.energy.max>=e.energy.min&&(u=u.find({gsx$energy:{$lte:e.energy.max}})),(e.energy.min>0||e.energy.max>0||e.disciplines.courage>0||e.disciplines.power>0||e.disciplines.wisdom>0||e.disciplines.speed>0)&&(c=c.limit(0),o=o.limit(0),m=m.limit(0),p=p.limit(0)),""!==e.mcbp.min&&e.mcbp.min>=0&&(c=c.find({gsx$bp:{$gte:e.mcbp.min}}),u=u.find({gsx$mugicability:{$gte:e.mcbp.min}}),p=p.find({gsx$cost:{$gte:e.mcbp.min}})),""!==e.mcbp.max&&e.mcbp.max>=0&&e.mcbp.max>=e.mcbp.min&&(c=c.find({gsx$bp:{$lte:e.mcbp.max}}),u=u.find({gsx$mugicability:{$lte:e.mcbp.max}}),p=p.find({gsx$cost:{$lte:e.mcbp.max}})),(e.mcbp.max>0||e.mcbp.min>0)&&(o=o.limit(0),m=m.limit(0)),e.mull.unique&&(c=c.find({gsx$unique:{$gt:0}}),o=o.find({gsx$unique:{$gt:0}}),u=u.find({gsx$unique:{$gt:0}}),m=m.find({gsx$unique:{$gt:0}}),p=p.find({gsx$unique:{$gt:0}})),e.mull.loyal&&(c=c.limit(0),o=o.find({gsx$loyal:{$gt:0}}),u=u.find({gsx$loyal:{$gt:0}}),p=p.limit(0),m=m.limit(0)),e.mull.legendary&&(c=c.find({gsx$legendary:{$gt:0}}),o=o.find({gsx$legendary:{$gt:0}}),u=u.find({gsx$legendary:{$gt:0}}),m=m.find({gsx$legendary:{$gt:0}}),p=p.find({gsx$legendary:{$gt:0}})),e.mull.mixed&&(c=c.limit(0),u=u.find({gsx$loyal:{$lte:0}}),o=o.find({gsx$loyal:{$lte:0}}),p=p.limit(0),m=m.limit(0));var R=[];for(var q in e.sets)e.sets[q]&&R.push({$eq:q.toUpperCase()});if(0===R.length){var I=Object.keys(e.sets);for(var O in e.sets.proto||I.splice(I.indexOf("proto")),I)R.push({$eq:I[O].toUpperCase()})}R.length>0&&(c=c.find({gsx$set:{$or:R}}),o=o.find({gsx$set:{$or:R}}),u=u.find({gsx$set:{$or:R}}),m=m.find({gsx$set:{$or:R}}),p=p.find({gsx$set:{$or:R}}));var S=[];for(var _ in e.rarity)e.rarity[_]&&S.push({$eq:_.split(" ").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join(" ")});S.length>0&&(c=c.find({gsx$rarity:{$or:S}}),o=o.find({gsx$rarity:{$or:S}}),u=u.find({gsx$rarity:{$or:S}}),m=m.find({gsx$rarity:{$or:S}}),p=p.find({gsx$rarity:{$or:S}}));var j=!(e.types.attack|e.types.battlegear|e.types.creature|e.types.location|e.types.mugic);if(j||e.types.attack){var B=c.data();B.forEach((function(e){delete e.$loki})),i.insert(B)}if(j||e.types.battlegear){var D=o.data();D.forEach((function(e){delete e.$loki})),i.insert(D)}if(j||e.types.creature){var F=u.data();F.forEach((function(e){delete e.$loki})),i.insert(F)}if(j||e.types.location){var P=m.data();P.forEach((function(e){delete e.$loki})),i.insert(P)}if(j||e.types.mugic){var L=p.data();L.forEach((function(e){delete e.$loki})),i.insert(L)}return l.data()}(t.input);n.length>0?t.props.handleContent(n):t.props.handleContent([{text:"No Results Found"}])},t.search=t.search.bind(g()(t)),t.handleChange=t.handleChange.bind(g()(t)),t.reset=t.reset.bind(g()(t)),t.handleTriggerClick=t.handleTriggerClick.bind(g()(t)),t.props.handleContent([{text:"Loading..."}]),t.cleanInput(),t.parseQuery(),t.fetchCollapsed(),t}return m()(a,[{key:"updateQuery",value:(t=me()(oe.a.mark((function e(){var t,n,a=this;return oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t="",n=function(e){var t="";return Object.keys(a.input[e]).forEach((function(n){1==a.input[e][n]&&(t+=n+",")})),t.length>0?e+"="+t.replace(/\,$/,"&"):""},this.list.forEach((function(e){return t+=n(e)})),this.input.name&&(t+="name="+encodeURIComponent(this.input.name)+"&"),this.input.text&&(t+="text="+encodeURIComponent(this.input.text)+"&"),this.input.subtypes&&(t+="subtypes="+encodeURIComponent(this.input.subtypes)+"&"),this.input.disciplines.courage>0&&(t+="courage="+this.input.disciplines.courage+"&"),this.input.disciplines.power>0&&(t+="power="+this.input.disciplines.power+"&"),this.input.disciplines.wisdom>0&&(t+="wisdom="+this.input.disciplines.wisdom+"&"),this.input.disciplines.speed>0&&(t+="speed="+this.input.disciplines.speed+"&"),this.input.disciplines.max&&(t+="disc_max=true&"),""==this.input.energy.min&&""==this.input.energy.max||(t+="energy=",""!=this.input.energy.min&&this.input.energy.min>=0&&(t+=this.input.energy.min),t+=",",""!=this.input.energy.max&&this.input.energy.max>=0&&(t+=this.input.energy.max),t+="&"),""==this.input.mcbp.min&&""==this.input.mcbp.max||(t+="mcbp=",""!=this.input.mcbp.min&&this.input.mcbp.min>=0&&(t+=this.input.mcbp.min),t+=",",""!=this.input.mcbp.max&&this.input.mcbp.max>=0&&(t+=this.input.mcbp.max),t+="&"),t=t.replace(/\&$/,""),this.props.history.push("/collection/?"+t);case 15:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"render",value:function(){var e=this;if(0==this.loaded)return k.a.LoadDB([{cards:"attacks"},{cards:"battlegear"},{cards:"creatures"},{cards:"locations"},{cards:"mugic"}]).then((function(){e.loaded=!0,e.search()})),w.a.createElement(R.h,null);var t=function(t,n,a){var r=[];return Object.keys(e.input[t]).forEach((function(i,l){r.push(w.a.createElement("label",{style:{display:n},key:l},w.a.createElement("input",{type:"checkbox",name:i,checked:e.input[t][i],onChange:function(n){return e.handleChange(n,t)}}),a(i)))})),r},n=t("sets","block",(function(e){return k.a.sets[e.toUpperCase()]})),a=t("types","block",(function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),r=t("rarity","block",(function(e){return e.split(" ").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join(" ")})),i=t("tribes","inline",(function(e){return w.a.createElement("span",null,w.a.createElement("img",{className:"icon16",src:"/src/img/icons/tribes/"+e+".png"}))})),l=t("elements","inline",(function(e){return w.a.createElement("span",null,w.a.createElement("img",{className:"icon20",src:"/src/img/icons/elements/"+e+".png"})," ")})).slice(0,-2),s=[];return Object.keys(this.input.disciplines).forEach((function(t,n){4!=n&&s.push(w.a.createElement("label",{key:n,className:"disciplines"},w.a.createElement("input",{type:"text",name:t,value:e.input.disciplines[t],onChange:function(t){return e.handleChange(t,"disciplines")}}),w.a.createElement("img",{className:"icon20",style:{verticalAlign:"middle",padding:"0px 2px"},src:"/src/img/icons/disciplines/"+t+".png"})))})),w.a.createElement("div",{className:"SearchForm"},w.a.createElement("form",{onSubmit:this.search},w.a.createElement("div",{className:"centeredButtons"},w.a.createElement("input",{id:"search",type:"submit",value:"Search"}),w.a.createElement("input",{id:"search",type:"button",value:"Reset",onClick:this.reset})),w.a.createElement("div",{className:"text-entry"},w.a.createElement("input",{type:"text",name:"name",placeholder:"Card Name",value:this.input.name,onChange:this.handleChange})),w.a.createElement("div",{className:"text-entry"},w.a.createElement("input",{type:"text",name:"text",placeholder:"Card Text",value:this.input.text,onChange:this.handleChange})),w.a.createElement("div",{className:"text-entry"},w.a.createElement("input",{type:"text",name:"subtypes",placeholder:"Subtypes | Initiative",value:this.input.subtypes,onChange:this.handleChange})),w.a.createElement("div",{className:"centeredCheckBox"},w.a.createElement("label",{className:"mull"},w.a.createElement("input",{type:"checkbox",name:"flavor",value:!this.input.flavor,onChange:function(t){e.input.flavor=!t.target.checked}}),"Ignore Flavortext & Artist")),w.a.createElement("br",null),w.a.createElement("div",{className:"centeredCheckBox centeredSpacing"},w.a.createElement("label",{className:"mull"},w.a.createElement("input",{type:"checkbox",name:"unique",checked:this.input.mull.unique,onChange:function(t){return e.handleChange(t,"mull")}}),"Unique"),w.a.createElement("label",{className:"mull"},w.a.createElement("input",{type:"checkbox",name:"loyal",checked:this.input.mull.loyal,onChange:function(t){return e.handleChange(t,"mull")}}),"Loyal"),w.a.createElement("label",{className:"mull"},w.a.createElement("input",{type:"checkbox",name:"legendary",checked:this.input.mull.legendary,onChange:function(t){return e.handleChange(t,"mull")}}),"Legendary")),w.a.createElement("div",{className:"centeredCheckBox"},w.a.createElement("label",{className:"mull"},w.a.createElement("input",{type:"checkbox",name:"mixed",checked:this.input.mull.mixed,onChange:function(t){return e.handleChange(t,"mull")}}),"Non-Loyal")),w.a.createElement("hr",null),w.a.createElement("div",{className:"tribes"},i),w.a.createElement("hr",null),w.a.createElement("div",{className:"tribes"},l,w.a.createElement("label",{className:"none"},w.a.createElement("input",{type:"checkbox",name:"none",checked:this.input.elements.none,onChange:function(t){return e.handleChange(t,"elements")}}),w.a.createElement("span",null,"None"))),w.a.createElement("div",{className:"centeredButtons"},w.a.createElement("input",{type:"button",value:this.input.elements.none?"none":"or",className:"and",disabled:!this.input.elements.and,onClick:function(t){e.input.elements.and=!1}}),w.a.createElement("input",{type:"button",value:this.input.elements.none?"only":"and",className:"and",disabled:this.input.elements.and,onClick:function(t){e.input.elements.and=!0}})),w.a.createElement("hr",null),w.a.createElement(_e,{type:"disciplines",title:"Disciplines",collapsed:this.collapsed,onClick:this.handleTriggerClick},w.a.createElement("div",{className:"disciplines"},s,w.a.createElement("label",null,"Max",w.a.createElement("input",{type:"checkbox",name:"max",style:{display:"inline",margin:"0px"},checked:this.input.disciplines.max,onChange:function(t){return e.handleChange(t,"disciplines")}})))),w.a.createElement(_e,{type:"energy",title:"Energy",collapsed:this.collapsed,onClick:this.handleTriggerClick},w.a.createElement("div",{className:"minMax"},w.a.createElement("label",{className:"mcbp"},"Min ",w.a.createElement("input",{type:"text",name:"min",value:this.input.energy.min,onChange:function(t){return e.handleChange(t,"energy")}})),w.a.createElement("label",{className:"mcbp"},"Max ",w.a.createElement("input",{type:"text",name:"max",value:this.input.energy.max,onChange:function(t){return e.handleChange(t,"energy")}})))),w.a.createElement(_e,{type:"bpmc",title:"Build Points\nMugic Counters/Cost",collapsed:this.collapsed,onClick:this.handleTriggerClick},w.a.createElement("div",{className:"minMax"},w.a.createElement("label",{className:"mcbp"},"Min ",w.a.createElement("input",{type:"text",name:"min",value:this.input.mcbp.min,onChange:function(t){return e.handleChange(t,"mcbp")}})),w.a.createElement("label",{className:"mcbp"},"Max ",w.a.createElement("input",{type:"text",name:"max",value:this.input.mcbp.max,onChange:function(t){return e.handleChange(t,"mcbp")}})))),w.a.createElement(_e,{type:"types",title:"Card Type",collapsed:this.collapsed,onClick:this.handleTriggerClick},w.a.createElement("div",{className:"centeredCheckBox"},a)),w.a.createElement(_e,{type:"rarity",title:"Rarity",collapsed:this.collapsed,onClick:this.handleTriggerClick},w.a.createElement("div",{className:"centeredCheckBox"},r)),w.a.createElement(_e,{type:"sets",title:"Sets",collapsed:this.collapsed,onClick:this.handleTriggerClick},w.a.createElement("div",{className:"setBox"},w.a.createElement("div",{className:"centeredCheckBox",id:"sets"},n))),w.a.createElement("div",{className:"centeredButtons"},w.a.createElement("input",{id:"search",type:"submit",value:"Search"}),w.a.createElement("input",{id:"search",type:"button",value:"Reset",onClick:this.reset}))))}}]),a}(w.a.Component),re=v()(ae.prototype,"loaded",[C.m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ie=v()(ae.prototype,"input",[C.m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),le=v()(ae.prototype,"collapsed",[C.m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ne=ae))||ne)||ne,_e=function(e){h()(n,e);var t=xe(n);function n(e){var a;o()(this,n),(a=t.call(this,e)).open=!1,a.trigger="";var r=e.collapsed,i=e.type;return a.open=r[i],a.trigger=e.title,a}return m()(n,[{key:"render",value:function(){var e=this.props,t=e.type,n=e.children,a=e.onClick;return w.a.createElement(ge.a,{trigger:this.trigger,open:this.open,onOpen:function(){return a(t)},onClose:function(){return a(t)}},n)}}]),n}(w.a.Component);n(1071);function je(e){return function(){var t,n=b()(e);if(Be()){var a=b()(this).constructor;t=Reflect.construct(n,arguments,a)}else t=n.apply(this,arguments);return x()(this,t)}}function Be(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var De=Object(C.m)({style:{},get fixed(){return this.style},get isFixed(){return 0!==Object.entries(this.style).length},setFixed:function(e){if(window.matchMedia("(min-width: 975px)").matches){var t=document.getElementById("player").getBoundingClientRect().left+4,n=document.querySelector(".collection > .left").getBoundingClientRect().width+2;this.style={position:"fixed",top:0,left:"".concat(t,"px"),overflowY:"auto",height:"".concat(e,"px"),width:"".concat(n,"px")}}},removeFixed:function(){this.style={}}},{setFixed:C.f,removeFixed:C.f},{deep:!1}),Fe=Object(N.a)((function(e,t,n){return t}))(Ee=Object(N.b)((we=function(e){h()(n,e);var t=je(n);function n(){var e;o()(this,n),e=t.call(this),s()(e,"loaded",ke,g()(e)),s()(e,"n",Ce,g()(e)),s()(e,"p",Ne,g()(e)),s()(e,"ext",Re,g()(e)),s()(e,"content",qe,g()(e)),s()(e,"card_img",Ie,g()(e)),s()(e,"fixedStyles",Oe,g()(e)),e.handleScroll=function(e){if(e.preventDefault(),window.pageYOffset>=235){var t=document.documentElement,n="scrollHeight",a="clientHeight",r=document.getElementById("side-menu"),i=document.querySelector(".collection > .right"),l=t[n]-window.innerHeight-t.scrollTop;if(l<=90){var s=t[a]-(90-l);De.setFixed(s)}else(r[n]>t[a]||r[a]!==t[a])&&De.setFixed(window.innerHeight);!function(e){if(i[a]1?w.a.createElement("button",{id:"buttons",onClick:function(){e.p--,window.scrollTo(0,0)}},"prev"):w.a.createElement("button",{id:"buttons",disabled:!0},"prev")," ",e.p0?" - "+t.gsx$types:null)),w.a.createElement("div",{className:"right"},w.a.createElement(R.a,{ability:t.gsx$ability}),w.a.createElement(R.q,{data:{unique:t.gsx$unique,loyal:t.gsx$loyal,legendary:t.gsx$legendary}}),w.a.createElement("span",{className:"flavortext"},t.gsx$flavortext))):w.a.createElement("div",{className:"card battlegear"},w.a.createElement("img",{className:"fullcard",src:k.a.base_image+(t.gsx$image||k.a.card_back)}),w.a.createElement("div",{className:"right"},w.a.createElement(R.k,{name:t.gsx$name}),w.a.createElement("br",null),w.a.createElement(R.a,{ability:t.gsx$ability}),w.a.createElement(R.q,{data:{unique:t.gsx$unique,loyal:t.gsx$loyal,legendary:t.gsx$legendary}}),t.gsx$flavortext&&w.a.createElement(w.a.Fragment,null,w.a.createElement("span",{className:"flavortext"},t.gsx$flavortext),w.a.createElement("br",null)),w.a.createElement("span",null,"Art By: ",t.gsx$artist)))}}]),a}(w.a.Component))||O)||O;function B(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var D,F=Object(N.a)((function(e,t,n){return t}))(_=Object(N.b)(_=function(e){h()(a,e);var t,n=(t=a,function(){var e,n=b()(t);if(B()){var a=b()(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return x()(this,e)});function a(){return o()(this,a),n.apply(this,arguments)}return m()(a,[{key:"render",value:function(){for(var e=this,t=this.props.card,n=[],a=0;a=0})," ",w.a.createElement(R.f,{element:"air",value:t.gsx$elements.toLowerCase().indexOf("air")>=0})," ",w.a.createElement(R.f,{element:"earth",value:t.gsx$elements.toLowerCase().indexOf("earth")>=0})," ",w.a.createElement(R.f,{element:"water",value:t.gsx$elements.toLowerCase().indexOf("water")>=0})),w.a.createElement("span",null,n)),w.a.createElement("br",null),w.a.createElement("div",{className:"right"},w.a.createElement(R.a,{ability:t.gsx$ability,tribe:t.gsx$tribe}),t.gsx$brainwashed&&w.a.createElement(w.a.Fragment,null,w.a.createElement("div",{className:"text_brainwashed"},"Brainwashed"),w.a.createElement(R.a,{type:"brainwashed",tribe:t.gsx$tribe,ability:t.gsx$brainwashed})),w.a.createElement(R.q,{data:{unique:t.gsx$unique,loyal:t.gsx$loyal,legendary:t.gsx$legendary,tribe:t.gsx$tribe}}),t.gsx$types.includes("Chieftain")&&w.a.createElement("span",{className:"chieftain"},"(Minions use Brainwashed text. Minions may only play Generic Mugic.)",w.a.createElement("br",null)),w.a.createElement("span",{className:"flavortext"},t.gsx$flavortext)),w.a.createElement("br",null),w.a.createElement("div",{className:"stats"},w.a.createElement("div",{className:"energy"},t.gsx$courage,w.a.createElement(R.d,{discipline:"courage"})),w.a.createElement("div",{className:"energy"},t.gsx$power,w.a.createElement(R.d,{discipline:"power"})),w.a.createElement("div",{className:"energy"},t.gsx$wisdom,w.a.createElement(R.d,{discipline:"wisdom"})),w.a.createElement("div",{className:"energy"},t.gsx$speed,w.a.createElement(R.d,{discipline:"speed"})),w.a.createElement("div",{className:"energy",style:{fontWeight:"bold"}},t.gsx$energy))):w.a.createElement("div",{className:"card creature"},w.a.createElement("img",{className:"fullcard",src:k.a.base_image+(t.gsx$image||k.a.card_back)}),w.a.createElement("div",{className:"right"},w.a.createElement(R.k,{name:t.gsx$name}),w.a.createElement("br",null),w.a.createElement("span",null,t.gsx$courage," ",w.a.createElement(R.d,{discipline:"courage"}))," ",w.a.createElement("span",null,t.gsx$power," ",w.a.createElement(R.d,{discipline:"power"}))," ",w.a.createElement("span",null,t.gsx$wisdom," ",w.a.createElement(R.d,{discipline:"wisdom"}))," ",w.a.createElement("span",null,t.gsx$speed," ",w.a.createElement(R.d,{discipline:"speed"}))," ",w.a.createElement("span",{style:{fontWeight:"bold"}},t.gsx$energy),w.a.createElement("br",null),w.a.createElement(R.a,{ability:t.gsx$ability,tribe:t.gsx$tribe}),t.gsx$brainwashed&&w.a.createElement(w.a.Fragment,null,w.a.createElement("div",{className:"text_brainwashed"},"Brainwashed"),w.a.createElement(R.a,{type:"brainwashed",tribe:t.gsx$tribe,ability:t.gsx$brainwashed})),w.a.createElement(R.q,{data:{unique:t.gsx$unique,loyal:t.gsx$loyal,legendary:t.gsx$legendary,tribe:t.gsx$tribe}}),t.gsx$types.includes("Chieftain")&&w.a.createElement("span",{className:"chieftain"},"(Minions use Brainwashed text. Minions may only play Generic Mugic.)",w.a.createElement("br",null)),t.gsx$flavortext&&w.a.createElement(w.a.Fragment,null,w.a.createElement("span",{className:"flavortext"},t.gsx$flavortext),w.a.createElement("br",null)),w.a.createElement("span",null,"Art By: ",t.gsx$artist)))}}]),a}(w.a.Component))||_)||_;function P(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var L=Object(N.a)((function(e,t,n){return t}))(D=Object(N.b)(D=function(e){h()(a,e);var t,n=(t=a,function(){var e,n=b()(t);if(P()){var a=b()(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return x()(this,e)});function a(){return o()(this,a),n.apply(this,arguments)}return m()(a,[{key:"render",value:function(){var e=this,t=this.props.card;return 0==this.props.ext?w.a.createElement("div",{className:"card location"},w.a.createElement("img",{className:"thumb",style:{float:"left",width:"100px",height:"98px"},src:k.a.base_image+(t.gsx$thumb||k.a.thumb_missing),onClick:function(){return e.props.setImage(t.gsx$image)}}),w.a.createElement("div",{className:"left"},w.a.createElement(R.k,{name:t.gsx$name}),w.a.createElement("br",null),w.a.createElement(R.m,{set:t.gsx$set,rarity:t.gsx$rarity}),w.a.createElement("br",null),w.a.createElement("span",null,w.a.createElement(R.i,null)," Location",t.gsx$types.length>0?" - "+t.gsx$types:null),w.a.createElement("br",null),w.a.createElement(R.g,{initiative:t.gsx$initiative})),w.a.createElement("div",{className:"right"},w.a.createElement(R.a,{ability:t.gsx$ability}),w.a.createElement(R.q,{data:{unique:t.gsx$unique,loyal:t.gsx$loyal,legendary:t.gsx$legendary}}),w.a.createElement("span",{className:"flavortext"},t.gsx$flavortext))):w.a.createElement("div",{className:"card location"},w.a.createElement("img",{className:"fullcard",src:k.a.base_image+(t.gsx$image||k.a.card_back)}),w.a.createElement("div",{className:"right"},w.a.createElement(R.k,{name:t.gsx$name}),w.a.createElement("br",null),w.a.createElement(R.a,{ability:t.gsx$ability}),w.a.createElement(R.q,{data:{unique:t.gsx$unique,loyal:t.gsx$loyal,legendary:t.gsx$legendary}}),t.gsx$flavortext&&w.a.createElement(w.a.Fragment,null,w.a.createElement("span",{className:"flavortext"},t.gsx$flavortext),w.a.createElement("br",null)),w.a.createElement("span",null,"Art By: ",t.gsx$artist)))}}]),a}(w.a.Component))||D)||D,M=n(1067),A=function(){function e(t,n,a,r){o()(this,e),this.pitch=void 0,this.octave=void 0,this.time=void 0,this.duration=void 0,this.velocity=void 0,this.duration=t,this.time=n,this.pitch=a.pitch,this.octave=a.octave,r&&(this.velocity=r)}return m()(e,[{key:"value",get:function(){return{time:Object(M.c)(this.time).quantize("4n")/4,pitch:this.pitch+this.octave.toString(),duration:Object(M.c)(this.duration).quantize("4n")/4,velocity:this.velocity}}}]),e}(),z=function(){function e(){o()(this,e),this.synth=void 0,this.part=void 0;this.synth=new M.b({frequency:440,oscillator:{type:"triangle"},envelope:{attack:.4,decay:.1,release:1,sustain:.3,attackCurve:"cosine",releaseCurve:"exponential",decayCurve:"exponential"}}).toDestination(),M.d.bpm.value=140}return m()(e,null,[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),e.instance}}]),m()(e,[{key:"play",value:function(e){var t=this;M.d.stop(),this.part&&this.part.dispose();try{var n=U(e);console.log(n.map((function(e){return e.value.pitch}))),this.part=new M.a((function(e,n){console.log(n),t.synth.triggerAttackRelease(n.pitch,n.duration,e,n.velocity)}),n.map((function(e){return e.value}))).start(),M.d.start()}catch(e){return void console.log(e)}}}]),e}();z.instance=void 0;var T,U=function(e){var t=[],n=0;return e.split(" ").forEach((function(e){var a=e.match(/(?:[1-8]{1})/);if(null===a)throw new Error("invalid_input");var r=parseInt(a[0]),i=e.split(/(?:[1-8]{1})/)[1];t.push(new A(r,n,H(i,t))),n+=r})),t},H=function(e,t){var n=function(){if(0===t.length)return 4;var n=t.length,a=Q(e),r=Q(t[n-1].pitch),i=J(r,a);return i<3?0===i?t[n-1].octave:r>5?a<3?t[n-1].octave+1:t[n-1].octave:r<3&&a>5?t[n-1].octave-1:t[n-1].octave:G(a,n,t)}();return{pitch:e,octave:n}},G=function e(t,n,a){if(n<2)return a[n-1].octave;var r=Q(a[n-1].pitch),i=Q(a[n-2].pitch);return i>r?r3.5?n-1:n>4.5?n-2:n>5.5?n-3:n>6.5?n-4:n},Q=function(e){var t;switch(e.charAt(0).toUpperCase()){case"A":t=1;break;case"B":t=2;break;case"C":t=3;break;case"D":t=4;break;case"E":t=5;break;case"F":t=6;break;case"G":t=7;break;default:t=3}return e.length>1&&("b"===e.charAt(1).toLowerCase()?t-=.5:"#"===e.charAt(1)&&(t+=.5)),t},W=z.getInstance(),Y=function(e){return w.a.createElement(w.a.Fragment,null,w.a.createElement("input",{type:"button",value:"Play",onClick:function(){W.play(e.notes)}}))},V=n(60);function K(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var X,Z=Object(N.a)((function(e,t,n){return t}))(T=Object(N.b)(T=function(e){h()(a,e);var t,n=(t=a,function(){var e,n=b()(t);if(K()){var a=b()(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return x()(this,e)});function a(){return o()(this,a),n.apply(this,arguments)}return m()(a,[{key:"render",value:function(){var e=this,t=this.props,n=t.card,a=(t.history,[]);if(0==n.gsx$cost)a.push(w.a.createElement(R.j,{tribe:n.gsx$tribe,key:0,amount:"0"}));else if("x"==n.gsx$cost.toLowerCase())a.push(w.a.createElement(R.j,{tribe:n.gsx$tribe,key:0,amount:"x"}));else if(n.gsx$cost>5)a.push(w.a.createElement(R.j,{tribe:n.gsx$tribe,key:0,amount:n.gsx$cost}));else for(var r=0;r=0&&(t.input.energy.min=l[0]),l[1]>=0&&(t.input.energy.max=l[1])}if(n.hasOwnProperty("mcbp")){var s=n.mcbp.split(",");s[0]>=0&&(t.input.mcbp.min=s[0]),s[1]>=0&&(t.input.mcbp.max=s[1])}},t.reset=function(e){e.preventDefault(),e.stopPropagation(),t.cleanInput()},t.handleChange=function(e,n){var a=e.target,r="checkbox"===a.type?a.checked:a.value,i=a.name;n?t.input[n][i]=r:t.input[i]=r},t.search=function(e){e&&(e.preventDefault(),e.stopPropagation(),t.updateQuery());var n=function(e){var t,n,a,r,i=new he.a("filter.db").addCollection("filter"),l=i.addDynamicView("filter");l.applySimpleSort("gsx$name");var s,c=k.a.cards.attacks.chain(),o=k.a.cards.battlegear.chain(),u=k.a.cards.creatures.chain(),m=k.a.cards.locations.chain(),p=k.a.cards.mugic.chain();if(c=c.where((function(e){return""!=e.gsx$set})),o=o.where((function(e){return""!=e.gsx$set})),u=u.where((function(e){return""!=e.gsx$set})),m=m.where((function(e){return""!=e.gsx$set})),p=p.where((function(e){return""!=e.gsx$set})),e.name.length>0){var g=fe(e.name);c=c.find({$or:[{gsx$name:{$regex:g}},{gsx$tags:{$regex:g}}]}),o=o.find({$or:[{gsx$name:{$regex:g}},{gsx$tags:{$regex:g}}]}),u=u.find({$or:[{gsx$name:{$regex:g}},{gsx$tags:{$regex:g}}]}),m=m.find({$or:[{gsx$name:{$regex:g}},{gsx$tags:{$regex:g}}]}),p=p.find({$or:[{gsx$name:{$regex:g}},{gsx$tags:{$regex:g}}]})}if(e.text.length>0){var d=e.text.split(",").filter(Boolean).map((function(e){return{$regex:fe(e)}})),h=fe(e.text),f=(s=[{gsx$tags:{$or:d}},{gsx$ability:{$regex:h}}],e.flavor&&(s.push({gsx$flavortext:{$or:d}}),s.push({gsx$artist:{$or:d}})),s);c=c.find({$or:f}),o=o.find({$or:f}),u=u.find({$or:f.concat([{gsx$brainwashed:{$regex:h}}])}),m=m.find({$or:f}),p=p.find({$or:f})}if(e.subtypes.length>0){var x=e.subtypes.split(",").filter(Boolean).map((function(e){return{$regex:fe(e)}}));u=u.find({gsx$types:{$or:x}}),m=m.find({$or:[{gsx$initiative:{$or:x}},{gsx$types:{$or:x}}]}),c=c.limit(0),o=o.find({gsx$types:{$or:x}}),p=p.limit(0)}var y=[];for(var b in e.tribes)e.tribes[b]&&y.push({$regex:new RegExp(b,"i")});if(y.length>0&&(u=u.find({gsx$tribe:{$or:y}}),p=p.find({gsx$tribe:{$or:y}}),c=c.limit(0),o=o.limit(0),m=m.limit(0)),e.elements.none){if(e.elements.and){c=c.where((function(t){return e.elements.fire?""!=t.gsx$fire:""==t.gsx$fire})).where((function(t){return e.elements.air?""!=t.gsx$air:""==t.gsx$air})).where((function(t){return e.elements.earth?""!=t.gsx$earth:""==t.gsx$earth})).where((function(t){return e.elements.water?""!=t.gsx$water:""==t.gsx$water}));var v="";["fire","air","earth","water"].forEach((function(t){e.elements[t]&&(v+=t+", ")})),""!==v&&(u=u.find({gsx$elements:{$regex:new RegExp("^"+v.substring(0,v.length-2)+"s*$","i")}}))}else c=c.where((function(e){return""==e.gsx$fire})).where((function(e){return""==e.gsx$air})).where((function(e){return""==e.gsx$earth})).where((function(e){return""==e.gsx$water})),u=u.where((function(e){return""==e.gsx$elements}));o=o.limit(0),m=m.limit(0),p=p.limit(0)}else{var $=[],E=[];for(var w in e.elements){var C;if("none"!==w&&"and"!==w)if(e.elements[w])$.push({$regex:new RegExp(w,"i")}),E.push(((C={})["gsx$"+w]={$gte:0},C))}$.length>0&&(e.elements.and?(u=u.find({gsx$elements:{$and:$}}),c=c.find({$and:E})):(u=u.find({gsx$elements:{$or:$}}),c=c.find({$or:E})),o=o.limit(0),m=m.limit(0),p=p.limit(0))}var N=e.disciplines.max&&e.disciplines.max?"$lte":"$gte";e.disciplines.courage>0&&(u=u.find({gsx$courage:(t={},t[N]=e.disciplines.courage,t)})),e.disciplines.power>0&&(u=u.find({gsx$power:(n={},n[N]=e.disciplines.power,n)})),e.disciplines.wisdom>0&&(u=u.find({gsx$wisdom:(a={},a[N]=e.disciplines.wisdom,a)})),e.disciplines.speed>0&&(u=u.find({gsx$speed:(r={},r[N]=e.disciplines.speed,r)})),e.energy.min>0&&(u=u.find({gsx$energy:{$gte:e.energy.min}})),e.energy.max>0&&e.energy.max>=e.energy.min&&(u=u.find({gsx$energy:{$lte:e.energy.max}})),(e.energy.min>0||e.energy.max>0||e.disciplines.courage>0||e.disciplines.power>0||e.disciplines.wisdom>0||e.disciplines.speed>0)&&(c=c.limit(0),o=o.limit(0),m=m.limit(0),p=p.limit(0)),""!==e.mcbp.min&&e.mcbp.min>=0&&(c=c.find({gsx$bp:{$gte:e.mcbp.min}}),u=u.find({gsx$mugicability:{$gte:e.mcbp.min}}),p=p.find({gsx$cost:{$gte:e.mcbp.min}})),""!==e.mcbp.max&&e.mcbp.max>=0&&e.mcbp.max>=e.mcbp.min&&(c=c.find({gsx$bp:{$lte:e.mcbp.max}}),u=u.find({gsx$mugicability:{$lte:e.mcbp.max}}),p=p.find({gsx$cost:{$lte:e.mcbp.max}})),(e.mcbp.max>0||e.mcbp.min>0)&&(o=o.limit(0),m=m.limit(0)),e.mull.unique&&(c=c.find({gsx$unique:{$gt:0}}),o=o.find({gsx$unique:{$gt:0}}),u=u.find({gsx$unique:{$gt:0}}),m=m.find({gsx$unique:{$gt:0}}),p=p.find({gsx$unique:{$gt:0}})),e.mull.loyal&&(c=c.limit(0),o=o.find({gsx$loyal:{$gt:0}}),u=u.find({gsx$loyal:{$gt:0}}),p=p.limit(0),m=m.limit(0)),e.mull.legendary&&(c=c.find({gsx$legendary:{$gt:0}}),o=o.find({gsx$legendary:{$gt:0}}),u=u.find({gsx$legendary:{$gt:0}}),m=m.find({gsx$legendary:{$gt:0}}),p=p.find({gsx$legendary:{$gt:0}})),e.mull.mixed&&(c=c.limit(0),u=u.find({gsx$loyal:{$lte:0}}),o=o.find({gsx$loyal:{$lte:0}}),p=p.limit(0),m=m.limit(0));var R=[];for(var q in e.sets)e.sets[q]&&R.push({$eq:q.toUpperCase()});if(0===R.length){var O=Object.keys(e.sets);for(var I in e.sets.proto||O.splice(O.indexOf("proto")),O)R.push({$eq:O[I].toUpperCase()})}R.length>0&&(c=c.find({gsx$set:{$or:R}}),o=o.find({gsx$set:{$or:R}}),u=u.find({gsx$set:{$or:R}}),m=m.find({gsx$set:{$or:R}}),p=p.find({gsx$set:{$or:R}}));var S=[];for(var _ in e.rarity)e.rarity[_]&&S.push({$eq:_.split(" ").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join(" ")});S.length>0&&(c=c.find({gsx$rarity:{$or:S}}),o=o.find({gsx$rarity:{$or:S}}),u=u.find({gsx$rarity:{$or:S}}),m=m.find({gsx$rarity:{$or:S}}),p=p.find({gsx$rarity:{$or:S}}));var j=!(e.types.attack|e.types.battlegear|e.types.creature|e.types.location|e.types.mugic);if(j||e.types.attack){var B=c.data();B.forEach((function(e){delete e.$loki})),i.insert(B)}if(j||e.types.battlegear){var D=o.data();D.forEach((function(e){delete e.$loki})),i.insert(D)}if(j||e.types.creature){var F=u.data();F.forEach((function(e){delete e.$loki})),i.insert(F)}if(j||e.types.location){var P=m.data();P.forEach((function(e){delete e.$loki})),i.insert(P)}if(j||e.types.mugic){var L=p.data();L.forEach((function(e){delete e.$loki})),i.insert(L)}return l.data()}(t.input);n.length>0?t.props.handleContent(n):t.props.handleContent([{text:"No Results Found"}])},t.search=t.search.bind(g()(t)),t.handleChange=t.handleChange.bind(g()(t)),t.reset=t.reset.bind(g()(t)),t.handleTriggerClick=t.handleTriggerClick.bind(g()(t)),t.props.handleContent([{text:"Loading..."}]),t.cleanInput(),t.parseQuery(),t.fetchCollapsed(),t}return m()(a,[{key:"updateQuery",value:(t=me()(oe.a.mark((function e(){var t,n,a=this;return oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t="",n=function(e){var t="";return Object.keys(a.input[e]).forEach((function(n){1==a.input[e][n]&&(t+=n+",")})),t.length>0?e+"="+t.replace(/\,$/,"&"):""},this.list.forEach((function(e){return t+=n(e)})),this.input.name&&(t+="name="+encodeURIComponent(this.input.name)+"&"),this.input.text&&(t+="text="+encodeURIComponent(this.input.text)+"&"),this.input.subtypes&&(t+="subtypes="+encodeURIComponent(this.input.subtypes)+"&"),this.input.disciplines.courage>0&&(t+="courage="+this.input.disciplines.courage+"&"),this.input.disciplines.power>0&&(t+="power="+this.input.disciplines.power+"&"),this.input.disciplines.wisdom>0&&(t+="wisdom="+this.input.disciplines.wisdom+"&"),this.input.disciplines.speed>0&&(t+="speed="+this.input.disciplines.speed+"&"),this.input.disciplines.max&&(t+="disc_max=true&"),""==this.input.energy.min&&""==this.input.energy.max||(t+="energy=",""!=this.input.energy.min&&this.input.energy.min>=0&&(t+=this.input.energy.min),t+=",",""!=this.input.energy.max&&this.input.energy.max>=0&&(t+=this.input.energy.max),t+="&"),""==this.input.mcbp.min&&""==this.input.mcbp.max||(t+="mcbp=",""!=this.input.mcbp.min&&this.input.mcbp.min>=0&&(t+=this.input.mcbp.min),t+=",",""!=this.input.mcbp.max&&this.input.mcbp.max>=0&&(t+=this.input.mcbp.max),t+="&"),t=t.replace(/\&$/,""),this.props.history.push("/collection/?"+t);case 15:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"render",value:function(){var e=this;if(0==this.loaded)return k.a.LoadDB([{cards:"attacks"},{cards:"battlegear"},{cards:"creatures"},{cards:"locations"},{cards:"mugic"}]).then((function(){e.loaded=!0,e.search()})),w.a.createElement(R.h,null);var t=function(t,n,a){var r=[];return Object.keys(e.input[t]).forEach((function(i,l){r.push(w.a.createElement("label",{style:{display:n},key:l},w.a.createElement("input",{type:"checkbox",name:i,checked:e.input[t][i],onChange:function(n){return e.handleChange(n,t)}}),a(i)))})),r},n=t("sets","block",(function(e){return k.a.sets[e.toUpperCase()]})),a=t("types","block",(function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),r=t("rarity","block",(function(e){return e.split(" ").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join(" ")})),i=t("tribes","inline",(function(e){return w.a.createElement("span",null,w.a.createElement("img",{className:"icon16",src:"/src/img/icons/tribes/"+e+".png"}))})),l=t("elements","inline",(function(e){return w.a.createElement("span",null,w.a.createElement("img",{className:"icon20",src:"/src/img/icons/elements/"+e+".png"})," ")})).slice(0,-2),s=[];return Object.keys(this.input.disciplines).forEach((function(t,n){4!=n&&s.push(w.a.createElement("label",{key:n,className:"disciplines"},w.a.createElement("input",{type:"text",name:t,value:e.input.disciplines[t],onChange:function(t){return e.handleChange(t,"disciplines")}}),w.a.createElement("img",{className:"icon20",style:{verticalAlign:"middle",padding:"0px 2px"},src:"/src/img/icons/disciplines/"+t+".png"})))})),w.a.createElement("div",{className:"SearchForm"},w.a.createElement("form",{onSubmit:this.search},w.a.createElement("div",{className:"centeredButtons"},w.a.createElement("input",{id:"search",type:"submit",value:"Search"}),w.a.createElement("input",{id:"search",type:"button",value:"Reset",onClick:this.reset})),w.a.createElement("div",{className:"text-entry"},w.a.createElement("input",{type:"text",name:"name",placeholder:"Card Name",value:this.input.name,onChange:this.handleChange})),w.a.createElement("div",{className:"text-entry"},w.a.createElement("input",{type:"text",name:"text",placeholder:"Card Text",value:this.input.text,onChange:this.handleChange})),w.a.createElement("div",{className:"text-entry"},w.a.createElement("input",{type:"text",name:"subtypes",placeholder:"Subtypes | Initiative",value:this.input.subtypes,onChange:this.handleChange})),w.a.createElement("div",{className:"centeredCheckBox"},w.a.createElement("label",{className:"mull"},w.a.createElement("input",{type:"checkbox",name:"flavor",value:!this.input.flavor,onChange:function(t){e.input.flavor=!t.target.checked}}),"Ignore Flavortext & Artist")),w.a.createElement("br",null),w.a.createElement("div",{className:"centeredCheckBox centeredSpacing"},w.a.createElement("label",{className:"mull"},w.a.createElement("input",{type:"checkbox",name:"unique",checked:this.input.mull.unique,onChange:function(t){return e.handleChange(t,"mull")}}),"Unique"),w.a.createElement("label",{className:"mull"},w.a.createElement("input",{type:"checkbox",name:"loyal",checked:this.input.mull.loyal,onChange:function(t){return e.handleChange(t,"mull")}}),"Loyal"),w.a.createElement("label",{className:"mull"},w.a.createElement("input",{type:"checkbox",name:"legendary",checked:this.input.mull.legendary,onChange:function(t){return e.handleChange(t,"mull")}}),"Legendary")),w.a.createElement("div",{className:"centeredCheckBox"},w.a.createElement("label",{className:"mull"},w.a.createElement("input",{type:"checkbox",name:"mixed",checked:this.input.mull.mixed,onChange:function(t){return e.handleChange(t,"mull")}}),"Non-Loyal")),w.a.createElement("hr",null),w.a.createElement("div",{className:"tribes"},i),w.a.createElement("hr",null),w.a.createElement("div",{className:"tribes"},l,w.a.createElement("label",{className:"none"},w.a.createElement("input",{type:"checkbox",name:"none",checked:this.input.elements.none,onChange:function(t){return e.handleChange(t,"elements")}}),w.a.createElement("span",null,"None"))),w.a.createElement("div",{className:"centeredButtons"},w.a.createElement("input",{type:"button",value:this.input.elements.none?"none":"or",className:"and",disabled:!this.input.elements.and,onClick:function(t){e.input.elements.and=!1}}),w.a.createElement("input",{type:"button",value:this.input.elements.none?"only":"and",className:"and",disabled:this.input.elements.and,onClick:function(t){e.input.elements.and=!0}})),w.a.createElement("hr",null),w.a.createElement(_e,{type:"disciplines",title:"Disciplines",collapsed:this.collapsed,onClick:this.handleTriggerClick},w.a.createElement("div",{className:"disciplines"},s,w.a.createElement("label",null,"Max",w.a.createElement("input",{type:"checkbox",name:"max",style:{display:"inline",margin:"0px"},checked:this.input.disciplines.max,onChange:function(t){return e.handleChange(t,"disciplines")}})))),w.a.createElement(_e,{type:"energy",title:"Energy",collapsed:this.collapsed,onClick:this.handleTriggerClick},w.a.createElement("div",{className:"minMax"},w.a.createElement("label",{className:"mcbp"},"Min ",w.a.createElement("input",{type:"text",name:"min",value:this.input.energy.min,onChange:function(t){return e.handleChange(t,"energy")}})),w.a.createElement("label",{className:"mcbp"},"Max ",w.a.createElement("input",{type:"text",name:"max",value:this.input.energy.max,onChange:function(t){return e.handleChange(t,"energy")}})))),w.a.createElement(_e,{type:"bpmc",title:"Build Points\nMugic Counters/Cost",collapsed:this.collapsed,onClick:this.handleTriggerClick},w.a.createElement("div",{className:"minMax"},w.a.createElement("label",{className:"mcbp"},"Min ",w.a.createElement("input",{type:"text",name:"min",value:this.input.mcbp.min,onChange:function(t){return e.handleChange(t,"mcbp")}})),w.a.createElement("label",{className:"mcbp"},"Max ",w.a.createElement("input",{type:"text",name:"max",value:this.input.mcbp.max,onChange:function(t){return e.handleChange(t,"mcbp")}})))),w.a.createElement(_e,{type:"types",title:"Card Type",collapsed:this.collapsed,onClick:this.handleTriggerClick},w.a.createElement("div",{className:"centeredCheckBox"},a)),w.a.createElement(_e,{type:"rarity",title:"Rarity",collapsed:this.collapsed,onClick:this.handleTriggerClick},w.a.createElement("div",{className:"centeredCheckBox"},r)),w.a.createElement(_e,{type:"sets",title:"Sets",collapsed:this.collapsed,onClick:this.handleTriggerClick},w.a.createElement("div",{className:"setBox"},w.a.createElement("div",{className:"centeredCheckBox",id:"sets"},n))),w.a.createElement("div",{className:"centeredButtons"},w.a.createElement("input",{id:"search",type:"submit",value:"Search"}),w.a.createElement("input",{id:"search",type:"button",value:"Reset",onClick:this.reset}))))}}]),a}(w.a.Component),re=$()(ae.prototype,"loaded",[C.m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ie=$()(ae.prototype,"input",[C.m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),le=$()(ae.prototype,"collapsed",[C.m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ne=ae))||ne)||ne,_e=function(e){h()(n,e);var t=xe(n);function n(e){var a;o()(this,n),(a=t.call(this,e)).open=!1,a.trigger="";var r=e.collapsed,i=e.type;return a.open=r[i],a.trigger=e.title,a}return m()(n,[{key:"render",value:function(){var e=this.props,t=e.type,n=e.children,a=e.onClick;return w.a.createElement(ge.a,{trigger:this.trigger,open:this.open,onOpen:function(){return a(t)},onClose:function(){return a(t)}},n)}}]),n}(w.a.Component);n(1071);function je(e){return function(){var t,n=b()(e);if(Be()){var a=b()(this).constructor;t=Reflect.construct(n,arguments,a)}else t=n.apply(this,arguments);return x()(this,t)}}function Be(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var De=Object(C.m)({style:{},get fixed(){return this.style},get isFixed(){return 0!==Object.entries(this.style).length},setFixed:function(e){if(window.matchMedia("(min-width: 975px)").matches){var t=document.getElementById("player").getBoundingClientRect().left+4,n=document.querySelector(".collection > .left").getBoundingClientRect().width+2;this.style={position:"fixed",top:0,left:"".concat(t,"px"),overflowY:"auto",height:"".concat(e,"px"),width:"".concat(n,"px")}}},removeFixed:function(){this.style={}}},{setFixed:C.f,removeFixed:C.f},{deep:!1}),Fe=Object(N.a)((function(e,t,n){return t}))(Ee=Object(N.b)((we=function(e){h()(n,e);var t=je(n);function n(){var e;o()(this,n),e=t.call(this),s()(e,"loaded",ke,g()(e)),s()(e,"n",Ce,g()(e)),s()(e,"p",Ne,g()(e)),s()(e,"ext",Re,g()(e)),s()(e,"content",qe,g()(e)),s()(e,"card_img",Oe,g()(e)),s()(e,"fixedStyles",Ie,g()(e)),e.handleScroll=function(e){if(e.preventDefault(),window.pageYOffset>=235){var t=document.documentElement,n="scrollHeight",a="clientHeight",r=document.getElementById("side-menu"),i=document.querySelector(".collection > .right"),l=t[n]-window.innerHeight-t.scrollTop;if(l<=90){var s=t[a]-(90-l);De.setFixed(s)}else(r[n]>t[a]||r[a]!==t[a])&&De.setFixed(window.innerHeight);!function(e){if(i[a]1?w.a.createElement("button",{id:"buttons",onClick:function(){e.p--,window.scrollTo(0,0)}},"prev"):w.a.createElement("button",{id:"buttons",disabled:!0},"prev")," ",e.p=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function s(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function u(){for(var t=[],e=0;e2&&Y("box");var n=B(e);return new _t(t,G(n),n.name,!0,n.equals)},array:function(t,e){arguments.length>2&&Y("array");var n=B(e);return Oe(t,G(n),n.name)},map:function(t,e){arguments.length>2&&Y("map");var n=B(e);return new Pe(t,G(n),n.name)},set:function(t,e){arguments.length>2&&Y("set");var n=B(e);return new Ie(t,G(n),n.name)},object:function(t,e,n){"string"==typeof arguments[1]&&Y("object");var r=B(n);if(!1===r.proxy)return ee({},t,e,r);var o=ne(r),i=ee({},void 0,void 0,r),a=ye(i);return re(a,t,e,o),a},ref:$,shallow:W,deep:U,struct:H},Q=function(t,e,n){if("string"==typeof arguments[1]||"symbol"==typeof arguments[1])return U.apply(null,arguments);if(ue(t))return t;var r=m(t)?Q.object(t,e,n):Array.isArray(t)?Q.array(t,e):_(t)?Q.map(t,e):w(t)?Q.set(t,e):t;if(r!==t)return r;p(!1)};function Y(t){p("Expected one or two arguments to observable."+t+". Did you accidentally try to use observable."+t+" as decorator?")}Object.keys(K).forEach((function(t){return Q[t]=K[t]}));var X,J,Z=N(!1,(function(t,e,n,r,o){var a=n.get,s=n.set,u=o[0]||{};Fe(t).addComputedProp(t,e,i({get:a,set:s,context:t},u))}));Z({equals:A.structural});!function(t){t[t.NOT_TRACKING=-1]="NOT_TRACKING",t[t.UP_TO_DATE=0]="UP_TO_DATE",t[t.POSSIBLY_STALE=1]="POSSIBLY_STALE",t[t.STALE=2]="STALE"}(X||(X={})),function(t){t[t.NONE=0]="NONE",t[t.LOG=1]="LOG",t[t.BREAK=2]="BREAK"}(J||(J={}));var tt=function(t){this.cause=t};function et(t){return t instanceof tt}function nt(t){switch(t.dependenciesState){case X.UP_TO_DATE:return!1;case X.NOT_TRACKING:case X.STALE:return!0;case X.POSSIBLY_STALE:for(var e=ct(!0),n=st(),r=t.observing,o=r.length,i=0;i0;Et.computationDepth>0&&e&&p(!1),Et.allowStateChanges||!e&&"strict"!==Et.enforceActions||p(!1)}function ot(t,e,n){var r=ct(!0);ft(t),t.newObserving=new Array(t.observing.length+100),t.unboundDepsCount=0,t.runId=++Et.runId;var o,i=Et.trackingDerivation;if(Et.trackingDerivation=t,!0===Et.disableErrorBoundaries)o=e.call(n);else try{o=e.call(n)}catch(t){o=new tt(t)}return Et.trackingDerivation=i,function(t){for(var e=t.observing,n=t.observing=t.newObserving,r=X.UP_TO_DATE,o=0,i=t.unboundDepsCount,a=0;ar&&(r=s.dependenciesState)}n.length=o,t.newObserving=null,i=e.length;for(;i--;){0===(s=e[i]).diffValue&&jt(s,t),s.diffValue=0}for(;o--;){var s;1===(s=n[o]).diffValue&&(s.diffValue=0,At(s,t))}r!==X.UP_TO_DATE&&(t.dependenciesState=r,t.onBecomeStale())}(t),lt(r),o}function it(t){var e=t.observing;t.observing=[];for(var n=e.length;n--;)jt(e[n],t);t.dependenciesState=X.NOT_TRACKING}function at(t){var e=st();try{return t()}finally{ut(e)}}function st(){var t=Et.trackingDerivation;return Et.trackingDerivation=null,t}function ut(t){Et.trackingDerivation=t}function ct(t){var e=Et.allowStateReads;return Et.allowStateReads=t,e}function lt(t){Et.allowStateReads=t}function ft(t){if(t.dependenciesState!==X.UP_TO_DATE){t.dependenciesState=X.UP_TO_DATE;for(var e=t.observing,n=e.length;n--;)e[n].lowestObserverState=X.UP_TO_DATE}}var pt=0,ht=1,dt=Object.getOwnPropertyDescriptor((function(){}),"name");dt&&dt.configurable;function yt(t,e,n){var r=function(){return vt(t,e,n||this,arguments)};return r.isMobxAction=!0,r}function vt(t,e,n,r){var o=function(t,e,n){var r=0;var o=st();Dt();var i=gt(!0),a=ct(!0),s={prevDerivation:o,prevAllowStateChanges:i,prevAllowStateReads:a,notifySpy:!1,startTime:r,actionId:ht++,parentActionId:pt};return pt=s.actionId,s}();try{return e.apply(n,r)}catch(t){throw o.error=t,t}finally{!function(t){pt!==t.actionId&&p("invalid action stack. did you forget to finish an action?");pt=t.parentActionId,void 0!==t.error&&(Et.suppressReactionErrors=!0);bt(t.prevAllowStateChanges),lt(t.prevAllowStateReads),Mt(),ut(t.prevDerivation),t.notifySpy&&!1;Et.suppressReactionErrors=!1}(o)}}function mt(t,e){var n,r=gt(t);try{n=e()}finally{bt(r)}return n}function gt(t){var e=Et.allowStateChanges;return Et.allowStateChanges=t,e}function bt(t){Et.allowStateChanges=t}var _t=function(t){function e(e,n,r,o,i){void 0===r&&(r="ObservableValue@"+f()),void 0===o&&(o=!0),void 0===i&&(i=A.default);var a=t.call(this,r)||this;return a.enhancer=n,a.name=r,a.equals=i,a.hasUnreportedChange=!1,a.value=n(e,void 0,r),a}return function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(e,t),e.prototype.dehanceValue=function(t){return void 0!==this.dehancer?this.dehancer(t):t},e.prototype.set=function(t){this.value;if((t=this.prepareNewValue(t))!==Et.UNCHANGED){0,this.setNewValue(t)}},e.prototype.prepareNewValue=function(t){if(rt(this),ve(this)){var e=ge(this,{object:this,type:"update",newValue:t});if(!e)return Et.UNCHANGED;t=e.newValue}return t=this.enhancer(t,this.value,this.name),this.equals(this.value,t)?Et.UNCHANGED:t},e.prototype.setNewValue=function(t){var e=this.value;this.value=t,this.reportChanged(),be(this)&&we(this,{type:"update",object:this,newValue:t,oldValue:e})},e.prototype.get=function(){return this.reportObserved(),this.dehanceValue(this.value)},e.prototype.intercept=function(t){return me(this,t)},e.prototype.observe=function(t,e){return e&&t({object:this,type:"update",newValue:this.value,oldValue:void 0}),_e(this,t)},e.prototype.toJSON=function(){return this.get()},e.prototype.toString=function(){return this.name+"["+this.value+"]"},e.prototype.valueOf=function(){return S(this.get())},e.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},e}(T),wt=(b("ObservableValue",_t),function(){function t(t){this.dependenciesState=X.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isBeingObserved=!1,this.isPendingUnobservation=!1,this.observers=new Set,this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=X.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+f(),this.value=new tt(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=J.NONE,h(t.get,"missing option for computed: get"),this.derivation=t.get,this.name=t.name||"ComputedValue@"+f(),t.set&&(this.setter=yt(this.name+"-setter",t.set)),this.equals=t.equals||(t.compareStructural||t.struct?A.structural:A.default),this.scope=t.context,this.requiresReaction=!!t.requiresReaction,this.keepAlive=!!t.keepAlive}return t.prototype.onBecomeStale=function(){!function(t){if(t.lowestObserverState!==X.UP_TO_DATE)return;t.lowestObserverState=X.POSSIBLY_STALE,t.observers.forEach((function(e){e.dependenciesState===X.UP_TO_DATE&&(e.dependenciesState=X.POSSIBLY_STALE,e.isTracing!==J.NONE&&Rt(e,t),e.onBecomeStale())}))}(this)},t.prototype.onBecomeObserved=function(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach((function(t){return t()}))},t.prototype.onBecomeUnobserved=function(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach((function(t){return t()}))},t.prototype.get=function(){this.isComputing&&p("Cycle detected in computation "+this.name+": "+this.derivation),0!==Et.inBatch||0!==this.observers.size||this.keepAlive?(It(this),nt(this)&&this.trackAndCompute()&&function(t){if(t.lowestObserverState===X.STALE)return;t.lowestObserverState=X.STALE,t.observers.forEach((function(e){e.dependenciesState===X.POSSIBLY_STALE?e.dependenciesState=X.STALE:e.dependenciesState===X.UP_TO_DATE&&(t.lowestObserverState=X.UP_TO_DATE)}))}(this)):nt(this)&&(this.warnAboutUntrackedRead(),Dt(),this.value=this.computeValue(!1),Mt());var t=this.value;if(et(t))throw t.cause;return t},t.prototype.peek=function(){var t=this.computeValue(!1);if(et(t))throw t.cause;return t},t.prototype.set=function(t){if(this.setter){h(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,t)}finally{this.isRunningSetter=!1}}else h(!1,!1)},t.prototype.trackAndCompute=function(){var t=this.value,e=this.dependenciesState===X.NOT_TRACKING,n=this.computeValue(!0),r=e||et(t)||et(n)||!this.equals(t,n);return r&&(this.value=n),r},t.prototype.computeValue=function(t){var e;if(this.isComputing=!0,Et.computationDepth++,t)e=ot(this,this.derivation,this.scope);else if(!0===Et.disableErrorBoundaries)e=this.derivation.call(this.scope);else try{e=this.derivation.call(this.scope)}catch(t){e=new tt(t)}return Et.computationDepth--,this.isComputing=!1,e},t.prototype.suspend=function(){this.keepAlive||(it(this),this.value=void 0)},t.prototype.observe=function(t,e){var n=this,r=!0,o=void 0;return Qt((function(){var i=n.get();if(!r||e){var a=st();t({type:"update",object:n,newValue:i,oldValue:o}),ut(a)}r=!1,o=i}))},t.prototype.warnAboutUntrackedRead=function(){},t.prototype.toJSON=function(){return this.get()},t.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},t.prototype.valueOf=function(){return S(this.get())},t.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},t}()),xt=b("ComputedValue",wt),Ot=function(){this.version=5,this.UNCHANGED={},this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.allowStateReads=!0,this.enforceActions=!1,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.computedConfigurable=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1},St={};function kt(){return"undefined"!=typeof window?window:void 0!==r?r:"undefined"!=typeof self?self:St}var Tt=!0,Ct=!1,Et=function(){var t=kt();return t.__mobxInstanceCount>0&&!t.__mobxGlobals&&(Tt=!1),t.__mobxGlobals&&t.__mobxGlobals.version!==(new Ot).version&&(Tt=!1),Tt?t.__mobxGlobals?(t.__mobxInstanceCount+=1,t.__mobxGlobals.UNCHANGED||(t.__mobxGlobals.UNCHANGED={}),t.__mobxGlobals):(t.__mobxInstanceCount=1,t.__mobxGlobals=new Ot):(setTimeout((function(){Ct||p("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")}),1),new Ot)}();function At(t,e){t.observers.add(e),t.lowestObserverState>e.dependenciesState&&(t.lowestObserverState=e.dependenciesState)}function jt(t,e){t.observers.delete(e),0===t.observers.size&&Pt(t)}function Pt(t){!1===t.isPendingUnobservation&&(t.isPendingUnobservation=!0,Et.pendingUnobservations.push(t))}function Dt(){Et.inBatch++}function Mt(){if(0==--Et.inBatch){qt();for(var t=Et.pendingUnobservations,e=0;e0&&Pt(t),!1)}function Rt(t,e){if(console.log("[mobx.trace] '"+t.name+"' is invalidated due to a change in: '"+e.name+"'"),t.isTracing===J.BREAK){var n=[];!function t(e,n,r){if(n.length>=1e3)return void n.push("(and many more)");n.push(""+new Array(r).join("\t")+e.name),e.dependencies&&e.dependencies.forEach((function(e){return t(e,n,r+1)}))}(oe(t),n,1),new Function("debugger;\n/*\nTracing '"+t.name+"'\n\nYou are entering this break point because derivation '"+t.name+"' is being traced and '"+e.name+"' is now forcing it to update.\nJust follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update\nThe stackframe you are looking for is at least ~6-8 stack-frames up.\n\n"+(t instanceof wt?t.derivation.toString().replace(/[*]\//g,"/"):"")+"\n\nThe dependencies for this derivation are:\n\n"+n.join("\n")+"\n*/\n ")()}}var Nt=function(){function t(t,e,n,r){void 0===t&&(t="Reaction@"+f()),void 0===r&&(r=!1),this.name=t,this.onInvalidate=e,this.errorHandler=n,this.requiresObservable=r,this.observing=[],this.newObserving=[],this.dependenciesState=X.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+f(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=J.NONE}return t.prototype.onBecomeStale=function(){this.schedule()},t.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,Et.pendingReactions.push(this),qt())},t.prototype.isScheduled=function(){return this._isScheduled},t.prototype.runReaction=function(){if(!this.isDisposed){if(Dt(),this._isScheduled=!1,nt(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending}catch(t){this.reportExceptionInDerivation(t)}}Mt()}},t.prototype.track=function(t){if(!this.isDisposed){Dt();0,this._isRunning=!0;var e=ot(this,t,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&it(this),et(e)&&this.reportExceptionInDerivation(e.cause),Mt()}},t.prototype.reportExceptionInDerivation=function(t){var e=this;if(this.errorHandler)this.errorHandler(t,this);else{if(Et.disableErrorBoundaries)throw t;var n="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'";Et.suppressReactionErrors?console.warn("[mobx] (error in reaction '"+this.name+"' suppressed, fix error of causing action below)"):console.error(n,t),Et.globalReactionErrorHandlers.forEach((function(n){return n(t,e)}))}},t.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(Dt(),it(this),Mt()))},t.prototype.getDisposer=function(){var t=this.dispose.bind(this);return t[k]=this,t},t.prototype.toString=function(){return"Reaction["+this.name+"]"},t.prototype.trace=function(t){void 0===t&&(t=!1),function(){for(var t=[],e=0;e0||Et.isRunningReactions||Ft(Vt)}function Vt(){Et.isRunningReactions=!0;for(var t=Et.pendingReactions,e=0;t.length>0;){100==++e&&(console.error("Reaction doesn't converge to a stable state after 100 iterations. Probably there is a cycle in the reactive function: "+t[0]),t.splice(0));for(var n=t.splice(0),r=0,o=n.length;r",t):2===arguments.length&&"function"==typeof e?yt(t,e):1===arguments.length&&"string"==typeof t?Wt(t):!0!==r?Wt(e).apply(null,arguments):void g(t,e,yt(t.name||e,n.value,this))};function Gt(t,e){"string"==typeof t||t.name;return vt(0,"function"==typeof t?t:e,this,void 0)}function Kt(t,e,n){g(t,e,yt(e,n.bind(t)))}function Qt(t,e){void 0===e&&(e=l);var n,r=e&&e.name||t.name||"Autorun@"+f();if(!e.scheduler&&!e.delay)n=new Nt(r,(function(){this.track(a)}),e.onError,e.requiresObservable);else{var o=Xt(e),i=!1;n=new Nt(r,(function(){i||(i=!0,o((function(){i=!1,n.isDisposed||n.track(a)})))}),e.onError,e.requiresObservable)}function a(){t(n)}return n.schedule(),n.getDisposer()}Ht.bound=function(t,e,n,r){return!0===r?(Kt(t,e,n.value),null):n?{configurable:!0,enumerable:!1,get:function(){return Kt(this,e,n.value||n.initializer.call(this)),this[e]},set:Ut}:{enumerable:!1,configurable:!0,set:function(t){Kt(this,e,t)},get:function(){}}};var Yt=function(t){return t()};function Xt(t){return t.scheduler?t.scheduler:t.delay?function(e){return setTimeout(e,t.delay)}:Yt}function Jt(t,e,n){return Zt("onBecomeUnobserved",t,e,n)}function Zt(t,e,n,r){var o="function"==typeof r?Ue(e,n):Ue(e),i="function"==typeof r?r:n,a=t+"Listeners";return o[a]?o[a].add(i):o[a]=new Set([i]),"function"!=typeof o[t]?p(!1):function(){var t=o[a];t&&(t.delete(i),0===t.size&&delete o[a])}}function te(t){var e=t.enforceActions,n=t.computedRequiresReaction,r=t.computedConfigurable,o=t.disableErrorBoundaries,i=t.reactionScheduler,a=t.reactionRequiresObservable,s=t.observableRequiresReaction;if(!0===t.isolateGlobalState&&((Et.pendingReactions.length||Et.inBatch||Et.isRunningReactions)&&p("isolateGlobalState should be called before MobX is running any reactions"),Ct=!0,Tt&&(0==--kt().__mobxInstanceCount&&(kt().__mobxGlobals=void 0),Et=new Ot)),void 0!==e){var u=void 0;switch(e){case!0:case"observed":u=!0;break;case!1:case"never":u=!1;break;case"strict":case"always":u="strict";break;default:p("Invalid value for 'enforceActions': '"+e+"', expected 'never', 'always' or 'observed'")}Et.enforceActions=u,Et.allowStateChanges=!0!==u&&"strict"!==u}void 0!==n&&(Et.computedRequiresReaction=!!n),void 0!==a&&(Et.reactionRequiresObservable=!!a),void 0!==s&&(Et.observableRequiresReaction=!!s,Et.allowStateReads=!Et.observableRequiresReaction),void 0!==r&&(Et.computedConfigurable=!!r),void 0!==o&&(!0===o&&console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled."),Et.disableErrorBoundaries=!!o),i&&zt(i)}function ee(t,e,n,r){var o=ne(r=B(r));return R(t),Fe(t,r.name,o.enhancer),e&&re(t,e,n,o),t}function ne(t){return t.defaultDecorator||(!1===t.deep?$:U)}function re(t,e,n,r){var o,i;Dt();try{var s=x(e);try{for(var u=a(s),c=u.next();!c.done;c=u.next()){var l=c.value,f=Object.getOwnPropertyDescriptor(e,l);0;var p=(n&&l in n?n[l]:f.get?Z:r)(t,l,f,!0);p&&Object.defineProperty(t,l,p)}}catch(t){o={error:t}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(o)throw o.error}}}finally{Mt()}}function oe(t,e){return ie(Ue(t,e))}function ie(t){var e,n,r={name:t.name};return t.observing&&t.observing.length>0&&(r.dependencies=(e=t.observing,n=[],e.forEach((function(t){-1===n.indexOf(t)&&n.push(t)})),n).map(ie)),r}function ae(){this.message="FLOW_CANCELLED"}function se(t,e){return null!=t&&(void 0!==e?!!Be(t)&&t[k].values.has(e):Be(t)||!!t[k]||C(t)||Lt(t)||xt(t))}function ue(t){return 1!==arguments.length&&p(!1),se(t)}function ce(t,e,n,r){return"function"==typeof n?function(t,e,n,r){return We(t,e).observe(n,r)}(t,e,n,r):function(t,e,n){return We(t).observe(e,n)}(t,e,n)}ae.prototype=Object.create(Error.prototype);function le(t){switch(t.length){case 0:return Et.trackingDerivation;case 1:return Ue(t[0]);case 2:return Ue(t[0],t[1])}}function fe(t,e){void 0===e&&(e=void 0),Dt();try{return t.apply(e)}finally{Mt()}}function pe(t){return t[k]}function he(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t}var de={has:function(t,e){if(e===k||"constructor"===e||e===j)return!0;var n=pe(t);return he(e)?n.has(e):e in t},get:function(t,e){if(e===k||"constructor"===e||e===j)return t[e];var n=pe(t),r=n.values.get(e);if(r instanceof T){var o=r.get();return void 0===o&&n.has(e),o}return he(e)&&n.has(e),t[e]},set:function(t,e,n){return!!he(e)&&(function t(e,n,r){if(2!==arguments.length||Re(e))if(Be(e)){var o=e[k],i=o.values.get(n);i?o.write(n,r):o.addObservableProp(n,r,o.defaultEnhancer)}else if(De(e))e.set(n,r);else if(Re(e))e.add(n);else{if(!Ee(e))return p(!1);"number"!=typeof n&&(n=parseInt(n,10)),h(n>=0,"Not a valid index: '"+n+"'"),Dt(),n>=e.length&&(e.length=n+1),e[n]=r,Mt()}else{Dt();var a=n;try{for(var s in a)t(e,s,a[s])}finally{Mt()}}}(t,e,n),!0)},deleteProperty:function(t,e){return!!he(e)&&(pe(t).remove(e),!0)},ownKeys:function(t){return pe(t).keysAtom.reportObserved(),Reflect.ownKeys(t)},preventExtensions:function(t){return p("Dynamic observable objects cannot be frozen"),!1}};function ye(t){var e=new Proxy(t,de);return t[k].proxy=e,e}function ve(t){return void 0!==t.interceptors&&t.interceptors.length>0}function me(t,e){var n=t.interceptors||(t.interceptors=[]);return n.push(e),d((function(){var t=n.indexOf(e);-1!==t&&n.splice(t,1)}))}function ge(t,e){var n=st();try{for(var r=u(t.interceptors||[]),o=0,i=r.length;o0}function _e(t,e){var n=t.changeListeners||(t.changeListeners=[]);return n.push(e),d((function(){var t=n.indexOf(e);-1!==t&&n.splice(t,1)}))}function we(t,e){var n=st(),r=t.changeListeners;if(r){for(var o=0,i=(r=r.slice()).length;o0?t.map(this.dehancer):t},t.prototype.intercept=function(t){return me(this,t)},t.prototype.observe=function(t,e){return void 0===e&&(e=!1),e&&t({object:this.proxy,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),_e(this,t)},t.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},t.prototype.setArrayLength=function(t){if("number"!=typeof t||t<0)throw new Error("[mobx.array] Out of range: "+t);var e=this.values.length;if(t!==e)if(t>e){for(var n=new Array(t-e),r=0;ro?t=o:t<0&&(t=Math.max(0,o+t)),e=1===arguments.length?o-t:null==e?0:Math.max(0,Math.min(e,o-t)),void 0===n&&(n=c),ve(this)){var i=ge(this,{object:this.proxy,type:"splice",index:t,removedCount:e,added:n});if(!i)return c;e=i.removedCount,n=i.added}n=0===n.length?n:n.map((function(t){return r.enhancer(t,void 0)}));var a=this.spliceItemsIntoValues(t,e,n);return 0===e&&0===n.length||this.notifyArraySplice(t,n,a),this.dehanceValues(a)},t.prototype.spliceItemsIntoValues=function(t,e,n){var r;if(n.length<1e4)return(r=this.values).splice.apply(r,u([t,e],n));var o=this.values.slice(t,t+e);return this.values=this.values.slice(0,t).concat(n,this.values.slice(t+e)),o},t.prototype.notifyArrayChildUpdate=function(t,e,n){var r=!this.owned&&!1,o=be(this),i=o||r?{object:this.proxy,type:"update",index:t,newValue:e,oldValue:n}:null;this.atom.reportChanged(),o&&we(this,i)},t.prototype.notifyArraySplice=function(t,e,n){var r=!this.owned&&!1,o=be(this),i=o||r?{object:this.proxy,type:"splice",index:t,removed:n,added:e,removedCount:n.length,addedCount:e.length}:null;this.atom.reportChanged(),o&&we(this,i)},t}(),ke={intercept:function(t){return this[k].intercept(t)},observe:function(t,e){return void 0===e&&(e=!1),this[k].observe(t,e)},clear:function(){return this.splice(0)},replace:function(t){var e=this[k];return e.spliceWithArray(0,e.values.length,t)},toJS:function(){return this.slice()},toJSON:function(){return this.toJS()},splice:function(t,e){for(var n=[],r=2;r-1&&(this.splice(n,1),!0)},get:function(t){var e=this[k];if(e){if(t=0&&r++}e=Ge(e),n=Ge(n);var u="[object Array]"===s;if(!u){if("object"!=typeof e||"object"!=typeof n)return!1;var c=e.constructor,l=n.constructor;if(c!==l&&!("function"==typeof c&&c instanceof c&&"function"==typeof l&&l instanceof l)&&"constructor"in e&&"constructor"in n)return!1}if(0===r)return!1;r<0&&(r=-1);i=i||[];var f=(o=o||[]).length;for(;f--;)if(o[f]===e)return i[f]===n;if(o.push(e),i.push(n),u){if((f=e.length)!==n.length)return!1;for(;f--;)if(!t(e[f],n[f],r-1,o,i))return!1}else{var p=Object.keys(e),h=void 0;if(f=p.length,Object.keys(n).length!==f)return!1;for(;f--;)if(h=p[f],!Ke(n,h)||!t(e[h],n[h],r-1,o,i))return!1}return o.pop(),i.pop(),!0}(t,e,n)}function Ge(t){return Ee(t)?t.slice():_(t)||De(t)||w(t)||Re(t)?Array.from(t.entries()):t}function Ke(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Qe(t){return t[Symbol.iterator]=Ye,t}function Ye(){return this}if("undefined"==typeof Proxy||"undefined"==typeof Symbol)throw new Error("[mobx] MobX 5+ requires Proxy and Symbol objects. If your environment doesn't support Symbol or Proxy objects, please downgrade to MobX 4. For React Native Android, consider upgrading JSCore.");"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Bt,extras:{getDebugName:function(t,e){return(void 0!==e?Ue(t,e):Be(t)||De(t)||Re(t)?We(t):Ue(t)).name}},$mobx:k})}).call(this,n(206),n(124))},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(7);const o=(t,e)=>{Object(r.a)(t,e,"channelCount"),Object(r.a)(t,e,"channelCountMode"),Object(r.a)(t,e,"channelInterpretation")}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o}));const r=-34028234663852886e22,o=-r},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>t.context===e},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n)=>{const r=e[n];void 0!==r&&r!==t[n]&&(t[n]=r)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n)=>{const r=e[n];void 0!==r&&r!==t[n].value&&(t[n].value=r)}},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(12);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(2),o=n(22);const i=t=>Object(o.a)(r.c,t)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=()=>{try{return new DOMException("","InvalidStateError")}catch(t){return t.code=11,t.name="InvalidStateError",t}}},function(t,e,n){var r=n(111)("wks"),o=n(66),i=n(9).Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},function(t,e,n){"use strict";function r(){return(r=Object.assign||function(t){for(var e=1;e0?o(r(t),9007199254740991):0}},function(t,e){var n=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(2),o=n(22);const i=t=>Object(o.a)(r.b,t)},function(t,e,n){t.exports=!n(10)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(11),o=n(172),i=n(57),a=Object.defineProperty;e.f=n(20)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>{const n=t.get(e);if(void 0===n)throw new Error("A value with the given key could not be found.");return n}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=()=>{try{return new DOMException("","NotSupportedError")}catch(t){return t.code=9,t.name="NotSupportedError",t}}},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return w})),n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return b}));var r=n(3),o=n(0),i=n.n(o);if(!o.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!r.p)throw new Error("mobx-react-lite requires mobx at least version 4 to be available");var a=!1;function s(){return a}function u(){return(u=Object.assign||function(t){for(var e=1;e=e.length)break;o=e[r++]}else{if((r=e.next()).done)break;o=r.value}var i=o,a=i.current;a&&t>=a.cleanAt&&(a.reaction.dispose(),i.current=null,h.delete(i))}h.size>0&&d()}var v={};function m(t){return"observer"+t}function g(t,e,n){if(void 0===e&&(e="observed"),void 0===n&&(n=v),s())return t();var o,a=(n.useForceUpdate||c)(),u=i.a.useRef(null);if(!u.current){var f=new r.b(m(e),(function(){y.mounted?a():(f.dispose(),u.current=null)})),y=function(t){return{cleanAt:Date.now()+p,reaction:t}}(f);u.current=y,o=u,h.add(o),d()}var g,b,_=u.current.reaction;if(i.a.useDebugValue(_,l),i.a.useEffect((function(){var t;return t=u,h.delete(t),u.current?u.current.mounted=!0:(u.current={reaction:new r.b(m(e),(function(){a()})),cleanAt:1/0},a()),function(){u.current.reaction.dispose(),u.current=null}}),[]),_.track((function(){try{g=t()}catch(t){b=t}})),b)throw b;return g}function b(t,e){if(s())return t;var n,r,i,a=u({forwardRef:!1},e),c=t.displayName||t.name,l=function(e,n){return g((function(){return t(e,n)}),c)};return l.displayName=c,n=a.forwardRef?Object(o.memo)(Object(o.forwardRef)(l)):Object(o.memo)(l),r=t,i=n,Object.keys(r).forEach((function(t){_[t]||Object.defineProperty(i,t,Object.getOwnPropertyDescriptor(r,t))})),n.displayName=c,n}var _={$$typeof:!0,render:!0,compare:!0,type:!0};function w(t){var e=t.children,n=t.render,r=e||n;return"function"!=typeof r?null:g(r)}function x(t,e,n,r,o){var i="children"===e?"render":"children",a="function"==typeof t[e],s="function"==typeof t[i];return a&&s?new Error("MobX Observer: Do not use children and render in the same time in`"+n):a||s?null:new Error("Invalid prop `"+o+"` of type `"+typeof t[e]+"` supplied to `"+n+"`, expected `function`.")}w.propTypes={children:x,render:x},w.displayName="Observer"}).call(this,n(124))},function(t,e,n){var r=n(53);t.exports=function(t){return Object(r(t))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>(t.connect=e.connect.bind(e),t.disconnect=e.disconnect.bind(e),t)},function(t,e,n){var r=n(9),o=n(31),i=n(30),a=n(66)("src"),s=n(850),u=(""+s).split("toString");n(18).inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var c="function"==typeof n;c&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(c&&(i(n,a)||o(n,a,t[e]?""+t[e]:u.join(String(e)))),t===r?t[e]=n:s?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[a]||s.call(this)}))},function(t,e,n){var r=n(1),o=n(10),i=n(53),a=/"/g,s=function(t,e,n,r){var o=String(i(t)),s="<"+e;return""!==n&&(s+=" "+n+'="'+String(r).replace(a,""")+'"'),s+">"+o+""};t.exports=function(t,e){var n={};n[t]=e(s),r(r.P+r.F*o((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})),"String",n)}},function(t,e,n){"use strict";e.a=function(t,e){if(!t)throw new Error("Invariant failed")}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(21),o=n(65);t.exports=n(20)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(103),o=n(53);t.exports=function(t){return r(o(t))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>"inputs"in t},function(t,e,n){"use strict";n.d(e,"AudioContext",(function(){return lo})),n.d(e,"AudioWorkletNode",(function(){return wo})),n.d(e,"OfflineAudioContext",(function(){return So})),n.d(e,"isAnyAudioContext",(function(){return ko})),n.d(e,"isAnyAudioNode",(function(){return To})),n.d(e,"isAnyAudioParam",(function(){return Co})),n.d(e,"isAnyOfflineAudioContext",(function(){return Eo}));var r=n(50),o=n(681),i=n(682),a=n(683),s=n(833),u=n(684),c=n(685),l=n(686),f=n(687),p=n(688),h=n(689),d=n(690),y=n(691),v=n(692),m=n(693),g=n(694),b=n(830),_=n(695),w=n(696),x=n(697),O=n(839),S=n(698),k=n(699),T=n(700),C=n(701),E=n(702),A=n(703),j=n(704),P=n(705),D=n(706),M=n(707),I=n(708),R=n(709),N=n(710),F=n(711),q=n(712),V=n(713),L=n(714),z=n(715),B=n(836),U=n(716),W=n(717),$=n(718),H=n(719),G=n(837),K=n(720),Q=n(721),Y=n(722),X=n(723),J=n(724),Z=n(725),tt=n(726),et=n(727),nt=n(728),rt=n(729),ot=n(730),it=n(731),at=n(732),st=n(733),ut=n(734),ct=n(838),lt=n(735),ft=n(736),pt=n(40),ht=n(100),dt=n(14),yt=n(737),vt=n(738),mt=n(739),gt=n(740),bt=n(741),_t=n(742),wt=n(743),xt=n(744),Ot=n(745),St=n(746),kt=(n(747),n(748)),Tt=n(749),Ct=n(750),Et=n(751),At=n(752),jt=n(753),Pt=n(754),Dt=n(755),Mt=n(835),It=n(756),Rt=n(834),Nt=n(757),Ft=n(758),qt=n(759),Vt=n(760),Lt=n(840),zt=n(831),Bt=n(761),Ut=n(762),Wt=n(841),$t=n(763),Ht=n(764),Gt=n(765),Kt=n(766),Qt=n(767),Yt=n(768),Xt=n(769),Jt=n(770),Zt=n(771),te=n(772),ee=n(773),ne=n(774),re=n(775),oe=n(776),ie=n(777),ae=n(778),se=n(779),ue=n(780),ce=n(781),le=n(782),fe=n(783),pe=n(784),he=n(785),de=n(23),ye=n(786),ve=n(787),me=n(788),ge=n(789),be=n(790),_e=n(791),we=n(792),xe=n(793),Oe=n(794),Se=n(795),ke=n(796),Te=n(797),Ce=n(798),Ee=n(799),Ae=(n(800),n(801)),je=n(802),Pe=n(803),De=n(804),Me=(n(805),n(806),n(807),n(808),n(809)),Ie=n(810),Re=n(811),Ne=(n(812),n(813),n(814),n(815),n(816),n(817),n(818)),Fe=(n(819),n(165)),qe=n(820),Ve=n(821),Le=n(822),ze=n(823),Be=n(824),Ue=n(825),We=n(826),$e=n(827),He=n(2),Ge=n(96),Ke=n(97),Qe=n(19),Ye=n(79),Xe=n(13),Je=n(80),Ze=n(22),tn=n(41),en=n(62),nn=n(166),rn=n(51),on=n(108),an=n(95),sn=n(38),un=(n(828),n(829)),cn=n(81);n(207),n(291);const ln=Object(C.a)(new Map,new WeakMap),fn=Object(Le.a)(),pn=Object(oe.a)(fn),hn=Object(Ot.a)(pn),dn=Object(Nt.a)(fn),yn=Object(at.a)(hn,dn,pn),vn=Object(qt.a)(yn),mn=Object(Mt.a)(ln,pt.a,vn),gn=Object(ot.a)(Qe.a),bn=Object(xe.a)(Qe.a,gn,rn.a),_n=Object(f.a)(mn,Xe.a,bn),wn=new WeakMap,xn=Object(st.a)(He.g),On=new WeakMap,Sn=Object(Z.a)(cn.a),kn=Object(bt.a)(dn),Tn=Object(_t.a)(fn),Cn=Object(wt.a)(fn),En=Object(b.a)(Object(i.a)(He.b),wn,ln,Object(ft.a)(He.h,Ke.a,Qe.a,Xe.a,Je.a,en.a),pt.a,ht.a,de.a,Object(U.a)(Ge.a,He.h,Qe.a,Xe.a,Je.a,xn,en.a,hn),Object(G.a)(On,Qe.a,Ze.a),Sn,xn,kn,Tn,Cn,hn),An=Object(l.a)(En,_n,pt.a,mn,xn,hn),jn=new WeakSet,Pn=Object(It.a)(fn),Dn=Object(F.a)(new Uint32Array(1)),Mn=Object(ze.a)(Dn,pt.a),In=Object(Be.a)(Dn),Rn=Object(p.a)(jn,ln,de.a,Pn,pn,Object(Ee.a)(Pn),Mn,In),Nn=Object(Xt.a)(vn),Fn=Object(u.a)(Nn),qn=Object(Me.a)(vn),Vn=Object(Ie.a)(vn),Ln=Object(Re.a)(vn),zn=Object(We.a)(vn),Bn=Object(Oe.a)(gn,Ye.a,rn.a),Un=Object(D.a)(Bn),Wn=Object(Rt.a)(Fn,ln,vn,Object(Ae.a)(vn),Object(je.a)(pn),Object(Pe.a)(vn),Object(De.a)(vn),qn,Vn,Ln,un.a,Object(Ue.a)(on.a),zn),$n=Object(we.a)(Object(it.a)(Ye.a),Bn),Hn=Object(d.a)(Un,Wn,Xe.a,$n,bn),Gn=Object(_.a)(Object(a.a)(He.d),On,He.e,w.a,r.createCancelAndHoldAutomationEvent,r.createCancelScheduledValuesAutomationEvent,r.createExponentialRampToValueAutomationEvent,r.createLinearRampToValueAutomationEvent,r.createSetTargetAutomationEvent,r.createSetValueAutomationEvent,r.createSetValueCurveAutomationEvent,dn),Kn=Object(h.a)(En,Hn,Gn,dt.a,Wn,xn,hn,cn.a),Qn=Object(v.a)(En,m.a,pt.a,dt.a,Object(Ft.a)(Nn,on.a),xn,hn,bn),Yn=Object(Bt.a)(vn),Xn=Object(T.a)(Un,Yn,Xe.a,$n,bn),Jn=Object(k.a)(En,Gn,Xn,ht.a,Yn,xn,hn),Zn=Object(Dt.a)(tn.a,Tn),tr=Object($e.a)(dt.a,vn,Zn),er=Object(Ut.a)(vn,tr),nr=Object(A.a)(er,Xe.a,bn),rr=Object(E.a)(En,nr,er,xn,hn),or=Object(Wt.a)(vn),ir=Object(P.a)(or,Xe.a,bn),ar=Object(j.a)(En,ir,or,xn,hn),sr=Object(Ht.a)(Fn,Wn,Nn,Zn),ur=Object($t.a)(Fn,ln,vn,sr,qn,Ln),cr=Object(N.a)(Un,ur,Xe.a,$n,bn),lr=Object(R.a)(En,Gn,cr,ur,xn,hn,cn.a),fr=Object(Kt.a)(vn,Nn,Zn),pr=Object(Gt.a)(vn,fr,de.a,on.a),hr=Object(V.a)(pr,Xe.a,bn),dr=Object(q.a)(En,hr,pr,xn,hn),yr=Object(Qt.a)(vn),vr=Object($.a)(Un,yr,Xe.a,$n,bn),mr=Object(W.a)(En,Gn,vr,yr,xn,hn),gr=Object(Yt.a)(vn,de.a),br=Object(Y.a)(Un,gr,Xe.a,$n,bn),_r=Object(Q.a)(En,Gn,br,gr,de.a,xn,hn),wr=Object(rt.a)(Un,Nn,Xe.a,$n,bn),xr=Object(nt.a)(En,Gn,wr,Nn,xn,hn),Or=Object(ce.a)(vn),Sr=Object(Zt.a)(ht.a,dt.a,Or,de.a),kr=Object(Se.a)(ln,Nn,Or,Object(Ne.a)(Nn,pn)),Tr=Object(lt.a)(Wn,vn,Xe.a,pn,bn,kr),Cr=Object(Jt.a)(vn,Sr),Er=Object(ct.a)(En,Cr,Tr,xn,hn),Ar=Object(g.a)(Gn,er,ur,Or,hn),jr=new WeakMap,Pr=Object(jt.a)(Qn,Ar,Sn,hn,jr,cn.a),Dr=Object(ie.a)(Fn,ln,vn,qn,Vn,Ln,zn),Mr=Object(me.a)(Un,Dr,Xe.a,$n,bn),Ir=Object(ve.a)(En,Gn,dt.a,Dr,Mr,xn,hn,cn.a),Rr=Object(I.a)(Wn),Nr=Object(he.a)(Rr,dt.a,vn,Nn,nn.a,Zn),Fr=Object(pe.a)(Rr,dt.a,vn,Nr,nn.a,Zn,on.a),qr=Object(se.a)(Ge.a,dt.a,vn,er,Nn,Or,Fr,de.a,Ke.a,Zn),Vr=Object(ae.a)(vn,qr),Lr=Object(be.a)(Un,er,ur,Nn,Vr,Xe.a,pn,$n,bn,kr),zr=Object(ge.a)(En,Gn,Vr,Lr,xn,hn),Br=Object(ue.a)(yn),Ur=Object(_e.a)(Br,xn,new WeakSet),Wr=Object(fe.a)(er,or,Nn,Fr,de.a,Zn),$r=Object(le.a)(vn,Wr,de.a),Hr=Object(Ce.a)(Un,$r,Xe.a,$n,bn),Gr=Object(Te.a)(En,Gn,$r,Hr,xn,hn),Kr=Object(Ve.a)(Fr,Xe.a,bn),Qr=Object(qe.a)(En,dt.a,Fr,Kr,xn,hn),Yr=Object(St.a)(fn),Xr=Object(tt.a)(fn),Jr=Yr?Object(s.a)(de.a,Object(J.a)(fn),Xr,Object(et.a)(o.a),yn,xn,new WeakMap,new WeakMap,fn):void 0,Zr=Object(xt.a)(kn,hn),to=Object(B.a)(jn,ln,z.a,X.a,new WeakSet,xn,Zr,hn,pn,an.a,sn.a,Mn,In),eo=Object(S.a)(Jr,An,Rn,Kn,Jn,rr,ar,lr,dr,to,mr,_r,xr,Er,Pr,Ir,zr,Ur,Gr,Qr),no=Object(te.a)(vn),ro=Object(kt.a)(En,no,xn,hn),oo=Object(ee.a)(vn,de.a),io=Object(Tt.a)(En,oo,xn,hn),ao=Object(ne.a)(vn),so=Object(Ct.a)(En,ao,xn,hn),uo=Object(re.a)(dt.a,vn,hn),co=Object(Et.a)(En,uo,xn),lo=Object(y.a)(eo,dt.a,de.a,Fe.a,ro,io,so,co,dn),fo=Object(ut.a)(jr),po=Object(c.a)(fo),ho=Object(M.a)(pt.a),yo=Object(H.a)(fo),vo=Object(K.a)(pt.a),mo=Object(zt.a)(wn,ho,pt.a,dt.a,er,or,ur,Nn,Or,de.a,vo,Xr,Zn),go=Object(Lt.a)(dt.a,vn,mo,Nn,de.a,Zn),bo=Object(Vt.a)(fn),_o=Object(O.a)(Un,ho,Wn,er,or,ur,Nn,yo,vo,Xr,Xe.a,bo,pn,$n,bn,kr),wo=Yr?Object(x.a)(po,En,Gn,_o,go,xn,hn,bo,cn.a):void 0,xo=(Object(At.a)(dt.a,de.a,Fe.a,Pr,dn),Object(L.a)(de.a,pn)),Oo=Object(ke.a)(jn,ln,gn,fo,kr,an.a,Mn,In),So=(Object(Pt.a)(ln,dt.a,xo,Pr,Oo),Object(ye.a)(eo,ln,dt.a,xo,Oo)),ko=Object(yt.a)(He.g,kn),To=Object(vt.a)(He.c,Tn),Co=Object(mt.a)(He.e,Cn),Eo=Object(gt.a)(He.g,hn)},function(t,e,n){"use strict";function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return w})),n.d(e,"b",(function(){return T})),n.d(e,"d",(function(){return E})),n.d(e,"c",(function(){return y})),n.d(e,"f",(function(){return v})),n.d(e,"e",(function(){return d}));var r=n(16);function o(t){return"/"===t.charAt(0)}function i(t,e){for(var n=e,r=n+1,o=t.length;r=0;p--){var h=a[p];"."===h?i(a,p):".."===h?(i(a,p),f++):f&&(i(a,p),f--)}if(!c)for(;f--;f)a.unshift("..");!c||""===a[0]||a[0]&&o(a[0])||a.unshift("");var d=a.join("/");return n&&"/"!==d.substr(-1)&&(d+="/"),d};function s(t){return t.valueOf?t.valueOf():Object.prototype.valueOf.call(t)}var u=function t(e,n){if(e===n)return!0;if(null==e||null==n)return!1;if(Array.isArray(e))return Array.isArray(n)&&e.length===n.length&&e.every((function(e,r){return t(e,n[r])}));if("object"==typeof e||"object"==typeof n){var r=s(e),o=s(n);return r!==e||o!==n?t(r,o):Object.keys(Object.assign({},e,n)).every((function(r){return t(e[r],n[r])}))}return!1},c=n(29);function l(t){return"/"===t.charAt(0)?t:"/"+t}function f(t){return"/"===t.charAt(0)?t.substr(1):t}function p(t,e){return function(t,e){return 0===t.toLowerCase().indexOf(e.toLowerCase())&&-1!=="/?#".indexOf(t.charAt(e.length))}(t,e)?t.substr(e.length):t}function h(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t}function d(t){var e=t.pathname,n=t.search,r=t.hash,o=e||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function y(t,e,n,o){var i;"string"==typeof t?(i=function(t){var e=t||"/",n="",r="",o=e.indexOf("#");-1!==o&&(r=e.substr(o),e=e.substr(0,o));var i=e.indexOf("?");return-1!==i&&(n=e.substr(i),e=e.substr(0,i)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}}(t)).state=e:(void 0===(i=Object(r.a)({},t)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==e&&void 0===i.state&&(i.state=e));try{i.pathname=decodeURI(i.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return n&&(i.key=n),o?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=a(i.pathname,o.pathname)):i.pathname=o.pathname:i.pathname||(i.pathname="/"),i}function v(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash===e.hash&&t.key===e.key&&u(t.state,e.state)}function m(){var t=null;var e=[];return{setPrompt:function(e){return t=e,function(){t===e&&(t=null)}},confirmTransitionTo:function(e,n,r,o){if(null!=t){var i="function"==typeof t?t(e,n):t;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(t){var n=!0;function r(){n&&t.apply(void 0,arguments)}return e.push(r),function(){n=!1,e=e.filter((function(t){return t!==r}))}},notifyListeners:function(){for(var t=arguments.length,n=new Array(t),r=0;re?n.splice(e,n.length-e,r):n.push(r),f({action:"PUSH",location:r,index:e,entries:n})}}))},replace:function(t,e){var r=y(t,e,p(),_.location);l.confirmTransitionTo(r,"REPLACE",n,(function(t){t&&(_.entries[_.index]=r,f({action:"REPLACE",location:r}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(t){var e=_.index+t;return e>=0&&e<_.entries.length},block:function(t){return void 0===t&&(t=!1),l.setPrompt(t)},listen:function(t){return l.appendListener(t)}};return _}},function(t,e,n){"use strict";var r=n(10);t.exports=function(t,e){return!!t&&r((function(){e?t.call(null,(function(){}),1):t.call(null)}))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>{const e=new Uint32Array([1179011410,40,1163280727,544501094,16,131073,44100,176400,1048580,1635017060,4,0]);try{const n=t.decodeAudioData(e.buffer,()=>{});return void 0!==n&&(n.catch(()=>{}),!0)}catch{}return!1}},function(t,e,n){t.exports=n(203)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=()=>{try{return new DOMException("","IndexSizeError")}catch(t){return t.code=1,t.name="IndexSizeError",t}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n,r)=>{for(const e of t)if(n(e)){if(r)return!1;throw Error("The set contains at least one similar element.")}return t.add(e),!0}},function(t,e,n){var r=n(43);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(104),o=n(65),i=n(32),a=n(57),s=n(30),u=n(172),c=Object.getOwnPropertyDescriptor;e.f=n(20)?c:function(t,e){if(t=i(t),e=a(e,!0),u)try{return c(t,e)}catch(t){}if(s(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(1),o=n(18),i=n(10);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*i((function(){n(1)})),"Object",a)}},function(t,e,n){var r=n(42),o=n(103),i=n(25),a=n(17),s=n(188);t.exports=function(t,e){var n=1==t,u=2==t,c=3==t,l=4==t,f=6==t,p=5==t||f,h=e||s;return function(e,s,d){for(var y,v,m=i(e),g=o(m),b=r(s,d,3),_=a(g.length),w=0,x=n?h(e,_):u?h(e,0):void 0;_>w;w++)if((p||w in g)&&(v=b(y=g[w],w,m),t))if(n)x[w]=v;else if(v)switch(t){case 3:return!0;case 5:return y;case 6:return w;case 2:x.push(y)}else if(l)return!1;return f?-1:c||l?l:x}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(2),o=n(55);const i=t=>{if(r.a.has(t))throw new Error("The AudioNode is already stored.");r.a.add(t),Object(o.a)(t).forEach(t=>t(!0))}},function(t,e,n){"use strict";function r(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r=0||(o[n]=t[n]);return o}n.d(e,"a",(function(){return r}))},function(t,e,n){!function(t,e,n,r){"use strict";e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e,n=n&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n,r=r&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r;var o=function(t,e,n){return{endTime:e,insertTime:n,type:"exponentialRampToValue",value:t}},i=function(t,e,n){return{endTime:e,insertTime:n,type:"linearRampToValue",value:t}},a=function(t,e){return{startTime:e,type:"setValue",value:t}},s=function(t,e,n){return{duration:n,startTime:e,type:"setValueCurve",values:t}},u=function(t,e,n){var r=n.startTime,o=n.target,i=n.timeConstant;return o+(e-o)*Math.exp((r-t)/i)},c=function(t){return"exponentialRampToValue"===t.type},l=function(t){return"linearRampToValue"===t.type},f=function(t){return c(t)||l(t)},p=function(t){return"setValue"===t.type},h=function(t){return"setValueCurve"===t.type},d=function t(e,n,r,o){var i=e[n];return void 0===i?o:f(i)||p(i)?i.value:h(i)?i.values[i.values.length-1]:u(r,t(e,n-1,i.startTime,o),i)},y=function(t,e,n,r,o){return void 0===n?[r.insertTime,o]:f(n)?[n.endTime,n.value]:p(n)?[n.startTime,n.value]:h(n)?[n.startTime+n.duration,n.values[n.values.length-1]]:[n.startTime,d(t,e-1,n.startTime,o)]},v=function(t){return"cancelAndHold"===t.type},m=function(t){return"cancelScheduledValues"===t.type},g=function(t){return v(t)||m(t)?t.cancelTime:c(t)||l(t)?t.endTime:t.startTime},b=function(t,e,n,r){var o=r.endTime,i=r.value;return n===i?i:0=e})),r=this._automationEvents[n];if(-1!==n&&(this._automationEvents=this._automationEvents.slice(0,n)),v(t)){var u=this._automationEvents[this._automationEvents.length-1];if(void 0!==r&&f(r)){if(x(u))throw new Error("The internal list is malformed.");var p=h(u)?u.startTime+u.duration:g(u),d=h(u)?u.values[u.values.length-1]:u.value,y=c(r)?b(e,p,d,r):_(e,p,d,r),w=c(r)?o(y,e,this._currenTime):i(y,e,this._currenTime);this._automationEvents.push(w)}void 0!==u&&x(u)&&this._automationEvents.push(a(this.getValue(e),e)),void 0!==u&&h(u)&&u.startTime+u.duration>e&&(this._automationEvents[this._automationEvents.length-1]=s(new Float32Array([6,7]),u.startTime,e-u.startTime))}}else{var O=this._automationEvents.findIndex((function(t){return g(t)>e})),S=-1===O?this._automationEvents[this._automationEvents.length-1]:this._automationEvents[O-1];if(void 0!==S&&h(S)&&g(S)+S.duration>e)return!1;var k=c(t)?o(t.value,t.endTime,this._currenTime):l(t)?i(t.value,e,this._currenTime):t;if(-1===O)this._automationEvents.push(k);else{if(h(t)&&e+t.duration>g(this._automationEvents[O]))return!1;this._automationEvents.splice(O,0,k)}}return!0}},{key:"flush",value:function(t){var e=this._automationEvents.findIndex((function(e){return g(e)>t}));if(e>1){var n=this._automationEvents.slice(e-1),r=n[0];x(r)&&n.unshift(a(d(this._automationEvents,e-2,r.startTime,this._defaultValue),r.startTime)),this._automationEvents=n}}},{key:"getValue",value:function(t){if(0===this._automationEvents.length)return this._defaultValue;var n=this._automationEvents[this._automationEvents.length-1],r=this._automationEvents.findIndex((function(e){return g(e)>t})),o=this._automationEvents[r],i=g(n)<=t?n:this._automationEvents[r-1];if(void 0!==i&&x(i)&&(void 0===o||!f(o)||o.insertTime>t))return u(t,d(this._automationEvents,r-2,i.startTime,this._defaultValue),i);if(void 0!==i&&p(i)&&(void 0===o||!f(o)))return i.value;if(void 0!==i&&h(i)&&(void 0===o||!f(o)||i.startTime+i.duration>t))return tr.h.has(t)},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){"use strict";if(n(20)){var r=n(67),o=n(9),i=n(10),a=n(1),s=n(122),u=n(157),c=n(42),l=n(88),f=n(65),p=n(31),h=n(89),d=n(44),y=n(17),v=n(199),m=n(69),g=n(57),b=n(30),_=n(105),w=n(12),x=n(25),O=n(149),S=n(70),k=n(72),T=n(71).f,C=n(151),E=n(66),A=n(15),j=n(47),P=n(112),D=n(106),M=n(153),I=n(86),R=n(115),N=n(87),F=n(152),q=n(190),V=n(21),L=n(45),z=V.f,B=L.f,U=o.RangeError,W=o.TypeError,$=o.Uint8Array,H=Array.prototype,G=u.ArrayBuffer,K=u.DataView,Q=j(0),Y=j(2),X=j(3),J=j(4),Z=j(5),tt=j(6),et=P(!0),nt=P(!1),rt=M.values,ot=M.keys,it=M.entries,at=H.lastIndexOf,st=H.reduce,ut=H.reduceRight,ct=H.join,lt=H.sort,ft=H.slice,pt=H.toString,ht=H.toLocaleString,dt=A("iterator"),yt=A("toStringTag"),vt=E("typed_constructor"),mt=E("def_constructor"),gt=s.CONSTR,bt=s.TYPED,_t=s.VIEW,wt=j(1,(function(t,e){return Tt(D(t,t[mt]),e)})),xt=i((function(){return 1===new $(new Uint16Array([1]).buffer)[0]})),Ot=!!$&&!!$.prototype.set&&i((function(){new $(1).set({})})),St=function(t,e){var n=d(t);if(n<0||n%e)throw U("Wrong offset!");return n},kt=function(t){if(w(t)&&bt in t)return t;throw W(t+" is not a typed array!")},Tt=function(t,e){if(!w(t)||!(vt in t))throw W("It is not a typed array constructor!");return new t(e)},Ct=function(t,e){return Et(D(t,t[mt]),e)},Et=function(t,e){for(var n=0,r=e.length,o=Tt(t,r);r>n;)o[n]=e[n++];return o},At=function(t,e,n){z(t,e,{get:function(){return this._d[n]}})},jt=function(t){var e,n,r,o,i,a,s=x(t),u=arguments.length,l=u>1?arguments[1]:void 0,f=void 0!==l,p=C(s);if(null!=p&&!O(p)){for(a=p.call(s),r=[],e=0;!(i=a.next()).done;e++)r.push(i.value);s=r}for(f&&u>2&&(l=c(l,arguments[2],2)),e=0,n=y(s.length),o=Tt(this,n);n>e;e++)o[e]=f?l(s[e],e):s[e];return o},Pt=function(){for(var t=0,e=arguments.length,n=Tt(this,e);e>t;)n[t]=arguments[t++];return n},Dt=!!$&&i((function(){ht.call(new $(1))})),Mt=function(){return ht.apply(Dt?ft.call(kt(this)):kt(this),arguments)},It={copyWithin:function(t,e){return q.call(kt(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return J(kt(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return F.apply(kt(this),arguments)},filter:function(t){return Ct(this,Y(kt(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Z(kt(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(kt(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){Q(kt(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return nt(kt(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return et(kt(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ct.apply(kt(this),arguments)},lastIndexOf:function(t){return at.apply(kt(this),arguments)},map:function(t){return wt(kt(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return st.apply(kt(this),arguments)},reduceRight:function(t){return ut.apply(kt(this),arguments)},reverse:function(){for(var t,e=kt(this).length,n=Math.floor(e/2),r=0;r1?arguments[1]:void 0)},sort:function(t){return lt.call(kt(this),t)},subarray:function(t,e){var n=kt(this),r=n.length,o=m(t,r);return new(D(n,n[mt]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,y((void 0===e?r:m(e,r))-o))}},Rt=function(t,e){return Ct(this,ft.call(kt(this),t,e))},Nt=function(t){kt(this);var e=St(arguments[1],1),n=this.length,r=x(t),o=y(r.length),i=0;if(o+e>n)throw U("Wrong length!");for(;i255?255:255&r),o.v[h](n*e+o.o,r,xt)}(this,n,t)},enumerable:!0})};b?(d=n((function(t,n,r,o){l(t,d,c,"_d");var i,a,s,u,f=0,h=0;if(w(n)){if(!(n instanceof G||"ArrayBuffer"==(u=_(n))||"SharedArrayBuffer"==u))return bt in n?Et(d,n):jt.call(d,n);i=n,h=St(r,e);var m=n.byteLength;if(void 0===o){if(m%e)throw U("Wrong length!");if((a=m-h)<0)throw U("Wrong length!")}else if((a=y(o)*e)+h>m)throw U("Wrong length!");s=a/e}else s=v(n),i=new G(a=s*e);for(p(t,"_d",{b:i,o:h,l:a,e:s,v:new K(i)});fObject(o.a)(r.i,t)},,function(t,e,n){var r=n(12);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(66)("meta"),o=n(12),i=n(30),a=n(21).f,s=0,u=Object.isExtensible||function(){return!0},c=!n(10)((function(){return u(Object.preventExtensions({}))})),l=function(t){a(t,r,{value:{i:"O"+ ++s,w:{}}})},f=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!u(t))return"F";if(!e)return"E";l(t)}return t[r].i},getWeak:function(t,e){if(!i(t,r)){if(!u(t))return!0;if(!e)return!1;l(t)}return t[r].w},onFreeze:function(t){return c&&f.NEED&&u(t)&&!i(t,r)&&l(t),t}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(2),o=n(55);const i=t=>{if(!r.a.has(t))throw new Error("The AudioNode is not stored.");r.a.delete(t),Object(o.a)(t).forEach(t=>t(!1))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return E})),n.d(e,"b",(function(){return D})),n.d(e,"c",(function(){return O})),n.d(e,"d",(function(){return q})),n.d(e,"e",(function(){return x})),n.d(e,"f",(function(){return P})),n.d(e,"g",(function(){return V}));var r=n(35),o=n(0),i=n.n(o),a=n(76),s=n.n(a),u=n(36),c=n(163),l=n.n(c),f=n(679),p=n.n(f);function h(t){var e=[];return{on:function(t){e.push(t)},off:function(t){e=e.filter((function(e){return e!==t}))},get:function(){return t},set:function(n,r){t=n,e.forEach((function(e){return e(t,r)}))}}}var d=i.a.createContext||function(t,e){var n,r,i="__create-react-context-"+p()()+"__",a=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).emitter=h(e.props.value),e}l()(n,t);var r=n.prototype;return r.getChildContext=function(){var t;return(t={})[i]=this.emitter,t},r.componentWillReceiveProps=function(t){if(this.props.value!==t.value){var n,r=this.props.value,o=t.value;((i=r)===(a=o)?0!==i||1/i==1/a:i!=i&&a!=a)?n=0:(n="function"==typeof e?e(r,o):1073741823,0!==(n|=0)&&this.emitter.set(t.value,n))}var i,a},r.render=function(){return this.props.children},n}(o.Component);a.childContextTypes=((n={})[i]=s.a.object.isRequired,n);var u=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).state={value:t.getValue()},t.onUpdate=function(e,n){0!=((0|t.observedBits)&n)&&t.setState({value:t.getValue()})},t}l()(n,e);var r=n.prototype;return r.componentWillReceiveProps=function(t){var e=t.observedBits;this.observedBits=null==e?1073741823:e},r.componentDidMount=function(){this.context[i]&&this.context[i].on(this.onUpdate);var t=this.props.observedBits;this.observedBits=null==t?1073741823:t},r.componentWillUnmount=function(){this.context[i]&&this.context[i].off(this.onUpdate)},r.getValue=function(){return this.context[i]?this.context[i].get():t},r.render=function(){return(t=this.props.children,Array.isArray(t)?t[0]:t)(this.state.value);var t},n}(o.Component);return u.contextTypes=((r={})[i]=s.a.object,r),{Provider:a,Consumer:u}},y=n(29),v=n(16),m=n(164),g=n.n(m),b=(n(161),n(49)),_=n(680),w=n.n(_),x=function(t){var e=d();return e.displayName=t,e}("Router"),O=function(t){function e(e){var n;return(n=t.call(this,e)||this).state={location:e.history.location},n._isMounted=!1,n._pendingLocation=null,e.staticContext||(n.unlisten=e.history.listen((function(t){n._isMounted?n.setState({location:t}):n._pendingLocation=t}))),n}Object(r.a)(e,t),e.computeRootMatch=function(t){return{path:"/",url:"/",params:{},isExact:"/"===t}};var n=e.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return i.a.createElement(x.Provider,{children:this.props.children||null,value:{history:this.props.history,location:this.state.location,match:e.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}})},e}(i.a.Component);i.a.Component;var S=function(t){function e(){return t.apply(this,arguments)||this}Object(r.a)(e,t);var n=e.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(t){this.props.onUpdate&&this.props.onUpdate.call(this,this,t)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},e}(i.a.Component);var k={},T=0;function C(t,e){return void 0===t&&(t="/"),void 0===e&&(e={}),"/"===t?t:function(t){if(k[t])return k[t];var e=g.a.compile(t);return T<1e4&&(k[t]=e,T++),e}(t)(e,{pretty:!0})}function E(t){var e=t.computedMatch,n=t.to,r=t.push,o=void 0!==r&&r;return i.a.createElement(x.Consumer,null,(function(t){t||Object(y.a)(!1);var r=t.history,a=t.staticContext,s=o?r.push:r.replace,c=Object(u.c)(e?"string"==typeof n?C(n,e.params):Object(v.a)({},n,{pathname:C(n.pathname,e.params)}):n);return a?(s(c),null):i.a.createElement(S,{onMount:function(){s(c)},onUpdate:function(t,e){var n=Object(u.c)(e.to);Object(u.f)(n,Object(v.a)({},c,{key:n.key}))||s(c)},to:n})}))}var A={},j=0;function P(t,e){void 0===e&&(e={}),("string"==typeof e||Array.isArray(e))&&(e={path:e});var n=e,r=n.path,o=n.exact,i=void 0!==o&&o,a=n.strict,s=void 0!==a&&a,u=n.sensitive,c=void 0!==u&&u;return[].concat(r).reduce((function(e,n){if(!n&&""!==n)return null;if(e)return e;var r=function(t,e){var n=""+e.end+e.strict+e.sensitive,r=A[n]||(A[n]={});if(r[t])return r[t];var o=[],i={regexp:g()(t,o,e),keys:o};return j<1e4&&(r[t]=i,j++),i}(n,{end:i,strict:s,sensitive:c}),o=r.regexp,a=r.keys,u=o.exec(t);if(!u)return null;var l=u[0],f=u.slice(1),p=t===l;return i&&!p?null:{path:n,url:"/"===n&&""===l?"/":l,isExact:p,params:a.reduce((function(t,e,n){return t[e.name]=f[n],t}),{})}}),null)}var D=function(t){function e(){return t.apply(this,arguments)||this}return Object(r.a)(e,t),e.prototype.render=function(){var t=this;return i.a.createElement(x.Consumer,null,(function(e){e||Object(y.a)(!1);var n=t.props.location||e.location,r=t.props.computedMatch?t.props.computedMatch:t.props.path?P(n.pathname,t.props):e.match,o=Object(v.a)({},e,{location:n,match:r}),a=t.props,s=a.children,u=a.component,c=a.render;return Array.isArray(s)&&0===s.length&&(s=null),i.a.createElement(x.Provider,{value:o},o.match?s?"function"==typeof s?s(o):s:u?i.a.createElement(u,o):c?c(o):null:"function"==typeof s?s(o):null)}))},e}(i.a.Component);function M(t){return"/"===t.charAt(0)?t:"/"+t}function I(t,e){if(!t)return e;var n=M(t);return 0!==e.pathname.indexOf(n)?e:Object(v.a)({},e,{pathname:e.pathname.substr(n.length)})}function R(t){return"string"==typeof t?t:Object(u.e)(t)}function N(t){return function(){Object(y.a)(!1)}}function F(){}i.a.Component;var q=function(t){function e(){return t.apply(this,arguments)||this}return Object(r.a)(e,t),e.prototype.render=function(){var t=this;return i.a.createElement(x.Consumer,null,(function(e){e||Object(y.a)(!1);var n,r,o=t.props.location||e.location;return i.a.Children.forEach(t.props.children,(function(t){if(null==r&&i.a.isValidElement(t)){n=t;var a=t.props.path||t.props.from;r=a?P(o.pathname,Object(v.a)({},t.props,{path:a})):e.match}})),r?i.a.cloneElement(n,{location:o,computedMatch:r}):null}))},e}(i.a.Component);function V(t){var e="withRouter("+(t.displayName||t.name)+")",n=function(e){var n=e.wrappedComponentRef,r=Object(b.a)(e,["wrappedComponentRef"]);return i.a.createElement(x.Consumer,null,(function(e){return e||Object(y.a)(!1),i.a.createElement(t,Object(v.a)({},r,e,{ref:n}))}))};return n.displayName=e,n.WrappedComponent=t,w()(n,t)}i.a.useContext},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(77);const o=t=>Object(r.a)(t[0])},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(2);const o=t=>r.a.has(t)},function(t,e){function n(t,e){for(var n=0;ndocument.F=Object<\/script>"),t.close(),u=t.F;r--;)delete u.prototype[i[r]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=r(t),n=new s,s.prototype=null,n[a]=t):n=u(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(174),o=n(136).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(30),o=n(25),i=n(135)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){var r=n(15)("unscopables"),o=Array.prototype;null==o[r]&&n(31)(o,r,{}),t.exports=function(t){o[r][t]=!0}},function(t,e,n){var r=n(12);t.exports=function(t,e){if(!r(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.childInteractiveProps=e.defaultTapTimeCutoff=e.queueTime=e.knownProps=e.knownRoleTags=e.nonBlurrableTags=e.statePropOptionKeys=e.stateProps=e.iStates=e.otherEvents=e.touchEvents=e.mouseEvents=e.passiveEventSupport=e.deviceHasMouse=e.deviceHasTouch=e.deviceType=void 0;var r=Object.assign||function(t){for(var e=1;e"context"in t},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>"context"in t},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(2),o=n(22);const i=t=>Object(o.a)(r.d,t)},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(2),o=n(22);const i=t=>Object(o.a)(r.e,t)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>n=>{const r={value:t};return Object.defineProperties(n,{currentTarget:r,target:r}),"function"==typeof e?e.call(t,n):e.handleEvent.call(t,n)}},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){"use strict";n.d(e,"a",(function(){return f})),n.d(e,"b",(function(){return m}));var r=n(60),o=n(35),i=n(0),a=n.n(i),s=n(36),u=(n(76),n(16)),c=n(49),l=n(29),f=function(t){function e(){for(var e,n=arguments.length,r=new Array(n),o=0;o{var e;t.getChannelData=(e=t.getChannelData,n=>{try{return e.call(t,n)}catch(t){if(12===t.code)throw Object(r.a)();throw t}})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>{var e;t.start=(e=t.start,(n=0,r=0,o)=>{if("number"==typeof o&&o<0||r<0||n<0)throw new RangeError("The parameters can't be negative.");e.call(t,n,r,o)})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>{var e;t.stop=(e=t.stop,(n=0)=>{if(n<0)throw new RangeError("The parameter can't be negative.");e.call(t,n)})}},function(t,e){function n(t,e,n,r,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,o)}t.exports=function(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function s(t){n(a,o,i,s,u,"next",t)}function u(t){n(a,o,i,s,u,"throw",t)}s(void 0)}))}}},function(t,e,n){"use strict";e.parse=function(t,e){if("string"!=typeof t)throw new TypeError("argument str must be a string");for(var n={},o=e||{},a=t.split(i),u=o.decode||r,c=0;c{try{t.copyToChannel(new Float32Array(1),0,-1)}catch{return!1}return!0}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(33);const o=(t,e,n,o)=>{if(Object(r.a)(e)){const r=e.inputs[o];return t.connect(r,n,0),[r,n,0]}return t.connect(e,n,o),[e,n,o]}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(33);const o=(t,e,n,o)=>{Object(r.a)(e)?t.disconnect(e.inputs[o],n,0):t.disconnect(e,n,o)}},function(t,e,n){"use strict";function r(t,e,n,r,o){if("function"==typeof t.copyFromChannel)0===e[n].byteLength&&(e[n]=new Float32Array(128)),t.copyFromChannel(e[n],r,o);else{const i=t.getChannelData(r);if(0===e[n].byteLength)e[n]=i.slice(o,o+128);else{const t=new Float32Array(i.buffer,o*Float32Array.BYTES_PER_ELEMENT,128);e[n].set(t)}}}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>{const n=[];for(let r=0;r{try{return new DOMException("","InvalidAccessError")}catch(t){return t.code=15,t.name="InvalidAccessError",t}}},,function(t,e){t.exports=function(t,e,n,r){n&&Object.defineProperty(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}},function(t,e,n){var r=n(52);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(52),o=n(15)("toStringTag"),i="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:i?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},function(t,e,n){var r=n(11),o=n(43),i=n(15)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||null==(n=r(a)[i])?e:o(n)}},function(t,e,n){"use strict";!function t(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(t){console.error(t)}}}(),t.exports=n(1032)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n,r)=>{let o=Object.getPrototypeOf(t);for(;!o.hasOwnProperty(e);)o=Object.getPrototypeOf(o);const{get:i,set:a}=Object.getOwnPropertyDescriptor(o,e);Object.defineProperty(t,e,{get:n(i),set:r(a)})}},function(t,e,n){"use strict";var r=n(0),o=n.n(r),i=n(49),a=n(16);function s(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var u=n(35),c=n(677),l=n.n(c);function f(t,e){if(!t){var n=new Error("loadable: "+e);throw n.framesToPop=1,n.name="Invariant Violation",n}}var p=o.a.createContext();var h=function(t){return t};function d(t){var e=t.resolve,n=void 0===e?h:e,r=t.render,c=t.onLoad;function l(t,e){void 0===e&&(e={});var l=function(t){return"function"==typeof t?{requireAsync:t}:t}(t),h={};function d(t){return e.cacheKey?e.cacheKey(t):l.resolve?l.resolve(t):null}var y,v=function(t){function o(n){var r;return(r=t.call(this,n)||this).state={result:null,error:null,loading:!0,cacheKey:d(n)},r.promise=null,f(!n.__chunkExtractor||l.requireSync,"SSR requires `@loadable/babel-plugin`, please install it"),n.__chunkExtractor?(!1===e.ssr||(l.requireAsync(n).catch((function(){})),r.loadSync(),n.__chunkExtractor.addChunk(l.chunkName(n))),s(r)):(!1!==e.ssr&&l.isReady&&l.isReady(n)&&r.loadSync(),r)}Object(u.a)(o,t),o.getDerivedStateFromProps=function(t,e){var n=d(t);return Object(a.a)({},e,{cacheKey:n,loading:e.loading||e.cacheKey!==n})};var p=o.prototype;return p.componentDidMount=function(){this.mounted=!0,this.state.loading?this.loadAsync():this.state.error||this.triggerOnLoad()},p.componentDidUpdate=function(t,e){e.cacheKey!==this.state.cacheKey&&(this.promise=null,this.loadAsync())},p.componentWillUnmount=function(){this.mounted=!1},p.safeSetState=function(t,e){this.mounted&&this.setState(t,e)},p.triggerOnLoad=function(){var t=this;c&&setTimeout((function(){c(t.state.result,t.props)}))},p.loadSync=function(){if(this.state.loading)try{var t=l.requireSync(this.props),e=n(t,{Loadable:g});this.state.result=e,this.state.loading=!1}catch(t){this.state.error=t}},p.getCacheKey=function(){return d(this.props)||JSON.stringify(this.props)},p.getCache=function(){return h[this.getCacheKey()]},p.setCache=function(t){h[this.getCacheKey()]=t},p.loadAsync=function(){var t=this;if(!this.promise){var r=this.props,o=(r.__chunkExtractor,r.forwardedRef,Object(i.a)(r,["__chunkExtractor","forwardedRef"]));this.promise=l.requireAsync(o).then((function(r){var o=n(r,{Loadable:g});e.suspense&&t.setCache(o),t.safeSetState({result:n(r,{Loadable:g}),loading:!1},(function(){return t.triggerOnLoad()}))})).catch((function(e){t.safeSetState({error:e,loading:!1})}))}return this.promise},p.render=function(){var t=this.props,n=t.forwardedRef,o=t.fallback,s=(t.__chunkExtractor,Object(i.a)(t,["forwardedRef","fallback","__chunkExtractor"])),u=this.state,c=u.error,l=u.loading,f=u.result;if(e.suspense){var p=this.getCache();if(!p)throw this.loadAsync();return r({loading:!1,fallback:null,result:p,options:e,props:Object(a.a)({},s,{ref:n})})}if(c)throw c;var h=o||e.fallback||null;return l?h:r({loading:l,fallback:h,result:f,options:e,props:Object(a.a)({},s,{ref:n})})},o}(o.a.Component),m=(y=v,function(t){return o.a.createElement(p.Consumer,null,(function(e){return o.a.createElement(y,Object.assign({__chunkExtractor:e},t))}))}),g=o.a.forwardRef((function(t,e){return o.a.createElement(m,Object.assign({forwardedRef:e},t))}));return g.preload=function(t){l.requireAsync(t)},g.load=function(t){return l.requireAsync(t)},g}return{loadable:l,lazy:function(t,e){return l(t,Object(a.a)({},e,{suspense:!0}))}}}var y=d({resolve:function(t,e){var n=e.Loadable,r=t.__esModule?t.default:t.default||t;return l()(n,r,{preload:!0}),r},render:function(t){var e=t.result,n=t.props;return o.a.createElement(e,n)}}),v=y.loadable,m=y.lazy,g=d({onLoad:function(t,e){t&&e.forwardedRef&&("function"==typeof e.forwardedRef?e.forwardedRef(t):e.forwardedRef.current=t)},render:function(t){var e=t.result,n=t.loading,r=t.props;return!n&&r.children?r.children(e):null}}),b=g.loadable,_=g.lazy;var w=v;w.lib=b,m.lib=_;e.a=w},,function(t,e,n){var r=n(18),o=n(9),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(67)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(32),o=n(17),i=n(69);t.exports=function(t){return function(e,n,a){var s,u=r(e),c=o(u.length),l=i(a,c);if(t&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(52);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(15)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},t(i)}catch(t){}return n}},function(t,e,n){"use strict";var r=n(11);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){"use strict";var r=n(105),o=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var i=n.call(t,e);if("object"!=typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},function(t,e,n){"use strict";n(192);var r=n(27),o=n(31),i=n(10),a=n(53),s=n(15),u=n(154),c=s("species"),l=!i((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")})),f=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var p=s(t),h=!i((function(){var e={};return e[p]=function(){return 7},7!=""[t](e)})),d=h?!i((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[c]=function(){return n}),n[p](""),!e})):void 0;if(!h||!d||"replace"===t&&!l||"split"===t&&!f){var y=/./[p],v=n(a,p,""[t],(function(t,e,n,r,o){return e.exec===u?h&&!o?{done:!0,value:y.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}})),m=v[0],g=v[1];r(String.prototype,t,m),o(RegExp.prototype,p,2==e?function(t,e){return g.call(t,this,e)}:function(t){return g.call(t,this)})}}},function(t,e,n){var r=n(42),o=n(187),i=n(149),a=n(11),s=n(17),u=n(151),c={},l={};(e=t.exports=function(t,e,n,f,p){var h,d,y,v,m=p?function(){return t}:u(t),g=r(n,f,e?2:1),b=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(i(m)){for(h=s(t.length);h>b;b++)if((v=e?g(a(d=t[b])[0],d[1]):g(t[b]))===c||v===l)return v}else for(y=m.call(t);!(d=y.next()).done;)if((v=o(y,g,d.value,e))===c||v===l)return v}).BREAK=c,e.RETURN=l},function(t,e,n){var r=n(9).navigator;t.exports=r&&r.userAgent||""},function(t,e,n){"use strict";var r=n(9),o=n(1),i=n(27),a=n(89),s=n(58),u=n(119),c=n(88),l=n(12),f=n(10),p=n(115),h=n(84),d=n(140);t.exports=function(t,e,n,y,v,m){var g=r[t],b=g,_=v?"set":"add",w=b&&b.prototype,x={},O=function(t){var e=w[t];i(w,t,"delete"==t||"has"==t?function(t){return!(m&&!l(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return m&&!l(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof b&&(m||w.forEach&&!f((function(){(new b).entries().next()})))){var S=new b,k=S[_](m?{}:-0,1)!=S,T=f((function(){S.has(1)})),C=p((function(t){new b(t)})),E=!m&&f((function(){for(var t=new b,e=5;e--;)t[_](e,e);return!t.has(-0)}));C||((b=e((function(e,n){c(e,b,t);var r=d(new g,e,b);return null!=n&&u(n,v,r[_],r),r}))).prototype=w,w.constructor=b),(T||E)&&(O("delete"),O("has"),v&&O("get")),(E||k)&&O(_),m&&w.clear&&delete w.clear}else b=y.getConstructor(e,t,v,_),a(b.prototype,n),s.NEED=!0;return h(b,t),x[t]=b,o(o.G+o.W+o.F*(b!=g),x),m||y.setStrong(b,t,v),b}},function(t,e,n){for(var r,o=n(9),i=n(31),a=n(66),s=a("typed_array"),u=a("view"),c=!(!o.ArrayBuffer||!o.DataView),l=c,f=0,p="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");f<9;)(r=o[p[f++]])?(i(r.prototype,s,!0),i(r.prototype,u,!0)):l=!1;t.exports={ABV:c,CONSTR:l,TYPED:s,VIEW:u}},function(t,e,n){"use strict";var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,s,u=a(t),c=1;cvoid 0===t||"number"==typeof t||"string"==typeof t&&("balanced"===t||"interactive"===t||"playback"===t)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));class r{constructor(t){this._map=new Map(t)}get size(){return this._map.size}entries(){return this._map.entries()}forEach(t,e=null){return this._map.forEach((n,r)=>t.call(e,n,r,this))}get(t){return this._map.get(t)}has(t){return this._map.has(t)}keys(){return this._map.keys()}values(){return this._map.values()}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n,r,o)=>{"function"==typeof t.copyToChannel?0!==e[n].byteLength&&t.copyToChannel(e[n],r,o):0!==e[n].byteLength&&t.getChannelData(r).set(e[n],o)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n,r,o,i,a,s,u,c,l)=>{const f=c.length;let p=s;for(let s=0;snull===t?512:Math.max(512,Math.min(16384,Math.pow(2,Math.round(Math.log2(t*e)))))},function(t,e){function n(e){return t.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},n(e)}t.exports=n},function(t,e,n){"use strict";n.d(e,"a",(function(){return R})),n.d(e,"b",(function(){return j}));var r=n(3),o=n(0),i=n.n(o),a=n(24),s=0;var u={};function c(t){return u[t]||(u[t]=function(t){if("function"==typeof Symbol)return Symbol(t);var e="__$mobx-react "+t+" ("+s+")";return s++,e}(t)),u[t]}function l(t,e){if(f(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(var o=0;o2?r-2:0),i=2;i",s=t.bind(this),u=!1,c=new r.b(i+".render()",(function(){if(!u&&(u=!0,!0!==e[_])){var t=!0;try{h(e,x,!0),e[w]||o.Component.prototype.forceUpdate.call(e),t=!1}finally{h(e,x,!1),t&&c.dispose()}}}));function l(){u=!1;var t=void 0,e=void 0;if(c.track((function(){try{e=Object(r.c)(!1,s)}catch(e){t=e}})),t)throw t;return e}return c.reactComponent=this,l[b]=c,this.render=l,l.call(this)}function k(t,e){return Object(a.b)()&&console.warn("[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==e||!l(this.props,t)}function T(t,e){var n=c("reactProp_"+e+"_valueHolder"),o=c("reactProp_"+e+"_atomHolder");function i(){return this[o]||h(this,o,Object(r.h)("reactive "+e)),this[o]}Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){var t=!1;return r.e&&r.d&&(t=Object(r.e)(!0)),i.call(this).reportObserved(),r.e&&r.d&&Object(r.d)(t),this[n]},set:function(t){this[x]||l(this[n],t)?h(this,n,t):(h(this,n,t),h(this,w,!0),i.call(this).reportChanged(),h(this,w,!1))}})}var C="function"==typeof Symbol&&Symbol.for,E=C?Symbol.for("react.forward_ref"):"function"==typeof o.forwardRef&&Object(o.forwardRef)((function(t){return null})).$$typeof,A=C?Symbol.for("react.memo"):"function"==typeof o.memo&&Object(o.memo)((function(t){return null})).$$typeof;function j(t){if(!0===t.isMobxInjector&&console.warn("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),A&&t.$$typeof===A)throw new Error("Mobx observer: You are trying to use 'observer' on a function component wrapped in either another observer or 'React.memo'. The observer already applies 'React.memo' for you.");if(E&&t.$$typeof===E){var e=t.render;if("function"!=typeof e)throw new Error("render property of ForwardRef was not a function");return Object(o.forwardRef)((function(){var t=arguments;return Object(o.createElement)(a.a,null,(function(){return e.apply(void 0,t)}))}))}return"function"!=typeof t||t.prototype&&t.prototype.render||t.isReactClass||Object.prototype.isPrototypeOf.call(o.Component,t)?O(t):Object(a.c)(t)}function P(){return(P=Object.assign||function(t){for(var e=1;e0;(i>>>=1)&&(e+=e))1&i&&(n+=e);return n}},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e){var n=Math.expm1;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:n},function(t,e,n){var r=n(44),o=n(53);t.exports=function(t){return function(e,n){var i,a,s=String(o(e)),u=r(n),c=s.length;return u<0||u>=c?t?"":void 0:(i=s.charCodeAt(u))<55296||i>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):i:t?s.slice(u,u+2):a-56320+(i-55296<<10)+65536}}},function(t,e,n){"use strict";var r=n(67),o=n(1),i=n(27),a=n(31),s=n(86),u=n(186),c=n(84),l=n(72),f=n(15)("iterator"),p=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,e,n,d,y,v,m){u(n,e,d);var g,b,_,w=function(t){if(!p&&t in k)return k[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},x=e+" Iterator",O="values"==y,S=!1,k=t.prototype,T=k[f]||k["@@iterator"]||y&&k[y],C=T||w(y),E=y?O?w("entries"):C:void 0,A="Array"==e&&k.entries||T;if(A&&(_=l(A.call(new t)))!==Object.prototype&&_.next&&(c(_,x,!0),r||"function"==typeof _[f]||a(_,f,h)),O&&T&&"values"!==T.name&&(S=!0,C=function(){return T.call(this)}),r&&!m||!p&&!S&&k[f]||a(k,f,C),s[e]=C,s[x]=h,y)if(g={values:O?C:w("values"),keys:v?C:w("keys"),entries:E},m)for(b in g)b in k||i(k,b,g[b]);else o(o.P+o.F*(p||S),e,g);return g}},function(t,e,n){var r=n(147),o=n(53);t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(t))}},function(t,e,n){var r=n(12),o=n(52),i=n(15)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},function(t,e,n){var r=n(15)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(t){}}return!0}},function(t,e,n){var r=n(86),o=n(15)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,e,n){"use strict";var r=n(21),o=n(65);t.exports=function(t,e,n){e in t?r.f(t,e,o(0,n)):t[e]=n}},function(t,e,n){var r=n(105),o=n(15)("iterator"),i=n(86);t.exports=n(18).getIteratorMethod=function(t){if(null!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e,n){"use strict";var r=n(25),o=n(69),i=n(17);t.exports=function(t){for(var e=r(this),n=i(e.length),a=arguments.length,s=o(a>1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,c=void 0===u?n:o(u,n);c>s;)e[s++]=t;return e}},function(t,e,n){"use strict";var r=n(73),o=n(191),i=n(86),a=n(32);t.exports=n(145)(Array,"Array",(function(t,e){this._t=a(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e,n){"use strict";var r,o,i=n(116),a=RegExp.prototype.exec,s=String.prototype.replace,u=a,c=(r=/a/,o=/b*/g,a.call(r,"a"),a.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),l=void 0!==/()??/.exec("")[1];(c||l)&&(u=function(t){var e,n,r,o,u=this;return l&&(n=new RegExp("^"+u.source+"$(?!\\s)",i.call(u))),c&&(e=u.lastIndex),r=a.call(u,t),c&&r&&(u.lastIndex=u.global?r.index+r[0].length:e),l&&r&&r.length>1&&s.call(r[0],n,(function(){for(o=1;on;)e.push(arguments[n++]);return m[++v]=function(){s("function"==typeof t?t:Function(t),e)},r(v),v},h=function(t){delete m[t]},"process"==n(52)(f)?r=function(t){f.nextTick(a(g,t,1))}:y&&y.now?r=function(t){y.now(a(g,t,1))}:d?(i=(o=new d).port2,o.port1.onmessage=b,r=a(i.postMessage,i,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(t){l.postMessage(t+"","*")},l.addEventListener("message",b,!1)):r="onreadystatechange"in c("script")?function(t){u.appendChild(c("script")).onreadystatechange=function(){u.removeChild(this),g.call(t)}}:function(t){setTimeout(a(g,t,1),0)}),t.exports={set:p,clear:h}},function(t,e,n){"use strict";var r=n(9),o=n(20),i=n(67),a=n(122),s=n(31),u=n(89),c=n(10),l=n(88),f=n(44),p=n(17),h=n(199),d=n(71).f,y=n(21).f,v=n(152),m=n(84),g=r.ArrayBuffer,b=r.DataView,_=r.Math,w=r.RangeError,x=r.Infinity,O=g,S=_.abs,k=_.pow,T=_.floor,C=_.log,E=_.LN2,A=o?"_b":"buffer",j=o?"_l":"byteLength",P=o?"_o":"byteOffset";function D(t,e,n){var r,o,i,a=new Array(n),s=8*n-e-1,u=(1<>1,l=23===e?k(2,-24)-k(2,-77):0,f=0,p=t<0||0===t&&1/t<0?1:0;for((t=S(t))!=t||t===x?(o=t!=t?1:0,r=u):(r=T(C(t)/E),t*(i=k(2,-r))<1&&(r--,i*=2),(t+=r+c>=1?l/i:l*k(2,1-c))*i>=2&&(r++,i/=2),r+c>=u?(o=0,r=u):r+c>=1?(o=(t*i-1)*k(2,e),r+=c):(o=t*k(2,c-1)*k(2,e),r=0));e>=8;a[f++]=255&o,o/=256,e-=8);for(r=r<0;a[f++]=255&r,r/=256,s-=8);return a[--f]|=128*p,a}function M(t,e,n){var r,o=8*n-e-1,i=(1<>1,s=o-7,u=n-1,c=t[u--],l=127&c;for(c>>=7;s>0;l=256*l+t[u],u--,s-=8);for(r=l&(1<<-s)-1,l>>=-s,s+=e;s>0;r=256*r+t[u],u--,s-=8);if(0===l)l=1-a;else{if(l===i)return r?NaN:c?-x:x;r+=k(2,e),l-=a}return(c?-1:1)*r*k(2,l-e)}function I(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function R(t){return[255&t]}function N(t){return[255&t,t>>8&255]}function F(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function q(t){return D(t,52,8)}function V(t){return D(t,23,4)}function L(t,e,n){y(t.prototype,e,{get:function(){return this[n]}})}function z(t,e,n,r){var o=h(+n);if(o+e>t[j])throw w("Wrong index!");var i=t[A]._b,a=o+t[P],s=i.slice(a,a+e);return r?s:s.reverse()}function B(t,e,n,r,o,i){var a=h(+n);if(a+e>t[j])throw w("Wrong index!");for(var s=t[A]._b,u=a+t[P],c=r(+o),l=0;lH;)(U=$[H++])in g||s(g,U,O[U]);i||(W.constructor=g)}var G=new b(new g(2)),K=b.prototype.setInt8;G.setInt8(0,2147483648),G.setInt8(1,2147483649),!G.getInt8(0)&&G.getInt8(1)||u(b.prototype,{setInt8:function(t,e){K.call(this,t,e<<24>>24)},setUint8:function(t,e){K.call(this,t,e<<24>>24)}},!0)}else g=function(t){l(this,g,"ArrayBuffer");var e=h(t);this._b=v.call(new Array(e),0),this[j]=e},b=function(t,e,n){l(this,b,"DataView"),l(t,g,"DataView");var r=t[j],o=f(e);if(o<0||o>r)throw w("Wrong offset!");if(o+(n=void 0===n?r-o:p(n))>r)throw w("Wrong length!");this[A]=t,this[P]=o,this[j]=n},o&&(L(g,"byteLength","_l"),L(b,"buffer","_b"),L(b,"byteLength","_l"),L(b,"byteOffset","_o")),u(b.prototype,{getInt8:function(t){return z(this,1,t)[0]<<24>>24},getUint8:function(t){return z(this,1,t)[0]},getInt16:function(t){var e=z(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=z(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return I(z(this,4,t,arguments[1]))},getUint32:function(t){return I(z(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return M(z(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return M(z(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){B(this,1,t,R,e)},setUint8:function(t,e){B(this,1,t,R,e)},setInt16:function(t,e){B(this,2,t,N,e,arguments[2])},setUint16:function(t,e){B(this,2,t,N,e,arguments[2])},setInt32:function(t,e){B(this,4,t,F,e,arguments[2])},setUint32:function(t,e){B(this,4,t,F,e,arguments[2])},setFloat32:function(t,e){B(this,4,t,V,e,arguments[2])},setFloat64:function(t,e){B(this,8,t,q,e,arguments[2])}});m(g,"ArrayBuffer"),m(b,"DataView"),s(b.prototype,a.VIEW,!0),e.ArrayBuffer=g,e.DataView=b},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){t.exports=!n(205)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e,n){"use strict";t.exports=n(1035)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.notifyOfNext=function(t,e){var n=function t(e){s===Number.MAX_SAFE_INTEGER&&(s=0);return s++,void 0===a[e][s]?s:t(e)}(t);return a[t][n]=i[t].push({id:n,callback:e})-1,n},e.cancelNotifyOfNext=function(t,e){"undefined"!==a[t][e]&&(i[t][a[t][e]].callback=u,delete a[t][e])},e.notifyOfAll=function(t,e){t.forEach((function(t){o[t]=e}))};var r=n(75),o={},i={},a={},s=0;var u=function(){};function c(t){o[t.type](t)}function l(t){if(0!==i[t.type].length){t.persist=u;var e=[],n={};i[t.type].forEach((function(r){"reNotifyOfNext"===r.callback(t)&&(n[r.id]=e.push(r)-1)})),i[t.type]=e,a[t.type]=n}}function f(t){c(t),l(t)}function p(t,e,n,o){i[e]=[],a[e]={},t.addEventListener(e,n,r.passiveEventSupport?{capture:o,passive:"click"!==e}:o)}if(r.deviceHasTouch&&(p(window,"click",c,!0),Object.keys(r.touchEvents).forEach((function(t){p(document,t,"touchstart"===t?f:c,!0)}))),r.deviceHasMouse){Object.keys(r.mouseEvents).forEach((function(t){p(document,t,"mouseenter"===t?f:c,!("mouseenter"===t||"mouseleave"===t))})),p(document,"dragstart",l,!0),r.passiveEventSupport&&p(document,"scroll",l,!0),i.mutation=[],a.mutation={};var h=(0,r.dummyEvent)("mutation");(window.MutationObserver?new MutationObserver(l.bind(null,h)):{observe:function(){}}).observe(document,{childList:!0,attributes:!0,subtree:!0,characterData:!0})}["focus","blur"].forEach((function(t){p(window,t,l,!1)})),p(document,"keydown",c,!0)},function(t,e){t.exports=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}},function(t,e,n){var r=n(1044);t.exports=h,t.exports.parse=i,t.exports.compile=function(t,e){return s(i(t,e))},t.exports.tokensToFunction=s,t.exports.tokensToRegExp=p;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(t,e){for(var n,r=[],i=0,a=0,s="",l=e&&e.delimiter||"/";null!=(n=o.exec(t));){var f=n[0],p=n[1],h=n.index;if(s+=t.slice(a,h),a=h+f.length,p)s+=p[1];else{var d=t[a],y=n[2],v=n[3],m=n[4],g=n[5],b=n[6],_=n[7];s&&(r.push(s),s="");var w=null!=y&&null!=d&&d!==y,x="+"===b||"*"===b,O="?"===b||"*"===b,S=n[2]||l,k=m||g;r.push({name:v||i++,prefix:y||"",delimiter:S,optional:O,repeat:x,partial:w,asterisk:!!_,pattern:k?c(k):_?".*":"[^"+u(S)+"]+?"})}}return a{try{return new DOMException("","UnknownError")}catch(t){return t.name="UnknownError",t}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>{if(null===t)return!1;const e=t.length;return e%2!=0?0!==t[Math.floor(e/2)]:t[e/2-1]+t[e/2]!==0}},function(t,e,n){var r=n(1040);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)}},function(t,e,n){var r=n(1041),o=n(843);t.exports=function(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?o(t):e}},function(t,e){function n(){return t.exports=n=Object.assign||function(t){for(var e=1;e=10)return t;for(o in t)"string"==typeof t[o]&&0===t[o].indexOf("[%lktxp]")?(i=t[o].substring(8),n.hasOwnProperty(i)&&(t[o]=n[i])):"object"==typeof t[o]&&(t[o]=e.resolveTransformObject(t[o],n,r));return t},resolveTransformParams:function(t,n){var r,o,i=[];if(void 0===n)return t;for(r=0;ro)&&n:r==r&&o!=o||(o!=o||r==r)&&(te)&&(t==e?n:(r=t.toString())<(o=e.toString())||r==o&&n))}function u(t,e,n){var r,o,i,a;if(!t||!e||!0===t||!0===e||t!=t||e!=e){switch(t){case void 0:case null:i=1;break;case!1:i=3;break;case!0:i=4;break;case"":i=5;break;default:i=t==t?9:0}switch(e){case void 0:case null:a=1;break;case!1:a=3;break;case!0:a=4;break;case"":a=5;break;default:a=e==e?9:0}if(9!==i||9!==a)return i===a?n:i>a}return r=Number(t),o=Number(e),r==r&&o==o?r>o||!(re||!(t(o=e.toString())||r==o&&n))}function c(t,e,n){return i.aeq(t,e)?0:i.lt(t,e,!1)?n?1:-1:i.gt(t,e,!1)?n?-1:1:0}function l(t,e,n,r,o){var i,a=o||0,s=e[a],u=!1;if("object"==typeof t&&s in t&&(i=t[s]),a+1>=e.length)u=n(i,r);else if(Array.isArray(i))for(var c=0,f=i.length;ce},$jgte:function(t,e){return t>=e},$jlt:function(t,e){return t=e[0]&&t<=e[1]},$in:function(t,e){return-1!==e.indexOf(t)},$nin:function(t,e){return-1===e.indexOf(t)},$keyin:function(t,e){return t in e},$nkeyin:function(t,e){return!(t in e)},$definedin:function(t,e){return void 0!==e[t]},$undefinedin:function(t,e){return void 0===e[t]},$regex:function(t,e){return e.test(t)},$containsString:function(t,e){return"string"==typeof t&&-1!==t.indexOf(e)},$containsNone:function(t,e){return!h.$containsAny(t,e)},$containsAny:function(t,e){var n=f(t);return null!==n&&(Array.isArray(e)?e.some(n):n(e))},$contains:function(t,e){var n=f(t);return null!==n&&(Array.isArray(e)?e.every(n):n(e))},$elemMatch:function(t,e){return!!Array.isArray(t)&&t.some((function(t){return Object.keys(e).every((function(n){var r=e[n];return"object"==typeof r&&r||(r={$eq:r}),-1!==n.indexOf(".")?l(t,n.split("."),p,e[n]):p(t[n],r)}))}))},$type:function(t,e){var n=typeof t;return"object"===n&&(Array.isArray(t)?n="array":t instanceof Date&&(n="date")),"object"!=typeof e?n===e:p(n,e)},$finite:function(t,e){return e===isFinite(t)},$size:function(t,e){return!!Array.isArray(t)&&("object"!=typeof e?t.length===e:p(t.length,e))},$len:function(t,e){return"string"==typeof t&&("object"!=typeof e?t.length===e:p(t.length,e))},$where:function(t,e){return!0===e(t)},$not:function(t,e){return!p(t,e)},$and:function(t,e){for(var n=0,r=e.length;n=0||"$loki"==s||"meta"==s)o[s]=e[s];else{var u=a(t[s],e[s]);void 0!==u&&u!={}&&(o[s]=u)}}return 0===Object.keys(o).length?void 0:o}return t===e?void 0:e}function s(){r.changes=[]}this.observerCallback=function(e){var n="function"==typeof Set?new Set:[];n.add||(n.add=function(t){return-1===this.indexOf(t)&&this.push(t),this}),e.forEach((function(t){n.add(t.object)})),n.forEach((function(e){if(!t.call(e,"$loki"))return r.removeAutoUpdateObserver(e);try{r.update(e)}catch(t){}}))},this.getChangeDelta=function(t,e){return e?a(e,t):JSON.parse(JSON.stringify(t))},this.getObjectDelta=a,this.getChanges=function(){return r.changes},this.flushChanges=s,this.setChangesApi=function(t){r.disableChangesApi=!t,t||(r.disableDeltaChangesApi=!1)},this.on("delete",(function(t){r.disableChangesApi||r.createChange(r.name,"R",t)})),this.on("warning",(function(t){r.lokiConsoleWrapper.warn(t)})),s()}function T(t){return-1!==t.indexOf(".")}function C(t){return parseFloat(t,10)}function E(t,e){return t+e}function A(t,e){return t-e}function j(t){return t.reduce(E,0)/t.length}function P(t,e,n){if(!1===n)return t[e];for(var r=e.split("."),o=t;r.length>0;)o=o[r.shift()];return o}function D(t,e,n){for(var r,o,i=0,a=t.length;i>1,0===(r=n.apply(null,[e,t[o]])))return{found:!0,index:o};r<0?a=o:i=o+1}return{found:!1,index:a}}function M(t){return function(e,n){return D(e,n,t)}}function I(){}function R(t){this.field=t,this.keyMap={},this.lokiMap={}}function N(t){this.index={},this.field=t}return m.prototype.events={},m.prototype.asyncListeners=!1,m.prototype.on=function(t,e){var n,r=this;return Array.isArray(t)?(t.forEach((function(t){r.on(t,e)})),e):((n=this.events[t])||(n=this.events[t]=[]),n.push(e),e)},m.prototype.emit=function(t){var e=this,n=Array.prototype.slice.call(arguments,1);if(!t||!this.events[t])throw new Error("No event "+t+" defined");this.events[t].forEach((function(t){e.asyncListeners?setTimeout((function(){t.apply(e,n)}),1):t.apply(e,n)}))},m.prototype.addListener=m.prototype.on,m.prototype.removeListener=function(t,e){var n=this;if(Array.isArray(t))t.forEach((function(t){n.removeListener(t,e)}));else if(this.events[t]){var r=this.events[t];r.splice(r.indexOf(e),1)}},g.prototype=new m,g.prototype.constructor=g,g.prototype.getIndexedAdapter=function(){return n(1037)},g.prototype.configureOptions=function(t,e){var n={fs:w,localStorage:x,memory:b};if(this.options={},this.persistenceMethod=null,this.persistenceAdapter=null,void 0!==t){if(this.options=t,this.options.hasOwnProperty("persistenceMethod")&&"function"==typeof n[t.persistenceMethod]&&(this.persistenceMethod=t.persistenceMethod,this.persistenceAdapter=new n[t.persistenceMethod]),this.options.hasOwnProperty("adapter")&&(this.persistenceMethod="adapter",this.persistenceAdapter=t.adapter,this.options.adapter=null,this.isIncremental="incremental"===this.persistenceAdapter.mode),t.autoload&&e){var r=this;setTimeout((function(){r.loadDatabase(t,t.autoloadCallback)}),1)}this.options.hasOwnProperty("autosaveInterval")&&(this.autosaveDisable(),this.autosaveInterval=parseInt(this.options.autosaveInterval,10)),this.options.hasOwnProperty("autosave")&&this.options.autosave&&(this.autosaveDisable(),this.autosave=!0,this.options.hasOwnProperty("autosaveCallback")?this.autosaveEnable(t,t.autosaveCallback):this.autosaveEnable()),this.options.hasOwnProperty("throttledSaves")&&(this.throttledSaves=this.options.throttledSaves)}this.options.hasOwnProperty("serializationMethod")||(this.options.serializationMethod="normal"),this.options.hasOwnProperty("destructureDelimiter")||(this.options.destructureDelimiter="$<\n"),null===this.persistenceAdapter&&(this.persistenceMethod={NODEJS:"fs",BROWSER:"localStorage",CORDOVA:"localStorage",MEMORY:"memory"}[this.ENV],this.persistenceMethod&&(this.persistenceAdapter=new n[this.persistenceMethod]))},g.prototype.copy=function(t){var e,n,r=new g(this.filename,{env:"NA"});if(t=t||{},r.loadJSONObject(this,{retainDirtyFlags:!0}),t.hasOwnProperty("removeNonSerializable")&&!0===t.removeNonSerializable)for(r.autosaveHandle=null,r.persistenceAdapter=null,e=r.collections.length,n=0;n0)throw new Error("disableMeta option cannot be passed as true when ttl is enabled")}for(n=0;n=0)return this.serializeCollection({delimited:t.delimited,delimiter:t.delimiter,collectionIndex:t.partition});for((i=new g(this.filename)).loadJSONObject(this),e=0;er&&(u=!0):(o=JSON.parse(i[s]),n.collections[a].data.push(o)),i[s++]=null;return n},g.prototype.deserializeCollection=function(t,e){var n,r,o=[];for((e=e||{}).hasOwnProperty("partitioned")||(e.partitioned=!1),e.hasOwnProperty("delimited")||(e.delimited=!0),e.hasOwnProperty("delimiter")||(e.delimiter=this.options.destructureDelimiter),e.delimited?(o=t.split(e.delimiter)).pop():o=t,r=o.length,n=0;n=i&&(c=!0)),o>=this.options.pageSize&&(l=!0),l&&!c||(u+=this.options.delimiter,o+=a),c||l)return void this.adapter.saveDatabase(r,u,f)},w.prototype.loadDatabase=function(t,e){var n=this;this.fs.stat(t,(function(r,o){!r&&o.isFile()?n.fs.readFile(t,{encoding:"utf8"},(function(t,n){e(t?new Error(t):n)})):e(null)}))},w.prototype.saveDatabase=function(t,e,n){var r=this,o=t+"~";this.fs.writeFile(o,e,(function(e){e?n(new Error(e)):r.fs.rename(o,t,n)}))},w.prototype.deleteDatabase=function(t,e){this.fs.unlink(t,(function(t){t?e(new Error(t)):e()}))},x.prototype.loadDatabase=function(t,e){v()?e(localStorage.getItem(t)):e(new Error("localStorage is not available"))},x.prototype.saveDatabase=function(t,e,n){v()?(localStorage.setItem(t,e),n(null)):n(new Error("localStorage is not available"))},x.prototype.deleteDatabase=function(t,e){v()?(localStorage.removeItem(t),e(null)):e(new Error("localStorage is not available"))},g.prototype.throttledSaveDrain=function(t,e){var n=this,r=(new Date).getTime();if(this.throttledSaves||t(!0),(e=e||{}).hasOwnProperty("recursiveWait")||(e.recursiveWait=!0),e.hasOwnProperty("recursiveWaitLimit")||(e.recursiveWaitLimit=!1),e.hasOwnProperty("recursiveWaitLimitDuration")||(e.recursiveWaitLimitDuration=2e3),e.hasOwnProperty("started")||(e.started=(new Date).getTime()),this.throttledSaves&&this.throttledSavePending){if(!e.recursiveWait)return void this.throttledCallbacks.push(t);this.throttledCallbacks.push((function(){return n.throttledSavePending?e.recursiveWaitLimit&&r-e.started>e.recursiveWaitLimitDuration?void t(!1):void n.throttledSaveDrain(t,e):void t(!0)}))}else t(!0)},g.prototype.loadDatabaseInternal=function(t,e){var n=e||function(t,e){if(t)throw t},r=this;null!==this.persistenceAdapter?this.persistenceAdapter.loadDatabase(this.filename,(function(e){if("string"==typeof e){var o=!1;try{r.loadJSON(e,t||{}),o=!0}catch(t){n(t)}o&&(n(null),r.emit("loaded","database "+r.filename+" loaded"))}else{if(!e)return n(null),void r.emit("loaded","empty database "+r.filename+" loaded");if(e instanceof Error)return void n(e);if("object"==typeof e)return r.loadJSONObject(e,t||{}),n(null),void r.emit("loaded","database "+r.filename+" loaded");n("unexpected adapter response : "+e)}})):n(new Error("persistenceAdapter not configured"))},g.prototype.loadDatabase=function(t,e){var n=this;this.throttledSaves?this.throttledSaveDrain((function(r){if(r)return n.throttledSavePending=!0,void n.loadDatabaseInternal(t,(function(t){0===n.throttledCallbacks.length?n.throttledSavePending=!1:n.saveDatabase(),"function"==typeof e&&e(t)}));"function"==typeof e&&e(new Error("Unable to pause save throttling long enough to read database"))}),t):this.loadDatabaseInternal(t,e)},g.prototype.saveDatabaseInternal=function(t){var e=t||function(t){if(t)throw t},n=this;if(this.persistenceAdapter)if("reference"!==this.persistenceAdapter.mode&&this.autosaveClearFlags(),"incremental"===this.persistenceAdapter.mode){var r=this.copy({removeNonSerializable:!0}),o=this.collections.map((function(t){return t.dirtyIds}));this.collections.forEach((function(t){t.dirtyIds=[]})),this.persistenceAdapter.saveDatabase(this.filename,r,(function(t){t&&n.collections.forEach((function(t,e){t.dirtyIds=t.dirtyIds.concat(o[e])})),e(t)}))}else"reference"===this.persistenceAdapter.mode&&"function"==typeof this.persistenceAdapter.exportDatabase?this.persistenceAdapter.exportDatabase(this.filename,this.copy({removeNonSerializable:!0}),(function(t){n.autosaveClearFlags(),e(t)})):this.persistenceAdapter.saveDatabase(this.filename,this.serialize(),(function(t){e(t)}));else e(new Error("persistenceAdapter not configured"))},g.prototype.saveDatabase=function(t){if(this.throttledSaves)if(this.throttledSavePending)this.throttledCallbacks.push(t);else{var e=this.throttledCallbacks;this.throttledCallbacks=[],e.unshift(t),this.throttledSavePending=!0;var n=this;this.saveDatabaseInternal((function(t){n.throttledSavePending=!1,e.forEach((function(e){"function"==typeof e&&setTimeout((function(){e(t)}),1)})),n.throttledCallbacks.length>0&&n.saveDatabase()}))}else this.saveDatabaseInternal(t)},g.prototype.save=g.prototype.saveDatabase,g.prototype.deleteDatabase=function(t,e){var n=e||function(t,e){if(t)throw t};"function"!=typeof t||e||(n=t),null!==this.persistenceAdapter?this.persistenceAdapter.deleteDatabase(this.filename,(function(t){n(t)})):n(new Error("persistenceAdapter not configured"))},g.prototype.autosaveDirty=function(){for(var t=0;t0&&(this.filteredrows=[]),this.filterInitialized=!1,this},O.prototype.toJSON=function(){var t=this.copy();return t.collection=null,t},O.prototype.limit=function(t){this.filterInitialized||0!==this.filteredrows.length||(this.filteredrows=this.collection.prepareFullDocIndex());var e=new O(this.collection);return e.filteredrows=this.filteredrows.slice(0,t),e.filterInitialized=!0,e},O.prototype.offset=function(t){this.filterInitialized||0!==this.filteredrows.length||(this.filteredrows=this.collection.prepareFullDocIndex());var e=new O(this.collection);return e.filteredrows=this.filteredrows.slice(t),e.filterInitialized=!0,e},O.prototype.copy=function(){var t=new O(this.collection);return this.filteredrows.length>0&&(t.filteredrows=this.filteredrows.slice()),t.filterInitialized=this.filterInitialized,t},O.prototype.branch=O.prototype.copy,O.prototype.transform=function(t,n){var r,o,i=this;if("string"==typeof t&&this.collection.transforms.hasOwnProperty(t)&&(t=this.collection.transforms[t]),"object"!=typeof t||!Array.isArray(t))throw new Error("Invalid transform");for(void 0!==n&&(t=e.resolveTransformParams(t,n)),r=0;rn[t]?1:e[t]1)return this.find({$and:m},r)}if(!i||"getAll"===p)return r&&(this.filterInitialized?this.filteredrows=this.filteredrows.slice(0,1):(this.filteredrows=this.collection.data.length>0?[0]:[],this.filterInitialized=!0)),this;if("$and"===i||"$or"===i)return this[i](a),r&&this.filteredrows.length>1&&(this.filteredrows=this.filteredrows.slice(0,1)),this;if(null===a||"object"!=typeof a||a instanceof Date)u="$eq",c=a;else{if("object"!=typeof a)throw new Error("Do not know what you want to do.");for(f in a)if(t.call(a,f)){u=f,c=a[f];break}}"$regex"!==u&&"object"!=typeof c||(c=function t(e,n){if("$regex"===e)Array.isArray(n)?n=new RegExp(n[0],n[1]):n instanceof RegExp||(n=new RegExp(n));else if("object"==typeof n)for(var r in n)"$regex"!==r&&"object"!=typeof n[r]||(n[r]=t(r,n[r]));return n}(u,c));var b=-1!==i.indexOf(".");!this.filterInitialized&&this.collection.binaryIndices[i]&&d[u]&&(!0!==this.collection.adaptiveBinaryIndices&&this.collection.ensureIndex(i),y=!0,g=this.collection.binaryIndices[i]);var _,w=h[u],x=this.collection.data,O=0,S=0,k=0;if(this.filterInitialized){if(S=(_=this.filteredrows).length,b){for(i=i.split("."),O=0;O=0?(this.filterPipeline[e]=t,this.reapplyFilters()):(this.cachedresultset=null,this.options.persistent&&(this.resultdata=[],this.resultsdirty=!0),this._addFilter(t),this.sortFunction||this.sortCriteria||this.sortCriteriaSimple?this.queueSortPhase():this.queueRebuildEvent(),this)},S.prototype.applyFind=function(t,e){return this.applyFilter({type:"find",val:t,uid:e}),this},S.prototype.applyWhere=function(t,e){return this.applyFilter({type:"where",val:t,uid:e}),this},S.prototype.removeFilter=function(t){var e=this._indexOfFilterWithId(t);if(e<0)throw new Error("Dynamic view does not contain a filter with ID: "+t);return this.filterPipeline.splice(e,1),this.reapplyFilters(),this},S.prototype.count=function(){return this.resultsdirty&&(this.resultdata=this.resultset.data()),this.resultset.count()},S.prototype.data=function(t){return(this.sortDirty||this.resultsdirty)&&this.performSortPhase({suppressRebuildEvent:!0}),this.options.persistent?this.resultdata:this.resultset.data(t)},S.prototype.queueRebuildEvent=function(){if(!this.rebuildPending){this.rebuildPending=!0;var t=this;setTimeout((function(){t.rebuildPending&&(t.rebuildPending=!1,t.emit("rebuild",t))}),this.options.minRebuildInterval)}},S.prototype.queueSortPhase=function(){if(!this.sortDirty){this.sortDirty=!0;var t=this;"active"===this.options.sortPriority?setTimeout((function(){t.performSortPhase()}),this.options.minRebuildInterval):this.queueRebuildEvent()}},S.prototype.performSortPhase=function(t){(this.sortDirty||this.resultsdirty)&&(t=t||{},this.sortDirty&&(this.sortFunction?this.resultset.sort(this.sortFunction):this.sortCriteria?this.resultset.compoundsort(this.sortCriteria):this.sortCriteriaSimple&&this.resultset.simplesort(this.sortCriteriaSimple.propname,this.sortCriteriaSimple.options),this.sortDirty=!1),this.options.persistent&&(this.resultdata=this.resultset.data(),this.resultsdirty=!1),t.suppressRebuildEvent||this.emit("rebuild",this))},S.prototype.evaluateDocument=function(t,e){if(!this.resultset.filterInitialized)return this.options.persistent&&(this.resultdata=this.resultset.data()),void(this.sortFunction||this.sortCriteria||this.sortCriteriaSimple?this.queueSortPhase():this.queueRebuildEvent());var n,r=this.resultset.filteredrows,o=e?-1:r.indexOf(+t),i=r.length,a=new O(this.collection);a.filteredrows=[t],a.filterInitialized=!0;for(var s=0,u=this.filterPipeline.length;s0&&(this.resultset.filteredrows=this.resultset.filteredrows.filter((function(t,e){return!i[e]})),this.options.persistent&&(this.resultdata=this.resultdata.filter((function(t,e){return!i[e]}))),this.sortFunction||this.sortCriteria||this.sortCriteriaSimple?this.queueSortPhase():this.queueRebuildEvent());var l=function(t){return function(e){return e1)&&(n.randomSamplingFactor=.1);var r,o,i,a,s,u=!0;if(!this.binaryIndices.hasOwnProperty(t))throw new Error("called checkIndex on property without an index: "+t);if(this.adaptiveBinaryIndices||this.ensureIndex(t),(a=(s=this.binaryIndices[t].values).length)!==this.data.length)return n.repair&&this.ensureIndex(t,!0),!1;if(0===a)return!0;var c=-1!==t.indexOf(".");if(1===a)u=0===s[0];else if(n.randomSampling){if(h.$lte(e.getIn(this.data[s[0]],t,c),e.getIn(this.data[s[1]],t,c))||(u=!1),h.$lte(e.getIn(this.data[s[a-2]],t,c),e.getIn(this.data[s[a-1]],t,c))||(u=!1),u)for(o=Math.floor((a-1)*n.randomSamplingFactor),r=0;r0)&&(this.adaptiveBinaryIndices=!1);try{for(r=0;r0,l=this;try{for(this.startTransaction(),r=0;r0||s>0||u>0){if(e>0)for(n=0;n1)for(r=0;r>1;if(t="number"==typeof t?t:parseInt(t,10),isNaN(t))throw new TypeError("Passed id is not an integer");for(;r[i]>1]p[i];i++)u++;l.values[o]-=u}return}t=t[0]}if(null===(c=this.getBinaryIndexPosition(t,e)))return null;if(l.values.splice(c,1),!0!==n)for(r=l.values.length,o=0;ot&&l.values[o]--},k.prototype.calculateRangeStart=function(t,n,r,o){var a=this.data,s=this.binaryIndices[t].values,u=0,c=s.length-1,l=0;if(0===s.length)return-1;for(e.getIn(a[s[u]],t,o),e.getIn(a[s[c]],t,o);u>1,i.lt(e.getIn(a[s[l]],t,o),n,!1)?u=l+1:c=l;var f=u;return i.aeq(n,e.getIn(a[s[f]],t,o))?f:i.lt(n,e.getIn(a[s[f]],t,o),!1)?r?f:f-1:r?f+1:f},k.prototype.calculateRangeEnd=function(t,n,r){var o=this.data,a=this.binaryIndices[t].values,s=0,u=a.length-1,c=0;if(0===a.length)return-1;for(e.getIn(o[a[s]],t,r),e.getIn(o[a[u]],t,r);s>1,i.lt(n,e.getIn(o[a[c]],t,r),!1)?u=c:s=c+1;var l=u;return i.aeq(n,e.getIn(o[a[l]],t,r))?l:i.gt(n,e.getIn(o[a[l]],t,r),!1)?l+1:i.aeq(n,e.getIn(o[a[l-1]],t,r))?l-1:l},k.prototype.calculateRange=function(t,n,r){var o,a,s,u=this.data,c=this.binaryIndices[n].values,l=c.length-1;if(0===u.length)return[0,-1];var f=-1!==n.indexOf("."),p=e.getIn(u[c[0]],n,f),h=e.getIn(u[c[l]],n,f);switch(t){case"$eq":case"$aeq":case"$dteq":if(i.lt(r,p,!1)||i.gt(r,h,!1))return[0,-1];break;case"$gt":if(i.gt(r,h,!0))return[0,-1];if(i.gt(p,r,!1))return[0,l];break;case"$gte":if(i.gt(r,h,!1))return[0,-1];if(i.gt(p,r,!0))return[0,l];break;case"$lt":if(i.lt(r,p,!0))return[0,-1];if(i.lt(h,r,!1))return[0,l];break;case"$lte":if(i.lt(r,p,!1))return[0,-1];if(i.lt(h,r,!0))return[0,l];break;case"$between":return i.gt(r[0],h,!1)||i.lt(r[1],p,!1)?[0,-1]:((o=this.calculateRangeStart(n,r[0],!1,f))<0&&o++,(s=this.calculateRangeEnd(n,r[1],f))>l&&s--,i.gt(e.getIn(u[c[o]],n,f),r[0],!0)||o++,i.lt(e.getIn(u[c[s]],n,f),r[1],!0)||s--,sP(this.data[n],t,o)&&(e=P(this.data[n],t,o),i.index=this.data[n].$loki):(e=P(this.data[n],t,o),i.index=this.data[n].$loki);return i.value=e,i},k.prototype.extractNumerical=function(t){return this.extract(t).map(C).filter(Number).filter((function(t){return!isNaN(t)}))},k.prototype.avg=function(t){return j(this.extractNumerical(t))},k.prototype.stdDev=function(t){return e=this.extractNumerical(t),n=j(e),r=j(e.map((function(t){var e=t-n;return e*e}))),Math.sqrt(r);var e,n,r},k.prototype.mode=function(t){var e,n,r,o={},i=this.extract(t);for(n in i.forEach((function(t){o[t]?o[t]+=1:o[t]=1})),o)e?ee?1:0},setSort:function(t){this.bs=new M(t)},bs:function(){return new M(this.sort)},set:function(t,e){var n=this.bs(this.keys,t);n.found?this.values[n.index]=e:(this.keys.splice(n.index,0,t),this.values.splice(n.index,0,e))},get:function(t){return this.values[D(this.keys,t,this.sort).index]}},R.prototype.keyMap={},R.prototype.lokiMap={},R.prototype.set=function(t){var e=t[this.field];if(null!=e){if(this.keyMap[e])throw new Error("Duplicate key for property "+this.field+": "+e);this.keyMap[e]=t,this.lokiMap[t.$loki]=e}},R.prototype.get=function(t){return this.keyMap[t]},R.prototype.byId=function(t){return this.keyMap[this.lokiMap[t]]},R.prototype.update=function(t,e){if(this.lokiMap[t.$loki]!==e[this.field]){var n=this.lokiMap[t.$loki];this.set(e),this.keyMap[n]=void 0}else this.keyMap[t[this.field]]=e},R.prototype.remove=function(t){var e=this.keyMap[t];if(null==e)throw new Error("Key is not in unique index: "+this.field);this.keyMap[t]=void 0,this.lokiMap[e.$loki]=void 0},R.prototype.clear=function(){this.keyMap={},this.lokiMap={}},N.prototype={set:function(t,e){this.index[t]?this.index[t].push(e):this.index[t]=[e]},remove:function(t,e){var n=this.index[t];for(var r in n)n[r]==e&&n.splice(r,1);n.length<1&&(this.index[t]=void 0)},get:function(t){return this.index[t]},clear:function(t){this.index={}}},g.LokiOps=h,g.Collection=k,g.KeyValueStore=I,g.LokiMemoryAdapter=b,g.LokiPartitioningAdapter=_,g.LokiLocalStorageAdapter=x,g.LokiFsAdapter=w,g.persistenceAdapters={fs:w,localStorage:x},g.aeq=a,g.lt=s,g.gt=u,g.Comparators=i,g}()})?i.apply(e,a):i)||(t.exports=s)}).call(this,n(124),n(206))},,function(t,e,n){t.exports=!n(20)&&!n(10)((function(){return 7!=Object.defineProperty(n(133)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(9),o=n(18),i=n(67),a=n(134),s=n(21).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},function(t,e,n){var r=n(30),o=n(32),i=n(112)(!1),a=n(135)("IE_PROTO");t.exports=function(t,e){var n,s=o(t),u=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;e.length>u;)r(s,n=e[u++])&&(~i(c,n)||c.push(n));return c}},function(t,e,n){var r=n(21),o=n(11),i=n(68);t.exports=n(20)?Object.defineProperties:function(t,e){o(t);for(var n,a=i(e),s=a.length,u=0;s>u;)r.f(t,n=a[u++],e[n]);return t}},function(t,e,n){var r=n(32),o=n(71).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return a.slice()}}(t):o(r(t))}},function(t,e,n){"use strict";var r=n(20),o=n(68),i=n(113),a=n(104),s=n(25),u=n(103),c=Object.assign;t.exports=!c||n(10)((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=r}))?function(t,e){for(var n=s(t),c=arguments.length,l=1,f=i.f,p=a.f;c>l;)for(var h,d=u(arguments[l++]),y=f?o(d).concat(f(d)):o(d),v=y.length,m=0;v>m;)h=y[m++],r&&!p.call(d,h)||(n[h]=d[h]);return n}:c},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,n){"use strict";var r=n(43),o=n(12),i=n(180),a=[].slice,s={},u=function(t,e,n){if(!(e in s)){for(var r=[],o=0;o>>0||(a.test(n)?16:10))}:r},function(t,e,n){var r=n(9).parseFloat,o=n(85).trim;t.exports=1/r(n(139)+"-0")!=-1/0?function(t){var e=o(String(t),3),n=r(e);return 0===n&&"-"==e.charAt(0)?-0:n}:r},function(t,e,n){var r=n(52);t.exports=function(t,e){if("number"!=typeof t&&"Number"!=r(t))throw TypeError(e);return+t}},function(t,e,n){var r=n(12),o=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&o(t)===t}},function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,e,n){"use strict";var r=n(70),o=n(65),i=n(84),a={};n(31)(a,n(15)("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(a,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var r=n(11);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(t,e,n){var r=n(940);t.exports=function(t,e){return new(r(t))(e)}},function(t,e,n){var r=n(43),o=n(25),i=n(103),a=n(17);t.exports=function(t,e,n,s,u){r(e);var c=o(t),l=i(c),f=a(c.length),p=u?f-1:0,h=u?-1:1;if(n<2)for(;;){if(p in l){s=l[p],p+=h;break}if(p+=h,u?p<0:f<=p)throw TypeError("Reduce of empty array with no initial value")}for(;u?p>=0:f>p;p+=h)p in l&&(s=e(s,l[p],p,c));return s}},function(t,e,n){"use strict";var r=n(25),o=n(69),i=n(17);t.exports=[].copyWithin||function(t,e){var n=r(this),a=i(n.length),s=o(t,a),u=o(e,a),c=arguments.length>2?arguments[2]:void 0,l=Math.min((void 0===c?a:o(c,a))-u,a-s),f=1;for(u0;)u in n?n[s]=n[u]:delete n[s],s+=f,u+=f;return n}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){"use strict";var r=n(154);n(1)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},function(t,e,n){n(20)&&"g"!=/./g.flags&&n(21).f(RegExp.prototype,"flags",{configurable:!0,get:n(116)})},function(t,e,n){"use strict";var r,o,i,a,s=n(67),u=n(9),c=n(42),l=n(105),f=n(1),p=n(12),h=n(43),d=n(88),y=n(119),v=n(106),m=n(156).set,g=n(960)(),b=n(195),_=n(961),w=n(120),x=n(196),O=u.TypeError,S=u.process,k=S&&S.versions,T=k&&k.v8||"",C=u.Promise,E="process"==l(S),A=function(){},j=o=b.f,P=!!function(){try{var t=C.resolve(1),e=(t.constructor={})[n(15)("species")]=function(t){t(A,A)};return(E||"function"==typeof PromiseRejectionEvent)&&t.then(A)instanceof e&&0!==T.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(t){}}(),D=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},M=function(t,e){if(!t._n){t._n=!0;var n=t._c;g((function(){for(var r=t._v,o=1==t._s,i=0,a=function(e){var n,i,a,s=o?e.ok:e.fail,u=e.resolve,c=e.reject,l=e.domain;try{s?(o||(2==t._h&&N(t),t._h=1),!0===s?n=r:(l&&l.enter(),n=s(r),l&&(l.exit(),a=!0)),n===e.promise?c(O("Promise-chain cycle")):(i=D(n))?i.call(n,u,c):u(n)):c(r)}catch(t){l&&!a&&l.exit(),c(t)}};n.length>i;)a(n[i++]);t._c=[],t._n=!1,e&&!t._h&&I(t)}))}},I=function(t){m.call(u,(function(){var e,n,r,o=t._v,i=R(t);if(i&&(e=_((function(){E?S.emit("unhandledRejection",o,t):(n=u.onunhandledrejection)?n({promise:t,reason:o}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",o)})),t._h=E||R(t)?2:1),t._a=void 0,i&&e.e)throw e.v}))},R=function(t){return 1!==t._h&&0===(t._a||t._c).length},N=function(t){m.call(u,(function(){var e;E?S.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})}))},F=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),M(e,!0))},q=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw O("Promise can't be resolved itself");(e=D(t))?g((function(){var r={_w:n,_d:!1};try{e.call(t,c(q,r,1),c(F,r,1))}catch(t){F.call(r,t)}})):(n._v=t,n._s=1,M(n,!1))}catch(t){F.call({_w:n,_d:!1},t)}}};P||(C=function(t){d(this,C,"Promise","_h"),h(t),r.call(this);try{t(c(q,this,1),c(F,this,1))}catch(t){F.call(this,t)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(89)(C.prototype,{then:function(t,e){var n=j(v(this,C));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=E?S.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&M(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r;this.promise=t,this.resolve=c(q,t,1),this.reject=c(F,t,1)},b.f=j=function(t){return t===C||t===a?new i(t):o(t)}),f(f.G+f.W+f.F*!P,{Promise:C}),n(84)(C,"Promise"),n(87)("Promise"),a=n(18).Promise,f(f.S+f.F*!P,"Promise",{reject:function(t){var e=j(this);return(0,e.reject)(t),e.promise}}),f(f.S+f.F*(s||!P),"Promise",{resolve:function(t){return x(s&&this===a?C:this,t)}}),f(f.S+f.F*!(P&&n(115)((function(t){C.all(t).catch(A)}))),"Promise",{all:function(t){var e=this,n=j(e),r=n.resolve,o=n.reject,i=_((function(){var n=[],i=0,a=1;y(t,!1,(function(t){var s=i++,u=!1;n.push(void 0),a++,e.resolve(t).then((function(t){u||(u=!0,n[s]=t,--a||r(n))}),o)})),--a||r(n)}));return i.e&&o(i.v),n.promise},race:function(t){var e=this,n=j(e),r=n.reject,o=_((function(){y(t,!1,(function(t){e.resolve(t).then(n.resolve,r)}))}));return o.e&&r(o.v),n.promise}})},function(t,e,n){"use strict";var r=n(43);function o(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)}t.exports.f=function(t){return new o(t)}},function(t,e,n){var r=n(11),o=n(12),i=n(195);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";var r=n(21).f,o=n(70),i=n(89),a=n(42),s=n(88),u=n(119),c=n(145),l=n(191),f=n(87),p=n(20),h=n(58).fastKey,d=n(74),y=p?"_s":"size",v=function(t,e){var n,r=h(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,c){var l=t((function(t,r){s(t,l,e,"_i"),t._t=e,t._i=o(null),t._f=void 0,t._l=void 0,t[y]=0,null!=r&&u(r,n,t[c],t)}));return i(l.prototype,{clear:function(){for(var t=d(this,e),n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[y]=0},delete:function(t){var n=d(this,e),r=v(n,t);if(r){var o=r.n,i=r.p;delete n._i[r.i],r.r=!0,i&&(i.n=o),o&&(o.p=i),n._f==r&&(n._f=o),n._l==r&&(n._l=i),n[y]--}return!!r},forEach:function(t){d(this,e);for(var n,r=a(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!v(d(this,e),t)}}),p&&r(l.prototype,"size",{get:function(){return d(this,e)[y]}}),l},def:function(t,e,n){var r,o,i=v(t,e);return i?i.v=n:(t._l=i={i:o=h(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=i),r&&(r.n=i),t[y]++,"F"!==o&&(t._i[o]=i)),t},getEntry:v,setStrong:function(t,e,n){c(t,e,(function(t,n){this._t=d(t,e),this._k=n,this._l=void 0}),(function(){for(var t=this._k,e=this._l;e&&e.r;)e=e.p;return this._t&&(this._l=e=e?e.n:this._t._f)?l(0,"keys"==t?e.k:"values"==t?e.v:[e.k,e.v]):(this._t=void 0,l(1))}),n?"entries":"values",!n,!0),f(e)}}},function(t,e,n){"use strict";var r=n(89),o=n(58).getWeak,i=n(11),a=n(12),s=n(88),u=n(119),c=n(47),l=n(30),f=n(74),p=c(5),h=c(6),d=0,y=function(t){return t._l||(t._l=new v)},v=function(){this.a=[]},m=function(t,e){return p(t.a,(function(t){return t[0]===e}))};v.prototype={get:function(t){var e=m(this,t);if(e)return e[1]},has:function(t){return!!m(this,t)},set:function(t,e){var n=m(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(t){var e=h(this.a,(function(e){return e[0]===t}));return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,i){var c=t((function(t,r){s(t,c,e,"_i"),t._t=e,t._i=d++,t._l=void 0,null!=r&&u(r,n,t[i],t)}));return r(c.prototype,{delete:function(t){if(!a(t))return!1;var n=o(t);return!0===n?y(f(this,e)).delete(t):n&&l(n,this._i)&&delete n[this._i]},has:function(t){if(!a(t))return!1;var n=o(t);return!0===n?y(f(this,e)).has(t):n&&l(n,this._i)}}),c},def:function(t,e,n){var r=o(i(e),!0);return!0===r?y(t).set(e,n):r[t._i]=n,t},ufstore:y}},function(t,e,n){var r=n(44),o=n(17);t.exports=function(t){if(void 0===t)return 0;var e=r(t),n=o(e);if(e!==n)throw RangeError("Wrong length!");return n}},function(t,e,n){var r=n(71),o=n(113),i=n(11),a=n(9).Reflect;t.exports=a&&a.ownKeys||function(t){var e=r.f(i(t)),n=o.f;return n?e.concat(n(t)):e}},function(t,e,n){var r=n(17),o=n(141),i=n(53);t.exports=function(t,e,n,a){var s=String(i(t)),u=s.length,c=void 0===n?" ":String(n),l=r(e);if(l<=u||""==c)return s;var f=l-u,p=o.call(c,Math.ceil(f/c.length));return p.length>f&&(p=p.slice(0,f)),a?p+s:s+p}},function(t,e,n){var r=n(20),o=n(68),i=n(32),a=n(104).f;t.exports=function(t){return function(e){for(var n,s=i(e),u=o(s),c=u.length,l=0,f=[];c>l;)n=u[l++],r&&!a.call(s,n)||f.push(t?[n,s[n]]:s[n]);return f}}},function(t,e,n){var r=function(t){"use strict";var e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(t,e,n,r){var o=e&&e.prototype instanceof l?e:l,i=Object.create(o.prototype),a=new x(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=b(a,n);if(s){if(s===c)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=u(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===c)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(t,n,a),i}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var c={};function l(){}function f(){}function p(){}var h={};h[o]=function(){return this};var d=Object.getPrototypeOf,y=d&&d(d(O([])));y&&y!==e&&n.call(y,o)&&(h=y);var v=p.prototype=l.prototype=Object.create(h);function m(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function g(t,e){var r;this._invoke=function(o,i){function a(){return new e((function(r,a){!function r(o,i,a,s){var c=u(t[o],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function b(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return c;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var r=u(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,c;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,c):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,c)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function O(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(s&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),w(n),c}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;w(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:O(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},function(t,e){var n=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){var n,r,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(t){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var u,c=[],l=!1,f=-1;function p(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&h())}function h(){if(!l){var t=s(p);l=!0;for(var e=c.length;e;){for(u=c,c=[];++f1)for(var n=1;n{try{return new DOMException("","AbortError")}catch(t){return t.code=20,t.name="AbortError",t}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,n,r)=>{const o=[];for(let t=0;t(e,n)=>{t.set(e,{activeInputs:new Set,passiveInputs:new WeakMap,renderer:n})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,n)=>{const r=t(e,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});n.connect(r).connect(r.context.destination);const o=()=>{n.removeEventListener("ended",o),n.disconnect(r),r.disconnect()};n.addEventListener("ended",o)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,n)=>{t(e).add(n)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));const r={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",fftSize:2048,maxDecibels:-30,minDecibels:-100,smoothingTimeConstant:.8},o=(t,e,n,o,i,a)=>class extends t{constructor(t,n=r){const s=i(t),u={...r,...n},c=o(s,u);super(t,!1,c,a(s)?e():null),this._nativeAnalyserNode=c}get fftSize(){return this._nativeAnalyserNode.fftSize}set fftSize(t){this._nativeAnalyserNode.fftSize=t}get frequencyBinCount(){return this._nativeAnalyserNode.frequencyBinCount}get maxDecibels(){return this._nativeAnalyserNode.maxDecibels}set maxDecibels(t){const e=this._nativeAnalyserNode.maxDecibels;if(this._nativeAnalyserNode.maxDecibels=t,!(t>this._nativeAnalyserNode.minDecibels))throw this._nativeAnalyserNode.maxDecibels=e,n()}get minDecibels(){return this._nativeAnalyserNode.minDecibels}set minDecibels(t){const e=this._nativeAnalyserNode.minDecibels;if(this._nativeAnalyserNode.minDecibels=t,!(this._nativeAnalyserNode.maxDecibels>t))throw this._nativeAnalyserNode.minDecibels=e,n()}get smoothingTimeConstant(){return this._nativeAnalyserNode.smoothingTimeConstant}set smoothingTimeConstant(t){this._nativeAnalyserNode.smoothingTimeConstant=t}getByteFrequencyData(t){this._nativeAnalyserNode.getByteFrequencyData(t)}getByteTimeDomainData(t){this._nativeAnalyserNode.getByteTimeDomainData(t)}getFloatFrequencyData(t){this._nativeAnalyserNode.getFloatFrequencyData(t)}getFloatTimeDomainData(t){this._nativeAnalyserNode.getFloatTimeDomainData(t)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(6);const o=(t,e,n)=>()=>{const o=new WeakMap;return{render(i,a,s){const u=o.get(a);return void 0!==u?Promise.resolve(u):(async(i,a,s)=>{let u=e(i);if(!Object(r.a)(u,a)){const e={channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,fftSize:u.fftSize,maxDecibels:u.maxDecibels,minDecibels:u.minDecibels,smoothingTimeConstant:u.smoothingTimeConstant};u=t(a,e)}return o.set(a,u),await n(i,a,u,s),u})(i,a,s)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(95),o=n(90);const i={numberOfChannels:1},a=(t,e,n,a,s,u,c,l)=>{let f=null;return class p{constructor(p){if(null===s)throw new Error("Missing the native OfflineAudioContext constructor.");const{length:h,numberOfChannels:d,sampleRate:y}={...i,...p};null===f&&(f=new s(1,1,44100));const v=null!==a&&e(u,u)?new a({length:h,numberOfChannels:d,sampleRate:y}):f.createBuffer(d,h,y);if(0===v.numberOfChannels)throw n();return"function"!=typeof v.copyFromChannel?(c(v),Object(o.a)(v)):e(r.a,()=>Object(r.a)(v))||l(v),t.add(v),v}static[Symbol.hasInstance](e){return null!==e&&"object"==typeof e&&Object.getPrototypeOf(e)===p.prototype||t.has(e)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(5),o=n(48),i=n(59);const a={buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1},s=(t,e,n,s,u,c,l,f)=>class extends t{constructor(t,o=a){const i=c(t),s={...a,...o},f=u(i,s),p=l(i),h=p?e():null;super(t,!1,f,h),this._audioBufferSourceNodeRenderer=h,this._isBufferNullified=!1,this._isBufferSet=null!==o.buffer&&void 0!==o.buffer,this._nativeAudioBufferSourceNode=f,this._onended=null,this._playbackRate=n(this,p,f.playbackRate,r.b,r.a)}get buffer(){return this._isBufferNullified?null:this._nativeAudioBufferSourceNode.buffer}set buffer(t){try{this._nativeAudioBufferSourceNode.buffer=t}catch(e){if(null!==t||17!==e.code)throw e;if(null!==this._nativeAudioBufferSourceNode.buffer){const t=this._nativeAudioBufferSourceNode.buffer,e=t.numberOfChannels;for(let n=0;n{this._nativeAudioBufferSourceNode.removeEventListener("ended",t),setTimeout(()=>Object(i.a)(this),1e3)};this._nativeAudioBufferSourceNode.addEventListener("ended",t)}}stop(t=0){this._nativeAudioBufferSourceNode.stop(t),null!==this._audioBufferSourceNodeRenderer&&(this._audioBufferSourceNodeRenderer.stop=t)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(6);const o=(t,e,n,o,i)=>()=>{const a=new WeakMap;let s=null,u=null;return{set start(t){s=t},set stop(t){u=t},render(c,l,f){const p=a.get(l);return void 0!==p?Promise.resolve(p):(async(c,l,f)=>{let p=n(c);const h=Object(r.a)(p,l);if(!h){const t={buffer:p.buffer,channelCount:p.channelCount,channelCountMode:p.channelCountMode,channelInterpretation:p.channelInterpretation,loop:p.loop,loopEnd:p.loopEnd,loopStart:p.loopStart,playbackRate:p.playbackRate.value};p=e(l,t),null!==s&&p.start(...s),null!==u&&p.stop(u)}return a.set(l,p),h?await t(l,c.playbackRate,p.playbackRate,f):await o(l,c.playbackRate,p.playbackRate,f),await i(c,l,p,f),p})(c,l,f)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(125);const o=(t,e,n,o,i,a,s,u,c)=>class extends t{constructor(t={}){if(null===c)throw new Error("Missing the native AudioContext constructor.");const e=new c(t);if(null===e)throw o();if(!Object(r.a)(t.latencyHint))throw new TypeError(`The provided value '${t.latencyHint}' is not a valid enum value of type AudioContextLatencyCategory.`);if(void 0!==t.sampleRate&&e.sampleRate!==t.sampleRate)throw n();super(e,2);const{latencyHint:i}=t,{sampleRate:a}=e;if(this._baseLatency="number"==typeof e.baseLatency?e.baseLatency:"balanced"===i?512/a:"interactive"===i||void 0===i?256/a:"playback"===i?1024/a:128*Math.max(2,Math.min(128,Math.round(i*a/128)))/a,this._nativeAudioContext=e,this._state=null,"running"===e.state){this._state="suspended";const t=()=>{"suspended"===this._state&&(this._state=null),e.removeEventListener("statechange",t)};e.addEventListener("statechange",t)}}get baseLatency(){return this._baseLatency}get state(){return null!==this._state?this._state:this._nativeAudioContext.state}close(){return"closed"===this.state?this._nativeAudioContext.close().then(()=>{throw e()}):("suspended"===this._state&&(this._state=null),this._nativeAudioContext.close())}createMediaElementSource(t){return new i(this,{mediaElement:t})}createMediaStreamDestination(){return new a(this)}createMediaStreamSource(t){return new s(this,{mediaStream:t})}createMediaStreamTrackSource(t){return new u(this,{mediaStreamTrack:t})}resume(){return"suspended"===this._state?new Promise((t,e)=>{const n=()=>{this._nativeAudioContext.removeEventListener("statechange",n),"running"===this._nativeAudioContext.state?t():this.resume().then(t,e)};this._nativeAudioContext.addEventListener("statechange",n)}):this._nativeAudioContext.resume().catch(t=>{if(void 0===t||15===t.code)throw e();throw t})}suspend(){return this._nativeAudioContext.suspend().catch(t=>{if(void 0===t)throw e();throw t})}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n,r,o,i,a,s)=>class extends t{constructor(t,n){const r=i(t),u=a(r),c=o(r,n,u);super(t,!1,c,u?e(s):null),this._isNodeOfNativeOfflineAudioContext=u,this._nativeAudioDestinationNode=c}get channelCount(){return this._nativeAudioDestinationNode.channelCount}set channelCount(t){if(this._isNodeOfNativeOfflineAudioContext)throw r();if(t>this._nativeAudioDestinationNode.maxChannelCount)throw n();this._nativeAudioDestinationNode.channelCount=t}get channelCountMode(){return this._nativeAudioDestinationNode.channelCountMode}set channelCountMode(t){if(this._isNodeOfNativeOfflineAudioContext)throw r();this._nativeAudioDestinationNode.channelCountMode=t}get maxChannelCount(){return this._nativeAudioDestinationNode.maxChannelCount}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>{let e=null;return{render:(n,r,o)=>(null===e&&(e=(async(e,n,r)=>{const o=n.destination;return await t(e,n,o,r),o})(n,r,o)),e)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(5);const o=(t,e,n,o,i)=>(a,s)=>{const u=s.listener,{forwardX:c,forwardY:l,forwardZ:f,positionX:p,positionY:h,positionZ:d,upX:y,upY:v,upZ:m}=void 0===u.forwardX?(()=>{const c=e(s,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:9}),l=i(s),f=o(s,256,9,0),p=(e,o)=>{const i=n(s,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:o});return i.connect(c,0,e),i.start(),Object.defineProperty(i.offset,"defaultValue",{get:()=>o}),t({context:a},l,i.offset,r.b,r.a)};let h=[0,0,-1,0,1,0],d=[0,0,0];return f.onaudioprocess=({inputBuffer:t})=>{const e=[t.getChannelData(0)[0],t.getChannelData(1)[0],t.getChannelData(2)[0],t.getChannelData(3)[0],t.getChannelData(4)[0],t.getChannelData(5)[0]];e.some((t,e)=>t!==h[e])&&(u.setOrientation(...e),h=e);const n=[t.getChannelData(6)[0],t.getChannelData(7)[0],t.getChannelData(8)[0]];n.some((t,e)=>t!==d[e])&&(u.setPosition(...n),d=n)},c.connect(f),{forwardX:p(0,0),forwardY:p(1,0),forwardZ:p(2,-1),positionX:p(6,0),positionY:p(7,0),positionZ:p(8,0),upX:p(3,0),upY:p(4,1),upZ:p(5,0)}})():u;return{get forwardX(){return c},get forwardY(){return l},get forwardZ(){return f},get positionX(){return p},get positionY(){return h},get positionZ(){return d},get upX(){return y},get upY(){return v},get upZ(){return m}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(50);const o=(t,e,n,o,i,a,s,u,c,l,f,p)=>(h,d,y,v=null,m=null)=>{const g=new r.AutomationEventList(y.defaultValue),b=d?o(g):null,_={get defaultValue(){return y.defaultValue},get maxValue(){return null===v?y.maxValue:v},get minValue(){return null===m?y.minValue:m},get value(){return y.value},set value(t){y.value=t,_.setValueAtTime(t,h.context.currentTime)},cancelAndHoldAtTime(t){if("function"==typeof y.cancelAndHoldAtTime)null===b&&g.flush(h.context.currentTime),g.add(i(t)),y.cancelAndHoldAtTime(t);else{const e=Array.from(g).pop();null===b&&g.flush(h.context.currentTime),g.add(i(t));const n=Array.from(g).pop();y.cancelScheduledValues(t),e!==n&&void 0!==n&&("exponentialRampToValue"===n.type?y.exponentialRampToValueAtTime(n.value,n.endTime):"linearRampToValue"===n.type?y.linearRampToValueAtTime(n.value,n.endTime):"setValue"===n.type?y.setValueAtTime(n.value,n.startTime):"setValueCurve"===n.type&&y.setValueCurveAtTime(n.values,n.startTime,n.duration))}return _},cancelScheduledValues:t=>(null===b&&g.flush(h.context.currentTime),g.add(a(t)),y.cancelScheduledValues(t),_),exponentialRampToValueAtTime:(t,e)=>(null===b&&g.flush(h.context.currentTime),g.add(s(t,e)),y.exponentialRampToValueAtTime(t,e),_),linearRampToValueAtTime:(t,e)=>(null===b&&g.flush(h.context.currentTime),g.add(u(t,e)),y.linearRampToValueAtTime(t,e),_),setTargetAtTime:(t,e,n)=>(null===b&&g.flush(h.context.currentTime),g.add(c(t,e,n)),y.setTargetAtTime(t,e,n),_),setValueAtTime:(t,e)=>(null===b&&g.flush(h.context.currentTime),g.add(l(t,e)),y.setValueAtTime(t,e),_),setValueCurveAtTime(t,e,n){if(null!==p&&"webkitAudioContext"===p.name){const r=e+n,o=h.context.sampleRate,i=Math.ceil(e*o),a=Math.floor(r*o),s=a-i,u=new Float32Array(s);for(let r=0;r({replay(e){for(const n of t)if("exponentialRampToValue"===n.type){const{endTime:t,value:r}=n;e.exponentialRampToValueAtTime(r,t)}else if("linearRampToValue"===n.type){const{endTime:t,value:r}=n;e.linearRampToValueAtTime(r,t)}else if("setTarget"===n.type){const{startTime:t,target:r,timeConstant:o}=n;e.setTargetAtTime(r,t,o)}else if("setValue"===n.type){const{startTime:t,value:r}=n;e.setValueAtTime(r,t)}else{if("setValueCurve"!==n.type)throw new Error("Can't apply an unknown automation.");{const{duration:t,startTime:r,values:o}=n;e.setValueCurveAtTime(o,r,t)}}}})},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(2),o=n(126);const i={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:1,numberOfOutputs:1,outputChannelCount:void 0,parameterData:{},processorOptions:{}},a=t=>{const e=[];for(let n=0;nclass extends e{constructor(e,p,h=i){const d=c(e),y=l(d),v=(t=>({...t,outputChannelCount:void 0!==t.outputChannelCount?t.outputChannelCount:1===t.numberOfInputs&&1===t.numberOfOutputs?[t.channelCount]:a(t.numberOfOutputs)}))({...i,...h}),m=r.j.get(d),g=void 0===m?void 0:m.get(p),b=u(d,y?null:e.baseLatency,f,p,g,v);super(e,!0,b,y?s(p,v,g):null);const _=[];b.parameters.forEach((t,e)=>{const r=n(this,y,t);_.push([e,r])}),this._nativeAudioWorkletNode=b,this._onprocessorerror=null,this._parameters=new o.a(_),y&&t(d,this)}get onprocessorerror(){return this._onprocessorerror}set onprocessorerror(t){const e="function"==typeof t?p(this,t):null;this._nativeAudioWorkletNode.onprocessorerror=e;const n=this._nativeAudioWorkletNode.onprocessorerror;this._onprocessorerror=null!==n&&n===e?t:n}get parameters(){return null===this._parameters?this._nativeAudioWorkletNode.parameters:this._parameters}get port(){return this._nativeAudioWorkletNode.port}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n,r,o,i,a,s,u,c,l,f,p,h,d,y,v,m,g,b)=>class extends d{constructor(e,n){super(e,n),this._nativeContext=e,this._audioWorklet=void 0===t?void 0:{addModule:(e,n)=>t(this,e,n)}}get audioWorklet(){return this._audioWorklet}createAnalyser(){return new e(this)}createBiquadFilter(){return new o(this)}createBuffer(t,e,r){return new n({length:e,numberOfChannels:t,sampleRate:r})}createBufferSource(){return new r(this)}createChannelMerger(t=6){return new i(this,{numberOfInputs:t})}createChannelSplitter(t=6){return new a(this,{numberOfOutputs:t})}createConstantSource(){return new s(this)}createConvolver(){return new u(this)}createDelay(t=1){return new l(this,{maxDelayTime:t})}createDynamicsCompressor(){return new f(this)}createGain(){return new p(this)}createIIRFilter(t,e){return new h(this,{feedback:e,feedforward:t})}createOscillator(){return new y(this)}createPanner(){return new v(this)}createPeriodicWave(t,e,n={disableNormalization:!1}){return new m(this,{...n,imag:e,real:t})}createStereoPanner(){return new g(this)}createWaveShaper(){return new b(this)}decodeAudioData(t,e,n){return c(this._nativeContext,t).then(t=>("function"==typeof e&&e(t),t)).catch(t=>{throw"function"==typeof n&&n(t),t})}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(5);const o={Q:1,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",detune:0,frequency:350,gain:0,type:"lowpass"},i=(t,e,n,i,a,s,u)=>class extends t{constructor(t,i=o){const c=s(t),l={...o,...i},f=a(c,l),p=u(c);super(t,!1,f,p?n():null),this._Q=e(this,p,f.Q,r.b,r.a),this._detune=e(this,p,f.detune,1200*Math.log2(r.b),-1200*Math.log2(r.b)),this._frequency=e(this,p,f.frequency,t.sampleRate/2,0),this._gain=e(this,p,f.gain,40*Math.log10(r.b),r.a),this._nativeBiquadFilterNode=f}get detune(){return this._detune}get frequency(){return this._frequency}get gain(){return this._gain}get Q(){return this._Q}get type(){return this._nativeBiquadFilterNode.type}set type(t){this._nativeBiquadFilterNode.type=t}getFrequencyResponse(t,e,n){if(this._nativeBiquadFilterNode.getFrequencyResponse(t,e,n),t.length!==e.length||e.length!==n.length)throw i()}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(6);const o=(t,e,n,o,i)=>()=>{const a=new WeakMap;return{render(s,u,c){const l=a.get(u);return void 0!==l?Promise.resolve(l):(async(s,u,c)=>{let l=n(s);const f=Object(r.a)(l,u);if(!f){const t={Q:l.Q.value,channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,detune:l.detune.value,frequency:l.frequency.value,gain:l.gain.value,type:l.type};l=e(u,t)}return a.set(u,l),f?(await t(u,s.Q,l.Q,c),await t(u,s.detune,l.detune,c),await t(u,s.frequency,l.frequency,c),await t(u,s.gain,l.gain,c)):(await o(u,s.Q,l.Q,c),await o(u,s.detune,l.detune,c),await o(u,s.frequency,l.frequency,c),await o(u,s.gain,l.gain,c)),await i(s,u,l,c),l})(s,u,c)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>(n,r)=>{const o=e.get(n);if(void 0!==o)return o;const i=t.get(n);if(void 0!==i)return i;try{const o=r();return o instanceof Promise?(t.set(n,o),o.catch(()=>!1).then(r=>(t.delete(n),e.set(n,r),r))):(e.set(n,o),o)}catch{return e.set(n,!1),!1}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));const r={channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:6},o=(t,e,n,o,i)=>class extends t{constructor(t,a=r){const s=o(t),u={...r,...a};super(t,!1,n(s,u),i(s)?e():null)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(6);const o=(t,e,n)=>()=>{const o=new WeakMap;return{render(i,a,s){const u=o.get(a);return void 0!==u?Promise.resolve(u):(async(i,a,s)=>{let u=e(i);if(!Object(r.a)(u,a)){const e={channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,numberOfInputs:u.numberOfInputs};u=t(a,e)}return o.set(a,u),await n(i,a,u,s),u})(i,a,s)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));const r={channelCount:6,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:6},o=(t,e,n,o,i)=>class extends t{constructor(t,a=r){const s=o(t),u=(t=>({...t,channelCount:t.numberOfOutputs}))({...r,...a});super(t,!1,n(s,u),i(s)?e():null)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(6);const o=(t,e,n)=>()=>{const o=new WeakMap;return{render(i,a,s){const u=o.get(a);return void 0!==u?Promise.resolve(u):(async(i,a,s)=>{let u=e(i);if(!Object(r.a)(u,a)){const e={channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,numberOfOutputs:u.numberOfOutputs};u=t(a,e)}return o.set(a,u),await n(i,a,u,s),u})(i,a,s)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,n,r,o)=>t(n,e,r,o)},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(78);const o=t=>(e,n,o=0,i=0)=>{const a=e[o];if(void 0===a)throw t();return Object(r.a)(n)?a.connect(n,0,i):a.connect(n,0)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,n)=>{const r=t(e),o=e.createBuffer(1,2,e.sampleRate);return r.buffer=o,r.loop=!0,r.connect(n),r.start(),()=>{r.stop(),r.disconnect(n)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(5),o=n(48),i=n(59);const a={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",offset:1},s=(t,e,n,s,u,c,l)=>class extends t{constructor(t,o=a){const i=u(t),l={...a,...o},f=s(i,l),p=c(i),h=p?n():null;super(t,!1,f,h),this._constantSourceNodeRenderer=h,this._nativeConstantSourceNode=f,this._offset=e(this,p,f.offset,r.b,r.a),this._onended=null}get offset(){return this._offset}get onended(){return this._onended}set onended(t){const e="function"==typeof t?l(this,t):null;this._nativeConstantSourceNode.onended=e;const n=this._nativeConstantSourceNode.onended;this._onended=null!==n&&n===e?t:n}start(t=0){if(this._nativeConstantSourceNode.start(t),null!==this._constantSourceNodeRenderer)this._constantSourceNodeRenderer.start=t;else{Object(o.a)(this);const t=()=>{this._nativeConstantSourceNode.removeEventListener("ended",t),setTimeout(()=>Object(i.a)(this),1e3)};this._nativeConstantSourceNode.addEventListener("ended",t)}}stop(t=0){this._nativeConstantSourceNode.stop(t),null!==this._constantSourceNodeRenderer&&(this._constantSourceNodeRenderer.stop=t)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(6);const o=(t,e,n,o,i)=>()=>{const a=new WeakMap;let s=null,u=null;return{set start(t){s=t},set stop(t){u=t},render(c,l,f){const p=a.get(l);return void 0!==p?Promise.resolve(p):(async(c,l,f)=>{let p=n(c);const h=Object(r.a)(p,l);if(!h){const t={channelCount:p.channelCount,channelCountMode:p.channelCountMode,channelInterpretation:p.channelInterpretation,offset:p.offset.value};p=e(l,t),null!==s&&p.start(s),null!==u&&p.stop(u)}return a.set(l,p),h?await t(l,c.offset,p.offset,f):await o(l,c.offset,p.offset,f),await i(c,l,p,f),p})(c,l,f)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>(t[0]=e,t[0])},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));const r={buffer:null,channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",disableNormalization:!1},o=(t,e,n,o,i)=>class extends t{constructor(t,a=r){const s=o(t),u={...r,...a},c=n(s,u);super(t,!1,c,i(s)?e():null),this._isBufferNullified=!1,this._nativeConvolverNode=c}get buffer(){return this._isBufferNullified?null:this._nativeConvolverNode.buffer}set buffer(t){if(this._nativeConvolverNode.buffer=t,null===t&&null!==this._nativeConvolverNode.buffer){const t=this._nativeConvolverNode.context;this._nativeConvolverNode.buffer=t.createBuffer(1,1,t.sampleRate),this._isBufferNullified=!0}else this._isBufferNullified=!1}get normalize(){return this._nativeConvolverNode.normalize}set normalize(t){this._nativeConvolverNode.normalize=t}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(33),o=n(6);const i=(t,e,n)=>()=>{const i=new WeakMap;return{render(a,s,u){const c=i.get(s);return void 0!==c?Promise.resolve(c):(async(a,s,u)=>{let c=e(a);if(!Object(o.a)(c,s)){const e={buffer:c.buffer,channelCount:c.channelCount,channelCountMode:c.channelCountMode,channelInterpretation:c.channelInterpretation,disableNormalization:!c.normalize};c=t(s,e)}return i.set(s,c),Object(r.a)(c)?await n(a,s,c.inputs[0],u):await n(a,s,c,u),c})(a,s,u)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>(n,r,o)=>{if(null===e)throw new Error("Missing the native OfflineAudioContext constructor.");try{return new e(n,r,o)}catch(e){if("IndexSizeError"===e.name||"SyntaxError"===e.name)throw t();throw e}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=()=>{try{return new DOMException("","DataCloneError")}catch(t){return t.code=25,t.name="DataCloneError",t}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(61);const o=(t,e,n,o,i,a,s,u)=>(c,l)=>{const f=e.get(c);if(void 0===f)throw new Error("Missing the expected cycle count.");const p=a(c.context),h=u(p);if(f===l){if(e.delete(c),!h&&s(c)){const e=o(c),{outputs:a}=n(c);for(const n of a)if(Object(r.a)(n)){const r=o(n[0]);t(e,r,n[1],n[2])}else{const t=i(n[0]);e.connect(t,n[1])}}}else e.set(c,f-l)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));const r={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",delayTime:0,maxDelayTime:1},o=(t,e,n,o,i,a)=>class extends t{constructor(t,s=r){const u=i(t),c={...r,...s},l=o(u,c),f=a(u);super(t,!1,l,f?n(c.maxDelayTime):null),this._delayTime=e(this,f,l.delayTime,c.maxDelayTime,0)}get delayTime(){return this._delayTime}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(6);const o=(t,e,n,o,i)=>a=>{const s=new WeakMap;return{render(u,c,l){const f=s.get(c);return void 0!==f?Promise.resolve(f):(async(u,c,l)=>{let f=n(u);const p=Object(r.a)(f,c);if(!p){const t={channelCount:f.channelCount,channelCountMode:f.channelCountMode,channelInterpretation:f.channelInterpretation,delayTime:f.delayTime.value,maxDelayTime:a};f=e(c,t)}return s.set(c,f),p?await t(c,u.delayTime,f.delayTime,l):await o(c,u.delayTime,f.delayTime,l),await i(u,c,f,l),f})(u,c,l)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,n)=>{t(e).delete(n)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(78);const o=(t,e,n)=>{const r=e[n];if(void 0===r)throw t();return r},i=t=>(e,n,i,a=0)=>void 0===n?e.forEach(t=>t.disconnect()):"number"==typeof n?o(t,e,n).disconnect():Object(r.a)(n)?void 0===i?e.forEach(t=>t.disconnect(n)):void 0===a?o(t,e,i).disconnect(n,0):o(t,e,i).disconnect(n,0,a):void 0===i?e.forEach(t=>t.disconnect(n)):o(t,e,i).disconnect(n,0)},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));const r={attack:.003,channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",knee:30,ratio:12,release:.25,threshold:-24},o=(t,e,n,o,i,a,s)=>class extends t{constructor(t,i=r){const u=a(t),c={...r,...i},l=o(u,c),f=s(u);super(t,!1,l,f?n():null),this._attack=e(this,f,l.attack,1,0),this._knee=e(this,f,l.knee,40,0),this._nativeDynamicsCompressorNode=l,this._ratio=e(this,f,l.ratio,20,1),this._release=e(this,f,l.release,1,0),this._threshold=e(this,f,l.threshold,0,-100)}get attack(){return this._attack}get channelCount(){return this._nativeDynamicsCompressorNode.channelCount}set channelCount(t){const e=this._nativeDynamicsCompressorNode.channelCount;if(this._nativeDynamicsCompressorNode.channelCount=t,t>2)throw this._nativeDynamicsCompressorNode.channelCount=e,i()}get channelCountMode(){return this._nativeDynamicsCompressorNode.channelCountMode}set channelCountMode(t){const e=this._nativeDynamicsCompressorNode.channelCountMode;if(this._nativeDynamicsCompressorNode.channelCountMode=t,"max"===t)throw this._nativeDynamicsCompressorNode.channelCountMode=e,i()}get knee(){return this._knee}get ratio(){return this._ratio}get reduction(){return"number"==typeof this._nativeDynamicsCompressorNode.reduction.value?this._nativeDynamicsCompressorNode.reduction.value:this._nativeDynamicsCompressorNode.reduction}get release(){return this._release}get threshold(){return this._threshold}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(6);const o=(t,e,n,o,i)=>()=>{const a=new WeakMap;return{render(s,u,c){const l=a.get(u);return void 0!==l?Promise.resolve(l):(async(s,u,c)=>{let l=n(s);const f=Object(r.a)(l,u);if(!f){const t={attack:l.attack.value,channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,knee:l.knee.value,ratio:l.ratio.value,release:l.release.value,threshold:l.threshold.value};l=e(u,t)}return a.set(u,l),f?(await t(u,s.attack,l.attack,c),await t(u,s.knee,l.knee,c),await t(u,s.ratio,l.ratio,c),await t(u,s.release,l.release,c),await t(u,s.threshold,l.threshold,c)):(await o(u,s.attack,l.attack,c),await o(u,s.knee,l.knee,c),await o(u,s.ratio,l.ratio,c),await o(u,s.release,l.release,c),await o(u,s.threshold,l.threshold,c)),await i(s,u,l,c),l})(s,u,c)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=()=>{try{return new DOMException("","EncodingError")}catch(t){return t.code=0,t.name="EncodingError",t}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>new Promise((n,r)=>{if(null===t)return void r(new SyntaxError);const o=t.document.head;if(null===o)r(new SyntaxError);else{const i=t.document.createElement("script"),a=new Blob([e],{type:"application/javascript"}),s=URL.createObjectURL(a),u=t.onerror,c=()=>{t.onerror=u,URL.revokeObjectURL(s)};t.onerror=(e,n,o,i,a)=>n===s||n===t.location.href&&1===o&&1===i?(c(),r(a),!1):null!==u?u(e,n,o,i,a):void 0,i.onerror=()=>{c(),r(new SyntaxError)},i.onload=()=>{c(),n()},i.src=s,i.type="module",o.appendChild(i)}})},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>class{constructor(t){this._nativeEventTarget=t,this._listeners=new WeakMap}addEventListener(e,n,r){if(null!==n){let o=this._listeners.get(n);void 0===o&&(o=t(this,n),"function"==typeof n&&this._listeners.set(n,o)),this._nativeEventTarget.addEventListener(e,o,r)}}dispatchEvent(t){return this._nativeEventTarget.dispatchEvent(t)}removeEventListener(t,e,n){const r=null===e?void 0:this._listeners.get(e);this._nativeEventTarget.removeEventListener(t,void 0===r?null:r,n)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,n,r)=>{Object.defineProperties(t,{currentFrame:{configurable:!0,get:()=>Math.round(e*n)},currentTime:{configurable:!0,get:()=>e}});try{return r()}finally{null!==t&&(delete t.currentFrame,delete t.currentTime)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>async e=>{try{const t=await fetch(e);if(t.ok)return t.text()}catch{}throw t()}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(5);const o={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",gain:1},i=(t,e,n,i,a,s)=>class extends t{constructor(t,u=o){const c=a(t),l={...o,...u},f=i(c,l),p=s(c);super(t,!1,f,p?n():null),this._gain=e(this,p,f.gain,r.b,r.a)}get gain(){return this._gain}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(6);const o=(t,e,n,o,i)=>()=>{const a=new WeakMap;return{render(s,u,c){const l=a.get(u);return void 0!==l?Promise.resolve(l):(async(s,u,c)=>{let l=n(s);const f=Object(r.a)(l,u);if(!f){const t={channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,gain:l.gain.value};l=e(u,t)}return a.set(u,l),f?await t(u,s.gain,l.gain,c):await o(u,s.gain,l.gain,c),await i(s,u,l,c),l})(s,u,c)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>{const n=t(e);if(null===n.renderer)throw new Error("Missing the renderer of the given AudioNode in the audio graph.");return n.renderer}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>{const n=t(e);if(null===n.renderer)throw new Error("Missing the renderer of the given AudioParam in the audio graph.");return n.renderer}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(2);const o=(t,e,n)=>o=>{if("closed"===o.state&&null!==e&&"webkitAudioContext"!==e.name){if(!t(o)){const t=r.f.get(o);if(void 0!==t)return t;const n=new e;return r.f.set(o,n),n}{const t=r.f.get(o);if(void 0!==t)return t;if(null!==n){const t=new n(1,1,44100);return r.f.set(o,t),t}}}return null}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(14);const o=t=>e=>{const n=t.get(e);if(void 0===n)throw Object(r.a)();return n}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>{const n=t.get(e);if(void 0===n)throw new Error("The context has no set of AudioWorkletNodes.");return n}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(128),o=n(6);const i=(t,e,n,i,a,s)=>(u,c)=>{const l=new WeakMap;let f=null;const p=async(p,h,d)=>{let y=null,v=n(p);const m=Object(o.a)(v,h);if(void 0===h.createIIRFilter?y=t(h):m||(v=e(h,t=>t.createIIRFilter(c,u))),l.set(h,null===y?v:y),null!==y){if(null===f){if(null===i)throw new Error("Missing the native OfflineAudioContext constructor.");const t=new i(p.context.destination.channelCount,p.context.length,h.sampleRate);f=(async()=>(await a(p,t,t.destination,d),((t,e,n,o)=>{const i=n.length,a=o.length,s=Math.min(i,a);if(1!==n[0]){for(let t=0;ts=>(u,c)=>{const l=t.get(u);if(void 0===l){if(!s&&a(u)){const t=o(u),{outputs:a}=n(u);for(const n of a)if(Object(r.a)(n)){const r=o(n[0]);e(t,r,n[1],n[2])}else{const e=i(n[0]);t.disconnect(e,n[1])}}t.set(u,c)}else t.set(u,l+c)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>n=>{const r=t.get(n);return e(r)||e(n)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>n=>t.has(n)||e(n)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>n=>t.has(n)||e(n)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>n=>{const r=t.get(n);return e(r)||e(n)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>null!==t&&e instanceof t},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>null!==t&&"function"==typeof t.AudioNode&&e instanceof t.AudioNode},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>null!==t&&"function"==typeof t.AudioParam&&e instanceof t.AudioParam},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>n=>t(n)||e(n)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>null!==t&&e instanceof t},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>null!==t&&t.isSecureContext},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=async(t,e,n,r,o,i,a,s,u,c,l,f,p,h)=>{if(t(e,e)&&t(n,n)&&t(o,o)&&t(i,i)&&t(s,s)&&t(u,u)&&t(c,c)&&t(l,l)&&t(f,f)){return(await Promise.all([t(r,r),t(a,a),t(p,p),t(h,h)])).every(t=>t)}return!1}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n,r)=>class extends t{constructor(t,o){const i=n(t),a=e(i,o);if(r(i))throw TypeError();super(t,!0,a,null),this._mediaElement=o.mediaElement,this._nativeMediaElementAudioSourceNode=a}get mediaElement(){return void 0===this._nativeMediaElementAudioSourceNode.mediaElement?this._mediaElement:this._nativeMediaElementAudioSourceNode.mediaElement}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));const r={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers"},o=(t,e,n,o)=>class extends t{constructor(t,i=r){const a=n(t);if(o(a))throw new TypeError;const s={...r,...i},u=e(a,s);super(t,!1,u,null),this._nativeMediaStreamAudioDestinationNode=u}get stream(){return this._nativeMediaStreamAudioDestinationNode.stream}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n,r)=>class extends t{constructor(t,o){const i=n(t),a=e(i,o);if(r(i))throw new TypeError;super(t,!0,a,null),this._nativeMediaStreamAudioSourceNode=a}get mediaStream(){return this._nativeMediaStreamAudioSourceNode.mediaStream}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n)=>class extends t{constructor(t,r){const o=n(t);super(t,!0,e(o,r),null)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(125);const o=(t,e,n,o,i)=>class extends o{constructor(t={}){if(null===i)throw new Error("Missing the native AudioContext constructor.");const o=new i(t);if(null===o)throw n();if(!Object(r.a)(t.latencyHint))throw new TypeError(`The provided value '${t.latencyHint}' is not a valid enum value of type AudioContextLatencyCategory.`);if(void 0!==t.sampleRate&&o.sampleRate!==t.sampleRate)throw e();super(o,2);const{latencyHint:a}=t,{sampleRate:s}=o;if(this._baseLatency="number"==typeof o.baseLatency?o.baseLatency:"balanced"===a?512/s:"interactive"===a||void 0===a?256/s:"playback"===a?1024/s:128*Math.max(2,Math.min(128,Math.round(a*s/128)))/s,this._nativeAudioContext=o,this._state=null,"running"===o.state){this._state="suspended";const t=()=>{"suspended"===this._state&&(this._state=null),o.removeEventListener("statechange",t)};o.addEventListener("statechange",t)}}get baseLatency(){return this._baseLatency}get state(){return null!==this._state?this._state:this._nativeAudioContext.state}close(){return"closed"===this.state?this._nativeAudioContext.close().then(()=>{throw t()}):("suspended"===this._state&&(this._state=null),this._nativeAudioContext.close())}resume(){return"suspended"===this._state?new Promise((t,e)=>{const n=()=>{this._nativeAudioContext.removeEventListener("statechange",n),"running"===this._nativeAudioContext.state?t():this.resume().then(t,e)};this._nativeAudioContext.addEventListener("statechange",n)}):this._nativeAudioContext.resume().catch(e=>{if(void 0===e||15===e.code)throw t();throw e})}suspend(){return this._nativeAudioContext.suspend().catch(e=>{if(void 0===e)throw t();throw e})}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(2);const o=(t,e,n,o,i,a)=>class extends n{constructor(n,a){super(n),this._nativeContext=n,r.g.set(this,n);const s=n.sampleRate;Object.defineProperty(n,"sampleRate",{get:()=>s}),o(n)&&i.set(n,new Set),this._destination=new t(this,a),this._listener=e(this,n),this._onstatechange=null}get currentTime(){return this._nativeContext.currentTime}get destination(){return this._destination}get listener(){return this._listener}get onstatechange(){return this._onstatechange}set onstatechange(t){const e="function"==typeof t?a(this,t):null;this._nativeContext.onstatechange=e;const n=this._nativeContext.onstatechange;this._onstatechange=null!==n&&n===e?t:n}get sampleRate(){return this._nativeContext.sampleRate}get state(){return this._nativeContext.state}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(38);const o={numberOfChannels:1},i=(t,e,n,i,a)=>class extends i{constructor(e){const{length:i,numberOfChannels:a,sampleRate:s}={...o,...e},u=n(a,i,s);t(r.a,()=>Object(r.a)(u))||u.addEventListener("statechange",(()=>{let t=0;const e=n=>{"running"===this._state&&(t>0?(u.removeEventListener("statechange",e),n.stopImmediatePropagation(),this._waitForThePromiseToSettle(n)):t+=1)};return e})()),super(u,a),this._length=i,this._nativeOfflineAudioContext=u,this._state=null}get length(){return void 0===this._nativeOfflineAudioContext.length?this._length:this._nativeOfflineAudioContext.length}get state(){return null===this._state?this._nativeOfflineAudioContext.state:this._state}startRendering(){return"running"===this._state?Promise.reject(e()):(this._state="running",a(this.destination,this._nativeOfflineAudioContext).then(t=>(this._state=null,t)).catch(t=>{throw this._state=null,t}))}_waitForThePromiseToSettle(t){null===this._state?this._nativeOfflineAudioContext.dispatchEvent(t):setTimeout(()=>this._waitForThePromiseToSettle(t))}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>(n,r,o)=>{const i=new Set;var a,s;return n.connect=(a=n.connect,(o,s=0,u=0)=>{const c=0===i.size;if(e(o))return a.call(n,o,s,u),t(i,[o,s,u],t=>t[0]===o&&t[1]===s&&t[2]===u,!0),c&&r(),o;a.call(n,o,s),t(i,[o,s],t=>t[0]===o&&t[1]===s,!0),c&&r()}),n.disconnect=(s=n.disconnect,(t,r,a)=>{const u=i.size>0;if(void 0===t)s.apply(n),i.clear();else if("number"==typeof t){s.call(n,t);for(const e of i)e[1]===t&&i.delete(e)}else{e(t)?s.call(n,t,r,a):s.call(n,t,r);for(const e of i)e[0]!==t||void 0!==r&&e[1]!==r||void 0!==a&&e[2]!==a||i.delete(e)}const c=0===i.size;u&&c&&o()}),n}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>null===t?null:t.hasOwnProperty("AudioBuffer")?t.AudioBuffer:null},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>null===t?null:t.hasOwnProperty("AudioContext")?t.AudioContext:t.hasOwnProperty("webkitAudioContext")?t.webkitAudioContext:null},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>(n,r,o)=>{const i=n.destination;if(i.channelCount!==r)try{i.channelCount=r}catch{}o&&"explicit"!==i.channelCountMode&&(i.channelCountMode="explicit"),0===i.maxChannelCount&&Object.defineProperty(i,"maxChannelCount",{value:r});const a=t(n,{channelCount:r,channelCountMode:i.channelCountMode,channelInterpretation:i.channelInterpretation,gain:1});return e(a,"channelCount",t=>()=>t.call(a),t=>e=>{t.call(a,e);try{i.channelCount=e}catch(t){if(e>i.maxChannelCount)throw t}}),e(a,"channelCountMode",t=>()=>t.call(a),t=>e=>{t.call(a,e),i.channelCountMode=e}),e(a,"channelInterpretation",t=>()=>t.call(a),t=>e=>{t.call(a,e),i.channelInterpretation=e}),Object.defineProperty(a,"maxChannelCount",{get:()=>i.maxChannelCount}),a.connect(i),a}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,n)=>{const r=t(e);return n(null!==r?r:e)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>null===t?null:t.hasOwnProperty("AudioWorkletNode")?t.AudioWorkletNode:null},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(8),o=n(7),i=n(4);const a=t=>(e,n)=>{const a=t(e,t=>t.createBiquadFilter());return Object(i.a)(a,n),Object(r.a)(a,n,"Q"),Object(r.a)(a,n,"detune"),Object(r.a)(a,n,"frequency"),Object(r.a)(a,n,"gain"),Object(o.a)(a,n,"type"),a}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(4);const o=(t,e)=>(n,o)=>{const i=t(n,t=>t.createChannelMerger(o.numberOfInputs));return 1!==i.channelCount&&"explicit"!==i.channelCountMode&&e(n,i),Object(r.a)(i,o),i}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(8),o=n(4),i=n(91),a=n(92);const s=(t,e,n,s,u,c)=>(l,f)=>{if(void 0===l.createConstantSource)return s(l,f);const p=n(l,t=>t.createConstantSource());return Object(o.a)(p,f),Object(r.a)(p,f,"offset"),e(u,()=>u(l))||Object(i.a)(p),e(c,()=>c(l))||Object(a.a)(p),t(l,p),p}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(26);const o=(t,e,n,o)=>(i,{offset:a,...s})=>{const u=i.createBuffer(1,2,i.sampleRate),c=e(i),l=n(i,{...s,gain:a}),f=u.getChannelData(0);f[0]=1,f[1]=1,c.buffer=u,c.loop=!0;const p={get bufferSize(){},get channelCount(){return l.channelCount},set channelCount(t){l.channelCount=t},get channelCountMode(){return l.channelCountMode},set channelCountMode(t){l.channelCountMode=t},get channelInterpretation(){return l.channelInterpretation},set channelInterpretation(t){l.channelInterpretation=t},get context(){return l.context},get inputs(){return[]},get numberOfInputs(){return c.numberOfInputs},get numberOfOutputs(){return l.numberOfOutputs},get offset(){return l.gain},get onended(){return c.onended},set onended(t){c.onended=t},addEventListener:(...t)=>c.addEventListener(t[0],t[1],t[2]),dispatchEvent:(...t)=>c.dispatchEvent(t[0]),removeEventListener:(...t)=>c.removeEventListener(t[0],t[1],t[2]),start(t=0){c.start.call(c,t)},stop(t=0){c.stop.call(c,t)}};return t(i,c),o(Object(r.a)(p,l),()=>c.connect(l),()=>c.disconnect(l))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(7),o=n(4);const i=(t,e,n,i)=>(a,s)=>{const u=t(a,t=>t.createConvolver());try{u.channelCount=1}catch(t){return e(a,s)}if(Object(o.a)(u,s),s.disableNormalization===u.normalize&&(u.normalize=!s.disableNormalization),Object(r.a)(u,s,"buffer"),s.channelCount>2)throw n();if(i(u,"channelCount",t=>()=>t.call(u),t=>e=>{if(e>2)throw n();return t.call(u,e)}),"max"===s.channelCountMode)throw n();return i(u,"channelCountMode",t=>()=>t.call(u),t=>e=>{if("max"===e)throw n();return t.call(u,e)}),u}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(4),o=n(26);const i=(t,e,n)=>(i,{buffer:a,channelCount:s,channelCountMode:u,channelInterpretation:c,disableNormalization:l})=>{const f=t(i,t=>t.createConvolver());Object(r.a)(f,{channelCount:Math.max(s,2),channelCountMode:"max"===u?u:"clamped-max",channelInterpretation:c});const p=e(i,{channelCount:s,channelCountMode:u,channelInterpretation:c,gain:1}),h={get buffer(){return f.buffer},set buffer(t){f.buffer=t},get bufferSize(){},get channelCount(){return p.channelCount},set channelCount(t){t>2&&(f.channelCount=t),p.channelCount=t},get channelCountMode(){return p.channelCountMode},set channelCountMode(t){"max"===t&&(f.channelCountMode=t),p.channelCountMode=t},get channelInterpretation(){return f.channelInterpretation},set channelInterpretation(t){f.channelInterpretation=t,p.channelInterpretation=t},get context(){return f.context},get inputs(){return[f]},get numberOfInputs(){return f.numberOfInputs},get numberOfOutputs(){return f.numberOfOutputs},get normalize(){return f.normalize},set normalize(t){f.normalize=t},addEventListener:(...t)=>f.addEventListener(t[0],t[1],t[2]),dispatchEvent:(...t)=>f.dispatchEvent(t[0]),removeEventListener:(...t)=>f.removeEventListener(t[0],t[1],t[2])};l===h.normalize&&(h.normalize=!l),a!==h.buffer&&(h.buffer=a);return n(Object(o.a)(h,p),()=>f.connect(p),()=>f.disconnect(p))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(8),o=n(4);const i=t=>(e,n)=>{const i=t(e,t=>t.createDelay(n.maxDelayTime));return Object(o.a)(i,n),Object(r.a)(i,n,"delayTime"),i}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(8),o=n(4);const i=(t,e)=>(n,i)=>{const a=t(n,t=>t.createDynamicsCompressor());if(Object(o.a)(a,i),i.channelCount>2)throw e();if("max"===i.channelCountMode)throw e();return Object(r.a)(a,i,"attack"),Object(r.a)(a,i,"knee"),Object(r.a)(a,i,"ratio"),Object(r.a)(a,i,"release"),Object(r.a)(a,i,"threshold"),a}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(8),o=n(4);const i=t=>(e,n)=>{const i=t(e,t=>t.createGain());return Object(o.a)(i,n),Object(r.a)(i,n,"gain"),i}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(4);const o=(t,e)=>(n,o,i)=>{if(void 0===n.createIIRFilter)return e(n,o,i);const a=t(n,t=>t.createIIRFilter(i.feedforward,i.feedback));return Object(r.a)(a,i),a}},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(129),o=n(128),i=n(26);function a(t,e){const n=e[0]*e[0]+e[1]*e[1];return[(t[0]*e[0]+t[1]*e[1])/n,(t[1]*e[0]-t[0]*e[1])/n]}function s(t,e){let n=[0,0];for(let i=t.length-1;i>=0;i-=1)o=e,n=[(r=n)[0]*o[0]-r[1]*o[1],r[0]*o[1]+r[1]*o[0]],n[0]+=t[i];var r,o;return n}const u=(t,e,n,u)=>(c,l,{channelCount:f,channelCountMode:p,channelInterpretation:h,feedback:d,feedforward:y})=>{const v=Object(r.a)(l,c.sampleRate),m=d.length,g=y.length,b=Math.min(m,g);if(0===d.length||d.length>20)throw u();if(0===d[0])throw e();if(0===y.length||y.length>20)throw u();if(0===y[0])throw e();if(1!==d[0]){for(let t=0;t{const e=t.inputBuffer,n=t.outputBuffer,r=e.numberOfChannels;for(let t=0;t_.addEventListener(t[0],t[1],t[2]),dispatchEvent:(...t)=>_.dispatchEvent(t[0]),getFrequencyResponse(e,n,r){if(e.length!==n.length||n.length!==r.length)throw t();const o=e.length;for(let t=0;t_.removeEventListener(t[0],t[1],t[2])};return Object(i.a)(k,_)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,n)=>t(e,t=>t.createMediaElementSource(n.mediaElement))},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(4);const o=(t,e)=>(n,o)=>{if(void 0===n.createMediaStreamDestination)throw e();const i=t(n,t=>t.createMediaStreamDestination());return Object(r.a)(i,o),1===i.numberOfOutputs&&Object.defineProperty(i,"numberOfOutputs",{get:()=>0}),i}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,{mediaStream:n})=>{const r=n.getAudioTracks(),o=t(e,t=>{const e=r.sort((t,e)=>t.ide.id?1:0).slice(0,1);return t.createMediaStreamSource(new MediaStream(e))});return Object.defineProperty(o,"mediaStream",{value:n}),o}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n)=>(r,{mediaStreamTrack:o})=>"function"==typeof r.createMediaStreamTrackSource?e(r,t=>t.createMediaStreamTrackSource(o)):e(r,e=>{const r=new MediaStream([o]),i=e.createMediaStreamSource(r);if("audio"!==o.kind)throw t();if(n(e))throw new TypeError;return i})},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>null===t?null:t.hasOwnProperty("OfflineAudioContext")?t.OfflineAudioContext:t.hasOwnProperty("webkitOfflineAudioContext")?t.webkitOfflineAudioContext:null},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(8),o=n(7),i=n(4),a=n(91),s=n(92);const u=(t,e,n,u,c,l,f)=>(p,h)=>{const d=n(p,t=>t.createOscillator());return Object(i.a)(d,h),Object(r.a)(d,h,"detune"),Object(r.a)(d,h,"frequency"),void 0!==h.periodicWave?d.setPeriodicWave(h.periodicWave):Object(o.a)(d,h,"type"),e(u,()=>u(p))||Object(a.a)(d),e(c,()=>c(p))||f(d,p),e(l,()=>l(p))||Object(s.a)(d),t(p,d),d}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(8),o=n(7),i=n(4);const a=(t,e)=>(n,a)=>{const s=t(n,t=>t.createPanner());return void 0===s.orientationX?e(n,a):(Object(i.a)(s,a),Object(r.a)(s,a,"orientationX"),Object(r.a)(s,a,"orientationY"),Object(r.a)(s,a,"orientationZ"),Object(r.a)(s,a,"positionX"),Object(r.a)(s,a,"positionY"),Object(r.a)(s,a,"positionZ"),Object(o.a)(s,a,"coneInnerAngle"),Object(o.a)(s,a,"coneOuterAngle"),Object(o.a)(s,a,"coneOuterGain"),Object(o.a)(s,a,"distanceModel"),Object(o.a)(s,a,"maxDistance"),Object(o.a)(s,a,"panningModel"),Object(o.a)(s,a,"refDistance"),Object(o.a)(s,a,"rolloffFactor"),s)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(4),o=n(26);const i=(t,e,n,i,a,s,u,c,l,f)=>(p,{coneInnerAngle:h,coneOuterAngle:d,coneOuterGain:y,distanceModel:v,maxDistance:m,orientationX:g,orientationY:b,orientationZ:_,panningModel:w,positionX:x,positionY:O,positionZ:S,refDistance:k,rolloffFactor:T,...C})=>{const E=n(p,t=>t.createPanner());if(C.channelCount>2)throw c();if("max"===C.channelCountMode)throw c();Object(r.a)(E,C);const A={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},j=i(p,{...A,channelInterpretation:"speakers",numberOfInputs:6}),P=a(p,{...C,gain:1}),D=a(p,{...A,gain:1}),M=a(p,{...A,gain:0}),I=a(p,{...A,gain:0}),R=a(p,{...A,gain:0}),N=a(p,{...A,gain:0}),F=a(p,{...A,gain:0}),q=s(p,256,6,1),V=u(p,{...A,curve:new Float32Array([1,1]),oversample:"none"});let L=[g,b,_],z=[x,O,S];q.onaudioprocess=({inputBuffer:t})=>{const e=[t.getChannelData(0)[0],t.getChannelData(1)[0],t.getChannelData(2)[0]];e.some((t,e)=>t!==L[e])&&(E.setOrientation(...e),L=e);const n=[t.getChannelData(3)[0],t.getChannelData(4)[0],t.getChannelData(5)[0]];n.some((t,e)=>t!==z[e])&&(E.setPosition(...n),z=n)},Object.defineProperty(M.gain,"defaultValue",{get:()=>0}),Object.defineProperty(I.gain,"defaultValue",{get:()=>0}),Object.defineProperty(R.gain,"defaultValue",{get:()=>0}),Object.defineProperty(N.gain,"defaultValue",{get:()=>0}),Object.defineProperty(F.gain,"defaultValue",{get:()=>0});const B={get bufferSize(){},get channelCount(){return E.channelCount},set channelCount(t){if(t>2)throw c();P.channelCount=t,E.channelCount=t},get channelCountMode(){return E.channelCountMode},set channelCountMode(t){if("max"===t)throw c();P.channelCountMode=t,E.channelCountMode=t},get channelInterpretation(){return E.channelInterpretation},set channelInterpretation(t){P.channelInterpretation=t,E.channelInterpretation=t},get coneInnerAngle(){return E.coneInnerAngle},set coneInnerAngle(t){E.coneInnerAngle=t},get coneOuterAngle(){return E.coneOuterAngle},set coneOuterAngle(t){E.coneOuterAngle=t},get coneOuterGain(){return E.coneOuterGain},set coneOuterGain(t){if(t<0||t>1)throw e();E.coneOuterGain=t},get context(){return E.context},get distanceModel(){return E.distanceModel},set distanceModel(t){E.distanceModel=t},get inputs(){return[P]},get maxDistance(){return E.maxDistance},set maxDistance(t){if(t<0)throw new RangeError;E.maxDistance=t},get numberOfInputs(){return E.numberOfInputs},get numberOfOutputs(){return E.numberOfOutputs},get orientationX(){return D.gain},get orientationY(){return M.gain},get orientationZ(){return I.gain},get panningModel(){return E.panningModel},set panningModel(t){if(E.panningModel=t,E.panningModel!==t&&"HRTF"===t)throw c()},get positionX(){return R.gain},get positionY(){return N.gain},get positionZ(){return F.gain},get refDistance(){return E.refDistance},set refDistance(t){if(t<0)throw new RangeError;E.refDistance=t},get rolloffFactor(){return E.rolloffFactor},set rolloffFactor(t){if(t<0)throw new RangeError;E.rolloffFactor=t},addEventListener:(...t)=>P.addEventListener(t[0],t[1],t[2]),dispatchEvent:(...t)=>P.dispatchEvent(t[0]),removeEventListener:(...t)=>P.removeEventListener(t[0],t[1],t[2])};h!==B.coneInnerAngle&&(B.coneInnerAngle=h),d!==B.coneOuterAngle&&(B.coneOuterAngle=d),y!==B.coneOuterGain&&(B.coneOuterGain=y),v!==B.distanceModel&&(B.distanceModel=v),m!==B.maxDistance&&(B.maxDistance=m),g!==B.orientationX.value&&(B.orientationX.value=g),b!==B.orientationY.value&&(B.orientationY.value=b),_!==B.orientationZ.value&&(B.orientationZ.value=_),w!==B.panningModel&&(B.panningModel=w),x!==B.positionX.value&&(B.positionX.value=x),O!==B.positionY.value&&(B.positionY.value=O),S!==B.positionZ.value&&(B.positionZ.value=S),k!==B.refDistance&&(B.refDistance=k),T!==B.rolloffFactor&&(B.rolloffFactor=T),1===L[0]&&0===L[1]&&0===L[2]||E.setOrientation(...L),0===z[0]&&0===z[1]&&0===z[2]||E.setPosition(...z);return f(Object(o.a)(B,E),()=>{P.connect(E),t(P,V,0,0),V.connect(D).connect(j,0,0),V.connect(M).connect(j,0,1),V.connect(I).connect(j,0,2),V.connect(R).connect(j,0,3),V.connect(N).connect(j,0,4),V.connect(F).connect(j,0,5),j.connect(q).connect(p.destination)},()=>{P.disconnect(E),l(P,V,0,0),V.disconnect(D),D.disconnect(j),V.disconnect(M),M.disconnect(j),V.disconnect(I),I.disconnect(j),V.disconnect(R),R.disconnect(j),V.disconnect(N),N.disconnect(j),V.disconnect(F),F.disconnect(j),j.disconnect(q),q.disconnect(p.destination)})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,{disableNormalization:n,imag:r,real:o})=>{const i=t(e),a=new Float32Array(r),s=new Float32Array(o);return null!==i?i.createPeriodicWave(s,a,{disableNormalization:n}):e.createPeriodicWave(s,a,{disableNormalization:n})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,n,r,o)=>t(e,t=>t.createScriptProcessor(n,r,o))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(8),o=n(4);const i=(t,e,n)=>(i,a)=>t(i,t=>{const s=a.channelCountMode;if("clamped-max"===s)throw n();if(void 0===i.createStereoPanner)return e(i,a);const u=t.createStereoPanner();return Object(o.a)(u,a),Object(r.a)(u,a,"pan"),Object.defineProperty(u,"channelCountMode",{get:()=>s,set:t=>{if(t!==s)throw n()}}),u})},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(26);const o=(t,e,n,o,i,a)=>{const s=new Float32Array([1,1]),u=Math.PI/2,c={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},l={...c,oversample:"none"},f=(t,r,a,f,p)=>{if(1===r)return((t,e,r,i)=>{const a=new Float32Array(16385),f=new Float32Array(16385);for(let t=0;t<16385;t+=1){const e=t/16384*u;a[t]=Math.cos(e),f[t]=Math.sin(e)}const p=n(t,{...c,gain:0}),h=o(t,{...l,curve:a}),d=o(t,{...l,curve:s}),y=n(t,{...c,gain:0}),v=o(t,{...l,curve:f});return{connectGraph(){e.connect(p),e.connect(d.inputs[0]),e.connect(y),d.connect(r),r.connect(h.inputs[0]),r.connect(v.inputs[0]),h.connect(p.gain),v.connect(y.gain),p.connect(i,0,0),y.connect(i,0,1)},disconnectGraph(){e.disconnect(p),e.disconnect(d.inputs[0]),e.disconnect(y),d.disconnect(r),r.disconnect(h.inputs[0]),r.disconnect(v.inputs[0]),h.disconnect(p.gain),v.disconnect(y.gain),p.disconnect(i,0,0),y.disconnect(i,0,1)}}})(t,a,f,p);if(2===r)return((t,r,i,a)=>{const f=new Float32Array(16385),p=new Float32Array(16385),h=new Float32Array(16385),d=new Float32Array(16385),y=Math.floor(8192.5);for(let t=0;t<16385;t+=1)if(t>y){const e=(t-y)/(16384-y)*u;f[t]=Math.cos(e),p[t]=Math.sin(e),h[t]=0,d[t]=1}else{const e=t/(16384-y)*u;f[t]=1,p[t]=0,h[t]=Math.cos(e),d[t]=Math.sin(e)}const v=e(t,{channelCount:2,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:2}),m=n(t,{...c,gain:0}),g=o(t,{...l,curve:f}),b=n(t,{...c,gain:0}),_=o(t,{...l,curve:p}),w=o(t,{...l,curve:s}),x=n(t,{...c,gain:0}),O=o(t,{...l,curve:h}),S=n(t,{...c,gain:0}),k=o(t,{...l,curve:d});return{connectGraph(){r.connect(v),r.connect(w.inputs[0]),v.connect(m,1),v.connect(b,1),v.connect(x,1),v.connect(S,1),w.connect(i),i.connect(g.inputs[0]),i.connect(_.inputs[0]),i.connect(O.inputs[0]),i.connect(k.inputs[0]),g.connect(m.gain),_.connect(b.gain),O.connect(x.gain),k.connect(S.gain),m.connect(a,0,0),x.connect(a,0,0),b.connect(a,0,1),S.connect(a,0,1)},disconnectGraph(){r.disconnect(v),r.disconnect(w.inputs[0]),v.disconnect(m,1),v.disconnect(b,1),v.disconnect(x,1),v.disconnect(S,1),w.disconnect(i),i.disconnect(g.inputs[0]),i.disconnect(_.inputs[0]),i.disconnect(O.inputs[0]),i.disconnect(k.inputs[0]),g.disconnect(m.gain),_.disconnect(b.gain),O.disconnect(x.gain),k.disconnect(S.gain),m.disconnect(a,0,0),x.disconnect(a,0,0),b.disconnect(a,0,1),S.disconnect(a,0,1)}}})(t,a,f,p);throw i()};return(e,{channelCount:o,channelCountMode:s,pan:u,...c})=>{if("max"===s)throw i();const l=t(e,{...c,channelCount:1,channelCountMode:s,numberOfInputs:2}),p=n(e,{...c,channelCount:o,channelCountMode:s,gain:1}),h=n(e,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:u});let{connectGraph:d,disconnectGraph:y}=f(e,o,p,h,l);Object.defineProperty(h.gain,"defaultValue",{get:()=>0});const v={get bufferSize(){},get channelCount(){return p.channelCount},set channelCount(t){p.channelCount!==t&&(m&&y(),({connectGraph:d,disconnectGraph:y}=f(e,t,p,h,l)),m&&d()),p.channelCount=t},get channelCountMode(){return p.channelCountMode},set channelCountMode(t){if("clamped-max"===t||"max"===t)throw i();p.channelCountMode=t},get channelInterpretation(){return p.channelInterpretation},set channelInterpretation(t){p.channelInterpretation=t},get context(){return p.context},get inputs(){return[p]},get numberOfInputs(){return p.numberOfInputs},get numberOfOutputs(){return p.numberOfOutputs},get pan(){return h.gain},addEventListener:(...t)=>p.addEventListener(t[0],t[1],t[2]),dispatchEvent:(...t)=>p.dispatchEvent(t[0]),removeEventListener:(...t)=>p.removeEventListener(t[0],t[1],t[2])};let m=!1;return a(Object(r.a)(v,l),()=>{d(),m=!0},()=>{y(),m=!1})}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(7),o=n(4);const i=(t,e,n,i,a,s,u)=>(c,l)=>{const f=n(c,t=>t.createWaveShaper());try{return f.curve=new Float32Array([1]),i(c,l)}catch{}Object(o.a)(f,l);const p=l.curve;if(null!==p&&p.length<2)throw e();Object(r.a)(f,l,"curve"),Object(r.a)(f,l,"oversample");let h=null,d=!1;u(f,"curve",t=>()=>t.call(f),e=>n=>(e.call(f,n),d&&(a(n)&&null===h?h=t(c,f):a(n)||null===h||(h(),h=null)),n));return s(f,()=>{d=!0,a(f.curve)&&(h=t(c,f))},()=>{d=!1,null!==h&&(h(),h=null)})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(4),o=n(26);const i=(t,e,n,i,a,s)=>(u,{curve:c,oversample:l,...f})=>{const p=n(u,t=>t.createWaveShaper()),h=n(u,t=>t.createWaveShaper());Object(r.a)(p,f),Object(r.a)(h,f);const d=i(u,{...f,gain:1}),y=i(u,{...f,gain:-1}),v=i(u,{...f,gain:1}),m=i(u,{...f,gain:-1});let g=null,b=!1,_=null;const w={get bufferSize(){},get channelCount(){return p.channelCount},set channelCount(t){d.channelCount=t,y.channelCount=t,p.channelCount=t,v.channelCount=t,h.channelCount=t,m.channelCount=t},get channelCountMode(){return p.channelCountMode},set channelCountMode(t){d.channelCountMode=t,y.channelCountMode=t,p.channelCountMode=t,v.channelCountMode=t,h.channelCountMode=t,m.channelCountMode=t},get channelInterpretation(){return p.channelInterpretation},set channelInterpretation(t){d.channelInterpretation=t,y.channelInterpretation=t,p.channelInterpretation=t,v.channelInterpretation=t,h.channelInterpretation=t,m.channelInterpretation=t},get context(){return p.context},get curve(){return _},set curve(n){if(null!==c&&c.length<2)throw e();if(null===n)p.curve=n,h.curve=n;else{const t=n.length,e=new Float32Array(t+2-t%2),r=new Float32Array(t+2-t%2);e[0]=n[0],r[0]=-n[t-1];const o=Math.ceil((t+1)/2),i=(t+1)/2-1;for(let a=1;ad.addEventListener(t[0],t[1],t[2]),dispatchEvent:(...t)=>d.dispatchEvent(t[0]),removeEventListener:(...t)=>d.removeEventListener(t[0],t[1],t[2])};c!==w.curve&&(w.curve=c),l!==w.oversample&&(w.oversample=l);return s(Object(o.a)(w,v),()=>{d.connect(p).connect(v),d.connect(y).connect(h).connect(m).connect(v),b=!0,a(_)&&(g=t(u,d))},()=>{d.disconnect(p),p.disconnect(v),d.disconnect(y),y.disconnect(h),h.disconnect(m),m.disconnect(v),b=!1,null!==g&&(g(),g=null)})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(38);const o={numberOfChannels:1},i=(t,e,n,i,a)=>class extends t{constructor(t,n,a){let s;if("number"==typeof t&&void 0!==n&&void 0!==a)s={length:n,numberOfChannels:t,sampleRate:a};else{if("object"!=typeof t)throw new Error("The given parameters are not valid.");s=t}const{length:u,numberOfChannels:c,sampleRate:l}={...o,...s},f=i(c,u,l);e(r.a,()=>Object(r.a)(f))||f.addEventListener("statechange",(()=>{let t=0;const e=n=>{"running"===this._state&&(t>0?(f.removeEventListener("statechange",e),n.stopImmediatePropagation(),this._waitForThePromiseToSettle(n)):t+=1)};return e})()),super(f,c),this._length=u,this._nativeOfflineAudioContext=f,this._state=null}get length(){return void 0===this._nativeOfflineAudioContext.length?this._length:this._nativeOfflineAudioContext.length}get state(){return null===this._state?this._nativeOfflineAudioContext.state:this._state}startRendering(){return"running"===this._state?Promise.reject(n()):(this._state="running",a(this.destination,this._nativeOfflineAudioContext).then(t=>(this._state=null,t)).catch(t=>{throw this._state=null,t}))}_waitForThePromiseToSettle(t){null===this._state?this._nativeOfflineAudioContext.dispatchEvent(t):setTimeout(()=>this._waitForThePromiseToSettle(t))}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(48),o=n(59);const i={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",detune:0,frequency:440,type:"sine"},a=(t,e,n,a,s,u,c,l)=>class extends t{constructor(t,n=i){const r=u(t),o={...i,...n},l=a(r,o),f=c(r),p=f?s():null,h=t.sampleRate/2;super(t,!1,l,p),this._detune=e(this,f,l.detune,153600,-153600),this._frequency=e(this,f,l.frequency,h,-h),this._nativeOscillatorNode=l,this._onended=null,this._oscillatorNodeRenderer=p,null!==this._oscillatorNodeRenderer&&void 0!==o.periodicWave&&(this._oscillatorNodeRenderer.periodicWave=o.periodicWave)}get detune(){return this._detune}get frequency(){return this._frequency}get onended(){return this._onended}set onended(t){const e="function"==typeof t?l(this,t):null;this._nativeOscillatorNode.onended=e;const n=this._nativeOscillatorNode.onended;this._onended=null!==n&&n===e?t:n}get type(){return this._nativeOscillatorNode.type}set type(t){if(this._nativeOscillatorNode.type=t,"custom"===t)throw n();null!==this._oscillatorNodeRenderer&&(this._oscillatorNodeRenderer.periodicWave=null)}setPeriodicWave(t){this._nativeOscillatorNode.setPeriodicWave(t),null!==this._oscillatorNodeRenderer&&(this._oscillatorNodeRenderer.periodicWave=t)}start(t=0){if(this._nativeOscillatorNode.start(t),null!==this._oscillatorNodeRenderer)this._oscillatorNodeRenderer.start=t;else{Object(r.a)(this);const t=()=>{this._nativeOscillatorNode.removeEventListener("ended",t),setTimeout(()=>Object(o.a)(this),1e3)};this._nativeOscillatorNode.addEventListener("ended",t)}}stop(t=0){this._nativeOscillatorNode.stop(t),null!==this._oscillatorNodeRenderer&&(this._oscillatorNodeRenderer.stop=t)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(6);const o=(t,e,n,o,i)=>()=>{const a=new WeakMap;let s=null,u=null,c=null;return{set periodicWave(t){s=t},set start(t){u=t},set stop(t){c=t},render(l,f,p){const h=a.get(f);return void 0!==h?Promise.resolve(h):(async(l,f,p)=>{let h=n(l);const d=Object(r.a)(h,f);if(!d){const t={channelCount:h.channelCount,channelCountMode:h.channelCountMode,channelInterpretation:h.channelInterpretation,detune:h.detune.value,frequency:h.frequency.value,periodicWave:null===s?void 0:s,type:h.type};h=e(f,t),null!==u&&h.start(u),null!==c&&h.stop(c)}return a.set(f,h),d?(await t(f,l.detune,h.detune,p),await t(f,l.frequency,h.frequency,p)):(await o(f,l.detune,h.detune,p),await o(f,l.frequency,h.frequency,p)),await i(l,f,h,p),h})(l,f,p)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(5);const o={channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",coneInnerAngle:360,coneOuterAngle:360,coneOuterGain:0,distanceModel:"inverse",maxDistance:1e4,orientationX:1,orientationY:0,orientationZ:0,panningModel:"equalpower",positionX:0,positionY:0,positionZ:0,refDistance:1,rolloffFactor:1},i=(t,e,n,i,a,s)=>class extends t{constructor(t,u=o){const c=a(t),l={...o,...u},f=n(c,l),p=s(c);super(t,!1,f,p?i():null),this._nativePannerNode=f,this._orientationX=e(this,p,f.orientationX,r.b,r.a),this._orientationY=e(this,p,f.orientationY,r.b,r.a),this._orientationZ=e(this,p,f.orientationZ,r.b,r.a),this._positionX=e(this,p,f.positionX,r.b,r.a),this._positionY=e(this,p,f.positionY,r.b,r.a),this._positionZ=e(this,p,f.positionZ,r.b,r.a)}get coneInnerAngle(){return this._nativePannerNode.coneInnerAngle}set coneInnerAngle(t){this._nativePannerNode.coneInnerAngle=t}get coneOuterAngle(){return this._nativePannerNode.coneOuterAngle}set coneOuterAngle(t){this._nativePannerNode.coneOuterAngle=t}get coneOuterGain(){return this._nativePannerNode.coneOuterGain}set coneOuterGain(t){this._nativePannerNode.coneOuterGain=t}get distanceModel(){return this._nativePannerNode.distanceModel}set distanceModel(t){this._nativePannerNode.distanceModel=t}get maxDistance(){return this._nativePannerNode.maxDistance}set maxDistance(t){this._nativePannerNode.maxDistance=t}get orientationX(){return this._orientationX}get orientationY(){return this._orientationY}get orientationZ(){return this._orientationZ}get panningModel(){return this._nativePannerNode.panningModel}set panningModel(t){this._nativePannerNode.panningModel=t}get positionX(){return this._positionX}get positionY(){return this._positionY}get positionZ(){return this._positionZ}get refDistance(){return this._nativePannerNode.refDistance}set refDistance(t){this._nativePannerNode.refDistance=t}get rolloffFactor(){return this._nativePannerNode.rolloffFactor}set rolloffFactor(t){this._nativePannerNode.rolloffFactor=t}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(33),o=n(6);const i=(t,e,n,i,a,s,u,c,l,f)=>()=>{const p=new WeakMap;let h=null;return{render(d,y,v){const m=p.get(y);return void 0!==m?Promise.resolve(m):(async(d,y,v)=>{let m=null,g=s(d);const b={channelCount:g.channelCount,channelCountMode:g.channelCountMode,channelInterpretation:g.channelInterpretation},_={...b,coneInnerAngle:g.coneInnerAngle,coneOuterAngle:g.coneOuterAngle,coneOuterGain:g.coneOuterGain,distanceModel:g.distanceModel,maxDistance:g.maxDistance,panningModel:g.panningModel,refDistance:g.refDistance,rolloffFactor:g.rolloffFactor},w=Object(o.a)(g,y);if("bufferSize"in g)m=i(y,{...b,gain:1});else if(!w){const t={..._,orientationX:g.orientationX.value,orientationY:g.orientationY.value,orientationZ:g.orientationZ.value,positionX:g.positionX.value,positionY:g.positionY.value,positionZ:g.positionZ.value};g=a(y,t)}if(p.set(y,null===m?g:m),null!==m){if(null===h){if(null===u)throw new Error("Missing the native OfflineAudioContext constructor.");const t=new u(6,d.context.length,y.sampleRate),r=e(t,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:6});r.connect(t.destination),h=(async()=>{const e=await Promise.all([d.orientationX,d.orientationY,d.orientationZ,d.positionX,d.positionY,d.positionZ].map(async(e,r)=>{const o=n(t,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:0===r?1:0});return await c(t,e,o.offset,v),o}));for(let t=0;t<6;t+=1)e[t].connect(r,0,t),e[t].start(0);return f(t)})()}const t=await h,r=i(y,{...b,gain:1});await l(d,y,r,v);const o=[];for(let e=0;et!==s[e])||n.some((t,e)=>t!==p[e])){s=t,p=n;const o=e/y.sampleRate;g.gain.setValueAtTime(0,o),g=i(y,{...b,gain:0}),w=a(y,{..._,orientationX:s[0],orientationY:s[1],orientationZ:s[2],positionX:p[0],positionY:p[1],positionZ:p[2]}),g.gain.setValueAtTime(1,o),r.connect(g).connect(w.inputs[0]),w.connect(m)}}return m}return w?(await t(y,d.orientationX,g.orientationX,v),await t(y,d.orientationY,g.orientationY,v),await t(y,d.orientationZ,g.orientationZ,v),await t(y,d.positionX,g.positionX,v),await t(y,d.positionY,g.positionY,v),await t(y,d.positionZ,g.positionZ,v)):(await c(y,d.orientationX,g.orientationX,v),await c(y,d.orientationY,g.orientationY,v),await c(y,d.orientationZ,g.orientationZ,v),await c(y,d.positionX,g.positionX,v),await c(y,d.positionY,g.positionY,v),await c(y,d.positionZ,g.positionZ,v)),Object(r.a)(g)?await l(d,y,g.inputs[0],v):await l(d,y,g,v),g})(d,y,v)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));const r={disableNormalization:!1},o=(t,e,n)=>class o{constructor(o,i){const a=e(o),s={...r,...i},u=t(a,s);return n.add(u),u}static[Symbol.hasInstance](t){return null!==t&&"object"==typeof t&&Object.getPrototypeOf(t)===o.prototype||n.has(t)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>(n,r,o,i)=>(t(r).replay(o),e(r,n,o,i))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n)=>async(r,o,i,a)=>{const s=t(r),u=[...a,r];await Promise.all(s.activeInputs.map((t,a)=>Array.from(t).filter(([t])=>!u.includes(t)).map(async([t,s])=>{const c=e(t),l=await c.render(t,o,u),f=r.context.destination;n(t)||r===f&&n(r)||l.connect(i,s,a)})).reduce((t,e)=>[...t,...e],[]))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n)=>async(r,o,i,a)=>{const s=e(r);await Promise.all(Array.from(s.activeInputs).map(async([e,r])=>{const s=t(e),u=await s.render(e,o,a);n(e)||u.connect(i,r)}))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(38);const o=(t,e,n,o)=>i=>t(r.a,()=>Object(r.a)(i))?Promise.resolve(t(o,o)).then(t=>{if(!t){const t=n(i,512,0,1);i.oncomplete=()=>{t.onaudioprocess=null,t.disconnect()},t.onaudioprocess=()=>i.currentTime,t.connect(i.destination)}return i.startRendering()}):new Promise(t=>{const n=e(i,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});i.oncomplete=e=>{n.disconnect(),t(e.renderedBuffer)},n.connect(i.destination),i.startRendering()})},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(90);const o=(t,e,n,o,i,a,s,u)=>{const c=[];return(l,f)=>n(l).render(l,f,c).then(()=>Promise.all(Array.from(o(f)).map(t=>n(t).render(t,f,c)))).then(()=>i(f)).then(n=>("function"!=typeof n.copyFromChannel?(s(n),Object(r.a)(n)):e(a,()=>a(n))||u(n),t.add(n),n))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));const r={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers",pan:0},o=(t,e,n,o,i,a)=>class extends t{constructor(t,s=r){const u=i(t),c={...r,...s},l=n(u,c),f=a(u);super(t,!1,l,f?o():null),this._pan=e(this,f,l.pan,1,-1)}get pan(){return this._pan}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(33),o=n(6);const i=(t,e,n,i,a)=>()=>{const s=new WeakMap;return{render(u,c,l){const f=s.get(c);return void 0!==f?Promise.resolve(f):(async(u,c,l)=>{let f=n(u);const p=Object(o.a)(f,c);if(!p){const t={channelCount:f.channelCount,channelCountMode:f.channelCountMode,channelInterpretation:f.channelInterpretation,pan:f.pan.value};f=e(c,t)}return s.set(c,f),p?await t(c,u.pan,f.pan,l):await i(c,u.pan,f.pan,l),Object(r.a)(f)?await a(u,c,f.inputs[0],l):await a(u,c,f,l),f})(u,c,l)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>{if(null===t)return!1;try{new t({length:1,sampleRate:44100})}catch{return!1}return!0}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>{if(null===t)return!1;const e=new t(1,1,44100).createBuffer(1,1,44100);if(void 0===e.copyToChannel)return!0;const n=new Float32Array(2);try{e.copyFromChannel(n,0,0)}catch{return!1}return!0}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>{const n=t(e,t=>t.createBufferSource());n.start();try{n.start()}catch{return!0}return!1}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>{if(null===t)return Promise.resolve(!1);const e=new t(1,1,44100),n=e.createBuffer(1,1,e.sampleRate),r=e.createBufferSource();return n.getChannelData(0)[0]=1,r.buffer=n,r.start(0,0,0),r.connect(e.destination),new Promise(t=>{e.oncomplete=({renderedBuffer:e})=>{t(0===e.getChannelData(0)[0])},e.startRendering()})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>{const n=t(e,t=>t.createBufferSource()),r=e.createBuffer(1,1,44100);n.buffer=r;try{n.start(0,1)}catch{return!1}return!0}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>{const n=t(e,t=>t.createBufferSource());n.start();try{n.stop()}catch{return!1}return!0}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>{if(null===t)return!1;if(void 0!==t.prototype&&void 0!==t.prototype.close)return!0;const e=new t,n=void 0!==e.close;try{e.close()}catch{}return n}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>{if(null===t)return Promise.resolve(!1);const e=new t(1,1,44100);return new Promise(t=>{let n=!0;const r=r=>{n&&(n=!1,e.startRendering(),t(r instanceof TypeError))};let o;try{o=e.decodeAudioData(null,()=>{},r)}catch(t){r(t)}void 0!==o&&o.catch(r)})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>{if(null===t)return!1;let e;try{e=new t({latencyHint:"balanced"})}catch{return!1}return e.close(),!0}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>{if(null===t)return!1;const e=new t(1,1,44100).createGain(),n=e.connect(e)===e;return e.disconnect(e),n}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>{const n=t(e,t=>t.createOscillator());try{n.start(-1)}catch(t){return t instanceof RangeError}return!1}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>{const n=e.createBuffer(1,1,44100),r=t(e,t=>t.createBufferSource());r.buffer=n,r.start(),r.stop();try{return r.stop(),!0}catch{return!1}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>{const n=t(e,t=>t.createOscillator());try{n.stop(-1)}catch(t){return t instanceof RangeError}return!1}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>async()=>{if(null===t)return!0;if(null===e)return!1;const n=new Blob(['class A extends AudioWorkletProcessor{process(){this.port.postMessage(0)}}registerProcessor("a",A)'],{type:"application/javascript; charset=utf-8"}),r=new e(1,128,3200),o=URL.createObjectURL(n);let i=!1;try{await r.audioWorklet.addModule(o);const e=r.createGain(),n=new t(r,"a",{numberOfOutputs:0});n.port.onmessage=()=>i=!0,e.connect(n),await r.startRendering()}catch{}finally{URL.revokeObjectURL(o)}return i}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>()=>{if(null===e)return!1;const n=new e(1,1,44100),r=t(n,t=>t.createChannelMerger());try{r.channelCount=2}catch{return!0}return!1}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>()=>{if(null===e)return!1;const n=new e(1,1,44100);return void 0===n.createConstantSource||t(n,t=>t.createConstantSource()).offset.maxValue!==Number.POSITIVE_INFINITY}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>{if(null===t)return!1;const e=new t(1,1,44100),n=e.createConvolver();n.buffer=e.createBuffer(1,1,e.sampleRate);try{n.buffer=e.createBuffer(1,1,e.sampleRate)}catch{return!1}return!0}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>null!==t&&t.hasOwnProperty("isSecureContext")},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>{if(null===t)return!1;const e=new t;try{return e.createMediaStreamSource(new MediaStream),!1}catch(t){return!0}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>()=>{if(null===e)return Promise.resolve(!1);const n=new e(1,1,44100),r=t(n,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});return new Promise(t=>{n.oncomplete=()=>{r.disconnect(),t(0!==n.currentTime)},n.startRendering()})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>{if(null===t)return Promise.resolve(!1);const e=new t(1,1,44100);if(void 0===e.createStereoPanner)return Promise.resolve(!0);if(void 0===e.createConstantSource)return Promise.resolve(!0);const n=e.createConstantSource(),r=e.createStereoPanner();return n.channelCount=1,n.offset.value=1,r.channelCount=1,n.start(),n.connect(r).connect(e.destination),e.startRendering().then(t=>1!==t.getChannelData(0)[0])}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));const r={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",curve:null,oversample:"none"},o=(t,e,n,o,i,a)=>class extends t{constructor(t,e=r){const s=i(t),u={...r,...e},c=n(s,u);super(t,!0,c,a(s)?o():null),this._isCurveNullified=!1,this._nativeWaveShaperNode=c}get curve(){return this._isCurveNullified?null:this._nativeWaveShaperNode.curve}set curve(t){if(null===t)this._isCurveNullified=!0,this._nativeWaveShaperNode.curve=new Float32Array([0,0]);else{if(t.length<2)throw e();this._isCurveNullified=!1,this._nativeWaveShaperNode.curve=t}}get oversample(){return this._nativeWaveShaperNode.oversample}set oversample(t){this._nativeWaveShaperNode.oversample=t}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(33),o=n(6);const i=(t,e,n)=>()=>{const i=new WeakMap;return{render(a,s,u){const c=i.get(s);return void 0!==c?Promise.resolve(c):(async(a,s,u)=>{let c=e(a);if(!Object(o.a)(c,s)){const e={channelCount:c.channelCount,channelCountMode:c.channelCountMode,channelInterpretation:c.channelInterpretation,curve:c.curve,oversample:c.oversample};c=t(s,e)}return i.set(s,c),Object(r.a)(c)?await n(a,s,c.inputs[0],u):await n(a,s,c,u),c})(a,s,u)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=()=>"undefined"==typeof window?null:window},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>n=>{n.copyFromChannel=(r,o,i=0)=>{const a=t(i),s=t(o);if(s>=n.numberOfChannels)throw e();const u=n.length,c=n.getChannelData(s),l=r.length;for(let t=a<0?-a:0;t+a{const a=t(i),s=t(o);if(s>=n.numberOfChannels)throw e();const u=n.length,c=n.getChannelData(s),l=r.length;for(let t=a<0?-a:0;t+ae=>{var n,r;e.copyFromChannel=(n=e.copyFromChannel,(r,o,i=0)=>{const a=t(i),s=t(o);if(a{const a=t(i),s=t(o);if(a(e,n)=>{const r=n.createBuffer(1,1,n.sampleRate);null===e.buffer&&(e.buffer=r),t(e,"buffer",t=>()=>{const n=t.call(e);return n===r?null:n},t=>n=>t.call(e,null===n?r:n))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(26);const o=t=>(e,n)=>{const o=t(n,t=>t.createGain());e.connect(o);const i=(a=e.disconnect,()=>{a.call(e,o),e.removeEventListener("ended",i)});var a;e.addEventListener("ended",i),Object(r.a)(e,o),e.stop=(t=>{let n=!1;return(r=0)=>{if(n)try{t.call(e,r)}catch{o.gain.setValueAtTime(0,r)}else t.call(e,r),n=!0}})(e.stop)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n)=>(r,o)=>{o.channelCount=1,o.channelCountMode="explicit",Object.defineProperty(o,"channelCount",{get:()=>1,set:()=>{throw t()}}),Object.defineProperty(o,"channelCountMode",{get:()=>"explicit",set:()=>{throw t()}});const i=e(r,t=>t.createBufferSource());n(o,()=>{const t=o.numberOfInputs;for(let e=0;ei.disconnect(o))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=()=>new Promise(t=>{const e=new ArrayBuffer(0),{port1:n,port2:r}=new MessageChannel;n.onmessage=({data:e})=>t(null!==e),r.postMessage(e,[e])})},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>{var e;t.start=(e=t.start,(n=0,r=0,o)=>{const i=t.buffer,a=null===i?r:Math.min(i.duration,r);null!==i&&a>i.duration-.5/t.context.sampleRate?e.call(t,n,0,0):e.call(t,n,a,o)})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return q}));var r=n(2),o=n(77),i=n(61);const a=t=>"port"in t;var s=n(96),u=n(55);const c=(t,e)=>{if(!Object(u.a)(t).delete(e))throw new Error("Missing the expected event listener.")};var l=n(97),f=n(19),p=n(79),h=n(13),d=n(80),y=n(22),v=n(41),m=n(62),g=n(51);const b=t=>!r.a.has(t),_=(t,e)=>{const n=Array.from(t).filter(e);if(n.length>1)throw Error("More than one element was found.");if(0===n.length)throw Error("No element was found.");const[r]=n;return t.delete(r),r};var w=n(48),x=n(59);const O=(t,e)=>{!a(t)&&e.every(t=>0===t.size)&&Object(x.a)(t)},S=t=>new Promise(e=>{const n=t.createScriptProcessor(256,1,1),r=t.createGain(),o=t.createBuffer(1,2,44100),i=o.getChannelData(0);i[0]=1,i[1]=1;const a=t.createBufferSource();a.buffer=o,a.loop=!0,a.connect(n).connect(t.destination),a.connect(r),a.disconnect(r),n.onaudioprocess=r=>{const o=r.inputBuffer.getChannelData(0);Array.prototype.some.call(o,t=>1===t)?e(!0):e(!1),a.stop(),n.onaudioprocess=null,a.disconnect(n),n.disconnect(t.destination)},a.start()}),k=(t,e)=>{const n=new Map;for(const e of t)for(const t of e){const e=n.get(t);n.set(t,void 0===e?1:e+1)}n.forEach((t,n)=>e(n,t))};var T=n(78);const C=(t,e,[n,r,o],i)=>{Object(v.a)(t[r],[e,n,o],t=>t[0]===e&&t[1]===n,i)},E=(t,e,[n,r],o)=>{Object(v.a)(t,[e,n,r],t=>t[0]===e&&t[1]===n,o)},A=(t,e,[n,r,o],i)=>{const a=t.get(n);void 0===a?t.set(n,new Set([[r,e,o]])):Object(v.a)(a,[r,e,o],t=>t[0]===r&&t[1]===e,i)},j=(t,[e,n,r],o)=>{const i=t.get(e);void 0===i?t.set(e,new Set([[n,r]])):Object(v.a)(i,[n,r],t=>t[0]===n,o)},P=(t,e,n,r)=>{const o=Object(y.a)(t,e),i=_(o,t=>t[0]===n&&t[1]===r);return 0===o.size&&t.delete(e),i},D=(t,e,n)=>{const r=Object(y.a)(t,e),o=_(r,t=>t[0]===n);return 0===r.size&&t.delete(e),o},M=(t,e,n,r)=>{const{activeInputs:o,passiveInputs:i}=Object(f.a)(e),{outputs:a}=Object(f.a)(t),c=Object(u.a)(t),p=a=>{const u=Object(h.a)(e),c=Object(h.a)(t);if(a){const a=P(i,t,n,r);C(o,t,a,!1),Object(g.a)(t)||Object(s.a)(c,u,n,r),b(e)&&Object(w.a)(e)}else{const a=((t,e,n,r)=>_(t[r],t=>t[0]===e&&t[1]===n))(o,t,n,r);A(i,r,a,!1),Object(g.a)(t)||Object(l.a)(c,u,n,r),Object(m.a)(e)&&O(e,o)}};return!!Object(v.a)(a,[e,n,r],t=>t[0]===e&&t[1]===n&&t[2]===r,!0)&&(c.add(p),Object(m.a)(t)?C(o,t,[n,r,p],!0):A(i,r,[t,n,p],!0),!0)},I=(t,e,n)=>{const{activeInputs:r,passiveInputs:o}=Object(p.a)(e),{outputs:i}=Object(f.a)(t),a=Object(u.a)(t),s=i=>{const a=Object(h.a)(t),s=Object(d.a)(e);if(i){const e=D(o,t,n);E(r,t,e,!1),Object(g.a)(t)||a.connect(s,n)}else{const e=((t,e,n)=>_(t,t=>t[0]===e&&t[1]===n))(r,t,n);j(o,e,!1),Object(g.a)(t)||a.disconnect(s,n)}};return!!Object(v.a)(i,[e,n],t=>t[0]===e&&t[1]===n,!0)&&(a.add(s),Object(m.a)(t)?E(r,t,[n,s],!0):j(o,[t,n,s],!0),!0)},R=(t,e,n)=>{for(const r of t)if(r[0]===e&&r[1]===n)return t.delete(r),r;return null},N=(t,e,n,r)=>{const[o,i]=((t,e,n,r)=>{const{activeInputs:o,passiveInputs:i}=Object(f.a)(e),a=R(o[r],t,n);if(null===a){return[P(i,t,n,r)[2],!1]}return[a[2],!0]})(t,e,n,r);if(null!==o&&(c(t,o),i&&!Object(g.a)(t)&&Object(l.a)(Object(h.a)(t),Object(h.a)(e),n,r)),Object(m.a)(e)){const{activeInputs:t}=Object(f.a)(e);O(e,t)}},F=(t,e,n)=>{const[r,o]=((t,e,n)=>{const{activeInputs:r,passiveInputs:o}=Object(p.a)(e),i=R(r,t,n);if(null===i){return[D(o,t,n)[1],!1]}return[i[2],!0]})(t,e,n);null!==r&&(c(t,r),o&&!Object(g.a)(t)&&Object(h.a)(t).disconnect(Object(d.a)(e),n))},q=(t,e,n,u,c,l,y,m,g,_,x,O,A,j,P)=>class extends _{constructor(e,o,i,a){super(i),this._context=e,this._nativeAudioNode=i;const s=x(e);O(s)&&!0!==n(S,()=>S(s))&&(t=>{const e=new Map;var n,r;t.connect=(n=t.connect.bind(t),(t,r=0,o=0)=>{const i=Object(T.a)(t)?n(t,r,o):n(t,r),a=e.get(t);return void 0===a?e.set(t,[{input:o,output:r}]):a.every(t=>t.input!==o||t.output!==r)&&a.push({input:o,output:r}),i}),t.disconnect=(r=t.disconnect,(n,o,i)=>{if(r.apply(t),void 0===n)e.clear();else if("number"==typeof n)for(const[t,r]of e){const o=r.filter(t=>t.output!==n);0===o.length?e.delete(t):e.set(t,o)}else if(e.has(n))if(void 0===o)e.delete(n);else{const t=e.get(n);if(void 0!==t){const r=t.filter(t=>t.output!==o&&(t.input!==i||void 0===i));0===r.length?e.delete(n):e.set(n,r)}}for(const[n,r]of e)r.forEach(e=>{Object(T.a)(n)?t.connect(n,e.output,e.input):t.connect(n,e.output)})})})(i),r.c.set(this,i),r.i.set(this,new Set),o&&Object(w.a)(this),t(this,a,i)}get channelCount(){return this._nativeAudioNode.channelCount}set channelCount(t){this._nativeAudioNode.channelCount=t}get channelCountMode(){return this._nativeAudioNode.channelCountMode}set channelCountMode(t){this._nativeAudioNode.channelCountMode=t}get channelInterpretation(){return this._nativeAudioNode.channelInterpretation}set channelInterpretation(t){this._nativeAudioNode.channelInterpretation=t}get context(){return this._context}get numberOfInputs(){return this._nativeAudioNode.numberOfInputs}get numberOfOutputs(){return this._nativeAudioNode.numberOfOutputs}connect(t,n=0,r=0){if(n<0||n>=this._nativeAudioNode.numberOfOutputs)throw c();const i=x(this._context),m=P(i);if(A(t)||j(t))throw l();if(Object(o.a)(t)){const o=Object(h.a)(t);try{const u=Object(s.a)(this._nativeAudioNode,o,n,r);if(m||b(this)?this._nativeAudioNode.disconnect(...u):b(t)&&Object(w.a)(t),a(t)){const t=e.get(o);if(void 0===t){const t=i.createGain();t.connect(u[0],0,u[2]),e.set(o,new Map([[r,t]]))}else if(void 0===t.get(r)){const e=i.createGain();e.connect(u[0],0,u[2]),t.set(r,e)}}}catch(t){if(12===t.code)throw l();throw t}if(m?((t,e,n,r)=>{const{outputs:o}=Object(f.a)(t);if(Object(v.a)(o,[e,n,r],t=>t[0]===e&&t[1]===n&&t[2]===r,!0)){const{activeInputs:o}=Object(f.a)(e);return C(o,t,[n,r,null],!0),!0}return!1})(this,t,n,r):M(this,t,n,r)){const e=g([this],t);k(e,u(m))}return t}const _=Object(d.a)(t);if("playbackRate"===_.name)throw y();try{this._nativeAudioNode.connect(_,n),(m||b(this))&&this._nativeAudioNode.disconnect(_,n)}catch(t){if(12===t.code)throw l();throw t}if(m?((t,e,n)=>{const{outputs:r}=Object(f.a)(t);if(Object(v.a)(r,[e,n],t=>t[0]===e&&t[1]===n,!0)){const{activeInputs:r}=Object(p.a)(e);return E(r,t,[n,null],!0),!0}return!1})(this,t,n):I(this,t,n)){const e=g([this],t);k(e,u(m))}}disconnect(t,e,n){let r;if(void 0===t)r=(t=>{const e=Object(f.a)(t),n=[];for(const r of e.outputs)Object(i.a)(r)?N(t,...r):F(t,...r),n.push(r[0]);return e.outputs.clear(),n})(this);else if("number"==typeof t){if(t<0||t>=this.numberOfOutputs)throw c();r=((t,e)=>{const n=Object(f.a)(t),r=[];for(const o of n.outputs)o[1]===e&&(Object(i.a)(o)?N(t,...o):F(t,...o),r.push(o[0]),n.outputs.delete(o));return r})(this,t)}else{if(void 0!==e&&(e<0||e>=this.numberOfOutputs))throw c();if(Object(o.a)(t)&&void 0!==n&&(n<0||n>=t.numberOfInputs))throw c();if(r=((t,e,n,r)=>{const o=Object(f.a)(t);return Array.from(o.outputs).filter(t=>!(t[0]!==e||void 0!==n&&t[1]!==n||void 0!==r&&t[2]!==r)).map(e=>(Object(i.a)(e)?N(t,...e):F(t,...e),o.outputs.delete(e),e[0]))})(this,t,e,n),0===r.length)throw l()}for(const t of r){const e=g([this],t);k(e,m)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(5),o=n(129),i=n(98),a=n(127),s=n(2);const u=async(t,e)=>new t(await(t=>new Promise((e,n)=>{const{port1:r,port2:o}=new MessageChannel;r.onmessage=({data:t})=>{r.close(),o.close(),e(t)},r.onmessageerror=({data:t})=>{r.close(),o.close(),n(t)},o.postMessage(t)}))(e));var c=n(99),l=n(126);const f=(t,e,n,f,p,h,d,y,v,m,g,b,_)=>(w,x,O,S)=>{if(0===S.numberOfInputs&&0===S.numberOfOutputs)throw m();if(void 0!==S.outputChannelCount){if(S.outputChannelCount.some(t=>t<1))throw m();if(S.outputChannelCount.length!==S.numberOfOutputs)throw n()}if("explicit"!==S.channelCountMode)throw m();const k=S.channelCount*S.numberOfInputs,T=S.outputChannelCount.reduce((t,e)=>t+e,0),C=void 0===O.parameterDescriptors?0:O.parameterDescriptors.length;if(k+C>6||T>6)throw m();const E=new MessageChannel,A=[],j=[];for(let t=0;tvoid 0===t?0:t},maxValue:{get:()=>void 0===e?r.b:e},minValue:{get:()=>void 0===n?r.a:n}}),P.push(i)}const D=p(w,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Math.max(1,k+C)}),M=Object(o.a)(x,w.sampleRate),I=v(w,M,k+C,Math.max(1,T)),R=h(w,{channelCount:Math.max(1,T),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,T)}),N=[];for(let t=0;t{const n=P[e];return n.connect(D,0,k+e),n.start(0),[t,n.offset]}));D.connect(I);let q=S.channelInterpretation,V=null;const L=0===S.numberOfOutputs?[I]:N,z={get bufferSize(){return M},get channelCount(){return S.channelCount},set channelCount(t){throw f()},get channelCountMode(){return S.channelCountMode},set channelCountMode(t){throw f()},get channelInterpretation(){return q},set channelInterpretation(t){for(const e of A)e.channelInterpretation=t;q=t},get context(){return I.context},get inputs(){return A},get numberOfInputs(){return S.numberOfInputs},get numberOfOutputs(){return S.numberOfOutputs},get onprocessorerror(){return V},set onprocessorerror(t){"function"==typeof V&&z.removeEventListener("processorerror",V),V="function"==typeof t?t:null,"function"==typeof V&&z.addEventListener("processorerror",V)},get parameters(){return F},get port(){return E.port2},addEventListener:(...t)=>I.addEventListener(t[0],t[1],t[2]),connect:e.bind(null,L),disconnect:g.bind(null,L),dispatchEvent:(...t)=>I.dispatchEvent(t[0]),removeEventListener:(...t)=>I.removeEventListener(t[0],t[1],t[2])},B=new Map;var U,W;E.port1.addEventListener=(U=E.port1.addEventListener,(...t)=>{if("message"===t[0]){const e="function"==typeof t[1]?t[1]:"object"==typeof t[1]&&null!==t[1]&&"function"==typeof t[1].handleEvent?t[1].handleEvent:null;if(null!==e){const n=B.get(t[1]);void 0!==n?t[1]=n:(t[1]=t=>{b(w.currentTime,w.sampleRate,()=>e(t))},B.set(e,t[1]))}}return U.call(E.port1,t[0],t[1],t[2])}),E.port1.removeEventListener=(W=E.port1.removeEventListener,(...t)=>{if("message"===t[0]){const e=B.get(t[1]);void 0!==e&&(B.delete(t[1]),t[1]=e)}return W.call(E.port1,t[0],t[1],t[2])});let $=null;Object.defineProperty(E.port1,"onmessage",{get:()=>$,set:t=>{"function"==typeof $&&E.port1.removeEventListener("message",$),$="function"==typeof t?t:null,"function"==typeof $&&(E.port1.addEventListener("message",$),E.port1.start())}}),O.prototype.port=E.port1;let H=null;((t,e,n,r)=>{let o=s.k.get(t);void 0===o&&(o=new WeakMap,s.k.set(t,o));const i=u(n,r);return o.set(e,i),i})(w,z,O,S).then(t=>H=t);const G=Object(c.a)(S.numberOfInputs,S.channelCount),K=Object(c.a)(S.numberOfOutputs,S.outputChannelCount),Q=void 0===O.parameterDescriptors?[]:O.parameterDescriptors.reduce((t,{name:e})=>({...t,[e]:new Float32Array(128)}),{});let Y=!0;const X=()=>{S.numberOfOutputs>0&&I.disconnect(R);for(let t=0,e=0;t{if(null!==H)for(let r=0;r{Object(i.a)(e,Q,t,k+n,r)});for(let t=0;t{const r=t.get(z);return void 0===r||void 0===r.get(n)?[]:e}),o=b(w.currentTime+r/w.sampleRate,w.sampleRate,()=>H.process(e,K,Q));Y=o;for(let t=0,e=0;tI.connect(Z).connect(Z.context.destination),et=()=>{I.disconnect(Z),Z.disconnect()};return tt(),_(z,()=>{if(Y){et(),S.numberOfOutputs>0&&I.connect(R);for(let t=0,e=0;t{Y&&(tt(),X()),J=!1})}},function(t,e,n){"use strict";var r=n(94);function o(t,e){void 0===e&&(e={});var n=function(t){if(t&&"j"===t[0]&&":"===t[1])return t.substr(2);return t}(t);if(function(t,e){return void 0===e&&(e=!t||"{"!==t[0]&&"["!==t[0]&&'"'!==t[0]),!e}(n,e.doNotParse))try{return JSON.parse(n)}catch(t){}return t}var i=n(123),a=function(){function t(t,e){var n=this;this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.cookies=function(t,e){return"string"==typeof t?r.parse(t,e):"object"==typeof t&&null!==t?t:{}}(t,e),new Promise((function(){n.HAS_DOCUMENT_COOKIE="object"==typeof document&&"string"==typeof document.cookie})).catch((function(){}))}return t.prototype._updateBrowserValues=function(t){this.HAS_DOCUMENT_COOKIE&&(this.cookies=r.parse(document.cookie,t))},t.prototype._emitChange=function(t){for(var e=0;e=0&&this.changeListeners.splice(e,1)},t}();e.a=a},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(2);const o={construct:()=>o},i=/^import(?:(?:[\s]+[\w]+|(?:[\s]+[\w]+[\s]*,)?[\s]*\{[\s]*[\w]+(?:[\s]+as[\s]+[\w]+)?(?:[\s]*,[\s]*[\w]+(?:[\s]+as[\s]+[\w]+)?)*[\s]*}|(?:[\s]+[\w]+[\s]*,)?[\s]*\*[\s]+as[\s]+[\w]+)[\s]+from)?(?:[\s]*)("([^"\\]|\\.)+"|'([^'\\]|\\.)+')(?:[\s]*);?/,a=(t,e)=>{const n=[];let r=t.replace(/^[\s]+/,""),o=r.match(i);for(;null!==o;){const t=o[1].slice(1,-1),a=o[0].replace(/([\s]+)?;?$/,"").replace(t,new URL(t,e).toString());n.push(a),r=r.slice(o[0].length).replace(/^[\s]+/,""),o=r.match(i)}return[n.join(";"),r]},s=t=>{if(void 0!==t&&!Array.isArray(t))throw new TypeError("The parameterDescriptors property of given value for processorCtor is not an array.")},u=t=>{if(!(t=>{try{new new Proxy(t,o)}catch{return!1}return!0})(t))throw new TypeError("The given value for processorCtor should be a constructor.");if(null===t.prototype||"object"!=typeof t.prototype)throw new TypeError("The given value for processorCtor should have a prototype.")},c=(t,e,n,o,i,c,l,f,p)=>(h,d,y={credentials:"omit"})=>{const v=c(h),m=new URL(d,p.location.href).toString();if(void 0!==v.audioWorklet)return o(d).then(t=>{const[e,n]=a(t,m),r=new Blob([`${e};(registerProcessor=>{${n}\n})((n,p)=>registerProcessor(n,class extends p{process(i,o,p){return super.process(i.map(j=>j.some(k=>k.length===0)?[]:j),o,p)}}))`],{type:"application/javascript; charset=utf-8"}),o=URL.createObjectURL(r),s=i(v);return(null!==s?s:v).audioWorklet.addModule(o,y).then(()=>URL.revokeObjectURL(o)).catch(t=>{throw URL.revokeObjectURL(o),void 0!==t.code&&"SyntaxError"!==t.name||(t.code=12),t})});const g=f.get(h);if(void 0!==g&&g.has(d))return Promise.resolve();const b=l.get(h);if(void 0!==b){const t=b.get(d);if(void 0!==t)return t}const _=o(d).then(t=>{const[n,r]=a(t,m);return e(`${n};((a,b)=>{(a[b]=a[b]||[]).push((AudioWorkletProcessor,global,registerProcessor,sampleRate,self,window)=>{${r}\n})})(window,'_AWGS')`)}).then(()=>{const e=p._AWGS.pop();if(void 0===e)throw new SyntaxError;n(v.currentTime,v.sampleRate,()=>e(class{},void 0,(e,n)=>{if(""===e.trim())throw t();const o=r.j.get(v);if(void 0!==o){if(o.has(e))throw t();u(n),s(n.parameterDescriptors),o.set(e,n)}else u(n),s(n.parameterDescriptors),r.j.set(v,new Map([[e,n]]))},v.sampleRate,void 0,void 0))}).catch(t=>{throw void 0!==t.code&&"SyntaxError"!==t.name||(t.code=12),t});return void 0===b?l.set(h,new Map([[d,_]])):b.set(d,_),_.then(()=>{const t=f.get(h);void 0===t?f.set(h,new Set([d])):t.add(d)}).catch(()=>{}).then(()=>{const t=l.get(h);void 0!==t&&t.delete(d)}),_}},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(8),o=n(7),i=n(4),a=n(14);var s=n(91),u=n(92);const c=(t,e,n,c,l,f,p,h,d,y,v,m,g)=>(b,_={})=>{const w=n(b,t=>t.createBufferSource());return Object(i.a)(w,_),Object(r.a)(w,_,"playbackRate"),Object(o.a)(w,_,"buffer"),Object(o.a)(w,_,"loop"),Object(o.a)(w,_,"loopEnd"),Object(o.a)(w,_,"loopStart"),e(c,()=>c(b))||(t=>{t.start=(e=>{let n=!1;return(r=0,o=0,i)=>{if(n)throw Object(a.a)();e.call(t,r,o,i),n=!0}})(t.start)})(w),e(l,l)||((t,e)=>{let n=Number.POSITIVE_INFINITY,r=Number.POSITIVE_INFINITY;var o,i;t.start=(o=t.start,i=t.stop,(a=0,s=0,u=Number.POSITIVE_INFINITY)=>{if(o.call(t,a,s),u>=0&&u(i=0)=>{r=Math.max(i,e.currentTime),o.call(t,Math.min(n,r))})(t.stop)})(w,b),e(f,()=>f(b))||v(w),e(p,()=>p(b))||m(w,b),e(h,()=>h(b))||Object(s.a)(w),e(d,()=>d(b))||g(w,b),e(y,()=>y(b))||Object(u.a)(w),t(b,w),w}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(7),o=n(4);const i=t=>"function"==typeof t.getFloatTimeDomainData,a=(t,e,n)=>(a,s)=>{const u=n(a,t=>t.createAnalyser());if(Object(o.a)(u,s),!(s.maxDecibels>s.minDecibels))throw e();return Object(r.a)(u,s,"fftSize"),Object(r.a)(u,s,"maxDecibels"),Object(r.a)(u,s,"minDecibels"),Object(r.a)(u,s,"smoothingTimeConstant"),t(i,()=>i(u))||(t=>{t.getFloatTimeDomainData=e=>{const n=new Uint8Array(e.length);t.getByteTimeDomainData(n);const r=Math.max(n.length,t.fftSize);for(let t=0;t(d,y)=>{const v=s(d)?d:a(d);if(i.has(y)){const t=n();return Promise.reject(t)}try{i.add(y)}catch{}if(e(f,()=>f(v))){return("closed"===v.state&&null!==c&&u(v)?new c(1,1,v.sampleRate):v).decodeAudioData(y).catch(t=>{if(t instanceof DOMException&&"NotSupportedError"===t.name)throw new TypeError;throw t}).then(n=>(e(l,()=>l(n))||h(n),t.add(n),n))}return new Promise((e,n)=>{const i=()=>{try{(t=>{const{port1:e}=new MessageChannel;e.postMessage(t,[t])})(y)}catch{}},a=t=>{n(t),i()};try{v.decodeAudioData(y,n=>{"function"!=typeof n.copyFromChannel&&(p(n),Object(r.a)(n)),t.add(n),i(),e(n)},t=>{a(null===t?o():t)})}catch(t){a(t)}})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(77);const o=(t,e,n)=>function o(i,a){const s=Object(r.a)(a)?a:n(t,a);if((t=>"delayTime"in t)(s))return[];if(i[0]===s)return[i];if(i.includes(s))return[];const{outputs:u}=e(s);return Array.from(u).map(t=>o([...i,s],t[0])).reduce((t,e)=>t.concat(e),[])}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(100);const o={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers"},i=(t,e,n,i,a)=>class extends t{constructor(t,s){const u=i(t),c=a(u),l={...o,...s},f=e(u,c?null:t.baseLatency,l);super(t,!1,f,c?n(l.feedback,l.feedforward):null),(t=>{var e;t.getFrequencyResponse=(e=t.getFrequencyResponse,(n,o,i)=>{if(n.length!==o.length||o.length!==i.length)throw Object(r.a)();return e.call(t,n,o,i)})})(f),this._nativeIIRFilterNode=f}getFrequencyResponse(t,e,n){return this._nativeIIRFilterNode.getFrequencyResponse(t,e,n)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n(98),o=n(127),i=n(99),a=n(19),s=n(2),u=n(13),c=n(22);var l=n(6);const f=async(t,e,n,l,f,p)=>{const h=null===e?128*Math.ceil(t.context.length/128):e.length,d=l.channelCount*l.numberOfInputs,y=l.outputChannelCount.reduce((t,e)=>t+e,0),v=0===y?null:n.createBuffer(y,h,n.sampleRate);if(void 0===f)throw new Error("Missing the processor constructor.");const m=Object(a.a)(t),g=await((t,e)=>{const n=Object(c.a)(s.k,t),r=Object(u.a)(e);return Object(c.a)(n,r)})(n,t),b=Object(i.a)(l.numberOfInputs,l.channelCount),_=Object(i.a)(l.numberOfOutputs,l.outputChannelCount),w=Array.from(t.parameters.keys()).reduce((t,e)=>({...t,[e]:new Float32Array(128)}),{});for(let i=0;i0&&null!==e)for(let t=0;t{Object(r.a)(e,w,t,d+n,i)});for(let t=0;t0===m.activeInputs[e].size?[]:t),e=p(i/n.sampleRate,n.sampleRate,()=>g.process(t,_,w));if(null!==v)for(let t=0,e=0;t(g,b,_)=>{const w=new WeakMap;let x=null;return{render(O,S,k){s(S,O);const T=w.get(S);return void 0!==T?Promise.resolve(T):(async(s,O,S)=>{let k=p(s),T=null;const C=Object(l.a)(k,O);if(null===h){const t=b.outputChannelCount.reduce((t,e)=>t+e,0),n=o(O,{channelCount:Math.max(1,t),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,t)}),i=[];for(let t=0;t{const u=new d(n,128*Math.ceil(s.context.length/128),O.sampleRate),c=[],l=[];for(let t=0;t{const e=i(u,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:t.value});return await y(u,t,e.offset,S),e})),p=r(u,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Math.max(1,t+e)});for(let t=0;tv(s,u,t,S))),m(u)};x=f(s,0===n?null:await u(),O,b,_,c)}const t=await x,e=n(O),[u,l,p]=T;null!==t&&(e.buffer=t,e.start(0)),e.connect(u);for(let t=0,e=0;t(a,s,u,c,l,f)=>{if(null!==u)try{const n=e(a,t=>new u(t,c,f)),o=new Map;let s=null;if(Object.defineProperties(n,{channelCount:{get:()=>f.channelCount,set:()=>{throw t()}},channelCountMode:{get:()=>"explicit",set:()=>{throw t()}},onprocessorerror:{get:()=>s,set:t=>{"function"==typeof s&&n.removeEventListener("processorerror",s),s="function"==typeof t?t:null,"function"==typeof s&&n.addEventListener("processorerror",s)}}}),n.addEventListener=(h=n.addEventListener,(...t)=>{if("processorerror"===t[0]){const e="function"==typeof t[1]?t[1]:"object"==typeof t[1]&&null!==t[1]&&"function"==typeof t[1].handleEvent?t[1].handleEvent:null;if(null!==e){const n=o.get(t[1]);void 0!==n?t[1]=n:(t[1]=n=>{e(new ErrorEvent(t[0],{...n,error:new Error}))},o.set(e,t[1]))}}return h.call(n,t[0],t[1],t[2])}),n.removeEventListener=(p=n.removeEventListener,(...t)=>{if("processorerror"===t[0]){const e=o.get(t[1]);void 0!==e&&(o.delete(t[1]),t[1]=e)}return p.call(n,t[0],t[1],t[2])}),0!==f.numberOfOutputs){const t=r(a,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});return n.connect(t).connect(t.context.destination),i(n,()=>t.disconnect(),()=>t.connect(t.context.destination))}return n}catch(t){if(11===t.code)throw o();throw t}var p,h;if(void 0===l)throw o();return(t=>{const{port1:e}=new MessageChannel;try{e.postMessage(t)}finally{e.close()}})(f),n(a,s,l,f)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(4),o=n(14);const i=t=>(e,n)=>{const i=t(e,t=>t.createChannelSplitter(n.numberOfOutputs));return Object(r.a)(i,n),(t=>{const e=t.numberOfOutputs;Object.defineProperty(t,"channelCount",{get:()=>e,set:t=>{if(t!==e)throw Object(o.a)()}}),Object.defineProperty(t,"channelCountMode",{get:()=>"explicit",set:t=>{if("explicit"!==t)throw Object(o.a)()}}),Object.defineProperty(t,"channelInterpretation",{get:()=>"discrete",set:t=>{if("discrete"!==t)throw Object(o.a)()}})})(i),i}},function(t,e){t.exports=function(t,e){throw new Error("Decorating class property failed. Please ensure that proposal-class-properties is enabled and runs after the decorators transform.")}},function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},function(t,e,n){var r=n(1057),o=n(1058),i=n(1059),a=n(1061);t.exports=function(t,e){return r(t)||o(t,e)||i(t,e)||a()}},,function(t,e,n){"use strict";n(847);var r,o=(r=n(1018))&&r.__esModule?r:{default:r};o.default._babelPolyfill&&"undefined"!=typeof console&&console.warn&&console.warn("@babel/polyfill is loaded more than once on this page. This is probably not desirable/intended and may have consequences if different versions of the polyfills are applied sequentially. If you do need to load the polyfill more than once, use @babel/polyfill/noConflict instead to bypass the warning."),o.default._babelPolyfill=!0},function(t,e,n){"use strict";n(848),n(991),n(993),n(996),n(998),n(1e3),n(1002),n(1004),n(1006),n(1008),n(1010),n(1012),n(1014),n(203)},function(t,e,n){n(849),n(852),n(853),n(854),n(855),n(856),n(857),n(858),n(859),n(860),n(861),n(862),n(863),n(864),n(865),n(866),n(867),n(868),n(869),n(870),n(871),n(872),n(873),n(874),n(875),n(876),n(877),n(878),n(879),n(880),n(881),n(882),n(883),n(884),n(885),n(886),n(887),n(888),n(889),n(890),n(891),n(892),n(893),n(895),n(896),n(897),n(898),n(899),n(900),n(901),n(902),n(903),n(904),n(905),n(906),n(907),n(908),n(909),n(910),n(911),n(912),n(913),n(914),n(915),n(916),n(917),n(918),n(919),n(920),n(921),n(922),n(923),n(924),n(925),n(926),n(927),n(928),n(930),n(931),n(933),n(934),n(935),n(936),n(937),n(938),n(939),n(941),n(942),n(943),n(944),n(945),n(946),n(947),n(948),n(949),n(950),n(951),n(952),n(953),n(153),n(954),n(192),n(955),n(193),n(956),n(957),n(958),n(959),n(194),n(962),n(963),n(964),n(965),n(966),n(967),n(968),n(969),n(970),n(971),n(972),n(973),n(974),n(975),n(976),n(977),n(978),n(979),n(980),n(981),n(982),n(983),n(984),n(985),n(986),n(987),n(988),n(989),n(990),t.exports=n(18)},function(t,e,n){"use strict";var r=n(9),o=n(30),i=n(20),a=n(1),s=n(27),u=n(58).KEY,c=n(10),l=n(111),f=n(84),p=n(66),h=n(15),d=n(134),y=n(173),v=n(851),m=n(114),g=n(11),b=n(12),_=n(25),w=n(32),x=n(57),O=n(65),S=n(70),k=n(176),T=n(45),C=n(113),E=n(21),A=n(68),j=T.f,P=E.f,D=k.f,M=r.Symbol,I=r.JSON,R=I&&I.stringify,N=h("_hidden"),F=h("toPrimitive"),q={}.propertyIsEnumerable,V=l("symbol-registry"),L=l("symbols"),z=l("op-symbols"),B=Object.prototype,U="function"==typeof M&&!!C.f,W=r.QObject,$=!W||!W.prototype||!W.prototype.findChild,H=i&&c((function(){return 7!=S(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=j(B,e);r&&delete B[e],P(t,e,n),r&&t!==B&&P(B,e,r)}:P,G=function(t){var e=L[t]=S(M.prototype);return e._k=t,e},K=U&&"symbol"==typeof M.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof M},Q=function(t,e,n){return t===B&&Q(z,e,n),g(t),e=x(e,!0),g(n),o(L,e)?(n.enumerable?(o(t,N)&&t[N][e]&&(t[N][e]=!1),n=S(n,{enumerable:O(0,!1)})):(o(t,N)||P(t,N,O(1,{})),t[N][e]=!0),H(t,e,n)):P(t,e,n)},Y=function(t,e){g(t);for(var n,r=v(e=w(e)),o=0,i=r.length;i>o;)Q(t,n=r[o++],e[n]);return t},X=function(t){var e=q.call(this,t=x(t,!0));return!(this===B&&o(L,t)&&!o(z,t))&&(!(e||!o(this,t)||!o(L,t)||o(this,N)&&this[N][t])||e)},J=function(t,e){if(t=w(t),e=x(e,!0),t!==B||!o(L,e)||o(z,e)){var n=j(t,e);return!n||!o(L,e)||o(t,N)&&t[N][e]||(n.enumerable=!0),n}},Z=function(t){for(var e,n=D(w(t)),r=[],i=0;n.length>i;)o(L,e=n[i++])||e==N||e==u||r.push(e);return r},tt=function(t){for(var e,n=t===B,r=D(n?z:w(t)),i=[],a=0;r.length>a;)!o(L,e=r[a++])||n&&!o(B,e)||i.push(L[e]);return i};U||(s((M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===B&&e.call(z,n),o(this,N)&&o(this[N],t)&&(this[N][t]=!1),H(this,t,O(1,n))};return i&&$&&H(B,t,{configurable:!0,set:e}),G(t)}).prototype,"toString",(function(){return this._k})),T.f=J,E.f=Q,n(71).f=k.f=Z,n(104).f=X,C.f=tt,i&&!n(67)&&s(B,"propertyIsEnumerable",X,!0),d.f=function(t){return G(h(t))}),a(a.G+a.W+a.F*!U,{Symbol:M});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)h(et[nt++]);for(var rt=A(h.store),ot=0;rt.length>ot;)y(rt[ot++]);a(a.S+a.F*!U,"Symbol",{for:function(t){return o(V,t+="")?V[t]:V[t]=M(t)},keyFor:function(t){if(!K(t))throw TypeError(t+" is not a symbol!");for(var e in V)if(V[e]===t)return e},useSetter:function(){$=!0},useSimple:function(){$=!1}}),a(a.S+a.F*!U,"Object",{create:function(t,e){return void 0===e?S(t):Y(S(t),e)},defineProperty:Q,defineProperties:Y,getOwnPropertyDescriptor:J,getOwnPropertyNames:Z,getOwnPropertySymbols:tt});var it=c((function(){C.f(1)}));a(a.S+a.F*it,"Object",{getOwnPropertySymbols:function(t){return C.f(_(t))}}),I&&a(a.S+a.F*(!U||c((function(){var t=M();return"[null]"!=R([t])||"{}"!=R({a:t})||"{}"!=R(Object(t))}))),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(b(e)||void 0!==t)&&!K(t))return m(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!K(e))return e}),r[1]=e,R.apply(I,r)}}),M.prototype[F]||n(31)(M.prototype,F,M.prototype.valueOf),f(M,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(t,e,n){t.exports=n(111)("native-function-to-string",Function.toString)},function(t,e,n){var r=n(68),o=n(113),i=n(104);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var a,s=n(t),u=i.f,c=0;s.length>c;)u.call(t,a=s[c++])&&e.push(a);return e}},function(t,e,n){var r=n(1);r(r.S,"Object",{create:n(70)})},function(t,e,n){var r=n(1);r(r.S+r.F*!n(20),"Object",{defineProperty:n(21).f})},function(t,e,n){var r=n(1);r(r.S+r.F*!n(20),"Object",{defineProperties:n(175)})},function(t,e,n){var r=n(32),o=n(45).f;n(46)("getOwnPropertyDescriptor",(function(){return function(t,e){return o(r(t),e)}}))},function(t,e,n){var r=n(25),o=n(72);n(46)("getPrototypeOf",(function(){return function(t){return o(r(t))}}))},function(t,e,n){var r=n(25),o=n(68);n(46)("keys",(function(){return function(t){return o(r(t))}}))},function(t,e,n){n(46)("getOwnPropertyNames",(function(){return n(176).f}))},function(t,e,n){var r=n(12),o=n(58).onFreeze;n(46)("freeze",(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},function(t,e,n){var r=n(12),o=n(58).onFreeze;n(46)("seal",(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},function(t,e,n){var r=n(12),o=n(58).onFreeze;n(46)("preventExtensions",(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},function(t,e,n){var r=n(12);n(46)("isFrozen",(function(t){return function(e){return!r(e)||!!t&&t(e)}}))},function(t,e,n){var r=n(12);n(46)("isSealed",(function(t){return function(e){return!r(e)||!!t&&t(e)}}))},function(t,e,n){var r=n(12);n(46)("isExtensible",(function(t){return function(e){return!!r(e)&&(!t||t(e))}}))},function(t,e,n){var r=n(1);r(r.S+r.F,"Object",{assign:n(177)})},function(t,e,n){var r=n(1);r(r.S,"Object",{is:n(178)})},function(t,e,n){var r=n(1);r(r.S,"Object",{setPrototypeOf:n(138).set})},function(t,e,n){"use strict";var r=n(105),o={};o[n(15)("toStringTag")]="z",o+""!="[object z]"&&n(27)(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},function(t,e,n){var r=n(1);r(r.P,"Function",{bind:n(179)})},function(t,e,n){var r=n(21).f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||n(20)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(t){return""}}})},function(t,e,n){"use strict";var r=n(12),o=n(72),i=n(15)("hasInstance"),a=Function.prototype;i in a||n(21).f(a,i,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=o(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,n){var r=n(1),o=n(181);r(r.G+r.F*(parseInt!=o),{parseInt:o})},function(t,e,n){var r=n(1),o=n(182);r(r.G+r.F*(parseFloat!=o),{parseFloat:o})},function(t,e,n){"use strict";var r=n(9),o=n(30),i=n(52),a=n(140),s=n(57),u=n(10),c=n(71).f,l=n(45).f,f=n(21).f,p=n(85).trim,h=r.Number,d=h,y=h.prototype,v="Number"==i(n(70)(y)),m="trim"in String.prototype,g=function(t){var e=s(t,!1);if("string"==typeof e&&e.length>2){var n,r,o,i=(e=m?e.trim():p(e,3)).charCodeAt(0);if(43===i||45===i){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===i){switch(e.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+e}for(var a,u=e.slice(2),c=0,l=u.length;co)return NaN;return parseInt(u,r)}}return+e};if(!h(" 0o1")||!h("0b1")||h("+0x1")){h=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof h&&(v?u((function(){y.valueOf.call(n)})):"Number"!=i(n))?a(new d(g(e)),n,h):g(e)};for(var b,_=n(20)?c(d):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;_.length>w;w++)o(d,b=_[w])&&!o(h,b)&&f(h,b,l(d,b));h.prototype=y,y.constructor=h,n(27)(r,"Number",h)}},function(t,e,n){"use strict";var r=n(1),o=n(44),i=n(183),a=n(141),s=1..toFixed,u=Math.floor,c=[0,0,0,0,0,0],l="Number.toFixed: incorrect invocation!",f=function(t,e){for(var n=-1,r=e;++n<6;)r+=t*c[n],c[n]=r%1e7,r=u(r/1e7)},p=function(t){for(var e=6,n=0;--e>=0;)n+=c[e],c[e]=u(n/t),n=n%t*1e7},h=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==c[t]){var n=String(c[t]);e=""===e?n:e+a.call("0",7-n.length)+n}return e},d=function(t,e,n){return 0===e?n:e%2==1?d(t,e-1,n*t):d(t*t,e/2,n)};r(r.P+r.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(10)((function(){s.call({})}))),"Number",{toFixed:function(t){var e,n,r,s,u=i(this,l),c=o(t),y="",v="0";if(c<0||c>20)throw RangeError(l);if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(y="-",u=-u),u>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(u*d(2,69,1))-69)<0?u*d(2,-e,1):u/d(2,e,1),n*=4503599627370496,(e=52-e)>0){for(f(0,n),r=c;r>=7;)f(1e7,0),r-=7;for(f(d(10,r,1),0),r=e-1;r>=23;)p(1<<23),r-=23;p(1<0?y+((s=v.length)<=c?"0."+a.call("0",c-s)+v:v.slice(0,s-c)+"."+v.slice(s-c)):y+v}})},function(t,e,n){"use strict";var r=n(1),o=n(10),i=n(183),a=1..toPrecision;r(r.P+r.F*(o((function(){return"1"!==a.call(1,void 0)}))||!o((function(){a.call({})}))),"Number",{toPrecision:function(t){var e=i(this,"Number#toPrecision: incorrect invocation!");return void 0===t?a.call(e):a.call(e,t)}})},function(t,e,n){var r=n(1);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,n){var r=n(1),o=n(9).isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&o(t)}})},function(t,e,n){var r=n(1);r(r.S,"Number",{isInteger:n(184)})},function(t,e,n){var r=n(1);r(r.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,n){var r=n(1),o=n(184),i=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){return o(t)&&i(t)<=9007199254740991}})},function(t,e,n){var r=n(1);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){var r=n(1);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var r=n(1),o=n(182);r(r.S+r.F*(Number.parseFloat!=o),"Number",{parseFloat:o})},function(t,e,n){var r=n(1),o=n(181);r(r.S+r.F*(Number.parseInt!=o),"Number",{parseInt:o})},function(t,e,n){var r=n(1),o=n(185),i=Math.sqrt,a=Math.acosh;r(r.S+r.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:o(t-1+i(t-1)*i(t+1))}})},function(t,e,n){var r=n(1),o=Math.asinh;r(r.S+r.F*!(o&&1/o(0)>0),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}})},function(t,e,n){var r=n(1),o=Math.atanh;r(r.S+r.F*!(o&&1/o(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,n){var r=n(1),o=n(142);r(r.S,"Math",{cbrt:function(t){return o(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e,n){var r=n(1);r(r.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,n){var r=n(1),o=Math.exp;r(r.S,"Math",{cosh:function(t){return(o(t=+t)+o(-t))/2}})},function(t,e,n){var r=n(1),o=n(143);r(r.S+r.F*(o!=Math.expm1),"Math",{expm1:o})},function(t,e,n){var r=n(1);r(r.S,"Math",{fround:n(894)})},function(t,e,n){var r=n(142),o=Math.pow,i=o(2,-52),a=o(2,-23),s=o(2,127)*(2-a),u=o(2,-126);t.exports=Math.fround||function(t){var e,n,o=Math.abs(t),c=r(t);return os||n!=n?c*(1/0):c*n}},function(t,e,n){var r=n(1),o=Math.abs;r(r.S,"Math",{hypot:function(t,e){for(var n,r,i=0,a=0,s=arguments.length,u=0;a0?(r=n/u)*r:n;return u===1/0?1/0:u*Math.sqrt(i)}})},function(t,e,n){var r=n(1),o=Math.imul;r(r.S+r.F*n(10)((function(){return-5!=o(4294967295,5)||2!=o.length})),"Math",{imul:function(t,e){var n=+t,r=+e,o=65535&n,i=65535&r;return 0|o*i+((65535&n>>>16)*i+o*(65535&r>>>16)<<16>>>0)}})},function(t,e,n){var r=n(1);r(r.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,e,n){var r=n(1);r(r.S,"Math",{log1p:n(185)})},function(t,e,n){var r=n(1);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,n){var r=n(1);r(r.S,"Math",{sign:n(142)})},function(t,e,n){var r=n(1),o=n(143),i=Math.exp;r(r.S+r.F*n(10)((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(o(t)-o(-t))/2:(i(t-1)-i(-t-1))*(Math.E/2)}})},function(t,e,n){var r=n(1),o=n(143),i=Math.exp;r(r.S,"Math",{tanh:function(t){var e=o(t=+t),n=o(-t);return e==1/0?1:n==1/0?-1:(e-n)/(i(t)+i(-t))}})},function(t,e,n){var r=n(1);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,n){var r=n(1),o=n(69),i=String.fromCharCode,a=String.fromCodePoint;r(r.S+r.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,a=0;r>a;){if(e=+arguments[a++],o(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?i(e):i(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},function(t,e,n){var r=n(1),o=n(32),i=n(17);r(r.S,"String",{raw:function(t){for(var e=o(t.raw),n=i(e.length),r=arguments.length,a=[],s=0;n>s;)a.push(String(e[s++])),s=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})}))},function(t,e,n){"use strict";var r=n(1),o=n(144)(!1);r(r.P,"String",{codePointAt:function(t){return o(this,t)}})},function(t,e,n){"use strict";var r=n(1),o=n(17),i=n(146),a="".endsWith;r(r.P+r.F*n(148)("endsWith"),"String",{endsWith:function(t){var e=i(this,t,"endsWith"),n=arguments.length>1?arguments[1]:void 0,r=o(e.length),s=void 0===n?r:Math.min(o(n),r),u=String(t);return a?a.call(e,u,s):e.slice(s-u.length,s)===u}})},function(t,e,n){"use strict";var r=n(1),o=n(146);r(r.P+r.F*n(148)("includes"),"String",{includes:function(t){return!!~o(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(1);r(r.P,"String",{repeat:n(141)})},function(t,e,n){"use strict";var r=n(1),o=n(17),i=n(146),a="".startsWith;r(r.P+r.F*n(148)("startsWith"),"String",{startsWith:function(t){var e=i(this,t,"startsWith"),n=o(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return a?a.call(e,r,n):e.slice(n,n+r.length)===r}})},function(t,e,n){"use strict";n(28)("anchor",(function(t){return function(e){return t(this,"a","name",e)}}))},function(t,e,n){"use strict";n(28)("big",(function(t){return function(){return t(this,"big","","")}}))},function(t,e,n){"use strict";n(28)("blink",(function(t){return function(){return t(this,"blink","","")}}))},function(t,e,n){"use strict";n(28)("bold",(function(t){return function(){return t(this,"b","","")}}))},function(t,e,n){"use strict";n(28)("fixed",(function(t){return function(){return t(this,"tt","","")}}))},function(t,e,n){"use strict";n(28)("fontcolor",(function(t){return function(e){return t(this,"font","color",e)}}))},function(t,e,n){"use strict";n(28)("fontsize",(function(t){return function(e){return t(this,"font","size",e)}}))},function(t,e,n){"use strict";n(28)("italics",(function(t){return function(){return t(this,"i","","")}}))},function(t,e,n){"use strict";n(28)("link",(function(t){return function(e){return t(this,"a","href",e)}}))},function(t,e,n){"use strict";n(28)("small",(function(t){return function(){return t(this,"small","","")}}))},function(t,e,n){"use strict";n(28)("strike",(function(t){return function(){return t(this,"strike","","")}}))},function(t,e,n){"use strict";n(28)("sub",(function(t){return function(){return t(this,"sub","","")}}))},function(t,e,n){"use strict";n(28)("sup",(function(t){return function(){return t(this,"sup","","")}}))},function(t,e,n){var r=n(1);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,e,n){"use strict";var r=n(1),o=n(25),i=n(57);r(r.P+r.F*n(10)((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(t){var e=o(this),n=i(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},function(t,e,n){var r=n(1),o=n(929);r(r.P+r.F*(Date.prototype.toISOString!==o),"Date",{toISOString:o})},function(t,e,n){"use strict";var r=n(10),o=Date.prototype.getTime,i=Date.prototype.toISOString,a=function(t){return t>9?t:"0"+t};t.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=i.call(new Date(-50000000000001))}))||!r((function(){i.call(new Date(NaN))}))?function(){if(!isFinite(o.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),r=e<0?"-":e>9999?"+":"";return r+("00000"+Math.abs(e)).slice(r?-6:-4)+"-"+a(t.getUTCMonth()+1)+"-"+a(t.getUTCDate())+"T"+a(t.getUTCHours())+":"+a(t.getUTCMinutes())+":"+a(t.getUTCSeconds())+"."+(n>99?n:"0"+a(n))+"Z"}:i},function(t,e,n){var r=Date.prototype,o=r.toString,i=r.getTime;new Date(NaN)+""!="Invalid Date"&&n(27)(r,"toString",(function(){var t=i.call(this);return t==t?o.call(this):"Invalid Date"}))},function(t,e,n){var r=n(15)("toPrimitive"),o=Date.prototype;r in o||n(31)(o,r,n(932))},function(t,e,n){"use strict";var r=n(11),o=n(57);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return o(r(this),"number"!=t)}},function(t,e,n){var r=n(1);r(r.S,"Array",{isArray:n(114)})},function(t,e,n){"use strict";var r=n(42),o=n(1),i=n(25),a=n(187),s=n(149),u=n(17),c=n(150),l=n(151);o(o.S+o.F*!n(115)((function(t){Array.from(t)})),"Array",{from:function(t){var e,n,o,f,p=i(t),h="function"==typeof this?this:Array,d=arguments.length,y=d>1?arguments[1]:void 0,v=void 0!==y,m=0,g=l(p);if(v&&(y=r(y,d>2?arguments[2]:void 0,2)),null==g||h==Array&&s(g))for(n=new h(e=u(p.length));e>m;m++)c(n,m,v?y(p[m],m):p[m]);else for(f=g.call(p),n=new h;!(o=f.next()).done;m++)c(n,m,v?a(f,y,[o.value,m],!0):o.value);return n.length=m,n}})},function(t,e,n){"use strict";var r=n(1),o=n(150);r(r.S+r.F*n(10)((function(){function t(){}return!(Array.of.call(t)instanceof t)})),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)o(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){"use strict";var r=n(1),o=n(32),i=[].join;r(r.P+r.F*(n(103)!=Object||!n(37)(i)),"Array",{join:function(t){return i.call(o(this),void 0===t?",":t)}})},function(t,e,n){"use strict";var r=n(1),o=n(137),i=n(52),a=n(69),s=n(17),u=[].slice;r(r.P+r.F*n(10)((function(){o&&u.call(o)})),"Array",{slice:function(t,e){var n=s(this.length),r=i(this);if(e=void 0===e?n:e,"Array"==r)return u.call(this,t,e);for(var o=a(t,n),c=a(e,n),l=s(c-o),f=new Array(l),p=0;p1&&(r=Math.min(r,i(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in e&&e[r]===t)return r||0;return-1}})},function(t,e,n){var r=n(1);r(r.P,"Array",{copyWithin:n(190)}),n(73)("copyWithin")},function(t,e,n){var r=n(1);r(r.P,"Array",{fill:n(152)}),n(73)("fill")},function(t,e,n){"use strict";var r=n(1),o=n(47)(5),i=!0;"find"in[]&&Array(1).find((function(){i=!1})),r(r.P+r.F*i,"Array",{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(73)("find")},function(t,e,n){"use strict";var r=n(1),o=n(47)(6),i="findIndex",a=!0;i in[]&&Array(1)[i]((function(){a=!1})),r(r.P+r.F*a,"Array",{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(73)(i)},function(t,e,n){n(87)("Array")},function(t,e,n){var r=n(9),o=n(140),i=n(21).f,a=n(71).f,s=n(147),u=n(116),c=r.RegExp,l=c,f=c.prototype,p=/a/g,h=/a/g,d=new c(p)!==p;if(n(20)&&(!d||n(10)((function(){return h[n(15)("match")]=!1,c(p)!=p||c(h)==h||"/a/i"!=c(p,"i")})))){c=function(t,e){var n=this instanceof c,r=s(t),i=void 0===e;return!n&&r&&t.constructor===c&&i?t:o(d?new l(r&&!i?t.source:t,e):l((r=t instanceof c)?t.source:t,r&&i?u.call(t):e),n?this:f,c)};for(var y=function(t){t in c||i(c,t,{configurable:!0,get:function(){return l[t]},set:function(e){l[t]=e}})},v=a(l),m=0;v.length>m;)y(v[m++]);f.constructor=c,c.prototype=f,n(27)(r,"RegExp",c)}n(87)("RegExp")},function(t,e,n){"use strict";n(193);var r=n(11),o=n(116),i=n(20),a=/./.toString,s=function(t){n(27)(RegExp.prototype,"toString",t,!0)};n(10)((function(){return"/a/b"!=a.call({source:"a",flags:"b"})}))?s((function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!i&&t instanceof RegExp?o.call(t):void 0)})):"toString"!=a.name&&s((function(){return a.call(this)}))},function(t,e,n){"use strict";var r=n(11),o=n(17),i=n(155),a=n(117);n(118)("match",1,(function(t,e,n,s){return[function(n){var r=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=s(n,t,this);if(e.done)return e.value;var u=r(t),c=String(this);if(!u.global)return a(u,c);var l=u.unicode;u.lastIndex=0;for(var f,p=[],h=0;null!==(f=a(u,c));){var d=String(f[0]);p[h]=d,""===d&&(u.lastIndex=i(c,o(u.lastIndex),l)),h++}return 0===h?null:p}]}))},function(t,e,n){"use strict";var r=n(11),o=n(25),i=n(17),a=n(44),s=n(155),u=n(117),c=Math.max,l=Math.min,f=Math.floor,p=/\$([$&`']|\d\d?|<[^>]*>)/g,h=/\$([$&`']|\d\d?)/g;n(118)("replace",2,(function(t,e,n,d){return[function(r,o){var i=t(this),a=null==r?void 0:r[e];return void 0!==a?a.call(r,i,o):n.call(String(i),r,o)},function(t,e){var o=d(n,t,this,e);if(o.done)return o.value;var f=r(t),p=String(this),h="function"==typeof e;h||(e=String(e));var v=f.global;if(v){var m=f.unicode;f.lastIndex=0}for(var g=[];;){var b=u(f,p);if(null===b)break;if(g.push(b),!v)break;""===String(b[0])&&(f.lastIndex=s(p,i(f.lastIndex),m))}for(var _,w="",x=0,O=0;O=x&&(w+=p.slice(x,k)+j,x=k+S.length)}return w+p.slice(x)}];function y(t,e,r,i,a,s){var u=r+t.length,c=i.length,l=h;return void 0!==a&&(a=o(a),l=p),n.call(s,l,(function(n,o){var s;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(u);case"<":s=a[o.slice(1,-1)];break;default:var l=+o;if(0===l)return n;if(l>c){var p=f(l/10);return 0===p?n:p<=c?void 0===i[p-1]?o.charAt(1):i[p-1]+o.charAt(1):n}s=i[l-1]}return void 0===s?"":s}))}}))},function(t,e,n){"use strict";var r=n(11),o=n(178),i=n(117);n(118)("search",1,(function(t,e,n,a){return[function(n){var r=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=a(n,t,this);if(e.done)return e.value;var s=r(t),u=String(this),c=s.lastIndex;o(c,0)||(s.lastIndex=0);var l=i(s,u);return o(s.lastIndex,c)||(s.lastIndex=c),null===l?-1:l.index}]}))},function(t,e,n){"use strict";var r=n(147),o=n(11),i=n(106),a=n(155),s=n(17),u=n(117),c=n(154),l=n(10),f=Math.min,p=[].push,h="length",d=!l((function(){RegExp(4294967295,"y")}));n(118)("split",2,(function(t,e,n,l){var y;return y="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[h]||2!="ab".split(/(?:ab)*/)[h]||4!=".".split(/(.?)(.?)/)[h]||".".split(/()()/)[h]>1||"".split(/.?/)[h]?function(t,e){var o=String(this);if(void 0===t&&0===e)return[];if(!r(t))return n.call(o,t,e);for(var i,a,s,u=[],l=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,d=void 0===e?4294967295:e>>>0,y=new RegExp(t.source,l+"g");(i=c.call(y,o))&&!((a=y.lastIndex)>f&&(u.push(o.slice(f,i.index)),i[h]>1&&i.index=d));)y.lastIndex===i.index&&y.lastIndex++;return f===o[h]?!s&&y.test("")||u.push(""):u.push(o.slice(f)),u[h]>d?u.slice(0,d):u}:"0".split(void 0,0)[h]?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,r){var o=t(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,o,r):y.call(String(o),n,r)},function(t,e){var r=l(y,t,this,e,y!==n);if(r.done)return r.value;var c=o(t),p=String(this),h=i(c,RegExp),v=c.unicode,m=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(d?"y":"g"),g=new h(d?c:"^(?:"+c.source+")",m),b=void 0===e?4294967295:e>>>0;if(0===b)return[];if(0===p.length)return null===u(g,p)?[p]:[];for(var _=0,w=0,x=[];w0?arguments[0]:void 0)}}),{get:function(t){var e=r.getEntry(o(this,"Map"),t);return e&&e.v},set:function(t,e){return r.def(o(this,"Map"),0===t?0:t,e)}},r,!0)},function(t,e,n){"use strict";var r=n(197),o=n(74);t.exports=n(121)("Set",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return r.def(o(this,"Set"),t=0===t?0:t,t)}},r)},function(t,e,n){"use strict";var r,o=n(9),i=n(47)(0),a=n(27),s=n(58),u=n(177),c=n(198),l=n(12),f=n(74),p=n(74),h=!o.ActiveXObject&&"ActiveXObject"in o,d=s.getWeak,y=Object.isExtensible,v=c.ufstore,m=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},g={get:function(t){if(l(t)){var e=d(t);return!0===e?v(f(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return c.def(f(this,"WeakMap"),t,e)}},b=t.exports=n(121)("WeakMap",m,g,c,!0,!0);p&&h&&(u((r=c.getConstructor(m,"WeakMap")).prototype,g),s.NEED=!0,i(["delete","has","get","set"],(function(t){var e=b.prototype,n=e[t];a(e,t,(function(e,o){if(l(e)&&!y(e)){this._f||(this._f=new r);var i=this._f[t](e,o);return"set"==t?this:i}return n.call(this,e,o)}))})))},function(t,e,n){"use strict";var r=n(198),o=n(74);n(121)("WeakSet",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return r.def(o(this,"WeakSet"),t,!0)}},r,!1,!0)},function(t,e,n){"use strict";var r=n(1),o=n(122),i=n(157),a=n(11),s=n(69),u=n(17),c=n(12),l=n(9).ArrayBuffer,f=n(106),p=i.ArrayBuffer,h=i.DataView,d=o.ABV&&l.isView,y=p.prototype.slice,v=o.VIEW;r(r.G+r.W+r.F*(l!==p),{ArrayBuffer:p}),r(r.S+r.F*!o.CONSTR,"ArrayBuffer",{isView:function(t){return d&&d(t)||c(t)&&v in t}}),r(r.P+r.U+r.F*n(10)((function(){return!new p(2).slice(1,void 0).byteLength})),"ArrayBuffer",{slice:function(t,e){if(void 0!==y&&void 0===e)return y.call(a(this),t);for(var n=a(this).byteLength,r=s(t,n),o=s(void 0===e?n:e,n),i=new(f(this,p))(u(o-r)),c=new h(this),l=new h(i),d=0;r=e.length)return{value:void 0,done:!0}}while(!((t=e[this._i++])in this._t));return{value:t,done:!1}})),r(r.S,"Reflect",{enumerate:function(t){return new i(t)}})},function(t,e,n){var r=n(45),o=n(72),i=n(30),a=n(1),s=n(12),u=n(11);a(a.S,"Reflect",{get:function t(e,n){var a,c,l=arguments.length<3?e:arguments[2];return u(e)===l?e[n]:(a=r.f(e,n))?i(a,"value")?a.value:void 0!==a.get?a.get.call(l):void 0:s(c=o(e))?t(c,n,l):void 0}})},function(t,e,n){var r=n(45),o=n(1),i=n(11);o(o.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return r.f(i(t),e)}})},function(t,e,n){var r=n(1),o=n(72),i=n(11);r(r.S,"Reflect",{getPrototypeOf:function(t){return o(i(t))}})},function(t,e,n){var r=n(1);r(r.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,n){var r=n(1),o=n(11),i=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(t){return o(t),!i||i(t)}})},function(t,e,n){var r=n(1);r(r.S,"Reflect",{ownKeys:n(200)})},function(t,e,n){var r=n(1),o=n(11),i=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(t){o(t);try{return i&&i(t),!0}catch(t){return!1}}})},function(t,e,n){var r=n(21),o=n(45),i=n(72),a=n(30),s=n(1),u=n(65),c=n(11),l=n(12);s(s.S,"Reflect",{set:function t(e,n,s){var f,p,h=arguments.length<4?e:arguments[3],d=o.f(c(e),n);if(!d){if(l(p=i(e)))return t(p,n,s,h);d=u(0)}if(a(d,"value")){if(!1===d.writable||!l(h))return!1;if(f=o.f(h,n)){if(f.get||f.set||!1===f.writable)return!1;f.value=s,r.f(h,n,f)}else r.f(h,n,u(0,s));return!0}return void 0!==d.set&&(d.set.call(h,s),!0)}})},function(t,e,n){var r=n(1),o=n(138);o&&r(r.S,"Reflect",{setPrototypeOf:function(t,e){o.check(t,e);try{return o.set(t,e),!0}catch(t){return!1}}})},function(t,e,n){n(992),t.exports=n(18).Array.includes},function(t,e,n){"use strict";var r=n(1),o=n(112)(!0);r(r.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(73)("includes")},function(t,e,n){n(994),t.exports=n(18).Array.flatMap},function(t,e,n){"use strict";var r=n(1),o=n(995),i=n(25),a=n(17),s=n(43),u=n(188);r(r.P,"Array",{flatMap:function(t){var e,n,r=i(this);return s(t),e=a(r.length),n=u(r,0),o(n,r,r,e,0,1,t,arguments[1]),n}}),n(73)("flatMap")},function(t,e,n){"use strict";var r=n(114),o=n(12),i=n(17),a=n(42),s=n(15)("isConcatSpreadable");t.exports=function t(e,n,u,c,l,f,p,h){for(var d,y,v=l,m=0,g=!!p&&a(p,h,3);m0)v=t(e,n,d,i(d.length),v,f-1)-1;else{if(v>=9007199254740991)throw TypeError();e[v]=d}v++}m++}return v}},function(t,e,n){n(997),t.exports=n(18).String.padStart},function(t,e,n){"use strict";var r=n(1),o=n(201),i=n(120),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(i);r(r.P+r.F*a,"String",{padStart:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,e,n){n(999),t.exports=n(18).String.padEnd},function(t,e,n){"use strict";var r=n(1),o=n(201),i=n(120),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(i);r(r.P+r.F*a,"String",{padEnd:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,e,n){n(1001),t.exports=n(18).String.trimLeft},function(t,e,n){"use strict";n(85)("trimLeft",(function(t){return function(){return t(this,1)}}),"trimStart")},function(t,e,n){n(1003),t.exports=n(18).String.trimRight},function(t,e,n){"use strict";n(85)("trimRight",(function(t){return function(){return t(this,2)}}),"trimEnd")},function(t,e,n){n(1005),t.exports=n(134).f("asyncIterator")},function(t,e,n){n(173)("asyncIterator")},function(t,e,n){n(1007),t.exports=n(18).Object.getOwnPropertyDescriptors},function(t,e,n){var r=n(1),o=n(200),i=n(32),a=n(45),s=n(150);r(r.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n,r=i(t),u=a.f,c=o(r),l={},f=0;c.length>f;)void 0!==(n=u(r,e=c[f++]))&&s(l,e,n);return l}})},function(t,e,n){n(1009),t.exports=n(18).Object.values},function(t,e,n){var r=n(1),o=n(202)(!1);r(r.S,"Object",{values:function(t){return o(t)}})},function(t,e,n){n(1011),t.exports=n(18).Object.entries},function(t,e,n){var r=n(1),o=n(202)(!0);r(r.S,"Object",{entries:function(t){return o(t)}})},function(t,e,n){"use strict";n(194),n(1013),t.exports=n(18).Promise.finally},function(t,e,n){"use strict";var r=n(1),o=n(18),i=n(9),a=n(106),s=n(196);r(r.P+r.R,"Promise",{finally:function(t){var e=a(this,o.Promise||i.Promise),n="function"==typeof t;return this.then(n?function(n){return s(e,t()).then((function(){return n}))}:t,n?function(n){return s(e,t()).then((function(){throw n}))}:t)}})},function(t,e,n){n(1015),n(1016),n(1017),t.exports=n(18)},function(t,e,n){var r=n(9),o=n(1),i=n(120),a=[].slice,s=/MSIE .\./.test(i),u=function(t){return function(e,n){var r=arguments.length>2,o=!!r&&a.call(arguments,2);return t(r?function(){("function"==typeof e?e:Function(e)).apply(this,o)}:e,n)}};o(o.G+o.B+o.F*s,{setTimeout:u(r.setTimeout),setInterval:u(r.setInterval)})},function(t,e,n){var r=n(1),o=n(156);r(r.G+r.B,{setImmediate:o.set,clearImmediate:o.clear})},function(t,e,n){for(var r=n(153),o=n(68),i=n(27),a=n(9),s=n(31),u=n(86),c=n(15),l=c("iterator"),f=c("toStringTag"),p=u.Array,h={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},d=o(h),y=0;yj.length&&j.push(t)}function M(t,e,n){return null==t?0:function t(e,n,r,o){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var u=!1;if(null===e)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case i:case a:u=!0}}if(u)return r(o,e,""===n?"."+I(e,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(e))for(var c=0;c")})),f=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var p=s(t),h=!i((function(){var e={};return e[p]=function(){return 7},7!=""[t](e)})),d=h?!i((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[c]=function(){return n}),n[p](""),!e})):void 0;if(!h||!d||"replace"===t&&!l||"split"===t&&!f){var y=/./[p],v=n(a,p,""[t],(function(t,e,n,r,o){return e.exec===u?h&&!o?{done:!0,value:y.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}})),m=v[0],g=v[1];r(String.prototype,t,m),o(RegExp.prototype,p,2==e?function(t,e){return g.call(t,this,e)}:function(t){return g.call(t,this)})}}},function(t,e,n){var r=n(42),o=n(187),i=n(149),a=n(11),s=n(17),u=n(151),c={},l={};(e=t.exports=function(t,e,n,f,p){var h,d,y,v,m=p?function(){return t}:u(t),g=r(n,f,e?2:1),b=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(i(m)){for(h=s(t.length);h>b;b++)if((v=e?g(a(d=t[b])[0],d[1]):g(t[b]))===c||v===l)return v}else for(y=m.call(t);!(d=y.next()).done;)if((v=o(y,g,d.value,e))===c||v===l)return v}).BREAK=c,e.RETURN=l},function(t,e,n){var r=n(9).navigator;t.exports=r&&r.userAgent||""},function(t,e,n){"use strict";var r=n(9),o=n(1),i=n(27),a=n(89),s=n(58),u=n(119),c=n(88),l=n(12),f=n(10),p=n(115),h=n(84),d=n(140);t.exports=function(t,e,n,y,v,m){var g=r[t],b=g,_=v?"set":"add",w=b&&b.prototype,x={},O=function(t){var e=w[t];i(w,t,"delete"==t||"has"==t?function(t){return!(m&&!l(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return m&&!l(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof b&&(m||w.forEach&&!f((function(){(new b).entries().next()})))){var S=new b,k=S[_](m?{}:-0,1)!=S,T=f((function(){S.has(1)})),C=p((function(t){new b(t)})),E=!m&&f((function(){for(var t=new b,e=5;e--;)t[_](e,e);return!t.has(-0)}));C||((b=e((function(e,n){c(e,b,t);var r=d(new g,e,b);return null!=n&&u(n,v,r[_],r),r}))).prototype=w,w.constructor=b),(T||E)&&(O("delete"),O("has"),v&&O("get")),(E||k)&&O(_),m&&w.clear&&delete w.clear}else b=y.getConstructor(e,t,v,_),a(b.prototype,n),s.NEED=!0;return h(b,t),x[t]=b,o(o.G+o.W+o.F*(b!=g),x),m||y.setStrong(b,t,v),b}},function(t,e,n){for(var r,o=n(9),i=n(31),a=n(66),s=a("typed_array"),u=a("view"),c=!(!o.ArrayBuffer||!o.DataView),l=c,f=0,p="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");f<9;)(r=o[p[f++]])?(i(r.prototype,s,!0),i(r.prototype,u,!0)):l=!1;t.exports={ABV:c,CONSTR:l,TYPED:s,VIEW:u}},function(t,e,n){"use strict";var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,s,u=a(t),c=1;cvoid 0===t||"number"==typeof t||"string"==typeof t&&("balanced"===t||"interactive"===t||"playback"===t)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));class r{constructor(t){this._map=new Map(t)}get size(){return this._map.size}entries(){return this._map.entries()}forEach(t,e=null){return this._map.forEach((n,r)=>t.call(e,n,r,this))}get(t){return this._map.get(t)}has(t){return this._map.has(t)}keys(){return this._map.keys()}values(){return this._map.values()}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n,r,o)=>{"function"==typeof t.copyToChannel?0!==e[n].byteLength&&t.copyToChannel(e[n],r,o):0!==e[n].byteLength&&t.getChannelData(r).set(e[n],o)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n,r,o,i,a,s,u,c,l)=>{const f=c.length;let p=s;for(let s=0;snull===t?512:Math.max(512,Math.min(16384,Math.pow(2,Math.round(Math.log2(t*e)))))},function(t,e){function n(e){return t.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},n(e)}t.exports=n},function(t,e,n){"use strict";n.d(e,"a",(function(){return R})),n.d(e,"b",(function(){return j}));var r=n(3),o=n(0),i=n.n(o),a=n(24),s=0;var u={};function c(t){return u[t]||(u[t]=function(t){if("function"==typeof Symbol)return Symbol(t);var e="__$mobx-react "+t+" ("+s+")";return s++,e}(t)),u[t]}function l(t,e){if(f(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(var o=0;o2?r-2:0),i=2;i",s=t.bind(this),u=!1,c=new r.b(i+".render()",(function(){if(!u&&(u=!0,!0!==e[_])){var t=!0;try{h(e,x,!0),e[w]||o.Component.prototype.forceUpdate.call(e),t=!1}finally{h(e,x,!1),t&&c.dispose()}}}));function l(){u=!1;var t=void 0,e=void 0;if(c.track((function(){try{e=Object(r.c)(!1,s)}catch(e){t=e}})),t)throw t;return e}return c.reactComponent=this,l[b]=c,this.render=l,l.call(this)}function k(t,e){return Object(a.b)()&&console.warn("[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==e||!l(this.props,t)}function T(t,e){var n=c("reactProp_"+e+"_valueHolder"),o=c("reactProp_"+e+"_atomHolder");function i(){return this[o]||h(this,o,Object(r.h)("reactive "+e)),this[o]}Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){var t=!1;return r.e&&r.d&&(t=Object(r.e)(!0)),i.call(this).reportObserved(),r.e&&r.d&&Object(r.d)(t),this[n]},set:function(t){this[x]||l(this[n],t)?h(this,n,t):(h(this,n,t),h(this,w,!0),i.call(this).reportChanged(),h(this,w,!1))}})}var C="function"==typeof Symbol&&Symbol.for,E=C?Symbol.for("react.forward_ref"):"function"==typeof o.forwardRef&&Object(o.forwardRef)((function(t){return null})).$$typeof,A=C?Symbol.for("react.memo"):"function"==typeof o.memo&&Object(o.memo)((function(t){return null})).$$typeof;function j(t){if(!0===t.isMobxInjector&&console.warn("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),A&&t.$$typeof===A)throw new Error("Mobx observer: You are trying to use 'observer' on a function component wrapped in either another observer or 'React.memo'. The observer already applies 'React.memo' for you.");if(E&&t.$$typeof===E){var e=t.render;if("function"!=typeof e)throw new Error("render property of ForwardRef was not a function");return Object(o.forwardRef)((function(){var t=arguments;return Object(o.createElement)(a.a,null,(function(){return e.apply(void 0,t)}))}))}return"function"!=typeof t||t.prototype&&t.prototype.render||t.isReactClass||Object.prototype.isPrototypeOf.call(o.Component,t)?O(t):Object(a.c)(t)}function P(){return(P=Object.assign||function(t){for(var e=1;e0;(i>>>=1)&&(e+=e))1&i&&(n+=e);return n}},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e){var n=Math.expm1;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:n},function(t,e,n){var r=n(44),o=n(53);t.exports=function(t){return function(e,n){var i,a,s=String(o(e)),u=r(n),c=s.length;return u<0||u>=c?t?"":void 0:(i=s.charCodeAt(u))<55296||i>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):i:t?s.slice(u,u+2):a-56320+(i-55296<<10)+65536}}},function(t,e,n){"use strict";var r=n(67),o=n(1),i=n(27),a=n(31),s=n(86),u=n(186),c=n(84),l=n(72),f=n(15)("iterator"),p=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,e,n,d,y,v,m){u(n,e,d);var g,b,_,w=function(t){if(!p&&t in k)return k[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},x=e+" Iterator",O="values"==y,S=!1,k=t.prototype,T=k[f]||k["@@iterator"]||y&&k[y],C=T||w(y),E=y?O?w("entries"):C:void 0,A="Array"==e&&k.entries||T;if(A&&(_=l(A.call(new t)))!==Object.prototype&&_.next&&(c(_,x,!0),r||"function"==typeof _[f]||a(_,f,h)),O&&T&&"values"!==T.name&&(S=!0,C=function(){return T.call(this)}),r&&!m||!p&&!S&&k[f]||a(k,f,C),s[e]=C,s[x]=h,y)if(g={values:O?C:w("values"),keys:v?C:w("keys"),entries:E},m)for(b in g)b in k||i(k,b,g[b]);else o(o.P+o.F*(p||S),e,g);return g}},function(t,e,n){var r=n(147),o=n(53);t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(t))}},function(t,e,n){var r=n(12),o=n(52),i=n(15)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},function(t,e,n){var r=n(15)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(t){}}return!0}},function(t,e,n){var r=n(86),o=n(15)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,e,n){"use strict";var r=n(21),o=n(65);t.exports=function(t,e,n){e in t?r.f(t,e,o(0,n)):t[e]=n}},function(t,e,n){var r=n(105),o=n(15)("iterator"),i=n(86);t.exports=n(18).getIteratorMethod=function(t){if(null!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e,n){"use strict";var r=n(25),o=n(69),i=n(17);t.exports=function(t){for(var e=r(this),n=i(e.length),a=arguments.length,s=o(a>1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,c=void 0===u?n:o(u,n);c>s;)e[s++]=t;return e}},function(t,e,n){"use strict";var r=n(73),o=n(191),i=n(86),a=n(32);t.exports=n(145)(Array,"Array",(function(t,e){this._t=a(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e,n){"use strict";var r,o,i=n(116),a=RegExp.prototype.exec,s=String.prototype.replace,u=a,c=(r=/a/,o=/b*/g,a.call(r,"a"),a.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),l=void 0!==/()??/.exec("")[1];(c||l)&&(u=function(t){var e,n,r,o,u=this;return l&&(n=new RegExp("^"+u.source+"$(?!\\s)",i.call(u))),c&&(e=u.lastIndex),r=a.call(u,t),c&&r&&(u.lastIndex=u.global?r.index+r[0].length:e),l&&r&&r.length>1&&s.call(r[0],n,(function(){for(o=1;on;)e.push(arguments[n++]);return m[++v]=function(){s("function"==typeof t?t:Function(t),e)},r(v),v},h=function(t){delete m[t]},"process"==n(52)(f)?r=function(t){f.nextTick(a(g,t,1))}:y&&y.now?r=function(t){y.now(a(g,t,1))}:d?(i=(o=new d).port2,o.port1.onmessage=b,r=a(i.postMessage,i,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(t){l.postMessage(t+"","*")},l.addEventListener("message",b,!1)):r="onreadystatechange"in c("script")?function(t){u.appendChild(c("script")).onreadystatechange=function(){u.removeChild(this),g.call(t)}}:function(t){setTimeout(a(g,t,1),0)}),t.exports={set:p,clear:h}},function(t,e,n){"use strict";var r=n(9),o=n(20),i=n(67),a=n(122),s=n(31),u=n(89),c=n(10),l=n(88),f=n(44),p=n(17),h=n(199),d=n(71).f,y=n(21).f,v=n(152),m=n(84),g=r.ArrayBuffer,b=r.DataView,_=r.Math,w=r.RangeError,x=r.Infinity,O=g,S=_.abs,k=_.pow,T=_.floor,C=_.log,E=_.LN2,A=o?"_b":"buffer",j=o?"_l":"byteLength",P=o?"_o":"byteOffset";function D(t,e,n){var r,o,i,a=new Array(n),s=8*n-e-1,u=(1<>1,l=23===e?k(2,-24)-k(2,-77):0,f=0,p=t<0||0===t&&1/t<0?1:0;for((t=S(t))!=t||t===x?(o=t!=t?1:0,r=u):(r=T(C(t)/E),t*(i=k(2,-r))<1&&(r--,i*=2),(t+=r+c>=1?l/i:l*k(2,1-c))*i>=2&&(r++,i/=2),r+c>=u?(o=0,r=u):r+c>=1?(o=(t*i-1)*k(2,e),r+=c):(o=t*k(2,c-1)*k(2,e),r=0));e>=8;a[f++]=255&o,o/=256,e-=8);for(r=r<0;a[f++]=255&r,r/=256,s-=8);return a[--f]|=128*p,a}function M(t,e,n){var r,o=8*n-e-1,i=(1<>1,s=o-7,u=n-1,c=t[u--],l=127&c;for(c>>=7;s>0;l=256*l+t[u],u--,s-=8);for(r=l&(1<<-s)-1,l>>=-s,s+=e;s>0;r=256*r+t[u],u--,s-=8);if(0===l)l=1-a;else{if(l===i)return r?NaN:c?-x:x;r+=k(2,e),l-=a}return(c?-1:1)*r*k(2,l-e)}function I(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function R(t){return[255&t]}function N(t){return[255&t,t>>8&255]}function F(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function q(t){return D(t,52,8)}function V(t){return D(t,23,4)}function L(t,e,n){y(t.prototype,e,{get:function(){return this[n]}})}function z(t,e,n,r){var o=h(+n);if(o+e>t[j])throw w("Wrong index!");var i=t[A]._b,a=o+t[P],s=i.slice(a,a+e);return r?s:s.reverse()}function B(t,e,n,r,o,i){var a=h(+n);if(a+e>t[j])throw w("Wrong index!");for(var s=t[A]._b,u=a+t[P],c=r(+o),l=0;lH;)(U=$[H++])in g||s(g,U,O[U]);i||(W.constructor=g)}var G=new b(new g(2)),K=b.prototype.setInt8;G.setInt8(0,2147483648),G.setInt8(1,2147483649),!G.getInt8(0)&&G.getInt8(1)||u(b.prototype,{setInt8:function(t,e){K.call(this,t,e<<24>>24)},setUint8:function(t,e){K.call(this,t,e<<24>>24)}},!0)}else g=function(t){l(this,g,"ArrayBuffer");var e=h(t);this._b=v.call(new Array(e),0),this[j]=e},b=function(t,e,n){l(this,b,"DataView"),l(t,g,"DataView");var r=t[j],o=f(e);if(o<0||o>r)throw w("Wrong offset!");if(o+(n=void 0===n?r-o:p(n))>r)throw w("Wrong length!");this[A]=t,this[P]=o,this[j]=n},o&&(L(g,"byteLength","_l"),L(b,"buffer","_b"),L(b,"byteLength","_l"),L(b,"byteOffset","_o")),u(b.prototype,{getInt8:function(t){return z(this,1,t)[0]<<24>>24},getUint8:function(t){return z(this,1,t)[0]},getInt16:function(t){var e=z(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=z(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return I(z(this,4,t,arguments[1]))},getUint32:function(t){return I(z(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return M(z(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return M(z(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){B(this,1,t,R,e)},setUint8:function(t,e){B(this,1,t,R,e)},setInt16:function(t,e){B(this,2,t,N,e,arguments[2])},setUint16:function(t,e){B(this,2,t,N,e,arguments[2])},setInt32:function(t,e){B(this,4,t,F,e,arguments[2])},setUint32:function(t,e){B(this,4,t,F,e,arguments[2])},setFloat32:function(t,e){B(this,4,t,V,e,arguments[2])},setFloat64:function(t,e){B(this,8,t,q,e,arguments[2])}});m(g,"ArrayBuffer"),m(b,"DataView"),s(b.prototype,a.VIEW,!0),e.ArrayBuffer=g,e.DataView=b},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){t.exports=!n(205)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e,n){"use strict";t.exports=n(1035)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.notifyOfNext=function(t,e){var n=function t(e){s===Number.MAX_SAFE_INTEGER&&(s=0);return s++,void 0===a[e][s]?s:t(e)}(t);return a[t][n]=i[t].push({id:n,callback:e})-1,n},e.cancelNotifyOfNext=function(t,e){"undefined"!==a[t][e]&&(i[t][a[t][e]].callback=u,delete a[t][e])},e.notifyOfAll=function(t,e){t.forEach((function(t){o[t]=e}))};var r=n(75),o={},i={},a={},s=0;var u=function(){};function c(t){o[t.type](t)}function l(t){if(0!==i[t.type].length){t.persist=u;var e=[],n={};i[t.type].forEach((function(r){"reNotifyOfNext"===r.callback(t)&&(n[r.id]=e.push(r)-1)})),i[t.type]=e,a[t.type]=n}}function f(t){c(t),l(t)}function p(t,e,n,o){i[e]=[],a[e]={},t.addEventListener(e,n,r.passiveEventSupport?{capture:o,passive:"click"!==e}:o)}if(r.deviceHasTouch&&(p(window,"click",c,!0),Object.keys(r.touchEvents).forEach((function(t){p(document,t,"touchstart"===t?f:c,!0)}))),r.deviceHasMouse){Object.keys(r.mouseEvents).forEach((function(t){p(document,t,"mouseenter"===t?f:c,!("mouseenter"===t||"mouseleave"===t))})),p(document,"dragstart",l,!0),r.passiveEventSupport&&p(document,"scroll",l,!0),i.mutation=[],a.mutation={};var h=(0,r.dummyEvent)("mutation");(window.MutationObserver?new MutationObserver(l.bind(null,h)):{observe:function(){}}).observe(document,{childList:!0,attributes:!0,subtree:!0,characterData:!0})}["focus","blur"].forEach((function(t){p(window,t,l,!1)})),p(document,"keydown",c,!0)},function(t,e){t.exports=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}},function(t,e,n){var r=n(1044);t.exports=h,t.exports.parse=i,t.exports.compile=function(t,e){return s(i(t,e))},t.exports.tokensToFunction=s,t.exports.tokensToRegExp=p;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(t,e){for(var n,r=[],i=0,a=0,s="",l=e&&e.delimiter||"/";null!=(n=o.exec(t));){var f=n[0],p=n[1],h=n.index;if(s+=t.slice(a,h),a=h+f.length,p)s+=p[1];else{var d=t[a],y=n[2],v=n[3],m=n[4],g=n[5],b=n[6],_=n[7];s&&(r.push(s),s="");var w=null!=y&&null!=d&&d!==y,x="+"===b||"*"===b,O="?"===b||"*"===b,S=n[2]||l,k=m||g;r.push({name:v||i++,prefix:y||"",delimiter:S,optional:O,repeat:x,partial:w,asterisk:!!_,pattern:k?c(k):_?".*":"[^"+u(S)+"]+?"})}}return a{try{return new DOMException("","UnknownError")}catch(t){return t.name="UnknownError",t}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>{if(null===t)return!1;const e=t.length;return e%2!=0?0!==t[Math.floor(e/2)]:t[e/2-1]+t[e/2]!==0}},function(t,e,n){var r=n(1040);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)}},function(t,e,n){var r=n(1041),o=n(843);t.exports=function(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?o(t):e}},function(t,e){function n(){return t.exports=n=Object.assign||function(t){for(var e=1;e=10)return t;for(o in t)"string"==typeof t[o]&&0===t[o].indexOf("[%lktxp]")?(i=t[o].substring(8),n.hasOwnProperty(i)&&(t[o]=n[i])):"object"==typeof t[o]&&(t[o]=e.resolveTransformObject(t[o],n,r));return t},resolveTransformParams:function(t,n){var r,o,i=[];if(void 0===n)return t;for(r=0;ro)&&n:r==r&&o!=o||(o!=o||r==r)&&(te)&&(t==e?n:(r=t.toString())<(o=e.toString())||r==o&&n))}function u(t,e,n){var r,o,i,a;if(!t||!e||!0===t||!0===e||t!=t||e!=e){switch(t){case void 0:case null:i=1;break;case!1:i=3;break;case!0:i=4;break;case"":i=5;break;default:i=t==t?9:0}switch(e){case void 0:case null:a=1;break;case!1:a=3;break;case!0:a=4;break;case"":a=5;break;default:a=e==e?9:0}if(9!==i||9!==a)return i===a?n:i>a}return r=Number(t),o=Number(e),r==r&&o==o?r>o||!(re||!(t(o=e.toString())||r==o&&n))}function c(t,e,n){return i.aeq(t,e)?0:i.lt(t,e,!1)?n?1:-1:i.gt(t,e,!1)?n?-1:1:0}function l(t,e,n,r,o){var i,a=o||0,s=e[a],u=!1;if("object"==typeof t&&s in t&&(i=t[s]),a+1>=e.length)u=n(i,r);else if(Array.isArray(i))for(var c=0,f=i.length;ce},$jgte:function(t,e){return t>=e},$jlt:function(t,e){return t=e[0]&&t<=e[1]},$in:function(t,e){return-1!==e.indexOf(t)},$nin:function(t,e){return-1===e.indexOf(t)},$keyin:function(t,e){return t in e},$nkeyin:function(t,e){return!(t in e)},$definedin:function(t,e){return void 0!==e[t]},$undefinedin:function(t,e){return void 0===e[t]},$regex:function(t,e){return e.test(t)},$containsString:function(t,e){return"string"==typeof t&&-1!==t.indexOf(e)},$containsNone:function(t,e){return!h.$containsAny(t,e)},$containsAny:function(t,e){var n=f(t);return null!==n&&(Array.isArray(e)?e.some(n):n(e))},$contains:function(t,e){var n=f(t);return null!==n&&(Array.isArray(e)?e.every(n):n(e))},$elemMatch:function(t,e){return!!Array.isArray(t)&&t.some((function(t){return Object.keys(e).every((function(n){var r=e[n];return"object"==typeof r&&r||(r={$eq:r}),-1!==n.indexOf(".")?l(t,n.split("."),p,e[n]):p(t[n],r)}))}))},$type:function(t,e){var n=typeof t;return"object"===n&&(Array.isArray(t)?n="array":t instanceof Date&&(n="date")),"object"!=typeof e?n===e:p(n,e)},$finite:function(t,e){return e===isFinite(t)},$size:function(t,e){return!!Array.isArray(t)&&("object"!=typeof e?t.length===e:p(t.length,e))},$len:function(t,e){return"string"==typeof t&&("object"!=typeof e?t.length===e:p(t.length,e))},$where:function(t,e){return!0===e(t)},$not:function(t,e){return!p(t,e)},$and:function(t,e){for(var n=0,r=e.length;n=0||"$loki"==s||"meta"==s)o[s]=e[s];else{var u=a(t[s],e[s]);void 0!==u&&u!={}&&(o[s]=u)}}return 0===Object.keys(o).length?void 0:o}return t===e?void 0:e}function s(){r.changes=[]}this.observerCallback=function(e){var n="function"==typeof Set?new Set:[];n.add||(n.add=function(t){return-1===this.indexOf(t)&&this.push(t),this}),e.forEach((function(t){n.add(t.object)})),n.forEach((function(e){if(!t.call(e,"$loki"))return r.removeAutoUpdateObserver(e);try{r.update(e)}catch(t){}}))},this.getChangeDelta=function(t,e){return e?a(e,t):JSON.parse(JSON.stringify(t))},this.getObjectDelta=a,this.getChanges=function(){return r.changes},this.flushChanges=s,this.setChangesApi=function(t){r.disableChangesApi=!t,t||(r.disableDeltaChangesApi=!1)},this.on("delete",(function(t){r.disableChangesApi||r.createChange(r.name,"R",t)})),this.on("warning",(function(t){r.lokiConsoleWrapper.warn(t)})),s()}function T(t){return-1!==t.indexOf(".")}function C(t){return parseFloat(t,10)}function E(t,e){return t+e}function A(t,e){return t-e}function j(t){return t.reduce(E,0)/t.length}function P(t,e,n){if(!1===n)return t[e];for(var r=e.split("."),o=t;r.length>0;)o=o[r.shift()];return o}function D(t,e,n){for(var r,o,i=0,a=t.length;i>1,0===(r=n.apply(null,[e,t[o]])))return{found:!0,index:o};r<0?a=o:i=o+1}return{found:!1,index:a}}function M(t){return function(e,n){return D(e,n,t)}}function I(){}function R(t){this.field=t,this.keyMap={},this.lokiMap={}}function N(t){this.index={},this.field=t}return m.prototype.events={},m.prototype.asyncListeners=!1,m.prototype.on=function(t,e){var n,r=this;return Array.isArray(t)?(t.forEach((function(t){r.on(t,e)})),e):((n=this.events[t])||(n=this.events[t]=[]),n.push(e),e)},m.prototype.emit=function(t){var e=this,n=Array.prototype.slice.call(arguments,1);if(!t||!this.events[t])throw new Error("No event "+t+" defined");this.events[t].forEach((function(t){e.asyncListeners?setTimeout((function(){t.apply(e,n)}),1):t.apply(e,n)}))},m.prototype.addListener=m.prototype.on,m.prototype.removeListener=function(t,e){var n=this;if(Array.isArray(t))t.forEach((function(t){n.removeListener(t,e)}));else if(this.events[t]){var r=this.events[t];r.splice(r.indexOf(e),1)}},g.prototype=new m,g.prototype.constructor=g,g.prototype.getIndexedAdapter=function(){return n(1037)},g.prototype.configureOptions=function(t,e){var n={fs:w,localStorage:x,memory:b};if(this.options={},this.persistenceMethod=null,this.persistenceAdapter=null,void 0!==t){if(this.options=t,this.options.hasOwnProperty("persistenceMethod")&&"function"==typeof n[t.persistenceMethod]&&(this.persistenceMethod=t.persistenceMethod,this.persistenceAdapter=new n[t.persistenceMethod]),this.options.hasOwnProperty("adapter")&&(this.persistenceMethod="adapter",this.persistenceAdapter=t.adapter,this.options.adapter=null,this.isIncremental="incremental"===this.persistenceAdapter.mode),t.autoload&&e){var r=this;setTimeout((function(){r.loadDatabase(t,t.autoloadCallback)}),1)}this.options.hasOwnProperty("autosaveInterval")&&(this.autosaveDisable(),this.autosaveInterval=parseInt(this.options.autosaveInterval,10)),this.options.hasOwnProperty("autosave")&&this.options.autosave&&(this.autosaveDisable(),this.autosave=!0,this.options.hasOwnProperty("autosaveCallback")?this.autosaveEnable(t,t.autosaveCallback):this.autosaveEnable()),this.options.hasOwnProperty("throttledSaves")&&(this.throttledSaves=this.options.throttledSaves)}this.options.hasOwnProperty("serializationMethod")||(this.options.serializationMethod="normal"),this.options.hasOwnProperty("destructureDelimiter")||(this.options.destructureDelimiter="$<\n"),null===this.persistenceAdapter&&(this.persistenceMethod={NODEJS:"fs",BROWSER:"localStorage",CORDOVA:"localStorage",MEMORY:"memory"}[this.ENV],this.persistenceMethod&&(this.persistenceAdapter=new n[this.persistenceMethod]))},g.prototype.copy=function(t){var e,n,r=new g(this.filename,{env:"NA"});if(t=t||{},r.loadJSONObject(this,{retainDirtyFlags:!0}),t.hasOwnProperty("removeNonSerializable")&&!0===t.removeNonSerializable)for(r.autosaveHandle=null,r.persistenceAdapter=null,e=r.collections.length,n=0;n0)throw new Error("disableMeta option cannot be passed as true when ttl is enabled")}for(n=0;n=0)return this.serializeCollection({delimited:t.delimited,delimiter:t.delimiter,collectionIndex:t.partition});for((i=new g(this.filename)).loadJSONObject(this),e=0;er&&(u=!0):(o=JSON.parse(i[s]),n.collections[a].data.push(o)),i[s++]=null;return n},g.prototype.deserializeCollection=function(t,e){var n,r,o=[];for((e=e||{}).hasOwnProperty("partitioned")||(e.partitioned=!1),e.hasOwnProperty("delimited")||(e.delimited=!0),e.hasOwnProperty("delimiter")||(e.delimiter=this.options.destructureDelimiter),e.delimited?(o=t.split(e.delimiter)).pop():o=t,r=o.length,n=0;n=i&&(c=!0)),o>=this.options.pageSize&&(l=!0),l&&!c||(u+=this.options.delimiter,o+=a),c||l)return void this.adapter.saveDatabase(r,u,f)},w.prototype.loadDatabase=function(t,e){var n=this;this.fs.stat(t,(function(r,o){!r&&o.isFile()?n.fs.readFile(t,{encoding:"utf8"},(function(t,n){e(t?new Error(t):n)})):e(null)}))},w.prototype.saveDatabase=function(t,e,n){var r=this,o=t+"~";this.fs.writeFile(o,e,(function(e){e?n(new Error(e)):r.fs.rename(o,t,n)}))},w.prototype.deleteDatabase=function(t,e){this.fs.unlink(t,(function(t){t?e(new Error(t)):e()}))},x.prototype.loadDatabase=function(t,e){v()?e(localStorage.getItem(t)):e(new Error("localStorage is not available"))},x.prototype.saveDatabase=function(t,e,n){v()?(localStorage.setItem(t,e),n(null)):n(new Error("localStorage is not available"))},x.prototype.deleteDatabase=function(t,e){v()?(localStorage.removeItem(t),e(null)):e(new Error("localStorage is not available"))},g.prototype.throttledSaveDrain=function(t,e){var n=this,r=(new Date).getTime();if(this.throttledSaves||t(!0),(e=e||{}).hasOwnProperty("recursiveWait")||(e.recursiveWait=!0),e.hasOwnProperty("recursiveWaitLimit")||(e.recursiveWaitLimit=!1),e.hasOwnProperty("recursiveWaitLimitDuration")||(e.recursiveWaitLimitDuration=2e3),e.hasOwnProperty("started")||(e.started=(new Date).getTime()),this.throttledSaves&&this.throttledSavePending){if(!e.recursiveWait)return void this.throttledCallbacks.push(t);this.throttledCallbacks.push((function(){return n.throttledSavePending?e.recursiveWaitLimit&&r-e.started>e.recursiveWaitLimitDuration?void t(!1):void n.throttledSaveDrain(t,e):void t(!0)}))}else t(!0)},g.prototype.loadDatabaseInternal=function(t,e){var n=e||function(t,e){if(t)throw t},r=this;null!==this.persistenceAdapter?this.persistenceAdapter.loadDatabase(this.filename,(function(e){if("string"==typeof e){var o=!1;try{r.loadJSON(e,t||{}),o=!0}catch(t){n(t)}o&&(n(null),r.emit("loaded","database "+r.filename+" loaded"))}else{if(!e)return n(null),void r.emit("loaded","empty database "+r.filename+" loaded");if(e instanceof Error)return void n(e);if("object"==typeof e)return r.loadJSONObject(e,t||{}),n(null),void r.emit("loaded","database "+r.filename+" loaded");n("unexpected adapter response : "+e)}})):n(new Error("persistenceAdapter not configured"))},g.prototype.loadDatabase=function(t,e){var n=this;this.throttledSaves?this.throttledSaveDrain((function(r){if(r)return n.throttledSavePending=!0,void n.loadDatabaseInternal(t,(function(t){0===n.throttledCallbacks.length?n.throttledSavePending=!1:n.saveDatabase(),"function"==typeof e&&e(t)}));"function"==typeof e&&e(new Error("Unable to pause save throttling long enough to read database"))}),t):this.loadDatabaseInternal(t,e)},g.prototype.saveDatabaseInternal=function(t){var e=t||function(t){if(t)throw t},n=this;if(this.persistenceAdapter)if("reference"!==this.persistenceAdapter.mode&&this.autosaveClearFlags(),"incremental"===this.persistenceAdapter.mode){var r=this.copy({removeNonSerializable:!0}),o=this.collections.map((function(t){return t.dirtyIds}));this.collections.forEach((function(t){t.dirtyIds=[]})),this.persistenceAdapter.saveDatabase(this.filename,r,(function(t){t&&n.collections.forEach((function(t,e){t.dirtyIds=t.dirtyIds.concat(o[e])})),e(t)}))}else"reference"===this.persistenceAdapter.mode&&"function"==typeof this.persistenceAdapter.exportDatabase?this.persistenceAdapter.exportDatabase(this.filename,this.copy({removeNonSerializable:!0}),(function(t){n.autosaveClearFlags(),e(t)})):this.persistenceAdapter.saveDatabase(this.filename,this.serialize(),(function(t){e(t)}));else e(new Error("persistenceAdapter not configured"))},g.prototype.saveDatabase=function(t){if(this.throttledSaves)if(this.throttledSavePending)this.throttledCallbacks.push(t);else{var e=this.throttledCallbacks;this.throttledCallbacks=[],e.unshift(t),this.throttledSavePending=!0;var n=this;this.saveDatabaseInternal((function(t){n.throttledSavePending=!1,e.forEach((function(e){"function"==typeof e&&setTimeout((function(){e(t)}),1)})),n.throttledCallbacks.length>0&&n.saveDatabase()}))}else this.saveDatabaseInternal(t)},g.prototype.save=g.prototype.saveDatabase,g.prototype.deleteDatabase=function(t,e){var n=e||function(t,e){if(t)throw t};"function"!=typeof t||e||(n=t),null!==this.persistenceAdapter?this.persistenceAdapter.deleteDatabase(this.filename,(function(t){n(t)})):n(new Error("persistenceAdapter not configured"))},g.prototype.autosaveDirty=function(){for(var t=0;t0&&(this.filteredrows=[]),this.filterInitialized=!1,this},O.prototype.toJSON=function(){var t=this.copy();return t.collection=null,t},O.prototype.limit=function(t){this.filterInitialized||0!==this.filteredrows.length||(this.filteredrows=this.collection.prepareFullDocIndex());var e=new O(this.collection);return e.filteredrows=this.filteredrows.slice(0,t),e.filterInitialized=!0,e},O.prototype.offset=function(t){this.filterInitialized||0!==this.filteredrows.length||(this.filteredrows=this.collection.prepareFullDocIndex());var e=new O(this.collection);return e.filteredrows=this.filteredrows.slice(t),e.filterInitialized=!0,e},O.prototype.copy=function(){var t=new O(this.collection);return this.filteredrows.length>0&&(t.filteredrows=this.filteredrows.slice()),t.filterInitialized=this.filterInitialized,t},O.prototype.branch=O.prototype.copy,O.prototype.transform=function(t,n){var r,o,i=this;if("string"==typeof t&&this.collection.transforms.hasOwnProperty(t)&&(t=this.collection.transforms[t]),"object"!=typeof t||!Array.isArray(t))throw new Error("Invalid transform");for(void 0!==n&&(t=e.resolveTransformParams(t,n)),r=0;rn[t]?1:e[t]1)return this.find({$and:m},r)}if(!i||"getAll"===p)return r&&(this.filterInitialized?this.filteredrows=this.filteredrows.slice(0,1):(this.filteredrows=this.collection.data.length>0?[0]:[],this.filterInitialized=!0)),this;if("$and"===i||"$or"===i)return this[i](a),r&&this.filteredrows.length>1&&(this.filteredrows=this.filteredrows.slice(0,1)),this;if(null===a||"object"!=typeof a||a instanceof Date)u="$eq",c=a;else{if("object"!=typeof a)throw new Error("Do not know what you want to do.");for(f in a)if(t.call(a,f)){u=f,c=a[f];break}}"$regex"!==u&&"object"!=typeof c||(c=function t(e,n){if("$regex"===e)Array.isArray(n)?n=new RegExp(n[0],n[1]):n instanceof RegExp||(n=new RegExp(n));else if("object"==typeof n)for(var r in n)"$regex"!==r&&"object"!=typeof n[r]||(n[r]=t(r,n[r]));return n}(u,c));var b=-1!==i.indexOf(".");!this.filterInitialized&&this.collection.binaryIndices[i]&&d[u]&&(!0!==this.collection.adaptiveBinaryIndices&&this.collection.ensureIndex(i),y=!0,g=this.collection.binaryIndices[i]);var _,w=h[u],x=this.collection.data,O=0,S=0,k=0;if(this.filterInitialized){if(S=(_=this.filteredrows).length,b){for(i=i.split("."),O=0;O=0?(this.filterPipeline[e]=t,this.reapplyFilters()):(this.cachedresultset=null,this.options.persistent&&(this.resultdata=[],this.resultsdirty=!0),this._addFilter(t),this.sortFunction||this.sortCriteria||this.sortCriteriaSimple?this.queueSortPhase():this.queueRebuildEvent(),this)},S.prototype.applyFind=function(t,e){return this.applyFilter({type:"find",val:t,uid:e}),this},S.prototype.applyWhere=function(t,e){return this.applyFilter({type:"where",val:t,uid:e}),this},S.prototype.removeFilter=function(t){var e=this._indexOfFilterWithId(t);if(e<0)throw new Error("Dynamic view does not contain a filter with ID: "+t);return this.filterPipeline.splice(e,1),this.reapplyFilters(),this},S.prototype.count=function(){return this.resultsdirty&&(this.resultdata=this.resultset.data()),this.resultset.count()},S.prototype.data=function(t){return(this.sortDirty||this.resultsdirty)&&this.performSortPhase({suppressRebuildEvent:!0}),this.options.persistent?this.resultdata:this.resultset.data(t)},S.prototype.queueRebuildEvent=function(){if(!this.rebuildPending){this.rebuildPending=!0;var t=this;setTimeout((function(){t.rebuildPending&&(t.rebuildPending=!1,t.emit("rebuild",t))}),this.options.minRebuildInterval)}},S.prototype.queueSortPhase=function(){if(!this.sortDirty){this.sortDirty=!0;var t=this;"active"===this.options.sortPriority?setTimeout((function(){t.performSortPhase()}),this.options.minRebuildInterval):this.queueRebuildEvent()}},S.prototype.performSortPhase=function(t){(this.sortDirty||this.resultsdirty)&&(t=t||{},this.sortDirty&&(this.sortFunction?this.resultset.sort(this.sortFunction):this.sortCriteria?this.resultset.compoundsort(this.sortCriteria):this.sortCriteriaSimple&&this.resultset.simplesort(this.sortCriteriaSimple.propname,this.sortCriteriaSimple.options),this.sortDirty=!1),this.options.persistent&&(this.resultdata=this.resultset.data(),this.resultsdirty=!1),t.suppressRebuildEvent||this.emit("rebuild",this))},S.prototype.evaluateDocument=function(t,e){if(!this.resultset.filterInitialized)return this.options.persistent&&(this.resultdata=this.resultset.data()),void(this.sortFunction||this.sortCriteria||this.sortCriteriaSimple?this.queueSortPhase():this.queueRebuildEvent());var n,r=this.resultset.filteredrows,o=e?-1:r.indexOf(+t),i=r.length,a=new O(this.collection);a.filteredrows=[t],a.filterInitialized=!0;for(var s=0,u=this.filterPipeline.length;s0&&(this.resultset.filteredrows=this.resultset.filteredrows.filter((function(t,e){return!i[e]})),this.options.persistent&&(this.resultdata=this.resultdata.filter((function(t,e){return!i[e]}))),this.sortFunction||this.sortCriteria||this.sortCriteriaSimple?this.queueSortPhase():this.queueRebuildEvent());var l=function(t){return function(e){return e1)&&(n.randomSamplingFactor=.1);var r,o,i,a,s,u=!0;if(!this.binaryIndices.hasOwnProperty(t))throw new Error("called checkIndex on property without an index: "+t);if(this.adaptiveBinaryIndices||this.ensureIndex(t),(a=(s=this.binaryIndices[t].values).length)!==this.data.length)return n.repair&&this.ensureIndex(t,!0),!1;if(0===a)return!0;var c=-1!==t.indexOf(".");if(1===a)u=0===s[0];else if(n.randomSampling){if(h.$lte(e.getIn(this.data[s[0]],t,c),e.getIn(this.data[s[1]],t,c))||(u=!1),h.$lte(e.getIn(this.data[s[a-2]],t,c),e.getIn(this.data[s[a-1]],t,c))||(u=!1),u)for(o=Math.floor((a-1)*n.randomSamplingFactor),r=0;r0)&&(this.adaptiveBinaryIndices=!1);try{for(r=0;r0,l=this;try{for(this.startTransaction(),r=0;r0||s>0||u>0){if(e>0)for(n=0;n1)for(r=0;r>1;if(t="number"==typeof t?t:parseInt(t,10),isNaN(t))throw new TypeError("Passed id is not an integer");for(;r[i]>1]p[i];i++)u++;l.values[o]-=u}return}t=t[0]}if(null===(c=this.getBinaryIndexPosition(t,e)))return null;if(l.values.splice(c,1),!0!==n)for(r=l.values.length,o=0;ot&&l.values[o]--},k.prototype.calculateRangeStart=function(t,n,r,o){var a=this.data,s=this.binaryIndices[t].values,u=0,c=s.length-1,l=0;if(0===s.length)return-1;for(e.getIn(a[s[u]],t,o),e.getIn(a[s[c]],t,o);u>1,i.lt(e.getIn(a[s[l]],t,o),n,!1)?u=l+1:c=l;var f=u;return i.aeq(n,e.getIn(a[s[f]],t,o))?f:i.lt(n,e.getIn(a[s[f]],t,o),!1)?r?f:f-1:r?f+1:f},k.prototype.calculateRangeEnd=function(t,n,r){var o=this.data,a=this.binaryIndices[t].values,s=0,u=a.length-1,c=0;if(0===a.length)return-1;for(e.getIn(o[a[s]],t,r),e.getIn(o[a[u]],t,r);s>1,i.lt(n,e.getIn(o[a[c]],t,r),!1)?u=c:s=c+1;var l=u;return i.aeq(n,e.getIn(o[a[l]],t,r))?l:i.gt(n,e.getIn(o[a[l]],t,r),!1)?l+1:i.aeq(n,e.getIn(o[a[l-1]],t,r))?l-1:l},k.prototype.calculateRange=function(t,n,r){var o,a,s,u=this.data,c=this.binaryIndices[n].values,l=c.length-1;if(0===u.length)return[0,-1];var f=-1!==n.indexOf("."),p=e.getIn(u[c[0]],n,f),h=e.getIn(u[c[l]],n,f);switch(t){case"$eq":case"$aeq":case"$dteq":if(i.lt(r,p,!1)||i.gt(r,h,!1))return[0,-1];break;case"$gt":if(i.gt(r,h,!0))return[0,-1];if(i.gt(p,r,!1))return[0,l];break;case"$gte":if(i.gt(r,h,!1))return[0,-1];if(i.gt(p,r,!0))return[0,l];break;case"$lt":if(i.lt(r,p,!0))return[0,-1];if(i.lt(h,r,!1))return[0,l];break;case"$lte":if(i.lt(r,p,!1))return[0,-1];if(i.lt(h,r,!0))return[0,l];break;case"$between":return i.gt(r[0],h,!1)||i.lt(r[1],p,!1)?[0,-1]:((o=this.calculateRangeStart(n,r[0],!1,f))<0&&o++,(s=this.calculateRangeEnd(n,r[1],f))>l&&s--,i.gt(e.getIn(u[c[o]],n,f),r[0],!0)||o++,i.lt(e.getIn(u[c[s]],n,f),r[1],!0)||s--,sP(this.data[n],t,o)&&(e=P(this.data[n],t,o),i.index=this.data[n].$loki):(e=P(this.data[n],t,o),i.index=this.data[n].$loki);return i.value=e,i},k.prototype.extractNumerical=function(t){return this.extract(t).map(C).filter(Number).filter((function(t){return!isNaN(t)}))},k.prototype.avg=function(t){return j(this.extractNumerical(t))},k.prototype.stdDev=function(t){return e=this.extractNumerical(t),n=j(e),r=j(e.map((function(t){var e=t-n;return e*e}))),Math.sqrt(r);var e,n,r},k.prototype.mode=function(t){var e,n,r,o={},i=this.extract(t);for(n in i.forEach((function(t){o[t]?o[t]+=1:o[t]=1})),o)e?ee?1:0},setSort:function(t){this.bs=new M(t)},bs:function(){return new M(this.sort)},set:function(t,e){var n=this.bs(this.keys,t);n.found?this.values[n.index]=e:(this.keys.splice(n.index,0,t),this.values.splice(n.index,0,e))},get:function(t){return this.values[D(this.keys,t,this.sort).index]}},R.prototype.keyMap={},R.prototype.lokiMap={},R.prototype.set=function(t){var e=t[this.field];if(null!=e){if(this.keyMap[e])throw new Error("Duplicate key for property "+this.field+": "+e);this.keyMap[e]=t,this.lokiMap[t.$loki]=e}},R.prototype.get=function(t){return this.keyMap[t]},R.prototype.byId=function(t){return this.keyMap[this.lokiMap[t]]},R.prototype.update=function(t,e){if(this.lokiMap[t.$loki]!==e[this.field]){var n=this.lokiMap[t.$loki];this.set(e),this.keyMap[n]=void 0}else this.keyMap[t[this.field]]=e},R.prototype.remove=function(t){var e=this.keyMap[t];if(null==e)throw new Error("Key is not in unique index: "+this.field);this.keyMap[t]=void 0,this.lokiMap[e.$loki]=void 0},R.prototype.clear=function(){this.keyMap={},this.lokiMap={}},N.prototype={set:function(t,e){this.index[t]?this.index[t].push(e):this.index[t]=[e]},remove:function(t,e){var n=this.index[t];for(var r in n)n[r]==e&&n.splice(r,1);n.length<1&&(this.index[t]=void 0)},get:function(t){return this.index[t]},clear:function(t){this.index={}}},g.LokiOps=h,g.Collection=k,g.KeyValueStore=I,g.LokiMemoryAdapter=b,g.LokiPartitioningAdapter=_,g.LokiLocalStorageAdapter=x,g.LokiFsAdapter=w,g.persistenceAdapters={fs:w,localStorage:x},g.aeq=a,g.lt=s,g.gt=u,g.Comparators=i,g}()})?i.apply(e,a):i)||(t.exports=s)}).call(this,n(124),n(206))},,function(t,e,n){t.exports=!n(20)&&!n(10)((function(){return 7!=Object.defineProperty(n(133)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(9),o=n(18),i=n(67),a=n(134),s=n(21).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},function(t,e,n){var r=n(30),o=n(32),i=n(112)(!1),a=n(135)("IE_PROTO");t.exports=function(t,e){var n,s=o(t),u=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;e.length>u;)r(s,n=e[u++])&&(~i(c,n)||c.push(n));return c}},function(t,e,n){var r=n(21),o=n(11),i=n(68);t.exports=n(20)?Object.defineProperties:function(t,e){o(t);for(var n,a=i(e),s=a.length,u=0;s>u;)r.f(t,n=a[u++],e[n]);return t}},function(t,e,n){var r=n(32),o=n(71).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return a.slice()}}(t):o(r(t))}},function(t,e,n){"use strict";var r=n(20),o=n(68),i=n(113),a=n(104),s=n(25),u=n(103),c=Object.assign;t.exports=!c||n(10)((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=r}))?function(t,e){for(var n=s(t),c=arguments.length,l=1,f=i.f,p=a.f;c>l;)for(var h,d=u(arguments[l++]),y=f?o(d).concat(f(d)):o(d),v=y.length,m=0;v>m;)h=y[m++],r&&!p.call(d,h)||(n[h]=d[h]);return n}:c},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,n){"use strict";var r=n(43),o=n(12),i=n(180),a=[].slice,s={},u=function(t,e,n){if(!(e in s)){for(var r=[],o=0;o>>0||(a.test(n)?16:10))}:r},function(t,e,n){var r=n(9).parseFloat,o=n(85).trim;t.exports=1/r(n(139)+"-0")!=-1/0?function(t){var e=o(String(t),3),n=r(e);return 0===n&&"-"==e.charAt(0)?-0:n}:r},function(t,e,n){var r=n(52);t.exports=function(t,e){if("number"!=typeof t&&"Number"!=r(t))throw TypeError(e);return+t}},function(t,e,n){var r=n(12),o=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&o(t)===t}},function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,e,n){"use strict";var r=n(70),o=n(65),i=n(84),a={};n(31)(a,n(15)("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(a,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var r=n(11);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(t,e,n){var r=n(940);t.exports=function(t,e){return new(r(t))(e)}},function(t,e,n){var r=n(43),o=n(25),i=n(103),a=n(17);t.exports=function(t,e,n,s,u){r(e);var c=o(t),l=i(c),f=a(c.length),p=u?f-1:0,h=u?-1:1;if(n<2)for(;;){if(p in l){s=l[p],p+=h;break}if(p+=h,u?p<0:f<=p)throw TypeError("Reduce of empty array with no initial value")}for(;u?p>=0:f>p;p+=h)p in l&&(s=e(s,l[p],p,c));return s}},function(t,e,n){"use strict";var r=n(25),o=n(69),i=n(17);t.exports=[].copyWithin||function(t,e){var n=r(this),a=i(n.length),s=o(t,a),u=o(e,a),c=arguments.length>2?arguments[2]:void 0,l=Math.min((void 0===c?a:o(c,a))-u,a-s),f=1;for(u0;)u in n?n[s]=n[u]:delete n[s],s+=f,u+=f;return n}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){"use strict";var r=n(154);n(1)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},function(t,e,n){n(20)&&"g"!=/./g.flags&&n(21).f(RegExp.prototype,"flags",{configurable:!0,get:n(116)})},function(t,e,n){"use strict";var r,o,i,a,s=n(67),u=n(9),c=n(42),l=n(105),f=n(1),p=n(12),h=n(43),d=n(88),y=n(119),v=n(106),m=n(156).set,g=n(960)(),b=n(195),_=n(961),w=n(120),x=n(196),O=u.TypeError,S=u.process,k=S&&S.versions,T=k&&k.v8||"",C=u.Promise,E="process"==l(S),A=function(){},j=o=b.f,P=!!function(){try{var t=C.resolve(1),e=(t.constructor={})[n(15)("species")]=function(t){t(A,A)};return(E||"function"==typeof PromiseRejectionEvent)&&t.then(A)instanceof e&&0!==T.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(t){}}(),D=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},M=function(t,e){if(!t._n){t._n=!0;var n=t._c;g((function(){for(var r=t._v,o=1==t._s,i=0,a=function(e){var n,i,a,s=o?e.ok:e.fail,u=e.resolve,c=e.reject,l=e.domain;try{s?(o||(2==t._h&&N(t),t._h=1),!0===s?n=r:(l&&l.enter(),n=s(r),l&&(l.exit(),a=!0)),n===e.promise?c(O("Promise-chain cycle")):(i=D(n))?i.call(n,u,c):u(n)):c(r)}catch(t){l&&!a&&l.exit(),c(t)}};n.length>i;)a(n[i++]);t._c=[],t._n=!1,e&&!t._h&&I(t)}))}},I=function(t){m.call(u,(function(){var e,n,r,o=t._v,i=R(t);if(i&&(e=_((function(){E?S.emit("unhandledRejection",o,t):(n=u.onunhandledrejection)?n({promise:t,reason:o}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",o)})),t._h=E||R(t)?2:1),t._a=void 0,i&&e.e)throw e.v}))},R=function(t){return 1!==t._h&&0===(t._a||t._c).length},N=function(t){m.call(u,(function(){var e;E?S.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})}))},F=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),M(e,!0))},q=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw O("Promise can't be resolved itself");(e=D(t))?g((function(){var r={_w:n,_d:!1};try{e.call(t,c(q,r,1),c(F,r,1))}catch(t){F.call(r,t)}})):(n._v=t,n._s=1,M(n,!1))}catch(t){F.call({_w:n,_d:!1},t)}}};P||(C=function(t){d(this,C,"Promise","_h"),h(t),r.call(this);try{t(c(q,this,1),c(F,this,1))}catch(t){F.call(this,t)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(89)(C.prototype,{then:function(t,e){var n=j(v(this,C));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=E?S.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&M(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r;this.promise=t,this.resolve=c(q,t,1),this.reject=c(F,t,1)},b.f=j=function(t){return t===C||t===a?new i(t):o(t)}),f(f.G+f.W+f.F*!P,{Promise:C}),n(84)(C,"Promise"),n(87)("Promise"),a=n(18).Promise,f(f.S+f.F*!P,"Promise",{reject:function(t){var e=j(this);return(0,e.reject)(t),e.promise}}),f(f.S+f.F*(s||!P),"Promise",{resolve:function(t){return x(s&&this===a?C:this,t)}}),f(f.S+f.F*!(P&&n(115)((function(t){C.all(t).catch(A)}))),"Promise",{all:function(t){var e=this,n=j(e),r=n.resolve,o=n.reject,i=_((function(){var n=[],i=0,a=1;y(t,!1,(function(t){var s=i++,u=!1;n.push(void 0),a++,e.resolve(t).then((function(t){u||(u=!0,n[s]=t,--a||r(n))}),o)})),--a||r(n)}));return i.e&&o(i.v),n.promise},race:function(t){var e=this,n=j(e),r=n.reject,o=_((function(){y(t,!1,(function(t){e.resolve(t).then(n.resolve,r)}))}));return o.e&&r(o.v),n.promise}})},function(t,e,n){"use strict";var r=n(43);function o(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)}t.exports.f=function(t){return new o(t)}},function(t,e,n){var r=n(11),o=n(12),i=n(195);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";var r=n(21).f,o=n(70),i=n(89),a=n(42),s=n(88),u=n(119),c=n(145),l=n(191),f=n(87),p=n(20),h=n(58).fastKey,d=n(74),y=p?"_s":"size",v=function(t,e){var n,r=h(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,c){var l=t((function(t,r){s(t,l,e,"_i"),t._t=e,t._i=o(null),t._f=void 0,t._l=void 0,t[y]=0,null!=r&&u(r,n,t[c],t)}));return i(l.prototype,{clear:function(){for(var t=d(this,e),n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[y]=0},delete:function(t){var n=d(this,e),r=v(n,t);if(r){var o=r.n,i=r.p;delete n._i[r.i],r.r=!0,i&&(i.n=o),o&&(o.p=i),n._f==r&&(n._f=o),n._l==r&&(n._l=i),n[y]--}return!!r},forEach:function(t){d(this,e);for(var n,r=a(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!v(d(this,e),t)}}),p&&r(l.prototype,"size",{get:function(){return d(this,e)[y]}}),l},def:function(t,e,n){var r,o,i=v(t,e);return i?i.v=n:(t._l=i={i:o=h(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=i),r&&(r.n=i),t[y]++,"F"!==o&&(t._i[o]=i)),t},getEntry:v,setStrong:function(t,e,n){c(t,e,(function(t,n){this._t=d(t,e),this._k=n,this._l=void 0}),(function(){for(var t=this._k,e=this._l;e&&e.r;)e=e.p;return this._t&&(this._l=e=e?e.n:this._t._f)?l(0,"keys"==t?e.k:"values"==t?e.v:[e.k,e.v]):(this._t=void 0,l(1))}),n?"entries":"values",!n,!0),f(e)}}},function(t,e,n){"use strict";var r=n(89),o=n(58).getWeak,i=n(11),a=n(12),s=n(88),u=n(119),c=n(47),l=n(30),f=n(74),p=c(5),h=c(6),d=0,y=function(t){return t._l||(t._l=new v)},v=function(){this.a=[]},m=function(t,e){return p(t.a,(function(t){return t[0]===e}))};v.prototype={get:function(t){var e=m(this,t);if(e)return e[1]},has:function(t){return!!m(this,t)},set:function(t,e){var n=m(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(t){var e=h(this.a,(function(e){return e[0]===t}));return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,i){var c=t((function(t,r){s(t,c,e,"_i"),t._t=e,t._i=d++,t._l=void 0,null!=r&&u(r,n,t[i],t)}));return r(c.prototype,{delete:function(t){if(!a(t))return!1;var n=o(t);return!0===n?y(f(this,e)).delete(t):n&&l(n,this._i)&&delete n[this._i]},has:function(t){if(!a(t))return!1;var n=o(t);return!0===n?y(f(this,e)).has(t):n&&l(n,this._i)}}),c},def:function(t,e,n){var r=o(i(e),!0);return!0===r?y(t).set(e,n):r[t._i]=n,t},ufstore:y}},function(t,e,n){var r=n(44),o=n(17);t.exports=function(t){if(void 0===t)return 0;var e=r(t),n=o(e);if(e!==n)throw RangeError("Wrong length!");return n}},function(t,e,n){var r=n(71),o=n(113),i=n(11),a=n(9).Reflect;t.exports=a&&a.ownKeys||function(t){var e=r.f(i(t)),n=o.f;return n?e.concat(n(t)):e}},function(t,e,n){var r=n(17),o=n(141),i=n(53);t.exports=function(t,e,n,a){var s=String(i(t)),u=s.length,c=void 0===n?" ":String(n),l=r(e);if(l<=u||""==c)return s;var f=l-u,p=o.call(c,Math.ceil(f/c.length));return p.length>f&&(p=p.slice(0,f)),a?p+s:s+p}},function(t,e,n){var r=n(20),o=n(68),i=n(32),a=n(104).f;t.exports=function(t){return function(e){for(var n,s=i(e),u=o(s),c=u.length,l=0,f=[];c>l;)n=u[l++],r&&!a.call(s,n)||f.push(t?[n,s[n]]:s[n]);return f}}},function(t,e,n){var r=function(t){"use strict";var e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(t,e,n,r){var o=e&&e.prototype instanceof l?e:l,i=Object.create(o.prototype),a=new x(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=b(a,n);if(s){if(s===c)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=u(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===c)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(t,n,a),i}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var c={};function l(){}function f(){}function p(){}var h={};h[o]=function(){return this};var d=Object.getPrototypeOf,y=d&&d(d(O([])));y&&y!==e&&n.call(y,o)&&(h=y);var v=p.prototype=l.prototype=Object.create(h);function m(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function g(t,e){var r;this._invoke=function(o,i){function a(){return new e((function(r,a){!function r(o,i,a,s){var c=u(t[o],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function b(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return c;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var r=u(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,c;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,c):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,c)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function O(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(s&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),w(n),c}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;w(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:O(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},function(t,e){var n=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){var n,r,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(t){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var u,c=[],l=!1,f=-1;function p(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&h())}function h(){if(!l){var t=s(p);l=!0;for(var e=c.length;e;){for(u=c,c=[];++f1)for(var n=1;n{try{return new DOMException("","AbortError")}catch(t){return t.code=20,t.name="AbortError",t}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,n,r)=>{const o=[];for(let t=0;t(e,n)=>{t.set(e,{activeInputs:new Set,passiveInputs:new WeakMap,renderer:n})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,n)=>{const r=t(e,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});n.connect(r).connect(r.context.destination);const o=()=>{n.removeEventListener("ended",o),n.disconnect(r),r.disconnect()};n.addEventListener("ended",o)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,n)=>{t(e).add(n)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));const r={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",fftSize:2048,maxDecibels:-30,minDecibels:-100,smoothingTimeConstant:.8},o=(t,e,n,o,i,a)=>class extends t{constructor(t,n=r){const s=i(t),u={...r,...n},c=o(s,u);super(t,!1,c,a(s)?e():null),this._nativeAnalyserNode=c}get fftSize(){return this._nativeAnalyserNode.fftSize}set fftSize(t){this._nativeAnalyserNode.fftSize=t}get frequencyBinCount(){return this._nativeAnalyserNode.frequencyBinCount}get maxDecibels(){return this._nativeAnalyserNode.maxDecibels}set maxDecibels(t){const e=this._nativeAnalyserNode.maxDecibels;if(this._nativeAnalyserNode.maxDecibels=t,!(t>this._nativeAnalyserNode.minDecibels))throw this._nativeAnalyserNode.maxDecibels=e,n()}get minDecibels(){return this._nativeAnalyserNode.minDecibels}set minDecibels(t){const e=this._nativeAnalyserNode.minDecibels;if(this._nativeAnalyserNode.minDecibels=t,!(this._nativeAnalyserNode.maxDecibels>t))throw this._nativeAnalyserNode.minDecibels=e,n()}get smoothingTimeConstant(){return this._nativeAnalyserNode.smoothingTimeConstant}set smoothingTimeConstant(t){this._nativeAnalyserNode.smoothingTimeConstant=t}getByteFrequencyData(t){this._nativeAnalyserNode.getByteFrequencyData(t)}getByteTimeDomainData(t){this._nativeAnalyserNode.getByteTimeDomainData(t)}getFloatFrequencyData(t){this._nativeAnalyserNode.getFloatFrequencyData(t)}getFloatTimeDomainData(t){this._nativeAnalyserNode.getFloatTimeDomainData(t)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(6);const o=(t,e,n)=>()=>{const o=new WeakMap;return{render(i,a,s){const u=o.get(a);return void 0!==u?Promise.resolve(u):(async(i,a,s)=>{let u=e(i);if(!Object(r.a)(u,a)){const e={channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,fftSize:u.fftSize,maxDecibels:u.maxDecibels,minDecibels:u.minDecibels,smoothingTimeConstant:u.smoothingTimeConstant};u=t(a,e)}return o.set(a,u),await n(i,a,u,s),u})(i,a,s)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(95),o=n(90);const i={numberOfChannels:1},a=(t,e,n,a,s,u,c,l)=>{let f=null;return class p{constructor(p){if(null===s)throw new Error("Missing the native OfflineAudioContext constructor.");const{length:h,numberOfChannels:d,sampleRate:y}={...i,...p};null===f&&(f=new s(1,1,44100));const v=null!==a&&e(u,u)?new a({length:h,numberOfChannels:d,sampleRate:y}):f.createBuffer(d,h,y);if(0===v.numberOfChannels)throw n();return"function"!=typeof v.copyFromChannel?(c(v),Object(o.a)(v)):e(r.a,()=>Object(r.a)(v))||l(v),t.add(v),v}static[Symbol.hasInstance](e){return null!==e&&"object"==typeof e&&Object.getPrototypeOf(e)===p.prototype||t.has(e)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(5),o=n(48),i=n(59);const a={buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1},s=(t,e,n,s,u,c,l,f)=>class extends t{constructor(t,o=a){const i=c(t),s={...a,...o},f=u(i,s),p=l(i),h=p?e():null;super(t,!1,f,h),this._audioBufferSourceNodeRenderer=h,this._isBufferNullified=!1,this._isBufferSet=null!==o.buffer&&void 0!==o.buffer,this._nativeAudioBufferSourceNode=f,this._onended=null,this._playbackRate=n(this,p,f.playbackRate,r.b,r.a)}get buffer(){return this._isBufferNullified?null:this._nativeAudioBufferSourceNode.buffer}set buffer(t){try{this._nativeAudioBufferSourceNode.buffer=t}catch(e){if(null!==t||17!==e.code)throw e;if(null!==this._nativeAudioBufferSourceNode.buffer){const t=this._nativeAudioBufferSourceNode.buffer,e=t.numberOfChannels;for(let n=0;n{this._nativeAudioBufferSourceNode.removeEventListener("ended",t),setTimeout(()=>Object(i.a)(this),1e3)};this._nativeAudioBufferSourceNode.addEventListener("ended",t)}}stop(t=0){this._nativeAudioBufferSourceNode.stop(t),null!==this._audioBufferSourceNodeRenderer&&(this._audioBufferSourceNodeRenderer.stop=t)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(6);const o=(t,e,n,o,i)=>()=>{const a=new WeakMap;let s=null,u=null;return{set start(t){s=t},set stop(t){u=t},render(c,l,f){const p=a.get(l);return void 0!==p?Promise.resolve(p):(async(c,l,f)=>{let p=n(c);const h=Object(r.a)(p,l);if(!h){const t={buffer:p.buffer,channelCount:p.channelCount,channelCountMode:p.channelCountMode,channelInterpretation:p.channelInterpretation,loop:p.loop,loopEnd:p.loopEnd,loopStart:p.loopStart,playbackRate:p.playbackRate.value};p=e(l,t),null!==s&&p.start(...s),null!==u&&p.stop(u)}return a.set(l,p),h?await t(l,c.playbackRate,p.playbackRate,f):await o(l,c.playbackRate,p.playbackRate,f),await i(c,l,p,f),p})(c,l,f)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(125);const o=(t,e,n,o,i,a,s,u,c)=>class extends t{constructor(t={}){if(null===c)throw new Error("Missing the native AudioContext constructor.");const e=new c(t);if(null===e)throw o();if(!Object(r.a)(t.latencyHint))throw new TypeError(`The provided value '${t.latencyHint}' is not a valid enum value of type AudioContextLatencyCategory.`);if(void 0!==t.sampleRate&&e.sampleRate!==t.sampleRate)throw n();super(e,2);const{latencyHint:i}=t,{sampleRate:a}=e;if(this._baseLatency="number"==typeof e.baseLatency?e.baseLatency:"balanced"===i?512/a:"interactive"===i||void 0===i?256/a:"playback"===i?1024/a:128*Math.max(2,Math.min(128,Math.round(i*a/128)))/a,this._nativeAudioContext=e,this._state=null,"running"===e.state){this._state="suspended";const t=()=>{"suspended"===this._state&&(this._state=null),e.removeEventListener("statechange",t)};e.addEventListener("statechange",t)}}get baseLatency(){return this._baseLatency}get state(){return null!==this._state?this._state:this._nativeAudioContext.state}close(){return"closed"===this.state?this._nativeAudioContext.close().then(()=>{throw e()}):("suspended"===this._state&&(this._state=null),this._nativeAudioContext.close())}createMediaElementSource(t){return new i(this,{mediaElement:t})}createMediaStreamDestination(){return new a(this)}createMediaStreamSource(t){return new s(this,{mediaStream:t})}createMediaStreamTrackSource(t){return new u(this,{mediaStreamTrack:t})}resume(){return"suspended"===this._state?new Promise((t,e)=>{const n=()=>{this._nativeAudioContext.removeEventListener("statechange",n),"running"===this._nativeAudioContext.state?t():this.resume().then(t,e)};this._nativeAudioContext.addEventListener("statechange",n)}):this._nativeAudioContext.resume().catch(t=>{if(void 0===t||15===t.code)throw e();throw t})}suspend(){return this._nativeAudioContext.suspend().catch(t=>{if(void 0===t)throw e();throw t})}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n,r,o,i,a,s)=>class extends t{constructor(t,n){const r=i(t),u=a(r),c=o(r,n,u);super(t,!1,c,u?e(s):null),this._isNodeOfNativeOfflineAudioContext=u,this._nativeAudioDestinationNode=c}get channelCount(){return this._nativeAudioDestinationNode.channelCount}set channelCount(t){if(this._isNodeOfNativeOfflineAudioContext)throw r();if(t>this._nativeAudioDestinationNode.maxChannelCount)throw n();this._nativeAudioDestinationNode.channelCount=t}get channelCountMode(){return this._nativeAudioDestinationNode.channelCountMode}set channelCountMode(t){if(this._isNodeOfNativeOfflineAudioContext)throw r();this._nativeAudioDestinationNode.channelCountMode=t}get maxChannelCount(){return this._nativeAudioDestinationNode.maxChannelCount}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>{let e=null;return{render:(n,r,o)=>(null===e&&(e=(async(e,n,r)=>{const o=n.destination;return await t(e,n,o,r),o})(n,r,o)),e)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(5);const o=(t,e,n,o,i)=>(a,s)=>{const u=s.listener,{forwardX:c,forwardY:l,forwardZ:f,positionX:p,positionY:h,positionZ:d,upX:y,upY:v,upZ:m}=void 0===u.forwardX?(()=>{const c=e(s,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:9}),l=i(s),f=o(s,256,9,0),p=(e,o)=>{const i=n(s,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:o});return i.connect(c,0,e),i.start(),Object.defineProperty(i.offset,"defaultValue",{get:()=>o}),t({context:a},l,i.offset,r.b,r.a)};let h=[0,0,-1,0,1,0],d=[0,0,0];return f.onaudioprocess=({inputBuffer:t})=>{const e=[t.getChannelData(0)[0],t.getChannelData(1)[0],t.getChannelData(2)[0],t.getChannelData(3)[0],t.getChannelData(4)[0],t.getChannelData(5)[0]];e.some((t,e)=>t!==h[e])&&(u.setOrientation(...e),h=e);const n=[t.getChannelData(6)[0],t.getChannelData(7)[0],t.getChannelData(8)[0]];n.some((t,e)=>t!==d[e])&&(u.setPosition(...n),d=n)},c.connect(f),{forwardX:p(0,0),forwardY:p(1,0),forwardZ:p(2,-1),positionX:p(6,0),positionY:p(7,0),positionZ:p(8,0),upX:p(3,0),upY:p(4,1),upZ:p(5,0)}})():u;return{get forwardX(){return c},get forwardY(){return l},get forwardZ(){return f},get positionX(){return p},get positionY(){return h},get positionZ(){return d},get upX(){return y},get upY(){return v},get upZ(){return m}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(50);const o=(t,e,n,o,i,a,s,u,c,l,f,p)=>(h,d,y,v=null,m=null)=>{const g=new r.AutomationEventList(y.defaultValue),b=d?o(g):null,_={get defaultValue(){return y.defaultValue},get maxValue(){return null===v?y.maxValue:v},get minValue(){return null===m?y.minValue:m},get value(){return y.value},set value(t){y.value=t,_.setValueAtTime(t,h.context.currentTime)},cancelAndHoldAtTime(t){if("function"==typeof y.cancelAndHoldAtTime)null===b&&g.flush(h.context.currentTime),g.add(i(t)),y.cancelAndHoldAtTime(t);else{const e=Array.from(g).pop();null===b&&g.flush(h.context.currentTime),g.add(i(t));const n=Array.from(g).pop();y.cancelScheduledValues(t),e!==n&&void 0!==n&&("exponentialRampToValue"===n.type?y.exponentialRampToValueAtTime(n.value,n.endTime):"linearRampToValue"===n.type?y.linearRampToValueAtTime(n.value,n.endTime):"setValue"===n.type?y.setValueAtTime(n.value,n.startTime):"setValueCurve"===n.type&&y.setValueCurveAtTime(n.values,n.startTime,n.duration))}return _},cancelScheduledValues:t=>(null===b&&g.flush(h.context.currentTime),g.add(a(t)),y.cancelScheduledValues(t),_),exponentialRampToValueAtTime:(t,e)=>(null===b&&g.flush(h.context.currentTime),g.add(s(t,e)),y.exponentialRampToValueAtTime(t,e),_),linearRampToValueAtTime:(t,e)=>(null===b&&g.flush(h.context.currentTime),g.add(u(t,e)),y.linearRampToValueAtTime(t,e),_),setTargetAtTime:(t,e,n)=>(null===b&&g.flush(h.context.currentTime),g.add(c(t,e,n)),y.setTargetAtTime(t,e,n),_),setValueAtTime:(t,e)=>(null===b&&g.flush(h.context.currentTime),g.add(l(t,e)),y.setValueAtTime(t,e),_),setValueCurveAtTime(t,e,n){if(null!==p&&"webkitAudioContext"===p.name){const r=e+n,o=h.context.sampleRate,i=Math.ceil(e*o),a=Math.floor(r*o),s=a-i,u=new Float32Array(s);for(let r=0;r({replay(e){for(const n of t)if("exponentialRampToValue"===n.type){const{endTime:t,value:r}=n;e.exponentialRampToValueAtTime(r,t)}else if("linearRampToValue"===n.type){const{endTime:t,value:r}=n;e.linearRampToValueAtTime(r,t)}else if("setTarget"===n.type){const{startTime:t,target:r,timeConstant:o}=n;e.setTargetAtTime(r,t,o)}else if("setValue"===n.type){const{startTime:t,value:r}=n;e.setValueAtTime(r,t)}else{if("setValueCurve"!==n.type)throw new Error("Can't apply an unknown automation.");{const{duration:t,startTime:r,values:o}=n;e.setValueCurveAtTime(o,r,t)}}}})},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(2),o=n(126);const i={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:1,numberOfOutputs:1,outputChannelCount:void 0,parameterData:{},processorOptions:{}},a=t=>{const e=[];for(let n=0;nclass extends e{constructor(e,p,h=i){const d=c(e),y=l(d),v=(t=>({...t,outputChannelCount:void 0!==t.outputChannelCount?t.outputChannelCount:1===t.numberOfInputs&&1===t.numberOfOutputs?[t.channelCount]:a(t.numberOfOutputs)}))({...i,...h}),m=r.j.get(d),g=void 0===m?void 0:m.get(p),b=u(d,y?null:e.baseLatency,f,p,g,v);super(e,!0,b,y?s(p,v,g):null);const _=[];b.parameters.forEach((t,e)=>{const r=n(this,y,t);_.push([e,r])}),this._nativeAudioWorkletNode=b,this._onprocessorerror=null,this._parameters=new o.a(_),y&&t(d,this)}get onprocessorerror(){return this._onprocessorerror}set onprocessorerror(t){const e="function"==typeof t?p(this,t):null;this._nativeAudioWorkletNode.onprocessorerror=e;const n=this._nativeAudioWorkletNode.onprocessorerror;this._onprocessorerror=null!==n&&n===e?t:n}get parameters(){return null===this._parameters?this._nativeAudioWorkletNode.parameters:this._parameters}get port(){return this._nativeAudioWorkletNode.port}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n,r,o,i,a,s,u,c,l,f,p,h,d,y,v,m,g,b)=>class extends d{constructor(e,n){super(e,n),this._nativeContext=e,this._audioWorklet=void 0===t?void 0:{addModule:(e,n)=>t(this,e,n)}}get audioWorklet(){return this._audioWorklet}createAnalyser(){return new e(this)}createBiquadFilter(){return new o(this)}createBuffer(t,e,r){return new n({length:e,numberOfChannels:t,sampleRate:r})}createBufferSource(){return new r(this)}createChannelMerger(t=6){return new i(this,{numberOfInputs:t})}createChannelSplitter(t=6){return new a(this,{numberOfOutputs:t})}createConstantSource(){return new s(this)}createConvolver(){return new u(this)}createDelay(t=1){return new l(this,{maxDelayTime:t})}createDynamicsCompressor(){return new f(this)}createGain(){return new p(this)}createIIRFilter(t,e){return new h(this,{feedback:e,feedforward:t})}createOscillator(){return new y(this)}createPanner(){return new v(this)}createPeriodicWave(t,e,n={disableNormalization:!1}){return new m(this,{...n,imag:e,real:t})}createStereoPanner(){return new g(this)}createWaveShaper(){return new b(this)}decodeAudioData(t,e,n){return c(this._nativeContext,t).then(t=>("function"==typeof e&&e(t),t)).catch(t=>{throw"function"==typeof n&&n(t),t})}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(5);const o={Q:1,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",detune:0,frequency:350,gain:0,type:"lowpass"},i=(t,e,n,i,a,s,u)=>class extends t{constructor(t,i=o){const c=s(t),l={...o,...i},f=a(c,l),p=u(c);super(t,!1,f,p?n():null),this._Q=e(this,p,f.Q,r.b,r.a),this._detune=e(this,p,f.detune,1200*Math.log2(r.b),-1200*Math.log2(r.b)),this._frequency=e(this,p,f.frequency,t.sampleRate/2,0),this._gain=e(this,p,f.gain,40*Math.log10(r.b),r.a),this._nativeBiquadFilterNode=f}get detune(){return this._detune}get frequency(){return this._frequency}get gain(){return this._gain}get Q(){return this._Q}get type(){return this._nativeBiquadFilterNode.type}set type(t){this._nativeBiquadFilterNode.type=t}getFrequencyResponse(t,e,n){if(this._nativeBiquadFilterNode.getFrequencyResponse(t,e,n),t.length!==e.length||e.length!==n.length)throw i()}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(6);const o=(t,e,n,o,i)=>()=>{const a=new WeakMap;return{render(s,u,c){const l=a.get(u);return void 0!==l?Promise.resolve(l):(async(s,u,c)=>{let l=n(s);const f=Object(r.a)(l,u);if(!f){const t={Q:l.Q.value,channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,detune:l.detune.value,frequency:l.frequency.value,gain:l.gain.value,type:l.type};l=e(u,t)}return a.set(u,l),f?(await t(u,s.Q,l.Q,c),await t(u,s.detune,l.detune,c),await t(u,s.frequency,l.frequency,c),await t(u,s.gain,l.gain,c)):(await o(u,s.Q,l.Q,c),await o(u,s.detune,l.detune,c),await o(u,s.frequency,l.frequency,c),await o(u,s.gain,l.gain,c)),await i(s,u,l,c),l})(s,u,c)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>(n,r)=>{const o=e.get(n);if(void 0!==o)return o;const i=t.get(n);if(void 0!==i)return i;try{const o=r();return o instanceof Promise?(t.set(n,o),o.catch(()=>!1).then(r=>(t.delete(n),e.set(n,r),r))):(e.set(n,o),o)}catch{return e.set(n,!1),!1}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));const r={channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:6},o=(t,e,n,o,i)=>class extends t{constructor(t,a=r){const s=o(t),u={...r,...a};super(t,!1,n(s,u),i(s)?e():null)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(6);const o=(t,e,n)=>()=>{const o=new WeakMap;return{render(i,a,s){const u=o.get(a);return void 0!==u?Promise.resolve(u):(async(i,a,s)=>{let u=e(i);if(!Object(r.a)(u,a)){const e={channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,numberOfInputs:u.numberOfInputs};u=t(a,e)}return o.set(a,u),await n(i,a,u,s),u})(i,a,s)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));const r={channelCount:6,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:6},o=(t,e,n,o,i)=>class extends t{constructor(t,a=r){const s=o(t),u=(t=>({...t,channelCount:t.numberOfOutputs}))({...r,...a});super(t,!1,n(s,u),i(s)?e():null)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(6);const o=(t,e,n)=>()=>{const o=new WeakMap;return{render(i,a,s){const u=o.get(a);return void 0!==u?Promise.resolve(u):(async(i,a,s)=>{let u=e(i);if(!Object(r.a)(u,a)){const e={channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,numberOfOutputs:u.numberOfOutputs};u=t(a,e)}return o.set(a,u),await n(i,a,u,s),u})(i,a,s)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,n,r,o)=>t(n,e,r,o)},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(78);const o=t=>(e,n,o=0,i=0)=>{const a=e[o];if(void 0===a)throw t();return Object(r.a)(n)?a.connect(n,0,i):a.connect(n,0)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,n)=>{const r=t(e),o=e.createBuffer(1,2,e.sampleRate);return r.buffer=o,r.loop=!0,r.connect(n),r.start(),()=>{r.stop(),r.disconnect(n)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(5),o=n(48),i=n(59);const a={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",offset:1},s=(t,e,n,s,u,c,l)=>class extends t{constructor(t,o=a){const i=u(t),l={...a,...o},f=s(i,l),p=c(i),h=p?n():null;super(t,!1,f,h),this._constantSourceNodeRenderer=h,this._nativeConstantSourceNode=f,this._offset=e(this,p,f.offset,r.b,r.a),this._onended=null}get offset(){return this._offset}get onended(){return this._onended}set onended(t){const e="function"==typeof t?l(this,t):null;this._nativeConstantSourceNode.onended=e;const n=this._nativeConstantSourceNode.onended;this._onended=null!==n&&n===e?t:n}start(t=0){if(this._nativeConstantSourceNode.start(t),null!==this._constantSourceNodeRenderer)this._constantSourceNodeRenderer.start=t;else{Object(o.a)(this);const t=()=>{this._nativeConstantSourceNode.removeEventListener("ended",t),setTimeout(()=>Object(i.a)(this),1e3)};this._nativeConstantSourceNode.addEventListener("ended",t)}}stop(t=0){this._nativeConstantSourceNode.stop(t),null!==this._constantSourceNodeRenderer&&(this._constantSourceNodeRenderer.stop=t)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(6);const o=(t,e,n,o,i)=>()=>{const a=new WeakMap;let s=null,u=null;return{set start(t){s=t},set stop(t){u=t},render(c,l,f){const p=a.get(l);return void 0!==p?Promise.resolve(p):(async(c,l,f)=>{let p=n(c);const h=Object(r.a)(p,l);if(!h){const t={channelCount:p.channelCount,channelCountMode:p.channelCountMode,channelInterpretation:p.channelInterpretation,offset:p.offset.value};p=e(l,t),null!==s&&p.start(s),null!==u&&p.stop(u)}return a.set(l,p),h?await t(l,c.offset,p.offset,f):await o(l,c.offset,p.offset,f),await i(c,l,p,f),p})(c,l,f)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>(t[0]=e,t[0])},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));const r={buffer:null,channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",disableNormalization:!1},o=(t,e,n,o,i)=>class extends t{constructor(t,a=r){const s=o(t),u={...r,...a},c=n(s,u);super(t,!1,c,i(s)?e():null),this._isBufferNullified=!1,this._nativeConvolverNode=c}get buffer(){return this._isBufferNullified?null:this._nativeConvolverNode.buffer}set buffer(t){if(this._nativeConvolverNode.buffer=t,null===t&&null!==this._nativeConvolverNode.buffer){const t=this._nativeConvolverNode.context;this._nativeConvolverNode.buffer=t.createBuffer(1,1,t.sampleRate),this._isBufferNullified=!0}else this._isBufferNullified=!1}get normalize(){return this._nativeConvolverNode.normalize}set normalize(t){this._nativeConvolverNode.normalize=t}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(33),o=n(6);const i=(t,e,n)=>()=>{const i=new WeakMap;return{render(a,s,u){const c=i.get(s);return void 0!==c?Promise.resolve(c):(async(a,s,u)=>{let c=e(a);if(!Object(o.a)(c,s)){const e={buffer:c.buffer,channelCount:c.channelCount,channelCountMode:c.channelCountMode,channelInterpretation:c.channelInterpretation,disableNormalization:!c.normalize};c=t(s,e)}return i.set(s,c),Object(r.a)(c)?await n(a,s,c.inputs[0],u):await n(a,s,c,u),c})(a,s,u)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>(n,r,o)=>{if(null===e)throw new Error("Missing the native OfflineAudioContext constructor.");try{return new e(n,r,o)}catch(e){if("IndexSizeError"===e.name||"SyntaxError"===e.name)throw t();throw e}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=()=>{try{return new DOMException("","DataCloneError")}catch(t){return t.code=25,t.name="DataCloneError",t}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(61);const o=(t,e,n,o,i,a,s,u)=>(c,l)=>{const f=e.get(c);if(void 0===f)throw new Error("Missing the expected cycle count.");const p=a(c.context),h=u(p);if(f===l){if(e.delete(c),!h&&s(c)){const e=o(c),{outputs:a}=n(c);for(const n of a)if(Object(r.a)(n)){const r=o(n[0]);t(e,r,n[1],n[2])}else{const t=i(n[0]);e.connect(t,n[1])}}}else e.set(c,f-l)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));const r={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",delayTime:0,maxDelayTime:1},o=(t,e,n,o,i,a)=>class extends t{constructor(t,s=r){const u=i(t),c={...r,...s},l=o(u,c),f=a(u);super(t,!1,l,f?n(c.maxDelayTime):null),this._delayTime=e(this,f,l.delayTime,c.maxDelayTime,0)}get delayTime(){return this._delayTime}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(6);const o=(t,e,n,o,i)=>a=>{const s=new WeakMap;return{render(u,c,l){const f=s.get(c);return void 0!==f?Promise.resolve(f):(async(u,c,l)=>{let f=n(u);const p=Object(r.a)(f,c);if(!p){const t={channelCount:f.channelCount,channelCountMode:f.channelCountMode,channelInterpretation:f.channelInterpretation,delayTime:f.delayTime.value,maxDelayTime:a};f=e(c,t)}return s.set(c,f),p?await t(c,u.delayTime,f.delayTime,l):await o(c,u.delayTime,f.delayTime,l),await i(u,c,f,l),f})(u,c,l)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,n)=>{t(e).delete(n)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(78);const o=(t,e,n)=>{const r=e[n];if(void 0===r)throw t();return r},i=t=>(e,n,i,a=0)=>void 0===n?e.forEach(t=>t.disconnect()):"number"==typeof n?o(t,e,n).disconnect():Object(r.a)(n)?void 0===i?e.forEach(t=>t.disconnect(n)):void 0===a?o(t,e,i).disconnect(n,0):o(t,e,i).disconnect(n,0,a):void 0===i?e.forEach(t=>t.disconnect(n)):o(t,e,i).disconnect(n,0)},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));const r={attack:.003,channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",knee:30,ratio:12,release:.25,threshold:-24},o=(t,e,n,o,i,a,s)=>class extends t{constructor(t,i=r){const u=a(t),c={...r,...i},l=o(u,c),f=s(u);super(t,!1,l,f?n():null),this._attack=e(this,f,l.attack,1,0),this._knee=e(this,f,l.knee,40,0),this._nativeDynamicsCompressorNode=l,this._ratio=e(this,f,l.ratio,20,1),this._release=e(this,f,l.release,1,0),this._threshold=e(this,f,l.threshold,0,-100)}get attack(){return this._attack}get channelCount(){return this._nativeDynamicsCompressorNode.channelCount}set channelCount(t){const e=this._nativeDynamicsCompressorNode.channelCount;if(this._nativeDynamicsCompressorNode.channelCount=t,t>2)throw this._nativeDynamicsCompressorNode.channelCount=e,i()}get channelCountMode(){return this._nativeDynamicsCompressorNode.channelCountMode}set channelCountMode(t){const e=this._nativeDynamicsCompressorNode.channelCountMode;if(this._nativeDynamicsCompressorNode.channelCountMode=t,"max"===t)throw this._nativeDynamicsCompressorNode.channelCountMode=e,i()}get knee(){return this._knee}get ratio(){return this._ratio}get reduction(){return"number"==typeof this._nativeDynamicsCompressorNode.reduction.value?this._nativeDynamicsCompressorNode.reduction.value:this._nativeDynamicsCompressorNode.reduction}get release(){return this._release}get threshold(){return this._threshold}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(6);const o=(t,e,n,o,i)=>()=>{const a=new WeakMap;return{render(s,u,c){const l=a.get(u);return void 0!==l?Promise.resolve(l):(async(s,u,c)=>{let l=n(s);const f=Object(r.a)(l,u);if(!f){const t={attack:l.attack.value,channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,knee:l.knee.value,ratio:l.ratio.value,release:l.release.value,threshold:l.threshold.value};l=e(u,t)}return a.set(u,l),f?(await t(u,s.attack,l.attack,c),await t(u,s.knee,l.knee,c),await t(u,s.ratio,l.ratio,c),await t(u,s.release,l.release,c),await t(u,s.threshold,l.threshold,c)):(await o(u,s.attack,l.attack,c),await o(u,s.knee,l.knee,c),await o(u,s.ratio,l.ratio,c),await o(u,s.release,l.release,c),await o(u,s.threshold,l.threshold,c)),await i(s,u,l,c),l})(s,u,c)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=()=>{try{return new DOMException("","EncodingError")}catch(t){return t.code=0,t.name="EncodingError",t}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>new Promise((n,r)=>{if(null===t)return void r(new SyntaxError);const o=t.document.head;if(null===o)r(new SyntaxError);else{const i=t.document.createElement("script"),a=new Blob([e],{type:"application/javascript"}),s=URL.createObjectURL(a),u=t.onerror,c=()=>{t.onerror=u,URL.revokeObjectURL(s)};t.onerror=(e,n,o,i,a)=>n===s||n===t.location.href&&1===o&&1===i?(c(),r(a),!1):null!==u?u(e,n,o,i,a):void 0,i.onerror=()=>{c(),r(new SyntaxError)},i.onload=()=>{c(),n()},i.src=s,i.type="module",o.appendChild(i)}})},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>class{constructor(t){this._nativeEventTarget=t,this._listeners=new WeakMap}addEventListener(e,n,r){if(null!==n){let o=this._listeners.get(n);void 0===o&&(o=t(this,n),"function"==typeof n&&this._listeners.set(n,o)),this._nativeEventTarget.addEventListener(e,o,r)}}dispatchEvent(t){return this._nativeEventTarget.dispatchEvent(t)}removeEventListener(t,e,n){const r=null===e?void 0:this._listeners.get(e);this._nativeEventTarget.removeEventListener(t,void 0===r?null:r,n)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,n,r)=>{Object.defineProperties(t,{currentFrame:{configurable:!0,get:()=>Math.round(e*n)},currentTime:{configurable:!0,get:()=>e}});try{return r()}finally{null!==t&&(delete t.currentFrame,delete t.currentTime)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>async e=>{try{const t=await fetch(e);if(t.ok)return t.text()}catch{}throw t()}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(5);const o={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",gain:1},i=(t,e,n,i,a,s)=>class extends t{constructor(t,u=o){const c=a(t),l={...o,...u},f=i(c,l),p=s(c);super(t,!1,f,p?n():null),this._gain=e(this,p,f.gain,r.b,r.a)}get gain(){return this._gain}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(6);const o=(t,e,n,o,i)=>()=>{const a=new WeakMap;return{render(s,u,c){const l=a.get(u);return void 0!==l?Promise.resolve(l):(async(s,u,c)=>{let l=n(s);const f=Object(r.a)(l,u);if(!f){const t={channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,gain:l.gain.value};l=e(u,t)}return a.set(u,l),f?await t(u,s.gain,l.gain,c):await o(u,s.gain,l.gain,c),await i(s,u,l,c),l})(s,u,c)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>{const n=t(e);if(null===n.renderer)throw new Error("Missing the renderer of the given AudioNode in the audio graph.");return n.renderer}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>{const n=t(e);if(null===n.renderer)throw new Error("Missing the renderer of the given AudioParam in the audio graph.");return n.renderer}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(2);const o=(t,e,n)=>o=>{if("closed"===o.state&&null!==e&&"webkitAudioContext"!==e.name){if(!t(o)){const t=r.f.get(o);if(void 0!==t)return t;const n=new e;return r.f.set(o,n),n}{const t=r.f.get(o);if(void 0!==t)return t;if(null!==n){const t=new n(1,1,44100);return r.f.set(o,t),t}}}return null}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(14);const o=t=>e=>{const n=t.get(e);if(void 0===n)throw Object(r.a)();return n}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>{const n=t.get(e);if(void 0===n)throw new Error("The context has no set of AudioWorkletNodes.");return n}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(128),o=n(6);const i=(t,e,n,i,a,s)=>(u,c)=>{const l=new WeakMap;let f=null;const p=async(p,h,d)=>{let y=null,v=n(p);const m=Object(o.a)(v,h);if(void 0===h.createIIRFilter?y=t(h):m||(v=e(h,t=>t.createIIRFilter(c,u))),l.set(h,null===y?v:y),null!==y){if(null===f){if(null===i)throw new Error("Missing the native OfflineAudioContext constructor.");const t=new i(p.context.destination.channelCount,p.context.length,h.sampleRate);f=(async()=>(await a(p,t,t.destination,d),((t,e,n,o)=>{const i=n.length,a=o.length,s=Math.min(i,a);if(1!==n[0]){for(let t=0;ts=>(u,c)=>{const l=t.get(u);if(void 0===l){if(!s&&a(u)){const t=o(u),{outputs:a}=n(u);for(const n of a)if(Object(r.a)(n)){const r=o(n[0]);e(t,r,n[1],n[2])}else{const e=i(n[0]);t.disconnect(e,n[1])}}t.set(u,c)}else t.set(u,l+c)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>n=>{const r=t.get(n);return e(r)||e(n)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>n=>t.has(n)||e(n)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>n=>t.has(n)||e(n)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>n=>{const r=t.get(n);return e(r)||e(n)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>null!==t&&e instanceof t},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>null!==t&&"function"==typeof t.AudioNode&&e instanceof t.AudioNode},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>null!==t&&"function"==typeof t.AudioParam&&e instanceof t.AudioParam},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>n=>t(n)||e(n)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>null!==t&&e instanceof t},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>null!==t&&t.isSecureContext},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=async(t,e,n,r,o,i,a,s,u,c,l,f,p,h)=>{if(t(e,e)&&t(n,n)&&t(o,o)&&t(i,i)&&t(s,s)&&t(u,u)&&t(c,c)&&t(l,l)&&t(f,f)){return(await Promise.all([t(r,r),t(a,a),t(p,p),t(h,h)])).every(t=>t)}return!1}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n,r)=>class extends t{constructor(t,o){const i=n(t),a=e(i,o);if(r(i))throw TypeError();super(t,!0,a,null),this._mediaElement=o.mediaElement,this._nativeMediaElementAudioSourceNode=a}get mediaElement(){return void 0===this._nativeMediaElementAudioSourceNode.mediaElement?this._mediaElement:this._nativeMediaElementAudioSourceNode.mediaElement}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));const r={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers"},o=(t,e,n,o)=>class extends t{constructor(t,i=r){const a=n(t);if(o(a))throw new TypeError;const s={...r,...i},u=e(a,s);super(t,!1,u,null),this._nativeMediaStreamAudioDestinationNode=u}get stream(){return this._nativeMediaStreamAudioDestinationNode.stream}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n,r)=>class extends t{constructor(t,o){const i=n(t),a=e(i,o);if(r(i))throw new TypeError;super(t,!0,a,null),this._nativeMediaStreamAudioSourceNode=a}get mediaStream(){return this._nativeMediaStreamAudioSourceNode.mediaStream}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n)=>class extends t{constructor(t,r){const o=n(t);super(t,!0,e(o,r),null)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(125);const o=(t,e,n,o,i)=>class extends o{constructor(t={}){if(null===i)throw new Error("Missing the native AudioContext constructor.");const o=new i(t);if(null===o)throw n();if(!Object(r.a)(t.latencyHint))throw new TypeError(`The provided value '${t.latencyHint}' is not a valid enum value of type AudioContextLatencyCategory.`);if(void 0!==t.sampleRate&&o.sampleRate!==t.sampleRate)throw e();super(o,2);const{latencyHint:a}=t,{sampleRate:s}=o;if(this._baseLatency="number"==typeof o.baseLatency?o.baseLatency:"balanced"===a?512/s:"interactive"===a||void 0===a?256/s:"playback"===a?1024/s:128*Math.max(2,Math.min(128,Math.round(a*s/128)))/s,this._nativeAudioContext=o,this._state=null,"running"===o.state){this._state="suspended";const t=()=>{"suspended"===this._state&&(this._state=null),o.removeEventListener("statechange",t)};o.addEventListener("statechange",t)}}get baseLatency(){return this._baseLatency}get state(){return null!==this._state?this._state:this._nativeAudioContext.state}close(){return"closed"===this.state?this._nativeAudioContext.close().then(()=>{throw t()}):("suspended"===this._state&&(this._state=null),this._nativeAudioContext.close())}resume(){return"suspended"===this._state?new Promise((t,e)=>{const n=()=>{this._nativeAudioContext.removeEventListener("statechange",n),"running"===this._nativeAudioContext.state?t():this.resume().then(t,e)};this._nativeAudioContext.addEventListener("statechange",n)}):this._nativeAudioContext.resume().catch(e=>{if(void 0===e||15===e.code)throw t();throw e})}suspend(){return this._nativeAudioContext.suspend().catch(e=>{if(void 0===e)throw t();throw e})}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(2);const o=(t,e,n,o,i,a)=>class extends n{constructor(n,a){super(n),this._nativeContext=n,r.g.set(this,n);const s=n.sampleRate;Object.defineProperty(n,"sampleRate",{get:()=>s}),o(n)&&i.set(n,new Set),this._destination=new t(this,a),this._listener=e(this,n),this._onstatechange=null}get currentTime(){return this._nativeContext.currentTime}get destination(){return this._destination}get listener(){return this._listener}get onstatechange(){return this._onstatechange}set onstatechange(t){const e="function"==typeof t?a(this,t):null;this._nativeContext.onstatechange=e;const n=this._nativeContext.onstatechange;this._onstatechange=null!==n&&n===e?t:n}get sampleRate(){return this._nativeContext.sampleRate}get state(){return this._nativeContext.state}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(38);const o={numberOfChannels:1},i=(t,e,n,i,a)=>class extends i{constructor(e){const{length:i,numberOfChannels:a,sampleRate:s}={...o,...e},u=n(a,i,s);t(r.a,()=>Object(r.a)(u))||u.addEventListener("statechange",(()=>{let t=0;const e=n=>{"running"===this._state&&(t>0?(u.removeEventListener("statechange",e),n.stopImmediatePropagation(),this._waitForThePromiseToSettle(n)):t+=1)};return e})()),super(u,a),this._length=i,this._nativeOfflineAudioContext=u,this._state=null}get length(){return void 0===this._nativeOfflineAudioContext.length?this._length:this._nativeOfflineAudioContext.length}get state(){return null===this._state?this._nativeOfflineAudioContext.state:this._state}startRendering(){return"running"===this._state?Promise.reject(e()):(this._state="running",a(this.destination,this._nativeOfflineAudioContext).then(t=>(this._state=null,t)).catch(t=>{throw this._state=null,t}))}_waitForThePromiseToSettle(t){null===this._state?this._nativeOfflineAudioContext.dispatchEvent(t):setTimeout(()=>this._waitForThePromiseToSettle(t))}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>(n,r,o)=>{const i=new Set;var a,s;return n.connect=(a=n.connect,(o,s=0,u=0)=>{const c=0===i.size;if(e(o))return a.call(n,o,s,u),t(i,[o,s,u],t=>t[0]===o&&t[1]===s&&t[2]===u,!0),c&&r(),o;a.call(n,o,s),t(i,[o,s],t=>t[0]===o&&t[1]===s,!0),c&&r()}),n.disconnect=(s=n.disconnect,(t,r,a)=>{const u=i.size>0;if(void 0===t)s.apply(n),i.clear();else if("number"==typeof t){s.call(n,t);for(const e of i)e[1]===t&&i.delete(e)}else{e(t)?s.call(n,t,r,a):s.call(n,t,r);for(const e of i)e[0]!==t||void 0!==r&&e[1]!==r||void 0!==a&&e[2]!==a||i.delete(e)}const c=0===i.size;u&&c&&o()}),n}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>null===t?null:t.hasOwnProperty("AudioBuffer")?t.AudioBuffer:null},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>null===t?null:t.hasOwnProperty("AudioContext")?t.AudioContext:t.hasOwnProperty("webkitAudioContext")?t.webkitAudioContext:null},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>(n,r,o)=>{const i=n.destination;if(i.channelCount!==r)try{i.channelCount=r}catch{}o&&"explicit"!==i.channelCountMode&&(i.channelCountMode="explicit"),0===i.maxChannelCount&&Object.defineProperty(i,"maxChannelCount",{value:r});const a=t(n,{channelCount:r,channelCountMode:i.channelCountMode,channelInterpretation:i.channelInterpretation,gain:1});return e(a,"channelCount",t=>()=>t.call(a),t=>e=>{t.call(a,e);try{i.channelCount=e}catch(t){if(e>i.maxChannelCount)throw t}}),e(a,"channelCountMode",t=>()=>t.call(a),t=>e=>{t.call(a,e),i.channelCountMode=e}),e(a,"channelInterpretation",t=>()=>t.call(a),t=>e=>{t.call(a,e),i.channelInterpretation=e}),Object.defineProperty(a,"maxChannelCount",{get:()=>i.maxChannelCount}),a.connect(i),a}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,n)=>{const r=t(e);return n(null!==r?r:e)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>null===t?null:t.hasOwnProperty("AudioWorkletNode")?t.AudioWorkletNode:null},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(8),o=n(7),i=n(4);const a=t=>(e,n)=>{const a=t(e,t=>t.createBiquadFilter());return Object(i.a)(a,n),Object(r.a)(a,n,"Q"),Object(r.a)(a,n,"detune"),Object(r.a)(a,n,"frequency"),Object(r.a)(a,n,"gain"),Object(o.a)(a,n,"type"),a}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(4);const o=(t,e)=>(n,o)=>{const i=t(n,t=>t.createChannelMerger(o.numberOfInputs));return 1!==i.channelCount&&"explicit"!==i.channelCountMode&&e(n,i),Object(r.a)(i,o),i}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(8),o=n(4),i=n(91),a=n(92);const s=(t,e,n,s,u,c)=>(l,f)=>{if(void 0===l.createConstantSource)return s(l,f);const p=n(l,t=>t.createConstantSource());return Object(o.a)(p,f),Object(r.a)(p,f,"offset"),e(u,()=>u(l))||Object(i.a)(p),e(c,()=>c(l))||Object(a.a)(p),t(l,p),p}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(26);const o=(t,e,n,o)=>(i,{offset:a,...s})=>{const u=i.createBuffer(1,2,i.sampleRate),c=e(i),l=n(i,{...s,gain:a}),f=u.getChannelData(0);f[0]=1,f[1]=1,c.buffer=u,c.loop=!0;const p={get bufferSize(){},get channelCount(){return l.channelCount},set channelCount(t){l.channelCount=t},get channelCountMode(){return l.channelCountMode},set channelCountMode(t){l.channelCountMode=t},get channelInterpretation(){return l.channelInterpretation},set channelInterpretation(t){l.channelInterpretation=t},get context(){return l.context},get inputs(){return[]},get numberOfInputs(){return c.numberOfInputs},get numberOfOutputs(){return l.numberOfOutputs},get offset(){return l.gain},get onended(){return c.onended},set onended(t){c.onended=t},addEventListener:(...t)=>c.addEventListener(t[0],t[1],t[2]),dispatchEvent:(...t)=>c.dispatchEvent(t[0]),removeEventListener:(...t)=>c.removeEventListener(t[0],t[1],t[2]),start(t=0){c.start.call(c,t)},stop(t=0){c.stop.call(c,t)}};return t(i,c),o(Object(r.a)(p,l),()=>c.connect(l),()=>c.disconnect(l))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(7),o=n(4);const i=(t,e,n,i)=>(a,s)=>{const u=t(a,t=>t.createConvolver());try{u.channelCount=1}catch(t){return e(a,s)}if(Object(o.a)(u,s),s.disableNormalization===u.normalize&&(u.normalize=!s.disableNormalization),Object(r.a)(u,s,"buffer"),s.channelCount>2)throw n();if(i(u,"channelCount",t=>()=>t.call(u),t=>e=>{if(e>2)throw n();return t.call(u,e)}),"max"===s.channelCountMode)throw n();return i(u,"channelCountMode",t=>()=>t.call(u),t=>e=>{if("max"===e)throw n();return t.call(u,e)}),u}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(4),o=n(26);const i=(t,e,n)=>(i,{buffer:a,channelCount:s,channelCountMode:u,channelInterpretation:c,disableNormalization:l})=>{const f=t(i,t=>t.createConvolver());Object(r.a)(f,{channelCount:Math.max(s,2),channelCountMode:"max"===u?u:"clamped-max",channelInterpretation:c});const p=e(i,{channelCount:s,channelCountMode:u,channelInterpretation:c,gain:1}),h={get buffer(){return f.buffer},set buffer(t){f.buffer=t},get bufferSize(){},get channelCount(){return p.channelCount},set channelCount(t){t>2&&(f.channelCount=t),p.channelCount=t},get channelCountMode(){return p.channelCountMode},set channelCountMode(t){"max"===t&&(f.channelCountMode=t),p.channelCountMode=t},get channelInterpretation(){return f.channelInterpretation},set channelInterpretation(t){f.channelInterpretation=t,p.channelInterpretation=t},get context(){return f.context},get inputs(){return[f]},get numberOfInputs(){return f.numberOfInputs},get numberOfOutputs(){return f.numberOfOutputs},get normalize(){return f.normalize},set normalize(t){f.normalize=t},addEventListener:(...t)=>f.addEventListener(t[0],t[1],t[2]),dispatchEvent:(...t)=>f.dispatchEvent(t[0]),removeEventListener:(...t)=>f.removeEventListener(t[0],t[1],t[2])};l===h.normalize&&(h.normalize=!l),a!==h.buffer&&(h.buffer=a);return n(Object(o.a)(h,p),()=>f.connect(p),()=>f.disconnect(p))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(8),o=n(4);const i=t=>(e,n)=>{const i=t(e,t=>t.createDelay(n.maxDelayTime));return Object(o.a)(i,n),Object(r.a)(i,n,"delayTime"),i}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(8),o=n(4);const i=(t,e)=>(n,i)=>{const a=t(n,t=>t.createDynamicsCompressor());if(Object(o.a)(a,i),i.channelCount>2)throw e();if("max"===i.channelCountMode)throw e();return Object(r.a)(a,i,"attack"),Object(r.a)(a,i,"knee"),Object(r.a)(a,i,"ratio"),Object(r.a)(a,i,"release"),Object(r.a)(a,i,"threshold"),a}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(8),o=n(4);const i=t=>(e,n)=>{const i=t(e,t=>t.createGain());return Object(o.a)(i,n),Object(r.a)(i,n,"gain"),i}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(4);const o=(t,e)=>(n,o,i)=>{if(void 0===n.createIIRFilter)return e(n,o,i);const a=t(n,t=>t.createIIRFilter(i.feedforward,i.feedback));return Object(r.a)(a,i),a}},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(129),o=n(128),i=n(26);function a(t,e){const n=e[0]*e[0]+e[1]*e[1];return[(t[0]*e[0]+t[1]*e[1])/n,(t[1]*e[0]-t[0]*e[1])/n]}function s(t,e){let n=[0,0];for(let i=t.length-1;i>=0;i-=1)o=e,n=[(r=n)[0]*o[0]-r[1]*o[1],r[0]*o[1]+r[1]*o[0]],n[0]+=t[i];var r,o;return n}const u=(t,e,n,u)=>(c,l,{channelCount:f,channelCountMode:p,channelInterpretation:h,feedback:d,feedforward:y})=>{const v=Object(r.a)(l,c.sampleRate),m=d.length,g=y.length,b=Math.min(m,g);if(0===d.length||d.length>20)throw u();if(0===d[0])throw e();if(0===y.length||y.length>20)throw u();if(0===y[0])throw e();if(1!==d[0]){for(let t=0;t{const e=t.inputBuffer,n=t.outputBuffer,r=e.numberOfChannels;for(let t=0;t_.addEventListener(t[0],t[1],t[2]),dispatchEvent:(...t)=>_.dispatchEvent(t[0]),getFrequencyResponse(e,n,r){if(e.length!==n.length||n.length!==r.length)throw t();const o=e.length;for(let t=0;t_.removeEventListener(t[0],t[1],t[2])};return Object(i.a)(k,_)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,n)=>t(e,t=>t.createMediaElementSource(n.mediaElement))},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(4);const o=(t,e)=>(n,o)=>{if(void 0===n.createMediaStreamDestination)throw e();const i=t(n,t=>t.createMediaStreamDestination());return Object(r.a)(i,o),1===i.numberOfOutputs&&Object.defineProperty(i,"numberOfOutputs",{get:()=>0}),i}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,{mediaStream:n})=>{const r=n.getAudioTracks(),o=t(e,t=>{const e=r.sort((t,e)=>t.ide.id?1:0).slice(0,1);return t.createMediaStreamSource(new MediaStream(e))});return Object.defineProperty(o,"mediaStream",{value:n}),o}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n)=>(r,{mediaStreamTrack:o})=>"function"==typeof r.createMediaStreamTrackSource?e(r,t=>t.createMediaStreamTrackSource(o)):e(r,e=>{const r=new MediaStream([o]),i=e.createMediaStreamSource(r);if("audio"!==o.kind)throw t();if(n(e))throw new TypeError;return i})},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>null===t?null:t.hasOwnProperty("OfflineAudioContext")?t.OfflineAudioContext:t.hasOwnProperty("webkitOfflineAudioContext")?t.webkitOfflineAudioContext:null},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(8),o=n(7),i=n(4),a=n(91),s=n(92);const u=(t,e,n,u,c,l,f)=>(p,h)=>{const d=n(p,t=>t.createOscillator());return Object(i.a)(d,h),Object(r.a)(d,h,"detune"),Object(r.a)(d,h,"frequency"),void 0!==h.periodicWave?d.setPeriodicWave(h.periodicWave):Object(o.a)(d,h,"type"),e(u,()=>u(p))||Object(a.a)(d),e(c,()=>c(p))||f(d,p),e(l,()=>l(p))||Object(s.a)(d),t(p,d),d}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(8),o=n(7),i=n(4);const a=(t,e)=>(n,a)=>{const s=t(n,t=>t.createPanner());return void 0===s.orientationX?e(n,a):(Object(i.a)(s,a),Object(r.a)(s,a,"orientationX"),Object(r.a)(s,a,"orientationY"),Object(r.a)(s,a,"orientationZ"),Object(r.a)(s,a,"positionX"),Object(r.a)(s,a,"positionY"),Object(r.a)(s,a,"positionZ"),Object(o.a)(s,a,"coneInnerAngle"),Object(o.a)(s,a,"coneOuterAngle"),Object(o.a)(s,a,"coneOuterGain"),Object(o.a)(s,a,"distanceModel"),Object(o.a)(s,a,"maxDistance"),Object(o.a)(s,a,"panningModel"),Object(o.a)(s,a,"refDistance"),Object(o.a)(s,a,"rolloffFactor"),s)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(4),o=n(26);const i=(t,e,n,i,a,s,u,c,l,f)=>(p,{coneInnerAngle:h,coneOuterAngle:d,coneOuterGain:y,distanceModel:v,maxDistance:m,orientationX:g,orientationY:b,orientationZ:_,panningModel:w,positionX:x,positionY:O,positionZ:S,refDistance:k,rolloffFactor:T,...C})=>{const E=n(p,t=>t.createPanner());if(C.channelCount>2)throw c();if("max"===C.channelCountMode)throw c();Object(r.a)(E,C);const A={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},j=i(p,{...A,channelInterpretation:"speakers",numberOfInputs:6}),P=a(p,{...C,gain:1}),D=a(p,{...A,gain:1}),M=a(p,{...A,gain:0}),I=a(p,{...A,gain:0}),R=a(p,{...A,gain:0}),N=a(p,{...A,gain:0}),F=a(p,{...A,gain:0}),q=s(p,256,6,1),V=u(p,{...A,curve:new Float32Array([1,1]),oversample:"none"});let L=[g,b,_],z=[x,O,S];q.onaudioprocess=({inputBuffer:t})=>{const e=[t.getChannelData(0)[0],t.getChannelData(1)[0],t.getChannelData(2)[0]];e.some((t,e)=>t!==L[e])&&(E.setOrientation(...e),L=e);const n=[t.getChannelData(3)[0],t.getChannelData(4)[0],t.getChannelData(5)[0]];n.some((t,e)=>t!==z[e])&&(E.setPosition(...n),z=n)},Object.defineProperty(M.gain,"defaultValue",{get:()=>0}),Object.defineProperty(I.gain,"defaultValue",{get:()=>0}),Object.defineProperty(R.gain,"defaultValue",{get:()=>0}),Object.defineProperty(N.gain,"defaultValue",{get:()=>0}),Object.defineProperty(F.gain,"defaultValue",{get:()=>0});const B={get bufferSize(){},get channelCount(){return E.channelCount},set channelCount(t){if(t>2)throw c();P.channelCount=t,E.channelCount=t},get channelCountMode(){return E.channelCountMode},set channelCountMode(t){if("max"===t)throw c();P.channelCountMode=t,E.channelCountMode=t},get channelInterpretation(){return E.channelInterpretation},set channelInterpretation(t){P.channelInterpretation=t,E.channelInterpretation=t},get coneInnerAngle(){return E.coneInnerAngle},set coneInnerAngle(t){E.coneInnerAngle=t},get coneOuterAngle(){return E.coneOuterAngle},set coneOuterAngle(t){E.coneOuterAngle=t},get coneOuterGain(){return E.coneOuterGain},set coneOuterGain(t){if(t<0||t>1)throw e();E.coneOuterGain=t},get context(){return E.context},get distanceModel(){return E.distanceModel},set distanceModel(t){E.distanceModel=t},get inputs(){return[P]},get maxDistance(){return E.maxDistance},set maxDistance(t){if(t<0)throw new RangeError;E.maxDistance=t},get numberOfInputs(){return E.numberOfInputs},get numberOfOutputs(){return E.numberOfOutputs},get orientationX(){return D.gain},get orientationY(){return M.gain},get orientationZ(){return I.gain},get panningModel(){return E.panningModel},set panningModel(t){if(E.panningModel=t,E.panningModel!==t&&"HRTF"===t)throw c()},get positionX(){return R.gain},get positionY(){return N.gain},get positionZ(){return F.gain},get refDistance(){return E.refDistance},set refDistance(t){if(t<0)throw new RangeError;E.refDistance=t},get rolloffFactor(){return E.rolloffFactor},set rolloffFactor(t){if(t<0)throw new RangeError;E.rolloffFactor=t},addEventListener:(...t)=>P.addEventListener(t[0],t[1],t[2]),dispatchEvent:(...t)=>P.dispatchEvent(t[0]),removeEventListener:(...t)=>P.removeEventListener(t[0],t[1],t[2])};h!==B.coneInnerAngle&&(B.coneInnerAngle=h),d!==B.coneOuterAngle&&(B.coneOuterAngle=d),y!==B.coneOuterGain&&(B.coneOuterGain=y),v!==B.distanceModel&&(B.distanceModel=v),m!==B.maxDistance&&(B.maxDistance=m),g!==B.orientationX.value&&(B.orientationX.value=g),b!==B.orientationY.value&&(B.orientationY.value=b),_!==B.orientationZ.value&&(B.orientationZ.value=_),w!==B.panningModel&&(B.panningModel=w),x!==B.positionX.value&&(B.positionX.value=x),O!==B.positionY.value&&(B.positionY.value=O),S!==B.positionZ.value&&(B.positionZ.value=S),k!==B.refDistance&&(B.refDistance=k),T!==B.rolloffFactor&&(B.rolloffFactor=T),1===L[0]&&0===L[1]&&0===L[2]||E.setOrientation(...L),0===z[0]&&0===z[1]&&0===z[2]||E.setPosition(...z);return f(Object(o.a)(B,E),()=>{P.connect(E),t(P,V,0,0),V.connect(D).connect(j,0,0),V.connect(M).connect(j,0,1),V.connect(I).connect(j,0,2),V.connect(R).connect(j,0,3),V.connect(N).connect(j,0,4),V.connect(F).connect(j,0,5),j.connect(q).connect(p.destination)},()=>{P.disconnect(E),l(P,V,0,0),V.disconnect(D),D.disconnect(j),V.disconnect(M),M.disconnect(j),V.disconnect(I),I.disconnect(j),V.disconnect(R),R.disconnect(j),V.disconnect(N),N.disconnect(j),V.disconnect(F),F.disconnect(j),j.disconnect(q),q.disconnect(p.destination)})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,{disableNormalization:n,imag:r,real:o})=>{const i=t(e),a=new Float32Array(r),s=new Float32Array(o);return null!==i?i.createPeriodicWave(s,a,{disableNormalization:n}):e.createPeriodicWave(s,a,{disableNormalization:n})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,n,r,o)=>t(e,t=>t.createScriptProcessor(n,r,o))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(8),o=n(4);const i=(t,e,n)=>(i,a)=>t(i,t=>{const s=a.channelCountMode;if("clamped-max"===s)throw n();if(void 0===i.createStereoPanner)return e(i,a);const u=t.createStereoPanner();return Object(o.a)(u,a),Object(r.a)(u,a,"pan"),Object.defineProperty(u,"channelCountMode",{get:()=>s,set:t=>{if(t!==s)throw n()}}),u})},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(26);const o=(t,e,n,o,i,a)=>{const s=new Float32Array([1,1]),u=Math.PI/2,c={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},l={...c,oversample:"none"},f=(t,r,a,f,p)=>{if(1===r)return((t,e,r,i)=>{const a=new Float32Array(16385),f=new Float32Array(16385);for(let t=0;t<16385;t+=1){const e=t/16384*u;a[t]=Math.cos(e),f[t]=Math.sin(e)}const p=n(t,{...c,gain:0}),h=o(t,{...l,curve:a}),d=o(t,{...l,curve:s}),y=n(t,{...c,gain:0}),v=o(t,{...l,curve:f});return{connectGraph(){e.connect(p),e.connect(d.inputs[0]),e.connect(y),d.connect(r),r.connect(h.inputs[0]),r.connect(v.inputs[0]),h.connect(p.gain),v.connect(y.gain),p.connect(i,0,0),y.connect(i,0,1)},disconnectGraph(){e.disconnect(p),e.disconnect(d.inputs[0]),e.disconnect(y),d.disconnect(r),r.disconnect(h.inputs[0]),r.disconnect(v.inputs[0]),h.disconnect(p.gain),v.disconnect(y.gain),p.disconnect(i,0,0),y.disconnect(i,0,1)}}})(t,a,f,p);if(2===r)return((t,r,i,a)=>{const f=new Float32Array(16385),p=new Float32Array(16385),h=new Float32Array(16385),d=new Float32Array(16385),y=Math.floor(8192.5);for(let t=0;t<16385;t+=1)if(t>y){const e=(t-y)/(16384-y)*u;f[t]=Math.cos(e),p[t]=Math.sin(e),h[t]=0,d[t]=1}else{const e=t/(16384-y)*u;f[t]=1,p[t]=0,h[t]=Math.cos(e),d[t]=Math.sin(e)}const v=e(t,{channelCount:2,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:2}),m=n(t,{...c,gain:0}),g=o(t,{...l,curve:f}),b=n(t,{...c,gain:0}),_=o(t,{...l,curve:p}),w=o(t,{...l,curve:s}),x=n(t,{...c,gain:0}),O=o(t,{...l,curve:h}),S=n(t,{...c,gain:0}),k=o(t,{...l,curve:d});return{connectGraph(){r.connect(v),r.connect(w.inputs[0]),v.connect(m,1),v.connect(b,1),v.connect(x,1),v.connect(S,1),w.connect(i),i.connect(g.inputs[0]),i.connect(_.inputs[0]),i.connect(O.inputs[0]),i.connect(k.inputs[0]),g.connect(m.gain),_.connect(b.gain),O.connect(x.gain),k.connect(S.gain),m.connect(a,0,0),x.connect(a,0,0),b.connect(a,0,1),S.connect(a,0,1)},disconnectGraph(){r.disconnect(v),r.disconnect(w.inputs[0]),v.disconnect(m,1),v.disconnect(b,1),v.disconnect(x,1),v.disconnect(S,1),w.disconnect(i),i.disconnect(g.inputs[0]),i.disconnect(_.inputs[0]),i.disconnect(O.inputs[0]),i.disconnect(k.inputs[0]),g.disconnect(m.gain),_.disconnect(b.gain),O.disconnect(x.gain),k.disconnect(S.gain),m.disconnect(a,0,0),x.disconnect(a,0,0),b.disconnect(a,0,1),S.disconnect(a,0,1)}}})(t,a,f,p);throw i()};return(e,{channelCount:o,channelCountMode:s,pan:u,...c})=>{if("max"===s)throw i();const l=t(e,{...c,channelCount:1,channelCountMode:s,numberOfInputs:2}),p=n(e,{...c,channelCount:o,channelCountMode:s,gain:1}),h=n(e,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:u});let{connectGraph:d,disconnectGraph:y}=f(e,o,p,h,l);Object.defineProperty(h.gain,"defaultValue",{get:()=>0});const v={get bufferSize(){},get channelCount(){return p.channelCount},set channelCount(t){p.channelCount!==t&&(m&&y(),({connectGraph:d,disconnectGraph:y}=f(e,t,p,h,l)),m&&d()),p.channelCount=t},get channelCountMode(){return p.channelCountMode},set channelCountMode(t){if("clamped-max"===t||"max"===t)throw i();p.channelCountMode=t},get channelInterpretation(){return p.channelInterpretation},set channelInterpretation(t){p.channelInterpretation=t},get context(){return p.context},get inputs(){return[p]},get numberOfInputs(){return p.numberOfInputs},get numberOfOutputs(){return p.numberOfOutputs},get pan(){return h.gain},addEventListener:(...t)=>p.addEventListener(t[0],t[1],t[2]),dispatchEvent:(...t)=>p.dispatchEvent(t[0]),removeEventListener:(...t)=>p.removeEventListener(t[0],t[1],t[2])};let m=!1;return a(Object(r.a)(v,l),()=>{d(),m=!0},()=>{y(),m=!1})}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(7),o=n(4);const i=(t,e,n,i,a,s,u)=>(c,l)=>{const f=n(c,t=>t.createWaveShaper());try{return f.curve=new Float32Array([1]),i(c,l)}catch{}Object(o.a)(f,l);const p=l.curve;if(null!==p&&p.length<2)throw e();Object(r.a)(f,l,"curve"),Object(r.a)(f,l,"oversample");let h=null,d=!1;u(f,"curve",t=>()=>t.call(f),e=>n=>(e.call(f,n),d&&(a(n)&&null===h?h=t(c,f):a(n)||null===h||(h(),h=null)),n));return s(f,()=>{d=!0,a(f.curve)&&(h=t(c,f))},()=>{d=!1,null!==h&&(h(),h=null)})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(4),o=n(26);const i=(t,e,n,i,a,s)=>(u,{curve:c,oversample:l,...f})=>{const p=n(u,t=>t.createWaveShaper()),h=n(u,t=>t.createWaveShaper());Object(r.a)(p,f),Object(r.a)(h,f);const d=i(u,{...f,gain:1}),y=i(u,{...f,gain:-1}),v=i(u,{...f,gain:1}),m=i(u,{...f,gain:-1});let g=null,b=!1,_=null;const w={get bufferSize(){},get channelCount(){return p.channelCount},set channelCount(t){d.channelCount=t,y.channelCount=t,p.channelCount=t,v.channelCount=t,h.channelCount=t,m.channelCount=t},get channelCountMode(){return p.channelCountMode},set channelCountMode(t){d.channelCountMode=t,y.channelCountMode=t,p.channelCountMode=t,v.channelCountMode=t,h.channelCountMode=t,m.channelCountMode=t},get channelInterpretation(){return p.channelInterpretation},set channelInterpretation(t){d.channelInterpretation=t,y.channelInterpretation=t,p.channelInterpretation=t,v.channelInterpretation=t,h.channelInterpretation=t,m.channelInterpretation=t},get context(){return p.context},get curve(){return _},set curve(n){if(null!==c&&c.length<2)throw e();if(null===n)p.curve=n,h.curve=n;else{const t=n.length,e=new Float32Array(t+2-t%2),r=new Float32Array(t+2-t%2);e[0]=n[0],r[0]=-n[t-1];const o=Math.ceil((t+1)/2),i=(t+1)/2-1;for(let a=1;ad.addEventListener(t[0],t[1],t[2]),dispatchEvent:(...t)=>d.dispatchEvent(t[0]),removeEventListener:(...t)=>d.removeEventListener(t[0],t[1],t[2])};c!==w.curve&&(w.curve=c),l!==w.oversample&&(w.oversample=l);return s(Object(o.a)(w,v),()=>{d.connect(p).connect(v),d.connect(y).connect(h).connect(m).connect(v),b=!0,a(_)&&(g=t(u,d))},()=>{d.disconnect(p),p.disconnect(v),d.disconnect(y),y.disconnect(h),h.disconnect(m),m.disconnect(v),b=!1,null!==g&&(g(),g=null)})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(38);const o={numberOfChannels:1},i=(t,e,n,i,a)=>class extends t{constructor(t,n,a){let s;if("number"==typeof t&&void 0!==n&&void 0!==a)s={length:n,numberOfChannels:t,sampleRate:a};else{if("object"!=typeof t)throw new Error("The given parameters are not valid.");s=t}const{length:u,numberOfChannels:c,sampleRate:l}={...o,...s},f=i(c,u,l);e(r.a,()=>Object(r.a)(f))||f.addEventListener("statechange",(()=>{let t=0;const e=n=>{"running"===this._state&&(t>0?(f.removeEventListener("statechange",e),n.stopImmediatePropagation(),this._waitForThePromiseToSettle(n)):t+=1)};return e})()),super(f,c),this._length=u,this._nativeOfflineAudioContext=f,this._state=null}get length(){return void 0===this._nativeOfflineAudioContext.length?this._length:this._nativeOfflineAudioContext.length}get state(){return null===this._state?this._nativeOfflineAudioContext.state:this._state}startRendering(){return"running"===this._state?Promise.reject(n()):(this._state="running",a(this.destination,this._nativeOfflineAudioContext).then(t=>(this._state=null,t)).catch(t=>{throw this._state=null,t}))}_waitForThePromiseToSettle(t){null===this._state?this._nativeOfflineAudioContext.dispatchEvent(t):setTimeout(()=>this._waitForThePromiseToSettle(t))}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(48),o=n(59);const i={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",detune:0,frequency:440,type:"sine"},a=(t,e,n,a,s,u,c,l)=>class extends t{constructor(t,n=i){const r=u(t),o={...i,...n},l=a(r,o),f=c(r),p=f?s():null,h=t.sampleRate/2;super(t,!1,l,p),this._detune=e(this,f,l.detune,153600,-153600),this._frequency=e(this,f,l.frequency,h,-h),this._nativeOscillatorNode=l,this._onended=null,this._oscillatorNodeRenderer=p,null!==this._oscillatorNodeRenderer&&void 0!==o.periodicWave&&(this._oscillatorNodeRenderer.periodicWave=o.periodicWave)}get detune(){return this._detune}get frequency(){return this._frequency}get onended(){return this._onended}set onended(t){const e="function"==typeof t?l(this,t):null;this._nativeOscillatorNode.onended=e;const n=this._nativeOscillatorNode.onended;this._onended=null!==n&&n===e?t:n}get type(){return this._nativeOscillatorNode.type}set type(t){if(this._nativeOscillatorNode.type=t,"custom"===t)throw n();null!==this._oscillatorNodeRenderer&&(this._oscillatorNodeRenderer.periodicWave=null)}setPeriodicWave(t){this._nativeOscillatorNode.setPeriodicWave(t),null!==this._oscillatorNodeRenderer&&(this._oscillatorNodeRenderer.periodicWave=t)}start(t=0){if(this._nativeOscillatorNode.start(t),null!==this._oscillatorNodeRenderer)this._oscillatorNodeRenderer.start=t;else{Object(r.a)(this);const t=()=>{this._nativeOscillatorNode.removeEventListener("ended",t),setTimeout(()=>Object(o.a)(this),1e3)};this._nativeOscillatorNode.addEventListener("ended",t)}}stop(t=0){this._nativeOscillatorNode.stop(t),null!==this._oscillatorNodeRenderer&&(this._oscillatorNodeRenderer.stop=t)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(6);const o=(t,e,n,o,i)=>()=>{const a=new WeakMap;let s=null,u=null,c=null;return{set periodicWave(t){s=t},set start(t){u=t},set stop(t){c=t},render(l,f,p){const h=a.get(f);return void 0!==h?Promise.resolve(h):(async(l,f,p)=>{let h=n(l);const d=Object(r.a)(h,f);if(!d){const t={channelCount:h.channelCount,channelCountMode:h.channelCountMode,channelInterpretation:h.channelInterpretation,detune:h.detune.value,frequency:h.frequency.value,periodicWave:null===s?void 0:s,type:h.type};h=e(f,t),null!==u&&h.start(u),null!==c&&h.stop(c)}return a.set(f,h),d?(await t(f,l.detune,h.detune,p),await t(f,l.frequency,h.frequency,p)):(await o(f,l.detune,h.detune,p),await o(f,l.frequency,h.frequency,p)),await i(l,f,h,p),h})(l,f,p)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(5);const o={channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",coneInnerAngle:360,coneOuterAngle:360,coneOuterGain:0,distanceModel:"inverse",maxDistance:1e4,orientationX:1,orientationY:0,orientationZ:0,panningModel:"equalpower",positionX:0,positionY:0,positionZ:0,refDistance:1,rolloffFactor:1},i=(t,e,n,i,a,s)=>class extends t{constructor(t,u=o){const c=a(t),l={...o,...u},f=n(c,l),p=s(c);super(t,!1,f,p?i():null),this._nativePannerNode=f,this._orientationX=e(this,p,f.orientationX,r.b,r.a),this._orientationY=e(this,p,f.orientationY,r.b,r.a),this._orientationZ=e(this,p,f.orientationZ,r.b,r.a),this._positionX=e(this,p,f.positionX,r.b,r.a),this._positionY=e(this,p,f.positionY,r.b,r.a),this._positionZ=e(this,p,f.positionZ,r.b,r.a)}get coneInnerAngle(){return this._nativePannerNode.coneInnerAngle}set coneInnerAngle(t){this._nativePannerNode.coneInnerAngle=t}get coneOuterAngle(){return this._nativePannerNode.coneOuterAngle}set coneOuterAngle(t){this._nativePannerNode.coneOuterAngle=t}get coneOuterGain(){return this._nativePannerNode.coneOuterGain}set coneOuterGain(t){this._nativePannerNode.coneOuterGain=t}get distanceModel(){return this._nativePannerNode.distanceModel}set distanceModel(t){this._nativePannerNode.distanceModel=t}get maxDistance(){return this._nativePannerNode.maxDistance}set maxDistance(t){this._nativePannerNode.maxDistance=t}get orientationX(){return this._orientationX}get orientationY(){return this._orientationY}get orientationZ(){return this._orientationZ}get panningModel(){return this._nativePannerNode.panningModel}set panningModel(t){this._nativePannerNode.panningModel=t}get positionX(){return this._positionX}get positionY(){return this._positionY}get positionZ(){return this._positionZ}get refDistance(){return this._nativePannerNode.refDistance}set refDistance(t){this._nativePannerNode.refDistance=t}get rolloffFactor(){return this._nativePannerNode.rolloffFactor}set rolloffFactor(t){this._nativePannerNode.rolloffFactor=t}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(33),o=n(6);const i=(t,e,n,i,a,s,u,c,l,f)=>()=>{const p=new WeakMap;let h=null;return{render(d,y,v){const m=p.get(y);return void 0!==m?Promise.resolve(m):(async(d,y,v)=>{let m=null,g=s(d);const b={channelCount:g.channelCount,channelCountMode:g.channelCountMode,channelInterpretation:g.channelInterpretation},_={...b,coneInnerAngle:g.coneInnerAngle,coneOuterAngle:g.coneOuterAngle,coneOuterGain:g.coneOuterGain,distanceModel:g.distanceModel,maxDistance:g.maxDistance,panningModel:g.panningModel,refDistance:g.refDistance,rolloffFactor:g.rolloffFactor},w=Object(o.a)(g,y);if("bufferSize"in g)m=i(y,{...b,gain:1});else if(!w){const t={..._,orientationX:g.orientationX.value,orientationY:g.orientationY.value,orientationZ:g.orientationZ.value,positionX:g.positionX.value,positionY:g.positionY.value,positionZ:g.positionZ.value};g=a(y,t)}if(p.set(y,null===m?g:m),null!==m){if(null===h){if(null===u)throw new Error("Missing the native OfflineAudioContext constructor.");const t=new u(6,d.context.length,y.sampleRate),r=e(t,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:6});r.connect(t.destination),h=(async()=>{const e=await Promise.all([d.orientationX,d.orientationY,d.orientationZ,d.positionX,d.positionY,d.positionZ].map(async(e,r)=>{const o=n(t,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:0===r?1:0});return await c(t,e,o.offset,v),o}));for(let t=0;t<6;t+=1)e[t].connect(r,0,t),e[t].start(0);return f(t)})()}const t=await h,r=i(y,{...b,gain:1});await l(d,y,r,v);const o=[];for(let e=0;et!==s[e])||n.some((t,e)=>t!==p[e])){s=t,p=n;const o=e/y.sampleRate;g.gain.setValueAtTime(0,o),g=i(y,{...b,gain:0}),w=a(y,{..._,orientationX:s[0],orientationY:s[1],orientationZ:s[2],positionX:p[0],positionY:p[1],positionZ:p[2]}),g.gain.setValueAtTime(1,o),r.connect(g).connect(w.inputs[0]),w.connect(m)}}return m}return w?(await t(y,d.orientationX,g.orientationX,v),await t(y,d.orientationY,g.orientationY,v),await t(y,d.orientationZ,g.orientationZ,v),await t(y,d.positionX,g.positionX,v),await t(y,d.positionY,g.positionY,v),await t(y,d.positionZ,g.positionZ,v)):(await c(y,d.orientationX,g.orientationX,v),await c(y,d.orientationY,g.orientationY,v),await c(y,d.orientationZ,g.orientationZ,v),await c(y,d.positionX,g.positionX,v),await c(y,d.positionY,g.positionY,v),await c(y,d.positionZ,g.positionZ,v)),Object(r.a)(g)?await l(d,y,g.inputs[0],v):await l(d,y,g,v),g})(d,y,v)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));const r={disableNormalization:!1},o=(t,e,n)=>class o{constructor(o,i){const a=e(o),s={...r,...i},u=t(a,s);return n.add(u),u}static[Symbol.hasInstance](t){return null!==t&&"object"==typeof t&&Object.getPrototypeOf(t)===o.prototype||n.has(t)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>(n,r,o,i)=>(t(r).replay(o),e(r,n,o,i))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n)=>async(r,o,i,a)=>{const s=t(r),u=[...a,r];await Promise.all(s.activeInputs.map((t,a)=>Array.from(t).filter(([t])=>!u.includes(t)).map(async([t,s])=>{const c=e(t),l=await c.render(t,o,u),f=r.context.destination;n(t)||r===f&&n(r)||l.connect(i,s,a)})).reduce((t,e)=>[...t,...e],[]))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n)=>async(r,o,i,a)=>{const s=e(r);await Promise.all(Array.from(s.activeInputs).map(async([e,r])=>{const s=t(e),u=await s.render(e,o,a);n(e)||u.connect(i,r)}))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(38);const o=(t,e,n,o)=>i=>t(r.a,()=>Object(r.a)(i))?Promise.resolve(t(o,o)).then(t=>{if(!t){const t=n(i,512,0,1);i.oncomplete=()=>{t.onaudioprocess=null,t.disconnect()},t.onaudioprocess=()=>i.currentTime,t.connect(i.destination)}return i.startRendering()}):new Promise(t=>{const n=e(i,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});i.oncomplete=e=>{n.disconnect(),t(e.renderedBuffer)},n.connect(i.destination),i.startRendering()})},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(90);const o=(t,e,n,o,i,a,s,u)=>{const c=[];return(l,f)=>n(l).render(l,f,c).then(()=>Promise.all(Array.from(o(f)).map(t=>n(t).render(t,f,c)))).then(()=>i(f)).then(n=>("function"!=typeof n.copyFromChannel?(s(n),Object(r.a)(n)):e(a,()=>a(n))||u(n),t.add(n),n))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));const r={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers",pan:0},o=(t,e,n,o,i,a)=>class extends t{constructor(t,s=r){const u=i(t),c={...r,...s},l=n(u,c),f=a(u);super(t,!1,l,f?o():null),this._pan=e(this,f,l.pan,1,-1)}get pan(){return this._pan}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(33),o=n(6);const i=(t,e,n,i,a)=>()=>{const s=new WeakMap;return{render(u,c,l){const f=s.get(c);return void 0!==f?Promise.resolve(f):(async(u,c,l)=>{let f=n(u);const p=Object(o.a)(f,c);if(!p){const t={channelCount:f.channelCount,channelCountMode:f.channelCountMode,channelInterpretation:f.channelInterpretation,pan:f.pan.value};f=e(c,t)}return s.set(c,f),p?await t(c,u.pan,f.pan,l):await i(c,u.pan,f.pan,l),Object(r.a)(f)?await a(u,c,f.inputs[0],l):await a(u,c,f,l),f})(u,c,l)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>{if(null===t)return!1;try{new t({length:1,sampleRate:44100})}catch{return!1}return!0}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>{if(null===t)return!1;const e=new t(1,1,44100).createBuffer(1,1,44100);if(void 0===e.copyToChannel)return!0;const n=new Float32Array(2);try{e.copyFromChannel(n,0,0)}catch{return!1}return!0}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>{const n=t(e,t=>t.createBufferSource());n.start();try{n.start()}catch{return!0}return!1}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>{if(null===t)return Promise.resolve(!1);const e=new t(1,1,44100),n=e.createBuffer(1,1,e.sampleRate),r=e.createBufferSource();return n.getChannelData(0)[0]=1,r.buffer=n,r.start(0,0,0),r.connect(e.destination),new Promise(t=>{e.oncomplete=({renderedBuffer:e})=>{t(0===e.getChannelData(0)[0])},e.startRendering()})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>{const n=t(e,t=>t.createBufferSource()),r=e.createBuffer(1,1,44100);n.buffer=r;try{n.start(0,1)}catch{return!1}return!0}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>{const n=t(e,t=>t.createBufferSource());n.start();try{n.stop()}catch{return!1}return!0}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>{if(null===t)return!1;if(void 0!==t.prototype&&void 0!==t.prototype.close)return!0;const e=new t,n=void 0!==e.close;try{e.close()}catch{}return n}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>{if(null===t)return Promise.resolve(!1);const e=new t(1,1,44100);return new Promise(t=>{let n=!0;const r=r=>{n&&(n=!1,e.startRendering(),t(r instanceof TypeError))};let o;try{o=e.decodeAudioData(null,()=>{},r)}catch(t){r(t)}void 0!==o&&o.catch(r)})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>{if(null===t)return!1;let e;try{e=new t({latencyHint:"balanced"})}catch{return!1}return e.close(),!0}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>{if(null===t)return!1;const e=new t(1,1,44100).createGain(),n=e.connect(e)===e;return e.disconnect(e),n}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>{const n=t(e,t=>t.createOscillator());try{n.start(-1)}catch(t){return t instanceof RangeError}return!1}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>{const n=e.createBuffer(1,1,44100),r=t(e,t=>t.createBufferSource());r.buffer=n,r.start(),r.stop();try{return r.stop(),!0}catch{return!1}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>{const n=t(e,t=>t.createOscillator());try{n.stop(-1)}catch(t){return t instanceof RangeError}return!1}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>async()=>{if(null===t)return!0;if(null===e)return!1;const n=new Blob(['class A extends AudioWorkletProcessor{process(){this.port.postMessage(0)}}registerProcessor("a",A)'],{type:"application/javascript; charset=utf-8"}),r=new e(1,128,3200),o=URL.createObjectURL(n);let i=!1;try{await r.audioWorklet.addModule(o);const e=r.createGain(),n=new t(r,"a",{numberOfOutputs:0});n.port.onmessage=()=>i=!0,e.connect(n),await r.startRendering()}catch{}finally{URL.revokeObjectURL(o)}return i}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>()=>{if(null===e)return!1;const n=new e(1,1,44100),r=t(n,t=>t.createChannelMerger());try{r.channelCount=2}catch{return!0}return!1}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>()=>{if(null===e)return!1;const n=new e(1,1,44100);return void 0===n.createConstantSource||t(n,t=>t.createConstantSource()).offset.maxValue!==Number.POSITIVE_INFINITY}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>{if(null===t)return!1;const e=new t(1,1,44100),n=e.createConvolver();n.buffer=e.createBuffer(1,1,e.sampleRate);try{n.buffer=e.createBuffer(1,1,e.sampleRate)}catch{return!1}return!0}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>null!==t&&t.hasOwnProperty("isSecureContext")},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>{if(null===t)return!1;const e=new t;try{return e.createMediaStreamSource(new MediaStream),!1}catch(t){return!0}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>()=>{if(null===e)return Promise.resolve(!1);const n=new e(1,1,44100),r=t(n,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});return new Promise(t=>{n.oncomplete=()=>{r.disconnect(),t(0!==n.currentTime)},n.startRendering()})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>{if(null===t)return Promise.resolve(!1);const e=new t(1,1,44100);if(void 0===e.createStereoPanner)return Promise.resolve(!0);if(void 0===e.createConstantSource)return Promise.resolve(!0);const n=e.createConstantSource(),r=e.createStereoPanner();return n.channelCount=1,n.offset.value=1,r.channelCount=1,n.start(),n.connect(r).connect(e.destination),e.startRendering().then(t=>1!==t.getChannelData(0)[0])}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));const r={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",curve:null,oversample:"none"},o=(t,e,n,o,i,a)=>class extends t{constructor(t,e=r){const s=i(t),u={...r,...e},c=n(s,u);super(t,!0,c,a(s)?o():null),this._isCurveNullified=!1,this._nativeWaveShaperNode=c}get curve(){return this._isCurveNullified?null:this._nativeWaveShaperNode.curve}set curve(t){if(null===t)this._isCurveNullified=!0,this._nativeWaveShaperNode.curve=new Float32Array([0,0]);else{if(t.length<2)throw e();this._isCurveNullified=!1,this._nativeWaveShaperNode.curve=t}}get oversample(){return this._nativeWaveShaperNode.oversample}set oversample(t){this._nativeWaveShaperNode.oversample=t}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(33),o=n(6);const i=(t,e,n)=>()=>{const i=new WeakMap;return{render(a,s,u){const c=i.get(s);return void 0!==c?Promise.resolve(c):(async(a,s,u)=>{let c=e(a);if(!Object(o.a)(c,s)){const e={channelCount:c.channelCount,channelCountMode:c.channelCountMode,channelInterpretation:c.channelInterpretation,curve:c.curve,oversample:c.oversample};c=t(s,e)}return i.set(s,c),Object(r.a)(c)?await n(a,s,c.inputs[0],u):await n(a,s,c,u),c})(a,s,u)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=()=>"undefined"==typeof window?null:window},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>n=>{n.copyFromChannel=(r,o,i=0)=>{const a=t(i),s=t(o);if(s>=n.numberOfChannels)throw e();const u=n.length,c=n.getChannelData(s),l=r.length;for(let t=a<0?-a:0;t+a{const a=t(i),s=t(o);if(s>=n.numberOfChannels)throw e();const u=n.length,c=n.getChannelData(s),l=r.length;for(let t=a<0?-a:0;t+ae=>{var n,r;e.copyFromChannel=(n=e.copyFromChannel,(r,o,i=0)=>{const a=t(i),s=t(o);if(a{const a=t(i),s=t(o);if(a(e,n)=>{const r=n.createBuffer(1,1,n.sampleRate);null===e.buffer&&(e.buffer=r),t(e,"buffer",t=>()=>{const n=t.call(e);return n===r?null:n},t=>n=>t.call(e,null===n?r:n))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(26);const o=t=>(e,n)=>{const o=t(n,t=>t.createGain());e.connect(o);const i=(a=e.disconnect,()=>{a.call(e,o),e.removeEventListener("ended",i)});var a;e.addEventListener("ended",i),Object(r.a)(e,o),e.stop=(t=>{let n=!1;return(r=0)=>{if(n)try{t.call(e,r)}catch{o.gain.setValueAtTime(0,r)}else t.call(e,r),n=!0}})(e.stop)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n)=>(r,o)=>{o.channelCount=1,o.channelCountMode="explicit",Object.defineProperty(o,"channelCount",{get:()=>1,set:()=>{throw t()}}),Object.defineProperty(o,"channelCountMode",{get:()=>"explicit",set:()=>{throw t()}});const i=e(r,t=>t.createBufferSource());n(o,()=>{const t=o.numberOfInputs;for(let e=0;ei.disconnect(o))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=()=>new Promise(t=>{const e=new ArrayBuffer(0),{port1:n,port2:r}=new MessageChannel;n.onmessage=({data:e})=>t(null!==e),r.postMessage(e,[e])})},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>{var e;t.start=(e=t.start,(n=0,r=0,o)=>{const i=t.buffer,a=null===i?r:Math.min(i.duration,r);null!==i&&a>i.duration-.5/t.context.sampleRate?e.call(t,n,0,0):e.call(t,n,a,o)})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return q}));var r=n(2),o=n(77),i=n(61);const a=t=>"port"in t;var s=n(96),u=n(55);const c=(t,e)=>{if(!Object(u.a)(t).delete(e))throw new Error("Missing the expected event listener.")};var l=n(97),f=n(19),p=n(79),h=n(13),d=n(80),y=n(22),v=n(41),m=n(62),g=n(51);const b=t=>!r.a.has(t),_=(t,e)=>{const n=Array.from(t).filter(e);if(n.length>1)throw Error("More than one element was found.");if(0===n.length)throw Error("No element was found.");const[r]=n;return t.delete(r),r};var w=n(48),x=n(59);const O=(t,e)=>{!a(t)&&e.every(t=>0===t.size)&&Object(x.a)(t)},S=t=>new Promise(e=>{const n=t.createScriptProcessor(256,1,1),r=t.createGain(),o=t.createBuffer(1,2,44100),i=o.getChannelData(0);i[0]=1,i[1]=1;const a=t.createBufferSource();a.buffer=o,a.loop=!0,a.connect(n).connect(t.destination),a.connect(r),a.disconnect(r),n.onaudioprocess=r=>{const o=r.inputBuffer.getChannelData(0);Array.prototype.some.call(o,t=>1===t)?e(!0):e(!1),a.stop(),n.onaudioprocess=null,a.disconnect(n),n.disconnect(t.destination)},a.start()}),k=(t,e)=>{const n=new Map;for(const e of t)for(const t of e){const e=n.get(t);n.set(t,void 0===e?1:e+1)}n.forEach((t,n)=>e(n,t))};var T=n(78);const C=(t,e,[n,r,o],i)=>{Object(v.a)(t[r],[e,n,o],t=>t[0]===e&&t[1]===n,i)},E=(t,e,[n,r],o)=>{Object(v.a)(t,[e,n,r],t=>t[0]===e&&t[1]===n,o)},A=(t,e,[n,r,o],i)=>{const a=t.get(n);void 0===a?t.set(n,new Set([[r,e,o]])):Object(v.a)(a,[r,e,o],t=>t[0]===r&&t[1]===e,i)},j=(t,[e,n,r],o)=>{const i=t.get(e);void 0===i?t.set(e,new Set([[n,r]])):Object(v.a)(i,[n,r],t=>t[0]===n,o)},P=(t,e,n,r)=>{const o=Object(y.a)(t,e),i=_(o,t=>t[0]===n&&t[1]===r);return 0===o.size&&t.delete(e),i},D=(t,e,n)=>{const r=Object(y.a)(t,e),o=_(r,t=>t[0]===n);return 0===r.size&&t.delete(e),o},M=(t,e,n,r)=>{const{activeInputs:o,passiveInputs:i}=Object(f.a)(e),{outputs:a}=Object(f.a)(t),c=Object(u.a)(t),p=a=>{const u=Object(h.a)(e),c=Object(h.a)(t);if(a){const a=P(i,t,n,r);C(o,t,a,!1),Object(g.a)(t)||Object(s.a)(c,u,n,r),b(e)&&Object(w.a)(e)}else{const a=((t,e,n,r)=>_(t[r],t=>t[0]===e&&t[1]===n))(o,t,n,r);A(i,r,a,!1),Object(g.a)(t)||Object(l.a)(c,u,n,r),Object(m.a)(e)&&O(e,o)}};return!!Object(v.a)(a,[e,n,r],t=>t[0]===e&&t[1]===n&&t[2]===r,!0)&&(c.add(p),Object(m.a)(t)?C(o,t,[n,r,p],!0):A(i,r,[t,n,p],!0),!0)},I=(t,e,n)=>{const{activeInputs:r,passiveInputs:o}=Object(p.a)(e),{outputs:i}=Object(f.a)(t),a=Object(u.a)(t),s=i=>{const a=Object(h.a)(t),s=Object(d.a)(e);if(i){const e=D(o,t,n);E(r,t,e,!1),Object(g.a)(t)||a.connect(s,n)}else{const e=((t,e,n)=>_(t,t=>t[0]===e&&t[1]===n))(r,t,n);j(o,e,!1),Object(g.a)(t)||a.disconnect(s,n)}};return!!Object(v.a)(i,[e,n],t=>t[0]===e&&t[1]===n,!0)&&(a.add(s),Object(m.a)(t)?E(r,t,[n,s],!0):j(o,[t,n,s],!0),!0)},R=(t,e,n)=>{for(const r of t)if(r[0]===e&&r[1]===n)return t.delete(r),r;return null},N=(t,e,n,r)=>{const[o,i]=((t,e,n,r)=>{const{activeInputs:o,passiveInputs:i}=Object(f.a)(e),a=R(o[r],t,n);if(null===a){return[P(i,t,n,r)[2],!1]}return[a[2],!0]})(t,e,n,r);if(null!==o&&(c(t,o),i&&!Object(g.a)(t)&&Object(l.a)(Object(h.a)(t),Object(h.a)(e),n,r)),Object(m.a)(e)){const{activeInputs:t}=Object(f.a)(e);O(e,t)}},F=(t,e,n)=>{const[r,o]=((t,e,n)=>{const{activeInputs:r,passiveInputs:o}=Object(p.a)(e),i=R(r,t,n);if(null===i){return[D(o,t,n)[1],!1]}return[i[2],!0]})(t,e,n);null!==r&&(c(t,r),o&&!Object(g.a)(t)&&Object(h.a)(t).disconnect(Object(d.a)(e),n))},q=(t,e,n,u,c,l,y,m,g,_,x,O,A,j,P)=>class extends _{constructor(e,o,i,a){super(i),this._context=e,this._nativeAudioNode=i;const s=x(e);O(s)&&!0!==n(S,()=>S(s))&&(t=>{const e=new Map;var n,r;t.connect=(n=t.connect.bind(t),(t,r=0,o=0)=>{const i=Object(T.a)(t)?n(t,r,o):n(t,r),a=e.get(t);return void 0===a?e.set(t,[{input:o,output:r}]):a.every(t=>t.input!==o||t.output!==r)&&a.push({input:o,output:r}),i}),t.disconnect=(r=t.disconnect,(n,o,i)=>{if(r.apply(t),void 0===n)e.clear();else if("number"==typeof n)for(const[t,r]of e){const o=r.filter(t=>t.output!==n);0===o.length?e.delete(t):e.set(t,o)}else if(e.has(n))if(void 0===o)e.delete(n);else{const t=e.get(n);if(void 0!==t){const r=t.filter(t=>t.output!==o&&(t.input!==i||void 0===i));0===r.length?e.delete(n):e.set(n,r)}}for(const[n,r]of e)r.forEach(e=>{Object(T.a)(n)?t.connect(n,e.output,e.input):t.connect(n,e.output)})})})(i),r.c.set(this,i),r.i.set(this,new Set),o&&Object(w.a)(this),t(this,a,i)}get channelCount(){return this._nativeAudioNode.channelCount}set channelCount(t){this._nativeAudioNode.channelCount=t}get channelCountMode(){return this._nativeAudioNode.channelCountMode}set channelCountMode(t){this._nativeAudioNode.channelCountMode=t}get channelInterpretation(){return this._nativeAudioNode.channelInterpretation}set channelInterpretation(t){this._nativeAudioNode.channelInterpretation=t}get context(){return this._context}get numberOfInputs(){return this._nativeAudioNode.numberOfInputs}get numberOfOutputs(){return this._nativeAudioNode.numberOfOutputs}connect(t,n=0,r=0){if(n<0||n>=this._nativeAudioNode.numberOfOutputs)throw c();const i=x(this._context),m=P(i);if(A(t)||j(t))throw l();if(Object(o.a)(t)){const o=Object(h.a)(t);try{const u=Object(s.a)(this._nativeAudioNode,o,n,r);if(m||b(this)?this._nativeAudioNode.disconnect(...u):b(t)&&Object(w.a)(t),a(t)){const t=e.get(o);if(void 0===t){const t=i.createGain();t.connect(u[0],0,u[2]),e.set(o,new Map([[r,t]]))}else if(void 0===t.get(r)){const e=i.createGain();e.connect(u[0],0,u[2]),t.set(r,e)}}}catch(t){if(12===t.code)throw l();throw t}if(m?((t,e,n,r)=>{const{outputs:o}=Object(f.a)(t);if(Object(v.a)(o,[e,n,r],t=>t[0]===e&&t[1]===n&&t[2]===r,!0)){const{activeInputs:o}=Object(f.a)(e);return C(o,t,[n,r,null],!0),!0}return!1})(this,t,n,r):M(this,t,n,r)){const e=g([this],t);k(e,u(m))}return t}const _=Object(d.a)(t);if("playbackRate"===_.name)throw y();try{this._nativeAudioNode.connect(_,n),(m||b(this))&&this._nativeAudioNode.disconnect(_,n)}catch(t){if(12===t.code)throw l();throw t}if(m?((t,e,n)=>{const{outputs:r}=Object(f.a)(t);if(Object(v.a)(r,[e,n],t=>t[0]===e&&t[1]===n,!0)){const{activeInputs:r}=Object(p.a)(e);return E(r,t,[n,null],!0),!0}return!1})(this,t,n):I(this,t,n)){const e=g([this],t);k(e,u(m))}}disconnect(t,e,n){let r;if(void 0===t)r=(t=>{const e=Object(f.a)(t),n=[];for(const r of e.outputs)Object(i.a)(r)?N(t,...r):F(t,...r),n.push(r[0]);return e.outputs.clear(),n})(this);else if("number"==typeof t){if(t<0||t>=this.numberOfOutputs)throw c();r=((t,e)=>{const n=Object(f.a)(t),r=[];for(const o of n.outputs)o[1]===e&&(Object(i.a)(o)?N(t,...o):F(t,...o),r.push(o[0]),n.outputs.delete(o));return r})(this,t)}else{if(void 0!==e&&(e<0||e>=this.numberOfOutputs))throw c();if(Object(o.a)(t)&&void 0!==n&&(n<0||n>=t.numberOfInputs))throw c();if(r=((t,e,n,r)=>{const o=Object(f.a)(t);return Array.from(o.outputs).filter(t=>!(t[0]!==e||void 0!==n&&t[1]!==n||void 0!==r&&t[2]!==r)).map(e=>(Object(i.a)(e)?N(t,...e):F(t,...e),o.outputs.delete(e),e[0]))})(this,t,e,n),0===r.length)throw l()}for(const t of r){const e=g([this],t);k(e,m)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(5),o=n(129),i=n(98),a=n(127),s=n(2);const u=async(t,e)=>new t(await(t=>new Promise((e,n)=>{const{port1:r,port2:o}=new MessageChannel;r.onmessage=({data:t})=>{r.close(),o.close(),e(t)},r.onmessageerror=({data:t})=>{r.close(),o.close(),n(t)},o.postMessage(t)}))(e));var c=n(99),l=n(126);const f=(t,e,n,f,p,h,d,y,v,m,g,b,_)=>(w,x,O,S)=>{if(0===S.numberOfInputs&&0===S.numberOfOutputs)throw m();if(void 0!==S.outputChannelCount){if(S.outputChannelCount.some(t=>t<1))throw m();if(S.outputChannelCount.length!==S.numberOfOutputs)throw n()}if("explicit"!==S.channelCountMode)throw m();const k=S.channelCount*S.numberOfInputs,T=S.outputChannelCount.reduce((t,e)=>t+e,0),C=void 0===O.parameterDescriptors?0:O.parameterDescriptors.length;if(k+C>6||T>6)throw m();const E=new MessageChannel,A=[],j=[];for(let t=0;tvoid 0===t?0:t},maxValue:{get:()=>void 0===e?r.b:e},minValue:{get:()=>void 0===n?r.a:n}}),P.push(i)}const D=p(w,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Math.max(1,k+C)}),M=Object(o.a)(x,w.sampleRate),I=v(w,M,k+C,Math.max(1,T)),R=h(w,{channelCount:Math.max(1,T),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,T)}),N=[];for(let t=0;t{const n=P[e];return n.connect(D,0,k+e),n.start(0),[t,n.offset]}));D.connect(I);let q=S.channelInterpretation,V=null;const L=0===S.numberOfOutputs?[I]:N,z={get bufferSize(){return M},get channelCount(){return S.channelCount},set channelCount(t){throw f()},get channelCountMode(){return S.channelCountMode},set channelCountMode(t){throw f()},get channelInterpretation(){return q},set channelInterpretation(t){for(const e of A)e.channelInterpretation=t;q=t},get context(){return I.context},get inputs(){return A},get numberOfInputs(){return S.numberOfInputs},get numberOfOutputs(){return S.numberOfOutputs},get onprocessorerror(){return V},set onprocessorerror(t){"function"==typeof V&&z.removeEventListener("processorerror",V),V="function"==typeof t?t:null,"function"==typeof V&&z.addEventListener("processorerror",V)},get parameters(){return F},get port(){return E.port2},addEventListener:(...t)=>I.addEventListener(t[0],t[1],t[2]),connect:e.bind(null,L),disconnect:g.bind(null,L),dispatchEvent:(...t)=>I.dispatchEvent(t[0]),removeEventListener:(...t)=>I.removeEventListener(t[0],t[1],t[2])},B=new Map;var U,W;E.port1.addEventListener=(U=E.port1.addEventListener,(...t)=>{if("message"===t[0]){const e="function"==typeof t[1]?t[1]:"object"==typeof t[1]&&null!==t[1]&&"function"==typeof t[1].handleEvent?t[1].handleEvent:null;if(null!==e){const n=B.get(t[1]);void 0!==n?t[1]=n:(t[1]=t=>{b(w.currentTime,w.sampleRate,()=>e(t))},B.set(e,t[1]))}}return U.call(E.port1,t[0],t[1],t[2])}),E.port1.removeEventListener=(W=E.port1.removeEventListener,(...t)=>{if("message"===t[0]){const e=B.get(t[1]);void 0!==e&&(B.delete(t[1]),t[1]=e)}return W.call(E.port1,t[0],t[1],t[2])});let $=null;Object.defineProperty(E.port1,"onmessage",{get:()=>$,set:t=>{"function"==typeof $&&E.port1.removeEventListener("message",$),$="function"==typeof t?t:null,"function"==typeof $&&(E.port1.addEventListener("message",$),E.port1.start())}}),O.prototype.port=E.port1;let H=null;((t,e,n,r)=>{let o=s.k.get(t);void 0===o&&(o=new WeakMap,s.k.set(t,o));const i=u(n,r);return o.set(e,i),i})(w,z,O,S).then(t=>H=t);const G=Object(c.a)(S.numberOfInputs,S.channelCount),K=Object(c.a)(S.numberOfOutputs,S.outputChannelCount),Q=void 0===O.parameterDescriptors?[]:O.parameterDescriptors.reduce((t,{name:e})=>({...t,[e]:new Float32Array(128)}),{});let Y=!0;const X=()=>{S.numberOfOutputs>0&&I.disconnect(R);for(let t=0,e=0;t{if(null!==H)for(let r=0;r{Object(i.a)(e,Q,t,k+n,r)});for(let t=0;t{const r=t.get(z);return void 0===r||void 0===r.get(n)?[]:e}),o=b(w.currentTime+r/w.sampleRate,w.sampleRate,()=>H.process(e,K,Q));Y=o;for(let t=0,e=0;tI.connect(Z).connect(Z.context.destination),et=()=>{I.disconnect(Z),Z.disconnect()};return tt(),_(z,()=>{if(Y){et(),S.numberOfOutputs>0&&I.connect(R);for(let t=0,e=0;t{Y&&(tt(),X()),J=!1})}},function(t,e,n){"use strict";var r=n(94);function o(t,e){void 0===e&&(e={});var n=function(t){if(t&&"j"===t[0]&&":"===t[1])return t.substr(2);return t}(t);if(function(t,e){return void 0===e&&(e=!t||"{"!==t[0]&&"["!==t[0]&&'"'!==t[0]),!e}(n,e.doNotParse))try{return JSON.parse(n)}catch(t){}return t}var i=n(123),a=function(){function t(t,e){var n=this;this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.cookies=function(t,e){return"string"==typeof t?r.parse(t,e):"object"==typeof t&&null!==t?t:{}}(t,e),new Promise((function(){n.HAS_DOCUMENT_COOKIE="object"==typeof document&&"string"==typeof document.cookie})).catch((function(){}))}return t.prototype._updateBrowserValues=function(t){this.HAS_DOCUMENT_COOKIE&&(this.cookies=r.parse(document.cookie,t))},t.prototype._emitChange=function(t){for(var e=0;e=0&&this.changeListeners.splice(e,1)},t}();e.a=a},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(2);const o={construct:()=>o},i=/^import(?:(?:[\s]+[\w]+|(?:[\s]+[\w]+[\s]*,)?[\s]*\{[\s]*[\w]+(?:[\s]+as[\s]+[\w]+)?(?:[\s]*,[\s]*[\w]+(?:[\s]+as[\s]+[\w]+)?)*[\s]*}|(?:[\s]+[\w]+[\s]*,)?[\s]*\*[\s]+as[\s]+[\w]+)[\s]+from)?(?:[\s]*)("([^"\\]|\\.)+"|'([^'\\]|\\.)+')(?:[\s]*);?/,a=(t,e)=>{const n=[];let r=t.replace(/^[\s]+/,""),o=r.match(i);for(;null!==o;){const t=o[1].slice(1,-1),a=o[0].replace(/([\s]+)?;?$/,"").replace(t,new URL(t,e).toString());n.push(a),r=r.slice(o[0].length).replace(/^[\s]+/,""),o=r.match(i)}return[n.join(";"),r]},s=t=>{if(void 0!==t&&!Array.isArray(t))throw new TypeError("The parameterDescriptors property of given value for processorCtor is not an array.")},u=t=>{if(!(t=>{try{new new Proxy(t,o)}catch{return!1}return!0})(t))throw new TypeError("The given value for processorCtor should be a constructor.");if(null===t.prototype||"object"!=typeof t.prototype)throw new TypeError("The given value for processorCtor should have a prototype.")},c=(t,e,n,o,i,c,l,f,p)=>(h,d,y={credentials:"omit"})=>{const v=c(h),m=new URL(d,p.location.href).toString();if(void 0!==v.audioWorklet)return o(d).then(t=>{const[e,n]=a(t,m),r=new Blob([`${e};(registerProcessor=>{${n}\n})((n,p)=>registerProcessor(n,class extends p{process(i,o,p){return super.process(i.map(j=>j.some(k=>k.length===0)?[]:j),o,p)}}))`],{type:"application/javascript; charset=utf-8"}),o=URL.createObjectURL(r),s=i(v);return(null!==s?s:v).audioWorklet.addModule(o,y).then(()=>URL.revokeObjectURL(o)).catch(t=>{throw URL.revokeObjectURL(o),void 0!==t.code&&"SyntaxError"!==t.name||(t.code=12),t})});const g=f.get(h);if(void 0!==g&&g.has(d))return Promise.resolve();const b=l.get(h);if(void 0!==b){const t=b.get(d);if(void 0!==t)return t}const _=o(d).then(t=>{const[n,r]=a(t,m);return e(`${n};((a,b)=>{(a[b]=a[b]||[]).push((AudioWorkletProcessor,global,registerProcessor,sampleRate,self,window)=>{${r}\n})})(window,'_AWGS')`)}).then(()=>{const e=p._AWGS.pop();if(void 0===e)throw new SyntaxError;n(v.currentTime,v.sampleRate,()=>e(class{},void 0,(e,n)=>{if(""===e.trim())throw t();const o=r.j.get(v);if(void 0!==o){if(o.has(e))throw t();u(n),s(n.parameterDescriptors),o.set(e,n)}else u(n),s(n.parameterDescriptors),r.j.set(v,new Map([[e,n]]))},v.sampleRate,void 0,void 0))}).catch(t=>{throw void 0!==t.code&&"SyntaxError"!==t.name||(t.code=12),t});return void 0===b?l.set(h,new Map([[d,_]])):b.set(d,_),_.then(()=>{const t=f.get(h);void 0===t?f.set(h,new Set([d])):t.add(d)}).catch(()=>{}).then(()=>{const t=l.get(h);void 0!==t&&t.delete(d)}),_}},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(8),o=n(7),i=n(4),a=n(14);var s=n(91),u=n(92);const c=(t,e,n,c,l,f,p,h,d,y,v,m,g)=>(b,_={})=>{const w=n(b,t=>t.createBufferSource());return Object(i.a)(w,_),Object(r.a)(w,_,"playbackRate"),Object(o.a)(w,_,"buffer"),Object(o.a)(w,_,"loop"),Object(o.a)(w,_,"loopEnd"),Object(o.a)(w,_,"loopStart"),e(c,()=>c(b))||(t=>{t.start=(e=>{let n=!1;return(r=0,o=0,i)=>{if(n)throw Object(a.a)();e.call(t,r,o,i),n=!0}})(t.start)})(w),e(l,l)||((t,e)=>{let n=Number.POSITIVE_INFINITY,r=Number.POSITIVE_INFINITY;var o,i;t.start=(o=t.start,i=t.stop,(a=0,s=0,u=Number.POSITIVE_INFINITY)=>{if(o.call(t,a,s),u>=0&&u(i=0)=>{r=Math.max(i,e.currentTime),o.call(t,Math.min(n,r))})(t.stop)})(w,b),e(f,()=>f(b))||v(w),e(p,()=>p(b))||m(w,b),e(h,()=>h(b))||Object(s.a)(w),e(d,()=>d(b))||g(w,b),e(y,()=>y(b))||Object(u.a)(w),t(b,w),w}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(7),o=n(4);const i=t=>"function"==typeof t.getFloatTimeDomainData,a=(t,e,n)=>(a,s)=>{const u=n(a,t=>t.createAnalyser());if(Object(o.a)(u,s),!(s.maxDecibels>s.minDecibels))throw e();return Object(r.a)(u,s,"fftSize"),Object(r.a)(u,s,"maxDecibels"),Object(r.a)(u,s,"minDecibels"),Object(r.a)(u,s,"smoothingTimeConstant"),t(i,()=>i(u))||(t=>{t.getFloatTimeDomainData=e=>{const n=new Uint8Array(e.length);t.getByteTimeDomainData(n);const r=Math.max(n.length,t.fftSize);for(let t=0;t(d,y)=>{const v=s(d)?d:a(d);if(i.has(y)){const t=n();return Promise.reject(t)}try{i.add(y)}catch{}if(e(f,()=>f(v))){return("closed"===v.state&&null!==c&&u(v)?new c(1,1,v.sampleRate):v).decodeAudioData(y).catch(t=>{if(t instanceof DOMException&&"NotSupportedError"===t.name)throw new TypeError;throw t}).then(n=>(e(l,()=>l(n))||h(n),t.add(n),n))}return new Promise((e,n)=>{const i=()=>{try{(t=>{const{port1:e}=new MessageChannel;e.postMessage(t,[t])})(y)}catch{}},a=t=>{n(t),i()};try{v.decodeAudioData(y,n=>{"function"!=typeof n.copyFromChannel&&(p(n),Object(r.a)(n)),t.add(n),i(),e(n)},t=>{a(null===t?o():t)})}catch(t){a(t)}})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(77);const o=(t,e,n)=>function o(i,a){const s=Object(r.a)(a)?a:n(t,a);if((t=>"delayTime"in t)(s))return[];if(i[0]===s)return[i];if(i.includes(s))return[];const{outputs:u}=e(s);return Array.from(u).map(t=>o([...i,s],t[0])).reduce((t,e)=>t.concat(e),[])}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(100);const o={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers"},i=(t,e,n,i,a)=>class extends t{constructor(t,s){const u=i(t),c=a(u),l={...o,...s},f=e(u,c?null:t.baseLatency,l);super(t,!1,f,c?n(l.feedback,l.feedforward):null),(t=>{var e;t.getFrequencyResponse=(e=t.getFrequencyResponse,(n,o,i)=>{if(n.length!==o.length||o.length!==i.length)throw Object(r.a)();return e.call(t,n,o,i)})})(f),this._nativeIIRFilterNode=f}getFrequencyResponse(t,e,n){return this._nativeIIRFilterNode.getFrequencyResponse(t,e,n)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n(98),o=n(127),i=n(99),a=n(19),s=n(2),u=n(13),c=n(22);var l=n(6);const f=async(t,e,n,l,f,p)=>{const h=null===e?128*Math.ceil(t.context.length/128):e.length,d=l.channelCount*l.numberOfInputs,y=l.outputChannelCount.reduce((t,e)=>t+e,0),v=0===y?null:n.createBuffer(y,h,n.sampleRate);if(void 0===f)throw new Error("Missing the processor constructor.");const m=Object(a.a)(t),g=await((t,e)=>{const n=Object(c.a)(s.k,t),r=Object(u.a)(e);return Object(c.a)(n,r)})(n,t),b=Object(i.a)(l.numberOfInputs,l.channelCount),_=Object(i.a)(l.numberOfOutputs,l.outputChannelCount),w=Array.from(t.parameters.keys()).reduce((t,e)=>({...t,[e]:new Float32Array(128)}),{});for(let i=0;i0&&null!==e)for(let t=0;t{Object(r.a)(e,w,t,d+n,i)});for(let t=0;t0===m.activeInputs[e].size?[]:t),e=p(i/n.sampleRate,n.sampleRate,()=>g.process(t,_,w));if(null!==v)for(let t=0,e=0;t(g,b,_)=>{const w=new WeakMap;let x=null;return{render(O,S,k){s(S,O);const T=w.get(S);return void 0!==T?Promise.resolve(T):(async(s,O,S)=>{let k=p(s),T=null;const C=Object(l.a)(k,O);if(null===h){const t=b.outputChannelCount.reduce((t,e)=>t+e,0),n=o(O,{channelCount:Math.max(1,t),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,t)}),i=[];for(let t=0;t{const u=new d(n,128*Math.ceil(s.context.length/128),O.sampleRate),c=[],l=[];for(let t=0;t{const e=i(u,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:t.value});return await y(u,t,e.offset,S),e})),p=r(u,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Math.max(1,t+e)});for(let t=0;tv(s,u,t,S))),m(u)};x=f(s,0===n?null:await u(),O,b,_,c)}const t=await x,e=n(O),[u,l,p]=T;null!==t&&(e.buffer=t,e.start(0)),e.connect(u);for(let t=0,e=0;t(a,s,u,c,l,f)=>{if(null!==u)try{const n=e(a,t=>new u(t,c,f)),o=new Map;let s=null;if(Object.defineProperties(n,{channelCount:{get:()=>f.channelCount,set:()=>{throw t()}},channelCountMode:{get:()=>"explicit",set:()=>{throw t()}},onprocessorerror:{get:()=>s,set:t=>{"function"==typeof s&&n.removeEventListener("processorerror",s),s="function"==typeof t?t:null,"function"==typeof s&&n.addEventListener("processorerror",s)}}}),n.addEventListener=(h=n.addEventListener,(...t)=>{if("processorerror"===t[0]){const e="function"==typeof t[1]?t[1]:"object"==typeof t[1]&&null!==t[1]&&"function"==typeof t[1].handleEvent?t[1].handleEvent:null;if(null!==e){const n=o.get(t[1]);void 0!==n?t[1]=n:(t[1]=n=>{e(new ErrorEvent(t[0],{...n,error:new Error}))},o.set(e,t[1]))}}return h.call(n,t[0],t[1],t[2])}),n.removeEventListener=(p=n.removeEventListener,(...t)=>{if("processorerror"===t[0]){const e=o.get(t[1]);void 0!==e&&(o.delete(t[1]),t[1]=e)}return p.call(n,t[0],t[1],t[2])}),0!==f.numberOfOutputs){const t=r(a,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});return n.connect(t).connect(t.context.destination),i(n,()=>t.disconnect(),()=>t.connect(t.context.destination))}return n}catch(t){if(11===t.code)throw o();throw t}var p,h;if(void 0===l)throw o();return(t=>{const{port1:e}=new MessageChannel;try{e.postMessage(t)}finally{e.close()}})(f),n(a,s,l,f)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(4),o=n(14);const i=t=>(e,n)=>{const i=t(e,t=>t.createChannelSplitter(n.numberOfOutputs));return Object(r.a)(i,n),(t=>{const e=t.numberOfOutputs;Object.defineProperty(t,"channelCount",{get:()=>e,set:t=>{if(t!==e)throw Object(o.a)()}}),Object.defineProperty(t,"channelCountMode",{get:()=>"explicit",set:t=>{if("explicit"!==t)throw Object(o.a)()}}),Object.defineProperty(t,"channelInterpretation",{get:()=>"discrete",set:t=>{if("discrete"!==t)throw Object(o.a)()}})})(i),i}},function(t,e){t.exports=function(t,e){throw new Error("Decorating class property failed. Please ensure that proposal-class-properties is enabled and runs after the decorators transform.")}},function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},function(t,e,n){var r=n(1057),o=n(1058),i=n(1059),a=n(1061);t.exports=function(t,e){return r(t)||o(t,e)||i(t,e)||a()}},,function(t,e,n){"use strict";n(847);var r,o=(r=n(1018))&&r.__esModule?r:{default:r};o.default._babelPolyfill&&"undefined"!=typeof console&&console.warn&&console.warn("@babel/polyfill is loaded more than once on this page. This is probably not desirable/intended and may have consequences if different versions of the polyfills are applied sequentially. If you do need to load the polyfill more than once, use @babel/polyfill/noConflict instead to bypass the warning."),o.default._babelPolyfill=!0},function(t,e,n){"use strict";n(848),n(991),n(993),n(996),n(998),n(1e3),n(1002),n(1004),n(1006),n(1008),n(1010),n(1012),n(1014),n(203)},function(t,e,n){n(849),n(852),n(853),n(854),n(855),n(856),n(857),n(858),n(859),n(860),n(861),n(862),n(863),n(864),n(865),n(866),n(867),n(868),n(869),n(870),n(871),n(872),n(873),n(874),n(875),n(876),n(877),n(878),n(879),n(880),n(881),n(882),n(883),n(884),n(885),n(886),n(887),n(888),n(889),n(890),n(891),n(892),n(893),n(895),n(896),n(897),n(898),n(899),n(900),n(901),n(902),n(903),n(904),n(905),n(906),n(907),n(908),n(909),n(910),n(911),n(912),n(913),n(914),n(915),n(916),n(917),n(918),n(919),n(920),n(921),n(922),n(923),n(924),n(925),n(926),n(927),n(928),n(930),n(931),n(933),n(934),n(935),n(936),n(937),n(938),n(939),n(941),n(942),n(943),n(944),n(945),n(946),n(947),n(948),n(949),n(950),n(951),n(952),n(953),n(153),n(954),n(192),n(955),n(193),n(956),n(957),n(958),n(959),n(194),n(962),n(963),n(964),n(965),n(966),n(967),n(968),n(969),n(970),n(971),n(972),n(973),n(974),n(975),n(976),n(977),n(978),n(979),n(980),n(981),n(982),n(983),n(984),n(985),n(986),n(987),n(988),n(989),n(990),t.exports=n(18)},function(t,e,n){"use strict";var r=n(9),o=n(30),i=n(20),a=n(1),s=n(27),u=n(58).KEY,c=n(10),l=n(111),f=n(84),p=n(66),h=n(15),d=n(134),y=n(173),v=n(851),m=n(114),g=n(11),b=n(12),_=n(25),w=n(32),x=n(57),O=n(65),S=n(70),k=n(176),T=n(45),C=n(113),E=n(21),A=n(68),j=T.f,P=E.f,D=k.f,M=r.Symbol,I=r.JSON,R=I&&I.stringify,N=h("_hidden"),F=h("toPrimitive"),q={}.propertyIsEnumerable,V=l("symbol-registry"),L=l("symbols"),z=l("op-symbols"),B=Object.prototype,U="function"==typeof M&&!!C.f,W=r.QObject,$=!W||!W.prototype||!W.prototype.findChild,H=i&&c((function(){return 7!=S(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=j(B,e);r&&delete B[e],P(t,e,n),r&&t!==B&&P(B,e,r)}:P,G=function(t){var e=L[t]=S(M.prototype);return e._k=t,e},K=U&&"symbol"==typeof M.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof M},Q=function(t,e,n){return t===B&&Q(z,e,n),g(t),e=x(e,!0),g(n),o(L,e)?(n.enumerable?(o(t,N)&&t[N][e]&&(t[N][e]=!1),n=S(n,{enumerable:O(0,!1)})):(o(t,N)||P(t,N,O(1,{})),t[N][e]=!0),H(t,e,n)):P(t,e,n)},Y=function(t,e){g(t);for(var n,r=v(e=w(e)),o=0,i=r.length;i>o;)Q(t,n=r[o++],e[n]);return t},X=function(t){var e=q.call(this,t=x(t,!0));return!(this===B&&o(L,t)&&!o(z,t))&&(!(e||!o(this,t)||!o(L,t)||o(this,N)&&this[N][t])||e)},J=function(t,e){if(t=w(t),e=x(e,!0),t!==B||!o(L,e)||o(z,e)){var n=j(t,e);return!n||!o(L,e)||o(t,N)&&t[N][e]||(n.enumerable=!0),n}},Z=function(t){for(var e,n=D(w(t)),r=[],i=0;n.length>i;)o(L,e=n[i++])||e==N||e==u||r.push(e);return r},tt=function(t){for(var e,n=t===B,r=D(n?z:w(t)),i=[],a=0;r.length>a;)!o(L,e=r[a++])||n&&!o(B,e)||i.push(L[e]);return i};U||(s((M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===B&&e.call(z,n),o(this,N)&&o(this[N],t)&&(this[N][t]=!1),H(this,t,O(1,n))};return i&&$&&H(B,t,{configurable:!0,set:e}),G(t)}).prototype,"toString",(function(){return this._k})),T.f=J,E.f=Q,n(71).f=k.f=Z,n(104).f=X,C.f=tt,i&&!n(67)&&s(B,"propertyIsEnumerable",X,!0),d.f=function(t){return G(h(t))}),a(a.G+a.W+a.F*!U,{Symbol:M});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)h(et[nt++]);for(var rt=A(h.store),ot=0;rt.length>ot;)y(rt[ot++]);a(a.S+a.F*!U,"Symbol",{for:function(t){return o(V,t+="")?V[t]:V[t]=M(t)},keyFor:function(t){if(!K(t))throw TypeError(t+" is not a symbol!");for(var e in V)if(V[e]===t)return e},useSetter:function(){$=!0},useSimple:function(){$=!1}}),a(a.S+a.F*!U,"Object",{create:function(t,e){return void 0===e?S(t):Y(S(t),e)},defineProperty:Q,defineProperties:Y,getOwnPropertyDescriptor:J,getOwnPropertyNames:Z,getOwnPropertySymbols:tt});var it=c((function(){C.f(1)}));a(a.S+a.F*it,"Object",{getOwnPropertySymbols:function(t){return C.f(_(t))}}),I&&a(a.S+a.F*(!U||c((function(){var t=M();return"[null]"!=R([t])||"{}"!=R({a:t})||"{}"!=R(Object(t))}))),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(b(e)||void 0!==t)&&!K(t))return m(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!K(e))return e}),r[1]=e,R.apply(I,r)}}),M.prototype[F]||n(31)(M.prototype,F,M.prototype.valueOf),f(M,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(t,e,n){t.exports=n(111)("native-function-to-string",Function.toString)},function(t,e,n){var r=n(68),o=n(113),i=n(104);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var a,s=n(t),u=i.f,c=0;s.length>c;)u.call(t,a=s[c++])&&e.push(a);return e}},function(t,e,n){var r=n(1);r(r.S,"Object",{create:n(70)})},function(t,e,n){var r=n(1);r(r.S+r.F*!n(20),"Object",{defineProperty:n(21).f})},function(t,e,n){var r=n(1);r(r.S+r.F*!n(20),"Object",{defineProperties:n(175)})},function(t,e,n){var r=n(32),o=n(45).f;n(46)("getOwnPropertyDescriptor",(function(){return function(t,e){return o(r(t),e)}}))},function(t,e,n){var r=n(25),o=n(72);n(46)("getPrototypeOf",(function(){return function(t){return o(r(t))}}))},function(t,e,n){var r=n(25),o=n(68);n(46)("keys",(function(){return function(t){return o(r(t))}}))},function(t,e,n){n(46)("getOwnPropertyNames",(function(){return n(176).f}))},function(t,e,n){var r=n(12),o=n(58).onFreeze;n(46)("freeze",(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},function(t,e,n){var r=n(12),o=n(58).onFreeze;n(46)("seal",(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},function(t,e,n){var r=n(12),o=n(58).onFreeze;n(46)("preventExtensions",(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},function(t,e,n){var r=n(12);n(46)("isFrozen",(function(t){return function(e){return!r(e)||!!t&&t(e)}}))},function(t,e,n){var r=n(12);n(46)("isSealed",(function(t){return function(e){return!r(e)||!!t&&t(e)}}))},function(t,e,n){var r=n(12);n(46)("isExtensible",(function(t){return function(e){return!!r(e)&&(!t||t(e))}}))},function(t,e,n){var r=n(1);r(r.S+r.F,"Object",{assign:n(177)})},function(t,e,n){var r=n(1);r(r.S,"Object",{is:n(178)})},function(t,e,n){var r=n(1);r(r.S,"Object",{setPrototypeOf:n(138).set})},function(t,e,n){"use strict";var r=n(105),o={};o[n(15)("toStringTag")]="z",o+""!="[object z]"&&n(27)(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},function(t,e,n){var r=n(1);r(r.P,"Function",{bind:n(179)})},function(t,e,n){var r=n(21).f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||n(20)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(t){return""}}})},function(t,e,n){"use strict";var r=n(12),o=n(72),i=n(15)("hasInstance"),a=Function.prototype;i in a||n(21).f(a,i,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=o(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,n){var r=n(1),o=n(181);r(r.G+r.F*(parseInt!=o),{parseInt:o})},function(t,e,n){var r=n(1),o=n(182);r(r.G+r.F*(parseFloat!=o),{parseFloat:o})},function(t,e,n){"use strict";var r=n(9),o=n(30),i=n(52),a=n(140),s=n(57),u=n(10),c=n(71).f,l=n(45).f,f=n(21).f,p=n(85).trim,h=r.Number,d=h,y=h.prototype,v="Number"==i(n(70)(y)),m="trim"in String.prototype,g=function(t){var e=s(t,!1);if("string"==typeof e&&e.length>2){var n,r,o,i=(e=m?e.trim():p(e,3)).charCodeAt(0);if(43===i||45===i){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===i){switch(e.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+e}for(var a,u=e.slice(2),c=0,l=u.length;co)return NaN;return parseInt(u,r)}}return+e};if(!h(" 0o1")||!h("0b1")||h("+0x1")){h=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof h&&(v?u((function(){y.valueOf.call(n)})):"Number"!=i(n))?a(new d(g(e)),n,h):g(e)};for(var b,_=n(20)?c(d):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;_.length>w;w++)o(d,b=_[w])&&!o(h,b)&&f(h,b,l(d,b));h.prototype=y,y.constructor=h,n(27)(r,"Number",h)}},function(t,e,n){"use strict";var r=n(1),o=n(44),i=n(183),a=n(141),s=1..toFixed,u=Math.floor,c=[0,0,0,0,0,0],l="Number.toFixed: incorrect invocation!",f=function(t,e){for(var n=-1,r=e;++n<6;)r+=t*c[n],c[n]=r%1e7,r=u(r/1e7)},p=function(t){for(var e=6,n=0;--e>=0;)n+=c[e],c[e]=u(n/t),n=n%t*1e7},h=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==c[t]){var n=String(c[t]);e=""===e?n:e+a.call("0",7-n.length)+n}return e},d=function(t,e,n){return 0===e?n:e%2==1?d(t,e-1,n*t):d(t*t,e/2,n)};r(r.P+r.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(10)((function(){s.call({})}))),"Number",{toFixed:function(t){var e,n,r,s,u=i(this,l),c=o(t),y="",v="0";if(c<0||c>20)throw RangeError(l);if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(y="-",u=-u),u>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(u*d(2,69,1))-69)<0?u*d(2,-e,1):u/d(2,e,1),n*=4503599627370496,(e=52-e)>0){for(f(0,n),r=c;r>=7;)f(1e7,0),r-=7;for(f(d(10,r,1),0),r=e-1;r>=23;)p(1<<23),r-=23;p(1<0?y+((s=v.length)<=c?"0."+a.call("0",c-s)+v:v.slice(0,s-c)+"."+v.slice(s-c)):y+v}})},function(t,e,n){"use strict";var r=n(1),o=n(10),i=n(183),a=1..toPrecision;r(r.P+r.F*(o((function(){return"1"!==a.call(1,void 0)}))||!o((function(){a.call({})}))),"Number",{toPrecision:function(t){var e=i(this,"Number#toPrecision: incorrect invocation!");return void 0===t?a.call(e):a.call(e,t)}})},function(t,e,n){var r=n(1);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,n){var r=n(1),o=n(9).isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&o(t)}})},function(t,e,n){var r=n(1);r(r.S,"Number",{isInteger:n(184)})},function(t,e,n){var r=n(1);r(r.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,n){var r=n(1),o=n(184),i=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){return o(t)&&i(t)<=9007199254740991}})},function(t,e,n){var r=n(1);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){var r=n(1);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var r=n(1),o=n(182);r(r.S+r.F*(Number.parseFloat!=o),"Number",{parseFloat:o})},function(t,e,n){var r=n(1),o=n(181);r(r.S+r.F*(Number.parseInt!=o),"Number",{parseInt:o})},function(t,e,n){var r=n(1),o=n(185),i=Math.sqrt,a=Math.acosh;r(r.S+r.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:o(t-1+i(t-1)*i(t+1))}})},function(t,e,n){var r=n(1),o=Math.asinh;r(r.S+r.F*!(o&&1/o(0)>0),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}})},function(t,e,n){var r=n(1),o=Math.atanh;r(r.S+r.F*!(o&&1/o(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,n){var r=n(1),o=n(142);r(r.S,"Math",{cbrt:function(t){return o(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e,n){var r=n(1);r(r.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,n){var r=n(1),o=Math.exp;r(r.S,"Math",{cosh:function(t){return(o(t=+t)+o(-t))/2}})},function(t,e,n){var r=n(1),o=n(143);r(r.S+r.F*(o!=Math.expm1),"Math",{expm1:o})},function(t,e,n){var r=n(1);r(r.S,"Math",{fround:n(894)})},function(t,e,n){var r=n(142),o=Math.pow,i=o(2,-52),a=o(2,-23),s=o(2,127)*(2-a),u=o(2,-126);t.exports=Math.fround||function(t){var e,n,o=Math.abs(t),c=r(t);return os||n!=n?c*(1/0):c*n}},function(t,e,n){var r=n(1),o=Math.abs;r(r.S,"Math",{hypot:function(t,e){for(var n,r,i=0,a=0,s=arguments.length,u=0;a0?(r=n/u)*r:n;return u===1/0?1/0:u*Math.sqrt(i)}})},function(t,e,n){var r=n(1),o=Math.imul;r(r.S+r.F*n(10)((function(){return-5!=o(4294967295,5)||2!=o.length})),"Math",{imul:function(t,e){var n=+t,r=+e,o=65535&n,i=65535&r;return 0|o*i+((65535&n>>>16)*i+o*(65535&r>>>16)<<16>>>0)}})},function(t,e,n){var r=n(1);r(r.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,e,n){var r=n(1);r(r.S,"Math",{log1p:n(185)})},function(t,e,n){var r=n(1);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,n){var r=n(1);r(r.S,"Math",{sign:n(142)})},function(t,e,n){var r=n(1),o=n(143),i=Math.exp;r(r.S+r.F*n(10)((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(o(t)-o(-t))/2:(i(t-1)-i(-t-1))*(Math.E/2)}})},function(t,e,n){var r=n(1),o=n(143),i=Math.exp;r(r.S,"Math",{tanh:function(t){var e=o(t=+t),n=o(-t);return e==1/0?1:n==1/0?-1:(e-n)/(i(t)+i(-t))}})},function(t,e,n){var r=n(1);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,n){var r=n(1),o=n(69),i=String.fromCharCode,a=String.fromCodePoint;r(r.S+r.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,a=0;r>a;){if(e=+arguments[a++],o(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?i(e):i(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},function(t,e,n){var r=n(1),o=n(32),i=n(17);r(r.S,"String",{raw:function(t){for(var e=o(t.raw),n=i(e.length),r=arguments.length,a=[],s=0;n>s;)a.push(String(e[s++])),s=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})}))},function(t,e,n){"use strict";var r=n(1),o=n(144)(!1);r(r.P,"String",{codePointAt:function(t){return o(this,t)}})},function(t,e,n){"use strict";var r=n(1),o=n(17),i=n(146),a="".endsWith;r(r.P+r.F*n(148)("endsWith"),"String",{endsWith:function(t){var e=i(this,t,"endsWith"),n=arguments.length>1?arguments[1]:void 0,r=o(e.length),s=void 0===n?r:Math.min(o(n),r),u=String(t);return a?a.call(e,u,s):e.slice(s-u.length,s)===u}})},function(t,e,n){"use strict";var r=n(1),o=n(146);r(r.P+r.F*n(148)("includes"),"String",{includes:function(t){return!!~o(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(1);r(r.P,"String",{repeat:n(141)})},function(t,e,n){"use strict";var r=n(1),o=n(17),i=n(146),a="".startsWith;r(r.P+r.F*n(148)("startsWith"),"String",{startsWith:function(t){var e=i(this,t,"startsWith"),n=o(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return a?a.call(e,r,n):e.slice(n,n+r.length)===r}})},function(t,e,n){"use strict";n(28)("anchor",(function(t){return function(e){return t(this,"a","name",e)}}))},function(t,e,n){"use strict";n(28)("big",(function(t){return function(){return t(this,"big","","")}}))},function(t,e,n){"use strict";n(28)("blink",(function(t){return function(){return t(this,"blink","","")}}))},function(t,e,n){"use strict";n(28)("bold",(function(t){return function(){return t(this,"b","","")}}))},function(t,e,n){"use strict";n(28)("fixed",(function(t){return function(){return t(this,"tt","","")}}))},function(t,e,n){"use strict";n(28)("fontcolor",(function(t){return function(e){return t(this,"font","color",e)}}))},function(t,e,n){"use strict";n(28)("fontsize",(function(t){return function(e){return t(this,"font","size",e)}}))},function(t,e,n){"use strict";n(28)("italics",(function(t){return function(){return t(this,"i","","")}}))},function(t,e,n){"use strict";n(28)("link",(function(t){return function(e){return t(this,"a","href",e)}}))},function(t,e,n){"use strict";n(28)("small",(function(t){return function(){return t(this,"small","","")}}))},function(t,e,n){"use strict";n(28)("strike",(function(t){return function(){return t(this,"strike","","")}}))},function(t,e,n){"use strict";n(28)("sub",(function(t){return function(){return t(this,"sub","","")}}))},function(t,e,n){"use strict";n(28)("sup",(function(t){return function(){return t(this,"sup","","")}}))},function(t,e,n){var r=n(1);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,e,n){"use strict";var r=n(1),o=n(25),i=n(57);r(r.P+r.F*n(10)((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(t){var e=o(this),n=i(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},function(t,e,n){var r=n(1),o=n(929);r(r.P+r.F*(Date.prototype.toISOString!==o),"Date",{toISOString:o})},function(t,e,n){"use strict";var r=n(10),o=Date.prototype.getTime,i=Date.prototype.toISOString,a=function(t){return t>9?t:"0"+t};t.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=i.call(new Date(-50000000000001))}))||!r((function(){i.call(new Date(NaN))}))?function(){if(!isFinite(o.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),r=e<0?"-":e>9999?"+":"";return r+("00000"+Math.abs(e)).slice(r?-6:-4)+"-"+a(t.getUTCMonth()+1)+"-"+a(t.getUTCDate())+"T"+a(t.getUTCHours())+":"+a(t.getUTCMinutes())+":"+a(t.getUTCSeconds())+"."+(n>99?n:"0"+a(n))+"Z"}:i},function(t,e,n){var r=Date.prototype,o=r.toString,i=r.getTime;new Date(NaN)+""!="Invalid Date"&&n(27)(r,"toString",(function(){var t=i.call(this);return t==t?o.call(this):"Invalid Date"}))},function(t,e,n){var r=n(15)("toPrimitive"),o=Date.prototype;r in o||n(31)(o,r,n(932))},function(t,e,n){"use strict";var r=n(11),o=n(57);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return o(r(this),"number"!=t)}},function(t,e,n){var r=n(1);r(r.S,"Array",{isArray:n(114)})},function(t,e,n){"use strict";var r=n(42),o=n(1),i=n(25),a=n(187),s=n(149),u=n(17),c=n(150),l=n(151);o(o.S+o.F*!n(115)((function(t){Array.from(t)})),"Array",{from:function(t){var e,n,o,f,p=i(t),h="function"==typeof this?this:Array,d=arguments.length,y=d>1?arguments[1]:void 0,v=void 0!==y,m=0,g=l(p);if(v&&(y=r(y,d>2?arguments[2]:void 0,2)),null==g||h==Array&&s(g))for(n=new h(e=u(p.length));e>m;m++)c(n,m,v?y(p[m],m):p[m]);else for(f=g.call(p),n=new h;!(o=f.next()).done;m++)c(n,m,v?a(f,y,[o.value,m],!0):o.value);return n.length=m,n}})},function(t,e,n){"use strict";var r=n(1),o=n(150);r(r.S+r.F*n(10)((function(){function t(){}return!(Array.of.call(t)instanceof t)})),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)o(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){"use strict";var r=n(1),o=n(32),i=[].join;r(r.P+r.F*(n(103)!=Object||!n(37)(i)),"Array",{join:function(t){return i.call(o(this),void 0===t?",":t)}})},function(t,e,n){"use strict";var r=n(1),o=n(137),i=n(52),a=n(69),s=n(17),u=[].slice;r(r.P+r.F*n(10)((function(){o&&u.call(o)})),"Array",{slice:function(t,e){var n=s(this.length),r=i(this);if(e=void 0===e?n:e,"Array"==r)return u.call(this,t,e);for(var o=a(t,n),c=a(e,n),l=s(c-o),f=new Array(l),p=0;p1&&(r=Math.min(r,i(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in e&&e[r]===t)return r||0;return-1}})},function(t,e,n){var r=n(1);r(r.P,"Array",{copyWithin:n(190)}),n(73)("copyWithin")},function(t,e,n){var r=n(1);r(r.P,"Array",{fill:n(152)}),n(73)("fill")},function(t,e,n){"use strict";var r=n(1),o=n(47)(5),i=!0;"find"in[]&&Array(1).find((function(){i=!1})),r(r.P+r.F*i,"Array",{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(73)("find")},function(t,e,n){"use strict";var r=n(1),o=n(47)(6),i="findIndex",a=!0;i in[]&&Array(1)[i]((function(){a=!1})),r(r.P+r.F*a,"Array",{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(73)(i)},function(t,e,n){n(87)("Array")},function(t,e,n){var r=n(9),o=n(140),i=n(21).f,a=n(71).f,s=n(147),u=n(116),c=r.RegExp,l=c,f=c.prototype,p=/a/g,h=/a/g,d=new c(p)!==p;if(n(20)&&(!d||n(10)((function(){return h[n(15)("match")]=!1,c(p)!=p||c(h)==h||"/a/i"!=c(p,"i")})))){c=function(t,e){var n=this instanceof c,r=s(t),i=void 0===e;return!n&&r&&t.constructor===c&&i?t:o(d?new l(r&&!i?t.source:t,e):l((r=t instanceof c)?t.source:t,r&&i?u.call(t):e),n?this:f,c)};for(var y=function(t){t in c||i(c,t,{configurable:!0,get:function(){return l[t]},set:function(e){l[t]=e}})},v=a(l),m=0;v.length>m;)y(v[m++]);f.constructor=c,c.prototype=f,n(27)(r,"RegExp",c)}n(87)("RegExp")},function(t,e,n){"use strict";n(193);var r=n(11),o=n(116),i=n(20),a=/./.toString,s=function(t){n(27)(RegExp.prototype,"toString",t,!0)};n(10)((function(){return"/a/b"!=a.call({source:"a",flags:"b"})}))?s((function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!i&&t instanceof RegExp?o.call(t):void 0)})):"toString"!=a.name&&s((function(){return a.call(this)}))},function(t,e,n){"use strict";var r=n(11),o=n(17),i=n(155),a=n(117);n(118)("match",1,(function(t,e,n,s){return[function(n){var r=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=s(n,t,this);if(e.done)return e.value;var u=r(t),c=String(this);if(!u.global)return a(u,c);var l=u.unicode;u.lastIndex=0;for(var f,p=[],h=0;null!==(f=a(u,c));){var d=String(f[0]);p[h]=d,""===d&&(u.lastIndex=i(c,o(u.lastIndex),l)),h++}return 0===h?null:p}]}))},function(t,e,n){"use strict";var r=n(11),o=n(25),i=n(17),a=n(44),s=n(155),u=n(117),c=Math.max,l=Math.min,f=Math.floor,p=/\$([$&`']|\d\d?|<[^>]*>)/g,h=/\$([$&`']|\d\d?)/g;n(118)("replace",2,(function(t,e,n,d){return[function(r,o){var i=t(this),a=null==r?void 0:r[e];return void 0!==a?a.call(r,i,o):n.call(String(i),r,o)},function(t,e){var o=d(n,t,this,e);if(o.done)return o.value;var f=r(t),p=String(this),h="function"==typeof e;h||(e=String(e));var v=f.global;if(v){var m=f.unicode;f.lastIndex=0}for(var g=[];;){var b=u(f,p);if(null===b)break;if(g.push(b),!v)break;""===String(b[0])&&(f.lastIndex=s(p,i(f.lastIndex),m))}for(var _,w="",x=0,O=0;O=x&&(w+=p.slice(x,k)+j,x=k+S.length)}return w+p.slice(x)}];function y(t,e,r,i,a,s){var u=r+t.length,c=i.length,l=h;return void 0!==a&&(a=o(a),l=p),n.call(s,l,(function(n,o){var s;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(u);case"<":s=a[o.slice(1,-1)];break;default:var l=+o;if(0===l)return n;if(l>c){var p=f(l/10);return 0===p?n:p<=c?void 0===i[p-1]?o.charAt(1):i[p-1]+o.charAt(1):n}s=i[l-1]}return void 0===s?"":s}))}}))},function(t,e,n){"use strict";var r=n(11),o=n(178),i=n(117);n(118)("search",1,(function(t,e,n,a){return[function(n){var r=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=a(n,t,this);if(e.done)return e.value;var s=r(t),u=String(this),c=s.lastIndex;o(c,0)||(s.lastIndex=0);var l=i(s,u);return o(s.lastIndex,c)||(s.lastIndex=c),null===l?-1:l.index}]}))},function(t,e,n){"use strict";var r=n(147),o=n(11),i=n(106),a=n(155),s=n(17),u=n(117),c=n(154),l=n(10),f=Math.min,p=[].push,h="length",d=!l((function(){RegExp(4294967295,"y")}));n(118)("split",2,(function(t,e,n,l){var y;return y="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[h]||2!="ab".split(/(?:ab)*/)[h]||4!=".".split(/(.?)(.?)/)[h]||".".split(/()()/)[h]>1||"".split(/.?/)[h]?function(t,e){var o=String(this);if(void 0===t&&0===e)return[];if(!r(t))return n.call(o,t,e);for(var i,a,s,u=[],l=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,d=void 0===e?4294967295:e>>>0,y=new RegExp(t.source,l+"g");(i=c.call(y,o))&&!((a=y.lastIndex)>f&&(u.push(o.slice(f,i.index)),i[h]>1&&i.index=d));)y.lastIndex===i.index&&y.lastIndex++;return f===o[h]?!s&&y.test("")||u.push(""):u.push(o.slice(f)),u[h]>d?u.slice(0,d):u}:"0".split(void 0,0)[h]?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,r){var o=t(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,o,r):y.call(String(o),n,r)},function(t,e){var r=l(y,t,this,e,y!==n);if(r.done)return r.value;var c=o(t),p=String(this),h=i(c,RegExp),v=c.unicode,m=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(d?"y":"g"),g=new h(d?c:"^(?:"+c.source+")",m),b=void 0===e?4294967295:e>>>0;if(0===b)return[];if(0===p.length)return null===u(g,p)?[p]:[];for(var _=0,w=0,x=[];w0?arguments[0]:void 0)}}),{get:function(t){var e=r.getEntry(o(this,"Map"),t);return e&&e.v},set:function(t,e){return r.def(o(this,"Map"),0===t?0:t,e)}},r,!0)},function(t,e,n){"use strict";var r=n(197),o=n(74);t.exports=n(121)("Set",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return r.def(o(this,"Set"),t=0===t?0:t,t)}},r)},function(t,e,n){"use strict";var r,o=n(9),i=n(47)(0),a=n(27),s=n(58),u=n(177),c=n(198),l=n(12),f=n(74),p=n(74),h=!o.ActiveXObject&&"ActiveXObject"in o,d=s.getWeak,y=Object.isExtensible,v=c.ufstore,m=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},g={get:function(t){if(l(t)){var e=d(t);return!0===e?v(f(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return c.def(f(this,"WeakMap"),t,e)}},b=t.exports=n(121)("WeakMap",m,g,c,!0,!0);p&&h&&(u((r=c.getConstructor(m,"WeakMap")).prototype,g),s.NEED=!0,i(["delete","has","get","set"],(function(t){var e=b.prototype,n=e[t];a(e,t,(function(e,o){if(l(e)&&!y(e)){this._f||(this._f=new r);var i=this._f[t](e,o);return"set"==t?this:i}return n.call(this,e,o)}))})))},function(t,e,n){"use strict";var r=n(198),o=n(74);n(121)("WeakSet",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return r.def(o(this,"WeakSet"),t,!0)}},r,!1,!0)},function(t,e,n){"use strict";var r=n(1),o=n(122),i=n(157),a=n(11),s=n(69),u=n(17),c=n(12),l=n(9).ArrayBuffer,f=n(106),p=i.ArrayBuffer,h=i.DataView,d=o.ABV&&l.isView,y=p.prototype.slice,v=o.VIEW;r(r.G+r.W+r.F*(l!==p),{ArrayBuffer:p}),r(r.S+r.F*!o.CONSTR,"ArrayBuffer",{isView:function(t){return d&&d(t)||c(t)&&v in t}}),r(r.P+r.U+r.F*n(10)((function(){return!new p(2).slice(1,void 0).byteLength})),"ArrayBuffer",{slice:function(t,e){if(void 0!==y&&void 0===e)return y.call(a(this),t);for(var n=a(this).byteLength,r=s(t,n),o=s(void 0===e?n:e,n),i=new(f(this,p))(u(o-r)),c=new h(this),l=new h(i),d=0;r=e.length)return{value:void 0,done:!0}}while(!((t=e[this._i++])in this._t));return{value:t,done:!1}})),r(r.S,"Reflect",{enumerate:function(t){return new i(t)}})},function(t,e,n){var r=n(45),o=n(72),i=n(30),a=n(1),s=n(12),u=n(11);a(a.S,"Reflect",{get:function t(e,n){var a,c,l=arguments.length<3?e:arguments[2];return u(e)===l?e[n]:(a=r.f(e,n))?i(a,"value")?a.value:void 0!==a.get?a.get.call(l):void 0:s(c=o(e))?t(c,n,l):void 0}})},function(t,e,n){var r=n(45),o=n(1),i=n(11);o(o.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return r.f(i(t),e)}})},function(t,e,n){var r=n(1),o=n(72),i=n(11);r(r.S,"Reflect",{getPrototypeOf:function(t){return o(i(t))}})},function(t,e,n){var r=n(1);r(r.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,n){var r=n(1),o=n(11),i=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(t){return o(t),!i||i(t)}})},function(t,e,n){var r=n(1);r(r.S,"Reflect",{ownKeys:n(200)})},function(t,e,n){var r=n(1),o=n(11),i=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(t){o(t);try{return i&&i(t),!0}catch(t){return!1}}})},function(t,e,n){var r=n(21),o=n(45),i=n(72),a=n(30),s=n(1),u=n(65),c=n(11),l=n(12);s(s.S,"Reflect",{set:function t(e,n,s){var f,p,h=arguments.length<4?e:arguments[3],d=o.f(c(e),n);if(!d){if(l(p=i(e)))return t(p,n,s,h);d=u(0)}if(a(d,"value")){if(!1===d.writable||!l(h))return!1;if(f=o.f(h,n)){if(f.get||f.set||!1===f.writable)return!1;f.value=s,r.f(h,n,f)}else r.f(h,n,u(0,s));return!0}return void 0!==d.set&&(d.set.call(h,s),!0)}})},function(t,e,n){var r=n(1),o=n(138);o&&r(r.S,"Reflect",{setPrototypeOf:function(t,e){o.check(t,e);try{return o.set(t,e),!0}catch(t){return!1}}})},function(t,e,n){n(992),t.exports=n(18).Array.includes},function(t,e,n){"use strict";var r=n(1),o=n(112)(!0);r(r.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(73)("includes")},function(t,e,n){n(994),t.exports=n(18).Array.flatMap},function(t,e,n){"use strict";var r=n(1),o=n(995),i=n(25),a=n(17),s=n(43),u=n(188);r(r.P,"Array",{flatMap:function(t){var e,n,r=i(this);return s(t),e=a(r.length),n=u(r,0),o(n,r,r,e,0,1,t,arguments[1]),n}}),n(73)("flatMap")},function(t,e,n){"use strict";var r=n(114),o=n(12),i=n(17),a=n(42),s=n(15)("isConcatSpreadable");t.exports=function t(e,n,u,c,l,f,p,h){for(var d,y,v=l,m=0,g=!!p&&a(p,h,3);m0)v=t(e,n,d,i(d.length),v,f-1)-1;else{if(v>=9007199254740991)throw TypeError();e[v]=d}v++}m++}return v}},function(t,e,n){n(997),t.exports=n(18).String.padStart},function(t,e,n){"use strict";var r=n(1),o=n(201),i=n(120),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(i);r(r.P+r.F*a,"String",{padStart:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,e,n){n(999),t.exports=n(18).String.padEnd},function(t,e,n){"use strict";var r=n(1),o=n(201),i=n(120),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(i);r(r.P+r.F*a,"String",{padEnd:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,e,n){n(1001),t.exports=n(18).String.trimLeft},function(t,e,n){"use strict";n(85)("trimLeft",(function(t){return function(){return t(this,1)}}),"trimStart")},function(t,e,n){n(1003),t.exports=n(18).String.trimRight},function(t,e,n){"use strict";n(85)("trimRight",(function(t){return function(){return t(this,2)}}),"trimEnd")},function(t,e,n){n(1005),t.exports=n(134).f("asyncIterator")},function(t,e,n){n(173)("asyncIterator")},function(t,e,n){n(1007),t.exports=n(18).Object.getOwnPropertyDescriptors},function(t,e,n){var r=n(1),o=n(200),i=n(32),a=n(45),s=n(150);r(r.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n,r=i(t),u=a.f,c=o(r),l={},f=0;c.length>f;)void 0!==(n=u(r,e=c[f++]))&&s(l,e,n);return l}})},function(t,e,n){n(1009),t.exports=n(18).Object.values},function(t,e,n){var r=n(1),o=n(202)(!1);r(r.S,"Object",{values:function(t){return o(t)}})},function(t,e,n){n(1011),t.exports=n(18).Object.entries},function(t,e,n){var r=n(1),o=n(202)(!0);r(r.S,"Object",{entries:function(t){return o(t)}})},function(t,e,n){"use strict";n(194),n(1013),t.exports=n(18).Promise.finally},function(t,e,n){"use strict";var r=n(1),o=n(18),i=n(9),a=n(106),s=n(196);r(r.P+r.R,"Promise",{finally:function(t){var e=a(this,o.Promise||i.Promise),n="function"==typeof t;return this.then(n?function(n){return s(e,t()).then((function(){return n}))}:t,n?function(n){return s(e,t()).then((function(){throw n}))}:t)}})},function(t,e,n){n(1015),n(1016),n(1017),t.exports=n(18)},function(t,e,n){var r=n(9),o=n(1),i=n(120),a=[].slice,s=/MSIE .\./.test(i),u=function(t){return function(e,n){var r=arguments.length>2,o=!!r&&a.call(arguments,2);return t(r?function(){("function"==typeof e?e:Function(e)).apply(this,o)}:e,n)}};o(o.G+o.B+o.F*s,{setTimeout:u(r.setTimeout),setInterval:u(r.setInterval)})},function(t,e,n){var r=n(1),o=n(156);r(r.G+r.B,{setImmediate:o.set,clearImmediate:o.clear})},function(t,e,n){for(var r=n(153),o=n(68),i=n(27),a=n(9),s=n(31),u=n(86),c=n(15),l=c("iterator"),f=c("toStringTag"),p=u.Array,h={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},d=o(h),y=0;yj.length&&j.push(t)}function M(t,e,n){return null==t?0:function t(e,n,r,o){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var u=!1;if(null===e)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case i:case a:u=!0}}if(u)return r(o,e,""===n?"."+I(e,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(e))for(var c=0;c