From 709ecc5d9dba39fa00f45f17f23d5ec356c38623 Mon Sep 17 00:00:00 2001 From: 902seanryan Date: Wed, 28 Jun 2023 14:51:09 -0300 Subject: [PATCH 01/13] fix caption style bug --- CHANGELOG.md | 6 + dist/SpringRoll-Container-umd.js | 11184 ++++++++++++++++++++++++- dist/SpringRoll-Container-umd.js.map | 2 +- dist/index.js | 11143 +++++++++++++++++++++++- dist/index.js.map | 2 +- e2e/client.js.map | 2 +- package-lock.json | 9499 +++++++++++++++++++-- package.json | 16 +- rollup.config.js | 16 +- src/plugins/CaptionsStylePlugin.js | 30 +- 10 files changed, 31143 insertions(+), 757 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f6e545..a22049d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [ 2.4.5] unreleased + +### Fixed + +- CaptionsStylesPlugin now correctly updates radio button status when the style is changed programatically + ## [2.4.4] 2023-02-27 ### Fixed diff --git a/dist/SpringRoll-Container-umd.js b/dist/SpringRoll-Container-umd.js index e5f7f13..5024510 100644 --- a/dist/SpringRoll-Container-umd.js +++ b/dist/SpringRoll-Container-umd.js @@ -1,2 +1,11184 @@ -!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).springroll=t.springroll||{})}(this,(function(t){"use strict";var e="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==e&&e,n={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(n.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],o=ArrayBuffer.isView||function(t){return t&&r.indexOf(Object.prototype.toString.call(t))>-1};function i(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function s(t){return"string"!=typeof t&&(t=String(t)),t}function a(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return n.iterable&&(e[Symbol.iterator]=function(){return e}),e}function u(t){this.map={},t instanceof u?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function l(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function c(t){return new Promise((function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function d(t){var e=new FileReader,n=c(e);return e.readAsArrayBuffer(t),n}function f(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function h(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:n.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:n.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():n.arrayBuffer&&n.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=f(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||o(t))?this._bodyArrayBuffer=f(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var t=l(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(d)}),this.text=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,n=c(e);return e.readAsText(t),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r-1?e:t}(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){var r=/([?&])_=[^&]*/;if(r.test(this.url))this.url=this.url.replace(r,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function y(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(o))}})),e}function g(t,e){if(!(this instanceof g))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new u(e.headers),this.url=e.url||"",this._initBody(t)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},h.call(v.prototype),h.call(g.prototype),g.prototype.clone=function(){return new g(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},g.error=function(){var t=new g(null,{status:0,statusText:""});return t.type="error",t};var m=[301,302,303,307,308];g.redirect=function(t,e){if(-1===m.indexOf(e))throw new RangeError("Invalid status code");return new g(null,{status:e,headers:{location:t}})};var b=e.DOMException;try{new b}catch(t){(b=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack}).prototype=Object.create(Error.prototype),b.prototype.constructor=b}function S(t,r){return new Promise((function(o,i){var a=new v(t,r);if(a.signal&&a.signal.aborted)return i(new b("Aborted","AbortError"));var l=new XMLHttpRequest;function c(){l.abort()}l.onload=function(){var t,e,n={status:l.status,statusText:l.statusText,headers:(t=l.getAllResponseHeaders()||"",e=new u,t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var n=t.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();e.append(r,o)}})),e)};n.url="responseURL"in l?l.responseURL:n.headers.get("X-Request-URL");var r="response"in l?l.response:l.responseText;setTimeout((function(){o(new g(r,n))}),0)},l.onerror=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},l.ontimeout=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},l.onabort=function(){setTimeout((function(){i(new b("Aborted","AbortError"))}),0)},l.open(a.method,function(t){try{return""===t&&e.location.href?e.location.href:t}catch(e){return t}}(a.url),!0),"include"===a.credentials?l.withCredentials=!0:"omit"===a.credentials&&(l.withCredentials=!1),"responseType"in l&&(n.blob?l.responseType="blob":n.arrayBuffer&&a.headers.get("Content-Type")&&-1!==a.headers.get("Content-Type").indexOf("application/octet-stream")&&(l.responseType="arraybuffer")),!r||"object"!=typeof r.headers||r.headers instanceof u?a.headers.forEach((function(t,e){l.setRequestHeader(e,t)})):Object.getOwnPropertyNames(r.headers).forEach((function(t){l.setRequestHeader(t,s(r.headers[t]))})),a.signal&&(a.signal.addEventListener("abort",c),l.onreadystatechange=function(){4===l.readyState&&a.signal.removeEventListener("abort",c)}),l.send(void 0===a._bodyInit?null:a._bodyInit)}))}S.polyfill=!0,e.fetch||(e.fetch=S,e.Headers=u,e.Request=v,e.Response=g);var w="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function k(t,e){return t(e={exports:{}},e.exports),e.exports}var E,B,P=function(t){return t&&t.Math==Math&&t},x=P("object"==typeof globalThis&&globalThis)||P("object"==typeof window&&window)||P("object"==typeof self&&self)||P("object"==typeof w&&w)||function(){return this}()||Function("return this")(),L={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},_="object"==typeof document&&document.all,O={all:_,IS_HTMLDDA:void 0===_&&void 0!==_},A=O.all,C=O.IS_HTMLDDA?function(t){return"function"==typeof t||t===A}:function(t){return"function"==typeof t},D=O.all,V=O.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:C(t)||t===D}:function(t){return"object"==typeof t?null!==t:C(t)},T=x.document,I=V(T)&&V(T.createElement),R=function(t){return I?T.createElement(t):{}},j=R("span").classList,M=j&&j.constructor&&j.constructor.prototype,N=M===Object.prototype?void 0:M,K=function(t){try{return!!t()}catch(t){return!0}},F=!K((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),G=Function.prototype,U=G.call,H=F&&G.bind.bind(U,U),z=F?H:function(t){return function(){return U.apply(t,arguments)}},q=z({}.toString),W=z("".slice),X=function(t){return W(q(t),8,-1)},Y=function(t){if("Function"===X(t))return z(t)},J=String,$=function(t){try{return J(t)}catch(t){return"Object"}},Q=TypeError,Z=function(t){if(C(t))return t;throw Q($(t)+" is not a function")},tt=Y(Y.bind),et=function(t,e){return Z(t),void 0===e?t:F?tt(t,e):function(){return t.apply(e,arguments)}},nt=Object,rt=z("".split),ot=K((function(){return!nt("z").propertyIsEnumerable(0)}))?function(t){return"String"==X(t)?rt(t,""):nt(t)}:nt,it=function(t){return null==t},st=TypeError,at=function(t){if(it(t))throw st("Can't call method on "+t);return t},ut=Object,lt=function(t){return ut(at(t))},ct=Math.ceil,dt=Math.floor,ft=Math.trunc||function(t){var e=+t;return(e>0?dt:ct)(e)},ht=function(t){var e=+t;return e!=e||0===e?0:ft(e)},pt=Math.min,vt=function(t){return(e=t.length)>0?pt(ht(e),9007199254740991):0;var e},yt=Array.isArray||function(t){return"Array"==X(t)},gt=Object.defineProperty,mt=function(t,e){try{gt(x,t,{value:e,configurable:!0,writable:!0})}catch(n){x[t]=e}return e},bt="__core-js_shared__",St=x[bt]||mt(bt,{}),wt=k((function(t){(t.exports=function(t,e){return St[t]||(St[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.28.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.28.0/LICENSE",source:"https://github.com/zloirock/core-js"})})),kt=z({}.hasOwnProperty),Et=Object.hasOwn||function(t,e){return kt(lt(t),e)},Bt=0,Pt=Math.random(),xt=z(1..toString),Lt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+xt(++Bt+Pt,36)},_t="undefined"!=typeof navigator&&String(navigator.userAgent)||"",Ot=x.process,At=x.Deno,Ct=Ot&&Ot.versions||At&&At.version,Dt=Ct&&Ct.v8;Dt&&(B=(E=Dt.split("."))[0]>0&&E[0]<4?1:+(E[0]+E[1])),!B&&_t&&(!(E=_t.match(/Edge\/(\d+)/))||E[1]>=74)&&(E=_t.match(/Chrome\/(\d+)/))&&(B=+E[1]);var Vt=B,Tt=!!Object.getOwnPropertySymbols&&!K((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Vt&&Vt<41})),It=Tt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Rt=x.Symbol,jt=wt("wks"),Mt=It?Rt.for||Rt:Rt&&Rt.withoutSetter||Lt,Nt=function(t){return Et(jt,t)||(jt[t]=Tt&&Et(Rt,t)?Rt[t]:Mt("Symbol."+t)),jt[t]},Kt={};Kt[Nt("toStringTag")]="z";var Ft="[object z]"===String(Kt),Gt=Nt("toStringTag"),Ut=Object,Ht="Arguments"==X(function(){return arguments}()),zt=Ft?X:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Ut(t),Gt))?n:Ht?X(e):"Object"==(r=X(e))&&C(e.callee)?"Arguments":r},qt=function(t){return C(t)?t:void 0},Wt=function(t,e){return arguments.length<2?qt(x[t]):x[t]&&x[t][e]},Xt=z(Function.toString);C(St.inspectSource)||(St.inspectSource=function(t){return Xt(t)});var Yt=St.inspectSource,Jt=function(){},$t=[],Qt=Wt("Reflect","construct"),Zt=/^\s*(?:class|function)\b/,te=z(Zt.exec),ee=!Zt.exec(Jt),ne=function(t){if(!C(t))return!1;try{return Qt(Jt,$t,t),!0}catch(t){return!1}},re=function(t){if(!C(t))return!1;switch(zt(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ee||!!te(Zt,Yt(t))}catch(t){return!0}};re.sham=!0;var oe=!Qt||K((function(){var t;return ne(ne.call)||!ne(Object)||!ne((function(){t=!0}))||t}))?re:ne,ie=Nt("species"),se=Array,ae=function(t,e){return new(function(t){var e;return yt(t)&&(e=t.constructor,(oe(e)&&(e===se||yt(e.prototype))||V(e)&&null===(e=e[ie]))&&(e=void 0)),void 0===e?se:e}(t))(0===e?0:e)},ue=z([].push),le=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,s=7==t,a=5==t||i;return function(u,l,c,d){for(var f,h,p=lt(u),v=ot(p),y=et(l,c),g=vt(v),m=0,b=d||ae,S=e?b(u,g):n||s?b(u,0):void 0;g>m;m++)if((a||m in v)&&(h=y(f=v[m],m,p),t))if(e)S[m]=h;else if(h)switch(t){case 3:return!0;case 5:return f;case 6:return m;case 2:ue(S,f)}else switch(t){case 4:return!1;case 7:ue(S,f)}return i?-1:r||o?o:S}},ce={forEach:le(0),map:le(1),filter:le(2),some:le(3),every:le(4),find:le(5),findIndex:le(6),filterReject:le(7)},de=function(t,e){var n=[][t];return!!n&&K((function(){n.call(null,e||function(){return 1},1)}))},fe=ce.forEach,he=de("forEach")?[].forEach:function(t){return fe(this,t,arguments.length>1?arguments[1]:void 0)},pe=!K((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),ve=!pe&&!K((function(){return 7!=Object.defineProperty(R("div"),"a",{get:function(){return 7}}).a})),ye=pe&&K((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),ge=String,me=TypeError,be=function(t){if(V(t))return t;throw me(ge(t)+" is not an object")},Se=Function.prototype.call,we=F?Se.bind(Se):function(){return Se.apply(Se,arguments)},ke=z({}.isPrototypeOf),Ee=Object,Be=It?function(t){return"symbol"==typeof t}:function(t){var e=Wt("Symbol");return C(e)&&ke(e.prototype,Ee(t))},Pe=function(t,e){var n=t[e];return it(n)?void 0:Z(n)},xe=TypeError,Le=TypeError,_e=Nt("toPrimitive"),Oe=function(t,e){if(!V(t)||Be(t))return t;var n,r=Pe(t,_e);if(r){if(void 0===e&&(e="default"),n=we(r,t,e),!V(n)||Be(n))return n;throw Le("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&C(n=t.toString)&&!V(r=we(n,t)))return r;if(C(n=t.valueOf)&&!V(r=we(n,t)))return r;if("string"!==e&&C(n=t.toString)&&!V(r=we(n,t)))return r;throw xe("Can't convert object to primitive value")}(t,e)},Ae=function(t){var e=Oe(t,"string");return Be(e)?e:e+""},Ce=TypeError,De=Object.defineProperty,Ve=Object.getOwnPropertyDescriptor,Te="enumerable",Ie="configurable",Re="writable",je={f:pe?ye?function(t,e,n){if(be(t),e=Ae(e),be(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Re in n&&!n[Re]){var r=Ve(t,e);r&&r[Re]&&(t[e]=n.value,n={configurable:Ie in n?n[Ie]:r[Ie],enumerable:Te in n?n[Te]:r[Te],writable:!1})}return De(t,e,n)}:De:function(t,e,n){if(be(t),e=Ae(e),be(n),ve)try{return De(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Ce("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Me=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Ne=pe?function(t,e,n){return je.f(t,e,Me(1,n))}:function(t,e,n){return t[e]=n,t},Ke=function(t){if(t&&t.forEach!==he)try{Ne(t,"forEach",he)}catch(e){t.forEach=he}};for(var Fe in L)L[Fe]&&Ke(x[Fe]&&x[Fe].prototype);Ke(N);var Ge,Ue=function(t){return ot(at(t))},He=Math.max,ze=Math.min,qe=function(t,e){var n=ht(t);return n<0?He(n+e,0):ze(n,e)},We=function(t){return function(e,n,r){var o,i=Ue(e),s=vt(i),a=qe(r,s);if(t&&n!=n){for(;s>a;)if((o=i[a++])!=o)return!0}else for(;s>a;a++)if((t||a in i)&&i[a]===n)return t||a||0;return!t&&-1}},Xe={includes:We(!0),indexOf:We(!1)},Ye={},Je=Xe.indexOf,$e=z([].push),Qe=function(t,e){var n,r=Ue(t),o=0,i=[];for(n in r)!Et(Ye,n)&&Et(r,n)&&$e(i,n);for(;e.length>o;)Et(r,n=e[o++])&&(~Je(i,n)||$e(i,n));return i},Ze=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],tn=Object.keys||function(t){return Qe(t,Ze)},en=pe&&!ye?Object.defineProperties:function(t,e){be(t);for(var n,r=Ue(e),o=tn(e),i=o.length,s=0;i>s;)je.f(t,n=o[s++],r[n]);return t},nn={f:en},rn=Wt("document","documentElement"),on=wt("keys"),sn=function(t){return on[t]||(on[t]=Lt(t))},an="prototype",un="script",ln=sn("IE_PROTO"),cn=function(){},dn=function(t){return"<"+un+">"+t+""},fn=function(t){t.write(dn("")),t.close();var e=t.parentWindow.Object;return t=null,e},hn=function(){try{Ge=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;hn="undefined"!=typeof document?document.domain&&Ge?fn(Ge):(e=R("iframe"),n="java"+un+":",e.style.display="none",rn.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(dn("document.F=Object")),t.close(),t.F):fn(Ge);for(var r=Ze.length;r--;)delete hn[an][Ze[r]];return hn()};Ye[ln]=!0;var pn=Object.create||function(t,e){var n;return null!==t?(cn[an]=be(t),n=new cn,cn[an]=null,n[ln]=t):n=hn(),void 0===e?n:nn.f(n,e)},vn=je.f,yn=Nt("unscopables"),gn=Array.prototype;null==gn[yn]&&vn(gn,yn,{configurable:!0,value:pn(null)});var mn,bn,Sn,wn=function(t){gn[yn][t]=!0},kn={},En=x.WeakMap,Bn=C(En)&&/native code/.test(String(En)),Pn="Object already initialized",xn=x.TypeError,Ln=x.WeakMap;if(Bn||St.state){var _n=St.state||(St.state=new Ln);_n.get=_n.get,_n.has=_n.has,_n.set=_n.set,mn=function(t,e){if(_n.has(t))throw xn(Pn);return e.facade=t,_n.set(t,e),e},bn=function(t){return _n.get(t)||{}},Sn=function(t){return _n.has(t)}}else{var On=sn("state");Ye[On]=!0,mn=function(t,e){if(Et(t,On))throw xn(Pn);return e.facade=t,Ne(t,On,e),e},bn=function(t){return Et(t,On)?t[On]:{}},Sn=function(t){return Et(t,On)}}var An,Cn,Dn,Vn={set:mn,get:bn,has:Sn,enforce:function(t){return Sn(t)?bn(t):mn(t,{})},getterFor:function(t){return function(e){var n;if(!V(e)||(n=bn(e)).type!==t)throw xn("Incompatible receiver, "+t+" required");return n}}},Tn={}.propertyIsEnumerable,In=Object.getOwnPropertyDescriptor,Rn={f:In&&!Tn.call({1:2},1)?function(t){var e=In(this,t);return!!e&&e.enumerable}:Tn},jn=Object.getOwnPropertyDescriptor,Mn={f:pe?jn:function(t,e){if(t=Ue(t),e=Ae(e),ve)try{return jn(t,e)}catch(t){}if(Et(t,e))return Me(!we(Rn.f,t,e),t[e])}},Nn=Function.prototype,Kn=pe&&Object.getOwnPropertyDescriptor,Fn=Et(Nn,"name"),Gn={EXISTS:Fn,PROPER:Fn&&"something"===function(){}.name,CONFIGURABLE:Fn&&(!pe||pe&&Kn(Nn,"name").configurable)},Un=k((function(t){var e=Gn.CONFIGURABLE,n=Vn.enforce,r=Vn.get,o=String,i=Object.defineProperty,s=z("".slice),a=z("".replace),u=z([].join),l=pe&&!K((function(){return 8!==i((function(){}),"length",{value:8}).length})),c=String(String).split("String"),d=t.exports=function(t,r,d){"Symbol("===s(o(r),0,7)&&(r="["+a(o(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),d&&d.getter&&(r="get "+r),d&&d.setter&&(r="set "+r),(!Et(t,"name")||e&&t.name!==r)&&(pe?i(t,"name",{value:r,configurable:!0}):t.name=r),l&&d&&Et(d,"arity")&&t.length!==d.arity&&i(t,"length",{value:d.arity});try{d&&Et(d,"constructor")&&d.constructor?pe&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var f=n(t);return Et(f,"source")||(f.source=u(c,"string"==typeof r?r:"")),t};Function.prototype.toString=d((function(){return C(this)&&r(this).source||Yt(this)}),"toString")})),Hn=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(C(n)&&Un(n,i,r),r.global)o?t[e]=n:mt(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:je.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},zn=Ze.concat("length","prototype"),qn={f:Object.getOwnPropertyNames||function(t){return Qe(t,zn)}},Wn={f:Object.getOwnPropertySymbols},Xn=z([].concat),Yn=Wt("Reflect","ownKeys")||function(t){var e=qn.f(be(t)),n=Wn.f;return n?Xn(e,n(t)):e},Jn=function(t,e,n){for(var r=Yn(e),o=je.f,i=Mn.f,s=0;s=e.length?(t.target=void 0,Vr(void 0,!0)):Vr("keys"==n?r:"values"==n?e[r]:[r,e[r]],!1)}),"values"),Nr=kn.Arguments=kn.Array;if(wn("keys"),wn("values"),wn("entries"),pe&&"values"!==Nr.name)try{Tr(Nr,"name",{value:"values"})}catch(t){}var Kr=Nt("iterator"),Fr=Nt("toStringTag"),Gr=Mr.values,Ur=function(t,e){if(t){if(t[Kr]!==Gr)try{Ne(t,Kr,Gr)}catch(e){t[Kr]=Gr}if(t[Fr]||Ne(t,Fr,e),L[e])for(var n in Mr)if(t[n]!==Mr[n])try{Ne(t,n,Mr[n])}catch(e){t[n]=Mr[n]}}};for(var Hr in L)Ur(x[Hr]&&x[Hr].prototype,Hr);Ur(N,"DOMTokenList");var zr=x;function qr(){qr=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,o){var i=e&&e.prototype instanceof f?e:f,s=Object.create(i.prototype),a=new P(o||[]);return r(s,"_invoke",{value:w(t,n,a)}),s}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var d={};function f(){}function h(){}function p(){}var v={};u(v,i,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(x([])));g&&g!==e&&n.call(g,i)&&(v=g);var m=p.prototype=f.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function o(r,i,s,a){var u=c(t[r],t,i);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==typeof d&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){o("next",t,s,a)}),(function(t){o("throw",t,s,a)})):e.resolve(d).then((function(t){l.value=t,s(l)}),(function(t){return o("throw",t,s,a)}))}a(u.arg)}var i;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){o(t,n,e,r)}))}return i=i?i.then(r,r):r()}})}function w(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 L()}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var a=k(s,n);if(a){if(a===d)continue;return a}}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 u=c(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function k(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,k(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=c(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function E(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 B(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function x(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var a=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(a&&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),B(n),d}},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;B(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:x(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function Wr(t){return Wr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wr(t)}function Xr(t,e,n,r,o,i,s){try{var a=t[i](s),u=a.value}catch(t){return void n(t)}a.done?e(u):Promise.resolve(u).then(r,o)}function Yr(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function s(t){Xr(i,r,o,s,a,"next",t)}function a(t){Xr(i,r,o,s,a,"throw",t)}s(void 0)}))}}function Jr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $r(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,i=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}var lo=Xe.indexOf,co=Y([].indexOf),fo=!!co&&1/co([1],1,-0)<0,ho=fo||!de("indexOf");ir({target:"Array",proto:!0,forced:ho},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return fo?co(this,t,e)||0:lo(this,t,e)}});var po=TypeError,vo=function(t){if(t>9007199254740991)throw po("Maximum allowed index exceeded");return t},yo=function(t,e,n){var r=Ae(e);r in t?je.f(t,r,Me(0,n)):t[r]=n},go=Nt("species"),mo=function(t){return Vt>=51||!K((function(){var e=[];return(e.constructor={})[go]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},bo=Nt("isConcatSpreadable"),So=Vt>=51||!K((function(){var t=[];return t[bo]=!1,t.concat()[0]!==t})),wo=function(t){if(!V(t))return!1;var e=t[bo];return void 0!==e?!!e:yt(t)},ko=!So||!mo("concat");ir({target:"Array",proto:!0,arity:1,forced:ko},{concat:function(t){var e,n,r,o,i,s=lt(this),a=ae(s,0),u=0;for(e=-1,r=arguments.length;eo;)for(var a,u=ot(arguments[o++]),l=i?Po(tn(u),i(u)):tn(u),c=l.length,d=0;c>d;)a=l[d++],pe&&!we(s,u,a)||(n[a]=u[a]);return n}:Eo;ir({target:"Object",stat:!0,arity:2,forced:Object.assign!==xo},{assign:xo});var Lo=Ft?{}.toString:function(){return"[object "+zt(this)+"]"};Ft||Hn(Object.prototype,"toString",Lo,{unsafe:!0});var _o,Oo,Ao,Co,Do="undefined"!=typeof process&&"process"==X(process),Vo=function(t,e,n){return n.get&&Un(n.get,e,{getter:!0}),n.set&&Un(n.set,e,{setter:!0}),je.f(t,e,n)},To=Nt("species"),Io=function(t){var e=Wt(t);pe&&e&&!e[To]&&Vo(e,To,{configurable:!0,get:function(){return this}})},Ro=TypeError,jo=function(t,e){if(ke(e,t))return t;throw Ro("Incorrect invocation")},Mo=TypeError,No=Nt("species"),Ko=function(t,e){var n,r=be(t).constructor;return void 0===r||it(n=be(r)[No])?e:function(t){if(oe(t))return t;throw Mo($(t)+" is not a constructor")}(n)},Fo=Function.prototype,Go=Fo.apply,Uo=Fo.call,Ho="object"==typeof Reflect&&Reflect.apply||(F?Uo.bind(Go):function(){return Uo.apply(Go,arguments)}),zo=z([].slice),qo=TypeError,Wo=function(t,e){if(ti;i++)if((a=m(t[i]))&&ke(xs,a))return a;return new Ps(!1)}r=function(t,e){var n=arguments.length<2?ws(t):e;if(Z(n))return be(we(n,t));throw ks($(t)+" is not iterable")}(t,o)}for(u=h?t.next:r.next;!(l=we(u,r)).done;){try{a=m(l.value)}catch(t){Es(r,"throw",t)}if("object"==typeof a&&a&&ke(xs,a))return a}return new Ps(!1)},_s=Nt("iterator"),Os=!1;try{var As=0,Cs={next:function(){return{done:!!As++}},return:function(){Os=!0}};Cs[_s]=function(){return this},Array.from(Cs,(function(){throw 2}))}catch(t){}var Ds=function(t,e){if(!e&&!Os)return!1;var n=!1;try{var r={};r[_s]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n},Vs=Fi.CONSTRUCTOR||!Ds((function(t){Ci.all(t).then(void 0,(function(){}))}));ir({target:"Promise",stat:!0,forced:Vs},{all:function(t){var e=this,n=Hi.f(e),r=n.resolve,o=n.reject,i=Ai((function(){var n=Z(e.resolve),i=[],s=0,a=1;Ls(t,(function(t){var u=s++,l=!1;a++,we(n,e,t).then((function(t){l||(l=!0,i[u]=t,--a||r(i))}),o)})),--a||r(i)}));return i.error&&o(i.value),n.promise}});var Ts=Fi.CONSTRUCTOR,Is=Ci&&Ci.prototype;if(ir({target:"Promise",proto:!0,forced:Ts,real:!0},{catch:function(t){return this.then(void 0,t)}}),C(Ci)){var Rs=Wt("Promise").prototype.catch;Is.catch!==Rs&&Hn(Is,"catch",Rs,{unsafe:!0})}ir({target:"Promise",stat:!0,forced:Vs},{race:function(t){var e=this,n=Hi.f(e),r=n.reject,o=Ai((function(){var o=Z(e.resolve);Ls(t,(function(t){we(o,e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}}),ir({target:"Promise",stat:!0,forced:Fi.CONSTRUCTOR},{reject:function(t){var e=Hi.f(this);return we(e.reject,void 0,t),e.promise}});var js=Fi.CONSTRUCTOR;Wt("Promise"),ir({target:"Promise",stat:!0,forced:js},{resolve:function(t){return function(t,e){if(be(t),V(e)&&e.constructor===t)return e;var n=Hi.f(t);return(0,n.resolve)(e),n.promise}(this,t)}});var Ms,Ns,Ks=String,Fs=function(t){if("Symbol"===zt(t))throw TypeError("Cannot convert a Symbol value to a string");return Ks(t)},Gs=function(){var t=be(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},Us=x.RegExp,Hs=K((function(){var t=Us("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),zs=Hs||K((function(){return!Us("a","y").sticky})),qs={BROKEN_CARET:Hs||K((function(){var t=Us("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:zs,UNSUPPORTED_Y:Hs},Ws=x.RegExp,Xs=K((function(){var t=Ws(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Ys=x.RegExp,Js=K((function(){var t=Ys("(?b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$c")})),$s=Vn.get,Qs=wt("native-string-replace",String.prototype.replace),Zs=RegExp.prototype.exec,ta=Zs,ea=z("".charAt),na=z("".indexOf),ra=z("".replace),oa=z("".slice),ia=(Ns=/b*/g,we(Zs,Ms=/a/,"a"),we(Zs,Ns,"a"),0!==Ms.lastIndex||0!==Ns.lastIndex),sa=qs.BROKEN_CARET,aa=void 0!==/()??/.exec("")[1];(ia||aa||sa||Xs||Js)&&(ta=function(t){var e,n,r,o,i,s,a,u=this,l=$s(u),c=Fs(t),d=l.raw;if(d)return d.lastIndex=u.lastIndex,e=we(ta,d,c),u.lastIndex=d.lastIndex,e;var f=l.groups,h=sa&&u.sticky,p=we(Gs,u),v=u.source,y=0,g=c;if(h&&(p=ra(p,"y",""),-1===na(p,"g")&&(p+="g"),g=oa(c,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==ea(c,u.lastIndex-1))&&(v="(?: "+v+")",g=" "+g,y++),n=new RegExp("^(?:"+v+")",p)),aa&&(n=new RegExp("^"+v+"$(?!\\s)",p)),ia&&(r=u.lastIndex),o=we(Zs,h?n:u,g),h?o?(o.input=oa(o.input,y),o[0]=oa(o[0],y),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:ia&&o&&(u.lastIndex=u.global?o.index+o[0].length:r),aa&&o&&o.length>1&&we(Qs,o[0],n,(function(){for(i=1;i0||navigator.pointerEnabled&&navigator.maxTouchPoints>0)}},{key:"basic",value:function(){return t.canvas?t.webaudio||t.htmlAudio?null:"Browser does not support WebAudio or HTMLAudio":"Browser does not support canvas"}},{key:"test",value:function(e){var n=this.basic();if(n)return n;var r=e.features,o=e.ui,i=e.sizes;for(var s in r)if(!0===r[s]&&!t[s])return"Browser does not support "+s;if(!o.touch&&t.touch)return"Game does not support touch input";var a=Math.max(window.screen.width,window.screen.height);return!i.xsmall&&a<480?"Game doesn't support extra small screens":!i.small&&a<768?"Game doesn't support small screens":!i.medium&&a<992?"Game doesn't support medium screens":!i.large&&a<1200?"Game doesn't support large screens":!i.xlarge&&a>=1200?"Game doesn't support extra large screens":null}},{key:"info",get:function(){return"Browser Feature Detection\n\t\t\t\tCanvas support ".concat(t.canvas?"✓":"×","\n\t\t\t\tWebGL support ").concat(t.webgl?"✓":"×","\n\t\t\t\tWebAudio support ").concat(t.webAudio?"✓":"×")}}]),t}(),la=z("".charAt),ca=z("".charCodeAt),da=z("".slice),fa=function(t){return function(e,n){var r,o,i=Fs(at(e)),s=ht(n),a=i.length;return s<0||s>=a?t?"":void 0:(r=ca(i,s))<55296||r>56319||s+1===a||(o=ca(i,s+1))<56320||o>57343?t?la(i,s):r:t?da(i,s,s+2):o-56320+(r-55296<<10)+65536}},ha={codeAt:fa(!1),charAt:fa(!0)}.charAt,pa="String Iterator",va=Vn.set,ya=Vn.getterFor(pa);Dr(String,"String",(function(t){va(this,{type:pa,string:Fs(t),index:0})}),(function(){var t,e=ya(this),n=e.string,r=e.index;return r>=n.length?Vr(void 0,!0):(t=ha(n,r),e.index+=t.length,Vr(t,!1))}));var ga=ce.filter,ma=mo("filter");ir({target:"Array",proto:!0,forced:!ma},{filter:function(t){return ga(this,t,arguments.length>1?arguments[1]:void 0)}});var ba=ce.find,Sa="find",wa=!0;function ka(t,e){return t(e={exports:{}},e.exports),e.exports}Sa in[]&&Array(1)[Sa]((function(){wa=!1})),ir({target:"Array",proto:!0,forced:wa},{find:function(t){return ba(this,t,arguments.length>1?arguments[1]:void 0)}}),wn(Sa);var Ea=ka((function(t){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function n(r){return"function"==typeof Symbol&&"symbol"===e(Symbol.iterator)?t.exports=n=function(t){return e(t)}:t.exports=n=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":e(t)},n(r)}t.exports=n})),Ba=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")};function Pa(t,e){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:0;this._listeners[t]||(this._listeners[t]=[]),e._priority=parseInt(n)||0,-1===this._listeners[t].indexOf(e)&&(this._listeners[t].push(e),this._listeners[t].length>1&&this._listeners[t].sort(this.listenerSorter))}},{key:"listenerSorter",value:function(t,e){return t._priority-e._priority}},{key:"off",value:function(t,e){if(void 0!==this._listeners[t])if(void 0!==e){var n=this._listeners[t].indexOf(e);-11&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof t&&(t={type:t,data:"object"===Ea(e)&&null!==e?e:{}}),void 0!==this._listeners[t.type])for(var n=this._listeners[t.type].length-1;n>=0;n--)this._listeners[t.type][n](t)}},{key:"destroy",value:function(){this._listeners={}}}]),t}(),_a=ka((function(t){var e=function(t){var e,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function u(t,e,n,r){var o=e&&e.prototype instanceof v?e:v,i=Object.create(o.prototype),s=new L(r||[]);return i._invoke=function(t,e,n){var r=c;return function(o,i){if(r===f)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return O()}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var a=B(s,n);if(a){if(a===p)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===c)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var u=l(t,e,n);if("normal"===u.type){if(r=n.done?h:d,u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=h,n.method="throw",n.arg=u.arg)}}}(t,n,s),i}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var c="suspendedStart",d="suspendedYield",f="executing",h="completed",p={};function v(){}function y(){}function g(){}var m={};m[i]=function(){return this};var b=Object.getPrototypeOf,S=b&&b(b(_([])));S&&S!==n&&r.call(S,i)&&(m=S);var w=g.prototype=v.prototype=Object.create(m);function k(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function E(t){function e(n,o,i,s){var a=l(t[n],t,o);if("throw"!==a.type){var u=a.arg,c=u.value;return c&&"object"==typeof c&&r.call(c,"__await")?Promise.resolve(c.__await).then((function(t){e("next",t,i,s)}),(function(t){e("throw",t,i,s)})):Promise.resolve(c).then((function(t){u.value=t,i(u)}),(function(t){return e("throw",t,i,s)}))}s(a.arg)}var n;this._invoke=function(t,r){function o(){return new Promise((function(n,o){e(t,r,n,o)}))}return n=n?n.then(o,o):o()}}function B(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,B(t,n),"throw"===n.method))return p;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var o=l(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,p;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,p):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function P(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 x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function _(t){if(t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,s=function n(){for(;++o=0;--i){var s=this.tryEntries[i],a=s.completion;if("root"===s.tryLoc)return o("end");if(s.tryLoc<=this.prev){var u=r.call(s,"catchLoc"),l=r.call(s,"finallyLoc");if(u&&l){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),p}},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;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:_(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),p}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}})),Oa=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},Aa=function(t,e){return!e||"object"!==Ea(e)&&"function"!=typeof e?Oa(t):e},Ca=ka((function(t){function e(n){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},e(n)}t.exports=e})),Da=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Ca(t)););return t},Va=ka((function(t){function e(n,r,o){return"undefined"!=typeof Reflect&&Reflect.get?t.exports=e=Reflect.get:t.exports=e=function(t,e,n){var r=Da(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}},e(n,r,o||n)}t.exports=e})),Ta=ka((function(t){function e(n,r){return t.exports=e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},e(n,r)}t.exports=e})),Ia=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100*Math.random()|0;return Ba(this,e),(t=Aa(this,Ca(e).call(this))).id="BELLHOP:".concat(n),t.connected=!1,t.isChild=!0,t.connecting=!1,t.debug=!1,t.origin="*",t._sendLater=[],t.iframe=null,t.receive=t.receive.bind(Oa(t)),t}return 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&&Ta(t,e)}(e,La),xa(e,[{key:"receive",value:function(t){if(this.target===t.source)if(this.logDebugMessage(!0,t),"connected"===t.data)this.onConnectionReceived(t.data);else{var e=t.data;if("string"==typeof e)try{e=JSON.parse(e)}catch(t){console.warn("Bellhop error: ",t)}this.connected&&"object"===Ea(e)&&e.type&&this.trigger(e)}}},{key:"onConnectionReceived",value:function(t){if(this.connecting=!1,this.connected=!0,!this.isChild){if(!this.target)return;this.target.postMessage(t,this.origin)}for(var e=0;e1&&void 0!==arguments[1]?arguments[1]:"*";this.connecting||(this.disconnect(),this.connecting=!0,t instanceof HTMLIFrameElement&&(this.iframe=t),this.isChild=void 0===t,this.supported=!0,this.isChild&&(this.supported=window!=t),this.origin=e,window.addEventListener("message",this.receive),this.isChild&&(window===this.target?this.trigger("failed"):this.target.postMessage("connected",this.origin)))}},{key:"disconnect",value:function(){this.connected=!1,this.connecting=!1,this.origin=null,this.iframe=null,this.isChild=!0,this._sendLater.length=0,window.removeEventListener("message",this.receive)}},{key:"send",value:function(t){if("string"!=typeof t)throw"The event type must be a string";var e={type:t,data:arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}};this.logDebugMessage(!1,e),this.connecting?this._sendLater.push(e):this.target.postMessage(JSON.stringify(e),this.origin)}},{key:"fetch",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!this.connecting&&!this.connected)throw"No connection, please call connect() first";this.on(t,(function t(r){o&&n.off(r.type,t),e(r)})),this.send(t,r)}},{key:"respond",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this;this.on(t,(function t(o){return _a.async((function(i){for(;;)switch(i.prev=i.next){case 0:if(n&&r.off(o,t),"function"!=typeof e){i.next=10;break}return i.t0=r,i.t1=o.type,i.next=6,_a.awrap(e());case 6:i.t2=i.sent,i.t0.send.call(i.t0,i.t1,i.t2),i.next=11;break;case 10:r.send(o.type,e);case 11:case"end":return i.stop()}}))}))}},{key:"logDebugMessage",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1?arguments[1]:void 0;this.debug&&"function"==typeof this.debug?this.debug({isChild:this.isChild,received:t,message:e}):this.debug&&console.log("Bellhop Instance (".concat(this.isChild?"Child":"Parent",") ").concat(t?"Receieved":"Sent"),e)}},{key:"destroy",value:function(){Va(Ca(e.prototype),"destroy",this).call(this),this.disconnect(),this._sendLater.length=0}},{key:"target",get:function(){return this.isChild?window.parent:this.iframe.contentWindow}}]),e}(),Ra=function(){function t(e){var n=e.plugins,r=void 0===n?[]:n;Jr(this,t),this.client=new Ia,this.client.hidden=this.client.receive.bind(this.client),this.client.hiddenSend=this.client.send.bind(this.client),this.client.receive=function(t){this.hidden(t)}.bind(this.client),this.client.send=function(t,e){this.hiddenSend(t,e)}.bind(this.client),this.plugins=r}return Qr(t,[{key:"setupPlugins",value:function(){for(var t=this,e=[],n=function(n){if(!t.plugins[n].preload)return"continue";e.push(t.plugins[n].preload(t).catch(function(t){this.plugins[n].preloadFailed=!0,console.warn(this.plugins[n].name,"Preload Failed:",t)}.bind(t)))},r=0,o=this.plugins.length;r1&&void 0!==arguments[1]?arguments[1]:{},i=o.plugins,s=o.context,a=void 0===s?{}:s;if(Jr(this,r),(e=n.call(this,{plugins:i})).iframe=t instanceof HTMLIFrameElement?t:document.querySelector(t),null===e.iframe)throw new Error("No iframe was found with the provided selector");return e.loaded=!1,e.loading=!1,e.release=null,e._context=a,e.onLoading=e.onLoading.bind(no(e)),e.onLoadDone=e.onLoadDone.bind(no(e)),e.onLoadDone=e.onLoadDone.bind(no(e)),e.onEndGame=e.onEndGame.bind(no(e)),e.onLocalError=e.onLocalError.bind(no(e)),e.initClient(),e.setupPlugins(),e}return Qr(r,[{key:"onLoading",value:function(){this.client.trigger("opening")}},{key:"onLoadDone",value:function(){this.loading=!1,this.loaded=!0,this.iframe.classList.remove("loading"),this.client.trigger("opened")}},{key:"onEndGame",value:function(){this.reset()}},{key:"onLocalError",value:function(t){console.error("SpringRoll Container error: ",t,(new Error).stack)}},{key:"reset",value:function(){(this.loaded||this.loading)&&this.client.trigger("closed"),this.loaded=!1,this.loading=!1,this.iframe.setAttribute("src",""),this.iframe.classList.remove("loading")}},{key:"initClient",value:function(){this.client.on("loading",this.onLoading),this.client.on("loaded",this.onLoadDone),this.client.on("loadDone",this.onLoadDone),this.client.on("endGame",this.onEndGame),this.client.on("localError",this.onLocalError),this.client.connect(this.iframe)}},{key:"_onCloseFailed",value:function(){this.reset()}},{key:"_internalOpen",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.singlePlay,r=void 0!==n&&n,o=e.playOptions,i=void 0===o?null:o,s={singlePlay:r,playOptions:i};this.reset(),this.loading=!0,this.initClient();var a=ua.basic();a&&(console.error("ERROR:",a),this.client.trigger("unsupported"));var u=t;if(null!==s.playOptions){var l="playOptions="+encodeURIComponent(JSON.stringify(s.playOptions));u=-1===t.indexOf("?")?"".concat(t,"?").concat(l):"".concat(t,"&").concat(l)}this.iframe.classList.add("loading"),this.iframe.setAttribute("src",u),this.client.respond("singlePlay",r),this.client.respond("playOptions",i),this.client.trigger("open")}},{key:"openPath",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"object"!==Wr(e)&&(console.warn("SpringRoll Container.openPath was passed a invalid options parameter. Using default parameters instead"),e={}),this._internalOpen(t,Object.assign({singlePlay:!1,playOptions:{}},e))}},{key:"openRemote",value:(e=Yr(qr().mark((function t(e){var n,r,o,i,s,a,u,l,c,d,f,h=arguments;return qr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=(n=h.length>1&&void 0!==h[1]?h[1]:{}).query,o=void 0===r?"":r,i=n.singlePlay,s=void 0!==i&&i,a=n.playOptions,u=void 0===a?null:a,this.release=null,t.next=4,fetch(e,{headers:{"Content-Type":"application/json"}});case 4:return l=t.sent,t.next=7,l.json();case 7:if((c=t.sent).success){t.next=10;break}throw new Error(c.error);case 10:if(d=c.data,!(f=ua.test(d.capabilities))){t.next=15;break}throw this.client.trigger("unsupported",{error:f}),new Error(f);case 15:this.release=d,this._internalOpen(d.url+o,{singlePlay:s,playOptions:u});case 17:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"destroy",value:function(){this.reset(),this.iframe=null,this.options=null,this.release=null}},{key:"close",value:function(){this.loading||this.loaded?(this.client.trigger("close"),this.client.send("close")):this.reset()}},{key:"context",get:function(){return this._context},set:function(t){"object"===Wr(t)?this._context=t:console.error("[SpringRollContainer] Context: new context provided is not an object")}}],[{key:"version",get:function(){return"2.4.3"}}]),r}(Ra),Ma=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};Jr(this,t),this._onFocus=e,this._onBlur=n,this.onFocus=function(t){this.enabled&&this._onFocus(t)}.bind(this),this.onBlur=function(t){this.enabled&&this._onBlur(t)}.bind(this),this._enabled=!1,this.enabled=!0,this.onToggle=this.onToggle.bind(this)}return Qr(t,[{key:"destroy",value:function(){this.enabled=!1,this.onToggle=null,this.onFocus=null,this.onBlur=null}},{key:"onToggle",value:function(t){this.enabled&&(document.hidden?this.onBlur(t):this.onFocus(t))}},{key:"enabled",get:function(){return this._enabled},set:function(t){this._enabled=t,document.removeEventListener("visibilitychange",this.onToggle,!1),window.removeEventListener("blur",this.onBlur,!1),window.removeEventListener("focus",this.onFocus,!1),window.removeEventListener("pagehide",this.onBlur,!1),window.removeEventListener("pageshow",this.onFocus,!1),window.removeEventListener("visibilitychange",this.onToggle,!1),this._enabled&&(document.addEventListener("visibilitychange",this.onToggle,!1),window.addEventListener("blur",this.onBlur,!1),window.addEventListener("focus",this.onFocus,!1),window.addEventListener("pagehide",this.onBlur,!1),window.addEventListener("pageshow",this.onFocus,!1),window.addEventListener("visibilitychange",this.onToggle,!1))}}]),t}(),Na=Xe.includes,Ka=K((function(){return!Array(1).includes()}));ir({target:"Array",proto:!0,forced:Ka},{includes:function(t){return Na(this,t,arguments.length>1?arguments[1]:void 0)}}),wn("includes");var Fa,Ga="\t\n\v\f\r                 \u2028\u2029\ufeff",Ua=z("".replace),Ha=RegExp("^["+Ga+"]+"),za=RegExp("(^|[^"+Ga+"])["+Ga+"]+$"),qa=function(t){return function(e){var n=Fs(at(e));return 1&t&&(n=Ua(n,Ha,"")),2&t&&(n=Ua(n,za,"$1")),n}},Wa={start:qa(1),end:qa(2),trim:qa(3)},Xa=Gn.PROPER,Ya=Wa.trim;ir({target:"String",proto:!0,forced:(Fa="trim",K((function(){return!!Ga[Fa]()||"​…᠎"!=="​…᠎"[Fa]()||Xa&&Ga[Fa].name!==Fa})))},{trim:function(){return Ya(this)}});var Ja=RegExp.prototype,$a=Gn.PROPER,Qa="toString",Za=RegExp.prototype[Qa],tu=K((function(){return"/a/b"!=Za.call({source:"a",flags:"b"})})),eu=$a&&Za.name!=Qa;(tu||eu)&&Hn(RegExp.prototype,Qa,(function(){var t=be(this),e=Fs(t.source),n=Fs(function(t){var e=t.flags;return void 0!==e||"flags"in Ja||Et(t,"flags")||!ke(Ja,t)?e:we(Gs,t)}(t));return"/"+e+"/"+n}),{unsafe:!0});var nu=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";Jr(this,t),this.db=null,this.dbName=e}return Qr(t,[{key:"IDBOpen",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=n?indexedDB.open(t,n):indexedDB.open(t);s.onsuccess=function(t){e.db=t.target.result,e.db.version==n|null==n&&i({result:"Success: IDBOpen",success:!0})},s.onerror=function(){i({result:s.error.toString(),success:!1})},s.onupgradeneeded=function(t){e.db=t.target.result,null!=r&&(r.stores&&r.stores.forEach((function(t){e.db.createObjectStore(t.storeName,t.options)})),null!=r.indexes&&r.indexes.forEach((function(t){s.transaction.objectStore(t.storeName).createIndex(t.indexName,t.keyPath,t.options)}))),null!=o&&(null!=o.indexes&&o.indexes.forEach((function(t){s.transaction.objectStore(t.storeName).deleteIndex(t.indexName)})),o.stores&&o.stores.forEach((function(t){e.db.deleteObjectStore(t.storeName)}))),i({result:"Success: IDBOpen onupgradeneeded ran",success:!0})}}},{key:"IDBDeleteDB",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=null!=e?indexedDB.deleteDatabase(t,e):indexedDB.deleteDatabase(t);r.onsuccess=function(t){n({result:"Success: Database Deleted, returned: "+t.result,success:!0})},r.onerror=function(){n({result:r.error.toString(),success:!1})}}},{key:"IDBAdd",value:function(t,e,n,r){this.db||""==this.dbName||this.IDBOpen(this.dbName);var o=this.db.transaction(t,"readwrite");o.onerror=function(){return r({result:null!=o.error?o.error.toString():"Aborted: No error given, was the record already added?",success:!1})},o.onabort=function(){return r({result:null!=o.error?o.error.toString():"Aborted: No error given, was the record already added?",success:!1})},o.oncomplete=function(){return r({result:"Success: Record Added",success:!0})},o.objectStore(t).add(e,n)}},{key:"IDBUpdate",value:function(t,e,n,r){this.db||""==this.dbName||this.IDBOpen(this.dbName);var o=this.db.transaction(t,"readwrite").objectStore(t).put(n,e);o.onsuccess=function(){r({result:"Success: Record Updated",success:!0})},o.onerror=function(){return r({result:o.error.toString(),success:!1})}}},{key:"IDBRemove",value:function(t,e,n){var r=this;this.db||""==this.dbName||this.IDBOpen(this.dbName);var o=this.db.transaction(t,"readwrite");o.onerror=function(){return n({result:r.db.error.toString(),success:!1})},o.objectStore(t).delete(e),o.oncomplete=function(){return n({result:"Removed Successfully",success:!0})}}},{key:"IDBRead",value:function(t,e,n){var r=this,o=this.db.transaction(t,"readonly"),i=o.objectStore(t);o.onerror=function(){return n({result:r.db.error.toString(),success:!1})};var s=i.get(e);s.onsuccess=function(){n({result:s.result,success:null!=s.result})}}},{key:"IDBGetIndexKeys",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},s=this.db.transaction(t,"readonly"),a=s.objectStore(t);s.onerror=function(){return i({result:n.db.error.toString(),success:!1})},(r&&o?a.index(e,r,o):r?a.index(e,r):a.index(e)).getAllKeys().onsuccess=function(t){i({result:t.result,success:!0})}}},{key:"IDBReadAll",value:function(t,e,n){var r=this.db.transaction(t,"readonly"),o=r.objectStore(t),i=null!=e?o.getAll(null,e):o.getAll();r.onerror=function(){return n({result:r.error.toString(),success:!1})},i.onsuccess=function(){n({result:i.result,success:null!=i.result})}}},{key:"IDBGetVersion",value:function(t,e){var n=window.indexedDB.open(t);n.onerror=function(){e({result:n.error.toString(),success:!1})},n.onsuccess=function(){var t=n.result;e({result:t.version,success:!0})}}},{key:"IDBClose",value:function(t){this.db&&(this.db.close(),t({result:"Success: Closed Database Connection",success:!0}))}}],[{key:"remove",value:function(t){localStorage.removeItem(t),sessionStorage.removeItem(t)}},{key:"write",value:function(t,e){return arguments.length>2&&void 0!==arguments[2]&&arguments[2]?sessionStorage.setItem(t,JSON.stringify("function"==typeof e?e():e)):localStorage.setItem(t,JSON.stringify("function"==typeof e?e():e))}},{key:"read",value:function(t){var e=localStorage.getItem(t)||sessionStorage.getItem(t);if("string"!=typeof e)return e;try{return JSON.parse(e)}catch(t){return e}}}]),t}(),ru=function(){function t(e){Jr(this,t),this.name=e,this.client=null}var e;return Qr(t,[{key:"preload",value:(e=Yr(qr().mark((function t(e){var n;return qr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=e.client,this.client=n;case 2:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"start",value:function(){this.client.on("loaded",this.sendAllProperties),this.client.on("loadDone",this.sendAllProperties)}},{key:"init",value:function(t){}},{key:"sendProperty",value:function(t,e){nu.write(t,e),this.client.send(t,e)}},{key:"sendAllProperties",value:function(t){}},{key:"warn",value:function(t){console.warn("[SpringRollContainer] ".concat(this.name,": ").concat(t))}}]),t}(),ou=function(t){Zr(n,t);var e=oo(n);function n(t){var r;return Jr(this,n),(r=e.call(this,t)).sendMutes=!1,r}return Qr(n,[{key:"init",value:function(t){this.sendMutes=!0}},{key:"_disableButton",value:function(t){t instanceof HTMLButtonElement&&(t.classList.remove("enabled"),t.classList.add("disabled"))}},{key:"reset",value:function(){this.sendMutes=!1}},{key:"_setMuteProp",value:function(t,e,n){var r=this;Array.isArray(e)?e.forEach((function(t){return r.changeMutedState(t,n)})):this.changeMutedState(e,n),this.sendProperty(t,n)}},{key:"changeMutedState",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.button?t.button:t;n instanceof HTMLElement&&(n.classList.remove("unmuted"),n.classList.remove("muted"),n.classList.add(e?"muted":"unmuted"))}}]),n}(ru),iu=Nt("match"),su=TypeError,au=function(t){if(function(t){var e;return V(t)&&(void 0!==(e=t[iu])?!!e:"RegExp"==X(t))}(t))throw su("The method doesn't accept regular expressions");return t},uu=Nt("match"),lu=z("".indexOf);ir({target:"String",proto:!0,forced:!function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[uu]=!1,"/./"[t](e)}catch(t){}}return!1}("includes")},{includes:function(t){return!!~lu(Fs(at(this)),Fs(au(t)),arguments.length>1?arguments[1]:void 0)}});var cu=Array,du=Math.max,fu=qn.f,hu="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],pu=function(t){try{return fu(t)}catch(t){return function(t,e,n){for(var r=vt(t),o=qe(e,r),i=qe(void 0===n?r:n,r),s=cu(du(i-o,0)),a=0;o1?arguments[1]:void 0);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!u(this,t)}}),ku(i,n?{get:function(t){var e=u(this,t);return e&&e.value},set:function(t,e){return a(this,0===t?0:t,e)}}:{add:function(t){return a(this,t=0===t?0:t,t)}}),pe&&Vo(i,"size",{configurable:!0,get:function(){return s(this).size}}),o},setStrong:function(t,e,n){var r=e+" Iterator",o=Pu(e),i=Pu(r);Dr(t,e,(function(t,e){Bu(this,{type:r,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?Vr("keys"==e?n.key:"values"==e?n.value:[n.key,n.value],!1):(t.target=void 0,Vr(void 0,!0))}),n?"entries":"values",!n,!0),Io(e)}};!function(t,e,n){var r=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=r?"set":"add",s=x[t],a=s&&s.prototype,u=s,l={},c=function(t){var e=z(a[t]);Hn(a,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(o&&!V(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return o&&!V(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(o&&!V(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if(rr(t,!C(s)||!(o||a.forEach&&!K((function(){(new s).entries().next()})))))u=n.getConstructor(e,t,r,i),Su.enable();else if(rr(t,!0)){var d=new u,f=d[i](o?{}:-0,1)!=d,h=K((function(){d.has(1)})),p=Ds((function(t){new s(t)})),v=!o&&K((function(){for(var t=new s,e=5;e--;)t[i](e,e);return!t.has(-0)}));p||((u=e((function(t,e){jo(t,a);var n=wu(new s,t,u);return it(e)||Ls(e,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=a,a.constructor=u),(h||v)&&(c("delete"),c("has"),r&&c("get")),(v||f)&&c(i),o&&a.clear&&delete a.clear}l[t]=u,ir({global:!0,constructor:!0,forced:u!=s},l),gr(u,t),o||n.setStrong(u,t,r)}("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),xu);var Lu=K((function(){tn(1)}));ir({target:"Object",stat:!0,forced:Lu},{keys:function(t){return tn(lt(t))}});var _u=ce.map,Ou=mo("map");ir({target:"Array",proto:!0,forced:!Ou},{map:function(t){return _u(this,t,arguments.length>1?arguments[1]:void 0)}});var Au=Rn.f,Cu=z(Au),Du=z([].push),Vu=function(t){return function(e){for(var n,r=Ue(e),o=tn(r),i=o.length,s=0,a=[];i>s;)n=o[s++],pe&&!Cu(r,n)||Du(a,t?[n,r[n]]:r[n]);return a}},Tu={entries:Vu(!0),values:Vu(!1)}.values;ir({target:"Object",stat:!0},{values:function(t){return Tu(t)}});var Iu=function(t){Zr(n,t);var e=oo(n);function n(t){var r,o=t.selector,i=t.controlName,s=t.featureName,a=void 0===s?"captionStyles":s,u=t.defaultValue,l=t.pluginName;return Jr(this,n),(r=e.call(this,l)).controlName=i,r.featureName=a,r.radioElements=document.querySelectorAll(o),r.defaultValue=u,r.radioGroup={},r.radioElements.length<=0?(r.warn("".concat(r.controlName," RadioGroup found no HTMLElements with selector: ").concat(o)),ro(r)):(r.radioElements.forEach((function(t){"radio"===t.type?(t.value=t.value.toLowerCase(),r.radioGroup[t.value]=t):r.warn("".concat(r.controlName," was provided a non Radio Button element with selector: ").concat(o))})),r.radioGroup[r.defaultValue]||(r.warn("".concat(r.controlName," RadioGroup for selector: ").concat(o," does not have a radio button with value ").concat(r.defaultValue," to use as default value. Using first element as default")),r.defaultValue=r.radioElements[0].value.toLowerCase()),r.radioGroup[r.defaultValue].checked=!0,r)}return Qr(n,[{key:"hasOnly",value:function(t){for(var e in this.radioGroup)if(!t.includes(this.radioGroup[e].value))return this.warn("".concat(this.controlName," radio button value: ").concat(this.radioGroup[e].value," is not an accepted value. Skipping radio group")),!1;return!0}},{key:"hasDuplicateValues",value:function(){return this.values.length!==io(new Set(this.values)).length}},{key:"enableRadioEvents",value:function(t){if(!(!this.radioGroup.length<=0)){var e=t;for(var n in this.radioGroup)this.radioGroup[n].addEventListener("change",e)}}},{key:"disableRadioEvents",value:function(t){if(!(!this.radioGroup.length<=0))for(var e in this.radioGroup)this.radioGroup[e].removeEventListener("change",t)}},{key:"displayRadios",value:function(t){if(this.radioGroup.length<=0&&t[this.featureName])this.warn("".concat(this.controlName," was not provided a valid input element or selector but '").concat(this.featureName,"' was included as a game feature"));else if(!(this.radioGroup.length<=0||t[this.featureName]))for(var e in this.radioGroup)this.radioGroup[e].style.display="none"}},{key:"resetState",value:function(){this.radioGroup[this.defaultValue].checked=!0}},{key:"length",get:function(){return Object.keys(this.radioGroup).length}},{key:"values",get:function(){return Object.values(this.radioGroup).map((function(t){return t.value}))}}]),n}(ru),Ru=function(t){Zr(n,t);var e=oo(n);function n(t,r,o){var i,s=o.supportedValues,a=o.initialValue,u=o.controlName,l=o.featureName,c=o.radioCount;return Jr(this,n),(i=e.call(this,r)).selectors=t?t.split(","):[],i.supportedValues=s,i.initialValue=s.includes(a)?a:s[0],i.controlName=u,i.featureName=l,i.radioCount=c,i.sendAllProperties=i.sendAllProperties.bind(no(i)),i._currentValue=i.initialValue,i.radioGroups=i.setUpRadios(i.selectors),i.radioGroupsLength=i.radioGroups.length,i}return Qr(n,[{key:"setUpRadios",value:function(t){var e=this,n=[];return t.forEach((function(t){var r=new Iu({selector:t.trim(),controlName:e.controlName,defaultValue:e.initialValue,pluginName:e.name,featureName:e.featureName});r.length===e.radioCount?r.hasOnly(e.supportedValues)&&(r.hasDuplicateValues()?e.warn("Duplicate radio button values detected (values: ".concat(r.values," ). Skipping radio group")):n.push(r)):e.warn('Selector "'.concat(t,'" did not find exactly ').concat(e.radioCount," radio buttons for ").concat(e.controlName,". Skipping selector"))})),n}},{key:"start",value:function(){this.client.on("loaded",this.sendAllProperties),this.client.on("loadDone",this.sendAllProperties)}},{key:"sendAllProperties",value:function(){this.sendProperty(this.featureName,this.property)}},{key:"currentValue",get:function(){return this._currentValue},set:function(t){if(this.supportedValues.includes(t)){this._currentValue=t;for(var e=0,n=this.radioGroups.length;e2)if(l=Fu(l),43===(e=Wu(l,0))||45===e){if(88===(n=Wu(l,2))||120===n)return NaN}else if(48===e){switch(Wu(l,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+l}for(s=(i=qu(l,2)).length,a=0;ao)return NaN;return parseInt(i,r)}return+l},Ju=rr(Gu,!Uu(" 0o1")||!Uu("0b1")||Uu("+0x1")),$u=function(t){return ke(Hu,t)&&K((function(){ju(t)}))},Qu=function(t){var e=arguments.length<1?0:Uu(Xu(t));return $u(this)?wu(Object(e),this,Qu):e};Qu.prototype=Hu,Ju&&(Hu.constructor=Qu),ir({global:!0,constructor:!0,wrap:!0,forced:Ju},{Number:Qu});Ju&&function(t,e){for(var n,r=pe?Mu(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;r.length>o;o++)Et(e,n=r[o])&&!Et(t,n)&&Ku(t,n,Nu(e,n))}(zr[Gu],Uu);var Zu=function(){function t(e){var n=e.slider,r=e.control,o=e.min,i=void 0===o?0:o,s=e.max,a=void 0===s?1:s,u=e.step,l=void 0===u?.1:u,c=e.defaultValue,d=void 0===c?1:c;Jr(this,t),this.min=i,this.max=a,this.step=l,this.sliderValue=d,this.control=r,this.slider=this.setUpSlider(n,r)}return Qr(t,[{key:"setUpSlider",value:function(t,e){if("string"==typeof t&&(t=document.querySelector(t)),!t||"range"!==t.type)return null;var n=nu.read(e);return t.min=this.min,t.max=this.max,t.step=this.step,(n||0===n)&&n.toString().trim().length>0?(t.value=n,this.sliderValue=n):t.value=this.sliderValue,t}},{key:"sliderRange",value:function(t){return tthis.max?this.max:t}},{key:"enableSliderEvents",value:function(t){if(this.slider){var e=t;this.slider.addEventListener("change",e),this.slider.addEventListener("input",e)}}},{key:"disableSliderEvents",value:function(t){if(this.slider){var e=t;this.slider.removeEventListener("change",e),this.slider.removeEventListener("input",e)}}},{key:"displaySlider",value:function(t){!this.slider&&t[this.control]&&console.warn("".concat(this.control," was not provided a valid input element or selector but was included as a game feature")),this.slider&&(this.slider.style.display=t[this.control]?"":"none")}},{key:"dispatchEvent",value:function(t){this.slider.dispatchEvent(t)}},{key:"value",get:function(){return this.slider.value},set:function(t){this.slider.value=t}}]),t}(),tl=function(){function t(e){var n=e.button,r=e.onClick,o=e.channel;Jr(this,t),this.button=n instanceof HTMLElement?n:document.querySelector(n),this.onClick=r,this.channel=o,this.button&&this.button.addEventListener("click",r)}return Qr(t,[{key:"displayButton",value:function(t){this.button instanceof HTMLElement&&(this.button.style.display=t[this.channel]||"pause"===this.channel||"hints"===this.channel?"":"none")}},{key:"enableButton",value:function(){this.button&&this.button.classList.remove("disabled")}},{key:"addClass",value:function(t){this.button.className=this.button.className?this.button.className+" ".concat(t):" ".concat(t)}}]),t}(),el=function(t){Zr(n,t);var e=oo(n);function n(t,r,o){var i,s=o.defaultValue,a=void 0===s?"0.5":s,u=o.minValue,l=void 0===u?"0":u,c=o.maxValue,d=void 0===c?"1":c,f=o.featureName;return Jr(this,n),(i=e.call(this,r)).featureName=f,i.minValue=l,i.defaultValue=a,i.maxValue=d,i._currentValue=a,i.sliders=i.setUpSliders(t),i.slidersLength=i.sliders.length,i.sendAllProperties=i.sendAllProperties.bind(no(i)),0>=i.slidersLength?(i.warn("Plugin was not provided any valid HTML Elements"),ro(i)):i}return Qr(n,[{key:"setUpSliders",value:function(t){var e=this,n=[];return t instanceof HTMLElement?n.push(new Zu({slider:t,control:this.featureName,defaultValue:this.defaultValue,minValue:this.minValue,maxValue:this.maxValue})):document.querySelectorAll(t).forEach((function(t){n.push(new Zu({slider:t,control:e.featureName,defaultValue:e.defaultValue,minValue:e.minValue,maxValue:e.maxValue}))})),n}},{key:"init",value:function(){this.client.on("features",function(t){if(t.data)for(var e=0;e3&&void 0!==arguments[3]?arguments[3]:{},a=s.defaultFontSize,u=void 0===a?"medium":a,l=s.defaultColor,c=void 0===l?"default":l,d=s.defaultAlignment,f=void 0===d?"top":d;if(Jr(this,n),(i=e.call(this,"Caption-Button-Plugin")).sendAllProperties=i.sendAllProperties.bind(no(i)),i.captionsStyles=Object.assign({},nl,nu.read(n.captionStyleKey)||{}),i.fontSizeSelectors=t?t.split(","):[],i.colorSelectors=r?r.split(","):[],i.alignmentSelectors=o?o.split(","):[],i.defaultFontSize=il.includes(u)?u:il[0],i.defaultColor=sl.includes(c)?c:sl[0],i.defaultAlignment=al.includes(f)?f:al[0],i.fontSizeRadios=[],i.colorRadios=[],i.alignmentRadios=[],i.fontSizeRadios=i.setUpFontSizeRadios(i.fontSizeSelectors),i.colorRadios=i.setUpColorRadios(i.colorSelectors),i.alignmentRadios=i.setUpAlignmentRadios(i.alignmentSelectors),i._captionsMuted=!1,i.alignmentRadiosLength=i.alignmentRadios.length,i.fontSizeRadiosLength=i.fontSizeRadios.length,i.colorRadiosLength=i.colorRadios.length,0>=i.alignmentRadiosLength+i.fontSizeRadiosLength+i.colorRadiosLength)return i.warn("Plugin was not provided any input elements"),ro(i);for(var h=0;h0&&void 0!==arguments[0]?arguments[0]:nl,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";"object"===Wr(t)?Object.assign(this.captionsStyles,t):"string"==typeof t&&(this.captionsStyles[t]=e),nu.write(n.captionStyleKey,this.captionsStyles),this.client&&this.client.send(n.captionStyleKey,this.captionsStyles)}},{key:"radios",get:function(){return this.colorRadios.concat(this.alignmentRadios).concat(this.fontSizeRadios)}}],[{key:"captionStyleKey",get:function(){return"captionsStyles"}}]),n}(ou),ll=function(t){Zr(n,t);var e=oo(n);function n(t){var r;return Jr(this,n),(r=e.call(this,"Caption-Button-Plugin")).sendAllProperties=r.sendAllProperties.bind(no(r)),r._captionsButtons=[],t instanceof HTMLElement?r._captionsButtons[0]=new tl({button:t,onClick:r.captionsButtonClick.bind(no(r)),channel:"captions"}):document.querySelectorAll(t).forEach((function(t){r._captionsButtons.push(new tl({button:t,onClick:r.captionsButtonClick.bind(no(r)),channel:"captions"}))})),r._captionsMuted=!1,r.captionsButtonLength=r._captionsButtons.length,0>=r.captionsButtonLength?(r.warn("Plugin was not provided any valid button or input elements"),ro(r)):r}return Qr(n,[{key:"init",value:function(){this.client.on("features",function(t){for(var e=0;e1&&void 0!==arguments[1])||arguments[1];Jr(this,n),(r=e.call(this,"Pause-Button-plugin"))._manageOwnVisibility=o,r._appBlurred=!1,r._containerBlurred=!1,r._focusTimer=null,r._isManualPause=!1,r._keepFocus=!1,r._paused=!1,r.iframe=null,r.focusApp=r.focusApp.bind(no(r)),r.manageFocus=r.manageFocus.bind(no(r)),r.onKeepFocus=r.onKeepFocus.bind(no(r)),r.onFocus=r.onFocus.bind(no(r));var i=r.onPauseToggle.bind(no(r));return r.pauseDisabled=!1,r._pauseButton=[],r.pageVisibility=new Ma(r.onContainerFocus.bind(no(r)),r.onContainerBlur.bind(no(r))),r.pageVisibility.enabled=r.manageOwnVisibility,t instanceof HTMLElement?r._pauseButton[0]=new tl({button:t,onClick:i,channel:n.pauseKey}):document.querySelectorAll(t).forEach((function(t){r._pauseButton.push(new tl({button:t,onClick:i,channel:n.pauseKey}))})),r}return Qr(n,[{key:"pause",get:function(){return this._paused},set:function(t){if(t=!!t,!this.pauseDisabled){this._paused=t,this.client.send(n.pauseKey,t),this.client.trigger(t?"paused":"resumed",{paused:t});for(var e=0,r=this._pauseButton.length;e0&&void 0!==arguments[0]?arguments[0]:{},o=r.soundButtons,i=r.musicButtons,s=r.sfxButtons,a=r.voButtons,u=r.soundSliders,l=r.musicSliders,c=r.sfxSliders,d=r.voSliders;Jr(this,n),t=e.call(this,"Sound-Button-Plugin");var f=nu.read(n.soundMutedKey);if(t.sendAllProperties=t.sendAllProperties.bind(no(t)),t._soundMuted=f||!1,t._musicMuted=!1,t._voMuted=!1,t._sfxMuted=!1,t.soundVolume=1,t.musicVolume=1,t.sfxVolume=1,t.voVolume=1,t.soundSliders=[],t.musicSliders=[],t.sfxSliders=[],t.voSliders=[],t.soundButtons=[],t.musicButtons=[],t.sfxButtons=[],t.voButtons=[],u instanceof HTMLElement?t.soundSliders[0]=new Zu({slider:u,control:n.soundVolumeKey,defaultValue:t.soundVolume}):document.querySelectorAll(u).forEach((function(e){var r=new Zu({slider:e,control:n.soundVolumeKey,defaultValue:t.soundVolume});r.slider&&t.soundSliders.push(r)})),l instanceof HTMLElement?t.musicSliders[0]=new Zu({slider:l,control:n.musicVolumeKey,defaultValue:t.musicVolume}):document.querySelectorAll(l).forEach((function(e){var r=new Zu({slider:e,control:n.musicVolumeKey,defaultValue:t.musicVolume});r.slider&&t.musicSliders.push(r)})),c instanceof HTMLElement?t.sfxSliders[0]=new Zu({slider:c,control:n.sfxVolumeKey,defaultValue:t.sfxVolume}):document.querySelectorAll(c).forEach((function(e){var r=new Zu({slider:e,control:n.sfxVolumeKey,defaultValue:t.sfxVolume});r.slider&&t.sfxSliders.push(r)})),d instanceof HTMLElement?t.voSliders[0]=new Zu({slider:d,control:n.voVolumeKey,defaultValue:t.voVolume}):document.querySelectorAll(d).forEach((function(e){var r=new Zu({slider:e,control:n.voVolumeKey,defaultValue:t.voVolume});r.slider&&t.voSliders.push(r)})),o instanceof HTMLElement?t.soundButtons[0]=new tl({button:o,onClick:t.onSoundToggle.bind(no(t)),channel:n.soundKey}):document.querySelectorAll(o).forEach((function(e){t.soundButtons.push(new tl({button:e,onClick:t.onSoundToggle.bind(no(t)),channel:n.soundKey}))})),i instanceof HTMLElement?t.musicButtons[0]=new tl({button:i,onClick:t.onMusicToggle.bind(no(t)),channel:"music"}):document.querySelectorAll(i).forEach((function(e){t.musicButtons.push(new tl({button:e,onClick:t.onMusicToggle.bind(no(t)),channel:"music"}))})),s instanceof HTMLElement?t.sfxButtons[0]=new tl({button:s,onClick:t.onSFXToggle.bind(no(t)),channel:"sfx"}):document.querySelectorAll(s).forEach((function(e){t.sfxButtons.push(new tl({button:e,onClick:t.onSFXToggle.bind(no(t)),channel:"sfx"}))})),a instanceof HTMLElement?t.voButtons[0]=new tl({button:a,onClick:t.onVOToggle.bind(no(t)),channel:"vo"}):document.querySelectorAll(a).forEach((function(e){t.voButtons.push(new tl({button:e,onClick:t.onVOToggle.bind(no(t)),channel:"vo"}))})),t.soundSlidersLength=t.soundSliders.length,t.musicSlidersLength=t.musicSliders.length,t.sfxSlidersLength=t.sfxSliders.length,t.voSlidersLength=t.voSliders.length,t.soundButtonsLength=t.soundButtons.length,t.musicButtonsLength=t.musicButtons.length,t.sfxButtonsLength=t.sfxButtons.length,t.voButtonsLength=t.voButtons.length,0>=t.soundSlidersLength+t.musicSlidersLength+t.sfxSlidersLength+t.voSlidersLength+t.soundButtonsLength+t.musicButtonsLength+t.sfxButtonsLength+t.voButtonsLength)return t.warn("Plugin was not provided any valid HTML Elements"),ro(t);for(var h=0;h1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;this.savedData=new nu,this.savedData.IDBOpen(t,e,n,r,o)}},{key:"IDBAdd",value:function(t,e,n,r){this.savedData.IDBAdd(t,e,n,r)}},{key:"IDBUpdate",value:function(t,e,n,r){this.savedData.IDBUpdate(t,e,n,r)}},{key:"IDBRemove",value:function(t,e,n){this.savedData.IDBRemove(t,e,n)}},{key:"IDBRead",value:function(t,e,n){this.savedData.IDBRead(t,e,n)}},{key:"IDBReadAll",value:function(t,e,n){this.savedData.IDBReadAll(t,e,n)}},{key:"IDBGetVersion",value:function(t,e){new nu(t).IDBGetVersion(t,e)}},{key:"IDBClose",value:function(t){this.savedData.IDBClose(t)}},{key:"IDBDeleteDB",value:function(t,e,n){new nu(t).IDBDeleteDB(t,e,n)}}],[{key:"remove",value:function(t,e){nu.remove(t),e()}},{key:"write",value:function(t,e,n){nu.write(t,e),n()}},{key:"read",value:function(t,e){e(nu.read(t))}}]),t}(),pl=function(t){Zr(n,t);var e=oo(n);function n(){var t;return Jr(this,n),(t=e.call(this,"UserData-Plugin")).onUserDataRemove=t.onUserDataRemove.bind(no(t)),t.onUserDataRead=t.onUserDataRead.bind(no(t)),t.onUserDataWrite=t.onUserDataWrite.bind(no(t)),t.onIDBAdd=t.onIDBAdd.bind(no(t)),t.onIDBOpen=t.onIDBOpen.bind(no(t)),t.onIDBRead=t.onIDBRead.bind(no(t)),t.onIDBReadAll=t.onIDBReadAll.bind(no(t)),t.onIDBRemove=t.onIDBRemove.bind(no(t)),t.onIDBUpdate=t.onIDBUpdate.bind(no(t)),t.onIDBUpdate=t.onIDBUpdate.bind(no(t)),t.onIDBClose=t.onIDBClose.bind(no(t)),t.IDBReadAll=t.onIDBReadAll.bind(no(t)),t.onIDBGetVersion=t.onIDBGetVersion.bind(no(t)),t.onIDBDeleteDB=t.onIDBDeleteDB.bind(no(t)),t.savedDataHandler=null,t}return Qr(n,[{key:"init",value:function(){this.client.on("userDataRemove",this.onUserDataRemove),this.client.on("userDataRead",this.onUserDataRead),this.client.on("userDataWrite",this.onUserDataWrite),this.client.on("IDBOpen",this.onIDBOpen),this.client.on("IDBRead",this.onIDBRead),this.client.on("IDBReadAll",this.onIDBReadAll),this.client.on("IDBAdd",this.onIDBAdd),this.client.on("IDBRemove",this.onIDBRemove),this.client.on("IDBUpdate",this.onIDBUpdate),this.client.on("IDBClose",this.onIDBClose),this.client.on("IDBGetVersion",this.onIDBGetVersion),this.client.on("IDBDeleteDB",this.onIDBDeleteDB)}},{key:"onUserDataRemove",value:function(t){var e=this,n=t.data,r=t.type;hl.remove(n,(function(){e.client.send(r)}))}},{key:"onUserDataRead",value:function(t){var e=this,n=t.data,r=t.type;hl.read(n,(function(t){return e.client.send(r,t)}))}},{key:"onUserDataWrite",value:function(t){var e=this,n=t.type,r=t.data,o=r.name,i=r.value;hl.write(o,i,(function(){return e.client.send(n)}))}},{key:"onIDBOpen",value:function(t){var e=this,n=t.type,r=t.data,o=r.dbName,i=r.dbVersion,s=void 0===i?null:i,a=r.additions,u=void 0===a?{}:a,l=r.deletions,c=void 0===l?{}:l;this.savedDataHandler=new hl,this.savedDataHandler.IDBOpen(o,s,u,c,(function(t){return e.client.send(n,t)}))}},{key:"onIDBAdd",value:function(t){var e=this,n=t.type,r=t.data,o=r.storeName,i=r.value,s=r.key;this.savedDataHandler.IDBAdd(o,i,s,(function(t){return e.client.send(n,t)}))}},{key:"onIDBUpdate",value:function(t){var e=this,n=t.type,r=t.data,o=r.storeName,i=r.key,s=r.value;this.savedDataHandler.IDBUpdate(o,i,s,(function(t){return e.client.send(n,t)}))}},{key:"onIDBRemove",value:function(t){var e=this,n=t.type,r=t.data,o=r.storeName,i=r.key;this.savedDataHandler.IDBRemove(o,i,(function(t){return e.client.send(n,t)}))}},{key:"onIDBRead",value:function(t){var e=this,n=t.type,r=t.data,o=r.storeName,i=r.key;this.savedDataHandler.IDBRead(o,i,(function(t){return e.client.send(n,t)}))}},{key:"onIDBReadAll",value:function(t){var e=this,n=t.type,r=t.data,o=r.storeName,i=r.count;this.savedDataHandler.IDBReadAll(o,i,(function(t){return e.client.send(n,t)}))}},{key:"onIDBGetVersion",value:function(t){var e=this,n=t.type,r=t.data.dbName;(new hl).IDBGetVersion(r,(function(t){return e.client.send(n,t)}))}},{key:"onIDBClose",value:function(t){var e=this,n=t.type;this.savedDataHandler.IDBClose((function(t){return e.client.send(n,t)}))}},{key:"onIDBDeleteDB",value:function(t){var e=this,n=t.type,r=t.data,o=r.dbName,i=r.options;(new hl).IDBDeleteDB(o,i,(function(t){return e.client.send(n,t)}))}}]),n}(ru),vl=function(t){Zr(n,t);var e=oo(n);function n(t){var r,o=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).defaultPointerSize,i=void 0===o?.5:o;Jr(this,n),r=e.call(this,t,"UISize-Pointer-Plugin",{defaultValue:i,featureName:n.pointerSizeKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultButtonSize,i=void 0===o?.5:o;Jr(this,n),r=e.call(this,t,"UISize-Button-Plugin",{defaultValue:i,featureName:n.buttonSizeKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultSensitivity,i=void 0===o?.5:o;Jr(this,n),(r=e.call(this,t,"Control-Sensitivity-Plugin",{defaultValue:i,featureName:n.controlSensitivityKey})).sendAllProperties=r.sendAllProperties.bind(no(r));for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).customClassName,i=void 0===o?"springrollContainerKeyBinding__button":o;return Jr(this,n),(r=e.call(this,"Keyboard-Map-Plugin")).sendAllProperties=r.sendAllProperties.bind(no(r)),r.bindKey=r.bindKey.bind(no(r)),r.onKeyButtonClick=r.onKeyButtonClick.bind(no(r)),r.className=i,r.keyContainers=t instanceof HTMLElement?[t]:document.querySelectorAll(t),r.keyBindings={},r.buttons=[],r.activekeyButton,r.sendAfterFetch=!1,r.canEmit=!1,r.keyContainersLength=r.keyContainers.length,r.keyContainersLength<=0?(r.warn("plugin was not provided any valid key binding container elements"),ro(r)):r}return Qr(n,[{key:"onKeyButtonClick",value:function(t){for(var e=0,n=this.buttons.length;e1&&void 0!==arguments[1]?arguments[1]:{}).defaultValue,i=void 0===o?0:o;Jr(this,n),r=e.call(this,t,"Layer-Plugin",{defaultValue:i,featureName:n.layersSliderKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultValue,i=void 0===o?Sl[0]:o;Jr(this,n),(r=e.call(this,t,"HUD-Layout-Plugin",{supportedValues:Sl,initialValue:i,controlName:"Hud Selector",featureName:n.hudPositionKey,radioCount:Sl.length})).sendAllProperties=r.sendAllProperties.bind(no(r)),r.sendAfterFetch=!1,r.canEmit=!1,r.positions=[],r.radioGroupsLength<=0&&r.warn("Plugin was not provided any valid HTML elements");for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultValue,i=void 0===o?kl[0]:o;if(Jr(this,n),(r=e.call(this,t,"Color-Filter-Plugin",{supportedValues:kl,initialValue:i,controlName:"Color Vision Selector",featureName:n.colorVisionKey,radioCount:kl.length})).sendAllProperties=r.sendAllProperties.bind(no(r)),r.sendAfterFetch=!1,r.canEmit=!1,r.colors=[],r.radioGroupsLength<=0)return r.warn("Plugin was not provided any valid HTML elements"),ro(r);for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultHitAreaScale,i=void 0===o?.5:o;Jr(this,n),r=e.call(this,t,"Hit-Area-Scale-Plugin",{defaultValue:i,featureName:n.hitAreaScaleKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultDragThresholdScale,i=void 0===o?.5:o;Jr(this,n),r=e.call(this,t,"Drag-Threshold-Scale-Plugin",{defaultValue:i,featureName:n.dragThresholdScaleKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultHealth,i=void 0===o?.5:o;Jr(this,n),r=e.call(this,t,"Health-Scale-Plugin",{defaultValue:i,featureName:n.healthKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultObjectCount,i=void 0===o?.5:o;Jr(this,n),r=e.call(this,t,"Object-Count-Plugin",{defaultValue:i,featureName:n.objectCountKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultCompletionPercentage,i=void 0===o?.5:o;Jr(this,n),r=e.call(this,t,"Completion-Percentage-Plugin",{defaultValue:i,featureName:n.completionPercentageKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultSpeedScale,i=void 0===o?.5:o;Jr(this,n),r=e.call(this,t,"Speed-Scale-Plugin",{defaultValue:i,featureName:n.speedScaleKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultTimersScale,i=void 0===o?.5:o;Jr(this,n),r=e.call(this,t,"Timers-Scale-Plugin",{defaultValue:i,featureName:n.timersScaleKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultInputCount,i=void 0===o?.5:o;Jr(this,n),r=e.call(this,t,"Input-Count-Plugin",{defaultValue:i,featureName:n.inputCountKey});for(var s=0;s -1; + }; + } + function normalizeName(name) { + if (typeof name !== 'string') { + name = String(name); + } + if (/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(name) || name === '') { + throw new TypeError('Invalid character in header field name: "' + name + '"'); + } + return name.toLowerCase(); + } + function normalizeValue(value) { + if (typeof value !== 'string') { + value = String(value); + } + return value; + } + + // Build a destructive iterator for the value list + function iteratorFor(items) { + var iterator = { + next: function () { + var value = items.shift(); + return { + done: value === undefined, + value: value + }; + } + }; + if (support.iterable) { + iterator[Symbol.iterator] = function () { + return iterator; + }; + } + return iterator; + } + function Headers(headers) { + this.map = {}; + if (headers instanceof Headers) { + headers.forEach(function (value, name) { + this.append(name, value); + }, this); + } else if (Array.isArray(headers)) { + headers.forEach(function (header) { + this.append(header[0], header[1]); + }, this); + } else if (headers) { + Object.getOwnPropertyNames(headers).forEach(function (name) { + this.append(name, headers[name]); + }, this); + } + } + Headers.prototype.append = function (name, value) { + name = normalizeName(name); + value = normalizeValue(value); + var oldValue = this.map[name]; + this.map[name] = oldValue ? oldValue + ', ' + value : value; + }; + Headers.prototype['delete'] = function (name) { + delete this.map[normalizeName(name)]; + }; + Headers.prototype.get = function (name) { + name = normalizeName(name); + return this.has(name) ? this.map[name] : null; + }; + Headers.prototype.has = function (name) { + return this.map.hasOwnProperty(normalizeName(name)); + }; + Headers.prototype.set = function (name, value) { + this.map[normalizeName(name)] = normalizeValue(value); + }; + Headers.prototype.forEach = function (callback, thisArg) { + for (var name in this.map) { + if (this.map.hasOwnProperty(name)) { + callback.call(thisArg, this.map[name], name, this); + } + } + }; + Headers.prototype.keys = function () { + var items = []; + this.forEach(function (value, name) { + items.push(name); + }); + return iteratorFor(items); + }; + Headers.prototype.values = function () { + var items = []; + this.forEach(function (value) { + items.push(value); + }); + return iteratorFor(items); + }; + Headers.prototype.entries = function () { + var items = []; + this.forEach(function (value, name) { + items.push([name, value]); + }); + return iteratorFor(items); + }; + if (support.iterable) { + Headers.prototype[Symbol.iterator] = Headers.prototype.entries; + } + function consumed(body) { + if (body.bodyUsed) { + return Promise.reject(new TypeError('Already read')); + } + body.bodyUsed = true; + } + function fileReaderReady(reader) { + return new Promise(function (resolve, reject) { + reader.onload = function () { + resolve(reader.result); + }; + reader.onerror = function () { + reject(reader.error); + }; + }); + } + function readBlobAsArrayBuffer(blob) { + var reader = new FileReader(); + var promise = fileReaderReady(reader); + reader.readAsArrayBuffer(blob); + return promise; + } + function readBlobAsText(blob) { + var reader = new FileReader(); + var promise = fileReaderReady(reader); + reader.readAsText(blob); + return promise; + } + function readArrayBufferAsText(buf) { + var view = new Uint8Array(buf); + var chars = new Array(view.length); + for (var i = 0; i < view.length; i++) { + chars[i] = String.fromCharCode(view[i]); + } + return chars.join(''); + } + function bufferClone(buf) { + if (buf.slice) { + return buf.slice(0); + } else { + var view = new Uint8Array(buf.byteLength); + view.set(new Uint8Array(buf)); + return view.buffer; + } + } + function Body() { + this.bodyUsed = false; + this._initBody = function (body) { + /* + fetch-mock wraps the Response object in an ES6 Proxy to + provide useful test harness features such as flush. However, on + ES5 browsers without fetch or Proxy support pollyfills must be used; + the proxy-pollyfill is unable to proxy an attribute unless it exists + on the object before the Proxy is created. This change ensures + Response.bodyUsed exists on the instance, while maintaining the + semantic of setting Request.bodyUsed in the constructor before + _initBody is called. + */ + this.bodyUsed = this.bodyUsed; + this._bodyInit = body; + if (!body) { + this._bodyText = ''; + } else if (typeof body === 'string') { + this._bodyText = body; + } else if (support.blob && Blob.prototype.isPrototypeOf(body)) { + this._bodyBlob = body; + } else if (support.formData && FormData.prototype.isPrototypeOf(body)) { + this._bodyFormData = body; + } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) { + this._bodyText = body.toString(); + } else if (support.arrayBuffer && support.blob && isDataView(body)) { + this._bodyArrayBuffer = bufferClone(body.buffer); + // IE 10-11 can't handle a DataView body. + this._bodyInit = new Blob([this._bodyArrayBuffer]); + } else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) { + this._bodyArrayBuffer = bufferClone(body); + } else { + this._bodyText = body = Object.prototype.toString.call(body); + } + if (!this.headers.get('content-type')) { + if (typeof body === 'string') { + this.headers.set('content-type', 'text/plain;charset=UTF-8'); + } else if (this._bodyBlob && this._bodyBlob.type) { + this.headers.set('content-type', this._bodyBlob.type); + } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) { + this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8'); + } + } + }; + if (support.blob) { + this.blob = function () { + var rejected = consumed(this); + if (rejected) { + return rejected; + } + if (this._bodyBlob) { + return Promise.resolve(this._bodyBlob); + } else if (this._bodyArrayBuffer) { + return Promise.resolve(new Blob([this._bodyArrayBuffer])); + } else if (this._bodyFormData) { + throw new Error('could not read FormData body as blob'); + } else { + return Promise.resolve(new Blob([this._bodyText])); + } + }; + this.arrayBuffer = function () { + if (this._bodyArrayBuffer) { + var isConsumed = consumed(this); + if (isConsumed) { + return isConsumed; + } + if (ArrayBuffer.isView(this._bodyArrayBuffer)) { + return Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset, this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength)); + } else { + return Promise.resolve(this._bodyArrayBuffer); + } + } else { + return this.blob().then(readBlobAsArrayBuffer); + } + }; + } + this.text = function () { + var rejected = consumed(this); + if (rejected) { + return rejected; + } + if (this._bodyBlob) { + return readBlobAsText(this._bodyBlob); + } else if (this._bodyArrayBuffer) { + return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer)); + } else if (this._bodyFormData) { + throw new Error('could not read FormData body as text'); + } else { + return Promise.resolve(this._bodyText); + } + }; + if (support.formData) { + this.formData = function () { + return this.text().then(decode); + }; + } + this.json = function () { + return this.text().then(JSON.parse); + }; + return this; + } + + // HTTP methods whose capitalization should be normalized + var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT']; + function normalizeMethod(method) { + var upcased = method.toUpperCase(); + return methods.indexOf(upcased) > -1 ? upcased : method; + } + function Request(input, options) { + if (!(this instanceof Request)) { + throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.'); + } + options = options || {}; + var body = options.body; + if (input instanceof Request) { + if (input.bodyUsed) { + throw new TypeError('Already read'); + } + this.url = input.url; + this.credentials = input.credentials; + if (!options.headers) { + this.headers = new Headers(input.headers); + } + this.method = input.method; + this.mode = input.mode; + this.signal = input.signal; + if (!body && input._bodyInit != null) { + body = input._bodyInit; + input.bodyUsed = true; + } + } else { + this.url = String(input); + } + this.credentials = options.credentials || this.credentials || 'same-origin'; + if (options.headers || !this.headers) { + this.headers = new Headers(options.headers); + } + this.method = normalizeMethod(options.method || this.method || 'GET'); + this.mode = options.mode || this.mode || null; + this.signal = options.signal || this.signal; + this.referrer = null; + if ((this.method === 'GET' || this.method === 'HEAD') && body) { + throw new TypeError('Body not allowed for GET or HEAD requests'); + } + this._initBody(body); + if (this.method === 'GET' || this.method === 'HEAD') { + if (options.cache === 'no-store' || options.cache === 'no-cache') { + // Search for a '_' parameter in the query string + var reParamSearch = /([?&])_=[^&]*/; + if (reParamSearch.test(this.url)) { + // If it already exists then set the value with the current time + this.url = this.url.replace(reParamSearch, '$1_=' + new Date().getTime()); + } else { + // Otherwise add a new '_' parameter to the end with the current time + var reQueryString = /\?/; + this.url += (reQueryString.test(this.url) ? '&' : '?') + '_=' + new Date().getTime(); + } + } + } + } + Request.prototype.clone = function () { + return new Request(this, { + body: this._bodyInit + }); + }; + function decode(body) { + var form = new FormData(); + body.trim().split('&').forEach(function (bytes) { + if (bytes) { + var split = bytes.split('='); + var name = split.shift().replace(/\+/g, ' '); + var value = split.join('=').replace(/\+/g, ' '); + form.append(decodeURIComponent(name), decodeURIComponent(value)); + } + }); + return form; + } + function parseHeaders(rawHeaders) { + var headers = new Headers(); + // Replace instances of \r\n and \n followed by at least one space or horizontal tab with a space + // https://tools.ietf.org/html/rfc7230#section-3.2 + var preProcessedHeaders = rawHeaders.replace(/\r?\n[\t ]+/g, ' '); + // Avoiding split via regex to work around a common IE11 bug with the core-js 3.6.0 regex polyfill + // https://github.com/github/fetch/issues/748 + // https://github.com/zloirock/core-js/issues/751 + preProcessedHeaders.split('\r').map(function (header) { + return header.indexOf('\n') === 0 ? header.substr(1, header.length) : header; + }).forEach(function (line) { + var parts = line.split(':'); + var key = parts.shift().trim(); + if (key) { + var value = parts.join(':').trim(); + headers.append(key, value); + } + }); + return headers; + } + Body.call(Request.prototype); + function Response(bodyInit, options) { + if (!(this instanceof Response)) { + throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.'); + } + if (!options) { + options = {}; + } + this.type = 'default'; + this.status = options.status === undefined ? 200 : options.status; + this.ok = this.status >= 200 && this.status < 300; + this.statusText = options.statusText === undefined ? '' : '' + options.statusText; + this.headers = new Headers(options.headers); + this.url = options.url || ''; + this._initBody(bodyInit); + } + Body.call(Response.prototype); + Response.prototype.clone = function () { + return new Response(this._bodyInit, { + status: this.status, + statusText: this.statusText, + headers: new Headers(this.headers), + url: this.url + }); + }; + Response.error = function () { + var response = new Response(null, { + status: 0, + statusText: '' + }); + response.type = 'error'; + return response; + }; + var redirectStatuses = [301, 302, 303, 307, 308]; + Response.redirect = function (url, status) { + if (redirectStatuses.indexOf(status) === -1) { + throw new RangeError('Invalid status code'); + } + return new Response(null, { + status: status, + headers: { + location: url + } + }); + }; + var DOMException = global$o.DOMException; + try { + new DOMException(); + } catch (err) { + DOMException = function (message, name) { + this.message = message; + this.name = name; + var error = Error(message); + this.stack = error.stack; + }; + DOMException.prototype = Object.create(Error.prototype); + DOMException.prototype.constructor = DOMException; + } + function fetch$1(input, init) { + return new Promise(function (resolve, reject) { + var request = new Request(input, init); + if (request.signal && request.signal.aborted) { + return reject(new DOMException('Aborted', 'AbortError')); + } + var xhr = new XMLHttpRequest(); + function abortXhr() { + xhr.abort(); + } + xhr.onload = function () { + var options = { + status: xhr.status, + statusText: xhr.statusText, + headers: parseHeaders(xhr.getAllResponseHeaders() || '') + }; + options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL'); + var body = 'response' in xhr ? xhr.response : xhr.responseText; + setTimeout(function () { + resolve(new Response(body, options)); + }, 0); + }; + xhr.onerror = function () { + setTimeout(function () { + reject(new TypeError('Network request failed')); + }, 0); + }; + xhr.ontimeout = function () { + setTimeout(function () { + reject(new TypeError('Network request failed')); + }, 0); + }; + xhr.onabort = function () { + setTimeout(function () { + reject(new DOMException('Aborted', 'AbortError')); + }, 0); + }; + function fixUrl(url) { + try { + return url === '' && global$o.location.href ? global$o.location.href : url; + } catch (e) { + return url; + } + } + xhr.open(request.method, fixUrl(request.url), true); + if (request.credentials === 'include') { + xhr.withCredentials = true; + } else if (request.credentials === 'omit') { + xhr.withCredentials = false; + } + if ('responseType' in xhr) { + if (support.blob) { + xhr.responseType = 'blob'; + } else if (support.arrayBuffer && request.headers.get('Content-Type') && request.headers.get('Content-Type').indexOf('application/octet-stream') !== -1) { + xhr.responseType = 'arraybuffer'; + } + } + if (init && typeof init.headers === 'object' && !(init.headers instanceof Headers)) { + Object.getOwnPropertyNames(init.headers).forEach(function (name) { + xhr.setRequestHeader(name, normalizeValue(init.headers[name])); + }); + } else { + request.headers.forEach(function (value, name) { + xhr.setRequestHeader(name, value); + }); + } + if (request.signal) { + request.signal.addEventListener('abort', abortXhr); + xhr.onreadystatechange = function () { + // DONE (success or failure) + if (xhr.readyState === 4) { + request.signal.removeEventListener('abort', abortXhr); + } + }; + } + xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit); + }); + } + fetch$1.polyfill = true; + if (!global$o.fetch) { + global$o.fetch = fetch$1; + global$o.Headers = Headers; + global$o.Request = Request; + global$o.Response = Response; + } + + var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; + + var check = function (it) { + return it && it.Math == Math && it; + }; + + // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 + var global$n = + // eslint-disable-next-line es/no-global-this -- safe + check(typeof globalThis == 'object' && globalThis) || check(typeof window == 'object' && window) || + // eslint-disable-next-line no-restricted-globals -- safe + check(typeof self == 'object' && self) || check(typeof commonjsGlobal == 'object' && commonjsGlobal) || + // eslint-disable-next-line no-new-func -- fallback + function () { + return this; + }() || Function('return this')(); + + // iterable DOM collections + // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods + var domIterables = { + CSSRuleList: 0, + CSSStyleDeclaration: 0, + CSSValueList: 0, + ClientRectList: 0, + DOMRectList: 0, + DOMStringList: 0, + DOMTokenList: 1, + DataTransferItemList: 0, + FileList: 0, + HTMLAllCollection: 0, + HTMLCollection: 0, + HTMLFormElement: 0, + HTMLSelectElement: 0, + MediaList: 0, + MimeTypeArray: 0, + NamedNodeMap: 0, + NodeList: 1, + PaintRequestList: 0, + Plugin: 0, + PluginArray: 0, + SVGLengthList: 0, + SVGNumberList: 0, + SVGPathSegList: 0, + SVGPointList: 0, + SVGStringList: 0, + SVGTransformList: 0, + SourceBufferList: 0, + StyleSheetList: 0, + TextTrackCueList: 0, + TextTrackList: 0, + TouchList: 0 + }; + + var documentAll$2 = typeof document == 'object' && document.all; + + // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot + // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing + var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined; + var documentAll_1 = { + all: documentAll$2, + IS_HTMLDDA: IS_HTMLDDA + }; + + var $documentAll$1 = documentAll_1; + var documentAll$1 = $documentAll$1.all; + + // `IsCallable` abstract operation + // https://tc39.es/ecma262/#sec-iscallable + var isCallable$m = $documentAll$1.IS_HTMLDDA ? function (argument) { + return typeof argument == 'function' || argument === documentAll$1; + } : function (argument) { + return typeof argument == 'function'; + }; + + var isCallable$l = isCallable$m; + var $documentAll = documentAll_1; + var documentAll = $documentAll.all; + var isObject$f = $documentAll.IS_HTMLDDA ? function (it) { + return typeof it == 'object' ? it !== null : isCallable$l(it) || it === documentAll; + } : function (it) { + return typeof it == 'object' ? it !== null : isCallable$l(it); + }; + + var global$m = global$n; + var isObject$e = isObject$f; + var document$3 = global$m.document; + // typeof document.createElement is 'object' in old IE + var EXISTS$1 = isObject$e(document$3) && isObject$e(document$3.createElement); + var documentCreateElement$2 = function (it) { + return EXISTS$1 ? document$3.createElement(it) : {}; + }; + + // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList` + var documentCreateElement$1 = documentCreateElement$2; + var classList = documentCreateElement$1('span').classList; + var DOMTokenListPrototype$2 = classList && classList.constructor && classList.constructor.prototype; + var domTokenListPrototype = DOMTokenListPrototype$2 === Object.prototype ? undefined : DOMTokenListPrototype$2; + + var fails$s = function (exec) { + try { + return !!exec(); + } catch (error) { + return true; + } + }; + + var fails$r = fails$s; + var functionBindNative = !fails$r(function () { + // eslint-disable-next-line es/no-function-prototype-bind -- safe + var test = function () {/* empty */}.bind(); + // eslint-disable-next-line no-prototype-builtins -- safe + return typeof test != 'function' || test.hasOwnProperty('prototype'); + }); + + var NATIVE_BIND$3 = functionBindNative; + var FunctionPrototype$2 = Function.prototype; + var call$g = FunctionPrototype$2.call; + var uncurryThisWithBind = NATIVE_BIND$3 && FunctionPrototype$2.bind.bind(call$g, call$g); + var functionUncurryThis = NATIVE_BIND$3 ? uncurryThisWithBind : function (fn) { + return function () { + return call$g.apply(fn, arguments); + }; + }; + + var uncurryThis$p = functionUncurryThis; + var toString$8 = uncurryThis$p({}.toString); + var stringSlice$4 = uncurryThis$p(''.slice); + var classofRaw$2 = function (it) { + return stringSlice$4(toString$8(it), 8, -1); + }; + + var classofRaw$1 = classofRaw$2; + var uncurryThis$o = functionUncurryThis; + var functionUncurryThisClause = function (fn) { + // Nashorn bug: + // https://github.com/zloirock/core-js/issues/1128 + // https://github.com/zloirock/core-js/issues/1130 + if (classofRaw$1(fn) === 'Function') return uncurryThis$o(fn); + }; + + var $String$4 = String; + var tryToString$4 = function (argument) { + try { + return $String$4(argument); + } catch (error) { + return 'Object'; + } + }; + + var isCallable$k = isCallable$m; + var tryToString$3 = tryToString$4; + var $TypeError$e = TypeError; + + // `Assert: IsCallable(argument) is true` + var aCallable$8 = function (argument) { + if (isCallable$k(argument)) return argument; + throw $TypeError$e(tryToString$3(argument) + ' is not a function'); + }; + + var uncurryThis$n = functionUncurryThisClause; + var aCallable$7 = aCallable$8; + var NATIVE_BIND$2 = functionBindNative; + var bind$6 = uncurryThis$n(uncurryThis$n.bind); + + // optional / simple context binding + var functionBindContext = function (fn, that) { + aCallable$7(fn); + return that === undefined ? fn : NATIVE_BIND$2 ? bind$6(fn, that) : function /* ...args */ + () { + return fn.apply(that, arguments); + }; + }; + + var uncurryThis$m = functionUncurryThis; + var fails$q = fails$s; + var classof$a = classofRaw$2; + var $Object$4 = Object; + var split = uncurryThis$m(''.split); + + // fallback for non-array-like ES3 and non-enumerable old V8 strings + var indexedObject = fails$q(function () { + // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346 + // eslint-disable-next-line no-prototype-builtins -- safe + return !$Object$4('z').propertyIsEnumerable(0); + }) ? function (it) { + return classof$a(it) == 'String' ? split(it, '') : $Object$4(it); + } : $Object$4; + + // we can't use just `it == null` since of `document.all` special case + // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec + var isNullOrUndefined$6 = function (it) { + return it === null || it === undefined; + }; + + var isNullOrUndefined$5 = isNullOrUndefined$6; + var $TypeError$d = TypeError; + + // `RequireObjectCoercible` abstract operation + // https://tc39.es/ecma262/#sec-requireobjectcoercible + var requireObjectCoercible$5 = function (it) { + if (isNullOrUndefined$5(it)) throw $TypeError$d("Can't call method on " + it); + return it; + }; + + var requireObjectCoercible$4 = requireObjectCoercible$5; + var $Object$3 = Object; + + // `ToObject` abstract operation + // https://tc39.es/ecma262/#sec-toobject + var toObject$6 = function (argument) { + return $Object$3(requireObjectCoercible$4(argument)); + }; + + var ceil = Math.ceil; + var floor = Math.floor; + + // `Math.trunc` method + // https://tc39.es/ecma262/#sec-math.trunc + // eslint-disable-next-line es/no-math-trunc -- safe + var mathTrunc = Math.trunc || function trunc(x) { + var n = +x; + return (n > 0 ? floor : ceil)(n); + }; + + var trunc = mathTrunc; + + // `ToIntegerOrInfinity` abstract operation + // https://tc39.es/ecma262/#sec-tointegerorinfinity + var toIntegerOrInfinity$3 = function (argument) { + var number = +argument; + // eslint-disable-next-line no-self-compare -- NaN check + return number !== number || number === 0 ? 0 : trunc(number); + }; + + var toIntegerOrInfinity$2 = toIntegerOrInfinity$3; + var min$1 = Math.min; + + // `ToLength` abstract operation + // https://tc39.es/ecma262/#sec-tolength + var toLength$1 = function (argument) { + return argument > 0 ? min$1(toIntegerOrInfinity$2(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991 + }; + + var toLength = toLength$1; + + // `LengthOfArrayLike` abstract operation + // https://tc39.es/ecma262/#sec-lengthofarraylike + var lengthOfArrayLike$5 = function (obj) { + return toLength(obj.length); + }; + + var classof$9 = classofRaw$2; + + // `IsArray` abstract operation + // https://tc39.es/ecma262/#sec-isarray + // eslint-disable-next-line es/no-array-isarray -- safe + var isArray$2 = Array.isArray || function isArray(argument) { + return classof$9(argument) == 'Array'; + }; + + var shared$4 = {exports: {}}; + + var isPure = false; + + var global$l = global$n; + + // eslint-disable-next-line es/no-object-defineproperty -- safe + var defineProperty$8 = Object.defineProperty; + var defineGlobalProperty$3 = function (key, value) { + try { + defineProperty$8(global$l, key, { + value: value, + configurable: true, + writable: true + }); + } catch (error) { + global$l[key] = value; + } + return value; + }; + + var global$k = global$n; + var defineGlobalProperty$2 = defineGlobalProperty$3; + var SHARED = '__core-js_shared__'; + var store$3 = global$k[SHARED] || defineGlobalProperty$2(SHARED, {}); + var sharedStore = store$3; + + var store$2 = sharedStore; + (shared$4.exports = function (key, value) { + return store$2[key] || (store$2[key] = value !== undefined ? value : {}); + })('versions', []).push({ + version: '3.28.0', + mode: 'global', + copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)', + license: 'https://github.com/zloirock/core-js/blob/v3.28.0/LICENSE', + source: 'https://github.com/zloirock/core-js' + }); + var sharedExports = shared$4.exports; + + var uncurryThis$l = functionUncurryThis; + var toObject$5 = toObject$6; + var hasOwnProperty = uncurryThis$l({}.hasOwnProperty); + + // `HasOwnProperty` abstract operation + // https://tc39.es/ecma262/#sec-hasownproperty + // eslint-disable-next-line es/no-object-hasown -- safe + var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) { + return hasOwnProperty(toObject$5(it), key); + }; + + var uncurryThis$k = functionUncurryThis; + var id$1 = 0; + var postfix = Math.random(); + var toString$7 = uncurryThis$k(1.0.toString); + var uid$3 = function (key) { + return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$7(++id$1 + postfix, 36); + }; + + var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || ''; + + var global$j = global$n; + var userAgent$3 = engineUserAgent; + var process$4 = global$j.process; + var Deno$1 = global$j.Deno; + var versions = process$4 && process$4.versions || Deno$1 && Deno$1.version; + var v8 = versions && versions.v8; + var match, version$1; + if (v8) { + match = v8.split('.'); + // in old Chrome, versions of V8 isn't V8 = Chrome / 10 + // but their correct versions are not interesting for us + version$1 = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]); + } + + // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0` + // so check `userAgent` even if `.v8` exists, but 0 + if (!version$1 && userAgent$3) { + match = userAgent$3.match(/Edge\/(\d+)/); + if (!match || match[1] >= 74) { + match = userAgent$3.match(/Chrome\/(\d+)/); + if (match) version$1 = +match[1]; + } + } + var engineV8Version = version$1; + + /* eslint-disable es/no-symbol -- required for testing */ + var V8_VERSION$3 = engineV8Version; + var fails$p = fails$s; + + // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing + var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$p(function () { + var symbol = Symbol(); + // Chrome 38 Symbol has incorrect toString conversion + // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances + return !String(symbol) || !(Object(symbol) instanceof Symbol) || + // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances + !Symbol.sham && V8_VERSION$3 && V8_VERSION$3 < 41; + }); + + /* eslint-disable es/no-symbol -- required for testing */ + var NATIVE_SYMBOL$1 = symbolConstructorDetection; + var useSymbolAsUid = NATIVE_SYMBOL$1 && !Symbol.sham && typeof Symbol.iterator == 'symbol'; + + var global$i = global$n; + var shared$3 = sharedExports; + var hasOwn$c = hasOwnProperty_1; + var uid$2 = uid$3; + var NATIVE_SYMBOL = symbolConstructorDetection; + var USE_SYMBOL_AS_UID$1 = useSymbolAsUid; + var Symbol$1 = global$i.Symbol; + var WellKnownSymbolsStore = shared$3('wks'); + var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$2; + var wellKnownSymbol$j = function (name) { + if (!hasOwn$c(WellKnownSymbolsStore, name)) { + WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$c(Symbol$1, name) ? Symbol$1[name] : createWellKnownSymbol('Symbol.' + name); + } + return WellKnownSymbolsStore[name]; + }; + + var wellKnownSymbol$i = wellKnownSymbol$j; + var TO_STRING_TAG$3 = wellKnownSymbol$i('toStringTag'); + var test = {}; + test[TO_STRING_TAG$3] = 'z'; + var toStringTagSupport = String(test) === '[object z]'; + + var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport; + var isCallable$j = isCallable$m; + var classofRaw = classofRaw$2; + var wellKnownSymbol$h = wellKnownSymbol$j; + var TO_STRING_TAG$2 = wellKnownSymbol$h('toStringTag'); + var $Object$2 = Object; + + // ES3 wrong here + var CORRECT_ARGUMENTS = classofRaw(function () { + return arguments; + }()) == 'Arguments'; + + // fallback for IE11 Script Access Denied error + var tryGet = function (it, key) { + try { + return it[key]; + } catch (error) {/* empty */} + }; + + // getting tag from ES6+ `Object.prototype.toString` + var classof$8 = TO_STRING_TAG_SUPPORT$2 ? classofRaw : function (it) { + var O, tag, result; + return it === undefined ? 'Undefined' : it === null ? 'Null' + // @@toStringTag case + : typeof (tag = tryGet(O = $Object$2(it), TO_STRING_TAG$2)) == 'string' ? tag + // builtinTag case + : CORRECT_ARGUMENTS ? classofRaw(O) + // ES3 arguments fallback + : (result = classofRaw(O)) == 'Object' && isCallable$j(O.callee) ? 'Arguments' : result; + }; + + var global$h = global$n; + var isCallable$i = isCallable$m; + var aFunction = function (argument) { + return isCallable$i(argument) ? argument : undefined; + }; + var getBuiltIn$7 = function (namespace, method) { + return arguments.length < 2 ? aFunction(global$h[namespace]) : global$h[namespace] && global$h[namespace][method]; + }; + + var uncurryThis$j = functionUncurryThis; + var isCallable$h = isCallable$m; + var store$1 = sharedStore; + var functionToString = uncurryThis$j(Function.toString); + + // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper + if (!isCallable$h(store$1.inspectSource)) { + store$1.inspectSource = function (it) { + return functionToString(it); + }; + } + var inspectSource$3 = store$1.inspectSource; + + var uncurryThis$i = functionUncurryThis; + var fails$o = fails$s; + var isCallable$g = isCallable$m; + var classof$7 = classof$8; + var getBuiltIn$6 = getBuiltIn$7; + var inspectSource$2 = inspectSource$3; + var noop = function () {/* empty */}; + var empty = []; + var construct = getBuiltIn$6('Reflect', 'construct'); + var constructorRegExp = /^\s*(?:class|function)\b/; + var exec$1 = uncurryThis$i(constructorRegExp.exec); + var INCORRECT_TO_STRING = !constructorRegExp.exec(noop); + var isConstructorModern = function isConstructor(argument) { + if (!isCallable$g(argument)) return false; + try { + construct(noop, empty, argument); + return true; + } catch (error) { + return false; + } + }; + var isConstructorLegacy = function isConstructor(argument) { + if (!isCallable$g(argument)) return false; + switch (classof$7(argument)) { + case 'AsyncFunction': + case 'GeneratorFunction': + case 'AsyncGeneratorFunction': + return false; + } + try { + // we can't check .prototype since constructors produced by .bind haven't it + // `Function#toString` throws on some built-it function in some legacy engines + // (for example, `DOMQuad` and similar in FF41-) + return INCORRECT_TO_STRING || !!exec$1(constructorRegExp, inspectSource$2(argument)); + } catch (error) { + return true; + } + }; + isConstructorLegacy.sham = true; + + // `IsConstructor` abstract operation + // https://tc39.es/ecma262/#sec-isconstructor + var isConstructor$2 = !construct || fails$o(function () { + var called; + return isConstructorModern(isConstructorModern.call) || !isConstructorModern(Object) || !isConstructorModern(function () { + called = true; + }) || called; + }) ? isConstructorLegacy : isConstructorModern; + + var isArray$1 = isArray$2; + var isConstructor$1 = isConstructor$2; + var isObject$d = isObject$f; + var wellKnownSymbol$g = wellKnownSymbol$j; + var SPECIES$4 = wellKnownSymbol$g('species'); + var $Array$1 = Array; + + // a part of `ArraySpeciesCreate` abstract operation + // https://tc39.es/ecma262/#sec-arrayspeciescreate + var arraySpeciesConstructor$1 = function (originalArray) { + var C; + if (isArray$1(originalArray)) { + C = originalArray.constructor; + // cross-realm fallback + if (isConstructor$1(C) && (C === $Array$1 || isArray$1(C.prototype))) C = undefined;else if (isObject$d(C)) { + C = C[SPECIES$4]; + if (C === null) C = undefined; + } + } + return C === undefined ? $Array$1 : C; + }; + + var arraySpeciesConstructor = arraySpeciesConstructor$1; + + // `ArraySpeciesCreate` abstract operation + // https://tc39.es/ecma262/#sec-arrayspeciescreate + var arraySpeciesCreate$2 = function (originalArray, length) { + return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length); + }; + + var bind$5 = functionBindContext; + var uncurryThis$h = functionUncurryThis; + var IndexedObject$2 = indexedObject; + var toObject$4 = toObject$6; + var lengthOfArrayLike$4 = lengthOfArrayLike$5; + var arraySpeciesCreate$1 = arraySpeciesCreate$2; + var push$2 = uncurryThis$h([].push); + + // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation + var createMethod$4 = function (TYPE) { + var IS_MAP = TYPE == 1; + var IS_FILTER = TYPE == 2; + var IS_SOME = TYPE == 3; + var IS_EVERY = TYPE == 4; + var IS_FIND_INDEX = TYPE == 6; + var IS_FILTER_REJECT = TYPE == 7; + var NO_HOLES = TYPE == 5 || IS_FIND_INDEX; + return function ($this, callbackfn, that, specificCreate) { + var O = toObject$4($this); + var self = IndexedObject$2(O); + var boundFunction = bind$5(callbackfn, that); + var length = lengthOfArrayLike$4(self); + var index = 0; + var create = specificCreate || arraySpeciesCreate$1; + var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined; + var value, result; + for (; length > index; index++) if (NO_HOLES || index in self) { + value = self[index]; + result = boundFunction(value, index, O); + if (TYPE) { + if (IS_MAP) target[index] = result; // map + else if (result) switch (TYPE) { + case 3: + return true; + // some + case 5: + return value; + // find + case 6: + return index; + // findIndex + case 2: + push$2(target, value); + // filter + } else switch (TYPE) { + case 4: + return false; + // every + case 7: + push$2(target, value); + // filterReject + } + } + } + + return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target; + }; + }; + var arrayIteration = { + // `Array.prototype.forEach` method + // https://tc39.es/ecma262/#sec-array.prototype.foreach + forEach: createMethod$4(0), + // `Array.prototype.map` method + // https://tc39.es/ecma262/#sec-array.prototype.map + map: createMethod$4(1), + // `Array.prototype.filter` method + // https://tc39.es/ecma262/#sec-array.prototype.filter + filter: createMethod$4(2), + // `Array.prototype.some` method + // https://tc39.es/ecma262/#sec-array.prototype.some + some: createMethod$4(3), + // `Array.prototype.every` method + // https://tc39.es/ecma262/#sec-array.prototype.every + every: createMethod$4(4), + // `Array.prototype.find` method + // https://tc39.es/ecma262/#sec-array.prototype.find + find: createMethod$4(5), + // `Array.prototype.findIndex` method + // https://tc39.es/ecma262/#sec-array.prototype.findIndex + findIndex: createMethod$4(6), + // `Array.prototype.filterReject` method + // https://github.com/tc39/proposal-array-filtering + filterReject: createMethod$4(7) + }; + + var fails$n = fails$s; + var arrayMethodIsStrict$2 = function (METHOD_NAME, argument) { + var method = [][METHOD_NAME]; + return !!method && fails$n(function () { + // eslint-disable-next-line no-useless-call -- required for testing + method.call(null, argument || function () { + return 1; + }, 1); + }); + }; + + var $forEach = arrayIteration.forEach; + var arrayMethodIsStrict$1 = arrayMethodIsStrict$2; + var STRICT_METHOD = arrayMethodIsStrict$1('forEach'); + + // `Array.prototype.forEach` method implementation + // https://tc39.es/ecma262/#sec-array.prototype.foreach + var arrayForEach = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) { + return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); + // eslint-disable-next-line es/no-array-prototype-foreach -- safe + } : [].forEach; + + var fails$m = fails$s; + + // Detect IE8's incomplete defineProperty implementation + var descriptors = !fails$m(function () { + // eslint-disable-next-line es/no-object-defineproperty -- required for testing + return Object.defineProperty({}, 1, { + get: function () { + return 7; + } + })[1] != 7; + }); + + var objectDefineProperty = {}; + + var DESCRIPTORS$d = descriptors; + var fails$l = fails$s; + var createElement$1 = documentCreateElement$2; + + // Thanks to IE8 for its funny defineProperty + var ie8DomDefine = !DESCRIPTORS$d && !fails$l(function () { + // eslint-disable-next-line es/no-object-defineproperty -- required for testing + return Object.defineProperty(createElement$1('div'), 'a', { + get: function () { + return 7; + } + }).a != 7; + }); + + var DESCRIPTORS$c = descriptors; + var fails$k = fails$s; + + // V8 ~ Chrome 36- + // https://bugs.chromium.org/p/v8/issues/detail?id=3334 + var v8PrototypeDefineBug = DESCRIPTORS$c && fails$k(function () { + // eslint-disable-next-line es/no-object-defineproperty -- required for testing + return Object.defineProperty(function () {/* empty */}, 'prototype', { + value: 42, + writable: false + }).prototype != 42; + }); + + var isObject$c = isObject$f; + var $String$3 = String; + var $TypeError$c = TypeError; + + // `Assert: Type(argument) is Object` + var anObject$c = function (argument) { + if (isObject$c(argument)) return argument; + throw $TypeError$c($String$3(argument) + ' is not an object'); + }; + + var NATIVE_BIND$1 = functionBindNative; + var call$f = Function.prototype.call; + var functionCall = NATIVE_BIND$1 ? call$f.bind(call$f) : function () { + return call$f.apply(call$f, arguments); + }; + + var uncurryThis$g = functionUncurryThis; + var objectIsPrototypeOf = uncurryThis$g({}.isPrototypeOf); + + var getBuiltIn$5 = getBuiltIn$7; + var isCallable$f = isCallable$m; + var isPrototypeOf$4 = objectIsPrototypeOf; + var USE_SYMBOL_AS_UID = useSymbolAsUid; + var $Object$1 = Object; + var isSymbol$3 = USE_SYMBOL_AS_UID ? function (it) { + return typeof it == 'symbol'; + } : function (it) { + var $Symbol = getBuiltIn$5('Symbol'); + return isCallable$f($Symbol) && isPrototypeOf$4($Symbol.prototype, $Object$1(it)); + }; + + var aCallable$6 = aCallable$8; + var isNullOrUndefined$4 = isNullOrUndefined$6; + + // `GetMethod` abstract operation + // https://tc39.es/ecma262/#sec-getmethod + var getMethod$3 = function (V, P) { + var func = V[P]; + return isNullOrUndefined$4(func) ? undefined : aCallable$6(func); + }; + + var call$e = functionCall; + var isCallable$e = isCallable$m; + var isObject$b = isObject$f; + var $TypeError$b = TypeError; + + // `OrdinaryToPrimitive` abstract operation + // https://tc39.es/ecma262/#sec-ordinarytoprimitive + var ordinaryToPrimitive$1 = function (input, pref) { + var fn, val; + if (pref === 'string' && isCallable$e(fn = input.toString) && !isObject$b(val = call$e(fn, input))) return val; + if (isCallable$e(fn = input.valueOf) && !isObject$b(val = call$e(fn, input))) return val; + if (pref !== 'string' && isCallable$e(fn = input.toString) && !isObject$b(val = call$e(fn, input))) return val; + throw $TypeError$b("Can't convert object to primitive value"); + }; + + var call$d = functionCall; + var isObject$a = isObject$f; + var isSymbol$2 = isSymbol$3; + var getMethod$2 = getMethod$3; + var ordinaryToPrimitive = ordinaryToPrimitive$1; + var wellKnownSymbol$f = wellKnownSymbol$j; + var $TypeError$a = TypeError; + var TO_PRIMITIVE = wellKnownSymbol$f('toPrimitive'); + + // `ToPrimitive` abstract operation + // https://tc39.es/ecma262/#sec-toprimitive + var toPrimitive$2 = function (input, pref) { + if (!isObject$a(input) || isSymbol$2(input)) return input; + var exoticToPrim = getMethod$2(input, TO_PRIMITIVE); + var result; + if (exoticToPrim) { + if (pref === undefined) pref = 'default'; + result = call$d(exoticToPrim, input, pref); + if (!isObject$a(result) || isSymbol$2(result)) return result; + throw $TypeError$a("Can't convert object to primitive value"); + } + if (pref === undefined) pref = 'number'; + return ordinaryToPrimitive(input, pref); + }; + + var toPrimitive$1 = toPrimitive$2; + var isSymbol$1 = isSymbol$3; + + // `ToPropertyKey` abstract operation + // https://tc39.es/ecma262/#sec-topropertykey + var toPropertyKey$3 = function (argument) { + var key = toPrimitive$1(argument, 'string'); + return isSymbol$1(key) ? key : key + ''; + }; + + var DESCRIPTORS$b = descriptors; + var IE8_DOM_DEFINE$1 = ie8DomDefine; + var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug; + var anObject$b = anObject$c; + var toPropertyKey$2 = toPropertyKey$3; + var $TypeError$9 = TypeError; + // eslint-disable-next-line es/no-object-defineproperty -- safe + var $defineProperty = Object.defineProperty; + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor; + var ENUMERABLE = 'enumerable'; + var CONFIGURABLE$1 = 'configurable'; + var WRITABLE = 'writable'; + + // `Object.defineProperty` method + // https://tc39.es/ecma262/#sec-object.defineproperty + objectDefineProperty.f = DESCRIPTORS$b ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) { + anObject$b(O); + P = toPropertyKey$2(P); + anObject$b(Attributes); + if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) { + var current = $getOwnPropertyDescriptor$1(O, P); + if (current && current[WRITABLE]) { + O[P] = Attributes.value; + Attributes = { + configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1], + enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE], + writable: false + }; + } + } + return $defineProperty(O, P, Attributes); + } : $defineProperty : function defineProperty(O, P, Attributes) { + anObject$b(O); + P = toPropertyKey$2(P); + anObject$b(Attributes); + if (IE8_DOM_DEFINE$1) try { + return $defineProperty(O, P, Attributes); + } catch (error) {/* empty */} + if ('get' in Attributes || 'set' in Attributes) throw $TypeError$9('Accessors not supported'); + if ('value' in Attributes) O[P] = Attributes.value; + return O; + }; + + var createPropertyDescriptor$4 = function (bitmap, value) { + return { + enumerable: !(bitmap & 1), + configurable: !(bitmap & 2), + writable: !(bitmap & 4), + value: value + }; + }; + + var DESCRIPTORS$a = descriptors; + var definePropertyModule$4 = objectDefineProperty; + var createPropertyDescriptor$3 = createPropertyDescriptor$4; + var createNonEnumerableProperty$5 = DESCRIPTORS$a ? function (object, key, value) { + return definePropertyModule$4.f(object, key, createPropertyDescriptor$3(1, value)); + } : function (object, key, value) { + object[key] = value; + return object; + }; + + var global$g = global$n; + var DOMIterables$1 = domIterables; + var DOMTokenListPrototype$1 = domTokenListPrototype; + var forEach = arrayForEach; + var createNonEnumerableProperty$4 = createNonEnumerableProperty$5; + var handlePrototype$1 = function (CollectionPrototype) { + // some Chrome versions have non-configurable methods on DOMTokenList + if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try { + createNonEnumerableProperty$4(CollectionPrototype, 'forEach', forEach); + } catch (error) { + CollectionPrototype.forEach = forEach; + } + }; + for (var COLLECTION_NAME$1 in DOMIterables$1) { + if (DOMIterables$1[COLLECTION_NAME$1]) { + handlePrototype$1(global$g[COLLECTION_NAME$1] && global$g[COLLECTION_NAME$1].prototype); + } + } + handlePrototype$1(DOMTokenListPrototype$1); + + // toObject with fallback for non-array-like ES3 strings + var IndexedObject$1 = indexedObject; + var requireObjectCoercible$3 = requireObjectCoercible$5; + var toIndexedObject$7 = function (it) { + return IndexedObject$1(requireObjectCoercible$3(it)); + }; + + var objectDefineProperties = {}; + + var toIntegerOrInfinity$1 = toIntegerOrInfinity$3; + var max$1 = Math.max; + var min = Math.min; + + // Helper for a popular repeating case of the spec: + // Let integer be ? ToInteger(index). + // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length). + var toAbsoluteIndex$2 = function (index, length) { + var integer = toIntegerOrInfinity$1(index); + return integer < 0 ? max$1(integer + length, 0) : min(integer, length); + }; + + var toIndexedObject$6 = toIndexedObject$7; + var toAbsoluteIndex$1 = toAbsoluteIndex$2; + var lengthOfArrayLike$3 = lengthOfArrayLike$5; + + // `Array.prototype.{ indexOf, includes }` methods implementation + var createMethod$3 = function (IS_INCLUDES) { + return function ($this, el, fromIndex) { + var O = toIndexedObject$6($this); + var length = lengthOfArrayLike$3(O); + var index = toAbsoluteIndex$1(fromIndex, length); + var value; + // Array#includes uses SameValueZero equality algorithm + // eslint-disable-next-line no-self-compare -- NaN check + if (IS_INCLUDES && el != el) while (length > index) { + value = O[index++]; + // eslint-disable-next-line no-self-compare -- NaN check + if (value != value) return true; + // Array#indexOf ignores holes, Array#includes - not + } else for (; length > index; index++) { + if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0; + } + return !IS_INCLUDES && -1; + }; + }; + var arrayIncludes = { + // `Array.prototype.includes` method + // https://tc39.es/ecma262/#sec-array.prototype.includes + includes: createMethod$3(true), + // `Array.prototype.indexOf` method + // https://tc39.es/ecma262/#sec-array.prototype.indexof + indexOf: createMethod$3(false) + }; + + var hiddenKeys$5 = {}; + + var uncurryThis$f = functionUncurryThis; + var hasOwn$b = hasOwnProperty_1; + var toIndexedObject$5 = toIndexedObject$7; + var indexOf$1 = arrayIncludes.indexOf; + var hiddenKeys$4 = hiddenKeys$5; + var push$1 = uncurryThis$f([].push); + var objectKeysInternal = function (object, names) { + var O = toIndexedObject$5(object); + var i = 0; + var result = []; + var key; + for (key in O) !hasOwn$b(hiddenKeys$4, key) && hasOwn$b(O, key) && push$1(result, key); + // Don't enum bug & hidden keys + while (names.length > i) if (hasOwn$b(O, key = names[i++])) { + ~indexOf$1(result, key) || push$1(result, key); + } + return result; + }; + + // IE8- don't enum bug keys + var enumBugKeys$3 = ['constructor', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf']; + + var internalObjectKeys$1 = objectKeysInternal; + var enumBugKeys$2 = enumBugKeys$3; + + // `Object.keys` method + // https://tc39.es/ecma262/#sec-object.keys + // eslint-disable-next-line es/no-object-keys -- safe + var objectKeys$3 = Object.keys || function keys(O) { + return internalObjectKeys$1(O, enumBugKeys$2); + }; + + var DESCRIPTORS$9 = descriptors; + var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug; + var definePropertyModule$3 = objectDefineProperty; + var anObject$a = anObject$c; + var toIndexedObject$4 = toIndexedObject$7; + var objectKeys$2 = objectKeys$3; + + // `Object.defineProperties` method + // https://tc39.es/ecma262/#sec-object.defineproperties + // eslint-disable-next-line es/no-object-defineproperties -- safe + objectDefineProperties.f = DESCRIPTORS$9 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) { + anObject$a(O); + var props = toIndexedObject$4(Properties); + var keys = objectKeys$2(Properties); + var length = keys.length; + var index = 0; + var key; + while (length > index) definePropertyModule$3.f(O, key = keys[index++], props[key]); + return O; + }; + + var getBuiltIn$4 = getBuiltIn$7; + var html$2 = getBuiltIn$4('document', 'documentElement'); + + var shared$2 = sharedExports; + var uid$1 = uid$3; + var keys = shared$2('keys'); + var sharedKey$3 = function (key) { + return keys[key] || (keys[key] = uid$1(key)); + }; + + /* global ActiveXObject -- old IE, WSH */ + var anObject$9 = anObject$c; + var definePropertiesModule = objectDefineProperties; + var enumBugKeys$1 = enumBugKeys$3; + var hiddenKeys$3 = hiddenKeys$5; + var html$1 = html$2; + var documentCreateElement = documentCreateElement$2; + var sharedKey$2 = sharedKey$3; + var GT = '>'; + var LT = '<'; + var PROTOTYPE = 'prototype'; + var SCRIPT = 'script'; + var IE_PROTO$1 = sharedKey$2('IE_PROTO'); + var EmptyConstructor = function () {/* empty */}; + var scriptTag = function (content) { + return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT; + }; + + // Create object with fake `null` prototype: use ActiveX Object with cleared prototype + var NullProtoObjectViaActiveX = function (activeXDocument) { + activeXDocument.write(scriptTag('')); + activeXDocument.close(); + var temp = activeXDocument.parentWindow.Object; + activeXDocument = null; // avoid memory leak + return temp; + }; + + // Create object with fake `null` prototype: use iframe Object with cleared prototype + var NullProtoObjectViaIFrame = function () { + // Thrash, waste and sodomy: IE GC bug + var iframe = documentCreateElement('iframe'); + var JS = 'java' + SCRIPT + ':'; + var iframeDocument; + iframe.style.display = 'none'; + html$1.appendChild(iframe); + // https://github.com/zloirock/core-js/issues/475 + iframe.src = String(JS); + iframeDocument = iframe.contentWindow.document; + iframeDocument.open(); + iframeDocument.write(scriptTag('document.F=Object')); + iframeDocument.close(); + return iframeDocument.F; + }; + + // Check for document.domain and active x support + // No need to use active x approach when document.domain is not set + // see https://github.com/es-shims/es5-shim/issues/150 + // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346 + // avoid IE GC bug + var activeXDocument; + var NullProtoObject = function () { + try { + activeXDocument = new ActiveXObject('htmlfile'); + } catch (error) {/* ignore */} + NullProtoObject = typeof document != 'undefined' ? document.domain && activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) // old IE + : NullProtoObjectViaIFrame() : NullProtoObjectViaActiveX(activeXDocument); // WSH + var length = enumBugKeys$1.length; + while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys$1[length]]; + return NullProtoObject(); + }; + hiddenKeys$3[IE_PROTO$1] = true; + + // `Object.create` method + // https://tc39.es/ecma262/#sec-object.create + // eslint-disable-next-line es/no-object-create -- safe + var objectCreate = Object.create || function create(O, Properties) { + var result; + if (O !== null) { + EmptyConstructor[PROTOTYPE] = anObject$9(O); + result = new EmptyConstructor(); + EmptyConstructor[PROTOTYPE] = null; + // add "__proto__" for Object.getPrototypeOf polyfill + result[IE_PROTO$1] = O; + } else result = NullProtoObject(); + return Properties === undefined ? result : definePropertiesModule.f(result, Properties); + }; + + var wellKnownSymbol$e = wellKnownSymbol$j; + var create$3 = objectCreate; + var defineProperty$7 = objectDefineProperty.f; + var UNSCOPABLES = wellKnownSymbol$e('unscopables'); + var ArrayPrototype$1 = Array.prototype; + + // Array.prototype[@@unscopables] + // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables + if (ArrayPrototype$1[UNSCOPABLES] == undefined) { + defineProperty$7(ArrayPrototype$1, UNSCOPABLES, { + configurable: true, + value: create$3(null) + }); + } + + // add a key to Array.prototype[@@unscopables] + var addToUnscopables$3 = function (key) { + ArrayPrototype$1[UNSCOPABLES][key] = true; + }; + + var iterators = {}; + + var global$f = global$n; + var isCallable$d = isCallable$m; + var WeakMap$1 = global$f.WeakMap; + var weakMapBasicDetection = isCallable$d(WeakMap$1) && /native code/.test(String(WeakMap$1)); + + var NATIVE_WEAK_MAP = weakMapBasicDetection; + var global$e = global$n; + var isObject$9 = isObject$f; + var createNonEnumerableProperty$3 = createNonEnumerableProperty$5; + var hasOwn$a = hasOwnProperty_1; + var shared$1 = sharedStore; + var sharedKey$1 = sharedKey$3; + var hiddenKeys$2 = hiddenKeys$5; + var OBJECT_ALREADY_INITIALIZED = 'Object already initialized'; + var TypeError$3 = global$e.TypeError; + var WeakMap = global$e.WeakMap; + var set$1, get, has; + var enforce = function (it) { + return has(it) ? get(it) : set$1(it, {}); + }; + var getterFor = function (TYPE) { + return function (it) { + var state; + if (!isObject$9(it) || (state = get(it)).type !== TYPE) { + throw TypeError$3('Incompatible receiver, ' + TYPE + ' required'); + } + return state; + }; + }; + if (NATIVE_WEAK_MAP || shared$1.state) { + var store = shared$1.state || (shared$1.state = new WeakMap()); + /* eslint-disable no-self-assign -- prototype methods protection */ + store.get = store.get; + store.has = store.has; + store.set = store.set; + /* eslint-enable no-self-assign -- prototype methods protection */ + set$1 = function (it, metadata) { + if (store.has(it)) throw TypeError$3(OBJECT_ALREADY_INITIALIZED); + metadata.facade = it; + store.set(it, metadata); + return metadata; + }; + get = function (it) { + return store.get(it) || {}; + }; + has = function (it) { + return store.has(it); + }; + } else { + var STATE = sharedKey$1('state'); + hiddenKeys$2[STATE] = true; + set$1 = function (it, metadata) { + if (hasOwn$a(it, STATE)) throw TypeError$3(OBJECT_ALREADY_INITIALIZED); + metadata.facade = it; + createNonEnumerableProperty$3(it, STATE, metadata); + return metadata; + }; + get = function (it) { + return hasOwn$a(it, STATE) ? it[STATE] : {}; + }; + has = function (it) { + return hasOwn$a(it, STATE); + }; + } + var internalState = { + set: set$1, + get: get, + has: has, + enforce: enforce, + getterFor: getterFor + }; + + var objectGetOwnPropertyDescriptor = {}; + + var objectPropertyIsEnumerable = {}; + + var $propertyIsEnumerable$1 = {}.propertyIsEnumerable; + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + var getOwnPropertyDescriptor$3 = Object.getOwnPropertyDescriptor; + + // Nashorn ~ JDK8 bug + var NASHORN_BUG = getOwnPropertyDescriptor$3 && !$propertyIsEnumerable$1.call({ + 1: 2 + }, 1); + + // `Object.prototype.propertyIsEnumerable` method implementation + // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable + objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) { + var descriptor = getOwnPropertyDescriptor$3(this, V); + return !!descriptor && descriptor.enumerable; + } : $propertyIsEnumerable$1; + + var DESCRIPTORS$8 = descriptors; + var call$c = functionCall; + var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable; + var createPropertyDescriptor$2 = createPropertyDescriptor$4; + var toIndexedObject$3 = toIndexedObject$7; + var toPropertyKey$1 = toPropertyKey$3; + var hasOwn$9 = hasOwnProperty_1; + var IE8_DOM_DEFINE = ie8DomDefine; + + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; + + // `Object.getOwnPropertyDescriptor` method + // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor + objectGetOwnPropertyDescriptor.f = DESCRIPTORS$8 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) { + O = toIndexedObject$3(O); + P = toPropertyKey$1(P); + if (IE8_DOM_DEFINE) try { + return $getOwnPropertyDescriptor(O, P); + } catch (error) {/* empty */} + if (hasOwn$9(O, P)) return createPropertyDescriptor$2(!call$c(propertyIsEnumerableModule$1.f, O, P), O[P]); + }; + + var makeBuiltIn$3 = {exports: {}}; + + var DESCRIPTORS$7 = descriptors; + var hasOwn$8 = hasOwnProperty_1; + var FunctionPrototype$1 = Function.prototype; + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + var getDescriptor = DESCRIPTORS$7 && Object.getOwnPropertyDescriptor; + var EXISTS = hasOwn$8(FunctionPrototype$1, 'name'); + // additional protection from minified / mangled / dropped function names + var PROPER = EXISTS && function something() {/* empty */}.name === 'something'; + var CONFIGURABLE = EXISTS && (!DESCRIPTORS$7 || DESCRIPTORS$7 && getDescriptor(FunctionPrototype$1, 'name').configurable); + var functionName = { + EXISTS: EXISTS, + PROPER: PROPER, + CONFIGURABLE: CONFIGURABLE + }; + + var uncurryThis$e = functionUncurryThis; + var fails$j = fails$s; + var isCallable$c = isCallable$m; + var hasOwn$7 = hasOwnProperty_1; + var DESCRIPTORS$6 = descriptors; + var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE; + var inspectSource$1 = inspectSource$3; + var InternalStateModule$4 = internalState; + var enforceInternalState = InternalStateModule$4.enforce; + var getInternalState$3 = InternalStateModule$4.get; + var $String$2 = String; + // eslint-disable-next-line es/no-object-defineproperty -- safe + var defineProperty$6 = Object.defineProperty; + var stringSlice$3 = uncurryThis$e(''.slice); + var replace$2 = uncurryThis$e(''.replace); + var join = uncurryThis$e([].join); + var CONFIGURABLE_LENGTH = DESCRIPTORS$6 && !fails$j(function () { + return defineProperty$6(function () {/* empty */}, 'length', { + value: 8 + }).length !== 8; + }); + var TEMPLATE = String(String).split('String'); + var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) { + if (stringSlice$3($String$2(name), 0, 7) === 'Symbol(') { + name = '[' + replace$2($String$2(name), /^Symbol\(([^)]*)\)/, '$1') + ']'; + } + if (options && options.getter) name = 'get ' + name; + if (options && options.setter) name = 'set ' + name; + if (!hasOwn$7(value, 'name') || CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name) { + if (DESCRIPTORS$6) defineProperty$6(value, 'name', { + value: name, + configurable: true + });else value.name = name; + } + if (CONFIGURABLE_LENGTH && options && hasOwn$7(options, 'arity') && value.length !== options.arity) { + defineProperty$6(value, 'length', { + value: options.arity + }); + } + try { + if (options && hasOwn$7(options, 'constructor') && options.constructor) { + if (DESCRIPTORS$6) defineProperty$6(value, 'prototype', { + writable: false + }); + // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable + } else if (value.prototype) value.prototype = undefined; + } catch (error) {/* empty */} + var state = enforceInternalState(value); + if (!hasOwn$7(state, 'source')) { + state.source = join(TEMPLATE, typeof name == 'string' ? name : ''); + } + return value; + }; + + // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative + // eslint-disable-next-line no-extend-native -- required + Function.prototype.toString = makeBuiltIn$2(function toString() { + return isCallable$c(this) && getInternalState$3(this).source || inspectSource$1(this); + }, 'toString'); + var makeBuiltInExports = makeBuiltIn$3.exports; + + var isCallable$b = isCallable$m; + var definePropertyModule$2 = objectDefineProperty; + var makeBuiltIn$1 = makeBuiltInExports; + var defineGlobalProperty$1 = defineGlobalProperty$3; + var defineBuiltIn$9 = function (O, key, value, options) { + if (!options) options = {}; + var simple = options.enumerable; + var name = options.name !== undefined ? options.name : key; + if (isCallable$b(value)) makeBuiltIn$1(value, name, options); + if (options.global) { + if (simple) O[key] = value;else defineGlobalProperty$1(key, value); + } else { + try { + if (!options.unsafe) delete O[key];else if (O[key]) simple = true; + } catch (error) {/* empty */} + if (simple) O[key] = value;else definePropertyModule$2.f(O, key, { + value: value, + enumerable: false, + configurable: !options.nonConfigurable, + writable: !options.nonWritable + }); + } + return O; + }; + + var objectGetOwnPropertyNames = {}; + + var internalObjectKeys = objectKeysInternal; + var enumBugKeys = enumBugKeys$3; + var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype'); + + // `Object.getOwnPropertyNames` method + // https://tc39.es/ecma262/#sec-object.getownpropertynames + // eslint-disable-next-line es/no-object-getownpropertynames -- safe + objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { + return internalObjectKeys(O, hiddenKeys$1); + }; + + var objectGetOwnPropertySymbols = {}; + + // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe + objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols; + + var getBuiltIn$3 = getBuiltIn$7; + var uncurryThis$d = functionUncurryThis; + var getOwnPropertyNamesModule$1 = objectGetOwnPropertyNames; + var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols; + var anObject$8 = anObject$c; + var concat$1 = uncurryThis$d([].concat); + + // all object keys, includes non-enumerable and symbols + var ownKeys$1 = getBuiltIn$3('Reflect', 'ownKeys') || function ownKeys(it) { + var keys = getOwnPropertyNamesModule$1.f(anObject$8(it)); + var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f; + return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys; + }; + + var hasOwn$6 = hasOwnProperty_1; + var ownKeys = ownKeys$1; + var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor; + var definePropertyModule$1 = objectDefineProperty; + var copyConstructorProperties$2 = function (target, source, exceptions) { + var keys = ownKeys(source); + var defineProperty = definePropertyModule$1.f; + var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f; + for (var i = 0; i < keys.length; i++) { + var key = keys[i]; + if (!hasOwn$6(target, key) && !(exceptions && hasOwn$6(exceptions, key))) { + defineProperty(target, key, getOwnPropertyDescriptor(source, key)); + } + } + }; + + var fails$i = fails$s; + var isCallable$a = isCallable$m; + var replacement = /#|\.prototype\./; + var isForced$4 = function (feature, detection) { + var value = data[normalize(feature)]; + return value == POLYFILL ? true : value == NATIVE ? false : isCallable$a(detection) ? fails$i(detection) : !!detection; + }; + var normalize = isForced$4.normalize = function (string) { + return String(string).replace(replacement, '.').toLowerCase(); + }; + var data = isForced$4.data = {}; + var NATIVE = isForced$4.NATIVE = 'N'; + var POLYFILL = isForced$4.POLYFILL = 'P'; + var isForced_1 = isForced$4; + + var global$d = global$n; + var getOwnPropertyDescriptor$2 = objectGetOwnPropertyDescriptor.f; + var createNonEnumerableProperty$2 = createNonEnumerableProperty$5; + var defineBuiltIn$8 = defineBuiltIn$9; + var defineGlobalProperty = defineGlobalProperty$3; + var copyConstructorProperties$1 = copyConstructorProperties$2; + var isForced$3 = isForced_1; + + /* + options.target - name of the target object + options.global - target is the global object + options.stat - export as static methods of target + options.proto - export as prototype methods of target + options.real - real prototype method for the `pure` version + options.forced - export even if the native feature is available + options.bind - bind methods to the target, required for the `pure` version + options.wrap - wrap constructors to preventing global pollution, required for the `pure` version + options.unsafe - use the simple assignment of property instead of delete + defineProperty + options.sham - add a flag to not completely full polyfills + options.enumerable - export as enumerable property + options.dontCallGetSet - prevent calling a getter on target + options.name - the .name of the function if it does not match the key + */ + var _export = function (options, source) { + var TARGET = options.target; + var GLOBAL = options.global; + var STATIC = options.stat; + var FORCED, target, key, targetProperty, sourceProperty, descriptor; + if (GLOBAL) { + target = global$d; + } else if (STATIC) { + target = global$d[TARGET] || defineGlobalProperty(TARGET, {}); + } else { + target = (global$d[TARGET] || {}).prototype; + } + if (target) for (key in source) { + sourceProperty = source[key]; + if (options.dontCallGetSet) { + descriptor = getOwnPropertyDescriptor$2(target, key); + targetProperty = descriptor && descriptor.value; + } else targetProperty = target[key]; + FORCED = isForced$3(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced); + // contained in target + if (!FORCED && targetProperty !== undefined) { + if (typeof sourceProperty == typeof targetProperty) continue; + copyConstructorProperties$1(sourceProperty, targetProperty); + } + // add a flag to not completely full polyfills + if (options.sham || targetProperty && targetProperty.sham) { + createNonEnumerableProperty$2(sourceProperty, 'sham', true); + } + defineBuiltIn$8(target, key, sourceProperty, options); + } + }; + + var fails$h = fails$s; + var correctPrototypeGetter = !fails$h(function () { + function F() {/* empty */} + F.prototype.constructor = null; + // eslint-disable-next-line es/no-object-getprototypeof -- required for testing + return Object.getPrototypeOf(new F()) !== F.prototype; + }); + + var hasOwn$5 = hasOwnProperty_1; + var isCallable$9 = isCallable$m; + var toObject$3 = toObject$6; + var sharedKey = sharedKey$3; + var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter; + var IE_PROTO = sharedKey('IE_PROTO'); + var $Object = Object; + var ObjectPrototype = $Object.prototype; + + // `Object.getPrototypeOf` method + // https://tc39.es/ecma262/#sec-object.getprototypeof + // eslint-disable-next-line es/no-object-getprototypeof -- safe + var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) { + var object = toObject$3(O); + if (hasOwn$5(object, IE_PROTO)) return object[IE_PROTO]; + var constructor = object.constructor; + if (isCallable$9(constructor) && object instanceof constructor) { + return constructor.prototype; + } + return object instanceof $Object ? ObjectPrototype : null; + }; + + var fails$g = fails$s; + var isCallable$8 = isCallable$m; + var isObject$8 = isObject$f; + var getPrototypeOf$1 = objectGetPrototypeOf; + var defineBuiltIn$7 = defineBuiltIn$9; + var wellKnownSymbol$d = wellKnownSymbol$j; + var ITERATOR$5 = wellKnownSymbol$d('iterator'); + var BUGGY_SAFARI_ITERATORS$1 = false; + + // `%IteratorPrototype%` object + // https://tc39.es/ecma262/#sec-%iteratorprototype%-object + var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator; + + /* eslint-disable es/no-array-prototype-keys -- safe */ + if ([].keys) { + arrayIterator = [].keys(); + // Safari 8 has buggy iterators w/o `next` + if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;else { + PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator)); + if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype; + } + } + var NEW_ITERATOR_PROTOTYPE = !isObject$8(IteratorPrototype$2) || fails$g(function () { + var test = {}; + // FF44- legacy iterators case + return IteratorPrototype$2[ITERATOR$5].call(test) !== test; + }); + if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {}; + + // `%IteratorPrototype%[@@iterator]()` method + // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator + if (!isCallable$8(IteratorPrototype$2[ITERATOR$5])) { + defineBuiltIn$7(IteratorPrototype$2, ITERATOR$5, function () { + return this; + }); + } + var iteratorsCore = { + IteratorPrototype: IteratorPrototype$2, + BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1 + }; + + var defineProperty$5 = objectDefineProperty.f; + var hasOwn$4 = hasOwnProperty_1; + var wellKnownSymbol$c = wellKnownSymbol$j; + var TO_STRING_TAG$1 = wellKnownSymbol$c('toStringTag'); + var setToStringTag$4 = function (target, TAG, STATIC) { + if (target && !STATIC) target = target.prototype; + if (target && !hasOwn$4(target, TO_STRING_TAG$1)) { + defineProperty$5(target, TO_STRING_TAG$1, { + configurable: true, + value: TAG + }); + } + }; + + var IteratorPrototype$1 = iteratorsCore.IteratorPrototype; + var create$2 = objectCreate; + var createPropertyDescriptor$1 = createPropertyDescriptor$4; + var setToStringTag$3 = setToStringTag$4; + var Iterators$4 = iterators; + var returnThis$1 = function () { + return this; + }; + var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) { + var TO_STRING_TAG = NAME + ' Iterator'; + IteratorConstructor.prototype = create$2(IteratorPrototype$1, { + next: createPropertyDescriptor$1(+!ENUMERABLE_NEXT, next) + }); + setToStringTag$3(IteratorConstructor, TO_STRING_TAG, false); + Iterators$4[TO_STRING_TAG] = returnThis$1; + return IteratorConstructor; + }; + + var uncurryThis$c = functionUncurryThis; + var aCallable$5 = aCallable$8; + var functionUncurryThisAccessor = function (object, key, method) { + try { + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + return uncurryThis$c(aCallable$5(Object.getOwnPropertyDescriptor(object, key)[method])); + } catch (error) {/* empty */} + }; + + var isCallable$7 = isCallable$m; + var $String$1 = String; + var $TypeError$8 = TypeError; + var aPossiblePrototype$1 = function (argument) { + if (typeof argument == 'object' || isCallable$7(argument)) return argument; + throw $TypeError$8("Can't set " + $String$1(argument) + ' as a prototype'); + }; + + /* eslint-disable no-proto -- safe */ + var uncurryThisAccessor = functionUncurryThisAccessor; + var anObject$7 = anObject$c; + var aPossiblePrototype = aPossiblePrototype$1; + + // `Object.setPrototypeOf` method + // https://tc39.es/ecma262/#sec-object.setprototypeof + // Works with __proto__ only. Old v8 can't work with null proto objects. + // eslint-disable-next-line es/no-object-setprototypeof -- safe + var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () { + var CORRECT_SETTER = false; + var test = {}; + var setter; + try { + setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set'); + setter(test, []); + CORRECT_SETTER = test instanceof Array; + } catch (error) {/* empty */} + return function setPrototypeOf(O, proto) { + anObject$7(O); + aPossiblePrototype(proto); + if (CORRECT_SETTER) setter(O, proto);else O.__proto__ = proto; + return O; + }; + }() : undefined); + + var $$l = _export; + var call$b = functionCall; + var FunctionName = functionName; + var isCallable$6 = isCallable$m; + var createIteratorConstructor = iteratorCreateConstructor; + var getPrototypeOf = objectGetPrototypeOf; + var setPrototypeOf$2 = objectSetPrototypeOf; + var setToStringTag$2 = setToStringTag$4; + var createNonEnumerableProperty$1 = createNonEnumerableProperty$5; + var defineBuiltIn$6 = defineBuiltIn$9; + var wellKnownSymbol$b = wellKnownSymbol$j; + var Iterators$3 = iterators; + var IteratorsCore = iteratorsCore; + var PROPER_FUNCTION_NAME$2 = FunctionName.PROPER; + var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE; + var IteratorPrototype = IteratorsCore.IteratorPrototype; + var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS; + var ITERATOR$4 = wellKnownSymbol$b('iterator'); + var KEYS = 'keys'; + var VALUES = 'values'; + var ENTRIES = 'entries'; + var returnThis = function () { + return this; + }; + var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) { + createIteratorConstructor(IteratorConstructor, NAME, next); + var getIterationMethod = function (KIND) { + if (KIND === DEFAULT && defaultIterator) return defaultIterator; + if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND]; + switch (KIND) { + case KEYS: + return function keys() { + return new IteratorConstructor(this, KIND); + }; + case VALUES: + return function values() { + return new IteratorConstructor(this, KIND); + }; + case ENTRIES: + return function entries() { + return new IteratorConstructor(this, KIND); + }; + } + return function () { + return new IteratorConstructor(this); + }; + }; + var TO_STRING_TAG = NAME + ' Iterator'; + var INCORRECT_VALUES_NAME = false; + var IterablePrototype = Iterable.prototype; + var nativeIterator = IterablePrototype[ITERATOR$4] || IterablePrototype['@@iterator'] || DEFAULT && IterablePrototype[DEFAULT]; + var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT); + var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator; + var CurrentIteratorPrototype, methods, KEY; + + // fix native + if (anyNativeIterator) { + CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable())); + if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) { + if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) { + if (setPrototypeOf$2) { + setPrototypeOf$2(CurrentIteratorPrototype, IteratorPrototype); + } else if (!isCallable$6(CurrentIteratorPrototype[ITERATOR$4])) { + defineBuiltIn$6(CurrentIteratorPrototype, ITERATOR$4, returnThis); + } + } + // Set @@toStringTag to native iterators + setToStringTag$2(CurrentIteratorPrototype, TO_STRING_TAG, true); + } + } + + // fix Array.prototype.{ values, @@iterator }.name in V8 / FF + if (PROPER_FUNCTION_NAME$2 && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) { + if (CONFIGURABLE_FUNCTION_NAME) { + createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES); + } else { + INCORRECT_VALUES_NAME = true; + defaultIterator = function values() { + return call$b(nativeIterator, this); + }; + } + } + + // export additional methods + if (DEFAULT) { + methods = { + values: getIterationMethod(VALUES), + keys: IS_SET ? defaultIterator : getIterationMethod(KEYS), + entries: getIterationMethod(ENTRIES) + }; + if (FORCED) for (KEY in methods) { + if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) { + defineBuiltIn$6(IterablePrototype, KEY, methods[KEY]); + } + } else $$l({ + target: NAME, + proto: true, + forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME + }, methods); + } + + // define iterator + if (IterablePrototype[ITERATOR$4] !== defaultIterator) { + defineBuiltIn$6(IterablePrototype, ITERATOR$4, defaultIterator, { + name: DEFAULT + }); + } + Iterators$3[NAME] = defaultIterator; + return methods; + }; + + // `CreateIterResultObject` abstract operation + // https://tc39.es/ecma262/#sec-createiterresultobject + var createIterResultObject$3 = function (value, done) { + return { + value: value, + done: done + }; + }; + + var toIndexedObject$2 = toIndexedObject$7; + var addToUnscopables$2 = addToUnscopables$3; + var Iterators$2 = iterators; + var InternalStateModule$3 = internalState; + var defineProperty$4 = objectDefineProperty.f; + var defineIterator$2 = iteratorDefine; + var createIterResultObject$2 = createIterResultObject$3; + var DESCRIPTORS$5 = descriptors; + var ARRAY_ITERATOR = 'Array Iterator'; + var setInternalState$3 = InternalStateModule$3.set; + var getInternalState$2 = InternalStateModule$3.getterFor(ARRAY_ITERATOR); + + // `Array.prototype.entries` method + // https://tc39.es/ecma262/#sec-array.prototype.entries + // `Array.prototype.keys` method + // https://tc39.es/ecma262/#sec-array.prototype.keys + // `Array.prototype.values` method + // https://tc39.es/ecma262/#sec-array.prototype.values + // `Array.prototype[@@iterator]` method + // https://tc39.es/ecma262/#sec-array.prototype-@@iterator + // `CreateArrayIterator` internal method + // https://tc39.es/ecma262/#sec-createarrayiterator + var es_array_iterator = defineIterator$2(Array, 'Array', function (iterated, kind) { + setInternalState$3(this, { + type: ARRAY_ITERATOR, + target: toIndexedObject$2(iterated), + // target + index: 0, + // next index + kind: kind // kind + }); + // `%ArrayIteratorPrototype%.next` method + // https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next + }, function () { + var state = getInternalState$2(this); + var target = state.target; + var kind = state.kind; + var index = state.index++; + if (!target || index >= target.length) { + state.target = undefined; + return createIterResultObject$2(undefined, true); + } + if (kind == 'keys') return createIterResultObject$2(index, false); + if (kind == 'values') return createIterResultObject$2(target[index], false); + return createIterResultObject$2([index, target[index]], false); + }, 'values'); + + // argumentsList[@@iterator] is %ArrayProto_values% + // https://tc39.es/ecma262/#sec-createunmappedargumentsobject + // https://tc39.es/ecma262/#sec-createmappedargumentsobject + var values = Iterators$2.Arguments = Iterators$2.Array; + + // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables + addToUnscopables$2('keys'); + addToUnscopables$2('values'); + addToUnscopables$2('entries'); + + // V8 ~ Chrome 45- bug + if (DESCRIPTORS$5 && values.name !== 'values') try { + defineProperty$4(values, 'name', { + value: 'values' + }); + } catch (error) {/* empty */} + + var global$c = global$n; + var DOMIterables = domIterables; + var DOMTokenListPrototype = domTokenListPrototype; + var ArrayIteratorMethods = es_array_iterator; + var createNonEnumerableProperty = createNonEnumerableProperty$5; + var wellKnownSymbol$a = wellKnownSymbol$j; + var ITERATOR$3 = wellKnownSymbol$a('iterator'); + var TO_STRING_TAG = wellKnownSymbol$a('toStringTag'); + var ArrayValues = ArrayIteratorMethods.values; + var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) { + if (CollectionPrototype) { + // some Chrome versions have non-configurable methods on DOMTokenList + if (CollectionPrototype[ITERATOR$3] !== ArrayValues) try { + createNonEnumerableProperty(CollectionPrototype, ITERATOR$3, ArrayValues); + } catch (error) { + CollectionPrototype[ITERATOR$3] = ArrayValues; + } + if (!CollectionPrototype[TO_STRING_TAG]) { + createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME); + } + if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) { + // some Chrome versions have non-configurable methods on DOMTokenList + if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try { + createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]); + } catch (error) { + CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME]; + } + } + } + }; + for (var COLLECTION_NAME in DOMIterables) { + handlePrototype(global$c[COLLECTION_NAME] && global$c[COLLECTION_NAME].prototype, COLLECTION_NAME); + } + handlePrototype(DOMTokenListPrototype, 'DOMTokenList'); + + var global$b = global$n; + var path$1 = global$b; + + function _regeneratorRuntime() { + _regeneratorRuntime = function () { + return exports; + }; + var exports = {}, + Op = Object.prototype, + hasOwn = Op.hasOwnProperty, + defineProperty = Object.defineProperty || function (obj, key, desc) { + obj[key] = desc.value; + }, + $Symbol = "function" == typeof Symbol ? Symbol : {}, + iteratorSymbol = $Symbol.iterator || "@@iterator", + asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", + toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; + function define(obj, key, value) { + return Object.defineProperty(obj, key, { + value: value, + enumerable: !0, + configurable: !0, + writable: !0 + }), obj[key]; + } + try { + define({}, ""); + } catch (err) { + define = function (obj, key, value) { + return obj[key] = value; + }; + } + function wrap(innerFn, outerFn, self, tryLocsList) { + var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, + generator = Object.create(protoGenerator.prototype), + context = new Context(tryLocsList || []); + return defineProperty(generator, "_invoke", { + value: makeInvokeMethod(innerFn, self, context) + }), generator; + } + function tryCatch(fn, obj, arg) { + try { + return { + type: "normal", + arg: fn.call(obj, arg) + }; + } catch (err) { + return { + type: "throw", + arg: err + }; + } + } + exports.wrap = wrap; + var ContinueSentinel = {}; + function Generator() {} + function GeneratorFunction() {} + function GeneratorFunctionPrototype() {} + var IteratorPrototype = {}; + define(IteratorPrototype, iteratorSymbol, function () { + return this; + }); + var getProto = Object.getPrototypeOf, + NativeIteratorPrototype = getProto && getProto(getProto(values([]))); + NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); + var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); + function defineIteratorMethods(prototype) { + ["next", "throw", "return"].forEach(function (method) { + define(prototype, method, function (arg) { + return this._invoke(method, arg); + }); + }); + } + function AsyncIterator(generator, PromiseImpl) { + function invoke(method, arg, resolve, reject) { + var record = tryCatch(generator[method], generator, arg); + if ("throw" !== record.type) { + var result = record.arg, + value = result.value; + return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { + invoke("next", value, resolve, reject); + }, function (err) { + invoke("throw", err, resolve, reject); + }) : PromiseImpl.resolve(value).then(function (unwrapped) { + result.value = unwrapped, resolve(result); + }, function (error) { + return invoke("throw", error, resolve, reject); + }); + } + reject(record.arg); + } + var previousPromise; + defineProperty(this, "_invoke", { + value: function (method, arg) { + function callInvokeWithMethodAndArg() { + return new PromiseImpl(function (resolve, reject) { + invoke(method, arg, resolve, reject); + }); + } + return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); + } + }); + } + function makeInvokeMethod(innerFn, self, context) { + var state = "suspendedStart"; + return function (method, arg) { + if ("executing" === state) throw new Error("Generator is already running"); + if ("completed" === state) { + if ("throw" === method) throw arg; + return doneResult(); + } + for (context.method = method, context.arg = arg;;) { + var delegate = context.delegate; + if (delegate) { + var delegateResult = maybeInvokeDelegate(delegate, context); + if (delegateResult) { + if (delegateResult === ContinueSentinel) continue; + return delegateResult; + } + } + if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { + if ("suspendedStart" === state) throw state = "completed", context.arg; + context.dispatchException(context.arg); + } else "return" === context.method && context.abrupt("return", context.arg); + state = "executing"; + var record = tryCatch(innerFn, self, context); + if ("normal" === record.type) { + if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; + return { + value: record.arg, + done: context.done + }; + } + "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); + } + }; + } + function maybeInvokeDelegate(delegate, context) { + var methodName = context.method, + method = delegate.iterator[methodName]; + if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; + var record = tryCatch(method, delegate.iterator, context.arg); + if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; + var info = record.arg; + return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); + } + function pushTryEntry(locs) { + var entry = { + tryLoc: locs[0] + }; + 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); + } + function resetTryEntry(entry) { + var record = entry.completion || {}; + record.type = "normal", delete record.arg, entry.completion = record; + } + function Context(tryLocsList) { + this.tryEntries = [{ + tryLoc: "root" + }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); + } + function values(iterable) { + if (iterable) { + var iteratorMethod = iterable[iteratorSymbol]; + if (iteratorMethod) return iteratorMethod.call(iterable); + if ("function" == typeof iterable.next) return iterable; + if (!isNaN(iterable.length)) { + var i = -1, + next = function next() { + for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; + return next.value = undefined, next.done = !0, next; + }; + return next.next = next; + } + } + return { + next: doneResult + }; + } + function doneResult() { + return { + value: undefined, + done: !0 + }; + } + return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { + value: GeneratorFunctionPrototype, + configurable: !0 + }), defineProperty(GeneratorFunctionPrototype, "constructor", { + value: GeneratorFunction, + configurable: !0 + }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { + var ctor = "function" == typeof genFun && genFun.constructor; + return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); + }, exports.mark = function (genFun) { + return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; + }, exports.awrap = function (arg) { + return { + __await: arg + }; + }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { + return this; + }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { + void 0 === PromiseImpl && (PromiseImpl = Promise); + var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); + return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { + return result.done ? result.value : iter.next(); + }); + }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { + return this; + }), define(Gp, "toString", function () { + return "[object Generator]"; + }), exports.keys = function (val) { + var object = Object(val), + keys = []; + for (var key in object) keys.push(key); + return keys.reverse(), function next() { + for (; keys.length;) { + var key = keys.pop(); + if (key in object) return next.value = key, next.done = !1, next; + } + return next.done = !0, next; + }; + }, exports.values = values, Context.prototype = { + constructor: Context, + reset: function (skipTempReset) { + if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); + }, + stop: function () { + this.done = !0; + var rootRecord = this.tryEntries[0].completion; + if ("throw" === rootRecord.type) throw rootRecord.arg; + return this.rval; + }, + dispatchException: function (exception) { + if (this.done) throw exception; + var context = this; + function handle(loc, caught) { + return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; + } + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i], + record = entry.completion; + if ("root" === entry.tryLoc) return handle("end"); + if (entry.tryLoc <= this.prev) { + var hasCatch = hasOwn.call(entry, "catchLoc"), + hasFinally = hasOwn.call(entry, "finallyLoc"); + if (hasCatch && hasFinally) { + if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); + if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); + } else if (hasCatch) { + if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); + } else { + if (!hasFinally) throw new Error("try statement without catch or finally"); + if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); + } + } + } + }, + abrupt: function (type, arg) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { + var finallyEntry = entry; + break; + } + } + finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); + var record = finallyEntry ? finallyEntry.completion : {}; + return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); + }, + complete: function (record, afterLoc) { + if ("throw" === record.type) throw record.arg; + return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; + }, + finish: function (finallyLoc) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; + } + }, + catch: function (tryLoc) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.tryLoc === tryLoc) { + var record = entry.completion; + if ("throw" === record.type) { + var thrown = record.arg; + resetTryEntry(entry); + } + return thrown; + } + } + throw new Error("illegal catch attempt"); + }, + delegateYield: function (iterable, resultName, nextLoc) { + return this.delegate = { + iterator: values(iterable), + resultName: resultName, + nextLoc: nextLoc + }, "next" === this.method && (this.arg = undefined), ContinueSentinel; + } + }, exports; + } + function _typeof(obj) { + "@babel/helpers - typeof"; + + return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { + return typeof obj; + } : function (obj) { + return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }, _typeof(obj); + } + function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { + try { + var info = gen[key](arg); + var value = info.value; + } catch (error) { + reject(error); + return; + } + if (info.done) { + resolve(value); + } else { + Promise.resolve(value).then(_next, _throw); + } + } + function _asyncToGenerator(fn) { + return function () { + var self = this, + args = arguments; + return new Promise(function (resolve, reject) { + var gen = fn.apply(self, args); + function _next(value) { + asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); + } + function _throw(err) { + asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); + } + _next(undefined); + }); + }; + } + function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } + } + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); + } + } + function _createClass(Constructor, protoProps, staticProps) { + if (protoProps) _defineProperties(Constructor.prototype, protoProps); + if (staticProps) _defineProperties(Constructor, staticProps); + Object.defineProperty(Constructor, "prototype", { + writable: false + }); + return Constructor; + } + function _inherits(subClass, superClass) { + if (typeof superClass !== "function" && superClass !== null) { + throw new TypeError("Super expression must either be null or a function"); + } + subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { + value: subClass, + writable: true, + configurable: true + } + }); + Object.defineProperty(subClass, "prototype", { + writable: false + }); + if (superClass) _setPrototypeOf(subClass, superClass); + } + function _getPrototypeOf(o) { + _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }; + return _getPrototypeOf(o); + } + function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + return _setPrototypeOf(o, p); + } + function _isNativeReflectConstruct() { + if (typeof Reflect === "undefined" || !Reflect.construct) return false; + if (Reflect.construct.sham) return false; + if (typeof Proxy === "function") return true; + try { + Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); + return true; + } catch (e) { + return false; + } + } + function _assertThisInitialized(self) { + if (self === void 0) { + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + } + return self; + } + function _possibleConstructorReturn(self, call) { + if (call && (typeof call === "object" || typeof call === "function")) { + return call; + } else if (call !== void 0) { + throw new TypeError("Derived constructors may only return object or undefined"); + } + return _assertThisInitialized(self); + } + function _createSuper(Derived) { + var hasNativeReflectConstruct = _isNativeReflectConstruct(); + return function _createSuperInternal() { + var Super = _getPrototypeOf(Derived), + result; + if (hasNativeReflectConstruct) { + var NewTarget = _getPrototypeOf(this).constructor; + result = Reflect.construct(Super, arguments, NewTarget); + } else { + result = Super.apply(this, arguments); + } + return _possibleConstructorReturn(this, result); + }; + } + function _toConsumableArray(arr) { + return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); + } + function _arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return _arrayLikeToArray(arr); + } + function _iterableToArray(iter) { + if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); + } + function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if (typeof o === "string") return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + if (n === "Object" && o.constructor) n = o.constructor.name; + if (n === "Map" || n === "Set") return Array.from(o); + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); + } + function _arrayLikeToArray(arr, len) { + if (len == null || len > arr.length) len = arr.length; + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + function _nonIterableSpread() { + throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); + } + function _createForOfIteratorHelper(o, allowArrayLike) { + var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; + if (!it) { + if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { + if (it) o = it; + var i = 0; + var F = function () {}; + return { + s: F, + n: function () { + if (i >= o.length) return { + done: true + }; + return { + done: false, + value: o[i++] + }; + }, + e: function (e) { + throw e; + }, + f: F + }; + } + throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); + } + var normalCompletion = true, + didErr = false, + err; + return { + s: function () { + it = it.call(o); + }, + n: function () { + var step = it.next(); + normalCompletion = step.done; + return step; + }, + e: function (e) { + didErr = true; + err = e; + }, + f: function () { + try { + if (!normalCompletion && it.return != null) it.return(); + } finally { + if (didErr) throw err; + } + } + }; + } + function _toPrimitive(input, hint) { + if (typeof input !== "object" || input === null) return input; + var prim = input[Symbol.toPrimitive]; + if (prim !== undefined) { + var res = prim.call(input, hint || "default"); + if (typeof res !== "object") return res; + throw new TypeError("@@toPrimitive must return a primitive value."); + } + return (hint === "string" ? String : Number)(input); + } + function _toPropertyKey(arg) { + var key = _toPrimitive(arg, "string"); + return typeof key === "symbol" ? key : String(key); + } + + /* eslint-disable es/no-array-prototype-indexof -- required for testing */ + var $$k = _export; + var uncurryThis$b = functionUncurryThisClause; + var $indexOf = arrayIncludes.indexOf; + var arrayMethodIsStrict = arrayMethodIsStrict$2; + var nativeIndexOf = uncurryThis$b([].indexOf); + var NEGATIVE_ZERO = !!nativeIndexOf && 1 / nativeIndexOf([1], 1, -0) < 0; + var FORCED$2 = NEGATIVE_ZERO || !arrayMethodIsStrict('indexOf'); + + // `Array.prototype.indexOf` method + // https://tc39.es/ecma262/#sec-array.prototype.indexof + $$k({ + target: 'Array', + proto: true, + forced: FORCED$2 + }, { + indexOf: function indexOf(searchElement /* , fromIndex = 0 */) { + var fromIndex = arguments.length > 1 ? arguments[1] : undefined; + return NEGATIVE_ZERO + // convert -0 to +0 + ? nativeIndexOf(this, searchElement, fromIndex) || 0 : $indexOf(this, searchElement, fromIndex); + } + }); + + var $TypeError$7 = TypeError; + var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991 + + var doesNotExceedSafeInteger$1 = function (it) { + if (it > MAX_SAFE_INTEGER) throw $TypeError$7('Maximum allowed index exceeded'); + return it; + }; + + var toPropertyKey = toPropertyKey$3; + var definePropertyModule = objectDefineProperty; + var createPropertyDescriptor = createPropertyDescriptor$4; + var createProperty$2 = function (object, key, value) { + var propertyKey = toPropertyKey(key); + if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));else object[propertyKey] = value; + }; + + var fails$f = fails$s; + var wellKnownSymbol$9 = wellKnownSymbol$j; + var V8_VERSION$2 = engineV8Version; + var SPECIES$3 = wellKnownSymbol$9('species'); + var arrayMethodHasSpeciesSupport$3 = function (METHOD_NAME) { + // We can't use this feature detection in V8 since it causes + // deoptimization and serious performance degradation + // https://github.com/zloirock/core-js/issues/677 + return V8_VERSION$2 >= 51 || !fails$f(function () { + var array = []; + var constructor = array.constructor = {}; + constructor[SPECIES$3] = function () { + return { + foo: 1 + }; + }; + return array[METHOD_NAME](Boolean).foo !== 1; + }); + }; + + var $$j = _export; + var fails$e = fails$s; + var isArray = isArray$2; + var isObject$7 = isObject$f; + var toObject$2 = toObject$6; + var lengthOfArrayLike$2 = lengthOfArrayLike$5; + var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1; + var createProperty$1 = createProperty$2; + var arraySpeciesCreate = arraySpeciesCreate$2; + var arrayMethodHasSpeciesSupport$2 = arrayMethodHasSpeciesSupport$3; + var wellKnownSymbol$8 = wellKnownSymbol$j; + var V8_VERSION$1 = engineV8Version; + var IS_CONCAT_SPREADABLE = wellKnownSymbol$8('isConcatSpreadable'); + + // We can't use this feature detection in V8 since it causes + // deoptimization and serious performance degradation + // https://github.com/zloirock/core-js/issues/679 + var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION$1 >= 51 || !fails$e(function () { + var array = []; + array[IS_CONCAT_SPREADABLE] = false; + return array.concat()[0] !== array; + }); + var isConcatSpreadable = function (O) { + if (!isObject$7(O)) return false; + var spreadable = O[IS_CONCAT_SPREADABLE]; + return spreadable !== undefined ? !!spreadable : isArray(O); + }; + var FORCED$1 = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport$2('concat'); + + // `Array.prototype.concat` method + // https://tc39.es/ecma262/#sec-array.prototype.concat + // with adding support of @@isConcatSpreadable and @@species + $$j({ + target: 'Array', + proto: true, + arity: 1, + forced: FORCED$1 + }, { + // eslint-disable-next-line no-unused-vars -- required for `.length` + concat: function concat(arg) { + var O = toObject$2(this); + var A = arraySpeciesCreate(O, 0); + var n = 0; + var i, k, length, len, E; + for (i = -1, length = arguments.length; i < length; i++) { + E = i === -1 ? O : arguments[i]; + if (isConcatSpreadable(E)) { + len = lengthOfArrayLike$2(E); + doesNotExceedSafeInteger(n + len); + for (k = 0; k < len; k++, n++) if (k in E) createProperty$1(A, n, E[k]); + } else { + doesNotExceedSafeInteger(n + 1); + createProperty$1(A, n++, E); + } + } + A.length = n; + return A; + } + }); + + var DESCRIPTORS$4 = descriptors; + var uncurryThis$a = functionUncurryThis; + var call$a = functionCall; + var fails$d = fails$s; + var objectKeys$1 = objectKeys$3; + var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols; + var propertyIsEnumerableModule = objectPropertyIsEnumerable; + var toObject$1 = toObject$6; + var IndexedObject = indexedObject; + + // eslint-disable-next-line es/no-object-assign -- safe + var $assign = Object.assign; + // eslint-disable-next-line es/no-object-defineproperty -- required for testing + var defineProperty$3 = Object.defineProperty; + var concat = uncurryThis$a([].concat); + + // `Object.assign` method + // https://tc39.es/ecma262/#sec-object.assign + var objectAssign = !$assign || fails$d(function () { + // should have correct order of operations (Edge bug) + if (DESCRIPTORS$4 && $assign({ + b: 1 + }, $assign(defineProperty$3({}, 'a', { + enumerable: true, + get: function () { + defineProperty$3(this, 'b', { + value: 3, + enumerable: false + }); + } + }), { + b: 2 + })).b !== 1) return true; + // should work with symbols and should have deterministic property order (V8 bug) + var A = {}; + var B = {}; + // eslint-disable-next-line es/no-symbol -- safe + var symbol = Symbol(); + var alphabet = 'abcdefghijklmnopqrst'; + A[symbol] = 7; + alphabet.split('').forEach(function (chr) { + B[chr] = chr; + }); + return $assign({}, A)[symbol] != 7 || objectKeys$1($assign({}, B)).join('') != alphabet; + }) ? function assign(target, source) { + // eslint-disable-line no-unused-vars -- required for `.length` + var T = toObject$1(target); + var argumentsLength = arguments.length; + var index = 1; + var getOwnPropertySymbols = getOwnPropertySymbolsModule.f; + var propertyIsEnumerable = propertyIsEnumerableModule.f; + while (argumentsLength > index) { + var S = IndexedObject(arguments[index++]); + var keys = getOwnPropertySymbols ? concat(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S); + var length = keys.length; + var j = 0; + var key; + while (length > j) { + key = keys[j++]; + if (!DESCRIPTORS$4 || call$a(propertyIsEnumerable, S, key)) T[key] = S[key]; + } + } + return T; + } : $assign; + + var $$i = _export; + var assign = objectAssign; + + // `Object.assign` method + // https://tc39.es/ecma262/#sec-object.assign + // eslint-disable-next-line es/no-object-assign -- required for testing + $$i({ + target: 'Object', + stat: true, + arity: 2, + forced: Object.assign !== assign + }, { + assign: assign + }); + + var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport; + var classof$6 = classof$8; + + // `Object.prototype.toString` method implementation + // https://tc39.es/ecma262/#sec-object.prototype.tostring + var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() { + return '[object ' + classof$6(this) + ']'; + }; + + var TO_STRING_TAG_SUPPORT = toStringTagSupport; + var defineBuiltIn$5 = defineBuiltIn$9; + var toString$6 = objectToString; + + // `Object.prototype.toString` method + // https://tc39.es/ecma262/#sec-object.prototype.tostring + if (!TO_STRING_TAG_SUPPORT) { + defineBuiltIn$5(Object.prototype, 'toString', toString$6, { + unsafe: true + }); + } + + var classof$5 = classofRaw$2; + var engineIsNode = typeof process != 'undefined' && classof$5(process) == 'process'; + + var makeBuiltIn = makeBuiltInExports; + var defineProperty$2 = objectDefineProperty; + var defineBuiltInAccessor$2 = function (target, name, descriptor) { + if (descriptor.get) makeBuiltIn(descriptor.get, name, { + getter: true + }); + if (descriptor.set) makeBuiltIn(descriptor.set, name, { + setter: true + }); + return defineProperty$2.f(target, name, descriptor); + }; + + var getBuiltIn$2 = getBuiltIn$7; + var defineBuiltInAccessor$1 = defineBuiltInAccessor$2; + var wellKnownSymbol$7 = wellKnownSymbol$j; + var DESCRIPTORS$3 = descriptors; + var SPECIES$2 = wellKnownSymbol$7('species'); + var setSpecies$2 = function (CONSTRUCTOR_NAME) { + var Constructor = getBuiltIn$2(CONSTRUCTOR_NAME); + if (DESCRIPTORS$3 && Constructor && !Constructor[SPECIES$2]) { + defineBuiltInAccessor$1(Constructor, SPECIES$2, { + configurable: true, + get: function () { + return this; + } + }); + } + }; + + var isPrototypeOf$3 = objectIsPrototypeOf; + var $TypeError$6 = TypeError; + var anInstance$3 = function (it, Prototype) { + if (isPrototypeOf$3(Prototype, it)) return it; + throw $TypeError$6('Incorrect invocation'); + }; + + var isConstructor = isConstructor$2; + var tryToString$2 = tryToString$4; + var $TypeError$5 = TypeError; + + // `Assert: IsConstructor(argument) is true` + var aConstructor$1 = function (argument) { + if (isConstructor(argument)) return argument; + throw $TypeError$5(tryToString$2(argument) + ' is not a constructor'); + }; + + var anObject$6 = anObject$c; + var aConstructor = aConstructor$1; + var isNullOrUndefined$3 = isNullOrUndefined$6; + var wellKnownSymbol$6 = wellKnownSymbol$j; + var SPECIES$1 = wellKnownSymbol$6('species'); + + // `SpeciesConstructor` abstract operation + // https://tc39.es/ecma262/#sec-speciesconstructor + var speciesConstructor$1 = function (O, defaultConstructor) { + var C = anObject$6(O).constructor; + var S; + return C === undefined || isNullOrUndefined$3(S = anObject$6(C)[SPECIES$1]) ? defaultConstructor : aConstructor(S); + }; + + var NATIVE_BIND = functionBindNative; + var FunctionPrototype = Function.prototype; + var apply$1 = FunctionPrototype.apply; + var call$9 = FunctionPrototype.call; + + // eslint-disable-next-line es/no-reflect -- safe + var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$9.bind(apply$1) : function () { + return call$9.apply(apply$1, arguments); + }); + + var uncurryThis$9 = functionUncurryThis; + var arraySlice$2 = uncurryThis$9([].slice); + + var $TypeError$4 = TypeError; + var validateArgumentsLength$1 = function (passed, required) { + if (passed < required) throw $TypeError$4('Not enough arguments'); + return passed; + }; + + var userAgent$2 = engineUserAgent; + + // eslint-disable-next-line redos/no-vulnerable -- safe + var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2); + + var global$a = global$n; + var apply = functionApply; + var bind$4 = functionBindContext; + var isCallable$5 = isCallable$m; + var hasOwn$3 = hasOwnProperty_1; + var fails$c = fails$s; + var html = html$2; + var arraySlice$1 = arraySlice$2; + var createElement = documentCreateElement$2; + var validateArgumentsLength = validateArgumentsLength$1; + var IS_IOS$1 = engineIsIos; + var IS_NODE$3 = engineIsNode; + var set = global$a.setImmediate; + var clear = global$a.clearImmediate; + var process$3 = global$a.process; + var Dispatch = global$a.Dispatch; + var Function$1 = global$a.Function; + var MessageChannel = global$a.MessageChannel; + var String$1 = global$a.String; + var counter = 0; + var queue$2 = {}; + var ONREADYSTATECHANGE = 'onreadystatechange'; + var $location, defer, channel, port; + fails$c(function () { + // Deno throws a ReferenceError on `location` access without `--location` flag + $location = global$a.location; + }); + var run = function (id) { + if (hasOwn$3(queue$2, id)) { + var fn = queue$2[id]; + delete queue$2[id]; + fn(); + } + }; + var runner = function (id) { + return function () { + run(id); + }; + }; + var eventListener = function (event) { + run(event.data); + }; + var globalPostMessageDefer = function (id) { + // old engines have not location.origin + global$a.postMessage(String$1(id), $location.protocol + '//' + $location.host); + }; + + // Node.js 0.9+ & IE10+ has setImmediate, otherwise: + if (!set || !clear) { + set = function setImmediate(handler) { + validateArgumentsLength(arguments.length, 1); + var fn = isCallable$5(handler) ? handler : Function$1(handler); + var args = arraySlice$1(arguments, 1); + queue$2[++counter] = function () { + apply(fn, undefined, args); + }; + defer(counter); + return counter; + }; + clear = function clearImmediate(id) { + delete queue$2[id]; + }; + // Node.js 0.8- + if (IS_NODE$3) { + defer = function (id) { + process$3.nextTick(runner(id)); + }; + // Sphere (JS game engine) Dispatch API + } else if (Dispatch && Dispatch.now) { + defer = function (id) { + Dispatch.now(runner(id)); + }; + // Browsers with MessageChannel, includes WebWorkers + // except iOS - https://github.com/zloirock/core-js/issues/624 + } else if (MessageChannel && !IS_IOS$1) { + channel = new MessageChannel(); + port = channel.port2; + channel.port1.onmessage = eventListener; + defer = bind$4(port.postMessage, port); + // Browsers with postMessage, skip WebWorkers + // IE8 has postMessage, but it's sync & typeof its postMessage is 'object' + } else if (global$a.addEventListener && isCallable$5(global$a.postMessage) && !global$a.importScripts && $location && $location.protocol !== 'file:' && !fails$c(globalPostMessageDefer)) { + defer = globalPostMessageDefer; + global$a.addEventListener('message', eventListener, false); + // IE8- + } else if (ONREADYSTATECHANGE in createElement('script')) { + defer = function (id) { + html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () { + html.removeChild(this); + run(id); + }; + }; + // Rest old browsers + } else { + defer = function (id) { + setTimeout(runner(id), 0); + }; + } + } + var task$1 = { + set: set, + clear: clear + }; + + var Queue$2 = function () { + this.head = null; + this.tail = null; + }; + Queue$2.prototype = { + add: function (item) { + var entry = { + item: item, + next: null + }; + var tail = this.tail; + if (tail) tail.next = entry;else this.head = entry; + this.tail = entry; + }, + get: function () { + var entry = this.head; + if (entry) { + var next = this.head = entry.next; + if (next === null) this.tail = null; + return entry.item; + } + } + }; + var queue$1 = Queue$2; + + var userAgent$1 = engineUserAgent; + var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && typeof Pebble != 'undefined'; + + var userAgent = engineUserAgent; + var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent); + + var global$9 = global$n; + var bind$3 = functionBindContext; + var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f; + var macrotask = task$1.set; + var Queue$1 = queue$1; + var IS_IOS = engineIsIos; + var IS_IOS_PEBBLE = engineIsIosPebble; + var IS_WEBOS_WEBKIT = engineIsWebosWebkit; + var IS_NODE$2 = engineIsNode; + var MutationObserver = global$9.MutationObserver || global$9.WebKitMutationObserver; + var document$2 = global$9.document; + var process$2 = global$9.process; + var Promise$1 = global$9.Promise; + // Node.js 11 shows ExperimentalWarning on getting `queueMicrotask` + var queueMicrotaskDescriptor = getOwnPropertyDescriptor$1(global$9, 'queueMicrotask'); + var microtask$1 = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value; + var notify$1, toggle, node, promise, then; + + // modern engines have queueMicrotask method + if (!microtask$1) { + var queue = new Queue$1(); + var flush = function () { + var parent, fn; + if (IS_NODE$2 && (parent = process$2.domain)) parent.exit(); + while (fn = queue.get()) try { + fn(); + } catch (error) { + if (queue.head) notify$1(); + throw error; + } + if (parent) parent.enter(); + }; + + // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339 + // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898 + if (!IS_IOS && !IS_NODE$2 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) { + toggle = true; + node = document$2.createTextNode(''); + new MutationObserver(flush).observe(node, { + characterData: true + }); + notify$1 = function () { + node.data = toggle = !toggle; + }; + // environments with maybe non-completely correct, but existent Promise + } else if (!IS_IOS_PEBBLE && Promise$1 && Promise$1.resolve) { + // Promise.resolve without an argument throws an error in LG WebOS 2 + promise = Promise$1.resolve(undefined); + // workaround of WebKit ~ iOS Safari 10.1 bug + promise.constructor = Promise$1; + then = bind$3(promise.then, promise); + notify$1 = function () { + then(flush); + }; + // Node.js without promises + } else if (IS_NODE$2) { + notify$1 = function () { + process$2.nextTick(flush); + }; + // for other environments - macrotask based on: + // - setImmediate + // - MessageChannel + // - window.postMessage + // - onreadystatechange + // - setTimeout + } else { + // `webpack` dev server bug on IE global methods - use bind(fn, global) + macrotask = bind$3(macrotask, global$9); + notify$1 = function () { + macrotask(flush); + }; + } + microtask$1 = function (fn) { + if (!queue.head) notify$1(); + queue.add(fn); + }; + } + var microtask_1 = microtask$1; + + var hostReportErrors$1 = function (a, b) { + try { + // eslint-disable-next-line no-console -- safe + arguments.length == 1 ? console.error(a) : console.error(a, b); + } catch (error) {/* empty */} + }; + + var perform$3 = function (exec) { + try { + return { + error: false, + value: exec() + }; + } catch (error) { + return { + error: true, + value: error + }; + } + }; + + var global$8 = global$n; + var promiseNativeConstructor = global$8.Promise; + + /* global Deno -- Deno case */ + var engineIsDeno = typeof Deno == 'object' && Deno && typeof Deno.version == 'object'; + + var IS_DENO$1 = engineIsDeno; + var IS_NODE$1 = engineIsNode; + var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1 && typeof window == 'object' && typeof document == 'object'; + + var global$7 = global$n; + var NativePromiseConstructor$3 = promiseNativeConstructor; + var isCallable$4 = isCallable$m; + var isForced$2 = isForced_1; + var inspectSource = inspectSource$3; + var wellKnownSymbol$5 = wellKnownSymbol$j; + var IS_BROWSER = engineIsBrowser; + var IS_DENO = engineIsDeno; + var V8_VERSION = engineV8Version; + NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype; + var SPECIES = wellKnownSymbol$5('species'); + var SUBCLASSING = false; + var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$4(global$7.PromiseRejectionEvent); + var FORCED_PROMISE_CONSTRUCTOR$5 = isForced$2('Promise', function () { + var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3); + var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor$3); + // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables + // https://bugs.chromium.org/p/chromium/issues/detail?id=830565 + // We can't detect it synchronously, so just check versions + if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true; + // We can't use @@species feature detection in V8 since it causes + // deoptimization and performance degradation + // https://github.com/zloirock/core-js/issues/679 + if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) { + // Detect correctness of subclassing with @@species support + var promise = new NativePromiseConstructor$3(function (resolve) { + resolve(1); + }); + var FakePromise = function (exec) { + exec(function () {/* empty */}, function () {/* empty */}); + }; + var constructor = promise.constructor = {}; + constructor[SPECIES] = FakePromise; + SUBCLASSING = promise.then(function () {/* empty */}) instanceof FakePromise; + if (!SUBCLASSING) return true; + // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test + } + return !GLOBAL_CORE_JS_PROMISE && (IS_BROWSER || IS_DENO) && !NATIVE_PROMISE_REJECTION_EVENT$1; + }); + var promiseConstructorDetection = { + CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR$5, + REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT$1, + SUBCLASSING: SUBCLASSING + }; + + var newPromiseCapability$2 = {}; + + var aCallable$4 = aCallable$8; + var $TypeError$3 = TypeError; + var PromiseCapability = function (C) { + var resolve, reject; + this.promise = new C(function ($$resolve, $$reject) { + if (resolve !== undefined || reject !== undefined) throw $TypeError$3('Bad Promise constructor'); + resolve = $$resolve; + reject = $$reject; + }); + this.resolve = aCallable$4(resolve); + this.reject = aCallable$4(reject); + }; + + // `NewPromiseCapability` abstract operation + // https://tc39.es/ecma262/#sec-newpromisecapability + newPromiseCapability$2.f = function (C) { + return new PromiseCapability(C); + }; + + var $$h = _export; + var IS_NODE = engineIsNode; + var global$6 = global$n; + var call$8 = functionCall; + var defineBuiltIn$4 = defineBuiltIn$9; + var setPrototypeOf$1 = objectSetPrototypeOf; + var setToStringTag$1 = setToStringTag$4; + var setSpecies$1 = setSpecies$2; + var aCallable$3 = aCallable$8; + var isCallable$3 = isCallable$m; + var isObject$6 = isObject$f; + var anInstance$2 = anInstance$3; + var speciesConstructor = speciesConstructor$1; + var task = task$1.set; + var microtask = microtask_1; + var hostReportErrors = hostReportErrors$1; + var perform$2 = perform$3; + var Queue = queue$1; + var InternalStateModule$2 = internalState; + var NativePromiseConstructor$2 = promiseNativeConstructor; + var PromiseConstructorDetection = promiseConstructorDetection; + var newPromiseCapabilityModule$3 = newPromiseCapability$2; + var PROMISE = 'Promise'; + var FORCED_PROMISE_CONSTRUCTOR$4 = PromiseConstructorDetection.CONSTRUCTOR; + var NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT; + var NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING; + var getInternalPromiseState = InternalStateModule$2.getterFor(PROMISE); + var setInternalState$2 = InternalStateModule$2.set; + var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype; + var PromiseConstructor = NativePromiseConstructor$2; + var PromisePrototype = NativePromisePrototype$1; + var TypeError$2 = global$6.TypeError; + var document$1 = global$6.document; + var process$1 = global$6.process; + var newPromiseCapability$1 = newPromiseCapabilityModule$3.f; + var newGenericPromiseCapability = newPromiseCapability$1; + var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$6.dispatchEvent); + var UNHANDLED_REJECTION = 'unhandledrejection'; + var REJECTION_HANDLED = 'rejectionhandled'; + var PENDING = 0; + var FULFILLED = 1; + var REJECTED = 2; + var HANDLED = 1; + var UNHANDLED = 2; + var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen; + + // helpers + var isThenable = function (it) { + var then; + return isObject$6(it) && isCallable$3(then = it.then) ? then : false; + }; + var callReaction = function (reaction, state) { + var value = state.value; + var ok = state.state == FULFILLED; + var handler = ok ? reaction.ok : reaction.fail; + var resolve = reaction.resolve; + var reject = reaction.reject; + var domain = reaction.domain; + var result, then, exited; + try { + if (handler) { + if (!ok) { + if (state.rejection === UNHANDLED) onHandleUnhandled(state); + state.rejection = HANDLED; + } + if (handler === true) result = value;else { + if (domain) domain.enter(); + result = handler(value); // can throw + if (domain) { + domain.exit(); + exited = true; + } + } + if (result === reaction.promise) { + reject(TypeError$2('Promise-chain cycle')); + } else if (then = isThenable(result)) { + call$8(then, result, resolve, reject); + } else resolve(result); + } else reject(value); + } catch (error) { + if (domain && !exited) domain.exit(); + reject(error); + } + }; + var notify = function (state, isReject) { + if (state.notified) return; + state.notified = true; + microtask(function () { + var reactions = state.reactions; + var reaction; + while (reaction = reactions.get()) { + callReaction(reaction, state); + } + state.notified = false; + if (isReject && !state.rejection) onUnhandled(state); + }); + }; + var dispatchEvent = function (name, promise, reason) { + var event, handler; + if (DISPATCH_EVENT) { + event = document$1.createEvent('Event'); + event.promise = promise; + event.reason = reason; + event.initEvent(name, false, true); + global$6.dispatchEvent(event); + } else event = { + promise: promise, + reason: reason + }; + if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$6['on' + name])) handler(event);else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason); + }; + var onUnhandled = function (state) { + call$8(task, global$6, function () { + var promise = state.facade; + var value = state.value; + var IS_UNHANDLED = isUnhandled(state); + var result; + if (IS_UNHANDLED) { + result = perform$2(function () { + if (IS_NODE) { + process$1.emit('unhandledRejection', value, promise); + } else dispatchEvent(UNHANDLED_REJECTION, promise, value); + }); + // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should + state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED; + if (result.error) throw result.value; + } + }); + }; + var isUnhandled = function (state) { + return state.rejection !== HANDLED && !state.parent; + }; + var onHandleUnhandled = function (state) { + call$8(task, global$6, function () { + var promise = state.facade; + if (IS_NODE) { + process$1.emit('rejectionHandled', promise); + } else dispatchEvent(REJECTION_HANDLED, promise, state.value); + }); + }; + var bind$2 = function (fn, state, unwrap) { + return function (value) { + fn(state, value, unwrap); + }; + }; + var internalReject = function (state, value, unwrap) { + if (state.done) return; + state.done = true; + if (unwrap) state = unwrap; + state.value = value; + state.state = REJECTED; + notify(state, true); + }; + var internalResolve = function (state, value, unwrap) { + if (state.done) return; + state.done = true; + if (unwrap) state = unwrap; + try { + if (state.facade === value) throw TypeError$2("Promise can't be resolved itself"); + var then = isThenable(value); + if (then) { + microtask(function () { + var wrapper = { + done: false + }; + try { + call$8(then, value, bind$2(internalResolve, wrapper, state), bind$2(internalReject, wrapper, state)); + } catch (error) { + internalReject(wrapper, error, state); + } + }); + } else { + state.value = value; + state.state = FULFILLED; + notify(state, false); + } + } catch (error) { + internalReject({ + done: false + }, error, state); + } + }; + + // constructor polyfill + if (FORCED_PROMISE_CONSTRUCTOR$4) { + // 25.4.3.1 Promise(executor) + PromiseConstructor = function Promise(executor) { + anInstance$2(this, PromisePrototype); + aCallable$3(executor); + call$8(Internal, this); + var state = getInternalPromiseState(this); + try { + executor(bind$2(internalResolve, state), bind$2(internalReject, state)); + } catch (error) { + internalReject(state, error); + } + }; + PromisePrototype = PromiseConstructor.prototype; + + // eslint-disable-next-line no-unused-vars -- required for `.length` + Internal = function Promise(executor) { + setInternalState$2(this, { + type: PROMISE, + done: false, + notified: false, + parent: false, + reactions: new Queue(), + rejection: false, + state: PENDING, + value: undefined + }); + }; + + // `Promise.prototype.then` method + // https://tc39.es/ecma262/#sec-promise.prototype.then + Internal.prototype = defineBuiltIn$4(PromisePrototype, 'then', function then(onFulfilled, onRejected) { + var state = getInternalPromiseState(this); + var reaction = newPromiseCapability$1(speciesConstructor(this, PromiseConstructor)); + state.parent = true; + reaction.ok = isCallable$3(onFulfilled) ? onFulfilled : true; + reaction.fail = isCallable$3(onRejected) && onRejected; + reaction.domain = IS_NODE ? process$1.domain : undefined; + if (state.state == PENDING) state.reactions.add(reaction);else microtask(function () { + callReaction(reaction, state); + }); + return reaction.promise; + }); + OwnPromiseCapability = function () { + var promise = new Internal(); + var state = getInternalPromiseState(promise); + this.promise = promise; + this.resolve = bind$2(internalResolve, state); + this.reject = bind$2(internalReject, state); + }; + newPromiseCapabilityModule$3.f = newPromiseCapability$1 = function (C) { + return C === PromiseConstructor || C === PromiseWrapper ? new OwnPromiseCapability(C) : newGenericPromiseCapability(C); + }; + if (isCallable$3(NativePromiseConstructor$2) && NativePromisePrototype$1 !== Object.prototype) { + nativeThen = NativePromisePrototype$1.then; + if (!NATIVE_PROMISE_SUBCLASSING) { + // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs + defineBuiltIn$4(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) { + var that = this; + return new PromiseConstructor(function (resolve, reject) { + call$8(nativeThen, that, resolve, reject); + }).then(onFulfilled, onRejected); + // https://github.com/zloirock/core-js/issues/640 + }, { + unsafe: true + }); + } + + // make `.constructor === Promise` work for native promise-based APIs + try { + delete NativePromisePrototype$1.constructor; + } catch (error) {/* empty */} + + // make `instanceof Promise` work for native promise-based APIs + if (setPrototypeOf$1) { + setPrototypeOf$1(NativePromisePrototype$1, PromisePrototype); + } + } + } + $$h({ + global: true, + constructor: true, + wrap: true, + forced: FORCED_PROMISE_CONSTRUCTOR$4 + }, { + Promise: PromiseConstructor + }); + setToStringTag$1(PromiseConstructor, PROMISE, false); + setSpecies$1(PROMISE); + + var wellKnownSymbol$4 = wellKnownSymbol$j; + var Iterators$1 = iterators; + var ITERATOR$2 = wellKnownSymbol$4('iterator'); + var ArrayPrototype = Array.prototype; + + // check on default Array iterator + var isArrayIteratorMethod$1 = function (it) { + return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$2] === it); + }; + + var classof$4 = classof$8; + var getMethod$1 = getMethod$3; + var isNullOrUndefined$2 = isNullOrUndefined$6; + var Iterators = iterators; + var wellKnownSymbol$3 = wellKnownSymbol$j; + var ITERATOR$1 = wellKnownSymbol$3('iterator'); + var getIteratorMethod$2 = function (it) { + if (!isNullOrUndefined$2(it)) return getMethod$1(it, ITERATOR$1) || getMethod$1(it, '@@iterator') || Iterators[classof$4(it)]; + }; + + var call$7 = functionCall; + var aCallable$2 = aCallable$8; + var anObject$5 = anObject$c; + var tryToString$1 = tryToString$4; + var getIteratorMethod$1 = getIteratorMethod$2; + var $TypeError$2 = TypeError; + var getIterator$1 = function (argument, usingIterator) { + var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator; + if (aCallable$2(iteratorMethod)) return anObject$5(call$7(iteratorMethod, argument)); + throw $TypeError$2(tryToString$1(argument) + ' is not iterable'); + }; + + var call$6 = functionCall; + var anObject$4 = anObject$c; + var getMethod = getMethod$3; + var iteratorClose$1 = function (iterator, kind, value) { + var innerResult, innerError; + anObject$4(iterator); + try { + innerResult = getMethod(iterator, 'return'); + if (!innerResult) { + if (kind === 'throw') throw value; + return value; + } + innerResult = call$6(innerResult, iterator); + } catch (error) { + innerError = true; + innerResult = error; + } + if (kind === 'throw') throw value; + if (innerError) throw innerResult; + anObject$4(innerResult); + return value; + }; + + var bind$1 = functionBindContext; + var call$5 = functionCall; + var anObject$3 = anObject$c; + var tryToString = tryToString$4; + var isArrayIteratorMethod = isArrayIteratorMethod$1; + var lengthOfArrayLike$1 = lengthOfArrayLike$5; + var isPrototypeOf$2 = objectIsPrototypeOf; + var getIterator = getIterator$1; + var getIteratorMethod = getIteratorMethod$2; + var iteratorClose = iteratorClose$1; + var $TypeError$1 = TypeError; + var Result = function (stopped, result) { + this.stopped = stopped; + this.result = result; + }; + var ResultPrototype = Result.prototype; + var iterate$4 = function (iterable, unboundFunction, options) { + var that = options && options.that; + var AS_ENTRIES = !!(options && options.AS_ENTRIES); + var IS_RECORD = !!(options && options.IS_RECORD); + var IS_ITERATOR = !!(options && options.IS_ITERATOR); + var INTERRUPTED = !!(options && options.INTERRUPTED); + var fn = bind$1(unboundFunction, that); + var iterator, iterFn, index, length, result, next, step; + var stop = function (condition) { + if (iterator) iteratorClose(iterator, 'normal', condition); + return new Result(true, condition); + }; + var callFn = function (value) { + if (AS_ENTRIES) { + anObject$3(value); + return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]); + } + return INTERRUPTED ? fn(value, stop) : fn(value); + }; + if (IS_RECORD) { + iterator = iterable.iterator; + } else if (IS_ITERATOR) { + iterator = iterable; + } else { + iterFn = getIteratorMethod(iterable); + if (!iterFn) throw $TypeError$1(tryToString(iterable) + ' is not iterable'); + // optimisation for array iterators + if (isArrayIteratorMethod(iterFn)) { + for (index = 0, length = lengthOfArrayLike$1(iterable); length > index; index++) { + result = callFn(iterable[index]); + if (result && isPrototypeOf$2(ResultPrototype, result)) return result; + } + return new Result(false); + } + iterator = getIterator(iterable, iterFn); + } + next = IS_RECORD ? iterable.next : iterator.next; + while (!(step = call$5(next, iterator)).done) { + try { + result = callFn(step.value); + } catch (error) { + iteratorClose(iterator, 'throw', error); + } + if (typeof result == 'object' && result && isPrototypeOf$2(ResultPrototype, result)) return result; + } + return new Result(false); + }; + + var wellKnownSymbol$2 = wellKnownSymbol$j; + var ITERATOR = wellKnownSymbol$2('iterator'); + var SAFE_CLOSING = false; + try { + var called = 0; + var iteratorWithReturn = { + next: function () { + return { + done: !!called++ + }; + }, + 'return': function () { + SAFE_CLOSING = true; + } + }; + iteratorWithReturn[ITERATOR] = function () { + return this; + }; + // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing + Array.from(iteratorWithReturn, function () { + throw 2; + }); + } catch (error) {/* empty */} + var checkCorrectnessOfIteration$2 = function (exec, SKIP_CLOSING) { + if (!SKIP_CLOSING && !SAFE_CLOSING) return false; + var ITERATION_SUPPORT = false; + try { + var object = {}; + object[ITERATOR] = function () { + return { + next: function () { + return { + done: ITERATION_SUPPORT = true + }; + } + }; + }; + exec(object); + } catch (error) {/* empty */} + return ITERATION_SUPPORT; + }; + + var NativePromiseConstructor$1 = promiseNativeConstructor; + var checkCorrectnessOfIteration$1 = checkCorrectnessOfIteration$2; + var FORCED_PROMISE_CONSTRUCTOR$3 = promiseConstructorDetection.CONSTRUCTOR; + var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCorrectnessOfIteration$1(function (iterable) { + NativePromiseConstructor$1.all(iterable).then(undefined, function () {/* empty */}); + }); + + var $$g = _export; + var call$4 = functionCall; + var aCallable$1 = aCallable$8; + var newPromiseCapabilityModule$2 = newPromiseCapability$2; + var perform$1 = perform$3; + var iterate$3 = iterate$4; + var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration; + + // `Promise.all` method + // https://tc39.es/ecma262/#sec-promise.all + $$g({ + target: 'Promise', + stat: true, + forced: PROMISE_STATICS_INCORRECT_ITERATION$1 + }, { + all: function all(iterable) { + var C = this; + var capability = newPromiseCapabilityModule$2.f(C); + var resolve = capability.resolve; + var reject = capability.reject; + var result = perform$1(function () { + var $promiseResolve = aCallable$1(C.resolve); + var values = []; + var counter = 0; + var remaining = 1; + iterate$3(iterable, function (promise) { + var index = counter++; + var alreadyCalled = false; + remaining++; + call$4($promiseResolve, C, promise).then(function (value) { + if (alreadyCalled) return; + alreadyCalled = true; + values[index] = value; + --remaining || resolve(values); + }, reject); + }); + --remaining || resolve(values); + }); + if (result.error) reject(result.value); + return capability.promise; + } + }); + + var $$f = _export; + var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR; + var NativePromiseConstructor = promiseNativeConstructor; + var getBuiltIn$1 = getBuiltIn$7; + var isCallable$2 = isCallable$m; + var defineBuiltIn$3 = defineBuiltIn$9; + var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype; + + // `Promise.prototype.catch` method + // https://tc39.es/ecma262/#sec-promise.prototype.catch + $$f({ + target: 'Promise', + proto: true, + forced: FORCED_PROMISE_CONSTRUCTOR$2, + real: true + }, { + 'catch': function (onRejected) { + return this.then(undefined, onRejected); + } + }); + + // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then` + if (isCallable$2(NativePromiseConstructor)) { + var method = getBuiltIn$1('Promise').prototype['catch']; + if (NativePromisePrototype['catch'] !== method) { + defineBuiltIn$3(NativePromisePrototype, 'catch', method, { + unsafe: true + }); + } + } + + var $$e = _export; + var call$3 = functionCall; + var aCallable = aCallable$8; + var newPromiseCapabilityModule$1 = newPromiseCapability$2; + var perform = perform$3; + var iterate$2 = iterate$4; + var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration; + + // `Promise.race` method + // https://tc39.es/ecma262/#sec-promise.race + $$e({ + target: 'Promise', + stat: true, + forced: PROMISE_STATICS_INCORRECT_ITERATION + }, { + race: function race(iterable) { + var C = this; + var capability = newPromiseCapabilityModule$1.f(C); + var reject = capability.reject; + var result = perform(function () { + var $promiseResolve = aCallable(C.resolve); + iterate$2(iterable, function (promise) { + call$3($promiseResolve, C, promise).then(capability.resolve, reject); + }); + }); + if (result.error) reject(result.value); + return capability.promise; + } + }); + + var $$d = _export; + var call$2 = functionCall; + var newPromiseCapabilityModule = newPromiseCapability$2; + var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR; + + // `Promise.reject` method + // https://tc39.es/ecma262/#sec-promise.reject + $$d({ + target: 'Promise', + stat: true, + forced: FORCED_PROMISE_CONSTRUCTOR$1 + }, { + reject: function reject(r) { + var capability = newPromiseCapabilityModule.f(this); + call$2(capability.reject, undefined, r); + return capability.promise; + } + }); + + var anObject$2 = anObject$c; + var isObject$5 = isObject$f; + var newPromiseCapability = newPromiseCapability$2; + var promiseResolve$1 = function (C, x) { + anObject$2(C); + if (isObject$5(x) && x.constructor === C) return x; + var promiseCapability = newPromiseCapability.f(C); + var resolve = promiseCapability.resolve; + resolve(x); + return promiseCapability.promise; + }; + + var $$c = _export; + var getBuiltIn = getBuiltIn$7; + var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR; + var promiseResolve = promiseResolve$1; + getBuiltIn('Promise'); + + // `Promise.resolve` method + // https://tc39.es/ecma262/#sec-promise.resolve + $$c({ + target: 'Promise', + stat: true, + forced: FORCED_PROMISE_CONSTRUCTOR + }, { + resolve: function resolve(x) { + return promiseResolve(this, x); + } + }); + + var classof$3 = classof$8; + var $String = String; + var toString$5 = function (argument) { + if (classof$3(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string'); + return $String(argument); + }; + + var anObject$1 = anObject$c; + + // `RegExp.prototype.flags` getter implementation + // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags + var regexpFlags$1 = function () { + var that = anObject$1(this); + var result = ''; + if (that.hasIndices) result += 'd'; + if (that.global) result += 'g'; + if (that.ignoreCase) result += 'i'; + if (that.multiline) result += 'm'; + if (that.dotAll) result += 's'; + if (that.unicode) result += 'u'; + if (that.unicodeSets) result += 'v'; + if (that.sticky) result += 'y'; + return result; + }; + + var fails$b = fails$s; + var global$5 = global$n; + + // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError + var $RegExp$2 = global$5.RegExp; + var UNSUPPORTED_Y$1 = fails$b(function () { + var re = $RegExp$2('a', 'y'); + re.lastIndex = 2; + return re.exec('abcd') != null; + }); + + // UC Browser bug + // https://github.com/zloirock/core-js/issues/1008 + var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$b(function () { + return !$RegExp$2('a', 'y').sticky; + }); + var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$b(function () { + // https://bugzilla.mozilla.org/show_bug.cgi?id=773687 + var re = $RegExp$2('^r', 'gy'); + re.lastIndex = 2; + return re.exec('str') != null; + }); + var regexpStickyHelpers = { + BROKEN_CARET: BROKEN_CARET, + MISSED_STICKY: MISSED_STICKY, + UNSUPPORTED_Y: UNSUPPORTED_Y$1 + }; + + var fails$a = fails$s; + var global$4 = global$n; + + // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError + var $RegExp$1 = global$4.RegExp; + var regexpUnsupportedDotAll = fails$a(function () { + var re = $RegExp$1('.', 's'); + return !(re.dotAll && re.exec('\n') && re.flags === 's'); + }); + + var fails$9 = fails$s; + var global$3 = global$n; + + // babel-minify and Closure Compiler transpiles RegExp('(?b)', 'g') -> /(?b)/g and it causes SyntaxError + var $RegExp = global$3.RegExp; + var regexpUnsupportedNcg = fails$9(function () { + var re = $RegExp('(?b)', 'g'); + return re.exec('b').groups.a !== 'b' || 'b'.replace(re, '$c') !== 'bc'; + }); + + /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */ + /* eslint-disable regexp/no-useless-quantifier -- testing */ + var call$1 = functionCall; + var uncurryThis$8 = functionUncurryThis; + var toString$4 = toString$5; + var regexpFlags = regexpFlags$1; + var stickyHelpers = regexpStickyHelpers; + var shared = sharedExports; + var create$1 = objectCreate; + var getInternalState$1 = internalState.get; + var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll; + var UNSUPPORTED_NCG = regexpUnsupportedNcg; + var nativeReplace = shared('native-string-replace', String.prototype.replace); + var nativeExec = RegExp.prototype.exec; + var patchedExec = nativeExec; + var charAt$2 = uncurryThis$8(''.charAt); + var indexOf = uncurryThis$8(''.indexOf); + var replace$1 = uncurryThis$8(''.replace); + var stringSlice$2 = uncurryThis$8(''.slice); + var UPDATES_LAST_INDEX_WRONG = function () { + var re1 = /a/; + var re2 = /b*/g; + call$1(nativeExec, re1, 'a'); + call$1(nativeExec, re2, 'a'); + return re1.lastIndex !== 0 || re2.lastIndex !== 0; + }(); + var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET; + + // nonparticipating capturing group, copied from es5-shim's String#split patch. + var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined; + var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG; + if (PATCH) { + patchedExec = function exec(string) { + var re = this; + var state = getInternalState$1(re); + var str = toString$4(string); + var raw = state.raw; + var result, reCopy, lastIndex, match, i, object, group; + if (raw) { + raw.lastIndex = re.lastIndex; + result = call$1(patchedExec, raw, str); + re.lastIndex = raw.lastIndex; + return result; + } + var groups = state.groups; + var sticky = UNSUPPORTED_Y && re.sticky; + var flags = call$1(regexpFlags, re); + var source = re.source; + var charsAdded = 0; + var strCopy = str; + if (sticky) { + flags = replace$1(flags, 'y', ''); + if (indexOf(flags, 'g') === -1) { + flags += 'g'; + } + strCopy = stringSlice$2(str, re.lastIndex); + // Support anchored sticky behavior. + if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$2(str, re.lastIndex - 1) !== '\n')) { + source = '(?: ' + source + ')'; + strCopy = ' ' + strCopy; + charsAdded++; + } + // ^(? + rx + ) is needed, in combination with some str slicing, to + // simulate the 'y' flag. + reCopy = new RegExp('^(?:' + source + ')', flags); + } + if (NPCG_INCLUDED) { + reCopy = new RegExp('^' + source + '$(?!\\s)', flags); + } + if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex; + match = call$1(nativeExec, sticky ? reCopy : re, strCopy); + if (sticky) { + if (match) { + match.input = stringSlice$2(match.input, charsAdded); + match[0] = stringSlice$2(match[0], charsAdded); + match.index = re.lastIndex; + re.lastIndex += match[0].length; + } else re.lastIndex = 0; + } else if (UPDATES_LAST_INDEX_WRONG && match) { + re.lastIndex = re.global ? match.index + match[0].length : lastIndex; + } + if (NPCG_INCLUDED && match && match.length > 1) { + // Fix browsers whose `exec` methods don't consistently return `undefined` + // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/ + call$1(nativeReplace, match[0], reCopy, function () { + for (i = 1; i < arguments.length - 2; i++) { + if (arguments[i] === undefined) match[i] = undefined; + } + }); + } + if (match && groups) { + match.groups = object = create$1(null); + for (i = 0; i < groups.length; i++) { + group = groups[i]; + object[group[0]] = match[group[1]]; + } + } + return match; + }; + } + var regexpExec = patchedExec; + + var $$b = _export; + var exec = regexpExec; + + // `RegExp.prototype.exec` method + // https://tc39.es/ecma262/#sec-regexp.prototype.exec + $$b({ + target: 'RegExp', + proto: true, + forced: /./.exec !== exec + }, { + exec: exec + }); + + /** + * Provide feature detection + * @class Features + */ + var Features = /*#__PURE__*/function () { + function Features() { + _classCallCheck(this, Features); + } + _createClass(Features, null, [{ + key: "webgl", + get: + /** + * If the browser has WebGL support + * @property {boolean} webgl + */ + function get() { + var canvas = document.createElement('canvas'); + return !!(canvas && (canvas.getContext('webgl') || canvas.getContext('experimental-webgl'))); + } + + /** + * If the browser has Canvas support + * @property {boolean} canvas + */ + }, { + key: "canvas", + get: function get() { + var canvas = document.createElement('canvas'); + return !!(canvas !== null && canvas.getContext && canvas.getContext('2d')); + } + + /** + * If the browser has WebAudio API support + * @property {boolean} webaudio + */ + }, { + key: "webaudio", + get: function get() { + return 'webkitAudioContext' in window || 'AudioContext' in window; + } + + /** + * If the browser has HTMLAudio support + * @property {boolean} htmlAudio + */ + }, { + key: "htmlAudio", + get: function get() { + return 'HTMLAudioElement' in window; + } + + /** + * If the browser has Web Sockets API + * @property {boolean} websockets + */ + }, { + key: "websockets", + get: function get() { + return 'WebSocket' in window || 'MozWebSocket' in window; + } + + /** + * If the browser has Geolocation API + * @property {boolean} geolocation + */ + }, { + key: "geolocation", + get: function get() { + return 'geolocation' in navigator; + } + + /** + * If the browser has Web Workers API + * @property {boolean} webworkers + */ + }, { + key: "webworkers", + get: function get() { + return 'function' === typeof Worker; + } + + /** + * If the browser has touch + * @property {boolean} touch + */ + }, { + key: "touch", + get: function get() { + return !!('ontouchstart' in window || + // iOS & Android + navigator.msPointerEnabled && navigator.msMaxTouchPoints > 0 || + // IE10 + navigator.pointerEnabled && navigator.maxTouchPoints > 0); // IE11+ + } + + /** + * Test for basic browser compatiliblity + * @method basic + * @static + * @return {String} The error message, if fails + */ + }, { + key: "basic", + value: function basic() { + if (!Features.canvas) { + return 'Browser does not support canvas'; + } else if (!Features.webaudio && !Features.htmlAudio) { + return 'Browser does not support WebAudio or HTMLAudio'; + } + return null; + } + + /** + * See if the current bowser has the correct features + * @method test + * @static + * @param {object} capabilities The capabilities + * @param {object} [capabilities.features] The features + * @param {object} [capabilities.features.webgl] WebGL required + * @param {object} [capabilities.features.geolocation] Geolocation required + * @param {object} [capabilities.features.webworkers] Web Workers API required + * @param {object} [capabilities.features.webaudio] WebAudio API required + * @param {object} [capabilities.features.websockets] WebSockets required + * @param {object} [capabilities.sizes] The sizes + * @param {Boolean} [capabilities.sizes.xsmall] Screens < 480 + * @param {Boolean} [capabilities.sizes.small] Screens < 768 + * @param {Boolean} [capabilities.sizes.medium] Screens < 992 + * @param {Boolean} [capabilities.sizes.large] Screens < 1200 + * @param {Boolean} [capabilities.sizes.xlarge] Screens >= 1200 + * @param {object} [capabilities.ui] The ui + * @param {Boolean} [capabilities.ui.touch] Touch capable + * @return {String|null} The error, or else returns null + */ + }, { + key: "test", + value: function test(capabilities) { + // check for basic compatibility + var err = this.basic(); + if (err) { + return err; + } + var features = capabilities.features; + var ui = capabilities.ui; + var sizes = capabilities.sizes; + for (var name in features) { + if (features[name] === true && !Features[name]) { + // Failed built-in feature check + return 'Browser does not support ' + name; + } + } + + // Failed negative touch requirement + if (!ui.touch && Features.touch) { + return 'Game does not support touch input'; + } + + // Check the sizes + var size = Math.max(window.screen.width, window.screen.height); + if (!sizes.xsmall && size < 480) { + return 'Game doesn\'t support extra small screens'; + } + if (!sizes.small && size < 768) { + return 'Game doesn\'t support small screens'; + } + if (!sizes.medium && size < 992) { + return 'Game doesn\'t support medium screens'; + } + if (!sizes.large && size < 1200) { + return 'Game doesn\'t support large screens'; + } + if (!sizes.xlarge && size >= 1200) { + return 'Game doesn\'t support extra large screens'; + } + return null; + } + + /** + * Returns browser feature support info + * @returns {string} + */ + }, { + key: "info", + get: function get() { + return "Browser Feature Detection\n\t\t\t\tCanvas support ".concat(Features.canvas ? "\u2713" : "\xD7", "\n\t\t\t\tWebGL support ").concat(Features.webgl ? "\u2713" : "\xD7", "\n\t\t\t\tWebAudio support ").concat(Features.webAudio ? "\u2713" : "\xD7"); + } + }]); + return Features; + }(); + + var uncurryThis$7 = functionUncurryThis; + var toIntegerOrInfinity = toIntegerOrInfinity$3; + var toString$3 = toString$5; + var requireObjectCoercible$2 = requireObjectCoercible$5; + var charAt$1 = uncurryThis$7(''.charAt); + var charCodeAt$1 = uncurryThis$7(''.charCodeAt); + var stringSlice$1 = uncurryThis$7(''.slice); + var createMethod$2 = function (CONVERT_TO_STRING) { + return function ($this, pos) { + var S = toString$3(requireObjectCoercible$2($this)); + var position = toIntegerOrInfinity(pos); + var size = S.length; + var first, second; + if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined; + first = charCodeAt$1(S, position); + return first < 0xD800 || first > 0xDBFF || position + 1 === size || (second = charCodeAt$1(S, position + 1)) < 0xDC00 || second > 0xDFFF ? CONVERT_TO_STRING ? charAt$1(S, position) : first : CONVERT_TO_STRING ? stringSlice$1(S, position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000; + }; + }; + var stringMultibyte = { + // `String.prototype.codePointAt` method + // https://tc39.es/ecma262/#sec-string.prototype.codepointat + codeAt: createMethod$2(false), + // `String.prototype.at` method + // https://github.com/mathiasbynens/String.prototype.at + charAt: createMethod$2(true) + }; + + var charAt = stringMultibyte.charAt; + var toString$2 = toString$5; + var InternalStateModule$1 = internalState; + var defineIterator$1 = iteratorDefine; + var createIterResultObject$1 = createIterResultObject$3; + var STRING_ITERATOR = 'String Iterator'; + var setInternalState$1 = InternalStateModule$1.set; + var getInternalState = InternalStateModule$1.getterFor(STRING_ITERATOR); + + // `String.prototype[@@iterator]` method + // https://tc39.es/ecma262/#sec-string.prototype-@@iterator + defineIterator$1(String, 'String', function (iterated) { + setInternalState$1(this, { + type: STRING_ITERATOR, + string: toString$2(iterated), + index: 0 + }); + // `%StringIteratorPrototype%.next` method + // https://tc39.es/ecma262/#sec-%stringiteratorprototype%.next + }, function next() { + var state = getInternalState(this); + var string = state.string; + var index = state.index; + var point; + if (index >= string.length) return createIterResultObject$1(undefined, true); + point = charAt(string, index); + state.index += point.length; + return createIterResultObject$1(point, false); + }); + + var $$a = _export; + var $filter = arrayIteration.filter; + var arrayMethodHasSpeciesSupport$1 = arrayMethodHasSpeciesSupport$3; + var HAS_SPECIES_SUPPORT$1 = arrayMethodHasSpeciesSupport$1('filter'); + + // `Array.prototype.filter` method + // https://tc39.es/ecma262/#sec-array.prototype.filter + // with adding support of @@species + $$a({ + target: 'Array', + proto: true, + forced: !HAS_SPECIES_SUPPORT$1 + }, { + filter: function filter(callbackfn /* , thisArg */) { + return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); + } + }); + + var $$9 = _export; + var $find = arrayIteration.find; + var addToUnscopables$1 = addToUnscopables$3; + var FIND = 'find'; + var SKIPS_HOLES = true; + + // Shouldn't skip holes + if (FIND in []) Array(1)[FIND](function () { + SKIPS_HOLES = false; + }); + + // `Array.prototype.find` method + // https://tc39.es/ecma262/#sec-array.prototype.find + $$9({ + target: 'Array', + proto: true, + forced: SKIPS_HOLES + }, { + find: function find(callbackfn /* , that = undefined */) { + return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); + } + }); + + // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables + addToUnscopables$1(FIND); + + function t(t, e) { + return t(e = { + exports: {} + }, e.exports), e.exports; + } + var e = t(function (t) { + function e(t) { + return (e = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) { + return typeof t; + } : function (t) { + return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; + })(t); + } + function n(r) { + return "function" == typeof Symbol && "symbol" === e(Symbol.iterator) ? t.exports = n = function (t) { + return e(t); + } : t.exports = n = function (t) { + return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : e(t); + }, n(r); + } + t.exports = n; + }); + var n = function (t, e) { + if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function"); + }; + function r(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r); + } + } + var o = function (t, e, n) { + return e && r(t.prototype, e), n && r(t, n), t; + }, + i = function () { + function t() { + n(this, t), this._listeners = {}; + } + return o(t, [{ + key: "on", + value: function (t, e) { + var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 0; + this._listeners[t] || (this._listeners[t] = []), e._priority = parseInt(n) || 0, -1 === this._listeners[t].indexOf(e) && (this._listeners[t].push(e), this._listeners[t].length > 1 && this._listeners[t].sort(this.listenerSorter)); + } + }, { + key: "listenerSorter", + value: function (t, e) { + return t._priority - e._priority; + } + }, { + key: "off", + value: function (t, e) { + if (void 0 !== this._listeners[t]) if (void 0 !== e) { + var n = this._listeners[t].indexOf(e); + -1 < n && this._listeners[t].splice(n, 1); + } else delete this._listeners[t]; + } + }, { + key: "trigger", + value: function (t) { + var n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; + if ("string" == typeof t && (t = { + type: t, + data: "object" === e(n) && null !== n ? n : {} + }), void 0 !== this._listeners[t.type]) for (var r = this._listeners[t.type].length - 1; r >= 0; r--) this._listeners[t.type][r](t); + } + }, { + key: "destroy", + value: function () { + this._listeners = {}; + } + }]), t; + }(), + s = t(function (t) { + var e = function (t) { + var e, + n = Object.prototype, + r = n.hasOwnProperty, + o = "function" == typeof Symbol ? Symbol : {}, + i = o.iterator || "@@iterator", + s = o.asyncIterator || "@@asyncIterator", + a = o.toStringTag || "@@toStringTag"; + function c(t, e, n, r) { + var o = e && e.prototype instanceof d ? e : d, + i = Object.create(o.prototype), + s = new S(r || []); + return i._invoke = function (t, e, n) { + var r = h; + return function (o, i) { + if (r === f) throw new Error("Generator is already running"); + if (r === p) { + if ("throw" === o) throw i; + return P(); + } + for (n.method = o, n.arg = i;;) { + var s = n.delegate; + if (s) { + var a = O(s, n); + if (a) { + if (a === y) continue; + return a; + } + } + if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { + if (r === h) throw r = p, n.arg; + n.dispatchException(n.arg); + } else "return" === n.method && n.abrupt("return", n.arg); + r = f; + var c = u(t, e, n); + if ("normal" === c.type) { + if (r = n.done ? p : l, c.arg === y) continue; + return { + value: c.arg, + done: n.done + }; + } + "throw" === c.type && (r = p, n.method = "throw", n.arg = c.arg); + } + }; + }(t, n, s), i; + } + function u(t, e, n) { + try { + return { + type: "normal", + arg: t.call(e, n) + }; + } catch (t) { + return { + type: "throw", + arg: t + }; + } + } + t.wrap = c; + var h = "suspendedStart", + l = "suspendedYield", + f = "executing", + p = "completed", + y = {}; + function d() {} + function v() {} + function g() {} + var m = {}; + m[i] = function () { + return this; + }; + var w = Object.getPrototypeOf, + b = w && w(w(j([]))); + b && b !== n && r.call(b, i) && (m = b); + var _ = g.prototype = d.prototype = Object.create(m); + function x(t) { + ["next", "throw", "return"].forEach(function (e) { + t[e] = function (t) { + return this._invoke(e, t); + }; + }); + } + function L(t) { + function e(n, o, i, s) { + var a = u(t[n], t, o); + if ("throw" !== a.type) { + var c = a.arg, + h = c.value; + return h && "object" == typeof h && r.call(h, "__await") ? Promise.resolve(h.__await).then(function (t) { + e("next", t, i, s); + }, function (t) { + e("throw", t, i, s); + }) : Promise.resolve(h).then(function (t) { + c.value = t, i(c); + }, function (t) { + return e("throw", t, i, s); + }); + } + s(a.arg); + } + var n; + this._invoke = function (t, r) { + function o() { + return new Promise(function (n, o) { + e(t, r, n, o); + }); + } + return n = n ? n.then(o, o) : o(); + }; + } + function O(t, n) { + var r = t.iterator[n.method]; + if (r === e) { + if (n.delegate = null, "throw" === n.method) { + if (t.iterator.return && (n.method = "return", n.arg = e, O(t, n), "throw" === n.method)) return y; + n.method = "throw", n.arg = new TypeError("The iterator does not provide a 'throw' method"); + } + return y; + } + var o = u(r, t.iterator, n.arg); + if ("throw" === o.type) return n.method = "throw", n.arg = o.arg, n.delegate = null, y; + var i = o.arg; + return i ? i.done ? (n[t.resultName] = i.value, n.next = t.nextLoc, "return" !== n.method && (n.method = "next", n.arg = e), n.delegate = null, y) : i : (n.method = "throw", n.arg = new TypeError("iterator result is not an object"), n.delegate = null, y); + } + function E(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 k(t) { + var e = t.completion || {}; + e.type = "normal", delete e.arg, t.completion = e; + } + function S(t) { + this.tryEntries = [{ + tryLoc: "root" + }], t.forEach(E, this), this.reset(!0); + } + function j(t) { + if (t) { + var n = t[i]; + if (n) return n.call(t); + if ("function" == typeof t.next) return t; + if (!isNaN(t.length)) { + var o = -1, + s = function n() { + for (; ++o < t.length;) if (r.call(t, o)) return n.value = t[o], n.done = !1, n; + return n.value = e, n.done = !0, n; + }; + return s.next = s; + } + } + return { + next: P + }; + } + function P() { + return { + value: e, + done: !0 + }; + } + return v.prototype = _.constructor = g, g.constructor = v, g[a] = v.displayName = "GeneratorFunction", t.isGeneratorFunction = function (t) { + var e = "function" == typeof t && t.constructor; + return !!e && (e === v || "GeneratorFunction" === (e.displayName || e.name)); + }, t.mark = function (t) { + return Object.setPrototypeOf ? Object.setPrototypeOf(t, g) : (t.__proto__ = g, a in t || (t[a] = "GeneratorFunction")), t.prototype = Object.create(_), t; + }, t.awrap = function (t) { + return { + __await: t + }; + }, x(L.prototype), L.prototype[s] = function () { + return this; + }, t.AsyncIterator = L, t.async = function (e, n, r, o) { + var i = new L(c(e, n, r, o)); + return t.isGeneratorFunction(n) ? i : i.next().then(function (t) { + return t.done ? t.value : i.next(); + }); + }, x(_), _[a] = "Generator", _[i] = function () { + return this; + }, _.toString = function () { + return "[object Generator]"; + }, t.keys = function (t) { + var e = []; + for (var n in t) e.push(n); + return e.reverse(), function n() { + for (; e.length;) { + var r = e.pop(); + if (r in t) return n.value = r, n.done = !1, n; + } + return n.done = !0, n; + }; + }, t.values = j, S.prototype = { + constructor: S, + reset: function (t) { + if (this.prev = 0, this.next = 0, this.sent = this._sent = e, this.done = !1, this.delegate = null, this.method = "next", this.arg = e, this.tryEntries.forEach(k), !t) for (var n in this) "t" === n.charAt(0) && r.call(this, n) && !isNaN(+n.slice(1)) && (this[n] = e); + }, + stop: function () { + this.done = !0; + var t = this.tryEntries[0].completion; + if ("throw" === t.type) throw t.arg; + return this.rval; + }, + dispatchException: function (t) { + if (this.done) throw t; + var n = this; + function o(r, o) { + return a.type = "throw", a.arg = t, n.next = r, o && (n.method = "next", n.arg = e), !!o; + } + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var s = this.tryEntries[i], + a = s.completion; + if ("root" === s.tryLoc) return o("end"); + if (s.tryLoc <= this.prev) { + var c = r.call(s, "catchLoc"), + u = r.call(s, "finallyLoc"); + if (c && u) { + if (this.prev < s.catchLoc) return o(s.catchLoc, !0); + if (this.prev < s.finallyLoc) return o(s.finallyLoc); + } else if (c) { + if (this.prev < s.catchLoc) return o(s.catchLoc, !0); + } else { + if (!u) throw new Error("try statement without catch or finally"); + if (this.prev < s.finallyLoc) return o(s.finallyLoc); + } + } + } + }, + abrupt: function (t, e) { + for (var n = this.tryEntries.length - 1; n >= 0; --n) { + var o = this.tryEntries[n]; + if (o.tryLoc <= this.prev && r.call(o, "finallyLoc") && this.prev < o.finallyLoc) { + var i = o; + break; + } + } + i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); + var s = i ? i.completion : {}; + return s.type = t, s.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(s); + }, + complete: function (t, e) { + if ("throw" === t.type) throw t.arg; + return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; + }, + finish: function (t) { + for (var e = this.tryEntries.length - 1; e >= 0; --e) { + var n = this.tryEntries[e]; + if (n.finallyLoc === t) return this.complete(n.completion, n.afterLoc), k(n), y; + } + }, + 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; + k(n); + } + return o; + } + } + throw new Error("illegal catch attempt"); + }, + delegateYield: function (t, n, r) { + return this.delegate = { + iterator: j(t), + resultName: n, + nextLoc: r + }, "next" === this.method && (this.arg = e), y; + } + }, t; + }(t.exports); + try { + regeneratorRuntime = e; + } catch (t) { + Function("r", "regeneratorRuntime = r")(e); + } + }); + var a = function (t) { + if (void 0 === t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return t; + }; + var c = function (t, n) { + return !n || "object" !== e(n) && "function" != typeof n ? a(t) : n; + }, + u = t(function (t) { + function e(n) { + return t.exports = e = Object.setPrototypeOf ? Object.getPrototypeOf : function (t) { + return t.__proto__ || Object.getPrototypeOf(t); + }, e(n); + } + t.exports = e; + }); + var h = function (t, e) { + for (; !Object.prototype.hasOwnProperty.call(t, e) && null !== (t = u(t));); + return t; + }, + l = t(function (t) { + function e(n, r, o) { + return "undefined" != typeof Reflect && Reflect.get ? t.exports = e = Reflect.get : t.exports = e = function (t, e, n) { + var r = h(t, e); + if (r) { + var o = Object.getOwnPropertyDescriptor(r, e); + return o.get ? o.get.call(n) : o.value; + } + }, e(n, r, o || n); + } + t.exports = e; + }), + f = t(function (t) { + function e(n, r) { + return t.exports = e = Object.setPrototypeOf || function (t, e) { + return t.__proto__ = e, t; + }, e(n, r); + } + t.exports = e; + }); + var p = 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 && f(t, e); + }, + y = function (t) { + function r() { + var t, + e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 100 * Math.random() | 0; + return n(this, r), (t = c(this, u(r).call(this))).id = "BELLHOP:".concat(e), t.connected = !1, t.isChild = !0, t.connecting = !1, t.debug = !1, t.origin = "*", t._sendLater = [], t.iframe = null, t.receive = t.receive.bind(a(t)), t; + } + return p(r, i), o(r, [{ + key: "receive", + value: function (t) { + if (this.target === t.source) if (this.logDebugMessage(!0, t), "connected" === t.data) this.onConnectionReceived(t.data);else { + var n = t.data; + if ("string" == typeof n) try { + n = JSON.parse(n); + } catch (t) { + console.warn("Bellhop error: ", t); + } + this.connected && "object" === e(n) && n.type && this.trigger(n); + } + } + }, { + key: "onConnectionReceived", + value: function (t) { + if (this.connecting = !1, this.connected = !0, !this.isChild) { + if (!this.target) return; + this.target.postMessage(t, this.origin); + } + for (var e = 0; e < this._sendLater.length; e++) { + var n = this._sendLater[e], + r = n.type, + o = n.data; + this.send(r, o); + } + this._sendLater.length = 0, this.trigger("connected"); + } + }, { + key: "connect", + value: function (t) { + var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "*"; + this.connecting || (this.disconnect(), this.connecting = !0, t instanceof HTMLIFrameElement && (this.iframe = t), this.isChild = void 0 === t, this.supported = !0, this.isChild && (this.supported = window != t), this.origin = e, window.addEventListener("message", this.receive), this.isChild && (window === this.target ? this.trigger("failed") : this.target.postMessage("connected", this.origin))); + } + }, { + key: "disconnect", + value: function () { + this.connected = !1, this.connecting = !1, this.origin = null, this.iframe = null, this.isChild = !0, this._sendLater.length = 0, window.removeEventListener("message", this.receive); + } + }, { + key: "send", + value: function (t) { + var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; + if ("string" != typeof t) throw "The event type must be a string"; + var n = { + type: t, + data: e + }; + this.logDebugMessage(!1, n), this.connecting ? this._sendLater.push(n) : this.target.postMessage(JSON.stringify(n), this.origin); + } + }, { + key: "fetch", + value: function (t, e) { + var n = this, + r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}, + o = arguments.length > 3 && void 0 !== arguments[3] && arguments[3]; + if (!this.connecting && !this.connected) throw "No connection, please call connect() first"; + var i = function t(r) { + o && n.off(r.type, t), e(r); + }; + this.on(t, i), this.send(t, r); + } + }, { + key: "respond", + value: function (t) { + var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, + n = arguments.length > 2 && void 0 !== arguments[2] && arguments[2], + r = this, + o = function t(o) { + return s.async(function (i) { + for (;;) switch (i.prev = i.next) { + case 0: + if (n && r.off(o, t), "function" != typeof e) { + i.next = 10; + break; + } + return i.t0 = r, i.t1 = o.type, i.next = 6, s.awrap(e()); + case 6: + i.t2 = i.sent, i.t0.send.call(i.t0, i.t1, i.t2), i.next = 11; + break; + case 10: + r.send(o.type, e); + case 11: + case "end": + return i.stop(); + } + }); + }; + this.on(t, o); + } + }, { + key: "logDebugMessage", + value: function () { + var t = arguments.length > 0 && void 0 !== arguments[0] && arguments[0], + e = arguments.length > 1 ? arguments[1] : void 0; + this.debug && "function" == typeof this.debug ? this.debug({ + isChild: this.isChild, + received: t, + message: e + }) : this.debug && console.log("Bellhop Instance (".concat(this.isChild ? "Child" : "Parent", ") ").concat(t ? "Receieved" : "Sent"), e); + } + }, { + key: "destroy", + value: function () { + l(u(r.prototype), "destroy", this).call(this), this.disconnect(), this._sendLater.length = 0; + } + }, { + key: "target", + get: function () { + return this.isChild ? window.parent : this.iframe.contentWindow; + } + }]), r; + }(); + + /** + * + * + * @export + * @class PluginManager + */ + var PluginManager = /*#__PURE__*/function () { + /** + *Creates an instance of PluginManager. + * @memberof PluginManager + */ + function PluginManager(_ref) { + var _ref$plugins = _ref.plugins, + plugins = _ref$plugins === void 0 ? [] : _ref$plugins; + _classCallCheck(this, PluginManager); + this.client = new y(); + // @ts-ignore + this.client.hidden = this.client.receive.bind(this.client); + // @ts-ignore + this.client.hiddenSend = this.client.send.bind(this.client); + this.client.receive = function (event) { + this.hidden(event); + }.bind(this.client); + this.client.send = function (event, data) { + this.hiddenSend(event, data); + }.bind(this.client); + this.plugins = plugins; + } + + /** + * + * + * @returns + * @memberof PluginManager + */ + _createClass(PluginManager, [{ + key: "setupPlugins", + value: function setupPlugins() { + var _this = this; + var preloads = []; + var _loop = function _loop(i) { + if (!_this.plugins[i].preload) { + return "continue"; + } + preloads.push(_this.plugins[i].preload(_this).catch(function preloadFail(error) { + this.plugins[i].preloadFailed = true; + console.warn(this.plugins[i].name, 'Preload Failed:', error); + }.bind(_this))); + }; + for (var i = 0, l = this.plugins.length; i < l; i++) { + var _ret = _loop(i); + if (_ret === "continue") continue; + } + + // ~wait for all preloads to resolve + return Promise.all(preloads).then(function () { + // Remove plugins that fail to load. + _this.plugins = _this.plugins.filter(function (plugin) { + return plugin.preloadFailed !== true; + }); + + //init + _this.plugins.forEach(function (plugin) { + if (!plugin.init) { + return; + } + plugin.init(_this); + }); + + //start + _this.plugins.forEach(function (plugin) { + if (!plugin.start) { + return; + } + plugin.start(_this); + }); + }); + } + + /** + * Registers a plugin to be used by PluginManagers, sorting it by priority order. + * @param {BasePlugin} plugin The plugin to register. + */ + }, { + key: "uses", + value: function uses(plugin) { + this.plugins.push(plugin); + } + + /** + * Finds a plugin by name. + * @param {string} name The name of the plugin. + * @returns {BasePlugin} + */ + }, { + key: "getPlugin", + value: function getPlugin(name) { + return this.plugins.find(function (plugin) { + return plugin.name === name; + }); + } + }]); + return PluginManager; + }(); + + var version = "2.4.3"; + + /** + * The application container + * @class Container + * @property {Bellhop} client Communication layer between the container and application + * @property {boolean} loaded Check to see if a application is loaded + * @property {boolean} loading Check to see if a application is loading + * @property {object} release The current release data + * @property {HTMLIFrameElement} iframe The DOM object for the iframe + * @static @property {string} version The current version of the library + */ + var Container = /*#__PURE__*/function (_PluginManager) { + _inherits(Container, _PluginManager); + var _super = _createSuper(Container); + /** + *Creates an instance of Container. + * @param {object} config + * @param {string | HTMLIFrameElement} iframeOrSelector + * @param {Array | null} [config.plugins] + * @param {object | null} [config.context={}] + * @memberof Container + */ + function Container(iframeOrSelector) { + var _this; + var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, + plugins = _ref.plugins, + _ref$context = _ref.context, + context = _ref$context === void 0 ? {} : _ref$context; + _classCallCheck(this, Container); + _this = _super.call(this, { + plugins: plugins + }); + _this.iframe = iframeOrSelector instanceof HTMLIFrameElement ? iframeOrSelector : document.querySelector(iframeOrSelector); + if (null === _this.iframe) { + throw new Error('No iframe was found with the provided selector'); + } + _this.loaded = false; + _this.loading = false; + _this.release = null; + + // context object that plugins can pick up on + _this._context = context; + _this.onLoading = _this.onLoading.bind(_assertThisInitialized(_this)); + _this.onLoadDone = _this.onLoadDone.bind(_assertThisInitialized(_this)); + _this.onLoadDone = _this.onLoadDone.bind(_assertThisInitialized(_this)); + _this.onEndGame = _this.onEndGame.bind(_assertThisInitialized(_this)); + _this.onLocalError = _this.onLocalError.bind(_assertThisInitialized(_this)); + _this.initClient(); + _this.setupPlugins(); + return _this; + } + + /** + * The game is starting to load + * @memberof Container + */ + _createClass(Container, [{ + key: "onLoading", + value: function onLoading() { + this.client.trigger('opening'); + } + + /** + * Reset the mutes for audio and captions + * @memberof Container + */ + }, { + key: "onLoadDone", + value: function onLoadDone() { + this.loading = false; + this.loaded = true; + this.iframe.classList.remove('loading'); + this.client.trigger('opened'); + } + + /** + * The application ended and destroyed itself + * @memberof Container + */ + }, { + key: "onEndGame", + value: function onEndGame() { + this.reset(); + } + /** + * Handle the local errors + * @method onLocalError + * @private + * @param {Event} $event Bellhop event + */ + }, { + key: "onLocalError", + value: function onLocalError($event) { + console.error('SpringRoll Container error: ', $event, new Error().stack); + } + + /** + * Reset all the buttons back to their original setting + * and clear the iframe. + * @memberof Container + */ + }, { + key: "reset", + value: function reset() { + var wasLoaded = this.loaded || this.loading; + if (wasLoaded) { + this.client.trigger('closed'); + } + + // Reset state + this.loaded = false; + this.loading = false; + + // Clear the iframe src location + this.iframe.setAttribute('src', ''); + this.iframe.classList.remove('loading'); + } + + /** + * Set up communication layer between site and application. + * May be called from subclasses if they create/destroy Bellhop instances. + * @memberof Container + */ + }, { + key: "initClient", + value: function initClient() { + //Handle bellhop events coming from the application + this.client.on('loading', this.onLoading); + this.client.on('loaded', this.onLoadDone); + this.client.on('loadDone', this.onLoadDone); + this.client.on('endGame', this.onEndGame); + this.client.on('localError', this.onLocalError); + // @ts-ignore + this.client.connect(this.iframe); + } + + /** + * If there was an error when closing, reset the container + * @memberof Container + */ + }, { + key: "_onCloseFailed", + value: function _onCloseFailed() { + this.reset(); // force close the app + } + + /** + * Open a application or path + * @param {string} userPath The full path to the application to load + * @param {object} [userOptions] The open options + * @param {boolean} [userOptions.singlePlay=false] If we should play in single play mode + * @param {object | null} [userOptions.playOptions=null] The optional play options + * @memberof Container + */ + }, { + key: "_internalOpen", + value: function _internalOpen(userPath) { + var _ref2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, + _ref2$singlePlay = _ref2.singlePlay, + singlePlay = _ref2$singlePlay === void 0 ? false : _ref2$singlePlay, + _ref2$playOptions = _ref2.playOptions, + playOptions = _ref2$playOptions === void 0 ? null : _ref2$playOptions; + var options = { + singlePlay: singlePlay, + playOptions: playOptions + }; + this.reset(); + this.loading = true; + this.initClient(); + var err = Features.basic(); + if (err) { + console.error('ERROR:', err); + this.client.trigger('unsupported'); + } + var path = userPath; + if (null !== options.playOptions) { + var playOptionsQueryString = 'playOptions=' + encodeURIComponent(JSON.stringify(options.playOptions)); + path = -1 === userPath.indexOf('?') ? "".concat(userPath, "?").concat(playOptionsQueryString) : "".concat(userPath, "&").concat(playOptionsQueryString); + } + this.iframe.classList.add('loading'); + this.iframe.setAttribute('src', path); + this.client.respond('singlePlay', singlePlay); + this.client.respond('playOptions', playOptions); + this.client.trigger('open'); + } + + /** + * + * + * @param {string} path + * @param {object} [options={}] + * @memberof Container + */ + }, { + key: "openPath", + value: function openPath(path) { + var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + // This should be deprecated, support for old function signature + if ('object' !== _typeof(options)) { + console.warn('SpringRoll Container.openPath was passed a invalid options parameter. Using default parameters instead'); + options = {}; + } + this._internalOpen(path, Object.assign({ + singlePlay: false, + playOptions: {} + }, options)); + } + + /** + * Open application based on an API Call to SpringRoll Connect + * @param {string} api + * @param {object} options + * @param {string} [options.query=''] + * @param {boolean} [options.singlePlay=false] + * @param {null | object} [options.playOptions=null] + * @returns {Promise} + * @memberof Container + */ + }, { + key: "openRemote", + value: function () { + var _openRemote = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(api) { + var _ref3, + _ref3$query, + query, + _ref3$singlePlay, + singlePlay, + _ref3$playOptions, + playOptions, + response, + json, + release, + error, + _args = arguments; + return _regeneratorRuntime().wrap(function _callee$(_context) { + while (1) switch (_context.prev = _context.next) { + case 0: + _ref3 = _args.length > 1 && _args[1] !== undefined ? _args[1] : {}, _ref3$query = _ref3.query, query = _ref3$query === void 0 ? '' : _ref3$query, _ref3$singlePlay = _ref3.singlePlay, singlePlay = _ref3$singlePlay === void 0 ? false : _ref3$singlePlay, _ref3$playOptions = _ref3.playOptions, playOptions = _ref3$playOptions === void 0 ? null : _ref3$playOptions; + this.release = null; + _context.next = 4; + return fetch(api, { + headers: { + 'Content-Type': 'application/json' + } + }); + case 4: + response = _context.sent; + _context.next = 7; + return response.json(); + case 7: + json = _context.sent; + if (json.success) { + _context.next = 10; + break; + } + throw new Error(json.error); + case 10: + // If the browser doesn't support the capabilities requested by this game, also fail. + release = json.data; + error = Features.test(release.capabilities); + if (!error) { + _context.next = 15; + break; + } + this.client.trigger('unsupported', { + error: error + }); + throw new Error(error); + case 15: + // otherwise, open the game + this.release = release; + this._internalOpen(release.url + query, { + singlePlay: singlePlay, + playOptions: playOptions + }); + case 17: + case "end": + return _context.stop(); + } + }, _callee, this); + })); + function openRemote(_x) { + return _openRemote.apply(this, arguments); + } + return openRemote; + }() + /** + * Destroy and don't use after this + * @memberof Container + */ + }, { + key: "destroy", + value: function destroy() { + this.reset(); + this.iframe = null; + this.options = null; + this.release = null; + } + + /** + * Tell the application to start closing + * @memberof Container + */ + }, { + key: "close", + value: function close() { + if (this.loading || this.loaded) { + this.client.trigger('close'); + // Start the close + this.client.send('close'); + } else { + this.reset(); + } + } + + /** + * the current _context object + * @readonly + * @memberof Container + * @return {object} + */ + }, { + key: "context", + get: function get() { + return this._context; + } + + /** + * sets _context object to new object + * @param {object} context + * @memberof Container + */, + set: function set(newContext) { + if (_typeof(newContext) !== 'object') { + console.error('[SpringRollContainer] Context: new context provided is not an object'); + return; + } + this._context = newContext; + } + + /** + * The current version of SpringRollContainer + * @readonly + * @static + * @return {string} + * @memberof Container + */ + }], [{ + key: "version", + get: function get() { + return version; + } + }]); + return Container; + }(PluginManager); + + /** + * Handle the page visiblity change, if supported. Application uses one of these to + * monitor page visibility. It is suggested that you listen to `pause`, `paused`, + * or `resumed` events on the Application instead of using one of these yourself. + * + * @export + * @class PageVisibility + * @constructor + * @param {Function} onFocus Callback when the page becomes visible + * @param {Function} onBlur Callback when the page loses visibility + */ + var PageVisibility = /*#__PURE__*/function () { + /** + *Creates an instance of PageVisibility. + * @param { function } [onFocus=function() {}] + * @param { function } [onBlur=function() {}] + * @memberof PageVisibility + */ + function PageVisibility() { + var onFocus = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : function () {}; + var onBlur = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {}; + _classCallCheck(this, PageVisibility); + this._onFocus = onFocus; + this._onBlur = onBlur; + this.onFocus = function (e) { + if (this.enabled) { + this._onFocus(e); + } + }.bind(this); + this.onBlur = function (e) { + if (this.enabled) { + this._onBlur(e); + } + }.bind(this); + this._enabled = false; + this.enabled = true; + this.onToggle = this.onToggle.bind(this); + } + + /** + * Disable the detection + * @memberof PageVisibility + */ + _createClass(PageVisibility, [{ + key: "destroy", + value: function destroy() { + this.enabled = false; + this.onToggle = null; + this.onFocus = null; + this.onBlur = null; + } + + /** + * The visibility toggle listener function + * @param {Event} $event; + * @memberof PageVisibility + */ + }, { + key: "onToggle", + value: function onToggle($event) { + if (this.enabled) { + document.hidden ? this.onBlur($event) : this.onFocus($event); + } + } + + /** + * If this object is enabled. + * @returns {boolean} + * @memberof PageVisibility + */ + }, { + key: "enabled", + get: function get() { + return this._enabled; + } + + /** + * Sets the state of the object + * @memberof PageVisibility + */, + set: function set(enable) { + this._enabled = enable; + document.removeEventListener('visibilitychange', this.onToggle, false); + window.removeEventListener('blur', this.onBlur, false); + window.removeEventListener('focus', this.onFocus, false); + window.removeEventListener('pagehide', this.onBlur, false); + window.removeEventListener('pageshow', this.onFocus, false); + window.removeEventListener('visibilitychange', this.onToggle, false); + if (this._enabled) { + document.addEventListener('visibilitychange', this.onToggle, false); + window.addEventListener('blur', this.onBlur, false); + window.addEventListener('focus', this.onFocus, false); + window.addEventListener('pagehide', this.onBlur, false); + window.addEventListener('pageshow', this.onFocus, false); + window.addEventListener('visibilitychange', this.onToggle, false); + } + } + }]); + return PageVisibility; + }(); + + var $$8 = _export; + var $includes = arrayIncludes.includes; + var fails$8 = fails$s; + var addToUnscopables = addToUnscopables$3; + + // FF99+ bug + var BROKEN_ON_SPARSE = fails$8(function () { + // eslint-disable-next-line es/no-array-prototype-includes -- detection + return !Array(1).includes(); + }); + + // `Array.prototype.includes` method + // https://tc39.es/ecma262/#sec-array.prototype.includes + $$8({ + target: 'Array', + proto: true, + forced: BROKEN_ON_SPARSE + }, { + includes: function includes(el /* , fromIndex = 0 */) { + return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined); + } + }); + + // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables + addToUnscopables('includes'); + + // a string of all valid unicode whitespaces + var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' + '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF'; + + var uncurryThis$6 = functionUncurryThis; + var requireObjectCoercible$1 = requireObjectCoercible$5; + var toString$1 = toString$5; + var whitespaces$1 = whitespaces$2; + var replace = uncurryThis$6(''.replace); + var ltrim = RegExp('^[' + whitespaces$1 + ']+'); + var rtrim = RegExp('(^|[^' + whitespaces$1 + '])[' + whitespaces$1 + ']+$'); + + // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation + var createMethod$1 = function (TYPE) { + return function ($this) { + var string = toString$1(requireObjectCoercible$1($this)); + if (TYPE & 1) string = replace(string, ltrim, ''); + if (TYPE & 2) string = replace(string, rtrim, '$1'); + return string; + }; + }; + var stringTrim = { + // `String.prototype.{ trimLeft, trimStart }` methods + // https://tc39.es/ecma262/#sec-string.prototype.trimstart + start: createMethod$1(1), + // `String.prototype.{ trimRight, trimEnd }` methods + // https://tc39.es/ecma262/#sec-string.prototype.trimend + end: createMethod$1(2), + // `String.prototype.trim` method + // https://tc39.es/ecma262/#sec-string.prototype.trim + trim: createMethod$1(3) + }; + + var PROPER_FUNCTION_NAME$1 = functionName.PROPER; + var fails$7 = fails$s; + var whitespaces = whitespaces$2; + var non = '\u200B\u0085\u180E'; + + // check that a method works with the correct list + // of whitespaces and has a correct name + var stringTrimForced = function (METHOD_NAME) { + return fails$7(function () { + return !!whitespaces[METHOD_NAME]() || non[METHOD_NAME]() !== non || PROPER_FUNCTION_NAME$1 && whitespaces[METHOD_NAME].name !== METHOD_NAME; + }); + }; + + var $$7 = _export; + var $trim = stringTrim.trim; + var forcedStringTrimMethod = stringTrimForced; + + // `String.prototype.trim` method + // https://tc39.es/ecma262/#sec-string.prototype.trim + $$7({ + target: 'String', + proto: true, + forced: forcedStringTrimMethod('trim') + }, { + trim: function trim() { + return $trim(this); + } + }); + + var call = functionCall; + var hasOwn$2 = hasOwnProperty_1; + var isPrototypeOf$1 = objectIsPrototypeOf; + var regExpFlags = regexpFlags$1; + var RegExpPrototype$1 = RegExp.prototype; + var regexpGetFlags = function (R) { + var flags = R.flags; + return flags === undefined && !('flags' in RegExpPrototype$1) && !hasOwn$2(R, 'flags') && isPrototypeOf$1(RegExpPrototype$1, R) ? call(regExpFlags, R) : flags; + }; + + var PROPER_FUNCTION_NAME = functionName.PROPER; + var defineBuiltIn$2 = defineBuiltIn$9; + var anObject = anObject$c; + var $toString = toString$5; + var fails$6 = fails$s; + var getRegExpFlags = regexpGetFlags; + var TO_STRING = 'toString'; + var RegExpPrototype = RegExp.prototype; + var nativeToString = RegExpPrototype[TO_STRING]; + var NOT_GENERIC = fails$6(function () { + return nativeToString.call({ + source: 'a', + flags: 'b' + }) != '/a/b'; + }); + // FF44- RegExp#toString has a wrong name + var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name != TO_STRING; + + // `RegExp.prototype.toString` method + // https://tc39.es/ecma262/#sec-regexp.prototype.tostring + if (NOT_GENERIC || INCORRECT_NAME) { + defineBuiltIn$2(RegExp.prototype, TO_STRING, function toString() { + var R = anObject(this); + var pattern = $toString(R.source); + var flags = $toString(getRegExpFlags(R)); + return '/' + pattern + '/' + flags; + }, { + unsafe: true + }); + } + + /** + * The SavedData functions use localStorage and sessionStorage, with a cookie fallback. + * + * @class SavedData + */ + var SavedData = /*#__PURE__*/function () { + /** + * Constructor for IndexedDB work + */ + function SavedData() { + var dbName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; + _classCallCheck(this, SavedData); + this.db = null; + this.dbName = dbName; + } + /** + * Remove a saved variable by name. + * @method remove + * @static + * @param {String} name The name of the value to remove + */ + _createClass(SavedData, [{ + key: "IDBOpen", + value: + /** + * Open a connection with the IDB Database and optionally add or delete + * Indexes and stores + * + * @param {string} dbName The name of your IndexedDB database + * @param {string} dbVersion The version number of the database. Additions and deletions will be ignored if lower than current version number + * @param {JSON} additions Any additions to the structure of the database + * @param {array} additions.stores Any stores to be added into the database syntax: {storeName: '[name]', options: {[optionally add options]}} + * @param {array} additions.indexes Any Indexes to be added to the database syntax: {storeName: '[name]', options: {[optionally add options]}} + */ + function IDBOpen(dbName) { + var _this = this; + var dbVersion = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; + var additions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; + var deletions = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; + var callback = arguments.length > 4 ? arguments[4] : undefined; + var request = dbVersion ? indexedDB.open(dbName, dbVersion) : indexedDB.open(dbName); + request.onsuccess = function (e) { + // Database successfully opened. This will run along with onupgradeneeded + _this.db = e.target.result; + if (_this.db.version == dbVersion | dbVersion == null) { + callback({ + result: 'Success: IDBOpen', + success: true + }); + } + }; + request.onerror = function () { + callback({ + result: request.error.toString(), + success: false + }); + }; + + // on upgrade needed fires only if the dbVersion is higher than the current version number + request.onupgradeneeded = function (e) { + // Ensure the proper database object is stored + _this.db = e.target.result; + if (additions != null) { + if (additions.stores) { + additions.stores.forEach(function (store) { + _this.db.createObjectStore(store.storeName, store.options); + }); + } + if (additions.indexes != null) { + additions.indexes.forEach(function (index) { + // Add indexes last to avoid adding an index to a store that has yet to be created + // Open a transaction returning a store object + var storeObject = request.transaction.objectStore(index.storeName); + storeObject.createIndex(index.indexName, index.keyPath, index.options); + }); + } + } + if (deletions != null) { + if (deletions.indexes != null) { + // delete indexes first to avoid deleting an index to a store that has already to been deleted + deletions.indexes.forEach(function (index) { + // Open a transaction returning a store object + var storeObject = request.transaction.objectStore(index.storeName); + storeObject.deleteIndex(index.indexName); + }); + } + if (deletions.stores) { + deletions.stores.forEach(function (store) { + _this.db.deleteObjectStore(store.storeName); + }); + } + } + callback({ + result: 'Success: IDBOpen onupgradeneeded ran', + success: true + }); + }; + } + + /** + * Delete a database and all records, stores, and indexes associated + * @param {string} dbName Name of the database to delete + * @param {object} options Optionally pass in options + * @param {function} callback The callback to be run on success or error. One value will be passed into this function + */ + }, { + key: "IDBDeleteDB", + value: function IDBDeleteDB(dbName) { + var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; + var callback = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; + var request = options != null ? indexedDB.deleteDatabase(dbName, options) : indexedDB.deleteDatabase(dbName); + request.onsuccess = function (e) { + callback({ + result: 'Success: Database Deleted, returned: ' + e.result, + success: true + }); + }; + request.onerror = function () { + callback({ + result: request.error.toString(), + success: false + }); + }; + } + + /** + * Add a record to a given store + * @param {string} storeName The name of the store from which the record will be updated + * @param {string} key the key of the record to be updated + * @param {string} value The value for the record with the given key to be updated + * @param {function} callback The method to call on success or failure. A single value will be passed in + */ + }, { + key: "IDBAdd", + value: function IDBAdd(storeName, value, key, callback) { + if (!this.db && this.dbName != '') { + this.IDBOpen(this.dbName); + } + var tx = this.db.transaction(storeName, 'readwrite'); + tx.onerror = function () { + return callback({ + result: tx.error != null ? tx.error.toString() : 'Aborted: No error given, was the record already added?', + success: false + }); + }; + tx.onabort = function () { + return callback({ + result: tx.error != null ? tx.error.toString() : 'Aborted: No error given, was the record already added?', + success: false + }); + }; + tx.oncomplete = function () { + return callback({ + result: 'Success: Record Added', + success: true + }); + }; + var store = tx.objectStore(storeName); + store.add(value, key); + } + + /** + * Update a record in a given store + * @param {string} storeName The name of the store from which the record will be updated + * @param {string} key the key of the record to be updated + * @param {string | object} value The altered object to be updated from the given store + * @param {function} callback The method to call on success or failure. A single value will be passed in + */ + }, { + key: "IDBUpdate", + value: function IDBUpdate(storeName, key, value, callback) { + if (!this.db && this.dbName != '') { + this.IDBOpen(this.dbName); + } + var tx = this.db.transaction(storeName, 'readwrite'); + var store = tx.objectStore(storeName); + var updateRequest = store.put(value, key); + updateRequest.onsuccess = function () { + callback({ + result: 'Success: Record Updated', + success: true + }); + }; + updateRequest.onerror = function () { + return callback({ + result: updateRequest.error.toString(), + success: false + }); + }; + } + + /** + * Delete a given record within a given store + * @param {string} storeName The name of the store from which the record will be removed + * @param {string} key the key of the record to be removed + * @param {function} callback The method to call on success or failure. A single value will be passed in + */ + }, { + key: "IDBRemove", + value: function IDBRemove(storeName, key, callback) { + var _this2 = this; + if (!this.db && this.dbName != '') { + this.IDBOpen(this.dbName); + } + var tx = this.db.transaction(storeName, 'readwrite'); + tx.onerror = function () { + return callback({ + result: _this2.db.error.toString(), + success: false + }); + }; + var store = tx.objectStore(storeName); + store.delete(key); + tx.oncomplete = function () { + return callback({ + result: 'Removed Successfully', + success: true + }); + }; + } + + /** + * Return a record from a given store with a given key + * @param {string} storeName the name of the store to read from + * @param {string} key The key for the record in the given store + * @param {function} callback The method to call on success or failure. A single value will be passed in + */ + }, { + key: "IDBRead", + value: function IDBRead(storeName, key, callback) { + var _this3 = this; + // Open transaction with a store + var tx = this.db.transaction(storeName, 'readonly'); + // Get the store object from the transaction + var store = tx.objectStore(storeName); + tx.onerror = function () { + return callback({ + result: _this3.db.error.toString(), + success: false + }); + }; + var readRequest = store.get(key); + readRequest.onsuccess = function () { + callback({ + result: readRequest.result, + success: readRequest.result != undefined ? true : false + }); + }; + } + + /** + * Get all keys with given index + * @param {string} storeName the name of the store to be read from + * @param {string} indexName the name of the index to be read from + * @param {string} query Optionally give a keyRange of records to return + * @param {string} count Optionally give a max limit on records to be returned + * @param {function} callback The method to call on success or failure. A single value will be passed in as a parameter + */ + }, { + key: "IDBGetIndexKeys", + value: function IDBGetIndexKeys(storeName, indexName) { + var _this4 = this; + var query = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; + var count = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null; + var callback = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {}; + // Open transaction with a store + var tx = this.db.transaction(storeName, 'readonly'); + // Get the store object from the transaction + var store = tx.objectStore(storeName); + var index; + tx.onerror = function () { + return callback({ + result: _this4.db.error.toString(), + success: false + }); + }; + if (query && count) { + index = store.index(indexName, query, count); + } else if (query) { + index = store.index(indexName, query); + } else { + index = store.index(indexName); + } + var getAllKeysRequest = index.getAllKeys(); + getAllKeysRequest.onsuccess = function (e) { + callback({ + result: e.result, + success: true + }); + }; + } + + /** + * Get all records from a store + * @param {string} storeName The store to get all records from + * @param {integer} count Optionally the count of records to return + * @param {function} callback The method to call on success or failure. A single value will be passed in + */ + }, { + key: "IDBReadAll", + value: function IDBReadAll(storeName, count, callback) { + // Open transaction with a store + var tx = this.db.transaction(storeName, 'readonly'); + // Get the store object from the transaction + var store = tx.objectStore(storeName); + var readRequest = count != null ? store.getAll(null, count) : store.getAll(); + + // const readRequest = store.getAll(); + + tx.onerror = function () { + return callback({ + result: tx.error.toString(), + success: false + }); + }; + readRequest.onsuccess = function () { + callback({ + result: readRequest.result, + success: readRequest.result != undefined ? true : false + }); + }; + } + + /** + * Get the version number of a given database. This will create a database if it doesn't exist. + * Do not call this after opening a connection with the database + * @param {string} dbName The name of the database for which the version will be returned + * @param {function} callback The method to call on success or failure. A single value will be passed in + */ + }, { + key: "IDBGetVersion", + value: function IDBGetVersion(dbName, callback) { + // Open the database + var dBOpenRequest = window.indexedDB.open(dbName); + + // these two event handlers act on the database + // being opened. successfully, or not + dBOpenRequest.onerror = function () { + callback({ + result: dBOpenRequest.error.toString(), + success: false + }); + }; + dBOpenRequest.onsuccess = function () { + var db = dBOpenRequest.result; + callback({ + result: db.version, + success: true + }); + }; + } + + /** + * Closes the connection to the database if open + * @param {function} callback The method to call on success or failure. A single value will be passed in + */ + }, { + key: "IDBClose", + value: function IDBClose(callback) { + if (this.db) { + this.db.close(); + callback({ + result: 'Success: Closed Database Connection', + success: true + }); + } + } + }], [{ + key: "remove", + value: function remove(name) { + localStorage.removeItem(name); + sessionStorage.removeItem(name); + } + + /** + * Save a variable. + * @method write + * @static + * @param {string} name The name of the value to save + * @param {string} value The value to save. This will be run through JSON.stringify(). + * @param {boolean} [tempOnly=false] If the value should be saved only in the current browser session. + */ + }, { + key: "write", + value: function write(name, value) { + var tempOnly = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; + return tempOnly ? sessionStorage.setItem(name, JSON.stringify('function' === typeof value ? value() : value)) : localStorage.setItem(name, JSON.stringify('function' === typeof value ? value() : value)); + } + + /** + * Read the value of a saved variable + * @method read + * @static + * @param {String} name The name of the variable + * @return {*} The value (run through `JSON.parse()`) or null if it doesn't exist + */ + }, { + key: "read", + value: function read(name) { + var value = localStorage.getItem(name) || sessionStorage.getItem(name); + if ('string' === typeof value) { + try { + return JSON.parse(value); + } catch (err) { + return value; + } + } else { + return value; + } + } + }]); + return SavedData; + }(); + + /** + * + * + * @export + * @class BasePlugin + * @property {Bellhop} client + * @property {string} name + */ + var BasePlugin = /*#__PURE__*/function () { + /** + *Creates an instance of BasePlugin. + * @param {string} name + * @memberof BasePlugin + */ + function BasePlugin(name) { + _classCallCheck(this, BasePlugin); + this.name = name; + this.client = null; + } + + /** + * + * @param {Container} [container] + * @memberof BasePlugin + * @returns {Promise} + */ + _createClass(BasePlugin, [{ + key: "preload", + value: function () { + var _preload = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref) { + var client; + return _regeneratorRuntime().wrap(function _callee$(_context) { + while (1) switch (_context.prev = _context.next) { + case 0: + client = _ref.client; + this.client = client; + case 2: + case "end": + return _context.stop(); + } + }, _callee, this); + })); + function preload(_x) { + return _preload.apply(this, arguments); + } + return preload; + }() + /** + * + * @memberof BasePlugin + */ + }, { + key: "start", + value: function start() { + this.client.on('loaded', this.sendAllProperties); + this.client.on('loadDone', this.sendAllProperties); + } + + /** + * + * @param {Container} [_] + * @memberof BasePlugin + */ + }, { + key: "init", + value: function init(_) {} + + /** + * + * + * @param {string} prop + * @param {any} value + * @memberof BasePlugin + */ + }, { + key: "sendProperty", + value: function sendProperty(prop, value) { + SavedData.write(prop, value); + this.client.send(prop, value); + } + + /** + * + * @param {Container} [_] + * @memberof BasePlugin + */ + }, { + key: "sendAllProperties", + value: function sendAllProperties(_) {} + + /** + * + * @param {string} warningText + * @memberof BasePlugin + */ + }, { + key: "warn", + value: function warn(warningText) { + console.warn("[SpringRollContainer] ".concat(this.name, ": ").concat(warningText)); + } + }]); + return BasePlugin; + }(); + + /** + * + * + * @export + * @class ButtonPlugin + * @extends {BasePlugin} + */ + var ButtonPlugin = /*#__PURE__*/function (_BasePlugin) { + _inherits(ButtonPlugin, _BasePlugin); + var _super = _createSuper(ButtonPlugin); + /** + *Creates an instance of ButtonPlugin. + * @param {string} name + * + * @memberof ButtonPlugin + */ + function ButtonPlugin(name) { + var _this; + _classCallCheck(this, ButtonPlugin); + _this = _super.call(this, name); + _this.sendMutes = false; + return _this; + } + + /** + * @memberof ButtonPlugin + * @param {Container} [container] + */ + _createClass(ButtonPlugin, [{ + key: "init", + value: function init(container) { + // eslint-disable-line no-unused-vars + this.sendMutes = true; + } + + /** + * + * Applies the disabled class to the provided element + * @param {HTMLButtonElement | Element} button + * @memberof ButtonPlugin + */ + }, { + key: "_disableButton", + value: function _disableButton(button) { + if (button instanceof HTMLButtonElement) { + button.classList.remove('enabled'); + button.classList.add('disabled'); + } + } + + /** + * + * + * @memberof ButtonPlugin + */ + }, { + key: "reset", + value: function reset() { + this.sendMutes = false; + } + + /** + * + * + * @param {string} prop + * @param {Element} button + * @param {Boolean} muted + * @memberof ButtonPlugin + */ + }, { + key: "_setMuteProp", + value: function _setMuteProp(prop, button, muted) { + var _this2 = this; + if (Array.isArray(button)) { + button.forEach(function (b) { + return _this2.changeMutedState(b, muted); + }); + } else { + this.changeMutedState(button, muted); + } + this.sendProperty(prop, muted); + } + + /** + * + * + * @param {Element} button + * @param {Boolean} muted + * @returns + * @memberof ButtonPlugin + */ + }, { + key: "changeMutedState", + value: function changeMutedState(button) { + var muted = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; + //most times button will be a Button class rather than an HTMLElement + //But just in case the Button ui-element is not being used + var htmlButton = button.button ? button.button : button; + if (!(htmlButton instanceof HTMLElement)) { + return; + } + htmlButton.classList.remove('unmuted'); + htmlButton.classList.remove('muted'); + htmlButton.classList.add(muted ? 'muted' : 'unmuted'); + } + }]); + return ButtonPlugin; + }(BasePlugin); + + var isObject$4 = isObject$f; + var classof$2 = classofRaw$2; + var wellKnownSymbol$1 = wellKnownSymbol$j; + var MATCH$1 = wellKnownSymbol$1('match'); + + // `IsRegExp` abstract operation + // https://tc39.es/ecma262/#sec-isregexp + var isRegexp = function (it) { + var isRegExp; + return isObject$4(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$2(it) == 'RegExp'); + }; + + var isRegExp = isRegexp; + var $TypeError = TypeError; + var notARegexp = function (it) { + if (isRegExp(it)) { + throw $TypeError("The method doesn't accept regular expressions"); + } + return it; + }; + + var wellKnownSymbol = wellKnownSymbol$j; + var MATCH = wellKnownSymbol('match'); + var correctIsRegexpLogic = function (METHOD_NAME) { + var regexp = /./; + try { + '/./'[METHOD_NAME](regexp); + } catch (error1) { + try { + regexp[MATCH] = false; + return '/./'[METHOD_NAME](regexp); + } catch (error2) {/* empty */} + } + return false; + }; + + var $$6 = _export; + var uncurryThis$5 = functionUncurryThis; + var notARegExp = notARegexp; + var requireObjectCoercible = requireObjectCoercible$5; + var toString = toString$5; + var correctIsRegExpLogic = correctIsRegexpLogic; + var stringIndexOf = uncurryThis$5(''.indexOf); + + // `String.prototype.includes` method + // https://tc39.es/ecma262/#sec-string.prototype.includes + $$6({ + target: 'String', + proto: true, + forced: !correctIsRegExpLogic('includes') + }, { + includes: function includes(searchString /* , position = 0 */) { + return !!~stringIndexOf(toString(requireObjectCoercible(this)), toString(notARegExp(searchString)), arguments.length > 1 ? arguments[1] : undefined); + } + }); + + var internalMetadata = {exports: {}}; + + var objectGetOwnPropertyNamesExternal = {}; + + var toAbsoluteIndex = toAbsoluteIndex$2; + var lengthOfArrayLike = lengthOfArrayLike$5; + var createProperty = createProperty$2; + var $Array = Array; + var max = Math.max; + var arraySliceSimple = function (O, start, end) { + var length = lengthOfArrayLike(O); + var k = toAbsoluteIndex(start, length); + var fin = toAbsoluteIndex(end === undefined ? length : end, length); + var result = $Array(max(fin - k, 0)); + for (var n = 0; k < fin; k++, n++) createProperty(result, n, O[k]); + result.length = n; + return result; + }; + + /* eslint-disable es/no-object-getownpropertynames -- safe */ + var classof$1 = classofRaw$2; + var toIndexedObject$1 = toIndexedObject$7; + var $getOwnPropertyNames = objectGetOwnPropertyNames.f; + var arraySlice = arraySliceSimple; + var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : []; + var getWindowNames = function (it) { + try { + return $getOwnPropertyNames(it); + } catch (error) { + return arraySlice(windowNames); + } + }; + + // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window + objectGetOwnPropertyNamesExternal.f = function getOwnPropertyNames(it) { + return windowNames && classof$1(it) == 'Window' ? getWindowNames(it) : $getOwnPropertyNames(toIndexedObject$1(it)); + }; + + // FF26- bug: ArrayBuffers are non-extensible, but Object.isExtensible does not report it + var fails$5 = fails$s; + var arrayBufferNonExtensible = fails$5(function () { + if (typeof ArrayBuffer == 'function') { + var buffer = new ArrayBuffer(8); + // eslint-disable-next-line es/no-object-isextensible, es/no-object-defineproperty -- safe + if (Object.isExtensible(buffer)) Object.defineProperty(buffer, 'a', { + value: 8 + }); + } + }); + + var fails$4 = fails$s; + var isObject$3 = isObject$f; + var classof = classofRaw$2; + var ARRAY_BUFFER_NON_EXTENSIBLE = arrayBufferNonExtensible; + + // eslint-disable-next-line es/no-object-isextensible -- safe + var $isExtensible = Object.isExtensible; + var FAILS_ON_PRIMITIVES$1 = fails$4(function () { + $isExtensible(1); + }); + + // `Object.isExtensible` method + // https://tc39.es/ecma262/#sec-object.isextensible + var objectIsExtensible = FAILS_ON_PRIMITIVES$1 || ARRAY_BUFFER_NON_EXTENSIBLE ? function isExtensible(it) { + if (!isObject$3(it)) return false; + if (ARRAY_BUFFER_NON_EXTENSIBLE && classof(it) == 'ArrayBuffer') return false; + return $isExtensible ? $isExtensible(it) : true; + } : $isExtensible; + + var fails$3 = fails$s; + var freezing = !fails$3(function () { + // eslint-disable-next-line es/no-object-isextensible, es/no-object-preventextensions -- required for testing + return Object.isExtensible(Object.preventExtensions({})); + }); + + var $$5 = _export; + var uncurryThis$4 = functionUncurryThis; + var hiddenKeys = hiddenKeys$5; + var isObject$2 = isObject$f; + var hasOwn$1 = hasOwnProperty_1; + var defineProperty$1 = objectDefineProperty.f; + var getOwnPropertyNamesModule = objectGetOwnPropertyNames; + var getOwnPropertyNamesExternalModule = objectGetOwnPropertyNamesExternal; + var isExtensible = objectIsExtensible; + var uid = uid$3; + var FREEZING = freezing; + var REQUIRED = false; + var METADATA = uid('meta'); + var id = 0; + var setMetadata = function (it) { + defineProperty$1(it, METADATA, { + value: { + objectID: 'O' + id++, + // object ID + weakData: {} // weak collections IDs + } + }); + }; + + var fastKey$1 = function (it, create) { + // return a primitive with prefix + if (!isObject$2(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it; + if (!hasOwn$1(it, METADATA)) { + // can't set metadata to uncaught frozen object + if (!isExtensible(it)) return 'F'; + // not necessary to add metadata + if (!create) return 'E'; + // add missing metadata + setMetadata(it); + // return object ID + } + return it[METADATA].objectID; + }; + var getWeakData = function (it, create) { + if (!hasOwn$1(it, METADATA)) { + // can't set metadata to uncaught frozen object + if (!isExtensible(it)) return true; + // not necessary to add metadata + if (!create) return false; + // add missing metadata + setMetadata(it); + // return the store of weak collections IDs + } + return it[METADATA].weakData; + }; + + // add metadata on freeze-family methods calling + var onFreeze = function (it) { + if (FREEZING && REQUIRED && isExtensible(it) && !hasOwn$1(it, METADATA)) setMetadata(it); + return it; + }; + var enable = function () { + meta.enable = function () {/* empty */}; + REQUIRED = true; + var getOwnPropertyNames = getOwnPropertyNamesModule.f; + var splice = uncurryThis$4([].splice); + var test = {}; + test[METADATA] = 1; + + // prevent exposing of metadata key + if (getOwnPropertyNames(test).length) { + getOwnPropertyNamesModule.f = function (it) { + var result = getOwnPropertyNames(it); + for (var i = 0, length = result.length; i < length; i++) { + if (result[i] === METADATA) { + splice(result, i, 1); + break; + } + } + return result; + }; + $$5({ + target: 'Object', + stat: true, + forced: true + }, { + getOwnPropertyNames: getOwnPropertyNamesExternalModule.f + }); + } + }; + var meta = internalMetadata.exports = { + enable: enable, + fastKey: fastKey$1, + getWeakData: getWeakData, + onFreeze: onFreeze + }; + hiddenKeys[METADATA] = true; + var internalMetadataExports = internalMetadata.exports; + + var isCallable$1 = isCallable$m; + var isObject$1 = isObject$f; + var setPrototypeOf = objectSetPrototypeOf; + + // makes subclassing work correct for wrapped built-ins + var inheritIfRequired$2 = function ($this, dummy, Wrapper) { + var NewTarget, NewTargetPrototype; + if ( + // it can work only with native `setPrototypeOf` + setPrototypeOf && + // we haven't completely correct pre-ES6 way for getting `new.target`, so use this + isCallable$1(NewTarget = dummy.constructor) && NewTarget !== Wrapper && isObject$1(NewTargetPrototype = NewTarget.prototype) && NewTargetPrototype !== Wrapper.prototype) setPrototypeOf($this, NewTargetPrototype); + return $this; + }; + + var $$4 = _export; + var global$2 = global$n; + var uncurryThis$3 = functionUncurryThis; + var isForced$1 = isForced_1; + var defineBuiltIn$1 = defineBuiltIn$9; + var InternalMetadataModule = internalMetadataExports; + var iterate$1 = iterate$4; + var anInstance$1 = anInstance$3; + var isCallable = isCallable$m; + var isNullOrUndefined$1 = isNullOrUndefined$6; + var isObject = isObject$f; + var fails$2 = fails$s; + var checkCorrectnessOfIteration = checkCorrectnessOfIteration$2; + var setToStringTag = setToStringTag$4; + var inheritIfRequired$1 = inheritIfRequired$2; + var collection$1 = function (CONSTRUCTOR_NAME, wrapper, common) { + var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1; + var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1; + var ADDER = IS_MAP ? 'set' : 'add'; + var NativeConstructor = global$2[CONSTRUCTOR_NAME]; + var NativePrototype = NativeConstructor && NativeConstructor.prototype; + var Constructor = NativeConstructor; + var exported = {}; + var fixMethod = function (KEY) { + var uncurriedNativeMethod = uncurryThis$3(NativePrototype[KEY]); + defineBuiltIn$1(NativePrototype, KEY, KEY == 'add' ? function add(value) { + uncurriedNativeMethod(this, value === 0 ? 0 : value); + return this; + } : KEY == 'delete' ? function (key) { + return IS_WEAK && !isObject(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key); + } : KEY == 'get' ? function get(key) { + return IS_WEAK && !isObject(key) ? undefined : uncurriedNativeMethod(this, key === 0 ? 0 : key); + } : KEY == 'has' ? function has(key) { + return IS_WEAK && !isObject(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key); + } : function set(key, value) { + uncurriedNativeMethod(this, key === 0 ? 0 : key, value); + return this; + }); + }; + var REPLACE = isForced$1(CONSTRUCTOR_NAME, !isCallable(NativeConstructor) || !(IS_WEAK || NativePrototype.forEach && !fails$2(function () { + new NativeConstructor().entries().next(); + }))); + if (REPLACE) { + // create collection constructor + Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER); + InternalMetadataModule.enable(); + } else if (isForced$1(CONSTRUCTOR_NAME, true)) { + var instance = new Constructor(); + // early implementations not supports chaining + var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance; + // V8 ~ Chromium 40- weak-collections throws on primitives, but should return false + var THROWS_ON_PRIMITIVES = fails$2(function () { + instance.has(1); + }); + // most early implementations doesn't supports iterables, most modern - not close it correctly + // eslint-disable-next-line no-new -- required for testing + var ACCEPT_ITERABLES = checkCorrectnessOfIteration(function (iterable) { + new NativeConstructor(iterable); + }); + // for early implementations -0 and +0 not the same + var BUGGY_ZERO = !IS_WEAK && fails$2(function () { + // V8 ~ Chromium 42- fails only with 5+ elements + var $instance = new NativeConstructor(); + var index = 5; + while (index--) $instance[ADDER](index, index); + return !$instance.has(-0); + }); + if (!ACCEPT_ITERABLES) { + Constructor = wrapper(function (dummy, iterable) { + anInstance$1(dummy, NativePrototype); + var that = inheritIfRequired$1(new NativeConstructor(), dummy, Constructor); + if (!isNullOrUndefined$1(iterable)) iterate$1(iterable, that[ADDER], { + that: that, + AS_ENTRIES: IS_MAP + }); + return that; + }); + Constructor.prototype = NativePrototype; + NativePrototype.constructor = Constructor; + } + if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) { + fixMethod('delete'); + fixMethod('has'); + IS_MAP && fixMethod('get'); + } + if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER); + + // weak collections should not contains .clear method + if (IS_WEAK && NativePrototype.clear) delete NativePrototype.clear; + } + exported[CONSTRUCTOR_NAME] = Constructor; + $$4({ + global: true, + constructor: true, + forced: Constructor != NativeConstructor + }, exported); + setToStringTag(Constructor, CONSTRUCTOR_NAME); + if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP); + return Constructor; + }; + + var defineBuiltIn = defineBuiltIn$9; + var defineBuiltIns$1 = function (target, src, options) { + for (var key in src) defineBuiltIn(target, key, src[key], options); + return target; + }; + + var create = objectCreate; + var defineBuiltInAccessor = defineBuiltInAccessor$2; + var defineBuiltIns = defineBuiltIns$1; + var bind = functionBindContext; + var anInstance = anInstance$3; + var isNullOrUndefined = isNullOrUndefined$6; + var iterate = iterate$4; + var defineIterator = iteratorDefine; + var createIterResultObject = createIterResultObject$3; + var setSpecies = setSpecies$2; + var DESCRIPTORS$2 = descriptors; + var fastKey = internalMetadataExports.fastKey; + var InternalStateModule = internalState; + var setInternalState = InternalStateModule.set; + var internalStateGetterFor = InternalStateModule.getterFor; + var collectionStrong$1 = { + getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) { + var Constructor = wrapper(function (that, iterable) { + anInstance(that, Prototype); + setInternalState(that, { + type: CONSTRUCTOR_NAME, + index: create(null), + first: undefined, + last: undefined, + size: 0 + }); + if (!DESCRIPTORS$2) that.size = 0; + if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], { + that: that, + AS_ENTRIES: IS_MAP + }); + }); + var Prototype = Constructor.prototype; + var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME); + var define = function (that, key, value) { + var state = getInternalState(that); + var entry = getEntry(that, key); + var previous, index; + // change existing entry + if (entry) { + entry.value = value; + // create new entry + } else { + state.last = entry = { + index: index = fastKey(key, true), + key: key, + value: value, + previous: previous = state.last, + next: undefined, + removed: false + }; + if (!state.first) state.first = entry; + if (previous) previous.next = entry; + if (DESCRIPTORS$2) state.size++;else that.size++; + // add to index + if (index !== 'F') state.index[index] = entry; + } + return that; + }; + var getEntry = function (that, key) { + var state = getInternalState(that); + // fast case + var index = fastKey(key); + var entry; + if (index !== 'F') return state.index[index]; + // frozen object case + for (entry = state.first; entry; entry = entry.next) { + if (entry.key == key) return entry; + } + }; + defineBuiltIns(Prototype, { + // `{ Map, Set }.prototype.clear()` methods + // https://tc39.es/ecma262/#sec-map.prototype.clear + // https://tc39.es/ecma262/#sec-set.prototype.clear + clear: function clear() { + var that = this; + var state = getInternalState(that); + var data = state.index; + var entry = state.first; + while (entry) { + entry.removed = true; + if (entry.previous) entry.previous = entry.previous.next = undefined; + delete data[entry.index]; + entry = entry.next; + } + state.first = state.last = undefined; + if (DESCRIPTORS$2) state.size = 0;else that.size = 0; + }, + // `{ Map, Set }.prototype.delete(key)` methods + // https://tc39.es/ecma262/#sec-map.prototype.delete + // https://tc39.es/ecma262/#sec-set.prototype.delete + 'delete': function (key) { + var that = this; + var state = getInternalState(that); + var entry = getEntry(that, key); + if (entry) { + var next = entry.next; + var prev = entry.previous; + delete state.index[entry.index]; + entry.removed = true; + if (prev) prev.next = next; + if (next) next.previous = prev; + if (state.first == entry) state.first = next; + if (state.last == entry) state.last = prev; + if (DESCRIPTORS$2) state.size--;else that.size--; + } + return !!entry; + }, + // `{ Map, Set }.prototype.forEach(callbackfn, thisArg = undefined)` methods + // https://tc39.es/ecma262/#sec-map.prototype.foreach + // https://tc39.es/ecma262/#sec-set.prototype.foreach + forEach: function forEach(callbackfn /* , that = undefined */) { + var state = getInternalState(this); + var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined); + var entry; + while (entry = entry ? entry.next : state.first) { + boundFunction(entry.value, entry.key, this); + // revert to the last existing entry + while (entry && entry.removed) entry = entry.previous; + } + }, + // `{ Map, Set}.prototype.has(key)` methods + // https://tc39.es/ecma262/#sec-map.prototype.has + // https://tc39.es/ecma262/#sec-set.prototype.has + has: function has(key) { + return !!getEntry(this, key); + } + }); + defineBuiltIns(Prototype, IS_MAP ? { + // `Map.prototype.get(key)` method + // https://tc39.es/ecma262/#sec-map.prototype.get + get: function get(key) { + var entry = getEntry(this, key); + return entry && entry.value; + }, + // `Map.prototype.set(key, value)` method + // https://tc39.es/ecma262/#sec-map.prototype.set + set: function set(key, value) { + return define(this, key === 0 ? 0 : key, value); + } + } : { + // `Set.prototype.add(value)` method + // https://tc39.es/ecma262/#sec-set.prototype.add + add: function add(value) { + return define(this, value = value === 0 ? 0 : value, value); + } + }); + if (DESCRIPTORS$2) defineBuiltInAccessor(Prototype, 'size', { + configurable: true, + get: function () { + return getInternalState(this).size; + } + }); + return Constructor; + }, + setStrong: function (Constructor, CONSTRUCTOR_NAME, IS_MAP) { + var ITERATOR_NAME = CONSTRUCTOR_NAME + ' Iterator'; + var getInternalCollectionState = internalStateGetterFor(CONSTRUCTOR_NAME); + var getInternalIteratorState = internalStateGetterFor(ITERATOR_NAME); + // `{ Map, Set }.prototype.{ keys, values, entries, @@iterator }()` methods + // https://tc39.es/ecma262/#sec-map.prototype.entries + // https://tc39.es/ecma262/#sec-map.prototype.keys + // https://tc39.es/ecma262/#sec-map.prototype.values + // https://tc39.es/ecma262/#sec-map.prototype-@@iterator + // https://tc39.es/ecma262/#sec-set.prototype.entries + // https://tc39.es/ecma262/#sec-set.prototype.keys + // https://tc39.es/ecma262/#sec-set.prototype.values + // https://tc39.es/ecma262/#sec-set.prototype-@@iterator + defineIterator(Constructor, CONSTRUCTOR_NAME, function (iterated, kind) { + setInternalState(this, { + type: ITERATOR_NAME, + target: iterated, + state: getInternalCollectionState(iterated), + kind: kind, + last: undefined + }); + }, function () { + var state = getInternalIteratorState(this); + var kind = state.kind; + var entry = state.last; + // revert to the last existing entry + while (entry && entry.removed) entry = entry.previous; + // get next entry + if (!state.target || !(state.last = entry = entry ? entry.next : state.state.first)) { + // or finish the iteration + state.target = undefined; + return createIterResultObject(undefined, true); + } + // return step by kind + if (kind == 'keys') return createIterResultObject(entry.key, false); + if (kind == 'values') return createIterResultObject(entry.value, false); + return createIterResultObject([entry.key, entry.value], false); + }, IS_MAP ? 'entries' : 'values', !IS_MAP, true); + + // `{ Map, Set }.prototype[@@species]` accessors + // https://tc39.es/ecma262/#sec-get-map-@@species + // https://tc39.es/ecma262/#sec-get-set-@@species + setSpecies(CONSTRUCTOR_NAME); + } + }; + + var collection = collection$1; + var collectionStrong = collectionStrong$1; + + // `Set` constructor + // https://tc39.es/ecma262/#sec-set-objects + collection('Set', function (init) { + return function Set() { + return init(this, arguments.length ? arguments[0] : undefined); + }; + }, collectionStrong); + + var $$3 = _export; + var toObject = toObject$6; + var nativeKeys = objectKeys$3; + var fails$1 = fails$s; + var FAILS_ON_PRIMITIVES = fails$1(function () { + nativeKeys(1); + }); + + // `Object.keys` method + // https://tc39.es/ecma262/#sec-object.keys + $$3({ + target: 'Object', + stat: true, + forced: FAILS_ON_PRIMITIVES + }, { + keys: function keys(it) { + return nativeKeys(toObject(it)); + } + }); + + var $$2 = _export; + var $map = arrayIteration.map; + var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$3; + var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('map'); + + // `Array.prototype.map` method + // https://tc39.es/ecma262/#sec-array.prototype.map + // with adding support of @@species + $$2({ + target: 'Array', + proto: true, + forced: !HAS_SPECIES_SUPPORT + }, { + map: function map(callbackfn /* , thisArg */) { + return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); + } + }); + + var DESCRIPTORS$1 = descriptors; + var uncurryThis$2 = functionUncurryThis; + var objectKeys = objectKeys$3; + var toIndexedObject = toIndexedObject$7; + var $propertyIsEnumerable = objectPropertyIsEnumerable.f; + var propertyIsEnumerable = uncurryThis$2($propertyIsEnumerable); + var push = uncurryThis$2([].push); + + // `Object.{ entries, values }` methods implementation + var createMethod = function (TO_ENTRIES) { + return function (it) { + var O = toIndexedObject(it); + var keys = objectKeys(O); + var length = keys.length; + var i = 0; + var result = []; + var key; + while (length > i) { + key = keys[i++]; + if (!DESCRIPTORS$1 || propertyIsEnumerable(O, key)) { + push(result, TO_ENTRIES ? [key, O[key]] : O[key]); + } + } + return result; + }; + }; + var objectToArray = { + // `Object.entries` method + // https://tc39.es/ecma262/#sec-object.entries + entries: createMethod(true), + // `Object.values` method + // https://tc39.es/ecma262/#sec-object.values + values: createMethod(false) + }; + + var $$1 = _export; + var $values = objectToArray.values; + + // `Object.values` method + // https://tc39.es/ecma262/#sec-object.values + $$1({ + target: 'Object', + stat: true + }, { + values: function values(O) { + return $values(O); + } + }); + + /** + * @export + * @class RadioGroup + * @property {string} controlName + * @property {string} featureName + * @property {string} radioElements + * @property {string} defaultValue + */ + var RadioGroup = /*#__PURE__*/function (_BasePlugin) { + _inherits(RadioGroup, _BasePlugin); + var _super = _createSuper(RadioGroup); + /** + * creates an instance of RadioGroup + * @constructor + * @param {string} selector selector string for the radio group + * @param {string} controlName the name of the control (used for warning logging only) + * @param {string} [featureName='captionStyles'] the feature name used by Springroll. Defaults to captionStyles + * @param {string} defaultValue the value attribute of the radio button that should be selected by default + * @param {string} pluginName name of the plugin that instantiated the RadioGroup. Used for logging warnings + * @memberof RadioGroupPlugin + */ + function RadioGroup(_ref) { + var _this; + var selector = _ref.selector, + controlName = _ref.controlName, + _ref$featureName = _ref.featureName, + featureName = _ref$featureName === void 0 ? 'captionStyles' : _ref$featureName, + defaultValue = _ref.defaultValue, + pluginName = _ref.pluginName; + _classCallCheck(this, RadioGroup); + _this = _super.call(this, pluginName); + _this.controlName = controlName; + _this.featureName = featureName; + _this.radioElements = document.querySelectorAll(selector); + _this.defaultValue = defaultValue; + _this.radioGroup = {}; + if (_this.radioElements.length <= 0) { + _this.warn("".concat(_this.controlName, " RadioGroup found no HTMLElements with selector: ").concat(selector)); + return _possibleConstructorReturn(_this); + } + _this.radioElements.forEach(function (radio) { + if (radio.type !== 'radio') { + _this.warn("".concat(_this.controlName, " was provided a non Radio Button element with selector: ").concat(selector)); + return; + } + radio.value = radio.value.toLowerCase(); + _this.radioGroup[radio.value] = radio; + }); + if (!_this.radioGroup[_this.defaultValue]) { + _this.warn("".concat(_this.controlName, " RadioGroup for selector: ").concat(selector, " does not have a radio button with value ").concat(_this.defaultValue, " to use as default value. Using first element as default")); + _this.defaultValue = _this.radioElements[0].value.toLowerCase(); + } + _this.radioGroup[_this.defaultValue].checked = true; + return _this; + } + + /** + * @param {string[]} valuesArray Array of acceptable values to check against the radio group. + * @return {boolean} + * @memberof RadioGroup + */ + _createClass(RadioGroup, [{ + key: "hasOnly", + value: function hasOnly(valuesArray) { + for (var key in this.radioGroup) { + if (!valuesArray.includes(this.radioGroup[key].value)) { + this.warn("".concat(this.controlName, " radio button value: ").concat(this.radioGroup[key].value, " is not an accepted value. Skipping radio group")); + return false; + } + } + return true; + } + + /** + * @return {boolean} + * @memberof RadioGroup + */ + }, { + key: "hasDuplicateValues", + value: function hasDuplicateValues() { + return this.values.length !== _toConsumableArray(new Set(this.values)).length; + } + + /** + * Adds change listeners to the radio buttons using the given callback function + * @memberof RadioGroup + * @param {Function} callBack event to fire on change + */ + }, { + key: "enableRadioEvents", + value: function enableRadioEvents(callBack) { + if (!this.radioGroup.length <= 0) { + return; + } + var event = callBack; + for (var radio in this.radioGroup) { + this.radioGroup[radio].addEventListener('change', event); + } + } + + /** + * removes the event listeners from the RadioGroup + * @memberof RadioGroup + * @param {Function} callBack event to fire on change + */ + }, { + key: "disableRadioEvents", + value: function disableRadioEvents(callBack) { + if (!this.radioGroup.length <= 0) { + return; + } + for (var radio in this.radioGroup) { + this.radioGroup[radio].removeEventListener('change', callBack); + } + } + + /** + * enables display of the Radio buttons if the correct feature is present in the features list + * @memberof RadioGroup + * @param {object} data Object containing which features are enabled + */ + }, { + key: "displayRadios", + value: function displayRadios(data) { + if (this.radioGroup.length <= 0 && data[this.featureName]) { + this.warn("".concat(this.controlName, " was not provided a valid input element or selector but '").concat(this.featureName, "' was included as a game feature")); + return; + } + if (this.radioGroup.length <= 0) { + return; + } + if (data[this.featureName]) { + return; + } + for (var radio in this.radioGroup) { + this.radioGroup[radio].style.display = 'none'; + } + } + + /** + * Reset the radio button states + * @memberof RadioGroup + */ + }, { + key: "resetState", + value: function resetState() { + this.radioGroup[this.defaultValue].checked = true; + } + + /** + * @readonly + * @returns {number} + * @memberof RadioGroup + */ + }, { + key: "length", + get: function get() { + return Object.keys(this.radioGroup).length; + } + + /** + * @readonly + * @returns {number} + * @memberof RadioGroup + */ + }, { + key: "values", + get: function get() { + return Object.values(this.radioGroup).map(function (radio) { + return radio.value; + }); + } + }]); + return RadioGroup; + }(BasePlugin); + + /** + * + * + * @export + * @class RadioGroupPlugin + */ + var RadioGroupPlugin = /*#__PURE__*/function (_BasePlugin) { + _inherits(RadioGroupPlugin, _BasePlugin); + var _super = _createSuper(RadioGroupPlugin); + /** + * + *Creates an instance of RadioGroupPlugin. + * @constructor + * @memberof RadioGroupPlugin + * @param {string} name + */ + function RadioGroupPlugin(cssSelector, name, _ref) { + var _this; + var supportedValues = _ref.supportedValues, + initialValue = _ref.initialValue, + controlName = _ref.controlName, + featureName = _ref.featureName, + radioCount = _ref.radioCount; + _classCallCheck(this, RadioGroupPlugin); + _this = _super.call(this, name); + _this.selectors = cssSelector ? cssSelector.split(',') : []; + _this.supportedValues = supportedValues; + _this.initialValue = supportedValues.includes(initialValue) ? initialValue : supportedValues[0]; + _this.controlName = controlName; + _this.featureName = featureName; + _this.radioCount = radioCount; + _this.sendAllProperties = _this.sendAllProperties.bind(_assertThisInitialized(_this)); + _this._currentValue = _this.initialValue; + _this.radioGroups = _this.setUpRadios(_this.selectors); + _this.radioGroupsLength = _this.radioGroups.length; + return _this; + } + + /** + * @memberof RadioGroupPlugin + * @param {string[]} selectors the separated selector strings used to target the radio button groups + * @returns {RadioGroup[]} + */ + _createClass(RadioGroupPlugin, [{ + key: "setUpRadios", + value: function setUpRadios(selectors) { + var _this2 = this; + var radioGroups = []; + selectors.forEach(function (selector) { + var radioGroup = new RadioGroup({ + selector: selector.trim(), + controlName: _this2.controlName, + defaultValue: _this2.initialValue, + pluginName: _this2.name, + featureName: _this2.featureName + }); + if (radioGroup.length !== _this2.radioCount) { + _this2.warn("Selector \"".concat(selector, "\" did not find exactly ").concat(_this2.radioCount, " radio buttons for ").concat(_this2.controlName, ". Skipping selector")); + return; + } + if (!radioGroup.hasOnly(_this2.supportedValues)) { + return; + } + if (radioGroup.hasDuplicateValues()) { + _this2.warn("Duplicate radio button values detected (values: ".concat(radioGroup.values, " ). Skipping radio group")); + return; + } + radioGroups.push(radioGroup); + }); + return radioGroups; + } + + /** + * @memberof RadioGroupPlugin + */ + }, { + key: "start", + value: function start() { + this.client.on('loaded', this.sendAllProperties); + this.client.on('loadDone', this.sendAllProperties); + } + + /** + * + * Sends initial caption properties to the application + * @memberof RadioGroupPlugin + */ + }, { + key: "sendAllProperties", + value: function sendAllProperties() { + this.sendProperty(this.featureName, this.property); + } + + /** + * @memberof RadioGroupPlugin + * @param {string} newValue + */ + }, { + key: "currentValue", + get: + /** + * @memberof RadioGroupPlugin + * @return {string} + */ + function get() { + return this._currentValue; + }, + set: function set(newValue) { + if (!this.supportedValues.includes(newValue)) { + return; + } + this._currentValue = newValue; + for (var i = 0, l = this.radioGroups.length; i < l; i++) { + this.radioGroups[i].radioGroup[newValue].checked = true; + } + } + }]); + return RadioGroupPlugin; + }(BasePlugin); + + var uncurryThis$1 = functionUncurryThis; + + // `thisNumberValue` abstract operation + // https://tc39.es/ecma262/#sec-thisnumbervalue + var thisNumberValue$1 = uncurryThis$1(1.0.valueOf); + + var $ = _export; + var IS_PURE = isPure; + var DESCRIPTORS = descriptors; + var global$1 = global$n; + var path = path$1; + var uncurryThis = functionUncurryThis; + var isForced = isForced_1; + var hasOwn = hasOwnProperty_1; + var inheritIfRequired = inheritIfRequired$2; + var isPrototypeOf = objectIsPrototypeOf; + var isSymbol = isSymbol$3; + var toPrimitive = toPrimitive$2; + var fails = fails$s; + var getOwnPropertyNames = objectGetOwnPropertyNames.f; + var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f; + var defineProperty = objectDefineProperty.f; + var thisNumberValue = thisNumberValue$1; + var trim = stringTrim.trim; + var NUMBER = 'Number'; + var NativeNumber = global$1[NUMBER]; + path[NUMBER]; + var NumberPrototype = NativeNumber.prototype; + var TypeError$1 = global$1.TypeError; + var stringSlice = uncurryThis(''.slice); + var charCodeAt = uncurryThis(''.charCodeAt); + + // `ToNumeric` abstract operation + // https://tc39.es/ecma262/#sec-tonumeric + var toNumeric = function (value) { + var primValue = toPrimitive(value, 'number'); + return typeof primValue == 'bigint' ? primValue : toNumber(primValue); + }; + + // `ToNumber` abstract operation + // https://tc39.es/ecma262/#sec-tonumber + var toNumber = function (argument) { + var it = toPrimitive(argument, 'number'); + var first, third, radix, maxCode, digits, length, index, code; + if (isSymbol(it)) throw TypeError$1('Cannot convert a Symbol value to a number'); + if (typeof it == 'string' && it.length > 2) { + it = trim(it); + first = charCodeAt(it, 0); + if (first === 43 || first === 45) { + third = charCodeAt(it, 2); + if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix + } else if (first === 48) { + switch (charCodeAt(it, 1)) { + case 66: + case 98: + radix = 2; + maxCode = 49; + break; + // fast equal of /^0b[01]+$/i + case 79: + case 111: + radix = 8; + maxCode = 55; + break; + // fast equal of /^0o[0-7]+$/i + default: + return +it; + } + digits = stringSlice(it, 2); + length = digits.length; + for (index = 0; index < length; index++) { + code = charCodeAt(digits, index); + // parseInt parses a string to a first unavailable symbol + // but ToNumber should return NaN if a string contains unavailable symbols + if (code < 48 || code > maxCode) return NaN; + } + return parseInt(digits, radix); + } + } + return +it; + }; + var FORCED = isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1')); + var calledWithNew = function (dummy) { + // includes check on 1..constructor(foo) case + return isPrototypeOf(NumberPrototype, dummy) && fails(function () { + thisNumberValue(dummy); + }); + }; + + // `Number` constructor + // https://tc39.es/ecma262/#sec-number-constructor + var NumberWrapper = function Number(value) { + var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value)); + return calledWithNew(this) ? inheritIfRequired(Object(n), this, NumberWrapper) : n; + }; + NumberWrapper.prototype = NumberPrototype; + if (FORCED && !IS_PURE) NumberPrototype.constructor = NumberWrapper; + $({ + global: true, + constructor: true, + wrap: true, + forced: FORCED + }, { + Number: NumberWrapper + }); + + // Use `internal/copy-constructor-properties` helper in `core-js@4` + var copyConstructorProperties = function (target, source) { + for (var keys = DESCRIPTORS ? getOwnPropertyNames(source) : ( + // ES3: + 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' + + // ES2015 (in case, if modules with ES2015 Number statics required before): + 'EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,' + + // ESNext + 'fromString,range').split(','), j = 0, key; keys.length > j; j++) { + if (hasOwn(source, key = keys[j]) && !hasOwn(target, key)) { + defineProperty(target, key, getOwnPropertyDescriptor(source, key)); + } + } + }; + if (FORCED || IS_PURE) copyConstructorProperties(path[NUMBER], NativeNumber); + + /** + * @export + * @class Slider + */ + var Slider = /*#__PURE__*/function () { + /** + *Creates an instance of Slider + * @param {object} params + * @param {string | HTMLInputElement} params.slider the slider element or a selector string + * @param {string} params.control the feature that this slider controols + * @param {number} [min=0] slider min value + * @param {number} [max=1] slider max value + * @param {number} [step=0.1] slider step value + * @param {number} [defaultValue=1] slider starting value + * @memberof SliderPlugin + */ + function Slider(_ref) { + var slider = _ref.slider, + control = _ref.control, + _ref$min = _ref.min, + min = _ref$min === void 0 ? 0 : _ref$min, + _ref$max = _ref.max, + max = _ref$max === void 0 ? 1 : _ref$max, + _ref$step = _ref.step, + step = _ref$step === void 0 ? 0.1 : _ref$step, + _ref$defaultValue = _ref.defaultValue, + defaultValue = _ref$defaultValue === void 0 ? 1 : _ref$defaultValue; + _classCallCheck(this, Slider); + this.min = min; + this.max = max; + this.step = step; + this.sliderValue = defaultValue; + this.control = control; + this.slider = this.setUpSlider(slider, control); + } + + /** + * @param {string | HTMLInputElement | HTMLElement} slider + * @param {string} control The control element (sensitivity, difficulty, pointer size, etc) this slider will be controlling + * @returns {Element | HTMLElement} + * @memberof Slider + */ + _createClass(Slider, [{ + key: "setUpSlider", + value: function setUpSlider(slider, control) { + if ('string' === typeof slider) { + slider = document.querySelector(slider); + } + if (!slider || 'range' !== slider.type) { + return null; + } + var value = SavedData.read(control); + slider.min = this.min; + slider.max = this.max; + slider.step = this.step; + if ((value || value === 0) && value.toString().trim().length > 0) { + slider.value = value; + this.sliderValue = value; + } else { + slider.value = this.sliderValue; + } + return slider; + } + + /** + * Controls the range of the slider + * @param {number} i + * @returns + * @memberof Slider + */ + }, { + key: "sliderRange", + value: function sliderRange(i) { + if (i < this.min) { + return this.min; + } else if (i > this.max) { + return this.max; + } else { + return i; + } + } + + /** + * Adds change and input listeners to the slider using the given callback function + * @memberof Slider + * @param {Function} callBack event to fire on change or input + */ + }, { + key: "enableSliderEvents", + value: function enableSliderEvents(callBack) { + if (!this.slider) { + return; + } + var event = callBack; + this.slider.addEventListener('change', event); + this.slider.addEventListener('input', event); + } + + /** + * removes the event listeners from the given slider. + * @memberof Slider + * @param {Function} callBack event to fire on change or input + */ + }, { + key: "disableSliderEvents", + value: function disableSliderEvents(callBack) { + if (!this.slider) { + return; + } + var event = callBack; + this.slider.removeEventListener('change', event); + this.slider.removeEventListener('input', event); + } + /** + * enables display of the Slider if it is present in the features list + * @memberof Slider + * @param {object} data Object containing which features are enabled + */ + }, { + key: "displaySlider", + value: function displaySlider(data) { + if (!this.slider && data[this.control]) { + console.warn("".concat(this.control, " was not provided a valid input element or selector but was included as a game feature")); + } + if (!this.slider) { + return; + } + this.slider.style.display = data[this.control] ? '' : 'none'; + } + + /** + * @param {Event} event the event to be fired on the slider + * @memberof Slider + */ + }, { + key: "dispatchEvent", + value: function dispatchEvent(event) { + this.slider.dispatchEvent(event); + } + + /** + * @readonly + * @returns {string} + * @memberof Slider + */ + }, { + key: "value", + get: function get() { + return this.slider.value; + } + + /** + * @memberof Slider + */, + set: function set(value) { + this.slider.value = value; + } + }]); + return Slider; + }(); + + /** + * @export + * @class Button + */ + var Button = /*#__PURE__*/function () { + /** + *Creates an instance of Button + * @param {object} params + * @param {string | HTMLElement} params.button the button itself or a selector string + * @param {Function} params.onClick the function to call when the button is clicked + * @param {string} channel the feature this button controls + * @memberof ButtonPlugin + */ + function Button(_ref) { + var button = _ref.button, + onClick = _ref.onClick, + channel = _ref.channel; + _classCallCheck(this, Button); + this.button = button instanceof HTMLElement ? button : document.querySelector(button); + this.onClick = onClick; + this.channel = channel; + if (this.button) { + this.button.addEventListener('click', onClick); + } + } + + /** + * enables display of the button if it is present in the features list + * @memberof Button + * @param {object} data Object containing which features are enabled + */ + _createClass(Button, [{ + key: "displayButton", + value: function displayButton(data) { + if (!(this.button instanceof HTMLElement)) { + return; + } + this.button.style.display = data[this.channel] || this.channel === 'pause' || this.channel === 'hints' ? '' : 'none'; + } + + /** + * enables display of the button + * @memberof Button + */ + }, { + key: "enableButton", + value: function enableButton() { + if (!this.button) { + return; + } + this.button.classList.remove('disabled'); + } + + /** + * + * @param {string} className The classname to be appended to the end of the class property + */ + }, { + key: "addClass", + value: function addClass(className) { + this.button.className = this.button.className ? this.button.className + " ".concat(className) : " ".concat(className); + } + }]); + return Button; + }(); + + /** + * + * + * @export + * @class SliderPlugin + */ + var SliderPlugin = /*#__PURE__*/function (_BasePlugin) { + _inherits(SliderPlugin, _BasePlugin); + var _super = _createSuper(SliderPlugin); + /** + * + *Creates an instance of SliderPlugin. + * @constructor + * @memberof SliderPlugin + * @param {string} cssSelector + * @param {string} name + * @param {object} options + * @param {string | number} [options.defaultValue='0.5'] + * @param {string | number} [options.minValue='0'] + * @param {string | number} [options.maxValue='1'] + * @param {string} [options.featureName] Springroll Core feature name that the plugin is supporting + */ + function SliderPlugin(cssSelector, name, _ref) { + var _this; + var _ref$defaultValue = _ref.defaultValue, + defaultValue = _ref$defaultValue === void 0 ? '0.5' : _ref$defaultValue, + _ref$minValue = _ref.minValue, + minValue = _ref$minValue === void 0 ? '0' : _ref$minValue, + _ref$maxValue = _ref.maxValue, + maxValue = _ref$maxValue === void 0 ? '1' : _ref$maxValue, + featureName = _ref.featureName; + _classCallCheck(this, SliderPlugin); + _this = _super.call(this, name); + _this.featureName = featureName; + _this.minValue = minValue; + _this.defaultValue = defaultValue; + _this.maxValue = maxValue; + _this._currentValue = defaultValue; + _this.sliders = _this.setUpSliders(cssSelector); + _this.slidersLength = _this.sliders.length; + _this.sendAllProperties = _this.sendAllProperties.bind(_assertThisInitialized(_this)); + if (0 >= _this.slidersLength) { + _this.warn('Plugin was not provided any valid HTML Elements'); + return _possibleConstructorReturn(_this); + } + return _this; + } + + /** + * @memberof SliderPlugin + * @param {string[]} selectors the selector strings used to target the input elements + * @returns {Slider[]} + */ + _createClass(SliderPlugin, [{ + key: "setUpSliders", + value: function setUpSliders(selectors) { + var _this2 = this; + var sliders = []; + if (selectors instanceof HTMLElement) { + sliders.push(new Slider({ + slider: selectors, + control: this.featureName, + defaultValue: this.defaultValue, + minValue: this.minValue, + maxValue: this.maxValue + })); + } else { + document.querySelectorAll(selectors).forEach(function (slider) { + sliders.push(new Slider({ + slider: slider, + control: _this2.featureName, + defaultValue: _this2.defaultValue, + minValue: _this2.minValue, + maxValue: _this2.maxValue + })); + }); + } + return sliders; + } + + /** + * @memberof SliderPlugin + */ + }, { + key: "init", + value: function init() { + this.client.on('features', function (features) { + if (!features.data) { + return; + } + for (var i = 0; i < this.slidersLength; i++) { + this.sliders[i].displaySlider(features.data); + } + }.bind(this)); + } + + /** + * @memberof SliderPlugin + */ + }, { + key: "start", + value: function start() { + this._currentValue = this.sliders[0].value; //update current value to the saved data value set in Slider. + this.client.on('loaded', this.sendAllProperties); + this.client.on('loadDone', this.sendAllProperties); + } + + /** + * + * Sends initial caption properties to the application + * @memberof SliderPlugin + */ + }, { + key: "sendAllProperties", + value: function sendAllProperties() { + this.sendProperty(this.featureName, this.currentValue); + } + + /** + * @memberof SliderPlugin + * @param {string} newValue + */ + }, { + key: "currentValue", + get: + /** + * @memberof SliderPlugin + * @return {string} + */ + function get() { + return this._currentValue; + }, + set: function set(newValue) { + //just use first slider to ensure the number is valid. + this._currentValue = this.sliders[0].sliderRange(Number(newValue)); + for (var i = 0; i < this.slidersLength; i++) { + this.sliders[i].value = newValue; + } + } + }]); + return SliderPlugin; + }(BasePlugin); + + var DEFAULT_CAPTIONS_STYLES = { + size: 'medium', + background: 'black', + color: 'white', + edge: 'none', + font: 'arial', + align: 'top' + }; + var DEFAULT_COLOR_STYLE = { + color: 'white', + background: 'black' + }; + var INVERTED_COLOR_STYLE = { + color: 'black', + background: 'white' + }; + var FONT_SIZE_VALUES = ['small', 'medium', 'large']; + var COLOR_VALUES = ['default', 'inverted']; + var ALIGN_VALUES = ['top', 'bottom']; + + /** + * @export + * @class CaptionsStylePlugin + * @property {object} captionsStyles The collection of captions styles + * @property {string[]} fontSizeSelectors selector strings for the radio button groups + * @property {string[]} colorSelectors selector strings for the radio button groups + * @property {string[]} alignmentSelectors selector strings for the radio button groups + * @property {Object[]} fontSizeRadios array that contains each radio group + * @property {Object[]} colorRadios array that contains each radio group + * @property {Object[]} alignmentRadios array that contains each radio group + * @property {number} fontSizeRadiosLength Length of the fontSizeRadios array + * @property {number} colorRadiosLength Length of the colorRadios array + * @property {number} alignmentRadiosLength Length of the alignmentRadios array + * @extends {ButtonPlugin} + */ + var CaptionsStylePlugin = /*#__PURE__*/function (_ButtonPlugin) { + _inherits(CaptionsStylePlugin, _ButtonPlugin); + var _super = _createSuper(CaptionsStylePlugin); + /** + * Creates an instance of CaptionsStylePlugin. + * @param {string} fontSizeRadios selector string for one or more radio groups for caption font size + * @param {string} colorRadios selector string for one or more radio groups for caption font/background colors + * @param {string} alignmentRadios selector string for one or more radio groups for caption position + * @param {string} [defaultFontSize='medium'] Default selected font size + * @param {string} [defaultColor='default'] Default selected color + * @param {string} [defaultAlignment='top'] Default selected alignment + * @memberof CaptionsStylePlugin + */ + function CaptionsStylePlugin(fontSizeRadios, colorRadios, alignmentRadios) { + var _this; + var _ref = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}, + _ref$defaultFontSize = _ref.defaultFontSize, + defaultFontSize = _ref$defaultFontSize === void 0 ? 'medium' : _ref$defaultFontSize, + _ref$defaultColor = _ref.defaultColor, + defaultColor = _ref$defaultColor === void 0 ? 'default' : _ref$defaultColor, + _ref$defaultAlignment = _ref.defaultAlignment, + defaultAlignment = _ref$defaultAlignment === void 0 ? 'top' : _ref$defaultAlignment; + _classCallCheck(this, CaptionsStylePlugin); + _this = _super.call(this, 'Caption-Button-Plugin'); + _this.sendAllProperties = _this.sendAllProperties.bind(_assertThisInitialized(_this)); + _this.captionsStyles = Object.assign({}, DEFAULT_CAPTIONS_STYLES, SavedData.read(CaptionsStylePlugin.captionStyleKey) || {}); + + //split the selector strings into individual selectors. + //Helps keep the input style consistent across plugins. + _this.fontSizeSelectors = fontSizeRadios ? fontSizeRadios.split(',') : []; + _this.colorSelectors = colorRadios ? colorRadios.split(',') : []; + _this.alignmentSelectors = alignmentRadios ? alignmentRadios.split(',') : []; + _this.defaultFontSize = FONT_SIZE_VALUES.includes(defaultFontSize) ? defaultFontSize : FONT_SIZE_VALUES[0]; + _this.defaultColor = COLOR_VALUES.includes(defaultColor) ? defaultColor : COLOR_VALUES[0]; + _this.defaultAlignment = ALIGN_VALUES.includes(defaultAlignment) ? defaultAlignment : ALIGN_VALUES[0]; + _this.fontSizeRadios = []; + _this.colorRadios = []; + _this.alignmentRadios = []; + _this.fontSizeRadios = _this.setUpFontSizeRadios(_this.fontSizeSelectors); + _this.colorRadios = _this.setUpColorRadios(_this.colorSelectors); + _this.alignmentRadios = _this.setUpAlignmentRadios(_this.alignmentSelectors); + _this._captionsMuted = false; + _this.alignmentRadiosLength = _this.alignmentRadios.length; + _this.fontSizeRadiosLength = _this.fontSizeRadios.length; + _this.colorRadiosLength = _this.colorRadios.length; + if (0 >= _this.alignmentRadiosLength + _this.fontSizeRadiosLength + _this.colorRadiosLength) { + _this.warn('Plugin was not provided any input elements'); + return _possibleConstructorReturn(_this); + } + + //set up change events + for (var i = 0; i < _this.colorRadiosLength; i++) { + _this.colorRadios[i].enableRadioEvents(_this.onColorChange.bind(_assertThisInitialized(_this))); + } + for (var _i = 0; _i < _this.alignmentRadiosLength; _i++) { + _this.alignmentRadios[_i].enableRadioEvents(_this.onAlignmentChange.bind(_assertThisInitialized(_this))); + } + for (var _i2 = 0; _i2 < _this.fontSizeRadiosLength; _i2++) { + _this.fontSizeRadios[_i2].enableRadioEvents(_this.onFontSizeChange.bind(_assertThisInitialized(_this))); + } + return _this; + } + + /** + * @memberof CaptionsStylePlugin + * @param {string[]} selectors the separated selector strings used to target the radio button groups + * @returns {RadioGroup[]} + */ + _createClass(CaptionsStylePlugin, [{ + key: "setUpFontSizeRadios", + value: function setUpFontSizeRadios(selectors) { + var _this2 = this; + var radioGroups = []; + selectors.forEach(function (selector) { + var radioGroup = new RadioGroup({ + selector: selector.trim(), + controlName: 'Font Size', + defaultValue: _this2.defaultFontSize, + pluginName: 'Caption-Button-Plugin' + }); + if (radioGroup.length !== 3) { + _this2.warn("Selector \"".concat(selector, "\" did not find exactly three(3) radio buttons for caption font size. Skipping selector")); + return; + } + if (!radioGroup.hasOnly(FONT_SIZE_VALUES)) { + return; + } + if (radioGroup.hasDuplicateValues()) { + _this2.warn("Duplicate radio button values detected (values: ".concat(radioGroup.values, " ). Skipping radio group")); + return; + } + radioGroups.push(radioGroup); + }); + return radioGroups; + } + + /** + * @memberof CaptionsStylePlugin + * @param {string[]} selectors the separated selector strings used to target the radio button groups + * @returns {RadioGroup[]} + */ + }, { + key: "setUpColorRadios", + value: function setUpColorRadios(selectors) { + var _this3 = this; + var radioGroups = []; + selectors.forEach(function (selector) { + var radioGroup = new RadioGroup({ + selector: selector.trim(), + controlName: 'Color', + defaultValue: _this3.defaultColor, + pluginName: 'Caption-Button-Plugin' + }); + if (radioGroup.length !== 2) { + _this3.warn("Selector \"".concat(selector, "\" did not find exactly two(2) radio buttons for caption colors. Skipping selector")); + return; + } + if (!radioGroup.hasOnly(COLOR_VALUES)) { + return; + } + if (radioGroup.hasDuplicateValues()) { + _this3.warn("Duplicate radio button values detected (values: ".concat(radioGroup.values, " ). Skipping radio group")); + return; + } + radioGroups.push(radioGroup); + }); + return radioGroups; + } + + /** + * @memberof CaptionsStylePlugin + * @param {string[]} selectors the separated selector strings used to target the radio button groups + * @returns {RadioGroup[]} + */ + }, { + key: "setUpAlignmentRadios", + value: function setUpAlignmentRadios(selectors) { + var _this4 = this; + var radioGroups = []; + selectors.forEach(function (selector) { + var radioGroup = new RadioGroup({ + selector: selector.trim(), + controlName: 'Alignment', + defaultValue: _this4.defaultAlignment, + pluginName: 'Caption-Button-Plugin' + }); + if (radioGroup.length !== 2) { + _this4.warn("Selector \"".concat(selector, "\" did not find exactly two(2) radio buttons for caption alignment. Skipping selector")); + return; + } + if (!radioGroup.hasOnly(ALIGN_VALUES)) { + return; + } + if (radioGroup.hasDuplicateValues()) { + _this4.warn("Duplicate radio button values detected (values: ".concat(radioGroup.values, " ). Skipping radio group")); + return; + } + radioGroups.push(radioGroup); + }); + return radioGroups; + } + + /** + * @memberof CaptionsStylePlugin + */ + }, { + key: "init", + value: function init() { + // Handle the features request + this.client.on('features', function ($event) { + var _iterator = _createForOfIteratorHelper(this.radios), + _step; + try { + for (_iterator.s(); !(_step = _iterator.n()).done;) { + var radio = _step.value; + radio.displayRadios($event.data); + } + } catch (err) { + _iterator.e(err); + } finally { + _iterator.f(); + } + }.bind(this)); + this.client.on('caption-set-style', function ($event) { + this.setCaptionsStyles($event.data || {}); + }.bind(this)); + } + /** + * @memberof CaptionsStylePlugin + */ + }, { + key: "start", + value: function start() { + this.setCaptionsStyles(SavedData.read(CaptionsStylePlugin.captionStyleKey)); + this.client.on('loaded', this.sendAllProperties); + this.client.on('loadDone', this.sendAllProperties); + } + + /** + * + * Sends initial caption properties to the application + * @memberof CaptionsStylePlugin + */ + }, { + key: "sendAllProperties", + value: function sendAllProperties() { + this.sendProperty(CaptionsStylePlugin.captionStyleKey, this.captionsStyles); + } + /** + * Fired whenever the font size radios are updated + * @param {Event} e + * @memberof CaptionsStylePlugin + */ + }, { + key: "onFontSizeChange", + value: function onFontSizeChange(e) { + this.setCaptionsStyles('size', e.target.value); + + // this.fontSizeRadios.forEach((group) => { + // group.radioGroup[e.target.value].checked = true; + // }); + } + + /** + * Fired whenever the alignment radios are updated + * @param {Event} e + * @memberof CaptionsStylePlugin + */ + }, { + key: "onAlignmentChange", + value: function onAlignmentChange(e) { + this.setCaptionsStyles('align', e.target.value); + + // this.alignmentRadios.forEach((group) => { + // group.radioGroup[e.target.value].checked = true; + // }); + } + + /** + * Fired whenever the color radios are updated + * @param {Event} e + * @memberof CaptionsStylePlugin + */ + }, { + key: "onColorChange", + value: function onColorChange(e) { + var styles = e.target.value === 'default' ? DEFAULT_COLOR_STYLE : INVERTED_COLOR_STYLE; + this.setCaptionsStyles(styles); + + // this.colorRadios.forEach((group) => { + // group.radioGroup[e.target.value].checked = true; + // }); + } + + /** + * Reset the captions styles + * @param {Event} e + * @memberof CaptionsStylePlugin + */ + }, { + key: "clearCaptionsStyles", + value: function clearCaptionsStyles() { + this.captionsStyles = Object.assign({}, DEFAULT_CAPTIONS_STYLES); + this.setCaptionsStyles(); + var _iterator2 = _createForOfIteratorHelper(this.radios), + _step2; + try { + for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) { + var radio = _step2.value; + radio.resetState(); + } + } catch (err) { + _iterator2.e(err); + } finally { + _iterator2.f(); + } + } + + /** + * Get the captions styles + * @param {string} [prop] The optional property, values are "size", "edge", "font", "background", "color" + * @return {object | string} The collection of styles, see setCaptionsStyles for more info. + * @memberof CaptionsStylePlugin + */ + }, { + key: "getCaptionsStyles", + value: function getCaptionsStyles(prop) { + return prop ? this.captionsStyles[prop] : this.captionsStyles; + } + + /** + * Set the captions styles + * + * @param {object} [styles] The style options or the name of the + * property (e.g., "color", "edge", "font", "background", "size") + * @param {string} [styles.color='white'] The text color, the default is white + * @param {string} [styles.edge='none'] The edge style, default is none + * @param {string} [styles.font='arial'] The font style, default is arial + * @param {string} [styles.background='black'] The background style, black + * @param {string} [styles.size='md'] The font style default is medium + * @param {string} [styles.align='top'] The align style default is top of the window + * @param {string} [value=''] If setting styles parameter as a string, this is the value of the property. + * @memberof CaptionsStylePlugin + */ + }, { + key: "setCaptionsStyles", + value: function setCaptionsStyles() { + var _this5 = this; + var styles = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : DEFAULT_CAPTIONS_STYLES; + var value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; + if (_typeof(styles) === 'object') { + Object.assign(this.captionsStyles, styles); + } else if (typeof styles === 'string') { + this.captionsStyles[styles] = value; + } + + // update radios to match + this.colorRadios.forEach(function (group) { + var style = _this5.captionsStyles.color === 'white' ? 'default' : 'inverted'; + group.radioGroup[style].checked = true; + }); + this.alignmentRadios.forEach(function (group) { + group.radioGroup[_this5.captionsStyles.align].checked = true; + }); + this.fontSizeRadios.forEach(function (group) { + group.radioGroup[_this5.captionsStyles.size].checked = true; + }); + SavedData.write(CaptionsStylePlugin.captionStyleKey, this.captionsStyles); + if (this.client) { + this.client.send(CaptionsStylePlugin.captionStyleKey, this.captionsStyles); + } + } + + /** + * @readonly + * @returns {number} + * @memberof RadioGroup + */ + }, { + key: "radios", + get: function get() { + return this.colorRadios.concat(this.alignmentRadios).concat(this.fontSizeRadios); + } + /** + * Get captionStyle Key + * @readonly + * @static + * @memberof CaptionStyleKey + * @returns {string} + */ + }], [{ + key: "captionStyleKey", + get: function get() { + return 'captionsStyles'; + } + }]); + return CaptionsStylePlugin; + }(ButtonPlugin); + + /** + * @export + * @class CaptionsTogglePlugin + * @property {Button[]} _captionsButtons An array of caption mute buttons + * @property {boolean} _captionsMuted True if captions are muted + * @property {number} captionsButtonLength The length of the captionsButtons array + * @extends {ButtonPlugin} + */ + var CaptionsTogglePlugin = /*#__PURE__*/function (_ButtonPlugin) { + _inherits(CaptionsTogglePlugin, _ButtonPlugin); + var _super = _createSuper(CaptionsTogglePlugin); + /** + *Creates an instance of CaptionsTogglePlugin. + * @param {string | HTMLElement} captionsButtons selector string for one or more captions mute buttons + * @memberof CaptionsTogglePlugin + */ + function CaptionsTogglePlugin(captionsButtons) { + var _this; + _classCallCheck(this, CaptionsTogglePlugin); + _this = _super.call(this, 'Caption-Button-Plugin'); + _this.sendAllProperties = _this.sendAllProperties.bind(_assertThisInitialized(_this)); + _this._captionsButtons = []; + if (captionsButtons instanceof HTMLElement) { + _this._captionsButtons[0] = new Button({ + button: captionsButtons, + onClick: _this.captionsButtonClick.bind(_assertThisInitialized(_this)), + channel: 'captions' + }); + } else { + document.querySelectorAll(captionsButtons).forEach(function (button) { + _this._captionsButtons.push(new Button({ + button: button, + onClick: _this.captionsButtonClick.bind(_assertThisInitialized(_this)), + channel: 'captions' + })); + }); + } + _this._captionsMuted = false; + _this.captionsButtonLength = _this._captionsButtons.length; + if (0 >= _this.captionsButtonLength) { + _this.warn('Plugin was not provided any valid button or input elements'); + return _possibleConstructorReturn(_this); + } + return _this; + } + + /** + * @memberof CaptionsTogglePlugin + */ + _createClass(CaptionsTogglePlugin, [{ + key: "init", + value: function init() { + // Handle the features request + this.client.on('features', function ($event) { + for (var i = 0; i < this.captionsButtonLength; i++) { + this._captionsButtons[i].displayButton($event.data); + } + if (null === SavedData.read(CaptionsTogglePlugin.captionsToggleKey)) { + return; + } + this.captionsMuted = !!SavedData.read(CaptionsTogglePlugin.captionsToggleKey); + }.bind(this)); + } + /** + * @memberof CaptionsTogglePlugin + */ + }, { + key: "start", + value: function start() { + this.captionsMuted = !!SavedData.read(CaptionsTogglePlugin.captionsToggleKey); + this.client.on('loaded', this.sendAllProperties); + this.client.on('loadDone', this.sendAllProperties); + } + + /** + * + * Sends initial caption properties to the application + * @memberof CaptionsTogglePlugin + */ + }, { + key: "sendAllProperties", + value: function sendAllProperties() { + this.sendProperty(CaptionsTogglePlugin.captionsToggleKey, this.captionsMuted); + } + + /** + * @memberof CaptionsTogglePlugin + */ + }, { + key: "captionsButtonClick", + value: function captionsButtonClick() { + this.captionsMuted = !this.captionsMuted; + } + + /** + * @readonly + * @memberof CaptionsTogglePlugin + */ + }, { + key: "captionsMuted", + get: function get() { + return this._captionsMuted; + } + + /** + * @param {boolean} muted + * @memberof CaptionsTogglePlugin + */, + set: function set(muted) { + this._captionsMuted = muted; + this._setMuteProp('captionsMuted', this._captionsButtons, this._captionsMuted); + } + + /** + * Get CaptionToggle Key + * @readonly + * @static + * @memberof captionsToggleKey + * @returns {string} + */ + }], [{ + key: "captionsToggleKey", + get: function get() { + return 'captionsMuted'; + } + }]); + return CaptionsTogglePlugin; + }(ButtonPlugin); + + /** + * Requests a hint or help from the game + * @class HelpPlugin + * @property {boolean} paused + * @property {boolean} _helpEnabled + * @property {boolean} onPause + * @property {number} helpButtonsLength + * @extends {ButtonPlugin} + * @export + */ + var HelpPlugin = /*#__PURE__*/function (_ButtonPlugin) { + _inherits(HelpPlugin, _ButtonPlugin); + var _super = _createSuper(HelpPlugin); + /** + * Creates an instance of HelpPlugin. + * @param {string | HTMLElement} helpButtons The selector or HTMLElement for the button + * @memberof HelpPlugin + */ + function HelpPlugin(helpButtons) { + var _this; + _classCallCheck(this, HelpPlugin); + _this = _super.call(this, 'Help-Button-Plugin'); + _this._helpButtons = []; + if (helpButtons instanceof HTMLElement) { + _this._helpButtons[0] = new Button({ + button: helpButtons, + onClick: _this.helpButtonClick.bind(_assertThisInitialized(_this)), + channel: 'hints' // the check to see if this feature exists is different than most so passing this ensures it'll work the same. + }); + } else { + document.querySelectorAll(helpButtons).forEach(function (button) { + _this._helpButtons.push(new Button({ + button: button, + onClick: _this.helpButtonClick.bind(_assertThisInitialized(_this)), + channel: 'hints' + })); + }); + } + _this.paused = false; + _this._helpEnabled = false; + _this.onPause = _this.onPause.bind(_assertThisInitialized(_this)); + _this.helpButtonsLength = _this._helpButtons.length; + if (_this.helpButtonsLength <= 0) { + _this.warn('Plugin was not provided any valid button elements'); + } + return _this; + } + /** + * Called when the game is either paused or resumed + * @param {object} $event + * @memberof HelpPlugin + */ + _createClass(HelpPlugin, [{ + key: "onPause", + value: function onPause($event) { + this.paused = $event.data.paused; + // Disable the help button when paused if it's active + if (this.paused && this.helpEnabled) { + for (var i = 0; i < this.helpButtonsLength; i++) { + this._helpButtons[i].button.setAttribute('data-paused', 'true'); + } + this.helpEnabled = false; + } else { + for (var _i = 0; _i < this.helpButtonsLength; _i++) { + if (this._helpButtons[_i].button.getAttribute('data-paused')) { + this._helpButtons[_i].button.setAttribute('data-paused', ''); + this.helpEnabled = true; + } + } + } + } + + /** + * + * + * @memberof HelpPlugin + */ + }, { + key: "helpButtonClick", + value: function helpButtonClick() { + if (!this.paused && this.helpEnabled) { + this.client.send('playHelp'); + } + } + + /** + * @memberof HelpPlugin + */ + }, { + key: "init", + value: function init() { + // Handle pause + this.client.on('paused', this.onPause); + + // Handle features changed + this.client.on('features', function (features) { + this.helpEnabled = features.data.hints; + for (var i = 0; i < this.helpButtonsLength; i++) { + this._helpButtons[i].displayButton(features.data); + } + }.bind(this)); + this.client.on('helpEnabled', function (event) { + this._helpEnabled = !!event.data; + }.bind(this)); + } + + /** + * @memberof HelpPlugin + */ + }, { + key: "helpEnabled", + get: function get() { + return this._helpEnabled; + } + + /** + * Fired when the enabled status of the help button changes + * @function helpEnabled + * @param {boolean} enabled If the help button is enabled + * @memberof HelpPlugin + */, + set: function set(enabled) { + this._helpEnabled = enabled; + for (var i = 0; i < this.helpButtonsLength; i++) { + this._helpButtons[i].button.classList.remove('disabled'); + this._helpButtons[i].button.classList.remove('enabled'); + this._helpButtons[i].button.classList.add(enabled ? 'enabled' : 'disabled'); + } + this.client.trigger('helpEnabled'); + } + + /** + * @readonly + * @static + * @memberof HelpPlugin + * @returns {string} + */ + }], [{ + key: "helpKey", + get: function get() { + return 'help'; + } + }]); + return HelpPlugin; + }(ButtonPlugin); + + /** + * @class Container + * @property {object[]} sliders an array of all slider objects attached to PausePlugin + * @extends ButtonPlugin + */ + var PausePlugin = /*#__PURE__*/function (_ButtonPlugin) { + _inherits(PausePlugin, _ButtonPlugin); + var _super = _createSuper(PausePlugin); + /** + * Creates an instance of PausePlugin. + * @param {string | HTMLElement} pauseButton selector string or HTML Element for the input(s) + * @param {boolean} manageOwnVisibility whether the plugin should manage container's visibility or some other source will handle it + * @memberof PausePlugin + */ + function PausePlugin(pauseButton) { + var _this; + var manageOwnVisibility = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; + _classCallCheck(this, PausePlugin); + _this = _super.call(this, 'Pause-Button-plugin'); + _this._manageOwnVisibility = manageOwnVisibility; + _this._appBlurred = false; + _this._containerBlurred = false; + _this._focusTimer = null; + _this._isManualPause = false; + _this._keepFocus = false; + _this._paused = false; + _this.iframe = null; + _this.focusApp = _this.focusApp.bind(_assertThisInitialized(_this)); + _this.manageFocus = _this.manageFocus.bind(_assertThisInitialized(_this)); + _this.onKeepFocus = _this.onKeepFocus.bind(_assertThisInitialized(_this)); + _this.onFocus = _this.onFocus.bind(_assertThisInitialized(_this)); + var onPauseToggle = _this.onPauseToggle.bind(_assertThisInitialized(_this)); + _this.pauseDisabled = false; + _this._pauseButton = []; + _this.pageVisibility = new PageVisibility(_this.onContainerFocus.bind(_assertThisInitialized(_this)), _this.onContainerBlur.bind(_assertThisInitialized(_this))); + _this.pageVisibility.enabled = _this.manageOwnVisibility; + if (pauseButton instanceof HTMLElement) { + _this._pauseButton[0] = new Button({ + button: pauseButton, + onClick: onPauseToggle, + channel: PausePlugin.pauseKey + }); + } else { + document.querySelectorAll(pauseButton).forEach(function (button) { + _this._pauseButton.push(new Button({ + button: button, + onClick: onPauseToggle, + channel: PausePlugin.pauseKey + })); + }); + } + return _this; + } + + /** + * updates _paused and also sends the pause event to the application + * @memberof PausePlugin + * @param {Boolean} paused + */ + _createClass(PausePlugin, [{ + key: "pause", + get: + /** + * @memberof PausePlugin + * @returns {Boolean} + */ + function get() { + return this._paused; + } + + /** + * updates _manageOwnVisibility and also re-enables pageVisibility + * @memberof PausePlugin + * @param {Boolean} manageOwnVisibility + */, + set: function set(paused) { + paused = !!paused; + if (this.pauseDisabled) { + return; + } + this._paused = paused; + this.client.send(PausePlugin.pauseKey, paused); + this.client.trigger(paused ? 'paused' : 'resumed', { + paused: paused + }); + for (var i = 0, l = this._pauseButton.length; i < l; i++) { + this._pauseButton[i].button.classList.remove('unpaused'); + this._pauseButton[i].button.classList.remove('paused'); + this._pauseButton[i].button.classList.add(paused ? 'paused' : 'unpaused'); + } + } + }, { + key: "manageOwnVisibility", + get: + /** + * @memberof PausePlugin + * @returns {Boolean} + */ + function get() { + return this._manageOwnVisibility; + } + + /** + * forces focus onto the iframe application window + * @memberof PausePlugin + */, + set: function set(manageOwnVisibility) { + this._manageOwnVisibility = manageOwnVisibility; + this.pageVisibility.enabled = this._manageOwnVisibility; + } + }, { + key: "focusApp", + value: function focusApp() { + if (!this.hasDom) { + // We don't have a dom with a content window, fail quietly + return; + } + this.iframe.contentWindow.focus(); + } + + /** + * blurs the application iframe window + * @memberof PausePlugin + */ + }, { + key: "blurApp", + value: function blurApp() { + if (!this.hasDom) { + return; + } + this.iframe.contentWindow.blur(); + } + + /** + * Determines what pause state should be sent, if any, on focus or blur events. + * @method manageFocus + * @memberof PausePlugin + */ + }, { + key: "manageFocus", + value: function manageFocus() { + if (!this.manageOwnVisibility) { + return; + } + // Unfocus on the iframe + if (this._keepFocus) { + this.blurApp(); + } + + // we only need one delayed call, at the end of any + // sequence of rapidly-fired blur/focus events + if (this._focusTimer) { + clearTimeout(this._focusTimer); + } + + // Delay setting of 'paused' in case we get another focus event soon. + // Focus events are sent to the container asynchronously, and this was + // causing rapid toggling of the pause state and related issues, + // especially in Internet Explorer + this._focusTimer = setTimeout(function () { + this._focusTimer = null; + // A manual pause cannot be overriden by focus events. + // User must click the resume button. + if (this._isManualPause) { + return; + } + this.pause = Boolean(this._containerBlurred && this._appBlurred); + + // Focus on the content window when blurring the app + // but selecting the container + if (this._keepFocus && !this._containerBlurred && this._appBlurred) { + this.focusApp(); + } + }.bind(this), 100); + } + + /** + * Handle the keep focus event for the window + * @method onKeepFocus + * @memberof PausePlugin + * @private + */ + }, { + key: "onKeepFocus", + value: function onKeepFocus($event) { + this._keepFocus = !!$event.data; + this.manageFocus(); + } + + /** + * Handle focus events sent from iFrame children + * @method onFocus + * @memberof PausePlugin + * @private + */ + }, { + key: "onFocus", + value: function onFocus($event) { + this._appBlurred = !$event.data; + this.manageFocus(); + } + + /** + * Handle focus events sent from container's window + * @method onContainerFocus + * @memberof PausePlugin + * @private + */ + }, { + key: "onContainerFocus", + value: function onContainerFocus() { + this._containerBlurred = false; + this.manageFocus(); + } + + /** + * Handle blur events sent from container's window + * @method onContainerBlur + * @memberof PausePlugin + * @private + */ + }, { + key: "onContainerBlur", + value: function onContainerBlur() { + //Set both container and application to blurred, + //because some blur events are only happening on the container. + //If container is blurred because application area was just focused, + //the application's focus event will override the blur imminently. + this._containerBlurred = this._appBlurred = true; + this.manageFocus(); + } + + /** + * @memberof PausePlugin + */ + }, { + key: "onPauseToggle", + value: function onPauseToggle() { + this._isManualPause = !this._isManualPause; + this.pause = !this.pause; + } + + /** + * @param {Container} container + * @memberof PausePlugin + */ + }, { + key: "init", + value: function init(_ref) { + var iframe = _ref.iframe; + this.iframe = iframe; + this.client.on('features', function (features) { + if (features.disablePause) { + this.pauseDisabled = true; + } + for (var i = 0, l = this._pauseButton.length; i < l; i++) { + this._pauseButton[i].displayButton(features.data); + } + }.bind(this)); + this.client.on('focus', this.onFocus); + this.client.on('keepFocus', this.onKeepFocus); + this.pause = this._paused; + } + + /** + * Function to check if we have a dom with a contentWindow + * @readonly + * @returns {boolean} + * @memberof PausePlugin + */ + }, { + key: "hasDom", + get: function get() { + return Boolean(null !== this.iframe && this.iframe.contentWindow); + } + + /** + * @readonly + * @memberof PausePlugin + * @returns {HTMLButtonElement[]} + */ + }, { + key: "pauseButton", + get: function get() { + var buttons = []; + for (var i = 0, l = this._pauseButton.length; i < l; i++) { + buttons.push(this._pauseButton[i].button); + } + return buttons; + } + + /** + * @readonly + * @static + * @memberof PausePlugin + * @returns {string} + */ + }], [{ + key: "pauseKey", + get: function get() { + return 'pause'; + } + }]); + return PausePlugin; + }(ButtonPlugin); + + /** + * @export + * @class SoundPlugin + * @extends {ButtonPlugin} + * + */ + var SoundPlugin = /*#__PURE__*/function (_ButtonPlugin) { + _inherits(SoundPlugin, _ButtonPlugin); + var _super = _createSuper(SoundPlugin); + /** + * Creates an instance of SoundPlugin. + * @param {string | HTMLElement} [soundButtons] selector string or HTML Element for the input(s) + * @param {string | HTMLElement} [musicButtons] selector string or HTML Element for the input(s) + * @param {string | HTMLElement} [voButtons] selector string or HTML Element for the input(s) + * @param {string | HTMLElement} [sfxButtons] selector string or HTML Element for the input(s) + * @param {string | HTMLElement} [soundSliders] selector string or HTML Element for the input(s) + * @param {string | HTMLElement} [musicSliders] selector string or HTML Element for the input(s) + * @param {string | HTMLElement} [sfxSliders] selector string or HTML Element for the input(s) + * @param {string | HTMLElement} [voSliders] selector string or HTML Element for the input(s) + * @memberof SoundPlugin + */ + function SoundPlugin() { + var _this; + var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, + soundButtons = _ref.soundButtons, + musicButtons = _ref.musicButtons, + sfxButtons = _ref.sfxButtons, + voButtons = _ref.voButtons, + soundSliders = _ref.soundSliders, + musicSliders = _ref.musicSliders, + sfxSliders = _ref.sfxSliders, + voSliders = _ref.voSliders; + _classCallCheck(this, SoundPlugin); + _this = _super.call(this, 'Sound-Button-Plugin'); + var saved = SavedData.read(SoundPlugin.soundMutedKey); + _this.sendAllProperties = _this.sendAllProperties.bind(_assertThisInitialized(_this)); + _this._soundMuted = saved ? saved : false; + _this._musicMuted = false; + _this._voMuted = false; + _this._sfxMuted = false; + _this.soundVolume = 1; + _this.musicVolume = 1; + _this.sfxVolume = 1; + _this.voVolume = 1; + _this.soundSliders = []; + _this.musicSliders = []; + _this.sfxSliders = []; + _this.voSliders = []; + _this.soundButtons = []; + _this.musicButtons = []; + _this.sfxButtons = []; + _this.voButtons = []; + if (soundSliders instanceof HTMLElement) { + _this.soundSliders[0] = new Slider({ + slider: soundSliders, + control: SoundPlugin.soundVolumeKey, + defaultValue: _this.soundVolume + }); + } else { + document.querySelectorAll(soundSliders).forEach(function (slider) { + var newSlider = new Slider({ + slider: slider, + control: SoundPlugin.soundVolumeKey, + defaultValue: _this.soundVolume + }); + if (newSlider.slider) { + _this.soundSliders.push(newSlider); + } + }); + } + if (musicSliders instanceof HTMLElement) { + _this.musicSliders[0] = new Slider({ + slider: musicSliders, + control: SoundPlugin.musicVolumeKey, + defaultValue: _this.musicVolume + }); + } else { + document.querySelectorAll(musicSliders).forEach(function (slider) { + var newSlider = new Slider({ + slider: slider, + control: SoundPlugin.musicVolumeKey, + defaultValue: _this.musicVolume + }); + if (newSlider.slider) { + _this.musicSliders.push(newSlider); + } + }); + } + if (sfxSliders instanceof HTMLElement) { + _this.sfxSliders[0] = new Slider({ + slider: sfxSliders, + control: SoundPlugin.sfxVolumeKey, + defaultValue: _this.sfxVolume + }); + } else { + document.querySelectorAll(sfxSliders).forEach(function (slider) { + var newSlider = new Slider({ + slider: slider, + control: SoundPlugin.sfxVolumeKey, + defaultValue: _this.sfxVolume + }); + if (newSlider.slider) { + _this.sfxSliders.push(newSlider); + } + }); + } + if (voSliders instanceof HTMLElement) { + _this.voSliders[0] = new Slider({ + slider: voSliders, + control: SoundPlugin.voVolumeKey, + defaultValue: _this.voVolume + }); + } else { + document.querySelectorAll(voSliders).forEach(function (slider) { + var newSlider = new Slider({ + slider: slider, + control: SoundPlugin.voVolumeKey, + defaultValue: _this.voVolume + }); + if (newSlider.slider) { + _this.voSliders.push(newSlider); + } + }); + } + if (soundButtons instanceof HTMLElement) { + _this.soundButtons[0] = new Button({ + button: soundButtons, + onClick: _this.onSoundToggle.bind(_assertThisInitialized(_this)), + channel: SoundPlugin.soundKey + }); + } else { + document.querySelectorAll(soundButtons).forEach(function (button) { + _this.soundButtons.push(new Button({ + button: button, + onClick: _this.onSoundToggle.bind(_assertThisInitialized(_this)), + channel: SoundPlugin.soundKey + })); + }); + } + if (musicButtons instanceof HTMLElement) { + _this.musicButtons[0] = new Button({ + button: musicButtons, + onClick: _this.onMusicToggle.bind(_assertThisInitialized(_this)), + channel: 'music' + }); + } else { + document.querySelectorAll(musicButtons).forEach(function (button) { + _this.musicButtons.push(new Button({ + button: button, + onClick: _this.onMusicToggle.bind(_assertThisInitialized(_this)), + channel: 'music' + })); + }); + } + if (sfxButtons instanceof HTMLElement) { + _this.sfxButtons[0] = new Button({ + button: sfxButtons, + onClick: _this.onSFXToggle.bind(_assertThisInitialized(_this)), + channel: 'sfx' + }); + } else { + document.querySelectorAll(sfxButtons).forEach(function (button) { + _this.sfxButtons.push(new Button({ + button: button, + onClick: _this.onSFXToggle.bind(_assertThisInitialized(_this)), + channel: 'sfx' + })); + }); + } + if (voButtons instanceof HTMLElement) { + _this.voButtons[0] = new Button({ + button: voButtons, + onClick: _this.onVOToggle.bind(_assertThisInitialized(_this)), + channel: 'vo' + }); + } else { + document.querySelectorAll(voButtons).forEach(function (button) { + _this.voButtons.push(new Button({ + button: button, + onClick: _this.onVOToggle.bind(_assertThisInitialized(_this)), + channel: 'vo' + })); + }); + } + _this.soundSlidersLength = _this.soundSliders.length; + _this.musicSlidersLength = _this.musicSliders.length; + _this.sfxSlidersLength = _this.sfxSliders.length; + _this.voSlidersLength = _this.voSliders.length; + _this.soundButtonsLength = _this.soundButtons.length; + _this.musicButtonsLength = _this.musicButtons.length; + _this.sfxButtonsLength = _this.sfxButtons.length; + _this.voButtonsLength = _this.voButtons.length; + if (0 >= _this.soundSlidersLength + _this.musicSlidersLength + _this.sfxSlidersLength + _this.voSlidersLength + _this.soundButtonsLength + _this.musicButtonsLength + _this.sfxButtonsLength + _this.voButtonsLength) { + _this.warn('Plugin was not provided any valid HTML Elements'); + return _possibleConstructorReturn(_this); + } + for (var i = 0; i < _this.soundSlidersLength; i++) { + _this.soundSliders[i].enableSliderEvents(_this.onSoundVolumeChange.bind(_assertThisInitialized(_this))); + } + for (var _i = 0; _i < _this.musicSlidersLength; _i++) { + _this.musicSliders[_i].enableSliderEvents(_this.onMusicVolumeChange.bind(_assertThisInitialized(_this))); + } + for (var _i2 = 0; _i2 < _this.sfxSlidersLength; _i2++) { + _this.sfxSliders[_i2].enableSliderEvents(_this.onSFXVolumeChange.bind(_assertThisInitialized(_this))); + } + for (var _i3 = 0; _i3 < _this.voSlidersLength; _i3++) { + _this.voSliders[_i3].enableSliderEvents(_this.onVOVolumeChange.bind(_assertThisInitialized(_this))); + } + if (_this.soundSliders[0] && _this.soundSliders[0].slider) { + _this.soundVolume = _this.soundSliders[0].value; + } + if (_this.musicSliders[0] && _this.musicSliders[0].slider) { + _this.musicVolume = _this.musicSliders[0].value; + } + if (_this.sfxSliders[0] && _this.sfxSliders[0].slider) { + _this.sfxVolume = _this.sfxSliders[0].value; + } + if (_this.voSliders[0] && _this.voSliders[0].slider) { + _this.voVolume = _this.voSliders[0].value; + } + return _this; + } + + /** + * @memberof SoundPlugin + * @param {Event} e + */ + _createClass(SoundPlugin, [{ + key: "onSoundVolumeChange", + value: function onSoundVolumeChange(e) { + this.soundVolume = this.soundSliders[0].sliderRange(Number(e.target.value)); + this.soundMuted = !this.soundVolume; + this._checkSoundMute(); + this.sendProperty(SoundPlugin.soundVolumeKey, this.soundVolume); + for (var i = 0; i < this.soundSlidersLength; i++) { + this.soundSliders[i].value = this.soundVolume; + } + } + + /** + * @memberof SoundPlugin + * @param {Event} e + */ + }, { + key: "onMusicVolumeChange", + value: function onMusicVolumeChange(e) { + this.musicVolume = this.musicSliders[0].sliderRange(Number(e.target.value)); + this.musicMuted = !this.musicVolume; + this._checkSoundMute(); + this.sendProperty(SoundPlugin.musicVolumeKey, this.musicVolume); + for (var i = 0; i < this.musicSlidersLength; i++) { + this.musicSliders[i].value = this.musicVolume; + } + } + + /** + * @memberof SoundPlugin + * @param {Event} e + */ + }, { + key: "onVOVolumeChange", + value: function onVOVolumeChange(e) { + this.voVolume = this.voSliders[0].sliderRange(Number(e.target.value)); + this.voMuted = !this.voVolume; + this._checkSoundMute(); + this.sendProperty(SoundPlugin.voVolumeKey, this.voVolume); + for (var i = 0; i < this.voSlidersLength; i++) { + this.voSliders[i].value = this.voVolume; + } + } + + /** + * @memberof SoundPlugin + * @param {Event} e + */ + }, { + key: "onSFXVolumeChange", + value: function onSFXVolumeChange(e) { + this.sfxVolume = this.sfxSliders[0].sliderRange(Number(e.target.value)); + this.sfxMuted = !this.sfxVolume; + this._checkSoundMute(); + this.sendProperty(SoundPlugin.sfxVolumeKey, this.sfxVolume); + for (var i = 0; i < this.sfxSlidersLength; i++) { + this.sfxSliders[i].value = this.sfxVolume; + } + } + + /** + * @memberof SoundPlugin + */ + }, { + key: "onSoundToggle", + value: function onSoundToggle() { + var muted = !this.soundMuted; + this.soundMuted = muted; + this.musicMuted = muted; + this.voMuted = muted; + this.sfxMuted = muted; + } + + /** + * @memberof SoundPlugin + */ + }, { + key: "onMusicToggle", + value: function onMusicToggle() { + this.musicMuted = !this.musicMuted; + this._checkSoundMute(); + } + + /** + * @memberof SoundPlugin + */ + }, { + key: "onVOToggle", + value: function onVOToggle() { + this.voMuted = !this.voMuted; + this._checkSoundMute(); + } + + /** + * @memberof SoundPlugin + */ + }, { + key: "onSFXToggle", + value: function onSFXToggle() { + this.sfxMuted = !this.sfxMuted; + this._checkSoundMute(); + } + + /** + * @memberof SoundPlugin + */ + }, { + key: "_checkSoundMute", + value: function _checkSoundMute() { + this.soundMuted = this.sfxMuted && this.voMuted && this.musicMuted; + } + + /** + * @param {string} key + * @param {*} value + * @param {Element} element + * @memberof SoundPlugin + */ + }, { + key: "setMuteProp", + value: function setMuteProp(key, value, element) { + this['_' + key] = value; + this._setMuteProp(key, element, value); + } + + /** + * @memberof SoundPlugin + */ + }, { + key: "init", + value: function init() { + this.client.on('features', function (features) { + if (!features.data) { + return; + } + for (var i = 0; i < this.soundButtonsLength; i++) { + this.soundButtons[i].displayButton(features.data); + } + for (var _i4 = 0; _i4 < this.musicButtonsLength; _i4++) { + this.musicButtons[_i4].displayButton(features.data); + } + for (var _i5 = 0; _i5 < this.sfxButtonsLength; _i5++) { + this.sfxButtons[_i5].displayButton(features.data); + } + for (var _i6 = 0; _i6 < this.voButtonsLength; _i6++) { + this.voButtons[_i6].displayButton(features.data); + } + for (var _i7 = 0; _i7 < this.soundSlidersLength; _i7++) { + this.soundSliders[_i7].displaySlider(features.data); + } + for (var _i8 = 0; _i8 < this.musicSlidersLength; _i8++) { + this.musicSliders[_i8].displaySlider(features.data); + } + for (var _i9 = 0; _i9 < this.sfxSlidersLength; _i9++) { + this.sfxSliders[_i9].displaySlider(features.data); + } + for (var _i10 = 0; _i10 < this.voSlidersLength; _i10++) { + this.voSliders[_i10].displaySlider(features.data); + } + }.bind(this)); + } + + /** + * @memberof SoundPlugin + */ + }, { + key: "start", + value: function start() { + for (var i = 0; i < this.soundButtonsLength; i++) { + this.soundButtons[i].enableButton(); + } + for (var _i11 = 0; _i11 < this.musicButtonsLength; _i11++) { + this.musicButtons[_i11].enableButton(); + } + for (var _i12 = 0; _i12 < this.sfxButtonsLength; _i12++) { + this.sfxButtons[_i12].enableButton(); + } + for (var _i13 = 0; _i13 < this.voButtonsLength; _i13++) { + this.voButtons[_i13].enableButton(); + } + this.soundMuted = !!SavedData.read(SoundPlugin.soundMutedKey); + this.musicMuted = !!SavedData.read(SoundPlugin.musicMutedKey); + this.sfxMuted = !!SavedData.read(SoundPlugin.sfxMutedKey); + this.voMuted = !!SavedData.read(SoundPlugin.voMutedKey); + this.client.on('loaded', this.sendAllProperties); + this.client.on('loadDone', this.sendAllProperties); + } + + /** + * + * Saves the current state of all volume properties, and then sends them to the game + * @memberof SoundPlugin + */ + }, { + key: "sendAllProperties", + value: function sendAllProperties() { + this.sendProperty(SoundPlugin.soundVolumeKey, this.soundVolume); + this.sendProperty(SoundPlugin.musicVolumeKey, this.musicVolume); + this.sendProperty(SoundPlugin.voVolumeKey, this.voVolume); + this.sendProperty(SoundPlugin.sfxVolumeKey, this.sfxVolume); + this.sendProperty(SoundPlugin.voMutedKey, this.voMuted); + this.sendProperty(SoundPlugin.soundMutedKey, this.soundMuted); + this.sendProperty(SoundPlugin.musicMutedKey, this.musicMuted); + this.sendProperty(SoundPlugin.sfxMutedKey, this.sfxMuted); + } + + /** + * @memberof SoundPlugin + * @param {boolean} muted + */ + }, { + key: "soundMuted", + get: + /** + * @memberof SoundPlugin + */ + function get() { + return this._soundMuted; + } + + /** + * @memberof SoundPlugin + * @param {boolean} muted + */, + set: function set(muted) { + this.setMuteProp('soundMuted', muted, this.soundButtons); + } + }, { + key: "voMuted", + get: + /** + * @memberof SoundPlugin + */ + function get() { + return this._voMuted; + } + + /** + * @memberof SoundPlugin + * @param {boolean} muted + */, + set: function set(muted) { + this.setMuteProp('voMuted', muted, this.voButtons); + } + }, { + key: "musicMuted", + get: + /** + * @memberof SoundPlugin + */ + function get() { + return this._musicMuted; + } + + /** + * @memberof SoundPlugin + * @param {boolean} muted + */, + set: function set(muted) { + this.setMuteProp('musicMuted', muted, this.musicButtons); + } + }, { + key: "sfxMuted", + get: + /** + * @memberof SoundPlugin + */ + function get() { + return this._sfxMuted; + } + + /** + * @readonly + * @static + * @memberof SoundPlugin + */, + set: function set(muted) { + this.setMuteProp('sfxMuted', muted, this.sfxButtons); + } + }, { + key: "soundButton", + get: + /** + * @readonly + * @memberof SoundPlugin + */ + function get() { + return this._soundButton.button; + } + + /** + * @readonly + * @memberof SoundPlugin + */ + }, { + key: "musicButton", + get: function get() { + return this._musicButton.button; + } + /** + * @readonly + * @memberof SoundPlugin + */ + }, { + key: "sfxButton", + get: function get() { + return this._sfxButton.button; + } + /** + * @readonly + * @memberof SoundPlugin + */ + }, { + key: "voButton", + get: function get() { + return this._voButton.button; + } + + /** + * @readonly + * @static + * @memberof SpeedScalePlugin + * @return {string} + */ + }], [{ + key: "soundMutedKey", + get: function get() { + return 'soundMuted'; + } + + /** + * @readonly + * @static + * @memberof SoundPlugin + */ + }, { + key: "voMutedKey", + get: function get() { + return 'voMuted'; + } + + /** + * @readonly + * @static + * @memberof SoundPlugin + */ + }, { + key: "musicMutedKey", + get: function get() { + return 'musicMuted'; + } + + /** + * @readonly + * @static + * @memberof SoundPlugin + */ + }, { + key: "sfxMutedKey", + get: function get() { + return 'sfxMuted'; + } + + /** + * @readonly + * @static + * @memberof SoundPlugin + */ + }, { + key: "soundVolumeKey", + get: function get() { + return 'soundVolume'; + } + + /** + * @readonly + * @static + * @memberof SoundPlugin + */ + }, { + key: "sfxVolumeKey", + get: function get() { + return 'sfxVolume'; + } + + /** + * @readonly + * @static + * @memberof SoundPlugin + */ + }, { + key: "voVolumeKey", + get: function get() { + return 'voVolume'; + } + + /** + * @readonly + * @static + * @memberof SoundPlugin + */ + }, { + key: "musicVolumeKey", + get: function get() { + return 'musicVolume'; + } + }, { + key: "soundKey", + get: function get() { + return 'sound'; + } + }]); + return SoundPlugin; + }(ButtonPlugin); + + /** + * Default user data handler for the {{#crossLink "springroll.Container"}}Container{{/crossLink}} to save data using + * the {{#crossLink "springroll.SavedData"}}SavedData{{/crossLink}} class. + * @class SavedDataHandler + */ + var SavedDataHandler = /*#__PURE__*/function () { + /** + * + */ + function SavedDataHandler() { + _classCallCheck(this, SavedDataHandler); + this.dbName; + this.savedData; + } + + /** + * Remove a data setting + * @method remove + * @static + * @param {String} name The name of the property + * @param {Function} [callback] Callback when remove is complete + */ + _createClass(SavedDataHandler, [{ + key: "IDBOpen", + value: + // ---------------------------------------------------------------- + // IndexedDB Manipulation + // ---------------------------------------------------------------- + + /** + * Open a connection with the database + * @param {string} dbName The name of your IndexedDB database + * @param {string} dbVersion The version number of the database + * @param {JSON} additions Any additions to the structure of the database + * @param {array} additions.stores Any stores to be added into the database syntax: + * {storeName: '[name]', options: {[optionally add options]}} + * @param {array} additions.indexes Any Indexes to be added to the database syntax: + * {storeName: '[name]', options: {[optionally add options]}} + */ + function IDBOpen(dbName) { + var dbVersion = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; + var additions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; + var deletions = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; + var callback = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null; + // persisting the savedData object to keep the connection open + this.savedData = new SavedData(); + this.savedData.IDBOpen(dbName, dbVersion, additions, deletions, callback); + } + + /** + * Add a record to a given store + * @param {string} storeName The name of the store from which the record will be updated + * @param {string} key the key of the record to be updated + * @param {*} value The value for the record with the given key to be updated + * @param {function} callback The method to call on success or failure. A single value will be passed in + */ + }, { + key: "IDBAdd", + value: function IDBAdd(storeName, record, key, callback) { + this.savedData.IDBAdd(storeName, record, key, callback); + } + + /** + * Update a record from a given store + * @param {string} storeName The name of the store from which the record will be updated + * @param {string} key the key of the record to be updated + * @param {*} value The value for the record with the given key to be updated + * @param {function} callback The method to call on success or failure. A single value will be passed in + */ + }, { + key: "IDBUpdate", + value: function IDBUpdate(storeName, key, value, callback) { + this.savedData.IDBUpdate(storeName, key, value, callback); + } + + /** + * Remove a record from a store + * @param {*} storeName The name of the store from which the record will be removed + * @param {*} key the key of the record to be removed + * @param {function} callback The method to call on success or failure. A single value will be passed in + */ + }, { + key: "IDBRemove", + value: function IDBRemove(storeName, key, callback) { + this.savedData.IDBRemove(storeName, key, callback); + } + + /** + * Return a record from a given store with a given key + * @param {string} storeName The name of the store to read from + * @param {string} key The key for the record in the given store + * @param {function} callback The method to call on success or failure. A single value will be passed in + */ + }, { + key: "IDBRead", + value: function IDBRead(storeName, key, callback) { + this.savedData.IDBRead(storeName, key, callback); + } + + /** + * Get all records from a store + * @param {string} storeName The store to get all records from + * @param {integer} count Optionally the count of records to return + * @param {function} callback The method to call on success or failure. A single value will be passed in + */ + }, { + key: "IDBReadAll", + value: function IDBReadAll(storeName, count, callback) { + this.savedData.IDBReadAll(storeName, count, callback); + } + + /** + * Get the version of a given database + * @param {string} dbName The name of the database to return the version of + * @param {function} callback The method to call on success or failure. A single value will be passed in + */ + }, { + key: "IDBGetVersion", + value: function IDBGetVersion(dbName, callback) { + var sd = new SavedData(dbName); + sd.IDBGetVersion(dbName, callback); + } + + /** + * Closes the connection to the database + * @param {function} callback The method to call on success or failure. A single value will be passed in + */ + }, { + key: "IDBClose", + value: function IDBClose(callback) { + this.savedData.IDBClose(callback); + } + /** + * Closes the connection to the database + * @param {function} callback The method to call on success or failure. A single value will be passed in + */ + }, { + key: "IDBDeleteDB", + value: function IDBDeleteDB(dbName, options, callback) { + var sd = new SavedData(dbName); + sd.IDBDeleteDB(dbName, options, callback); + } + }], [{ + key: "remove", + value: function remove(name, callback) { + SavedData.remove(name); + callback(); + } + + /** + * Write a custom setting + * @method write + * @static + * @param {String} name The name of the property + * @param {*} value The value to set the property to + * @param {Function} [callback] Callback when write is complete + */ + }, { + key: "write", + value: function write(name, value, callback) { + SavedData.write(name, value); + callback(); + } + + /** + * Read a custom setting + * @method read + * @static + * @param {String} name The name of the property + * @param {Function} callback Callback when read is complete, returns the value + */ + }, { + key: "read", + value: function read(name, callback) { + callback(SavedData.read(name)); + } + }]); + return SavedDataHandler; + }(); + + /** + * @export + * @class UserDataPlugin + * @extends {BasePlugin} + * @property {SavedDataHandler} SavedDataHandler The handler to work with the savedData class + */ + var UserDataPlugin = /*#__PURE__*/function (_BasePlugin) { + _inherits(UserDataPlugin, _BasePlugin); + var _super = _createSuper(UserDataPlugin); + /** + * Creates an instance of UserDataPlugin. + * @memberof UserDataPlugin + */ + function UserDataPlugin() { + var _this; + _classCallCheck(this, UserDataPlugin); + _this = _super.call(this, 'UserData-Plugin'); + _this.onUserDataRemove = _this.onUserDataRemove.bind(_assertThisInitialized(_this)); + _this.onUserDataRead = _this.onUserDataRead.bind(_assertThisInitialized(_this)); + _this.onUserDataWrite = _this.onUserDataWrite.bind(_assertThisInitialized(_this)); + _this.onIDBAdd = _this.onIDBAdd.bind(_assertThisInitialized(_this)); + _this.onIDBOpen = _this.onIDBOpen.bind(_assertThisInitialized(_this)); + _this.onIDBRead = _this.onIDBRead.bind(_assertThisInitialized(_this)); + _this.onIDBReadAll = _this.onIDBReadAll.bind(_assertThisInitialized(_this)); + _this.onIDBRemove = _this.onIDBRemove.bind(_assertThisInitialized(_this)); + _this.onIDBUpdate = _this.onIDBUpdate.bind(_assertThisInitialized(_this)); + _this.onIDBUpdate = _this.onIDBUpdate.bind(_assertThisInitialized(_this)); + _this.onIDBClose = _this.onIDBClose.bind(_assertThisInitialized(_this)); + _this.IDBReadAll = _this.onIDBReadAll.bind(_assertThisInitialized(_this)); + _this.onIDBGetVersion = _this.onIDBGetVersion.bind(_assertThisInitialized(_this)); + _this.onIDBDeleteDB = _this.onIDBDeleteDB.bind(_assertThisInitialized(_this)); + _this.savedDataHandler = null; + return _this; + } + + /** + * + * @memberof UserDataPlugin + */ + _createClass(UserDataPlugin, [{ + key: "init", + value: function init() { + this.client.on('userDataRemove', this.onUserDataRemove); + this.client.on('userDataRead', this.onUserDataRead); + this.client.on('userDataWrite', this.onUserDataWrite); + this.client.on('IDBOpen', this.onIDBOpen); + this.client.on('IDBRead', this.onIDBRead); + this.client.on('IDBReadAll', this.onIDBReadAll); + this.client.on('IDBAdd', this.onIDBAdd); + this.client.on('IDBRemove', this.onIDBRemove); + this.client.on('IDBUpdate', this.onIDBUpdate); + this.client.on('IDBClose', this.onIDBClose); + this.client.on('IDBGetVersion', this.onIDBGetVersion); + this.client.on('IDBDeleteDB', this.onIDBDeleteDB); + } + + /** + * Handler for the userDataRemove event + * @method onUserDataRemove + * @private + * @param {string} data The name of the record to be removed + * @param {string} type The type of listener for bellhop to send to + */ + }, { + key: "onUserDataRemove", + value: function onUserDataRemove(_ref) { + var _this2 = this; + var data = _ref.data, + type = _ref.type; + SavedDataHandler.remove(data, function () { + _this2.client.send(type); + }); + } + + /** + * Handler for the userDataRead event + * @method onUserDataRead + * @private + * @param {string} data The name of the record to be removed + * @param {string} type The type of listener for bellhop to send to + */ + }, { + key: "onUserDataRead", + value: function onUserDataRead(_ref2) { + var _this3 = this; + var data = _ref2.data, + type = _ref2.type; + SavedDataHandler.read(data, function (value) { + return _this3.client.send(type, value); + }); + } + + /** + * Handler for the userDataWrite event + * @method onUserDataWrite + * @private + * @param {string} type The type of listener for bellhop to send to + * @param {string} data.name The name for the record. This is what is used to read or remove the record + * @param {object | string} data.value The data object with the data and value for the record + */ + }, { + key: "onUserDataWrite", + value: function onUserDataWrite(_ref3) { + var _this4 = this; + var type = _ref3.type, + _ref3$data = _ref3.data, + name = _ref3$data.name, + value = _ref3$data.value; + SavedDataHandler.write(name, value, function () { + return _this4.client.send(type); + }); + } + + // ---------------------------------------------------------------- + // IndexedDB Manipulation + // ---------------------------------------------------------------- + + /** + * Open a connection with the IDB Database and optionally add or delete + * Indexes and stores + * @param {string} dbName The name of your IndexedDB database + * @param {string} [dbVersion] The version number of the database + * @param {JSON} [additions] Any additions to the structure of the database + * @param {array} [additions.stores] Any stores to be added into the database syntax: + * @param {string} [additions.stores.storeName] The name of the store + * @param {object} [additions.stores.options] Optionally, the option parameter for the createStore method + * @param {array} [additions.indexes] Any Indexes to be added to the database syntax: + * @param {string} [additions.indexes.storeName] The name of the store + * @param {object} [additions.indexes.options] Optionally, the option parameter for the createIndex method + * @param {string} type The type of listener for bellhop to send to + */ + }, { + key: "onIDBOpen", + value: function onIDBOpen(_ref4) { + var _this5 = this; + var type = _ref4.type, + _ref4$data = _ref4.data, + dbName = _ref4$data.dbName, + _ref4$data$dbVersion = _ref4$data.dbVersion, + dbVersion = _ref4$data$dbVersion === void 0 ? null : _ref4$data$dbVersion, + _ref4$data$additions = _ref4$data.additions, + additions = _ref4$data$additions === void 0 ? {} : _ref4$data$additions, + _ref4$data$deletions = _ref4$data.deletions, + deletions = _ref4$data$deletions === void 0 ? {} : _ref4$data$deletions; + // Keep an instance open to use on open + this.savedDataHandler = new SavedDataHandler(); + this.savedDataHandler.IDBOpen(dbName, dbVersion, additions, deletions, function (value) { + return _this5.client.send(type, value); + }); + } + + /** + * Add a record to a given store + * @param {string} type The type of listener for bellhop to send to + * @param {string} storeName The name of the store from which the record will be updated + * @param {*} value The value for the record with the given key to be updated + * @param {string} key the key of the record to be updated + */ + }, { + key: "onIDBAdd", + value: function onIDBAdd(_ref5) { + var _this6 = this; + var type = _ref5.type, + _ref5$data = _ref5.data, + storeName = _ref5$data.storeName, + value = _ref5$data.value, + key = _ref5$data.key; + this.savedDataHandler.IDBAdd(storeName, value, key, function (value) { + return _this6.client.send(type, value); + }); + } + + /** + * Update a record from a given store + * @param {string} type The type of listener for bellhop to send to + * @param {string} storeName The name of the store with the record to update + * @param {string} key The key of the record to be updated + * @param {*} value The record value + */ + }, { + key: "onIDBUpdate", + value: function onIDBUpdate(_ref6) { + var _this7 = this; + var type = _ref6.type, + _ref6$data = _ref6.data, + storeName = _ref6$data.storeName, + key = _ref6$data.key, + value = _ref6$data.value; + this.savedDataHandler.IDBUpdate(storeName, key, value, function (value) { + return _this7.client.send(type, value); + }); + } + + /** + * Remove a record from a store + * @param {string} type The type of listener for bellhop to send to + * @param {string} storeName The name of the store from which the record will be removed + * @param {*} key the key of the record to be removed + */ + }, { + key: "onIDBRemove", + value: function onIDBRemove(_ref7) { + var _this8 = this; + var type = _ref7.type, + _ref7$data = _ref7.data, + storeName = _ref7$data.storeName, + key = _ref7$data.key; + this.savedDataHandler.IDBRemove(storeName, key, function (value) { + return _this8.client.send(type, value); + }); + } + + /** + * Return a record from a given store with a given key + * @param {string} storeName The name of the store to read from + * @param {string} key The key for the record in the given store + * @param {string} type The type of listener for bellhop to send to + */ + }, { + key: "onIDBRead", + value: function onIDBRead(_ref8) { + var _this9 = this; + var type = _ref8.type, + _ref8$data = _ref8.data, + storeName = _ref8$data.storeName, + key = _ref8$data.key; + this.savedDataHandler.IDBRead(storeName, key, function (value) { + return _this9.client.send(type, value); + }); + } + + /** + * Get all records from a store + * @param {string} storeName The store to get all records from + * @param {integer} count Optionally the number of records to return + * @param {string} type The type of listener for bellhop to send to + */ + }, { + key: "onIDBReadAll", + value: function onIDBReadAll(_ref9) { + var _this10 = this; + var type = _ref9.type, + _ref9$data = _ref9.data, + storeName = _ref9$data.storeName, + count = _ref9$data.count; + this.savedDataHandler.IDBReadAll(storeName, count, function (value) { + return _this10.client.send(type, value); + }); + } + + /** + * Get the version of a given database + * @param {string} dbName The name of the database to return the version of + * @param {string} type The type of listener for bellhop to send to + */ + }, { + key: "onIDBGetVersion", + value: function onIDBGetVersion(_ref10) { + var _this11 = this; + var type = _ref10.type, + dbName = _ref10.data.dbName; + // Create a new instance of savedDataHandler to avoid mutating the current instance + var sdh = new SavedDataHandler(); + sdh.IDBGetVersion(dbName, function (value) { + return _this11.client.send(type, value); + }); + } + + /** + * Close the connection with the database + * @param {string} type The type of listener for bellhop to send to + */ + }, { + key: "onIDBClose", + value: function onIDBClose(_ref11) { + var _this12 = this; + var type = _ref11.type; + this.savedDataHandler.IDBClose(function (value) { + return _this12.client.send(type, value); + }); + } + /** + * Close the connection with the database + * @param type - The type of request being sent + */ + }, { + key: "onIDBDeleteDB", + value: function onIDBDeleteDB(_ref12) { + var _this13 = this; + var type = _ref12.type, + _ref12$data = _ref12.data, + dbName = _ref12$data.dbName, + options = _ref12$data.options; + var sdh = new SavedDataHandler(); + sdh.IDBDeleteDB(dbName, options, function (value) { + return _this13.client.send(type, value); + }); + } + }]); + return UserDataPlugin; + }(BasePlugin); + + /** + * @export + * @class PointerSizePlugin + * @extends {SliderPlugin} + * @property {object[]} sliders an array of all slider objects attached to PointerSizePlugin + * @extends SliderPlugin + */ + var PointerSizePlugin = /*#__PURE__*/function (_SliderPlugin) { + _inherits(PointerSizePlugin, _SliderPlugin); + var _super = _createSuper(PointerSizePlugin); + /** + * Creates an instance of PointerSizePlugin. + * @param {string | HTMLElement} [pointerSliders] selector string or HTML Element for the input(s) + * @param {number} [defaultPointerSize=0.5] The default value for the pointer size slider + * @memberof PointerSizePlugin + */ + function PointerSizePlugin(pointerSliders) { + var _this; + var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, + _ref$defaultPointerSi = _ref.defaultPointerSize, + defaultPointerSize = _ref$defaultPointerSi === void 0 ? 0.5 : _ref$defaultPointerSi; + _classCallCheck(this, PointerSizePlugin); + _this = _super.call(this, pointerSliders, 'UISize-Pointer-Plugin', { + defaultValue: defaultPointerSize, + featureName: PointerSizePlugin.pointerSizeKey + }); + for (var i = 0; i < _this.slidersLength; i++) { + _this.sliders[i].enableSliderEvents(_this.onPointerSizeChange.bind(_assertThisInitialized(_this))); + } + return _this; + } + + /** + * @memberof PointerSizePlugin + * @param {Event} e + */ + _createClass(PointerSizePlugin, [{ + key: "onPointerSizeChange", + value: function onPointerSizeChange(e) { + this.currentValue = e.target.value; + this.sendProperty(PointerSizePlugin.pointerSizeKey, this.currentValue); + } + + /** + * @readonly + * @static + * @memberof PointerSizePlugin + * @return {string} + */ + }], [{ + key: "pointerSizeKey", + get: function get() { + return 'pointerSize'; + } + }]); + return PointerSizePlugin; + }(SliderPlugin); + + /** + * @export + * @class ButtonSizePlugin + * @property {object[]} sliders An array of slider objects given to ButtonSizePlugin + * @property {number} currentValue The current button size value + * @extends {SliderPlugin} + */ + var ButtonSizePlugin = /*#__PURE__*/function (_SliderPlugin) { + _inherits(ButtonSizePlugin, _SliderPlugin); + var _super = _createSuper(ButtonSizePlugin); + /** + * Creates an instance of ButtonSizePlugin. + * @param {string | HTMLElement} buttonSliders selector string or html element(s) for the inputs + * @param {object} options + * @param {number} [options.defaultButtonSize=0.5] + * @memberof ButtonSizePlugin + */ + function ButtonSizePlugin(buttonSliders) { + var _this; + var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, + _ref$defaultButtonSiz = _ref.defaultButtonSize, + defaultButtonSize = _ref$defaultButtonSiz === void 0 ? 0.5 : _ref$defaultButtonSiz; + _classCallCheck(this, ButtonSizePlugin); + _this = _super.call(this, buttonSliders, 'UISize-Button-Plugin', { + defaultValue: defaultButtonSize, + featureName: ButtonSizePlugin.buttonSizeKey + }); + for (var i = 0; i < _this.slidersLength; i++) { + _this.sliders[i].enableSliderEvents(_this.onButtonSizeChange.bind(_assertThisInitialized(_this))); + } + return _this; + } + + /** + * @memberof ButtonSizePlugin + * @param {Event} e + */ + _createClass(ButtonSizePlugin, [{ + key: "onButtonSizeChange", + value: function onButtonSizeChange(e) { + this.currentValue = e.target.value; + this.sendProperty(ButtonSizePlugin.buttonSizeKey, this.currentValue); + } + + /** + * Get ButtonSize Key + * @readonly + * @static + * @memberof ButtonSizePlugin + * @returns {string} + */ + }], [{ + key: "buttonSizeKey", + get: function get() { + return 'buttonSize'; + } + }]); + return ButtonSizePlugin; + }(SliderPlugin); + + /** + * @export + * @class ControlSensitivityPlugin + * @property {object[]} sliders an array of all slider objects attached to ControlSensitivityPlugin + * @extends {SliderPlugin} + */ + var ControlSensitivityPlugin = /*#__PURE__*/function (_SliderPlugin) { + _inherits(ControlSensitivityPlugin, _SliderPlugin); + var _super = _createSuper(ControlSensitivityPlugin); + /** + * Creates an instance of ControlSensitivityPlugin. + * @param {string | HTMLElement} sensitivitySliders + * @param {number} [defaultSensitivity=0.5] + * @memberof ControlSensitivityPlugin + */ + function ControlSensitivityPlugin(sensitivitySliders) { + var _this; + var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, + _ref$defaultSensitivi = _ref.defaultSensitivity, + defaultSensitivity = _ref$defaultSensitivi === void 0 ? 0.5 : _ref$defaultSensitivi; + _classCallCheck(this, ControlSensitivityPlugin); + _this = _super.call(this, sensitivitySliders, 'Control-Sensitivity-Plugin', { + defaultValue: defaultSensitivity, + featureName: ControlSensitivityPlugin.controlSensitivityKey + }); + _this.sendAllProperties = _this.sendAllProperties.bind(_assertThisInitialized(_this)); + for (var i = 0; i < _this.slidersLength; i++) { + _this.sliders[i].enableSliderEvents(_this.onControlSensitivityChange.bind(_assertThisInitialized(_this))); + } + return _this; + } + + /** + * @memberof ControlSensitivityPlugin + * @param {Event} e + */ + _createClass(ControlSensitivityPlugin, [{ + key: "onControlSensitivityChange", + value: function onControlSensitivityChange(e) { + this.currentValue = e.target.value; + this.sendProperty(ControlSensitivityPlugin.controlSensitivityKey, this.currentValue); + } + + /** + * @readonly + * @static + * @memberof ControlSensitivityPlugin + * @returns {string} + */ + }], [{ + key: "controlSensitivityKey", + get: function get() { + return 'controlSensitivity'; + } + }]); + return ControlSensitivityPlugin; + }(SliderPlugin); + + /** + * @export + * @class KeyboardMapPlugin + * @extends {BasePlugin} + */ + var KeyboardMapPlugin = /*#__PURE__*/function (_BasePlugin) { + _inherits(KeyboardMapPlugin, _BasePlugin); + var _super = _createSuper(KeyboardMapPlugin); + /** + * Creates an instance of KeyboardMapPlugin. + * @param {string | HTMLElement} keyContainers div or similar container element that will contain the re-mappable keys + * @param {string} [customClassName='springrollContainerKeyBinding__button'] A custom class name that will be applied to the container element + * @memberof KeyboardMapPlugin + */ + function KeyboardMapPlugin(keyContainers) { + var _this; + var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, + _ref$customClassName = _ref.customClassName, + customClassName = _ref$customClassName === void 0 ? 'springrollContainerKeyBinding__button' : _ref$customClassName; + _classCallCheck(this, KeyboardMapPlugin); + _this = _super.call(this, 'Keyboard-Map-Plugin'); + _this.sendAllProperties = _this.sendAllProperties.bind(_assertThisInitialized(_this)); + //Allows for removing and reading event listeners + _this.bindKey = _this.bindKey.bind(_assertThisInitialized(_this)); + _this.onKeyButtonClick = _this.onKeyButtonClick.bind(_assertThisInitialized(_this)); + _this.className = customClassName; + _this.keyContainers = keyContainers instanceof HTMLElement ? [keyContainers] : document.querySelectorAll(keyContainers); + _this.keyBindings = {}; + _this.buttons = []; + _this.activekeyButton; + _this.sendAfterFetch = false; + _this.canEmit = false; + _this.keyContainersLength = _this.keyContainers.length; + if (_this.keyContainersLength <= 0) { + _this.warn('plugin was not provided any valid key binding container elements'); + return _possibleConstructorReturn(_this); + } + return _this; + } + + /** + * @memberof KeyboardMapPlugin + * @param {MouseEvent} e + * Sets up a rebinding of a key once a key button is clicked. + */ + _createClass(KeyboardMapPlugin, [{ + key: "onKeyButtonClick", + value: function onKeyButtonClick(e) { + for (var i = 0, l = this.buttons.length; i < l; i++) { + for (var j = 0; j < this.buttons[i].length; j++) { + this.buttons[i][j].removeEventListener('click', this.onKeyButtonClick); + } + } + this.activekeyButton = e.target; + this.activekeyButton.textContent = 'Press Key to Map'; + document.addEventListener('keyup', this.bindKey); + } + + /** + * @memberof KeyboardMapPlugin + * @param {KeyboardEvent} key + * Actually updates the key binding and sends the value. Also + * replicates the new key across the other keycontainers + */ + }, { + key: "bindKey", + value: function bindKey(key) { + key.preventDefault(); //prevents space bar from retriggering a keybinding when set. + + for (var actionName in this.keyBindings) { + if (this.keyBindings[actionName].currentKey === key.key.toLowerCase()) { + this.warn("".concat(key.key, " is already bound")); + return; + } + } + this.activekeyButton.textContent = key.key === ' ' ? 'space' : key.key; + for (var i = 0; i < this.buttons.length; i++) { + for (var j = 0; j < this.buttons[i].length; j++) { + if (this.buttons[i][j].value === this.activekeyButton.value) { + this.buttons[i][j].textContent = this.activekeyButton.textContent; + } + } + } + this.keyBindings[this.activekeyButton.value].currentKey = key.key; + document.removeEventListener('keyup', this.bindKey); + for (var _i = 0, l = this.buttons.length; _i < l; _i++) { + for (var _j = 0; _j < this.buttons[_i].length; _j++) { + this.buttons[_i][_j].addEventListener('click', this.onKeyButtonClick); + } + } + this.sendProperty(KeyboardMapPlugin.keyBindingKey, this.keyBindings); + } + + /** + * @memberof KeyboardMapPlugin + */ + }, { + key: "init", + value: function init() { + this.client.on('features', function (features) { + var _this2 = this; + if (!features.data) { + return; + } + if (!features.data.keyBinding) { + return; + } + var data = SavedData.read(KeyboardMapPlugin.keyBindingKey); + this.client.fetch('keyBindings', function (result) { + for (var j = 0; j < _this2.keyContainersLength; j++) { + _this2.buttons[j] = []; + for (var i = 0, l = result.data.length; i < l; i++) { + var currentKey = result.data[i].defaultKey.toLowerCase(); + if (data) { + if (data[result.data[i].actionName]) { + currentKey = data[result.data[i].actionName].currentKey; + } + } + //only needs to be set up once + if (j === 0) { + _this2.keyBindings[result.data[i].actionName] = { + defaultKey: result.data[i].defaultKey.toLowerCase(), + currentKey: currentKey + }; + } + _this2.buttons[j][i] = document.createElement('button'); + _this2.buttons[j][i].classList.add(_this2.className); + _this2.buttons[j][i].id = "keyBoardMapPlugin-".concat(result.data[i].actionName); + _this2.buttons[j][i].value = result.data[i].actionName; + _this2.buttons[j][i].textContent = result.data[i].defaultKey; + _this2.buttons[j][i].addEventListener('click', _this2.onKeyButtonClick); + _this2.label = document.createElement('label'); + _this2.label.htmlFor = "keyBoardMapPlugin-".concat(result.data[i].actionName); + _this2.label.textContent = result.data[i].actionName; + _this2.keyContainers[j].appendChild(_this2.label); + _this2.keyContainers[j].appendChild(_this2.buttons[j][i]); + } + } + _this2.canEmit = true; + if (_this2.sendAfterFetch) { + _this2.sendAllProperties(); + } + }); + }.bind(this)); + } + + /** + * + * Sends initial caption properties to the application + * @memberof KeyboardMapPlugin + */ + }, { + key: "sendAllProperties", + value: function sendAllProperties() { + if (this.canEmit) { + this.sendProperty(KeyboardMapPlugin.keyBindingKey, this.keyBindings); + } else { + this.sendAfterFetch = true; + } + } + + /** + * @readonly + * @static + * @memberof KeyboardMapPlugin + * @returns {string} + */ + }], [{ + key: "keyBindingKey", + get: function get() { + return 'keyBinding'; + } + }]); + return KeyboardMapPlugin; + }(BasePlugin); + + /** + * @export + * @class LayersPlugin + * @property {object[]} sliders an array of all slider objects attached to LayersPlugin + * @extends {SliderPlugin} + */ + var LayersPlugin = /*#__PURE__*/function (_SliderPlugin) { + _inherits(LayersPlugin, _SliderPlugin); + var _super = _createSuper(LayersPlugin); + /** + * Creates an instance of KeyboardMapPlugin. + * @param {string | HTMLInputElement} layersSliders selector string or HTML Element for the input(s) + * @param {number} [defaultValue=0] The default value for the slider + */ + function LayersPlugin(layersSliders) { + var _this; + var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, + _ref$defaultValue = _ref.defaultValue, + defaultValue = _ref$defaultValue === void 0 ? 0 : _ref$defaultValue; + _classCallCheck(this, LayersPlugin); + _this = _super.call(this, layersSliders, 'Layer-Plugin', { + defaultValue: defaultValue, + featureName: LayersPlugin.layersSliderKey + }); + for (var i = 0; i < _this.slidersLength; i++) { + _this.sliders[i].enableSliderEvents(_this.onLayerValueChange.bind(_assertThisInitialized(_this))); + } + return _this; + } + + /** + * @memberof LayersPlugin + * @param {Event} e + */ + _createClass(LayersPlugin, [{ + key: "onLayerValueChange", + value: function onLayerValueChange(e) { + this.currentValue = e.target.value; + this.sendProperty(LayersPlugin.layersSliderKey, this.currentValue); + } + + /** + * @readonly + * @static + * @memberof LayersPlugin + * @returns {string} + */ + }], [{ + key: "layersSliderKey", + get: function get() { + return 'removableLayers'; + } + }]); + return LayersPlugin; + }(SliderPlugin); + + var SUPPORTED_POSITIONS = ['top', 'bottom', 'left', 'right']; + + /** + * @export + * @class HUDPlugin + * @extends {BasePlugin} + */ + var HUDPlugin = /*#__PURE__*/function (_RadioGroupPlugin) { + _inherits(HUDPlugin, _RadioGroupPlugin); + var _super = _createSuper(HUDPlugin); + /** + * Creates an instance of HUDPlugin + * @param {string} hudSelectorRadios selector string or for the input(s) + * @param {string[]} [defaultValue='top'] default value for the HUD position + * @memberof HUDPlugin + */ + function HUDPlugin(hudSelectorRadios) { + var _this; + var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, + _ref$defaultValue = _ref.defaultValue, + defaultValue = _ref$defaultValue === void 0 ? SUPPORTED_POSITIONS[0] : _ref$defaultValue; + _classCallCheck(this, HUDPlugin); + _this = _super.call(this, hudSelectorRadios, 'HUD-Layout-Plugin', { + supportedValues: SUPPORTED_POSITIONS, + initialValue: defaultValue, + controlName: 'Hud Selector', + featureName: HUDPlugin.hudPositionKey, + radioCount: SUPPORTED_POSITIONS.length + }); + _this.sendAllProperties = _this.sendAllProperties.bind(_assertThisInitialized(_this)); + _this.sendAfterFetch = false; + _this.canEmit = false; + _this.positions = []; + if (_this.radioGroupsLength <= 0) { + _this.warn('Plugin was not provided any valid HTML elements'); + } + for (var i = 0; i < _this.radioGroupsLength; i++) { + _this.radioGroups[i].enableRadioEvents(_this.onHUDSelect.bind(_assertThisInitialized(_this))); + } + return _this; + } + + /** + * @memberof HUDPlugin + * @param {Event} e + */ + _createClass(HUDPlugin, [{ + key: "onHUDSelect", + value: function onHUDSelect(e) { + //return if a radio button is programattically clicked when it is hidden + if (!this.positions.includes(e.target.value)) { + for (var i = 0; i < this.radioGroupsLength; i++) { + this.radioGroups[i].radioGroup[this.currentValue].checked = true; + } + return; + } + this.currentValue = e.target.value; + this.sendProperty(HUDPlugin.hudPositionKey, this.currentValue); + } + + /** + * @memberof HUDPlugin + */ + }, { + key: "init", + value: function init() { + this.client.on('features', function (features) { + var _this2 = this; + if (!features.data || !features.data.hudPosition) { + return; + } + if (this.radioGroupsLength <= 0) { + return; + } + //get the game's reported HUD positions to build out positions array + this.client.fetch('hudPositions', function (result) { + for (var i = 0, l = result.data.length; i < l; i++) { + if (!SUPPORTED_POSITIONS.includes(result.data[i].toLowerCase())) { + _this2.warn("".concat(result.data[i], " is an invalid position name")); + continue; + } + _this2.positions.push(result.data[i].toLowerCase()); + } + for (var _i = 0; _i < _this2.radioGroupsLength; _i++) { + //Hide any radio buttons that aren't in the game's position list. + for (var key in _this2.radioGroups[_i].radioGroup) { + _this2.radioGroups[_i].radioGroup[key].style.display = _this2.positions.includes(_this2.radioGroups[_i].radioGroup[key].value) ? '' : 'none'; + } + } + _this2.canEmit = true; + if (_this2.sendAfterFetch) { + _this2.sendAllProperties(); + } + }); + }.bind(this)); + } + + /** + * @memberof HUDPlugin + */ + }, { + key: "start", + value: function start() { + var data = SavedData.read(HUDPlugin.hudPositionKey); + if (SUPPORTED_POSITIONS.includes(data)) { + this.currentValue = data; + } + this.client.on('loaded', this.sendAllProperties); + this.client.on('loadDone', this.sendAllProperties); + } + + /** + * + * Sends initial HUD position properties to the application + * @memberof HUDPlugin + */ + }, { + key: "sendAllProperties", + value: function sendAllProperties() { + if (this.canEmit) { + this.sendProperty(HUDPlugin.hudPositionKey, this.currentValue); + } else { + this.sendAfterFetch = true; + } + } + + /** + * @static + * @readonly + * @memberof HUDPlugin + * @returns {string} + */ + }], [{ + key: "hudPositionKey", + get: function get() { + return 'hudPosition'; + } + }]); + return HUDPlugin; + }(RadioGroupPlugin); + + var COLOR_BLIND_TYPES = ['none', 'protanopia', 'deuteranopia', 'tritanopia', 'achromatopsia']; + + /** + * @export + * @class ColorVisionPlugin + * @property {boolean} sendAfterFetch Whether to send the properties after fetch or not + * @property {boolean} canEmit Whether or not the plugin can send properties + * @property {string} colors + * @extends {RadioGroupPlugin} + */ + var ColorVisionPlugin = /*#__PURE__*/function (_RadioGroupPlugin) { + _inherits(ColorVisionPlugin, _RadioGroupPlugin); + var _super = _createSuper(ColorVisionPlugin); + /** + * Creates an instance of ColorVisionPlugin. + * @param {string | HTMLElement} colorSelects + * @param {string } [defaultValue] Default selected value + * @memberof ColorVision + */ + function ColorVisionPlugin(colorVisionRadios) { + var _this; + var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, + _ref$defaultValue = _ref.defaultValue, + defaultValue = _ref$defaultValue === void 0 ? COLOR_BLIND_TYPES[0] : _ref$defaultValue; + _classCallCheck(this, ColorVisionPlugin); + _this = _super.call(this, colorVisionRadios, 'Color-Filter-Plugin', { + supportedValues: COLOR_BLIND_TYPES, + initialValue: defaultValue, + controlName: 'Color Vision Selector', + featureName: ColorVisionPlugin.colorVisionKey, + radioCount: COLOR_BLIND_TYPES.length + }); + _this.sendAllProperties = _this.sendAllProperties.bind(_assertThisInitialized(_this)); + _this.sendAfterFetch = false; + _this.canEmit = false; + _this.colors = []; + if (_this.radioGroupsLength <= 0) { + _this.warn('Plugin was not provided any valid HTML elements'); + return _possibleConstructorReturn(_this); + } + for (var i = 0; i < _this.radioGroupsLength; i++) { + _this.radioGroups[i].enableRadioEvents(_this.onColorChange.bind(_assertThisInitialized(_this))); + } + return _this; + } + + /** + * @memberof ColorVisionPlugin + * @param {Event} e + */ + _createClass(ColorVisionPlugin, [{ + key: "onColorChange", + value: function onColorChange(e) { + //return if a radio button is programmatically clicked when it is hidden from the user + if (!this.colors.includes(e.target.value)) { + for (var i = 0; i < this.radioGroupsLength; i++) { + this.radioGroups[i].radioGroup[this.currentValue].checked = true; + } + return; + } + this.currentValue = e.target.value; + this.sendProperty(ColorVisionPlugin.colorVisionKey, this.currentValue); + } + + /** + * @memberof ColorVisionPlugin + */ + }, { + key: "init", + value: function init() { + this.client.on('features', function (features) { + var _this2 = this; + if (!features.data || !features.data.colorVision) { + return; + } + if (this.colorDropdownsLength <= 0) { + return; + } + + //get the game's reported colors to build out accepted filters array + this.client.fetch('colorFilters', function (result) { + for (var i = 0, l = result.data.length; i < l; i++) { + if (!COLOR_BLIND_TYPES.includes(result.data[i].toLowerCase())) { + _this2.warn("".concat(result.data[i], " is an invalid color vision name")); + continue; + } + _this2.colors.push(result.data[i].toLowerCase()); + } + _this2.defaultValue = _this2.colors[0]; + for (var _i = 0; _i < _this2.radioGroupsLength; _i++) { + //Hide any radio buttons that aren't in the game's filter list. + for (var key in _this2.radioGroups[_i].radioGroup) { + _this2.radioGroups[_i].radioGroup[key].style.display = _this2.colors.includes(_this2.radioGroups[_i].radioGroup[key].value.toLowerCase()) ? '' : 'none'; + } + } + _this2.canEmit = true; + if (_this2.sendAfterFetch) { + _this2.sendAllProperties(); + } + }); + }.bind(this)); + } + + /** + * @memberof ColorVisionPlugin + */ + }, { + key: "start", + value: function start() { + var data = SavedData.read(ColorVisionPlugin.colorVisionKey); + if (COLOR_BLIND_TYPES.includes(data)) { + this.currentValue = data; + } + this.client.on('loaded', this.sendAllProperties); + this.client.on('loadDone', this.sendAllProperties); + } + + /** + * + * Sends initial caption properties to the application + * @memberof ColorVisionPlugin + */ + }, { + key: "sendAllProperties", + value: function sendAllProperties() { + if (this.canEmit) { + this.sendProperty(ColorVisionPlugin.colorVisionKey, this.currentValue); + } else { + this.sendAfterFetch = true; + } + } + + /** + * Get the ColorVisionPlugin key + * @readonly + * @static + * @memberof ColorVisionPlugin + * @returns {string} + */ + }], [{ + key: "colorVisionKey", + get: function get() { + return 'colorVision'; + } + }]); + return ColorVisionPlugin; + }(RadioGroupPlugin); + + /** + * @export + * @class HitAreaScalePlugin + * @property {object[]} sliders an array of all slider objects attached to ControlSensitivityPlugin + * @extends {SliderPlugin} + * + */ + var HitAreaScalePlugin = /*#__PURE__*/function (_SliderPlugin) { + _inherits(HitAreaScalePlugin, _SliderPlugin); + var _super = _createSuper(HitAreaScalePlugin); + /** + * Creates an instance of HitAreaScalePlugin. + * @param {string | HTMLElement} hitAreaScaleSliders The selector or HTMLElement for the slider + * @param {number} [defaultHitAreaScale=0.5] The default hit area scale value + * @memberof HitAreaScalePlugin + */ + function HitAreaScalePlugin(hitAreaScaleSliders) { + var _this; + var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, + _ref$defaultHitAreaSc = _ref.defaultHitAreaScale, + defaultHitAreaScale = _ref$defaultHitAreaSc === void 0 ? 0.5 : _ref$defaultHitAreaSc; + _classCallCheck(this, HitAreaScalePlugin); + _this = _super.call(this, hitAreaScaleSliders, 'Hit-Area-Scale-Plugin', { + defaultValue: defaultHitAreaScale, + featureName: HitAreaScalePlugin.hitAreaScaleKey + }); + for (var i = 0; i < _this.slidersLength; i++) { + _this.sliders[i].enableSliderEvents(_this.onHitAreaScaleChange.bind(_assertThisInitialized(_this))); + } + return _this; + } + + /** + * @memberof HitAreaScalePlugin + * @param {Event} target + * @param {string} control + */ + _createClass(HitAreaScalePlugin, [{ + key: "onHitAreaScaleChange", + value: function onHitAreaScaleChange(e) { + this.currentValue = e.target.value; + this.sendProperty(HitAreaScalePlugin.hitAreaScaleKey, this.currentValue); + } + + /** + * @readonly + * @static + * @memberof HitAreaScalePlugin + * @returns {string} + */ + }], [{ + key: "hitAreaScaleKey", + get: function get() { + return 'hitAreaScale'; + } + }]); + return HitAreaScalePlugin; + }(SliderPlugin); + + /** + * @export + * @class DragThresholdScalePlugin + * @extends {SliderPlugin} + */ + var DragThresholdScalePlugin = /*#__PURE__*/function (_SliderPlugin) { + _inherits(DragThresholdScalePlugin, _SliderPlugin); + var _super = _createSuper(DragThresholdScalePlugin); + /** + * Creates an instance of DragThresholdScalePlugin. + * @param {string | HTMLElement} params.dragThresholdScaleSliders + * @param {number} [defaultDragThresholdScale=0.5] + * @memberof DragThresholdScalePlugin + */ + function DragThresholdScalePlugin(dragThresholdScaleSliders) { + var _this; + var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, + _ref$defaultDragThres = _ref.defaultDragThresholdScale, + defaultDragThresholdScale = _ref$defaultDragThres === void 0 ? 0.5 : _ref$defaultDragThres; + _classCallCheck(this, DragThresholdScalePlugin); + _this = _super.call(this, dragThresholdScaleSliders, 'Drag-Threshold-Scale-Plugin', { + defaultValue: defaultDragThresholdScale, + featureName: DragThresholdScalePlugin.dragThresholdScaleKey + }); + for (var i = 0; i < _this.slidersLength; i++) { + _this.sliders[i].enableSliderEvents(_this.onDragThresholdScaleChange.bind(_assertThisInitialized(_this))); + } + return _this; + } + + /** + * @memberof DragThresholdScalePlugin + * @param {Event} target + * @param {string} control + */ + _createClass(DragThresholdScalePlugin, [{ + key: "onDragThresholdScaleChange", + value: function onDragThresholdScaleChange(e) { + this.currentValue = e.target.value; + this.sendProperty(DragThresholdScalePlugin.dragThresholdScaleKey, this.currentValue); + } + + /** + * @readonly + * @static + * @memberof DragThresholdScalePlugin + * @returns {string} + */ + }], [{ + key: "dragThresholdScaleKey", + get: function get() { + return 'dragThresholdScale'; + } + }]); + return DragThresholdScalePlugin; + }(SliderPlugin); + + /** + * @export + * @class HealthPlugin + * @extends {SliderPlugin} + */ + var HealthPlugin = /*#__PURE__*/function (_SliderPlugin) { + _inherits(HealthPlugin, _SliderPlugin); + var _super = _createSuper(HealthPlugin); + /** + * Creates an instance of HealthPlugin. + * @param {string | HTMLElement} healthSliders + * @param {number} [defaultHealth=0.5] + * @memberof HealthPlugin + */ + function HealthPlugin(healthSliders) { + var _this; + var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, + _ref$defaultHealth = _ref.defaultHealth, + defaultHealth = _ref$defaultHealth === void 0 ? 0.5 : _ref$defaultHealth; + _classCallCheck(this, HealthPlugin); + _this = _super.call(this, healthSliders, 'Health-Scale-Plugin', { + defaultValue: defaultHealth, + featureName: HealthPlugin.healthKey + }); + for (var i = 0; i < _this.slidersLength; i++) { + _this.sliders[i].enableSliderEvents(_this.onHealthChange.bind(_assertThisInitialized(_this))); + } + return _this; + } + + /** + * @memberof HealthPlugin + * @param {Event} e + */ + _createClass(HealthPlugin, [{ + key: "onHealthChange", + value: function onHealthChange(e) { + this.currentValue = e.target.value; + this.sendProperty(HealthPlugin.healthKey, this.currentValue); + } + + /** + * @readonly + * @static + * @memberof HealthPlugin + * @returns {string} + */ + }], [{ + key: "healthKey", + get: function get() { + return 'health'; + } + }]); + return HealthPlugin; + }(SliderPlugin); + + /** + * @export + * @class ObjectCountPlugin + * @property {object[]} sliders an array of all slider objects attached to ObjectCountPlugin + * @extends {SliderPlugin} + */ + var ObjectCountPlugin = /*#__PURE__*/function (_SliderPlugin) { + _inherits(ObjectCountPlugin, _SliderPlugin); + var _super = _createSuper(ObjectCountPlugin); + /** + * Creates an instance of ObjectCountPlugin. + * @param {string | HTMLElement} objectCountSliders selector string or HTML Element for the input(s) + * @param {number} [defaultObjectCount=0.5] The default value for the slider + * @memberof ObjectCountPlugin + */ + function ObjectCountPlugin(objectCountSliders) { + var _this; + var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, + _ref$defaultObjectCou = _ref.defaultObjectCount, + defaultObjectCount = _ref$defaultObjectCou === void 0 ? 0.5 : _ref$defaultObjectCou; + _classCallCheck(this, ObjectCountPlugin); + _this = _super.call(this, objectCountSliders, 'Object-Count-Plugin', { + defaultValue: defaultObjectCount, + featureName: ObjectCountPlugin.objectCountKey + }); + for (var i = 0; i < _this.slidersLength; i++) { + _this.sliders[i].enableSliderEvents(_this.onObjectCountChange.bind(_assertThisInitialized(_this))); + } + return _this; + } + + /** + * @memberof ObjectCountPlugin + * @param {Event} target + * @param {string} control + */ + _createClass(ObjectCountPlugin, [{ + key: "onObjectCountChange", + value: function onObjectCountChange(e) { + this.currentValue = e.target.value; + this.sendProperty(ObjectCountPlugin.objectCountKey, this.currentValue); + } + + /** + * @readonly + * @static + * @memberof ObjectCountPlugin + * @returns {string} + */ + }], [{ + key: "objectCountKey", + get: function get() { + return 'objectCount'; + } + }]); + return ObjectCountPlugin; + }(SliderPlugin); + + /** + * @export + * @class CompletionPercentagePlugin + * @property {object[]} sliders an array of all slider objects attached to CompletePercentagePlugin + * @extends {SliderPlugin} + */ + var CompletionPercentagePlugin = /*#__PURE__*/function (_SliderPlugin) { + _inherits(CompletionPercentagePlugin, _SliderPlugin); + var _super = _createSuper(CompletionPercentagePlugin); + /** + * Creates an instance of CompletionPercentagePlugin. + * @param {string | HTMLElement} completionPercentageSliders The selector or HTMLSliderElement of the slider + * @param {number} [defaultCompletionPercentage=0.5] Default selected completion percentage + * @memberof CompletionPercentagePlugin + */ + function CompletionPercentagePlugin(completionPercentageSliders) { + var _this; + var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, + _ref$defaultCompletio = _ref.defaultCompletionPercentage, + defaultCompletionPercentage = _ref$defaultCompletio === void 0 ? 0.5 : _ref$defaultCompletio; + _classCallCheck(this, CompletionPercentagePlugin); + _this = _super.call(this, completionPercentageSliders, 'Completion-Percentage-Plugin', { + defaultValue: defaultCompletionPercentage, + featureName: CompletionPercentagePlugin.completionPercentageKey + }); + for (var i = 0; i < _this.slidersLength; i++) { + _this.sliders[i].enableSliderEvents(_this.onCompletionPercentageChange.bind(_assertThisInitialized(_this))); + } + return _this; + } + + /** + * @memberof CompletionPercentagePlugin + * @param {Event} e + */ + _createClass(CompletionPercentagePlugin, [{ + key: "onCompletionPercentageChange", + value: function onCompletionPercentageChange(e) { + this.currentValue = e.target.value; + this.sendProperty(CompletionPercentagePlugin.completionPercentageKey, this.currentValue); + } + + /** + * @readonly + * @static + * @memberof CompletionPercentagePlugin + * @returns {string} + */ + }], [{ + key: "completionPercentageKey", + get: function get() { + return 'completionPercentage'; + } + }]); + return CompletionPercentagePlugin; + }(SliderPlugin); + + /** + * @export + * @class SpeedScalePlugin + * @extends {SliderPlugin} + */ + var SpeedScalePlugin = /*#__PURE__*/function (_SliderPlugin) { + _inherits(SpeedScalePlugin, _SliderPlugin); + var _super = _createSuper(SpeedScalePlugin); + /** + *Creates an instance of SpeedScalePlugin. + * @param {string | HTMLElement} speedScaleSliders selector string or HTML Element for the input(s) + * @param {number} [defaultSpeedScale=0.5] The default value for the speed scale slider + * @memberof SpeedScalePlugin + */ + function SpeedScalePlugin(speedScaleSliders) { + var _this; + var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, + _ref$defaultSpeedScal = _ref.defaultSpeedScale, + defaultSpeedScale = _ref$defaultSpeedScal === void 0 ? 0.5 : _ref$defaultSpeedScal; + _classCallCheck(this, SpeedScalePlugin); + _this = _super.call(this, speedScaleSliders, 'Speed-Scale-Plugin', { + defaultValue: defaultSpeedScale, + featureName: SpeedScalePlugin.speedScaleKey + }); + for (var i = 0; i < _this.slidersLength; i++) { + _this.sliders[i].enableSliderEvents(_this.onSpeedScaleChange.bind(_assertThisInitialized(_this))); + } + return _this; + } + + /** + * @memberof SpeedScalePlugin + * @param {Event} e + */ + _createClass(SpeedScalePlugin, [{ + key: "onSpeedScaleChange", + value: function onSpeedScaleChange(e) { + this.currentValue = e.target.value; + this.sendProperty(SpeedScalePlugin.speedScaleKey, this.currentValue); + } + + /** + * @readonly + * @static + * @memberof SpeedScalePlugin + * @return {string} + */ + }], [{ + key: "speedScaleKey", + get: function get() { + return 'speedScale'; + } + }]); + return SpeedScalePlugin; + }(SliderPlugin); + + /** + * @export + * @class TimersScalePlugin + * @property {number} currentValue + * @extends {SliderPlugin} + */ + var TimersScalePlugin = /*#__PURE__*/function (_SliderPlugin) { + _inherits(TimersScalePlugin, _SliderPlugin); + var _super = _createSuper(TimersScalePlugin); + /** + * Creates an instance of TimersScalePlugin. + * @param {string | HTMLElement} timersScaleSliders selector string or HTML Element for the input(s) + * @param {number} [defaultTimersScale=0.5] Default Value for the timer scale slider + * @memberof TimersScalePlugin + */ + function TimersScalePlugin(timersScaleSliders) { + var _this; + var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, + _ref$defaultTimersSca = _ref.defaultTimersScale, + defaultTimersScale = _ref$defaultTimersSca === void 0 ? 0.5 : _ref$defaultTimersSca; + _classCallCheck(this, TimersScalePlugin); + _this = _super.call(this, timersScaleSliders, 'Timers-Scale-Plugin', { + defaultValue: defaultTimersScale, + featureName: TimersScalePlugin.timersScaleKey + }); + for (var i = 0; i < _this.slidersLength; i++) { + _this.sliders[i].enableSliderEvents(_this.onTimersScaleChange.bind(_assertThisInitialized(_this))); + } + return _this; + } + + /** + * @memberof TimersScalePlugin + * @param {Event} e + */ + _createClass(TimersScalePlugin, [{ + key: "onTimersScaleChange", + value: function onTimersScaleChange(e) { + this.currentValue = e.target.value; + this.sendProperty(TimersScalePlugin.timersScaleKey, this.currentValue); + } + + /** + * @readonly + * @static + * @memberof TimersScalePlugin + * @return {string} + */ + }], [{ + key: "timersScaleKey", + get: function get() { + return 'timersScale'; + } + }]); + return TimersScalePlugin; + }(SliderPlugin); + + /** + * @export + * @class InputCountPlugin + * @property {object[]} sliders an array of all slider objects attached to InputCountPlugin + * @extends {SliderPlugin} + */ + var InputCountPlugin = /*#__PURE__*/function (_SliderPlugin) { + _inherits(InputCountPlugin, _SliderPlugin); + var _super = _createSuper(InputCountPlugin); + /** + * Creates an instance of InputCountPlugin. + * @param {string | HTMLElement} inputCountSliders selector string or HTML Element for the input(s) + * @param {number} [defaultInputCount=0.5] The default value for the slider + * @memberof InputCountPlugin + */ + function InputCountPlugin(inputCountSliders) { + var _this; + var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, + _ref$defaultInputCoun = _ref.defaultInputCount, + defaultInputCount = _ref$defaultInputCoun === void 0 ? 0.5 : _ref$defaultInputCoun; + _classCallCheck(this, InputCountPlugin); + _this = _super.call(this, inputCountSliders, 'Input-Count-Plugin', { + defaultValue: defaultInputCount, + featureName: InputCountPlugin.inputCountKey + }); + for (var i = 0; i < _this.slidersLength; i++) { + _this.sliders[i].enableSliderEvents(_this.onInputCountChange.bind(_assertThisInitialized(_this))); + } + return _this; + } + + /** + * @memberof InputCountPlugin + * @param {Event} target + * @param {string} control + */ + _createClass(InputCountPlugin, [{ + key: "onInputCountChange", + value: function onInputCountChange(e) { + this.currentValue = e.target.value; + this.sendProperty(InputCountPlugin.inputCountKey, this.currentValue); + } + + /** + * @readonly + * @static + * @memberof InputCountPlugin + * @returns {string} + */ + }], [{ + key: "inputCountKey", + get: function get() { + return 'inputCount'; + } + }]); + return InputCountPlugin; + }(SliderPlugin); + + /** + * A Springroll plugin to easily set up togglable fullscreen + */ + var FullScreenPlugin = /*#__PURE__*/function (_ButtonPlugin) { + _inherits(FullScreenPlugin, _ButtonPlugin); + var _super = _createSuper(FullScreenPlugin); + /** + * Creates an instance of FullscreenPlugin + * + * @param {string | string[]} buttonSelector The selector for the element to be made fullscreen + */ + function FullScreenPlugin(buttonSelector) { + var _this; + _classCallCheck(this, FullScreenPlugin); + _this = _super.call(this, { + name: FullScreenPlugin.fullscreenKey + }); + _this._toggleButtons = []; + _this.iFrame = null; + _this.sendAllProperties = _this.sendAllProperties.bind(_assertThisInitialized(_this)); + if (Array.isArray(buttonSelector)) { + // If input is an array, join the selectors into one string + buttonSelector = buttonSelector.join(', '); + } + console.log(buttonSelector); + _this.toggleButton = document.querySelectorAll(buttonSelector); + _this.toggleButton.forEach(function (button) { + _this._toggleButtons.push(new Button({ + button: button, + onClick: _this.toggleFullScreen.bind(_assertThisInitialized(_this)), + channel: FullScreenPlugin.fullscreenKey + })); + }); + document.addEventListener('fullscreenchange', function () { + _this.sendAllProperties(); + _this._toggleButtons.forEach(function (button) { + button.button.classList.toggle('--fullScreen'); + }); + }); + return _this; + } + + /** + * @memberof FullScreenPlugin + */ + _createClass(FullScreenPlugin, [{ + key: "init", + value: function init(_ref) { + var iframe = _ref.iframe; + this.iFrame = iframe; + // Handle the features request + this.client.on('features', function ($event) { + for (var i = 0; i < this.fullscreenElement; i++) { + this._toggleButtons[i].displayButton($event.data); + } + }.bind(this)); + } + /** + * @memberof FullScreenPlugin + */ + }, { + key: "start", + value: function start() { + this.client.on('loaded', this.sendAllProperties); + this.client.on('loadDone', this.sendAllProperties); + } + + /** + * + * Sends initial fullScreen properties to the application + * @memberof FullScreenTogglePlugin + */ + }, { + key: "sendAllProperties", + value: function sendAllProperties() { + this.sendProperty(FullScreenPlugin.fullscreenKey, document.fullscreenElement != null ? 'true' : 'false'); + } + + /** + * Toggles fullscreen on this.iFrame. Must be from a user generated event + */ + }, { + key: "toggleFullScreen", + value: function toggleFullScreen() { + var _this2 = this; + if (!document.fullscreenElement) { + this.iFrame.requestFullscreen().then(function () { + _this2.sendAllProperties(); + }).catch(function (err) { + console.log(err); + }); + } else { + document.exitFullscreen(); + this.sendAllProperties(); + } + } + + /** + * Returns true if there is a fullscreen element and false if not + * @returns { boolean } + */ + }, { + key: "isFullScreen", + get: function get() { + return (document.fullscreenElement || + // basic + document.webkitIsFullscreen || + //Webkit browsers + document.mozFullScreen // Firefox + ) != true; // Ensure boolean output + } + + /** + * @readonly + * @static + * @memberof FullscreenPlugin + */ + }], [{ + key: "fullscreenKey", + get: function get() { + return 'fullScreen'; + } + }]); + return FullScreenPlugin; + }(ButtonPlugin); + + exports.BasePlugin = BasePlugin; + exports.Button = Button; + exports.ButtonPlugin = ButtonPlugin; + exports.ButtonSizePlugin = ButtonSizePlugin; + exports.CaptionsStylePlugin = CaptionsStylePlugin; + exports.CaptionsTogglePlugin = CaptionsTogglePlugin; + exports.ColorVisionPlugin = ColorVisionPlugin; + exports.CompletionPercentagePlugin = CompletionPercentagePlugin; + exports.Container = Container; + exports.ControlSensitivityPlugin = ControlSensitivityPlugin; + exports.DragThresholdScalePlugin = DragThresholdScalePlugin; + exports.Features = Features; + exports.FullScreenPlugin = FullScreenPlugin; + exports.HUDPlugin = HUDPlugin; + exports.HealthPlugin = HealthPlugin; + exports.HelpPlugin = HelpPlugin; + exports.HitAreaScalePlugin = HitAreaScalePlugin; + exports.InputCountPlugin = InputCountPlugin; + exports.KeyboardMapPlugin = KeyboardMapPlugin; + exports.LayersPlugin = LayersPlugin; + exports.ObjectCountPlugin = ObjectCountPlugin; + exports.PageVisibility = PageVisibility; + exports.PausePlugin = PausePlugin; + exports.PointerSizePlugin = PointerSizePlugin; + exports.RadioGroup = RadioGroup; + exports.RadioGroupPlugin = RadioGroupPlugin; + exports.SavedData = SavedData; + exports.SavedDataHandler = SavedDataHandler; + exports.Slider = Slider; + exports.SliderPlugin = SliderPlugin; + exports.SoundPlugin = SoundPlugin; + exports.SpeedScalePlugin = SpeedScalePlugin; + exports.TimersScalePlugin = TimersScalePlugin; + exports.UserDataPlugin = UserDataPlugin; + +})); //# sourceMappingURL=SpringRoll-Container-umd.js.map diff --git a/dist/SpringRoll-Container-umd.js.map b/dist/SpringRoll-Container-umd.js.map index 2976579..de11943 100644 --- a/dist/SpringRoll-Container-umd.js.map +++ b/dist/SpringRoll-Container-umd.js.map @@ -1 +1 @@ -{"version":3,"file":"SpringRoll-Container-umd.js","sources":["../node_modules/whatwg-fetch/fetch.js","../node_modules/core-js/internals/global.js","../node_modules/core-js/internals/engine-v8-version.js","../node_modules/core-js/internals/dom-iterables.js","../node_modules/core-js/internals/document-all.js","../node_modules/core-js/internals/is-callable.js","../node_modules/core-js/internals/is-object.js","../node_modules/core-js/internals/document-create-element.js","../node_modules/core-js/internals/dom-token-list-prototype.js","../node_modules/core-js/internals/fails.js","../node_modules/core-js/internals/function-bind-native.js","../node_modules/core-js/internals/function-uncurry-this.js","../node_modules/core-js/internals/classof-raw.js","../node_modules/core-js/internals/function-uncurry-this-clause.js","../node_modules/core-js/internals/try-to-string.js","../node_modules/core-js/internals/a-callable.js","../node_modules/core-js/internals/function-bind-context.js","../node_modules/core-js/internals/indexed-object.js","../node_modules/core-js/internals/is-null-or-undefined.js","../node_modules/core-js/internals/require-object-coercible.js","../node_modules/core-js/internals/to-object.js","../node_modules/core-js/internals/math-trunc.js","../node_modules/core-js/internals/to-integer-or-infinity.js","../node_modules/core-js/internals/to-length.js","../node_modules/core-js/internals/length-of-array-like.js","../node_modules/core-js/internals/is-array.js","../node_modules/core-js/internals/define-global-property.js","../node_modules/core-js/internals/shared-store.js","../node_modules/core-js/internals/shared.js","../node_modules/core-js/internals/has-own-property.js","../node_modules/core-js/internals/uid.js","../node_modules/core-js/internals/engine-user-agent.js","../node_modules/core-js/internals/symbol-constructor-detection.js","../node_modules/core-js/internals/use-symbol-as-uid.js","../node_modules/core-js/internals/well-known-symbol.js","../node_modules/core-js/internals/to-string-tag-support.js","../node_modules/core-js/internals/classof.js","../node_modules/core-js/internals/get-built-in.js","../node_modules/core-js/internals/inspect-source.js","../node_modules/core-js/internals/is-constructor.js","../node_modules/core-js/internals/array-species-constructor.js","../node_modules/core-js/internals/array-species-create.js","../node_modules/core-js/internals/array-iteration.js","../node_modules/core-js/internals/array-method-is-strict.js","../node_modules/core-js/internals/array-for-each.js","../node_modules/core-js/internals/descriptors.js","../node_modules/core-js/internals/ie8-dom-define.js","../node_modules/core-js/internals/v8-prototype-define-bug.js","../node_modules/core-js/internals/an-object.js","../node_modules/core-js/internals/function-call.js","../node_modules/core-js/internals/object-is-prototype-of.js","../node_modules/core-js/internals/is-symbol.js","../node_modules/core-js/internals/get-method.js","../node_modules/core-js/internals/ordinary-to-primitive.js","../node_modules/core-js/internals/to-primitive.js","../node_modules/core-js/internals/to-property-key.js","../node_modules/core-js/internals/object-define-property.js","../node_modules/core-js/internals/create-property-descriptor.js","../node_modules/core-js/internals/create-non-enumerable-property.js","../node_modules/core-js/modules/web.dom-collections.for-each.js","../node_modules/core-js/internals/to-indexed-object.js","../node_modules/core-js/internals/object-create.js","../node_modules/core-js/internals/to-absolute-index.js","../node_modules/core-js/internals/array-includes.js","../node_modules/core-js/internals/hidden-keys.js","../node_modules/core-js/internals/object-keys-internal.js","../node_modules/core-js/internals/enum-bug-keys.js","../node_modules/core-js/internals/object-keys.js","../node_modules/core-js/internals/object-define-properties.js","../node_modules/core-js/internals/html.js","../node_modules/core-js/internals/shared-key.js","../node_modules/core-js/internals/add-to-unscopables.js","../node_modules/core-js/internals/internal-state.js","../node_modules/core-js/internals/iterators.js","../node_modules/core-js/internals/weak-map-basic-detection.js","../node_modules/core-js/internals/iterators-core.js","../node_modules/core-js/internals/object-property-is-enumerable.js","../node_modules/core-js/internals/object-get-own-property-descriptor.js","../node_modules/core-js/internals/function-name.js","../node_modules/core-js/internals/make-built-in.js","../node_modules/core-js/internals/define-built-in.js","../node_modules/core-js/internals/object-get-own-property-names.js","../node_modules/core-js/internals/object-get-own-property-symbols.js","../node_modules/core-js/internals/own-keys.js","../node_modules/core-js/internals/copy-constructor-properties.js","../node_modules/core-js/internals/is-forced.js","../node_modules/core-js/internals/export.js","../node_modules/core-js/internals/correct-prototype-getter.js","../node_modules/core-js/internals/object-get-prototype-of.js","../node_modules/core-js/internals/set-to-string-tag.js","../node_modules/core-js/internals/iterator-create-constructor.js","../node_modules/core-js/internals/a-possible-prototype.js","../node_modules/core-js/internals/object-set-prototype-of.js","../node_modules/core-js/internals/function-uncurry-this-accessor.js","../node_modules/core-js/internals/iterator-define.js","../node_modules/core-js/internals/create-iter-result-object.js","../node_modules/core-js/modules/es.array.iterator.js","../node_modules/core-js/modules/web.dom-collections.iterator.js","../node_modules/core-js/internals/path.js","../node_modules/core-js/modules/es.array.index-of.js","../node_modules/core-js/internals/does-not-exceed-safe-integer.js","../node_modules/core-js/internals/create-property.js","../node_modules/core-js/internals/array-method-has-species-support.js","../node_modules/core-js/modules/es.array.concat.js","../node_modules/core-js/internals/object-assign.js","../node_modules/core-js/modules/es.object.assign.js","../node_modules/core-js/internals/object-to-string.js","../node_modules/core-js/modules/es.object.to-string.js","../node_modules/core-js/internals/engine-is-node.js","../node_modules/core-js/internals/task.js","../node_modules/core-js/internals/define-built-in-accessor.js","../node_modules/core-js/internals/set-species.js","../node_modules/core-js/internals/an-instance.js","../node_modules/core-js/internals/a-constructor.js","../node_modules/core-js/internals/species-constructor.js","../node_modules/core-js/internals/function-apply.js","../node_modules/core-js/internals/array-slice.js","../node_modules/core-js/internals/validate-arguments-length.js","../node_modules/core-js/internals/engine-is-ios.js","../node_modules/core-js/internals/queue.js","../node_modules/core-js/internals/microtask.js","../node_modules/core-js/internals/engine-is-ios-pebble.js","../node_modules/core-js/internals/engine-is-webos-webkit.js","../node_modules/core-js/internals/perform.js","../node_modules/core-js/internals/promise-native-constructor.js","../node_modules/core-js/internals/engine-is-deno.js","../node_modules/core-js/internals/engine-is-browser.js","../node_modules/core-js/internals/promise-constructor-detection.js","../node_modules/core-js/modules/es.promise.constructor.js","../node_modules/core-js/internals/new-promise-capability.js","../node_modules/core-js/internals/host-report-errors.js","../node_modules/core-js/internals/is-array-iterator-method.js","../node_modules/core-js/internals/get-iterator-method.js","../node_modules/core-js/internals/get-iterator.js","../node_modules/core-js/internals/iterator-close.js","../node_modules/core-js/internals/iterate.js","../node_modules/core-js/internals/check-correctness-of-iteration.js","../node_modules/core-js/internals/promise-statics-incorrect-iteration.js","../node_modules/core-js/modules/es.promise.all.js","../node_modules/core-js/modules/es.promise.catch.js","../node_modules/core-js/modules/es.promise.race.js","../node_modules/core-js/modules/es.promise.reject.js","../node_modules/core-js/internals/promise-resolve.js","../node_modules/core-js/modules/es.promise.resolve.js","../node_modules/core-js/internals/to-string.js","../node_modules/core-js/internals/regexp-exec.js","../node_modules/core-js/internals/regexp-flags.js","../node_modules/core-js/internals/regexp-sticky-helpers.js","../node_modules/core-js/internals/regexp-unsupported-dot-all.js","../node_modules/core-js/internals/regexp-unsupported-ncg.js","../node_modules/core-js/modules/es.regexp.exec.js","../src/Features.js","../node_modules/core-js/internals/string-multibyte.js","../node_modules/core-js/modules/es.string.iterator.js","../node_modules/core-js/modules/es.array.filter.js","../node_modules/core-js/modules/es.array.find.js","../node_modules/bellhop-iframe/dist/bellhop.js","../src/PluginManager.js","../src/Container.js","../src/PageVisibility.js","../node_modules/core-js/modules/es.array.includes.js","../node_modules/core-js/internals/whitespaces.js","../node_modules/core-js/internals/string-trim-forced.js","../node_modules/core-js/internals/string-trim.js","../node_modules/core-js/modules/es.string.trim.js","../node_modules/core-js/internals/regexp-get-flags.js","../node_modules/core-js/modules/es.regexp.to-string.js","../src/SavedData.js","../src/base-plugins/BasePlugin.js","../src/base-plugins/ButtonPlugin.js","../node_modules/core-js/internals/is-regexp.js","../node_modules/core-js/internals/not-a-regexp.js","../node_modules/core-js/internals/correct-is-regexp-logic.js","../node_modules/core-js/modules/es.string.includes.js","../node_modules/core-js/internals/array-slice-simple.js","../node_modules/core-js/internals/object-get-own-property-names-external.js","../node_modules/core-js/internals/array-buffer-non-extensible.js","../node_modules/core-js/internals/object-is-extensible.js","../node_modules/core-js/internals/freezing.js","../node_modules/core-js/internals/internal-metadata.js","../node_modules/core-js/internals/inherit-if-required.js","../node_modules/core-js/internals/define-built-ins.js","../node_modules/core-js/internals/collection-strong.js","../node_modules/core-js/internals/collection.js","../node_modules/core-js/modules/es.set.constructor.js","../node_modules/core-js/modules/es.object.keys.js","../node_modules/core-js/modules/es.array.map.js","../node_modules/core-js/internals/object-to-array.js","../node_modules/core-js/modules/es.object.values.js","../src/ui-elements/RadioGroup.js","../src/base-plugins/RadioGroupPlugin.js","../node_modules/core-js/internals/this-number-value.js","../node_modules/core-js/modules/es.number.constructor.js","../src/ui-elements/Slider.js","../src/ui-elements/Button.js","../src/base-plugins/SliderPlugin.js","../src/plugins/CaptionsStylePlugin.js","../src/plugins/CaptionsTogglePlugin.js","../src/plugins/HelpPlugin.js","../src/plugins/PausePlugin.js","../src/plugins/SoundPlugin.js","../src/SavedDataHandler.js","../src/plugins/UserDataPlugin.js","../src/plugins/PointerSizePlugin.js","../src/plugins/ButtonSizePlugin.js","../src/plugins/ControlSensitivityPlugin.js","../src/plugins/KeyboardMapPlugin.js","../src/plugins/LayersPlugin.js","../src/plugins/HUDPlugin.js","../src/plugins/ColorVisionPlugin.js","../src/plugins/HitAreaScalePlugin.js","../src/plugins/DragThresholdScalePlugin.js","../src/plugins/HealthPlugin.js","../src/plugins/ObjectCountPlugin.js","../src/plugins/CompletionPercentagePlugin.js","../src/plugins/SpeedScalePlugin.js","../src/plugins/TimersScalePlugin.js","../src/plugins/InputCountPlugin.js","../src/plugins/FullScreenPlugin.js"],"sourcesContent":["var global =\n (typeof globalThis !== 'undefined' && globalThis) ||\n (typeof self !== 'undefined' && self) ||\n (typeof global !== 'undefined' && global)\n\nvar support = {\n searchParams: 'URLSearchParams' in global,\n iterable: 'Symbol' in global && 'iterator' in Symbol,\n blob:\n 'FileReader' in global &&\n 'Blob' in global &&\n (function() {\n try {\n new Blob()\n return true\n } catch (e) {\n return false\n }\n })(),\n formData: 'FormData' in global,\n arrayBuffer: 'ArrayBuffer' in global\n}\n\nfunction isDataView(obj) {\n return obj && DataView.prototype.isPrototypeOf(obj)\n}\n\nif (support.arrayBuffer) {\n var viewClasses = [\n '[object Int8Array]',\n '[object Uint8Array]',\n '[object Uint8ClampedArray]',\n '[object Int16Array]',\n '[object Uint16Array]',\n '[object Int32Array]',\n '[object Uint32Array]',\n '[object Float32Array]',\n '[object Float64Array]'\n ]\n\n var isArrayBufferView =\n ArrayBuffer.isView ||\n function(obj) {\n return obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1\n }\n}\n\nfunction normalizeName(name) {\n if (typeof name !== 'string') {\n name = String(name)\n }\n if (/[^a-z0-9\\-#$%&'*+.^_`|~!]/i.test(name) || name === '') {\n throw new TypeError('Invalid character in header field name: \"' + name + '\"')\n }\n return name.toLowerCase()\n}\n\nfunction normalizeValue(value) {\n if (typeof value !== 'string') {\n value = String(value)\n }\n return value\n}\n\n// Build a destructive iterator for the value list\nfunction iteratorFor(items) {\n var iterator = {\n next: function() {\n var value = items.shift()\n return {done: value === undefined, value: value}\n }\n }\n\n if (support.iterable) {\n iterator[Symbol.iterator] = function() {\n return iterator\n }\n }\n\n return iterator\n}\n\nexport function Headers(headers) {\n this.map = {}\n\n if (headers instanceof Headers) {\n headers.forEach(function(value, name) {\n this.append(name, value)\n }, this)\n } else if (Array.isArray(headers)) {\n headers.forEach(function(header) {\n this.append(header[0], header[1])\n }, this)\n } else if (headers) {\n Object.getOwnPropertyNames(headers).forEach(function(name) {\n this.append(name, headers[name])\n }, this)\n }\n}\n\nHeaders.prototype.append = function(name, value) {\n name = normalizeName(name)\n value = normalizeValue(value)\n var oldValue = this.map[name]\n this.map[name] = oldValue ? oldValue + ', ' + value : value\n}\n\nHeaders.prototype['delete'] = function(name) {\n delete this.map[normalizeName(name)]\n}\n\nHeaders.prototype.get = function(name) {\n name = normalizeName(name)\n return this.has(name) ? this.map[name] : null\n}\n\nHeaders.prototype.has = function(name) {\n return this.map.hasOwnProperty(normalizeName(name))\n}\n\nHeaders.prototype.set = function(name, value) {\n this.map[normalizeName(name)] = normalizeValue(value)\n}\n\nHeaders.prototype.forEach = function(callback, thisArg) {\n for (var name in this.map) {\n if (this.map.hasOwnProperty(name)) {\n callback.call(thisArg, this.map[name], name, this)\n }\n }\n}\n\nHeaders.prototype.keys = function() {\n var items = []\n this.forEach(function(value, name) {\n items.push(name)\n })\n return iteratorFor(items)\n}\n\nHeaders.prototype.values = function() {\n var items = []\n this.forEach(function(value) {\n items.push(value)\n })\n return iteratorFor(items)\n}\n\nHeaders.prototype.entries = function() {\n var items = []\n this.forEach(function(value, name) {\n items.push([name, value])\n })\n return iteratorFor(items)\n}\n\nif (support.iterable) {\n Headers.prototype[Symbol.iterator] = Headers.prototype.entries\n}\n\nfunction consumed(body) {\n if (body.bodyUsed) {\n return Promise.reject(new TypeError('Already read'))\n }\n body.bodyUsed = true\n}\n\nfunction fileReaderReady(reader) {\n return new Promise(function(resolve, reject) {\n reader.onload = function() {\n resolve(reader.result)\n }\n reader.onerror = function() {\n reject(reader.error)\n }\n })\n}\n\nfunction readBlobAsArrayBuffer(blob) {\n var reader = new FileReader()\n var promise = fileReaderReady(reader)\n reader.readAsArrayBuffer(blob)\n return promise\n}\n\nfunction readBlobAsText(blob) {\n var reader = new FileReader()\n var promise = fileReaderReady(reader)\n reader.readAsText(blob)\n return promise\n}\n\nfunction readArrayBufferAsText(buf) {\n var view = new Uint8Array(buf)\n var chars = new Array(view.length)\n\n for (var i = 0; i < view.length; i++) {\n chars[i] = String.fromCharCode(view[i])\n }\n return chars.join('')\n}\n\nfunction bufferClone(buf) {\n if (buf.slice) {\n return buf.slice(0)\n } else {\n var view = new Uint8Array(buf.byteLength)\n view.set(new Uint8Array(buf))\n return view.buffer\n }\n}\n\nfunction Body() {\n this.bodyUsed = false\n\n this._initBody = function(body) {\n /*\n fetch-mock wraps the Response object in an ES6 Proxy to\n provide useful test harness features such as flush. However, on\n ES5 browsers without fetch or Proxy support pollyfills must be used;\n the proxy-pollyfill is unable to proxy an attribute unless it exists\n on the object before the Proxy is created. This change ensures\n Response.bodyUsed exists on the instance, while maintaining the\n semantic of setting Request.bodyUsed in the constructor before\n _initBody is called.\n */\n this.bodyUsed = this.bodyUsed\n this._bodyInit = body\n if (!body) {\n this._bodyText = ''\n } else if (typeof body === 'string') {\n this._bodyText = body\n } else if (support.blob && Blob.prototype.isPrototypeOf(body)) {\n this._bodyBlob = body\n } else if (support.formData && FormData.prototype.isPrototypeOf(body)) {\n this._bodyFormData = body\n } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {\n this._bodyText = body.toString()\n } else if (support.arrayBuffer && support.blob && isDataView(body)) {\n this._bodyArrayBuffer = bufferClone(body.buffer)\n // IE 10-11 can't handle a DataView body.\n this._bodyInit = new Blob([this._bodyArrayBuffer])\n } else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) {\n this._bodyArrayBuffer = bufferClone(body)\n } else {\n this._bodyText = body = Object.prototype.toString.call(body)\n }\n\n if (!this.headers.get('content-type')) {\n if (typeof body === 'string') {\n this.headers.set('content-type', 'text/plain;charset=UTF-8')\n } else if (this._bodyBlob && this._bodyBlob.type) {\n this.headers.set('content-type', this._bodyBlob.type)\n } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {\n this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8')\n }\n }\n }\n\n if (support.blob) {\n this.blob = function() {\n var rejected = consumed(this)\n if (rejected) {\n return rejected\n }\n\n if (this._bodyBlob) {\n return Promise.resolve(this._bodyBlob)\n } else if (this._bodyArrayBuffer) {\n return Promise.resolve(new Blob([this._bodyArrayBuffer]))\n } else if (this._bodyFormData) {\n throw new Error('could not read FormData body as blob')\n } else {\n return Promise.resolve(new Blob([this._bodyText]))\n }\n }\n\n this.arrayBuffer = function() {\n if (this._bodyArrayBuffer) {\n var isConsumed = consumed(this)\n if (isConsumed) {\n return isConsumed\n }\n if (ArrayBuffer.isView(this._bodyArrayBuffer)) {\n return Promise.resolve(\n this._bodyArrayBuffer.buffer.slice(\n this._bodyArrayBuffer.byteOffset,\n this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength\n )\n )\n } else {\n return Promise.resolve(this._bodyArrayBuffer)\n }\n } else {\n return this.blob().then(readBlobAsArrayBuffer)\n }\n }\n }\n\n this.text = function() {\n var rejected = consumed(this)\n if (rejected) {\n return rejected\n }\n\n if (this._bodyBlob) {\n return readBlobAsText(this._bodyBlob)\n } else if (this._bodyArrayBuffer) {\n return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer))\n } else if (this._bodyFormData) {\n throw new Error('could not read FormData body as text')\n } else {\n return Promise.resolve(this._bodyText)\n }\n }\n\n if (support.formData) {\n this.formData = function() {\n return this.text().then(decode)\n }\n }\n\n this.json = function() {\n return this.text().then(JSON.parse)\n }\n\n return this\n}\n\n// HTTP methods whose capitalization should be normalized\nvar methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT']\n\nfunction normalizeMethod(method) {\n var upcased = method.toUpperCase()\n return methods.indexOf(upcased) > -1 ? upcased : method\n}\n\nexport function Request(input, options) {\n if (!(this instanceof Request)) {\n throw new TypeError('Please use the \"new\" operator, this DOM object constructor cannot be called as a function.')\n }\n\n options = options || {}\n var body = options.body\n\n if (input instanceof Request) {\n if (input.bodyUsed) {\n throw new TypeError('Already read')\n }\n this.url = input.url\n this.credentials = input.credentials\n if (!options.headers) {\n this.headers = new Headers(input.headers)\n }\n this.method = input.method\n this.mode = input.mode\n this.signal = input.signal\n if (!body && input._bodyInit != null) {\n body = input._bodyInit\n input.bodyUsed = true\n }\n } else {\n this.url = String(input)\n }\n\n this.credentials = options.credentials || this.credentials || 'same-origin'\n if (options.headers || !this.headers) {\n this.headers = new Headers(options.headers)\n }\n this.method = normalizeMethod(options.method || this.method || 'GET')\n this.mode = options.mode || this.mode || null\n this.signal = options.signal || this.signal\n this.referrer = null\n\n if ((this.method === 'GET' || this.method === 'HEAD') && body) {\n throw new TypeError('Body not allowed for GET or HEAD requests')\n }\n this._initBody(body)\n\n if (this.method === 'GET' || this.method === 'HEAD') {\n if (options.cache === 'no-store' || options.cache === 'no-cache') {\n // Search for a '_' parameter in the query string\n var reParamSearch = /([?&])_=[^&]*/\n if (reParamSearch.test(this.url)) {\n // If it already exists then set the value with the current time\n this.url = this.url.replace(reParamSearch, '$1_=' + new Date().getTime())\n } else {\n // Otherwise add a new '_' parameter to the end with the current time\n var reQueryString = /\\?/\n this.url += (reQueryString.test(this.url) ? '&' : '?') + '_=' + new Date().getTime()\n }\n }\n }\n}\n\nRequest.prototype.clone = function() {\n return new Request(this, {body: this._bodyInit})\n}\n\nfunction decode(body) {\n var form = new FormData()\n body\n .trim()\n .split('&')\n .forEach(function(bytes) {\n if (bytes) {\n var split = bytes.split('=')\n var name = split.shift().replace(/\\+/g, ' ')\n var value = split.join('=').replace(/\\+/g, ' ')\n form.append(decodeURIComponent(name), decodeURIComponent(value))\n }\n })\n return form\n}\n\nfunction parseHeaders(rawHeaders) {\n var headers = new Headers()\n // Replace instances of \\r\\n and \\n followed by at least one space or horizontal tab with a space\n // https://tools.ietf.org/html/rfc7230#section-3.2\n var preProcessedHeaders = rawHeaders.replace(/\\r?\\n[\\t ]+/g, ' ')\n // Avoiding split via regex to work around a common IE11 bug with the core-js 3.6.0 regex polyfill\n // https://github.com/github/fetch/issues/748\n // https://github.com/zloirock/core-js/issues/751\n preProcessedHeaders\n .split('\\r')\n .map(function(header) {\n return header.indexOf('\\n') === 0 ? header.substr(1, header.length) : header\n })\n .forEach(function(line) {\n var parts = line.split(':')\n var key = parts.shift().trim()\n if (key) {\n var value = parts.join(':').trim()\n headers.append(key, value)\n }\n })\n return headers\n}\n\nBody.call(Request.prototype)\n\nexport function Response(bodyInit, options) {\n if (!(this instanceof Response)) {\n throw new TypeError('Please use the \"new\" operator, this DOM object constructor cannot be called as a function.')\n }\n if (!options) {\n options = {}\n }\n\n this.type = 'default'\n this.status = options.status === undefined ? 200 : options.status\n this.ok = this.status >= 200 && this.status < 300\n this.statusText = options.statusText === undefined ? '' : '' + options.statusText\n this.headers = new Headers(options.headers)\n this.url = options.url || ''\n this._initBody(bodyInit)\n}\n\nBody.call(Response.prototype)\n\nResponse.prototype.clone = function() {\n return new Response(this._bodyInit, {\n status: this.status,\n statusText: this.statusText,\n headers: new Headers(this.headers),\n url: this.url\n })\n}\n\nResponse.error = function() {\n var response = new Response(null, {status: 0, statusText: ''})\n response.type = 'error'\n return response\n}\n\nvar redirectStatuses = [301, 302, 303, 307, 308]\n\nResponse.redirect = function(url, status) {\n if (redirectStatuses.indexOf(status) === -1) {\n throw new RangeError('Invalid status code')\n }\n\n return new Response(null, {status: status, headers: {location: url}})\n}\n\nexport var DOMException = global.DOMException\ntry {\n new DOMException()\n} catch (err) {\n DOMException = function(message, name) {\n this.message = message\n this.name = name\n var error = Error(message)\n this.stack = error.stack\n }\n DOMException.prototype = Object.create(Error.prototype)\n DOMException.prototype.constructor = DOMException\n}\n\nexport function fetch(input, init) {\n return new Promise(function(resolve, reject) {\n var request = new Request(input, init)\n\n if (request.signal && request.signal.aborted) {\n return reject(new DOMException('Aborted', 'AbortError'))\n }\n\n var xhr = new XMLHttpRequest()\n\n function abortXhr() {\n xhr.abort()\n }\n\n xhr.onload = function() {\n var options = {\n status: xhr.status,\n statusText: xhr.statusText,\n headers: parseHeaders(xhr.getAllResponseHeaders() || '')\n }\n options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL')\n var body = 'response' in xhr ? xhr.response : xhr.responseText\n setTimeout(function() {\n resolve(new Response(body, options))\n }, 0)\n }\n\n xhr.onerror = function() {\n setTimeout(function() {\n reject(new TypeError('Network request failed'))\n }, 0)\n }\n\n xhr.ontimeout = function() {\n setTimeout(function() {\n reject(new TypeError('Network request failed'))\n }, 0)\n }\n\n xhr.onabort = function() {\n setTimeout(function() {\n reject(new DOMException('Aborted', 'AbortError'))\n }, 0)\n }\n\n function fixUrl(url) {\n try {\n return url === '' && global.location.href ? global.location.href : url\n } catch (e) {\n return url\n }\n }\n\n xhr.open(request.method, fixUrl(request.url), true)\n\n if (request.credentials === 'include') {\n xhr.withCredentials = true\n } else if (request.credentials === 'omit') {\n xhr.withCredentials = false\n }\n\n if ('responseType' in xhr) {\n if (support.blob) {\n xhr.responseType = 'blob'\n } else if (\n support.arrayBuffer &&\n request.headers.get('Content-Type') &&\n request.headers.get('Content-Type').indexOf('application/octet-stream') !== -1\n ) {\n xhr.responseType = 'arraybuffer'\n }\n }\n\n if (init && typeof init.headers === 'object' && !(init.headers instanceof Headers)) {\n Object.getOwnPropertyNames(init.headers).forEach(function(name) {\n xhr.setRequestHeader(name, normalizeValue(init.headers[name]))\n })\n } else {\n request.headers.forEach(function(value, name) {\n xhr.setRequestHeader(name, value)\n })\n }\n\n if (request.signal) {\n request.signal.addEventListener('abort', abortXhr)\n\n xhr.onreadystatechange = function() {\n // DONE (success or failure)\n if (xhr.readyState === 4) {\n request.signal.removeEventListener('abort', abortXhr)\n }\n }\n }\n\n xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit)\n })\n}\n\nfetch.polyfill = true\n\nif (!global.fetch) {\n global.fetch = fetch\n global.Headers = Headers\n global.Request = Request\n global.Response = Response\n}\n","var check = function (it) {\n return it && it.Math == Math && it;\n};\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nmodule.exports =\n // eslint-disable-next-line es/no-global-this -- safe\n check(typeof globalThis == 'object' && globalThis) ||\n check(typeof window == 'object' && window) ||\n // eslint-disable-next-line no-restricted-globals -- safe\n check(typeof self == 'object' && self) ||\n check(typeof global == 'object' && global) ||\n // eslint-disable-next-line no-new-func -- fallback\n (function () { return this; })() || Function('return this')();\n","var global = require('../internals/global');\nvar userAgent = require('../internals/engine-user-agent');\n\nvar process = global.process;\nvar Deno = global.Deno;\nvar versions = process && process.versions || Deno && Deno.version;\nvar v8 = versions && versions.v8;\nvar match, version;\n\nif (v8) {\n match = v8.split('.');\n // in old Chrome, versions of V8 isn't V8 = Chrome / 10\n // but their correct versions are not interesting for us\n version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);\n}\n\n// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`\n// so check `userAgent` even if `.v8` exists, but 0\nif (!version && userAgent) {\n match = userAgent.match(/Edge\\/(\\d+)/);\n if (!match || match[1] >= 74) {\n match = userAgent.match(/Chrome\\/(\\d+)/);\n if (match) version = +match[1];\n }\n}\n\nmodule.exports = version;\n","// iterable DOM collections\n// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods\nmodule.exports = {\n CSSRuleList: 0,\n CSSStyleDeclaration: 0,\n CSSValueList: 0,\n ClientRectList: 0,\n DOMRectList: 0,\n DOMStringList: 0,\n DOMTokenList: 1,\n DataTransferItemList: 0,\n FileList: 0,\n HTMLAllCollection: 0,\n HTMLCollection: 0,\n HTMLFormElement: 0,\n HTMLSelectElement: 0,\n MediaList: 0,\n MimeTypeArray: 0,\n NamedNodeMap: 0,\n NodeList: 1,\n PaintRequestList: 0,\n Plugin: 0,\n PluginArray: 0,\n SVGLengthList: 0,\n SVGNumberList: 0,\n SVGPathSegList: 0,\n SVGPointList: 0,\n SVGStringList: 0,\n SVGTransformList: 0,\n SourceBufferList: 0,\n StyleSheetList: 0,\n TextTrackCueList: 0,\n TextTrackList: 0,\n TouchList: 0\n};\n","var documentAll = typeof document == 'object' && document.all;\n\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot\n// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing\nvar IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;\n\nmodule.exports = {\n all: documentAll,\n IS_HTMLDDA: IS_HTMLDDA\n};\n","var $documentAll = require('../internals/document-all');\n\nvar documentAll = $documentAll.all;\n\n// `IsCallable` abstract operation\n// https://tc39.es/ecma262/#sec-iscallable\nmodule.exports = $documentAll.IS_HTMLDDA ? function (argument) {\n return typeof argument == 'function' || argument === documentAll;\n} : function (argument) {\n return typeof argument == 'function';\n};\n","var isCallable = require('../internals/is-callable');\nvar $documentAll = require('../internals/document-all');\n\nvar documentAll = $documentAll.all;\n\nmodule.exports = $documentAll.IS_HTMLDDA ? function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll;\n} : function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it);\n};\n","var global = require('../internals/global');\nvar isObject = require('../internals/is-object');\n\nvar document = global.document;\n// typeof document.createElement is 'object' in old IE\nvar EXISTS = isObject(document) && isObject(document.createElement);\n\nmodule.exports = function (it) {\n return EXISTS ? document.createElement(it) : {};\n};\n","// in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`\nvar documentCreateElement = require('../internals/document-create-element');\n\nvar classList = documentCreateElement('span').classList;\nvar DOMTokenListPrototype = classList && classList.constructor && classList.constructor.prototype;\n\nmodule.exports = DOMTokenListPrototype === Object.prototype ? undefined : DOMTokenListPrototype;\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (error) {\n return true;\n }\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-function-prototype-bind -- safe\n var test = (function () { /* empty */ }).bind();\n // eslint-disable-next-line no-prototype-builtins -- safe\n return typeof test != 'function' || test.hasOwnProperty('prototype');\n});\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar call = FunctionPrototype.call;\nvar uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);\n\nmodule.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {\n return function () {\n return call.apply(fn, arguments);\n };\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar toString = uncurryThis({}.toString);\nvar stringSlice = uncurryThis(''.slice);\n\nmodule.exports = function (it) {\n return stringSlice(toString(it), 8, -1);\n};\n","var classofRaw = require('../internals/classof-raw');\nvar uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = function (fn) {\n // Nashorn bug:\n // https://github.com/zloirock/core-js/issues/1128\n // https://github.com/zloirock/core-js/issues/1130\n if (classofRaw(fn) === 'Function') return uncurryThis(fn);\n};\n","var $String = String;\n\nmodule.exports = function (argument) {\n try {\n return $String(argument);\n } catch (error) {\n return 'Object';\n }\n};\n","var isCallable = require('../internals/is-callable');\nvar tryToString = require('../internals/try-to-string');\n\nvar $TypeError = TypeError;\n\n// `Assert: IsCallable(argument) is true`\nmodule.exports = function (argument) {\n if (isCallable(argument)) return argument;\n throw $TypeError(tryToString(argument) + ' is not a function');\n};\n","var uncurryThis = require('../internals/function-uncurry-this-clause');\nvar aCallable = require('../internals/a-callable');\nvar NATIVE_BIND = require('../internals/function-bind-native');\n\nvar bind = uncurryThis(uncurryThis.bind);\n\n// optional / simple context binding\nmodule.exports = function (fn, that) {\n aCallable(fn);\n return that === undefined ? fn : NATIVE_BIND ? bind(fn, that) : function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar classof = require('../internals/classof-raw');\n\nvar $Object = Object;\nvar split = uncurryThis(''.split);\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nmodule.exports = fails(function () {\n // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n // eslint-disable-next-line no-prototype-builtins -- safe\n return !$Object('z').propertyIsEnumerable(0);\n}) ? function (it) {\n return classof(it) == 'String' ? split(it, '') : $Object(it);\n} : $Object;\n","// we can't use just `it == null` since of `document.all` special case\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec\nmodule.exports = function (it) {\n return it === null || it === undefined;\n};\n","var isNullOrUndefined = require('../internals/is-null-or-undefined');\n\nvar $TypeError = TypeError;\n\n// `RequireObjectCoercible` abstract operation\n// https://tc39.es/ecma262/#sec-requireobjectcoercible\nmodule.exports = function (it) {\n if (isNullOrUndefined(it)) throw $TypeError(\"Can't call method on \" + it);\n return it;\n};\n","var requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar $Object = Object;\n\n// `ToObject` abstract operation\n// https://tc39.es/ecma262/#sec-toobject\nmodule.exports = function (argument) {\n return $Object(requireObjectCoercible(argument));\n};\n","var ceil = Math.ceil;\nvar floor = Math.floor;\n\n// `Math.trunc` method\n// https://tc39.es/ecma262/#sec-math.trunc\n// eslint-disable-next-line es/no-math-trunc -- safe\nmodule.exports = Math.trunc || function trunc(x) {\n var n = +x;\n return (n > 0 ? floor : ceil)(n);\n};\n","var trunc = require('../internals/math-trunc');\n\n// `ToIntegerOrInfinity` abstract operation\n// https://tc39.es/ecma262/#sec-tointegerorinfinity\nmodule.exports = function (argument) {\n var number = +argument;\n // eslint-disable-next-line no-self-compare -- NaN check\n return number !== number || number === 0 ? 0 : trunc(number);\n};\n","var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar min = Math.min;\n\n// `ToLength` abstract operation\n// https://tc39.es/ecma262/#sec-tolength\nmodule.exports = function (argument) {\n return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991\n};\n","var toLength = require('../internals/to-length');\n\n// `LengthOfArrayLike` abstract operation\n// https://tc39.es/ecma262/#sec-lengthofarraylike\nmodule.exports = function (obj) {\n return toLength(obj.length);\n};\n","var classof = require('../internals/classof-raw');\n\n// `IsArray` abstract operation\n// https://tc39.es/ecma262/#sec-isarray\n// eslint-disable-next-line es/no-array-isarray -- safe\nmodule.exports = Array.isArray || function isArray(argument) {\n return classof(argument) == 'Array';\n};\n","var global = require('../internals/global');\n\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\n\nmodule.exports = function (key, value) {\n try {\n defineProperty(global, key, { value: value, configurable: true, writable: true });\n } catch (error) {\n global[key] = value;\n } return value;\n};\n","var global = require('../internals/global');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || defineGlobalProperty(SHARED, {});\n\nmodule.exports = store;\n","var IS_PURE = require('../internals/is-pure');\nvar store = require('../internals/shared-store');\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.28.0',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',\n license: 'https://github.com/zloirock/core-js/blob/v3.28.0/LICENSE',\n source: 'https://github.com/zloirock/core-js'\n});\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar toObject = require('../internals/to-object');\n\nvar hasOwnProperty = uncurryThis({}.hasOwnProperty);\n\n// `HasOwnProperty` abstract operation\n// https://tc39.es/ecma262/#sec-hasownproperty\n// eslint-disable-next-line es/no-object-hasown -- safe\nmodule.exports = Object.hasOwn || function hasOwn(it, key) {\n return hasOwnProperty(toObject(it), key);\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar id = 0;\nvar postfix = Math.random();\nvar toString = uncurryThis(1.0.toString);\n\nmodule.exports = function (key) {\n return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);\n};\n","module.exports = typeof navigator != 'undefined' && String(navigator.userAgent) || '';\n","/* eslint-disable es/no-symbol -- required for testing */\nvar V8_VERSION = require('../internals/engine-v8-version');\nvar fails = require('../internals/fails');\n\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing\nmodule.exports = !!Object.getOwnPropertySymbols && !fails(function () {\n var symbol = Symbol();\n // Chrome 38 Symbol has incorrect toString conversion\n // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances\n return !String(symbol) || !(Object(symbol) instanceof Symbol) ||\n // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances\n !Symbol.sham && V8_VERSION && V8_VERSION < 41;\n});\n","/* eslint-disable es/no-symbol -- required for testing */\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\n\nmodule.exports = NATIVE_SYMBOL\n && !Symbol.sham\n && typeof Symbol.iterator == 'symbol';\n","var global = require('../internals/global');\nvar shared = require('../internals/shared');\nvar hasOwn = require('../internals/has-own-property');\nvar uid = require('../internals/uid');\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar Symbol = global.Symbol;\nvar WellKnownSymbolsStore = shared('wks');\nvar createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid;\n\nmodule.exports = function (name) {\n if (!hasOwn(WellKnownSymbolsStore, name)) {\n WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name)\n ? Symbol[name]\n : createWellKnownSymbol('Symbol.' + name);\n } return WellKnownSymbolsStore[name];\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar test = {};\n\ntest[TO_STRING_TAG] = 'z';\n\nmodule.exports = String(test) === '[object z]';\n","var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar isCallable = require('../internals/is-callable');\nvar classofRaw = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar $Object = Object;\n\n// ES3 wrong here\nvar CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (error) { /* empty */ }\n};\n\n// getting tag from ES6+ `Object.prototype.toString`\nmodule.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {\n var O, tag, result;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag\n // builtinTag case\n : CORRECT_ARGUMENTS ? classofRaw(O)\n // ES3 arguments fallback\n : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;\n};\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar aFunction = function (argument) {\n return isCallable(argument) ? argument : undefined;\n};\n\nmodule.exports = function (namespace, method) {\n return arguments.length < 2 ? aFunction(global[namespace]) : global[namespace] && global[namespace][method];\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar isCallable = require('../internals/is-callable');\nvar store = require('../internals/shared-store');\n\nvar functionToString = uncurryThis(Function.toString);\n\n// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper\nif (!isCallable(store.inspectSource)) {\n store.inspectSource = function (it) {\n return functionToString(it);\n };\n}\n\nmodule.exports = store.inspectSource;\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar classof = require('../internals/classof');\nvar getBuiltIn = require('../internals/get-built-in');\nvar inspectSource = require('../internals/inspect-source');\n\nvar noop = function () { /* empty */ };\nvar empty = [];\nvar construct = getBuiltIn('Reflect', 'construct');\nvar constructorRegExp = /^\\s*(?:class|function)\\b/;\nvar exec = uncurryThis(constructorRegExp.exec);\nvar INCORRECT_TO_STRING = !constructorRegExp.exec(noop);\n\nvar isConstructorModern = function isConstructor(argument) {\n if (!isCallable(argument)) return false;\n try {\n construct(noop, empty, argument);\n return true;\n } catch (error) {\n return false;\n }\n};\n\nvar isConstructorLegacy = function isConstructor(argument) {\n if (!isCallable(argument)) return false;\n switch (classof(argument)) {\n case 'AsyncFunction':\n case 'GeneratorFunction':\n case 'AsyncGeneratorFunction': return false;\n }\n try {\n // we can't check .prototype since constructors produced by .bind haven't it\n // `Function#toString` throws on some built-it function in some legacy engines\n // (for example, `DOMQuad` and similar in FF41-)\n return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));\n } catch (error) {\n return true;\n }\n};\n\nisConstructorLegacy.sham = true;\n\n// `IsConstructor` abstract operation\n// https://tc39.es/ecma262/#sec-isconstructor\nmodule.exports = !construct || fails(function () {\n var called;\n return isConstructorModern(isConstructorModern.call)\n || !isConstructorModern(Object)\n || !isConstructorModern(function () { called = true; })\n || called;\n}) ? isConstructorLegacy : isConstructorModern;\n","var isArray = require('../internals/is-array');\nvar isConstructor = require('../internals/is-constructor');\nvar isObject = require('../internals/is-object');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar SPECIES = wellKnownSymbol('species');\nvar $Array = Array;\n\n// a part of `ArraySpeciesCreate` abstract operation\n// https://tc39.es/ecma262/#sec-arrayspeciescreate\nmodule.exports = function (originalArray) {\n var C;\n if (isArray(originalArray)) {\n C = originalArray.constructor;\n // cross-realm fallback\n if (isConstructor(C) && (C === $Array || isArray(C.prototype))) C = undefined;\n else if (isObject(C)) {\n C = C[SPECIES];\n if (C === null) C = undefined;\n }\n } return C === undefined ? $Array : C;\n};\n","var arraySpeciesConstructor = require('../internals/array-species-constructor');\n\n// `ArraySpeciesCreate` abstract operation\n// https://tc39.es/ecma262/#sec-arrayspeciescreate\nmodule.exports = function (originalArray, length) {\n return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);\n};\n","var bind = require('../internals/function-bind-context');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar IndexedObject = require('../internals/indexed-object');\nvar toObject = require('../internals/to-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar arraySpeciesCreate = require('../internals/array-species-create');\n\nvar push = uncurryThis([].push);\n\n// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation\nvar createMethod = function (TYPE) {\n var IS_MAP = TYPE == 1;\n var IS_FILTER = TYPE == 2;\n var IS_SOME = TYPE == 3;\n var IS_EVERY = TYPE == 4;\n var IS_FIND_INDEX = TYPE == 6;\n var IS_FILTER_REJECT = TYPE == 7;\n var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;\n return function ($this, callbackfn, that, specificCreate) {\n var O = toObject($this);\n var self = IndexedObject(O);\n var boundFunction = bind(callbackfn, that);\n var length = lengthOfArrayLike(self);\n var index = 0;\n var create = specificCreate || arraySpeciesCreate;\n var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;\n var value, result;\n for (;length > index; index++) if (NO_HOLES || index in self) {\n value = self[index];\n result = boundFunction(value, index, O);\n if (TYPE) {\n if (IS_MAP) target[index] = result; // map\n else if (result) switch (TYPE) {\n case 3: return true; // some\n case 5: return value; // find\n case 6: return index; // findIndex\n case 2: push(target, value); // filter\n } else switch (TYPE) {\n case 4: return false; // every\n case 7: push(target, value); // filterReject\n }\n }\n }\n return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.forEach` method\n // https://tc39.es/ecma262/#sec-array.prototype.foreach\n forEach: createMethod(0),\n // `Array.prototype.map` method\n // https://tc39.es/ecma262/#sec-array.prototype.map\n map: createMethod(1),\n // `Array.prototype.filter` method\n // https://tc39.es/ecma262/#sec-array.prototype.filter\n filter: createMethod(2),\n // `Array.prototype.some` method\n // https://tc39.es/ecma262/#sec-array.prototype.some\n some: createMethod(3),\n // `Array.prototype.every` method\n // https://tc39.es/ecma262/#sec-array.prototype.every\n every: createMethod(4),\n // `Array.prototype.find` method\n // https://tc39.es/ecma262/#sec-array.prototype.find\n find: createMethod(5),\n // `Array.prototype.findIndex` method\n // https://tc39.es/ecma262/#sec-array.prototype.findIndex\n findIndex: createMethod(6),\n // `Array.prototype.filterReject` method\n // https://github.com/tc39/proposal-array-filtering\n filterReject: createMethod(7)\n};\n","'use strict';\nvar fails = require('../internals/fails');\n\nmodule.exports = function (METHOD_NAME, argument) {\n var method = [][METHOD_NAME];\n return !!method && fails(function () {\n // eslint-disable-next-line no-useless-call -- required for testing\n method.call(null, argument || function () { return 1; }, 1);\n });\n};\n","'use strict';\nvar $forEach = require('../internals/array-iteration').forEach;\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\n\nvar STRICT_METHOD = arrayMethodIsStrict('forEach');\n\n// `Array.prototype.forEach` method implementation\n// https://tc39.es/ecma262/#sec-array.prototype.foreach\nmodule.exports = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {\n return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n// eslint-disable-next-line es/no-array-prototype-foreach -- safe\n} : [].forEach;\n","var fails = require('../internals/fails');\n\n// Detect IE8's incomplete defineProperty implementation\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;\n});\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar createElement = require('../internals/document-create-element');\n\n// Thanks to IE8 for its funny defineProperty\nmodule.exports = !DESCRIPTORS && !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(createElement('div'), 'a', {\n get: function () { return 7; }\n }).a != 7;\n});\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\n\n// V8 ~ Chrome 36-\n// https://bugs.chromium.org/p/v8/issues/detail?id=3334\nmodule.exports = DESCRIPTORS && fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(function () { /* empty */ }, 'prototype', {\n value: 42,\n writable: false\n }).prototype != 42;\n});\n","var isObject = require('../internals/is-object');\n\nvar $String = String;\nvar $TypeError = TypeError;\n\n// `Assert: Type(argument) is Object`\nmodule.exports = function (argument) {\n if (isObject(argument)) return argument;\n throw $TypeError($String(argument) + ' is not an object');\n};\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar call = Function.prototype.call;\n\nmodule.exports = NATIVE_BIND ? call.bind(call) : function () {\n return call.apply(call, arguments);\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = uncurryThis({}.isPrototypeOf);\n","var getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar $Object = Object;\n\nmodule.exports = USE_SYMBOL_AS_UID ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n var $Symbol = getBuiltIn('Symbol');\n return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));\n};\n","var aCallable = require('../internals/a-callable');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\n\n// `GetMethod` abstract operation\n// https://tc39.es/ecma262/#sec-getmethod\nmodule.exports = function (V, P) {\n var func = V[P];\n return isNullOrUndefined(func) ? undefined : aCallable(func);\n};\n","var call = require('../internals/function-call');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\n\nvar $TypeError = TypeError;\n\n// `OrdinaryToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-ordinarytoprimitive\nmodule.exports = function (input, pref) {\n var fn, val;\n if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;\n if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n throw $TypeError(\"Can't convert object to primitive value\");\n};\n","var call = require('../internals/function-call');\nvar isObject = require('../internals/is-object');\nvar isSymbol = require('../internals/is-symbol');\nvar getMethod = require('../internals/get-method');\nvar ordinaryToPrimitive = require('../internals/ordinary-to-primitive');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar $TypeError = TypeError;\nvar TO_PRIMITIVE = wellKnownSymbol('toPrimitive');\n\n// `ToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-toprimitive\nmodule.exports = function (input, pref) {\n if (!isObject(input) || isSymbol(input)) return input;\n var exoticToPrim = getMethod(input, TO_PRIMITIVE);\n var result;\n if (exoticToPrim) {\n if (pref === undefined) pref = 'default';\n result = call(exoticToPrim, input, pref);\n if (!isObject(result) || isSymbol(result)) return result;\n throw $TypeError(\"Can't convert object to primitive value\");\n }\n if (pref === undefined) pref = 'number';\n return ordinaryToPrimitive(input, pref);\n};\n","var toPrimitive = require('../internals/to-primitive');\nvar isSymbol = require('../internals/is-symbol');\n\n// `ToPropertyKey` abstract operation\n// https://tc39.es/ecma262/#sec-topropertykey\nmodule.exports = function (argument) {\n var key = toPrimitive(argument, 'string');\n return isSymbol(key) ? key : key + '';\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar anObject = require('../internals/an-object');\nvar toPropertyKey = require('../internals/to-property-key');\n\nvar $TypeError = TypeError;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar $defineProperty = Object.defineProperty;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar ENUMERABLE = 'enumerable';\nvar CONFIGURABLE = 'configurable';\nvar WRITABLE = 'writable';\n\n// `Object.defineProperty` method\n// https://tc39.es/ecma262/#sec-object.defineproperty\nexports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {\n var current = $getOwnPropertyDescriptor(O, P);\n if (current && current[WRITABLE]) {\n O[P] = Attributes.value;\n Attributes = {\n configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],\n enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],\n writable: false\n };\n }\n } return $defineProperty(O, P, Attributes);\n} : $defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return $defineProperty(O, P, Attributes);\n } catch (error) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw $TypeError('Accessors not supported');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = DESCRIPTORS ? function (object, key, value) {\n return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","var global = require('../internals/global');\nvar DOMIterables = require('../internals/dom-iterables');\nvar DOMTokenListPrototype = require('../internals/dom-token-list-prototype');\nvar forEach = require('../internals/array-for-each');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\n\nvar handlePrototype = function (CollectionPrototype) {\n // some Chrome versions have non-configurable methods on DOMTokenList\n if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {\n createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach);\n } catch (error) {\n CollectionPrototype.forEach = forEach;\n }\n};\n\nfor (var COLLECTION_NAME in DOMIterables) {\n if (DOMIterables[COLLECTION_NAME]) {\n handlePrototype(global[COLLECTION_NAME] && global[COLLECTION_NAME].prototype);\n }\n}\n\nhandlePrototype(DOMTokenListPrototype);\n","// toObject with fallback for non-array-like ES3 strings\nvar IndexedObject = require('../internals/indexed-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nmodule.exports = function (it) {\n return IndexedObject(requireObjectCoercible(it));\n};\n","/* global ActiveXObject -- old IE, WSH */\nvar anObject = require('../internals/an-object');\nvar definePropertiesModule = require('../internals/object-define-properties');\nvar enumBugKeys = require('../internals/enum-bug-keys');\nvar hiddenKeys = require('../internals/hidden-keys');\nvar html = require('../internals/html');\nvar documentCreateElement = require('../internals/document-create-element');\nvar sharedKey = require('../internals/shared-key');\n\nvar GT = '>';\nvar LT = '<';\nvar PROTOTYPE = 'prototype';\nvar SCRIPT = 'script';\nvar IE_PROTO = sharedKey('IE_PROTO');\n\nvar EmptyConstructor = function () { /* empty */ };\n\nvar scriptTag = function (content) {\n return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;\n};\n\n// Create object with fake `null` prototype: use ActiveX Object with cleared prototype\nvar NullProtoObjectViaActiveX = function (activeXDocument) {\n activeXDocument.write(scriptTag(''));\n activeXDocument.close();\n var temp = activeXDocument.parentWindow.Object;\n activeXDocument = null; // avoid memory leak\n return temp;\n};\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar NullProtoObjectViaIFrame = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = documentCreateElement('iframe');\n var JS = 'java' + SCRIPT + ':';\n var iframeDocument;\n iframe.style.display = 'none';\n html.appendChild(iframe);\n // https://github.com/zloirock/core-js/issues/475\n iframe.src = String(JS);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(scriptTag('document.F=Object'));\n iframeDocument.close();\n return iframeDocument.F;\n};\n\n// Check for document.domain and active x support\n// No need to use active x approach when document.domain is not set\n// see https://github.com/es-shims/es5-shim/issues/150\n// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346\n// avoid IE GC bug\nvar activeXDocument;\nvar NullProtoObject = function () {\n try {\n activeXDocument = new ActiveXObject('htmlfile');\n } catch (error) { /* ignore */ }\n NullProtoObject = typeof document != 'undefined'\n ? document.domain && activeXDocument\n ? NullProtoObjectViaActiveX(activeXDocument) // old IE\n : NullProtoObjectViaIFrame()\n : NullProtoObjectViaActiveX(activeXDocument); // WSH\n var length = enumBugKeys.length;\n while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];\n return NullProtoObject();\n};\n\nhiddenKeys[IE_PROTO] = true;\n\n// `Object.create` method\n// https://tc39.es/ecma262/#sec-object.create\n// eslint-disable-next-line es/no-object-create -- safe\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n EmptyConstructor[PROTOTYPE] = anObject(O);\n result = new EmptyConstructor();\n EmptyConstructor[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = NullProtoObject();\n return Properties === undefined ? result : definePropertiesModule.f(result, Properties);\n};\n","var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar max = Math.max;\nvar min = Math.min;\n\n// Helper for a popular repeating case of the spec:\n// Let integer be ? ToInteger(index).\n// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\nmodule.exports = function (index, length) {\n var integer = toIntegerOrInfinity(index);\n return integer < 0 ? max(integer + length, 0) : min(integer, length);\n};\n","var toIndexedObject = require('../internals/to-indexed-object');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\n\n// `Array.prototype.{ indexOf, includes }` methods implementation\nvar createMethod = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIndexedObject($this);\n var length = lengthOfArrayLike(O);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare -- NaN check\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare -- NaN check\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) {\n if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.includes` method\n // https://tc39.es/ecma262/#sec-array.prototype.includes\n includes: createMethod(true),\n // `Array.prototype.indexOf` method\n // https://tc39.es/ecma262/#sec-array.prototype.indexof\n indexOf: createMethod(false)\n};\n","module.exports = {};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar hasOwn = require('../internals/has-own-property');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar indexOf = require('../internals/array-includes').indexOf;\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar push = uncurryThis([].push);\n\nmodule.exports = function (object, names) {\n var O = toIndexedObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (hasOwn(O, key = names[i++])) {\n ~indexOf(result, key) || push(result, key);\n }\n return result;\n};\n","// IE8- don't enum bug keys\nmodule.exports = [\n 'constructor',\n 'hasOwnProperty',\n 'isPrototypeOf',\n 'propertyIsEnumerable',\n 'toLocaleString',\n 'toString',\n 'valueOf'\n];\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\n// `Object.keys` method\n// https://tc39.es/ecma262/#sec-object.keys\n// eslint-disable-next-line es/no-object-keys -- safe\nmodule.exports = Object.keys || function keys(O) {\n return internalObjectKeys(O, enumBugKeys);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar definePropertyModule = require('../internals/object-define-property');\nvar anObject = require('../internals/an-object');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar objectKeys = require('../internals/object-keys');\n\n// `Object.defineProperties` method\n// https://tc39.es/ecma262/#sec-object.defineproperties\n// eslint-disable-next-line es/no-object-defineproperties -- safe\nexports.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var props = toIndexedObject(Properties);\n var keys = objectKeys(Properties);\n var length = keys.length;\n var index = 0;\n var key;\n while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);\n return O;\n};\n","var getBuiltIn = require('../internals/get-built-in');\n\nmodule.exports = getBuiltIn('document', 'documentElement');\n","var shared = require('../internals/shared');\nvar uid = require('../internals/uid');\n\nvar keys = shared('keys');\n\nmodule.exports = function (key) {\n return keys[key] || (keys[key] = uid(key));\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\nvar create = require('../internals/object-create');\nvar defineProperty = require('../internals/object-define-property').f;\n\nvar UNSCOPABLES = wellKnownSymbol('unscopables');\nvar ArrayPrototype = Array.prototype;\n\n// Array.prototype[@@unscopables]\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\nif (ArrayPrototype[UNSCOPABLES] == undefined) {\n defineProperty(ArrayPrototype, UNSCOPABLES, {\n configurable: true,\n value: create(null)\n });\n}\n\n// add a key to Array.prototype[@@unscopables]\nmodule.exports = function (key) {\n ArrayPrototype[UNSCOPABLES][key] = true;\n};\n","var NATIVE_WEAK_MAP = require('../internals/weak-map-basic-detection');\nvar global = require('../internals/global');\nvar isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar hasOwn = require('../internals/has-own-property');\nvar shared = require('../internals/shared-store');\nvar sharedKey = require('../internals/shared-key');\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar OBJECT_ALREADY_INITIALIZED = 'Object already initialized';\nvar TypeError = global.TypeError;\nvar WeakMap = global.WeakMap;\nvar set, get, has;\n\nvar enforce = function (it) {\n return has(it) ? get(it) : set(it, {});\n};\n\nvar getterFor = function (TYPE) {\n return function (it) {\n var state;\n if (!isObject(it) || (state = get(it)).type !== TYPE) {\n throw TypeError('Incompatible receiver, ' + TYPE + ' required');\n } return state;\n };\n};\n\nif (NATIVE_WEAK_MAP || shared.state) {\n var store = shared.state || (shared.state = new WeakMap());\n /* eslint-disable no-self-assign -- prototype methods protection */\n store.get = store.get;\n store.has = store.has;\n store.set = store.set;\n /* eslint-enable no-self-assign -- prototype methods protection */\n set = function (it, metadata) {\n if (store.has(it)) throw TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n store.set(it, metadata);\n return metadata;\n };\n get = function (it) {\n return store.get(it) || {};\n };\n has = function (it) {\n return store.has(it);\n };\n} else {\n var STATE = sharedKey('state');\n hiddenKeys[STATE] = true;\n set = function (it, metadata) {\n if (hasOwn(it, STATE)) throw TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n createNonEnumerableProperty(it, STATE, metadata);\n return metadata;\n };\n get = function (it) {\n return hasOwn(it, STATE) ? it[STATE] : {};\n };\n has = function (it) {\n return hasOwn(it, STATE);\n };\n}\n\nmodule.exports = {\n set: set,\n get: get,\n has: has,\n enforce: enforce,\n getterFor: getterFor\n};\n","module.exports = {};\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar WeakMap = global.WeakMap;\n\nmodule.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));\n","'use strict';\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar create = require('../internals/object-create');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_PURE = require('../internals/is-pure');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar BUGGY_SAFARI_ITERATORS = false;\n\n// `%IteratorPrototype%` object\n// https://tc39.es/ecma262/#sec-%iteratorprototype%-object\nvar IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;\n\n/* eslint-disable es/no-array-prototype-keys -- safe */\nif ([].keys) {\n arrayIterator = [].keys();\n // Safari 8 has buggy iterators w/o `next`\n if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;\n else {\n PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator));\n if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;\n }\n}\n\nvar NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype) || fails(function () {\n var test = {};\n // FF44- legacy iterators case\n return IteratorPrototype[ITERATOR].call(test) !== test;\n});\n\nif (NEW_ITERATOR_PROTOTYPE) IteratorPrototype = {};\nelse if (IS_PURE) IteratorPrototype = create(IteratorPrototype);\n\n// `%IteratorPrototype%[@@iterator]()` method\n// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator\nif (!isCallable(IteratorPrototype[ITERATOR])) {\n defineBuiltIn(IteratorPrototype, ITERATOR, function () {\n return this;\n });\n}\n\nmodule.exports = {\n IteratorPrototype: IteratorPrototype,\n BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS\n};\n","'use strict';\nvar $propertyIsEnumerable = {}.propertyIsEnumerable;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Nashorn ~ JDK8 bug\nvar NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);\n\n// `Object.prototype.propertyIsEnumerable` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable\nexports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {\n var descriptor = getOwnPropertyDescriptor(this, V);\n return !!descriptor && descriptor.enumerable;\n} : $propertyIsEnumerable;\n","var DESCRIPTORS = require('../internals/descriptors');\nvar call = require('../internals/function-call');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPropertyKey = require('../internals/to-property-key');\nvar hasOwn = require('../internals/has-own-property');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\n\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor\nexports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject(O);\n P = toPropertyKey(P);\n if (IE8_DOM_DEFINE) try {\n return $getOwnPropertyDescriptor(O, P);\n } catch (error) { /* empty */ }\n if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar hasOwn = require('../internals/has-own-property');\n\nvar FunctionPrototype = Function.prototype;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;\n\nvar EXISTS = hasOwn(FunctionPrototype, 'name');\n// additional protection from minified / mangled / dropped function names\nvar PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';\nvar CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));\n\nmodule.exports = {\n EXISTS: EXISTS,\n PROPER: PROPER,\n CONFIGURABLE: CONFIGURABLE\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar hasOwn = require('../internals/has-own-property');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar CONFIGURABLE_FUNCTION_NAME = require('../internals/function-name').CONFIGURABLE;\nvar inspectSource = require('../internals/inspect-source');\nvar InternalStateModule = require('../internals/internal-state');\n\nvar enforceInternalState = InternalStateModule.enforce;\nvar getInternalState = InternalStateModule.get;\nvar $String = String;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\nvar stringSlice = uncurryThis(''.slice);\nvar replace = uncurryThis(''.replace);\nvar join = uncurryThis([].join);\n\nvar CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {\n return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;\n});\n\nvar TEMPLATE = String(String).split('String');\n\nvar makeBuiltIn = module.exports = function (value, name, options) {\n if (stringSlice($String(name), 0, 7) === 'Symbol(') {\n name = '[' + replace($String(name), /^Symbol\\(([^)]*)\\)/, '$1') + ']';\n }\n if (options && options.getter) name = 'get ' + name;\n if (options && options.setter) name = 'set ' + name;\n if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {\n if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });\n else value.name = name;\n }\n if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {\n defineProperty(value, 'length', { value: options.arity });\n }\n try {\n if (options && hasOwn(options, 'constructor') && options.constructor) {\n if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });\n // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable\n } else if (value.prototype) value.prototype = undefined;\n } catch (error) { /* empty */ }\n var state = enforceInternalState(value);\n if (!hasOwn(state, 'source')) {\n state.source = join(TEMPLATE, typeof name == 'string' ? name : '');\n } return value;\n};\n\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n// eslint-disable-next-line no-extend-native -- required\nFunction.prototype.toString = makeBuiltIn(function toString() {\n return isCallable(this) && getInternalState(this).source || inspectSource(this);\n}, 'toString');\n","var isCallable = require('../internals/is-callable');\nvar definePropertyModule = require('../internals/object-define-property');\nvar makeBuiltIn = require('../internals/make-built-in');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nmodule.exports = function (O, key, value, options) {\n if (!options) options = {};\n var simple = options.enumerable;\n var name = options.name !== undefined ? options.name : key;\n if (isCallable(value)) makeBuiltIn(value, name, options);\n if (options.global) {\n if (simple) O[key] = value;\n else defineGlobalProperty(key, value);\n } else {\n try {\n if (!options.unsafe) delete O[key];\n else if (O[key]) simple = true;\n } catch (error) { /* empty */ }\n if (simple) O[key] = value;\n else definePropertyModule.f(O, key, {\n value: value,\n enumerable: false,\n configurable: !options.nonConfigurable,\n writable: !options.nonWritable\n });\n } return O;\n};\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\nvar hiddenKeys = enumBugKeys.concat('length', 'prototype');\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.es/ecma262/#sec-object.getownpropertynames\n// eslint-disable-next-line es/no-object-getownpropertynames -- safe\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return internalObjectKeys(O, hiddenKeys);\n};\n","// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe\nexports.f = Object.getOwnPropertySymbols;\n","var getBuiltIn = require('../internals/get-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar anObject = require('../internals/an-object');\n\nvar concat = uncurryThis([].concat);\n\n// all object keys, includes non-enumerable and symbols\nmodule.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {\n var keys = getOwnPropertyNamesModule.f(anObject(it));\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;\n};\n","var hasOwn = require('../internals/has-own-property');\nvar ownKeys = require('../internals/own-keys');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar definePropertyModule = require('../internals/object-define-property');\n\nmodule.exports = function (target, source, exceptions) {\n var keys = ownKeys(source);\n var defineProperty = definePropertyModule.f;\n var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {\n defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n }\n};\n","var fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\n\nvar replacement = /#|\\.prototype\\./;\n\nvar isForced = function (feature, detection) {\n var value = data[normalize(feature)];\n return value == POLYFILL ? true\n : value == NATIVE ? false\n : isCallable(detection) ? fails(detection)\n : !!detection;\n};\n\nvar normalize = isForced.normalize = function (string) {\n return String(string).replace(replacement, '.').toLowerCase();\n};\n\nvar data = isForced.data = {};\nvar NATIVE = isForced.NATIVE = 'N';\nvar POLYFILL = isForced.POLYFILL = 'P';\n\nmodule.exports = isForced;\n","var global = require('../internals/global');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar defineGlobalProperty = require('../internals/define-global-property');\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar isForced = require('../internals/is-forced');\n\n/*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.dontCallGetSet - prevent calling a getter on target\n options.name - the .name of the function if it does not match the key\n*/\nmodule.exports = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var FORCED, target, key, targetProperty, sourceProperty, descriptor;\n if (GLOBAL) {\n target = global;\n } else if (STATIC) {\n target = global[TARGET] || defineGlobalProperty(TARGET, {});\n } else {\n target = (global[TARGET] || {}).prototype;\n }\n if (target) for (key in source) {\n sourceProperty = source[key];\n if (options.dontCallGetSet) {\n descriptor = getOwnPropertyDescriptor(target, key);\n targetProperty = descriptor && descriptor.value;\n } else targetProperty = target[key];\n FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n // contained in target\n if (!FORCED && targetProperty !== undefined) {\n if (typeof sourceProperty == typeof targetProperty) continue;\n copyConstructorProperties(sourceProperty, targetProperty);\n }\n // add a flag to not completely full polyfills\n if (options.sham || (targetProperty && targetProperty.sham)) {\n createNonEnumerableProperty(sourceProperty, 'sham', true);\n }\n defineBuiltIn(target, key, sourceProperty, options);\n }\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n function F() { /* empty */ }\n F.prototype.constructor = null;\n // eslint-disable-next-line es/no-object-getprototypeof -- required for testing\n return Object.getPrototypeOf(new F()) !== F.prototype;\n});\n","var hasOwn = require('../internals/has-own-property');\nvar isCallable = require('../internals/is-callable');\nvar toObject = require('../internals/to-object');\nvar sharedKey = require('../internals/shared-key');\nvar CORRECT_PROTOTYPE_GETTER = require('../internals/correct-prototype-getter');\n\nvar IE_PROTO = sharedKey('IE_PROTO');\nvar $Object = Object;\nvar ObjectPrototype = $Object.prototype;\n\n// `Object.getPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.getprototypeof\n// eslint-disable-next-line es/no-object-getprototypeof -- safe\nmodule.exports = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {\n var object = toObject(O);\n if (hasOwn(object, IE_PROTO)) return object[IE_PROTO];\n var constructor = object.constructor;\n if (isCallable(constructor) && object instanceof constructor) {\n return constructor.prototype;\n } return object instanceof $Object ? ObjectPrototype : null;\n};\n","var defineProperty = require('../internals/object-define-property').f;\nvar hasOwn = require('../internals/has-own-property');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\n\nmodule.exports = function (target, TAG, STATIC) {\n if (target && !STATIC) target = target.prototype;\n if (target && !hasOwn(target, TO_STRING_TAG)) {\n defineProperty(target, TO_STRING_TAG, { configurable: true, value: TAG });\n }\n};\n","'use strict';\nvar IteratorPrototype = require('../internals/iterators-core').IteratorPrototype;\nvar create = require('../internals/object-create');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar Iterators = require('../internals/iterators');\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {\n var TO_STRING_TAG = NAME + ' Iterator';\n IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });\n setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);\n Iterators[TO_STRING_TAG] = returnThis;\n return IteratorConstructor;\n};\n","var isCallable = require('../internals/is-callable');\n\nvar $String = String;\nvar $TypeError = TypeError;\n\nmodule.exports = function (argument) {\n if (typeof argument == 'object' || isCallable(argument)) return argument;\n throw $TypeError(\"Can't set \" + $String(argument) + ' as a prototype');\n};\n","/* eslint-disable no-proto -- safe */\nvar uncurryThisAccessor = require('../internals/function-uncurry-this-accessor');\nvar anObject = require('../internals/an-object');\nvar aPossiblePrototype = require('../internals/a-possible-prototype');\n\n// `Object.setPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.setprototypeof\n// Works with __proto__ only. Old v8 can't work with null proto objects.\n// eslint-disable-next-line es/no-object-setprototypeof -- safe\nmodule.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {\n var CORRECT_SETTER = false;\n var test = {};\n var setter;\n try {\n setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');\n setter(test, []);\n CORRECT_SETTER = test instanceof Array;\n } catch (error) { /* empty */ }\n return function setPrototypeOf(O, proto) {\n anObject(O);\n aPossiblePrototype(proto);\n if (CORRECT_SETTER) setter(O, proto);\n else O.__proto__ = proto;\n return O;\n };\n}() : undefined);\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar aCallable = require('../internals/a-callable');\n\nmodule.exports = function (object, key, method) {\n try {\n // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\n return uncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));\n } catch (error) { /* empty */ }\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar IS_PURE = require('../internals/is-pure');\nvar FunctionName = require('../internals/function-name');\nvar isCallable = require('../internals/is-callable');\nvar createIteratorConstructor = require('../internals/iterator-create-constructor');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar Iterators = require('../internals/iterators');\nvar IteratorsCore = require('../internals/iterators-core');\n\nvar PROPER_FUNCTION_NAME = FunctionName.PROPER;\nvar CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;\nvar IteratorPrototype = IteratorsCore.IteratorPrototype;\nvar BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;\nvar ITERATOR = wellKnownSymbol('iterator');\nvar KEYS = 'keys';\nvar VALUES = 'values';\nvar ENTRIES = 'entries';\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {\n createIteratorConstructor(IteratorConstructor, NAME, next);\n\n var getIterationMethod = function (KIND) {\n if (KIND === DEFAULT && defaultIterator) return defaultIterator;\n if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];\n switch (KIND) {\n case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };\n case VALUES: return function values() { return new IteratorConstructor(this, KIND); };\n case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };\n } return function () { return new IteratorConstructor(this); };\n };\n\n var TO_STRING_TAG = NAME + ' Iterator';\n var INCORRECT_VALUES_NAME = false;\n var IterablePrototype = Iterable.prototype;\n var nativeIterator = IterablePrototype[ITERATOR]\n || IterablePrototype['@@iterator']\n || DEFAULT && IterablePrototype[DEFAULT];\n var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);\n var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;\n var CurrentIteratorPrototype, methods, KEY;\n\n // fix native\n if (anyNativeIterator) {\n CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));\n if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {\n if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {\n if (setPrototypeOf) {\n setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);\n } else if (!isCallable(CurrentIteratorPrototype[ITERATOR])) {\n defineBuiltIn(CurrentIteratorPrototype, ITERATOR, returnThis);\n }\n }\n // Set @@toStringTag to native iterators\n setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true);\n if (IS_PURE) Iterators[TO_STRING_TAG] = returnThis;\n }\n }\n\n // fix Array.prototype.{ values, @@iterator }.name in V8 / FF\n if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {\n if (!IS_PURE && CONFIGURABLE_FUNCTION_NAME) {\n createNonEnumerableProperty(IterablePrototype, 'name', VALUES);\n } else {\n INCORRECT_VALUES_NAME = true;\n defaultIterator = function values() { return call(nativeIterator, this); };\n }\n }\n\n // export additional methods\n if (DEFAULT) {\n methods = {\n values: getIterationMethod(VALUES),\n keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),\n entries: getIterationMethod(ENTRIES)\n };\n if (FORCED) for (KEY in methods) {\n if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {\n defineBuiltIn(IterablePrototype, KEY, methods[KEY]);\n }\n } else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);\n }\n\n // define iterator\n if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) {\n defineBuiltIn(IterablePrototype, ITERATOR, defaultIterator, { name: DEFAULT });\n }\n Iterators[NAME] = defaultIterator;\n\n return methods;\n};\n","// `CreateIterResultObject` abstract operation\n// https://tc39.es/ecma262/#sec-createiterresultobject\nmodule.exports = function (value, done) {\n return { value: value, done: done };\n};\n","'use strict';\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar addToUnscopables = require('../internals/add-to-unscopables');\nvar Iterators = require('../internals/iterators');\nvar InternalStateModule = require('../internals/internal-state');\nvar defineProperty = require('../internals/object-define-property').f;\nvar defineIterator = require('../internals/iterator-define');\nvar createIterResultObject = require('../internals/create-iter-result-object');\nvar IS_PURE = require('../internals/is-pure');\nvar DESCRIPTORS = require('../internals/descriptors');\n\nvar ARRAY_ITERATOR = 'Array Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);\n\n// `Array.prototype.entries` method\n// https://tc39.es/ecma262/#sec-array.prototype.entries\n// `Array.prototype.keys` method\n// https://tc39.es/ecma262/#sec-array.prototype.keys\n// `Array.prototype.values` method\n// https://tc39.es/ecma262/#sec-array.prototype.values\n// `Array.prototype[@@iterator]` method\n// https://tc39.es/ecma262/#sec-array.prototype-@@iterator\n// `CreateArrayIterator` internal method\n// https://tc39.es/ecma262/#sec-createarrayiterator\nmodule.exports = defineIterator(Array, 'Array', function (iterated, kind) {\n setInternalState(this, {\n type: ARRAY_ITERATOR,\n target: toIndexedObject(iterated), // target\n index: 0, // next index\n kind: kind // kind\n });\n// `%ArrayIteratorPrototype%.next` method\n// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next\n}, function () {\n var state = getInternalState(this);\n var target = state.target;\n var kind = state.kind;\n var index = state.index++;\n if (!target || index >= target.length) {\n state.target = undefined;\n return createIterResultObject(undefined, true);\n }\n if (kind == 'keys') return createIterResultObject(index, false);\n if (kind == 'values') return createIterResultObject(target[index], false);\n return createIterResultObject([index, target[index]], false);\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values%\n// https://tc39.es/ecma262/#sec-createunmappedargumentsobject\n// https://tc39.es/ecma262/#sec-createmappedargumentsobject\nvar values = Iterators.Arguments = Iterators.Array;\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n\n// V8 ~ Chrome 45- bug\nif (!IS_PURE && DESCRIPTORS && values.name !== 'values') try {\n defineProperty(values, 'name', { value: 'values' });\n} catch (error) { /* empty */ }\n","var global = require('../internals/global');\nvar DOMIterables = require('../internals/dom-iterables');\nvar DOMTokenListPrototype = require('../internals/dom-token-list-prototype');\nvar ArrayIteratorMethods = require('../modules/es.array.iterator');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar ArrayValues = ArrayIteratorMethods.values;\n\nvar handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {\n if (CollectionPrototype) {\n // some Chrome versions have non-configurable methods on DOMTokenList\n if (CollectionPrototype[ITERATOR] !== ArrayValues) try {\n createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);\n } catch (error) {\n CollectionPrototype[ITERATOR] = ArrayValues;\n }\n if (!CollectionPrototype[TO_STRING_TAG]) {\n createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);\n }\n if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {\n // some Chrome versions have non-configurable methods on DOMTokenList\n if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {\n createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);\n } catch (error) {\n CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];\n }\n }\n }\n};\n\nfor (var COLLECTION_NAME in DOMIterables) {\n handlePrototype(global[COLLECTION_NAME] && global[COLLECTION_NAME].prototype, COLLECTION_NAME);\n}\n\nhandlePrototype(DOMTokenListPrototype, 'DOMTokenList');\n","var global = require('../internals/global');\n\nmodule.exports = global;\n","'use strict';\n/* eslint-disable es/no-array-prototype-indexof -- required for testing */\nvar $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this-clause');\nvar $indexOf = require('../internals/array-includes').indexOf;\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\n\nvar nativeIndexOf = uncurryThis([].indexOf);\n\nvar NEGATIVE_ZERO = !!nativeIndexOf && 1 / nativeIndexOf([1], 1, -0) < 0;\nvar FORCED = NEGATIVE_ZERO || !arrayMethodIsStrict('indexOf');\n\n// `Array.prototype.indexOf` method\n// https://tc39.es/ecma262/#sec-array.prototype.indexof\n$({ target: 'Array', proto: true, forced: FORCED }, {\n indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {\n var fromIndex = arguments.length > 1 ? arguments[1] : undefined;\n return NEGATIVE_ZERO\n // convert -0 to +0\n ? nativeIndexOf(this, searchElement, fromIndex) || 0\n : $indexOf(this, searchElement, fromIndex);\n }\n});\n","var $TypeError = TypeError;\nvar MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991\n\nmodule.exports = function (it) {\n if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');\n return it;\n};\n","'use strict';\nvar toPropertyKey = require('../internals/to-property-key');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = function (object, key, value) {\n var propertyKey = toPropertyKey(key);\n if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));\n else object[propertyKey] = value;\n};\n","var fails = require('../internals/fails');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar V8_VERSION = require('../internals/engine-v8-version');\n\nvar SPECIES = wellKnownSymbol('species');\n\nmodule.exports = function (METHOD_NAME) {\n // We can't use this feature detection in V8 since it causes\n // deoptimization and serious performance degradation\n // https://github.com/zloirock/core-js/issues/677\n return V8_VERSION >= 51 || !fails(function () {\n var array = [];\n var constructor = array.constructor = {};\n constructor[SPECIES] = function () {\n return { foo: 1 };\n };\n return array[METHOD_NAME](Boolean).foo !== 1;\n });\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar fails = require('../internals/fails');\nvar isArray = require('../internals/is-array');\nvar isObject = require('../internals/is-object');\nvar toObject = require('../internals/to-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar doesNotExceedSafeInteger = require('../internals/does-not-exceed-safe-integer');\nvar createProperty = require('../internals/create-property');\nvar arraySpeciesCreate = require('../internals/array-species-create');\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar V8_VERSION = require('../internals/engine-v8-version');\n\nvar IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');\n\n// We can't use this feature detection in V8 since it causes\n// deoptimization and serious performance degradation\n// https://github.com/zloirock/core-js/issues/679\nvar IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () {\n var array = [];\n array[IS_CONCAT_SPREADABLE] = false;\n return array.concat()[0] !== array;\n});\n\nvar isConcatSpreadable = function (O) {\n if (!isObject(O)) return false;\n var spreadable = O[IS_CONCAT_SPREADABLE];\n return spreadable !== undefined ? !!spreadable : isArray(O);\n};\n\nvar FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport('concat');\n\n// `Array.prototype.concat` method\n// https://tc39.es/ecma262/#sec-array.prototype.concat\n// with adding support of @@isConcatSpreadable and @@species\n$({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n concat: function concat(arg) {\n var O = toObject(this);\n var A = arraySpeciesCreate(O, 0);\n var n = 0;\n var i, k, length, len, E;\n for (i = -1, length = arguments.length; i < length; i++) {\n E = i === -1 ? O : arguments[i];\n if (isConcatSpreadable(E)) {\n len = lengthOfArrayLike(E);\n doesNotExceedSafeInteger(n + len);\n for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);\n } else {\n doesNotExceedSafeInteger(n + 1);\n createProperty(A, n++, E);\n }\n }\n A.length = n;\n return A;\n }\n});\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar call = require('../internals/function-call');\nvar fails = require('../internals/fails');\nvar objectKeys = require('../internals/object-keys');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar toObject = require('../internals/to-object');\nvar IndexedObject = require('../internals/indexed-object');\n\n// eslint-disable-next-line es/no-object-assign -- safe\nvar $assign = Object.assign;\n// eslint-disable-next-line es/no-object-defineproperty -- required for testing\nvar defineProperty = Object.defineProperty;\nvar concat = uncurryThis([].concat);\n\n// `Object.assign` method\n// https://tc39.es/ecma262/#sec-object.assign\nmodule.exports = !$assign || fails(function () {\n // should have correct order of operations (Edge bug)\n if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {\n enumerable: true,\n get: function () {\n defineProperty(this, 'b', {\n value: 3,\n enumerable: false\n });\n }\n }), { b: 2 })).b !== 1) return true;\n // should work with symbols and should have deterministic property order (V8 bug)\n var A = {};\n var B = {};\n // eslint-disable-next-line es/no-symbol -- safe\n var symbol = Symbol();\n var alphabet = 'abcdefghijklmnopqrst';\n A[symbol] = 7;\n alphabet.split('').forEach(function (chr) { B[chr] = chr; });\n return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;\n}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`\n var T = toObject(target);\n var argumentsLength = arguments.length;\n var index = 1;\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n var propertyIsEnumerable = propertyIsEnumerableModule.f;\n while (argumentsLength > index) {\n var S = IndexedObject(arguments[index++]);\n var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) {\n key = keys[j++];\n if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key];\n }\n } return T;\n} : $assign;\n","var $ = require('../internals/export');\nvar assign = require('../internals/object-assign');\n\n// `Object.assign` method\n// https://tc39.es/ecma262/#sec-object.assign\n// eslint-disable-next-line es/no-object-assign -- required for testing\n$({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {\n assign: assign\n});\n","'use strict';\nvar TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar classof = require('../internals/classof');\n\n// `Object.prototype.toString` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.tostring\nmodule.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {\n return '[object ' + classof(this) + ']';\n};\n","var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar toString = require('../internals/object-to-string');\n\n// `Object.prototype.toString` method\n// https://tc39.es/ecma262/#sec-object.prototype.tostring\nif (!TO_STRING_TAG_SUPPORT) {\n defineBuiltIn(Object.prototype, 'toString', toString, { unsafe: true });\n}\n","var classof = require('../internals/classof-raw');\n\nmodule.exports = typeof process != 'undefined' && classof(process) == 'process';\n","var global = require('../internals/global');\nvar apply = require('../internals/function-apply');\nvar bind = require('../internals/function-bind-context');\nvar isCallable = require('../internals/is-callable');\nvar hasOwn = require('../internals/has-own-property');\nvar fails = require('../internals/fails');\nvar html = require('../internals/html');\nvar arraySlice = require('../internals/array-slice');\nvar createElement = require('../internals/document-create-element');\nvar validateArgumentsLength = require('../internals/validate-arguments-length');\nvar IS_IOS = require('../internals/engine-is-ios');\nvar IS_NODE = require('../internals/engine-is-node');\n\nvar set = global.setImmediate;\nvar clear = global.clearImmediate;\nvar process = global.process;\nvar Dispatch = global.Dispatch;\nvar Function = global.Function;\nvar MessageChannel = global.MessageChannel;\nvar String = global.String;\nvar counter = 0;\nvar queue = {};\nvar ONREADYSTATECHANGE = 'onreadystatechange';\nvar $location, defer, channel, port;\n\nfails(function () {\n // Deno throws a ReferenceError on `location` access without `--location` flag\n $location = global.location;\n});\n\nvar run = function (id) {\n if (hasOwn(queue, id)) {\n var fn = queue[id];\n delete queue[id];\n fn();\n }\n};\n\nvar runner = function (id) {\n return function () {\n run(id);\n };\n};\n\nvar eventListener = function (event) {\n run(event.data);\n};\n\nvar globalPostMessageDefer = function (id) {\n // old engines have not location.origin\n global.postMessage(String(id), $location.protocol + '//' + $location.host);\n};\n\n// Node.js 0.9+ & IE10+ has setImmediate, otherwise:\nif (!set || !clear) {\n set = function setImmediate(handler) {\n validateArgumentsLength(arguments.length, 1);\n var fn = isCallable(handler) ? handler : Function(handler);\n var args = arraySlice(arguments, 1);\n queue[++counter] = function () {\n apply(fn, undefined, args);\n };\n defer(counter);\n return counter;\n };\n clear = function clearImmediate(id) {\n delete queue[id];\n };\n // Node.js 0.8-\n if (IS_NODE) {\n defer = function (id) {\n process.nextTick(runner(id));\n };\n // Sphere (JS game engine) Dispatch API\n } else if (Dispatch && Dispatch.now) {\n defer = function (id) {\n Dispatch.now(runner(id));\n };\n // Browsers with MessageChannel, includes WebWorkers\n // except iOS - https://github.com/zloirock/core-js/issues/624\n } else if (MessageChannel && !IS_IOS) {\n channel = new MessageChannel();\n port = channel.port2;\n channel.port1.onmessage = eventListener;\n defer = bind(port.postMessage, port);\n // Browsers with postMessage, skip WebWorkers\n // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'\n } else if (\n global.addEventListener &&\n isCallable(global.postMessage) &&\n !global.importScripts &&\n $location && $location.protocol !== 'file:' &&\n !fails(globalPostMessageDefer)\n ) {\n defer = globalPostMessageDefer;\n global.addEventListener('message', eventListener, false);\n // IE8-\n } else if (ONREADYSTATECHANGE in createElement('script')) {\n defer = function (id) {\n html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {\n html.removeChild(this);\n run(id);\n };\n };\n // Rest old browsers\n } else {\n defer = function (id) {\n setTimeout(runner(id), 0);\n };\n }\n}\n\nmodule.exports = {\n set: set,\n clear: clear\n};\n","var makeBuiltIn = require('../internals/make-built-in');\nvar defineProperty = require('../internals/object-define-property');\n\nmodule.exports = function (target, name, descriptor) {\n if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });\n if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });\n return defineProperty.f(target, name, descriptor);\n};\n","'use strict';\nvar getBuiltIn = require('../internals/get-built-in');\nvar defineBuiltInAccessor = require('../internals/define-built-in-accessor');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar DESCRIPTORS = require('../internals/descriptors');\n\nvar SPECIES = wellKnownSymbol('species');\n\nmodule.exports = function (CONSTRUCTOR_NAME) {\n var Constructor = getBuiltIn(CONSTRUCTOR_NAME);\n\n if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) {\n defineBuiltInAccessor(Constructor, SPECIES, {\n configurable: true,\n get: function () { return this; }\n });\n }\n};\n","var isPrototypeOf = require('../internals/object-is-prototype-of');\n\nvar $TypeError = TypeError;\n\nmodule.exports = function (it, Prototype) {\n if (isPrototypeOf(Prototype, it)) return it;\n throw $TypeError('Incorrect invocation');\n};\n","var isConstructor = require('../internals/is-constructor');\nvar tryToString = require('../internals/try-to-string');\n\nvar $TypeError = TypeError;\n\n// `Assert: IsConstructor(argument) is true`\nmodule.exports = function (argument) {\n if (isConstructor(argument)) return argument;\n throw $TypeError(tryToString(argument) + ' is not a constructor');\n};\n","var anObject = require('../internals/an-object');\nvar aConstructor = require('../internals/a-constructor');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar SPECIES = wellKnownSymbol('species');\n\n// `SpeciesConstructor` abstract operation\n// https://tc39.es/ecma262/#sec-speciesconstructor\nmodule.exports = function (O, defaultConstructor) {\n var C = anObject(O).constructor;\n var S;\n return C === undefined || isNullOrUndefined(S = anObject(C)[SPECIES]) ? defaultConstructor : aConstructor(S);\n};\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar apply = FunctionPrototype.apply;\nvar call = FunctionPrototype.call;\n\n// eslint-disable-next-line es/no-reflect -- safe\nmodule.exports = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function () {\n return call.apply(apply, arguments);\n});\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = uncurryThis([].slice);\n","var $TypeError = TypeError;\n\nmodule.exports = function (passed, required) {\n if (passed < required) throw $TypeError('Not enough arguments');\n return passed;\n};\n","var userAgent = require('../internals/engine-user-agent');\n\n// eslint-disable-next-line redos/no-vulnerable -- safe\nmodule.exports = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent);\n","var Queue = function () {\n this.head = null;\n this.tail = null;\n};\n\nQueue.prototype = {\n add: function (item) {\n var entry = { item: item, next: null };\n var tail = this.tail;\n if (tail) tail.next = entry;\n else this.head = entry;\n this.tail = entry;\n },\n get: function () {\n var entry = this.head;\n if (entry) {\n var next = this.head = entry.next;\n if (next === null) this.tail = null;\n return entry.item;\n }\n }\n};\n\nmodule.exports = Queue;\n","var global = require('../internals/global');\nvar bind = require('../internals/function-bind-context');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar macrotask = require('../internals/task').set;\nvar Queue = require('../internals/queue');\nvar IS_IOS = require('../internals/engine-is-ios');\nvar IS_IOS_PEBBLE = require('../internals/engine-is-ios-pebble');\nvar IS_WEBOS_WEBKIT = require('../internals/engine-is-webos-webkit');\nvar IS_NODE = require('../internals/engine-is-node');\n\nvar MutationObserver = global.MutationObserver || global.WebKitMutationObserver;\nvar document = global.document;\nvar process = global.process;\nvar Promise = global.Promise;\n// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`\nvar queueMicrotaskDescriptor = getOwnPropertyDescriptor(global, 'queueMicrotask');\nvar microtask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;\nvar notify, toggle, node, promise, then;\n\n// modern engines have queueMicrotask method\nif (!microtask) {\n var queue = new Queue();\n\n var flush = function () {\n var parent, fn;\n if (IS_NODE && (parent = process.domain)) parent.exit();\n while (fn = queue.get()) try {\n fn();\n } catch (error) {\n if (queue.head) notify();\n throw error;\n }\n if (parent) parent.enter();\n };\n\n // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339\n // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898\n if (!IS_IOS && !IS_NODE && !IS_WEBOS_WEBKIT && MutationObserver && document) {\n toggle = true;\n node = document.createTextNode('');\n new MutationObserver(flush).observe(node, { characterData: true });\n notify = function () {\n node.data = toggle = !toggle;\n };\n // environments with maybe non-completely correct, but existent Promise\n } else if (!IS_IOS_PEBBLE && Promise && Promise.resolve) {\n // Promise.resolve without an argument throws an error in LG WebOS 2\n promise = Promise.resolve(undefined);\n // workaround of WebKit ~ iOS Safari 10.1 bug\n promise.constructor = Promise;\n then = bind(promise.then, promise);\n notify = function () {\n then(flush);\n };\n // Node.js without promises\n } else if (IS_NODE) {\n notify = function () {\n process.nextTick(flush);\n };\n // for other environments - macrotask based on:\n // - setImmediate\n // - MessageChannel\n // - window.postMessage\n // - onreadystatechange\n // - setTimeout\n } else {\n // `webpack` dev server bug on IE global methods - use bind(fn, global)\n macrotask = bind(macrotask, global);\n notify = function () {\n macrotask(flush);\n };\n }\n\n microtask = function (fn) {\n if (!queue.head) notify();\n queue.add(fn);\n };\n}\n\nmodule.exports = microtask;\n","var userAgent = require('../internals/engine-user-agent');\n\nmodule.exports = /ipad|iphone|ipod/i.test(userAgent) && typeof Pebble != 'undefined';\n","var userAgent = require('../internals/engine-user-agent');\n\nmodule.exports = /web0s(?!.*chrome)/i.test(userAgent);\n","module.exports = function (exec) {\n try {\n return { error: false, value: exec() };\n } catch (error) {\n return { error: true, value: error };\n }\n};\n","var global = require('../internals/global');\n\nmodule.exports = global.Promise;\n","/* global Deno -- Deno case */\nmodule.exports = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';\n","var IS_DENO = require('../internals/engine-is-deno');\nvar IS_NODE = require('../internals/engine-is-node');\n\nmodule.exports = !IS_DENO && !IS_NODE\n && typeof window == 'object'\n && typeof document == 'object';\n","var global = require('../internals/global');\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar isCallable = require('../internals/is-callable');\nvar isForced = require('../internals/is-forced');\nvar inspectSource = require('../internals/inspect-source');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_BROWSER = require('../internals/engine-is-browser');\nvar IS_DENO = require('../internals/engine-is-deno');\nvar IS_PURE = require('../internals/is-pure');\nvar V8_VERSION = require('../internals/engine-v8-version');\n\nvar NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;\nvar SPECIES = wellKnownSymbol('species');\nvar SUBCLASSING = false;\nvar NATIVE_PROMISE_REJECTION_EVENT = isCallable(global.PromiseRejectionEvent);\n\nvar FORCED_PROMISE_CONSTRUCTOR = isForced('Promise', function () {\n var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor);\n var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor);\n // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables\n // https://bugs.chromium.org/p/chromium/issues/detail?id=830565\n // We can't detect it synchronously, so just check versions\n if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;\n // We need Promise#{ catch, finally } in the pure version for preventing prototype pollution\n if (IS_PURE && !(NativePromisePrototype['catch'] && NativePromisePrototype['finally'])) return true;\n // We can't use @@species feature detection in V8 since it causes\n // deoptimization and performance degradation\n // https://github.com/zloirock/core-js/issues/679\n if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {\n // Detect correctness of subclassing with @@species support\n var promise = new NativePromiseConstructor(function (resolve) { resolve(1); });\n var FakePromise = function (exec) {\n exec(function () { /* empty */ }, function () { /* empty */ });\n };\n var constructor = promise.constructor = {};\n constructor[SPECIES] = FakePromise;\n SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;\n if (!SUBCLASSING) return true;\n // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test\n } return !GLOBAL_CORE_JS_PROMISE && (IS_BROWSER || IS_DENO) && !NATIVE_PROMISE_REJECTION_EVENT;\n});\n\nmodule.exports = {\n CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR,\n REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT,\n SUBCLASSING: SUBCLASSING\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar IS_NODE = require('../internals/engine-is-node');\nvar global = require('../internals/global');\nvar call = require('../internals/function-call');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar setSpecies = require('../internals/set-species');\nvar aCallable = require('../internals/a-callable');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar anInstance = require('../internals/an-instance');\nvar speciesConstructor = require('../internals/species-constructor');\nvar task = require('../internals/task').set;\nvar microtask = require('../internals/microtask');\nvar hostReportErrors = require('../internals/host-report-errors');\nvar perform = require('../internals/perform');\nvar Queue = require('../internals/queue');\nvar InternalStateModule = require('../internals/internal-state');\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar PromiseConstructorDetection = require('../internals/promise-constructor-detection');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\n\nvar PROMISE = 'Promise';\nvar FORCED_PROMISE_CONSTRUCTOR = PromiseConstructorDetection.CONSTRUCTOR;\nvar NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT;\nvar NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING;\nvar getInternalPromiseState = InternalStateModule.getterFor(PROMISE);\nvar setInternalState = InternalStateModule.set;\nvar NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;\nvar PromiseConstructor = NativePromiseConstructor;\nvar PromisePrototype = NativePromisePrototype;\nvar TypeError = global.TypeError;\nvar document = global.document;\nvar process = global.process;\nvar newPromiseCapability = newPromiseCapabilityModule.f;\nvar newGenericPromiseCapability = newPromiseCapability;\n\nvar DISPATCH_EVENT = !!(document && document.createEvent && global.dispatchEvent);\nvar UNHANDLED_REJECTION = 'unhandledrejection';\nvar REJECTION_HANDLED = 'rejectionhandled';\nvar PENDING = 0;\nvar FULFILLED = 1;\nvar REJECTED = 2;\nvar HANDLED = 1;\nvar UNHANDLED = 2;\n\nvar Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;\n\n// helpers\nvar isThenable = function (it) {\n var then;\n return isObject(it) && isCallable(then = it.then) ? then : false;\n};\n\nvar callReaction = function (reaction, state) {\n var value = state.value;\n var ok = state.state == FULFILLED;\n var handler = ok ? reaction.ok : reaction.fail;\n var resolve = reaction.resolve;\n var reject = reaction.reject;\n var domain = reaction.domain;\n var result, then, exited;\n try {\n if (handler) {\n if (!ok) {\n if (state.rejection === UNHANDLED) onHandleUnhandled(state);\n state.rejection = HANDLED;\n }\n if (handler === true) result = value;\n else {\n if (domain) domain.enter();\n result = handler(value); // can throw\n if (domain) {\n domain.exit();\n exited = true;\n }\n }\n if (result === reaction.promise) {\n reject(TypeError('Promise-chain cycle'));\n } else if (then = isThenable(result)) {\n call(then, result, resolve, reject);\n } else resolve(result);\n } else reject(value);\n } catch (error) {\n if (domain && !exited) domain.exit();\n reject(error);\n }\n};\n\nvar notify = function (state, isReject) {\n if (state.notified) return;\n state.notified = true;\n microtask(function () {\n var reactions = state.reactions;\n var reaction;\n while (reaction = reactions.get()) {\n callReaction(reaction, state);\n }\n state.notified = false;\n if (isReject && !state.rejection) onUnhandled(state);\n });\n};\n\nvar dispatchEvent = function (name, promise, reason) {\n var event, handler;\n if (DISPATCH_EVENT) {\n event = document.createEvent('Event');\n event.promise = promise;\n event.reason = reason;\n event.initEvent(name, false, true);\n global.dispatchEvent(event);\n } else event = { promise: promise, reason: reason };\n if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global['on' + name])) handler(event);\n else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);\n};\n\nvar onUnhandled = function (state) {\n call(task, global, function () {\n var promise = state.facade;\n var value = state.value;\n var IS_UNHANDLED = isUnhandled(state);\n var result;\n if (IS_UNHANDLED) {\n result = perform(function () {\n if (IS_NODE) {\n process.emit('unhandledRejection', value, promise);\n } else dispatchEvent(UNHANDLED_REJECTION, promise, value);\n });\n // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should\n state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;\n if (result.error) throw result.value;\n }\n });\n};\n\nvar isUnhandled = function (state) {\n return state.rejection !== HANDLED && !state.parent;\n};\n\nvar onHandleUnhandled = function (state) {\n call(task, global, function () {\n var promise = state.facade;\n if (IS_NODE) {\n process.emit('rejectionHandled', promise);\n } else dispatchEvent(REJECTION_HANDLED, promise, state.value);\n });\n};\n\nvar bind = function (fn, state, unwrap) {\n return function (value) {\n fn(state, value, unwrap);\n };\n};\n\nvar internalReject = function (state, value, unwrap) {\n if (state.done) return;\n state.done = true;\n if (unwrap) state = unwrap;\n state.value = value;\n state.state = REJECTED;\n notify(state, true);\n};\n\nvar internalResolve = function (state, value, unwrap) {\n if (state.done) return;\n state.done = true;\n if (unwrap) state = unwrap;\n try {\n if (state.facade === value) throw TypeError(\"Promise can't be resolved itself\");\n var then = isThenable(value);\n if (then) {\n microtask(function () {\n var wrapper = { done: false };\n try {\n call(then, value,\n bind(internalResolve, wrapper, state),\n bind(internalReject, wrapper, state)\n );\n } catch (error) {\n internalReject(wrapper, error, state);\n }\n });\n } else {\n state.value = value;\n state.state = FULFILLED;\n notify(state, false);\n }\n } catch (error) {\n internalReject({ done: false }, error, state);\n }\n};\n\n// constructor polyfill\nif (FORCED_PROMISE_CONSTRUCTOR) {\n // 25.4.3.1 Promise(executor)\n PromiseConstructor = function Promise(executor) {\n anInstance(this, PromisePrototype);\n aCallable(executor);\n call(Internal, this);\n var state = getInternalPromiseState(this);\n try {\n executor(bind(internalResolve, state), bind(internalReject, state));\n } catch (error) {\n internalReject(state, error);\n }\n };\n\n PromisePrototype = PromiseConstructor.prototype;\n\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n Internal = function Promise(executor) {\n setInternalState(this, {\n type: PROMISE,\n done: false,\n notified: false,\n parent: false,\n reactions: new Queue(),\n rejection: false,\n state: PENDING,\n value: undefined\n });\n };\n\n // `Promise.prototype.then` method\n // https://tc39.es/ecma262/#sec-promise.prototype.then\n Internal.prototype = defineBuiltIn(PromisePrototype, 'then', function then(onFulfilled, onRejected) {\n var state = getInternalPromiseState(this);\n var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));\n state.parent = true;\n reaction.ok = isCallable(onFulfilled) ? onFulfilled : true;\n reaction.fail = isCallable(onRejected) && onRejected;\n reaction.domain = IS_NODE ? process.domain : undefined;\n if (state.state == PENDING) state.reactions.add(reaction);\n else microtask(function () {\n callReaction(reaction, state);\n });\n return reaction.promise;\n });\n\n OwnPromiseCapability = function () {\n var promise = new Internal();\n var state = getInternalPromiseState(promise);\n this.promise = promise;\n this.resolve = bind(internalResolve, state);\n this.reject = bind(internalReject, state);\n };\n\n newPromiseCapabilityModule.f = newPromiseCapability = function (C) {\n return C === PromiseConstructor || C === PromiseWrapper\n ? new OwnPromiseCapability(C)\n : newGenericPromiseCapability(C);\n };\n\n if (!IS_PURE && isCallable(NativePromiseConstructor) && NativePromisePrototype !== Object.prototype) {\n nativeThen = NativePromisePrototype.then;\n\n if (!NATIVE_PROMISE_SUBCLASSING) {\n // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs\n defineBuiltIn(NativePromisePrototype, 'then', function then(onFulfilled, onRejected) {\n var that = this;\n return new PromiseConstructor(function (resolve, reject) {\n call(nativeThen, that, resolve, reject);\n }).then(onFulfilled, onRejected);\n // https://github.com/zloirock/core-js/issues/640\n }, { unsafe: true });\n }\n\n // make `.constructor === Promise` work for native promise-based APIs\n try {\n delete NativePromisePrototype.constructor;\n } catch (error) { /* empty */ }\n\n // make `instanceof Promise` work for native promise-based APIs\n if (setPrototypeOf) {\n setPrototypeOf(NativePromisePrototype, PromisePrototype);\n }\n }\n}\n\n$({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {\n Promise: PromiseConstructor\n});\n\nsetToStringTag(PromiseConstructor, PROMISE, false, true);\nsetSpecies(PROMISE);\n","'use strict';\nvar aCallable = require('../internals/a-callable');\n\nvar $TypeError = TypeError;\n\nvar PromiseCapability = function (C) {\n var resolve, reject;\n this.promise = new C(function ($$resolve, $$reject) {\n if (resolve !== undefined || reject !== undefined) throw $TypeError('Bad Promise constructor');\n resolve = $$resolve;\n reject = $$reject;\n });\n this.resolve = aCallable(resolve);\n this.reject = aCallable(reject);\n};\n\n// `NewPromiseCapability` abstract operation\n// https://tc39.es/ecma262/#sec-newpromisecapability\nmodule.exports.f = function (C) {\n return new PromiseCapability(C);\n};\n","module.exports = function (a, b) {\n try {\n // eslint-disable-next-line no-console -- safe\n arguments.length == 1 ? console.error(a) : console.error(a, b);\n } catch (error) { /* empty */ }\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\nvar Iterators = require('../internals/iterators');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar ArrayPrototype = Array.prototype;\n\n// check on default Array iterator\nmodule.exports = function (it) {\n return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it);\n};\n","var classof = require('../internals/classof');\nvar getMethod = require('../internals/get-method');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar Iterators = require('../internals/iterators');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\n\nmodule.exports = function (it) {\n if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR)\n || getMethod(it, '@@iterator')\n || Iterators[classof(it)];\n};\n","var call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar anObject = require('../internals/an-object');\nvar tryToString = require('../internals/try-to-string');\nvar getIteratorMethod = require('../internals/get-iterator-method');\n\nvar $TypeError = TypeError;\n\nmodule.exports = function (argument, usingIterator) {\n var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator;\n if (aCallable(iteratorMethod)) return anObject(call(iteratorMethod, argument));\n throw $TypeError(tryToString(argument) + ' is not iterable');\n};\n","var call = require('../internals/function-call');\nvar anObject = require('../internals/an-object');\nvar getMethod = require('../internals/get-method');\n\nmodule.exports = function (iterator, kind, value) {\n var innerResult, innerError;\n anObject(iterator);\n try {\n innerResult = getMethod(iterator, 'return');\n if (!innerResult) {\n if (kind === 'throw') throw value;\n return value;\n }\n innerResult = call(innerResult, iterator);\n } catch (error) {\n innerError = true;\n innerResult = error;\n }\n if (kind === 'throw') throw value;\n if (innerError) throw innerResult;\n anObject(innerResult);\n return value;\n};\n","var bind = require('../internals/function-bind-context');\nvar call = require('../internals/function-call');\nvar anObject = require('../internals/an-object');\nvar tryToString = require('../internals/try-to-string');\nvar isArrayIteratorMethod = require('../internals/is-array-iterator-method');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar getIterator = require('../internals/get-iterator');\nvar getIteratorMethod = require('../internals/get-iterator-method');\nvar iteratorClose = require('../internals/iterator-close');\n\nvar $TypeError = TypeError;\n\nvar Result = function (stopped, result) {\n this.stopped = stopped;\n this.result = result;\n};\n\nvar ResultPrototype = Result.prototype;\n\nmodule.exports = function (iterable, unboundFunction, options) {\n var that = options && options.that;\n var AS_ENTRIES = !!(options && options.AS_ENTRIES);\n var IS_RECORD = !!(options && options.IS_RECORD);\n var IS_ITERATOR = !!(options && options.IS_ITERATOR);\n var INTERRUPTED = !!(options && options.INTERRUPTED);\n var fn = bind(unboundFunction, that);\n var iterator, iterFn, index, length, result, next, step;\n\n var stop = function (condition) {\n if (iterator) iteratorClose(iterator, 'normal', condition);\n return new Result(true, condition);\n };\n\n var callFn = function (value) {\n if (AS_ENTRIES) {\n anObject(value);\n return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);\n } return INTERRUPTED ? fn(value, stop) : fn(value);\n };\n\n if (IS_RECORD) {\n iterator = iterable.iterator;\n } else if (IS_ITERATOR) {\n iterator = iterable;\n } else {\n iterFn = getIteratorMethod(iterable);\n if (!iterFn) throw $TypeError(tryToString(iterable) + ' is not iterable');\n // optimisation for array iterators\n if (isArrayIteratorMethod(iterFn)) {\n for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {\n result = callFn(iterable[index]);\n if (result && isPrototypeOf(ResultPrototype, result)) return result;\n } return new Result(false);\n }\n iterator = getIterator(iterable, iterFn);\n }\n\n next = IS_RECORD ? iterable.next : iterator.next;\n while (!(step = call(next, iterator)).done) {\n try {\n result = callFn(step.value);\n } catch (error) {\n iteratorClose(iterator, 'throw', error);\n }\n if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;\n } return new Result(false);\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar SAFE_CLOSING = false;\n\ntry {\n var called = 0;\n var iteratorWithReturn = {\n next: function () {\n return { done: !!called++ };\n },\n 'return': function () {\n SAFE_CLOSING = true;\n }\n };\n iteratorWithReturn[ITERATOR] = function () {\n return this;\n };\n // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing\n Array.from(iteratorWithReturn, function () { throw 2; });\n} catch (error) { /* empty */ }\n\nmodule.exports = function (exec, SKIP_CLOSING) {\n if (!SKIP_CLOSING && !SAFE_CLOSING) return false;\n var ITERATION_SUPPORT = false;\n try {\n var object = {};\n object[ITERATOR] = function () {\n return {\n next: function () {\n return { done: ITERATION_SUPPORT = true };\n }\n };\n };\n exec(object);\n } catch (error) { /* empty */ }\n return ITERATION_SUPPORT;\n};\n","var NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');\nvar FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;\n\nmodule.exports = FORCED_PROMISE_CONSTRUCTOR || !checkCorrectnessOfIteration(function (iterable) {\n NativePromiseConstructor.all(iterable).then(undefined, function () { /* empty */ });\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar perform = require('../internals/perform');\nvar iterate = require('../internals/iterate');\nvar PROMISE_STATICS_INCORRECT_ITERATION = require('../internals/promise-statics-incorrect-iteration');\n\n// `Promise.all` method\n// https://tc39.es/ecma262/#sec-promise.all\n$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {\n all: function all(iterable) {\n var C = this;\n var capability = newPromiseCapabilityModule.f(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform(function () {\n var $promiseResolve = aCallable(C.resolve);\n var values = [];\n var counter = 0;\n var remaining = 1;\n iterate(iterable, function (promise) {\n var index = counter++;\n var alreadyCalled = false;\n remaining++;\n call($promiseResolve, C, promise).then(function (value) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[index] = value;\n --remaining || resolve(values);\n }, reject);\n });\n --remaining || resolve(values);\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar defineBuiltIn = require('../internals/define-built-in');\n\nvar NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;\n\n// `Promise.prototype.catch` method\n// https://tc39.es/ecma262/#sec-promise.prototype.catch\n$({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR, real: true }, {\n 'catch': function (onRejected) {\n return this.then(undefined, onRejected);\n }\n});\n\n// makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`\nif (!IS_PURE && isCallable(NativePromiseConstructor)) {\n var method = getBuiltIn('Promise').prototype['catch'];\n if (NativePromisePrototype['catch'] !== method) {\n defineBuiltIn(NativePromisePrototype, 'catch', method, { unsafe: true });\n }\n}\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar perform = require('../internals/perform');\nvar iterate = require('../internals/iterate');\nvar PROMISE_STATICS_INCORRECT_ITERATION = require('../internals/promise-statics-incorrect-iteration');\n\n// `Promise.race` method\n// https://tc39.es/ecma262/#sec-promise.race\n$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {\n race: function race(iterable) {\n var C = this;\n var capability = newPromiseCapabilityModule.f(C);\n var reject = capability.reject;\n var result = perform(function () {\n var $promiseResolve = aCallable(C.resolve);\n iterate(iterable, function (promise) {\n call($promiseResolve, C, promise).then(capability.resolve, reject);\n });\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;\n\n// `Promise.reject` method\n// https://tc39.es/ecma262/#sec-promise.reject\n$({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {\n reject: function reject(r) {\n var capability = newPromiseCapabilityModule.f(this);\n call(capability.reject, undefined, r);\n return capability.promise;\n }\n});\n","var anObject = require('../internals/an-object');\nvar isObject = require('../internals/is-object');\nvar newPromiseCapability = require('../internals/new-promise-capability');\n\nmodule.exports = function (C, x) {\n anObject(C);\n if (isObject(x) && x.constructor === C) return x;\n var promiseCapability = newPromiseCapability.f(C);\n var resolve = promiseCapability.resolve;\n resolve(x);\n return promiseCapability.promise;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar getBuiltIn = require('../internals/get-built-in');\nvar IS_PURE = require('../internals/is-pure');\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;\nvar promiseResolve = require('../internals/promise-resolve');\n\nvar PromiseConstructorWrapper = getBuiltIn('Promise');\nvar CHECK_WRAPPER = IS_PURE && !FORCED_PROMISE_CONSTRUCTOR;\n\n// `Promise.resolve` method\n// https://tc39.es/ecma262/#sec-promise.resolve\n$({ target: 'Promise', stat: true, forced: IS_PURE || FORCED_PROMISE_CONSTRUCTOR }, {\n resolve: function resolve(x) {\n return promiseResolve(CHECK_WRAPPER && this === PromiseConstructorWrapper ? NativePromiseConstructor : this, x);\n }\n});\n","var classof = require('../internals/classof');\n\nvar $String = String;\n\nmodule.exports = function (argument) {\n if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');\n return $String(argument);\n};\n","'use strict';\n/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */\n/* eslint-disable regexp/no-useless-quantifier -- testing */\nvar call = require('../internals/function-call');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar toString = require('../internals/to-string');\nvar regexpFlags = require('../internals/regexp-flags');\nvar stickyHelpers = require('../internals/regexp-sticky-helpers');\nvar shared = require('../internals/shared');\nvar create = require('../internals/object-create');\nvar getInternalState = require('../internals/internal-state').get;\nvar UNSUPPORTED_DOT_ALL = require('../internals/regexp-unsupported-dot-all');\nvar UNSUPPORTED_NCG = require('../internals/regexp-unsupported-ncg');\n\nvar nativeReplace = shared('native-string-replace', String.prototype.replace);\nvar nativeExec = RegExp.prototype.exec;\nvar patchedExec = nativeExec;\nvar charAt = uncurryThis(''.charAt);\nvar indexOf = uncurryThis(''.indexOf);\nvar replace = uncurryThis(''.replace);\nvar stringSlice = uncurryThis(''.slice);\n\nvar UPDATES_LAST_INDEX_WRONG = (function () {\n var re1 = /a/;\n var re2 = /b*/g;\n call(nativeExec, re1, 'a');\n call(nativeExec, re2, 'a');\n return re1.lastIndex !== 0 || re2.lastIndex !== 0;\n})();\n\nvar UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;\n\n// nonparticipating capturing group, copied from es5-shim's String#split patch.\nvar NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;\n\nvar PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;\n\nif (PATCH) {\n patchedExec = function exec(string) {\n var re = this;\n var state = getInternalState(re);\n var str = toString(string);\n var raw = state.raw;\n var result, reCopy, lastIndex, match, i, object, group;\n\n if (raw) {\n raw.lastIndex = re.lastIndex;\n result = call(patchedExec, raw, str);\n re.lastIndex = raw.lastIndex;\n return result;\n }\n\n var groups = state.groups;\n var sticky = UNSUPPORTED_Y && re.sticky;\n var flags = call(regexpFlags, re);\n var source = re.source;\n var charsAdded = 0;\n var strCopy = str;\n\n if (sticky) {\n flags = replace(flags, 'y', '');\n if (indexOf(flags, 'g') === -1) {\n flags += 'g';\n }\n\n strCopy = stringSlice(str, re.lastIndex);\n // Support anchored sticky behavior.\n if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt(str, re.lastIndex - 1) !== '\\n')) {\n source = '(?: ' + source + ')';\n strCopy = ' ' + strCopy;\n charsAdded++;\n }\n // ^(? + rx + ) is needed, in combination with some str slicing, to\n // simulate the 'y' flag.\n reCopy = new RegExp('^(?:' + source + ')', flags);\n }\n\n if (NPCG_INCLUDED) {\n reCopy = new RegExp('^' + source + '$(?!\\\\s)', flags);\n }\n if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;\n\n match = call(nativeExec, sticky ? reCopy : re, strCopy);\n\n if (sticky) {\n if (match) {\n match.input = stringSlice(match.input, charsAdded);\n match[0] = stringSlice(match[0], charsAdded);\n match.index = re.lastIndex;\n re.lastIndex += match[0].length;\n } else re.lastIndex = 0;\n } else if (UPDATES_LAST_INDEX_WRONG && match) {\n re.lastIndex = re.global ? match.index + match[0].length : lastIndex;\n }\n if (NPCG_INCLUDED && match && match.length > 1) {\n // Fix browsers whose `exec` methods don't consistently return `undefined`\n // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/\n call(nativeReplace, match[0], reCopy, function () {\n for (i = 1; i < arguments.length - 2; i++) {\n if (arguments[i] === undefined) match[i] = undefined;\n }\n });\n }\n\n if (match && groups) {\n match.groups = object = create(null);\n for (i = 0; i < groups.length; i++) {\n group = groups[i];\n object[group[0]] = match[group[1]];\n }\n }\n\n return match;\n };\n}\n\nmodule.exports = patchedExec;\n","'use strict';\nvar anObject = require('../internals/an-object');\n\n// `RegExp.prototype.flags` getter implementation\n// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags\nmodule.exports = function () {\n var that = anObject(this);\n var result = '';\n if (that.hasIndices) result += 'd';\n if (that.global) result += 'g';\n if (that.ignoreCase) result += 'i';\n if (that.multiline) result += 'm';\n if (that.dotAll) result += 's';\n if (that.unicode) result += 'u';\n if (that.unicodeSets) result += 'v';\n if (that.sticky) result += 'y';\n return result;\n};\n","var fails = require('../internals/fails');\nvar global = require('../internals/global');\n\n// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError\nvar $RegExp = global.RegExp;\n\nvar UNSUPPORTED_Y = fails(function () {\n var re = $RegExp('a', 'y');\n re.lastIndex = 2;\n return re.exec('abcd') != null;\n});\n\n// UC Browser bug\n// https://github.com/zloirock/core-js/issues/1008\nvar MISSED_STICKY = UNSUPPORTED_Y || fails(function () {\n return !$RegExp('a', 'y').sticky;\n});\n\nvar BROKEN_CARET = UNSUPPORTED_Y || fails(function () {\n // https://bugzilla.mozilla.org/show_bug.cgi?id=773687\n var re = $RegExp('^r', 'gy');\n re.lastIndex = 2;\n return re.exec('str') != null;\n});\n\nmodule.exports = {\n BROKEN_CARET: BROKEN_CARET,\n MISSED_STICKY: MISSED_STICKY,\n UNSUPPORTED_Y: UNSUPPORTED_Y\n};\n","var fails = require('../internals/fails');\nvar global = require('../internals/global');\n\n// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError\nvar $RegExp = global.RegExp;\n\nmodule.exports = fails(function () {\n var re = $RegExp('.', 's');\n return !(re.dotAll && re.exec('\\n') && re.flags === 's');\n});\n","var fails = require('../internals/fails');\nvar global = require('../internals/global');\n\n// babel-minify and Closure Compiler transpiles RegExp('(?b)', 'g') -> /(?b)/g and it causes SyntaxError\nvar $RegExp = global.RegExp;\n\nmodule.exports = fails(function () {\n var re = $RegExp('(?b)', 'g');\n return re.exec('b').groups.a !== 'b' ||\n 'b'.replace(re, '$c') !== 'bc';\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar exec = require('../internals/regexp-exec');\n\n// `RegExp.prototype.exec` method\n// https://tc39.es/ecma262/#sec-regexp.prototype.exec\n$({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {\n exec: exec\n});\n","/**\n * Provide feature detection\n * @class Features\n */\nexport class Features {\n /**\n * If the browser has WebGL support\n * @property {boolean} webgl\n */\n static get webgl() {\n const canvas = document.createElement('canvas');\n\n return !!(\n canvas &&\n (canvas.getContext('webgl') || canvas.getContext('experimental-webgl'))\n );\n }\n\n /**\n * If the browser has Canvas support\n * @property {boolean} canvas\n */\n static get canvas() {\n const canvas = document.createElement('canvas');\n return !!(canvas !== null && canvas.getContext && canvas.getContext('2d'));\n }\n\n /**\n * If the browser has WebAudio API support\n * @property {boolean} webaudio\n */\n static get webaudio() {\n return 'webkitAudioContext' in window || 'AudioContext' in window;\n }\n\n /**\n * If the browser has HTMLAudio support\n * @property {boolean} htmlAudio\n */\n static get htmlAudio() {\n return 'HTMLAudioElement' in window;\n }\n\n /**\n * If the browser has Web Sockets API\n * @property {boolean} websockets\n */\n static get websockets() {\n return 'WebSocket' in window || 'MozWebSocket' in window;\n }\n\n /**\n * If the browser has Geolocation API\n * @property {boolean} geolocation\n */\n static get geolocation() {\n return 'geolocation' in navigator;\n }\n\n /**\n * If the browser has Web Workers API\n * @property {boolean} webworkers\n */\n static get webworkers() {\n return 'function' === typeof Worker;\n }\n\n /**\n * If the browser has touch\n * @property {boolean} touch\n */\n static get touch() {\n return !!(\n 'ontouchstart' in window || // iOS & Android\n (navigator.msPointerEnabled && navigator.msMaxTouchPoints > 0) || // IE10\n (navigator.pointerEnabled && navigator.maxTouchPoints > 0)\n ); // IE11+\n }\n\n /**\n * Test for basic browser compatiliblity\n * @method basic\n * @static\n * @return {String} The error message, if fails\n */\n static basic() {\n if (!Features.canvas) {\n return 'Browser does not support canvas';\n } else if (!Features.webaudio && !Features.htmlAudio) {\n return 'Browser does not support WebAudio or HTMLAudio';\n }\n return null;\n }\n\n /**\n * See if the current bowser has the correct features\n * @method test\n * @static\n * @param {object} capabilities The capabilities\n * @param {object} [capabilities.features] The features\n * @param {object} [capabilities.features.webgl] WebGL required\n * @param {object} [capabilities.features.geolocation] Geolocation required\n * @param {object} [capabilities.features.webworkers] Web Workers API required\n * @param {object} [capabilities.features.webaudio] WebAudio API required\n * @param {object} [capabilities.features.websockets] WebSockets required\n * @param {object} [capabilities.sizes] The sizes\n * @param {Boolean} [capabilities.sizes.xsmall] Screens < 480\n * @param {Boolean} [capabilities.sizes.small] Screens < 768\n * @param {Boolean} [capabilities.sizes.medium] Screens < 992\n * @param {Boolean} [capabilities.sizes.large] Screens < 1200\n * @param {Boolean} [capabilities.sizes.xlarge] Screens >= 1200\n * @param {object} [capabilities.ui] The ui\n * @param {Boolean} [capabilities.ui.touch] Touch capable\n * @return {String|null} The error, or else returns null\n */\n static test(capabilities) {\n // check for basic compatibility\n const err = this.basic();\n if (err) {\n return err;\n }\n\n const features = capabilities.features;\n const ui = capabilities.ui;\n const sizes = capabilities.sizes;\n\n for (const name in features) {\n if (features[name] === true && !Features[name]) {\n // Failed built-in feature check\n return 'Browser does not support ' + name;\n }\n }\n\n // Failed negative touch requirement\n if (!ui.touch && Features.touch) {\n return 'Game does not support touch input';\n }\n\n // Check the sizes\n const size = Math.max(window.screen.width, window.screen.height);\n\n if (!sizes.xsmall && size < 480) {\n return 'Game doesn\\'t support extra small screens';\n }\n if (!sizes.small && size < 768) {\n return 'Game doesn\\'t support small screens';\n }\n if (!sizes.medium && size < 992) {\n return 'Game doesn\\'t support medium screens';\n }\n if (!sizes.large && size < 1200) {\n return 'Game doesn\\'t support large screens';\n }\n if (!sizes.xlarge && size >= 1200) {\n return 'Game doesn\\'t support extra large screens';\n }\n return null;\n }\n\n /**\n * Returns browser feature support info\n * @returns {string}\n */\n static get info() {\n return `Browser Feature Detection\n\t\t\t\tCanvas support ${Features.canvas ? '\\u2713' : '\\u00D7'}\n\t\t\t\tWebGL support ${Features.webgl ? '\\u2713' : '\\u00D7'}\n\t\t\t\tWebAudio support ${Features.webAudio ? '\\u2713' : '\\u00D7'}`;\n }\n}\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\nvar toString = require('../internals/to-string');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar charAt = uncurryThis(''.charAt);\nvar charCodeAt = uncurryThis(''.charCodeAt);\nvar stringSlice = uncurryThis(''.slice);\n\nvar createMethod = function (CONVERT_TO_STRING) {\n return function ($this, pos) {\n var S = toString(requireObjectCoercible($this));\n var position = toIntegerOrInfinity(pos);\n var size = S.length;\n var first, second;\n if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;\n first = charCodeAt(S, position);\n return first < 0xD800 || first > 0xDBFF || position + 1 === size\n || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF\n ? CONVERT_TO_STRING\n ? charAt(S, position)\n : first\n : CONVERT_TO_STRING\n ? stringSlice(S, position, position + 2)\n : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;\n };\n};\n\nmodule.exports = {\n // `String.prototype.codePointAt` method\n // https://tc39.es/ecma262/#sec-string.prototype.codepointat\n codeAt: createMethod(false),\n // `String.prototype.at` method\n // https://github.com/mathiasbynens/String.prototype.at\n charAt: createMethod(true)\n};\n","'use strict';\nvar charAt = require('../internals/string-multibyte').charAt;\nvar toString = require('../internals/to-string');\nvar InternalStateModule = require('../internals/internal-state');\nvar defineIterator = require('../internals/iterator-define');\nvar createIterResultObject = require('../internals/create-iter-result-object');\n\nvar STRING_ITERATOR = 'String Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(STRING_ITERATOR);\n\n// `String.prototype[@@iterator]` method\n// https://tc39.es/ecma262/#sec-string.prototype-@@iterator\ndefineIterator(String, 'String', function (iterated) {\n setInternalState(this, {\n type: STRING_ITERATOR,\n string: toString(iterated),\n index: 0\n });\n// `%StringIteratorPrototype%.next` method\n// https://tc39.es/ecma262/#sec-%stringiteratorprototype%.next\n}, function next() {\n var state = getInternalState(this);\n var string = state.string;\n var index = state.index;\n var point;\n if (index >= string.length) return createIterResultObject(undefined, true);\n point = charAt(string, index);\n state.index += point.length;\n return createIterResultObject(point, false);\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $filter = require('../internals/array-iteration').filter;\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');\n\n// `Array.prototype.filter` method\n// https://tc39.es/ecma262/#sec-array.prototype.filter\n// with adding support of @@species\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {\n filter: function filter(callbackfn /* , thisArg */) {\n return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $find = require('../internals/array-iteration').find;\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\nvar FIND = 'find';\nvar SKIPS_HOLES = true;\n\n// Shouldn't skip holes\nif (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });\n\n// `Array.prototype.find` method\n// https://tc39.es/ecma262/#sec-array.prototype.find\n$({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {\n find: function find(callbackfn /* , that = undefined */) {\n return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables(FIND);\n","function t(t,e){return t(e={exports:{}},e.exports),e.exports}var e=t((function(t){function e(t){return(e=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t})(t)}function n(r){return\"function\"==typeof Symbol&&\"symbol\"===e(Symbol.iterator)?t.exports=n=function(t){return e(t)}:t.exports=n=function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":e(t)},n(r)}t.exports=n}));var n=function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")};function r(t,e){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:0;this._listeners[t]||(this._listeners[t]=[]),e._priority=parseInt(n)||0,-1===this._listeners[t].indexOf(e)&&(this._listeners[t].push(e),this._listeners[t].length>1&&this._listeners[t].sort(this.listenerSorter))}},{key:\"listenerSorter\",value:function(t,e){return t._priority-e._priority}},{key:\"off\",value:function(t,e){if(void 0!==this._listeners[t])if(void 0!==e){var n=this._listeners[t].indexOf(e);-11&&void 0!==arguments[1]?arguments[1]:{};if(\"string\"==typeof t&&(t={type:t,data:\"object\"===e(n)&&null!==n?n:{}}),void 0!==this._listeners[t.type])for(var r=this._listeners[t.type].length-1;r>=0;r--)this._listeners[t.type][r](t)}},{key:\"destroy\",value:function(){this._listeners={}}}]),t}(),s=t((function(t){var e=function(t){var e,n=Object.prototype,r=n.hasOwnProperty,o=\"function\"==typeof Symbol?Symbol:{},i=o.iterator||\"@@iterator\",s=o.asyncIterator||\"@@asyncIterator\",a=o.toStringTag||\"@@toStringTag\";function c(t,e,n,r){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),s=new S(r||[]);return i._invoke=function(t,e,n){var r=h;return function(o,i){if(r===f)throw new Error(\"Generator is already running\");if(r===p){if(\"throw\"===o)throw i;return P()}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var a=O(s,n);if(a){if(a===y)continue;return a}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(r===h)throw r=p,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);r=f;var c=u(t,e,n);if(\"normal\"===c.type){if(r=n.done?p:l,c.arg===y)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(r=p,n.method=\"throw\",n.arg=c.arg)}}}(t,n,s),i}function u(t,e,n){try{return{type:\"normal\",arg:t.call(e,n)}}catch(t){return{type:\"throw\",arg:t}}}t.wrap=c;var h=\"suspendedStart\",l=\"suspendedYield\",f=\"executing\",p=\"completed\",y={};function d(){}function v(){}function g(){}var m={};m[i]=function(){return this};var w=Object.getPrototypeOf,b=w&&w(w(j([])));b&&b!==n&&r.call(b,i)&&(m=b);var _=g.prototype=d.prototype=Object.create(m);function x(t){[\"next\",\"throw\",\"return\"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function L(t){function e(n,o,i,s){var a=u(t[n],t,o);if(\"throw\"!==a.type){var c=a.arg,h=c.value;return h&&\"object\"==typeof h&&r.call(h,\"__await\")?Promise.resolve(h.__await).then((function(t){e(\"next\",t,i,s)}),(function(t){e(\"throw\",t,i,s)})):Promise.resolve(h).then((function(t){c.value=t,i(c)}),(function(t){return e(\"throw\",t,i,s)}))}s(a.arg)}var n;this._invoke=function(t,r){function o(){return new Promise((function(n,o){e(t,r,n,o)}))}return n=n?n.then(o,o):o()}}function O(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,\"throw\"===n.method){if(t.iterator.return&&(n.method=\"return\",n.arg=e,O(t,n),\"throw\"===n.method))return y;n.method=\"throw\",n.arg=new TypeError(\"The iterator does not provide a 'throw' method\")}return y}var o=u(r,t.iterator,n.arg);if(\"throw\"===o.type)return n.method=\"throw\",n.arg=o.arg,n.delegate=null,y;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,\"return\"!==n.method&&(n.method=\"next\",n.arg=e),n.delegate=null,y):i:(n.method=\"throw\",n.arg=new TypeError(\"iterator result is not an object\"),n.delegate=null,y)}function E(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 k(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(E,this),this.reset(!0)}function j(t){if(t){var n=t[i];if(n)return n.call(t);if(\"function\"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,s=function n(){for(;++o=0;--i){var s=this.tryEntries[i],a=s.completion;if(\"root\"===s.tryLoc)return o(\"end\");if(s.tryLoc<=this.prev){var c=r.call(s,\"catchLoc\"),u=r.call(s,\"finallyLoc\");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,\"finallyLoc\")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),y}},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;k(n)}return o}}throw new Error(\"illegal catch attempt\")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},\"next\"===this.method&&(this.arg=e),y}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function(\"r\",\"regeneratorRuntime = r\")(e)}}));var a=function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t};var c=function(t,n){return!n||\"object\"!==e(n)&&\"function\"!=typeof n?a(t):n},u=t((function(t){function e(n){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},e(n)}t.exports=e}));var h=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t},l=t((function(t){function e(n,r,o){return\"undefined\"!=typeof Reflect&&Reflect.get?t.exports=e=Reflect.get:t.exports=e=function(t,e,n){var r=h(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}},e(n,r,o||n)}t.exports=e})),f=t((function(t){function e(n,r){return t.exports=e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},e(n,r)}t.exports=e}));var p=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&&f(t,e)},y=function(t){function r(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100*Math.random()|0;return n(this,r),(t=c(this,u(r).call(this))).id=\"BELLHOP:\".concat(e),t.connected=!1,t.isChild=!0,t.connecting=!1,t.debug=!1,t.origin=\"*\",t._sendLater=[],t.iframe=null,t.receive=t.receive.bind(a(t)),t}return p(r,i),o(r,[{key:\"receive\",value:function(t){if(this.target===t.source)if(this.logDebugMessage(!0,t),\"connected\"===t.data)this.onConnectionReceived(t.data);else{var n=t.data;if(\"string\"==typeof n)try{n=JSON.parse(n)}catch(t){console.warn(\"Bellhop error: \",t)}this.connected&&\"object\"===e(n)&&n.type&&this.trigger(n)}}},{key:\"onConnectionReceived\",value:function(t){if(this.connecting=!1,this.connected=!0,!this.isChild){if(!this.target)return;this.target.postMessage(t,this.origin)}for(var e=0;e1&&void 0!==arguments[1]?arguments[1]:\"*\";this.connecting||(this.disconnect(),this.connecting=!0,t instanceof HTMLIFrameElement&&(this.iframe=t),this.isChild=void 0===t,this.supported=!0,this.isChild&&(this.supported=window!=t),this.origin=e,window.addEventListener(\"message\",this.receive),this.isChild&&(window===this.target?this.trigger(\"failed\"):this.target.postMessage(\"connected\",this.origin)))}},{key:\"disconnect\",value:function(){this.connected=!1,this.connecting=!1,this.origin=null,this.iframe=null,this.isChild=!0,this._sendLater.length=0,window.removeEventListener(\"message\",this.receive)}},{key:\"send\",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(\"string\"!=typeof t)throw\"The event type must be a string\";var n={type:t,data:e};this.logDebugMessage(!1,n),this.connecting?this._sendLater.push(n):this.target.postMessage(JSON.stringify(n),this.origin)}},{key:\"fetch\",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!this.connecting&&!this.connected)throw\"No connection, please call connect() first\";var i=function t(r){o&&n.off(r.type,t),e(r)};this.on(t,i),this.send(t,r)}},{key:\"respond\",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this,o=function t(o){return s.async((function(i){for(;;)switch(i.prev=i.next){case 0:if(n&&r.off(o,t),\"function\"!=typeof e){i.next=10;break}return i.t0=r,i.t1=o.type,i.next=6,s.awrap(e());case 6:i.t2=i.sent,i.t0.send.call(i.t0,i.t1,i.t2),i.next=11;break;case 10:r.send(o.type,e);case 11:case\"end\":return i.stop()}}))};this.on(t,o)}},{key:\"logDebugMessage\",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1?arguments[1]:void 0;this.debug&&\"function\"==typeof this.debug?this.debug({isChild:this.isChild,received:t,message:e}):this.debug&&console.log(\"Bellhop Instance (\".concat(this.isChild?\"Child\":\"Parent\",\") \").concat(t?\"Receieved\":\"Sent\"),e)}},{key:\"destroy\",value:function(){l(u(r.prototype),\"destroy\",this).call(this),this.disconnect(),this._sendLater.length=0}},{key:\"target\",get:function(){return this.isChild?window.parent:this.iframe.contentWindow}}]),r}();export{y as Bellhop,i as BellhopEventDispatcher};\n//# sourceMappingURL=bellhop.js.map\n","/**\n * @typedef {import('./base-plugins/BasePlugin').BasePlugin} BasePlugin\n */\nimport { Bellhop } from 'bellhop-iframe';\n/**\n *\n *\n * @export\n * @class PluginManager\n */\nexport default class PluginManager {\n /**\n *Creates an instance of PluginManager.\n * @memberof PluginManager\n */\n constructor({ plugins = [] }) {\n this.client = new Bellhop();\n // @ts-ignore\n this.client.hidden = this.client.receive.bind(this.client);\n // @ts-ignore\n this.client.hiddenSend = this.client.send.bind(this.client);\n this.client.receive = function (event) {\n this.hidden(event);\n }.bind(this.client);\n this.client.send = function (event, data) {\n this.hiddenSend(event, data);\n }.bind(this.client);\n\n this.plugins = plugins;\n }\n\n /**\n *\n *\n * @returns\n * @memberof PluginManager\n */\n setupPlugins() {\n const preloads = [];\n for (let i = 0, l = this.plugins.length; i < l; i++) {\n if (!this.plugins[i].preload) {\n continue;\n }\n\n preloads.push(\n this.plugins[i].preload(this).catch(function preloadFail(error) {\n this.plugins[i].preloadFailed = true;\n console.warn(this.plugins[i].name, 'Preload Failed:', error);\n }.bind(this))\n );\n }\n\n // ~wait for all preloads to resolve\n return Promise.all(preloads).then(() => {\n // Remove plugins that fail to load.\n this.plugins = this.plugins.filter(\n plugin => plugin.preloadFailed !== true\n );\n\n //init\n this.plugins.forEach(plugin => {\n if (!plugin.init) {\n return;\n }\n\n plugin.init(this);\n });\n\n //start\n this.plugins.forEach(plugin => {\n if (!plugin.start) {\n return;\n }\n plugin.start(this);\n });\n });\n }\n\n /**\n * Registers a plugin to be used by PluginManagers, sorting it by priority order.\n * @param {BasePlugin} plugin The plugin to register.\n */\n uses(plugin) {\n this.plugins.push(plugin);\n }\n\n /**\n * Finds a plugin by name.\n * @param {string} name The name of the plugin.\n * @returns {BasePlugin}\n */\n getPlugin(name) {\n return this.plugins.find(function (plugin) {\n return plugin.name === name;\n });\n }\n}\n","import 'whatwg-fetch';\n\nimport { Features } from './Features';\nimport PluginManager from './PluginManager';\n// @ts-ignore\nimport { version } from '../package.json';\n\n/**\n * The application container\n * @class Container\n * @property {Bellhop} client Communication layer between the container and application\n * @property {boolean} loaded Check to see if a application is loaded\n * @property {boolean} loading Check to see if a application is loading\n * @property {object} release The current release data\n * @property {HTMLIFrameElement} iframe The DOM object for the iframe\n * @static @property {string} version The current version of the library\n */\nexport class Container extends PluginManager {\n /**\n *Creates an instance of Container.\n * @param {object} config\n * @param {string | HTMLIFrameElement} iframeOrSelector\n * @param {Array | null} [config.plugins]\n * @param {object | null} [config.context={}]\n * @memberof Container\n */\n constructor(iframeOrSelector, { plugins, context = {} } = {}) {\n super({ plugins });\n\n this.iframe = iframeOrSelector instanceof HTMLIFrameElement ? iframeOrSelector : document.querySelector(iframeOrSelector);\n\n if (null === this.iframe) {\n throw new Error('No iframe was found with the provided selector');\n }\n\n this.loaded = false;\n this.loading = false;\n this.release = null;\n\n // context object that plugins can pick up on\n this._context = context;\n\n this.onLoading = this.onLoading.bind(this);\n this.onLoadDone = this.onLoadDone.bind(this);\n this.onLoadDone = this.onLoadDone.bind(this);\n this.onEndGame = this.onEndGame.bind(this);\n this.onLocalError = this.onLocalError.bind(this);\n\n this.initClient();\n this.setupPlugins();\n }\n\n /**\n * The game is starting to load\n * @memberof Container\n */\n onLoading() {\n this.client.trigger('opening');\n }\n\n /**\n * Reset the mutes for audio and captions\n * @memberof Container\n */\n onLoadDone() {\n this.loading = false;\n this.loaded = true;\n this.iframe.classList.remove('loading');\n\n this.client.trigger('opened');\n }\n\n /**\n * The application ended and destroyed itself\n * @memberof Container\n */\n onEndGame() {\n this.reset();\n }\n /**\n * Handle the local errors\n * @method onLocalError\n * @private\n * @param {Event} $event Bellhop event\n */\n onLocalError($event) {\n console.error('SpringRoll Container error: ', $event, new Error().stack);\n }\n\n /**\n * Reset all the buttons back to their original setting\n * and clear the iframe.\n * @memberof Container\n */\n reset() {\n const wasLoaded = this.loaded || this.loading;\n\n if (wasLoaded) {\n this.client.trigger('closed');\n }\n\n // Reset state\n this.loaded = false;\n this.loading = false;\n\n // Clear the iframe src location\n this.iframe.setAttribute('src', '');\n this.iframe.classList.remove('loading');\n }\n\n /**\n * Set up communication layer between site and application.\n * May be called from subclasses if they create/destroy Bellhop instances.\n * @memberof Container\n */\n initClient() {\n //Handle bellhop events coming from the application\n this.client.on('loading', this.onLoading);\n this.client.on('loaded', this.onLoadDone);\n this.client.on('loadDone', this.onLoadDone);\n this.client.on('endGame', this.onEndGame);\n this.client.on('localError', this.onLocalError);\n // @ts-ignore\n this.client.connect(this.iframe);\n }\n\n /**\n * If there was an error when closing, reset the container\n * @memberof Container\n */\n _onCloseFailed() {\n this.reset(); // force close the app\n }\n\n /**\n * Open a application or path\n * @param {string} userPath The full path to the application to load\n * @param {object} [userOptions] The open options\n * @param {boolean} [userOptions.singlePlay=false] If we should play in single play mode\n * @param {object | null} [userOptions.playOptions=null] The optional play options\n * @memberof Container\n */\n _internalOpen(userPath, { singlePlay = false, playOptions = null } = {}) {\n const options = { singlePlay, playOptions };\n this.reset();\n\n this.loading = true;\n this.initClient();\n\n const err = Features.basic();\n if (err) {\n console.error('ERROR:', err);\n this.client.trigger('unsupported');\n }\n\n let path = userPath;\n if (null !== options.playOptions) {\n const playOptionsQueryString =\n 'playOptions=' +\n encodeURIComponent(JSON.stringify(options.playOptions));\n\n path =\n -1 === userPath.indexOf('?')\n ? `${userPath}?${playOptionsQueryString}`\n : `${userPath}&${playOptionsQueryString}`;\n }\n\n this.iframe.classList.add('loading');\n this.iframe.setAttribute('src', path);\n\n this.client.respond('singlePlay', singlePlay);\n this.client.respond('playOptions', playOptions);\n this.client.trigger('open');\n }\n\n /**\n *\n *\n * @param {string} path\n * @param {object} [options={}]\n * @memberof Container\n */\n openPath(path, options = {}) {\n // This should be deprecated, support for old function signature\n if ('object' !== typeof options) {\n console.warn(\n 'SpringRoll Container.openPath was passed a invalid options parameter. Using default parameters instead'\n );\n options = {};\n }\n\n this._internalOpen(\n path,\n Object.assign(\n {\n singlePlay: false,\n playOptions: {}\n },\n options\n )\n );\n }\n\n /**\n * Open application based on an API Call to SpringRoll Connect\n * @param {string} api\n * @param {object} options\n * @param {string} [options.query='']\n * @param {boolean} [options.singlePlay=false]\n * @param {null | object} [options.playOptions=null]\n * @returns {Promise}\n * @memberof Container\n */\n async openRemote(\n api,\n { query = '', singlePlay = false, playOptions = null } = {}\n ) {\n this.release = null;\n\n const response = await fetch(api, {\n headers: {\n 'Content-Type': 'application/json'\n }\n });\n\n const json = await response.json();\n\n // if SpringRollConnect denoted that something failed, send that error back\n if (!json.success) {\n throw new Error(json.error);\n }\n\n // If the browser doesn't support the capabilities requested by this game, also fail.\n const release = json.data;\n const error = Features.test(release.capabilities);\n if (error) {\n this.client.trigger('unsupported', { error });\n throw new Error(error);\n }\n\n // otherwise, open the game\n this.release = release;\n this._internalOpen(release.url + query, {\n singlePlay,\n playOptions\n });\n }\n\n /**\n * Destroy and don't use after this\n * @memberof Container\n */\n destroy() {\n this.reset();\n\n this.iframe = null;\n this.options = null;\n this.release = null;\n }\n\n /**\n * Tell the application to start closing\n * @memberof Container\n */\n close() {\n if (this.loading || this.loaded) {\n this.client.trigger('close');\n // Start the close\n this.client.send('close');\n } else {\n this.reset();\n }\n }\n\n /**\n * the current _context object\n * @readonly\n * @memberof Container\n * @return {object}\n */\n get context() {\n return this._context;\n }\n\n /**\n * sets _context object to new object\n * @param {object} context\n * @memberof Container\n */\n set context(newContext) {\n if (typeof newContext !== 'object') {\n console.error('[SpringRollContainer] Context: new context provided is not an object');\n return;\n }\n this._context = newContext;\n }\n\n\n\n /**\n * The current version of SpringRollContainer\n * @readonly\n * @static\n * @return {string}\n * @memberof Container\n */\n static get version() {\n return version;\n }\n}\n","/**\n * Handle the page visiblity change, if supported. Application uses one of these to\n * monitor page visibility. It is suggested that you listen to `pause`, `paused`,\n * or `resumed` events on the Application instead of using one of these yourself.\n *\n * @export\n * @class PageVisibility\n * @constructor\n * @param {Function} onFocus Callback when the page becomes visible\n * @param {Function} onBlur Callback when the page loses visibility\n */\nexport class PageVisibility {\n /**\n *Creates an instance of PageVisibility.\n * @param { function } [onFocus=function() {}]\n * @param { function } [onBlur=function() {}]\n * @memberof PageVisibility\n */\n constructor(onFocus = function() {}, onBlur = function() {}) {\n this._onFocus = onFocus;\n this._onBlur = onBlur;\n this.onFocus = function(e) {\n if (this.enabled) {\n this._onFocus(e);\n }\n }.bind(this);\n this.onBlur = function(e) {\n if (this.enabled) {\n this._onBlur(e);\n }\n }.bind(this);\n this._enabled = false;\n this.enabled = true;\n\n this.onToggle = this.onToggle.bind(this);\n }\n\n /**\n * Disable the detection\n * @memberof PageVisibility\n */\n destroy() {\n this.enabled = false;\n this.onToggle = null;\n this.onFocus = null;\n this.onBlur = null;\n }\n\n /**\n * The visibility toggle listener function\n * @param {Event} $event;\n * @memberof PageVisibility\n */\n onToggle($event) {\n if (this.enabled) {\n document.hidden ? this.onBlur($event) : this.onFocus($event);\n }\n }\n\n /**\n * If this object is enabled.\n * @returns {boolean}\n * @memberof PageVisibility\n */\n get enabled() {\n return this._enabled;\n }\n\n /**\n * Sets the state of the object\n * @memberof PageVisibility\n */\n set enabled(enable) {\n this._enabled = enable;\n\n document.removeEventListener('visibilitychange', this.onToggle, false);\n window.removeEventListener('blur', this.onBlur, false);\n window.removeEventListener('focus', this.onFocus, false);\n window.removeEventListener('pagehide', this.onBlur, false);\n window.removeEventListener('pageshow', this.onFocus, false);\n window.removeEventListener('visibilitychange', this.onToggle, false);\n\n if (this._enabled) {\n document.addEventListener('visibilitychange', this.onToggle, false);\n window.addEventListener('blur', this.onBlur, false);\n window.addEventListener('focus', this.onFocus, false);\n window.addEventListener('pagehide', this.onBlur, false);\n window.addEventListener('pageshow', this.onFocus, false);\n window.addEventListener('visibilitychange', this.onToggle, false);\n }\n }\n}\n","'use strict';\nvar $ = require('../internals/export');\nvar $includes = require('../internals/array-includes').includes;\nvar fails = require('../internals/fails');\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\n// FF99+ bug\nvar BROKEN_ON_SPARSE = fails(function () {\n // eslint-disable-next-line es/no-array-prototype-includes -- detection\n return !Array(1).includes();\n});\n\n// `Array.prototype.includes` method\n// https://tc39.es/ecma262/#sec-array.prototype.includes\n$({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {\n includes: function includes(el /* , fromIndex = 0 */) {\n return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('includes');\n","// a string of all valid unicode whitespaces\nmodule.exports = '\\u0009\\u000A\\u000B\\u000C\\u000D\\u0020\\u00A0\\u1680\\u2000\\u2001\\u2002' +\n '\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF';\n","var PROPER_FUNCTION_NAME = require('../internals/function-name').PROPER;\nvar fails = require('../internals/fails');\nvar whitespaces = require('../internals/whitespaces');\n\nvar non = '\\u200B\\u0085\\u180E';\n\n// check that a method works with the correct list\n// of whitespaces and has a correct name\nmodule.exports = function (METHOD_NAME) {\n return fails(function () {\n return !!whitespaces[METHOD_NAME]()\n || non[METHOD_NAME]() !== non\n || (PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME);\n });\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar toString = require('../internals/to-string');\nvar whitespaces = require('../internals/whitespaces');\n\nvar replace = uncurryThis(''.replace);\nvar ltrim = RegExp('^[' + whitespaces + ']+');\nvar rtrim = RegExp('(^|[^' + whitespaces + '])[' + whitespaces + ']+$');\n\n// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation\nvar createMethod = function (TYPE) {\n return function ($this) {\n var string = toString(requireObjectCoercible($this));\n if (TYPE & 1) string = replace(string, ltrim, '');\n if (TYPE & 2) string = replace(string, rtrim, '$1');\n return string;\n };\n};\n\nmodule.exports = {\n // `String.prototype.{ trimLeft, trimStart }` methods\n // https://tc39.es/ecma262/#sec-string.prototype.trimstart\n start: createMethod(1),\n // `String.prototype.{ trimRight, trimEnd }` methods\n // https://tc39.es/ecma262/#sec-string.prototype.trimend\n end: createMethod(2),\n // `String.prototype.trim` method\n // https://tc39.es/ecma262/#sec-string.prototype.trim\n trim: createMethod(3)\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar $trim = require('../internals/string-trim').trim;\nvar forcedStringTrimMethod = require('../internals/string-trim-forced');\n\n// `String.prototype.trim` method\n// https://tc39.es/ecma262/#sec-string.prototype.trim\n$({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {\n trim: function trim() {\n return $trim(this);\n }\n});\n","var call = require('../internals/function-call');\nvar hasOwn = require('../internals/has-own-property');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar regExpFlags = require('../internals/regexp-flags');\n\nvar RegExpPrototype = RegExp.prototype;\n\nmodule.exports = function (R) {\n var flags = R.flags;\n return flags === undefined && !('flags' in RegExpPrototype) && !hasOwn(R, 'flags') && isPrototypeOf(RegExpPrototype, R)\n ? call(regExpFlags, R) : flags;\n};\n","'use strict';\nvar PROPER_FUNCTION_NAME = require('../internals/function-name').PROPER;\nvar defineBuiltIn = require('../internals/define-built-in');\nvar anObject = require('../internals/an-object');\nvar $toString = require('../internals/to-string');\nvar fails = require('../internals/fails');\nvar getRegExpFlags = require('../internals/regexp-get-flags');\n\nvar TO_STRING = 'toString';\nvar RegExpPrototype = RegExp.prototype;\nvar nativeToString = RegExpPrototype[TO_STRING];\n\nvar NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });\n// FF44- RegExp#toString has a wrong name\nvar INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name != TO_STRING;\n\n// `RegExp.prototype.toString` method\n// https://tc39.es/ecma262/#sec-regexp.prototype.tostring\nif (NOT_GENERIC || INCORRECT_NAME) {\n defineBuiltIn(RegExp.prototype, TO_STRING, function toString() {\n var R = anObject(this);\n var pattern = $toString(R.source);\n var flags = $toString(getRegExpFlags(R));\n return '/' + pattern + '/' + flags;\n }, { unsafe: true });\n}\n","/**\n * The SavedData functions use localStorage and sessionStorage, with a cookie fallback.\n *\n * @class SavedData\n */\nexport class SavedData {\n\n /**\n * Constructor for IndexedDB work\n */\n constructor(dbName = '') {\n this.db = null;\n this.dbName = dbName;\n }\n /**\n * Remove a saved variable by name.\n * @method remove\n * @static\n * @param {String} name The name of the value to remove\n */\n static remove(name) {\n localStorage.removeItem(name);\n sessionStorage.removeItem(name);\n }\n\n /**\n * Save a variable.\n * @method write\n * @static\n * @param {string} name The name of the value to save\n * @param {string} value The value to save. This will be run through JSON.stringify().\n * @param {boolean} [tempOnly=false] If the value should be saved only in the current browser session.\n */\n static write(name, value, tempOnly = false) {\n\n return tempOnly\n ? sessionStorage.setItem(\n name,\n JSON.stringify('function' === typeof value ? value() : value)\n )\n : localStorage.setItem(\n name,\n JSON.stringify('function' === typeof value ? value() : value)\n );\n }\n\n /**\n * Read the value of a saved variable\n * @method read\n * @static\n * @param {String} name The name of the variable\n * @return {*} The value (run through `JSON.parse()`) or null if it doesn't exist\n */\n static read(name) {\n const value = localStorage.getItem(name) || sessionStorage.getItem(name);\n\n if ('string' === typeof value) {\n try {\n return JSON.parse(value);\n } catch (err) {\n return value;\n }\n } else {\n return value;\n }\n }\n\n /**\n * Open a connection with the IDB Database and optionally add or delete\n * Indexes and stores\n *\n * @param {string} dbName The name of your IndexedDB database\n * @param {string} dbVersion The version number of the database. Additions and deletions will be ignored if lower than current version number\n * @param {JSON} additions Any additions to the structure of the database\n * @param {array} additions.stores Any stores to be added into the database syntax: {storeName: '[name]', options: {[optionally add options]}}\n * @param {array} additions.indexes Any Indexes to be added to the database syntax: {storeName: '[name]', options: {[optionally add options]}}\n */\n IDBOpen( dbName, dbVersion = null, additions = {}, deletions = {}, callback ) {\n const request = dbVersion ? indexedDB.open(dbName, dbVersion) : indexedDB.open(dbName);\n\n request.onsuccess = e => {\n // Database successfully opened. This will run along with onupgradeneeded\n this.db = e.target.result;\n\n if (this.db.version == dbVersion | dbVersion == null) {\n callback({result: 'Success: IDBOpen', success: true});\n }\n };\n\n request.onerror = () => {\n callback({result: request.error.toString(), success: false});\n };\n\n // on upgrade needed fires only if the dbVersion is higher than the current version number\n request.onupgradeneeded = e => {\n // Ensure the proper database object is stored\n this.db = e.target.result;\n\n if (additions != null) {\n if (additions.stores) {\n additions.stores.forEach(store => {\n this.db.createObjectStore(store.storeName, store.options);\n });\n }\n if (additions.indexes != null) {\n additions.indexes.forEach(index => {\n // Add indexes last to avoid adding an index to a store that has yet to be created\n // Open a transaction returning a store object\n const storeObject = request.transaction.objectStore(index.storeName);\n storeObject.createIndex(index.indexName, index.keyPath, index.options);\n });\n }\n }\n\n if (deletions != null) {\n if (deletions.indexes != null) {\n // delete indexes first to avoid deleting an index to a store that has already to been deleted\n deletions.indexes.forEach((index) => {\n // Open a transaction returning a store object\n const storeObject = request.transaction.objectStore(index.storeName);\n storeObject.deleteIndex(index.indexName);\n });\n }\n if (deletions.stores) {\n deletions.stores.forEach((store) => {\n this.db.deleteObjectStore(store.storeName);\n });\n }\n }\n callback({result: 'Success: IDBOpen onupgradeneeded ran', success: true});\n };\n }\n\n /**\n * Delete a database and all records, stores, and indexes associated\n * @param {string} dbName Name of the database to delete\n * @param {object} options Optionally pass in options\n * @param {function} callback The callback to be run on success or error. One value will be passed into this function\n */\n IDBDeleteDB(dbName, options = null, callback = {}) {\n const request = options != null ? indexedDB.deleteDatabase(dbName, options): indexedDB.deleteDatabase(dbName);\n\n request.onsuccess = (e) => {\n callback({result: 'Success: Database Deleted, returned: ' + e.result, success: true});\n };\n request.onerror = () => {\n callback({result: request.error.toString(), success: false});\n };\n\n\n }\n\n /**\n * Add a record to a given store\n * @param {string} storeName The name of the store from which the record will be updated\n * @param {string} key the key of the record to be updated\n * @param {string} value The value for the record with the given key to be updated\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBAdd(storeName, value, key, callback) {\n if ( !this.db && this.dbName != '') {\n this.IDBOpen(this.dbName);\n }\n\n const tx = this.db.transaction(storeName, 'readwrite');\n tx.onerror = () => callback({result: tx.error != null ? tx.error.toString() : 'Aborted: No error given, was the record already added?', success: false});\n tx.onabort = () => callback({result: tx.error != null ? tx.error.toString() : 'Aborted: No error given, was the record already added?', success: false});\n\n tx.oncomplete = () => callback({result: 'Success: Record Added', success: true});\n const store = tx.objectStore(storeName);\n store.add(value, key);\n }\n\n /**\n * Update a record in a given store\n * @param {string} storeName The name of the store from which the record will be updated\n * @param {string} key the key of the record to be updated\n * @param {string | object} value The altered object to be updated from the given store\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBUpdate (storeName, key, value, callback) {\n if ( !this.db && this.dbName != '') {\n this.IDBOpen(this.dbName);\n }\n\n const tx = this.db.transaction(storeName, 'readwrite');\n const store = tx.objectStore(storeName);\n\n const updateRequest = store.put(value, key);\n\n updateRequest.onsuccess = () => {\n callback({result: 'Success: Record Updated', success: true});\n };\n\n updateRequest.onerror = () => callback({result: updateRequest.error.toString(), success: false});\n }\n\n /**\n * Delete a given record within a given store\n * @param {string} storeName The name of the store from which the record will be removed\n * @param {string} key the key of the record to be removed\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBRemove(storeName, key, callback) {\n if ( !this.db && this.dbName != '') {\n this.IDBOpen(this.dbName);\n }\n\n const tx = this.db.transaction(storeName, 'readwrite');\n tx.onerror = () => callback({result: this.db.error.toString(), success: false});\n const store = tx.objectStore(storeName);\n store.delete(key);\n\n tx.oncomplete = () => callback({result: 'Removed Successfully', success: true});\n\n }\n\n /**\n * Return a record from a given store with a given key\n * @param {string} storeName the name of the store to read from\n * @param {string} key The key for the record in the given store\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBRead(storeName, key, callback) {\n // Open transaction with a store\n const tx = this.db.transaction(storeName, 'readonly');\n // Get the store object from the transaction\n const store = tx.objectStore(storeName);\n\n tx.onerror = () => callback({result: this.db.error.toString(), success: false});\n\n const readRequest = store.get(key);\n\n readRequest.onsuccess = () => {\n callback({result: readRequest.result, success: readRequest.result != undefined ? true : false});\n };\n\n }\n\n /**\n * Get all keys with given index\n * @param {string} storeName the name of the store to be read from\n * @param {string} indexName the name of the index to be read from\n * @param {string} query Optionally give a keyRange of records to return\n * @param {string} count Optionally give a max limit on records to be returned\n * @param {function} callback The method to call on success or failure. A single value will be passed in as a parameter\n */\n IDBGetIndexKeys (storeName, indexName, query = null, count = null, callback = {}) {\n // Open transaction with a store\n const tx = this.db.transaction(storeName, 'readonly');\n // Get the store object from the transaction\n const store = tx.objectStore(storeName);\n\n let index;\n\n tx.onerror = () => callback({result: this.db.error.toString(), success: false});\n\n if (query && count) {\n index = store.index(indexName, query, count);\n } else if (query) {\n index = store.index(indexName, query);\n } else {\n index = store.index(indexName);\n }\n\n const getAllKeysRequest = index.getAllKeys();\n\n\n getAllKeysRequest.onsuccess = function(e) {\n callback({result : e.result, success: true});\n };\n }\n\n /**\n * Get all records from a store\n * @param {string} storeName The store to get all records from\n * @param {integer} count Optionally the count of records to return\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBReadAll(storeName, count, callback) {\n // Open transaction with a store\n const tx = this.db.transaction(storeName, 'readonly');\n // Get the store object from the transaction\n const store = tx.objectStore(storeName);\n\n const readRequest = count != null ? store.getAll(null, count) : store.getAll();\n\n // const readRequest = store.getAll();\n\n tx.onerror = () => callback({result: tx.error.toString(), success: false});\n\n\n readRequest.onsuccess = () => {\n callback({result: readRequest.result, success: readRequest.result != undefined ? true : false});\n };\n }\n\n /**\n * Get the version number of a given database. This will create a database if it doesn't exist.\n * Do not call this after opening a connection with the database\n * @param {string} dbName The name of the database for which the version will be returned\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBGetVersion(dbName, callback) {\n // Open the database\n const dBOpenRequest = window.indexedDB.open(dbName);\n\n // these two event handlers act on the database\n // being opened. successfully, or not\n dBOpenRequest.onerror = function() {\n callback({result: dBOpenRequest.error.toString(), success: false});\n };\n\n dBOpenRequest.onsuccess = function() {\n const db = dBOpenRequest.result;\n callback({result: db.version, success: true});\n };\n }\n\n /**\n * Closes the connection to the database if open\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBClose(callback) {\n if ( this.db ) {\n this.db.close();\n callback({result: 'Success: Closed Database Connection', success: true});\n }\n }\n\n}\n","/* eslint-disable no-unused-vars */\nimport { SavedData } from '../SavedData';\nimport { Container } from '../Container';\n\n/**\n *\n *\n * @export\n * @class BasePlugin\n * @property {Bellhop} client\n * @property {string} name\n */\nexport class BasePlugin {\n /**\n *Creates an instance of BasePlugin.\n * @param {string} name\n * @memberof BasePlugin\n */\n constructor(name) {\n this.name = name;\n this.client = null;\n }\n\n /**\n *\n * @param {Container} [container]\n * @memberof BasePlugin\n * @returns {Promise}\n */\n async preload({ client }) {\n this.client = client;\n }\n\n /**\n *\n * @memberof BasePlugin\n */\n start() {\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * @param {Container} [_]\n * @memberof BasePlugin\n */\n init(_) { }\n\n /**\n *\n *\n * @param {string} prop\n * @param {any} value\n * @memberof BasePlugin\n */\n sendProperty(prop, value) {\n SavedData.write(prop, value);\n this.client.send(prop, value);\n }\n\n\n /**\n *\n * @param {Container} [_]\n * @memberof BasePlugin\n */\n sendAllProperties(_) { }\n\n /**\n *\n * @param {string} warningText\n * @memberof BasePlugin\n */\n warn(warningText) {\n console.warn(`[SpringRollContainer] ${this.name}: ${warningText}`);\n }\n}\n","/* eslint-disable no-unused-vars */\nimport { BasePlugin } from './BasePlugin';\nimport { Container } from '../Container';\n\n/**\n *\n *\n * @export\n * @class ButtonPlugin\n * @extends {BasePlugin}\n */\nexport class ButtonPlugin extends BasePlugin {\n /**\n *Creates an instance of ButtonPlugin.\n * @param {string} name\n *\n * @memberof ButtonPlugin\n */\n constructor(name) {\n super(name);\n this.sendMutes = false;\n }\n\n /**\n * @memberof ButtonPlugin\n * @param {Container} [container]\n */\n init(container) {\n // eslint-disable-line no-unused-vars\n this.sendMutes = true;\n }\n\n /**\n *\n * Applies the disabled class to the provided element\n * @param {HTMLButtonElement | Element} button\n * @memberof ButtonPlugin\n */\n _disableButton(button) {\n if (button instanceof HTMLButtonElement) {\n button.classList.remove('enabled');\n button.classList.add('disabled');\n }\n }\n\n /**\n *\n *\n * @memberof ButtonPlugin\n */\n reset() {\n this.sendMutes = false;\n }\n\n /**\n *\n *\n * @param {string} prop\n * @param {Element} button\n * @param {Boolean} muted\n * @memberof ButtonPlugin\n */\n _setMuteProp(prop, button, muted) {\n if (Array.isArray(button)) {\n button.forEach(b => this.changeMutedState(b, muted));\n } else {\n this.changeMutedState(button, muted);\n }\n\n this.sendProperty(prop, muted);\n }\n\n /**\n *\n *\n * @param {Element} button\n * @param {Boolean} muted\n * @returns\n * @memberof ButtonPlugin\n */\n changeMutedState(button, muted = false) {\n //most times button will be a Button class rather than an HTMLElement\n //But just in case the Button ui-element is not being used\n const htmlButton = button.button ? button.button : button;\n\n if (!(htmlButton instanceof HTMLElement)) {\n return;\n }\n\n htmlButton.classList.remove('unmuted');\n htmlButton.classList.remove('muted');\n htmlButton.classList.add(muted ? 'muted' : 'unmuted');\n }\n}\n","var isObject = require('../internals/is-object');\nvar classof = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar MATCH = wellKnownSymbol('match');\n\n// `IsRegExp` abstract operation\n// https://tc39.es/ecma262/#sec-isregexp\nmodule.exports = function (it) {\n var isRegExp;\n return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) == 'RegExp');\n};\n","var isRegExp = require('../internals/is-regexp');\n\nvar $TypeError = TypeError;\n\nmodule.exports = function (it) {\n if (isRegExp(it)) {\n throw $TypeError(\"The method doesn't accept regular expressions\");\n } return it;\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar MATCH = wellKnownSymbol('match');\n\nmodule.exports = function (METHOD_NAME) {\n var regexp = /./;\n try {\n '/./'[METHOD_NAME](regexp);\n } catch (error1) {\n try {\n regexp[MATCH] = false;\n return '/./'[METHOD_NAME](regexp);\n } catch (error2) { /* empty */ }\n } return false;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar notARegExp = require('../internals/not-a-regexp');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar toString = require('../internals/to-string');\nvar correctIsRegExpLogic = require('../internals/correct-is-regexp-logic');\n\nvar stringIndexOf = uncurryThis(''.indexOf);\n\n// `String.prototype.includes` method\n// https://tc39.es/ecma262/#sec-string.prototype.includes\n$({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {\n includes: function includes(searchString /* , position = 0 */) {\n return !!~stringIndexOf(\n toString(requireObjectCoercible(this)),\n toString(notARegExp(searchString)),\n arguments.length > 1 ? arguments[1] : undefined\n );\n }\n});\n","var toAbsoluteIndex = require('../internals/to-absolute-index');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar createProperty = require('../internals/create-property');\n\nvar $Array = Array;\nvar max = Math.max;\n\nmodule.exports = function (O, start, end) {\n var length = lengthOfArrayLike(O);\n var k = toAbsoluteIndex(start, length);\n var fin = toAbsoluteIndex(end === undefined ? length : end, length);\n var result = $Array(max(fin - k, 0));\n for (var n = 0; k < fin; k++, n++) createProperty(result, n, O[k]);\n result.length = n;\n return result;\n};\n","/* eslint-disable es/no-object-getownpropertynames -- safe */\nvar classof = require('../internals/classof-raw');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar $getOwnPropertyNames = require('../internals/object-get-own-property-names').f;\nvar arraySlice = require('../internals/array-slice-simple');\n\nvar windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames\n ? Object.getOwnPropertyNames(window) : [];\n\nvar getWindowNames = function (it) {\n try {\n return $getOwnPropertyNames(it);\n } catch (error) {\n return arraySlice(windowNames);\n }\n};\n\n// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nmodule.exports.f = function getOwnPropertyNames(it) {\n return windowNames && classof(it) == 'Window'\n ? getWindowNames(it)\n : $getOwnPropertyNames(toIndexedObject(it));\n};\n","// FF26- bug: ArrayBuffers are non-extensible, but Object.isExtensible does not report it\nvar fails = require('../internals/fails');\n\nmodule.exports = fails(function () {\n if (typeof ArrayBuffer == 'function') {\n var buffer = new ArrayBuffer(8);\n // eslint-disable-next-line es/no-object-isextensible, es/no-object-defineproperty -- safe\n if (Object.isExtensible(buffer)) Object.defineProperty(buffer, 'a', { value: 8 });\n }\n});\n","var fails = require('../internals/fails');\nvar isObject = require('../internals/is-object');\nvar classof = require('../internals/classof-raw');\nvar ARRAY_BUFFER_NON_EXTENSIBLE = require('../internals/array-buffer-non-extensible');\n\n// eslint-disable-next-line es/no-object-isextensible -- safe\nvar $isExtensible = Object.isExtensible;\nvar FAILS_ON_PRIMITIVES = fails(function () { $isExtensible(1); });\n\n// `Object.isExtensible` method\n// https://tc39.es/ecma262/#sec-object.isextensible\nmodule.exports = (FAILS_ON_PRIMITIVES || ARRAY_BUFFER_NON_EXTENSIBLE) ? function isExtensible(it) {\n if (!isObject(it)) return false;\n if (ARRAY_BUFFER_NON_EXTENSIBLE && classof(it) == 'ArrayBuffer') return false;\n return $isExtensible ? $isExtensible(it) : true;\n} : $isExtensible;\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-object-isextensible, es/no-object-preventextensions -- required for testing\n return Object.isExtensible(Object.preventExtensions({}));\n});\n","var $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar hiddenKeys = require('../internals/hidden-keys');\nvar isObject = require('../internals/is-object');\nvar hasOwn = require('../internals/has-own-property');\nvar defineProperty = require('../internals/object-define-property').f;\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertyNamesExternalModule = require('../internals/object-get-own-property-names-external');\nvar isExtensible = require('../internals/object-is-extensible');\nvar uid = require('../internals/uid');\nvar FREEZING = require('../internals/freezing');\n\nvar REQUIRED = false;\nvar METADATA = uid('meta');\nvar id = 0;\n\nvar setMetadata = function (it) {\n defineProperty(it, METADATA, { value: {\n objectID: 'O' + id++, // object ID\n weakData: {} // weak collections IDs\n } });\n};\n\nvar fastKey = function (it, create) {\n // return a primitive with prefix\n if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if (!hasOwn(it, METADATA)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return 'F';\n // not necessary to add metadata\n if (!create) return 'E';\n // add missing metadata\n setMetadata(it);\n // return object ID\n } return it[METADATA].objectID;\n};\n\nvar getWeakData = function (it, create) {\n if (!hasOwn(it, METADATA)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return true;\n // not necessary to add metadata\n if (!create) return false;\n // add missing metadata\n setMetadata(it);\n // return the store of weak collections IDs\n } return it[METADATA].weakData;\n};\n\n// add metadata on freeze-family methods calling\nvar onFreeze = function (it) {\n if (FREEZING && REQUIRED && isExtensible(it) && !hasOwn(it, METADATA)) setMetadata(it);\n return it;\n};\n\nvar enable = function () {\n meta.enable = function () { /* empty */ };\n REQUIRED = true;\n var getOwnPropertyNames = getOwnPropertyNamesModule.f;\n var splice = uncurryThis([].splice);\n var test = {};\n test[METADATA] = 1;\n\n // prevent exposing of metadata key\n if (getOwnPropertyNames(test).length) {\n getOwnPropertyNamesModule.f = function (it) {\n var result = getOwnPropertyNames(it);\n for (var i = 0, length = result.length; i < length; i++) {\n if (result[i] === METADATA) {\n splice(result, i, 1);\n break;\n }\n } return result;\n };\n\n $({ target: 'Object', stat: true, forced: true }, {\n getOwnPropertyNames: getOwnPropertyNamesExternalModule.f\n });\n }\n};\n\nvar meta = module.exports = {\n enable: enable,\n fastKey: fastKey,\n getWeakData: getWeakData,\n onFreeze: onFreeze\n};\n\nhiddenKeys[METADATA] = true;\n","var isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\n\n// makes subclassing work correct for wrapped built-ins\nmodule.exports = function ($this, dummy, Wrapper) {\n var NewTarget, NewTargetPrototype;\n if (\n // it can work only with native `setPrototypeOf`\n setPrototypeOf &&\n // we haven't completely correct pre-ES6 way for getting `new.target`, so use this\n isCallable(NewTarget = dummy.constructor) &&\n NewTarget !== Wrapper &&\n isObject(NewTargetPrototype = NewTarget.prototype) &&\n NewTargetPrototype !== Wrapper.prototype\n ) setPrototypeOf($this, NewTargetPrototype);\n return $this;\n};\n","var defineBuiltIn = require('../internals/define-built-in');\n\nmodule.exports = function (target, src, options) {\n for (var key in src) defineBuiltIn(target, key, src[key], options);\n return target;\n};\n","'use strict';\nvar create = require('../internals/object-create');\nvar defineBuiltInAccessor = require('../internals/define-built-in-accessor');\nvar defineBuiltIns = require('../internals/define-built-ins');\nvar bind = require('../internals/function-bind-context');\nvar anInstance = require('../internals/an-instance');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar iterate = require('../internals/iterate');\nvar defineIterator = require('../internals/iterator-define');\nvar createIterResultObject = require('../internals/create-iter-result-object');\nvar setSpecies = require('../internals/set-species');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar fastKey = require('../internals/internal-metadata').fastKey;\nvar InternalStateModule = require('../internals/internal-state');\n\nvar setInternalState = InternalStateModule.set;\nvar internalStateGetterFor = InternalStateModule.getterFor;\n\nmodule.exports = {\n getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {\n var Constructor = wrapper(function (that, iterable) {\n anInstance(that, Prototype);\n setInternalState(that, {\n type: CONSTRUCTOR_NAME,\n index: create(null),\n first: undefined,\n last: undefined,\n size: 0\n });\n if (!DESCRIPTORS) that.size = 0;\n if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });\n });\n\n var Prototype = Constructor.prototype;\n\n var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);\n\n var define = function (that, key, value) {\n var state = getInternalState(that);\n var entry = getEntry(that, key);\n var previous, index;\n // change existing entry\n if (entry) {\n entry.value = value;\n // create new entry\n } else {\n state.last = entry = {\n index: index = fastKey(key, true),\n key: key,\n value: value,\n previous: previous = state.last,\n next: undefined,\n removed: false\n };\n if (!state.first) state.first = entry;\n if (previous) previous.next = entry;\n if (DESCRIPTORS) state.size++;\n else that.size++;\n // add to index\n if (index !== 'F') state.index[index] = entry;\n } return that;\n };\n\n var getEntry = function (that, key) {\n var state = getInternalState(that);\n // fast case\n var index = fastKey(key);\n var entry;\n if (index !== 'F') return state.index[index];\n // frozen object case\n for (entry = state.first; entry; entry = entry.next) {\n if (entry.key == key) return entry;\n }\n };\n\n defineBuiltIns(Prototype, {\n // `{ Map, Set }.prototype.clear()` methods\n // https://tc39.es/ecma262/#sec-map.prototype.clear\n // https://tc39.es/ecma262/#sec-set.prototype.clear\n clear: function clear() {\n var that = this;\n var state = getInternalState(that);\n var data = state.index;\n var entry = state.first;\n while (entry) {\n entry.removed = true;\n if (entry.previous) entry.previous = entry.previous.next = undefined;\n delete data[entry.index];\n entry = entry.next;\n }\n state.first = state.last = undefined;\n if (DESCRIPTORS) state.size = 0;\n else that.size = 0;\n },\n // `{ Map, Set }.prototype.delete(key)` methods\n // https://tc39.es/ecma262/#sec-map.prototype.delete\n // https://tc39.es/ecma262/#sec-set.prototype.delete\n 'delete': function (key) {\n var that = this;\n var state = getInternalState(that);\n var entry = getEntry(that, key);\n if (entry) {\n var next = entry.next;\n var prev = entry.previous;\n delete state.index[entry.index];\n entry.removed = true;\n if (prev) prev.next = next;\n if (next) next.previous = prev;\n if (state.first == entry) state.first = next;\n if (state.last == entry) state.last = prev;\n if (DESCRIPTORS) state.size--;\n else that.size--;\n } return !!entry;\n },\n // `{ Map, Set }.prototype.forEach(callbackfn, thisArg = undefined)` methods\n // https://tc39.es/ecma262/#sec-map.prototype.foreach\n // https://tc39.es/ecma262/#sec-set.prototype.foreach\n forEach: function forEach(callbackfn /* , that = undefined */) {\n var state = getInternalState(this);\n var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n var entry;\n while (entry = entry ? entry.next : state.first) {\n boundFunction(entry.value, entry.key, this);\n // revert to the last existing entry\n while (entry && entry.removed) entry = entry.previous;\n }\n },\n // `{ Map, Set}.prototype.has(key)` methods\n // https://tc39.es/ecma262/#sec-map.prototype.has\n // https://tc39.es/ecma262/#sec-set.prototype.has\n has: function has(key) {\n return !!getEntry(this, key);\n }\n });\n\n defineBuiltIns(Prototype, IS_MAP ? {\n // `Map.prototype.get(key)` method\n // https://tc39.es/ecma262/#sec-map.prototype.get\n get: function get(key) {\n var entry = getEntry(this, key);\n return entry && entry.value;\n },\n // `Map.prototype.set(key, value)` method\n // https://tc39.es/ecma262/#sec-map.prototype.set\n set: function set(key, value) {\n return define(this, key === 0 ? 0 : key, value);\n }\n } : {\n // `Set.prototype.add(value)` method\n // https://tc39.es/ecma262/#sec-set.prototype.add\n add: function add(value) {\n return define(this, value = value === 0 ? 0 : value, value);\n }\n });\n if (DESCRIPTORS) defineBuiltInAccessor(Prototype, 'size', {\n configurable: true,\n get: function () {\n return getInternalState(this).size;\n }\n });\n return Constructor;\n },\n setStrong: function (Constructor, CONSTRUCTOR_NAME, IS_MAP) {\n var ITERATOR_NAME = CONSTRUCTOR_NAME + ' Iterator';\n var getInternalCollectionState = internalStateGetterFor(CONSTRUCTOR_NAME);\n var getInternalIteratorState = internalStateGetterFor(ITERATOR_NAME);\n // `{ Map, Set }.prototype.{ keys, values, entries, @@iterator }()` methods\n // https://tc39.es/ecma262/#sec-map.prototype.entries\n // https://tc39.es/ecma262/#sec-map.prototype.keys\n // https://tc39.es/ecma262/#sec-map.prototype.values\n // https://tc39.es/ecma262/#sec-map.prototype-@@iterator\n // https://tc39.es/ecma262/#sec-set.prototype.entries\n // https://tc39.es/ecma262/#sec-set.prototype.keys\n // https://tc39.es/ecma262/#sec-set.prototype.values\n // https://tc39.es/ecma262/#sec-set.prototype-@@iterator\n defineIterator(Constructor, CONSTRUCTOR_NAME, function (iterated, kind) {\n setInternalState(this, {\n type: ITERATOR_NAME,\n target: iterated,\n state: getInternalCollectionState(iterated),\n kind: kind,\n last: undefined\n });\n }, function () {\n var state = getInternalIteratorState(this);\n var kind = state.kind;\n var entry = state.last;\n // revert to the last existing entry\n while (entry && entry.removed) entry = entry.previous;\n // get next entry\n if (!state.target || !(state.last = entry = entry ? entry.next : state.state.first)) {\n // or finish the iteration\n state.target = undefined;\n return createIterResultObject(undefined, true);\n }\n // return step by kind\n if (kind == 'keys') return createIterResultObject(entry.key, false);\n if (kind == 'values') return createIterResultObject(entry.value, false);\n return createIterResultObject([entry.key, entry.value], false);\n }, IS_MAP ? 'entries' : 'values', !IS_MAP, true);\n\n // `{ Map, Set }.prototype[@@species]` accessors\n // https://tc39.es/ecma262/#sec-get-map-@@species\n // https://tc39.es/ecma262/#sec-get-set-@@species\n setSpecies(CONSTRUCTOR_NAME);\n }\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isForced = require('../internals/is-forced');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar InternalMetadataModule = require('../internals/internal-metadata');\nvar iterate = require('../internals/iterate');\nvar anInstance = require('../internals/an-instance');\nvar isCallable = require('../internals/is-callable');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar isObject = require('../internals/is-object');\nvar fails = require('../internals/fails');\nvar checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar inheritIfRequired = require('../internals/inherit-if-required');\n\nmodule.exports = function (CONSTRUCTOR_NAME, wrapper, common) {\n var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1;\n var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1;\n var ADDER = IS_MAP ? 'set' : 'add';\n var NativeConstructor = global[CONSTRUCTOR_NAME];\n var NativePrototype = NativeConstructor && NativeConstructor.prototype;\n var Constructor = NativeConstructor;\n var exported = {};\n\n var fixMethod = function (KEY) {\n var uncurriedNativeMethod = uncurryThis(NativePrototype[KEY]);\n defineBuiltIn(NativePrototype, KEY,\n KEY == 'add' ? function add(value) {\n uncurriedNativeMethod(this, value === 0 ? 0 : value);\n return this;\n } : KEY == 'delete' ? function (key) {\n return IS_WEAK && !isObject(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);\n } : KEY == 'get' ? function get(key) {\n return IS_WEAK && !isObject(key) ? undefined : uncurriedNativeMethod(this, key === 0 ? 0 : key);\n } : KEY == 'has' ? function has(key) {\n return IS_WEAK && !isObject(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);\n } : function set(key, value) {\n uncurriedNativeMethod(this, key === 0 ? 0 : key, value);\n return this;\n }\n );\n };\n\n var REPLACE = isForced(\n CONSTRUCTOR_NAME,\n !isCallable(NativeConstructor) || !(IS_WEAK || NativePrototype.forEach && !fails(function () {\n new NativeConstructor().entries().next();\n }))\n );\n\n if (REPLACE) {\n // create collection constructor\n Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER);\n InternalMetadataModule.enable();\n } else if (isForced(CONSTRUCTOR_NAME, true)) {\n var instance = new Constructor();\n // early implementations not supports chaining\n var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance;\n // V8 ~ Chromium 40- weak-collections throws on primitives, but should return false\n var THROWS_ON_PRIMITIVES = fails(function () { instance.has(1); });\n // most early implementations doesn't supports iterables, most modern - not close it correctly\n // eslint-disable-next-line no-new -- required for testing\n var ACCEPT_ITERABLES = checkCorrectnessOfIteration(function (iterable) { new NativeConstructor(iterable); });\n // for early implementations -0 and +0 not the same\n var BUGGY_ZERO = !IS_WEAK && fails(function () {\n // V8 ~ Chromium 42- fails only with 5+ elements\n var $instance = new NativeConstructor();\n var index = 5;\n while (index--) $instance[ADDER](index, index);\n return !$instance.has(-0);\n });\n\n if (!ACCEPT_ITERABLES) {\n Constructor = wrapper(function (dummy, iterable) {\n anInstance(dummy, NativePrototype);\n var that = inheritIfRequired(new NativeConstructor(), dummy, Constructor);\n if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });\n return that;\n });\n Constructor.prototype = NativePrototype;\n NativePrototype.constructor = Constructor;\n }\n\n if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) {\n fixMethod('delete');\n fixMethod('has');\n IS_MAP && fixMethod('get');\n }\n\n if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER);\n\n // weak collections should not contains .clear method\n if (IS_WEAK && NativePrototype.clear) delete NativePrototype.clear;\n }\n\n exported[CONSTRUCTOR_NAME] = Constructor;\n $({ global: true, constructor: true, forced: Constructor != NativeConstructor }, exported);\n\n setToStringTag(Constructor, CONSTRUCTOR_NAME);\n\n if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);\n\n return Constructor;\n};\n","'use strict';\nvar collection = require('../internals/collection');\nvar collectionStrong = require('../internals/collection-strong');\n\n// `Set` constructor\n// https://tc39.es/ecma262/#sec-set-objects\ncollection('Set', function (init) {\n return function Set() { return init(this, arguments.length ? arguments[0] : undefined); };\n}, collectionStrong);\n","var $ = require('../internals/export');\nvar toObject = require('../internals/to-object');\nvar nativeKeys = require('../internals/object-keys');\nvar fails = require('../internals/fails');\n\nvar FAILS_ON_PRIMITIVES = fails(function () { nativeKeys(1); });\n\n// `Object.keys` method\n// https://tc39.es/ecma262/#sec-object.keys\n$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {\n keys: function keys(it) {\n return nativeKeys(toObject(it));\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $map = require('../internals/array-iteration').map;\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('map');\n\n// `Array.prototype.map` method\n// https://tc39.es/ecma262/#sec-array.prototype.map\n// with adding support of @@species\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {\n map: function map(callbackfn /* , thisArg */) {\n return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n","var DESCRIPTORS = require('../internals/descriptors');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar objectKeys = require('../internals/object-keys');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar $propertyIsEnumerable = require('../internals/object-property-is-enumerable').f;\n\nvar propertyIsEnumerable = uncurryThis($propertyIsEnumerable);\nvar push = uncurryThis([].push);\n\n// `Object.{ entries, values }` methods implementation\nvar createMethod = function (TO_ENTRIES) {\n return function (it) {\n var O = toIndexedObject(it);\n var keys = objectKeys(O);\n var length = keys.length;\n var i = 0;\n var result = [];\n var key;\n while (length > i) {\n key = keys[i++];\n if (!DESCRIPTORS || propertyIsEnumerable(O, key)) {\n push(result, TO_ENTRIES ? [key, O[key]] : O[key]);\n }\n }\n return result;\n };\n};\n\nmodule.exports = {\n // `Object.entries` method\n // https://tc39.es/ecma262/#sec-object.entries\n entries: createMethod(true),\n // `Object.values` method\n // https://tc39.es/ecma262/#sec-object.values\n values: createMethod(false)\n};\n","var $ = require('../internals/export');\nvar $values = require('../internals/object-to-array').values;\n\n// `Object.values` method\n// https://tc39.es/ecma262/#sec-object.values\n$({ target: 'Object', stat: true }, {\n values: function values(O) {\n return $values(O);\n }\n});\n","import { BasePlugin } from '../base-plugins/BasePlugin';\n\n/**\n * @export\n * @class RadioGroup\n * @property {string} controlName\n * @property {string} featureName\n * @property {string} radioElements\n * @property {string} defaultValue\n */\nexport class RadioGroup extends BasePlugin {\n /**\n * creates an instance of RadioGroup\n * @constructor\n * @param {string} selector selector string for the radio group\n * @param {string} controlName the name of the control (used for warning logging only)\n * @param {string} [featureName='captionStyles'] the feature name used by Springroll. Defaults to captionStyles\n * @param {string} defaultValue the value attribute of the radio button that should be selected by default\n * @param {string} pluginName name of the plugin that instantiated the RadioGroup. Used for logging warnings\n * @memberof RadioGroupPlugin\n */\n constructor({selector, controlName, featureName = 'captionStyles', defaultValue, pluginName}) {\n super(pluginName);\n this.controlName = controlName;\n this.featureName = featureName;\n this.radioElements = document.querySelectorAll(selector);\n this.defaultValue = defaultValue;\n\n this.radioGroup = {};\n\n if (this.radioElements.length <= 0) {\n this.warn(`${this.controlName} RadioGroup found no HTMLElements with selector: ${selector}`);\n return;\n }\n\n this.radioElements.forEach(radio => {\n if (radio.type !== 'radio') {\n this.warn(`${this.controlName} was provided a non Radio Button element with selector: ${selector}`);\n return;\n }\n radio.value = radio.value.toLowerCase();\n\n this.radioGroup[radio.value] = radio;\n });\n\n if (!this.radioGroup[this.defaultValue]) {\n this.warn(`${this.controlName} RadioGroup for selector: ${selector} does not have a radio button with value ${this.defaultValue} to use as default value. Using first element as default`);\n this.defaultValue = this.radioElements[0].value.toLowerCase();\n }\n\n this.radioGroup[this.defaultValue].checked = true;\n }\n\n /**\n * @param {string[]} valuesArray Array of acceptable values to check against the radio group.\n * @return {boolean}\n * @memberof RadioGroup\n */\n hasOnly(valuesArray) {\n\n for (const key in this.radioGroup) {\n if (!valuesArray.includes(this.radioGroup[key].value)) {\n this.warn(`${this.controlName} radio button value: ${this.radioGroup[key].value} is not an accepted value. Skipping radio group`);\n return false;\n }\n }\n\n return true;\n }\n\n /**\n * @return {boolean}\n * @memberof RadioGroup\n */\n hasDuplicateValues() {\n return this.values.length !== [...new Set(this.values)].length;\n }\n\n /**\n * Adds change listeners to the radio buttons using the given callback function\n * @memberof RadioGroup\n * @param {Function} callBack event to fire on change\n */\n enableRadioEvents(callBack) {\n if (!this.radioGroup.length <= 0) {\n return;\n }\n\n const event = callBack;\n for (const radio in this.radioGroup) {\n this.radioGroup[radio].addEventListener('change', event);\n }\n }\n\n /**\n * removes the event listeners from the RadioGroup\n * @memberof RadioGroup\n * @param {Function} callBack event to fire on change\n */\n disableRadioEvents(callBack) {\n if (!this.radioGroup.length <= 0) {\n return;\n }\n for (const radio in this.radioGroup) {\n this.radioGroup[radio].removeEventListener('change', callBack);\n }\n }\n\n /**\n * enables display of the Radio buttons if the correct feature is present in the features list\n * @memberof RadioGroup\n * @param {object} data Object containing which features are enabled\n */\n displayRadios(data) {\n if (this.radioGroup.length <= 0 && data[this.featureName]) {\n this.warn(`${this.controlName} was not provided a valid input element or selector but '${this.featureName}' was included as a game feature`);\n return;\n }\n\n if (this.radioGroup.length <= 0) {\n return;\n }\n\n if (data[this.featureName]) {\n return;\n }\n\n for (const radio in this.radioGroup) {\n this.radioGroup[radio].style.display = 'none';\n }\n }\n\n /**\n * Reset the radio button states\n * @memberof RadioGroup\n */\n resetState() {\n this.radioGroup[this.defaultValue].checked = true;\n }\n\n /**\n * @readonly\n * @returns {number}\n * @memberof RadioGroup\n */\n get length() {\n return Object.keys(this.radioGroup).length;\n }\n\n /**\n * @readonly\n * @returns {number}\n * @memberof RadioGroup\n */\n get values() {\n return Object.values(this.radioGroup).map(radio => radio.value);\n }\n}\n","import { BasePlugin } from './BasePlugin';\nimport { RadioGroup } from '../ui-elements/RadioGroup';\n\n/**\n *\n *\n * @export\n * @class RadioGroupPlugin\n */\nexport class RadioGroupPlugin extends BasePlugin {\n /**\n *\n *Creates an instance of RadioGroupPlugin.\n * @constructor\n * @memberof RadioGroupPlugin\n * @param {string} name\n */\n constructor(cssSelector, name, {supportedValues, initialValue, controlName, featureName, radioCount}) {\n super(name);\n this.selectors = cssSelector ? cssSelector.split(',') : [];\n this.supportedValues = supportedValues;\n this.initialValue = supportedValues.includes(initialValue) ? initialValue : supportedValues[0];\n this.controlName = controlName;\n this.featureName = featureName;\n this.radioCount = radioCount;\n this.sendAllProperties = this.sendAllProperties.bind(this);\n\n this._currentValue = this.initialValue;\n\n this.radioGroups = this.setUpRadios(this.selectors);\n\n this.radioGroupsLength = this.radioGroups.length;\n }\n\n /**\n * @memberof RadioGroupPlugin\n * @param {string[]} selectors the separated selector strings used to target the radio button groups\n * @returns {RadioGroup[]}\n */\n setUpRadios(selectors) {\n const radioGroups = [];\n\n selectors.forEach((selector) => {\n const radioGroup = new RadioGroup({\n selector: selector.trim(),\n controlName: this.controlName,\n defaultValue: this.initialValue,\n pluginName: this.name,\n featureName: this.featureName\n });\n\n if (radioGroup.length !== this.radioCount) {\n this.warn(`Selector \"${selector}\" did not find exactly ${this.radioCount} radio buttons for ${this.controlName}. Skipping selector`);\n return;\n }\n\n if (!radioGroup.hasOnly(this.supportedValues)) {\n return;\n }\n\n if (radioGroup.hasDuplicateValues()) {\n this.warn(`Duplicate radio button values detected (values: ${radioGroup.values} ). Skipping radio group`);\n return;\n }\n\n radioGroups.push(radioGroup);\n });\n\n return radioGroups;\n }\n\n /**\n * @memberof RadioGroupPlugin\n */\n start() {\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Sends initial caption properties to the application\n * @memberof RadioGroupPlugin\n */\n sendAllProperties() {\n this.sendProperty(this.featureName, this.property);\n }\n\n /**\n * @memberof RadioGroupPlugin\n * @param {string} newValue\n */\n set currentValue(newValue) {\n if (!this.supportedValues.includes(newValue)) {\n return;\n }\n\n this._currentValue = newValue;\n\n for (let i = 0, l = this.radioGroups.length; i < l; i++) {\n this.radioGroups[i].radioGroup[newValue].checked = true;\n }\n }\n\n /**\n * @memberof RadioGroupPlugin\n * @return {string}\n */\n get currentValue() {\n return this._currentValue;\n }\n\n}\n","var uncurryThis = require('../internals/function-uncurry-this');\n\n// `thisNumberValue` abstract operation\n// https://tc39.es/ecma262/#sec-thisnumbervalue\nmodule.exports = uncurryThis(1.0.valueOf);\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar global = require('../internals/global');\nvar path = require('../internals/path');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isForced = require('../internals/is-forced');\nvar hasOwn = require('../internals/has-own-property');\nvar inheritIfRequired = require('../internals/inherit-if-required');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar isSymbol = require('../internals/is-symbol');\nvar toPrimitive = require('../internals/to-primitive');\nvar fails = require('../internals/fails');\nvar getOwnPropertyNames = require('../internals/object-get-own-property-names').f;\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar defineProperty = require('../internals/object-define-property').f;\nvar thisNumberValue = require('../internals/this-number-value');\nvar trim = require('../internals/string-trim').trim;\n\nvar NUMBER = 'Number';\nvar NativeNumber = global[NUMBER];\nvar PureNumberNamespace = path[NUMBER];\nvar NumberPrototype = NativeNumber.prototype;\nvar TypeError = global.TypeError;\nvar stringSlice = uncurryThis(''.slice);\nvar charCodeAt = uncurryThis(''.charCodeAt);\n\n// `ToNumeric` abstract operation\n// https://tc39.es/ecma262/#sec-tonumeric\nvar toNumeric = function (value) {\n var primValue = toPrimitive(value, 'number');\n return typeof primValue == 'bigint' ? primValue : toNumber(primValue);\n};\n\n// `ToNumber` abstract operation\n// https://tc39.es/ecma262/#sec-tonumber\nvar toNumber = function (argument) {\n var it = toPrimitive(argument, 'number');\n var first, third, radix, maxCode, digits, length, index, code;\n if (isSymbol(it)) throw TypeError('Cannot convert a Symbol value to a number');\n if (typeof it == 'string' && it.length > 2) {\n it = trim(it);\n first = charCodeAt(it, 0);\n if (first === 43 || first === 45) {\n third = charCodeAt(it, 2);\n if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix\n } else if (first === 48) {\n switch (charCodeAt(it, 1)) {\n case 66: case 98: radix = 2; maxCode = 49; break; // fast equal of /^0b[01]+$/i\n case 79: case 111: radix = 8; maxCode = 55; break; // fast equal of /^0o[0-7]+$/i\n default: return +it;\n }\n digits = stringSlice(it, 2);\n length = digits.length;\n for (index = 0; index < length; index++) {\n code = charCodeAt(digits, index);\n // parseInt parses a string to a first unavailable symbol\n // but ToNumber should return NaN if a string contains unavailable symbols\n if (code < 48 || code > maxCode) return NaN;\n } return parseInt(digits, radix);\n }\n } return +it;\n};\n\nvar FORCED = isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'));\n\nvar calledWithNew = function (dummy) {\n // includes check on 1..constructor(foo) case\n return isPrototypeOf(NumberPrototype, dummy) && fails(function () { thisNumberValue(dummy); });\n};\n\n// `Number` constructor\n// https://tc39.es/ecma262/#sec-number-constructor\nvar NumberWrapper = function Number(value) {\n var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value));\n return calledWithNew(this) ? inheritIfRequired(Object(n), this, NumberWrapper) : n;\n};\n\nNumberWrapper.prototype = NumberPrototype;\nif (FORCED && !IS_PURE) NumberPrototype.constructor = NumberWrapper;\n\n$({ global: true, constructor: true, wrap: true, forced: FORCED }, {\n Number: NumberWrapper\n});\n\n// Use `internal/copy-constructor-properties` helper in `core-js@4`\nvar copyConstructorProperties = function (target, source) {\n for (var keys = DESCRIPTORS ? getOwnPropertyNames(source) : (\n // ES3:\n 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +\n // ES2015 (in case, if modules with ES2015 Number statics required before):\n 'EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,' +\n // ESNext\n 'fromString,range'\n ).split(','), j = 0, key; keys.length > j; j++) {\n if (hasOwn(source, key = keys[j]) && !hasOwn(target, key)) {\n defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n }\n};\n\nif (IS_PURE && PureNumberNamespace) copyConstructorProperties(path[NUMBER], PureNumberNamespace);\nif (FORCED || IS_PURE) copyConstructorProperties(path[NUMBER], NativeNumber);\n","import { SavedData } from '../SavedData';\n\n/**\n * @export\n * @class Slider\n */\nexport class Slider {\n /**\n *Creates an instance of Slider\n * @param {object} params\n * @param {string | HTMLInputElement} params.slider the slider element or a selector string\n * @param {string} params.control the feature that this slider controols\n * @param {number} [min=0] slider min value\n * @param {number} [max=1] slider max value\n * @param {number} [step=0.1] slider step value\n * @param {number} [defaultValue=1] slider starting value\n * @memberof SliderPlugin\n */\n constructor({\n slider,\n control,\n min = 0,\n max = 1,\n step = 0.1,\n defaultValue = 1\n }) {\n this.min = min;\n this.max = max;\n this.step = step;\n this.sliderValue = defaultValue;\n this.control = control;\n this.slider = this.setUpSlider(slider, control);\n }\n\n /**\n * @param {string | HTMLInputElement | HTMLElement} slider\n * @param {string} control The control element (sensitivity, difficulty, pointer size, etc) this slider will be controlling\n * @returns {Element | HTMLElement}\n * @memberof Slider\n */\n setUpSlider(slider, control) {\n if ('string' === typeof slider) {\n slider = document.querySelector(slider);\n }\n\n if (!slider || 'range' !== slider.type) {\n return null;\n }\n const value = SavedData.read(control);\n\n slider.min = this.min;\n slider.max = this.max;\n slider.step = this.step;\n\n if ((value || value === 0) && value.toString().trim().length > 0) {\n slider.value = value;\n this.sliderValue = value;\n } else {\n slider.value = this.sliderValue;\n }\n\n return slider;\n }\n\n /**\n * Controls the range of the slider\n * @param {number} i\n * @returns\n * @memberof Slider\n */\n sliderRange(i) {\n if (i < this.min) {\n return this.min;\n } else if (i > this.max) {\n return this.max;\n } else {\n return i;\n }\n }\n\n /**\n * Adds change and input listeners to the slider using the given callback function\n * @memberof Slider\n * @param {Function} callBack event to fire on change or input\n */\n enableSliderEvents(callBack) {\n if (!this.slider) {\n return;\n }\n\n const event = callBack;\n this.slider.addEventListener('change', event);\n this.slider.addEventListener('input', event);\n }\n\n /**\n * removes the event listeners from the given slider.\n * @memberof Slider\n * @param {Function} callBack event to fire on change or input\n */\n disableSliderEvents(callBack) {\n if (!this.slider) {\n return;\n }\n const event = callBack;\n this.slider.removeEventListener('change', event);\n this.slider.removeEventListener('input', event);\n }\n /**\n * enables display of the Slider if it is present in the features list\n * @memberof Slider\n * @param {object} data Object containing which features are enabled\n */\n displaySlider(data) {\n if (!this.slider && data[this.control]) {\n console.warn(`${this.control} was not provided a valid input element or selector but was included as a game feature`);\n }\n\n if (!this.slider) {\n return;\n }\n\n this.slider.style.display = data[this.control] ? '' : 'none';\n }\n\n /**\n * @param {Event} event the event to be fired on the slider\n * @memberof Slider\n */\n dispatchEvent(event) {\n this.slider.dispatchEvent(event);\n }\n\n /**\n * @readonly\n * @returns {string}\n * @memberof Slider\n */\n get value() {\n return this.slider.value;\n }\n\n /**\n * @memberof Slider\n */\n set value(value) {\n this.slider.value = value;\n }\n}\n","/**\n * @export\n * @class Button\n */\nexport class Button {\n /**\n *Creates an instance of Button\n * @param {object} params\n * @param {string | HTMLElement} params.button the button itself or a selector string\n * @param {Function} params.onClick the function to call when the button is clicked\n * @param {string} channel the feature this button controls\n * @memberof ButtonPlugin\n */\n constructor({ button, onClick, channel }) {\n this.button =\n button instanceof HTMLElement ? button : document.querySelector(button);\n this.onClick = onClick;\n this.channel = channel;\n\n if (this.button) {\n this.button.addEventListener('click', onClick);\n }\n }\n\n /**\n * enables display of the button if it is present in the features list\n * @memberof Button\n * @param {object} data Object containing which features are enabled\n */\n displayButton(data) {\n if (!(this.button instanceof HTMLElement)) {\n return;\n }\n\n this.button.style.display =\n data[this.channel] || this.channel === 'pause' || this.channel === 'hints'\n ? ''\n : 'none';\n }\n\n /**\n * enables display of the button\n * @memberof Button\n */\n enableButton() {\n if (!this.button) {\n return;\n }\n this.button.classList.remove('disabled');\n }\n\n /**\n * \n * @param {string} className The classname to be appended to the end of the class property\n */\n addClass(className) {\n this.button.className = this.button.className ? this.button.className + ` ${ className }` : ` ${ className }`;\n }\n}\n","import { BasePlugin } from './BasePlugin';\nimport { Slider } from '../ui-elements';\n\n/**\n *\n *\n * @export\n * @class SliderPlugin\n */\nexport class SliderPlugin extends BasePlugin {\n /**\n *\n *Creates an instance of SliderPlugin.\n * @constructor\n * @memberof SliderPlugin\n * @param {string} cssSelector\n * @param {string} name\n * @param {object} options\n * @param {string | number} [options.defaultValue='0.5']\n * @param {string | number} [options.minValue='0']\n * @param {string | number} [options.maxValue='1']\n * @param {string} [options.featureName] Springroll Core feature name that the plugin is supporting\n */\n constructor(cssSelector, name, {defaultValue = '0.5', minValue = '0', maxValue = '1', featureName }) {\n super(name);\n this.featureName = featureName;\n this.minValue = minValue;\n this.defaultValue = defaultValue;\n this.maxValue = maxValue;\n this._currentValue = defaultValue;\n this.sliders = this.setUpSliders(cssSelector);\n this.slidersLength = this.sliders.length;\n this.sendAllProperties = this.sendAllProperties.bind(this);\n\n if (0 >= this.slidersLength) {\n this.warn('Plugin was not provided any valid HTML Elements');\n return;\n }\n }\n\n /**\n * @memberof SliderPlugin\n * @param {string[]} selectors the selector strings used to target the input elements\n * @returns {Slider[]}\n */\n setUpSliders(selectors) {\n const sliders = [];\n\n if (selectors instanceof HTMLElement) {\n sliders.push(new Slider({\n slider: selectors,\n control: this.featureName,\n defaultValue: this.defaultValue,\n minValue: this.minValue,\n maxValue: this.maxValue\n }));\n } else {\n document.querySelectorAll(selectors).forEach((slider) => {\n sliders.push(new Slider({\n slider: slider,\n control: this.featureName,\n defaultValue: this.defaultValue,\n minValue: this.minValue,\n maxValue: this.maxValue\n }));\n });\n }\n\n return sliders;\n }\n\n /**\n * @memberof SliderPlugin\n */\n init() {\n this.client.on(\n 'features',\n function(features) {\n if (!features.data) {\n return;\n }\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].displaySlider(features.data);\n }\n }.bind(this)\n );\n }\n\n /**\n * @memberof SliderPlugin\n */\n start() {\n this._currentValue = this.sliders[0].value; //update current value to the saved data value set in Slider.\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Sends initial caption properties to the application\n * @memberof SliderPlugin\n */\n sendAllProperties() {\n this.sendProperty(this.featureName, this.currentValue);\n }\n\n /**\n * @memberof SliderPlugin\n * @param {string} newValue\n */\n set currentValue(newValue) {\n\n //just use first slider to ensure the number is valid.\n this._currentValue = this.sliders[0].sliderRange(Number(newValue));\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].value = newValue;\n }\n }\n\n /**\n * @memberof SliderPlugin\n * @return {string}\n */\n get currentValue() {\n return this._currentValue;\n }\n\n}\n","import { SavedData } from '../SavedData';\nimport { ButtonPlugin } from '../base-plugins';\nimport { RadioGroup } from '../ui-elements';\n\nconst DEFAULT_CAPTIONS_STYLES = {\n size: 'medium',\n background: 'black',\n color: 'white',\n edge: 'none',\n font: 'arial',\n align: 'top'\n};\n\nconst DEFAULT_COLOR_STYLE = {color: 'white', background: 'black'};\nconst INVERTED_COLOR_STYLE = {color: 'black', background: 'white'};\nconst FONT_SIZE_VALUES = ['small', 'medium', 'large'];\nconst COLOR_VALUES = ['default', 'inverted'];\nconst ALIGN_VALUES = ['top', 'bottom'];\n\n/**\n * @export\n * @class CaptionsStylePlugin\n * @property {object} captionsStyles The collection of captions styles\n * @property {string[]} fontSizeSelectors selector strings for the radio button groups\n * @property {string[]} colorSelectors selector strings for the radio button groups\n * @property {string[]} alignmentSelectors selector strings for the radio button groups\n * @property {Object[]} fontSizeRadios array that contains each radio group\n * @property {Object[]} colorRadios array that contains each radio group\n * @property {Object[]} alignmentRadios array that contains each radio group\n * @property {number} fontSizeRadiosLength Length of the fontSizeRadios array\n * @property {number} colorRadiosLength Length of the colorRadios array\n * @property {number} alignmentRadiosLength Length of the alignmentRadios array\n * @extends {ButtonPlugin}\n */\nexport class CaptionsStylePlugin extends ButtonPlugin {\n /**\n * Creates an instance of CaptionsStylePlugin.\n * @param {string} fontSizeRadios selector string for one or more radio groups for caption font size\n * @param {string} colorRadios selector string for one or more radio groups for caption font/background colors\n * @param {string} alignmentRadios selector string for one or more radio groups for caption position\n * @param {string} [defaultFontSize='medium'] Default selected font size\n * @param {string} [defaultColor='default'] Default selected color\n * @param {string} [defaultAlignment='top'] Default selected alignment\n * @memberof CaptionsStylePlugin\n */\n constructor(fontSizeRadios, colorRadios, alignmentRadios,\n { defaultFontSize = 'medium', defaultColor = 'default', defaultAlignment = 'top' } = {}\n ) {\n super('Caption-Button-Plugin');\n this.sendAllProperties = this.sendAllProperties.bind(this);\n this.captionsStyles = Object.assign(\n {},\n DEFAULT_CAPTIONS_STYLES,\n SavedData.read(CaptionsStylePlugin.captionStyleKey) || {}\n );\n\n //split the selector strings into individual selectors.\n //Helps keep the input style consistent across plugins.\n this.fontSizeSelectors = fontSizeRadios ? fontSizeRadios.split(',') : [];\n this.colorSelectors = colorRadios ? colorRadios.split(',') : [];\n this.alignmentSelectors = alignmentRadios ? alignmentRadios.split(',') : [];\n\n this.defaultFontSize = FONT_SIZE_VALUES.includes(defaultFontSize) ? defaultFontSize : FONT_SIZE_VALUES[0];\n this.defaultColor = COLOR_VALUES.includes(defaultColor) ? defaultColor : COLOR_VALUES[0];\n this.defaultAlignment = ALIGN_VALUES.includes(defaultAlignment) ? defaultAlignment : ALIGN_VALUES[0];\n\n this.fontSizeRadios = [];\n this.colorRadios = [];\n this.alignmentRadios = [];\n\n this.fontSizeRadios = this.setUpFontSizeRadios(this.fontSizeSelectors);\n this.colorRadios = this.setUpColorRadios(this.colorSelectors);\n this.alignmentRadios = this.setUpAlignmentRadios(this.alignmentSelectors);\n\n this._captionsMuted = false;\n\n this.alignmentRadiosLength = this.alignmentRadios.length;\n this.fontSizeRadiosLength = this.fontSizeRadios.length;\n this.colorRadiosLength = this.colorRadios.length;\n\n if (0 >= (this.alignmentRadiosLength + this.fontSizeRadiosLength + this.colorRadiosLength)) {\n this.warn(\n 'Plugin was not provided any input elements'\n );\n return;\n }\n\n //set up change events\n for (let i = 0; i < this.colorRadiosLength; i++) {\n this.colorRadios[i].enableRadioEvents(this.onColorChange.bind(this));\n }\n for (let i = 0; i < this.alignmentRadiosLength; i++) {\n this.alignmentRadios[i].enableRadioEvents(this.onAlignmentChange.bind(this));\n }\n for (let i = 0; i < this.fontSizeRadiosLength; i++) {\n this.fontSizeRadios[i].enableRadioEvents(this.onFontSizeChange.bind(this));\n }\n }\n\n /**\n * @memberof CaptionsStylePlugin\n * @param {string[]} selectors the separated selector strings used to target the radio button groups\n * @returns {RadioGroup[]}\n */\n setUpFontSizeRadios(selectors) {\n const radioGroups = [];\n\n selectors.forEach((selector) => {\n const radioGroup = new RadioGroup({\n selector: selector.trim(),\n controlName: 'Font Size',\n defaultValue: this.defaultFontSize,\n pluginName: 'Caption-Button-Plugin'\n });\n\n if (radioGroup.length !== 3) {\n this.warn(`Selector \"${selector}\" did not find exactly three(3) radio buttons for caption font size. Skipping selector`);\n return;\n }\n\n if (!radioGroup.hasOnly(FONT_SIZE_VALUES)) {\n return;\n }\n\n if (radioGroup.hasDuplicateValues()) {\n this.warn(`Duplicate radio button values detected (values: ${radioGroup.values} ). Skipping radio group`);\n return;\n }\n\n radioGroups.push(radioGroup);\n });\n\n return radioGroups;\n }\n\n /**\n * @memberof CaptionsStylePlugin\n * @param {string[]} selectors the separated selector strings used to target the radio button groups\n * @returns {RadioGroup[]}\n */\n setUpColorRadios(selectors) {\n const radioGroups = [];\n\n selectors.forEach((selector) => {\n const radioGroup = new RadioGroup({\n selector: selector.trim(),\n controlName: 'Color',\n defaultValue: this.defaultColor,\n pluginName: 'Caption-Button-Plugin'\n });\n\n if (radioGroup.length !== 2) {\n this.warn(`Selector \"${selector}\" did not find exactly two(2) radio buttons for caption colors. Skipping selector`);\n return;\n }\n\n if (!radioGroup.hasOnly(COLOR_VALUES)) {\n return;\n }\n\n if (radioGroup.hasDuplicateValues()) {\n this.warn(`Duplicate radio button values detected (values: ${radioGroup.values} ). Skipping radio group`);\n return;\n }\n\n radioGroups.push(radioGroup);\n });\n\n return radioGroups;\n }\n\n /**\n * @memberof CaptionsStylePlugin\n * @param {string[]} selectors the separated selector strings used to target the radio button groups\n * @returns {RadioGroup[]}\n */\n setUpAlignmentRadios(selectors) {\n const radioGroups = [];\n\n selectors.forEach((selector) => {\n const radioGroup = new RadioGroup({\n selector: selector.trim(),\n controlName: 'Alignment',\n defaultValue: this.defaultAlignment,\n pluginName: 'Caption-Button-Plugin'\n });\n if (radioGroup.length !== 2) {\n this.warn(`Selector \"${selector}\" did not find exactly two(2) radio buttons for caption alignment. Skipping selector`);\n return;\n }\n\n if (!radioGroup.hasOnly(ALIGN_VALUES)) {\n return;\n }\n\n if (radioGroup.hasDuplicateValues()) {\n this.warn(`Duplicate radio button values detected (values: ${radioGroup.values} ). Skipping radio group`);\n return;\n }\n\n radioGroups.push(radioGroup);\n });\n\n return radioGroups;\n }\n\n /**\n * @memberof CaptionsStylePlugin\n */\n init() {\n // Handle the features request\n this.client.on(\n 'features',\n function($event) {\n\n for (const radio of this.radios) {\n radio.displayRadios($event.data);\n }\n\n }.bind(this)\n );\n\n this.client.on(\n 'caption-set-style',\n function($event) {\n this.setCaptionsStyles($event.data || {});\n }.bind(this)\n );\n }\n /**\n * @memberof CaptionsStylePlugin\n */\n start() {\n this.setCaptionsStyles(SavedData.read(CaptionsStylePlugin.captionStyleKey));\n\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Sends initial caption properties to the application\n * @memberof CaptionsStylePlugin\n */\n sendAllProperties() {\n this.sendProperty(CaptionsStylePlugin.captionStyleKey, this.captionsStyles);\n }\n /**\n * Fired whenever the font size radios are updated\n * @param {Event} e\n * @memberof CaptionsStylePlugin\n */\n onFontSizeChange(e) {\n this.setCaptionsStyles('size', e.target.value);\n\n this.fontSizeRadios.forEach((group) => {\n group.radioGroup[e.target.value].checked = true;\n });\n }\n\n /**\n * Fired whenever the alignment radios are updated\n * @param {Event} e\n * @memberof CaptionsStylePlugin\n */\n onAlignmentChange(e) {\n this.setCaptionsStyles('align', e.target.value);\n\n this.alignmentRadios.forEach((group) => {\n group.radioGroup[e.target.value].checked = true;\n });\n }\n\n /**\n * Fired whenever the color radios are updated\n * @param {Event} e\n * @memberof CaptionsStylePlugin\n */\n onColorChange(e) {\n const styles = e.target.value === 'default' ? DEFAULT_COLOR_STYLE : INVERTED_COLOR_STYLE;\n\n this.setCaptionsStyles(styles);\n\n this.colorRadios.forEach((group) => {\n group.radioGroup[e.target.value].checked = true;\n });\n }\n\n /**\n * Reset the captions styles\n * @param {Event} e\n * @memberof CaptionsStylePlugin\n */\n clearCaptionsStyles() {\n this.captionsStyles = Object.assign({}, DEFAULT_CAPTIONS_STYLES);\n this.setCaptionsStyles();\n\n for (const radio of this.radios) {\n radio.resetState();\n }\n }\n\n /**\n * Get the captions styles\n * @param {string} [prop] The optional property, values are \"size\", \"edge\", \"font\", \"background\", \"color\"\n * @return {object | string} The collection of styles, see setCaptionsStyles for more info.\n * @memberof CaptionsStylePlugin\n */\n getCaptionsStyles(prop) {\n return prop ? this.captionsStyles[prop] : this.captionsStyles;\n }\n\n /**\n * Set the captions styles\n *\n * @param {object} [styles] The style options or the name of the\n * property (e.g., \"color\", \"edge\", \"font\", \"background\", \"size\")\n * @param {string} [styles.color='white'] The text color, the default is white\n * @param {string} [styles.edge='none'] The edge style, default is none\n * @param {string} [styles.font='arial'] The font style, default is arial\n * @param {string} [styles.background='black'] The background style, black\n * @param {string} [styles.size='md'] The font style default is medium\n * @param {string} [styles.align='top'] The align style default is top of the window\n * @param {string} [value=''] If setting styles parameter as a string, this is the value of the property.\n * @memberof CaptionsStylePlugin\n */\n setCaptionsStyles(styles = DEFAULT_CAPTIONS_STYLES, value = '') {\n if (typeof styles === 'object') {\n Object.assign(this.captionsStyles, styles);\n } else if (typeof styles === 'string') {\n this.captionsStyles[styles] = value;\n }\n\n SavedData.write(CaptionsStylePlugin.captionStyleKey, this.captionsStyles);\n if (this.client) {\n this.client.send(CaptionsStylePlugin.captionStyleKey, this.captionsStyles);\n }\n }\n\n /**\n * @readonly\n * @returns {number}\n * @memberof RadioGroup\n */\n get radios() {\n return this.colorRadios\n .concat(this.alignmentRadios)\n .concat(this.fontSizeRadios);\n }\n /**\n * Get captionStyle Key\n * @readonly\n * @static\n * @memberof CaptionStyleKey\n * @returns {string}\n */\n static get captionStyleKey() {\n return 'captionsStyles';\n }\n\n}\n","import { SavedData } from '../SavedData';\nimport { ButtonPlugin } from '../base-plugins';\nimport { Button } from '../ui-elements';\n\n/**\n * @export\n * @class CaptionsTogglePlugin\n * @property {Button[]} _captionsButtons An array of caption mute buttons\n * @property {boolean} _captionsMuted True if captions are muted\n * @property {number} captionsButtonLength The length of the captionsButtons array\n * @extends {ButtonPlugin}\n */\nexport class CaptionsTogglePlugin extends ButtonPlugin {\n /**\n *Creates an instance of CaptionsTogglePlugin.\n * @param {string | HTMLElement} captionsButtons selector string for one or more captions mute buttons\n * @memberof CaptionsTogglePlugin\n */\n constructor(captionsButtons) {\n super('Caption-Button-Plugin');\n this.sendAllProperties = this.sendAllProperties.bind(this);\n\n this._captionsButtons = [];\n\n if ( captionsButtons instanceof HTMLElement ) {\n this._captionsButtons[0] = new Button({\n button: captionsButtons,\n onClick: this.captionsButtonClick.bind(this),\n channel: 'captions'\n });\n } else {\n document.querySelectorAll(captionsButtons).forEach((button) => {\n this._captionsButtons.push(new Button({\n button: button,\n onClick: this.captionsButtonClick.bind(this),\n channel: 'captions'\n }));\n });\n }\n\n this._captionsMuted = false;\n this.captionsButtonLength = this._captionsButtons.length;\n\n if (0 >= this.captionsButtonLength) {\n this.warn(\n 'Plugin was not provided any valid button or input elements'\n );\n return;\n }\n }\n\n /**\n * @memberof CaptionsTogglePlugin\n */\n init() {\n // Handle the features request\n this.client.on(\n 'features',\n function($event) {\n for (let i = 0; i < this.captionsButtonLength; i ++) {\n this._captionsButtons[i].displayButton($event.data);\n }\n\n if (null === SavedData.read(CaptionsTogglePlugin.captionsToggleKey)) {\n return;\n }\n\n this.captionsMuted = !!SavedData.read(CaptionsTogglePlugin.captionsToggleKey);\n\n }.bind(this)\n );\n }\n /**\n * @memberof CaptionsTogglePlugin\n */\n start() {\n this.captionsMuted = !!SavedData.read(CaptionsTogglePlugin.captionsToggleKey);\n\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Sends initial caption properties to the application\n * @memberof CaptionsTogglePlugin\n */\n sendAllProperties() {\n this.sendProperty(CaptionsTogglePlugin.captionsToggleKey, this.captionsMuted);\n }\n\n /**\n * @memberof CaptionsTogglePlugin\n */\n captionsButtonClick() {\n this.captionsMuted = !this.captionsMuted;\n }\n\n /**\n * @readonly\n * @memberof CaptionsTogglePlugin\n */\n get captionsMuted() {\n return this._captionsMuted;\n }\n\n /**\n * @param {boolean} muted\n * @memberof CaptionsTogglePlugin\n */\n set captionsMuted(muted) {\n this._captionsMuted = muted;\n this._setMuteProp(\n 'captionsMuted',\n this._captionsButtons,\n this._captionsMuted\n );\n }\n\n /**\n * Get CaptionToggle Key\n * @readonly\n * @static\n * @memberof captionsToggleKey\n * @returns {string}\n */\n static get captionsToggleKey() {\n return 'captionsMuted';\n }\n}\n","import { ButtonPlugin } from '../base-plugins';\nimport { Button } from '../ui-elements';\n\n/**\n * Requests a hint or help from the game\n * @class HelpPlugin\n * @property {boolean} paused\n * @property {boolean} _helpEnabled\n * @property {boolean} onPause\n * @property {number} helpButtonsLength\n * @extends {ButtonPlugin}\n * @export\n */\nexport class HelpPlugin extends ButtonPlugin {\n /**\n * Creates an instance of HelpPlugin.\n * @param {string | HTMLElement} helpButtons The selector or HTMLElement for the button\n * @memberof HelpPlugin\n */\n constructor(helpButtons) {\n super('Help-Button-Plugin');\n\n this._helpButtons = [];\n\n if (helpButtons instanceof HTMLElement) {\n this._helpButtons[0] = new Button({\n button: helpButtons,\n onClick: this.helpButtonClick.bind(this),\n channel: 'hints' // the check to see if this feature exists is different than most so passing this ensures it'll work the same.\n });\n } else {\n document.querySelectorAll(helpButtons).forEach((button) => {\n this._helpButtons.push(\n new Button({\n button: button,\n onClick: this.helpButtonClick.bind(this),\n channel: 'hints'\n })\n );\n });\n }\n\n this.paused = false;\n this._helpEnabled = false;\n this.onPause = this.onPause.bind(this);\n this.helpButtonsLength = this._helpButtons.length;\n\n if (this.helpButtonsLength <= 0) {\n this.warn('Plugin was not provided any valid button elements');\n }\n }\n /**\n * Called when the game is either paused or resumed\n * @param {object} $event\n * @memberof HelpPlugin\n */\n onPause($event) {\n this.paused = $event.data.paused;\n // Disable the help button when paused if it's active\n if (\n this.paused &&\n this.helpEnabled\n ) {\n for (let i = 0; i < this.helpButtonsLength; i++) {\n this._helpButtons[i].button.setAttribute('data-paused', 'true');\n }\n this.helpEnabled = false;\n } else {\n for (let i = 0; i < this.helpButtonsLength; i++) {\n if (this._helpButtons[i].button.getAttribute('data-paused')) {\n this._helpButtons[i].button.setAttribute('data-paused', '');\n this.helpEnabled = true;\n }\n }\n }\n }\n\n /**\n *\n *\n * @memberof HelpPlugin\n */\n helpButtonClick() {\n if (\n !this.paused &&\n this.helpEnabled\n ) {\n this.client.send('playHelp');\n }\n }\n\n /**\n * @memberof HelpPlugin\n */\n init() {\n // Handle pause\n this.client.on('paused', this.onPause);\n\n // Handle features changed\n this.client.on(\n 'features',\n function(features) {\n this.helpEnabled = features.data.hints;\n for (let i = 0; i < this.helpButtonsLength; i++) {\n this._helpButtons[i].displayButton(features.data);\n }\n }.bind(this)\n );\n\n this.client.on(\n 'helpEnabled',\n function(event) {\n this._helpEnabled = !!event.data;\n }.bind(this)\n );\n }\n\n /**\n * @memberof HelpPlugin\n */\n get helpEnabled() {\n return this._helpEnabled;\n }\n\n /**\n * Fired when the enabled status of the help button changes\n * @function helpEnabled\n * @param {boolean} enabled If the help button is enabled\n * @memberof HelpPlugin\n */\n set helpEnabled(enabled) {\n this._helpEnabled = enabled;\n for (let i = 0; i < this.helpButtonsLength; i++) {\n this._helpButtons[i].button.classList.remove('disabled');\n this._helpButtons[i].button.classList.remove('enabled');\n this._helpButtons[i].button.classList.add(enabled ? 'enabled' : 'disabled');\n }\n\n this.client.trigger('helpEnabled');\n }\n\n /**\n * @readonly\n * @static\n * @memberof HelpPlugin\n * @returns {string}\n */\n static get helpKey() {\n return 'help';\n }\n\n}\n","import { ButtonPlugin } from '../base-plugins';\nimport { PageVisibility } from '../PageVisibility';\nimport { Button } from '../ui-elements';\n/**\n * @class Container\n * @property {object[]} sliders an array of all slider objects attached to PausePlugin\n * @extends ButtonPlugin\n */\nexport class PausePlugin extends ButtonPlugin {\n /**\n * Creates an instance of PausePlugin.\n * @param {string | HTMLElement} pauseButton selector string or HTML Element for the input(s)\n * @param {boolean} manageOwnVisibility whether the plugin should manage container's visibility or some other source will handle it\n * @memberof PausePlugin\n */\n constructor(pauseButton, manageOwnVisibility = true) {\n super('Pause-Button-plugin');\n this._manageOwnVisibility = manageOwnVisibility;\n this._appBlurred = false;\n this._containerBlurred = false;\n this._focusTimer = null;\n this._isManualPause = false;\n this._keepFocus = false;\n this._paused = false;\n this.iframe = null;\n this.focusApp = this.focusApp.bind(this);\n this.manageFocus = this.manageFocus.bind(this);\n this.onKeepFocus = this.onKeepFocus.bind(this);\n this.onFocus = this.onFocus.bind(this);\n const onPauseToggle = this.onPauseToggle.bind(this);\n\n this.pauseDisabled = false;\n this._pauseButton = [];\n\n this.pageVisibility = new PageVisibility(\n this.onContainerFocus.bind(this),\n this.onContainerBlur.bind(this)\n );\n\n this.pageVisibility.enabled = this.manageOwnVisibility;\n\n if (pauseButton instanceof HTMLElement) {\n this._pauseButton[0] = new Button({\n button: pauseButton,\n onClick: onPauseToggle,\n channel: PausePlugin.pauseKey\n });\n } else {\n document.querySelectorAll(pauseButton).forEach((button) => {\n this._pauseButton.push(new Button({\n button: button,\n onClick: onPauseToggle,\n channel: PausePlugin.pauseKey\n }));\n });\n }\n }\n\n /**\n * updates _paused and also sends the pause event to the application\n * @memberof PausePlugin\n * @param {Boolean} paused\n */\n set pause(paused) {\n paused = !!paused;\n\n if (this.pauseDisabled) {\n return;\n }\n this._paused = paused;\n\n this.client.send(PausePlugin.pauseKey, paused);\n this.client.trigger(paused ? 'paused' : 'resumed', { paused });\n\n for (let i = 0, l = this._pauseButton.length; i < l; i++) {\n this._pauseButton[i].button.classList.remove('unpaused');\n this._pauseButton[i].button.classList.remove('paused');\n this._pauseButton[i].button.classList.add(paused ? 'paused' : 'unpaused');\n }\n }\n\n /**\n * @memberof PausePlugin\n * @returns {Boolean}\n */\n get pause() {\n return this._paused;\n }\n\n /**\n * updates _manageOwnVisibility and also re-enables pageVisibility\n * @memberof PausePlugin\n * @param {Boolean} manageOwnVisibility\n */\n set manageOwnVisibility(manageOwnVisibility) {\n this._manageOwnVisibility = manageOwnVisibility;\n\n this.pageVisibility.enabled = this._manageOwnVisibility;\n }\n\n /**\n * @memberof PausePlugin\n * @returns {Boolean}\n */\n get manageOwnVisibility() {\n return this._manageOwnVisibility;\n }\n\n /**\n * forces focus onto the iframe application window\n * @memberof PausePlugin\n */\n focusApp() {\n if (!this.hasDom) {\n // We don't have a dom with a content window, fail quietly\n return;\n }\n\n this.iframe.contentWindow.focus();\n }\n\n /**\n * blurs the application iframe window\n * @memberof PausePlugin\n */\n blurApp() {\n if (!this.hasDom) {\n return;\n }\n this.iframe.contentWindow.blur();\n }\n\n /**\n * Determines what pause state should be sent, if any, on focus or blur events.\n * @method manageFocus\n * @memberof PausePlugin\n */\n manageFocus() {\n if (!this.manageOwnVisibility) {\n return;\n }\n // Unfocus on the iframe\n if (this._keepFocus) {\n this.blurApp();\n }\n\n // we only need one delayed call, at the end of any\n // sequence of rapidly-fired blur/focus events\n if (this._focusTimer) {\n clearTimeout(this._focusTimer);\n }\n\n // Delay setting of 'paused' in case we get another focus event soon.\n // Focus events are sent to the container asynchronously, and this was\n // causing rapid toggling of the pause state and related issues,\n // especially in Internet Explorer\n this._focusTimer = setTimeout(\n function () {\n this._focusTimer = null;\n // A manual pause cannot be overriden by focus events.\n // User must click the resume button.\n if (this._isManualPause) {\n return;\n }\n\n this.pause = Boolean(this._containerBlurred && this._appBlurred);\n\n // Focus on the content window when blurring the app\n // but selecting the container\n if (this._keepFocus && !this._containerBlurred && this._appBlurred) {\n this.focusApp();\n }\n }.bind(this),\n 100\n );\n }\n\n /**\n * Handle the keep focus event for the window\n * @method onKeepFocus\n * @memberof PausePlugin\n * @private\n */\n onKeepFocus($event) {\n this._keepFocus = !!$event.data;\n this.manageFocus();\n }\n\n /**\n * Handle focus events sent from iFrame children\n * @method onFocus\n * @memberof PausePlugin\n * @private\n */\n onFocus($event) {\n this._appBlurred = !$event.data;\n this.manageFocus();\n }\n\n /**\n * Handle focus events sent from container's window\n * @method onContainerFocus\n * @memberof PausePlugin\n * @private\n */\n onContainerFocus() {\n this._containerBlurred = false;\n this.manageFocus();\n }\n\n /**\n * Handle blur events sent from container's window\n * @method onContainerBlur\n * @memberof PausePlugin\n * @private\n */\n onContainerBlur() {\n //Set both container and application to blurred,\n //because some blur events are only happening on the container.\n //If container is blurred because application area was just focused,\n //the application's focus event will override the blur imminently.\n this._containerBlurred = this._appBlurred = true;\n this.manageFocus();\n }\n\n /**\n * @memberof PausePlugin\n */\n onPauseToggle() {\n this._isManualPause = !this._isManualPause;\n this.pause = !this.pause;\n }\n\n /**\n * @param {Container} container\n * @memberof PausePlugin\n */\n init({ iframe }) {\n this.iframe = iframe;\n\n this.client.on(\n 'features',\n function (features) {\n if (features.disablePause) {\n this.pauseDisabled = true;\n }\n\n for (let i = 0, l = this._pauseButton.length; i < l; i++) {\n this._pauseButton[i].displayButton(features.data);\n }\n }.bind(this)\n );\n this.client.on('focus', this.onFocus);\n this.client.on('keepFocus', this.onKeepFocus);\n\n this.pause = this._paused;\n }\n\n /**\n * Function to check if we have a dom with a contentWindow\n * @readonly\n * @returns {boolean}\n * @memberof PausePlugin\n */\n get hasDom() {\n return Boolean(null !== this.iframe && this.iframe.contentWindow);\n }\n\n /**\n * @readonly\n * @memberof PausePlugin\n * @returns {HTMLButtonElement[]}\n */\n get pauseButton() {\n const buttons = [];\n for (let i = 0, l = this._pauseButton.length; i < l; i++) {\n buttons.push(this._pauseButton[i].button);\n }\n return buttons;\n }\n\n /**\n * @readonly\n * @static\n * @memberof PausePlugin\n * @returns {string}\n */\n static get pauseKey() {\n return 'pause';\n }\n}\n","import { SavedData } from '../SavedData';\nimport { ButtonPlugin } from '../base-plugins';\nimport { Slider, Button } from '../ui-elements';\n\n/**\n * @export\n * @class SoundPlugin\n * @extends {ButtonPlugin}\n *\n */\nexport class SoundPlugin extends ButtonPlugin {\n /**\n * Creates an instance of SoundPlugin.\n * @param {string | HTMLElement} [soundButtons] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [musicButtons] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [voButtons] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [sfxButtons] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [soundSliders] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [musicSliders] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [sfxSliders] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [voSliders] selector string or HTML Element for the input(s)\n * @memberof SoundPlugin\n */\n constructor({\n soundButtons,\n musicButtons,\n sfxButtons,\n voButtons,\n soundSliders,\n musicSliders,\n sfxSliders,\n voSliders\n } = {}) {\n super('Sound-Button-Plugin');\n const saved = SavedData.read(SoundPlugin.soundMutedKey);\n this.sendAllProperties = this.sendAllProperties.bind(this);\n this._soundMuted = saved ? saved : false;\n this._musicMuted = false;\n this._voMuted = false;\n this._sfxMuted = false;\n\n this.soundVolume = 1;\n this.musicVolume = 1;\n this.sfxVolume = 1;\n this.voVolume = 1;\n\n this.soundSliders = [];\n this.musicSliders = [];\n this.sfxSliders = [];\n this.voSliders = [];\n\n this.soundButtons = [];\n this.musicButtons = [];\n this.sfxButtons = [];\n this.voButtons= [];\n\n if (soundSliders instanceof HTMLElement) {\n this.soundSliders[0] = new Slider({\n slider: soundSliders,\n control: SoundPlugin.soundVolumeKey,\n defaultValue: this.soundVolume\n });\n } else {\n document.querySelectorAll(soundSliders).forEach((slider) => {\n const newSlider = new Slider({\n slider: slider,\n control: SoundPlugin.soundVolumeKey,\n defaultValue: this.soundVolume\n });\n if (newSlider.slider) {\n this.soundSliders.push(newSlider);\n }\n });\n }\n if (musicSliders instanceof HTMLElement) {\n this.musicSliders[0] = new Slider({\n slider: musicSliders,\n control: SoundPlugin.musicVolumeKey,\n defaultValue: this.musicVolume\n });\n } else {\n document.querySelectorAll(musicSliders).forEach((slider) => {\n const newSlider = new Slider({\n slider: slider,\n control: SoundPlugin.musicVolumeKey,\n defaultValue: this.musicVolume\n });\n if (newSlider.slider) {\n this.musicSliders.push(newSlider);\n }\n });\n }\n if (sfxSliders instanceof HTMLElement) {\n this.sfxSliders[0] = new Slider({\n slider: sfxSliders,\n control: SoundPlugin.sfxVolumeKey,\n defaultValue: this.sfxVolume\n });\n } else {\n document.querySelectorAll(sfxSliders).forEach((slider) => {\n const newSlider = new Slider({\n slider: slider,\n control: SoundPlugin.sfxVolumeKey,\n defaultValue: this.sfxVolume\n });\n if (newSlider.slider) {\n this.sfxSliders.push(newSlider);\n }\n });\n }\n if (voSliders instanceof HTMLElement) {\n this.voSliders[0] = new Slider({\n slider: voSliders,\n control: SoundPlugin.voVolumeKey,\n defaultValue: this.voVolume\n });\n } else {\n document.querySelectorAll(voSliders).forEach((slider) => {\n const newSlider = new Slider({\n slider: slider,\n control: SoundPlugin.voVolumeKey,\n defaultValue: this.voVolume\n });\n if (newSlider.slider) {\n this.voSliders.push(newSlider);\n }\n });\n }\n\n if ( soundButtons instanceof HTMLElement ) {\n this.soundButtons[0] = new Button({\n button: soundButtons,\n onClick: this.onSoundToggle.bind(this),\n channel: SoundPlugin.soundKey\n });\n } else {\n document.querySelectorAll(soundButtons).forEach((button) => {\n this.soundButtons.push(new Button({\n button: button,\n onClick: this.onSoundToggle.bind(this),\n channel: SoundPlugin.soundKey\n }));\n });\n }\n if ( musicButtons instanceof HTMLElement ) {\n this.musicButtons[0] = new Button({\n button: musicButtons,\n onClick: this.onMusicToggle.bind(this),\n channel: 'music'\n });\n } else {\n document.querySelectorAll(musicButtons).forEach((button) => {\n this.musicButtons.push(new Button({\n button: button,\n onClick: this.onMusicToggle.bind(this),\n channel: 'music'\n }));\n });\n }\n if ( sfxButtons instanceof HTMLElement ) {\n this.sfxButtons[0] = new Button({\n button: sfxButtons,\n onClick: this.onSFXToggle.bind(this),\n channel: 'sfx'\n });\n } else {\n document.querySelectorAll(sfxButtons).forEach((button) => {\n this.sfxButtons.push(new Button({\n button: button,\n onClick: this.onSFXToggle.bind(this),\n channel: 'sfx'\n }));\n });\n }\n if ( voButtons instanceof HTMLElement ) {\n this.voButtons[0] = new Button({\n button: voButtons,\n onClick: this.onVOToggle.bind(this),\n channel: 'vo'\n });\n } else {\n document.querySelectorAll(voButtons).forEach((button) => {\n this.voButtons.push(new Button({\n button: button,\n onClick: this.onVOToggle.bind(this),\n channel: 'vo'\n }));\n });\n }\n\n this.soundSlidersLength = this.soundSliders.length;\n this.musicSlidersLength = this.musicSliders.length;\n this.sfxSlidersLength = this.sfxSliders.length;\n this.voSlidersLength = this.voSliders.length;\n this.soundButtonsLength = this.soundButtons.length;\n this.musicButtonsLength = this.musicButtons.length;\n this.sfxButtonsLength = this.sfxButtons.length;\n this.voButtonsLength = this.voButtons.length;\n\n if (0 >= (this.soundSlidersLength + this.musicSlidersLength + this.sfxSlidersLength + this.voSlidersLength + this.soundButtonsLength + this.musicButtonsLength + this.sfxButtonsLength + this.voButtonsLength)) {\n this.warn('Plugin was not provided any valid HTML Elements');\n return;\n }\n\n for (let i = 0; i < this.soundSlidersLength; i++) {\n this.soundSliders[i].enableSliderEvents(this.onSoundVolumeChange.bind(this));\n }\n for (let i = 0; i < this.musicSlidersLength; i++) {\n this.musicSliders[i].enableSliderEvents(this.onMusicVolumeChange.bind(this));\n }\n for (let i = 0; i < this.sfxSlidersLength; i++) {\n this.sfxSliders[i].enableSliderEvents(this.onSFXVolumeChange.bind(this));\n }\n for (let i = 0; i < this.voSlidersLength; i++) {\n this.voSliders[i].enableSliderEvents(this.onVOVolumeChange.bind(this));\n }\n\n if (this.soundSliders[0] && this.soundSliders[0].slider) {\n this.soundVolume = this.soundSliders[0].value;\n }\n if (this.musicSliders[0] && this.musicSliders[0].slider) {\n this.musicVolume = this.musicSliders[0].value;\n }\n if (this.sfxSliders[0] && this.sfxSliders[0].slider) {\n this.sfxVolume = this.sfxSliders[0].value;\n }\n if (this.voSliders[0] && this.voSliders[0].slider) {\n this.voVolume = this.voSliders[0].value;\n }\n }\n\n /**\n * @memberof SoundPlugin\n * @param {Event} e\n */\n onSoundVolumeChange(e) {\n this.soundVolume = this.soundSliders[0].sliderRange(\n Number(e.target.value)\n );\n this.soundMuted = !this.soundVolume;\n this._checkSoundMute();\n this.sendProperty(SoundPlugin.soundVolumeKey, this.soundVolume);\n\n for (let i = 0; i < this.soundSlidersLength; i++) {\n this.soundSliders[i].value = this.soundVolume;\n }\n }\n\n /**\n * @memberof SoundPlugin\n * @param {Event} e\n */\n onMusicVolumeChange(e) {\n this.musicVolume = this.musicSliders[0].sliderRange(\n Number(e.target.value)\n );\n this.musicMuted = !this.musicVolume;\n this._checkSoundMute();\n this.sendProperty(SoundPlugin.musicVolumeKey, this.musicVolume);\n\n for (let i = 0; i < this.musicSlidersLength; i++) {\n this.musicSliders[i].value = this.musicVolume;\n }\n }\n\n /**\n * @memberof SoundPlugin\n * @param {Event} e\n */\n onVOVolumeChange(e) {\n this.voVolume = this.voSliders[0].sliderRange(Number(e.target.value));\n this.voMuted = !this.voVolume;\n this._checkSoundMute();\n this.sendProperty(SoundPlugin.voVolumeKey, this.voVolume);\n for (let i = 0; i < this.voSlidersLength; i++) {\n this.voSliders[i].value = this.voVolume;\n }\n }\n\n /**\n * @memberof SoundPlugin\n * @param {Event} e\n */\n onSFXVolumeChange(e) {\n this.sfxVolume = this.sfxSliders[0].sliderRange(Number(e.target.value));\n this.sfxMuted = !this.sfxVolume;\n this._checkSoundMute();\n this.sendProperty(SoundPlugin.sfxVolumeKey, this.sfxVolume);\n\n for (let i = 0; i < this.sfxSlidersLength; i++) {\n this.sfxSliders[i].value = this.sfxVolume;\n }\n }\n\n /**\n * @memberof SoundPlugin\n */\n onSoundToggle() {\n const muted = !this.soundMuted;\n this.soundMuted = muted;\n this.musicMuted = muted;\n this.voMuted = muted;\n this.sfxMuted = muted;\n }\n\n /**\n * @memberof SoundPlugin\n */\n onMusicToggle() {\n this.musicMuted = !this.musicMuted;\n this._checkSoundMute();\n }\n\n /**\n * @memberof SoundPlugin\n */\n onVOToggle() {\n this.voMuted = !this.voMuted;\n this._checkSoundMute();\n }\n\n /**\n * @memberof SoundPlugin\n */\n onSFXToggle() {\n this.sfxMuted = !this.sfxMuted;\n this._checkSoundMute();\n }\n\n /**\n * @memberof SoundPlugin\n */\n _checkSoundMute() {\n this.soundMuted = this.sfxMuted && this.voMuted && this.musicMuted;\n }\n\n /**\n * @param {string} key\n * @param {*} value\n * @param {Element} element\n * @memberof SoundPlugin\n */\n setMuteProp(key, value, element) {\n this['_' + key] = value;\n this._setMuteProp(key, element, value);\n }\n\n /**\n * @memberof SoundPlugin\n */\n init() {\n this.client.on(\n 'features',\n function(features) {\n if (!features.data) {\n return;\n }\n\n for (let i = 0; i < this.soundButtonsLength; i++) {\n this.soundButtons[i].displayButton(features.data);\n }\n for (let i = 0; i < this.musicButtonsLength; i++) {\n this.musicButtons[i].displayButton(features.data);\n }\n for (let i = 0; i < this.sfxButtonsLength; i++) {\n this.sfxButtons[i].displayButton(features.data);\n }\n for (let i = 0; i < this.voButtonsLength; i++) {\n this.voButtons[i].displayButton(features.data);\n }\n for (let i = 0; i < this.soundSlidersLength; i++) {\n this.soundSliders[i].displaySlider(features.data);\n }\n for (let i = 0; i < this.musicSlidersLength; i++) {\n this.musicSliders[i].displaySlider(features.data);\n }\n for (let i = 0; i < this.sfxSlidersLength; i++) {\n this.sfxSliders[i].displaySlider(features.data);\n }\n for (let i = 0; i < this.voSlidersLength; i++) {\n this.voSliders[i].displaySlider(features.data);\n }\n }.bind(this)\n );\n }\n\n /**\n * @memberof SoundPlugin\n */\n start() {\n\n for (let i = 0; i < this.soundButtonsLength; i++) {\n this.soundButtons[i].enableButton();\n }\n for (let i = 0; i < this.musicButtonsLength; i++) {\n this.musicButtons[i].enableButton();\n }\n for (let i = 0; i < this.sfxButtonsLength; i++) {\n this.sfxButtons[i].enableButton();\n }\n for (let i = 0; i < this.voButtonsLength; i++) {\n this.voButtons[i].enableButton();\n }\n\n this.soundMuted = !!SavedData.read(SoundPlugin.soundMutedKey);\n this.musicMuted = !!SavedData.read(SoundPlugin.musicMutedKey);\n this.sfxMuted = !!SavedData.read(SoundPlugin.sfxMutedKey);\n this.voMuted = !!SavedData.read(SoundPlugin.voMutedKey);\n\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Saves the current state of all volume properties, and then sends them to the game\n * @memberof SoundPlugin\n */\n sendAllProperties() {\n this.sendProperty(SoundPlugin.soundVolumeKey, this.soundVolume);\n this.sendProperty(SoundPlugin.musicVolumeKey, this.musicVolume);\n this.sendProperty(SoundPlugin.voVolumeKey, this.voVolume);\n this.sendProperty(SoundPlugin.sfxVolumeKey, this.sfxVolume);\n\n this.sendProperty(SoundPlugin.voMutedKey, this.voMuted);\n this.sendProperty(SoundPlugin.soundMutedKey, this.soundMuted);\n this.sendProperty(SoundPlugin.musicMutedKey, this.musicMuted);\n this.sendProperty(SoundPlugin.sfxMutedKey, this.sfxMuted);\n }\n\n /**\n * @memberof SoundPlugin\n * @param {boolean} muted\n */\n set soundMuted(muted) {\n this.setMuteProp('soundMuted', muted, this.soundButtons);\n }\n\n /**\n * @memberof SoundPlugin\n */\n get soundMuted() {\n return this._soundMuted;\n }\n\n /**\n * @memberof SoundPlugin\n * @param {boolean} muted\n */\n set voMuted(muted) {\n this.setMuteProp('voMuted', muted, this.voButtons);\n }\n\n /**\n * @memberof SoundPlugin\n */\n get voMuted() {\n return this._voMuted;\n }\n\n /**\n * @memberof SoundPlugin\n * @param {boolean} muted\n */\n set musicMuted(muted) {\n this.setMuteProp('musicMuted', muted, this.musicButtons);\n }\n\n /**\n * @memberof SoundPlugin\n */\n get musicMuted() {\n return this._musicMuted;\n }\n\n /**\n * @memberof SoundPlugin\n * @param {boolean} muted\n */\n set sfxMuted(muted) {\n this.setMuteProp('sfxMuted', muted, this.sfxButtons);\n }\n\n /**\n * @memberof SoundPlugin\n */\n get sfxMuted() {\n return this._sfxMuted;\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get soundMutedKey() {\n return 'soundMuted';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get voMutedKey() {\n return 'voMuted';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get musicMutedKey() {\n return 'musicMuted';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get sfxMutedKey() {\n return 'sfxMuted';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get soundVolumeKey() {\n return 'soundVolume';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get sfxVolumeKey() {\n return 'sfxVolume';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get voVolumeKey() {\n return 'voVolume';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get musicVolumeKey() {\n return 'musicVolume';\n }\n\n /**\n * @readonly\n * @memberof SoundPlugin\n */\n get soundButton() {\n return this._soundButton.button;\n }\n\n /**\n * @readonly\n * @memberof SoundPlugin\n */\n get musicButton() {\n return this._musicButton.button;\n }\n /**\n * @readonly\n * @memberof SoundPlugin\n */\n get sfxButton() {\n return this._sfxButton.button;\n }\n /**\n * @readonly\n * @memberof SoundPlugin\n */\n get voButton() {\n return this._voButton.button;\n }\n\n /**\n * @readonly\n * @static\n * @memberof SpeedScalePlugin\n * @return {string}\n */\n static get soundKey() {\n return 'sound';\n }\n}\n","import { SavedData } from './SavedData';\n/**\n * Default user data handler for the {{#crossLink \"springroll.Container\"}}Container{{/crossLink}} to save data using\n * the {{#crossLink \"springroll.SavedData\"}}SavedData{{/crossLink}} class.\n * @class SavedDataHandler\n */\nexport class SavedDataHandler {\n\n /**\n * \n */\n constructor() {\n this.dbName;\n this.savedData;\n }\n \n /**\n * Remove a data setting\n * @method remove\n * @static\n * @param {String} name The name of the property\n * @param {Function} [callback] Callback when remove is complete\n */\n static remove(name, callback) {\n SavedData.remove(name);\n callback();\n }\n\n /**\n * Write a custom setting\n * @method write\n * @static\n * @param {String} name The name of the property\n * @param {*} value The value to set the property to\n * @param {Function} [callback] Callback when write is complete\n */\n static write(name, value, callback) {\n SavedData.write(name, value);\n callback();\n }\n\n /**\n * Read a custom setting\n * @method read\n * @static\n * @param {String} name The name of the property\n * @param {Function} callback Callback when read is complete, returns the value\n */\n static read(name, callback) {\n callback(SavedData.read(name));\n }\n\n // ----------------------------------------------------------------\n // IndexedDB Manipulation \n // ----------------------------------------------------------------\n\n /**\n * Open a connection with the database\n * @param {string} dbName The name of your IndexedDB database\n * @param {string} dbVersion The version number of the database\n * @param {JSON} additions Any additions to the structure of the database\n * @param {array} additions.stores Any stores to be added into the database syntax: \n * {storeName: '[name]', options: {[optionally add options]}}\n * @param {array} additions.indexes Any Indexes to be added to the database syntax: \n * {storeName: '[name]', options: {[optionally add options]}}\n */\n IDBOpen( dbName, dbVersion = null, additions = {}, deletions = {}, callback = null) {\n // persisting the savedData object to keep the connection open\n this.savedData = new SavedData();\n this.savedData.IDBOpen( dbName, dbVersion, additions, deletions, callback);\n }\n\n /**\n * Add a record to a given store\n * @param {string} storeName The name of the store from which the record will be updated\n * @param {string} key the key of the record to be updated \n * @param {*} value The value for the record with the given key to be updated\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBAdd(storeName, record, key, callback) {\n this.savedData.IDBAdd(storeName, record, key, callback);\n }\n \n /**\n * Update a record from a given store\n * @param {string} storeName The name of the store from which the record will be updated\n * @param {string} key the key of the record to be updated \n * @param {*} value The value for the record with the given key to be updated\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBUpdate(storeName, key, value, callback) {\n this.savedData.IDBUpdate(storeName, key, value, callback);\n }\n\n /**\n * Remove a record from a store\n * @param {*} storeName The name of the store from which the record will be removed\n * @param {*} key the key of the record to be removed \n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBRemove(storeName, key, callback) {\n this.savedData.IDBRemove(storeName, key, callback);\n }\n\n /**\n * Return a record from a given store with a given key\n * @param {string} storeName The name of the store to read from\n * @param {string} key The key for the record in the given store \n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBRead(storeName, key, callback) {\n this.savedData.IDBRead(storeName, key, callback);\n }\n\n /**\n * Get all records from a store\n * @param {string} storeName The store to get all records from\n * @param {integer} count Optionally the count of records to return\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBReadAll(storeName, count, callback) {\n this.savedData.IDBReadAll(storeName, count, callback);\n }\n\n /**\n * Get the version of a given database\n * @param {string} dbName The name of the database to return the version of\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBGetVersion(dbName, callback) {\n const sd = new SavedData(dbName);\n\n sd.IDBGetVersion(dbName, callback);\n }\n\n /**\n * Closes the connection to the database\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBClose(callback) {\n this.savedData.IDBClose(callback);\n }\n /**\n * Closes the connection to the database\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBDeleteDB(dbName, options, callback) {\n const sd = new SavedData(dbName);\n sd.IDBDeleteDB(dbName, options, callback);\n }\n\n}\n","import { SavedDataHandler } from '../SavedDataHandler';\nimport { BasePlugin } from '../base-plugins';\n\n/**\n * @export\n * @class UserDataPlugin\n * @extends {BasePlugin}\n * @property {SavedDataHandler} SavedDataHandler The handler to work with the savedData class\n */\nexport class UserDataPlugin extends BasePlugin {\n /**\n * Creates an instance of UserDataPlugin.\n * @memberof UserDataPlugin\n */\n constructor() {\n super('UserData-Plugin');\n this.onUserDataRemove = this.onUserDataRemove.bind(this);\n this.onUserDataRead = this.onUserDataRead.bind(this);\n this.onUserDataWrite = this.onUserDataWrite.bind(this);\n\n this.onIDBAdd = this.onIDBAdd.bind(this);\n this.onIDBOpen = this.onIDBOpen.bind(this);\n this.onIDBRead = this.onIDBRead.bind(this);\n this.onIDBReadAll = this.onIDBReadAll.bind(this);\n this.onIDBRemove = this.onIDBRemove.bind(this);\n this.onIDBUpdate = this.onIDBUpdate.bind(this);\n this.onIDBUpdate = this.onIDBUpdate.bind(this);\n this.onIDBClose = this.onIDBClose.bind(this);\n this.IDBReadAll = this.onIDBReadAll.bind(this);\n this.onIDBGetVersion = this.onIDBGetVersion.bind(this);\n this.onIDBDeleteDB = this.onIDBDeleteDB.bind(this);\n\n this.savedDataHandler = null;\n }\n\n /**\n *\n * @memberof UserDataPlugin\n */\n init() {\n this.client.on('userDataRemove', this.onUserDataRemove);\n this.client.on('userDataRead', this.onUserDataRead);\n this.client.on('userDataWrite', this.onUserDataWrite);\n\n this.client.on('IDBOpen', this.onIDBOpen);\n this.client.on('IDBRead', this.onIDBRead);\n this.client.on('IDBReadAll', this.onIDBReadAll);\n this.client.on('IDBAdd', this.onIDBAdd);\n this.client.on('IDBRemove', this.onIDBRemove);\n this.client.on('IDBUpdate', this.onIDBUpdate);\n this.client.on('IDBClose', this.onIDBClose);\n this.client.on('IDBGetVersion', this.onIDBGetVersion);\n this.client.on('IDBDeleteDB', this.onIDBDeleteDB);\n }\n\n /**\n * Handler for the userDataRemove event\n * @method onUserDataRemove\n * @private\n * @param {string} data The name of the record to be removed\n * @param {string} type The type of listener for bellhop to send to\n */\n onUserDataRemove({ data, type }) {\n SavedDataHandler.remove(data, () => {\n this.client.send(type);\n });\n }\n\n /**\n * Handler for the userDataRead event\n * @method onUserDataRead\n * @private\n * @param {string} data The name of the record to be removed\n * @param {string} type The type of listener for bellhop to send to\n */\n onUserDataRead({ data, type }) {\n SavedDataHandler.read(data, value => this.client.send(type, value));\n }\n\n /**\n * Handler for the userDataWrite event\n * @method onUserDataWrite\n * @private\n * @param {string} type The type of listener for bellhop to send to\n * @param {string} data.name The name for the record. This is what is used to read or remove the record\n * @param {object | string} data.value The data object with the data and value for the record\n */\n onUserDataWrite({type, data: { name, value } }) {\n\n SavedDataHandler.write(name, value, () => this.client.send(type));\n }\n\n // ----------------------------------------------------------------\n // IndexedDB Manipulation\n // ----------------------------------------------------------------\n\n /**\n * Open a connection with the IDB Database and optionally add or delete\n * Indexes and stores\n * @param {string} dbName The name of your IndexedDB database\n * @param {string} [dbVersion] The version number of the database\n * @param {JSON} [additions] Any additions to the structure of the database\n * @param {array} [additions.stores] Any stores to be added into the database syntax:\n * @param {string} [additions.stores.storeName] The name of the store\n * @param {object} [additions.stores.options] Optionally, the option parameter for the createStore method\n * @param {array} [additions.indexes] Any Indexes to be added to the database syntax:\n * @param {string} [additions.indexes.storeName] The name of the store\n * @param {object} [additions.indexes.options] Optionally, the option parameter for the createIndex method\n * @param {string} type The type of listener for bellhop to send to\n */\n onIDBOpen({type, data: {dbName, dbVersion = null, additions = {}, deletions = {} }}) {\n // Keep an instance open to use on open\n this.savedDataHandler = new SavedDataHandler();\n this.savedDataHandler.IDBOpen( dbName, dbVersion, additions, deletions, value => this.client.send(type, value));\n }\n\n /**\n * Add a record to a given store\n * @param {string} type The type of listener for bellhop to send to\n * @param {string} storeName The name of the store from which the record will be updated\n * @param {*} value The value for the record with the given key to be updated\n * @param {string} key the key of the record to be updated\n */\n onIDBAdd({type, data: { storeName, value, key}}) {\n this.savedDataHandler.IDBAdd(storeName, value, key, value => this.client.send(type, value));\n }\n\n /**\n * Update a record from a given store\n * @param {string} type The type of listener for bellhop to send to\n * @param {string} storeName The name of the store with the record to update\n * @param {string} key The key of the record to be updated\n * @param {*} value The record value\n */\n onIDBUpdate({type, data: { storeName, key, value}}) {\n this.savedDataHandler.IDBUpdate(storeName, key, value, value => this.client.send(type, value));\n }\n\n /**\n * Remove a record from a store\n * @param {string} type The type of listener for bellhop to send to\n * @param {string} storeName The name of the store from which the record will be removed\n * @param {*} key the key of the record to be removed\n */\n onIDBRemove({type, data: {storeName, key}}) {\n this.savedDataHandler.IDBRemove(storeName, key, value => this.client.send(type, value));\n }\n\n /**\n * Return a record from a given store with a given key\n * @param {string} storeName The name of the store to read from\n * @param {string} key The key for the record in the given store\n * @param {string} type The type of listener for bellhop to send to\n */\n onIDBRead({type, data: {storeName, key}}) {\n this.savedDataHandler.IDBRead(storeName, key, value => this.client.send(type, value));\n }\n\n /**\n * Get all records from a store\n * @param {string} storeName The store to get all records from\n * @param {integer} count Optionally the number of records to return\n * @param {string} type The type of listener for bellhop to send to\n */\n onIDBReadAll({ type, data: {storeName, count} }) {\n this.savedDataHandler.IDBReadAll(storeName, count, value => this.client.send(type, value));\n }\n\n /**\n * Get the version of a given database\n * @param {string} dbName The name of the database to return the version of\n * @param {string} type The type of listener for bellhop to send to\n */\n onIDBGetVersion({type, data: {dbName}}) {\n // Create a new instance of savedDataHandler to avoid mutating the current instance\n const sdh = new SavedDataHandler();\n sdh.IDBGetVersion(dbName, value => this.client.send(type, value));\n }\n\n /**\n * Close the connection with the database\n * @param {string} type The type of listener for bellhop to send to\n */\n onIDBClose({type}) {\n this.savedDataHandler.IDBClose(value => this.client.send(type, value));\n }\n /**\n * Close the connection with the database\n * @param type - The type of request being sent\n */\n onIDBDeleteDB({type, data: {dbName, options }}) {\n const sdh = new SavedDataHandler();\n\n\n sdh.IDBDeleteDB(dbName, options, value => this.client.send(type, value));\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class PointerSizePlugin\n * @extends {SliderPlugin}\n * @property {object[]} sliders an array of all slider objects attached to PointerSizePlugin\n * @extends SliderPlugin\n */\nexport class PointerSizePlugin extends SliderPlugin {\n /**\n * Creates an instance of PointerSizePlugin.\n * @param {string | HTMLElement} [pointerSliders] selector string or HTML Element for the input(s)\n * @param {number} [defaultPointerSize=0.5] The default value for the pointer size slider\n * @memberof PointerSizePlugin\n */\n constructor(pointerSliders, { defaultPointerSize = 0.5 } = {}) {\n super(pointerSliders, 'UISize-Pointer-Plugin', { defaultValue: defaultPointerSize, featureName: PointerSizePlugin.pointerSizeKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onPointerSizeChange.bind(this));\n }\n\n }\n\n /**\n * @memberof PointerSizePlugin\n * @param {Event} e\n */\n onPointerSizeChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(PointerSizePlugin.pointerSizeKey, this.currentValue);\n }\n\n\n /**\n * @readonly\n * @static\n * @memberof PointerSizePlugin\n * @return {string}\n */\n static get pointerSizeKey() {\n return 'pointerSize';\n }\n}\n","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class ButtonSizePlugin\n * @property {object[]} sliders An array of slider objects given to ButtonSizePlugin\n * @property {number} currentValue The current button size value\n * @extends {SliderPlugin}\n */\nexport class ButtonSizePlugin extends SliderPlugin {\n /**\n * Creates an instance of ButtonSizePlugin.\n * @param {string | HTMLElement} buttonSliders selector string or html element(s) for the inputs\n * @param {object} options\n * @param {number} [options.defaultButtonSize=0.5]\n * @memberof ButtonSizePlugin\n */\n constructor(buttonSliders, { defaultButtonSize = 0.5 } = {}) {\n super(buttonSliders, 'UISize-Button-Plugin', { defaultValue: defaultButtonSize, featureName: ButtonSizePlugin.buttonSizeKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onButtonSizeChange.bind(this));\n }\n }\n\n /**\n * @memberof ButtonSizePlugin\n * @param {Event} e\n */\n onButtonSizeChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(ButtonSizePlugin.buttonSizeKey, this.currentValue);\n }\n\n /**\n * Get ButtonSize Key\n * @readonly\n * @static\n * @memberof ButtonSizePlugin\n * @returns {string}\n */\n static get buttonSizeKey() {\n return 'buttonSize';\n }\n}\n","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class ControlSensitivityPlugin\n * @property {object[]} sliders an array of all slider objects attached to ControlSensitivityPlugin\n * @extends {SliderPlugin}\n */\nexport class ControlSensitivityPlugin extends SliderPlugin {\n /**\n * Creates an instance of ControlSensitivityPlugin.\n * @param {string | HTMLElement} sensitivitySliders\n * @param {number} [defaultSensitivity=0.5]\n * @memberof ControlSensitivityPlugin\n */\n constructor(sensitivitySliders, { defaultSensitivity = 0.5 } = {}) {\n super(sensitivitySliders, 'Control-Sensitivity-Plugin', {defaultValue: defaultSensitivity, featureName: ControlSensitivityPlugin.controlSensitivityKey});\n\n this.sendAllProperties = this.sendAllProperties.bind(this);\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onControlSensitivityChange.bind(this));\n }\n }\n\n /**\n * @memberof ControlSensitivityPlugin\n * @param {Event} e\n */\n onControlSensitivityChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(ControlSensitivityPlugin.controlSensitivityKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof ControlSensitivityPlugin\n * @returns {string}\n */\n static get controlSensitivityKey() {\n return 'controlSensitivity';\n }\n}\n","import { BasePlugin } from '../base-plugins';\nimport { SavedData } from '../SavedData';\n\n/**\n * @export\n * @class KeyboardMapPlugin\n * @extends {BasePlugin}\n */\nexport class KeyboardMapPlugin extends BasePlugin {\n /**\n * Creates an instance of KeyboardMapPlugin.\n * @param {string | HTMLElement} keyContainers div or similar container element that will contain the re-mappable keys\n * @param {string} [customClassName='springrollContainerKeyBinding__button'] A custom class name that will be applied to the container element\n * @memberof KeyboardMapPlugin\n */\n constructor(keyContainers, {customClassName = 'springrollContainerKeyBinding__button'} = {}) {\n super('Keyboard-Map-Plugin');\n\n this.sendAllProperties = this.sendAllProperties.bind(this);\n //Allows for removing and reading event listeners\n this.bindKey = this.bindKey.bind(this);\n this.onKeyButtonClick = this.onKeyButtonClick.bind(this);\n\n this.className = customClassName;\n\n this.keyContainers =\n keyContainers instanceof HTMLElement\n ? [keyContainers]\n : document.querySelectorAll(keyContainers);\n\n this.keyBindings = {};\n this.buttons = [];\n this.activekeyButton;\n\n this.sendAfterFetch = false;\n this.canEmit = false;\n\n this.keyContainersLength = this.keyContainers.length;\n\n if (this.keyContainersLength <= 0) {\n this.warn('plugin was not provided any valid key binding container elements');\n return;\n }\n }\n\n /**\n * @memberof KeyboardMapPlugin\n * @param {MouseEvent} e\n * Sets up a rebinding of a key once a key button is clicked.\n */\n onKeyButtonClick(e) {\n\n for (let i = 0, l = this.buttons.length; i < l; i++) {\n for (let j = 0; j < this.buttons[i].length; j++) {\n this.buttons[i][j].removeEventListener('click', this.onKeyButtonClick);\n }\n }\n this.activekeyButton = e.target;\n this.activekeyButton.textContent = 'Press Key to Map';\n document.addEventListener('keyup', this.bindKey);\n }\n\n /**\n * @memberof KeyboardMapPlugin\n * @param {KeyboardEvent} key\n * Actually updates the key binding and sends the value. Also\n * replicates the new key across the other keycontainers\n */\n bindKey(key) {\n key.preventDefault(); //prevents space bar from retriggering a keybinding when set.\n\n for (const actionName in this.keyBindings) {\n if (this.keyBindings[actionName].currentKey === key.key.toLowerCase()) {\n this.warn(`${key.key} is already bound`);\n return;\n }\n }\n\n this.activekeyButton.textContent = key.key === ' ' ? 'space' : key.key;\n for (let i = 0; i < this.buttons.length; i++) {\n for (let j = 0; j < this.buttons[i].length; j++) {\n if (this.buttons[i][j].value === this.activekeyButton.value) {\n this.buttons[i][j].textContent = this.activekeyButton.textContent;\n }\n }\n }\n\n this.keyBindings[this.activekeyButton.value].currentKey = key.key;\n\n document.removeEventListener('keyup', this.bindKey);\n for (let i = 0, l = this.buttons.length; i < l; i++) {\n for (let j = 0; j < this.buttons[i].length; j++) {\n this.buttons[i][j].addEventListener('click', this.onKeyButtonClick);\n }\n }\n\n this.sendProperty(KeyboardMapPlugin.keyBindingKey, this.keyBindings);\n }\n\n /**\n * @memberof KeyboardMapPlugin\n */\n init() {\n this.client.on(\n 'features',\n function(features) {\n if (!features.data) {\n return;\n }\n\n if (!features.data.keyBinding) {\n return;\n }\n\n const data = SavedData.read(KeyboardMapPlugin.keyBindingKey);\n\n this.client.fetch('keyBindings', result => {\n for (let j = 0; j < this.keyContainersLength; j++) {\n this.buttons[j] = [];\n\n for (let i = 0, l = result.data.length; i < l; i++) {\n let currentKey = result.data[i].defaultKey.toLowerCase();\n if (data) {\n if (data[result.data[i].actionName]) {\n currentKey = data[result.data[i].actionName].currentKey;\n }\n }\n //only needs to be set up once\n if (j === 0) {\n this.keyBindings[result.data[i].actionName] = {\n defaultKey: result.data[i].defaultKey.toLowerCase(),\n currentKey: currentKey,\n };\n }\n\n this.buttons[j][i] = document.createElement('button');\n this.buttons[j][i].classList.add(this.className);\n this.buttons[j][i].id = `keyBoardMapPlugin-${result.data[i].actionName}`;\n this.buttons[j][i].value = result.data[i].actionName;\n this.buttons[j][i].textContent = result.data[i].defaultKey;\n this.buttons[j][i].addEventListener('click', this.onKeyButtonClick);\n\n this.label = document.createElement('label');\n this.label.htmlFor = `keyBoardMapPlugin-${result.data[i].actionName}`;\n this.label.textContent = result.data[i].actionName;\n\n this.keyContainers[j].appendChild(this.label);\n this.keyContainers[j].appendChild(this.buttons[j][i]);\n }\n }\n\n this.canEmit = true;\n if (this.sendAfterFetch) {\n this.sendAllProperties();\n }\n });\n }.bind(this)\n );\n }\n\n /**\n*\n* Sends initial caption properties to the application\n* @memberof KeyboardMapPlugin\n*/\n sendAllProperties() {\n if (this.canEmit) {\n this.sendProperty(KeyboardMapPlugin.keyBindingKey, this.keyBindings);\n } else {\n this.sendAfterFetch = true;\n }\n }\n\n /**\n * @readonly\n * @static\n * @memberof KeyboardMapPlugin\n * @returns {string}\n */\n static get keyBindingKey() {\n return 'keyBinding';\n }\n}\n","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class LayersPlugin\n * @property {object[]} sliders an array of all slider objects attached to LayersPlugin\n * @extends {SliderPlugin}\n */\nexport class LayersPlugin extends SliderPlugin {\n /**\n * Creates an instance of KeyboardMapPlugin.\n * @param {string | HTMLInputElement} layersSliders selector string or HTML Element for the input(s)\n * @param {number} [defaultValue=0] The default value for the slider\n */\n constructor(layersSliders, { defaultValue = 0 } = {}) {\n super(layersSliders, 'Layer-Plugin', { defaultValue: defaultValue, featureName: LayersPlugin.layersSliderKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onLayerValueChange.bind(this));\n }\n }\n\n /**\n * @memberof LayersPlugin\n * @param {Event} e\n */\n onLayerValueChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(LayersPlugin.layersSliderKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof LayersPlugin\n * @returns {string}\n */\n static get layersSliderKey() {\n return 'removableLayers';\n }\n}\n","import { RadioGroupPlugin } from '../base-plugins';\nimport { SavedData } from '../SavedData';\n\nconst SUPPORTED_POSITIONS = ['top', 'bottom', 'left', 'right'];\n\n/**\n * @export\n * @class HUDPlugin\n * @extends {BasePlugin}\n */\nexport class HUDPlugin extends RadioGroupPlugin {\n /**\n * Creates an instance of HUDPlugin\n * @param {string} hudSelectorRadios selector string or for the input(s)\n * @param {string[]} [defaultValue='top'] default value for the HUD position\n * @memberof HUDPlugin\n */\n constructor(hudSelectorRadios, { defaultValue = SUPPORTED_POSITIONS[0] } = {}) {\n super(hudSelectorRadios, 'HUD-Layout-Plugin', {supportedValues: SUPPORTED_POSITIONS, initialValue: defaultValue, controlName: 'Hud Selector', featureName: HUDPlugin.hudPositionKey, radioCount: SUPPORTED_POSITIONS.length});\n\n this.sendAllProperties = this.sendAllProperties.bind(this);\n this.sendAfterFetch = false;\n this.canEmit = false;\n this.positions = [];\n\n if (this.radioGroupsLength <= 0) {\n this.warn('Plugin was not provided any valid HTML elements');\n }\n\n for (let i = 0; i < this.radioGroupsLength; i++) {\n this.radioGroups[i].enableRadioEvents(this.onHUDSelect.bind(this));\n }\n\n }\n\n /**\n * @memberof HUDPlugin\n * @param {Event} e\n */\n onHUDSelect(e) {\n //return if a radio button is programattically clicked when it is hidden\n if (!this.positions.includes(e.target.value)) {\n for (let i = 0; i < this.radioGroupsLength; i++) {\n this.radioGroups[i].radioGroup[this.currentValue].checked = true;\n }\n return;\n }\n\n this.currentValue = e.target.value;\n\n this.sendProperty(\n HUDPlugin.hudPositionKey,\n this.currentValue\n );\n }\n\n /**\n * @memberof HUDPlugin\n */\n init() {\n this.client.on(\n 'features',\n function(features) {\n if (!features.data || !features.data.hudPosition) {\n return;\n }\n\n if (this.radioGroupsLength <= 0) {\n return;\n }\n //get the game's reported HUD positions to build out positions array\n this.client.fetch('hudPositions', result => {\n for (let i = 0, l = result.data.length; i < l; i++) {\n if (\n !SUPPORTED_POSITIONS.includes(result.data[i].toLowerCase())\n ) {\n this.warn(`${result.data[i]} is an invalid position name`);\n continue;\n }\n\n this.positions.push(result.data[i].toLowerCase());\n }\n\n for (let i = 0; i < this.radioGroupsLength; i++) {\n //Hide any radio buttons that aren't in the game's position list.\n for (const key in this.radioGroups[i].radioGroup) {\n this.radioGroups[i].radioGroup[key].style.display = this.positions.includes(this.radioGroups[i].radioGroup[key].value) ? '' : 'none';\n }\n }\n\n this.canEmit = true;\n if (this.sendAfterFetch) {\n this.sendAllProperties();\n }\n });\n\n }.bind(this)\n );\n }\n\n /**\n * @memberof HUDPlugin\n */\n start() {\n const data = SavedData.read(HUDPlugin.hudPositionKey);\n\n if (SUPPORTED_POSITIONS.includes(data)) {\n this.currentValue = data;\n }\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Sends initial HUD position properties to the application\n * @memberof HUDPlugin\n */\n sendAllProperties() {\n if (this.canEmit) {\n this.sendProperty(HUDPlugin.hudPositionKey, this.currentValue);\n } else {\n this.sendAfterFetch = true;\n }\n }\n\n /**\n * @static\n * @readonly\n * @memberof HUDPlugin\n * @returns {string}\n */\n static get hudPositionKey() {\n return 'hudPosition';\n }\n}\n","import { RadioGroupPlugin } from '../base-plugins';\nimport { SavedData } from '../SavedData';\n\nconst COLOR_BLIND_TYPES = [\n 'none',\n 'protanopia',\n 'deuteranopia',\n 'tritanopia',\n 'achromatopsia'\n];\n\n/**\n * @export\n * @class ColorVisionPlugin\n * @property {boolean} sendAfterFetch Whether to send the properties after fetch or not\n * @property {boolean} canEmit Whether or not the plugin can send properties\n * @property {string} colors \n * @extends {RadioGroupPlugin}\n */\nexport class ColorVisionPlugin extends RadioGroupPlugin {\n /**\n * Creates an instance of ColorVisionPlugin.\n * @param {string | HTMLElement} colorSelects\n * @param {string } [defaultValue] Default selected value\n * @memberof ColorVision\n */\n constructor(colorVisionRadios, { defaultValue = COLOR_BLIND_TYPES[0] } = {}) {\n super(colorVisionRadios, 'Color-Filter-Plugin', {supportedValues: COLOR_BLIND_TYPES, initialValue: defaultValue, controlName: 'Color Vision Selector', featureName: ColorVisionPlugin.colorVisionKey, radioCount: COLOR_BLIND_TYPES.length});\n\n this.sendAllProperties = this.sendAllProperties.bind(this);\n this.sendAfterFetch = false;\n this.canEmit = false;\n this.colors = [];\n\n if (this.radioGroupsLength <= 0) {\n this.warn('Plugin was not provided any valid HTML elements');\n return;\n }\n\n for (let i = 0; i < this.radioGroupsLength; i++) {\n this.radioGroups[i].enableRadioEvents(this.onColorChange.bind(this));\n }\n }\n\n /**\n * @memberof ColorVisionPlugin\n * @param {Event} e\n */\n onColorChange(e) {\n //return if a radio button is programmatically clicked when it is hidden from the user\n if (!this.colors.includes(e.target.value) ) {\n for (let i = 0; i < this.radioGroupsLength; i++) {\n this.radioGroups[i].radioGroup[this.currentValue].checked = true;\n }\n return;\n }\n this.currentValue = e.target.value;\n\n this.sendProperty(\n ColorVisionPlugin.colorVisionKey,\n this.currentValue\n );\n }\n\n /**\n * @memberof ColorVisionPlugin\n */\n init() {\n this.client.on(\n 'features',\n function(features) {\n if (!features.data || !features.data.colorVision) {\n return;\n }\n if (this.colorDropdownsLength <= 0) {\n return;\n }\n\n //get the game's reported colors to build out accepted filters array\n this.client.fetch('colorFilters', result => {\n for (let i = 0, l = result.data.length; i < l; i++) {\n if (\n !COLOR_BLIND_TYPES.includes(result.data[i].toLowerCase())\n ) {\n this.warn(`${result.data[i]} is an invalid color vision name`);\n continue;\n }\n this.colors.push(result.data[i].toLowerCase());\n }\n\n this.defaultValue = this.colors[0];\n\n for (let i = 0; i < this.radioGroupsLength; i++) {\n //Hide any radio buttons that aren't in the game's filter list.\n for (const key in this.radioGroups[i].radioGroup) {\n this.radioGroups[i].radioGroup[key].style.display = this.colors.includes(this.radioGroups[i].radioGroup[key].value.toLowerCase()) ? '' : 'none';\n }\n }\n\n this.canEmit = true;\n\n if (this.sendAfterFetch) {\n this.sendAllProperties();\n }\n });\n\n }.bind(this)\n );\n }\n\n /**\n * @memberof ColorVisionPlugin\n */\n start() {\n const data = SavedData.read(ColorVisionPlugin.colorVisionKey);\n\n if (COLOR_BLIND_TYPES.includes(data)) {\n this.currentValue = data;\n }\n\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n*\n* Sends initial caption properties to the application\n* @memberof ColorVisionPlugin\n*/\n sendAllProperties() {\n if (this.canEmit) {\n this.sendProperty(ColorVisionPlugin.colorVisionKey, this.currentValue);\n } else {\n this.sendAfterFetch = true;\n }\n }\n\n /**\n * Get the ColorVisionPlugin key\n * @readonly\n * @static\n * @memberof ColorVisionPlugin\n * @returns {string}\n */\n static get colorVisionKey() {\n return 'colorVision';\n }\n\n}\n","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class HitAreaScalePlugin\n * @property {object[]} sliders an array of all slider objects attached to ControlSensitivityPlugin\n * @extends {SliderPlugin}\n * \n */\nexport class HitAreaScalePlugin extends SliderPlugin {\n /**\n * Creates an instance of HitAreaScalePlugin.\n * @param {string | HTMLElement} hitAreaScaleSliders The selector or HTMLElement for the slider\n * @param {number} [defaultHitAreaScale=0.5] The default hit area scale value\n * @memberof HitAreaScalePlugin\n */\n constructor(hitAreaScaleSliders, { defaultHitAreaScale = 0.5 } = {}) {\n super(hitAreaScaleSliders, 'Hit-Area-Scale-Plugin', { defaultValue: defaultHitAreaScale, featureName: HitAreaScalePlugin.hitAreaScaleKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onHitAreaScaleChange.bind(this));\n }\n }\n\n /**\n * @memberof HitAreaScalePlugin\n * @param {Event} target\n * @param {string} control\n */\n onHitAreaScaleChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(HitAreaScalePlugin.hitAreaScaleKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof HitAreaScalePlugin\n * @returns {string}\n */\n static get hitAreaScaleKey() {\n return 'hitAreaScale';\n }\n}\n","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class DragThresholdScalePlugin\n * @extends {SliderPlugin}\n */\nexport class DragThresholdScalePlugin extends SliderPlugin {\n /**\n * Creates an instance of DragThresholdScalePlugin.\n * @param {string | HTMLElement} params.dragThresholdScaleSliders\n * @param {number} [defaultDragThresholdScale=0.5]\n * @memberof DragThresholdScalePlugin\n */\n constructor(dragThresholdScaleSliders, { defaultDragThresholdScale = 0.5 } = {}) {\n super(dragThresholdScaleSliders, 'Drag-Threshold-Scale-Plugin', { defaultValue: defaultDragThresholdScale, featureName: DragThresholdScalePlugin.dragThresholdScaleKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onDragThresholdScaleChange.bind(this));\n }\n }\n\n /**\n * @memberof DragThresholdScalePlugin\n * @param {Event} target\n * @param {string} control\n */\n onDragThresholdScaleChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(DragThresholdScalePlugin.dragThresholdScaleKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof DragThresholdScalePlugin\n * @returns {string}\n */\n static get dragThresholdScaleKey() {\n return 'dragThresholdScale';\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class HealthPlugin\n * @extends {SliderPlugin}\n */\nexport class HealthPlugin extends SliderPlugin {\n /**\n * Creates an instance of HealthPlugin.\n * @param {string | HTMLElement} healthSliders\n * @param {number} [defaultHealth=0.5]\n * @memberof HealthPlugin\n */\n constructor(healthSliders, {defaultHealth = 0.5 } = {}) {\n super(healthSliders, 'Health-Scale-Plugin', { defaultValue:defaultHealth, featureName: HealthPlugin.healthKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onHealthChange.bind(this));\n }\n }\n\n /**\n * @memberof HealthPlugin\n * @param {Event} e\n */\n onHealthChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(HealthPlugin.healthKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof HealthPlugin\n * @returns {string}\n */\n static get healthKey() {\n return 'health';\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class ObjectCountPlugin\n * @property {object[]} sliders an array of all slider objects attached to ObjectCountPlugin\n * @extends {SliderPlugin}\n */\nexport class ObjectCountPlugin extends SliderPlugin {\n /**\n * Creates an instance of ObjectCountPlugin.\n * @param {string | HTMLElement} objectCountSliders selector string or HTML Element for the input(s)\n * @param {number} [defaultObjectCount=0.5] The default value for the slider\n * @memberof ObjectCountPlugin\n */\n constructor(objectCountSliders, { defaultObjectCount = 0.5 } = {}) {\n super(objectCountSliders, 'Object-Count-Plugin', { defaultValue: defaultObjectCount, featureName: ObjectCountPlugin.objectCountKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onObjectCountChange.bind(this));\n }\n }\n\n /**\n * @memberof ObjectCountPlugin\n * @param {Event} target\n * @param {string} control\n */\n onObjectCountChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(ObjectCountPlugin.objectCountKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof ObjectCountPlugin\n * @returns {string}\n */\n static get objectCountKey() {\n return 'objectCount';\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class CompletionPercentagePlugin\n * @property {object[]} sliders an array of all slider objects attached to CompletePercentagePlugin\n * @extends {SliderPlugin}\n */\nexport class CompletionPercentagePlugin extends SliderPlugin {\n /**\n * Creates an instance of CompletionPercentagePlugin.\n * @param {string | HTMLElement} completionPercentageSliders The selector or HTMLSliderElement of the slider\n * @param {number} [defaultCompletionPercentage=0.5] Default selected completion percentage\n * @memberof CompletionPercentagePlugin\n */\n constructor(completionPercentageSliders, { defaultCompletionPercentage = 0.5 } = {}) {\n super(completionPercentageSliders, 'Completion-Percentage-Plugin', { defaultValue: defaultCompletionPercentage, featureName: CompletionPercentagePlugin.completionPercentageKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onCompletionPercentageChange.bind(this));\n }\n }\n\n /**\n * @memberof CompletionPercentagePlugin\n * @param {Event} e\n */\n onCompletionPercentageChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(CompletionPercentagePlugin.completionPercentageKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof CompletionPercentagePlugin\n * @returns {string}\n */\n static get completionPercentageKey() {\n return 'completionPercentage';\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class SpeedScalePlugin\n * @extends {SliderPlugin}\n */\nexport class SpeedScalePlugin extends SliderPlugin {\n /**\n *Creates an instance of SpeedScalePlugin.\n * @param {string | HTMLElement} speedScaleSliders selector string or HTML Element for the input(s)\n * @param {number} [defaultSpeedScale=0.5] The default value for the speed scale slider\n * @memberof SpeedScalePlugin\n */\n constructor(speedScaleSliders, { defaultSpeedScale = 0.5 } = {}) {\n super(speedScaleSliders, 'Speed-Scale-Plugin', { defaultValue: defaultSpeedScale, featureName: SpeedScalePlugin.speedScaleKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onSpeedScaleChange.bind(this));\n }\n }\n\n /**\n * @memberof SpeedScalePlugin\n * @param {Event} e\n */\n onSpeedScaleChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(SpeedScalePlugin.speedScaleKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof SpeedScalePlugin\n * @return {string}\n */\n static get speedScaleKey() {\n return 'speedScale';\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class TimersScalePlugin\n * @property {number} currentValue\n * @extends {SliderPlugin}\n */\nexport class TimersScalePlugin extends SliderPlugin {\n /**\n * Creates an instance of TimersScalePlugin.\n * @param {string | HTMLElement} timersScaleSliders selector string or HTML Element for the input(s)\n * @param {number} [defaultTimersScale=0.5] Default Value for the timer scale slider\n * @memberof TimersScalePlugin\n */\n constructor(timersScaleSliders, { defaultTimersScale = 0.5 } = {}) {\n super(timersScaleSliders, 'Timers-Scale-Plugin', { defaultValue: defaultTimersScale, featureName: TimersScalePlugin.timersScaleKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onTimersScaleChange.bind(this));\n }\n }\n\n /**\n * @memberof TimersScalePlugin\n * @param {Event} e\n */\n onTimersScaleChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(TimersScalePlugin.timersScaleKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof TimersScalePlugin\n * @return {string}\n */\n static get timersScaleKey() {\n return 'timersScale';\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class InputCountPlugin\n * @property {object[]} sliders an array of all slider objects attached to InputCountPlugin\n * @extends {SliderPlugin}\n */\nexport class InputCountPlugin extends SliderPlugin {\n /**\n * Creates an instance of InputCountPlugin.\n * @param {string | HTMLElement} inputCountSliders selector string or HTML Element for the input(s)\n * @param {number} [defaultInputCount=0.5] The default value for the slider\n * @memberof InputCountPlugin\n */\n constructor(inputCountSliders, { defaultInputCount = 0.5 } = {}) {\n super(inputCountSliders, 'Input-Count-Plugin', { defaultValue: defaultInputCount, featureName: InputCountPlugin.inputCountKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onInputCountChange.bind(this));\n }\n }\n\n /**\n * @memberof InputCountPlugin\n * @param {Event} target\n * @param {string} control\n */\n onInputCountChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(InputCountPlugin.inputCountKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof InputCountPlugin\n * @returns {string}\n */\n static get inputCountKey() {\n return 'inputCount';\n }\n}","import { ButtonPlugin } from '../base-plugins/ButtonPlugin';\nimport { Button } from '../ui-elements';\n\n/**\n * A Springroll plugin to easily set up togglable fullscreen\n */\nexport class FullScreenPlugin extends ButtonPlugin {\n \n /**\n * Creates an instance of FullscreenPlugin\n * \n * @param {string | string[]} buttonSelector The selector for the element to be made fullscreen\n */\n constructor(buttonSelector) {\n super({\n name: FullScreenPlugin.fullscreenKey\n }); \n\n this._toggleButtons = [];\n this.iFrame = null;\n\n this.sendAllProperties = this.sendAllProperties.bind(this);\n\n if (Array.isArray(buttonSelector)) {\n // If input is an array, join the selectors into one string\n buttonSelector = buttonSelector.join(', ');\n }\n\n console.log(buttonSelector);\n \n this.toggleButton = document.querySelectorAll(buttonSelector);\n\n\n this.toggleButton.forEach((button) => {\n this._toggleButtons.push(new Button({\n button: button,\n onClick: this.toggleFullScreen.bind(this),\n channel: FullScreenPlugin.fullscreenKey\n }));\n });\n \n\n document.addEventListener('fullscreenchange', () => {\n this.sendAllProperties();\n \n this._toggleButtons.forEach((button) => {\n button.button.classList.toggle('--fullScreen');\n });\n\n });\n }\n\n /**\n * @memberof FullScreenPlugin\n */\n init({ iframe }) {\n this.iFrame = iframe;\n // Handle the features request\n this.client.on(\n 'features',\n function($event) {\n for (let i = 0; i < this.fullscreenElement; i ++) {\n this._toggleButtons[i].displayButton($event.data);\n }\n\n }.bind(this)\n );\n }\n /**\n * @memberof FullScreenPlugin\n */\n start() {\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Sends initial fullScreen properties to the application\n * @memberof FullScreenTogglePlugin\n */\n sendAllProperties() {\n this.sendProperty(FullScreenPlugin.fullscreenKey, document.fullscreenElement != null ? 'true' : 'false');\n }\n\n /**\n * Toggles fullscreen on this.iFrame. Must be from a user generated event\n */\n toggleFullScreen() {\n if (!document.fullscreenElement) {\n this.iFrame.requestFullscreen().then(() => {\n this.sendAllProperties();\n }).catch((err) => {\n console.log(err);\n });\n } else {\n document.exitFullscreen();\n this.sendAllProperties();\n }\n }\n\n /**\n * Returns true if there is a fullscreen element and false if not\n * @returns { boolean } \n */\n get isFullScreen() {\n return (document.fullscreenElement || // basic\n document.webkitIsFullscreen || //Webkit browsers\n document.mozFullScreen ) // Firefox\n != true; // Ensure boolean output\n }\n\n /** \n * @readonly\n * @static\n * @memberof FullscreenPlugin\n */\n static get fullscreenKey() {\n return 'fullScreen';\n }\n}"],"names":["global","globalThis","self","support","searchParams","iterable","Symbol","blob","Blob","e","formData","arrayBuffer","viewClasses","isArrayBufferView","ArrayBuffer","isView","obj","indexOf","Object","prototype","toString","call","normalizeName","name","String","test","TypeError","toLowerCase","normalizeValue","value","iteratorFor","items","iterator","next","shift","done","undefined","Headers","headers","this","map","forEach","append","Array","isArray","header","getOwnPropertyNames","consumed","body","bodyUsed","Promise","reject","fileReaderReady","reader","resolve","onload","result","onerror","error","readBlobAsArrayBuffer","FileReader","promise","readAsArrayBuffer","bufferClone","buf","slice","view","Uint8Array","byteLength","set","buffer","Body","_initBody","_bodyInit","_bodyText","isPrototypeOf","_bodyBlob","FormData","_bodyFormData","URLSearchParams","DataView","_bodyArrayBuffer","get","type","rejected","Error","isConsumed","byteOffset","then","text","readAsText","readBlobAsText","chars","length","i","fromCharCode","join","readArrayBufferAsText","decode","json","JSON","parse","oldValue","has","hasOwnProperty","callback","thisArg","keys","push","values","entries","methods","Request","input","options","url","credentials","method","mode","signal","upcased","toUpperCase","normalizeMethod","referrer","cache","reParamSearch","replace","Date","getTime","form","trim","split","bytes","decodeURIComponent","Response","bodyInit","status","ok","statusText","clone","response","redirectStatuses","redirect","RangeError","location","DOMException","err","message","stack","create","constructor","fetch","init","request","aborted","xhr","XMLHttpRequest","abortXhr","abort","rawHeaders","getAllResponseHeaders","substr","line","parts","key","responseURL","responseText","setTimeout","ontimeout","onabort","open","href","fixUrl","withCredentials","responseType","setRequestHeader","addEventListener","onreadystatechange","readyState","removeEventListener","send","polyfill","match","version","check","it","Math","global_1","window","Function","domIterables","CSSRuleList","CSSStyleDeclaration","CSSValueList","ClientRectList","DOMRectList","DOMStringList","DOMTokenList","DataTransferItemList","FileList","HTMLAllCollection","HTMLCollection","HTMLFormElement","HTMLSelectElement","MediaList","MimeTypeArray","NamedNodeMap","NodeList","PaintRequestList","Plugin","PluginArray","SVGLengthList","SVGNumberList","SVGPathSegList","SVGPointList","SVGStringList","SVGTransformList","SourceBufferList","StyleSheetList","TextTrackCueList","TextTrackList","TouchList","documentAll","document","all","documentAll_1","IS_HTMLDDA","$documentAll","isCallable","argument","isObject","EXISTS","createElement","documentCreateElement","classList","DOMTokenListPrototype","domTokenListPrototype","fails","exec","functionBindNative","bind","FunctionPrototype","uncurryThisWithBind","NATIVE_BIND","functionUncurryThis","fn","apply","arguments","uncurryThis","stringSlice","classofRaw","functionUncurryThisClause","$String","tryToString","$TypeError","aCallable","functionBindContext","that","$Object","indexedObject","propertyIsEnumerable","classof","isNullOrUndefined","requireObjectCoercible","toObject","ceil","floor","mathTrunc","trunc","x","n","toIntegerOrInfinity","number","min","lengthOfArrayLike","defineProperty","defineGlobalProperty","configurable","writable","SHARED","sharedStore","module","store","copyright","license","source","hasOwnProperty_1","hasOwn","id","postfix","random","uid","engineUserAgent","navigator","userAgent","process","Deno","versions","v8","engineV8Version","symbolConstructorDetection","getOwnPropertySymbols","symbol","sham","V8_VERSION","useSymbolAsUid","NATIVE_SYMBOL","WellKnownSymbolsStore","shared","createWellKnownSymbol","USE_SYMBOL_AS_UID","withoutSetter","wellKnownSymbol","toStringTagSupport","TO_STRING_TAG","CORRECT_ARGUMENTS","TO_STRING_TAG_SUPPORT","O","tag","tryGet","callee","aFunction","getBuiltIn","namespace","functionToString","inspectSource","noop","empty","construct","constructorRegExp","INCORRECT_TO_STRING","isConstructorModern","isConstructorLegacy","isConstructor","called","SPECIES","$Array","arraySpeciesCreate","originalArray","C","createMethod","TYPE","IS_MAP","IS_FILTER","IS_SOME","IS_EVERY","IS_FIND_INDEX","IS_FILTER_REJECT","NO_HOLES","$this","callbackfn","specificCreate","IndexedObject","boundFunction","index","target","arrayIteration","filter","some","every","find","findIndex","filterReject","arrayMethodIsStrict","METHOD_NAME","$forEach","require$$0","arrayForEach","descriptors","ie8DomDefine","DESCRIPTORS","a","v8PrototypeDefineBug","anObject","functionCall","objectIsPrototypeOf","isSymbol","$Symbol","getMethod","V","P","func","TO_PRIMITIVE","toPrimitive","pref","exoticToPrim","val","valueOf","ordinaryToPrimitive","toPropertyKey","$defineProperty","$getOwnPropertyDescriptor","getOwnPropertyDescriptor","ENUMERABLE","CONFIGURABLE","WRITABLE","V8_PROTOTYPE_DEFINE_BUG","Attributes","current","enumerable","IE8_DOM_DEFINE","createPropertyDescriptor","bitmap","createNonEnumerableProperty","object","definePropertyModule","f","handlePrototype","CollectionPrototype","COLLECTION_NAME","DOMIterables","handlePrototype$1","activeXDocument","toIndexedObject","max","toAbsoluteIndex","integer","IS_INCLUDES","el","fromIndex","arrayIncludes","includes","hiddenKeys","objectKeysInternal","names","enumBugKeys","objectKeys","internalObjectKeys","defineProperties","Properties","props","html","sharedKey","PROTOTYPE","SCRIPT","IE_PROTO","EmptyConstructor","scriptTag","content","LT","NullProtoObjectViaActiveX","write","close","temp","parentWindow","NullProtoObject","ActiveXObject","iframeDocument","iframe","JS","domain","style","display","appendChild","src","contentWindow","F","objectCreate","definePropertiesModule","UNSCOPABLES","ArrayPrototype","addToUnscopables","iterators","WeakMap","weakMapBasicDetection","OBJECT_ALREADY_INITIALIZED","NATIVE_WEAK_MAP","state","metadata","facade","STATE","IteratorPrototype","PrototypeOfArrayIteratorPrototype","arrayIterator","internalState","enforce","getterFor","$propertyIsEnumerable","descriptor","propertyIsEnumerableModule","getDescriptor","functionName","PROPER","CONFIGURABLE_FUNCTION_NAME","enforceInternalState","InternalStateModule","getInternalState","CONFIGURABLE_LENGTH","TEMPLATE","makeBuiltIn","exports","getter","setter","arity","defineBuiltIn","simple","unsafe","nonConfigurable","nonWritable","concat","ownKeys","getOwnPropertyNamesModule","getOwnPropertySymbolsModule","copyConstructorProperties","exceptions","getOwnPropertyDescriptorModule","replacement","isForced","feature","detection","data","normalize","POLYFILL","NATIVE","string","isForced_1","_export","targetProperty","sourceProperty","TARGET","GLOBAL","STATIC","stat","dontCallGetSet","forced","correctPrototypeGetter","getPrototypeOf","ObjectPrototype","objectGetPrototypeOf","CORRECT_PROTOTYPE_GETTER","ITERATOR","BUGGY_SAFARI_ITERATORS","NEW_ITERATOR_PROTOTYPE","iteratorsCore","setToStringTag","TAG","returnThis","objectSetPrototypeOf","setPrototypeOf","CORRECT_SETTER","uncurryThisAccessor","proto","aPossiblePrototype","__proto__","PROPER_FUNCTION_NAME","FunctionName","IteratorsCore","KEYS","VALUES","ENTRIES","iteratorDefine","Iterable","NAME","IteratorConstructor","DEFAULT","IS_SET","FORCED","ENUMERABLE_NEXT","Iterators","createIteratorConstructor","CurrentIteratorPrototype","KEY","getIterationMethod","KIND","defaultIterator","IterablePrototype","INCORRECT_VALUES_NAME","nativeIterator","anyNativeIterator","$","createIterResultObject","ARRAY_ITERATOR","setInternalState","es_array_iterator","defineIterator","iterated","kind","Arguments","ArrayValues","ArrayIteratorMethods","path","$indexOf","nativeIndexOf","NEGATIVE_ZERO","searchElement","doesNotExceedSafeInteger","createProperty","propertyKey","arrayMethodHasSpeciesSupport","array","foo","Boolean","IS_CONCAT_SPREADABLE","IS_CONCAT_SPREADABLE_SUPPORT","isConcatSpreadable","spreadable","arg","k","len","E","A","$assign","assign","objectAssign","b","B","alphabet","chr","T","argumentsLength","S","j","objectToString","$location","defer","channel","port","engineIsNode","defineBuiltInAccessor","setSpecies","CONSTRUCTOR_NAME","Constructor","anInstance","Prototype","speciesConstructor","defaultConstructor","aConstructor","functionApply","Reflect","arraySlice","validateArgumentsLength","passed","required","engineIsIos","setImmediate","clear","clearImmediate","Dispatch","MessageChannel","counter","queue","ONREADYSTATECHANGE","run","runner","eventListener","event","globalPostMessageDefer","postMessage","protocol","host","handler","args","IS_NODE","nextTick","now","IS_IOS","port2","port1","onmessage","importScripts","removeChild","task","Queue","head","tail","add","item","entry","notify","toggle","node","engineIsIosPebble","Pebble","engineIsWebosWebkit","macrotask","require$$1","MutationObserver","WebKitMutationObserver","queueMicrotaskDescriptor","microtask","flush","parent","exit","enter","IS_WEBOS_WEBKIT","IS_IOS_PEBBLE","createTextNode","observe","characterData","microtask_1","perform","promiseNativeConstructor","engineIsDeno","engineIsBrowser","IS_DENO","NativePromiseConstructor","Internal","OwnPromiseCapability","nativeThen","SUBCLASSING","NATIVE_PROMISE_REJECTION_EVENT","PromiseRejectionEvent","FORCED_PROMISE_CONSTRUCTOR","PROMISE_CONSTRUCTOR_SOURCE","GLOBAL_CORE_JS_PROMISE","FakePromise","IS_BROWSER","promiseConstructorDetection","CONSTRUCTOR","REJECTION_EVENT","PromiseCapability","$$resolve","$$reject","PROMISE","PromiseConstructorDetection","NATIVE_PROMISE_SUBCLASSING","getInternalPromiseState","NativePromisePrototype","PromiseConstructor","PromisePrototype","newPromiseCapability","newPromiseCapabilityModule","newGenericPromiseCapability","DISPATCH_EVENT","createEvent","dispatchEvent","UNHANDLED_REJECTION","isThenable","callReaction","reaction","exited","fail","rejection","onHandleUnhandled","isReject","notified","reactions","onUnhandled","reason","initEvent","console","hostReportErrors","isUnhandled","emit","unwrap","internalReject","internalResolve","wrapper","executor","onFulfilled","onRejected","PromiseWrapper","wrap","getIteratorMethod","iteratorClose","innerResult","innerError","Result","stopped","ResultPrototype","iterate","unboundFunction","iterFn","step","AS_ENTRIES","IS_RECORD","IS_ITERATOR","INTERRUPTED","stop","condition","callFn","usingIterator","iteratorMethod","getIterator","SAFE_CLOSING","iteratorWithReturn","return","from","checkCorrectnessOfIteration","SKIP_CLOSING","ITERATION_SUPPORT","promiseStaticsIncorrectIteration","PROMISE_STATICS_INCORRECT_ITERATION","capability","$promiseResolve","remaining","alreadyCalled","real","catch","race","r","promiseCapability","promiseResolve","re1","re2","toString_1","regexpFlags","hasIndices","ignoreCase","multiline","dotAll","unicode","unicodeSets","sticky","$RegExp","RegExp","UNSUPPORTED_Y","re","lastIndex","MISSED_STICKY","regexpStickyHelpers","BROKEN_CARET","regexpUnsupportedDotAll","flags","regexpUnsupportedNcg","groups","nativeReplace","nativeExec","patchedExec","charAt","UPDATES_LAST_INDEX_WRONG","stickyHelpers","NPCG_INCLUDED","UNSUPPORTED_DOT_ALL","UNSUPPORTED_NCG","reCopy","group","str","raw","charsAdded","strCopy","Features","_classCallCheck","_createClass","canvas","getContext","Worker","msPointerEnabled","msMaxTouchPoints","pointerEnabled","maxTouchPoints","webaudio","htmlAudio","capabilities","basic","features","ui","sizes","touch","size","screen","width","height","xsmall","small","medium","large","xlarge","webgl","webAudio","charCodeAt","CONVERT_TO_STRING","pos","first","second","position","codeAt","STRING_ITERATOR","point","$filter","HAS_SPECIES_SUPPORT","$find","FIND","SKIPS_HOLES","t","PluginManager","_ref","_ref$plugins","plugins","client","Bellhop","hidden","receive","hiddenSend","_this","preloads","_loop","preload","preloadFailed","warn","l","plugin","start","Container","_PluginManager","_inherits","_openRemote","_super","_createSuper","iframeOrSelector","_ref$context","context","HTMLIFrameElement","querySelector","loaded","loading","release","_context","onLoading","_assertThisInitialized","onLoadDone","onEndGame","onLocalError","initClient","setupPlugins","trigger","remove","reset","$event","setAttribute","on","connect","userPath","_ref2","_ref2$singlePlay","singlePlay","_ref2$playOptions","playOptions","playOptionsQueryString","encodeURIComponent","stringify","respond","_typeof","_internalOpen","_asyncToGenerator","_regeneratorRuntime","mark","_callee","api","_ref3","_ref3$query","query","_ref3$singlePlay","_ref3$playOptions","_args","prev","sent","success","_x","newContext","PageVisibility","onFocus","onBlur","_onFocus","_onBlur","enabled","_enabled","onToggle","enable","$includes","BROKEN_ON_SPARSE","whitespaces","ltrim","rtrim","stringTrim","end","$trim","RegExpPrototype","TO_STRING","nativeToString","NOT_GENERIC","INCORRECT_NAME","R","pattern","$toString","regExpFlags","getRegExpFlags","SavedData","dbName","db","dbVersion","additions","deletions","indexedDB","onsuccess","onupgradeneeded","stores","createObjectStore","storeName","indexes","transaction","objectStore","createIndex","indexName","keyPath","deleteIndex","deleteObjectStore","deleteDatabase","IDBOpen","tx","oncomplete","updateRequest","put","_this2","delete","_this3","readRequest","_this4","count","getAllKeys","getAll","dBOpenRequest","localStorage","removeItem","sessionStorage","setItem","getItem","BasePlugin","_preload","sendAllProperties","_","prop","warningText","ButtonPlugin","_BasePlugin","sendMutes","container","button","HTMLButtonElement","muted","changeMutedState","sendProperty","htmlButton","HTMLElement","MATCH","notARegexp","isRegExp","stringIndexOf","regexp","error1","error2","correctIsRegExpLogic","searchString","notARegExp","$getOwnPropertyNames","windowNames","getWindowNames","fin","arrayBufferNonExtensible","isExtensible","$isExtensible","objectIsExtensible","ARRAY_BUFFER_NON_EXTENSIBLE","freezing","preventExtensions","REQUIRED","METADATA","setMetadata","objectID","weakData","meta","splice","getOwnPropertyNamesExternalModule","fastKey","getWeakData","onFreeze","FREEZING","inheritIfRequired","dummy","Wrapper","NewTarget","NewTargetPrototype","defineBuiltIns","internalStateGetterFor","collectionStrong","getConstructor","ADDER","last","define","previous","getEntry","removed","setStrong","ITERATOR_NAME","getInternalCollectionState","getInternalIteratorState","common","IS_WEAK","NativeConstructor","NativePrototype","exported","fixMethod","uncurriedNativeMethod","InternalMetadataModule","instance","HASNT_CHAINING","THROWS_ON_PRIMITIVES","ACCEPT_ITERABLES","BUGGY_ZERO","$instance","collection","FAILS_ON_PRIMITIVES","nativeKeys","$map","TO_ENTRIES","$values","RadioGroup","selector","controlName","_ref$featureName","featureName","defaultValue","pluginName","radioElements","querySelectorAll","radioGroup","_possibleConstructorReturn","radio","checked","valuesArray","_toConsumableArray","Set","callBack","RadioGroupPlugin","cssSelector","supportedValues","initialValue","radioCount","selectors","_currentValue","radioGroups","setUpRadios","radioGroupsLength","hasOnly","hasDuplicateValues","property","newValue","thisNumberValue","require$$2","require$$3","NUMBER","NativeNumber","NumberPrototype","toNumeric","primValue","toNumber","third","radix","maxCode","digits","code","NaN","parseInt","calledWithNew","NumberWrapper","Number","Slider","slider","control","_ref$min","_ref$max","_ref$step","_ref$defaultValue","sliderValue","setUpSlider","read","Button","onClick","className","SliderPlugin","_ref$minValue","minValue","_ref$maxValue","maxValue","sliders","setUpSliders","slidersLength","displaySlider","currentValue","sliderRange","DEFAULT_CAPTIONS_STYLES","background","color","edge","font","align","DEFAULT_COLOR_STYLE","INVERTED_COLOR_STYLE","FONT_SIZE_VALUES","COLOR_VALUES","ALIGN_VALUES","CaptionsStylePlugin","_ButtonPlugin","fontSizeRadios","colorRadios","alignmentRadios","_ref$defaultFontSize","defaultFontSize","_ref$defaultColor","defaultColor","_ref$defaultAlignment","defaultAlignment","captionsStyles","captionStyleKey","fontSizeSelectors","colorSelectors","alignmentSelectors","setUpFontSizeRadios","setUpColorRadios","setUpAlignmentRadios","_captionsMuted","alignmentRadiosLength","fontSizeRadiosLength","colorRadiosLength","enableRadioEvents","onColorChange","onAlignmentChange","onFontSizeChange","_step","_iterator","_createForOfIteratorHelper","radios","s","displayRadios","setCaptionsStyles","styles","_step2","_iterator2","resetState","CaptionsTogglePlugin","captionsButtons","_captionsButtons","captionsButtonClick","captionsButtonLength","displayButton","captionsToggleKey","captionsMuted","_setMuteProp","HelpPlugin","helpButtons","_helpButtons","helpButtonClick","paused","_helpEnabled","onPause","helpButtonsLength","helpEnabled","getAttribute","hints","PausePlugin","pauseButton","manageOwnVisibility","_manageOwnVisibility","_appBlurred","_containerBlurred","_focusTimer","_isManualPause","_keepFocus","_paused","focusApp","manageFocus","onKeepFocus","onPauseToggle","pauseDisabled","_pauseButton","pageVisibility","onContainerFocus","onContainerBlur","pauseKey","hasDom","focus","blur","blurApp","clearTimeout","pause","disablePause","buttons","SoundPlugin","soundButtons","musicButtons","sfxButtons","voButtons","soundSliders","musicSliders","sfxSliders","voSliders","saved","soundMutedKey","_soundMuted","_musicMuted","_voMuted","_sfxMuted","soundVolume","musicVolume","sfxVolume","voVolume","soundVolumeKey","newSlider","musicVolumeKey","sfxVolumeKey","voVolumeKey","onSoundToggle","soundKey","onMusicToggle","onSFXToggle","onVOToggle","soundSlidersLength","musicSlidersLength","sfxSlidersLength","voSlidersLength","soundButtonsLength","musicButtonsLength","sfxButtonsLength","voButtonsLength","enableSliderEvents","onSoundVolumeChange","onMusicVolumeChange","onSFXVolumeChange","onVOVolumeChange","soundMuted","_checkSoundMute","musicMuted","voMuted","sfxMuted","element","enableButton","musicMutedKey","sfxMutedKey","voMutedKey","setMuteProp","_soundButton","_musicButton","_sfxButton","_voButton","SavedDataHandler","savedData","record","IDBAdd","IDBUpdate","IDBRemove","IDBRead","IDBReadAll","IDBGetVersion","IDBClose","IDBDeleteDB","UserDataPlugin","onUserDataRemove","onUserDataRead","onUserDataWrite","onIDBAdd","onIDBOpen","onIDBRead","onIDBReadAll","onIDBRemove","onIDBUpdate","onIDBClose","onIDBGetVersion","onIDBDeleteDB","savedDataHandler","_ref3$data","_ref4","_this5","_ref4$data","_ref4$data$dbVersion","_ref4$data$additions","_ref4$data$deletions","_ref5","_this6","_ref5$data","_ref6","_this7","_ref6$data","_ref7","_this8","_ref7$data","_ref8","_this9","_ref8$data","_ref9","_this10","_ref9$data","_ref10","_this11","_ref11","_this12","_ref12","_this13","_ref12$data","PointerSizePlugin","_SliderPlugin","pointerSliders","_ref$defaultPointerSi","defaultPointerSize","pointerSizeKey","onPointerSizeChange","ButtonSizePlugin","buttonSliders","_ref$defaultButtonSiz","defaultButtonSize","buttonSizeKey","onButtonSizeChange","ControlSensitivityPlugin","sensitivitySliders","_ref$defaultSensitivi","defaultSensitivity","controlSensitivityKey","onControlSensitivityChange","KeyboardMapPlugin","keyContainers","_ref$customClassName","customClassName","bindKey","onKeyButtonClick","keyBindings","activekeyButton","sendAfterFetch","canEmit","keyContainersLength","textContent","actionName","preventDefault","currentKey","keyBindingKey","keyBinding","defaultKey","label","htmlFor","LayersPlugin","layersSliders","layersSliderKey","onLayerValueChange","SUPPORTED_POSITIONS","HUDPlugin","_RadioGroupPlugin","hudSelectorRadios","hudPositionKey","positions","onHUDSelect","hudPosition","COLOR_BLIND_TYPES","ColorVisionPlugin","colorVisionRadios","colorVisionKey","colors","colorVision","colorDropdownsLength","HitAreaScalePlugin","hitAreaScaleSliders","_ref$defaultHitAreaSc","defaultHitAreaScale","hitAreaScaleKey","onHitAreaScaleChange","DragThresholdScalePlugin","dragThresholdScaleSliders","_ref$defaultDragThres","defaultDragThresholdScale","dragThresholdScaleKey","onDragThresholdScaleChange","HealthPlugin","healthSliders","_ref$defaultHealth","defaultHealth","healthKey","onHealthChange","ObjectCountPlugin","objectCountSliders","_ref$defaultObjectCou","defaultObjectCount","objectCountKey","onObjectCountChange","CompletionPercentagePlugin","completionPercentageSliders","_ref$defaultCompletio","defaultCompletionPercentage","completionPercentageKey","onCompletionPercentageChange","SpeedScalePlugin","speedScaleSliders","_ref$defaultSpeedScal","defaultSpeedScale","speedScaleKey","onSpeedScaleChange","TimersScalePlugin","timersScaleSliders","_ref$defaultTimersSca","defaultTimersScale","timersScaleKey","onTimersScaleChange","InputCountPlugin","inputCountSliders","_ref$defaultInputCoun","defaultInputCount","inputCountKey","onInputCountChange","FullScreenPlugin","buttonSelector","fullscreenKey","_toggleButtons","iFrame","log","toggleButton","toggleFullScreen","fullscreenElement","exitFullscreen","requestFullscreen","webkitIsFullscreen","mozFullScreen"],"mappings":"gQAAA,IAAIA,EACqB,oBAAfC,YAA8BA,YACrB,oBAATC,MAAwBA,WACb,IAAXF,GAA0BA,EAEhCG,EAAU,CACZC,aAAc,oBAAqBJ,EACnCK,SAAU,WAAYL,GAAU,aAAcM,OAC9CC,KACE,eAAgBP,GAChB,SAAUA,GACT,WACC,IAEE,OADA,IAAIQ,MACG,CACR,CAAC,MAAOC,GACP,OAAO,CACT,CACF,CAPC,GAQHC,SAAU,aAAcV,EACxBW,YAAa,gBAAiBX,GAOhC,GAAIG,EAAQQ,YACV,IAAIC,EAAc,CAChB,qBACA,sBACA,6BACA,sBACA,uBACA,sBACA,uBACA,wBACA,yBAGEC,EACFC,YAAYC,QACZ,SAASC,GACP,OAAOA,GAAOJ,EAAYK,QAAQC,OAAOC,UAAUC,SAASC,KAAKL,KAAS,GAIhF,SAASM,EAAcC,GAIrB,GAHoB,iBAATA,IACTA,EAAOC,OAAOD,IAEZ,6BAA6BE,KAAKF,IAAkB,KAATA,EAC7C,MAAM,IAAIG,UAAU,4CAA8CH,EAAO,KAE3E,OAAOA,EAAKI,aACd,CAEA,SAASC,EAAeC,GAItB,MAHqB,iBAAVA,IACTA,EAAQL,OAAOK,IAEVA,CACT,CAGA,SAASC,EAAYC,GACnB,IAAIC,EAAW,CACbC,KAAM,WACJ,IAAIJ,EAAQE,EAAMG,QAClB,MAAO,CAACC,UAAgBC,IAAVP,EAAq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EC,OAnEDnD,GAAAqpB,EAAA,CAAA,CAAAlzC,IAAA,OAAAvI,MAGA,SAAA+0B,GAAiB,IAAV5a,EAAM4a,EAAN5a,OACLzZ,KAAKm7C,OAAS1hC,EAEdzZ,KAAKw0B,OAAOyC,GACV,WACA,SAASF,GACP,IAAK,IAAIxzB,EAAI,EAAGA,EAAIvD,KAAKu7C,kBAAmBh4C,IAC1CvD,KAAKk7C,eAAe33C,GAAGonC,cAAc5T,EAAOxZ,KAGhD,EAAE9Q,KAAKzM,MAEX,GACA,CAAA6H,IAAA,QAAAvI,MAGA,WACEU,KAAKw0B,OAAOyC,GAAG,SAAUj3B,KAAKo9B,mBAC9Bp9B,KAAKw0B,OAAOyC,GAAG,WAAYj3B,KAAKo9B,kBAClC,GAEA,CAAAv1B,IAAA,oBAAAvI,MAKA,WACEU,KAAKg+B,aAAa+c,EAAiBE,cAA6C,MAA9BzvC,SAAS+vC,kBAA4B,OAAS,QAClG,GAEA,CAAA1zC,IAAA,mBAAAvI,MAGA,WAAmB,IAAA88B,EAAAp8B,KACZwL,SAAS+vC,mBAOZ/vC,SAASgwC,iBACTx7C,KAAKo9B,qBAPLp9B,KAAKm7C,OAAOM,oBAAoBx4C,MAAK,WACnCm5B,EAAKgB,mBACP,IAAGvO,OAAM,SAACloB,GACRklB,QAAQuvB,IAAIz0C,EACd,GAKJ,GAEA,CAAAkB,IAAA,eAAAlF,IAIA,WACE,OAGK,IAHG6I,SAAS+vC,mBACf/vC,SAASkwC,oBACTlwC,SAASmwC,cAEb,IAEA,CAAA,CAAA9zC,IAAA,gBAAAlF,IAKA,WACE,MAAO,YACT,KAACo4C,CAAA,EAjHmCvd"} \ No newline at end of file +{"version":3,"file":"SpringRoll-Container-umd.js","sources":["../node_modules/whatwg-fetch/fetch.js","../node_modules/core-js/internals/global.js","../node_modules/core-js/internals/dom-iterables.js","../node_modules/core-js/internals/document-all.js","../node_modules/core-js/internals/is-callable.js","../node_modules/core-js/internals/is-object.js","../node_modules/core-js/internals/document-create-element.js","../node_modules/core-js/internals/dom-token-list-prototype.js","../node_modules/core-js/internals/fails.js","../node_modules/core-js/internals/function-bind-native.js","../node_modules/core-js/internals/function-uncurry-this.js","../node_modules/core-js/internals/classof-raw.js","../node_modules/core-js/internals/function-uncurry-this-clause.js","../node_modules/core-js/internals/try-to-string.js","../node_modules/core-js/internals/a-callable.js","../node_modules/core-js/internals/function-bind-context.js","../node_modules/core-js/internals/indexed-object.js","../node_modules/core-js/internals/is-null-or-undefined.js","../node_modules/core-js/internals/require-object-coercible.js","../node_modules/core-js/internals/to-object.js","../node_modules/core-js/internals/math-trunc.js","../node_modules/core-js/internals/to-integer-or-infinity.js","../node_modules/core-js/internals/to-length.js","../node_modules/core-js/internals/length-of-array-like.js","../node_modules/core-js/internals/is-array.js","../node_modules/core-js/internals/is-pure.js","../node_modules/core-js/internals/define-global-property.js","../node_modules/core-js/internals/shared-store.js","../node_modules/core-js/internals/shared.js","../node_modules/core-js/internals/has-own-property.js","../node_modules/core-js/internals/uid.js","../node_modules/core-js/internals/engine-user-agent.js","../node_modules/core-js/internals/engine-v8-version.js","../node_modules/core-js/internals/symbol-constructor-detection.js","../node_modules/core-js/internals/use-symbol-as-uid.js","../node_modules/core-js/internals/well-known-symbol.js","../node_modules/core-js/internals/to-string-tag-support.js","../node_modules/core-js/internals/classof.js","../node_modules/core-js/internals/get-built-in.js","../node_modules/core-js/internals/inspect-source.js","../node_modules/core-js/internals/is-constructor.js","../node_modules/core-js/internals/array-species-constructor.js","../node_modules/core-js/internals/array-species-create.js","../node_modules/core-js/internals/array-iteration.js","../node_modules/core-js/internals/array-method-is-strict.js","../node_modules/core-js/internals/array-for-each.js","../node_modules/core-js/internals/descriptors.js","../node_modules/core-js/internals/ie8-dom-define.js","../node_modules/core-js/internals/v8-prototype-define-bug.js","../node_modules/core-js/internals/an-object.js","../node_modules/core-js/internals/function-call.js","../node_modules/core-js/internals/object-is-prototype-of.js","../node_modules/core-js/internals/is-symbol.js","../node_modules/core-js/internals/get-method.js","../node_modules/core-js/internals/ordinary-to-primitive.js","../node_modules/core-js/internals/to-primitive.js","../node_modules/core-js/internals/to-property-key.js","../node_modules/core-js/internals/object-define-property.js","../node_modules/core-js/internals/create-property-descriptor.js","../node_modules/core-js/internals/create-non-enumerable-property.js","../node_modules/core-js/modules/web.dom-collections.for-each.js","../node_modules/core-js/internals/to-indexed-object.js","../node_modules/core-js/internals/to-absolute-index.js","../node_modules/core-js/internals/array-includes.js","../node_modules/core-js/internals/hidden-keys.js","../node_modules/core-js/internals/object-keys-internal.js","../node_modules/core-js/internals/enum-bug-keys.js","../node_modules/core-js/internals/object-keys.js","../node_modules/core-js/internals/object-define-properties.js","../node_modules/core-js/internals/html.js","../node_modules/core-js/internals/shared-key.js","../node_modules/core-js/internals/object-create.js","../node_modules/core-js/internals/add-to-unscopables.js","../node_modules/core-js/internals/iterators.js","../node_modules/core-js/internals/weak-map-basic-detection.js","../node_modules/core-js/internals/internal-state.js","../node_modules/core-js/internals/object-property-is-enumerable.js","../node_modules/core-js/internals/object-get-own-property-descriptor.js","../node_modules/core-js/internals/function-name.js","../node_modules/core-js/internals/make-built-in.js","../node_modules/core-js/internals/define-built-in.js","../node_modules/core-js/internals/object-get-own-property-names.js","../node_modules/core-js/internals/object-get-own-property-symbols.js","../node_modules/core-js/internals/own-keys.js","../node_modules/core-js/internals/copy-constructor-properties.js","../node_modules/core-js/internals/is-forced.js","../node_modules/core-js/internals/export.js","../node_modules/core-js/internals/correct-prototype-getter.js","../node_modules/core-js/internals/object-get-prototype-of.js","../node_modules/core-js/internals/iterators-core.js","../node_modules/core-js/internals/set-to-string-tag.js","../node_modules/core-js/internals/iterator-create-constructor.js","../node_modules/core-js/internals/function-uncurry-this-accessor.js","../node_modules/core-js/internals/a-possible-prototype.js","../node_modules/core-js/internals/object-set-prototype-of.js","../node_modules/core-js/internals/iterator-define.js","../node_modules/core-js/internals/create-iter-result-object.js","../node_modules/core-js/modules/es.array.iterator.js","../node_modules/core-js/modules/web.dom-collections.iterator.js","../node_modules/core-js/internals/path.js","../node_modules/core-js/modules/es.array.index-of.js","../node_modules/core-js/internals/does-not-exceed-safe-integer.js","../node_modules/core-js/internals/create-property.js","../node_modules/core-js/internals/array-method-has-species-support.js","../node_modules/core-js/modules/es.array.concat.js","../node_modules/core-js/internals/object-assign.js","../node_modules/core-js/modules/es.object.assign.js","../node_modules/core-js/internals/object-to-string.js","../node_modules/core-js/modules/es.object.to-string.js","../node_modules/core-js/internals/engine-is-node.js","../node_modules/core-js/internals/define-built-in-accessor.js","../node_modules/core-js/internals/set-species.js","../node_modules/core-js/internals/an-instance.js","../node_modules/core-js/internals/a-constructor.js","../node_modules/core-js/internals/species-constructor.js","../node_modules/core-js/internals/function-apply.js","../node_modules/core-js/internals/array-slice.js","../node_modules/core-js/internals/validate-arguments-length.js","../node_modules/core-js/internals/engine-is-ios.js","../node_modules/core-js/internals/task.js","../node_modules/core-js/internals/queue.js","../node_modules/core-js/internals/engine-is-ios-pebble.js","../node_modules/core-js/internals/engine-is-webos-webkit.js","../node_modules/core-js/internals/microtask.js","../node_modules/core-js/internals/host-report-errors.js","../node_modules/core-js/internals/perform.js","../node_modules/core-js/internals/promise-native-constructor.js","../node_modules/core-js/internals/engine-is-deno.js","../node_modules/core-js/internals/engine-is-browser.js","../node_modules/core-js/internals/promise-constructor-detection.js","../node_modules/core-js/internals/new-promise-capability.js","../node_modules/core-js/modules/es.promise.constructor.js","../node_modules/core-js/internals/is-array-iterator-method.js","../node_modules/core-js/internals/get-iterator-method.js","../node_modules/core-js/internals/get-iterator.js","../node_modules/core-js/internals/iterator-close.js","../node_modules/core-js/internals/iterate.js","../node_modules/core-js/internals/check-correctness-of-iteration.js","../node_modules/core-js/internals/promise-statics-incorrect-iteration.js","../node_modules/core-js/modules/es.promise.all.js","../node_modules/core-js/modules/es.promise.catch.js","../node_modules/core-js/modules/es.promise.race.js","../node_modules/core-js/modules/es.promise.reject.js","../node_modules/core-js/internals/promise-resolve.js","../node_modules/core-js/modules/es.promise.resolve.js","../node_modules/core-js/internals/to-string.js","../node_modules/core-js/internals/regexp-flags.js","../node_modules/core-js/internals/regexp-sticky-helpers.js","../node_modules/core-js/internals/regexp-unsupported-dot-all.js","../node_modules/core-js/internals/regexp-unsupported-ncg.js","../node_modules/core-js/internals/regexp-exec.js","../node_modules/core-js/modules/es.regexp.exec.js","../src/Features.js","../node_modules/core-js/internals/string-multibyte.js","../node_modules/core-js/modules/es.string.iterator.js","../node_modules/core-js/modules/es.array.filter.js","../node_modules/core-js/modules/es.array.find.js","../node_modules/bellhop-iframe/dist/bellhop.js","../src/PluginManager.js","../src/Container.js","../src/PageVisibility.js","../node_modules/core-js/modules/es.array.includes.js","../node_modules/core-js/internals/whitespaces.js","../node_modules/core-js/internals/string-trim.js","../node_modules/core-js/internals/string-trim-forced.js","../node_modules/core-js/modules/es.string.trim.js","../node_modules/core-js/internals/regexp-get-flags.js","../node_modules/core-js/modules/es.regexp.to-string.js","../src/SavedData.js","../src/base-plugins/BasePlugin.js","../src/base-plugins/ButtonPlugin.js","../node_modules/core-js/internals/is-regexp.js","../node_modules/core-js/internals/not-a-regexp.js","../node_modules/core-js/internals/correct-is-regexp-logic.js","../node_modules/core-js/modules/es.string.includes.js","../node_modules/core-js/internals/array-slice-simple.js","../node_modules/core-js/internals/object-get-own-property-names-external.js","../node_modules/core-js/internals/array-buffer-non-extensible.js","../node_modules/core-js/internals/object-is-extensible.js","../node_modules/core-js/internals/freezing.js","../node_modules/core-js/internals/internal-metadata.js","../node_modules/core-js/internals/inherit-if-required.js","../node_modules/core-js/internals/collection.js","../node_modules/core-js/internals/define-built-ins.js","../node_modules/core-js/internals/collection-strong.js","../node_modules/core-js/modules/es.set.constructor.js","../node_modules/core-js/modules/es.object.keys.js","../node_modules/core-js/modules/es.array.map.js","../node_modules/core-js/internals/object-to-array.js","../node_modules/core-js/modules/es.object.values.js","../src/ui-elements/RadioGroup.js","../src/base-plugins/RadioGroupPlugin.js","../node_modules/core-js/internals/this-number-value.js","../node_modules/core-js/modules/es.number.constructor.js","../src/ui-elements/Slider.js","../src/ui-elements/Button.js","../src/base-plugins/SliderPlugin.js","../src/plugins/CaptionsStylePlugin.js","../src/plugins/CaptionsTogglePlugin.js","../src/plugins/HelpPlugin.js","../src/plugins/PausePlugin.js","../src/plugins/SoundPlugin.js","../src/SavedDataHandler.js","../src/plugins/UserDataPlugin.js","../src/plugins/PointerSizePlugin.js","../src/plugins/ButtonSizePlugin.js","../src/plugins/ControlSensitivityPlugin.js","../src/plugins/KeyboardMapPlugin.js","../src/plugins/LayersPlugin.js","../src/plugins/HUDPlugin.js","../src/plugins/ColorVisionPlugin.js","../src/plugins/HitAreaScalePlugin.js","../src/plugins/DragThresholdScalePlugin.js","../src/plugins/HealthPlugin.js","../src/plugins/ObjectCountPlugin.js","../src/plugins/CompletionPercentagePlugin.js","../src/plugins/SpeedScalePlugin.js","../src/plugins/TimersScalePlugin.js","../src/plugins/InputCountPlugin.js","../src/plugins/FullScreenPlugin.js"],"sourcesContent":["var global =\n (typeof globalThis !== 'undefined' && globalThis) ||\n (typeof self !== 'undefined' && self) ||\n (typeof global !== 'undefined' && global)\n\nvar support = {\n searchParams: 'URLSearchParams' in global,\n iterable: 'Symbol' in global && 'iterator' in Symbol,\n blob:\n 'FileReader' in global &&\n 'Blob' in global &&\n (function() {\n try {\n new Blob()\n return true\n } catch (e) {\n return false\n }\n })(),\n formData: 'FormData' in global,\n arrayBuffer: 'ArrayBuffer' in global\n}\n\nfunction isDataView(obj) {\n return obj && DataView.prototype.isPrototypeOf(obj)\n}\n\nif (support.arrayBuffer) {\n var viewClasses = [\n '[object Int8Array]',\n '[object Uint8Array]',\n '[object Uint8ClampedArray]',\n '[object Int16Array]',\n '[object Uint16Array]',\n '[object Int32Array]',\n '[object Uint32Array]',\n '[object Float32Array]',\n '[object Float64Array]'\n ]\n\n var isArrayBufferView =\n ArrayBuffer.isView ||\n function(obj) {\n return obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1\n }\n}\n\nfunction normalizeName(name) {\n if (typeof name !== 'string') {\n name = String(name)\n }\n if (/[^a-z0-9\\-#$%&'*+.^_`|~!]/i.test(name) || name === '') {\n throw new TypeError('Invalid character in header field name: \"' + name + '\"')\n }\n return name.toLowerCase()\n}\n\nfunction normalizeValue(value) {\n if (typeof value !== 'string') {\n value = String(value)\n }\n return value\n}\n\n// Build a destructive iterator for the value list\nfunction iteratorFor(items) {\n var iterator = {\n next: function() {\n var value = items.shift()\n return {done: value === undefined, value: value}\n }\n }\n\n if (support.iterable) {\n iterator[Symbol.iterator] = function() {\n return iterator\n }\n }\n\n return iterator\n}\n\nexport function Headers(headers) {\n this.map = {}\n\n if (headers instanceof Headers) {\n headers.forEach(function(value, name) {\n this.append(name, value)\n }, this)\n } else if (Array.isArray(headers)) {\n headers.forEach(function(header) {\n this.append(header[0], header[1])\n }, this)\n } else if (headers) {\n Object.getOwnPropertyNames(headers).forEach(function(name) {\n this.append(name, headers[name])\n }, this)\n }\n}\n\nHeaders.prototype.append = function(name, value) {\n name = normalizeName(name)\n value = normalizeValue(value)\n var oldValue = this.map[name]\n this.map[name] = oldValue ? oldValue + ', ' + value : value\n}\n\nHeaders.prototype['delete'] = function(name) {\n delete this.map[normalizeName(name)]\n}\n\nHeaders.prototype.get = function(name) {\n name = normalizeName(name)\n return this.has(name) ? this.map[name] : null\n}\n\nHeaders.prototype.has = function(name) {\n return this.map.hasOwnProperty(normalizeName(name))\n}\n\nHeaders.prototype.set = function(name, value) {\n this.map[normalizeName(name)] = normalizeValue(value)\n}\n\nHeaders.prototype.forEach = function(callback, thisArg) {\n for (var name in this.map) {\n if (this.map.hasOwnProperty(name)) {\n callback.call(thisArg, this.map[name], name, this)\n }\n }\n}\n\nHeaders.prototype.keys = function() {\n var items = []\n this.forEach(function(value, name) {\n items.push(name)\n })\n return iteratorFor(items)\n}\n\nHeaders.prototype.values = function() {\n var items = []\n this.forEach(function(value) {\n items.push(value)\n })\n return iteratorFor(items)\n}\n\nHeaders.prototype.entries = function() {\n var items = []\n this.forEach(function(value, name) {\n items.push([name, value])\n })\n return iteratorFor(items)\n}\n\nif (support.iterable) {\n Headers.prototype[Symbol.iterator] = Headers.prototype.entries\n}\n\nfunction consumed(body) {\n if (body.bodyUsed) {\n return Promise.reject(new TypeError('Already read'))\n }\n body.bodyUsed = true\n}\n\nfunction fileReaderReady(reader) {\n return new Promise(function(resolve, reject) {\n reader.onload = function() {\n resolve(reader.result)\n }\n reader.onerror = function() {\n reject(reader.error)\n }\n })\n}\n\nfunction readBlobAsArrayBuffer(blob) {\n var reader = new FileReader()\n var promise = fileReaderReady(reader)\n reader.readAsArrayBuffer(blob)\n return promise\n}\n\nfunction readBlobAsText(blob) {\n var reader = new FileReader()\n var promise = fileReaderReady(reader)\n reader.readAsText(blob)\n return promise\n}\n\nfunction readArrayBufferAsText(buf) {\n var view = new Uint8Array(buf)\n var chars = new Array(view.length)\n\n for (var i = 0; i < view.length; i++) {\n chars[i] = String.fromCharCode(view[i])\n }\n return chars.join('')\n}\n\nfunction bufferClone(buf) {\n if (buf.slice) {\n return buf.slice(0)\n } else {\n var view = new Uint8Array(buf.byteLength)\n view.set(new Uint8Array(buf))\n return view.buffer\n }\n}\n\nfunction Body() {\n this.bodyUsed = false\n\n this._initBody = function(body) {\n /*\n fetch-mock wraps the Response object in an ES6 Proxy to\n provide useful test harness features such as flush. However, on\n ES5 browsers without fetch or Proxy support pollyfills must be used;\n the proxy-pollyfill is unable to proxy an attribute unless it exists\n on the object before the Proxy is created. This change ensures\n Response.bodyUsed exists on the instance, while maintaining the\n semantic of setting Request.bodyUsed in the constructor before\n _initBody is called.\n */\n this.bodyUsed = this.bodyUsed\n this._bodyInit = body\n if (!body) {\n this._bodyText = ''\n } else if (typeof body === 'string') {\n this._bodyText = body\n } else if (support.blob && Blob.prototype.isPrototypeOf(body)) {\n this._bodyBlob = body\n } else if (support.formData && FormData.prototype.isPrototypeOf(body)) {\n this._bodyFormData = body\n } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {\n this._bodyText = body.toString()\n } else if (support.arrayBuffer && support.blob && isDataView(body)) {\n this._bodyArrayBuffer = bufferClone(body.buffer)\n // IE 10-11 can't handle a DataView body.\n this._bodyInit = new Blob([this._bodyArrayBuffer])\n } else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) {\n this._bodyArrayBuffer = bufferClone(body)\n } else {\n this._bodyText = body = Object.prototype.toString.call(body)\n }\n\n if (!this.headers.get('content-type')) {\n if (typeof body === 'string') {\n this.headers.set('content-type', 'text/plain;charset=UTF-8')\n } else if (this._bodyBlob && this._bodyBlob.type) {\n this.headers.set('content-type', this._bodyBlob.type)\n } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {\n this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8')\n }\n }\n }\n\n if (support.blob) {\n this.blob = function() {\n var rejected = consumed(this)\n if (rejected) {\n return rejected\n }\n\n if (this._bodyBlob) {\n return Promise.resolve(this._bodyBlob)\n } else if (this._bodyArrayBuffer) {\n return Promise.resolve(new Blob([this._bodyArrayBuffer]))\n } else if (this._bodyFormData) {\n throw new Error('could not read FormData body as blob')\n } else {\n return Promise.resolve(new Blob([this._bodyText]))\n }\n }\n\n this.arrayBuffer = function() {\n if (this._bodyArrayBuffer) {\n var isConsumed = consumed(this)\n if (isConsumed) {\n return isConsumed\n }\n if (ArrayBuffer.isView(this._bodyArrayBuffer)) {\n return Promise.resolve(\n this._bodyArrayBuffer.buffer.slice(\n this._bodyArrayBuffer.byteOffset,\n this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength\n )\n )\n } else {\n return Promise.resolve(this._bodyArrayBuffer)\n }\n } else {\n return this.blob().then(readBlobAsArrayBuffer)\n }\n }\n }\n\n this.text = function() {\n var rejected = consumed(this)\n if (rejected) {\n return rejected\n }\n\n if (this._bodyBlob) {\n return readBlobAsText(this._bodyBlob)\n } else if (this._bodyArrayBuffer) {\n return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer))\n } else if (this._bodyFormData) {\n throw new Error('could not read FormData body as text')\n } else {\n return Promise.resolve(this._bodyText)\n }\n }\n\n if (support.formData) {\n this.formData = function() {\n return this.text().then(decode)\n }\n }\n\n this.json = function() {\n return this.text().then(JSON.parse)\n }\n\n return this\n}\n\n// HTTP methods whose capitalization should be normalized\nvar methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT']\n\nfunction normalizeMethod(method) {\n var upcased = method.toUpperCase()\n return methods.indexOf(upcased) > -1 ? upcased : method\n}\n\nexport function Request(input, options) {\n if (!(this instanceof Request)) {\n throw new TypeError('Please use the \"new\" operator, this DOM object constructor cannot be called as a function.')\n }\n\n options = options || {}\n var body = options.body\n\n if (input instanceof Request) {\n if (input.bodyUsed) {\n throw new TypeError('Already read')\n }\n this.url = input.url\n this.credentials = input.credentials\n if (!options.headers) {\n this.headers = new Headers(input.headers)\n }\n this.method = input.method\n this.mode = input.mode\n this.signal = input.signal\n if (!body && input._bodyInit != null) {\n body = input._bodyInit\n input.bodyUsed = true\n }\n } else {\n this.url = String(input)\n }\n\n this.credentials = options.credentials || this.credentials || 'same-origin'\n if (options.headers || !this.headers) {\n this.headers = new Headers(options.headers)\n }\n this.method = normalizeMethod(options.method || this.method || 'GET')\n this.mode = options.mode || this.mode || null\n this.signal = options.signal || this.signal\n this.referrer = null\n\n if ((this.method === 'GET' || this.method === 'HEAD') && body) {\n throw new TypeError('Body not allowed for GET or HEAD requests')\n }\n this._initBody(body)\n\n if (this.method === 'GET' || this.method === 'HEAD') {\n if (options.cache === 'no-store' || options.cache === 'no-cache') {\n // Search for a '_' parameter in the query string\n var reParamSearch = /([?&])_=[^&]*/\n if (reParamSearch.test(this.url)) {\n // If it already exists then set the value with the current time\n this.url = this.url.replace(reParamSearch, '$1_=' + new Date().getTime())\n } else {\n // Otherwise add a new '_' parameter to the end with the current time\n var reQueryString = /\\?/\n this.url += (reQueryString.test(this.url) ? '&' : '?') + '_=' + new Date().getTime()\n }\n }\n }\n}\n\nRequest.prototype.clone = function() {\n return new Request(this, {body: this._bodyInit})\n}\n\nfunction decode(body) {\n var form = new FormData()\n body\n .trim()\n .split('&')\n .forEach(function(bytes) {\n if (bytes) {\n var split = bytes.split('=')\n var name = split.shift().replace(/\\+/g, ' ')\n var value = split.join('=').replace(/\\+/g, ' ')\n form.append(decodeURIComponent(name), decodeURIComponent(value))\n }\n })\n return form\n}\n\nfunction parseHeaders(rawHeaders) {\n var headers = new Headers()\n // Replace instances of \\r\\n and \\n followed by at least one space or horizontal tab with a space\n // https://tools.ietf.org/html/rfc7230#section-3.2\n var preProcessedHeaders = rawHeaders.replace(/\\r?\\n[\\t ]+/g, ' ')\n // Avoiding split via regex to work around a common IE11 bug with the core-js 3.6.0 regex polyfill\n // https://github.com/github/fetch/issues/748\n // https://github.com/zloirock/core-js/issues/751\n preProcessedHeaders\n .split('\\r')\n .map(function(header) {\n return header.indexOf('\\n') === 0 ? header.substr(1, header.length) : header\n })\n .forEach(function(line) {\n var parts = line.split(':')\n var key = parts.shift().trim()\n if (key) {\n var value = parts.join(':').trim()\n headers.append(key, value)\n }\n })\n return headers\n}\n\nBody.call(Request.prototype)\n\nexport function Response(bodyInit, options) {\n if (!(this instanceof Response)) {\n throw new TypeError('Please use the \"new\" operator, this DOM object constructor cannot be called as a function.')\n }\n if (!options) {\n options = {}\n }\n\n this.type = 'default'\n this.status = options.status === undefined ? 200 : options.status\n this.ok = this.status >= 200 && this.status < 300\n this.statusText = options.statusText === undefined ? '' : '' + options.statusText\n this.headers = new Headers(options.headers)\n this.url = options.url || ''\n this._initBody(bodyInit)\n}\n\nBody.call(Response.prototype)\n\nResponse.prototype.clone = function() {\n return new Response(this._bodyInit, {\n status: this.status,\n statusText: this.statusText,\n headers: new Headers(this.headers),\n url: this.url\n })\n}\n\nResponse.error = function() {\n var response = new Response(null, {status: 0, statusText: ''})\n response.type = 'error'\n return response\n}\n\nvar redirectStatuses = [301, 302, 303, 307, 308]\n\nResponse.redirect = function(url, status) {\n if (redirectStatuses.indexOf(status) === -1) {\n throw new RangeError('Invalid status code')\n }\n\n return new Response(null, {status: status, headers: {location: url}})\n}\n\nexport var DOMException = global.DOMException\ntry {\n new DOMException()\n} catch (err) {\n DOMException = function(message, name) {\n this.message = message\n this.name = name\n var error = Error(message)\n this.stack = error.stack\n }\n DOMException.prototype = Object.create(Error.prototype)\n DOMException.prototype.constructor = DOMException\n}\n\nexport function fetch(input, init) {\n return new Promise(function(resolve, reject) {\n var request = new Request(input, init)\n\n if (request.signal && request.signal.aborted) {\n return reject(new DOMException('Aborted', 'AbortError'))\n }\n\n var xhr = new XMLHttpRequest()\n\n function abortXhr() {\n xhr.abort()\n }\n\n xhr.onload = function() {\n var options = {\n status: xhr.status,\n statusText: xhr.statusText,\n headers: parseHeaders(xhr.getAllResponseHeaders() || '')\n }\n options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL')\n var body = 'response' in xhr ? xhr.response : xhr.responseText\n setTimeout(function() {\n resolve(new Response(body, options))\n }, 0)\n }\n\n xhr.onerror = function() {\n setTimeout(function() {\n reject(new TypeError('Network request failed'))\n }, 0)\n }\n\n xhr.ontimeout = function() {\n setTimeout(function() {\n reject(new TypeError('Network request failed'))\n }, 0)\n }\n\n xhr.onabort = function() {\n setTimeout(function() {\n reject(new DOMException('Aborted', 'AbortError'))\n }, 0)\n }\n\n function fixUrl(url) {\n try {\n return url === '' && global.location.href ? global.location.href : url\n } catch (e) {\n return url\n }\n }\n\n xhr.open(request.method, fixUrl(request.url), true)\n\n if (request.credentials === 'include') {\n xhr.withCredentials = true\n } else if (request.credentials === 'omit') {\n xhr.withCredentials = false\n }\n\n if ('responseType' in xhr) {\n if (support.blob) {\n xhr.responseType = 'blob'\n } else if (\n support.arrayBuffer &&\n request.headers.get('Content-Type') &&\n request.headers.get('Content-Type').indexOf('application/octet-stream') !== -1\n ) {\n xhr.responseType = 'arraybuffer'\n }\n }\n\n if (init && typeof init.headers === 'object' && !(init.headers instanceof Headers)) {\n Object.getOwnPropertyNames(init.headers).forEach(function(name) {\n xhr.setRequestHeader(name, normalizeValue(init.headers[name]))\n })\n } else {\n request.headers.forEach(function(value, name) {\n xhr.setRequestHeader(name, value)\n })\n }\n\n if (request.signal) {\n request.signal.addEventListener('abort', abortXhr)\n\n xhr.onreadystatechange = function() {\n // DONE (success or failure)\n if (xhr.readyState === 4) {\n request.signal.removeEventListener('abort', abortXhr)\n }\n }\n }\n\n xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit)\n })\n}\n\nfetch.polyfill = true\n\nif (!global.fetch) {\n global.fetch = fetch\n global.Headers = Headers\n global.Request = Request\n global.Response = Response\n}\n","var check = function (it) {\n return it && it.Math == Math && it;\n};\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nmodule.exports =\n // eslint-disable-next-line es/no-global-this -- safe\n check(typeof globalThis == 'object' && globalThis) ||\n check(typeof window == 'object' && window) ||\n // eslint-disable-next-line no-restricted-globals -- safe\n check(typeof self == 'object' && self) ||\n check(typeof global == 'object' && global) ||\n // eslint-disable-next-line no-new-func -- fallback\n (function () { return this; })() || Function('return this')();\n","// iterable DOM collections\n// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods\nmodule.exports = {\n CSSRuleList: 0,\n CSSStyleDeclaration: 0,\n CSSValueList: 0,\n ClientRectList: 0,\n DOMRectList: 0,\n DOMStringList: 0,\n DOMTokenList: 1,\n DataTransferItemList: 0,\n FileList: 0,\n HTMLAllCollection: 0,\n HTMLCollection: 0,\n HTMLFormElement: 0,\n HTMLSelectElement: 0,\n MediaList: 0,\n MimeTypeArray: 0,\n NamedNodeMap: 0,\n NodeList: 1,\n PaintRequestList: 0,\n Plugin: 0,\n PluginArray: 0,\n SVGLengthList: 0,\n SVGNumberList: 0,\n SVGPathSegList: 0,\n SVGPointList: 0,\n SVGStringList: 0,\n SVGTransformList: 0,\n SourceBufferList: 0,\n StyleSheetList: 0,\n TextTrackCueList: 0,\n TextTrackList: 0,\n TouchList: 0\n};\n","var documentAll = typeof document == 'object' && document.all;\n\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot\n// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing\nvar IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;\n\nmodule.exports = {\n all: documentAll,\n IS_HTMLDDA: IS_HTMLDDA\n};\n","var $documentAll = require('../internals/document-all');\n\nvar documentAll = $documentAll.all;\n\n// `IsCallable` abstract operation\n// https://tc39.es/ecma262/#sec-iscallable\nmodule.exports = $documentAll.IS_HTMLDDA ? function (argument) {\n return typeof argument == 'function' || argument === documentAll;\n} : function (argument) {\n return typeof argument == 'function';\n};\n","var isCallable = require('../internals/is-callable');\nvar $documentAll = require('../internals/document-all');\n\nvar documentAll = $documentAll.all;\n\nmodule.exports = $documentAll.IS_HTMLDDA ? function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll;\n} : function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it);\n};\n","var global = require('../internals/global');\nvar isObject = require('../internals/is-object');\n\nvar document = global.document;\n// typeof document.createElement is 'object' in old IE\nvar EXISTS = isObject(document) && isObject(document.createElement);\n\nmodule.exports = function (it) {\n return EXISTS ? document.createElement(it) : {};\n};\n","// in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`\nvar documentCreateElement = require('../internals/document-create-element');\n\nvar classList = documentCreateElement('span').classList;\nvar DOMTokenListPrototype = classList && classList.constructor && classList.constructor.prototype;\n\nmodule.exports = DOMTokenListPrototype === Object.prototype ? undefined : DOMTokenListPrototype;\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (error) {\n return true;\n }\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-function-prototype-bind -- safe\n var test = (function () { /* empty */ }).bind();\n // eslint-disable-next-line no-prototype-builtins -- safe\n return typeof test != 'function' || test.hasOwnProperty('prototype');\n});\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar call = FunctionPrototype.call;\nvar uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);\n\nmodule.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {\n return function () {\n return call.apply(fn, arguments);\n };\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar toString = uncurryThis({}.toString);\nvar stringSlice = uncurryThis(''.slice);\n\nmodule.exports = function (it) {\n return stringSlice(toString(it), 8, -1);\n};\n","var classofRaw = require('../internals/classof-raw');\nvar uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = function (fn) {\n // Nashorn bug:\n // https://github.com/zloirock/core-js/issues/1128\n // https://github.com/zloirock/core-js/issues/1130\n if (classofRaw(fn) === 'Function') return uncurryThis(fn);\n};\n","var $String = String;\n\nmodule.exports = function (argument) {\n try {\n return $String(argument);\n } catch (error) {\n return 'Object';\n }\n};\n","var isCallable = require('../internals/is-callable');\nvar tryToString = require('../internals/try-to-string');\n\nvar $TypeError = TypeError;\n\n// `Assert: IsCallable(argument) is true`\nmodule.exports = function (argument) {\n if (isCallable(argument)) return argument;\n throw $TypeError(tryToString(argument) + ' is not a function');\n};\n","var uncurryThis = require('../internals/function-uncurry-this-clause');\nvar aCallable = require('../internals/a-callable');\nvar NATIVE_BIND = require('../internals/function-bind-native');\n\nvar bind = uncurryThis(uncurryThis.bind);\n\n// optional / simple context binding\nmodule.exports = function (fn, that) {\n aCallable(fn);\n return that === undefined ? fn : NATIVE_BIND ? bind(fn, that) : function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar classof = require('../internals/classof-raw');\n\nvar $Object = Object;\nvar split = uncurryThis(''.split);\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nmodule.exports = fails(function () {\n // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n // eslint-disable-next-line no-prototype-builtins -- safe\n return !$Object('z').propertyIsEnumerable(0);\n}) ? function (it) {\n return classof(it) == 'String' ? split(it, '') : $Object(it);\n} : $Object;\n","// we can't use just `it == null` since of `document.all` special case\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec\nmodule.exports = function (it) {\n return it === null || it === undefined;\n};\n","var isNullOrUndefined = require('../internals/is-null-or-undefined');\n\nvar $TypeError = TypeError;\n\n// `RequireObjectCoercible` abstract operation\n// https://tc39.es/ecma262/#sec-requireobjectcoercible\nmodule.exports = function (it) {\n if (isNullOrUndefined(it)) throw $TypeError(\"Can't call method on \" + it);\n return it;\n};\n","var requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar $Object = Object;\n\n// `ToObject` abstract operation\n// https://tc39.es/ecma262/#sec-toobject\nmodule.exports = function (argument) {\n return $Object(requireObjectCoercible(argument));\n};\n","var ceil = Math.ceil;\nvar floor = Math.floor;\n\n// `Math.trunc` method\n// https://tc39.es/ecma262/#sec-math.trunc\n// eslint-disable-next-line es/no-math-trunc -- safe\nmodule.exports = Math.trunc || function trunc(x) {\n var n = +x;\n return (n > 0 ? floor : ceil)(n);\n};\n","var trunc = require('../internals/math-trunc');\n\n// `ToIntegerOrInfinity` abstract operation\n// https://tc39.es/ecma262/#sec-tointegerorinfinity\nmodule.exports = function (argument) {\n var number = +argument;\n // eslint-disable-next-line no-self-compare -- NaN check\n return number !== number || number === 0 ? 0 : trunc(number);\n};\n","var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar min = Math.min;\n\n// `ToLength` abstract operation\n// https://tc39.es/ecma262/#sec-tolength\nmodule.exports = function (argument) {\n return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991\n};\n","var toLength = require('../internals/to-length');\n\n// `LengthOfArrayLike` abstract operation\n// https://tc39.es/ecma262/#sec-lengthofarraylike\nmodule.exports = function (obj) {\n return toLength(obj.length);\n};\n","var classof = require('../internals/classof-raw');\n\n// `IsArray` abstract operation\n// https://tc39.es/ecma262/#sec-isarray\n// eslint-disable-next-line es/no-array-isarray -- safe\nmodule.exports = Array.isArray || function isArray(argument) {\n return classof(argument) == 'Array';\n};\n","module.exports = false;\n","var global = require('../internals/global');\n\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\n\nmodule.exports = function (key, value) {\n try {\n defineProperty(global, key, { value: value, configurable: true, writable: true });\n } catch (error) {\n global[key] = value;\n } return value;\n};\n","var global = require('../internals/global');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || defineGlobalProperty(SHARED, {});\n\nmodule.exports = store;\n","var IS_PURE = require('../internals/is-pure');\nvar store = require('../internals/shared-store');\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.28.0',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',\n license: 'https://github.com/zloirock/core-js/blob/v3.28.0/LICENSE',\n source: 'https://github.com/zloirock/core-js'\n});\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar toObject = require('../internals/to-object');\n\nvar hasOwnProperty = uncurryThis({}.hasOwnProperty);\n\n// `HasOwnProperty` abstract operation\n// https://tc39.es/ecma262/#sec-hasownproperty\n// eslint-disable-next-line es/no-object-hasown -- safe\nmodule.exports = Object.hasOwn || function hasOwn(it, key) {\n return hasOwnProperty(toObject(it), key);\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar id = 0;\nvar postfix = Math.random();\nvar toString = uncurryThis(1.0.toString);\n\nmodule.exports = function (key) {\n return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);\n};\n","module.exports = typeof navigator != 'undefined' && String(navigator.userAgent) || '';\n","var global = require('../internals/global');\nvar userAgent = require('../internals/engine-user-agent');\n\nvar process = global.process;\nvar Deno = global.Deno;\nvar versions = process && process.versions || Deno && Deno.version;\nvar v8 = versions && versions.v8;\nvar match, version;\n\nif (v8) {\n match = v8.split('.');\n // in old Chrome, versions of V8 isn't V8 = Chrome / 10\n // but their correct versions are not interesting for us\n version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);\n}\n\n// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`\n// so check `userAgent` even if `.v8` exists, but 0\nif (!version && userAgent) {\n match = userAgent.match(/Edge\\/(\\d+)/);\n if (!match || match[1] >= 74) {\n match = userAgent.match(/Chrome\\/(\\d+)/);\n if (match) version = +match[1];\n }\n}\n\nmodule.exports = version;\n","/* eslint-disable es/no-symbol -- required for testing */\nvar V8_VERSION = require('../internals/engine-v8-version');\nvar fails = require('../internals/fails');\n\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing\nmodule.exports = !!Object.getOwnPropertySymbols && !fails(function () {\n var symbol = Symbol();\n // Chrome 38 Symbol has incorrect toString conversion\n // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances\n return !String(symbol) || !(Object(symbol) instanceof Symbol) ||\n // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances\n !Symbol.sham && V8_VERSION && V8_VERSION < 41;\n});\n","/* eslint-disable es/no-symbol -- required for testing */\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\n\nmodule.exports = NATIVE_SYMBOL\n && !Symbol.sham\n && typeof Symbol.iterator == 'symbol';\n","var global = require('../internals/global');\nvar shared = require('../internals/shared');\nvar hasOwn = require('../internals/has-own-property');\nvar uid = require('../internals/uid');\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar Symbol = global.Symbol;\nvar WellKnownSymbolsStore = shared('wks');\nvar createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid;\n\nmodule.exports = function (name) {\n if (!hasOwn(WellKnownSymbolsStore, name)) {\n WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name)\n ? Symbol[name]\n : createWellKnownSymbol('Symbol.' + name);\n } return WellKnownSymbolsStore[name];\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar test = {};\n\ntest[TO_STRING_TAG] = 'z';\n\nmodule.exports = String(test) === '[object z]';\n","var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar isCallable = require('../internals/is-callable');\nvar classofRaw = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar $Object = Object;\n\n// ES3 wrong here\nvar CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (error) { /* empty */ }\n};\n\n// getting tag from ES6+ `Object.prototype.toString`\nmodule.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {\n var O, tag, result;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag\n // builtinTag case\n : CORRECT_ARGUMENTS ? classofRaw(O)\n // ES3 arguments fallback\n : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;\n};\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar aFunction = function (argument) {\n return isCallable(argument) ? argument : undefined;\n};\n\nmodule.exports = function (namespace, method) {\n return arguments.length < 2 ? aFunction(global[namespace]) : global[namespace] && global[namespace][method];\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar isCallable = require('../internals/is-callable');\nvar store = require('../internals/shared-store');\n\nvar functionToString = uncurryThis(Function.toString);\n\n// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper\nif (!isCallable(store.inspectSource)) {\n store.inspectSource = function (it) {\n return functionToString(it);\n };\n}\n\nmodule.exports = store.inspectSource;\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar classof = require('../internals/classof');\nvar getBuiltIn = require('../internals/get-built-in');\nvar inspectSource = require('../internals/inspect-source');\n\nvar noop = function () { /* empty */ };\nvar empty = [];\nvar construct = getBuiltIn('Reflect', 'construct');\nvar constructorRegExp = /^\\s*(?:class|function)\\b/;\nvar exec = uncurryThis(constructorRegExp.exec);\nvar INCORRECT_TO_STRING = !constructorRegExp.exec(noop);\n\nvar isConstructorModern = function isConstructor(argument) {\n if (!isCallable(argument)) return false;\n try {\n construct(noop, empty, argument);\n return true;\n } catch (error) {\n return false;\n }\n};\n\nvar isConstructorLegacy = function isConstructor(argument) {\n if (!isCallable(argument)) return false;\n switch (classof(argument)) {\n case 'AsyncFunction':\n case 'GeneratorFunction':\n case 'AsyncGeneratorFunction': return false;\n }\n try {\n // we can't check .prototype since constructors produced by .bind haven't it\n // `Function#toString` throws on some built-it function in some legacy engines\n // (for example, `DOMQuad` and similar in FF41-)\n return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));\n } catch (error) {\n return true;\n }\n};\n\nisConstructorLegacy.sham = true;\n\n// `IsConstructor` abstract operation\n// https://tc39.es/ecma262/#sec-isconstructor\nmodule.exports = !construct || fails(function () {\n var called;\n return isConstructorModern(isConstructorModern.call)\n || !isConstructorModern(Object)\n || !isConstructorModern(function () { called = true; })\n || called;\n}) ? isConstructorLegacy : isConstructorModern;\n","var isArray = require('../internals/is-array');\nvar isConstructor = require('../internals/is-constructor');\nvar isObject = require('../internals/is-object');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar SPECIES = wellKnownSymbol('species');\nvar $Array = Array;\n\n// a part of `ArraySpeciesCreate` abstract operation\n// https://tc39.es/ecma262/#sec-arrayspeciescreate\nmodule.exports = function (originalArray) {\n var C;\n if (isArray(originalArray)) {\n C = originalArray.constructor;\n // cross-realm fallback\n if (isConstructor(C) && (C === $Array || isArray(C.prototype))) C = undefined;\n else if (isObject(C)) {\n C = C[SPECIES];\n if (C === null) C = undefined;\n }\n } return C === undefined ? $Array : C;\n};\n","var arraySpeciesConstructor = require('../internals/array-species-constructor');\n\n// `ArraySpeciesCreate` abstract operation\n// https://tc39.es/ecma262/#sec-arrayspeciescreate\nmodule.exports = function (originalArray, length) {\n return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);\n};\n","var bind = require('../internals/function-bind-context');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar IndexedObject = require('../internals/indexed-object');\nvar toObject = require('../internals/to-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar arraySpeciesCreate = require('../internals/array-species-create');\n\nvar push = uncurryThis([].push);\n\n// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation\nvar createMethod = function (TYPE) {\n var IS_MAP = TYPE == 1;\n var IS_FILTER = TYPE == 2;\n var IS_SOME = TYPE == 3;\n var IS_EVERY = TYPE == 4;\n var IS_FIND_INDEX = TYPE == 6;\n var IS_FILTER_REJECT = TYPE == 7;\n var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;\n return function ($this, callbackfn, that, specificCreate) {\n var O = toObject($this);\n var self = IndexedObject(O);\n var boundFunction = bind(callbackfn, that);\n var length = lengthOfArrayLike(self);\n var index = 0;\n var create = specificCreate || arraySpeciesCreate;\n var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;\n var value, result;\n for (;length > index; index++) if (NO_HOLES || index in self) {\n value = self[index];\n result = boundFunction(value, index, O);\n if (TYPE) {\n if (IS_MAP) target[index] = result; // map\n else if (result) switch (TYPE) {\n case 3: return true; // some\n case 5: return value; // find\n case 6: return index; // findIndex\n case 2: push(target, value); // filter\n } else switch (TYPE) {\n case 4: return false; // every\n case 7: push(target, value); // filterReject\n }\n }\n }\n return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.forEach` method\n // https://tc39.es/ecma262/#sec-array.prototype.foreach\n forEach: createMethod(0),\n // `Array.prototype.map` method\n // https://tc39.es/ecma262/#sec-array.prototype.map\n map: createMethod(1),\n // `Array.prototype.filter` method\n // https://tc39.es/ecma262/#sec-array.prototype.filter\n filter: createMethod(2),\n // `Array.prototype.some` method\n // https://tc39.es/ecma262/#sec-array.prototype.some\n some: createMethod(3),\n // `Array.prototype.every` method\n // https://tc39.es/ecma262/#sec-array.prototype.every\n every: createMethod(4),\n // `Array.prototype.find` method\n // https://tc39.es/ecma262/#sec-array.prototype.find\n find: createMethod(5),\n // `Array.prototype.findIndex` method\n // https://tc39.es/ecma262/#sec-array.prototype.findIndex\n findIndex: createMethod(6),\n // `Array.prototype.filterReject` method\n // https://github.com/tc39/proposal-array-filtering\n filterReject: createMethod(7)\n};\n","'use strict';\nvar fails = require('../internals/fails');\n\nmodule.exports = function (METHOD_NAME, argument) {\n var method = [][METHOD_NAME];\n return !!method && fails(function () {\n // eslint-disable-next-line no-useless-call -- required for testing\n method.call(null, argument || function () { return 1; }, 1);\n });\n};\n","'use strict';\nvar $forEach = require('../internals/array-iteration').forEach;\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\n\nvar STRICT_METHOD = arrayMethodIsStrict('forEach');\n\n// `Array.prototype.forEach` method implementation\n// https://tc39.es/ecma262/#sec-array.prototype.foreach\nmodule.exports = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {\n return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n// eslint-disable-next-line es/no-array-prototype-foreach -- safe\n} : [].forEach;\n","var fails = require('../internals/fails');\n\n// Detect IE8's incomplete defineProperty implementation\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;\n});\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar createElement = require('../internals/document-create-element');\n\n// Thanks to IE8 for its funny defineProperty\nmodule.exports = !DESCRIPTORS && !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(createElement('div'), 'a', {\n get: function () { return 7; }\n }).a != 7;\n});\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\n\n// V8 ~ Chrome 36-\n// https://bugs.chromium.org/p/v8/issues/detail?id=3334\nmodule.exports = DESCRIPTORS && fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(function () { /* empty */ }, 'prototype', {\n value: 42,\n writable: false\n }).prototype != 42;\n});\n","var isObject = require('../internals/is-object');\n\nvar $String = String;\nvar $TypeError = TypeError;\n\n// `Assert: Type(argument) is Object`\nmodule.exports = function (argument) {\n if (isObject(argument)) return argument;\n throw $TypeError($String(argument) + ' is not an object');\n};\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar call = Function.prototype.call;\n\nmodule.exports = NATIVE_BIND ? call.bind(call) : function () {\n return call.apply(call, arguments);\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = uncurryThis({}.isPrototypeOf);\n","var getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar $Object = Object;\n\nmodule.exports = USE_SYMBOL_AS_UID ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n var $Symbol = getBuiltIn('Symbol');\n return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));\n};\n","var aCallable = require('../internals/a-callable');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\n\n// `GetMethod` abstract operation\n// https://tc39.es/ecma262/#sec-getmethod\nmodule.exports = function (V, P) {\n var func = V[P];\n return isNullOrUndefined(func) ? undefined : aCallable(func);\n};\n","var call = require('../internals/function-call');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\n\nvar $TypeError = TypeError;\n\n// `OrdinaryToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-ordinarytoprimitive\nmodule.exports = function (input, pref) {\n var fn, val;\n if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;\n if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n throw $TypeError(\"Can't convert object to primitive value\");\n};\n","var call = require('../internals/function-call');\nvar isObject = require('../internals/is-object');\nvar isSymbol = require('../internals/is-symbol');\nvar getMethod = require('../internals/get-method');\nvar ordinaryToPrimitive = require('../internals/ordinary-to-primitive');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar $TypeError = TypeError;\nvar TO_PRIMITIVE = wellKnownSymbol('toPrimitive');\n\n// `ToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-toprimitive\nmodule.exports = function (input, pref) {\n if (!isObject(input) || isSymbol(input)) return input;\n var exoticToPrim = getMethod(input, TO_PRIMITIVE);\n var result;\n if (exoticToPrim) {\n if (pref === undefined) pref = 'default';\n result = call(exoticToPrim, input, pref);\n if (!isObject(result) || isSymbol(result)) return result;\n throw $TypeError(\"Can't convert object to primitive value\");\n }\n if (pref === undefined) pref = 'number';\n return ordinaryToPrimitive(input, pref);\n};\n","var toPrimitive = require('../internals/to-primitive');\nvar isSymbol = require('../internals/is-symbol');\n\n// `ToPropertyKey` abstract operation\n// https://tc39.es/ecma262/#sec-topropertykey\nmodule.exports = function (argument) {\n var key = toPrimitive(argument, 'string');\n return isSymbol(key) ? key : key + '';\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar anObject = require('../internals/an-object');\nvar toPropertyKey = require('../internals/to-property-key');\n\nvar $TypeError = TypeError;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar $defineProperty = Object.defineProperty;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar ENUMERABLE = 'enumerable';\nvar CONFIGURABLE = 'configurable';\nvar WRITABLE = 'writable';\n\n// `Object.defineProperty` method\n// https://tc39.es/ecma262/#sec-object.defineproperty\nexports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {\n var current = $getOwnPropertyDescriptor(O, P);\n if (current && current[WRITABLE]) {\n O[P] = Attributes.value;\n Attributes = {\n configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],\n enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],\n writable: false\n };\n }\n } return $defineProperty(O, P, Attributes);\n} : $defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return $defineProperty(O, P, Attributes);\n } catch (error) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw $TypeError('Accessors not supported');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = DESCRIPTORS ? function (object, key, value) {\n return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","var global = require('../internals/global');\nvar DOMIterables = require('../internals/dom-iterables');\nvar DOMTokenListPrototype = require('../internals/dom-token-list-prototype');\nvar forEach = require('../internals/array-for-each');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\n\nvar handlePrototype = function (CollectionPrototype) {\n // some Chrome versions have non-configurable methods on DOMTokenList\n if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {\n createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach);\n } catch (error) {\n CollectionPrototype.forEach = forEach;\n }\n};\n\nfor (var COLLECTION_NAME in DOMIterables) {\n if (DOMIterables[COLLECTION_NAME]) {\n handlePrototype(global[COLLECTION_NAME] && global[COLLECTION_NAME].prototype);\n }\n}\n\nhandlePrototype(DOMTokenListPrototype);\n","// toObject with fallback for non-array-like ES3 strings\nvar IndexedObject = require('../internals/indexed-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nmodule.exports = function (it) {\n return IndexedObject(requireObjectCoercible(it));\n};\n","var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar max = Math.max;\nvar min = Math.min;\n\n// Helper for a popular repeating case of the spec:\n// Let integer be ? ToInteger(index).\n// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\nmodule.exports = function (index, length) {\n var integer = toIntegerOrInfinity(index);\n return integer < 0 ? max(integer + length, 0) : min(integer, length);\n};\n","var toIndexedObject = require('../internals/to-indexed-object');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\n\n// `Array.prototype.{ indexOf, includes }` methods implementation\nvar createMethod = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIndexedObject($this);\n var length = lengthOfArrayLike(O);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare -- NaN check\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare -- NaN check\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) {\n if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.includes` method\n // https://tc39.es/ecma262/#sec-array.prototype.includes\n includes: createMethod(true),\n // `Array.prototype.indexOf` method\n // https://tc39.es/ecma262/#sec-array.prototype.indexof\n indexOf: createMethod(false)\n};\n","module.exports = {};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar hasOwn = require('../internals/has-own-property');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar indexOf = require('../internals/array-includes').indexOf;\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar push = uncurryThis([].push);\n\nmodule.exports = function (object, names) {\n var O = toIndexedObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (hasOwn(O, key = names[i++])) {\n ~indexOf(result, key) || push(result, key);\n }\n return result;\n};\n","// IE8- don't enum bug keys\nmodule.exports = [\n 'constructor',\n 'hasOwnProperty',\n 'isPrototypeOf',\n 'propertyIsEnumerable',\n 'toLocaleString',\n 'toString',\n 'valueOf'\n];\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\n// `Object.keys` method\n// https://tc39.es/ecma262/#sec-object.keys\n// eslint-disable-next-line es/no-object-keys -- safe\nmodule.exports = Object.keys || function keys(O) {\n return internalObjectKeys(O, enumBugKeys);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar definePropertyModule = require('../internals/object-define-property');\nvar anObject = require('../internals/an-object');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar objectKeys = require('../internals/object-keys');\n\n// `Object.defineProperties` method\n// https://tc39.es/ecma262/#sec-object.defineproperties\n// eslint-disable-next-line es/no-object-defineproperties -- safe\nexports.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var props = toIndexedObject(Properties);\n var keys = objectKeys(Properties);\n var length = keys.length;\n var index = 0;\n var key;\n while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);\n return O;\n};\n","var getBuiltIn = require('../internals/get-built-in');\n\nmodule.exports = getBuiltIn('document', 'documentElement');\n","var shared = require('../internals/shared');\nvar uid = require('../internals/uid');\n\nvar keys = shared('keys');\n\nmodule.exports = function (key) {\n return keys[key] || (keys[key] = uid(key));\n};\n","/* global ActiveXObject -- old IE, WSH */\nvar anObject = require('../internals/an-object');\nvar definePropertiesModule = require('../internals/object-define-properties');\nvar enumBugKeys = require('../internals/enum-bug-keys');\nvar hiddenKeys = require('../internals/hidden-keys');\nvar html = require('../internals/html');\nvar documentCreateElement = require('../internals/document-create-element');\nvar sharedKey = require('../internals/shared-key');\n\nvar GT = '>';\nvar LT = '<';\nvar PROTOTYPE = 'prototype';\nvar SCRIPT = 'script';\nvar IE_PROTO = sharedKey('IE_PROTO');\n\nvar EmptyConstructor = function () { /* empty */ };\n\nvar scriptTag = function (content) {\n return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;\n};\n\n// Create object with fake `null` prototype: use ActiveX Object with cleared prototype\nvar NullProtoObjectViaActiveX = function (activeXDocument) {\n activeXDocument.write(scriptTag(''));\n activeXDocument.close();\n var temp = activeXDocument.parentWindow.Object;\n activeXDocument = null; // avoid memory leak\n return temp;\n};\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar NullProtoObjectViaIFrame = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = documentCreateElement('iframe');\n var JS = 'java' + SCRIPT + ':';\n var iframeDocument;\n iframe.style.display = 'none';\n html.appendChild(iframe);\n // https://github.com/zloirock/core-js/issues/475\n iframe.src = String(JS);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(scriptTag('document.F=Object'));\n iframeDocument.close();\n return iframeDocument.F;\n};\n\n// Check for document.domain and active x support\n// No need to use active x approach when document.domain is not set\n// see https://github.com/es-shims/es5-shim/issues/150\n// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346\n// avoid IE GC bug\nvar activeXDocument;\nvar NullProtoObject = function () {\n try {\n activeXDocument = new ActiveXObject('htmlfile');\n } catch (error) { /* ignore */ }\n NullProtoObject = typeof document != 'undefined'\n ? document.domain && activeXDocument\n ? NullProtoObjectViaActiveX(activeXDocument) // old IE\n : NullProtoObjectViaIFrame()\n : NullProtoObjectViaActiveX(activeXDocument); // WSH\n var length = enumBugKeys.length;\n while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];\n return NullProtoObject();\n};\n\nhiddenKeys[IE_PROTO] = true;\n\n// `Object.create` method\n// https://tc39.es/ecma262/#sec-object.create\n// eslint-disable-next-line es/no-object-create -- safe\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n EmptyConstructor[PROTOTYPE] = anObject(O);\n result = new EmptyConstructor();\n EmptyConstructor[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = NullProtoObject();\n return Properties === undefined ? result : definePropertiesModule.f(result, Properties);\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\nvar create = require('../internals/object-create');\nvar defineProperty = require('../internals/object-define-property').f;\n\nvar UNSCOPABLES = wellKnownSymbol('unscopables');\nvar ArrayPrototype = Array.prototype;\n\n// Array.prototype[@@unscopables]\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\nif (ArrayPrototype[UNSCOPABLES] == undefined) {\n defineProperty(ArrayPrototype, UNSCOPABLES, {\n configurable: true,\n value: create(null)\n });\n}\n\n// add a key to Array.prototype[@@unscopables]\nmodule.exports = function (key) {\n ArrayPrototype[UNSCOPABLES][key] = true;\n};\n","module.exports = {};\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar WeakMap = global.WeakMap;\n\nmodule.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));\n","var NATIVE_WEAK_MAP = require('../internals/weak-map-basic-detection');\nvar global = require('../internals/global');\nvar isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar hasOwn = require('../internals/has-own-property');\nvar shared = require('../internals/shared-store');\nvar sharedKey = require('../internals/shared-key');\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar OBJECT_ALREADY_INITIALIZED = 'Object already initialized';\nvar TypeError = global.TypeError;\nvar WeakMap = global.WeakMap;\nvar set, get, has;\n\nvar enforce = function (it) {\n return has(it) ? get(it) : set(it, {});\n};\n\nvar getterFor = function (TYPE) {\n return function (it) {\n var state;\n if (!isObject(it) || (state = get(it)).type !== TYPE) {\n throw TypeError('Incompatible receiver, ' + TYPE + ' required');\n } return state;\n };\n};\n\nif (NATIVE_WEAK_MAP || shared.state) {\n var store = shared.state || (shared.state = new WeakMap());\n /* eslint-disable no-self-assign -- prototype methods protection */\n store.get = store.get;\n store.has = store.has;\n store.set = store.set;\n /* eslint-enable no-self-assign -- prototype methods protection */\n set = function (it, metadata) {\n if (store.has(it)) throw TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n store.set(it, metadata);\n return metadata;\n };\n get = function (it) {\n return store.get(it) || {};\n };\n has = function (it) {\n return store.has(it);\n };\n} else {\n var STATE = sharedKey('state');\n hiddenKeys[STATE] = true;\n set = function (it, metadata) {\n if (hasOwn(it, STATE)) throw TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n createNonEnumerableProperty(it, STATE, metadata);\n return metadata;\n };\n get = function (it) {\n return hasOwn(it, STATE) ? it[STATE] : {};\n };\n has = function (it) {\n return hasOwn(it, STATE);\n };\n}\n\nmodule.exports = {\n set: set,\n get: get,\n has: has,\n enforce: enforce,\n getterFor: getterFor\n};\n","'use strict';\nvar $propertyIsEnumerable = {}.propertyIsEnumerable;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Nashorn ~ JDK8 bug\nvar NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);\n\n// `Object.prototype.propertyIsEnumerable` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable\nexports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {\n var descriptor = getOwnPropertyDescriptor(this, V);\n return !!descriptor && descriptor.enumerable;\n} : $propertyIsEnumerable;\n","var DESCRIPTORS = require('../internals/descriptors');\nvar call = require('../internals/function-call');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPropertyKey = require('../internals/to-property-key');\nvar hasOwn = require('../internals/has-own-property');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\n\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor\nexports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject(O);\n P = toPropertyKey(P);\n if (IE8_DOM_DEFINE) try {\n return $getOwnPropertyDescriptor(O, P);\n } catch (error) { /* empty */ }\n if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar hasOwn = require('../internals/has-own-property');\n\nvar FunctionPrototype = Function.prototype;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;\n\nvar EXISTS = hasOwn(FunctionPrototype, 'name');\n// additional protection from minified / mangled / dropped function names\nvar PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';\nvar CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));\n\nmodule.exports = {\n EXISTS: EXISTS,\n PROPER: PROPER,\n CONFIGURABLE: CONFIGURABLE\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar hasOwn = require('../internals/has-own-property');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar CONFIGURABLE_FUNCTION_NAME = require('../internals/function-name').CONFIGURABLE;\nvar inspectSource = require('../internals/inspect-source');\nvar InternalStateModule = require('../internals/internal-state');\n\nvar enforceInternalState = InternalStateModule.enforce;\nvar getInternalState = InternalStateModule.get;\nvar $String = String;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\nvar stringSlice = uncurryThis(''.slice);\nvar replace = uncurryThis(''.replace);\nvar join = uncurryThis([].join);\n\nvar CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {\n return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;\n});\n\nvar TEMPLATE = String(String).split('String');\n\nvar makeBuiltIn = module.exports = function (value, name, options) {\n if (stringSlice($String(name), 0, 7) === 'Symbol(') {\n name = '[' + replace($String(name), /^Symbol\\(([^)]*)\\)/, '$1') + ']';\n }\n if (options && options.getter) name = 'get ' + name;\n if (options && options.setter) name = 'set ' + name;\n if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {\n if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });\n else value.name = name;\n }\n if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {\n defineProperty(value, 'length', { value: options.arity });\n }\n try {\n if (options && hasOwn(options, 'constructor') && options.constructor) {\n if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });\n // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable\n } else if (value.prototype) value.prototype = undefined;\n } catch (error) { /* empty */ }\n var state = enforceInternalState(value);\n if (!hasOwn(state, 'source')) {\n state.source = join(TEMPLATE, typeof name == 'string' ? name : '');\n } return value;\n};\n\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n// eslint-disable-next-line no-extend-native -- required\nFunction.prototype.toString = makeBuiltIn(function toString() {\n return isCallable(this) && getInternalState(this).source || inspectSource(this);\n}, 'toString');\n","var isCallable = require('../internals/is-callable');\nvar definePropertyModule = require('../internals/object-define-property');\nvar makeBuiltIn = require('../internals/make-built-in');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nmodule.exports = function (O, key, value, options) {\n if (!options) options = {};\n var simple = options.enumerable;\n var name = options.name !== undefined ? options.name : key;\n if (isCallable(value)) makeBuiltIn(value, name, options);\n if (options.global) {\n if (simple) O[key] = value;\n else defineGlobalProperty(key, value);\n } else {\n try {\n if (!options.unsafe) delete O[key];\n else if (O[key]) simple = true;\n } catch (error) { /* empty */ }\n if (simple) O[key] = value;\n else definePropertyModule.f(O, key, {\n value: value,\n enumerable: false,\n configurable: !options.nonConfigurable,\n writable: !options.nonWritable\n });\n } return O;\n};\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\nvar hiddenKeys = enumBugKeys.concat('length', 'prototype');\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.es/ecma262/#sec-object.getownpropertynames\n// eslint-disable-next-line es/no-object-getownpropertynames -- safe\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return internalObjectKeys(O, hiddenKeys);\n};\n","// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe\nexports.f = Object.getOwnPropertySymbols;\n","var getBuiltIn = require('../internals/get-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar anObject = require('../internals/an-object');\n\nvar concat = uncurryThis([].concat);\n\n// all object keys, includes non-enumerable and symbols\nmodule.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {\n var keys = getOwnPropertyNamesModule.f(anObject(it));\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;\n};\n","var hasOwn = require('../internals/has-own-property');\nvar ownKeys = require('../internals/own-keys');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar definePropertyModule = require('../internals/object-define-property');\n\nmodule.exports = function (target, source, exceptions) {\n var keys = ownKeys(source);\n var defineProperty = definePropertyModule.f;\n var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {\n defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n }\n};\n","var fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\n\nvar replacement = /#|\\.prototype\\./;\n\nvar isForced = function (feature, detection) {\n var value = data[normalize(feature)];\n return value == POLYFILL ? true\n : value == NATIVE ? false\n : isCallable(detection) ? fails(detection)\n : !!detection;\n};\n\nvar normalize = isForced.normalize = function (string) {\n return String(string).replace(replacement, '.').toLowerCase();\n};\n\nvar data = isForced.data = {};\nvar NATIVE = isForced.NATIVE = 'N';\nvar POLYFILL = isForced.POLYFILL = 'P';\n\nmodule.exports = isForced;\n","var global = require('../internals/global');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar defineGlobalProperty = require('../internals/define-global-property');\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar isForced = require('../internals/is-forced');\n\n/*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.dontCallGetSet - prevent calling a getter on target\n options.name - the .name of the function if it does not match the key\n*/\nmodule.exports = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var FORCED, target, key, targetProperty, sourceProperty, descriptor;\n if (GLOBAL) {\n target = global;\n } else if (STATIC) {\n target = global[TARGET] || defineGlobalProperty(TARGET, {});\n } else {\n target = (global[TARGET] || {}).prototype;\n }\n if (target) for (key in source) {\n sourceProperty = source[key];\n if (options.dontCallGetSet) {\n descriptor = getOwnPropertyDescriptor(target, key);\n targetProperty = descriptor && descriptor.value;\n } else targetProperty = target[key];\n FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n // contained in target\n if (!FORCED && targetProperty !== undefined) {\n if (typeof sourceProperty == typeof targetProperty) continue;\n copyConstructorProperties(sourceProperty, targetProperty);\n }\n // add a flag to not completely full polyfills\n if (options.sham || (targetProperty && targetProperty.sham)) {\n createNonEnumerableProperty(sourceProperty, 'sham', true);\n }\n defineBuiltIn(target, key, sourceProperty, options);\n }\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n function F() { /* empty */ }\n F.prototype.constructor = null;\n // eslint-disable-next-line es/no-object-getprototypeof -- required for testing\n return Object.getPrototypeOf(new F()) !== F.prototype;\n});\n","var hasOwn = require('../internals/has-own-property');\nvar isCallable = require('../internals/is-callable');\nvar toObject = require('../internals/to-object');\nvar sharedKey = require('../internals/shared-key');\nvar CORRECT_PROTOTYPE_GETTER = require('../internals/correct-prototype-getter');\n\nvar IE_PROTO = sharedKey('IE_PROTO');\nvar $Object = Object;\nvar ObjectPrototype = $Object.prototype;\n\n// `Object.getPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.getprototypeof\n// eslint-disable-next-line es/no-object-getprototypeof -- safe\nmodule.exports = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {\n var object = toObject(O);\n if (hasOwn(object, IE_PROTO)) return object[IE_PROTO];\n var constructor = object.constructor;\n if (isCallable(constructor) && object instanceof constructor) {\n return constructor.prototype;\n } return object instanceof $Object ? ObjectPrototype : null;\n};\n","'use strict';\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar create = require('../internals/object-create');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_PURE = require('../internals/is-pure');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar BUGGY_SAFARI_ITERATORS = false;\n\n// `%IteratorPrototype%` object\n// https://tc39.es/ecma262/#sec-%iteratorprototype%-object\nvar IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;\n\n/* eslint-disable es/no-array-prototype-keys -- safe */\nif ([].keys) {\n arrayIterator = [].keys();\n // Safari 8 has buggy iterators w/o `next`\n if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;\n else {\n PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator));\n if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;\n }\n}\n\nvar NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype) || fails(function () {\n var test = {};\n // FF44- legacy iterators case\n return IteratorPrototype[ITERATOR].call(test) !== test;\n});\n\nif (NEW_ITERATOR_PROTOTYPE) IteratorPrototype = {};\nelse if (IS_PURE) IteratorPrototype = create(IteratorPrototype);\n\n// `%IteratorPrototype%[@@iterator]()` method\n// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator\nif (!isCallable(IteratorPrototype[ITERATOR])) {\n defineBuiltIn(IteratorPrototype, ITERATOR, function () {\n return this;\n });\n}\n\nmodule.exports = {\n IteratorPrototype: IteratorPrototype,\n BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS\n};\n","var defineProperty = require('../internals/object-define-property').f;\nvar hasOwn = require('../internals/has-own-property');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\n\nmodule.exports = function (target, TAG, STATIC) {\n if (target && !STATIC) target = target.prototype;\n if (target && !hasOwn(target, TO_STRING_TAG)) {\n defineProperty(target, TO_STRING_TAG, { configurable: true, value: TAG });\n }\n};\n","'use strict';\nvar IteratorPrototype = require('../internals/iterators-core').IteratorPrototype;\nvar create = require('../internals/object-create');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar Iterators = require('../internals/iterators');\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {\n var TO_STRING_TAG = NAME + ' Iterator';\n IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });\n setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);\n Iterators[TO_STRING_TAG] = returnThis;\n return IteratorConstructor;\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar aCallable = require('../internals/a-callable');\n\nmodule.exports = function (object, key, method) {\n try {\n // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\n return uncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));\n } catch (error) { /* empty */ }\n};\n","var isCallable = require('../internals/is-callable');\n\nvar $String = String;\nvar $TypeError = TypeError;\n\nmodule.exports = function (argument) {\n if (typeof argument == 'object' || isCallable(argument)) return argument;\n throw $TypeError(\"Can't set \" + $String(argument) + ' as a prototype');\n};\n","/* eslint-disable no-proto -- safe */\nvar uncurryThisAccessor = require('../internals/function-uncurry-this-accessor');\nvar anObject = require('../internals/an-object');\nvar aPossiblePrototype = require('../internals/a-possible-prototype');\n\n// `Object.setPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.setprototypeof\n// Works with __proto__ only. Old v8 can't work with null proto objects.\n// eslint-disable-next-line es/no-object-setprototypeof -- safe\nmodule.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {\n var CORRECT_SETTER = false;\n var test = {};\n var setter;\n try {\n setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');\n setter(test, []);\n CORRECT_SETTER = test instanceof Array;\n } catch (error) { /* empty */ }\n return function setPrototypeOf(O, proto) {\n anObject(O);\n aPossiblePrototype(proto);\n if (CORRECT_SETTER) setter(O, proto);\n else O.__proto__ = proto;\n return O;\n };\n}() : undefined);\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar IS_PURE = require('../internals/is-pure');\nvar FunctionName = require('../internals/function-name');\nvar isCallable = require('../internals/is-callable');\nvar createIteratorConstructor = require('../internals/iterator-create-constructor');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar Iterators = require('../internals/iterators');\nvar IteratorsCore = require('../internals/iterators-core');\n\nvar PROPER_FUNCTION_NAME = FunctionName.PROPER;\nvar CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;\nvar IteratorPrototype = IteratorsCore.IteratorPrototype;\nvar BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;\nvar ITERATOR = wellKnownSymbol('iterator');\nvar KEYS = 'keys';\nvar VALUES = 'values';\nvar ENTRIES = 'entries';\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {\n createIteratorConstructor(IteratorConstructor, NAME, next);\n\n var getIterationMethod = function (KIND) {\n if (KIND === DEFAULT && defaultIterator) return defaultIterator;\n if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];\n switch (KIND) {\n case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };\n case VALUES: return function values() { return new IteratorConstructor(this, KIND); };\n case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };\n } return function () { return new IteratorConstructor(this); };\n };\n\n var TO_STRING_TAG = NAME + ' Iterator';\n var INCORRECT_VALUES_NAME = false;\n var IterablePrototype = Iterable.prototype;\n var nativeIterator = IterablePrototype[ITERATOR]\n || IterablePrototype['@@iterator']\n || DEFAULT && IterablePrototype[DEFAULT];\n var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);\n var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;\n var CurrentIteratorPrototype, methods, KEY;\n\n // fix native\n if (anyNativeIterator) {\n CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));\n if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {\n if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {\n if (setPrototypeOf) {\n setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);\n } else if (!isCallable(CurrentIteratorPrototype[ITERATOR])) {\n defineBuiltIn(CurrentIteratorPrototype, ITERATOR, returnThis);\n }\n }\n // Set @@toStringTag to native iterators\n setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true);\n if (IS_PURE) Iterators[TO_STRING_TAG] = returnThis;\n }\n }\n\n // fix Array.prototype.{ values, @@iterator }.name in V8 / FF\n if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {\n if (!IS_PURE && CONFIGURABLE_FUNCTION_NAME) {\n createNonEnumerableProperty(IterablePrototype, 'name', VALUES);\n } else {\n INCORRECT_VALUES_NAME = true;\n defaultIterator = function values() { return call(nativeIterator, this); };\n }\n }\n\n // export additional methods\n if (DEFAULT) {\n methods = {\n values: getIterationMethod(VALUES),\n keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),\n entries: getIterationMethod(ENTRIES)\n };\n if (FORCED) for (KEY in methods) {\n if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {\n defineBuiltIn(IterablePrototype, KEY, methods[KEY]);\n }\n } else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);\n }\n\n // define iterator\n if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) {\n defineBuiltIn(IterablePrototype, ITERATOR, defaultIterator, { name: DEFAULT });\n }\n Iterators[NAME] = defaultIterator;\n\n return methods;\n};\n","// `CreateIterResultObject` abstract operation\n// https://tc39.es/ecma262/#sec-createiterresultobject\nmodule.exports = function (value, done) {\n return { value: value, done: done };\n};\n","'use strict';\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar addToUnscopables = require('../internals/add-to-unscopables');\nvar Iterators = require('../internals/iterators');\nvar InternalStateModule = require('../internals/internal-state');\nvar defineProperty = require('../internals/object-define-property').f;\nvar defineIterator = require('../internals/iterator-define');\nvar createIterResultObject = require('../internals/create-iter-result-object');\nvar IS_PURE = require('../internals/is-pure');\nvar DESCRIPTORS = require('../internals/descriptors');\n\nvar ARRAY_ITERATOR = 'Array Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);\n\n// `Array.prototype.entries` method\n// https://tc39.es/ecma262/#sec-array.prototype.entries\n// `Array.prototype.keys` method\n// https://tc39.es/ecma262/#sec-array.prototype.keys\n// `Array.prototype.values` method\n// https://tc39.es/ecma262/#sec-array.prototype.values\n// `Array.prototype[@@iterator]` method\n// https://tc39.es/ecma262/#sec-array.prototype-@@iterator\n// `CreateArrayIterator` internal method\n// https://tc39.es/ecma262/#sec-createarrayiterator\nmodule.exports = defineIterator(Array, 'Array', function (iterated, kind) {\n setInternalState(this, {\n type: ARRAY_ITERATOR,\n target: toIndexedObject(iterated), // target\n index: 0, // next index\n kind: kind // kind\n });\n// `%ArrayIteratorPrototype%.next` method\n// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next\n}, function () {\n var state = getInternalState(this);\n var target = state.target;\n var kind = state.kind;\n var index = state.index++;\n if (!target || index >= target.length) {\n state.target = undefined;\n return createIterResultObject(undefined, true);\n }\n if (kind == 'keys') return createIterResultObject(index, false);\n if (kind == 'values') return createIterResultObject(target[index], false);\n return createIterResultObject([index, target[index]], false);\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values%\n// https://tc39.es/ecma262/#sec-createunmappedargumentsobject\n// https://tc39.es/ecma262/#sec-createmappedargumentsobject\nvar values = Iterators.Arguments = Iterators.Array;\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n\n// V8 ~ Chrome 45- bug\nif (!IS_PURE && DESCRIPTORS && values.name !== 'values') try {\n defineProperty(values, 'name', { value: 'values' });\n} catch (error) { /* empty */ }\n","var global = require('../internals/global');\nvar DOMIterables = require('../internals/dom-iterables');\nvar DOMTokenListPrototype = require('../internals/dom-token-list-prototype');\nvar ArrayIteratorMethods = require('../modules/es.array.iterator');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar ArrayValues = ArrayIteratorMethods.values;\n\nvar handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {\n if (CollectionPrototype) {\n // some Chrome versions have non-configurable methods on DOMTokenList\n if (CollectionPrototype[ITERATOR] !== ArrayValues) try {\n createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);\n } catch (error) {\n CollectionPrototype[ITERATOR] = ArrayValues;\n }\n if (!CollectionPrototype[TO_STRING_TAG]) {\n createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);\n }\n if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {\n // some Chrome versions have non-configurable methods on DOMTokenList\n if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {\n createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);\n } catch (error) {\n CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];\n }\n }\n }\n};\n\nfor (var COLLECTION_NAME in DOMIterables) {\n handlePrototype(global[COLLECTION_NAME] && global[COLLECTION_NAME].prototype, COLLECTION_NAME);\n}\n\nhandlePrototype(DOMTokenListPrototype, 'DOMTokenList');\n","var global = require('../internals/global');\n\nmodule.exports = global;\n","'use strict';\n/* eslint-disable es/no-array-prototype-indexof -- required for testing */\nvar $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this-clause');\nvar $indexOf = require('../internals/array-includes').indexOf;\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\n\nvar nativeIndexOf = uncurryThis([].indexOf);\n\nvar NEGATIVE_ZERO = !!nativeIndexOf && 1 / nativeIndexOf([1], 1, -0) < 0;\nvar FORCED = NEGATIVE_ZERO || !arrayMethodIsStrict('indexOf');\n\n// `Array.prototype.indexOf` method\n// https://tc39.es/ecma262/#sec-array.prototype.indexof\n$({ target: 'Array', proto: true, forced: FORCED }, {\n indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {\n var fromIndex = arguments.length > 1 ? arguments[1] : undefined;\n return NEGATIVE_ZERO\n // convert -0 to +0\n ? nativeIndexOf(this, searchElement, fromIndex) || 0\n : $indexOf(this, searchElement, fromIndex);\n }\n});\n","var $TypeError = TypeError;\nvar MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991\n\nmodule.exports = function (it) {\n if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');\n return it;\n};\n","'use strict';\nvar toPropertyKey = require('../internals/to-property-key');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = function (object, key, value) {\n var propertyKey = toPropertyKey(key);\n if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));\n else object[propertyKey] = value;\n};\n","var fails = require('../internals/fails');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar V8_VERSION = require('../internals/engine-v8-version');\n\nvar SPECIES = wellKnownSymbol('species');\n\nmodule.exports = function (METHOD_NAME) {\n // We can't use this feature detection in V8 since it causes\n // deoptimization and serious performance degradation\n // https://github.com/zloirock/core-js/issues/677\n return V8_VERSION >= 51 || !fails(function () {\n var array = [];\n var constructor = array.constructor = {};\n constructor[SPECIES] = function () {\n return { foo: 1 };\n };\n return array[METHOD_NAME](Boolean).foo !== 1;\n });\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar fails = require('../internals/fails');\nvar isArray = require('../internals/is-array');\nvar isObject = require('../internals/is-object');\nvar toObject = require('../internals/to-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar doesNotExceedSafeInteger = require('../internals/does-not-exceed-safe-integer');\nvar createProperty = require('../internals/create-property');\nvar arraySpeciesCreate = require('../internals/array-species-create');\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar V8_VERSION = require('../internals/engine-v8-version');\n\nvar IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');\n\n// We can't use this feature detection in V8 since it causes\n// deoptimization and serious performance degradation\n// https://github.com/zloirock/core-js/issues/679\nvar IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () {\n var array = [];\n array[IS_CONCAT_SPREADABLE] = false;\n return array.concat()[0] !== array;\n});\n\nvar isConcatSpreadable = function (O) {\n if (!isObject(O)) return false;\n var spreadable = O[IS_CONCAT_SPREADABLE];\n return spreadable !== undefined ? !!spreadable : isArray(O);\n};\n\nvar FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport('concat');\n\n// `Array.prototype.concat` method\n// https://tc39.es/ecma262/#sec-array.prototype.concat\n// with adding support of @@isConcatSpreadable and @@species\n$({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n concat: function concat(arg) {\n var O = toObject(this);\n var A = arraySpeciesCreate(O, 0);\n var n = 0;\n var i, k, length, len, E;\n for (i = -1, length = arguments.length; i < length; i++) {\n E = i === -1 ? O : arguments[i];\n if (isConcatSpreadable(E)) {\n len = lengthOfArrayLike(E);\n doesNotExceedSafeInteger(n + len);\n for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);\n } else {\n doesNotExceedSafeInteger(n + 1);\n createProperty(A, n++, E);\n }\n }\n A.length = n;\n return A;\n }\n});\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar call = require('../internals/function-call');\nvar fails = require('../internals/fails');\nvar objectKeys = require('../internals/object-keys');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar toObject = require('../internals/to-object');\nvar IndexedObject = require('../internals/indexed-object');\n\n// eslint-disable-next-line es/no-object-assign -- safe\nvar $assign = Object.assign;\n// eslint-disable-next-line es/no-object-defineproperty -- required for testing\nvar defineProperty = Object.defineProperty;\nvar concat = uncurryThis([].concat);\n\n// `Object.assign` method\n// https://tc39.es/ecma262/#sec-object.assign\nmodule.exports = !$assign || fails(function () {\n // should have correct order of operations (Edge bug)\n if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {\n enumerable: true,\n get: function () {\n defineProperty(this, 'b', {\n value: 3,\n enumerable: false\n });\n }\n }), { b: 2 })).b !== 1) return true;\n // should work with symbols and should have deterministic property order (V8 bug)\n var A = {};\n var B = {};\n // eslint-disable-next-line es/no-symbol -- safe\n var symbol = Symbol();\n var alphabet = 'abcdefghijklmnopqrst';\n A[symbol] = 7;\n alphabet.split('').forEach(function (chr) { B[chr] = chr; });\n return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;\n}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`\n var T = toObject(target);\n var argumentsLength = arguments.length;\n var index = 1;\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n var propertyIsEnumerable = propertyIsEnumerableModule.f;\n while (argumentsLength > index) {\n var S = IndexedObject(arguments[index++]);\n var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) {\n key = keys[j++];\n if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key];\n }\n } return T;\n} : $assign;\n","var $ = require('../internals/export');\nvar assign = require('../internals/object-assign');\n\n// `Object.assign` method\n// https://tc39.es/ecma262/#sec-object.assign\n// eslint-disable-next-line es/no-object-assign -- required for testing\n$({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {\n assign: assign\n});\n","'use strict';\nvar TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar classof = require('../internals/classof');\n\n// `Object.prototype.toString` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.tostring\nmodule.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {\n return '[object ' + classof(this) + ']';\n};\n","var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar toString = require('../internals/object-to-string');\n\n// `Object.prototype.toString` method\n// https://tc39.es/ecma262/#sec-object.prototype.tostring\nif (!TO_STRING_TAG_SUPPORT) {\n defineBuiltIn(Object.prototype, 'toString', toString, { unsafe: true });\n}\n","var classof = require('../internals/classof-raw');\n\nmodule.exports = typeof process != 'undefined' && classof(process) == 'process';\n","var makeBuiltIn = require('../internals/make-built-in');\nvar defineProperty = require('../internals/object-define-property');\n\nmodule.exports = function (target, name, descriptor) {\n if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });\n if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });\n return defineProperty.f(target, name, descriptor);\n};\n","'use strict';\nvar getBuiltIn = require('../internals/get-built-in');\nvar defineBuiltInAccessor = require('../internals/define-built-in-accessor');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar DESCRIPTORS = require('../internals/descriptors');\n\nvar SPECIES = wellKnownSymbol('species');\n\nmodule.exports = function (CONSTRUCTOR_NAME) {\n var Constructor = getBuiltIn(CONSTRUCTOR_NAME);\n\n if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) {\n defineBuiltInAccessor(Constructor, SPECIES, {\n configurable: true,\n get: function () { return this; }\n });\n }\n};\n","var isPrototypeOf = require('../internals/object-is-prototype-of');\n\nvar $TypeError = TypeError;\n\nmodule.exports = function (it, Prototype) {\n if (isPrototypeOf(Prototype, it)) return it;\n throw $TypeError('Incorrect invocation');\n};\n","var isConstructor = require('../internals/is-constructor');\nvar tryToString = require('../internals/try-to-string');\n\nvar $TypeError = TypeError;\n\n// `Assert: IsConstructor(argument) is true`\nmodule.exports = function (argument) {\n if (isConstructor(argument)) return argument;\n throw $TypeError(tryToString(argument) + ' is not a constructor');\n};\n","var anObject = require('../internals/an-object');\nvar aConstructor = require('../internals/a-constructor');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar SPECIES = wellKnownSymbol('species');\n\n// `SpeciesConstructor` abstract operation\n// https://tc39.es/ecma262/#sec-speciesconstructor\nmodule.exports = function (O, defaultConstructor) {\n var C = anObject(O).constructor;\n var S;\n return C === undefined || isNullOrUndefined(S = anObject(C)[SPECIES]) ? defaultConstructor : aConstructor(S);\n};\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar apply = FunctionPrototype.apply;\nvar call = FunctionPrototype.call;\n\n// eslint-disable-next-line es/no-reflect -- safe\nmodule.exports = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function () {\n return call.apply(apply, arguments);\n});\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = uncurryThis([].slice);\n","var $TypeError = TypeError;\n\nmodule.exports = function (passed, required) {\n if (passed < required) throw $TypeError('Not enough arguments');\n return passed;\n};\n","var userAgent = require('../internals/engine-user-agent');\n\n// eslint-disable-next-line redos/no-vulnerable -- safe\nmodule.exports = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent);\n","var global = require('../internals/global');\nvar apply = require('../internals/function-apply');\nvar bind = require('../internals/function-bind-context');\nvar isCallable = require('../internals/is-callable');\nvar hasOwn = require('../internals/has-own-property');\nvar fails = require('../internals/fails');\nvar html = require('../internals/html');\nvar arraySlice = require('../internals/array-slice');\nvar createElement = require('../internals/document-create-element');\nvar validateArgumentsLength = require('../internals/validate-arguments-length');\nvar IS_IOS = require('../internals/engine-is-ios');\nvar IS_NODE = require('../internals/engine-is-node');\n\nvar set = global.setImmediate;\nvar clear = global.clearImmediate;\nvar process = global.process;\nvar Dispatch = global.Dispatch;\nvar Function = global.Function;\nvar MessageChannel = global.MessageChannel;\nvar String = global.String;\nvar counter = 0;\nvar queue = {};\nvar ONREADYSTATECHANGE = 'onreadystatechange';\nvar $location, defer, channel, port;\n\nfails(function () {\n // Deno throws a ReferenceError on `location` access without `--location` flag\n $location = global.location;\n});\n\nvar run = function (id) {\n if (hasOwn(queue, id)) {\n var fn = queue[id];\n delete queue[id];\n fn();\n }\n};\n\nvar runner = function (id) {\n return function () {\n run(id);\n };\n};\n\nvar eventListener = function (event) {\n run(event.data);\n};\n\nvar globalPostMessageDefer = function (id) {\n // old engines have not location.origin\n global.postMessage(String(id), $location.protocol + '//' + $location.host);\n};\n\n// Node.js 0.9+ & IE10+ has setImmediate, otherwise:\nif (!set || !clear) {\n set = function setImmediate(handler) {\n validateArgumentsLength(arguments.length, 1);\n var fn = isCallable(handler) ? handler : Function(handler);\n var args = arraySlice(arguments, 1);\n queue[++counter] = function () {\n apply(fn, undefined, args);\n };\n defer(counter);\n return counter;\n };\n clear = function clearImmediate(id) {\n delete queue[id];\n };\n // Node.js 0.8-\n if (IS_NODE) {\n defer = function (id) {\n process.nextTick(runner(id));\n };\n // Sphere (JS game engine) Dispatch API\n } else if (Dispatch && Dispatch.now) {\n defer = function (id) {\n Dispatch.now(runner(id));\n };\n // Browsers with MessageChannel, includes WebWorkers\n // except iOS - https://github.com/zloirock/core-js/issues/624\n } else if (MessageChannel && !IS_IOS) {\n channel = new MessageChannel();\n port = channel.port2;\n channel.port1.onmessage = eventListener;\n defer = bind(port.postMessage, port);\n // Browsers with postMessage, skip WebWorkers\n // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'\n } else if (\n global.addEventListener &&\n isCallable(global.postMessage) &&\n !global.importScripts &&\n $location && $location.protocol !== 'file:' &&\n !fails(globalPostMessageDefer)\n ) {\n defer = globalPostMessageDefer;\n global.addEventListener('message', eventListener, false);\n // IE8-\n } else if (ONREADYSTATECHANGE in createElement('script')) {\n defer = function (id) {\n html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {\n html.removeChild(this);\n run(id);\n };\n };\n // Rest old browsers\n } else {\n defer = function (id) {\n setTimeout(runner(id), 0);\n };\n }\n}\n\nmodule.exports = {\n set: set,\n clear: clear\n};\n","var Queue = function () {\n this.head = null;\n this.tail = null;\n};\n\nQueue.prototype = {\n add: function (item) {\n var entry = { item: item, next: null };\n var tail = this.tail;\n if (tail) tail.next = entry;\n else this.head = entry;\n this.tail = entry;\n },\n get: function () {\n var entry = this.head;\n if (entry) {\n var next = this.head = entry.next;\n if (next === null) this.tail = null;\n return entry.item;\n }\n }\n};\n\nmodule.exports = Queue;\n","var userAgent = require('../internals/engine-user-agent');\n\nmodule.exports = /ipad|iphone|ipod/i.test(userAgent) && typeof Pebble != 'undefined';\n","var userAgent = require('../internals/engine-user-agent');\n\nmodule.exports = /web0s(?!.*chrome)/i.test(userAgent);\n","var global = require('../internals/global');\nvar bind = require('../internals/function-bind-context');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar macrotask = require('../internals/task').set;\nvar Queue = require('../internals/queue');\nvar IS_IOS = require('../internals/engine-is-ios');\nvar IS_IOS_PEBBLE = require('../internals/engine-is-ios-pebble');\nvar IS_WEBOS_WEBKIT = require('../internals/engine-is-webos-webkit');\nvar IS_NODE = require('../internals/engine-is-node');\n\nvar MutationObserver = global.MutationObserver || global.WebKitMutationObserver;\nvar document = global.document;\nvar process = global.process;\nvar Promise = global.Promise;\n// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`\nvar queueMicrotaskDescriptor = getOwnPropertyDescriptor(global, 'queueMicrotask');\nvar microtask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;\nvar notify, toggle, node, promise, then;\n\n// modern engines have queueMicrotask method\nif (!microtask) {\n var queue = new Queue();\n\n var flush = function () {\n var parent, fn;\n if (IS_NODE && (parent = process.domain)) parent.exit();\n while (fn = queue.get()) try {\n fn();\n } catch (error) {\n if (queue.head) notify();\n throw error;\n }\n if (parent) parent.enter();\n };\n\n // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339\n // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898\n if (!IS_IOS && !IS_NODE && !IS_WEBOS_WEBKIT && MutationObserver && document) {\n toggle = true;\n node = document.createTextNode('');\n new MutationObserver(flush).observe(node, { characterData: true });\n notify = function () {\n node.data = toggle = !toggle;\n };\n // environments with maybe non-completely correct, but existent Promise\n } else if (!IS_IOS_PEBBLE && Promise && Promise.resolve) {\n // Promise.resolve without an argument throws an error in LG WebOS 2\n promise = Promise.resolve(undefined);\n // workaround of WebKit ~ iOS Safari 10.1 bug\n promise.constructor = Promise;\n then = bind(promise.then, promise);\n notify = function () {\n then(flush);\n };\n // Node.js without promises\n } else if (IS_NODE) {\n notify = function () {\n process.nextTick(flush);\n };\n // for other environments - macrotask based on:\n // - setImmediate\n // - MessageChannel\n // - window.postMessage\n // - onreadystatechange\n // - setTimeout\n } else {\n // `webpack` dev server bug on IE global methods - use bind(fn, global)\n macrotask = bind(macrotask, global);\n notify = function () {\n macrotask(flush);\n };\n }\n\n microtask = function (fn) {\n if (!queue.head) notify();\n queue.add(fn);\n };\n}\n\nmodule.exports = microtask;\n","module.exports = function (a, b) {\n try {\n // eslint-disable-next-line no-console -- safe\n arguments.length == 1 ? console.error(a) : console.error(a, b);\n } catch (error) { /* empty */ }\n};\n","module.exports = function (exec) {\n try {\n return { error: false, value: exec() };\n } catch (error) {\n return { error: true, value: error };\n }\n};\n","var global = require('../internals/global');\n\nmodule.exports = global.Promise;\n","/* global Deno -- Deno case */\nmodule.exports = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';\n","var IS_DENO = require('../internals/engine-is-deno');\nvar IS_NODE = require('../internals/engine-is-node');\n\nmodule.exports = !IS_DENO && !IS_NODE\n && typeof window == 'object'\n && typeof document == 'object';\n","var global = require('../internals/global');\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar isCallable = require('../internals/is-callable');\nvar isForced = require('../internals/is-forced');\nvar inspectSource = require('../internals/inspect-source');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_BROWSER = require('../internals/engine-is-browser');\nvar IS_DENO = require('../internals/engine-is-deno');\nvar IS_PURE = require('../internals/is-pure');\nvar V8_VERSION = require('../internals/engine-v8-version');\n\nvar NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;\nvar SPECIES = wellKnownSymbol('species');\nvar SUBCLASSING = false;\nvar NATIVE_PROMISE_REJECTION_EVENT = isCallable(global.PromiseRejectionEvent);\n\nvar FORCED_PROMISE_CONSTRUCTOR = isForced('Promise', function () {\n var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor);\n var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor);\n // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables\n // https://bugs.chromium.org/p/chromium/issues/detail?id=830565\n // We can't detect it synchronously, so just check versions\n if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;\n // We need Promise#{ catch, finally } in the pure version for preventing prototype pollution\n if (IS_PURE && !(NativePromisePrototype['catch'] && NativePromisePrototype['finally'])) return true;\n // We can't use @@species feature detection in V8 since it causes\n // deoptimization and performance degradation\n // https://github.com/zloirock/core-js/issues/679\n if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {\n // Detect correctness of subclassing with @@species support\n var promise = new NativePromiseConstructor(function (resolve) { resolve(1); });\n var FakePromise = function (exec) {\n exec(function () { /* empty */ }, function () { /* empty */ });\n };\n var constructor = promise.constructor = {};\n constructor[SPECIES] = FakePromise;\n SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;\n if (!SUBCLASSING) return true;\n // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test\n } return !GLOBAL_CORE_JS_PROMISE && (IS_BROWSER || IS_DENO) && !NATIVE_PROMISE_REJECTION_EVENT;\n});\n\nmodule.exports = {\n CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR,\n REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT,\n SUBCLASSING: SUBCLASSING\n};\n","'use strict';\nvar aCallable = require('../internals/a-callable');\n\nvar $TypeError = TypeError;\n\nvar PromiseCapability = function (C) {\n var resolve, reject;\n this.promise = new C(function ($$resolve, $$reject) {\n if (resolve !== undefined || reject !== undefined) throw $TypeError('Bad Promise constructor');\n resolve = $$resolve;\n reject = $$reject;\n });\n this.resolve = aCallable(resolve);\n this.reject = aCallable(reject);\n};\n\n// `NewPromiseCapability` abstract operation\n// https://tc39.es/ecma262/#sec-newpromisecapability\nmodule.exports.f = function (C) {\n return new PromiseCapability(C);\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar IS_NODE = require('../internals/engine-is-node');\nvar global = require('../internals/global');\nvar call = require('../internals/function-call');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar setSpecies = require('../internals/set-species');\nvar aCallable = require('../internals/a-callable');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar anInstance = require('../internals/an-instance');\nvar speciesConstructor = require('../internals/species-constructor');\nvar task = require('../internals/task').set;\nvar microtask = require('../internals/microtask');\nvar hostReportErrors = require('../internals/host-report-errors');\nvar perform = require('../internals/perform');\nvar Queue = require('../internals/queue');\nvar InternalStateModule = require('../internals/internal-state');\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar PromiseConstructorDetection = require('../internals/promise-constructor-detection');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\n\nvar PROMISE = 'Promise';\nvar FORCED_PROMISE_CONSTRUCTOR = PromiseConstructorDetection.CONSTRUCTOR;\nvar NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT;\nvar NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING;\nvar getInternalPromiseState = InternalStateModule.getterFor(PROMISE);\nvar setInternalState = InternalStateModule.set;\nvar NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;\nvar PromiseConstructor = NativePromiseConstructor;\nvar PromisePrototype = NativePromisePrototype;\nvar TypeError = global.TypeError;\nvar document = global.document;\nvar process = global.process;\nvar newPromiseCapability = newPromiseCapabilityModule.f;\nvar newGenericPromiseCapability = newPromiseCapability;\n\nvar DISPATCH_EVENT = !!(document && document.createEvent && global.dispatchEvent);\nvar UNHANDLED_REJECTION = 'unhandledrejection';\nvar REJECTION_HANDLED = 'rejectionhandled';\nvar PENDING = 0;\nvar FULFILLED = 1;\nvar REJECTED = 2;\nvar HANDLED = 1;\nvar UNHANDLED = 2;\n\nvar Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;\n\n// helpers\nvar isThenable = function (it) {\n var then;\n return isObject(it) && isCallable(then = it.then) ? then : false;\n};\n\nvar callReaction = function (reaction, state) {\n var value = state.value;\n var ok = state.state == FULFILLED;\n var handler = ok ? reaction.ok : reaction.fail;\n var resolve = reaction.resolve;\n var reject = reaction.reject;\n var domain = reaction.domain;\n var result, then, exited;\n try {\n if (handler) {\n if (!ok) {\n if (state.rejection === UNHANDLED) onHandleUnhandled(state);\n state.rejection = HANDLED;\n }\n if (handler === true) result = value;\n else {\n if (domain) domain.enter();\n result = handler(value); // can throw\n if (domain) {\n domain.exit();\n exited = true;\n }\n }\n if (result === reaction.promise) {\n reject(TypeError('Promise-chain cycle'));\n } else if (then = isThenable(result)) {\n call(then, result, resolve, reject);\n } else resolve(result);\n } else reject(value);\n } catch (error) {\n if (domain && !exited) domain.exit();\n reject(error);\n }\n};\n\nvar notify = function (state, isReject) {\n if (state.notified) return;\n state.notified = true;\n microtask(function () {\n var reactions = state.reactions;\n var reaction;\n while (reaction = reactions.get()) {\n callReaction(reaction, state);\n }\n state.notified = false;\n if (isReject && !state.rejection) onUnhandled(state);\n });\n};\n\nvar dispatchEvent = function (name, promise, reason) {\n var event, handler;\n if (DISPATCH_EVENT) {\n event = document.createEvent('Event');\n event.promise = promise;\n event.reason = reason;\n event.initEvent(name, false, true);\n global.dispatchEvent(event);\n } else event = { promise: promise, reason: reason };\n if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global['on' + name])) handler(event);\n else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);\n};\n\nvar onUnhandled = function (state) {\n call(task, global, function () {\n var promise = state.facade;\n var value = state.value;\n var IS_UNHANDLED = isUnhandled(state);\n var result;\n if (IS_UNHANDLED) {\n result = perform(function () {\n if (IS_NODE) {\n process.emit('unhandledRejection', value, promise);\n } else dispatchEvent(UNHANDLED_REJECTION, promise, value);\n });\n // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should\n state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;\n if (result.error) throw result.value;\n }\n });\n};\n\nvar isUnhandled = function (state) {\n return state.rejection !== HANDLED && !state.parent;\n};\n\nvar onHandleUnhandled = function (state) {\n call(task, global, function () {\n var promise = state.facade;\n if (IS_NODE) {\n process.emit('rejectionHandled', promise);\n } else dispatchEvent(REJECTION_HANDLED, promise, state.value);\n });\n};\n\nvar bind = function (fn, state, unwrap) {\n return function (value) {\n fn(state, value, unwrap);\n };\n};\n\nvar internalReject = function (state, value, unwrap) {\n if (state.done) return;\n state.done = true;\n if (unwrap) state = unwrap;\n state.value = value;\n state.state = REJECTED;\n notify(state, true);\n};\n\nvar internalResolve = function (state, value, unwrap) {\n if (state.done) return;\n state.done = true;\n if (unwrap) state = unwrap;\n try {\n if (state.facade === value) throw TypeError(\"Promise can't be resolved itself\");\n var then = isThenable(value);\n if (then) {\n microtask(function () {\n var wrapper = { done: false };\n try {\n call(then, value,\n bind(internalResolve, wrapper, state),\n bind(internalReject, wrapper, state)\n );\n } catch (error) {\n internalReject(wrapper, error, state);\n }\n });\n } else {\n state.value = value;\n state.state = FULFILLED;\n notify(state, false);\n }\n } catch (error) {\n internalReject({ done: false }, error, state);\n }\n};\n\n// constructor polyfill\nif (FORCED_PROMISE_CONSTRUCTOR) {\n // 25.4.3.1 Promise(executor)\n PromiseConstructor = function Promise(executor) {\n anInstance(this, PromisePrototype);\n aCallable(executor);\n call(Internal, this);\n var state = getInternalPromiseState(this);\n try {\n executor(bind(internalResolve, state), bind(internalReject, state));\n } catch (error) {\n internalReject(state, error);\n }\n };\n\n PromisePrototype = PromiseConstructor.prototype;\n\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n Internal = function Promise(executor) {\n setInternalState(this, {\n type: PROMISE,\n done: false,\n notified: false,\n parent: false,\n reactions: new Queue(),\n rejection: false,\n state: PENDING,\n value: undefined\n });\n };\n\n // `Promise.prototype.then` method\n // https://tc39.es/ecma262/#sec-promise.prototype.then\n Internal.prototype = defineBuiltIn(PromisePrototype, 'then', function then(onFulfilled, onRejected) {\n var state = getInternalPromiseState(this);\n var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));\n state.parent = true;\n reaction.ok = isCallable(onFulfilled) ? onFulfilled : true;\n reaction.fail = isCallable(onRejected) && onRejected;\n reaction.domain = IS_NODE ? process.domain : undefined;\n if (state.state == PENDING) state.reactions.add(reaction);\n else microtask(function () {\n callReaction(reaction, state);\n });\n return reaction.promise;\n });\n\n OwnPromiseCapability = function () {\n var promise = new Internal();\n var state = getInternalPromiseState(promise);\n this.promise = promise;\n this.resolve = bind(internalResolve, state);\n this.reject = bind(internalReject, state);\n };\n\n newPromiseCapabilityModule.f = newPromiseCapability = function (C) {\n return C === PromiseConstructor || C === PromiseWrapper\n ? new OwnPromiseCapability(C)\n : newGenericPromiseCapability(C);\n };\n\n if (!IS_PURE && isCallable(NativePromiseConstructor) && NativePromisePrototype !== Object.prototype) {\n nativeThen = NativePromisePrototype.then;\n\n if (!NATIVE_PROMISE_SUBCLASSING) {\n // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs\n defineBuiltIn(NativePromisePrototype, 'then', function then(onFulfilled, onRejected) {\n var that = this;\n return new PromiseConstructor(function (resolve, reject) {\n call(nativeThen, that, resolve, reject);\n }).then(onFulfilled, onRejected);\n // https://github.com/zloirock/core-js/issues/640\n }, { unsafe: true });\n }\n\n // make `.constructor === Promise` work for native promise-based APIs\n try {\n delete NativePromisePrototype.constructor;\n } catch (error) { /* empty */ }\n\n // make `instanceof Promise` work for native promise-based APIs\n if (setPrototypeOf) {\n setPrototypeOf(NativePromisePrototype, PromisePrototype);\n }\n }\n}\n\n$({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {\n Promise: PromiseConstructor\n});\n\nsetToStringTag(PromiseConstructor, PROMISE, false, true);\nsetSpecies(PROMISE);\n","var wellKnownSymbol = require('../internals/well-known-symbol');\nvar Iterators = require('../internals/iterators');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar ArrayPrototype = Array.prototype;\n\n// check on default Array iterator\nmodule.exports = function (it) {\n return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it);\n};\n","var classof = require('../internals/classof');\nvar getMethod = require('../internals/get-method');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar Iterators = require('../internals/iterators');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\n\nmodule.exports = function (it) {\n if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR)\n || getMethod(it, '@@iterator')\n || Iterators[classof(it)];\n};\n","var call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar anObject = require('../internals/an-object');\nvar tryToString = require('../internals/try-to-string');\nvar getIteratorMethod = require('../internals/get-iterator-method');\n\nvar $TypeError = TypeError;\n\nmodule.exports = function (argument, usingIterator) {\n var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator;\n if (aCallable(iteratorMethod)) return anObject(call(iteratorMethod, argument));\n throw $TypeError(tryToString(argument) + ' is not iterable');\n};\n","var call = require('../internals/function-call');\nvar anObject = require('../internals/an-object');\nvar getMethod = require('../internals/get-method');\n\nmodule.exports = function (iterator, kind, value) {\n var innerResult, innerError;\n anObject(iterator);\n try {\n innerResult = getMethod(iterator, 'return');\n if (!innerResult) {\n if (kind === 'throw') throw value;\n return value;\n }\n innerResult = call(innerResult, iterator);\n } catch (error) {\n innerError = true;\n innerResult = error;\n }\n if (kind === 'throw') throw value;\n if (innerError) throw innerResult;\n anObject(innerResult);\n return value;\n};\n","var bind = require('../internals/function-bind-context');\nvar call = require('../internals/function-call');\nvar anObject = require('../internals/an-object');\nvar tryToString = require('../internals/try-to-string');\nvar isArrayIteratorMethod = require('../internals/is-array-iterator-method');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar getIterator = require('../internals/get-iterator');\nvar getIteratorMethod = require('../internals/get-iterator-method');\nvar iteratorClose = require('../internals/iterator-close');\n\nvar $TypeError = TypeError;\n\nvar Result = function (stopped, result) {\n this.stopped = stopped;\n this.result = result;\n};\n\nvar ResultPrototype = Result.prototype;\n\nmodule.exports = function (iterable, unboundFunction, options) {\n var that = options && options.that;\n var AS_ENTRIES = !!(options && options.AS_ENTRIES);\n var IS_RECORD = !!(options && options.IS_RECORD);\n var IS_ITERATOR = !!(options && options.IS_ITERATOR);\n var INTERRUPTED = !!(options && options.INTERRUPTED);\n var fn = bind(unboundFunction, that);\n var iterator, iterFn, index, length, result, next, step;\n\n var stop = function (condition) {\n if (iterator) iteratorClose(iterator, 'normal', condition);\n return new Result(true, condition);\n };\n\n var callFn = function (value) {\n if (AS_ENTRIES) {\n anObject(value);\n return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);\n } return INTERRUPTED ? fn(value, stop) : fn(value);\n };\n\n if (IS_RECORD) {\n iterator = iterable.iterator;\n } else if (IS_ITERATOR) {\n iterator = iterable;\n } else {\n iterFn = getIteratorMethod(iterable);\n if (!iterFn) throw $TypeError(tryToString(iterable) + ' is not iterable');\n // optimisation for array iterators\n if (isArrayIteratorMethod(iterFn)) {\n for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {\n result = callFn(iterable[index]);\n if (result && isPrototypeOf(ResultPrototype, result)) return result;\n } return new Result(false);\n }\n iterator = getIterator(iterable, iterFn);\n }\n\n next = IS_RECORD ? iterable.next : iterator.next;\n while (!(step = call(next, iterator)).done) {\n try {\n result = callFn(step.value);\n } catch (error) {\n iteratorClose(iterator, 'throw', error);\n }\n if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;\n } return new Result(false);\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar SAFE_CLOSING = false;\n\ntry {\n var called = 0;\n var iteratorWithReturn = {\n next: function () {\n return { done: !!called++ };\n },\n 'return': function () {\n SAFE_CLOSING = true;\n }\n };\n iteratorWithReturn[ITERATOR] = function () {\n return this;\n };\n // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing\n Array.from(iteratorWithReturn, function () { throw 2; });\n} catch (error) { /* empty */ }\n\nmodule.exports = function (exec, SKIP_CLOSING) {\n if (!SKIP_CLOSING && !SAFE_CLOSING) return false;\n var ITERATION_SUPPORT = false;\n try {\n var object = {};\n object[ITERATOR] = function () {\n return {\n next: function () {\n return { done: ITERATION_SUPPORT = true };\n }\n };\n };\n exec(object);\n } catch (error) { /* empty */ }\n return ITERATION_SUPPORT;\n};\n","var NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');\nvar FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;\n\nmodule.exports = FORCED_PROMISE_CONSTRUCTOR || !checkCorrectnessOfIteration(function (iterable) {\n NativePromiseConstructor.all(iterable).then(undefined, function () { /* empty */ });\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar perform = require('../internals/perform');\nvar iterate = require('../internals/iterate');\nvar PROMISE_STATICS_INCORRECT_ITERATION = require('../internals/promise-statics-incorrect-iteration');\n\n// `Promise.all` method\n// https://tc39.es/ecma262/#sec-promise.all\n$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {\n all: function all(iterable) {\n var C = this;\n var capability = newPromiseCapabilityModule.f(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform(function () {\n var $promiseResolve = aCallable(C.resolve);\n var values = [];\n var counter = 0;\n var remaining = 1;\n iterate(iterable, function (promise) {\n var index = counter++;\n var alreadyCalled = false;\n remaining++;\n call($promiseResolve, C, promise).then(function (value) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[index] = value;\n --remaining || resolve(values);\n }, reject);\n });\n --remaining || resolve(values);\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar defineBuiltIn = require('../internals/define-built-in');\n\nvar NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;\n\n// `Promise.prototype.catch` method\n// https://tc39.es/ecma262/#sec-promise.prototype.catch\n$({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR, real: true }, {\n 'catch': function (onRejected) {\n return this.then(undefined, onRejected);\n }\n});\n\n// makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`\nif (!IS_PURE && isCallable(NativePromiseConstructor)) {\n var method = getBuiltIn('Promise').prototype['catch'];\n if (NativePromisePrototype['catch'] !== method) {\n defineBuiltIn(NativePromisePrototype, 'catch', method, { unsafe: true });\n }\n}\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar perform = require('../internals/perform');\nvar iterate = require('../internals/iterate');\nvar PROMISE_STATICS_INCORRECT_ITERATION = require('../internals/promise-statics-incorrect-iteration');\n\n// `Promise.race` method\n// https://tc39.es/ecma262/#sec-promise.race\n$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {\n race: function race(iterable) {\n var C = this;\n var capability = newPromiseCapabilityModule.f(C);\n var reject = capability.reject;\n var result = perform(function () {\n var $promiseResolve = aCallable(C.resolve);\n iterate(iterable, function (promise) {\n call($promiseResolve, C, promise).then(capability.resolve, reject);\n });\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;\n\n// `Promise.reject` method\n// https://tc39.es/ecma262/#sec-promise.reject\n$({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {\n reject: function reject(r) {\n var capability = newPromiseCapabilityModule.f(this);\n call(capability.reject, undefined, r);\n return capability.promise;\n }\n});\n","var anObject = require('../internals/an-object');\nvar isObject = require('../internals/is-object');\nvar newPromiseCapability = require('../internals/new-promise-capability');\n\nmodule.exports = function (C, x) {\n anObject(C);\n if (isObject(x) && x.constructor === C) return x;\n var promiseCapability = newPromiseCapability.f(C);\n var resolve = promiseCapability.resolve;\n resolve(x);\n return promiseCapability.promise;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar getBuiltIn = require('../internals/get-built-in');\nvar IS_PURE = require('../internals/is-pure');\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;\nvar promiseResolve = require('../internals/promise-resolve');\n\nvar PromiseConstructorWrapper = getBuiltIn('Promise');\nvar CHECK_WRAPPER = IS_PURE && !FORCED_PROMISE_CONSTRUCTOR;\n\n// `Promise.resolve` method\n// https://tc39.es/ecma262/#sec-promise.resolve\n$({ target: 'Promise', stat: true, forced: IS_PURE || FORCED_PROMISE_CONSTRUCTOR }, {\n resolve: function resolve(x) {\n return promiseResolve(CHECK_WRAPPER && this === PromiseConstructorWrapper ? NativePromiseConstructor : this, x);\n }\n});\n","var classof = require('../internals/classof');\n\nvar $String = String;\n\nmodule.exports = function (argument) {\n if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');\n return $String(argument);\n};\n","'use strict';\nvar anObject = require('../internals/an-object');\n\n// `RegExp.prototype.flags` getter implementation\n// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags\nmodule.exports = function () {\n var that = anObject(this);\n var result = '';\n if (that.hasIndices) result += 'd';\n if (that.global) result += 'g';\n if (that.ignoreCase) result += 'i';\n if (that.multiline) result += 'm';\n if (that.dotAll) result += 's';\n if (that.unicode) result += 'u';\n if (that.unicodeSets) result += 'v';\n if (that.sticky) result += 'y';\n return result;\n};\n","var fails = require('../internals/fails');\nvar global = require('../internals/global');\n\n// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError\nvar $RegExp = global.RegExp;\n\nvar UNSUPPORTED_Y = fails(function () {\n var re = $RegExp('a', 'y');\n re.lastIndex = 2;\n return re.exec('abcd') != null;\n});\n\n// UC Browser bug\n// https://github.com/zloirock/core-js/issues/1008\nvar MISSED_STICKY = UNSUPPORTED_Y || fails(function () {\n return !$RegExp('a', 'y').sticky;\n});\n\nvar BROKEN_CARET = UNSUPPORTED_Y || fails(function () {\n // https://bugzilla.mozilla.org/show_bug.cgi?id=773687\n var re = $RegExp('^r', 'gy');\n re.lastIndex = 2;\n return re.exec('str') != null;\n});\n\nmodule.exports = {\n BROKEN_CARET: BROKEN_CARET,\n MISSED_STICKY: MISSED_STICKY,\n UNSUPPORTED_Y: UNSUPPORTED_Y\n};\n","var fails = require('../internals/fails');\nvar global = require('../internals/global');\n\n// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError\nvar $RegExp = global.RegExp;\n\nmodule.exports = fails(function () {\n var re = $RegExp('.', 's');\n return !(re.dotAll && re.exec('\\n') && re.flags === 's');\n});\n","var fails = require('../internals/fails');\nvar global = require('../internals/global');\n\n// babel-minify and Closure Compiler transpiles RegExp('(?b)', 'g') -> /(?b)/g and it causes SyntaxError\nvar $RegExp = global.RegExp;\n\nmodule.exports = fails(function () {\n var re = $RegExp('(?b)', 'g');\n return re.exec('b').groups.a !== 'b' ||\n 'b'.replace(re, '$c') !== 'bc';\n});\n","'use strict';\n/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */\n/* eslint-disable regexp/no-useless-quantifier -- testing */\nvar call = require('../internals/function-call');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar toString = require('../internals/to-string');\nvar regexpFlags = require('../internals/regexp-flags');\nvar stickyHelpers = require('../internals/regexp-sticky-helpers');\nvar shared = require('../internals/shared');\nvar create = require('../internals/object-create');\nvar getInternalState = require('../internals/internal-state').get;\nvar UNSUPPORTED_DOT_ALL = require('../internals/regexp-unsupported-dot-all');\nvar UNSUPPORTED_NCG = require('../internals/regexp-unsupported-ncg');\n\nvar nativeReplace = shared('native-string-replace', String.prototype.replace);\nvar nativeExec = RegExp.prototype.exec;\nvar patchedExec = nativeExec;\nvar charAt = uncurryThis(''.charAt);\nvar indexOf = uncurryThis(''.indexOf);\nvar replace = uncurryThis(''.replace);\nvar stringSlice = uncurryThis(''.slice);\n\nvar UPDATES_LAST_INDEX_WRONG = (function () {\n var re1 = /a/;\n var re2 = /b*/g;\n call(nativeExec, re1, 'a');\n call(nativeExec, re2, 'a');\n return re1.lastIndex !== 0 || re2.lastIndex !== 0;\n})();\n\nvar UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;\n\n// nonparticipating capturing group, copied from es5-shim's String#split patch.\nvar NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;\n\nvar PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;\n\nif (PATCH) {\n patchedExec = function exec(string) {\n var re = this;\n var state = getInternalState(re);\n var str = toString(string);\n var raw = state.raw;\n var result, reCopy, lastIndex, match, i, object, group;\n\n if (raw) {\n raw.lastIndex = re.lastIndex;\n result = call(patchedExec, raw, str);\n re.lastIndex = raw.lastIndex;\n return result;\n }\n\n var groups = state.groups;\n var sticky = UNSUPPORTED_Y && re.sticky;\n var flags = call(regexpFlags, re);\n var source = re.source;\n var charsAdded = 0;\n var strCopy = str;\n\n if (sticky) {\n flags = replace(flags, 'y', '');\n if (indexOf(flags, 'g') === -1) {\n flags += 'g';\n }\n\n strCopy = stringSlice(str, re.lastIndex);\n // Support anchored sticky behavior.\n if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt(str, re.lastIndex - 1) !== '\\n')) {\n source = '(?: ' + source + ')';\n strCopy = ' ' + strCopy;\n charsAdded++;\n }\n // ^(? + rx + ) is needed, in combination with some str slicing, to\n // simulate the 'y' flag.\n reCopy = new RegExp('^(?:' + source + ')', flags);\n }\n\n if (NPCG_INCLUDED) {\n reCopy = new RegExp('^' + source + '$(?!\\\\s)', flags);\n }\n if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;\n\n match = call(nativeExec, sticky ? reCopy : re, strCopy);\n\n if (sticky) {\n if (match) {\n match.input = stringSlice(match.input, charsAdded);\n match[0] = stringSlice(match[0], charsAdded);\n match.index = re.lastIndex;\n re.lastIndex += match[0].length;\n } else re.lastIndex = 0;\n } else if (UPDATES_LAST_INDEX_WRONG && match) {\n re.lastIndex = re.global ? match.index + match[0].length : lastIndex;\n }\n if (NPCG_INCLUDED && match && match.length > 1) {\n // Fix browsers whose `exec` methods don't consistently return `undefined`\n // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/\n call(nativeReplace, match[0], reCopy, function () {\n for (i = 1; i < arguments.length - 2; i++) {\n if (arguments[i] === undefined) match[i] = undefined;\n }\n });\n }\n\n if (match && groups) {\n match.groups = object = create(null);\n for (i = 0; i < groups.length; i++) {\n group = groups[i];\n object[group[0]] = match[group[1]];\n }\n }\n\n return match;\n };\n}\n\nmodule.exports = patchedExec;\n","'use strict';\nvar $ = require('../internals/export');\nvar exec = require('../internals/regexp-exec');\n\n// `RegExp.prototype.exec` method\n// https://tc39.es/ecma262/#sec-regexp.prototype.exec\n$({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {\n exec: exec\n});\n","/**\n * Provide feature detection\n * @class Features\n */\nexport class Features {\n /**\n * If the browser has WebGL support\n * @property {boolean} webgl\n */\n static get webgl() {\n const canvas = document.createElement('canvas');\n\n return !!(\n canvas &&\n (canvas.getContext('webgl') || canvas.getContext('experimental-webgl'))\n );\n }\n\n /**\n * If the browser has Canvas support\n * @property {boolean} canvas\n */\n static get canvas() {\n const canvas = document.createElement('canvas');\n return !!(canvas !== null && canvas.getContext && canvas.getContext('2d'));\n }\n\n /**\n * If the browser has WebAudio API support\n * @property {boolean} webaudio\n */\n static get webaudio() {\n return 'webkitAudioContext' in window || 'AudioContext' in window;\n }\n\n /**\n * If the browser has HTMLAudio support\n * @property {boolean} htmlAudio\n */\n static get htmlAudio() {\n return 'HTMLAudioElement' in window;\n }\n\n /**\n * If the browser has Web Sockets API\n * @property {boolean} websockets\n */\n static get websockets() {\n return 'WebSocket' in window || 'MozWebSocket' in window;\n }\n\n /**\n * If the browser has Geolocation API\n * @property {boolean} geolocation\n */\n static get geolocation() {\n return 'geolocation' in navigator;\n }\n\n /**\n * If the browser has Web Workers API\n * @property {boolean} webworkers\n */\n static get webworkers() {\n return 'function' === typeof Worker;\n }\n\n /**\n * If the browser has touch\n * @property {boolean} touch\n */\n static get touch() {\n return !!(\n 'ontouchstart' in window || // iOS & Android\n (navigator.msPointerEnabled && navigator.msMaxTouchPoints > 0) || // IE10\n (navigator.pointerEnabled && navigator.maxTouchPoints > 0)\n ); // IE11+\n }\n\n /**\n * Test for basic browser compatiliblity\n * @method basic\n * @static\n * @return {String} The error message, if fails\n */\n static basic() {\n if (!Features.canvas) {\n return 'Browser does not support canvas';\n } else if (!Features.webaudio && !Features.htmlAudio) {\n return 'Browser does not support WebAudio or HTMLAudio';\n }\n return null;\n }\n\n /**\n * See if the current bowser has the correct features\n * @method test\n * @static\n * @param {object} capabilities The capabilities\n * @param {object} [capabilities.features] The features\n * @param {object} [capabilities.features.webgl] WebGL required\n * @param {object} [capabilities.features.geolocation] Geolocation required\n * @param {object} [capabilities.features.webworkers] Web Workers API required\n * @param {object} [capabilities.features.webaudio] WebAudio API required\n * @param {object} [capabilities.features.websockets] WebSockets required\n * @param {object} [capabilities.sizes] The sizes\n * @param {Boolean} [capabilities.sizes.xsmall] Screens < 480\n * @param {Boolean} [capabilities.sizes.small] Screens < 768\n * @param {Boolean} [capabilities.sizes.medium] Screens < 992\n * @param {Boolean} [capabilities.sizes.large] Screens < 1200\n * @param {Boolean} [capabilities.sizes.xlarge] Screens >= 1200\n * @param {object} [capabilities.ui] The ui\n * @param {Boolean} [capabilities.ui.touch] Touch capable\n * @return {String|null} The error, or else returns null\n */\n static test(capabilities) {\n // check for basic compatibility\n const err = this.basic();\n if (err) {\n return err;\n }\n\n const features = capabilities.features;\n const ui = capabilities.ui;\n const sizes = capabilities.sizes;\n\n for (const name in features) {\n if (features[name] === true && !Features[name]) {\n // Failed built-in feature check\n return 'Browser does not support ' + name;\n }\n }\n\n // Failed negative touch requirement\n if (!ui.touch && Features.touch) {\n return 'Game does not support touch input';\n }\n\n // Check the sizes\n const size = Math.max(window.screen.width, window.screen.height);\n\n if (!sizes.xsmall && size < 480) {\n return 'Game doesn\\'t support extra small screens';\n }\n if (!sizes.small && size < 768) {\n return 'Game doesn\\'t support small screens';\n }\n if (!sizes.medium && size < 992) {\n return 'Game doesn\\'t support medium screens';\n }\n if (!sizes.large && size < 1200) {\n return 'Game doesn\\'t support large screens';\n }\n if (!sizes.xlarge && size >= 1200) {\n return 'Game doesn\\'t support extra large screens';\n }\n return null;\n }\n\n /**\n * Returns browser feature support info\n * @returns {string}\n */\n static get info() {\n return `Browser Feature Detection\n\t\t\t\tCanvas support ${Features.canvas ? '\\u2713' : '\\u00D7'}\n\t\t\t\tWebGL support ${Features.webgl ? '\\u2713' : '\\u00D7'}\n\t\t\t\tWebAudio support ${Features.webAudio ? '\\u2713' : '\\u00D7'}`;\n }\n}\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\nvar toString = require('../internals/to-string');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar charAt = uncurryThis(''.charAt);\nvar charCodeAt = uncurryThis(''.charCodeAt);\nvar stringSlice = uncurryThis(''.slice);\n\nvar createMethod = function (CONVERT_TO_STRING) {\n return function ($this, pos) {\n var S = toString(requireObjectCoercible($this));\n var position = toIntegerOrInfinity(pos);\n var size = S.length;\n var first, second;\n if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;\n first = charCodeAt(S, position);\n return first < 0xD800 || first > 0xDBFF || position + 1 === size\n || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF\n ? CONVERT_TO_STRING\n ? charAt(S, position)\n : first\n : CONVERT_TO_STRING\n ? stringSlice(S, position, position + 2)\n : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;\n };\n};\n\nmodule.exports = {\n // `String.prototype.codePointAt` method\n // https://tc39.es/ecma262/#sec-string.prototype.codepointat\n codeAt: createMethod(false),\n // `String.prototype.at` method\n // https://github.com/mathiasbynens/String.prototype.at\n charAt: createMethod(true)\n};\n","'use strict';\nvar charAt = require('../internals/string-multibyte').charAt;\nvar toString = require('../internals/to-string');\nvar InternalStateModule = require('../internals/internal-state');\nvar defineIterator = require('../internals/iterator-define');\nvar createIterResultObject = require('../internals/create-iter-result-object');\n\nvar STRING_ITERATOR = 'String Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(STRING_ITERATOR);\n\n// `String.prototype[@@iterator]` method\n// https://tc39.es/ecma262/#sec-string.prototype-@@iterator\ndefineIterator(String, 'String', function (iterated) {\n setInternalState(this, {\n type: STRING_ITERATOR,\n string: toString(iterated),\n index: 0\n });\n// `%StringIteratorPrototype%.next` method\n// https://tc39.es/ecma262/#sec-%stringiteratorprototype%.next\n}, function next() {\n var state = getInternalState(this);\n var string = state.string;\n var index = state.index;\n var point;\n if (index >= string.length) return createIterResultObject(undefined, true);\n point = charAt(string, index);\n state.index += point.length;\n return createIterResultObject(point, false);\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $filter = require('../internals/array-iteration').filter;\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');\n\n// `Array.prototype.filter` method\n// https://tc39.es/ecma262/#sec-array.prototype.filter\n// with adding support of @@species\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {\n filter: function filter(callbackfn /* , thisArg */) {\n return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $find = require('../internals/array-iteration').find;\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\nvar FIND = 'find';\nvar SKIPS_HOLES = true;\n\n// Shouldn't skip holes\nif (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });\n\n// `Array.prototype.find` method\n// https://tc39.es/ecma262/#sec-array.prototype.find\n$({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {\n find: function find(callbackfn /* , that = undefined */) {\n return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables(FIND);\n","function t(t,e){return t(e={exports:{}},e.exports),e.exports}var e=t((function(t){function e(t){return(e=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t})(t)}function n(r){return\"function\"==typeof Symbol&&\"symbol\"===e(Symbol.iterator)?t.exports=n=function(t){return e(t)}:t.exports=n=function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":e(t)},n(r)}t.exports=n}));var n=function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")};function r(t,e){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:0;this._listeners[t]||(this._listeners[t]=[]),e._priority=parseInt(n)||0,-1===this._listeners[t].indexOf(e)&&(this._listeners[t].push(e),this._listeners[t].length>1&&this._listeners[t].sort(this.listenerSorter))}},{key:\"listenerSorter\",value:function(t,e){return t._priority-e._priority}},{key:\"off\",value:function(t,e){if(void 0!==this._listeners[t])if(void 0!==e){var n=this._listeners[t].indexOf(e);-11&&void 0!==arguments[1]?arguments[1]:{};if(\"string\"==typeof t&&(t={type:t,data:\"object\"===e(n)&&null!==n?n:{}}),void 0!==this._listeners[t.type])for(var r=this._listeners[t.type].length-1;r>=0;r--)this._listeners[t.type][r](t)}},{key:\"destroy\",value:function(){this._listeners={}}}]),t}(),s=t((function(t){var e=function(t){var e,n=Object.prototype,r=n.hasOwnProperty,o=\"function\"==typeof Symbol?Symbol:{},i=o.iterator||\"@@iterator\",s=o.asyncIterator||\"@@asyncIterator\",a=o.toStringTag||\"@@toStringTag\";function c(t,e,n,r){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),s=new S(r||[]);return i._invoke=function(t,e,n){var r=h;return function(o,i){if(r===f)throw new Error(\"Generator is already running\");if(r===p){if(\"throw\"===o)throw i;return P()}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var a=O(s,n);if(a){if(a===y)continue;return a}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(r===h)throw r=p,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);r=f;var c=u(t,e,n);if(\"normal\"===c.type){if(r=n.done?p:l,c.arg===y)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(r=p,n.method=\"throw\",n.arg=c.arg)}}}(t,n,s),i}function u(t,e,n){try{return{type:\"normal\",arg:t.call(e,n)}}catch(t){return{type:\"throw\",arg:t}}}t.wrap=c;var h=\"suspendedStart\",l=\"suspendedYield\",f=\"executing\",p=\"completed\",y={};function d(){}function v(){}function g(){}var m={};m[i]=function(){return this};var w=Object.getPrototypeOf,b=w&&w(w(j([])));b&&b!==n&&r.call(b,i)&&(m=b);var _=g.prototype=d.prototype=Object.create(m);function x(t){[\"next\",\"throw\",\"return\"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function L(t){function e(n,o,i,s){var a=u(t[n],t,o);if(\"throw\"!==a.type){var c=a.arg,h=c.value;return h&&\"object\"==typeof h&&r.call(h,\"__await\")?Promise.resolve(h.__await).then((function(t){e(\"next\",t,i,s)}),(function(t){e(\"throw\",t,i,s)})):Promise.resolve(h).then((function(t){c.value=t,i(c)}),(function(t){return e(\"throw\",t,i,s)}))}s(a.arg)}var n;this._invoke=function(t,r){function o(){return new Promise((function(n,o){e(t,r,n,o)}))}return n=n?n.then(o,o):o()}}function O(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,\"throw\"===n.method){if(t.iterator.return&&(n.method=\"return\",n.arg=e,O(t,n),\"throw\"===n.method))return y;n.method=\"throw\",n.arg=new TypeError(\"The iterator does not provide a 'throw' method\")}return y}var o=u(r,t.iterator,n.arg);if(\"throw\"===o.type)return n.method=\"throw\",n.arg=o.arg,n.delegate=null,y;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,\"return\"!==n.method&&(n.method=\"next\",n.arg=e),n.delegate=null,y):i:(n.method=\"throw\",n.arg=new TypeError(\"iterator result is not an object\"),n.delegate=null,y)}function E(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 k(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(E,this),this.reset(!0)}function j(t){if(t){var n=t[i];if(n)return n.call(t);if(\"function\"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,s=function n(){for(;++o=0;--i){var s=this.tryEntries[i],a=s.completion;if(\"root\"===s.tryLoc)return o(\"end\");if(s.tryLoc<=this.prev){var c=r.call(s,\"catchLoc\"),u=r.call(s,\"finallyLoc\");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,\"finallyLoc\")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),y}},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;k(n)}return o}}throw new Error(\"illegal catch attempt\")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},\"next\"===this.method&&(this.arg=e),y}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function(\"r\",\"regeneratorRuntime = r\")(e)}}));var a=function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t};var c=function(t,n){return!n||\"object\"!==e(n)&&\"function\"!=typeof n?a(t):n},u=t((function(t){function e(n){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},e(n)}t.exports=e}));var h=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t},l=t((function(t){function e(n,r,o){return\"undefined\"!=typeof Reflect&&Reflect.get?t.exports=e=Reflect.get:t.exports=e=function(t,e,n){var r=h(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}},e(n,r,o||n)}t.exports=e})),f=t((function(t){function e(n,r){return t.exports=e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},e(n,r)}t.exports=e}));var p=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&&f(t,e)},y=function(t){function r(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100*Math.random()|0;return n(this,r),(t=c(this,u(r).call(this))).id=\"BELLHOP:\".concat(e),t.connected=!1,t.isChild=!0,t.connecting=!1,t.debug=!1,t.origin=\"*\",t._sendLater=[],t.iframe=null,t.receive=t.receive.bind(a(t)),t}return p(r,i),o(r,[{key:\"receive\",value:function(t){if(this.target===t.source)if(this.logDebugMessage(!0,t),\"connected\"===t.data)this.onConnectionReceived(t.data);else{var n=t.data;if(\"string\"==typeof n)try{n=JSON.parse(n)}catch(t){console.warn(\"Bellhop error: \",t)}this.connected&&\"object\"===e(n)&&n.type&&this.trigger(n)}}},{key:\"onConnectionReceived\",value:function(t){if(this.connecting=!1,this.connected=!0,!this.isChild){if(!this.target)return;this.target.postMessage(t,this.origin)}for(var e=0;e1&&void 0!==arguments[1]?arguments[1]:\"*\";this.connecting||(this.disconnect(),this.connecting=!0,t instanceof HTMLIFrameElement&&(this.iframe=t),this.isChild=void 0===t,this.supported=!0,this.isChild&&(this.supported=window!=t),this.origin=e,window.addEventListener(\"message\",this.receive),this.isChild&&(window===this.target?this.trigger(\"failed\"):this.target.postMessage(\"connected\",this.origin)))}},{key:\"disconnect\",value:function(){this.connected=!1,this.connecting=!1,this.origin=null,this.iframe=null,this.isChild=!0,this._sendLater.length=0,window.removeEventListener(\"message\",this.receive)}},{key:\"send\",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(\"string\"!=typeof t)throw\"The event type must be a string\";var n={type:t,data:e};this.logDebugMessage(!1,n),this.connecting?this._sendLater.push(n):this.target.postMessage(JSON.stringify(n),this.origin)}},{key:\"fetch\",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!this.connecting&&!this.connected)throw\"No connection, please call connect() first\";var i=function t(r){o&&n.off(r.type,t),e(r)};this.on(t,i),this.send(t,r)}},{key:\"respond\",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this,o=function t(o){return s.async((function(i){for(;;)switch(i.prev=i.next){case 0:if(n&&r.off(o,t),\"function\"!=typeof e){i.next=10;break}return i.t0=r,i.t1=o.type,i.next=6,s.awrap(e());case 6:i.t2=i.sent,i.t0.send.call(i.t0,i.t1,i.t2),i.next=11;break;case 10:r.send(o.type,e);case 11:case\"end\":return i.stop()}}))};this.on(t,o)}},{key:\"logDebugMessage\",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1?arguments[1]:void 0;this.debug&&\"function\"==typeof this.debug?this.debug({isChild:this.isChild,received:t,message:e}):this.debug&&console.log(\"Bellhop Instance (\".concat(this.isChild?\"Child\":\"Parent\",\") \").concat(t?\"Receieved\":\"Sent\"),e)}},{key:\"destroy\",value:function(){l(u(r.prototype),\"destroy\",this).call(this),this.disconnect(),this._sendLater.length=0}},{key:\"target\",get:function(){return this.isChild?window.parent:this.iframe.contentWindow}}]),r}();export{y as Bellhop,i as BellhopEventDispatcher};\n//# sourceMappingURL=bellhop.js.map\n","/**\n * @typedef {import('./base-plugins/BasePlugin').BasePlugin} BasePlugin\n */\nimport { Bellhop } from 'bellhop-iframe';\n/**\n *\n *\n * @export\n * @class PluginManager\n */\nexport default class PluginManager {\n /**\n *Creates an instance of PluginManager.\n * @memberof PluginManager\n */\n constructor({ plugins = [] }) {\n this.client = new Bellhop();\n // @ts-ignore\n this.client.hidden = this.client.receive.bind(this.client);\n // @ts-ignore\n this.client.hiddenSend = this.client.send.bind(this.client);\n this.client.receive = function (event) {\n this.hidden(event);\n }.bind(this.client);\n this.client.send = function (event, data) {\n this.hiddenSend(event, data);\n }.bind(this.client);\n\n this.plugins = plugins;\n }\n\n /**\n *\n *\n * @returns\n * @memberof PluginManager\n */\n setupPlugins() {\n const preloads = [];\n for (let i = 0, l = this.plugins.length; i < l; i++) {\n if (!this.plugins[i].preload) {\n continue;\n }\n\n preloads.push(\n this.plugins[i].preload(this).catch(function preloadFail(error) {\n this.plugins[i].preloadFailed = true;\n console.warn(this.plugins[i].name, 'Preload Failed:', error);\n }.bind(this))\n );\n }\n\n // ~wait for all preloads to resolve\n return Promise.all(preloads).then(() => {\n // Remove plugins that fail to load.\n this.plugins = this.plugins.filter(\n plugin => plugin.preloadFailed !== true\n );\n\n //init\n this.plugins.forEach(plugin => {\n if (!plugin.init) {\n return;\n }\n\n plugin.init(this);\n });\n\n //start\n this.plugins.forEach(plugin => {\n if (!plugin.start) {\n return;\n }\n plugin.start(this);\n });\n });\n }\n\n /**\n * Registers a plugin to be used by PluginManagers, sorting it by priority order.\n * @param {BasePlugin} plugin The plugin to register.\n */\n uses(plugin) {\n this.plugins.push(plugin);\n }\n\n /**\n * Finds a plugin by name.\n * @param {string} name The name of the plugin.\n * @returns {BasePlugin}\n */\n getPlugin(name) {\n return this.plugins.find(function (plugin) {\n return plugin.name === name;\n });\n }\n}\n","import 'whatwg-fetch';\n\nimport { Features } from './Features';\nimport PluginManager from './PluginManager';\n// @ts-ignore\nimport { version } from '../package.json';\n\n/**\n * The application container\n * @class Container\n * @property {Bellhop} client Communication layer between the container and application\n * @property {boolean} loaded Check to see if a application is loaded\n * @property {boolean} loading Check to see if a application is loading\n * @property {object} release The current release data\n * @property {HTMLIFrameElement} iframe The DOM object for the iframe\n * @static @property {string} version The current version of the library\n */\nexport class Container extends PluginManager {\n /**\n *Creates an instance of Container.\n * @param {object} config\n * @param {string | HTMLIFrameElement} iframeOrSelector\n * @param {Array | null} [config.plugins]\n * @param {object | null} [config.context={}]\n * @memberof Container\n */\n constructor(iframeOrSelector, { plugins, context = {} } = {}) {\n super({ plugins });\n\n this.iframe = iframeOrSelector instanceof HTMLIFrameElement ? iframeOrSelector : document.querySelector(iframeOrSelector);\n\n if (null === this.iframe) {\n throw new Error('No iframe was found with the provided selector');\n }\n\n this.loaded = false;\n this.loading = false;\n this.release = null;\n\n // context object that plugins can pick up on\n this._context = context;\n\n this.onLoading = this.onLoading.bind(this);\n this.onLoadDone = this.onLoadDone.bind(this);\n this.onLoadDone = this.onLoadDone.bind(this);\n this.onEndGame = this.onEndGame.bind(this);\n this.onLocalError = this.onLocalError.bind(this);\n\n this.initClient();\n this.setupPlugins();\n }\n\n /**\n * The game is starting to load\n * @memberof Container\n */\n onLoading() {\n this.client.trigger('opening');\n }\n\n /**\n * Reset the mutes for audio and captions\n * @memberof Container\n */\n onLoadDone() {\n this.loading = false;\n this.loaded = true;\n this.iframe.classList.remove('loading');\n\n this.client.trigger('opened');\n }\n\n /**\n * The application ended and destroyed itself\n * @memberof Container\n */\n onEndGame() {\n this.reset();\n }\n /**\n * Handle the local errors\n * @method onLocalError\n * @private\n * @param {Event} $event Bellhop event\n */\n onLocalError($event) {\n console.error('SpringRoll Container error: ', $event, new Error().stack);\n }\n\n /**\n * Reset all the buttons back to their original setting\n * and clear the iframe.\n * @memberof Container\n */\n reset() {\n const wasLoaded = this.loaded || this.loading;\n\n if (wasLoaded) {\n this.client.trigger('closed');\n }\n\n // Reset state\n this.loaded = false;\n this.loading = false;\n\n // Clear the iframe src location\n this.iframe.setAttribute('src', '');\n this.iframe.classList.remove('loading');\n }\n\n /**\n * Set up communication layer between site and application.\n * May be called from subclasses if they create/destroy Bellhop instances.\n * @memberof Container\n */\n initClient() {\n //Handle bellhop events coming from the application\n this.client.on('loading', this.onLoading);\n this.client.on('loaded', this.onLoadDone);\n this.client.on('loadDone', this.onLoadDone);\n this.client.on('endGame', this.onEndGame);\n this.client.on('localError', this.onLocalError);\n // @ts-ignore\n this.client.connect(this.iframe);\n }\n\n /**\n * If there was an error when closing, reset the container\n * @memberof Container\n */\n _onCloseFailed() {\n this.reset(); // force close the app\n }\n\n /**\n * Open a application or path\n * @param {string} userPath The full path to the application to load\n * @param {object} [userOptions] The open options\n * @param {boolean} [userOptions.singlePlay=false] If we should play in single play mode\n * @param {object | null} [userOptions.playOptions=null] The optional play options\n * @memberof Container\n */\n _internalOpen(userPath, { singlePlay = false, playOptions = null } = {}) {\n const options = { singlePlay, playOptions };\n this.reset();\n\n this.loading = true;\n this.initClient();\n\n const err = Features.basic();\n if (err) {\n console.error('ERROR:', err);\n this.client.trigger('unsupported');\n }\n\n let path = userPath;\n if (null !== options.playOptions) {\n const playOptionsQueryString =\n 'playOptions=' +\n encodeURIComponent(JSON.stringify(options.playOptions));\n\n path =\n -1 === userPath.indexOf('?')\n ? `${userPath}?${playOptionsQueryString}`\n : `${userPath}&${playOptionsQueryString}`;\n }\n\n this.iframe.classList.add('loading');\n this.iframe.setAttribute('src', path);\n\n this.client.respond('singlePlay', singlePlay);\n this.client.respond('playOptions', playOptions);\n this.client.trigger('open');\n }\n\n /**\n *\n *\n * @param {string} path\n * @param {object} [options={}]\n * @memberof Container\n */\n openPath(path, options = {}) {\n // This should be deprecated, support for old function signature\n if ('object' !== typeof options) {\n console.warn(\n 'SpringRoll Container.openPath was passed a invalid options parameter. Using default parameters instead'\n );\n options = {};\n }\n\n this._internalOpen(\n path,\n Object.assign(\n {\n singlePlay: false,\n playOptions: {}\n },\n options\n )\n );\n }\n\n /**\n * Open application based on an API Call to SpringRoll Connect\n * @param {string} api\n * @param {object} options\n * @param {string} [options.query='']\n * @param {boolean} [options.singlePlay=false]\n * @param {null | object} [options.playOptions=null]\n * @returns {Promise}\n * @memberof Container\n */\n async openRemote(\n api,\n { query = '', singlePlay = false, playOptions = null } = {}\n ) {\n this.release = null;\n\n const response = await fetch(api, {\n headers: {\n 'Content-Type': 'application/json'\n }\n });\n\n const json = await response.json();\n\n // if SpringRollConnect denoted that something failed, send that error back\n if (!json.success) {\n throw new Error(json.error);\n }\n\n // If the browser doesn't support the capabilities requested by this game, also fail.\n const release = json.data;\n const error = Features.test(release.capabilities);\n if (error) {\n this.client.trigger('unsupported', { error });\n throw new Error(error);\n }\n\n // otherwise, open the game\n this.release = release;\n this._internalOpen(release.url + query, {\n singlePlay,\n playOptions\n });\n }\n\n /**\n * Destroy and don't use after this\n * @memberof Container\n */\n destroy() {\n this.reset();\n\n this.iframe = null;\n this.options = null;\n this.release = null;\n }\n\n /**\n * Tell the application to start closing\n * @memberof Container\n */\n close() {\n if (this.loading || this.loaded) {\n this.client.trigger('close');\n // Start the close\n this.client.send('close');\n } else {\n this.reset();\n }\n }\n\n /**\n * the current _context object\n * @readonly\n * @memberof Container\n * @return {object}\n */\n get context() {\n return this._context;\n }\n\n /**\n * sets _context object to new object\n * @param {object} context\n * @memberof Container\n */\n set context(newContext) {\n if (typeof newContext !== 'object') {\n console.error('[SpringRollContainer] Context: new context provided is not an object');\n return;\n }\n this._context = newContext;\n }\n\n\n\n /**\n * The current version of SpringRollContainer\n * @readonly\n * @static\n * @return {string}\n * @memberof Container\n */\n static get version() {\n return version;\n }\n}\n","/**\n * Handle the page visiblity change, if supported. Application uses one of these to\n * monitor page visibility. It is suggested that you listen to `pause`, `paused`,\n * or `resumed` events on the Application instead of using one of these yourself.\n *\n * @export\n * @class PageVisibility\n * @constructor\n * @param {Function} onFocus Callback when the page becomes visible\n * @param {Function} onBlur Callback when the page loses visibility\n */\nexport class PageVisibility {\n /**\n *Creates an instance of PageVisibility.\n * @param { function } [onFocus=function() {}]\n * @param { function } [onBlur=function() {}]\n * @memberof PageVisibility\n */\n constructor(onFocus = function() {}, onBlur = function() {}) {\n this._onFocus = onFocus;\n this._onBlur = onBlur;\n this.onFocus = function(e) {\n if (this.enabled) {\n this._onFocus(e);\n }\n }.bind(this);\n this.onBlur = function(e) {\n if (this.enabled) {\n this._onBlur(e);\n }\n }.bind(this);\n this._enabled = false;\n this.enabled = true;\n\n this.onToggle = this.onToggle.bind(this);\n }\n\n /**\n * Disable the detection\n * @memberof PageVisibility\n */\n destroy() {\n this.enabled = false;\n this.onToggle = null;\n this.onFocus = null;\n this.onBlur = null;\n }\n\n /**\n * The visibility toggle listener function\n * @param {Event} $event;\n * @memberof PageVisibility\n */\n onToggle($event) {\n if (this.enabled) {\n document.hidden ? this.onBlur($event) : this.onFocus($event);\n }\n }\n\n /**\n * If this object is enabled.\n * @returns {boolean}\n * @memberof PageVisibility\n */\n get enabled() {\n return this._enabled;\n }\n\n /**\n * Sets the state of the object\n * @memberof PageVisibility\n */\n set enabled(enable) {\n this._enabled = enable;\n\n document.removeEventListener('visibilitychange', this.onToggle, false);\n window.removeEventListener('blur', this.onBlur, false);\n window.removeEventListener('focus', this.onFocus, false);\n window.removeEventListener('pagehide', this.onBlur, false);\n window.removeEventListener('pageshow', this.onFocus, false);\n window.removeEventListener('visibilitychange', this.onToggle, false);\n\n if (this._enabled) {\n document.addEventListener('visibilitychange', this.onToggle, false);\n window.addEventListener('blur', this.onBlur, false);\n window.addEventListener('focus', this.onFocus, false);\n window.addEventListener('pagehide', this.onBlur, false);\n window.addEventListener('pageshow', this.onFocus, false);\n window.addEventListener('visibilitychange', this.onToggle, false);\n }\n }\n}\n","'use strict';\nvar $ = require('../internals/export');\nvar $includes = require('../internals/array-includes').includes;\nvar fails = require('../internals/fails');\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\n// FF99+ bug\nvar BROKEN_ON_SPARSE = fails(function () {\n // eslint-disable-next-line es/no-array-prototype-includes -- detection\n return !Array(1).includes();\n});\n\n// `Array.prototype.includes` method\n// https://tc39.es/ecma262/#sec-array.prototype.includes\n$({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {\n includes: function includes(el /* , fromIndex = 0 */) {\n return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('includes');\n","// a string of all valid unicode whitespaces\nmodule.exports = '\\u0009\\u000A\\u000B\\u000C\\u000D\\u0020\\u00A0\\u1680\\u2000\\u2001\\u2002' +\n '\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF';\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar toString = require('../internals/to-string');\nvar whitespaces = require('../internals/whitespaces');\n\nvar replace = uncurryThis(''.replace);\nvar ltrim = RegExp('^[' + whitespaces + ']+');\nvar rtrim = RegExp('(^|[^' + whitespaces + '])[' + whitespaces + ']+$');\n\n// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation\nvar createMethod = function (TYPE) {\n return function ($this) {\n var string = toString(requireObjectCoercible($this));\n if (TYPE & 1) string = replace(string, ltrim, '');\n if (TYPE & 2) string = replace(string, rtrim, '$1');\n return string;\n };\n};\n\nmodule.exports = {\n // `String.prototype.{ trimLeft, trimStart }` methods\n // https://tc39.es/ecma262/#sec-string.prototype.trimstart\n start: createMethod(1),\n // `String.prototype.{ trimRight, trimEnd }` methods\n // https://tc39.es/ecma262/#sec-string.prototype.trimend\n end: createMethod(2),\n // `String.prototype.trim` method\n // https://tc39.es/ecma262/#sec-string.prototype.trim\n trim: createMethod(3)\n};\n","var PROPER_FUNCTION_NAME = require('../internals/function-name').PROPER;\nvar fails = require('../internals/fails');\nvar whitespaces = require('../internals/whitespaces');\n\nvar non = '\\u200B\\u0085\\u180E';\n\n// check that a method works with the correct list\n// of whitespaces and has a correct name\nmodule.exports = function (METHOD_NAME) {\n return fails(function () {\n return !!whitespaces[METHOD_NAME]()\n || non[METHOD_NAME]() !== non\n || (PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME);\n });\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar $trim = require('../internals/string-trim').trim;\nvar forcedStringTrimMethod = require('../internals/string-trim-forced');\n\n// `String.prototype.trim` method\n// https://tc39.es/ecma262/#sec-string.prototype.trim\n$({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {\n trim: function trim() {\n return $trim(this);\n }\n});\n","var call = require('../internals/function-call');\nvar hasOwn = require('../internals/has-own-property');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar regExpFlags = require('../internals/regexp-flags');\n\nvar RegExpPrototype = RegExp.prototype;\n\nmodule.exports = function (R) {\n var flags = R.flags;\n return flags === undefined && !('flags' in RegExpPrototype) && !hasOwn(R, 'flags') && isPrototypeOf(RegExpPrototype, R)\n ? call(regExpFlags, R) : flags;\n};\n","'use strict';\nvar PROPER_FUNCTION_NAME = require('../internals/function-name').PROPER;\nvar defineBuiltIn = require('../internals/define-built-in');\nvar anObject = require('../internals/an-object');\nvar $toString = require('../internals/to-string');\nvar fails = require('../internals/fails');\nvar getRegExpFlags = require('../internals/regexp-get-flags');\n\nvar TO_STRING = 'toString';\nvar RegExpPrototype = RegExp.prototype;\nvar nativeToString = RegExpPrototype[TO_STRING];\n\nvar NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });\n// FF44- RegExp#toString has a wrong name\nvar INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name != TO_STRING;\n\n// `RegExp.prototype.toString` method\n// https://tc39.es/ecma262/#sec-regexp.prototype.tostring\nif (NOT_GENERIC || INCORRECT_NAME) {\n defineBuiltIn(RegExp.prototype, TO_STRING, function toString() {\n var R = anObject(this);\n var pattern = $toString(R.source);\n var flags = $toString(getRegExpFlags(R));\n return '/' + pattern + '/' + flags;\n }, { unsafe: true });\n}\n","/**\n * The SavedData functions use localStorage and sessionStorage, with a cookie fallback.\n *\n * @class SavedData\n */\nexport class SavedData {\n\n /**\n * Constructor for IndexedDB work\n */\n constructor(dbName = '') {\n this.db = null;\n this.dbName = dbName;\n }\n /**\n * Remove a saved variable by name.\n * @method remove\n * @static\n * @param {String} name The name of the value to remove\n */\n static remove(name) {\n localStorage.removeItem(name);\n sessionStorage.removeItem(name);\n }\n\n /**\n * Save a variable.\n * @method write\n * @static\n * @param {string} name The name of the value to save\n * @param {string} value The value to save. This will be run through JSON.stringify().\n * @param {boolean} [tempOnly=false] If the value should be saved only in the current browser session.\n */\n static write(name, value, tempOnly = false) {\n\n return tempOnly\n ? sessionStorage.setItem(\n name,\n JSON.stringify('function' === typeof value ? value() : value)\n )\n : localStorage.setItem(\n name,\n JSON.stringify('function' === typeof value ? value() : value)\n );\n }\n\n /**\n * Read the value of a saved variable\n * @method read\n * @static\n * @param {String} name The name of the variable\n * @return {*} The value (run through `JSON.parse()`) or null if it doesn't exist\n */\n static read(name) {\n const value = localStorage.getItem(name) || sessionStorage.getItem(name);\n\n if ('string' === typeof value) {\n try {\n return JSON.parse(value);\n } catch (err) {\n return value;\n }\n } else {\n return value;\n }\n }\n\n /**\n * Open a connection with the IDB Database and optionally add or delete\n * Indexes and stores\n *\n * @param {string} dbName The name of your IndexedDB database\n * @param {string} dbVersion The version number of the database. Additions and deletions will be ignored if lower than current version number\n * @param {JSON} additions Any additions to the structure of the database\n * @param {array} additions.stores Any stores to be added into the database syntax: {storeName: '[name]', options: {[optionally add options]}}\n * @param {array} additions.indexes Any Indexes to be added to the database syntax: {storeName: '[name]', options: {[optionally add options]}}\n */\n IDBOpen( dbName, dbVersion = null, additions = {}, deletions = {}, callback ) {\n const request = dbVersion ? indexedDB.open(dbName, dbVersion) : indexedDB.open(dbName);\n\n request.onsuccess = e => {\n // Database successfully opened. This will run along with onupgradeneeded\n this.db = e.target.result;\n\n if (this.db.version == dbVersion | dbVersion == null) {\n callback({result: 'Success: IDBOpen', success: true});\n }\n };\n\n request.onerror = () => {\n callback({result: request.error.toString(), success: false});\n };\n\n // on upgrade needed fires only if the dbVersion is higher than the current version number\n request.onupgradeneeded = e => {\n // Ensure the proper database object is stored\n this.db = e.target.result;\n\n if (additions != null) {\n if (additions.stores) {\n additions.stores.forEach(store => {\n this.db.createObjectStore(store.storeName, store.options);\n });\n }\n if (additions.indexes != null) {\n additions.indexes.forEach(index => {\n // Add indexes last to avoid adding an index to a store that has yet to be created\n // Open a transaction returning a store object\n const storeObject = request.transaction.objectStore(index.storeName);\n storeObject.createIndex(index.indexName, index.keyPath, index.options);\n });\n }\n }\n\n if (deletions != null) {\n if (deletions.indexes != null) {\n // delete indexes first to avoid deleting an index to a store that has already to been deleted\n deletions.indexes.forEach((index) => {\n // Open a transaction returning a store object\n const storeObject = request.transaction.objectStore(index.storeName);\n storeObject.deleteIndex(index.indexName);\n });\n }\n if (deletions.stores) {\n deletions.stores.forEach((store) => {\n this.db.deleteObjectStore(store.storeName);\n });\n }\n }\n callback({result: 'Success: IDBOpen onupgradeneeded ran', success: true});\n };\n }\n\n /**\n * Delete a database and all records, stores, and indexes associated\n * @param {string} dbName Name of the database to delete\n * @param {object} options Optionally pass in options\n * @param {function} callback The callback to be run on success or error. One value will be passed into this function\n */\n IDBDeleteDB(dbName, options = null, callback = {}) {\n const request = options != null ? indexedDB.deleteDatabase(dbName, options): indexedDB.deleteDatabase(dbName);\n\n request.onsuccess = (e) => {\n callback({result: 'Success: Database Deleted, returned: ' + e.result, success: true});\n };\n request.onerror = () => {\n callback({result: request.error.toString(), success: false});\n };\n\n\n }\n\n /**\n * Add a record to a given store\n * @param {string} storeName The name of the store from which the record will be updated\n * @param {string} key the key of the record to be updated\n * @param {string} value The value for the record with the given key to be updated\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBAdd(storeName, value, key, callback) {\n if ( !this.db && this.dbName != '') {\n this.IDBOpen(this.dbName);\n }\n\n const tx = this.db.transaction(storeName, 'readwrite');\n tx.onerror = () => callback({result: tx.error != null ? tx.error.toString() : 'Aborted: No error given, was the record already added?', success: false});\n tx.onabort = () => callback({result: tx.error != null ? tx.error.toString() : 'Aborted: No error given, was the record already added?', success: false});\n\n tx.oncomplete = () => callback({result: 'Success: Record Added', success: true});\n const store = tx.objectStore(storeName);\n store.add(value, key);\n }\n\n /**\n * Update a record in a given store\n * @param {string} storeName The name of the store from which the record will be updated\n * @param {string} key the key of the record to be updated\n * @param {string | object} value The altered object to be updated from the given store\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBUpdate (storeName, key, value, callback) {\n if ( !this.db && this.dbName != '') {\n this.IDBOpen(this.dbName);\n }\n\n const tx = this.db.transaction(storeName, 'readwrite');\n const store = tx.objectStore(storeName);\n\n const updateRequest = store.put(value, key);\n\n updateRequest.onsuccess = () => {\n callback({result: 'Success: Record Updated', success: true});\n };\n\n updateRequest.onerror = () => callback({result: updateRequest.error.toString(), success: false});\n }\n\n /**\n * Delete a given record within a given store\n * @param {string} storeName The name of the store from which the record will be removed\n * @param {string} key the key of the record to be removed\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBRemove(storeName, key, callback) {\n if ( !this.db && this.dbName != '') {\n this.IDBOpen(this.dbName);\n }\n\n const tx = this.db.transaction(storeName, 'readwrite');\n tx.onerror = () => callback({result: this.db.error.toString(), success: false});\n const store = tx.objectStore(storeName);\n store.delete(key);\n\n tx.oncomplete = () => callback({result: 'Removed Successfully', success: true});\n\n }\n\n /**\n * Return a record from a given store with a given key\n * @param {string} storeName the name of the store to read from\n * @param {string} key The key for the record in the given store\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBRead(storeName, key, callback) {\n // Open transaction with a store\n const tx = this.db.transaction(storeName, 'readonly');\n // Get the store object from the transaction\n const store = tx.objectStore(storeName);\n\n tx.onerror = () => callback({result: this.db.error.toString(), success: false});\n\n const readRequest = store.get(key);\n\n readRequest.onsuccess = () => {\n callback({result: readRequest.result, success: readRequest.result != undefined ? true : false});\n };\n\n }\n\n /**\n * Get all keys with given index\n * @param {string} storeName the name of the store to be read from\n * @param {string} indexName the name of the index to be read from\n * @param {string} query Optionally give a keyRange of records to return\n * @param {string} count Optionally give a max limit on records to be returned\n * @param {function} callback The method to call on success or failure. A single value will be passed in as a parameter\n */\n IDBGetIndexKeys (storeName, indexName, query = null, count = null, callback = {}) {\n // Open transaction with a store\n const tx = this.db.transaction(storeName, 'readonly');\n // Get the store object from the transaction\n const store = tx.objectStore(storeName);\n\n let index;\n\n tx.onerror = () => callback({result: this.db.error.toString(), success: false});\n\n if (query && count) {\n index = store.index(indexName, query, count);\n } else if (query) {\n index = store.index(indexName, query);\n } else {\n index = store.index(indexName);\n }\n\n const getAllKeysRequest = index.getAllKeys();\n\n\n getAllKeysRequest.onsuccess = function(e) {\n callback({result : e.result, success: true});\n };\n }\n\n /**\n * Get all records from a store\n * @param {string} storeName The store to get all records from\n * @param {integer} count Optionally the count of records to return\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBReadAll(storeName, count, callback) {\n // Open transaction with a store\n const tx = this.db.transaction(storeName, 'readonly');\n // Get the store object from the transaction\n const store = tx.objectStore(storeName);\n\n const readRequest = count != null ? store.getAll(null, count) : store.getAll();\n\n // const readRequest = store.getAll();\n\n tx.onerror = () => callback({result: tx.error.toString(), success: false});\n\n\n readRequest.onsuccess = () => {\n callback({result: readRequest.result, success: readRequest.result != undefined ? true : false});\n };\n }\n\n /**\n * Get the version number of a given database. This will create a database if it doesn't exist.\n * Do not call this after opening a connection with the database\n * @param {string} dbName The name of the database for which the version will be returned\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBGetVersion(dbName, callback) {\n // Open the database\n const dBOpenRequest = window.indexedDB.open(dbName);\n\n // these two event handlers act on the database\n // being opened. successfully, or not\n dBOpenRequest.onerror = function() {\n callback({result: dBOpenRequest.error.toString(), success: false});\n };\n\n dBOpenRequest.onsuccess = function() {\n const db = dBOpenRequest.result;\n callback({result: db.version, success: true});\n };\n }\n\n /**\n * Closes the connection to the database if open\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBClose(callback) {\n if ( this.db ) {\n this.db.close();\n callback({result: 'Success: Closed Database Connection', success: true});\n }\n }\n\n}\n","/* eslint-disable no-unused-vars */\nimport { SavedData } from '../SavedData';\nimport { Container } from '../Container';\n\n/**\n *\n *\n * @export\n * @class BasePlugin\n * @property {Bellhop} client\n * @property {string} name\n */\nexport class BasePlugin {\n /**\n *Creates an instance of BasePlugin.\n * @param {string} name\n * @memberof BasePlugin\n */\n constructor(name) {\n this.name = name;\n this.client = null;\n }\n\n /**\n *\n * @param {Container} [container]\n * @memberof BasePlugin\n * @returns {Promise}\n */\n async preload({ client }) {\n this.client = client;\n }\n\n /**\n *\n * @memberof BasePlugin\n */\n start() {\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * @param {Container} [_]\n * @memberof BasePlugin\n */\n init(_) { }\n\n /**\n *\n *\n * @param {string} prop\n * @param {any} value\n * @memberof BasePlugin\n */\n sendProperty(prop, value) {\n SavedData.write(prop, value);\n this.client.send(prop, value);\n }\n\n\n /**\n *\n * @param {Container} [_]\n * @memberof BasePlugin\n */\n sendAllProperties(_) { }\n\n /**\n *\n * @param {string} warningText\n * @memberof BasePlugin\n */\n warn(warningText) {\n console.warn(`[SpringRollContainer] ${this.name}: ${warningText}`);\n }\n}\n","/* eslint-disable no-unused-vars */\nimport { BasePlugin } from './BasePlugin';\nimport { Container } from '../Container';\n\n/**\n *\n *\n * @export\n * @class ButtonPlugin\n * @extends {BasePlugin}\n */\nexport class ButtonPlugin extends BasePlugin {\n /**\n *Creates an instance of ButtonPlugin.\n * @param {string} name\n *\n * @memberof ButtonPlugin\n */\n constructor(name) {\n super(name);\n this.sendMutes = false;\n }\n\n /**\n * @memberof ButtonPlugin\n * @param {Container} [container]\n */\n init(container) {\n // eslint-disable-line no-unused-vars\n this.sendMutes = true;\n }\n\n /**\n *\n * Applies the disabled class to the provided element\n * @param {HTMLButtonElement | Element} button\n * @memberof ButtonPlugin\n */\n _disableButton(button) {\n if (button instanceof HTMLButtonElement) {\n button.classList.remove('enabled');\n button.classList.add('disabled');\n }\n }\n\n /**\n *\n *\n * @memberof ButtonPlugin\n */\n reset() {\n this.sendMutes = false;\n }\n\n /**\n *\n *\n * @param {string} prop\n * @param {Element} button\n * @param {Boolean} muted\n * @memberof ButtonPlugin\n */\n _setMuteProp(prop, button, muted) {\n if (Array.isArray(button)) {\n button.forEach(b => this.changeMutedState(b, muted));\n } else {\n this.changeMutedState(button, muted);\n }\n\n this.sendProperty(prop, muted);\n }\n\n /**\n *\n *\n * @param {Element} button\n * @param {Boolean} muted\n * @returns\n * @memberof ButtonPlugin\n */\n changeMutedState(button, muted = false) {\n //most times button will be a Button class rather than an HTMLElement\n //But just in case the Button ui-element is not being used\n const htmlButton = button.button ? button.button : button;\n\n if (!(htmlButton instanceof HTMLElement)) {\n return;\n }\n\n htmlButton.classList.remove('unmuted');\n htmlButton.classList.remove('muted');\n htmlButton.classList.add(muted ? 'muted' : 'unmuted');\n }\n}\n","var isObject = require('../internals/is-object');\nvar classof = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar MATCH = wellKnownSymbol('match');\n\n// `IsRegExp` abstract operation\n// https://tc39.es/ecma262/#sec-isregexp\nmodule.exports = function (it) {\n var isRegExp;\n return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) == 'RegExp');\n};\n","var isRegExp = require('../internals/is-regexp');\n\nvar $TypeError = TypeError;\n\nmodule.exports = function (it) {\n if (isRegExp(it)) {\n throw $TypeError(\"The method doesn't accept regular expressions\");\n } return it;\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar MATCH = wellKnownSymbol('match');\n\nmodule.exports = function (METHOD_NAME) {\n var regexp = /./;\n try {\n '/./'[METHOD_NAME](regexp);\n } catch (error1) {\n try {\n regexp[MATCH] = false;\n return '/./'[METHOD_NAME](regexp);\n } catch (error2) { /* empty */ }\n } return false;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar notARegExp = require('../internals/not-a-regexp');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar toString = require('../internals/to-string');\nvar correctIsRegExpLogic = require('../internals/correct-is-regexp-logic');\n\nvar stringIndexOf = uncurryThis(''.indexOf);\n\n// `String.prototype.includes` method\n// https://tc39.es/ecma262/#sec-string.prototype.includes\n$({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {\n includes: function includes(searchString /* , position = 0 */) {\n return !!~stringIndexOf(\n toString(requireObjectCoercible(this)),\n toString(notARegExp(searchString)),\n arguments.length > 1 ? arguments[1] : undefined\n );\n }\n});\n","var toAbsoluteIndex = require('../internals/to-absolute-index');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar createProperty = require('../internals/create-property');\n\nvar $Array = Array;\nvar max = Math.max;\n\nmodule.exports = function (O, start, end) {\n var length = lengthOfArrayLike(O);\n var k = toAbsoluteIndex(start, length);\n var fin = toAbsoluteIndex(end === undefined ? length : end, length);\n var result = $Array(max(fin - k, 0));\n for (var n = 0; k < fin; k++, n++) createProperty(result, n, O[k]);\n result.length = n;\n return result;\n};\n","/* eslint-disable es/no-object-getownpropertynames -- safe */\nvar classof = require('../internals/classof-raw');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar $getOwnPropertyNames = require('../internals/object-get-own-property-names').f;\nvar arraySlice = require('../internals/array-slice-simple');\n\nvar windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames\n ? Object.getOwnPropertyNames(window) : [];\n\nvar getWindowNames = function (it) {\n try {\n return $getOwnPropertyNames(it);\n } catch (error) {\n return arraySlice(windowNames);\n }\n};\n\n// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nmodule.exports.f = function getOwnPropertyNames(it) {\n return windowNames && classof(it) == 'Window'\n ? getWindowNames(it)\n : $getOwnPropertyNames(toIndexedObject(it));\n};\n","// FF26- bug: ArrayBuffers are non-extensible, but Object.isExtensible does not report it\nvar fails = require('../internals/fails');\n\nmodule.exports = fails(function () {\n if (typeof ArrayBuffer == 'function') {\n var buffer = new ArrayBuffer(8);\n // eslint-disable-next-line es/no-object-isextensible, es/no-object-defineproperty -- safe\n if (Object.isExtensible(buffer)) Object.defineProperty(buffer, 'a', { value: 8 });\n }\n});\n","var fails = require('../internals/fails');\nvar isObject = require('../internals/is-object');\nvar classof = require('../internals/classof-raw');\nvar ARRAY_BUFFER_NON_EXTENSIBLE = require('../internals/array-buffer-non-extensible');\n\n// eslint-disable-next-line es/no-object-isextensible -- safe\nvar $isExtensible = Object.isExtensible;\nvar FAILS_ON_PRIMITIVES = fails(function () { $isExtensible(1); });\n\n// `Object.isExtensible` method\n// https://tc39.es/ecma262/#sec-object.isextensible\nmodule.exports = (FAILS_ON_PRIMITIVES || ARRAY_BUFFER_NON_EXTENSIBLE) ? function isExtensible(it) {\n if (!isObject(it)) return false;\n if (ARRAY_BUFFER_NON_EXTENSIBLE && classof(it) == 'ArrayBuffer') return false;\n return $isExtensible ? $isExtensible(it) : true;\n} : $isExtensible;\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-object-isextensible, es/no-object-preventextensions -- required for testing\n return Object.isExtensible(Object.preventExtensions({}));\n});\n","var $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar hiddenKeys = require('../internals/hidden-keys');\nvar isObject = require('../internals/is-object');\nvar hasOwn = require('../internals/has-own-property');\nvar defineProperty = require('../internals/object-define-property').f;\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertyNamesExternalModule = require('../internals/object-get-own-property-names-external');\nvar isExtensible = require('../internals/object-is-extensible');\nvar uid = require('../internals/uid');\nvar FREEZING = require('../internals/freezing');\n\nvar REQUIRED = false;\nvar METADATA = uid('meta');\nvar id = 0;\n\nvar setMetadata = function (it) {\n defineProperty(it, METADATA, { value: {\n objectID: 'O' + id++, // object ID\n weakData: {} // weak collections IDs\n } });\n};\n\nvar fastKey = function (it, create) {\n // return a primitive with prefix\n if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if (!hasOwn(it, METADATA)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return 'F';\n // not necessary to add metadata\n if (!create) return 'E';\n // add missing metadata\n setMetadata(it);\n // return object ID\n } return it[METADATA].objectID;\n};\n\nvar getWeakData = function (it, create) {\n if (!hasOwn(it, METADATA)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return true;\n // not necessary to add metadata\n if (!create) return false;\n // add missing metadata\n setMetadata(it);\n // return the store of weak collections IDs\n } return it[METADATA].weakData;\n};\n\n// add metadata on freeze-family methods calling\nvar onFreeze = function (it) {\n if (FREEZING && REQUIRED && isExtensible(it) && !hasOwn(it, METADATA)) setMetadata(it);\n return it;\n};\n\nvar enable = function () {\n meta.enable = function () { /* empty */ };\n REQUIRED = true;\n var getOwnPropertyNames = getOwnPropertyNamesModule.f;\n var splice = uncurryThis([].splice);\n var test = {};\n test[METADATA] = 1;\n\n // prevent exposing of metadata key\n if (getOwnPropertyNames(test).length) {\n getOwnPropertyNamesModule.f = function (it) {\n var result = getOwnPropertyNames(it);\n for (var i = 0, length = result.length; i < length; i++) {\n if (result[i] === METADATA) {\n splice(result, i, 1);\n break;\n }\n } return result;\n };\n\n $({ target: 'Object', stat: true, forced: true }, {\n getOwnPropertyNames: getOwnPropertyNamesExternalModule.f\n });\n }\n};\n\nvar meta = module.exports = {\n enable: enable,\n fastKey: fastKey,\n getWeakData: getWeakData,\n onFreeze: onFreeze\n};\n\nhiddenKeys[METADATA] = true;\n","var isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\n\n// makes subclassing work correct for wrapped built-ins\nmodule.exports = function ($this, dummy, Wrapper) {\n var NewTarget, NewTargetPrototype;\n if (\n // it can work only with native `setPrototypeOf`\n setPrototypeOf &&\n // we haven't completely correct pre-ES6 way for getting `new.target`, so use this\n isCallable(NewTarget = dummy.constructor) &&\n NewTarget !== Wrapper &&\n isObject(NewTargetPrototype = NewTarget.prototype) &&\n NewTargetPrototype !== Wrapper.prototype\n ) setPrototypeOf($this, NewTargetPrototype);\n return $this;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isForced = require('../internals/is-forced');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar InternalMetadataModule = require('../internals/internal-metadata');\nvar iterate = require('../internals/iterate');\nvar anInstance = require('../internals/an-instance');\nvar isCallable = require('../internals/is-callable');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar isObject = require('../internals/is-object');\nvar fails = require('../internals/fails');\nvar checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar inheritIfRequired = require('../internals/inherit-if-required');\n\nmodule.exports = function (CONSTRUCTOR_NAME, wrapper, common) {\n var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1;\n var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1;\n var ADDER = IS_MAP ? 'set' : 'add';\n var NativeConstructor = global[CONSTRUCTOR_NAME];\n var NativePrototype = NativeConstructor && NativeConstructor.prototype;\n var Constructor = NativeConstructor;\n var exported = {};\n\n var fixMethod = function (KEY) {\n var uncurriedNativeMethod = uncurryThis(NativePrototype[KEY]);\n defineBuiltIn(NativePrototype, KEY,\n KEY == 'add' ? function add(value) {\n uncurriedNativeMethod(this, value === 0 ? 0 : value);\n return this;\n } : KEY == 'delete' ? function (key) {\n return IS_WEAK && !isObject(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);\n } : KEY == 'get' ? function get(key) {\n return IS_WEAK && !isObject(key) ? undefined : uncurriedNativeMethod(this, key === 0 ? 0 : key);\n } : KEY == 'has' ? function has(key) {\n return IS_WEAK && !isObject(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);\n } : function set(key, value) {\n uncurriedNativeMethod(this, key === 0 ? 0 : key, value);\n return this;\n }\n );\n };\n\n var REPLACE = isForced(\n CONSTRUCTOR_NAME,\n !isCallable(NativeConstructor) || !(IS_WEAK || NativePrototype.forEach && !fails(function () {\n new NativeConstructor().entries().next();\n }))\n );\n\n if (REPLACE) {\n // create collection constructor\n Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER);\n InternalMetadataModule.enable();\n } else if (isForced(CONSTRUCTOR_NAME, true)) {\n var instance = new Constructor();\n // early implementations not supports chaining\n var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance;\n // V8 ~ Chromium 40- weak-collections throws on primitives, but should return false\n var THROWS_ON_PRIMITIVES = fails(function () { instance.has(1); });\n // most early implementations doesn't supports iterables, most modern - not close it correctly\n // eslint-disable-next-line no-new -- required for testing\n var ACCEPT_ITERABLES = checkCorrectnessOfIteration(function (iterable) { new NativeConstructor(iterable); });\n // for early implementations -0 and +0 not the same\n var BUGGY_ZERO = !IS_WEAK && fails(function () {\n // V8 ~ Chromium 42- fails only with 5+ elements\n var $instance = new NativeConstructor();\n var index = 5;\n while (index--) $instance[ADDER](index, index);\n return !$instance.has(-0);\n });\n\n if (!ACCEPT_ITERABLES) {\n Constructor = wrapper(function (dummy, iterable) {\n anInstance(dummy, NativePrototype);\n var that = inheritIfRequired(new NativeConstructor(), dummy, Constructor);\n if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });\n return that;\n });\n Constructor.prototype = NativePrototype;\n NativePrototype.constructor = Constructor;\n }\n\n if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) {\n fixMethod('delete');\n fixMethod('has');\n IS_MAP && fixMethod('get');\n }\n\n if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER);\n\n // weak collections should not contains .clear method\n if (IS_WEAK && NativePrototype.clear) delete NativePrototype.clear;\n }\n\n exported[CONSTRUCTOR_NAME] = Constructor;\n $({ global: true, constructor: true, forced: Constructor != NativeConstructor }, exported);\n\n setToStringTag(Constructor, CONSTRUCTOR_NAME);\n\n if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);\n\n return Constructor;\n};\n","var defineBuiltIn = require('../internals/define-built-in');\n\nmodule.exports = function (target, src, options) {\n for (var key in src) defineBuiltIn(target, key, src[key], options);\n return target;\n};\n","'use strict';\nvar create = require('../internals/object-create');\nvar defineBuiltInAccessor = require('../internals/define-built-in-accessor');\nvar defineBuiltIns = require('../internals/define-built-ins');\nvar bind = require('../internals/function-bind-context');\nvar anInstance = require('../internals/an-instance');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar iterate = require('../internals/iterate');\nvar defineIterator = require('../internals/iterator-define');\nvar createIterResultObject = require('../internals/create-iter-result-object');\nvar setSpecies = require('../internals/set-species');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar fastKey = require('../internals/internal-metadata').fastKey;\nvar InternalStateModule = require('../internals/internal-state');\n\nvar setInternalState = InternalStateModule.set;\nvar internalStateGetterFor = InternalStateModule.getterFor;\n\nmodule.exports = {\n getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {\n var Constructor = wrapper(function (that, iterable) {\n anInstance(that, Prototype);\n setInternalState(that, {\n type: CONSTRUCTOR_NAME,\n index: create(null),\n first: undefined,\n last: undefined,\n size: 0\n });\n if (!DESCRIPTORS) that.size = 0;\n if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });\n });\n\n var Prototype = Constructor.prototype;\n\n var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);\n\n var define = function (that, key, value) {\n var state = getInternalState(that);\n var entry = getEntry(that, key);\n var previous, index;\n // change existing entry\n if (entry) {\n entry.value = value;\n // create new entry\n } else {\n state.last = entry = {\n index: index = fastKey(key, true),\n key: key,\n value: value,\n previous: previous = state.last,\n next: undefined,\n removed: false\n };\n if (!state.first) state.first = entry;\n if (previous) previous.next = entry;\n if (DESCRIPTORS) state.size++;\n else that.size++;\n // add to index\n if (index !== 'F') state.index[index] = entry;\n } return that;\n };\n\n var getEntry = function (that, key) {\n var state = getInternalState(that);\n // fast case\n var index = fastKey(key);\n var entry;\n if (index !== 'F') return state.index[index];\n // frozen object case\n for (entry = state.first; entry; entry = entry.next) {\n if (entry.key == key) return entry;\n }\n };\n\n defineBuiltIns(Prototype, {\n // `{ Map, Set }.prototype.clear()` methods\n // https://tc39.es/ecma262/#sec-map.prototype.clear\n // https://tc39.es/ecma262/#sec-set.prototype.clear\n clear: function clear() {\n var that = this;\n var state = getInternalState(that);\n var data = state.index;\n var entry = state.first;\n while (entry) {\n entry.removed = true;\n if (entry.previous) entry.previous = entry.previous.next = undefined;\n delete data[entry.index];\n entry = entry.next;\n }\n state.first = state.last = undefined;\n if (DESCRIPTORS) state.size = 0;\n else that.size = 0;\n },\n // `{ Map, Set }.prototype.delete(key)` methods\n // https://tc39.es/ecma262/#sec-map.prototype.delete\n // https://tc39.es/ecma262/#sec-set.prototype.delete\n 'delete': function (key) {\n var that = this;\n var state = getInternalState(that);\n var entry = getEntry(that, key);\n if (entry) {\n var next = entry.next;\n var prev = entry.previous;\n delete state.index[entry.index];\n entry.removed = true;\n if (prev) prev.next = next;\n if (next) next.previous = prev;\n if (state.first == entry) state.first = next;\n if (state.last == entry) state.last = prev;\n if (DESCRIPTORS) state.size--;\n else that.size--;\n } return !!entry;\n },\n // `{ Map, Set }.prototype.forEach(callbackfn, thisArg = undefined)` methods\n // https://tc39.es/ecma262/#sec-map.prototype.foreach\n // https://tc39.es/ecma262/#sec-set.prototype.foreach\n forEach: function forEach(callbackfn /* , that = undefined */) {\n var state = getInternalState(this);\n var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n var entry;\n while (entry = entry ? entry.next : state.first) {\n boundFunction(entry.value, entry.key, this);\n // revert to the last existing entry\n while (entry && entry.removed) entry = entry.previous;\n }\n },\n // `{ Map, Set}.prototype.has(key)` methods\n // https://tc39.es/ecma262/#sec-map.prototype.has\n // https://tc39.es/ecma262/#sec-set.prototype.has\n has: function has(key) {\n return !!getEntry(this, key);\n }\n });\n\n defineBuiltIns(Prototype, IS_MAP ? {\n // `Map.prototype.get(key)` method\n // https://tc39.es/ecma262/#sec-map.prototype.get\n get: function get(key) {\n var entry = getEntry(this, key);\n return entry && entry.value;\n },\n // `Map.prototype.set(key, value)` method\n // https://tc39.es/ecma262/#sec-map.prototype.set\n set: function set(key, value) {\n return define(this, key === 0 ? 0 : key, value);\n }\n } : {\n // `Set.prototype.add(value)` method\n // https://tc39.es/ecma262/#sec-set.prototype.add\n add: function add(value) {\n return define(this, value = value === 0 ? 0 : value, value);\n }\n });\n if (DESCRIPTORS) defineBuiltInAccessor(Prototype, 'size', {\n configurable: true,\n get: function () {\n return getInternalState(this).size;\n }\n });\n return Constructor;\n },\n setStrong: function (Constructor, CONSTRUCTOR_NAME, IS_MAP) {\n var ITERATOR_NAME = CONSTRUCTOR_NAME + ' Iterator';\n var getInternalCollectionState = internalStateGetterFor(CONSTRUCTOR_NAME);\n var getInternalIteratorState = internalStateGetterFor(ITERATOR_NAME);\n // `{ Map, Set }.prototype.{ keys, values, entries, @@iterator }()` methods\n // https://tc39.es/ecma262/#sec-map.prototype.entries\n // https://tc39.es/ecma262/#sec-map.prototype.keys\n // https://tc39.es/ecma262/#sec-map.prototype.values\n // https://tc39.es/ecma262/#sec-map.prototype-@@iterator\n // https://tc39.es/ecma262/#sec-set.prototype.entries\n // https://tc39.es/ecma262/#sec-set.prototype.keys\n // https://tc39.es/ecma262/#sec-set.prototype.values\n // https://tc39.es/ecma262/#sec-set.prototype-@@iterator\n defineIterator(Constructor, CONSTRUCTOR_NAME, function (iterated, kind) {\n setInternalState(this, {\n type: ITERATOR_NAME,\n target: iterated,\n state: getInternalCollectionState(iterated),\n kind: kind,\n last: undefined\n });\n }, function () {\n var state = getInternalIteratorState(this);\n var kind = state.kind;\n var entry = state.last;\n // revert to the last existing entry\n while (entry && entry.removed) entry = entry.previous;\n // get next entry\n if (!state.target || !(state.last = entry = entry ? entry.next : state.state.first)) {\n // or finish the iteration\n state.target = undefined;\n return createIterResultObject(undefined, true);\n }\n // return step by kind\n if (kind == 'keys') return createIterResultObject(entry.key, false);\n if (kind == 'values') return createIterResultObject(entry.value, false);\n return createIterResultObject([entry.key, entry.value], false);\n }, IS_MAP ? 'entries' : 'values', !IS_MAP, true);\n\n // `{ Map, Set }.prototype[@@species]` accessors\n // https://tc39.es/ecma262/#sec-get-map-@@species\n // https://tc39.es/ecma262/#sec-get-set-@@species\n setSpecies(CONSTRUCTOR_NAME);\n }\n};\n","'use strict';\nvar collection = require('../internals/collection');\nvar collectionStrong = require('../internals/collection-strong');\n\n// `Set` constructor\n// https://tc39.es/ecma262/#sec-set-objects\ncollection('Set', function (init) {\n return function Set() { return init(this, arguments.length ? arguments[0] : undefined); };\n}, collectionStrong);\n","var $ = require('../internals/export');\nvar toObject = require('../internals/to-object');\nvar nativeKeys = require('../internals/object-keys');\nvar fails = require('../internals/fails');\n\nvar FAILS_ON_PRIMITIVES = fails(function () { nativeKeys(1); });\n\n// `Object.keys` method\n// https://tc39.es/ecma262/#sec-object.keys\n$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {\n keys: function keys(it) {\n return nativeKeys(toObject(it));\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $map = require('../internals/array-iteration').map;\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('map');\n\n// `Array.prototype.map` method\n// https://tc39.es/ecma262/#sec-array.prototype.map\n// with adding support of @@species\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {\n map: function map(callbackfn /* , thisArg */) {\n return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n","var DESCRIPTORS = require('../internals/descriptors');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar objectKeys = require('../internals/object-keys');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar $propertyIsEnumerable = require('../internals/object-property-is-enumerable').f;\n\nvar propertyIsEnumerable = uncurryThis($propertyIsEnumerable);\nvar push = uncurryThis([].push);\n\n// `Object.{ entries, values }` methods implementation\nvar createMethod = function (TO_ENTRIES) {\n return function (it) {\n var O = toIndexedObject(it);\n var keys = objectKeys(O);\n var length = keys.length;\n var i = 0;\n var result = [];\n var key;\n while (length > i) {\n key = keys[i++];\n if (!DESCRIPTORS || propertyIsEnumerable(O, key)) {\n push(result, TO_ENTRIES ? [key, O[key]] : O[key]);\n }\n }\n return result;\n };\n};\n\nmodule.exports = {\n // `Object.entries` method\n // https://tc39.es/ecma262/#sec-object.entries\n entries: createMethod(true),\n // `Object.values` method\n // https://tc39.es/ecma262/#sec-object.values\n values: createMethod(false)\n};\n","var $ = require('../internals/export');\nvar $values = require('../internals/object-to-array').values;\n\n// `Object.values` method\n// https://tc39.es/ecma262/#sec-object.values\n$({ target: 'Object', stat: true }, {\n values: function values(O) {\n return $values(O);\n }\n});\n","import { BasePlugin } from '../base-plugins/BasePlugin';\n\n/**\n * @export\n * @class RadioGroup\n * @property {string} controlName\n * @property {string} featureName\n * @property {string} radioElements\n * @property {string} defaultValue\n */\nexport class RadioGroup extends BasePlugin {\n /**\n * creates an instance of RadioGroup\n * @constructor\n * @param {string} selector selector string for the radio group\n * @param {string} controlName the name of the control (used for warning logging only)\n * @param {string} [featureName='captionStyles'] the feature name used by Springroll. Defaults to captionStyles\n * @param {string} defaultValue the value attribute of the radio button that should be selected by default\n * @param {string} pluginName name of the plugin that instantiated the RadioGroup. Used for logging warnings\n * @memberof RadioGroupPlugin\n */\n constructor({selector, controlName, featureName = 'captionStyles', defaultValue, pluginName}) {\n super(pluginName);\n this.controlName = controlName;\n this.featureName = featureName;\n this.radioElements = document.querySelectorAll(selector);\n this.defaultValue = defaultValue;\n\n this.radioGroup = {};\n\n if (this.radioElements.length <= 0) {\n this.warn(`${this.controlName} RadioGroup found no HTMLElements with selector: ${selector}`);\n return;\n }\n\n this.radioElements.forEach(radio => {\n if (radio.type !== 'radio') {\n this.warn(`${this.controlName} was provided a non Radio Button element with selector: ${selector}`);\n return;\n }\n radio.value = radio.value.toLowerCase();\n\n this.radioGroup[radio.value] = radio;\n });\n\n if (!this.radioGroup[this.defaultValue]) {\n this.warn(`${this.controlName} RadioGroup for selector: ${selector} does not have a radio button with value ${this.defaultValue} to use as default value. Using first element as default`);\n this.defaultValue = this.radioElements[0].value.toLowerCase();\n }\n\n this.radioGroup[this.defaultValue].checked = true;\n }\n\n /**\n * @param {string[]} valuesArray Array of acceptable values to check against the radio group.\n * @return {boolean}\n * @memberof RadioGroup\n */\n hasOnly(valuesArray) {\n\n for (const key in this.radioGroup) {\n if (!valuesArray.includes(this.radioGroup[key].value)) {\n this.warn(`${this.controlName} radio button value: ${this.radioGroup[key].value} is not an accepted value. Skipping radio group`);\n return false;\n }\n }\n\n return true;\n }\n\n /**\n * @return {boolean}\n * @memberof RadioGroup\n */\n hasDuplicateValues() {\n return this.values.length !== [...new Set(this.values)].length;\n }\n\n /**\n * Adds change listeners to the radio buttons using the given callback function\n * @memberof RadioGroup\n * @param {Function} callBack event to fire on change\n */\n enableRadioEvents(callBack) {\n if (!this.radioGroup.length <= 0) {\n return;\n }\n\n const event = callBack;\n for (const radio in this.radioGroup) {\n this.radioGroup[radio].addEventListener('change', event);\n }\n }\n\n /**\n * removes the event listeners from the RadioGroup\n * @memberof RadioGroup\n * @param {Function} callBack event to fire on change\n */\n disableRadioEvents(callBack) {\n if (!this.radioGroup.length <= 0) {\n return;\n }\n for (const radio in this.radioGroup) {\n this.radioGroup[radio].removeEventListener('change', callBack);\n }\n }\n\n /**\n * enables display of the Radio buttons if the correct feature is present in the features list\n * @memberof RadioGroup\n * @param {object} data Object containing which features are enabled\n */\n displayRadios(data) {\n if (this.radioGroup.length <= 0 && data[this.featureName]) {\n this.warn(`${this.controlName} was not provided a valid input element or selector but '${this.featureName}' was included as a game feature`);\n return;\n }\n\n if (this.radioGroup.length <= 0) {\n return;\n }\n\n if (data[this.featureName]) {\n return;\n }\n\n for (const radio in this.radioGroup) {\n this.radioGroup[radio].style.display = 'none';\n }\n }\n\n /**\n * Reset the radio button states\n * @memberof RadioGroup\n */\n resetState() {\n this.radioGroup[this.defaultValue].checked = true;\n }\n\n /**\n * @readonly\n * @returns {number}\n * @memberof RadioGroup\n */\n get length() {\n return Object.keys(this.radioGroup).length;\n }\n\n /**\n * @readonly\n * @returns {number}\n * @memberof RadioGroup\n */\n get values() {\n return Object.values(this.radioGroup).map(radio => radio.value);\n }\n}\n","import { BasePlugin } from './BasePlugin';\nimport { RadioGroup } from '../ui-elements/RadioGroup';\n\n/**\n *\n *\n * @export\n * @class RadioGroupPlugin\n */\nexport class RadioGroupPlugin extends BasePlugin {\n /**\n *\n *Creates an instance of RadioGroupPlugin.\n * @constructor\n * @memberof RadioGroupPlugin\n * @param {string} name\n */\n constructor(cssSelector, name, {supportedValues, initialValue, controlName, featureName, radioCount}) {\n super(name);\n this.selectors = cssSelector ? cssSelector.split(',') : [];\n this.supportedValues = supportedValues;\n this.initialValue = supportedValues.includes(initialValue) ? initialValue : supportedValues[0];\n this.controlName = controlName;\n this.featureName = featureName;\n this.radioCount = radioCount;\n this.sendAllProperties = this.sendAllProperties.bind(this);\n\n this._currentValue = this.initialValue;\n\n this.radioGroups = this.setUpRadios(this.selectors);\n\n this.radioGroupsLength = this.radioGroups.length;\n }\n\n /**\n * @memberof RadioGroupPlugin\n * @param {string[]} selectors the separated selector strings used to target the radio button groups\n * @returns {RadioGroup[]}\n */\n setUpRadios(selectors) {\n const radioGroups = [];\n\n selectors.forEach((selector) => {\n const radioGroup = new RadioGroup({\n selector: selector.trim(),\n controlName: this.controlName,\n defaultValue: this.initialValue,\n pluginName: this.name,\n featureName: this.featureName\n });\n\n if (radioGroup.length !== this.radioCount) {\n this.warn(`Selector \"${selector}\" did not find exactly ${this.radioCount} radio buttons for ${this.controlName}. Skipping selector`);\n return;\n }\n\n if (!radioGroup.hasOnly(this.supportedValues)) {\n return;\n }\n\n if (radioGroup.hasDuplicateValues()) {\n this.warn(`Duplicate radio button values detected (values: ${radioGroup.values} ). Skipping radio group`);\n return;\n }\n\n radioGroups.push(radioGroup);\n });\n\n return radioGroups;\n }\n\n /**\n * @memberof RadioGroupPlugin\n */\n start() {\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Sends initial caption properties to the application\n * @memberof RadioGroupPlugin\n */\n sendAllProperties() {\n this.sendProperty(this.featureName, this.property);\n }\n\n /**\n * @memberof RadioGroupPlugin\n * @param {string} newValue\n */\n set currentValue(newValue) {\n if (!this.supportedValues.includes(newValue)) {\n return;\n }\n\n this._currentValue = newValue;\n\n for (let i = 0, l = this.radioGroups.length; i < l; i++) {\n this.radioGroups[i].radioGroup[newValue].checked = true;\n }\n }\n\n /**\n * @memberof RadioGroupPlugin\n * @return {string}\n */\n get currentValue() {\n return this._currentValue;\n }\n\n}\n","var uncurryThis = require('../internals/function-uncurry-this');\n\n// `thisNumberValue` abstract operation\n// https://tc39.es/ecma262/#sec-thisnumbervalue\nmodule.exports = uncurryThis(1.0.valueOf);\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar global = require('../internals/global');\nvar path = require('../internals/path');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isForced = require('../internals/is-forced');\nvar hasOwn = require('../internals/has-own-property');\nvar inheritIfRequired = require('../internals/inherit-if-required');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar isSymbol = require('../internals/is-symbol');\nvar toPrimitive = require('../internals/to-primitive');\nvar fails = require('../internals/fails');\nvar getOwnPropertyNames = require('../internals/object-get-own-property-names').f;\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar defineProperty = require('../internals/object-define-property').f;\nvar thisNumberValue = require('../internals/this-number-value');\nvar trim = require('../internals/string-trim').trim;\n\nvar NUMBER = 'Number';\nvar NativeNumber = global[NUMBER];\nvar PureNumberNamespace = path[NUMBER];\nvar NumberPrototype = NativeNumber.prototype;\nvar TypeError = global.TypeError;\nvar stringSlice = uncurryThis(''.slice);\nvar charCodeAt = uncurryThis(''.charCodeAt);\n\n// `ToNumeric` abstract operation\n// https://tc39.es/ecma262/#sec-tonumeric\nvar toNumeric = function (value) {\n var primValue = toPrimitive(value, 'number');\n return typeof primValue == 'bigint' ? primValue : toNumber(primValue);\n};\n\n// `ToNumber` abstract operation\n// https://tc39.es/ecma262/#sec-tonumber\nvar toNumber = function (argument) {\n var it = toPrimitive(argument, 'number');\n var first, third, radix, maxCode, digits, length, index, code;\n if (isSymbol(it)) throw TypeError('Cannot convert a Symbol value to a number');\n if (typeof it == 'string' && it.length > 2) {\n it = trim(it);\n first = charCodeAt(it, 0);\n if (first === 43 || first === 45) {\n third = charCodeAt(it, 2);\n if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix\n } else if (first === 48) {\n switch (charCodeAt(it, 1)) {\n case 66: case 98: radix = 2; maxCode = 49; break; // fast equal of /^0b[01]+$/i\n case 79: case 111: radix = 8; maxCode = 55; break; // fast equal of /^0o[0-7]+$/i\n default: return +it;\n }\n digits = stringSlice(it, 2);\n length = digits.length;\n for (index = 0; index < length; index++) {\n code = charCodeAt(digits, index);\n // parseInt parses a string to a first unavailable symbol\n // but ToNumber should return NaN if a string contains unavailable symbols\n if (code < 48 || code > maxCode) return NaN;\n } return parseInt(digits, radix);\n }\n } return +it;\n};\n\nvar FORCED = isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'));\n\nvar calledWithNew = function (dummy) {\n // includes check on 1..constructor(foo) case\n return isPrototypeOf(NumberPrototype, dummy) && fails(function () { thisNumberValue(dummy); });\n};\n\n// `Number` constructor\n// https://tc39.es/ecma262/#sec-number-constructor\nvar NumberWrapper = function Number(value) {\n var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value));\n return calledWithNew(this) ? inheritIfRequired(Object(n), this, NumberWrapper) : n;\n};\n\nNumberWrapper.prototype = NumberPrototype;\nif (FORCED && !IS_PURE) NumberPrototype.constructor = NumberWrapper;\n\n$({ global: true, constructor: true, wrap: true, forced: FORCED }, {\n Number: NumberWrapper\n});\n\n// Use `internal/copy-constructor-properties` helper in `core-js@4`\nvar copyConstructorProperties = function (target, source) {\n for (var keys = DESCRIPTORS ? getOwnPropertyNames(source) : (\n // ES3:\n 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +\n // ES2015 (in case, if modules with ES2015 Number statics required before):\n 'EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,' +\n // ESNext\n 'fromString,range'\n ).split(','), j = 0, key; keys.length > j; j++) {\n if (hasOwn(source, key = keys[j]) && !hasOwn(target, key)) {\n defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n }\n};\n\nif (IS_PURE && PureNumberNamespace) copyConstructorProperties(path[NUMBER], PureNumberNamespace);\nif (FORCED || IS_PURE) copyConstructorProperties(path[NUMBER], NativeNumber);\n","import { SavedData } from '../SavedData';\n\n/**\n * @export\n * @class Slider\n */\nexport class Slider {\n /**\n *Creates an instance of Slider\n * @param {object} params\n * @param {string | HTMLInputElement} params.slider the slider element or a selector string\n * @param {string} params.control the feature that this slider controols\n * @param {number} [min=0] slider min value\n * @param {number} [max=1] slider max value\n * @param {number} [step=0.1] slider step value\n * @param {number} [defaultValue=1] slider starting value\n * @memberof SliderPlugin\n */\n constructor({\n slider,\n control,\n min = 0,\n max = 1,\n step = 0.1,\n defaultValue = 1\n }) {\n this.min = min;\n this.max = max;\n this.step = step;\n this.sliderValue = defaultValue;\n this.control = control;\n this.slider = this.setUpSlider(slider, control);\n }\n\n /**\n * @param {string | HTMLInputElement | HTMLElement} slider\n * @param {string} control The control element (sensitivity, difficulty, pointer size, etc) this slider will be controlling\n * @returns {Element | HTMLElement}\n * @memberof Slider\n */\n setUpSlider(slider, control) {\n if ('string' === typeof slider) {\n slider = document.querySelector(slider);\n }\n\n if (!slider || 'range' !== slider.type) {\n return null;\n }\n const value = SavedData.read(control);\n\n slider.min = this.min;\n slider.max = this.max;\n slider.step = this.step;\n\n if ((value || value === 0) && value.toString().trim().length > 0) {\n slider.value = value;\n this.sliderValue = value;\n } else {\n slider.value = this.sliderValue;\n }\n\n return slider;\n }\n\n /**\n * Controls the range of the slider\n * @param {number} i\n * @returns\n * @memberof Slider\n */\n sliderRange(i) {\n if (i < this.min) {\n return this.min;\n } else if (i > this.max) {\n return this.max;\n } else {\n return i;\n }\n }\n\n /**\n * Adds change and input listeners to the slider using the given callback function\n * @memberof Slider\n * @param {Function} callBack event to fire on change or input\n */\n enableSliderEvents(callBack) {\n if (!this.slider) {\n return;\n }\n\n const event = callBack;\n this.slider.addEventListener('change', event);\n this.slider.addEventListener('input', event);\n }\n\n /**\n * removes the event listeners from the given slider.\n * @memberof Slider\n * @param {Function} callBack event to fire on change or input\n */\n disableSliderEvents(callBack) {\n if (!this.slider) {\n return;\n }\n const event = callBack;\n this.slider.removeEventListener('change', event);\n this.slider.removeEventListener('input', event);\n }\n /**\n * enables display of the Slider if it is present in the features list\n * @memberof Slider\n * @param {object} data Object containing which features are enabled\n */\n displaySlider(data) {\n if (!this.slider && data[this.control]) {\n console.warn(`${this.control} was not provided a valid input element or selector but was included as a game feature`);\n }\n\n if (!this.slider) {\n return;\n }\n\n this.slider.style.display = data[this.control] ? '' : 'none';\n }\n\n /**\n * @param {Event} event the event to be fired on the slider\n * @memberof Slider\n */\n dispatchEvent(event) {\n this.slider.dispatchEvent(event);\n }\n\n /**\n * @readonly\n * @returns {string}\n * @memberof Slider\n */\n get value() {\n return this.slider.value;\n }\n\n /**\n * @memberof Slider\n */\n set value(value) {\n this.slider.value = value;\n }\n}\n","/**\n * @export\n * @class Button\n */\nexport class Button {\n /**\n *Creates an instance of Button\n * @param {object} params\n * @param {string | HTMLElement} params.button the button itself or a selector string\n * @param {Function} params.onClick the function to call when the button is clicked\n * @param {string} channel the feature this button controls\n * @memberof ButtonPlugin\n */\n constructor({ button, onClick, channel }) {\n this.button =\n button instanceof HTMLElement ? button : document.querySelector(button);\n this.onClick = onClick;\n this.channel = channel;\n\n if (this.button) {\n this.button.addEventListener('click', onClick);\n }\n }\n\n /**\n * enables display of the button if it is present in the features list\n * @memberof Button\n * @param {object} data Object containing which features are enabled\n */\n displayButton(data) {\n if (!(this.button instanceof HTMLElement)) {\n return;\n }\n\n this.button.style.display =\n data[this.channel] || this.channel === 'pause' || this.channel === 'hints'\n ? ''\n : 'none';\n }\n\n /**\n * enables display of the button\n * @memberof Button\n */\n enableButton() {\n if (!this.button) {\n return;\n }\n this.button.classList.remove('disabled');\n }\n\n /**\n * \n * @param {string} className The classname to be appended to the end of the class property\n */\n addClass(className) {\n this.button.className = this.button.className ? this.button.className + ` ${ className }` : ` ${ className }`;\n }\n}\n","import { BasePlugin } from './BasePlugin';\nimport { Slider } from '../ui-elements';\n\n/**\n *\n *\n * @export\n * @class SliderPlugin\n */\nexport class SliderPlugin extends BasePlugin {\n /**\n *\n *Creates an instance of SliderPlugin.\n * @constructor\n * @memberof SliderPlugin\n * @param {string} cssSelector\n * @param {string} name\n * @param {object} options\n * @param {string | number} [options.defaultValue='0.5']\n * @param {string | number} [options.minValue='0']\n * @param {string | number} [options.maxValue='1']\n * @param {string} [options.featureName] Springroll Core feature name that the plugin is supporting\n */\n constructor(cssSelector, name, {defaultValue = '0.5', minValue = '0', maxValue = '1', featureName }) {\n super(name);\n this.featureName = featureName;\n this.minValue = minValue;\n this.defaultValue = defaultValue;\n this.maxValue = maxValue;\n this._currentValue = defaultValue;\n this.sliders = this.setUpSliders(cssSelector);\n this.slidersLength = this.sliders.length;\n this.sendAllProperties = this.sendAllProperties.bind(this);\n\n if (0 >= this.slidersLength) {\n this.warn('Plugin was not provided any valid HTML Elements');\n return;\n }\n }\n\n /**\n * @memberof SliderPlugin\n * @param {string[]} selectors the selector strings used to target the input elements\n * @returns {Slider[]}\n */\n setUpSliders(selectors) {\n const sliders = [];\n\n if (selectors instanceof HTMLElement) {\n sliders.push(new Slider({\n slider: selectors,\n control: this.featureName,\n defaultValue: this.defaultValue,\n minValue: this.minValue,\n maxValue: this.maxValue\n }));\n } else {\n document.querySelectorAll(selectors).forEach((slider) => {\n sliders.push(new Slider({\n slider: slider,\n control: this.featureName,\n defaultValue: this.defaultValue,\n minValue: this.minValue,\n maxValue: this.maxValue\n }));\n });\n }\n\n return sliders;\n }\n\n /**\n * @memberof SliderPlugin\n */\n init() {\n this.client.on(\n 'features',\n function(features) {\n if (!features.data) {\n return;\n }\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].displaySlider(features.data);\n }\n }.bind(this)\n );\n }\n\n /**\n * @memberof SliderPlugin\n */\n start() {\n this._currentValue = this.sliders[0].value; //update current value to the saved data value set in Slider.\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Sends initial caption properties to the application\n * @memberof SliderPlugin\n */\n sendAllProperties() {\n this.sendProperty(this.featureName, this.currentValue);\n }\n\n /**\n * @memberof SliderPlugin\n * @param {string} newValue\n */\n set currentValue(newValue) {\n\n //just use first slider to ensure the number is valid.\n this._currentValue = this.sliders[0].sliderRange(Number(newValue));\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].value = newValue;\n }\n }\n\n /**\n * @memberof SliderPlugin\n * @return {string}\n */\n get currentValue() {\n return this._currentValue;\n }\n\n}\n","import { SavedData } from '../SavedData';\nimport { ButtonPlugin } from '../base-plugins';\nimport { RadioGroup } from '../ui-elements';\n\nconst DEFAULT_CAPTIONS_STYLES = {\n size: 'medium',\n background: 'black',\n color: 'white',\n edge: 'none',\n font: 'arial',\n align: 'top'\n};\n\nconst DEFAULT_COLOR_STYLE = {color: 'white', background: 'black'};\nconst INVERTED_COLOR_STYLE = {color: 'black', background: 'white'};\nconst FONT_SIZE_VALUES = ['small', 'medium', 'large'];\nconst COLOR_VALUES = ['default', 'inverted'];\nconst ALIGN_VALUES = ['top', 'bottom'];\n\n/**\n * @export\n * @class CaptionsStylePlugin\n * @property {object} captionsStyles The collection of captions styles\n * @property {string[]} fontSizeSelectors selector strings for the radio button groups\n * @property {string[]} colorSelectors selector strings for the radio button groups\n * @property {string[]} alignmentSelectors selector strings for the radio button groups\n * @property {Object[]} fontSizeRadios array that contains each radio group\n * @property {Object[]} colorRadios array that contains each radio group\n * @property {Object[]} alignmentRadios array that contains each radio group\n * @property {number} fontSizeRadiosLength Length of the fontSizeRadios array\n * @property {number} colorRadiosLength Length of the colorRadios array\n * @property {number} alignmentRadiosLength Length of the alignmentRadios array\n * @extends {ButtonPlugin}\n */\nexport class CaptionsStylePlugin extends ButtonPlugin {\n /**\n * Creates an instance of CaptionsStylePlugin.\n * @param {string} fontSizeRadios selector string for one or more radio groups for caption font size\n * @param {string} colorRadios selector string for one or more radio groups for caption font/background colors\n * @param {string} alignmentRadios selector string for one or more radio groups for caption position\n * @param {string} [defaultFontSize='medium'] Default selected font size\n * @param {string} [defaultColor='default'] Default selected color\n * @param {string} [defaultAlignment='top'] Default selected alignment\n * @memberof CaptionsStylePlugin\n */\n constructor(fontSizeRadios, colorRadios, alignmentRadios,\n { defaultFontSize = 'medium', defaultColor = 'default', defaultAlignment = 'top' } = {}\n ) {\n super('Caption-Button-Plugin');\n this.sendAllProperties = this.sendAllProperties.bind(this);\n this.captionsStyles = Object.assign(\n {},\n DEFAULT_CAPTIONS_STYLES,\n SavedData.read(CaptionsStylePlugin.captionStyleKey) || {}\n );\n\n //split the selector strings into individual selectors.\n //Helps keep the input style consistent across plugins.\n this.fontSizeSelectors = fontSizeRadios ? fontSizeRadios.split(',') : [];\n this.colorSelectors = colorRadios ? colorRadios.split(',') : [];\n this.alignmentSelectors = alignmentRadios ? alignmentRadios.split(',') : [];\n\n this.defaultFontSize = FONT_SIZE_VALUES.includes(defaultFontSize) ? defaultFontSize : FONT_SIZE_VALUES[0];\n this.defaultColor = COLOR_VALUES.includes(defaultColor) ? defaultColor : COLOR_VALUES[0];\n this.defaultAlignment = ALIGN_VALUES.includes(defaultAlignment) ? defaultAlignment : ALIGN_VALUES[0];\n\n this.fontSizeRadios = [];\n this.colorRadios = [];\n this.alignmentRadios = [];\n\n this.fontSizeRadios = this.setUpFontSizeRadios(this.fontSizeSelectors);\n this.colorRadios = this.setUpColorRadios(this.colorSelectors);\n this.alignmentRadios = this.setUpAlignmentRadios(this.alignmentSelectors);\n\n this._captionsMuted = false;\n\n this.alignmentRadiosLength = this.alignmentRadios.length;\n this.fontSizeRadiosLength = this.fontSizeRadios.length;\n this.colorRadiosLength = this.colorRadios.length;\n\n if (0 >= (this.alignmentRadiosLength + this.fontSizeRadiosLength + this.colorRadiosLength)) {\n this.warn(\n 'Plugin was not provided any input elements'\n );\n return;\n }\n\n //set up change events\n for (let i = 0; i < this.colorRadiosLength; i++) {\n this.colorRadios[i].enableRadioEvents(this.onColorChange.bind(this));\n }\n for (let i = 0; i < this.alignmentRadiosLength; i++) {\n this.alignmentRadios[i].enableRadioEvents(this.onAlignmentChange.bind(this));\n }\n for (let i = 0; i < this.fontSizeRadiosLength; i++) {\n this.fontSizeRadios[i].enableRadioEvents(this.onFontSizeChange.bind(this));\n }\n }\n\n /**\n * @memberof CaptionsStylePlugin\n * @param {string[]} selectors the separated selector strings used to target the radio button groups\n * @returns {RadioGroup[]}\n */\n setUpFontSizeRadios(selectors) {\n const radioGroups = [];\n\n selectors.forEach((selector) => {\n const radioGroup = new RadioGroup({\n selector: selector.trim(),\n controlName: 'Font Size',\n defaultValue: this.defaultFontSize,\n pluginName: 'Caption-Button-Plugin'\n });\n\n if (radioGroup.length !== 3) {\n this.warn(`Selector \"${selector}\" did not find exactly three(3) radio buttons for caption font size. Skipping selector`);\n return;\n }\n\n if (!radioGroup.hasOnly(FONT_SIZE_VALUES)) {\n return;\n }\n\n if (radioGroup.hasDuplicateValues()) {\n this.warn(`Duplicate radio button values detected (values: ${radioGroup.values} ). Skipping radio group`);\n return;\n }\n\n radioGroups.push(radioGroup);\n });\n\n return radioGroups;\n }\n\n /**\n * @memberof CaptionsStylePlugin\n * @param {string[]} selectors the separated selector strings used to target the radio button groups\n * @returns {RadioGroup[]}\n */\n setUpColorRadios(selectors) {\n const radioGroups = [];\n\n selectors.forEach((selector) => {\n const radioGroup = new RadioGroup({\n selector: selector.trim(),\n controlName: 'Color',\n defaultValue: this.defaultColor,\n pluginName: 'Caption-Button-Plugin'\n });\n\n if (radioGroup.length !== 2) {\n this.warn(`Selector \"${selector}\" did not find exactly two(2) radio buttons for caption colors. Skipping selector`);\n return;\n }\n\n if (!radioGroup.hasOnly(COLOR_VALUES)) {\n return;\n }\n\n if (radioGroup.hasDuplicateValues()) {\n this.warn(`Duplicate radio button values detected (values: ${radioGroup.values} ). Skipping radio group`);\n return;\n }\n\n radioGroups.push(radioGroup);\n });\n\n return radioGroups;\n }\n\n /**\n * @memberof CaptionsStylePlugin\n * @param {string[]} selectors the separated selector strings used to target the radio button groups\n * @returns {RadioGroup[]}\n */\n setUpAlignmentRadios(selectors) {\n const radioGroups = [];\n\n selectors.forEach((selector) => {\n const radioGroup = new RadioGroup({\n selector: selector.trim(),\n controlName: 'Alignment',\n defaultValue: this.defaultAlignment,\n pluginName: 'Caption-Button-Plugin'\n });\n if (radioGroup.length !== 2) {\n this.warn(`Selector \"${selector}\" did not find exactly two(2) radio buttons for caption alignment. Skipping selector`);\n return;\n }\n\n if (!radioGroup.hasOnly(ALIGN_VALUES)) {\n return;\n }\n\n if (radioGroup.hasDuplicateValues()) {\n this.warn(`Duplicate radio button values detected (values: ${radioGroup.values} ). Skipping radio group`);\n return;\n }\n\n radioGroups.push(radioGroup);\n });\n\n return radioGroups;\n }\n\n /**\n * @memberof CaptionsStylePlugin\n */\n init() {\n // Handle the features request\n this.client.on(\n 'features',\n function($event) {\n\n for (const radio of this.radios) {\n radio.displayRadios($event.data);\n }\n\n }.bind(this)\n );\n\n this.client.on(\n 'caption-set-style',\n function($event) {\n this.setCaptionsStyles($event.data || {});\n }.bind(this)\n );\n }\n /**\n * @memberof CaptionsStylePlugin\n */\n start() {\n this.setCaptionsStyles(SavedData.read(CaptionsStylePlugin.captionStyleKey));\n\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Sends initial caption properties to the application\n * @memberof CaptionsStylePlugin\n */\n sendAllProperties() {\n this.sendProperty(CaptionsStylePlugin.captionStyleKey, this.captionsStyles);\n }\n /**\n * Fired whenever the font size radios are updated\n * @param {Event} e\n * @memberof CaptionsStylePlugin\n */\n onFontSizeChange(e) {\n this.setCaptionsStyles('size', e.target.value);\n\n // this.fontSizeRadios.forEach((group) => {\n // group.radioGroup[e.target.value].checked = true;\n // });\n }\n\n /**\n * Fired whenever the alignment radios are updated\n * @param {Event} e\n * @memberof CaptionsStylePlugin\n */\n onAlignmentChange(e) {\n this.setCaptionsStyles('align', e.target.value);\n\n // this.alignmentRadios.forEach((group) => {\n // group.radioGroup[e.target.value].checked = true;\n // });\n }\n\n /**\n * Fired whenever the color radios are updated\n * @param {Event} e\n * @memberof CaptionsStylePlugin\n */\n onColorChange(e) {\n const styles = e.target.value === 'default' ? DEFAULT_COLOR_STYLE : INVERTED_COLOR_STYLE;\n\n this.setCaptionsStyles(styles);\n\n // this.colorRadios.forEach((group) => {\n // group.radioGroup[e.target.value].checked = true;\n // });\n }\n\n /**\n * Reset the captions styles\n * @param {Event} e\n * @memberof CaptionsStylePlugin\n */\n clearCaptionsStyles() {\n this.captionsStyles = Object.assign({}, DEFAULT_CAPTIONS_STYLES);\n this.setCaptionsStyles();\n\n for (const radio of this.radios) {\n radio.resetState();\n }\n }\n\n /**\n * Get the captions styles\n * @param {string} [prop] The optional property, values are \"size\", \"edge\", \"font\", \"background\", \"color\"\n * @return {object | string} The collection of styles, see setCaptionsStyles for more info.\n * @memberof CaptionsStylePlugin\n */\n getCaptionsStyles(prop) {\n return prop ? this.captionsStyles[prop] : this.captionsStyles;\n }\n\n /**\n * Set the captions styles\n *\n * @param {object} [styles] The style options or the name of the\n * property (e.g., \"color\", \"edge\", \"font\", \"background\", \"size\")\n * @param {string} [styles.color='white'] The text color, the default is white\n * @param {string} [styles.edge='none'] The edge style, default is none\n * @param {string} [styles.font='arial'] The font style, default is arial\n * @param {string} [styles.background='black'] The background style, black\n * @param {string} [styles.size='md'] The font style default is medium\n * @param {string} [styles.align='top'] The align style default is top of the window\n * @param {string} [value=''] If setting styles parameter as a string, this is the value of the property.\n * @memberof CaptionsStylePlugin\n */\n setCaptionsStyles(styles = DEFAULT_CAPTIONS_STYLES, value = '') {\n if (typeof styles === 'object') {\n Object.assign(this.captionsStyles, styles);\n } else if (typeof styles === 'string') {\n this.captionsStyles[styles] = value;\n }\n\n // update radios to match\n this.colorRadios.forEach((group) => {\n const style = this.captionsStyles.color === 'white' ? 'default' : 'inverted'\n group.radioGroup[style].checked = true;\n });\n this.alignmentRadios.forEach((group) => {\n group.radioGroup[this.captionsStyles.align].checked = true;\n });\n this.fontSizeRadios.forEach((group) => {\n group.radioGroup[this.captionsStyles.size].checked = true;\n });\n\n SavedData.write(CaptionsStylePlugin.captionStyleKey, this.captionsStyles);\n if (this.client) {\n this.client.send(CaptionsStylePlugin.captionStyleKey, this.captionsStyles);\n }\n }\n\n /**\n * @readonly\n * @returns {number}\n * @memberof RadioGroup\n */\n get radios() {\n return this.colorRadios\n .concat(this.alignmentRadios)\n .concat(this.fontSizeRadios);\n }\n /**\n * Get captionStyle Key\n * @readonly\n * @static\n * @memberof CaptionStyleKey\n * @returns {string}\n */\n static get captionStyleKey() {\n return 'captionsStyles';\n }\n\n}\n","import { SavedData } from '../SavedData';\nimport { ButtonPlugin } from '../base-plugins';\nimport { Button } from '../ui-elements';\n\n/**\n * @export\n * @class CaptionsTogglePlugin\n * @property {Button[]} _captionsButtons An array of caption mute buttons\n * @property {boolean} _captionsMuted True if captions are muted\n * @property {number} captionsButtonLength The length of the captionsButtons array\n * @extends {ButtonPlugin}\n */\nexport class CaptionsTogglePlugin extends ButtonPlugin {\n /**\n *Creates an instance of CaptionsTogglePlugin.\n * @param {string | HTMLElement} captionsButtons selector string for one or more captions mute buttons\n * @memberof CaptionsTogglePlugin\n */\n constructor(captionsButtons) {\n super('Caption-Button-Plugin');\n this.sendAllProperties = this.sendAllProperties.bind(this);\n\n this._captionsButtons = [];\n\n if ( captionsButtons instanceof HTMLElement ) {\n this._captionsButtons[0] = new Button({\n button: captionsButtons,\n onClick: this.captionsButtonClick.bind(this),\n channel: 'captions'\n });\n } else {\n document.querySelectorAll(captionsButtons).forEach((button) => {\n this._captionsButtons.push(new Button({\n button: button,\n onClick: this.captionsButtonClick.bind(this),\n channel: 'captions'\n }));\n });\n }\n\n this._captionsMuted = false;\n this.captionsButtonLength = this._captionsButtons.length;\n\n if (0 >= this.captionsButtonLength) {\n this.warn(\n 'Plugin was not provided any valid button or input elements'\n );\n return;\n }\n }\n\n /**\n * @memberof CaptionsTogglePlugin\n */\n init() {\n // Handle the features request\n this.client.on(\n 'features',\n function($event) {\n for (let i = 0; i < this.captionsButtonLength; i ++) {\n this._captionsButtons[i].displayButton($event.data);\n }\n\n if (null === SavedData.read(CaptionsTogglePlugin.captionsToggleKey)) {\n return;\n }\n\n this.captionsMuted = !!SavedData.read(CaptionsTogglePlugin.captionsToggleKey);\n\n }.bind(this)\n );\n }\n /**\n * @memberof CaptionsTogglePlugin\n */\n start() {\n this.captionsMuted = !!SavedData.read(CaptionsTogglePlugin.captionsToggleKey);\n\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Sends initial caption properties to the application\n * @memberof CaptionsTogglePlugin\n */\n sendAllProperties() {\n this.sendProperty(CaptionsTogglePlugin.captionsToggleKey, this.captionsMuted);\n }\n\n /**\n * @memberof CaptionsTogglePlugin\n */\n captionsButtonClick() {\n this.captionsMuted = !this.captionsMuted;\n }\n\n /**\n * @readonly\n * @memberof CaptionsTogglePlugin\n */\n get captionsMuted() {\n return this._captionsMuted;\n }\n\n /**\n * @param {boolean} muted\n * @memberof CaptionsTogglePlugin\n */\n set captionsMuted(muted) {\n this._captionsMuted = muted;\n this._setMuteProp(\n 'captionsMuted',\n this._captionsButtons,\n this._captionsMuted\n );\n }\n\n /**\n * Get CaptionToggle Key\n * @readonly\n * @static\n * @memberof captionsToggleKey\n * @returns {string}\n */\n static get captionsToggleKey() {\n return 'captionsMuted';\n }\n}\n","import { ButtonPlugin } from '../base-plugins';\nimport { Button } from '../ui-elements';\n\n/**\n * Requests a hint or help from the game\n * @class HelpPlugin\n * @property {boolean} paused\n * @property {boolean} _helpEnabled\n * @property {boolean} onPause\n * @property {number} helpButtonsLength\n * @extends {ButtonPlugin}\n * @export\n */\nexport class HelpPlugin extends ButtonPlugin {\n /**\n * Creates an instance of HelpPlugin.\n * @param {string | HTMLElement} helpButtons The selector or HTMLElement for the button\n * @memberof HelpPlugin\n */\n constructor(helpButtons) {\n super('Help-Button-Plugin');\n\n this._helpButtons = [];\n\n if (helpButtons instanceof HTMLElement) {\n this._helpButtons[0] = new Button({\n button: helpButtons,\n onClick: this.helpButtonClick.bind(this),\n channel: 'hints' // the check to see if this feature exists is different than most so passing this ensures it'll work the same.\n });\n } else {\n document.querySelectorAll(helpButtons).forEach((button) => {\n this._helpButtons.push(\n new Button({\n button: button,\n onClick: this.helpButtonClick.bind(this),\n channel: 'hints'\n })\n );\n });\n }\n\n this.paused = false;\n this._helpEnabled = false;\n this.onPause = this.onPause.bind(this);\n this.helpButtonsLength = this._helpButtons.length;\n\n if (this.helpButtonsLength <= 0) {\n this.warn('Plugin was not provided any valid button elements');\n }\n }\n /**\n * Called when the game is either paused or resumed\n * @param {object} $event\n * @memberof HelpPlugin\n */\n onPause($event) {\n this.paused = $event.data.paused;\n // Disable the help button when paused if it's active\n if (\n this.paused &&\n this.helpEnabled\n ) {\n for (let i = 0; i < this.helpButtonsLength; i++) {\n this._helpButtons[i].button.setAttribute('data-paused', 'true');\n }\n this.helpEnabled = false;\n } else {\n for (let i = 0; i < this.helpButtonsLength; i++) {\n if (this._helpButtons[i].button.getAttribute('data-paused')) {\n this._helpButtons[i].button.setAttribute('data-paused', '');\n this.helpEnabled = true;\n }\n }\n }\n }\n\n /**\n *\n *\n * @memberof HelpPlugin\n */\n helpButtonClick() {\n if (\n !this.paused &&\n this.helpEnabled\n ) {\n this.client.send('playHelp');\n }\n }\n\n /**\n * @memberof HelpPlugin\n */\n init() {\n // Handle pause\n this.client.on('paused', this.onPause);\n\n // Handle features changed\n this.client.on(\n 'features',\n function(features) {\n this.helpEnabled = features.data.hints;\n for (let i = 0; i < this.helpButtonsLength; i++) {\n this._helpButtons[i].displayButton(features.data);\n }\n }.bind(this)\n );\n\n this.client.on(\n 'helpEnabled',\n function(event) {\n this._helpEnabled = !!event.data;\n }.bind(this)\n );\n }\n\n /**\n * @memberof HelpPlugin\n */\n get helpEnabled() {\n return this._helpEnabled;\n }\n\n /**\n * Fired when the enabled status of the help button changes\n * @function helpEnabled\n * @param {boolean} enabled If the help button is enabled\n * @memberof HelpPlugin\n */\n set helpEnabled(enabled) {\n this._helpEnabled = enabled;\n for (let i = 0; i < this.helpButtonsLength; i++) {\n this._helpButtons[i].button.classList.remove('disabled');\n this._helpButtons[i].button.classList.remove('enabled');\n this._helpButtons[i].button.classList.add(enabled ? 'enabled' : 'disabled');\n }\n\n this.client.trigger('helpEnabled');\n }\n\n /**\n * @readonly\n * @static\n * @memberof HelpPlugin\n * @returns {string}\n */\n static get helpKey() {\n return 'help';\n }\n\n}\n","import { ButtonPlugin } from '../base-plugins';\nimport { PageVisibility } from '../PageVisibility';\nimport { Button } from '../ui-elements';\n/**\n * @class Container\n * @property {object[]} sliders an array of all slider objects attached to PausePlugin\n * @extends ButtonPlugin\n */\nexport class PausePlugin extends ButtonPlugin {\n /**\n * Creates an instance of PausePlugin.\n * @param {string | HTMLElement} pauseButton selector string or HTML Element for the input(s)\n * @param {boolean} manageOwnVisibility whether the plugin should manage container's visibility or some other source will handle it\n * @memberof PausePlugin\n */\n constructor(pauseButton, manageOwnVisibility = true) {\n super('Pause-Button-plugin');\n this._manageOwnVisibility = manageOwnVisibility;\n this._appBlurred = false;\n this._containerBlurred = false;\n this._focusTimer = null;\n this._isManualPause = false;\n this._keepFocus = false;\n this._paused = false;\n this.iframe = null;\n this.focusApp = this.focusApp.bind(this);\n this.manageFocus = this.manageFocus.bind(this);\n this.onKeepFocus = this.onKeepFocus.bind(this);\n this.onFocus = this.onFocus.bind(this);\n const onPauseToggle = this.onPauseToggle.bind(this);\n\n this.pauseDisabled = false;\n this._pauseButton = [];\n\n this.pageVisibility = new PageVisibility(\n this.onContainerFocus.bind(this),\n this.onContainerBlur.bind(this)\n );\n\n this.pageVisibility.enabled = this.manageOwnVisibility;\n\n if (pauseButton instanceof HTMLElement) {\n this._pauseButton[0] = new Button({\n button: pauseButton,\n onClick: onPauseToggle,\n channel: PausePlugin.pauseKey\n });\n } else {\n document.querySelectorAll(pauseButton).forEach((button) => {\n this._pauseButton.push(new Button({\n button: button,\n onClick: onPauseToggle,\n channel: PausePlugin.pauseKey\n }));\n });\n }\n }\n\n /**\n * updates _paused and also sends the pause event to the application\n * @memberof PausePlugin\n * @param {Boolean} paused\n */\n set pause(paused) {\n paused = !!paused;\n\n if (this.pauseDisabled) {\n return;\n }\n this._paused = paused;\n\n this.client.send(PausePlugin.pauseKey, paused);\n this.client.trigger(paused ? 'paused' : 'resumed', { paused });\n\n for (let i = 0, l = this._pauseButton.length; i < l; i++) {\n this._pauseButton[i].button.classList.remove('unpaused');\n this._pauseButton[i].button.classList.remove('paused');\n this._pauseButton[i].button.classList.add(paused ? 'paused' : 'unpaused');\n }\n }\n\n /**\n * @memberof PausePlugin\n * @returns {Boolean}\n */\n get pause() {\n return this._paused;\n }\n\n /**\n * updates _manageOwnVisibility and also re-enables pageVisibility\n * @memberof PausePlugin\n * @param {Boolean} manageOwnVisibility\n */\n set manageOwnVisibility(manageOwnVisibility) {\n this._manageOwnVisibility = manageOwnVisibility;\n\n this.pageVisibility.enabled = this._manageOwnVisibility;\n }\n\n /**\n * @memberof PausePlugin\n * @returns {Boolean}\n */\n get manageOwnVisibility() {\n return this._manageOwnVisibility;\n }\n\n /**\n * forces focus onto the iframe application window\n * @memberof PausePlugin\n */\n focusApp() {\n if (!this.hasDom) {\n // We don't have a dom with a content window, fail quietly\n return;\n }\n\n this.iframe.contentWindow.focus();\n }\n\n /**\n * blurs the application iframe window\n * @memberof PausePlugin\n */\n blurApp() {\n if (!this.hasDom) {\n return;\n }\n this.iframe.contentWindow.blur();\n }\n\n /**\n * Determines what pause state should be sent, if any, on focus or blur events.\n * @method manageFocus\n * @memberof PausePlugin\n */\n manageFocus() {\n if (!this.manageOwnVisibility) {\n return;\n }\n // Unfocus on the iframe\n if (this._keepFocus) {\n this.blurApp();\n }\n\n // we only need one delayed call, at the end of any\n // sequence of rapidly-fired blur/focus events\n if (this._focusTimer) {\n clearTimeout(this._focusTimer);\n }\n\n // Delay setting of 'paused' in case we get another focus event soon.\n // Focus events are sent to the container asynchronously, and this was\n // causing rapid toggling of the pause state and related issues,\n // especially in Internet Explorer\n this._focusTimer = setTimeout(\n function () {\n this._focusTimer = null;\n // A manual pause cannot be overriden by focus events.\n // User must click the resume button.\n if (this._isManualPause) {\n return;\n }\n\n this.pause = Boolean(this._containerBlurred && this._appBlurred);\n\n // Focus on the content window when blurring the app\n // but selecting the container\n if (this._keepFocus && !this._containerBlurred && this._appBlurred) {\n this.focusApp();\n }\n }.bind(this),\n 100\n );\n }\n\n /**\n * Handle the keep focus event for the window\n * @method onKeepFocus\n * @memberof PausePlugin\n * @private\n */\n onKeepFocus($event) {\n this._keepFocus = !!$event.data;\n this.manageFocus();\n }\n\n /**\n * Handle focus events sent from iFrame children\n * @method onFocus\n * @memberof PausePlugin\n * @private\n */\n onFocus($event) {\n this._appBlurred = !$event.data;\n this.manageFocus();\n }\n\n /**\n * Handle focus events sent from container's window\n * @method onContainerFocus\n * @memberof PausePlugin\n * @private\n */\n onContainerFocus() {\n this._containerBlurred = false;\n this.manageFocus();\n }\n\n /**\n * Handle blur events sent from container's window\n * @method onContainerBlur\n * @memberof PausePlugin\n * @private\n */\n onContainerBlur() {\n //Set both container and application to blurred,\n //because some blur events are only happening on the container.\n //If container is blurred because application area was just focused,\n //the application's focus event will override the blur imminently.\n this._containerBlurred = this._appBlurred = true;\n this.manageFocus();\n }\n\n /**\n * @memberof PausePlugin\n */\n onPauseToggle() {\n this._isManualPause = !this._isManualPause;\n this.pause = !this.pause;\n }\n\n /**\n * @param {Container} container\n * @memberof PausePlugin\n */\n init({ iframe }) {\n this.iframe = iframe;\n\n this.client.on(\n 'features',\n function (features) {\n if (features.disablePause) {\n this.pauseDisabled = true;\n }\n\n for (let i = 0, l = this._pauseButton.length; i < l; i++) {\n this._pauseButton[i].displayButton(features.data);\n }\n }.bind(this)\n );\n this.client.on('focus', this.onFocus);\n this.client.on('keepFocus', this.onKeepFocus);\n\n this.pause = this._paused;\n }\n\n /**\n * Function to check if we have a dom with a contentWindow\n * @readonly\n * @returns {boolean}\n * @memberof PausePlugin\n */\n get hasDom() {\n return Boolean(null !== this.iframe && this.iframe.contentWindow);\n }\n\n /**\n * @readonly\n * @memberof PausePlugin\n * @returns {HTMLButtonElement[]}\n */\n get pauseButton() {\n const buttons = [];\n for (let i = 0, l = this._pauseButton.length; i < l; i++) {\n buttons.push(this._pauseButton[i].button);\n }\n return buttons;\n }\n\n /**\n * @readonly\n * @static\n * @memberof PausePlugin\n * @returns {string}\n */\n static get pauseKey() {\n return 'pause';\n }\n}\n","import { SavedData } from '../SavedData';\nimport { ButtonPlugin } from '../base-plugins';\nimport { Slider, Button } from '../ui-elements';\n\n/**\n * @export\n * @class SoundPlugin\n * @extends {ButtonPlugin}\n *\n */\nexport class SoundPlugin extends ButtonPlugin {\n /**\n * Creates an instance of SoundPlugin.\n * @param {string | HTMLElement} [soundButtons] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [musicButtons] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [voButtons] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [sfxButtons] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [soundSliders] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [musicSliders] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [sfxSliders] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [voSliders] selector string or HTML Element for the input(s)\n * @memberof SoundPlugin\n */\n constructor({\n soundButtons,\n musicButtons,\n sfxButtons,\n voButtons,\n soundSliders,\n musicSliders,\n sfxSliders,\n voSliders\n } = {}) {\n super('Sound-Button-Plugin');\n const saved = SavedData.read(SoundPlugin.soundMutedKey);\n this.sendAllProperties = this.sendAllProperties.bind(this);\n this._soundMuted = saved ? saved : false;\n this._musicMuted = false;\n this._voMuted = false;\n this._sfxMuted = false;\n\n this.soundVolume = 1;\n this.musicVolume = 1;\n this.sfxVolume = 1;\n this.voVolume = 1;\n\n this.soundSliders = [];\n this.musicSliders = [];\n this.sfxSliders = [];\n this.voSliders = [];\n\n this.soundButtons = [];\n this.musicButtons = [];\n this.sfxButtons = [];\n this.voButtons= [];\n\n if (soundSliders instanceof HTMLElement) {\n this.soundSliders[0] = new Slider({\n slider: soundSliders,\n control: SoundPlugin.soundVolumeKey,\n defaultValue: this.soundVolume\n });\n } else {\n document.querySelectorAll(soundSliders).forEach((slider) => {\n const newSlider = new Slider({\n slider: slider,\n control: SoundPlugin.soundVolumeKey,\n defaultValue: this.soundVolume\n });\n if (newSlider.slider) {\n this.soundSliders.push(newSlider);\n }\n });\n }\n if (musicSliders instanceof HTMLElement) {\n this.musicSliders[0] = new Slider({\n slider: musicSliders,\n control: SoundPlugin.musicVolumeKey,\n defaultValue: this.musicVolume\n });\n } else {\n document.querySelectorAll(musicSliders).forEach((slider) => {\n const newSlider = new Slider({\n slider: slider,\n control: SoundPlugin.musicVolumeKey,\n defaultValue: this.musicVolume\n });\n if (newSlider.slider) {\n this.musicSliders.push(newSlider);\n }\n });\n }\n if (sfxSliders instanceof HTMLElement) {\n this.sfxSliders[0] = new Slider({\n slider: sfxSliders,\n control: SoundPlugin.sfxVolumeKey,\n defaultValue: this.sfxVolume\n });\n } else {\n document.querySelectorAll(sfxSliders).forEach((slider) => {\n const newSlider = new Slider({\n slider: slider,\n control: SoundPlugin.sfxVolumeKey,\n defaultValue: this.sfxVolume\n });\n if (newSlider.slider) {\n this.sfxSliders.push(newSlider);\n }\n });\n }\n if (voSliders instanceof HTMLElement) {\n this.voSliders[0] = new Slider({\n slider: voSliders,\n control: SoundPlugin.voVolumeKey,\n defaultValue: this.voVolume\n });\n } else {\n document.querySelectorAll(voSliders).forEach((slider) => {\n const newSlider = new Slider({\n slider: slider,\n control: SoundPlugin.voVolumeKey,\n defaultValue: this.voVolume\n });\n if (newSlider.slider) {\n this.voSliders.push(newSlider);\n }\n });\n }\n\n if ( soundButtons instanceof HTMLElement ) {\n this.soundButtons[0] = new Button({\n button: soundButtons,\n onClick: this.onSoundToggle.bind(this),\n channel: SoundPlugin.soundKey\n });\n } else {\n document.querySelectorAll(soundButtons).forEach((button) => {\n this.soundButtons.push(new Button({\n button: button,\n onClick: this.onSoundToggle.bind(this),\n channel: SoundPlugin.soundKey\n }));\n });\n }\n if ( musicButtons instanceof HTMLElement ) {\n this.musicButtons[0] = new Button({\n button: musicButtons,\n onClick: this.onMusicToggle.bind(this),\n channel: 'music'\n });\n } else {\n document.querySelectorAll(musicButtons).forEach((button) => {\n this.musicButtons.push(new Button({\n button: button,\n onClick: this.onMusicToggle.bind(this),\n channel: 'music'\n }));\n });\n }\n if ( sfxButtons instanceof HTMLElement ) {\n this.sfxButtons[0] = new Button({\n button: sfxButtons,\n onClick: this.onSFXToggle.bind(this),\n channel: 'sfx'\n });\n } else {\n document.querySelectorAll(sfxButtons).forEach((button) => {\n this.sfxButtons.push(new Button({\n button: button,\n onClick: this.onSFXToggle.bind(this),\n channel: 'sfx'\n }));\n });\n }\n if ( voButtons instanceof HTMLElement ) {\n this.voButtons[0] = new Button({\n button: voButtons,\n onClick: this.onVOToggle.bind(this),\n channel: 'vo'\n });\n } else {\n document.querySelectorAll(voButtons).forEach((button) => {\n this.voButtons.push(new Button({\n button: button,\n onClick: this.onVOToggle.bind(this),\n channel: 'vo'\n }));\n });\n }\n\n this.soundSlidersLength = this.soundSliders.length;\n this.musicSlidersLength = this.musicSliders.length;\n this.sfxSlidersLength = this.sfxSliders.length;\n this.voSlidersLength = this.voSliders.length;\n this.soundButtonsLength = this.soundButtons.length;\n this.musicButtonsLength = this.musicButtons.length;\n this.sfxButtonsLength = this.sfxButtons.length;\n this.voButtonsLength = this.voButtons.length;\n\n if (0 >= (this.soundSlidersLength + this.musicSlidersLength + this.sfxSlidersLength + this.voSlidersLength + this.soundButtonsLength + this.musicButtonsLength + this.sfxButtonsLength + this.voButtonsLength)) {\n this.warn('Plugin was not provided any valid HTML Elements');\n return;\n }\n\n for (let i = 0; i < this.soundSlidersLength; i++) {\n this.soundSliders[i].enableSliderEvents(this.onSoundVolumeChange.bind(this));\n }\n for (let i = 0; i < this.musicSlidersLength; i++) {\n this.musicSliders[i].enableSliderEvents(this.onMusicVolumeChange.bind(this));\n }\n for (let i = 0; i < this.sfxSlidersLength; i++) {\n this.sfxSliders[i].enableSliderEvents(this.onSFXVolumeChange.bind(this));\n }\n for (let i = 0; i < this.voSlidersLength; i++) {\n this.voSliders[i].enableSliderEvents(this.onVOVolumeChange.bind(this));\n }\n\n if (this.soundSliders[0] && this.soundSliders[0].slider) {\n this.soundVolume = this.soundSliders[0].value;\n }\n if (this.musicSliders[0] && this.musicSliders[0].slider) {\n this.musicVolume = this.musicSliders[0].value;\n }\n if (this.sfxSliders[0] && this.sfxSliders[0].slider) {\n this.sfxVolume = this.sfxSliders[0].value;\n }\n if (this.voSliders[0] && this.voSliders[0].slider) {\n this.voVolume = this.voSliders[0].value;\n }\n }\n\n /**\n * @memberof SoundPlugin\n * @param {Event} e\n */\n onSoundVolumeChange(e) {\n this.soundVolume = this.soundSliders[0].sliderRange(\n Number(e.target.value)\n );\n this.soundMuted = !this.soundVolume;\n this._checkSoundMute();\n this.sendProperty(SoundPlugin.soundVolumeKey, this.soundVolume);\n\n for (let i = 0; i < this.soundSlidersLength; i++) {\n this.soundSliders[i].value = this.soundVolume;\n }\n }\n\n /**\n * @memberof SoundPlugin\n * @param {Event} e\n */\n onMusicVolumeChange(e) {\n this.musicVolume = this.musicSliders[0].sliderRange(\n Number(e.target.value)\n );\n this.musicMuted = !this.musicVolume;\n this._checkSoundMute();\n this.sendProperty(SoundPlugin.musicVolumeKey, this.musicVolume);\n\n for (let i = 0; i < this.musicSlidersLength; i++) {\n this.musicSliders[i].value = this.musicVolume;\n }\n }\n\n /**\n * @memberof SoundPlugin\n * @param {Event} e\n */\n onVOVolumeChange(e) {\n this.voVolume = this.voSliders[0].sliderRange(Number(e.target.value));\n this.voMuted = !this.voVolume;\n this._checkSoundMute();\n this.sendProperty(SoundPlugin.voVolumeKey, this.voVolume);\n for (let i = 0; i < this.voSlidersLength; i++) {\n this.voSliders[i].value = this.voVolume;\n }\n }\n\n /**\n * @memberof SoundPlugin\n * @param {Event} e\n */\n onSFXVolumeChange(e) {\n this.sfxVolume = this.sfxSliders[0].sliderRange(Number(e.target.value));\n this.sfxMuted = !this.sfxVolume;\n this._checkSoundMute();\n this.sendProperty(SoundPlugin.sfxVolumeKey, this.sfxVolume);\n\n for (let i = 0; i < this.sfxSlidersLength; i++) {\n this.sfxSliders[i].value = this.sfxVolume;\n }\n }\n\n /**\n * @memberof SoundPlugin\n */\n onSoundToggle() {\n const muted = !this.soundMuted;\n this.soundMuted = muted;\n this.musicMuted = muted;\n this.voMuted = muted;\n this.sfxMuted = muted;\n }\n\n /**\n * @memberof SoundPlugin\n */\n onMusicToggle() {\n this.musicMuted = !this.musicMuted;\n this._checkSoundMute();\n }\n\n /**\n * @memberof SoundPlugin\n */\n onVOToggle() {\n this.voMuted = !this.voMuted;\n this._checkSoundMute();\n }\n\n /**\n * @memberof SoundPlugin\n */\n onSFXToggle() {\n this.sfxMuted = !this.sfxMuted;\n this._checkSoundMute();\n }\n\n /**\n * @memberof SoundPlugin\n */\n _checkSoundMute() {\n this.soundMuted = this.sfxMuted && this.voMuted && this.musicMuted;\n }\n\n /**\n * @param {string} key\n * @param {*} value\n * @param {Element} element\n * @memberof SoundPlugin\n */\n setMuteProp(key, value, element) {\n this['_' + key] = value;\n this._setMuteProp(key, element, value);\n }\n\n /**\n * @memberof SoundPlugin\n */\n init() {\n this.client.on(\n 'features',\n function(features) {\n if (!features.data) {\n return;\n }\n\n for (let i = 0; i < this.soundButtonsLength; i++) {\n this.soundButtons[i].displayButton(features.data);\n }\n for (let i = 0; i < this.musicButtonsLength; i++) {\n this.musicButtons[i].displayButton(features.data);\n }\n for (let i = 0; i < this.sfxButtonsLength; i++) {\n this.sfxButtons[i].displayButton(features.data);\n }\n for (let i = 0; i < this.voButtonsLength; i++) {\n this.voButtons[i].displayButton(features.data);\n }\n for (let i = 0; i < this.soundSlidersLength; i++) {\n this.soundSliders[i].displaySlider(features.data);\n }\n for (let i = 0; i < this.musicSlidersLength; i++) {\n this.musicSliders[i].displaySlider(features.data);\n }\n for (let i = 0; i < this.sfxSlidersLength; i++) {\n this.sfxSliders[i].displaySlider(features.data);\n }\n for (let i = 0; i < this.voSlidersLength; i++) {\n this.voSliders[i].displaySlider(features.data);\n }\n }.bind(this)\n );\n }\n\n /**\n * @memberof SoundPlugin\n */\n start() {\n\n for (let i = 0; i < this.soundButtonsLength; i++) {\n this.soundButtons[i].enableButton();\n }\n for (let i = 0; i < this.musicButtonsLength; i++) {\n this.musicButtons[i].enableButton();\n }\n for (let i = 0; i < this.sfxButtonsLength; i++) {\n this.sfxButtons[i].enableButton();\n }\n for (let i = 0; i < this.voButtonsLength; i++) {\n this.voButtons[i].enableButton();\n }\n\n this.soundMuted = !!SavedData.read(SoundPlugin.soundMutedKey);\n this.musicMuted = !!SavedData.read(SoundPlugin.musicMutedKey);\n this.sfxMuted = !!SavedData.read(SoundPlugin.sfxMutedKey);\n this.voMuted = !!SavedData.read(SoundPlugin.voMutedKey);\n\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Saves the current state of all volume properties, and then sends them to the game\n * @memberof SoundPlugin\n */\n sendAllProperties() {\n this.sendProperty(SoundPlugin.soundVolumeKey, this.soundVolume);\n this.sendProperty(SoundPlugin.musicVolumeKey, this.musicVolume);\n this.sendProperty(SoundPlugin.voVolumeKey, this.voVolume);\n this.sendProperty(SoundPlugin.sfxVolumeKey, this.sfxVolume);\n\n this.sendProperty(SoundPlugin.voMutedKey, this.voMuted);\n this.sendProperty(SoundPlugin.soundMutedKey, this.soundMuted);\n this.sendProperty(SoundPlugin.musicMutedKey, this.musicMuted);\n this.sendProperty(SoundPlugin.sfxMutedKey, this.sfxMuted);\n }\n\n /**\n * @memberof SoundPlugin\n * @param {boolean} muted\n */\n set soundMuted(muted) {\n this.setMuteProp('soundMuted', muted, this.soundButtons);\n }\n\n /**\n * @memberof SoundPlugin\n */\n get soundMuted() {\n return this._soundMuted;\n }\n\n /**\n * @memberof SoundPlugin\n * @param {boolean} muted\n */\n set voMuted(muted) {\n this.setMuteProp('voMuted', muted, this.voButtons);\n }\n\n /**\n * @memberof SoundPlugin\n */\n get voMuted() {\n return this._voMuted;\n }\n\n /**\n * @memberof SoundPlugin\n * @param {boolean} muted\n */\n set musicMuted(muted) {\n this.setMuteProp('musicMuted', muted, this.musicButtons);\n }\n\n /**\n * @memberof SoundPlugin\n */\n get musicMuted() {\n return this._musicMuted;\n }\n\n /**\n * @memberof SoundPlugin\n * @param {boolean} muted\n */\n set sfxMuted(muted) {\n this.setMuteProp('sfxMuted', muted, this.sfxButtons);\n }\n\n /**\n * @memberof SoundPlugin\n */\n get sfxMuted() {\n return this._sfxMuted;\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get soundMutedKey() {\n return 'soundMuted';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get voMutedKey() {\n return 'voMuted';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get musicMutedKey() {\n return 'musicMuted';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get sfxMutedKey() {\n return 'sfxMuted';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get soundVolumeKey() {\n return 'soundVolume';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get sfxVolumeKey() {\n return 'sfxVolume';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get voVolumeKey() {\n return 'voVolume';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get musicVolumeKey() {\n return 'musicVolume';\n }\n\n /**\n * @readonly\n * @memberof SoundPlugin\n */\n get soundButton() {\n return this._soundButton.button;\n }\n\n /**\n * @readonly\n * @memberof SoundPlugin\n */\n get musicButton() {\n return this._musicButton.button;\n }\n /**\n * @readonly\n * @memberof SoundPlugin\n */\n get sfxButton() {\n return this._sfxButton.button;\n }\n /**\n * @readonly\n * @memberof SoundPlugin\n */\n get voButton() {\n return this._voButton.button;\n }\n\n /**\n * @readonly\n * @static\n * @memberof SpeedScalePlugin\n * @return {string}\n */\n static get soundKey() {\n return 'sound';\n }\n}\n","import { SavedData } from './SavedData';\n/**\n * Default user data handler for the {{#crossLink \"springroll.Container\"}}Container{{/crossLink}} to save data using\n * the {{#crossLink \"springroll.SavedData\"}}SavedData{{/crossLink}} class.\n * @class SavedDataHandler\n */\nexport class SavedDataHandler {\n\n /**\n * \n */\n constructor() {\n this.dbName;\n this.savedData;\n }\n \n /**\n * Remove a data setting\n * @method remove\n * @static\n * @param {String} name The name of the property\n * @param {Function} [callback] Callback when remove is complete\n */\n static remove(name, callback) {\n SavedData.remove(name);\n callback();\n }\n\n /**\n * Write a custom setting\n * @method write\n * @static\n * @param {String} name The name of the property\n * @param {*} value The value to set the property to\n * @param {Function} [callback] Callback when write is complete\n */\n static write(name, value, callback) {\n SavedData.write(name, value);\n callback();\n }\n\n /**\n * Read a custom setting\n * @method read\n * @static\n * @param {String} name The name of the property\n * @param {Function} callback Callback when read is complete, returns the value\n */\n static read(name, callback) {\n callback(SavedData.read(name));\n }\n\n // ----------------------------------------------------------------\n // IndexedDB Manipulation \n // ----------------------------------------------------------------\n\n /**\n * Open a connection with the database\n * @param {string} dbName The name of your IndexedDB database\n * @param {string} dbVersion The version number of the database\n * @param {JSON} additions Any additions to the structure of the database\n * @param {array} additions.stores Any stores to be added into the database syntax: \n * {storeName: '[name]', options: {[optionally add options]}}\n * @param {array} additions.indexes Any Indexes to be added to the database syntax: \n * {storeName: '[name]', options: {[optionally add options]}}\n */\n IDBOpen( dbName, dbVersion = null, additions = {}, deletions = {}, callback = null) {\n // persisting the savedData object to keep the connection open\n this.savedData = new SavedData();\n this.savedData.IDBOpen( dbName, dbVersion, additions, deletions, callback);\n }\n\n /**\n * Add a record to a given store\n * @param {string} storeName The name of the store from which the record will be updated\n * @param {string} key the key of the record to be updated \n * @param {*} value The value for the record with the given key to be updated\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBAdd(storeName, record, key, callback) {\n this.savedData.IDBAdd(storeName, record, key, callback);\n }\n \n /**\n * Update a record from a given store\n * @param {string} storeName The name of the store from which the record will be updated\n * @param {string} key the key of the record to be updated \n * @param {*} value The value for the record with the given key to be updated\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBUpdate(storeName, key, value, callback) {\n this.savedData.IDBUpdate(storeName, key, value, callback);\n }\n\n /**\n * Remove a record from a store\n * @param {*} storeName The name of the store from which the record will be removed\n * @param {*} key the key of the record to be removed \n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBRemove(storeName, key, callback) {\n this.savedData.IDBRemove(storeName, key, callback);\n }\n\n /**\n * Return a record from a given store with a given key\n * @param {string} storeName The name of the store to read from\n * @param {string} key The key for the record in the given store \n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBRead(storeName, key, callback) {\n this.savedData.IDBRead(storeName, key, callback);\n }\n\n /**\n * Get all records from a store\n * @param {string} storeName The store to get all records from\n * @param {integer} count Optionally the count of records to return\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBReadAll(storeName, count, callback) {\n this.savedData.IDBReadAll(storeName, count, callback);\n }\n\n /**\n * Get the version of a given database\n * @param {string} dbName The name of the database to return the version of\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBGetVersion(dbName, callback) {\n const sd = new SavedData(dbName);\n\n sd.IDBGetVersion(dbName, callback);\n }\n\n /**\n * Closes the connection to the database\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBClose(callback) {\n this.savedData.IDBClose(callback);\n }\n /**\n * Closes the connection to the database\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBDeleteDB(dbName, options, callback) {\n const sd = new SavedData(dbName);\n sd.IDBDeleteDB(dbName, options, callback);\n }\n\n}\n","import { SavedDataHandler } from '../SavedDataHandler';\nimport { BasePlugin } from '../base-plugins';\n\n/**\n * @export\n * @class UserDataPlugin\n * @extends {BasePlugin}\n * @property {SavedDataHandler} SavedDataHandler The handler to work with the savedData class\n */\nexport class UserDataPlugin extends BasePlugin {\n /**\n * Creates an instance of UserDataPlugin.\n * @memberof UserDataPlugin\n */\n constructor() {\n super('UserData-Plugin');\n this.onUserDataRemove = this.onUserDataRemove.bind(this);\n this.onUserDataRead = this.onUserDataRead.bind(this);\n this.onUserDataWrite = this.onUserDataWrite.bind(this);\n\n this.onIDBAdd = this.onIDBAdd.bind(this);\n this.onIDBOpen = this.onIDBOpen.bind(this);\n this.onIDBRead = this.onIDBRead.bind(this);\n this.onIDBReadAll = this.onIDBReadAll.bind(this);\n this.onIDBRemove = this.onIDBRemove.bind(this);\n this.onIDBUpdate = this.onIDBUpdate.bind(this);\n this.onIDBUpdate = this.onIDBUpdate.bind(this);\n this.onIDBClose = this.onIDBClose.bind(this);\n this.IDBReadAll = this.onIDBReadAll.bind(this);\n this.onIDBGetVersion = this.onIDBGetVersion.bind(this);\n this.onIDBDeleteDB = this.onIDBDeleteDB.bind(this);\n\n this.savedDataHandler = null;\n }\n\n /**\n *\n * @memberof UserDataPlugin\n */\n init() {\n this.client.on('userDataRemove', this.onUserDataRemove);\n this.client.on('userDataRead', this.onUserDataRead);\n this.client.on('userDataWrite', this.onUserDataWrite);\n\n this.client.on('IDBOpen', this.onIDBOpen);\n this.client.on('IDBRead', this.onIDBRead);\n this.client.on('IDBReadAll', this.onIDBReadAll);\n this.client.on('IDBAdd', this.onIDBAdd);\n this.client.on('IDBRemove', this.onIDBRemove);\n this.client.on('IDBUpdate', this.onIDBUpdate);\n this.client.on('IDBClose', this.onIDBClose);\n this.client.on('IDBGetVersion', this.onIDBGetVersion);\n this.client.on('IDBDeleteDB', this.onIDBDeleteDB);\n }\n\n /**\n * Handler for the userDataRemove event\n * @method onUserDataRemove\n * @private\n * @param {string} data The name of the record to be removed\n * @param {string} type The type of listener for bellhop to send to\n */\n onUserDataRemove({ data, type }) {\n SavedDataHandler.remove(data, () => {\n this.client.send(type);\n });\n }\n\n /**\n * Handler for the userDataRead event\n * @method onUserDataRead\n * @private\n * @param {string} data The name of the record to be removed\n * @param {string} type The type of listener for bellhop to send to\n */\n onUserDataRead({ data, type }) {\n SavedDataHandler.read(data, value => this.client.send(type, value));\n }\n\n /**\n * Handler for the userDataWrite event\n * @method onUserDataWrite\n * @private\n * @param {string} type The type of listener for bellhop to send to\n * @param {string} data.name The name for the record. This is what is used to read or remove the record\n * @param {object | string} data.value The data object with the data and value for the record\n */\n onUserDataWrite({type, data: { name, value } }) {\n\n SavedDataHandler.write(name, value, () => this.client.send(type));\n }\n\n // ----------------------------------------------------------------\n // IndexedDB Manipulation\n // ----------------------------------------------------------------\n\n /**\n * Open a connection with the IDB Database and optionally add or delete\n * Indexes and stores\n * @param {string} dbName The name of your IndexedDB database\n * @param {string} [dbVersion] The version number of the database\n * @param {JSON} [additions] Any additions to the structure of the database\n * @param {array} [additions.stores] Any stores to be added into the database syntax:\n * @param {string} [additions.stores.storeName] The name of the store\n * @param {object} [additions.stores.options] Optionally, the option parameter for the createStore method\n * @param {array} [additions.indexes] Any Indexes to be added to the database syntax:\n * @param {string} [additions.indexes.storeName] The name of the store\n * @param {object} [additions.indexes.options] Optionally, the option parameter for the createIndex method\n * @param {string} type The type of listener for bellhop to send to\n */\n onIDBOpen({type, data: {dbName, dbVersion = null, additions = {}, deletions = {} }}) {\n // Keep an instance open to use on open\n this.savedDataHandler = new SavedDataHandler();\n this.savedDataHandler.IDBOpen( dbName, dbVersion, additions, deletions, value => this.client.send(type, value));\n }\n\n /**\n * Add a record to a given store\n * @param {string} type The type of listener for bellhop to send to\n * @param {string} storeName The name of the store from which the record will be updated\n * @param {*} value The value for the record with the given key to be updated\n * @param {string} key the key of the record to be updated\n */\n onIDBAdd({type, data: { storeName, value, key}}) {\n this.savedDataHandler.IDBAdd(storeName, value, key, value => this.client.send(type, value));\n }\n\n /**\n * Update a record from a given store\n * @param {string} type The type of listener for bellhop to send to\n * @param {string} storeName The name of the store with the record to update\n * @param {string} key The key of the record to be updated\n * @param {*} value The record value\n */\n onIDBUpdate({type, data: { storeName, key, value}}) {\n this.savedDataHandler.IDBUpdate(storeName, key, value, value => this.client.send(type, value));\n }\n\n /**\n * Remove a record from a store\n * @param {string} type The type of listener for bellhop to send to\n * @param {string} storeName The name of the store from which the record will be removed\n * @param {*} key the key of the record to be removed\n */\n onIDBRemove({type, data: {storeName, key}}) {\n this.savedDataHandler.IDBRemove(storeName, key, value => this.client.send(type, value));\n }\n\n /**\n * Return a record from a given store with a given key\n * @param {string} storeName The name of the store to read from\n * @param {string} key The key for the record in the given store\n * @param {string} type The type of listener for bellhop to send to\n */\n onIDBRead({type, data: {storeName, key}}) {\n this.savedDataHandler.IDBRead(storeName, key, value => this.client.send(type, value));\n }\n\n /**\n * Get all records from a store\n * @param {string} storeName The store to get all records from\n * @param {integer} count Optionally the number of records to return\n * @param {string} type The type of listener for bellhop to send to\n */\n onIDBReadAll({ type, data: {storeName, count} }) {\n this.savedDataHandler.IDBReadAll(storeName, count, value => this.client.send(type, value));\n }\n\n /**\n * Get the version of a given database\n * @param {string} dbName The name of the database to return the version of\n * @param {string} type The type of listener for bellhop to send to\n */\n onIDBGetVersion({type, data: {dbName}}) {\n // Create a new instance of savedDataHandler to avoid mutating the current instance\n const sdh = new SavedDataHandler();\n sdh.IDBGetVersion(dbName, value => this.client.send(type, value));\n }\n\n /**\n * Close the connection with the database\n * @param {string} type The type of listener for bellhop to send to\n */\n onIDBClose({type}) {\n this.savedDataHandler.IDBClose(value => this.client.send(type, value));\n }\n /**\n * Close the connection with the database\n * @param type - The type of request being sent\n */\n onIDBDeleteDB({type, data: {dbName, options }}) {\n const sdh = new SavedDataHandler();\n\n\n sdh.IDBDeleteDB(dbName, options, value => this.client.send(type, value));\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class PointerSizePlugin\n * @extends {SliderPlugin}\n * @property {object[]} sliders an array of all slider objects attached to PointerSizePlugin\n * @extends SliderPlugin\n */\nexport class PointerSizePlugin extends SliderPlugin {\n /**\n * Creates an instance of PointerSizePlugin.\n * @param {string | HTMLElement} [pointerSliders] selector string or HTML Element for the input(s)\n * @param {number} [defaultPointerSize=0.5] The default value for the pointer size slider\n * @memberof PointerSizePlugin\n */\n constructor(pointerSliders, { defaultPointerSize = 0.5 } = {}) {\n super(pointerSliders, 'UISize-Pointer-Plugin', { defaultValue: defaultPointerSize, featureName: PointerSizePlugin.pointerSizeKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onPointerSizeChange.bind(this));\n }\n\n }\n\n /**\n * @memberof PointerSizePlugin\n * @param {Event} e\n */\n onPointerSizeChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(PointerSizePlugin.pointerSizeKey, this.currentValue);\n }\n\n\n /**\n * @readonly\n * @static\n * @memberof PointerSizePlugin\n * @return {string}\n */\n static get pointerSizeKey() {\n return 'pointerSize';\n }\n}\n","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class ButtonSizePlugin\n * @property {object[]} sliders An array of slider objects given to ButtonSizePlugin\n * @property {number} currentValue The current button size value\n * @extends {SliderPlugin}\n */\nexport class ButtonSizePlugin extends SliderPlugin {\n /**\n * Creates an instance of ButtonSizePlugin.\n * @param {string | HTMLElement} buttonSliders selector string or html element(s) for the inputs\n * @param {object} options\n * @param {number} [options.defaultButtonSize=0.5]\n * @memberof ButtonSizePlugin\n */\n constructor(buttonSliders, { defaultButtonSize = 0.5 } = {}) {\n super(buttonSliders, 'UISize-Button-Plugin', { defaultValue: defaultButtonSize, featureName: ButtonSizePlugin.buttonSizeKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onButtonSizeChange.bind(this));\n }\n }\n\n /**\n * @memberof ButtonSizePlugin\n * @param {Event} e\n */\n onButtonSizeChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(ButtonSizePlugin.buttonSizeKey, this.currentValue);\n }\n\n /**\n * Get ButtonSize Key\n * @readonly\n * @static\n * @memberof ButtonSizePlugin\n * @returns {string}\n */\n static get buttonSizeKey() {\n return 'buttonSize';\n }\n}\n","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class ControlSensitivityPlugin\n * @property {object[]} sliders an array of all slider objects attached to ControlSensitivityPlugin\n * @extends {SliderPlugin}\n */\nexport class ControlSensitivityPlugin extends SliderPlugin {\n /**\n * Creates an instance of ControlSensitivityPlugin.\n * @param {string | HTMLElement} sensitivitySliders\n * @param {number} [defaultSensitivity=0.5]\n * @memberof ControlSensitivityPlugin\n */\n constructor(sensitivitySliders, { defaultSensitivity = 0.5 } = {}) {\n super(sensitivitySliders, 'Control-Sensitivity-Plugin', {defaultValue: defaultSensitivity, featureName: ControlSensitivityPlugin.controlSensitivityKey});\n\n this.sendAllProperties = this.sendAllProperties.bind(this);\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onControlSensitivityChange.bind(this));\n }\n }\n\n /**\n * @memberof ControlSensitivityPlugin\n * @param {Event} e\n */\n onControlSensitivityChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(ControlSensitivityPlugin.controlSensitivityKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof ControlSensitivityPlugin\n * @returns {string}\n */\n static get controlSensitivityKey() {\n return 'controlSensitivity';\n }\n}\n","import { BasePlugin } from '../base-plugins';\nimport { SavedData } from '../SavedData';\n\n/**\n * @export\n * @class KeyboardMapPlugin\n * @extends {BasePlugin}\n */\nexport class KeyboardMapPlugin extends BasePlugin {\n /**\n * Creates an instance of KeyboardMapPlugin.\n * @param {string | HTMLElement} keyContainers div or similar container element that will contain the re-mappable keys\n * @param {string} [customClassName='springrollContainerKeyBinding__button'] A custom class name that will be applied to the container element\n * @memberof KeyboardMapPlugin\n */\n constructor(keyContainers, {customClassName = 'springrollContainerKeyBinding__button'} = {}) {\n super('Keyboard-Map-Plugin');\n\n this.sendAllProperties = this.sendAllProperties.bind(this);\n //Allows for removing and reading event listeners\n this.bindKey = this.bindKey.bind(this);\n this.onKeyButtonClick = this.onKeyButtonClick.bind(this);\n\n this.className = customClassName;\n\n this.keyContainers =\n keyContainers instanceof HTMLElement\n ? [keyContainers]\n : document.querySelectorAll(keyContainers);\n\n this.keyBindings = {};\n this.buttons = [];\n this.activekeyButton;\n\n this.sendAfterFetch = false;\n this.canEmit = false;\n\n this.keyContainersLength = this.keyContainers.length;\n\n if (this.keyContainersLength <= 0) {\n this.warn('plugin was not provided any valid key binding container elements');\n return;\n }\n }\n\n /**\n * @memberof KeyboardMapPlugin\n * @param {MouseEvent} e\n * Sets up a rebinding of a key once a key button is clicked.\n */\n onKeyButtonClick(e) {\n\n for (let i = 0, l = this.buttons.length; i < l; i++) {\n for (let j = 0; j < this.buttons[i].length; j++) {\n this.buttons[i][j].removeEventListener('click', this.onKeyButtonClick);\n }\n }\n this.activekeyButton = e.target;\n this.activekeyButton.textContent = 'Press Key to Map';\n document.addEventListener('keyup', this.bindKey);\n }\n\n /**\n * @memberof KeyboardMapPlugin\n * @param {KeyboardEvent} key\n * Actually updates the key binding and sends the value. Also\n * replicates the new key across the other keycontainers\n */\n bindKey(key) {\n key.preventDefault(); //prevents space bar from retriggering a keybinding when set.\n\n for (const actionName in this.keyBindings) {\n if (this.keyBindings[actionName].currentKey === key.key.toLowerCase()) {\n this.warn(`${key.key} is already bound`);\n return;\n }\n }\n\n this.activekeyButton.textContent = key.key === ' ' ? 'space' : key.key;\n for (let i = 0; i < this.buttons.length; i++) {\n for (let j = 0; j < this.buttons[i].length; j++) {\n if (this.buttons[i][j].value === this.activekeyButton.value) {\n this.buttons[i][j].textContent = this.activekeyButton.textContent;\n }\n }\n }\n\n this.keyBindings[this.activekeyButton.value].currentKey = key.key;\n\n document.removeEventListener('keyup', this.bindKey);\n for (let i = 0, l = this.buttons.length; i < l; i++) {\n for (let j = 0; j < this.buttons[i].length; j++) {\n this.buttons[i][j].addEventListener('click', this.onKeyButtonClick);\n }\n }\n\n this.sendProperty(KeyboardMapPlugin.keyBindingKey, this.keyBindings);\n }\n\n /**\n * @memberof KeyboardMapPlugin\n */\n init() {\n this.client.on(\n 'features',\n function(features) {\n if (!features.data) {\n return;\n }\n\n if (!features.data.keyBinding) {\n return;\n }\n\n const data = SavedData.read(KeyboardMapPlugin.keyBindingKey);\n\n this.client.fetch('keyBindings', result => {\n for (let j = 0; j < this.keyContainersLength; j++) {\n this.buttons[j] = [];\n\n for (let i = 0, l = result.data.length; i < l; i++) {\n let currentKey = result.data[i].defaultKey.toLowerCase();\n if (data) {\n if (data[result.data[i].actionName]) {\n currentKey = data[result.data[i].actionName].currentKey;\n }\n }\n //only needs to be set up once\n if (j === 0) {\n this.keyBindings[result.data[i].actionName] = {\n defaultKey: result.data[i].defaultKey.toLowerCase(),\n currentKey: currentKey,\n };\n }\n\n this.buttons[j][i] = document.createElement('button');\n this.buttons[j][i].classList.add(this.className);\n this.buttons[j][i].id = `keyBoardMapPlugin-${result.data[i].actionName}`;\n this.buttons[j][i].value = result.data[i].actionName;\n this.buttons[j][i].textContent = result.data[i].defaultKey;\n this.buttons[j][i].addEventListener('click', this.onKeyButtonClick);\n\n this.label = document.createElement('label');\n this.label.htmlFor = `keyBoardMapPlugin-${result.data[i].actionName}`;\n this.label.textContent = result.data[i].actionName;\n\n this.keyContainers[j].appendChild(this.label);\n this.keyContainers[j].appendChild(this.buttons[j][i]);\n }\n }\n\n this.canEmit = true;\n if (this.sendAfterFetch) {\n this.sendAllProperties();\n }\n });\n }.bind(this)\n );\n }\n\n /**\n*\n* Sends initial caption properties to the application\n* @memberof KeyboardMapPlugin\n*/\n sendAllProperties() {\n if (this.canEmit) {\n this.sendProperty(KeyboardMapPlugin.keyBindingKey, this.keyBindings);\n } else {\n this.sendAfterFetch = true;\n }\n }\n\n /**\n * @readonly\n * @static\n * @memberof KeyboardMapPlugin\n * @returns {string}\n */\n static get keyBindingKey() {\n return 'keyBinding';\n }\n}\n","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class LayersPlugin\n * @property {object[]} sliders an array of all slider objects attached to LayersPlugin\n * @extends {SliderPlugin}\n */\nexport class LayersPlugin extends SliderPlugin {\n /**\n * Creates an instance of KeyboardMapPlugin.\n * @param {string | HTMLInputElement} layersSliders selector string or HTML Element for the input(s)\n * @param {number} [defaultValue=0] The default value for the slider\n */\n constructor(layersSliders, { defaultValue = 0 } = {}) {\n super(layersSliders, 'Layer-Plugin', { defaultValue: defaultValue, featureName: LayersPlugin.layersSliderKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onLayerValueChange.bind(this));\n }\n }\n\n /**\n * @memberof LayersPlugin\n * @param {Event} e\n */\n onLayerValueChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(LayersPlugin.layersSliderKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof LayersPlugin\n * @returns {string}\n */\n static get layersSliderKey() {\n return 'removableLayers';\n }\n}\n","import { RadioGroupPlugin } from '../base-plugins';\nimport { SavedData } from '../SavedData';\n\nconst SUPPORTED_POSITIONS = ['top', 'bottom', 'left', 'right'];\n\n/**\n * @export\n * @class HUDPlugin\n * @extends {BasePlugin}\n */\nexport class HUDPlugin extends RadioGroupPlugin {\n /**\n * Creates an instance of HUDPlugin\n * @param {string} hudSelectorRadios selector string or for the input(s)\n * @param {string[]} [defaultValue='top'] default value for the HUD position\n * @memberof HUDPlugin\n */\n constructor(hudSelectorRadios, { defaultValue = SUPPORTED_POSITIONS[0] } = {}) {\n super(hudSelectorRadios, 'HUD-Layout-Plugin', {supportedValues: SUPPORTED_POSITIONS, initialValue: defaultValue, controlName: 'Hud Selector', featureName: HUDPlugin.hudPositionKey, radioCount: SUPPORTED_POSITIONS.length});\n\n this.sendAllProperties = this.sendAllProperties.bind(this);\n this.sendAfterFetch = false;\n this.canEmit = false;\n this.positions = [];\n\n if (this.radioGroupsLength <= 0) {\n this.warn('Plugin was not provided any valid HTML elements');\n }\n\n for (let i = 0; i < this.radioGroupsLength; i++) {\n this.radioGroups[i].enableRadioEvents(this.onHUDSelect.bind(this));\n }\n\n }\n\n /**\n * @memberof HUDPlugin\n * @param {Event} e\n */\n onHUDSelect(e) {\n //return if a radio button is programattically clicked when it is hidden\n if (!this.positions.includes(e.target.value)) {\n for (let i = 0; i < this.radioGroupsLength; i++) {\n this.radioGroups[i].radioGroup[this.currentValue].checked = true;\n }\n return;\n }\n\n this.currentValue = e.target.value;\n\n this.sendProperty(\n HUDPlugin.hudPositionKey,\n this.currentValue\n );\n }\n\n /**\n * @memberof HUDPlugin\n */\n init() {\n this.client.on(\n 'features',\n function(features) {\n if (!features.data || !features.data.hudPosition) {\n return;\n }\n\n if (this.radioGroupsLength <= 0) {\n return;\n }\n //get the game's reported HUD positions to build out positions array\n this.client.fetch('hudPositions', result => {\n for (let i = 0, l = result.data.length; i < l; i++) {\n if (\n !SUPPORTED_POSITIONS.includes(result.data[i].toLowerCase())\n ) {\n this.warn(`${result.data[i]} is an invalid position name`);\n continue;\n }\n\n this.positions.push(result.data[i].toLowerCase());\n }\n\n for (let i = 0; i < this.radioGroupsLength; i++) {\n //Hide any radio buttons that aren't in the game's position list.\n for (const key in this.radioGroups[i].radioGroup) {\n this.radioGroups[i].radioGroup[key].style.display = this.positions.includes(this.radioGroups[i].radioGroup[key].value) ? '' : 'none';\n }\n }\n\n this.canEmit = true;\n if (this.sendAfterFetch) {\n this.sendAllProperties();\n }\n });\n\n }.bind(this)\n );\n }\n\n /**\n * @memberof HUDPlugin\n */\n start() {\n const data = SavedData.read(HUDPlugin.hudPositionKey);\n\n if (SUPPORTED_POSITIONS.includes(data)) {\n this.currentValue = data;\n }\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Sends initial HUD position properties to the application\n * @memberof HUDPlugin\n */\n sendAllProperties() {\n if (this.canEmit) {\n this.sendProperty(HUDPlugin.hudPositionKey, this.currentValue);\n } else {\n this.sendAfterFetch = true;\n }\n }\n\n /**\n * @static\n * @readonly\n * @memberof HUDPlugin\n * @returns {string}\n */\n static get hudPositionKey() {\n return 'hudPosition';\n }\n}\n","import { RadioGroupPlugin } from '../base-plugins';\nimport { SavedData } from '../SavedData';\n\nconst COLOR_BLIND_TYPES = [\n 'none',\n 'protanopia',\n 'deuteranopia',\n 'tritanopia',\n 'achromatopsia'\n];\n\n/**\n * @export\n * @class ColorVisionPlugin\n * @property {boolean} sendAfterFetch Whether to send the properties after fetch or not\n * @property {boolean} canEmit Whether or not the plugin can send properties\n * @property {string} colors \n * @extends {RadioGroupPlugin}\n */\nexport class ColorVisionPlugin extends RadioGroupPlugin {\n /**\n * Creates an instance of ColorVisionPlugin.\n * @param {string | HTMLElement} colorSelects\n * @param {string } [defaultValue] Default selected value\n * @memberof ColorVision\n */\n constructor(colorVisionRadios, { defaultValue = COLOR_BLIND_TYPES[0] } = {}) {\n super(colorVisionRadios, 'Color-Filter-Plugin', {supportedValues: COLOR_BLIND_TYPES, initialValue: defaultValue, controlName: 'Color Vision Selector', featureName: ColorVisionPlugin.colorVisionKey, radioCount: COLOR_BLIND_TYPES.length});\n\n this.sendAllProperties = this.sendAllProperties.bind(this);\n this.sendAfterFetch = false;\n this.canEmit = false;\n this.colors = [];\n\n if (this.radioGroupsLength <= 0) {\n this.warn('Plugin was not provided any valid HTML elements');\n return;\n }\n\n for (let i = 0; i < this.radioGroupsLength; i++) {\n this.radioGroups[i].enableRadioEvents(this.onColorChange.bind(this));\n }\n }\n\n /**\n * @memberof ColorVisionPlugin\n * @param {Event} e\n */\n onColorChange(e) {\n //return if a radio button is programmatically clicked when it is hidden from the user\n if (!this.colors.includes(e.target.value) ) {\n for (let i = 0; i < this.radioGroupsLength; i++) {\n this.radioGroups[i].radioGroup[this.currentValue].checked = true;\n }\n return;\n }\n this.currentValue = e.target.value;\n\n this.sendProperty(\n ColorVisionPlugin.colorVisionKey,\n this.currentValue\n );\n }\n\n /**\n * @memberof ColorVisionPlugin\n */\n init() {\n this.client.on(\n 'features',\n function(features) {\n if (!features.data || !features.data.colorVision) {\n return;\n }\n if (this.colorDropdownsLength <= 0) {\n return;\n }\n\n //get the game's reported colors to build out accepted filters array\n this.client.fetch('colorFilters', result => {\n for (let i = 0, l = result.data.length; i < l; i++) {\n if (\n !COLOR_BLIND_TYPES.includes(result.data[i].toLowerCase())\n ) {\n this.warn(`${result.data[i]} is an invalid color vision name`);\n continue;\n }\n this.colors.push(result.data[i].toLowerCase());\n }\n\n this.defaultValue = this.colors[0];\n\n for (let i = 0; i < this.radioGroupsLength; i++) {\n //Hide any radio buttons that aren't in the game's filter list.\n for (const key in this.radioGroups[i].radioGroup) {\n this.radioGroups[i].radioGroup[key].style.display = this.colors.includes(this.radioGroups[i].radioGroup[key].value.toLowerCase()) ? '' : 'none';\n }\n }\n\n this.canEmit = true;\n\n if (this.sendAfterFetch) {\n this.sendAllProperties();\n }\n });\n\n }.bind(this)\n );\n }\n\n /**\n * @memberof ColorVisionPlugin\n */\n start() {\n const data = SavedData.read(ColorVisionPlugin.colorVisionKey);\n\n if (COLOR_BLIND_TYPES.includes(data)) {\n this.currentValue = data;\n }\n\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n*\n* Sends initial caption properties to the application\n* @memberof ColorVisionPlugin\n*/\n sendAllProperties() {\n if (this.canEmit) {\n this.sendProperty(ColorVisionPlugin.colorVisionKey, this.currentValue);\n } else {\n this.sendAfterFetch = true;\n }\n }\n\n /**\n * Get the ColorVisionPlugin key\n * @readonly\n * @static\n * @memberof ColorVisionPlugin\n * @returns {string}\n */\n static get colorVisionKey() {\n return 'colorVision';\n }\n\n}\n","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class HitAreaScalePlugin\n * @property {object[]} sliders an array of all slider objects attached to ControlSensitivityPlugin\n * @extends {SliderPlugin}\n * \n */\nexport class HitAreaScalePlugin extends SliderPlugin {\n /**\n * Creates an instance of HitAreaScalePlugin.\n * @param {string | HTMLElement} hitAreaScaleSliders The selector or HTMLElement for the slider\n * @param {number} [defaultHitAreaScale=0.5] The default hit area scale value\n * @memberof HitAreaScalePlugin\n */\n constructor(hitAreaScaleSliders, { defaultHitAreaScale = 0.5 } = {}) {\n super(hitAreaScaleSliders, 'Hit-Area-Scale-Plugin', { defaultValue: defaultHitAreaScale, featureName: HitAreaScalePlugin.hitAreaScaleKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onHitAreaScaleChange.bind(this));\n }\n }\n\n /**\n * @memberof HitAreaScalePlugin\n * @param {Event} target\n * @param {string} control\n */\n onHitAreaScaleChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(HitAreaScalePlugin.hitAreaScaleKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof HitAreaScalePlugin\n * @returns {string}\n */\n static get hitAreaScaleKey() {\n return 'hitAreaScale';\n }\n}\n","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class DragThresholdScalePlugin\n * @extends {SliderPlugin}\n */\nexport class DragThresholdScalePlugin extends SliderPlugin {\n /**\n * Creates an instance of DragThresholdScalePlugin.\n * @param {string | HTMLElement} params.dragThresholdScaleSliders\n * @param {number} [defaultDragThresholdScale=0.5]\n * @memberof DragThresholdScalePlugin\n */\n constructor(dragThresholdScaleSliders, { defaultDragThresholdScale = 0.5 } = {}) {\n super(dragThresholdScaleSliders, 'Drag-Threshold-Scale-Plugin', { defaultValue: defaultDragThresholdScale, featureName: DragThresholdScalePlugin.dragThresholdScaleKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onDragThresholdScaleChange.bind(this));\n }\n }\n\n /**\n * @memberof DragThresholdScalePlugin\n * @param {Event} target\n * @param {string} control\n */\n onDragThresholdScaleChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(DragThresholdScalePlugin.dragThresholdScaleKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof DragThresholdScalePlugin\n * @returns {string}\n */\n static get dragThresholdScaleKey() {\n return 'dragThresholdScale';\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class HealthPlugin\n * @extends {SliderPlugin}\n */\nexport class HealthPlugin extends SliderPlugin {\n /**\n * Creates an instance of HealthPlugin.\n * @param {string | HTMLElement} healthSliders\n * @param {number} [defaultHealth=0.5]\n * @memberof HealthPlugin\n */\n constructor(healthSliders, {defaultHealth = 0.5 } = {}) {\n super(healthSliders, 'Health-Scale-Plugin', { defaultValue:defaultHealth, featureName: HealthPlugin.healthKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onHealthChange.bind(this));\n }\n }\n\n /**\n * @memberof HealthPlugin\n * @param {Event} e\n */\n onHealthChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(HealthPlugin.healthKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof HealthPlugin\n * @returns {string}\n */\n static get healthKey() {\n return 'health';\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class ObjectCountPlugin\n * @property {object[]} sliders an array of all slider objects attached to ObjectCountPlugin\n * @extends {SliderPlugin}\n */\nexport class ObjectCountPlugin extends SliderPlugin {\n /**\n * Creates an instance of ObjectCountPlugin.\n * @param {string | HTMLElement} objectCountSliders selector string or HTML Element for the input(s)\n * @param {number} [defaultObjectCount=0.5] The default value for the slider\n * @memberof ObjectCountPlugin\n */\n constructor(objectCountSliders, { defaultObjectCount = 0.5 } = {}) {\n super(objectCountSliders, 'Object-Count-Plugin', { defaultValue: defaultObjectCount, featureName: ObjectCountPlugin.objectCountKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onObjectCountChange.bind(this));\n }\n }\n\n /**\n * @memberof ObjectCountPlugin\n * @param {Event} target\n * @param {string} control\n */\n onObjectCountChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(ObjectCountPlugin.objectCountKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof ObjectCountPlugin\n * @returns {string}\n */\n static get objectCountKey() {\n return 'objectCount';\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class CompletionPercentagePlugin\n * @property {object[]} sliders an array of all slider objects attached to CompletePercentagePlugin\n * @extends {SliderPlugin}\n */\nexport class CompletionPercentagePlugin extends SliderPlugin {\n /**\n * Creates an instance of CompletionPercentagePlugin.\n * @param {string | HTMLElement} completionPercentageSliders The selector or HTMLSliderElement of the slider\n * @param {number} [defaultCompletionPercentage=0.5] Default selected completion percentage\n * @memberof CompletionPercentagePlugin\n */\n constructor(completionPercentageSliders, { defaultCompletionPercentage = 0.5 } = {}) {\n super(completionPercentageSliders, 'Completion-Percentage-Plugin', { defaultValue: defaultCompletionPercentage, featureName: CompletionPercentagePlugin.completionPercentageKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onCompletionPercentageChange.bind(this));\n }\n }\n\n /**\n * @memberof CompletionPercentagePlugin\n * @param {Event} e\n */\n onCompletionPercentageChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(CompletionPercentagePlugin.completionPercentageKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof CompletionPercentagePlugin\n * @returns {string}\n */\n static get completionPercentageKey() {\n return 'completionPercentage';\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class SpeedScalePlugin\n * @extends {SliderPlugin}\n */\nexport class SpeedScalePlugin extends SliderPlugin {\n /**\n *Creates an instance of SpeedScalePlugin.\n * @param {string | HTMLElement} speedScaleSliders selector string or HTML Element for the input(s)\n * @param {number} [defaultSpeedScale=0.5] The default value for the speed scale slider\n * @memberof SpeedScalePlugin\n */\n constructor(speedScaleSliders, { defaultSpeedScale = 0.5 } = {}) {\n super(speedScaleSliders, 'Speed-Scale-Plugin', { defaultValue: defaultSpeedScale, featureName: SpeedScalePlugin.speedScaleKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onSpeedScaleChange.bind(this));\n }\n }\n\n /**\n * @memberof SpeedScalePlugin\n * @param {Event} e\n */\n onSpeedScaleChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(SpeedScalePlugin.speedScaleKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof SpeedScalePlugin\n * @return {string}\n */\n static get speedScaleKey() {\n return 'speedScale';\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class TimersScalePlugin\n * @property {number} currentValue\n * @extends {SliderPlugin}\n */\nexport class TimersScalePlugin extends SliderPlugin {\n /**\n * Creates an instance of TimersScalePlugin.\n * @param {string | HTMLElement} timersScaleSliders selector string or HTML Element for the input(s)\n * @param {number} [defaultTimersScale=0.5] Default Value for the timer scale slider\n * @memberof TimersScalePlugin\n */\n constructor(timersScaleSliders, { defaultTimersScale = 0.5 } = {}) {\n super(timersScaleSliders, 'Timers-Scale-Plugin', { defaultValue: defaultTimersScale, featureName: TimersScalePlugin.timersScaleKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onTimersScaleChange.bind(this));\n }\n }\n\n /**\n * @memberof TimersScalePlugin\n * @param {Event} e\n */\n onTimersScaleChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(TimersScalePlugin.timersScaleKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof TimersScalePlugin\n * @return {string}\n */\n static get timersScaleKey() {\n return 'timersScale';\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class InputCountPlugin\n * @property {object[]} sliders an array of all slider objects attached to InputCountPlugin\n * @extends {SliderPlugin}\n */\nexport class InputCountPlugin extends SliderPlugin {\n /**\n * Creates an instance of InputCountPlugin.\n * @param {string | HTMLElement} inputCountSliders selector string or HTML Element for the input(s)\n * @param {number} [defaultInputCount=0.5] The default value for the slider\n * @memberof InputCountPlugin\n */\n constructor(inputCountSliders, { defaultInputCount = 0.5 } = {}) {\n super(inputCountSliders, 'Input-Count-Plugin', { defaultValue: defaultInputCount, featureName: InputCountPlugin.inputCountKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onInputCountChange.bind(this));\n }\n }\n\n /**\n * @memberof InputCountPlugin\n * @param {Event} target\n * @param {string} control\n */\n onInputCountChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(InputCountPlugin.inputCountKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof InputCountPlugin\n * @returns {string}\n */\n static get inputCountKey() {\n return 'inputCount';\n }\n}","import { ButtonPlugin } from '../base-plugins/ButtonPlugin';\nimport { Button } from '../ui-elements';\n\n/**\n * A Springroll plugin to easily set up togglable fullscreen\n */\nexport class FullScreenPlugin extends ButtonPlugin {\n \n /**\n * Creates an instance of FullscreenPlugin\n * \n * @param {string | string[]} buttonSelector The selector for the element to be made fullscreen\n */\n constructor(buttonSelector) {\n super({\n name: FullScreenPlugin.fullscreenKey\n }); \n\n this._toggleButtons = [];\n this.iFrame = null;\n\n this.sendAllProperties = this.sendAllProperties.bind(this);\n\n if (Array.isArray(buttonSelector)) {\n // If input is an array, join the selectors into one string\n buttonSelector = buttonSelector.join(', ');\n }\n\n console.log(buttonSelector);\n \n this.toggleButton = document.querySelectorAll(buttonSelector);\n\n\n this.toggleButton.forEach((button) => {\n this._toggleButtons.push(new Button({\n button: button,\n onClick: this.toggleFullScreen.bind(this),\n channel: FullScreenPlugin.fullscreenKey\n }));\n });\n \n\n document.addEventListener('fullscreenchange', () => {\n this.sendAllProperties();\n \n this._toggleButtons.forEach((button) => {\n button.button.classList.toggle('--fullScreen');\n });\n\n });\n }\n\n /**\n * @memberof FullScreenPlugin\n */\n init({ iframe }) {\n this.iFrame = iframe;\n // Handle the features request\n this.client.on(\n 'features',\n function($event) {\n for (let i = 0; i < this.fullscreenElement; i ++) {\n this._toggleButtons[i].displayButton($event.data);\n }\n\n }.bind(this)\n );\n }\n /**\n * @memberof FullScreenPlugin\n */\n start() {\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Sends initial fullScreen properties to the application\n * @memberof FullScreenTogglePlugin\n */\n sendAllProperties() {\n this.sendProperty(FullScreenPlugin.fullscreenKey, document.fullscreenElement != null ? 'true' : 'false');\n }\n\n /**\n * Toggles fullscreen on this.iFrame. Must be from a user generated event\n */\n toggleFullScreen() {\n if (!document.fullscreenElement) {\n this.iFrame.requestFullscreen().then(() => {\n this.sendAllProperties();\n }).catch((err) => {\n console.log(err);\n });\n } else {\n document.exitFullscreen();\n this.sendAllProperties();\n }\n }\n\n /**\n * Returns true if there is a fullscreen element and false if not\n * @returns { boolean } \n */\n get isFullScreen() {\n return (document.fullscreenElement || // basic\n document.webkitIsFullscreen || //Webkit browsers\n document.mozFullScreen ) // Firefox\n != true; // Ensure boolean output\n }\n\n /** \n * @readonly\n * @static\n * @memberof FullscreenPlugin\n */\n static get fullscreenKey() {\n return 'fullScreen';\n }\n}"],"names":["global","globalThis","self","support","searchParams","iterable","Symbol","blob","Blob","e","formData","arrayBuffer","isDataView","obj","DataView","prototype","isPrototypeOf","viewClasses","isArrayBufferView","ArrayBuffer","isView","indexOf","Object","toString","call","normalizeName","name","String","test","TypeError","toLowerCase","normalizeValue","value","iteratorFor","items","iterator","next","shift","done","undefined","Headers","headers","map","forEach","append","Array","isArray","header","getOwnPropertyNames","oldValue","get","has","hasOwnProperty","set","callback","thisArg","keys","push","values","entries","consumed","body","bodyUsed","Promise","reject","fileReaderReady","reader","resolve","onload","result","onerror","error","readBlobAsArrayBuffer","FileReader","promise","readAsArrayBuffer","readBlobAsText","readAsText","readArrayBufferAsText","buf","view","Uint8Array","chars","length","i","fromCharCode","join","bufferClone","slice","byteLength","buffer","Body","_initBody","_bodyInit","_bodyText","_bodyBlob","FormData","_bodyFormData","URLSearchParams","_bodyArrayBuffer","type","rejected","Error","isConsumed","byteOffset","then","text","decode","json","JSON","parse","methods","normalizeMethod","method","upcased","toUpperCase","Request","input","options","url","credentials","mode","signal","referrer","cache","reParamSearch","replace","Date","getTime","reQueryString","clone","form","trim","split","bytes","decodeURIComponent","parseHeaders","rawHeaders","preProcessedHeaders","substr","line","parts","key","Response","bodyInit","status","ok","statusText","response","redirectStatuses","redirect","RangeError","location","DOMException","err","message","stack","create","constructor","fetch","init","request","aborted","xhr","XMLHttpRequest","abortXhr","abort","getAllResponseHeaders","responseURL","responseText","setTimeout","ontimeout","onabort","fixUrl","href","open","withCredentials","responseType","setRequestHeader","addEventListener","onreadystatechange","readyState","removeEventListener","send","polyfill","check","it","Math","window","Function","domIterables","CSSRuleList","CSSStyleDeclaration","CSSValueList","ClientRectList","DOMRectList","DOMStringList","DOMTokenList","DataTransferItemList","FileList","HTMLAllCollection","HTMLCollection","HTMLFormElement","HTMLSelectElement","MediaList","MimeTypeArray","NamedNodeMap","NodeList","PaintRequestList","Plugin","PluginArray","SVGLengthList","SVGNumberList","SVGPathSegList","SVGPointList","SVGStringList","SVGTransformList","SourceBufferList","StyleSheetList","TextTrackCueList","TextTrackList","TouchList","documentAll","document","all","IS_HTMLDDA","documentAll_1","$documentAll","require$$0","isCallable","argument","require$$1","isObject","EXISTS","createElement","documentCreateElement","classList","DOMTokenListPrototype","domTokenListPrototype","fails","exec","functionBindNative","bind","NATIVE_BIND","FunctionPrototype","uncurryThisWithBind","functionUncurryThis","fn","apply","arguments","uncurryThis","stringSlice","classofRaw","functionUncurryThisClause","$String","tryToString","$TypeError","aCallable","require$$2","functionBindContext","that","classof","$Object","indexedObject","propertyIsEnumerable","isNullOrUndefined","requireObjectCoercible","toObject","ceil","floor","mathTrunc","trunc","x","n","toIntegerOrInfinity","number","min","toLength","lengthOfArrayLike","isPure","defineProperty","defineGlobalProperty","configurable","writable","SHARED","store","sharedStore","sharedModule","version","copyright","license","source","hasOwnProperty_1","hasOwn","id","postfix","random","uid","engineUserAgent","navigator","userAgent","process","Deno","versions","v8","match","engineV8Version","V8_VERSION","symbolConstructorDetection","getOwnPropertySymbols","symbol","sham","NATIVE_SYMBOL","useSymbolAsUid","shared","require$$3","require$$4","USE_SYMBOL_AS_UID","require$$5","WellKnownSymbolsStore","createWellKnownSymbol","withoutSetter","wellKnownSymbol","TO_STRING_TAG","toStringTagSupport","TO_STRING_TAG_SUPPORT","CORRECT_ARGUMENTS","tryGet","O","tag","callee","aFunction","getBuiltIn","namespace","functionToString","inspectSource","noop","empty","construct","constructorRegExp","INCORRECT_TO_STRING","isConstructorModern","isConstructor","isConstructorLegacy","called","SPECIES","$Array","arraySpeciesConstructor","originalArray","C","arraySpeciesCreate","IndexedObject","createMethod","TYPE","IS_MAP","IS_FILTER","IS_SOME","IS_EVERY","IS_FIND_INDEX","IS_FILTER_REJECT","NO_HOLES","$this","callbackfn","specificCreate","boundFunction","index","target","arrayIteration","filter","some","every","find","findIndex","filterReject","arrayMethodIsStrict","METHOD_NAME","$forEach","STRICT_METHOD","arrayForEach","descriptors","DESCRIPTORS","ie8DomDefine","a","v8PrototypeDefineBug","anObject","functionCall","objectIsPrototypeOf","isSymbol","$Symbol","getMethod","V","P","func","ordinaryToPrimitive","pref","val","valueOf","TO_PRIMITIVE","toPrimitive","exoticToPrim","toPropertyKey","IE8_DOM_DEFINE","V8_PROTOTYPE_DEFINE_BUG","$defineProperty","$getOwnPropertyDescriptor","getOwnPropertyDescriptor","ENUMERABLE","CONFIGURABLE","WRITABLE","objectDefineProperty","f","Attributes","current","enumerable","createPropertyDescriptor","bitmap","definePropertyModule","createNonEnumerableProperty","object","DOMIterables","handlePrototype","CollectionPrototype","COLLECTION_NAME","toIndexedObject","max","toAbsoluteIndex","integer","IS_INCLUDES","el","fromIndex","arrayIncludes","includes","hiddenKeys","objectKeysInternal","names","enumBugKeys","internalObjectKeys","objectKeys","objectDefineProperties","defineProperties","Properties","props","html","sharedKey","definePropertiesModule","require$$6","GT","LT","PROTOTYPE","SCRIPT","IE_PROTO","EmptyConstructor","scriptTag","content","NullProtoObjectViaActiveX","activeXDocument","write","close","temp","parentWindow","NullProtoObjectViaIFrame","iframe","JS","iframeDocument","style","display","appendChild","src","contentWindow","F","NullProtoObject","ActiveXObject","domain","objectCreate","UNSCOPABLES","ArrayPrototype","addToUnscopables","iterators","WeakMap","weakMapBasicDetection","NATIVE_WEAK_MAP","require$$7","OBJECT_ALREADY_INITIALIZED","enforce","getterFor","state","metadata","facade","STATE","internalState","$propertyIsEnumerable","NASHORN_BUG","objectPropertyIsEnumerable","descriptor","propertyIsEnumerableModule","objectGetOwnPropertyDescriptor","getDescriptor","PROPER","something","functionName","CONFIGURABLE_FUNCTION_NAME","InternalStateModule","enforceInternalState","getInternalState","CONFIGURABLE_LENGTH","TEMPLATE","makeBuiltIn","makeBuiltInModule","exports","getter","setter","arity","defineBuiltIn","simple","unsafe","nonConfigurable","nonWritable","concat","objectGetOwnPropertyNames","objectGetOwnPropertySymbols","getOwnPropertyNamesModule","getOwnPropertySymbolsModule","ownKeys","getOwnPropertyDescriptorModule","copyConstructorProperties","exceptions","replacement","isForced","feature","detection","data","normalize","POLYFILL","NATIVE","string","isForced_1","_export","TARGET","GLOBAL","STATIC","stat","FORCED","targetProperty","sourceProperty","dontCallGetSet","forced","correctPrototypeGetter","getPrototypeOf","CORRECT_PROTOTYPE_GETTER","ObjectPrototype","objectGetPrototypeOf","ITERATOR","BUGGY_SAFARI_ITERATORS","IteratorPrototype","PrototypeOfArrayIteratorPrototype","arrayIterator","NEW_ITERATOR_PROTOTYPE","iteratorsCore","setToStringTag","TAG","Iterators","returnThis","iteratorCreateConstructor","IteratorConstructor","NAME","ENUMERABLE_NEXT","functionUncurryThisAccessor","aPossiblePrototype","uncurryThisAccessor","objectSetPrototypeOf","setPrototypeOf","CORRECT_SETTER","proto","__proto__","$","FunctionName","createIteratorConstructor","require$$8","require$$9","require$$10","require$$11","require$$12","IteratorsCore","require$$13","PROPER_FUNCTION_NAME","KEYS","VALUES","ENTRIES","iteratorDefine","Iterable","DEFAULT","IS_SET","getIterationMethod","KIND","defaultIterator","IterablePrototype","INCORRECT_VALUES_NAME","nativeIterator","anyNativeIterator","CurrentIteratorPrototype","KEY","createIterResultObject","defineIterator","ARRAY_ITERATOR","setInternalState","es_array_iterator","iterated","kind","Arguments","ArrayIteratorMethods","ArrayValues","path","$indexOf","nativeIndexOf","NEGATIVE_ZERO","searchElement","MAX_SAFE_INTEGER","doesNotExceedSafeInteger","createProperty","propertyKey","arrayMethodHasSpeciesSupport","array","foo","Boolean","IS_CONCAT_SPREADABLE","IS_CONCAT_SPREADABLE_SUPPORT","isConcatSpreadable","spreadable","arg","A","k","len","E","$assign","assign","objectAssign","b","B","alphabet","chr","T","argumentsLength","S","j","objectToString","engineIsNode","defineBuiltInAccessor","setSpecies","CONSTRUCTOR_NAME","Constructor","anInstance","Prototype","aConstructor","speciesConstructor","defaultConstructor","functionApply","Reflect","arraySlice","validateArgumentsLength","passed","required","engineIsIos","IS_IOS","IS_NODE","setImmediate","clear","clearImmediate","Dispatch","MessageChannel","counter","queue","ONREADYSTATECHANGE","$location","defer","channel","port","run","runner","eventListener","event","globalPostMessageDefer","postMessage","protocol","host","handler","args","nextTick","now","port2","port1","onmessage","importScripts","removeChild","task","Queue","head","tail","add","item","entry","engineIsIosPebble","Pebble","engineIsWebosWebkit","macrotask","IS_IOS_PEBBLE","IS_WEBOS_WEBKIT","MutationObserver","WebKitMutationObserver","queueMicrotaskDescriptor","microtask","notify","toggle","node","flush","parent","exit","enter","createTextNode","observe","characterData","microtask_1","hostReportErrors","console","perform","promiseNativeConstructor","engineIsDeno","IS_DENO","engineIsBrowser","NativePromiseConstructor","IS_BROWSER","SUBCLASSING","NATIVE_PROMISE_REJECTION_EVENT","PromiseRejectionEvent","FORCED_PROMISE_CONSTRUCTOR","PROMISE_CONSTRUCTOR_SOURCE","GLOBAL_CORE_JS_PROMISE","FakePromise","promiseConstructorDetection","CONSTRUCTOR","REJECTION_EVENT","PromiseCapability","$$resolve","$$reject","newPromiseCapability","require$$14","require$$15","require$$16","require$$17","require$$18","require$$19","require$$20","PromiseConstructorDetection","require$$21","newPromiseCapabilityModule","require$$22","PROMISE","NATIVE_PROMISE_SUBCLASSING","getInternalPromiseState","NativePromisePrototype","PromiseConstructor","PromisePrototype","newGenericPromiseCapability","DISPATCH_EVENT","createEvent","dispatchEvent","UNHANDLED_REJECTION","REJECTION_HANDLED","PENDING","FULFILLED","REJECTED","HANDLED","UNHANDLED","Internal","OwnPromiseCapability","PromiseWrapper","nativeThen","isThenable","callReaction","reaction","fail","exited","rejection","onHandleUnhandled","isReject","notified","reactions","onUnhandled","reason","initEvent","IS_UNHANDLED","isUnhandled","emit","unwrap","internalReject","internalResolve","wrapper","executor","onFulfilled","onRejected","wrap","isArrayIteratorMethod","getIteratorMethod","getIterator","usingIterator","iteratorMethod","iteratorClose","innerResult","innerError","Result","stopped","ResultPrototype","iterate","unboundFunction","AS_ENTRIES","IS_RECORD","IS_ITERATOR","INTERRUPTED","iterFn","step","stop","condition","callFn","SAFE_CLOSING","iteratorWithReturn","from","checkCorrectnessOfIteration","SKIP_CLOSING","ITERATION_SUPPORT","promiseStaticsIncorrectIteration","PROMISE_STATICS_INCORRECT_ITERATION","capability","$promiseResolve","remaining","alreadyCalled","real","race","r","promiseResolve","promiseCapability","regexpFlags","hasIndices","ignoreCase","multiline","dotAll","unicode","unicodeSets","sticky","$RegExp","RegExp","UNSUPPORTED_Y","re","lastIndex","MISSED_STICKY","BROKEN_CARET","regexpStickyHelpers","regexpUnsupportedDotAll","flags","regexpUnsupportedNcg","groups","stickyHelpers","UNSUPPORTED_DOT_ALL","UNSUPPORTED_NCG","nativeReplace","nativeExec","patchedExec","charAt","UPDATES_LAST_INDEX_WRONG","re1","re2","NPCG_INCLUDED","PATCH","str","raw","reCopy","group","charsAdded","strCopy","regexpExec","Features","_classCallCheck","_createClass","canvas","getContext","Worker","msPointerEnabled","msMaxTouchPoints","pointerEnabled","maxTouchPoints","basic","webaudio","htmlAudio","capabilities","features","ui","sizes","touch","size","screen","width","height","xsmall","small","medium","large","xlarge","webgl","webAudio","charCodeAt","CONVERT_TO_STRING","pos","position","first","second","stringMultibyte","codeAt","STRING_ITERATOR","point","$filter","HAS_SPECIES_SUPPORT","$find","FIND","SKIPS_HOLES","t","PluginManager","_ref","_ref$plugins","plugins","client","Bellhop","hidden","receive","hiddenSend","setupPlugins","_this","preloads","_loop","preload","catch","preloadFail","preloadFailed","warn","l","_ret","plugin","start","uses","getPlugin","Container","_PluginManager","_inherits","_super","_createSuper","iframeOrSelector","_ref$context","context","HTMLIFrameElement","querySelector","loaded","loading","release","_context","onLoading","_assertThisInitialized","onLoadDone","onEndGame","onLocalError","initClient","trigger","remove","reset","$event","wasLoaded","setAttribute","on","connect","_onCloseFailed","_internalOpen","userPath","_ref2","_ref2$singlePlay","singlePlay","_ref2$playOptions","playOptions","playOptionsQueryString","encodeURIComponent","stringify","respond","openPath","_typeof","_openRemote","_asyncToGenerator","_regeneratorRuntime","mark","_callee","api","_ref3","_ref3$query","query","_ref3$singlePlay","_ref3$playOptions","_args","_callee$","prev","sent","success","openRemote","_x","destroy","newContext","PageVisibility","onFocus","onBlur","_onFocus","_onBlur","enabled","_enabled","onToggle","enable","$includes","BROKEN_ON_SPARSE","whitespaces","ltrim","rtrim","stringTrim","end","non","stringTrimForced","$trim","forcedStringTrimMethod","regExpFlags","RegExpPrototype","regexpGetFlags","R","$toString","getRegExpFlags","TO_STRING","nativeToString","NOT_GENERIC","INCORRECT_NAME","pattern","SavedData","dbName","db","IDBOpen","dbVersion","additions","deletions","indexedDB","onsuccess","onupgradeneeded","stores","createObjectStore","storeName","indexes","storeObject","transaction","objectStore","createIndex","indexName","keyPath","deleteIndex","deleteObjectStore","IDBDeleteDB","deleteDatabase","IDBAdd","tx","oncomplete","IDBUpdate","updateRequest","put","IDBRemove","_this2","delete","IDBRead","_this3","readRequest","IDBGetIndexKeys","_this4","count","getAllKeysRequest","getAllKeys","IDBReadAll","getAll","IDBGetVersion","dBOpenRequest","IDBClose","localStorage","removeItem","sessionStorage","tempOnly","setItem","read","getItem","BasePlugin","_preload","sendAllProperties","_","sendProperty","prop","warningText","ButtonPlugin","_BasePlugin","sendMutes","container","_disableButton","button","HTMLButtonElement","_setMuteProp","muted","changeMutedState","htmlButton","HTMLElement","MATCH","isRegexp","isRegExp","notARegexp","correctIsRegexpLogic","regexp","error1","error2","notARegExp","correctIsRegExpLogic","stringIndexOf","searchString","arraySliceSimple","fin","$getOwnPropertyNames","windowNames","getWindowNames","objectGetOwnPropertyNamesExternal","arrayBufferNonExtensible","isExtensible","ARRAY_BUFFER_NON_EXTENSIBLE","$isExtensible","FAILS_ON_PRIMITIVES","objectIsExtensible","freezing","preventExtensions","getOwnPropertyNamesExternalModule","FREEZING","REQUIRED","METADATA","setMetadata","objectID","weakData","fastKey","getWeakData","onFreeze","meta","splice","internalMetadataModule","inheritIfRequired","dummy","Wrapper","NewTarget","NewTargetPrototype","InternalMetadataModule","collection","common","IS_WEAK","ADDER","NativeConstructor","NativePrototype","exported","fixMethod","uncurriedNativeMethod","REPLACE","getConstructor","instance","HASNT_CHAINING","THROWS_ON_PRIMITIVES","ACCEPT_ITERABLES","BUGGY_ZERO","$instance","setStrong","defineBuiltIns","internalStateGetterFor","collectionStrong","last","define","getEntry","previous","removed","ITERATOR_NAME","getInternalCollectionState","getInternalIteratorState","Set","nativeKeys","$map","TO_ENTRIES","objectToArray","$values","RadioGroup","selector","controlName","_ref$featureName","featureName","defaultValue","pluginName","radioElements","querySelectorAll","radioGroup","_possibleConstructorReturn","radio","checked","hasOnly","valuesArray","hasDuplicateValues","_toConsumableArray","enableRadioEvents","callBack","disableRadioEvents","displayRadios","resetState","RadioGroupPlugin","cssSelector","supportedValues","initialValue","radioCount","selectors","_currentValue","radioGroups","setUpRadios","radioGroupsLength","property","newValue","thisNumberValue","IS_PURE","NUMBER","NativeNumber","NumberPrototype","toNumeric","primValue","toNumber","third","radix","maxCode","digits","code","NaN","parseInt","calledWithNew","NumberWrapper","Number","Slider","slider","control","_ref$min","_ref$max","_ref$step","_ref$defaultValue","sliderValue","setUpSlider","sliderRange","enableSliderEvents","disableSliderEvents","displaySlider","Button","onClick","displayButton","enableButton","addClass","className","SliderPlugin","_ref$minValue","minValue","_ref$maxValue","maxValue","sliders","setUpSliders","slidersLength","currentValue","DEFAULT_CAPTIONS_STYLES","background","color","edge","font","align","DEFAULT_COLOR_STYLE","INVERTED_COLOR_STYLE","FONT_SIZE_VALUES","COLOR_VALUES","ALIGN_VALUES","CaptionsStylePlugin","_ButtonPlugin","fontSizeRadios","colorRadios","alignmentRadios","_ref$defaultFontSize","defaultFontSize","_ref$defaultColor","defaultColor","_ref$defaultAlignment","defaultAlignment","captionsStyles","captionStyleKey","fontSizeSelectors","colorSelectors","alignmentSelectors","setUpFontSizeRadios","setUpColorRadios","setUpAlignmentRadios","_captionsMuted","alignmentRadiosLength","fontSizeRadiosLength","colorRadiosLength","onColorChange","onAlignmentChange","onFontSizeChange","_iterator","_createForOfIteratorHelper","radios","_step","s","setCaptionsStyles","styles","clearCaptionsStyles","_iterator2","_step2","getCaptionsStyles","_this5","CaptionsTogglePlugin","captionsButtons","_captionsButtons","captionsButtonClick","captionsButtonLength","captionsToggleKey","captionsMuted","HelpPlugin","helpButtons","_helpButtons","helpButtonClick","paused","_helpEnabled","onPause","helpButtonsLength","helpEnabled","getAttribute","hints","PausePlugin","pauseButton","manageOwnVisibility","_manageOwnVisibility","_appBlurred","_containerBlurred","_focusTimer","_isManualPause","_keepFocus","_paused","focusApp","manageFocus","onKeepFocus","onPauseToggle","pauseDisabled","_pauseButton","pageVisibility","onContainerFocus","onContainerBlur","pauseKey","hasDom","focus","blurApp","blur","clearTimeout","pause","disablePause","buttons","SoundPlugin","soundButtons","musicButtons","sfxButtons","voButtons","soundSliders","musicSliders","sfxSliders","voSliders","saved","soundMutedKey","_soundMuted","_musicMuted","_voMuted","_sfxMuted","soundVolume","musicVolume","sfxVolume","voVolume","soundVolumeKey","newSlider","musicVolumeKey","sfxVolumeKey","voVolumeKey","onSoundToggle","soundKey","onMusicToggle","onSFXToggle","onVOToggle","soundSlidersLength","musicSlidersLength","sfxSlidersLength","voSlidersLength","soundButtonsLength","musicButtonsLength","sfxButtonsLength","voButtonsLength","onSoundVolumeChange","onMusicVolumeChange","onSFXVolumeChange","onVOVolumeChange","soundMuted","_checkSoundMute","musicMuted","voMuted","sfxMuted","setMuteProp","element","musicMutedKey","sfxMutedKey","voMutedKey","_soundButton","_musicButton","_sfxButton","_voButton","SavedDataHandler","savedData","record","sd","UserDataPlugin","onUserDataRemove","onUserDataRead","onUserDataWrite","onIDBAdd","onIDBOpen","onIDBRead","onIDBReadAll","onIDBRemove","onIDBUpdate","onIDBClose","onIDBGetVersion","onIDBDeleteDB","savedDataHandler","_ref3$data","_ref4","_ref4$data","_ref4$data$dbVersion","_ref4$data$additions","_ref4$data$deletions","_ref5","_this6","_ref5$data","_ref6","_this7","_ref6$data","_ref7","_this8","_ref7$data","_ref8","_this9","_ref8$data","_ref9","_this10","_ref9$data","_ref10","_this11","sdh","_ref11","_this12","_ref12","_this13","_ref12$data","PointerSizePlugin","_SliderPlugin","pointerSliders","_ref$defaultPointerSi","defaultPointerSize","pointerSizeKey","onPointerSizeChange","ButtonSizePlugin","buttonSliders","_ref$defaultButtonSiz","defaultButtonSize","buttonSizeKey","onButtonSizeChange","ControlSensitivityPlugin","sensitivitySliders","_ref$defaultSensitivi","defaultSensitivity","controlSensitivityKey","onControlSensitivityChange","KeyboardMapPlugin","keyContainers","_ref$customClassName","customClassName","bindKey","onKeyButtonClick","keyBindings","activekeyButton","sendAfterFetch","canEmit","keyContainersLength","textContent","preventDefault","actionName","currentKey","keyBindingKey","keyBinding","defaultKey","label","htmlFor","LayersPlugin","layersSliders","layersSliderKey","onLayerValueChange","SUPPORTED_POSITIONS","HUDPlugin","_RadioGroupPlugin","hudSelectorRadios","hudPositionKey","positions","onHUDSelect","hudPosition","COLOR_BLIND_TYPES","ColorVisionPlugin","colorVisionRadios","colorVisionKey","colors","colorVision","colorDropdownsLength","HitAreaScalePlugin","hitAreaScaleSliders","_ref$defaultHitAreaSc","defaultHitAreaScale","hitAreaScaleKey","onHitAreaScaleChange","DragThresholdScalePlugin","dragThresholdScaleSliders","_ref$defaultDragThres","defaultDragThresholdScale","dragThresholdScaleKey","onDragThresholdScaleChange","HealthPlugin","healthSliders","_ref$defaultHealth","defaultHealth","healthKey","onHealthChange","ObjectCountPlugin","objectCountSliders","_ref$defaultObjectCou","defaultObjectCount","objectCountKey","onObjectCountChange","CompletionPercentagePlugin","completionPercentageSliders","_ref$defaultCompletio","defaultCompletionPercentage","completionPercentageKey","onCompletionPercentageChange","SpeedScalePlugin","speedScaleSliders","_ref$defaultSpeedScal","defaultSpeedScale","speedScaleKey","onSpeedScaleChange","TimersScalePlugin","timersScaleSliders","_ref$defaultTimersSca","defaultTimersScale","timersScaleKey","onTimersScaleChange","InputCountPlugin","inputCountSliders","_ref$defaultInputCoun","defaultInputCount","inputCountKey","onInputCountChange","FullScreenPlugin","buttonSelector","fullscreenKey","_toggleButtons","iFrame","log","toggleButton","toggleFullScreen","fullscreenElement","requestFullscreen","exitFullscreen","webkitIsFullscreen","mozFullScreen"],"mappings":";;;;;;EAAA,IAAIA,QAAM,GACP,OAAOC,UAAU,KAAK,WAAW,IAAIA,UAAU,IAC/C,OAAOC,IAAI,KAAK,WAAW,IAAIA,IAAK,IACpC,OAAOF,QAAM,KAAK,WAAW,IAAIA,QAAO,CAAA;EAE3C,IAAIG,OAAO,GAAG;IACZC,YAAY,EAAE,iBAAiB,IAAIJ,QAAM;EACzCK,EAAAA,QAAQ,EAAE,QAAQ,IAAIL,QAAM,IAAI,UAAU,IAAIM,MAAM;IACpDC,IAAI,EACF,YAAY,IAAIP,QAAM,IACtB,MAAM,IAAIA,QAAM,IACf,YAAW;MACV,IAAI;EACF,MAAA,IAAIQ,IAAI,EAAE,CAAA;EACV,MAAA,OAAO,IAAI,CAAA;OACZ,CAAC,OAAOC,CAAC,EAAE;EACV,MAAA,OAAO,KA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MAAM,CAACK,iBAAiB,EAAE,CAACv8C,IAAI,CAAC,YAAM;YACzCs8B,MAAI,CAACwB,iBAAiB,EAAE,CAAA;EAC1B,SAAC,CAAC,CAAC9J,KAAK,CAAC,UAAC/wB,GAAG,EAAK;EAChBwjB,UAAAA,OAAO,CAAC01B,GAAG,CAACl5C,GAAG,CAAC,CAAA;EAClB,SAAC,CAAC,CAAA;EACJ,OAAC,MAAM;UACLqE,QAAQ,CAACk1C,cAAc,EAAE,CAAA;UACzB,IAAI,CAAC1e,iBAAiB,EAAE,CAAA;EAC1B,OAAA;EACF,KAAA;;EAEA;EACF;EACA;EACA;EAHE,GAAA,EAAA;MAAAz7B,GAAA,EAAA,cAAA;MAAA5F,GAAA,EAIA,SAAAA,GAAAA,GAAmB;QACjB,OAAO,CAAC6K,QAAQ,CAACg1C,iBAAiB;EAAI;EACpCh1C,MAAAA,QAAQ,CAACm1C,kBAAkB;EAAI;QAC/Bn1C,QAAQ,CAACo1C,aAAa;aACnB,IAAI,CAAC;EACZ,KAAA;;EAEA;EACF;EACA;EACA;EACA;EAJE,GAAA,CAAA,EAAA,CAAA;MAAAr6C,GAAA,EAAA,eAAA;MAAA5F,GAAA,EAKA,SAAAA,GAAAA,GAA2B;EACzB,MAAA,OAAO,YAAY,CAAA;EACrB,KAAA;EAAC,GAAA,CAAA,CAAA,CAAA;EAAA,EAAA,OAAAq/C,gBAAA,CAAA;EAAA,CAAA,CAjHmC3d,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/dist/index.js b/dist/index.js index ac4d7a0..9914235 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,2 +1,11143 @@ -var t="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==t&&t,e={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(e.arrayBuffer)var n=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(t){return t&&n.indexOf(Object.prototype.toString.call(t))>-1};function o(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function i(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var n={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return e.iterable&&(n[Symbol.iterator]=function(){return n}),n}function a(t){this.map={},t instanceof a?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function u(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function l(t){return new Promise((function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function c(t){var e=new FileReader,n=l(e);return e.readAsArrayBuffer(t),n}function d(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function f(){return this.bodyUsed=!1,this._initBody=function(t){var n;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:e.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:e.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():e.arrayBuffer&&e.blob&&((n=t)&&DataView.prototype.isPrototypeOf(n))?(this._bodyArrayBuffer=d(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):e.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=d(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},e.blob&&(this.blob=function(){var t=u(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var t=u(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(c)}),this.text=function(){var t=u(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,n=l(e);return e.readAsText(t),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r-1?e:t}(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){var r=/([?&])_=[^&]*/;if(r.test(this.url))this.url=this.url.replace(r,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function v(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(o))}})),e}function y(t,e){if(!(this instanceof y))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new a(e.headers),this.url=e.url||"",this._initBody(t)}p.prototype.clone=function(){return new p(this,{body:this._bodyInit})},f.call(p.prototype),f.call(y.prototype),y.prototype.clone=function(){return new y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new a(this.headers),url:this.url})},y.error=function(){var t=new y(null,{status:0,statusText:""});return t.type="error",t};var g=[301,302,303,307,308];y.redirect=function(t,e){if(-1===g.indexOf(e))throw new RangeError("Invalid status code");return new y(null,{status:e,headers:{location:t}})};var m=t.DOMException;try{new m}catch(t){(m=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack}).prototype=Object.create(Error.prototype),m.prototype.constructor=m}function b(n,r){return new Promise((function(o,s){var u=new p(n,r);if(u.signal&&u.signal.aborted)return s(new m("Aborted","AbortError"));var l=new XMLHttpRequest;function c(){l.abort()}l.onload=function(){var t,e,n={status:l.status,statusText:l.statusText,headers:(t=l.getAllResponseHeaders()||"",e=new a,t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var n=t.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();e.append(r,o)}})),e)};n.url="responseURL"in l?l.responseURL:n.headers.get("X-Request-URL");var r="response"in l?l.response:l.responseText;setTimeout((function(){o(new y(r,n))}),0)},l.onerror=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},l.ontimeout=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},l.onabort=function(){setTimeout((function(){s(new m("Aborted","AbortError"))}),0)},l.open(u.method,function(e){try{return""===e&&t.location.href?t.location.href:e}catch(t){return e}}(u.url),!0),"include"===u.credentials?l.withCredentials=!0:"omit"===u.credentials&&(l.withCredentials=!1),"responseType"in l&&(e.blob?l.responseType="blob":e.arrayBuffer&&u.headers.get("Content-Type")&&-1!==u.headers.get("Content-Type").indexOf("application/octet-stream")&&(l.responseType="arraybuffer")),!r||"object"!=typeof r.headers||r.headers instanceof a?u.headers.forEach((function(t,e){l.setRequestHeader(e,t)})):Object.getOwnPropertyNames(r.headers).forEach((function(t){l.setRequestHeader(t,i(r.headers[t]))})),u.signal&&(u.signal.addEventListener("abort",c),l.onreadystatechange=function(){4===l.readyState&&u.signal.removeEventListener("abort",c)}),l.send(void 0===u._bodyInit?null:u._bodyInit)}))}b.polyfill=!0,t.fetch||(t.fetch=b,t.Headers=a,t.Request=p,t.Response=y);var w="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function S(t,e){return t(e={exports:{}},e.exports),e.exports}var k,E,B=function(t){return t&&t.Math==Math&&t},x=B("object"==typeof globalThis&&globalThis)||B("object"==typeof window&&window)||B("object"==typeof self&&self)||B("object"==typeof w&&w)||function(){return this}()||Function("return this")(),P={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},L="object"==typeof document&&document.all,_={all:L,IS_HTMLDDA:void 0===L&&void 0!==L},O=_.all,A=_.IS_HTMLDDA?function(t){return"function"==typeof t||t===O}:function(t){return"function"==typeof t},C=_.all,D=_.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:A(t)||t===C}:function(t){return"object"==typeof t?null!==t:A(t)},V=x.document,T=D(V)&&D(V.createElement),I=function(t){return T?V.createElement(t):{}},R=I("span").classList,j=R&&R.constructor&&R.constructor.prototype,M=j===Object.prototype?void 0:j,N=function(t){try{return!!t()}catch(t){return!0}},K=!N((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),F=Function.prototype,G=F.call,U=K&&F.bind.bind(G,G),H=K?U:function(t){return function(){return G.apply(t,arguments)}},z=H({}.toString),q=H("".slice),W=function(t){return q(z(t),8,-1)},X=function(t){if("Function"===W(t))return H(t)},Y=String,J=function(t){try{return Y(t)}catch(t){return"Object"}},$=TypeError,Q=function(t){if(A(t))return t;throw $(J(t)+" is not a function")},Z=X(X.bind),tt=function(t,e){return Q(t),void 0===e?t:K?Z(t,e):function(){return t.apply(e,arguments)}},et=Object,nt=H("".split),rt=N((function(){return!et("z").propertyIsEnumerable(0)}))?function(t){return"String"==W(t)?nt(t,""):et(t)}:et,ot=function(t){return null==t},it=TypeError,st=function(t){if(ot(t))throw it("Can't call method on "+t);return t},at=Object,ut=function(t){return at(st(t))},lt=Math.ceil,ct=Math.floor,dt=Math.trunc||function(t){var e=+t;return(e>0?ct:lt)(e)},ft=function(t){var e=+t;return e!=e||0===e?0:dt(e)},ht=Math.min,pt=function(t){return(e=t.length)>0?ht(ft(e),9007199254740991):0;var e},vt=Array.isArray||function(t){return"Array"==W(t)},yt=Object.defineProperty,gt=function(t,e){try{yt(x,t,{value:e,configurable:!0,writable:!0})}catch(n){x[t]=e}return e},mt="__core-js_shared__",bt=x[mt]||gt(mt,{}),wt=S((function(t){(t.exports=function(t,e){return bt[t]||(bt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.28.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.28.0/LICENSE",source:"https://github.com/zloirock/core-js"})})),St=H({}.hasOwnProperty),kt=Object.hasOwn||function(t,e){return St(ut(t),e)},Et=0,Bt=Math.random(),xt=H(1..toString),Pt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+xt(++Et+Bt,36)},Lt="undefined"!=typeof navigator&&String(navigator.userAgent)||"",_t=x.process,Ot=x.Deno,At=_t&&_t.versions||Ot&&Ot.version,Ct=At&&At.v8;Ct&&(E=(k=Ct.split("."))[0]>0&&k[0]<4?1:+(k[0]+k[1])),!E&&Lt&&(!(k=Lt.match(/Edge\/(\d+)/))||k[1]>=74)&&(k=Lt.match(/Chrome\/(\d+)/))&&(E=+k[1]);var Dt=E,Vt=!!Object.getOwnPropertySymbols&&!N((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Dt&&Dt<41})),Tt=Vt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,It=x.Symbol,Rt=wt("wks"),jt=Tt?It.for||It:It&&It.withoutSetter||Pt,Mt=function(t){return kt(Rt,t)||(Rt[t]=Vt&&kt(It,t)?It[t]:jt("Symbol."+t)),Rt[t]},Nt={};Nt[Mt("toStringTag")]="z";var Kt="[object z]"===String(Nt),Ft=Mt("toStringTag"),Gt=Object,Ut="Arguments"==W(function(){return arguments}()),Ht=Kt?W:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Gt(t),Ft))?n:Ut?W(e):"Object"==(r=W(e))&&A(e.callee)?"Arguments":r},zt=function(t){return A(t)?t:void 0},qt=function(t,e){return arguments.length<2?zt(x[t]):x[t]&&x[t][e]},Wt=H(Function.toString);A(bt.inspectSource)||(bt.inspectSource=function(t){return Wt(t)});var Xt=bt.inspectSource,Yt=function(){},Jt=[],$t=qt("Reflect","construct"),Qt=/^\s*(?:class|function)\b/,Zt=H(Qt.exec),te=!Qt.exec(Yt),ee=function(t){if(!A(t))return!1;try{return $t(Yt,Jt,t),!0}catch(t){return!1}},ne=function(t){if(!A(t))return!1;switch(Ht(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return te||!!Zt(Qt,Xt(t))}catch(t){return!0}};ne.sham=!0;var re=!$t||N((function(){var t;return ee(ee.call)||!ee(Object)||!ee((function(){t=!0}))||t}))?ne:ee,oe=Mt("species"),ie=Array,se=function(t,e){return new(function(t){var e;return vt(t)&&(e=t.constructor,(re(e)&&(e===ie||vt(e.prototype))||D(e)&&null===(e=e[oe]))&&(e=void 0)),void 0===e?ie:e}(t))(0===e?0:e)},ae=H([].push),ue=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,s=7==t,a=5==t||i;return function(u,l,c,d){for(var f,h,p=ut(u),v=rt(p),y=tt(l,c),g=pt(v),m=0,b=d||se,w=e?b(u,g):n||s?b(u,0):void 0;g>m;m++)if((a||m in v)&&(h=y(f=v[m],m,p),t))if(e)w[m]=h;else if(h)switch(t){case 3:return!0;case 5:return f;case 6:return m;case 2:ae(w,f)}else switch(t){case 4:return!1;case 7:ae(w,f)}return i?-1:r||o?o:w}},le={forEach:ue(0),map:ue(1),filter:ue(2),some:ue(3),every:ue(4),find:ue(5),findIndex:ue(6),filterReject:ue(7)},ce=function(t,e){var n=[][t];return!!n&&N((function(){n.call(null,e||function(){return 1},1)}))},de=le.forEach,fe=ce("forEach")?[].forEach:function(t){return de(this,t,arguments.length>1?arguments[1]:void 0)},he=!N((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),pe=!he&&!N((function(){return 7!=Object.defineProperty(I("div"),"a",{get:function(){return 7}}).a})),ve=he&&N((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),ye=String,ge=TypeError,me=function(t){if(D(t))return t;throw ge(ye(t)+" is not an object")},be=Function.prototype.call,we=K?be.bind(be):function(){return be.apply(be,arguments)},Se=H({}.isPrototypeOf),ke=Object,Ee=Tt?function(t){return"symbol"==typeof t}:function(t){var e=qt("Symbol");return A(e)&&Se(e.prototype,ke(t))},Be=function(t,e){var n=t[e];return ot(n)?void 0:Q(n)},xe=TypeError,Pe=TypeError,Le=Mt("toPrimitive"),_e=function(t,e){if(!D(t)||Ee(t))return t;var n,r=Be(t,Le);if(r){if(void 0===e&&(e="default"),n=we(r,t,e),!D(n)||Ee(n))return n;throw Pe("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&A(n=t.toString)&&!D(r=we(n,t)))return r;if(A(n=t.valueOf)&&!D(r=we(n,t)))return r;if("string"!==e&&A(n=t.toString)&&!D(r=we(n,t)))return r;throw xe("Can't convert object to primitive value")}(t,e)},Oe=function(t){var e=_e(t,"string");return Ee(e)?e:e+""},Ae=TypeError,Ce=Object.defineProperty,De=Object.getOwnPropertyDescriptor,Ve="enumerable",Te="configurable",Ie="writable",Re={f:he?ve?function(t,e,n){if(me(t),e=Oe(e),me(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Ie in n&&!n[Ie]){var r=De(t,e);r&&r[Ie]&&(t[e]=n.value,n={configurable:Te in n?n[Te]:r[Te],enumerable:Ve in n?n[Ve]:r[Ve],writable:!1})}return Ce(t,e,n)}:Ce:function(t,e,n){if(me(t),e=Oe(e),me(n),pe)try{return Ce(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Ae("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},je=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Me=he?function(t,e,n){return Re.f(t,e,je(1,n))}:function(t,e,n){return t[e]=n,t},Ne=function(t){if(t&&t.forEach!==fe)try{Me(t,"forEach",fe)}catch(e){t.forEach=fe}};for(var Ke in P)P[Ke]&&Ne(x[Ke]&&x[Ke].prototype);Ne(M);var Fe,Ge=function(t){return rt(st(t))},Ue=Math.max,He=Math.min,ze=function(t,e){var n=ft(t);return n<0?Ue(n+e,0):He(n,e)},qe=function(t){return function(e,n,r){var o,i=Ge(e),s=pt(i),a=ze(r,s);if(t&&n!=n){for(;s>a;)if((o=i[a++])!=o)return!0}else for(;s>a;a++)if((t||a in i)&&i[a]===n)return t||a||0;return!t&&-1}},We={includes:qe(!0),indexOf:qe(!1)},Xe={},Ye=We.indexOf,Je=H([].push),$e=function(t,e){var n,r=Ge(t),o=0,i=[];for(n in r)!kt(Xe,n)&&kt(r,n)&&Je(i,n);for(;e.length>o;)kt(r,n=e[o++])&&(~Ye(i,n)||Je(i,n));return i},Qe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ze=Object.keys||function(t){return $e(t,Qe)},tn=he&&!ve?Object.defineProperties:function(t,e){me(t);for(var n,r=Ge(e),o=Ze(e),i=o.length,s=0;i>s;)Re.f(t,n=o[s++],r[n]);return t},en={f:tn},nn=qt("document","documentElement"),rn=wt("keys"),on=function(t){return rn[t]||(rn[t]=Pt(t))},sn="prototype",an="script",un=on("IE_PROTO"),ln=function(){},cn=function(t){return"<"+an+">"+t+""},dn=function(t){t.write(cn("")),t.close();var e=t.parentWindow.Object;return t=null,e},fn=function(){try{Fe=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;fn="undefined"!=typeof document?document.domain&&Fe?dn(Fe):(e=I("iframe"),n="java"+an+":",e.style.display="none",nn.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(cn("document.F=Object")),t.close(),t.F):dn(Fe);for(var r=Qe.length;r--;)delete fn[sn][Qe[r]];return fn()};Xe[un]=!0;var hn=Object.create||function(t,e){var n;return null!==t?(ln[sn]=me(t),n=new ln,ln[sn]=null,n[un]=t):n=fn(),void 0===e?n:en.f(n,e)},pn=Re.f,vn=Mt("unscopables"),yn=Array.prototype;null==yn[vn]&&pn(yn,vn,{configurable:!0,value:hn(null)});var gn,mn,bn,wn=function(t){yn[vn][t]=!0},Sn={},kn=x.WeakMap,En=A(kn)&&/native code/.test(String(kn)),Bn="Object already initialized",xn=x.TypeError,Pn=x.WeakMap;if(En||bt.state){var Ln=bt.state||(bt.state=new Pn);Ln.get=Ln.get,Ln.has=Ln.has,Ln.set=Ln.set,gn=function(t,e){if(Ln.has(t))throw xn(Bn);return e.facade=t,Ln.set(t,e),e},mn=function(t){return Ln.get(t)||{}},bn=function(t){return Ln.has(t)}}else{var _n=on("state");Xe[_n]=!0,gn=function(t,e){if(kt(t,_n))throw xn(Bn);return e.facade=t,Me(t,_n,e),e},mn=function(t){return kt(t,_n)?t[_n]:{}},bn=function(t){return kt(t,_n)}}var On,An,Cn,Dn={set:gn,get:mn,has:bn,enforce:function(t){return bn(t)?mn(t):gn(t,{})},getterFor:function(t){return function(e){var n;if(!D(e)||(n=mn(e)).type!==t)throw xn("Incompatible receiver, "+t+" required");return n}}},Vn={}.propertyIsEnumerable,Tn=Object.getOwnPropertyDescriptor,In={f:Tn&&!Vn.call({1:2},1)?function(t){var e=Tn(this,t);return!!e&&e.enumerable}:Vn},Rn=Object.getOwnPropertyDescriptor,jn={f:he?Rn:function(t,e){if(t=Ge(t),e=Oe(e),pe)try{return Rn(t,e)}catch(t){}if(kt(t,e))return je(!we(In.f,t,e),t[e])}},Mn=Function.prototype,Nn=he&&Object.getOwnPropertyDescriptor,Kn=kt(Mn,"name"),Fn={EXISTS:Kn,PROPER:Kn&&"something"===function(){}.name,CONFIGURABLE:Kn&&(!he||he&&Nn(Mn,"name").configurable)},Gn=S((function(t){var e=Fn.CONFIGURABLE,n=Dn.enforce,r=Dn.get,o=String,i=Object.defineProperty,s=H("".slice),a=H("".replace),u=H([].join),l=he&&!N((function(){return 8!==i((function(){}),"length",{value:8}).length})),c=String(String).split("String"),d=t.exports=function(t,r,d){"Symbol("===s(o(r),0,7)&&(r="["+a(o(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),d&&d.getter&&(r="get "+r),d&&d.setter&&(r="set "+r),(!kt(t,"name")||e&&t.name!==r)&&(he?i(t,"name",{value:r,configurable:!0}):t.name=r),l&&d&&kt(d,"arity")&&t.length!==d.arity&&i(t,"length",{value:d.arity});try{d&&kt(d,"constructor")&&d.constructor?he&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var f=n(t);return kt(f,"source")||(f.source=u(c,"string"==typeof r?r:"")),t};Function.prototype.toString=d((function(){return A(this)&&r(this).source||Xt(this)}),"toString")})),Un=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(A(n)&&Gn(n,i,r),r.global)o?t[e]=n:gt(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:Re.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},Hn=Qe.concat("length","prototype"),zn={f:Object.getOwnPropertyNames||function(t){return $e(t,Hn)}},qn={f:Object.getOwnPropertySymbols},Wn=H([].concat),Xn=qt("Reflect","ownKeys")||function(t){var e=zn.f(me(t)),n=qn.f;return n?Wn(e,n(t)):e},Yn=function(t,e,n){for(var r=Xn(e),o=Re.f,i=jn.f,s=0;s=e.length?(t.target=void 0,Dr(void 0,!0)):Dr("keys"==n?r:"values"==n?e[r]:[r,e[r]],!1)}),"values"),Mr=Sn.Arguments=Sn.Array;if(wn("keys"),wn("values"),wn("entries"),he&&"values"!==Mr.name)try{Vr(Mr,"name",{value:"values"})}catch(t){}var Nr=Mt("iterator"),Kr=Mt("toStringTag"),Fr=jr.values,Gr=function(t,e){if(t){if(t[Nr]!==Fr)try{Me(t,Nr,Fr)}catch(e){t[Nr]=Fr}if(t[Kr]||Me(t,Kr,e),P[e])for(var n in jr)if(t[n]!==jr[n])try{Me(t,n,jr[n])}catch(e){t[n]=jr[n]}}};for(var Ur in P)Gr(x[Ur]&&x[Ur].prototype,Ur);Gr(M,"DOMTokenList");var Hr=x;function zr(){zr=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,o){var i=e&&e.prototype instanceof f?e:f,s=Object.create(i.prototype),a=new x(o||[]);return r(s,"_invoke",{value:S(t,n,a)}),s}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var d={};function f(){}function h(){}function p(){}var v={};u(v,i,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(P([])));g&&g!==e&&n.call(g,i)&&(v=g);var m=p.prototype=f.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(r,i,s,a){var u=c(t[r],t,i);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==typeof d&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){o("next",t,s,a)}),(function(t){o("throw",t,s,a)})):e.resolve(d).then((function(t){l.value=t,s(l)}),(function(t){return o("throw",t,s,a)}))}a(u.arg)}var i;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){o(t,n,e,r)}))}return i=i?i.then(r,r):r()}})}function S(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 L()}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var a=k(s,n);if(a){if(a===d)continue;return a}}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 u=c(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function k(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,k(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=c(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function E(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 B(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function P(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var a=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(a&&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),B(n),d}},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;B(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:P(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function qr(t){return qr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qr(t)}function Wr(t,e,n,r,o,i,s){try{var a=t[i](s),u=a.value}catch(t){return void n(t)}a.done?e(u):Promise.resolve(u).then(r,o)}function Xr(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function s(t){Wr(i,r,o,s,a,"next",t)}function a(t){Wr(i,r,o,s,a,"throw",t)}s(void 0)}))}}function Yr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Jr(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,i=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}var uo=We.indexOf,lo=X([].indexOf),co=!!lo&&1/lo([1],1,-0)<0,fo=co||!ce("indexOf");or({target:"Array",proto:!0,forced:fo},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return co?lo(this,t,e)||0:uo(this,t,e)}});var ho=TypeError,po=function(t){if(t>9007199254740991)throw ho("Maximum allowed index exceeded");return t},vo=function(t,e,n){var r=Oe(e);r in t?Re.f(t,r,je(0,n)):t[r]=n},yo=Mt("species"),go=function(t){return Dt>=51||!N((function(){var e=[];return(e.constructor={})[yo]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},mo=Mt("isConcatSpreadable"),bo=Dt>=51||!N((function(){var t=[];return t[mo]=!1,t.concat()[0]!==t})),wo=function(t){if(!D(t))return!1;var e=t[mo];return void 0!==e?!!e:vt(t)},So=!bo||!go("concat");or({target:"Array",proto:!0,arity:1,forced:So},{concat:function(t){var e,n,r,o,i,s=ut(this),a=se(s,0),u=0;for(e=-1,r=arguments.length;eo;)for(var a,u=rt(arguments[o++]),l=i?Bo(Ze(u),i(u)):Ze(u),c=l.length,d=0;c>d;)a=l[d++],he&&!we(s,u,a)||(n[a]=u[a]);return n}:ko;or({target:"Object",stat:!0,arity:2,forced:Object.assign!==xo},{assign:xo});var Po=Kt?{}.toString:function(){return"[object "+Ht(this)+"]"};Kt||Un(Object.prototype,"toString",Po,{unsafe:!0});var Lo,_o,Oo,Ao,Co="undefined"!=typeof process&&"process"==W(process),Do=function(t,e,n){return n.get&&Gn(n.get,e,{getter:!0}),n.set&&Gn(n.set,e,{setter:!0}),Re.f(t,e,n)},Vo=Mt("species"),To=function(t){var e=qt(t);he&&e&&!e[Vo]&&Do(e,Vo,{configurable:!0,get:function(){return this}})},Io=TypeError,Ro=function(t,e){if(Se(e,t))return t;throw Io("Incorrect invocation")},jo=TypeError,Mo=Mt("species"),No=function(t,e){var n,r=me(t).constructor;return void 0===r||ot(n=me(r)[Mo])?e:function(t){if(re(t))return t;throw jo(J(t)+" is not a constructor")}(n)},Ko=Function.prototype,Fo=Ko.apply,Go=Ko.call,Uo="object"==typeof Reflect&&Reflect.apply||(K?Go.bind(Fo):function(){return Go.apply(Fo,arguments)}),Ho=H([].slice),zo=TypeError,qo=function(t,e){if(ti;i++)if((a=m(t[i]))&&Se(xs,a))return a;return new Bs(!1)}r=function(t,e){var n=arguments.length<2?ws(t):e;if(Q(n))return me(we(n,t));throw Ss(J(t)+" is not iterable")}(t,o)}for(u=h?t.next:r.next;!(l=we(u,r)).done;){try{a=m(l.value)}catch(t){ks(r,"throw",t)}if("object"==typeof a&&a&&Se(xs,a))return a}return new Bs(!1)},Ls=Mt("iterator"),_s=!1;try{var Os=0,As={next:function(){return{done:!!Os++}},return:function(){_s=!0}};As[Ls]=function(){return this},Array.from(As,(function(){throw 2}))}catch(t){}var Cs=function(t,e){if(!e&&!_s)return!1;var n=!1;try{var r={};r[Ls]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n},Ds=Ki.CONSTRUCTOR||!Cs((function(t){Ai.all(t).then(void 0,(function(){}))}));or({target:"Promise",stat:!0,forced:Ds},{all:function(t){var e=this,n=Ui.f(e),r=n.resolve,o=n.reject,i=Oi((function(){var n=Q(e.resolve),i=[],s=0,a=1;Ps(t,(function(t){var u=s++,l=!1;a++,we(n,e,t).then((function(t){l||(l=!0,i[u]=t,--a||r(i))}),o)})),--a||r(i)}));return i.error&&o(i.value),n.promise}});var Vs=Ki.CONSTRUCTOR,Ts=Ai&&Ai.prototype;if(or({target:"Promise",proto:!0,forced:Vs,real:!0},{catch:function(t){return this.then(void 0,t)}}),A(Ai)){var Is=qt("Promise").prototype.catch;Ts.catch!==Is&&Un(Ts,"catch",Is,{unsafe:!0})}or({target:"Promise",stat:!0,forced:Ds},{race:function(t){var e=this,n=Ui.f(e),r=n.reject,o=Oi((function(){var o=Q(e.resolve);Ps(t,(function(t){we(o,e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}}),or({target:"Promise",stat:!0,forced:Ki.CONSTRUCTOR},{reject:function(t){var e=Ui.f(this);return we(e.reject,void 0,t),e.promise}});var Rs=Ki.CONSTRUCTOR;qt("Promise"),or({target:"Promise",stat:!0,forced:Rs},{resolve:function(t){return function(t,e){if(me(t),D(e)&&e.constructor===t)return e;var n=Ui.f(t);return(0,n.resolve)(e),n.promise}(this,t)}});var js,Ms,Ns=String,Ks=function(t){if("Symbol"===Ht(t))throw TypeError("Cannot convert a Symbol value to a string");return Ns(t)},Fs=function(){var t=me(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},Gs=x.RegExp,Us=N((function(){var t=Gs("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),Hs=Us||N((function(){return!Gs("a","y").sticky})),zs={BROKEN_CARET:Us||N((function(){var t=Gs("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:Hs,UNSUPPORTED_Y:Us},qs=x.RegExp,Ws=N((function(){var t=qs(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Xs=x.RegExp,Ys=N((function(){var t=Xs("(?b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$c")})),Js=Dn.get,$s=wt("native-string-replace",String.prototype.replace),Qs=RegExp.prototype.exec,Zs=Qs,ta=H("".charAt),ea=H("".indexOf),na=H("".replace),ra=H("".slice),oa=(Ms=/b*/g,we(Qs,js=/a/,"a"),we(Qs,Ms,"a"),0!==js.lastIndex||0!==Ms.lastIndex),ia=zs.BROKEN_CARET,sa=void 0!==/()??/.exec("")[1];(oa||sa||ia||Ws||Ys)&&(Zs=function(t){var e,n,r,o,i,s,a,u=this,l=Js(u),c=Ks(t),d=l.raw;if(d)return d.lastIndex=u.lastIndex,e=we(Zs,d,c),u.lastIndex=d.lastIndex,e;var f=l.groups,h=ia&&u.sticky,p=we(Fs,u),v=u.source,y=0,g=c;if(h&&(p=na(p,"y",""),-1===ea(p,"g")&&(p+="g"),g=ra(c,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==ta(c,u.lastIndex-1))&&(v="(?: "+v+")",g=" "+g,y++),n=new RegExp("^(?:"+v+")",p)),sa&&(n=new RegExp("^"+v+"$(?!\\s)",p)),oa&&(r=u.lastIndex),o=we(Qs,h?n:u,g),h?o?(o.input=ra(o.input,y),o[0]=ra(o[0],y),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:oa&&o&&(u.lastIndex=u.global?o.index+o[0].length:r),sa&&o&&o.length>1&&we($s,o[0],n,(function(){for(i=1;i0||navigator.pointerEnabled&&navigator.maxTouchPoints>0)}},{key:"basic",value:function(){return t.canvas?t.webaudio||t.htmlAudio?null:"Browser does not support WebAudio or HTMLAudio":"Browser does not support canvas"}},{key:"test",value:function(e){var n=this.basic();if(n)return n;var r=e.features,o=e.ui,i=e.sizes;for(var s in r)if(!0===r[s]&&!t[s])return"Browser does not support "+s;if(!o.touch&&t.touch)return"Game does not support touch input";var a=Math.max(window.screen.width,window.screen.height);return!i.xsmall&&a<480?"Game doesn't support extra small screens":!i.small&&a<768?"Game doesn't support small screens":!i.medium&&a<992?"Game doesn't support medium screens":!i.large&&a<1200?"Game doesn't support large screens":!i.xlarge&&a>=1200?"Game doesn't support extra large screens":null}},{key:"info",get:function(){return"Browser Feature Detection\n\t\t\t\tCanvas support ".concat(t.canvas?"✓":"×","\n\t\t\t\tWebGL support ").concat(t.webgl?"✓":"×","\n\t\t\t\tWebAudio support ").concat(t.webAudio?"✓":"×")}}]),t}(),ua=H("".charAt),la=H("".charCodeAt),ca=H("".slice),da=function(t){return function(e,n){var r,o,i=Ks(st(e)),s=ft(n),a=i.length;return s<0||s>=a?t?"":void 0:(r=la(i,s))<55296||r>56319||s+1===a||(o=la(i,s+1))<56320||o>57343?t?ua(i,s):r:t?ca(i,s,s+2):o-56320+(r-55296<<10)+65536}},fa={codeAt:da(!1),charAt:da(!0)}.charAt,ha="String Iterator",pa=Dn.set,va=Dn.getterFor(ha);Cr(String,"String",(function(t){pa(this,{type:ha,string:Ks(t),index:0})}),(function(){var t,e=va(this),n=e.string,r=e.index;return r>=n.length?Dr(void 0,!0):(t=fa(n,r),e.index+=t.length,Dr(t,!1))}));var ya=le.filter,ga=go("filter");or({target:"Array",proto:!0,forced:!ga},{filter:function(t){return ya(this,t,arguments.length>1?arguments[1]:void 0)}});var ma=le.find,ba="find",wa=!0;function Sa(t,e){return t(e={exports:{}},e.exports),e.exports}ba in[]&&Array(1)[ba]((function(){wa=!1})),or({target:"Array",proto:!0,forced:wa},{find:function(t){return ma(this,t,arguments.length>1?arguments[1]:void 0)}}),wn(ba);var ka=Sa((function(t){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function n(r){return"function"==typeof Symbol&&"symbol"===e(Symbol.iterator)?t.exports=n=function(t){return e(t)}:t.exports=n=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":e(t)},n(r)}t.exports=n})),Ea=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")};function Ba(t,e){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:0;this._listeners[t]||(this._listeners[t]=[]),e._priority=parseInt(n)||0,-1===this._listeners[t].indexOf(e)&&(this._listeners[t].push(e),this._listeners[t].length>1&&this._listeners[t].sort(this.listenerSorter))}},{key:"listenerSorter",value:function(t,e){return t._priority-e._priority}},{key:"off",value:function(t,e){if(void 0!==this._listeners[t])if(void 0!==e){var n=this._listeners[t].indexOf(e);-11&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof t&&(t={type:t,data:"object"===ka(e)&&null!==e?e:{}}),void 0!==this._listeners[t.type])for(var n=this._listeners[t.type].length-1;n>=0;n--)this._listeners[t.type][n](t)}},{key:"destroy",value:function(){this._listeners={}}}]),t}(),La=Sa((function(t){var e=function(t){var e,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function u(t,e,n,r){var o=e&&e.prototype instanceof v?e:v,i=Object.create(o.prototype),s=new L(r||[]);return i._invoke=function(t,e,n){var r=c;return function(o,i){if(r===f)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return O()}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var a=B(s,n);if(a){if(a===p)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===c)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var u=l(t,e,n);if("normal"===u.type){if(r=n.done?h:d,u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=h,n.method="throw",n.arg=u.arg)}}}(t,n,s),i}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var c="suspendedStart",d="suspendedYield",f="executing",h="completed",p={};function v(){}function y(){}function g(){}var m={};m[i]=function(){return this};var b=Object.getPrototypeOf,w=b&&b(b(_([])));w&&w!==n&&r.call(w,i)&&(m=w);var S=g.prototype=v.prototype=Object.create(m);function k(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function E(t){function e(n,o,i,s){var a=l(t[n],t,o);if("throw"!==a.type){var u=a.arg,c=u.value;return c&&"object"==typeof c&&r.call(c,"__await")?Promise.resolve(c.__await).then((function(t){e("next",t,i,s)}),(function(t){e("throw",t,i,s)})):Promise.resolve(c).then((function(t){u.value=t,i(u)}),(function(t){return e("throw",t,i,s)}))}s(a.arg)}var n;this._invoke=function(t,r){function o(){return new Promise((function(n,o){e(t,r,n,o)}))}return n=n?n.then(o,o):o()}}function B(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,B(t,n),"throw"===n.method))return p;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var o=l(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,p;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,p):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function x(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 P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function _(t){if(t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,s=function n(){for(;++o=0;--i){var s=this.tryEntries[i],a=s.completion;if("root"===s.tryLoc)return o("end");if(s.tryLoc<=this.prev){var u=r.call(s,"catchLoc"),l=r.call(s,"finallyLoc");if(u&&l){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),p}},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;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:_(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),p}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}})),_a=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},Oa=function(t,e){return!e||"object"!==ka(e)&&"function"!=typeof e?_a(t):e},Aa=Sa((function(t){function e(n){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},e(n)}t.exports=e})),Ca=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Aa(t)););return t},Da=Sa((function(t){function e(n,r,o){return"undefined"!=typeof Reflect&&Reflect.get?t.exports=e=Reflect.get:t.exports=e=function(t,e,n){var r=Ca(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}},e(n,r,o||n)}t.exports=e})),Va=Sa((function(t){function e(n,r){return t.exports=e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},e(n,r)}t.exports=e})),Ta=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100*Math.random()|0;return Ea(this,e),(t=Oa(this,Aa(e).call(this))).id="BELLHOP:".concat(n),t.connected=!1,t.isChild=!0,t.connecting=!1,t.debug=!1,t.origin="*",t._sendLater=[],t.iframe=null,t.receive=t.receive.bind(_a(t)),t}return 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&&Va(t,e)}(e,Pa),xa(e,[{key:"receive",value:function(t){if(this.target===t.source)if(this.logDebugMessage(!0,t),"connected"===t.data)this.onConnectionReceived(t.data);else{var e=t.data;if("string"==typeof e)try{e=JSON.parse(e)}catch(t){console.warn("Bellhop error: ",t)}this.connected&&"object"===ka(e)&&e.type&&this.trigger(e)}}},{key:"onConnectionReceived",value:function(t){if(this.connecting=!1,this.connected=!0,!this.isChild){if(!this.target)return;this.target.postMessage(t,this.origin)}for(var e=0;e1&&void 0!==arguments[1]?arguments[1]:"*";this.connecting||(this.disconnect(),this.connecting=!0,t instanceof HTMLIFrameElement&&(this.iframe=t),this.isChild=void 0===t,this.supported=!0,this.isChild&&(this.supported=window!=t),this.origin=e,window.addEventListener("message",this.receive),this.isChild&&(window===this.target?this.trigger("failed"):this.target.postMessage("connected",this.origin)))}},{key:"disconnect",value:function(){this.connected=!1,this.connecting=!1,this.origin=null,this.iframe=null,this.isChild=!0,this._sendLater.length=0,window.removeEventListener("message",this.receive)}},{key:"send",value:function(t){if("string"!=typeof t)throw"The event type must be a string";var e={type:t,data:arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}};this.logDebugMessage(!1,e),this.connecting?this._sendLater.push(e):this.target.postMessage(JSON.stringify(e),this.origin)}},{key:"fetch",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!this.connecting&&!this.connected)throw"No connection, please call connect() first";this.on(t,(function t(r){o&&n.off(r.type,t),e(r)})),this.send(t,r)}},{key:"respond",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this;this.on(t,(function t(o){return La.async((function(i){for(;;)switch(i.prev=i.next){case 0:if(n&&r.off(o,t),"function"!=typeof e){i.next=10;break}return i.t0=r,i.t1=o.type,i.next=6,La.awrap(e());case 6:i.t2=i.sent,i.t0.send.call(i.t0,i.t1,i.t2),i.next=11;break;case 10:r.send(o.type,e);case 11:case"end":return i.stop()}}))}))}},{key:"logDebugMessage",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1?arguments[1]:void 0;this.debug&&"function"==typeof this.debug?this.debug({isChild:this.isChild,received:t,message:e}):this.debug&&console.log("Bellhop Instance (".concat(this.isChild?"Child":"Parent",") ").concat(t?"Receieved":"Sent"),e)}},{key:"destroy",value:function(){Da(Aa(e.prototype),"destroy",this).call(this),this.disconnect(),this._sendLater.length=0}},{key:"target",get:function(){return this.isChild?window.parent:this.iframe.contentWindow}}]),e}(),Ia=function(){function t(e){var n=e.plugins,r=void 0===n?[]:n;Yr(this,t),this.client=new Ta,this.client.hidden=this.client.receive.bind(this.client),this.client.hiddenSend=this.client.send.bind(this.client),this.client.receive=function(t){this.hidden(t)}.bind(this.client),this.client.send=function(t,e){this.hiddenSend(t,e)}.bind(this.client),this.plugins=r}return $r(t,[{key:"setupPlugins",value:function(){for(var t=this,e=[],n=function(n){if(!t.plugins[n].preload)return"continue";e.push(t.plugins[n].preload(t).catch(function(t){this.plugins[n].preloadFailed=!0,console.warn(this.plugins[n].name,"Preload Failed:",t)}.bind(t)))},r=0,o=this.plugins.length;r1&&void 0!==arguments[1]?arguments[1]:{},i=o.plugins,s=o.context,a=void 0===s?{}:s;if(Yr(this,r),(e=n.call(this,{plugins:i})).iframe=t instanceof HTMLIFrameElement?t:document.querySelector(t),null===e.iframe)throw new Error("No iframe was found with the provided selector");return e.loaded=!1,e.loading=!1,e.release=null,e._context=a,e.onLoading=e.onLoading.bind(eo(e)),e.onLoadDone=e.onLoadDone.bind(eo(e)),e.onLoadDone=e.onLoadDone.bind(eo(e)),e.onEndGame=e.onEndGame.bind(eo(e)),e.onLocalError=e.onLocalError.bind(eo(e)),e.initClient(),e.setupPlugins(),e}return $r(r,[{key:"onLoading",value:function(){this.client.trigger("opening")}},{key:"onLoadDone",value:function(){this.loading=!1,this.loaded=!0,this.iframe.classList.remove("loading"),this.client.trigger("opened")}},{key:"onEndGame",value:function(){this.reset()}},{key:"onLocalError",value:function(t){console.error("SpringRoll Container error: ",t,(new Error).stack)}},{key:"reset",value:function(){(this.loaded||this.loading)&&this.client.trigger("closed"),this.loaded=!1,this.loading=!1,this.iframe.setAttribute("src",""),this.iframe.classList.remove("loading")}},{key:"initClient",value:function(){this.client.on("loading",this.onLoading),this.client.on("loaded",this.onLoadDone),this.client.on("loadDone",this.onLoadDone),this.client.on("endGame",this.onEndGame),this.client.on("localError",this.onLocalError),this.client.connect(this.iframe)}},{key:"_onCloseFailed",value:function(){this.reset()}},{key:"_internalOpen",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.singlePlay,r=void 0!==n&&n,o=e.playOptions,i=void 0===o?null:o,s={singlePlay:r,playOptions:i};this.reset(),this.loading=!0,this.initClient();var a=aa.basic();a&&(console.error("ERROR:",a),this.client.trigger("unsupported"));var u=t;if(null!==s.playOptions){var l="playOptions="+encodeURIComponent(JSON.stringify(s.playOptions));u=-1===t.indexOf("?")?"".concat(t,"?").concat(l):"".concat(t,"&").concat(l)}this.iframe.classList.add("loading"),this.iframe.setAttribute("src",u),this.client.respond("singlePlay",r),this.client.respond("playOptions",i),this.client.trigger("open")}},{key:"openPath",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"object"!==qr(e)&&(console.warn("SpringRoll Container.openPath was passed a invalid options parameter. Using default parameters instead"),e={}),this._internalOpen(t,Object.assign({singlePlay:!1,playOptions:{}},e))}},{key:"openRemote",value:(e=Xr(zr().mark((function t(e){var n,r,o,i,s,a,u,l,c,d,f,h=arguments;return zr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=(n=h.length>1&&void 0!==h[1]?h[1]:{}).query,o=void 0===r?"":r,i=n.singlePlay,s=void 0!==i&&i,a=n.playOptions,u=void 0===a?null:a,this.release=null,t.next=4,fetch(e,{headers:{"Content-Type":"application/json"}});case 4:return l=t.sent,t.next=7,l.json();case 7:if((c=t.sent).success){t.next=10;break}throw new Error(c.error);case 10:if(d=c.data,!(f=aa.test(d.capabilities))){t.next=15;break}throw this.client.trigger("unsupported",{error:f}),new Error(f);case 15:this.release=d,this._internalOpen(d.url+o,{singlePlay:s,playOptions:u});case 17:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"destroy",value:function(){this.reset(),this.iframe=null,this.options=null,this.release=null}},{key:"close",value:function(){this.loading||this.loaded?(this.client.trigger("close"),this.client.send("close")):this.reset()}},{key:"context",get:function(){return this._context},set:function(t){"object"===qr(t)?this._context=t:console.error("[SpringRollContainer] Context: new context provided is not an object")}}],[{key:"version",get:function(){return"2.4.3"}}]),r}(),ja=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};Yr(this,t),this._onFocus=e,this._onBlur=n,this.onFocus=function(t){this.enabled&&this._onFocus(t)}.bind(this),this.onBlur=function(t){this.enabled&&this._onBlur(t)}.bind(this),this._enabled=!1,this.enabled=!0,this.onToggle=this.onToggle.bind(this)}return $r(t,[{key:"destroy",value:function(){this.enabled=!1,this.onToggle=null,this.onFocus=null,this.onBlur=null}},{key:"onToggle",value:function(t){this.enabled&&(document.hidden?this.onBlur(t):this.onFocus(t))}},{key:"enabled",get:function(){return this._enabled},set:function(t){this._enabled=t,document.removeEventListener("visibilitychange",this.onToggle,!1),window.removeEventListener("blur",this.onBlur,!1),window.removeEventListener("focus",this.onFocus,!1),window.removeEventListener("pagehide",this.onBlur,!1),window.removeEventListener("pageshow",this.onFocus,!1),window.removeEventListener("visibilitychange",this.onToggle,!1),this._enabled&&(document.addEventListener("visibilitychange",this.onToggle,!1),window.addEventListener("blur",this.onBlur,!1),window.addEventListener("focus",this.onFocus,!1),window.addEventListener("pagehide",this.onBlur,!1),window.addEventListener("pageshow",this.onFocus,!1),window.addEventListener("visibilitychange",this.onToggle,!1))}}]),t}(),Ma=We.includes,Na=N((function(){return!Array(1).includes()}));or({target:"Array",proto:!0,forced:Na},{includes:function(t){return Ma(this,t,arguments.length>1?arguments[1]:void 0)}}),wn("includes");var Ka,Fa="\t\n\v\f\r                 \u2028\u2029\ufeff",Ga=H("".replace),Ua=RegExp("^["+Fa+"]+"),Ha=RegExp("(^|[^"+Fa+"])["+Fa+"]+$"),za=function(t){return function(e){var n=Ks(st(e));return 1&t&&(n=Ga(n,Ua,"")),2&t&&(n=Ga(n,Ha,"$1")),n}},qa={start:za(1),end:za(2),trim:za(3)},Wa=Fn.PROPER,Xa=qa.trim;or({target:"String",proto:!0,forced:(Ka="trim",N((function(){return!!Fa[Ka]()||"​…᠎"!=="​…᠎"[Ka]()||Wa&&Fa[Ka].name!==Ka})))},{trim:function(){return Xa(this)}});var Ya=RegExp.prototype,Ja=Fn.PROPER,$a="toString",Qa=RegExp.prototype[$a],Za=N((function(){return"/a/b"!=Qa.call({source:"a",flags:"b"})})),tu=Ja&&Qa.name!=$a;(Za||tu)&&Un(RegExp.prototype,$a,(function(){var t=me(this),e=Ks(t.source),n=Ks(function(t){var e=t.flags;return void 0!==e||"flags"in Ya||kt(t,"flags")||!Se(Ya,t)?e:we(Fs,t)}(t));return"/"+e+"/"+n}),{unsafe:!0});var eu=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";Yr(this,t),this.db=null,this.dbName=e}return $r(t,[{key:"IDBOpen",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=n?indexedDB.open(t,n):indexedDB.open(t);s.onsuccess=function(t){e.db=t.target.result,e.db.version==n|null==n&&i({result:"Success: IDBOpen",success:!0})},s.onerror=function(){i({result:s.error.toString(),success:!1})},s.onupgradeneeded=function(t){e.db=t.target.result,null!=r&&(r.stores&&r.stores.forEach((function(t){e.db.createObjectStore(t.storeName,t.options)})),null!=r.indexes&&r.indexes.forEach((function(t){s.transaction.objectStore(t.storeName).createIndex(t.indexName,t.keyPath,t.options)}))),null!=o&&(null!=o.indexes&&o.indexes.forEach((function(t){s.transaction.objectStore(t.storeName).deleteIndex(t.indexName)})),o.stores&&o.stores.forEach((function(t){e.db.deleteObjectStore(t.storeName)}))),i({result:"Success: IDBOpen onupgradeneeded ran",success:!0})}}},{key:"IDBDeleteDB",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=null!=e?indexedDB.deleteDatabase(t,e):indexedDB.deleteDatabase(t);r.onsuccess=function(t){n({result:"Success: Database Deleted, returned: "+t.result,success:!0})},r.onerror=function(){n({result:r.error.toString(),success:!1})}}},{key:"IDBAdd",value:function(t,e,n,r){this.db||""==this.dbName||this.IDBOpen(this.dbName);var o=this.db.transaction(t,"readwrite");o.onerror=function(){return r({result:null!=o.error?o.error.toString():"Aborted: No error given, was the record already added?",success:!1})},o.onabort=function(){return r({result:null!=o.error?o.error.toString():"Aborted: No error given, was the record already added?",success:!1})},o.oncomplete=function(){return r({result:"Success: Record Added",success:!0})},o.objectStore(t).add(e,n)}},{key:"IDBUpdate",value:function(t,e,n,r){this.db||""==this.dbName||this.IDBOpen(this.dbName);var o=this.db.transaction(t,"readwrite").objectStore(t).put(n,e);o.onsuccess=function(){r({result:"Success: Record Updated",success:!0})},o.onerror=function(){return r({result:o.error.toString(),success:!1})}}},{key:"IDBRemove",value:function(t,e,n){var r=this;this.db||""==this.dbName||this.IDBOpen(this.dbName);var o=this.db.transaction(t,"readwrite");o.onerror=function(){return n({result:r.db.error.toString(),success:!1})},o.objectStore(t).delete(e),o.oncomplete=function(){return n({result:"Removed Successfully",success:!0})}}},{key:"IDBRead",value:function(t,e,n){var r=this,o=this.db.transaction(t,"readonly"),i=o.objectStore(t);o.onerror=function(){return n({result:r.db.error.toString(),success:!1})};var s=i.get(e);s.onsuccess=function(){n({result:s.result,success:null!=s.result})}}},{key:"IDBGetIndexKeys",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},s=this.db.transaction(t,"readonly"),a=s.objectStore(t);s.onerror=function(){return i({result:n.db.error.toString(),success:!1})},(r&&o?a.index(e,r,o):r?a.index(e,r):a.index(e)).getAllKeys().onsuccess=function(t){i({result:t.result,success:!0})}}},{key:"IDBReadAll",value:function(t,e,n){var r=this.db.transaction(t,"readonly"),o=r.objectStore(t),i=null!=e?o.getAll(null,e):o.getAll();r.onerror=function(){return n({result:r.error.toString(),success:!1})},i.onsuccess=function(){n({result:i.result,success:null!=i.result})}}},{key:"IDBGetVersion",value:function(t,e){var n=window.indexedDB.open(t);n.onerror=function(){e({result:n.error.toString(),success:!1})},n.onsuccess=function(){var t=n.result;e({result:t.version,success:!0})}}},{key:"IDBClose",value:function(t){this.db&&(this.db.close(),t({result:"Success: Closed Database Connection",success:!0}))}}],[{key:"remove",value:function(t){localStorage.removeItem(t),sessionStorage.removeItem(t)}},{key:"write",value:function(t,e){return arguments.length>2&&void 0!==arguments[2]&&arguments[2]?sessionStorage.setItem(t,JSON.stringify("function"==typeof e?e():e)):localStorage.setItem(t,JSON.stringify("function"==typeof e?e():e))}},{key:"read",value:function(t){var e=localStorage.getItem(t)||sessionStorage.getItem(t);if("string"!=typeof e)return e;try{return JSON.parse(e)}catch(t){return e}}}]),t}(),nu=function(){function t(e){Yr(this,t),this.name=e,this.client=null}var e;return $r(t,[{key:"preload",value:(e=Xr(zr().mark((function t(e){var n;return zr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=e.client,this.client=n;case 2:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"start",value:function(){this.client.on("loaded",this.sendAllProperties),this.client.on("loadDone",this.sendAllProperties)}},{key:"init",value:function(t){}},{key:"sendProperty",value:function(t,e){eu.write(t,e),this.client.send(t,e)}},{key:"sendAllProperties",value:function(t){}},{key:"warn",value:function(t){console.warn("[SpringRollContainer] ".concat(this.name,": ").concat(t))}}]),t}(),ru=function(t){Qr(n,nu);var e=ro(n);function n(t){var r;return Yr(this,n),(r=e.call(this,t)).sendMutes=!1,r}return $r(n,[{key:"init",value:function(t){this.sendMutes=!0}},{key:"_disableButton",value:function(t){t instanceof HTMLButtonElement&&(t.classList.remove("enabled"),t.classList.add("disabled"))}},{key:"reset",value:function(){this.sendMutes=!1}},{key:"_setMuteProp",value:function(t,e,n){var r=this;Array.isArray(e)?e.forEach((function(t){return r.changeMutedState(t,n)})):this.changeMutedState(e,n),this.sendProperty(t,n)}},{key:"changeMutedState",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.button?t.button:t;n instanceof HTMLElement&&(n.classList.remove("unmuted"),n.classList.remove("muted"),n.classList.add(e?"muted":"unmuted"))}}]),n}(),ou=Mt("match"),iu=TypeError,su=function(t){if(function(t){var e;return D(t)&&(void 0!==(e=t[ou])?!!e:"RegExp"==W(t))}(t))throw iu("The method doesn't accept regular expressions");return t},au=Mt("match"),uu=H("".indexOf);or({target:"String",proto:!0,forced:!function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[au]=!1,"/./"[t](e)}catch(t){}}return!1}("includes")},{includes:function(t){return!!~uu(Ks(st(this)),Ks(su(t)),arguments.length>1?arguments[1]:void 0)}});var lu=Array,cu=Math.max,du=zn.f,fu="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],hu=function(t){try{return du(t)}catch(t){return function(t,e,n){for(var r=pt(t),o=ze(e,r),i=ze(void 0===n?r:n,r),s=lu(cu(i-o,0)),a=0;o1?arguments[1]:void 0);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!u(this,t)}}),Su(i,n?{get:function(t){var e=u(this,t);return e&&e.value},set:function(t,e){return a(this,0===t?0:t,e)}}:{add:function(t){return a(this,t=0===t?0:t,t)}}),he&&Do(i,"size",{configurable:!0,get:function(){return s(this).size}}),o},setStrong:function(t,e,n){var r=e+" Iterator",o=Bu(e),i=Bu(r);Cr(t,e,(function(t,e){Eu(this,{type:r,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?Dr("keys"==e?n.key:"values"==e?n.value:[n.key,n.value],!1):(t.target=void 0,Dr(void 0,!0))}),n?"entries":"values",!n,!0),To(e)}};!function(t,e,n){var r=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=r?"set":"add",s=x[t],a=s&&s.prototype,u=s,l={},c=function(t){var e=H(a[t]);Un(a,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(o&&!D(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return o&&!D(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(o&&!D(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if(nr(t,!A(s)||!(o||a.forEach&&!N((function(){(new s).entries().next()})))))u=n.getConstructor(e,t,r,i),bu.enable();else if(nr(t,!0)){var d=new u,f=d[i](o?{}:-0,1)!=d,h=N((function(){d.has(1)})),p=Cs((function(t){new s(t)})),v=!o&&N((function(){for(var t=new s,e=5;e--;)t[i](e,e);return!t.has(-0)}));p||((u=e((function(t,e){Ro(t,a);var n=wu(new s,t,u);return ot(e)||Ps(e,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=a,a.constructor=u),(h||v)&&(c("delete"),c("has"),r&&c("get")),(v||f)&&c(i),o&&a.clear&&delete a.clear}l[t]=u,or({global:!0,constructor:!0,forced:u!=s},l),yr(u,t),o||n.setStrong(u,t,r)}("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),xu);var Pu=N((function(){Ze(1)}));or({target:"Object",stat:!0,forced:Pu},{keys:function(t){return Ze(ut(t))}});var Lu=le.map,_u=go("map");or({target:"Array",proto:!0,forced:!_u},{map:function(t){return Lu(this,t,arguments.length>1?arguments[1]:void 0)}});var Ou=In.f,Au=H(Ou),Cu=H([].push),Du=function(t){return function(e){for(var n,r=Ge(e),o=Ze(r),i=o.length,s=0,a=[];i>s;)n=o[s++],he&&!Au(r,n)||Cu(a,t?[n,r[n]]:r[n]);return a}},Vu={entries:Du(!0),values:Du(!1)}.values;or({target:"Object",stat:!0},{values:function(t){return Vu(t)}});var Tu=function(t){Qr(n,nu);var e=ro(n);function n(t){var r,o=t.selector,i=t.controlName,s=t.featureName,a=void 0===s?"captionStyles":s,u=t.defaultValue,l=t.pluginName;return Yr(this,n),(r=e.call(this,l)).controlName=i,r.featureName=a,r.radioElements=document.querySelectorAll(o),r.defaultValue=u,r.radioGroup={},r.radioElements.length<=0?(r.warn("".concat(r.controlName," RadioGroup found no HTMLElements with selector: ").concat(o)),no(r)):(r.radioElements.forEach((function(t){"radio"===t.type?(t.value=t.value.toLowerCase(),r.radioGroup[t.value]=t):r.warn("".concat(r.controlName," was provided a non Radio Button element with selector: ").concat(o))})),r.radioGroup[r.defaultValue]||(r.warn("".concat(r.controlName," RadioGroup for selector: ").concat(o," does not have a radio button with value ").concat(r.defaultValue," to use as default value. Using first element as default")),r.defaultValue=r.radioElements[0].value.toLowerCase()),r.radioGroup[r.defaultValue].checked=!0,r)}return $r(n,[{key:"hasOnly",value:function(t){for(var e in this.radioGroup)if(!t.includes(this.radioGroup[e].value))return this.warn("".concat(this.controlName," radio button value: ").concat(this.radioGroup[e].value," is not an accepted value. Skipping radio group")),!1;return!0}},{key:"hasDuplicateValues",value:function(){return this.values.length!==oo(new Set(this.values)).length}},{key:"enableRadioEvents",value:function(t){if(!(!this.radioGroup.length<=0)){var e=t;for(var n in this.radioGroup)this.radioGroup[n].addEventListener("change",e)}}},{key:"disableRadioEvents",value:function(t){if(!(!this.radioGroup.length<=0))for(var e in this.radioGroup)this.radioGroup[e].removeEventListener("change",t)}},{key:"displayRadios",value:function(t){if(this.radioGroup.length<=0&&t[this.featureName])this.warn("".concat(this.controlName," was not provided a valid input element or selector but '").concat(this.featureName,"' was included as a game feature"));else if(!(this.radioGroup.length<=0||t[this.featureName]))for(var e in this.radioGroup)this.radioGroup[e].style.display="none"}},{key:"resetState",value:function(){this.radioGroup[this.defaultValue].checked=!0}},{key:"length",get:function(){return Object.keys(this.radioGroup).length}},{key:"values",get:function(){return Object.values(this.radioGroup).map((function(t){return t.value}))}}]),n}(),Iu=function(t){Qr(n,nu);var e=ro(n);function n(t,r,o){var i,s=o.supportedValues,a=o.initialValue,u=o.controlName,l=o.featureName,c=o.radioCount;return Yr(this,n),(i=e.call(this,r)).selectors=t?t.split(","):[],i.supportedValues=s,i.initialValue=s.includes(a)?a:s[0],i.controlName=u,i.featureName=l,i.radioCount=c,i.sendAllProperties=i.sendAllProperties.bind(eo(i)),i._currentValue=i.initialValue,i.radioGroups=i.setUpRadios(i.selectors),i.radioGroupsLength=i.radioGroups.length,i}return $r(n,[{key:"setUpRadios",value:function(t){var e=this,n=[];return t.forEach((function(t){var r=new Tu({selector:t.trim(),controlName:e.controlName,defaultValue:e.initialValue,pluginName:e.name,featureName:e.featureName});r.length===e.radioCount?r.hasOnly(e.supportedValues)&&(r.hasDuplicateValues()?e.warn("Duplicate radio button values detected (values: ".concat(r.values," ). Skipping radio group")):n.push(r)):e.warn('Selector "'.concat(t,'" did not find exactly ').concat(e.radioCount," radio buttons for ").concat(e.controlName,". Skipping selector"))})),n}},{key:"start",value:function(){this.client.on("loaded",this.sendAllProperties),this.client.on("loadDone",this.sendAllProperties)}},{key:"sendAllProperties",value:function(){this.sendProperty(this.featureName,this.property)}},{key:"currentValue",get:function(){return this._currentValue},set:function(t){if(this.supportedValues.includes(t)){this._currentValue=t;for(var e=0,n=this.radioGroups.length;e2)if(l=Ku(l),43===(e=qu(l,0))||45===e){if(88===(n=qu(l,2))||120===n)return NaN}else if(48===e){switch(qu(l,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+l}for(s=(i=zu(l,2)).length,a=0;ao)return NaN;return parseInt(i,r)}return+l},Yu=nr(Fu,!Gu(" 0o1")||!Gu("0b1")||Gu("+0x1")),Ju=function(t){return Se(Uu,t)&&N((function(){Ru(t)}))},$u=function(t){var e=arguments.length<1?0:Gu(Wu(t));return Ju(this)?wu(Object(e),this,$u):e};$u.prototype=Uu,Yu&&(Uu.constructor=$u),or({global:!0,constructor:!0,wrap:!0,forced:Yu},{Number:$u});Yu&&function(t,e){for(var n,r=he?ju(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;r.length>o;o++)kt(e,n=r[o])&&!kt(t,n)&&Nu(t,n,Mu(e,n))}(Hr[Fu],Gu);var Qu=function(){function t(e){var n=e.slider,r=e.control,o=e.min,i=void 0===o?0:o,s=e.max,a=void 0===s?1:s,u=e.step,l=void 0===u?.1:u,c=e.defaultValue,d=void 0===c?1:c;Yr(this,t),this.min=i,this.max=a,this.step=l,this.sliderValue=d,this.control=r,this.slider=this.setUpSlider(n,r)}return $r(t,[{key:"setUpSlider",value:function(t,e){if("string"==typeof t&&(t=document.querySelector(t)),!t||"range"!==t.type)return null;var n=eu.read(e);return t.min=this.min,t.max=this.max,t.step=this.step,(n||0===n)&&n.toString().trim().length>0?(t.value=n,this.sliderValue=n):t.value=this.sliderValue,t}},{key:"sliderRange",value:function(t){return tthis.max?this.max:t}},{key:"enableSliderEvents",value:function(t){if(this.slider){var e=t;this.slider.addEventListener("change",e),this.slider.addEventListener("input",e)}}},{key:"disableSliderEvents",value:function(t){if(this.slider){var e=t;this.slider.removeEventListener("change",e),this.slider.removeEventListener("input",e)}}},{key:"displaySlider",value:function(t){!this.slider&&t[this.control]&&console.warn("".concat(this.control," was not provided a valid input element or selector but was included as a game feature")),this.slider&&(this.slider.style.display=t[this.control]?"":"none")}},{key:"dispatchEvent",value:function(t){this.slider.dispatchEvent(t)}},{key:"value",get:function(){return this.slider.value},set:function(t){this.slider.value=t}}]),t}(),Zu=function(){function t(e){var n=e.button,r=e.onClick,o=e.channel;Yr(this,t),this.button=n instanceof HTMLElement?n:document.querySelector(n),this.onClick=r,this.channel=o,this.button&&this.button.addEventListener("click",r)}return $r(t,[{key:"displayButton",value:function(t){this.button instanceof HTMLElement&&(this.button.style.display=t[this.channel]||"pause"===this.channel||"hints"===this.channel?"":"none")}},{key:"enableButton",value:function(){this.button&&this.button.classList.remove("disabled")}},{key:"addClass",value:function(t){this.button.className=this.button.className?this.button.className+" ".concat(t):" ".concat(t)}}]),t}(),tl=function(t){Qr(n,nu);var e=ro(n);function n(t,r,o){var i,s=o.defaultValue,a=void 0===s?"0.5":s,u=o.minValue,l=void 0===u?"0":u,c=o.maxValue,d=void 0===c?"1":c,f=o.featureName;return Yr(this,n),(i=e.call(this,r)).featureName=f,i.minValue=l,i.defaultValue=a,i.maxValue=d,i._currentValue=a,i.sliders=i.setUpSliders(t),i.slidersLength=i.sliders.length,i.sendAllProperties=i.sendAllProperties.bind(eo(i)),0>=i.slidersLength?(i.warn("Plugin was not provided any valid HTML Elements"),no(i)):i}return $r(n,[{key:"setUpSliders",value:function(t){var e=this,n=[];return t instanceof HTMLElement?n.push(new Qu({slider:t,control:this.featureName,defaultValue:this.defaultValue,minValue:this.minValue,maxValue:this.maxValue})):document.querySelectorAll(t).forEach((function(t){n.push(new Qu({slider:t,control:e.featureName,defaultValue:e.defaultValue,minValue:e.minValue,maxValue:e.maxValue}))})),n}},{key:"init",value:function(){this.client.on("features",function(t){if(t.data)for(var e=0;e3&&void 0!==arguments[3]?arguments[3]:{},a=s.defaultFontSize,u=void 0===a?"medium":a,l=s.defaultColor,c=void 0===l?"default":l,d=s.defaultAlignment,f=void 0===d?"top":d;if(Yr(this,n),(i=e.call(this,"Caption-Button-Plugin")).sendAllProperties=i.sendAllProperties.bind(eo(i)),i.captionsStyles=Object.assign({},el,eu.read(n.captionStyleKey)||{}),i.fontSizeSelectors=t?t.split(","):[],i.colorSelectors=r?r.split(","):[],i.alignmentSelectors=o?o.split(","):[],i.defaultFontSize=ol.includes(u)?u:ol[0],i.defaultColor=il.includes(c)?c:il[0],i.defaultAlignment=sl.includes(f)?f:sl[0],i.fontSizeRadios=[],i.colorRadios=[],i.alignmentRadios=[],i.fontSizeRadios=i.setUpFontSizeRadios(i.fontSizeSelectors),i.colorRadios=i.setUpColorRadios(i.colorSelectors),i.alignmentRadios=i.setUpAlignmentRadios(i.alignmentSelectors),i._captionsMuted=!1,i.alignmentRadiosLength=i.alignmentRadios.length,i.fontSizeRadiosLength=i.fontSizeRadios.length,i.colorRadiosLength=i.colorRadios.length,0>=i.alignmentRadiosLength+i.fontSizeRadiosLength+i.colorRadiosLength)return i.warn("Plugin was not provided any input elements"),no(i);for(var h=0;h0&&void 0!==arguments[0]?arguments[0]:el,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";"object"===qr(t)?Object.assign(this.captionsStyles,t):"string"==typeof t&&(this.captionsStyles[t]=e),eu.write(n.captionStyleKey,this.captionsStyles),this.client&&this.client.send(n.captionStyleKey,this.captionsStyles)}},{key:"radios",get:function(){return this.colorRadios.concat(this.alignmentRadios).concat(this.fontSizeRadios)}}],[{key:"captionStyleKey",get:function(){return"captionsStyles"}}]),n}(),ul=function(t){Qr(n,ru);var e=ro(n);function n(t){var r;return Yr(this,n),(r=e.call(this,"Caption-Button-Plugin")).sendAllProperties=r.sendAllProperties.bind(eo(r)),r._captionsButtons=[],t instanceof HTMLElement?r._captionsButtons[0]=new Zu({button:t,onClick:r.captionsButtonClick.bind(eo(r)),channel:"captions"}):document.querySelectorAll(t).forEach((function(t){r._captionsButtons.push(new Zu({button:t,onClick:r.captionsButtonClick.bind(eo(r)),channel:"captions"}))})),r._captionsMuted=!1,r.captionsButtonLength=r._captionsButtons.length,0>=r.captionsButtonLength?(r.warn("Plugin was not provided any valid button or input elements"),no(r)):r}return $r(n,[{key:"init",value:function(){this.client.on("features",function(t){for(var e=0;e1&&void 0!==arguments[1])||arguments[1];Yr(this,n),(r=e.call(this,"Pause-Button-plugin"))._manageOwnVisibility=o,r._appBlurred=!1,r._containerBlurred=!1,r._focusTimer=null,r._isManualPause=!1,r._keepFocus=!1,r._paused=!1,r.iframe=null,r.focusApp=r.focusApp.bind(eo(r)),r.manageFocus=r.manageFocus.bind(eo(r)),r.onKeepFocus=r.onKeepFocus.bind(eo(r)),r.onFocus=r.onFocus.bind(eo(r));var i=r.onPauseToggle.bind(eo(r));return r.pauseDisabled=!1,r._pauseButton=[],r.pageVisibility=new ja(r.onContainerFocus.bind(eo(r)),r.onContainerBlur.bind(eo(r))),r.pageVisibility.enabled=r.manageOwnVisibility,t instanceof HTMLElement?r._pauseButton[0]=new Zu({button:t,onClick:i,channel:n.pauseKey}):document.querySelectorAll(t).forEach((function(t){r._pauseButton.push(new Zu({button:t,onClick:i,channel:n.pauseKey}))})),r}return $r(n,[{key:"pause",get:function(){return this._paused},set:function(t){if(t=!!t,!this.pauseDisabled){this._paused=t,this.client.send(n.pauseKey,t),this.client.trigger(t?"paused":"resumed",{paused:t});for(var e=0,r=this._pauseButton.length;e0&&void 0!==arguments[0]?arguments[0]:{},o=r.soundButtons,i=r.musicButtons,s=r.sfxButtons,a=r.voButtons,u=r.soundSliders,l=r.musicSliders,c=r.sfxSliders,d=r.voSliders;Yr(this,n),t=e.call(this,"Sound-Button-Plugin");var f=eu.read(n.soundMutedKey);if(t.sendAllProperties=t.sendAllProperties.bind(eo(t)),t._soundMuted=f||!1,t._musicMuted=!1,t._voMuted=!1,t._sfxMuted=!1,t.soundVolume=1,t.musicVolume=1,t.sfxVolume=1,t.voVolume=1,t.soundSliders=[],t.musicSliders=[],t.sfxSliders=[],t.voSliders=[],t.soundButtons=[],t.musicButtons=[],t.sfxButtons=[],t.voButtons=[],u instanceof HTMLElement?t.soundSliders[0]=new Qu({slider:u,control:n.soundVolumeKey,defaultValue:t.soundVolume}):document.querySelectorAll(u).forEach((function(e){var r=new Qu({slider:e,control:n.soundVolumeKey,defaultValue:t.soundVolume});r.slider&&t.soundSliders.push(r)})),l instanceof HTMLElement?t.musicSliders[0]=new Qu({slider:l,control:n.musicVolumeKey,defaultValue:t.musicVolume}):document.querySelectorAll(l).forEach((function(e){var r=new Qu({slider:e,control:n.musicVolumeKey,defaultValue:t.musicVolume});r.slider&&t.musicSliders.push(r)})),c instanceof HTMLElement?t.sfxSliders[0]=new Qu({slider:c,control:n.sfxVolumeKey,defaultValue:t.sfxVolume}):document.querySelectorAll(c).forEach((function(e){var r=new Qu({slider:e,control:n.sfxVolumeKey,defaultValue:t.sfxVolume});r.slider&&t.sfxSliders.push(r)})),d instanceof HTMLElement?t.voSliders[0]=new Qu({slider:d,control:n.voVolumeKey,defaultValue:t.voVolume}):document.querySelectorAll(d).forEach((function(e){var r=new Qu({slider:e,control:n.voVolumeKey,defaultValue:t.voVolume});r.slider&&t.voSliders.push(r)})),o instanceof HTMLElement?t.soundButtons[0]=new Zu({button:o,onClick:t.onSoundToggle.bind(eo(t)),channel:n.soundKey}):document.querySelectorAll(o).forEach((function(e){t.soundButtons.push(new Zu({button:e,onClick:t.onSoundToggle.bind(eo(t)),channel:n.soundKey}))})),i instanceof HTMLElement?t.musicButtons[0]=new Zu({button:i,onClick:t.onMusicToggle.bind(eo(t)),channel:"music"}):document.querySelectorAll(i).forEach((function(e){t.musicButtons.push(new Zu({button:e,onClick:t.onMusicToggle.bind(eo(t)),channel:"music"}))})),s instanceof HTMLElement?t.sfxButtons[0]=new Zu({button:s,onClick:t.onSFXToggle.bind(eo(t)),channel:"sfx"}):document.querySelectorAll(s).forEach((function(e){t.sfxButtons.push(new Zu({button:e,onClick:t.onSFXToggle.bind(eo(t)),channel:"sfx"}))})),a instanceof HTMLElement?t.voButtons[0]=new Zu({button:a,onClick:t.onVOToggle.bind(eo(t)),channel:"vo"}):document.querySelectorAll(a).forEach((function(e){t.voButtons.push(new Zu({button:e,onClick:t.onVOToggle.bind(eo(t)),channel:"vo"}))})),t.soundSlidersLength=t.soundSliders.length,t.musicSlidersLength=t.musicSliders.length,t.sfxSlidersLength=t.sfxSliders.length,t.voSlidersLength=t.voSliders.length,t.soundButtonsLength=t.soundButtons.length,t.musicButtonsLength=t.musicButtons.length,t.sfxButtonsLength=t.sfxButtons.length,t.voButtonsLength=t.voButtons.length,0>=t.soundSlidersLength+t.musicSlidersLength+t.sfxSlidersLength+t.voSlidersLength+t.soundButtonsLength+t.musicButtonsLength+t.sfxButtonsLength+t.voButtonsLength)return t.warn("Plugin was not provided any valid HTML Elements"),no(t);for(var h=0;h1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;this.savedData=new eu,this.savedData.IDBOpen(t,e,n,r,o)}},{key:"IDBAdd",value:function(t,e,n,r){this.savedData.IDBAdd(t,e,n,r)}},{key:"IDBUpdate",value:function(t,e,n,r){this.savedData.IDBUpdate(t,e,n,r)}},{key:"IDBRemove",value:function(t,e,n){this.savedData.IDBRemove(t,e,n)}},{key:"IDBRead",value:function(t,e,n){this.savedData.IDBRead(t,e,n)}},{key:"IDBReadAll",value:function(t,e,n){this.savedData.IDBReadAll(t,e,n)}},{key:"IDBGetVersion",value:function(t,e){new eu(t).IDBGetVersion(t,e)}},{key:"IDBClose",value:function(t){this.savedData.IDBClose(t)}},{key:"IDBDeleteDB",value:function(t,e,n){new eu(t).IDBDeleteDB(t,e,n)}}],[{key:"remove",value:function(t,e){eu.remove(t),e()}},{key:"write",value:function(t,e,n){eu.write(t,e),n()}},{key:"read",value:function(t,e){e(eu.read(t))}}]),t}(),hl=function(t){Qr(n,nu);var e=ro(n);function n(){var t;return Yr(this,n),(t=e.call(this,"UserData-Plugin")).onUserDataRemove=t.onUserDataRemove.bind(eo(t)),t.onUserDataRead=t.onUserDataRead.bind(eo(t)),t.onUserDataWrite=t.onUserDataWrite.bind(eo(t)),t.onIDBAdd=t.onIDBAdd.bind(eo(t)),t.onIDBOpen=t.onIDBOpen.bind(eo(t)),t.onIDBRead=t.onIDBRead.bind(eo(t)),t.onIDBReadAll=t.onIDBReadAll.bind(eo(t)),t.onIDBRemove=t.onIDBRemove.bind(eo(t)),t.onIDBUpdate=t.onIDBUpdate.bind(eo(t)),t.onIDBUpdate=t.onIDBUpdate.bind(eo(t)),t.onIDBClose=t.onIDBClose.bind(eo(t)),t.IDBReadAll=t.onIDBReadAll.bind(eo(t)),t.onIDBGetVersion=t.onIDBGetVersion.bind(eo(t)),t.onIDBDeleteDB=t.onIDBDeleteDB.bind(eo(t)),t.savedDataHandler=null,t}return $r(n,[{key:"init",value:function(){this.client.on("userDataRemove",this.onUserDataRemove),this.client.on("userDataRead",this.onUserDataRead),this.client.on("userDataWrite",this.onUserDataWrite),this.client.on("IDBOpen",this.onIDBOpen),this.client.on("IDBRead",this.onIDBRead),this.client.on("IDBReadAll",this.onIDBReadAll),this.client.on("IDBAdd",this.onIDBAdd),this.client.on("IDBRemove",this.onIDBRemove),this.client.on("IDBUpdate",this.onIDBUpdate),this.client.on("IDBClose",this.onIDBClose),this.client.on("IDBGetVersion",this.onIDBGetVersion),this.client.on("IDBDeleteDB",this.onIDBDeleteDB)}},{key:"onUserDataRemove",value:function(t){var e=this,n=t.data,r=t.type;fl.remove(n,(function(){e.client.send(r)}))}},{key:"onUserDataRead",value:function(t){var e=this,n=t.data,r=t.type;fl.read(n,(function(t){return e.client.send(r,t)}))}},{key:"onUserDataWrite",value:function(t){var e=this,n=t.type,r=t.data,o=r.name,i=r.value;fl.write(o,i,(function(){return e.client.send(n)}))}},{key:"onIDBOpen",value:function(t){var e=this,n=t.type,r=t.data,o=r.dbName,i=r.dbVersion,s=void 0===i?null:i,a=r.additions,u=void 0===a?{}:a,l=r.deletions,c=void 0===l?{}:l;this.savedDataHandler=new fl,this.savedDataHandler.IDBOpen(o,s,u,c,(function(t){return e.client.send(n,t)}))}},{key:"onIDBAdd",value:function(t){var e=this,n=t.type,r=t.data,o=r.storeName,i=r.value,s=r.key;this.savedDataHandler.IDBAdd(o,i,s,(function(t){return e.client.send(n,t)}))}},{key:"onIDBUpdate",value:function(t){var e=this,n=t.type,r=t.data,o=r.storeName,i=r.key,s=r.value;this.savedDataHandler.IDBUpdate(o,i,s,(function(t){return e.client.send(n,t)}))}},{key:"onIDBRemove",value:function(t){var e=this,n=t.type,r=t.data,o=r.storeName,i=r.key;this.savedDataHandler.IDBRemove(o,i,(function(t){return e.client.send(n,t)}))}},{key:"onIDBRead",value:function(t){var e=this,n=t.type,r=t.data,o=r.storeName,i=r.key;this.savedDataHandler.IDBRead(o,i,(function(t){return e.client.send(n,t)}))}},{key:"onIDBReadAll",value:function(t){var e=this,n=t.type,r=t.data,o=r.storeName,i=r.count;this.savedDataHandler.IDBReadAll(o,i,(function(t){return e.client.send(n,t)}))}},{key:"onIDBGetVersion",value:function(t){var e=this,n=t.type,r=t.data.dbName;(new fl).IDBGetVersion(r,(function(t){return e.client.send(n,t)}))}},{key:"onIDBClose",value:function(t){var e=this,n=t.type;this.savedDataHandler.IDBClose((function(t){return e.client.send(n,t)}))}},{key:"onIDBDeleteDB",value:function(t){var e=this,n=t.type,r=t.data,o=r.dbName,i=r.options;(new fl).IDBDeleteDB(o,i,(function(t){return e.client.send(n,t)}))}}]),n}(),pl=function(t){Qr(n,tl);var e=ro(n);function n(t){var r,o=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).defaultPointerSize,i=void 0===o?.5:o;Yr(this,n),r=e.call(this,t,"UISize-Pointer-Plugin",{defaultValue:i,featureName:n.pointerSizeKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultButtonSize,i=void 0===o?.5:o;Yr(this,n),r=e.call(this,t,"UISize-Button-Plugin",{defaultValue:i,featureName:n.buttonSizeKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultSensitivity,i=void 0===o?.5:o;Yr(this,n),(r=e.call(this,t,"Control-Sensitivity-Plugin",{defaultValue:i,featureName:n.controlSensitivityKey})).sendAllProperties=r.sendAllProperties.bind(eo(r));for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).customClassName,i=void 0===o?"springrollContainerKeyBinding__button":o;return Yr(this,n),(r=e.call(this,"Keyboard-Map-Plugin")).sendAllProperties=r.sendAllProperties.bind(eo(r)),r.bindKey=r.bindKey.bind(eo(r)),r.onKeyButtonClick=r.onKeyButtonClick.bind(eo(r)),r.className=i,r.keyContainers=t instanceof HTMLElement?[t]:document.querySelectorAll(t),r.keyBindings={},r.buttons=[],r.activekeyButton,r.sendAfterFetch=!1,r.canEmit=!1,r.keyContainersLength=r.keyContainers.length,r.keyContainersLength<=0?(r.warn("plugin was not provided any valid key binding container elements"),no(r)):r}return $r(n,[{key:"onKeyButtonClick",value:function(t){for(var e=0,n=this.buttons.length;e1&&void 0!==arguments[1]?arguments[1]:{}).defaultValue,i=void 0===o?0:o;Yr(this,n),r=e.call(this,t,"Layer-Plugin",{defaultValue:i,featureName:n.layersSliderKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultValue,i=void 0===o?bl[0]:o;Yr(this,n),(r=e.call(this,t,"HUD-Layout-Plugin",{supportedValues:bl,initialValue:i,controlName:"Hud Selector",featureName:n.hudPositionKey,radioCount:bl.length})).sendAllProperties=r.sendAllProperties.bind(eo(r)),r.sendAfterFetch=!1,r.canEmit=!1,r.positions=[],r.radioGroupsLength<=0&&r.warn("Plugin was not provided any valid HTML elements");for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultValue,i=void 0===o?Sl[0]:o;if(Yr(this,n),(r=e.call(this,t,"Color-Filter-Plugin",{supportedValues:Sl,initialValue:i,controlName:"Color Vision Selector",featureName:n.colorVisionKey,radioCount:Sl.length})).sendAllProperties=r.sendAllProperties.bind(eo(r)),r.sendAfterFetch=!1,r.canEmit=!1,r.colors=[],r.radioGroupsLength<=0)return r.warn("Plugin was not provided any valid HTML elements"),no(r);for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultHitAreaScale,i=void 0===o?.5:o;Yr(this,n),r=e.call(this,t,"Hit-Area-Scale-Plugin",{defaultValue:i,featureName:n.hitAreaScaleKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultDragThresholdScale,i=void 0===o?.5:o;Yr(this,n),r=e.call(this,t,"Drag-Threshold-Scale-Plugin",{defaultValue:i,featureName:n.dragThresholdScaleKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultHealth,i=void 0===o?.5:o;Yr(this,n),r=e.call(this,t,"Health-Scale-Plugin",{defaultValue:i,featureName:n.healthKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultObjectCount,i=void 0===o?.5:o;Yr(this,n),r=e.call(this,t,"Object-Count-Plugin",{defaultValue:i,featureName:n.objectCountKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultCompletionPercentage,i=void 0===o?.5:o;Yr(this,n),r=e.call(this,t,"Completion-Percentage-Plugin",{defaultValue:i,featureName:n.completionPercentageKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultSpeedScale,i=void 0===o?.5:o;Yr(this,n),r=e.call(this,t,"Speed-Scale-Plugin",{defaultValue:i,featureName:n.speedScaleKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultTimersScale,i=void 0===o?.5:o;Yr(this,n),r=e.call(this,t,"Timers-Scale-Plugin",{defaultValue:i,featureName:n.timersScaleKey});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).defaultInputCount,i=void 0===o?.5:o;Yr(this,n),r=e.call(this,t,"Input-Count-Plugin",{defaultValue:i,featureName:n.inputCountKey});for(var s=0;s -1; + }; +} +function normalizeName(name) { + if (typeof name !== 'string') { + name = String(name); + } + if (/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(name) || name === '') { + throw new TypeError('Invalid character in header field name: "' + name + '"'); + } + return name.toLowerCase(); +} +function normalizeValue(value) { + if (typeof value !== 'string') { + value = String(value); + } + return value; +} + +// Build a destructive iterator for the value list +function iteratorFor(items) { + var iterator = { + next: function () { + var value = items.shift(); + return { + done: value === undefined, + value: value + }; + } + }; + if (support.iterable) { + iterator[Symbol.iterator] = function () { + return iterator; + }; + } + return iterator; +} +function Headers(headers) { + this.map = {}; + if (headers instanceof Headers) { + headers.forEach(function (value, name) { + this.append(name, value); + }, this); + } else if (Array.isArray(headers)) { + headers.forEach(function (header) { + this.append(header[0], header[1]); + }, this); + } else if (headers) { + Object.getOwnPropertyNames(headers).forEach(function (name) { + this.append(name, headers[name]); + }, this); + } +} +Headers.prototype.append = function (name, value) { + name = normalizeName(name); + value = normalizeValue(value); + var oldValue = this.map[name]; + this.map[name] = oldValue ? oldValue + ', ' + value : value; +}; +Headers.prototype['delete'] = function (name) { + delete this.map[normalizeName(name)]; +}; +Headers.prototype.get = function (name) { + name = normalizeName(name); + return this.has(name) ? this.map[name] : null; +}; +Headers.prototype.has = function (name) { + return this.map.hasOwnProperty(normalizeName(name)); +}; +Headers.prototype.set = function (name, value) { + this.map[normalizeName(name)] = normalizeValue(value); +}; +Headers.prototype.forEach = function (callback, thisArg) { + for (var name in this.map) { + if (this.map.hasOwnProperty(name)) { + callback.call(thisArg, this.map[name], name, this); + } + } +}; +Headers.prototype.keys = function () { + var items = []; + this.forEach(function (value, name) { + items.push(name); + }); + return iteratorFor(items); +}; +Headers.prototype.values = function () { + var items = []; + this.forEach(function (value) { + items.push(value); + }); + return iteratorFor(items); +}; +Headers.prototype.entries = function () { + var items = []; + this.forEach(function (value, name) { + items.push([name, value]); + }); + return iteratorFor(items); +}; +if (support.iterable) { + Headers.prototype[Symbol.iterator] = Headers.prototype.entries; +} +function consumed(body) { + if (body.bodyUsed) { + return Promise.reject(new TypeError('Already read')); + } + body.bodyUsed = true; +} +function fileReaderReady(reader) { + return new Promise(function (resolve, reject) { + reader.onload = function () { + resolve(reader.result); + }; + reader.onerror = function () { + reject(reader.error); + }; + }); +} +function readBlobAsArrayBuffer(blob) { + var reader = new FileReader(); + var promise = fileReaderReady(reader); + reader.readAsArrayBuffer(blob); + return promise; +} +function readBlobAsText(blob) { + var reader = new FileReader(); + var promise = fileReaderReady(reader); + reader.readAsText(blob); + return promise; +} +function readArrayBufferAsText(buf) { + var view = new Uint8Array(buf); + var chars = new Array(view.length); + for (var i = 0; i < view.length; i++) { + chars[i] = String.fromCharCode(view[i]); + } + return chars.join(''); +} +function bufferClone(buf) { + if (buf.slice) { + return buf.slice(0); + } else { + var view = new Uint8Array(buf.byteLength); + view.set(new Uint8Array(buf)); + return view.buffer; + } +} +function Body() { + this.bodyUsed = false; + this._initBody = function (body) { + /* + fetch-mock wraps the Response object in an ES6 Proxy to + provide useful test harness features such as flush. However, on + ES5 browsers without fetch or Proxy support pollyfills must be used; + the proxy-pollyfill is unable to proxy an attribute unless it exists + on the object before the Proxy is created. This change ensures + Response.bodyUsed exists on the instance, while maintaining the + semantic of setting Request.bodyUsed in the constructor before + _initBody is called. + */ + this.bodyUsed = this.bodyUsed; + this._bodyInit = body; + if (!body) { + this._bodyText = ''; + } else if (typeof body === 'string') { + this._bodyText = body; + } else if (support.blob && Blob.prototype.isPrototypeOf(body)) { + this._bodyBlob = body; + } else if (support.formData && FormData.prototype.isPrototypeOf(body)) { + this._bodyFormData = body; + } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) { + this._bodyText = body.toString(); + } else if (support.arrayBuffer && support.blob && isDataView(body)) { + this._bodyArrayBuffer = bufferClone(body.buffer); + // IE 10-11 can't handle a DataView body. + this._bodyInit = new Blob([this._bodyArrayBuffer]); + } else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) { + this._bodyArrayBuffer = bufferClone(body); + } else { + this._bodyText = body = Object.prototype.toString.call(body); + } + if (!this.headers.get('content-type')) { + if (typeof body === 'string') { + this.headers.set('content-type', 'text/plain;charset=UTF-8'); + } else if (this._bodyBlob && this._bodyBlob.type) { + this.headers.set('content-type', this._bodyBlob.type); + } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) { + this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8'); + } + } + }; + if (support.blob) { + this.blob = function () { + var rejected = consumed(this); + if (rejected) { + return rejected; + } + if (this._bodyBlob) { + return Promise.resolve(this._bodyBlob); + } else if (this._bodyArrayBuffer) { + return Promise.resolve(new Blob([this._bodyArrayBuffer])); + } else if (this._bodyFormData) { + throw new Error('could not read FormData body as blob'); + } else { + return Promise.resolve(new Blob([this._bodyText])); + } + }; + this.arrayBuffer = function () { + if (this._bodyArrayBuffer) { + var isConsumed = consumed(this); + if (isConsumed) { + return isConsumed; + } + if (ArrayBuffer.isView(this._bodyArrayBuffer)) { + return Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset, this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength)); + } else { + return Promise.resolve(this._bodyArrayBuffer); + } + } else { + return this.blob().then(readBlobAsArrayBuffer); + } + }; + } + this.text = function () { + var rejected = consumed(this); + if (rejected) { + return rejected; + } + if (this._bodyBlob) { + return readBlobAsText(this._bodyBlob); + } else if (this._bodyArrayBuffer) { + return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer)); + } else if (this._bodyFormData) { + throw new Error('could not read FormData body as text'); + } else { + return Promise.resolve(this._bodyText); + } + }; + if (support.formData) { + this.formData = function () { + return this.text().then(decode); + }; + } + this.json = function () { + return this.text().then(JSON.parse); + }; + return this; +} + +// HTTP methods whose capitalization should be normalized +var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT']; +function normalizeMethod(method) { + var upcased = method.toUpperCase(); + return methods.indexOf(upcased) > -1 ? upcased : method; +} +function Request(input, options) { + if (!(this instanceof Request)) { + throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.'); + } + options = options || {}; + var body = options.body; + if (input instanceof Request) { + if (input.bodyUsed) { + throw new TypeError('Already read'); + } + this.url = input.url; + this.credentials = input.credentials; + if (!options.headers) { + this.headers = new Headers(input.headers); + } + this.method = input.method; + this.mode = input.mode; + this.signal = input.signal; + if (!body && input._bodyInit != null) { + body = input._bodyInit; + input.bodyUsed = true; + } + } else { + this.url = String(input); + } + this.credentials = options.credentials || this.credentials || 'same-origin'; + if (options.headers || !this.headers) { + this.headers = new Headers(options.headers); + } + this.method = normalizeMethod(options.method || this.method || 'GET'); + this.mode = options.mode || this.mode || null; + this.signal = options.signal || this.signal; + this.referrer = null; + if ((this.method === 'GET' || this.method === 'HEAD') && body) { + throw new TypeError('Body not allowed for GET or HEAD requests'); + } + this._initBody(body); + if (this.method === 'GET' || this.method === 'HEAD') { + if (options.cache === 'no-store' || options.cache === 'no-cache') { + // Search for a '_' parameter in the query string + var reParamSearch = /([?&])_=[^&]*/; + if (reParamSearch.test(this.url)) { + // If it already exists then set the value with the current time + this.url = this.url.replace(reParamSearch, '$1_=' + new Date().getTime()); + } else { + // Otherwise add a new '_' parameter to the end with the current time + var reQueryString = /\?/; + this.url += (reQueryString.test(this.url) ? '&' : '?') + '_=' + new Date().getTime(); + } + } + } +} +Request.prototype.clone = function () { + return new Request(this, { + body: this._bodyInit + }); +}; +function decode(body) { + var form = new FormData(); + body.trim().split('&').forEach(function (bytes) { + if (bytes) { + var split = bytes.split('='); + var name = split.shift().replace(/\+/g, ' '); + var value = split.join('=').replace(/\+/g, ' '); + form.append(decodeURIComponent(name), decodeURIComponent(value)); + } + }); + return form; +} +function parseHeaders(rawHeaders) { + var headers = new Headers(); + // Replace instances of \r\n and \n followed by at least one space or horizontal tab with a space + // https://tools.ietf.org/html/rfc7230#section-3.2 + var preProcessedHeaders = rawHeaders.replace(/\r?\n[\t ]+/g, ' '); + // Avoiding split via regex to work around a common IE11 bug with the core-js 3.6.0 regex polyfill + // https://github.com/github/fetch/issues/748 + // https://github.com/zloirock/core-js/issues/751 + preProcessedHeaders.split('\r').map(function (header) { + return header.indexOf('\n') === 0 ? header.substr(1, header.length) : header; + }).forEach(function (line) { + var parts = line.split(':'); + var key = parts.shift().trim(); + if (key) { + var value = parts.join(':').trim(); + headers.append(key, value); + } + }); + return headers; +} +Body.call(Request.prototype); +function Response(bodyInit, options) { + if (!(this instanceof Response)) { + throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.'); + } + if (!options) { + options = {}; + } + this.type = 'default'; + this.status = options.status === undefined ? 200 : options.status; + this.ok = this.status >= 200 && this.status < 300; + this.statusText = options.statusText === undefined ? '' : '' + options.statusText; + this.headers = new Headers(options.headers); + this.url = options.url || ''; + this._initBody(bodyInit); +} +Body.call(Response.prototype); +Response.prototype.clone = function () { + return new Response(this._bodyInit, { + status: this.status, + statusText: this.statusText, + headers: new Headers(this.headers), + url: this.url + }); +}; +Response.error = function () { + var response = new Response(null, { + status: 0, + statusText: '' + }); + response.type = 'error'; + return response; +}; +var redirectStatuses = [301, 302, 303, 307, 308]; +Response.redirect = function (url, status) { + if (redirectStatuses.indexOf(status) === -1) { + throw new RangeError('Invalid status code'); + } + return new Response(null, { + status: status, + headers: { + location: url + } + }); +}; +var DOMException = global$o.DOMException; +try { + new DOMException(); +} catch (err) { + DOMException = function (message, name) { + this.message = message; + this.name = name; + var error = Error(message); + this.stack = error.stack; + }; + DOMException.prototype = Object.create(Error.prototype); + DOMException.prototype.constructor = DOMException; +} +function fetch$1(input, init) { + return new Promise(function (resolve, reject) { + var request = new Request(input, init); + if (request.signal && request.signal.aborted) { + return reject(new DOMException('Aborted', 'AbortError')); + } + var xhr = new XMLHttpRequest(); + function abortXhr() { + xhr.abort(); + } + xhr.onload = function () { + var options = { + status: xhr.status, + statusText: xhr.statusText, + headers: parseHeaders(xhr.getAllResponseHeaders() || '') + }; + options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL'); + var body = 'response' in xhr ? xhr.response : xhr.responseText; + setTimeout(function () { + resolve(new Response(body, options)); + }, 0); + }; + xhr.onerror = function () { + setTimeout(function () { + reject(new TypeError('Network request failed')); + }, 0); + }; + xhr.ontimeout = function () { + setTimeout(function () { + reject(new TypeError('Network request failed')); + }, 0); + }; + xhr.onabort = function () { + setTimeout(function () { + reject(new DOMException('Aborted', 'AbortError')); + }, 0); + }; + function fixUrl(url) { + try { + return url === '' && global$o.location.href ? global$o.location.href : url; + } catch (e) { + return url; + } + } + xhr.open(request.method, fixUrl(request.url), true); + if (request.credentials === 'include') { + xhr.withCredentials = true; + } else if (request.credentials === 'omit') { + xhr.withCredentials = false; + } + if ('responseType' in xhr) { + if (support.blob) { + xhr.responseType = 'blob'; + } else if (support.arrayBuffer && request.headers.get('Content-Type') && request.headers.get('Content-Type').indexOf('application/octet-stream') !== -1) { + xhr.responseType = 'arraybuffer'; + } + } + if (init && typeof init.headers === 'object' && !(init.headers instanceof Headers)) { + Object.getOwnPropertyNames(init.headers).forEach(function (name) { + xhr.setRequestHeader(name, normalizeValue(init.headers[name])); + }); + } else { + request.headers.forEach(function (value, name) { + xhr.setRequestHeader(name, value); + }); + } + if (request.signal) { + request.signal.addEventListener('abort', abortXhr); + xhr.onreadystatechange = function () { + // DONE (success or failure) + if (xhr.readyState === 4) { + request.signal.removeEventListener('abort', abortXhr); + } + }; + } + xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit); + }); +} +fetch$1.polyfill = true; +if (!global$o.fetch) { + global$o.fetch = fetch$1; + global$o.Headers = Headers; + global$o.Request = Request; + global$o.Response = Response; +} + +var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; + +var check = function (it) { + return it && it.Math == Math && it; +}; + +// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 +var global$n = +// eslint-disable-next-line es/no-global-this -- safe +check(typeof globalThis == 'object' && globalThis) || check(typeof window == 'object' && window) || +// eslint-disable-next-line no-restricted-globals -- safe +check(typeof self == 'object' && self) || check(typeof commonjsGlobal == 'object' && commonjsGlobal) || +// eslint-disable-next-line no-new-func -- fallback +function () { + return this; +}() || Function('return this')(); + +// iterable DOM collections +// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods +var domIterables = { + CSSRuleList: 0, + CSSStyleDeclaration: 0, + CSSValueList: 0, + ClientRectList: 0, + DOMRectList: 0, + DOMStringList: 0, + DOMTokenList: 1, + DataTransferItemList: 0, + FileList: 0, + HTMLAllCollection: 0, + HTMLCollection: 0, + HTMLFormElement: 0, + HTMLSelectElement: 0, + MediaList: 0, + MimeTypeArray: 0, + NamedNodeMap: 0, + NodeList: 1, + PaintRequestList: 0, + Plugin: 0, + PluginArray: 0, + SVGLengthList: 0, + SVGNumberList: 0, + SVGPathSegList: 0, + SVGPointList: 0, + SVGStringList: 0, + SVGTransformList: 0, + SourceBufferList: 0, + StyleSheetList: 0, + TextTrackCueList: 0, + TextTrackList: 0, + TouchList: 0 +}; + +var documentAll$2 = typeof document == 'object' && document.all; + +// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot +// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing +var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined; +var documentAll_1 = { + all: documentAll$2, + IS_HTMLDDA: IS_HTMLDDA +}; + +var $documentAll$1 = documentAll_1; +var documentAll$1 = $documentAll$1.all; + +// `IsCallable` abstract operation +// https://tc39.es/ecma262/#sec-iscallable +var isCallable$m = $documentAll$1.IS_HTMLDDA ? function (argument) { + return typeof argument == 'function' || argument === documentAll$1; +} : function (argument) { + return typeof argument == 'function'; +}; + +var isCallable$l = isCallable$m; +var $documentAll = documentAll_1; +var documentAll = $documentAll.all; +var isObject$f = $documentAll.IS_HTMLDDA ? function (it) { + return typeof it == 'object' ? it !== null : isCallable$l(it) || it === documentAll; +} : function (it) { + return typeof it == 'object' ? it !== null : isCallable$l(it); +}; + +var global$m = global$n; +var isObject$e = isObject$f; +var document$3 = global$m.document; +// typeof document.createElement is 'object' in old IE +var EXISTS$1 = isObject$e(document$3) && isObject$e(document$3.createElement); +var documentCreateElement$2 = function (it) { + return EXISTS$1 ? document$3.createElement(it) : {}; +}; + +// in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList` +var documentCreateElement$1 = documentCreateElement$2; +var classList = documentCreateElement$1('span').classList; +var DOMTokenListPrototype$2 = classList && classList.constructor && classList.constructor.prototype; +var domTokenListPrototype = DOMTokenListPrototype$2 === Object.prototype ? undefined : DOMTokenListPrototype$2; + +var fails$s = function (exec) { + try { + return !!exec(); + } catch (error) { + return true; + } +}; + +var fails$r = fails$s; +var functionBindNative = !fails$r(function () { + // eslint-disable-next-line es/no-function-prototype-bind -- safe + var test = function () {/* empty */}.bind(); + // eslint-disable-next-line no-prototype-builtins -- safe + return typeof test != 'function' || test.hasOwnProperty('prototype'); +}); + +var NATIVE_BIND$3 = functionBindNative; +var FunctionPrototype$2 = Function.prototype; +var call$g = FunctionPrototype$2.call; +var uncurryThisWithBind = NATIVE_BIND$3 && FunctionPrototype$2.bind.bind(call$g, call$g); +var functionUncurryThis = NATIVE_BIND$3 ? uncurryThisWithBind : function (fn) { + return function () { + return call$g.apply(fn, arguments); + }; +}; + +var uncurryThis$p = functionUncurryThis; +var toString$8 = uncurryThis$p({}.toString); +var stringSlice$4 = uncurryThis$p(''.slice); +var classofRaw$2 = function (it) { + return stringSlice$4(toString$8(it), 8, -1); +}; + +var classofRaw$1 = classofRaw$2; +var uncurryThis$o = functionUncurryThis; +var functionUncurryThisClause = function (fn) { + // Nashorn bug: + // https://github.com/zloirock/core-js/issues/1128 + // https://github.com/zloirock/core-js/issues/1130 + if (classofRaw$1(fn) === 'Function') return uncurryThis$o(fn); +}; + +var $String$4 = String; +var tryToString$4 = function (argument) { + try { + return $String$4(argument); + } catch (error) { + return 'Object'; + } +}; + +var isCallable$k = isCallable$m; +var tryToString$3 = tryToString$4; +var $TypeError$e = TypeError; + +// `Assert: IsCallable(argument) is true` +var aCallable$8 = function (argument) { + if (isCallable$k(argument)) return argument; + throw $TypeError$e(tryToString$3(argument) + ' is not a function'); +}; + +var uncurryThis$n = functionUncurryThisClause; +var aCallable$7 = aCallable$8; +var NATIVE_BIND$2 = functionBindNative; +var bind$6 = uncurryThis$n(uncurryThis$n.bind); + +// optional / simple context binding +var functionBindContext = function (fn, that) { + aCallable$7(fn); + return that === undefined ? fn : NATIVE_BIND$2 ? bind$6(fn, that) : function /* ...args */ + () { + return fn.apply(that, arguments); + }; +}; + +var uncurryThis$m = functionUncurryThis; +var fails$q = fails$s; +var classof$a = classofRaw$2; +var $Object$4 = Object; +var split = uncurryThis$m(''.split); + +// fallback for non-array-like ES3 and non-enumerable old V8 strings +var indexedObject = fails$q(function () { + // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346 + // eslint-disable-next-line no-prototype-builtins -- safe + return !$Object$4('z').propertyIsEnumerable(0); +}) ? function (it) { + return classof$a(it) == 'String' ? split(it, '') : $Object$4(it); +} : $Object$4; + +// we can't use just `it == null` since of `document.all` special case +// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec +var isNullOrUndefined$6 = function (it) { + return it === null || it === undefined; +}; + +var isNullOrUndefined$5 = isNullOrUndefined$6; +var $TypeError$d = TypeError; + +// `RequireObjectCoercible` abstract operation +// https://tc39.es/ecma262/#sec-requireobjectcoercible +var requireObjectCoercible$5 = function (it) { + if (isNullOrUndefined$5(it)) throw $TypeError$d("Can't call method on " + it); + return it; +}; + +var requireObjectCoercible$4 = requireObjectCoercible$5; +var $Object$3 = Object; + +// `ToObject` abstract operation +// https://tc39.es/ecma262/#sec-toobject +var toObject$6 = function (argument) { + return $Object$3(requireObjectCoercible$4(argument)); +}; + +var ceil = Math.ceil; +var floor = Math.floor; + +// `Math.trunc` method +// https://tc39.es/ecma262/#sec-math.trunc +// eslint-disable-next-line es/no-math-trunc -- safe +var mathTrunc = Math.trunc || function trunc(x) { + var n = +x; + return (n > 0 ? floor : ceil)(n); +}; + +var trunc = mathTrunc; + +// `ToIntegerOrInfinity` abstract operation +// https://tc39.es/ecma262/#sec-tointegerorinfinity +var toIntegerOrInfinity$3 = function (argument) { + var number = +argument; + // eslint-disable-next-line no-self-compare -- NaN check + return number !== number || number === 0 ? 0 : trunc(number); +}; + +var toIntegerOrInfinity$2 = toIntegerOrInfinity$3; +var min$1 = Math.min; + +// `ToLength` abstract operation +// https://tc39.es/ecma262/#sec-tolength +var toLength$1 = function (argument) { + return argument > 0 ? min$1(toIntegerOrInfinity$2(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991 +}; + +var toLength = toLength$1; + +// `LengthOfArrayLike` abstract operation +// https://tc39.es/ecma262/#sec-lengthofarraylike +var lengthOfArrayLike$5 = function (obj) { + return toLength(obj.length); +}; + +var classof$9 = classofRaw$2; + +// `IsArray` abstract operation +// https://tc39.es/ecma262/#sec-isarray +// eslint-disable-next-line es/no-array-isarray -- safe +var isArray$2 = Array.isArray || function isArray(argument) { + return classof$9(argument) == 'Array'; +}; + +var shared$4 = {exports: {}}; + +var isPure = false; + +var global$l = global$n; + +// eslint-disable-next-line es/no-object-defineproperty -- safe +var defineProperty$8 = Object.defineProperty; +var defineGlobalProperty$3 = function (key, value) { + try { + defineProperty$8(global$l, key, { + value: value, + configurable: true, + writable: true + }); + } catch (error) { + global$l[key] = value; + } + return value; +}; + +var global$k = global$n; +var defineGlobalProperty$2 = defineGlobalProperty$3; +var SHARED = '__core-js_shared__'; +var store$3 = global$k[SHARED] || defineGlobalProperty$2(SHARED, {}); +var sharedStore = store$3; + +var store$2 = sharedStore; +(shared$4.exports = function (key, value) { + return store$2[key] || (store$2[key] = value !== undefined ? value : {}); +})('versions', []).push({ + version: '3.28.0', + mode: 'global', + copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)', + license: 'https://github.com/zloirock/core-js/blob/v3.28.0/LICENSE', + source: 'https://github.com/zloirock/core-js' +}); +var sharedExports = shared$4.exports; + +var uncurryThis$l = functionUncurryThis; +var toObject$5 = toObject$6; +var hasOwnProperty = uncurryThis$l({}.hasOwnProperty); + +// `HasOwnProperty` abstract operation +// https://tc39.es/ecma262/#sec-hasownproperty +// eslint-disable-next-line es/no-object-hasown -- safe +var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) { + return hasOwnProperty(toObject$5(it), key); +}; + +var uncurryThis$k = functionUncurryThis; +var id$1 = 0; +var postfix = Math.random(); +var toString$7 = uncurryThis$k(1.0.toString); +var uid$3 = function (key) { + return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$7(++id$1 + postfix, 36); +}; + +var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || ''; + +var global$j = global$n; +var userAgent$3 = engineUserAgent; +var process$4 = global$j.process; +var Deno$1 = global$j.Deno; +var versions = process$4 && process$4.versions || Deno$1 && Deno$1.version; +var v8 = versions && versions.v8; +var match, version$1; +if (v8) { + match = v8.split('.'); + // in old Chrome, versions of V8 isn't V8 = Chrome / 10 + // but their correct versions are not interesting for us + version$1 = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]); +} + +// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0` +// so check `userAgent` even if `.v8` exists, but 0 +if (!version$1 && userAgent$3) { + match = userAgent$3.match(/Edge\/(\d+)/); + if (!match || match[1] >= 74) { + match = userAgent$3.match(/Chrome\/(\d+)/); + if (match) version$1 = +match[1]; + } +} +var engineV8Version = version$1; + +/* eslint-disable es/no-symbol -- required for testing */ +var V8_VERSION$3 = engineV8Version; +var fails$p = fails$s; + +// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing +var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$p(function () { + var symbol = Symbol(); + // Chrome 38 Symbol has incorrect toString conversion + // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances + return !String(symbol) || !(Object(symbol) instanceof Symbol) || + // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances + !Symbol.sham && V8_VERSION$3 && V8_VERSION$3 < 41; +}); + +/* eslint-disable es/no-symbol -- required for testing */ +var NATIVE_SYMBOL$1 = symbolConstructorDetection; +var useSymbolAsUid = NATIVE_SYMBOL$1 && !Symbol.sham && typeof Symbol.iterator == 'symbol'; + +var global$i = global$n; +var shared$3 = sharedExports; +var hasOwn$c = hasOwnProperty_1; +var uid$2 = uid$3; +var NATIVE_SYMBOL = symbolConstructorDetection; +var USE_SYMBOL_AS_UID$1 = useSymbolAsUid; +var Symbol$1 = global$i.Symbol; +var WellKnownSymbolsStore = shared$3('wks'); +var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$2; +var wellKnownSymbol$j = function (name) { + if (!hasOwn$c(WellKnownSymbolsStore, name)) { + WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$c(Symbol$1, name) ? Symbol$1[name] : createWellKnownSymbol('Symbol.' + name); + } + return WellKnownSymbolsStore[name]; +}; + +var wellKnownSymbol$i = wellKnownSymbol$j; +var TO_STRING_TAG$3 = wellKnownSymbol$i('toStringTag'); +var test = {}; +test[TO_STRING_TAG$3] = 'z'; +var toStringTagSupport = String(test) === '[object z]'; + +var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport; +var isCallable$j = isCallable$m; +var classofRaw = classofRaw$2; +var wellKnownSymbol$h = wellKnownSymbol$j; +var TO_STRING_TAG$2 = wellKnownSymbol$h('toStringTag'); +var $Object$2 = Object; + +// ES3 wrong here +var CORRECT_ARGUMENTS = classofRaw(function () { + return arguments; +}()) == 'Arguments'; + +// fallback for IE11 Script Access Denied error +var tryGet = function (it, key) { + try { + return it[key]; + } catch (error) {/* empty */} +}; + +// getting tag from ES6+ `Object.prototype.toString` +var classof$8 = TO_STRING_TAG_SUPPORT$2 ? classofRaw : function (it) { + var O, tag, result; + return it === undefined ? 'Undefined' : it === null ? 'Null' + // @@toStringTag case + : typeof (tag = tryGet(O = $Object$2(it), TO_STRING_TAG$2)) == 'string' ? tag + // builtinTag case + : CORRECT_ARGUMENTS ? classofRaw(O) + // ES3 arguments fallback + : (result = classofRaw(O)) == 'Object' && isCallable$j(O.callee) ? 'Arguments' : result; +}; + +var global$h = global$n; +var isCallable$i = isCallable$m; +var aFunction = function (argument) { + return isCallable$i(argument) ? argument : undefined; +}; +var getBuiltIn$7 = function (namespace, method) { + return arguments.length < 2 ? aFunction(global$h[namespace]) : global$h[namespace] && global$h[namespace][method]; +}; + +var uncurryThis$j = functionUncurryThis; +var isCallable$h = isCallable$m; +var store$1 = sharedStore; +var functionToString = uncurryThis$j(Function.toString); + +// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper +if (!isCallable$h(store$1.inspectSource)) { + store$1.inspectSource = function (it) { + return functionToString(it); + }; +} +var inspectSource$3 = store$1.inspectSource; + +var uncurryThis$i = functionUncurryThis; +var fails$o = fails$s; +var isCallable$g = isCallable$m; +var classof$7 = classof$8; +var getBuiltIn$6 = getBuiltIn$7; +var inspectSource$2 = inspectSource$3; +var noop = function () {/* empty */}; +var empty = []; +var construct = getBuiltIn$6('Reflect', 'construct'); +var constructorRegExp = /^\s*(?:class|function)\b/; +var exec$1 = uncurryThis$i(constructorRegExp.exec); +var INCORRECT_TO_STRING = !constructorRegExp.exec(noop); +var isConstructorModern = function isConstructor(argument) { + if (!isCallable$g(argument)) return false; + try { + construct(noop, empty, argument); + return true; + } catch (error) { + return false; + } +}; +var isConstructorLegacy = function isConstructor(argument) { + if (!isCallable$g(argument)) return false; + switch (classof$7(argument)) { + case 'AsyncFunction': + case 'GeneratorFunction': + case 'AsyncGeneratorFunction': + return false; + } + try { + // we can't check .prototype since constructors produced by .bind haven't it + // `Function#toString` throws on some built-it function in some legacy engines + // (for example, `DOMQuad` and similar in FF41-) + return INCORRECT_TO_STRING || !!exec$1(constructorRegExp, inspectSource$2(argument)); + } catch (error) { + return true; + } +}; +isConstructorLegacy.sham = true; + +// `IsConstructor` abstract operation +// https://tc39.es/ecma262/#sec-isconstructor +var isConstructor$2 = !construct || fails$o(function () { + var called; + return isConstructorModern(isConstructorModern.call) || !isConstructorModern(Object) || !isConstructorModern(function () { + called = true; + }) || called; +}) ? isConstructorLegacy : isConstructorModern; + +var isArray$1 = isArray$2; +var isConstructor$1 = isConstructor$2; +var isObject$d = isObject$f; +var wellKnownSymbol$g = wellKnownSymbol$j; +var SPECIES$4 = wellKnownSymbol$g('species'); +var $Array$1 = Array; + +// a part of `ArraySpeciesCreate` abstract operation +// https://tc39.es/ecma262/#sec-arrayspeciescreate +var arraySpeciesConstructor$1 = function (originalArray) { + var C; + if (isArray$1(originalArray)) { + C = originalArray.constructor; + // cross-realm fallback + if (isConstructor$1(C) && (C === $Array$1 || isArray$1(C.prototype))) C = undefined;else if (isObject$d(C)) { + C = C[SPECIES$4]; + if (C === null) C = undefined; + } + } + return C === undefined ? $Array$1 : C; +}; + +var arraySpeciesConstructor = arraySpeciesConstructor$1; + +// `ArraySpeciesCreate` abstract operation +// https://tc39.es/ecma262/#sec-arrayspeciescreate +var arraySpeciesCreate$2 = function (originalArray, length) { + return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length); +}; + +var bind$5 = functionBindContext; +var uncurryThis$h = functionUncurryThis; +var IndexedObject$2 = indexedObject; +var toObject$4 = toObject$6; +var lengthOfArrayLike$4 = lengthOfArrayLike$5; +var arraySpeciesCreate$1 = arraySpeciesCreate$2; +var push$2 = uncurryThis$h([].push); + +// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation +var createMethod$4 = function (TYPE) { + var IS_MAP = TYPE == 1; + var IS_FILTER = TYPE == 2; + var IS_SOME = TYPE == 3; + var IS_EVERY = TYPE == 4; + var IS_FIND_INDEX = TYPE == 6; + var IS_FILTER_REJECT = TYPE == 7; + var NO_HOLES = TYPE == 5 || IS_FIND_INDEX; + return function ($this, callbackfn, that, specificCreate) { + var O = toObject$4($this); + var self = IndexedObject$2(O); + var boundFunction = bind$5(callbackfn, that); + var length = lengthOfArrayLike$4(self); + var index = 0; + var create = specificCreate || arraySpeciesCreate$1; + var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined; + var value, result; + for (; length > index; index++) if (NO_HOLES || index in self) { + value = self[index]; + result = boundFunction(value, index, O); + if (TYPE) { + if (IS_MAP) target[index] = result; // map + else if (result) switch (TYPE) { + case 3: + return true; + // some + case 5: + return value; + // find + case 6: + return index; + // findIndex + case 2: + push$2(target, value); + // filter + } else switch (TYPE) { + case 4: + return false; + // every + case 7: + push$2(target, value); + // filterReject + } + } + } + + return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target; + }; +}; +var arrayIteration = { + // `Array.prototype.forEach` method + // https://tc39.es/ecma262/#sec-array.prototype.foreach + forEach: createMethod$4(0), + // `Array.prototype.map` method + // https://tc39.es/ecma262/#sec-array.prototype.map + map: createMethod$4(1), + // `Array.prototype.filter` method + // https://tc39.es/ecma262/#sec-array.prototype.filter + filter: createMethod$4(2), + // `Array.prototype.some` method + // https://tc39.es/ecma262/#sec-array.prototype.some + some: createMethod$4(3), + // `Array.prototype.every` method + // https://tc39.es/ecma262/#sec-array.prototype.every + every: createMethod$4(4), + // `Array.prototype.find` method + // https://tc39.es/ecma262/#sec-array.prototype.find + find: createMethod$4(5), + // `Array.prototype.findIndex` method + // https://tc39.es/ecma262/#sec-array.prototype.findIndex + findIndex: createMethod$4(6), + // `Array.prototype.filterReject` method + // https://github.com/tc39/proposal-array-filtering + filterReject: createMethod$4(7) +}; + +var fails$n = fails$s; +var arrayMethodIsStrict$2 = function (METHOD_NAME, argument) { + var method = [][METHOD_NAME]; + return !!method && fails$n(function () { + // eslint-disable-next-line no-useless-call -- required for testing + method.call(null, argument || function () { + return 1; + }, 1); + }); +}; + +var $forEach = arrayIteration.forEach; +var arrayMethodIsStrict$1 = arrayMethodIsStrict$2; +var STRICT_METHOD = arrayMethodIsStrict$1('forEach'); + +// `Array.prototype.forEach` method implementation +// https://tc39.es/ecma262/#sec-array.prototype.foreach +var arrayForEach = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) { + return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); + // eslint-disable-next-line es/no-array-prototype-foreach -- safe +} : [].forEach; + +var fails$m = fails$s; + +// Detect IE8's incomplete defineProperty implementation +var descriptors = !fails$m(function () { + // eslint-disable-next-line es/no-object-defineproperty -- required for testing + return Object.defineProperty({}, 1, { + get: function () { + return 7; + } + })[1] != 7; +}); + +var objectDefineProperty = {}; + +var DESCRIPTORS$d = descriptors; +var fails$l = fails$s; +var createElement$1 = documentCreateElement$2; + +// Thanks to IE8 for its funny defineProperty +var ie8DomDefine = !DESCRIPTORS$d && !fails$l(function () { + // eslint-disable-next-line es/no-object-defineproperty -- required for testing + return Object.defineProperty(createElement$1('div'), 'a', { + get: function () { + return 7; + } + }).a != 7; +}); + +var DESCRIPTORS$c = descriptors; +var fails$k = fails$s; + +// V8 ~ Chrome 36- +// https://bugs.chromium.org/p/v8/issues/detail?id=3334 +var v8PrototypeDefineBug = DESCRIPTORS$c && fails$k(function () { + // eslint-disable-next-line es/no-object-defineproperty -- required for testing + return Object.defineProperty(function () {/* empty */}, 'prototype', { + value: 42, + writable: false + }).prototype != 42; +}); + +var isObject$c = isObject$f; +var $String$3 = String; +var $TypeError$c = TypeError; + +// `Assert: Type(argument) is Object` +var anObject$c = function (argument) { + if (isObject$c(argument)) return argument; + throw $TypeError$c($String$3(argument) + ' is not an object'); +}; + +var NATIVE_BIND$1 = functionBindNative; +var call$f = Function.prototype.call; +var functionCall = NATIVE_BIND$1 ? call$f.bind(call$f) : function () { + return call$f.apply(call$f, arguments); +}; + +var uncurryThis$g = functionUncurryThis; +var objectIsPrototypeOf = uncurryThis$g({}.isPrototypeOf); + +var getBuiltIn$5 = getBuiltIn$7; +var isCallable$f = isCallable$m; +var isPrototypeOf$4 = objectIsPrototypeOf; +var USE_SYMBOL_AS_UID = useSymbolAsUid; +var $Object$1 = Object; +var isSymbol$3 = USE_SYMBOL_AS_UID ? function (it) { + return typeof it == 'symbol'; +} : function (it) { + var $Symbol = getBuiltIn$5('Symbol'); + return isCallable$f($Symbol) && isPrototypeOf$4($Symbol.prototype, $Object$1(it)); +}; + +var aCallable$6 = aCallable$8; +var isNullOrUndefined$4 = isNullOrUndefined$6; + +// `GetMethod` abstract operation +// https://tc39.es/ecma262/#sec-getmethod +var getMethod$3 = function (V, P) { + var func = V[P]; + return isNullOrUndefined$4(func) ? undefined : aCallable$6(func); +}; + +var call$e = functionCall; +var isCallable$e = isCallable$m; +var isObject$b = isObject$f; +var $TypeError$b = TypeError; + +// `OrdinaryToPrimitive` abstract operation +// https://tc39.es/ecma262/#sec-ordinarytoprimitive +var ordinaryToPrimitive$1 = function (input, pref) { + var fn, val; + if (pref === 'string' && isCallable$e(fn = input.toString) && !isObject$b(val = call$e(fn, input))) return val; + if (isCallable$e(fn = input.valueOf) && !isObject$b(val = call$e(fn, input))) return val; + if (pref !== 'string' && isCallable$e(fn = input.toString) && !isObject$b(val = call$e(fn, input))) return val; + throw $TypeError$b("Can't convert object to primitive value"); +}; + +var call$d = functionCall; +var isObject$a = isObject$f; +var isSymbol$2 = isSymbol$3; +var getMethod$2 = getMethod$3; +var ordinaryToPrimitive = ordinaryToPrimitive$1; +var wellKnownSymbol$f = wellKnownSymbol$j; +var $TypeError$a = TypeError; +var TO_PRIMITIVE = wellKnownSymbol$f('toPrimitive'); + +// `ToPrimitive` abstract operation +// https://tc39.es/ecma262/#sec-toprimitive +var toPrimitive$2 = function (input, pref) { + if (!isObject$a(input) || isSymbol$2(input)) return input; + var exoticToPrim = getMethod$2(input, TO_PRIMITIVE); + var result; + if (exoticToPrim) { + if (pref === undefined) pref = 'default'; + result = call$d(exoticToPrim, input, pref); + if (!isObject$a(result) || isSymbol$2(result)) return result; + throw $TypeError$a("Can't convert object to primitive value"); + } + if (pref === undefined) pref = 'number'; + return ordinaryToPrimitive(input, pref); +}; + +var toPrimitive$1 = toPrimitive$2; +var isSymbol$1 = isSymbol$3; + +// `ToPropertyKey` abstract operation +// https://tc39.es/ecma262/#sec-topropertykey +var toPropertyKey$3 = function (argument) { + var key = toPrimitive$1(argument, 'string'); + return isSymbol$1(key) ? key : key + ''; +}; + +var DESCRIPTORS$b = descriptors; +var IE8_DOM_DEFINE$1 = ie8DomDefine; +var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug; +var anObject$b = anObject$c; +var toPropertyKey$2 = toPropertyKey$3; +var $TypeError$9 = TypeError; +// eslint-disable-next-line es/no-object-defineproperty -- safe +var $defineProperty = Object.defineProperty; +// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe +var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor; +var ENUMERABLE = 'enumerable'; +var CONFIGURABLE$1 = 'configurable'; +var WRITABLE = 'writable'; + +// `Object.defineProperty` method +// https://tc39.es/ecma262/#sec-object.defineproperty +objectDefineProperty.f = DESCRIPTORS$b ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) { + anObject$b(O); + P = toPropertyKey$2(P); + anObject$b(Attributes); + if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) { + var current = $getOwnPropertyDescriptor$1(O, P); + if (current && current[WRITABLE]) { + O[P] = Attributes.value; + Attributes = { + configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1], + enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE], + writable: false + }; + } + } + return $defineProperty(O, P, Attributes); +} : $defineProperty : function defineProperty(O, P, Attributes) { + anObject$b(O); + P = toPropertyKey$2(P); + anObject$b(Attributes); + if (IE8_DOM_DEFINE$1) try { + return $defineProperty(O, P, Attributes); + } catch (error) {/* empty */} + if ('get' in Attributes || 'set' in Attributes) throw $TypeError$9('Accessors not supported'); + if ('value' in Attributes) O[P] = Attributes.value; + return O; +}; + +var createPropertyDescriptor$4 = function (bitmap, value) { + return { + enumerable: !(bitmap & 1), + configurable: !(bitmap & 2), + writable: !(bitmap & 4), + value: value + }; +}; + +var DESCRIPTORS$a = descriptors; +var definePropertyModule$4 = objectDefineProperty; +var createPropertyDescriptor$3 = createPropertyDescriptor$4; +var createNonEnumerableProperty$5 = DESCRIPTORS$a ? function (object, key, value) { + return definePropertyModule$4.f(object, key, createPropertyDescriptor$3(1, value)); +} : function (object, key, value) { + object[key] = value; + return object; +}; + +var global$g = global$n; +var DOMIterables$1 = domIterables; +var DOMTokenListPrototype$1 = domTokenListPrototype; +var forEach = arrayForEach; +var createNonEnumerableProperty$4 = createNonEnumerableProperty$5; +var handlePrototype$1 = function (CollectionPrototype) { + // some Chrome versions have non-configurable methods on DOMTokenList + if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try { + createNonEnumerableProperty$4(CollectionPrototype, 'forEach', forEach); + } catch (error) { + CollectionPrototype.forEach = forEach; + } +}; +for (var COLLECTION_NAME$1 in DOMIterables$1) { + if (DOMIterables$1[COLLECTION_NAME$1]) { + handlePrototype$1(global$g[COLLECTION_NAME$1] && global$g[COLLECTION_NAME$1].prototype); + } +} +handlePrototype$1(DOMTokenListPrototype$1); + +// toObject with fallback for non-array-like ES3 strings +var IndexedObject$1 = indexedObject; +var requireObjectCoercible$3 = requireObjectCoercible$5; +var toIndexedObject$7 = function (it) { + return IndexedObject$1(requireObjectCoercible$3(it)); +}; + +var objectDefineProperties = {}; + +var toIntegerOrInfinity$1 = toIntegerOrInfinity$3; +var max$1 = Math.max; +var min = Math.min; + +// Helper for a popular repeating case of the spec: +// Let integer be ? ToInteger(index). +// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length). +var toAbsoluteIndex$2 = function (index, length) { + var integer = toIntegerOrInfinity$1(index); + return integer < 0 ? max$1(integer + length, 0) : min(integer, length); +}; + +var toIndexedObject$6 = toIndexedObject$7; +var toAbsoluteIndex$1 = toAbsoluteIndex$2; +var lengthOfArrayLike$3 = lengthOfArrayLike$5; + +// `Array.prototype.{ indexOf, includes }` methods implementation +var createMethod$3 = function (IS_INCLUDES) { + return function ($this, el, fromIndex) { + var O = toIndexedObject$6($this); + var length = lengthOfArrayLike$3(O); + var index = toAbsoluteIndex$1(fromIndex, length); + var value; + // Array#includes uses SameValueZero equality algorithm + // eslint-disable-next-line no-self-compare -- NaN check + if (IS_INCLUDES && el != el) while (length > index) { + value = O[index++]; + // eslint-disable-next-line no-self-compare -- NaN check + if (value != value) return true; + // Array#indexOf ignores holes, Array#includes - not + } else for (; length > index; index++) { + if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0; + } + return !IS_INCLUDES && -1; + }; +}; +var arrayIncludes = { + // `Array.prototype.includes` method + // https://tc39.es/ecma262/#sec-array.prototype.includes + includes: createMethod$3(true), + // `Array.prototype.indexOf` method + // https://tc39.es/ecma262/#sec-array.prototype.indexof + indexOf: createMethod$3(false) +}; + +var hiddenKeys$5 = {}; + +var uncurryThis$f = functionUncurryThis; +var hasOwn$b = hasOwnProperty_1; +var toIndexedObject$5 = toIndexedObject$7; +var indexOf$1 = arrayIncludes.indexOf; +var hiddenKeys$4 = hiddenKeys$5; +var push$1 = uncurryThis$f([].push); +var objectKeysInternal = function (object, names) { + var O = toIndexedObject$5(object); + var i = 0; + var result = []; + var key; + for (key in O) !hasOwn$b(hiddenKeys$4, key) && hasOwn$b(O, key) && push$1(result, key); + // Don't enum bug & hidden keys + while (names.length > i) if (hasOwn$b(O, key = names[i++])) { + ~indexOf$1(result, key) || push$1(result, key); + } + return result; +}; + +// IE8- don't enum bug keys +var enumBugKeys$3 = ['constructor', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf']; + +var internalObjectKeys$1 = objectKeysInternal; +var enumBugKeys$2 = enumBugKeys$3; + +// `Object.keys` method +// https://tc39.es/ecma262/#sec-object.keys +// eslint-disable-next-line es/no-object-keys -- safe +var objectKeys$3 = Object.keys || function keys(O) { + return internalObjectKeys$1(O, enumBugKeys$2); +}; + +var DESCRIPTORS$9 = descriptors; +var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug; +var definePropertyModule$3 = objectDefineProperty; +var anObject$a = anObject$c; +var toIndexedObject$4 = toIndexedObject$7; +var objectKeys$2 = objectKeys$3; + +// `Object.defineProperties` method +// https://tc39.es/ecma262/#sec-object.defineproperties +// eslint-disable-next-line es/no-object-defineproperties -- safe +objectDefineProperties.f = DESCRIPTORS$9 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) { + anObject$a(O); + var props = toIndexedObject$4(Properties); + var keys = objectKeys$2(Properties); + var length = keys.length; + var index = 0; + var key; + while (length > index) definePropertyModule$3.f(O, key = keys[index++], props[key]); + return O; +}; + +var getBuiltIn$4 = getBuiltIn$7; +var html$2 = getBuiltIn$4('document', 'documentElement'); + +var shared$2 = sharedExports; +var uid$1 = uid$3; +var keys = shared$2('keys'); +var sharedKey$3 = function (key) { + return keys[key] || (keys[key] = uid$1(key)); +}; + +/* global ActiveXObject -- old IE, WSH */ +var anObject$9 = anObject$c; +var definePropertiesModule = objectDefineProperties; +var enumBugKeys$1 = enumBugKeys$3; +var hiddenKeys$3 = hiddenKeys$5; +var html$1 = html$2; +var documentCreateElement = documentCreateElement$2; +var sharedKey$2 = sharedKey$3; +var GT = '>'; +var LT = '<'; +var PROTOTYPE = 'prototype'; +var SCRIPT = 'script'; +var IE_PROTO$1 = sharedKey$2('IE_PROTO'); +var EmptyConstructor = function () {/* empty */}; +var scriptTag = function (content) { + return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT; +}; + +// Create object with fake `null` prototype: use ActiveX Object with cleared prototype +var NullProtoObjectViaActiveX = function (activeXDocument) { + activeXDocument.write(scriptTag('')); + activeXDocument.close(); + var temp = activeXDocument.parentWindow.Object; + activeXDocument = null; // avoid memory leak + return temp; +}; + +// Create object with fake `null` prototype: use iframe Object with cleared prototype +var NullProtoObjectViaIFrame = function () { + // Thrash, waste and sodomy: IE GC bug + var iframe = documentCreateElement('iframe'); + var JS = 'java' + SCRIPT + ':'; + var iframeDocument; + iframe.style.display = 'none'; + html$1.appendChild(iframe); + // https://github.com/zloirock/core-js/issues/475 + iframe.src = String(JS); + iframeDocument = iframe.contentWindow.document; + iframeDocument.open(); + iframeDocument.write(scriptTag('document.F=Object')); + iframeDocument.close(); + return iframeDocument.F; +}; + +// Check for document.domain and active x support +// No need to use active x approach when document.domain is not set +// see https://github.com/es-shims/es5-shim/issues/150 +// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346 +// avoid IE GC bug +var activeXDocument; +var NullProtoObject = function () { + try { + activeXDocument = new ActiveXObject('htmlfile'); + } catch (error) {/* ignore */} + NullProtoObject = typeof document != 'undefined' ? document.domain && activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) // old IE + : NullProtoObjectViaIFrame() : NullProtoObjectViaActiveX(activeXDocument); // WSH + var length = enumBugKeys$1.length; + while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys$1[length]]; + return NullProtoObject(); +}; +hiddenKeys$3[IE_PROTO$1] = true; + +// `Object.create` method +// https://tc39.es/ecma262/#sec-object.create +// eslint-disable-next-line es/no-object-create -- safe +var objectCreate = Object.create || function create(O, Properties) { + var result; + if (O !== null) { + EmptyConstructor[PROTOTYPE] = anObject$9(O); + result = new EmptyConstructor(); + EmptyConstructor[PROTOTYPE] = null; + // add "__proto__" for Object.getPrototypeOf polyfill + result[IE_PROTO$1] = O; + } else result = NullProtoObject(); + return Properties === undefined ? result : definePropertiesModule.f(result, Properties); +}; + +var wellKnownSymbol$e = wellKnownSymbol$j; +var create$3 = objectCreate; +var defineProperty$7 = objectDefineProperty.f; +var UNSCOPABLES = wellKnownSymbol$e('unscopables'); +var ArrayPrototype$1 = Array.prototype; + +// Array.prototype[@@unscopables] +// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables +if (ArrayPrototype$1[UNSCOPABLES] == undefined) { + defineProperty$7(ArrayPrototype$1, UNSCOPABLES, { + configurable: true, + value: create$3(null) + }); +} + +// add a key to Array.prototype[@@unscopables] +var addToUnscopables$3 = function (key) { + ArrayPrototype$1[UNSCOPABLES][key] = true; +}; + +var iterators = {}; + +var global$f = global$n; +var isCallable$d = isCallable$m; +var WeakMap$1 = global$f.WeakMap; +var weakMapBasicDetection = isCallable$d(WeakMap$1) && /native code/.test(String(WeakMap$1)); + +var NATIVE_WEAK_MAP = weakMapBasicDetection; +var global$e = global$n; +var isObject$9 = isObject$f; +var createNonEnumerableProperty$3 = createNonEnumerableProperty$5; +var hasOwn$a = hasOwnProperty_1; +var shared$1 = sharedStore; +var sharedKey$1 = sharedKey$3; +var hiddenKeys$2 = hiddenKeys$5; +var OBJECT_ALREADY_INITIALIZED = 'Object already initialized'; +var TypeError$3 = global$e.TypeError; +var WeakMap = global$e.WeakMap; +var set$1, get, has; +var enforce = function (it) { + return has(it) ? get(it) : set$1(it, {}); +}; +var getterFor = function (TYPE) { + return function (it) { + var state; + if (!isObject$9(it) || (state = get(it)).type !== TYPE) { + throw TypeError$3('Incompatible receiver, ' + TYPE + ' required'); + } + return state; + }; +}; +if (NATIVE_WEAK_MAP || shared$1.state) { + var store = shared$1.state || (shared$1.state = new WeakMap()); + /* eslint-disable no-self-assign -- prototype methods protection */ + store.get = store.get; + store.has = store.has; + store.set = store.set; + /* eslint-enable no-self-assign -- prototype methods protection */ + set$1 = function (it, metadata) { + if (store.has(it)) throw TypeError$3(OBJECT_ALREADY_INITIALIZED); + metadata.facade = it; + store.set(it, metadata); + return metadata; + }; + get = function (it) { + return store.get(it) || {}; + }; + has = function (it) { + return store.has(it); + }; +} else { + var STATE = sharedKey$1('state'); + hiddenKeys$2[STATE] = true; + set$1 = function (it, metadata) { + if (hasOwn$a(it, STATE)) throw TypeError$3(OBJECT_ALREADY_INITIALIZED); + metadata.facade = it; + createNonEnumerableProperty$3(it, STATE, metadata); + return metadata; + }; + get = function (it) { + return hasOwn$a(it, STATE) ? it[STATE] : {}; + }; + has = function (it) { + return hasOwn$a(it, STATE); + }; +} +var internalState = { + set: set$1, + get: get, + has: has, + enforce: enforce, + getterFor: getterFor +}; + +var objectGetOwnPropertyDescriptor = {}; + +var objectPropertyIsEnumerable = {}; + +var $propertyIsEnumerable$1 = {}.propertyIsEnumerable; +// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe +var getOwnPropertyDescriptor$3 = Object.getOwnPropertyDescriptor; + +// Nashorn ~ JDK8 bug +var NASHORN_BUG = getOwnPropertyDescriptor$3 && !$propertyIsEnumerable$1.call({ + 1: 2 +}, 1); + +// `Object.prototype.propertyIsEnumerable` method implementation +// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable +objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) { + var descriptor = getOwnPropertyDescriptor$3(this, V); + return !!descriptor && descriptor.enumerable; +} : $propertyIsEnumerable$1; + +var DESCRIPTORS$8 = descriptors; +var call$c = functionCall; +var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable; +var createPropertyDescriptor$2 = createPropertyDescriptor$4; +var toIndexedObject$3 = toIndexedObject$7; +var toPropertyKey$1 = toPropertyKey$3; +var hasOwn$9 = hasOwnProperty_1; +var IE8_DOM_DEFINE = ie8DomDefine; + +// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe +var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; + +// `Object.getOwnPropertyDescriptor` method +// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor +objectGetOwnPropertyDescriptor.f = DESCRIPTORS$8 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) { + O = toIndexedObject$3(O); + P = toPropertyKey$1(P); + if (IE8_DOM_DEFINE) try { + return $getOwnPropertyDescriptor(O, P); + } catch (error) {/* empty */} + if (hasOwn$9(O, P)) return createPropertyDescriptor$2(!call$c(propertyIsEnumerableModule$1.f, O, P), O[P]); +}; + +var makeBuiltIn$3 = {exports: {}}; + +var DESCRIPTORS$7 = descriptors; +var hasOwn$8 = hasOwnProperty_1; +var FunctionPrototype$1 = Function.prototype; +// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe +var getDescriptor = DESCRIPTORS$7 && Object.getOwnPropertyDescriptor; +var EXISTS = hasOwn$8(FunctionPrototype$1, 'name'); +// additional protection from minified / mangled / dropped function names +var PROPER = EXISTS && function something() {/* empty */}.name === 'something'; +var CONFIGURABLE = EXISTS && (!DESCRIPTORS$7 || DESCRIPTORS$7 && getDescriptor(FunctionPrototype$1, 'name').configurable); +var functionName = { + EXISTS: EXISTS, + PROPER: PROPER, + CONFIGURABLE: CONFIGURABLE +}; + +var uncurryThis$e = functionUncurryThis; +var fails$j = fails$s; +var isCallable$c = isCallable$m; +var hasOwn$7 = hasOwnProperty_1; +var DESCRIPTORS$6 = descriptors; +var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE; +var inspectSource$1 = inspectSource$3; +var InternalStateModule$4 = internalState; +var enforceInternalState = InternalStateModule$4.enforce; +var getInternalState$3 = InternalStateModule$4.get; +var $String$2 = String; +// eslint-disable-next-line es/no-object-defineproperty -- safe +var defineProperty$6 = Object.defineProperty; +var stringSlice$3 = uncurryThis$e(''.slice); +var replace$2 = uncurryThis$e(''.replace); +var join = uncurryThis$e([].join); +var CONFIGURABLE_LENGTH = DESCRIPTORS$6 && !fails$j(function () { + return defineProperty$6(function () {/* empty */}, 'length', { + value: 8 + }).length !== 8; +}); +var TEMPLATE = String(String).split('String'); +var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) { + if (stringSlice$3($String$2(name), 0, 7) === 'Symbol(') { + name = '[' + replace$2($String$2(name), /^Symbol\(([^)]*)\)/, '$1') + ']'; + } + if (options && options.getter) name = 'get ' + name; + if (options && options.setter) name = 'set ' + name; + if (!hasOwn$7(value, 'name') || CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name) { + if (DESCRIPTORS$6) defineProperty$6(value, 'name', { + value: name, + configurable: true + });else value.name = name; + } + if (CONFIGURABLE_LENGTH && options && hasOwn$7(options, 'arity') && value.length !== options.arity) { + defineProperty$6(value, 'length', { + value: options.arity + }); + } + try { + if (options && hasOwn$7(options, 'constructor') && options.constructor) { + if (DESCRIPTORS$6) defineProperty$6(value, 'prototype', { + writable: false + }); + // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable + } else if (value.prototype) value.prototype = undefined; + } catch (error) {/* empty */} + var state = enforceInternalState(value); + if (!hasOwn$7(state, 'source')) { + state.source = join(TEMPLATE, typeof name == 'string' ? name : ''); + } + return value; +}; + +// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative +// eslint-disable-next-line no-extend-native -- required +Function.prototype.toString = makeBuiltIn$2(function toString() { + return isCallable$c(this) && getInternalState$3(this).source || inspectSource$1(this); +}, 'toString'); +var makeBuiltInExports = makeBuiltIn$3.exports; + +var isCallable$b = isCallable$m; +var definePropertyModule$2 = objectDefineProperty; +var makeBuiltIn$1 = makeBuiltInExports; +var defineGlobalProperty$1 = defineGlobalProperty$3; +var defineBuiltIn$9 = function (O, key, value, options) { + if (!options) options = {}; + var simple = options.enumerable; + var name = options.name !== undefined ? options.name : key; + if (isCallable$b(value)) makeBuiltIn$1(value, name, options); + if (options.global) { + if (simple) O[key] = value;else defineGlobalProperty$1(key, value); + } else { + try { + if (!options.unsafe) delete O[key];else if (O[key]) simple = true; + } catch (error) {/* empty */} + if (simple) O[key] = value;else definePropertyModule$2.f(O, key, { + value: value, + enumerable: false, + configurable: !options.nonConfigurable, + writable: !options.nonWritable + }); + } + return O; +}; + +var objectGetOwnPropertyNames = {}; + +var internalObjectKeys = objectKeysInternal; +var enumBugKeys = enumBugKeys$3; +var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype'); + +// `Object.getOwnPropertyNames` method +// https://tc39.es/ecma262/#sec-object.getownpropertynames +// eslint-disable-next-line es/no-object-getownpropertynames -- safe +objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { + return internalObjectKeys(O, hiddenKeys$1); +}; + +var objectGetOwnPropertySymbols = {}; + +// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe +objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols; + +var getBuiltIn$3 = getBuiltIn$7; +var uncurryThis$d = functionUncurryThis; +var getOwnPropertyNamesModule$1 = objectGetOwnPropertyNames; +var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols; +var anObject$8 = anObject$c; +var concat$1 = uncurryThis$d([].concat); + +// all object keys, includes non-enumerable and symbols +var ownKeys$1 = getBuiltIn$3('Reflect', 'ownKeys') || function ownKeys(it) { + var keys = getOwnPropertyNamesModule$1.f(anObject$8(it)); + var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f; + return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys; +}; + +var hasOwn$6 = hasOwnProperty_1; +var ownKeys = ownKeys$1; +var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor; +var definePropertyModule$1 = objectDefineProperty; +var copyConstructorProperties$2 = function (target, source, exceptions) { + var keys = ownKeys(source); + var defineProperty = definePropertyModule$1.f; + var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f; + for (var i = 0; i < keys.length; i++) { + var key = keys[i]; + if (!hasOwn$6(target, key) && !(exceptions && hasOwn$6(exceptions, key))) { + defineProperty(target, key, getOwnPropertyDescriptor(source, key)); + } + } +}; + +var fails$i = fails$s; +var isCallable$a = isCallable$m; +var replacement = /#|\.prototype\./; +var isForced$4 = function (feature, detection) { + var value = data[normalize(feature)]; + return value == POLYFILL ? true : value == NATIVE ? false : isCallable$a(detection) ? fails$i(detection) : !!detection; +}; +var normalize = isForced$4.normalize = function (string) { + return String(string).replace(replacement, '.').toLowerCase(); +}; +var data = isForced$4.data = {}; +var NATIVE = isForced$4.NATIVE = 'N'; +var POLYFILL = isForced$4.POLYFILL = 'P'; +var isForced_1 = isForced$4; + +var global$d = global$n; +var getOwnPropertyDescriptor$2 = objectGetOwnPropertyDescriptor.f; +var createNonEnumerableProperty$2 = createNonEnumerableProperty$5; +var defineBuiltIn$8 = defineBuiltIn$9; +var defineGlobalProperty = defineGlobalProperty$3; +var copyConstructorProperties$1 = copyConstructorProperties$2; +var isForced$3 = isForced_1; + +/* + options.target - name of the target object + options.global - target is the global object + options.stat - export as static methods of target + options.proto - export as prototype methods of target + options.real - real prototype method for the `pure` version + options.forced - export even if the native feature is available + options.bind - bind methods to the target, required for the `pure` version + options.wrap - wrap constructors to preventing global pollution, required for the `pure` version + options.unsafe - use the simple assignment of property instead of delete + defineProperty + options.sham - add a flag to not completely full polyfills + options.enumerable - export as enumerable property + options.dontCallGetSet - prevent calling a getter on target + options.name - the .name of the function if it does not match the key +*/ +var _export = function (options, source) { + var TARGET = options.target; + var GLOBAL = options.global; + var STATIC = options.stat; + var FORCED, target, key, targetProperty, sourceProperty, descriptor; + if (GLOBAL) { + target = global$d; + } else if (STATIC) { + target = global$d[TARGET] || defineGlobalProperty(TARGET, {}); + } else { + target = (global$d[TARGET] || {}).prototype; + } + if (target) for (key in source) { + sourceProperty = source[key]; + if (options.dontCallGetSet) { + descriptor = getOwnPropertyDescriptor$2(target, key); + targetProperty = descriptor && descriptor.value; + } else targetProperty = target[key]; + FORCED = isForced$3(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced); + // contained in target + if (!FORCED && targetProperty !== undefined) { + if (typeof sourceProperty == typeof targetProperty) continue; + copyConstructorProperties$1(sourceProperty, targetProperty); + } + // add a flag to not completely full polyfills + if (options.sham || targetProperty && targetProperty.sham) { + createNonEnumerableProperty$2(sourceProperty, 'sham', true); + } + defineBuiltIn$8(target, key, sourceProperty, options); + } +}; + +var fails$h = fails$s; +var correctPrototypeGetter = !fails$h(function () { + function F() {/* empty */} + F.prototype.constructor = null; + // eslint-disable-next-line es/no-object-getprototypeof -- required for testing + return Object.getPrototypeOf(new F()) !== F.prototype; +}); + +var hasOwn$5 = hasOwnProperty_1; +var isCallable$9 = isCallable$m; +var toObject$3 = toObject$6; +var sharedKey = sharedKey$3; +var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter; +var IE_PROTO = sharedKey('IE_PROTO'); +var $Object = Object; +var ObjectPrototype = $Object.prototype; + +// `Object.getPrototypeOf` method +// https://tc39.es/ecma262/#sec-object.getprototypeof +// eslint-disable-next-line es/no-object-getprototypeof -- safe +var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) { + var object = toObject$3(O); + if (hasOwn$5(object, IE_PROTO)) return object[IE_PROTO]; + var constructor = object.constructor; + if (isCallable$9(constructor) && object instanceof constructor) { + return constructor.prototype; + } + return object instanceof $Object ? ObjectPrototype : null; +}; + +var fails$g = fails$s; +var isCallable$8 = isCallable$m; +var isObject$8 = isObject$f; +var getPrototypeOf$1 = objectGetPrototypeOf; +var defineBuiltIn$7 = defineBuiltIn$9; +var wellKnownSymbol$d = wellKnownSymbol$j; +var ITERATOR$5 = wellKnownSymbol$d('iterator'); +var BUGGY_SAFARI_ITERATORS$1 = false; + +// `%IteratorPrototype%` object +// https://tc39.es/ecma262/#sec-%iteratorprototype%-object +var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator; + +/* eslint-disable es/no-array-prototype-keys -- safe */ +if ([].keys) { + arrayIterator = [].keys(); + // Safari 8 has buggy iterators w/o `next` + if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;else { + PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator)); + if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype; + } +} +var NEW_ITERATOR_PROTOTYPE = !isObject$8(IteratorPrototype$2) || fails$g(function () { + var test = {}; + // FF44- legacy iterators case + return IteratorPrototype$2[ITERATOR$5].call(test) !== test; +}); +if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {}; + +// `%IteratorPrototype%[@@iterator]()` method +// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator +if (!isCallable$8(IteratorPrototype$2[ITERATOR$5])) { + defineBuiltIn$7(IteratorPrototype$2, ITERATOR$5, function () { + return this; + }); +} +var iteratorsCore = { + IteratorPrototype: IteratorPrototype$2, + BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1 +}; + +var defineProperty$5 = objectDefineProperty.f; +var hasOwn$4 = hasOwnProperty_1; +var wellKnownSymbol$c = wellKnownSymbol$j; +var TO_STRING_TAG$1 = wellKnownSymbol$c('toStringTag'); +var setToStringTag$4 = function (target, TAG, STATIC) { + if (target && !STATIC) target = target.prototype; + if (target && !hasOwn$4(target, TO_STRING_TAG$1)) { + defineProperty$5(target, TO_STRING_TAG$1, { + configurable: true, + value: TAG + }); + } +}; + +var IteratorPrototype$1 = iteratorsCore.IteratorPrototype; +var create$2 = objectCreate; +var createPropertyDescriptor$1 = createPropertyDescriptor$4; +var setToStringTag$3 = setToStringTag$4; +var Iterators$4 = iterators; +var returnThis$1 = function () { + return this; +}; +var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) { + var TO_STRING_TAG = NAME + ' Iterator'; + IteratorConstructor.prototype = create$2(IteratorPrototype$1, { + next: createPropertyDescriptor$1(+!ENUMERABLE_NEXT, next) + }); + setToStringTag$3(IteratorConstructor, TO_STRING_TAG, false); + Iterators$4[TO_STRING_TAG] = returnThis$1; + return IteratorConstructor; +}; + +var uncurryThis$c = functionUncurryThis; +var aCallable$5 = aCallable$8; +var functionUncurryThisAccessor = function (object, key, method) { + try { + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + return uncurryThis$c(aCallable$5(Object.getOwnPropertyDescriptor(object, key)[method])); + } catch (error) {/* empty */} +}; + +var isCallable$7 = isCallable$m; +var $String$1 = String; +var $TypeError$8 = TypeError; +var aPossiblePrototype$1 = function (argument) { + if (typeof argument == 'object' || isCallable$7(argument)) return argument; + throw $TypeError$8("Can't set " + $String$1(argument) + ' as a prototype'); +}; + +/* eslint-disable no-proto -- safe */ +var uncurryThisAccessor = functionUncurryThisAccessor; +var anObject$7 = anObject$c; +var aPossiblePrototype = aPossiblePrototype$1; + +// `Object.setPrototypeOf` method +// https://tc39.es/ecma262/#sec-object.setprototypeof +// Works with __proto__ only. Old v8 can't work with null proto objects. +// eslint-disable-next-line es/no-object-setprototypeof -- safe +var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () { + var CORRECT_SETTER = false; + var test = {}; + var setter; + try { + setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set'); + setter(test, []); + CORRECT_SETTER = test instanceof Array; + } catch (error) {/* empty */} + return function setPrototypeOf(O, proto) { + anObject$7(O); + aPossiblePrototype(proto); + if (CORRECT_SETTER) setter(O, proto);else O.__proto__ = proto; + return O; + }; +}() : undefined); + +var $$l = _export; +var call$b = functionCall; +var FunctionName = functionName; +var isCallable$6 = isCallable$m; +var createIteratorConstructor = iteratorCreateConstructor; +var getPrototypeOf = objectGetPrototypeOf; +var setPrototypeOf$2 = objectSetPrototypeOf; +var setToStringTag$2 = setToStringTag$4; +var createNonEnumerableProperty$1 = createNonEnumerableProperty$5; +var defineBuiltIn$6 = defineBuiltIn$9; +var wellKnownSymbol$b = wellKnownSymbol$j; +var Iterators$3 = iterators; +var IteratorsCore = iteratorsCore; +var PROPER_FUNCTION_NAME$2 = FunctionName.PROPER; +var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE; +var IteratorPrototype = IteratorsCore.IteratorPrototype; +var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS; +var ITERATOR$4 = wellKnownSymbol$b('iterator'); +var KEYS = 'keys'; +var VALUES = 'values'; +var ENTRIES = 'entries'; +var returnThis = function () { + return this; +}; +var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) { + createIteratorConstructor(IteratorConstructor, NAME, next); + var getIterationMethod = function (KIND) { + if (KIND === DEFAULT && defaultIterator) return defaultIterator; + if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND]; + switch (KIND) { + case KEYS: + return function keys() { + return new IteratorConstructor(this, KIND); + }; + case VALUES: + return function values() { + return new IteratorConstructor(this, KIND); + }; + case ENTRIES: + return function entries() { + return new IteratorConstructor(this, KIND); + }; + } + return function () { + return new IteratorConstructor(this); + }; + }; + var TO_STRING_TAG = NAME + ' Iterator'; + var INCORRECT_VALUES_NAME = false; + var IterablePrototype = Iterable.prototype; + var nativeIterator = IterablePrototype[ITERATOR$4] || IterablePrototype['@@iterator'] || DEFAULT && IterablePrototype[DEFAULT]; + var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT); + var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator; + var CurrentIteratorPrototype, methods, KEY; + + // fix native + if (anyNativeIterator) { + CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable())); + if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) { + if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) { + if (setPrototypeOf$2) { + setPrototypeOf$2(CurrentIteratorPrototype, IteratorPrototype); + } else if (!isCallable$6(CurrentIteratorPrototype[ITERATOR$4])) { + defineBuiltIn$6(CurrentIteratorPrototype, ITERATOR$4, returnThis); + } + } + // Set @@toStringTag to native iterators + setToStringTag$2(CurrentIteratorPrototype, TO_STRING_TAG, true); + } + } + + // fix Array.prototype.{ values, @@iterator }.name in V8 / FF + if (PROPER_FUNCTION_NAME$2 && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) { + if (CONFIGURABLE_FUNCTION_NAME) { + createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES); + } else { + INCORRECT_VALUES_NAME = true; + defaultIterator = function values() { + return call$b(nativeIterator, this); + }; + } + } + + // export additional methods + if (DEFAULT) { + methods = { + values: getIterationMethod(VALUES), + keys: IS_SET ? defaultIterator : getIterationMethod(KEYS), + entries: getIterationMethod(ENTRIES) + }; + if (FORCED) for (KEY in methods) { + if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) { + defineBuiltIn$6(IterablePrototype, KEY, methods[KEY]); + } + } else $$l({ + target: NAME, + proto: true, + forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME + }, methods); + } + + // define iterator + if (IterablePrototype[ITERATOR$4] !== defaultIterator) { + defineBuiltIn$6(IterablePrototype, ITERATOR$4, defaultIterator, { + name: DEFAULT + }); + } + Iterators$3[NAME] = defaultIterator; + return methods; +}; + +// `CreateIterResultObject` abstract operation +// https://tc39.es/ecma262/#sec-createiterresultobject +var createIterResultObject$3 = function (value, done) { + return { + value: value, + done: done + }; +}; + +var toIndexedObject$2 = toIndexedObject$7; +var addToUnscopables$2 = addToUnscopables$3; +var Iterators$2 = iterators; +var InternalStateModule$3 = internalState; +var defineProperty$4 = objectDefineProperty.f; +var defineIterator$2 = iteratorDefine; +var createIterResultObject$2 = createIterResultObject$3; +var DESCRIPTORS$5 = descriptors; +var ARRAY_ITERATOR = 'Array Iterator'; +var setInternalState$3 = InternalStateModule$3.set; +var getInternalState$2 = InternalStateModule$3.getterFor(ARRAY_ITERATOR); + +// `Array.prototype.entries` method +// https://tc39.es/ecma262/#sec-array.prototype.entries +// `Array.prototype.keys` method +// https://tc39.es/ecma262/#sec-array.prototype.keys +// `Array.prototype.values` method +// https://tc39.es/ecma262/#sec-array.prototype.values +// `Array.prototype[@@iterator]` method +// https://tc39.es/ecma262/#sec-array.prototype-@@iterator +// `CreateArrayIterator` internal method +// https://tc39.es/ecma262/#sec-createarrayiterator +var es_array_iterator = defineIterator$2(Array, 'Array', function (iterated, kind) { + setInternalState$3(this, { + type: ARRAY_ITERATOR, + target: toIndexedObject$2(iterated), + // target + index: 0, + // next index + kind: kind // kind + }); + // `%ArrayIteratorPrototype%.next` method + // https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next +}, function () { + var state = getInternalState$2(this); + var target = state.target; + var kind = state.kind; + var index = state.index++; + if (!target || index >= target.length) { + state.target = undefined; + return createIterResultObject$2(undefined, true); + } + if (kind == 'keys') return createIterResultObject$2(index, false); + if (kind == 'values') return createIterResultObject$2(target[index], false); + return createIterResultObject$2([index, target[index]], false); +}, 'values'); + +// argumentsList[@@iterator] is %ArrayProto_values% +// https://tc39.es/ecma262/#sec-createunmappedargumentsobject +// https://tc39.es/ecma262/#sec-createmappedargumentsobject +var values = Iterators$2.Arguments = Iterators$2.Array; + +// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables +addToUnscopables$2('keys'); +addToUnscopables$2('values'); +addToUnscopables$2('entries'); + +// V8 ~ Chrome 45- bug +if (DESCRIPTORS$5 && values.name !== 'values') try { + defineProperty$4(values, 'name', { + value: 'values' + }); +} catch (error) {/* empty */} + +var global$c = global$n; +var DOMIterables = domIterables; +var DOMTokenListPrototype = domTokenListPrototype; +var ArrayIteratorMethods = es_array_iterator; +var createNonEnumerableProperty = createNonEnumerableProperty$5; +var wellKnownSymbol$a = wellKnownSymbol$j; +var ITERATOR$3 = wellKnownSymbol$a('iterator'); +var TO_STRING_TAG = wellKnownSymbol$a('toStringTag'); +var ArrayValues = ArrayIteratorMethods.values; +var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) { + if (CollectionPrototype) { + // some Chrome versions have non-configurable methods on DOMTokenList + if (CollectionPrototype[ITERATOR$3] !== ArrayValues) try { + createNonEnumerableProperty(CollectionPrototype, ITERATOR$3, ArrayValues); + } catch (error) { + CollectionPrototype[ITERATOR$3] = ArrayValues; + } + if (!CollectionPrototype[TO_STRING_TAG]) { + createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME); + } + if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) { + // some Chrome versions have non-configurable methods on DOMTokenList + if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try { + createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]); + } catch (error) { + CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME]; + } + } + } +}; +for (var COLLECTION_NAME in DOMIterables) { + handlePrototype(global$c[COLLECTION_NAME] && global$c[COLLECTION_NAME].prototype, COLLECTION_NAME); +} +handlePrototype(DOMTokenListPrototype, 'DOMTokenList'); + +var global$b = global$n; +var path$1 = global$b; + +function _regeneratorRuntime() { + _regeneratorRuntime = function () { + return exports; + }; + var exports = {}, + Op = Object.prototype, + hasOwn = Op.hasOwnProperty, + defineProperty = Object.defineProperty || function (obj, key, desc) { + obj[key] = desc.value; + }, + $Symbol = "function" == typeof Symbol ? Symbol : {}, + iteratorSymbol = $Symbol.iterator || "@@iterator", + asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", + toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; + function define(obj, key, value) { + return Object.defineProperty(obj, key, { + value: value, + enumerable: !0, + configurable: !0, + writable: !0 + }), obj[key]; + } + try { + define({}, ""); + } catch (err) { + define = function (obj, key, value) { + return obj[key] = value; + }; + } + function wrap(innerFn, outerFn, self, tryLocsList) { + var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, + generator = Object.create(protoGenerator.prototype), + context = new Context(tryLocsList || []); + return defineProperty(generator, "_invoke", { + value: makeInvokeMethod(innerFn, self, context) + }), generator; + } + function tryCatch(fn, obj, arg) { + try { + return { + type: "normal", + arg: fn.call(obj, arg) + }; + } catch (err) { + return { + type: "throw", + arg: err + }; + } + } + exports.wrap = wrap; + var ContinueSentinel = {}; + function Generator() {} + function GeneratorFunction() {} + function GeneratorFunctionPrototype() {} + var IteratorPrototype = {}; + define(IteratorPrototype, iteratorSymbol, function () { + return this; + }); + var getProto = Object.getPrototypeOf, + NativeIteratorPrototype = getProto && getProto(getProto(values([]))); + NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); + var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); + function defineIteratorMethods(prototype) { + ["next", "throw", "return"].forEach(function (method) { + define(prototype, method, function (arg) { + return this._invoke(method, arg); + }); + }); + } + function AsyncIterator(generator, PromiseImpl) { + function invoke(method, arg, resolve, reject) { + var record = tryCatch(generator[method], generator, arg); + if ("throw" !== record.type) { + var result = record.arg, + value = result.value; + return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { + invoke("next", value, resolve, reject); + }, function (err) { + invoke("throw", err, resolve, reject); + }) : PromiseImpl.resolve(value).then(function (unwrapped) { + result.value = unwrapped, resolve(result); + }, function (error) { + return invoke("throw", error, resolve, reject); + }); + } + reject(record.arg); + } + var previousPromise; + defineProperty(this, "_invoke", { + value: function (method, arg) { + function callInvokeWithMethodAndArg() { + return new PromiseImpl(function (resolve, reject) { + invoke(method, arg, resolve, reject); + }); + } + return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); + } + }); + } + function makeInvokeMethod(innerFn, self, context) { + var state = "suspendedStart"; + return function (method, arg) { + if ("executing" === state) throw new Error("Generator is already running"); + if ("completed" === state) { + if ("throw" === method) throw arg; + return doneResult(); + } + for (context.method = method, context.arg = arg;;) { + var delegate = context.delegate; + if (delegate) { + var delegateResult = maybeInvokeDelegate(delegate, context); + if (delegateResult) { + if (delegateResult === ContinueSentinel) continue; + return delegateResult; + } + } + if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { + if ("suspendedStart" === state) throw state = "completed", context.arg; + context.dispatchException(context.arg); + } else "return" === context.method && context.abrupt("return", context.arg); + state = "executing"; + var record = tryCatch(innerFn, self, context); + if ("normal" === record.type) { + if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; + return { + value: record.arg, + done: context.done + }; + } + "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); + } + }; + } + function maybeInvokeDelegate(delegate, context) { + var methodName = context.method, + method = delegate.iterator[methodName]; + if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; + var record = tryCatch(method, delegate.iterator, context.arg); + if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; + var info = record.arg; + return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); + } + function pushTryEntry(locs) { + var entry = { + tryLoc: locs[0] + }; + 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); + } + function resetTryEntry(entry) { + var record = entry.completion || {}; + record.type = "normal", delete record.arg, entry.completion = record; + } + function Context(tryLocsList) { + this.tryEntries = [{ + tryLoc: "root" + }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); + } + function values(iterable) { + if (iterable) { + var iteratorMethod = iterable[iteratorSymbol]; + if (iteratorMethod) return iteratorMethod.call(iterable); + if ("function" == typeof iterable.next) return iterable; + if (!isNaN(iterable.length)) { + var i = -1, + next = function next() { + for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; + return next.value = undefined, next.done = !0, next; + }; + return next.next = next; + } + } + return { + next: doneResult + }; + } + function doneResult() { + return { + value: undefined, + done: !0 + }; + } + return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { + value: GeneratorFunctionPrototype, + configurable: !0 + }), defineProperty(GeneratorFunctionPrototype, "constructor", { + value: GeneratorFunction, + configurable: !0 + }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { + var ctor = "function" == typeof genFun && genFun.constructor; + return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); + }, exports.mark = function (genFun) { + return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; + }, exports.awrap = function (arg) { + return { + __await: arg + }; + }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { + return this; + }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { + void 0 === PromiseImpl && (PromiseImpl = Promise); + var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); + return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { + return result.done ? result.value : iter.next(); + }); + }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { + return this; + }), define(Gp, "toString", function () { + return "[object Generator]"; + }), exports.keys = function (val) { + var object = Object(val), + keys = []; + for (var key in object) keys.push(key); + return keys.reverse(), function next() { + for (; keys.length;) { + var key = keys.pop(); + if (key in object) return next.value = key, next.done = !1, next; + } + return next.done = !0, next; + }; + }, exports.values = values, Context.prototype = { + constructor: Context, + reset: function (skipTempReset) { + if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); + }, + stop: function () { + this.done = !0; + var rootRecord = this.tryEntries[0].completion; + if ("throw" === rootRecord.type) throw rootRecord.arg; + return this.rval; + }, + dispatchException: function (exception) { + if (this.done) throw exception; + var context = this; + function handle(loc, caught) { + return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; + } + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i], + record = entry.completion; + if ("root" === entry.tryLoc) return handle("end"); + if (entry.tryLoc <= this.prev) { + var hasCatch = hasOwn.call(entry, "catchLoc"), + hasFinally = hasOwn.call(entry, "finallyLoc"); + if (hasCatch && hasFinally) { + if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); + if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); + } else if (hasCatch) { + if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); + } else { + if (!hasFinally) throw new Error("try statement without catch or finally"); + if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); + } + } + } + }, + abrupt: function (type, arg) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { + var finallyEntry = entry; + break; + } + } + finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); + var record = finallyEntry ? finallyEntry.completion : {}; + return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); + }, + complete: function (record, afterLoc) { + if ("throw" === record.type) throw record.arg; + return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; + }, + finish: function (finallyLoc) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; + } + }, + catch: function (tryLoc) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.tryLoc === tryLoc) { + var record = entry.completion; + if ("throw" === record.type) { + var thrown = record.arg; + resetTryEntry(entry); + } + return thrown; + } + } + throw new Error("illegal catch attempt"); + }, + delegateYield: function (iterable, resultName, nextLoc) { + return this.delegate = { + iterator: values(iterable), + resultName: resultName, + nextLoc: nextLoc + }, "next" === this.method && (this.arg = undefined), ContinueSentinel; + } + }, exports; +} +function _typeof(obj) { + "@babel/helpers - typeof"; + + return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { + return typeof obj; + } : function (obj) { + return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }, _typeof(obj); +} +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { + try { + var info = gen[key](arg); + var value = info.value; + } catch (error) { + reject(error); + return; + } + if (info.done) { + resolve(value); + } else { + Promise.resolve(value).then(_next, _throw); + } +} +function _asyncToGenerator(fn) { + return function () { + var self = this, + args = arguments; + return new Promise(function (resolve, reject) { + var gen = fn.apply(self, args); + function _next(value) { + asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); + } + function _throw(err) { + asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); + } + _next(undefined); + }); + }; +} +function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } +} +function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); + } +} +function _createClass(Constructor, protoProps, staticProps) { + if (protoProps) _defineProperties(Constructor.prototype, protoProps); + if (staticProps) _defineProperties(Constructor, staticProps); + Object.defineProperty(Constructor, "prototype", { + writable: false + }); + return Constructor; +} +function _inherits(subClass, superClass) { + if (typeof superClass !== "function" && superClass !== null) { + throw new TypeError("Super expression must either be null or a function"); + } + subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { + value: subClass, + writable: true, + configurable: true + } + }); + Object.defineProperty(subClass, "prototype", { + writable: false + }); + if (superClass) _setPrototypeOf(subClass, superClass); +} +function _getPrototypeOf(o) { + _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }; + return _getPrototypeOf(o); +} +function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + return _setPrototypeOf(o, p); +} +function _isNativeReflectConstruct() { + if (typeof Reflect === "undefined" || !Reflect.construct) return false; + if (Reflect.construct.sham) return false; + if (typeof Proxy === "function") return true; + try { + Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); + return true; + } catch (e) { + return false; + } +} +function _assertThisInitialized(self) { + if (self === void 0) { + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + } + return self; +} +function _possibleConstructorReturn(self, call) { + if (call && (typeof call === "object" || typeof call === "function")) { + return call; + } else if (call !== void 0) { + throw new TypeError("Derived constructors may only return object or undefined"); + } + return _assertThisInitialized(self); +} +function _createSuper(Derived) { + var hasNativeReflectConstruct = _isNativeReflectConstruct(); + return function _createSuperInternal() { + var Super = _getPrototypeOf(Derived), + result; + if (hasNativeReflectConstruct) { + var NewTarget = _getPrototypeOf(this).constructor; + result = Reflect.construct(Super, arguments, NewTarget); + } else { + result = Super.apply(this, arguments); + } + return _possibleConstructorReturn(this, result); + }; +} +function _toConsumableArray(arr) { + return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); +} +function _arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return _arrayLikeToArray(arr); +} +function _iterableToArray(iter) { + if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); +} +function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if (typeof o === "string") return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + if (n === "Object" && o.constructor) n = o.constructor.name; + if (n === "Map" || n === "Set") return Array.from(o); + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); +} +function _arrayLikeToArray(arr, len) { + if (len == null || len > arr.length) len = arr.length; + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; +} +function _nonIterableSpread() { + throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); +} +function _createForOfIteratorHelper(o, allowArrayLike) { + var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; + if (!it) { + if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { + if (it) o = it; + var i = 0; + var F = function () {}; + return { + s: F, + n: function () { + if (i >= o.length) return { + done: true + }; + return { + done: false, + value: o[i++] + }; + }, + e: function (e) { + throw e; + }, + f: F + }; + } + throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); + } + var normalCompletion = true, + didErr = false, + err; + return { + s: function () { + it = it.call(o); + }, + n: function () { + var step = it.next(); + normalCompletion = step.done; + return step; + }, + e: function (e) { + didErr = true; + err = e; + }, + f: function () { + try { + if (!normalCompletion && it.return != null) it.return(); + } finally { + if (didErr) throw err; + } + } + }; +} +function _toPrimitive(input, hint) { + if (typeof input !== "object" || input === null) return input; + var prim = input[Symbol.toPrimitive]; + if (prim !== undefined) { + var res = prim.call(input, hint || "default"); + if (typeof res !== "object") return res; + throw new TypeError("@@toPrimitive must return a primitive value."); + } + return (hint === "string" ? String : Number)(input); +} +function _toPropertyKey(arg) { + var key = _toPrimitive(arg, "string"); + return typeof key === "symbol" ? key : String(key); +} + +/* eslint-disable es/no-array-prototype-indexof -- required for testing */ +var $$k = _export; +var uncurryThis$b = functionUncurryThisClause; +var $indexOf = arrayIncludes.indexOf; +var arrayMethodIsStrict = arrayMethodIsStrict$2; +var nativeIndexOf = uncurryThis$b([].indexOf); +var NEGATIVE_ZERO = !!nativeIndexOf && 1 / nativeIndexOf([1], 1, -0) < 0; +var FORCED$2 = NEGATIVE_ZERO || !arrayMethodIsStrict('indexOf'); + +// `Array.prototype.indexOf` method +// https://tc39.es/ecma262/#sec-array.prototype.indexof +$$k({ + target: 'Array', + proto: true, + forced: FORCED$2 +}, { + indexOf: function indexOf(searchElement /* , fromIndex = 0 */) { + var fromIndex = arguments.length > 1 ? arguments[1] : undefined; + return NEGATIVE_ZERO + // convert -0 to +0 + ? nativeIndexOf(this, searchElement, fromIndex) || 0 : $indexOf(this, searchElement, fromIndex); + } +}); + +var $TypeError$7 = TypeError; +var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991 + +var doesNotExceedSafeInteger$1 = function (it) { + if (it > MAX_SAFE_INTEGER) throw $TypeError$7('Maximum allowed index exceeded'); + return it; +}; + +var toPropertyKey = toPropertyKey$3; +var definePropertyModule = objectDefineProperty; +var createPropertyDescriptor = createPropertyDescriptor$4; +var createProperty$2 = function (object, key, value) { + var propertyKey = toPropertyKey(key); + if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));else object[propertyKey] = value; +}; + +var fails$f = fails$s; +var wellKnownSymbol$9 = wellKnownSymbol$j; +var V8_VERSION$2 = engineV8Version; +var SPECIES$3 = wellKnownSymbol$9('species'); +var arrayMethodHasSpeciesSupport$3 = function (METHOD_NAME) { + // We can't use this feature detection in V8 since it causes + // deoptimization and serious performance degradation + // https://github.com/zloirock/core-js/issues/677 + return V8_VERSION$2 >= 51 || !fails$f(function () { + var array = []; + var constructor = array.constructor = {}; + constructor[SPECIES$3] = function () { + return { + foo: 1 + }; + }; + return array[METHOD_NAME](Boolean).foo !== 1; + }); +}; + +var $$j = _export; +var fails$e = fails$s; +var isArray = isArray$2; +var isObject$7 = isObject$f; +var toObject$2 = toObject$6; +var lengthOfArrayLike$2 = lengthOfArrayLike$5; +var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1; +var createProperty$1 = createProperty$2; +var arraySpeciesCreate = arraySpeciesCreate$2; +var arrayMethodHasSpeciesSupport$2 = arrayMethodHasSpeciesSupport$3; +var wellKnownSymbol$8 = wellKnownSymbol$j; +var V8_VERSION$1 = engineV8Version; +var IS_CONCAT_SPREADABLE = wellKnownSymbol$8('isConcatSpreadable'); + +// We can't use this feature detection in V8 since it causes +// deoptimization and serious performance degradation +// https://github.com/zloirock/core-js/issues/679 +var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION$1 >= 51 || !fails$e(function () { + var array = []; + array[IS_CONCAT_SPREADABLE] = false; + return array.concat()[0] !== array; +}); +var isConcatSpreadable = function (O) { + if (!isObject$7(O)) return false; + var spreadable = O[IS_CONCAT_SPREADABLE]; + return spreadable !== undefined ? !!spreadable : isArray(O); +}; +var FORCED$1 = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport$2('concat'); + +// `Array.prototype.concat` method +// https://tc39.es/ecma262/#sec-array.prototype.concat +// with adding support of @@isConcatSpreadable and @@species +$$j({ + target: 'Array', + proto: true, + arity: 1, + forced: FORCED$1 +}, { + // eslint-disable-next-line no-unused-vars -- required for `.length` + concat: function concat(arg) { + var O = toObject$2(this); + var A = arraySpeciesCreate(O, 0); + var n = 0; + var i, k, length, len, E; + for (i = -1, length = arguments.length; i < length; i++) { + E = i === -1 ? O : arguments[i]; + if (isConcatSpreadable(E)) { + len = lengthOfArrayLike$2(E); + doesNotExceedSafeInteger(n + len); + for (k = 0; k < len; k++, n++) if (k in E) createProperty$1(A, n, E[k]); + } else { + doesNotExceedSafeInteger(n + 1); + createProperty$1(A, n++, E); + } + } + A.length = n; + return A; + } +}); + +var DESCRIPTORS$4 = descriptors; +var uncurryThis$a = functionUncurryThis; +var call$a = functionCall; +var fails$d = fails$s; +var objectKeys$1 = objectKeys$3; +var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols; +var propertyIsEnumerableModule = objectPropertyIsEnumerable; +var toObject$1 = toObject$6; +var IndexedObject = indexedObject; + +// eslint-disable-next-line es/no-object-assign -- safe +var $assign = Object.assign; +// eslint-disable-next-line es/no-object-defineproperty -- required for testing +var defineProperty$3 = Object.defineProperty; +var concat = uncurryThis$a([].concat); + +// `Object.assign` method +// https://tc39.es/ecma262/#sec-object.assign +var objectAssign = !$assign || fails$d(function () { + // should have correct order of operations (Edge bug) + if (DESCRIPTORS$4 && $assign({ + b: 1 + }, $assign(defineProperty$3({}, 'a', { + enumerable: true, + get: function () { + defineProperty$3(this, 'b', { + value: 3, + enumerable: false + }); + } + }), { + b: 2 + })).b !== 1) return true; + // should work with symbols and should have deterministic property order (V8 bug) + var A = {}; + var B = {}; + // eslint-disable-next-line es/no-symbol -- safe + var symbol = Symbol(); + var alphabet = 'abcdefghijklmnopqrst'; + A[symbol] = 7; + alphabet.split('').forEach(function (chr) { + B[chr] = chr; + }); + return $assign({}, A)[symbol] != 7 || objectKeys$1($assign({}, B)).join('') != alphabet; +}) ? function assign(target, source) { + // eslint-disable-line no-unused-vars -- required for `.length` + var T = toObject$1(target); + var argumentsLength = arguments.length; + var index = 1; + var getOwnPropertySymbols = getOwnPropertySymbolsModule.f; + var propertyIsEnumerable = propertyIsEnumerableModule.f; + while (argumentsLength > index) { + var S = IndexedObject(arguments[index++]); + var keys = getOwnPropertySymbols ? concat(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S); + var length = keys.length; + var j = 0; + var key; + while (length > j) { + key = keys[j++]; + if (!DESCRIPTORS$4 || call$a(propertyIsEnumerable, S, key)) T[key] = S[key]; + } + } + return T; +} : $assign; + +var $$i = _export; +var assign = objectAssign; + +// `Object.assign` method +// https://tc39.es/ecma262/#sec-object.assign +// eslint-disable-next-line es/no-object-assign -- required for testing +$$i({ + target: 'Object', + stat: true, + arity: 2, + forced: Object.assign !== assign +}, { + assign: assign +}); + +var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport; +var classof$6 = classof$8; + +// `Object.prototype.toString` method implementation +// https://tc39.es/ecma262/#sec-object.prototype.tostring +var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() { + return '[object ' + classof$6(this) + ']'; +}; + +var TO_STRING_TAG_SUPPORT = toStringTagSupport; +var defineBuiltIn$5 = defineBuiltIn$9; +var toString$6 = objectToString; + +// `Object.prototype.toString` method +// https://tc39.es/ecma262/#sec-object.prototype.tostring +if (!TO_STRING_TAG_SUPPORT) { + defineBuiltIn$5(Object.prototype, 'toString', toString$6, { + unsafe: true + }); +} + +var classof$5 = classofRaw$2; +var engineIsNode = typeof process != 'undefined' && classof$5(process) == 'process'; + +var makeBuiltIn = makeBuiltInExports; +var defineProperty$2 = objectDefineProperty; +var defineBuiltInAccessor$2 = function (target, name, descriptor) { + if (descriptor.get) makeBuiltIn(descriptor.get, name, { + getter: true + }); + if (descriptor.set) makeBuiltIn(descriptor.set, name, { + setter: true + }); + return defineProperty$2.f(target, name, descriptor); +}; + +var getBuiltIn$2 = getBuiltIn$7; +var defineBuiltInAccessor$1 = defineBuiltInAccessor$2; +var wellKnownSymbol$7 = wellKnownSymbol$j; +var DESCRIPTORS$3 = descriptors; +var SPECIES$2 = wellKnownSymbol$7('species'); +var setSpecies$2 = function (CONSTRUCTOR_NAME) { + var Constructor = getBuiltIn$2(CONSTRUCTOR_NAME); + if (DESCRIPTORS$3 && Constructor && !Constructor[SPECIES$2]) { + defineBuiltInAccessor$1(Constructor, SPECIES$2, { + configurable: true, + get: function () { + return this; + } + }); + } +}; + +var isPrototypeOf$3 = objectIsPrototypeOf; +var $TypeError$6 = TypeError; +var anInstance$3 = function (it, Prototype) { + if (isPrototypeOf$3(Prototype, it)) return it; + throw $TypeError$6('Incorrect invocation'); +}; + +var isConstructor = isConstructor$2; +var tryToString$2 = tryToString$4; +var $TypeError$5 = TypeError; + +// `Assert: IsConstructor(argument) is true` +var aConstructor$1 = function (argument) { + if (isConstructor(argument)) return argument; + throw $TypeError$5(tryToString$2(argument) + ' is not a constructor'); +}; + +var anObject$6 = anObject$c; +var aConstructor = aConstructor$1; +var isNullOrUndefined$3 = isNullOrUndefined$6; +var wellKnownSymbol$6 = wellKnownSymbol$j; +var SPECIES$1 = wellKnownSymbol$6('species'); + +// `SpeciesConstructor` abstract operation +// https://tc39.es/ecma262/#sec-speciesconstructor +var speciesConstructor$1 = function (O, defaultConstructor) { + var C = anObject$6(O).constructor; + var S; + return C === undefined || isNullOrUndefined$3(S = anObject$6(C)[SPECIES$1]) ? defaultConstructor : aConstructor(S); +}; + +var NATIVE_BIND = functionBindNative; +var FunctionPrototype = Function.prototype; +var apply$1 = FunctionPrototype.apply; +var call$9 = FunctionPrototype.call; + +// eslint-disable-next-line es/no-reflect -- safe +var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$9.bind(apply$1) : function () { + return call$9.apply(apply$1, arguments); +}); + +var uncurryThis$9 = functionUncurryThis; +var arraySlice$2 = uncurryThis$9([].slice); + +var $TypeError$4 = TypeError; +var validateArgumentsLength$1 = function (passed, required) { + if (passed < required) throw $TypeError$4('Not enough arguments'); + return passed; +}; + +var userAgent$2 = engineUserAgent; + +// eslint-disable-next-line redos/no-vulnerable -- safe +var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2); + +var global$a = global$n; +var apply = functionApply; +var bind$4 = functionBindContext; +var isCallable$5 = isCallable$m; +var hasOwn$3 = hasOwnProperty_1; +var fails$c = fails$s; +var html = html$2; +var arraySlice$1 = arraySlice$2; +var createElement = documentCreateElement$2; +var validateArgumentsLength = validateArgumentsLength$1; +var IS_IOS$1 = engineIsIos; +var IS_NODE$3 = engineIsNode; +var set = global$a.setImmediate; +var clear = global$a.clearImmediate; +var process$3 = global$a.process; +var Dispatch = global$a.Dispatch; +var Function$1 = global$a.Function; +var MessageChannel = global$a.MessageChannel; +var String$1 = global$a.String; +var counter = 0; +var queue$2 = {}; +var ONREADYSTATECHANGE = 'onreadystatechange'; +var $location, defer, channel, port; +fails$c(function () { + // Deno throws a ReferenceError on `location` access without `--location` flag + $location = global$a.location; +}); +var run = function (id) { + if (hasOwn$3(queue$2, id)) { + var fn = queue$2[id]; + delete queue$2[id]; + fn(); + } +}; +var runner = function (id) { + return function () { + run(id); + }; +}; +var eventListener = function (event) { + run(event.data); +}; +var globalPostMessageDefer = function (id) { + // old engines have not location.origin + global$a.postMessage(String$1(id), $location.protocol + '//' + $location.host); +}; + +// Node.js 0.9+ & IE10+ has setImmediate, otherwise: +if (!set || !clear) { + set = function setImmediate(handler) { + validateArgumentsLength(arguments.length, 1); + var fn = isCallable$5(handler) ? handler : Function$1(handler); + var args = arraySlice$1(arguments, 1); + queue$2[++counter] = function () { + apply(fn, undefined, args); + }; + defer(counter); + return counter; + }; + clear = function clearImmediate(id) { + delete queue$2[id]; + }; + // Node.js 0.8- + if (IS_NODE$3) { + defer = function (id) { + process$3.nextTick(runner(id)); + }; + // Sphere (JS game engine) Dispatch API + } else if (Dispatch && Dispatch.now) { + defer = function (id) { + Dispatch.now(runner(id)); + }; + // Browsers with MessageChannel, includes WebWorkers + // except iOS - https://github.com/zloirock/core-js/issues/624 + } else if (MessageChannel && !IS_IOS$1) { + channel = new MessageChannel(); + port = channel.port2; + channel.port1.onmessage = eventListener; + defer = bind$4(port.postMessage, port); + // Browsers with postMessage, skip WebWorkers + // IE8 has postMessage, but it's sync & typeof its postMessage is 'object' + } else if (global$a.addEventListener && isCallable$5(global$a.postMessage) && !global$a.importScripts && $location && $location.protocol !== 'file:' && !fails$c(globalPostMessageDefer)) { + defer = globalPostMessageDefer; + global$a.addEventListener('message', eventListener, false); + // IE8- + } else if (ONREADYSTATECHANGE in createElement('script')) { + defer = function (id) { + html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () { + html.removeChild(this); + run(id); + }; + }; + // Rest old browsers + } else { + defer = function (id) { + setTimeout(runner(id), 0); + }; + } +} +var task$1 = { + set: set, + clear: clear +}; + +var Queue$2 = function () { + this.head = null; + this.tail = null; +}; +Queue$2.prototype = { + add: function (item) { + var entry = { + item: item, + next: null + }; + var tail = this.tail; + if (tail) tail.next = entry;else this.head = entry; + this.tail = entry; + }, + get: function () { + var entry = this.head; + if (entry) { + var next = this.head = entry.next; + if (next === null) this.tail = null; + return entry.item; + } + } +}; +var queue$1 = Queue$2; + +var userAgent$1 = engineUserAgent; +var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && typeof Pebble != 'undefined'; + +var userAgent = engineUserAgent; +var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent); + +var global$9 = global$n; +var bind$3 = functionBindContext; +var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f; +var macrotask = task$1.set; +var Queue$1 = queue$1; +var IS_IOS = engineIsIos; +var IS_IOS_PEBBLE = engineIsIosPebble; +var IS_WEBOS_WEBKIT = engineIsWebosWebkit; +var IS_NODE$2 = engineIsNode; +var MutationObserver = global$9.MutationObserver || global$9.WebKitMutationObserver; +var document$2 = global$9.document; +var process$2 = global$9.process; +var Promise$1 = global$9.Promise; +// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask` +var queueMicrotaskDescriptor = getOwnPropertyDescriptor$1(global$9, 'queueMicrotask'); +var microtask$1 = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value; +var notify$1, toggle, node, promise, then; + +// modern engines have queueMicrotask method +if (!microtask$1) { + var queue = new Queue$1(); + var flush = function () { + var parent, fn; + if (IS_NODE$2 && (parent = process$2.domain)) parent.exit(); + while (fn = queue.get()) try { + fn(); + } catch (error) { + if (queue.head) notify$1(); + throw error; + } + if (parent) parent.enter(); + }; + + // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339 + // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898 + if (!IS_IOS && !IS_NODE$2 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) { + toggle = true; + node = document$2.createTextNode(''); + new MutationObserver(flush).observe(node, { + characterData: true + }); + notify$1 = function () { + node.data = toggle = !toggle; + }; + // environments with maybe non-completely correct, but existent Promise + } else if (!IS_IOS_PEBBLE && Promise$1 && Promise$1.resolve) { + // Promise.resolve without an argument throws an error in LG WebOS 2 + promise = Promise$1.resolve(undefined); + // workaround of WebKit ~ iOS Safari 10.1 bug + promise.constructor = Promise$1; + then = bind$3(promise.then, promise); + notify$1 = function () { + then(flush); + }; + // Node.js without promises + } else if (IS_NODE$2) { + notify$1 = function () { + process$2.nextTick(flush); + }; + // for other environments - macrotask based on: + // - setImmediate + // - MessageChannel + // - window.postMessage + // - onreadystatechange + // - setTimeout + } else { + // `webpack` dev server bug on IE global methods - use bind(fn, global) + macrotask = bind$3(macrotask, global$9); + notify$1 = function () { + macrotask(flush); + }; + } + microtask$1 = function (fn) { + if (!queue.head) notify$1(); + queue.add(fn); + }; +} +var microtask_1 = microtask$1; + +var hostReportErrors$1 = function (a, b) { + try { + // eslint-disable-next-line no-console -- safe + arguments.length == 1 ? console.error(a) : console.error(a, b); + } catch (error) {/* empty */} +}; + +var perform$3 = function (exec) { + try { + return { + error: false, + value: exec() + }; + } catch (error) { + return { + error: true, + value: error + }; + } +}; + +var global$8 = global$n; +var promiseNativeConstructor = global$8.Promise; + +/* global Deno -- Deno case */ +var engineIsDeno = typeof Deno == 'object' && Deno && typeof Deno.version == 'object'; + +var IS_DENO$1 = engineIsDeno; +var IS_NODE$1 = engineIsNode; +var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1 && typeof window == 'object' && typeof document == 'object'; + +var global$7 = global$n; +var NativePromiseConstructor$3 = promiseNativeConstructor; +var isCallable$4 = isCallable$m; +var isForced$2 = isForced_1; +var inspectSource = inspectSource$3; +var wellKnownSymbol$5 = wellKnownSymbol$j; +var IS_BROWSER = engineIsBrowser; +var IS_DENO = engineIsDeno; +var V8_VERSION = engineV8Version; +NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype; +var SPECIES = wellKnownSymbol$5('species'); +var SUBCLASSING = false; +var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$4(global$7.PromiseRejectionEvent); +var FORCED_PROMISE_CONSTRUCTOR$5 = isForced$2('Promise', function () { + var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3); + var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor$3); + // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables + // https://bugs.chromium.org/p/chromium/issues/detail?id=830565 + // We can't detect it synchronously, so just check versions + if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true; + // We can't use @@species feature detection in V8 since it causes + // deoptimization and performance degradation + // https://github.com/zloirock/core-js/issues/679 + if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) { + // Detect correctness of subclassing with @@species support + var promise = new NativePromiseConstructor$3(function (resolve) { + resolve(1); + }); + var FakePromise = function (exec) { + exec(function () {/* empty */}, function () {/* empty */}); + }; + var constructor = promise.constructor = {}; + constructor[SPECIES] = FakePromise; + SUBCLASSING = promise.then(function () {/* empty */}) instanceof FakePromise; + if (!SUBCLASSING) return true; + // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test + } + return !GLOBAL_CORE_JS_PROMISE && (IS_BROWSER || IS_DENO) && !NATIVE_PROMISE_REJECTION_EVENT$1; +}); +var promiseConstructorDetection = { + CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR$5, + REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT$1, + SUBCLASSING: SUBCLASSING +}; + +var newPromiseCapability$2 = {}; + +var aCallable$4 = aCallable$8; +var $TypeError$3 = TypeError; +var PromiseCapability = function (C) { + var resolve, reject; + this.promise = new C(function ($$resolve, $$reject) { + if (resolve !== undefined || reject !== undefined) throw $TypeError$3('Bad Promise constructor'); + resolve = $$resolve; + reject = $$reject; + }); + this.resolve = aCallable$4(resolve); + this.reject = aCallable$4(reject); +}; + +// `NewPromiseCapability` abstract operation +// https://tc39.es/ecma262/#sec-newpromisecapability +newPromiseCapability$2.f = function (C) { + return new PromiseCapability(C); +}; + +var $$h = _export; +var IS_NODE = engineIsNode; +var global$6 = global$n; +var call$8 = functionCall; +var defineBuiltIn$4 = defineBuiltIn$9; +var setPrototypeOf$1 = objectSetPrototypeOf; +var setToStringTag$1 = setToStringTag$4; +var setSpecies$1 = setSpecies$2; +var aCallable$3 = aCallable$8; +var isCallable$3 = isCallable$m; +var isObject$6 = isObject$f; +var anInstance$2 = anInstance$3; +var speciesConstructor = speciesConstructor$1; +var task = task$1.set; +var microtask = microtask_1; +var hostReportErrors = hostReportErrors$1; +var perform$2 = perform$3; +var Queue = queue$1; +var InternalStateModule$2 = internalState; +var NativePromiseConstructor$2 = promiseNativeConstructor; +var PromiseConstructorDetection = promiseConstructorDetection; +var newPromiseCapabilityModule$3 = newPromiseCapability$2; +var PROMISE = 'Promise'; +var FORCED_PROMISE_CONSTRUCTOR$4 = PromiseConstructorDetection.CONSTRUCTOR; +var NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT; +var NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING; +var getInternalPromiseState = InternalStateModule$2.getterFor(PROMISE); +var setInternalState$2 = InternalStateModule$2.set; +var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype; +var PromiseConstructor = NativePromiseConstructor$2; +var PromisePrototype = NativePromisePrototype$1; +var TypeError$2 = global$6.TypeError; +var document$1 = global$6.document; +var process$1 = global$6.process; +var newPromiseCapability$1 = newPromiseCapabilityModule$3.f; +var newGenericPromiseCapability = newPromiseCapability$1; +var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$6.dispatchEvent); +var UNHANDLED_REJECTION = 'unhandledrejection'; +var REJECTION_HANDLED = 'rejectionhandled'; +var PENDING = 0; +var FULFILLED = 1; +var REJECTED = 2; +var HANDLED = 1; +var UNHANDLED = 2; +var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen; + +// helpers +var isThenable = function (it) { + var then; + return isObject$6(it) && isCallable$3(then = it.then) ? then : false; +}; +var callReaction = function (reaction, state) { + var value = state.value; + var ok = state.state == FULFILLED; + var handler = ok ? reaction.ok : reaction.fail; + var resolve = reaction.resolve; + var reject = reaction.reject; + var domain = reaction.domain; + var result, then, exited; + try { + if (handler) { + if (!ok) { + if (state.rejection === UNHANDLED) onHandleUnhandled(state); + state.rejection = HANDLED; + } + if (handler === true) result = value;else { + if (domain) domain.enter(); + result = handler(value); // can throw + if (domain) { + domain.exit(); + exited = true; + } + } + if (result === reaction.promise) { + reject(TypeError$2('Promise-chain cycle')); + } else if (then = isThenable(result)) { + call$8(then, result, resolve, reject); + } else resolve(result); + } else reject(value); + } catch (error) { + if (domain && !exited) domain.exit(); + reject(error); + } +}; +var notify = function (state, isReject) { + if (state.notified) return; + state.notified = true; + microtask(function () { + var reactions = state.reactions; + var reaction; + while (reaction = reactions.get()) { + callReaction(reaction, state); + } + state.notified = false; + if (isReject && !state.rejection) onUnhandled(state); + }); +}; +var dispatchEvent = function (name, promise, reason) { + var event, handler; + if (DISPATCH_EVENT) { + event = document$1.createEvent('Event'); + event.promise = promise; + event.reason = reason; + event.initEvent(name, false, true); + global$6.dispatchEvent(event); + } else event = { + promise: promise, + reason: reason + }; + if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$6['on' + name])) handler(event);else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason); +}; +var onUnhandled = function (state) { + call$8(task, global$6, function () { + var promise = state.facade; + var value = state.value; + var IS_UNHANDLED = isUnhandled(state); + var result; + if (IS_UNHANDLED) { + result = perform$2(function () { + if (IS_NODE) { + process$1.emit('unhandledRejection', value, promise); + } else dispatchEvent(UNHANDLED_REJECTION, promise, value); + }); + // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should + state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED; + if (result.error) throw result.value; + } + }); +}; +var isUnhandled = function (state) { + return state.rejection !== HANDLED && !state.parent; +}; +var onHandleUnhandled = function (state) { + call$8(task, global$6, function () { + var promise = state.facade; + if (IS_NODE) { + process$1.emit('rejectionHandled', promise); + } else dispatchEvent(REJECTION_HANDLED, promise, state.value); + }); +}; +var bind$2 = function (fn, state, unwrap) { + return function (value) { + fn(state, value, unwrap); + }; +}; +var internalReject = function (state, value, unwrap) { + if (state.done) return; + state.done = true; + if (unwrap) state = unwrap; + state.value = value; + state.state = REJECTED; + notify(state, true); +}; +var internalResolve = function (state, value, unwrap) { + if (state.done) return; + state.done = true; + if (unwrap) state = unwrap; + try { + if (state.facade === value) throw TypeError$2("Promise can't be resolved itself"); + var then = isThenable(value); + if (then) { + microtask(function () { + var wrapper = { + done: false + }; + try { + call$8(then, value, bind$2(internalResolve, wrapper, state), bind$2(internalReject, wrapper, state)); + } catch (error) { + internalReject(wrapper, error, state); + } + }); + } else { + state.value = value; + state.state = FULFILLED; + notify(state, false); + } + } catch (error) { + internalReject({ + done: false + }, error, state); + } +}; + +// constructor polyfill +if (FORCED_PROMISE_CONSTRUCTOR$4) { + // 25.4.3.1 Promise(executor) + PromiseConstructor = function Promise(executor) { + anInstance$2(this, PromisePrototype); + aCallable$3(executor); + call$8(Internal, this); + var state = getInternalPromiseState(this); + try { + executor(bind$2(internalResolve, state), bind$2(internalReject, state)); + } catch (error) { + internalReject(state, error); + } + }; + PromisePrototype = PromiseConstructor.prototype; + + // eslint-disable-next-line no-unused-vars -- required for `.length` + Internal = function Promise(executor) { + setInternalState$2(this, { + type: PROMISE, + done: false, + notified: false, + parent: false, + reactions: new Queue(), + rejection: false, + state: PENDING, + value: undefined + }); + }; + + // `Promise.prototype.then` method + // https://tc39.es/ecma262/#sec-promise.prototype.then + Internal.prototype = defineBuiltIn$4(PromisePrototype, 'then', function then(onFulfilled, onRejected) { + var state = getInternalPromiseState(this); + var reaction = newPromiseCapability$1(speciesConstructor(this, PromiseConstructor)); + state.parent = true; + reaction.ok = isCallable$3(onFulfilled) ? onFulfilled : true; + reaction.fail = isCallable$3(onRejected) && onRejected; + reaction.domain = IS_NODE ? process$1.domain : undefined; + if (state.state == PENDING) state.reactions.add(reaction);else microtask(function () { + callReaction(reaction, state); + }); + return reaction.promise; + }); + OwnPromiseCapability = function () { + var promise = new Internal(); + var state = getInternalPromiseState(promise); + this.promise = promise; + this.resolve = bind$2(internalResolve, state); + this.reject = bind$2(internalReject, state); + }; + newPromiseCapabilityModule$3.f = newPromiseCapability$1 = function (C) { + return C === PromiseConstructor || C === PromiseWrapper ? new OwnPromiseCapability(C) : newGenericPromiseCapability(C); + }; + if (isCallable$3(NativePromiseConstructor$2) && NativePromisePrototype$1 !== Object.prototype) { + nativeThen = NativePromisePrototype$1.then; + if (!NATIVE_PROMISE_SUBCLASSING) { + // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs + defineBuiltIn$4(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) { + var that = this; + return new PromiseConstructor(function (resolve, reject) { + call$8(nativeThen, that, resolve, reject); + }).then(onFulfilled, onRejected); + // https://github.com/zloirock/core-js/issues/640 + }, { + unsafe: true + }); + } + + // make `.constructor === Promise` work for native promise-based APIs + try { + delete NativePromisePrototype$1.constructor; + } catch (error) {/* empty */} + + // make `instanceof Promise` work for native promise-based APIs + if (setPrototypeOf$1) { + setPrototypeOf$1(NativePromisePrototype$1, PromisePrototype); + } + } +} +$$h({ + global: true, + constructor: true, + wrap: true, + forced: FORCED_PROMISE_CONSTRUCTOR$4 +}, { + Promise: PromiseConstructor +}); +setToStringTag$1(PromiseConstructor, PROMISE, false); +setSpecies$1(PROMISE); + +var wellKnownSymbol$4 = wellKnownSymbol$j; +var Iterators$1 = iterators; +var ITERATOR$2 = wellKnownSymbol$4('iterator'); +var ArrayPrototype = Array.prototype; + +// check on default Array iterator +var isArrayIteratorMethod$1 = function (it) { + return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$2] === it); +}; + +var classof$4 = classof$8; +var getMethod$1 = getMethod$3; +var isNullOrUndefined$2 = isNullOrUndefined$6; +var Iterators = iterators; +var wellKnownSymbol$3 = wellKnownSymbol$j; +var ITERATOR$1 = wellKnownSymbol$3('iterator'); +var getIteratorMethod$2 = function (it) { + if (!isNullOrUndefined$2(it)) return getMethod$1(it, ITERATOR$1) || getMethod$1(it, '@@iterator') || Iterators[classof$4(it)]; +}; + +var call$7 = functionCall; +var aCallable$2 = aCallable$8; +var anObject$5 = anObject$c; +var tryToString$1 = tryToString$4; +var getIteratorMethod$1 = getIteratorMethod$2; +var $TypeError$2 = TypeError; +var getIterator$1 = function (argument, usingIterator) { + var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator; + if (aCallable$2(iteratorMethod)) return anObject$5(call$7(iteratorMethod, argument)); + throw $TypeError$2(tryToString$1(argument) + ' is not iterable'); +}; + +var call$6 = functionCall; +var anObject$4 = anObject$c; +var getMethod = getMethod$3; +var iteratorClose$1 = function (iterator, kind, value) { + var innerResult, innerError; + anObject$4(iterator); + try { + innerResult = getMethod(iterator, 'return'); + if (!innerResult) { + if (kind === 'throw') throw value; + return value; + } + innerResult = call$6(innerResult, iterator); + } catch (error) { + innerError = true; + innerResult = error; + } + if (kind === 'throw') throw value; + if (innerError) throw innerResult; + anObject$4(innerResult); + return value; +}; + +var bind$1 = functionBindContext; +var call$5 = functionCall; +var anObject$3 = anObject$c; +var tryToString = tryToString$4; +var isArrayIteratorMethod = isArrayIteratorMethod$1; +var lengthOfArrayLike$1 = lengthOfArrayLike$5; +var isPrototypeOf$2 = objectIsPrototypeOf; +var getIterator = getIterator$1; +var getIteratorMethod = getIteratorMethod$2; +var iteratorClose = iteratorClose$1; +var $TypeError$1 = TypeError; +var Result = function (stopped, result) { + this.stopped = stopped; + this.result = result; +}; +var ResultPrototype = Result.prototype; +var iterate$4 = function (iterable, unboundFunction, options) { + var that = options && options.that; + var AS_ENTRIES = !!(options && options.AS_ENTRIES); + var IS_RECORD = !!(options && options.IS_RECORD); + var IS_ITERATOR = !!(options && options.IS_ITERATOR); + var INTERRUPTED = !!(options && options.INTERRUPTED); + var fn = bind$1(unboundFunction, that); + var iterator, iterFn, index, length, result, next, step; + var stop = function (condition) { + if (iterator) iteratorClose(iterator, 'normal', condition); + return new Result(true, condition); + }; + var callFn = function (value) { + if (AS_ENTRIES) { + anObject$3(value); + return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]); + } + return INTERRUPTED ? fn(value, stop) : fn(value); + }; + if (IS_RECORD) { + iterator = iterable.iterator; + } else if (IS_ITERATOR) { + iterator = iterable; + } else { + iterFn = getIteratorMethod(iterable); + if (!iterFn) throw $TypeError$1(tryToString(iterable) + ' is not iterable'); + // optimisation for array iterators + if (isArrayIteratorMethod(iterFn)) { + for (index = 0, length = lengthOfArrayLike$1(iterable); length > index; index++) { + result = callFn(iterable[index]); + if (result && isPrototypeOf$2(ResultPrototype, result)) return result; + } + return new Result(false); + } + iterator = getIterator(iterable, iterFn); + } + next = IS_RECORD ? iterable.next : iterator.next; + while (!(step = call$5(next, iterator)).done) { + try { + result = callFn(step.value); + } catch (error) { + iteratorClose(iterator, 'throw', error); + } + if (typeof result == 'object' && result && isPrototypeOf$2(ResultPrototype, result)) return result; + } + return new Result(false); +}; + +var wellKnownSymbol$2 = wellKnownSymbol$j; +var ITERATOR = wellKnownSymbol$2('iterator'); +var SAFE_CLOSING = false; +try { + var called = 0; + var iteratorWithReturn = { + next: function () { + return { + done: !!called++ + }; + }, + 'return': function () { + SAFE_CLOSING = true; + } + }; + iteratorWithReturn[ITERATOR] = function () { + return this; + }; + // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing + Array.from(iteratorWithReturn, function () { + throw 2; + }); +} catch (error) {/* empty */} +var checkCorrectnessOfIteration$2 = function (exec, SKIP_CLOSING) { + if (!SKIP_CLOSING && !SAFE_CLOSING) return false; + var ITERATION_SUPPORT = false; + try { + var object = {}; + object[ITERATOR] = function () { + return { + next: function () { + return { + done: ITERATION_SUPPORT = true + }; + } + }; + }; + exec(object); + } catch (error) {/* empty */} + return ITERATION_SUPPORT; +}; + +var NativePromiseConstructor$1 = promiseNativeConstructor; +var checkCorrectnessOfIteration$1 = checkCorrectnessOfIteration$2; +var FORCED_PROMISE_CONSTRUCTOR$3 = promiseConstructorDetection.CONSTRUCTOR; +var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCorrectnessOfIteration$1(function (iterable) { + NativePromiseConstructor$1.all(iterable).then(undefined, function () {/* empty */}); +}); + +var $$g = _export; +var call$4 = functionCall; +var aCallable$1 = aCallable$8; +var newPromiseCapabilityModule$2 = newPromiseCapability$2; +var perform$1 = perform$3; +var iterate$3 = iterate$4; +var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration; + +// `Promise.all` method +// https://tc39.es/ecma262/#sec-promise.all +$$g({ + target: 'Promise', + stat: true, + forced: PROMISE_STATICS_INCORRECT_ITERATION$1 +}, { + all: function all(iterable) { + var C = this; + var capability = newPromiseCapabilityModule$2.f(C); + var resolve = capability.resolve; + var reject = capability.reject; + var result = perform$1(function () { + var $promiseResolve = aCallable$1(C.resolve); + var values = []; + var counter = 0; + var remaining = 1; + iterate$3(iterable, function (promise) { + var index = counter++; + var alreadyCalled = false; + remaining++; + call$4($promiseResolve, C, promise).then(function (value) { + if (alreadyCalled) return; + alreadyCalled = true; + values[index] = value; + --remaining || resolve(values); + }, reject); + }); + --remaining || resolve(values); + }); + if (result.error) reject(result.value); + return capability.promise; + } +}); + +var $$f = _export; +var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR; +var NativePromiseConstructor = promiseNativeConstructor; +var getBuiltIn$1 = getBuiltIn$7; +var isCallable$2 = isCallable$m; +var defineBuiltIn$3 = defineBuiltIn$9; +var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype; + +// `Promise.prototype.catch` method +// https://tc39.es/ecma262/#sec-promise.prototype.catch +$$f({ + target: 'Promise', + proto: true, + forced: FORCED_PROMISE_CONSTRUCTOR$2, + real: true +}, { + 'catch': function (onRejected) { + return this.then(undefined, onRejected); + } +}); + +// makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then` +if (isCallable$2(NativePromiseConstructor)) { + var method = getBuiltIn$1('Promise').prototype['catch']; + if (NativePromisePrototype['catch'] !== method) { + defineBuiltIn$3(NativePromisePrototype, 'catch', method, { + unsafe: true + }); + } +} + +var $$e = _export; +var call$3 = functionCall; +var aCallable = aCallable$8; +var newPromiseCapabilityModule$1 = newPromiseCapability$2; +var perform = perform$3; +var iterate$2 = iterate$4; +var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration; + +// `Promise.race` method +// https://tc39.es/ecma262/#sec-promise.race +$$e({ + target: 'Promise', + stat: true, + forced: PROMISE_STATICS_INCORRECT_ITERATION +}, { + race: function race(iterable) { + var C = this; + var capability = newPromiseCapabilityModule$1.f(C); + var reject = capability.reject; + var result = perform(function () { + var $promiseResolve = aCallable(C.resolve); + iterate$2(iterable, function (promise) { + call$3($promiseResolve, C, promise).then(capability.resolve, reject); + }); + }); + if (result.error) reject(result.value); + return capability.promise; + } +}); + +var $$d = _export; +var call$2 = functionCall; +var newPromiseCapabilityModule = newPromiseCapability$2; +var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR; + +// `Promise.reject` method +// https://tc39.es/ecma262/#sec-promise.reject +$$d({ + target: 'Promise', + stat: true, + forced: FORCED_PROMISE_CONSTRUCTOR$1 +}, { + reject: function reject(r) { + var capability = newPromiseCapabilityModule.f(this); + call$2(capability.reject, undefined, r); + return capability.promise; + } +}); + +var anObject$2 = anObject$c; +var isObject$5 = isObject$f; +var newPromiseCapability = newPromiseCapability$2; +var promiseResolve$1 = function (C, x) { + anObject$2(C); + if (isObject$5(x) && x.constructor === C) return x; + var promiseCapability = newPromiseCapability.f(C); + var resolve = promiseCapability.resolve; + resolve(x); + return promiseCapability.promise; +}; + +var $$c = _export; +var getBuiltIn = getBuiltIn$7; +var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR; +var promiseResolve = promiseResolve$1; +getBuiltIn('Promise'); + +// `Promise.resolve` method +// https://tc39.es/ecma262/#sec-promise.resolve +$$c({ + target: 'Promise', + stat: true, + forced: FORCED_PROMISE_CONSTRUCTOR +}, { + resolve: function resolve(x) { + return promiseResolve(this, x); + } +}); + +var classof$3 = classof$8; +var $String = String; +var toString$5 = function (argument) { + if (classof$3(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string'); + return $String(argument); +}; + +var anObject$1 = anObject$c; + +// `RegExp.prototype.flags` getter implementation +// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags +var regexpFlags$1 = function () { + var that = anObject$1(this); + var result = ''; + if (that.hasIndices) result += 'd'; + if (that.global) result += 'g'; + if (that.ignoreCase) result += 'i'; + if (that.multiline) result += 'm'; + if (that.dotAll) result += 's'; + if (that.unicode) result += 'u'; + if (that.unicodeSets) result += 'v'; + if (that.sticky) result += 'y'; + return result; +}; + +var fails$b = fails$s; +var global$5 = global$n; + +// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError +var $RegExp$2 = global$5.RegExp; +var UNSUPPORTED_Y$1 = fails$b(function () { + var re = $RegExp$2('a', 'y'); + re.lastIndex = 2; + return re.exec('abcd') != null; +}); + +// UC Browser bug +// https://github.com/zloirock/core-js/issues/1008 +var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$b(function () { + return !$RegExp$2('a', 'y').sticky; +}); +var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$b(function () { + // https://bugzilla.mozilla.org/show_bug.cgi?id=773687 + var re = $RegExp$2('^r', 'gy'); + re.lastIndex = 2; + return re.exec('str') != null; +}); +var regexpStickyHelpers = { + BROKEN_CARET: BROKEN_CARET, + MISSED_STICKY: MISSED_STICKY, + UNSUPPORTED_Y: UNSUPPORTED_Y$1 +}; + +var fails$a = fails$s; +var global$4 = global$n; + +// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError +var $RegExp$1 = global$4.RegExp; +var regexpUnsupportedDotAll = fails$a(function () { + var re = $RegExp$1('.', 's'); + return !(re.dotAll && re.exec('\n') && re.flags === 's'); +}); + +var fails$9 = fails$s; +var global$3 = global$n; + +// babel-minify and Closure Compiler transpiles RegExp('(?b)', 'g') -> /(?b)/g and it causes SyntaxError +var $RegExp = global$3.RegExp; +var regexpUnsupportedNcg = fails$9(function () { + var re = $RegExp('(?b)', 'g'); + return re.exec('b').groups.a !== 'b' || 'b'.replace(re, '$c') !== 'bc'; +}); + +/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */ +/* eslint-disable regexp/no-useless-quantifier -- testing */ +var call$1 = functionCall; +var uncurryThis$8 = functionUncurryThis; +var toString$4 = toString$5; +var regexpFlags = regexpFlags$1; +var stickyHelpers = regexpStickyHelpers; +var shared = sharedExports; +var create$1 = objectCreate; +var getInternalState$1 = internalState.get; +var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll; +var UNSUPPORTED_NCG = regexpUnsupportedNcg; +var nativeReplace = shared('native-string-replace', String.prototype.replace); +var nativeExec = RegExp.prototype.exec; +var patchedExec = nativeExec; +var charAt$2 = uncurryThis$8(''.charAt); +var indexOf = uncurryThis$8(''.indexOf); +var replace$1 = uncurryThis$8(''.replace); +var stringSlice$2 = uncurryThis$8(''.slice); +var UPDATES_LAST_INDEX_WRONG = function () { + var re1 = /a/; + var re2 = /b*/g; + call$1(nativeExec, re1, 'a'); + call$1(nativeExec, re2, 'a'); + return re1.lastIndex !== 0 || re2.lastIndex !== 0; +}(); +var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET; + +// nonparticipating capturing group, copied from es5-shim's String#split patch. +var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined; +var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG; +if (PATCH) { + patchedExec = function exec(string) { + var re = this; + var state = getInternalState$1(re); + var str = toString$4(string); + var raw = state.raw; + var result, reCopy, lastIndex, match, i, object, group; + if (raw) { + raw.lastIndex = re.lastIndex; + result = call$1(patchedExec, raw, str); + re.lastIndex = raw.lastIndex; + return result; + } + var groups = state.groups; + var sticky = UNSUPPORTED_Y && re.sticky; + var flags = call$1(regexpFlags, re); + var source = re.source; + var charsAdded = 0; + var strCopy = str; + if (sticky) { + flags = replace$1(flags, 'y', ''); + if (indexOf(flags, 'g') === -1) { + flags += 'g'; + } + strCopy = stringSlice$2(str, re.lastIndex); + // Support anchored sticky behavior. + if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$2(str, re.lastIndex - 1) !== '\n')) { + source = '(?: ' + source + ')'; + strCopy = ' ' + strCopy; + charsAdded++; + } + // ^(? + rx + ) is needed, in combination with some str slicing, to + // simulate the 'y' flag. + reCopy = new RegExp('^(?:' + source + ')', flags); + } + if (NPCG_INCLUDED) { + reCopy = new RegExp('^' + source + '$(?!\\s)', flags); + } + if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex; + match = call$1(nativeExec, sticky ? reCopy : re, strCopy); + if (sticky) { + if (match) { + match.input = stringSlice$2(match.input, charsAdded); + match[0] = stringSlice$2(match[0], charsAdded); + match.index = re.lastIndex; + re.lastIndex += match[0].length; + } else re.lastIndex = 0; + } else if (UPDATES_LAST_INDEX_WRONG && match) { + re.lastIndex = re.global ? match.index + match[0].length : lastIndex; + } + if (NPCG_INCLUDED && match && match.length > 1) { + // Fix browsers whose `exec` methods don't consistently return `undefined` + // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/ + call$1(nativeReplace, match[0], reCopy, function () { + for (i = 1; i < arguments.length - 2; i++) { + if (arguments[i] === undefined) match[i] = undefined; + } + }); + } + if (match && groups) { + match.groups = object = create$1(null); + for (i = 0; i < groups.length; i++) { + group = groups[i]; + object[group[0]] = match[group[1]]; + } + } + return match; + }; +} +var regexpExec = patchedExec; + +var $$b = _export; +var exec = regexpExec; + +// `RegExp.prototype.exec` method +// https://tc39.es/ecma262/#sec-regexp.prototype.exec +$$b({ + target: 'RegExp', + proto: true, + forced: /./.exec !== exec +}, { + exec: exec +}); + +/** + * Provide feature detection + * @class Features + */ +var Features = /*#__PURE__*/function () { + function Features() { + _classCallCheck(this, Features); + } + _createClass(Features, null, [{ + key: "webgl", + get: + /** + * If the browser has WebGL support + * @property {boolean} webgl + */ + function get() { + var canvas = document.createElement('canvas'); + return !!(canvas && (canvas.getContext('webgl') || canvas.getContext('experimental-webgl'))); + } + + /** + * If the browser has Canvas support + * @property {boolean} canvas + */ + }, { + key: "canvas", + get: function get() { + var canvas = document.createElement('canvas'); + return !!(canvas !== null && canvas.getContext && canvas.getContext('2d')); + } + + /** + * If the browser has WebAudio API support + * @property {boolean} webaudio + */ + }, { + key: "webaudio", + get: function get() { + return 'webkitAudioContext' in window || 'AudioContext' in window; + } + + /** + * If the browser has HTMLAudio support + * @property {boolean} htmlAudio + */ + }, { + key: "htmlAudio", + get: function get() { + return 'HTMLAudioElement' in window; + } + + /** + * If the browser has Web Sockets API + * @property {boolean} websockets + */ + }, { + key: "websockets", + get: function get() { + return 'WebSocket' in window || 'MozWebSocket' in window; + } + + /** + * If the browser has Geolocation API + * @property {boolean} geolocation + */ + }, { + key: "geolocation", + get: function get() { + return 'geolocation' in navigator; + } + + /** + * If the browser has Web Workers API + * @property {boolean} webworkers + */ + }, { + key: "webworkers", + get: function get() { + return 'function' === typeof Worker; + } + + /** + * If the browser has touch + * @property {boolean} touch + */ + }, { + key: "touch", + get: function get() { + return !!('ontouchstart' in window || + // iOS & Android + navigator.msPointerEnabled && navigator.msMaxTouchPoints > 0 || + // IE10 + navigator.pointerEnabled && navigator.maxTouchPoints > 0); // IE11+ + } + + /** + * Test for basic browser compatiliblity + * @method basic + * @static + * @return {String} The error message, if fails + */ + }, { + key: "basic", + value: function basic() { + if (!Features.canvas) { + return 'Browser does not support canvas'; + } else if (!Features.webaudio && !Features.htmlAudio) { + return 'Browser does not support WebAudio or HTMLAudio'; + } + return null; + } + + /** + * See if the current bowser has the correct features + * @method test + * @static + * @param {object} capabilities The capabilities + * @param {object} [capabilities.features] The features + * @param {object} [capabilities.features.webgl] WebGL required + * @param {object} [capabilities.features.geolocation] Geolocation required + * @param {object} [capabilities.features.webworkers] Web Workers API required + * @param {object} [capabilities.features.webaudio] WebAudio API required + * @param {object} [capabilities.features.websockets] WebSockets required + * @param {object} [capabilities.sizes] The sizes + * @param {Boolean} [capabilities.sizes.xsmall] Screens < 480 + * @param {Boolean} [capabilities.sizes.small] Screens < 768 + * @param {Boolean} [capabilities.sizes.medium] Screens < 992 + * @param {Boolean} [capabilities.sizes.large] Screens < 1200 + * @param {Boolean} [capabilities.sizes.xlarge] Screens >= 1200 + * @param {object} [capabilities.ui] The ui + * @param {Boolean} [capabilities.ui.touch] Touch capable + * @return {String|null} The error, or else returns null + */ + }, { + key: "test", + value: function test(capabilities) { + // check for basic compatibility + var err = this.basic(); + if (err) { + return err; + } + var features = capabilities.features; + var ui = capabilities.ui; + var sizes = capabilities.sizes; + for (var name in features) { + if (features[name] === true && !Features[name]) { + // Failed built-in feature check + return 'Browser does not support ' + name; + } + } + + // Failed negative touch requirement + if (!ui.touch && Features.touch) { + return 'Game does not support touch input'; + } + + // Check the sizes + var size = Math.max(window.screen.width, window.screen.height); + if (!sizes.xsmall && size < 480) { + return 'Game doesn\'t support extra small screens'; + } + if (!sizes.small && size < 768) { + return 'Game doesn\'t support small screens'; + } + if (!sizes.medium && size < 992) { + return 'Game doesn\'t support medium screens'; + } + if (!sizes.large && size < 1200) { + return 'Game doesn\'t support large screens'; + } + if (!sizes.xlarge && size >= 1200) { + return 'Game doesn\'t support extra large screens'; + } + return null; + } + + /** + * Returns browser feature support info + * @returns {string} + */ + }, { + key: "info", + get: function get() { + return "Browser Feature Detection\n\t\t\t\tCanvas support ".concat(Features.canvas ? "\u2713" : "\xD7", "\n\t\t\t\tWebGL support ").concat(Features.webgl ? "\u2713" : "\xD7", "\n\t\t\t\tWebAudio support ").concat(Features.webAudio ? "\u2713" : "\xD7"); + } + }]); + return Features; +}(); + +var uncurryThis$7 = functionUncurryThis; +var toIntegerOrInfinity = toIntegerOrInfinity$3; +var toString$3 = toString$5; +var requireObjectCoercible$2 = requireObjectCoercible$5; +var charAt$1 = uncurryThis$7(''.charAt); +var charCodeAt$1 = uncurryThis$7(''.charCodeAt); +var stringSlice$1 = uncurryThis$7(''.slice); +var createMethod$2 = function (CONVERT_TO_STRING) { + return function ($this, pos) { + var S = toString$3(requireObjectCoercible$2($this)); + var position = toIntegerOrInfinity(pos); + var size = S.length; + var first, second; + if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined; + first = charCodeAt$1(S, position); + return first < 0xD800 || first > 0xDBFF || position + 1 === size || (second = charCodeAt$1(S, position + 1)) < 0xDC00 || second > 0xDFFF ? CONVERT_TO_STRING ? charAt$1(S, position) : first : CONVERT_TO_STRING ? stringSlice$1(S, position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000; + }; +}; +var stringMultibyte = { + // `String.prototype.codePointAt` method + // https://tc39.es/ecma262/#sec-string.prototype.codepointat + codeAt: createMethod$2(false), + // `String.prototype.at` method + // https://github.com/mathiasbynens/String.prototype.at + charAt: createMethod$2(true) +}; + +var charAt = stringMultibyte.charAt; +var toString$2 = toString$5; +var InternalStateModule$1 = internalState; +var defineIterator$1 = iteratorDefine; +var createIterResultObject$1 = createIterResultObject$3; +var STRING_ITERATOR = 'String Iterator'; +var setInternalState$1 = InternalStateModule$1.set; +var getInternalState = InternalStateModule$1.getterFor(STRING_ITERATOR); + +// `String.prototype[@@iterator]` method +// https://tc39.es/ecma262/#sec-string.prototype-@@iterator +defineIterator$1(String, 'String', function (iterated) { + setInternalState$1(this, { + type: STRING_ITERATOR, + string: toString$2(iterated), + index: 0 + }); + // `%StringIteratorPrototype%.next` method + // https://tc39.es/ecma262/#sec-%stringiteratorprototype%.next +}, function next() { + var state = getInternalState(this); + var string = state.string; + var index = state.index; + var point; + if (index >= string.length) return createIterResultObject$1(undefined, true); + point = charAt(string, index); + state.index += point.length; + return createIterResultObject$1(point, false); +}); + +var $$a = _export; +var $filter = arrayIteration.filter; +var arrayMethodHasSpeciesSupport$1 = arrayMethodHasSpeciesSupport$3; +var HAS_SPECIES_SUPPORT$1 = arrayMethodHasSpeciesSupport$1('filter'); + +// `Array.prototype.filter` method +// https://tc39.es/ecma262/#sec-array.prototype.filter +// with adding support of @@species +$$a({ + target: 'Array', + proto: true, + forced: !HAS_SPECIES_SUPPORT$1 +}, { + filter: function filter(callbackfn /* , thisArg */) { + return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); + } +}); + +var $$9 = _export; +var $find = arrayIteration.find; +var addToUnscopables$1 = addToUnscopables$3; +var FIND = 'find'; +var SKIPS_HOLES = true; + +// Shouldn't skip holes +if (FIND in []) Array(1)[FIND](function () { + SKIPS_HOLES = false; +}); + +// `Array.prototype.find` method +// https://tc39.es/ecma262/#sec-array.prototype.find +$$9({ + target: 'Array', + proto: true, + forced: SKIPS_HOLES +}, { + find: function find(callbackfn /* , that = undefined */) { + return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); + } +}); + +// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables +addToUnscopables$1(FIND); + +function t(t, e) { + return t(e = { + exports: {} + }, e.exports), e.exports; +} +var e = t(function (t) { + function e(t) { + return (e = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) { + return typeof t; + } : function (t) { + return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; + })(t); + } + function n(r) { + return "function" == typeof Symbol && "symbol" === e(Symbol.iterator) ? t.exports = n = function (t) { + return e(t); + } : t.exports = n = function (t) { + return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : e(t); + }, n(r); + } + t.exports = n; +}); +var n = function (t, e) { + if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function"); +}; +function r(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r); + } +} +var o = function (t, e, n) { + return e && r(t.prototype, e), n && r(t, n), t; + }, + i = function () { + function t() { + n(this, t), this._listeners = {}; + } + return o(t, [{ + key: "on", + value: function (t, e) { + var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 0; + this._listeners[t] || (this._listeners[t] = []), e._priority = parseInt(n) || 0, -1 === this._listeners[t].indexOf(e) && (this._listeners[t].push(e), this._listeners[t].length > 1 && this._listeners[t].sort(this.listenerSorter)); + } + }, { + key: "listenerSorter", + value: function (t, e) { + return t._priority - e._priority; + } + }, { + key: "off", + value: function (t, e) { + if (void 0 !== this._listeners[t]) if (void 0 !== e) { + var n = this._listeners[t].indexOf(e); + -1 < n && this._listeners[t].splice(n, 1); + } else delete this._listeners[t]; + } + }, { + key: "trigger", + value: function (t) { + var n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; + if ("string" == typeof t && (t = { + type: t, + data: "object" === e(n) && null !== n ? n : {} + }), void 0 !== this._listeners[t.type]) for (var r = this._listeners[t.type].length - 1; r >= 0; r--) this._listeners[t.type][r](t); + } + }, { + key: "destroy", + value: function () { + this._listeners = {}; + } + }]), t; + }(), + s = t(function (t) { + var e = function (t) { + var e, + n = Object.prototype, + r = n.hasOwnProperty, + o = "function" == typeof Symbol ? Symbol : {}, + i = o.iterator || "@@iterator", + s = o.asyncIterator || "@@asyncIterator", + a = o.toStringTag || "@@toStringTag"; + function c(t, e, n, r) { + var o = e && e.prototype instanceof d ? e : d, + i = Object.create(o.prototype), + s = new S(r || []); + return i._invoke = function (t, e, n) { + var r = h; + return function (o, i) { + if (r === f) throw new Error("Generator is already running"); + if (r === p) { + if ("throw" === o) throw i; + return P(); + } + for (n.method = o, n.arg = i;;) { + var s = n.delegate; + if (s) { + var a = O(s, n); + if (a) { + if (a === y) continue; + return a; + } + } + if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { + if (r === h) throw r = p, n.arg; + n.dispatchException(n.arg); + } else "return" === n.method && n.abrupt("return", n.arg); + r = f; + var c = u(t, e, n); + if ("normal" === c.type) { + if (r = n.done ? p : l, c.arg === y) continue; + return { + value: c.arg, + done: n.done + }; + } + "throw" === c.type && (r = p, n.method = "throw", n.arg = c.arg); + } + }; + }(t, n, s), i; + } + function u(t, e, n) { + try { + return { + type: "normal", + arg: t.call(e, n) + }; + } catch (t) { + return { + type: "throw", + arg: t + }; + } + } + t.wrap = c; + var h = "suspendedStart", + l = "suspendedYield", + f = "executing", + p = "completed", + y = {}; + function d() {} + function v() {} + function g() {} + var m = {}; + m[i] = function () { + return this; + }; + var w = Object.getPrototypeOf, + b = w && w(w(j([]))); + b && b !== n && r.call(b, i) && (m = b); + var _ = g.prototype = d.prototype = Object.create(m); + function x(t) { + ["next", "throw", "return"].forEach(function (e) { + t[e] = function (t) { + return this._invoke(e, t); + }; + }); + } + function L(t) { + function e(n, o, i, s) { + var a = u(t[n], t, o); + if ("throw" !== a.type) { + var c = a.arg, + h = c.value; + return h && "object" == typeof h && r.call(h, "__await") ? Promise.resolve(h.__await).then(function (t) { + e("next", t, i, s); + }, function (t) { + e("throw", t, i, s); + }) : Promise.resolve(h).then(function (t) { + c.value = t, i(c); + }, function (t) { + return e("throw", t, i, s); + }); + } + s(a.arg); + } + var n; + this._invoke = function (t, r) { + function o() { + return new Promise(function (n, o) { + e(t, r, n, o); + }); + } + return n = n ? n.then(o, o) : o(); + }; + } + function O(t, n) { + var r = t.iterator[n.method]; + if (r === e) { + if (n.delegate = null, "throw" === n.method) { + if (t.iterator.return && (n.method = "return", n.arg = e, O(t, n), "throw" === n.method)) return y; + n.method = "throw", n.arg = new TypeError("The iterator does not provide a 'throw' method"); + } + return y; + } + var o = u(r, t.iterator, n.arg); + if ("throw" === o.type) return n.method = "throw", n.arg = o.arg, n.delegate = null, y; + var i = o.arg; + return i ? i.done ? (n[t.resultName] = i.value, n.next = t.nextLoc, "return" !== n.method && (n.method = "next", n.arg = e), n.delegate = null, y) : i : (n.method = "throw", n.arg = new TypeError("iterator result is not an object"), n.delegate = null, y); + } + function E(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 k(t) { + var e = t.completion || {}; + e.type = "normal", delete e.arg, t.completion = e; + } + function S(t) { + this.tryEntries = [{ + tryLoc: "root" + }], t.forEach(E, this), this.reset(!0); + } + function j(t) { + if (t) { + var n = t[i]; + if (n) return n.call(t); + if ("function" == typeof t.next) return t; + if (!isNaN(t.length)) { + var o = -1, + s = function n() { + for (; ++o < t.length;) if (r.call(t, o)) return n.value = t[o], n.done = !1, n; + return n.value = e, n.done = !0, n; + }; + return s.next = s; + } + } + return { + next: P + }; + } + function P() { + return { + value: e, + done: !0 + }; + } + return v.prototype = _.constructor = g, g.constructor = v, g[a] = v.displayName = "GeneratorFunction", t.isGeneratorFunction = function (t) { + var e = "function" == typeof t && t.constructor; + return !!e && (e === v || "GeneratorFunction" === (e.displayName || e.name)); + }, t.mark = function (t) { + return Object.setPrototypeOf ? Object.setPrototypeOf(t, g) : (t.__proto__ = g, a in t || (t[a] = "GeneratorFunction")), t.prototype = Object.create(_), t; + }, t.awrap = function (t) { + return { + __await: t + }; + }, x(L.prototype), L.prototype[s] = function () { + return this; + }, t.AsyncIterator = L, t.async = function (e, n, r, o) { + var i = new L(c(e, n, r, o)); + return t.isGeneratorFunction(n) ? i : i.next().then(function (t) { + return t.done ? t.value : i.next(); + }); + }, x(_), _[a] = "Generator", _[i] = function () { + return this; + }, _.toString = function () { + return "[object Generator]"; + }, t.keys = function (t) { + var e = []; + for (var n in t) e.push(n); + return e.reverse(), function n() { + for (; e.length;) { + var r = e.pop(); + if (r in t) return n.value = r, n.done = !1, n; + } + return n.done = !0, n; + }; + }, t.values = j, S.prototype = { + constructor: S, + reset: function (t) { + if (this.prev = 0, this.next = 0, this.sent = this._sent = e, this.done = !1, this.delegate = null, this.method = "next", this.arg = e, this.tryEntries.forEach(k), !t) for (var n in this) "t" === n.charAt(0) && r.call(this, n) && !isNaN(+n.slice(1)) && (this[n] = e); + }, + stop: function () { + this.done = !0; + var t = this.tryEntries[0].completion; + if ("throw" === t.type) throw t.arg; + return this.rval; + }, + dispatchException: function (t) { + if (this.done) throw t; + var n = this; + function o(r, o) { + return a.type = "throw", a.arg = t, n.next = r, o && (n.method = "next", n.arg = e), !!o; + } + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var s = this.tryEntries[i], + a = s.completion; + if ("root" === s.tryLoc) return o("end"); + if (s.tryLoc <= this.prev) { + var c = r.call(s, "catchLoc"), + u = r.call(s, "finallyLoc"); + if (c && u) { + if (this.prev < s.catchLoc) return o(s.catchLoc, !0); + if (this.prev < s.finallyLoc) return o(s.finallyLoc); + } else if (c) { + if (this.prev < s.catchLoc) return o(s.catchLoc, !0); + } else { + if (!u) throw new Error("try statement without catch or finally"); + if (this.prev < s.finallyLoc) return o(s.finallyLoc); + } + } + } + }, + abrupt: function (t, e) { + for (var n = this.tryEntries.length - 1; n >= 0; --n) { + var o = this.tryEntries[n]; + if (o.tryLoc <= this.prev && r.call(o, "finallyLoc") && this.prev < o.finallyLoc) { + var i = o; + break; + } + } + i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); + var s = i ? i.completion : {}; + return s.type = t, s.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(s); + }, + complete: function (t, e) { + if ("throw" === t.type) throw t.arg; + return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; + }, + finish: function (t) { + for (var e = this.tryEntries.length - 1; e >= 0; --e) { + var n = this.tryEntries[e]; + if (n.finallyLoc === t) return this.complete(n.completion, n.afterLoc), k(n), y; + } + }, + 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; + k(n); + } + return o; + } + } + throw new Error("illegal catch attempt"); + }, + delegateYield: function (t, n, r) { + return this.delegate = { + iterator: j(t), + resultName: n, + nextLoc: r + }, "next" === this.method && (this.arg = e), y; + } + }, t; + }(t.exports); + try { + regeneratorRuntime = e; + } catch (t) { + Function("r", "regeneratorRuntime = r")(e); + } + }); +var a = function (t) { + if (void 0 === t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return t; +}; +var c = function (t, n) { + return !n || "object" !== e(n) && "function" != typeof n ? a(t) : n; + }, + u = t(function (t) { + function e(n) { + return t.exports = e = Object.setPrototypeOf ? Object.getPrototypeOf : function (t) { + return t.__proto__ || Object.getPrototypeOf(t); + }, e(n); + } + t.exports = e; + }); +var h = function (t, e) { + for (; !Object.prototype.hasOwnProperty.call(t, e) && null !== (t = u(t));); + return t; + }, + l = t(function (t) { + function e(n, r, o) { + return "undefined" != typeof Reflect && Reflect.get ? t.exports = e = Reflect.get : t.exports = e = function (t, e, n) { + var r = h(t, e); + if (r) { + var o = Object.getOwnPropertyDescriptor(r, e); + return o.get ? o.get.call(n) : o.value; + } + }, e(n, r, o || n); + } + t.exports = e; + }), + f = t(function (t) { + function e(n, r) { + return t.exports = e = Object.setPrototypeOf || function (t, e) { + return t.__proto__ = e, t; + }, e(n, r); + } + t.exports = e; + }); +var p = 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 && f(t, e); + }, + y = function (t) { + function r() { + var t, + e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 100 * Math.random() | 0; + return n(this, r), (t = c(this, u(r).call(this))).id = "BELLHOP:".concat(e), t.connected = !1, t.isChild = !0, t.connecting = !1, t.debug = !1, t.origin = "*", t._sendLater = [], t.iframe = null, t.receive = t.receive.bind(a(t)), t; + } + return p(r, i), o(r, [{ + key: "receive", + value: function (t) { + if (this.target === t.source) if (this.logDebugMessage(!0, t), "connected" === t.data) this.onConnectionReceived(t.data);else { + var n = t.data; + if ("string" == typeof n) try { + n = JSON.parse(n); + } catch (t) { + console.warn("Bellhop error: ", t); + } + this.connected && "object" === e(n) && n.type && this.trigger(n); + } + } + }, { + key: "onConnectionReceived", + value: function (t) { + if (this.connecting = !1, this.connected = !0, !this.isChild) { + if (!this.target) return; + this.target.postMessage(t, this.origin); + } + for (var e = 0; e < this._sendLater.length; e++) { + var n = this._sendLater[e], + r = n.type, + o = n.data; + this.send(r, o); + } + this._sendLater.length = 0, this.trigger("connected"); + } + }, { + key: "connect", + value: function (t) { + var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "*"; + this.connecting || (this.disconnect(), this.connecting = !0, t instanceof HTMLIFrameElement && (this.iframe = t), this.isChild = void 0 === t, this.supported = !0, this.isChild && (this.supported = window != t), this.origin = e, window.addEventListener("message", this.receive), this.isChild && (window === this.target ? this.trigger("failed") : this.target.postMessage("connected", this.origin))); + } + }, { + key: "disconnect", + value: function () { + this.connected = !1, this.connecting = !1, this.origin = null, this.iframe = null, this.isChild = !0, this._sendLater.length = 0, window.removeEventListener("message", this.receive); + } + }, { + key: "send", + value: function (t) { + var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; + if ("string" != typeof t) throw "The event type must be a string"; + var n = { + type: t, + data: e + }; + this.logDebugMessage(!1, n), this.connecting ? this._sendLater.push(n) : this.target.postMessage(JSON.stringify(n), this.origin); + } + }, { + key: "fetch", + value: function (t, e) { + var n = this, + r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}, + o = arguments.length > 3 && void 0 !== arguments[3] && arguments[3]; + if (!this.connecting && !this.connected) throw "No connection, please call connect() first"; + var i = function t(r) { + o && n.off(r.type, t), e(r); + }; + this.on(t, i), this.send(t, r); + } + }, { + key: "respond", + value: function (t) { + var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, + n = arguments.length > 2 && void 0 !== arguments[2] && arguments[2], + r = this, + o = function t(o) { + return s.async(function (i) { + for (;;) switch (i.prev = i.next) { + case 0: + if (n && r.off(o, t), "function" != typeof e) { + i.next = 10; + break; + } + return i.t0 = r, i.t1 = o.type, i.next = 6, s.awrap(e()); + case 6: + i.t2 = i.sent, i.t0.send.call(i.t0, i.t1, i.t2), i.next = 11; + break; + case 10: + r.send(o.type, e); + case 11: + case "end": + return i.stop(); + } + }); + }; + this.on(t, o); + } + }, { + key: "logDebugMessage", + value: function () { + var t = arguments.length > 0 && void 0 !== arguments[0] && arguments[0], + e = arguments.length > 1 ? arguments[1] : void 0; + this.debug && "function" == typeof this.debug ? this.debug({ + isChild: this.isChild, + received: t, + message: e + }) : this.debug && console.log("Bellhop Instance (".concat(this.isChild ? "Child" : "Parent", ") ").concat(t ? "Receieved" : "Sent"), e); + } + }, { + key: "destroy", + value: function () { + l(u(r.prototype), "destroy", this).call(this), this.disconnect(), this._sendLater.length = 0; + } + }, { + key: "target", + get: function () { + return this.isChild ? window.parent : this.iframe.contentWindow; + } + }]), r; + }(); + +/** + * + * + * @export + * @class PluginManager + */ +var PluginManager = /*#__PURE__*/function () { + /** + *Creates an instance of PluginManager. + * @memberof PluginManager + */ + function PluginManager(_ref) { + var _ref$plugins = _ref.plugins, + plugins = _ref$plugins === void 0 ? [] : _ref$plugins; + _classCallCheck(this, PluginManager); + this.client = new y(); + // @ts-ignore + this.client.hidden = this.client.receive.bind(this.client); + // @ts-ignore + this.client.hiddenSend = this.client.send.bind(this.client); + this.client.receive = function (event) { + this.hidden(event); + }.bind(this.client); + this.client.send = function (event, data) { + this.hiddenSend(event, data); + }.bind(this.client); + this.plugins = plugins; + } + + /** + * + * + * @returns + * @memberof PluginManager + */ + _createClass(PluginManager, [{ + key: "setupPlugins", + value: function setupPlugins() { + var _this = this; + var preloads = []; + var _loop = function _loop(i) { + if (!_this.plugins[i].preload) { + return "continue"; + } + preloads.push(_this.plugins[i].preload(_this).catch(function preloadFail(error) { + this.plugins[i].preloadFailed = true; + console.warn(this.plugins[i].name, 'Preload Failed:', error); + }.bind(_this))); + }; + for (var i = 0, l = this.plugins.length; i < l; i++) { + var _ret = _loop(i); + if (_ret === "continue") continue; + } + + // ~wait for all preloads to resolve + return Promise.all(preloads).then(function () { + // Remove plugins that fail to load. + _this.plugins = _this.plugins.filter(function (plugin) { + return plugin.preloadFailed !== true; + }); + + //init + _this.plugins.forEach(function (plugin) { + if (!plugin.init) { + return; + } + plugin.init(_this); + }); + + //start + _this.plugins.forEach(function (plugin) { + if (!plugin.start) { + return; + } + plugin.start(_this); + }); + }); + } + + /** + * Registers a plugin to be used by PluginManagers, sorting it by priority order. + * @param {BasePlugin} plugin The plugin to register. + */ + }, { + key: "uses", + value: function uses(plugin) { + this.plugins.push(plugin); + } + + /** + * Finds a plugin by name. + * @param {string} name The name of the plugin. + * @returns {BasePlugin} + */ + }, { + key: "getPlugin", + value: function getPlugin(name) { + return this.plugins.find(function (plugin) { + return plugin.name === name; + }); + } + }]); + return PluginManager; +}(); + +var version = "2.4.3"; + +/** + * The application container + * @class Container + * @property {Bellhop} client Communication layer between the container and application + * @property {boolean} loaded Check to see if a application is loaded + * @property {boolean} loading Check to see if a application is loading + * @property {object} release The current release data + * @property {HTMLIFrameElement} iframe The DOM object for the iframe + * @static @property {string} version The current version of the library + */ +var Container = /*#__PURE__*/function (_PluginManager) { + _inherits(Container, _PluginManager); + var _super = _createSuper(Container); + /** + *Creates an instance of Container. + * @param {object} config + * @param {string | HTMLIFrameElement} iframeOrSelector + * @param {Array | null} [config.plugins] + * @param {object | null} [config.context={}] + * @memberof Container + */ + function Container(iframeOrSelector) { + var _this; + var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, + plugins = _ref.plugins, + _ref$context = _ref.context, + context = _ref$context === void 0 ? {} : _ref$context; + _classCallCheck(this, Container); + _this = _super.call(this, { + plugins: plugins + }); + _this.iframe = iframeOrSelector instanceof HTMLIFrameElement ? iframeOrSelector : document.querySelector(iframeOrSelector); + if (null === _this.iframe) { + throw new Error('No iframe was found with the provided selector'); + } + _this.loaded = false; + _this.loading = false; + _this.release = null; + + // context object that plugins can pick up on + _this._context = context; + _this.onLoading = _this.onLoading.bind(_assertThisInitialized(_this)); + _this.onLoadDone = _this.onLoadDone.bind(_assertThisInitialized(_this)); + _this.onLoadDone = _this.onLoadDone.bind(_assertThisInitialized(_this)); + _this.onEndGame = _this.onEndGame.bind(_assertThisInitialized(_this)); + _this.onLocalError = _this.onLocalError.bind(_assertThisInitialized(_this)); + _this.initClient(); + _this.setupPlugins(); + return _this; + } + + /** + * The game is starting to load + * @memberof Container + */ + _createClass(Container, [{ + key: "onLoading", + value: function onLoading() { + this.client.trigger('opening'); + } + + /** + * Reset the mutes for audio and captions + * @memberof Container + */ + }, { + key: "onLoadDone", + value: function onLoadDone() { + this.loading = false; + this.loaded = true; + this.iframe.classList.remove('loading'); + this.client.trigger('opened'); + } + + /** + * The application ended and destroyed itself + * @memberof Container + */ + }, { + key: "onEndGame", + value: function onEndGame() { + this.reset(); + } + /** + * Handle the local errors + * @method onLocalError + * @private + * @param {Event} $event Bellhop event + */ + }, { + key: "onLocalError", + value: function onLocalError($event) { + console.error('SpringRoll Container error: ', $event, new Error().stack); + } + + /** + * Reset all the buttons back to their original setting + * and clear the iframe. + * @memberof Container + */ + }, { + key: "reset", + value: function reset() { + var wasLoaded = this.loaded || this.loading; + if (wasLoaded) { + this.client.trigger('closed'); + } + + // Reset state + this.loaded = false; + this.loading = false; + + // Clear the iframe src location + this.iframe.setAttribute('src', ''); + this.iframe.classList.remove('loading'); + } + + /** + * Set up communication layer between site and application. + * May be called from subclasses if they create/destroy Bellhop instances. + * @memberof Container + */ + }, { + key: "initClient", + value: function initClient() { + //Handle bellhop events coming from the application + this.client.on('loading', this.onLoading); + this.client.on('loaded', this.onLoadDone); + this.client.on('loadDone', this.onLoadDone); + this.client.on('endGame', this.onEndGame); + this.client.on('localError', this.onLocalError); + // @ts-ignore + this.client.connect(this.iframe); + } + + /** + * If there was an error when closing, reset the container + * @memberof Container + */ + }, { + key: "_onCloseFailed", + value: function _onCloseFailed() { + this.reset(); // force close the app + } + + /** + * Open a application or path + * @param {string} userPath The full path to the application to load + * @param {object} [userOptions] The open options + * @param {boolean} [userOptions.singlePlay=false] If we should play in single play mode + * @param {object | null} [userOptions.playOptions=null] The optional play options + * @memberof Container + */ + }, { + key: "_internalOpen", + value: function _internalOpen(userPath) { + var _ref2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, + _ref2$singlePlay = _ref2.singlePlay, + singlePlay = _ref2$singlePlay === void 0 ? false : _ref2$singlePlay, + _ref2$playOptions = _ref2.playOptions, + playOptions = _ref2$playOptions === void 0 ? null : _ref2$playOptions; + var options = { + singlePlay: singlePlay, + playOptions: playOptions + }; + this.reset(); + this.loading = true; + this.initClient(); + var err = Features.basic(); + if (err) { + console.error('ERROR:', err); + this.client.trigger('unsupported'); + } + var path = userPath; + if (null !== options.playOptions) { + var playOptionsQueryString = 'playOptions=' + encodeURIComponent(JSON.stringify(options.playOptions)); + path = -1 === userPath.indexOf('?') ? "".concat(userPath, "?").concat(playOptionsQueryString) : "".concat(userPath, "&").concat(playOptionsQueryString); + } + this.iframe.classList.add('loading'); + this.iframe.setAttribute('src', path); + this.client.respond('singlePlay', singlePlay); + this.client.respond('playOptions', playOptions); + this.client.trigger('open'); + } + + /** + * + * + * @param {string} path + * @param {object} [options={}] + * @memberof Container + */ + }, { + key: "openPath", + value: function openPath(path) { + var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + // This should be deprecated, support for old function signature + if ('object' !== _typeof(options)) { + console.warn('SpringRoll Container.openPath was passed a invalid options parameter. Using default parameters instead'); + options = {}; + } + this._internalOpen(path, Object.assign({ + singlePlay: false, + playOptions: {} + }, options)); + } + + /** + * Open application based on an API Call to SpringRoll Connect + * @param {string} api + * @param {object} options + * @param {string} [options.query=''] + * @param {boolean} [options.singlePlay=false] + * @param {null | object} [options.playOptions=null] + * @returns {Promise} + * @memberof Container + */ + }, { + key: "openRemote", + value: function () { + var _openRemote = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(api) { + var _ref3, + _ref3$query, + query, + _ref3$singlePlay, + singlePlay, + _ref3$playOptions, + playOptions, + response, + json, + release, + error, + _args = arguments; + return _regeneratorRuntime().wrap(function _callee$(_context) { + while (1) switch (_context.prev = _context.next) { + case 0: + _ref3 = _args.length > 1 && _args[1] !== undefined ? _args[1] : {}, _ref3$query = _ref3.query, query = _ref3$query === void 0 ? '' : _ref3$query, _ref3$singlePlay = _ref3.singlePlay, singlePlay = _ref3$singlePlay === void 0 ? false : _ref3$singlePlay, _ref3$playOptions = _ref3.playOptions, playOptions = _ref3$playOptions === void 0 ? null : _ref3$playOptions; + this.release = null; + _context.next = 4; + return fetch(api, { + headers: { + 'Content-Type': 'application/json' + } + }); + case 4: + response = _context.sent; + _context.next = 7; + return response.json(); + case 7: + json = _context.sent; + if (json.success) { + _context.next = 10; + break; + } + throw new Error(json.error); + case 10: + // If the browser doesn't support the capabilities requested by this game, also fail. + release = json.data; + error = Features.test(release.capabilities); + if (!error) { + _context.next = 15; + break; + } + this.client.trigger('unsupported', { + error: error + }); + throw new Error(error); + case 15: + // otherwise, open the game + this.release = release; + this._internalOpen(release.url + query, { + singlePlay: singlePlay, + playOptions: playOptions + }); + case 17: + case "end": + return _context.stop(); + } + }, _callee, this); + })); + function openRemote(_x) { + return _openRemote.apply(this, arguments); + } + return openRemote; + }() + /** + * Destroy and don't use after this + * @memberof Container + */ + }, { + key: "destroy", + value: function destroy() { + this.reset(); + this.iframe = null; + this.options = null; + this.release = null; + } + + /** + * Tell the application to start closing + * @memberof Container + */ + }, { + key: "close", + value: function close() { + if (this.loading || this.loaded) { + this.client.trigger('close'); + // Start the close + this.client.send('close'); + } else { + this.reset(); + } + } + + /** + * the current _context object + * @readonly + * @memberof Container + * @return {object} + */ + }, { + key: "context", + get: function get() { + return this._context; + } + + /** + * sets _context object to new object + * @param {object} context + * @memberof Container + */, + set: function set(newContext) { + if (_typeof(newContext) !== 'object') { + console.error('[SpringRollContainer] Context: new context provided is not an object'); + return; + } + this._context = newContext; + } + + /** + * The current version of SpringRollContainer + * @readonly + * @static + * @return {string} + * @memberof Container + */ + }], [{ + key: "version", + get: function get() { + return version; + } + }]); + return Container; +}(PluginManager); + +/** + * Handle the page visiblity change, if supported. Application uses one of these to + * monitor page visibility. It is suggested that you listen to `pause`, `paused`, + * or `resumed` events on the Application instead of using one of these yourself. + * + * @export + * @class PageVisibility + * @constructor + * @param {Function} onFocus Callback when the page becomes visible + * @param {Function} onBlur Callback when the page loses visibility + */ +var PageVisibility = /*#__PURE__*/function () { + /** + *Creates an instance of PageVisibility. + * @param { function } [onFocus=function() {}] + * @param { function } [onBlur=function() {}] + * @memberof PageVisibility + */ + function PageVisibility() { + var onFocus = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : function () {}; + var onBlur = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {}; + _classCallCheck(this, PageVisibility); + this._onFocus = onFocus; + this._onBlur = onBlur; + this.onFocus = function (e) { + if (this.enabled) { + this._onFocus(e); + } + }.bind(this); + this.onBlur = function (e) { + if (this.enabled) { + this._onBlur(e); + } + }.bind(this); + this._enabled = false; + this.enabled = true; + this.onToggle = this.onToggle.bind(this); + } + + /** + * Disable the detection + * @memberof PageVisibility + */ + _createClass(PageVisibility, [{ + key: "destroy", + value: function destroy() { + this.enabled = false; + this.onToggle = null; + this.onFocus = null; + this.onBlur = null; + } + + /** + * The visibility toggle listener function + * @param {Event} $event; + * @memberof PageVisibility + */ + }, { + key: "onToggle", + value: function onToggle($event) { + if (this.enabled) { + document.hidden ? this.onBlur($event) : this.onFocus($event); + } + } + + /** + * If this object is enabled. + * @returns {boolean} + * @memberof PageVisibility + */ + }, { + key: "enabled", + get: function get() { + return this._enabled; + } + + /** + * Sets the state of the object + * @memberof PageVisibility + */, + set: function set(enable) { + this._enabled = enable; + document.removeEventListener('visibilitychange', this.onToggle, false); + window.removeEventListener('blur', this.onBlur, false); + window.removeEventListener('focus', this.onFocus, false); + window.removeEventListener('pagehide', this.onBlur, false); + window.removeEventListener('pageshow', this.onFocus, false); + window.removeEventListener('visibilitychange', this.onToggle, false); + if (this._enabled) { + document.addEventListener('visibilitychange', this.onToggle, false); + window.addEventListener('blur', this.onBlur, false); + window.addEventListener('focus', this.onFocus, false); + window.addEventListener('pagehide', this.onBlur, false); + window.addEventListener('pageshow', this.onFocus, false); + window.addEventListener('visibilitychange', this.onToggle, false); + } + } + }]); + return PageVisibility; +}(); + +var $$8 = _export; +var $includes = arrayIncludes.includes; +var fails$8 = fails$s; +var addToUnscopables = addToUnscopables$3; + +// FF99+ bug +var BROKEN_ON_SPARSE = fails$8(function () { + // eslint-disable-next-line es/no-array-prototype-includes -- detection + return !Array(1).includes(); +}); + +// `Array.prototype.includes` method +// https://tc39.es/ecma262/#sec-array.prototype.includes +$$8({ + target: 'Array', + proto: true, + forced: BROKEN_ON_SPARSE +}, { + includes: function includes(el /* , fromIndex = 0 */) { + return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined); + } +}); + +// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables +addToUnscopables('includes'); + +// a string of all valid unicode whitespaces +var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' + '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF'; + +var uncurryThis$6 = functionUncurryThis; +var requireObjectCoercible$1 = requireObjectCoercible$5; +var toString$1 = toString$5; +var whitespaces$1 = whitespaces$2; +var replace = uncurryThis$6(''.replace); +var ltrim = RegExp('^[' + whitespaces$1 + ']+'); +var rtrim = RegExp('(^|[^' + whitespaces$1 + '])[' + whitespaces$1 + ']+$'); + +// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation +var createMethod$1 = function (TYPE) { + return function ($this) { + var string = toString$1(requireObjectCoercible$1($this)); + if (TYPE & 1) string = replace(string, ltrim, ''); + if (TYPE & 2) string = replace(string, rtrim, '$1'); + return string; + }; +}; +var stringTrim = { + // `String.prototype.{ trimLeft, trimStart }` methods + // https://tc39.es/ecma262/#sec-string.prototype.trimstart + start: createMethod$1(1), + // `String.prototype.{ trimRight, trimEnd }` methods + // https://tc39.es/ecma262/#sec-string.prototype.trimend + end: createMethod$1(2), + // `String.prototype.trim` method + // https://tc39.es/ecma262/#sec-string.prototype.trim + trim: createMethod$1(3) +}; + +var PROPER_FUNCTION_NAME$1 = functionName.PROPER; +var fails$7 = fails$s; +var whitespaces = whitespaces$2; +var non = '\u200B\u0085\u180E'; + +// check that a method works with the correct list +// of whitespaces and has a correct name +var stringTrimForced = function (METHOD_NAME) { + return fails$7(function () { + return !!whitespaces[METHOD_NAME]() || non[METHOD_NAME]() !== non || PROPER_FUNCTION_NAME$1 && whitespaces[METHOD_NAME].name !== METHOD_NAME; + }); +}; + +var $$7 = _export; +var $trim = stringTrim.trim; +var forcedStringTrimMethod = stringTrimForced; + +// `String.prototype.trim` method +// https://tc39.es/ecma262/#sec-string.prototype.trim +$$7({ + target: 'String', + proto: true, + forced: forcedStringTrimMethod('trim') +}, { + trim: function trim() { + return $trim(this); + } +}); + +var call = functionCall; +var hasOwn$2 = hasOwnProperty_1; +var isPrototypeOf$1 = objectIsPrototypeOf; +var regExpFlags = regexpFlags$1; +var RegExpPrototype$1 = RegExp.prototype; +var regexpGetFlags = function (R) { + var flags = R.flags; + return flags === undefined && !('flags' in RegExpPrototype$1) && !hasOwn$2(R, 'flags') && isPrototypeOf$1(RegExpPrototype$1, R) ? call(regExpFlags, R) : flags; +}; + +var PROPER_FUNCTION_NAME = functionName.PROPER; +var defineBuiltIn$2 = defineBuiltIn$9; +var anObject = anObject$c; +var $toString = toString$5; +var fails$6 = fails$s; +var getRegExpFlags = regexpGetFlags; +var TO_STRING = 'toString'; +var RegExpPrototype = RegExp.prototype; +var nativeToString = RegExpPrototype[TO_STRING]; +var NOT_GENERIC = fails$6(function () { + return nativeToString.call({ + source: 'a', + flags: 'b' + }) != '/a/b'; +}); +// FF44- RegExp#toString has a wrong name +var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name != TO_STRING; + +// `RegExp.prototype.toString` method +// https://tc39.es/ecma262/#sec-regexp.prototype.tostring +if (NOT_GENERIC || INCORRECT_NAME) { + defineBuiltIn$2(RegExp.prototype, TO_STRING, function toString() { + var R = anObject(this); + var pattern = $toString(R.source); + var flags = $toString(getRegExpFlags(R)); + return '/' + pattern + '/' + flags; + }, { + unsafe: true + }); +} + +/** + * The SavedData functions use localStorage and sessionStorage, with a cookie fallback. + * + * @class SavedData + */ +var SavedData = /*#__PURE__*/function () { + /** + * Constructor for IndexedDB work + */ + function SavedData() { + var dbName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; + _classCallCheck(this, SavedData); + this.db = null; + this.dbName = dbName; + } + /** + * Remove a saved variable by name. + * @method remove + * @static + * @param {String} name The name of the value to remove + */ + _createClass(SavedData, [{ + key: "IDBOpen", + value: + /** + * Open a connection with the IDB Database and optionally add or delete + * Indexes and stores + * + * @param {string} dbName The name of your IndexedDB database + * @param {string} dbVersion The version number of the database. Additions and deletions will be ignored if lower than current version number + * @param {JSON} additions Any additions to the structure of the database + * @param {array} additions.stores Any stores to be added into the database syntax: {storeName: '[name]', options: {[optionally add options]}} + * @param {array} additions.indexes Any Indexes to be added to the database syntax: {storeName: '[name]', options: {[optionally add options]}} + */ + function IDBOpen(dbName) { + var _this = this; + var dbVersion = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; + var additions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; + var deletions = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; + var callback = arguments.length > 4 ? arguments[4] : undefined; + var request = dbVersion ? indexedDB.open(dbName, dbVersion) : indexedDB.open(dbName); + request.onsuccess = function (e) { + // Database successfully opened. This will run along with onupgradeneeded + _this.db = e.target.result; + if (_this.db.version == dbVersion | dbVersion == null) { + callback({ + result: 'Success: IDBOpen', + success: true + }); + } + }; + request.onerror = function () { + callback({ + result: request.error.toString(), + success: false + }); + }; + + // on upgrade needed fires only if the dbVersion is higher than the current version number + request.onupgradeneeded = function (e) { + // Ensure the proper database object is stored + _this.db = e.target.result; + if (additions != null) { + if (additions.stores) { + additions.stores.forEach(function (store) { + _this.db.createObjectStore(store.storeName, store.options); + }); + } + if (additions.indexes != null) { + additions.indexes.forEach(function (index) { + // Add indexes last to avoid adding an index to a store that has yet to be created + // Open a transaction returning a store object + var storeObject = request.transaction.objectStore(index.storeName); + storeObject.createIndex(index.indexName, index.keyPath, index.options); + }); + } + } + if (deletions != null) { + if (deletions.indexes != null) { + // delete indexes first to avoid deleting an index to a store that has already to been deleted + deletions.indexes.forEach(function (index) { + // Open a transaction returning a store object + var storeObject = request.transaction.objectStore(index.storeName); + storeObject.deleteIndex(index.indexName); + }); + } + if (deletions.stores) { + deletions.stores.forEach(function (store) { + _this.db.deleteObjectStore(store.storeName); + }); + } + } + callback({ + result: 'Success: IDBOpen onupgradeneeded ran', + success: true + }); + }; + } + + /** + * Delete a database and all records, stores, and indexes associated + * @param {string} dbName Name of the database to delete + * @param {object} options Optionally pass in options + * @param {function} callback The callback to be run on success or error. One value will be passed into this function + */ + }, { + key: "IDBDeleteDB", + value: function IDBDeleteDB(dbName) { + var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; + var callback = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; + var request = options != null ? indexedDB.deleteDatabase(dbName, options) : indexedDB.deleteDatabase(dbName); + request.onsuccess = function (e) { + callback({ + result: 'Success: Database Deleted, returned: ' + e.result, + success: true + }); + }; + request.onerror = function () { + callback({ + result: request.error.toString(), + success: false + }); + }; + } + + /** + * Add a record to a given store + * @param {string} storeName The name of the store from which the record will be updated + * @param {string} key the key of the record to be updated + * @param {string} value The value for the record with the given key to be updated + * @param {function} callback The method to call on success or failure. A single value will be passed in + */ + }, { + key: "IDBAdd", + value: function IDBAdd(storeName, value, key, callback) { + if (!this.db && this.dbName != '') { + this.IDBOpen(this.dbName); + } + var tx = this.db.transaction(storeName, 'readwrite'); + tx.onerror = function () { + return callback({ + result: tx.error != null ? tx.error.toString() : 'Aborted: No error given, was the record already added?', + success: false + }); + }; + tx.onabort = function () { + return callback({ + result: tx.error != null ? tx.error.toString() : 'Aborted: No error given, was the record already added?', + success: false + }); + }; + tx.oncomplete = function () { + return callback({ + result: 'Success: Record Added', + success: true + }); + }; + var store = tx.objectStore(storeName); + store.add(value, key); + } + + /** + * Update a record in a given store + * @param {string} storeName The name of the store from which the record will be updated + * @param {string} key the key of the record to be updated + * @param {string | object} value The altered object to be updated from the given store + * @param {function} callback The method to call on success or failure. A single value will be passed in + */ + }, { + key: "IDBUpdate", + value: function IDBUpdate(storeName, key, value, callback) { + if (!this.db && this.dbName != '') { + this.IDBOpen(this.dbName); + } + var tx = this.db.transaction(storeName, 'readwrite'); + var store = tx.objectStore(storeName); + var updateRequest = store.put(value, key); + updateRequest.onsuccess = function () { + callback({ + result: 'Success: Record Updated', + success: true + }); + }; + updateRequest.onerror = function () { + return callback({ + result: updateRequest.error.toString(), + success: false + }); + }; + } + + /** + * Delete a given record within a given store + * @param {string} storeName The name of the store from which the record will be removed + * @param {string} key the key of the record to be removed + * @param {function} callback The method to call on success or failure. A single value will be passed in + */ + }, { + key: "IDBRemove", + value: function IDBRemove(storeName, key, callback) { + var _this2 = this; + if (!this.db && this.dbName != '') { + this.IDBOpen(this.dbName); + } + var tx = this.db.transaction(storeName, 'readwrite'); + tx.onerror = function () { + return callback({ + result: _this2.db.error.toString(), + success: false + }); + }; + var store = tx.objectStore(storeName); + store.delete(key); + tx.oncomplete = function () { + return callback({ + result: 'Removed Successfully', + success: true + }); + }; + } + + /** + * Return a record from a given store with a given key + * @param {string} storeName the name of the store to read from + * @param {string} key The key for the record in the given store + * @param {function} callback The method to call on success or failure. A single value will be passed in + */ + }, { + key: "IDBRead", + value: function IDBRead(storeName, key, callback) { + var _this3 = this; + // Open transaction with a store + var tx = this.db.transaction(storeName, 'readonly'); + // Get the store object from the transaction + var store = tx.objectStore(storeName); + tx.onerror = function () { + return callback({ + result: _this3.db.error.toString(), + success: false + }); + }; + var readRequest = store.get(key); + readRequest.onsuccess = function () { + callback({ + result: readRequest.result, + success: readRequest.result != undefined ? true : false + }); + }; + } + + /** + * Get all keys with given index + * @param {string} storeName the name of the store to be read from + * @param {string} indexName the name of the index to be read from + * @param {string} query Optionally give a keyRange of records to return + * @param {string} count Optionally give a max limit on records to be returned + * @param {function} callback The method to call on success or failure. A single value will be passed in as a parameter + */ + }, { + key: "IDBGetIndexKeys", + value: function IDBGetIndexKeys(storeName, indexName) { + var _this4 = this; + var query = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; + var count = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null; + var callback = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {}; + // Open transaction with a store + var tx = this.db.transaction(storeName, 'readonly'); + // Get the store object from the transaction + var store = tx.objectStore(storeName); + var index; + tx.onerror = function () { + return callback({ + result: _this4.db.error.toString(), + success: false + }); + }; + if (query && count) { + index = store.index(indexName, query, count); + } else if (query) { + index = store.index(indexName, query); + } else { + index = store.index(indexName); + } + var getAllKeysRequest = index.getAllKeys(); + getAllKeysRequest.onsuccess = function (e) { + callback({ + result: e.result, + success: true + }); + }; + } + + /** + * Get all records from a store + * @param {string} storeName The store to get all records from + * @param {integer} count Optionally the count of records to return + * @param {function} callback The method to call on success or failure. A single value will be passed in + */ + }, { + key: "IDBReadAll", + value: function IDBReadAll(storeName, count, callback) { + // Open transaction with a store + var tx = this.db.transaction(storeName, 'readonly'); + // Get the store object from the transaction + var store = tx.objectStore(storeName); + var readRequest = count != null ? store.getAll(null, count) : store.getAll(); + + // const readRequest = store.getAll(); + + tx.onerror = function () { + return callback({ + result: tx.error.toString(), + success: false + }); + }; + readRequest.onsuccess = function () { + callback({ + result: readRequest.result, + success: readRequest.result != undefined ? true : false + }); + }; + } + + /** + * Get the version number of a given database. This will create a database if it doesn't exist. + * Do not call this after opening a connection with the database + * @param {string} dbName The name of the database for which the version will be returned + * @param {function} callback The method to call on success or failure. A single value will be passed in + */ + }, { + key: "IDBGetVersion", + value: function IDBGetVersion(dbName, callback) { + // Open the database + var dBOpenRequest = window.indexedDB.open(dbName); + + // these two event handlers act on the database + // being opened. successfully, or not + dBOpenRequest.onerror = function () { + callback({ + result: dBOpenRequest.error.toString(), + success: false + }); + }; + dBOpenRequest.onsuccess = function () { + var db = dBOpenRequest.result; + callback({ + result: db.version, + success: true + }); + }; + } + + /** + * Closes the connection to the database if open + * @param {function} callback The method to call on success or failure. A single value will be passed in + */ + }, { + key: "IDBClose", + value: function IDBClose(callback) { + if (this.db) { + this.db.close(); + callback({ + result: 'Success: Closed Database Connection', + success: true + }); + } + } + }], [{ + key: "remove", + value: function remove(name) { + localStorage.removeItem(name); + sessionStorage.removeItem(name); + } + + /** + * Save a variable. + * @method write + * @static + * @param {string} name The name of the value to save + * @param {string} value The value to save. This will be run through JSON.stringify(). + * @param {boolean} [tempOnly=false] If the value should be saved only in the current browser session. + */ + }, { + key: "write", + value: function write(name, value) { + var tempOnly = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; + return tempOnly ? sessionStorage.setItem(name, JSON.stringify('function' === typeof value ? value() : value)) : localStorage.setItem(name, JSON.stringify('function' === typeof value ? value() : value)); + } + + /** + * Read the value of a saved variable + * @method read + * @static + * @param {String} name The name of the variable + * @return {*} The value (run through `JSON.parse()`) or null if it doesn't exist + */ + }, { + key: "read", + value: function read(name) { + var value = localStorage.getItem(name) || sessionStorage.getItem(name); + if ('string' === typeof value) { + try { + return JSON.parse(value); + } catch (err) { + return value; + } + } else { + return value; + } + } + }]); + return SavedData; +}(); + +/** + * + * + * @export + * @class BasePlugin + * @property {Bellhop} client + * @property {string} name + */ +var BasePlugin = /*#__PURE__*/function () { + /** + *Creates an instance of BasePlugin. + * @param {string} name + * @memberof BasePlugin + */ + function BasePlugin(name) { + _classCallCheck(this, BasePlugin); + this.name = name; + this.client = null; + } + + /** + * + * @param {Container} [container] + * @memberof BasePlugin + * @returns {Promise} + */ + _createClass(BasePlugin, [{ + key: "preload", + value: function () { + var _preload = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref) { + var client; + return _regeneratorRuntime().wrap(function _callee$(_context) { + while (1) switch (_context.prev = _context.next) { + case 0: + client = _ref.client; + this.client = client; + case 2: + case "end": + return _context.stop(); + } + }, _callee, this); + })); + function preload(_x) { + return _preload.apply(this, arguments); + } + return preload; + }() + /** + * + * @memberof BasePlugin + */ + }, { + key: "start", + value: function start() { + this.client.on('loaded', this.sendAllProperties); + this.client.on('loadDone', this.sendAllProperties); + } + + /** + * + * @param {Container} [_] + * @memberof BasePlugin + */ + }, { + key: "init", + value: function init(_) {} + + /** + * + * + * @param {string} prop + * @param {any} value + * @memberof BasePlugin + */ + }, { + key: "sendProperty", + value: function sendProperty(prop, value) { + SavedData.write(prop, value); + this.client.send(prop, value); + } + + /** + * + * @param {Container} [_] + * @memberof BasePlugin + */ + }, { + key: "sendAllProperties", + value: function sendAllProperties(_) {} + + /** + * + * @param {string} warningText + * @memberof BasePlugin + */ + }, { + key: "warn", + value: function warn(warningText) { + console.warn("[SpringRollContainer] ".concat(this.name, ": ").concat(warningText)); + } + }]); + return BasePlugin; +}(); + +/** + * + * + * @export + * @class ButtonPlugin + * @extends {BasePlugin} + */ +var ButtonPlugin = /*#__PURE__*/function (_BasePlugin) { + _inherits(ButtonPlugin, _BasePlugin); + var _super = _createSuper(ButtonPlugin); + /** + *Creates an instance of ButtonPlugin. + * @param {string} name + * + * @memberof ButtonPlugin + */ + function ButtonPlugin(name) { + var _this; + _classCallCheck(this, ButtonPlugin); + _this = _super.call(this, name); + _this.sendMutes = false; + return _this; + } + + /** + * @memberof ButtonPlugin + * @param {Container} [container] + */ + _createClass(ButtonPlugin, [{ + key: "init", + value: function init(container) { + // eslint-disable-line no-unused-vars + this.sendMutes = true; + } + + /** + * + * Applies the disabled class to the provided element + * @param {HTMLButtonElement | Element} button + * @memberof ButtonPlugin + */ + }, { + key: "_disableButton", + value: function _disableButton(button) { + if (button instanceof HTMLButtonElement) { + button.classList.remove('enabled'); + button.classList.add('disabled'); + } + } + + /** + * + * + * @memberof ButtonPlugin + */ + }, { + key: "reset", + value: function reset() { + this.sendMutes = false; + } + + /** + * + * + * @param {string} prop + * @param {Element} button + * @param {Boolean} muted + * @memberof ButtonPlugin + */ + }, { + key: "_setMuteProp", + value: function _setMuteProp(prop, button, muted) { + var _this2 = this; + if (Array.isArray(button)) { + button.forEach(function (b) { + return _this2.changeMutedState(b, muted); + }); + } else { + this.changeMutedState(button, muted); + } + this.sendProperty(prop, muted); + } + + /** + * + * + * @param {Element} button + * @param {Boolean} muted + * @returns + * @memberof ButtonPlugin + */ + }, { + key: "changeMutedState", + value: function changeMutedState(button) { + var muted = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; + //most times button will be a Button class rather than an HTMLElement + //But just in case the Button ui-element is not being used + var htmlButton = button.button ? button.button : button; + if (!(htmlButton instanceof HTMLElement)) { + return; + } + htmlButton.classList.remove('unmuted'); + htmlButton.classList.remove('muted'); + htmlButton.classList.add(muted ? 'muted' : 'unmuted'); + } + }]); + return ButtonPlugin; +}(BasePlugin); + +var isObject$4 = isObject$f; +var classof$2 = classofRaw$2; +var wellKnownSymbol$1 = wellKnownSymbol$j; +var MATCH$1 = wellKnownSymbol$1('match'); + +// `IsRegExp` abstract operation +// https://tc39.es/ecma262/#sec-isregexp +var isRegexp = function (it) { + var isRegExp; + return isObject$4(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$2(it) == 'RegExp'); +}; + +var isRegExp = isRegexp; +var $TypeError = TypeError; +var notARegexp = function (it) { + if (isRegExp(it)) { + throw $TypeError("The method doesn't accept regular expressions"); + } + return it; +}; + +var wellKnownSymbol = wellKnownSymbol$j; +var MATCH = wellKnownSymbol('match'); +var correctIsRegexpLogic = function (METHOD_NAME) { + var regexp = /./; + try { + '/./'[METHOD_NAME](regexp); + } catch (error1) { + try { + regexp[MATCH] = false; + return '/./'[METHOD_NAME](regexp); + } catch (error2) {/* empty */} + } + return false; +}; + +var $$6 = _export; +var uncurryThis$5 = functionUncurryThis; +var notARegExp = notARegexp; +var requireObjectCoercible = requireObjectCoercible$5; +var toString = toString$5; +var correctIsRegExpLogic = correctIsRegexpLogic; +var stringIndexOf = uncurryThis$5(''.indexOf); + +// `String.prototype.includes` method +// https://tc39.es/ecma262/#sec-string.prototype.includes +$$6({ + target: 'String', + proto: true, + forced: !correctIsRegExpLogic('includes') +}, { + includes: function includes(searchString /* , position = 0 */) { + return !!~stringIndexOf(toString(requireObjectCoercible(this)), toString(notARegExp(searchString)), arguments.length > 1 ? arguments[1] : undefined); + } +}); + +var internalMetadata = {exports: {}}; + +var objectGetOwnPropertyNamesExternal = {}; + +var toAbsoluteIndex = toAbsoluteIndex$2; +var lengthOfArrayLike = lengthOfArrayLike$5; +var createProperty = createProperty$2; +var $Array = Array; +var max = Math.max; +var arraySliceSimple = function (O, start, end) { + var length = lengthOfArrayLike(O); + var k = toAbsoluteIndex(start, length); + var fin = toAbsoluteIndex(end === undefined ? length : end, length); + var result = $Array(max(fin - k, 0)); + for (var n = 0; k < fin; k++, n++) createProperty(result, n, O[k]); + result.length = n; + return result; +}; + +/* eslint-disable es/no-object-getownpropertynames -- safe */ +var classof$1 = classofRaw$2; +var toIndexedObject$1 = toIndexedObject$7; +var $getOwnPropertyNames = objectGetOwnPropertyNames.f; +var arraySlice = arraySliceSimple; +var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : []; +var getWindowNames = function (it) { + try { + return $getOwnPropertyNames(it); + } catch (error) { + return arraySlice(windowNames); + } +}; + +// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window +objectGetOwnPropertyNamesExternal.f = function getOwnPropertyNames(it) { + return windowNames && classof$1(it) == 'Window' ? getWindowNames(it) : $getOwnPropertyNames(toIndexedObject$1(it)); +}; + +// FF26- bug: ArrayBuffers are non-extensible, but Object.isExtensible does not report it +var fails$5 = fails$s; +var arrayBufferNonExtensible = fails$5(function () { + if (typeof ArrayBuffer == 'function') { + var buffer = new ArrayBuffer(8); + // eslint-disable-next-line es/no-object-isextensible, es/no-object-defineproperty -- safe + if (Object.isExtensible(buffer)) Object.defineProperty(buffer, 'a', { + value: 8 + }); + } +}); + +var fails$4 = fails$s; +var isObject$3 = isObject$f; +var classof = classofRaw$2; +var ARRAY_BUFFER_NON_EXTENSIBLE = arrayBufferNonExtensible; + +// eslint-disable-next-line es/no-object-isextensible -- safe +var $isExtensible = Object.isExtensible; +var FAILS_ON_PRIMITIVES$1 = fails$4(function () { + $isExtensible(1); +}); + +// `Object.isExtensible` method +// https://tc39.es/ecma262/#sec-object.isextensible +var objectIsExtensible = FAILS_ON_PRIMITIVES$1 || ARRAY_BUFFER_NON_EXTENSIBLE ? function isExtensible(it) { + if (!isObject$3(it)) return false; + if (ARRAY_BUFFER_NON_EXTENSIBLE && classof(it) == 'ArrayBuffer') return false; + return $isExtensible ? $isExtensible(it) : true; +} : $isExtensible; + +var fails$3 = fails$s; +var freezing = !fails$3(function () { + // eslint-disable-next-line es/no-object-isextensible, es/no-object-preventextensions -- required for testing + return Object.isExtensible(Object.preventExtensions({})); +}); + +var $$5 = _export; +var uncurryThis$4 = functionUncurryThis; +var hiddenKeys = hiddenKeys$5; +var isObject$2 = isObject$f; +var hasOwn$1 = hasOwnProperty_1; +var defineProperty$1 = objectDefineProperty.f; +var getOwnPropertyNamesModule = objectGetOwnPropertyNames; +var getOwnPropertyNamesExternalModule = objectGetOwnPropertyNamesExternal; +var isExtensible = objectIsExtensible; +var uid = uid$3; +var FREEZING = freezing; +var REQUIRED = false; +var METADATA = uid('meta'); +var id = 0; +var setMetadata = function (it) { + defineProperty$1(it, METADATA, { + value: { + objectID: 'O' + id++, + // object ID + weakData: {} // weak collections IDs + } + }); +}; + +var fastKey$1 = function (it, create) { + // return a primitive with prefix + if (!isObject$2(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it; + if (!hasOwn$1(it, METADATA)) { + // can't set metadata to uncaught frozen object + if (!isExtensible(it)) return 'F'; + // not necessary to add metadata + if (!create) return 'E'; + // add missing metadata + setMetadata(it); + // return object ID + } + return it[METADATA].objectID; +}; +var getWeakData = function (it, create) { + if (!hasOwn$1(it, METADATA)) { + // can't set metadata to uncaught frozen object + if (!isExtensible(it)) return true; + // not necessary to add metadata + if (!create) return false; + // add missing metadata + setMetadata(it); + // return the store of weak collections IDs + } + return it[METADATA].weakData; +}; + +// add metadata on freeze-family methods calling +var onFreeze = function (it) { + if (FREEZING && REQUIRED && isExtensible(it) && !hasOwn$1(it, METADATA)) setMetadata(it); + return it; +}; +var enable = function () { + meta.enable = function () {/* empty */}; + REQUIRED = true; + var getOwnPropertyNames = getOwnPropertyNamesModule.f; + var splice = uncurryThis$4([].splice); + var test = {}; + test[METADATA] = 1; + + // prevent exposing of metadata key + if (getOwnPropertyNames(test).length) { + getOwnPropertyNamesModule.f = function (it) { + var result = getOwnPropertyNames(it); + for (var i = 0, length = result.length; i < length; i++) { + if (result[i] === METADATA) { + splice(result, i, 1); + break; + } + } + return result; + }; + $$5({ + target: 'Object', + stat: true, + forced: true + }, { + getOwnPropertyNames: getOwnPropertyNamesExternalModule.f + }); + } +}; +var meta = internalMetadata.exports = { + enable: enable, + fastKey: fastKey$1, + getWeakData: getWeakData, + onFreeze: onFreeze +}; +hiddenKeys[METADATA] = true; +var internalMetadataExports = internalMetadata.exports; + +var isCallable$1 = isCallable$m; +var isObject$1 = isObject$f; +var setPrototypeOf = objectSetPrototypeOf; + +// makes subclassing work correct for wrapped built-ins +var inheritIfRequired$2 = function ($this, dummy, Wrapper) { + var NewTarget, NewTargetPrototype; + if ( + // it can work only with native `setPrototypeOf` + setPrototypeOf && + // we haven't completely correct pre-ES6 way for getting `new.target`, so use this + isCallable$1(NewTarget = dummy.constructor) && NewTarget !== Wrapper && isObject$1(NewTargetPrototype = NewTarget.prototype) && NewTargetPrototype !== Wrapper.prototype) setPrototypeOf($this, NewTargetPrototype); + return $this; +}; + +var $$4 = _export; +var global$2 = global$n; +var uncurryThis$3 = functionUncurryThis; +var isForced$1 = isForced_1; +var defineBuiltIn$1 = defineBuiltIn$9; +var InternalMetadataModule = internalMetadataExports; +var iterate$1 = iterate$4; +var anInstance$1 = anInstance$3; +var isCallable = isCallable$m; +var isNullOrUndefined$1 = isNullOrUndefined$6; +var isObject = isObject$f; +var fails$2 = fails$s; +var checkCorrectnessOfIteration = checkCorrectnessOfIteration$2; +var setToStringTag = setToStringTag$4; +var inheritIfRequired$1 = inheritIfRequired$2; +var collection$1 = function (CONSTRUCTOR_NAME, wrapper, common) { + var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1; + var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1; + var ADDER = IS_MAP ? 'set' : 'add'; + var NativeConstructor = global$2[CONSTRUCTOR_NAME]; + var NativePrototype = NativeConstructor && NativeConstructor.prototype; + var Constructor = NativeConstructor; + var exported = {}; + var fixMethod = function (KEY) { + var uncurriedNativeMethod = uncurryThis$3(NativePrototype[KEY]); + defineBuiltIn$1(NativePrototype, KEY, KEY == 'add' ? function add(value) { + uncurriedNativeMethod(this, value === 0 ? 0 : value); + return this; + } : KEY == 'delete' ? function (key) { + return IS_WEAK && !isObject(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key); + } : KEY == 'get' ? function get(key) { + return IS_WEAK && !isObject(key) ? undefined : uncurriedNativeMethod(this, key === 0 ? 0 : key); + } : KEY == 'has' ? function has(key) { + return IS_WEAK && !isObject(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key); + } : function set(key, value) { + uncurriedNativeMethod(this, key === 0 ? 0 : key, value); + return this; + }); + }; + var REPLACE = isForced$1(CONSTRUCTOR_NAME, !isCallable(NativeConstructor) || !(IS_WEAK || NativePrototype.forEach && !fails$2(function () { + new NativeConstructor().entries().next(); + }))); + if (REPLACE) { + // create collection constructor + Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER); + InternalMetadataModule.enable(); + } else if (isForced$1(CONSTRUCTOR_NAME, true)) { + var instance = new Constructor(); + // early implementations not supports chaining + var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance; + // V8 ~ Chromium 40- weak-collections throws on primitives, but should return false + var THROWS_ON_PRIMITIVES = fails$2(function () { + instance.has(1); + }); + // most early implementations doesn't supports iterables, most modern - not close it correctly + // eslint-disable-next-line no-new -- required for testing + var ACCEPT_ITERABLES = checkCorrectnessOfIteration(function (iterable) { + new NativeConstructor(iterable); + }); + // for early implementations -0 and +0 not the same + var BUGGY_ZERO = !IS_WEAK && fails$2(function () { + // V8 ~ Chromium 42- fails only with 5+ elements + var $instance = new NativeConstructor(); + var index = 5; + while (index--) $instance[ADDER](index, index); + return !$instance.has(-0); + }); + if (!ACCEPT_ITERABLES) { + Constructor = wrapper(function (dummy, iterable) { + anInstance$1(dummy, NativePrototype); + var that = inheritIfRequired$1(new NativeConstructor(), dummy, Constructor); + if (!isNullOrUndefined$1(iterable)) iterate$1(iterable, that[ADDER], { + that: that, + AS_ENTRIES: IS_MAP + }); + return that; + }); + Constructor.prototype = NativePrototype; + NativePrototype.constructor = Constructor; + } + if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) { + fixMethod('delete'); + fixMethod('has'); + IS_MAP && fixMethod('get'); + } + if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER); + + // weak collections should not contains .clear method + if (IS_WEAK && NativePrototype.clear) delete NativePrototype.clear; + } + exported[CONSTRUCTOR_NAME] = Constructor; + $$4({ + global: true, + constructor: true, + forced: Constructor != NativeConstructor + }, exported); + setToStringTag(Constructor, CONSTRUCTOR_NAME); + if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP); + return Constructor; +}; + +var defineBuiltIn = defineBuiltIn$9; +var defineBuiltIns$1 = function (target, src, options) { + for (var key in src) defineBuiltIn(target, key, src[key], options); + return target; +}; + +var create = objectCreate; +var defineBuiltInAccessor = defineBuiltInAccessor$2; +var defineBuiltIns = defineBuiltIns$1; +var bind = functionBindContext; +var anInstance = anInstance$3; +var isNullOrUndefined = isNullOrUndefined$6; +var iterate = iterate$4; +var defineIterator = iteratorDefine; +var createIterResultObject = createIterResultObject$3; +var setSpecies = setSpecies$2; +var DESCRIPTORS$2 = descriptors; +var fastKey = internalMetadataExports.fastKey; +var InternalStateModule = internalState; +var setInternalState = InternalStateModule.set; +var internalStateGetterFor = InternalStateModule.getterFor; +var collectionStrong$1 = { + getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) { + var Constructor = wrapper(function (that, iterable) { + anInstance(that, Prototype); + setInternalState(that, { + type: CONSTRUCTOR_NAME, + index: create(null), + first: undefined, + last: undefined, + size: 0 + }); + if (!DESCRIPTORS$2) that.size = 0; + if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], { + that: that, + AS_ENTRIES: IS_MAP + }); + }); + var Prototype = Constructor.prototype; + var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME); + var define = function (that, key, value) { + var state = getInternalState(that); + var entry = getEntry(that, key); + var previous, index; + // change existing entry + if (entry) { + entry.value = value; + // create new entry + } else { + state.last = entry = { + index: index = fastKey(key, true), + key: key, + value: value, + previous: previous = state.last, + next: undefined, + removed: false + }; + if (!state.first) state.first = entry; + if (previous) previous.next = entry; + if (DESCRIPTORS$2) state.size++;else that.size++; + // add to index + if (index !== 'F') state.index[index] = entry; + } + return that; + }; + var getEntry = function (that, key) { + var state = getInternalState(that); + // fast case + var index = fastKey(key); + var entry; + if (index !== 'F') return state.index[index]; + // frozen object case + for (entry = state.first; entry; entry = entry.next) { + if (entry.key == key) return entry; + } + }; + defineBuiltIns(Prototype, { + // `{ Map, Set }.prototype.clear()` methods + // https://tc39.es/ecma262/#sec-map.prototype.clear + // https://tc39.es/ecma262/#sec-set.prototype.clear + clear: function clear() { + var that = this; + var state = getInternalState(that); + var data = state.index; + var entry = state.first; + while (entry) { + entry.removed = true; + if (entry.previous) entry.previous = entry.previous.next = undefined; + delete data[entry.index]; + entry = entry.next; + } + state.first = state.last = undefined; + if (DESCRIPTORS$2) state.size = 0;else that.size = 0; + }, + // `{ Map, Set }.prototype.delete(key)` methods + // https://tc39.es/ecma262/#sec-map.prototype.delete + // https://tc39.es/ecma262/#sec-set.prototype.delete + 'delete': function (key) { + var that = this; + var state = getInternalState(that); + var entry = getEntry(that, key); + if (entry) { + var next = entry.next; + var prev = entry.previous; + delete state.index[entry.index]; + entry.removed = true; + if (prev) prev.next = next; + if (next) next.previous = prev; + if (state.first == entry) state.first = next; + if (state.last == entry) state.last = prev; + if (DESCRIPTORS$2) state.size--;else that.size--; + } + return !!entry; + }, + // `{ Map, Set }.prototype.forEach(callbackfn, thisArg = undefined)` methods + // https://tc39.es/ecma262/#sec-map.prototype.foreach + // https://tc39.es/ecma262/#sec-set.prototype.foreach + forEach: function forEach(callbackfn /* , that = undefined */) { + var state = getInternalState(this); + var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined); + var entry; + while (entry = entry ? entry.next : state.first) { + boundFunction(entry.value, entry.key, this); + // revert to the last existing entry + while (entry && entry.removed) entry = entry.previous; + } + }, + // `{ Map, Set}.prototype.has(key)` methods + // https://tc39.es/ecma262/#sec-map.prototype.has + // https://tc39.es/ecma262/#sec-set.prototype.has + has: function has(key) { + return !!getEntry(this, key); + } + }); + defineBuiltIns(Prototype, IS_MAP ? { + // `Map.prototype.get(key)` method + // https://tc39.es/ecma262/#sec-map.prototype.get + get: function get(key) { + var entry = getEntry(this, key); + return entry && entry.value; + }, + // `Map.prototype.set(key, value)` method + // https://tc39.es/ecma262/#sec-map.prototype.set + set: function set(key, value) { + return define(this, key === 0 ? 0 : key, value); + } + } : { + // `Set.prototype.add(value)` method + // https://tc39.es/ecma262/#sec-set.prototype.add + add: function add(value) { + return define(this, value = value === 0 ? 0 : value, value); + } + }); + if (DESCRIPTORS$2) defineBuiltInAccessor(Prototype, 'size', { + configurable: true, + get: function () { + return getInternalState(this).size; + } + }); + return Constructor; + }, + setStrong: function (Constructor, CONSTRUCTOR_NAME, IS_MAP) { + var ITERATOR_NAME = CONSTRUCTOR_NAME + ' Iterator'; + var getInternalCollectionState = internalStateGetterFor(CONSTRUCTOR_NAME); + var getInternalIteratorState = internalStateGetterFor(ITERATOR_NAME); + // `{ Map, Set }.prototype.{ keys, values, entries, @@iterator }()` methods + // https://tc39.es/ecma262/#sec-map.prototype.entries + // https://tc39.es/ecma262/#sec-map.prototype.keys + // https://tc39.es/ecma262/#sec-map.prototype.values + // https://tc39.es/ecma262/#sec-map.prototype-@@iterator + // https://tc39.es/ecma262/#sec-set.prototype.entries + // https://tc39.es/ecma262/#sec-set.prototype.keys + // https://tc39.es/ecma262/#sec-set.prototype.values + // https://tc39.es/ecma262/#sec-set.prototype-@@iterator + defineIterator(Constructor, CONSTRUCTOR_NAME, function (iterated, kind) { + setInternalState(this, { + type: ITERATOR_NAME, + target: iterated, + state: getInternalCollectionState(iterated), + kind: kind, + last: undefined + }); + }, function () { + var state = getInternalIteratorState(this); + var kind = state.kind; + var entry = state.last; + // revert to the last existing entry + while (entry && entry.removed) entry = entry.previous; + // get next entry + if (!state.target || !(state.last = entry = entry ? entry.next : state.state.first)) { + // or finish the iteration + state.target = undefined; + return createIterResultObject(undefined, true); + } + // return step by kind + if (kind == 'keys') return createIterResultObject(entry.key, false); + if (kind == 'values') return createIterResultObject(entry.value, false); + return createIterResultObject([entry.key, entry.value], false); + }, IS_MAP ? 'entries' : 'values', !IS_MAP, true); + + // `{ Map, Set }.prototype[@@species]` accessors + // https://tc39.es/ecma262/#sec-get-map-@@species + // https://tc39.es/ecma262/#sec-get-set-@@species + setSpecies(CONSTRUCTOR_NAME); + } +}; + +var collection = collection$1; +var collectionStrong = collectionStrong$1; + +// `Set` constructor +// https://tc39.es/ecma262/#sec-set-objects +collection('Set', function (init) { + return function Set() { + return init(this, arguments.length ? arguments[0] : undefined); + }; +}, collectionStrong); + +var $$3 = _export; +var toObject = toObject$6; +var nativeKeys = objectKeys$3; +var fails$1 = fails$s; +var FAILS_ON_PRIMITIVES = fails$1(function () { + nativeKeys(1); +}); + +// `Object.keys` method +// https://tc39.es/ecma262/#sec-object.keys +$$3({ + target: 'Object', + stat: true, + forced: FAILS_ON_PRIMITIVES +}, { + keys: function keys(it) { + return nativeKeys(toObject(it)); + } +}); + +var $$2 = _export; +var $map = arrayIteration.map; +var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$3; +var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('map'); + +// `Array.prototype.map` method +// https://tc39.es/ecma262/#sec-array.prototype.map +// with adding support of @@species +$$2({ + target: 'Array', + proto: true, + forced: !HAS_SPECIES_SUPPORT +}, { + map: function map(callbackfn /* , thisArg */) { + return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); + } +}); + +var DESCRIPTORS$1 = descriptors; +var uncurryThis$2 = functionUncurryThis; +var objectKeys = objectKeys$3; +var toIndexedObject = toIndexedObject$7; +var $propertyIsEnumerable = objectPropertyIsEnumerable.f; +var propertyIsEnumerable = uncurryThis$2($propertyIsEnumerable); +var push = uncurryThis$2([].push); + +// `Object.{ entries, values }` methods implementation +var createMethod = function (TO_ENTRIES) { + return function (it) { + var O = toIndexedObject(it); + var keys = objectKeys(O); + var length = keys.length; + var i = 0; + var result = []; + var key; + while (length > i) { + key = keys[i++]; + if (!DESCRIPTORS$1 || propertyIsEnumerable(O, key)) { + push(result, TO_ENTRIES ? [key, O[key]] : O[key]); + } + } + return result; + }; +}; +var objectToArray = { + // `Object.entries` method + // https://tc39.es/ecma262/#sec-object.entries + entries: createMethod(true), + // `Object.values` method + // https://tc39.es/ecma262/#sec-object.values + values: createMethod(false) +}; + +var $$1 = _export; +var $values = objectToArray.values; + +// `Object.values` method +// https://tc39.es/ecma262/#sec-object.values +$$1({ + target: 'Object', + stat: true +}, { + values: function values(O) { + return $values(O); + } +}); + +/** + * @export + * @class RadioGroup + * @property {string} controlName + * @property {string} featureName + * @property {string} radioElements + * @property {string} defaultValue + */ +var RadioGroup = /*#__PURE__*/function (_BasePlugin) { + _inherits(RadioGroup, _BasePlugin); + var _super = _createSuper(RadioGroup); + /** + * creates an instance of RadioGroup + * @constructor + * @param {string} selector selector string for the radio group + * @param {string} controlName the name of the control (used for warning logging only) + * @param {string} [featureName='captionStyles'] the feature name used by Springroll. Defaults to captionStyles + * @param {string} defaultValue the value attribute of the radio button that should be selected by default + * @param {string} pluginName name of the plugin that instantiated the RadioGroup. Used for logging warnings + * @memberof RadioGroupPlugin + */ + function RadioGroup(_ref) { + var _this; + var selector = _ref.selector, + controlName = _ref.controlName, + _ref$featureName = _ref.featureName, + featureName = _ref$featureName === void 0 ? 'captionStyles' : _ref$featureName, + defaultValue = _ref.defaultValue, + pluginName = _ref.pluginName; + _classCallCheck(this, RadioGroup); + _this = _super.call(this, pluginName); + _this.controlName = controlName; + _this.featureName = featureName; + _this.radioElements = document.querySelectorAll(selector); + _this.defaultValue = defaultValue; + _this.radioGroup = {}; + if (_this.radioElements.length <= 0) { + _this.warn("".concat(_this.controlName, " RadioGroup found no HTMLElements with selector: ").concat(selector)); + return _possibleConstructorReturn(_this); + } + _this.radioElements.forEach(function (radio) { + if (radio.type !== 'radio') { + _this.warn("".concat(_this.controlName, " was provided a non Radio Button element with selector: ").concat(selector)); + return; + } + radio.value = radio.value.toLowerCase(); + _this.radioGroup[radio.value] = radio; + }); + if (!_this.radioGroup[_this.defaultValue]) { + _this.warn("".concat(_this.controlName, " RadioGroup for selector: ").concat(selector, " does not have a radio button with value ").concat(_this.defaultValue, " to use as default value. Using first element as default")); + _this.defaultValue = _this.radioElements[0].value.toLowerCase(); + } + _this.radioGroup[_this.defaultValue].checked = true; + return _this; + } + + /** + * @param {string[]} valuesArray Array of acceptable values to check against the radio group. + * @return {boolean} + * @memberof RadioGroup + */ + _createClass(RadioGroup, [{ + key: "hasOnly", + value: function hasOnly(valuesArray) { + for (var key in this.radioGroup) { + if (!valuesArray.includes(this.radioGroup[key].value)) { + this.warn("".concat(this.controlName, " radio button value: ").concat(this.radioGroup[key].value, " is not an accepted value. Skipping radio group")); + return false; + } + } + return true; + } + + /** + * @return {boolean} + * @memberof RadioGroup + */ + }, { + key: "hasDuplicateValues", + value: function hasDuplicateValues() { + return this.values.length !== _toConsumableArray(new Set(this.values)).length; + } + + /** + * Adds change listeners to the radio buttons using the given callback function + * @memberof RadioGroup + * @param {Function} callBack event to fire on change + */ + }, { + key: "enableRadioEvents", + value: function enableRadioEvents(callBack) { + if (!this.radioGroup.length <= 0) { + return; + } + var event = callBack; + for (var radio in this.radioGroup) { + this.radioGroup[radio].addEventListener('change', event); + } + } + + /** + * removes the event listeners from the RadioGroup + * @memberof RadioGroup + * @param {Function} callBack event to fire on change + */ + }, { + key: "disableRadioEvents", + value: function disableRadioEvents(callBack) { + if (!this.radioGroup.length <= 0) { + return; + } + for (var radio in this.radioGroup) { + this.radioGroup[radio].removeEventListener('change', callBack); + } + } + + /** + * enables display of the Radio buttons if the correct feature is present in the features list + * @memberof RadioGroup + * @param {object} data Object containing which features are enabled + */ + }, { + key: "displayRadios", + value: function displayRadios(data) { + if (this.radioGroup.length <= 0 && data[this.featureName]) { + this.warn("".concat(this.controlName, " was not provided a valid input element or selector but '").concat(this.featureName, "' was included as a game feature")); + return; + } + if (this.radioGroup.length <= 0) { + return; + } + if (data[this.featureName]) { + return; + } + for (var radio in this.radioGroup) { + this.radioGroup[radio].style.display = 'none'; + } + } + + /** + * Reset the radio button states + * @memberof RadioGroup + */ + }, { + key: "resetState", + value: function resetState() { + this.radioGroup[this.defaultValue].checked = true; + } + + /** + * @readonly + * @returns {number} + * @memberof RadioGroup + */ + }, { + key: "length", + get: function get() { + return Object.keys(this.radioGroup).length; + } + + /** + * @readonly + * @returns {number} + * @memberof RadioGroup + */ + }, { + key: "values", + get: function get() { + return Object.values(this.radioGroup).map(function (radio) { + return radio.value; + }); + } + }]); + return RadioGroup; +}(BasePlugin); + +/** + * + * + * @export + * @class RadioGroupPlugin + */ +var RadioGroupPlugin = /*#__PURE__*/function (_BasePlugin) { + _inherits(RadioGroupPlugin, _BasePlugin); + var _super = _createSuper(RadioGroupPlugin); + /** + * + *Creates an instance of RadioGroupPlugin. + * @constructor + * @memberof RadioGroupPlugin + * @param {string} name + */ + function RadioGroupPlugin(cssSelector, name, _ref) { + var _this; + var supportedValues = _ref.supportedValues, + initialValue = _ref.initialValue, + controlName = _ref.controlName, + featureName = _ref.featureName, + radioCount = _ref.radioCount; + _classCallCheck(this, RadioGroupPlugin); + _this = _super.call(this, name); + _this.selectors = cssSelector ? cssSelector.split(',') : []; + _this.supportedValues = supportedValues; + _this.initialValue = supportedValues.includes(initialValue) ? initialValue : supportedValues[0]; + _this.controlName = controlName; + _this.featureName = featureName; + _this.radioCount = radioCount; + _this.sendAllProperties = _this.sendAllProperties.bind(_assertThisInitialized(_this)); + _this._currentValue = _this.initialValue; + _this.radioGroups = _this.setUpRadios(_this.selectors); + _this.radioGroupsLength = _this.radioGroups.length; + return _this; + } + + /** + * @memberof RadioGroupPlugin + * @param {string[]} selectors the separated selector strings used to target the radio button groups + * @returns {RadioGroup[]} + */ + _createClass(RadioGroupPlugin, [{ + key: "setUpRadios", + value: function setUpRadios(selectors) { + var _this2 = this; + var radioGroups = []; + selectors.forEach(function (selector) { + var radioGroup = new RadioGroup({ + selector: selector.trim(), + controlName: _this2.controlName, + defaultValue: _this2.initialValue, + pluginName: _this2.name, + featureName: _this2.featureName + }); + if (radioGroup.length !== _this2.radioCount) { + _this2.warn("Selector \"".concat(selector, "\" did not find exactly ").concat(_this2.radioCount, " radio buttons for ").concat(_this2.controlName, ". Skipping selector")); + return; + } + if (!radioGroup.hasOnly(_this2.supportedValues)) { + return; + } + if (radioGroup.hasDuplicateValues()) { + _this2.warn("Duplicate radio button values detected (values: ".concat(radioGroup.values, " ). Skipping radio group")); + return; + } + radioGroups.push(radioGroup); + }); + return radioGroups; + } + + /** + * @memberof RadioGroupPlugin + */ + }, { + key: "start", + value: function start() { + this.client.on('loaded', this.sendAllProperties); + this.client.on('loadDone', this.sendAllProperties); + } + + /** + * + * Sends initial caption properties to the application + * @memberof RadioGroupPlugin + */ + }, { + key: "sendAllProperties", + value: function sendAllProperties() { + this.sendProperty(this.featureName, this.property); + } + + /** + * @memberof RadioGroupPlugin + * @param {string} newValue + */ + }, { + key: "currentValue", + get: + /** + * @memberof RadioGroupPlugin + * @return {string} + */ + function get() { + return this._currentValue; + }, + set: function set(newValue) { + if (!this.supportedValues.includes(newValue)) { + return; + } + this._currentValue = newValue; + for (var i = 0, l = this.radioGroups.length; i < l; i++) { + this.radioGroups[i].radioGroup[newValue].checked = true; + } + } + }]); + return RadioGroupPlugin; +}(BasePlugin); + +var uncurryThis$1 = functionUncurryThis; + +// `thisNumberValue` abstract operation +// https://tc39.es/ecma262/#sec-thisnumbervalue +var thisNumberValue$1 = uncurryThis$1(1.0.valueOf); + +var $ = _export; +var IS_PURE = isPure; +var DESCRIPTORS = descriptors; +var global$1 = global$n; +var path = path$1; +var uncurryThis = functionUncurryThis; +var isForced = isForced_1; +var hasOwn = hasOwnProperty_1; +var inheritIfRequired = inheritIfRequired$2; +var isPrototypeOf = objectIsPrototypeOf; +var isSymbol = isSymbol$3; +var toPrimitive = toPrimitive$2; +var fails = fails$s; +var getOwnPropertyNames = objectGetOwnPropertyNames.f; +var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f; +var defineProperty = objectDefineProperty.f; +var thisNumberValue = thisNumberValue$1; +var trim = stringTrim.trim; +var NUMBER = 'Number'; +var NativeNumber = global$1[NUMBER]; +path[NUMBER]; +var NumberPrototype = NativeNumber.prototype; +var TypeError$1 = global$1.TypeError; +var stringSlice = uncurryThis(''.slice); +var charCodeAt = uncurryThis(''.charCodeAt); + +// `ToNumeric` abstract operation +// https://tc39.es/ecma262/#sec-tonumeric +var toNumeric = function (value) { + var primValue = toPrimitive(value, 'number'); + return typeof primValue == 'bigint' ? primValue : toNumber(primValue); +}; + +// `ToNumber` abstract operation +// https://tc39.es/ecma262/#sec-tonumber +var toNumber = function (argument) { + var it = toPrimitive(argument, 'number'); + var first, third, radix, maxCode, digits, length, index, code; + if (isSymbol(it)) throw TypeError$1('Cannot convert a Symbol value to a number'); + if (typeof it == 'string' && it.length > 2) { + it = trim(it); + first = charCodeAt(it, 0); + if (first === 43 || first === 45) { + third = charCodeAt(it, 2); + if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix + } else if (first === 48) { + switch (charCodeAt(it, 1)) { + case 66: + case 98: + radix = 2; + maxCode = 49; + break; + // fast equal of /^0b[01]+$/i + case 79: + case 111: + radix = 8; + maxCode = 55; + break; + // fast equal of /^0o[0-7]+$/i + default: + return +it; + } + digits = stringSlice(it, 2); + length = digits.length; + for (index = 0; index < length; index++) { + code = charCodeAt(digits, index); + // parseInt parses a string to a first unavailable symbol + // but ToNumber should return NaN if a string contains unavailable symbols + if (code < 48 || code > maxCode) return NaN; + } + return parseInt(digits, radix); + } + } + return +it; +}; +var FORCED = isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1')); +var calledWithNew = function (dummy) { + // includes check on 1..constructor(foo) case + return isPrototypeOf(NumberPrototype, dummy) && fails(function () { + thisNumberValue(dummy); + }); +}; + +// `Number` constructor +// https://tc39.es/ecma262/#sec-number-constructor +var NumberWrapper = function Number(value) { + var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value)); + return calledWithNew(this) ? inheritIfRequired(Object(n), this, NumberWrapper) : n; +}; +NumberWrapper.prototype = NumberPrototype; +if (FORCED && !IS_PURE) NumberPrototype.constructor = NumberWrapper; +$({ + global: true, + constructor: true, + wrap: true, + forced: FORCED +}, { + Number: NumberWrapper +}); + +// Use `internal/copy-constructor-properties` helper in `core-js@4` +var copyConstructorProperties = function (target, source) { + for (var keys = DESCRIPTORS ? getOwnPropertyNames(source) : ( + // ES3: + 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' + + // ES2015 (in case, if modules with ES2015 Number statics required before): + 'EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,' + + // ESNext + 'fromString,range').split(','), j = 0, key; keys.length > j; j++) { + if (hasOwn(source, key = keys[j]) && !hasOwn(target, key)) { + defineProperty(target, key, getOwnPropertyDescriptor(source, key)); + } + } +}; +if (FORCED || IS_PURE) copyConstructorProperties(path[NUMBER], NativeNumber); + +/** + * @export + * @class Slider + */ +var Slider = /*#__PURE__*/function () { + /** + *Creates an instance of Slider + * @param {object} params + * @param {string | HTMLInputElement} params.slider the slider element or a selector string + * @param {string} params.control the feature that this slider controols + * @param {number} [min=0] slider min value + * @param {number} [max=1] slider max value + * @param {number} [step=0.1] slider step value + * @param {number} [defaultValue=1] slider starting value + * @memberof SliderPlugin + */ + function Slider(_ref) { + var slider = _ref.slider, + control = _ref.control, + _ref$min = _ref.min, + min = _ref$min === void 0 ? 0 : _ref$min, + _ref$max = _ref.max, + max = _ref$max === void 0 ? 1 : _ref$max, + _ref$step = _ref.step, + step = _ref$step === void 0 ? 0.1 : _ref$step, + _ref$defaultValue = _ref.defaultValue, + defaultValue = _ref$defaultValue === void 0 ? 1 : _ref$defaultValue; + _classCallCheck(this, Slider); + this.min = min; + this.max = max; + this.step = step; + this.sliderValue = defaultValue; + this.control = control; + this.slider = this.setUpSlider(slider, control); + } + + /** + * @param {string | HTMLInputElement | HTMLElement} slider + * @param {string} control The control element (sensitivity, difficulty, pointer size, etc) this slider will be controlling + * @returns {Element | HTMLElement} + * @memberof Slider + */ + _createClass(Slider, [{ + key: "setUpSlider", + value: function setUpSlider(slider, control) { + if ('string' === typeof slider) { + slider = document.querySelector(slider); + } + if (!slider || 'range' !== slider.type) { + return null; + } + var value = SavedData.read(control); + slider.min = this.min; + slider.max = this.max; + slider.step = this.step; + if ((value || value === 0) && value.toString().trim().length > 0) { + slider.value = value; + this.sliderValue = value; + } else { + slider.value = this.sliderValue; + } + return slider; + } + + /** + * Controls the range of the slider + * @param {number} i + * @returns + * @memberof Slider + */ + }, { + key: "sliderRange", + value: function sliderRange(i) { + if (i < this.min) { + return this.min; + } else if (i > this.max) { + return this.max; + } else { + return i; + } + } + + /** + * Adds change and input listeners to the slider using the given callback function + * @memberof Slider + * @param {Function} callBack event to fire on change or input + */ + }, { + key: "enableSliderEvents", + value: function enableSliderEvents(callBack) { + if (!this.slider) { + return; + } + var event = callBack; + this.slider.addEventListener('change', event); + this.slider.addEventListener('input', event); + } + + /** + * removes the event listeners from the given slider. + * @memberof Slider + * @param {Function} callBack event to fire on change or input + */ + }, { + key: "disableSliderEvents", + value: function disableSliderEvents(callBack) { + if (!this.slider) { + return; + } + var event = callBack; + this.slider.removeEventListener('change', event); + this.slider.removeEventListener('input', event); + } + /** + * enables display of the Slider if it is present in the features list + * @memberof Slider + * @param {object} data Object containing which features are enabled + */ + }, { + key: "displaySlider", + value: function displaySlider(data) { + if (!this.slider && data[this.control]) { + console.warn("".concat(this.control, " was not provided a valid input element or selector but was included as a game feature")); + } + if (!this.slider) { + return; + } + this.slider.style.display = data[this.control] ? '' : 'none'; + } + + /** + * @param {Event} event the event to be fired on the slider + * @memberof Slider + */ + }, { + key: "dispatchEvent", + value: function dispatchEvent(event) { + this.slider.dispatchEvent(event); + } + + /** + * @readonly + * @returns {string} + * @memberof Slider + */ + }, { + key: "value", + get: function get() { + return this.slider.value; + } + + /** + * @memberof Slider + */, + set: function set(value) { + this.slider.value = value; + } + }]); + return Slider; +}(); + +/** + * @export + * @class Button + */ +var Button = /*#__PURE__*/function () { + /** + *Creates an instance of Button + * @param {object} params + * @param {string | HTMLElement} params.button the button itself or a selector string + * @param {Function} params.onClick the function to call when the button is clicked + * @param {string} channel the feature this button controls + * @memberof ButtonPlugin + */ + function Button(_ref) { + var button = _ref.button, + onClick = _ref.onClick, + channel = _ref.channel; + _classCallCheck(this, Button); + this.button = button instanceof HTMLElement ? button : document.querySelector(button); + this.onClick = onClick; + this.channel = channel; + if (this.button) { + this.button.addEventListener('click', onClick); + } + } + + /** + * enables display of the button if it is present in the features list + * @memberof Button + * @param {object} data Object containing which features are enabled + */ + _createClass(Button, [{ + key: "displayButton", + value: function displayButton(data) { + if (!(this.button instanceof HTMLElement)) { + return; + } + this.button.style.display = data[this.channel] || this.channel === 'pause' || this.channel === 'hints' ? '' : 'none'; + } + + /** + * enables display of the button + * @memberof Button + */ + }, { + key: "enableButton", + value: function enableButton() { + if (!this.button) { + return; + } + this.button.classList.remove('disabled'); + } + + /** + * + * @param {string} className The classname to be appended to the end of the class property + */ + }, { + key: "addClass", + value: function addClass(className) { + this.button.className = this.button.className ? this.button.className + " ".concat(className) : " ".concat(className); + } + }]); + return Button; +}(); + +/** + * + * + * @export + * @class SliderPlugin + */ +var SliderPlugin = /*#__PURE__*/function (_BasePlugin) { + _inherits(SliderPlugin, _BasePlugin); + var _super = _createSuper(SliderPlugin); + /** + * + *Creates an instance of SliderPlugin. + * @constructor + * @memberof SliderPlugin + * @param {string} cssSelector + * @param {string} name + * @param {object} options + * @param {string | number} [options.defaultValue='0.5'] + * @param {string | number} [options.minValue='0'] + * @param {string | number} [options.maxValue='1'] + * @param {string} [options.featureName] Springroll Core feature name that the plugin is supporting + */ + function SliderPlugin(cssSelector, name, _ref) { + var _this; + var _ref$defaultValue = _ref.defaultValue, + defaultValue = _ref$defaultValue === void 0 ? '0.5' : _ref$defaultValue, + _ref$minValue = _ref.minValue, + minValue = _ref$minValue === void 0 ? '0' : _ref$minValue, + _ref$maxValue = _ref.maxValue, + maxValue = _ref$maxValue === void 0 ? '1' : _ref$maxValue, + featureName = _ref.featureName; + _classCallCheck(this, SliderPlugin); + _this = _super.call(this, name); + _this.featureName = featureName; + _this.minValue = minValue; + _this.defaultValue = defaultValue; + _this.maxValue = maxValue; + _this._currentValue = defaultValue; + _this.sliders = _this.setUpSliders(cssSelector); + _this.slidersLength = _this.sliders.length; + _this.sendAllProperties = _this.sendAllProperties.bind(_assertThisInitialized(_this)); + if (0 >= _this.slidersLength) { + _this.warn('Plugin was not provided any valid HTML Elements'); + return _possibleConstructorReturn(_this); + } + return _this; + } + + /** + * @memberof SliderPlugin + * @param {string[]} selectors the selector strings used to target the input elements + * @returns {Slider[]} + */ + _createClass(SliderPlugin, [{ + key: "setUpSliders", + value: function setUpSliders(selectors) { + var _this2 = this; + var sliders = []; + if (selectors instanceof HTMLElement) { + sliders.push(new Slider({ + slider: selectors, + control: this.featureName, + defaultValue: this.defaultValue, + minValue: this.minValue, + maxValue: this.maxValue + })); + } else { + document.querySelectorAll(selectors).forEach(function (slider) { + sliders.push(new Slider({ + slider: slider, + control: _this2.featureName, + defaultValue: _this2.defaultValue, + minValue: _this2.minValue, + maxValue: _this2.maxValue + })); + }); + } + return sliders; + } + + /** + * @memberof SliderPlugin + */ + }, { + key: "init", + value: function init() { + this.client.on('features', function (features) { + if (!features.data) { + return; + } + for (var i = 0; i < this.slidersLength; i++) { + this.sliders[i].displaySlider(features.data); + } + }.bind(this)); + } + + /** + * @memberof SliderPlugin + */ + }, { + key: "start", + value: function start() { + this._currentValue = this.sliders[0].value; //update current value to the saved data value set in Slider. + this.client.on('loaded', this.sendAllProperties); + this.client.on('loadDone', this.sendAllProperties); + } + + /** + * + * Sends initial caption properties to the application + * @memberof SliderPlugin + */ + }, { + key: "sendAllProperties", + value: function sendAllProperties() { + this.sendProperty(this.featureName, this.currentValue); + } + + /** + * @memberof SliderPlugin + * @param {string} newValue + */ + }, { + key: "currentValue", + get: + /** + * @memberof SliderPlugin + * @return {string} + */ + function get() { + return this._currentValue; + }, + set: function set(newValue) { + //just use first slider to ensure the number is valid. + this._currentValue = this.sliders[0].sliderRange(Number(newValue)); + for (var i = 0; i < this.slidersLength; i++) { + this.sliders[i].value = newValue; + } + } + }]); + return SliderPlugin; +}(BasePlugin); + +var DEFAULT_CAPTIONS_STYLES = { + size: 'medium', + background: 'black', + color: 'white', + edge: 'none', + font: 'arial', + align: 'top' +}; +var DEFAULT_COLOR_STYLE = { + color: 'white', + background: 'black' +}; +var INVERTED_COLOR_STYLE = { + color: 'black', + background: 'white' +}; +var FONT_SIZE_VALUES = ['small', 'medium', 'large']; +var COLOR_VALUES = ['default', 'inverted']; +var ALIGN_VALUES = ['top', 'bottom']; + +/** + * @export + * @class CaptionsStylePlugin + * @property {object} captionsStyles The collection of captions styles + * @property {string[]} fontSizeSelectors selector strings for the radio button groups + * @property {string[]} colorSelectors selector strings for the radio button groups + * @property {string[]} alignmentSelectors selector strings for the radio button groups + * @property {Object[]} fontSizeRadios array that contains each radio group + * @property {Object[]} colorRadios array that contains each radio group + * @property {Object[]} alignmentRadios array that contains each radio group + * @property {number} fontSizeRadiosLength Length of the fontSizeRadios array + * @property {number} colorRadiosLength Length of the colorRadios array + * @property {number} alignmentRadiosLength Length of the alignmentRadios array + * @extends {ButtonPlugin} + */ +var CaptionsStylePlugin = /*#__PURE__*/function (_ButtonPlugin) { + _inherits(CaptionsStylePlugin, _ButtonPlugin); + var _super = _createSuper(CaptionsStylePlugin); + /** + * Creates an instance of CaptionsStylePlugin. + * @param {string} fontSizeRadios selector string for one or more radio groups for caption font size + * @param {string} colorRadios selector string for one or more radio groups for caption font/background colors + * @param {string} alignmentRadios selector string for one or more radio groups for caption position + * @param {string} [defaultFontSize='medium'] Default selected font size + * @param {string} [defaultColor='default'] Default selected color + * @param {string} [defaultAlignment='top'] Default selected alignment + * @memberof CaptionsStylePlugin + */ + function CaptionsStylePlugin(fontSizeRadios, colorRadios, alignmentRadios) { + var _this; + var _ref = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}, + _ref$defaultFontSize = _ref.defaultFontSize, + defaultFontSize = _ref$defaultFontSize === void 0 ? 'medium' : _ref$defaultFontSize, + _ref$defaultColor = _ref.defaultColor, + defaultColor = _ref$defaultColor === void 0 ? 'default' : _ref$defaultColor, + _ref$defaultAlignment = _ref.defaultAlignment, + defaultAlignment = _ref$defaultAlignment === void 0 ? 'top' : _ref$defaultAlignment; + _classCallCheck(this, CaptionsStylePlugin); + _this = _super.call(this, 'Caption-Button-Plugin'); + _this.sendAllProperties = _this.sendAllProperties.bind(_assertThisInitialized(_this)); + _this.captionsStyles = Object.assign({}, DEFAULT_CAPTIONS_STYLES, SavedData.read(CaptionsStylePlugin.captionStyleKey) || {}); + + //split the selector strings into individual selectors. + //Helps keep the input style consistent across plugins. + _this.fontSizeSelectors = fontSizeRadios ? fontSizeRadios.split(',') : []; + _this.colorSelectors = colorRadios ? colorRadios.split(',') : []; + _this.alignmentSelectors = alignmentRadios ? alignmentRadios.split(',') : []; + _this.defaultFontSize = FONT_SIZE_VALUES.includes(defaultFontSize) ? defaultFontSize : FONT_SIZE_VALUES[0]; + _this.defaultColor = COLOR_VALUES.includes(defaultColor) ? defaultColor : COLOR_VALUES[0]; + _this.defaultAlignment = ALIGN_VALUES.includes(defaultAlignment) ? defaultAlignment : ALIGN_VALUES[0]; + _this.fontSizeRadios = []; + _this.colorRadios = []; + _this.alignmentRadios = []; + _this.fontSizeRadios = _this.setUpFontSizeRadios(_this.fontSizeSelectors); + _this.colorRadios = _this.setUpColorRadios(_this.colorSelectors); + _this.alignmentRadios = _this.setUpAlignmentRadios(_this.alignmentSelectors); + _this._captionsMuted = false; + _this.alignmentRadiosLength = _this.alignmentRadios.length; + _this.fontSizeRadiosLength = _this.fontSizeRadios.length; + _this.colorRadiosLength = _this.colorRadios.length; + if (0 >= _this.alignmentRadiosLength + _this.fontSizeRadiosLength + _this.colorRadiosLength) { + _this.warn('Plugin was not provided any input elements'); + return _possibleConstructorReturn(_this); + } + + //set up change events + for (var i = 0; i < _this.colorRadiosLength; i++) { + _this.colorRadios[i].enableRadioEvents(_this.onColorChange.bind(_assertThisInitialized(_this))); + } + for (var _i = 0; _i < _this.alignmentRadiosLength; _i++) { + _this.alignmentRadios[_i].enableRadioEvents(_this.onAlignmentChange.bind(_assertThisInitialized(_this))); + } + for (var _i2 = 0; _i2 < _this.fontSizeRadiosLength; _i2++) { + _this.fontSizeRadios[_i2].enableRadioEvents(_this.onFontSizeChange.bind(_assertThisInitialized(_this))); + } + return _this; + } + + /** + * @memberof CaptionsStylePlugin + * @param {string[]} selectors the separated selector strings used to target the radio button groups + * @returns {RadioGroup[]} + */ + _createClass(CaptionsStylePlugin, [{ + key: "setUpFontSizeRadios", + value: function setUpFontSizeRadios(selectors) { + var _this2 = this; + var radioGroups = []; + selectors.forEach(function (selector) { + var radioGroup = new RadioGroup({ + selector: selector.trim(), + controlName: 'Font Size', + defaultValue: _this2.defaultFontSize, + pluginName: 'Caption-Button-Plugin' + }); + if (radioGroup.length !== 3) { + _this2.warn("Selector \"".concat(selector, "\" did not find exactly three(3) radio buttons for caption font size. Skipping selector")); + return; + } + if (!radioGroup.hasOnly(FONT_SIZE_VALUES)) { + return; + } + if (radioGroup.hasDuplicateValues()) { + _this2.warn("Duplicate radio button values detected (values: ".concat(radioGroup.values, " ). Skipping radio group")); + return; + } + radioGroups.push(radioGroup); + }); + return radioGroups; + } + + /** + * @memberof CaptionsStylePlugin + * @param {string[]} selectors the separated selector strings used to target the radio button groups + * @returns {RadioGroup[]} + */ + }, { + key: "setUpColorRadios", + value: function setUpColorRadios(selectors) { + var _this3 = this; + var radioGroups = []; + selectors.forEach(function (selector) { + var radioGroup = new RadioGroup({ + selector: selector.trim(), + controlName: 'Color', + defaultValue: _this3.defaultColor, + pluginName: 'Caption-Button-Plugin' + }); + if (radioGroup.length !== 2) { + _this3.warn("Selector \"".concat(selector, "\" did not find exactly two(2) radio buttons for caption colors. Skipping selector")); + return; + } + if (!radioGroup.hasOnly(COLOR_VALUES)) { + return; + } + if (radioGroup.hasDuplicateValues()) { + _this3.warn("Duplicate radio button values detected (values: ".concat(radioGroup.values, " ). Skipping radio group")); + return; + } + radioGroups.push(radioGroup); + }); + return radioGroups; + } + + /** + * @memberof CaptionsStylePlugin + * @param {string[]} selectors the separated selector strings used to target the radio button groups + * @returns {RadioGroup[]} + */ + }, { + key: "setUpAlignmentRadios", + value: function setUpAlignmentRadios(selectors) { + var _this4 = this; + var radioGroups = []; + selectors.forEach(function (selector) { + var radioGroup = new RadioGroup({ + selector: selector.trim(), + controlName: 'Alignment', + defaultValue: _this4.defaultAlignment, + pluginName: 'Caption-Button-Plugin' + }); + if (radioGroup.length !== 2) { + _this4.warn("Selector \"".concat(selector, "\" did not find exactly two(2) radio buttons for caption alignment. Skipping selector")); + return; + } + if (!radioGroup.hasOnly(ALIGN_VALUES)) { + return; + } + if (radioGroup.hasDuplicateValues()) { + _this4.warn("Duplicate radio button values detected (values: ".concat(radioGroup.values, " ). Skipping radio group")); + return; + } + radioGroups.push(radioGroup); + }); + return radioGroups; + } + + /** + * @memberof CaptionsStylePlugin + */ + }, { + key: "init", + value: function init() { + // Handle the features request + this.client.on('features', function ($event) { + var _iterator = _createForOfIteratorHelper(this.radios), + _step; + try { + for (_iterator.s(); !(_step = _iterator.n()).done;) { + var radio = _step.value; + radio.displayRadios($event.data); + } + } catch (err) { + _iterator.e(err); + } finally { + _iterator.f(); + } + }.bind(this)); + this.client.on('caption-set-style', function ($event) { + this.setCaptionsStyles($event.data || {}); + }.bind(this)); + } + /** + * @memberof CaptionsStylePlugin + */ + }, { + key: "start", + value: function start() { + this.setCaptionsStyles(SavedData.read(CaptionsStylePlugin.captionStyleKey)); + this.client.on('loaded', this.sendAllProperties); + this.client.on('loadDone', this.sendAllProperties); + } + + /** + * + * Sends initial caption properties to the application + * @memberof CaptionsStylePlugin + */ + }, { + key: "sendAllProperties", + value: function sendAllProperties() { + this.sendProperty(CaptionsStylePlugin.captionStyleKey, this.captionsStyles); + } + /** + * Fired whenever the font size radios are updated + * @param {Event} e + * @memberof CaptionsStylePlugin + */ + }, { + key: "onFontSizeChange", + value: function onFontSizeChange(e) { + this.setCaptionsStyles('size', e.target.value); + + // this.fontSizeRadios.forEach((group) => { + // group.radioGroup[e.target.value].checked = true; + // }); + } + + /** + * Fired whenever the alignment radios are updated + * @param {Event} e + * @memberof CaptionsStylePlugin + */ + }, { + key: "onAlignmentChange", + value: function onAlignmentChange(e) { + this.setCaptionsStyles('align', e.target.value); + + // this.alignmentRadios.forEach((group) => { + // group.radioGroup[e.target.value].checked = true; + // }); + } + + /** + * Fired whenever the color radios are updated + * @param {Event} e + * @memberof CaptionsStylePlugin + */ + }, { + key: "onColorChange", + value: function onColorChange(e) { + var styles = e.target.value === 'default' ? DEFAULT_COLOR_STYLE : INVERTED_COLOR_STYLE; + this.setCaptionsStyles(styles); + + // this.colorRadios.forEach((group) => { + // group.radioGroup[e.target.value].checked = true; + // }); + } + + /** + * Reset the captions styles + * @param {Event} e + * @memberof CaptionsStylePlugin + */ + }, { + key: "clearCaptionsStyles", + value: function clearCaptionsStyles() { + this.captionsStyles = Object.assign({}, DEFAULT_CAPTIONS_STYLES); + this.setCaptionsStyles(); + var _iterator2 = _createForOfIteratorHelper(this.radios), + _step2; + try { + for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) { + var radio = _step2.value; + radio.resetState(); + } + } catch (err) { + _iterator2.e(err); + } finally { + _iterator2.f(); + } + } + + /** + * Get the captions styles + * @param {string} [prop] The optional property, values are "size", "edge", "font", "background", "color" + * @return {object | string} The collection of styles, see setCaptionsStyles for more info. + * @memberof CaptionsStylePlugin + */ + }, { + key: "getCaptionsStyles", + value: function getCaptionsStyles(prop) { + return prop ? this.captionsStyles[prop] : this.captionsStyles; + } + + /** + * Set the captions styles + * + * @param {object} [styles] The style options or the name of the + * property (e.g., "color", "edge", "font", "background", "size") + * @param {string} [styles.color='white'] The text color, the default is white + * @param {string} [styles.edge='none'] The edge style, default is none + * @param {string} [styles.font='arial'] The font style, default is arial + * @param {string} [styles.background='black'] The background style, black + * @param {string} [styles.size='md'] The font style default is medium + * @param {string} [styles.align='top'] The align style default is top of the window + * @param {string} [value=''] If setting styles parameter as a string, this is the value of the property. + * @memberof CaptionsStylePlugin + */ + }, { + key: "setCaptionsStyles", + value: function setCaptionsStyles() { + var _this5 = this; + var styles = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : DEFAULT_CAPTIONS_STYLES; + var value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; + if (_typeof(styles) === 'object') { + Object.assign(this.captionsStyles, styles); + } else if (typeof styles === 'string') { + this.captionsStyles[styles] = value; + } + + // update radios to match + this.colorRadios.forEach(function (group) { + var style = _this5.captionsStyles.color === 'white' ? 'default' : 'inverted'; + group.radioGroup[style].checked = true; + }); + this.alignmentRadios.forEach(function (group) { + group.radioGroup[_this5.captionsStyles.align].checked = true; + }); + this.fontSizeRadios.forEach(function (group) { + group.radioGroup[_this5.captionsStyles.size].checked = true; + }); + SavedData.write(CaptionsStylePlugin.captionStyleKey, this.captionsStyles); + if (this.client) { + this.client.send(CaptionsStylePlugin.captionStyleKey, this.captionsStyles); + } + } + + /** + * @readonly + * @returns {number} + * @memberof RadioGroup + */ + }, { + key: "radios", + get: function get() { + return this.colorRadios.concat(this.alignmentRadios).concat(this.fontSizeRadios); + } + /** + * Get captionStyle Key + * @readonly + * @static + * @memberof CaptionStyleKey + * @returns {string} + */ + }], [{ + key: "captionStyleKey", + get: function get() { + return 'captionsStyles'; + } + }]); + return CaptionsStylePlugin; +}(ButtonPlugin); + +/** + * @export + * @class CaptionsTogglePlugin + * @property {Button[]} _captionsButtons An array of caption mute buttons + * @property {boolean} _captionsMuted True if captions are muted + * @property {number} captionsButtonLength The length of the captionsButtons array + * @extends {ButtonPlugin} + */ +var CaptionsTogglePlugin = /*#__PURE__*/function (_ButtonPlugin) { + _inherits(CaptionsTogglePlugin, _ButtonPlugin); + var _super = _createSuper(CaptionsTogglePlugin); + /** + *Creates an instance of CaptionsTogglePlugin. + * @param {string | HTMLElement} captionsButtons selector string for one or more captions mute buttons + * @memberof CaptionsTogglePlugin + */ + function CaptionsTogglePlugin(captionsButtons) { + var _this; + _classCallCheck(this, CaptionsTogglePlugin); + _this = _super.call(this, 'Caption-Button-Plugin'); + _this.sendAllProperties = _this.sendAllProperties.bind(_assertThisInitialized(_this)); + _this._captionsButtons = []; + if (captionsButtons instanceof HTMLElement) { + _this._captionsButtons[0] = new Button({ + button: captionsButtons, + onClick: _this.captionsButtonClick.bind(_assertThisInitialized(_this)), + channel: 'captions' + }); + } else { + document.querySelectorAll(captionsButtons).forEach(function (button) { + _this._captionsButtons.push(new Button({ + button: button, + onClick: _this.captionsButtonClick.bind(_assertThisInitialized(_this)), + channel: 'captions' + })); + }); + } + _this._captionsMuted = false; + _this.captionsButtonLength = _this._captionsButtons.length; + if (0 >= _this.captionsButtonLength) { + _this.warn('Plugin was not provided any valid button or input elements'); + return _possibleConstructorReturn(_this); + } + return _this; + } + + /** + * @memberof CaptionsTogglePlugin + */ + _createClass(CaptionsTogglePlugin, [{ + key: "init", + value: function init() { + // Handle the features request + this.client.on('features', function ($event) { + for (var i = 0; i < this.captionsButtonLength; i++) { + this._captionsButtons[i].displayButton($event.data); + } + if (null === SavedData.read(CaptionsTogglePlugin.captionsToggleKey)) { + return; + } + this.captionsMuted = !!SavedData.read(CaptionsTogglePlugin.captionsToggleKey); + }.bind(this)); + } + /** + * @memberof CaptionsTogglePlugin + */ + }, { + key: "start", + value: function start() { + this.captionsMuted = !!SavedData.read(CaptionsTogglePlugin.captionsToggleKey); + this.client.on('loaded', this.sendAllProperties); + this.client.on('loadDone', this.sendAllProperties); + } + + /** + * + * Sends initial caption properties to the application + * @memberof CaptionsTogglePlugin + */ + }, { + key: "sendAllProperties", + value: function sendAllProperties() { + this.sendProperty(CaptionsTogglePlugin.captionsToggleKey, this.captionsMuted); + } + + /** + * @memberof CaptionsTogglePlugin + */ + }, { + key: "captionsButtonClick", + value: function captionsButtonClick() { + this.captionsMuted = !this.captionsMuted; + } + + /** + * @readonly + * @memberof CaptionsTogglePlugin + */ + }, { + key: "captionsMuted", + get: function get() { + return this._captionsMuted; + } + + /** + * @param {boolean} muted + * @memberof CaptionsTogglePlugin + */, + set: function set(muted) { + this._captionsMuted = muted; + this._setMuteProp('captionsMuted', this._captionsButtons, this._captionsMuted); + } + + /** + * Get CaptionToggle Key + * @readonly + * @static + * @memberof captionsToggleKey + * @returns {string} + */ + }], [{ + key: "captionsToggleKey", + get: function get() { + return 'captionsMuted'; + } + }]); + return CaptionsTogglePlugin; +}(ButtonPlugin); + +/** + * Requests a hint or help from the game + * @class HelpPlugin + * @property {boolean} paused + * @property {boolean} _helpEnabled + * @property {boolean} onPause + * @property {number} helpButtonsLength + * @extends {ButtonPlugin} + * @export + */ +var HelpPlugin = /*#__PURE__*/function (_ButtonPlugin) { + _inherits(HelpPlugin, _ButtonPlugin); + var _super = _createSuper(HelpPlugin); + /** + * Creates an instance of HelpPlugin. + * @param {string | HTMLElement} helpButtons The selector or HTMLElement for the button + * @memberof HelpPlugin + */ + function HelpPlugin(helpButtons) { + var _this; + _classCallCheck(this, HelpPlugin); + _this = _super.call(this, 'Help-Button-Plugin'); + _this._helpButtons = []; + if (helpButtons instanceof HTMLElement) { + _this._helpButtons[0] = new Button({ + button: helpButtons, + onClick: _this.helpButtonClick.bind(_assertThisInitialized(_this)), + channel: 'hints' // the check to see if this feature exists is different than most so passing this ensures it'll work the same. + }); + } else { + document.querySelectorAll(helpButtons).forEach(function (button) { + _this._helpButtons.push(new Button({ + button: button, + onClick: _this.helpButtonClick.bind(_assertThisInitialized(_this)), + channel: 'hints' + })); + }); + } + _this.paused = false; + _this._helpEnabled = false; + _this.onPause = _this.onPause.bind(_assertThisInitialized(_this)); + _this.helpButtonsLength = _this._helpButtons.length; + if (_this.helpButtonsLength <= 0) { + _this.warn('Plugin was not provided any valid button elements'); + } + return _this; + } + /** + * Called when the game is either paused or resumed + * @param {object} $event + * @memberof HelpPlugin + */ + _createClass(HelpPlugin, [{ + key: "onPause", + value: function onPause($event) { + this.paused = $event.data.paused; + // Disable the help button when paused if it's active + if (this.paused && this.helpEnabled) { + for (var i = 0; i < this.helpButtonsLength; i++) { + this._helpButtons[i].button.setAttribute('data-paused', 'true'); + } + this.helpEnabled = false; + } else { + for (var _i = 0; _i < this.helpButtonsLength; _i++) { + if (this._helpButtons[_i].button.getAttribute('data-paused')) { + this._helpButtons[_i].button.setAttribute('data-paused', ''); + this.helpEnabled = true; + } + } + } + } + + /** + * + * + * @memberof HelpPlugin + */ + }, { + key: "helpButtonClick", + value: function helpButtonClick() { + if (!this.paused && this.helpEnabled) { + this.client.send('playHelp'); + } + } + + /** + * @memberof HelpPlugin + */ + }, { + key: "init", + value: function init() { + // Handle pause + this.client.on('paused', this.onPause); + + // Handle features changed + this.client.on('features', function (features) { + this.helpEnabled = features.data.hints; + for (var i = 0; i < this.helpButtonsLength; i++) { + this._helpButtons[i].displayButton(features.data); + } + }.bind(this)); + this.client.on('helpEnabled', function (event) { + this._helpEnabled = !!event.data; + }.bind(this)); + } + + /** + * @memberof HelpPlugin + */ + }, { + key: "helpEnabled", + get: function get() { + return this._helpEnabled; + } + + /** + * Fired when the enabled status of the help button changes + * @function helpEnabled + * @param {boolean} enabled If the help button is enabled + * @memberof HelpPlugin + */, + set: function set(enabled) { + this._helpEnabled = enabled; + for (var i = 0; i < this.helpButtonsLength; i++) { + this._helpButtons[i].button.classList.remove('disabled'); + this._helpButtons[i].button.classList.remove('enabled'); + this._helpButtons[i].button.classList.add(enabled ? 'enabled' : 'disabled'); + } + this.client.trigger('helpEnabled'); + } + + /** + * @readonly + * @static + * @memberof HelpPlugin + * @returns {string} + */ + }], [{ + key: "helpKey", + get: function get() { + return 'help'; + } + }]); + return HelpPlugin; +}(ButtonPlugin); + +/** + * @class Container + * @property {object[]} sliders an array of all slider objects attached to PausePlugin + * @extends ButtonPlugin + */ +var PausePlugin = /*#__PURE__*/function (_ButtonPlugin) { + _inherits(PausePlugin, _ButtonPlugin); + var _super = _createSuper(PausePlugin); + /** + * Creates an instance of PausePlugin. + * @param {string | HTMLElement} pauseButton selector string or HTML Element for the input(s) + * @param {boolean} manageOwnVisibility whether the plugin should manage container's visibility or some other source will handle it + * @memberof PausePlugin + */ + function PausePlugin(pauseButton) { + var _this; + var manageOwnVisibility = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; + _classCallCheck(this, PausePlugin); + _this = _super.call(this, 'Pause-Button-plugin'); + _this._manageOwnVisibility = manageOwnVisibility; + _this._appBlurred = false; + _this._containerBlurred = false; + _this._focusTimer = null; + _this._isManualPause = false; + _this._keepFocus = false; + _this._paused = false; + _this.iframe = null; + _this.focusApp = _this.focusApp.bind(_assertThisInitialized(_this)); + _this.manageFocus = _this.manageFocus.bind(_assertThisInitialized(_this)); + _this.onKeepFocus = _this.onKeepFocus.bind(_assertThisInitialized(_this)); + _this.onFocus = _this.onFocus.bind(_assertThisInitialized(_this)); + var onPauseToggle = _this.onPauseToggle.bind(_assertThisInitialized(_this)); + _this.pauseDisabled = false; + _this._pauseButton = []; + _this.pageVisibility = new PageVisibility(_this.onContainerFocus.bind(_assertThisInitialized(_this)), _this.onContainerBlur.bind(_assertThisInitialized(_this))); + _this.pageVisibility.enabled = _this.manageOwnVisibility; + if (pauseButton instanceof HTMLElement) { + _this._pauseButton[0] = new Button({ + button: pauseButton, + onClick: onPauseToggle, + channel: PausePlugin.pauseKey + }); + } else { + document.querySelectorAll(pauseButton).forEach(function (button) { + _this._pauseButton.push(new Button({ + button: button, + onClick: onPauseToggle, + channel: PausePlugin.pauseKey + })); + }); + } + return _this; + } + + /** + * updates _paused and also sends the pause event to the application + * @memberof PausePlugin + * @param {Boolean} paused + */ + _createClass(PausePlugin, [{ + key: "pause", + get: + /** + * @memberof PausePlugin + * @returns {Boolean} + */ + function get() { + return this._paused; + } + + /** + * updates _manageOwnVisibility and also re-enables pageVisibility + * @memberof PausePlugin + * @param {Boolean} manageOwnVisibility + */, + set: function set(paused) { + paused = !!paused; + if (this.pauseDisabled) { + return; + } + this._paused = paused; + this.client.send(PausePlugin.pauseKey, paused); + this.client.trigger(paused ? 'paused' : 'resumed', { + paused: paused + }); + for (var i = 0, l = this._pauseButton.length; i < l; i++) { + this._pauseButton[i].button.classList.remove('unpaused'); + this._pauseButton[i].button.classList.remove('paused'); + this._pauseButton[i].button.classList.add(paused ? 'paused' : 'unpaused'); + } + } + }, { + key: "manageOwnVisibility", + get: + /** + * @memberof PausePlugin + * @returns {Boolean} + */ + function get() { + return this._manageOwnVisibility; + } + + /** + * forces focus onto the iframe application window + * @memberof PausePlugin + */, + set: function set(manageOwnVisibility) { + this._manageOwnVisibility = manageOwnVisibility; + this.pageVisibility.enabled = this._manageOwnVisibility; + } + }, { + key: "focusApp", + value: function focusApp() { + if (!this.hasDom) { + // We don't have a dom with a content window, fail quietly + return; + } + this.iframe.contentWindow.focus(); + } + + /** + * blurs the application iframe window + * @memberof PausePlugin + */ + }, { + key: "blurApp", + value: function blurApp() { + if (!this.hasDom) { + return; + } + this.iframe.contentWindow.blur(); + } + + /** + * Determines what pause state should be sent, if any, on focus or blur events. + * @method manageFocus + * @memberof PausePlugin + */ + }, { + key: "manageFocus", + value: function manageFocus() { + if (!this.manageOwnVisibility) { + return; + } + // Unfocus on the iframe + if (this._keepFocus) { + this.blurApp(); + } + + // we only need one delayed call, at the end of any + // sequence of rapidly-fired blur/focus events + if (this._focusTimer) { + clearTimeout(this._focusTimer); + } + + // Delay setting of 'paused' in case we get another focus event soon. + // Focus events are sent to the container asynchronously, and this was + // causing rapid toggling of the pause state and related issues, + // especially in Internet Explorer + this._focusTimer = setTimeout(function () { + this._focusTimer = null; + // A manual pause cannot be overriden by focus events. + // User must click the resume button. + if (this._isManualPause) { + return; + } + this.pause = Boolean(this._containerBlurred && this._appBlurred); + + // Focus on the content window when blurring the app + // but selecting the container + if (this._keepFocus && !this._containerBlurred && this._appBlurred) { + this.focusApp(); + } + }.bind(this), 100); + } + + /** + * Handle the keep focus event for the window + * @method onKeepFocus + * @memberof PausePlugin + * @private + */ + }, { + key: "onKeepFocus", + value: function onKeepFocus($event) { + this._keepFocus = !!$event.data; + this.manageFocus(); + } + + /** + * Handle focus events sent from iFrame children + * @method onFocus + * @memberof PausePlugin + * @private + */ + }, { + key: "onFocus", + value: function onFocus($event) { + this._appBlurred = !$event.data; + this.manageFocus(); + } + + /** + * Handle focus events sent from container's window + * @method onContainerFocus + * @memberof PausePlugin + * @private + */ + }, { + key: "onContainerFocus", + value: function onContainerFocus() { + this._containerBlurred = false; + this.manageFocus(); + } + + /** + * Handle blur events sent from container's window + * @method onContainerBlur + * @memberof PausePlugin + * @private + */ + }, { + key: "onContainerBlur", + value: function onContainerBlur() { + //Set both container and application to blurred, + //because some blur events are only happening on the container. + //If container is blurred because application area was just focused, + //the application's focus event will override the blur imminently. + this._containerBlurred = this._appBlurred = true; + this.manageFocus(); + } + + /** + * @memberof PausePlugin + */ + }, { + key: "onPauseToggle", + value: function onPauseToggle() { + this._isManualPause = !this._isManualPause; + this.pause = !this.pause; + } + + /** + * @param {Container} container + * @memberof PausePlugin + */ + }, { + key: "init", + value: function init(_ref) { + var iframe = _ref.iframe; + this.iframe = iframe; + this.client.on('features', function (features) { + if (features.disablePause) { + this.pauseDisabled = true; + } + for (var i = 0, l = this._pauseButton.length; i < l; i++) { + this._pauseButton[i].displayButton(features.data); + } + }.bind(this)); + this.client.on('focus', this.onFocus); + this.client.on('keepFocus', this.onKeepFocus); + this.pause = this._paused; + } + + /** + * Function to check if we have a dom with a contentWindow + * @readonly + * @returns {boolean} + * @memberof PausePlugin + */ + }, { + key: "hasDom", + get: function get() { + return Boolean(null !== this.iframe && this.iframe.contentWindow); + } + + /** + * @readonly + * @memberof PausePlugin + * @returns {HTMLButtonElement[]} + */ + }, { + key: "pauseButton", + get: function get() { + var buttons = []; + for (var i = 0, l = this._pauseButton.length; i < l; i++) { + buttons.push(this._pauseButton[i].button); + } + return buttons; + } + + /** + * @readonly + * @static + * @memberof PausePlugin + * @returns {string} + */ + }], [{ + key: "pauseKey", + get: function get() { + return 'pause'; + } + }]); + return PausePlugin; +}(ButtonPlugin); + +/** + * @export + * @class SoundPlugin + * @extends {ButtonPlugin} + * + */ +var SoundPlugin = /*#__PURE__*/function (_ButtonPlugin) { + _inherits(SoundPlugin, _ButtonPlugin); + var _super = _createSuper(SoundPlugin); + /** + * Creates an instance of SoundPlugin. + * @param {string | HTMLElement} [soundButtons] selector string or HTML Element for the input(s) + * @param {string | HTMLElement} [musicButtons] selector string or HTML Element for the input(s) + * @param {string | HTMLElement} [voButtons] selector string or HTML Element for the input(s) + * @param {string | HTMLElement} [sfxButtons] selector string or HTML Element for the input(s) + * @param {string | HTMLElement} [soundSliders] selector string or HTML Element for the input(s) + * @param {string | HTMLElement} [musicSliders] selector string or HTML Element for the input(s) + * @param {string | HTMLElement} [sfxSliders] selector string or HTML Element for the input(s) + * @param {string | HTMLElement} [voSliders] selector string or HTML Element for the input(s) + * @memberof SoundPlugin + */ + function SoundPlugin() { + var _this; + var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, + soundButtons = _ref.soundButtons, + musicButtons = _ref.musicButtons, + sfxButtons = _ref.sfxButtons, + voButtons = _ref.voButtons, + soundSliders = _ref.soundSliders, + musicSliders = _ref.musicSliders, + sfxSliders = _ref.sfxSliders, + voSliders = _ref.voSliders; + _classCallCheck(this, SoundPlugin); + _this = _super.call(this, 'Sound-Button-Plugin'); + var saved = SavedData.read(SoundPlugin.soundMutedKey); + _this.sendAllProperties = _this.sendAllProperties.bind(_assertThisInitialized(_this)); + _this._soundMuted = saved ? saved : false; + _this._musicMuted = false; + _this._voMuted = false; + _this._sfxMuted = false; + _this.soundVolume = 1; + _this.musicVolume = 1; + _this.sfxVolume = 1; + _this.voVolume = 1; + _this.soundSliders = []; + _this.musicSliders = []; + _this.sfxSliders = []; + _this.voSliders = []; + _this.soundButtons = []; + _this.musicButtons = []; + _this.sfxButtons = []; + _this.voButtons = []; + if (soundSliders instanceof HTMLElement) { + _this.soundSliders[0] = new Slider({ + slider: soundSliders, + control: SoundPlugin.soundVolumeKey, + defaultValue: _this.soundVolume + }); + } else { + document.querySelectorAll(soundSliders).forEach(function (slider) { + var newSlider = new Slider({ + slider: slider, + control: SoundPlugin.soundVolumeKey, + defaultValue: _this.soundVolume + }); + if (newSlider.slider) { + _this.soundSliders.push(newSlider); + } + }); + } + if (musicSliders instanceof HTMLElement) { + _this.musicSliders[0] = new Slider({ + slider: musicSliders, + control: SoundPlugin.musicVolumeKey, + defaultValue: _this.musicVolume + }); + } else { + document.querySelectorAll(musicSliders).forEach(function (slider) { + var newSlider = new Slider({ + slider: slider, + control: SoundPlugin.musicVolumeKey, + defaultValue: _this.musicVolume + }); + if (newSlider.slider) { + _this.musicSliders.push(newSlider); + } + }); + } + if (sfxSliders instanceof HTMLElement) { + _this.sfxSliders[0] = new Slider({ + slider: sfxSliders, + control: SoundPlugin.sfxVolumeKey, + defaultValue: _this.sfxVolume + }); + } else { + document.querySelectorAll(sfxSliders).forEach(function (slider) { + var newSlider = new Slider({ + slider: slider, + control: SoundPlugin.sfxVolumeKey, + defaultValue: _this.sfxVolume + }); + if (newSlider.slider) { + _this.sfxSliders.push(newSlider); + } + }); + } + if (voSliders instanceof HTMLElement) { + _this.voSliders[0] = new Slider({ + slider: voSliders, + control: SoundPlugin.voVolumeKey, + defaultValue: _this.voVolume + }); + } else { + document.querySelectorAll(voSliders).forEach(function (slider) { + var newSlider = new Slider({ + slider: slider, + control: SoundPlugin.voVolumeKey, + defaultValue: _this.voVolume + }); + if (newSlider.slider) { + _this.voSliders.push(newSlider); + } + }); + } + if (soundButtons instanceof HTMLElement) { + _this.soundButtons[0] = new Button({ + button: soundButtons, + onClick: _this.onSoundToggle.bind(_assertThisInitialized(_this)), + channel: SoundPlugin.soundKey + }); + } else { + document.querySelectorAll(soundButtons).forEach(function (button) { + _this.soundButtons.push(new Button({ + button: button, + onClick: _this.onSoundToggle.bind(_assertThisInitialized(_this)), + channel: SoundPlugin.soundKey + })); + }); + } + if (musicButtons instanceof HTMLElement) { + _this.musicButtons[0] = new Button({ + button: musicButtons, + onClick: _this.onMusicToggle.bind(_assertThisInitialized(_this)), + channel: 'music' + }); + } else { + document.querySelectorAll(musicButtons).forEach(function (button) { + _this.musicButtons.push(new Button({ + button: button, + onClick: _this.onMusicToggle.bind(_assertThisInitialized(_this)), + channel: 'music' + })); + }); + } + if (sfxButtons instanceof HTMLElement) { + _this.sfxButtons[0] = new Button({ + button: sfxButtons, + onClick: _this.onSFXToggle.bind(_assertThisInitialized(_this)), + channel: 'sfx' + }); + } else { + document.querySelectorAll(sfxButtons).forEach(function (button) { + _this.sfxButtons.push(new Button({ + button: button, + onClick: _this.onSFXToggle.bind(_assertThisInitialized(_this)), + channel: 'sfx' + })); + }); + } + if (voButtons instanceof HTMLElement) { + _this.voButtons[0] = new Button({ + button: voButtons, + onClick: _this.onVOToggle.bind(_assertThisInitialized(_this)), + channel: 'vo' + }); + } else { + document.querySelectorAll(voButtons).forEach(function (button) { + _this.voButtons.push(new Button({ + button: button, + onClick: _this.onVOToggle.bind(_assertThisInitialized(_this)), + channel: 'vo' + })); + }); + } + _this.soundSlidersLength = _this.soundSliders.length; + _this.musicSlidersLength = _this.musicSliders.length; + _this.sfxSlidersLength = _this.sfxSliders.length; + _this.voSlidersLength = _this.voSliders.length; + _this.soundButtonsLength = _this.soundButtons.length; + _this.musicButtonsLength = _this.musicButtons.length; + _this.sfxButtonsLength = _this.sfxButtons.length; + _this.voButtonsLength = _this.voButtons.length; + if (0 >= _this.soundSlidersLength + _this.musicSlidersLength + _this.sfxSlidersLength + _this.voSlidersLength + _this.soundButtonsLength + _this.musicButtonsLength + _this.sfxButtonsLength + _this.voButtonsLength) { + _this.warn('Plugin was not provided any valid HTML Elements'); + return _possibleConstructorReturn(_this); + } + for (var i = 0; i < _this.soundSlidersLength; i++) { + _this.soundSliders[i].enableSliderEvents(_this.onSoundVolumeChange.bind(_assertThisInitialized(_this))); + } + for (var _i = 0; _i < _this.musicSlidersLength; _i++) { + _this.musicSliders[_i].enableSliderEvents(_this.onMusicVolumeChange.bind(_assertThisInitialized(_this))); + } + for (var _i2 = 0; _i2 < _this.sfxSlidersLength; _i2++) { + _this.sfxSliders[_i2].enableSliderEvents(_this.onSFXVolumeChange.bind(_assertThisInitialized(_this))); + } + for (var _i3 = 0; _i3 < _this.voSlidersLength; _i3++) { + _this.voSliders[_i3].enableSliderEvents(_this.onVOVolumeChange.bind(_assertThisInitialized(_this))); + } + if (_this.soundSliders[0] && _this.soundSliders[0].slider) { + _this.soundVolume = _this.soundSliders[0].value; + } + if (_this.musicSliders[0] && _this.musicSliders[0].slider) { + _this.musicVolume = _this.musicSliders[0].value; + } + if (_this.sfxSliders[0] && _this.sfxSliders[0].slider) { + _this.sfxVolume = _this.sfxSliders[0].value; + } + if (_this.voSliders[0] && _this.voSliders[0].slider) { + _this.voVolume = _this.voSliders[0].value; + } + return _this; + } + + /** + * @memberof SoundPlugin + * @param {Event} e + */ + _createClass(SoundPlugin, [{ + key: "onSoundVolumeChange", + value: function onSoundVolumeChange(e) { + this.soundVolume = this.soundSliders[0].sliderRange(Number(e.target.value)); + this.soundMuted = !this.soundVolume; + this._checkSoundMute(); + this.sendProperty(SoundPlugin.soundVolumeKey, this.soundVolume); + for (var i = 0; i < this.soundSlidersLength; i++) { + this.soundSliders[i].value = this.soundVolume; + } + } + + /** + * @memberof SoundPlugin + * @param {Event} e + */ + }, { + key: "onMusicVolumeChange", + value: function onMusicVolumeChange(e) { + this.musicVolume = this.musicSliders[0].sliderRange(Number(e.target.value)); + this.musicMuted = !this.musicVolume; + this._checkSoundMute(); + this.sendProperty(SoundPlugin.musicVolumeKey, this.musicVolume); + for (var i = 0; i < this.musicSlidersLength; i++) { + this.musicSliders[i].value = this.musicVolume; + } + } + + /** + * @memberof SoundPlugin + * @param {Event} e + */ + }, { + key: "onVOVolumeChange", + value: function onVOVolumeChange(e) { + this.voVolume = this.voSliders[0].sliderRange(Number(e.target.value)); + this.voMuted = !this.voVolume; + this._checkSoundMute(); + this.sendProperty(SoundPlugin.voVolumeKey, this.voVolume); + for (var i = 0; i < this.voSlidersLength; i++) { + this.voSliders[i].value = this.voVolume; + } + } + + /** + * @memberof SoundPlugin + * @param {Event} e + */ + }, { + key: "onSFXVolumeChange", + value: function onSFXVolumeChange(e) { + this.sfxVolume = this.sfxSliders[0].sliderRange(Number(e.target.value)); + this.sfxMuted = !this.sfxVolume; + this._checkSoundMute(); + this.sendProperty(SoundPlugin.sfxVolumeKey, this.sfxVolume); + for (var i = 0; i < this.sfxSlidersLength; i++) { + this.sfxSliders[i].value = this.sfxVolume; + } + } + + /** + * @memberof SoundPlugin + */ + }, { + key: "onSoundToggle", + value: function onSoundToggle() { + var muted = !this.soundMuted; + this.soundMuted = muted; + this.musicMuted = muted; + this.voMuted = muted; + this.sfxMuted = muted; + } + + /** + * @memberof SoundPlugin + */ + }, { + key: "onMusicToggle", + value: function onMusicToggle() { + this.musicMuted = !this.musicMuted; + this._checkSoundMute(); + } + + /** + * @memberof SoundPlugin + */ + }, { + key: "onVOToggle", + value: function onVOToggle() { + this.voMuted = !this.voMuted; + this._checkSoundMute(); + } + + /** + * @memberof SoundPlugin + */ + }, { + key: "onSFXToggle", + value: function onSFXToggle() { + this.sfxMuted = !this.sfxMuted; + this._checkSoundMute(); + } + + /** + * @memberof SoundPlugin + */ + }, { + key: "_checkSoundMute", + value: function _checkSoundMute() { + this.soundMuted = this.sfxMuted && this.voMuted && this.musicMuted; + } + + /** + * @param {string} key + * @param {*} value + * @param {Element} element + * @memberof SoundPlugin + */ + }, { + key: "setMuteProp", + value: function setMuteProp(key, value, element) { + this['_' + key] = value; + this._setMuteProp(key, element, value); + } + + /** + * @memberof SoundPlugin + */ + }, { + key: "init", + value: function init() { + this.client.on('features', function (features) { + if (!features.data) { + return; + } + for (var i = 0; i < this.soundButtonsLength; i++) { + this.soundButtons[i].displayButton(features.data); + } + for (var _i4 = 0; _i4 < this.musicButtonsLength; _i4++) { + this.musicButtons[_i4].displayButton(features.data); + } + for (var _i5 = 0; _i5 < this.sfxButtonsLength; _i5++) { + this.sfxButtons[_i5].displayButton(features.data); + } + for (var _i6 = 0; _i6 < this.voButtonsLength; _i6++) { + this.voButtons[_i6].displayButton(features.data); + } + for (var _i7 = 0; _i7 < this.soundSlidersLength; _i7++) { + this.soundSliders[_i7].displaySlider(features.data); + } + for (var _i8 = 0; _i8 < this.musicSlidersLength; _i8++) { + this.musicSliders[_i8].displaySlider(features.data); + } + for (var _i9 = 0; _i9 < this.sfxSlidersLength; _i9++) { + this.sfxSliders[_i9].displaySlider(features.data); + } + for (var _i10 = 0; _i10 < this.voSlidersLength; _i10++) { + this.voSliders[_i10].displaySlider(features.data); + } + }.bind(this)); + } + + /** + * @memberof SoundPlugin + */ + }, { + key: "start", + value: function start() { + for (var i = 0; i < this.soundButtonsLength; i++) { + this.soundButtons[i].enableButton(); + } + for (var _i11 = 0; _i11 < this.musicButtonsLength; _i11++) { + this.musicButtons[_i11].enableButton(); + } + for (var _i12 = 0; _i12 < this.sfxButtonsLength; _i12++) { + this.sfxButtons[_i12].enableButton(); + } + for (var _i13 = 0; _i13 < this.voButtonsLength; _i13++) { + this.voButtons[_i13].enableButton(); + } + this.soundMuted = !!SavedData.read(SoundPlugin.soundMutedKey); + this.musicMuted = !!SavedData.read(SoundPlugin.musicMutedKey); + this.sfxMuted = !!SavedData.read(SoundPlugin.sfxMutedKey); + this.voMuted = !!SavedData.read(SoundPlugin.voMutedKey); + this.client.on('loaded', this.sendAllProperties); + this.client.on('loadDone', this.sendAllProperties); + } + + /** + * + * Saves the current state of all volume properties, and then sends them to the game + * @memberof SoundPlugin + */ + }, { + key: "sendAllProperties", + value: function sendAllProperties() { + this.sendProperty(SoundPlugin.soundVolumeKey, this.soundVolume); + this.sendProperty(SoundPlugin.musicVolumeKey, this.musicVolume); + this.sendProperty(SoundPlugin.voVolumeKey, this.voVolume); + this.sendProperty(SoundPlugin.sfxVolumeKey, this.sfxVolume); + this.sendProperty(SoundPlugin.voMutedKey, this.voMuted); + this.sendProperty(SoundPlugin.soundMutedKey, this.soundMuted); + this.sendProperty(SoundPlugin.musicMutedKey, this.musicMuted); + this.sendProperty(SoundPlugin.sfxMutedKey, this.sfxMuted); + } + + /** + * @memberof SoundPlugin + * @param {boolean} muted + */ + }, { + key: "soundMuted", + get: + /** + * @memberof SoundPlugin + */ + function get() { + return this._soundMuted; + } + + /** + * @memberof SoundPlugin + * @param {boolean} muted + */, + set: function set(muted) { + this.setMuteProp('soundMuted', muted, this.soundButtons); + } + }, { + key: "voMuted", + get: + /** + * @memberof SoundPlugin + */ + function get() { + return this._voMuted; + } + + /** + * @memberof SoundPlugin + * @param {boolean} muted + */, + set: function set(muted) { + this.setMuteProp('voMuted', muted, this.voButtons); + } + }, { + key: "musicMuted", + get: + /** + * @memberof SoundPlugin + */ + function get() { + return this._musicMuted; + } + + /** + * @memberof SoundPlugin + * @param {boolean} muted + */, + set: function set(muted) { + this.setMuteProp('musicMuted', muted, this.musicButtons); + } + }, { + key: "sfxMuted", + get: + /** + * @memberof SoundPlugin + */ + function get() { + return this._sfxMuted; + } + + /** + * @readonly + * @static + * @memberof SoundPlugin + */, + set: function set(muted) { + this.setMuteProp('sfxMuted', muted, this.sfxButtons); + } + }, { + key: "soundButton", + get: + /** + * @readonly + * @memberof SoundPlugin + */ + function get() { + return this._soundButton.button; + } + + /** + * @readonly + * @memberof SoundPlugin + */ + }, { + key: "musicButton", + get: function get() { + return this._musicButton.button; + } + /** + * @readonly + * @memberof SoundPlugin + */ + }, { + key: "sfxButton", + get: function get() { + return this._sfxButton.button; + } + /** + * @readonly + * @memberof SoundPlugin + */ + }, { + key: "voButton", + get: function get() { + return this._voButton.button; + } + + /** + * @readonly + * @static + * @memberof SpeedScalePlugin + * @return {string} + */ + }], [{ + key: "soundMutedKey", + get: function get() { + return 'soundMuted'; + } + + /** + * @readonly + * @static + * @memberof SoundPlugin + */ + }, { + key: "voMutedKey", + get: function get() { + return 'voMuted'; + } + + /** + * @readonly + * @static + * @memberof SoundPlugin + */ + }, { + key: "musicMutedKey", + get: function get() { + return 'musicMuted'; + } + + /** + * @readonly + * @static + * @memberof SoundPlugin + */ + }, { + key: "sfxMutedKey", + get: function get() { + return 'sfxMuted'; + } + + /** + * @readonly + * @static + * @memberof SoundPlugin + */ + }, { + key: "soundVolumeKey", + get: function get() { + return 'soundVolume'; + } + + /** + * @readonly + * @static + * @memberof SoundPlugin + */ + }, { + key: "sfxVolumeKey", + get: function get() { + return 'sfxVolume'; + } + + /** + * @readonly + * @static + * @memberof SoundPlugin + */ + }, { + key: "voVolumeKey", + get: function get() { + return 'voVolume'; + } + + /** + * @readonly + * @static + * @memberof SoundPlugin + */ + }, { + key: "musicVolumeKey", + get: function get() { + return 'musicVolume'; + } + }, { + key: "soundKey", + get: function get() { + return 'sound'; + } + }]); + return SoundPlugin; +}(ButtonPlugin); + +/** + * Default user data handler for the {{#crossLink "springroll.Container"}}Container{{/crossLink}} to save data using + * the {{#crossLink "springroll.SavedData"}}SavedData{{/crossLink}} class. + * @class SavedDataHandler + */ +var SavedDataHandler = /*#__PURE__*/function () { + /** + * + */ + function SavedDataHandler() { + _classCallCheck(this, SavedDataHandler); + this.dbName; + this.savedData; + } + + /** + * Remove a data setting + * @method remove + * @static + * @param {String} name The name of the property + * @param {Function} [callback] Callback when remove is complete + */ + _createClass(SavedDataHandler, [{ + key: "IDBOpen", + value: + // ---------------------------------------------------------------- + // IndexedDB Manipulation + // ---------------------------------------------------------------- + + /** + * Open a connection with the database + * @param {string} dbName The name of your IndexedDB database + * @param {string} dbVersion The version number of the database + * @param {JSON} additions Any additions to the structure of the database + * @param {array} additions.stores Any stores to be added into the database syntax: + * {storeName: '[name]', options: {[optionally add options]}} + * @param {array} additions.indexes Any Indexes to be added to the database syntax: + * {storeName: '[name]', options: {[optionally add options]}} + */ + function IDBOpen(dbName) { + var dbVersion = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; + var additions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; + var deletions = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; + var callback = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null; + // persisting the savedData object to keep the connection open + this.savedData = new SavedData(); + this.savedData.IDBOpen(dbName, dbVersion, additions, deletions, callback); + } + + /** + * Add a record to a given store + * @param {string} storeName The name of the store from which the record will be updated + * @param {string} key the key of the record to be updated + * @param {*} value The value for the record with the given key to be updated + * @param {function} callback The method to call on success or failure. A single value will be passed in + */ + }, { + key: "IDBAdd", + value: function IDBAdd(storeName, record, key, callback) { + this.savedData.IDBAdd(storeName, record, key, callback); + } + + /** + * Update a record from a given store + * @param {string} storeName The name of the store from which the record will be updated + * @param {string} key the key of the record to be updated + * @param {*} value The value for the record with the given key to be updated + * @param {function} callback The method to call on success or failure. A single value will be passed in + */ + }, { + key: "IDBUpdate", + value: function IDBUpdate(storeName, key, value, callback) { + this.savedData.IDBUpdate(storeName, key, value, callback); + } + + /** + * Remove a record from a store + * @param {*} storeName The name of the store from which the record will be removed + * @param {*} key the key of the record to be removed + * @param {function} callback The method to call on success or failure. A single value will be passed in + */ + }, { + key: "IDBRemove", + value: function IDBRemove(storeName, key, callback) { + this.savedData.IDBRemove(storeName, key, callback); + } + + /** + * Return a record from a given store with a given key + * @param {string} storeName The name of the store to read from + * @param {string} key The key for the record in the given store + * @param {function} callback The method to call on success or failure. A single value will be passed in + */ + }, { + key: "IDBRead", + value: function IDBRead(storeName, key, callback) { + this.savedData.IDBRead(storeName, key, callback); + } + + /** + * Get all records from a store + * @param {string} storeName The store to get all records from + * @param {integer} count Optionally the count of records to return + * @param {function} callback The method to call on success or failure. A single value will be passed in + */ + }, { + key: "IDBReadAll", + value: function IDBReadAll(storeName, count, callback) { + this.savedData.IDBReadAll(storeName, count, callback); + } + + /** + * Get the version of a given database + * @param {string} dbName The name of the database to return the version of + * @param {function} callback The method to call on success or failure. A single value will be passed in + */ + }, { + key: "IDBGetVersion", + value: function IDBGetVersion(dbName, callback) { + var sd = new SavedData(dbName); + sd.IDBGetVersion(dbName, callback); + } + + /** + * Closes the connection to the database + * @param {function} callback The method to call on success or failure. A single value will be passed in + */ + }, { + key: "IDBClose", + value: function IDBClose(callback) { + this.savedData.IDBClose(callback); + } + /** + * Closes the connection to the database + * @param {function} callback The method to call on success or failure. A single value will be passed in + */ + }, { + key: "IDBDeleteDB", + value: function IDBDeleteDB(dbName, options, callback) { + var sd = new SavedData(dbName); + sd.IDBDeleteDB(dbName, options, callback); + } + }], [{ + key: "remove", + value: function remove(name, callback) { + SavedData.remove(name); + callback(); + } + + /** + * Write a custom setting + * @method write + * @static + * @param {String} name The name of the property + * @param {*} value The value to set the property to + * @param {Function} [callback] Callback when write is complete + */ + }, { + key: "write", + value: function write(name, value, callback) { + SavedData.write(name, value); + callback(); + } + + /** + * Read a custom setting + * @method read + * @static + * @param {String} name The name of the property + * @param {Function} callback Callback when read is complete, returns the value + */ + }, { + key: "read", + value: function read(name, callback) { + callback(SavedData.read(name)); + } + }]); + return SavedDataHandler; +}(); + +/** + * @export + * @class UserDataPlugin + * @extends {BasePlugin} + * @property {SavedDataHandler} SavedDataHandler The handler to work with the savedData class + */ +var UserDataPlugin = /*#__PURE__*/function (_BasePlugin) { + _inherits(UserDataPlugin, _BasePlugin); + var _super = _createSuper(UserDataPlugin); + /** + * Creates an instance of UserDataPlugin. + * @memberof UserDataPlugin + */ + function UserDataPlugin() { + var _this; + _classCallCheck(this, UserDataPlugin); + _this = _super.call(this, 'UserData-Plugin'); + _this.onUserDataRemove = _this.onUserDataRemove.bind(_assertThisInitialized(_this)); + _this.onUserDataRead = _this.onUserDataRead.bind(_assertThisInitialized(_this)); + _this.onUserDataWrite = _this.onUserDataWrite.bind(_assertThisInitialized(_this)); + _this.onIDBAdd = _this.onIDBAdd.bind(_assertThisInitialized(_this)); + _this.onIDBOpen = _this.onIDBOpen.bind(_assertThisInitialized(_this)); + _this.onIDBRead = _this.onIDBRead.bind(_assertThisInitialized(_this)); + _this.onIDBReadAll = _this.onIDBReadAll.bind(_assertThisInitialized(_this)); + _this.onIDBRemove = _this.onIDBRemove.bind(_assertThisInitialized(_this)); + _this.onIDBUpdate = _this.onIDBUpdate.bind(_assertThisInitialized(_this)); + _this.onIDBUpdate = _this.onIDBUpdate.bind(_assertThisInitialized(_this)); + _this.onIDBClose = _this.onIDBClose.bind(_assertThisInitialized(_this)); + _this.IDBReadAll = _this.onIDBReadAll.bind(_assertThisInitialized(_this)); + _this.onIDBGetVersion = _this.onIDBGetVersion.bind(_assertThisInitialized(_this)); + _this.onIDBDeleteDB = _this.onIDBDeleteDB.bind(_assertThisInitialized(_this)); + _this.savedDataHandler = null; + return _this; + } + + /** + * + * @memberof UserDataPlugin + */ + _createClass(UserDataPlugin, [{ + key: "init", + value: function init() { + this.client.on('userDataRemove', this.onUserDataRemove); + this.client.on('userDataRead', this.onUserDataRead); + this.client.on('userDataWrite', this.onUserDataWrite); + this.client.on('IDBOpen', this.onIDBOpen); + this.client.on('IDBRead', this.onIDBRead); + this.client.on('IDBReadAll', this.onIDBReadAll); + this.client.on('IDBAdd', this.onIDBAdd); + this.client.on('IDBRemove', this.onIDBRemove); + this.client.on('IDBUpdate', this.onIDBUpdate); + this.client.on('IDBClose', this.onIDBClose); + this.client.on('IDBGetVersion', this.onIDBGetVersion); + this.client.on('IDBDeleteDB', this.onIDBDeleteDB); + } + + /** + * Handler for the userDataRemove event + * @method onUserDataRemove + * @private + * @param {string} data The name of the record to be removed + * @param {string} type The type of listener for bellhop to send to + */ + }, { + key: "onUserDataRemove", + value: function onUserDataRemove(_ref) { + var _this2 = this; + var data = _ref.data, + type = _ref.type; + SavedDataHandler.remove(data, function () { + _this2.client.send(type); + }); + } + + /** + * Handler for the userDataRead event + * @method onUserDataRead + * @private + * @param {string} data The name of the record to be removed + * @param {string} type The type of listener for bellhop to send to + */ + }, { + key: "onUserDataRead", + value: function onUserDataRead(_ref2) { + var _this3 = this; + var data = _ref2.data, + type = _ref2.type; + SavedDataHandler.read(data, function (value) { + return _this3.client.send(type, value); + }); + } + + /** + * Handler for the userDataWrite event + * @method onUserDataWrite + * @private + * @param {string} type The type of listener for bellhop to send to + * @param {string} data.name The name for the record. This is what is used to read or remove the record + * @param {object | string} data.value The data object with the data and value for the record + */ + }, { + key: "onUserDataWrite", + value: function onUserDataWrite(_ref3) { + var _this4 = this; + var type = _ref3.type, + _ref3$data = _ref3.data, + name = _ref3$data.name, + value = _ref3$data.value; + SavedDataHandler.write(name, value, function () { + return _this4.client.send(type); + }); + } + + // ---------------------------------------------------------------- + // IndexedDB Manipulation + // ---------------------------------------------------------------- + + /** + * Open a connection with the IDB Database and optionally add or delete + * Indexes and stores + * @param {string} dbName The name of your IndexedDB database + * @param {string} [dbVersion] The version number of the database + * @param {JSON} [additions] Any additions to the structure of the database + * @param {array} [additions.stores] Any stores to be added into the database syntax: + * @param {string} [additions.stores.storeName] The name of the store + * @param {object} [additions.stores.options] Optionally, the option parameter for the createStore method + * @param {array} [additions.indexes] Any Indexes to be added to the database syntax: + * @param {string} [additions.indexes.storeName] The name of the store + * @param {object} [additions.indexes.options] Optionally, the option parameter for the createIndex method + * @param {string} type The type of listener for bellhop to send to + */ + }, { + key: "onIDBOpen", + value: function onIDBOpen(_ref4) { + var _this5 = this; + var type = _ref4.type, + _ref4$data = _ref4.data, + dbName = _ref4$data.dbName, + _ref4$data$dbVersion = _ref4$data.dbVersion, + dbVersion = _ref4$data$dbVersion === void 0 ? null : _ref4$data$dbVersion, + _ref4$data$additions = _ref4$data.additions, + additions = _ref4$data$additions === void 0 ? {} : _ref4$data$additions, + _ref4$data$deletions = _ref4$data.deletions, + deletions = _ref4$data$deletions === void 0 ? {} : _ref4$data$deletions; + // Keep an instance open to use on open + this.savedDataHandler = new SavedDataHandler(); + this.savedDataHandler.IDBOpen(dbName, dbVersion, additions, deletions, function (value) { + return _this5.client.send(type, value); + }); + } + + /** + * Add a record to a given store + * @param {string} type The type of listener for bellhop to send to + * @param {string} storeName The name of the store from which the record will be updated + * @param {*} value The value for the record with the given key to be updated + * @param {string} key the key of the record to be updated + */ + }, { + key: "onIDBAdd", + value: function onIDBAdd(_ref5) { + var _this6 = this; + var type = _ref5.type, + _ref5$data = _ref5.data, + storeName = _ref5$data.storeName, + value = _ref5$data.value, + key = _ref5$data.key; + this.savedDataHandler.IDBAdd(storeName, value, key, function (value) { + return _this6.client.send(type, value); + }); + } + + /** + * Update a record from a given store + * @param {string} type The type of listener for bellhop to send to + * @param {string} storeName The name of the store with the record to update + * @param {string} key The key of the record to be updated + * @param {*} value The record value + */ + }, { + key: "onIDBUpdate", + value: function onIDBUpdate(_ref6) { + var _this7 = this; + var type = _ref6.type, + _ref6$data = _ref6.data, + storeName = _ref6$data.storeName, + key = _ref6$data.key, + value = _ref6$data.value; + this.savedDataHandler.IDBUpdate(storeName, key, value, function (value) { + return _this7.client.send(type, value); + }); + } + + /** + * Remove a record from a store + * @param {string} type The type of listener for bellhop to send to + * @param {string} storeName The name of the store from which the record will be removed + * @param {*} key the key of the record to be removed + */ + }, { + key: "onIDBRemove", + value: function onIDBRemove(_ref7) { + var _this8 = this; + var type = _ref7.type, + _ref7$data = _ref7.data, + storeName = _ref7$data.storeName, + key = _ref7$data.key; + this.savedDataHandler.IDBRemove(storeName, key, function (value) { + return _this8.client.send(type, value); + }); + } + + /** + * Return a record from a given store with a given key + * @param {string} storeName The name of the store to read from + * @param {string} key The key for the record in the given store + * @param {string} type The type of listener for bellhop to send to + */ + }, { + key: "onIDBRead", + value: function onIDBRead(_ref8) { + var _this9 = this; + var type = _ref8.type, + _ref8$data = _ref8.data, + storeName = _ref8$data.storeName, + key = _ref8$data.key; + this.savedDataHandler.IDBRead(storeName, key, function (value) { + return _this9.client.send(type, value); + }); + } + + /** + * Get all records from a store + * @param {string} storeName The store to get all records from + * @param {integer} count Optionally the number of records to return + * @param {string} type The type of listener for bellhop to send to + */ + }, { + key: "onIDBReadAll", + value: function onIDBReadAll(_ref9) { + var _this10 = this; + var type = _ref9.type, + _ref9$data = _ref9.data, + storeName = _ref9$data.storeName, + count = _ref9$data.count; + this.savedDataHandler.IDBReadAll(storeName, count, function (value) { + return _this10.client.send(type, value); + }); + } + + /** + * Get the version of a given database + * @param {string} dbName The name of the database to return the version of + * @param {string} type The type of listener for bellhop to send to + */ + }, { + key: "onIDBGetVersion", + value: function onIDBGetVersion(_ref10) { + var _this11 = this; + var type = _ref10.type, + dbName = _ref10.data.dbName; + // Create a new instance of savedDataHandler to avoid mutating the current instance + var sdh = new SavedDataHandler(); + sdh.IDBGetVersion(dbName, function (value) { + return _this11.client.send(type, value); + }); + } + + /** + * Close the connection with the database + * @param {string} type The type of listener for bellhop to send to + */ + }, { + key: "onIDBClose", + value: function onIDBClose(_ref11) { + var _this12 = this; + var type = _ref11.type; + this.savedDataHandler.IDBClose(function (value) { + return _this12.client.send(type, value); + }); + } + /** + * Close the connection with the database + * @param type - The type of request being sent + */ + }, { + key: "onIDBDeleteDB", + value: function onIDBDeleteDB(_ref12) { + var _this13 = this; + var type = _ref12.type, + _ref12$data = _ref12.data, + dbName = _ref12$data.dbName, + options = _ref12$data.options; + var sdh = new SavedDataHandler(); + sdh.IDBDeleteDB(dbName, options, function (value) { + return _this13.client.send(type, value); + }); + } + }]); + return UserDataPlugin; +}(BasePlugin); + +/** + * @export + * @class PointerSizePlugin + * @extends {SliderPlugin} + * @property {object[]} sliders an array of all slider objects attached to PointerSizePlugin + * @extends SliderPlugin + */ +var PointerSizePlugin = /*#__PURE__*/function (_SliderPlugin) { + _inherits(PointerSizePlugin, _SliderPlugin); + var _super = _createSuper(PointerSizePlugin); + /** + * Creates an instance of PointerSizePlugin. + * @param {string | HTMLElement} [pointerSliders] selector string or HTML Element for the input(s) + * @param {number} [defaultPointerSize=0.5] The default value for the pointer size slider + * @memberof PointerSizePlugin + */ + function PointerSizePlugin(pointerSliders) { + var _this; + var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, + _ref$defaultPointerSi = _ref.defaultPointerSize, + defaultPointerSize = _ref$defaultPointerSi === void 0 ? 0.5 : _ref$defaultPointerSi; + _classCallCheck(this, PointerSizePlugin); + _this = _super.call(this, pointerSliders, 'UISize-Pointer-Plugin', { + defaultValue: defaultPointerSize, + featureName: PointerSizePlugin.pointerSizeKey + }); + for (var i = 0; i < _this.slidersLength; i++) { + _this.sliders[i].enableSliderEvents(_this.onPointerSizeChange.bind(_assertThisInitialized(_this))); + } + return _this; + } + + /** + * @memberof PointerSizePlugin + * @param {Event} e + */ + _createClass(PointerSizePlugin, [{ + key: "onPointerSizeChange", + value: function onPointerSizeChange(e) { + this.currentValue = e.target.value; + this.sendProperty(PointerSizePlugin.pointerSizeKey, this.currentValue); + } + + /** + * @readonly + * @static + * @memberof PointerSizePlugin + * @return {string} + */ + }], [{ + key: "pointerSizeKey", + get: function get() { + return 'pointerSize'; + } + }]); + return PointerSizePlugin; +}(SliderPlugin); + +/** + * @export + * @class ButtonSizePlugin + * @property {object[]} sliders An array of slider objects given to ButtonSizePlugin + * @property {number} currentValue The current button size value + * @extends {SliderPlugin} + */ +var ButtonSizePlugin = /*#__PURE__*/function (_SliderPlugin) { + _inherits(ButtonSizePlugin, _SliderPlugin); + var _super = _createSuper(ButtonSizePlugin); + /** + * Creates an instance of ButtonSizePlugin. + * @param {string | HTMLElement} buttonSliders selector string or html element(s) for the inputs + * @param {object} options + * @param {number} [options.defaultButtonSize=0.5] + * @memberof ButtonSizePlugin + */ + function ButtonSizePlugin(buttonSliders) { + var _this; + var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, + _ref$defaultButtonSiz = _ref.defaultButtonSize, + defaultButtonSize = _ref$defaultButtonSiz === void 0 ? 0.5 : _ref$defaultButtonSiz; + _classCallCheck(this, ButtonSizePlugin); + _this = _super.call(this, buttonSliders, 'UISize-Button-Plugin', { + defaultValue: defaultButtonSize, + featureName: ButtonSizePlugin.buttonSizeKey + }); + for (var i = 0; i < _this.slidersLength; i++) { + _this.sliders[i].enableSliderEvents(_this.onButtonSizeChange.bind(_assertThisInitialized(_this))); + } + return _this; + } + + /** + * @memberof ButtonSizePlugin + * @param {Event} e + */ + _createClass(ButtonSizePlugin, [{ + key: "onButtonSizeChange", + value: function onButtonSizeChange(e) { + this.currentValue = e.target.value; + this.sendProperty(ButtonSizePlugin.buttonSizeKey, this.currentValue); + } + + /** + * Get ButtonSize Key + * @readonly + * @static + * @memberof ButtonSizePlugin + * @returns {string} + */ + }], [{ + key: "buttonSizeKey", + get: function get() { + return 'buttonSize'; + } + }]); + return ButtonSizePlugin; +}(SliderPlugin); + +/** + * @export + * @class ControlSensitivityPlugin + * @property {object[]} sliders an array of all slider objects attached to ControlSensitivityPlugin + * @extends {SliderPlugin} + */ +var ControlSensitivityPlugin = /*#__PURE__*/function (_SliderPlugin) { + _inherits(ControlSensitivityPlugin, _SliderPlugin); + var _super = _createSuper(ControlSensitivityPlugin); + /** + * Creates an instance of ControlSensitivityPlugin. + * @param {string | HTMLElement} sensitivitySliders + * @param {number} [defaultSensitivity=0.5] + * @memberof ControlSensitivityPlugin + */ + function ControlSensitivityPlugin(sensitivitySliders) { + var _this; + var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, + _ref$defaultSensitivi = _ref.defaultSensitivity, + defaultSensitivity = _ref$defaultSensitivi === void 0 ? 0.5 : _ref$defaultSensitivi; + _classCallCheck(this, ControlSensitivityPlugin); + _this = _super.call(this, sensitivitySliders, 'Control-Sensitivity-Plugin', { + defaultValue: defaultSensitivity, + featureName: ControlSensitivityPlugin.controlSensitivityKey + }); + _this.sendAllProperties = _this.sendAllProperties.bind(_assertThisInitialized(_this)); + for (var i = 0; i < _this.slidersLength; i++) { + _this.sliders[i].enableSliderEvents(_this.onControlSensitivityChange.bind(_assertThisInitialized(_this))); + } + return _this; + } + + /** + * @memberof ControlSensitivityPlugin + * @param {Event} e + */ + _createClass(ControlSensitivityPlugin, [{ + key: "onControlSensitivityChange", + value: function onControlSensitivityChange(e) { + this.currentValue = e.target.value; + this.sendProperty(ControlSensitivityPlugin.controlSensitivityKey, this.currentValue); + } + + /** + * @readonly + * @static + * @memberof ControlSensitivityPlugin + * @returns {string} + */ + }], [{ + key: "controlSensitivityKey", + get: function get() { + return 'controlSensitivity'; + } + }]); + return ControlSensitivityPlugin; +}(SliderPlugin); + +/** + * @export + * @class KeyboardMapPlugin + * @extends {BasePlugin} + */ +var KeyboardMapPlugin = /*#__PURE__*/function (_BasePlugin) { + _inherits(KeyboardMapPlugin, _BasePlugin); + var _super = _createSuper(KeyboardMapPlugin); + /** + * Creates an instance of KeyboardMapPlugin. + * @param {string | HTMLElement} keyContainers div or similar container element that will contain the re-mappable keys + * @param {string} [customClassName='springrollContainerKeyBinding__button'] A custom class name that will be applied to the container element + * @memberof KeyboardMapPlugin + */ + function KeyboardMapPlugin(keyContainers) { + var _this; + var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, + _ref$customClassName = _ref.customClassName, + customClassName = _ref$customClassName === void 0 ? 'springrollContainerKeyBinding__button' : _ref$customClassName; + _classCallCheck(this, KeyboardMapPlugin); + _this = _super.call(this, 'Keyboard-Map-Plugin'); + _this.sendAllProperties = _this.sendAllProperties.bind(_assertThisInitialized(_this)); + //Allows for removing and reading event listeners + _this.bindKey = _this.bindKey.bind(_assertThisInitialized(_this)); + _this.onKeyButtonClick = _this.onKeyButtonClick.bind(_assertThisInitialized(_this)); + _this.className = customClassName; + _this.keyContainers = keyContainers instanceof HTMLElement ? [keyContainers] : document.querySelectorAll(keyContainers); + _this.keyBindings = {}; + _this.buttons = []; + _this.activekeyButton; + _this.sendAfterFetch = false; + _this.canEmit = false; + _this.keyContainersLength = _this.keyContainers.length; + if (_this.keyContainersLength <= 0) { + _this.warn('plugin was not provided any valid key binding container elements'); + return _possibleConstructorReturn(_this); + } + return _this; + } + + /** + * @memberof KeyboardMapPlugin + * @param {MouseEvent} e + * Sets up a rebinding of a key once a key button is clicked. + */ + _createClass(KeyboardMapPlugin, [{ + key: "onKeyButtonClick", + value: function onKeyButtonClick(e) { + for (var i = 0, l = this.buttons.length; i < l; i++) { + for (var j = 0; j < this.buttons[i].length; j++) { + this.buttons[i][j].removeEventListener('click', this.onKeyButtonClick); + } + } + this.activekeyButton = e.target; + this.activekeyButton.textContent = 'Press Key to Map'; + document.addEventListener('keyup', this.bindKey); + } + + /** + * @memberof KeyboardMapPlugin + * @param {KeyboardEvent} key + * Actually updates the key binding and sends the value. Also + * replicates the new key across the other keycontainers + */ + }, { + key: "bindKey", + value: function bindKey(key) { + key.preventDefault(); //prevents space bar from retriggering a keybinding when set. + + for (var actionName in this.keyBindings) { + if (this.keyBindings[actionName].currentKey === key.key.toLowerCase()) { + this.warn("".concat(key.key, " is already bound")); + return; + } + } + this.activekeyButton.textContent = key.key === ' ' ? 'space' : key.key; + for (var i = 0; i < this.buttons.length; i++) { + for (var j = 0; j < this.buttons[i].length; j++) { + if (this.buttons[i][j].value === this.activekeyButton.value) { + this.buttons[i][j].textContent = this.activekeyButton.textContent; + } + } + } + this.keyBindings[this.activekeyButton.value].currentKey = key.key; + document.removeEventListener('keyup', this.bindKey); + for (var _i = 0, l = this.buttons.length; _i < l; _i++) { + for (var _j = 0; _j < this.buttons[_i].length; _j++) { + this.buttons[_i][_j].addEventListener('click', this.onKeyButtonClick); + } + } + this.sendProperty(KeyboardMapPlugin.keyBindingKey, this.keyBindings); + } + + /** + * @memberof KeyboardMapPlugin + */ + }, { + key: "init", + value: function init() { + this.client.on('features', function (features) { + var _this2 = this; + if (!features.data) { + return; + } + if (!features.data.keyBinding) { + return; + } + var data = SavedData.read(KeyboardMapPlugin.keyBindingKey); + this.client.fetch('keyBindings', function (result) { + for (var j = 0; j < _this2.keyContainersLength; j++) { + _this2.buttons[j] = []; + for (var i = 0, l = result.data.length; i < l; i++) { + var currentKey = result.data[i].defaultKey.toLowerCase(); + if (data) { + if (data[result.data[i].actionName]) { + currentKey = data[result.data[i].actionName].currentKey; + } + } + //only needs to be set up once + if (j === 0) { + _this2.keyBindings[result.data[i].actionName] = { + defaultKey: result.data[i].defaultKey.toLowerCase(), + currentKey: currentKey + }; + } + _this2.buttons[j][i] = document.createElement('button'); + _this2.buttons[j][i].classList.add(_this2.className); + _this2.buttons[j][i].id = "keyBoardMapPlugin-".concat(result.data[i].actionName); + _this2.buttons[j][i].value = result.data[i].actionName; + _this2.buttons[j][i].textContent = result.data[i].defaultKey; + _this2.buttons[j][i].addEventListener('click', _this2.onKeyButtonClick); + _this2.label = document.createElement('label'); + _this2.label.htmlFor = "keyBoardMapPlugin-".concat(result.data[i].actionName); + _this2.label.textContent = result.data[i].actionName; + _this2.keyContainers[j].appendChild(_this2.label); + _this2.keyContainers[j].appendChild(_this2.buttons[j][i]); + } + } + _this2.canEmit = true; + if (_this2.sendAfterFetch) { + _this2.sendAllProperties(); + } + }); + }.bind(this)); + } + + /** + * + * Sends initial caption properties to the application + * @memberof KeyboardMapPlugin + */ + }, { + key: "sendAllProperties", + value: function sendAllProperties() { + if (this.canEmit) { + this.sendProperty(KeyboardMapPlugin.keyBindingKey, this.keyBindings); + } else { + this.sendAfterFetch = true; + } + } + + /** + * @readonly + * @static + * @memberof KeyboardMapPlugin + * @returns {string} + */ + }], [{ + key: "keyBindingKey", + get: function get() { + return 'keyBinding'; + } + }]); + return KeyboardMapPlugin; +}(BasePlugin); + +/** + * @export + * @class LayersPlugin + * @property {object[]} sliders an array of all slider objects attached to LayersPlugin + * @extends {SliderPlugin} + */ +var LayersPlugin = /*#__PURE__*/function (_SliderPlugin) { + _inherits(LayersPlugin, _SliderPlugin); + var _super = _createSuper(LayersPlugin); + /** + * Creates an instance of KeyboardMapPlugin. + * @param {string | HTMLInputElement} layersSliders selector string or HTML Element for the input(s) + * @param {number} [defaultValue=0] The default value for the slider + */ + function LayersPlugin(layersSliders) { + var _this; + var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, + _ref$defaultValue = _ref.defaultValue, + defaultValue = _ref$defaultValue === void 0 ? 0 : _ref$defaultValue; + _classCallCheck(this, LayersPlugin); + _this = _super.call(this, layersSliders, 'Layer-Plugin', { + defaultValue: defaultValue, + featureName: LayersPlugin.layersSliderKey + }); + for (var i = 0; i < _this.slidersLength; i++) { + _this.sliders[i].enableSliderEvents(_this.onLayerValueChange.bind(_assertThisInitialized(_this))); + } + return _this; + } + + /** + * @memberof LayersPlugin + * @param {Event} e + */ + _createClass(LayersPlugin, [{ + key: "onLayerValueChange", + value: function onLayerValueChange(e) { + this.currentValue = e.target.value; + this.sendProperty(LayersPlugin.layersSliderKey, this.currentValue); + } + + /** + * @readonly + * @static + * @memberof LayersPlugin + * @returns {string} + */ + }], [{ + key: "layersSliderKey", + get: function get() { + return 'removableLayers'; + } + }]); + return LayersPlugin; +}(SliderPlugin); + +var SUPPORTED_POSITIONS = ['top', 'bottom', 'left', 'right']; + +/** + * @export + * @class HUDPlugin + * @extends {BasePlugin} + */ +var HUDPlugin = /*#__PURE__*/function (_RadioGroupPlugin) { + _inherits(HUDPlugin, _RadioGroupPlugin); + var _super = _createSuper(HUDPlugin); + /** + * Creates an instance of HUDPlugin + * @param {string} hudSelectorRadios selector string or for the input(s) + * @param {string[]} [defaultValue='top'] default value for the HUD position + * @memberof HUDPlugin + */ + function HUDPlugin(hudSelectorRadios) { + var _this; + var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, + _ref$defaultValue = _ref.defaultValue, + defaultValue = _ref$defaultValue === void 0 ? SUPPORTED_POSITIONS[0] : _ref$defaultValue; + _classCallCheck(this, HUDPlugin); + _this = _super.call(this, hudSelectorRadios, 'HUD-Layout-Plugin', { + supportedValues: SUPPORTED_POSITIONS, + initialValue: defaultValue, + controlName: 'Hud Selector', + featureName: HUDPlugin.hudPositionKey, + radioCount: SUPPORTED_POSITIONS.length + }); + _this.sendAllProperties = _this.sendAllProperties.bind(_assertThisInitialized(_this)); + _this.sendAfterFetch = false; + _this.canEmit = false; + _this.positions = []; + if (_this.radioGroupsLength <= 0) { + _this.warn('Plugin was not provided any valid HTML elements'); + } + for (var i = 0; i < _this.radioGroupsLength; i++) { + _this.radioGroups[i].enableRadioEvents(_this.onHUDSelect.bind(_assertThisInitialized(_this))); + } + return _this; + } + + /** + * @memberof HUDPlugin + * @param {Event} e + */ + _createClass(HUDPlugin, [{ + key: "onHUDSelect", + value: function onHUDSelect(e) { + //return if a radio button is programattically clicked when it is hidden + if (!this.positions.includes(e.target.value)) { + for (var i = 0; i < this.radioGroupsLength; i++) { + this.radioGroups[i].radioGroup[this.currentValue].checked = true; + } + return; + } + this.currentValue = e.target.value; + this.sendProperty(HUDPlugin.hudPositionKey, this.currentValue); + } + + /** + * @memberof HUDPlugin + */ + }, { + key: "init", + value: function init() { + this.client.on('features', function (features) { + var _this2 = this; + if (!features.data || !features.data.hudPosition) { + return; + } + if (this.radioGroupsLength <= 0) { + return; + } + //get the game's reported HUD positions to build out positions array + this.client.fetch('hudPositions', function (result) { + for (var i = 0, l = result.data.length; i < l; i++) { + if (!SUPPORTED_POSITIONS.includes(result.data[i].toLowerCase())) { + _this2.warn("".concat(result.data[i], " is an invalid position name")); + continue; + } + _this2.positions.push(result.data[i].toLowerCase()); + } + for (var _i = 0; _i < _this2.radioGroupsLength; _i++) { + //Hide any radio buttons that aren't in the game's position list. + for (var key in _this2.radioGroups[_i].radioGroup) { + _this2.radioGroups[_i].radioGroup[key].style.display = _this2.positions.includes(_this2.radioGroups[_i].radioGroup[key].value) ? '' : 'none'; + } + } + _this2.canEmit = true; + if (_this2.sendAfterFetch) { + _this2.sendAllProperties(); + } + }); + }.bind(this)); + } + + /** + * @memberof HUDPlugin + */ + }, { + key: "start", + value: function start() { + var data = SavedData.read(HUDPlugin.hudPositionKey); + if (SUPPORTED_POSITIONS.includes(data)) { + this.currentValue = data; + } + this.client.on('loaded', this.sendAllProperties); + this.client.on('loadDone', this.sendAllProperties); + } + + /** + * + * Sends initial HUD position properties to the application + * @memberof HUDPlugin + */ + }, { + key: "sendAllProperties", + value: function sendAllProperties() { + if (this.canEmit) { + this.sendProperty(HUDPlugin.hudPositionKey, this.currentValue); + } else { + this.sendAfterFetch = true; + } + } + + /** + * @static + * @readonly + * @memberof HUDPlugin + * @returns {string} + */ + }], [{ + key: "hudPositionKey", + get: function get() { + return 'hudPosition'; + } + }]); + return HUDPlugin; +}(RadioGroupPlugin); + +var COLOR_BLIND_TYPES = ['none', 'protanopia', 'deuteranopia', 'tritanopia', 'achromatopsia']; + +/** + * @export + * @class ColorVisionPlugin + * @property {boolean} sendAfterFetch Whether to send the properties after fetch or not + * @property {boolean} canEmit Whether or not the plugin can send properties + * @property {string} colors + * @extends {RadioGroupPlugin} + */ +var ColorVisionPlugin = /*#__PURE__*/function (_RadioGroupPlugin) { + _inherits(ColorVisionPlugin, _RadioGroupPlugin); + var _super = _createSuper(ColorVisionPlugin); + /** + * Creates an instance of ColorVisionPlugin. + * @param {string | HTMLElement} colorSelects + * @param {string } [defaultValue] Default selected value + * @memberof ColorVision + */ + function ColorVisionPlugin(colorVisionRadios) { + var _this; + var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, + _ref$defaultValue = _ref.defaultValue, + defaultValue = _ref$defaultValue === void 0 ? COLOR_BLIND_TYPES[0] : _ref$defaultValue; + _classCallCheck(this, ColorVisionPlugin); + _this = _super.call(this, colorVisionRadios, 'Color-Filter-Plugin', { + supportedValues: COLOR_BLIND_TYPES, + initialValue: defaultValue, + controlName: 'Color Vision Selector', + featureName: ColorVisionPlugin.colorVisionKey, + radioCount: COLOR_BLIND_TYPES.length + }); + _this.sendAllProperties = _this.sendAllProperties.bind(_assertThisInitialized(_this)); + _this.sendAfterFetch = false; + _this.canEmit = false; + _this.colors = []; + if (_this.radioGroupsLength <= 0) { + _this.warn('Plugin was not provided any valid HTML elements'); + return _possibleConstructorReturn(_this); + } + for (var i = 0; i < _this.radioGroupsLength; i++) { + _this.radioGroups[i].enableRadioEvents(_this.onColorChange.bind(_assertThisInitialized(_this))); + } + return _this; + } + + /** + * @memberof ColorVisionPlugin + * @param {Event} e + */ + _createClass(ColorVisionPlugin, [{ + key: "onColorChange", + value: function onColorChange(e) { + //return if a radio button is programmatically clicked when it is hidden from the user + if (!this.colors.includes(e.target.value)) { + for (var i = 0; i < this.radioGroupsLength; i++) { + this.radioGroups[i].radioGroup[this.currentValue].checked = true; + } + return; + } + this.currentValue = e.target.value; + this.sendProperty(ColorVisionPlugin.colorVisionKey, this.currentValue); + } + + /** + * @memberof ColorVisionPlugin + */ + }, { + key: "init", + value: function init() { + this.client.on('features', function (features) { + var _this2 = this; + if (!features.data || !features.data.colorVision) { + return; + } + if (this.colorDropdownsLength <= 0) { + return; + } + + //get the game's reported colors to build out accepted filters array + this.client.fetch('colorFilters', function (result) { + for (var i = 0, l = result.data.length; i < l; i++) { + if (!COLOR_BLIND_TYPES.includes(result.data[i].toLowerCase())) { + _this2.warn("".concat(result.data[i], " is an invalid color vision name")); + continue; + } + _this2.colors.push(result.data[i].toLowerCase()); + } + _this2.defaultValue = _this2.colors[0]; + for (var _i = 0; _i < _this2.radioGroupsLength; _i++) { + //Hide any radio buttons that aren't in the game's filter list. + for (var key in _this2.radioGroups[_i].radioGroup) { + _this2.radioGroups[_i].radioGroup[key].style.display = _this2.colors.includes(_this2.radioGroups[_i].radioGroup[key].value.toLowerCase()) ? '' : 'none'; + } + } + _this2.canEmit = true; + if (_this2.sendAfterFetch) { + _this2.sendAllProperties(); + } + }); + }.bind(this)); + } + + /** + * @memberof ColorVisionPlugin + */ + }, { + key: "start", + value: function start() { + var data = SavedData.read(ColorVisionPlugin.colorVisionKey); + if (COLOR_BLIND_TYPES.includes(data)) { + this.currentValue = data; + } + this.client.on('loaded', this.sendAllProperties); + this.client.on('loadDone', this.sendAllProperties); + } + + /** + * + * Sends initial caption properties to the application + * @memberof ColorVisionPlugin + */ + }, { + key: "sendAllProperties", + value: function sendAllProperties() { + if (this.canEmit) { + this.sendProperty(ColorVisionPlugin.colorVisionKey, this.currentValue); + } else { + this.sendAfterFetch = true; + } + } + + /** + * Get the ColorVisionPlugin key + * @readonly + * @static + * @memberof ColorVisionPlugin + * @returns {string} + */ + }], [{ + key: "colorVisionKey", + get: function get() { + return 'colorVision'; + } + }]); + return ColorVisionPlugin; +}(RadioGroupPlugin); + +/** + * @export + * @class HitAreaScalePlugin + * @property {object[]} sliders an array of all slider objects attached to ControlSensitivityPlugin + * @extends {SliderPlugin} + * + */ +var HitAreaScalePlugin = /*#__PURE__*/function (_SliderPlugin) { + _inherits(HitAreaScalePlugin, _SliderPlugin); + var _super = _createSuper(HitAreaScalePlugin); + /** + * Creates an instance of HitAreaScalePlugin. + * @param {string | HTMLElement} hitAreaScaleSliders The selector or HTMLElement for the slider + * @param {number} [defaultHitAreaScale=0.5] The default hit area scale value + * @memberof HitAreaScalePlugin + */ + function HitAreaScalePlugin(hitAreaScaleSliders) { + var _this; + var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, + _ref$defaultHitAreaSc = _ref.defaultHitAreaScale, + defaultHitAreaScale = _ref$defaultHitAreaSc === void 0 ? 0.5 : _ref$defaultHitAreaSc; + _classCallCheck(this, HitAreaScalePlugin); + _this = _super.call(this, hitAreaScaleSliders, 'Hit-Area-Scale-Plugin', { + defaultValue: defaultHitAreaScale, + featureName: HitAreaScalePlugin.hitAreaScaleKey + }); + for (var i = 0; i < _this.slidersLength; i++) { + _this.sliders[i].enableSliderEvents(_this.onHitAreaScaleChange.bind(_assertThisInitialized(_this))); + } + return _this; + } + + /** + * @memberof HitAreaScalePlugin + * @param {Event} target + * @param {string} control + */ + _createClass(HitAreaScalePlugin, [{ + key: "onHitAreaScaleChange", + value: function onHitAreaScaleChange(e) { + this.currentValue = e.target.value; + this.sendProperty(HitAreaScalePlugin.hitAreaScaleKey, this.currentValue); + } + + /** + * @readonly + * @static + * @memberof HitAreaScalePlugin + * @returns {string} + */ + }], [{ + key: "hitAreaScaleKey", + get: function get() { + return 'hitAreaScale'; + } + }]); + return HitAreaScalePlugin; +}(SliderPlugin); + +/** + * @export + * @class DragThresholdScalePlugin + * @extends {SliderPlugin} + */ +var DragThresholdScalePlugin = /*#__PURE__*/function (_SliderPlugin) { + _inherits(DragThresholdScalePlugin, _SliderPlugin); + var _super = _createSuper(DragThresholdScalePlugin); + /** + * Creates an instance of DragThresholdScalePlugin. + * @param {string | HTMLElement} params.dragThresholdScaleSliders + * @param {number} [defaultDragThresholdScale=0.5] + * @memberof DragThresholdScalePlugin + */ + function DragThresholdScalePlugin(dragThresholdScaleSliders) { + var _this; + var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, + _ref$defaultDragThres = _ref.defaultDragThresholdScale, + defaultDragThresholdScale = _ref$defaultDragThres === void 0 ? 0.5 : _ref$defaultDragThres; + _classCallCheck(this, DragThresholdScalePlugin); + _this = _super.call(this, dragThresholdScaleSliders, 'Drag-Threshold-Scale-Plugin', { + defaultValue: defaultDragThresholdScale, + featureName: DragThresholdScalePlugin.dragThresholdScaleKey + }); + for (var i = 0; i < _this.slidersLength; i++) { + _this.sliders[i].enableSliderEvents(_this.onDragThresholdScaleChange.bind(_assertThisInitialized(_this))); + } + return _this; + } + + /** + * @memberof DragThresholdScalePlugin + * @param {Event} target + * @param {string} control + */ + _createClass(DragThresholdScalePlugin, [{ + key: "onDragThresholdScaleChange", + value: function onDragThresholdScaleChange(e) { + this.currentValue = e.target.value; + this.sendProperty(DragThresholdScalePlugin.dragThresholdScaleKey, this.currentValue); + } + + /** + * @readonly + * @static + * @memberof DragThresholdScalePlugin + * @returns {string} + */ + }], [{ + key: "dragThresholdScaleKey", + get: function get() { + return 'dragThresholdScale'; + } + }]); + return DragThresholdScalePlugin; +}(SliderPlugin); + +/** + * @export + * @class HealthPlugin + * @extends {SliderPlugin} + */ +var HealthPlugin = /*#__PURE__*/function (_SliderPlugin) { + _inherits(HealthPlugin, _SliderPlugin); + var _super = _createSuper(HealthPlugin); + /** + * Creates an instance of HealthPlugin. + * @param {string | HTMLElement} healthSliders + * @param {number} [defaultHealth=0.5] + * @memberof HealthPlugin + */ + function HealthPlugin(healthSliders) { + var _this; + var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, + _ref$defaultHealth = _ref.defaultHealth, + defaultHealth = _ref$defaultHealth === void 0 ? 0.5 : _ref$defaultHealth; + _classCallCheck(this, HealthPlugin); + _this = _super.call(this, healthSliders, 'Health-Scale-Plugin', { + defaultValue: defaultHealth, + featureName: HealthPlugin.healthKey + }); + for (var i = 0; i < _this.slidersLength; i++) { + _this.sliders[i].enableSliderEvents(_this.onHealthChange.bind(_assertThisInitialized(_this))); + } + return _this; + } + + /** + * @memberof HealthPlugin + * @param {Event} e + */ + _createClass(HealthPlugin, [{ + key: "onHealthChange", + value: function onHealthChange(e) { + this.currentValue = e.target.value; + this.sendProperty(HealthPlugin.healthKey, this.currentValue); + } + + /** + * @readonly + * @static + * @memberof HealthPlugin + * @returns {string} + */ + }], [{ + key: "healthKey", + get: function get() { + return 'health'; + } + }]); + return HealthPlugin; +}(SliderPlugin); + +/** + * @export + * @class ObjectCountPlugin + * @property {object[]} sliders an array of all slider objects attached to ObjectCountPlugin + * @extends {SliderPlugin} + */ +var ObjectCountPlugin = /*#__PURE__*/function (_SliderPlugin) { + _inherits(ObjectCountPlugin, _SliderPlugin); + var _super = _createSuper(ObjectCountPlugin); + /** + * Creates an instance of ObjectCountPlugin. + * @param {string | HTMLElement} objectCountSliders selector string or HTML Element for the input(s) + * @param {number} [defaultObjectCount=0.5] The default value for the slider + * @memberof ObjectCountPlugin + */ + function ObjectCountPlugin(objectCountSliders) { + var _this; + var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, + _ref$defaultObjectCou = _ref.defaultObjectCount, + defaultObjectCount = _ref$defaultObjectCou === void 0 ? 0.5 : _ref$defaultObjectCou; + _classCallCheck(this, ObjectCountPlugin); + _this = _super.call(this, objectCountSliders, 'Object-Count-Plugin', { + defaultValue: defaultObjectCount, + featureName: ObjectCountPlugin.objectCountKey + }); + for (var i = 0; i < _this.slidersLength; i++) { + _this.sliders[i].enableSliderEvents(_this.onObjectCountChange.bind(_assertThisInitialized(_this))); + } + return _this; + } + + /** + * @memberof ObjectCountPlugin + * @param {Event} target + * @param {string} control + */ + _createClass(ObjectCountPlugin, [{ + key: "onObjectCountChange", + value: function onObjectCountChange(e) { + this.currentValue = e.target.value; + this.sendProperty(ObjectCountPlugin.objectCountKey, this.currentValue); + } + + /** + * @readonly + * @static + * @memberof ObjectCountPlugin + * @returns {string} + */ + }], [{ + key: "objectCountKey", + get: function get() { + return 'objectCount'; + } + }]); + return ObjectCountPlugin; +}(SliderPlugin); + +/** + * @export + * @class CompletionPercentagePlugin + * @property {object[]} sliders an array of all slider objects attached to CompletePercentagePlugin + * @extends {SliderPlugin} + */ +var CompletionPercentagePlugin = /*#__PURE__*/function (_SliderPlugin) { + _inherits(CompletionPercentagePlugin, _SliderPlugin); + var _super = _createSuper(CompletionPercentagePlugin); + /** + * Creates an instance of CompletionPercentagePlugin. + * @param {string | HTMLElement} completionPercentageSliders The selector or HTMLSliderElement of the slider + * @param {number} [defaultCompletionPercentage=0.5] Default selected completion percentage + * @memberof CompletionPercentagePlugin + */ + function CompletionPercentagePlugin(completionPercentageSliders) { + var _this; + var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, + _ref$defaultCompletio = _ref.defaultCompletionPercentage, + defaultCompletionPercentage = _ref$defaultCompletio === void 0 ? 0.5 : _ref$defaultCompletio; + _classCallCheck(this, CompletionPercentagePlugin); + _this = _super.call(this, completionPercentageSliders, 'Completion-Percentage-Plugin', { + defaultValue: defaultCompletionPercentage, + featureName: CompletionPercentagePlugin.completionPercentageKey + }); + for (var i = 0; i < _this.slidersLength; i++) { + _this.sliders[i].enableSliderEvents(_this.onCompletionPercentageChange.bind(_assertThisInitialized(_this))); + } + return _this; + } + + /** + * @memberof CompletionPercentagePlugin + * @param {Event} e + */ + _createClass(CompletionPercentagePlugin, [{ + key: "onCompletionPercentageChange", + value: function onCompletionPercentageChange(e) { + this.currentValue = e.target.value; + this.sendProperty(CompletionPercentagePlugin.completionPercentageKey, this.currentValue); + } + + /** + * @readonly + * @static + * @memberof CompletionPercentagePlugin + * @returns {string} + */ + }], [{ + key: "completionPercentageKey", + get: function get() { + return 'completionPercentage'; + } + }]); + return CompletionPercentagePlugin; +}(SliderPlugin); + +/** + * @export + * @class SpeedScalePlugin + * @extends {SliderPlugin} + */ +var SpeedScalePlugin = /*#__PURE__*/function (_SliderPlugin) { + _inherits(SpeedScalePlugin, _SliderPlugin); + var _super = _createSuper(SpeedScalePlugin); + /** + *Creates an instance of SpeedScalePlugin. + * @param {string | HTMLElement} speedScaleSliders selector string or HTML Element for the input(s) + * @param {number} [defaultSpeedScale=0.5] The default value for the speed scale slider + * @memberof SpeedScalePlugin + */ + function SpeedScalePlugin(speedScaleSliders) { + var _this; + var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, + _ref$defaultSpeedScal = _ref.defaultSpeedScale, + defaultSpeedScale = _ref$defaultSpeedScal === void 0 ? 0.5 : _ref$defaultSpeedScal; + _classCallCheck(this, SpeedScalePlugin); + _this = _super.call(this, speedScaleSliders, 'Speed-Scale-Plugin', { + defaultValue: defaultSpeedScale, + featureName: SpeedScalePlugin.speedScaleKey + }); + for (var i = 0; i < _this.slidersLength; i++) { + _this.sliders[i].enableSliderEvents(_this.onSpeedScaleChange.bind(_assertThisInitialized(_this))); + } + return _this; + } + + /** + * @memberof SpeedScalePlugin + * @param {Event} e + */ + _createClass(SpeedScalePlugin, [{ + key: "onSpeedScaleChange", + value: function onSpeedScaleChange(e) { + this.currentValue = e.target.value; + this.sendProperty(SpeedScalePlugin.speedScaleKey, this.currentValue); + } + + /** + * @readonly + * @static + * @memberof SpeedScalePlugin + * @return {string} + */ + }], [{ + key: "speedScaleKey", + get: function get() { + return 'speedScale'; + } + }]); + return SpeedScalePlugin; +}(SliderPlugin); + +/** + * @export + * @class TimersScalePlugin + * @property {number} currentValue + * @extends {SliderPlugin} + */ +var TimersScalePlugin = /*#__PURE__*/function (_SliderPlugin) { + _inherits(TimersScalePlugin, _SliderPlugin); + var _super = _createSuper(TimersScalePlugin); + /** + * Creates an instance of TimersScalePlugin. + * @param {string | HTMLElement} timersScaleSliders selector string or HTML Element for the input(s) + * @param {number} [defaultTimersScale=0.5] Default Value for the timer scale slider + * @memberof TimersScalePlugin + */ + function TimersScalePlugin(timersScaleSliders) { + var _this; + var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, + _ref$defaultTimersSca = _ref.defaultTimersScale, + defaultTimersScale = _ref$defaultTimersSca === void 0 ? 0.5 : _ref$defaultTimersSca; + _classCallCheck(this, TimersScalePlugin); + _this = _super.call(this, timersScaleSliders, 'Timers-Scale-Plugin', { + defaultValue: defaultTimersScale, + featureName: TimersScalePlugin.timersScaleKey + }); + for (var i = 0; i < _this.slidersLength; i++) { + _this.sliders[i].enableSliderEvents(_this.onTimersScaleChange.bind(_assertThisInitialized(_this))); + } + return _this; + } + + /** + * @memberof TimersScalePlugin + * @param {Event} e + */ + _createClass(TimersScalePlugin, [{ + key: "onTimersScaleChange", + value: function onTimersScaleChange(e) { + this.currentValue = e.target.value; + this.sendProperty(TimersScalePlugin.timersScaleKey, this.currentValue); + } + + /** + * @readonly + * @static + * @memberof TimersScalePlugin + * @return {string} + */ + }], [{ + key: "timersScaleKey", + get: function get() { + return 'timersScale'; + } + }]); + return TimersScalePlugin; +}(SliderPlugin); + +/** + * @export + * @class InputCountPlugin + * @property {object[]} sliders an array of all slider objects attached to InputCountPlugin + * @extends {SliderPlugin} + */ +var InputCountPlugin = /*#__PURE__*/function (_SliderPlugin) { + _inherits(InputCountPlugin, _SliderPlugin); + var _super = _createSuper(InputCountPlugin); + /** + * Creates an instance of InputCountPlugin. + * @param {string | HTMLElement} inputCountSliders selector string or HTML Element for the input(s) + * @param {number} [defaultInputCount=0.5] The default value for the slider + * @memberof InputCountPlugin + */ + function InputCountPlugin(inputCountSliders) { + var _this; + var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, + _ref$defaultInputCoun = _ref.defaultInputCount, + defaultInputCount = _ref$defaultInputCoun === void 0 ? 0.5 : _ref$defaultInputCoun; + _classCallCheck(this, InputCountPlugin); + _this = _super.call(this, inputCountSliders, 'Input-Count-Plugin', { + defaultValue: defaultInputCount, + featureName: InputCountPlugin.inputCountKey + }); + for (var i = 0; i < _this.slidersLength; i++) { + _this.sliders[i].enableSliderEvents(_this.onInputCountChange.bind(_assertThisInitialized(_this))); + } + return _this; + } + + /** + * @memberof InputCountPlugin + * @param {Event} target + * @param {string} control + */ + _createClass(InputCountPlugin, [{ + key: "onInputCountChange", + value: function onInputCountChange(e) { + this.currentValue = e.target.value; + this.sendProperty(InputCountPlugin.inputCountKey, this.currentValue); + } + + /** + * @readonly + * @static + * @memberof InputCountPlugin + * @returns {string} + */ + }], [{ + key: "inputCountKey", + get: function get() { + return 'inputCount'; + } + }]); + return InputCountPlugin; +}(SliderPlugin); + +/** + * A Springroll plugin to easily set up togglable fullscreen + */ +var FullScreenPlugin = /*#__PURE__*/function (_ButtonPlugin) { + _inherits(FullScreenPlugin, _ButtonPlugin); + var _super = _createSuper(FullScreenPlugin); + /** + * Creates an instance of FullscreenPlugin + * + * @param {string | string[]} buttonSelector The selector for the element to be made fullscreen + */ + function FullScreenPlugin(buttonSelector) { + var _this; + _classCallCheck(this, FullScreenPlugin); + _this = _super.call(this, { + name: FullScreenPlugin.fullscreenKey + }); + _this._toggleButtons = []; + _this.iFrame = null; + _this.sendAllProperties = _this.sendAllProperties.bind(_assertThisInitialized(_this)); + if (Array.isArray(buttonSelector)) { + // If input is an array, join the selectors into one string + buttonSelector = buttonSelector.join(', '); + } + console.log(buttonSelector); + _this.toggleButton = document.querySelectorAll(buttonSelector); + _this.toggleButton.forEach(function (button) { + _this._toggleButtons.push(new Button({ + button: button, + onClick: _this.toggleFullScreen.bind(_assertThisInitialized(_this)), + channel: FullScreenPlugin.fullscreenKey + })); + }); + document.addEventListener('fullscreenchange', function () { + _this.sendAllProperties(); + _this._toggleButtons.forEach(function (button) { + button.button.classList.toggle('--fullScreen'); + }); + }); + return _this; + } + + /** + * @memberof FullScreenPlugin + */ + _createClass(FullScreenPlugin, [{ + key: "init", + value: function init(_ref) { + var iframe = _ref.iframe; + this.iFrame = iframe; + // Handle the features request + this.client.on('features', function ($event) { + for (var i = 0; i < this.fullscreenElement; i++) { + this._toggleButtons[i].displayButton($event.data); + } + }.bind(this)); + } + /** + * @memberof FullScreenPlugin + */ + }, { + key: "start", + value: function start() { + this.client.on('loaded', this.sendAllProperties); + this.client.on('loadDone', this.sendAllProperties); + } + + /** + * + * Sends initial fullScreen properties to the application + * @memberof FullScreenTogglePlugin + */ + }, { + key: "sendAllProperties", + value: function sendAllProperties() { + this.sendProperty(FullScreenPlugin.fullscreenKey, document.fullscreenElement != null ? 'true' : 'false'); + } + + /** + * Toggles fullscreen on this.iFrame. Must be from a user generated event + */ + }, { + key: "toggleFullScreen", + value: function toggleFullScreen() { + var _this2 = this; + if (!document.fullscreenElement) { + this.iFrame.requestFullscreen().then(function () { + _this2.sendAllProperties(); + }).catch(function (err) { + console.log(err); + }); + } else { + document.exitFullscreen(); + this.sendAllProperties(); + } + } + + /** + * Returns true if there is a fullscreen element and false if not + * @returns { boolean } + */ + }, { + key: "isFullScreen", + get: function get() { + return (document.fullscreenElement || + // basic + document.webkitIsFullscreen || + //Webkit browsers + document.mozFullScreen // Firefox + ) != true; // Ensure boolean output + } + + /** + * @readonly + * @static + * @memberof FullscreenPlugin + */ + }], [{ + key: "fullscreenKey", + get: function get() { + return 'fullScreen'; + } + }]); + return FullScreenPlugin; +}(ButtonPlugin); + +export { BasePlugin, Button, ButtonPlugin, ButtonSizePlugin, CaptionsStylePlugin, CaptionsTogglePlugin, ColorVisionPlugin, CompletionPercentagePlugin, Container, ControlSensitivityPlugin, DragThresholdScalePlugin, Features, FullScreenPlugin, HUDPlugin, HealthPlugin, HelpPlugin, HitAreaScalePlugin, InputCountPlugin, KeyboardMapPlugin, LayersPlugin, ObjectCountPlugin, PageVisibility, PausePlugin, PointerSizePlugin, RadioGroup, RadioGroupPlugin, SavedData, SavedDataHandler, Slider, SliderPlugin, SoundPlugin, SpeedScalePlugin, TimersScalePlugin, UserDataPlugin }; //# sourceMappingURL=index.js.map diff --git a/dist/index.js.map b/dist/index.js.map index 8d4b34e..ac23e70 100644 --- a/dist/index.js.map +++ b/dist/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sources":["../node_modules/whatwg-fetch/fetch.js","../node_modules/core-js/internals/global.js","../node_modules/core-js/internals/engine-v8-version.js","../node_modules/core-js/internals/dom-iterables.js","../node_modules/core-js/internals/document-all.js","../node_modules/core-js/internals/is-callable.js","../node_modules/core-js/internals/is-object.js","../node_modules/core-js/internals/document-create-element.js","../node_modules/core-js/internals/dom-token-list-prototype.js","../node_modules/core-js/internals/fails.js","../node_modules/core-js/internals/function-bind-native.js","../node_modules/core-js/internals/function-uncurry-this.js","../node_modules/core-js/internals/classof-raw.js","../node_modules/core-js/internals/function-uncurry-this-clause.js","../node_modules/core-js/internals/try-to-string.js","../node_modules/core-js/internals/a-callable.js","../node_modules/core-js/internals/function-bind-context.js","../node_modules/core-js/internals/indexed-object.js","../node_modules/core-js/internals/is-null-or-undefined.js","../node_modules/core-js/internals/require-object-coercible.js","../node_modules/core-js/internals/to-object.js","../node_modules/core-js/internals/math-trunc.js","../node_modules/core-js/internals/to-integer-or-infinity.js","../node_modules/core-js/internals/to-length.js","../node_modules/core-js/internals/length-of-array-like.js","../node_modules/core-js/internals/is-array.js","../node_modules/core-js/internals/define-global-property.js","../node_modules/core-js/internals/shared-store.js","../node_modules/core-js/internals/shared.js","../node_modules/core-js/internals/has-own-property.js","../node_modules/core-js/internals/uid.js","../node_modules/core-js/internals/engine-user-agent.js","../node_modules/core-js/internals/symbol-constructor-detection.js","../node_modules/core-js/internals/use-symbol-as-uid.js","../node_modules/core-js/internals/well-known-symbol.js","../node_modules/core-js/internals/to-string-tag-support.js","../node_modules/core-js/internals/classof.js","../node_modules/core-js/internals/get-built-in.js","../node_modules/core-js/internals/inspect-source.js","../node_modules/core-js/internals/is-constructor.js","../node_modules/core-js/internals/array-species-constructor.js","../node_modules/core-js/internals/array-species-create.js","../node_modules/core-js/internals/array-iteration.js","../node_modules/core-js/internals/array-method-is-strict.js","../node_modules/core-js/internals/array-for-each.js","../node_modules/core-js/internals/descriptors.js","../node_modules/core-js/internals/ie8-dom-define.js","../node_modules/core-js/internals/v8-prototype-define-bug.js","../node_modules/core-js/internals/an-object.js","../node_modules/core-js/internals/function-call.js","../node_modules/core-js/internals/object-is-prototype-of.js","../node_modules/core-js/internals/is-symbol.js","../node_modules/core-js/internals/get-method.js","../node_modules/core-js/internals/ordinary-to-primitive.js","../node_modules/core-js/internals/to-primitive.js","../node_modules/core-js/internals/to-property-key.js","../node_modules/core-js/internals/object-define-property.js","../node_modules/core-js/internals/create-property-descriptor.js","../node_modules/core-js/internals/create-non-enumerable-property.js","../node_modules/core-js/modules/web.dom-collections.for-each.js","../node_modules/core-js/internals/to-indexed-object.js","../node_modules/core-js/internals/object-create.js","../node_modules/core-js/internals/to-absolute-index.js","../node_modules/core-js/internals/array-includes.js","../node_modules/core-js/internals/hidden-keys.js","../node_modules/core-js/internals/object-keys-internal.js","../node_modules/core-js/internals/enum-bug-keys.js","../node_modules/core-js/internals/object-keys.js","../node_modules/core-js/internals/object-define-properties.js","../node_modules/core-js/internals/html.js","../node_modules/core-js/internals/shared-key.js","../node_modules/core-js/internals/add-to-unscopables.js","../node_modules/core-js/internals/internal-state.js","../node_modules/core-js/internals/iterators.js","../node_modules/core-js/internals/weak-map-basic-detection.js","../node_modules/core-js/internals/iterators-core.js","../node_modules/core-js/internals/object-property-is-enumerable.js","../node_modules/core-js/internals/object-get-own-property-descriptor.js","../node_modules/core-js/internals/function-name.js","../node_modules/core-js/internals/make-built-in.js","../node_modules/core-js/internals/define-built-in.js","../node_modules/core-js/internals/object-get-own-property-names.js","../node_modules/core-js/internals/object-get-own-property-symbols.js","../node_modules/core-js/internals/own-keys.js","../node_modules/core-js/internals/copy-constructor-properties.js","../node_modules/core-js/internals/is-forced.js","../node_modules/core-js/internals/export.js","../node_modules/core-js/internals/correct-prototype-getter.js","../node_modules/core-js/internals/object-get-prototype-of.js","../node_modules/core-js/internals/set-to-string-tag.js","../node_modules/core-js/internals/iterator-create-constructor.js","../node_modules/core-js/internals/a-possible-prototype.js","../node_modules/core-js/internals/object-set-prototype-of.js","../node_modules/core-js/internals/function-uncurry-this-accessor.js","../node_modules/core-js/internals/iterator-define.js","../node_modules/core-js/internals/create-iter-result-object.js","../node_modules/core-js/modules/es.array.iterator.js","../node_modules/core-js/modules/web.dom-collections.iterator.js","../node_modules/core-js/internals/path.js","../node_modules/core-js/modules/es.array.index-of.js","../node_modules/core-js/internals/does-not-exceed-safe-integer.js","../node_modules/core-js/internals/create-property.js","../node_modules/core-js/internals/array-method-has-species-support.js","../node_modules/core-js/modules/es.array.concat.js","../node_modules/core-js/internals/object-assign.js","../node_modules/core-js/modules/es.object.assign.js","../node_modules/core-js/internals/object-to-string.js","../node_modules/core-js/modules/es.object.to-string.js","../node_modules/core-js/internals/engine-is-node.js","../node_modules/core-js/internals/task.js","../node_modules/core-js/internals/define-built-in-accessor.js","../node_modules/core-js/internals/set-species.js","../node_modules/core-js/internals/an-instance.js","../node_modules/core-js/internals/a-constructor.js","../node_modules/core-js/internals/species-constructor.js","../node_modules/core-js/internals/function-apply.js","../node_modules/core-js/internals/array-slice.js","../node_modules/core-js/internals/validate-arguments-length.js","../node_modules/core-js/internals/engine-is-ios.js","../node_modules/core-js/internals/queue.js","../node_modules/core-js/internals/microtask.js","../node_modules/core-js/internals/engine-is-ios-pebble.js","../node_modules/core-js/internals/engine-is-webos-webkit.js","../node_modules/core-js/internals/perform.js","../node_modules/core-js/internals/promise-native-constructor.js","../node_modules/core-js/internals/engine-is-deno.js","../node_modules/core-js/internals/engine-is-browser.js","../node_modules/core-js/internals/promise-constructor-detection.js","../node_modules/core-js/modules/es.promise.constructor.js","../node_modules/core-js/internals/new-promise-capability.js","../node_modules/core-js/internals/host-report-errors.js","../node_modules/core-js/internals/is-array-iterator-method.js","../node_modules/core-js/internals/get-iterator-method.js","../node_modules/core-js/internals/get-iterator.js","../node_modules/core-js/internals/iterator-close.js","../node_modules/core-js/internals/iterate.js","../node_modules/core-js/internals/check-correctness-of-iteration.js","../node_modules/core-js/internals/promise-statics-incorrect-iteration.js","../node_modules/core-js/modules/es.promise.all.js","../node_modules/core-js/modules/es.promise.catch.js","../node_modules/core-js/modules/es.promise.race.js","../node_modules/core-js/modules/es.promise.reject.js","../node_modules/core-js/internals/promise-resolve.js","../node_modules/core-js/modules/es.promise.resolve.js","../node_modules/core-js/internals/to-string.js","../node_modules/core-js/internals/regexp-exec.js","../node_modules/core-js/internals/regexp-flags.js","../node_modules/core-js/internals/regexp-sticky-helpers.js","../node_modules/core-js/internals/regexp-unsupported-dot-all.js","../node_modules/core-js/internals/regexp-unsupported-ncg.js","../node_modules/core-js/modules/es.regexp.exec.js","../src/Features.js","../node_modules/core-js/internals/string-multibyte.js","../node_modules/core-js/modules/es.string.iterator.js","../node_modules/core-js/modules/es.array.filter.js","../node_modules/core-js/modules/es.array.find.js","../node_modules/bellhop-iframe/dist/bellhop.js","../src/PluginManager.js","../src/Container.js","../src/PageVisibility.js","../node_modules/core-js/modules/es.array.includes.js","../node_modules/core-js/internals/whitespaces.js","../node_modules/core-js/internals/string-trim-forced.js","../node_modules/core-js/internals/string-trim.js","../node_modules/core-js/modules/es.string.trim.js","../node_modules/core-js/internals/regexp-get-flags.js","../node_modules/core-js/modules/es.regexp.to-string.js","../src/SavedData.js","../src/base-plugins/BasePlugin.js","../src/base-plugins/ButtonPlugin.js","../node_modules/core-js/internals/is-regexp.js","../node_modules/core-js/internals/not-a-regexp.js","../node_modules/core-js/internals/correct-is-regexp-logic.js","../node_modules/core-js/modules/es.string.includes.js","../node_modules/core-js/internals/array-slice-simple.js","../node_modules/core-js/internals/object-get-own-property-names-external.js","../node_modules/core-js/internals/array-buffer-non-extensible.js","../node_modules/core-js/internals/object-is-extensible.js","../node_modules/core-js/internals/freezing.js","../node_modules/core-js/internals/internal-metadata.js","../node_modules/core-js/internals/inherit-if-required.js","../node_modules/core-js/internals/define-built-ins.js","../node_modules/core-js/internals/collection-strong.js","../node_modules/core-js/internals/collection.js","../node_modules/core-js/modules/es.set.constructor.js","../node_modules/core-js/modules/es.object.keys.js","../node_modules/core-js/modules/es.array.map.js","../node_modules/core-js/internals/object-to-array.js","../node_modules/core-js/modules/es.object.values.js","../src/ui-elements/RadioGroup.js","../src/base-plugins/RadioGroupPlugin.js","../node_modules/core-js/internals/this-number-value.js","../node_modules/core-js/modules/es.number.constructor.js","../src/ui-elements/Slider.js","../src/ui-elements/Button.js","../src/base-plugins/SliderPlugin.js","../src/plugins/CaptionsStylePlugin.js","../src/plugins/CaptionsTogglePlugin.js","../src/plugins/HelpPlugin.js","../src/plugins/PausePlugin.js","../src/plugins/SoundPlugin.js","../src/SavedDataHandler.js","../src/plugins/UserDataPlugin.js","../src/plugins/PointerSizePlugin.js","../src/plugins/ButtonSizePlugin.js","../src/plugins/ControlSensitivityPlugin.js","../src/plugins/KeyboardMapPlugin.js","../src/plugins/LayersPlugin.js","../src/plugins/HUDPlugin.js","../src/plugins/ColorVisionPlugin.js","../src/plugins/HitAreaScalePlugin.js","../src/plugins/DragThresholdScalePlugin.js","../src/plugins/HealthPlugin.js","../src/plugins/ObjectCountPlugin.js","../src/plugins/CompletionPercentagePlugin.js","../src/plugins/SpeedScalePlugin.js","../src/plugins/TimersScalePlugin.js","../src/plugins/InputCountPlugin.js","../src/plugins/FullScreenPlugin.js"],"sourcesContent":["var global =\n (typeof globalThis !== 'undefined' && globalThis) ||\n (typeof self !== 'undefined' && self) ||\n (typeof global !== 'undefined' && global)\n\nvar support = {\n searchParams: 'URLSearchParams' in global,\n iterable: 'Symbol' in global && 'iterator' in Symbol,\n blob:\n 'FileReader' in global &&\n 'Blob' in global &&\n (function() {\n try {\n new Blob()\n return true\n } catch (e) {\n return false\n }\n })(),\n formData: 'FormData' in global,\n arrayBuffer: 'ArrayBuffer' in global\n}\n\nfunction isDataView(obj) {\n return obj && DataView.prototype.isPrototypeOf(obj)\n}\n\nif (support.arrayBuffer) {\n var viewClasses = [\n '[object Int8Array]',\n '[object Uint8Array]',\n '[object Uint8ClampedArray]',\n '[object Int16Array]',\n '[object Uint16Array]',\n '[object Int32Array]',\n '[object Uint32Array]',\n '[object Float32Array]',\n '[object Float64Array]'\n ]\n\n var isArrayBufferView =\n ArrayBuffer.isView ||\n function(obj) {\n return obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1\n }\n}\n\nfunction normalizeName(name) {\n if (typeof name !== 'string') {\n name = String(name)\n }\n if (/[^a-z0-9\\-#$%&'*+.^_`|~!]/i.test(name) || name === '') {\n throw new TypeError('Invalid character in header field name: \"' + name + '\"')\n }\n return name.toLowerCase()\n}\n\nfunction normalizeValue(value) {\n if (typeof value !== 'string') {\n value = String(value)\n }\n return value\n}\n\n// Build a destructive iterator for the value list\nfunction iteratorFor(items) {\n var iterator = {\n next: function() {\n var value = items.shift()\n return {done: value === undefined, value: value}\n }\n }\n\n if (support.iterable) {\n iterator[Symbol.iterator] = function() {\n return iterator\n }\n }\n\n return iterator\n}\n\nexport function Headers(headers) {\n this.map = {}\n\n if (headers instanceof Headers) {\n headers.forEach(function(value, name) {\n this.append(name, value)\n }, this)\n } else if (Array.isArray(headers)) {\n headers.forEach(function(header) {\n this.append(header[0], header[1])\n }, this)\n } else if (headers) {\n Object.getOwnPropertyNames(headers).forEach(function(name) {\n this.append(name, headers[name])\n }, this)\n }\n}\n\nHeaders.prototype.append = function(name, value) {\n name = normalizeName(name)\n value = normalizeValue(value)\n var oldValue = this.map[name]\n this.map[name] = oldValue ? oldValue + ', ' + value : value\n}\n\nHeaders.prototype['delete'] = function(name) {\n delete this.map[normalizeName(name)]\n}\n\nHeaders.prototype.get = function(name) {\n name = normalizeName(name)\n return this.has(name) ? this.map[name] : null\n}\n\nHeaders.prototype.has = function(name) {\n return this.map.hasOwnProperty(normalizeName(name))\n}\n\nHeaders.prototype.set = function(name, value) {\n this.map[normalizeName(name)] = normalizeValue(value)\n}\n\nHeaders.prototype.forEach = function(callback, thisArg) {\n for (var name in this.map) {\n if (this.map.hasOwnProperty(name)) {\n callback.call(thisArg, this.map[name], name, this)\n }\n }\n}\n\nHeaders.prototype.keys = function() {\n var items = []\n this.forEach(function(value, name) {\n items.push(name)\n })\n return iteratorFor(items)\n}\n\nHeaders.prototype.values = function() {\n var items = []\n this.forEach(function(value) {\n items.push(value)\n })\n return iteratorFor(items)\n}\n\nHeaders.prototype.entries = function() {\n var items = []\n this.forEach(function(value, name) {\n items.push([name, value])\n })\n return iteratorFor(items)\n}\n\nif (support.iterable) {\n Headers.prototype[Symbol.iterator] = Headers.prototype.entries\n}\n\nfunction consumed(body) {\n if (body.bodyUsed) {\n return Promise.reject(new TypeError('Already read'))\n }\n body.bodyUsed = true\n}\n\nfunction fileReaderReady(reader) {\n return new Promise(function(resolve, reject) {\n reader.onload = function() {\n resolve(reader.result)\n }\n reader.onerror = function() {\n reject(reader.error)\n }\n })\n}\n\nfunction readBlobAsArrayBuffer(blob) {\n var reader = new FileReader()\n var promise = fileReaderReady(reader)\n reader.readAsArrayBuffer(blob)\n return promise\n}\n\nfunction readBlobAsText(blob) {\n var reader = new FileReader()\n var promise = fileReaderReady(reader)\n reader.readAsText(blob)\n return promise\n}\n\nfunction readArrayBufferAsText(buf) {\n var view = new Uint8Array(buf)\n var chars = new Array(view.length)\n\n for (var i = 0; i < view.length; i++) {\n chars[i] = String.fromCharCode(view[i])\n }\n return chars.join('')\n}\n\nfunction bufferClone(buf) {\n if (buf.slice) {\n return buf.slice(0)\n } else {\n var view = new Uint8Array(buf.byteLength)\n view.set(new Uint8Array(buf))\n return view.buffer\n }\n}\n\nfunction Body() {\n this.bodyUsed = false\n\n this._initBody = function(body) {\n /*\n fetch-mock wraps the Response object in an ES6 Proxy to\n provide useful test harness features such as flush. However, on\n ES5 browsers without fetch or Proxy support pollyfills must be used;\n the proxy-pollyfill is unable to proxy an attribute unless it exists\n on the object before the Proxy is created. This change ensures\n Response.bodyUsed exists on the instance, while maintaining the\n semantic of setting Request.bodyUsed in the constructor before\n _initBody is called.\n */\n this.bodyUsed = this.bodyUsed\n this._bodyInit = body\n if (!body) {\n this._bodyText = ''\n } else if (typeof body === 'string') {\n this._bodyText = body\n } else if (support.blob && Blob.prototype.isPrototypeOf(body)) {\n this._bodyBlob = body\n } else if (support.formData && FormData.prototype.isPrototypeOf(body)) {\n this._bodyFormData = body\n } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {\n this._bodyText = body.toString()\n } else if (support.arrayBuffer && support.blob && isDataView(body)) {\n this._bodyArrayBuffer = bufferClone(body.buffer)\n // IE 10-11 can't handle a DataView body.\n this._bodyInit = new Blob([this._bodyArrayBuffer])\n } else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) {\n this._bodyArrayBuffer = bufferClone(body)\n } else {\n this._bodyText = body = Object.prototype.toString.call(body)\n }\n\n if (!this.headers.get('content-type')) {\n if (typeof body === 'string') {\n this.headers.set('content-type', 'text/plain;charset=UTF-8')\n } else if (this._bodyBlob && this._bodyBlob.type) {\n this.headers.set('content-type', this._bodyBlob.type)\n } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {\n this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8')\n }\n }\n }\n\n if (support.blob) {\n this.blob = function() {\n var rejected = consumed(this)\n if (rejected) {\n return rejected\n }\n\n if (this._bodyBlob) {\n return Promise.resolve(this._bodyBlob)\n } else if (this._bodyArrayBuffer) {\n return Promise.resolve(new Blob([this._bodyArrayBuffer]))\n } else if (this._bodyFormData) {\n throw new Error('could not read FormData body as blob')\n } else {\n return Promise.resolve(new Blob([this._bodyText]))\n }\n }\n\n this.arrayBuffer = function() {\n if (this._bodyArrayBuffer) {\n var isConsumed = consumed(this)\n if (isConsumed) {\n return isConsumed\n }\n if (ArrayBuffer.isView(this._bodyArrayBuffer)) {\n return Promise.resolve(\n this._bodyArrayBuffer.buffer.slice(\n this._bodyArrayBuffer.byteOffset,\n this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength\n )\n )\n } else {\n return Promise.resolve(this._bodyArrayBuffer)\n }\n } else {\n return this.blob().then(readBlobAsArrayBuffer)\n }\n }\n }\n\n this.text = function() {\n var rejected = consumed(this)\n if (rejected) {\n return rejected\n }\n\n if (this._bodyBlob) {\n return readBlobAsText(this._bodyBlob)\n } else if (this._bodyArrayBuffer) {\n return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer))\n } else if (this._bodyFormData) {\n throw new Error('could not read FormData body as text')\n } else {\n return Promise.resolve(this._bodyText)\n }\n }\n\n if (support.formData) {\n this.formData = function() {\n return this.text().then(decode)\n }\n }\n\n this.json = function() {\n return this.text().then(JSON.parse)\n }\n\n return this\n}\n\n// HTTP methods whose capitalization should be normalized\nvar methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT']\n\nfunction normalizeMethod(method) {\n var upcased = method.toUpperCase()\n return methods.indexOf(upcased) > -1 ? upcased : method\n}\n\nexport function Request(input, options) {\n if (!(this instanceof Request)) {\n throw new TypeError('Please use the \"new\" operator, this DOM object constructor cannot be called as a function.')\n }\n\n options = options || {}\n var body = options.body\n\n if (input instanceof Request) {\n if (input.bodyUsed) {\n throw new TypeError('Already read')\n }\n this.url = input.url\n this.credentials = input.credentials\n if (!options.headers) {\n this.headers = new Headers(input.headers)\n }\n this.method = input.method\n this.mode = input.mode\n this.signal = input.signal\n if (!body && input._bodyInit != null) {\n body = input._bodyInit\n input.bodyUsed = true\n }\n } else {\n this.url = String(input)\n }\n\n this.credentials = options.credentials || this.credentials || 'same-origin'\n if (options.headers || !this.headers) {\n this.headers = new Headers(options.headers)\n }\n this.method = normalizeMethod(options.method || this.method || 'GET')\n this.mode = options.mode || this.mode || null\n this.signal = options.signal || this.signal\n this.referrer = null\n\n if ((this.method === 'GET' || this.method === 'HEAD') && body) {\n throw new TypeError('Body not allowed for GET or HEAD requests')\n }\n this._initBody(body)\n\n if (this.method === 'GET' || this.method === 'HEAD') {\n if (options.cache === 'no-store' || options.cache === 'no-cache') {\n // Search for a '_' parameter in the query string\n var reParamSearch = /([?&])_=[^&]*/\n if (reParamSearch.test(this.url)) {\n // If it already exists then set the value with the current time\n this.url = this.url.replace(reParamSearch, '$1_=' + new Date().getTime())\n } else {\n // Otherwise add a new '_' parameter to the end with the current time\n var reQueryString = /\\?/\n this.url += (reQueryString.test(this.url) ? '&' : '?') + '_=' + new Date().getTime()\n }\n }\n }\n}\n\nRequest.prototype.clone = function() {\n return new Request(this, {body: this._bodyInit})\n}\n\nfunction decode(body) {\n var form = new FormData()\n body\n .trim()\n .split('&')\n .forEach(function(bytes) {\n if (bytes) {\n var split = bytes.split('=')\n var name = split.shift().replace(/\\+/g, ' ')\n var value = split.join('=').replace(/\\+/g, ' ')\n form.append(decodeURIComponent(name), decodeURIComponent(value))\n }\n })\n return form\n}\n\nfunction parseHeaders(rawHeaders) {\n var headers = new Headers()\n // Replace instances of \\r\\n and \\n followed by at least one space or horizontal tab with a space\n // https://tools.ietf.org/html/rfc7230#section-3.2\n var preProcessedHeaders = rawHeaders.replace(/\\r?\\n[\\t ]+/g, ' ')\n // Avoiding split via regex to work around a common IE11 bug with the core-js 3.6.0 regex polyfill\n // https://github.com/github/fetch/issues/748\n // https://github.com/zloirock/core-js/issues/751\n preProcessedHeaders\n .split('\\r')\n .map(function(header) {\n return header.indexOf('\\n') === 0 ? header.substr(1, header.length) : header\n })\n .forEach(function(line) {\n var parts = line.split(':')\n var key = parts.shift().trim()\n if (key) {\n var value = parts.join(':').trim()\n headers.append(key, value)\n }\n })\n return headers\n}\n\nBody.call(Request.prototype)\n\nexport function Response(bodyInit, options) {\n if (!(this instanceof Response)) {\n throw new TypeError('Please use the \"new\" operator, this DOM object constructor cannot be called as a function.')\n }\n if (!options) {\n options = {}\n }\n\n this.type = 'default'\n this.status = options.status === undefined ? 200 : options.status\n this.ok = this.status >= 200 && this.status < 300\n this.statusText = options.statusText === undefined ? '' : '' + options.statusText\n this.headers = new Headers(options.headers)\n this.url = options.url || ''\n this._initBody(bodyInit)\n}\n\nBody.call(Response.prototype)\n\nResponse.prototype.clone = function() {\n return new Response(this._bodyInit, {\n status: this.status,\n statusText: this.statusText,\n headers: new Headers(this.headers),\n url: this.url\n })\n}\n\nResponse.error = function() {\n var response = new Response(null, {status: 0, statusText: ''})\n response.type = 'error'\n return response\n}\n\nvar redirectStatuses = [301, 302, 303, 307, 308]\n\nResponse.redirect = function(url, status) {\n if (redirectStatuses.indexOf(status) === -1) {\n throw new RangeError('Invalid status code')\n }\n\n return new Response(null, {status: status, headers: {location: url}})\n}\n\nexport var DOMException = global.DOMException\ntry {\n new DOMException()\n} catch (err) {\n DOMException = function(message, name) {\n this.message = message\n this.name = name\n var error = Error(message)\n this.stack = error.stack\n }\n DOMException.prototype = Object.create(Error.prototype)\n DOMException.prototype.constructor = DOMException\n}\n\nexport function fetch(input, init) {\n return new Promise(function(resolve, reject) {\n var request = new Request(input, init)\n\n if (request.signal && request.signal.aborted) {\n return reject(new DOMException('Aborted', 'AbortError'))\n }\n\n var xhr = new XMLHttpRequest()\n\n function abortXhr() {\n xhr.abort()\n }\n\n xhr.onload = function() {\n var options = {\n status: xhr.status,\n statusText: xhr.statusText,\n headers: parseHeaders(xhr.getAllResponseHeaders() || '')\n }\n options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL')\n var body = 'response' in xhr ? xhr.response : xhr.responseText\n setTimeout(function() {\n resolve(new Response(body, options))\n }, 0)\n }\n\n xhr.onerror = function() {\n setTimeout(function() {\n reject(new TypeError('Network request failed'))\n }, 0)\n }\n\n xhr.ontimeout = function() {\n setTimeout(function() {\n reject(new TypeError('Network request failed'))\n }, 0)\n }\n\n xhr.onabort = function() {\n setTimeout(function() {\n reject(new DOMException('Aborted', 'AbortError'))\n }, 0)\n }\n\n function fixUrl(url) {\n try {\n return url === '' && global.location.href ? global.location.href : url\n } catch (e) {\n return url\n }\n }\n\n xhr.open(request.method, fixUrl(request.url), true)\n\n if (request.credentials === 'include') {\n xhr.withCredentials = true\n } else if (request.credentials === 'omit') {\n xhr.withCredentials = false\n }\n\n if ('responseType' in xhr) {\n if (support.blob) {\n xhr.responseType = 'blob'\n } else if (\n support.arrayBuffer &&\n request.headers.get('Content-Type') &&\n request.headers.get('Content-Type').indexOf('application/octet-stream') !== -1\n ) {\n xhr.responseType = 'arraybuffer'\n }\n }\n\n if (init && typeof init.headers === 'object' && !(init.headers instanceof Headers)) {\n Object.getOwnPropertyNames(init.headers).forEach(function(name) {\n xhr.setRequestHeader(name, normalizeValue(init.headers[name]))\n })\n } else {\n request.headers.forEach(function(value, name) {\n xhr.setRequestHeader(name, value)\n })\n }\n\n if (request.signal) {\n request.signal.addEventListener('abort', abortXhr)\n\n xhr.onreadystatechange = function() {\n // DONE (success or failure)\n if (xhr.readyState === 4) {\n request.signal.removeEventListener('abort', abortXhr)\n }\n }\n }\n\n xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit)\n })\n}\n\nfetch.polyfill = true\n\nif (!global.fetch) {\n global.fetch = fetch\n global.Headers = Headers\n global.Request = Request\n global.Response = Response\n}\n","var check = function (it) {\n return it && it.Math == Math && it;\n};\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nmodule.exports =\n // eslint-disable-next-line es/no-global-this -- safe\n check(typeof globalThis == 'object' && globalThis) ||\n check(typeof window == 'object' && window) ||\n // eslint-disable-next-line no-restricted-globals -- safe\n check(typeof self == 'object' && self) ||\n check(typeof global == 'object' && global) ||\n // eslint-disable-next-line no-new-func -- fallback\n (function () { return this; })() || Function('return this')();\n","var global = require('../internals/global');\nvar userAgent = require('../internals/engine-user-agent');\n\nvar process = global.process;\nvar Deno = global.Deno;\nvar versions = process && process.versions || Deno && Deno.version;\nvar v8 = versions && versions.v8;\nvar match, version;\n\nif (v8) {\n match = v8.split('.');\n // in old Chrome, versions of V8 isn't V8 = Chrome / 10\n // but their correct versions are not interesting for us\n version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);\n}\n\n// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`\n// so check `userAgent` even if `.v8` exists, but 0\nif (!version && userAgent) {\n match = userAgent.match(/Edge\\/(\\d+)/);\n if (!match || match[1] >= 74) {\n match = userAgent.match(/Chrome\\/(\\d+)/);\n if (match) version = +match[1];\n }\n}\n\nmodule.exports = version;\n","// iterable DOM collections\n// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods\nmodule.exports = {\n CSSRuleList: 0,\n CSSStyleDeclaration: 0,\n CSSValueList: 0,\n ClientRectList: 0,\n DOMRectList: 0,\n DOMStringList: 0,\n DOMTokenList: 1,\n DataTransferItemList: 0,\n FileList: 0,\n HTMLAllCollection: 0,\n HTMLCollection: 0,\n HTMLFormElement: 0,\n HTMLSelectElement: 0,\n MediaList: 0,\n MimeTypeArray: 0,\n NamedNodeMap: 0,\n NodeList: 1,\n PaintRequestList: 0,\n Plugin: 0,\n PluginArray: 0,\n SVGLengthList: 0,\n SVGNumberList: 0,\n SVGPathSegList: 0,\n SVGPointList: 0,\n SVGStringList: 0,\n SVGTransformList: 0,\n SourceBufferList: 0,\n StyleSheetList: 0,\n TextTrackCueList: 0,\n TextTrackList: 0,\n TouchList: 0\n};\n","var documentAll = typeof document == 'object' && document.all;\n\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot\n// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing\nvar IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;\n\nmodule.exports = {\n all: documentAll,\n IS_HTMLDDA: IS_HTMLDDA\n};\n","var $documentAll = require('../internals/document-all');\n\nvar documentAll = $documentAll.all;\n\n// `IsCallable` abstract operation\n// https://tc39.es/ecma262/#sec-iscallable\nmodule.exports = $documentAll.IS_HTMLDDA ? function (argument) {\n return typeof argument == 'function' || argument === documentAll;\n} : function (argument) {\n return typeof argument == 'function';\n};\n","var isCallable = require('../internals/is-callable');\nvar $documentAll = require('../internals/document-all');\n\nvar documentAll = $documentAll.all;\n\nmodule.exports = $documentAll.IS_HTMLDDA ? function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll;\n} : function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it);\n};\n","var global = require('../internals/global');\nvar isObject = require('../internals/is-object');\n\nvar document = global.document;\n// typeof document.createElement is 'object' in old IE\nvar EXISTS = isObject(document) && isObject(document.createElement);\n\nmodule.exports = function (it) {\n return EXISTS ? document.createElement(it) : {};\n};\n","// in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`\nvar documentCreateElement = require('../internals/document-create-element');\n\nvar classList = documentCreateElement('span').classList;\nvar DOMTokenListPrototype = classList && classList.constructor && classList.constructor.prototype;\n\nmodule.exports = DOMTokenListPrototype === Object.prototype ? undefined : DOMTokenListPrototype;\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (error) {\n return true;\n }\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-function-prototype-bind -- safe\n var test = (function () { /* empty */ }).bind();\n // eslint-disable-next-line no-prototype-builtins -- safe\n return typeof test != 'function' || test.hasOwnProperty('prototype');\n});\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar call = FunctionPrototype.call;\nvar uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);\n\nmodule.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {\n return function () {\n return call.apply(fn, arguments);\n };\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar toString = uncurryThis({}.toString);\nvar stringSlice = uncurryThis(''.slice);\n\nmodule.exports = function (it) {\n return stringSlice(toString(it), 8, -1);\n};\n","var classofRaw = require('../internals/classof-raw');\nvar uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = function (fn) {\n // Nashorn bug:\n // https://github.com/zloirock/core-js/issues/1128\n // https://github.com/zloirock/core-js/issues/1130\n if (classofRaw(fn) === 'Function') return uncurryThis(fn);\n};\n","var $String = String;\n\nmodule.exports = function (argument) {\n try {\n return $String(argument);\n } catch (error) {\n return 'Object';\n }\n};\n","var isCallable = require('../internals/is-callable');\nvar tryToString = require('../internals/try-to-string');\n\nvar $TypeError = TypeError;\n\n// `Assert: IsCallable(argument) is true`\nmodule.exports = function (argument) {\n if (isCallable(argument)) return argument;\n throw $TypeError(tryToString(argument) + ' is not a function');\n};\n","var uncurryThis = require('../internals/function-uncurry-this-clause');\nvar aCallable = require('../internals/a-callable');\nvar NATIVE_BIND = require('../internals/function-bind-native');\n\nvar bind = uncurryThis(uncurryThis.bind);\n\n// optional / simple context binding\nmodule.exports = function (fn, that) {\n aCallable(fn);\n return that === undefined ? fn : NATIVE_BIND ? bind(fn, that) : function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar classof = require('../internals/classof-raw');\n\nvar $Object = Object;\nvar split = uncurryThis(''.split);\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nmodule.exports = fails(function () {\n // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n // eslint-disable-next-line no-prototype-builtins -- safe\n return !$Object('z').propertyIsEnumerable(0);\n}) ? function (it) {\n return classof(it) == 'String' ? split(it, '') : $Object(it);\n} : $Object;\n","// we can't use just `it == null` since of `document.all` special case\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec\nmodule.exports = function (it) {\n return it === null || it === undefined;\n};\n","var isNullOrUndefined = require('../internals/is-null-or-undefined');\n\nvar $TypeError = TypeError;\n\n// `RequireObjectCoercible` abstract operation\n// https://tc39.es/ecma262/#sec-requireobjectcoercible\nmodule.exports = function (it) {\n if (isNullOrUndefined(it)) throw $TypeError(\"Can't call method on \" + it);\n return it;\n};\n","var requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar $Object = Object;\n\n// `ToObject` abstract operation\n// https://tc39.es/ecma262/#sec-toobject\nmodule.exports = function (argument) {\n return $Object(requireObjectCoercible(argument));\n};\n","var ceil = Math.ceil;\nvar floor = Math.floor;\n\n// `Math.trunc` method\n// https://tc39.es/ecma262/#sec-math.trunc\n// eslint-disable-next-line es/no-math-trunc -- safe\nmodule.exports = Math.trunc || function trunc(x) {\n var n = +x;\n return (n > 0 ? floor : ceil)(n);\n};\n","var trunc = require('../internals/math-trunc');\n\n// `ToIntegerOrInfinity` abstract operation\n// https://tc39.es/ecma262/#sec-tointegerorinfinity\nmodule.exports = function (argument) {\n var number = +argument;\n // eslint-disable-next-line no-self-compare -- NaN check\n return number !== number || number === 0 ? 0 : trunc(number);\n};\n","var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar min = Math.min;\n\n// `ToLength` abstract operation\n// https://tc39.es/ecma262/#sec-tolength\nmodule.exports = function (argument) {\n return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991\n};\n","var toLength = require('../internals/to-length');\n\n// `LengthOfArrayLike` abstract operation\n// https://tc39.es/ecma262/#sec-lengthofarraylike\nmodule.exports = function (obj) {\n return toLength(obj.length);\n};\n","var classof = require('../internals/classof-raw');\n\n// `IsArray` abstract operation\n// https://tc39.es/ecma262/#sec-isarray\n// eslint-disable-next-line es/no-array-isarray -- safe\nmodule.exports = Array.isArray || function isArray(argument) {\n return classof(argument) == 'Array';\n};\n","var global = require('../internals/global');\n\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\n\nmodule.exports = function (key, value) {\n try {\n defineProperty(global, key, { value: value, configurable: true, writable: true });\n } catch (error) {\n global[key] = value;\n } return value;\n};\n","var global = require('../internals/global');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || defineGlobalProperty(SHARED, {});\n\nmodule.exports = store;\n","var IS_PURE = require('../internals/is-pure');\nvar store = require('../internals/shared-store');\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.28.0',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',\n license: 'https://github.com/zloirock/core-js/blob/v3.28.0/LICENSE',\n source: 'https://github.com/zloirock/core-js'\n});\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar toObject = require('../internals/to-object');\n\nvar hasOwnProperty = uncurryThis({}.hasOwnProperty);\n\n// `HasOwnProperty` abstract operation\n// https://tc39.es/ecma262/#sec-hasownproperty\n// eslint-disable-next-line es/no-object-hasown -- safe\nmodule.exports = Object.hasOwn || function hasOwn(it, key) {\n return hasOwnProperty(toObject(it), key);\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar id = 0;\nvar postfix = Math.random();\nvar toString = uncurryThis(1.0.toString);\n\nmodule.exports = function (key) {\n return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);\n};\n","module.exports = typeof navigator != 'undefined' && String(navigator.userAgent) || '';\n","/* eslint-disable es/no-symbol -- required for testing */\nvar V8_VERSION = require('../internals/engine-v8-version');\nvar fails = require('../internals/fails');\n\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing\nmodule.exports = !!Object.getOwnPropertySymbols && !fails(function () {\n var symbol = Symbol();\n // Chrome 38 Symbol has incorrect toString conversion\n // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances\n return !String(symbol) || !(Object(symbol) instanceof Symbol) ||\n // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances\n !Symbol.sham && V8_VERSION && V8_VERSION < 41;\n});\n","/* eslint-disable es/no-symbol -- required for testing */\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\n\nmodule.exports = NATIVE_SYMBOL\n && !Symbol.sham\n && typeof Symbol.iterator == 'symbol';\n","var global = require('../internals/global');\nvar shared = require('../internals/shared');\nvar hasOwn = require('../internals/has-own-property');\nvar uid = require('../internals/uid');\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar Symbol = global.Symbol;\nvar WellKnownSymbolsStore = shared('wks');\nvar createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid;\n\nmodule.exports = function (name) {\n if (!hasOwn(WellKnownSymbolsStore, name)) {\n WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name)\n ? Symbol[name]\n : createWellKnownSymbol('Symbol.' + name);\n } return WellKnownSymbolsStore[name];\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar test = {};\n\ntest[TO_STRING_TAG] = 'z';\n\nmodule.exports = String(test) === '[object z]';\n","var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar isCallable = require('../internals/is-callable');\nvar classofRaw = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar $Object = Object;\n\n// ES3 wrong here\nvar CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (error) { /* empty */ }\n};\n\n// getting tag from ES6+ `Object.prototype.toString`\nmodule.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {\n var O, tag, result;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag\n // builtinTag case\n : CORRECT_ARGUMENTS ? classofRaw(O)\n // ES3 arguments fallback\n : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;\n};\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar aFunction = function (argument) {\n return isCallable(argument) ? argument : undefined;\n};\n\nmodule.exports = function (namespace, method) {\n return arguments.length < 2 ? aFunction(global[namespace]) : global[namespace] && global[namespace][method];\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar isCallable = require('../internals/is-callable');\nvar store = require('../internals/shared-store');\n\nvar functionToString = uncurryThis(Function.toString);\n\n// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper\nif (!isCallable(store.inspectSource)) {\n store.inspectSource = function (it) {\n return functionToString(it);\n };\n}\n\nmodule.exports = store.inspectSource;\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar classof = require('../internals/classof');\nvar getBuiltIn = require('../internals/get-built-in');\nvar inspectSource = require('../internals/inspect-source');\n\nvar noop = function () { /* empty */ };\nvar empty = [];\nvar construct = getBuiltIn('Reflect', 'construct');\nvar constructorRegExp = /^\\s*(?:class|function)\\b/;\nvar exec = uncurryThis(constructorRegExp.exec);\nvar INCORRECT_TO_STRING = !constructorRegExp.exec(noop);\n\nvar isConstructorModern = function isConstructor(argument) {\n if (!isCallable(argument)) return false;\n try {\n construct(noop, empty, argument);\n return true;\n } catch (error) {\n return false;\n }\n};\n\nvar isConstructorLegacy = function isConstructor(argument) {\n if (!isCallable(argument)) return false;\n switch (classof(argument)) {\n case 'AsyncFunction':\n case 'GeneratorFunction':\n case 'AsyncGeneratorFunction': return false;\n }\n try {\n // we can't check .prototype since constructors produced by .bind haven't it\n // `Function#toString` throws on some built-it function in some legacy engines\n // (for example, `DOMQuad` and similar in FF41-)\n return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));\n } catch (error) {\n return true;\n }\n};\n\nisConstructorLegacy.sham = true;\n\n// `IsConstructor` abstract operation\n// https://tc39.es/ecma262/#sec-isconstructor\nmodule.exports = !construct || fails(function () {\n var called;\n return isConstructorModern(isConstructorModern.call)\n || !isConstructorModern(Object)\n || !isConstructorModern(function () { called = true; })\n || called;\n}) ? isConstructorLegacy : isConstructorModern;\n","var isArray = require('../internals/is-array');\nvar isConstructor = require('../internals/is-constructor');\nvar isObject = require('../internals/is-object');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar SPECIES = wellKnownSymbol('species');\nvar $Array = Array;\n\n// a part of `ArraySpeciesCreate` abstract operation\n// https://tc39.es/ecma262/#sec-arrayspeciescreate\nmodule.exports = function (originalArray) {\n var C;\n if (isArray(originalArray)) {\n C = originalArray.constructor;\n // cross-realm fallback\n if (isConstructor(C) && (C === $Array || isArray(C.prototype))) C = undefined;\n else if (isObject(C)) {\n C = C[SPECIES];\n if (C === null) C = undefined;\n }\n } return C === undefined ? $Array : C;\n};\n","var arraySpeciesConstructor = require('../internals/array-species-constructor');\n\n// `ArraySpeciesCreate` abstract operation\n// https://tc39.es/ecma262/#sec-arrayspeciescreate\nmodule.exports = function (originalArray, length) {\n return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);\n};\n","var bind = require('../internals/function-bind-context');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar IndexedObject = require('../internals/indexed-object');\nvar toObject = require('../internals/to-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar arraySpeciesCreate = require('../internals/array-species-create');\n\nvar push = uncurryThis([].push);\n\n// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation\nvar createMethod = function (TYPE) {\n var IS_MAP = TYPE == 1;\n var IS_FILTER = TYPE == 2;\n var IS_SOME = TYPE == 3;\n var IS_EVERY = TYPE == 4;\n var IS_FIND_INDEX = TYPE == 6;\n var IS_FILTER_REJECT = TYPE == 7;\n var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;\n return function ($this, callbackfn, that, specificCreate) {\n var O = toObject($this);\n var self = IndexedObject(O);\n var boundFunction = bind(callbackfn, that);\n var length = lengthOfArrayLike(self);\n var index = 0;\n var create = specificCreate || arraySpeciesCreate;\n var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;\n var value, result;\n for (;length > index; index++) if (NO_HOLES || index in self) {\n value = self[index];\n result = boundFunction(value, index, O);\n if (TYPE) {\n if (IS_MAP) target[index] = result; // map\n else if (result) switch (TYPE) {\n case 3: return true; // some\n case 5: return value; // find\n case 6: return index; // findIndex\n case 2: push(target, value); // filter\n } else switch (TYPE) {\n case 4: return false; // every\n case 7: push(target, value); // filterReject\n }\n }\n }\n return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.forEach` method\n // https://tc39.es/ecma262/#sec-array.prototype.foreach\n forEach: createMethod(0),\n // `Array.prototype.map` method\n // https://tc39.es/ecma262/#sec-array.prototype.map\n map: createMethod(1),\n // `Array.prototype.filter` method\n // https://tc39.es/ecma262/#sec-array.prototype.filter\n filter: createMethod(2),\n // `Array.prototype.some` method\n // https://tc39.es/ecma262/#sec-array.prototype.some\n some: createMethod(3),\n // `Array.prototype.every` method\n // https://tc39.es/ecma262/#sec-array.prototype.every\n every: createMethod(4),\n // `Array.prototype.find` method\n // https://tc39.es/ecma262/#sec-array.prototype.find\n find: createMethod(5),\n // `Array.prototype.findIndex` method\n // https://tc39.es/ecma262/#sec-array.prototype.findIndex\n findIndex: createMethod(6),\n // `Array.prototype.filterReject` method\n // https://github.com/tc39/proposal-array-filtering\n filterReject: createMethod(7)\n};\n","'use strict';\nvar fails = require('../internals/fails');\n\nmodule.exports = function (METHOD_NAME, argument) {\n var method = [][METHOD_NAME];\n return !!method && fails(function () {\n // eslint-disable-next-line no-useless-call -- required for testing\n method.call(null, argument || function () { return 1; }, 1);\n });\n};\n","'use strict';\nvar $forEach = require('../internals/array-iteration').forEach;\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\n\nvar STRICT_METHOD = arrayMethodIsStrict('forEach');\n\n// `Array.prototype.forEach` method implementation\n// https://tc39.es/ecma262/#sec-array.prototype.foreach\nmodule.exports = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {\n return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n// eslint-disable-next-line es/no-array-prototype-foreach -- safe\n} : [].forEach;\n","var fails = require('../internals/fails');\n\n// Detect IE8's incomplete defineProperty implementation\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;\n});\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar createElement = require('../internals/document-create-element');\n\n// Thanks to IE8 for its funny defineProperty\nmodule.exports = !DESCRIPTORS && !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(createElement('div'), 'a', {\n get: function () { return 7; }\n }).a != 7;\n});\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\n\n// V8 ~ Chrome 36-\n// https://bugs.chromium.org/p/v8/issues/detail?id=3334\nmodule.exports = DESCRIPTORS && fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(function () { /* empty */ }, 'prototype', {\n value: 42,\n writable: false\n }).prototype != 42;\n});\n","var isObject = require('../internals/is-object');\n\nvar $String = String;\nvar $TypeError = TypeError;\n\n// `Assert: Type(argument) is Object`\nmodule.exports = function (argument) {\n if (isObject(argument)) return argument;\n throw $TypeError($String(argument) + ' is not an object');\n};\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar call = Function.prototype.call;\n\nmodule.exports = NATIVE_BIND ? call.bind(call) : function () {\n return call.apply(call, arguments);\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = uncurryThis({}.isPrototypeOf);\n","var getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar $Object = Object;\n\nmodule.exports = USE_SYMBOL_AS_UID ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n var $Symbol = getBuiltIn('Symbol');\n return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));\n};\n","var aCallable = require('../internals/a-callable');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\n\n// `GetMethod` abstract operation\n// https://tc39.es/ecma262/#sec-getmethod\nmodule.exports = function (V, P) {\n var func = V[P];\n return isNullOrUndefined(func) ? undefined : aCallable(func);\n};\n","var call = require('../internals/function-call');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\n\nvar $TypeError = TypeError;\n\n// `OrdinaryToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-ordinarytoprimitive\nmodule.exports = function (input, pref) {\n var fn, val;\n if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;\n if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n throw $TypeError(\"Can't convert object to primitive value\");\n};\n","var call = require('../internals/function-call');\nvar isObject = require('../internals/is-object');\nvar isSymbol = require('../internals/is-symbol');\nvar getMethod = require('../internals/get-method');\nvar ordinaryToPrimitive = require('../internals/ordinary-to-primitive');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar $TypeError = TypeError;\nvar TO_PRIMITIVE = wellKnownSymbol('toPrimitive');\n\n// `ToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-toprimitive\nmodule.exports = function (input, pref) {\n if (!isObject(input) || isSymbol(input)) return input;\n var exoticToPrim = getMethod(input, TO_PRIMITIVE);\n var result;\n if (exoticToPrim) {\n if (pref === undefined) pref = 'default';\n result = call(exoticToPrim, input, pref);\n if (!isObject(result) || isSymbol(result)) return result;\n throw $TypeError(\"Can't convert object to primitive value\");\n }\n if (pref === undefined) pref = 'number';\n return ordinaryToPrimitive(input, pref);\n};\n","var toPrimitive = require('../internals/to-primitive');\nvar isSymbol = require('../internals/is-symbol');\n\n// `ToPropertyKey` abstract operation\n// https://tc39.es/ecma262/#sec-topropertykey\nmodule.exports = function (argument) {\n var key = toPrimitive(argument, 'string');\n return isSymbol(key) ? key : key + '';\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar anObject = require('../internals/an-object');\nvar toPropertyKey = require('../internals/to-property-key');\n\nvar $TypeError = TypeError;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar $defineProperty = Object.defineProperty;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar ENUMERABLE = 'enumerable';\nvar CONFIGURABLE = 'configurable';\nvar WRITABLE = 'writable';\n\n// `Object.defineProperty` method\n// https://tc39.es/ecma262/#sec-object.defineproperty\nexports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {\n var current = $getOwnPropertyDescriptor(O, P);\n if (current && current[WRITABLE]) {\n O[P] = Attributes.value;\n Attributes = {\n configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],\n enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],\n writable: false\n };\n }\n } return $defineProperty(O, P, Attributes);\n} : $defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return $defineProperty(O, P, Attributes);\n } catch (error) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw $TypeError('Accessors not supported');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = DESCRIPTORS ? function (object, key, value) {\n return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","var global = require('../internals/global');\nvar DOMIterables = require('../internals/dom-iterables');\nvar DOMTokenListPrototype = require('../internals/dom-token-list-prototype');\nvar forEach = require('../internals/array-for-each');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\n\nvar handlePrototype = function (CollectionPrototype) {\n // some Chrome versions have non-configurable methods on DOMTokenList\n if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {\n createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach);\n } catch (error) {\n CollectionPrototype.forEach = forEach;\n }\n};\n\nfor (var COLLECTION_NAME in DOMIterables) {\n if (DOMIterables[COLLECTION_NAME]) {\n handlePrototype(global[COLLECTION_NAME] && global[COLLECTION_NAME].prototype);\n }\n}\n\nhandlePrototype(DOMTokenListPrototype);\n","// toObject with fallback for non-array-like ES3 strings\nvar IndexedObject = require('../internals/indexed-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nmodule.exports = function (it) {\n return IndexedObject(requireObjectCoercible(it));\n};\n","/* global ActiveXObject -- old IE, WSH */\nvar anObject = require('../internals/an-object');\nvar definePropertiesModule = require('../internals/object-define-properties');\nvar enumBugKeys = require('../internals/enum-bug-keys');\nvar hiddenKeys = require('../internals/hidden-keys');\nvar html = require('../internals/html');\nvar documentCreateElement = require('../internals/document-create-element');\nvar sharedKey = require('../internals/shared-key');\n\nvar GT = '>';\nvar LT = '<';\nvar PROTOTYPE = 'prototype';\nvar SCRIPT = 'script';\nvar IE_PROTO = sharedKey('IE_PROTO');\n\nvar EmptyConstructor = function () { /* empty */ };\n\nvar scriptTag = function (content) {\n return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;\n};\n\n// Create object with fake `null` prototype: use ActiveX Object with cleared prototype\nvar NullProtoObjectViaActiveX = function (activeXDocument) {\n activeXDocument.write(scriptTag(''));\n activeXDocument.close();\n var temp = activeXDocument.parentWindow.Object;\n activeXDocument = null; // avoid memory leak\n return temp;\n};\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar NullProtoObjectViaIFrame = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = documentCreateElement('iframe');\n var JS = 'java' + SCRIPT + ':';\n var iframeDocument;\n iframe.style.display = 'none';\n html.appendChild(iframe);\n // https://github.com/zloirock/core-js/issues/475\n iframe.src = String(JS);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(scriptTag('document.F=Object'));\n iframeDocument.close();\n return iframeDocument.F;\n};\n\n// Check for document.domain and active x support\n// No need to use active x approach when document.domain is not set\n// see https://github.com/es-shims/es5-shim/issues/150\n// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346\n// avoid IE GC bug\nvar activeXDocument;\nvar NullProtoObject = function () {\n try {\n activeXDocument = new ActiveXObject('htmlfile');\n } catch (error) { /* ignore */ }\n NullProtoObject = typeof document != 'undefined'\n ? document.domain && activeXDocument\n ? NullProtoObjectViaActiveX(activeXDocument) // old IE\n : NullProtoObjectViaIFrame()\n : NullProtoObjectViaActiveX(activeXDocument); // WSH\n var length = enumBugKeys.length;\n while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];\n return NullProtoObject();\n};\n\nhiddenKeys[IE_PROTO] = true;\n\n// `Object.create` method\n// https://tc39.es/ecma262/#sec-object.create\n// eslint-disable-next-line es/no-object-create -- safe\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n EmptyConstructor[PROTOTYPE] = anObject(O);\n result = new EmptyConstructor();\n EmptyConstructor[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = NullProtoObject();\n return Properties === undefined ? result : definePropertiesModule.f(result, Properties);\n};\n","var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar max = Math.max;\nvar min = Math.min;\n\n// Helper for a popular repeating case of the spec:\n// Let integer be ? ToInteger(index).\n// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\nmodule.exports = function (index, length) {\n var integer = toIntegerOrInfinity(index);\n return integer < 0 ? max(integer + length, 0) : min(integer, length);\n};\n","var toIndexedObject = require('../internals/to-indexed-object');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\n\n// `Array.prototype.{ indexOf, includes }` methods implementation\nvar createMethod = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIndexedObject($this);\n var length = lengthOfArrayLike(O);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare -- NaN check\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare -- NaN check\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) {\n if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.includes` method\n // https://tc39.es/ecma262/#sec-array.prototype.includes\n includes: createMethod(true),\n // `Array.prototype.indexOf` method\n // https://tc39.es/ecma262/#sec-array.prototype.indexof\n indexOf: createMethod(false)\n};\n","module.exports = {};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar hasOwn = require('../internals/has-own-property');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar indexOf = require('../internals/array-includes').indexOf;\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar push = uncurryThis([].push);\n\nmodule.exports = function (object, names) {\n var O = toIndexedObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (hasOwn(O, key = names[i++])) {\n ~indexOf(result, key) || push(result, key);\n }\n return result;\n};\n","// IE8- don't enum bug keys\nmodule.exports = [\n 'constructor',\n 'hasOwnProperty',\n 'isPrototypeOf',\n 'propertyIsEnumerable',\n 'toLocaleString',\n 'toString',\n 'valueOf'\n];\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\n// `Object.keys` method\n// https://tc39.es/ecma262/#sec-object.keys\n// eslint-disable-next-line es/no-object-keys -- safe\nmodule.exports = Object.keys || function keys(O) {\n return internalObjectKeys(O, enumBugKeys);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar definePropertyModule = require('../internals/object-define-property');\nvar anObject = require('../internals/an-object');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar objectKeys = require('../internals/object-keys');\n\n// `Object.defineProperties` method\n// https://tc39.es/ecma262/#sec-object.defineproperties\n// eslint-disable-next-line es/no-object-defineproperties -- safe\nexports.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var props = toIndexedObject(Properties);\n var keys = objectKeys(Properties);\n var length = keys.length;\n var index = 0;\n var key;\n while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);\n return O;\n};\n","var getBuiltIn = require('../internals/get-built-in');\n\nmodule.exports = getBuiltIn('document', 'documentElement');\n","var shared = require('../internals/shared');\nvar uid = require('../internals/uid');\n\nvar keys = shared('keys');\n\nmodule.exports = function (key) {\n return keys[key] || (keys[key] = uid(key));\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\nvar create = require('../internals/object-create');\nvar defineProperty = require('../internals/object-define-property').f;\n\nvar UNSCOPABLES = wellKnownSymbol('unscopables');\nvar ArrayPrototype = Array.prototype;\n\n// Array.prototype[@@unscopables]\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\nif (ArrayPrototype[UNSCOPABLES] == undefined) {\n defineProperty(ArrayPrototype, UNSCOPABLES, {\n configurable: true,\n value: create(null)\n });\n}\n\n// add a key to Array.prototype[@@unscopables]\nmodule.exports = function (key) {\n ArrayPrototype[UNSCOPABLES][key] = true;\n};\n","var NATIVE_WEAK_MAP = require('../internals/weak-map-basic-detection');\nvar global = require('../internals/global');\nvar isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar hasOwn = require('../internals/has-own-property');\nvar shared = require('../internals/shared-store');\nvar sharedKey = require('../internals/shared-key');\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar OBJECT_ALREADY_INITIALIZED = 'Object already initialized';\nvar TypeError = global.TypeError;\nvar WeakMap = global.WeakMap;\nvar set, get, has;\n\nvar enforce = function (it) {\n return has(it) ? get(it) : set(it, {});\n};\n\nvar getterFor = function (TYPE) {\n return function (it) {\n var state;\n if (!isObject(it) || (state = get(it)).type !== TYPE) {\n throw TypeError('Incompatible receiver, ' + TYPE + ' required');\n } return state;\n };\n};\n\nif (NATIVE_WEAK_MAP || shared.state) {\n var store = shared.state || (shared.state = new WeakMap());\n /* eslint-disable no-self-assign -- prototype methods protection */\n store.get = store.get;\n store.has = store.has;\n store.set = store.set;\n /* eslint-enable no-self-assign -- prototype methods protection */\n set = function (it, metadata) {\n if (store.has(it)) throw TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n store.set(it, metadata);\n return metadata;\n };\n get = function (it) {\n return store.get(it) || {};\n };\n has = function (it) {\n return store.has(it);\n };\n} else {\n var STATE = sharedKey('state');\n hiddenKeys[STATE] = true;\n set = function (it, metadata) {\n if (hasOwn(it, STATE)) throw TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n createNonEnumerableProperty(it, STATE, metadata);\n return metadata;\n };\n get = function (it) {\n return hasOwn(it, STATE) ? it[STATE] : {};\n };\n has = function (it) {\n return hasOwn(it, STATE);\n };\n}\n\nmodule.exports = {\n set: set,\n get: get,\n has: has,\n enforce: enforce,\n getterFor: getterFor\n};\n","module.exports = {};\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar WeakMap = global.WeakMap;\n\nmodule.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));\n","'use strict';\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar create = require('../internals/object-create');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_PURE = require('../internals/is-pure');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar BUGGY_SAFARI_ITERATORS = false;\n\n// `%IteratorPrototype%` object\n// https://tc39.es/ecma262/#sec-%iteratorprototype%-object\nvar IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;\n\n/* eslint-disable es/no-array-prototype-keys -- safe */\nif ([].keys) {\n arrayIterator = [].keys();\n // Safari 8 has buggy iterators w/o `next`\n if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;\n else {\n PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator));\n if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;\n }\n}\n\nvar NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype) || fails(function () {\n var test = {};\n // FF44- legacy iterators case\n return IteratorPrototype[ITERATOR].call(test) !== test;\n});\n\nif (NEW_ITERATOR_PROTOTYPE) IteratorPrototype = {};\nelse if (IS_PURE) IteratorPrototype = create(IteratorPrototype);\n\n// `%IteratorPrototype%[@@iterator]()` method\n// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator\nif (!isCallable(IteratorPrototype[ITERATOR])) {\n defineBuiltIn(IteratorPrototype, ITERATOR, function () {\n return this;\n });\n}\n\nmodule.exports = {\n IteratorPrototype: IteratorPrototype,\n BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS\n};\n","'use strict';\nvar $propertyIsEnumerable = {}.propertyIsEnumerable;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Nashorn ~ JDK8 bug\nvar NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);\n\n// `Object.prototype.propertyIsEnumerable` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable\nexports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {\n var descriptor = getOwnPropertyDescriptor(this, V);\n return !!descriptor && descriptor.enumerable;\n} : $propertyIsEnumerable;\n","var DESCRIPTORS = require('../internals/descriptors');\nvar call = require('../internals/function-call');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPropertyKey = require('../internals/to-property-key');\nvar hasOwn = require('../internals/has-own-property');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\n\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor\nexports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject(O);\n P = toPropertyKey(P);\n if (IE8_DOM_DEFINE) try {\n return $getOwnPropertyDescriptor(O, P);\n } catch (error) { /* empty */ }\n if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar hasOwn = require('../internals/has-own-property');\n\nvar FunctionPrototype = Function.prototype;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;\n\nvar EXISTS = hasOwn(FunctionPrototype, 'name');\n// additional protection from minified / mangled / dropped function names\nvar PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';\nvar CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));\n\nmodule.exports = {\n EXISTS: EXISTS,\n PROPER: PROPER,\n CONFIGURABLE: CONFIGURABLE\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar hasOwn = require('../internals/has-own-property');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar CONFIGURABLE_FUNCTION_NAME = require('../internals/function-name').CONFIGURABLE;\nvar inspectSource = require('../internals/inspect-source');\nvar InternalStateModule = require('../internals/internal-state');\n\nvar enforceInternalState = InternalStateModule.enforce;\nvar getInternalState = InternalStateModule.get;\nvar $String = String;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\nvar stringSlice = uncurryThis(''.slice);\nvar replace = uncurryThis(''.replace);\nvar join = uncurryThis([].join);\n\nvar CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {\n return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;\n});\n\nvar TEMPLATE = String(String).split('String');\n\nvar makeBuiltIn = module.exports = function (value, name, options) {\n if (stringSlice($String(name), 0, 7) === 'Symbol(') {\n name = '[' + replace($String(name), /^Symbol\\(([^)]*)\\)/, '$1') + ']';\n }\n if (options && options.getter) name = 'get ' + name;\n if (options && options.setter) name = 'set ' + name;\n if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {\n if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });\n else value.name = name;\n }\n if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {\n defineProperty(value, 'length', { value: options.arity });\n }\n try {\n if (options && hasOwn(options, 'constructor') && options.constructor) {\n if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });\n // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable\n } else if (value.prototype) value.prototype = undefined;\n } catch (error) { /* empty */ }\n var state = enforceInternalState(value);\n if (!hasOwn(state, 'source')) {\n state.source = join(TEMPLATE, typeof name == 'string' ? name : '');\n } return value;\n};\n\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n// eslint-disable-next-line no-extend-native -- required\nFunction.prototype.toString = makeBuiltIn(function toString() {\n return isCallable(this) && getInternalState(this).source || inspectSource(this);\n}, 'toString');\n","var isCallable = require('../internals/is-callable');\nvar definePropertyModule = require('../internals/object-define-property');\nvar makeBuiltIn = require('../internals/make-built-in');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nmodule.exports = function (O, key, value, options) {\n if (!options) options = {};\n var simple = options.enumerable;\n var name = options.name !== undefined ? options.name : key;\n if (isCallable(value)) makeBuiltIn(value, name, options);\n if (options.global) {\n if (simple) O[key] = value;\n else defineGlobalProperty(key, value);\n } else {\n try {\n if (!options.unsafe) delete O[key];\n else if (O[key]) simple = true;\n } catch (error) { /* empty */ }\n if (simple) O[key] = value;\n else definePropertyModule.f(O, key, {\n value: value,\n enumerable: false,\n configurable: !options.nonConfigurable,\n writable: !options.nonWritable\n });\n } return O;\n};\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\nvar hiddenKeys = enumBugKeys.concat('length', 'prototype');\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.es/ecma262/#sec-object.getownpropertynames\n// eslint-disable-next-line es/no-object-getownpropertynames -- safe\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return internalObjectKeys(O, hiddenKeys);\n};\n","// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe\nexports.f = Object.getOwnPropertySymbols;\n","var getBuiltIn = require('../internals/get-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar anObject = require('../internals/an-object');\n\nvar concat = uncurryThis([].concat);\n\n// all object keys, includes non-enumerable and symbols\nmodule.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {\n var keys = getOwnPropertyNamesModule.f(anObject(it));\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;\n};\n","var hasOwn = require('../internals/has-own-property');\nvar ownKeys = require('../internals/own-keys');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar definePropertyModule = require('../internals/object-define-property');\n\nmodule.exports = function (target, source, exceptions) {\n var keys = ownKeys(source);\n var defineProperty = definePropertyModule.f;\n var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {\n defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n }\n};\n","var fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\n\nvar replacement = /#|\\.prototype\\./;\n\nvar isForced = function (feature, detection) {\n var value = data[normalize(feature)];\n return value == POLYFILL ? true\n : value == NATIVE ? false\n : isCallable(detection) ? fails(detection)\n : !!detection;\n};\n\nvar normalize = isForced.normalize = function (string) {\n return String(string).replace(replacement, '.').toLowerCase();\n};\n\nvar data = isForced.data = {};\nvar NATIVE = isForced.NATIVE = 'N';\nvar POLYFILL = isForced.POLYFILL = 'P';\n\nmodule.exports = isForced;\n","var global = require('../internals/global');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar defineGlobalProperty = require('../internals/define-global-property');\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar isForced = require('../internals/is-forced');\n\n/*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.dontCallGetSet - prevent calling a getter on target\n options.name - the .name of the function if it does not match the key\n*/\nmodule.exports = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var FORCED, target, key, targetProperty, sourceProperty, descriptor;\n if (GLOBAL) {\n target = global;\n } else if (STATIC) {\n target = global[TARGET] || defineGlobalProperty(TARGET, {});\n } else {\n target = (global[TARGET] || {}).prototype;\n }\n if (target) for (key in source) {\n sourceProperty = source[key];\n if (options.dontCallGetSet) {\n descriptor = getOwnPropertyDescriptor(target, key);\n targetProperty = descriptor && descriptor.value;\n } else targetProperty = target[key];\n FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n // contained in target\n if (!FORCED && targetProperty !== undefined) {\n if (typeof sourceProperty == typeof targetProperty) continue;\n copyConstructorProperties(sourceProperty, targetProperty);\n }\n // add a flag to not completely full polyfills\n if (options.sham || (targetProperty && targetProperty.sham)) {\n createNonEnumerableProperty(sourceProperty, 'sham', true);\n }\n defineBuiltIn(target, key, sourceProperty, options);\n }\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n function F() { /* empty */ }\n F.prototype.constructor = null;\n // eslint-disable-next-line es/no-object-getprototypeof -- required for testing\n return Object.getPrototypeOf(new F()) !== F.prototype;\n});\n","var hasOwn = require('../internals/has-own-property');\nvar isCallable = require('../internals/is-callable');\nvar toObject = require('../internals/to-object');\nvar sharedKey = require('../internals/shared-key');\nvar CORRECT_PROTOTYPE_GETTER = require('../internals/correct-prototype-getter');\n\nvar IE_PROTO = sharedKey('IE_PROTO');\nvar $Object = Object;\nvar ObjectPrototype = $Object.prototype;\n\n// `Object.getPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.getprototypeof\n// eslint-disable-next-line es/no-object-getprototypeof -- safe\nmodule.exports = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {\n var object = toObject(O);\n if (hasOwn(object, IE_PROTO)) return object[IE_PROTO];\n var constructor = object.constructor;\n if (isCallable(constructor) && object instanceof constructor) {\n return constructor.prototype;\n } return object instanceof $Object ? ObjectPrototype : null;\n};\n","var defineProperty = require('../internals/object-define-property').f;\nvar hasOwn = require('../internals/has-own-property');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\n\nmodule.exports = function (target, TAG, STATIC) {\n if (target && !STATIC) target = target.prototype;\n if (target && !hasOwn(target, TO_STRING_TAG)) {\n defineProperty(target, TO_STRING_TAG, { configurable: true, value: TAG });\n }\n};\n","'use strict';\nvar IteratorPrototype = require('../internals/iterators-core').IteratorPrototype;\nvar create = require('../internals/object-create');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar Iterators = require('../internals/iterators');\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {\n var TO_STRING_TAG = NAME + ' Iterator';\n IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });\n setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);\n Iterators[TO_STRING_TAG] = returnThis;\n return IteratorConstructor;\n};\n","var isCallable = require('../internals/is-callable');\n\nvar $String = String;\nvar $TypeError = TypeError;\n\nmodule.exports = function (argument) {\n if (typeof argument == 'object' || isCallable(argument)) return argument;\n throw $TypeError(\"Can't set \" + $String(argument) + ' as a prototype');\n};\n","/* eslint-disable no-proto -- safe */\nvar uncurryThisAccessor = require('../internals/function-uncurry-this-accessor');\nvar anObject = require('../internals/an-object');\nvar aPossiblePrototype = require('../internals/a-possible-prototype');\n\n// `Object.setPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.setprototypeof\n// Works with __proto__ only. Old v8 can't work with null proto objects.\n// eslint-disable-next-line es/no-object-setprototypeof -- safe\nmodule.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {\n var CORRECT_SETTER = false;\n var test = {};\n var setter;\n try {\n setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');\n setter(test, []);\n CORRECT_SETTER = test instanceof Array;\n } catch (error) { /* empty */ }\n return function setPrototypeOf(O, proto) {\n anObject(O);\n aPossiblePrototype(proto);\n if (CORRECT_SETTER) setter(O, proto);\n else O.__proto__ = proto;\n return O;\n };\n}() : undefined);\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar aCallable = require('../internals/a-callable');\n\nmodule.exports = function (object, key, method) {\n try {\n // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\n return uncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));\n } catch (error) { /* empty */ }\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar IS_PURE = require('../internals/is-pure');\nvar FunctionName = require('../internals/function-name');\nvar isCallable = require('../internals/is-callable');\nvar createIteratorConstructor = require('../internals/iterator-create-constructor');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar Iterators = require('../internals/iterators');\nvar IteratorsCore = require('../internals/iterators-core');\n\nvar PROPER_FUNCTION_NAME = FunctionName.PROPER;\nvar CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;\nvar IteratorPrototype = IteratorsCore.IteratorPrototype;\nvar BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;\nvar ITERATOR = wellKnownSymbol('iterator');\nvar KEYS = 'keys';\nvar VALUES = 'values';\nvar ENTRIES = 'entries';\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {\n createIteratorConstructor(IteratorConstructor, NAME, next);\n\n var getIterationMethod = function (KIND) {\n if (KIND === DEFAULT && defaultIterator) return defaultIterator;\n if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];\n switch (KIND) {\n case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };\n case VALUES: return function values() { return new IteratorConstructor(this, KIND); };\n case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };\n } return function () { return new IteratorConstructor(this); };\n };\n\n var TO_STRING_TAG = NAME + ' Iterator';\n var INCORRECT_VALUES_NAME = false;\n var IterablePrototype = Iterable.prototype;\n var nativeIterator = IterablePrototype[ITERATOR]\n || IterablePrototype['@@iterator']\n || DEFAULT && IterablePrototype[DEFAULT];\n var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);\n var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;\n var CurrentIteratorPrototype, methods, KEY;\n\n // fix native\n if (anyNativeIterator) {\n CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));\n if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {\n if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {\n if (setPrototypeOf) {\n setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);\n } else if (!isCallable(CurrentIteratorPrototype[ITERATOR])) {\n defineBuiltIn(CurrentIteratorPrototype, ITERATOR, returnThis);\n }\n }\n // Set @@toStringTag to native iterators\n setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true);\n if (IS_PURE) Iterators[TO_STRING_TAG] = returnThis;\n }\n }\n\n // fix Array.prototype.{ values, @@iterator }.name in V8 / FF\n if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {\n if (!IS_PURE && CONFIGURABLE_FUNCTION_NAME) {\n createNonEnumerableProperty(IterablePrototype, 'name', VALUES);\n } else {\n INCORRECT_VALUES_NAME = true;\n defaultIterator = function values() { return call(nativeIterator, this); };\n }\n }\n\n // export additional methods\n if (DEFAULT) {\n methods = {\n values: getIterationMethod(VALUES),\n keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),\n entries: getIterationMethod(ENTRIES)\n };\n if (FORCED) for (KEY in methods) {\n if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {\n defineBuiltIn(IterablePrototype, KEY, methods[KEY]);\n }\n } else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);\n }\n\n // define iterator\n if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) {\n defineBuiltIn(IterablePrototype, ITERATOR, defaultIterator, { name: DEFAULT });\n }\n Iterators[NAME] = defaultIterator;\n\n return methods;\n};\n","// `CreateIterResultObject` abstract operation\n// https://tc39.es/ecma262/#sec-createiterresultobject\nmodule.exports = function (value, done) {\n return { value: value, done: done };\n};\n","'use strict';\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar addToUnscopables = require('../internals/add-to-unscopables');\nvar Iterators = require('../internals/iterators');\nvar InternalStateModule = require('../internals/internal-state');\nvar defineProperty = require('../internals/object-define-property').f;\nvar defineIterator = require('../internals/iterator-define');\nvar createIterResultObject = require('../internals/create-iter-result-object');\nvar IS_PURE = require('../internals/is-pure');\nvar DESCRIPTORS = require('../internals/descriptors');\n\nvar ARRAY_ITERATOR = 'Array Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);\n\n// `Array.prototype.entries` method\n// https://tc39.es/ecma262/#sec-array.prototype.entries\n// `Array.prototype.keys` method\n// https://tc39.es/ecma262/#sec-array.prototype.keys\n// `Array.prototype.values` method\n// https://tc39.es/ecma262/#sec-array.prototype.values\n// `Array.prototype[@@iterator]` method\n// https://tc39.es/ecma262/#sec-array.prototype-@@iterator\n// `CreateArrayIterator` internal method\n// https://tc39.es/ecma262/#sec-createarrayiterator\nmodule.exports = defineIterator(Array, 'Array', function (iterated, kind) {\n setInternalState(this, {\n type: ARRAY_ITERATOR,\n target: toIndexedObject(iterated), // target\n index: 0, // next index\n kind: kind // kind\n });\n// `%ArrayIteratorPrototype%.next` method\n// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next\n}, function () {\n var state = getInternalState(this);\n var target = state.target;\n var kind = state.kind;\n var index = state.index++;\n if (!target || index >= target.length) {\n state.target = undefined;\n return createIterResultObject(undefined, true);\n }\n if (kind == 'keys') return createIterResultObject(index, false);\n if (kind == 'values') return createIterResultObject(target[index], false);\n return createIterResultObject([index, target[index]], false);\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values%\n// https://tc39.es/ecma262/#sec-createunmappedargumentsobject\n// https://tc39.es/ecma262/#sec-createmappedargumentsobject\nvar values = Iterators.Arguments = Iterators.Array;\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n\n// V8 ~ Chrome 45- bug\nif (!IS_PURE && DESCRIPTORS && values.name !== 'values') try {\n defineProperty(values, 'name', { value: 'values' });\n} catch (error) { /* empty */ }\n","var global = require('../internals/global');\nvar DOMIterables = require('../internals/dom-iterables');\nvar DOMTokenListPrototype = require('../internals/dom-token-list-prototype');\nvar ArrayIteratorMethods = require('../modules/es.array.iterator');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar ArrayValues = ArrayIteratorMethods.values;\n\nvar handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {\n if (CollectionPrototype) {\n // some Chrome versions have non-configurable methods on DOMTokenList\n if (CollectionPrototype[ITERATOR] !== ArrayValues) try {\n createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);\n } catch (error) {\n CollectionPrototype[ITERATOR] = ArrayValues;\n }\n if (!CollectionPrototype[TO_STRING_TAG]) {\n createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);\n }\n if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {\n // some Chrome versions have non-configurable methods on DOMTokenList\n if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {\n createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);\n } catch (error) {\n CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];\n }\n }\n }\n};\n\nfor (var COLLECTION_NAME in DOMIterables) {\n handlePrototype(global[COLLECTION_NAME] && global[COLLECTION_NAME].prototype, COLLECTION_NAME);\n}\n\nhandlePrototype(DOMTokenListPrototype, 'DOMTokenList');\n","var global = require('../internals/global');\n\nmodule.exports = global;\n","'use strict';\n/* eslint-disable es/no-array-prototype-indexof -- required for testing */\nvar $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this-clause');\nvar $indexOf = require('../internals/array-includes').indexOf;\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\n\nvar nativeIndexOf = uncurryThis([].indexOf);\n\nvar NEGATIVE_ZERO = !!nativeIndexOf && 1 / nativeIndexOf([1], 1, -0) < 0;\nvar FORCED = NEGATIVE_ZERO || !arrayMethodIsStrict('indexOf');\n\n// `Array.prototype.indexOf` method\n// https://tc39.es/ecma262/#sec-array.prototype.indexof\n$({ target: 'Array', proto: true, forced: FORCED }, {\n indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {\n var fromIndex = arguments.length > 1 ? arguments[1] : undefined;\n return NEGATIVE_ZERO\n // convert -0 to +0\n ? nativeIndexOf(this, searchElement, fromIndex) || 0\n : $indexOf(this, searchElement, fromIndex);\n }\n});\n","var $TypeError = TypeError;\nvar MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991\n\nmodule.exports = function (it) {\n if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');\n return it;\n};\n","'use strict';\nvar toPropertyKey = require('../internals/to-property-key');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = function (object, key, value) {\n var propertyKey = toPropertyKey(key);\n if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));\n else object[propertyKey] = value;\n};\n","var fails = require('../internals/fails');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar V8_VERSION = require('../internals/engine-v8-version');\n\nvar SPECIES = wellKnownSymbol('species');\n\nmodule.exports = function (METHOD_NAME) {\n // We can't use this feature detection in V8 since it causes\n // deoptimization and serious performance degradation\n // https://github.com/zloirock/core-js/issues/677\n return V8_VERSION >= 51 || !fails(function () {\n var array = [];\n var constructor = array.constructor = {};\n constructor[SPECIES] = function () {\n return { foo: 1 };\n };\n return array[METHOD_NAME](Boolean).foo !== 1;\n });\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar fails = require('../internals/fails');\nvar isArray = require('../internals/is-array');\nvar isObject = require('../internals/is-object');\nvar toObject = require('../internals/to-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar doesNotExceedSafeInteger = require('../internals/does-not-exceed-safe-integer');\nvar createProperty = require('../internals/create-property');\nvar arraySpeciesCreate = require('../internals/array-species-create');\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar V8_VERSION = require('../internals/engine-v8-version');\n\nvar IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');\n\n// We can't use this feature detection in V8 since it causes\n// deoptimization and serious performance degradation\n// https://github.com/zloirock/core-js/issues/679\nvar IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () {\n var array = [];\n array[IS_CONCAT_SPREADABLE] = false;\n return array.concat()[0] !== array;\n});\n\nvar isConcatSpreadable = function (O) {\n if (!isObject(O)) return false;\n var spreadable = O[IS_CONCAT_SPREADABLE];\n return spreadable !== undefined ? !!spreadable : isArray(O);\n};\n\nvar FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport('concat');\n\n// `Array.prototype.concat` method\n// https://tc39.es/ecma262/#sec-array.prototype.concat\n// with adding support of @@isConcatSpreadable and @@species\n$({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n concat: function concat(arg) {\n var O = toObject(this);\n var A = arraySpeciesCreate(O, 0);\n var n = 0;\n var i, k, length, len, E;\n for (i = -1, length = arguments.length; i < length; i++) {\n E = i === -1 ? O : arguments[i];\n if (isConcatSpreadable(E)) {\n len = lengthOfArrayLike(E);\n doesNotExceedSafeInteger(n + len);\n for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);\n } else {\n doesNotExceedSafeInteger(n + 1);\n createProperty(A, n++, E);\n }\n }\n A.length = n;\n return A;\n }\n});\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar call = require('../internals/function-call');\nvar fails = require('../internals/fails');\nvar objectKeys = require('../internals/object-keys');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar toObject = require('../internals/to-object');\nvar IndexedObject = require('../internals/indexed-object');\n\n// eslint-disable-next-line es/no-object-assign -- safe\nvar $assign = Object.assign;\n// eslint-disable-next-line es/no-object-defineproperty -- required for testing\nvar defineProperty = Object.defineProperty;\nvar concat = uncurryThis([].concat);\n\n// `Object.assign` method\n// https://tc39.es/ecma262/#sec-object.assign\nmodule.exports = !$assign || fails(function () {\n // should have correct order of operations (Edge bug)\n if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {\n enumerable: true,\n get: function () {\n defineProperty(this, 'b', {\n value: 3,\n enumerable: false\n });\n }\n }), { b: 2 })).b !== 1) return true;\n // should work with symbols and should have deterministic property order (V8 bug)\n var A = {};\n var B = {};\n // eslint-disable-next-line es/no-symbol -- safe\n var symbol = Symbol();\n var alphabet = 'abcdefghijklmnopqrst';\n A[symbol] = 7;\n alphabet.split('').forEach(function (chr) { B[chr] = chr; });\n return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;\n}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`\n var T = toObject(target);\n var argumentsLength = arguments.length;\n var index = 1;\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n var propertyIsEnumerable = propertyIsEnumerableModule.f;\n while (argumentsLength > index) {\n var S = IndexedObject(arguments[index++]);\n var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) {\n key = keys[j++];\n if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key];\n }\n } return T;\n} : $assign;\n","var $ = require('../internals/export');\nvar assign = require('../internals/object-assign');\n\n// `Object.assign` method\n// https://tc39.es/ecma262/#sec-object.assign\n// eslint-disable-next-line es/no-object-assign -- required for testing\n$({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {\n assign: assign\n});\n","'use strict';\nvar TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar classof = require('../internals/classof');\n\n// `Object.prototype.toString` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.tostring\nmodule.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {\n return '[object ' + classof(this) + ']';\n};\n","var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar toString = require('../internals/object-to-string');\n\n// `Object.prototype.toString` method\n// https://tc39.es/ecma262/#sec-object.prototype.tostring\nif (!TO_STRING_TAG_SUPPORT) {\n defineBuiltIn(Object.prototype, 'toString', toString, { unsafe: true });\n}\n","var classof = require('../internals/classof-raw');\n\nmodule.exports = typeof process != 'undefined' && classof(process) == 'process';\n","var global = require('../internals/global');\nvar apply = require('../internals/function-apply');\nvar bind = require('../internals/function-bind-context');\nvar isCallable = require('../internals/is-callable');\nvar hasOwn = require('../internals/has-own-property');\nvar fails = require('../internals/fails');\nvar html = require('../internals/html');\nvar arraySlice = require('../internals/array-slice');\nvar createElement = require('../internals/document-create-element');\nvar validateArgumentsLength = require('../internals/validate-arguments-length');\nvar IS_IOS = require('../internals/engine-is-ios');\nvar IS_NODE = require('../internals/engine-is-node');\n\nvar set = global.setImmediate;\nvar clear = global.clearImmediate;\nvar process = global.process;\nvar Dispatch = global.Dispatch;\nvar Function = global.Function;\nvar MessageChannel = global.MessageChannel;\nvar String = global.String;\nvar counter = 0;\nvar queue = {};\nvar ONREADYSTATECHANGE = 'onreadystatechange';\nvar $location, defer, channel, port;\n\nfails(function () {\n // Deno throws a ReferenceError on `location` access without `--location` flag\n $location = global.location;\n});\n\nvar run = function (id) {\n if (hasOwn(queue, id)) {\n var fn = queue[id];\n delete queue[id];\n fn();\n }\n};\n\nvar runner = function (id) {\n return function () {\n run(id);\n };\n};\n\nvar eventListener = function (event) {\n run(event.data);\n};\n\nvar globalPostMessageDefer = function (id) {\n // old engines have not location.origin\n global.postMessage(String(id), $location.protocol + '//' + $location.host);\n};\n\n// Node.js 0.9+ & IE10+ has setImmediate, otherwise:\nif (!set || !clear) {\n set = function setImmediate(handler) {\n validateArgumentsLength(arguments.length, 1);\n var fn = isCallable(handler) ? handler : Function(handler);\n var args = arraySlice(arguments, 1);\n queue[++counter] = function () {\n apply(fn, undefined, args);\n };\n defer(counter);\n return counter;\n };\n clear = function clearImmediate(id) {\n delete queue[id];\n };\n // Node.js 0.8-\n if (IS_NODE) {\n defer = function (id) {\n process.nextTick(runner(id));\n };\n // Sphere (JS game engine) Dispatch API\n } else if (Dispatch && Dispatch.now) {\n defer = function (id) {\n Dispatch.now(runner(id));\n };\n // Browsers with MessageChannel, includes WebWorkers\n // except iOS - https://github.com/zloirock/core-js/issues/624\n } else if (MessageChannel && !IS_IOS) {\n channel = new MessageChannel();\n port = channel.port2;\n channel.port1.onmessage = eventListener;\n defer = bind(port.postMessage, port);\n // Browsers with postMessage, skip WebWorkers\n // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'\n } else if (\n global.addEventListener &&\n isCallable(global.postMessage) &&\n !global.importScripts &&\n $location && $location.protocol !== 'file:' &&\n !fails(globalPostMessageDefer)\n ) {\n defer = globalPostMessageDefer;\n global.addEventListener('message', eventListener, false);\n // IE8-\n } else if (ONREADYSTATECHANGE in createElement('script')) {\n defer = function (id) {\n html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {\n html.removeChild(this);\n run(id);\n };\n };\n // Rest old browsers\n } else {\n defer = function (id) {\n setTimeout(runner(id), 0);\n };\n }\n}\n\nmodule.exports = {\n set: set,\n clear: clear\n};\n","var makeBuiltIn = require('../internals/make-built-in');\nvar defineProperty = require('../internals/object-define-property');\n\nmodule.exports = function (target, name, descriptor) {\n if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });\n if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });\n return defineProperty.f(target, name, descriptor);\n};\n","'use strict';\nvar getBuiltIn = require('../internals/get-built-in');\nvar defineBuiltInAccessor = require('../internals/define-built-in-accessor');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar DESCRIPTORS = require('../internals/descriptors');\n\nvar SPECIES = wellKnownSymbol('species');\n\nmodule.exports = function (CONSTRUCTOR_NAME) {\n var Constructor = getBuiltIn(CONSTRUCTOR_NAME);\n\n if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) {\n defineBuiltInAccessor(Constructor, SPECIES, {\n configurable: true,\n get: function () { return this; }\n });\n }\n};\n","var isPrototypeOf = require('../internals/object-is-prototype-of');\n\nvar $TypeError = TypeError;\n\nmodule.exports = function (it, Prototype) {\n if (isPrototypeOf(Prototype, it)) return it;\n throw $TypeError('Incorrect invocation');\n};\n","var isConstructor = require('../internals/is-constructor');\nvar tryToString = require('../internals/try-to-string');\n\nvar $TypeError = TypeError;\n\n// `Assert: IsConstructor(argument) is true`\nmodule.exports = function (argument) {\n if (isConstructor(argument)) return argument;\n throw $TypeError(tryToString(argument) + ' is not a constructor');\n};\n","var anObject = require('../internals/an-object');\nvar aConstructor = require('../internals/a-constructor');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar SPECIES = wellKnownSymbol('species');\n\n// `SpeciesConstructor` abstract operation\n// https://tc39.es/ecma262/#sec-speciesconstructor\nmodule.exports = function (O, defaultConstructor) {\n var C = anObject(O).constructor;\n var S;\n return C === undefined || isNullOrUndefined(S = anObject(C)[SPECIES]) ? defaultConstructor : aConstructor(S);\n};\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar apply = FunctionPrototype.apply;\nvar call = FunctionPrototype.call;\n\n// eslint-disable-next-line es/no-reflect -- safe\nmodule.exports = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function () {\n return call.apply(apply, arguments);\n});\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = uncurryThis([].slice);\n","var $TypeError = TypeError;\n\nmodule.exports = function (passed, required) {\n if (passed < required) throw $TypeError('Not enough arguments');\n return passed;\n};\n","var userAgent = require('../internals/engine-user-agent');\n\n// eslint-disable-next-line redos/no-vulnerable -- safe\nmodule.exports = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent);\n","var Queue = function () {\n this.head = null;\n this.tail = null;\n};\n\nQueue.prototype = {\n add: function (item) {\n var entry = { item: item, next: null };\n var tail = this.tail;\n if (tail) tail.next = entry;\n else this.head = entry;\n this.tail = entry;\n },\n get: function () {\n var entry = this.head;\n if (entry) {\n var next = this.head = entry.next;\n if (next === null) this.tail = null;\n return entry.item;\n }\n }\n};\n\nmodule.exports = Queue;\n","var global = require('../internals/global');\nvar bind = require('../internals/function-bind-context');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar macrotask = require('../internals/task').set;\nvar Queue = require('../internals/queue');\nvar IS_IOS = require('../internals/engine-is-ios');\nvar IS_IOS_PEBBLE = require('../internals/engine-is-ios-pebble');\nvar IS_WEBOS_WEBKIT = require('../internals/engine-is-webos-webkit');\nvar IS_NODE = require('../internals/engine-is-node');\n\nvar MutationObserver = global.MutationObserver || global.WebKitMutationObserver;\nvar document = global.document;\nvar process = global.process;\nvar Promise = global.Promise;\n// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`\nvar queueMicrotaskDescriptor = getOwnPropertyDescriptor(global, 'queueMicrotask');\nvar microtask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;\nvar notify, toggle, node, promise, then;\n\n// modern engines have queueMicrotask method\nif (!microtask) {\n var queue = new Queue();\n\n var flush = function () {\n var parent, fn;\n if (IS_NODE && (parent = process.domain)) parent.exit();\n while (fn = queue.get()) try {\n fn();\n } catch (error) {\n if (queue.head) notify();\n throw error;\n }\n if (parent) parent.enter();\n };\n\n // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339\n // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898\n if (!IS_IOS && !IS_NODE && !IS_WEBOS_WEBKIT && MutationObserver && document) {\n toggle = true;\n node = document.createTextNode('');\n new MutationObserver(flush).observe(node, { characterData: true });\n notify = function () {\n node.data = toggle = !toggle;\n };\n // environments with maybe non-completely correct, but existent Promise\n } else if (!IS_IOS_PEBBLE && Promise && Promise.resolve) {\n // Promise.resolve without an argument throws an error in LG WebOS 2\n promise = Promise.resolve(undefined);\n // workaround of WebKit ~ iOS Safari 10.1 bug\n promise.constructor = Promise;\n then = bind(promise.then, promise);\n notify = function () {\n then(flush);\n };\n // Node.js without promises\n } else if (IS_NODE) {\n notify = function () {\n process.nextTick(flush);\n };\n // for other environments - macrotask based on:\n // - setImmediate\n // - MessageChannel\n // - window.postMessage\n // - onreadystatechange\n // - setTimeout\n } else {\n // `webpack` dev server bug on IE global methods - use bind(fn, global)\n macrotask = bind(macrotask, global);\n notify = function () {\n macrotask(flush);\n };\n }\n\n microtask = function (fn) {\n if (!queue.head) notify();\n queue.add(fn);\n };\n}\n\nmodule.exports = microtask;\n","var userAgent = require('../internals/engine-user-agent');\n\nmodule.exports = /ipad|iphone|ipod/i.test(userAgent) && typeof Pebble != 'undefined';\n","var userAgent = require('../internals/engine-user-agent');\n\nmodule.exports = /web0s(?!.*chrome)/i.test(userAgent);\n","module.exports = function (exec) {\n try {\n return { error: false, value: exec() };\n } catch (error) {\n return { error: true, value: error };\n }\n};\n","var global = require('../internals/global');\n\nmodule.exports = global.Promise;\n","/* global Deno -- Deno case */\nmodule.exports = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';\n","var IS_DENO = require('../internals/engine-is-deno');\nvar IS_NODE = require('../internals/engine-is-node');\n\nmodule.exports = !IS_DENO && !IS_NODE\n && typeof window == 'object'\n && typeof document == 'object';\n","var global = require('../internals/global');\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar isCallable = require('../internals/is-callable');\nvar isForced = require('../internals/is-forced');\nvar inspectSource = require('../internals/inspect-source');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_BROWSER = require('../internals/engine-is-browser');\nvar IS_DENO = require('../internals/engine-is-deno');\nvar IS_PURE = require('../internals/is-pure');\nvar V8_VERSION = require('../internals/engine-v8-version');\n\nvar NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;\nvar SPECIES = wellKnownSymbol('species');\nvar SUBCLASSING = false;\nvar NATIVE_PROMISE_REJECTION_EVENT = isCallable(global.PromiseRejectionEvent);\n\nvar FORCED_PROMISE_CONSTRUCTOR = isForced('Promise', function () {\n var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor);\n var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor);\n // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables\n // https://bugs.chromium.org/p/chromium/issues/detail?id=830565\n // We can't detect it synchronously, so just check versions\n if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;\n // We need Promise#{ catch, finally } in the pure version for preventing prototype pollution\n if (IS_PURE && !(NativePromisePrototype['catch'] && NativePromisePrototype['finally'])) return true;\n // We can't use @@species feature detection in V8 since it causes\n // deoptimization and performance degradation\n // https://github.com/zloirock/core-js/issues/679\n if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {\n // Detect correctness of subclassing with @@species support\n var promise = new NativePromiseConstructor(function (resolve) { resolve(1); });\n var FakePromise = function (exec) {\n exec(function () { /* empty */ }, function () { /* empty */ });\n };\n var constructor = promise.constructor = {};\n constructor[SPECIES] = FakePromise;\n SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;\n if (!SUBCLASSING) return true;\n // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test\n } return !GLOBAL_CORE_JS_PROMISE && (IS_BROWSER || IS_DENO) && !NATIVE_PROMISE_REJECTION_EVENT;\n});\n\nmodule.exports = {\n CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR,\n REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT,\n SUBCLASSING: SUBCLASSING\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar IS_NODE = require('../internals/engine-is-node');\nvar global = require('../internals/global');\nvar call = require('../internals/function-call');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar setSpecies = require('../internals/set-species');\nvar aCallable = require('../internals/a-callable');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar anInstance = require('../internals/an-instance');\nvar speciesConstructor = require('../internals/species-constructor');\nvar task = require('../internals/task').set;\nvar microtask = require('../internals/microtask');\nvar hostReportErrors = require('../internals/host-report-errors');\nvar perform = require('../internals/perform');\nvar Queue = require('../internals/queue');\nvar InternalStateModule = require('../internals/internal-state');\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar PromiseConstructorDetection = require('../internals/promise-constructor-detection');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\n\nvar PROMISE = 'Promise';\nvar FORCED_PROMISE_CONSTRUCTOR = PromiseConstructorDetection.CONSTRUCTOR;\nvar NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT;\nvar NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING;\nvar getInternalPromiseState = InternalStateModule.getterFor(PROMISE);\nvar setInternalState = InternalStateModule.set;\nvar NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;\nvar PromiseConstructor = NativePromiseConstructor;\nvar PromisePrototype = NativePromisePrototype;\nvar TypeError = global.TypeError;\nvar document = global.document;\nvar process = global.process;\nvar newPromiseCapability = newPromiseCapabilityModule.f;\nvar newGenericPromiseCapability = newPromiseCapability;\n\nvar DISPATCH_EVENT = !!(document && document.createEvent && global.dispatchEvent);\nvar UNHANDLED_REJECTION = 'unhandledrejection';\nvar REJECTION_HANDLED = 'rejectionhandled';\nvar PENDING = 0;\nvar FULFILLED = 1;\nvar REJECTED = 2;\nvar HANDLED = 1;\nvar UNHANDLED = 2;\n\nvar Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;\n\n// helpers\nvar isThenable = function (it) {\n var then;\n return isObject(it) && isCallable(then = it.then) ? then : false;\n};\n\nvar callReaction = function (reaction, state) {\n var value = state.value;\n var ok = state.state == FULFILLED;\n var handler = ok ? reaction.ok : reaction.fail;\n var resolve = reaction.resolve;\n var reject = reaction.reject;\n var domain = reaction.domain;\n var result, then, exited;\n try {\n if (handler) {\n if (!ok) {\n if (state.rejection === UNHANDLED) onHandleUnhandled(state);\n state.rejection = HANDLED;\n }\n if (handler === true) result = value;\n else {\n if (domain) domain.enter();\n result = handler(value); // can throw\n if (domain) {\n domain.exit();\n exited = true;\n }\n }\n if (result === reaction.promise) {\n reject(TypeError('Promise-chain cycle'));\n } else if (then = isThenable(result)) {\n call(then, result, resolve, reject);\n } else resolve(result);\n } else reject(value);\n } catch (error) {\n if (domain && !exited) domain.exit();\n reject(error);\n }\n};\n\nvar notify = function (state, isReject) {\n if (state.notified) return;\n state.notified = true;\n microtask(function () {\n var reactions = state.reactions;\n var reaction;\n while (reaction = reactions.get()) {\n callReaction(reaction, state);\n }\n state.notified = false;\n if (isReject && !state.rejection) onUnhandled(state);\n });\n};\n\nvar dispatchEvent = function (name, promise, reason) {\n var event, handler;\n if (DISPATCH_EVENT) {\n event = document.createEvent('Event');\n event.promise = promise;\n event.reason = reason;\n event.initEvent(name, false, true);\n global.dispatchEvent(event);\n } else event = { promise: promise, reason: reason };\n if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global['on' + name])) handler(event);\n else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);\n};\n\nvar onUnhandled = function (state) {\n call(task, global, function () {\n var promise = state.facade;\n var value = state.value;\n var IS_UNHANDLED = isUnhandled(state);\n var result;\n if (IS_UNHANDLED) {\n result = perform(function () {\n if (IS_NODE) {\n process.emit('unhandledRejection', value, promise);\n } else dispatchEvent(UNHANDLED_REJECTION, promise, value);\n });\n // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should\n state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;\n if (result.error) throw result.value;\n }\n });\n};\n\nvar isUnhandled = function (state) {\n return state.rejection !== HANDLED && !state.parent;\n};\n\nvar onHandleUnhandled = function (state) {\n call(task, global, function () {\n var promise = state.facade;\n if (IS_NODE) {\n process.emit('rejectionHandled', promise);\n } else dispatchEvent(REJECTION_HANDLED, promise, state.value);\n });\n};\n\nvar bind = function (fn, state, unwrap) {\n return function (value) {\n fn(state, value, unwrap);\n };\n};\n\nvar internalReject = function (state, value, unwrap) {\n if (state.done) return;\n state.done = true;\n if (unwrap) state = unwrap;\n state.value = value;\n state.state = REJECTED;\n notify(state, true);\n};\n\nvar internalResolve = function (state, value, unwrap) {\n if (state.done) return;\n state.done = true;\n if (unwrap) state = unwrap;\n try {\n if (state.facade === value) throw TypeError(\"Promise can't be resolved itself\");\n var then = isThenable(value);\n if (then) {\n microtask(function () {\n var wrapper = { done: false };\n try {\n call(then, value,\n bind(internalResolve, wrapper, state),\n bind(internalReject, wrapper, state)\n );\n } catch (error) {\n internalReject(wrapper, error, state);\n }\n });\n } else {\n state.value = value;\n state.state = FULFILLED;\n notify(state, false);\n }\n } catch (error) {\n internalReject({ done: false }, error, state);\n }\n};\n\n// constructor polyfill\nif (FORCED_PROMISE_CONSTRUCTOR) {\n // 25.4.3.1 Promise(executor)\n PromiseConstructor = function Promise(executor) {\n anInstance(this, PromisePrototype);\n aCallable(executor);\n call(Internal, this);\n var state = getInternalPromiseState(this);\n try {\n executor(bind(internalResolve, state), bind(internalReject, state));\n } catch (error) {\n internalReject(state, error);\n }\n };\n\n PromisePrototype = PromiseConstructor.prototype;\n\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n Internal = function Promise(executor) {\n setInternalState(this, {\n type: PROMISE,\n done: false,\n notified: false,\n parent: false,\n reactions: new Queue(),\n rejection: false,\n state: PENDING,\n value: undefined\n });\n };\n\n // `Promise.prototype.then` method\n // https://tc39.es/ecma262/#sec-promise.prototype.then\n Internal.prototype = defineBuiltIn(PromisePrototype, 'then', function then(onFulfilled, onRejected) {\n var state = getInternalPromiseState(this);\n var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));\n state.parent = true;\n reaction.ok = isCallable(onFulfilled) ? onFulfilled : true;\n reaction.fail = isCallable(onRejected) && onRejected;\n reaction.domain = IS_NODE ? process.domain : undefined;\n if (state.state == PENDING) state.reactions.add(reaction);\n else microtask(function () {\n callReaction(reaction, state);\n });\n return reaction.promise;\n });\n\n OwnPromiseCapability = function () {\n var promise = new Internal();\n var state = getInternalPromiseState(promise);\n this.promise = promise;\n this.resolve = bind(internalResolve, state);\n this.reject = bind(internalReject, state);\n };\n\n newPromiseCapabilityModule.f = newPromiseCapability = function (C) {\n return C === PromiseConstructor || C === PromiseWrapper\n ? new OwnPromiseCapability(C)\n : newGenericPromiseCapability(C);\n };\n\n if (!IS_PURE && isCallable(NativePromiseConstructor) && NativePromisePrototype !== Object.prototype) {\n nativeThen = NativePromisePrototype.then;\n\n if (!NATIVE_PROMISE_SUBCLASSING) {\n // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs\n defineBuiltIn(NativePromisePrototype, 'then', function then(onFulfilled, onRejected) {\n var that = this;\n return new PromiseConstructor(function (resolve, reject) {\n call(nativeThen, that, resolve, reject);\n }).then(onFulfilled, onRejected);\n // https://github.com/zloirock/core-js/issues/640\n }, { unsafe: true });\n }\n\n // make `.constructor === Promise` work for native promise-based APIs\n try {\n delete NativePromisePrototype.constructor;\n } catch (error) { /* empty */ }\n\n // make `instanceof Promise` work for native promise-based APIs\n if (setPrototypeOf) {\n setPrototypeOf(NativePromisePrototype, PromisePrototype);\n }\n }\n}\n\n$({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {\n Promise: PromiseConstructor\n});\n\nsetToStringTag(PromiseConstructor, PROMISE, false, true);\nsetSpecies(PROMISE);\n","'use strict';\nvar aCallable = require('../internals/a-callable');\n\nvar $TypeError = TypeError;\n\nvar PromiseCapability = function (C) {\n var resolve, reject;\n this.promise = new C(function ($$resolve, $$reject) {\n if (resolve !== undefined || reject !== undefined) throw $TypeError('Bad Promise constructor');\n resolve = $$resolve;\n reject = $$reject;\n });\n this.resolve = aCallable(resolve);\n this.reject = aCallable(reject);\n};\n\n// `NewPromiseCapability` abstract operation\n// https://tc39.es/ecma262/#sec-newpromisecapability\nmodule.exports.f = function (C) {\n return new PromiseCapability(C);\n};\n","module.exports = function (a, b) {\n try {\n // eslint-disable-next-line no-console -- safe\n arguments.length == 1 ? console.error(a) : console.error(a, b);\n } catch (error) { /* empty */ }\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\nvar Iterators = require('../internals/iterators');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar ArrayPrototype = Array.prototype;\n\n// check on default Array iterator\nmodule.exports = function (it) {\n return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it);\n};\n","var classof = require('../internals/classof');\nvar getMethod = require('../internals/get-method');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar Iterators = require('../internals/iterators');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\n\nmodule.exports = function (it) {\n if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR)\n || getMethod(it, '@@iterator')\n || Iterators[classof(it)];\n};\n","var call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar anObject = require('../internals/an-object');\nvar tryToString = require('../internals/try-to-string');\nvar getIteratorMethod = require('../internals/get-iterator-method');\n\nvar $TypeError = TypeError;\n\nmodule.exports = function (argument, usingIterator) {\n var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator;\n if (aCallable(iteratorMethod)) return anObject(call(iteratorMethod, argument));\n throw $TypeError(tryToString(argument) + ' is not iterable');\n};\n","var call = require('../internals/function-call');\nvar anObject = require('../internals/an-object');\nvar getMethod = require('../internals/get-method');\n\nmodule.exports = function (iterator, kind, value) {\n var innerResult, innerError;\n anObject(iterator);\n try {\n innerResult = getMethod(iterator, 'return');\n if (!innerResult) {\n if (kind === 'throw') throw value;\n return value;\n }\n innerResult = call(innerResult, iterator);\n } catch (error) {\n innerError = true;\n innerResult = error;\n }\n if (kind === 'throw') throw value;\n if (innerError) throw innerResult;\n anObject(innerResult);\n return value;\n};\n","var bind = require('../internals/function-bind-context');\nvar call = require('../internals/function-call');\nvar anObject = require('../internals/an-object');\nvar tryToString = require('../internals/try-to-string');\nvar isArrayIteratorMethod = require('../internals/is-array-iterator-method');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar getIterator = require('../internals/get-iterator');\nvar getIteratorMethod = require('../internals/get-iterator-method');\nvar iteratorClose = require('../internals/iterator-close');\n\nvar $TypeError = TypeError;\n\nvar Result = function (stopped, result) {\n this.stopped = stopped;\n this.result = result;\n};\n\nvar ResultPrototype = Result.prototype;\n\nmodule.exports = function (iterable, unboundFunction, options) {\n var that = options && options.that;\n var AS_ENTRIES = !!(options && options.AS_ENTRIES);\n var IS_RECORD = !!(options && options.IS_RECORD);\n var IS_ITERATOR = !!(options && options.IS_ITERATOR);\n var INTERRUPTED = !!(options && options.INTERRUPTED);\n var fn = bind(unboundFunction, that);\n var iterator, iterFn, index, length, result, next, step;\n\n var stop = function (condition) {\n if (iterator) iteratorClose(iterator, 'normal', condition);\n return new Result(true, condition);\n };\n\n var callFn = function (value) {\n if (AS_ENTRIES) {\n anObject(value);\n return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);\n } return INTERRUPTED ? fn(value, stop) : fn(value);\n };\n\n if (IS_RECORD) {\n iterator = iterable.iterator;\n } else if (IS_ITERATOR) {\n iterator = iterable;\n } else {\n iterFn = getIteratorMethod(iterable);\n if (!iterFn) throw $TypeError(tryToString(iterable) + ' is not iterable');\n // optimisation for array iterators\n if (isArrayIteratorMethod(iterFn)) {\n for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {\n result = callFn(iterable[index]);\n if (result && isPrototypeOf(ResultPrototype, result)) return result;\n } return new Result(false);\n }\n iterator = getIterator(iterable, iterFn);\n }\n\n next = IS_RECORD ? iterable.next : iterator.next;\n while (!(step = call(next, iterator)).done) {\n try {\n result = callFn(step.value);\n } catch (error) {\n iteratorClose(iterator, 'throw', error);\n }\n if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;\n } return new Result(false);\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar SAFE_CLOSING = false;\n\ntry {\n var called = 0;\n var iteratorWithReturn = {\n next: function () {\n return { done: !!called++ };\n },\n 'return': function () {\n SAFE_CLOSING = true;\n }\n };\n iteratorWithReturn[ITERATOR] = function () {\n return this;\n };\n // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing\n Array.from(iteratorWithReturn, function () { throw 2; });\n} catch (error) { /* empty */ }\n\nmodule.exports = function (exec, SKIP_CLOSING) {\n if (!SKIP_CLOSING && !SAFE_CLOSING) return false;\n var ITERATION_SUPPORT = false;\n try {\n var object = {};\n object[ITERATOR] = function () {\n return {\n next: function () {\n return { done: ITERATION_SUPPORT = true };\n }\n };\n };\n exec(object);\n } catch (error) { /* empty */ }\n return ITERATION_SUPPORT;\n};\n","var NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');\nvar FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;\n\nmodule.exports = FORCED_PROMISE_CONSTRUCTOR || !checkCorrectnessOfIteration(function (iterable) {\n NativePromiseConstructor.all(iterable).then(undefined, function () { /* empty */ });\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar perform = require('../internals/perform');\nvar iterate = require('../internals/iterate');\nvar PROMISE_STATICS_INCORRECT_ITERATION = require('../internals/promise-statics-incorrect-iteration');\n\n// `Promise.all` method\n// https://tc39.es/ecma262/#sec-promise.all\n$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {\n all: function all(iterable) {\n var C = this;\n var capability = newPromiseCapabilityModule.f(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform(function () {\n var $promiseResolve = aCallable(C.resolve);\n var values = [];\n var counter = 0;\n var remaining = 1;\n iterate(iterable, function (promise) {\n var index = counter++;\n var alreadyCalled = false;\n remaining++;\n call($promiseResolve, C, promise).then(function (value) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[index] = value;\n --remaining || resolve(values);\n }, reject);\n });\n --remaining || resolve(values);\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar defineBuiltIn = require('../internals/define-built-in');\n\nvar NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;\n\n// `Promise.prototype.catch` method\n// https://tc39.es/ecma262/#sec-promise.prototype.catch\n$({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR, real: true }, {\n 'catch': function (onRejected) {\n return this.then(undefined, onRejected);\n }\n});\n\n// makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`\nif (!IS_PURE && isCallable(NativePromiseConstructor)) {\n var method = getBuiltIn('Promise').prototype['catch'];\n if (NativePromisePrototype['catch'] !== method) {\n defineBuiltIn(NativePromisePrototype, 'catch', method, { unsafe: true });\n }\n}\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar perform = require('../internals/perform');\nvar iterate = require('../internals/iterate');\nvar PROMISE_STATICS_INCORRECT_ITERATION = require('../internals/promise-statics-incorrect-iteration');\n\n// `Promise.race` method\n// https://tc39.es/ecma262/#sec-promise.race\n$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {\n race: function race(iterable) {\n var C = this;\n var capability = newPromiseCapabilityModule.f(C);\n var reject = capability.reject;\n var result = perform(function () {\n var $promiseResolve = aCallable(C.resolve);\n iterate(iterable, function (promise) {\n call($promiseResolve, C, promise).then(capability.resolve, reject);\n });\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;\n\n// `Promise.reject` method\n// https://tc39.es/ecma262/#sec-promise.reject\n$({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {\n reject: function reject(r) {\n var capability = newPromiseCapabilityModule.f(this);\n call(capability.reject, undefined, r);\n return capability.promise;\n }\n});\n","var anObject = require('../internals/an-object');\nvar isObject = require('../internals/is-object');\nvar newPromiseCapability = require('../internals/new-promise-capability');\n\nmodule.exports = function (C, x) {\n anObject(C);\n if (isObject(x) && x.constructor === C) return x;\n var promiseCapability = newPromiseCapability.f(C);\n var resolve = promiseCapability.resolve;\n resolve(x);\n return promiseCapability.promise;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar getBuiltIn = require('../internals/get-built-in');\nvar IS_PURE = require('../internals/is-pure');\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;\nvar promiseResolve = require('../internals/promise-resolve');\n\nvar PromiseConstructorWrapper = getBuiltIn('Promise');\nvar CHECK_WRAPPER = IS_PURE && !FORCED_PROMISE_CONSTRUCTOR;\n\n// `Promise.resolve` method\n// https://tc39.es/ecma262/#sec-promise.resolve\n$({ target: 'Promise', stat: true, forced: IS_PURE || FORCED_PROMISE_CONSTRUCTOR }, {\n resolve: function resolve(x) {\n return promiseResolve(CHECK_WRAPPER && this === PromiseConstructorWrapper ? NativePromiseConstructor : this, x);\n }\n});\n","var classof = require('../internals/classof');\n\nvar $String = String;\n\nmodule.exports = function (argument) {\n if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');\n return $String(argument);\n};\n","'use strict';\n/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */\n/* eslint-disable regexp/no-useless-quantifier -- testing */\nvar call = require('../internals/function-call');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar toString = require('../internals/to-string');\nvar regexpFlags = require('../internals/regexp-flags');\nvar stickyHelpers = require('../internals/regexp-sticky-helpers');\nvar shared = require('../internals/shared');\nvar create = require('../internals/object-create');\nvar getInternalState = require('../internals/internal-state').get;\nvar UNSUPPORTED_DOT_ALL = require('../internals/regexp-unsupported-dot-all');\nvar UNSUPPORTED_NCG = require('../internals/regexp-unsupported-ncg');\n\nvar nativeReplace = shared('native-string-replace', String.prototype.replace);\nvar nativeExec = RegExp.prototype.exec;\nvar patchedExec = nativeExec;\nvar charAt = uncurryThis(''.charAt);\nvar indexOf = uncurryThis(''.indexOf);\nvar replace = uncurryThis(''.replace);\nvar stringSlice = uncurryThis(''.slice);\n\nvar UPDATES_LAST_INDEX_WRONG = (function () {\n var re1 = /a/;\n var re2 = /b*/g;\n call(nativeExec, re1, 'a');\n call(nativeExec, re2, 'a');\n return re1.lastIndex !== 0 || re2.lastIndex !== 0;\n})();\n\nvar UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;\n\n// nonparticipating capturing group, copied from es5-shim's String#split patch.\nvar NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;\n\nvar PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;\n\nif (PATCH) {\n patchedExec = function exec(string) {\n var re = this;\n var state = getInternalState(re);\n var str = toString(string);\n var raw = state.raw;\n var result, reCopy, lastIndex, match, i, object, group;\n\n if (raw) {\n raw.lastIndex = re.lastIndex;\n result = call(patchedExec, raw, str);\n re.lastIndex = raw.lastIndex;\n return result;\n }\n\n var groups = state.groups;\n var sticky = UNSUPPORTED_Y && re.sticky;\n var flags = call(regexpFlags, re);\n var source = re.source;\n var charsAdded = 0;\n var strCopy = str;\n\n if (sticky) {\n flags = replace(flags, 'y', '');\n if (indexOf(flags, 'g') === -1) {\n flags += 'g';\n }\n\n strCopy = stringSlice(str, re.lastIndex);\n // Support anchored sticky behavior.\n if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt(str, re.lastIndex - 1) !== '\\n')) {\n source = '(?: ' + source + ')';\n strCopy = ' ' + strCopy;\n charsAdded++;\n }\n // ^(? + rx + ) is needed, in combination with some str slicing, to\n // simulate the 'y' flag.\n reCopy = new RegExp('^(?:' + source + ')', flags);\n }\n\n if (NPCG_INCLUDED) {\n reCopy = new RegExp('^' + source + '$(?!\\\\s)', flags);\n }\n if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;\n\n match = call(nativeExec, sticky ? reCopy : re, strCopy);\n\n if (sticky) {\n if (match) {\n match.input = stringSlice(match.input, charsAdded);\n match[0] = stringSlice(match[0], charsAdded);\n match.index = re.lastIndex;\n re.lastIndex += match[0].length;\n } else re.lastIndex = 0;\n } else if (UPDATES_LAST_INDEX_WRONG && match) {\n re.lastIndex = re.global ? match.index + match[0].length : lastIndex;\n }\n if (NPCG_INCLUDED && match && match.length > 1) {\n // Fix browsers whose `exec` methods don't consistently return `undefined`\n // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/\n call(nativeReplace, match[0], reCopy, function () {\n for (i = 1; i < arguments.length - 2; i++) {\n if (arguments[i] === undefined) match[i] = undefined;\n }\n });\n }\n\n if (match && groups) {\n match.groups = object = create(null);\n for (i = 0; i < groups.length; i++) {\n group = groups[i];\n object[group[0]] = match[group[1]];\n }\n }\n\n return match;\n };\n}\n\nmodule.exports = patchedExec;\n","'use strict';\nvar anObject = require('../internals/an-object');\n\n// `RegExp.prototype.flags` getter implementation\n// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags\nmodule.exports = function () {\n var that = anObject(this);\n var result = '';\n if (that.hasIndices) result += 'd';\n if (that.global) result += 'g';\n if (that.ignoreCase) result += 'i';\n if (that.multiline) result += 'm';\n if (that.dotAll) result += 's';\n if (that.unicode) result += 'u';\n if (that.unicodeSets) result += 'v';\n if (that.sticky) result += 'y';\n return result;\n};\n","var fails = require('../internals/fails');\nvar global = require('../internals/global');\n\n// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError\nvar $RegExp = global.RegExp;\n\nvar UNSUPPORTED_Y = fails(function () {\n var re = $RegExp('a', 'y');\n re.lastIndex = 2;\n return re.exec('abcd') != null;\n});\n\n// UC Browser bug\n// https://github.com/zloirock/core-js/issues/1008\nvar MISSED_STICKY = UNSUPPORTED_Y || fails(function () {\n return !$RegExp('a', 'y').sticky;\n});\n\nvar BROKEN_CARET = UNSUPPORTED_Y || fails(function () {\n // https://bugzilla.mozilla.org/show_bug.cgi?id=773687\n var re = $RegExp('^r', 'gy');\n re.lastIndex = 2;\n return re.exec('str') != null;\n});\n\nmodule.exports = {\n BROKEN_CARET: BROKEN_CARET,\n MISSED_STICKY: MISSED_STICKY,\n UNSUPPORTED_Y: UNSUPPORTED_Y\n};\n","var fails = require('../internals/fails');\nvar global = require('../internals/global');\n\n// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError\nvar $RegExp = global.RegExp;\n\nmodule.exports = fails(function () {\n var re = $RegExp('.', 's');\n return !(re.dotAll && re.exec('\\n') && re.flags === 's');\n});\n","var fails = require('../internals/fails');\nvar global = require('../internals/global');\n\n// babel-minify and Closure Compiler transpiles RegExp('(?b)', 'g') -> /(?b)/g and it causes SyntaxError\nvar $RegExp = global.RegExp;\n\nmodule.exports = fails(function () {\n var re = $RegExp('(?b)', 'g');\n return re.exec('b').groups.a !== 'b' ||\n 'b'.replace(re, '$c') !== 'bc';\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar exec = require('../internals/regexp-exec');\n\n// `RegExp.prototype.exec` method\n// https://tc39.es/ecma262/#sec-regexp.prototype.exec\n$({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {\n exec: exec\n});\n","/**\n * Provide feature detection\n * @class Features\n */\nexport class Features {\n /**\n * If the browser has WebGL support\n * @property {boolean} webgl\n */\n static get webgl() {\n const canvas = document.createElement('canvas');\n\n return !!(\n canvas &&\n (canvas.getContext('webgl') || canvas.getContext('experimental-webgl'))\n );\n }\n\n /**\n * If the browser has Canvas support\n * @property {boolean} canvas\n */\n static get canvas() {\n const canvas = document.createElement('canvas');\n return !!(canvas !== null && canvas.getContext && canvas.getContext('2d'));\n }\n\n /**\n * If the browser has WebAudio API support\n * @property {boolean} webaudio\n */\n static get webaudio() {\n return 'webkitAudioContext' in window || 'AudioContext' in window;\n }\n\n /**\n * If the browser has HTMLAudio support\n * @property {boolean} htmlAudio\n */\n static get htmlAudio() {\n return 'HTMLAudioElement' in window;\n }\n\n /**\n * If the browser has Web Sockets API\n * @property {boolean} websockets\n */\n static get websockets() {\n return 'WebSocket' in window || 'MozWebSocket' in window;\n }\n\n /**\n * If the browser has Geolocation API\n * @property {boolean} geolocation\n */\n static get geolocation() {\n return 'geolocation' in navigator;\n }\n\n /**\n * If the browser has Web Workers API\n * @property {boolean} webworkers\n */\n static get webworkers() {\n return 'function' === typeof Worker;\n }\n\n /**\n * If the browser has touch\n * @property {boolean} touch\n */\n static get touch() {\n return !!(\n 'ontouchstart' in window || // iOS & Android\n (navigator.msPointerEnabled && navigator.msMaxTouchPoints > 0) || // IE10\n (navigator.pointerEnabled && navigator.maxTouchPoints > 0)\n ); // IE11+\n }\n\n /**\n * Test for basic browser compatiliblity\n * @method basic\n * @static\n * @return {String} The error message, if fails\n */\n static basic() {\n if (!Features.canvas) {\n return 'Browser does not support canvas';\n } else if (!Features.webaudio && !Features.htmlAudio) {\n return 'Browser does not support WebAudio or HTMLAudio';\n }\n return null;\n }\n\n /**\n * See if the current bowser has the correct features\n * @method test\n * @static\n * @param {object} capabilities The capabilities\n * @param {object} [capabilities.features] The features\n * @param {object} [capabilities.features.webgl] WebGL required\n * @param {object} [capabilities.features.geolocation] Geolocation required\n * @param {object} [capabilities.features.webworkers] Web Workers API required\n * @param {object} [capabilities.features.webaudio] WebAudio API required\n * @param {object} [capabilities.features.websockets] WebSockets required\n * @param {object} [capabilities.sizes] The sizes\n * @param {Boolean} [capabilities.sizes.xsmall] Screens < 480\n * @param {Boolean} [capabilities.sizes.small] Screens < 768\n * @param {Boolean} [capabilities.sizes.medium] Screens < 992\n * @param {Boolean} [capabilities.sizes.large] Screens < 1200\n * @param {Boolean} [capabilities.sizes.xlarge] Screens >= 1200\n * @param {object} [capabilities.ui] The ui\n * @param {Boolean} [capabilities.ui.touch] Touch capable\n * @return {String|null} The error, or else returns null\n */\n static test(capabilities) {\n // check for basic compatibility\n const err = this.basic();\n if (err) {\n return err;\n }\n\n const features = capabilities.features;\n const ui = capabilities.ui;\n const sizes = capabilities.sizes;\n\n for (const name in features) {\n if (features[name] === true && !Features[name]) {\n // Failed built-in feature check\n return 'Browser does not support ' + name;\n }\n }\n\n // Failed negative touch requirement\n if (!ui.touch && Features.touch) {\n return 'Game does not support touch input';\n }\n\n // Check the sizes\n const size = Math.max(window.screen.width, window.screen.height);\n\n if (!sizes.xsmall && size < 480) {\n return 'Game doesn\\'t support extra small screens';\n }\n if (!sizes.small && size < 768) {\n return 'Game doesn\\'t support small screens';\n }\n if (!sizes.medium && size < 992) {\n return 'Game doesn\\'t support medium screens';\n }\n if (!sizes.large && size < 1200) {\n return 'Game doesn\\'t support large screens';\n }\n if (!sizes.xlarge && size >= 1200) {\n return 'Game doesn\\'t support extra large screens';\n }\n return null;\n }\n\n /**\n * Returns browser feature support info\n * @returns {string}\n */\n static get info() {\n return `Browser Feature Detection\n\t\t\t\tCanvas support ${Features.canvas ? '\\u2713' : '\\u00D7'}\n\t\t\t\tWebGL support ${Features.webgl ? '\\u2713' : '\\u00D7'}\n\t\t\t\tWebAudio support ${Features.webAudio ? '\\u2713' : '\\u00D7'}`;\n }\n}\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\nvar toString = require('../internals/to-string');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar charAt = uncurryThis(''.charAt);\nvar charCodeAt = uncurryThis(''.charCodeAt);\nvar stringSlice = uncurryThis(''.slice);\n\nvar createMethod = function (CONVERT_TO_STRING) {\n return function ($this, pos) {\n var S = toString(requireObjectCoercible($this));\n var position = toIntegerOrInfinity(pos);\n var size = S.length;\n var first, second;\n if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;\n first = charCodeAt(S, position);\n return first < 0xD800 || first > 0xDBFF || position + 1 === size\n || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF\n ? CONVERT_TO_STRING\n ? charAt(S, position)\n : first\n : CONVERT_TO_STRING\n ? stringSlice(S, position, position + 2)\n : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;\n };\n};\n\nmodule.exports = {\n // `String.prototype.codePointAt` method\n // https://tc39.es/ecma262/#sec-string.prototype.codepointat\n codeAt: createMethod(false),\n // `String.prototype.at` method\n // https://github.com/mathiasbynens/String.prototype.at\n charAt: createMethod(true)\n};\n","'use strict';\nvar charAt = require('../internals/string-multibyte').charAt;\nvar toString = require('../internals/to-string');\nvar InternalStateModule = require('../internals/internal-state');\nvar defineIterator = require('../internals/iterator-define');\nvar createIterResultObject = require('../internals/create-iter-result-object');\n\nvar STRING_ITERATOR = 'String Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(STRING_ITERATOR);\n\n// `String.prototype[@@iterator]` method\n// https://tc39.es/ecma262/#sec-string.prototype-@@iterator\ndefineIterator(String, 'String', function (iterated) {\n setInternalState(this, {\n type: STRING_ITERATOR,\n string: toString(iterated),\n index: 0\n });\n// `%StringIteratorPrototype%.next` method\n// https://tc39.es/ecma262/#sec-%stringiteratorprototype%.next\n}, function next() {\n var state = getInternalState(this);\n var string = state.string;\n var index = state.index;\n var point;\n if (index >= string.length) return createIterResultObject(undefined, true);\n point = charAt(string, index);\n state.index += point.length;\n return createIterResultObject(point, false);\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $filter = require('../internals/array-iteration').filter;\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');\n\n// `Array.prototype.filter` method\n// https://tc39.es/ecma262/#sec-array.prototype.filter\n// with adding support of @@species\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {\n filter: function filter(callbackfn /* , thisArg */) {\n return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $find = require('../internals/array-iteration').find;\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\nvar FIND = 'find';\nvar SKIPS_HOLES = true;\n\n// Shouldn't skip holes\nif (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });\n\n// `Array.prototype.find` method\n// https://tc39.es/ecma262/#sec-array.prototype.find\n$({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {\n find: function find(callbackfn /* , that = undefined */) {\n return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables(FIND);\n","function t(t,e){return t(e={exports:{}},e.exports),e.exports}var e=t((function(t){function e(t){return(e=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t})(t)}function n(r){return\"function\"==typeof Symbol&&\"symbol\"===e(Symbol.iterator)?t.exports=n=function(t){return e(t)}:t.exports=n=function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":e(t)},n(r)}t.exports=n}));var n=function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")};function r(t,e){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:0;this._listeners[t]||(this._listeners[t]=[]),e._priority=parseInt(n)||0,-1===this._listeners[t].indexOf(e)&&(this._listeners[t].push(e),this._listeners[t].length>1&&this._listeners[t].sort(this.listenerSorter))}},{key:\"listenerSorter\",value:function(t,e){return t._priority-e._priority}},{key:\"off\",value:function(t,e){if(void 0!==this._listeners[t])if(void 0!==e){var n=this._listeners[t].indexOf(e);-11&&void 0!==arguments[1]?arguments[1]:{};if(\"string\"==typeof t&&(t={type:t,data:\"object\"===e(n)&&null!==n?n:{}}),void 0!==this._listeners[t.type])for(var r=this._listeners[t.type].length-1;r>=0;r--)this._listeners[t.type][r](t)}},{key:\"destroy\",value:function(){this._listeners={}}}]),t}(),s=t((function(t){var e=function(t){var e,n=Object.prototype,r=n.hasOwnProperty,o=\"function\"==typeof Symbol?Symbol:{},i=o.iterator||\"@@iterator\",s=o.asyncIterator||\"@@asyncIterator\",a=o.toStringTag||\"@@toStringTag\";function c(t,e,n,r){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),s=new S(r||[]);return i._invoke=function(t,e,n){var r=h;return function(o,i){if(r===f)throw new Error(\"Generator is already running\");if(r===p){if(\"throw\"===o)throw i;return P()}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var a=O(s,n);if(a){if(a===y)continue;return a}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(r===h)throw r=p,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);r=f;var c=u(t,e,n);if(\"normal\"===c.type){if(r=n.done?p:l,c.arg===y)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(r=p,n.method=\"throw\",n.arg=c.arg)}}}(t,n,s),i}function u(t,e,n){try{return{type:\"normal\",arg:t.call(e,n)}}catch(t){return{type:\"throw\",arg:t}}}t.wrap=c;var h=\"suspendedStart\",l=\"suspendedYield\",f=\"executing\",p=\"completed\",y={};function d(){}function v(){}function g(){}var m={};m[i]=function(){return this};var w=Object.getPrototypeOf,b=w&&w(w(j([])));b&&b!==n&&r.call(b,i)&&(m=b);var _=g.prototype=d.prototype=Object.create(m);function x(t){[\"next\",\"throw\",\"return\"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function L(t){function e(n,o,i,s){var a=u(t[n],t,o);if(\"throw\"!==a.type){var c=a.arg,h=c.value;return h&&\"object\"==typeof h&&r.call(h,\"__await\")?Promise.resolve(h.__await).then((function(t){e(\"next\",t,i,s)}),(function(t){e(\"throw\",t,i,s)})):Promise.resolve(h).then((function(t){c.value=t,i(c)}),(function(t){return e(\"throw\",t,i,s)}))}s(a.arg)}var n;this._invoke=function(t,r){function o(){return new Promise((function(n,o){e(t,r,n,o)}))}return n=n?n.then(o,o):o()}}function O(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,\"throw\"===n.method){if(t.iterator.return&&(n.method=\"return\",n.arg=e,O(t,n),\"throw\"===n.method))return y;n.method=\"throw\",n.arg=new TypeError(\"The iterator does not provide a 'throw' method\")}return y}var o=u(r,t.iterator,n.arg);if(\"throw\"===o.type)return n.method=\"throw\",n.arg=o.arg,n.delegate=null,y;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,\"return\"!==n.method&&(n.method=\"next\",n.arg=e),n.delegate=null,y):i:(n.method=\"throw\",n.arg=new TypeError(\"iterator result is not an object\"),n.delegate=null,y)}function E(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 k(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(E,this),this.reset(!0)}function j(t){if(t){var n=t[i];if(n)return n.call(t);if(\"function\"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,s=function n(){for(;++o=0;--i){var s=this.tryEntries[i],a=s.completion;if(\"root\"===s.tryLoc)return o(\"end\");if(s.tryLoc<=this.prev){var c=r.call(s,\"catchLoc\"),u=r.call(s,\"finallyLoc\");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,\"finallyLoc\")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),y}},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;k(n)}return o}}throw new Error(\"illegal catch attempt\")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},\"next\"===this.method&&(this.arg=e),y}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function(\"r\",\"regeneratorRuntime = r\")(e)}}));var a=function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t};var c=function(t,n){return!n||\"object\"!==e(n)&&\"function\"!=typeof n?a(t):n},u=t((function(t){function e(n){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},e(n)}t.exports=e}));var h=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t},l=t((function(t){function e(n,r,o){return\"undefined\"!=typeof Reflect&&Reflect.get?t.exports=e=Reflect.get:t.exports=e=function(t,e,n){var r=h(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}},e(n,r,o||n)}t.exports=e})),f=t((function(t){function e(n,r){return t.exports=e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},e(n,r)}t.exports=e}));var p=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&&f(t,e)},y=function(t){function r(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100*Math.random()|0;return n(this,r),(t=c(this,u(r).call(this))).id=\"BELLHOP:\".concat(e),t.connected=!1,t.isChild=!0,t.connecting=!1,t.debug=!1,t.origin=\"*\",t._sendLater=[],t.iframe=null,t.receive=t.receive.bind(a(t)),t}return p(r,i),o(r,[{key:\"receive\",value:function(t){if(this.target===t.source)if(this.logDebugMessage(!0,t),\"connected\"===t.data)this.onConnectionReceived(t.data);else{var n=t.data;if(\"string\"==typeof n)try{n=JSON.parse(n)}catch(t){console.warn(\"Bellhop error: \",t)}this.connected&&\"object\"===e(n)&&n.type&&this.trigger(n)}}},{key:\"onConnectionReceived\",value:function(t){if(this.connecting=!1,this.connected=!0,!this.isChild){if(!this.target)return;this.target.postMessage(t,this.origin)}for(var e=0;e1&&void 0!==arguments[1]?arguments[1]:\"*\";this.connecting||(this.disconnect(),this.connecting=!0,t instanceof HTMLIFrameElement&&(this.iframe=t),this.isChild=void 0===t,this.supported=!0,this.isChild&&(this.supported=window!=t),this.origin=e,window.addEventListener(\"message\",this.receive),this.isChild&&(window===this.target?this.trigger(\"failed\"):this.target.postMessage(\"connected\",this.origin)))}},{key:\"disconnect\",value:function(){this.connected=!1,this.connecting=!1,this.origin=null,this.iframe=null,this.isChild=!0,this._sendLater.length=0,window.removeEventListener(\"message\",this.receive)}},{key:\"send\",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(\"string\"!=typeof t)throw\"The event type must be a string\";var n={type:t,data:e};this.logDebugMessage(!1,n),this.connecting?this._sendLater.push(n):this.target.postMessage(JSON.stringify(n),this.origin)}},{key:\"fetch\",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!this.connecting&&!this.connected)throw\"No connection, please call connect() first\";var i=function t(r){o&&n.off(r.type,t),e(r)};this.on(t,i),this.send(t,r)}},{key:\"respond\",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this,o=function t(o){return s.async((function(i){for(;;)switch(i.prev=i.next){case 0:if(n&&r.off(o,t),\"function\"!=typeof e){i.next=10;break}return i.t0=r,i.t1=o.type,i.next=6,s.awrap(e());case 6:i.t2=i.sent,i.t0.send.call(i.t0,i.t1,i.t2),i.next=11;break;case 10:r.send(o.type,e);case 11:case\"end\":return i.stop()}}))};this.on(t,o)}},{key:\"logDebugMessage\",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1?arguments[1]:void 0;this.debug&&\"function\"==typeof this.debug?this.debug({isChild:this.isChild,received:t,message:e}):this.debug&&console.log(\"Bellhop Instance (\".concat(this.isChild?\"Child\":\"Parent\",\") \").concat(t?\"Receieved\":\"Sent\"),e)}},{key:\"destroy\",value:function(){l(u(r.prototype),\"destroy\",this).call(this),this.disconnect(),this._sendLater.length=0}},{key:\"target\",get:function(){return this.isChild?window.parent:this.iframe.contentWindow}}]),r}();export{y as Bellhop,i as BellhopEventDispatcher};\n//# sourceMappingURL=bellhop.js.map\n","/**\n * @typedef {import('./base-plugins/BasePlugin').BasePlugin} BasePlugin\n */\nimport { Bellhop } from 'bellhop-iframe';\n/**\n *\n *\n * @export\n * @class PluginManager\n */\nexport default class PluginManager {\n /**\n *Creates an instance of PluginManager.\n * @memberof PluginManager\n */\n constructor({ plugins = [] }) {\n this.client = new Bellhop();\n // @ts-ignore\n this.client.hidden = this.client.receive.bind(this.client);\n // @ts-ignore\n this.client.hiddenSend = this.client.send.bind(this.client);\n this.client.receive = function (event) {\n this.hidden(event);\n }.bind(this.client);\n this.client.send = function (event, data) {\n this.hiddenSend(event, data);\n }.bind(this.client);\n\n this.plugins = plugins;\n }\n\n /**\n *\n *\n * @returns\n * @memberof PluginManager\n */\n setupPlugins() {\n const preloads = [];\n for (let i = 0, l = this.plugins.length; i < l; i++) {\n if (!this.plugins[i].preload) {\n continue;\n }\n\n preloads.push(\n this.plugins[i].preload(this).catch(function preloadFail(error) {\n this.plugins[i].preloadFailed = true;\n console.warn(this.plugins[i].name, 'Preload Failed:', error);\n }.bind(this))\n );\n }\n\n // ~wait for all preloads to resolve\n return Promise.all(preloads).then(() => {\n // Remove plugins that fail to load.\n this.plugins = this.plugins.filter(\n plugin => plugin.preloadFailed !== true\n );\n\n //init\n this.plugins.forEach(plugin => {\n if (!plugin.init) {\n return;\n }\n\n plugin.init(this);\n });\n\n //start\n this.plugins.forEach(plugin => {\n if (!plugin.start) {\n return;\n }\n plugin.start(this);\n });\n });\n }\n\n /**\n * Registers a plugin to be used by PluginManagers, sorting it by priority order.\n * @param {BasePlugin} plugin The plugin to register.\n */\n uses(plugin) {\n this.plugins.push(plugin);\n }\n\n /**\n * Finds a plugin by name.\n * @param {string} name The name of the plugin.\n * @returns {BasePlugin}\n */\n getPlugin(name) {\n return this.plugins.find(function (plugin) {\n return plugin.name === name;\n });\n }\n}\n","import 'whatwg-fetch';\n\nimport { Features } from './Features';\nimport PluginManager from './PluginManager';\n// @ts-ignore\nimport { version } from '../package.json';\n\n/**\n * The application container\n * @class Container\n * @property {Bellhop} client Communication layer between the container and application\n * @property {boolean} loaded Check to see if a application is loaded\n * @property {boolean} loading Check to see if a application is loading\n * @property {object} release The current release data\n * @property {HTMLIFrameElement} iframe The DOM object for the iframe\n * @static @property {string} version The current version of the library\n */\nexport class Container extends PluginManager {\n /**\n *Creates an instance of Container.\n * @param {object} config\n * @param {string | HTMLIFrameElement} iframeOrSelector\n * @param {Array | null} [config.plugins]\n * @param {object | null} [config.context={}]\n * @memberof Container\n */\n constructor(iframeOrSelector, { plugins, context = {} } = {}) {\n super({ plugins });\n\n this.iframe = iframeOrSelector instanceof HTMLIFrameElement ? iframeOrSelector : document.querySelector(iframeOrSelector);\n\n if (null === this.iframe) {\n throw new Error('No iframe was found with the provided selector');\n }\n\n this.loaded = false;\n this.loading = false;\n this.release = null;\n\n // context object that plugins can pick up on\n this._context = context;\n\n this.onLoading = this.onLoading.bind(this);\n this.onLoadDone = this.onLoadDone.bind(this);\n this.onLoadDone = this.onLoadDone.bind(this);\n this.onEndGame = this.onEndGame.bind(this);\n this.onLocalError = this.onLocalError.bind(this);\n\n this.initClient();\n this.setupPlugins();\n }\n\n /**\n * The game is starting to load\n * @memberof Container\n */\n onLoading() {\n this.client.trigger('opening');\n }\n\n /**\n * Reset the mutes for audio and captions\n * @memberof Container\n */\n onLoadDone() {\n this.loading = false;\n this.loaded = true;\n this.iframe.classList.remove('loading');\n\n this.client.trigger('opened');\n }\n\n /**\n * The application ended and destroyed itself\n * @memberof Container\n */\n onEndGame() {\n this.reset();\n }\n /**\n * Handle the local errors\n * @method onLocalError\n * @private\n * @param {Event} $event Bellhop event\n */\n onLocalError($event) {\n console.error('SpringRoll Container error: ', $event, new Error().stack);\n }\n\n /**\n * Reset all the buttons back to their original setting\n * and clear the iframe.\n * @memberof Container\n */\n reset() {\n const wasLoaded = this.loaded || this.loading;\n\n if (wasLoaded) {\n this.client.trigger('closed');\n }\n\n // Reset state\n this.loaded = false;\n this.loading = false;\n\n // Clear the iframe src location\n this.iframe.setAttribute('src', '');\n this.iframe.classList.remove('loading');\n }\n\n /**\n * Set up communication layer between site and application.\n * May be called from subclasses if they create/destroy Bellhop instances.\n * @memberof Container\n */\n initClient() {\n //Handle bellhop events coming from the application\n this.client.on('loading', this.onLoading);\n this.client.on('loaded', this.onLoadDone);\n this.client.on('loadDone', this.onLoadDone);\n this.client.on('endGame', this.onEndGame);\n this.client.on('localError', this.onLocalError);\n // @ts-ignore\n this.client.connect(this.iframe);\n }\n\n /**\n * If there was an error when closing, reset the container\n * @memberof Container\n */\n _onCloseFailed() {\n this.reset(); // force close the app\n }\n\n /**\n * Open a application or path\n * @param {string} userPath The full path to the application to load\n * @param {object} [userOptions] The open options\n * @param {boolean} [userOptions.singlePlay=false] If we should play in single play mode\n * @param {object | null} [userOptions.playOptions=null] The optional play options\n * @memberof Container\n */\n _internalOpen(userPath, { singlePlay = false, playOptions = null } = {}) {\n const options = { singlePlay, playOptions };\n this.reset();\n\n this.loading = true;\n this.initClient();\n\n const err = Features.basic();\n if (err) {\n console.error('ERROR:', err);\n this.client.trigger('unsupported');\n }\n\n let path = userPath;\n if (null !== options.playOptions) {\n const playOptionsQueryString =\n 'playOptions=' +\n encodeURIComponent(JSON.stringify(options.playOptions));\n\n path =\n -1 === userPath.indexOf('?')\n ? `${userPath}?${playOptionsQueryString}`\n : `${userPath}&${playOptionsQueryString}`;\n }\n\n this.iframe.classList.add('loading');\n this.iframe.setAttribute('src', path);\n\n this.client.respond('singlePlay', singlePlay);\n this.client.respond('playOptions', playOptions);\n this.client.trigger('open');\n }\n\n /**\n *\n *\n * @param {string} path\n * @param {object} [options={}]\n * @memberof Container\n */\n openPath(path, options = {}) {\n // This should be deprecated, support for old function signature\n if ('object' !== typeof options) {\n console.warn(\n 'SpringRoll Container.openPath was passed a invalid options parameter. Using default parameters instead'\n );\n options = {};\n }\n\n this._internalOpen(\n path,\n Object.assign(\n {\n singlePlay: false,\n playOptions: {}\n },\n options\n )\n );\n }\n\n /**\n * Open application based on an API Call to SpringRoll Connect\n * @param {string} api\n * @param {object} options\n * @param {string} [options.query='']\n * @param {boolean} [options.singlePlay=false]\n * @param {null | object} [options.playOptions=null]\n * @returns {Promise}\n * @memberof Container\n */\n async openRemote(\n api,\n { query = '', singlePlay = false, playOptions = null } = {}\n ) {\n this.release = null;\n\n const response = await fetch(api, {\n headers: {\n 'Content-Type': 'application/json'\n }\n });\n\n const json = await response.json();\n\n // if SpringRollConnect denoted that something failed, send that error back\n if (!json.success) {\n throw new Error(json.error);\n }\n\n // If the browser doesn't support the capabilities requested by this game, also fail.\n const release = json.data;\n const error = Features.test(release.capabilities);\n if (error) {\n this.client.trigger('unsupported', { error });\n throw new Error(error);\n }\n\n // otherwise, open the game\n this.release = release;\n this._internalOpen(release.url + query, {\n singlePlay,\n playOptions\n });\n }\n\n /**\n * Destroy and don't use after this\n * @memberof Container\n */\n destroy() {\n this.reset();\n\n this.iframe = null;\n this.options = null;\n this.release = null;\n }\n\n /**\n * Tell the application to start closing\n * @memberof Container\n */\n close() {\n if (this.loading || this.loaded) {\n this.client.trigger('close');\n // Start the close\n this.client.send('close');\n } else {\n this.reset();\n }\n }\n\n /**\n * the current _context object\n * @readonly\n * @memberof Container\n * @return {object}\n */\n get context() {\n return this._context;\n }\n\n /**\n * sets _context object to new object\n * @param {object} context\n * @memberof Container\n */\n set context(newContext) {\n if (typeof newContext !== 'object') {\n console.error('[SpringRollContainer] Context: new context provided is not an object');\n return;\n }\n this._context = newContext;\n }\n\n\n\n /**\n * The current version of SpringRollContainer\n * @readonly\n * @static\n * @return {string}\n * @memberof Container\n */\n static get version() {\n return version;\n }\n}\n","/**\n * Handle the page visiblity change, if supported. Application uses one of these to\n * monitor page visibility. It is suggested that you listen to `pause`, `paused`,\n * or `resumed` events on the Application instead of using one of these yourself.\n *\n * @export\n * @class PageVisibility\n * @constructor\n * @param {Function} onFocus Callback when the page becomes visible\n * @param {Function} onBlur Callback when the page loses visibility\n */\nexport class PageVisibility {\n /**\n *Creates an instance of PageVisibility.\n * @param { function } [onFocus=function() {}]\n * @param { function } [onBlur=function() {}]\n * @memberof PageVisibility\n */\n constructor(onFocus = function() {}, onBlur = function() {}) {\n this._onFocus = onFocus;\n this._onBlur = onBlur;\n this.onFocus = function(e) {\n if (this.enabled) {\n this._onFocus(e);\n }\n }.bind(this);\n this.onBlur = function(e) {\n if (this.enabled) {\n this._onBlur(e);\n }\n }.bind(this);\n this._enabled = false;\n this.enabled = true;\n\n this.onToggle = this.onToggle.bind(this);\n }\n\n /**\n * Disable the detection\n * @memberof PageVisibility\n */\n destroy() {\n this.enabled = false;\n this.onToggle = null;\n this.onFocus = null;\n this.onBlur = null;\n }\n\n /**\n * The visibility toggle listener function\n * @param {Event} $event;\n * @memberof PageVisibility\n */\n onToggle($event) {\n if (this.enabled) {\n document.hidden ? this.onBlur($event) : this.onFocus($event);\n }\n }\n\n /**\n * If this object is enabled.\n * @returns {boolean}\n * @memberof PageVisibility\n */\n get enabled() {\n return this._enabled;\n }\n\n /**\n * Sets the state of the object\n * @memberof PageVisibility\n */\n set enabled(enable) {\n this._enabled = enable;\n\n document.removeEventListener('visibilitychange', this.onToggle, false);\n window.removeEventListener('blur', this.onBlur, false);\n window.removeEventListener('focus', this.onFocus, false);\n window.removeEventListener('pagehide', this.onBlur, false);\n window.removeEventListener('pageshow', this.onFocus, false);\n window.removeEventListener('visibilitychange', this.onToggle, false);\n\n if (this._enabled) {\n document.addEventListener('visibilitychange', this.onToggle, false);\n window.addEventListener('blur', this.onBlur, false);\n window.addEventListener('focus', this.onFocus, false);\n window.addEventListener('pagehide', this.onBlur, false);\n window.addEventListener('pageshow', this.onFocus, false);\n window.addEventListener('visibilitychange', this.onToggle, false);\n }\n }\n}\n","'use strict';\nvar $ = require('../internals/export');\nvar $includes = require('../internals/array-includes').includes;\nvar fails = require('../internals/fails');\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\n// FF99+ bug\nvar BROKEN_ON_SPARSE = fails(function () {\n // eslint-disable-next-line es/no-array-prototype-includes -- detection\n return !Array(1).includes();\n});\n\n// `Array.prototype.includes` method\n// https://tc39.es/ecma262/#sec-array.prototype.includes\n$({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {\n includes: function includes(el /* , fromIndex = 0 */) {\n return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('includes');\n","// a string of all valid unicode whitespaces\nmodule.exports = '\\u0009\\u000A\\u000B\\u000C\\u000D\\u0020\\u00A0\\u1680\\u2000\\u2001\\u2002' +\n '\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF';\n","var PROPER_FUNCTION_NAME = require('../internals/function-name').PROPER;\nvar fails = require('../internals/fails');\nvar whitespaces = require('../internals/whitespaces');\n\nvar non = '\\u200B\\u0085\\u180E';\n\n// check that a method works with the correct list\n// of whitespaces and has a correct name\nmodule.exports = function (METHOD_NAME) {\n return fails(function () {\n return !!whitespaces[METHOD_NAME]()\n || non[METHOD_NAME]() !== non\n || (PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME);\n });\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar toString = require('../internals/to-string');\nvar whitespaces = require('../internals/whitespaces');\n\nvar replace = uncurryThis(''.replace);\nvar ltrim = RegExp('^[' + whitespaces + ']+');\nvar rtrim = RegExp('(^|[^' + whitespaces + '])[' + whitespaces + ']+$');\n\n// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation\nvar createMethod = function (TYPE) {\n return function ($this) {\n var string = toString(requireObjectCoercible($this));\n if (TYPE & 1) string = replace(string, ltrim, '');\n if (TYPE & 2) string = replace(string, rtrim, '$1');\n return string;\n };\n};\n\nmodule.exports = {\n // `String.prototype.{ trimLeft, trimStart }` methods\n // https://tc39.es/ecma262/#sec-string.prototype.trimstart\n start: createMethod(1),\n // `String.prototype.{ trimRight, trimEnd }` methods\n // https://tc39.es/ecma262/#sec-string.prototype.trimend\n end: createMethod(2),\n // `String.prototype.trim` method\n // https://tc39.es/ecma262/#sec-string.prototype.trim\n trim: createMethod(3)\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar $trim = require('../internals/string-trim').trim;\nvar forcedStringTrimMethod = require('../internals/string-trim-forced');\n\n// `String.prototype.trim` method\n// https://tc39.es/ecma262/#sec-string.prototype.trim\n$({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {\n trim: function trim() {\n return $trim(this);\n }\n});\n","var call = require('../internals/function-call');\nvar hasOwn = require('../internals/has-own-property');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar regExpFlags = require('../internals/regexp-flags');\n\nvar RegExpPrototype = RegExp.prototype;\n\nmodule.exports = function (R) {\n var flags = R.flags;\n return flags === undefined && !('flags' in RegExpPrototype) && !hasOwn(R, 'flags') && isPrototypeOf(RegExpPrototype, R)\n ? call(regExpFlags, R) : flags;\n};\n","'use strict';\nvar PROPER_FUNCTION_NAME = require('../internals/function-name').PROPER;\nvar defineBuiltIn = require('../internals/define-built-in');\nvar anObject = require('../internals/an-object');\nvar $toString = require('../internals/to-string');\nvar fails = require('../internals/fails');\nvar getRegExpFlags = require('../internals/regexp-get-flags');\n\nvar TO_STRING = 'toString';\nvar RegExpPrototype = RegExp.prototype;\nvar nativeToString = RegExpPrototype[TO_STRING];\n\nvar NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });\n// FF44- RegExp#toString has a wrong name\nvar INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name != TO_STRING;\n\n// `RegExp.prototype.toString` method\n// https://tc39.es/ecma262/#sec-regexp.prototype.tostring\nif (NOT_GENERIC || INCORRECT_NAME) {\n defineBuiltIn(RegExp.prototype, TO_STRING, function toString() {\n var R = anObject(this);\n var pattern = $toString(R.source);\n var flags = $toString(getRegExpFlags(R));\n return '/' + pattern + '/' + flags;\n }, { unsafe: true });\n}\n","/**\n * The SavedData functions use localStorage and sessionStorage, with a cookie fallback.\n *\n * @class SavedData\n */\nexport class SavedData {\n\n /**\n * Constructor for IndexedDB work\n */\n constructor(dbName = '') {\n this.db = null;\n this.dbName = dbName;\n }\n /**\n * Remove a saved variable by name.\n * @method remove\n * @static\n * @param {String} name The name of the value to remove\n */\n static remove(name) {\n localStorage.removeItem(name);\n sessionStorage.removeItem(name);\n }\n\n /**\n * Save a variable.\n * @method write\n * @static\n * @param {string} name The name of the value to save\n * @param {string} value The value to save. This will be run through JSON.stringify().\n * @param {boolean} [tempOnly=false] If the value should be saved only in the current browser session.\n */\n static write(name, value, tempOnly = false) {\n\n return tempOnly\n ? sessionStorage.setItem(\n name,\n JSON.stringify('function' === typeof value ? value() : value)\n )\n : localStorage.setItem(\n name,\n JSON.stringify('function' === typeof value ? value() : value)\n );\n }\n\n /**\n * Read the value of a saved variable\n * @method read\n * @static\n * @param {String} name The name of the variable\n * @return {*} The value (run through `JSON.parse()`) or null if it doesn't exist\n */\n static read(name) {\n const value = localStorage.getItem(name) || sessionStorage.getItem(name);\n\n if ('string' === typeof value) {\n try {\n return JSON.parse(value);\n } catch (err) {\n return value;\n }\n } else {\n return value;\n }\n }\n\n /**\n * Open a connection with the IDB Database and optionally add or delete\n * Indexes and stores\n *\n * @param {string} dbName The name of your IndexedDB database\n * @param {string} dbVersion The version number of the database. Additions and deletions will be ignored if lower than current version number\n * @param {JSON} additions Any additions to the structure of the database\n * @param {array} additions.stores Any stores to be added into the database syntax: {storeName: '[name]', options: {[optionally add options]}}\n * @param {array} additions.indexes Any Indexes to be added to the database syntax: {storeName: '[name]', options: {[optionally add options]}}\n */\n IDBOpen( dbName, dbVersion = null, additions = {}, deletions = {}, callback ) {\n const request = dbVersion ? indexedDB.open(dbName, dbVersion) : indexedDB.open(dbName);\n\n request.onsuccess = e => {\n // Database successfully opened. This will run along with onupgradeneeded\n this.db = e.target.result;\n\n if (this.db.version == dbVersion | dbVersion == null) {\n callback({result: 'Success: IDBOpen', success: true});\n }\n };\n\n request.onerror = () => {\n callback({result: request.error.toString(), success: false});\n };\n\n // on upgrade needed fires only if the dbVersion is higher than the current version number\n request.onupgradeneeded = e => {\n // Ensure the proper database object is stored\n this.db = e.target.result;\n\n if (additions != null) {\n if (additions.stores) {\n additions.stores.forEach(store => {\n this.db.createObjectStore(store.storeName, store.options);\n });\n }\n if (additions.indexes != null) {\n additions.indexes.forEach(index => {\n // Add indexes last to avoid adding an index to a store that has yet to be created\n // Open a transaction returning a store object\n const storeObject = request.transaction.objectStore(index.storeName);\n storeObject.createIndex(index.indexName, index.keyPath, index.options);\n });\n }\n }\n\n if (deletions != null) {\n if (deletions.indexes != null) {\n // delete indexes first to avoid deleting an index to a store that has already to been deleted\n deletions.indexes.forEach((index) => {\n // Open a transaction returning a store object\n const storeObject = request.transaction.objectStore(index.storeName);\n storeObject.deleteIndex(index.indexName);\n });\n }\n if (deletions.stores) {\n deletions.stores.forEach((store) => {\n this.db.deleteObjectStore(store.storeName);\n });\n }\n }\n callback({result: 'Success: IDBOpen onupgradeneeded ran', success: true});\n };\n }\n\n /**\n * Delete a database and all records, stores, and indexes associated\n * @param {string} dbName Name of the database to delete\n * @param {object} options Optionally pass in options\n * @param {function} callback The callback to be run on success or error. One value will be passed into this function\n */\n IDBDeleteDB(dbName, options = null, callback = {}) {\n const request = options != null ? indexedDB.deleteDatabase(dbName, options): indexedDB.deleteDatabase(dbName);\n\n request.onsuccess = (e) => {\n callback({result: 'Success: Database Deleted, returned: ' + e.result, success: true});\n };\n request.onerror = () => {\n callback({result: request.error.toString(), success: false});\n };\n\n\n }\n\n /**\n * Add a record to a given store\n * @param {string} storeName The name of the store from which the record will be updated\n * @param {string} key the key of the record to be updated\n * @param {string} value The value for the record with the given key to be updated\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBAdd(storeName, value, key, callback) {\n if ( !this.db && this.dbName != '') {\n this.IDBOpen(this.dbName);\n }\n\n const tx = this.db.transaction(storeName, 'readwrite');\n tx.onerror = () => callback({result: tx.error != null ? tx.error.toString() : 'Aborted: No error given, was the record already added?', success: false});\n tx.onabort = () => callback({result: tx.error != null ? tx.error.toString() : 'Aborted: No error given, was the record already added?', success: false});\n\n tx.oncomplete = () => callback({result: 'Success: Record Added', success: true});\n const store = tx.objectStore(storeName);\n store.add(value, key);\n }\n\n /**\n * Update a record in a given store\n * @param {string} storeName The name of the store from which the record will be updated\n * @param {string} key the key of the record to be updated\n * @param {string | object} value The altered object to be updated from the given store\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBUpdate (storeName, key, value, callback) {\n if ( !this.db && this.dbName != '') {\n this.IDBOpen(this.dbName);\n }\n\n const tx = this.db.transaction(storeName, 'readwrite');\n const store = tx.objectStore(storeName);\n\n const updateRequest = store.put(value, key);\n\n updateRequest.onsuccess = () => {\n callback({result: 'Success: Record Updated', success: true});\n };\n\n updateRequest.onerror = () => callback({result: updateRequest.error.toString(), success: false});\n }\n\n /**\n * Delete a given record within a given store\n * @param {string} storeName The name of the store from which the record will be removed\n * @param {string} key the key of the record to be removed\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBRemove(storeName, key, callback) {\n if ( !this.db && this.dbName != '') {\n this.IDBOpen(this.dbName);\n }\n\n const tx = this.db.transaction(storeName, 'readwrite');\n tx.onerror = () => callback({result: this.db.error.toString(), success: false});\n const store = tx.objectStore(storeName);\n store.delete(key);\n\n tx.oncomplete = () => callback({result: 'Removed Successfully', success: true});\n\n }\n\n /**\n * Return a record from a given store with a given key\n * @param {string} storeName the name of the store to read from\n * @param {string} key The key for the record in the given store\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBRead(storeName, key, callback) {\n // Open transaction with a store\n const tx = this.db.transaction(storeName, 'readonly');\n // Get the store object from the transaction\n const store = tx.objectStore(storeName);\n\n tx.onerror = () => callback({result: this.db.error.toString(), success: false});\n\n const readRequest = store.get(key);\n\n readRequest.onsuccess = () => {\n callback({result: readRequest.result, success: readRequest.result != undefined ? true : false});\n };\n\n }\n\n /**\n * Get all keys with given index\n * @param {string} storeName the name of the store to be read from\n * @param {string} indexName the name of the index to be read from\n * @param {string} query Optionally give a keyRange of records to return\n * @param {string} count Optionally give a max limit on records to be returned\n * @param {function} callback The method to call on success or failure. A single value will be passed in as a parameter\n */\n IDBGetIndexKeys (storeName, indexName, query = null, count = null, callback = {}) {\n // Open transaction with a store\n const tx = this.db.transaction(storeName, 'readonly');\n // Get the store object from the transaction\n const store = tx.objectStore(storeName);\n\n let index;\n\n tx.onerror = () => callback({result: this.db.error.toString(), success: false});\n\n if (query && count) {\n index = store.index(indexName, query, count);\n } else if (query) {\n index = store.index(indexName, query);\n } else {\n index = store.index(indexName);\n }\n\n const getAllKeysRequest = index.getAllKeys();\n\n\n getAllKeysRequest.onsuccess = function(e) {\n callback({result : e.result, success: true});\n };\n }\n\n /**\n * Get all records from a store\n * @param {string} storeName The store to get all records from\n * @param {integer} count Optionally the count of records to return\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBReadAll(storeName, count, callback) {\n // Open transaction with a store\n const tx = this.db.transaction(storeName, 'readonly');\n // Get the store object from the transaction\n const store = tx.objectStore(storeName);\n\n const readRequest = count != null ? store.getAll(null, count) : store.getAll();\n\n // const readRequest = store.getAll();\n\n tx.onerror = () => callback({result: tx.error.toString(), success: false});\n\n\n readRequest.onsuccess = () => {\n callback({result: readRequest.result, success: readRequest.result != undefined ? true : false});\n };\n }\n\n /**\n * Get the version number of a given database. This will create a database if it doesn't exist.\n * Do not call this after opening a connection with the database\n * @param {string} dbName The name of the database for which the version will be returned\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBGetVersion(dbName, callback) {\n // Open the database\n const dBOpenRequest = window.indexedDB.open(dbName);\n\n // these two event handlers act on the database\n // being opened. successfully, or not\n dBOpenRequest.onerror = function() {\n callback({result: dBOpenRequest.error.toString(), success: false});\n };\n\n dBOpenRequest.onsuccess = function() {\n const db = dBOpenRequest.result;\n callback({result: db.version, success: true});\n };\n }\n\n /**\n * Closes the connection to the database if open\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBClose(callback) {\n if ( this.db ) {\n this.db.close();\n callback({result: 'Success: Closed Database Connection', success: true});\n }\n }\n\n}\n","/* eslint-disable no-unused-vars */\nimport { SavedData } from '../SavedData';\nimport { Container } from '../Container';\n\n/**\n *\n *\n * @export\n * @class BasePlugin\n * @property {Bellhop} client\n * @property {string} name\n */\nexport class BasePlugin {\n /**\n *Creates an instance of BasePlugin.\n * @param {string} name\n * @memberof BasePlugin\n */\n constructor(name) {\n this.name = name;\n this.client = null;\n }\n\n /**\n *\n * @param {Container} [container]\n * @memberof BasePlugin\n * @returns {Promise}\n */\n async preload({ client }) {\n this.client = client;\n }\n\n /**\n *\n * @memberof BasePlugin\n */\n start() {\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * @param {Container} [_]\n * @memberof BasePlugin\n */\n init(_) { }\n\n /**\n *\n *\n * @param {string} prop\n * @param {any} value\n * @memberof BasePlugin\n */\n sendProperty(prop, value) {\n SavedData.write(prop, value);\n this.client.send(prop, value);\n }\n\n\n /**\n *\n * @param {Container} [_]\n * @memberof BasePlugin\n */\n sendAllProperties(_) { }\n\n /**\n *\n * @param {string} warningText\n * @memberof BasePlugin\n */\n warn(warningText) {\n console.warn(`[SpringRollContainer] ${this.name}: ${warningText}`);\n }\n}\n","/* eslint-disable no-unused-vars */\nimport { BasePlugin } from './BasePlugin';\nimport { Container } from '../Container';\n\n/**\n *\n *\n * @export\n * @class ButtonPlugin\n * @extends {BasePlugin}\n */\nexport class ButtonPlugin extends BasePlugin {\n /**\n *Creates an instance of ButtonPlugin.\n * @param {string} name\n *\n * @memberof ButtonPlugin\n */\n constructor(name) {\n super(name);\n this.sendMutes = false;\n }\n\n /**\n * @memberof ButtonPlugin\n * @param {Container} [container]\n */\n init(container) {\n // eslint-disable-line no-unused-vars\n this.sendMutes = true;\n }\n\n /**\n *\n * Applies the disabled class to the provided element\n * @param {HTMLButtonElement | Element} button\n * @memberof ButtonPlugin\n */\n _disableButton(button) {\n if (button instanceof HTMLButtonElement) {\n button.classList.remove('enabled');\n button.classList.add('disabled');\n }\n }\n\n /**\n *\n *\n * @memberof ButtonPlugin\n */\n reset() {\n this.sendMutes = false;\n }\n\n /**\n *\n *\n * @param {string} prop\n * @param {Element} button\n * @param {Boolean} muted\n * @memberof ButtonPlugin\n */\n _setMuteProp(prop, button, muted) {\n if (Array.isArray(button)) {\n button.forEach(b => this.changeMutedState(b, muted));\n } else {\n this.changeMutedState(button, muted);\n }\n\n this.sendProperty(prop, muted);\n }\n\n /**\n *\n *\n * @param {Element} button\n * @param {Boolean} muted\n * @returns\n * @memberof ButtonPlugin\n */\n changeMutedState(button, muted = false) {\n //most times button will be a Button class rather than an HTMLElement\n //But just in case the Button ui-element is not being used\n const htmlButton = button.button ? button.button : button;\n\n if (!(htmlButton instanceof HTMLElement)) {\n return;\n }\n\n htmlButton.classList.remove('unmuted');\n htmlButton.classList.remove('muted');\n htmlButton.classList.add(muted ? 'muted' : 'unmuted');\n }\n}\n","var isObject = require('../internals/is-object');\nvar classof = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar MATCH = wellKnownSymbol('match');\n\n// `IsRegExp` abstract operation\n// https://tc39.es/ecma262/#sec-isregexp\nmodule.exports = function (it) {\n var isRegExp;\n return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) == 'RegExp');\n};\n","var isRegExp = require('../internals/is-regexp');\n\nvar $TypeError = TypeError;\n\nmodule.exports = function (it) {\n if (isRegExp(it)) {\n throw $TypeError(\"The method doesn't accept regular expressions\");\n } return it;\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar MATCH = wellKnownSymbol('match');\n\nmodule.exports = function (METHOD_NAME) {\n var regexp = /./;\n try {\n '/./'[METHOD_NAME](regexp);\n } catch (error1) {\n try {\n regexp[MATCH] = false;\n return '/./'[METHOD_NAME](regexp);\n } catch (error2) { /* empty */ }\n } return false;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar notARegExp = require('../internals/not-a-regexp');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar toString = require('../internals/to-string');\nvar correctIsRegExpLogic = require('../internals/correct-is-regexp-logic');\n\nvar stringIndexOf = uncurryThis(''.indexOf);\n\n// `String.prototype.includes` method\n// https://tc39.es/ecma262/#sec-string.prototype.includes\n$({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {\n includes: function includes(searchString /* , position = 0 */) {\n return !!~stringIndexOf(\n toString(requireObjectCoercible(this)),\n toString(notARegExp(searchString)),\n arguments.length > 1 ? arguments[1] : undefined\n );\n }\n});\n","var toAbsoluteIndex = require('../internals/to-absolute-index');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar createProperty = require('../internals/create-property');\n\nvar $Array = Array;\nvar max = Math.max;\n\nmodule.exports = function (O, start, end) {\n var length = lengthOfArrayLike(O);\n var k = toAbsoluteIndex(start, length);\n var fin = toAbsoluteIndex(end === undefined ? length : end, length);\n var result = $Array(max(fin - k, 0));\n for (var n = 0; k < fin; k++, n++) createProperty(result, n, O[k]);\n result.length = n;\n return result;\n};\n","/* eslint-disable es/no-object-getownpropertynames -- safe */\nvar classof = require('../internals/classof-raw');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar $getOwnPropertyNames = require('../internals/object-get-own-property-names').f;\nvar arraySlice = require('../internals/array-slice-simple');\n\nvar windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames\n ? Object.getOwnPropertyNames(window) : [];\n\nvar getWindowNames = function (it) {\n try {\n return $getOwnPropertyNames(it);\n } catch (error) {\n return arraySlice(windowNames);\n }\n};\n\n// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nmodule.exports.f = function getOwnPropertyNames(it) {\n return windowNames && classof(it) == 'Window'\n ? getWindowNames(it)\n : $getOwnPropertyNames(toIndexedObject(it));\n};\n","// FF26- bug: ArrayBuffers are non-extensible, but Object.isExtensible does not report it\nvar fails = require('../internals/fails');\n\nmodule.exports = fails(function () {\n if (typeof ArrayBuffer == 'function') {\n var buffer = new ArrayBuffer(8);\n // eslint-disable-next-line es/no-object-isextensible, es/no-object-defineproperty -- safe\n if (Object.isExtensible(buffer)) Object.defineProperty(buffer, 'a', { value: 8 });\n }\n});\n","var fails = require('../internals/fails');\nvar isObject = require('../internals/is-object');\nvar classof = require('../internals/classof-raw');\nvar ARRAY_BUFFER_NON_EXTENSIBLE = require('../internals/array-buffer-non-extensible');\n\n// eslint-disable-next-line es/no-object-isextensible -- safe\nvar $isExtensible = Object.isExtensible;\nvar FAILS_ON_PRIMITIVES = fails(function () { $isExtensible(1); });\n\n// `Object.isExtensible` method\n// https://tc39.es/ecma262/#sec-object.isextensible\nmodule.exports = (FAILS_ON_PRIMITIVES || ARRAY_BUFFER_NON_EXTENSIBLE) ? function isExtensible(it) {\n if (!isObject(it)) return false;\n if (ARRAY_BUFFER_NON_EXTENSIBLE && classof(it) == 'ArrayBuffer') return false;\n return $isExtensible ? $isExtensible(it) : true;\n} : $isExtensible;\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-object-isextensible, es/no-object-preventextensions -- required for testing\n return Object.isExtensible(Object.preventExtensions({}));\n});\n","var $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar hiddenKeys = require('../internals/hidden-keys');\nvar isObject = require('../internals/is-object');\nvar hasOwn = require('../internals/has-own-property');\nvar defineProperty = require('../internals/object-define-property').f;\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertyNamesExternalModule = require('../internals/object-get-own-property-names-external');\nvar isExtensible = require('../internals/object-is-extensible');\nvar uid = require('../internals/uid');\nvar FREEZING = require('../internals/freezing');\n\nvar REQUIRED = false;\nvar METADATA = uid('meta');\nvar id = 0;\n\nvar setMetadata = function (it) {\n defineProperty(it, METADATA, { value: {\n objectID: 'O' + id++, // object ID\n weakData: {} // weak collections IDs\n } });\n};\n\nvar fastKey = function (it, create) {\n // return a primitive with prefix\n if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if (!hasOwn(it, METADATA)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return 'F';\n // not necessary to add metadata\n if (!create) return 'E';\n // add missing metadata\n setMetadata(it);\n // return object ID\n } return it[METADATA].objectID;\n};\n\nvar getWeakData = function (it, create) {\n if (!hasOwn(it, METADATA)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return true;\n // not necessary to add metadata\n if (!create) return false;\n // add missing metadata\n setMetadata(it);\n // return the store of weak collections IDs\n } return it[METADATA].weakData;\n};\n\n// add metadata on freeze-family methods calling\nvar onFreeze = function (it) {\n if (FREEZING && REQUIRED && isExtensible(it) && !hasOwn(it, METADATA)) setMetadata(it);\n return it;\n};\n\nvar enable = function () {\n meta.enable = function () { /* empty */ };\n REQUIRED = true;\n var getOwnPropertyNames = getOwnPropertyNamesModule.f;\n var splice = uncurryThis([].splice);\n var test = {};\n test[METADATA] = 1;\n\n // prevent exposing of metadata key\n if (getOwnPropertyNames(test).length) {\n getOwnPropertyNamesModule.f = function (it) {\n var result = getOwnPropertyNames(it);\n for (var i = 0, length = result.length; i < length; i++) {\n if (result[i] === METADATA) {\n splice(result, i, 1);\n break;\n }\n } return result;\n };\n\n $({ target: 'Object', stat: true, forced: true }, {\n getOwnPropertyNames: getOwnPropertyNamesExternalModule.f\n });\n }\n};\n\nvar meta = module.exports = {\n enable: enable,\n fastKey: fastKey,\n getWeakData: getWeakData,\n onFreeze: onFreeze\n};\n\nhiddenKeys[METADATA] = true;\n","var isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\n\n// makes subclassing work correct for wrapped built-ins\nmodule.exports = function ($this, dummy, Wrapper) {\n var NewTarget, NewTargetPrototype;\n if (\n // it can work only with native `setPrototypeOf`\n setPrototypeOf &&\n // we haven't completely correct pre-ES6 way for getting `new.target`, so use this\n isCallable(NewTarget = dummy.constructor) &&\n NewTarget !== Wrapper &&\n isObject(NewTargetPrototype = NewTarget.prototype) &&\n NewTargetPrototype !== Wrapper.prototype\n ) setPrototypeOf($this, NewTargetPrototype);\n return $this;\n};\n","var defineBuiltIn = require('../internals/define-built-in');\n\nmodule.exports = function (target, src, options) {\n for (var key in src) defineBuiltIn(target, key, src[key], options);\n return target;\n};\n","'use strict';\nvar create = require('../internals/object-create');\nvar defineBuiltInAccessor = require('../internals/define-built-in-accessor');\nvar defineBuiltIns = require('../internals/define-built-ins');\nvar bind = require('../internals/function-bind-context');\nvar anInstance = require('../internals/an-instance');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar iterate = require('../internals/iterate');\nvar defineIterator = require('../internals/iterator-define');\nvar createIterResultObject = require('../internals/create-iter-result-object');\nvar setSpecies = require('../internals/set-species');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar fastKey = require('../internals/internal-metadata').fastKey;\nvar InternalStateModule = require('../internals/internal-state');\n\nvar setInternalState = InternalStateModule.set;\nvar internalStateGetterFor = InternalStateModule.getterFor;\n\nmodule.exports = {\n getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {\n var Constructor = wrapper(function (that, iterable) {\n anInstance(that, Prototype);\n setInternalState(that, {\n type: CONSTRUCTOR_NAME,\n index: create(null),\n first: undefined,\n last: undefined,\n size: 0\n });\n if (!DESCRIPTORS) that.size = 0;\n if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });\n });\n\n var Prototype = Constructor.prototype;\n\n var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);\n\n var define = function (that, key, value) {\n var state = getInternalState(that);\n var entry = getEntry(that, key);\n var previous, index;\n // change existing entry\n if (entry) {\n entry.value = value;\n // create new entry\n } else {\n state.last = entry = {\n index: index = fastKey(key, true),\n key: key,\n value: value,\n previous: previous = state.last,\n next: undefined,\n removed: false\n };\n if (!state.first) state.first = entry;\n if (previous) previous.next = entry;\n if (DESCRIPTORS) state.size++;\n else that.size++;\n // add to index\n if (index !== 'F') state.index[index] = entry;\n } return that;\n };\n\n var getEntry = function (that, key) {\n var state = getInternalState(that);\n // fast case\n var index = fastKey(key);\n var entry;\n if (index !== 'F') return state.index[index];\n // frozen object case\n for (entry = state.first; entry; entry = entry.next) {\n if (entry.key == key) return entry;\n }\n };\n\n defineBuiltIns(Prototype, {\n // `{ Map, Set }.prototype.clear()` methods\n // https://tc39.es/ecma262/#sec-map.prototype.clear\n // https://tc39.es/ecma262/#sec-set.prototype.clear\n clear: function clear() {\n var that = this;\n var state = getInternalState(that);\n var data = state.index;\n var entry = state.first;\n while (entry) {\n entry.removed = true;\n if (entry.previous) entry.previous = entry.previous.next = undefined;\n delete data[entry.index];\n entry = entry.next;\n }\n state.first = state.last = undefined;\n if (DESCRIPTORS) state.size = 0;\n else that.size = 0;\n },\n // `{ Map, Set }.prototype.delete(key)` methods\n // https://tc39.es/ecma262/#sec-map.prototype.delete\n // https://tc39.es/ecma262/#sec-set.prototype.delete\n 'delete': function (key) {\n var that = this;\n var state = getInternalState(that);\n var entry = getEntry(that, key);\n if (entry) {\n var next = entry.next;\n var prev = entry.previous;\n delete state.index[entry.index];\n entry.removed = true;\n if (prev) prev.next = next;\n if (next) next.previous = prev;\n if (state.first == entry) state.first = next;\n if (state.last == entry) state.last = prev;\n if (DESCRIPTORS) state.size--;\n else that.size--;\n } return !!entry;\n },\n // `{ Map, Set }.prototype.forEach(callbackfn, thisArg = undefined)` methods\n // https://tc39.es/ecma262/#sec-map.prototype.foreach\n // https://tc39.es/ecma262/#sec-set.prototype.foreach\n forEach: function forEach(callbackfn /* , that = undefined */) {\n var state = getInternalState(this);\n var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n var entry;\n while (entry = entry ? entry.next : state.first) {\n boundFunction(entry.value, entry.key, this);\n // revert to the last existing entry\n while (entry && entry.removed) entry = entry.previous;\n }\n },\n // `{ Map, Set}.prototype.has(key)` methods\n // https://tc39.es/ecma262/#sec-map.prototype.has\n // https://tc39.es/ecma262/#sec-set.prototype.has\n has: function has(key) {\n return !!getEntry(this, key);\n }\n });\n\n defineBuiltIns(Prototype, IS_MAP ? {\n // `Map.prototype.get(key)` method\n // https://tc39.es/ecma262/#sec-map.prototype.get\n get: function get(key) {\n var entry = getEntry(this, key);\n return entry && entry.value;\n },\n // `Map.prototype.set(key, value)` method\n // https://tc39.es/ecma262/#sec-map.prototype.set\n set: function set(key, value) {\n return define(this, key === 0 ? 0 : key, value);\n }\n } : {\n // `Set.prototype.add(value)` method\n // https://tc39.es/ecma262/#sec-set.prototype.add\n add: function add(value) {\n return define(this, value = value === 0 ? 0 : value, value);\n }\n });\n if (DESCRIPTORS) defineBuiltInAccessor(Prototype, 'size', {\n configurable: true,\n get: function () {\n return getInternalState(this).size;\n }\n });\n return Constructor;\n },\n setStrong: function (Constructor, CONSTRUCTOR_NAME, IS_MAP) {\n var ITERATOR_NAME = CONSTRUCTOR_NAME + ' Iterator';\n var getInternalCollectionState = internalStateGetterFor(CONSTRUCTOR_NAME);\n var getInternalIteratorState = internalStateGetterFor(ITERATOR_NAME);\n // `{ Map, Set }.prototype.{ keys, values, entries, @@iterator }()` methods\n // https://tc39.es/ecma262/#sec-map.prototype.entries\n // https://tc39.es/ecma262/#sec-map.prototype.keys\n // https://tc39.es/ecma262/#sec-map.prototype.values\n // https://tc39.es/ecma262/#sec-map.prototype-@@iterator\n // https://tc39.es/ecma262/#sec-set.prototype.entries\n // https://tc39.es/ecma262/#sec-set.prototype.keys\n // https://tc39.es/ecma262/#sec-set.prototype.values\n // https://tc39.es/ecma262/#sec-set.prototype-@@iterator\n defineIterator(Constructor, CONSTRUCTOR_NAME, function (iterated, kind) {\n setInternalState(this, {\n type: ITERATOR_NAME,\n target: iterated,\n state: getInternalCollectionState(iterated),\n kind: kind,\n last: undefined\n });\n }, function () {\n var state = getInternalIteratorState(this);\n var kind = state.kind;\n var entry = state.last;\n // revert to the last existing entry\n while (entry && entry.removed) entry = entry.previous;\n // get next entry\n if (!state.target || !(state.last = entry = entry ? entry.next : state.state.first)) {\n // or finish the iteration\n state.target = undefined;\n return createIterResultObject(undefined, true);\n }\n // return step by kind\n if (kind == 'keys') return createIterResultObject(entry.key, false);\n if (kind == 'values') return createIterResultObject(entry.value, false);\n return createIterResultObject([entry.key, entry.value], false);\n }, IS_MAP ? 'entries' : 'values', !IS_MAP, true);\n\n // `{ Map, Set }.prototype[@@species]` accessors\n // https://tc39.es/ecma262/#sec-get-map-@@species\n // https://tc39.es/ecma262/#sec-get-set-@@species\n setSpecies(CONSTRUCTOR_NAME);\n }\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isForced = require('../internals/is-forced');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar InternalMetadataModule = require('../internals/internal-metadata');\nvar iterate = require('../internals/iterate');\nvar anInstance = require('../internals/an-instance');\nvar isCallable = require('../internals/is-callable');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar isObject = require('../internals/is-object');\nvar fails = require('../internals/fails');\nvar checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar inheritIfRequired = require('../internals/inherit-if-required');\n\nmodule.exports = function (CONSTRUCTOR_NAME, wrapper, common) {\n var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1;\n var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1;\n var ADDER = IS_MAP ? 'set' : 'add';\n var NativeConstructor = global[CONSTRUCTOR_NAME];\n var NativePrototype = NativeConstructor && NativeConstructor.prototype;\n var Constructor = NativeConstructor;\n var exported = {};\n\n var fixMethod = function (KEY) {\n var uncurriedNativeMethod = uncurryThis(NativePrototype[KEY]);\n defineBuiltIn(NativePrototype, KEY,\n KEY == 'add' ? function add(value) {\n uncurriedNativeMethod(this, value === 0 ? 0 : value);\n return this;\n } : KEY == 'delete' ? function (key) {\n return IS_WEAK && !isObject(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);\n } : KEY == 'get' ? function get(key) {\n return IS_WEAK && !isObject(key) ? undefined : uncurriedNativeMethod(this, key === 0 ? 0 : key);\n } : KEY == 'has' ? function has(key) {\n return IS_WEAK && !isObject(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);\n } : function set(key, value) {\n uncurriedNativeMethod(this, key === 0 ? 0 : key, value);\n return this;\n }\n );\n };\n\n var REPLACE = isForced(\n CONSTRUCTOR_NAME,\n !isCallable(NativeConstructor) || !(IS_WEAK || NativePrototype.forEach && !fails(function () {\n new NativeConstructor().entries().next();\n }))\n );\n\n if (REPLACE) {\n // create collection constructor\n Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER);\n InternalMetadataModule.enable();\n } else if (isForced(CONSTRUCTOR_NAME, true)) {\n var instance = new Constructor();\n // early implementations not supports chaining\n var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance;\n // V8 ~ Chromium 40- weak-collections throws on primitives, but should return false\n var THROWS_ON_PRIMITIVES = fails(function () { instance.has(1); });\n // most early implementations doesn't supports iterables, most modern - not close it correctly\n // eslint-disable-next-line no-new -- required for testing\n var ACCEPT_ITERABLES = checkCorrectnessOfIteration(function (iterable) { new NativeConstructor(iterable); });\n // for early implementations -0 and +0 not the same\n var BUGGY_ZERO = !IS_WEAK && fails(function () {\n // V8 ~ Chromium 42- fails only with 5+ elements\n var $instance = new NativeConstructor();\n var index = 5;\n while (index--) $instance[ADDER](index, index);\n return !$instance.has(-0);\n });\n\n if (!ACCEPT_ITERABLES) {\n Constructor = wrapper(function (dummy, iterable) {\n anInstance(dummy, NativePrototype);\n var that = inheritIfRequired(new NativeConstructor(), dummy, Constructor);\n if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });\n return that;\n });\n Constructor.prototype = NativePrototype;\n NativePrototype.constructor = Constructor;\n }\n\n if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) {\n fixMethod('delete');\n fixMethod('has');\n IS_MAP && fixMethod('get');\n }\n\n if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER);\n\n // weak collections should not contains .clear method\n if (IS_WEAK && NativePrototype.clear) delete NativePrototype.clear;\n }\n\n exported[CONSTRUCTOR_NAME] = Constructor;\n $({ global: true, constructor: true, forced: Constructor != NativeConstructor }, exported);\n\n setToStringTag(Constructor, CONSTRUCTOR_NAME);\n\n if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);\n\n return Constructor;\n};\n","'use strict';\nvar collection = require('../internals/collection');\nvar collectionStrong = require('../internals/collection-strong');\n\n// `Set` constructor\n// https://tc39.es/ecma262/#sec-set-objects\ncollection('Set', function (init) {\n return function Set() { return init(this, arguments.length ? arguments[0] : undefined); };\n}, collectionStrong);\n","var $ = require('../internals/export');\nvar toObject = require('../internals/to-object');\nvar nativeKeys = require('../internals/object-keys');\nvar fails = require('../internals/fails');\n\nvar FAILS_ON_PRIMITIVES = fails(function () { nativeKeys(1); });\n\n// `Object.keys` method\n// https://tc39.es/ecma262/#sec-object.keys\n$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {\n keys: function keys(it) {\n return nativeKeys(toObject(it));\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $map = require('../internals/array-iteration').map;\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('map');\n\n// `Array.prototype.map` method\n// https://tc39.es/ecma262/#sec-array.prototype.map\n// with adding support of @@species\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {\n map: function map(callbackfn /* , thisArg */) {\n return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n","var DESCRIPTORS = require('../internals/descriptors');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar objectKeys = require('../internals/object-keys');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar $propertyIsEnumerable = require('../internals/object-property-is-enumerable').f;\n\nvar propertyIsEnumerable = uncurryThis($propertyIsEnumerable);\nvar push = uncurryThis([].push);\n\n// `Object.{ entries, values }` methods implementation\nvar createMethod = function (TO_ENTRIES) {\n return function (it) {\n var O = toIndexedObject(it);\n var keys = objectKeys(O);\n var length = keys.length;\n var i = 0;\n var result = [];\n var key;\n while (length > i) {\n key = keys[i++];\n if (!DESCRIPTORS || propertyIsEnumerable(O, key)) {\n push(result, TO_ENTRIES ? [key, O[key]] : O[key]);\n }\n }\n return result;\n };\n};\n\nmodule.exports = {\n // `Object.entries` method\n // https://tc39.es/ecma262/#sec-object.entries\n entries: createMethod(true),\n // `Object.values` method\n // https://tc39.es/ecma262/#sec-object.values\n values: createMethod(false)\n};\n","var $ = require('../internals/export');\nvar $values = require('../internals/object-to-array').values;\n\n// `Object.values` method\n// https://tc39.es/ecma262/#sec-object.values\n$({ target: 'Object', stat: true }, {\n values: function values(O) {\n return $values(O);\n }\n});\n","import { BasePlugin } from '../base-plugins/BasePlugin';\n\n/**\n * @export\n * @class RadioGroup\n * @property {string} controlName\n * @property {string} featureName\n * @property {string} radioElements\n * @property {string} defaultValue\n */\nexport class RadioGroup extends BasePlugin {\n /**\n * creates an instance of RadioGroup\n * @constructor\n * @param {string} selector selector string for the radio group\n * @param {string} controlName the name of the control (used for warning logging only)\n * @param {string} [featureName='captionStyles'] the feature name used by Springroll. Defaults to captionStyles\n * @param {string} defaultValue the value attribute of the radio button that should be selected by default\n * @param {string} pluginName name of the plugin that instantiated the RadioGroup. Used for logging warnings\n * @memberof RadioGroupPlugin\n */\n constructor({selector, controlName, featureName = 'captionStyles', defaultValue, pluginName}) {\n super(pluginName);\n this.controlName = controlName;\n this.featureName = featureName;\n this.radioElements = document.querySelectorAll(selector);\n this.defaultValue = defaultValue;\n\n this.radioGroup = {};\n\n if (this.radioElements.length <= 0) {\n this.warn(`${this.controlName} RadioGroup found no HTMLElements with selector: ${selector}`);\n return;\n }\n\n this.radioElements.forEach(radio => {\n if (radio.type !== 'radio') {\n this.warn(`${this.controlName} was provided a non Radio Button element with selector: ${selector}`);\n return;\n }\n radio.value = radio.value.toLowerCase();\n\n this.radioGroup[radio.value] = radio;\n });\n\n if (!this.radioGroup[this.defaultValue]) {\n this.warn(`${this.controlName} RadioGroup for selector: ${selector} does not have a radio button with value ${this.defaultValue} to use as default value. Using first element as default`);\n this.defaultValue = this.radioElements[0].value.toLowerCase();\n }\n\n this.radioGroup[this.defaultValue].checked = true;\n }\n\n /**\n * @param {string[]} valuesArray Array of acceptable values to check against the radio group.\n * @return {boolean}\n * @memberof RadioGroup\n */\n hasOnly(valuesArray) {\n\n for (const key in this.radioGroup) {\n if (!valuesArray.includes(this.radioGroup[key].value)) {\n this.warn(`${this.controlName} radio button value: ${this.radioGroup[key].value} is not an accepted value. Skipping radio group`);\n return false;\n }\n }\n\n return true;\n }\n\n /**\n * @return {boolean}\n * @memberof RadioGroup\n */\n hasDuplicateValues() {\n return this.values.length !== [...new Set(this.values)].length;\n }\n\n /**\n * Adds change listeners to the radio buttons using the given callback function\n * @memberof RadioGroup\n * @param {Function} callBack event to fire on change\n */\n enableRadioEvents(callBack) {\n if (!this.radioGroup.length <= 0) {\n return;\n }\n\n const event = callBack;\n for (const radio in this.radioGroup) {\n this.radioGroup[radio].addEventListener('change', event);\n }\n }\n\n /**\n * removes the event listeners from the RadioGroup\n * @memberof RadioGroup\n * @param {Function} callBack event to fire on change\n */\n disableRadioEvents(callBack) {\n if (!this.radioGroup.length <= 0) {\n return;\n }\n for (const radio in this.radioGroup) {\n this.radioGroup[radio].removeEventListener('change', callBack);\n }\n }\n\n /**\n * enables display of the Radio buttons if the correct feature is present in the features list\n * @memberof RadioGroup\n * @param {object} data Object containing which features are enabled\n */\n displayRadios(data) {\n if (this.radioGroup.length <= 0 && data[this.featureName]) {\n this.warn(`${this.controlName} was not provided a valid input element or selector but '${this.featureName}' was included as a game feature`);\n return;\n }\n\n if (this.radioGroup.length <= 0) {\n return;\n }\n\n if (data[this.featureName]) {\n return;\n }\n\n for (const radio in this.radioGroup) {\n this.radioGroup[radio].style.display = 'none';\n }\n }\n\n /**\n * Reset the radio button states\n * @memberof RadioGroup\n */\n resetState() {\n this.radioGroup[this.defaultValue].checked = true;\n }\n\n /**\n * @readonly\n * @returns {number}\n * @memberof RadioGroup\n */\n get length() {\n return Object.keys(this.radioGroup).length;\n }\n\n /**\n * @readonly\n * @returns {number}\n * @memberof RadioGroup\n */\n get values() {\n return Object.values(this.radioGroup).map(radio => radio.value);\n }\n}\n","import { BasePlugin } from './BasePlugin';\nimport { RadioGroup } from '../ui-elements/RadioGroup';\n\n/**\n *\n *\n * @export\n * @class RadioGroupPlugin\n */\nexport class RadioGroupPlugin extends BasePlugin {\n /**\n *\n *Creates an instance of RadioGroupPlugin.\n * @constructor\n * @memberof RadioGroupPlugin\n * @param {string} name\n */\n constructor(cssSelector, name, {supportedValues, initialValue, controlName, featureName, radioCount}) {\n super(name);\n this.selectors = cssSelector ? cssSelector.split(',') : [];\n this.supportedValues = supportedValues;\n this.initialValue = supportedValues.includes(initialValue) ? initialValue : supportedValues[0];\n this.controlName = controlName;\n this.featureName = featureName;\n this.radioCount = radioCount;\n this.sendAllProperties = this.sendAllProperties.bind(this);\n\n this._currentValue = this.initialValue;\n\n this.radioGroups = this.setUpRadios(this.selectors);\n\n this.radioGroupsLength = this.radioGroups.length;\n }\n\n /**\n * @memberof RadioGroupPlugin\n * @param {string[]} selectors the separated selector strings used to target the radio button groups\n * @returns {RadioGroup[]}\n */\n setUpRadios(selectors) {\n const radioGroups = [];\n\n selectors.forEach((selector) => {\n const radioGroup = new RadioGroup({\n selector: selector.trim(),\n controlName: this.controlName,\n defaultValue: this.initialValue,\n pluginName: this.name,\n featureName: this.featureName\n });\n\n if (radioGroup.length !== this.radioCount) {\n this.warn(`Selector \"${selector}\" did not find exactly ${this.radioCount} radio buttons for ${this.controlName}. Skipping selector`);\n return;\n }\n\n if (!radioGroup.hasOnly(this.supportedValues)) {\n return;\n }\n\n if (radioGroup.hasDuplicateValues()) {\n this.warn(`Duplicate radio button values detected (values: ${radioGroup.values} ). Skipping radio group`);\n return;\n }\n\n radioGroups.push(radioGroup);\n });\n\n return radioGroups;\n }\n\n /**\n * @memberof RadioGroupPlugin\n */\n start() {\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Sends initial caption properties to the application\n * @memberof RadioGroupPlugin\n */\n sendAllProperties() {\n this.sendProperty(this.featureName, this.property);\n }\n\n /**\n * @memberof RadioGroupPlugin\n * @param {string} newValue\n */\n set currentValue(newValue) {\n if (!this.supportedValues.includes(newValue)) {\n return;\n }\n\n this._currentValue = newValue;\n\n for (let i = 0, l = this.radioGroups.length; i < l; i++) {\n this.radioGroups[i].radioGroup[newValue].checked = true;\n }\n }\n\n /**\n * @memberof RadioGroupPlugin\n * @return {string}\n */\n get currentValue() {\n return this._currentValue;\n }\n\n}\n","var uncurryThis = require('../internals/function-uncurry-this');\n\n// `thisNumberValue` abstract operation\n// https://tc39.es/ecma262/#sec-thisnumbervalue\nmodule.exports = uncurryThis(1.0.valueOf);\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar global = require('../internals/global');\nvar path = require('../internals/path');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isForced = require('../internals/is-forced');\nvar hasOwn = require('../internals/has-own-property');\nvar inheritIfRequired = require('../internals/inherit-if-required');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar isSymbol = require('../internals/is-symbol');\nvar toPrimitive = require('../internals/to-primitive');\nvar fails = require('../internals/fails');\nvar getOwnPropertyNames = require('../internals/object-get-own-property-names').f;\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar defineProperty = require('../internals/object-define-property').f;\nvar thisNumberValue = require('../internals/this-number-value');\nvar trim = require('../internals/string-trim').trim;\n\nvar NUMBER = 'Number';\nvar NativeNumber = global[NUMBER];\nvar PureNumberNamespace = path[NUMBER];\nvar NumberPrototype = NativeNumber.prototype;\nvar TypeError = global.TypeError;\nvar stringSlice = uncurryThis(''.slice);\nvar charCodeAt = uncurryThis(''.charCodeAt);\n\n// `ToNumeric` abstract operation\n// https://tc39.es/ecma262/#sec-tonumeric\nvar toNumeric = function (value) {\n var primValue = toPrimitive(value, 'number');\n return typeof primValue == 'bigint' ? primValue : toNumber(primValue);\n};\n\n// `ToNumber` abstract operation\n// https://tc39.es/ecma262/#sec-tonumber\nvar toNumber = function (argument) {\n var it = toPrimitive(argument, 'number');\n var first, third, radix, maxCode, digits, length, index, code;\n if (isSymbol(it)) throw TypeError('Cannot convert a Symbol value to a number');\n if (typeof it == 'string' && it.length > 2) {\n it = trim(it);\n first = charCodeAt(it, 0);\n if (first === 43 || first === 45) {\n third = charCodeAt(it, 2);\n if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix\n } else if (first === 48) {\n switch (charCodeAt(it, 1)) {\n case 66: case 98: radix = 2; maxCode = 49; break; // fast equal of /^0b[01]+$/i\n case 79: case 111: radix = 8; maxCode = 55; break; // fast equal of /^0o[0-7]+$/i\n default: return +it;\n }\n digits = stringSlice(it, 2);\n length = digits.length;\n for (index = 0; index < length; index++) {\n code = charCodeAt(digits, index);\n // parseInt parses a string to a first unavailable symbol\n // but ToNumber should return NaN if a string contains unavailable symbols\n if (code < 48 || code > maxCode) return NaN;\n } return parseInt(digits, radix);\n }\n } return +it;\n};\n\nvar FORCED = isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'));\n\nvar calledWithNew = function (dummy) {\n // includes check on 1..constructor(foo) case\n return isPrototypeOf(NumberPrototype, dummy) && fails(function () { thisNumberValue(dummy); });\n};\n\n// `Number` constructor\n// https://tc39.es/ecma262/#sec-number-constructor\nvar NumberWrapper = function Number(value) {\n var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value));\n return calledWithNew(this) ? inheritIfRequired(Object(n), this, NumberWrapper) : n;\n};\n\nNumberWrapper.prototype = NumberPrototype;\nif (FORCED && !IS_PURE) NumberPrototype.constructor = NumberWrapper;\n\n$({ global: true, constructor: true, wrap: true, forced: FORCED }, {\n Number: NumberWrapper\n});\n\n// Use `internal/copy-constructor-properties` helper in `core-js@4`\nvar copyConstructorProperties = function (target, source) {\n for (var keys = DESCRIPTORS ? getOwnPropertyNames(source) : (\n // ES3:\n 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +\n // ES2015 (in case, if modules with ES2015 Number statics required before):\n 'EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,' +\n // ESNext\n 'fromString,range'\n ).split(','), j = 0, key; keys.length > j; j++) {\n if (hasOwn(source, key = keys[j]) && !hasOwn(target, key)) {\n defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n }\n};\n\nif (IS_PURE && PureNumberNamespace) copyConstructorProperties(path[NUMBER], PureNumberNamespace);\nif (FORCED || IS_PURE) copyConstructorProperties(path[NUMBER], NativeNumber);\n","import { SavedData } from '../SavedData';\n\n/**\n * @export\n * @class Slider\n */\nexport class Slider {\n /**\n *Creates an instance of Slider\n * @param {object} params\n * @param {string | HTMLInputElement} params.slider the slider element or a selector string\n * @param {string} params.control the feature that this slider controols\n * @param {number} [min=0] slider min value\n * @param {number} [max=1] slider max value\n * @param {number} [step=0.1] slider step value\n * @param {number} [defaultValue=1] slider starting value\n * @memberof SliderPlugin\n */\n constructor({\n slider,\n control,\n min = 0,\n max = 1,\n step = 0.1,\n defaultValue = 1\n }) {\n this.min = min;\n this.max = max;\n this.step = step;\n this.sliderValue = defaultValue;\n this.control = control;\n this.slider = this.setUpSlider(slider, control);\n }\n\n /**\n * @param {string | HTMLInputElement | HTMLElement} slider\n * @param {string} control The control element (sensitivity, difficulty, pointer size, etc) this slider will be controlling\n * @returns {Element | HTMLElement}\n * @memberof Slider\n */\n setUpSlider(slider, control) {\n if ('string' === typeof slider) {\n slider = document.querySelector(slider);\n }\n\n if (!slider || 'range' !== slider.type) {\n return null;\n }\n const value = SavedData.read(control);\n\n slider.min = this.min;\n slider.max = this.max;\n slider.step = this.step;\n\n if ((value || value === 0) && value.toString().trim().length > 0) {\n slider.value = value;\n this.sliderValue = value;\n } else {\n slider.value = this.sliderValue;\n }\n\n return slider;\n }\n\n /**\n * Controls the range of the slider\n * @param {number} i\n * @returns\n * @memberof Slider\n */\n sliderRange(i) {\n if (i < this.min) {\n return this.min;\n } else if (i > this.max) {\n return this.max;\n } else {\n return i;\n }\n }\n\n /**\n * Adds change and input listeners to the slider using the given callback function\n * @memberof Slider\n * @param {Function} callBack event to fire on change or input\n */\n enableSliderEvents(callBack) {\n if (!this.slider) {\n return;\n }\n\n const event = callBack;\n this.slider.addEventListener('change', event);\n this.slider.addEventListener('input', event);\n }\n\n /**\n * removes the event listeners from the given slider.\n * @memberof Slider\n * @param {Function} callBack event to fire on change or input\n */\n disableSliderEvents(callBack) {\n if (!this.slider) {\n return;\n }\n const event = callBack;\n this.slider.removeEventListener('change', event);\n this.slider.removeEventListener('input', event);\n }\n /**\n * enables display of the Slider if it is present in the features list\n * @memberof Slider\n * @param {object} data Object containing which features are enabled\n */\n displaySlider(data) {\n if (!this.slider && data[this.control]) {\n console.warn(`${this.control} was not provided a valid input element or selector but was included as a game feature`);\n }\n\n if (!this.slider) {\n return;\n }\n\n this.slider.style.display = data[this.control] ? '' : 'none';\n }\n\n /**\n * @param {Event} event the event to be fired on the slider\n * @memberof Slider\n */\n dispatchEvent(event) {\n this.slider.dispatchEvent(event);\n }\n\n /**\n * @readonly\n * @returns {string}\n * @memberof Slider\n */\n get value() {\n return this.slider.value;\n }\n\n /**\n * @memberof Slider\n */\n set value(value) {\n this.slider.value = value;\n }\n}\n","/**\n * @export\n * @class Button\n */\nexport class Button {\n /**\n *Creates an instance of Button\n * @param {object} params\n * @param {string | HTMLElement} params.button the button itself or a selector string\n * @param {Function} params.onClick the function to call when the button is clicked\n * @param {string} channel the feature this button controls\n * @memberof ButtonPlugin\n */\n constructor({ button, onClick, channel }) {\n this.button =\n button instanceof HTMLElement ? button : document.querySelector(button);\n this.onClick = onClick;\n this.channel = channel;\n\n if (this.button) {\n this.button.addEventListener('click', onClick);\n }\n }\n\n /**\n * enables display of the button if it is present in the features list\n * @memberof Button\n * @param {object} data Object containing which features are enabled\n */\n displayButton(data) {\n if (!(this.button instanceof HTMLElement)) {\n return;\n }\n\n this.button.style.display =\n data[this.channel] || this.channel === 'pause' || this.channel === 'hints'\n ? ''\n : 'none';\n }\n\n /**\n * enables display of the button\n * @memberof Button\n */\n enableButton() {\n if (!this.button) {\n return;\n }\n this.button.classList.remove('disabled');\n }\n\n /**\n * \n * @param {string} className The classname to be appended to the end of the class property\n */\n addClass(className) {\n this.button.className = this.button.className ? this.button.className + ` ${ className }` : ` ${ className }`;\n }\n}\n","import { BasePlugin } from './BasePlugin';\nimport { Slider } from '../ui-elements';\n\n/**\n *\n *\n * @export\n * @class SliderPlugin\n */\nexport class SliderPlugin extends BasePlugin {\n /**\n *\n *Creates an instance of SliderPlugin.\n * @constructor\n * @memberof SliderPlugin\n * @param {string} cssSelector\n * @param {string} name\n * @param {object} options\n * @param {string | number} [options.defaultValue='0.5']\n * @param {string | number} [options.minValue='0']\n * @param {string | number} [options.maxValue='1']\n * @param {string} [options.featureName] Springroll Core feature name that the plugin is supporting\n */\n constructor(cssSelector, name, {defaultValue = '0.5', minValue = '0', maxValue = '1', featureName }) {\n super(name);\n this.featureName = featureName;\n this.minValue = minValue;\n this.defaultValue = defaultValue;\n this.maxValue = maxValue;\n this._currentValue = defaultValue;\n this.sliders = this.setUpSliders(cssSelector);\n this.slidersLength = this.sliders.length;\n this.sendAllProperties = this.sendAllProperties.bind(this);\n\n if (0 >= this.slidersLength) {\n this.warn('Plugin was not provided any valid HTML Elements');\n return;\n }\n }\n\n /**\n * @memberof SliderPlugin\n * @param {string[]} selectors the selector strings used to target the input elements\n * @returns {Slider[]}\n */\n setUpSliders(selectors) {\n const sliders = [];\n\n if (selectors instanceof HTMLElement) {\n sliders.push(new Slider({\n slider: selectors,\n control: this.featureName,\n defaultValue: this.defaultValue,\n minValue: this.minValue,\n maxValue: this.maxValue\n }));\n } else {\n document.querySelectorAll(selectors).forEach((slider) => {\n sliders.push(new Slider({\n slider: slider,\n control: this.featureName,\n defaultValue: this.defaultValue,\n minValue: this.minValue,\n maxValue: this.maxValue\n }));\n });\n }\n\n return sliders;\n }\n\n /**\n * @memberof SliderPlugin\n */\n init() {\n this.client.on(\n 'features',\n function(features) {\n if (!features.data) {\n return;\n }\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].displaySlider(features.data);\n }\n }.bind(this)\n );\n }\n\n /**\n * @memberof SliderPlugin\n */\n start() {\n this._currentValue = this.sliders[0].value; //update current value to the saved data value set in Slider.\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Sends initial caption properties to the application\n * @memberof SliderPlugin\n */\n sendAllProperties() {\n this.sendProperty(this.featureName, this.currentValue);\n }\n\n /**\n * @memberof SliderPlugin\n * @param {string} newValue\n */\n set currentValue(newValue) {\n\n //just use first slider to ensure the number is valid.\n this._currentValue = this.sliders[0].sliderRange(Number(newValue));\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].value = newValue;\n }\n }\n\n /**\n * @memberof SliderPlugin\n * @return {string}\n */\n get currentValue() {\n return this._currentValue;\n }\n\n}\n","import { SavedData } from '../SavedData';\nimport { ButtonPlugin } from '../base-plugins';\nimport { RadioGroup } from '../ui-elements';\n\nconst DEFAULT_CAPTIONS_STYLES = {\n size: 'medium',\n background: 'black',\n color: 'white',\n edge: 'none',\n font: 'arial',\n align: 'top'\n};\n\nconst DEFAULT_COLOR_STYLE = {color: 'white', background: 'black'};\nconst INVERTED_COLOR_STYLE = {color: 'black', background: 'white'};\nconst FONT_SIZE_VALUES = ['small', 'medium', 'large'];\nconst COLOR_VALUES = ['default', 'inverted'];\nconst ALIGN_VALUES = ['top', 'bottom'];\n\n/**\n * @export\n * @class CaptionsStylePlugin\n * @property {object} captionsStyles The collection of captions styles\n * @property {string[]} fontSizeSelectors selector strings for the radio button groups\n * @property {string[]} colorSelectors selector strings for the radio button groups\n * @property {string[]} alignmentSelectors selector strings for the radio button groups\n * @property {Object[]} fontSizeRadios array that contains each radio group\n * @property {Object[]} colorRadios array that contains each radio group\n * @property {Object[]} alignmentRadios array that contains each radio group\n * @property {number} fontSizeRadiosLength Length of the fontSizeRadios array\n * @property {number} colorRadiosLength Length of the colorRadios array\n * @property {number} alignmentRadiosLength Length of the alignmentRadios array\n * @extends {ButtonPlugin}\n */\nexport class CaptionsStylePlugin extends ButtonPlugin {\n /**\n * Creates an instance of CaptionsStylePlugin.\n * @param {string} fontSizeRadios selector string for one or more radio groups for caption font size\n * @param {string} colorRadios selector string for one or more radio groups for caption font/background colors\n * @param {string} alignmentRadios selector string for one or more radio groups for caption position\n * @param {string} [defaultFontSize='medium'] Default selected font size\n * @param {string} [defaultColor='default'] Default selected color\n * @param {string} [defaultAlignment='top'] Default selected alignment\n * @memberof CaptionsStylePlugin\n */\n constructor(fontSizeRadios, colorRadios, alignmentRadios,\n { defaultFontSize = 'medium', defaultColor = 'default', defaultAlignment = 'top' } = {}\n ) {\n super('Caption-Button-Plugin');\n this.sendAllProperties = this.sendAllProperties.bind(this);\n this.captionsStyles = Object.assign(\n {},\n DEFAULT_CAPTIONS_STYLES,\n SavedData.read(CaptionsStylePlugin.captionStyleKey) || {}\n );\n\n //split the selector strings into individual selectors.\n //Helps keep the input style consistent across plugins.\n this.fontSizeSelectors = fontSizeRadios ? fontSizeRadios.split(',') : [];\n this.colorSelectors = colorRadios ? colorRadios.split(',') : [];\n this.alignmentSelectors = alignmentRadios ? alignmentRadios.split(',') : [];\n\n this.defaultFontSize = FONT_SIZE_VALUES.includes(defaultFontSize) ? defaultFontSize : FONT_SIZE_VALUES[0];\n this.defaultColor = COLOR_VALUES.includes(defaultColor) ? defaultColor : COLOR_VALUES[0];\n this.defaultAlignment = ALIGN_VALUES.includes(defaultAlignment) ? defaultAlignment : ALIGN_VALUES[0];\n\n this.fontSizeRadios = [];\n this.colorRadios = [];\n this.alignmentRadios = [];\n\n this.fontSizeRadios = this.setUpFontSizeRadios(this.fontSizeSelectors);\n this.colorRadios = this.setUpColorRadios(this.colorSelectors);\n this.alignmentRadios = this.setUpAlignmentRadios(this.alignmentSelectors);\n\n this._captionsMuted = false;\n\n this.alignmentRadiosLength = this.alignmentRadios.length;\n this.fontSizeRadiosLength = this.fontSizeRadios.length;\n this.colorRadiosLength = this.colorRadios.length;\n\n if (0 >= (this.alignmentRadiosLength + this.fontSizeRadiosLength + this.colorRadiosLength)) {\n this.warn(\n 'Plugin was not provided any input elements'\n );\n return;\n }\n\n //set up change events\n for (let i = 0; i < this.colorRadiosLength; i++) {\n this.colorRadios[i].enableRadioEvents(this.onColorChange.bind(this));\n }\n for (let i = 0; i < this.alignmentRadiosLength; i++) {\n this.alignmentRadios[i].enableRadioEvents(this.onAlignmentChange.bind(this));\n }\n for (let i = 0; i < this.fontSizeRadiosLength; i++) {\n this.fontSizeRadios[i].enableRadioEvents(this.onFontSizeChange.bind(this));\n }\n }\n\n /**\n * @memberof CaptionsStylePlugin\n * @param {string[]} selectors the separated selector strings used to target the radio button groups\n * @returns {RadioGroup[]}\n */\n setUpFontSizeRadios(selectors) {\n const radioGroups = [];\n\n selectors.forEach((selector) => {\n const radioGroup = new RadioGroup({\n selector: selector.trim(),\n controlName: 'Font Size',\n defaultValue: this.defaultFontSize,\n pluginName: 'Caption-Button-Plugin'\n });\n\n if (radioGroup.length !== 3) {\n this.warn(`Selector \"${selector}\" did not find exactly three(3) radio buttons for caption font size. Skipping selector`);\n return;\n }\n\n if (!radioGroup.hasOnly(FONT_SIZE_VALUES)) {\n return;\n }\n\n if (radioGroup.hasDuplicateValues()) {\n this.warn(`Duplicate radio button values detected (values: ${radioGroup.values} ). Skipping radio group`);\n return;\n }\n\n radioGroups.push(radioGroup);\n });\n\n return radioGroups;\n }\n\n /**\n * @memberof CaptionsStylePlugin\n * @param {string[]} selectors the separated selector strings used to target the radio button groups\n * @returns {RadioGroup[]}\n */\n setUpColorRadios(selectors) {\n const radioGroups = [];\n\n selectors.forEach((selector) => {\n const radioGroup = new RadioGroup({\n selector: selector.trim(),\n controlName: 'Color',\n defaultValue: this.defaultColor,\n pluginName: 'Caption-Button-Plugin'\n });\n\n if (radioGroup.length !== 2) {\n this.warn(`Selector \"${selector}\" did not find exactly two(2) radio buttons for caption colors. Skipping selector`);\n return;\n }\n\n if (!radioGroup.hasOnly(COLOR_VALUES)) {\n return;\n }\n\n if (radioGroup.hasDuplicateValues()) {\n this.warn(`Duplicate radio button values detected (values: ${radioGroup.values} ). Skipping radio group`);\n return;\n }\n\n radioGroups.push(radioGroup);\n });\n\n return radioGroups;\n }\n\n /**\n * @memberof CaptionsStylePlugin\n * @param {string[]} selectors the separated selector strings used to target the radio button groups\n * @returns {RadioGroup[]}\n */\n setUpAlignmentRadios(selectors) {\n const radioGroups = [];\n\n selectors.forEach((selector) => {\n const radioGroup = new RadioGroup({\n selector: selector.trim(),\n controlName: 'Alignment',\n defaultValue: this.defaultAlignment,\n pluginName: 'Caption-Button-Plugin'\n });\n if (radioGroup.length !== 2) {\n this.warn(`Selector \"${selector}\" did not find exactly two(2) radio buttons for caption alignment. Skipping selector`);\n return;\n }\n\n if (!radioGroup.hasOnly(ALIGN_VALUES)) {\n return;\n }\n\n if (radioGroup.hasDuplicateValues()) {\n this.warn(`Duplicate radio button values detected (values: ${radioGroup.values} ). Skipping radio group`);\n return;\n }\n\n radioGroups.push(radioGroup);\n });\n\n return radioGroups;\n }\n\n /**\n * @memberof CaptionsStylePlugin\n */\n init() {\n // Handle the features request\n this.client.on(\n 'features',\n function($event) {\n\n for (const radio of this.radios) {\n radio.displayRadios($event.data);\n }\n\n }.bind(this)\n );\n\n this.client.on(\n 'caption-set-style',\n function($event) {\n this.setCaptionsStyles($event.data || {});\n }.bind(this)\n );\n }\n /**\n * @memberof CaptionsStylePlugin\n */\n start() {\n this.setCaptionsStyles(SavedData.read(CaptionsStylePlugin.captionStyleKey));\n\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Sends initial caption properties to the application\n * @memberof CaptionsStylePlugin\n */\n sendAllProperties() {\n this.sendProperty(CaptionsStylePlugin.captionStyleKey, this.captionsStyles);\n }\n /**\n * Fired whenever the font size radios are updated\n * @param {Event} e\n * @memberof CaptionsStylePlugin\n */\n onFontSizeChange(e) {\n this.setCaptionsStyles('size', e.target.value);\n\n this.fontSizeRadios.forEach((group) => {\n group.radioGroup[e.target.value].checked = true;\n });\n }\n\n /**\n * Fired whenever the alignment radios are updated\n * @param {Event} e\n * @memberof CaptionsStylePlugin\n */\n onAlignmentChange(e) {\n this.setCaptionsStyles('align', e.target.value);\n\n this.alignmentRadios.forEach((group) => {\n group.radioGroup[e.target.value].checked = true;\n });\n }\n\n /**\n * Fired whenever the color radios are updated\n * @param {Event} e\n * @memberof CaptionsStylePlugin\n */\n onColorChange(e) {\n const styles = e.target.value === 'default' ? DEFAULT_COLOR_STYLE : INVERTED_COLOR_STYLE;\n\n this.setCaptionsStyles(styles);\n\n this.colorRadios.forEach((group) => {\n group.radioGroup[e.target.value].checked = true;\n });\n }\n\n /**\n * Reset the captions styles\n * @param {Event} e\n * @memberof CaptionsStylePlugin\n */\n clearCaptionsStyles() {\n this.captionsStyles = Object.assign({}, DEFAULT_CAPTIONS_STYLES);\n this.setCaptionsStyles();\n\n for (const radio of this.radios) {\n radio.resetState();\n }\n }\n\n /**\n * Get the captions styles\n * @param {string} [prop] The optional property, values are \"size\", \"edge\", \"font\", \"background\", \"color\"\n * @return {object | string} The collection of styles, see setCaptionsStyles for more info.\n * @memberof CaptionsStylePlugin\n */\n getCaptionsStyles(prop) {\n return prop ? this.captionsStyles[prop] : this.captionsStyles;\n }\n\n /**\n * Set the captions styles\n *\n * @param {object} [styles] The style options or the name of the\n * property (e.g., \"color\", \"edge\", \"font\", \"background\", \"size\")\n * @param {string} [styles.color='white'] The text color, the default is white\n * @param {string} [styles.edge='none'] The edge style, default is none\n * @param {string} [styles.font='arial'] The font style, default is arial\n * @param {string} [styles.background='black'] The background style, black\n * @param {string} [styles.size='md'] The font style default is medium\n * @param {string} [styles.align='top'] The align style default is top of the window\n * @param {string} [value=''] If setting styles parameter as a string, this is the value of the property.\n * @memberof CaptionsStylePlugin\n */\n setCaptionsStyles(styles = DEFAULT_CAPTIONS_STYLES, value = '') {\n if (typeof styles === 'object') {\n Object.assign(this.captionsStyles, styles);\n } else if (typeof styles === 'string') {\n this.captionsStyles[styles] = value;\n }\n\n SavedData.write(CaptionsStylePlugin.captionStyleKey, this.captionsStyles);\n if (this.client) {\n this.client.send(CaptionsStylePlugin.captionStyleKey, this.captionsStyles);\n }\n }\n\n /**\n * @readonly\n * @returns {number}\n * @memberof RadioGroup\n */\n get radios() {\n return this.colorRadios\n .concat(this.alignmentRadios)\n .concat(this.fontSizeRadios);\n }\n /**\n * Get captionStyle Key\n * @readonly\n * @static\n * @memberof CaptionStyleKey\n * @returns {string}\n */\n static get captionStyleKey() {\n return 'captionsStyles';\n }\n\n}\n","import { SavedData } from '../SavedData';\nimport { ButtonPlugin } from '../base-plugins';\nimport { Button } from '../ui-elements';\n\n/**\n * @export\n * @class CaptionsTogglePlugin\n * @property {Button[]} _captionsButtons An array of caption mute buttons\n * @property {boolean} _captionsMuted True if captions are muted\n * @property {number} captionsButtonLength The length of the captionsButtons array\n * @extends {ButtonPlugin}\n */\nexport class CaptionsTogglePlugin extends ButtonPlugin {\n /**\n *Creates an instance of CaptionsTogglePlugin.\n * @param {string | HTMLElement} captionsButtons selector string for one or more captions mute buttons\n * @memberof CaptionsTogglePlugin\n */\n constructor(captionsButtons) {\n super('Caption-Button-Plugin');\n this.sendAllProperties = this.sendAllProperties.bind(this);\n\n this._captionsButtons = [];\n\n if ( captionsButtons instanceof HTMLElement ) {\n this._captionsButtons[0] = new Button({\n button: captionsButtons,\n onClick: this.captionsButtonClick.bind(this),\n channel: 'captions'\n });\n } else {\n document.querySelectorAll(captionsButtons).forEach((button) => {\n this._captionsButtons.push(new Button({\n button: button,\n onClick: this.captionsButtonClick.bind(this),\n channel: 'captions'\n }));\n });\n }\n\n this._captionsMuted = false;\n this.captionsButtonLength = this._captionsButtons.length;\n\n if (0 >= this.captionsButtonLength) {\n this.warn(\n 'Plugin was not provided any valid button or input elements'\n );\n return;\n }\n }\n\n /**\n * @memberof CaptionsTogglePlugin\n */\n init() {\n // Handle the features request\n this.client.on(\n 'features',\n function($event) {\n for (let i = 0; i < this.captionsButtonLength; i ++) {\n this._captionsButtons[i].displayButton($event.data);\n }\n\n if (null === SavedData.read(CaptionsTogglePlugin.captionsToggleKey)) {\n return;\n }\n\n this.captionsMuted = !!SavedData.read(CaptionsTogglePlugin.captionsToggleKey);\n\n }.bind(this)\n );\n }\n /**\n * @memberof CaptionsTogglePlugin\n */\n start() {\n this.captionsMuted = !!SavedData.read(CaptionsTogglePlugin.captionsToggleKey);\n\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Sends initial caption properties to the application\n * @memberof CaptionsTogglePlugin\n */\n sendAllProperties() {\n this.sendProperty(CaptionsTogglePlugin.captionsToggleKey, this.captionsMuted);\n }\n\n /**\n * @memberof CaptionsTogglePlugin\n */\n captionsButtonClick() {\n this.captionsMuted = !this.captionsMuted;\n }\n\n /**\n * @readonly\n * @memberof CaptionsTogglePlugin\n */\n get captionsMuted() {\n return this._captionsMuted;\n }\n\n /**\n * @param {boolean} muted\n * @memberof CaptionsTogglePlugin\n */\n set captionsMuted(muted) {\n this._captionsMuted = muted;\n this._setMuteProp(\n 'captionsMuted',\n this._captionsButtons,\n this._captionsMuted\n );\n }\n\n /**\n * Get CaptionToggle Key\n * @readonly\n * @static\n * @memberof captionsToggleKey\n * @returns {string}\n */\n static get captionsToggleKey() {\n return 'captionsMuted';\n }\n}\n","import { ButtonPlugin } from '../base-plugins';\nimport { Button } from '../ui-elements';\n\n/**\n * Requests a hint or help from the game\n * @class HelpPlugin\n * @property {boolean} paused\n * @property {boolean} _helpEnabled\n * @property {boolean} onPause\n * @property {number} helpButtonsLength\n * @extends {ButtonPlugin}\n * @export\n */\nexport class HelpPlugin extends ButtonPlugin {\n /**\n * Creates an instance of HelpPlugin.\n * @param {string | HTMLElement} helpButtons The selector or HTMLElement for the button\n * @memberof HelpPlugin\n */\n constructor(helpButtons) {\n super('Help-Button-Plugin');\n\n this._helpButtons = [];\n\n if (helpButtons instanceof HTMLElement) {\n this._helpButtons[0] = new Button({\n button: helpButtons,\n onClick: this.helpButtonClick.bind(this),\n channel: 'hints' // the check to see if this feature exists is different than most so passing this ensures it'll work the same.\n });\n } else {\n document.querySelectorAll(helpButtons).forEach((button) => {\n this._helpButtons.push(\n new Button({\n button: button,\n onClick: this.helpButtonClick.bind(this),\n channel: 'hints'\n })\n );\n });\n }\n\n this.paused = false;\n this._helpEnabled = false;\n this.onPause = this.onPause.bind(this);\n this.helpButtonsLength = this._helpButtons.length;\n\n if (this.helpButtonsLength <= 0) {\n this.warn('Plugin was not provided any valid button elements');\n }\n }\n /**\n * Called when the game is either paused or resumed\n * @param {object} $event\n * @memberof HelpPlugin\n */\n onPause($event) {\n this.paused = $event.data.paused;\n // Disable the help button when paused if it's active\n if (\n this.paused &&\n this.helpEnabled\n ) {\n for (let i = 0; i < this.helpButtonsLength; i++) {\n this._helpButtons[i].button.setAttribute('data-paused', 'true');\n }\n this.helpEnabled = false;\n } else {\n for (let i = 0; i < this.helpButtonsLength; i++) {\n if (this._helpButtons[i].button.getAttribute('data-paused')) {\n this._helpButtons[i].button.setAttribute('data-paused', '');\n this.helpEnabled = true;\n }\n }\n }\n }\n\n /**\n *\n *\n * @memberof HelpPlugin\n */\n helpButtonClick() {\n if (\n !this.paused &&\n this.helpEnabled\n ) {\n this.client.send('playHelp');\n }\n }\n\n /**\n * @memberof HelpPlugin\n */\n init() {\n // Handle pause\n this.client.on('paused', this.onPause);\n\n // Handle features changed\n this.client.on(\n 'features',\n function(features) {\n this.helpEnabled = features.data.hints;\n for (let i = 0; i < this.helpButtonsLength; i++) {\n this._helpButtons[i].displayButton(features.data);\n }\n }.bind(this)\n );\n\n this.client.on(\n 'helpEnabled',\n function(event) {\n this._helpEnabled = !!event.data;\n }.bind(this)\n );\n }\n\n /**\n * @memberof HelpPlugin\n */\n get helpEnabled() {\n return this._helpEnabled;\n }\n\n /**\n * Fired when the enabled status of the help button changes\n * @function helpEnabled\n * @param {boolean} enabled If the help button is enabled\n * @memberof HelpPlugin\n */\n set helpEnabled(enabled) {\n this._helpEnabled = enabled;\n for (let i = 0; i < this.helpButtonsLength; i++) {\n this._helpButtons[i].button.classList.remove('disabled');\n this._helpButtons[i].button.classList.remove('enabled');\n this._helpButtons[i].button.classList.add(enabled ? 'enabled' : 'disabled');\n }\n\n this.client.trigger('helpEnabled');\n }\n\n /**\n * @readonly\n * @static\n * @memberof HelpPlugin\n * @returns {string}\n */\n static get helpKey() {\n return 'help';\n }\n\n}\n","import { ButtonPlugin } from '../base-plugins';\nimport { PageVisibility } from '../PageVisibility';\nimport { Button } from '../ui-elements';\n/**\n * @class Container\n * @property {object[]} sliders an array of all slider objects attached to PausePlugin\n * @extends ButtonPlugin\n */\nexport class PausePlugin extends ButtonPlugin {\n /**\n * Creates an instance of PausePlugin.\n * @param {string | HTMLElement} pauseButton selector string or HTML Element for the input(s)\n * @param {boolean} manageOwnVisibility whether the plugin should manage container's visibility or some other source will handle it\n * @memberof PausePlugin\n */\n constructor(pauseButton, manageOwnVisibility = true) {\n super('Pause-Button-plugin');\n this._manageOwnVisibility = manageOwnVisibility;\n this._appBlurred = false;\n this._containerBlurred = false;\n this._focusTimer = null;\n this._isManualPause = false;\n this._keepFocus = false;\n this._paused = false;\n this.iframe = null;\n this.focusApp = this.focusApp.bind(this);\n this.manageFocus = this.manageFocus.bind(this);\n this.onKeepFocus = this.onKeepFocus.bind(this);\n this.onFocus = this.onFocus.bind(this);\n const onPauseToggle = this.onPauseToggle.bind(this);\n\n this.pauseDisabled = false;\n this._pauseButton = [];\n\n this.pageVisibility = new PageVisibility(\n this.onContainerFocus.bind(this),\n this.onContainerBlur.bind(this)\n );\n\n this.pageVisibility.enabled = this.manageOwnVisibility;\n\n if (pauseButton instanceof HTMLElement) {\n this._pauseButton[0] = new Button({\n button: pauseButton,\n onClick: onPauseToggle,\n channel: PausePlugin.pauseKey\n });\n } else {\n document.querySelectorAll(pauseButton).forEach((button) => {\n this._pauseButton.push(new Button({\n button: button,\n onClick: onPauseToggle,\n channel: PausePlugin.pauseKey\n }));\n });\n }\n }\n\n /**\n * updates _paused and also sends the pause event to the application\n * @memberof PausePlugin\n * @param {Boolean} paused\n */\n set pause(paused) {\n paused = !!paused;\n\n if (this.pauseDisabled) {\n return;\n }\n this._paused = paused;\n\n this.client.send(PausePlugin.pauseKey, paused);\n this.client.trigger(paused ? 'paused' : 'resumed', { paused });\n\n for (let i = 0, l = this._pauseButton.length; i < l; i++) {\n this._pauseButton[i].button.classList.remove('unpaused');\n this._pauseButton[i].button.classList.remove('paused');\n this._pauseButton[i].button.classList.add(paused ? 'paused' : 'unpaused');\n }\n }\n\n /**\n * @memberof PausePlugin\n * @returns {Boolean}\n */\n get pause() {\n return this._paused;\n }\n\n /**\n * updates _manageOwnVisibility and also re-enables pageVisibility\n * @memberof PausePlugin\n * @param {Boolean} manageOwnVisibility\n */\n set manageOwnVisibility(manageOwnVisibility) {\n this._manageOwnVisibility = manageOwnVisibility;\n\n this.pageVisibility.enabled = this._manageOwnVisibility;\n }\n\n /**\n * @memberof PausePlugin\n * @returns {Boolean}\n */\n get manageOwnVisibility() {\n return this._manageOwnVisibility;\n }\n\n /**\n * forces focus onto the iframe application window\n * @memberof PausePlugin\n */\n focusApp() {\n if (!this.hasDom) {\n // We don't have a dom with a content window, fail quietly\n return;\n }\n\n this.iframe.contentWindow.focus();\n }\n\n /**\n * blurs the application iframe window\n * @memberof PausePlugin\n */\n blurApp() {\n if (!this.hasDom) {\n return;\n }\n this.iframe.contentWindow.blur();\n }\n\n /**\n * Determines what pause state should be sent, if any, on focus or blur events.\n * @method manageFocus\n * @memberof PausePlugin\n */\n manageFocus() {\n if (!this.manageOwnVisibility) {\n return;\n }\n // Unfocus on the iframe\n if (this._keepFocus) {\n this.blurApp();\n }\n\n // we only need one delayed call, at the end of any\n // sequence of rapidly-fired blur/focus events\n if (this._focusTimer) {\n clearTimeout(this._focusTimer);\n }\n\n // Delay setting of 'paused' in case we get another focus event soon.\n // Focus events are sent to the container asynchronously, and this was\n // causing rapid toggling of the pause state and related issues,\n // especially in Internet Explorer\n this._focusTimer = setTimeout(\n function () {\n this._focusTimer = null;\n // A manual pause cannot be overriden by focus events.\n // User must click the resume button.\n if (this._isManualPause) {\n return;\n }\n\n this.pause = Boolean(this._containerBlurred && this._appBlurred);\n\n // Focus on the content window when blurring the app\n // but selecting the container\n if (this._keepFocus && !this._containerBlurred && this._appBlurred) {\n this.focusApp();\n }\n }.bind(this),\n 100\n );\n }\n\n /**\n * Handle the keep focus event for the window\n * @method onKeepFocus\n * @memberof PausePlugin\n * @private\n */\n onKeepFocus($event) {\n this._keepFocus = !!$event.data;\n this.manageFocus();\n }\n\n /**\n * Handle focus events sent from iFrame children\n * @method onFocus\n * @memberof PausePlugin\n * @private\n */\n onFocus($event) {\n this._appBlurred = !$event.data;\n this.manageFocus();\n }\n\n /**\n * Handle focus events sent from container's window\n * @method onContainerFocus\n * @memberof PausePlugin\n * @private\n */\n onContainerFocus() {\n this._containerBlurred = false;\n this.manageFocus();\n }\n\n /**\n * Handle blur events sent from container's window\n * @method onContainerBlur\n * @memberof PausePlugin\n * @private\n */\n onContainerBlur() {\n //Set both container and application to blurred,\n //because some blur events are only happening on the container.\n //If container is blurred because application area was just focused,\n //the application's focus event will override the blur imminently.\n this._containerBlurred = this._appBlurred = true;\n this.manageFocus();\n }\n\n /**\n * @memberof PausePlugin\n */\n onPauseToggle() {\n this._isManualPause = !this._isManualPause;\n this.pause = !this.pause;\n }\n\n /**\n * @param {Container} container\n * @memberof PausePlugin\n */\n init({ iframe }) {\n this.iframe = iframe;\n\n this.client.on(\n 'features',\n function (features) {\n if (features.disablePause) {\n this.pauseDisabled = true;\n }\n\n for (let i = 0, l = this._pauseButton.length; i < l; i++) {\n this._pauseButton[i].displayButton(features.data);\n }\n }.bind(this)\n );\n this.client.on('focus', this.onFocus);\n this.client.on('keepFocus', this.onKeepFocus);\n\n this.pause = this._paused;\n }\n\n /**\n * Function to check if we have a dom with a contentWindow\n * @readonly\n * @returns {boolean}\n * @memberof PausePlugin\n */\n get hasDom() {\n return Boolean(null !== this.iframe && this.iframe.contentWindow);\n }\n\n /**\n * @readonly\n * @memberof PausePlugin\n * @returns {HTMLButtonElement[]}\n */\n get pauseButton() {\n const buttons = [];\n for (let i = 0, l = this._pauseButton.length; i < l; i++) {\n buttons.push(this._pauseButton[i].button);\n }\n return buttons;\n }\n\n /**\n * @readonly\n * @static\n * @memberof PausePlugin\n * @returns {string}\n */\n static get pauseKey() {\n return 'pause';\n }\n}\n","import { SavedData } from '../SavedData';\nimport { ButtonPlugin } from '../base-plugins';\nimport { Slider, Button } from '../ui-elements';\n\n/**\n * @export\n * @class SoundPlugin\n * @extends {ButtonPlugin}\n *\n */\nexport class SoundPlugin extends ButtonPlugin {\n /**\n * Creates an instance of SoundPlugin.\n * @param {string | HTMLElement} [soundButtons] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [musicButtons] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [voButtons] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [sfxButtons] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [soundSliders] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [musicSliders] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [sfxSliders] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [voSliders] selector string or HTML Element for the input(s)\n * @memberof SoundPlugin\n */\n constructor({\n soundButtons,\n musicButtons,\n sfxButtons,\n voButtons,\n soundSliders,\n musicSliders,\n sfxSliders,\n voSliders\n } = {}) {\n super('Sound-Button-Plugin');\n const saved = SavedData.read(SoundPlugin.soundMutedKey);\n this.sendAllProperties = this.sendAllProperties.bind(this);\n this._soundMuted = saved ? saved : false;\n this._musicMuted = false;\n this._voMuted = false;\n this._sfxMuted = false;\n\n this.soundVolume = 1;\n this.musicVolume = 1;\n this.sfxVolume = 1;\n this.voVolume = 1;\n\n this.soundSliders = [];\n this.musicSliders = [];\n this.sfxSliders = [];\n this.voSliders = [];\n\n this.soundButtons = [];\n this.musicButtons = [];\n this.sfxButtons = [];\n this.voButtons= [];\n\n if (soundSliders instanceof HTMLElement) {\n this.soundSliders[0] = new Slider({\n slider: soundSliders,\n control: SoundPlugin.soundVolumeKey,\n defaultValue: this.soundVolume\n });\n } else {\n document.querySelectorAll(soundSliders).forEach((slider) => {\n const newSlider = new Slider({\n slider: slider,\n control: SoundPlugin.soundVolumeKey,\n defaultValue: this.soundVolume\n });\n if (newSlider.slider) {\n this.soundSliders.push(newSlider);\n }\n });\n }\n if (musicSliders instanceof HTMLElement) {\n this.musicSliders[0] = new Slider({\n slider: musicSliders,\n control: SoundPlugin.musicVolumeKey,\n defaultValue: this.musicVolume\n });\n } else {\n document.querySelectorAll(musicSliders).forEach((slider) => {\n const newSlider = new Slider({\n slider: slider,\n control: SoundPlugin.musicVolumeKey,\n defaultValue: this.musicVolume\n });\n if (newSlider.slider) {\n this.musicSliders.push(newSlider);\n }\n });\n }\n if (sfxSliders instanceof HTMLElement) {\n this.sfxSliders[0] = new Slider({\n slider: sfxSliders,\n control: SoundPlugin.sfxVolumeKey,\n defaultValue: this.sfxVolume\n });\n } else {\n document.querySelectorAll(sfxSliders).forEach((slider) => {\n const newSlider = new Slider({\n slider: slider,\n control: SoundPlugin.sfxVolumeKey,\n defaultValue: this.sfxVolume\n });\n if (newSlider.slider) {\n this.sfxSliders.push(newSlider);\n }\n });\n }\n if (voSliders instanceof HTMLElement) {\n this.voSliders[0] = new Slider({\n slider: voSliders,\n control: SoundPlugin.voVolumeKey,\n defaultValue: this.voVolume\n });\n } else {\n document.querySelectorAll(voSliders).forEach((slider) => {\n const newSlider = new Slider({\n slider: slider,\n control: SoundPlugin.voVolumeKey,\n defaultValue: this.voVolume\n });\n if (newSlider.slider) {\n this.voSliders.push(newSlider);\n }\n });\n }\n\n if ( soundButtons instanceof HTMLElement ) {\n this.soundButtons[0] = new Button({\n button: soundButtons,\n onClick: this.onSoundToggle.bind(this),\n channel: SoundPlugin.soundKey\n });\n } else {\n document.querySelectorAll(soundButtons).forEach((button) => {\n this.soundButtons.push(new Button({\n button: button,\n onClick: this.onSoundToggle.bind(this),\n channel: SoundPlugin.soundKey\n }));\n });\n }\n if ( musicButtons instanceof HTMLElement ) {\n this.musicButtons[0] = new Button({\n button: musicButtons,\n onClick: this.onMusicToggle.bind(this),\n channel: 'music'\n });\n } else {\n document.querySelectorAll(musicButtons).forEach((button) => {\n this.musicButtons.push(new Button({\n button: button,\n onClick: this.onMusicToggle.bind(this),\n channel: 'music'\n }));\n });\n }\n if ( sfxButtons instanceof HTMLElement ) {\n this.sfxButtons[0] = new Button({\n button: sfxButtons,\n onClick: this.onSFXToggle.bind(this),\n channel: 'sfx'\n });\n } else {\n document.querySelectorAll(sfxButtons).forEach((button) => {\n this.sfxButtons.push(new Button({\n button: button,\n onClick: this.onSFXToggle.bind(this),\n channel: 'sfx'\n }));\n });\n }\n if ( voButtons instanceof HTMLElement ) {\n this.voButtons[0] = new Button({\n button: voButtons,\n onClick: this.onVOToggle.bind(this),\n channel: 'vo'\n });\n } else {\n document.querySelectorAll(voButtons).forEach((button) => {\n this.voButtons.push(new Button({\n button: button,\n onClick: this.onVOToggle.bind(this),\n channel: 'vo'\n }));\n });\n }\n\n this.soundSlidersLength = this.soundSliders.length;\n this.musicSlidersLength = this.musicSliders.length;\n this.sfxSlidersLength = this.sfxSliders.length;\n this.voSlidersLength = this.voSliders.length;\n this.soundButtonsLength = this.soundButtons.length;\n this.musicButtonsLength = this.musicButtons.length;\n this.sfxButtonsLength = this.sfxButtons.length;\n this.voButtonsLength = this.voButtons.length;\n\n if (0 >= (this.soundSlidersLength + this.musicSlidersLength + this.sfxSlidersLength + this.voSlidersLength + this.soundButtonsLength + this.musicButtonsLength + this.sfxButtonsLength + this.voButtonsLength)) {\n this.warn('Plugin was not provided any valid HTML Elements');\n return;\n }\n\n for (let i = 0; i < this.soundSlidersLength; i++) {\n this.soundSliders[i].enableSliderEvents(this.onSoundVolumeChange.bind(this));\n }\n for (let i = 0; i < this.musicSlidersLength; i++) {\n this.musicSliders[i].enableSliderEvents(this.onMusicVolumeChange.bind(this));\n }\n for (let i = 0; i < this.sfxSlidersLength; i++) {\n this.sfxSliders[i].enableSliderEvents(this.onSFXVolumeChange.bind(this));\n }\n for (let i = 0; i < this.voSlidersLength; i++) {\n this.voSliders[i].enableSliderEvents(this.onVOVolumeChange.bind(this));\n }\n\n if (this.soundSliders[0] && this.soundSliders[0].slider) {\n this.soundVolume = this.soundSliders[0].value;\n }\n if (this.musicSliders[0] && this.musicSliders[0].slider) {\n this.musicVolume = this.musicSliders[0].value;\n }\n if (this.sfxSliders[0] && this.sfxSliders[0].slider) {\n this.sfxVolume = this.sfxSliders[0].value;\n }\n if (this.voSliders[0] && this.voSliders[0].slider) {\n this.voVolume = this.voSliders[0].value;\n }\n }\n\n /**\n * @memberof SoundPlugin\n * @param {Event} e\n */\n onSoundVolumeChange(e) {\n this.soundVolume = this.soundSliders[0].sliderRange(\n Number(e.target.value)\n );\n this.soundMuted = !this.soundVolume;\n this._checkSoundMute();\n this.sendProperty(SoundPlugin.soundVolumeKey, this.soundVolume);\n\n for (let i = 0; i < this.soundSlidersLength; i++) {\n this.soundSliders[i].value = this.soundVolume;\n }\n }\n\n /**\n * @memberof SoundPlugin\n * @param {Event} e\n */\n onMusicVolumeChange(e) {\n this.musicVolume = this.musicSliders[0].sliderRange(\n Number(e.target.value)\n );\n this.musicMuted = !this.musicVolume;\n this._checkSoundMute();\n this.sendProperty(SoundPlugin.musicVolumeKey, this.musicVolume);\n\n for (let i = 0; i < this.musicSlidersLength; i++) {\n this.musicSliders[i].value = this.musicVolume;\n }\n }\n\n /**\n * @memberof SoundPlugin\n * @param {Event} e\n */\n onVOVolumeChange(e) {\n this.voVolume = this.voSliders[0].sliderRange(Number(e.target.value));\n this.voMuted = !this.voVolume;\n this._checkSoundMute();\n this.sendProperty(SoundPlugin.voVolumeKey, this.voVolume);\n for (let i = 0; i < this.voSlidersLength; i++) {\n this.voSliders[i].value = this.voVolume;\n }\n }\n\n /**\n * @memberof SoundPlugin\n * @param {Event} e\n */\n onSFXVolumeChange(e) {\n this.sfxVolume = this.sfxSliders[0].sliderRange(Number(e.target.value));\n this.sfxMuted = !this.sfxVolume;\n this._checkSoundMute();\n this.sendProperty(SoundPlugin.sfxVolumeKey, this.sfxVolume);\n\n for (let i = 0; i < this.sfxSlidersLength; i++) {\n this.sfxSliders[i].value = this.sfxVolume;\n }\n }\n\n /**\n * @memberof SoundPlugin\n */\n onSoundToggle() {\n const muted = !this.soundMuted;\n this.soundMuted = muted;\n this.musicMuted = muted;\n this.voMuted = muted;\n this.sfxMuted = muted;\n }\n\n /**\n * @memberof SoundPlugin\n */\n onMusicToggle() {\n this.musicMuted = !this.musicMuted;\n this._checkSoundMute();\n }\n\n /**\n * @memberof SoundPlugin\n */\n onVOToggle() {\n this.voMuted = !this.voMuted;\n this._checkSoundMute();\n }\n\n /**\n * @memberof SoundPlugin\n */\n onSFXToggle() {\n this.sfxMuted = !this.sfxMuted;\n this._checkSoundMute();\n }\n\n /**\n * @memberof SoundPlugin\n */\n _checkSoundMute() {\n this.soundMuted = this.sfxMuted && this.voMuted && this.musicMuted;\n }\n\n /**\n * @param {string} key\n * @param {*} value\n * @param {Element} element\n * @memberof SoundPlugin\n */\n setMuteProp(key, value, element) {\n this['_' + key] = value;\n this._setMuteProp(key, element, value);\n }\n\n /**\n * @memberof SoundPlugin\n */\n init() {\n this.client.on(\n 'features',\n function(features) {\n if (!features.data) {\n return;\n }\n\n for (let i = 0; i < this.soundButtonsLength; i++) {\n this.soundButtons[i].displayButton(features.data);\n }\n for (let i = 0; i < this.musicButtonsLength; i++) {\n this.musicButtons[i].displayButton(features.data);\n }\n for (let i = 0; i < this.sfxButtonsLength; i++) {\n this.sfxButtons[i].displayButton(features.data);\n }\n for (let i = 0; i < this.voButtonsLength; i++) {\n this.voButtons[i].displayButton(features.data);\n }\n for (let i = 0; i < this.soundSlidersLength; i++) {\n this.soundSliders[i].displaySlider(features.data);\n }\n for (let i = 0; i < this.musicSlidersLength; i++) {\n this.musicSliders[i].displaySlider(features.data);\n }\n for (let i = 0; i < this.sfxSlidersLength; i++) {\n this.sfxSliders[i].displaySlider(features.data);\n }\n for (let i = 0; i < this.voSlidersLength; i++) {\n this.voSliders[i].displaySlider(features.data);\n }\n }.bind(this)\n );\n }\n\n /**\n * @memberof SoundPlugin\n */\n start() {\n\n for (let i = 0; i < this.soundButtonsLength; i++) {\n this.soundButtons[i].enableButton();\n }\n for (let i = 0; i < this.musicButtonsLength; i++) {\n this.musicButtons[i].enableButton();\n }\n for (let i = 0; i < this.sfxButtonsLength; i++) {\n this.sfxButtons[i].enableButton();\n }\n for (let i = 0; i < this.voButtonsLength; i++) {\n this.voButtons[i].enableButton();\n }\n\n this.soundMuted = !!SavedData.read(SoundPlugin.soundMutedKey);\n this.musicMuted = !!SavedData.read(SoundPlugin.musicMutedKey);\n this.sfxMuted = !!SavedData.read(SoundPlugin.sfxMutedKey);\n this.voMuted = !!SavedData.read(SoundPlugin.voMutedKey);\n\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Saves the current state of all volume properties, and then sends them to the game\n * @memberof SoundPlugin\n */\n sendAllProperties() {\n this.sendProperty(SoundPlugin.soundVolumeKey, this.soundVolume);\n this.sendProperty(SoundPlugin.musicVolumeKey, this.musicVolume);\n this.sendProperty(SoundPlugin.voVolumeKey, this.voVolume);\n this.sendProperty(SoundPlugin.sfxVolumeKey, this.sfxVolume);\n\n this.sendProperty(SoundPlugin.voMutedKey, this.voMuted);\n this.sendProperty(SoundPlugin.soundMutedKey, this.soundMuted);\n this.sendProperty(SoundPlugin.musicMutedKey, this.musicMuted);\n this.sendProperty(SoundPlugin.sfxMutedKey, this.sfxMuted);\n }\n\n /**\n * @memberof SoundPlugin\n * @param {boolean} muted\n */\n set soundMuted(muted) {\n this.setMuteProp('soundMuted', muted, this.soundButtons);\n }\n\n /**\n * @memberof SoundPlugin\n */\n get soundMuted() {\n return this._soundMuted;\n }\n\n /**\n * @memberof SoundPlugin\n * @param {boolean} muted\n */\n set voMuted(muted) {\n this.setMuteProp('voMuted', muted, this.voButtons);\n }\n\n /**\n * @memberof SoundPlugin\n */\n get voMuted() {\n return this._voMuted;\n }\n\n /**\n * @memberof SoundPlugin\n * @param {boolean} muted\n */\n set musicMuted(muted) {\n this.setMuteProp('musicMuted', muted, this.musicButtons);\n }\n\n /**\n * @memberof SoundPlugin\n */\n get musicMuted() {\n return this._musicMuted;\n }\n\n /**\n * @memberof SoundPlugin\n * @param {boolean} muted\n */\n set sfxMuted(muted) {\n this.setMuteProp('sfxMuted', muted, this.sfxButtons);\n }\n\n /**\n * @memberof SoundPlugin\n */\n get sfxMuted() {\n return this._sfxMuted;\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get soundMutedKey() {\n return 'soundMuted';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get voMutedKey() {\n return 'voMuted';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get musicMutedKey() {\n return 'musicMuted';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get sfxMutedKey() {\n return 'sfxMuted';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get soundVolumeKey() {\n return 'soundVolume';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get sfxVolumeKey() {\n return 'sfxVolume';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get voVolumeKey() {\n return 'voVolume';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get musicVolumeKey() {\n return 'musicVolume';\n }\n\n /**\n * @readonly\n * @memberof SoundPlugin\n */\n get soundButton() {\n return this._soundButton.button;\n }\n\n /**\n * @readonly\n * @memberof SoundPlugin\n */\n get musicButton() {\n return this._musicButton.button;\n }\n /**\n * @readonly\n * @memberof SoundPlugin\n */\n get sfxButton() {\n return this._sfxButton.button;\n }\n /**\n * @readonly\n * @memberof SoundPlugin\n */\n get voButton() {\n return this._voButton.button;\n }\n\n /**\n * @readonly\n * @static\n * @memberof SpeedScalePlugin\n * @return {string}\n */\n static get soundKey() {\n return 'sound';\n }\n}\n","import { SavedData } from './SavedData';\n/**\n * Default user data handler for the {{#crossLink \"springroll.Container\"}}Container{{/crossLink}} to save data using\n * the {{#crossLink \"springroll.SavedData\"}}SavedData{{/crossLink}} class.\n * @class SavedDataHandler\n */\nexport class SavedDataHandler {\n\n /**\n * \n */\n constructor() {\n this.dbName;\n this.savedData;\n }\n \n /**\n * Remove a data setting\n * @method remove\n * @static\n * @param {String} name The name of the property\n * @param {Function} [callback] Callback when remove is complete\n */\n static remove(name, callback) {\n SavedData.remove(name);\n callback();\n }\n\n /**\n * Write a custom setting\n * @method write\n * @static\n * @param {String} name The name of the property\n * @param {*} value The value to set the property to\n * @param {Function} [callback] Callback when write is complete\n */\n static write(name, value, callback) {\n SavedData.write(name, value);\n callback();\n }\n\n /**\n * Read a custom setting\n * @method read\n * @static\n * @param {String} name The name of the property\n * @param {Function} callback Callback when read is complete, returns the value\n */\n static read(name, callback) {\n callback(SavedData.read(name));\n }\n\n // ----------------------------------------------------------------\n // IndexedDB Manipulation \n // ----------------------------------------------------------------\n\n /**\n * Open a connection with the database\n * @param {string} dbName The name of your IndexedDB database\n * @param {string} dbVersion The version number of the database\n * @param {JSON} additions Any additions to the structure of the database\n * @param {array} additions.stores Any stores to be added into the database syntax: \n * {storeName: '[name]', options: {[optionally add options]}}\n * @param {array} additions.indexes Any Indexes to be added to the database syntax: \n * {storeName: '[name]', options: {[optionally add options]}}\n */\n IDBOpen( dbName, dbVersion = null, additions = {}, deletions = {}, callback = null) {\n // persisting the savedData object to keep the connection open\n this.savedData = new SavedData();\n this.savedData.IDBOpen( dbName, dbVersion, additions, deletions, callback);\n }\n\n /**\n * Add a record to a given store\n * @param {string} storeName The name of the store from which the record will be updated\n * @param {string} key the key of the record to be updated \n * @param {*} value The value for the record with the given key to be updated\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBAdd(storeName, record, key, callback) {\n this.savedData.IDBAdd(storeName, record, key, callback);\n }\n \n /**\n * Update a record from a given store\n * @param {string} storeName The name of the store from which the record will be updated\n * @param {string} key the key of the record to be updated \n * @param {*} value The value for the record with the given key to be updated\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBUpdate(storeName, key, value, callback) {\n this.savedData.IDBUpdate(storeName, key, value, callback);\n }\n\n /**\n * Remove a record from a store\n * @param {*} storeName The name of the store from which the record will be removed\n * @param {*} key the key of the record to be removed \n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBRemove(storeName, key, callback) {\n this.savedData.IDBRemove(storeName, key, callback);\n }\n\n /**\n * Return a record from a given store with a given key\n * @param {string} storeName The name of the store to read from\n * @param {string} key The key for the record in the given store \n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBRead(storeName, key, callback) {\n this.savedData.IDBRead(storeName, key, callback);\n }\n\n /**\n * Get all records from a store\n * @param {string} storeName The store to get all records from\n * @param {integer} count Optionally the count of records to return\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBReadAll(storeName, count, callback) {\n this.savedData.IDBReadAll(storeName, count, callback);\n }\n\n /**\n * Get the version of a given database\n * @param {string} dbName The name of the database to return the version of\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBGetVersion(dbName, callback) {\n const sd = new SavedData(dbName);\n\n sd.IDBGetVersion(dbName, callback);\n }\n\n /**\n * Closes the connection to the database\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBClose(callback) {\n this.savedData.IDBClose(callback);\n }\n /**\n * Closes the connection to the database\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBDeleteDB(dbName, options, callback) {\n const sd = new SavedData(dbName);\n sd.IDBDeleteDB(dbName, options, callback);\n }\n\n}\n","import { SavedDataHandler } from '../SavedDataHandler';\nimport { BasePlugin } from '../base-plugins';\n\n/**\n * @export\n * @class UserDataPlugin\n * @extends {BasePlugin}\n * @property {SavedDataHandler} SavedDataHandler The handler to work with the savedData class\n */\nexport class UserDataPlugin extends BasePlugin {\n /**\n * Creates an instance of UserDataPlugin.\n * @memberof UserDataPlugin\n */\n constructor() {\n super('UserData-Plugin');\n this.onUserDataRemove = this.onUserDataRemove.bind(this);\n this.onUserDataRead = this.onUserDataRead.bind(this);\n this.onUserDataWrite = this.onUserDataWrite.bind(this);\n\n this.onIDBAdd = this.onIDBAdd.bind(this);\n this.onIDBOpen = this.onIDBOpen.bind(this);\n this.onIDBRead = this.onIDBRead.bind(this);\n this.onIDBReadAll = this.onIDBReadAll.bind(this);\n this.onIDBRemove = this.onIDBRemove.bind(this);\n this.onIDBUpdate = this.onIDBUpdate.bind(this);\n this.onIDBUpdate = this.onIDBUpdate.bind(this);\n this.onIDBClose = this.onIDBClose.bind(this);\n this.IDBReadAll = this.onIDBReadAll.bind(this);\n this.onIDBGetVersion = this.onIDBGetVersion.bind(this);\n this.onIDBDeleteDB = this.onIDBDeleteDB.bind(this);\n\n this.savedDataHandler = null;\n }\n\n /**\n *\n * @memberof UserDataPlugin\n */\n init() {\n this.client.on('userDataRemove', this.onUserDataRemove);\n this.client.on('userDataRead', this.onUserDataRead);\n this.client.on('userDataWrite', this.onUserDataWrite);\n\n this.client.on('IDBOpen', this.onIDBOpen);\n this.client.on('IDBRead', this.onIDBRead);\n this.client.on('IDBReadAll', this.onIDBReadAll);\n this.client.on('IDBAdd', this.onIDBAdd);\n this.client.on('IDBRemove', this.onIDBRemove);\n this.client.on('IDBUpdate', this.onIDBUpdate);\n this.client.on('IDBClose', this.onIDBClose);\n this.client.on('IDBGetVersion', this.onIDBGetVersion);\n this.client.on('IDBDeleteDB', this.onIDBDeleteDB);\n }\n\n /**\n * Handler for the userDataRemove event\n * @method onUserDataRemove\n * @private\n * @param {string} data The name of the record to be removed\n * @param {string} type The type of listener for bellhop to send to\n */\n onUserDataRemove({ data, type }) {\n SavedDataHandler.remove(data, () => {\n this.client.send(type);\n });\n }\n\n /**\n * Handler for the userDataRead event\n * @method onUserDataRead\n * @private\n * @param {string} data The name of the record to be removed\n * @param {string} type The type of listener for bellhop to send to\n */\n onUserDataRead({ data, type }) {\n SavedDataHandler.read(data, value => this.client.send(type, value));\n }\n\n /**\n * Handler for the userDataWrite event\n * @method onUserDataWrite\n * @private\n * @param {string} type The type of listener for bellhop to send to\n * @param {string} data.name The name for the record. This is what is used to read or remove the record\n * @param {object | string} data.value The data object with the data and value for the record\n */\n onUserDataWrite({type, data: { name, value } }) {\n\n SavedDataHandler.write(name, value, () => this.client.send(type));\n }\n\n // ----------------------------------------------------------------\n // IndexedDB Manipulation\n // ----------------------------------------------------------------\n\n /**\n * Open a connection with the IDB Database and optionally add or delete\n * Indexes and stores\n * @param {string} dbName The name of your IndexedDB database\n * @param {string} [dbVersion] The version number of the database\n * @param {JSON} [additions] Any additions to the structure of the database\n * @param {array} [additions.stores] Any stores to be added into the database syntax:\n * @param {string} [additions.stores.storeName] The name of the store\n * @param {object} [additions.stores.options] Optionally, the option parameter for the createStore method\n * @param {array} [additions.indexes] Any Indexes to be added to the database syntax:\n * @param {string} [additions.indexes.storeName] The name of the store\n * @param {object} [additions.indexes.options] Optionally, the option parameter for the createIndex method\n * @param {string} type The type of listener for bellhop to send to\n */\n onIDBOpen({type, data: {dbName, dbVersion = null, additions = {}, deletions = {} }}) {\n // Keep an instance open to use on open\n this.savedDataHandler = new SavedDataHandler();\n this.savedDataHandler.IDBOpen( dbName, dbVersion, additions, deletions, value => this.client.send(type, value));\n }\n\n /**\n * Add a record to a given store\n * @param {string} type The type of listener for bellhop to send to\n * @param {string} storeName The name of the store from which the record will be updated\n * @param {*} value The value for the record with the given key to be updated\n * @param {string} key the key of the record to be updated\n */\n onIDBAdd({type, data: { storeName, value, key}}) {\n this.savedDataHandler.IDBAdd(storeName, value, key, value => this.client.send(type, value));\n }\n\n /**\n * Update a record from a given store\n * @param {string} type The type of listener for bellhop to send to\n * @param {string} storeName The name of the store with the record to update\n * @param {string} key The key of the record to be updated\n * @param {*} value The record value\n */\n onIDBUpdate({type, data: { storeName, key, value}}) {\n this.savedDataHandler.IDBUpdate(storeName, key, value, value => this.client.send(type, value));\n }\n\n /**\n * Remove a record from a store\n * @param {string} type The type of listener for bellhop to send to\n * @param {string} storeName The name of the store from which the record will be removed\n * @param {*} key the key of the record to be removed\n */\n onIDBRemove({type, data: {storeName, key}}) {\n this.savedDataHandler.IDBRemove(storeName, key, value => this.client.send(type, value));\n }\n\n /**\n * Return a record from a given store with a given key\n * @param {string} storeName The name of the store to read from\n * @param {string} key The key for the record in the given store\n * @param {string} type The type of listener for bellhop to send to\n */\n onIDBRead({type, data: {storeName, key}}) {\n this.savedDataHandler.IDBRead(storeName, key, value => this.client.send(type, value));\n }\n\n /**\n * Get all records from a store\n * @param {string} storeName The store to get all records from\n * @param {integer} count Optionally the number of records to return\n * @param {string} type The type of listener for bellhop to send to\n */\n onIDBReadAll({ type, data: {storeName, count} }) {\n this.savedDataHandler.IDBReadAll(storeName, count, value => this.client.send(type, value));\n }\n\n /**\n * Get the version of a given database\n * @param {string} dbName The name of the database to return the version of\n * @param {string} type The type of listener for bellhop to send to\n */\n onIDBGetVersion({type, data: {dbName}}) {\n // Create a new instance of savedDataHandler to avoid mutating the current instance\n const sdh = new SavedDataHandler();\n sdh.IDBGetVersion(dbName, value => this.client.send(type, value));\n }\n\n /**\n * Close the connection with the database\n * @param {string} type The type of listener for bellhop to send to\n */\n onIDBClose({type}) {\n this.savedDataHandler.IDBClose(value => this.client.send(type, value));\n }\n /**\n * Close the connection with the database\n * @param type - The type of request being sent\n */\n onIDBDeleteDB({type, data: {dbName, options }}) {\n const sdh = new SavedDataHandler();\n\n\n sdh.IDBDeleteDB(dbName, options, value => this.client.send(type, value));\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class PointerSizePlugin\n * @extends {SliderPlugin}\n * @property {object[]} sliders an array of all slider objects attached to PointerSizePlugin\n * @extends SliderPlugin\n */\nexport class PointerSizePlugin extends SliderPlugin {\n /**\n * Creates an instance of PointerSizePlugin.\n * @param {string | HTMLElement} [pointerSliders] selector string or HTML Element for the input(s)\n * @param {number} [defaultPointerSize=0.5] The default value for the pointer size slider\n * @memberof PointerSizePlugin\n */\n constructor(pointerSliders, { defaultPointerSize = 0.5 } = {}) {\n super(pointerSliders, 'UISize-Pointer-Plugin', { defaultValue: defaultPointerSize, featureName: PointerSizePlugin.pointerSizeKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onPointerSizeChange.bind(this));\n }\n\n }\n\n /**\n * @memberof PointerSizePlugin\n * @param {Event} e\n */\n onPointerSizeChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(PointerSizePlugin.pointerSizeKey, this.currentValue);\n }\n\n\n /**\n * @readonly\n * @static\n * @memberof PointerSizePlugin\n * @return {string}\n */\n static get pointerSizeKey() {\n return 'pointerSize';\n }\n}\n","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class ButtonSizePlugin\n * @property {object[]} sliders An array of slider objects given to ButtonSizePlugin\n * @property {number} currentValue The current button size value\n * @extends {SliderPlugin}\n */\nexport class ButtonSizePlugin extends SliderPlugin {\n /**\n * Creates an instance of ButtonSizePlugin.\n * @param {string | HTMLElement} buttonSliders selector string or html element(s) for the inputs\n * @param {object} options\n * @param {number} [options.defaultButtonSize=0.5]\n * @memberof ButtonSizePlugin\n */\n constructor(buttonSliders, { defaultButtonSize = 0.5 } = {}) {\n super(buttonSliders, 'UISize-Button-Plugin', { defaultValue: defaultButtonSize, featureName: ButtonSizePlugin.buttonSizeKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onButtonSizeChange.bind(this));\n }\n }\n\n /**\n * @memberof ButtonSizePlugin\n * @param {Event} e\n */\n onButtonSizeChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(ButtonSizePlugin.buttonSizeKey, this.currentValue);\n }\n\n /**\n * Get ButtonSize Key\n * @readonly\n * @static\n * @memberof ButtonSizePlugin\n * @returns {string}\n */\n static get buttonSizeKey() {\n return 'buttonSize';\n }\n}\n","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class ControlSensitivityPlugin\n * @property {object[]} sliders an array of all slider objects attached to ControlSensitivityPlugin\n * @extends {SliderPlugin}\n */\nexport class ControlSensitivityPlugin extends SliderPlugin {\n /**\n * Creates an instance of ControlSensitivityPlugin.\n * @param {string | HTMLElement} sensitivitySliders\n * @param {number} [defaultSensitivity=0.5]\n * @memberof ControlSensitivityPlugin\n */\n constructor(sensitivitySliders, { defaultSensitivity = 0.5 } = {}) {\n super(sensitivitySliders, 'Control-Sensitivity-Plugin', {defaultValue: defaultSensitivity, featureName: ControlSensitivityPlugin.controlSensitivityKey});\n\n this.sendAllProperties = this.sendAllProperties.bind(this);\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onControlSensitivityChange.bind(this));\n }\n }\n\n /**\n * @memberof ControlSensitivityPlugin\n * @param {Event} e\n */\n onControlSensitivityChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(ControlSensitivityPlugin.controlSensitivityKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof ControlSensitivityPlugin\n * @returns {string}\n */\n static get controlSensitivityKey() {\n return 'controlSensitivity';\n }\n}\n","import { BasePlugin } from '../base-plugins';\nimport { SavedData } from '../SavedData';\n\n/**\n * @export\n * @class KeyboardMapPlugin\n * @extends {BasePlugin}\n */\nexport class KeyboardMapPlugin extends BasePlugin {\n /**\n * Creates an instance of KeyboardMapPlugin.\n * @param {string | HTMLElement} keyContainers div or similar container element that will contain the re-mappable keys\n * @param {string} [customClassName='springrollContainerKeyBinding__button'] A custom class name that will be applied to the container element\n * @memberof KeyboardMapPlugin\n */\n constructor(keyContainers, {customClassName = 'springrollContainerKeyBinding__button'} = {}) {\n super('Keyboard-Map-Plugin');\n\n this.sendAllProperties = this.sendAllProperties.bind(this);\n //Allows for removing and reading event listeners\n this.bindKey = this.bindKey.bind(this);\n this.onKeyButtonClick = this.onKeyButtonClick.bind(this);\n\n this.className = customClassName;\n\n this.keyContainers =\n keyContainers instanceof HTMLElement\n ? [keyContainers]\n : document.querySelectorAll(keyContainers);\n\n this.keyBindings = {};\n this.buttons = [];\n this.activekeyButton;\n\n this.sendAfterFetch = false;\n this.canEmit = false;\n\n this.keyContainersLength = this.keyContainers.length;\n\n if (this.keyContainersLength <= 0) {\n this.warn('plugin was not provided any valid key binding container elements');\n return;\n }\n }\n\n /**\n * @memberof KeyboardMapPlugin\n * @param {MouseEvent} e\n * Sets up a rebinding of a key once a key button is clicked.\n */\n onKeyButtonClick(e) {\n\n for (let i = 0, l = this.buttons.length; i < l; i++) {\n for (let j = 0; j < this.buttons[i].length; j++) {\n this.buttons[i][j].removeEventListener('click', this.onKeyButtonClick);\n }\n }\n this.activekeyButton = e.target;\n this.activekeyButton.textContent = 'Press Key to Map';\n document.addEventListener('keyup', this.bindKey);\n }\n\n /**\n * @memberof KeyboardMapPlugin\n * @param {KeyboardEvent} key\n * Actually updates the key binding and sends the value. Also\n * replicates the new key across the other keycontainers\n */\n bindKey(key) {\n key.preventDefault(); //prevents space bar from retriggering a keybinding when set.\n\n for (const actionName in this.keyBindings) {\n if (this.keyBindings[actionName].currentKey === key.key.toLowerCase()) {\n this.warn(`${key.key} is already bound`);\n return;\n }\n }\n\n this.activekeyButton.textContent = key.key === ' ' ? 'space' : key.key;\n for (let i = 0; i < this.buttons.length; i++) {\n for (let j = 0; j < this.buttons[i].length; j++) {\n if (this.buttons[i][j].value === this.activekeyButton.value) {\n this.buttons[i][j].textContent = this.activekeyButton.textContent;\n }\n }\n }\n\n this.keyBindings[this.activekeyButton.value].currentKey = key.key;\n\n document.removeEventListener('keyup', this.bindKey);\n for (let i = 0, l = this.buttons.length; i < l; i++) {\n for (let j = 0; j < this.buttons[i].length; j++) {\n this.buttons[i][j].addEventListener('click', this.onKeyButtonClick);\n }\n }\n\n this.sendProperty(KeyboardMapPlugin.keyBindingKey, this.keyBindings);\n }\n\n /**\n * @memberof KeyboardMapPlugin\n */\n init() {\n this.client.on(\n 'features',\n function(features) {\n if (!features.data) {\n return;\n }\n\n if (!features.data.keyBinding) {\n return;\n }\n\n const data = SavedData.read(KeyboardMapPlugin.keyBindingKey);\n\n this.client.fetch('keyBindings', result => {\n for (let j = 0; j < this.keyContainersLength; j++) {\n this.buttons[j] = [];\n\n for (let i = 0, l = result.data.length; i < l; i++) {\n let currentKey = result.data[i].defaultKey.toLowerCase();\n if (data) {\n if (data[result.data[i].actionName]) {\n currentKey = data[result.data[i].actionName].currentKey;\n }\n }\n //only needs to be set up once\n if (j === 0) {\n this.keyBindings[result.data[i].actionName] = {\n defaultKey: result.data[i].defaultKey.toLowerCase(),\n currentKey: currentKey,\n };\n }\n\n this.buttons[j][i] = document.createElement('button');\n this.buttons[j][i].classList.add(this.className);\n this.buttons[j][i].id = `keyBoardMapPlugin-${result.data[i].actionName}`;\n this.buttons[j][i].value = result.data[i].actionName;\n this.buttons[j][i].textContent = result.data[i].defaultKey;\n this.buttons[j][i].addEventListener('click', this.onKeyButtonClick);\n\n this.label = document.createElement('label');\n this.label.htmlFor = `keyBoardMapPlugin-${result.data[i].actionName}`;\n this.label.textContent = result.data[i].actionName;\n\n this.keyContainers[j].appendChild(this.label);\n this.keyContainers[j].appendChild(this.buttons[j][i]);\n }\n }\n\n this.canEmit = true;\n if (this.sendAfterFetch) {\n this.sendAllProperties();\n }\n });\n }.bind(this)\n );\n }\n\n /**\n*\n* Sends initial caption properties to the application\n* @memberof KeyboardMapPlugin\n*/\n sendAllProperties() {\n if (this.canEmit) {\n this.sendProperty(KeyboardMapPlugin.keyBindingKey, this.keyBindings);\n } else {\n this.sendAfterFetch = true;\n }\n }\n\n /**\n * @readonly\n * @static\n * @memberof KeyboardMapPlugin\n * @returns {string}\n */\n static get keyBindingKey() {\n return 'keyBinding';\n }\n}\n","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class LayersPlugin\n * @property {object[]} sliders an array of all slider objects attached to LayersPlugin\n * @extends {SliderPlugin}\n */\nexport class LayersPlugin extends SliderPlugin {\n /**\n * Creates an instance of KeyboardMapPlugin.\n * @param {string | HTMLInputElement} layersSliders selector string or HTML Element for the input(s)\n * @param {number} [defaultValue=0] The default value for the slider\n */\n constructor(layersSliders, { defaultValue = 0 } = {}) {\n super(layersSliders, 'Layer-Plugin', { defaultValue: defaultValue, featureName: LayersPlugin.layersSliderKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onLayerValueChange.bind(this));\n }\n }\n\n /**\n * @memberof LayersPlugin\n * @param {Event} e\n */\n onLayerValueChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(LayersPlugin.layersSliderKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof LayersPlugin\n * @returns {string}\n */\n static get layersSliderKey() {\n return 'removableLayers';\n }\n}\n","import { RadioGroupPlugin } from '../base-plugins';\nimport { SavedData } from '../SavedData';\n\nconst SUPPORTED_POSITIONS = ['top', 'bottom', 'left', 'right'];\n\n/**\n * @export\n * @class HUDPlugin\n * @extends {BasePlugin}\n */\nexport class HUDPlugin extends RadioGroupPlugin {\n /**\n * Creates an instance of HUDPlugin\n * @param {string} hudSelectorRadios selector string or for the input(s)\n * @param {string[]} [defaultValue='top'] default value for the HUD position\n * @memberof HUDPlugin\n */\n constructor(hudSelectorRadios, { defaultValue = SUPPORTED_POSITIONS[0] } = {}) {\n super(hudSelectorRadios, 'HUD-Layout-Plugin', {supportedValues: SUPPORTED_POSITIONS, initialValue: defaultValue, controlName: 'Hud Selector', featureName: HUDPlugin.hudPositionKey, radioCount: SUPPORTED_POSITIONS.length});\n\n this.sendAllProperties = this.sendAllProperties.bind(this);\n this.sendAfterFetch = false;\n this.canEmit = false;\n this.positions = [];\n\n if (this.radioGroupsLength <= 0) {\n this.warn('Plugin was not provided any valid HTML elements');\n }\n\n for (let i = 0; i < this.radioGroupsLength; i++) {\n this.radioGroups[i].enableRadioEvents(this.onHUDSelect.bind(this));\n }\n\n }\n\n /**\n * @memberof HUDPlugin\n * @param {Event} e\n */\n onHUDSelect(e) {\n //return if a radio button is programattically clicked when it is hidden\n if (!this.positions.includes(e.target.value)) {\n for (let i = 0; i < this.radioGroupsLength; i++) {\n this.radioGroups[i].radioGroup[this.currentValue].checked = true;\n }\n return;\n }\n\n this.currentValue = e.target.value;\n\n this.sendProperty(\n HUDPlugin.hudPositionKey,\n this.currentValue\n );\n }\n\n /**\n * @memberof HUDPlugin\n */\n init() {\n this.client.on(\n 'features',\n function(features) {\n if (!features.data || !features.data.hudPosition) {\n return;\n }\n\n if (this.radioGroupsLength <= 0) {\n return;\n }\n //get the game's reported HUD positions to build out positions array\n this.client.fetch('hudPositions', result => {\n for (let i = 0, l = result.data.length; i < l; i++) {\n if (\n !SUPPORTED_POSITIONS.includes(result.data[i].toLowerCase())\n ) {\n this.warn(`${result.data[i]} is an invalid position name`);\n continue;\n }\n\n this.positions.push(result.data[i].toLowerCase());\n }\n\n for (let i = 0; i < this.radioGroupsLength; i++) {\n //Hide any radio buttons that aren't in the game's position list.\n for (const key in this.radioGroups[i].radioGroup) {\n this.radioGroups[i].radioGroup[key].style.display = this.positions.includes(this.radioGroups[i].radioGroup[key].value) ? '' : 'none';\n }\n }\n\n this.canEmit = true;\n if (this.sendAfterFetch) {\n this.sendAllProperties();\n }\n });\n\n }.bind(this)\n );\n }\n\n /**\n * @memberof HUDPlugin\n */\n start() {\n const data = SavedData.read(HUDPlugin.hudPositionKey);\n\n if (SUPPORTED_POSITIONS.includes(data)) {\n this.currentValue = data;\n }\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Sends initial HUD position properties to the application\n * @memberof HUDPlugin\n */\n sendAllProperties() {\n if (this.canEmit) {\n this.sendProperty(HUDPlugin.hudPositionKey, this.currentValue);\n } else {\n this.sendAfterFetch = true;\n }\n }\n\n /**\n * @static\n * @readonly\n * @memberof HUDPlugin\n * @returns {string}\n */\n static get hudPositionKey() {\n return 'hudPosition';\n }\n}\n","import { RadioGroupPlugin } from '../base-plugins';\nimport { SavedData } from '../SavedData';\n\nconst COLOR_BLIND_TYPES = [\n 'none',\n 'protanopia',\n 'deuteranopia',\n 'tritanopia',\n 'achromatopsia'\n];\n\n/**\n * @export\n * @class ColorVisionPlugin\n * @property {boolean} sendAfterFetch Whether to send the properties after fetch or not\n * @property {boolean} canEmit Whether or not the plugin can send properties\n * @property {string} colors \n * @extends {RadioGroupPlugin}\n */\nexport class ColorVisionPlugin extends RadioGroupPlugin {\n /**\n * Creates an instance of ColorVisionPlugin.\n * @param {string | HTMLElement} colorSelects\n * @param {string } [defaultValue] Default selected value\n * @memberof ColorVision\n */\n constructor(colorVisionRadios, { defaultValue = COLOR_BLIND_TYPES[0] } = {}) {\n super(colorVisionRadios, 'Color-Filter-Plugin', {supportedValues: COLOR_BLIND_TYPES, initialValue: defaultValue, controlName: 'Color Vision Selector', featureName: ColorVisionPlugin.colorVisionKey, radioCount: COLOR_BLIND_TYPES.length});\n\n this.sendAllProperties = this.sendAllProperties.bind(this);\n this.sendAfterFetch = false;\n this.canEmit = false;\n this.colors = [];\n\n if (this.radioGroupsLength <= 0) {\n this.warn('Plugin was not provided any valid HTML elements');\n return;\n }\n\n for (let i = 0; i < this.radioGroupsLength; i++) {\n this.radioGroups[i].enableRadioEvents(this.onColorChange.bind(this));\n }\n }\n\n /**\n * @memberof ColorVisionPlugin\n * @param {Event} e\n */\n onColorChange(e) {\n //return if a radio button is programmatically clicked when it is hidden from the user\n if (!this.colors.includes(e.target.value) ) {\n for (let i = 0; i < this.radioGroupsLength; i++) {\n this.radioGroups[i].radioGroup[this.currentValue].checked = true;\n }\n return;\n }\n this.currentValue = e.target.value;\n\n this.sendProperty(\n ColorVisionPlugin.colorVisionKey,\n this.currentValue\n );\n }\n\n /**\n * @memberof ColorVisionPlugin\n */\n init() {\n this.client.on(\n 'features',\n function(features) {\n if (!features.data || !features.data.colorVision) {\n return;\n }\n if (this.colorDropdownsLength <= 0) {\n return;\n }\n\n //get the game's reported colors to build out accepted filters array\n this.client.fetch('colorFilters', result => {\n for (let i = 0, l = result.data.length; i < l; i++) {\n if (\n !COLOR_BLIND_TYPES.includes(result.data[i].toLowerCase())\n ) {\n this.warn(`${result.data[i]} is an invalid color vision name`);\n continue;\n }\n this.colors.push(result.data[i].toLowerCase());\n }\n\n this.defaultValue = this.colors[0];\n\n for (let i = 0; i < this.radioGroupsLength; i++) {\n //Hide any radio buttons that aren't in the game's filter list.\n for (const key in this.radioGroups[i].radioGroup) {\n this.radioGroups[i].radioGroup[key].style.display = this.colors.includes(this.radioGroups[i].radioGroup[key].value.toLowerCase()) ? '' : 'none';\n }\n }\n\n this.canEmit = true;\n\n if (this.sendAfterFetch) {\n this.sendAllProperties();\n }\n });\n\n }.bind(this)\n );\n }\n\n /**\n * @memberof ColorVisionPlugin\n */\n start() {\n const data = SavedData.read(ColorVisionPlugin.colorVisionKey);\n\n if (COLOR_BLIND_TYPES.includes(data)) {\n this.currentValue = data;\n }\n\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n*\n* Sends initial caption properties to the application\n* @memberof ColorVisionPlugin\n*/\n sendAllProperties() {\n if (this.canEmit) {\n this.sendProperty(ColorVisionPlugin.colorVisionKey, this.currentValue);\n } else {\n this.sendAfterFetch = true;\n }\n }\n\n /**\n * Get the ColorVisionPlugin key\n * @readonly\n * @static\n * @memberof ColorVisionPlugin\n * @returns {string}\n */\n static get colorVisionKey() {\n return 'colorVision';\n }\n\n}\n","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class HitAreaScalePlugin\n * @property {object[]} sliders an array of all slider objects attached to ControlSensitivityPlugin\n * @extends {SliderPlugin}\n * \n */\nexport class HitAreaScalePlugin extends SliderPlugin {\n /**\n * Creates an instance of HitAreaScalePlugin.\n * @param {string | HTMLElement} hitAreaScaleSliders The selector or HTMLElement for the slider\n * @param {number} [defaultHitAreaScale=0.5] The default hit area scale value\n * @memberof HitAreaScalePlugin\n */\n constructor(hitAreaScaleSliders, { defaultHitAreaScale = 0.5 } = {}) {\n super(hitAreaScaleSliders, 'Hit-Area-Scale-Plugin', { defaultValue: defaultHitAreaScale, featureName: HitAreaScalePlugin.hitAreaScaleKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onHitAreaScaleChange.bind(this));\n }\n }\n\n /**\n * @memberof HitAreaScalePlugin\n * @param {Event} target\n * @param {string} control\n */\n onHitAreaScaleChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(HitAreaScalePlugin.hitAreaScaleKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof HitAreaScalePlugin\n * @returns {string}\n */\n static get hitAreaScaleKey() {\n return 'hitAreaScale';\n }\n}\n","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class DragThresholdScalePlugin\n * @extends {SliderPlugin}\n */\nexport class DragThresholdScalePlugin extends SliderPlugin {\n /**\n * Creates an instance of DragThresholdScalePlugin.\n * @param {string | HTMLElement} params.dragThresholdScaleSliders\n * @param {number} [defaultDragThresholdScale=0.5]\n * @memberof DragThresholdScalePlugin\n */\n constructor(dragThresholdScaleSliders, { defaultDragThresholdScale = 0.5 } = {}) {\n super(dragThresholdScaleSliders, 'Drag-Threshold-Scale-Plugin', { defaultValue: defaultDragThresholdScale, featureName: DragThresholdScalePlugin.dragThresholdScaleKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onDragThresholdScaleChange.bind(this));\n }\n }\n\n /**\n * @memberof DragThresholdScalePlugin\n * @param {Event} target\n * @param {string} control\n */\n onDragThresholdScaleChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(DragThresholdScalePlugin.dragThresholdScaleKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof DragThresholdScalePlugin\n * @returns {string}\n */\n static get dragThresholdScaleKey() {\n return 'dragThresholdScale';\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class HealthPlugin\n * @extends {SliderPlugin}\n */\nexport class HealthPlugin extends SliderPlugin {\n /**\n * Creates an instance of HealthPlugin.\n * @param {string | HTMLElement} healthSliders\n * @param {number} [defaultHealth=0.5]\n * @memberof HealthPlugin\n */\n constructor(healthSliders, {defaultHealth = 0.5 } = {}) {\n super(healthSliders, 'Health-Scale-Plugin', { defaultValue:defaultHealth, featureName: HealthPlugin.healthKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onHealthChange.bind(this));\n }\n }\n\n /**\n * @memberof HealthPlugin\n * @param {Event} e\n */\n onHealthChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(HealthPlugin.healthKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof HealthPlugin\n * @returns {string}\n */\n static get healthKey() {\n return 'health';\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class ObjectCountPlugin\n * @property {object[]} sliders an array of all slider objects attached to ObjectCountPlugin\n * @extends {SliderPlugin}\n */\nexport class ObjectCountPlugin extends SliderPlugin {\n /**\n * Creates an instance of ObjectCountPlugin.\n * @param {string | HTMLElement} objectCountSliders selector string or HTML Element for the input(s)\n * @param {number} [defaultObjectCount=0.5] The default value for the slider\n * @memberof ObjectCountPlugin\n */\n constructor(objectCountSliders, { defaultObjectCount = 0.5 } = {}) {\n super(objectCountSliders, 'Object-Count-Plugin', { defaultValue: defaultObjectCount, featureName: ObjectCountPlugin.objectCountKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onObjectCountChange.bind(this));\n }\n }\n\n /**\n * @memberof ObjectCountPlugin\n * @param {Event} target\n * @param {string} control\n */\n onObjectCountChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(ObjectCountPlugin.objectCountKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof ObjectCountPlugin\n * @returns {string}\n */\n static get objectCountKey() {\n return 'objectCount';\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class CompletionPercentagePlugin\n * @property {object[]} sliders an array of all slider objects attached to CompletePercentagePlugin\n * @extends {SliderPlugin}\n */\nexport class CompletionPercentagePlugin extends SliderPlugin {\n /**\n * Creates an instance of CompletionPercentagePlugin.\n * @param {string | HTMLElement} completionPercentageSliders The selector or HTMLSliderElement of the slider\n * @param {number} [defaultCompletionPercentage=0.5] Default selected completion percentage\n * @memberof CompletionPercentagePlugin\n */\n constructor(completionPercentageSliders, { defaultCompletionPercentage = 0.5 } = {}) {\n super(completionPercentageSliders, 'Completion-Percentage-Plugin', { defaultValue: defaultCompletionPercentage, featureName: CompletionPercentagePlugin.completionPercentageKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onCompletionPercentageChange.bind(this));\n }\n }\n\n /**\n * @memberof CompletionPercentagePlugin\n * @param {Event} e\n */\n onCompletionPercentageChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(CompletionPercentagePlugin.completionPercentageKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof CompletionPercentagePlugin\n * @returns {string}\n */\n static get completionPercentageKey() {\n return 'completionPercentage';\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class SpeedScalePlugin\n * @extends {SliderPlugin}\n */\nexport class SpeedScalePlugin extends SliderPlugin {\n /**\n *Creates an instance of SpeedScalePlugin.\n * @param {string | HTMLElement} speedScaleSliders selector string or HTML Element for the input(s)\n * @param {number} [defaultSpeedScale=0.5] The default value for the speed scale slider\n * @memberof SpeedScalePlugin\n */\n constructor(speedScaleSliders, { defaultSpeedScale = 0.5 } = {}) {\n super(speedScaleSliders, 'Speed-Scale-Plugin', { defaultValue: defaultSpeedScale, featureName: SpeedScalePlugin.speedScaleKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onSpeedScaleChange.bind(this));\n }\n }\n\n /**\n * @memberof SpeedScalePlugin\n * @param {Event} e\n */\n onSpeedScaleChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(SpeedScalePlugin.speedScaleKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof SpeedScalePlugin\n * @return {string}\n */\n static get speedScaleKey() {\n return 'speedScale';\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class TimersScalePlugin\n * @property {number} currentValue\n * @extends {SliderPlugin}\n */\nexport class TimersScalePlugin extends SliderPlugin {\n /**\n * Creates an instance of TimersScalePlugin.\n * @param {string | HTMLElement} timersScaleSliders selector string or HTML Element for the input(s)\n * @param {number} [defaultTimersScale=0.5] Default Value for the timer scale slider\n * @memberof TimersScalePlugin\n */\n constructor(timersScaleSliders, { defaultTimersScale = 0.5 } = {}) {\n super(timersScaleSliders, 'Timers-Scale-Plugin', { defaultValue: defaultTimersScale, featureName: TimersScalePlugin.timersScaleKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onTimersScaleChange.bind(this));\n }\n }\n\n /**\n * @memberof TimersScalePlugin\n * @param {Event} e\n */\n onTimersScaleChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(TimersScalePlugin.timersScaleKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof TimersScalePlugin\n * @return {string}\n */\n static get timersScaleKey() {\n return 'timersScale';\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class InputCountPlugin\n * @property {object[]} sliders an array of all slider objects attached to InputCountPlugin\n * @extends {SliderPlugin}\n */\nexport class InputCountPlugin extends SliderPlugin {\n /**\n * Creates an instance of InputCountPlugin.\n * @param {string | HTMLElement} inputCountSliders selector string or HTML Element for the input(s)\n * @param {number} [defaultInputCount=0.5] The default value for the slider\n * @memberof InputCountPlugin\n */\n constructor(inputCountSliders, { defaultInputCount = 0.5 } = {}) {\n super(inputCountSliders, 'Input-Count-Plugin', { defaultValue: defaultInputCount, featureName: InputCountPlugin.inputCountKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onInputCountChange.bind(this));\n }\n }\n\n /**\n * @memberof InputCountPlugin\n * @param {Event} target\n * @param {string} control\n */\n onInputCountChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(InputCountPlugin.inputCountKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof InputCountPlugin\n * @returns {string}\n */\n static get inputCountKey() {\n return 'inputCount';\n }\n}","import { ButtonPlugin } from '../base-plugins/ButtonPlugin';\nimport { Button } from '../ui-elements';\n\n/**\n * A Springroll plugin to easily set up togglable fullscreen\n */\nexport class FullScreenPlugin extends ButtonPlugin {\n \n /**\n * Creates an instance of FullscreenPlugin\n * \n * @param {string | string[]} buttonSelector The selector for the element to be made fullscreen\n */\n constructor(buttonSelector) {\n super({\n name: FullScreenPlugin.fullscreenKey\n }); \n\n this._toggleButtons = [];\n this.iFrame = null;\n\n this.sendAllProperties = this.sendAllProperties.bind(this);\n\n if (Array.isArray(buttonSelector)) {\n // If input is an array, join the selectors into one string\n buttonSelector = buttonSelector.join(', ');\n }\n\n console.log(buttonSelector);\n \n this.toggleButton = document.querySelectorAll(buttonSelector);\n\n\n this.toggleButton.forEach((button) => {\n this._toggleButtons.push(new Button({\n button: button,\n onClick: this.toggleFullScreen.bind(this),\n channel: FullScreenPlugin.fullscreenKey\n }));\n });\n \n\n document.addEventListener('fullscreenchange', () => {\n this.sendAllProperties();\n \n this._toggleButtons.forEach((button) => {\n button.button.classList.toggle('--fullScreen');\n });\n\n });\n }\n\n /**\n * @memberof FullScreenPlugin\n */\n init({ iframe }) {\n this.iFrame = iframe;\n // Handle the features request\n this.client.on(\n 'features',\n function($event) {\n for (let i = 0; i < this.fullscreenElement; i ++) {\n this._toggleButtons[i].displayButton($event.data);\n }\n\n }.bind(this)\n );\n }\n /**\n * @memberof FullScreenPlugin\n */\n start() {\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Sends initial fullScreen properties to the application\n * @memberof FullScreenTogglePlugin\n */\n sendAllProperties() {\n this.sendProperty(FullScreenPlugin.fullscreenKey, document.fullscreenElement != null ? 'true' : 'false');\n }\n\n /**\n * Toggles fullscreen on this.iFrame. Must be from a user generated event\n */\n toggleFullScreen() {\n if (!document.fullscreenElement) {\n this.iFrame.requestFullscreen().then(() => {\n this.sendAllProperties();\n }).catch((err) => {\n console.log(err);\n });\n } else {\n document.exitFullscreen();\n this.sendAllProperties();\n }\n }\n\n /**\n * Returns true if there is a fullscreen element and false if not\n * @returns { boolean } \n */\n get isFullScreen() {\n return (document.fullscreenElement || // basic\n document.webkitIsFullscreen || //Webkit browsers\n document.mozFullScreen ) // Firefox\n != true; // Ensure boolean output\n }\n\n /** \n * @readonly\n * @static\n * @memberof FullscreenPlugin\n */\n static get fullscreenKey() {\n return 'fullScreen';\n }\n}"],"names":["global","globalThis","self","support","searchParams","iterable","Symbol","blob","Blob","e","formData","arrayBuffer","viewClasses","isArrayBufferView","ArrayBuffer","isView","obj","indexOf","Object","prototype","toString","call","normalizeName","name","String","test","TypeError","toLowerCase","normalizeValue","value","iteratorFor","items","iterator","next","shift","done","undefined","Headers","headers","this","map","forEach","append","Array","isArray","header","getOwnPropertyNames","consumed","body","bodyUsed","Promise","reject","fileReaderReady","reader","resolve","onload","result","onerror","error","readBlobAsArrayBuffer","FileReader","promise","readAsArrayBuffer","bufferClone","buf","slice","view","Uint8Array","byteLength","set","buffer","Body","_initBody","_bodyInit","_bodyText","isPrototypeOf","_bodyBlob","FormData","_bodyFormData","URLSearchParams","DataView","_bodyArrayBuffer","get","type","rejected","Error","isConsumed","byteOffset","then","text","readAsText","readBlobAsText","chars","length","i","fromCharCode","join","readArrayBufferAsText","decode","json","JSON","parse","oldValue","has","hasOwnProperty","callback","thisArg","keys","push","values","entries","methods","Request","input","options","url","credentials","method","mode","signal","upcased","toUpperCase","normalizeMethod","referrer","cache","reParamSearch","replace","Date","getTime","form","trim","split","bytes","decodeURIComponent","Response","bodyInit","status","ok","statusText","clone","response","redirectStatuses","redirect","RangeError","location","DOMException","err","message","stack","create","constructor","fetch","init","request","aborted","xhr","XMLHttpRequest","abortXhr","abort","rawHeaders","getAllResponseHeaders","substr","line","parts","key","responseURL","responseText","setTimeout","ontimeout","onabort","open","href","fixUrl","withCredentials","responseType","setRequestHeader","addEventListener","onreadystatechange","readyState","removeEventListener","send","polyfill","match","version","check","it","Math","global_1","window","Function","domIterables","CSSRuleList","CSSStyleDeclaration","CSSValueList","ClientRectList","DOMRectList","DOMStringList","DOMTokenList","DataTransferItemList","FileList","HTMLAllCollection","HTMLCollection","HTMLFormElement","HTMLSelectElement","MediaList","MimeTypeArray","NamedNodeMap","NodeList","PaintRequestList","Plugin","PluginArray","SVGLengthList","SVGNumberList","SVGPathSegList","SVGPointList","SVGStringList","SVGTransformList","SourceBufferList","StyleSheetList","TextTrackCueList","TextTrackList","TouchList","documentAll","document","all","documentAll_1","IS_HTMLDDA","$documentAll","isCallable","argument","isObject","EXISTS","createElement","documentCreateElement","classList","DOMTokenListPrototype","domTokenListPrototype","fails","exec","functionBindNative","bind","FunctionPrototype","uncurryThisWithBind","NATIVE_BIND","functionUncurryThis","fn","apply","arguments","uncurryThis","stringSlice","classofRaw","functionUncurryThisClause","$String","tryToString","$TypeError","aCallable","functionBindContext","that","$Object","indexedObject","propertyIsEnumerable","classof","isNullOrUndefined","requireObjectCoercible","toObject","ceil","floor","mathTrunc","trunc","x","n","toIntegerOrInfinity","number","min","lengthOfArrayLike","defineProperty","defineGlobalProperty","configurable","writable","SHARED","sharedStore","module","store","copyright","license","source","hasOwnProperty_1","hasOwn","id","postfix","random","uid","engineUserAgent","navigator","userAgent","process","Deno","versions","v8","engineV8Version","symbolConstructorDetection","getOwnPropertySymbols","symbol","sham","V8_VERSION","useSymbolAsUid","NATIVE_SYMBOL","WellKnownSymbolsStore","shared","createWellKnownSymbol","USE_SYMBOL_AS_UID","withoutSetter","wellKnownSymbol","toStringTagSupport","TO_STRING_TAG","CORRECT_ARGUMENTS","TO_STRING_TAG_SUPPORT","O","tag","tryGet","callee","aFunction","getBuiltIn","namespace","functionToString","inspectSource","noop","empty","construct","constructorRegExp","INCORRECT_TO_STRING","isConstructorModern","isConstructorLegacy","isConstructor","called","SPECIES","$Array","arraySpeciesCreate","originalArray","C","createMethod","TYPE","IS_MAP","IS_FILTER","IS_SOME","IS_EVERY","IS_FIND_INDEX","IS_FILTER_REJECT","NO_HOLES","$this","callbackfn","specificCreate","IndexedObject","boundFunction","index","target","arrayIteration","filter","some","every","find","findIndex","filterReject","arrayMethodIsStrict","METHOD_NAME","$forEach","require$$0","arrayForEach","descriptors","ie8DomDefine","DESCRIPTORS","a","v8PrototypeDefineBug","anObject","functionCall","objectIsPrototypeOf","isSymbol","$Symbol","getMethod","V","P","func","TO_PRIMITIVE","toPrimitive","pref","exoticToPrim","val","valueOf","ordinaryToPrimitive","toPropertyKey","$defineProperty","$getOwnPropertyDescriptor","getOwnPropertyDescriptor","ENUMERABLE","CONFIGURABLE","WRITABLE","V8_PROTOTYPE_DEFINE_BUG","Attributes","current","enumerable","IE8_DOM_DEFINE","createPropertyDescriptor","bitmap","createNonEnumerableProperty","object","definePropertyModule","f","handlePrototype","CollectionPrototype","COLLECTION_NAME","DOMIterables","activeXDocument","toIndexedObject","max","toAbsoluteIndex","integer","IS_INCLUDES","el","fromIndex","arrayIncludes","includes","hiddenKeys","objectKeysInternal","names","enumBugKeys","objectKeys","internalObjectKeys","defineProperties","Properties","props","html","sharedKey","PROTOTYPE","SCRIPT","IE_PROTO","EmptyConstructor","scriptTag","content","LT","NullProtoObjectViaActiveX","write","close","temp","parentWindow","NullProtoObject","ActiveXObject","iframeDocument","iframe","JS","domain","style","display","appendChild","src","contentWindow","F","objectCreate","definePropertiesModule","UNSCOPABLES","ArrayPrototype","addToUnscopables","iterators","WeakMap","weakMapBasicDetection","OBJECT_ALREADY_INITIALIZED","NATIVE_WEAK_MAP","state","metadata","facade","STATE","IteratorPrototype","PrototypeOfArrayIteratorPrototype","arrayIterator","internalState","enforce","getterFor","$propertyIsEnumerable","descriptor","propertyIsEnumerableModule","getDescriptor","functionName","PROPER","CONFIGURABLE_FUNCTION_NAME","enforceInternalState","InternalStateModule","getInternalState","CONFIGURABLE_LENGTH","TEMPLATE","makeBuiltIn","exports","getter","setter","arity","defineBuiltIn","simple","unsafe","nonConfigurable","nonWritable","concat","ownKeys","getOwnPropertyNamesModule","getOwnPropertySymbolsModule","copyConstructorProperties","exceptions","getOwnPropertyDescriptorModule","replacement","isForced","feature","detection","data","normalize","POLYFILL","NATIVE","string","isForced_1","_export","targetProperty","sourceProperty","TARGET","GLOBAL","STATIC","stat","dontCallGetSet","forced","correctPrototypeGetter","getPrototypeOf","ObjectPrototype","objectGetPrototypeOf","CORRECT_PROTOTYPE_GETTER","ITERATOR","BUGGY_SAFARI_ITERATORS","NEW_ITERATOR_PROTOTYPE","iteratorsCore","setToStringTag","TAG","returnThis","objectSetPrototypeOf","setPrototypeOf","CORRECT_SETTER","uncurryThisAccessor","proto","aPossiblePrototype","__proto__","PROPER_FUNCTION_NAME","FunctionName","IteratorsCore","KEYS","VALUES","ENTRIES","iteratorDefine","Iterable","NAME","IteratorConstructor","DEFAULT","IS_SET","FORCED","ENUMERABLE_NEXT","Iterators","createIteratorConstructor","CurrentIteratorPrototype","KEY","getIterationMethod","KIND","defaultIterator","IterablePrototype","INCORRECT_VALUES_NAME","nativeIterator","anyNativeIterator","$","createIterResultObject","ARRAY_ITERATOR","setInternalState","es_array_iterator","defineIterator","iterated","kind","Arguments","ArrayValues","ArrayIteratorMethods","path","$indexOf","nativeIndexOf","NEGATIVE_ZERO","searchElement","doesNotExceedSafeInteger","createProperty","propertyKey","arrayMethodHasSpeciesSupport","array","foo","Boolean","IS_CONCAT_SPREADABLE","IS_CONCAT_SPREADABLE_SUPPORT","isConcatSpreadable","spreadable","arg","k","len","E","A","$assign","assign","objectAssign","b","B","alphabet","chr","T","argumentsLength","S","j","objectToString","$location","defer","channel","port","engineIsNode","defineBuiltInAccessor","setSpecies","CONSTRUCTOR_NAME","Constructor","anInstance","Prototype","speciesConstructor","defaultConstructor","aConstructor","functionApply","Reflect","arraySlice","validateArgumentsLength","passed","required","engineIsIos","setImmediate","clear","clearImmediate","Dispatch","MessageChannel","counter","queue","ONREADYSTATECHANGE","run","runner","eventListener","event","globalPostMessageDefer","postMessage","protocol","host","handler","args","IS_NODE","nextTick","now","IS_IOS","port2","port1","onmessage","importScripts","removeChild","task","Queue","head","tail","add","item","entry","notify","toggle","node","engineIsIosPebble","Pebble","engineIsWebosWebkit","macrotask","require$$1","MutationObserver","WebKitMutationObserver","queueMicrotaskDescriptor","microtask","flush","parent","exit","enter","IS_WEBOS_WEBKIT","IS_IOS_PEBBLE","createTextNode","observe","characterData","microtask_1","perform","promiseNativeConstructor","engineIsDeno","engineIsBrowser","IS_DENO","NativePromiseConstructor","Internal","OwnPromiseCapability","nativeThen","SUBCLASSING","NATIVE_PROMISE_REJECTION_EVENT","PromiseRejectionEvent","FORCED_PROMISE_CONSTRUCTOR","PROMISE_CONSTRUCTOR_SOURCE","GLOBAL_CORE_JS_PROMISE","FakePromise","IS_BROWSER","promiseConstructorDetection","CONSTRUCTOR","REJECTION_EVENT","PromiseCapability","$$resolve","$$reject","PROMISE","PromiseConstructorDetection","NATIVE_PROMISE_SUBCLASSING","getInternalPromiseState","NativePromisePrototype","PromiseConstructor","PromisePrototype","newPromiseCapability","newPromiseCapabilityModule","newGenericPromiseCapability","DISPATCH_EVENT","createEvent","dispatchEvent","UNHANDLED_REJECTION","isThenable","callReaction","reaction","exited","fail","rejection","onHandleUnhandled","isReject","notified","reactions","onUnhandled","reason","initEvent","console","hostReportErrors","isUnhandled","emit","unwrap","internalReject","internalResolve","wrapper","executor","onFulfilled","onRejected","PromiseWrapper","wrap","getIteratorMethod","iteratorClose","innerResult","innerError","Result","stopped","ResultPrototype","iterate","unboundFunction","iterFn","step","AS_ENTRIES","IS_RECORD","IS_ITERATOR","INTERRUPTED","stop","condition","callFn","usingIterator","iteratorMethod","getIterator","SAFE_CLOSING","iteratorWithReturn","return","from","checkCorrectnessOfIteration","SKIP_CLOSING","ITERATION_SUPPORT","promiseStaticsIncorrectIteration","PROMISE_STATICS_INCORRECT_ITERATION","capability","$promiseResolve","remaining","alreadyCalled","real","catch","race","r","promiseCapability","promiseResolve","re1","re2","toString_1","regexpFlags","hasIndices","ignoreCase","multiline","dotAll","unicode","unicodeSets","sticky","$RegExp","RegExp","UNSUPPORTED_Y","re","lastIndex","MISSED_STICKY","regexpStickyHelpers","BROKEN_CARET","regexpUnsupportedDotAll","flags","regexpUnsupportedNcg","groups","nativeReplace","nativeExec","patchedExec","charAt","UPDATES_LAST_INDEX_WRONG","stickyHelpers","NPCG_INCLUDED","UNSUPPORTED_DOT_ALL","UNSUPPORTED_NCG","reCopy","group","str","raw","charsAdded","strCopy","Features","_classCallCheck","_createClass","canvas","getContext","Worker","msPointerEnabled","msMaxTouchPoints","pointerEnabled","maxTouchPoints","webaudio","htmlAudio","capabilities","basic","features","ui","sizes","touch","size","screen","width","height","xsmall","small","medium","large","xlarge","webgl","webAudio","charCodeAt","CONVERT_TO_STRING","pos","first","second","position","codeAt","STRING_ITERATOR","point","$filter","HAS_SPECIES_SUPPORT","$find","FIND","SKIPS_HOLES","t","PluginManager","_ref","_ref$plugins","plugins","client","Bellhop","hidden","receive","hiddenSend","_this","preloads","_loop","preload","preloadFailed","warn","l","plugin","start","Container","_PluginManager","_inherits","_openRemote","_super","_createSuper","iframeOrSelector","_ref$context","context","HTMLIFrameElement","querySelector","loaded","loading","release","_context","onLoading","_assertThisInitialized","onLoadDone","onEndGame","onLocalError","initClient","setupPlugins","trigger","remove","reset","$event","setAttribute","on","connect","userPath","_ref2","_ref2$singlePlay","singlePlay","_ref2$playOptions","playOptions","playOptionsQueryString","encodeURIComponent","stringify","respond","_typeof","_internalOpen","_asyncToGenerator","_regeneratorRuntime","mark","_callee","api","_ref3","_ref3$query","query","_ref3$singlePlay","_ref3$playOptions","_args","prev","sent","success","_x","newContext","PageVisibility","onFocus","onBlur","_onFocus","_onBlur","enabled","_enabled","onToggle","enable","$includes","BROKEN_ON_SPARSE","whitespaces","ltrim","rtrim","stringTrim","end","$trim","RegExpPrototype","TO_STRING","nativeToString","NOT_GENERIC","INCORRECT_NAME","R","pattern","$toString","regExpFlags","getRegExpFlags","SavedData","dbName","db","dbVersion","additions","deletions","indexedDB","onsuccess","onupgradeneeded","stores","createObjectStore","storeName","indexes","transaction","objectStore","createIndex","indexName","keyPath","deleteIndex","deleteObjectStore","deleteDatabase","IDBOpen","tx","oncomplete","updateRequest","put","_this2","delete","_this3","readRequest","_this4","count","getAllKeys","getAll","dBOpenRequest","localStorage","removeItem","sessionStorage","setItem","getItem","BasePlugin","_preload","sendAllProperties","_","prop","warningText","ButtonPlugin","_BasePlugin","sendMutes","container","button","HTMLButtonElement","muted","changeMutedState","sendProperty","htmlButton","HTMLElement","MATCH","notARegexp","isRegExp","stringIndexOf","regexp","error1","error2","correctIsRegExpLogic","searchString","notARegExp","$getOwnPropertyNames","windowNames","getWindowNames","fin","arrayBufferNonExtensible","isExtensible","$isExtensible","objectIsExtensible","ARRAY_BUFFER_NON_EXTENSIBLE","freezing","preventExtensions","REQUIRED","METADATA","setMetadata","objectID","weakData","meta","splice","getOwnPropertyNamesExternalModule","fastKey","getWeakData","onFreeze","FREEZING","inheritIfRequired","dummy","Wrapper","NewTarget","NewTargetPrototype","defineBuiltIns","internalStateGetterFor","collectionStrong","getConstructor","ADDER","last","define","previous","getEntry","removed","setStrong","ITERATOR_NAME","getInternalCollectionState","getInternalIteratorState","common","IS_WEAK","NativeConstructor","NativePrototype","exported","fixMethod","uncurriedNativeMethod","InternalMetadataModule","instance","HASNT_CHAINING","THROWS_ON_PRIMITIVES","ACCEPT_ITERABLES","BUGGY_ZERO","$instance","collection","FAILS_ON_PRIMITIVES","nativeKeys","$map","TO_ENTRIES","$values","RadioGroup","selector","controlName","_ref$featureName","featureName","defaultValue","pluginName","radioElements","querySelectorAll","radioGroup","_possibleConstructorReturn","radio","checked","valuesArray","_toConsumableArray","Set","callBack","RadioGroupPlugin","cssSelector","supportedValues","initialValue","radioCount","selectors","_currentValue","radioGroups","setUpRadios","radioGroupsLength","hasOnly","hasDuplicateValues","property","newValue","thisNumberValue","require$$2","require$$3","NUMBER","NativeNumber","NumberPrototype","toNumeric","primValue","toNumber","third","radix","maxCode","digits","code","NaN","parseInt","calledWithNew","NumberWrapper","Number","Slider","slider","control","_ref$min","_ref$max","_ref$step","_ref$defaultValue","sliderValue","setUpSlider","read","Button","onClick","className","SliderPlugin","_ref$minValue","minValue","_ref$maxValue","maxValue","sliders","setUpSliders","slidersLength","displaySlider","currentValue","sliderRange","DEFAULT_CAPTIONS_STYLES","background","color","edge","font","align","DEFAULT_COLOR_STYLE","INVERTED_COLOR_STYLE","FONT_SIZE_VALUES","COLOR_VALUES","ALIGN_VALUES","CaptionsStylePlugin","_ButtonPlugin","fontSizeRadios","colorRadios","alignmentRadios","_ref$defaultFontSize","defaultFontSize","_ref$defaultColor","defaultColor","_ref$defaultAlignment","defaultAlignment","captionsStyles","captionStyleKey","fontSizeSelectors","colorSelectors","alignmentSelectors","setUpFontSizeRadios","setUpColorRadios","setUpAlignmentRadios","_captionsMuted","alignmentRadiosLength","fontSizeRadiosLength","colorRadiosLength","enableRadioEvents","onColorChange","onAlignmentChange","onFontSizeChange","_step","_iterator","_createForOfIteratorHelper","radios","s","displayRadios","setCaptionsStyles","styles","_step2","_iterator2","resetState","CaptionsTogglePlugin","captionsButtons","_captionsButtons","captionsButtonClick","captionsButtonLength","displayButton","captionsToggleKey","captionsMuted","_setMuteProp","HelpPlugin","helpButtons","_helpButtons","helpButtonClick","paused","_helpEnabled","onPause","helpButtonsLength","helpEnabled","getAttribute","hints","PausePlugin","pauseButton","manageOwnVisibility","_manageOwnVisibility","_appBlurred","_containerBlurred","_focusTimer","_isManualPause","_keepFocus","_paused","focusApp","manageFocus","onKeepFocus","onPauseToggle","pauseDisabled","_pauseButton","pageVisibility","onContainerFocus","onContainerBlur","pauseKey","hasDom","focus","blur","blurApp","clearTimeout","pause","disablePause","buttons","SoundPlugin","soundButtons","musicButtons","sfxButtons","voButtons","soundSliders","musicSliders","sfxSliders","voSliders","saved","soundMutedKey","_soundMuted","_musicMuted","_voMuted","_sfxMuted","soundVolume","musicVolume","sfxVolume","voVolume","soundVolumeKey","newSlider","musicVolumeKey","sfxVolumeKey","voVolumeKey","onSoundToggle","soundKey","onMusicToggle","onSFXToggle","onVOToggle","soundSlidersLength","musicSlidersLength","sfxSlidersLength","voSlidersLength","soundButtonsLength","musicButtonsLength","sfxButtonsLength","voButtonsLength","enableSliderEvents","onSoundVolumeChange","onMusicVolumeChange","onSFXVolumeChange","onVOVolumeChange","soundMuted","_checkSoundMute","musicMuted","voMuted","sfxMuted","element","enableButton","musicMutedKey","sfxMutedKey","voMutedKey","setMuteProp","_soundButton","_musicButton","_sfxButton","_voButton","SavedDataHandler","savedData","record","IDBAdd","IDBUpdate","IDBRemove","IDBRead","IDBReadAll","IDBGetVersion","IDBClose","IDBDeleteDB","UserDataPlugin","onUserDataRemove","onUserDataRead","onUserDataWrite","onIDBAdd","onIDBOpen","onIDBRead","onIDBReadAll","onIDBRemove","onIDBUpdate","onIDBClose","onIDBGetVersion","onIDBDeleteDB","savedDataHandler","_ref3$data","_ref4","_this5","_ref4$data","_ref4$data$dbVersion","_ref4$data$additions","_ref4$data$deletions","_ref5","_this6","_ref5$data","_ref6","_this7","_ref6$data","_ref7","_this8","_ref7$data","_ref8","_this9","_ref8$data","_ref9","_this10","_ref9$data","_ref10","_this11","_ref11","_this12","_ref12","_this13","_ref12$data","PointerSizePlugin","_SliderPlugin","pointerSliders","_ref$defaultPointerSi","defaultPointerSize","pointerSizeKey","onPointerSizeChange","ButtonSizePlugin","buttonSliders","_ref$defaultButtonSiz","defaultButtonSize","buttonSizeKey","onButtonSizeChange","ControlSensitivityPlugin","sensitivitySliders","_ref$defaultSensitivi","defaultSensitivity","controlSensitivityKey","onControlSensitivityChange","KeyboardMapPlugin","keyContainers","_ref$customClassName","customClassName","bindKey","onKeyButtonClick","keyBindings","activekeyButton","sendAfterFetch","canEmit","keyContainersLength","textContent","actionName","preventDefault","currentKey","keyBindingKey","keyBinding","defaultKey","label","htmlFor","LayersPlugin","layersSliders","layersSliderKey","onLayerValueChange","SUPPORTED_POSITIONS","HUDPlugin","_RadioGroupPlugin","hudSelectorRadios","hudPositionKey","positions","onHUDSelect","hudPosition","COLOR_BLIND_TYPES","ColorVisionPlugin","colorVisionRadios","colorVisionKey","colors","colorVision","colorDropdownsLength","HitAreaScalePlugin","hitAreaScaleSliders","_ref$defaultHitAreaSc","defaultHitAreaScale","hitAreaScaleKey","onHitAreaScaleChange","DragThresholdScalePlugin","dragThresholdScaleSliders","_ref$defaultDragThres","defaultDragThresholdScale","dragThresholdScaleKey","onDragThresholdScaleChange","HealthPlugin","healthSliders","_ref$defaultHealth","defaultHealth","healthKey","onHealthChange","ObjectCountPlugin","objectCountSliders","_ref$defaultObjectCou","defaultObjectCount","objectCountKey","onObjectCountChange","CompletionPercentagePlugin","completionPercentageSliders","_ref$defaultCompletio","defaultCompletionPercentage","completionPercentageKey","onCompletionPercentageChange","SpeedScalePlugin","speedScaleSliders","_ref$defaultSpeedScal","defaultSpeedScale","speedScaleKey","onSpeedScaleChange","TimersScalePlugin","timersScaleSliders","_ref$defaultTimersSca","defaultTimersScale","timersScaleKey","onTimersScaleChange","InputCountPlugin","inputCountSliders","_ref$defaultInputCoun","defaultInputCount","inputCountKey","onInputCountChange","FullScreenPlugin","buttonSelector","fullscreenKey","_toggleButtons","iFrame","log","toggleButton","toggleFullScreen","fullscreenElement","exitFullscreen","requestFullscreen","webkitIsFullscreen","mozFullScreen"],"mappings":"AAAA,IAAIA,EACqB,oBAAfC,YAA8BA,YACrB,oBAATC,MAAwBA,WACb,IAAXF,GAA0BA,EAEhCG,EAAU,CACZC,aAAc,oBAAqBJ,EACnCK,SAAU,WAAYL,GAAU,aAAcM,OAC9CC,KACE,eAAg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ACE,OAGK,IAHG6I,SAAS8vC,mBACf9vC,SAASiwC,oBACTjwC,SAASkwC,cAEb,IAEA,CAAA,CAAA7zC,IAAA,gBAAAlF,IAKA,WACE,MAAO,YACT,KAACm4C,CAAA"} \ No newline at end of file +{"version":3,"file":"index.js","sources":["../node_modules/whatwg-fetch/fetch.js","../node_modules/core-js/internals/global.js","../node_modules/core-js/internals/dom-iterables.js","../node_modules/core-js/internals/document-all.js","../node_modules/core-js/internals/is-callable.js","../node_modules/core-js/internals/is-object.js","../node_modules/core-js/internals/document-create-element.js","../node_modules/core-js/internals/dom-token-list-prototype.js","../node_modules/core-js/internals/fails.js","../node_modules/core-js/internals/function-bind-native.js","../node_modules/core-js/internals/function-uncurry-this.js","../node_modules/core-js/internals/classof-raw.js","../node_modules/core-js/internals/function-uncurry-this-clause.js","../node_modules/core-js/internals/try-to-string.js","../node_modules/core-js/internals/a-callable.js","../node_modules/core-js/internals/function-bind-context.js","../node_modules/core-js/internals/indexed-object.js","../node_modules/core-js/internals/is-null-or-undefined.js","../node_modules/core-js/internals/require-object-coercible.js","../node_modules/core-js/internals/to-object.js","../node_modules/core-js/internals/math-trunc.js","../node_modules/core-js/internals/to-integer-or-infinity.js","../node_modules/core-js/internals/to-length.js","../node_modules/core-js/internals/length-of-array-like.js","../node_modules/core-js/internals/is-array.js","../node_modules/core-js/internals/is-pure.js","../node_modules/core-js/internals/define-global-property.js","../node_modules/core-js/internals/shared-store.js","../node_modules/core-js/internals/shared.js","../node_modules/core-js/internals/has-own-property.js","../node_modules/core-js/internals/uid.js","../node_modules/core-js/internals/engine-user-agent.js","../node_modules/core-js/internals/engine-v8-version.js","../node_modules/core-js/internals/symbol-constructor-detection.js","../node_modules/core-js/internals/use-symbol-as-uid.js","../node_modules/core-js/internals/well-known-symbol.js","../node_modules/core-js/internals/to-string-tag-support.js","../node_modules/core-js/internals/classof.js","../node_modules/core-js/internals/get-built-in.js","../node_modules/core-js/internals/inspect-source.js","../node_modules/core-js/internals/is-constructor.js","../node_modules/core-js/internals/array-species-constructor.js","../node_modules/core-js/internals/array-species-create.js","../node_modules/core-js/internals/array-iteration.js","../node_modules/core-js/internals/array-method-is-strict.js","../node_modules/core-js/internals/array-for-each.js","../node_modules/core-js/internals/descriptors.js","../node_modules/core-js/internals/ie8-dom-define.js","../node_modules/core-js/internals/v8-prototype-define-bug.js","../node_modules/core-js/internals/an-object.js","../node_modules/core-js/internals/function-call.js","../node_modules/core-js/internals/object-is-prototype-of.js","../node_modules/core-js/internals/is-symbol.js","../node_modules/core-js/internals/get-method.js","../node_modules/core-js/internals/ordinary-to-primitive.js","../node_modules/core-js/internals/to-primitive.js","../node_modules/core-js/internals/to-property-key.js","../node_modules/core-js/internals/object-define-property.js","../node_modules/core-js/internals/create-property-descriptor.js","../node_modules/core-js/internals/create-non-enumerable-property.js","../node_modules/core-js/modules/web.dom-collections.for-each.js","../node_modules/core-js/internals/to-indexed-object.js","../node_modules/core-js/internals/to-absolute-index.js","../node_modules/core-js/internals/array-includes.js","../node_modules/core-js/internals/hidden-keys.js","../node_modules/core-js/internals/object-keys-internal.js","../node_modules/core-js/internals/enum-bug-keys.js","../node_modules/core-js/internals/object-keys.js","../node_modules/core-js/internals/object-define-properties.js","../node_modules/core-js/internals/html.js","../node_modules/core-js/internals/shared-key.js","../node_modules/core-js/internals/object-create.js","../node_modules/core-js/internals/add-to-unscopables.js","../node_modules/core-js/internals/iterators.js","../node_modules/core-js/internals/weak-map-basic-detection.js","../node_modules/core-js/internals/internal-state.js","../node_modules/core-js/internals/object-property-is-enumerable.js","../node_modules/core-js/internals/object-get-own-property-descriptor.js","../node_modules/core-js/internals/function-name.js","../node_modules/core-js/internals/make-built-in.js","../node_modules/core-js/internals/define-built-in.js","../node_modules/core-js/internals/object-get-own-property-names.js","../node_modules/core-js/internals/object-get-own-property-symbols.js","../node_modules/core-js/internals/own-keys.js","../node_modules/core-js/internals/copy-constructor-properties.js","../node_modules/core-js/internals/is-forced.js","../node_modules/core-js/internals/export.js","../node_modules/core-js/internals/correct-prototype-getter.js","../node_modules/core-js/internals/object-get-prototype-of.js","../node_modules/core-js/internals/iterators-core.js","../node_modules/core-js/internals/set-to-string-tag.js","../node_modules/core-js/internals/iterator-create-constructor.js","../node_modules/core-js/internals/function-uncurry-this-accessor.js","../node_modules/core-js/internals/a-possible-prototype.js","../node_modules/core-js/internals/object-set-prototype-of.js","../node_modules/core-js/internals/iterator-define.js","../node_modules/core-js/internals/create-iter-result-object.js","../node_modules/core-js/modules/es.array.iterator.js","../node_modules/core-js/modules/web.dom-collections.iterator.js","../node_modules/core-js/internals/path.js","../node_modules/core-js/modules/es.array.index-of.js","../node_modules/core-js/internals/does-not-exceed-safe-integer.js","../node_modules/core-js/internals/create-property.js","../node_modules/core-js/internals/array-method-has-species-support.js","../node_modules/core-js/modules/es.array.concat.js","../node_modules/core-js/internals/object-assign.js","../node_modules/core-js/modules/es.object.assign.js","../node_modules/core-js/internals/object-to-string.js","../node_modules/core-js/modules/es.object.to-string.js","../node_modules/core-js/internals/engine-is-node.js","../node_modules/core-js/internals/define-built-in-accessor.js","../node_modules/core-js/internals/set-species.js","../node_modules/core-js/internals/an-instance.js","../node_modules/core-js/internals/a-constructor.js","../node_modules/core-js/internals/species-constructor.js","../node_modules/core-js/internals/function-apply.js","../node_modules/core-js/internals/array-slice.js","../node_modules/core-js/internals/validate-arguments-length.js","../node_modules/core-js/internals/engine-is-ios.js","../node_modules/core-js/internals/task.js","../node_modules/core-js/internals/queue.js","../node_modules/core-js/internals/engine-is-ios-pebble.js","../node_modules/core-js/internals/engine-is-webos-webkit.js","../node_modules/core-js/internals/microtask.js","../node_modules/core-js/internals/host-report-errors.js","../node_modules/core-js/internals/perform.js","../node_modules/core-js/internals/promise-native-constructor.js","../node_modules/core-js/internals/engine-is-deno.js","../node_modules/core-js/internals/engine-is-browser.js","../node_modules/core-js/internals/promise-constructor-detection.js","../node_modules/core-js/internals/new-promise-capability.js","../node_modules/core-js/modules/es.promise.constructor.js","../node_modules/core-js/internals/is-array-iterator-method.js","../node_modules/core-js/internals/get-iterator-method.js","../node_modules/core-js/internals/get-iterator.js","../node_modules/core-js/internals/iterator-close.js","../node_modules/core-js/internals/iterate.js","../node_modules/core-js/internals/check-correctness-of-iteration.js","../node_modules/core-js/internals/promise-statics-incorrect-iteration.js","../node_modules/core-js/modules/es.promise.all.js","../node_modules/core-js/modules/es.promise.catch.js","../node_modules/core-js/modules/es.promise.race.js","../node_modules/core-js/modules/es.promise.reject.js","../node_modules/core-js/internals/promise-resolve.js","../node_modules/core-js/modules/es.promise.resolve.js","../node_modules/core-js/internals/to-string.js","../node_modules/core-js/internals/regexp-flags.js","../node_modules/core-js/internals/regexp-sticky-helpers.js","../node_modules/core-js/internals/regexp-unsupported-dot-all.js","../node_modules/core-js/internals/regexp-unsupported-ncg.js","../node_modules/core-js/internals/regexp-exec.js","../node_modules/core-js/modules/es.regexp.exec.js","../src/Features.js","../node_modules/core-js/internals/string-multibyte.js","../node_modules/core-js/modules/es.string.iterator.js","../node_modules/core-js/modules/es.array.filter.js","../node_modules/core-js/modules/es.array.find.js","../node_modules/bellhop-iframe/dist/bellhop.js","../src/PluginManager.js","../src/Container.js","../src/PageVisibility.js","../node_modules/core-js/modules/es.array.includes.js","../node_modules/core-js/internals/whitespaces.js","../node_modules/core-js/internals/string-trim.js","../node_modules/core-js/internals/string-trim-forced.js","../node_modules/core-js/modules/es.string.trim.js","../node_modules/core-js/internals/regexp-get-flags.js","../node_modules/core-js/modules/es.regexp.to-string.js","../src/SavedData.js","../src/base-plugins/BasePlugin.js","../src/base-plugins/ButtonPlugin.js","../node_modules/core-js/internals/is-regexp.js","../node_modules/core-js/internals/not-a-regexp.js","../node_modules/core-js/internals/correct-is-regexp-logic.js","../node_modules/core-js/modules/es.string.includes.js","../node_modules/core-js/internals/array-slice-simple.js","../node_modules/core-js/internals/object-get-own-property-names-external.js","../node_modules/core-js/internals/array-buffer-non-extensible.js","../node_modules/core-js/internals/object-is-extensible.js","../node_modules/core-js/internals/freezing.js","../node_modules/core-js/internals/internal-metadata.js","../node_modules/core-js/internals/inherit-if-required.js","../node_modules/core-js/internals/collection.js","../node_modules/core-js/internals/define-built-ins.js","../node_modules/core-js/internals/collection-strong.js","../node_modules/core-js/modules/es.set.constructor.js","../node_modules/core-js/modules/es.object.keys.js","../node_modules/core-js/modules/es.array.map.js","../node_modules/core-js/internals/object-to-array.js","../node_modules/core-js/modules/es.object.values.js","../src/ui-elements/RadioGroup.js","../src/base-plugins/RadioGroupPlugin.js","../node_modules/core-js/internals/this-number-value.js","../node_modules/core-js/modules/es.number.constructor.js","../src/ui-elements/Slider.js","../src/ui-elements/Button.js","../src/base-plugins/SliderPlugin.js","../src/plugins/CaptionsStylePlugin.js","../src/plugins/CaptionsTogglePlugin.js","../src/plugins/HelpPlugin.js","../src/plugins/PausePlugin.js","../src/plugins/SoundPlugin.js","../src/SavedDataHandler.js","../src/plugins/UserDataPlugin.js","../src/plugins/PointerSizePlugin.js","../src/plugins/ButtonSizePlugin.js","../src/plugins/ControlSensitivityPlugin.js","../src/plugins/KeyboardMapPlugin.js","../src/plugins/LayersPlugin.js","../src/plugins/HUDPlugin.js","../src/plugins/ColorVisionPlugin.js","../src/plugins/HitAreaScalePlugin.js","../src/plugins/DragThresholdScalePlugin.js","../src/plugins/HealthPlugin.js","../src/plugins/ObjectCountPlugin.js","../src/plugins/CompletionPercentagePlugin.js","../src/plugins/SpeedScalePlugin.js","../src/plugins/TimersScalePlugin.js","../src/plugins/InputCountPlugin.js","../src/plugins/FullScreenPlugin.js"],"sourcesContent":["var global =\n (typeof globalThis !== 'undefined' && globalThis) ||\n (typeof self !== 'undefined' && self) ||\n (typeof global !== 'undefined' && global)\n\nvar support = {\n searchParams: 'URLSearchParams' in global,\n iterable: 'Symbol' in global && 'iterator' in Symbol,\n blob:\n 'FileReader' in global &&\n 'Blob' in global &&\n (function() {\n try {\n new Blob()\n return true\n } catch (e) {\n return false\n }\n })(),\n formData: 'FormData' in global,\n arrayBuffer: 'ArrayBuffer' in global\n}\n\nfunction isDataView(obj) {\n return obj && DataView.prototype.isPrototypeOf(obj)\n}\n\nif (support.arrayBuffer) {\n var viewClasses = [\n '[object Int8Array]',\n '[object Uint8Array]',\n '[object Uint8ClampedArray]',\n '[object Int16Array]',\n '[object Uint16Array]',\n '[object Int32Array]',\n '[object Uint32Array]',\n '[object Float32Array]',\n '[object Float64Array]'\n ]\n\n var isArrayBufferView =\n ArrayBuffer.isView ||\n function(obj) {\n return obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1\n }\n}\n\nfunction normalizeName(name) {\n if (typeof name !== 'string') {\n name = String(name)\n }\n if (/[^a-z0-9\\-#$%&'*+.^_`|~!]/i.test(name) || name === '') {\n throw new TypeError('Invalid character in header field name: \"' + name + '\"')\n }\n return name.toLowerCase()\n}\n\nfunction normalizeValue(value) {\n if (typeof value !== 'string') {\n value = String(value)\n }\n return value\n}\n\n// Build a destructive iterator for the value list\nfunction iteratorFor(items) {\n var iterator = {\n next: function() {\n var value = items.shift()\n return {done: value === undefined, value: value}\n }\n }\n\n if (support.iterable) {\n iterator[Symbol.iterator] = function() {\n return iterator\n }\n }\n\n return iterator\n}\n\nexport function Headers(headers) {\n this.map = {}\n\n if (headers instanceof Headers) {\n headers.forEach(function(value, name) {\n this.append(name, value)\n }, this)\n } else if (Array.isArray(headers)) {\n headers.forEach(function(header) {\n this.append(header[0], header[1])\n }, this)\n } else if (headers) {\n Object.getOwnPropertyNames(headers).forEach(function(name) {\n this.append(name, headers[name])\n }, this)\n }\n}\n\nHeaders.prototype.append = function(name, value) {\n name = normalizeName(name)\n value = normalizeValue(value)\n var oldValue = this.map[name]\n this.map[name] = oldValue ? oldValue + ', ' + value : value\n}\n\nHeaders.prototype['delete'] = function(name) {\n delete this.map[normalizeName(name)]\n}\n\nHeaders.prototype.get = function(name) {\n name = normalizeName(name)\n return this.has(name) ? this.map[name] : null\n}\n\nHeaders.prototype.has = function(name) {\n return this.map.hasOwnProperty(normalizeName(name))\n}\n\nHeaders.prototype.set = function(name, value) {\n this.map[normalizeName(name)] = normalizeValue(value)\n}\n\nHeaders.prototype.forEach = function(callback, thisArg) {\n for (var name in this.map) {\n if (this.map.hasOwnProperty(name)) {\n callback.call(thisArg, this.map[name], name, this)\n }\n }\n}\n\nHeaders.prototype.keys = function() {\n var items = []\n this.forEach(function(value, name) {\n items.push(name)\n })\n return iteratorFor(items)\n}\n\nHeaders.prototype.values = function() {\n var items = []\n this.forEach(function(value) {\n items.push(value)\n })\n return iteratorFor(items)\n}\n\nHeaders.prototype.entries = function() {\n var items = []\n this.forEach(function(value, name) {\n items.push([name, value])\n })\n return iteratorFor(items)\n}\n\nif (support.iterable) {\n Headers.prototype[Symbol.iterator] = Headers.prototype.entries\n}\n\nfunction consumed(body) {\n if (body.bodyUsed) {\n return Promise.reject(new TypeError('Already read'))\n }\n body.bodyUsed = true\n}\n\nfunction fileReaderReady(reader) {\n return new Promise(function(resolve, reject) {\n reader.onload = function() {\n resolve(reader.result)\n }\n reader.onerror = function() {\n reject(reader.error)\n }\n })\n}\n\nfunction readBlobAsArrayBuffer(blob) {\n var reader = new FileReader()\n var promise = fileReaderReady(reader)\n reader.readAsArrayBuffer(blob)\n return promise\n}\n\nfunction readBlobAsText(blob) {\n var reader = new FileReader()\n var promise = fileReaderReady(reader)\n reader.readAsText(blob)\n return promise\n}\n\nfunction readArrayBufferAsText(buf) {\n var view = new Uint8Array(buf)\n var chars = new Array(view.length)\n\n for (var i = 0; i < view.length; i++) {\n chars[i] = String.fromCharCode(view[i])\n }\n return chars.join('')\n}\n\nfunction bufferClone(buf) {\n if (buf.slice) {\n return buf.slice(0)\n } else {\n var view = new Uint8Array(buf.byteLength)\n view.set(new Uint8Array(buf))\n return view.buffer\n }\n}\n\nfunction Body() {\n this.bodyUsed = false\n\n this._initBody = function(body) {\n /*\n fetch-mock wraps the Response object in an ES6 Proxy to\n provide useful test harness features such as flush. However, on\n ES5 browsers without fetch or Proxy support pollyfills must be used;\n the proxy-pollyfill is unable to proxy an attribute unless it exists\n on the object before the Proxy is created. This change ensures\n Response.bodyUsed exists on the instance, while maintaining the\n semantic of setting Request.bodyUsed in the constructor before\n _initBody is called.\n */\n this.bodyUsed = this.bodyUsed\n this._bodyInit = body\n if (!body) {\n this._bodyText = ''\n } else if (typeof body === 'string') {\n this._bodyText = body\n } else if (support.blob && Blob.prototype.isPrototypeOf(body)) {\n this._bodyBlob = body\n } else if (support.formData && FormData.prototype.isPrototypeOf(body)) {\n this._bodyFormData = body\n } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {\n this._bodyText = body.toString()\n } else if (support.arrayBuffer && support.blob && isDataView(body)) {\n this._bodyArrayBuffer = bufferClone(body.buffer)\n // IE 10-11 can't handle a DataView body.\n this._bodyInit = new Blob([this._bodyArrayBuffer])\n } else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) {\n this._bodyArrayBuffer = bufferClone(body)\n } else {\n this._bodyText = body = Object.prototype.toString.call(body)\n }\n\n if (!this.headers.get('content-type')) {\n if (typeof body === 'string') {\n this.headers.set('content-type', 'text/plain;charset=UTF-8')\n } else if (this._bodyBlob && this._bodyBlob.type) {\n this.headers.set('content-type', this._bodyBlob.type)\n } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {\n this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8')\n }\n }\n }\n\n if (support.blob) {\n this.blob = function() {\n var rejected = consumed(this)\n if (rejected) {\n return rejected\n }\n\n if (this._bodyBlob) {\n return Promise.resolve(this._bodyBlob)\n } else if (this._bodyArrayBuffer) {\n return Promise.resolve(new Blob([this._bodyArrayBuffer]))\n } else if (this._bodyFormData) {\n throw new Error('could not read FormData body as blob')\n } else {\n return Promise.resolve(new Blob([this._bodyText]))\n }\n }\n\n this.arrayBuffer = function() {\n if (this._bodyArrayBuffer) {\n var isConsumed = consumed(this)\n if (isConsumed) {\n return isConsumed\n }\n if (ArrayBuffer.isView(this._bodyArrayBuffer)) {\n return Promise.resolve(\n this._bodyArrayBuffer.buffer.slice(\n this._bodyArrayBuffer.byteOffset,\n this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength\n )\n )\n } else {\n return Promise.resolve(this._bodyArrayBuffer)\n }\n } else {\n return this.blob().then(readBlobAsArrayBuffer)\n }\n }\n }\n\n this.text = function() {\n var rejected = consumed(this)\n if (rejected) {\n return rejected\n }\n\n if (this._bodyBlob) {\n return readBlobAsText(this._bodyBlob)\n } else if (this._bodyArrayBuffer) {\n return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer))\n } else if (this._bodyFormData) {\n throw new Error('could not read FormData body as text')\n } else {\n return Promise.resolve(this._bodyText)\n }\n }\n\n if (support.formData) {\n this.formData = function() {\n return this.text().then(decode)\n }\n }\n\n this.json = function() {\n return this.text().then(JSON.parse)\n }\n\n return this\n}\n\n// HTTP methods whose capitalization should be normalized\nvar methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT']\n\nfunction normalizeMethod(method) {\n var upcased = method.toUpperCase()\n return methods.indexOf(upcased) > -1 ? upcased : method\n}\n\nexport function Request(input, options) {\n if (!(this instanceof Request)) {\n throw new TypeError('Please use the \"new\" operator, this DOM object constructor cannot be called as a function.')\n }\n\n options = options || {}\n var body = options.body\n\n if (input instanceof Request) {\n if (input.bodyUsed) {\n throw new TypeError('Already read')\n }\n this.url = input.url\n this.credentials = input.credentials\n if (!options.headers) {\n this.headers = new Headers(input.headers)\n }\n this.method = input.method\n this.mode = input.mode\n this.signal = input.signal\n if (!body && input._bodyInit != null) {\n body = input._bodyInit\n input.bodyUsed = true\n }\n } else {\n this.url = String(input)\n }\n\n this.credentials = options.credentials || this.credentials || 'same-origin'\n if (options.headers || !this.headers) {\n this.headers = new Headers(options.headers)\n }\n this.method = normalizeMethod(options.method || this.method || 'GET')\n this.mode = options.mode || this.mode || null\n this.signal = options.signal || this.signal\n this.referrer = null\n\n if ((this.method === 'GET' || this.method === 'HEAD') && body) {\n throw new TypeError('Body not allowed for GET or HEAD requests')\n }\n this._initBody(body)\n\n if (this.method === 'GET' || this.method === 'HEAD') {\n if (options.cache === 'no-store' || options.cache === 'no-cache') {\n // Search for a '_' parameter in the query string\n var reParamSearch = /([?&])_=[^&]*/\n if (reParamSearch.test(this.url)) {\n // If it already exists then set the value with the current time\n this.url = this.url.replace(reParamSearch, '$1_=' + new Date().getTime())\n } else {\n // Otherwise add a new '_' parameter to the end with the current time\n var reQueryString = /\\?/\n this.url += (reQueryString.test(this.url) ? '&' : '?') + '_=' + new Date().getTime()\n }\n }\n }\n}\n\nRequest.prototype.clone = function() {\n return new Request(this, {body: this._bodyInit})\n}\n\nfunction decode(body) {\n var form = new FormData()\n body\n .trim()\n .split('&')\n .forEach(function(bytes) {\n if (bytes) {\n var split = bytes.split('=')\n var name = split.shift().replace(/\\+/g, ' ')\n var value = split.join('=').replace(/\\+/g, ' ')\n form.append(decodeURIComponent(name), decodeURIComponent(value))\n }\n })\n return form\n}\n\nfunction parseHeaders(rawHeaders) {\n var headers = new Headers()\n // Replace instances of \\r\\n and \\n followed by at least one space or horizontal tab with a space\n // https://tools.ietf.org/html/rfc7230#section-3.2\n var preProcessedHeaders = rawHeaders.replace(/\\r?\\n[\\t ]+/g, ' ')\n // Avoiding split via regex to work around a common IE11 bug with the core-js 3.6.0 regex polyfill\n // https://github.com/github/fetch/issues/748\n // https://github.com/zloirock/core-js/issues/751\n preProcessedHeaders\n .split('\\r')\n .map(function(header) {\n return header.indexOf('\\n') === 0 ? header.substr(1, header.length) : header\n })\n .forEach(function(line) {\n var parts = line.split(':')\n var key = parts.shift().trim()\n if (key) {\n var value = parts.join(':').trim()\n headers.append(key, value)\n }\n })\n return headers\n}\n\nBody.call(Request.prototype)\n\nexport function Response(bodyInit, options) {\n if (!(this instanceof Response)) {\n throw new TypeError('Please use the \"new\" operator, this DOM object constructor cannot be called as a function.')\n }\n if (!options) {\n options = {}\n }\n\n this.type = 'default'\n this.status = options.status === undefined ? 200 : options.status\n this.ok = this.status >= 200 && this.status < 300\n this.statusText = options.statusText === undefined ? '' : '' + options.statusText\n this.headers = new Headers(options.headers)\n this.url = options.url || ''\n this._initBody(bodyInit)\n}\n\nBody.call(Response.prototype)\n\nResponse.prototype.clone = function() {\n return new Response(this._bodyInit, {\n status: this.status,\n statusText: this.statusText,\n headers: new Headers(this.headers),\n url: this.url\n })\n}\n\nResponse.error = function() {\n var response = new Response(null, {status: 0, statusText: ''})\n response.type = 'error'\n return response\n}\n\nvar redirectStatuses = [301, 302, 303, 307, 308]\n\nResponse.redirect = function(url, status) {\n if (redirectStatuses.indexOf(status) === -1) {\n throw new RangeError('Invalid status code')\n }\n\n return new Response(null, {status: status, headers: {location: url}})\n}\n\nexport var DOMException = global.DOMException\ntry {\n new DOMException()\n} catch (err) {\n DOMException = function(message, name) {\n this.message = message\n this.name = name\n var error = Error(message)\n this.stack = error.stack\n }\n DOMException.prototype = Object.create(Error.prototype)\n DOMException.prototype.constructor = DOMException\n}\n\nexport function fetch(input, init) {\n return new Promise(function(resolve, reject) {\n var request = new Request(input, init)\n\n if (request.signal && request.signal.aborted) {\n return reject(new DOMException('Aborted', 'AbortError'))\n }\n\n var xhr = new XMLHttpRequest()\n\n function abortXhr() {\n xhr.abort()\n }\n\n xhr.onload = function() {\n var options = {\n status: xhr.status,\n statusText: xhr.statusText,\n headers: parseHeaders(xhr.getAllResponseHeaders() || '')\n }\n options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL')\n var body = 'response' in xhr ? xhr.response : xhr.responseText\n setTimeout(function() {\n resolve(new Response(body, options))\n }, 0)\n }\n\n xhr.onerror = function() {\n setTimeout(function() {\n reject(new TypeError('Network request failed'))\n }, 0)\n }\n\n xhr.ontimeout = function() {\n setTimeout(function() {\n reject(new TypeError('Network request failed'))\n }, 0)\n }\n\n xhr.onabort = function() {\n setTimeout(function() {\n reject(new DOMException('Aborted', 'AbortError'))\n }, 0)\n }\n\n function fixUrl(url) {\n try {\n return url === '' && global.location.href ? global.location.href : url\n } catch (e) {\n return url\n }\n }\n\n xhr.open(request.method, fixUrl(request.url), true)\n\n if (request.credentials === 'include') {\n xhr.withCredentials = true\n } else if (request.credentials === 'omit') {\n xhr.withCredentials = false\n }\n\n if ('responseType' in xhr) {\n if (support.blob) {\n xhr.responseType = 'blob'\n } else if (\n support.arrayBuffer &&\n request.headers.get('Content-Type') &&\n request.headers.get('Content-Type').indexOf('application/octet-stream') !== -1\n ) {\n xhr.responseType = 'arraybuffer'\n }\n }\n\n if (init && typeof init.headers === 'object' && !(init.headers instanceof Headers)) {\n Object.getOwnPropertyNames(init.headers).forEach(function(name) {\n xhr.setRequestHeader(name, normalizeValue(init.headers[name]))\n })\n } else {\n request.headers.forEach(function(value, name) {\n xhr.setRequestHeader(name, value)\n })\n }\n\n if (request.signal) {\n request.signal.addEventListener('abort', abortXhr)\n\n xhr.onreadystatechange = function() {\n // DONE (success or failure)\n if (xhr.readyState === 4) {\n request.signal.removeEventListener('abort', abortXhr)\n }\n }\n }\n\n xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit)\n })\n}\n\nfetch.polyfill = true\n\nif (!global.fetch) {\n global.fetch = fetch\n global.Headers = Headers\n global.Request = Request\n global.Response = Response\n}\n","var check = function (it) {\n return it && it.Math == Math && it;\n};\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nmodule.exports =\n // eslint-disable-next-line es/no-global-this -- safe\n check(typeof globalThis == 'object' && globalThis) ||\n check(typeof window == 'object' && window) ||\n // eslint-disable-next-line no-restricted-globals -- safe\n check(typeof self == 'object' && self) ||\n check(typeof global == 'object' && global) ||\n // eslint-disable-next-line no-new-func -- fallback\n (function () { return this; })() || Function('return this')();\n","// iterable DOM collections\n// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods\nmodule.exports = {\n CSSRuleList: 0,\n CSSStyleDeclaration: 0,\n CSSValueList: 0,\n ClientRectList: 0,\n DOMRectList: 0,\n DOMStringList: 0,\n DOMTokenList: 1,\n DataTransferItemList: 0,\n FileList: 0,\n HTMLAllCollection: 0,\n HTMLCollection: 0,\n HTMLFormElement: 0,\n HTMLSelectElement: 0,\n MediaList: 0,\n MimeTypeArray: 0,\n NamedNodeMap: 0,\n NodeList: 1,\n PaintRequestList: 0,\n Plugin: 0,\n PluginArray: 0,\n SVGLengthList: 0,\n SVGNumberList: 0,\n SVGPathSegList: 0,\n SVGPointList: 0,\n SVGStringList: 0,\n SVGTransformList: 0,\n SourceBufferList: 0,\n StyleSheetList: 0,\n TextTrackCueList: 0,\n TextTrackList: 0,\n TouchList: 0\n};\n","var documentAll = typeof document == 'object' && document.all;\n\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot\n// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing\nvar IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;\n\nmodule.exports = {\n all: documentAll,\n IS_HTMLDDA: IS_HTMLDDA\n};\n","var $documentAll = require('../internals/document-all');\n\nvar documentAll = $documentAll.all;\n\n// `IsCallable` abstract operation\n// https://tc39.es/ecma262/#sec-iscallable\nmodule.exports = $documentAll.IS_HTMLDDA ? function (argument) {\n return typeof argument == 'function' || argument === documentAll;\n} : function (argument) {\n return typeof argument == 'function';\n};\n","var isCallable = require('../internals/is-callable');\nvar $documentAll = require('../internals/document-all');\n\nvar documentAll = $documentAll.all;\n\nmodule.exports = $documentAll.IS_HTMLDDA ? function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll;\n} : function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it);\n};\n","var global = require('../internals/global');\nvar isObject = require('../internals/is-object');\n\nvar document = global.document;\n// typeof document.createElement is 'object' in old IE\nvar EXISTS = isObject(document) && isObject(document.createElement);\n\nmodule.exports = function (it) {\n return EXISTS ? document.createElement(it) : {};\n};\n","// in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`\nvar documentCreateElement = require('../internals/document-create-element');\n\nvar classList = documentCreateElement('span').classList;\nvar DOMTokenListPrototype = classList && classList.constructor && classList.constructor.prototype;\n\nmodule.exports = DOMTokenListPrototype === Object.prototype ? undefined : DOMTokenListPrototype;\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (error) {\n return true;\n }\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-function-prototype-bind -- safe\n var test = (function () { /* empty */ }).bind();\n // eslint-disable-next-line no-prototype-builtins -- safe\n return typeof test != 'function' || test.hasOwnProperty('prototype');\n});\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar call = FunctionPrototype.call;\nvar uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);\n\nmodule.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {\n return function () {\n return call.apply(fn, arguments);\n };\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar toString = uncurryThis({}.toString);\nvar stringSlice = uncurryThis(''.slice);\n\nmodule.exports = function (it) {\n return stringSlice(toString(it), 8, -1);\n};\n","var classofRaw = require('../internals/classof-raw');\nvar uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = function (fn) {\n // Nashorn bug:\n // https://github.com/zloirock/core-js/issues/1128\n // https://github.com/zloirock/core-js/issues/1130\n if (classofRaw(fn) === 'Function') return uncurryThis(fn);\n};\n","var $String = String;\n\nmodule.exports = function (argument) {\n try {\n return $String(argument);\n } catch (error) {\n return 'Object';\n }\n};\n","var isCallable = require('../internals/is-callable');\nvar tryToString = require('../internals/try-to-string');\n\nvar $TypeError = TypeError;\n\n// `Assert: IsCallable(argument) is true`\nmodule.exports = function (argument) {\n if (isCallable(argument)) return argument;\n throw $TypeError(tryToString(argument) + ' is not a function');\n};\n","var uncurryThis = require('../internals/function-uncurry-this-clause');\nvar aCallable = require('../internals/a-callable');\nvar NATIVE_BIND = require('../internals/function-bind-native');\n\nvar bind = uncurryThis(uncurryThis.bind);\n\n// optional / simple context binding\nmodule.exports = function (fn, that) {\n aCallable(fn);\n return that === undefined ? fn : NATIVE_BIND ? bind(fn, that) : function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar classof = require('../internals/classof-raw');\n\nvar $Object = Object;\nvar split = uncurryThis(''.split);\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nmodule.exports = fails(function () {\n // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n // eslint-disable-next-line no-prototype-builtins -- safe\n return !$Object('z').propertyIsEnumerable(0);\n}) ? function (it) {\n return classof(it) == 'String' ? split(it, '') : $Object(it);\n} : $Object;\n","// we can't use just `it == null` since of `document.all` special case\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec\nmodule.exports = function (it) {\n return it === null || it === undefined;\n};\n","var isNullOrUndefined = require('../internals/is-null-or-undefined');\n\nvar $TypeError = TypeError;\n\n// `RequireObjectCoercible` abstract operation\n// https://tc39.es/ecma262/#sec-requireobjectcoercible\nmodule.exports = function (it) {\n if (isNullOrUndefined(it)) throw $TypeError(\"Can't call method on \" + it);\n return it;\n};\n","var requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar $Object = Object;\n\n// `ToObject` abstract operation\n// https://tc39.es/ecma262/#sec-toobject\nmodule.exports = function (argument) {\n return $Object(requireObjectCoercible(argument));\n};\n","var ceil = Math.ceil;\nvar floor = Math.floor;\n\n// `Math.trunc` method\n// https://tc39.es/ecma262/#sec-math.trunc\n// eslint-disable-next-line es/no-math-trunc -- safe\nmodule.exports = Math.trunc || function trunc(x) {\n var n = +x;\n return (n > 0 ? floor : ceil)(n);\n};\n","var trunc = require('../internals/math-trunc');\n\n// `ToIntegerOrInfinity` abstract operation\n// https://tc39.es/ecma262/#sec-tointegerorinfinity\nmodule.exports = function (argument) {\n var number = +argument;\n // eslint-disable-next-line no-self-compare -- NaN check\n return number !== number || number === 0 ? 0 : trunc(number);\n};\n","var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar min = Math.min;\n\n// `ToLength` abstract operation\n// https://tc39.es/ecma262/#sec-tolength\nmodule.exports = function (argument) {\n return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991\n};\n","var toLength = require('../internals/to-length');\n\n// `LengthOfArrayLike` abstract operation\n// https://tc39.es/ecma262/#sec-lengthofarraylike\nmodule.exports = function (obj) {\n return toLength(obj.length);\n};\n","var classof = require('../internals/classof-raw');\n\n// `IsArray` abstract operation\n// https://tc39.es/ecma262/#sec-isarray\n// eslint-disable-next-line es/no-array-isarray -- safe\nmodule.exports = Array.isArray || function isArray(argument) {\n return classof(argument) == 'Array';\n};\n","module.exports = false;\n","var global = require('../internals/global');\n\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\n\nmodule.exports = function (key, value) {\n try {\n defineProperty(global, key, { value: value, configurable: true, writable: true });\n } catch (error) {\n global[key] = value;\n } return value;\n};\n","var global = require('../internals/global');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || defineGlobalProperty(SHARED, {});\n\nmodule.exports = store;\n","var IS_PURE = require('../internals/is-pure');\nvar store = require('../internals/shared-store');\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.28.0',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',\n license: 'https://github.com/zloirock/core-js/blob/v3.28.0/LICENSE',\n source: 'https://github.com/zloirock/core-js'\n});\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar toObject = require('../internals/to-object');\n\nvar hasOwnProperty = uncurryThis({}.hasOwnProperty);\n\n// `HasOwnProperty` abstract operation\n// https://tc39.es/ecma262/#sec-hasownproperty\n// eslint-disable-next-line es/no-object-hasown -- safe\nmodule.exports = Object.hasOwn || function hasOwn(it, key) {\n return hasOwnProperty(toObject(it), key);\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar id = 0;\nvar postfix = Math.random();\nvar toString = uncurryThis(1.0.toString);\n\nmodule.exports = function (key) {\n return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);\n};\n","module.exports = typeof navigator != 'undefined' && String(navigator.userAgent) || '';\n","var global = require('../internals/global');\nvar userAgent = require('../internals/engine-user-agent');\n\nvar process = global.process;\nvar Deno = global.Deno;\nvar versions = process && process.versions || Deno && Deno.version;\nvar v8 = versions && versions.v8;\nvar match, version;\n\nif (v8) {\n match = v8.split('.');\n // in old Chrome, versions of V8 isn't V8 = Chrome / 10\n // but their correct versions are not interesting for us\n version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);\n}\n\n// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`\n// so check `userAgent` even if `.v8` exists, but 0\nif (!version && userAgent) {\n match = userAgent.match(/Edge\\/(\\d+)/);\n if (!match || match[1] >= 74) {\n match = userAgent.match(/Chrome\\/(\\d+)/);\n if (match) version = +match[1];\n }\n}\n\nmodule.exports = version;\n","/* eslint-disable es/no-symbol -- required for testing */\nvar V8_VERSION = require('../internals/engine-v8-version');\nvar fails = require('../internals/fails');\n\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing\nmodule.exports = !!Object.getOwnPropertySymbols && !fails(function () {\n var symbol = Symbol();\n // Chrome 38 Symbol has incorrect toString conversion\n // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances\n return !String(symbol) || !(Object(symbol) instanceof Symbol) ||\n // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances\n !Symbol.sham && V8_VERSION && V8_VERSION < 41;\n});\n","/* eslint-disable es/no-symbol -- required for testing */\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\n\nmodule.exports = NATIVE_SYMBOL\n && !Symbol.sham\n && typeof Symbol.iterator == 'symbol';\n","var global = require('../internals/global');\nvar shared = require('../internals/shared');\nvar hasOwn = require('../internals/has-own-property');\nvar uid = require('../internals/uid');\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar Symbol = global.Symbol;\nvar WellKnownSymbolsStore = shared('wks');\nvar createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid;\n\nmodule.exports = function (name) {\n if (!hasOwn(WellKnownSymbolsStore, name)) {\n WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name)\n ? Symbol[name]\n : createWellKnownSymbol('Symbol.' + name);\n } return WellKnownSymbolsStore[name];\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar test = {};\n\ntest[TO_STRING_TAG] = 'z';\n\nmodule.exports = String(test) === '[object z]';\n","var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar isCallable = require('../internals/is-callable');\nvar classofRaw = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar $Object = Object;\n\n// ES3 wrong here\nvar CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (error) { /* empty */ }\n};\n\n// getting tag from ES6+ `Object.prototype.toString`\nmodule.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {\n var O, tag, result;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag\n // builtinTag case\n : CORRECT_ARGUMENTS ? classofRaw(O)\n // ES3 arguments fallback\n : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;\n};\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar aFunction = function (argument) {\n return isCallable(argument) ? argument : undefined;\n};\n\nmodule.exports = function (namespace, method) {\n return arguments.length < 2 ? aFunction(global[namespace]) : global[namespace] && global[namespace][method];\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar isCallable = require('../internals/is-callable');\nvar store = require('../internals/shared-store');\n\nvar functionToString = uncurryThis(Function.toString);\n\n// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper\nif (!isCallable(store.inspectSource)) {\n store.inspectSource = function (it) {\n return functionToString(it);\n };\n}\n\nmodule.exports = store.inspectSource;\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar classof = require('../internals/classof');\nvar getBuiltIn = require('../internals/get-built-in');\nvar inspectSource = require('../internals/inspect-source');\n\nvar noop = function () { /* empty */ };\nvar empty = [];\nvar construct = getBuiltIn('Reflect', 'construct');\nvar constructorRegExp = /^\\s*(?:class|function)\\b/;\nvar exec = uncurryThis(constructorRegExp.exec);\nvar INCORRECT_TO_STRING = !constructorRegExp.exec(noop);\n\nvar isConstructorModern = function isConstructor(argument) {\n if (!isCallable(argument)) return false;\n try {\n construct(noop, empty, argument);\n return true;\n } catch (error) {\n return false;\n }\n};\n\nvar isConstructorLegacy = function isConstructor(argument) {\n if (!isCallable(argument)) return false;\n switch (classof(argument)) {\n case 'AsyncFunction':\n case 'GeneratorFunction':\n case 'AsyncGeneratorFunction': return false;\n }\n try {\n // we can't check .prototype since constructors produced by .bind haven't it\n // `Function#toString` throws on some built-it function in some legacy engines\n // (for example, `DOMQuad` and similar in FF41-)\n return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));\n } catch (error) {\n return true;\n }\n};\n\nisConstructorLegacy.sham = true;\n\n// `IsConstructor` abstract operation\n// https://tc39.es/ecma262/#sec-isconstructor\nmodule.exports = !construct || fails(function () {\n var called;\n return isConstructorModern(isConstructorModern.call)\n || !isConstructorModern(Object)\n || !isConstructorModern(function () { called = true; })\n || called;\n}) ? isConstructorLegacy : isConstructorModern;\n","var isArray = require('../internals/is-array');\nvar isConstructor = require('../internals/is-constructor');\nvar isObject = require('../internals/is-object');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar SPECIES = wellKnownSymbol('species');\nvar $Array = Array;\n\n// a part of `ArraySpeciesCreate` abstract operation\n// https://tc39.es/ecma262/#sec-arrayspeciescreate\nmodule.exports = function (originalArray) {\n var C;\n if (isArray(originalArray)) {\n C = originalArray.constructor;\n // cross-realm fallback\n if (isConstructor(C) && (C === $Array || isArray(C.prototype))) C = undefined;\n else if (isObject(C)) {\n C = C[SPECIES];\n if (C === null) C = undefined;\n }\n } return C === undefined ? $Array : C;\n};\n","var arraySpeciesConstructor = require('../internals/array-species-constructor');\n\n// `ArraySpeciesCreate` abstract operation\n// https://tc39.es/ecma262/#sec-arrayspeciescreate\nmodule.exports = function (originalArray, length) {\n return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);\n};\n","var bind = require('../internals/function-bind-context');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar IndexedObject = require('../internals/indexed-object');\nvar toObject = require('../internals/to-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar arraySpeciesCreate = require('../internals/array-species-create');\n\nvar push = uncurryThis([].push);\n\n// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation\nvar createMethod = function (TYPE) {\n var IS_MAP = TYPE == 1;\n var IS_FILTER = TYPE == 2;\n var IS_SOME = TYPE == 3;\n var IS_EVERY = TYPE == 4;\n var IS_FIND_INDEX = TYPE == 6;\n var IS_FILTER_REJECT = TYPE == 7;\n var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;\n return function ($this, callbackfn, that, specificCreate) {\n var O = toObject($this);\n var self = IndexedObject(O);\n var boundFunction = bind(callbackfn, that);\n var length = lengthOfArrayLike(self);\n var index = 0;\n var create = specificCreate || arraySpeciesCreate;\n var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;\n var value, result;\n for (;length > index; index++) if (NO_HOLES || index in self) {\n value = self[index];\n result = boundFunction(value, index, O);\n if (TYPE) {\n if (IS_MAP) target[index] = result; // map\n else if (result) switch (TYPE) {\n case 3: return true; // some\n case 5: return value; // find\n case 6: return index; // findIndex\n case 2: push(target, value); // filter\n } else switch (TYPE) {\n case 4: return false; // every\n case 7: push(target, value); // filterReject\n }\n }\n }\n return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.forEach` method\n // https://tc39.es/ecma262/#sec-array.prototype.foreach\n forEach: createMethod(0),\n // `Array.prototype.map` method\n // https://tc39.es/ecma262/#sec-array.prototype.map\n map: createMethod(1),\n // `Array.prototype.filter` method\n // https://tc39.es/ecma262/#sec-array.prototype.filter\n filter: createMethod(2),\n // `Array.prototype.some` method\n // https://tc39.es/ecma262/#sec-array.prototype.some\n some: createMethod(3),\n // `Array.prototype.every` method\n // https://tc39.es/ecma262/#sec-array.prototype.every\n every: createMethod(4),\n // `Array.prototype.find` method\n // https://tc39.es/ecma262/#sec-array.prototype.find\n find: createMethod(5),\n // `Array.prototype.findIndex` method\n // https://tc39.es/ecma262/#sec-array.prototype.findIndex\n findIndex: createMethod(6),\n // `Array.prototype.filterReject` method\n // https://github.com/tc39/proposal-array-filtering\n filterReject: createMethod(7)\n};\n","'use strict';\nvar fails = require('../internals/fails');\n\nmodule.exports = function (METHOD_NAME, argument) {\n var method = [][METHOD_NAME];\n return !!method && fails(function () {\n // eslint-disable-next-line no-useless-call -- required for testing\n method.call(null, argument || function () { return 1; }, 1);\n });\n};\n","'use strict';\nvar $forEach = require('../internals/array-iteration').forEach;\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\n\nvar STRICT_METHOD = arrayMethodIsStrict('forEach');\n\n// `Array.prototype.forEach` method implementation\n// https://tc39.es/ecma262/#sec-array.prototype.foreach\nmodule.exports = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {\n return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n// eslint-disable-next-line es/no-array-prototype-foreach -- safe\n} : [].forEach;\n","var fails = require('../internals/fails');\n\n// Detect IE8's incomplete defineProperty implementation\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;\n});\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar createElement = require('../internals/document-create-element');\n\n// Thanks to IE8 for its funny defineProperty\nmodule.exports = !DESCRIPTORS && !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(createElement('div'), 'a', {\n get: function () { return 7; }\n }).a != 7;\n});\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\n\n// V8 ~ Chrome 36-\n// https://bugs.chromium.org/p/v8/issues/detail?id=3334\nmodule.exports = DESCRIPTORS && fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(function () { /* empty */ }, 'prototype', {\n value: 42,\n writable: false\n }).prototype != 42;\n});\n","var isObject = require('../internals/is-object');\n\nvar $String = String;\nvar $TypeError = TypeError;\n\n// `Assert: Type(argument) is Object`\nmodule.exports = function (argument) {\n if (isObject(argument)) return argument;\n throw $TypeError($String(argument) + ' is not an object');\n};\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar call = Function.prototype.call;\n\nmodule.exports = NATIVE_BIND ? call.bind(call) : function () {\n return call.apply(call, arguments);\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = uncurryThis({}.isPrototypeOf);\n","var getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar $Object = Object;\n\nmodule.exports = USE_SYMBOL_AS_UID ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n var $Symbol = getBuiltIn('Symbol');\n return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));\n};\n","var aCallable = require('../internals/a-callable');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\n\n// `GetMethod` abstract operation\n// https://tc39.es/ecma262/#sec-getmethod\nmodule.exports = function (V, P) {\n var func = V[P];\n return isNullOrUndefined(func) ? undefined : aCallable(func);\n};\n","var call = require('../internals/function-call');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\n\nvar $TypeError = TypeError;\n\n// `OrdinaryToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-ordinarytoprimitive\nmodule.exports = function (input, pref) {\n var fn, val;\n if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;\n if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n throw $TypeError(\"Can't convert object to primitive value\");\n};\n","var call = require('../internals/function-call');\nvar isObject = require('../internals/is-object');\nvar isSymbol = require('../internals/is-symbol');\nvar getMethod = require('../internals/get-method');\nvar ordinaryToPrimitive = require('../internals/ordinary-to-primitive');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar $TypeError = TypeError;\nvar TO_PRIMITIVE = wellKnownSymbol('toPrimitive');\n\n// `ToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-toprimitive\nmodule.exports = function (input, pref) {\n if (!isObject(input) || isSymbol(input)) return input;\n var exoticToPrim = getMethod(input, TO_PRIMITIVE);\n var result;\n if (exoticToPrim) {\n if (pref === undefined) pref = 'default';\n result = call(exoticToPrim, input, pref);\n if (!isObject(result) || isSymbol(result)) return result;\n throw $TypeError(\"Can't convert object to primitive value\");\n }\n if (pref === undefined) pref = 'number';\n return ordinaryToPrimitive(input, pref);\n};\n","var toPrimitive = require('../internals/to-primitive');\nvar isSymbol = require('../internals/is-symbol');\n\n// `ToPropertyKey` abstract operation\n// https://tc39.es/ecma262/#sec-topropertykey\nmodule.exports = function (argument) {\n var key = toPrimitive(argument, 'string');\n return isSymbol(key) ? key : key + '';\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar anObject = require('../internals/an-object');\nvar toPropertyKey = require('../internals/to-property-key');\n\nvar $TypeError = TypeError;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar $defineProperty = Object.defineProperty;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar ENUMERABLE = 'enumerable';\nvar CONFIGURABLE = 'configurable';\nvar WRITABLE = 'writable';\n\n// `Object.defineProperty` method\n// https://tc39.es/ecma262/#sec-object.defineproperty\nexports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {\n var current = $getOwnPropertyDescriptor(O, P);\n if (current && current[WRITABLE]) {\n O[P] = Attributes.value;\n Attributes = {\n configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],\n enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],\n writable: false\n };\n }\n } return $defineProperty(O, P, Attributes);\n} : $defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return $defineProperty(O, P, Attributes);\n } catch (error) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw $TypeError('Accessors not supported');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = DESCRIPTORS ? function (object, key, value) {\n return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","var global = require('../internals/global');\nvar DOMIterables = require('../internals/dom-iterables');\nvar DOMTokenListPrototype = require('../internals/dom-token-list-prototype');\nvar forEach = require('../internals/array-for-each');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\n\nvar handlePrototype = function (CollectionPrototype) {\n // some Chrome versions have non-configurable methods on DOMTokenList\n if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {\n createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach);\n } catch (error) {\n CollectionPrototype.forEach = forEach;\n }\n};\n\nfor (var COLLECTION_NAME in DOMIterables) {\n if (DOMIterables[COLLECTION_NAME]) {\n handlePrototype(global[COLLECTION_NAME] && global[COLLECTION_NAME].prototype);\n }\n}\n\nhandlePrototype(DOMTokenListPrototype);\n","// toObject with fallback for non-array-like ES3 strings\nvar IndexedObject = require('../internals/indexed-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nmodule.exports = function (it) {\n return IndexedObject(requireObjectCoercible(it));\n};\n","var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar max = Math.max;\nvar min = Math.min;\n\n// Helper for a popular repeating case of the spec:\n// Let integer be ? ToInteger(index).\n// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\nmodule.exports = function (index, length) {\n var integer = toIntegerOrInfinity(index);\n return integer < 0 ? max(integer + length, 0) : min(integer, length);\n};\n","var toIndexedObject = require('../internals/to-indexed-object');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\n\n// `Array.prototype.{ indexOf, includes }` methods implementation\nvar createMethod = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIndexedObject($this);\n var length = lengthOfArrayLike(O);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare -- NaN check\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare -- NaN check\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) {\n if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.includes` method\n // https://tc39.es/ecma262/#sec-array.prototype.includes\n includes: createMethod(true),\n // `Array.prototype.indexOf` method\n // https://tc39.es/ecma262/#sec-array.prototype.indexof\n indexOf: createMethod(false)\n};\n","module.exports = {};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar hasOwn = require('../internals/has-own-property');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar indexOf = require('../internals/array-includes').indexOf;\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar push = uncurryThis([].push);\n\nmodule.exports = function (object, names) {\n var O = toIndexedObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (hasOwn(O, key = names[i++])) {\n ~indexOf(result, key) || push(result, key);\n }\n return result;\n};\n","// IE8- don't enum bug keys\nmodule.exports = [\n 'constructor',\n 'hasOwnProperty',\n 'isPrototypeOf',\n 'propertyIsEnumerable',\n 'toLocaleString',\n 'toString',\n 'valueOf'\n];\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\n// `Object.keys` method\n// https://tc39.es/ecma262/#sec-object.keys\n// eslint-disable-next-line es/no-object-keys -- safe\nmodule.exports = Object.keys || function keys(O) {\n return internalObjectKeys(O, enumBugKeys);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar definePropertyModule = require('../internals/object-define-property');\nvar anObject = require('../internals/an-object');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar objectKeys = require('../internals/object-keys');\n\n// `Object.defineProperties` method\n// https://tc39.es/ecma262/#sec-object.defineproperties\n// eslint-disable-next-line es/no-object-defineproperties -- safe\nexports.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var props = toIndexedObject(Properties);\n var keys = objectKeys(Properties);\n var length = keys.length;\n var index = 0;\n var key;\n while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);\n return O;\n};\n","var getBuiltIn = require('../internals/get-built-in');\n\nmodule.exports = getBuiltIn('document', 'documentElement');\n","var shared = require('../internals/shared');\nvar uid = require('../internals/uid');\n\nvar keys = shared('keys');\n\nmodule.exports = function (key) {\n return keys[key] || (keys[key] = uid(key));\n};\n","/* global ActiveXObject -- old IE, WSH */\nvar anObject = require('../internals/an-object');\nvar definePropertiesModule = require('../internals/object-define-properties');\nvar enumBugKeys = require('../internals/enum-bug-keys');\nvar hiddenKeys = require('../internals/hidden-keys');\nvar html = require('../internals/html');\nvar documentCreateElement = require('../internals/document-create-element');\nvar sharedKey = require('../internals/shared-key');\n\nvar GT = '>';\nvar LT = '<';\nvar PROTOTYPE = 'prototype';\nvar SCRIPT = 'script';\nvar IE_PROTO = sharedKey('IE_PROTO');\n\nvar EmptyConstructor = function () { /* empty */ };\n\nvar scriptTag = function (content) {\n return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;\n};\n\n// Create object with fake `null` prototype: use ActiveX Object with cleared prototype\nvar NullProtoObjectViaActiveX = function (activeXDocument) {\n activeXDocument.write(scriptTag(''));\n activeXDocument.close();\n var temp = activeXDocument.parentWindow.Object;\n activeXDocument = null; // avoid memory leak\n return temp;\n};\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar NullProtoObjectViaIFrame = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = documentCreateElement('iframe');\n var JS = 'java' + SCRIPT + ':';\n var iframeDocument;\n iframe.style.display = 'none';\n html.appendChild(iframe);\n // https://github.com/zloirock/core-js/issues/475\n iframe.src = String(JS);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(scriptTag('document.F=Object'));\n iframeDocument.close();\n return iframeDocument.F;\n};\n\n// Check for document.domain and active x support\n// No need to use active x approach when document.domain is not set\n// see https://github.com/es-shims/es5-shim/issues/150\n// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346\n// avoid IE GC bug\nvar activeXDocument;\nvar NullProtoObject = function () {\n try {\n activeXDocument = new ActiveXObject('htmlfile');\n } catch (error) { /* ignore */ }\n NullProtoObject = typeof document != 'undefined'\n ? document.domain && activeXDocument\n ? NullProtoObjectViaActiveX(activeXDocument) // old IE\n : NullProtoObjectViaIFrame()\n : NullProtoObjectViaActiveX(activeXDocument); // WSH\n var length = enumBugKeys.length;\n while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];\n return NullProtoObject();\n};\n\nhiddenKeys[IE_PROTO] = true;\n\n// `Object.create` method\n// https://tc39.es/ecma262/#sec-object.create\n// eslint-disable-next-line es/no-object-create -- safe\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n EmptyConstructor[PROTOTYPE] = anObject(O);\n result = new EmptyConstructor();\n EmptyConstructor[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = NullProtoObject();\n return Properties === undefined ? result : definePropertiesModule.f(result, Properties);\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\nvar create = require('../internals/object-create');\nvar defineProperty = require('../internals/object-define-property').f;\n\nvar UNSCOPABLES = wellKnownSymbol('unscopables');\nvar ArrayPrototype = Array.prototype;\n\n// Array.prototype[@@unscopables]\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\nif (ArrayPrototype[UNSCOPABLES] == undefined) {\n defineProperty(ArrayPrototype, UNSCOPABLES, {\n configurable: true,\n value: create(null)\n });\n}\n\n// add a key to Array.prototype[@@unscopables]\nmodule.exports = function (key) {\n ArrayPrototype[UNSCOPABLES][key] = true;\n};\n","module.exports = {};\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar WeakMap = global.WeakMap;\n\nmodule.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));\n","var NATIVE_WEAK_MAP = require('../internals/weak-map-basic-detection');\nvar global = require('../internals/global');\nvar isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar hasOwn = require('../internals/has-own-property');\nvar shared = require('../internals/shared-store');\nvar sharedKey = require('../internals/shared-key');\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar OBJECT_ALREADY_INITIALIZED = 'Object already initialized';\nvar TypeError = global.TypeError;\nvar WeakMap = global.WeakMap;\nvar set, get, has;\n\nvar enforce = function (it) {\n return has(it) ? get(it) : set(it, {});\n};\n\nvar getterFor = function (TYPE) {\n return function (it) {\n var state;\n if (!isObject(it) || (state = get(it)).type !== TYPE) {\n throw TypeError('Incompatible receiver, ' + TYPE + ' required');\n } return state;\n };\n};\n\nif (NATIVE_WEAK_MAP || shared.state) {\n var store = shared.state || (shared.state = new WeakMap());\n /* eslint-disable no-self-assign -- prototype methods protection */\n store.get = store.get;\n store.has = store.has;\n store.set = store.set;\n /* eslint-enable no-self-assign -- prototype methods protection */\n set = function (it, metadata) {\n if (store.has(it)) throw TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n store.set(it, metadata);\n return metadata;\n };\n get = function (it) {\n return store.get(it) || {};\n };\n has = function (it) {\n return store.has(it);\n };\n} else {\n var STATE = sharedKey('state');\n hiddenKeys[STATE] = true;\n set = function (it, metadata) {\n if (hasOwn(it, STATE)) throw TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n createNonEnumerableProperty(it, STATE, metadata);\n return metadata;\n };\n get = function (it) {\n return hasOwn(it, STATE) ? it[STATE] : {};\n };\n has = function (it) {\n return hasOwn(it, STATE);\n };\n}\n\nmodule.exports = {\n set: set,\n get: get,\n has: has,\n enforce: enforce,\n getterFor: getterFor\n};\n","'use strict';\nvar $propertyIsEnumerable = {}.propertyIsEnumerable;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Nashorn ~ JDK8 bug\nvar NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);\n\n// `Object.prototype.propertyIsEnumerable` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable\nexports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {\n var descriptor = getOwnPropertyDescriptor(this, V);\n return !!descriptor && descriptor.enumerable;\n} : $propertyIsEnumerable;\n","var DESCRIPTORS = require('../internals/descriptors');\nvar call = require('../internals/function-call');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPropertyKey = require('../internals/to-property-key');\nvar hasOwn = require('../internals/has-own-property');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\n\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor\nexports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject(O);\n P = toPropertyKey(P);\n if (IE8_DOM_DEFINE) try {\n return $getOwnPropertyDescriptor(O, P);\n } catch (error) { /* empty */ }\n if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar hasOwn = require('../internals/has-own-property');\n\nvar FunctionPrototype = Function.prototype;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;\n\nvar EXISTS = hasOwn(FunctionPrototype, 'name');\n// additional protection from minified / mangled / dropped function names\nvar PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';\nvar CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));\n\nmodule.exports = {\n EXISTS: EXISTS,\n PROPER: PROPER,\n CONFIGURABLE: CONFIGURABLE\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar hasOwn = require('../internals/has-own-property');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar CONFIGURABLE_FUNCTION_NAME = require('../internals/function-name').CONFIGURABLE;\nvar inspectSource = require('../internals/inspect-source');\nvar InternalStateModule = require('../internals/internal-state');\n\nvar enforceInternalState = InternalStateModule.enforce;\nvar getInternalState = InternalStateModule.get;\nvar $String = String;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\nvar stringSlice = uncurryThis(''.slice);\nvar replace = uncurryThis(''.replace);\nvar join = uncurryThis([].join);\n\nvar CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {\n return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;\n});\n\nvar TEMPLATE = String(String).split('String');\n\nvar makeBuiltIn = module.exports = function (value, name, options) {\n if (stringSlice($String(name), 0, 7) === 'Symbol(') {\n name = '[' + replace($String(name), /^Symbol\\(([^)]*)\\)/, '$1') + ']';\n }\n if (options && options.getter) name = 'get ' + name;\n if (options && options.setter) name = 'set ' + name;\n if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {\n if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });\n else value.name = name;\n }\n if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {\n defineProperty(value, 'length', { value: options.arity });\n }\n try {\n if (options && hasOwn(options, 'constructor') && options.constructor) {\n if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });\n // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable\n } else if (value.prototype) value.prototype = undefined;\n } catch (error) { /* empty */ }\n var state = enforceInternalState(value);\n if (!hasOwn(state, 'source')) {\n state.source = join(TEMPLATE, typeof name == 'string' ? name : '');\n } return value;\n};\n\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n// eslint-disable-next-line no-extend-native -- required\nFunction.prototype.toString = makeBuiltIn(function toString() {\n return isCallable(this) && getInternalState(this).source || inspectSource(this);\n}, 'toString');\n","var isCallable = require('../internals/is-callable');\nvar definePropertyModule = require('../internals/object-define-property');\nvar makeBuiltIn = require('../internals/make-built-in');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nmodule.exports = function (O, key, value, options) {\n if (!options) options = {};\n var simple = options.enumerable;\n var name = options.name !== undefined ? options.name : key;\n if (isCallable(value)) makeBuiltIn(value, name, options);\n if (options.global) {\n if (simple) O[key] = value;\n else defineGlobalProperty(key, value);\n } else {\n try {\n if (!options.unsafe) delete O[key];\n else if (O[key]) simple = true;\n } catch (error) { /* empty */ }\n if (simple) O[key] = value;\n else definePropertyModule.f(O, key, {\n value: value,\n enumerable: false,\n configurable: !options.nonConfigurable,\n writable: !options.nonWritable\n });\n } return O;\n};\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\nvar hiddenKeys = enumBugKeys.concat('length', 'prototype');\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.es/ecma262/#sec-object.getownpropertynames\n// eslint-disable-next-line es/no-object-getownpropertynames -- safe\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return internalObjectKeys(O, hiddenKeys);\n};\n","// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe\nexports.f = Object.getOwnPropertySymbols;\n","var getBuiltIn = require('../internals/get-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar anObject = require('../internals/an-object');\n\nvar concat = uncurryThis([].concat);\n\n// all object keys, includes non-enumerable and symbols\nmodule.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {\n var keys = getOwnPropertyNamesModule.f(anObject(it));\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;\n};\n","var hasOwn = require('../internals/has-own-property');\nvar ownKeys = require('../internals/own-keys');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar definePropertyModule = require('../internals/object-define-property');\n\nmodule.exports = function (target, source, exceptions) {\n var keys = ownKeys(source);\n var defineProperty = definePropertyModule.f;\n var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {\n defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n }\n};\n","var fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\n\nvar replacement = /#|\\.prototype\\./;\n\nvar isForced = function (feature, detection) {\n var value = data[normalize(feature)];\n return value == POLYFILL ? true\n : value == NATIVE ? false\n : isCallable(detection) ? fails(detection)\n : !!detection;\n};\n\nvar normalize = isForced.normalize = function (string) {\n return String(string).replace(replacement, '.').toLowerCase();\n};\n\nvar data = isForced.data = {};\nvar NATIVE = isForced.NATIVE = 'N';\nvar POLYFILL = isForced.POLYFILL = 'P';\n\nmodule.exports = isForced;\n","var global = require('../internals/global');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar defineGlobalProperty = require('../internals/define-global-property');\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar isForced = require('../internals/is-forced');\n\n/*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.dontCallGetSet - prevent calling a getter on target\n options.name - the .name of the function if it does not match the key\n*/\nmodule.exports = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var FORCED, target, key, targetProperty, sourceProperty, descriptor;\n if (GLOBAL) {\n target = global;\n } else if (STATIC) {\n target = global[TARGET] || defineGlobalProperty(TARGET, {});\n } else {\n target = (global[TARGET] || {}).prototype;\n }\n if (target) for (key in source) {\n sourceProperty = source[key];\n if (options.dontCallGetSet) {\n descriptor = getOwnPropertyDescriptor(target, key);\n targetProperty = descriptor && descriptor.value;\n } else targetProperty = target[key];\n FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n // contained in target\n if (!FORCED && targetProperty !== undefined) {\n if (typeof sourceProperty == typeof targetProperty) continue;\n copyConstructorProperties(sourceProperty, targetProperty);\n }\n // add a flag to not completely full polyfills\n if (options.sham || (targetProperty && targetProperty.sham)) {\n createNonEnumerableProperty(sourceProperty, 'sham', true);\n }\n defineBuiltIn(target, key, sourceProperty, options);\n }\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n function F() { /* empty */ }\n F.prototype.constructor = null;\n // eslint-disable-next-line es/no-object-getprototypeof -- required for testing\n return Object.getPrototypeOf(new F()) !== F.prototype;\n});\n","var hasOwn = require('../internals/has-own-property');\nvar isCallable = require('../internals/is-callable');\nvar toObject = require('../internals/to-object');\nvar sharedKey = require('../internals/shared-key');\nvar CORRECT_PROTOTYPE_GETTER = require('../internals/correct-prototype-getter');\n\nvar IE_PROTO = sharedKey('IE_PROTO');\nvar $Object = Object;\nvar ObjectPrototype = $Object.prototype;\n\n// `Object.getPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.getprototypeof\n// eslint-disable-next-line es/no-object-getprototypeof -- safe\nmodule.exports = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {\n var object = toObject(O);\n if (hasOwn(object, IE_PROTO)) return object[IE_PROTO];\n var constructor = object.constructor;\n if (isCallable(constructor) && object instanceof constructor) {\n return constructor.prototype;\n } return object instanceof $Object ? ObjectPrototype : null;\n};\n","'use strict';\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar create = require('../internals/object-create');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_PURE = require('../internals/is-pure');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar BUGGY_SAFARI_ITERATORS = false;\n\n// `%IteratorPrototype%` object\n// https://tc39.es/ecma262/#sec-%iteratorprototype%-object\nvar IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;\n\n/* eslint-disable es/no-array-prototype-keys -- safe */\nif ([].keys) {\n arrayIterator = [].keys();\n // Safari 8 has buggy iterators w/o `next`\n if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;\n else {\n PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator));\n if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;\n }\n}\n\nvar NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype) || fails(function () {\n var test = {};\n // FF44- legacy iterators case\n return IteratorPrototype[ITERATOR].call(test) !== test;\n});\n\nif (NEW_ITERATOR_PROTOTYPE) IteratorPrototype = {};\nelse if (IS_PURE) IteratorPrototype = create(IteratorPrototype);\n\n// `%IteratorPrototype%[@@iterator]()` method\n// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator\nif (!isCallable(IteratorPrototype[ITERATOR])) {\n defineBuiltIn(IteratorPrototype, ITERATOR, function () {\n return this;\n });\n}\n\nmodule.exports = {\n IteratorPrototype: IteratorPrototype,\n BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS\n};\n","var defineProperty = require('../internals/object-define-property').f;\nvar hasOwn = require('../internals/has-own-property');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\n\nmodule.exports = function (target, TAG, STATIC) {\n if (target && !STATIC) target = target.prototype;\n if (target && !hasOwn(target, TO_STRING_TAG)) {\n defineProperty(target, TO_STRING_TAG, { configurable: true, value: TAG });\n }\n};\n","'use strict';\nvar IteratorPrototype = require('../internals/iterators-core').IteratorPrototype;\nvar create = require('../internals/object-create');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar Iterators = require('../internals/iterators');\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {\n var TO_STRING_TAG = NAME + ' Iterator';\n IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });\n setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);\n Iterators[TO_STRING_TAG] = returnThis;\n return IteratorConstructor;\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar aCallable = require('../internals/a-callable');\n\nmodule.exports = function (object, key, method) {\n try {\n // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\n return uncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));\n } catch (error) { /* empty */ }\n};\n","var isCallable = require('../internals/is-callable');\n\nvar $String = String;\nvar $TypeError = TypeError;\n\nmodule.exports = function (argument) {\n if (typeof argument == 'object' || isCallable(argument)) return argument;\n throw $TypeError(\"Can't set \" + $String(argument) + ' as a prototype');\n};\n","/* eslint-disable no-proto -- safe */\nvar uncurryThisAccessor = require('../internals/function-uncurry-this-accessor');\nvar anObject = require('../internals/an-object');\nvar aPossiblePrototype = require('../internals/a-possible-prototype');\n\n// `Object.setPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.setprototypeof\n// Works with __proto__ only. Old v8 can't work with null proto objects.\n// eslint-disable-next-line es/no-object-setprototypeof -- safe\nmodule.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {\n var CORRECT_SETTER = false;\n var test = {};\n var setter;\n try {\n setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');\n setter(test, []);\n CORRECT_SETTER = test instanceof Array;\n } catch (error) { /* empty */ }\n return function setPrototypeOf(O, proto) {\n anObject(O);\n aPossiblePrototype(proto);\n if (CORRECT_SETTER) setter(O, proto);\n else O.__proto__ = proto;\n return O;\n };\n}() : undefined);\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar IS_PURE = require('../internals/is-pure');\nvar FunctionName = require('../internals/function-name');\nvar isCallable = require('../internals/is-callable');\nvar createIteratorConstructor = require('../internals/iterator-create-constructor');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar Iterators = require('../internals/iterators');\nvar IteratorsCore = require('../internals/iterators-core');\n\nvar PROPER_FUNCTION_NAME = FunctionName.PROPER;\nvar CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;\nvar IteratorPrototype = IteratorsCore.IteratorPrototype;\nvar BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;\nvar ITERATOR = wellKnownSymbol('iterator');\nvar KEYS = 'keys';\nvar VALUES = 'values';\nvar ENTRIES = 'entries';\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {\n createIteratorConstructor(IteratorConstructor, NAME, next);\n\n var getIterationMethod = function (KIND) {\n if (KIND === DEFAULT && defaultIterator) return defaultIterator;\n if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];\n switch (KIND) {\n case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };\n case VALUES: return function values() { return new IteratorConstructor(this, KIND); };\n case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };\n } return function () { return new IteratorConstructor(this); };\n };\n\n var TO_STRING_TAG = NAME + ' Iterator';\n var INCORRECT_VALUES_NAME = false;\n var IterablePrototype = Iterable.prototype;\n var nativeIterator = IterablePrototype[ITERATOR]\n || IterablePrototype['@@iterator']\n || DEFAULT && IterablePrototype[DEFAULT];\n var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);\n var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;\n var CurrentIteratorPrototype, methods, KEY;\n\n // fix native\n if (anyNativeIterator) {\n CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));\n if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {\n if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {\n if (setPrototypeOf) {\n setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);\n } else if (!isCallable(CurrentIteratorPrototype[ITERATOR])) {\n defineBuiltIn(CurrentIteratorPrototype, ITERATOR, returnThis);\n }\n }\n // Set @@toStringTag to native iterators\n setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true);\n if (IS_PURE) Iterators[TO_STRING_TAG] = returnThis;\n }\n }\n\n // fix Array.prototype.{ values, @@iterator }.name in V8 / FF\n if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {\n if (!IS_PURE && CONFIGURABLE_FUNCTION_NAME) {\n createNonEnumerableProperty(IterablePrototype, 'name', VALUES);\n } else {\n INCORRECT_VALUES_NAME = true;\n defaultIterator = function values() { return call(nativeIterator, this); };\n }\n }\n\n // export additional methods\n if (DEFAULT) {\n methods = {\n values: getIterationMethod(VALUES),\n keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),\n entries: getIterationMethod(ENTRIES)\n };\n if (FORCED) for (KEY in methods) {\n if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {\n defineBuiltIn(IterablePrototype, KEY, methods[KEY]);\n }\n } else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);\n }\n\n // define iterator\n if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) {\n defineBuiltIn(IterablePrototype, ITERATOR, defaultIterator, { name: DEFAULT });\n }\n Iterators[NAME] = defaultIterator;\n\n return methods;\n};\n","// `CreateIterResultObject` abstract operation\n// https://tc39.es/ecma262/#sec-createiterresultobject\nmodule.exports = function (value, done) {\n return { value: value, done: done };\n};\n","'use strict';\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar addToUnscopables = require('../internals/add-to-unscopables');\nvar Iterators = require('../internals/iterators');\nvar InternalStateModule = require('../internals/internal-state');\nvar defineProperty = require('../internals/object-define-property').f;\nvar defineIterator = require('../internals/iterator-define');\nvar createIterResultObject = require('../internals/create-iter-result-object');\nvar IS_PURE = require('../internals/is-pure');\nvar DESCRIPTORS = require('../internals/descriptors');\n\nvar ARRAY_ITERATOR = 'Array Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);\n\n// `Array.prototype.entries` method\n// https://tc39.es/ecma262/#sec-array.prototype.entries\n// `Array.prototype.keys` method\n// https://tc39.es/ecma262/#sec-array.prototype.keys\n// `Array.prototype.values` method\n// https://tc39.es/ecma262/#sec-array.prototype.values\n// `Array.prototype[@@iterator]` method\n// https://tc39.es/ecma262/#sec-array.prototype-@@iterator\n// `CreateArrayIterator` internal method\n// https://tc39.es/ecma262/#sec-createarrayiterator\nmodule.exports = defineIterator(Array, 'Array', function (iterated, kind) {\n setInternalState(this, {\n type: ARRAY_ITERATOR,\n target: toIndexedObject(iterated), // target\n index: 0, // next index\n kind: kind // kind\n });\n// `%ArrayIteratorPrototype%.next` method\n// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next\n}, function () {\n var state = getInternalState(this);\n var target = state.target;\n var kind = state.kind;\n var index = state.index++;\n if (!target || index >= target.length) {\n state.target = undefined;\n return createIterResultObject(undefined, true);\n }\n if (kind == 'keys') return createIterResultObject(index, false);\n if (kind == 'values') return createIterResultObject(target[index], false);\n return createIterResultObject([index, target[index]], false);\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values%\n// https://tc39.es/ecma262/#sec-createunmappedargumentsobject\n// https://tc39.es/ecma262/#sec-createmappedargumentsobject\nvar values = Iterators.Arguments = Iterators.Array;\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n\n// V8 ~ Chrome 45- bug\nif (!IS_PURE && DESCRIPTORS && values.name !== 'values') try {\n defineProperty(values, 'name', { value: 'values' });\n} catch (error) { /* empty */ }\n","var global = require('../internals/global');\nvar DOMIterables = require('../internals/dom-iterables');\nvar DOMTokenListPrototype = require('../internals/dom-token-list-prototype');\nvar ArrayIteratorMethods = require('../modules/es.array.iterator');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar ArrayValues = ArrayIteratorMethods.values;\n\nvar handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {\n if (CollectionPrototype) {\n // some Chrome versions have non-configurable methods on DOMTokenList\n if (CollectionPrototype[ITERATOR] !== ArrayValues) try {\n createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);\n } catch (error) {\n CollectionPrototype[ITERATOR] = ArrayValues;\n }\n if (!CollectionPrototype[TO_STRING_TAG]) {\n createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);\n }\n if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {\n // some Chrome versions have non-configurable methods on DOMTokenList\n if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {\n createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);\n } catch (error) {\n CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];\n }\n }\n }\n};\n\nfor (var COLLECTION_NAME in DOMIterables) {\n handlePrototype(global[COLLECTION_NAME] && global[COLLECTION_NAME].prototype, COLLECTION_NAME);\n}\n\nhandlePrototype(DOMTokenListPrototype, 'DOMTokenList');\n","var global = require('../internals/global');\n\nmodule.exports = global;\n","'use strict';\n/* eslint-disable es/no-array-prototype-indexof -- required for testing */\nvar $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this-clause');\nvar $indexOf = require('../internals/array-includes').indexOf;\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\n\nvar nativeIndexOf = uncurryThis([].indexOf);\n\nvar NEGATIVE_ZERO = !!nativeIndexOf && 1 / nativeIndexOf([1], 1, -0) < 0;\nvar FORCED = NEGATIVE_ZERO || !arrayMethodIsStrict('indexOf');\n\n// `Array.prototype.indexOf` method\n// https://tc39.es/ecma262/#sec-array.prototype.indexof\n$({ target: 'Array', proto: true, forced: FORCED }, {\n indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {\n var fromIndex = arguments.length > 1 ? arguments[1] : undefined;\n return NEGATIVE_ZERO\n // convert -0 to +0\n ? nativeIndexOf(this, searchElement, fromIndex) || 0\n : $indexOf(this, searchElement, fromIndex);\n }\n});\n","var $TypeError = TypeError;\nvar MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991\n\nmodule.exports = function (it) {\n if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');\n return it;\n};\n","'use strict';\nvar toPropertyKey = require('../internals/to-property-key');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = function (object, key, value) {\n var propertyKey = toPropertyKey(key);\n if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));\n else object[propertyKey] = value;\n};\n","var fails = require('../internals/fails');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar V8_VERSION = require('../internals/engine-v8-version');\n\nvar SPECIES = wellKnownSymbol('species');\n\nmodule.exports = function (METHOD_NAME) {\n // We can't use this feature detection in V8 since it causes\n // deoptimization and serious performance degradation\n // https://github.com/zloirock/core-js/issues/677\n return V8_VERSION >= 51 || !fails(function () {\n var array = [];\n var constructor = array.constructor = {};\n constructor[SPECIES] = function () {\n return { foo: 1 };\n };\n return array[METHOD_NAME](Boolean).foo !== 1;\n });\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar fails = require('../internals/fails');\nvar isArray = require('../internals/is-array');\nvar isObject = require('../internals/is-object');\nvar toObject = require('../internals/to-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar doesNotExceedSafeInteger = require('../internals/does-not-exceed-safe-integer');\nvar createProperty = require('../internals/create-property');\nvar arraySpeciesCreate = require('../internals/array-species-create');\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar V8_VERSION = require('../internals/engine-v8-version');\n\nvar IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');\n\n// We can't use this feature detection in V8 since it causes\n// deoptimization and serious performance degradation\n// https://github.com/zloirock/core-js/issues/679\nvar IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () {\n var array = [];\n array[IS_CONCAT_SPREADABLE] = false;\n return array.concat()[0] !== array;\n});\n\nvar isConcatSpreadable = function (O) {\n if (!isObject(O)) return false;\n var spreadable = O[IS_CONCAT_SPREADABLE];\n return spreadable !== undefined ? !!spreadable : isArray(O);\n};\n\nvar FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport('concat');\n\n// `Array.prototype.concat` method\n// https://tc39.es/ecma262/#sec-array.prototype.concat\n// with adding support of @@isConcatSpreadable and @@species\n$({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n concat: function concat(arg) {\n var O = toObject(this);\n var A = arraySpeciesCreate(O, 0);\n var n = 0;\n var i, k, length, len, E;\n for (i = -1, length = arguments.length; i < length; i++) {\n E = i === -1 ? O : arguments[i];\n if (isConcatSpreadable(E)) {\n len = lengthOfArrayLike(E);\n doesNotExceedSafeInteger(n + len);\n for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);\n } else {\n doesNotExceedSafeInteger(n + 1);\n createProperty(A, n++, E);\n }\n }\n A.length = n;\n return A;\n }\n});\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar call = require('../internals/function-call');\nvar fails = require('../internals/fails');\nvar objectKeys = require('../internals/object-keys');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar toObject = require('../internals/to-object');\nvar IndexedObject = require('../internals/indexed-object');\n\n// eslint-disable-next-line es/no-object-assign -- safe\nvar $assign = Object.assign;\n// eslint-disable-next-line es/no-object-defineproperty -- required for testing\nvar defineProperty = Object.defineProperty;\nvar concat = uncurryThis([].concat);\n\n// `Object.assign` method\n// https://tc39.es/ecma262/#sec-object.assign\nmodule.exports = !$assign || fails(function () {\n // should have correct order of operations (Edge bug)\n if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {\n enumerable: true,\n get: function () {\n defineProperty(this, 'b', {\n value: 3,\n enumerable: false\n });\n }\n }), { b: 2 })).b !== 1) return true;\n // should work with symbols and should have deterministic property order (V8 bug)\n var A = {};\n var B = {};\n // eslint-disable-next-line es/no-symbol -- safe\n var symbol = Symbol();\n var alphabet = 'abcdefghijklmnopqrst';\n A[symbol] = 7;\n alphabet.split('').forEach(function (chr) { B[chr] = chr; });\n return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;\n}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`\n var T = toObject(target);\n var argumentsLength = arguments.length;\n var index = 1;\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n var propertyIsEnumerable = propertyIsEnumerableModule.f;\n while (argumentsLength > index) {\n var S = IndexedObject(arguments[index++]);\n var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) {\n key = keys[j++];\n if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key];\n }\n } return T;\n} : $assign;\n","var $ = require('../internals/export');\nvar assign = require('../internals/object-assign');\n\n// `Object.assign` method\n// https://tc39.es/ecma262/#sec-object.assign\n// eslint-disable-next-line es/no-object-assign -- required for testing\n$({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {\n assign: assign\n});\n","'use strict';\nvar TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar classof = require('../internals/classof');\n\n// `Object.prototype.toString` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.tostring\nmodule.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {\n return '[object ' + classof(this) + ']';\n};\n","var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar toString = require('../internals/object-to-string');\n\n// `Object.prototype.toString` method\n// https://tc39.es/ecma262/#sec-object.prototype.tostring\nif (!TO_STRING_TAG_SUPPORT) {\n defineBuiltIn(Object.prototype, 'toString', toString, { unsafe: true });\n}\n","var classof = require('../internals/classof-raw');\n\nmodule.exports = typeof process != 'undefined' && classof(process) == 'process';\n","var makeBuiltIn = require('../internals/make-built-in');\nvar defineProperty = require('../internals/object-define-property');\n\nmodule.exports = function (target, name, descriptor) {\n if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });\n if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });\n return defineProperty.f(target, name, descriptor);\n};\n","'use strict';\nvar getBuiltIn = require('../internals/get-built-in');\nvar defineBuiltInAccessor = require('../internals/define-built-in-accessor');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar DESCRIPTORS = require('../internals/descriptors');\n\nvar SPECIES = wellKnownSymbol('species');\n\nmodule.exports = function (CONSTRUCTOR_NAME) {\n var Constructor = getBuiltIn(CONSTRUCTOR_NAME);\n\n if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) {\n defineBuiltInAccessor(Constructor, SPECIES, {\n configurable: true,\n get: function () { return this; }\n });\n }\n};\n","var isPrototypeOf = require('../internals/object-is-prototype-of');\n\nvar $TypeError = TypeError;\n\nmodule.exports = function (it, Prototype) {\n if (isPrototypeOf(Prototype, it)) return it;\n throw $TypeError('Incorrect invocation');\n};\n","var isConstructor = require('../internals/is-constructor');\nvar tryToString = require('../internals/try-to-string');\n\nvar $TypeError = TypeError;\n\n// `Assert: IsConstructor(argument) is true`\nmodule.exports = function (argument) {\n if (isConstructor(argument)) return argument;\n throw $TypeError(tryToString(argument) + ' is not a constructor');\n};\n","var anObject = require('../internals/an-object');\nvar aConstructor = require('../internals/a-constructor');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar SPECIES = wellKnownSymbol('species');\n\n// `SpeciesConstructor` abstract operation\n// https://tc39.es/ecma262/#sec-speciesconstructor\nmodule.exports = function (O, defaultConstructor) {\n var C = anObject(O).constructor;\n var S;\n return C === undefined || isNullOrUndefined(S = anObject(C)[SPECIES]) ? defaultConstructor : aConstructor(S);\n};\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar apply = FunctionPrototype.apply;\nvar call = FunctionPrototype.call;\n\n// eslint-disable-next-line es/no-reflect -- safe\nmodule.exports = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function () {\n return call.apply(apply, arguments);\n});\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = uncurryThis([].slice);\n","var $TypeError = TypeError;\n\nmodule.exports = function (passed, required) {\n if (passed < required) throw $TypeError('Not enough arguments');\n return passed;\n};\n","var userAgent = require('../internals/engine-user-agent');\n\n// eslint-disable-next-line redos/no-vulnerable -- safe\nmodule.exports = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent);\n","var global = require('../internals/global');\nvar apply = require('../internals/function-apply');\nvar bind = require('../internals/function-bind-context');\nvar isCallable = require('../internals/is-callable');\nvar hasOwn = require('../internals/has-own-property');\nvar fails = require('../internals/fails');\nvar html = require('../internals/html');\nvar arraySlice = require('../internals/array-slice');\nvar createElement = require('../internals/document-create-element');\nvar validateArgumentsLength = require('../internals/validate-arguments-length');\nvar IS_IOS = require('../internals/engine-is-ios');\nvar IS_NODE = require('../internals/engine-is-node');\n\nvar set = global.setImmediate;\nvar clear = global.clearImmediate;\nvar process = global.process;\nvar Dispatch = global.Dispatch;\nvar Function = global.Function;\nvar MessageChannel = global.MessageChannel;\nvar String = global.String;\nvar counter = 0;\nvar queue = {};\nvar ONREADYSTATECHANGE = 'onreadystatechange';\nvar $location, defer, channel, port;\n\nfails(function () {\n // Deno throws a ReferenceError on `location` access without `--location` flag\n $location = global.location;\n});\n\nvar run = function (id) {\n if (hasOwn(queue, id)) {\n var fn = queue[id];\n delete queue[id];\n fn();\n }\n};\n\nvar runner = function (id) {\n return function () {\n run(id);\n };\n};\n\nvar eventListener = function (event) {\n run(event.data);\n};\n\nvar globalPostMessageDefer = function (id) {\n // old engines have not location.origin\n global.postMessage(String(id), $location.protocol + '//' + $location.host);\n};\n\n// Node.js 0.9+ & IE10+ has setImmediate, otherwise:\nif (!set || !clear) {\n set = function setImmediate(handler) {\n validateArgumentsLength(arguments.length, 1);\n var fn = isCallable(handler) ? handler : Function(handler);\n var args = arraySlice(arguments, 1);\n queue[++counter] = function () {\n apply(fn, undefined, args);\n };\n defer(counter);\n return counter;\n };\n clear = function clearImmediate(id) {\n delete queue[id];\n };\n // Node.js 0.8-\n if (IS_NODE) {\n defer = function (id) {\n process.nextTick(runner(id));\n };\n // Sphere (JS game engine) Dispatch API\n } else if (Dispatch && Dispatch.now) {\n defer = function (id) {\n Dispatch.now(runner(id));\n };\n // Browsers with MessageChannel, includes WebWorkers\n // except iOS - https://github.com/zloirock/core-js/issues/624\n } else if (MessageChannel && !IS_IOS) {\n channel = new MessageChannel();\n port = channel.port2;\n channel.port1.onmessage = eventListener;\n defer = bind(port.postMessage, port);\n // Browsers with postMessage, skip WebWorkers\n // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'\n } else if (\n global.addEventListener &&\n isCallable(global.postMessage) &&\n !global.importScripts &&\n $location && $location.protocol !== 'file:' &&\n !fails(globalPostMessageDefer)\n ) {\n defer = globalPostMessageDefer;\n global.addEventListener('message', eventListener, false);\n // IE8-\n } else if (ONREADYSTATECHANGE in createElement('script')) {\n defer = function (id) {\n html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {\n html.removeChild(this);\n run(id);\n };\n };\n // Rest old browsers\n } else {\n defer = function (id) {\n setTimeout(runner(id), 0);\n };\n }\n}\n\nmodule.exports = {\n set: set,\n clear: clear\n};\n","var Queue = function () {\n this.head = null;\n this.tail = null;\n};\n\nQueue.prototype = {\n add: function (item) {\n var entry = { item: item, next: null };\n var tail = this.tail;\n if (tail) tail.next = entry;\n else this.head = entry;\n this.tail = entry;\n },\n get: function () {\n var entry = this.head;\n if (entry) {\n var next = this.head = entry.next;\n if (next === null) this.tail = null;\n return entry.item;\n }\n }\n};\n\nmodule.exports = Queue;\n","var userAgent = require('../internals/engine-user-agent');\n\nmodule.exports = /ipad|iphone|ipod/i.test(userAgent) && typeof Pebble != 'undefined';\n","var userAgent = require('../internals/engine-user-agent');\n\nmodule.exports = /web0s(?!.*chrome)/i.test(userAgent);\n","var global = require('../internals/global');\nvar bind = require('../internals/function-bind-context');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar macrotask = require('../internals/task').set;\nvar Queue = require('../internals/queue');\nvar IS_IOS = require('../internals/engine-is-ios');\nvar IS_IOS_PEBBLE = require('../internals/engine-is-ios-pebble');\nvar IS_WEBOS_WEBKIT = require('../internals/engine-is-webos-webkit');\nvar IS_NODE = require('../internals/engine-is-node');\n\nvar MutationObserver = global.MutationObserver || global.WebKitMutationObserver;\nvar document = global.document;\nvar process = global.process;\nvar Promise = global.Promise;\n// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`\nvar queueMicrotaskDescriptor = getOwnPropertyDescriptor(global, 'queueMicrotask');\nvar microtask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;\nvar notify, toggle, node, promise, then;\n\n// modern engines have queueMicrotask method\nif (!microtask) {\n var queue = new Queue();\n\n var flush = function () {\n var parent, fn;\n if (IS_NODE && (parent = process.domain)) parent.exit();\n while (fn = queue.get()) try {\n fn();\n } catch (error) {\n if (queue.head) notify();\n throw error;\n }\n if (parent) parent.enter();\n };\n\n // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339\n // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898\n if (!IS_IOS && !IS_NODE && !IS_WEBOS_WEBKIT && MutationObserver && document) {\n toggle = true;\n node = document.createTextNode('');\n new MutationObserver(flush).observe(node, { characterData: true });\n notify = function () {\n node.data = toggle = !toggle;\n };\n // environments with maybe non-completely correct, but existent Promise\n } else if (!IS_IOS_PEBBLE && Promise && Promise.resolve) {\n // Promise.resolve without an argument throws an error in LG WebOS 2\n promise = Promise.resolve(undefined);\n // workaround of WebKit ~ iOS Safari 10.1 bug\n promise.constructor = Promise;\n then = bind(promise.then, promise);\n notify = function () {\n then(flush);\n };\n // Node.js without promises\n } else if (IS_NODE) {\n notify = function () {\n process.nextTick(flush);\n };\n // for other environments - macrotask based on:\n // - setImmediate\n // - MessageChannel\n // - window.postMessage\n // - onreadystatechange\n // - setTimeout\n } else {\n // `webpack` dev server bug on IE global methods - use bind(fn, global)\n macrotask = bind(macrotask, global);\n notify = function () {\n macrotask(flush);\n };\n }\n\n microtask = function (fn) {\n if (!queue.head) notify();\n queue.add(fn);\n };\n}\n\nmodule.exports = microtask;\n","module.exports = function (a, b) {\n try {\n // eslint-disable-next-line no-console -- safe\n arguments.length == 1 ? console.error(a) : console.error(a, b);\n } catch (error) { /* empty */ }\n};\n","module.exports = function (exec) {\n try {\n return { error: false, value: exec() };\n } catch (error) {\n return { error: true, value: error };\n }\n};\n","var global = require('../internals/global');\n\nmodule.exports = global.Promise;\n","/* global Deno -- Deno case */\nmodule.exports = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';\n","var IS_DENO = require('../internals/engine-is-deno');\nvar IS_NODE = require('../internals/engine-is-node');\n\nmodule.exports = !IS_DENO && !IS_NODE\n && typeof window == 'object'\n && typeof document == 'object';\n","var global = require('../internals/global');\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar isCallable = require('../internals/is-callable');\nvar isForced = require('../internals/is-forced');\nvar inspectSource = require('../internals/inspect-source');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_BROWSER = require('../internals/engine-is-browser');\nvar IS_DENO = require('../internals/engine-is-deno');\nvar IS_PURE = require('../internals/is-pure');\nvar V8_VERSION = require('../internals/engine-v8-version');\n\nvar NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;\nvar SPECIES = wellKnownSymbol('species');\nvar SUBCLASSING = false;\nvar NATIVE_PROMISE_REJECTION_EVENT = isCallable(global.PromiseRejectionEvent);\n\nvar FORCED_PROMISE_CONSTRUCTOR = isForced('Promise', function () {\n var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor);\n var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor);\n // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables\n // https://bugs.chromium.org/p/chromium/issues/detail?id=830565\n // We can't detect it synchronously, so just check versions\n if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;\n // We need Promise#{ catch, finally } in the pure version for preventing prototype pollution\n if (IS_PURE && !(NativePromisePrototype['catch'] && NativePromisePrototype['finally'])) return true;\n // We can't use @@species feature detection in V8 since it causes\n // deoptimization and performance degradation\n // https://github.com/zloirock/core-js/issues/679\n if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {\n // Detect correctness of subclassing with @@species support\n var promise = new NativePromiseConstructor(function (resolve) { resolve(1); });\n var FakePromise = function (exec) {\n exec(function () { /* empty */ }, function () { /* empty */ });\n };\n var constructor = promise.constructor = {};\n constructor[SPECIES] = FakePromise;\n SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;\n if (!SUBCLASSING) return true;\n // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test\n } return !GLOBAL_CORE_JS_PROMISE && (IS_BROWSER || IS_DENO) && !NATIVE_PROMISE_REJECTION_EVENT;\n});\n\nmodule.exports = {\n CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR,\n REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT,\n SUBCLASSING: SUBCLASSING\n};\n","'use strict';\nvar aCallable = require('../internals/a-callable');\n\nvar $TypeError = TypeError;\n\nvar PromiseCapability = function (C) {\n var resolve, reject;\n this.promise = new C(function ($$resolve, $$reject) {\n if (resolve !== undefined || reject !== undefined) throw $TypeError('Bad Promise constructor');\n resolve = $$resolve;\n reject = $$reject;\n });\n this.resolve = aCallable(resolve);\n this.reject = aCallable(reject);\n};\n\n// `NewPromiseCapability` abstract operation\n// https://tc39.es/ecma262/#sec-newpromisecapability\nmodule.exports.f = function (C) {\n return new PromiseCapability(C);\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar IS_NODE = require('../internals/engine-is-node');\nvar global = require('../internals/global');\nvar call = require('../internals/function-call');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar setSpecies = require('../internals/set-species');\nvar aCallable = require('../internals/a-callable');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar anInstance = require('../internals/an-instance');\nvar speciesConstructor = require('../internals/species-constructor');\nvar task = require('../internals/task').set;\nvar microtask = require('../internals/microtask');\nvar hostReportErrors = require('../internals/host-report-errors');\nvar perform = require('../internals/perform');\nvar Queue = require('../internals/queue');\nvar InternalStateModule = require('../internals/internal-state');\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar PromiseConstructorDetection = require('../internals/promise-constructor-detection');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\n\nvar PROMISE = 'Promise';\nvar FORCED_PROMISE_CONSTRUCTOR = PromiseConstructorDetection.CONSTRUCTOR;\nvar NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT;\nvar NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING;\nvar getInternalPromiseState = InternalStateModule.getterFor(PROMISE);\nvar setInternalState = InternalStateModule.set;\nvar NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;\nvar PromiseConstructor = NativePromiseConstructor;\nvar PromisePrototype = NativePromisePrototype;\nvar TypeError = global.TypeError;\nvar document = global.document;\nvar process = global.process;\nvar newPromiseCapability = newPromiseCapabilityModule.f;\nvar newGenericPromiseCapability = newPromiseCapability;\n\nvar DISPATCH_EVENT = !!(document && document.createEvent && global.dispatchEvent);\nvar UNHANDLED_REJECTION = 'unhandledrejection';\nvar REJECTION_HANDLED = 'rejectionhandled';\nvar PENDING = 0;\nvar FULFILLED = 1;\nvar REJECTED = 2;\nvar HANDLED = 1;\nvar UNHANDLED = 2;\n\nvar Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;\n\n// helpers\nvar isThenable = function (it) {\n var then;\n return isObject(it) && isCallable(then = it.then) ? then : false;\n};\n\nvar callReaction = function (reaction, state) {\n var value = state.value;\n var ok = state.state == FULFILLED;\n var handler = ok ? reaction.ok : reaction.fail;\n var resolve = reaction.resolve;\n var reject = reaction.reject;\n var domain = reaction.domain;\n var result, then, exited;\n try {\n if (handler) {\n if (!ok) {\n if (state.rejection === UNHANDLED) onHandleUnhandled(state);\n state.rejection = HANDLED;\n }\n if (handler === true) result = value;\n else {\n if (domain) domain.enter();\n result = handler(value); // can throw\n if (domain) {\n domain.exit();\n exited = true;\n }\n }\n if (result === reaction.promise) {\n reject(TypeError('Promise-chain cycle'));\n } else if (then = isThenable(result)) {\n call(then, result, resolve, reject);\n } else resolve(result);\n } else reject(value);\n } catch (error) {\n if (domain && !exited) domain.exit();\n reject(error);\n }\n};\n\nvar notify = function (state, isReject) {\n if (state.notified) return;\n state.notified = true;\n microtask(function () {\n var reactions = state.reactions;\n var reaction;\n while (reaction = reactions.get()) {\n callReaction(reaction, state);\n }\n state.notified = false;\n if (isReject && !state.rejection) onUnhandled(state);\n });\n};\n\nvar dispatchEvent = function (name, promise, reason) {\n var event, handler;\n if (DISPATCH_EVENT) {\n event = document.createEvent('Event');\n event.promise = promise;\n event.reason = reason;\n event.initEvent(name, false, true);\n global.dispatchEvent(event);\n } else event = { promise: promise, reason: reason };\n if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global['on' + name])) handler(event);\n else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);\n};\n\nvar onUnhandled = function (state) {\n call(task, global, function () {\n var promise = state.facade;\n var value = state.value;\n var IS_UNHANDLED = isUnhandled(state);\n var result;\n if (IS_UNHANDLED) {\n result = perform(function () {\n if (IS_NODE) {\n process.emit('unhandledRejection', value, promise);\n } else dispatchEvent(UNHANDLED_REJECTION, promise, value);\n });\n // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should\n state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;\n if (result.error) throw result.value;\n }\n });\n};\n\nvar isUnhandled = function (state) {\n return state.rejection !== HANDLED && !state.parent;\n};\n\nvar onHandleUnhandled = function (state) {\n call(task, global, function () {\n var promise = state.facade;\n if (IS_NODE) {\n process.emit('rejectionHandled', promise);\n } else dispatchEvent(REJECTION_HANDLED, promise, state.value);\n });\n};\n\nvar bind = function (fn, state, unwrap) {\n return function (value) {\n fn(state, value, unwrap);\n };\n};\n\nvar internalReject = function (state, value, unwrap) {\n if (state.done) return;\n state.done = true;\n if (unwrap) state = unwrap;\n state.value = value;\n state.state = REJECTED;\n notify(state, true);\n};\n\nvar internalResolve = function (state, value, unwrap) {\n if (state.done) return;\n state.done = true;\n if (unwrap) state = unwrap;\n try {\n if (state.facade === value) throw TypeError(\"Promise can't be resolved itself\");\n var then = isThenable(value);\n if (then) {\n microtask(function () {\n var wrapper = { done: false };\n try {\n call(then, value,\n bind(internalResolve, wrapper, state),\n bind(internalReject, wrapper, state)\n );\n } catch (error) {\n internalReject(wrapper, error, state);\n }\n });\n } else {\n state.value = value;\n state.state = FULFILLED;\n notify(state, false);\n }\n } catch (error) {\n internalReject({ done: false }, error, state);\n }\n};\n\n// constructor polyfill\nif (FORCED_PROMISE_CONSTRUCTOR) {\n // 25.4.3.1 Promise(executor)\n PromiseConstructor = function Promise(executor) {\n anInstance(this, PromisePrototype);\n aCallable(executor);\n call(Internal, this);\n var state = getInternalPromiseState(this);\n try {\n executor(bind(internalResolve, state), bind(internalReject, state));\n } catch (error) {\n internalReject(state, error);\n }\n };\n\n PromisePrototype = PromiseConstructor.prototype;\n\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n Internal = function Promise(executor) {\n setInternalState(this, {\n type: PROMISE,\n done: false,\n notified: false,\n parent: false,\n reactions: new Queue(),\n rejection: false,\n state: PENDING,\n value: undefined\n });\n };\n\n // `Promise.prototype.then` method\n // https://tc39.es/ecma262/#sec-promise.prototype.then\n Internal.prototype = defineBuiltIn(PromisePrototype, 'then', function then(onFulfilled, onRejected) {\n var state = getInternalPromiseState(this);\n var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));\n state.parent = true;\n reaction.ok = isCallable(onFulfilled) ? onFulfilled : true;\n reaction.fail = isCallable(onRejected) && onRejected;\n reaction.domain = IS_NODE ? process.domain : undefined;\n if (state.state == PENDING) state.reactions.add(reaction);\n else microtask(function () {\n callReaction(reaction, state);\n });\n return reaction.promise;\n });\n\n OwnPromiseCapability = function () {\n var promise = new Internal();\n var state = getInternalPromiseState(promise);\n this.promise = promise;\n this.resolve = bind(internalResolve, state);\n this.reject = bind(internalReject, state);\n };\n\n newPromiseCapabilityModule.f = newPromiseCapability = function (C) {\n return C === PromiseConstructor || C === PromiseWrapper\n ? new OwnPromiseCapability(C)\n : newGenericPromiseCapability(C);\n };\n\n if (!IS_PURE && isCallable(NativePromiseConstructor) && NativePromisePrototype !== Object.prototype) {\n nativeThen = NativePromisePrototype.then;\n\n if (!NATIVE_PROMISE_SUBCLASSING) {\n // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs\n defineBuiltIn(NativePromisePrototype, 'then', function then(onFulfilled, onRejected) {\n var that = this;\n return new PromiseConstructor(function (resolve, reject) {\n call(nativeThen, that, resolve, reject);\n }).then(onFulfilled, onRejected);\n // https://github.com/zloirock/core-js/issues/640\n }, { unsafe: true });\n }\n\n // make `.constructor === Promise` work for native promise-based APIs\n try {\n delete NativePromisePrototype.constructor;\n } catch (error) { /* empty */ }\n\n // make `instanceof Promise` work for native promise-based APIs\n if (setPrototypeOf) {\n setPrototypeOf(NativePromisePrototype, PromisePrototype);\n }\n }\n}\n\n$({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {\n Promise: PromiseConstructor\n});\n\nsetToStringTag(PromiseConstructor, PROMISE, false, true);\nsetSpecies(PROMISE);\n","var wellKnownSymbol = require('../internals/well-known-symbol');\nvar Iterators = require('../internals/iterators');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar ArrayPrototype = Array.prototype;\n\n// check on default Array iterator\nmodule.exports = function (it) {\n return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it);\n};\n","var classof = require('../internals/classof');\nvar getMethod = require('../internals/get-method');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar Iterators = require('../internals/iterators');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\n\nmodule.exports = function (it) {\n if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR)\n || getMethod(it, '@@iterator')\n || Iterators[classof(it)];\n};\n","var call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar anObject = require('../internals/an-object');\nvar tryToString = require('../internals/try-to-string');\nvar getIteratorMethod = require('../internals/get-iterator-method');\n\nvar $TypeError = TypeError;\n\nmodule.exports = function (argument, usingIterator) {\n var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator;\n if (aCallable(iteratorMethod)) return anObject(call(iteratorMethod, argument));\n throw $TypeError(tryToString(argument) + ' is not iterable');\n};\n","var call = require('../internals/function-call');\nvar anObject = require('../internals/an-object');\nvar getMethod = require('../internals/get-method');\n\nmodule.exports = function (iterator, kind, value) {\n var innerResult, innerError;\n anObject(iterator);\n try {\n innerResult = getMethod(iterator, 'return');\n if (!innerResult) {\n if (kind === 'throw') throw value;\n return value;\n }\n innerResult = call(innerResult, iterator);\n } catch (error) {\n innerError = true;\n innerResult = error;\n }\n if (kind === 'throw') throw value;\n if (innerError) throw innerResult;\n anObject(innerResult);\n return value;\n};\n","var bind = require('../internals/function-bind-context');\nvar call = require('../internals/function-call');\nvar anObject = require('../internals/an-object');\nvar tryToString = require('../internals/try-to-string');\nvar isArrayIteratorMethod = require('../internals/is-array-iterator-method');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar getIterator = require('../internals/get-iterator');\nvar getIteratorMethod = require('../internals/get-iterator-method');\nvar iteratorClose = require('../internals/iterator-close');\n\nvar $TypeError = TypeError;\n\nvar Result = function (stopped, result) {\n this.stopped = stopped;\n this.result = result;\n};\n\nvar ResultPrototype = Result.prototype;\n\nmodule.exports = function (iterable, unboundFunction, options) {\n var that = options && options.that;\n var AS_ENTRIES = !!(options && options.AS_ENTRIES);\n var IS_RECORD = !!(options && options.IS_RECORD);\n var IS_ITERATOR = !!(options && options.IS_ITERATOR);\n var INTERRUPTED = !!(options && options.INTERRUPTED);\n var fn = bind(unboundFunction, that);\n var iterator, iterFn, index, length, result, next, step;\n\n var stop = function (condition) {\n if (iterator) iteratorClose(iterator, 'normal', condition);\n return new Result(true, condition);\n };\n\n var callFn = function (value) {\n if (AS_ENTRIES) {\n anObject(value);\n return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);\n } return INTERRUPTED ? fn(value, stop) : fn(value);\n };\n\n if (IS_RECORD) {\n iterator = iterable.iterator;\n } else if (IS_ITERATOR) {\n iterator = iterable;\n } else {\n iterFn = getIteratorMethod(iterable);\n if (!iterFn) throw $TypeError(tryToString(iterable) + ' is not iterable');\n // optimisation for array iterators\n if (isArrayIteratorMethod(iterFn)) {\n for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {\n result = callFn(iterable[index]);\n if (result && isPrototypeOf(ResultPrototype, result)) return result;\n } return new Result(false);\n }\n iterator = getIterator(iterable, iterFn);\n }\n\n next = IS_RECORD ? iterable.next : iterator.next;\n while (!(step = call(next, iterator)).done) {\n try {\n result = callFn(step.value);\n } catch (error) {\n iteratorClose(iterator, 'throw', error);\n }\n if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;\n } return new Result(false);\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar SAFE_CLOSING = false;\n\ntry {\n var called = 0;\n var iteratorWithReturn = {\n next: function () {\n return { done: !!called++ };\n },\n 'return': function () {\n SAFE_CLOSING = true;\n }\n };\n iteratorWithReturn[ITERATOR] = function () {\n return this;\n };\n // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing\n Array.from(iteratorWithReturn, function () { throw 2; });\n} catch (error) { /* empty */ }\n\nmodule.exports = function (exec, SKIP_CLOSING) {\n if (!SKIP_CLOSING && !SAFE_CLOSING) return false;\n var ITERATION_SUPPORT = false;\n try {\n var object = {};\n object[ITERATOR] = function () {\n return {\n next: function () {\n return { done: ITERATION_SUPPORT = true };\n }\n };\n };\n exec(object);\n } catch (error) { /* empty */ }\n return ITERATION_SUPPORT;\n};\n","var NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');\nvar FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;\n\nmodule.exports = FORCED_PROMISE_CONSTRUCTOR || !checkCorrectnessOfIteration(function (iterable) {\n NativePromiseConstructor.all(iterable).then(undefined, function () { /* empty */ });\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar perform = require('../internals/perform');\nvar iterate = require('../internals/iterate');\nvar PROMISE_STATICS_INCORRECT_ITERATION = require('../internals/promise-statics-incorrect-iteration');\n\n// `Promise.all` method\n// https://tc39.es/ecma262/#sec-promise.all\n$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {\n all: function all(iterable) {\n var C = this;\n var capability = newPromiseCapabilityModule.f(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform(function () {\n var $promiseResolve = aCallable(C.resolve);\n var values = [];\n var counter = 0;\n var remaining = 1;\n iterate(iterable, function (promise) {\n var index = counter++;\n var alreadyCalled = false;\n remaining++;\n call($promiseResolve, C, promise).then(function (value) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[index] = value;\n --remaining || resolve(values);\n }, reject);\n });\n --remaining || resolve(values);\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar defineBuiltIn = require('../internals/define-built-in');\n\nvar NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;\n\n// `Promise.prototype.catch` method\n// https://tc39.es/ecma262/#sec-promise.prototype.catch\n$({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR, real: true }, {\n 'catch': function (onRejected) {\n return this.then(undefined, onRejected);\n }\n});\n\n// makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`\nif (!IS_PURE && isCallable(NativePromiseConstructor)) {\n var method = getBuiltIn('Promise').prototype['catch'];\n if (NativePromisePrototype['catch'] !== method) {\n defineBuiltIn(NativePromisePrototype, 'catch', method, { unsafe: true });\n }\n}\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar perform = require('../internals/perform');\nvar iterate = require('../internals/iterate');\nvar PROMISE_STATICS_INCORRECT_ITERATION = require('../internals/promise-statics-incorrect-iteration');\n\n// `Promise.race` method\n// https://tc39.es/ecma262/#sec-promise.race\n$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {\n race: function race(iterable) {\n var C = this;\n var capability = newPromiseCapabilityModule.f(C);\n var reject = capability.reject;\n var result = perform(function () {\n var $promiseResolve = aCallable(C.resolve);\n iterate(iterable, function (promise) {\n call($promiseResolve, C, promise).then(capability.resolve, reject);\n });\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;\n\n// `Promise.reject` method\n// https://tc39.es/ecma262/#sec-promise.reject\n$({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {\n reject: function reject(r) {\n var capability = newPromiseCapabilityModule.f(this);\n call(capability.reject, undefined, r);\n return capability.promise;\n }\n});\n","var anObject = require('../internals/an-object');\nvar isObject = require('../internals/is-object');\nvar newPromiseCapability = require('../internals/new-promise-capability');\n\nmodule.exports = function (C, x) {\n anObject(C);\n if (isObject(x) && x.constructor === C) return x;\n var promiseCapability = newPromiseCapability.f(C);\n var resolve = promiseCapability.resolve;\n resolve(x);\n return promiseCapability.promise;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar getBuiltIn = require('../internals/get-built-in');\nvar IS_PURE = require('../internals/is-pure');\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;\nvar promiseResolve = require('../internals/promise-resolve');\n\nvar PromiseConstructorWrapper = getBuiltIn('Promise');\nvar CHECK_WRAPPER = IS_PURE && !FORCED_PROMISE_CONSTRUCTOR;\n\n// `Promise.resolve` method\n// https://tc39.es/ecma262/#sec-promise.resolve\n$({ target: 'Promise', stat: true, forced: IS_PURE || FORCED_PROMISE_CONSTRUCTOR }, {\n resolve: function resolve(x) {\n return promiseResolve(CHECK_WRAPPER && this === PromiseConstructorWrapper ? NativePromiseConstructor : this, x);\n }\n});\n","var classof = require('../internals/classof');\n\nvar $String = String;\n\nmodule.exports = function (argument) {\n if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');\n return $String(argument);\n};\n","'use strict';\nvar anObject = require('../internals/an-object');\n\n// `RegExp.prototype.flags` getter implementation\n// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags\nmodule.exports = function () {\n var that = anObject(this);\n var result = '';\n if (that.hasIndices) result += 'd';\n if (that.global) result += 'g';\n if (that.ignoreCase) result += 'i';\n if (that.multiline) result += 'm';\n if (that.dotAll) result += 's';\n if (that.unicode) result += 'u';\n if (that.unicodeSets) result += 'v';\n if (that.sticky) result += 'y';\n return result;\n};\n","var fails = require('../internals/fails');\nvar global = require('../internals/global');\n\n// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError\nvar $RegExp = global.RegExp;\n\nvar UNSUPPORTED_Y = fails(function () {\n var re = $RegExp('a', 'y');\n re.lastIndex = 2;\n return re.exec('abcd') != null;\n});\n\n// UC Browser bug\n// https://github.com/zloirock/core-js/issues/1008\nvar MISSED_STICKY = UNSUPPORTED_Y || fails(function () {\n return !$RegExp('a', 'y').sticky;\n});\n\nvar BROKEN_CARET = UNSUPPORTED_Y || fails(function () {\n // https://bugzilla.mozilla.org/show_bug.cgi?id=773687\n var re = $RegExp('^r', 'gy');\n re.lastIndex = 2;\n return re.exec('str') != null;\n});\n\nmodule.exports = {\n BROKEN_CARET: BROKEN_CARET,\n MISSED_STICKY: MISSED_STICKY,\n UNSUPPORTED_Y: UNSUPPORTED_Y\n};\n","var fails = require('../internals/fails');\nvar global = require('../internals/global');\n\n// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError\nvar $RegExp = global.RegExp;\n\nmodule.exports = fails(function () {\n var re = $RegExp('.', 's');\n return !(re.dotAll && re.exec('\\n') && re.flags === 's');\n});\n","var fails = require('../internals/fails');\nvar global = require('../internals/global');\n\n// babel-minify and Closure Compiler transpiles RegExp('(?b)', 'g') -> /(?b)/g and it causes SyntaxError\nvar $RegExp = global.RegExp;\n\nmodule.exports = fails(function () {\n var re = $RegExp('(?b)', 'g');\n return re.exec('b').groups.a !== 'b' ||\n 'b'.replace(re, '$c') !== 'bc';\n});\n","'use strict';\n/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */\n/* eslint-disable regexp/no-useless-quantifier -- testing */\nvar call = require('../internals/function-call');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar toString = require('../internals/to-string');\nvar regexpFlags = require('../internals/regexp-flags');\nvar stickyHelpers = require('../internals/regexp-sticky-helpers');\nvar shared = require('../internals/shared');\nvar create = require('../internals/object-create');\nvar getInternalState = require('../internals/internal-state').get;\nvar UNSUPPORTED_DOT_ALL = require('../internals/regexp-unsupported-dot-all');\nvar UNSUPPORTED_NCG = require('../internals/regexp-unsupported-ncg');\n\nvar nativeReplace = shared('native-string-replace', String.prototype.replace);\nvar nativeExec = RegExp.prototype.exec;\nvar patchedExec = nativeExec;\nvar charAt = uncurryThis(''.charAt);\nvar indexOf = uncurryThis(''.indexOf);\nvar replace = uncurryThis(''.replace);\nvar stringSlice = uncurryThis(''.slice);\n\nvar UPDATES_LAST_INDEX_WRONG = (function () {\n var re1 = /a/;\n var re2 = /b*/g;\n call(nativeExec, re1, 'a');\n call(nativeExec, re2, 'a');\n return re1.lastIndex !== 0 || re2.lastIndex !== 0;\n})();\n\nvar UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;\n\n// nonparticipating capturing group, copied from es5-shim's String#split patch.\nvar NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;\n\nvar PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;\n\nif (PATCH) {\n patchedExec = function exec(string) {\n var re = this;\n var state = getInternalState(re);\n var str = toString(string);\n var raw = state.raw;\n var result, reCopy, lastIndex, match, i, object, group;\n\n if (raw) {\n raw.lastIndex = re.lastIndex;\n result = call(patchedExec, raw, str);\n re.lastIndex = raw.lastIndex;\n return result;\n }\n\n var groups = state.groups;\n var sticky = UNSUPPORTED_Y && re.sticky;\n var flags = call(regexpFlags, re);\n var source = re.source;\n var charsAdded = 0;\n var strCopy = str;\n\n if (sticky) {\n flags = replace(flags, 'y', '');\n if (indexOf(flags, 'g') === -1) {\n flags += 'g';\n }\n\n strCopy = stringSlice(str, re.lastIndex);\n // Support anchored sticky behavior.\n if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt(str, re.lastIndex - 1) !== '\\n')) {\n source = '(?: ' + source + ')';\n strCopy = ' ' + strCopy;\n charsAdded++;\n }\n // ^(? + rx + ) is needed, in combination with some str slicing, to\n // simulate the 'y' flag.\n reCopy = new RegExp('^(?:' + source + ')', flags);\n }\n\n if (NPCG_INCLUDED) {\n reCopy = new RegExp('^' + source + '$(?!\\\\s)', flags);\n }\n if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;\n\n match = call(nativeExec, sticky ? reCopy : re, strCopy);\n\n if (sticky) {\n if (match) {\n match.input = stringSlice(match.input, charsAdded);\n match[0] = stringSlice(match[0], charsAdded);\n match.index = re.lastIndex;\n re.lastIndex += match[0].length;\n } else re.lastIndex = 0;\n } else if (UPDATES_LAST_INDEX_WRONG && match) {\n re.lastIndex = re.global ? match.index + match[0].length : lastIndex;\n }\n if (NPCG_INCLUDED && match && match.length > 1) {\n // Fix browsers whose `exec` methods don't consistently return `undefined`\n // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/\n call(nativeReplace, match[0], reCopy, function () {\n for (i = 1; i < arguments.length - 2; i++) {\n if (arguments[i] === undefined) match[i] = undefined;\n }\n });\n }\n\n if (match && groups) {\n match.groups = object = create(null);\n for (i = 0; i < groups.length; i++) {\n group = groups[i];\n object[group[0]] = match[group[1]];\n }\n }\n\n return match;\n };\n}\n\nmodule.exports = patchedExec;\n","'use strict';\nvar $ = require('../internals/export');\nvar exec = require('../internals/regexp-exec');\n\n// `RegExp.prototype.exec` method\n// https://tc39.es/ecma262/#sec-regexp.prototype.exec\n$({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {\n exec: exec\n});\n","/**\n * Provide feature detection\n * @class Features\n */\nexport class Features {\n /**\n * If the browser has WebGL support\n * @property {boolean} webgl\n */\n static get webgl() {\n const canvas = document.createElement('canvas');\n\n return !!(\n canvas &&\n (canvas.getContext('webgl') || canvas.getContext('experimental-webgl'))\n );\n }\n\n /**\n * If the browser has Canvas support\n * @property {boolean} canvas\n */\n static get canvas() {\n const canvas = document.createElement('canvas');\n return !!(canvas !== null && canvas.getContext && canvas.getContext('2d'));\n }\n\n /**\n * If the browser has WebAudio API support\n * @property {boolean} webaudio\n */\n static get webaudio() {\n return 'webkitAudioContext' in window || 'AudioContext' in window;\n }\n\n /**\n * If the browser has HTMLAudio support\n * @property {boolean} htmlAudio\n */\n static get htmlAudio() {\n return 'HTMLAudioElement' in window;\n }\n\n /**\n * If the browser has Web Sockets API\n * @property {boolean} websockets\n */\n static get websockets() {\n return 'WebSocket' in window || 'MozWebSocket' in window;\n }\n\n /**\n * If the browser has Geolocation API\n * @property {boolean} geolocation\n */\n static get geolocation() {\n return 'geolocation' in navigator;\n }\n\n /**\n * If the browser has Web Workers API\n * @property {boolean} webworkers\n */\n static get webworkers() {\n return 'function' === typeof Worker;\n }\n\n /**\n * If the browser has touch\n * @property {boolean} touch\n */\n static get touch() {\n return !!(\n 'ontouchstart' in window || // iOS & Android\n (navigator.msPointerEnabled && navigator.msMaxTouchPoints > 0) || // IE10\n (navigator.pointerEnabled && navigator.maxTouchPoints > 0)\n ); // IE11+\n }\n\n /**\n * Test for basic browser compatiliblity\n * @method basic\n * @static\n * @return {String} The error message, if fails\n */\n static basic() {\n if (!Features.canvas) {\n return 'Browser does not support canvas';\n } else if (!Features.webaudio && !Features.htmlAudio) {\n return 'Browser does not support WebAudio or HTMLAudio';\n }\n return null;\n }\n\n /**\n * See if the current bowser has the correct features\n * @method test\n * @static\n * @param {object} capabilities The capabilities\n * @param {object} [capabilities.features] The features\n * @param {object} [capabilities.features.webgl] WebGL required\n * @param {object} [capabilities.features.geolocation] Geolocation required\n * @param {object} [capabilities.features.webworkers] Web Workers API required\n * @param {object} [capabilities.features.webaudio] WebAudio API required\n * @param {object} [capabilities.features.websockets] WebSockets required\n * @param {object} [capabilities.sizes] The sizes\n * @param {Boolean} [capabilities.sizes.xsmall] Screens < 480\n * @param {Boolean} [capabilities.sizes.small] Screens < 768\n * @param {Boolean} [capabilities.sizes.medium] Screens < 992\n * @param {Boolean} [capabilities.sizes.large] Screens < 1200\n * @param {Boolean} [capabilities.sizes.xlarge] Screens >= 1200\n * @param {object} [capabilities.ui] The ui\n * @param {Boolean} [capabilities.ui.touch] Touch capable\n * @return {String|null} The error, or else returns null\n */\n static test(capabilities) {\n // check for basic compatibility\n const err = this.basic();\n if (err) {\n return err;\n }\n\n const features = capabilities.features;\n const ui = capabilities.ui;\n const sizes = capabilities.sizes;\n\n for (const name in features) {\n if (features[name] === true && !Features[name]) {\n // Failed built-in feature check\n return 'Browser does not support ' + name;\n }\n }\n\n // Failed negative touch requirement\n if (!ui.touch && Features.touch) {\n return 'Game does not support touch input';\n }\n\n // Check the sizes\n const size = Math.max(window.screen.width, window.screen.height);\n\n if (!sizes.xsmall && size < 480) {\n return 'Game doesn\\'t support extra small screens';\n }\n if (!sizes.small && size < 768) {\n return 'Game doesn\\'t support small screens';\n }\n if (!sizes.medium && size < 992) {\n return 'Game doesn\\'t support medium screens';\n }\n if (!sizes.large && size < 1200) {\n return 'Game doesn\\'t support large screens';\n }\n if (!sizes.xlarge && size >= 1200) {\n return 'Game doesn\\'t support extra large screens';\n }\n return null;\n }\n\n /**\n * Returns browser feature support info\n * @returns {string}\n */\n static get info() {\n return `Browser Feature Detection\n\t\t\t\tCanvas support ${Features.canvas ? '\\u2713' : '\\u00D7'}\n\t\t\t\tWebGL support ${Features.webgl ? '\\u2713' : '\\u00D7'}\n\t\t\t\tWebAudio support ${Features.webAudio ? '\\u2713' : '\\u00D7'}`;\n }\n}\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\nvar toString = require('../internals/to-string');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar charAt = uncurryThis(''.charAt);\nvar charCodeAt = uncurryThis(''.charCodeAt);\nvar stringSlice = uncurryThis(''.slice);\n\nvar createMethod = function (CONVERT_TO_STRING) {\n return function ($this, pos) {\n var S = toString(requireObjectCoercible($this));\n var position = toIntegerOrInfinity(pos);\n var size = S.length;\n var first, second;\n if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;\n first = charCodeAt(S, position);\n return first < 0xD800 || first > 0xDBFF || position + 1 === size\n || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF\n ? CONVERT_TO_STRING\n ? charAt(S, position)\n : first\n : CONVERT_TO_STRING\n ? stringSlice(S, position, position + 2)\n : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;\n };\n};\n\nmodule.exports = {\n // `String.prototype.codePointAt` method\n // https://tc39.es/ecma262/#sec-string.prototype.codepointat\n codeAt: createMethod(false),\n // `String.prototype.at` method\n // https://github.com/mathiasbynens/String.prototype.at\n charAt: createMethod(true)\n};\n","'use strict';\nvar charAt = require('../internals/string-multibyte').charAt;\nvar toString = require('../internals/to-string');\nvar InternalStateModule = require('../internals/internal-state');\nvar defineIterator = require('../internals/iterator-define');\nvar createIterResultObject = require('../internals/create-iter-result-object');\n\nvar STRING_ITERATOR = 'String Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(STRING_ITERATOR);\n\n// `String.prototype[@@iterator]` method\n// https://tc39.es/ecma262/#sec-string.prototype-@@iterator\ndefineIterator(String, 'String', function (iterated) {\n setInternalState(this, {\n type: STRING_ITERATOR,\n string: toString(iterated),\n index: 0\n });\n// `%StringIteratorPrototype%.next` method\n// https://tc39.es/ecma262/#sec-%stringiteratorprototype%.next\n}, function next() {\n var state = getInternalState(this);\n var string = state.string;\n var index = state.index;\n var point;\n if (index >= string.length) return createIterResultObject(undefined, true);\n point = charAt(string, index);\n state.index += point.length;\n return createIterResultObject(point, false);\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $filter = require('../internals/array-iteration').filter;\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');\n\n// `Array.prototype.filter` method\n// https://tc39.es/ecma262/#sec-array.prototype.filter\n// with adding support of @@species\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {\n filter: function filter(callbackfn /* , thisArg */) {\n return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $find = require('../internals/array-iteration').find;\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\nvar FIND = 'find';\nvar SKIPS_HOLES = true;\n\n// Shouldn't skip holes\nif (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });\n\n// `Array.prototype.find` method\n// https://tc39.es/ecma262/#sec-array.prototype.find\n$({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {\n find: function find(callbackfn /* , that = undefined */) {\n return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables(FIND);\n","function t(t,e){return t(e={exports:{}},e.exports),e.exports}var e=t((function(t){function e(t){return(e=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t})(t)}function n(r){return\"function\"==typeof Symbol&&\"symbol\"===e(Symbol.iterator)?t.exports=n=function(t){return e(t)}:t.exports=n=function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":e(t)},n(r)}t.exports=n}));var n=function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")};function r(t,e){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:0;this._listeners[t]||(this._listeners[t]=[]),e._priority=parseInt(n)||0,-1===this._listeners[t].indexOf(e)&&(this._listeners[t].push(e),this._listeners[t].length>1&&this._listeners[t].sort(this.listenerSorter))}},{key:\"listenerSorter\",value:function(t,e){return t._priority-e._priority}},{key:\"off\",value:function(t,e){if(void 0!==this._listeners[t])if(void 0!==e){var n=this._listeners[t].indexOf(e);-11&&void 0!==arguments[1]?arguments[1]:{};if(\"string\"==typeof t&&(t={type:t,data:\"object\"===e(n)&&null!==n?n:{}}),void 0!==this._listeners[t.type])for(var r=this._listeners[t.type].length-1;r>=0;r--)this._listeners[t.type][r](t)}},{key:\"destroy\",value:function(){this._listeners={}}}]),t}(),s=t((function(t){var e=function(t){var e,n=Object.prototype,r=n.hasOwnProperty,o=\"function\"==typeof Symbol?Symbol:{},i=o.iterator||\"@@iterator\",s=o.asyncIterator||\"@@asyncIterator\",a=o.toStringTag||\"@@toStringTag\";function c(t,e,n,r){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),s=new S(r||[]);return i._invoke=function(t,e,n){var r=h;return function(o,i){if(r===f)throw new Error(\"Generator is already running\");if(r===p){if(\"throw\"===o)throw i;return P()}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var a=O(s,n);if(a){if(a===y)continue;return a}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(r===h)throw r=p,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);r=f;var c=u(t,e,n);if(\"normal\"===c.type){if(r=n.done?p:l,c.arg===y)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(r=p,n.method=\"throw\",n.arg=c.arg)}}}(t,n,s),i}function u(t,e,n){try{return{type:\"normal\",arg:t.call(e,n)}}catch(t){return{type:\"throw\",arg:t}}}t.wrap=c;var h=\"suspendedStart\",l=\"suspendedYield\",f=\"executing\",p=\"completed\",y={};function d(){}function v(){}function g(){}var m={};m[i]=function(){return this};var w=Object.getPrototypeOf,b=w&&w(w(j([])));b&&b!==n&&r.call(b,i)&&(m=b);var _=g.prototype=d.prototype=Object.create(m);function x(t){[\"next\",\"throw\",\"return\"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function L(t){function e(n,o,i,s){var a=u(t[n],t,o);if(\"throw\"!==a.type){var c=a.arg,h=c.value;return h&&\"object\"==typeof h&&r.call(h,\"__await\")?Promise.resolve(h.__await).then((function(t){e(\"next\",t,i,s)}),(function(t){e(\"throw\",t,i,s)})):Promise.resolve(h).then((function(t){c.value=t,i(c)}),(function(t){return e(\"throw\",t,i,s)}))}s(a.arg)}var n;this._invoke=function(t,r){function o(){return new Promise((function(n,o){e(t,r,n,o)}))}return n=n?n.then(o,o):o()}}function O(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,\"throw\"===n.method){if(t.iterator.return&&(n.method=\"return\",n.arg=e,O(t,n),\"throw\"===n.method))return y;n.method=\"throw\",n.arg=new TypeError(\"The iterator does not provide a 'throw' method\")}return y}var o=u(r,t.iterator,n.arg);if(\"throw\"===o.type)return n.method=\"throw\",n.arg=o.arg,n.delegate=null,y;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,\"return\"!==n.method&&(n.method=\"next\",n.arg=e),n.delegate=null,y):i:(n.method=\"throw\",n.arg=new TypeError(\"iterator result is not an object\"),n.delegate=null,y)}function E(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 k(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(E,this),this.reset(!0)}function j(t){if(t){var n=t[i];if(n)return n.call(t);if(\"function\"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,s=function n(){for(;++o=0;--i){var s=this.tryEntries[i],a=s.completion;if(\"root\"===s.tryLoc)return o(\"end\");if(s.tryLoc<=this.prev){var c=r.call(s,\"catchLoc\"),u=r.call(s,\"finallyLoc\");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,\"finallyLoc\")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),y}},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;k(n)}return o}}throw new Error(\"illegal catch attempt\")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},\"next\"===this.method&&(this.arg=e),y}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function(\"r\",\"regeneratorRuntime = r\")(e)}}));var a=function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t};var c=function(t,n){return!n||\"object\"!==e(n)&&\"function\"!=typeof n?a(t):n},u=t((function(t){function e(n){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},e(n)}t.exports=e}));var h=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t},l=t((function(t){function e(n,r,o){return\"undefined\"!=typeof Reflect&&Reflect.get?t.exports=e=Reflect.get:t.exports=e=function(t,e,n){var r=h(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}},e(n,r,o||n)}t.exports=e})),f=t((function(t){function e(n,r){return t.exports=e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},e(n,r)}t.exports=e}));var p=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&&f(t,e)},y=function(t){function r(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100*Math.random()|0;return n(this,r),(t=c(this,u(r).call(this))).id=\"BELLHOP:\".concat(e),t.connected=!1,t.isChild=!0,t.connecting=!1,t.debug=!1,t.origin=\"*\",t._sendLater=[],t.iframe=null,t.receive=t.receive.bind(a(t)),t}return p(r,i),o(r,[{key:\"receive\",value:function(t){if(this.target===t.source)if(this.logDebugMessage(!0,t),\"connected\"===t.data)this.onConnectionReceived(t.data);else{var n=t.data;if(\"string\"==typeof n)try{n=JSON.parse(n)}catch(t){console.warn(\"Bellhop error: \",t)}this.connected&&\"object\"===e(n)&&n.type&&this.trigger(n)}}},{key:\"onConnectionReceived\",value:function(t){if(this.connecting=!1,this.connected=!0,!this.isChild){if(!this.target)return;this.target.postMessage(t,this.origin)}for(var e=0;e1&&void 0!==arguments[1]?arguments[1]:\"*\";this.connecting||(this.disconnect(),this.connecting=!0,t instanceof HTMLIFrameElement&&(this.iframe=t),this.isChild=void 0===t,this.supported=!0,this.isChild&&(this.supported=window!=t),this.origin=e,window.addEventListener(\"message\",this.receive),this.isChild&&(window===this.target?this.trigger(\"failed\"):this.target.postMessage(\"connected\",this.origin)))}},{key:\"disconnect\",value:function(){this.connected=!1,this.connecting=!1,this.origin=null,this.iframe=null,this.isChild=!0,this._sendLater.length=0,window.removeEventListener(\"message\",this.receive)}},{key:\"send\",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(\"string\"!=typeof t)throw\"The event type must be a string\";var n={type:t,data:e};this.logDebugMessage(!1,n),this.connecting?this._sendLater.push(n):this.target.postMessage(JSON.stringify(n),this.origin)}},{key:\"fetch\",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!this.connecting&&!this.connected)throw\"No connection, please call connect() first\";var i=function t(r){o&&n.off(r.type,t),e(r)};this.on(t,i),this.send(t,r)}},{key:\"respond\",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this,o=function t(o){return s.async((function(i){for(;;)switch(i.prev=i.next){case 0:if(n&&r.off(o,t),\"function\"!=typeof e){i.next=10;break}return i.t0=r,i.t1=o.type,i.next=6,s.awrap(e());case 6:i.t2=i.sent,i.t0.send.call(i.t0,i.t1,i.t2),i.next=11;break;case 10:r.send(o.type,e);case 11:case\"end\":return i.stop()}}))};this.on(t,o)}},{key:\"logDebugMessage\",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1?arguments[1]:void 0;this.debug&&\"function\"==typeof this.debug?this.debug({isChild:this.isChild,received:t,message:e}):this.debug&&console.log(\"Bellhop Instance (\".concat(this.isChild?\"Child\":\"Parent\",\") \").concat(t?\"Receieved\":\"Sent\"),e)}},{key:\"destroy\",value:function(){l(u(r.prototype),\"destroy\",this).call(this),this.disconnect(),this._sendLater.length=0}},{key:\"target\",get:function(){return this.isChild?window.parent:this.iframe.contentWindow}}]),r}();export{y as Bellhop,i as BellhopEventDispatcher};\n//# sourceMappingURL=bellhop.js.map\n","/**\n * @typedef {import('./base-plugins/BasePlugin').BasePlugin} BasePlugin\n */\nimport { Bellhop } from 'bellhop-iframe';\n/**\n *\n *\n * @export\n * @class PluginManager\n */\nexport default class PluginManager {\n /**\n *Creates an instance of PluginManager.\n * @memberof PluginManager\n */\n constructor({ plugins = [] }) {\n this.client = new Bellhop();\n // @ts-ignore\n this.client.hidden = this.client.receive.bind(this.client);\n // @ts-ignore\n this.client.hiddenSend = this.client.send.bind(this.client);\n this.client.receive = function (event) {\n this.hidden(event);\n }.bind(this.client);\n this.client.send = function (event, data) {\n this.hiddenSend(event, data);\n }.bind(this.client);\n\n this.plugins = plugins;\n }\n\n /**\n *\n *\n * @returns\n * @memberof PluginManager\n */\n setupPlugins() {\n const preloads = [];\n for (let i = 0, l = this.plugins.length; i < l; i++) {\n if (!this.plugins[i].preload) {\n continue;\n }\n\n preloads.push(\n this.plugins[i].preload(this).catch(function preloadFail(error) {\n this.plugins[i].preloadFailed = true;\n console.warn(this.plugins[i].name, 'Preload Failed:', error);\n }.bind(this))\n );\n }\n\n // ~wait for all preloads to resolve\n return Promise.all(preloads).then(() => {\n // Remove plugins that fail to load.\n this.plugins = this.plugins.filter(\n plugin => plugin.preloadFailed !== true\n );\n\n //init\n this.plugins.forEach(plugin => {\n if (!plugin.init) {\n return;\n }\n\n plugin.init(this);\n });\n\n //start\n this.plugins.forEach(plugin => {\n if (!plugin.start) {\n return;\n }\n plugin.start(this);\n });\n });\n }\n\n /**\n * Registers a plugin to be used by PluginManagers, sorting it by priority order.\n * @param {BasePlugin} plugin The plugin to register.\n */\n uses(plugin) {\n this.plugins.push(plugin);\n }\n\n /**\n * Finds a plugin by name.\n * @param {string} name The name of the plugin.\n * @returns {BasePlugin}\n */\n getPlugin(name) {\n return this.plugins.find(function (plugin) {\n return plugin.name === name;\n });\n }\n}\n","import 'whatwg-fetch';\n\nimport { Features } from './Features';\nimport PluginManager from './PluginManager';\n// @ts-ignore\nimport { version } from '../package.json';\n\n/**\n * The application container\n * @class Container\n * @property {Bellhop} client Communication layer between the container and application\n * @property {boolean} loaded Check to see if a application is loaded\n * @property {boolean} loading Check to see if a application is loading\n * @property {object} release The current release data\n * @property {HTMLIFrameElement} iframe The DOM object for the iframe\n * @static @property {string} version The current version of the library\n */\nexport class Container extends PluginManager {\n /**\n *Creates an instance of Container.\n * @param {object} config\n * @param {string | HTMLIFrameElement} iframeOrSelector\n * @param {Array | null} [config.plugins]\n * @param {object | null} [config.context={}]\n * @memberof Container\n */\n constructor(iframeOrSelector, { plugins, context = {} } = {}) {\n super({ plugins });\n\n this.iframe = iframeOrSelector instanceof HTMLIFrameElement ? iframeOrSelector : document.querySelector(iframeOrSelector);\n\n if (null === this.iframe) {\n throw new Error('No iframe was found with the provided selector');\n }\n\n this.loaded = false;\n this.loading = false;\n this.release = null;\n\n // context object that plugins can pick up on\n this._context = context;\n\n this.onLoading = this.onLoading.bind(this);\n this.onLoadDone = this.onLoadDone.bind(this);\n this.onLoadDone = this.onLoadDone.bind(this);\n this.onEndGame = this.onEndGame.bind(this);\n this.onLocalError = this.onLocalError.bind(this);\n\n this.initClient();\n this.setupPlugins();\n }\n\n /**\n * The game is starting to load\n * @memberof Container\n */\n onLoading() {\n this.client.trigger('opening');\n }\n\n /**\n * Reset the mutes for audio and captions\n * @memberof Container\n */\n onLoadDone() {\n this.loading = false;\n this.loaded = true;\n this.iframe.classList.remove('loading');\n\n this.client.trigger('opened');\n }\n\n /**\n * The application ended and destroyed itself\n * @memberof Container\n */\n onEndGame() {\n this.reset();\n }\n /**\n * Handle the local errors\n * @method onLocalError\n * @private\n * @param {Event} $event Bellhop event\n */\n onLocalError($event) {\n console.error('SpringRoll Container error: ', $event, new Error().stack);\n }\n\n /**\n * Reset all the buttons back to their original setting\n * and clear the iframe.\n * @memberof Container\n */\n reset() {\n const wasLoaded = this.loaded || this.loading;\n\n if (wasLoaded) {\n this.client.trigger('closed');\n }\n\n // Reset state\n this.loaded = false;\n this.loading = false;\n\n // Clear the iframe src location\n this.iframe.setAttribute('src', '');\n this.iframe.classList.remove('loading');\n }\n\n /**\n * Set up communication layer between site and application.\n * May be called from subclasses if they create/destroy Bellhop instances.\n * @memberof Container\n */\n initClient() {\n //Handle bellhop events coming from the application\n this.client.on('loading', this.onLoading);\n this.client.on('loaded', this.onLoadDone);\n this.client.on('loadDone', this.onLoadDone);\n this.client.on('endGame', this.onEndGame);\n this.client.on('localError', this.onLocalError);\n // @ts-ignore\n this.client.connect(this.iframe);\n }\n\n /**\n * If there was an error when closing, reset the container\n * @memberof Container\n */\n _onCloseFailed() {\n this.reset(); // force close the app\n }\n\n /**\n * Open a application or path\n * @param {string} userPath The full path to the application to load\n * @param {object} [userOptions] The open options\n * @param {boolean} [userOptions.singlePlay=false] If we should play in single play mode\n * @param {object | null} [userOptions.playOptions=null] The optional play options\n * @memberof Container\n */\n _internalOpen(userPath, { singlePlay = false, playOptions = null } = {}) {\n const options = { singlePlay, playOptions };\n this.reset();\n\n this.loading = true;\n this.initClient();\n\n const err = Features.basic();\n if (err) {\n console.error('ERROR:', err);\n this.client.trigger('unsupported');\n }\n\n let path = userPath;\n if (null !== options.playOptions) {\n const playOptionsQueryString =\n 'playOptions=' +\n encodeURIComponent(JSON.stringify(options.playOptions));\n\n path =\n -1 === userPath.indexOf('?')\n ? `${userPath}?${playOptionsQueryString}`\n : `${userPath}&${playOptionsQueryString}`;\n }\n\n this.iframe.classList.add('loading');\n this.iframe.setAttribute('src', path);\n\n this.client.respond('singlePlay', singlePlay);\n this.client.respond('playOptions', playOptions);\n this.client.trigger('open');\n }\n\n /**\n *\n *\n * @param {string} path\n * @param {object} [options={}]\n * @memberof Container\n */\n openPath(path, options = {}) {\n // This should be deprecated, support for old function signature\n if ('object' !== typeof options) {\n console.warn(\n 'SpringRoll Container.openPath was passed a invalid options parameter. Using default parameters instead'\n );\n options = {};\n }\n\n this._internalOpen(\n path,\n Object.assign(\n {\n singlePlay: false,\n playOptions: {}\n },\n options\n )\n );\n }\n\n /**\n * Open application based on an API Call to SpringRoll Connect\n * @param {string} api\n * @param {object} options\n * @param {string} [options.query='']\n * @param {boolean} [options.singlePlay=false]\n * @param {null | object} [options.playOptions=null]\n * @returns {Promise}\n * @memberof Container\n */\n async openRemote(\n api,\n { query = '', singlePlay = false, playOptions = null } = {}\n ) {\n this.release = null;\n\n const response = await fetch(api, {\n headers: {\n 'Content-Type': 'application/json'\n }\n });\n\n const json = await response.json();\n\n // if SpringRollConnect denoted that something failed, send that error back\n if (!json.success) {\n throw new Error(json.error);\n }\n\n // If the browser doesn't support the capabilities requested by this game, also fail.\n const release = json.data;\n const error = Features.test(release.capabilities);\n if (error) {\n this.client.trigger('unsupported', { error });\n throw new Error(error);\n }\n\n // otherwise, open the game\n this.release = release;\n this._internalOpen(release.url + query, {\n singlePlay,\n playOptions\n });\n }\n\n /**\n * Destroy and don't use after this\n * @memberof Container\n */\n destroy() {\n this.reset();\n\n this.iframe = null;\n this.options = null;\n this.release = null;\n }\n\n /**\n * Tell the application to start closing\n * @memberof Container\n */\n close() {\n if (this.loading || this.loaded) {\n this.client.trigger('close');\n // Start the close\n this.client.send('close');\n } else {\n this.reset();\n }\n }\n\n /**\n * the current _context object\n * @readonly\n * @memberof Container\n * @return {object}\n */\n get context() {\n return this._context;\n }\n\n /**\n * sets _context object to new object\n * @param {object} context\n * @memberof Container\n */\n set context(newContext) {\n if (typeof newContext !== 'object') {\n console.error('[SpringRollContainer] Context: new context provided is not an object');\n return;\n }\n this._context = newContext;\n }\n\n\n\n /**\n * The current version of SpringRollContainer\n * @readonly\n * @static\n * @return {string}\n * @memberof Container\n */\n static get version() {\n return version;\n }\n}\n","/**\n * Handle the page visiblity change, if supported. Application uses one of these to\n * monitor page visibility. It is suggested that you listen to `pause`, `paused`,\n * or `resumed` events on the Application instead of using one of these yourself.\n *\n * @export\n * @class PageVisibility\n * @constructor\n * @param {Function} onFocus Callback when the page becomes visible\n * @param {Function} onBlur Callback when the page loses visibility\n */\nexport class PageVisibility {\n /**\n *Creates an instance of PageVisibility.\n * @param { function } [onFocus=function() {}]\n * @param { function } [onBlur=function() {}]\n * @memberof PageVisibility\n */\n constructor(onFocus = function() {}, onBlur = function() {}) {\n this._onFocus = onFocus;\n this._onBlur = onBlur;\n this.onFocus = function(e) {\n if (this.enabled) {\n this._onFocus(e);\n }\n }.bind(this);\n this.onBlur = function(e) {\n if (this.enabled) {\n this._onBlur(e);\n }\n }.bind(this);\n this._enabled = false;\n this.enabled = true;\n\n this.onToggle = this.onToggle.bind(this);\n }\n\n /**\n * Disable the detection\n * @memberof PageVisibility\n */\n destroy() {\n this.enabled = false;\n this.onToggle = null;\n this.onFocus = null;\n this.onBlur = null;\n }\n\n /**\n * The visibility toggle listener function\n * @param {Event} $event;\n * @memberof PageVisibility\n */\n onToggle($event) {\n if (this.enabled) {\n document.hidden ? this.onBlur($event) : this.onFocus($event);\n }\n }\n\n /**\n * If this object is enabled.\n * @returns {boolean}\n * @memberof PageVisibility\n */\n get enabled() {\n return this._enabled;\n }\n\n /**\n * Sets the state of the object\n * @memberof PageVisibility\n */\n set enabled(enable) {\n this._enabled = enable;\n\n document.removeEventListener('visibilitychange', this.onToggle, false);\n window.removeEventListener('blur', this.onBlur, false);\n window.removeEventListener('focus', this.onFocus, false);\n window.removeEventListener('pagehide', this.onBlur, false);\n window.removeEventListener('pageshow', this.onFocus, false);\n window.removeEventListener('visibilitychange', this.onToggle, false);\n\n if (this._enabled) {\n document.addEventListener('visibilitychange', this.onToggle, false);\n window.addEventListener('blur', this.onBlur, false);\n window.addEventListener('focus', this.onFocus, false);\n window.addEventListener('pagehide', this.onBlur, false);\n window.addEventListener('pageshow', this.onFocus, false);\n window.addEventListener('visibilitychange', this.onToggle, false);\n }\n }\n}\n","'use strict';\nvar $ = require('../internals/export');\nvar $includes = require('../internals/array-includes').includes;\nvar fails = require('../internals/fails');\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\n// FF99+ bug\nvar BROKEN_ON_SPARSE = fails(function () {\n // eslint-disable-next-line es/no-array-prototype-includes -- detection\n return !Array(1).includes();\n});\n\n// `Array.prototype.includes` method\n// https://tc39.es/ecma262/#sec-array.prototype.includes\n$({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {\n includes: function includes(el /* , fromIndex = 0 */) {\n return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('includes');\n","// a string of all valid unicode whitespaces\nmodule.exports = '\\u0009\\u000A\\u000B\\u000C\\u000D\\u0020\\u00A0\\u1680\\u2000\\u2001\\u2002' +\n '\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF';\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar toString = require('../internals/to-string');\nvar whitespaces = require('../internals/whitespaces');\n\nvar replace = uncurryThis(''.replace);\nvar ltrim = RegExp('^[' + whitespaces + ']+');\nvar rtrim = RegExp('(^|[^' + whitespaces + '])[' + whitespaces + ']+$');\n\n// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation\nvar createMethod = function (TYPE) {\n return function ($this) {\n var string = toString(requireObjectCoercible($this));\n if (TYPE & 1) string = replace(string, ltrim, '');\n if (TYPE & 2) string = replace(string, rtrim, '$1');\n return string;\n };\n};\n\nmodule.exports = {\n // `String.prototype.{ trimLeft, trimStart }` methods\n // https://tc39.es/ecma262/#sec-string.prototype.trimstart\n start: createMethod(1),\n // `String.prototype.{ trimRight, trimEnd }` methods\n // https://tc39.es/ecma262/#sec-string.prototype.trimend\n end: createMethod(2),\n // `String.prototype.trim` method\n // https://tc39.es/ecma262/#sec-string.prototype.trim\n trim: createMethod(3)\n};\n","var PROPER_FUNCTION_NAME = require('../internals/function-name').PROPER;\nvar fails = require('../internals/fails');\nvar whitespaces = require('../internals/whitespaces');\n\nvar non = '\\u200B\\u0085\\u180E';\n\n// check that a method works with the correct list\n// of whitespaces and has a correct name\nmodule.exports = function (METHOD_NAME) {\n return fails(function () {\n return !!whitespaces[METHOD_NAME]()\n || non[METHOD_NAME]() !== non\n || (PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME);\n });\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar $trim = require('../internals/string-trim').trim;\nvar forcedStringTrimMethod = require('../internals/string-trim-forced');\n\n// `String.prototype.trim` method\n// https://tc39.es/ecma262/#sec-string.prototype.trim\n$({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {\n trim: function trim() {\n return $trim(this);\n }\n});\n","var call = require('../internals/function-call');\nvar hasOwn = require('../internals/has-own-property');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar regExpFlags = require('../internals/regexp-flags');\n\nvar RegExpPrototype = RegExp.prototype;\n\nmodule.exports = function (R) {\n var flags = R.flags;\n return flags === undefined && !('flags' in RegExpPrototype) && !hasOwn(R, 'flags') && isPrototypeOf(RegExpPrototype, R)\n ? call(regExpFlags, R) : flags;\n};\n","'use strict';\nvar PROPER_FUNCTION_NAME = require('../internals/function-name').PROPER;\nvar defineBuiltIn = require('../internals/define-built-in');\nvar anObject = require('../internals/an-object');\nvar $toString = require('../internals/to-string');\nvar fails = require('../internals/fails');\nvar getRegExpFlags = require('../internals/regexp-get-flags');\n\nvar TO_STRING = 'toString';\nvar RegExpPrototype = RegExp.prototype;\nvar nativeToString = RegExpPrototype[TO_STRING];\n\nvar NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });\n// FF44- RegExp#toString has a wrong name\nvar INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name != TO_STRING;\n\n// `RegExp.prototype.toString` method\n// https://tc39.es/ecma262/#sec-regexp.prototype.tostring\nif (NOT_GENERIC || INCORRECT_NAME) {\n defineBuiltIn(RegExp.prototype, TO_STRING, function toString() {\n var R = anObject(this);\n var pattern = $toString(R.source);\n var flags = $toString(getRegExpFlags(R));\n return '/' + pattern + '/' + flags;\n }, { unsafe: true });\n}\n","/**\n * The SavedData functions use localStorage and sessionStorage, with a cookie fallback.\n *\n * @class SavedData\n */\nexport class SavedData {\n\n /**\n * Constructor for IndexedDB work\n */\n constructor(dbName = '') {\n this.db = null;\n this.dbName = dbName;\n }\n /**\n * Remove a saved variable by name.\n * @method remove\n * @static\n * @param {String} name The name of the value to remove\n */\n static remove(name) {\n localStorage.removeItem(name);\n sessionStorage.removeItem(name);\n }\n\n /**\n * Save a variable.\n * @method write\n * @static\n * @param {string} name The name of the value to save\n * @param {string} value The value to save. This will be run through JSON.stringify().\n * @param {boolean} [tempOnly=false] If the value should be saved only in the current browser session.\n */\n static write(name, value, tempOnly = false) {\n\n return tempOnly\n ? sessionStorage.setItem(\n name,\n JSON.stringify('function' === typeof value ? value() : value)\n )\n : localStorage.setItem(\n name,\n JSON.stringify('function' === typeof value ? value() : value)\n );\n }\n\n /**\n * Read the value of a saved variable\n * @method read\n * @static\n * @param {String} name The name of the variable\n * @return {*} The value (run through `JSON.parse()`) or null if it doesn't exist\n */\n static read(name) {\n const value = localStorage.getItem(name) || sessionStorage.getItem(name);\n\n if ('string' === typeof value) {\n try {\n return JSON.parse(value);\n } catch (err) {\n return value;\n }\n } else {\n return value;\n }\n }\n\n /**\n * Open a connection with the IDB Database and optionally add or delete\n * Indexes and stores\n *\n * @param {string} dbName The name of your IndexedDB database\n * @param {string} dbVersion The version number of the database. Additions and deletions will be ignored if lower than current version number\n * @param {JSON} additions Any additions to the structure of the database\n * @param {array} additions.stores Any stores to be added into the database syntax: {storeName: '[name]', options: {[optionally add options]}}\n * @param {array} additions.indexes Any Indexes to be added to the database syntax: {storeName: '[name]', options: {[optionally add options]}}\n */\n IDBOpen( dbName, dbVersion = null, additions = {}, deletions = {}, callback ) {\n const request = dbVersion ? indexedDB.open(dbName, dbVersion) : indexedDB.open(dbName);\n\n request.onsuccess = e => {\n // Database successfully opened. This will run along with onupgradeneeded\n this.db = e.target.result;\n\n if (this.db.version == dbVersion | dbVersion == null) {\n callback({result: 'Success: IDBOpen', success: true});\n }\n };\n\n request.onerror = () => {\n callback({result: request.error.toString(), success: false});\n };\n\n // on upgrade needed fires only if the dbVersion is higher than the current version number\n request.onupgradeneeded = e => {\n // Ensure the proper database object is stored\n this.db = e.target.result;\n\n if (additions != null) {\n if (additions.stores) {\n additions.stores.forEach(store => {\n this.db.createObjectStore(store.storeName, store.options);\n });\n }\n if (additions.indexes != null) {\n additions.indexes.forEach(index => {\n // Add indexes last to avoid adding an index to a store that has yet to be created\n // Open a transaction returning a store object\n const storeObject = request.transaction.objectStore(index.storeName);\n storeObject.createIndex(index.indexName, index.keyPath, index.options);\n });\n }\n }\n\n if (deletions != null) {\n if (deletions.indexes != null) {\n // delete indexes first to avoid deleting an index to a store that has already to been deleted\n deletions.indexes.forEach((index) => {\n // Open a transaction returning a store object\n const storeObject = request.transaction.objectStore(index.storeName);\n storeObject.deleteIndex(index.indexName);\n });\n }\n if (deletions.stores) {\n deletions.stores.forEach((store) => {\n this.db.deleteObjectStore(store.storeName);\n });\n }\n }\n callback({result: 'Success: IDBOpen onupgradeneeded ran', success: true});\n };\n }\n\n /**\n * Delete a database and all records, stores, and indexes associated\n * @param {string} dbName Name of the database to delete\n * @param {object} options Optionally pass in options\n * @param {function} callback The callback to be run on success or error. One value will be passed into this function\n */\n IDBDeleteDB(dbName, options = null, callback = {}) {\n const request = options != null ? indexedDB.deleteDatabase(dbName, options): indexedDB.deleteDatabase(dbName);\n\n request.onsuccess = (e) => {\n callback({result: 'Success: Database Deleted, returned: ' + e.result, success: true});\n };\n request.onerror = () => {\n callback({result: request.error.toString(), success: false});\n };\n\n\n }\n\n /**\n * Add a record to a given store\n * @param {string} storeName The name of the store from which the record will be updated\n * @param {string} key the key of the record to be updated\n * @param {string} value The value for the record with the given key to be updated\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBAdd(storeName, value, key, callback) {\n if ( !this.db && this.dbName != '') {\n this.IDBOpen(this.dbName);\n }\n\n const tx = this.db.transaction(storeName, 'readwrite');\n tx.onerror = () => callback({result: tx.error != null ? tx.error.toString() : 'Aborted: No error given, was the record already added?', success: false});\n tx.onabort = () => callback({result: tx.error != null ? tx.error.toString() : 'Aborted: No error given, was the record already added?', success: false});\n\n tx.oncomplete = () => callback({result: 'Success: Record Added', success: true});\n const store = tx.objectStore(storeName);\n store.add(value, key);\n }\n\n /**\n * Update a record in a given store\n * @param {string} storeName The name of the store from which the record will be updated\n * @param {string} key the key of the record to be updated\n * @param {string | object} value The altered object to be updated from the given store\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBUpdate (storeName, key, value, callback) {\n if ( !this.db && this.dbName != '') {\n this.IDBOpen(this.dbName);\n }\n\n const tx = this.db.transaction(storeName, 'readwrite');\n const store = tx.objectStore(storeName);\n\n const updateRequest = store.put(value, key);\n\n updateRequest.onsuccess = () => {\n callback({result: 'Success: Record Updated', success: true});\n };\n\n updateRequest.onerror = () => callback({result: updateRequest.error.toString(), success: false});\n }\n\n /**\n * Delete a given record within a given store\n * @param {string} storeName The name of the store from which the record will be removed\n * @param {string} key the key of the record to be removed\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBRemove(storeName, key, callback) {\n if ( !this.db && this.dbName != '') {\n this.IDBOpen(this.dbName);\n }\n\n const tx = this.db.transaction(storeName, 'readwrite');\n tx.onerror = () => callback({result: this.db.error.toString(), success: false});\n const store = tx.objectStore(storeName);\n store.delete(key);\n\n tx.oncomplete = () => callback({result: 'Removed Successfully', success: true});\n\n }\n\n /**\n * Return a record from a given store with a given key\n * @param {string} storeName the name of the store to read from\n * @param {string} key The key for the record in the given store\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBRead(storeName, key, callback) {\n // Open transaction with a store\n const tx = this.db.transaction(storeName, 'readonly');\n // Get the store object from the transaction\n const store = tx.objectStore(storeName);\n\n tx.onerror = () => callback({result: this.db.error.toString(), success: false});\n\n const readRequest = store.get(key);\n\n readRequest.onsuccess = () => {\n callback({result: readRequest.result, success: readRequest.result != undefined ? true : false});\n };\n\n }\n\n /**\n * Get all keys with given index\n * @param {string} storeName the name of the store to be read from\n * @param {string} indexName the name of the index to be read from\n * @param {string} query Optionally give a keyRange of records to return\n * @param {string} count Optionally give a max limit on records to be returned\n * @param {function} callback The method to call on success or failure. A single value will be passed in as a parameter\n */\n IDBGetIndexKeys (storeName, indexName, query = null, count = null, callback = {}) {\n // Open transaction with a store\n const tx = this.db.transaction(storeName, 'readonly');\n // Get the store object from the transaction\n const store = tx.objectStore(storeName);\n\n let index;\n\n tx.onerror = () => callback({result: this.db.error.toString(), success: false});\n\n if (query && count) {\n index = store.index(indexName, query, count);\n } else if (query) {\n index = store.index(indexName, query);\n } else {\n index = store.index(indexName);\n }\n\n const getAllKeysRequest = index.getAllKeys();\n\n\n getAllKeysRequest.onsuccess = function(e) {\n callback({result : e.result, success: true});\n };\n }\n\n /**\n * Get all records from a store\n * @param {string} storeName The store to get all records from\n * @param {integer} count Optionally the count of records to return\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBReadAll(storeName, count, callback) {\n // Open transaction with a store\n const tx = this.db.transaction(storeName, 'readonly');\n // Get the store object from the transaction\n const store = tx.objectStore(storeName);\n\n const readRequest = count != null ? store.getAll(null, count) : store.getAll();\n\n // const readRequest = store.getAll();\n\n tx.onerror = () => callback({result: tx.error.toString(), success: false});\n\n\n readRequest.onsuccess = () => {\n callback({result: readRequest.result, success: readRequest.result != undefined ? true : false});\n };\n }\n\n /**\n * Get the version number of a given database. This will create a database if it doesn't exist.\n * Do not call this after opening a connection with the database\n * @param {string} dbName The name of the database for which the version will be returned\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBGetVersion(dbName, callback) {\n // Open the database\n const dBOpenRequest = window.indexedDB.open(dbName);\n\n // these two event handlers act on the database\n // being opened. successfully, or not\n dBOpenRequest.onerror = function() {\n callback({result: dBOpenRequest.error.toString(), success: false});\n };\n\n dBOpenRequest.onsuccess = function() {\n const db = dBOpenRequest.result;\n callback({result: db.version, success: true});\n };\n }\n\n /**\n * Closes the connection to the database if open\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBClose(callback) {\n if ( this.db ) {\n this.db.close();\n callback({result: 'Success: Closed Database Connection', success: true});\n }\n }\n\n}\n","/* eslint-disable no-unused-vars */\nimport { SavedData } from '../SavedData';\nimport { Container } from '../Container';\n\n/**\n *\n *\n * @export\n * @class BasePlugin\n * @property {Bellhop} client\n * @property {string} name\n */\nexport class BasePlugin {\n /**\n *Creates an instance of BasePlugin.\n * @param {string} name\n * @memberof BasePlugin\n */\n constructor(name) {\n this.name = name;\n this.client = null;\n }\n\n /**\n *\n * @param {Container} [container]\n * @memberof BasePlugin\n * @returns {Promise}\n */\n async preload({ client }) {\n this.client = client;\n }\n\n /**\n *\n * @memberof BasePlugin\n */\n start() {\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * @param {Container} [_]\n * @memberof BasePlugin\n */\n init(_) { }\n\n /**\n *\n *\n * @param {string} prop\n * @param {any} value\n * @memberof BasePlugin\n */\n sendProperty(prop, value) {\n SavedData.write(prop, value);\n this.client.send(prop, value);\n }\n\n\n /**\n *\n * @param {Container} [_]\n * @memberof BasePlugin\n */\n sendAllProperties(_) { }\n\n /**\n *\n * @param {string} warningText\n * @memberof BasePlugin\n */\n warn(warningText) {\n console.warn(`[SpringRollContainer] ${this.name}: ${warningText}`);\n }\n}\n","/* eslint-disable no-unused-vars */\nimport { BasePlugin } from './BasePlugin';\nimport { Container } from '../Container';\n\n/**\n *\n *\n * @export\n * @class ButtonPlugin\n * @extends {BasePlugin}\n */\nexport class ButtonPlugin extends BasePlugin {\n /**\n *Creates an instance of ButtonPlugin.\n * @param {string} name\n *\n * @memberof ButtonPlugin\n */\n constructor(name) {\n super(name);\n this.sendMutes = false;\n }\n\n /**\n * @memberof ButtonPlugin\n * @param {Container} [container]\n */\n init(container) {\n // eslint-disable-line no-unused-vars\n this.sendMutes = true;\n }\n\n /**\n *\n * Applies the disabled class to the provided element\n * @param {HTMLButtonElement | Element} button\n * @memberof ButtonPlugin\n */\n _disableButton(button) {\n if (button instanceof HTMLButtonElement) {\n button.classList.remove('enabled');\n button.classList.add('disabled');\n }\n }\n\n /**\n *\n *\n * @memberof ButtonPlugin\n */\n reset() {\n this.sendMutes = false;\n }\n\n /**\n *\n *\n * @param {string} prop\n * @param {Element} button\n * @param {Boolean} muted\n * @memberof ButtonPlugin\n */\n _setMuteProp(prop, button, muted) {\n if (Array.isArray(button)) {\n button.forEach(b => this.changeMutedState(b, muted));\n } else {\n this.changeMutedState(button, muted);\n }\n\n this.sendProperty(prop, muted);\n }\n\n /**\n *\n *\n * @param {Element} button\n * @param {Boolean} muted\n * @returns\n * @memberof ButtonPlugin\n */\n changeMutedState(button, muted = false) {\n //most times button will be a Button class rather than an HTMLElement\n //But just in case the Button ui-element is not being used\n const htmlButton = button.button ? button.button : button;\n\n if (!(htmlButton instanceof HTMLElement)) {\n return;\n }\n\n htmlButton.classList.remove('unmuted');\n htmlButton.classList.remove('muted');\n htmlButton.classList.add(muted ? 'muted' : 'unmuted');\n }\n}\n","var isObject = require('../internals/is-object');\nvar classof = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar MATCH = wellKnownSymbol('match');\n\n// `IsRegExp` abstract operation\n// https://tc39.es/ecma262/#sec-isregexp\nmodule.exports = function (it) {\n var isRegExp;\n return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) == 'RegExp');\n};\n","var isRegExp = require('../internals/is-regexp');\n\nvar $TypeError = TypeError;\n\nmodule.exports = function (it) {\n if (isRegExp(it)) {\n throw $TypeError(\"The method doesn't accept regular expressions\");\n } return it;\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar MATCH = wellKnownSymbol('match');\n\nmodule.exports = function (METHOD_NAME) {\n var regexp = /./;\n try {\n '/./'[METHOD_NAME](regexp);\n } catch (error1) {\n try {\n regexp[MATCH] = false;\n return '/./'[METHOD_NAME](regexp);\n } catch (error2) { /* empty */ }\n } return false;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar notARegExp = require('../internals/not-a-regexp');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar toString = require('../internals/to-string');\nvar correctIsRegExpLogic = require('../internals/correct-is-regexp-logic');\n\nvar stringIndexOf = uncurryThis(''.indexOf);\n\n// `String.prototype.includes` method\n// https://tc39.es/ecma262/#sec-string.prototype.includes\n$({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {\n includes: function includes(searchString /* , position = 0 */) {\n return !!~stringIndexOf(\n toString(requireObjectCoercible(this)),\n toString(notARegExp(searchString)),\n arguments.length > 1 ? arguments[1] : undefined\n );\n }\n});\n","var toAbsoluteIndex = require('../internals/to-absolute-index');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar createProperty = require('../internals/create-property');\n\nvar $Array = Array;\nvar max = Math.max;\n\nmodule.exports = function (O, start, end) {\n var length = lengthOfArrayLike(O);\n var k = toAbsoluteIndex(start, length);\n var fin = toAbsoluteIndex(end === undefined ? length : end, length);\n var result = $Array(max(fin - k, 0));\n for (var n = 0; k < fin; k++, n++) createProperty(result, n, O[k]);\n result.length = n;\n return result;\n};\n","/* eslint-disable es/no-object-getownpropertynames -- safe */\nvar classof = require('../internals/classof-raw');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar $getOwnPropertyNames = require('../internals/object-get-own-property-names').f;\nvar arraySlice = require('../internals/array-slice-simple');\n\nvar windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames\n ? Object.getOwnPropertyNames(window) : [];\n\nvar getWindowNames = function (it) {\n try {\n return $getOwnPropertyNames(it);\n } catch (error) {\n return arraySlice(windowNames);\n }\n};\n\n// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nmodule.exports.f = function getOwnPropertyNames(it) {\n return windowNames && classof(it) == 'Window'\n ? getWindowNames(it)\n : $getOwnPropertyNames(toIndexedObject(it));\n};\n","// FF26- bug: ArrayBuffers are non-extensible, but Object.isExtensible does not report it\nvar fails = require('../internals/fails');\n\nmodule.exports = fails(function () {\n if (typeof ArrayBuffer == 'function') {\n var buffer = new ArrayBuffer(8);\n // eslint-disable-next-line es/no-object-isextensible, es/no-object-defineproperty -- safe\n if (Object.isExtensible(buffer)) Object.defineProperty(buffer, 'a', { value: 8 });\n }\n});\n","var fails = require('../internals/fails');\nvar isObject = require('../internals/is-object');\nvar classof = require('../internals/classof-raw');\nvar ARRAY_BUFFER_NON_EXTENSIBLE = require('../internals/array-buffer-non-extensible');\n\n// eslint-disable-next-line es/no-object-isextensible -- safe\nvar $isExtensible = Object.isExtensible;\nvar FAILS_ON_PRIMITIVES = fails(function () { $isExtensible(1); });\n\n// `Object.isExtensible` method\n// https://tc39.es/ecma262/#sec-object.isextensible\nmodule.exports = (FAILS_ON_PRIMITIVES || ARRAY_BUFFER_NON_EXTENSIBLE) ? function isExtensible(it) {\n if (!isObject(it)) return false;\n if (ARRAY_BUFFER_NON_EXTENSIBLE && classof(it) == 'ArrayBuffer') return false;\n return $isExtensible ? $isExtensible(it) : true;\n} : $isExtensible;\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-object-isextensible, es/no-object-preventextensions -- required for testing\n return Object.isExtensible(Object.preventExtensions({}));\n});\n","var $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar hiddenKeys = require('../internals/hidden-keys');\nvar isObject = require('../internals/is-object');\nvar hasOwn = require('../internals/has-own-property');\nvar defineProperty = require('../internals/object-define-property').f;\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertyNamesExternalModule = require('../internals/object-get-own-property-names-external');\nvar isExtensible = require('../internals/object-is-extensible');\nvar uid = require('../internals/uid');\nvar FREEZING = require('../internals/freezing');\n\nvar REQUIRED = false;\nvar METADATA = uid('meta');\nvar id = 0;\n\nvar setMetadata = function (it) {\n defineProperty(it, METADATA, { value: {\n objectID: 'O' + id++, // object ID\n weakData: {} // weak collections IDs\n } });\n};\n\nvar fastKey = function (it, create) {\n // return a primitive with prefix\n if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if (!hasOwn(it, METADATA)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return 'F';\n // not necessary to add metadata\n if (!create) return 'E';\n // add missing metadata\n setMetadata(it);\n // return object ID\n } return it[METADATA].objectID;\n};\n\nvar getWeakData = function (it, create) {\n if (!hasOwn(it, METADATA)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return true;\n // not necessary to add metadata\n if (!create) return false;\n // add missing metadata\n setMetadata(it);\n // return the store of weak collections IDs\n } return it[METADATA].weakData;\n};\n\n// add metadata on freeze-family methods calling\nvar onFreeze = function (it) {\n if (FREEZING && REQUIRED && isExtensible(it) && !hasOwn(it, METADATA)) setMetadata(it);\n return it;\n};\n\nvar enable = function () {\n meta.enable = function () { /* empty */ };\n REQUIRED = true;\n var getOwnPropertyNames = getOwnPropertyNamesModule.f;\n var splice = uncurryThis([].splice);\n var test = {};\n test[METADATA] = 1;\n\n // prevent exposing of metadata key\n if (getOwnPropertyNames(test).length) {\n getOwnPropertyNamesModule.f = function (it) {\n var result = getOwnPropertyNames(it);\n for (var i = 0, length = result.length; i < length; i++) {\n if (result[i] === METADATA) {\n splice(result, i, 1);\n break;\n }\n } return result;\n };\n\n $({ target: 'Object', stat: true, forced: true }, {\n getOwnPropertyNames: getOwnPropertyNamesExternalModule.f\n });\n }\n};\n\nvar meta = module.exports = {\n enable: enable,\n fastKey: fastKey,\n getWeakData: getWeakData,\n onFreeze: onFreeze\n};\n\nhiddenKeys[METADATA] = true;\n","var isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\n\n// makes subclassing work correct for wrapped built-ins\nmodule.exports = function ($this, dummy, Wrapper) {\n var NewTarget, NewTargetPrototype;\n if (\n // it can work only with native `setPrototypeOf`\n setPrototypeOf &&\n // we haven't completely correct pre-ES6 way for getting `new.target`, so use this\n isCallable(NewTarget = dummy.constructor) &&\n NewTarget !== Wrapper &&\n isObject(NewTargetPrototype = NewTarget.prototype) &&\n NewTargetPrototype !== Wrapper.prototype\n ) setPrototypeOf($this, NewTargetPrototype);\n return $this;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isForced = require('../internals/is-forced');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar InternalMetadataModule = require('../internals/internal-metadata');\nvar iterate = require('../internals/iterate');\nvar anInstance = require('../internals/an-instance');\nvar isCallable = require('../internals/is-callable');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar isObject = require('../internals/is-object');\nvar fails = require('../internals/fails');\nvar checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar inheritIfRequired = require('../internals/inherit-if-required');\n\nmodule.exports = function (CONSTRUCTOR_NAME, wrapper, common) {\n var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1;\n var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1;\n var ADDER = IS_MAP ? 'set' : 'add';\n var NativeConstructor = global[CONSTRUCTOR_NAME];\n var NativePrototype = NativeConstructor && NativeConstructor.prototype;\n var Constructor = NativeConstructor;\n var exported = {};\n\n var fixMethod = function (KEY) {\n var uncurriedNativeMethod = uncurryThis(NativePrototype[KEY]);\n defineBuiltIn(NativePrototype, KEY,\n KEY == 'add' ? function add(value) {\n uncurriedNativeMethod(this, value === 0 ? 0 : value);\n return this;\n } : KEY == 'delete' ? function (key) {\n return IS_WEAK && !isObject(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);\n } : KEY == 'get' ? function get(key) {\n return IS_WEAK && !isObject(key) ? undefined : uncurriedNativeMethod(this, key === 0 ? 0 : key);\n } : KEY == 'has' ? function has(key) {\n return IS_WEAK && !isObject(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);\n } : function set(key, value) {\n uncurriedNativeMethod(this, key === 0 ? 0 : key, value);\n return this;\n }\n );\n };\n\n var REPLACE = isForced(\n CONSTRUCTOR_NAME,\n !isCallable(NativeConstructor) || !(IS_WEAK || NativePrototype.forEach && !fails(function () {\n new NativeConstructor().entries().next();\n }))\n );\n\n if (REPLACE) {\n // create collection constructor\n Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER);\n InternalMetadataModule.enable();\n } else if (isForced(CONSTRUCTOR_NAME, true)) {\n var instance = new Constructor();\n // early implementations not supports chaining\n var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance;\n // V8 ~ Chromium 40- weak-collections throws on primitives, but should return false\n var THROWS_ON_PRIMITIVES = fails(function () { instance.has(1); });\n // most early implementations doesn't supports iterables, most modern - not close it correctly\n // eslint-disable-next-line no-new -- required for testing\n var ACCEPT_ITERABLES = checkCorrectnessOfIteration(function (iterable) { new NativeConstructor(iterable); });\n // for early implementations -0 and +0 not the same\n var BUGGY_ZERO = !IS_WEAK && fails(function () {\n // V8 ~ Chromium 42- fails only with 5+ elements\n var $instance = new NativeConstructor();\n var index = 5;\n while (index--) $instance[ADDER](index, index);\n return !$instance.has(-0);\n });\n\n if (!ACCEPT_ITERABLES) {\n Constructor = wrapper(function (dummy, iterable) {\n anInstance(dummy, NativePrototype);\n var that = inheritIfRequired(new NativeConstructor(), dummy, Constructor);\n if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });\n return that;\n });\n Constructor.prototype = NativePrototype;\n NativePrototype.constructor = Constructor;\n }\n\n if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) {\n fixMethod('delete');\n fixMethod('has');\n IS_MAP && fixMethod('get');\n }\n\n if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER);\n\n // weak collections should not contains .clear method\n if (IS_WEAK && NativePrototype.clear) delete NativePrototype.clear;\n }\n\n exported[CONSTRUCTOR_NAME] = Constructor;\n $({ global: true, constructor: true, forced: Constructor != NativeConstructor }, exported);\n\n setToStringTag(Constructor, CONSTRUCTOR_NAME);\n\n if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);\n\n return Constructor;\n};\n","var defineBuiltIn = require('../internals/define-built-in');\n\nmodule.exports = function (target, src, options) {\n for (var key in src) defineBuiltIn(target, key, src[key], options);\n return target;\n};\n","'use strict';\nvar create = require('../internals/object-create');\nvar defineBuiltInAccessor = require('../internals/define-built-in-accessor');\nvar defineBuiltIns = require('../internals/define-built-ins');\nvar bind = require('../internals/function-bind-context');\nvar anInstance = require('../internals/an-instance');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar iterate = require('../internals/iterate');\nvar defineIterator = require('../internals/iterator-define');\nvar createIterResultObject = require('../internals/create-iter-result-object');\nvar setSpecies = require('../internals/set-species');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar fastKey = require('../internals/internal-metadata').fastKey;\nvar InternalStateModule = require('../internals/internal-state');\n\nvar setInternalState = InternalStateModule.set;\nvar internalStateGetterFor = InternalStateModule.getterFor;\n\nmodule.exports = {\n getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {\n var Constructor = wrapper(function (that, iterable) {\n anInstance(that, Prototype);\n setInternalState(that, {\n type: CONSTRUCTOR_NAME,\n index: create(null),\n first: undefined,\n last: undefined,\n size: 0\n });\n if (!DESCRIPTORS) that.size = 0;\n if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });\n });\n\n var Prototype = Constructor.prototype;\n\n var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);\n\n var define = function (that, key, value) {\n var state = getInternalState(that);\n var entry = getEntry(that, key);\n var previous, index;\n // change existing entry\n if (entry) {\n entry.value = value;\n // create new entry\n } else {\n state.last = entry = {\n index: index = fastKey(key, true),\n key: key,\n value: value,\n previous: previous = state.last,\n next: undefined,\n removed: false\n };\n if (!state.first) state.first = entry;\n if (previous) previous.next = entry;\n if (DESCRIPTORS) state.size++;\n else that.size++;\n // add to index\n if (index !== 'F') state.index[index] = entry;\n } return that;\n };\n\n var getEntry = function (that, key) {\n var state = getInternalState(that);\n // fast case\n var index = fastKey(key);\n var entry;\n if (index !== 'F') return state.index[index];\n // frozen object case\n for (entry = state.first; entry; entry = entry.next) {\n if (entry.key == key) return entry;\n }\n };\n\n defineBuiltIns(Prototype, {\n // `{ Map, Set }.prototype.clear()` methods\n // https://tc39.es/ecma262/#sec-map.prototype.clear\n // https://tc39.es/ecma262/#sec-set.prototype.clear\n clear: function clear() {\n var that = this;\n var state = getInternalState(that);\n var data = state.index;\n var entry = state.first;\n while (entry) {\n entry.removed = true;\n if (entry.previous) entry.previous = entry.previous.next = undefined;\n delete data[entry.index];\n entry = entry.next;\n }\n state.first = state.last = undefined;\n if (DESCRIPTORS) state.size = 0;\n else that.size = 0;\n },\n // `{ Map, Set }.prototype.delete(key)` methods\n // https://tc39.es/ecma262/#sec-map.prototype.delete\n // https://tc39.es/ecma262/#sec-set.prototype.delete\n 'delete': function (key) {\n var that = this;\n var state = getInternalState(that);\n var entry = getEntry(that, key);\n if (entry) {\n var next = entry.next;\n var prev = entry.previous;\n delete state.index[entry.index];\n entry.removed = true;\n if (prev) prev.next = next;\n if (next) next.previous = prev;\n if (state.first == entry) state.first = next;\n if (state.last == entry) state.last = prev;\n if (DESCRIPTORS) state.size--;\n else that.size--;\n } return !!entry;\n },\n // `{ Map, Set }.prototype.forEach(callbackfn, thisArg = undefined)` methods\n // https://tc39.es/ecma262/#sec-map.prototype.foreach\n // https://tc39.es/ecma262/#sec-set.prototype.foreach\n forEach: function forEach(callbackfn /* , that = undefined */) {\n var state = getInternalState(this);\n var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n var entry;\n while (entry = entry ? entry.next : state.first) {\n boundFunction(entry.value, entry.key, this);\n // revert to the last existing entry\n while (entry && entry.removed) entry = entry.previous;\n }\n },\n // `{ Map, Set}.prototype.has(key)` methods\n // https://tc39.es/ecma262/#sec-map.prototype.has\n // https://tc39.es/ecma262/#sec-set.prototype.has\n has: function has(key) {\n return !!getEntry(this, key);\n }\n });\n\n defineBuiltIns(Prototype, IS_MAP ? {\n // `Map.prototype.get(key)` method\n // https://tc39.es/ecma262/#sec-map.prototype.get\n get: function get(key) {\n var entry = getEntry(this, key);\n return entry && entry.value;\n },\n // `Map.prototype.set(key, value)` method\n // https://tc39.es/ecma262/#sec-map.prototype.set\n set: function set(key, value) {\n return define(this, key === 0 ? 0 : key, value);\n }\n } : {\n // `Set.prototype.add(value)` method\n // https://tc39.es/ecma262/#sec-set.prototype.add\n add: function add(value) {\n return define(this, value = value === 0 ? 0 : value, value);\n }\n });\n if (DESCRIPTORS) defineBuiltInAccessor(Prototype, 'size', {\n configurable: true,\n get: function () {\n return getInternalState(this).size;\n }\n });\n return Constructor;\n },\n setStrong: function (Constructor, CONSTRUCTOR_NAME, IS_MAP) {\n var ITERATOR_NAME = CONSTRUCTOR_NAME + ' Iterator';\n var getInternalCollectionState = internalStateGetterFor(CONSTRUCTOR_NAME);\n var getInternalIteratorState = internalStateGetterFor(ITERATOR_NAME);\n // `{ Map, Set }.prototype.{ keys, values, entries, @@iterator }()` methods\n // https://tc39.es/ecma262/#sec-map.prototype.entries\n // https://tc39.es/ecma262/#sec-map.prototype.keys\n // https://tc39.es/ecma262/#sec-map.prototype.values\n // https://tc39.es/ecma262/#sec-map.prototype-@@iterator\n // https://tc39.es/ecma262/#sec-set.prototype.entries\n // https://tc39.es/ecma262/#sec-set.prototype.keys\n // https://tc39.es/ecma262/#sec-set.prototype.values\n // https://tc39.es/ecma262/#sec-set.prototype-@@iterator\n defineIterator(Constructor, CONSTRUCTOR_NAME, function (iterated, kind) {\n setInternalState(this, {\n type: ITERATOR_NAME,\n target: iterated,\n state: getInternalCollectionState(iterated),\n kind: kind,\n last: undefined\n });\n }, function () {\n var state = getInternalIteratorState(this);\n var kind = state.kind;\n var entry = state.last;\n // revert to the last existing entry\n while (entry && entry.removed) entry = entry.previous;\n // get next entry\n if (!state.target || !(state.last = entry = entry ? entry.next : state.state.first)) {\n // or finish the iteration\n state.target = undefined;\n return createIterResultObject(undefined, true);\n }\n // return step by kind\n if (kind == 'keys') return createIterResultObject(entry.key, false);\n if (kind == 'values') return createIterResultObject(entry.value, false);\n return createIterResultObject([entry.key, entry.value], false);\n }, IS_MAP ? 'entries' : 'values', !IS_MAP, true);\n\n // `{ Map, Set }.prototype[@@species]` accessors\n // https://tc39.es/ecma262/#sec-get-map-@@species\n // https://tc39.es/ecma262/#sec-get-set-@@species\n setSpecies(CONSTRUCTOR_NAME);\n }\n};\n","'use strict';\nvar collection = require('../internals/collection');\nvar collectionStrong = require('../internals/collection-strong');\n\n// `Set` constructor\n// https://tc39.es/ecma262/#sec-set-objects\ncollection('Set', function (init) {\n return function Set() { return init(this, arguments.length ? arguments[0] : undefined); };\n}, collectionStrong);\n","var $ = require('../internals/export');\nvar toObject = require('../internals/to-object');\nvar nativeKeys = require('../internals/object-keys');\nvar fails = require('../internals/fails');\n\nvar FAILS_ON_PRIMITIVES = fails(function () { nativeKeys(1); });\n\n// `Object.keys` method\n// https://tc39.es/ecma262/#sec-object.keys\n$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {\n keys: function keys(it) {\n return nativeKeys(toObject(it));\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $map = require('../internals/array-iteration').map;\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('map');\n\n// `Array.prototype.map` method\n// https://tc39.es/ecma262/#sec-array.prototype.map\n// with adding support of @@species\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {\n map: function map(callbackfn /* , thisArg */) {\n return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n","var DESCRIPTORS = require('../internals/descriptors');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar objectKeys = require('../internals/object-keys');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar $propertyIsEnumerable = require('../internals/object-property-is-enumerable').f;\n\nvar propertyIsEnumerable = uncurryThis($propertyIsEnumerable);\nvar push = uncurryThis([].push);\n\n// `Object.{ entries, values }` methods implementation\nvar createMethod = function (TO_ENTRIES) {\n return function (it) {\n var O = toIndexedObject(it);\n var keys = objectKeys(O);\n var length = keys.length;\n var i = 0;\n var result = [];\n var key;\n while (length > i) {\n key = keys[i++];\n if (!DESCRIPTORS || propertyIsEnumerable(O, key)) {\n push(result, TO_ENTRIES ? [key, O[key]] : O[key]);\n }\n }\n return result;\n };\n};\n\nmodule.exports = {\n // `Object.entries` method\n // https://tc39.es/ecma262/#sec-object.entries\n entries: createMethod(true),\n // `Object.values` method\n // https://tc39.es/ecma262/#sec-object.values\n values: createMethod(false)\n};\n","var $ = require('../internals/export');\nvar $values = require('../internals/object-to-array').values;\n\n// `Object.values` method\n// https://tc39.es/ecma262/#sec-object.values\n$({ target: 'Object', stat: true }, {\n values: function values(O) {\n return $values(O);\n }\n});\n","import { BasePlugin } from '../base-plugins/BasePlugin';\n\n/**\n * @export\n * @class RadioGroup\n * @property {string} controlName\n * @property {string} featureName\n * @property {string} radioElements\n * @property {string} defaultValue\n */\nexport class RadioGroup extends BasePlugin {\n /**\n * creates an instance of RadioGroup\n * @constructor\n * @param {string} selector selector string for the radio group\n * @param {string} controlName the name of the control (used for warning logging only)\n * @param {string} [featureName='captionStyles'] the feature name used by Springroll. Defaults to captionStyles\n * @param {string} defaultValue the value attribute of the radio button that should be selected by default\n * @param {string} pluginName name of the plugin that instantiated the RadioGroup. Used for logging warnings\n * @memberof RadioGroupPlugin\n */\n constructor({selector, controlName, featureName = 'captionStyles', defaultValue, pluginName}) {\n super(pluginName);\n this.controlName = controlName;\n this.featureName = featureName;\n this.radioElements = document.querySelectorAll(selector);\n this.defaultValue = defaultValue;\n\n this.radioGroup = {};\n\n if (this.radioElements.length <= 0) {\n this.warn(`${this.controlName} RadioGroup found no HTMLElements with selector: ${selector}`);\n return;\n }\n\n this.radioElements.forEach(radio => {\n if (radio.type !== 'radio') {\n this.warn(`${this.controlName} was provided a non Radio Button element with selector: ${selector}`);\n return;\n }\n radio.value = radio.value.toLowerCase();\n\n this.radioGroup[radio.value] = radio;\n });\n\n if (!this.radioGroup[this.defaultValue]) {\n this.warn(`${this.controlName} RadioGroup for selector: ${selector} does not have a radio button with value ${this.defaultValue} to use as default value. Using first element as default`);\n this.defaultValue = this.radioElements[0].value.toLowerCase();\n }\n\n this.radioGroup[this.defaultValue].checked = true;\n }\n\n /**\n * @param {string[]} valuesArray Array of acceptable values to check against the radio group.\n * @return {boolean}\n * @memberof RadioGroup\n */\n hasOnly(valuesArray) {\n\n for (const key in this.radioGroup) {\n if (!valuesArray.includes(this.radioGroup[key].value)) {\n this.warn(`${this.controlName} radio button value: ${this.radioGroup[key].value} is not an accepted value. Skipping radio group`);\n return false;\n }\n }\n\n return true;\n }\n\n /**\n * @return {boolean}\n * @memberof RadioGroup\n */\n hasDuplicateValues() {\n return this.values.length !== [...new Set(this.values)].length;\n }\n\n /**\n * Adds change listeners to the radio buttons using the given callback function\n * @memberof RadioGroup\n * @param {Function} callBack event to fire on change\n */\n enableRadioEvents(callBack) {\n if (!this.radioGroup.length <= 0) {\n return;\n }\n\n const event = callBack;\n for (const radio in this.radioGroup) {\n this.radioGroup[radio].addEventListener('change', event);\n }\n }\n\n /**\n * removes the event listeners from the RadioGroup\n * @memberof RadioGroup\n * @param {Function} callBack event to fire on change\n */\n disableRadioEvents(callBack) {\n if (!this.radioGroup.length <= 0) {\n return;\n }\n for (const radio in this.radioGroup) {\n this.radioGroup[radio].removeEventListener('change', callBack);\n }\n }\n\n /**\n * enables display of the Radio buttons if the correct feature is present in the features list\n * @memberof RadioGroup\n * @param {object} data Object containing which features are enabled\n */\n displayRadios(data) {\n if (this.radioGroup.length <= 0 && data[this.featureName]) {\n this.warn(`${this.controlName} was not provided a valid input element or selector but '${this.featureName}' was included as a game feature`);\n return;\n }\n\n if (this.radioGroup.length <= 0) {\n return;\n }\n\n if (data[this.featureName]) {\n return;\n }\n\n for (const radio in this.radioGroup) {\n this.radioGroup[radio].style.display = 'none';\n }\n }\n\n /**\n * Reset the radio button states\n * @memberof RadioGroup\n */\n resetState() {\n this.radioGroup[this.defaultValue].checked = true;\n }\n\n /**\n * @readonly\n * @returns {number}\n * @memberof RadioGroup\n */\n get length() {\n return Object.keys(this.radioGroup).length;\n }\n\n /**\n * @readonly\n * @returns {number}\n * @memberof RadioGroup\n */\n get values() {\n return Object.values(this.radioGroup).map(radio => radio.value);\n }\n}\n","import { BasePlugin } from './BasePlugin';\nimport { RadioGroup } from '../ui-elements/RadioGroup';\n\n/**\n *\n *\n * @export\n * @class RadioGroupPlugin\n */\nexport class RadioGroupPlugin extends BasePlugin {\n /**\n *\n *Creates an instance of RadioGroupPlugin.\n * @constructor\n * @memberof RadioGroupPlugin\n * @param {string} name\n */\n constructor(cssSelector, name, {supportedValues, initialValue, controlName, featureName, radioCount}) {\n super(name);\n this.selectors = cssSelector ? cssSelector.split(',') : [];\n this.supportedValues = supportedValues;\n this.initialValue = supportedValues.includes(initialValue) ? initialValue : supportedValues[0];\n this.controlName = controlName;\n this.featureName = featureName;\n this.radioCount = radioCount;\n this.sendAllProperties = this.sendAllProperties.bind(this);\n\n this._currentValue = this.initialValue;\n\n this.radioGroups = this.setUpRadios(this.selectors);\n\n this.radioGroupsLength = this.radioGroups.length;\n }\n\n /**\n * @memberof RadioGroupPlugin\n * @param {string[]} selectors the separated selector strings used to target the radio button groups\n * @returns {RadioGroup[]}\n */\n setUpRadios(selectors) {\n const radioGroups = [];\n\n selectors.forEach((selector) => {\n const radioGroup = new RadioGroup({\n selector: selector.trim(),\n controlName: this.controlName,\n defaultValue: this.initialValue,\n pluginName: this.name,\n featureName: this.featureName\n });\n\n if (radioGroup.length !== this.radioCount) {\n this.warn(`Selector \"${selector}\" did not find exactly ${this.radioCount} radio buttons for ${this.controlName}. Skipping selector`);\n return;\n }\n\n if (!radioGroup.hasOnly(this.supportedValues)) {\n return;\n }\n\n if (radioGroup.hasDuplicateValues()) {\n this.warn(`Duplicate radio button values detected (values: ${radioGroup.values} ). Skipping radio group`);\n return;\n }\n\n radioGroups.push(radioGroup);\n });\n\n return radioGroups;\n }\n\n /**\n * @memberof RadioGroupPlugin\n */\n start() {\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Sends initial caption properties to the application\n * @memberof RadioGroupPlugin\n */\n sendAllProperties() {\n this.sendProperty(this.featureName, this.property);\n }\n\n /**\n * @memberof RadioGroupPlugin\n * @param {string} newValue\n */\n set currentValue(newValue) {\n if (!this.supportedValues.includes(newValue)) {\n return;\n }\n\n this._currentValue = newValue;\n\n for (let i = 0, l = this.radioGroups.length; i < l; i++) {\n this.radioGroups[i].radioGroup[newValue].checked = true;\n }\n }\n\n /**\n * @memberof RadioGroupPlugin\n * @return {string}\n */\n get currentValue() {\n return this._currentValue;\n }\n\n}\n","var uncurryThis = require('../internals/function-uncurry-this');\n\n// `thisNumberValue` abstract operation\n// https://tc39.es/ecma262/#sec-thisnumbervalue\nmodule.exports = uncurryThis(1.0.valueOf);\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar global = require('../internals/global');\nvar path = require('../internals/path');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isForced = require('../internals/is-forced');\nvar hasOwn = require('../internals/has-own-property');\nvar inheritIfRequired = require('../internals/inherit-if-required');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar isSymbol = require('../internals/is-symbol');\nvar toPrimitive = require('../internals/to-primitive');\nvar fails = require('../internals/fails');\nvar getOwnPropertyNames = require('../internals/object-get-own-property-names').f;\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar defineProperty = require('../internals/object-define-property').f;\nvar thisNumberValue = require('../internals/this-number-value');\nvar trim = require('../internals/string-trim').trim;\n\nvar NUMBER = 'Number';\nvar NativeNumber = global[NUMBER];\nvar PureNumberNamespace = path[NUMBER];\nvar NumberPrototype = NativeNumber.prototype;\nvar TypeError = global.TypeError;\nvar stringSlice = uncurryThis(''.slice);\nvar charCodeAt = uncurryThis(''.charCodeAt);\n\n// `ToNumeric` abstract operation\n// https://tc39.es/ecma262/#sec-tonumeric\nvar toNumeric = function (value) {\n var primValue = toPrimitive(value, 'number');\n return typeof primValue == 'bigint' ? primValue : toNumber(primValue);\n};\n\n// `ToNumber` abstract operation\n// https://tc39.es/ecma262/#sec-tonumber\nvar toNumber = function (argument) {\n var it = toPrimitive(argument, 'number');\n var first, third, radix, maxCode, digits, length, index, code;\n if (isSymbol(it)) throw TypeError('Cannot convert a Symbol value to a number');\n if (typeof it == 'string' && it.length > 2) {\n it = trim(it);\n first = charCodeAt(it, 0);\n if (first === 43 || first === 45) {\n third = charCodeAt(it, 2);\n if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix\n } else if (first === 48) {\n switch (charCodeAt(it, 1)) {\n case 66: case 98: radix = 2; maxCode = 49; break; // fast equal of /^0b[01]+$/i\n case 79: case 111: radix = 8; maxCode = 55; break; // fast equal of /^0o[0-7]+$/i\n default: return +it;\n }\n digits = stringSlice(it, 2);\n length = digits.length;\n for (index = 0; index < length; index++) {\n code = charCodeAt(digits, index);\n // parseInt parses a string to a first unavailable symbol\n // but ToNumber should return NaN if a string contains unavailable symbols\n if (code < 48 || code > maxCode) return NaN;\n } return parseInt(digits, radix);\n }\n } return +it;\n};\n\nvar FORCED = isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'));\n\nvar calledWithNew = function (dummy) {\n // includes check on 1..constructor(foo) case\n return isPrototypeOf(NumberPrototype, dummy) && fails(function () { thisNumberValue(dummy); });\n};\n\n// `Number` constructor\n// https://tc39.es/ecma262/#sec-number-constructor\nvar NumberWrapper = function Number(value) {\n var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value));\n return calledWithNew(this) ? inheritIfRequired(Object(n), this, NumberWrapper) : n;\n};\n\nNumberWrapper.prototype = NumberPrototype;\nif (FORCED && !IS_PURE) NumberPrototype.constructor = NumberWrapper;\n\n$({ global: true, constructor: true, wrap: true, forced: FORCED }, {\n Number: NumberWrapper\n});\n\n// Use `internal/copy-constructor-properties` helper in `core-js@4`\nvar copyConstructorProperties = function (target, source) {\n for (var keys = DESCRIPTORS ? getOwnPropertyNames(source) : (\n // ES3:\n 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +\n // ES2015 (in case, if modules with ES2015 Number statics required before):\n 'EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,' +\n // ESNext\n 'fromString,range'\n ).split(','), j = 0, key; keys.length > j; j++) {\n if (hasOwn(source, key = keys[j]) && !hasOwn(target, key)) {\n defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n }\n};\n\nif (IS_PURE && PureNumberNamespace) copyConstructorProperties(path[NUMBER], PureNumberNamespace);\nif (FORCED || IS_PURE) copyConstructorProperties(path[NUMBER], NativeNumber);\n","import { SavedData } from '../SavedData';\n\n/**\n * @export\n * @class Slider\n */\nexport class Slider {\n /**\n *Creates an instance of Slider\n * @param {object} params\n * @param {string | HTMLInputElement} params.slider the slider element or a selector string\n * @param {string} params.control the feature that this slider controols\n * @param {number} [min=0] slider min value\n * @param {number} [max=1] slider max value\n * @param {number} [step=0.1] slider step value\n * @param {number} [defaultValue=1] slider starting value\n * @memberof SliderPlugin\n */\n constructor({\n slider,\n control,\n min = 0,\n max = 1,\n step = 0.1,\n defaultValue = 1\n }) {\n this.min = min;\n this.max = max;\n this.step = step;\n this.sliderValue = defaultValue;\n this.control = control;\n this.slider = this.setUpSlider(slider, control);\n }\n\n /**\n * @param {string | HTMLInputElement | HTMLElement} slider\n * @param {string} control The control element (sensitivity, difficulty, pointer size, etc) this slider will be controlling\n * @returns {Element | HTMLElement}\n * @memberof Slider\n */\n setUpSlider(slider, control) {\n if ('string' === typeof slider) {\n slider = document.querySelector(slider);\n }\n\n if (!slider || 'range' !== slider.type) {\n return null;\n }\n const value = SavedData.read(control);\n\n slider.min = this.min;\n slider.max = this.max;\n slider.step = this.step;\n\n if ((value || value === 0) && value.toString().trim().length > 0) {\n slider.value = value;\n this.sliderValue = value;\n } else {\n slider.value = this.sliderValue;\n }\n\n return slider;\n }\n\n /**\n * Controls the range of the slider\n * @param {number} i\n * @returns\n * @memberof Slider\n */\n sliderRange(i) {\n if (i < this.min) {\n return this.min;\n } else if (i > this.max) {\n return this.max;\n } else {\n return i;\n }\n }\n\n /**\n * Adds change and input listeners to the slider using the given callback function\n * @memberof Slider\n * @param {Function} callBack event to fire on change or input\n */\n enableSliderEvents(callBack) {\n if (!this.slider) {\n return;\n }\n\n const event = callBack;\n this.slider.addEventListener('change', event);\n this.slider.addEventListener('input', event);\n }\n\n /**\n * removes the event listeners from the given slider.\n * @memberof Slider\n * @param {Function} callBack event to fire on change or input\n */\n disableSliderEvents(callBack) {\n if (!this.slider) {\n return;\n }\n const event = callBack;\n this.slider.removeEventListener('change', event);\n this.slider.removeEventListener('input', event);\n }\n /**\n * enables display of the Slider if it is present in the features list\n * @memberof Slider\n * @param {object} data Object containing which features are enabled\n */\n displaySlider(data) {\n if (!this.slider && data[this.control]) {\n console.warn(`${this.control} was not provided a valid input element or selector but was included as a game feature`);\n }\n\n if (!this.slider) {\n return;\n }\n\n this.slider.style.display = data[this.control] ? '' : 'none';\n }\n\n /**\n * @param {Event} event the event to be fired on the slider\n * @memberof Slider\n */\n dispatchEvent(event) {\n this.slider.dispatchEvent(event);\n }\n\n /**\n * @readonly\n * @returns {string}\n * @memberof Slider\n */\n get value() {\n return this.slider.value;\n }\n\n /**\n * @memberof Slider\n */\n set value(value) {\n this.slider.value = value;\n }\n}\n","/**\n * @export\n * @class Button\n */\nexport class Button {\n /**\n *Creates an instance of Button\n * @param {object} params\n * @param {string | HTMLElement} params.button the button itself or a selector string\n * @param {Function} params.onClick the function to call when the button is clicked\n * @param {string} channel the feature this button controls\n * @memberof ButtonPlugin\n */\n constructor({ button, onClick, channel }) {\n this.button =\n button instanceof HTMLElement ? button : document.querySelector(button);\n this.onClick = onClick;\n this.channel = channel;\n\n if (this.button) {\n this.button.addEventListener('click', onClick);\n }\n }\n\n /**\n * enables display of the button if it is present in the features list\n * @memberof Button\n * @param {object} data Object containing which features are enabled\n */\n displayButton(data) {\n if (!(this.button instanceof HTMLElement)) {\n return;\n }\n\n this.button.style.display =\n data[this.channel] || this.channel === 'pause' || this.channel === 'hints'\n ? ''\n : 'none';\n }\n\n /**\n * enables display of the button\n * @memberof Button\n */\n enableButton() {\n if (!this.button) {\n return;\n }\n this.button.classList.remove('disabled');\n }\n\n /**\n * \n * @param {string} className The classname to be appended to the end of the class property\n */\n addClass(className) {\n this.button.className = this.button.className ? this.button.className + ` ${ className }` : ` ${ className }`;\n }\n}\n","import { BasePlugin } from './BasePlugin';\nimport { Slider } from '../ui-elements';\n\n/**\n *\n *\n * @export\n * @class SliderPlugin\n */\nexport class SliderPlugin extends BasePlugin {\n /**\n *\n *Creates an instance of SliderPlugin.\n * @constructor\n * @memberof SliderPlugin\n * @param {string} cssSelector\n * @param {string} name\n * @param {object} options\n * @param {string | number} [options.defaultValue='0.5']\n * @param {string | number} [options.minValue='0']\n * @param {string | number} [options.maxValue='1']\n * @param {string} [options.featureName] Springroll Core feature name that the plugin is supporting\n */\n constructor(cssSelector, name, {defaultValue = '0.5', minValue = '0', maxValue = '1', featureName }) {\n super(name);\n this.featureName = featureName;\n this.minValue = minValue;\n this.defaultValue = defaultValue;\n this.maxValue = maxValue;\n this._currentValue = defaultValue;\n this.sliders = this.setUpSliders(cssSelector);\n this.slidersLength = this.sliders.length;\n this.sendAllProperties = this.sendAllProperties.bind(this);\n\n if (0 >= this.slidersLength) {\n this.warn('Plugin was not provided any valid HTML Elements');\n return;\n }\n }\n\n /**\n * @memberof SliderPlugin\n * @param {string[]} selectors the selector strings used to target the input elements\n * @returns {Slider[]}\n */\n setUpSliders(selectors) {\n const sliders = [];\n\n if (selectors instanceof HTMLElement) {\n sliders.push(new Slider({\n slider: selectors,\n control: this.featureName,\n defaultValue: this.defaultValue,\n minValue: this.minValue,\n maxValue: this.maxValue\n }));\n } else {\n document.querySelectorAll(selectors).forEach((slider) => {\n sliders.push(new Slider({\n slider: slider,\n control: this.featureName,\n defaultValue: this.defaultValue,\n minValue: this.minValue,\n maxValue: this.maxValue\n }));\n });\n }\n\n return sliders;\n }\n\n /**\n * @memberof SliderPlugin\n */\n init() {\n this.client.on(\n 'features',\n function(features) {\n if (!features.data) {\n return;\n }\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].displaySlider(features.data);\n }\n }.bind(this)\n );\n }\n\n /**\n * @memberof SliderPlugin\n */\n start() {\n this._currentValue = this.sliders[0].value; //update current value to the saved data value set in Slider.\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Sends initial caption properties to the application\n * @memberof SliderPlugin\n */\n sendAllProperties() {\n this.sendProperty(this.featureName, this.currentValue);\n }\n\n /**\n * @memberof SliderPlugin\n * @param {string} newValue\n */\n set currentValue(newValue) {\n\n //just use first slider to ensure the number is valid.\n this._currentValue = this.sliders[0].sliderRange(Number(newValue));\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].value = newValue;\n }\n }\n\n /**\n * @memberof SliderPlugin\n * @return {string}\n */\n get currentValue() {\n return this._currentValue;\n }\n\n}\n","import { SavedData } from '../SavedData';\nimport { ButtonPlugin } from '../base-plugins';\nimport { RadioGroup } from '../ui-elements';\n\nconst DEFAULT_CAPTIONS_STYLES = {\n size: 'medium',\n background: 'black',\n color: 'white',\n edge: 'none',\n font: 'arial',\n align: 'top'\n};\n\nconst DEFAULT_COLOR_STYLE = {color: 'white', background: 'black'};\nconst INVERTED_COLOR_STYLE = {color: 'black', background: 'white'};\nconst FONT_SIZE_VALUES = ['small', 'medium', 'large'];\nconst COLOR_VALUES = ['default', 'inverted'];\nconst ALIGN_VALUES = ['top', 'bottom'];\n\n/**\n * @export\n * @class CaptionsStylePlugin\n * @property {object} captionsStyles The collection of captions styles\n * @property {string[]} fontSizeSelectors selector strings for the radio button groups\n * @property {string[]} colorSelectors selector strings for the radio button groups\n * @property {string[]} alignmentSelectors selector strings for the radio button groups\n * @property {Object[]} fontSizeRadios array that contains each radio group\n * @property {Object[]} colorRadios array that contains each radio group\n * @property {Object[]} alignmentRadios array that contains each radio group\n * @property {number} fontSizeRadiosLength Length of the fontSizeRadios array\n * @property {number} colorRadiosLength Length of the colorRadios array\n * @property {number} alignmentRadiosLength Length of the alignmentRadios array\n * @extends {ButtonPlugin}\n */\nexport class CaptionsStylePlugin extends ButtonPlugin {\n /**\n * Creates an instance of CaptionsStylePlugin.\n * @param {string} fontSizeRadios selector string for one or more radio groups for caption font size\n * @param {string} colorRadios selector string for one or more radio groups for caption font/background colors\n * @param {string} alignmentRadios selector string for one or more radio groups for caption position\n * @param {string} [defaultFontSize='medium'] Default selected font size\n * @param {string} [defaultColor='default'] Default selected color\n * @param {string} [defaultAlignment='top'] Default selected alignment\n * @memberof CaptionsStylePlugin\n */\n constructor(fontSizeRadios, colorRadios, alignmentRadios,\n { defaultFontSize = 'medium', defaultColor = 'default', defaultAlignment = 'top' } = {}\n ) {\n super('Caption-Button-Plugin');\n this.sendAllProperties = this.sendAllProperties.bind(this);\n this.captionsStyles = Object.assign(\n {},\n DEFAULT_CAPTIONS_STYLES,\n SavedData.read(CaptionsStylePlugin.captionStyleKey) || {}\n );\n\n //split the selector strings into individual selectors.\n //Helps keep the input style consistent across plugins.\n this.fontSizeSelectors = fontSizeRadios ? fontSizeRadios.split(',') : [];\n this.colorSelectors = colorRadios ? colorRadios.split(',') : [];\n this.alignmentSelectors = alignmentRadios ? alignmentRadios.split(',') : [];\n\n this.defaultFontSize = FONT_SIZE_VALUES.includes(defaultFontSize) ? defaultFontSize : FONT_SIZE_VALUES[0];\n this.defaultColor = COLOR_VALUES.includes(defaultColor) ? defaultColor : COLOR_VALUES[0];\n this.defaultAlignment = ALIGN_VALUES.includes(defaultAlignment) ? defaultAlignment : ALIGN_VALUES[0];\n\n this.fontSizeRadios = [];\n this.colorRadios = [];\n this.alignmentRadios = [];\n\n this.fontSizeRadios = this.setUpFontSizeRadios(this.fontSizeSelectors);\n this.colorRadios = this.setUpColorRadios(this.colorSelectors);\n this.alignmentRadios = this.setUpAlignmentRadios(this.alignmentSelectors);\n\n this._captionsMuted = false;\n\n this.alignmentRadiosLength = this.alignmentRadios.length;\n this.fontSizeRadiosLength = this.fontSizeRadios.length;\n this.colorRadiosLength = this.colorRadios.length;\n\n if (0 >= (this.alignmentRadiosLength + this.fontSizeRadiosLength + this.colorRadiosLength)) {\n this.warn(\n 'Plugin was not provided any input elements'\n );\n return;\n }\n\n //set up change events\n for (let i = 0; i < this.colorRadiosLength; i++) {\n this.colorRadios[i].enableRadioEvents(this.onColorChange.bind(this));\n }\n for (let i = 0; i < this.alignmentRadiosLength; i++) {\n this.alignmentRadios[i].enableRadioEvents(this.onAlignmentChange.bind(this));\n }\n for (let i = 0; i < this.fontSizeRadiosLength; i++) {\n this.fontSizeRadios[i].enableRadioEvents(this.onFontSizeChange.bind(this));\n }\n }\n\n /**\n * @memberof CaptionsStylePlugin\n * @param {string[]} selectors the separated selector strings used to target the radio button groups\n * @returns {RadioGroup[]}\n */\n setUpFontSizeRadios(selectors) {\n const radioGroups = [];\n\n selectors.forEach((selector) => {\n const radioGroup = new RadioGroup({\n selector: selector.trim(),\n controlName: 'Font Size',\n defaultValue: this.defaultFontSize,\n pluginName: 'Caption-Button-Plugin'\n });\n\n if (radioGroup.length !== 3) {\n this.warn(`Selector \"${selector}\" did not find exactly three(3) radio buttons for caption font size. Skipping selector`);\n return;\n }\n\n if (!radioGroup.hasOnly(FONT_SIZE_VALUES)) {\n return;\n }\n\n if (radioGroup.hasDuplicateValues()) {\n this.warn(`Duplicate radio button values detected (values: ${radioGroup.values} ). Skipping radio group`);\n return;\n }\n\n radioGroups.push(radioGroup);\n });\n\n return radioGroups;\n }\n\n /**\n * @memberof CaptionsStylePlugin\n * @param {string[]} selectors the separated selector strings used to target the radio button groups\n * @returns {RadioGroup[]}\n */\n setUpColorRadios(selectors) {\n const radioGroups = [];\n\n selectors.forEach((selector) => {\n const radioGroup = new RadioGroup({\n selector: selector.trim(),\n controlName: 'Color',\n defaultValue: this.defaultColor,\n pluginName: 'Caption-Button-Plugin'\n });\n\n if (radioGroup.length !== 2) {\n this.warn(`Selector \"${selector}\" did not find exactly two(2) radio buttons for caption colors. Skipping selector`);\n return;\n }\n\n if (!radioGroup.hasOnly(COLOR_VALUES)) {\n return;\n }\n\n if (radioGroup.hasDuplicateValues()) {\n this.warn(`Duplicate radio button values detected (values: ${radioGroup.values} ). Skipping radio group`);\n return;\n }\n\n radioGroups.push(radioGroup);\n });\n\n return radioGroups;\n }\n\n /**\n * @memberof CaptionsStylePlugin\n * @param {string[]} selectors the separated selector strings used to target the radio button groups\n * @returns {RadioGroup[]}\n */\n setUpAlignmentRadios(selectors) {\n const radioGroups = [];\n\n selectors.forEach((selector) => {\n const radioGroup = new RadioGroup({\n selector: selector.trim(),\n controlName: 'Alignment',\n defaultValue: this.defaultAlignment,\n pluginName: 'Caption-Button-Plugin'\n });\n if (radioGroup.length !== 2) {\n this.warn(`Selector \"${selector}\" did not find exactly two(2) radio buttons for caption alignment. Skipping selector`);\n return;\n }\n\n if (!radioGroup.hasOnly(ALIGN_VALUES)) {\n return;\n }\n\n if (radioGroup.hasDuplicateValues()) {\n this.warn(`Duplicate radio button values detected (values: ${radioGroup.values} ). Skipping radio group`);\n return;\n }\n\n radioGroups.push(radioGroup);\n });\n\n return radioGroups;\n }\n\n /**\n * @memberof CaptionsStylePlugin\n */\n init() {\n // Handle the features request\n this.client.on(\n 'features',\n function($event) {\n\n for (const radio of this.radios) {\n radio.displayRadios($event.data);\n }\n\n }.bind(this)\n );\n\n this.client.on(\n 'caption-set-style',\n function($event) {\n this.setCaptionsStyles($event.data || {});\n }.bind(this)\n );\n }\n /**\n * @memberof CaptionsStylePlugin\n */\n start() {\n this.setCaptionsStyles(SavedData.read(CaptionsStylePlugin.captionStyleKey));\n\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Sends initial caption properties to the application\n * @memberof CaptionsStylePlugin\n */\n sendAllProperties() {\n this.sendProperty(CaptionsStylePlugin.captionStyleKey, this.captionsStyles);\n }\n /**\n * Fired whenever the font size radios are updated\n * @param {Event} e\n * @memberof CaptionsStylePlugin\n */\n onFontSizeChange(e) {\n this.setCaptionsStyles('size', e.target.value);\n\n // this.fontSizeRadios.forEach((group) => {\n // group.radioGroup[e.target.value].checked = true;\n // });\n }\n\n /**\n * Fired whenever the alignment radios are updated\n * @param {Event} e\n * @memberof CaptionsStylePlugin\n */\n onAlignmentChange(e) {\n this.setCaptionsStyles('align', e.target.value);\n\n // this.alignmentRadios.forEach((group) => {\n // group.radioGroup[e.target.value].checked = true;\n // });\n }\n\n /**\n * Fired whenever the color radios are updated\n * @param {Event} e\n * @memberof CaptionsStylePlugin\n */\n onColorChange(e) {\n const styles = e.target.value === 'default' ? DEFAULT_COLOR_STYLE : INVERTED_COLOR_STYLE;\n\n this.setCaptionsStyles(styles);\n\n // this.colorRadios.forEach((group) => {\n // group.radioGroup[e.target.value].checked = true;\n // });\n }\n\n /**\n * Reset the captions styles\n * @param {Event} e\n * @memberof CaptionsStylePlugin\n */\n clearCaptionsStyles() {\n this.captionsStyles = Object.assign({}, DEFAULT_CAPTIONS_STYLES);\n this.setCaptionsStyles();\n\n for (const radio of this.radios) {\n radio.resetState();\n }\n }\n\n /**\n * Get the captions styles\n * @param {string} [prop] The optional property, values are \"size\", \"edge\", \"font\", \"background\", \"color\"\n * @return {object | string} The collection of styles, see setCaptionsStyles for more info.\n * @memberof CaptionsStylePlugin\n */\n getCaptionsStyles(prop) {\n return prop ? this.captionsStyles[prop] : this.captionsStyles;\n }\n\n /**\n * Set the captions styles\n *\n * @param {object} [styles] The style options or the name of the\n * property (e.g., \"color\", \"edge\", \"font\", \"background\", \"size\")\n * @param {string} [styles.color='white'] The text color, the default is white\n * @param {string} [styles.edge='none'] The edge style, default is none\n * @param {string} [styles.font='arial'] The font style, default is arial\n * @param {string} [styles.background='black'] The background style, black\n * @param {string} [styles.size='md'] The font style default is medium\n * @param {string} [styles.align='top'] The align style default is top of the window\n * @param {string} [value=''] If setting styles parameter as a string, this is the value of the property.\n * @memberof CaptionsStylePlugin\n */\n setCaptionsStyles(styles = DEFAULT_CAPTIONS_STYLES, value = '') {\n if (typeof styles === 'object') {\n Object.assign(this.captionsStyles, styles);\n } else if (typeof styles === 'string') {\n this.captionsStyles[styles] = value;\n }\n\n // update radios to match\n this.colorRadios.forEach((group) => {\n const style = this.captionsStyles.color === 'white' ? 'default' : 'inverted'\n group.radioGroup[style].checked = true;\n });\n this.alignmentRadios.forEach((group) => {\n group.radioGroup[this.captionsStyles.align].checked = true;\n });\n this.fontSizeRadios.forEach((group) => {\n group.radioGroup[this.captionsStyles.size].checked = true;\n });\n\n SavedData.write(CaptionsStylePlugin.captionStyleKey, this.captionsStyles);\n if (this.client) {\n this.client.send(CaptionsStylePlugin.captionStyleKey, this.captionsStyles);\n }\n }\n\n /**\n * @readonly\n * @returns {number}\n * @memberof RadioGroup\n */\n get radios() {\n return this.colorRadios\n .concat(this.alignmentRadios)\n .concat(this.fontSizeRadios);\n }\n /**\n * Get captionStyle Key\n * @readonly\n * @static\n * @memberof CaptionStyleKey\n * @returns {string}\n */\n static get captionStyleKey() {\n return 'captionsStyles';\n }\n\n}\n","import { SavedData } from '../SavedData';\nimport { ButtonPlugin } from '../base-plugins';\nimport { Button } from '../ui-elements';\n\n/**\n * @export\n * @class CaptionsTogglePlugin\n * @property {Button[]} _captionsButtons An array of caption mute buttons\n * @property {boolean} _captionsMuted True if captions are muted\n * @property {number} captionsButtonLength The length of the captionsButtons array\n * @extends {ButtonPlugin}\n */\nexport class CaptionsTogglePlugin extends ButtonPlugin {\n /**\n *Creates an instance of CaptionsTogglePlugin.\n * @param {string | HTMLElement} captionsButtons selector string for one or more captions mute buttons\n * @memberof CaptionsTogglePlugin\n */\n constructor(captionsButtons) {\n super('Caption-Button-Plugin');\n this.sendAllProperties = this.sendAllProperties.bind(this);\n\n this._captionsButtons = [];\n\n if ( captionsButtons instanceof HTMLElement ) {\n this._captionsButtons[0] = new Button({\n button: captionsButtons,\n onClick: this.captionsButtonClick.bind(this),\n channel: 'captions'\n });\n } else {\n document.querySelectorAll(captionsButtons).forEach((button) => {\n this._captionsButtons.push(new Button({\n button: button,\n onClick: this.captionsButtonClick.bind(this),\n channel: 'captions'\n }));\n });\n }\n\n this._captionsMuted = false;\n this.captionsButtonLength = this._captionsButtons.length;\n\n if (0 >= this.captionsButtonLength) {\n this.warn(\n 'Plugin was not provided any valid button or input elements'\n );\n return;\n }\n }\n\n /**\n * @memberof CaptionsTogglePlugin\n */\n init() {\n // Handle the features request\n this.client.on(\n 'features',\n function($event) {\n for (let i = 0; i < this.captionsButtonLength; i ++) {\n this._captionsButtons[i].displayButton($event.data);\n }\n\n if (null === SavedData.read(CaptionsTogglePlugin.captionsToggleKey)) {\n return;\n }\n\n this.captionsMuted = !!SavedData.read(CaptionsTogglePlugin.captionsToggleKey);\n\n }.bind(this)\n );\n }\n /**\n * @memberof CaptionsTogglePlugin\n */\n start() {\n this.captionsMuted = !!SavedData.read(CaptionsTogglePlugin.captionsToggleKey);\n\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Sends initial caption properties to the application\n * @memberof CaptionsTogglePlugin\n */\n sendAllProperties() {\n this.sendProperty(CaptionsTogglePlugin.captionsToggleKey, this.captionsMuted);\n }\n\n /**\n * @memberof CaptionsTogglePlugin\n */\n captionsButtonClick() {\n this.captionsMuted = !this.captionsMuted;\n }\n\n /**\n * @readonly\n * @memberof CaptionsTogglePlugin\n */\n get captionsMuted() {\n return this._captionsMuted;\n }\n\n /**\n * @param {boolean} muted\n * @memberof CaptionsTogglePlugin\n */\n set captionsMuted(muted) {\n this._captionsMuted = muted;\n this._setMuteProp(\n 'captionsMuted',\n this._captionsButtons,\n this._captionsMuted\n );\n }\n\n /**\n * Get CaptionToggle Key\n * @readonly\n * @static\n * @memberof captionsToggleKey\n * @returns {string}\n */\n static get captionsToggleKey() {\n return 'captionsMuted';\n }\n}\n","import { ButtonPlugin } from '../base-plugins';\nimport { Button } from '../ui-elements';\n\n/**\n * Requests a hint or help from the game\n * @class HelpPlugin\n * @property {boolean} paused\n * @property {boolean} _helpEnabled\n * @property {boolean} onPause\n * @property {number} helpButtonsLength\n * @extends {ButtonPlugin}\n * @export\n */\nexport class HelpPlugin extends ButtonPlugin {\n /**\n * Creates an instance of HelpPlugin.\n * @param {string | HTMLElement} helpButtons The selector or HTMLElement for the button\n * @memberof HelpPlugin\n */\n constructor(helpButtons) {\n super('Help-Button-Plugin');\n\n this._helpButtons = [];\n\n if (helpButtons instanceof HTMLElement) {\n this._helpButtons[0] = new Button({\n button: helpButtons,\n onClick: this.helpButtonClick.bind(this),\n channel: 'hints' // the check to see if this feature exists is different than most so passing this ensures it'll work the same.\n });\n } else {\n document.querySelectorAll(helpButtons).forEach((button) => {\n this._helpButtons.push(\n new Button({\n button: button,\n onClick: this.helpButtonClick.bind(this),\n channel: 'hints'\n })\n );\n });\n }\n\n this.paused = false;\n this._helpEnabled = false;\n this.onPause = this.onPause.bind(this);\n this.helpButtonsLength = this._helpButtons.length;\n\n if (this.helpButtonsLength <= 0) {\n this.warn('Plugin was not provided any valid button elements');\n }\n }\n /**\n * Called when the game is either paused or resumed\n * @param {object} $event\n * @memberof HelpPlugin\n */\n onPause($event) {\n this.paused = $event.data.paused;\n // Disable the help button when paused if it's active\n if (\n this.paused &&\n this.helpEnabled\n ) {\n for (let i = 0; i < this.helpButtonsLength; i++) {\n this._helpButtons[i].button.setAttribute('data-paused', 'true');\n }\n this.helpEnabled = false;\n } else {\n for (let i = 0; i < this.helpButtonsLength; i++) {\n if (this._helpButtons[i].button.getAttribute('data-paused')) {\n this._helpButtons[i].button.setAttribute('data-paused', '');\n this.helpEnabled = true;\n }\n }\n }\n }\n\n /**\n *\n *\n * @memberof HelpPlugin\n */\n helpButtonClick() {\n if (\n !this.paused &&\n this.helpEnabled\n ) {\n this.client.send('playHelp');\n }\n }\n\n /**\n * @memberof HelpPlugin\n */\n init() {\n // Handle pause\n this.client.on('paused', this.onPause);\n\n // Handle features changed\n this.client.on(\n 'features',\n function(features) {\n this.helpEnabled = features.data.hints;\n for (let i = 0; i < this.helpButtonsLength; i++) {\n this._helpButtons[i].displayButton(features.data);\n }\n }.bind(this)\n );\n\n this.client.on(\n 'helpEnabled',\n function(event) {\n this._helpEnabled = !!event.data;\n }.bind(this)\n );\n }\n\n /**\n * @memberof HelpPlugin\n */\n get helpEnabled() {\n return this._helpEnabled;\n }\n\n /**\n * Fired when the enabled status of the help button changes\n * @function helpEnabled\n * @param {boolean} enabled If the help button is enabled\n * @memberof HelpPlugin\n */\n set helpEnabled(enabled) {\n this._helpEnabled = enabled;\n for (let i = 0; i < this.helpButtonsLength; i++) {\n this._helpButtons[i].button.classList.remove('disabled');\n this._helpButtons[i].button.classList.remove('enabled');\n this._helpButtons[i].button.classList.add(enabled ? 'enabled' : 'disabled');\n }\n\n this.client.trigger('helpEnabled');\n }\n\n /**\n * @readonly\n * @static\n * @memberof HelpPlugin\n * @returns {string}\n */\n static get helpKey() {\n return 'help';\n }\n\n}\n","import { ButtonPlugin } from '../base-plugins';\nimport { PageVisibility } from '../PageVisibility';\nimport { Button } from '../ui-elements';\n/**\n * @class Container\n * @property {object[]} sliders an array of all slider objects attached to PausePlugin\n * @extends ButtonPlugin\n */\nexport class PausePlugin extends ButtonPlugin {\n /**\n * Creates an instance of PausePlugin.\n * @param {string | HTMLElement} pauseButton selector string or HTML Element for the input(s)\n * @param {boolean} manageOwnVisibility whether the plugin should manage container's visibility or some other source will handle it\n * @memberof PausePlugin\n */\n constructor(pauseButton, manageOwnVisibility = true) {\n super('Pause-Button-plugin');\n this._manageOwnVisibility = manageOwnVisibility;\n this._appBlurred = false;\n this._containerBlurred = false;\n this._focusTimer = null;\n this._isManualPause = false;\n this._keepFocus = false;\n this._paused = false;\n this.iframe = null;\n this.focusApp = this.focusApp.bind(this);\n this.manageFocus = this.manageFocus.bind(this);\n this.onKeepFocus = this.onKeepFocus.bind(this);\n this.onFocus = this.onFocus.bind(this);\n const onPauseToggle = this.onPauseToggle.bind(this);\n\n this.pauseDisabled = false;\n this._pauseButton = [];\n\n this.pageVisibility = new PageVisibility(\n this.onContainerFocus.bind(this),\n this.onContainerBlur.bind(this)\n );\n\n this.pageVisibility.enabled = this.manageOwnVisibility;\n\n if (pauseButton instanceof HTMLElement) {\n this._pauseButton[0] = new Button({\n button: pauseButton,\n onClick: onPauseToggle,\n channel: PausePlugin.pauseKey\n });\n } else {\n document.querySelectorAll(pauseButton).forEach((button) => {\n this._pauseButton.push(new Button({\n button: button,\n onClick: onPauseToggle,\n channel: PausePlugin.pauseKey\n }));\n });\n }\n }\n\n /**\n * updates _paused and also sends the pause event to the application\n * @memberof PausePlugin\n * @param {Boolean} paused\n */\n set pause(paused) {\n paused = !!paused;\n\n if (this.pauseDisabled) {\n return;\n }\n this._paused = paused;\n\n this.client.send(PausePlugin.pauseKey, paused);\n this.client.trigger(paused ? 'paused' : 'resumed', { paused });\n\n for (let i = 0, l = this._pauseButton.length; i < l; i++) {\n this._pauseButton[i].button.classList.remove('unpaused');\n this._pauseButton[i].button.classList.remove('paused');\n this._pauseButton[i].button.classList.add(paused ? 'paused' : 'unpaused');\n }\n }\n\n /**\n * @memberof PausePlugin\n * @returns {Boolean}\n */\n get pause() {\n return this._paused;\n }\n\n /**\n * updates _manageOwnVisibility and also re-enables pageVisibility\n * @memberof PausePlugin\n * @param {Boolean} manageOwnVisibility\n */\n set manageOwnVisibility(manageOwnVisibility) {\n this._manageOwnVisibility = manageOwnVisibility;\n\n this.pageVisibility.enabled = this._manageOwnVisibility;\n }\n\n /**\n * @memberof PausePlugin\n * @returns {Boolean}\n */\n get manageOwnVisibility() {\n return this._manageOwnVisibility;\n }\n\n /**\n * forces focus onto the iframe application window\n * @memberof PausePlugin\n */\n focusApp() {\n if (!this.hasDom) {\n // We don't have a dom with a content window, fail quietly\n return;\n }\n\n this.iframe.contentWindow.focus();\n }\n\n /**\n * blurs the application iframe window\n * @memberof PausePlugin\n */\n blurApp() {\n if (!this.hasDom) {\n return;\n }\n this.iframe.contentWindow.blur();\n }\n\n /**\n * Determines what pause state should be sent, if any, on focus or blur events.\n * @method manageFocus\n * @memberof PausePlugin\n */\n manageFocus() {\n if (!this.manageOwnVisibility) {\n return;\n }\n // Unfocus on the iframe\n if (this._keepFocus) {\n this.blurApp();\n }\n\n // we only need one delayed call, at the end of any\n // sequence of rapidly-fired blur/focus events\n if (this._focusTimer) {\n clearTimeout(this._focusTimer);\n }\n\n // Delay setting of 'paused' in case we get another focus event soon.\n // Focus events are sent to the container asynchronously, and this was\n // causing rapid toggling of the pause state and related issues,\n // especially in Internet Explorer\n this._focusTimer = setTimeout(\n function () {\n this._focusTimer = null;\n // A manual pause cannot be overriden by focus events.\n // User must click the resume button.\n if (this._isManualPause) {\n return;\n }\n\n this.pause = Boolean(this._containerBlurred && this._appBlurred);\n\n // Focus on the content window when blurring the app\n // but selecting the container\n if (this._keepFocus && !this._containerBlurred && this._appBlurred) {\n this.focusApp();\n }\n }.bind(this),\n 100\n );\n }\n\n /**\n * Handle the keep focus event for the window\n * @method onKeepFocus\n * @memberof PausePlugin\n * @private\n */\n onKeepFocus($event) {\n this._keepFocus = !!$event.data;\n this.manageFocus();\n }\n\n /**\n * Handle focus events sent from iFrame children\n * @method onFocus\n * @memberof PausePlugin\n * @private\n */\n onFocus($event) {\n this._appBlurred = !$event.data;\n this.manageFocus();\n }\n\n /**\n * Handle focus events sent from container's window\n * @method onContainerFocus\n * @memberof PausePlugin\n * @private\n */\n onContainerFocus() {\n this._containerBlurred = false;\n this.manageFocus();\n }\n\n /**\n * Handle blur events sent from container's window\n * @method onContainerBlur\n * @memberof PausePlugin\n * @private\n */\n onContainerBlur() {\n //Set both container and application to blurred,\n //because some blur events are only happening on the container.\n //If container is blurred because application area was just focused,\n //the application's focus event will override the blur imminently.\n this._containerBlurred = this._appBlurred = true;\n this.manageFocus();\n }\n\n /**\n * @memberof PausePlugin\n */\n onPauseToggle() {\n this._isManualPause = !this._isManualPause;\n this.pause = !this.pause;\n }\n\n /**\n * @param {Container} container\n * @memberof PausePlugin\n */\n init({ iframe }) {\n this.iframe = iframe;\n\n this.client.on(\n 'features',\n function (features) {\n if (features.disablePause) {\n this.pauseDisabled = true;\n }\n\n for (let i = 0, l = this._pauseButton.length; i < l; i++) {\n this._pauseButton[i].displayButton(features.data);\n }\n }.bind(this)\n );\n this.client.on('focus', this.onFocus);\n this.client.on('keepFocus', this.onKeepFocus);\n\n this.pause = this._paused;\n }\n\n /**\n * Function to check if we have a dom with a contentWindow\n * @readonly\n * @returns {boolean}\n * @memberof PausePlugin\n */\n get hasDom() {\n return Boolean(null !== this.iframe && this.iframe.contentWindow);\n }\n\n /**\n * @readonly\n * @memberof PausePlugin\n * @returns {HTMLButtonElement[]}\n */\n get pauseButton() {\n const buttons = [];\n for (let i = 0, l = this._pauseButton.length; i < l; i++) {\n buttons.push(this._pauseButton[i].button);\n }\n return buttons;\n }\n\n /**\n * @readonly\n * @static\n * @memberof PausePlugin\n * @returns {string}\n */\n static get pauseKey() {\n return 'pause';\n }\n}\n","import { SavedData } from '../SavedData';\nimport { ButtonPlugin } from '../base-plugins';\nimport { Slider, Button } from '../ui-elements';\n\n/**\n * @export\n * @class SoundPlugin\n * @extends {ButtonPlugin}\n *\n */\nexport class SoundPlugin extends ButtonPlugin {\n /**\n * Creates an instance of SoundPlugin.\n * @param {string | HTMLElement} [soundButtons] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [musicButtons] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [voButtons] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [sfxButtons] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [soundSliders] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [musicSliders] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [sfxSliders] selector string or HTML Element for the input(s)\n * @param {string | HTMLElement} [voSliders] selector string or HTML Element for the input(s)\n * @memberof SoundPlugin\n */\n constructor({\n soundButtons,\n musicButtons,\n sfxButtons,\n voButtons,\n soundSliders,\n musicSliders,\n sfxSliders,\n voSliders\n } = {}) {\n super('Sound-Button-Plugin');\n const saved = SavedData.read(SoundPlugin.soundMutedKey);\n this.sendAllProperties = this.sendAllProperties.bind(this);\n this._soundMuted = saved ? saved : false;\n this._musicMuted = false;\n this._voMuted = false;\n this._sfxMuted = false;\n\n this.soundVolume = 1;\n this.musicVolume = 1;\n this.sfxVolume = 1;\n this.voVolume = 1;\n\n this.soundSliders = [];\n this.musicSliders = [];\n this.sfxSliders = [];\n this.voSliders = [];\n\n this.soundButtons = [];\n this.musicButtons = [];\n this.sfxButtons = [];\n this.voButtons= [];\n\n if (soundSliders instanceof HTMLElement) {\n this.soundSliders[0] = new Slider({\n slider: soundSliders,\n control: SoundPlugin.soundVolumeKey,\n defaultValue: this.soundVolume\n });\n } else {\n document.querySelectorAll(soundSliders).forEach((slider) => {\n const newSlider = new Slider({\n slider: slider,\n control: SoundPlugin.soundVolumeKey,\n defaultValue: this.soundVolume\n });\n if (newSlider.slider) {\n this.soundSliders.push(newSlider);\n }\n });\n }\n if (musicSliders instanceof HTMLElement) {\n this.musicSliders[0] = new Slider({\n slider: musicSliders,\n control: SoundPlugin.musicVolumeKey,\n defaultValue: this.musicVolume\n });\n } else {\n document.querySelectorAll(musicSliders).forEach((slider) => {\n const newSlider = new Slider({\n slider: slider,\n control: SoundPlugin.musicVolumeKey,\n defaultValue: this.musicVolume\n });\n if (newSlider.slider) {\n this.musicSliders.push(newSlider);\n }\n });\n }\n if (sfxSliders instanceof HTMLElement) {\n this.sfxSliders[0] = new Slider({\n slider: sfxSliders,\n control: SoundPlugin.sfxVolumeKey,\n defaultValue: this.sfxVolume\n });\n } else {\n document.querySelectorAll(sfxSliders).forEach((slider) => {\n const newSlider = new Slider({\n slider: slider,\n control: SoundPlugin.sfxVolumeKey,\n defaultValue: this.sfxVolume\n });\n if (newSlider.slider) {\n this.sfxSliders.push(newSlider);\n }\n });\n }\n if (voSliders instanceof HTMLElement) {\n this.voSliders[0] = new Slider({\n slider: voSliders,\n control: SoundPlugin.voVolumeKey,\n defaultValue: this.voVolume\n });\n } else {\n document.querySelectorAll(voSliders).forEach((slider) => {\n const newSlider = new Slider({\n slider: slider,\n control: SoundPlugin.voVolumeKey,\n defaultValue: this.voVolume\n });\n if (newSlider.slider) {\n this.voSliders.push(newSlider);\n }\n });\n }\n\n if ( soundButtons instanceof HTMLElement ) {\n this.soundButtons[0] = new Button({\n button: soundButtons,\n onClick: this.onSoundToggle.bind(this),\n channel: SoundPlugin.soundKey\n });\n } else {\n document.querySelectorAll(soundButtons).forEach((button) => {\n this.soundButtons.push(new Button({\n button: button,\n onClick: this.onSoundToggle.bind(this),\n channel: SoundPlugin.soundKey\n }));\n });\n }\n if ( musicButtons instanceof HTMLElement ) {\n this.musicButtons[0] = new Button({\n button: musicButtons,\n onClick: this.onMusicToggle.bind(this),\n channel: 'music'\n });\n } else {\n document.querySelectorAll(musicButtons).forEach((button) => {\n this.musicButtons.push(new Button({\n button: button,\n onClick: this.onMusicToggle.bind(this),\n channel: 'music'\n }));\n });\n }\n if ( sfxButtons instanceof HTMLElement ) {\n this.sfxButtons[0] = new Button({\n button: sfxButtons,\n onClick: this.onSFXToggle.bind(this),\n channel: 'sfx'\n });\n } else {\n document.querySelectorAll(sfxButtons).forEach((button) => {\n this.sfxButtons.push(new Button({\n button: button,\n onClick: this.onSFXToggle.bind(this),\n channel: 'sfx'\n }));\n });\n }\n if ( voButtons instanceof HTMLElement ) {\n this.voButtons[0] = new Button({\n button: voButtons,\n onClick: this.onVOToggle.bind(this),\n channel: 'vo'\n });\n } else {\n document.querySelectorAll(voButtons).forEach((button) => {\n this.voButtons.push(new Button({\n button: button,\n onClick: this.onVOToggle.bind(this),\n channel: 'vo'\n }));\n });\n }\n\n this.soundSlidersLength = this.soundSliders.length;\n this.musicSlidersLength = this.musicSliders.length;\n this.sfxSlidersLength = this.sfxSliders.length;\n this.voSlidersLength = this.voSliders.length;\n this.soundButtonsLength = this.soundButtons.length;\n this.musicButtonsLength = this.musicButtons.length;\n this.sfxButtonsLength = this.sfxButtons.length;\n this.voButtonsLength = this.voButtons.length;\n\n if (0 >= (this.soundSlidersLength + this.musicSlidersLength + this.sfxSlidersLength + this.voSlidersLength + this.soundButtonsLength + this.musicButtonsLength + this.sfxButtonsLength + this.voButtonsLength)) {\n this.warn('Plugin was not provided any valid HTML Elements');\n return;\n }\n\n for (let i = 0; i < this.soundSlidersLength; i++) {\n this.soundSliders[i].enableSliderEvents(this.onSoundVolumeChange.bind(this));\n }\n for (let i = 0; i < this.musicSlidersLength; i++) {\n this.musicSliders[i].enableSliderEvents(this.onMusicVolumeChange.bind(this));\n }\n for (let i = 0; i < this.sfxSlidersLength; i++) {\n this.sfxSliders[i].enableSliderEvents(this.onSFXVolumeChange.bind(this));\n }\n for (let i = 0; i < this.voSlidersLength; i++) {\n this.voSliders[i].enableSliderEvents(this.onVOVolumeChange.bind(this));\n }\n\n if (this.soundSliders[0] && this.soundSliders[0].slider) {\n this.soundVolume = this.soundSliders[0].value;\n }\n if (this.musicSliders[0] && this.musicSliders[0].slider) {\n this.musicVolume = this.musicSliders[0].value;\n }\n if (this.sfxSliders[0] && this.sfxSliders[0].slider) {\n this.sfxVolume = this.sfxSliders[0].value;\n }\n if (this.voSliders[0] && this.voSliders[0].slider) {\n this.voVolume = this.voSliders[0].value;\n }\n }\n\n /**\n * @memberof SoundPlugin\n * @param {Event} e\n */\n onSoundVolumeChange(e) {\n this.soundVolume = this.soundSliders[0].sliderRange(\n Number(e.target.value)\n );\n this.soundMuted = !this.soundVolume;\n this._checkSoundMute();\n this.sendProperty(SoundPlugin.soundVolumeKey, this.soundVolume);\n\n for (let i = 0; i < this.soundSlidersLength; i++) {\n this.soundSliders[i].value = this.soundVolume;\n }\n }\n\n /**\n * @memberof SoundPlugin\n * @param {Event} e\n */\n onMusicVolumeChange(e) {\n this.musicVolume = this.musicSliders[0].sliderRange(\n Number(e.target.value)\n );\n this.musicMuted = !this.musicVolume;\n this._checkSoundMute();\n this.sendProperty(SoundPlugin.musicVolumeKey, this.musicVolume);\n\n for (let i = 0; i < this.musicSlidersLength; i++) {\n this.musicSliders[i].value = this.musicVolume;\n }\n }\n\n /**\n * @memberof SoundPlugin\n * @param {Event} e\n */\n onVOVolumeChange(e) {\n this.voVolume = this.voSliders[0].sliderRange(Number(e.target.value));\n this.voMuted = !this.voVolume;\n this._checkSoundMute();\n this.sendProperty(SoundPlugin.voVolumeKey, this.voVolume);\n for (let i = 0; i < this.voSlidersLength; i++) {\n this.voSliders[i].value = this.voVolume;\n }\n }\n\n /**\n * @memberof SoundPlugin\n * @param {Event} e\n */\n onSFXVolumeChange(e) {\n this.sfxVolume = this.sfxSliders[0].sliderRange(Number(e.target.value));\n this.sfxMuted = !this.sfxVolume;\n this._checkSoundMute();\n this.sendProperty(SoundPlugin.sfxVolumeKey, this.sfxVolume);\n\n for (let i = 0; i < this.sfxSlidersLength; i++) {\n this.sfxSliders[i].value = this.sfxVolume;\n }\n }\n\n /**\n * @memberof SoundPlugin\n */\n onSoundToggle() {\n const muted = !this.soundMuted;\n this.soundMuted = muted;\n this.musicMuted = muted;\n this.voMuted = muted;\n this.sfxMuted = muted;\n }\n\n /**\n * @memberof SoundPlugin\n */\n onMusicToggle() {\n this.musicMuted = !this.musicMuted;\n this._checkSoundMute();\n }\n\n /**\n * @memberof SoundPlugin\n */\n onVOToggle() {\n this.voMuted = !this.voMuted;\n this._checkSoundMute();\n }\n\n /**\n * @memberof SoundPlugin\n */\n onSFXToggle() {\n this.sfxMuted = !this.sfxMuted;\n this._checkSoundMute();\n }\n\n /**\n * @memberof SoundPlugin\n */\n _checkSoundMute() {\n this.soundMuted = this.sfxMuted && this.voMuted && this.musicMuted;\n }\n\n /**\n * @param {string} key\n * @param {*} value\n * @param {Element} element\n * @memberof SoundPlugin\n */\n setMuteProp(key, value, element) {\n this['_' + key] = value;\n this._setMuteProp(key, element, value);\n }\n\n /**\n * @memberof SoundPlugin\n */\n init() {\n this.client.on(\n 'features',\n function(features) {\n if (!features.data) {\n return;\n }\n\n for (let i = 0; i < this.soundButtonsLength; i++) {\n this.soundButtons[i].displayButton(features.data);\n }\n for (let i = 0; i < this.musicButtonsLength; i++) {\n this.musicButtons[i].displayButton(features.data);\n }\n for (let i = 0; i < this.sfxButtonsLength; i++) {\n this.sfxButtons[i].displayButton(features.data);\n }\n for (let i = 0; i < this.voButtonsLength; i++) {\n this.voButtons[i].displayButton(features.data);\n }\n for (let i = 0; i < this.soundSlidersLength; i++) {\n this.soundSliders[i].displaySlider(features.data);\n }\n for (let i = 0; i < this.musicSlidersLength; i++) {\n this.musicSliders[i].displaySlider(features.data);\n }\n for (let i = 0; i < this.sfxSlidersLength; i++) {\n this.sfxSliders[i].displaySlider(features.data);\n }\n for (let i = 0; i < this.voSlidersLength; i++) {\n this.voSliders[i].displaySlider(features.data);\n }\n }.bind(this)\n );\n }\n\n /**\n * @memberof SoundPlugin\n */\n start() {\n\n for (let i = 0; i < this.soundButtonsLength; i++) {\n this.soundButtons[i].enableButton();\n }\n for (let i = 0; i < this.musicButtonsLength; i++) {\n this.musicButtons[i].enableButton();\n }\n for (let i = 0; i < this.sfxButtonsLength; i++) {\n this.sfxButtons[i].enableButton();\n }\n for (let i = 0; i < this.voButtonsLength; i++) {\n this.voButtons[i].enableButton();\n }\n\n this.soundMuted = !!SavedData.read(SoundPlugin.soundMutedKey);\n this.musicMuted = !!SavedData.read(SoundPlugin.musicMutedKey);\n this.sfxMuted = !!SavedData.read(SoundPlugin.sfxMutedKey);\n this.voMuted = !!SavedData.read(SoundPlugin.voMutedKey);\n\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Saves the current state of all volume properties, and then sends them to the game\n * @memberof SoundPlugin\n */\n sendAllProperties() {\n this.sendProperty(SoundPlugin.soundVolumeKey, this.soundVolume);\n this.sendProperty(SoundPlugin.musicVolumeKey, this.musicVolume);\n this.sendProperty(SoundPlugin.voVolumeKey, this.voVolume);\n this.sendProperty(SoundPlugin.sfxVolumeKey, this.sfxVolume);\n\n this.sendProperty(SoundPlugin.voMutedKey, this.voMuted);\n this.sendProperty(SoundPlugin.soundMutedKey, this.soundMuted);\n this.sendProperty(SoundPlugin.musicMutedKey, this.musicMuted);\n this.sendProperty(SoundPlugin.sfxMutedKey, this.sfxMuted);\n }\n\n /**\n * @memberof SoundPlugin\n * @param {boolean} muted\n */\n set soundMuted(muted) {\n this.setMuteProp('soundMuted', muted, this.soundButtons);\n }\n\n /**\n * @memberof SoundPlugin\n */\n get soundMuted() {\n return this._soundMuted;\n }\n\n /**\n * @memberof SoundPlugin\n * @param {boolean} muted\n */\n set voMuted(muted) {\n this.setMuteProp('voMuted', muted, this.voButtons);\n }\n\n /**\n * @memberof SoundPlugin\n */\n get voMuted() {\n return this._voMuted;\n }\n\n /**\n * @memberof SoundPlugin\n * @param {boolean} muted\n */\n set musicMuted(muted) {\n this.setMuteProp('musicMuted', muted, this.musicButtons);\n }\n\n /**\n * @memberof SoundPlugin\n */\n get musicMuted() {\n return this._musicMuted;\n }\n\n /**\n * @memberof SoundPlugin\n * @param {boolean} muted\n */\n set sfxMuted(muted) {\n this.setMuteProp('sfxMuted', muted, this.sfxButtons);\n }\n\n /**\n * @memberof SoundPlugin\n */\n get sfxMuted() {\n return this._sfxMuted;\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get soundMutedKey() {\n return 'soundMuted';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get voMutedKey() {\n return 'voMuted';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get musicMutedKey() {\n return 'musicMuted';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get sfxMutedKey() {\n return 'sfxMuted';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get soundVolumeKey() {\n return 'soundVolume';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get sfxVolumeKey() {\n return 'sfxVolume';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get voVolumeKey() {\n return 'voVolume';\n }\n\n /**\n * @readonly\n * @static\n * @memberof SoundPlugin\n */\n static get musicVolumeKey() {\n return 'musicVolume';\n }\n\n /**\n * @readonly\n * @memberof SoundPlugin\n */\n get soundButton() {\n return this._soundButton.button;\n }\n\n /**\n * @readonly\n * @memberof SoundPlugin\n */\n get musicButton() {\n return this._musicButton.button;\n }\n /**\n * @readonly\n * @memberof SoundPlugin\n */\n get sfxButton() {\n return this._sfxButton.button;\n }\n /**\n * @readonly\n * @memberof SoundPlugin\n */\n get voButton() {\n return this._voButton.button;\n }\n\n /**\n * @readonly\n * @static\n * @memberof SpeedScalePlugin\n * @return {string}\n */\n static get soundKey() {\n return 'sound';\n }\n}\n","import { SavedData } from './SavedData';\n/**\n * Default user data handler for the {{#crossLink \"springroll.Container\"}}Container{{/crossLink}} to save data using\n * the {{#crossLink \"springroll.SavedData\"}}SavedData{{/crossLink}} class.\n * @class SavedDataHandler\n */\nexport class SavedDataHandler {\n\n /**\n * \n */\n constructor() {\n this.dbName;\n this.savedData;\n }\n \n /**\n * Remove a data setting\n * @method remove\n * @static\n * @param {String} name The name of the property\n * @param {Function} [callback] Callback when remove is complete\n */\n static remove(name, callback) {\n SavedData.remove(name);\n callback();\n }\n\n /**\n * Write a custom setting\n * @method write\n * @static\n * @param {String} name The name of the property\n * @param {*} value The value to set the property to\n * @param {Function} [callback] Callback when write is complete\n */\n static write(name, value, callback) {\n SavedData.write(name, value);\n callback();\n }\n\n /**\n * Read a custom setting\n * @method read\n * @static\n * @param {String} name The name of the property\n * @param {Function} callback Callback when read is complete, returns the value\n */\n static read(name, callback) {\n callback(SavedData.read(name));\n }\n\n // ----------------------------------------------------------------\n // IndexedDB Manipulation \n // ----------------------------------------------------------------\n\n /**\n * Open a connection with the database\n * @param {string} dbName The name of your IndexedDB database\n * @param {string} dbVersion The version number of the database\n * @param {JSON} additions Any additions to the structure of the database\n * @param {array} additions.stores Any stores to be added into the database syntax: \n * {storeName: '[name]', options: {[optionally add options]}}\n * @param {array} additions.indexes Any Indexes to be added to the database syntax: \n * {storeName: '[name]', options: {[optionally add options]}}\n */\n IDBOpen( dbName, dbVersion = null, additions = {}, deletions = {}, callback = null) {\n // persisting the savedData object to keep the connection open\n this.savedData = new SavedData();\n this.savedData.IDBOpen( dbName, dbVersion, additions, deletions, callback);\n }\n\n /**\n * Add a record to a given store\n * @param {string} storeName The name of the store from which the record will be updated\n * @param {string} key the key of the record to be updated \n * @param {*} value The value for the record with the given key to be updated\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBAdd(storeName, record, key, callback) {\n this.savedData.IDBAdd(storeName, record, key, callback);\n }\n \n /**\n * Update a record from a given store\n * @param {string} storeName The name of the store from which the record will be updated\n * @param {string} key the key of the record to be updated \n * @param {*} value The value for the record with the given key to be updated\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBUpdate(storeName, key, value, callback) {\n this.savedData.IDBUpdate(storeName, key, value, callback);\n }\n\n /**\n * Remove a record from a store\n * @param {*} storeName The name of the store from which the record will be removed\n * @param {*} key the key of the record to be removed \n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBRemove(storeName, key, callback) {\n this.savedData.IDBRemove(storeName, key, callback);\n }\n\n /**\n * Return a record from a given store with a given key\n * @param {string} storeName The name of the store to read from\n * @param {string} key The key for the record in the given store \n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBRead(storeName, key, callback) {\n this.savedData.IDBRead(storeName, key, callback);\n }\n\n /**\n * Get all records from a store\n * @param {string} storeName The store to get all records from\n * @param {integer} count Optionally the count of records to return\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBReadAll(storeName, count, callback) {\n this.savedData.IDBReadAll(storeName, count, callback);\n }\n\n /**\n * Get the version of a given database\n * @param {string} dbName The name of the database to return the version of\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBGetVersion(dbName, callback) {\n const sd = new SavedData(dbName);\n\n sd.IDBGetVersion(dbName, callback);\n }\n\n /**\n * Closes the connection to the database\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBClose(callback) {\n this.savedData.IDBClose(callback);\n }\n /**\n * Closes the connection to the database\n * @param {function} callback The method to call on success or failure. A single value will be passed in\n */\n IDBDeleteDB(dbName, options, callback) {\n const sd = new SavedData(dbName);\n sd.IDBDeleteDB(dbName, options, callback);\n }\n\n}\n","import { SavedDataHandler } from '../SavedDataHandler';\nimport { BasePlugin } from '../base-plugins';\n\n/**\n * @export\n * @class UserDataPlugin\n * @extends {BasePlugin}\n * @property {SavedDataHandler} SavedDataHandler The handler to work with the savedData class\n */\nexport class UserDataPlugin extends BasePlugin {\n /**\n * Creates an instance of UserDataPlugin.\n * @memberof UserDataPlugin\n */\n constructor() {\n super('UserData-Plugin');\n this.onUserDataRemove = this.onUserDataRemove.bind(this);\n this.onUserDataRead = this.onUserDataRead.bind(this);\n this.onUserDataWrite = this.onUserDataWrite.bind(this);\n\n this.onIDBAdd = this.onIDBAdd.bind(this);\n this.onIDBOpen = this.onIDBOpen.bind(this);\n this.onIDBRead = this.onIDBRead.bind(this);\n this.onIDBReadAll = this.onIDBReadAll.bind(this);\n this.onIDBRemove = this.onIDBRemove.bind(this);\n this.onIDBUpdate = this.onIDBUpdate.bind(this);\n this.onIDBUpdate = this.onIDBUpdate.bind(this);\n this.onIDBClose = this.onIDBClose.bind(this);\n this.IDBReadAll = this.onIDBReadAll.bind(this);\n this.onIDBGetVersion = this.onIDBGetVersion.bind(this);\n this.onIDBDeleteDB = this.onIDBDeleteDB.bind(this);\n\n this.savedDataHandler = null;\n }\n\n /**\n *\n * @memberof UserDataPlugin\n */\n init() {\n this.client.on('userDataRemove', this.onUserDataRemove);\n this.client.on('userDataRead', this.onUserDataRead);\n this.client.on('userDataWrite', this.onUserDataWrite);\n\n this.client.on('IDBOpen', this.onIDBOpen);\n this.client.on('IDBRead', this.onIDBRead);\n this.client.on('IDBReadAll', this.onIDBReadAll);\n this.client.on('IDBAdd', this.onIDBAdd);\n this.client.on('IDBRemove', this.onIDBRemove);\n this.client.on('IDBUpdate', this.onIDBUpdate);\n this.client.on('IDBClose', this.onIDBClose);\n this.client.on('IDBGetVersion', this.onIDBGetVersion);\n this.client.on('IDBDeleteDB', this.onIDBDeleteDB);\n }\n\n /**\n * Handler for the userDataRemove event\n * @method onUserDataRemove\n * @private\n * @param {string} data The name of the record to be removed\n * @param {string} type The type of listener for bellhop to send to\n */\n onUserDataRemove({ data, type }) {\n SavedDataHandler.remove(data, () => {\n this.client.send(type);\n });\n }\n\n /**\n * Handler for the userDataRead event\n * @method onUserDataRead\n * @private\n * @param {string} data The name of the record to be removed\n * @param {string} type The type of listener for bellhop to send to\n */\n onUserDataRead({ data, type }) {\n SavedDataHandler.read(data, value => this.client.send(type, value));\n }\n\n /**\n * Handler for the userDataWrite event\n * @method onUserDataWrite\n * @private\n * @param {string} type The type of listener for bellhop to send to\n * @param {string} data.name The name for the record. This is what is used to read or remove the record\n * @param {object | string} data.value The data object with the data and value for the record\n */\n onUserDataWrite({type, data: { name, value } }) {\n\n SavedDataHandler.write(name, value, () => this.client.send(type));\n }\n\n // ----------------------------------------------------------------\n // IndexedDB Manipulation\n // ----------------------------------------------------------------\n\n /**\n * Open a connection with the IDB Database and optionally add or delete\n * Indexes and stores\n * @param {string} dbName The name of your IndexedDB database\n * @param {string} [dbVersion] The version number of the database\n * @param {JSON} [additions] Any additions to the structure of the database\n * @param {array} [additions.stores] Any stores to be added into the database syntax:\n * @param {string} [additions.stores.storeName] The name of the store\n * @param {object} [additions.stores.options] Optionally, the option parameter for the createStore method\n * @param {array} [additions.indexes] Any Indexes to be added to the database syntax:\n * @param {string} [additions.indexes.storeName] The name of the store\n * @param {object} [additions.indexes.options] Optionally, the option parameter for the createIndex method\n * @param {string} type The type of listener for bellhop to send to\n */\n onIDBOpen({type, data: {dbName, dbVersion = null, additions = {}, deletions = {} }}) {\n // Keep an instance open to use on open\n this.savedDataHandler = new SavedDataHandler();\n this.savedDataHandler.IDBOpen( dbName, dbVersion, additions, deletions, value => this.client.send(type, value));\n }\n\n /**\n * Add a record to a given store\n * @param {string} type The type of listener for bellhop to send to\n * @param {string} storeName The name of the store from which the record will be updated\n * @param {*} value The value for the record with the given key to be updated\n * @param {string} key the key of the record to be updated\n */\n onIDBAdd({type, data: { storeName, value, key}}) {\n this.savedDataHandler.IDBAdd(storeName, value, key, value => this.client.send(type, value));\n }\n\n /**\n * Update a record from a given store\n * @param {string} type The type of listener for bellhop to send to\n * @param {string} storeName The name of the store with the record to update\n * @param {string} key The key of the record to be updated\n * @param {*} value The record value\n */\n onIDBUpdate({type, data: { storeName, key, value}}) {\n this.savedDataHandler.IDBUpdate(storeName, key, value, value => this.client.send(type, value));\n }\n\n /**\n * Remove a record from a store\n * @param {string} type The type of listener for bellhop to send to\n * @param {string} storeName The name of the store from which the record will be removed\n * @param {*} key the key of the record to be removed\n */\n onIDBRemove({type, data: {storeName, key}}) {\n this.savedDataHandler.IDBRemove(storeName, key, value => this.client.send(type, value));\n }\n\n /**\n * Return a record from a given store with a given key\n * @param {string} storeName The name of the store to read from\n * @param {string} key The key for the record in the given store\n * @param {string} type The type of listener for bellhop to send to\n */\n onIDBRead({type, data: {storeName, key}}) {\n this.savedDataHandler.IDBRead(storeName, key, value => this.client.send(type, value));\n }\n\n /**\n * Get all records from a store\n * @param {string} storeName The store to get all records from\n * @param {integer} count Optionally the number of records to return\n * @param {string} type The type of listener for bellhop to send to\n */\n onIDBReadAll({ type, data: {storeName, count} }) {\n this.savedDataHandler.IDBReadAll(storeName, count, value => this.client.send(type, value));\n }\n\n /**\n * Get the version of a given database\n * @param {string} dbName The name of the database to return the version of\n * @param {string} type The type of listener for bellhop to send to\n */\n onIDBGetVersion({type, data: {dbName}}) {\n // Create a new instance of savedDataHandler to avoid mutating the current instance\n const sdh = new SavedDataHandler();\n sdh.IDBGetVersion(dbName, value => this.client.send(type, value));\n }\n\n /**\n * Close the connection with the database\n * @param {string} type The type of listener for bellhop to send to\n */\n onIDBClose({type}) {\n this.savedDataHandler.IDBClose(value => this.client.send(type, value));\n }\n /**\n * Close the connection with the database\n * @param type - The type of request being sent\n */\n onIDBDeleteDB({type, data: {dbName, options }}) {\n const sdh = new SavedDataHandler();\n\n\n sdh.IDBDeleteDB(dbName, options, value => this.client.send(type, value));\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class PointerSizePlugin\n * @extends {SliderPlugin}\n * @property {object[]} sliders an array of all slider objects attached to PointerSizePlugin\n * @extends SliderPlugin\n */\nexport class PointerSizePlugin extends SliderPlugin {\n /**\n * Creates an instance of PointerSizePlugin.\n * @param {string | HTMLElement} [pointerSliders] selector string or HTML Element for the input(s)\n * @param {number} [defaultPointerSize=0.5] The default value for the pointer size slider\n * @memberof PointerSizePlugin\n */\n constructor(pointerSliders, { defaultPointerSize = 0.5 } = {}) {\n super(pointerSliders, 'UISize-Pointer-Plugin', { defaultValue: defaultPointerSize, featureName: PointerSizePlugin.pointerSizeKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onPointerSizeChange.bind(this));\n }\n\n }\n\n /**\n * @memberof PointerSizePlugin\n * @param {Event} e\n */\n onPointerSizeChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(PointerSizePlugin.pointerSizeKey, this.currentValue);\n }\n\n\n /**\n * @readonly\n * @static\n * @memberof PointerSizePlugin\n * @return {string}\n */\n static get pointerSizeKey() {\n return 'pointerSize';\n }\n}\n","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class ButtonSizePlugin\n * @property {object[]} sliders An array of slider objects given to ButtonSizePlugin\n * @property {number} currentValue The current button size value\n * @extends {SliderPlugin}\n */\nexport class ButtonSizePlugin extends SliderPlugin {\n /**\n * Creates an instance of ButtonSizePlugin.\n * @param {string | HTMLElement} buttonSliders selector string or html element(s) for the inputs\n * @param {object} options\n * @param {number} [options.defaultButtonSize=0.5]\n * @memberof ButtonSizePlugin\n */\n constructor(buttonSliders, { defaultButtonSize = 0.5 } = {}) {\n super(buttonSliders, 'UISize-Button-Plugin', { defaultValue: defaultButtonSize, featureName: ButtonSizePlugin.buttonSizeKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onButtonSizeChange.bind(this));\n }\n }\n\n /**\n * @memberof ButtonSizePlugin\n * @param {Event} e\n */\n onButtonSizeChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(ButtonSizePlugin.buttonSizeKey, this.currentValue);\n }\n\n /**\n * Get ButtonSize Key\n * @readonly\n * @static\n * @memberof ButtonSizePlugin\n * @returns {string}\n */\n static get buttonSizeKey() {\n return 'buttonSize';\n }\n}\n","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class ControlSensitivityPlugin\n * @property {object[]} sliders an array of all slider objects attached to ControlSensitivityPlugin\n * @extends {SliderPlugin}\n */\nexport class ControlSensitivityPlugin extends SliderPlugin {\n /**\n * Creates an instance of ControlSensitivityPlugin.\n * @param {string | HTMLElement} sensitivitySliders\n * @param {number} [defaultSensitivity=0.5]\n * @memberof ControlSensitivityPlugin\n */\n constructor(sensitivitySliders, { defaultSensitivity = 0.5 } = {}) {\n super(sensitivitySliders, 'Control-Sensitivity-Plugin', {defaultValue: defaultSensitivity, featureName: ControlSensitivityPlugin.controlSensitivityKey});\n\n this.sendAllProperties = this.sendAllProperties.bind(this);\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onControlSensitivityChange.bind(this));\n }\n }\n\n /**\n * @memberof ControlSensitivityPlugin\n * @param {Event} e\n */\n onControlSensitivityChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(ControlSensitivityPlugin.controlSensitivityKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof ControlSensitivityPlugin\n * @returns {string}\n */\n static get controlSensitivityKey() {\n return 'controlSensitivity';\n }\n}\n","import { BasePlugin } from '../base-plugins';\nimport { SavedData } from '../SavedData';\n\n/**\n * @export\n * @class KeyboardMapPlugin\n * @extends {BasePlugin}\n */\nexport class KeyboardMapPlugin extends BasePlugin {\n /**\n * Creates an instance of KeyboardMapPlugin.\n * @param {string | HTMLElement} keyContainers div or similar container element that will contain the re-mappable keys\n * @param {string} [customClassName='springrollContainerKeyBinding__button'] A custom class name that will be applied to the container element\n * @memberof KeyboardMapPlugin\n */\n constructor(keyContainers, {customClassName = 'springrollContainerKeyBinding__button'} = {}) {\n super('Keyboard-Map-Plugin');\n\n this.sendAllProperties = this.sendAllProperties.bind(this);\n //Allows for removing and reading event listeners\n this.bindKey = this.bindKey.bind(this);\n this.onKeyButtonClick = this.onKeyButtonClick.bind(this);\n\n this.className = customClassName;\n\n this.keyContainers =\n keyContainers instanceof HTMLElement\n ? [keyContainers]\n : document.querySelectorAll(keyContainers);\n\n this.keyBindings = {};\n this.buttons = [];\n this.activekeyButton;\n\n this.sendAfterFetch = false;\n this.canEmit = false;\n\n this.keyContainersLength = this.keyContainers.length;\n\n if (this.keyContainersLength <= 0) {\n this.warn('plugin was not provided any valid key binding container elements');\n return;\n }\n }\n\n /**\n * @memberof KeyboardMapPlugin\n * @param {MouseEvent} e\n * Sets up a rebinding of a key once a key button is clicked.\n */\n onKeyButtonClick(e) {\n\n for (let i = 0, l = this.buttons.length; i < l; i++) {\n for (let j = 0; j < this.buttons[i].length; j++) {\n this.buttons[i][j].removeEventListener('click', this.onKeyButtonClick);\n }\n }\n this.activekeyButton = e.target;\n this.activekeyButton.textContent = 'Press Key to Map';\n document.addEventListener('keyup', this.bindKey);\n }\n\n /**\n * @memberof KeyboardMapPlugin\n * @param {KeyboardEvent} key\n * Actually updates the key binding and sends the value. Also\n * replicates the new key across the other keycontainers\n */\n bindKey(key) {\n key.preventDefault(); //prevents space bar from retriggering a keybinding when set.\n\n for (const actionName in this.keyBindings) {\n if (this.keyBindings[actionName].currentKey === key.key.toLowerCase()) {\n this.warn(`${key.key} is already bound`);\n return;\n }\n }\n\n this.activekeyButton.textContent = key.key === ' ' ? 'space' : key.key;\n for (let i = 0; i < this.buttons.length; i++) {\n for (let j = 0; j < this.buttons[i].length; j++) {\n if (this.buttons[i][j].value === this.activekeyButton.value) {\n this.buttons[i][j].textContent = this.activekeyButton.textContent;\n }\n }\n }\n\n this.keyBindings[this.activekeyButton.value].currentKey = key.key;\n\n document.removeEventListener('keyup', this.bindKey);\n for (let i = 0, l = this.buttons.length; i < l; i++) {\n for (let j = 0; j < this.buttons[i].length; j++) {\n this.buttons[i][j].addEventListener('click', this.onKeyButtonClick);\n }\n }\n\n this.sendProperty(KeyboardMapPlugin.keyBindingKey, this.keyBindings);\n }\n\n /**\n * @memberof KeyboardMapPlugin\n */\n init() {\n this.client.on(\n 'features',\n function(features) {\n if (!features.data) {\n return;\n }\n\n if (!features.data.keyBinding) {\n return;\n }\n\n const data = SavedData.read(KeyboardMapPlugin.keyBindingKey);\n\n this.client.fetch('keyBindings', result => {\n for (let j = 0; j < this.keyContainersLength; j++) {\n this.buttons[j] = [];\n\n for (let i = 0, l = result.data.length; i < l; i++) {\n let currentKey = result.data[i].defaultKey.toLowerCase();\n if (data) {\n if (data[result.data[i].actionName]) {\n currentKey = data[result.data[i].actionName].currentKey;\n }\n }\n //only needs to be set up once\n if (j === 0) {\n this.keyBindings[result.data[i].actionName] = {\n defaultKey: result.data[i].defaultKey.toLowerCase(),\n currentKey: currentKey,\n };\n }\n\n this.buttons[j][i] = document.createElement('button');\n this.buttons[j][i].classList.add(this.className);\n this.buttons[j][i].id = `keyBoardMapPlugin-${result.data[i].actionName}`;\n this.buttons[j][i].value = result.data[i].actionName;\n this.buttons[j][i].textContent = result.data[i].defaultKey;\n this.buttons[j][i].addEventListener('click', this.onKeyButtonClick);\n\n this.label = document.createElement('label');\n this.label.htmlFor = `keyBoardMapPlugin-${result.data[i].actionName}`;\n this.label.textContent = result.data[i].actionName;\n\n this.keyContainers[j].appendChild(this.label);\n this.keyContainers[j].appendChild(this.buttons[j][i]);\n }\n }\n\n this.canEmit = true;\n if (this.sendAfterFetch) {\n this.sendAllProperties();\n }\n });\n }.bind(this)\n );\n }\n\n /**\n*\n* Sends initial caption properties to the application\n* @memberof KeyboardMapPlugin\n*/\n sendAllProperties() {\n if (this.canEmit) {\n this.sendProperty(KeyboardMapPlugin.keyBindingKey, this.keyBindings);\n } else {\n this.sendAfterFetch = true;\n }\n }\n\n /**\n * @readonly\n * @static\n * @memberof KeyboardMapPlugin\n * @returns {string}\n */\n static get keyBindingKey() {\n return 'keyBinding';\n }\n}\n","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class LayersPlugin\n * @property {object[]} sliders an array of all slider objects attached to LayersPlugin\n * @extends {SliderPlugin}\n */\nexport class LayersPlugin extends SliderPlugin {\n /**\n * Creates an instance of KeyboardMapPlugin.\n * @param {string | HTMLInputElement} layersSliders selector string or HTML Element for the input(s)\n * @param {number} [defaultValue=0] The default value for the slider\n */\n constructor(layersSliders, { defaultValue = 0 } = {}) {\n super(layersSliders, 'Layer-Plugin', { defaultValue: defaultValue, featureName: LayersPlugin.layersSliderKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onLayerValueChange.bind(this));\n }\n }\n\n /**\n * @memberof LayersPlugin\n * @param {Event} e\n */\n onLayerValueChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(LayersPlugin.layersSliderKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof LayersPlugin\n * @returns {string}\n */\n static get layersSliderKey() {\n return 'removableLayers';\n }\n}\n","import { RadioGroupPlugin } from '../base-plugins';\nimport { SavedData } from '../SavedData';\n\nconst SUPPORTED_POSITIONS = ['top', 'bottom', 'left', 'right'];\n\n/**\n * @export\n * @class HUDPlugin\n * @extends {BasePlugin}\n */\nexport class HUDPlugin extends RadioGroupPlugin {\n /**\n * Creates an instance of HUDPlugin\n * @param {string} hudSelectorRadios selector string or for the input(s)\n * @param {string[]} [defaultValue='top'] default value for the HUD position\n * @memberof HUDPlugin\n */\n constructor(hudSelectorRadios, { defaultValue = SUPPORTED_POSITIONS[0] } = {}) {\n super(hudSelectorRadios, 'HUD-Layout-Plugin', {supportedValues: SUPPORTED_POSITIONS, initialValue: defaultValue, controlName: 'Hud Selector', featureName: HUDPlugin.hudPositionKey, radioCount: SUPPORTED_POSITIONS.length});\n\n this.sendAllProperties = this.sendAllProperties.bind(this);\n this.sendAfterFetch = false;\n this.canEmit = false;\n this.positions = [];\n\n if (this.radioGroupsLength <= 0) {\n this.warn('Plugin was not provided any valid HTML elements');\n }\n\n for (let i = 0; i < this.radioGroupsLength; i++) {\n this.radioGroups[i].enableRadioEvents(this.onHUDSelect.bind(this));\n }\n\n }\n\n /**\n * @memberof HUDPlugin\n * @param {Event} e\n */\n onHUDSelect(e) {\n //return if a radio button is programattically clicked when it is hidden\n if (!this.positions.includes(e.target.value)) {\n for (let i = 0; i < this.radioGroupsLength; i++) {\n this.radioGroups[i].radioGroup[this.currentValue].checked = true;\n }\n return;\n }\n\n this.currentValue = e.target.value;\n\n this.sendProperty(\n HUDPlugin.hudPositionKey,\n this.currentValue\n );\n }\n\n /**\n * @memberof HUDPlugin\n */\n init() {\n this.client.on(\n 'features',\n function(features) {\n if (!features.data || !features.data.hudPosition) {\n return;\n }\n\n if (this.radioGroupsLength <= 0) {\n return;\n }\n //get the game's reported HUD positions to build out positions array\n this.client.fetch('hudPositions', result => {\n for (let i = 0, l = result.data.length; i < l; i++) {\n if (\n !SUPPORTED_POSITIONS.includes(result.data[i].toLowerCase())\n ) {\n this.warn(`${result.data[i]} is an invalid position name`);\n continue;\n }\n\n this.positions.push(result.data[i].toLowerCase());\n }\n\n for (let i = 0; i < this.radioGroupsLength; i++) {\n //Hide any radio buttons that aren't in the game's position list.\n for (const key in this.radioGroups[i].radioGroup) {\n this.radioGroups[i].radioGroup[key].style.display = this.positions.includes(this.radioGroups[i].radioGroup[key].value) ? '' : 'none';\n }\n }\n\n this.canEmit = true;\n if (this.sendAfterFetch) {\n this.sendAllProperties();\n }\n });\n\n }.bind(this)\n );\n }\n\n /**\n * @memberof HUDPlugin\n */\n start() {\n const data = SavedData.read(HUDPlugin.hudPositionKey);\n\n if (SUPPORTED_POSITIONS.includes(data)) {\n this.currentValue = data;\n }\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Sends initial HUD position properties to the application\n * @memberof HUDPlugin\n */\n sendAllProperties() {\n if (this.canEmit) {\n this.sendProperty(HUDPlugin.hudPositionKey, this.currentValue);\n } else {\n this.sendAfterFetch = true;\n }\n }\n\n /**\n * @static\n * @readonly\n * @memberof HUDPlugin\n * @returns {string}\n */\n static get hudPositionKey() {\n return 'hudPosition';\n }\n}\n","import { RadioGroupPlugin } from '../base-plugins';\nimport { SavedData } from '../SavedData';\n\nconst COLOR_BLIND_TYPES = [\n 'none',\n 'protanopia',\n 'deuteranopia',\n 'tritanopia',\n 'achromatopsia'\n];\n\n/**\n * @export\n * @class ColorVisionPlugin\n * @property {boolean} sendAfterFetch Whether to send the properties after fetch or not\n * @property {boolean} canEmit Whether or not the plugin can send properties\n * @property {string} colors \n * @extends {RadioGroupPlugin}\n */\nexport class ColorVisionPlugin extends RadioGroupPlugin {\n /**\n * Creates an instance of ColorVisionPlugin.\n * @param {string | HTMLElement} colorSelects\n * @param {string } [defaultValue] Default selected value\n * @memberof ColorVision\n */\n constructor(colorVisionRadios, { defaultValue = COLOR_BLIND_TYPES[0] } = {}) {\n super(colorVisionRadios, 'Color-Filter-Plugin', {supportedValues: COLOR_BLIND_TYPES, initialValue: defaultValue, controlName: 'Color Vision Selector', featureName: ColorVisionPlugin.colorVisionKey, radioCount: COLOR_BLIND_TYPES.length});\n\n this.sendAllProperties = this.sendAllProperties.bind(this);\n this.sendAfterFetch = false;\n this.canEmit = false;\n this.colors = [];\n\n if (this.radioGroupsLength <= 0) {\n this.warn('Plugin was not provided any valid HTML elements');\n return;\n }\n\n for (let i = 0; i < this.radioGroupsLength; i++) {\n this.radioGroups[i].enableRadioEvents(this.onColorChange.bind(this));\n }\n }\n\n /**\n * @memberof ColorVisionPlugin\n * @param {Event} e\n */\n onColorChange(e) {\n //return if a radio button is programmatically clicked when it is hidden from the user\n if (!this.colors.includes(e.target.value) ) {\n for (let i = 0; i < this.radioGroupsLength; i++) {\n this.radioGroups[i].radioGroup[this.currentValue].checked = true;\n }\n return;\n }\n this.currentValue = e.target.value;\n\n this.sendProperty(\n ColorVisionPlugin.colorVisionKey,\n this.currentValue\n );\n }\n\n /**\n * @memberof ColorVisionPlugin\n */\n init() {\n this.client.on(\n 'features',\n function(features) {\n if (!features.data || !features.data.colorVision) {\n return;\n }\n if (this.colorDropdownsLength <= 0) {\n return;\n }\n\n //get the game's reported colors to build out accepted filters array\n this.client.fetch('colorFilters', result => {\n for (let i = 0, l = result.data.length; i < l; i++) {\n if (\n !COLOR_BLIND_TYPES.includes(result.data[i].toLowerCase())\n ) {\n this.warn(`${result.data[i]} is an invalid color vision name`);\n continue;\n }\n this.colors.push(result.data[i].toLowerCase());\n }\n\n this.defaultValue = this.colors[0];\n\n for (let i = 0; i < this.radioGroupsLength; i++) {\n //Hide any radio buttons that aren't in the game's filter list.\n for (const key in this.radioGroups[i].radioGroup) {\n this.radioGroups[i].radioGroup[key].style.display = this.colors.includes(this.radioGroups[i].radioGroup[key].value.toLowerCase()) ? '' : 'none';\n }\n }\n\n this.canEmit = true;\n\n if (this.sendAfterFetch) {\n this.sendAllProperties();\n }\n });\n\n }.bind(this)\n );\n }\n\n /**\n * @memberof ColorVisionPlugin\n */\n start() {\n const data = SavedData.read(ColorVisionPlugin.colorVisionKey);\n\n if (COLOR_BLIND_TYPES.includes(data)) {\n this.currentValue = data;\n }\n\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n*\n* Sends initial caption properties to the application\n* @memberof ColorVisionPlugin\n*/\n sendAllProperties() {\n if (this.canEmit) {\n this.sendProperty(ColorVisionPlugin.colorVisionKey, this.currentValue);\n } else {\n this.sendAfterFetch = true;\n }\n }\n\n /**\n * Get the ColorVisionPlugin key\n * @readonly\n * @static\n * @memberof ColorVisionPlugin\n * @returns {string}\n */\n static get colorVisionKey() {\n return 'colorVision';\n }\n\n}\n","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class HitAreaScalePlugin\n * @property {object[]} sliders an array of all slider objects attached to ControlSensitivityPlugin\n * @extends {SliderPlugin}\n * \n */\nexport class HitAreaScalePlugin extends SliderPlugin {\n /**\n * Creates an instance of HitAreaScalePlugin.\n * @param {string | HTMLElement} hitAreaScaleSliders The selector or HTMLElement for the slider\n * @param {number} [defaultHitAreaScale=0.5] The default hit area scale value\n * @memberof HitAreaScalePlugin\n */\n constructor(hitAreaScaleSliders, { defaultHitAreaScale = 0.5 } = {}) {\n super(hitAreaScaleSliders, 'Hit-Area-Scale-Plugin', { defaultValue: defaultHitAreaScale, featureName: HitAreaScalePlugin.hitAreaScaleKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onHitAreaScaleChange.bind(this));\n }\n }\n\n /**\n * @memberof HitAreaScalePlugin\n * @param {Event} target\n * @param {string} control\n */\n onHitAreaScaleChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(HitAreaScalePlugin.hitAreaScaleKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof HitAreaScalePlugin\n * @returns {string}\n */\n static get hitAreaScaleKey() {\n return 'hitAreaScale';\n }\n}\n","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class DragThresholdScalePlugin\n * @extends {SliderPlugin}\n */\nexport class DragThresholdScalePlugin extends SliderPlugin {\n /**\n * Creates an instance of DragThresholdScalePlugin.\n * @param {string | HTMLElement} params.dragThresholdScaleSliders\n * @param {number} [defaultDragThresholdScale=0.5]\n * @memberof DragThresholdScalePlugin\n */\n constructor(dragThresholdScaleSliders, { defaultDragThresholdScale = 0.5 } = {}) {\n super(dragThresholdScaleSliders, 'Drag-Threshold-Scale-Plugin', { defaultValue: defaultDragThresholdScale, featureName: DragThresholdScalePlugin.dragThresholdScaleKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onDragThresholdScaleChange.bind(this));\n }\n }\n\n /**\n * @memberof DragThresholdScalePlugin\n * @param {Event} target\n * @param {string} control\n */\n onDragThresholdScaleChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(DragThresholdScalePlugin.dragThresholdScaleKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof DragThresholdScalePlugin\n * @returns {string}\n */\n static get dragThresholdScaleKey() {\n return 'dragThresholdScale';\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class HealthPlugin\n * @extends {SliderPlugin}\n */\nexport class HealthPlugin extends SliderPlugin {\n /**\n * Creates an instance of HealthPlugin.\n * @param {string | HTMLElement} healthSliders\n * @param {number} [defaultHealth=0.5]\n * @memberof HealthPlugin\n */\n constructor(healthSliders, {defaultHealth = 0.5 } = {}) {\n super(healthSliders, 'Health-Scale-Plugin', { defaultValue:defaultHealth, featureName: HealthPlugin.healthKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onHealthChange.bind(this));\n }\n }\n\n /**\n * @memberof HealthPlugin\n * @param {Event} e\n */\n onHealthChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(HealthPlugin.healthKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof HealthPlugin\n * @returns {string}\n */\n static get healthKey() {\n return 'health';\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class ObjectCountPlugin\n * @property {object[]} sliders an array of all slider objects attached to ObjectCountPlugin\n * @extends {SliderPlugin}\n */\nexport class ObjectCountPlugin extends SliderPlugin {\n /**\n * Creates an instance of ObjectCountPlugin.\n * @param {string | HTMLElement} objectCountSliders selector string or HTML Element for the input(s)\n * @param {number} [defaultObjectCount=0.5] The default value for the slider\n * @memberof ObjectCountPlugin\n */\n constructor(objectCountSliders, { defaultObjectCount = 0.5 } = {}) {\n super(objectCountSliders, 'Object-Count-Plugin', { defaultValue: defaultObjectCount, featureName: ObjectCountPlugin.objectCountKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onObjectCountChange.bind(this));\n }\n }\n\n /**\n * @memberof ObjectCountPlugin\n * @param {Event} target\n * @param {string} control\n */\n onObjectCountChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(ObjectCountPlugin.objectCountKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof ObjectCountPlugin\n * @returns {string}\n */\n static get objectCountKey() {\n return 'objectCount';\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class CompletionPercentagePlugin\n * @property {object[]} sliders an array of all slider objects attached to CompletePercentagePlugin\n * @extends {SliderPlugin}\n */\nexport class CompletionPercentagePlugin extends SliderPlugin {\n /**\n * Creates an instance of CompletionPercentagePlugin.\n * @param {string | HTMLElement} completionPercentageSliders The selector or HTMLSliderElement of the slider\n * @param {number} [defaultCompletionPercentage=0.5] Default selected completion percentage\n * @memberof CompletionPercentagePlugin\n */\n constructor(completionPercentageSliders, { defaultCompletionPercentage = 0.5 } = {}) {\n super(completionPercentageSliders, 'Completion-Percentage-Plugin', { defaultValue: defaultCompletionPercentage, featureName: CompletionPercentagePlugin.completionPercentageKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onCompletionPercentageChange.bind(this));\n }\n }\n\n /**\n * @memberof CompletionPercentagePlugin\n * @param {Event} e\n */\n onCompletionPercentageChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(CompletionPercentagePlugin.completionPercentageKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof CompletionPercentagePlugin\n * @returns {string}\n */\n static get completionPercentageKey() {\n return 'completionPercentage';\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class SpeedScalePlugin\n * @extends {SliderPlugin}\n */\nexport class SpeedScalePlugin extends SliderPlugin {\n /**\n *Creates an instance of SpeedScalePlugin.\n * @param {string | HTMLElement} speedScaleSliders selector string or HTML Element for the input(s)\n * @param {number} [defaultSpeedScale=0.5] The default value for the speed scale slider\n * @memberof SpeedScalePlugin\n */\n constructor(speedScaleSliders, { defaultSpeedScale = 0.5 } = {}) {\n super(speedScaleSliders, 'Speed-Scale-Plugin', { defaultValue: defaultSpeedScale, featureName: SpeedScalePlugin.speedScaleKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onSpeedScaleChange.bind(this));\n }\n }\n\n /**\n * @memberof SpeedScalePlugin\n * @param {Event} e\n */\n onSpeedScaleChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(SpeedScalePlugin.speedScaleKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof SpeedScalePlugin\n * @return {string}\n */\n static get speedScaleKey() {\n return 'speedScale';\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class TimersScalePlugin\n * @property {number} currentValue\n * @extends {SliderPlugin}\n */\nexport class TimersScalePlugin extends SliderPlugin {\n /**\n * Creates an instance of TimersScalePlugin.\n * @param {string | HTMLElement} timersScaleSliders selector string or HTML Element for the input(s)\n * @param {number} [defaultTimersScale=0.5] Default Value for the timer scale slider\n * @memberof TimersScalePlugin\n */\n constructor(timersScaleSliders, { defaultTimersScale = 0.5 } = {}) {\n super(timersScaleSliders, 'Timers-Scale-Plugin', { defaultValue: defaultTimersScale, featureName: TimersScalePlugin.timersScaleKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onTimersScaleChange.bind(this));\n }\n }\n\n /**\n * @memberof TimersScalePlugin\n * @param {Event} e\n */\n onTimersScaleChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(TimersScalePlugin.timersScaleKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof TimersScalePlugin\n * @return {string}\n */\n static get timersScaleKey() {\n return 'timersScale';\n }\n}","import { SliderPlugin } from '../base-plugins';\n\n/**\n * @export\n * @class InputCountPlugin\n * @property {object[]} sliders an array of all slider objects attached to InputCountPlugin\n * @extends {SliderPlugin}\n */\nexport class InputCountPlugin extends SliderPlugin {\n /**\n * Creates an instance of InputCountPlugin.\n * @param {string | HTMLElement} inputCountSliders selector string or HTML Element for the input(s)\n * @param {number} [defaultInputCount=0.5] The default value for the slider\n * @memberof InputCountPlugin\n */\n constructor(inputCountSliders, { defaultInputCount = 0.5 } = {}) {\n super(inputCountSliders, 'Input-Count-Plugin', { defaultValue: defaultInputCount, featureName: InputCountPlugin.inputCountKey });\n\n for (let i = 0; i < this.slidersLength; i++) {\n this.sliders[i].enableSliderEvents(this.onInputCountChange.bind(this));\n }\n }\n\n /**\n * @memberof InputCountPlugin\n * @param {Event} target\n * @param {string} control\n */\n onInputCountChange(e) {\n this.currentValue = e.target.value;\n this.sendProperty(InputCountPlugin.inputCountKey, this.currentValue);\n }\n\n /**\n * @readonly\n * @static\n * @memberof InputCountPlugin\n * @returns {string}\n */\n static get inputCountKey() {\n return 'inputCount';\n }\n}","import { ButtonPlugin } from '../base-plugins/ButtonPlugin';\nimport { Button } from '../ui-elements';\n\n/**\n * A Springroll plugin to easily set up togglable fullscreen\n */\nexport class FullScreenPlugin extends ButtonPlugin {\n \n /**\n * Creates an instance of FullscreenPlugin\n * \n * @param {string | string[]} buttonSelector The selector for the element to be made fullscreen\n */\n constructor(buttonSelector) {\n super({\n name: FullScreenPlugin.fullscreenKey\n }); \n\n this._toggleButtons = [];\n this.iFrame = null;\n\n this.sendAllProperties = this.sendAllProperties.bind(this);\n\n if (Array.isArray(buttonSelector)) {\n // If input is an array, join the selectors into one string\n buttonSelector = buttonSelector.join(', ');\n }\n\n console.log(buttonSelector);\n \n this.toggleButton = document.querySelectorAll(buttonSelector);\n\n\n this.toggleButton.forEach((button) => {\n this._toggleButtons.push(new Button({\n button: button,\n onClick: this.toggleFullScreen.bind(this),\n channel: FullScreenPlugin.fullscreenKey\n }));\n });\n \n\n document.addEventListener('fullscreenchange', () => {\n this.sendAllProperties();\n \n this._toggleButtons.forEach((button) => {\n button.button.classList.toggle('--fullScreen');\n });\n\n });\n }\n\n /**\n * @memberof FullScreenPlugin\n */\n init({ iframe }) {\n this.iFrame = iframe;\n // Handle the features request\n this.client.on(\n 'features',\n function($event) {\n for (let i = 0; i < this.fullscreenElement; i ++) {\n this._toggleButtons[i].displayButton($event.data);\n }\n\n }.bind(this)\n );\n }\n /**\n * @memberof FullScreenPlugin\n */\n start() {\n this.client.on('loaded', this.sendAllProperties);\n this.client.on('loadDone', this.sendAllProperties);\n }\n\n /**\n *\n * Sends initial fullScreen properties to the application\n * @memberof FullScreenTogglePlugin\n */\n sendAllProperties() {\n this.sendProperty(FullScreenPlugin.fullscreenKey, document.fullscreenElement != null ? 'true' : 'false');\n }\n\n /**\n * Toggles fullscreen on this.iFrame. Must be from a user generated event\n */\n toggleFullScreen() {\n if (!document.fullscreenElement) {\n this.iFrame.requestFullscreen().then(() => {\n this.sendAllProperties();\n }).catch((err) => {\n console.log(err);\n });\n } else {\n document.exitFullscreen();\n this.sendAllProperties();\n }\n }\n\n /**\n * Returns true if there is a fullscreen element and false if not\n * @returns { boolean } \n */\n get isFullScreen() {\n return (document.fullscreenElement || // basic\n document.webkitIsFullscreen || //Webkit browsers\n document.mozFullScreen ) // Firefox\n != true; // Ensure boolean output\n }\n\n /** \n * @readonly\n * @static\n * @memberof FullscreenPlugin\n */\n static get fullscreenKey() {\n return 'fullScreen';\n }\n}"],"names":["global","globalThis","self","support","searchParams","iterable","Symbol","blob","Blob","e","formData","arrayBuffer","isDataView","obj","DataView","prototype","isPrototypeOf","viewClasses","isArrayBufferView","ArrayBuffer","isView","indexOf","Object","toString","call","normalizeName","name","String","test","TypeError","toLowerCase","normalizeValue","value","iteratorFor","items","iterator","next","shift","done","undefined","Headers","headers","map","forEach","append","Array","isArray","header","getOwnPropertyNames","oldValue","get","has","hasOwnProperty","set","callback","thisArg","keys","push","values","entries","consumed","body","bodyUsed","Promise","reject","fileReaderReady","reader","resolve","onload","result","onerror","error","readBlobAsArrayBuffer","FileReader","promise","readAsArrayBuffer","readBlobAsText","readAsText","readArrayBufferAsText","buf","view","Uint8Array","chars","length","i","fromCharCode","join","bufferClone","slice","byteLength","buffer","Body","_initBody","_bodyInit","_bodyText","_bodyBlob","FormData","_bodyFormData","URLSearchParams","_bodyArrayBuffer","type","rejected","Error","isConsumed","byteOffset","then","text","decode","json","JSON","parse","methods","normalizeMethod","method","upcased","toUpperCase","Request","input","options","url","credentials","mode","signal","referrer","cache","reParamSearch","replace","Date","getTime","reQueryString","clone","form","trim","split","bytes","decodeURIComponent","parseHeaders","rawHeaders","preProcessedHeaders","substr","line","parts","key","Response","bodyInit","status","ok","statusText","response","redirectStatuses","redirect","RangeError","location","DOMException","err","message","stack","create","constructor","fetch","init","request","aborted","xhr","XMLHttpRequest","abortXhr","abort","getAllResponseHeaders","responseURL","responseText","setTimeout","ontimeout","onabort","fixUrl","href","open","withCredentials","responseType","setRequestHeader","addEventListener","onreadystatechange","readyState","removeEventListener","send","polyfill","check","it","Math","window","Function","domIterables","CSSRuleList","CSSStyleDeclaration","CSSValueList","ClientRectList","DOMRectList","DOMStringList","DOMTokenList","DataTransferItemList","FileList","HTMLAllCollection","HTMLCollection","HTMLFormElement","HTMLSelectElement","MediaList","MimeTypeArray","NamedNodeMap","NodeList","PaintRequestList","Plugin","PluginArray","SVGLengthList","SVGNumberList","SVGPathSegList","SVGPointList","SVGStringList","SVGTransformList","SourceBufferList","StyleSheetList","TextTrackCueList","TextTrackList","TouchList","documentAll","document","all","IS_HTMLDDA","documentAll_1","$documentAll","require$$0","isCallable","argument","require$$1","isObject","EXISTS","createElement","documentCreateElement","classList","DOMTokenListPrototype","domTokenListPrototype","fails","exec","functionBindNative","bind","NATIVE_BIND","FunctionPrototype","uncurryThisWithBind","functionUncurryThis","fn","apply","arguments","uncurryThis","stringSlice","classofRaw","functionUncurryThisClause","$String","tryToString","$TypeError","aCallable","require$$2","functionBindContext","that","classof","$Object","indexedObject","propertyIsEnumerable","isNullOrUndefined","requireObjectCoercible","toObject","ceil","floor","mathTrunc","trunc","x","n","toIntegerOrInfinity","number","min","toLength","lengthOfArrayLike","isPure","defineProperty","defineGlobalProperty","configurable","writable","SHARED","store","sharedStore","sharedModule","version","copyright","license","source","hasOwnProperty_1","hasOwn","id","postfix","random","uid","engineUserAgent","navigator","userAgent","process","Deno","versions","v8","match","engineV8Version","V8_VERSION","symbolConstructorDetection","getOwnPropertySymbols","symbol","sham","NATIVE_SYMBOL","useSymbolAsUid","shared","require$$3","require$$4","USE_SYMBOL_AS_UID","require$$5","WellKnownSymbolsStore","createWellKnownSymbol","withoutSetter","wellKnownSymbol","TO_STRING_TAG","toStringTagSupport","TO_STRING_TAG_SUPPORT","CORRECT_ARGUMENTS","tryGet","O","tag","callee","aFunction","getBuiltIn","namespace","functionToString","inspectSource","noop","empty","construct","constructorRegExp","INCORRECT_TO_STRING","isConstructorModern","isConstructor","isConstructorLegacy","called","SPECIES","$Array","arraySpeciesConstructor","originalArray","C","arraySpeciesCreate","IndexedObject","createMethod","TYPE","IS_MAP","IS_FILTER","IS_SOME","IS_EVERY","IS_FIND_INDEX","IS_FILTER_REJECT","NO_HOLES","$this","callbackfn","specificCreate","boundFunction","index","target","arrayIteration","filter","some","every","find","findIndex","filterReject","arrayMethodIsStrict","METHOD_NAME","$forEach","STRICT_METHOD","arrayForEach","descriptors","DESCRIPTORS","ie8DomDefine","a","v8PrototypeDefineBug","anObject","functionCall","objectIsPrototypeOf","isSymbol","$Symbol","getMethod","V","P","func","ordinaryToPrimitive","pref","val","valueOf","TO_PRIMITIVE","toPrimitive","exoticToPrim","toPropertyKey","IE8_DOM_DEFINE","V8_PROTOTYPE_DEFINE_BUG","$defineProperty","$getOwnPropertyDescriptor","getOwnPropertyDescriptor","ENUMERABLE","CONFIGURABLE","WRITABLE","objectDefineProperty","f","Attributes","current","enumerable","createPropertyDescriptor","bitmap","definePropertyModule","createNonEnumerableProperty","object","DOMIterables","handlePrototype","CollectionPrototype","COLLECTION_NAME","toIndexedObject","max","toAbsoluteIndex","integer","IS_INCLUDES","el","fromIndex","arrayIncludes","includes","hiddenKeys","objectKeysInternal","names","enumBugKeys","internalObjectKeys","objectKeys","objectDefineProperties","defineProperties","Properties","props","html","sharedKey","definePropertiesModule","require$$6","GT","LT","PROTOTYPE","SCRIPT","IE_PROTO","EmptyConstructor","scriptTag","content","NullProtoObjectViaActiveX","activeXDocument","write","close","temp","parentWindow","NullProtoObjectViaIFrame","iframe","JS","iframeDocument","style","display","appendChild","src","contentWindow","F","NullProtoObject","ActiveXObject","domain","objectCreate","UNSCOPABLES","ArrayPrototype","addToUnscopables","iterators","WeakMap","weakMapBasicDetection","NATIVE_WEAK_MAP","require$$7","OBJECT_ALREADY_INITIALIZED","enforce","getterFor","state","metadata","facade","STATE","internalState","$propertyIsEnumerable","NASHORN_BUG","objectPropertyIsEnumerable","descriptor","propertyIsEnumerableModule","objectGetOwnPropertyDescriptor","getDescriptor","PROPER","something","functionName","CONFIGURABLE_FUNCTION_NAME","InternalStateModule","enforceInternalState","getInternalState","CONFIGURABLE_LENGTH","TEMPLATE","makeBuiltIn","makeBuiltInModule","exports","getter","setter","arity","defineBuiltIn","simple","unsafe","nonConfigurable","nonWritable","concat","objectGetOwnPropertyNames","objectGetOwnPropertySymbols","getOwnPropertyNamesModule","getOwnPropertySymbolsModule","ownKeys","getOwnPropertyDescriptorModule","copyConstructorProperties","exceptions","replacement","isForced","feature","detection","data","normalize","POLYFILL","NATIVE","string","isForced_1","_export","TARGET","GLOBAL","STATIC","stat","FORCED","targetProperty","sourceProperty","dontCallGetSet","forced","correctPrototypeGetter","getPrototypeOf","CORRECT_PROTOTYPE_GETTER","ObjectPrototype","objectGetPrototypeOf","ITERATOR","BUGGY_SAFARI_ITERATORS","IteratorPrototype","PrototypeOfArrayIteratorPrototype","arrayIterator","NEW_ITERATOR_PROTOTYPE","iteratorsCore","setToStringTag","TAG","Iterators","returnThis","iteratorCreateConstructor","IteratorConstructor","NAME","ENUMERABLE_NEXT","functionUncurryThisAccessor","aPossiblePrototype","uncurryThisAccessor","objectSetPrototypeOf","setPrototypeOf","CORRECT_SETTER","proto","__proto__","$","FunctionName","createIteratorConstructor","require$$8","require$$9","require$$10","require$$11","require$$12","IteratorsCore","require$$13","PROPER_FUNCTION_NAME","KEYS","VALUES","ENTRIES","iteratorDefine","Iterable","DEFAULT","IS_SET","getIterationMethod","KIND","defaultIterator","IterablePrototype","INCORRECT_VALUES_NAME","nativeIterator","anyNativeIterator","CurrentIteratorPrototype","KEY","createIterResultObject","defineIterator","ARRAY_ITERATOR","setInternalState","es_array_iterator","iterated","kind","Arguments","ArrayIteratorMethods","ArrayValues","path","$indexOf","nativeIndexOf","NEGATIVE_ZERO","searchElement","MAX_SAFE_INTEGER","doesNotExceedSafeInteger","createProperty","propertyKey","arrayMethodHasSpeciesSupport","array","foo","Boolean","IS_CONCAT_SPREADABLE","IS_CONCAT_SPREADABLE_SUPPORT","isConcatSpreadable","spreadable","arg","A","k","len","E","$assign","assign","objectAssign","b","B","alphabet","chr","T","argumentsLength","S","j","objectToString","engineIsNode","defineBuiltInAccessor","setSpecies","CONSTRUCTOR_NAME","Constructor","anInstance","Prototype","aConstructor","speciesConstructor","defaultConstructor","functionApply","Reflect","arraySlice","validateArgumentsLength","passed","required","engineIsIos","IS_IOS","IS_NODE","setImmediate","clear","clearImmediate","Dispatch","MessageChannel","counter","queue","ONREADYSTATECHANGE","$location","defer","channel","port","run","runner","eventListener","event","globalPostMessageDefer","postMessage","protocol","host","handler","args","nextTick","now","port2","port1","onmessage","importScripts","removeChild","task","Queue","head","tail","add","item","entry","engineIsIosPebble","Pebble","engineIsWebosWebkit","macrotask","IS_IOS_PEBBLE","IS_WEBOS_WEBKIT","MutationObserver","WebKitMutationObserver","queueMicrotaskDescriptor","microtask","notify","toggle","node","flush","parent","exit","enter","createTextNode","observe","characterData","microtask_1","hostReportErrors","console","perform","promiseNativeConstructor","engineIsDeno","IS_DENO","engineIsBrowser","NativePromiseConstructor","IS_BROWSER","SUBCLASSING","NATIVE_PROMISE_REJECTION_EVENT","PromiseRejectionEvent","FORCED_PROMISE_CONSTRUCTOR","PROMISE_CONSTRUCTOR_SOURCE","GLOBAL_CORE_JS_PROMISE","FakePromise","promiseConstructorDetection","CONSTRUCTOR","REJECTION_EVENT","PromiseCapability","$$resolve","$$reject","newPromiseCapability","require$$14","require$$15","require$$16","require$$17","require$$18","require$$19","require$$20","PromiseConstructorDetection","require$$21","newPromiseCapabilityModule","require$$22","PROMISE","NATIVE_PROMISE_SUBCLASSING","getInternalPromiseState","NativePromisePrototype","PromiseConstructor","PromisePrototype","newGenericPromiseCapability","DISPATCH_EVENT","createEvent","dispatchEvent","UNHANDLED_REJECTION","REJECTION_HANDLED","PENDING","FULFILLED","REJECTED","HANDLED","UNHANDLED","Internal","OwnPromiseCapability","PromiseWrapper","nativeThen","isThenable","callReaction","reaction","fail","exited","rejection","onHandleUnhandled","isReject","notified","reactions","onUnhandled","reason","initEvent","IS_UNHANDLED","isUnhandled","emit","unwrap","internalReject","internalResolve","wrapper","executor","onFulfilled","onRejected","wrap","isArrayIteratorMethod","getIteratorMethod","getIterator","usingIterator","iteratorMethod","iteratorClose","innerResult","innerError","Result","stopped","ResultPrototype","iterate","unboundFunction","AS_ENTRIES","IS_RECORD","IS_ITERATOR","INTERRUPTED","iterFn","step","stop","condition","callFn","SAFE_CLOSING","iteratorWithReturn","from","checkCorrectnessOfIteration","SKIP_CLOSING","ITERATION_SUPPORT","promiseStaticsIncorrectIteration","PROMISE_STATICS_INCORRECT_ITERATION","capability","$promiseResolve","remaining","alreadyCalled","real","race","r","promiseResolve","promiseCapability","regexpFlags","hasIndices","ignoreCase","multiline","dotAll","unicode","unicodeSets","sticky","$RegExp","RegExp","UNSUPPORTED_Y","re","lastIndex","MISSED_STICKY","BROKEN_CARET","regexpStickyHelpers","regexpUnsupportedDotAll","flags","regexpUnsupportedNcg","groups","stickyHelpers","UNSUPPORTED_DOT_ALL","UNSUPPORTED_NCG","nativeReplace","nativeExec","patchedExec","charAt","UPDATES_LAST_INDEX_WRONG","re1","re2","NPCG_INCLUDED","PATCH","str","raw","reCopy","group","charsAdded","strCopy","regexpExec","Features","_classCallCheck","_createClass","canvas","getContext","Worker","msPointerEnabled","msMaxTouchPoints","pointerEnabled","maxTouchPoints","basic","webaudio","htmlAudio","capabilities","features","ui","sizes","touch","size","screen","width","height","xsmall","small","medium","large","xlarge","webgl","webAudio","charCodeAt","CONVERT_TO_STRING","pos","position","first","second","stringMultibyte","codeAt","STRING_ITERATOR","point","$filter","HAS_SPECIES_SUPPORT","$find","FIND","SKIPS_HOLES","t","PluginManager","_ref","_ref$plugins","plugins","client","Bellhop","hidden","receive","hiddenSend","setupPlugins","_this","preloads","_loop","preload","catch","preloadFail","preloadFailed","warn","l","_ret","plugin","start","uses","getPlugin","Container","_PluginManager","_inherits","_super","_createSuper","iframeOrSelector","_ref$context","context","HTMLIFrameElement","querySelector","loaded","loading","release","_context","onLoading","_assertThisInitialized","onLoadDone","onEndGame","onLocalError","initClient","trigger","remove","reset","$event","wasLoaded","setAttribute","on","connect","_onCloseFailed","_internalOpen","userPath","_ref2","_ref2$singlePlay","singlePlay","_ref2$playOptions","playOptions","playOptionsQueryString","encodeURIComponent","stringify","respond","openPath","_typeof","_openRemote","_asyncToGenerator","_regeneratorRuntime","mark","_callee","api","_ref3","_ref3$query","query","_ref3$singlePlay","_ref3$playOptions","_args","_callee$","prev","sent","success","openRemote","_x","destroy","newContext","PageVisibility","onFocus","onBlur","_onFocus","_onBlur","enabled","_enabled","onToggle","enable","$includes","BROKEN_ON_SPARSE","whitespaces","ltrim","rtrim","stringTrim","end","non","stringTrimForced","$trim","forcedStringTrimMethod","regExpFlags","RegExpPrototype","regexpGetFlags","R","$toString","getRegExpFlags","TO_STRING","nativeToString","NOT_GENERIC","INCORRECT_NAME","pattern","SavedData","dbName","db","IDBOpen","dbVersion","additions","deletions","indexedDB","onsuccess","onupgradeneeded","stores","createObjectStore","storeName","indexes","storeObject","transaction","objectStore","createIndex","indexName","keyPath","deleteIndex","deleteObjectStore","IDBDeleteDB","deleteDatabase","IDBAdd","tx","oncomplete","IDBUpdate","updateRequest","put","IDBRemove","_this2","delete","IDBRead","_this3","readRequest","IDBGetIndexKeys","_this4","count","getAllKeysRequest","getAllKeys","IDBReadAll","getAll","IDBGetVersion","dBOpenRequest","IDBClose","localStorage","removeItem","sessionStorage","tempOnly","setItem","read","getItem","BasePlugin","_preload","sendAllProperties","_","sendProperty","prop","warningText","ButtonPlugin","_BasePlugin","sendMutes","container","_disableButton","button","HTMLButtonElement","_setMuteProp","muted","changeMutedState","htmlButton","HTMLElement","MATCH","isRegexp","isRegExp","notARegexp","correctIsRegexpLogic","regexp","error1","error2","notARegExp","correctIsRegExpLogic","stringIndexOf","searchString","arraySliceSimple","fin","$getOwnPropertyNames","windowNames","getWindowNames","objectGetOwnPropertyNamesExternal","arrayBufferNonExtensible","isExtensible","ARRAY_BUFFER_NON_EXTENSIBLE","$isExtensible","FAILS_ON_PRIMITIVES","objectIsExtensible","freezing","preventExtensions","getOwnPropertyNamesExternalModule","FREEZING","REQUIRED","METADATA","setMetadata","objectID","weakData","fastKey","getWeakData","onFreeze","meta","splice","internalMetadataModule","inheritIfRequired","dummy","Wrapper","NewTarget","NewTargetPrototype","InternalMetadataModule","collection","common","IS_WEAK","ADDER","NativeConstructor","NativePrototype","exported","fixMethod","uncurriedNativeMethod","REPLACE","getConstructor","instance","HASNT_CHAINING","THROWS_ON_PRIMITIVES","ACCEPT_ITERABLES","BUGGY_ZERO","$instance","setStrong","defineBuiltIns","internalStateGetterFor","collectionStrong","last","define","getEntry","previous","removed","ITERATOR_NAME","getInternalCollectionState","getInternalIteratorState","Set","nativeKeys","$map","TO_ENTRIES","objectToArray","$values","RadioGroup","selector","controlName","_ref$featureName","featureName","defaultValue","pluginName","radioElements","querySelectorAll","radioGroup","_possibleConstructorReturn","radio","checked","hasOnly","valuesArray","hasDuplicateValues","_toConsumableArray","enableRadioEvents","callBack","disableRadioEvents","displayRadios","resetState","RadioGroupPlugin","cssSelector","supportedValues","initialValue","radioCount","selectors","_currentValue","radioGroups","setUpRadios","radioGroupsLength","property","newValue","thisNumberValue","IS_PURE","NUMBER","NativeNumber","NumberPrototype","toNumeric","primValue","toNumber","third","radix","maxCode","digits","code","NaN","parseInt","calledWithNew","NumberWrapper","Number","Slider","slider","control","_ref$min","_ref$max","_ref$step","_ref$defaultValue","sliderValue","setUpSlider","sliderRange","enableSliderEvents","disableSliderEvents","displaySlider","Button","onClick","displayButton","enableButton","addClass","className","SliderPlugin","_ref$minValue","minValue","_ref$maxValue","maxValue","sliders","setUpSliders","slidersLength","currentValue","DEFAULT_CAPTIONS_STYLES","background","color","edge","font","align","DEFAULT_COLOR_STYLE","INVERTED_COLOR_STYLE","FONT_SIZE_VALUES","COLOR_VALUES","ALIGN_VALUES","CaptionsStylePlugin","_ButtonPlugin","fontSizeRadios","colorRadios","alignmentRadios","_ref$defaultFontSize","defaultFontSize","_ref$defaultColor","defaultColor","_ref$defaultAlignment","defaultAlignment","captionsStyles","captionStyleKey","fontSizeSelectors","colorSelectors","alignmentSelectors","setUpFontSizeRadios","setUpColorRadios","setUpAlignmentRadios","_captionsMuted","alignmentRadiosLength","fontSizeRadiosLength","colorRadiosLength","onColorChange","onAlignmentChange","onFontSizeChange","_iterator","_createForOfIteratorHelper","radios","_step","s","setCaptionsStyles","styles","clearCaptionsStyles","_iterator2","_step2","getCaptionsStyles","_this5","CaptionsTogglePlugin","captionsButtons","_captionsButtons","captionsButtonClick","captionsButtonLength","captionsToggleKey","captionsMuted","HelpPlugin","helpButtons","_helpButtons","helpButtonClick","paused","_helpEnabled","onPause","helpButtonsLength","helpEnabled","getAttribute","hints","PausePlugin","pauseButton","manageOwnVisibility","_manageOwnVisibility","_appBlurred","_containerBlurred","_focusTimer","_isManualPause","_keepFocus","_paused","focusApp","manageFocus","onKeepFocus","onPauseToggle","pauseDisabled","_pauseButton","pageVisibility","onContainerFocus","onContainerBlur","pauseKey","hasDom","focus","blurApp","blur","clearTimeout","pause","disablePause","buttons","SoundPlugin","soundButtons","musicButtons","sfxButtons","voButtons","soundSliders","musicSliders","sfxSliders","voSliders","saved","soundMutedKey","_soundMuted","_musicMuted","_voMuted","_sfxMuted","soundVolume","musicVolume","sfxVolume","voVolume","soundVolumeKey","newSlider","musicVolumeKey","sfxVolumeKey","voVolumeKey","onSoundToggle","soundKey","onMusicToggle","onSFXToggle","onVOToggle","soundSlidersLength","musicSlidersLength","sfxSlidersLength","voSlidersLength","soundButtonsLength","musicButtonsLength","sfxButtonsLength","voButtonsLength","onSoundVolumeChange","onMusicVolumeChange","onSFXVolumeChange","onVOVolumeChange","soundMuted","_checkSoundMute","musicMuted","voMuted","sfxMuted","setMuteProp","element","musicMutedKey","sfxMutedKey","voMutedKey","_soundButton","_musicButton","_sfxButton","_voButton","SavedDataHandler","savedData","record","sd","UserDataPlugin","onUserDataRemove","onUserDataRead","onUserDataWrite","onIDBAdd","onIDBOpen","onIDBRead","onIDBReadAll","onIDBRemove","onIDBUpdate","onIDBClose","onIDBGetVersion","onIDBDeleteDB","savedDataHandler","_ref3$data","_ref4","_ref4$data","_ref4$data$dbVersion","_ref4$data$additions","_ref4$data$deletions","_ref5","_this6","_ref5$data","_ref6","_this7","_ref6$data","_ref7","_this8","_ref7$data","_ref8","_this9","_ref8$data","_ref9","_this10","_ref9$data","_ref10","_this11","sdh","_ref11","_this12","_ref12","_this13","_ref12$data","PointerSizePlugin","_SliderPlugin","pointerSliders","_ref$defaultPointerSi","defaultPointerSize","pointerSizeKey","onPointerSizeChange","ButtonSizePlugin","buttonSliders","_ref$defaultButtonSiz","defaultButtonSize","buttonSizeKey","onButtonSizeChange","ControlSensitivityPlugin","sensitivitySliders","_ref$defaultSensitivi","defaultSensitivity","controlSensitivityKey","onControlSensitivityChange","KeyboardMapPlugin","keyContainers","_ref$customClassName","customClassName","bindKey","onKeyButtonClick","keyBindings","activekeyButton","sendAfterFetch","canEmit","keyContainersLength","textContent","preventDefault","actionName","currentKey","keyBindingKey","keyBinding","defaultKey","label","htmlFor","LayersPlugin","layersSliders","layersSliderKey","onLayerValueChange","SUPPORTED_POSITIONS","HUDPlugin","_RadioGroupPlugin","hudSelectorRadios","hudPositionKey","positions","onHUDSelect","hudPosition","COLOR_BLIND_TYPES","ColorVisionPlugin","colorVisionRadios","colorVisionKey","colors","colorVision","colorDropdownsLength","HitAreaScalePlugin","hitAreaScaleSliders","_ref$defaultHitAreaSc","defaultHitAreaScale","hitAreaScaleKey","onHitAreaScaleChange","DragThresholdScalePlugin","dragThresholdScaleSliders","_ref$defaultDragThres","defaultDragThresholdScale","dragThresholdScaleKey","onDragThresholdScaleChange","HealthPlugin","healthSliders","_ref$defaultHealth","defaultHealth","healthKey","onHealthChange","ObjectCountPlugin","objectCountSliders","_ref$defaultObjectCou","defaultObjectCount","objectCountKey","onObjectCountChange","CompletionPercentagePlugin","completionPercentageSliders","_ref$defaultCompletio","defaultCompletionPercentage","completionPercentageKey","onCompletionPercentageChange","SpeedScalePlugin","speedScaleSliders","_ref$defaultSpeedScal","defaultSpeedScale","speedScaleKey","onSpeedScaleChange","TimersScalePlugin","timersScaleSliders","_ref$defaultTimersSca","defaultTimersScale","timersScaleKey","onTimersScaleChange","InputCountPlugin","inputCountSliders","_ref$defaultInputCoun","defaultInputCount","inputCountKey","onInputCountChange","FullScreenPlugin","buttonSelector","fullscreenKey","_toggleButtons","iFrame","log","toggleButton","toggleFullScreen","fullscreenElement","requestFullscreen","exitFullscreen","webkitIsFullscreen","mozFullScreen"],"mappings":"AAAA,IAAIA,QAAM,GACP,OAAOC,UAAU,KAAK,WAAW,IAAIA,UAAU,IAC/C,OAAOC,IAAI,KAAK,WAAW,IAAIA,IAAK,IACpC,OAAOF,QAAM,KAAK,WAAW,IAAIA,QAAO,CAAA;AAE3C,IAAIG,OA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map b/e2e/client.js.map index 40dd694..4e8af92 100644 --- a/e2e/client.js.map +++ b/e2e/client.js.map @@ -1 +1 @@ -{"version":3,"file":"client.js","sources":["../node_modules/bellhop-iframe/dist/bellhop.js"],"sourcesContent":["function t(t,e){return t(e={exports:{}},e.exports),e.exports}var e=t((function(t){function e(t){return(e=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t})(t)}function n(r){return\"function\"==typeof Symbol&&\"symbol\"===e(Symbol.iterator)?t.exports=n=function(t){return e(t)}:t.exports=n=function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":e(t)},n(r)}t.exports=n}));var n=function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")};function r(t,e){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:0;this._listeners[t]||(this._listeners[t]=[]),e._priority=parseInt(n)||0,-1===this._listeners[t].indexOf(e)&&(this._listeners[t].push(e),this._listeners[t].length>1&&this._listeners[t].sort(this.listenerSorter))}},{key:\"listenerSorter\",value:function(t,e){return t._priority-e._priority}},{key:\"off\",value:function(t,e){if(void 0!==this._listeners[t])if(void 0!==e){var n=this._listeners[t].indexOf(e);-11&&void 0!==arguments[1]?arguments[1]:{};if(\"string\"==typeof t&&(t={type:t,data:\"object\"===e(n)&&null!==n?n:{}}),void 0!==this._listeners[t.type])for(var r=this._listeners[t.type].length-1;r>=0;r--)this._listeners[t.type][r](t)}},{key:\"destroy\",value:function(){this._listeners={}}}]),t}(),s=t((function(t){var e=function(t){var e,n=Object.prototype,r=n.hasOwnProperty,o=\"function\"==typeof Symbol?Symbol:{},i=o.iterator||\"@@iterator\",s=o.asyncIterator||\"@@asyncIterator\",a=o.toStringTag||\"@@toStringTag\";function c(t,e,n,r){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),s=new S(r||[]);return i._invoke=function(t,e,n){var r=h;return function(o,i){if(r===f)throw new Error(\"Generator is already running\");if(r===p){if(\"throw\"===o)throw i;return P()}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var a=O(s,n);if(a){if(a===y)continue;return a}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(r===h)throw r=p,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);r=f;var c=u(t,e,n);if(\"normal\"===c.type){if(r=n.done?p:l,c.arg===y)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(r=p,n.method=\"throw\",n.arg=c.arg)}}}(t,n,s),i}function u(t,e,n){try{return{type:\"normal\",arg:t.call(e,n)}}catch(t){return{type:\"throw\",arg:t}}}t.wrap=c;var h=\"suspendedStart\",l=\"suspendedYield\",f=\"executing\",p=\"completed\",y={};function d(){}function v(){}function g(){}var m={};m[i]=function(){return this};var w=Object.getPrototypeOf,b=w&&w(w(j([])));b&&b!==n&&r.call(b,i)&&(m=b);var _=g.prototype=d.prototype=Object.create(m);function x(t){[\"next\",\"throw\",\"return\"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function L(t){function e(n,o,i,s){var a=u(t[n],t,o);if(\"throw\"!==a.type){var c=a.arg,h=c.value;return h&&\"object\"==typeof h&&r.call(h,\"__await\")?Promise.resolve(h.__await).then((function(t){e(\"next\",t,i,s)}),(function(t){e(\"throw\",t,i,s)})):Promise.resolve(h).then((function(t){c.value=t,i(c)}),(function(t){return e(\"throw\",t,i,s)}))}s(a.arg)}var n;this._invoke=function(t,r){function o(){return new Promise((function(n,o){e(t,r,n,o)}))}return n=n?n.then(o,o):o()}}function O(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,\"throw\"===n.method){if(t.iterator.return&&(n.method=\"return\",n.arg=e,O(t,n),\"throw\"===n.method))return y;n.method=\"throw\",n.arg=new TypeError(\"The iterator does not provide a 'throw' method\")}return y}var o=u(r,t.iterator,n.arg);if(\"throw\"===o.type)return n.method=\"throw\",n.arg=o.arg,n.delegate=null,y;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,\"return\"!==n.method&&(n.method=\"next\",n.arg=e),n.delegate=null,y):i:(n.method=\"throw\",n.arg=new TypeError(\"iterator result is not an object\"),n.delegate=null,y)}function E(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 k(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(E,this),this.reset(!0)}function j(t){if(t){var n=t[i];if(n)return n.call(t);if(\"function\"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,s=function n(){for(;++o=0;--i){var s=this.tryEntries[i],a=s.completion;if(\"root\"===s.tryLoc)return o(\"end\");if(s.tryLoc<=this.prev){var c=r.call(s,\"catchLoc\"),u=r.call(s,\"finallyLoc\");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,\"finallyLoc\")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),y}},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;k(n)}return o}}throw new Error(\"illegal catch attempt\")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},\"next\"===this.method&&(this.arg=e),y}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function(\"r\",\"regeneratorRuntime = r\")(e)}}));var a=function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t};var c=function(t,n){return!n||\"object\"!==e(n)&&\"function\"!=typeof n?a(t):n},u=t((function(t){function e(n){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},e(n)}t.exports=e}));var h=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t},l=t((function(t){function e(n,r,o){return\"undefined\"!=typeof Reflect&&Reflect.get?t.exports=e=Reflect.get:t.exports=e=function(t,e,n){var r=h(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}},e(n,r,o||n)}t.exports=e})),f=t((function(t){function e(n,r){return t.exports=e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},e(n,r)}t.exports=e}));var p=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&&f(t,e)},y=function(t){function r(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100*Math.random()|0;return n(this,r),(t=c(this,u(r).call(this))).id=\"BELLHOP:\".concat(e),t.connected=!1,t.isChild=!0,t.connecting=!1,t.debug=!1,t.origin=\"*\",t._sendLater=[],t.iframe=null,t.receive=t.receive.bind(a(t)),t}return p(r,i),o(r,[{key:\"receive\",value:function(t){if(this.target===t.source)if(this.logDebugMessage(!0,t),\"connected\"===t.data)this.onConnectionReceived(t.data);else{var n=t.data;if(\"string\"==typeof n)try{n=JSON.parse(n)}catch(t){console.warn(\"Bellhop error: \",t)}this.connected&&\"object\"===e(n)&&n.type&&this.trigger(n)}}},{key:\"onConnectionReceived\",value:function(t){if(this.connecting=!1,this.connected=!0,!this.isChild){if(!this.target)return;this.target.postMessage(t,this.origin)}for(var e=0;e1&&void 0!==arguments[1]?arguments[1]:\"*\";this.connecting||(this.disconnect(),this.connecting=!0,t instanceof HTMLIFrameElement&&(this.iframe=t),this.isChild=void 0===t,this.supported=!0,this.isChild&&(this.supported=window!=t),this.origin=e,window.addEventListener(\"message\",this.receive),this.isChild&&(window===this.target?this.trigger(\"failed\"):this.target.postMessage(\"connected\",this.origin)))}},{key:\"disconnect\",value:function(){this.connected=!1,this.connecting=!1,this.origin=null,this.iframe=null,this.isChild=!0,this._sendLater.length=0,window.removeEventListener(\"message\",this.receive)}},{key:\"send\",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(\"string\"!=typeof t)throw\"The event type must be a string\";var n={type:t,data:e};this.logDebugMessage(!1,n),this.connecting?this._sendLater.push(n):this.target.postMessage(JSON.stringify(n),this.origin)}},{key:\"fetch\",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!this.connecting&&!this.connected)throw\"No connection, please call connect() first\";var i=function t(r){o&&n.off(r.type,t),e(r)};this.on(t,i),this.send(t,r)}},{key:\"respond\",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this,o=function t(o){return s.async((function(i){for(;;)switch(i.prev=i.next){case 0:if(n&&r.off(o,t),\"function\"!=typeof e){i.next=10;break}return i.t0=r,i.t1=o.type,i.next=6,s.awrap(e());case 6:i.t2=i.sent,i.t0.send.call(i.t0,i.t1,i.t2),i.next=11;break;case 10:r.send(o.type,e);case 11:case\"end\":return i.stop()}}))};this.on(t,o)}},{key:\"logDebugMessage\",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1?arguments[1]:void 0;this.debug&&\"function\"==typeof this.debug?this.debug({isChild:this.isChild,received:t,message:e}):this.debug&&console.log(\"Bellhop Instance (\".concat(this.isChild?\"Child\":\"Parent\",\") \").concat(t?\"Receieved\":\"Sent\"),e)}},{key:\"destroy\",value:function(){l(u(r.prototype),\"destroy\",this).call(this),this.disconnect(),this._sendLater.length=0}},{key:\"target\",get:function(){return this.isChild?window.parent:this.iframe.contentWindow}}]),r}();export{y as Bellhop,i as BellhopEventDispatcher};\n//# sourceMappingURL=bellhop.js.map\n"],"names":["e","t","Symbol","iterator","constructor","prototype","n","r","exports"],"mappings":"kFAASA,SAAAA,EAASC,GAAA,OAAkFD,EAArD,mBAAXE,QAAoD,iBAApBA,OAAOC,SAAoC,SAAkBF,GAAA,cAAqBA,CAAA,EAA4B,SAAkBA,GAAA,OAAcA,GAAyB,mBAAXC,QAAyBD,EAAIG,cAAgBF,QAAUD,IAAQC,OAAOG,UAAY,gBAAkBJ,CAAA,GAA0BA,EAAA,CAAA,SAErVK,EAAQC,GAAA,MACO,mBAAXL,QAAuD,WAA9BF,EAASE,OAAOC,UAClDF,EAAAO,QAAiBF,EAAU,SAAiBL,GAAA,OACnCD,EAASC,EAGlBA,EAAAA,EAAAO,QAAiBF,EAAU,SAAiBL,GAAA,OACnCA,GAAyB,mBAAXC,QAAyBD,EAAIG,cAAgBF,QAAUD,IAAQC,OAAOG,UAAY,SAAWL,EAASC,IAIxHK,EAAQC,EAAA,CAGjBN,EAAAO,QAAiBF,CAAA"} \ No newline at end of file +{"version":3,"file":"client.js","sources":["../node_modules/bellhop-iframe/dist/bellhop.js"],"sourcesContent":["function t(t,e){return t(e={exports:{}},e.exports),e.exports}var e=t((function(t){function e(t){return(e=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t})(t)}function n(r){return\"function\"==typeof Symbol&&\"symbol\"===e(Symbol.iterator)?t.exports=n=function(t){return e(t)}:t.exports=n=function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":e(t)},n(r)}t.exports=n}));var n=function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")};function r(t,e){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:0;this._listeners[t]||(this._listeners[t]=[]),e._priority=parseInt(n)||0,-1===this._listeners[t].indexOf(e)&&(this._listeners[t].push(e),this._listeners[t].length>1&&this._listeners[t].sort(this.listenerSorter))}},{key:\"listenerSorter\",value:function(t,e){return t._priority-e._priority}},{key:\"off\",value:function(t,e){if(void 0!==this._listeners[t])if(void 0!==e){var n=this._listeners[t].indexOf(e);-11&&void 0!==arguments[1]?arguments[1]:{};if(\"string\"==typeof t&&(t={type:t,data:\"object\"===e(n)&&null!==n?n:{}}),void 0!==this._listeners[t.type])for(var r=this._listeners[t.type].length-1;r>=0;r--)this._listeners[t.type][r](t)}},{key:\"destroy\",value:function(){this._listeners={}}}]),t}(),s=t((function(t){var e=function(t){var e,n=Object.prototype,r=n.hasOwnProperty,o=\"function\"==typeof Symbol?Symbol:{},i=o.iterator||\"@@iterator\",s=o.asyncIterator||\"@@asyncIterator\",a=o.toStringTag||\"@@toStringTag\";function c(t,e,n,r){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),s=new S(r||[]);return i._invoke=function(t,e,n){var r=h;return function(o,i){if(r===f)throw new Error(\"Generator is already running\");if(r===p){if(\"throw\"===o)throw i;return P()}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var a=O(s,n);if(a){if(a===y)continue;return a}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(r===h)throw r=p,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);r=f;var c=u(t,e,n);if(\"normal\"===c.type){if(r=n.done?p:l,c.arg===y)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(r=p,n.method=\"throw\",n.arg=c.arg)}}}(t,n,s),i}function u(t,e,n){try{return{type:\"normal\",arg:t.call(e,n)}}catch(t){return{type:\"throw\",arg:t}}}t.wrap=c;var h=\"suspendedStart\",l=\"suspendedYield\",f=\"executing\",p=\"completed\",y={};function d(){}function v(){}function g(){}var m={};m[i]=function(){return this};var w=Object.getPrototypeOf,b=w&&w(w(j([])));b&&b!==n&&r.call(b,i)&&(m=b);var _=g.prototype=d.prototype=Object.create(m);function x(t){[\"next\",\"throw\",\"return\"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function L(t){function e(n,o,i,s){var a=u(t[n],t,o);if(\"throw\"!==a.type){var c=a.arg,h=c.value;return h&&\"object\"==typeof h&&r.call(h,\"__await\")?Promise.resolve(h.__await).then((function(t){e(\"next\",t,i,s)}),(function(t){e(\"throw\",t,i,s)})):Promise.resolve(h).then((function(t){c.value=t,i(c)}),(function(t){return e(\"throw\",t,i,s)}))}s(a.arg)}var n;this._invoke=function(t,r){function o(){return new Promise((function(n,o){e(t,r,n,o)}))}return n=n?n.then(o,o):o()}}function O(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,\"throw\"===n.method){if(t.iterator.return&&(n.method=\"return\",n.arg=e,O(t,n),\"throw\"===n.method))return y;n.method=\"throw\",n.arg=new TypeError(\"The iterator does not provide a 'throw' method\")}return y}var o=u(r,t.iterator,n.arg);if(\"throw\"===o.type)return n.method=\"throw\",n.arg=o.arg,n.delegate=null,y;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,\"return\"!==n.method&&(n.method=\"next\",n.arg=e),n.delegate=null,y):i:(n.method=\"throw\",n.arg=new TypeError(\"iterator result is not an object\"),n.delegate=null,y)}function E(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 k(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(E,this),this.reset(!0)}function j(t){if(t){var n=t[i];if(n)return n.call(t);if(\"function\"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,s=function n(){for(;++o=0;--i){var s=this.tryEntries[i],a=s.completion;if(\"root\"===s.tryLoc)return o(\"end\");if(s.tryLoc<=this.prev){var c=r.call(s,\"catchLoc\"),u=r.call(s,\"finallyLoc\");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,\"finallyLoc\")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),y}},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;k(n)}return o}}throw new Error(\"illegal catch attempt\")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},\"next\"===this.method&&(this.arg=e),y}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function(\"r\",\"regeneratorRuntime = r\")(e)}}));var a=function(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t};var c=function(t,n){return!n||\"object\"!==e(n)&&\"function\"!=typeof n?a(t):n},u=t((function(t){function e(n){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},e(n)}t.exports=e}));var h=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t},l=t((function(t){function e(n,r,o){return\"undefined\"!=typeof Reflect&&Reflect.get?t.exports=e=Reflect.get:t.exports=e=function(t,e,n){var r=h(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}},e(n,r,o||n)}t.exports=e})),f=t((function(t){function e(n,r){return t.exports=e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},e(n,r)}t.exports=e}));var p=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&&f(t,e)},y=function(t){function r(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100*Math.random()|0;return n(this,r),(t=c(this,u(r).call(this))).id=\"BELLHOP:\".concat(e),t.connected=!1,t.isChild=!0,t.connecting=!1,t.debug=!1,t.origin=\"*\",t._sendLater=[],t.iframe=null,t.receive=t.receive.bind(a(t)),t}return p(r,i),o(r,[{key:\"receive\",value:function(t){if(this.target===t.source)if(this.logDebugMessage(!0,t),\"connected\"===t.data)this.onConnectionReceived(t.data);else{var n=t.data;if(\"string\"==typeof n)try{n=JSON.parse(n)}catch(t){console.warn(\"Bellhop error: \",t)}this.connected&&\"object\"===e(n)&&n.type&&this.trigger(n)}}},{key:\"onConnectionReceived\",value:function(t){if(this.connecting=!1,this.connected=!0,!this.isChild){if(!this.target)return;this.target.postMessage(t,this.origin)}for(var e=0;e1&&void 0!==arguments[1]?arguments[1]:\"*\";this.connecting||(this.disconnect(),this.connecting=!0,t instanceof HTMLIFrameElement&&(this.iframe=t),this.isChild=void 0===t,this.supported=!0,this.isChild&&(this.supported=window!=t),this.origin=e,window.addEventListener(\"message\",this.receive),this.isChild&&(window===this.target?this.trigger(\"failed\"):this.target.postMessage(\"connected\",this.origin)))}},{key:\"disconnect\",value:function(){this.connected=!1,this.connecting=!1,this.origin=null,this.iframe=null,this.isChild=!0,this._sendLater.length=0,window.removeEventListener(\"message\",this.receive)}},{key:\"send\",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(\"string\"!=typeof t)throw\"The event type must be a string\";var n={type:t,data:e};this.logDebugMessage(!1,n),this.connecting?this._sendLater.push(n):this.target.postMessage(JSON.stringify(n),this.origin)}},{key:\"fetch\",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!this.connecting&&!this.connected)throw\"No connection, please call connect() first\";var i=function t(r){o&&n.off(r.type,t),e(r)};this.on(t,i),this.send(t,r)}},{key:\"respond\",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this,o=function t(o){return s.async((function(i){for(;;)switch(i.prev=i.next){case 0:if(n&&r.off(o,t),\"function\"!=typeof e){i.next=10;break}return i.t0=r,i.t1=o.type,i.next=6,s.awrap(e());case 6:i.t2=i.sent,i.t0.send.call(i.t0,i.t1,i.t2),i.next=11;break;case 10:r.send(o.type,e);case 11:case\"end\":return i.stop()}}))};this.on(t,o)}},{key:\"logDebugMessage\",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1?arguments[1]:void 0;this.debug&&\"function\"==typeof this.debug?this.debug({isChild:this.isChild,received:t,message:e}):this.debug&&console.log(\"Bellhop Instance (\".concat(this.isChild?\"Child\":\"Parent\",\") \").concat(t?\"Receieved\":\"Sent\"),e)}},{key:\"destroy\",value:function(){l(u(r.prototype),\"destroy\",this).call(this),this.disconnect(),this._sendLater.length=0}},{key:\"target\",get:function(){return this.isChild?window.parent:this.iframe.contentWindow}}]),r}();export{y as Bellhop,i as BellhopEventDispatcher};\n//# sourceMappingURL=bellhop.js.map\n"],"names":["e","t","Symbol","iterator","constructor","prototype","n","r","exports"],"mappings":";;;;;;AAASA,EAAAA,SAAAA,CAAAA,CAASC,CAAA,EAAA;IAAA,OAAkFD,CAAAA,CAAA,GAArD,UAAA,IAAA,OAAXE,MAAA,IAAoD,QAApBA,IAAAA,OAAAA,MAAA,CAAOC,QAAA,GAAoC,UAAkBF,CAAA,EAAA;AAAA,MAAA,OAAA,OAAqBA,CAAA,CAAA;AAAA,KAAA,GAA4B,UAAkBA,CAAA,EAAA;AAAA,MAAA,OAAcA,CAAA,IAAyB,UAAA,IAAA,OAAXC,MAAA,IAAyBD,CAAA,CAAIG,WAAA,KAAgBF,MAAA,IAAUD,CAAA,KAAQC,MAAA,CAAOG,SAAA,GAAY,kBAAkBJ,CAAA,CAAA;AAAA,KAAA,EAA0BA,CAAA,CAAA,CAAA;AAAA,GAAA;AAAA,EAAA,SAErVK,EAAQC,CAAA,EAAA;AAAA,IAAA,OACO,qBAAXL,MAAA,IAAuD,aAA9BF,CAAA,CAASE,MAAA,CAAOC,QAAA,CAClDF,GAAAA,CAAA,CAAAO,OAAA,GAAiBF,CAAA,GAAU,UAAiBL,CAAA,EAAA;MAAA,OACnCD,CAAA,CAASC,CAAA,CAAA,CAAA;KAGlBA,GAAAA,CAAA,CAAAO,OAAA,GAAiBF,CAAA,GAAU,UAAiBL,CAAA,EAAA;MAAA,OACnCA,CAAA,IAAyB,UAAXC,IAAAA,OAAAA,MAAA,IAAyBD,CAAA,CAAIG,WAAA,KAAgBF,MAAA,IAAUD,CAAA,KAAQC,MAAA,CAAOG,SAAA,GAAY,QAAWL,GAAAA,CAAA,CAASC,CAAA,CAAA,CAAA;KAIxHK,EAAAA,CAAA,CAAQC,CAAA,CAAA,CAAA;AAAA,GAAA;EAGjBN,CAAA,CAAAO,OAAA,GAAiBF,CAAA,CAAA;AAAA,CAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 5d192ee..262cfcb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,9 +1,7791 @@ { "name": "springroll-container", "version": "2.4.3", - "lockfileVersion": 1, + "lockfileVersion": 2, "requires": true, + "packages": { + "": { + "name": "springroll-container", + "version": "2.4.3", + "license": "MIT", + "dependencies": { + "@babel/polyfill": "^7.4.3", + "bellhop-iframe": "^3.2.0", + "core-js": "^3.6.5", + "http-proxy": "^1.18.1", + "whatwg-fetch": "^3.0.0" + }, + "devDependencies": { + "@babel/core": "^7.4.3", + "@babel/preset-env": "^7.4.3", + "@rollup/plugin-babel": "^6.0.3", + "@rollup/plugin-commonjs": "^24.0.1", + "@rollup/plugin-eslint": "^9.0.3", + "@rollup/plugin-json": "^6.0.0", + "@rollup/plugin-node-resolve": "^15.0.1", + "@rollup/plugin-terser": "^0.4.0", + "babel-loader": "^8.0.5", + "chai": "^4.2.0", + "dotenv": "^7.0.0", + "eslint": "^8.43.0", + "eslint-plugin-import": "^2.17.2", + "eslint-plugin-node": "^8.0.1", + "eslint-plugin-prettier": "^3.0.1", + "karma": "^6.3.17", + "karma-babel-preprocessor": "^8.0.0", + "karma-browserstack-launcher": "^1.5.1", + "karma-chai": "^0.1.0", + "karma-chrome-launcher": "^2.2.0", + "karma-cli": "^2.0.0", + "karma-es6-shim": "^1.0.0", + "karma-firefox-launcher": "^1.1.0", + "karma-html": "^1.0.5", + "karma-mocha": "^2.0.1", + "karma-requirejs": "^1.1.0", + "karma-rollup-preprocessor": "^7.0.5", + "mocha": "^10.2.0", + "platform": "^1.3.5", + "requirejs": "^2.3.6", + "rollup": "3.17.2", + "sinon": "^7.5.0" + } + }, + "node_modules/@aashutoshrathi/word-wrap": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz", + "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@ampproject/remapping": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.0.tgz", + "integrity": "sha512-qRmjj8nj9qmLTQXXmaR1cck3UXSRMPrbsLJAasZpF+t3riI71BXed5ebIOYwQntykeZuhjsdweEc9BxH5Jc26w==", + "dev": true, + "dependencies": { + "@jridgewell/gen-mapping": "^0.1.0", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.18.6.tgz", + "integrity": "sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==", + "dev": true, + "dependencies": { + "@babel/highlight": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.21.0.tgz", + "integrity": "sha512-gMuZsmsgxk/ENC3O/fRw5QY8A9/uxQbbCEypnLIiYYc/qVJtEV7ouxC3EllIIwNzMqAQee5tanFabWsUOutS7g==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.21.0.tgz", + "integrity": "sha512-PuxUbxcW6ZYe656yL3EAhpy7qXKq0DmYsrJLpbB8XrsCP9Nm+XCg9XFMb5vIDliPD7+U/+M+QJlH17XOcB7eXA==", + "dev": true, + "dependencies": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.18.6", + "@babel/generator": "^7.21.0", + "@babel/helper-compilation-targets": "^7.20.7", + "@babel/helper-module-transforms": "^7.21.0", + "@babel/helpers": "^7.21.0", + "@babel/parser": "^7.21.0", + "@babel/template": "^7.20.7", + "@babel/traverse": "^7.21.0", + "@babel/types": "^7.21.0", + "convert-source-map": "^1.7.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.2", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/generator": { + "version": "7.21.1", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.21.1.tgz", + "integrity": "sha512-1lT45bAYlQhFn/BHivJs43AiW2rg3/UbLyShGfF3C0KmHvO5fSghWd5kBJy30kpRRucGzXStvnnCFniCR2kXAA==", + "dev": true, + "dependencies": { + "@babel/types": "^7.21.0", + "@jridgewell/gen-mapping": "^0.3.2", + "@jridgewell/trace-mapping": "^0.3.17", + "jsesc": "^2.5.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/generator/node_modules/@jridgewell/gen-mapping": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", + "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", + "dev": true, + "dependencies": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/helper-annotate-as-pure": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.18.6.tgz", + "integrity": "sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA==", + "dev": true, + "dependencies": { + "@babel/types": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-builder-binary-assignment-operator-visitor": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.18.9.tgz", + "integrity": "sha512-yFQ0YCHoIqarl8BCRwBL8ulYUaZpz3bNsA7oFepAzee+8/+ImtADXNOmO5vJvsPff3qi+hvpkY/NYBTrBQgdNw==", + "dev": true, + "dependencies": { + "@babel/helper-explode-assignable-expression": "^7.18.6", + "@babel/types": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.20.7.tgz", + "integrity": "sha512-4tGORmfQcrc+bvrjb5y3dG9Mx1IOZjsHqQVUz7XCNHO+iTmqxWnVg3KRygjGmpRLJGdQSKuvFinbIb0CnZwHAQ==", + "dev": true, + "dependencies": { + "@babel/compat-data": "^7.20.5", + "@babel/helper-validator-option": "^7.18.6", + "browserslist": "^4.21.3", + "lru-cache": "^5.1.1", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-create-class-features-plugin": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.21.0.tgz", + "integrity": "sha512-Q8wNiMIdwsv5la5SPxNYzzkPnjgC0Sy0i7jLkVOCdllu/xcVNkr3TeZzbHBJrj+XXRqzX5uCyCoV9eu6xUG7KQ==", + "dev": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-function-name": "^7.21.0", + "@babel/helper-member-expression-to-functions": "^7.21.0", + "@babel/helper-optimise-call-expression": "^7.18.6", + "@babel/helper-replace-supers": "^7.20.7", + "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", + "@babel/helper-split-export-declaration": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-create-regexp-features-plugin": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.21.0.tgz", + "integrity": "sha512-N+LaFW/auRSWdx7SHD/HiARwXQju1vXTW4fKr4u5SgBUTm51OKEjKgj+cs00ggW3kEvNqwErnlwuq7Y3xBe4eg==", + "dev": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "regexpu-core": "^5.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-define-polyfill-provider": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.3.3.tgz", + "integrity": "sha512-z5aQKU4IzbqCC1XH0nAqfsFLMVSo22SBKUc0BxGrLkolTdPTructy0ToNnlO2zA4j9Q/7pjMZf0DSY+DSTYzww==", + "dev": true, + "dependencies": { + "@babel/helper-compilation-targets": "^7.17.7", + "@babel/helper-plugin-utils": "^7.16.7", + "debug": "^4.1.1", + "lodash.debounce": "^4.0.8", + "resolve": "^1.14.2", + "semver": "^6.1.2" + }, + "peerDependencies": { + "@babel/core": "^7.4.0-0" + } + }, + "node_modules/@babel/helper-environment-visitor": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.9.tgz", + "integrity": "sha512-3r/aACDJ3fhQ/EVgFy0hpj8oHyHpQc+LPtJoY9SzTThAsStm4Ptegq92vqKoE3vD706ZVFWITnMnxucw+S9Ipg==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-explode-assignable-expression": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.18.6.tgz", + "integrity": "sha512-eyAYAsQmB80jNfg4baAtLeWAQHfHFiR483rzFK+BhETlGZaQC9bsfrugfXDCbRHLQbIA7U5NxhhOxN7p/dWIcg==", + "dev": true, + "dependencies": { + "@babel/types": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-function-name": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.21.0.tgz", + "integrity": "sha512-HfK1aMRanKHpxemaY2gqBmL04iAPOPRj7DxtNbiDOrJK+gdwkiNRVpCpUJYbUT+aZyemKN8brqTOxzCaG6ExRg==", + "dev": true, + "dependencies": { + "@babel/template": "^7.20.7", + "@babel/types": "^7.21.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-hoist-variables": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz", + "integrity": "sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==", + "dev": true, + "dependencies": { + "@babel/types": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-member-expression-to-functions": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.21.0.tgz", + "integrity": "sha512-Muu8cdZwNN6mRRNG6lAYErJ5X3bRevgYR2O8wN0yn7jJSnGDu6eG59RfT29JHxGUovyfrh6Pj0XzmR7drNVL3Q==", + "dev": true, + "dependencies": { + "@babel/types": "^7.21.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz", + "integrity": "sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA==", + "dev": true, + "dependencies": { + "@babel/types": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.21.0.tgz", + "integrity": "sha512-eD/JQ21IG2i1FraJnTMbUarAUkA7G988ofehG5MDCRXaUU91rEBJuCeSoou2Sk1y4RbLYXzqEg1QLwEmRU4qcQ==", + "dev": true, + "dependencies": { + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-module-imports": "^7.18.6", + "@babel/helper-simple-access": "^7.20.2", + "@babel/helper-split-export-declaration": "^7.18.6", + "@babel/helper-validator-identifier": "^7.19.1", + "@babel/template": "^7.20.7", + "@babel/traverse": "^7.21.0", + "@babel/types": "^7.21.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-optimise-call-expression": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.18.6.tgz", + "integrity": "sha512-HP59oD9/fEHQkdcbgFCnbmgH5vIQTJbxh2yf+CdM89/glUNnuzr87Q8GIjGEnOktTROemO0Pe0iPAYbqZuOUiA==", + "dev": true, + "dependencies": { + "@babel/types": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.20.2", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.20.2.tgz", + "integrity": "sha512-8RvlJG2mj4huQ4pZ+rU9lqKi9ZKiRmuvGuM2HlWmkmgOhbs6zEAw6IEiJ5cQqGbDzGZOhwuOQNtZMi/ENLjZoQ==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-remap-async-to-generator": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.18.9.tgz", + "integrity": "sha512-dI7q50YKd8BAv3VEfgg7PS7yD3Rtbi2J1XMXaalXO0W0164hYLnh8zpjRS0mte9MfVp/tltvr/cfdXPvJr1opA==", + "dev": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-wrap-function": "^7.18.9", + "@babel/types": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-replace-supers": { + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.20.7.tgz", + "integrity": "sha512-vujDMtB6LVfNW13jhlCrp48QNslK6JXi7lQG736HVbHz/mbf4Dc7tIRh1Xf5C0rF7BP8iiSxGMCmY6Ci1ven3A==", + "dev": true, + "dependencies": { + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-member-expression-to-functions": "^7.20.7", + "@babel/helper-optimise-call-expression": "^7.18.6", + "@babel/template": "^7.20.7", + "@babel/traverse": "^7.20.7", + "@babel/types": "^7.20.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-simple-access": { + "version": "7.20.2", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.20.2.tgz", + "integrity": "sha512-+0woI/WPq59IrqDYbVGfshjT5Dmk/nnbdpcF8SnMhhXObpTq2KNBdLFRFrkVdbDOyUmHBCxzm5FHV1rACIkIbA==", + "dev": true, + "dependencies": { + "@babel/types": "^7.20.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-skip-transparent-expression-wrappers": { + "version": "7.20.0", + "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.20.0.tgz", + "integrity": "sha512-5y1JYeNKfvnT8sZcK9DVRtpTbGiomYIHviSP3OQWmDPU3DeH4a1ZlT/N2lyQ5P8egjcRaT/Y9aNqUxK0WsnIIg==", + "dev": true, + "dependencies": { + "@babel/types": "^7.20.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-split-export-declaration": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz", + "integrity": "sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==", + "dev": true, + "dependencies": { + "@babel/types": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.19.4", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.19.4.tgz", + "integrity": "sha512-nHtDoQcuqFmwYNYPz3Rah5ph2p8PFeFCsZk9A/48dPc/rGocJ5J3hAAZ7pb76VWX3fZKu+uEr/FhH5jLx7umrw==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.19.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", + "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.21.0.tgz", + "integrity": "sha512-rmL/B8/f0mKS2baE9ZpyTcTavvEuWhTTW8amjzXNvYG4AwBsqTLikfXsEofsJEfKHf+HQVQbFOHy6o+4cnC/fQ==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-wrap-function": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.20.5.tgz", + "integrity": "sha512-bYMxIWK5mh+TgXGVqAtnu5Yn1un+v8DDZtqyzKRLUzrh70Eal2O3aZ7aPYiMADO4uKlkzOiRiZ6GX5q3qxvW9Q==", + "dev": true, + "dependencies": { + "@babel/helper-function-name": "^7.19.0", + "@babel/template": "^7.18.10", + "@babel/traverse": "^7.20.5", + "@babel/types": "^7.20.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.21.0.tgz", + "integrity": "sha512-XXve0CBtOW0pd7MRzzmoyuSj0e3SEzj8pgyFxnTT1NJZL38BD1MK7yYrm8yefRPIDvNNe14xR4FdbHwpInD4rA==", + "dev": true, + "dependencies": { + "@babel/template": "^7.20.7", + "@babel/traverse": "^7.21.0", + "@babel/types": "^7.21.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz", + "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.18.6", + "chalk": "^2.0.0", + "js-tokens": "^4.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.21.1", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.21.1.tgz", + "integrity": "sha512-JzhBFpkuhBNYUY7qs+wTzNmyCWUHEaAFpQQD2YfU1rPL38/L43Wvid0fFkiOCnHvsGncRZgEPyGnltABLcVDTg==", + "dev": true, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.18.6.tgz", + "integrity": "sha512-Dgxsyg54Fx1d4Nge8UnvTrED63vrwOdPmyvPzlNN/boaliRP54pm3pGzZD1SJUwrBA+Cs/xdG8kXX6Mn/RfISQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.20.7.tgz", + "integrity": "sha512-sbr9+wNE5aXMBBFBICk01tt7sBf2Oc9ikRFEcem/ZORup9IMUdNhW7/wVLEbbtlWOsEubJet46mHAL2C8+2jKQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", + "@babel/plugin-proposal-optional-chaining": "^7.20.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.13.0" + } + }, + "node_modules/@babel/plugin-proposal-async-generator-functions": { + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.20.7.tgz", + "integrity": "sha512-xMbiLsn/8RK7Wq7VeVytytS2L6qE69bXPB10YCmMdDZbKF4okCqY74pI/jJQ/8U0b/F6NrT2+14b8/P9/3AMGA==", + "dev": true, + "dependencies": { + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-remap-async-to-generator": "^7.18.9", + "@babel/plugin-syntax-async-generators": "^7.8.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-class-properties": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.18.6.tgz", + "integrity": "sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ==", + "dev": true, + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-class-static-block": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-static-block/-/plugin-proposal-class-static-block-7.21.0.tgz", + "integrity": "sha512-XP5G9MWNUskFuP30IfFSEFB0Z6HzLIUcjYM4bYOPHXl7eiJ9HFv8tWj6TXTN5QODiEhDZAeI4hLok2iHFFV4hw==", + "dev": true, + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.21.0", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/plugin-syntax-class-static-block": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.12.0" + } + }, + "node_modules/@babel/plugin-proposal-dynamic-import": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.18.6.tgz", + "integrity": "sha512-1auuwmK+Rz13SJj36R+jqFPMJWyKEDd7lLSdOj4oJK0UTgGueSAtkrCvz9ewmgyU/P941Rv2fQwZJN8s6QruXw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/plugin-syntax-dynamic-import": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-export-namespace-from": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.18.9.tgz", + "integrity": "sha512-k1NtHyOMvlDDFeb9G5PhUXuGj8m/wiwojgQVEhJ/fsVsMCpLyOP4h0uGEjYJKrRI+EVPlb5Jk+Gt9P97lOGwtA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.9", + "@babel/plugin-syntax-export-namespace-from": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-json-strings": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.18.6.tgz", + "integrity": "sha512-lr1peyn9kOdbYc0xr0OdHTZ5FMqS6Di+H0Fz2I/JwMzGmzJETNeOFq2pBySw6X/KFL5EWDjlJuMsUGRFb8fQgQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/plugin-syntax-json-strings": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-logical-assignment-operators": { + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-logical-assignment-operators/-/plugin-proposal-logical-assignment-operators-7.20.7.tgz", + "integrity": "sha512-y7C7cZgpMIjWlKE5T7eJwp+tnRYM89HmRvWM5EQuB5BoHEONjmQ8lSNmBUwOyy/GFRsohJED51YBF79hE1djug==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-nullish-coalescing-operator": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.18.6.tgz", + "integrity": "sha512-wQxQzxYeJqHcfppzBDnm1yAY0jSRkUXR2z8RePZYrKwMKgMlE8+Z6LUno+bd6LvbGh8Gltvy74+9pIYkr+XkKA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-numeric-separator": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.18.6.tgz", + "integrity": "sha512-ozlZFogPqoLm8WBr5Z8UckIoE4YQ5KESVcNudyXOR8uqIkliTEgJ3RoketfG6pmzLdeZF0H/wjE9/cCEitBl7Q==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/plugin-syntax-numeric-separator": "^7.10.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-object-rest-spread": { + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.20.7.tgz", + "integrity": "sha512-d2S98yCiLxDVmBmE8UjGcfPvNEUbA1U5q5WxaWFUGRzJSVAZqm5W6MbPct0jxnegUZ0niLeNX+IOzEs7wYg9Dg==", + "dev": true, + "dependencies": { + "@babel/compat-data": "^7.20.5", + "@babel/helper-compilation-targets": "^7.20.7", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-transform-parameters": "^7.20.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-optional-catch-binding": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.18.6.tgz", + "integrity": "sha512-Q40HEhs9DJQyaZfUjjn6vE8Cv4GmMHCYuMGIWUnlxH6400VGxOuwWsPt4FxXxJkC/5eOzgn0z21M9gMT4MOhbw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-optional-chaining": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.21.0.tgz", + "integrity": "sha512-p4zeefM72gpmEe2fkUr/OnOXpWEf8nAgk7ZYVqqfFiyIG7oFfVZcCrU64hWn5xp4tQ9LkV4bTIa5rD0KANpKNA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", + "@babel/plugin-syntax-optional-chaining": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-private-methods": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.18.6.tgz", + "integrity": "sha512-nutsvktDItsNn4rpGItSNV2sz1XwS+nfU0Rg8aCx3W3NOKVzdMjJRu0O5OkgDp3ZGICSTbgRpxZoWsxoKRvbeA==", + "dev": true, + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-private-property-in-object": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0.tgz", + "integrity": "sha512-ha4zfehbJjc5MmXBlHec1igel5TJXXLDDRbuJ4+XT2TJcyD9/V1919BA8gMvsdHcNMBy4WBUBiRb3nw/EQUtBw==", + "dev": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-create-class-features-plugin": "^7.21.0", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-unicode-property-regex": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.18.6.tgz", + "integrity": "sha512-2BShG/d5yoZyXZfVePH91urL5wTG6ASZU9M4o03lKK8u8UW1y08OMttBSOADTcJrnPMpvDXRG3G8fyLh4ovs8w==", + "dev": true, + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", + "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", + "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.12.13" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-static-block": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", + "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-dynamic-import": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz", + "integrity": "sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-export-namespace-from": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz", + "integrity": "sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.3" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-assertions": { + "version": "7.20.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.20.0.tgz", + "integrity": "sha512-IUh1vakzNoWalR8ch/areW7qFopR2AEw03JlG7BbrDqmQ4X3q9uuipQwSGrUn7oGiemKjtSLDhNtQHzMHr1JdQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.19.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", + "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", + "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", + "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", + "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", + "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-private-property-in-object": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", + "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-top-level-await": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", + "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-arrow-functions": { + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.20.7.tgz", + "integrity": "sha512-3poA5E7dzDomxj9WXWwuD6A5F3kc7VXwIJO+E+J8qtDtS+pXPAhrgEyh+9GBwBgPq1Z+bB+/JD60lp5jsN7JPQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-async-to-generator": { + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.20.7.tgz", + "integrity": "sha512-Uo5gwHPT9vgnSXQxqGtpdufUiWp96gk7yiP4Mp5bm1QMkEmLXBO7PAGYbKoJ6DhAwiNkcHFBol/x5zZZkL/t0Q==", + "dev": true, + "dependencies": { + "@babel/helper-module-imports": "^7.18.6", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-remap-async-to-generator": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-block-scoped-functions": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.18.6.tgz", + "integrity": "sha512-ExUcOqpPWnliRcPqves5HJcJOvHvIIWfuS4sroBUenPuMdmW+SMHDakmtS7qOo13sVppmUijqeTv7qqGsvURpQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-block-scoping": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.21.0.tgz", + "integrity": "sha512-Mdrbunoh9SxwFZapeHVrwFmri16+oYotcZysSzhNIVDwIAb1UV+kvnxULSYq9J3/q5MDG+4X6w8QVgD1zhBXNQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-classes": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.21.0.tgz", + "integrity": "sha512-RZhbYTCEUAe6ntPehC4hlslPWosNHDox+vAs4On/mCLRLfoDVHf6hVEd7kuxr1RnHwJmxFfUM3cZiZRmPxJPXQ==", + "dev": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-compilation-targets": "^7.20.7", + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-function-name": "^7.21.0", + "@babel/helper-optimise-call-expression": "^7.18.6", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-replace-supers": "^7.20.7", + "@babel/helper-split-export-declaration": "^7.18.6", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-computed-properties": { + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.20.7.tgz", + "integrity": "sha512-Lz7MvBK6DTjElHAmfu6bfANzKcxpyNPeYBGEafyA6E5HtRpjpZwU+u7Qrgz/2OR0z+5TvKYbPdphfSaAcZBrYQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/template": "^7.20.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-destructuring": { + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.20.7.tgz", + "integrity": "sha512-Xwg403sRrZb81IVB79ZPqNQME23yhugYVqgTxAhT99h485F4f+GMELFhhOsscDUB7HCswepKeCKLn/GZvUKoBA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-dotall-regex": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.18.6.tgz", + "integrity": "sha512-6S3jpun1eEbAxq7TdjLotAsl4WpQI9DxfkycRcKrjhQYzU87qpXdknpBg/e+TdcMehqGnLFi7tnFUBR02Vq6wg==", + "dev": true, + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-duplicate-keys": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.18.9.tgz", + "integrity": "sha512-d2bmXCtZXYc59/0SanQKbiWINadaJXqtvIQIzd4+hNwkWBgyCd5F/2t1kXoUdvPMrxzPvhK6EMQRROxsue+mfw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-exponentiation-operator": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.18.6.tgz", + "integrity": "sha512-wzEtc0+2c88FVR34aQmiz56dxEkxr2g8DQb/KfaFa1JYXOFVsbhvAonFN6PwVWj++fKmku8NP80plJ5Et4wqHw==", + "dev": true, + "dependencies": { + "@babel/helper-builder-binary-assignment-operator-visitor": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-for-of": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.21.0.tgz", + "integrity": "sha512-LlUYlydgDkKpIY7mcBWvyPPmMcOphEyYA27Ef4xpbh1IiDNLr0kZsos2nf92vz3IccvJI25QUwp86Eo5s6HmBQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-function-name": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.18.9.tgz", + "integrity": "sha512-WvIBoRPaJQ5yVHzcnJFor7oS5Ls0PYixlTYE63lCj2RtdQEl15M68FXQlxnG6wdraJIXRdR7KI+hQ7q/9QjrCQ==", + "dev": true, + "dependencies": { + "@babel/helper-compilation-targets": "^7.18.9", + "@babel/helper-function-name": "^7.18.9", + "@babel/helper-plugin-utils": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-literals": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.18.9.tgz", + "integrity": "sha512-IFQDSRoTPnrAIrI5zoZv73IFeZu2dhu6irxQjY9rNjTT53VmKg9fenjvoiOWOkJ6mm4jKVPtdMzBY98Fp4Z4cg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-member-expression-literals": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.18.6.tgz", + "integrity": "sha512-qSF1ihLGO3q+/g48k85tUjD033C29TNTVB2paCwZPVmOsjn9pClvYYrM2VeJpBY2bcNkuny0YUyTNRyRxJ54KA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-amd": { + "version": "7.20.11", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.20.11.tgz", + "integrity": "sha512-NuzCt5IIYOW0O30UvqktzHYR2ud5bOWbY0yaxWZ6G+aFzOMJvrs5YHNikrbdaT15+KNO31nPOy5Fim3ku6Zb5g==", + "dev": true, + "dependencies": { + "@babel/helper-module-transforms": "^7.20.11", + "@babel/helper-plugin-utils": "^7.20.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-commonjs": { + "version": "7.20.11", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.20.11.tgz", + "integrity": "sha512-S8e1f7WQ7cimJQ51JkAaDrEtohVEitXjgCGAS2N8S31Y42E+kWwfSz83LYz57QdBm7q9diARVqanIaH2oVgQnw==", + "dev": true, + "dependencies": { + "@babel/helper-module-transforms": "^7.20.11", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-simple-access": "^7.20.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-systemjs": { + "version": "7.20.11", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.20.11.tgz", + "integrity": "sha512-vVu5g9BPQKSFEmvt2TA4Da5N+QVS66EX21d8uoOihC+OCpUoGvzVsXeqFdtAEfVa5BILAeFt+U7yVmLbQnAJmw==", + "dev": true, + "dependencies": { + "@babel/helper-hoist-variables": "^7.18.6", + "@babel/helper-module-transforms": "^7.20.11", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-validator-identifier": "^7.19.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-umd": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.18.6.tgz", + "integrity": "sha512-dcegErExVeXcRqNtkRU/z8WlBLnvD4MRnHgNs3MytRO1Mn1sHRyhbcpYbVMGclAqOjdW+9cfkdZno9dFdfKLfQ==", + "dev": true, + "dependencies": { + "@babel/helper-module-transforms": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-named-capturing-groups-regex": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.20.5.tgz", + "integrity": "sha512-mOW4tTzi5iTLnw+78iEq3gr8Aoq4WNRGpmSlrogqaiCBoR1HFhpU4JkpQFOHfeYx3ReVIFWOQJS4aZBRvuZ6mA==", + "dev": true, + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.20.5", + "@babel/helper-plugin-utils": "^7.20.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-transform-new-target": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.18.6.tgz", + "integrity": "sha512-DjwFA/9Iu3Z+vrAn+8pBUGcjhxKguSMlsFqeCKbhb9BAV756v0krzVK04CRDi/4aqmk8BsHb4a/gFcaA5joXRw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-object-super": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.18.6.tgz", + "integrity": "sha512-uvGz6zk+pZoS1aTZrOvrbj6Pp/kK2mp45t2B+bTDre2UgsZZ8EZLSJtUg7m/no0zOJUWgFONpB7Zv9W2tSaFlA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/helper-replace-supers": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-parameters": { + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.20.7.tgz", + "integrity": "sha512-WiWBIkeHKVOSYPO0pWkxGPfKeWrCJyD3NJ53+Lrp/QMSZbsVPovrVl2aWZ19D/LTVnaDv5Ap7GJ/B2CTOZdrfA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-property-literals": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.18.6.tgz", + "integrity": "sha512-cYcs6qlgafTud3PAzrrRNbQtfpQ8+y/+M5tKmksS9+M1ckbH6kzY8MrexEM9mcA6JDsukE19iIRvAyYl463sMg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-regenerator": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.20.5.tgz", + "integrity": "sha512-kW/oO7HPBtntbsahzQ0qSE3tFvkFwnbozz3NWFhLGqH75vLEg+sCGngLlhVkePlCs3Jv0dBBHDzCHxNiFAQKCQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2", + "regenerator-transform": "^0.15.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-reserved-words": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.18.6.tgz", + "integrity": "sha512-oX/4MyMoypzHjFrT1CdivfKZ+XvIPMFXwwxHp/r0Ddy2Vuomt4HDFGmft1TAY2yiTKiNSsh3kjBAzcM8kSdsjA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-shorthand-properties": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.18.6.tgz", + "integrity": "sha512-eCLXXJqv8okzg86ywZJbRn19YJHU4XUa55oz2wbHhaQVn/MM+XhukiT7SYqp/7o00dg52Rj51Ny+Ecw4oyoygw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-spread": { + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.20.7.tgz", + "integrity": "sha512-ewBbHQ+1U/VnH1fxltbJqDeWBU1oNLG8Dj11uIv3xVf7nrQu0bPGe5Rf716r7K5Qz+SqtAOVswoVunoiBtGhxw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-sticky-regex": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.18.6.tgz", + "integrity": "sha512-kfiDrDQ+PBsQDO85yj1icueWMfGfJFKN1KCkndygtu/C9+XUfydLC8Iv5UYJqRwy4zk8EcplRxEOeLyjq1gm6Q==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-template-literals": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.18.9.tgz", + "integrity": "sha512-S8cOWfT82gTezpYOiVaGHrCbhlHgKhQt8XH5ES46P2XWmX92yisoZywf5km75wv5sYcXDUCLMmMxOLCtthDgMA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-typeof-symbol": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.18.9.tgz", + "integrity": "sha512-SRfwTtF11G2aemAZWivL7PD+C9z52v9EvMqH9BuYbabyPuKUvSWks3oCg6041pT925L4zVFqaVBeECwsmlguEw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-escapes": { + "version": "7.18.10", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.18.10.tgz", + "integrity": "sha512-kKAdAI+YzPgGY/ftStBFXTI1LZFju38rYThnfMykS+IXy8BVx+res7s2fxf1l8I35DV2T97ezo6+SGrXz6B3iQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-regex": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.18.6.tgz", + "integrity": "sha512-gE7A6Lt7YLnNOL3Pb9BNeZvi+d8l7tcRrG4+pwJjK9hD2xX4mEvjlQW60G9EEmfXVYRPv9VRQcyegIVHCql/AA==", + "dev": true, + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/polyfill": { + "version": "7.12.1", + "resolved": "https://registry.npmjs.org/@babel/polyfill/-/polyfill-7.12.1.tgz", + "integrity": "sha512-X0pi0V6gxLi6lFZpGmeNa4zxtwEmCs42isWLNjZZDE0Y8yVfgu0T2OAHlzBbdYlqbW/YXVvoBHpATEM+goCj8g==", + "deprecated": "🚨 This package has been deprecated in favor of separate inclusion of a polyfill and regenerator-runtime (when needed). See the @babel/polyfill docs (https://babeljs.io/docs/en/babel-polyfill) for more information.", + "dependencies": { + "core-js": "^2.6.5", + "regenerator-runtime": "^0.13.4" + } + }, + "node_modules/@babel/polyfill/node_modules/core-js": { + "version": "2.6.12", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.12.tgz", + "integrity": "sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==", + "deprecated": "core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.", + "hasInstallScript": true + }, + "node_modules/@babel/preset-env": { + "version": "7.20.2", + "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.20.2.tgz", + "integrity": "sha512-1G0efQEWR1EHkKvKHqbG+IN/QdgwfByUpM5V5QroDzGV2t3S/WXNQd693cHiHTlCFMpr9B6FkPFXDA2lQcKoDg==", + "dev": true, + "dependencies": { + "@babel/compat-data": "^7.20.1", + "@babel/helper-compilation-targets": "^7.20.0", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-validator-option": "^7.18.6", + "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.18.6", + "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.18.9", + "@babel/plugin-proposal-async-generator-functions": "^7.20.1", + "@babel/plugin-proposal-class-properties": "^7.18.6", + "@babel/plugin-proposal-class-static-block": "^7.18.6", + "@babel/plugin-proposal-dynamic-import": "^7.18.6", + "@babel/plugin-proposal-export-namespace-from": "^7.18.9", + "@babel/plugin-proposal-json-strings": "^7.18.6", + "@babel/plugin-proposal-logical-assignment-operators": "^7.18.9", + "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6", + "@babel/plugin-proposal-numeric-separator": "^7.18.6", + "@babel/plugin-proposal-object-rest-spread": "^7.20.2", + "@babel/plugin-proposal-optional-catch-binding": "^7.18.6", + "@babel/plugin-proposal-optional-chaining": "^7.18.9", + "@babel/plugin-proposal-private-methods": "^7.18.6", + "@babel/plugin-proposal-private-property-in-object": "^7.18.6", + "@babel/plugin-proposal-unicode-property-regex": "^7.18.6", + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-class-properties": "^7.12.13", + "@babel/plugin-syntax-class-static-block": "^7.14.5", + "@babel/plugin-syntax-dynamic-import": "^7.8.3", + "@babel/plugin-syntax-export-namespace-from": "^7.8.3", + "@babel/plugin-syntax-import-assertions": "^7.20.0", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.10.4", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5", + "@babel/plugin-syntax-top-level-await": "^7.14.5", + "@babel/plugin-transform-arrow-functions": "^7.18.6", + "@babel/plugin-transform-async-to-generator": "^7.18.6", + "@babel/plugin-transform-block-scoped-functions": "^7.18.6", + "@babel/plugin-transform-block-scoping": "^7.20.2", + "@babel/plugin-transform-classes": "^7.20.2", + "@babel/plugin-transform-computed-properties": "^7.18.9", + "@babel/plugin-transform-destructuring": "^7.20.2", + "@babel/plugin-transform-dotall-regex": "^7.18.6", + "@babel/plugin-transform-duplicate-keys": "^7.18.9", + "@babel/plugin-transform-exponentiation-operator": "^7.18.6", + "@babel/plugin-transform-for-of": "^7.18.8", + "@babel/plugin-transform-function-name": "^7.18.9", + "@babel/plugin-transform-literals": "^7.18.9", + "@babel/plugin-transform-member-expression-literals": "^7.18.6", + "@babel/plugin-transform-modules-amd": "^7.19.6", + "@babel/plugin-transform-modules-commonjs": "^7.19.6", + "@babel/plugin-transform-modules-systemjs": "^7.19.6", + "@babel/plugin-transform-modules-umd": "^7.18.6", + "@babel/plugin-transform-named-capturing-groups-regex": "^7.19.1", + "@babel/plugin-transform-new-target": "^7.18.6", + "@babel/plugin-transform-object-super": "^7.18.6", + "@babel/plugin-transform-parameters": "^7.20.1", + "@babel/plugin-transform-property-literals": "^7.18.6", + "@babel/plugin-transform-regenerator": "^7.18.6", + "@babel/plugin-transform-reserved-words": "^7.18.6", + "@babel/plugin-transform-shorthand-properties": "^7.18.6", + "@babel/plugin-transform-spread": "^7.19.0", + "@babel/plugin-transform-sticky-regex": "^7.18.6", + "@babel/plugin-transform-template-literals": "^7.18.9", + "@babel/plugin-transform-typeof-symbol": "^7.18.9", + "@babel/plugin-transform-unicode-escapes": "^7.18.10", + "@babel/plugin-transform-unicode-regex": "^7.18.6", + "@babel/preset-modules": "^0.1.5", + "@babel/types": "^7.20.2", + "babel-plugin-polyfill-corejs2": "^0.3.3", + "babel-plugin-polyfill-corejs3": "^0.6.0", + "babel-plugin-polyfill-regenerator": "^0.4.1", + "core-js-compat": "^3.25.1", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/preset-modules": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.5.tgz", + "integrity": "sha512-A57th6YRG7oR3cq/yt/Y84MvGgE0eJG2F1JLhKuyG+jFxEgrd/HAMJatiFtmOiZurz+0DkrvbheCLaV5f2JfjA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/plugin-proposal-unicode-property-regex": "^7.4.4", + "@babel/plugin-transform-dotall-regex": "^7.4.4", + "@babel/types": "^7.4.4", + "esutils": "^2.0.2" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/regjsgen": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/@babel/regjsgen/-/regjsgen-0.8.0.tgz", + "integrity": "sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA==", + "dev": true + }, + "node_modules/@babel/runtime": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.21.0.tgz", + "integrity": "sha512-xwII0//EObnq89Ji5AKYQaRYiW/nZ3llSv29d49IuxPhKbtJoLP+9QUUZ4nVragQVtaVGeZrpB+ZtG/Pdy/POw==", + "dev": true, + "dependencies": { + "regenerator-runtime": "^0.13.11" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/template": { + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.20.7.tgz", + "integrity": "sha512-8SegXApWe6VoNw0r9JHpSteLKTpTiLZ4rMlGIm9JQ18KiCtyQiAMEazujAHrUS5flrcqYZa75ukev3P6QmUwUw==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.18.6", + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.21.0.tgz", + "integrity": "sha512-Xdt2P1H4LKTO8ApPfnO1KmzYMFpp7D/EinoXzLYN/cHcBNrVCAkAtGUcXnHXrl/VGktureU6fkQrHSBE2URfoA==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.18.6", + "@babel/generator": "^7.21.0", + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-function-name": "^7.21.0", + "@babel/helper-hoist-variables": "^7.18.6", + "@babel/helper-split-export-declaration": "^7.18.6", + "@babel/parser": "^7.21.0", + "@babel/types": "^7.21.0", + "debug": "^4.1.0", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.21.0.tgz", + "integrity": "sha512-uR7NWq2VNFnDi7EYqiRz2Jv/VQIu38tu64Zy8TX2nQFQ6etJ9V/Rr2msW8BS132mum2rL645qpDrLtAJtVpuow==", + "dev": true, + "dependencies": { + "@babel/helper-string-parser": "^7.19.4", + "@babel/helper-validator-identifier": "^7.19.1", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@colors/colors": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@colors/colors/-/colors-1.5.0.tgz", + "integrity": "sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==", + "dev": true, + "engines": { + "node": ">=0.1.90" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", + "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", + "dev": true, + "dependencies": { + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz", + "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.5.1", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.5.1.tgz", + "integrity": "sha512-Z5ba73P98O1KUYCCJTUeVpja9RcGoMdncZ6T49FCUl2lN38JtCJ+3WgIDBv0AuY4WChU5PmtJmOCTlN6FZTFKQ==", + "dev": true, + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.0.3.tgz", + "integrity": "sha512-+5gy6OQfk+xx3q0d6jGZZC3f3KzAkXc/IanVxd1is/VIIziRqqt3ongQz0FiTUXqTk0c7aDB3OaFuKnuSoJicQ==", + "dev": true, + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.5.2", + "globals": "^13.19.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/eslintrc/node_modules/globals": { + "version": "13.20.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", + "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", + "dev": true, + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@eslint/js": { + "version": "8.43.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.43.0.tgz", + "integrity": "sha512-s2UHCoiXfxMvmfzqoN+vrQ84ahUSYde9qNO1MdxmoEhyHWsfmwOpFlwYV+ePJEVc7gFnATGUi376WowX1N7tFg==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/@humanwhocodes/config-array": { + "version": "0.11.10", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.10.tgz", + "integrity": "sha512-KVVjQmNUepDVGXNuoRRdmmEjruj0KfiGSbS8LVc12LMsWDQzRXJ0qdhN8L8uUigKpfEHRhlaQFY0ib1tnUbNeQ==", + "dev": true, + "dependencies": { + "@humanwhocodes/object-schema": "^1.2.1", + "debug": "^4.1.1", + "minimatch": "^3.0.5" + }, + "engines": { + "node": ">=10.10.0" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/object-schema": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", + "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", + "dev": true + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz", + "integrity": "sha512-sQXCasFk+U8lWYEe66WxRDOE9PjVz4vSM51fTu3Hw+ClTpUSQb718772vH3pyS5pShp6lvQM7SxgIDXXXmOX7w==", + "dev": true, + "dependencies": { + "@jridgewell/set-array": "^1.0.0", + "@jridgewell/sourcemap-codec": "^1.4.10" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", + "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/set-array": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", + "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/source-map": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.3.tgz", + "integrity": "sha512-b+fsZXeLYi9fEULmfBrhxn4IrPlINf8fiNarzTof004v3lFdntdwa9PF7vFJqm3mg7s+ScJMxXaE3Acp1irZcg==", + "dev": true, + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + } + }, + "node_modules/@jridgewell/source-map/node_modules/@jridgewell/gen-mapping": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", + "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", + "dev": true, + "dependencies": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.14", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", + "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", + "dev": true + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.17", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.17.tgz", + "integrity": "sha512-MCNzAp77qzKca9+W/+I0+sEpaUnZoeasnghNeVc41VZCEKaCH73Vq3BZZ/SzWIgrqE4H4ceI+p+b6C0mHf9T4g==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "3.1.0", + "@jridgewell/sourcemap-codec": "1.4.14" + } + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@rollup/plugin-babel": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/@rollup/plugin-babel/-/plugin-babel-6.0.3.tgz", + "integrity": "sha512-fKImZKppa1A/gX73eg4JGo+8kQr/q1HBQaCGKECZ0v4YBBv3lFqi14+7xyApECzvkLTHCifx+7ntcrvtBIRcpg==", + "dev": true, + "dependencies": { + "@babel/helper-module-imports": "^7.18.6", + "@rollup/pluginutils": "^5.0.1" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0", + "@types/babel__core": "^7.1.9", + "rollup": "^1.20.0||^2.0.0||^3.0.0" + }, + "peerDependenciesMeta": { + "@types/babel__core": { + "optional": true + }, + "rollup": { + "optional": true + } + } + }, + "node_modules/@rollup/plugin-commonjs": { + "version": "24.1.0", + "resolved": "https://registry.npmjs.org/@rollup/plugin-commonjs/-/plugin-commonjs-24.1.0.tgz", + "integrity": "sha512-eSL45hjhCWI0jCCXcNtLVqM5N1JlBGvlFfY0m6oOYnLCJ6N0qEXoZql4sY2MOUArzhH4SA/qBpTxvvZp2Sc+DQ==", + "dev": true, + "dependencies": { + "@rollup/pluginutils": "^5.0.1", + "commondir": "^1.0.1", + "estree-walker": "^2.0.2", + "glob": "^8.0.3", + "is-reference": "1.2.1", + "magic-string": "^0.27.0" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "rollup": "^2.68.0||^3.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, + "node_modules/@rollup/plugin-commonjs/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/@rollup/plugin-commonjs/node_modules/glob": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz", + "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^5.0.1", + "once": "^1.3.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@rollup/plugin-commonjs/node_modules/magic-string": { + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.27.0.tgz", + "integrity": "sha512-8UnnX2PeRAPZuN12svgR9j7M1uWMovg/CEnIwIG0LFkXSJJe4PdfUGiTGl8V9bsBHFUtfVINcSyYxd7q+kx9fA==", + "dev": true, + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.4.13" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@rollup/plugin-commonjs/node_modules/minimatch": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", + "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@rollup/plugin-eslint": { + "version": "9.0.4", + "resolved": "https://registry.npmjs.org/@rollup/plugin-eslint/-/plugin-eslint-9.0.4.tgz", + "integrity": "sha512-JtXb8RFMsRB6pMsVAo7qR3wopb7XT7XlxnqQQk/5zdrhmCOgF/OoKBYWLzK0yaUXNfRZeuly9VLt6VgXIBrvkw==", + "dev": true, + "dependencies": { + "@rollup/pluginutils": "^5.0.1", + "eslint": "^8.24.0" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "rollup": "^1.20.0||^2.0.0||^3.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, + "node_modules/@rollup/plugin-json": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/@rollup/plugin-json/-/plugin-json-6.0.0.tgz", + "integrity": "sha512-i/4C5Jrdr1XUarRhVu27EEwjt4GObltD7c+MkCIpO2QIbojw8MUs+CCTqOphQi3Qtg1FLmYt+l+6YeoIf51J7w==", + "dev": true, + "dependencies": { + "@rollup/pluginutils": "^5.0.1" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "rollup": "^1.20.0||^2.0.0||^3.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, + "node_modules/@rollup/plugin-node-resolve": { + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-15.1.0.tgz", + "integrity": "sha512-xeZHCgsiZ9pzYVgAo9580eCGqwh/XCEUM9q6iQfGNocjgkufHAqC3exA+45URvhiYV8sBF9RlBai650eNs7AsA==", + "dev": true, + "dependencies": { + "@rollup/pluginutils": "^5.0.1", + "@types/resolve": "1.20.2", + "deepmerge": "^4.2.2", + "is-builtin-module": "^3.2.1", + "is-module": "^1.0.0", + "resolve": "^1.22.1" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "rollup": "^2.78.0||^3.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, + "node_modules/@rollup/plugin-terser": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/@rollup/plugin-terser/-/plugin-terser-0.4.3.tgz", + "integrity": "sha512-EF0oejTMtkyhrkwCdg0HJ0IpkcaVg1MMSf2olHb2Jp+1mnLM04OhjpJWGma4HobiDTF0WCyViWuvadyE9ch2XA==", + "dev": true, + "dependencies": { + "serialize-javascript": "^6.0.1", + "smob": "^1.0.0", + "terser": "^5.17.4" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "rollup": "^2.x || ^3.x" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, + "node_modules/@rollup/plugin-terser/node_modules/serialize-javascript": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.1.tgz", + "integrity": "sha512-owoXEFjWRllis8/M1Q+Cw5k8ZH40e3zhp/ovX+Xr/vi1qj6QesbyXXViFbpNvWvPNAD62SutwEXavefrLJWj7w==", + "dev": true, + "dependencies": { + "randombytes": "^2.1.0" + } + }, + "node_modules/@rollup/pluginutils": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-5.0.2.tgz", + "integrity": "sha512-pTd9rIsP92h+B6wWwFbW8RkZv4hiR/xKsqre4SIuAOaOEQRxi0lqLke9k2/7WegC85GgUs9pjmOjCUi3In4vwA==", + "dev": true, + "dependencies": { + "@types/estree": "^1.0.0", + "estree-walker": "^2.0.2", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "rollup": "^1.20.0||^2.0.0||^3.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, + "node_modules/@sinonjs/commons": { + "version": "1.8.6", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.6.tgz", + "integrity": "sha512-Ky+XkAkqPZSm3NLBeUng77EBQl3cmeJhITaGHdYH8kjVB+aun3S4XBRti2zt17mtt0mIUDiNxYeoJm6drVvBJQ==", + "dev": true, + "dependencies": { + "type-detect": "4.0.8" + } + }, + "node_modules/@sinonjs/formatio": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/@sinonjs/formatio/-/formatio-3.2.2.tgz", + "integrity": "sha512-B8SEsgd8gArBLMD6zpRw3juQ2FVSsmdd7qlevyDqzS9WTCtvF55/gAL+h6gue8ZvPYcdiPdvueM/qm//9XzyTQ==", + "dev": true, + "dependencies": { + "@sinonjs/commons": "^1", + "@sinonjs/samsam": "^3.1.0" + } + }, + "node_modules/@sinonjs/samsam": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/@sinonjs/samsam/-/samsam-3.3.3.tgz", + "integrity": "sha512-bKCMKZvWIjYD0BLGnNrxVuw4dkWCYsLqFOUWw8VgKF/+5Y+mE7LfHWPIYoDXowH+3a9LsWDMo0uAP8YDosPvHQ==", + "dev": true, + "dependencies": { + "@sinonjs/commons": "^1.3.0", + "array-from": "^2.1.1", + "lodash": "^4.17.15" + } + }, + "node_modules/@sinonjs/text-encoding": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/@sinonjs/text-encoding/-/text-encoding-0.7.2.tgz", + "integrity": "sha512-sXXKG+uL9IrKqViTtao2Ws6dy0znu9sOaP1di/jKGW1M6VssO8vlpXCQcpZ+jisQ1tTFAC5Jo/EOzFbggBagFQ==", + "dev": true + }, + "node_modules/@socket.io/component-emitter": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@socket.io/component-emitter/-/component-emitter-3.1.0.tgz", + "integrity": "sha512-+9jVqKhRSpsc591z5vX+X5Yyw+he/HCB4iQ/RYxw35CEPaY1gnsNE43nf9n9AaYjAQrTiI/mOwKUKdUs9vf7Xg==", + "dev": true + }, + "node_modules/@types/cookie": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/@types/cookie/-/cookie-0.4.1.tgz", + "integrity": "sha512-XW/Aa8APYr6jSVVA1y/DEIZX0/GMKLEVekNG727R8cs56ahETkRAy/3DR7+fJyh7oUgGwNQaRfXCun0+KbWY7Q==", + "dev": true + }, + "node_modules/@types/cors": { + "version": "2.8.13", + "resolved": "https://registry.npmjs.org/@types/cors/-/cors-2.8.13.tgz", + "integrity": "sha512-RG8AStHlUiV5ysZQKq97copd2UmVYw3/pRMLefISZ3S1hK104Cwm7iLQ3fTKx+lsUH2CE8FlLaYeEA2LSeqYUA==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/eslint": { + "version": "8.40.2", + "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.40.2.tgz", + "integrity": "sha512-PRVjQ4Eh9z9pmmtaq8nTjZjQwKFk7YIHIud3lRoKRBgUQjgjRmoGxxGEPXQkF+lH7QkHJRNr5F4aBgYCW0lqpQ==", + "dev": true, + "peer": true, + "dependencies": { + "@types/estree": "*", + "@types/json-schema": "*" + } + }, + "node_modules/@types/eslint-scope": { + "version": "3.7.4", + "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.4.tgz", + "integrity": "sha512-9K4zoImiZc3HlIp6AVUDE4CWYx22a+lhSZMYNpbjW04+YF0KWj4pJXnEMjdnFTiQibFFmElcsasJXDbdI/EPhA==", + "dev": true, + "peer": true, + "dependencies": { + "@types/eslint": "*", + "@types/estree": "*" + } + }, + "node_modules/@types/estree": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.1.tgz", + "integrity": "sha512-LG4opVs2ANWZ1TJoKc937iMmNstM/d0ae1vNbnBvBhqCSezgVUOzcLCqbI5elV8Vy6WKwKjaqR+zO9VKirBBCA==", + "dev": true + }, + "node_modules/@types/json-schema": { + "version": "7.0.11", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", + "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==", + "dev": true + }, + "node_modules/@types/json5": { + "version": "0.0.29", + "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", + "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", + "dev": true + }, + "node_modules/@types/node": { + "version": "18.14.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.14.0.tgz", + "integrity": "sha512-5EWrvLmglK+imbCJY0+INViFWUHg1AHel1sq4ZVSfdcNqGy9Edv3UB9IIzzg+xPaUcAgZYcfVs2fBcwDeZzU0A==", + "dev": true + }, + "node_modules/@types/resolve": { + "version": "1.20.2", + "resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-1.20.2.tgz", + "integrity": "sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==", + "dev": true + }, + "node_modules/@webassemblyjs/ast": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.6.tgz", + "integrity": "sha512-IN1xI7PwOvLPgjcf180gC1bqn3q/QaOCwYUahIOhbYUu8KA/3tw2RT/T0Gidi1l7Hhj5D/INhJxiICObqpMu4Q==", + "dev": true, + "peer": true, + "dependencies": { + "@webassemblyjs/helper-numbers": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6" + } + }, + "node_modules/@webassemblyjs/floating-point-hex-parser": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.6.tgz", + "integrity": "sha512-ejAj9hfRJ2XMsNHk/v6Fu2dGS+i4UaXBXGemOfQ/JfQ6mdQg/WXtwleQRLLS4OvfDhv8rYnVwH27YJLMyYsxhw==", + "dev": true, + "peer": true + }, + "node_modules/@webassemblyjs/helper-api-error": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.6.tgz", + "integrity": "sha512-o0YkoP4pVu4rN8aTJgAyj9hC2Sv5UlkzCHhxqWj8butaLvnpdc2jOwh4ewE6CX0txSfLn/UYaV/pheS2Txg//Q==", + "dev": true, + "peer": true + }, + "node_modules/@webassemblyjs/helper-buffer": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.6.tgz", + "integrity": "sha512-z3nFzdcp1mb8nEOFFk8DrYLpHvhKC3grJD2ardfKOzmbmJvEf/tPIqCY+sNcwZIY8ZD7IkB2l7/pqhUhqm7hLA==", + "dev": true, + "peer": true + }, + "node_modules/@webassemblyjs/helper-numbers": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.6.tgz", + "integrity": "sha512-vUIhZ8LZoIWHBohiEObxVm6hwP034jwmc9kuq5GdHZH0wiLVLIPcMCdpJzG4C11cHoQ25TFIQj9kaVADVX7N3g==", + "dev": true, + "peer": true, + "dependencies": { + "@webassemblyjs/floating-point-hex-parser": "1.11.6", + "@webassemblyjs/helper-api-error": "1.11.6", + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webassemblyjs/helper-wasm-bytecode": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.6.tgz", + "integrity": "sha512-sFFHKwcmBprO9e7Icf0+gddyWYDViL8bpPjJJl0WHxCdETktXdmtWLGVzoHbqUcY4Be1LkNfwTmXOJUFZYSJdA==", + "dev": true, + "peer": true + }, + "node_modules/@webassemblyjs/helper-wasm-section": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.6.tgz", + "integrity": "sha512-LPpZbSOwTpEC2cgn4hTydySy1Ke+XEu+ETXuoyvuyezHO3Kjdu90KK95Sh9xTbmjrCsUwvWwCOQQNta37VrS9g==", + "dev": true, + "peer": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-buffer": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/wasm-gen": "1.11.6" + } + }, + "node_modules/@webassemblyjs/ieee754": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.6.tgz", + "integrity": "sha512-LM4p2csPNvbij6U1f19v6WR56QZ8JcHg3QIJTlSwzFcmx6WSORicYj6I63f9yU1kEUtrpG+kjkiIAkevHpDXrg==", + "dev": true, + "peer": true, + "dependencies": { + "@xtuc/ieee754": "^1.2.0" + } + }, + "node_modules/@webassemblyjs/leb128": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.6.tgz", + "integrity": "sha512-m7a0FhE67DQXgouf1tbN5XQcdWoNgaAuoULHIfGFIEVKA6tu/edls6XnIlkmS6FrXAquJRPni3ZZKjw6FSPjPQ==", + "dev": true, + "peer": true, + "dependencies": { + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webassemblyjs/utf8": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.6.tgz", + "integrity": "sha512-vtXf2wTQ3+up9Zsg8sa2yWiQpzSsMyXj0qViVP6xKGCUT8p8YJ6HqI7l5eCnWx1T/FYdsv07HQs2wTFbbof/RA==", + "dev": true, + "peer": true + }, + "node_modules/@webassemblyjs/wasm-edit": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.6.tgz", + "integrity": "sha512-Ybn2I6fnfIGuCR+Faaz7YcvtBKxvoLV3Lebn1tM4o/IAJzmi9AWYIPWpyBfU8cC+JxAO57bk4+zdsTjJR+VTOw==", + "dev": true, + "peer": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-buffer": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/helper-wasm-section": "1.11.6", + "@webassemblyjs/wasm-gen": "1.11.6", + "@webassemblyjs/wasm-opt": "1.11.6", + "@webassemblyjs/wasm-parser": "1.11.6", + "@webassemblyjs/wast-printer": "1.11.6" + } + }, + "node_modules/@webassemblyjs/wasm-gen": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.6.tgz", + "integrity": "sha512-3XOqkZP/y6B4F0PBAXvI1/bky7GryoogUtfwExeP/v7Nzwo1QLcq5oQmpKlftZLbT+ERUOAZVQjuNVak6UXjPA==", + "dev": true, + "peer": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/ieee754": "1.11.6", + "@webassemblyjs/leb128": "1.11.6", + "@webassemblyjs/utf8": "1.11.6" + } + }, + "node_modules/@webassemblyjs/wasm-opt": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.6.tgz", + "integrity": "sha512-cOrKuLRE7PCe6AsOVl7WasYf3wbSo4CeOk6PkrjS7g57MFfVUF9u6ysQBBODX0LdgSvQqRiGz3CXvIDKcPNy4g==", + "dev": true, + "peer": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-buffer": "1.11.6", + "@webassemblyjs/wasm-gen": "1.11.6", + "@webassemblyjs/wasm-parser": "1.11.6" + } + }, + "node_modules/@webassemblyjs/wasm-parser": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.6.tgz", + "integrity": "sha512-6ZwPeGzMJM3Dqp3hCsLgESxBGtT/OeCvCZ4TA1JUPYgmhAx38tTPR9JaKy0S5H3evQpO/h2uWs2j6Yc/fjkpTQ==", + "dev": true, + "peer": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-api-error": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/ieee754": "1.11.6", + "@webassemblyjs/leb128": "1.11.6", + "@webassemblyjs/utf8": "1.11.6" + } + }, + "node_modules/@webassemblyjs/wast-printer": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.6.tgz", + "integrity": "sha512-JM7AhRcE+yW2GWYaKeHL5vt4xqee5N2WcezptmgyhNS+ScggqcT1OtXykhAb13Sn5Yas0j2uv9tHgrjwvzAP4A==", + "dev": true, + "peer": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@xtuc/ieee754": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", + "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", + "dev": true, + "peer": true + }, + "node_modules/@xtuc/long": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", + "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", + "dev": true, + "peer": true + }, + "node_modules/accepts": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", + "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", + "dev": true, + "dependencies": { + "mime-types": "~2.1.34", + "negotiator": "0.6.3" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/acorn": { + "version": "8.9.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.9.0.tgz", + "integrity": "sha512-jaVNAFBHNLXspO543WnNNPZFRtavh3skAkITqD0/2aeMkKZTN+254PyhwxFYrk3vQ1xfY+2wbesJMs/JC8/PwQ==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-import-assertions": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.9.0.tgz", + "integrity": "sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==", + "dev": true, + "peer": true, + "peerDependencies": { + "acorn": "^8" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/agent-base": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-4.3.0.tgz", + "integrity": "sha512-salcGninV0nPrwpGNn4VTXBb1SOuXQBiqbrNXoeizJsHrsL6ERFM2Ne3JUSBWRE6aeNJI2ROP/WEEIDUiDe3cg==", + "dev": true, + "dependencies": { + "es6-promisify": "^5.0.0" + }, + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ajv-keywords": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", + "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", + "dev": true, + "peerDependencies": { + "ajv": "^6.9.1" + } + }, + "node_modules/ansi-colors": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", + "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, + "node_modules/array-from": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/array-from/-/array-from-2.1.1.tgz", + "integrity": "sha512-GQTc6Uupx1FCavi5mPzBvVT7nEOeWMmUA9P95wpfpW1XwMSKs+KaymD5C2Up7KAUKg/mYwbsUYzdZWcoajlNZg==", + "dev": true + }, + "node_modules/array-includes": { + "version": "3.1.6", + "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.6.tgz", + "integrity": "sha512-sgTbLvL6cNnw24FnbaDyjmvddQ2ML8arZsgaJhoABMoplz/4QRhtrYS+alr1BUM1Bwp6dhx8vVCBSLG+StwOFw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "get-intrinsic": "^1.1.3", + "is-string": "^1.0.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.flat": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.1.tgz", + "integrity": "sha512-roTU0KWIOmJ4DRLmwKd19Otg0/mT3qPNt0Qb3GWW8iObuZXxrjB/pzn0R3hqpRSWg4HCwqx+0vwOnWnvlOyeIA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "es-shim-unscopables": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.flatmap": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.1.tgz", + "integrity": "sha512-8UGn9O1FDVvMNB0UlLv4voxRMze7+FpHyF5mSMRjWHUMlpoDViniy05870VlxhfgTnLbpuwTzvD76MTtWxB/mQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "es-shim-unscopables": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/assertion-error": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", + "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==", + "dev": true, + "engines": { + "node": "*" + } + }, + "node_modules/available-typed-arrays": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", + "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/babel-loader": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-8.3.0.tgz", + "integrity": "sha512-H8SvsMF+m9t15HNLMipppzkC+Y2Yq+v3SonZyU70RBL/h1gxPkH08Ot8pEE9Z4Kd+czyWJClmFS8qzIP9OZ04Q==", + "dev": true, + "dependencies": { + "find-cache-dir": "^3.3.1", + "loader-utils": "^2.0.0", + "make-dir": "^3.1.0", + "schema-utils": "^2.6.5" + }, + "engines": { + "node": ">= 8.9" + }, + "peerDependencies": { + "@babel/core": "^7.0.0", + "webpack": ">=2" + } + }, + "node_modules/babel-plugin-polyfill-corejs2": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.3.3.tgz", + "integrity": "sha512-8hOdmFYFSZhqg2C/JgLUQ+t52o5nirNwaWM2B9LWteozwIvM14VSwdsCAUET10qT+kmySAlseadmfeeSWFCy+Q==", + "dev": true, + "dependencies": { + "@babel/compat-data": "^7.17.7", + "@babel/helper-define-polyfill-provider": "^0.3.3", + "semver": "^6.1.1" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/babel-plugin-polyfill-corejs3": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.6.0.tgz", + "integrity": "sha512-+eHqR6OPcBhJOGgsIar7xoAB1GcSwVUA3XjAd7HJNzOXT4wv6/H7KIdA/Nc60cvUlDbKApmqNvD1B1bzOt4nyA==", + "dev": true, + "dependencies": { + "@babel/helper-define-polyfill-provider": "^0.3.3", + "core-js-compat": "^3.25.1" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/babel-plugin-polyfill-regenerator": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.4.1.tgz", + "integrity": "sha512-NtQGmyQDXjQqQ+IzRkBVwEOz9lQ4zxAQZgoAYEtU9dJjnl1Oc98qnN7jcp+bE7O7aYzVpavXE3/VKXNzUbh7aw==", + "dev": true, + "dependencies": { + "@babel/helper-define-polyfill-provider": "^0.3.3" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + }, + "node_modules/base64id": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/base64id/-/base64id-2.0.0.tgz", + "integrity": "sha512-lGe34o6EHj9y3Kts9R4ZYs/Gr+6N7MCaMlIFA3F1R2O5/m7K06AxfSeO5530PEERE6/WyEg3lsuyw4GHlPZHog==", + "dev": true, + "engines": { + "node": "^4.5.0 || >= 5.9" + } + }, + "node_modules/bellhop-iframe": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/bellhop-iframe/-/bellhop-iframe-3.3.0.tgz", + "integrity": "sha512-wdRejGsdZmv/amIYkFhshmLhnIjrpLP6cNBMl6d9QduGD2IYDx7L56p+BkkZhx0i7jOSQq1febL4QnIC2jmYTg==" + }, + "node_modules/big.js": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", + "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==", + "dev": true, + "engines": { + "node": "*" + } + }, + "node_modules/binary-extensions": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", + "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/body-parser": { + "version": "1.20.1", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.1.tgz", + "integrity": "sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==", + "dev": true, + "dependencies": { + "bytes": "3.1.2", + "content-type": "~1.0.4", + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "on-finished": "2.4.1", + "qs": "6.11.0", + "raw-body": "2.5.1", + "type-is": "~1.6.18", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/body-parser/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/body-parser/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "dev": true + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, + "dependencies": { + "fill-range": "^7.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browser-stdout": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", + "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", + "dev": true + }, + "node_modules/browserslist": { + "version": "4.21.5", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.5.tgz", + "integrity": "sha512-tUkiguQGW7S3IhB7N+c2MV/HZPSCPAAiYBZXLsBhFB/PCy6ZKKsZrmBayHV9fdGV/ARIfJ14NkxKzRDjvp7L6w==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + } + ], + "dependencies": { + "caniuse-lite": "^1.0.30001449", + "electron-to-chromium": "^1.4.284", + "node-releases": "^2.0.8", + "update-browserslist-db": "^1.0.10" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/browserstack": { + "version": "1.5.3", + "resolved": "https://registry.npmjs.org/browserstack/-/browserstack-1.5.3.tgz", + "integrity": "sha512-AO+mECXsW4QcqC9bxwM29O7qWa7bJT94uBFzeb5brylIQwawuEziwq20dPYbins95GlWzOawgyDNdjYAo32EKg==", + "dev": true, + "dependencies": { + "https-proxy-agent": "^2.2.1" + } + }, + "node_modules/browserstack-local": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/browserstack-local/-/browserstack-local-1.5.1.tgz", + "integrity": "sha512-T/wxyWDzvBHbDvl7fZKpFU7mYze6nrUkBhNy+d+8bXBqgQX10HTYvajIGO0wb49oGSLCPM0CMZTV/s7e6LF0sA==", + "dev": true, + "dependencies": { + "agent-base": "^6.0.2", + "https-proxy-agent": "^5.0.1", + "is-running": "^2.1.0", + "ps-tree": "=1.2.0", + "temp-fs": "^0.9.9" + } + }, + "node_modules/browserstack-local/node_modules/agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "dev": true, + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/browserstack-local/node_modules/https-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "dev": true, + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true + }, + "node_modules/builtin-modules": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-3.3.0.tgz", + "integrity": "sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==", + "dev": true, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/bytes": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/call-bind": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", + "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.1", + "get-intrinsic": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001457", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001457.tgz", + "integrity": "sha512-SDIV6bgE1aVbK6XyxdURbUE89zY7+k1BBBaOwYwkNCglXlel/E7mELiHC64HQ+W0xSKlqWhV9Wh7iHxUjMs4fA==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + } + ] + }, + "node_modules/chai": { + "version": "4.3.7", + "resolved": "https://registry.npmjs.org/chai/-/chai-4.3.7.tgz", + "integrity": "sha512-HLnAzZ2iupm25PlN0xFreAlBA5zaBSv3og0DdeGA4Ar6h6rJ3A0rolRUKJhSF2V10GZKDgWF/VmAEsNWjCRB+A==", + "dev": true, + "dependencies": { + "assertion-error": "^1.1.0", + "check-error": "^1.0.2", + "deep-eql": "^4.1.2", + "get-func-name": "^2.0.0", + "loupe": "^2.3.1", + "pathval": "^1.1.1", + "type-detect": "^4.0.5" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/check-error": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.2.tgz", + "integrity": "sha512-BrgHpW9NURQgzoNyjfq0Wu6VFO6D7IZEmJNdtgNqpzGG8RuNFHt2jQxWlAs4HMe119chBnv+34syEZtc6IhLtA==", + "dev": true, + "engines": { + "node": "*" + } + }, + "node_modules/chokidar": { + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", + "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + ], + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/chrome-trace-event": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", + "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==", + "dev": true, + "peer": true, + "engines": { + "node": ">=6.0" + } + }, + "node_modules/cliui": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", + "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", + "dev": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^7.0.0" + } + }, + "node_modules/cliui/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "node_modules/cliui/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/cliui/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "dev": true + }, + "node_modules/commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true + }, + "node_modules/commondir": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", + "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==", + "dev": true + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true + }, + "node_modules/connect": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/connect/-/connect-3.7.0.tgz", + "integrity": "sha512-ZqRXc+tZukToSNmh5C2iWMSoV3X1YUcPbqEM4DkEG5tNQXrQUZCNVGGv3IuicnkMtPfGf3Xtp8WCXs295iQ1pQ==", + "dev": true, + "dependencies": { + "debug": "2.6.9", + "finalhandler": "1.1.2", + "parseurl": "~1.3.3", + "utils-merge": "1.0.1" + }, + "engines": { + "node": ">= 0.10.0" + } + }, + "node_modules/connect/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/connect/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "dev": true + }, + "node_modules/content-type": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", + "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/convert-source-map": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", + "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==", + "dev": true + }, + "node_modules/cookie": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.2.tgz", + "integrity": "sha512-aSWTXFzaKWkvHO1Ny/s+ePFpvKsPnjc551iI41v3ny/ow6tBG5Vd+FuqGNhh1LxOmVzOlGUriIlOaokOvhaStA==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/core-js": { + "version": "3.28.0", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.28.0.tgz", + "integrity": "sha512-GiZn9D4Z/rSYvTeg1ljAIsEqFm0LaN9gVtwDCrKL80zHtS31p9BAjmTxVqTQDMpwlMolJZOFntUG2uwyj7DAqw==", + "hasInstallScript": true, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/core-js" + } + }, + "node_modules/core-js-compat": { + "version": "3.28.0", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.28.0.tgz", + "integrity": "sha512-myzPgE7QodMg4nnd3K1TDoES/nADRStM8Gpz0D6nhkwbmwEnE0ZGJgoWsvQ722FR8D7xS0n0LV556RcEicjTyg==", + "dev": true, + "dependencies": { + "browserslist": "^4.21.5" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/core-js" + } + }, + "node_modules/cors": { + "version": "2.8.5", + "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", + "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", + "dev": true, + "dependencies": { + "object-assign": "^4", + "vary": "^1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/cross-spawn/node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/custom-event": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/custom-event/-/custom-event-1.0.1.tgz", + "integrity": "sha512-GAj5FOq0Hd+RsCGVJxZuKaIDXDf3h6GQoNEjFgbLLI/trgtavwUbSnZ5pVfg27DVCaWjIohryS0JFwIJyT2cMg==", + "dev": true + }, + "node_modules/date-format": { + "version": "4.0.14", + "resolved": "https://registry.npmjs.org/date-format/-/date-format-4.0.14.tgz", + "integrity": "sha512-39BOQLs9ZjKh0/patS9nrT8wc3ioX3/eA/zgbKNopnF2wCqJEoxywwwElATYvRsXdnOxA/OQeQoFZ3rFjVajhg==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/debounce": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/debounce/-/debounce-1.2.1.tgz", + "integrity": "sha512-XRRe6Glud4rd/ZGQfiV1ruXSfbvfJedlV9Y6zOlP+2K04vBYiJEte6stfFkCP03aMnY5tsipamumUjL14fofug==", + "dev": true + }, + "node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/decamelize": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-4.0.0.tgz", + "integrity": "sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/deep-eql": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-4.1.3.tgz", + "integrity": "sha512-WaEtAOpRA1MQ0eohqZjpGD8zdI0Ovsm8mmFhaDN8dvDZzyoUMcYDnf5Y6iu7HTXxf8JDS23qWa4a+hKCDyOPzw==", + "dev": true, + "dependencies": { + "type-detect": "^4.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true + }, + "node_modules/deepmerge": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.0.tgz", + "integrity": "sha512-z2wJZXrmeHdvYJp/Ux55wIjqo81G5Bp4c+oELTW+7ar6SogWHajt5a9gO3s3IDaGSAXjDk0vlQKN3rms8ab3og==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/define-properties": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.0.tgz", + "integrity": "sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA==", + "dev": true, + "dependencies": { + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/destroy": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", + "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", + "dev": true, + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/di": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/di/-/di-0.0.1.tgz", + "integrity": "sha512-uJaamHkagcZtHPqCIHZxnFrXlunQXgBOsZSUOWwFw31QJCAbyTBoHMW75YOTur5ZNx8pIeAKgf6GWIgaqqiLhA==", + "dev": true + }, + "node_modules/diff": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-5.0.0.tgz", + "integrity": "sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w==", + "dev": true, + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "dev": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/dom-serialize": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/dom-serialize/-/dom-serialize-2.2.1.tgz", + "integrity": "sha512-Yra4DbvoW7/Z6LBN560ZwXMjoNOSAN2wRsKFGc4iBeso+mpIA6qj1vfdf9HpMaKAqG6wXTy+1SYEzmNpKXOSsQ==", + "dev": true, + "dependencies": { + "custom-event": "~1.0.0", + "ent": "~2.2.0", + "extend": "^3.0.0", + "void-elements": "^2.0.0" + } + }, + "node_modules/dotenv": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-7.0.0.tgz", + "integrity": "sha512-M3NhsLbV1i6HuGzBUH8vXrtxOk+tWmzWKDMbAVSUp3Zsjm7ywFeuwrUXhmhQyRK1q5B5GGy7hcXPbj3bnfZg2g==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/duplexer": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz", + "integrity": "sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==", + "dev": true + }, + "node_modules/ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==", + "dev": true + }, + "node_modules/electron-to-chromium": { + "version": "1.4.304", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.304.tgz", + "integrity": "sha512-6c8M+ojPgDIXN2NyfGn8oHASXYnayj+gSEnGeLMKb9zjsySeVB/j7KkNAAG9yDcv8gNlhvFg5REa1N/kQU6pgA==", + "dev": true + }, + "node_modules/emojis-list": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz", + "integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/engine.io": { + "version": "6.4.1", + "resolved": "https://registry.npmjs.org/engine.io/-/engine.io-6.4.1.tgz", + "integrity": "sha512-JFYQurD/nbsA5BSPmbaOSLa3tSVj8L6o4srSwXXY3NqE+gGUNmmPTbhn8tjzcCtSqhFgIeqef81ngny8JM25hw==", + "dev": true, + "dependencies": { + "@types/cookie": "^0.4.1", + "@types/cors": "^2.8.12", + "@types/node": ">=10.0.0", + "accepts": "~1.3.4", + "base64id": "2.0.0", + "cookie": "~0.4.1", + "cors": "~2.8.5", + "debug": "~4.3.1", + "engine.io-parser": "~5.0.3", + "ws": "~8.11.0" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/engine.io-parser": { + "version": "5.0.6", + "resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-5.0.6.tgz", + "integrity": "sha512-tjuoZDMAdEhVnSFleYPCtdL2GXwVTGtNjoeJd9IhIG3C1xs9uwxqRNEu5WpnDZCaozwVlK/nuQhpodhXSIMaxw==", + "dev": true, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/enhanced-resolve": { + "version": "5.15.0", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.15.0.tgz", + "integrity": "sha512-LXYT42KJ7lpIKECr2mAXIaMldcNCh/7E0KBKOu4KSfkHmP+mZmSs+8V5gBAqisWBy0OO4W5Oyys0GO1Y8KtdKg==", + "dev": true, + "peer": true, + "dependencies": { + "graceful-fs": "^4.2.4", + "tapable": "^2.2.0" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/ent": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/ent/-/ent-2.2.0.tgz", + "integrity": "sha512-GHrMyVZQWvTIdDtpiEXdHZnFQKzeO09apj8Cbl4pKWy4i0Oprcq17usfDt5aO63swf0JOeMWjWQE/LzgSRuWpA==", + "dev": true + }, + "node_modules/es-abstract": { + "version": "1.21.1", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.21.1.tgz", + "integrity": "sha512-QudMsPOz86xYz/1dG1OuGBKOELjCh99IIWHLzy5znUB6j8xG2yMA7bfTV86VSqKF+Y/H08vQPR+9jyXpuC6hfg==", + "dev": true, + "dependencies": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "es-set-tostringtag": "^2.0.1", + "es-to-primitive": "^1.2.1", + "function-bind": "^1.1.1", + "function.prototype.name": "^1.1.5", + "get-intrinsic": "^1.1.3", + "get-symbol-description": "^1.0.0", + "globalthis": "^1.0.3", + "gopd": "^1.0.1", + "has": "^1.0.3", + "has-property-descriptors": "^1.0.0", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3", + "internal-slot": "^1.0.4", + "is-array-buffer": "^3.0.1", + "is-callable": "^1.2.7", + "is-negative-zero": "^2.0.2", + "is-regex": "^1.1.4", + "is-shared-array-buffer": "^1.0.2", + "is-string": "^1.0.7", + "is-typed-array": "^1.1.10", + "is-weakref": "^1.0.2", + "object-inspect": "^1.12.2", + "object-keys": "^1.1.1", + "object.assign": "^4.1.4", + "regexp.prototype.flags": "^1.4.3", + "safe-regex-test": "^1.0.0", + "string.prototype.trimend": "^1.0.6", + "string.prototype.trimstart": "^1.0.6", + "typed-array-length": "^1.0.4", + "unbox-primitive": "^1.0.2", + "which-typed-array": "^1.1.9" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/es-module-lexer": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.3.0.tgz", + "integrity": "sha512-vZK7T0N2CBmBOixhmjdqx2gWVbFZ4DXZ/NyRMZVlJXPa7CyFS+/a4QQsDGDQy9ZfEzxFuNEsMLeQJnKP2p5/JA==", + "dev": true, + "peer": true + }, + "node_modules/es-set-tostringtag": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz", + "integrity": "sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.1.3", + "has": "^1.0.3", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-shim-unscopables": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz", + "integrity": "sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==", + "dev": true, + "dependencies": { + "has": "^1.0.3" + } + }, + "node_modules/es-to-primitive": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", + "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", + "dev": true, + "dependencies": { + "is-callable": "^1.1.4", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/es5-shim": { + "version": "4.5.15", + "resolved": "https://registry.npmjs.org/es5-shim/-/es5-shim-4.5.15.tgz", + "integrity": "sha512-FYpuxEjMeDvU4rulKqFdukQyZSTpzhg4ScQHrAosrlVpR6GFyaw14f74yn2+4BugniIS0Frpg7TvwZocU4ZMTw==", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/es6-promise": { + "version": "4.2.8", + "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.8.tgz", + "integrity": "sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w==", + "dev": true + }, + "node_modules/es6-promisify": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/es6-promisify/-/es6-promisify-5.0.0.tgz", + "integrity": "sha512-C+d6UdsYDk0lMebHNR4S2NybQMMngAOnOwYBQjTOiv0MkoJMP0Myw2mgpDLBcpfCmRLxyFqYhS/CfOENq4SJhQ==", + "dev": true, + "dependencies": { + "es6-promise": "^4.0.3" + } + }, + "node_modules/es6-shim": { + "version": "0.35.7", + "resolved": "https://registry.npmjs.org/es6-shim/-/es6-shim-0.35.7.tgz", + "integrity": "sha512-baZkUfTDSx7X69+NA8imbvGrsPfqH0MX7ADdIDjqwsI8lkTgLIiD2QWrUCSGsUQ0YMnSCA/4pNgSyXdnLHWf3A==", + "dev": true + }, + "node_modules/escalade": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", + "dev": true + }, + "node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/eslint": { + "version": "8.43.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.43.0.tgz", + "integrity": "sha512-aaCpf2JqqKesMFGgmRPessmVKjcGXqdlAYLLC3THM8t5nBRZRQ+st5WM/hoJXkdioEXLLbXgclUpM0TXo5HX5Q==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.4.0", + "@eslint/eslintrc": "^2.0.3", + "@eslint/js": "8.43.0", + "@humanwhocodes/config-array": "^0.11.10", + "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", + "ajv": "^6.10.0", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "doctrine": "^3.0.0", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^7.2.0", + "eslint-visitor-keys": "^3.4.1", + "espree": "^9.5.2", + "esquery": "^1.4.2", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "globals": "^13.19.0", + "graphemer": "^1.4.0", + "ignore": "^5.2.0", + "import-fresh": "^3.0.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "is-path-inside": "^3.0.3", + "js-yaml": "^4.1.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.1", + "strip-ansi": "^6.0.1", + "strip-json-comments": "^3.1.0", + "text-table": "^0.2.0" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-import-resolver-node": { + "version": "0.3.7", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.7.tgz", + "integrity": "sha512-gozW2blMLJCeFpBwugLTGyvVjNoeo1knonXAcatC6bjPBZitotxdWf7Gimr25N4c0AAOo4eOUfaG82IJPDpqCA==", + "dev": true, + "dependencies": { + "debug": "^3.2.7", + "is-core-module": "^2.11.0", + "resolve": "^1.22.1" + } + }, + "node_modules/eslint-import-resolver-node/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-module-utils": { + "version": "2.7.4", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.7.4.tgz", + "integrity": "sha512-j4GT+rqzCoRKHwURX7pddtIPGySnX9Si/cgMI5ztrcqOPtk5dDEeZ34CQVPphnqkJytlc97Vuk05Um2mJ3gEQA==", + "dev": true, + "dependencies": { + "debug": "^3.2.7" + }, + "engines": { + "node": ">=4" + }, + "peerDependenciesMeta": { + "eslint": { + "optional": true + } + } + }, + "node_modules/eslint-module-utils/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-plugin-es": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-es/-/eslint-plugin-es-1.4.1.tgz", + "integrity": "sha512-5fa/gR2yR3NxQf+UXkeLeP8FBBl6tSgdrAz1+cF84v1FMM4twGwQoqTnn+QxFLcPOrF4pdKEJKDB/q9GoyJrCA==", + "dev": true, + "dependencies": { + "eslint-utils": "^1.4.2", + "regexpp": "^2.0.1" + }, + "engines": { + "node": ">=6.5.0" + }, + "peerDependencies": { + "eslint": ">=4.19.1" + } + }, + "node_modules/eslint-plugin-import": { + "version": "2.27.5", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.27.5.tgz", + "integrity": "sha512-LmEt3GVofgiGuiE+ORpnvP+kAm3h6MLZJ4Q5HCyHADofsb4VzXFsRiWj3c0OFiV+3DWFh0qg3v9gcPlfc3zRow==", + "dev": true, + "dependencies": { + "array-includes": "^3.1.6", + "array.prototype.flat": "^1.3.1", + "array.prototype.flatmap": "^1.3.1", + "debug": "^3.2.7", + "doctrine": "^2.1.0", + "eslint-import-resolver-node": "^0.3.7", + "eslint-module-utils": "^2.7.4", + "has": "^1.0.3", + "is-core-module": "^2.11.0", + "is-glob": "^4.0.3", + "minimatch": "^3.1.2", + "object.values": "^1.1.6", + "resolve": "^1.22.1", + "semver": "^6.3.0", + "tsconfig-paths": "^3.14.1" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8" + } + }, + "node_modules/eslint-plugin-import/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-plugin-import/node_modules/doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "dev": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eslint-plugin-node": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-node/-/eslint-plugin-node-8.0.1.tgz", + "integrity": "sha512-ZjOjbjEi6jd82rIpFSgagv4CHWzG9xsQAVp1ZPlhRnnYxcTgENUVBvhYmkQ7GvT1QFijUSo69RaiOJKhMu6i8w==", + "dev": true, + "dependencies": { + "eslint-plugin-es": "^1.3.1", + "eslint-utils": "^1.3.1", + "ignore": "^5.0.2", + "minimatch": "^3.0.4", + "resolve": "^1.8.1", + "semver": "^5.5.0" + }, + "engines": { + "node": ">=6" + }, + "peerDependencies": { + "eslint": ">=4.19.1" + } + }, + "node_modules/eslint-plugin-node/node_modules/semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true, + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/eslint-plugin-prettier": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-3.4.1.tgz", + "integrity": "sha512-htg25EUYUeIhKHXjOinK4BgCcDwtLHjqaxCDsMy5nbnUMkKFvIhMVCp+5GFUXQ4Nr8lBsPqtGAqBenbpFqAA2g==", + "dev": true, + "dependencies": { + "prettier-linter-helpers": "^1.0.0" + }, + "engines": { + "node": ">=6.0.0" + }, + "peerDependencies": { + "eslint": ">=5.0.0", + "prettier": ">=1.13.0" + }, + "peerDependenciesMeta": { + "eslint-config-prettier": { + "optional": true + } + } + }, + "node_modules/eslint-scope": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.0.tgz", + "integrity": "sha512-DYj5deGlHBfMt15J7rdtyKNq/Nqlv5KfU4iodrQ019XESsRnwXH9KAE0y3cwtUHDo2ob7CypAnCqefh6vioWRw==", + "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-utils": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-1.4.3.tgz", + "integrity": "sha512-fbBN5W2xdY45KulGXmLHZ3c3FHfVYmKg0IrAKGOkT/464PQsx2UeIzfz1RmEci+KLm1bBaAzZAh8+/E+XAeZ8Q==", + "dev": true, + "dependencies": { + "eslint-visitor-keys": "^1.1.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", + "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/eslint/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/eslint/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/eslint/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/eslint/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/eslint/node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/eslint-visitor-keys": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz", + "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/eslint/node_modules/globals": { + "version": "13.20.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", + "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", + "dev": true, + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/eslint/node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/espree": { + "version": "9.5.2", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.5.2.tgz", + "integrity": "sha512-7OASN1Wma5fum5SrNhFMAMJxOUAbhyfQ8dQ//PJaJbNw0URTPWqIghHWt1MmAANKhHZIYOHruW4Kw4ruUWOdGw==", + "dev": true, + "dependencies": { + "acorn": "^8.8.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/espree/node_modules/eslint-visitor-keys": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz", + "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esquery": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.2.tgz", + "integrity": "sha512-JVSoLdTlTDkmjFmab7H/9SL9qGSyjElT3myyKp7krqjVFQCDLmj1QFaCLRFBszBKI0XVZaiiXvuPIX3ZwHe1Ng==", + "dev": true, + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estree-walker": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", + "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", + "dev": true + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/event-stream": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/event-stream/-/event-stream-3.3.4.tgz", + "integrity": "sha512-QHpkERcGsR0T7Qm3HNJSyXKEEj8AHNxkY3PK8TS2KJvQ7NiSHe3DDpwVKKtoYprL/AreyzFBeIkBIWChAqn60g==", + "dev": true, + "dependencies": { + "duplexer": "~0.1.1", + "from": "~0", + "map-stream": "~0.1.0", + "pause-stream": "0.0.11", + "split": "0.3", + "stream-combiner": "~0.0.4", + "through": "~2.3.1" + } + }, + "node_modules/eventemitter3": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", + "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==" + }, + "node_modules/events": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", + "dev": true, + "peer": true, + "engines": { + "node": ">=0.8.x" + } + }, + "node_modules/extend": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", + "dev": true + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true + }, + "node_modules/fast-diff": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.2.0.tgz", + "integrity": "sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==", + "dev": true + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true + }, + "node_modules/fastq": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", + "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", + "dev": true, + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/file-entry-cache": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "dev": true, + "dependencies": { + "flat-cache": "^3.0.4" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/finalhandler": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz", + "integrity": "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==", + "dev": true, + "dependencies": { + "debug": "2.6.9", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "on-finished": "~2.3.0", + "parseurl": "~1.3.3", + "statuses": "~1.5.0", + "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/finalhandler/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/finalhandler/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "dev": true + }, + "node_modules/finalhandler/node_modules/on-finished": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", + "integrity": "sha512-ikqdkGAAyf/X/gPhXGvfgAytDZtDbr+bkNUJ0N9h5MI/dmdgCs3l6hoHrcUv41sRKew3jIwrp4qQDXiK99Utww==", + "dev": true, + "dependencies": { + "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/finalhandler/node_modules/statuses": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", + "integrity": "sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/find-cache-dir": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.2.tgz", + "integrity": "sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig==", + "dev": true, + "dependencies": { + "commondir": "^1.0.1", + "make-dir": "^3.0.2", + "pkg-dir": "^4.1.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/avajs/find-cache-dir?sponsor=1" + } + }, + "node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/flat": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", + "integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==", + "dev": true, + "bin": { + "flat": "cli.js" + } + }, + "node_modules/flat-cache": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", + "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", + "dev": true, + "dependencies": { + "flatted": "^3.1.0", + "rimraf": "^3.0.2" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/flatted": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", + "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", + "dev": true + }, + "node_modules/follow-redirects": { + "version": "1.15.2", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz", + "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "node_modules/for-each": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", + "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", + "dev": true, + "dependencies": { + "is-callable": "^1.1.3" + } + }, + "node_modules/from": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/from/-/from-0.1.7.tgz", + "integrity": "sha512-twe20eF1OxVxp/ML/kq2p1uc6KvFK/+vs8WjEbeKmV2He22MKm7YF2ANIt+EOqhJ5L3K/SuuPhk0hWQDjOM23g==", + "dev": true + }, + "node_modules/fs-access": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/fs-access/-/fs-access-1.0.1.tgz", + "integrity": "sha512-05cXDIwNbFaoFWaz5gNHlUTbH5whiss/hr/ibzPd4MH3cR4w0ZKeIPiVdbyJurg3O5r/Bjpvn9KOb1/rPMf3nA==", + "dev": true, + "dependencies": { + "null-check": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/fs-extra": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", + "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + }, + "engines": { + "node": ">=6 <7 || >=8" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "dev": true + }, + "node_modules/fsevents": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "dev": true, + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "dev": true + }, + "node_modules/function.prototype.name": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz", + "integrity": "sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.19.0", + "functions-have-names": "^1.2.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/functions-have-names": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", + "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true, + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-func-name": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.0.tgz", + "integrity": "sha512-Hm0ixYtaSZ/V7C8FJrtZIuBBI+iSgL+1Aq82zSu8VQNB4S3Gk8e7Qs3VwBDJAhmRZcFqkl3tQu36g/Foh5I5ig==", + "dev": true, + "engines": { + "node": "*" + } + }, + "node_modules/get-intrinsic": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.0.tgz", + "integrity": "sha512-L049y6nFOuom5wGyRc3/gdTLO94dySVKRACj1RmJZBQXlbTMhtNIgkWkUHq+jYmZvKf14EW1EoJnnjbmoHij0Q==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-symbols": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-symbol-description": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", + "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/glob-to-regexp": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", + "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", + "dev": true, + "peer": true + }, + "node_modules/globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/globalthis": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", + "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", + "dev": true, + "dependencies": { + "define-properties": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gopd": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", + "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.1.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.10", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", + "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==", + "dev": true + }, + "node_modules/graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", + "dev": true + }, + "node_modules/has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.1" + }, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/has-bigints": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", + "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/has-property-descriptors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz", + "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.1.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", + "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", + "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", + "dev": true, + "dependencies": { + "has-symbols": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/he": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", + "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", + "dev": true, + "bin": { + "he": "bin/he" + } + }, + "node_modules/http-errors": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", + "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", + "dev": true, + "dependencies": { + "depd": "2.0.0", + "inherits": "2.0.4", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "toidentifier": "1.0.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/http-proxy": { + "version": "1.18.1", + "resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.18.1.tgz", + "integrity": "sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==", + "dependencies": { + "eventemitter3": "^4.0.0", + "follow-redirects": "^1.0.0", + "requires-port": "^1.0.0" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/https-proxy-agent": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-2.2.4.tgz", + "integrity": "sha512-OmvfoQ53WLjtA9HeYP9RNrWMJzzAz1JGaSFr1nijg0PVR1JaD/xbJq1mdEIIlxGpXp9eSe/O2LgU9DJmTPd0Eg==", + "dev": true, + "dependencies": { + "agent-base": "^4.3.0", + "debug": "^3.1.0" + }, + "engines": { + "node": ">= 4.5.0" + } + }, + "node_modules/https-proxy-agent/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "dev": true, + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ignore": { + "version": "5.2.4", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", + "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "dev": true, + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "dev": true, + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "node_modules/internal-slot": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.5.tgz", + "integrity": "sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.2.0", + "has": "^1.0.3", + "side-channel": "^1.0.4" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/is-array-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.1.tgz", + "integrity": "sha512-ASfLknmY8Xa2XtB4wmbz13Wu202baeA18cJBCeCy0wXUHZF0IPyVEXqKEcd+t2fNSLLL1vC6k7lxZEojNbISXQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.3", + "is-typed-array": "^1.1.10" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-bigint": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", + "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", + "dev": true, + "dependencies": { + "has-bigints": "^1.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dev": true, + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-boolean-object": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", + "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-builtin-module": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-3.2.1.tgz", + "integrity": "sha512-BSLE3HnV2syZ0FK0iMA/yUGplUeMmNz4AW5fnTunbCIqZi4vG3WjJT9FHMy5D69xmAYBHXQhJdALdpwVxV501A==", + "dev": true, + "dependencies": { + "builtin-modules": "^3.3.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-callable": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", + "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-core-module": { + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.11.0.tgz", + "integrity": "sha512-RRjxlvLDkD1YJwDbroBHMb+cukurkDWNyHx7D3oNB5x9rb5ogcksMC5wHCadcXoo67gVr/+3GFySh3134zi6rw==", + "dev": true, + "dependencies": { + "has": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-date-object": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", + "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-docker": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", + "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", + "dev": true, + "bin": { + "is-docker": "cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-module": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-module/-/is-module-1.0.0.tgz", + "integrity": "sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g==", + "dev": true + }, + "node_modules/is-negative-zero": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", + "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-number-object": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", + "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-plain-obj": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", + "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-reference": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/is-reference/-/is-reference-1.2.1.tgz", + "integrity": "sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==", + "dev": true, + "dependencies": { + "@types/estree": "*" + } + }, + "node_modules/is-regex": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", + "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-running": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-running/-/is-running-2.1.0.tgz", + "integrity": "sha512-mjJd3PujZMl7j+D395WTIO5tU5RIDBfVSRtRR4VOJou3H66E38UjbjvDGh3slJzPuolsb+yQFqwHNNdyp5jg3w==", + "dev": true + }, + "node_modules/is-shared-array-buffer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", + "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-string": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", + "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-symbol": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", + "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", + "dev": true, + "dependencies": { + "has-symbols": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-typed-array": { + "version": "1.1.10", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.10.tgz", + "integrity": "sha512-PJqgEHiWZvMpaFZ3uTc8kHPM4+4ADTlDniuQL7cU/UDA0Ql7F70yGfHph3cLNe+c9toaigv+DFzTJKhc2CtO6A==", + "dev": true, + "dependencies": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-unicode-supported": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", + "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-weakref": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", + "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-wsl": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", + "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", + "dev": true, + "dependencies": { + "is-docker": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==", + "dev": true + }, + "node_modules/isbinaryfile": { + "version": "4.0.10", + "resolved": "https://registry.npmjs.org/isbinaryfile/-/isbinaryfile-4.0.10.tgz", + "integrity": "sha512-iHrqe5shvBUcFbmZq9zOQHBoeOhZJu6RQGrDpBgenUm/Am+F3JM2MgQj+rK3Z601fzrL5gLZWtAPH2OBaSVcyw==", + "dev": true, + "engines": { + "node": ">= 8.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/gjtorikian/" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "dev": true, + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true, + "peer": true + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "dev": true, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/just-extend": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/just-extend/-/just-extend-4.2.1.tgz", + "integrity": "sha512-g3UB796vUFIY90VIv/WX3L2c8CS2MdWUww3CNrYmqza1Fg0DURc2K/O4YrnklBdQarSJ/y8JnJYDGc+1iumQjg==", + "dev": true + }, + "node_modules/karma": { + "version": "6.4.1", + "resolved": "https://registry.npmjs.org/karma/-/karma-6.4.1.tgz", + "integrity": "sha512-Cj57NKOskK7wtFWSlMvZf459iX+kpYIPXmkNUzP2WAFcA7nhr/ALn5R7sw3w+1udFDcpMx/tuB8d5amgm3ijaA==", + "dev": true, + "dependencies": { + "@colors/colors": "1.5.0", + "body-parser": "^1.19.0", + "braces": "^3.0.2", + "chokidar": "^3.5.1", + "connect": "^3.7.0", + "di": "^0.0.1", + "dom-serialize": "^2.2.1", + "glob": "^7.1.7", + "graceful-fs": "^4.2.6", + "http-proxy": "^1.18.1", + "isbinaryfile": "^4.0.8", + "lodash": "^4.17.21", + "log4js": "^6.4.1", + "mime": "^2.5.2", + "minimatch": "^3.0.4", + "mkdirp": "^0.5.5", + "qjobs": "^1.2.0", + "range-parser": "^1.2.1", + "rimraf": "^3.0.2", + "socket.io": "^4.4.1", + "source-map": "^0.6.1", + "tmp": "^0.2.1", + "ua-parser-js": "^0.7.30", + "yargs": "^16.1.1" + }, + "bin": { + "karma": "bin/karma" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/karma-babel-preprocessor": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/karma-babel-preprocessor/-/karma-babel-preprocessor-8.0.2.tgz", + "integrity": "sha512-6ZUnHwaK2EyhgxbgeSJW6n6WZUYSEdekHIV/qDUnPgMkVzQBHEvd07d2mTL5AQjV8uTUgH6XslhaPrp+fHWH2A==", + "dev": true, + "engines": { + "node": ">=6" + }, + "peerDependencies": { + "@babel/core": "7" + } + }, + "node_modules/karma-browserstack-launcher": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/karma-browserstack-launcher/-/karma-browserstack-launcher-1.6.0.tgz", + "integrity": "sha512-Y/UWPdHZkHIVH2To4GWHCTzmrsB6H7PBWy6pw+TWz5sr4HW2mcE+Uj6qWgoVNxvQU1Pfn5LQQzI6EQ65p8QbiQ==", + "dev": true, + "dependencies": { + "browserstack": "~1.5.1", + "browserstack-local": "^1.3.7", + "q": "~1.5.0" + }, + "peerDependencies": { + "karma": ">=0.9" + } + }, + "node_modules/karma-chai": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/karma-chai/-/karma-chai-0.1.0.tgz", + "integrity": "sha512-mqKCkHwzPMhgTYca10S90aCEX9+HjVjjrBFAsw36Zj7BlQNbokXXCAe6Ji04VUMsxcY5RLP7YphpfO06XOubdg==", + "dev": true, + "peerDependencies": { + "chai": "*", + "karma": ">=0.10.9" + } + }, + "node_modules/karma-chrome-launcher": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/karma-chrome-launcher/-/karma-chrome-launcher-2.2.0.tgz", + "integrity": "sha512-uf/ZVpAabDBPvdPdveyk1EPgbnloPvFFGgmRhYLTDH7gEB4nZdSBk8yTU47w1g/drLSx5uMOkjKk7IWKfWg/+w==", + "dev": true, + "dependencies": { + "fs-access": "^1.0.0", + "which": "^1.2.1" + } + }, + "node_modules/karma-cli": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/karma-cli/-/karma-cli-2.0.0.tgz", + "integrity": "sha512-1Kb28UILg1ZsfqQmeELbPzuEb5C6GZJfVIk0qOr8LNYQuYWmAaqP16WpbpKEjhejDrDYyYOwwJXSZO6u7q5Pvw==", + "dev": true, + "dependencies": { + "resolve": "^1.3.3" + }, + "bin": { + "karma": "bin/karma" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/karma-es6-shim": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/karma-es6-shim/-/karma-es6-shim-1.0.0.tgz", + "integrity": "sha512-G2AiltA80A/MLgANB57m2LOPf4e0MiqiwbEm7NsuELpSQ4vvwcsGHlEYFhW7E86AUH56Rf5v3lo1ro+Sx1KjkQ==", + "dev": true, + "dependencies": { + "es5-shim": "~4.5.8", + "es6-shim": "~0.35.0" + } + }, + "node_modules/karma-firefox-launcher": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/karma-firefox-launcher/-/karma-firefox-launcher-1.3.0.tgz", + "integrity": "sha512-Fi7xPhwrRgr+94BnHX0F5dCl1miIW4RHnzjIGxF8GaIEp7rNqX7LSi7ok63VXs3PS/5MQaQMhGxw+bvD+pibBQ==", + "dev": true, + "dependencies": { + "is-wsl": "^2.1.0" + } + }, + "node_modules/karma-html": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/karma-html/-/karma-html-1.0.5.tgz", + "integrity": "sha512-KiMO08O7BEAYGpzEK5wO7ocvA3bqAv4ehaltKNB//SYEhC0ODocFI2vkb92WJoxHacpOjXy7/CvbRsBNEPqEKA==", + "dev": true, + "dependencies": { + "glob": "^7.1.2" + } + }, + "node_modules/karma-mocha": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/karma-mocha/-/karma-mocha-2.0.1.tgz", + "integrity": "sha512-Tzd5HBjm8his2OA4bouAsATYEpZrp9vC7z5E5j4C5Of5Rrs1jY67RAwXNcVmd/Bnk1wgvQRou0zGVLey44G4tQ==", + "dev": true, + "dependencies": { + "minimist": "^1.2.3" + } + }, + "node_modules/karma-requirejs": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/karma-requirejs/-/karma-requirejs-1.1.0.tgz", + "integrity": "sha512-MHTOYKdwwJBkvYid0TaYvBzOnFH3TDtzo6ie5E4o9SaUSXXsfMRLa/whUz6efVIgTxj1xnKYasNn/XwEgJeB/Q==", + "dev": true, + "peerDependencies": { + "karma": ">=0.9", + "requirejs": "^2.1.0" + } + }, + "node_modules/karma-rollup-preprocessor": { + "version": "7.0.8", + "resolved": "https://registry.npmjs.org/karma-rollup-preprocessor/-/karma-rollup-preprocessor-7.0.8.tgz", + "integrity": "sha512-WiuBCS9qsatJuR17dghiTARBZ7LF+ml+eb7qJXhw7IbsdY0lTWELDRQC/93J9i6636CsAXVBL3VJF4WtaFLZzA==", + "dev": true, + "dependencies": { + "chokidar": "^3.3.1", + "debounce": "^1.2.0" + }, + "engines": { + "node": ">= 8.0.0" + }, + "peerDependencies": { + "rollup": ">= 1.0.0" + } + }, + "node_modules/karma/node_modules/tmp": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.1.tgz", + "integrity": "sha512-76SUhtfqR2Ijn+xllcI5P1oyannHNHByD80W1q447gU3mp9G9PSpGdWmjUOHRDPiHYacIk66W7ubDTuPF3BEtQ==", + "dev": true, + "dependencies": { + "rimraf": "^3.0.0" + }, + "engines": { + "node": ">=8.17.0" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/loader-runner": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz", + "integrity": "sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==", + "dev": true, + "peer": true, + "engines": { + "node": ">=6.11.5" + } + }, + "node_modules/loader-utils": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz", + "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==", + "dev": true, + "dependencies": { + "big.js": "^5.2.2", + "emojis-list": "^3.0.0", + "json5": "^2.1.2" + }, + "engines": { + "node": ">=8.9.0" + } + }, + "node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "dev": true + }, + "node_modules/lodash.debounce": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", + "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==", + "dev": true + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true + }, + "node_modules/log-symbols": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", + "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", + "dev": true, + "dependencies": { + "chalk": "^4.1.0", + "is-unicode-supported": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/log-symbols/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/log-symbols/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/log-symbols/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/log-symbols/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/log-symbols/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/log-symbols/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/log4js": { + "version": "6.8.0", + "resolved": "https://registry.npmjs.org/log4js/-/log4js-6.8.0.tgz", + "integrity": "sha512-g+V8gZyurIexrOvWQ+AcZsIvuK/lBnx2argejZxL4gVZ4Hq02kUYH6WZOnqxgBml+zzQZYdaEoTN84B6Hzm8Fg==", + "dev": true, + "dependencies": { + "date-format": "^4.0.14", + "debug": "^4.3.4", + "flatted": "^3.2.7", + "rfdc": "^1.3.0", + "streamroller": "^3.1.5" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/lolex": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/lolex/-/lolex-4.2.0.tgz", + "integrity": "sha512-gKO5uExCXvSm6zbF562EvM+rd1kQDnB9AZBbiQVzf1ZmdDpxUSvpnAaVOP83N/31mRK8Ml8/VE8DMvsAZQ+7wg==", + "dev": true + }, + "node_modules/loupe": { + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.6.tgz", + "integrity": "sha512-RaPMZKiMy8/JruncMU5Bt6na1eftNoo++R4Y+N2FrxkDVTrGvcyzFTsaGif4QTeKESheMGegbhw6iUAq+5A8zA==", + "dev": true, + "dependencies": { + "get-func-name": "^2.0.0" + } + }, + "node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/make-dir": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", + "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", + "dev": true, + "dependencies": { + "semver": "^6.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/map-stream": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/map-stream/-/map-stream-0.1.0.tgz", + "integrity": "sha512-CkYQrPYZfWnu/DAmVCpTSX/xHpKZ80eKh2lAkyA6AJTef6bW+6JpbQZN5rofum7da+SyN1bi5ctTm+lTfcCW3g==", + "dev": true + }, + "node_modules/media-typer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", + "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true, + "peer": true + }, + "node_modules/mime": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz", + "integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==", + "dev": true, + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dev": true, + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/mkdirp": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", + "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", + "dev": true, + "dependencies": { + "minimist": "^1.2.6" + }, + "bin": { + "mkdirp": "bin/cmd.js" + } + }, + "node_modules/mocha": { + "version": "10.2.0", + "resolved": "https://registry.npmjs.org/mocha/-/mocha-10.2.0.tgz", + "integrity": "sha512-IDY7fl/BecMwFHzoqF2sg/SHHANeBoMMXFlS9r0OXKDssYE1M5O43wUY/9BVPeIvfH2zmEbBfseqN9gBQZzXkg==", + "dev": true, + "dependencies": { + "ansi-colors": "4.1.1", + "browser-stdout": "1.3.1", + "chokidar": "3.5.3", + "debug": "4.3.4", + "diff": "5.0.0", + "escape-string-regexp": "4.0.0", + "find-up": "5.0.0", + "glob": "7.2.0", + "he": "1.2.0", + "js-yaml": "4.1.0", + "log-symbols": "4.1.0", + "minimatch": "5.0.1", + "ms": "2.1.3", + "nanoid": "3.3.3", + "serialize-javascript": "6.0.0", + "strip-json-comments": "3.1.1", + "supports-color": "8.1.1", + "workerpool": "6.2.1", + "yargs": "16.2.0", + "yargs-parser": "20.2.4", + "yargs-unparser": "2.0.0" + }, + "bin": { + "_mocha": "bin/_mocha", + "mocha": "bin/mocha.js" + }, + "engines": { + "node": ">= 14.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mochajs" + } + }, + "node_modules/mocha/node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/mocha/node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/mocha/node_modules/glob": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", + "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/mocha/node_modules/glob/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/mocha/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/mocha/node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/mocha/node_modules/minimatch": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.0.1.tgz", + "integrity": "sha512-nLDxIFRyhDblz3qMuq+SoRZED4+miJ/G+tdDrjkkkRnjAsBexeGpgjLEQ0blJy7rHhR2b93rhQY4SvyWu9v03g==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/mocha/node_modules/minimatch/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/mocha/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true + }, + "node_modules/mocha/node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/mocha/node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/mocha/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/mocha/node_modules/yargs-parser": { + "version": "20.2.4", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.4.tgz", + "integrity": "sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "node_modules/nanoid": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.3.tgz", + "integrity": "sha512-p1sjXuopFs0xg+fPASzQ28agW1oHD7xDsd9Xkf3T15H3c/cifrFHVwrh74PdoklAPi+i7MdRsE47vm2r6JoB+w==", + "dev": true, + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true + }, + "node_modules/negotiator": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", + "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/neo-async": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", + "dev": true, + "peer": true + }, + "node_modules/nise": { + "version": "1.5.3", + "resolved": "https://registry.npmjs.org/nise/-/nise-1.5.3.tgz", + "integrity": "sha512-Ymbac/94xeIrMf59REBPOv0thr+CJVFMhrlAkW/gjCIE58BGQdCj0x7KRCb3yz+Ga2Rz3E9XXSvUyyxqqhjQAQ==", + "dev": true, + "dependencies": { + "@sinonjs/formatio": "^3.2.1", + "@sinonjs/text-encoding": "^0.7.1", + "just-extend": "^4.0.2", + "lolex": "^5.0.1", + "path-to-regexp": "^1.7.0" + } + }, + "node_modules/nise/node_modules/lolex": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/lolex/-/lolex-5.1.2.tgz", + "integrity": "sha512-h4hmjAvHTmd+25JSwrtTIuwbKdwg5NzZVRMLn9saij4SZaepCrTCxPr35H/3bjwfMJtN+t3CX8672UIkglz28A==", + "dev": true, + "dependencies": { + "@sinonjs/commons": "^1.7.0" + } + }, + "node_modules/node-releases": { + "version": "2.0.10", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.10.tgz", + "integrity": "sha512-5GFldHPXVG/YZmFzJvKK2zDSzPKhEp0+ZR5SVaoSag9fsL5YgHbUHDfnG5494ISANDcK4KwPXAx2xqVEydmd7w==", + "dev": true + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/null-check": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/null-check/-/null-check-1.0.0.tgz", + "integrity": "sha512-j8ZNHg19TyIQOWCGeeQJBuu6xZYIEurf8M1Qsfd8mFrGEfIZytbw18YjKWg+LcO25NowXGZXZpKAx+Ui3TFfDw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-inspect": { + "version": "1.12.3", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz", + "integrity": "sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "dev": true, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.assign": { + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz", + "integrity": "sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "has-symbols": "^1.0.3", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.values": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.6.tgz", + "integrity": "sha512-FVVTkD1vENCsAcwNs9k6jea2uHC/X0+JcjG8YA60FN5CMaJmG95wT9jek/xX9nornqGRrBkKtzuAu2wuHpKqvw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/on-finished": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", + "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", + "dev": true, + "dependencies": { + "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dev": true, + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/optionator": { + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", + "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==", + "dev": true, + "dependencies": { + "@aashutoshrathi/word-wrap": "^1.2.3", + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/parseurl": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true + }, + "node_modules/path-to-regexp": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-1.8.0.tgz", + "integrity": "sha512-n43JRhlUKUAlibEJhPeir1ncUID16QnEjNpwzNdO3Lm4ywrBpBZ5oLD0I6br9evr1Y9JTqwRtAh7JLoOzAQdVA==", + "dev": true, + "dependencies": { + "isarray": "0.0.1" + } + }, + "node_modules/pathval": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz", + "integrity": "sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==", + "dev": true, + "engines": { + "node": "*" + } + }, + "node_modules/pause-stream": { + "version": "0.0.11", + "resolved": "https://registry.npmjs.org/pause-stream/-/pause-stream-0.0.11.tgz", + "integrity": "sha512-e3FBlXLmN/D1S+zHzanP4E/4Z60oFAa3O051qt1pxa7DEJWKAyil6upYVXCWadEnuoqa4Pkc9oUx9zsxYeRv8A==", + "dev": true, + "dependencies": { + "through": "~2.3" + } + }, + "node_modules/picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "dev": true + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dev": true, + "dependencies": { + "find-up": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/platform": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/platform/-/platform-1.3.6.tgz", + "integrity": "sha512-fnWVljUchTro6RiCFvCXBbNhJc2NijN7oIQxbwsyL0buWJPG85v81ehlHI9fXrJsMNgTofEoWIQeClKpgxFLrg==", + "dev": true + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/prettier": { + "version": "2.8.8", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", + "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", + "dev": true, + "peer": true, + "bin": { + "prettier": "bin-prettier.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/prettier-linter-helpers": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", + "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", + "dev": true, + "dependencies": { + "fast-diff": "^1.1.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/ps-tree": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/ps-tree/-/ps-tree-1.2.0.tgz", + "integrity": "sha512-0VnamPPYHl4uaU/nSFeZZpR21QAWRz+sRv4iW9+v/GS/J5U5iZB5BNN6J0RMoOvdx2gWM2+ZFMIm58q24e4UYA==", + "dev": true, + "dependencies": { + "event-stream": "=3.3.4" + }, + "bin": { + "ps-tree": "bin/ps-tree.js" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/punycode": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", + "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/q": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", + "integrity": "sha512-kV/CThkXo6xyFEZUugw/+pIOywXcDbFYgSct5cT3gqlbkBE1SJdwy6UQoZvodiWF/ckQLZyDE/Bu1M6gVu5lVw==", + "dev": true, + "engines": { + "node": ">=0.6.0", + "teleport": ">=0.2.0" + } + }, + "node_modules/qjobs": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/qjobs/-/qjobs-1.2.0.tgz", + "integrity": "sha512-8YOJEHtxpySA3fFDyCRxA+UUV+fA+rTWnuWvylOK/NCjhY+b4ocCtmu8TtsWb+mYeU+GCHf/S66KZF/AsteKHg==", + "dev": true, + "engines": { + "node": ">=0.9" + } + }, + "node_modules/qs": { + "version": "6.11.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", + "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", + "dev": true, + "dependencies": { + "side-channel": "^1.0.4" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/randombytes": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", + "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", + "dev": true, + "dependencies": { + "safe-buffer": "^5.1.0" + } + }, + "node_modules/range-parser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/raw-body": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz", + "integrity": "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==", + "dev": true, + "dependencies": { + "bytes": "3.1.2", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dev": true, + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/regenerate": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", + "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==", + "dev": true + }, + "node_modules/regenerate-unicode-properties": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.1.0.tgz", + "integrity": "sha512-d1VudCLoIGitcU/hEg2QqvyGZQmdC0Lf8BqdOMXGFSvJP4bNV1+XqbPQeHHLD51Jh4QJJ225dlIFvY4Ly6MXmQ==", + "dev": true, + "dependencies": { + "regenerate": "^1.4.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/regenerator-runtime": { + "version": "0.13.11", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz", + "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==" + }, + "node_modules/regenerator-transform": { + "version": "0.15.1", + "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.15.1.tgz", + "integrity": "sha512-knzmNAcuyxV+gQCufkYcvOqX/qIIfHLv0u5x79kRxuGojfYVky1f15TzZEu2Avte8QGepvUNTnLskf8E6X6Vyg==", + "dev": true, + "dependencies": { + "@babel/runtime": "^7.8.4" + } + }, + "node_modules/regexp.prototype.flags": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz", + "integrity": "sha512-fjggEOO3slI6Wvgjwflkc4NFRCTZAu5CnNfBd5qOMYhWdn67nJBBu34/TkD++eeFmd8C9r9jfXJ27+nSiRkSUA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "functions-have-names": "^1.2.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/regexpp": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-2.0.1.tgz", + "integrity": "sha512-lv0M6+TkDVniA3aD1Eg0DVpfU/booSu7Eev3TDO/mZKHBfVjgCGTV4t4buppESEYDtkArYFOxTJWv6S5C+iaNw==", + "dev": true, + "engines": { + "node": ">=6.5.0" + } + }, + "node_modules/regexpu-core": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-5.3.1.tgz", + "integrity": "sha512-nCOzW2V/X15XpLsK2rlgdwrysrBq+AauCn+omItIz4R1pIcmeot5zvjdmOBRLzEH/CkC6IxMJVmxDe3QcMuNVQ==", + "dev": true, + "dependencies": { + "@babel/regjsgen": "^0.8.0", + "regenerate": "^1.4.2", + "regenerate-unicode-properties": "^10.1.0", + "regjsparser": "^0.9.1", + "unicode-match-property-ecmascript": "^2.0.0", + "unicode-match-property-value-ecmascript": "^2.1.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/regjsparser": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.9.1.tgz", + "integrity": "sha512-dQUtn90WanSNl+7mQKcXAgZxvUe7Z0SqXlgzv0za4LwiUhyzBC58yQO3liFoUgu8GiJVInAhJjkj1N0EtQ5nkQ==", + "dev": true, + "dependencies": { + "jsesc": "~0.5.0" + }, + "bin": { + "regjsparser": "bin/parser" + } + }, + "node_modules/regjsparser/node_modules/jsesc": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", + "integrity": "sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA==", + "dev": true, + "bin": { + "jsesc": "bin/jsesc" + } + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/requirejs": { + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/requirejs/-/requirejs-2.3.6.tgz", + "integrity": "sha512-ipEzlWQe6RK3jkzikgCupiTbTvm4S0/CAU5GlgptkN5SO6F3u0UD0K18wy6ErDqiCyP4J4YYe1HuAShvsxePLg==", + "dev": true, + "bin": { + "r_js": "bin/r.js", + "r.js": "bin/r.js" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/requires-port": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", + "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==" + }, + "node_modules/resolve": { + "version": "1.22.1", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", + "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", + "dev": true, + "dependencies": { + "is-core-module": "^2.9.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "dev": true, + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rfdc": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.3.0.tgz", + "integrity": "sha512-V2hovdzFbOi77/WajaSMXk2OLm+xNIeQdMMuB7icj7bk6zi2F8GGAxigcnDFpJHbNyNcgyJDiP+8nOrY5cZGrA==", + "dev": true + }, + "node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/rollup": { + "version": "3.17.2", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.17.2.tgz", + "integrity": "sha512-qMNZdlQPCkWodrAZ3qnJtvCAl4vpQ8q77uEujVCCbC/6CLB7Lcmvjq7HyiOSnf4fxTT9XgsE36oLHJBH49xjqA==", + "dev": true, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=14.18.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/safe-regex-test": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz", + "integrity": "sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.3", + "is-regex": "^1.1.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "dev": true + }, + "node_modules/schema-utils": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.7.1.tgz", + "integrity": "sha512-SHiNtMOUGWBQJwzISiVYKu82GiV4QYGePp3odlY1tuKO7gPtphAT5R/py0fA6xtbgLL/RvtJZnU9b8s0F1q0Xg==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.5", + "ajv": "^6.12.4", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 8.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/serialize-javascript": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz", + "integrity": "sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==", + "dev": true, + "dependencies": { + "randombytes": "^2.1.0" + } + }, + "node_modules/setprototypeof": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", + "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", + "dev": true + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/side-channel": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", + "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.0", + "get-intrinsic": "^1.0.2", + "object-inspect": "^1.9.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/sinon": { + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/sinon/-/sinon-7.5.0.tgz", + "integrity": "sha512-AoD0oJWerp0/rY9czP/D6hDTTUYGpObhZjMpd7Cl/A6+j0xBE+ayL/ldfggkBXUs0IkvIiM1ljM8+WkOc5k78Q==", + "dev": true, + "dependencies": { + "@sinonjs/commons": "^1.4.0", + "@sinonjs/formatio": "^3.2.1", + "@sinonjs/samsam": "^3.3.3", + "diff": "^3.5.0", + "lolex": "^4.2.0", + "nise": "^1.5.2", + "supports-color": "^5.5.0" + } + }, + "node_modules/sinon/node_modules/diff": { + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", + "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", + "dev": true, + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/smob": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/smob/-/smob-1.4.0.tgz", + "integrity": "sha512-MqR3fVulhjWuRNSMydnTlweu38UhQ0HXM4buStD/S3mc/BzX3CuM9OmhyQpmtYCvoYdl5ris6TI0ZqH355Ymqg==", + "dev": true + }, + "node_modules/socket.io": { + "version": "4.6.1", + "resolved": "https://registry.npmjs.org/socket.io/-/socket.io-4.6.1.tgz", + "integrity": "sha512-KMcaAi4l/8+xEjkRICl6ak8ySoxsYG+gG6/XfRCPJPQ/haCRIJBTL4wIl8YCsmtaBovcAXGLOShyVWQ/FG8GZA==", + "dev": true, + "dependencies": { + "accepts": "~1.3.4", + "base64id": "~2.0.0", + "debug": "~4.3.2", + "engine.io": "~6.4.1", + "socket.io-adapter": "~2.5.2", + "socket.io-parser": "~4.2.1" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/socket.io-adapter": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/socket.io-adapter/-/socket.io-adapter-2.5.2.tgz", + "integrity": "sha512-87C3LO/NOMc+eMcpcxUBebGjkpMDkNBS9tf7KJqcDsmL936EChtVva71Dw2q4tQcuVC+hAUy4an2NO/sYXmwRA==", + "dev": true, + "dependencies": { + "ws": "~8.11.0" + } + }, + "node_modules/socket.io-parser": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-4.2.2.tgz", + "integrity": "sha512-DJtziuKypFkMMHCm2uIshOYC7QaylbtzQwiMYDuCKy3OPkjLzu4B2vAhTlqipRHHzrI0NJeBAizTK7X+6m1jVw==", + "dev": true, + "dependencies": { + "@socket.io/component-emitter": "~3.1.0", + "debug": "~4.3.1" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "dev": true, + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/split": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/split/-/split-0.3.3.tgz", + "integrity": "sha512-wD2AeVmxXRBoX44wAycgjVpMhvbwdI2aZjCkvfNcH1YqHQvJVa1duWc73OyVGJUc05fhFaTZeQ/PYsrmyH0JVA==", + "dev": true, + "dependencies": { + "through": "2" + }, + "engines": { + "node": "*" + } + }, + "node_modules/statuses": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", + "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/stream-combiner": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/stream-combiner/-/stream-combiner-0.0.4.tgz", + "integrity": "sha512-rT00SPnTVyRsaSz5zgSPma/aHSOic5U1prhYdRy5HS2kTZviFpmDgzilbtsJsxiroqACmayynDN/9VzIbX5DOw==", + "dev": true, + "dependencies": { + "duplexer": "~0.1.1" + } + }, + "node_modules/streamroller": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/streamroller/-/streamroller-3.1.5.tgz", + "integrity": "sha512-KFxaM7XT+irxvdqSP1LGLgNWbYN7ay5owZ3r/8t77p+EtSUAfUgtl7be3xtqtOmGUl9K9YPO2ca8133RlTjvKw==", + "dev": true, + "dependencies": { + "date-format": "^4.0.14", + "debug": "^4.3.4", + "fs-extra": "^8.1.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/string.prototype.trimend": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.6.tgz", + "integrity": "sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimstart": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.6.tgz", + "integrity": "sha512-omqjMDaY92pbn5HOX7f9IccLA+U1tA9GvtU4JrodiXFfYB7jPzzHpRzpglLAjtUV6bB557zwClJezTqnAiYnQA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/tapable": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", + "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", + "dev": true, + "peer": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/temp-fs": { + "version": "0.9.9", + "resolved": "https://registry.npmjs.org/temp-fs/-/temp-fs-0.9.9.tgz", + "integrity": "sha512-WfecDCR1xC9b0nsrzSaxPf3ZuWeWLUWblW4vlDQAa1biQaKHiImHnJfeQocQe/hXKMcolRzgkcVX/7kK4zoWbw==", + "dev": true, + "dependencies": { + "rimraf": "~2.5.2" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/temp-fs/node_modules/rimraf": { + "version": "2.5.4", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.5.4.tgz", + "integrity": "sha512-Lw7SHMjssciQb/rRz7JyPIy9+bbUshEucPoLRvWqy09vC5zQixl8Uet+Zl+SROBB/JMWHJRdCk1qdxNWHNMvlQ==", + "dev": true, + "dependencies": { + "glob": "^7.0.5" + }, + "bin": { + "rimraf": "bin.js" + } + }, + "node_modules/terser": { + "version": "5.18.2", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.18.2.tgz", + "integrity": "sha512-Ah19JS86ypbJzTzvUCX7KOsEIhDaRONungA4aYBjEP3JZRf4ocuDzTg4QWZnPn9DEMiMYGJPiSOy7aykoCc70w==", + "dev": true, + "dependencies": { + "@jridgewell/source-map": "^0.3.3", + "acorn": "^8.8.2", + "commander": "^2.20.0", + "source-map-support": "~0.5.20" + }, + "bin": { + "terser": "bin/terser" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/terser-webpack-plugin": { + "version": "5.3.9", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.9.tgz", + "integrity": "sha512-ZuXsqE07EcggTWQjXUj+Aot/OMcD0bMKGgF63f7UxYcu5/AJF53aIpK1YoP5xR9l6s/Hy2b+t1AM0bLNPRuhwA==", + "dev": true, + "peer": true, + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.17", + "jest-worker": "^27.4.5", + "schema-utils": "^3.1.1", + "serialize-javascript": "^6.0.1", + "terser": "^5.16.8" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.1.0" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "uglify-js": { + "optional": true + } + } + }, + "node_modules/terser-webpack-plugin/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "peer": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/terser-webpack-plugin/node_modules/jest-worker": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", + "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", + "dev": true, + "peer": true, + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": ">= 10.13.0" + } + }, + "node_modules/terser-webpack-plugin/node_modules/schema-utils": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz", + "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==", + "dev": true, + "peer": true, + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/terser-webpack-plugin/node_modules/serialize-javascript": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.1.tgz", + "integrity": "sha512-owoXEFjWRllis8/M1Q+Cw5k8ZH40e3zhp/ovX+Xr/vi1qj6QesbyXXViFbpNvWvPNAD62SutwEXavefrLJWj7w==", + "dev": true, + "peer": true, + "dependencies": { + "randombytes": "^2.1.0" + } + }, + "node_modules/terser-webpack-plugin/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "peer": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", + "dev": true + }, + "node_modules/through": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", + "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==", + "dev": true + }, + "node_modules/to-fast-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/toidentifier": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", + "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", + "dev": true, + "engines": { + "node": ">=0.6" + } + }, + "node_modules/tsconfig-paths": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.1.tgz", + "integrity": "sha512-fxDhWnFSLt3VuTwtvJt5fpwxBHg5AdKWMsgcPOOIilyjymcYVZoCQF8fvFRezCNfblEXmi+PcM1eYHeOAgXCOQ==", + "dev": true, + "dependencies": { + "@types/json5": "^0.0.29", + "json5": "^1.0.1", + "minimist": "^1.2.6", + "strip-bom": "^3.0.0" + } + }, + "node_modules/tsconfig-paths/node_modules/json5": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", + "dev": true, + "dependencies": { + "minimist": "^1.2.0" + }, + "bin": { + "json5": "lib/cli.js" + } + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-detect": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/type-is": { + "version": "1.6.18", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", + "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", + "dev": true, + "dependencies": { + "media-typer": "0.3.0", + "mime-types": "~2.1.24" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/typed-array-length": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.4.tgz", + "integrity": "sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "is-typed-array": "^1.1.9" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/ua-parser-js": { + "version": "0.7.33", + "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-0.7.33.tgz", + "integrity": "sha512-s8ax/CeZdK9R/56Sui0WM6y9OFREJarMRHqLB2EwkovemBxNQ+Bqu8GAsUnVcXKgphb++ghr/B2BZx4mahujPw==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/ua-parser-js" + }, + { + "type": "paypal", + "url": "https://paypal.me/faisalman" + } + ], + "engines": { + "node": "*" + } + }, + "node_modules/unbox-primitive": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", + "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-bigints": "^1.0.2", + "has-symbols": "^1.0.3", + "which-boxed-primitive": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/unicode-canonical-property-names-ecmascript": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz", + "integrity": "sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-match-property-ecmascript": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz", + "integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==", + "dev": true, + "dependencies": { + "unicode-canonical-property-names-ecmascript": "^2.0.0", + "unicode-property-aliases-ecmascript": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-match-property-value-ecmascript": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.1.0.tgz", + "integrity": "sha512-qxkjQt6qjg/mYscYMC0XKRn3Rh0wFPlfxB0xkt9CfyTvpX1Ra0+rAmdX2QyAobptSEvuy4RtpPRui6XkV+8wjA==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-property-aliases-ecmascript": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz", + "integrity": "sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "dev": true, + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/update-browserslist-db": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.10.tgz", + "integrity": "sha512-OztqDenkfFkbSG+tRxBeAnCVPckDBcvibKd35yDONx6OU8N7sqgwc7rCbkJ/WcYtVRZ4ba68d6byhC21GFh7sQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + } + ], + "dependencies": { + "escalade": "^3.1.1", + "picocolors": "^1.0.0" + }, + "bin": { + "browserslist-lint": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/utils-merge": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", + "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", + "dev": true, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/void-elements": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/void-elements/-/void-elements-2.0.1.tgz", + "integrity": "sha512-qZKX4RnBzH2ugr8Lxa7x+0V6XD9Sb/ouARtiasEQCHB1EVU4NXtmHsDDrx1dO4ne5fc3J6EW05BP1Dl0z0iung==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/watchpack": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", + "integrity": "sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==", + "dev": true, + "peer": true, + "dependencies": { + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.1.2" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/webpack": { + "version": "5.88.1", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.88.1.tgz", + "integrity": "sha512-FROX3TxQnC/ox4N+3xQoWZzvGXSuscxR32rbzjpXgEzWudJFEJBpdlkkob2ylrv5yzzufD1zph1OoFsLtm6stQ==", + "dev": true, + "peer": true, + "dependencies": { + "@types/eslint-scope": "^3.7.3", + "@types/estree": "^1.0.0", + "@webassemblyjs/ast": "^1.11.5", + "@webassemblyjs/wasm-edit": "^1.11.5", + "@webassemblyjs/wasm-parser": "^1.11.5", + "acorn": "^8.7.1", + "acorn-import-assertions": "^1.9.0", + "browserslist": "^4.14.5", + "chrome-trace-event": "^1.0.2", + "enhanced-resolve": "^5.15.0", + "es-module-lexer": "^1.2.1", + "eslint-scope": "5.1.1", + "events": "^3.2.0", + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.2.9", + "json-parse-even-better-errors": "^2.3.1", + "loader-runner": "^4.2.0", + "mime-types": "^2.1.27", + "neo-async": "^2.6.2", + "schema-utils": "^3.2.0", + "tapable": "^2.1.1", + "terser-webpack-plugin": "^5.3.7", + "watchpack": "^2.4.0", + "webpack-sources": "^3.2.3" + }, + "bin": { + "webpack": "bin/webpack.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependenciesMeta": { + "webpack-cli": { + "optional": true + } + } + }, + "node_modules/webpack-sources": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz", + "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==", + "dev": true, + "peer": true, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/webpack/node_modules/eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dev": true, + "peer": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/webpack/node_modules/estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true, + "peer": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/webpack/node_modules/schema-utils": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz", + "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==", + "dev": true, + "peer": true, + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/whatwg-fetch": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.6.2.tgz", + "integrity": "sha512-bJlen0FcuU/0EMLrdbJ7zOnW6ITZLrZMIarMUVmdKtsGvZna8vxKYaexICWPfZ8qwf9fzNq+UEIZrnSaApt6RA==" + }, + "node_modules/which": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "which": "bin/which" + } + }, + "node_modules/which-boxed-primitive": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", + "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", + "dev": true, + "dependencies": { + "is-bigint": "^1.0.1", + "is-boolean-object": "^1.1.0", + "is-number-object": "^1.0.4", + "is-string": "^1.0.5", + "is-symbol": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-typed-array": { + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.9.tgz", + "integrity": "sha512-w9c4xkx6mPidwp7180ckYWfMmvxpjlZuIudNtDf4N/tTAUB8VJbX25qZoAsrtGuYNnGw3pa0AXgbGKRB8/EceA==", + "dev": true, + "dependencies": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.0", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/workerpool": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.2.1.tgz", + "integrity": "sha512-ILEIE97kDZvF9Wb9f6h5aXK4swSlKGUcOEGiIYb2OOu/IrDU9iwj0fD//SsA6E5ibwJxpEvhullJY4Sl4GcpAw==", + "dev": true + }, + "node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/wrap-ansi/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/wrap-ansi/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "node_modules/wrap-ansi/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "dev": true + }, + "node_modules/ws": { + "version": "8.11.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.11.0.tgz", + "integrity": "sha512-HPG3wQd9sNQoT9xHyNCXoDUa+Xw/VevmY9FoHyQ+g+rrMn4j6FB4np7Z0OhdTgjx6MgQLK7jwSy1YecU1+4Asg==", + "dev": true, + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true + }, + "node_modules/yargs": { + "version": "16.2.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", + "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", + "dev": true, + "dependencies": { + "cliui": "^7.0.2", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.0", + "y18n": "^5.0.5", + "yargs-parser": "^20.2.2" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/yargs-parser": { + "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/yargs-unparser": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-2.0.0.tgz", + "integrity": "sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==", + "dev": true, + "dependencies": { + "camelcase": "^6.0.0", + "decamelize": "^4.0.0", + "flat": "^5.0.2", + "is-plain-obj": "^2.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/yargs/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "node_modules/yargs/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/yargs/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + } + }, "dependencies": { + "@aashutoshrathi/word-wrap": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz", + "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==", + "dev": true + }, "@ampproject/remapping": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.0.tgz", @@ -1145,6 +8927,86 @@ "integrity": "sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==", "dev": true }, + "@eslint-community/eslint-utils": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", + "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", + "dev": true, + "requires": { + "eslint-visitor-keys": "^3.3.0" + }, + "dependencies": { + "eslint-visitor-keys": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz", + "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==", + "dev": true + } + } + }, + "@eslint-community/regexpp": { + "version": "4.5.1", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.5.1.tgz", + "integrity": "sha512-Z5ba73P98O1KUYCCJTUeVpja9RcGoMdncZ6T49FCUl2lN38JtCJ+3WgIDBv0AuY4WChU5PmtJmOCTlN6FZTFKQ==", + "dev": true + }, + "@eslint/eslintrc": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.0.3.tgz", + "integrity": "sha512-+5gy6OQfk+xx3q0d6jGZZC3f3KzAkXc/IanVxd1is/VIIziRqqt3ongQz0FiTUXqTk0c7aDB3OaFuKnuSoJicQ==", + "dev": true, + "requires": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.5.2", + "globals": "^13.19.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "dependencies": { + "globals": { + "version": "13.20.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", + "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", + "dev": true, + "requires": { + "type-fest": "^0.20.2" + } + } + } + }, + "@eslint/js": { + "version": "8.43.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.43.0.tgz", + "integrity": "sha512-s2UHCoiXfxMvmfzqoN+vrQ84ahUSYde9qNO1MdxmoEhyHWsfmwOpFlwYV+ePJEVc7gFnATGUi376WowX1N7tFg==", + "dev": true + }, + "@humanwhocodes/config-array": { + "version": "0.11.10", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.10.tgz", + "integrity": "sha512-KVVjQmNUepDVGXNuoRRdmmEjruj0KfiGSbS8LVc12LMsWDQzRXJ0qdhN8L8uUigKpfEHRhlaQFY0ib1tnUbNeQ==", + "dev": true, + "requires": { + "@humanwhocodes/object-schema": "^1.2.1", + "debug": "^4.1.1", + "minimatch": "^3.0.5" + } + }, + "@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true + }, + "@humanwhocodes/object-schema": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", + "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", + "dev": true + }, "@jridgewell/gen-mapping": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz", @@ -1168,9 +9030,9 @@ "dev": true }, "@jridgewell/source-map": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.2.tgz", - "integrity": "sha512-m7O9o2uR8k2ObDysZYzdfhb08VuEml5oWGiosa1VdaPZ/A6QyPkAJuwN0Q1lhULOf6B7MtQmHENS743hWtCrgw==", + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.3.tgz", + "integrity": "sha512-b+fsZXeLYi9fEULmfBrhxn4IrPlINf8fiNarzTof004v3lFdntdwa9PF7vFJqm3mg7s+ScJMxXaE3Acp1irZcg==", "dev": true, "requires": { "@jridgewell/gen-mapping": "^0.3.0", @@ -1178,9 +9040,9 @@ }, "dependencies": { "@jridgewell/gen-mapping": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", - "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", + "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", "dev": true, "requires": { "@jridgewell/set-array": "^1.0.1", @@ -1206,39 +9068,162 @@ "@jridgewell/sourcemap-codec": "1.4.14" } }, + "@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "requires": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + } + }, + "@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true + }, + "@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "requires": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + } + }, "@rollup/plugin-babel": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/@rollup/plugin-babel/-/plugin-babel-5.3.1.tgz", - "integrity": "sha512-WFfdLWU/xVWKeRQnKmIAQULUI7Il0gZnBIH/ZFO069wYIfPu+8zrfp/KMW0atmELoRDq8FbiP3VCss9MhCut7Q==", + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/@rollup/plugin-babel/-/plugin-babel-6.0.3.tgz", + "integrity": "sha512-fKImZKppa1A/gX73eg4JGo+8kQr/q1HBQaCGKECZ0v4YBBv3lFqi14+7xyApECzvkLTHCifx+7ntcrvtBIRcpg==", + "dev": true, + "requires": { + "@babel/helper-module-imports": "^7.18.6", + "@rollup/pluginutils": "^5.0.1" + } + }, + "@rollup/plugin-commonjs": { + "version": "24.1.0", + "resolved": "https://registry.npmjs.org/@rollup/plugin-commonjs/-/plugin-commonjs-24.1.0.tgz", + "integrity": "sha512-eSL45hjhCWI0jCCXcNtLVqM5N1JlBGvlFfY0m6oOYnLCJ6N0qEXoZql4sY2MOUArzhH4SA/qBpTxvvZp2Sc+DQ==", + "dev": true, + "requires": { + "@rollup/pluginutils": "^5.0.1", + "commondir": "^1.0.1", + "estree-walker": "^2.0.2", + "glob": "^8.0.3", + "is-reference": "1.2.1", + "magic-string": "^0.27.0" + }, + "dependencies": { + "brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0" + } + }, + "glob": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz", + "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^5.0.1", + "once": "^1.3.0" + } + }, + "magic-string": { + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.27.0.tgz", + "integrity": "sha512-8UnnX2PeRAPZuN12svgR9j7M1uWMovg/CEnIwIG0LFkXSJJe4PdfUGiTGl8V9bsBHFUtfVINcSyYxd7q+kx9fA==", + "dev": true, + "requires": { + "@jridgewell/sourcemap-codec": "^1.4.13" + } + }, + "minimatch": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", + "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", + "dev": true, + "requires": { + "brace-expansion": "^2.0.1" + } + } + } + }, + "@rollup/plugin-eslint": { + "version": "9.0.4", + "resolved": "https://registry.npmjs.org/@rollup/plugin-eslint/-/plugin-eslint-9.0.4.tgz", + "integrity": "sha512-JtXb8RFMsRB6pMsVAo7qR3wopb7XT7XlxnqQQk/5zdrhmCOgF/OoKBYWLzK0yaUXNfRZeuly9VLt6VgXIBrvkw==", + "dev": true, + "requires": { + "@rollup/pluginutils": "^5.0.1", + "eslint": "^8.24.0" + } + }, + "@rollup/plugin-json": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/@rollup/plugin-json/-/plugin-json-6.0.0.tgz", + "integrity": "sha512-i/4C5Jrdr1XUarRhVu27EEwjt4GObltD7c+MkCIpO2QIbojw8MUs+CCTqOphQi3Qtg1FLmYt+l+6YeoIf51J7w==", "dev": true, "requires": { - "@babel/helper-module-imports": "^7.10.4", - "@rollup/pluginutils": "^3.1.0" + "@rollup/pluginutils": "^5.0.1" } }, "@rollup/plugin-node-resolve": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-9.0.0.tgz", - "integrity": "sha512-gPz+utFHLRrd41WMP13Jq5mqqzHL3OXrfj3/MkSyB6UBIcuNt9j60GCbarzMzdf1VHFpOxfQh/ez7wyadLMqkg==", + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-15.1.0.tgz", + "integrity": "sha512-xeZHCgsiZ9pzYVgAo9580eCGqwh/XCEUM9q6iQfGNocjgkufHAqC3exA+45URvhiYV8sBF9RlBai650eNs7AsA==", "dev": true, "requires": { - "@rollup/pluginutils": "^3.1.0", - "@types/resolve": "1.17.1", - "builtin-modules": "^3.1.0", + "@rollup/pluginutils": "^5.0.1", + "@types/resolve": "1.20.2", "deepmerge": "^4.2.2", + "is-builtin-module": "^3.2.1", "is-module": "^1.0.0", - "resolve": "^1.17.0" + "resolve": "^1.22.1" + } + }, + "@rollup/plugin-terser": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/@rollup/plugin-terser/-/plugin-terser-0.4.3.tgz", + "integrity": "sha512-EF0oejTMtkyhrkwCdg0HJ0IpkcaVg1MMSf2olHb2Jp+1mnLM04OhjpJWGma4HobiDTF0WCyViWuvadyE9ch2XA==", + "dev": true, + "requires": { + "serialize-javascript": "^6.0.1", + "smob": "^1.0.0", + "terser": "^5.17.4" + }, + "dependencies": { + "serialize-javascript": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.1.tgz", + "integrity": "sha512-owoXEFjWRllis8/M1Q+Cw5k8ZH40e3zhp/ovX+Xr/vi1qj6QesbyXXViFbpNvWvPNAD62SutwEXavefrLJWj7w==", + "dev": true, + "requires": { + "randombytes": "^2.1.0" + } + } } }, "@rollup/pluginutils": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-3.1.0.tgz", - "integrity": "sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==", + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-5.0.2.tgz", + "integrity": "sha512-pTd9rIsP92h+B6wWwFbW8RkZv4hiR/xKsqre4SIuAOaOEQRxi0lqLke9k2/7WegC85GgUs9pjmOjCUi3In4vwA==", "dev": true, "requires": { - "@types/estree": "0.0.39", - "estree-walker": "^1.0.1", - "picomatch": "^2.2.2" + "@types/estree": "^1.0.0", + "estree-walker": "^2.0.2", + "picomatch": "^2.3.1" } }, "@sinonjs/commons": { @@ -1298,10 +9283,32 @@ "@types/node": "*" } }, + "@types/eslint": { + "version": "8.40.2", + "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.40.2.tgz", + "integrity": "sha512-PRVjQ4Eh9z9pmmtaq8nTjZjQwKFk7YIHIud3lRoKRBgUQjgjRmoGxxGEPXQkF+lH7QkHJRNr5F4aBgYCW0lqpQ==", + "dev": true, + "peer": true, + "requires": { + "@types/estree": "*", + "@types/json-schema": "*" + } + }, + "@types/eslint-scope": { + "version": "3.7.4", + "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.4.tgz", + "integrity": "sha512-9K4zoImiZc3HlIp6AVUDE4CWYx22a+lhSZMYNpbjW04+YF0KWj4pJXnEMjdnFTiQibFFmElcsasJXDbdI/EPhA==", + "dev": true, + "peer": true, + "requires": { + "@types/eslint": "*", + "@types/estree": "*" + } + }, "@types/estree": { - "version": "0.0.39", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.39.tgz", - "integrity": "sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.1.tgz", + "integrity": "sha512-LG4opVs2ANWZ1TJoKc937iMmNstM/d0ae1vNbnBvBhqCSezgVUOzcLCqbI5elV8Vy6WKwKjaqR+zO9VKirBBCA==", "dev": true }, "@types/json-schema": { @@ -1323,14 +9330,186 @@ "dev": true }, "@types/resolve": { - "version": "1.17.1", - "resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-1.17.1.tgz", - "integrity": "sha512-yy7HuzQhj0dhGpD8RLXSZWEkLsV9ibvxvi6EiJ3bkqLAO1RGo0WbkWQiwpRlSFymTJRz0d3k5LM3kkx8ArDbLw==", + "version": "1.20.2", + "resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-1.20.2.tgz", + "integrity": "sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==", + "dev": true + }, + "@webassemblyjs/ast": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.6.tgz", + "integrity": "sha512-IN1xI7PwOvLPgjcf180gC1bqn3q/QaOCwYUahIOhbYUu8KA/3tw2RT/T0Gidi1l7Hhj5D/INhJxiICObqpMu4Q==", "dev": true, + "peer": true, "requires": { - "@types/node": "*" + "@webassemblyjs/helper-numbers": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6" + } + }, + "@webassemblyjs/floating-point-hex-parser": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.6.tgz", + "integrity": "sha512-ejAj9hfRJ2XMsNHk/v6Fu2dGS+i4UaXBXGemOfQ/JfQ6mdQg/WXtwleQRLLS4OvfDhv8rYnVwH27YJLMyYsxhw==", + "dev": true, + "peer": true + }, + "@webassemblyjs/helper-api-error": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.6.tgz", + "integrity": "sha512-o0YkoP4pVu4rN8aTJgAyj9hC2Sv5UlkzCHhxqWj8butaLvnpdc2jOwh4ewE6CX0txSfLn/UYaV/pheS2Txg//Q==", + "dev": true, + "peer": true + }, + "@webassemblyjs/helper-buffer": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.6.tgz", + "integrity": "sha512-z3nFzdcp1mb8nEOFFk8DrYLpHvhKC3grJD2ardfKOzmbmJvEf/tPIqCY+sNcwZIY8ZD7IkB2l7/pqhUhqm7hLA==", + "dev": true, + "peer": true + }, + "@webassemblyjs/helper-numbers": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.6.tgz", + "integrity": "sha512-vUIhZ8LZoIWHBohiEObxVm6hwP034jwmc9kuq5GdHZH0wiLVLIPcMCdpJzG4C11cHoQ25TFIQj9kaVADVX7N3g==", + "dev": true, + "peer": true, + "requires": { + "@webassemblyjs/floating-point-hex-parser": "1.11.6", + "@webassemblyjs/helper-api-error": "1.11.6", + "@xtuc/long": "4.2.2" + } + }, + "@webassemblyjs/helper-wasm-bytecode": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.6.tgz", + "integrity": "sha512-sFFHKwcmBprO9e7Icf0+gddyWYDViL8bpPjJJl0WHxCdETktXdmtWLGVzoHbqUcY4Be1LkNfwTmXOJUFZYSJdA==", + "dev": true, + "peer": true + }, + "@webassemblyjs/helper-wasm-section": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.6.tgz", + "integrity": "sha512-LPpZbSOwTpEC2cgn4hTydySy1Ke+XEu+ETXuoyvuyezHO3Kjdu90KK95Sh9xTbmjrCsUwvWwCOQQNta37VrS9g==", + "dev": true, + "peer": true, + "requires": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-buffer": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/wasm-gen": "1.11.6" + } + }, + "@webassemblyjs/ieee754": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.6.tgz", + "integrity": "sha512-LM4p2csPNvbij6U1f19v6WR56QZ8JcHg3QIJTlSwzFcmx6WSORicYj6I63f9yU1kEUtrpG+kjkiIAkevHpDXrg==", + "dev": true, + "peer": true, + "requires": { + "@xtuc/ieee754": "^1.2.0" + } + }, + "@webassemblyjs/leb128": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.6.tgz", + "integrity": "sha512-m7a0FhE67DQXgouf1tbN5XQcdWoNgaAuoULHIfGFIEVKA6tu/edls6XnIlkmS6FrXAquJRPni3ZZKjw6FSPjPQ==", + "dev": true, + "peer": true, + "requires": { + "@xtuc/long": "4.2.2" + } + }, + "@webassemblyjs/utf8": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.6.tgz", + "integrity": "sha512-vtXf2wTQ3+up9Zsg8sa2yWiQpzSsMyXj0qViVP6xKGCUT8p8YJ6HqI7l5eCnWx1T/FYdsv07HQs2wTFbbof/RA==", + "dev": true, + "peer": true + }, + "@webassemblyjs/wasm-edit": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.6.tgz", + "integrity": "sha512-Ybn2I6fnfIGuCR+Faaz7YcvtBKxvoLV3Lebn1tM4o/IAJzmi9AWYIPWpyBfU8cC+JxAO57bk4+zdsTjJR+VTOw==", + "dev": true, + "peer": true, + "requires": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-buffer": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/helper-wasm-section": "1.11.6", + "@webassemblyjs/wasm-gen": "1.11.6", + "@webassemblyjs/wasm-opt": "1.11.6", + "@webassemblyjs/wasm-parser": "1.11.6", + "@webassemblyjs/wast-printer": "1.11.6" + } + }, + "@webassemblyjs/wasm-gen": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.6.tgz", + "integrity": "sha512-3XOqkZP/y6B4F0PBAXvI1/bky7GryoogUtfwExeP/v7Nzwo1QLcq5oQmpKlftZLbT+ERUOAZVQjuNVak6UXjPA==", + "dev": true, + "peer": true, + "requires": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/ieee754": "1.11.6", + "@webassemblyjs/leb128": "1.11.6", + "@webassemblyjs/utf8": "1.11.6" + } + }, + "@webassemblyjs/wasm-opt": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.6.tgz", + "integrity": "sha512-cOrKuLRE7PCe6AsOVl7WasYf3wbSo4CeOk6PkrjS7g57MFfVUF9u6ysQBBODX0LdgSvQqRiGz3CXvIDKcPNy4g==", + "dev": true, + "peer": true, + "requires": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-buffer": "1.11.6", + "@webassemblyjs/wasm-gen": "1.11.6", + "@webassemblyjs/wasm-parser": "1.11.6" + } + }, + "@webassemblyjs/wasm-parser": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.6.tgz", + "integrity": "sha512-6ZwPeGzMJM3Dqp3hCsLgESxBGtT/OeCvCZ4TA1JUPYgmhAx38tTPR9JaKy0S5H3evQpO/h2uWs2j6Yc/fjkpTQ==", + "dev": true, + "peer": true, + "requires": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-api-error": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/ieee754": "1.11.6", + "@webassemblyjs/leb128": "1.11.6", + "@webassemblyjs/utf8": "1.11.6" + } + }, + "@webassemblyjs/wast-printer": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.6.tgz", + "integrity": "sha512-JM7AhRcE+yW2GWYaKeHL5vt4xqee5N2WcezptmgyhNS+ScggqcT1OtXykhAb13Sn5Yas0j2uv9tHgrjwvzAP4A==", + "dev": true, + "peer": true, + "requires": { + "@webassemblyjs/ast": "1.11.6", + "@xtuc/long": "4.2.2" } }, + "@xtuc/ieee754": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", + "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", + "dev": true, + "peer": true + }, + "@xtuc/long": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", + "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", + "dev": true, + "peer": true + }, "accepts": { "version": "1.3.8", "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", @@ -1342,16 +9521,25 @@ } }, "acorn": { - "version": "6.4.2", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-6.4.2.tgz", - "integrity": "sha512-XtGIhXwF8YM8bJhGxG5kXgjkEuNGLTkoYqVE+KMR+aspr4KGYmKYg7yUe3KghyQ9yheNwLnjmzh/7+gfDBmHCQ==", + "version": "8.9.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.9.0.tgz", + "integrity": "sha512-jaVNAFBHNLXspO543WnNNPZFRtavh3skAkITqD0/2aeMkKZTN+254PyhwxFYrk3vQ1xfY+2wbesJMs/JC8/PwQ==", "dev": true }, + "acorn-import-assertions": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.9.0.tgz", + "integrity": "sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==", + "dev": true, + "peer": true, + "requires": {} + }, "acorn-jsx": { "version": "5.3.2", "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true + "dev": true, + "requires": {} }, "agent-base": { "version": "4.3.0", @@ -1378,7 +9566,8 @@ "version": "3.5.2", "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", - "dev": true + "dev": true, + "requires": {} }, "ansi-colors": { "version": "4.1.1", @@ -1386,16 +9575,10 @@ "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==", "dev": true }, - "ansi-escapes": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-3.2.0.tgz", - "integrity": "sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ==", - "dev": true - }, "ansi-regex": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.1.tgz", - "integrity": "sha512-+O9Jct8wf++lXxxFc4hc8LsjaSq0HFzzL7cVsw8pRDIPdjKD2mT4ytDZlLuSBZ4cLKZFXIrMGO7DbQCtMJJMKw==", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "dev": true }, "ansi-styles": { @@ -1418,13 +9601,10 @@ } }, "argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, - "requires": { - "sprintf-js": "~1.0.2" - } + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true }, "array-from": { "version": "2.1.1", @@ -1475,12 +9655,6 @@ "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==", "dev": true }, - "astral-regex": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-1.0.0.tgz", - "integrity": "sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg==", - "dev": true - }, "available-typed-arrays": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", @@ -1747,12 +9921,6 @@ "supports-color": "^5.3.0" } }, - "chardet": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz", - "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==", - "dev": true - }, "check-error": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.2.tgz", @@ -1775,20 +9943,12 @@ "readdirp": "~3.6.0" } }, - "cli-cursor": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-2.1.0.tgz", - "integrity": "sha512-8lgKz8LmCRYZZQDpRyT2m5rKJ08TnU4tR9FFFW2rxpxR1FzWi4PQ/NfyODchAatHaUgnSPVcx/R5w6NuTBzFiw==", + "chrome-trace-event": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", + "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==", "dev": true, - "requires": { - "restore-cursor": "^2.0.0" - } - }, - "cli-width": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-2.2.1.tgz", - "integrity": "sha512-GRMWDxpOB6Dgk2E5Uo+3eEBvtOOlimMmpbFiKuLFnQzYDavtLFY3K5ona41jgN/WdRZtG7utuVSVTL4HbZHGkw==", - "dev": true + "peer": true }, "cliui": { "version": "7.0.4", @@ -1801,12 +9961,6 @@ "wrap-ansi": "^7.0.0" }, "dependencies": { - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true - }, "emoji-regex": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", @@ -1829,15 +9983,6 @@ "is-fullwidth-code-point": "^3.0.0", "strip-ansi": "^6.0.1" } - }, - "strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "requires": { - "ansi-regex": "^5.0.1" - } } } }, @@ -1946,23 +10091,24 @@ } }, "cross-spawn": { - "version": "6.0.5", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", - "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", "dev": true, "requires": { - "nice-try": "^1.0.4", - "path-key": "^2.0.1", - "semver": "^5.5.0", - "shebang-command": "^1.2.0", - "which": "^1.2.9" + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" }, "dependencies": { - "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true + "which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "requires": { + "isexe": "^2.0.0" + } } } }, @@ -2099,12 +10245,6 @@ "integrity": "sha512-6c8M+ojPgDIXN2NyfGn8oHASXYnayj+gSEnGeLMKb9zjsySeVB/j7KkNAAG9yDcv8gNlhvFg5REa1N/kQU6pgA==", "dev": true }, - "emoji-regex": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", - "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", - "dev": true - }, "emojis-list": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz", @@ -2141,6 +10281,17 @@ "integrity": "sha512-tjuoZDMAdEhVnSFleYPCtdL2GXwVTGtNjoeJd9IhIG3C1xs9uwxqRNEu5WpnDZCaozwVlK/nuQhpodhXSIMaxw==", "dev": true }, + "enhanced-resolve": { + "version": "5.15.0", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.15.0.tgz", + "integrity": "sha512-LXYT42KJ7lpIKECr2mAXIaMldcNCh/7E0KBKOu4KSfkHmP+mZmSs+8V5gBAqisWBy0OO4W5Oyys0GO1Y8KtdKg==", + "dev": true, + "peer": true, + "requires": { + "graceful-fs": "^4.2.4", + "tapable": "^2.2.0" + } + }, "ent": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/ent/-/ent-2.2.0.tgz", @@ -2188,6 +10339,13 @@ "which-typed-array": "^1.1.9" } }, + "es-module-lexer": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.3.0.tgz", + "integrity": "sha512-vZK7T0N2CBmBOixhmjdqx2gWVbFZ4DXZ/NyRMZVlJXPa7CyFS+/a4QQsDGDQy9ZfEzxFuNEsMLeQJnKP2p5/JA==", + "dev": true, + "peer": true + }, "es-set-tostringtag": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz", @@ -2265,54 +10423,167 @@ "dev": true }, "eslint": { - "version": "5.16.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-5.16.0.tgz", - "integrity": "sha512-S3Rz11i7c8AA5JPv7xAH+dOyq/Cu/VXHiHXBPOU1k/JAM5dXqQPt3qcrhpHSorXmrpu2g0gkIBVXAqCpzfoZIg==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.0.0", - "ajv": "^6.9.1", - "chalk": "^2.1.0", - "cross-spawn": "^6.0.5", - "debug": "^4.0.1", + "version": "8.43.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.43.0.tgz", + "integrity": "sha512-aaCpf2JqqKesMFGgmRPessmVKjcGXqdlAYLLC3THM8t5nBRZRQ+st5WM/hoJXkdioEXLLbXgclUpM0TXo5HX5Q==", + "dev": true, + "requires": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.4.0", + "@eslint/eslintrc": "^2.0.3", + "@eslint/js": "8.43.0", + "@humanwhocodes/config-array": "^0.11.10", + "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", + "ajv": "^6.10.0", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", "doctrine": "^3.0.0", - "eslint-scope": "^4.0.3", - "eslint-utils": "^1.3.1", - "eslint-visitor-keys": "^1.0.0", - "espree": "^5.0.1", - "esquery": "^1.0.1", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^7.2.0", + "eslint-visitor-keys": "^3.4.1", + "espree": "^9.5.2", + "esquery": "^1.4.2", "esutils": "^2.0.2", - "file-entry-cache": "^5.0.1", - "functional-red-black-tree": "^1.0.1", - "glob": "^7.1.2", - "globals": "^11.7.0", - "ignore": "^4.0.6", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "globals": "^13.19.0", + "graphemer": "^1.4.0", + "ignore": "^5.2.0", "import-fresh": "^3.0.0", "imurmurhash": "^0.1.4", - "inquirer": "^6.2.2", - "js-yaml": "^3.13.0", + "is-glob": "^4.0.0", + "is-path-inside": "^3.0.3", + "js-yaml": "^4.1.0", "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.3.0", - "lodash": "^4.17.11", - "minimatch": "^3.0.4", - "mkdirp": "^0.5.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", "natural-compare": "^1.4.0", - "optionator": "^0.8.2", - "path-is-inside": "^1.0.2", - "progress": "^2.0.0", - "regexpp": "^2.0.1", - "semver": "^5.5.1", - "strip-ansi": "^4.0.0", - "strip-json-comments": "^2.0.1", - "table": "^5.2.3", + "optionator": "^0.9.1", + "strip-ansi": "^6.0.1", + "strip-json-comments": "^3.1.0", "text-table": "^0.2.0" }, "dependencies": { - "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true + }, + "eslint-visitor-keys": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz", + "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==", + "dev": true + }, + "find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "requires": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + } + }, + "glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "requires": { + "is-glob": "^4.0.3" + } + }, + "globals": { + "version": "13.20.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", + "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", + "dev": true, + "requires": { + "type-fest": "^0.20.2" + } + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true + }, + "locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "requires": { + "p-locate": "^5.0.0" + } + }, + "p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "requires": { + "yocto-queue": "^0.1.0" + } + }, + "p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "requires": { + "p-limit": "^3.0.2" + } + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } } } }, @@ -2425,12 +10696,6 @@ "semver": "^5.5.0" }, "dependencies": { - "ignore": { - "version": "5.2.4", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", - "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", - "dev": true - }, "semver": { "version": "5.7.1", "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", @@ -2449,13 +10714,13 @@ } }, "eslint-scope": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-4.0.3.tgz", - "integrity": "sha512-p7VutNr1O/QrxysMo3E45FjYDTeXBy0iTltPFNSqKAIfjDSXC+4dj+qfyuD8bfAXrW/y6lW3O76VaYNPKfpKrg==", + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.0.tgz", + "integrity": "sha512-DYj5deGlHBfMt15J7rdtyKNq/Nqlv5KfU4iodrQ019XESsRnwXH9KAE0y3cwtUHDo2ob7CypAnCqefh6vioWRw==", "dev": true, "requires": { - "esrecurse": "^4.1.0", - "estraverse": "^4.1.1" + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" } }, "eslint-utils": { @@ -2474,22 +10739,24 @@ "dev": true }, "espree": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-5.0.1.tgz", - "integrity": "sha512-qWAZcWh4XE/RwzLJejfcofscgMc9CamR6Tn1+XRXNzrvUSSbiAjGOI/fggztjIi7y9VLPqnICMIPiGyr8JaZ0A==", + "version": "9.5.2", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.5.2.tgz", + "integrity": "sha512-7OASN1Wma5fum5SrNhFMAMJxOUAbhyfQ8dQ//PJaJbNw0URTPWqIghHWt1MmAANKhHZIYOHruW4Kw4ruUWOdGw==", "dev": true, "requires": { - "acorn": "^6.0.7", - "acorn-jsx": "^5.0.0", - "eslint-visitor-keys": "^1.0.0" + "acorn": "^8.8.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" + }, + "dependencies": { + "eslint-visitor-keys": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz", + "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==", + "dev": true + } } }, - "esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true - }, "esquery": { "version": "1.4.2", "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.2.tgz", @@ -2497,14 +10764,6 @@ "dev": true, "requires": { "estraverse": "^5.1.0" - }, - "dependencies": { - "estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true - } } }, "esrecurse": { @@ -2514,26 +10773,18 @@ "dev": true, "requires": { "estraverse": "^5.2.0" - }, - "dependencies": { - "estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true - } } }, "estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", "dev": true }, "estree-walker": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-1.0.1.tgz", - "integrity": "sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", + "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", "dev": true }, "esutils": { @@ -2562,23 +10813,19 @@ "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==" }, + "events": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", + "dev": true, + "peer": true + }, "extend": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", "dev": true }, - "external-editor": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz", - "integrity": "sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==", - "dev": true, - "requires": { - "chardet": "^0.7.0", - "iconv-lite": "^0.4.24", - "tmp": "^0.0.33" - } - }, "fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", @@ -2603,22 +10850,22 @@ "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", "dev": true }, - "figures": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/figures/-/figures-2.0.0.tgz", - "integrity": "sha512-Oa2M9atig69ZkfwiApY8F2Yy+tzMbazyvqv21R0NsSC8floSOC09BbT1ITWAdoMGQvJ/aZnR1KMwdx9tvHnTNA==", + "fastq": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", + "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", "dev": true, "requires": { - "escape-string-regexp": "^1.0.5" + "reusify": "^1.0.4" } }, "file-entry-cache": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-5.0.1.tgz", - "integrity": "sha512-bCg29ictuBaKUwwArK4ouCaqDgLZcysCFLmM/Yn/FDoqndh/9vNuQfXRDvTuXKLxfD/JtZQGKFT8MGcJBK644g==", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", "dev": true, "requires": { - "flat-cache": "^2.0.1" + "flat-cache": "^3.0.4" } }, "fill-range": { @@ -2705,20 +10952,19 @@ "dev": true }, "flat-cache": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-2.0.1.tgz", - "integrity": "sha512-LoQe6yDuUMDzQAEH8sgmh4Md6oZnc/7PjtwjNFSzveXqSHt6ka9fPBuso7IGf9Rz4uqnSnWiFH2B/zj24a5ReA==", + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", + "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", "dev": true, "requires": { - "flatted": "^2.0.0", - "rimraf": "2.6.3", - "write": "1.0.3" + "flatted": "^3.1.0", + "rimraf": "^3.0.2" } }, "flatted": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-2.0.2.tgz", - "integrity": "sha512-r5wGx7YeOwNWNlCA0wQ86zKyDLMQr+/RB8xy74M4hTphfmjlijTSSXGuH8rnvKZnfT9i+75zmd8jcKdMR4O6jA==", + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", + "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", "dev": true }, "follow-redirects": { @@ -2792,12 +11038,6 @@ "functions-have-names": "^1.2.2" } }, - "functional-red-black-tree": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", - "integrity": "sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g==", - "dev": true - }, "functions-have-names": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", @@ -2866,6 +11106,13 @@ "is-glob": "^4.0.1" } }, + "glob-to-regexp": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", + "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", + "dev": true, + "peer": true + }, "globals": { "version": "11.12.0", "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", @@ -2896,6 +11143,12 @@ "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==", "dev": true }, + "graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", + "dev": true + }, "has": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", @@ -3007,9 +11260,9 @@ } }, "ignore": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", - "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", + "version": "5.2.4", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", + "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", "dev": true }, "import-fresh": { @@ -3044,44 +11297,6 @@ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", "dev": true }, - "inquirer": { - "version": "6.5.2", - "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-6.5.2.tgz", - "integrity": "sha512-cntlB5ghuB0iuO65Ovoi8ogLHiWGs/5yNrtUcKjFhSSiVeAIVpD7koaSU9RM8mpXw5YDi9RdYXGQMaOURB7ycQ==", - "dev": true, - "requires": { - "ansi-escapes": "^3.2.0", - "chalk": "^2.4.2", - "cli-cursor": "^2.1.0", - "cli-width": "^2.0.0", - "external-editor": "^3.0.3", - "figures": "^2.0.0", - "lodash": "^4.17.12", - "mute-stream": "0.0.7", - "run-async": "^2.2.0", - "rxjs": "^6.4.0", - "string-width": "^2.1.0", - "strip-ansi": "^5.1.0", - "through": "^2.3.6" - }, - "dependencies": { - "ansi-regex": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.1.tgz", - "integrity": "sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==", - "dev": true - }, - "strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", - "dev": true, - "requires": { - "ansi-regex": "^4.1.0" - } - } - } - }, "internal-slot": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.5.tgz", @@ -3132,6 +11347,15 @@ "has-tostringtag": "^1.0.0" } }, + "is-builtin-module": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-3.2.1.tgz", + "integrity": "sha512-BSLE3HnV2syZ0FK0iMA/yUGplUeMmNz4AW5fnTunbCIqZi4vG3WjJT9FHMy5D69xmAYBHXQhJdALdpwVxV501A==", + "dev": true, + "requires": { + "builtin-modules": "^3.3.0" + } + }, "is-callable": { "version": "1.2.7", "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", @@ -3168,12 +11392,6 @@ "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", "dev": true }, - "is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w==", - "dev": true - }, "is-glob": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", @@ -3210,6 +11428,12 @@ "has-tostringtag": "^1.0.0" } }, + "is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "dev": true + }, "is-plain-obj": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", @@ -3323,34 +11547,6 @@ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", "dev": true }, - "jest-worker": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-26.6.2.tgz", - "integrity": "sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ==", - "dev": true, - "requires": { - "@types/node": "*", - "merge-stream": "^2.0.0", - "supports-color": "^7.0.0" - }, - "dependencies": { - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, "js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", @@ -3358,13 +11554,12 @@ "dev": true }, "js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", "dev": true, "requires": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" + "argparse": "^2.0.1" } }, "jsesc": { @@ -3373,6 +11568,13 @@ "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", "dev": true }, + "json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true, + "peer": true + }, "json-schema-traverse": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", @@ -3438,15 +11640,6 @@ "yargs": "^16.1.1" }, "dependencies": { - "rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "dev": true, - "requires": { - "glob": "^7.1.3" - } - }, "tmp": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.1.tgz", @@ -3462,7 +11655,8 @@ "version": "8.0.2", "resolved": "https://registry.npmjs.org/karma-babel-preprocessor/-/karma-babel-preprocessor-8.0.2.tgz", "integrity": "sha512-6ZUnHwaK2EyhgxbgeSJW6n6WZUYSEdekHIV/qDUnPgMkVzQBHEvd07d2mTL5AQjV8uTUgH6XslhaPrp+fHWH2A==", - "dev": true + "dev": true, + "requires": {} }, "karma-browserstack-launcher": { "version": "1.6.0", @@ -3479,7 +11673,8 @@ "version": "0.1.0", "resolved": "https://registry.npmjs.org/karma-chai/-/karma-chai-0.1.0.tgz", "integrity": "sha512-mqKCkHwzPMhgTYca10S90aCEX9+HjVjjrBFAsw36Zj7BlQNbokXXCAe6Ji04VUMsxcY5RLP7YphpfO06XOubdg==", - "dev": true + "dev": true, + "requires": {} }, "karma-chrome-launcher": { "version": "2.2.0", @@ -3541,7 +11736,8 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/karma-requirejs/-/karma-requirejs-1.1.0.tgz", "integrity": "sha512-MHTOYKdwwJBkvYid0TaYvBzOnFH3TDtzo6ie5E4o9SaUSXXsfMRLa/whUz6efVIgTxj1xnKYasNn/XwEgJeB/Q==", - "dev": true + "dev": true, + "requires": {} }, "karma-rollup-preprocessor": { "version": "7.0.8", @@ -3554,15 +11750,22 @@ } }, "levn": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", - "integrity": "sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==", + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", "dev": true, "requires": { - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2" + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" } }, + "loader-runner": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz", + "integrity": "sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==", + "dev": true, + "peer": true + }, "loader-utils": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz", @@ -3595,6 +11798,12 @@ "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==", "dev": true }, + "lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true + }, "log-symbols": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", @@ -3667,14 +11876,6 @@ "flatted": "^3.2.7", "rfdc": "^1.3.0", "streamroller": "^3.1.5" - }, - "dependencies": { - "flatted": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", - "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", - "dev": true - } } }, "lolex": { @@ -3701,15 +11902,6 @@ "yallist": "^3.0.2" } }, - "magic-string": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.9.tgz", - "integrity": "sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==", - "dev": true, - "requires": { - "sourcemap-codec": "^1.4.8" - } - }, "make-dir": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", @@ -3735,7 +11927,8 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", - "dev": true + "dev": true, + "peer": true }, "mime": { "version": "2.6.0", @@ -3758,12 +11951,6 @@ "mime-db": "1.52.0" } }, - "mimic-fn": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz", - "integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==", - "dev": true - }, "minimatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", @@ -3817,12 +12004,6 @@ "yargs-unparser": "2.0.0" }, "dependencies": { - "argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true - }, "escape-string-regexp": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", @@ -3870,15 +12051,6 @@ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, - "js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "dev": true, - "requires": { - "argparse": "^2.0.1" - } - }, "locate-path": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", @@ -3932,12 +12104,6 @@ "p-limit": "^3.0.2" } }, - "strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true - }, "supports-color": { "version": "8.1.1", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", @@ -3961,12 +12127,6 @@ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", "dev": true }, - "mute-stream": { - "version": "0.0.7", - "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.7.tgz", - "integrity": "sha512-r65nCZhrbXXb6dXOACihYApHw2Q6pV0M3V0PSxd74N0+D8nzAdEAITq2oAjA1jVnKI+tGvEBUpqiMh0+rW6zDQ==", - "dev": true - }, "nanoid": { "version": "3.3.3", "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.3.tgz", @@ -3985,11 +12145,12 @@ "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", "dev": true }, - "nice-try": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", - "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", - "dev": true + "neo-async": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", + "dev": true, + "peer": true }, "nise": { "version": "1.5.3", @@ -4092,35 +12253,20 @@ "wrappy": "1" } }, - "onetime": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-2.0.1.tgz", - "integrity": "sha512-oyyPpiMaKARvvcgip+JV+7zci5L8D1W9RZIz2l1o08AM3pfspitVWnPt3mzHcBPp12oYMTy0pqrFs/C+m3EwsQ==", - "dev": true, - "requires": { - "mimic-fn": "^1.0.0" - } - }, "optionator": { - "version": "0.8.3", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", - "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", + "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==", "dev": true, "requires": { - "deep-is": "~0.1.3", - "fast-levenshtein": "~2.0.6", - "levn": "~0.3.0", - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2", - "word-wrap": "~1.2.3" + "@aashutoshrathi/word-wrap": "^1.2.3", + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0" } }, - "os-tmpdir": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", - "integrity": "sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==", - "dev": true - }, "p-limit": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", @@ -4172,16 +12318,10 @@ "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", "dev": true }, - "path-is-inside": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz", - "integrity": "sha512-DUWJr3+ULp4zXmol/SZkFf3JGsS9/SIv+Y3Rt93/UjPpDpklB5f1er4O3POIbUuUJ3FXgqte2Q7SrU6zAqwk8w==", - "dev": true - }, "path-key": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", - "integrity": "sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw==", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", "dev": true }, "path-parse": { @@ -4242,11 +12382,18 @@ "dev": true }, "prelude-ls": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", - "integrity": "sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", "dev": true }, + "prettier": { + "version": "2.8.8", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", + "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", + "dev": true, + "peer": true + }, "prettier-linter-helpers": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", @@ -4256,12 +12403,6 @@ "fast-diff": "^1.1.2" } }, - "progress": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", - "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", - "dev": true - }, "ps-tree": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/ps-tree/-/ps-tree-1.2.0.tgz", @@ -4298,6 +12439,12 @@ "side-channel": "^1.0.4" } }, + "queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true + }, "randombytes": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", @@ -4445,15 +12592,11 @@ "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", "dev": true }, - "restore-cursor": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-2.0.0.tgz", - "integrity": "sha512-6IzJLuGi4+R14vwagDHX+JrXmPVtPpn4mffDJ1UdR7/Edm87fl6yi8mMBIVvFtJaNTUvjughmW4hwLhRG7gC1Q==", - "dev": true, - "requires": { - "onetime": "^2.0.0", - "signal-exit": "^3.0.2" - } + "reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "dev": true }, "rfdc": { "version": "1.3.0", @@ -4462,9 +12605,9 @@ "dev": true }, "rimraf": { - "version": "2.6.3", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz", - "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", "dev": true, "requires": { "glob": "^7.1.3" @@ -4479,132 +12622,13 @@ "fsevents": "~2.3.2" } }, - "rollup-plugin-babel": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/rollup-plugin-babel/-/rollup-plugin-babel-4.4.0.tgz", - "integrity": "sha512-Lek/TYp1+7g7I+uMfJnnSJ7YWoD58ajo6Oarhlex7lvUce+RCKRuGRSgztDO3/MF/PuGKmUL5iTHKf208UNszw==", - "dev": true, - "requires": { - "@babel/helper-module-imports": "^7.0.0", - "rollup-pluginutils": "^2.8.1" - } - }, - "rollup-plugin-commonjs": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/rollup-plugin-commonjs/-/rollup-plugin-commonjs-10.1.0.tgz", - "integrity": "sha512-jlXbjZSQg8EIeAAvepNwhJj++qJWNJw1Cl0YnOqKtP5Djx+fFGkp3WRh+W0ASCaFG5w1jhmzDxgu3SJuVxPF4Q==", - "dev": true, - "requires": { - "estree-walker": "^0.6.1", - "is-reference": "^1.1.2", - "magic-string": "^0.25.2", - "resolve": "^1.11.0", - "rollup-pluginutils": "^2.8.1" - }, - "dependencies": { - "estree-walker": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-0.6.1.tgz", - "integrity": "sha512-SqmZANLWS0mnatqbSfRP5g8OXZC12Fgg1IwNtLsyHDzJizORW4khDfjPqJZsemPWBB2uqykUah5YpQ6epsqC/w==", - "dev": true - } - } - }, - "rollup-plugin-eslint": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/rollup-plugin-eslint/-/rollup-plugin-eslint-5.1.0.tgz", - "integrity": "sha512-jmjqDC42HQsevgBuGQuDb9xhkei4IRkwufAbd6pe5Cbd969p/CjO3SPIwVeINSxXrzrGh9VG72EKtYVFwybxpQ==", - "dev": true, - "requires": { - "eslint": "^5.1.0", - "rollup-pluginutils": "^2.3.0" - } - }, - "rollup-plugin-json": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/rollup-plugin-json/-/rollup-plugin-json-4.0.0.tgz", - "integrity": "sha512-hgb8N7Cgfw5SZAkb3jf0QXii6QX/FOkiIq2M7BAQIEydjHvTyxXHQiIzZaTFgx1GK0cRCHOCBHIyEkkLdWKxow==", - "dev": true, - "requires": { - "rollup-pluginutils": "^2.5.0" - } - }, - "rollup-plugin-node-resolve": { - "version": "4.2.4", - "resolved": "https://registry.npmjs.org/rollup-plugin-node-resolve/-/rollup-plugin-node-resolve-4.2.4.tgz", - "integrity": "sha512-t/64I6l7fZ9BxqD3XlX4ZeO6+5RLKyfpwE2CiPNUKa+GocPlQhf/C208ou8y3AwtNsc6bjSk/8/6y/YAyxCIvw==", - "dev": true, - "requires": { - "@types/resolve": "0.0.8", - "builtin-modules": "^3.1.0", - "is-module": "^1.0.0", - "resolve": "^1.10.0" - }, - "dependencies": { - "@types/resolve": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-0.0.8.tgz", - "integrity": "sha512-auApPaJf3NPfe18hSoJkp8EbZzer2ISk7o8mCC3M9he/a04+gbMF97NkpD2S8riMGvm4BMRI59/SZQSaLTKpsQ==", - "dev": true, - "requires": { - "@types/node": "*" - } - } - } - }, - "rollup-plugin-terser": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/rollup-plugin-terser/-/rollup-plugin-terser-7.0.2.tgz", - "integrity": "sha512-w3iIaU4OxcF52UUXiZNsNeuXIMDvFrr+ZXK6bFZ0Q60qyVfq4uLptoS4bbq3paG3x216eQllFZX7zt6TIImguQ==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.10.4", - "jest-worker": "^26.2.1", - "serialize-javascript": "^4.0.0", - "terser": "^5.0.0" - }, - "dependencies": { - "serialize-javascript": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-4.0.0.tgz", - "integrity": "sha512-GaNA54380uFefWghODBWEGisLZFj00nS5ACs6yHa9nLqlLpVLO8ChDGeKRjZnV4Nh4n0Qi7nhYZD/9fCPzEqkw==", - "dev": true, - "requires": { - "randombytes": "^2.1.0" - } - } - } - }, - "rollup-pluginutils": { - "version": "2.8.2", - "resolved": "https://registry.npmjs.org/rollup-pluginutils/-/rollup-pluginutils-2.8.2.tgz", - "integrity": "sha512-EEp9NhnUkwY8aif6bxgovPHMoMoNr2FulJziTndpt5H9RdwC47GSGuII9XxpSdzVGM0GWrNPHV6ie1LTNJPaLQ==", - "dev": true, - "requires": { - "estree-walker": "^0.6.1" - }, - "dependencies": { - "estree-walker": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-0.6.1.tgz", - "integrity": "sha512-SqmZANLWS0mnatqbSfRP5g8OXZC12Fgg1IwNtLsyHDzJizORW4khDfjPqJZsemPWBB2uqykUah5YpQ6epsqC/w==", - "dev": true - } - } - }, - "run-async": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz", - "integrity": "sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==", - "dev": true - }, - "rxjs": { - "version": "6.6.7", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", - "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", + "run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", "dev": true, "requires": { - "tslib": "^1.9.0" + "queue-microtask": "^1.2.2" } }, "safe-buffer": { @@ -4663,18 +12687,18 @@ "dev": true }, "shebang-command": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", - "integrity": "sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", "dev": true, "requires": { - "shebang-regex": "^1.0.0" + "shebang-regex": "^3.0.0" } }, "shebang-regex": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", - "integrity": "sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", "dev": true }, "side-channel": { @@ -4688,12 +12712,6 @@ "object-inspect": "^1.9.0" } }, - "signal-exit": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", - "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", - "dev": true - }, "sinon": { "version": "7.5.0", "resolved": "https://registry.npmjs.org/sinon/-/sinon-7.5.0.tgz", @@ -4717,16 +12735,11 @@ } } }, - "slice-ansi": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-2.1.0.tgz", - "integrity": "sha512-Qu+VC3EwYLldKa1fCxuuvULvSJOKEgk9pi8dZeCVK7TqBfUNTH4sFkk4joj8afVSfAYgJoSOetjx9QWOJ5mYoQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.0", - "astral-regex": "^1.0.0", - "is-fullwidth-code-point": "^2.0.0" - } + "smob": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/smob/-/smob-1.4.0.tgz", + "integrity": "sha512-MqR3fVulhjWuRNSMydnTlweu38UhQ0HXM4buStD/S3mc/BzX3CuM9OmhyQpmtYCvoYdl5ris6TI0ZqH355Ymqg==", + "dev": true }, "socket.io": { "version": "4.6.1", @@ -4777,12 +12790,6 @@ "source-map": "^0.6.0" } }, - "sourcemap-codec": { - "version": "1.4.8", - "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz", - "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==", - "dev": true - }, "split": { "version": "0.3.3", "resolved": "https://registry.npmjs.org/split/-/split-0.3.3.tgz", @@ -4792,12 +12799,6 @@ "through": "2" } }, - "sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", - "dev": true - }, "statuses": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", @@ -4824,16 +12825,6 @@ "fs-extra": "^8.1.0" } }, - "string-width": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", - "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", - "dev": true, - "requires": { - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^4.0.0" - } - }, "string.prototype.trimend": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.6.tgz", @@ -4857,12 +12848,12 @@ } }, "strip-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", - "integrity": "sha512-4XaJ2zQdCzROZDivEVIDPkcQn8LMFSa8kj8Gxb/Lnwzv9A8VctNZ+lfivC/sV3ivW8ElJTERXZoPBRrZKkNKow==", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dev": true, "requires": { - "ansi-regex": "^3.0.0" + "ansi-regex": "^5.0.1" } }, "strip-bom": { @@ -4872,9 +12863,9 @@ "dev": true }, "strip-json-comments": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", "dev": true }, "supports-color": { @@ -4892,45 +12883,12 @@ "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", "dev": true }, - "table": { - "version": "5.4.6", - "resolved": "https://registry.npmjs.org/table/-/table-5.4.6.tgz", - "integrity": "sha512-wmEc8m4fjnob4gt5riFRtTu/6+4rSe12TpAELNSqHMfF3IqnA+CH37USM6/YR3qRZv7e56kAEAtd6nKZaxe0Ug==", + "tapable": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", + "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", "dev": true, - "requires": { - "ajv": "^6.10.2", - "lodash": "^4.17.14", - "slice-ansi": "^2.1.0", - "string-width": "^3.0.0" - }, - "dependencies": { - "ansi-regex": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.1.tgz", - "integrity": "sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==", - "dev": true - }, - "string-width": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", - "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", - "dev": true, - "requires": { - "emoji-regex": "^7.0.1", - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^5.1.0" - } - }, - "strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", - "dev": true, - "requires": { - "ansi-regex": "^4.1.0" - } - } - } + "peer": true }, "temp-fs": { "version": "0.9.9", @@ -4953,22 +12911,81 @@ } }, "terser": { - "version": "5.16.4", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.16.4.tgz", - "integrity": "sha512-5yEGuZ3DZradbogeYQ1NaGz7rXVBDWujWlx1PT8efXO6Txn+eWbfKqB2bTDVmFXmePFkoLU6XI8UektMIEA0ug==", + "version": "5.18.2", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.18.2.tgz", + "integrity": "sha512-Ah19JS86ypbJzTzvUCX7KOsEIhDaRONungA4aYBjEP3JZRf4ocuDzTg4QWZnPn9DEMiMYGJPiSOy7aykoCc70w==", "dev": true, "requires": { - "@jridgewell/source-map": "^0.3.2", - "acorn": "^8.5.0", + "@jridgewell/source-map": "^0.3.3", + "acorn": "^8.8.2", "commander": "^2.20.0", "source-map-support": "~0.5.20" + } + }, + "terser-webpack-plugin": { + "version": "5.3.9", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.9.tgz", + "integrity": "sha512-ZuXsqE07EcggTWQjXUj+Aot/OMcD0bMKGgF63f7UxYcu5/AJF53aIpK1YoP5xR9l6s/Hy2b+t1AM0bLNPRuhwA==", + "dev": true, + "peer": true, + "requires": { + "@jridgewell/trace-mapping": "^0.3.17", + "jest-worker": "^27.4.5", + "schema-utils": "^3.1.1", + "serialize-javascript": "^6.0.1", + "terser": "^5.16.8" }, "dependencies": { - "acorn": { - "version": "8.8.2", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", - "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", - "dev": true + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "peer": true + }, + "jest-worker": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", + "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", + "dev": true, + "peer": true, + "requires": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + } + }, + "schema-utils": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz", + "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==", + "dev": true, + "peer": true, + "requires": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + } + }, + "serialize-javascript": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.1.tgz", + "integrity": "sha512-owoXEFjWRllis8/M1Q+Cw5k8ZH40e3zhp/ovX+Xr/vi1qj6QesbyXXViFbpNvWvPNAD62SutwEXavefrLJWj7w==", + "dev": true, + "peer": true, + "requires": { + "randombytes": "^2.1.0" + } + }, + "supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "peer": true, + "requires": { + "has-flag": "^4.0.0" + } } } }, @@ -4984,15 +13001,6 @@ "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==", "dev": true }, - "tmp": { - "version": "0.0.33", - "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", - "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", - "dev": true, - "requires": { - "os-tmpdir": "~1.0.2" - } - }, "to-fast-properties": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", @@ -5037,19 +13045,13 @@ } } }, - "tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true - }, "type-check": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", - "integrity": "sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==", + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", "dev": true, "requires": { - "prelude-ls": "~1.1.2" + "prelude-ls": "^1.2.1" } }, "type-detect": { @@ -5058,6 +13060,12 @@ "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", "dev": true }, + "type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true + }, "type-is": { "version": "1.6.18", "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", @@ -5174,6 +13182,89 @@ "integrity": "sha512-qZKX4RnBzH2ugr8Lxa7x+0V6XD9Sb/ouARtiasEQCHB1EVU4NXtmHsDDrx1dO4ne5fc3J6EW05BP1Dl0z0iung==", "dev": true }, + "watchpack": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", + "integrity": "sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==", + "dev": true, + "peer": true, + "requires": { + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.1.2" + } + }, + "webpack": { + "version": "5.88.1", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.88.1.tgz", + "integrity": "sha512-FROX3TxQnC/ox4N+3xQoWZzvGXSuscxR32rbzjpXgEzWudJFEJBpdlkkob2ylrv5yzzufD1zph1OoFsLtm6stQ==", + "dev": true, + "peer": true, + "requires": { + "@types/eslint-scope": "^3.7.3", + "@types/estree": "^1.0.0", + "@webassemblyjs/ast": "^1.11.5", + "@webassemblyjs/wasm-edit": "^1.11.5", + "@webassemblyjs/wasm-parser": "^1.11.5", + "acorn": "^8.7.1", + "acorn-import-assertions": "^1.9.0", + "browserslist": "^4.14.5", + "chrome-trace-event": "^1.0.2", + "enhanced-resolve": "^5.15.0", + "es-module-lexer": "^1.2.1", + "eslint-scope": "5.1.1", + "events": "^3.2.0", + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.2.9", + "json-parse-even-better-errors": "^2.3.1", + "loader-runner": "^4.2.0", + "mime-types": "^2.1.27", + "neo-async": "^2.6.2", + "schema-utils": "^3.2.0", + "tapable": "^2.1.1", + "terser-webpack-plugin": "^5.3.7", + "watchpack": "^2.4.0", + "webpack-sources": "^3.2.3" + }, + "dependencies": { + "eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dev": true, + "peer": true, + "requires": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + } + }, + "estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true, + "peer": true + }, + "schema-utils": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz", + "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==", + "dev": true, + "peer": true, + "requires": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + } + } + } + }, + "webpack-sources": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz", + "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==", + "dev": true, + "peer": true + }, "whatwg-fetch": { "version": "3.6.2", "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.6.2.tgz", @@ -5215,12 +13306,6 @@ "is-typed-array": "^1.1.10" } }, - "word-wrap": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", - "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", - "dev": true - }, "workerpool": { "version": "6.2.1", "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.2.1.tgz", @@ -5238,12 +13323,6 @@ "strip-ansi": "^6.0.0" }, "dependencies": { - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true - }, "ansi-styles": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", @@ -5290,15 +13369,6 @@ "is-fullwidth-code-point": "^3.0.0", "strip-ansi": "^6.0.1" } - }, - "strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "requires": { - "ansi-regex": "^5.0.1" - } } } }, @@ -5308,20 +13378,12 @@ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", "dev": true }, - "write": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/write/-/write-1.0.3.tgz", - "integrity": "sha512-/lg70HAjtkUgWPVZhZcm+T4hkL8Zbtp1nFNOn3lRrxnlv50SRBv7cR7RqR+GMsd3hUXy9hWBo4CHTbFTcOYwig==", - "dev": true, - "requires": { - "mkdirp": "^0.5.1" - } - }, "ws": { "version": "8.11.0", "resolved": "https://registry.npmjs.org/ws/-/ws-8.11.0.tgz", "integrity": "sha512-HPG3wQd9sNQoT9xHyNCXoDUa+Xw/VevmY9FoHyQ+g+rrMn4j6FB4np7Z0OhdTgjx6MgQLK7jwSy1YecU1+4Asg==", - "dev": true + "dev": true, + "requires": {} }, "y18n": { "version": "5.0.8", @@ -5350,12 +13412,6 @@ "yargs-parser": "^20.2.2" }, "dependencies": { - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true - }, "emoji-regex": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", @@ -5378,15 +13434,6 @@ "is-fullwidth-code-point": "^3.0.0", "strip-ansi": "^6.0.1" } - }, - "strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "requires": { - "ansi-regex": "^5.0.1" - } } } }, diff --git a/package.json b/package.json index 7ed67ea..b6fd2c3 100644 --- a/package.json +++ b/package.json @@ -12,12 +12,16 @@ "devDependencies": { "@babel/core": "^7.4.3", "@babel/preset-env": "^7.4.3", - "@rollup/plugin-babel": "^5.2.0", - "@rollup/plugin-node-resolve": "^9.0.0", + "@rollup/plugin-babel": "^6.0.3", + "@rollup/plugin-commonjs": "^24.0.1", + "@rollup/plugin-eslint": "^9.0.3", + "@rollup/plugin-json": "^6.0.0", + "@rollup/plugin-node-resolve": "^15.0.1", + "@rollup/plugin-terser": "^0.4.0", "babel-loader": "^8.0.5", "chai": "^4.2.0", "dotenv": "^7.0.0", - "eslint": "^5.16.0", + "eslint": "^8.43.0", "eslint-plugin-import": "^2.17.2", "eslint-plugin-node": "^8.0.1", "eslint-plugin-prettier": "^3.0.1", @@ -37,12 +41,6 @@ "platform": "^1.3.5", "requirejs": "^2.3.6", "rollup": "3.17.2", - "rollup-plugin-babel": "^4.3.2", - "rollup-plugin-commonjs": "^10.1.0", - "rollup-plugin-eslint": "^5.1.0", - "rollup-plugin-json": "^4.0.0", - "rollup-plugin-node-resolve": "^4.2.3", - "rollup-plugin-terser": "^7.0.2", "sinon": "^7.5.0" }, "dependencies": { diff --git a/rollup.config.js b/rollup.config.js index dff2eea..d7e7cc4 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -1,17 +1,17 @@ -const { eslint } = require('rollup-plugin-eslint'); -const { terser } = require('rollup-plugin-terser'); +const { eslint } = require('@rollup/plugin-eslint'); +const { terser } = require('@rollup/plugin-terser'); const base = { plugins: [ // @ts-ignore - require('rollup-plugin-node-resolve')(), + require('@rollup/plugin-node-resolve')(), // @ts-ignore - require('rollup-plugin-commonjs')(), - require('rollup-plugin-json')(), - eslint(), - require('rollup-plugin-babel')({ sourceMap: true }), - terser() + require('@rollup/plugin-commonjs')(), + require('@rollup/plugin-json')(), + require('@rollup/plugin-eslint'), + require('@rollup/plugin-babel')({ sourceMap: true }), + require('@rollup/plugin-terser') ] }; diff --git a/src/plugins/CaptionsStylePlugin.js b/src/plugins/CaptionsStylePlugin.js index 389b070..e8b72f8 100644 --- a/src/plugins/CaptionsStylePlugin.js +++ b/src/plugins/CaptionsStylePlugin.js @@ -253,9 +253,9 @@ export class CaptionsStylePlugin extends ButtonPlugin { onFontSizeChange(e) { this.setCaptionsStyles('size', e.target.value); - this.fontSizeRadios.forEach((group) => { - group.radioGroup[e.target.value].checked = true; - }); + // this.fontSizeRadios.forEach((group) => { + // group.radioGroup[e.target.value].checked = true; + // }); } /** @@ -266,9 +266,9 @@ export class CaptionsStylePlugin extends ButtonPlugin { onAlignmentChange(e) { this.setCaptionsStyles('align', e.target.value); - this.alignmentRadios.forEach((group) => { - group.radioGroup[e.target.value].checked = true; - }); + // this.alignmentRadios.forEach((group) => { + // group.radioGroup[e.target.value].checked = true; + // }); } /** @@ -281,9 +281,9 @@ export class CaptionsStylePlugin extends ButtonPlugin { this.setCaptionsStyles(styles); - this.colorRadios.forEach((group) => { - group.radioGroup[e.target.value].checked = true; - }); + // this.colorRadios.forEach((group) => { + // group.radioGroup[e.target.value].checked = true; + // }); } /** @@ -331,6 +331,18 @@ export class CaptionsStylePlugin extends ButtonPlugin { this.captionsStyles[styles] = value; } + // update radios to match + this.colorRadios.forEach((group) => { + const style = this.captionsStyles.color === 'white' ? 'default' : 'inverted' + group.radioGroup[style].checked = true; + }); + this.alignmentRadios.forEach((group) => { + group.radioGroup[this.captionsStyles.align].checked = true; + }); + this.fontSizeRadios.forEach((group) => { + group.radioGroup[this.captionsStyles.size].checked = true; + }); + SavedData.write(CaptionsStylePlugin.captionStyleKey, this.captionsStyles); if (this.client) { this.client.send(CaptionsStylePlugin.captionStyleKey, this.captionsStyles); From b76c88fe8d5962ead673b5c13808723ed3e3f6bf Mon Sep 17 00:00:00 2001 From: 902seanryan Date: Wed, 28 Jun 2023 15:00:45 -0300 Subject: [PATCH 02/13] typo --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a22049d..ed8b9a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [ 2.4.5] unreleased +## [2.4.5] unreleased ### Fixed From 29d69191fc9afeacd0c61ef7fb0ed1dab95fdc9b Mon Sep 17 00:00:00 2001 From: 902seanryan Date: Wed, 28 Jun 2023 15:18:01 -0300 Subject: [PATCH 03/13] update tests --- dist/SpringRoll-Container-umd.js | 24858 +++++++++++++++++++++- dist/SpringRoll-Container-umd.js.map | 2 +- src/plugins/CaptionsStylePlugin.spec.js | 15 +- 3 files changed, 24518 insertions(+), 357 deletions(-) diff --git a/dist/SpringRoll-Container-umd.js b/dist/SpringRoll-Container-umd.js index 5024510..e20da7a 100644 --- a/dist/SpringRoll-Container-umd.js +++ b/dist/SpringRoll-Container-umd.js @@ -1,14 +1,13 @@ -(function (global, factory) { - typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : - typeof define === 'function' && define.amd ? define(['exports'], factory) : - (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.springroll = global.springroll || {})); -})(this, (function (exports) { 'use strict'; +(function (factory) { + typeof define === 'function' && define.amd ? define(factory) : + factory(); +})((function () { 'use strict'; - var global$o = typeof globalThis !== 'undefined' && globalThis || typeof self !== 'undefined' && self || typeof global$o !== 'undefined' && global$o; + var global$p = typeof globalThis !== 'undefined' && globalThis || typeof self !== 'undefined' && self || typeof global$p !== 'undefined' && global$p; var support = { - searchParams: 'URLSearchParams' in global$o, - iterable: 'Symbol' in global$o && 'iterator' in Symbol, - blob: 'FileReader' in global$o && 'Blob' in global$o && function () { + searchParams: 'URLSearchParams' in global$p, + iterable: 'Symbol' in global$p && 'iterator' in Symbol, + blob: 'FileReader' in global$p && 'Blob' in global$p && function () { try { new Blob(); return true; @@ -16,8 +15,8 @@ return false; } }(), - formData: 'FormData' in global$o, - arrayBuffer: 'ArrayBuffer' in global$o + formData: 'FormData' in global$p, + arrayBuffer: 'ArrayBuffer' in global$p }; function isDataView(obj) { return obj && DataView.prototype.isPrototypeOf(obj); @@ -415,7 +414,7 @@ } }); }; - var DOMException = global$o.DOMException; + var DOMException = global$p.DOMException; try { new DOMException(); } catch (err) { @@ -467,7 +466,7 @@ }; function fixUrl(url) { try { - return url === '' && global$o.location.href ? global$o.location.href : url; + return url === '' && global$p.location.href ? global$p.location.href : url; } catch (e) { return url; } @@ -507,25 +506,25 @@ }); } fetch$1.polyfill = true; - if (!global$o.fetch) { - global$o.fetch = fetch$1; - global$o.Headers = Headers; - global$o.Request = Request; - global$o.Response = Response; + if (!global$p.fetch) { + global$p.fetch = fetch$1; + global$p.Headers = Headers; + global$p.Request = Request; + global$p.Response = Response; } - var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; + var commonjsGlobal$1 = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; var check = function (it) { return it && it.Math == Math && it; }; // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 - var global$n = + var global$o = // eslint-disable-next-line es/no-global-this -- safe check(typeof globalThis == 'object' && globalThis) || check(typeof window == 'object' && window) || // eslint-disable-next-line no-restricted-globals -- safe - check(typeof self == 'object' && self) || check(typeof commonjsGlobal == 'object' && commonjsGlobal) || + check(typeof self == 'object' && self) || check(typeof commonjsGlobal$1 == 'object' && commonjsGlobal$1) || // eslint-disable-next-line no-new-func -- fallback function () { return this; @@ -591,17 +590,17 @@ var isCallable$l = isCallable$m; var $documentAll = documentAll_1; var documentAll = $documentAll.all; - var isObject$f = $documentAll.IS_HTMLDDA ? function (it) { + var isObject$g = $documentAll.IS_HTMLDDA ? function (it) { return typeof it == 'object' ? it !== null : isCallable$l(it) || it === documentAll; } : function (it) { return typeof it == 'object' ? it !== null : isCallable$l(it); }; - var global$m = global$n; - var isObject$e = isObject$f; - var document$3 = global$m.document; + var global$n = global$o; + var isObject$f = isObject$g; + var document$3 = global$n.document; // typeof document.createElement is 'object' in old IE - var EXISTS$1 = isObject$e(document$3) && isObject$e(document$3.createElement); + var EXISTS$1 = isObject$f(document$3) && isObject$f(document$3.createElement); var documentCreateElement$2 = function (it) { return EXISTS$1 ? document$3.createElement(it) : {}; }; @@ -630,19 +629,19 @@ var NATIVE_BIND$3 = functionBindNative; var FunctionPrototype$2 = Function.prototype; - var call$g = FunctionPrototype$2.call; - var uncurryThisWithBind = NATIVE_BIND$3 && FunctionPrototype$2.bind.bind(call$g, call$g); + var call$i = FunctionPrototype$2.call; + var uncurryThisWithBind = NATIVE_BIND$3 && FunctionPrototype$2.bind.bind(call$i, call$i); var functionUncurryThis = NATIVE_BIND$3 ? uncurryThisWithBind : function (fn) { return function () { - return call$g.apply(fn, arguments); + return call$i.apply(fn, arguments); }; }; var uncurryThis$p = functionUncurryThis; - var toString$8 = uncurryThis$p({}.toString); - var stringSlice$4 = uncurryThis$p(''.slice); + var toString$9 = uncurryThis$p({}.toString); + var stringSlice$5 = uncurryThis$p(''.slice); var classofRaw$2 = function (it) { - return stringSlice$4(toString$8(it), 8, -1); + return stringSlice$5(toString$9(it), 8, -1); }; var classofRaw$1 = classofRaw$2; @@ -676,12 +675,12 @@ var uncurryThis$n = functionUncurryThisClause; var aCallable$7 = aCallable$8; var NATIVE_BIND$2 = functionBindNative; - var bind$6 = uncurryThis$n(uncurryThis$n.bind); + var bind$7 = uncurryThis$n(uncurryThis$n.bind); // optional / simple context binding var functionBindContext = function (fn, that) { aCallable$7(fn); - return that === undefined ? fn : NATIVE_BIND$2 ? bind$6(fn, that) : function /* ...args */ + return that === undefined ? fn : NATIVE_BIND$2 ? bind$7(fn, that) : function /* ...args */ () { return fn.apply(that, arguments); }; @@ -778,27 +777,27 @@ var isPure = false; - var global$l = global$n; + var global$m = global$o; // eslint-disable-next-line es/no-object-defineproperty -- safe var defineProperty$8 = Object.defineProperty; var defineGlobalProperty$3 = function (key, value) { try { - defineProperty$8(global$l, key, { + defineProperty$8(global$m, key, { value: value, configurable: true, writable: true }); } catch (error) { - global$l[key] = value; + global$m[key] = value; } return value; }; - var global$k = global$n; + var global$l = global$o; var defineGlobalProperty$2 = defineGlobalProperty$3; var SHARED = '__core-js_shared__'; - var store$3 = global$k[SHARED] || defineGlobalProperty$2(SHARED, {}); + var store$3 = global$l[SHARED] || defineGlobalProperty$2(SHARED, {}); var sharedStore = store$3; var store$2 = sharedStore; @@ -815,49 +814,49 @@ var uncurryThis$l = functionUncurryThis; var toObject$5 = toObject$6; - var hasOwnProperty = uncurryThis$l({}.hasOwnProperty); + var hasOwnProperty$6 = uncurryThis$l({}.hasOwnProperty); // `HasOwnProperty` abstract operation // https://tc39.es/ecma262/#sec-hasownproperty // eslint-disable-next-line es/no-object-hasown -- safe var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) { - return hasOwnProperty(toObject$5(it), key); + return hasOwnProperty$6(toObject$5(it), key); }; var uncurryThis$k = functionUncurryThis; var id$1 = 0; var postfix = Math.random(); - var toString$7 = uncurryThis$k(1.0.toString); + var toString$8 = uncurryThis$k(1.0.toString); var uid$3 = function (key) { - return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$7(++id$1 + postfix, 36); + return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$8(++id$1 + postfix, 36); }; var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || ''; - var global$j = global$n; + var global$k = global$o; var userAgent$3 = engineUserAgent; - var process$4 = global$j.process; - var Deno$1 = global$j.Deno; - var versions = process$4 && process$4.versions || Deno$1 && Deno$1.version; - var v8 = versions && versions.v8; - var match, version$1; + var process$5 = global$k.process; + var Deno$1 = global$k.Deno; + var versions$1 = process$5 && process$5.versions || Deno$1 && Deno$1.version; + var v8 = versions$1 && versions$1.v8; + var match$6, version$2; if (v8) { - match = v8.split('.'); + match$6 = v8.split('.'); // in old Chrome, versions of V8 isn't V8 = Chrome / 10 // but their correct versions are not interesting for us - version$1 = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]); + version$2 = match$6[0] > 0 && match$6[0] < 4 ? 1 : +(match$6[0] + match$6[1]); } // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0` // so check `userAgent` even if `.v8` exists, but 0 - if (!version$1 && userAgent$3) { - match = userAgent$3.match(/Edge\/(\d+)/); - if (!match || match[1] >= 74) { - match = userAgent$3.match(/Chrome\/(\d+)/); - if (match) version$1 = +match[1]; + if (!version$2 && userAgent$3) { + match$6 = userAgent$3.match(/Edge\/(\d+)/); + if (!match$6 || match$6[1] >= 74) { + match$6 = userAgent$3.match(/Chrome\/(\d+)/); + if (match$6) version$2 = +match$6[1]; } } - var engineV8Version = version$1; + var engineV8Version = version$2; /* eslint-disable es/no-symbol -- required for testing */ var V8_VERSION$3 = engineV8Version; @@ -877,13 +876,13 @@ var NATIVE_SYMBOL$1 = symbolConstructorDetection; var useSymbolAsUid = NATIVE_SYMBOL$1 && !Symbol.sham && typeof Symbol.iterator == 'symbol'; - var global$i = global$n; + var global$j = global$o; var shared$3 = sharedExports; var hasOwn$c = hasOwnProperty_1; var uid$2 = uid$3; var NATIVE_SYMBOL = symbolConstructorDetection; var USE_SYMBOL_AS_UID$1 = useSymbolAsUid; - var Symbol$1 = global$i.Symbol; + var Symbol$1 = global$j.Symbol; var WellKnownSymbolsStore = shared$3('wks'); var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$2; var wellKnownSymbol$j = function (name) { @@ -930,24 +929,24 @@ : (result = classofRaw(O)) == 'Object' && isCallable$j(O.callee) ? 'Arguments' : result; }; - var global$h = global$n; + var global$i = global$o; var isCallable$i = isCallable$m; var aFunction = function (argument) { return isCallable$i(argument) ? argument : undefined; }; var getBuiltIn$7 = function (namespace, method) { - return arguments.length < 2 ? aFunction(global$h[namespace]) : global$h[namespace] && global$h[namespace][method]; + return arguments.length < 2 ? aFunction(global$i[namespace]) : global$i[namespace] && global$i[namespace][method]; }; var uncurryThis$j = functionUncurryThis; var isCallable$h = isCallable$m; var store$1 = sharedStore; - var functionToString = uncurryThis$j(Function.toString); + var functionToString$1 = uncurryThis$j(Function.toString); // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper if (!isCallable$h(store$1.inspectSource)) { store$1.inspectSource = function (it) { - return functionToString(it); + return functionToString$1(it); }; } var inspectSource$3 = store$1.inspectSource; @@ -958,16 +957,16 @@ var classof$7 = classof$8; var getBuiltIn$6 = getBuiltIn$7; var inspectSource$2 = inspectSource$3; - var noop = function () {/* empty */}; + var noop$1 = function () {/* empty */}; var empty = []; var construct = getBuiltIn$6('Reflect', 'construct'); var constructorRegExp = /^\s*(?:class|function)\b/; var exec$1 = uncurryThis$i(constructorRegExp.exec); - var INCORRECT_TO_STRING = !constructorRegExp.exec(noop); + var INCORRECT_TO_STRING = !constructorRegExp.exec(noop$1); var isConstructorModern = function isConstructor(argument) { if (!isCallable$g(argument)) return false; try { - construct(noop, empty, argument); + construct(noop$1, empty, argument); return true; } catch (error) { return false; @@ -1003,7 +1002,7 @@ var isArray$1 = isArray$2; var isConstructor$1 = isConstructor$2; - var isObject$d = isObject$f; + var isObject$e = isObject$g; var wellKnownSymbol$g = wellKnownSymbol$j; var SPECIES$4 = wellKnownSymbol$g('species'); var $Array$1 = Array; @@ -1015,7 +1014,7 @@ if (isArray$1(originalArray)) { C = originalArray.constructor; // cross-realm fallback - if (isConstructor$1(C) && (C === $Array$1 || isArray$1(C.prototype))) C = undefined;else if (isObject$d(C)) { + if (isConstructor$1(C) && (C === $Array$1 || isArray$1(C.prototype))) C = undefined;else if (isObject$e(C)) { C = C[SPECIES$4]; if (C === null) C = undefined; } @@ -1031,13 +1030,13 @@ return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length); }; - var bind$5 = functionBindContext; + var bind$6 = functionBindContext; var uncurryThis$h = functionUncurryThis; var IndexedObject$2 = indexedObject; var toObject$4 = toObject$6; var lengthOfArrayLike$4 = lengthOfArrayLike$5; var arraySpeciesCreate$1 = arraySpeciesCreate$2; - var push$2 = uncurryThis$h([].push); + var push$a = uncurryThis$h([].push); // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation var createMethod$4 = function (TYPE) { @@ -1051,7 +1050,7 @@ return function ($this, callbackfn, that, specificCreate) { var O = toObject$4($this); var self = IndexedObject$2(O); - var boundFunction = bind$5(callbackfn, that); + var boundFunction = bind$6(callbackfn, that); var length = lengthOfArrayLike$4(self); var index = 0; var create = specificCreate || arraySpeciesCreate$1; @@ -1073,14 +1072,14 @@ return index; // findIndex case 2: - push$2(target, value); + push$a(target, value); // filter } else switch (TYPE) { case 4: return false; // every case 7: - push$2(target, value); + push$a(target, value); // filterReject } } @@ -1179,20 +1178,20 @@ }).prototype != 42; }); - var isObject$c = isObject$f; + var isObject$d = isObject$g; var $String$3 = String; var $TypeError$c = TypeError; // `Assert: Type(argument) is Object` var anObject$c = function (argument) { - if (isObject$c(argument)) return argument; + if (isObject$d(argument)) return argument; throw $TypeError$c($String$3(argument) + ' is not an object'); }; var NATIVE_BIND$1 = functionBindNative; - var call$f = Function.prototype.call; - var functionCall = NATIVE_BIND$1 ? call$f.bind(call$f) : function () { - return call$f.apply(call$f, arguments); + var call$h = Function.prototype.call; + var functionCall = NATIVE_BIND$1 ? call$h.bind(call$h) : function () { + return call$h.apply(call$h, arguments); }; var uncurryThis$g = functionUncurryThis; @@ -1200,14 +1199,14 @@ var getBuiltIn$5 = getBuiltIn$7; var isCallable$f = isCallable$m; - var isPrototypeOf$4 = objectIsPrototypeOf; + var isPrototypeOf$5 = objectIsPrototypeOf; var USE_SYMBOL_AS_UID = useSymbolAsUid; var $Object$1 = Object; var isSymbol$3 = USE_SYMBOL_AS_UID ? function (it) { return typeof it == 'symbol'; } : function (it) { var $Symbol = getBuiltIn$5('Symbol'); - return isCallable$f($Symbol) && isPrototypeOf$4($Symbol.prototype, $Object$1(it)); + return isCallable$f($Symbol) && isPrototypeOf$5($Symbol.prototype, $Object$1(it)); }; var aCallable$6 = aCallable$8; @@ -1220,23 +1219,23 @@ return isNullOrUndefined$4(func) ? undefined : aCallable$6(func); }; - var call$e = functionCall; + var call$g = functionCall; var isCallable$e = isCallable$m; - var isObject$b = isObject$f; + var isObject$c = isObject$g; var $TypeError$b = TypeError; // `OrdinaryToPrimitive` abstract operation // https://tc39.es/ecma262/#sec-ordinarytoprimitive var ordinaryToPrimitive$1 = function (input, pref) { var fn, val; - if (pref === 'string' && isCallable$e(fn = input.toString) && !isObject$b(val = call$e(fn, input))) return val; - if (isCallable$e(fn = input.valueOf) && !isObject$b(val = call$e(fn, input))) return val; - if (pref !== 'string' && isCallable$e(fn = input.toString) && !isObject$b(val = call$e(fn, input))) return val; + if (pref === 'string' && isCallable$e(fn = input.toString) && !isObject$c(val = call$g(fn, input))) return val; + if (isCallable$e(fn = input.valueOf) && !isObject$c(val = call$g(fn, input))) return val; + if (pref !== 'string' && isCallable$e(fn = input.toString) && !isObject$c(val = call$g(fn, input))) return val; throw $TypeError$b("Can't convert object to primitive value"); }; - var call$d = functionCall; - var isObject$a = isObject$f; + var call$f = functionCall; + var isObject$b = isObject$g; var isSymbol$2 = isSymbol$3; var getMethod$2 = getMethod$3; var ordinaryToPrimitive = ordinaryToPrimitive$1; @@ -1247,13 +1246,13 @@ // `ToPrimitive` abstract operation // https://tc39.es/ecma262/#sec-toprimitive var toPrimitive$2 = function (input, pref) { - if (!isObject$a(input) || isSymbol$2(input)) return input; + if (!isObject$b(input) || isSymbol$2(input)) return input; var exoticToPrim = getMethod$2(input, TO_PRIMITIVE); var result; if (exoticToPrim) { if (pref === undefined) pref = 'default'; - result = call$d(exoticToPrim, input, pref); - if (!isObject$a(result) || isSymbol$2(result)) return result; + result = call$f(exoticToPrim, input, pref); + if (!isObject$b(result) || isSymbol$2(result)) return result; throw $TypeError$a("Can't convert object to primitive value"); } if (pref === undefined) pref = 'number'; @@ -1333,22 +1332,22 @@ return object; }; - var global$g = global$n; + var global$h = global$o; var DOMIterables$1 = domIterables; var DOMTokenListPrototype$1 = domTokenListPrototype; - var forEach = arrayForEach; + var forEach$a = arrayForEach; var createNonEnumerableProperty$4 = createNonEnumerableProperty$5; var handlePrototype$1 = function (CollectionPrototype) { // some Chrome versions have non-configurable methods on DOMTokenList - if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try { - createNonEnumerableProperty$4(CollectionPrototype, 'forEach', forEach); + if (CollectionPrototype && CollectionPrototype.forEach !== forEach$a) try { + createNonEnumerableProperty$4(CollectionPrototype, 'forEach', forEach$a); } catch (error) { - CollectionPrototype.forEach = forEach; + CollectionPrototype.forEach = forEach$a; } }; for (var COLLECTION_NAME$1 in DOMIterables$1) { if (DOMIterables$1[COLLECTION_NAME$1]) { - handlePrototype$1(global$g[COLLECTION_NAME$1] && global$g[COLLECTION_NAME$1].prototype); + handlePrototype$1(global$h[COLLECTION_NAME$1] && global$h[COLLECTION_NAME$1].prototype); } } handlePrototype$1(DOMTokenListPrototype$1); @@ -1412,18 +1411,18 @@ var uncurryThis$f = functionUncurryThis; var hasOwn$b = hasOwnProperty_1; var toIndexedObject$5 = toIndexedObject$7; - var indexOf$1 = arrayIncludes.indexOf; + var indexOf$2 = arrayIncludes.indexOf; var hiddenKeys$4 = hiddenKeys$5; - var push$1 = uncurryThis$f([].push); + var push$9 = uncurryThis$f([].push); var objectKeysInternal = function (object, names) { var O = toIndexedObject$5(object); var i = 0; var result = []; var key; - for (key in O) !hasOwn$b(hiddenKeys$4, key) && hasOwn$b(O, key) && push$1(result, key); + for (key in O) !hasOwn$b(hiddenKeys$4, key) && hasOwn$b(O, key) && push$9(result, key); // Don't enum bug & hidden keys while (names.length > i) if (hasOwn$b(O, key = names[i++])) { - ~indexOf$1(result, key) || push$1(result, key); + ~indexOf$2(result, key) || push$9(result, key); } return result; }; @@ -1467,9 +1466,9 @@ var shared$2 = sharedExports; var uid$1 = uid$3; - var keys = shared$2('keys'); + var keys$1 = shared$2('keys'); var sharedKey$3 = function (key) { - return keys[key] || (keys[key] = uid$1(key)); + return keys$1[key] || (keys$1[key] = uid$1(key)); }; /* global ActiveXObject -- old IE, WSH */ @@ -1550,7 +1549,7 @@ }; var wellKnownSymbol$e = wellKnownSymbol$j; - var create$3 = objectCreate; + var create$4 = objectCreate; var defineProperty$7 = objectDefineProperty.f; var UNSCOPABLES = wellKnownSymbol$e('unscopables'); var ArrayPrototype$1 = Array.prototype; @@ -1560,7 +1559,7 @@ if (ArrayPrototype$1[UNSCOPABLES] == undefined) { defineProperty$7(ArrayPrototype$1, UNSCOPABLES, { configurable: true, - value: create$3(null) + value: create$4(null) }); } @@ -1571,37 +1570,37 @@ var iterators = {}; - var global$f = global$n; + var global$g = global$o; var isCallable$d = isCallable$m; - var WeakMap$1 = global$f.WeakMap; - var weakMapBasicDetection = isCallable$d(WeakMap$1) && /native code/.test(String(WeakMap$1)); + var WeakMap$2 = global$g.WeakMap; + var weakMapBasicDetection = isCallable$d(WeakMap$2) && /native code/.test(String(WeakMap$2)); var NATIVE_WEAK_MAP = weakMapBasicDetection; - var global$e = global$n; - var isObject$9 = isObject$f; + var global$f = global$o; + var isObject$a = isObject$g; var createNonEnumerableProperty$3 = createNonEnumerableProperty$5; var hasOwn$a = hasOwnProperty_1; var shared$1 = sharedStore; var sharedKey$1 = sharedKey$3; var hiddenKeys$2 = hiddenKeys$5; var OBJECT_ALREADY_INITIALIZED = 'Object already initialized'; - var TypeError$3 = global$e.TypeError; - var WeakMap = global$e.WeakMap; - var set$1, get, has; + var TypeError$3 = global$f.TypeError; + var WeakMap$1 = global$f.WeakMap; + var set$1, get$1, has; var enforce = function (it) { - return has(it) ? get(it) : set$1(it, {}); + return has(it) ? get$1(it) : set$1(it, {}); }; var getterFor = function (TYPE) { return function (it) { var state; - if (!isObject$9(it) || (state = get(it)).type !== TYPE) { + if (!isObject$a(it) || (state = get$1(it)).type !== TYPE) { throw TypeError$3('Incompatible receiver, ' + TYPE + ' required'); } return state; }; }; if (NATIVE_WEAK_MAP || shared$1.state) { - var store = shared$1.state || (shared$1.state = new WeakMap()); + var store = shared$1.state || (shared$1.state = new WeakMap$1()); /* eslint-disable no-self-assign -- prototype methods protection */ store.get = store.get; store.has = store.has; @@ -1613,7 +1612,7 @@ store.set(it, metadata); return metadata; }; - get = function (it) { + get$1 = function (it) { return store.get(it) || {}; }; has = function (it) { @@ -1628,7 +1627,7 @@ createNonEnumerableProperty$3(it, STATE, metadata); return metadata; }; - get = function (it) { + get$1 = function (it) { return hasOwn$a(it, STATE) ? it[STATE] : {}; }; has = function (it) { @@ -1637,7 +1636,7 @@ } var internalState = { set: set$1, - get: get, + get: get$1, has: has, enforce: enforce, getterFor: getterFor @@ -1664,7 +1663,7 @@ } : $propertyIsEnumerable$1; var DESCRIPTORS$8 = descriptors; - var call$c = functionCall; + var call$e = functionCall; var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable; var createPropertyDescriptor$2 = createPropertyDescriptor$4; var toIndexedObject$3 = toIndexedObject$7; @@ -1683,7 +1682,7 @@ if (IE8_DOM_DEFINE) try { return $getOwnPropertyDescriptor(O, P); } catch (error) {/* empty */} - if (hasOwn$9(O, P)) return createPropertyDescriptor$2(!call$c(propertyIsEnumerableModule$1.f, O, P), O[P]); + if (hasOwn$9(O, P)) return createPropertyDescriptor$2(!call$e(propertyIsEnumerableModule$1.f, O, P), O[P]); }; var makeBuiltIn$3 = {exports: {}}; @@ -1697,7 +1696,7 @@ // additional protection from minified / mangled / dropped function names var PROPER = EXISTS && function something() {/* empty */}.name === 'something'; var CONFIGURABLE = EXISTS && (!DESCRIPTORS$7 || DESCRIPTORS$7 && getDescriptor(FunctionPrototype$1, 'name').configurable); - var functionName = { + var functionName$6 = { EXISTS: EXISTS, PROPER: PROPER, CONFIGURABLE: CONFIGURABLE @@ -1708,7 +1707,7 @@ var isCallable$c = isCallable$m; var hasOwn$7 = hasOwnProperty_1; var DESCRIPTORS$6 = descriptors; - var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE; + var CONFIGURABLE_FUNCTION_NAME$1 = functionName$6.CONFIGURABLE; var inspectSource$1 = inspectSource$3; var InternalStateModule$4 = internalState; var enforceInternalState = InternalStateModule$4.enforce; @@ -1716,9 +1715,9 @@ var $String$2 = String; // eslint-disable-next-line es/no-object-defineproperty -- safe var defineProperty$6 = Object.defineProperty; - var stringSlice$3 = uncurryThis$e(''.slice); + var stringSlice$4 = uncurryThis$e(''.slice); var replace$2 = uncurryThis$e(''.replace); - var join = uncurryThis$e([].join); + var join$7 = uncurryThis$e([].join); var CONFIGURABLE_LENGTH = DESCRIPTORS$6 && !fails$j(function () { return defineProperty$6(function () {/* empty */}, 'length', { value: 8 @@ -1726,7 +1725,7 @@ }); var TEMPLATE = String(String).split('String'); var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) { - if (stringSlice$3($String$2(name), 0, 7) === 'Symbol(') { + if (stringSlice$4($String$2(name), 0, 7) === 'Symbol(') { name = '[' + replace$2($String$2(name), /^Symbol\(([^)]*)\)/, '$1') + ']'; } if (options && options.getter) name = 'get ' + name; @@ -1752,7 +1751,7 @@ } catch (error) {/* empty */} var state = enforceInternalState(value); if (!hasOwn$7(state, 'source')) { - state.source = join(TEMPLATE, typeof name == 'string' ? name : ''); + state.source = join$7(TEMPLATE, typeof name == 'string' ? name : ''); } return value; }; @@ -1812,13 +1811,13 @@ var getOwnPropertyNamesModule$1 = objectGetOwnPropertyNames; var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols; var anObject$8 = anObject$c; - var concat$1 = uncurryThis$d([].concat); + var concat$6 = uncurryThis$d([].concat); // all object keys, includes non-enumerable and symbols var ownKeys$1 = getBuiltIn$3('Reflect', 'ownKeys') || function ownKeys(it) { var keys = getOwnPropertyNamesModule$1.f(anObject$8(it)); var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f; - return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys; + return getOwnPropertySymbols ? concat$6(keys, getOwnPropertySymbols(it)) : keys; }; var hasOwn$6 = hasOwnProperty_1; @@ -1852,7 +1851,7 @@ var POLYFILL = isForced$4.POLYFILL = 'P'; var isForced_1 = isForced$4; - var global$d = global$n; + var global$e = global$o; var getOwnPropertyDescriptor$2 = objectGetOwnPropertyDescriptor.f; var createNonEnumerableProperty$2 = createNonEnumerableProperty$5; var defineBuiltIn$8 = defineBuiltIn$9; @@ -1881,11 +1880,11 @@ var STATIC = options.stat; var FORCED, target, key, targetProperty, sourceProperty, descriptor; if (GLOBAL) { - target = global$d; + target = global$e; } else if (STATIC) { - target = global$d[TARGET] || defineGlobalProperty(TARGET, {}); + target = global$e[TARGET] || defineGlobalProperty(TARGET, {}); } else { - target = (global$d[TARGET] || {}).prototype; + target = (global$e[TARGET] || {}).prototype; } if (target) for (key in source) { sourceProperty = source[key]; @@ -1939,7 +1938,7 @@ var fails$g = fails$s; var isCallable$8 = isCallable$m; - var isObject$8 = isObject$f; + var isObject$9 = isObject$g; var getPrototypeOf$1 = objectGetPrototypeOf; var defineBuiltIn$7 = defineBuiltIn$9; var wellKnownSymbol$d = wellKnownSymbol$j; @@ -1959,7 +1958,7 @@ if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype; } } - var NEW_ITERATOR_PROTOTYPE = !isObject$8(IteratorPrototype$2) || fails$g(function () { + var NEW_ITERATOR_PROTOTYPE = !isObject$9(IteratorPrototype$2) || fails$g(function () { var test = {}; // FF44- legacy iterators case return IteratorPrototype$2[ITERATOR$5].call(test) !== test; @@ -1993,7 +1992,7 @@ }; var IteratorPrototype$1 = iteratorsCore.IteratorPrototype; - var create$2 = objectCreate; + var create$3 = objectCreate; var createPropertyDescriptor$1 = createPropertyDescriptor$4; var setToStringTag$3 = setToStringTag$4; var Iterators$4 = iterators; @@ -2002,7 +2001,7 @@ }; var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) { var TO_STRING_TAG = NAME + ' Iterator'; - IteratorConstructor.prototype = create$2(IteratorPrototype$1, { + IteratorConstructor.prototype = create$3(IteratorPrototype$1, { next: createPropertyDescriptor$1(+!ENUMERABLE_NEXT, next) }); setToStringTag$3(IteratorConstructor, TO_STRING_TAG, false); @@ -2054,8 +2053,8 @@ }() : undefined); var $$l = _export; - var call$b = functionCall; - var FunctionName = functionName; + var call$d = functionCall; + var FunctionName = functionName$6; var isCallable$6 = isCallable$m; var createIteratorConstructor = iteratorCreateConstructor; var getPrototypeOf = objectGetPrototypeOf; @@ -2131,7 +2130,7 @@ } else { INCORRECT_VALUES_NAME = true; defaultIterator = function values() { - return call$b(nativeIterator, this); + return call$d(nativeIterator, this); }; } } @@ -2237,7 +2236,7 @@ }); } catch (error) {/* empty */} - var global$c = global$n; + var global$d = global$o; var DOMIterables = domIterables; var DOMTokenListPrototype = domTokenListPrototype; var ArrayIteratorMethods = es_array_iterator; @@ -2268,12 +2267,12 @@ } }; for (var COLLECTION_NAME in DOMIterables) { - handlePrototype(global$c[COLLECTION_NAME] && global$c[COLLECTION_NAME].prototype, COLLECTION_NAME); + handlePrototype(global$d[COLLECTION_NAME] && global$d[COLLECTION_NAME].prototype, COLLECTION_NAME); } handlePrototype(DOMTokenListPrototype, 'DOMTokenList'); - var global$b = global$n; - var path$1 = global$b; + var global$c = global$o; + var path$1 = global$c; function _regeneratorRuntime() { _regeneratorRuntime = function () { @@ -2859,7 +2858,7 @@ var $$j = _export; var fails$e = fails$s; var isArray = isArray$2; - var isObject$7 = isObject$f; + var isObject$8 = isObject$g; var toObject$2 = toObject$6; var lengthOfArrayLike$2 = lengthOfArrayLike$5; var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1; @@ -2879,7 +2878,7 @@ return array.concat()[0] !== array; }); var isConcatSpreadable = function (O) { - if (!isObject$7(O)) return false; + if (!isObject$8(O)) return false; var spreadable = O[IS_CONCAT_SPREADABLE]; return spreadable !== undefined ? !!spreadable : isArray(O); }; @@ -2918,7 +2917,7 @@ var DESCRIPTORS$4 = descriptors; var uncurryThis$a = functionUncurryThis; - var call$a = functionCall; + var call$c = functionCall; var fails$d = fails$s; var objectKeys$1 = objectKeys$3; var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols; @@ -2930,7 +2929,7 @@ var $assign = Object.assign; // eslint-disable-next-line es/no-object-defineproperty -- required for testing var defineProperty$3 = Object.defineProperty; - var concat = uncurryThis$a([].concat); + var concat$5 = uncurryThis$a([].concat); // `Object.assign` method // https://tc39.es/ecma262/#sec-object.assign @@ -2969,13 +2968,13 @@ var propertyIsEnumerable = propertyIsEnumerableModule.f; while (argumentsLength > index) { var S = IndexedObject(arguments[index++]); - var keys = getOwnPropertySymbols ? concat(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S); + var keys = getOwnPropertySymbols ? concat$5(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S); var length = keys.length; var j = 0; var key; while (length > j) { key = keys[j++]; - if (!DESCRIPTORS$4 || call$a(propertyIsEnumerable, S, key)) T[key] = S[key]; + if (!DESCRIPTORS$4 || call$c(propertyIsEnumerable, S, key)) T[key] = S[key]; } } return T; @@ -3001,18 +3000,18 @@ // `Object.prototype.toString` method implementation // https://tc39.es/ecma262/#sec-object.prototype.tostring - var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() { + var objectToString$1 = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() { return '[object ' + classof$6(this) + ']'; }; var TO_STRING_TAG_SUPPORT = toStringTagSupport; var defineBuiltIn$5 = defineBuiltIn$9; - var toString$6 = objectToString; + var toString$7 = objectToString$1; // `Object.prototype.toString` method // https://tc39.es/ecma262/#sec-object.prototype.tostring if (!TO_STRING_TAG_SUPPORT) { - defineBuiltIn$5(Object.prototype, 'toString', toString$6, { + defineBuiltIn$5(Object.prototype, 'toString', toString$7, { unsafe: true }); } @@ -3049,10 +3048,10 @@ } }; - var isPrototypeOf$3 = objectIsPrototypeOf; + var isPrototypeOf$4 = objectIsPrototypeOf; var $TypeError$6 = TypeError; var anInstance$3 = function (it, Prototype) { - if (isPrototypeOf$3(Prototype, it)) return it; + if (isPrototypeOf$4(Prototype, it)) return it; throw $TypeError$6('Incorrect invocation'); }; @@ -3082,16 +3081,16 @@ var NATIVE_BIND = functionBindNative; var FunctionPrototype = Function.prototype; - var apply$1 = FunctionPrototype.apply; - var call$9 = FunctionPrototype.call; + var apply$2 = FunctionPrototype.apply; + var call$b = FunctionPrototype.call; // eslint-disable-next-line es/no-reflect -- safe - var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$9.bind(apply$1) : function () { - return call$9.apply(apply$1, arguments); + var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$b.bind(apply$2) : function () { + return call$b.apply(apply$2, arguments); }); var uncurryThis$9 = functionUncurryThis; - var arraySlice$2 = uncurryThis$9([].slice); + var arraySlice$3 = uncurryThis$9([].slice); var $TypeError$4 = TypeError; var validateArgumentsLength$1 = function (passed, required) { @@ -3104,37 +3103,37 @@ // eslint-disable-next-line redos/no-vulnerable -- safe var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2); - var global$a = global$n; - var apply = functionApply; - var bind$4 = functionBindContext; + var global$b = global$o; + var apply$1 = functionApply; + var bind$5 = functionBindContext; var isCallable$5 = isCallable$m; var hasOwn$3 = hasOwnProperty_1; var fails$c = fails$s; var html = html$2; - var arraySlice$1 = arraySlice$2; + var arraySlice$2 = arraySlice$3; var createElement = documentCreateElement$2; var validateArgumentsLength = validateArgumentsLength$1; var IS_IOS$1 = engineIsIos; var IS_NODE$3 = engineIsNode; - var set = global$a.setImmediate; - var clear = global$a.clearImmediate; - var process$3 = global$a.process; - var Dispatch = global$a.Dispatch; - var Function$1 = global$a.Function; - var MessageChannel = global$a.MessageChannel; - var String$1 = global$a.String; + var set = global$b.setImmediate; + var clear = global$b.clearImmediate; + var process$4 = global$b.process; + var Dispatch = global$b.Dispatch; + var Function$1 = global$b.Function; + var MessageChannel = global$b.MessageChannel; + var String$1 = global$b.String; var counter = 0; - var queue$2 = {}; + var queue$3 = {}; var ONREADYSTATECHANGE = 'onreadystatechange'; var $location, defer, channel, port; fails$c(function () { // Deno throws a ReferenceError on `location` access without `--location` flag - $location = global$a.location; + $location = global$b.location; }); var run = function (id) { - if (hasOwn$3(queue$2, id)) { - var fn = queue$2[id]; - delete queue$2[id]; + if (hasOwn$3(queue$3, id)) { + var fn = queue$3[id]; + delete queue$3[id]; fn(); } }; @@ -3148,7 +3147,7 @@ }; var globalPostMessageDefer = function (id) { // old engines have not location.origin - global$a.postMessage(String$1(id), $location.protocol + '//' + $location.host); + global$b.postMessage(String$1(id), $location.protocol + '//' + $location.host); }; // Node.js 0.9+ & IE10+ has setImmediate, otherwise: @@ -3156,20 +3155,20 @@ set = function setImmediate(handler) { validateArgumentsLength(arguments.length, 1); var fn = isCallable$5(handler) ? handler : Function$1(handler); - var args = arraySlice$1(arguments, 1); - queue$2[++counter] = function () { - apply(fn, undefined, args); + var args = arraySlice$2(arguments, 1); + queue$3[++counter] = function () { + apply$1(fn, undefined, args); }; defer(counter); return counter; }; clear = function clearImmediate(id) { - delete queue$2[id]; + delete queue$3[id]; }; // Node.js 0.8- if (IS_NODE$3) { defer = function (id) { - process$3.nextTick(runner(id)); + process$4.nextTick(runner(id)); }; // Sphere (JS game engine) Dispatch API } else if (Dispatch && Dispatch.now) { @@ -3182,12 +3181,12 @@ channel = new MessageChannel(); port = channel.port2; channel.port1.onmessage = eventListener; - defer = bind$4(port.postMessage, port); + defer = bind$5(port.postMessage, port); // Browsers with postMessage, skip WebWorkers // IE8 has postMessage, but it's sync & typeof its postMessage is 'object' - } else if (global$a.addEventListener && isCallable$5(global$a.postMessage) && !global$a.importScripts && $location && $location.protocol !== 'file:' && !fails$c(globalPostMessageDefer)) { + } else if (global$b.addEventListener && isCallable$5(global$b.postMessage) && !global$b.importScripts && $location && $location.protocol !== 'file:' && !fails$c(globalPostMessageDefer)) { defer = globalPostMessageDefer; - global$a.addEventListener('message', eventListener, false); + global$b.addEventListener('message', eventListener, false); // IE8- } else if (ONREADYSTATECHANGE in createElement('script')) { defer = function (id) { @@ -3231,7 +3230,7 @@ } } }; - var queue$1 = Queue$2; + var queue$2 = Queue$2; var userAgent$1 = engineUserAgent; var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && typeof Pebble != 'undefined'; @@ -3239,34 +3238,34 @@ var userAgent = engineUserAgent; var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent); - var global$9 = global$n; - var bind$3 = functionBindContext; + var global$a = global$o; + var bind$4 = functionBindContext; var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f; var macrotask = task$1.set; - var Queue$1 = queue$1; + var Queue$1 = queue$2; var IS_IOS = engineIsIos; var IS_IOS_PEBBLE = engineIsIosPebble; var IS_WEBOS_WEBKIT = engineIsWebosWebkit; var IS_NODE$2 = engineIsNode; - var MutationObserver = global$9.MutationObserver || global$9.WebKitMutationObserver; - var document$2 = global$9.document; - var process$2 = global$9.process; - var Promise$1 = global$9.Promise; + var MutationObserver = global$a.MutationObserver || global$a.WebKitMutationObserver; + var document$2 = global$a.document; + var process$3 = global$a.process; + var Promise$1 = global$a.Promise; // Node.js 11 shows ExperimentalWarning on getting `queueMicrotask` - var queueMicrotaskDescriptor = getOwnPropertyDescriptor$1(global$9, 'queueMicrotask'); + var queueMicrotaskDescriptor = getOwnPropertyDescriptor$1(global$a, 'queueMicrotask'); var microtask$1 = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value; var notify$1, toggle, node, promise, then; // modern engines have queueMicrotask method if (!microtask$1) { - var queue = new Queue$1(); + var queue$1 = new Queue$1(); var flush = function () { var parent, fn; - if (IS_NODE$2 && (parent = process$2.domain)) parent.exit(); - while (fn = queue.get()) try { + if (IS_NODE$2 && (parent = process$3.domain)) parent.exit(); + while (fn = queue$1.get()) try { fn(); } catch (error) { - if (queue.head) notify$1(); + if (queue$1.head) notify$1(); throw error; } if (parent) parent.enter(); @@ -3289,14 +3288,14 @@ promise = Promise$1.resolve(undefined); // workaround of WebKit ~ iOS Safari 10.1 bug promise.constructor = Promise$1; - then = bind$3(promise.then, promise); + then = bind$4(promise.then, promise); notify$1 = function () { then(flush); }; // Node.js without promises } else if (IS_NODE$2) { notify$1 = function () { - process$2.nextTick(flush); + process$3.nextTick(flush); }; // for other environments - macrotask based on: // - setImmediate @@ -3306,14 +3305,14 @@ // - setTimeout } else { // `webpack` dev server bug on IE global methods - use bind(fn, global) - macrotask = bind$3(macrotask, global$9); + macrotask = bind$4(macrotask, global$a); notify$1 = function () { macrotask(flush); }; } microtask$1 = function (fn) { - if (!queue.head) notify$1(); - queue.add(fn); + if (!queue$1.head) notify$1(); + queue$1.add(fn); }; } var microtask_1 = microtask$1; @@ -3339,8 +3338,8 @@ } }; - var global$8 = global$n; - var promiseNativeConstructor = global$8.Promise; + var global$9 = global$o; + var promiseNativeConstructor = global$9.Promise; /* global Deno -- Deno case */ var engineIsDeno = typeof Deno == 'object' && Deno && typeof Deno.version == 'object'; @@ -3349,7 +3348,7 @@ var IS_NODE$1 = engineIsNode; var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1 && typeof window == 'object' && typeof document == 'object'; - var global$7 = global$n; + var global$8 = global$o; var NativePromiseConstructor$3 = promiseNativeConstructor; var isCallable$4 = isCallable$m; var isForced$2 = isForced_1; @@ -3361,7 +3360,7 @@ NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype; var SPECIES = wellKnownSymbol$5('species'); var SUBCLASSING = false; - var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$4(global$7.PromiseRejectionEvent); + var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$4(global$8.PromiseRejectionEvent); var FORCED_PROMISE_CONSTRUCTOR$5 = isForced$2('Promise', function () { var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3); var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor$3); @@ -3417,22 +3416,22 @@ var $$h = _export; var IS_NODE = engineIsNode; - var global$6 = global$n; - var call$8 = functionCall; + var global$7 = global$o; + var call$a = functionCall; var defineBuiltIn$4 = defineBuiltIn$9; var setPrototypeOf$1 = objectSetPrototypeOf; var setToStringTag$1 = setToStringTag$4; var setSpecies$1 = setSpecies$2; var aCallable$3 = aCallable$8; var isCallable$3 = isCallable$m; - var isObject$6 = isObject$f; + var isObject$7 = isObject$g; var anInstance$2 = anInstance$3; var speciesConstructor = speciesConstructor$1; var task = task$1.set; var microtask = microtask_1; var hostReportErrors = hostReportErrors$1; var perform$2 = perform$3; - var Queue = queue$1; + var Queue = queue$2; var InternalStateModule$2 = internalState; var NativePromiseConstructor$2 = promiseNativeConstructor; var PromiseConstructorDetection = promiseConstructorDetection; @@ -3446,12 +3445,12 @@ var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype; var PromiseConstructor = NativePromiseConstructor$2; var PromisePrototype = NativePromisePrototype$1; - var TypeError$2 = global$6.TypeError; - var document$1 = global$6.document; - var process$1 = global$6.process; + var TypeError$2 = global$7.TypeError; + var document$1 = global$7.document; + var process$2 = global$7.process; var newPromiseCapability$1 = newPromiseCapabilityModule$3.f; var newGenericPromiseCapability = newPromiseCapability$1; - var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$6.dispatchEvent); + var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$7.dispatchEvent); var UNHANDLED_REJECTION = 'unhandledrejection'; var REJECTION_HANDLED = 'rejectionhandled'; var PENDING = 0; @@ -3464,7 +3463,7 @@ // helpers var isThenable = function (it) { var then; - return isObject$6(it) && isCallable$3(then = it.then) ? then : false; + return isObject$7(it) && isCallable$3(then = it.then) ? then : false; }; var callReaction = function (reaction, state) { var value = state.value; @@ -3491,7 +3490,7 @@ if (result === reaction.promise) { reject(TypeError$2('Promise-chain cycle')); } else if (then = isThenable(result)) { - call$8(then, result, resolve, reject); + call$a(then, result, resolve, reject); } else resolve(result); } else reject(value); } catch (error) { @@ -3519,15 +3518,15 @@ event.promise = promise; event.reason = reason; event.initEvent(name, false, true); - global$6.dispatchEvent(event); + global$7.dispatchEvent(event); } else event = { promise: promise, reason: reason }; - if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$6['on' + name])) handler(event);else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason); + if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$7['on' + name])) handler(event);else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason); }; var onUnhandled = function (state) { - call$8(task, global$6, function () { + call$a(task, global$7, function () { var promise = state.facade; var value = state.value; var IS_UNHANDLED = isUnhandled(state); @@ -3535,7 +3534,7 @@ if (IS_UNHANDLED) { result = perform$2(function () { if (IS_NODE) { - process$1.emit('unhandledRejection', value, promise); + process$2.emit('unhandledRejection', value, promise); } else dispatchEvent(UNHANDLED_REJECTION, promise, value); }); // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should @@ -3548,14 +3547,14 @@ return state.rejection !== HANDLED && !state.parent; }; var onHandleUnhandled = function (state) { - call$8(task, global$6, function () { + call$a(task, global$7, function () { var promise = state.facade; if (IS_NODE) { - process$1.emit('rejectionHandled', promise); + process$2.emit('rejectionHandled', promise); } else dispatchEvent(REJECTION_HANDLED, promise, state.value); }); }; - var bind$2 = function (fn, state, unwrap) { + var bind$3 = function (fn, state, unwrap) { return function (value) { fn(state, value, unwrap); }; @@ -3581,7 +3580,7 @@ done: false }; try { - call$8(then, value, bind$2(internalResolve, wrapper, state), bind$2(internalReject, wrapper, state)); + call$a(then, value, bind$3(internalResolve, wrapper, state), bind$3(internalReject, wrapper, state)); } catch (error) { internalReject(wrapper, error, state); } @@ -3604,10 +3603,10 @@ PromiseConstructor = function Promise(executor) { anInstance$2(this, PromisePrototype); aCallable$3(executor); - call$8(Internal, this); + call$a(Internal, this); var state = getInternalPromiseState(this); try { - executor(bind$2(internalResolve, state), bind$2(internalReject, state)); + executor(bind$3(internalResolve, state), bind$3(internalReject, state)); } catch (error) { internalReject(state, error); } @@ -3636,7 +3635,7 @@ state.parent = true; reaction.ok = isCallable$3(onFulfilled) ? onFulfilled : true; reaction.fail = isCallable$3(onRejected) && onRejected; - reaction.domain = IS_NODE ? process$1.domain : undefined; + reaction.domain = IS_NODE ? process$2.domain : undefined; if (state.state == PENDING) state.reactions.add(reaction);else microtask(function () { callReaction(reaction, state); }); @@ -3646,8 +3645,8 @@ var promise = new Internal(); var state = getInternalPromiseState(promise); this.promise = promise; - this.resolve = bind$2(internalResolve, state); - this.reject = bind$2(internalReject, state); + this.resolve = bind$3(internalResolve, state); + this.reject = bind$3(internalReject, state); }; newPromiseCapabilityModule$3.f = newPromiseCapability$1 = function (C) { return C === PromiseConstructor || C === PromiseWrapper ? new OwnPromiseCapability(C) : newGenericPromiseCapability(C); @@ -3659,7 +3658,7 @@ defineBuiltIn$4(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) { var that = this; return new PromiseConstructor(function (resolve, reject) { - call$8(nativeThen, that, resolve, reject); + call$a(nativeThen, that, resolve, reject); }).then(onFulfilled, onRejected); // https://github.com/zloirock/core-js/issues/640 }, { @@ -3709,7 +3708,7 @@ if (!isNullOrUndefined$2(it)) return getMethod$1(it, ITERATOR$1) || getMethod$1(it, '@@iterator') || Iterators[classof$4(it)]; }; - var call$7 = functionCall; + var call$9 = functionCall; var aCallable$2 = aCallable$8; var anObject$5 = anObject$c; var tryToString$1 = tryToString$4; @@ -3717,11 +3716,11 @@ var $TypeError$2 = TypeError; var getIterator$1 = function (argument, usingIterator) { var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator; - if (aCallable$2(iteratorMethod)) return anObject$5(call$7(iteratorMethod, argument)); + if (aCallable$2(iteratorMethod)) return anObject$5(call$9(iteratorMethod, argument)); throw $TypeError$2(tryToString$1(argument) + ' is not iterable'); }; - var call$6 = functionCall; + var call$8 = functionCall; var anObject$4 = anObject$c; var getMethod = getMethod$3; var iteratorClose$1 = function (iterator, kind, value) { @@ -3733,7 +3732,7 @@ if (kind === 'throw') throw value; return value; } - innerResult = call$6(innerResult, iterator); + innerResult = call$8(innerResult, iterator); } catch (error) { innerError = true; innerResult = error; @@ -3744,13 +3743,13 @@ return value; }; - var bind$1 = functionBindContext; - var call$5 = functionCall; + var bind$2 = functionBindContext; + var call$7 = functionCall; var anObject$3 = anObject$c; var tryToString = tryToString$4; var isArrayIteratorMethod = isArrayIteratorMethod$1; var lengthOfArrayLike$1 = lengthOfArrayLike$5; - var isPrototypeOf$2 = objectIsPrototypeOf; + var isPrototypeOf$3 = objectIsPrototypeOf; var getIterator = getIterator$1; var getIteratorMethod = getIteratorMethod$2; var iteratorClose = iteratorClose$1; @@ -3766,7 +3765,7 @@ var IS_RECORD = !!(options && options.IS_RECORD); var IS_ITERATOR = !!(options && options.IS_ITERATOR); var INTERRUPTED = !!(options && options.INTERRUPTED); - var fn = bind$1(unboundFunction, that); + var fn = bind$2(unboundFunction, that); var iterator, iterFn, index, length, result, next, step; var stop = function (condition) { if (iterator) iteratorClose(iterator, 'normal', condition); @@ -3790,20 +3789,20 @@ if (isArrayIteratorMethod(iterFn)) { for (index = 0, length = lengthOfArrayLike$1(iterable); length > index; index++) { result = callFn(iterable[index]); - if (result && isPrototypeOf$2(ResultPrototype, result)) return result; + if (result && isPrototypeOf$3(ResultPrototype, result)) return result; } return new Result(false); } iterator = getIterator(iterable, iterFn); } next = IS_RECORD ? iterable.next : iterator.next; - while (!(step = call$5(next, iterator)).done) { + while (!(step = call$7(next, iterator)).done) { try { result = callFn(step.value); } catch (error) { iteratorClose(iterator, 'throw', error); } - if (typeof result == 'object' && result && isPrototypeOf$2(ResultPrototype, result)) return result; + if (typeof result == 'object' && result && isPrototypeOf$3(ResultPrototype, result)) return result; } return new Result(false); }; @@ -3858,7 +3857,7 @@ }); var $$g = _export; - var call$4 = functionCall; + var call$6 = functionCall; var aCallable$1 = aCallable$8; var newPromiseCapabilityModule$2 = newPromiseCapability$2; var perform$1 = perform$3; @@ -3886,7 +3885,7 @@ var index = counter++; var alreadyCalled = false; remaining++; - call$4($promiseResolve, C, promise).then(function (value) { + call$6($promiseResolve, C, promise).then(function (value) { if (alreadyCalled) return; alreadyCalled = true; values[index] = value; @@ -3932,7 +3931,7 @@ } var $$e = _export; - var call$3 = functionCall; + var call$5 = functionCall; var aCallable = aCallable$8; var newPromiseCapabilityModule$1 = newPromiseCapability$2; var perform = perform$3; @@ -3953,7 +3952,7 @@ var result = perform(function () { var $promiseResolve = aCallable(C.resolve); iterate$2(iterable, function (promise) { - call$3($promiseResolve, C, promise).then(capability.resolve, reject); + call$5($promiseResolve, C, promise).then(capability.resolve, reject); }); }); if (result.error) reject(result.value); @@ -3962,7 +3961,7 @@ }); var $$d = _export; - var call$2 = functionCall; + var call$4 = functionCall; var newPromiseCapabilityModule = newPromiseCapability$2; var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR; @@ -3975,17 +3974,17 @@ }, { reject: function reject(r) { var capability = newPromiseCapabilityModule.f(this); - call$2(capability.reject, undefined, r); + call$4(capability.reject, undefined, r); return capability.promise; } }); var anObject$2 = anObject$c; - var isObject$5 = isObject$f; + var isObject$6 = isObject$g; var newPromiseCapability = newPromiseCapability$2; var promiseResolve$1 = function (C, x) { anObject$2(C); - if (isObject$5(x) && x.constructor === C) return x; + if (isObject$6(x) && x.constructor === C) return x; var promiseCapability = newPromiseCapability.f(C); var resolve = promiseCapability.resolve; resolve(x); @@ -4012,7 +4011,7 @@ var classof$3 = classof$8; var $String = String; - var toString$5 = function (argument) { + var toString$6 = function (argument) { if (classof$3(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string'); return $String(argument); }; @@ -4036,10 +4035,10 @@ }; var fails$b = fails$s; - var global$5 = global$n; + var global$6 = global$o; // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError - var $RegExp$2 = global$5.RegExp; + var $RegExp$2 = global$6.RegExp; var UNSUPPORTED_Y$1 = fails$b(function () { var re = $RegExp$2('a', 'y'); re.lastIndex = 2; @@ -4064,20 +4063,20 @@ }; var fails$a = fails$s; - var global$4 = global$n; + var global$5 = global$o; // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError - var $RegExp$1 = global$4.RegExp; + var $RegExp$1 = global$5.RegExp; var regexpUnsupportedDotAll = fails$a(function () { var re = $RegExp$1('.', 's'); return !(re.dotAll && re.exec('\n') && re.flags === 's'); }); var fails$9 = fails$s; - var global$3 = global$n; + var global$4 = global$o; // babel-minify and Closure Compiler transpiles RegExp('(?b)', 'g') -> /(?b)/g and it causes SyntaxError - var $RegExp = global$3.RegExp; + var $RegExp = global$4.RegExp; var regexpUnsupportedNcg = fails$9(function () { var re = $RegExp('(?b)', 'g'); return re.exec('b').groups.a !== 'b' || 'b'.replace(re, '$c') !== 'bc'; @@ -4085,13 +4084,13 @@ /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */ /* eslint-disable regexp/no-useless-quantifier -- testing */ - var call$1 = functionCall; + var call$3 = functionCall; var uncurryThis$8 = functionUncurryThis; - var toString$4 = toString$5; + var toString$5 = toString$6; var regexpFlags = regexpFlags$1; var stickyHelpers = regexpStickyHelpers; var shared = sharedExports; - var create$1 = objectCreate; + var create$2 = objectCreate; var getInternalState$1 = internalState.get; var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll; var UNSUPPORTED_NCG = regexpUnsupportedNcg; @@ -4099,14 +4098,14 @@ var nativeExec = RegExp.prototype.exec; var patchedExec = nativeExec; var charAt$2 = uncurryThis$8(''.charAt); - var indexOf = uncurryThis$8(''.indexOf); + var indexOf$1 = uncurryThis$8(''.indexOf); var replace$1 = uncurryThis$8(''.replace); - var stringSlice$2 = uncurryThis$8(''.slice); + var stringSlice$3 = uncurryThis$8(''.slice); var UPDATES_LAST_INDEX_WRONG = function () { var re1 = /a/; var re2 = /b*/g; - call$1(nativeExec, re1, 'a'); - call$1(nativeExec, re2, 'a'); + call$3(nativeExec, re1, 'a'); + call$3(nativeExec, re2, 'a'); return re1.lastIndex !== 0 || re2.lastIndex !== 0; }(); var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET; @@ -4118,27 +4117,27 @@ patchedExec = function exec(string) { var re = this; var state = getInternalState$1(re); - var str = toString$4(string); + var str = toString$5(string); var raw = state.raw; var result, reCopy, lastIndex, match, i, object, group; if (raw) { raw.lastIndex = re.lastIndex; - result = call$1(patchedExec, raw, str); + result = call$3(patchedExec, raw, str); re.lastIndex = raw.lastIndex; return result; } var groups = state.groups; var sticky = UNSUPPORTED_Y && re.sticky; - var flags = call$1(regexpFlags, re); + var flags = call$3(regexpFlags, re); var source = re.source; var charsAdded = 0; var strCopy = str; if (sticky) { flags = replace$1(flags, 'y', ''); - if (indexOf(flags, 'g') === -1) { + if (indexOf$1(flags, 'g') === -1) { flags += 'g'; } - strCopy = stringSlice$2(str, re.lastIndex); + strCopy = stringSlice$3(str, re.lastIndex); // Support anchored sticky behavior. if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$2(str, re.lastIndex - 1) !== '\n')) { source = '(?: ' + source + ')'; @@ -4153,11 +4152,11 @@ reCopy = new RegExp('^' + source + '$(?!\\s)', flags); } if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex; - match = call$1(nativeExec, sticky ? reCopy : re, strCopy); + match = call$3(nativeExec, sticky ? reCopy : re, strCopy); if (sticky) { if (match) { - match.input = stringSlice$2(match.input, charsAdded); - match[0] = stringSlice$2(match[0], charsAdded); + match.input = stringSlice$3(match.input, charsAdded); + match[0] = stringSlice$3(match[0], charsAdded); match.index = re.lastIndex; re.lastIndex += match[0].length; } else re.lastIndex = 0; @@ -4167,14 +4166,14 @@ if (NPCG_INCLUDED && match && match.length > 1) { // Fix browsers whose `exec` methods don't consistently return `undefined` // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/ - call$1(nativeReplace, match[0], reCopy, function () { + call$3(nativeReplace, match[0], reCopy, function () { for (i = 1; i < arguments.length - 2; i++) { if (arguments[i] === undefined) match[i] = undefined; } }); } if (match && groups) { - match.groups = object = create$1(null); + match.groups = object = create$2(null); for (i = 0; i < groups.length; i++) { group = groups[i]; object[group[0]] = match[group[1]]; @@ -4389,20 +4388,20 @@ var uncurryThis$7 = functionUncurryThis; var toIntegerOrInfinity = toIntegerOrInfinity$3; - var toString$3 = toString$5; + var toString$4 = toString$6; var requireObjectCoercible$2 = requireObjectCoercible$5; var charAt$1 = uncurryThis$7(''.charAt); var charCodeAt$1 = uncurryThis$7(''.charCodeAt); - var stringSlice$1 = uncurryThis$7(''.slice); + var stringSlice$2 = uncurryThis$7(''.slice); var createMethod$2 = function (CONVERT_TO_STRING) { return function ($this, pos) { - var S = toString$3(requireObjectCoercible$2($this)); + var S = toString$4(requireObjectCoercible$2($this)); var position = toIntegerOrInfinity(pos); var size = S.length; var first, second; if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined; first = charCodeAt$1(S, position); - return first < 0xD800 || first > 0xDBFF || position + 1 === size || (second = charCodeAt$1(S, position + 1)) < 0xDC00 || second > 0xDFFF ? CONVERT_TO_STRING ? charAt$1(S, position) : first : CONVERT_TO_STRING ? stringSlice$1(S, position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000; + return first < 0xD800 || first > 0xDBFF || position + 1 === size || (second = charCodeAt$1(S, position + 1)) < 0xDC00 || second > 0xDFFF ? CONVERT_TO_STRING ? charAt$1(S, position) : first : CONVERT_TO_STRING ? stringSlice$2(S, position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000; }; }; var stringMultibyte = { @@ -4415,7 +4414,7 @@ }; var charAt = stringMultibyte.charAt; - var toString$2 = toString$5; + var toString$3 = toString$6; var InternalStateModule$1 = internalState; var defineIterator$1 = iteratorDefine; var createIterResultObject$1 = createIterResultObject$3; @@ -4428,7 +4427,7 @@ defineIterator$1(String, 'String', function (iterated) { setInternalState$1(this, { type: STRING_ITERATOR, - string: toString$2(iterated), + string: toString$3(iterated), index: 0 }); // `%StringIteratorPrototype%.next` method @@ -5118,7 +5117,7 @@ return PluginManager; }(); - var version = "2.4.3"; + var version$1 = "2.4.3"; /** * The application container @@ -5469,7 +5468,7 @@ }], [{ key: "version", get: function get() { - return version; + return version$1; } }]); return Container; @@ -5607,7 +5606,7 @@ var uncurryThis$6 = functionUncurryThis; var requireObjectCoercible$1 = requireObjectCoercible$5; - var toString$1 = toString$5; + var toString$2 = toString$6; var whitespaces$1 = whitespaces$2; var replace = uncurryThis$6(''.replace); var ltrim = RegExp('^[' + whitespaces$1 + ']+'); @@ -5616,7 +5615,7 @@ // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation var createMethod$1 = function (TYPE) { return function ($this) { - var string = toString$1(requireObjectCoercible$1($this)); + var string = toString$2(requireObjectCoercible$1($this)); if (TYPE & 1) string = replace(string, ltrim, ''); if (TYPE & 2) string = replace(string, rtrim, '$1'); return string; @@ -5634,7 +5633,7 @@ trim: createMethod$1(3) }; - var PROPER_FUNCTION_NAME$1 = functionName.PROPER; + var PROPER_FUNCTION_NAME$1 = functionName$6.PROPER; var fails$7 = fails$s; var whitespaces = whitespaces$2; var non = '\u200B\u0085\u180E'; @@ -5663,20 +5662,20 @@ } }); - var call = functionCall; + var call$2 = functionCall; var hasOwn$2 = hasOwnProperty_1; - var isPrototypeOf$1 = objectIsPrototypeOf; + var isPrototypeOf$2 = objectIsPrototypeOf; var regExpFlags = regexpFlags$1; var RegExpPrototype$1 = RegExp.prototype; var regexpGetFlags = function (R) { var flags = R.flags; - return flags === undefined && !('flags' in RegExpPrototype$1) && !hasOwn$2(R, 'flags') && isPrototypeOf$1(RegExpPrototype$1, R) ? call(regExpFlags, R) : flags; + return flags === undefined && !('flags' in RegExpPrototype$1) && !hasOwn$2(R, 'flags') && isPrototypeOf$2(RegExpPrototype$1, R) ? call$2(regExpFlags, R) : flags; }; - var PROPER_FUNCTION_NAME = functionName.PROPER; + var PROPER_FUNCTION_NAME = functionName$6.PROPER; var defineBuiltIn$2 = defineBuiltIn$9; var anObject = anObject$c; - var $toString = toString$5; + var $toString = toString$6; var fails$6 = fails$s; var getRegExpFlags = regexpGetFlags; var TO_STRING = 'toString'; @@ -6331,7 +6330,7 @@ return ButtonPlugin; }(BasePlugin); - var isObject$4 = isObject$f; + var isObject$5 = isObject$g; var classof$2 = classofRaw$2; var wellKnownSymbol$1 = wellKnownSymbol$j; var MATCH$1 = wellKnownSymbol$1('match'); @@ -6340,7 +6339,7 @@ // https://tc39.es/ecma262/#sec-isregexp var isRegexp = function (it) { var isRegExp; - return isObject$4(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$2(it) == 'RegExp'); + return isObject$5(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$2(it) == 'RegExp'); }; var isRegExp = isRegexp; @@ -6371,9 +6370,9 @@ var uncurryThis$5 = functionUncurryThis; var notARegExp = notARegexp; var requireObjectCoercible = requireObjectCoercible$5; - var toString = toString$5; + var toString$1 = toString$6; var correctIsRegExpLogic = correctIsRegexpLogic; - var stringIndexOf = uncurryThis$5(''.indexOf); + var stringIndexOf$1 = uncurryThis$5(''.indexOf); // `String.prototype.includes` method // https://tc39.es/ecma262/#sec-string.prototype.includes @@ -6383,7 +6382,7 @@ forced: !correctIsRegExpLogic('includes') }, { includes: function includes(searchString /* , position = 0 */) { - return !!~stringIndexOf(toString(requireObjectCoercible(this)), toString(notARegExp(searchString)), arguments.length > 1 ? arguments[1] : undefined); + return !!~stringIndexOf$1(toString$1(requireObjectCoercible(this)), toString$1(notARegExp(searchString)), arguments.length > 1 ? arguments[1] : undefined); } }); @@ -6410,13 +6409,13 @@ var classof$1 = classofRaw$2; var toIndexedObject$1 = toIndexedObject$7; var $getOwnPropertyNames = objectGetOwnPropertyNames.f; - var arraySlice = arraySliceSimple; + var arraySlice$1 = arraySliceSimple; var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : []; var getWindowNames = function (it) { try { return $getOwnPropertyNames(it); } catch (error) { - return arraySlice(windowNames); + return arraySlice$1(windowNames); } }; @@ -6438,7 +6437,7 @@ }); var fails$4 = fails$s; - var isObject$3 = isObject$f; + var isObject$4 = isObject$g; var classof = classofRaw$2; var ARRAY_BUFFER_NON_EXTENSIBLE = arrayBufferNonExtensible; @@ -6451,7 +6450,7 @@ // `Object.isExtensible` method // https://tc39.es/ecma262/#sec-object.isextensible var objectIsExtensible = FAILS_ON_PRIMITIVES$1 || ARRAY_BUFFER_NON_EXTENSIBLE ? function isExtensible(it) { - if (!isObject$3(it)) return false; + if (!isObject$4(it)) return false; if (ARRAY_BUFFER_NON_EXTENSIBLE && classof(it) == 'ArrayBuffer') return false; return $isExtensible ? $isExtensible(it) : true; } : $isExtensible; @@ -6465,7 +6464,7 @@ var $$5 = _export; var uncurryThis$4 = functionUncurryThis; var hiddenKeys = hiddenKeys$5; - var isObject$2 = isObject$f; + var isObject$3 = isObject$g; var hasOwn$1 = hasOwnProperty_1; var defineProperty$1 = objectDefineProperty.f; var getOwnPropertyNamesModule = objectGetOwnPropertyNames; @@ -6488,7 +6487,7 @@ var fastKey$1 = function (it, create) { // return a primitive with prefix - if (!isObject$2(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it; + if (!isObject$3(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it; if (!hasOwn$1(it, METADATA)) { // can't set metadata to uncaught frozen object if (!isExtensible(it)) return 'F'; @@ -6557,7 +6556,7 @@ var internalMetadataExports = internalMetadata.exports; var isCallable$1 = isCallable$m; - var isObject$1 = isObject$f; + var isObject$2 = isObject$g; var setPrototypeOf = objectSetPrototypeOf; // makes subclassing work correct for wrapped built-ins @@ -6567,12 +6566,12 @@ // it can work only with native `setPrototypeOf` setPrototypeOf && // we haven't completely correct pre-ES6 way for getting `new.target`, so use this - isCallable$1(NewTarget = dummy.constructor) && NewTarget !== Wrapper && isObject$1(NewTargetPrototype = NewTarget.prototype) && NewTargetPrototype !== Wrapper.prototype) setPrototypeOf($this, NewTargetPrototype); + isCallable$1(NewTarget = dummy.constructor) && NewTarget !== Wrapper && isObject$2(NewTargetPrototype = NewTarget.prototype) && NewTargetPrototype !== Wrapper.prototype) setPrototypeOf($this, NewTargetPrototype); return $this; }; var $$4 = _export; - var global$2 = global$n; + var global$3 = global$o; var uncurryThis$3 = functionUncurryThis; var isForced$1 = isForced_1; var defineBuiltIn$1 = defineBuiltIn$9; @@ -6581,7 +6580,7 @@ var anInstance$1 = anInstance$3; var isCallable = isCallable$m; var isNullOrUndefined$1 = isNullOrUndefined$6; - var isObject = isObject$f; + var isObject$1 = isObject$g; var fails$2 = fails$s; var checkCorrectnessOfIteration = checkCorrectnessOfIteration$2; var setToStringTag = setToStringTag$4; @@ -6590,7 +6589,7 @@ var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1; var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1; var ADDER = IS_MAP ? 'set' : 'add'; - var NativeConstructor = global$2[CONSTRUCTOR_NAME]; + var NativeConstructor = global$3[CONSTRUCTOR_NAME]; var NativePrototype = NativeConstructor && NativeConstructor.prototype; var Constructor = NativeConstructor; var exported = {}; @@ -6600,11 +6599,11 @@ uncurriedNativeMethod(this, value === 0 ? 0 : value); return this; } : KEY == 'delete' ? function (key) { - return IS_WEAK && !isObject(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key); + return IS_WEAK && !isObject$1(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key); } : KEY == 'get' ? function get(key) { - return IS_WEAK && !isObject(key) ? undefined : uncurriedNativeMethod(this, key === 0 ? 0 : key); + return IS_WEAK && !isObject$1(key) ? undefined : uncurriedNativeMethod(this, key === 0 ? 0 : key); } : KEY == 'has' ? function has(key) { - return IS_WEAK && !isObject(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key); + return IS_WEAK && !isObject$1(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key); } : function set(key, value) { uncurriedNativeMethod(this, key === 0 ? 0 : key, value); return this; @@ -6678,10 +6677,10 @@ return target; }; - var create = objectCreate; + var create$1 = objectCreate; var defineBuiltInAccessor = defineBuiltInAccessor$2; var defineBuiltIns = defineBuiltIns$1; - var bind = functionBindContext; + var bind$1 = functionBindContext; var anInstance = anInstance$3; var isNullOrUndefined = isNullOrUndefined$6; var iterate = iterate$4; @@ -6699,7 +6698,7 @@ anInstance(that, Prototype); setInternalState(that, { type: CONSTRUCTOR_NAME, - index: create(null), + index: create$1(null), first: undefined, last: undefined, size: 0 @@ -6791,7 +6790,7 @@ // https://tc39.es/ecma262/#sec-set.prototype.foreach forEach: function forEach(callbackfn /* , that = undefined */) { var state = getInternalState(this); - var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined); + var boundFunction = bind$1(callbackfn, arguments.length > 1 ? arguments[1] : undefined); var entry; while (entry = entry ? entry.next : state.first) { boundFunction(entry.value, entry.key, this); @@ -6934,7 +6933,7 @@ var toIndexedObject = toIndexedObject$7; var $propertyIsEnumerable = objectPropertyIsEnumerable.f; var propertyIsEnumerable = uncurryThis$2($propertyIsEnumerable); - var push = uncurryThis$2([].push); + var push$8 = uncurryThis$2([].push); // `Object.{ entries, values }` methods implementation var createMethod = function (TO_ENTRIES) { @@ -6948,7 +6947,7 @@ while (length > i) { key = keys[i++]; if (!DESCRIPTORS$1 || propertyIsEnumerable(O, key)) { - push(result, TO_ENTRIES ? [key, O[key]] : O[key]); + push$8(result, TO_ENTRIES ? [key, O[key]] : O[key]); } } return result; @@ -7282,13 +7281,13 @@ var $ = _export; var IS_PURE = isPure; var DESCRIPTORS = descriptors; - var global$1 = global$n; + var global$2 = global$o; var path = path$1; var uncurryThis = functionUncurryThis; var isForced = isForced_1; var hasOwn = hasOwnProperty_1; var inheritIfRequired = inheritIfRequired$2; - var isPrototypeOf = objectIsPrototypeOf; + var isPrototypeOf$1 = objectIsPrototypeOf; var isSymbol = isSymbol$3; var toPrimitive = toPrimitive$2; var fails = fails$s; @@ -7298,11 +7297,11 @@ var thisNumberValue = thisNumberValue$1; var trim = stringTrim.trim; var NUMBER = 'Number'; - var NativeNumber = global$1[NUMBER]; + var NativeNumber = global$2[NUMBER]; path[NUMBER]; var NumberPrototype = NativeNumber.prototype; - var TypeError$1 = global$1.TypeError; - var stringSlice = uncurryThis(''.slice); + var TypeError$1 = global$2.TypeError; + var stringSlice$1 = uncurryThis(''.slice); var charCodeAt = uncurryThis(''.charCodeAt); // `ToNumeric` abstract operation @@ -7341,7 +7340,7 @@ default: return +it; } - digits = stringSlice(it, 2); + digits = stringSlice$1(it, 2); length = digits.length; for (index = 0; index < length; index++) { code = charCodeAt(digits, index); @@ -7357,7 +7356,7 @@ var FORCED = isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1')); var calledWithNew = function (dummy) { // includes check on 1..constructor(foo) case - return isPrototypeOf(NumberPrototype, dummy) && fails(function () { + return isPrototypeOf$1(NumberPrototype, dummy) && fails(function () { thisNumberValue(dummy); }); }; @@ -11145,40 +11144,24189 @@ return FullScreenPlugin; }(ButtonPlugin); - exports.BasePlugin = BasePlugin; - exports.Button = Button; - exports.ButtonPlugin = ButtonPlugin; - exports.ButtonSizePlugin = ButtonSizePlugin; - exports.CaptionsStylePlugin = CaptionsStylePlugin; - exports.CaptionsTogglePlugin = CaptionsTogglePlugin; - exports.ColorVisionPlugin = ColorVisionPlugin; - exports.CompletionPercentagePlugin = CompletionPercentagePlugin; - exports.Container = Container; - exports.ControlSensitivityPlugin = ControlSensitivityPlugin; - exports.DragThresholdScalePlugin = DragThresholdScalePlugin; - exports.Features = Features; - exports.FullScreenPlugin = FullScreenPlugin; - exports.HUDPlugin = HUDPlugin; - exports.HealthPlugin = HealthPlugin; - exports.HelpPlugin = HelpPlugin; - exports.HitAreaScalePlugin = HitAreaScalePlugin; - exports.InputCountPlugin = InputCountPlugin; - exports.KeyboardMapPlugin = KeyboardMapPlugin; - exports.LayersPlugin = LayersPlugin; - exports.ObjectCountPlugin = ObjectCountPlugin; - exports.PageVisibility = PageVisibility; - exports.PausePlugin = PausePlugin; - exports.PointerSizePlugin = PointerSizePlugin; - exports.RadioGroup = RadioGroup; - exports.RadioGroupPlugin = RadioGroupPlugin; - exports.SavedData = SavedData; - exports.SavedDataHandler = SavedDataHandler; - exports.Slider = Slider; - exports.SliderPlugin = SliderPlugin; - exports.SoundPlugin = SoundPlugin; - exports.SpeedScalePlugin = SpeedScalePlugin; - exports.TimersScalePlugin = TimersScalePlugin; - exports.UserDataPlugin = UserDataPlugin; + var call=Function.call;var copyPrototype=function copyPrototypeMethods(prototype){/* eslint-disable local-rules/no-prototype-methods */return Object.getOwnPropertyNames(prototype).reduce(function(result,name){// ignore size because it throws from Map + if(name!=="size"&&name!=="caller"&&name!=="callee"&&name!=="arguments"&&typeof prototype[name]==="function"){result[name]=call.bind(prototype[name]);}return result;},Object.create(null));};var array=copyPrototype(Array.prototype);var every=array.every;function hasCallsLeft(callMap,spy){if(callMap[spy.id]===undefined){callMap[spy.id]=0;}return callMap[spy.id]1?arguments:spies;return every(_spies,checkAdjacentCalls.bind(null,callMap));};var functionName=function functionName(func){if(!func){return "";}return func.displayName||func.name||// Use function decomposition as a last resort to get function + // name. Does not rely on function decomposition to work - if it + // doesn't debugging will be slightly less informative + // (i.e. toString will say 'spy' rather than 'myFunc'). + (String(func).match(/function ([^\s(]+)/)||[])[1];};var className=function className(value){return value.constructor&&value.constructor.name||// The next branch is for IE11 support only: + // Because the name property is not set on the prototype + // of the Function object, we finally try to grab the + // name from its definition. This will never be reached + // in node, so we are not able to test this properly. + // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/name + typeof value.constructor==="function"&&/* istanbul ignore next */functionName(value.constructor)||null;};var commonjsGlobal=typeof window!=='undefined'?window:typeof global!=='undefined'?global:typeof self!=='undefined'?self:{};function commonjsRequire(){throw new Error('Dynamic requires are not currently supported by rollup-plugin-commonjs');}function unwrapExports(x){return x&&x.__esModule&&Object.prototype.hasOwnProperty.call(x,'default')?x.default:x;}function createCommonjsModule(fn,module){return module={exports:{}},fn(module,module.exports),module.exports;}var deprecated=createCommonjsModule(function(module,exports){// wrap returns a function that will invoke the supplied function and print a deprecation warning to the console each + // time it is called. + exports.wrap=function(func,msg){var wrapped=function(){exports.printWarning(msg);return func.apply(this,arguments);};if(func.prototype){wrapped.prototype=func.prototype;}return wrapped;};// defaultMsg returns a string which can be supplied to `wrap()` to notify the user that a particular part of the + // sinon API has been deprecated. + exports.defaultMsg=function(packageName,funcName){return packageName+"."+funcName+" is deprecated and will be removed from the public API in a future version of "+packageName+".";};exports.printWarning=function(msg){// Watch out for IE7 and below! :( + /* istanbul ignore next */if(typeof console!=="undefined"){if(console.info){console.info(msg);}else {console.log(msg);}}};});deprecated.wrap;deprecated.defaultMsg;deprecated.printWarning;// This is an `every` implementation that works for all iterables + var every$1=function every(obj,fn){var pass=true;try{/* eslint-disable-next-line local-rules/no-prototype-methods */obj.forEach(function(){if(!fn.apply(this,arguments)){// Throwing an error is the only way to break `forEach` + throw new Error();}});}catch(e){pass=false;}return pass;};var sort=array.sort;var slice=array.slice;function comparator(a,b){// uuid, won't ever be equal + var aCall=a.getCall(0);var bCall=b.getCall(0);var aId=aCall&&aCall.callId||-1;var bId=bCall&&bCall.callId||-1;return aId + * MIT Licensed + */var promiseExists=typeof Promise==='function';/* eslint-disable no-undef */var globalObject=typeof self==='object'?self:commonjsGlobal;// eslint-disable-line id-blacklist + var symbolExists=typeof Symbol!=='undefined';var mapExists=typeof Map!=='undefined';var setExists=typeof Set!=='undefined';var weakMapExists=typeof WeakMap!=='undefined';var weakSetExists=typeof WeakSet!=='undefined';var dataViewExists=typeof DataView!=='undefined';var symbolIteratorExists=symbolExists&&typeof Symbol.iterator!=='undefined';var symbolToStringTagExists=symbolExists&&typeof Symbol.toStringTag!=='undefined';var setEntriesExists=setExists&&typeof Set.prototype.entries==='function';var mapEntriesExists=mapExists&&typeof Map.prototype.entries==='function';var setIteratorPrototype=setEntriesExists&&Object.getPrototypeOf(new Set().entries());var mapIteratorPrototype=mapEntriesExists&&Object.getPrototypeOf(new Map().entries());var arrayIteratorExists=symbolIteratorExists&&typeof Array.prototype[Symbol.iterator]==='function';var arrayIteratorPrototype=arrayIteratorExists&&Object.getPrototypeOf([][Symbol.iterator]());var stringIteratorExists=symbolIteratorExists&&typeof String.prototype[Symbol.iterator]==='function';var stringIteratorPrototype=stringIteratorExists&&Object.getPrototypeOf(''[Symbol.iterator]());var toStringLeftSliceLength=8;var toStringRightSliceLength=-1;/** + * ### typeOf (obj) + * + * Uses `Object.prototype.toString` to determine the type of an object, + * normalising behaviour across engine versions & well optimised. + * + * @param {Mixed} object + * @return {String} object type + * @api public + */function typeDetect(obj){/* ! Speed optimisation + * Pre: + * string literal x 3,039,035 ops/sec ±1.62% (78 runs sampled) + * boolean literal x 1,424,138 ops/sec ±4.54% (75 runs sampled) + * number literal x 1,653,153 ops/sec ±1.91% (82 runs sampled) + * undefined x 9,978,660 ops/sec ±1.92% (75 runs sampled) + * function x 2,556,769 ops/sec ±1.73% (77 runs sampled) + * Post: + * string literal x 38,564,796 ops/sec ±1.15% (79 runs sampled) + * boolean literal x 31,148,940 ops/sec ±1.10% (79 runs sampled) + * number literal x 32,679,330 ops/sec ±1.90% (78 runs sampled) + * undefined x 32,363,368 ops/sec ±1.07% (82 runs sampled) + * function x 31,296,870 ops/sec ±0.96% (83 runs sampled) + */var typeofObj=typeof obj;if(typeofObj!=='object'){return typeofObj;}/* ! Speed optimisation + * Pre: + * null x 28,645,765 ops/sec ±1.17% (82 runs sampled) + * Post: + * null x 36,428,962 ops/sec ±1.37% (84 runs sampled) + */if(obj===null){return 'null';}/* ! Spec Conformance + * Test: `Object.prototype.toString.call(window)`` + * - Node === "[object global]" + * - Chrome === "[object global]" + * - Firefox === "[object Window]" + * - PhantomJS === "[object Window]" + * - Safari === "[object Window]" + * - IE 11 === "[object Window]" + * - IE Edge === "[object Window]" + * Test: `Object.prototype.toString.call(this)`` + * - Chrome Worker === "[object global]" + * - Firefox Worker === "[object DedicatedWorkerGlobalScope]" + * - Safari Worker === "[object DedicatedWorkerGlobalScope]" + * - IE 11 Worker === "[object WorkerGlobalScope]" + * - IE Edge Worker === "[object WorkerGlobalScope]" + */if(obj===globalObject){return 'global';}/* ! Speed optimisation + * Pre: + * array literal x 2,888,352 ops/sec ±0.67% (82 runs sampled) + * Post: + * array literal x 22,479,650 ops/sec ±0.96% (81 runs sampled) + */if(Array.isArray(obj)&&(symbolToStringTagExists===false||!(Symbol.toStringTag in obj))){return 'Array';}// Not caching existence of `window` and related properties due to potential + // for `window` to be unset before tests in quasi-browser environments. + if(typeof window==='object'&&window!==null){/* ! Spec Conformance + * (https://html.spec.whatwg.org/multipage/browsers.html#location) + * WhatWG HTML$7.7.3 - The `Location` interface + * Test: `Object.prototype.toString.call(window.location)`` + * - IE <=11 === "[object Object]" + * - IE Edge <=13 === "[object Object]" + */if(typeof window.location==='object'&&obj===window.location){return 'Location';}/* ! Spec Conformance + * (https://html.spec.whatwg.org/#document) + * WhatWG HTML$3.1.1 - The `Document` object + * Note: Most browsers currently adher to the W3C DOM Level 2 spec + * (https://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-26809268) + * which suggests that browsers should use HTMLTableCellElement for + * both TD and TH elements. WhatWG separates these. + * WhatWG HTML states: + * > For historical reasons, Window objects must also have a + * > writable, configurable, non-enumerable property named + * > HTMLDocument whose value is the Document interface object. + * Test: `Object.prototype.toString.call(document)`` + * - Chrome === "[object HTMLDocument]" + * - Firefox === "[object HTMLDocument]" + * - Safari === "[object HTMLDocument]" + * - IE <=10 === "[object Document]" + * - IE 11 === "[object HTMLDocument]" + * - IE Edge <=13 === "[object HTMLDocument]" + */if(typeof window.document==='object'&&obj===window.document){return 'Document';}if(typeof window.navigator==='object'){/* ! Spec Conformance + * (https://html.spec.whatwg.org/multipage/webappapis.html#mimetypearray) + * WhatWG HTML$8.6.1.5 - Plugins - Interface MimeTypeArray + * Test: `Object.prototype.toString.call(navigator.mimeTypes)`` + * - IE <=10 === "[object MSMimeTypesCollection]" + */if(typeof window.navigator.mimeTypes==='object'&&obj===window.navigator.mimeTypes){return 'MimeTypeArray';}/* ! Spec Conformance + * (https://html.spec.whatwg.org/multipage/webappapis.html#pluginarray) + * WhatWG HTML$8.6.1.5 - Plugins - Interface PluginArray + * Test: `Object.prototype.toString.call(navigator.plugins)`` + * - IE <=10 === "[object MSPluginsCollection]" + */if(typeof window.navigator.plugins==='object'&&obj===window.navigator.plugins){return 'PluginArray';}}if((typeof window.HTMLElement==='function'||typeof window.HTMLElement==='object')&&obj instanceof window.HTMLElement){/* ! Spec Conformance + * (https://html.spec.whatwg.org/multipage/webappapis.html#pluginarray) + * WhatWG HTML$4.4.4 - The `blockquote` element - Interface `HTMLQuoteElement` + * Test: `Object.prototype.toString.call(document.createElement('blockquote'))`` + * - IE <=10 === "[object HTMLBlockElement]" + */if(obj.tagName==='BLOCKQUOTE'){return 'HTMLQuoteElement';}/* ! Spec Conformance + * (https://html.spec.whatwg.org/#htmltabledatacellelement) + * WhatWG HTML$4.9.9 - The `td` element - Interface `HTMLTableDataCellElement` + * Note: Most browsers currently adher to the W3C DOM Level 2 spec + * (https://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-82915075) + * which suggests that browsers should use HTMLTableCellElement for + * both TD and TH elements. WhatWG separates these. + * Test: Object.prototype.toString.call(document.createElement('td')) + * - Chrome === "[object HTMLTableCellElement]" + * - Firefox === "[object HTMLTableCellElement]" + * - Safari === "[object HTMLTableCellElement]" + */if(obj.tagName==='TD'){return 'HTMLTableDataCellElement';}/* ! Spec Conformance + * (https://html.spec.whatwg.org/#htmltableheadercellelement) + * WhatWG HTML$4.9.9 - The `td` element - Interface `HTMLTableHeaderCellElement` + * Note: Most browsers currently adher to the W3C DOM Level 2 spec + * (https://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-82915075) + * which suggests that browsers should use HTMLTableCellElement for + * both TD and TH elements. WhatWG separates these. + * Test: Object.prototype.toString.call(document.createElement('th')) + * - Chrome === "[object HTMLTableCellElement]" + * - Firefox === "[object HTMLTableCellElement]" + * - Safari === "[object HTMLTableCellElement]" + */if(obj.tagName==='TH'){return 'HTMLTableHeaderCellElement';}}}/* ! Speed optimisation + * Pre: + * Float64Array x 625,644 ops/sec ±1.58% (80 runs sampled) + * Float32Array x 1,279,852 ops/sec ±2.91% (77 runs sampled) + * Uint32Array x 1,178,185 ops/sec ±1.95% (83 runs sampled) + * Uint16Array x 1,008,380 ops/sec ±2.25% (80 runs sampled) + * Uint8Array x 1,128,040 ops/sec ±2.11% (81 runs sampled) + * Int32Array x 1,170,119 ops/sec ±2.88% (80 runs sampled) + * Int16Array x 1,176,348 ops/sec ±5.79% (86 runs sampled) + * Int8Array x 1,058,707 ops/sec ±4.94% (77 runs sampled) + * Uint8ClampedArray x 1,110,633 ops/sec ±4.20% (80 runs sampled) + * Post: + * Float64Array x 7,105,671 ops/sec ±13.47% (64 runs sampled) + * Float32Array x 5,887,912 ops/sec ±1.46% (82 runs sampled) + * Uint32Array x 6,491,661 ops/sec ±1.76% (79 runs sampled) + * Uint16Array x 6,559,795 ops/sec ±1.67% (82 runs sampled) + * Uint8Array x 6,463,966 ops/sec ±1.43% (85 runs sampled) + * Int32Array x 5,641,841 ops/sec ±3.49% (81 runs sampled) + * Int16Array x 6,583,511 ops/sec ±1.98% (80 runs sampled) + * Int8Array x 6,606,078 ops/sec ±1.74% (81 runs sampled) + * Uint8ClampedArray x 6,602,224 ops/sec ±1.77% (83 runs sampled) + */var stringTag=symbolToStringTagExists&&obj[Symbol.toStringTag];if(typeof stringTag==='string'){return stringTag;}var objPrototype=Object.getPrototypeOf(obj);/* ! Speed optimisation + * Pre: + * regex literal x 1,772,385 ops/sec ±1.85% (77 runs sampled) + * regex constructor x 2,143,634 ops/sec ±2.46% (78 runs sampled) + * Post: + * regex literal x 3,928,009 ops/sec ±0.65% (78 runs sampled) + * regex constructor x 3,931,108 ops/sec ±0.58% (84 runs sampled) + */if(objPrototype===RegExp.prototype){return 'RegExp';}/* ! Speed optimisation + * Pre: + * date x 2,130,074 ops/sec ±4.42% (68 runs sampled) + * Post: + * date x 3,953,779 ops/sec ±1.35% (77 runs sampled) + */if(objPrototype===Date.prototype){return 'Date';}/* ! Spec Conformance + * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-promise.prototype-@@tostringtag) + * ES6$25.4.5.4 - Promise.prototype[@@toStringTag] should be "Promise": + * Test: `Object.prototype.toString.call(Promise.resolve())`` + * - Chrome <=47 === "[object Object]" + * - Edge <=20 === "[object Object]" + * - Firefox 29-Latest === "[object Promise]" + * - Safari 7.1-Latest === "[object Promise]" + */if(promiseExists&&objPrototype===Promise.prototype){return 'Promise';}/* ! Speed optimisation + * Pre: + * set x 2,222,186 ops/sec ±1.31% (82 runs sampled) + * Post: + * set x 4,545,879 ops/sec ±1.13% (83 runs sampled) + */if(setExists&&objPrototype===Set.prototype){return 'Set';}/* ! Speed optimisation + * Pre: + * map x 2,396,842 ops/sec ±1.59% (81 runs sampled) + * Post: + * map x 4,183,945 ops/sec ±6.59% (82 runs sampled) + */if(mapExists&&objPrototype===Map.prototype){return 'Map';}/* ! Speed optimisation + * Pre: + * weakset x 1,323,220 ops/sec ±2.17% (76 runs sampled) + * Post: + * weakset x 4,237,510 ops/sec ±2.01% (77 runs sampled) + */if(weakSetExists&&objPrototype===WeakSet.prototype){return 'WeakSet';}/* ! Speed optimisation + * Pre: + * weakmap x 1,500,260 ops/sec ±2.02% (78 runs sampled) + * Post: + * weakmap x 3,881,384 ops/sec ±1.45% (82 runs sampled) + */if(weakMapExists&&objPrototype===WeakMap.prototype){return 'WeakMap';}/* ! Spec Conformance + * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-dataview.prototype-@@tostringtag) + * ES6$24.2.4.21 - DataView.prototype[@@toStringTag] should be "DataView": + * Test: `Object.prototype.toString.call(new DataView(new ArrayBuffer(1)))`` + * - Edge <=13 === "[object Object]" + */if(dataViewExists&&objPrototype===DataView.prototype){return 'DataView';}/* ! Spec Conformance + * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-%mapiteratorprototype%-@@tostringtag) + * ES6$23.1.5.2.2 - %MapIteratorPrototype%[@@toStringTag] should be "Map Iterator": + * Test: `Object.prototype.toString.call(new Map().entries())`` + * - Edge <=13 === "[object Object]" + */if(mapExists&&objPrototype===mapIteratorPrototype){return 'Map Iterator';}/* ! Spec Conformance + * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-%setiteratorprototype%-@@tostringtag) + * ES6$23.2.5.2.2 - %SetIteratorPrototype%[@@toStringTag] should be "Set Iterator": + * Test: `Object.prototype.toString.call(new Set().entries())`` + * - Edge <=13 === "[object Object]" + */if(setExists&&objPrototype===setIteratorPrototype){return 'Set Iterator';}/* ! Spec Conformance + * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-%arrayiteratorprototype%-@@tostringtag) + * ES6$22.1.5.2.2 - %ArrayIteratorPrototype%[@@toStringTag] should be "Array Iterator": + * Test: `Object.prototype.toString.call([][Symbol.iterator]())`` + * - Edge <=13 === "[object Object]" + */if(arrayIteratorExists&&objPrototype===arrayIteratorPrototype){return 'Array Iterator';}/* ! Spec Conformance + * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-%stringiteratorprototype%-@@tostringtag) + * ES6$21.1.5.2.2 - %StringIteratorPrototype%[@@toStringTag] should be "String Iterator": + * Test: `Object.prototype.toString.call(''[Symbol.iterator]())`` + * - Edge <=13 === "[object Object]" + */if(stringIteratorExists&&objPrototype===stringIteratorPrototype){return 'String Iterator';}/* ! Speed optimisation + * Pre: + * object from null x 2,424,320 ops/sec ±1.67% (76 runs sampled) + * Post: + * object from null x 5,838,000 ops/sec ±0.99% (84 runs sampled) + */if(objPrototype===null){return 'Object';}return Object.prototype.toString.call(obj).slice(toStringLeftSliceLength,toStringRightSliceLength);}return typeDetect;});});var typeOf=function typeOf(value){return typeDetect(value).toLowerCase();};function valueToString(value){if(value&&value.toString){/* eslint-disable-next-line local-rules/no-prototype-methods */return value.toString();}return String(value);}var valueToString_1=valueToString;var lib={calledInOrder:calledInOrder,className:className,deprecated:deprecated,every:every$1,functionName:functionName,orderByFirstCall:orderByFirstCall,prototypes:prototypes,typeOf:typeOf,valueToString:valueToString_1};var arrayProto=lib.prototypes.array;var hasOwnProperty=lib.prototypes.object.hasOwnProperty;var join=arrayProto.join;var push=arrayProto.push;var slice$1=arrayProto.slice;// Adapted from https://developer.mozilla.org/en/docs/ECMAScript_DontEnum_attribute#JScript_DontEnum_Bug + var hasDontEnumBug=function(){var obj={constructor:function(){return "0";},toString:function(){return "1";},valueOf:function(){return "2";},toLocaleString:function(){return "3";},prototype:function(){return "4";},isPrototypeOf:function(){return "5";},propertyIsEnumerable:function(){return "6";},hasOwnProperty:function(){return "7";},length:function(){return "8";},unique:function(){return "9";}};var result=[];for(var prop in obj){if(hasOwnProperty(obj,prop)){push(result,obj[prop]());}}return join(result,"")!=="0123456789";}();function extendCommon(target,sources,doCopy){var source,i,prop;for(i=0;i=0){return args[callArgAt];}var argumentList;if(callArgAt===useLeftMostCallback){argumentList=args;}if(callArgAt===useRightMostCallback){argumentList=reverse(slice$2(args));}var callArgProp=behavior.callArgProp;for(var i=0,l=argumentList.length;i0){msg+=" Received ["+join$1(args,", ")+"]";}return msg;}return "argument at index "+behavior.callArgAt+" is not a function: "+func;}function ensureArgs(name,behavior,args){// map function name to internal property + // callsArg => callArgAt + var property=name.replace(/sArg/,"ArgAt");var index=behavior[property];if(index>=args.length){throw new TypeError(name+" failed: "+(index+1)+" arguments required but only "+args.length+" present");}}function callCallback(behavior,args){if(typeof behavior.callArgAt==="number"){ensureArgs("callsArg",behavior,args);var func=getCallback(behavior,args);if(typeof func!=="function"){throw new TypeError(getCallbackError(behavior,func,args));}if(behavior.callbackAsync){nextTick$1(function(){func.apply(behavior.callbackContext,behavior.callbackArguments);});}else {return func.apply(behavior.callbackContext,behavior.callbackArguments);}}return undefined;}var proto={create:function create(stub){var behavior=extend({},proto);delete behavior.create;delete behavior.addBehavior;delete behavior.createBehavior;behavior.stub=stub;if(stub.defaultBehavior&&stub.defaultBehavior.promiseLibrary){behavior.promiseLibrary=stub.defaultBehavior.promiseLibrary;}return behavior;},isPresent:function isPresent(){return typeof this.callArgAt==="number"||this.exception||this.exceptionCreator||typeof this.returnArgAt==="number"||this.returnThis||typeof this.resolveArgAt==="number"||this.resolveThis||typeof this.throwArgAt==="number"||this.fakeFn||this.returnValueDefined;},/*eslint complexity: ["error", 20]*/invoke:function invoke(context,args){/* + * callCallback (conditionally) calls ensureArgs + * + * Note: callCallback intentionally happens before + * everything else and cannot be moved lower + */var returnValue=callCallback(this,args);if(this.exception){throw this.exception;}else if(this.exceptionCreator){this.exception=this.exceptionCreator();this.exceptionCreator=undefined;throw this.exception;}else if(typeof this.returnArgAt==="number"){ensureArgs("returnsArg",this,args);return args[this.returnArgAt];}else if(this.returnThis){return context;}else if(typeof this.throwArgAt==="number"){ensureArgs("throwsArg",this,args);throw args[this.throwArgAt];}else if(this.fakeFn){return this.fakeFn.apply(context,args);}else if(typeof this.resolveArgAt==="number"){ensureArgs("resolvesArg",this,args);return (this.promiseLibrary||Promise).resolve(args[this.resolveArgAt]);}else if(this.resolveThis){return (this.promiseLibrary||Promise).resolve(context);}else if(this.resolve){return (this.promiseLibrary||Promise).resolve(this.returnValue);}else if(this.reject){return (this.promiseLibrary||Promise).reject(this.returnValue);}else if(this.callsThrough){var wrappedMethod=this.effectiveWrappedMethod();return wrappedMethod.apply(context,args);}else if(this.callsThroughWithNew){// Get the original method (assumed to be a constructor in this case) + var WrappedClass=this.effectiveWrappedMethod();// Turn the arguments object into a normal array + var argsArray=slice$2(args);// Call the constructor + var F=WrappedClass.bind.apply(WrappedClass,concat([null],argsArray));return new F();}else if(typeof this.returnValue!=="undefined"){return this.returnValue;}else if(typeof this.callArgAt==="number"){return returnValue;}return this.returnValue;},effectiveWrappedMethod:function effectiveWrappedMethod(){for(var stubb=this.stub;stubb;stubb=stubb.parent){if(stubb.wrappedMethod){return stubb.wrappedMethod;}}throw new Error("Unable to find wrapped method");},onCall:function onCall(index){return this.stub.onCall(index);},onFirstCall:function onFirstCall(){return this.stub.onFirstCall();},onSecondCall:function onSecondCall(){return this.stub.onSecondCall();},onThirdCall:function onThirdCall(){return this.stub.onThirdCall();},withArgs:function withArgs(/* arguments */){throw new Error('Defining a stub by invoking "stub.onCall(...).withArgs(...)" '+'is not supported. Use "stub.withArgs(...).onCall(...)" '+"to define sequential behavior for calls with certain arguments.");}};function createBehavior(behaviorMethod){return function(){this.defaultBehavior=this.defaultBehavior||proto.create(this);this.defaultBehavior[behaviorMethod].apply(this.defaultBehavior,arguments);return this;};}function addBehavior(stub,name,fn){proto[name]=function(){fn.apply(this,concat([this],slice$2(arguments)));return this.stub||this;};stub[name]=createBehavior(name);}proto.addBehavior=addBehavior;proto.createBehavior=createBehavior;var asyncBehaviors=exportAsyncBehaviors(proto);var behavior=extend.nonEnum({},proto,asyncBehaviors);var forEach=lib.prototypes.array.forEach;function walkInternal(obj,iterator,context,originalObj,seen){var proto,prop;if(typeof Object.getOwnPropertyNames!=="function"){// We explicitly want to enumerate through all of the prototype's properties + // in this case, therefore we deliberately leave out an own property check. + /* eslint-disable-next-line guard-for-in */for(prop in obj){iterator.call(context,obj[prop],prop,obj);}return;}forEach(Object.getOwnPropertyNames(obj),function(k){if(seen[k]!==true){seen[k]=true;var target=typeof Object.getOwnPropertyDescriptor(obj,k).get==="function"?originalObj:obj;iterator.call(context,k,target);}});proto=Object.getPrototypeOf(obj);if(proto){walkInternal(proto,iterator,context,originalObj,seen);}}/* Walks the prototype chain of an object and iterates over every own property + * name encountered. The iterator is called in the same fashion that Array.prototype.forEach + * works, where it is passed the value, key, and own object as the 1st, 2nd, and 3rd positional + * argument, respectively. In cases where Object.getOwnPropertyNames is not available, walk will + * default to using a simple for..in loop. + * + * obj - The object to walk the prototype chain for. + * iterator - The function to be called on each pass of the walk. + * context - (Optional) When given, the iterator will be called with this object as the receiver. + */var walk=function walk(obj,iterator,context){return walkInternal(obj,iterator,context,obj,{});};var getPropertyDescriptor=function getPropertyDescriptor(object,property){var proto=object;var descriptor;while(proto&&!(descriptor=Object.getOwnPropertyDescriptor(proto,property))){proto=Object.getPrototypeOf(proto);}return descriptor;};var hasOwnProperty$1=lib.prototypes.object.hasOwnProperty;var push$1=lib.prototypes.array.push;function collectMethod(methods,object,prop,propOwner){if(typeof getPropertyDescriptor(propOwner,prop).value==="function"&&hasOwnProperty$1(object,prop)){push$1(methods,object[prop]);}}// This function returns an array of all the own methods on the passed object + function collectOwnMethods(object){var methods=[];walk(object,collectMethod.bind(null,methods,object));return methods;}var collectOwnMethods_1=collectOwnMethods;/** + * Verify if an object is a ECMAScript Module + * + * As the exports from a module is immutable we cannot alter the exports + * using spies or stubs. Let the consumer know this to avoid bug reports + * on weird error messages. + * + * @param {Object} object The object to examine + * + * @returns {Boolean} true when the object is a module + */var isEsModule=function(object){return object&&typeof Symbol!=="undefined"&&object[Symbol.toStringTag]==="Module"&&Object.isSealed(object);};function isPropertyConfigurable(obj,propName){var propertyDescriptor=getPropertyDescriptor(obj,propName);return propertyDescriptor?propertyDescriptor.configurable:true;}var isPropertyConfigurable_1=isPropertyConfigurable;function isNonExistentOwnProperty(object,property){return object&&typeof property!=="undefined"&&!(property in object);}var isNonExistentOwnProperty_1=isNonExistentOwnProperty;function isNaN$1(value){// Unlike global isNaN, this avoids type coercion + // typeof check avoids IE host object issues, hat tip to + // lodash + var val=value;// JsLint thinks value !== value is "weird" + return typeof value==="number"&&value!==val;}var isNan=isNaN$1;/** + * @name samsam.isNegZero + * @param Object value + * + * Returns ``true`` if ``value`` is ``-0``. + */function isNegZero(value){return value===0&&1/value===-Infinity;}var isNegZero_1=isNegZero;/** + * @name samsam.equal + * @param Object obj1 + * @param Object obj2 + * + * Returns ``true`` if two objects are strictly equal. Compared to + * ``===`` there are two exceptions: + * + * - NaN is considered equal to NaN + * - -0 and +0 are not considered equal + */function identical(obj1,obj2){if(obj1===obj2||isNan(obj1)&&isNan(obj2)){return obj1!==0||isNegZero_1(obj1)===isNegZero_1(obj2);}return false;}var identical_1=identical;var toString=lib.prototypes.object.toString;function getClass(value){// Returns the internal [[Class]] by calling Object.prototype.toString + // with the provided value as this. Return value is a string, naming the + // internal class, e.g. "Array" + return toString(value).split(/[ \]]/)[1];}var getClass_1=getClass;/** + * @name samsam.isArguments + * @param Object object + * + * Returns ``true`` if ``object`` is an ``arguments`` object, + * ``false`` otherwise. + */function isArguments(object){if(getClass_1(object)==="Arguments"){return true;}if(typeof object!=="object"||typeof object.length!=="number"||getClass_1(object)==="Array"){return false;}if(typeof object.callee==="function"){return true;}try{object[object.length]=6;delete object[object.length];}catch(e){return true;}return false;}var isArguments_1=isArguments;var div=typeof document!=="undefined"&&document.createElement("div");/** + * @name samsam.isElement + * @param Object object + * + * Returns ``true`` if ``object`` is a DOM element node. Unlike + * Underscore.js/lodash, this function will return ``false`` if ``object`` + * is an *element-like* object, i.e. a regular object with a ``nodeType`` + * property that holds the value ``1``. + */function isElement(object){if(!object||object.nodeType!==1||!div){return false;}try{object.appendChild(div);object.removeChild(div);}catch(e){return false;}return true;}var isElement_1=isElement;function isSet(val){return typeof Set!=="undefined"&&val instanceof Set||false;}var isSet_1=isSet;function isDate(value){return value instanceof Date;}var isDate_1=isDate;function isMap(value){return typeof Map!=="undefined"&&value instanceof Map;}var isMap_1=isMap;// Returns true when the value is a regular Object and not a specialized Object + // + // This helps speeding up deepEqual cyclic checks + // The premise is that only Objects are stored in the visited array. + // So if this function returns false, we don't have to do the + // expensive operation of searching for the value in the the array of already + // visited objects + function isObject(value){return typeof value==="object"&&value!==null&&// none of these are collection objects, so we can return false + !(value instanceof Boolean)&&!(value instanceof Date)&&!(value instanceof Error)&&!(value instanceof Number)&&!(value instanceof RegExp)&&!(value instanceof String);}var isObject_1=isObject;function isSubset(s1,s2,compare){var allContained=true;s1.forEach(function(v1){var includes=false;s2.forEach(function(v2){if(compare(v2,v1)){includes=true;}});allContained=allContained&&includes;});return allContained;}var isSubset_1=isSubset;var valueToString$2=lib.valueToString;var className$1=lib.className;var arrayProto$3=lib.prototypes.array;var objectProto=lib.prototypes.object;var every$2=arrayProto$3.every;var getTime=Date.prototype.getTime;var hasOwnProperty$2=objectProto.hasOwnProperty;var indexOf=arrayProto$3.indexOf;var keys=Object.keys;var getOwnPropertySymbols=Object.getOwnPropertySymbols;/** + * @name samsam.deepEqual + * @param Object actual + * @param Object expectation + * + * Deep equal comparison. Two values are "deep equal" if: + * + * - They are equal, according to samsam.identical + * - They are both date objects representing the same time + * - They are both arrays containing elements that are all deepEqual + * - They are objects with the same set of properties, and each property + * in ``actual`` is deepEqual to the corresponding property in ``expectation`` + * + * Supports cyclic objects. + */function deepEqualCyclic(actual,expectation,match){// used for cyclic comparison + // contain already visited objects + var actualObjects=[];var expectationObjects=[];// contain pathes (position in the object structure) + // of the already visited objects + // indexes same as in objects arrays + var actualPaths=[];var expectationPaths=[];// contains combinations of already compared objects + // in the manner: { "$1['ref']$2['ref']": true } + var compared={};// does the recursion for the deep equal check + return function deepEqual(actualObj,expectationObj,actualPath,expectationPath){// If both are matchers they must be the same instance in order to be + // considered equal If we didn't do that we would end up running one + // matcher against the other + if(match&&match.isMatcher(expectationObj)){if(match.isMatcher(actualObj)){return actualObj===expectationObj;}return expectationObj.test(actualObj);}var actualType=typeof actualObj;var expectationType=typeof expectationObj;// == null also matches undefined + if(actualObj===expectationObj||isNan(actualObj)||isNan(expectationObj)||actualObj==null||expectationObj==null||actualType!=="object"||expectationType!=="object"){return identical_1(actualObj,expectationObj);}// Elements are only equal if identical(expected, actual) + if(isElement_1(actualObj)||isElement_1(expectationObj)){return false;}var isActualDate=isDate_1(actualObj);var isExpectationDate=isDate_1(expectationObj);if(isActualDate||isExpectationDate){if(!isActualDate||!isExpectationDate||getTime.call(actualObj)!==getTime.call(expectationObj)){return false;}}if(actualObj instanceof RegExp&&expectationObj instanceof RegExp){if(valueToString$2(actualObj)!==valueToString$2(expectationObj)){return false;}}if(actualObj instanceof Error&&expectationObj instanceof Error){return actualObj===expectationObj;}var actualClass=getClass_1(actualObj);var expectationClass=getClass_1(expectationObj);var actualKeys=keys(actualObj);var expectationKeys=keys(expectationObj);var actualName=className$1(actualObj);var expectationName=className$1(expectationObj);var expectationSymbols=typeof getOwnPropertySymbols==="function"?getOwnPropertySymbols(expectationObj):[];var expectationKeysAndSymbols=expectationKeys.concat(expectationSymbols);if(isArguments_1(actualObj)||isArguments_1(expectationObj)){if(actualObj.length!==expectationObj.length){return false;}}else {if(actualType!==expectationType||actualClass!==expectationClass||actualKeys.length!==expectationKeys.length||actualName&&expectationName&&actualName!==expectationName){return false;}}if(isSet_1(actualObj)||isSet_1(expectationObj)){if(!isSet_1(actualObj)||!isSet_1(expectationObj)||actualObj.size!==expectationObj.size){return false;}return isSubset_1(actualObj,expectationObj,deepEqual);}if(isMap_1(actualObj)||isMap_1(expectationObj)){if(!isMap_1(actualObj)||!isMap_1(expectationObj)||actualObj.size!==expectationObj.size){return false;}var mapsDeeplyEqual=true;actualObj.forEach(function(value,key){mapsDeeplyEqual=mapsDeeplyEqual&&deepEqualCyclic(value,expectationObj.get(key));});return mapsDeeplyEqual;}return every$2(expectationKeysAndSymbols,function(key){if(!hasOwnProperty$2(actualObj,key)){return false;}var actualValue=actualObj[key];var expectationValue=expectationObj[key];var actualObject=isObject_1(actualValue);var expectationObject=isObject_1(expectationValue);// determines, if the objects were already visited + // (it's faster to check for isObject first, than to + // get -1 from getIndex for non objects) + var actualIndex=actualObject?indexOf(actualObjects,actualValue):-1;var expectationIndex=expectationObject?indexOf(expectationObjects,expectationValue):-1;// determines the new paths of the objects + // - for non cyclic objects the current path will be extended + // by current property name + // - for cyclic objects the stored path is taken + var newActualPath=actualIndex!==-1?actualPaths[actualIndex]:actualPath+"["+JSON.stringify(key)+"]";var newExpectationPath=expectationIndex!==-1?expectationPaths[expectationIndex]:expectationPath+"["+JSON.stringify(key)+"]";var combinedPath=newActualPath+newExpectationPath;// stop recursion if current objects are already compared + if(compared[combinedPath]){return true;}// remember the current objects and their paths + if(actualIndex===-1&&actualObject){actualObjects.push(actualValue);actualPaths.push(newActualPath);}if(expectationIndex===-1&&expectationObject){expectationObjects.push(expectationValue);expectationPaths.push(newExpectationPath);}// remember that the current objects are already compared + if(actualObject&&expectationObject){compared[combinedPath]=true;}// End of cyclic logic + // neither actualValue nor expectationValue is a cycle + // continue with next level + return deepEqual(actualValue,expectationValue,newActualPath,newExpectationPath);});}(actual,expectation,"$1","$2");}deepEqualCyclic.use=function(match){return function(a,b){return deepEqualCyclic(a,b,match);};};var deepEqual=deepEqualCyclic;var lodash=createCommonjsModule(function(module,exports){(function(){/** Used as a safe reference for `undefined` in pre-ES5 environments. */var undefined$1;/** Used as the semantic version number. */var VERSION='4.17.15';/** Used as the size to enable large array optimizations. */var LARGE_ARRAY_SIZE=200;/** Error message constants. */var CORE_ERROR_TEXT='Unsupported core-js use. Try https://npms.io/search?q=ponyfill.',FUNC_ERROR_TEXT='Expected a function';/** Used to stand-in for `undefined` hash values. */var HASH_UNDEFINED='__lodash_hash_undefined__';/** Used as the maximum memoize cache size. */var MAX_MEMOIZE_SIZE=500;/** Used as the internal argument placeholder. */var PLACEHOLDER='__lodash_placeholder__';/** Used to compose bitmasks for cloning. */var CLONE_DEEP_FLAG=1,CLONE_FLAT_FLAG=2,CLONE_SYMBOLS_FLAG=4;/** Used to compose bitmasks for value comparisons. */var COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;/** Used to compose bitmasks for function metadata. */var WRAP_BIND_FLAG=1,WRAP_BIND_KEY_FLAG=2,WRAP_CURRY_BOUND_FLAG=4,WRAP_CURRY_FLAG=8,WRAP_CURRY_RIGHT_FLAG=16,WRAP_PARTIAL_FLAG=32,WRAP_PARTIAL_RIGHT_FLAG=64,WRAP_ARY_FLAG=128,WRAP_REARG_FLAG=256,WRAP_FLIP_FLAG=512;/** Used as default options for `_.truncate`. */var DEFAULT_TRUNC_LENGTH=30,DEFAULT_TRUNC_OMISSION='...';/** Used to detect hot functions by number of calls within a span of milliseconds. */var HOT_COUNT=800,HOT_SPAN=16;/** Used to indicate the type of lazy iteratees. */var LAZY_FILTER_FLAG=1,LAZY_MAP_FLAG=2,LAZY_WHILE_FLAG=3;/** Used as references for various `Number` constants. */var INFINITY=1/0,MAX_SAFE_INTEGER=9007199254740991,MAX_INTEGER=1.7976931348623157e+308,NAN=0/0;/** Used as references for the maximum length and index of an array. */var MAX_ARRAY_LENGTH=4294967295,MAX_ARRAY_INDEX=MAX_ARRAY_LENGTH-1,HALF_MAX_ARRAY_LENGTH=MAX_ARRAY_LENGTH>>>1;/** Used to associate wrap methods with their bit flags. */var wrapFlags=[['ary',WRAP_ARY_FLAG],['bind',WRAP_BIND_FLAG],['bindKey',WRAP_BIND_KEY_FLAG],['curry',WRAP_CURRY_FLAG],['curryRight',WRAP_CURRY_RIGHT_FLAG],['flip',WRAP_FLIP_FLAG],['partial',WRAP_PARTIAL_FLAG],['partialRight',WRAP_PARTIAL_RIGHT_FLAG],['rearg',WRAP_REARG_FLAG]];/** `Object#toString` result references. */var argsTag='[object Arguments]',arrayTag='[object Array]',asyncTag='[object AsyncFunction]',boolTag='[object Boolean]',dateTag='[object Date]',domExcTag='[object DOMException]',errorTag='[object Error]',funcTag='[object Function]',genTag='[object GeneratorFunction]',mapTag='[object Map]',numberTag='[object Number]',nullTag='[object Null]',objectTag='[object Object]',promiseTag='[object Promise]',proxyTag='[object Proxy]',regexpTag='[object RegExp]',setTag='[object Set]',stringTag='[object String]',symbolTag='[object Symbol]',undefinedTag='[object Undefined]',weakMapTag='[object WeakMap]',weakSetTag='[object WeakSet]';var arrayBufferTag='[object ArrayBuffer]',dataViewTag='[object DataView]',float32Tag='[object Float32Array]',float64Tag='[object Float64Array]',int8Tag='[object Int8Array]',int16Tag='[object Int16Array]',int32Tag='[object Int32Array]',uint8Tag='[object Uint8Array]',uint8ClampedTag='[object Uint8ClampedArray]',uint16Tag='[object Uint16Array]',uint32Tag='[object Uint32Array]';/** Used to match empty string literals in compiled template source. */var reEmptyStringLeading=/\b__p \+= '';/g,reEmptyStringMiddle=/\b(__p \+=) '' \+/g,reEmptyStringTrailing=/(__e\(.*?\)|\b__t\)) \+\n'';/g;/** Used to match HTML entities and HTML characters. */var reEscapedHtml=/&(?:amp|lt|gt|quot|#39);/g,reUnescapedHtml=/[&<>"']/g,reHasEscapedHtml=RegExp(reEscapedHtml.source),reHasUnescapedHtml=RegExp(reUnescapedHtml.source);/** Used to match template delimiters. */var reEscape=/<%-([\s\S]+?)%>/g,reEvaluate=/<%([\s\S]+?)%>/g,reInterpolate=/<%=([\s\S]+?)%>/g;/** Used to match property names within property paths. */var reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;/** + * Used to match `RegExp` + * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). + */var reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reHasRegExpChar=RegExp(reRegExpChar.source);/** Used to match leading and trailing whitespace. */var reTrim=/^\s+|\s+$/g,reTrimStart=/^\s+/,reTrimEnd=/\s+$/;/** Used to match wrap detail comments. */var reWrapComment=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,reWrapDetails=/\{\n\/\* \[wrapped with (.+)\] \*/,reSplitDetails=/,? & /;/** Used to match words composed of alphanumeric characters. */var reAsciiWord=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;/** Used to match backslashes in property paths. */var reEscapeChar=/\\(\\)?/g;/** + * Used to match + * [ES template delimiters](http://ecma-international.org/ecma-262/7.0/#sec-template-literal-lexical-components). + */var reEsTemplate=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;/** Used to match `RegExp` flags from their coerced string values. */var reFlags=/\w*$/;/** Used to detect bad signed hexadecimal string values. */var reIsBadHex=/^[-+]0x[0-9a-f]+$/i;/** Used to detect binary string values. */var reIsBinary=/^0b[01]+$/i;/** Used to detect host constructors (Safari). */var reIsHostCtor=/^\[object .+?Constructor\]$/;/** Used to detect octal string values. */var reIsOctal=/^0o[0-7]+$/i;/** Used to detect unsigned integer values. */var reIsUint=/^(?:0|[1-9]\d*)$/;/** Used to match Latin Unicode letters (excluding mathematical operators). */var reLatin=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;/** Used to ensure capturing order of template delimiters. */var reNoMatch=/($^)/;/** Used to match unescaped characters in compiled string literals. */var reUnescapedString=/['\n\r\u2028\u2029\\]/g;/** Used to compose unicode character classes. */var rsAstralRange='\\ud800-\\udfff',rsComboMarksRange='\\u0300-\\u036f',reComboHalfMarksRange='\\ufe20-\\ufe2f',rsComboSymbolsRange='\\u20d0-\\u20ff',rsComboRange=rsComboMarksRange+reComboHalfMarksRange+rsComboSymbolsRange,rsDingbatRange='\\u2700-\\u27bf',rsLowerRange='a-z\\xdf-\\xf6\\xf8-\\xff',rsMathOpRange='\\xac\\xb1\\xd7\\xf7',rsNonCharRange='\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf',rsPunctuationRange='\\u2000-\\u206f',rsSpaceRange=' \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000',rsUpperRange='A-Z\\xc0-\\xd6\\xd8-\\xde',rsVarRange='\\ufe0e\\ufe0f',rsBreakRange=rsMathOpRange+rsNonCharRange+rsPunctuationRange+rsSpaceRange;/** Used to compose unicode capture groups. */var rsApos="['\u2019]",rsAstral='['+rsAstralRange+']',rsBreak='['+rsBreakRange+']',rsCombo='['+rsComboRange+']',rsDigits='\\d+',rsDingbat='['+rsDingbatRange+']',rsLower='['+rsLowerRange+']',rsMisc='[^'+rsAstralRange+rsBreakRange+rsDigits+rsDingbatRange+rsLowerRange+rsUpperRange+']',rsFitz='\\ud83c[\\udffb-\\udfff]',rsModifier='(?:'+rsCombo+'|'+rsFitz+')',rsNonAstral='[^'+rsAstralRange+']',rsRegional='(?:\\ud83c[\\udde6-\\uddff]){2}',rsSurrPair='[\\ud800-\\udbff][\\udc00-\\udfff]',rsUpper='['+rsUpperRange+']',rsZWJ='\\u200d';/** Used to compose unicode regexes. */var rsMiscLower='(?:'+rsLower+'|'+rsMisc+')',rsMiscUpper='(?:'+rsUpper+'|'+rsMisc+')',rsOptContrLower='(?:'+rsApos+'(?:d|ll|m|re|s|t|ve))?',rsOptContrUpper='(?:'+rsApos+'(?:D|LL|M|RE|S|T|VE))?',reOptMod=rsModifier+'?',rsOptVar='['+rsVarRange+']?',rsOptJoin='(?:'+rsZWJ+'(?:'+[rsNonAstral,rsRegional,rsSurrPair].join('|')+')'+rsOptVar+reOptMod+')*',rsOrdLower='\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])',rsOrdUpper='\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])',rsSeq=rsOptVar+reOptMod+rsOptJoin,rsEmoji='(?:'+[rsDingbat,rsRegional,rsSurrPair].join('|')+')'+rsSeq,rsSymbol='(?:'+[rsNonAstral+rsCombo+'?',rsCombo,rsRegional,rsSurrPair,rsAstral].join('|')+')';/** Used to match apostrophes. */var reApos=RegExp(rsApos,'g');/** + * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and + * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols). + */var reComboMark=RegExp(rsCombo,'g');/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */var reUnicode=RegExp(rsFitz+'(?='+rsFitz+')|'+rsSymbol+rsSeq,'g');/** Used to match complex or compound words. */var reUnicodeWord=RegExp([rsUpper+'?'+rsLower+'+'+rsOptContrLower+'(?='+[rsBreak,rsUpper,'$'].join('|')+')',rsMiscUpper+'+'+rsOptContrUpper+'(?='+[rsBreak,rsUpper+rsMiscLower,'$'].join('|')+')',rsUpper+'?'+rsMiscLower+'+'+rsOptContrLower,rsUpper+'+'+rsOptContrUpper,rsOrdUpper,rsOrdLower,rsDigits,rsEmoji].join('|'),'g');/** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */var reHasUnicode=RegExp('['+rsZWJ+rsAstralRange+rsComboRange+rsVarRange+']');/** Used to detect strings that need a more robust regexp to match words. */var reHasUnicodeWord=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;/** Used to assign default `context` object properties. */var contextProps=['Array','Buffer','DataView','Date','Error','Float32Array','Float64Array','Function','Int8Array','Int16Array','Int32Array','Map','Math','Object','Promise','RegExp','Set','String','Symbol','TypeError','Uint8Array','Uint8ClampedArray','Uint16Array','Uint32Array','WeakMap','_','clearTimeout','isFinite','parseInt','setTimeout'];/** Used to make template sourceURLs easier to identify. */var templateCounter=-1;/** Used to identify `toStringTag` values of typed arrays. */var typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=true;typedArrayTags[argsTag]=typedArrayTags[arrayTag]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dataViewTag]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag]=typedArrayTags[numberTag]=typedArrayTags[objectTag]=typedArrayTags[regexpTag]=typedArrayTags[setTag]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag]=false;/** Used to identify `toStringTag` values supported by `_.clone`. */var cloneableTags={};cloneableTags[argsTag]=cloneableTags[arrayTag]=cloneableTags[arrayBufferTag]=cloneableTags[dataViewTag]=cloneableTags[boolTag]=cloneableTags[dateTag]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[mapTag]=cloneableTags[numberTag]=cloneableTags[objectTag]=cloneableTags[regexpTag]=cloneableTags[setTag]=cloneableTags[stringTag]=cloneableTags[symbolTag]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=true;cloneableTags[errorTag]=cloneableTags[funcTag]=cloneableTags[weakMapTag]=false;/** Used to map Latin Unicode letters to basic Latin letters. */var deburredLetters={// Latin-1 Supplement block. + '\xc0':'A','\xc1':'A','\xc2':'A','\xc3':'A','\xc4':'A','\xc5':'A','\xe0':'a','\xe1':'a','\xe2':'a','\xe3':'a','\xe4':'a','\xe5':'a','\xc7':'C','\xe7':'c','\xd0':'D','\xf0':'d','\xc8':'E','\xc9':'E','\xca':'E','\xcb':'E','\xe8':'e','\xe9':'e','\xea':'e','\xeb':'e','\xcc':'I','\xcd':'I','\xce':'I','\xcf':'I','\xec':'i','\xed':'i','\xee':'i','\xef':'i','\xd1':'N','\xf1':'n','\xd2':'O','\xd3':'O','\xd4':'O','\xd5':'O','\xd6':'O','\xd8':'O','\xf2':'o','\xf3':'o','\xf4':'o','\xf5':'o','\xf6':'o','\xf8':'o','\xd9':'U','\xda':'U','\xdb':'U','\xdc':'U','\xf9':'u','\xfa':'u','\xfb':'u','\xfc':'u','\xdd':'Y','\xfd':'y','\xff':'y','\xc6':'Ae','\xe6':'ae','\xde':'Th','\xfe':'th','\xdf':'ss',// Latin Extended-A block. + '\u0100':'A','\u0102':'A','\u0104':'A','\u0101':'a','\u0103':'a','\u0105':'a','\u0106':'C','\u0108':'C','\u010a':'C','\u010c':'C','\u0107':'c','\u0109':'c','\u010b':'c','\u010d':'c','\u010e':'D','\u0110':'D','\u010f':'d','\u0111':'d','\u0112':'E','\u0114':'E','\u0116':'E','\u0118':'E','\u011a':'E','\u0113':'e','\u0115':'e','\u0117':'e','\u0119':'e','\u011b':'e','\u011c':'G','\u011e':'G','\u0120':'G','\u0122':'G','\u011d':'g','\u011f':'g','\u0121':'g','\u0123':'g','\u0124':'H','\u0126':'H','\u0125':'h','\u0127':'h','\u0128':'I','\u012a':'I','\u012c':'I','\u012e':'I','\u0130':'I','\u0129':'i','\u012b':'i','\u012d':'i','\u012f':'i','\u0131':'i','\u0134':'J','\u0135':'j','\u0136':'K','\u0137':'k','\u0138':'k','\u0139':'L','\u013b':'L','\u013d':'L','\u013f':'L','\u0141':'L','\u013a':'l','\u013c':'l','\u013e':'l','\u0140':'l','\u0142':'l','\u0143':'N','\u0145':'N','\u0147':'N','\u014a':'N','\u0144':'n','\u0146':'n','\u0148':'n','\u014b':'n','\u014c':'O','\u014e':'O','\u0150':'O','\u014d':'o','\u014f':'o','\u0151':'o','\u0154':'R','\u0156':'R','\u0158':'R','\u0155':'r','\u0157':'r','\u0159':'r','\u015a':'S','\u015c':'S','\u015e':'S','\u0160':'S','\u015b':'s','\u015d':'s','\u015f':'s','\u0161':'s','\u0162':'T','\u0164':'T','\u0166':'T','\u0163':'t','\u0165':'t','\u0167':'t','\u0168':'U','\u016a':'U','\u016c':'U','\u016e':'U','\u0170':'U','\u0172':'U','\u0169':'u','\u016b':'u','\u016d':'u','\u016f':'u','\u0171':'u','\u0173':'u','\u0174':'W','\u0175':'w','\u0176':'Y','\u0177':'y','\u0178':'Y','\u0179':'Z','\u017b':'Z','\u017d':'Z','\u017a':'z','\u017c':'z','\u017e':'z','\u0132':'IJ','\u0133':'ij','\u0152':'Oe','\u0153':'oe','\u0149':"'n",'\u017f':'s'};/** Used to map characters to HTML entities. */var htmlEscapes={'&':'&','<':'<','>':'>','"':'"',"'":'''};/** Used to map HTML entities to characters. */var htmlUnescapes={'&':'&','<':'<','>':'>','"':'"',''':"'"};/** Used to escape characters for inclusion in compiled string literals. */var stringEscapes={'\\':'\\',"'":"'",'\n':'n','\r':'r','\u2028':'u2028','\u2029':'u2029'};/** Built-in method references without a dependency on `root`. */var freeParseFloat=parseFloat,freeParseInt=parseInt;/** Detect free variable `global` from Node.js. */var freeGlobal=typeof commonjsGlobal=='object'&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal;/** Detect free variable `self`. */var freeSelf=typeof self=='object'&&self&&self.Object===Object&&self;/** Used as a reference to the global object. */var root=freeGlobal||freeSelf||Function('return this')();/** Detect free variable `exports`. */var freeExports=exports&&!exports.nodeType&&exports;/** Detect free variable `module`. */var freeModule=freeExports&&'object'=='object'&&module&&!module.nodeType&&module;/** Detect the popular CommonJS extension `module.exports`. */var moduleExports=freeModule&&freeModule.exports===freeExports;/** Detect free variable `process` from Node.js. */var freeProcess=moduleExports&&freeGlobal.process;/** Used to access faster Node.js helpers. */var nodeUtil=function(){try{// Use `util.types` for Node.js 10+. + var types=freeModule&&freeModule.require&&freeModule.require('util').types;if(types){return types;}// Legacy `process.binding('util')` for Node.js < 10. + return freeProcess&&freeProcess.binding&&freeProcess.binding('util');}catch(e){}}();/* Node.js helper references. */var nodeIsArrayBuffer=nodeUtil&&nodeUtil.isArrayBuffer,nodeIsDate=nodeUtil&&nodeUtil.isDate,nodeIsMap=nodeUtil&&nodeUtil.isMap,nodeIsRegExp=nodeUtil&&nodeUtil.isRegExp,nodeIsSet=nodeUtil&&nodeUtil.isSet,nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray;/*--------------------------------------------------------------------------*/ /** + * A faster alternative to `Function#apply`, this function invokes `func` + * with the `this` binding of `thisArg` and the arguments of `args`. + * + * @private + * @param {Function} func The function to invoke. + * @param {*} thisArg The `this` binding of `func`. + * @param {Array} args The arguments to invoke `func` with. + * @returns {*} Returns the result of `func`. + */function apply(func,thisArg,args){switch(args.length){case 0:return func.call(thisArg);case 1:return func.call(thisArg,args[0]);case 2:return func.call(thisArg,args[0],args[1]);case 3:return func.call(thisArg,args[0],args[1],args[2]);}return func.apply(thisArg,args);}/** + * A specialized version of `baseAggregator` for arrays. + * + * @private + * @param {Array} [array] The array to iterate over. + * @param {Function} setter The function to set `accumulator` values. + * @param {Function} iteratee The iteratee to transform keys. + * @param {Object} accumulator The initial aggregated object. + * @returns {Function} Returns `accumulator`. + */function arrayAggregator(array,setter,iteratee,accumulator){var index=-1,length=array==null?0:array.length;while(++index-1;}/** + * This function is like `arrayIncludes` except that it accepts a comparator. + * + * @private + * @param {Array} [array] The array to inspect. + * @param {*} target The value to search for. + * @param {Function} comparator The comparator invoked per element. + * @returns {boolean} Returns `true` if `target` is found, else `false`. + */function arrayIncludesWith(array,value,comparator){var index=-1,length=array==null?0:array.length;while(++index-1){}return index;}/** + * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol + * that is not found in the character symbols. + * + * @private + * @param {Array} strSymbols The string symbols to inspect. + * @param {Array} chrSymbols The character symbols to find. + * @returns {number} Returns the index of the last unmatched string symbol. + */function charsEndIndex(strSymbols,chrSymbols){var index=strSymbols.length;while(index--&&baseIndexOf(chrSymbols,strSymbols[index],0)>-1){}return index;}/** + * Gets the number of `placeholder` occurrences in `array`. + * + * @private + * @param {Array} array The array to inspect. + * @param {*} placeholder The placeholder to search for. + * @returns {number} Returns the placeholder count. + */function countHolders(array,placeholder){var length=array.length,result=0;while(length--){if(array[length]===placeholder){++result;}}return result;}/** + * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A + * letters to basic Latin letters. + * + * @private + * @param {string} letter The matched letter to deburr. + * @returns {string} Returns the deburred letter. + */var deburrLetter=basePropertyOf(deburredLetters);/** + * Used by `_.escape` to convert characters to HTML entities. + * + * @private + * @param {string} chr The matched character to escape. + * @returns {string} Returns the escaped character. + */var escapeHtmlChar=basePropertyOf(htmlEscapes);/** + * Used by `_.template` to escape characters for inclusion in compiled string literals. + * + * @private + * @param {string} chr The matched character to escape. + * @returns {string} Returns the escaped character. + */function escapeStringChar(chr){return '\\'+stringEscapes[chr];}/** + * Gets the value at `key` of `object`. + * + * @private + * @param {Object} [object] The object to query. + * @param {string} key The key of the property to get. + * @returns {*} Returns the property value. + */function getValue(object,key){return object==null?undefined$1:object[key];}/** + * Checks if `string` contains Unicode symbols. + * + * @private + * @param {string} string The string to inspect. + * @returns {boolean} Returns `true` if a symbol is found, else `false`. + */function hasUnicode(string){return reHasUnicode.test(string);}/** + * Checks if `string` contains a word composed of Unicode symbols. + * + * @private + * @param {string} string The string to inspect. + * @returns {boolean} Returns `true` if a word is found, else `false`. + */function hasUnicodeWord(string){return reHasUnicodeWord.test(string);}/** + * Converts `iterator` to an array. + * + * @private + * @param {Object} iterator The iterator to convert. + * @returns {Array} Returns the converted array. + */function iteratorToArray(iterator){var data,result=[];while(!(data=iterator.next()).done){result.push(data.value);}return result;}/** + * Converts `map` to its key-value pairs. + * + * @private + * @param {Object} map The map to convert. + * @returns {Array} Returns the key-value pairs. + */function mapToArray(map){var index=-1,result=Array(map.size);map.forEach(function(value,key){result[++index]=[key,value];});return result;}/** + * Creates a unary function that invokes `func` with its argument transformed. + * + * @private + * @param {Function} func The function to wrap. + * @param {Function} transform The argument transform. + * @returns {Function} Returns the new function. + */function overArg(func,transform){return function(arg){return func(transform(arg));};}/** + * Replaces all `placeholder` elements in `array` with an internal placeholder + * and returns an array of their indexes. + * + * @private + * @param {Array} array The array to modify. + * @param {*} placeholder The placeholder to replace. + * @returns {Array} Returns the new array of placeholder indexes. + */function replaceHolders(array,placeholder){var index=-1,length=array.length,resIndex=0,result=[];while(++index true + * _.isFunction(_.bar); + * // => false + * + * lodash.isFunction(lodash.foo); + * // => false + * lodash.isFunction(lodash.bar); + * // => true + * + * // Create a suped-up `defer` in Node.js. + * var defer = _.runInContext({ 'setTimeout': setImmediate }).defer; + */var runInContext=function runInContext(context){context=context==null?root:_.defaults(root.Object(),context,_.pick(root,contextProps));/** Built-in constructor references. */var Array=context.Array,Date=context.Date,Error=context.Error,Function=context.Function,Math=context.Math,Object=context.Object,RegExp=context.RegExp,String=context.String,TypeError=context.TypeError;/** Used for built-in method references. */var arrayProto=Array.prototype,funcProto=Function.prototype,objectProto=Object.prototype;/** Used to detect overreaching core-js shims. */var coreJsData=context['__core-js_shared__'];/** Used to resolve the decompiled source of functions. */var funcToString=funcProto.toString;/** Used to check objects for own properties. */var hasOwnProperty=objectProto.hasOwnProperty;/** Used to generate unique IDs. */var idCounter=0;/** Used to detect methods masquerading as native. */var maskSrcKey=function(){var uid=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||'');return uid?'Symbol(src)_1.'+uid:'';}();/** + * Used to resolve the + * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) + * of values. + */var nativeObjectToString=objectProto.toString;/** Used to infer the `Object` constructor. */var objectCtorString=funcToString.call(Object);/** Used to restore the original `_` reference in `_.noConflict`. */var oldDash=root._;/** Used to detect if a method is native. */var reIsNative=RegExp('^'+funcToString.call(hasOwnProperty).replace(reRegExpChar,'\\$&').replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,'$1.*?')+'$');/** Built-in value references. */var Buffer=moduleExports?context.Buffer:undefined$1,Symbol=context.Symbol,Uint8Array=context.Uint8Array,allocUnsafe=Buffer?Buffer.allocUnsafe:undefined$1,getPrototype=overArg(Object.getPrototypeOf,Object),objectCreate=Object.create,propertyIsEnumerable=objectProto.propertyIsEnumerable,splice=arrayProto.splice,spreadableSymbol=Symbol?Symbol.isConcatSpreadable:undefined$1,symIterator=Symbol?Symbol.iterator:undefined$1,symToStringTag=Symbol?Symbol.toStringTag:undefined$1;var defineProperty=function(){try{var func=getNative(Object,'defineProperty');func({},'',{});return func;}catch(e){}}();/** Mocked built-ins. */var ctxClearTimeout=context.clearTimeout!==root.clearTimeout&&context.clearTimeout,ctxNow=Date&&Date.now!==root.Date.now&&Date.now,ctxSetTimeout=context.setTimeout!==root.setTimeout&&context.setTimeout;/* Built-in method references for those with the same name as other `lodash` methods. */var nativeCeil=Math.ceil,nativeFloor=Math.floor,nativeGetSymbols=Object.getOwnPropertySymbols,nativeIsBuffer=Buffer?Buffer.isBuffer:undefined$1,nativeIsFinite=context.isFinite,nativeJoin=arrayProto.join,nativeKeys=overArg(Object.keys,Object),nativeMax=Math.max,nativeMin=Math.min,nativeNow=Date.now,nativeParseInt=context.parseInt,nativeRandom=Math.random,nativeReverse=arrayProto.reverse;/* Built-in method references that are verified to be native. */var DataView=getNative(context,'DataView'),Map=getNative(context,'Map'),Promise=getNative(context,'Promise'),Set=getNative(context,'Set'),WeakMap=getNative(context,'WeakMap'),nativeCreate=getNative(Object,'create');/** Used to store function metadata. */var metaMap=WeakMap&&new WeakMap();/** Used to lookup unminified function names. */var realNames={};/** Used to detect maps, sets, and weakmaps. */var dataViewCtorString=toSource(DataView),mapCtorString=toSource(Map),promiseCtorString=toSource(Promise),setCtorString=toSource(Set),weakMapCtorString=toSource(WeakMap);/** Used to convert symbols to primitives and strings. */var symbolProto=Symbol?Symbol.prototype:undefined$1,symbolValueOf=symbolProto?symbolProto.valueOf:undefined$1,symbolToString=symbolProto?symbolProto.toString:undefined$1;/*------------------------------------------------------------------------*/ /** + * Creates a `lodash` object which wraps `value` to enable implicit method + * chain sequences. Methods that operate on and return arrays, collections, + * and functions can be chained together. Methods that retrieve a single value + * or may return a primitive value will automatically end the chain sequence + * and return the unwrapped value. Otherwise, the value must be unwrapped + * with `_#value`. + * + * Explicit chain sequences, which must be unwrapped with `_#value`, may be + * enabled using `_.chain`. + * + * The execution of chained methods is lazy, that is, it's deferred until + * `_#value` is implicitly or explicitly called. + * + * Lazy evaluation allows several methods to support shortcut fusion. + * Shortcut fusion is an optimization to merge iteratee calls; this avoids + * the creation of intermediate arrays and can greatly reduce the number of + * iteratee executions. Sections of a chain sequence qualify for shortcut + * fusion if the section is applied to an array and iteratees accept only + * one argument. The heuristic for whether a section qualifies for shortcut + * fusion is subject to change. + * + * Chaining is supported in custom builds as long as the `_#value` method is + * directly or indirectly included in the build. + * + * In addition to lodash methods, wrappers have `Array` and `String` methods. + * + * The wrapper `Array` methods are: + * `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift` + * + * The wrapper `String` methods are: + * `replace` and `split` + * + * The wrapper methods that support shortcut fusion are: + * `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`, + * `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`, + * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray` + * + * The chainable wrapper methods are: + * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`, + * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`, + * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`, + * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`, + * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`, + * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`, + * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`, + * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`, + * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`, + * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`, + * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`, + * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`, + * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`, + * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`, + * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`, + * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`, + * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`, + * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`, + * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`, + * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`, + * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`, + * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`, + * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`, + * `zipObject`, `zipObjectDeep`, and `zipWith` + * + * The wrapper methods that are **not** chainable by default are: + * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`, + * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`, + * `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`, + * `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`, + * `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`, + * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`, + * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`, + * `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`, + * `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`, + * `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`, + * `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`, + * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`, + * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`, + * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`, + * `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`, + * `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`, + * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`, + * `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`, + * `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`, + * `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`, + * `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`, + * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`, + * `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`, + * `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`, + * `upperFirst`, `value`, and `words` + * + * @name _ + * @constructor + * @category Seq + * @param {*} value The value to wrap in a `lodash` instance. + * @returns {Object} Returns the new `lodash` wrapper instance. + * @example + * + * function square(n) { + * return n * n; + * } + * + * var wrapped = _([1, 2, 3]); + * + * // Returns an unwrapped value. + * wrapped.reduce(_.add); + * // => 6 + * + * // Returns a wrapped value. + * var squares = wrapped.map(square); + * + * _.isArray(squares); + * // => false + * + * _.isArray(squares.value()); + * // => true + */function lodash(value){if(isObjectLike(value)&&!isArray(value)&&!(value instanceof LazyWrapper)){if(value instanceof LodashWrapper){return value;}if(hasOwnProperty.call(value,'__wrapped__')){return wrapperClone(value);}}return new LodashWrapper(value);}/** + * The base implementation of `_.create` without support for assigning + * properties to the created object. + * + * @private + * @param {Object} proto The object to inherit from. + * @returns {Object} Returns the new object. + */var baseCreate=function(){function object(){}return function(proto){if(!isObject(proto)){return {};}if(objectCreate){return objectCreate(proto);}object.prototype=proto;var result=new object();object.prototype=undefined$1;return result;};}();/** + * The function whose prototype chain sequence wrappers inherit from. + * + * @private + */function baseLodash(){// No operation performed. + }/** + * The base constructor for creating `lodash` wrapper objects. + * + * @private + * @param {*} value The value to wrap. + * @param {boolean} [chainAll] Enable explicit method chain sequences. + */function LodashWrapper(value,chainAll){this.__wrapped__=value;this.__actions__=[];this.__chain__=!!chainAll;this.__index__=0;this.__values__=undefined$1;}/** + * By default, the template delimiters used by lodash are like those in + * embedded Ruby (ERB) as well as ES2015 template strings. Change the + * following template settings to use alternative delimiters. + * + * @static + * @memberOf _ + * @type {Object} + */lodash.templateSettings={/** + * Used to detect `data` property values to be HTML-escaped. + * + * @memberOf _.templateSettings + * @type {RegExp} + */'escape':reEscape,/** + * Used to detect code to be evaluated. + * + * @memberOf _.templateSettings + * @type {RegExp} + */'evaluate':reEvaluate,/** + * Used to detect `data` property values to inject. + * + * @memberOf _.templateSettings + * @type {RegExp} + */'interpolate':reInterpolate,/** + * Used to reference the data object in the template text. + * + * @memberOf _.templateSettings + * @type {string} + */'variable':'',/** + * Used to import variables into the compiled template. + * + * @memberOf _.templateSettings + * @type {Object} + */'imports':{/** + * A reference to the `lodash` function. + * + * @memberOf _.templateSettings.imports + * @type {Function} + */'_':lodash}};// Ensure wrappers are instances of `baseLodash`. + lodash.prototype=baseLodash.prototype;lodash.prototype.constructor=lodash;LodashWrapper.prototype=baseCreate(baseLodash.prototype);LodashWrapper.prototype.constructor=LodashWrapper;/*------------------------------------------------------------------------*/ /** + * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation. + * + * @private + * @constructor + * @param {*} value The value to wrap. + */function LazyWrapper(value){this.__wrapped__=value;this.__actions__=[];this.__dir__=1;this.__filtered__=false;this.__iteratees__=[];this.__takeCount__=MAX_ARRAY_LENGTH;this.__views__=[];}/** + * Creates a clone of the lazy wrapper object. + * + * @private + * @name clone + * @memberOf LazyWrapper + * @returns {Object} Returns the cloned `LazyWrapper` object. + */function lazyClone(){var result=new LazyWrapper(this.__wrapped__);result.__actions__=copyArray(this.__actions__);result.__dir__=this.__dir__;result.__filtered__=this.__filtered__;result.__iteratees__=copyArray(this.__iteratees__);result.__takeCount__=this.__takeCount__;result.__views__=copyArray(this.__views__);return result;}/** + * Reverses the direction of lazy iteration. + * + * @private + * @name reverse + * @memberOf LazyWrapper + * @returns {Object} Returns the new reversed `LazyWrapper` object. + */function lazyReverse(){if(this.__filtered__){var result=new LazyWrapper(this);result.__dir__=-1;result.__filtered__=true;}else {result=this.clone();result.__dir__*=-1;}return result;}/** + * Extracts the unwrapped value from its lazy wrapper. + * + * @private + * @name value + * @memberOf LazyWrapper + * @returns {*} Returns the unwrapped value. + */function lazyValue(){var array=this.__wrapped__.value(),dir=this.__dir__,isArr=isArray(array),isRight=dir<0,arrLength=isArr?array.length:0,view=getView(0,arrLength,this.__views__),start=view.start,end=view.end,length=end-start,index=isRight?end:start-1,iteratees=this.__iteratees__,iterLength=iteratees.length,resIndex=0,takeCount=nativeMin(length,this.__takeCount__);if(!isArr||!isRight&&arrLength==length&&takeCount==length){return baseWrapperValue(array,this.__actions__);}var result=[];outer:while(length--&&resIndex-1;}/** + * Sets the list cache `key` to `value`. + * + * @private + * @name set + * @memberOf ListCache + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the list cache instance. + */function listCacheSet(key,value){var data=this.__data__,index=assocIndexOf(data,key);if(index<0){++this.size;data.push([key,value]);}else {data[index][1]=value;}return this;}// Add methods to `ListCache`. + ListCache.prototype.clear=listCacheClear;ListCache.prototype['delete']=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;/*------------------------------------------------------------------------*/ /** + * Creates a map cache object to store key-value pairs. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */function MapCache(entries){var index=-1,length=entries==null?0:entries.length;this.clear();while(++index=lower?number:lower;}}return number;}/** + * The base implementation of `_.clone` and `_.cloneDeep` which tracks + * traversed objects. + * + * @private + * @param {*} value The value to clone. + * @param {boolean} bitmask The bitmask flags. + * 1 - Deep clone + * 2 - Flatten inherited properties + * 4 - Clone symbols + * @param {Function} [customizer] The function to customize cloning. + * @param {string} [key] The key of `value`. + * @param {Object} [object] The parent object of `value`. + * @param {Object} [stack] Tracks traversed objects and their clone counterparts. + * @returns {*} Returns the cloned value. + */function baseClone(value,bitmask,customizer,key,object,stack){var result,isDeep=bitmask&CLONE_DEEP_FLAG,isFlat=bitmask&CLONE_FLAT_FLAG,isFull=bitmask&CLONE_SYMBOLS_FLAG;if(customizer){result=object?customizer(value,key,object,stack):customizer(value);}if(result!==undefined$1){return result;}if(!isObject(value)){return value;}var isArr=isArray(value);if(isArr){result=initCloneArray(value);if(!isDeep){return copyArray(value,result);}}else {var tag=getTag(value),isFunc=tag==funcTag||tag==genTag;if(isBuffer(value)){return cloneBuffer(value,isDeep);}if(tag==objectTag||tag==argsTag||isFunc&&!object){result=isFlat||isFunc?{}:initCloneObject(value);if(!isDeep){return isFlat?copySymbolsIn(value,baseAssignIn(result,value)):copySymbols(value,baseAssign(result,value));}}else {if(!cloneableTags[tag]){return object?value:{};}result=initCloneByTag(value,tag,isDeep);}}// Check for circular references and return its corresponding clone. + stack||(stack=new Stack());var stacked=stack.get(value);if(stacked){return stacked;}stack.set(value,result);if(isSet(value)){value.forEach(function(subValue){result.add(baseClone(subValue,bitmask,customizer,subValue,value,stack));});}else if(isMap(value)){value.forEach(function(subValue,key){result.set(key,baseClone(subValue,bitmask,customizer,key,value,stack));});}var keysFunc=isFull?isFlat?getAllKeysIn:getAllKeys:isFlat?keysIn:keys;var props=isArr?undefined$1:keysFunc(value);arrayEach(props||value,function(subValue,key){if(props){key=subValue;subValue=value[key];}// Recursively populate clone (susceptible to call stack limits). + assignValue(result,key,baseClone(subValue,bitmask,customizer,key,value,stack));});return result;}/** + * The base implementation of `_.conforms` which doesn't clone `source`. + * + * @private + * @param {Object} source The object of property predicates to conform to. + * @returns {Function} Returns the new spec function. + */function baseConforms(source){var props=keys(source);return function(object){return baseConformsTo(object,source,props);};}/** + * The base implementation of `_.conformsTo` which accepts `props` to check. + * + * @private + * @param {Object} object The object to inspect. + * @param {Object} source The object of property predicates to conform to. + * @returns {boolean} Returns `true` if `object` conforms, else `false`. + */function baseConformsTo(object,source,props){var length=props.length;if(object==null){return !length;}object=Object(object);while(length--){var key=props[length],predicate=source[key],value=object[key];if(value===undefined$1&&!(key in object)||!predicate(value)){return false;}}return true;}/** + * The base implementation of `_.delay` and `_.defer` which accepts `args` + * to provide to `func`. + * + * @private + * @param {Function} func The function to delay. + * @param {number} wait The number of milliseconds to delay invocation. + * @param {Array} args The arguments to provide to `func`. + * @returns {number|Object} Returns the timer id or timeout object. + */function baseDelay(func,wait,args){if(typeof func!='function'){throw new TypeError(FUNC_ERROR_TEXT);}return setTimeout(function(){func.apply(undefined$1,args);},wait);}/** + * The base implementation of methods like `_.difference` without support + * for excluding multiple arrays or iteratee shorthands. + * + * @private + * @param {Array} array The array to inspect. + * @param {Array} values The values to exclude. + * @param {Function} [iteratee] The iteratee invoked per element. + * @param {Function} [comparator] The comparator invoked per element. + * @returns {Array} Returns the new array of filtered values. + */function baseDifference(array,values,iteratee,comparator){var index=-1,includes=arrayIncludes,isCommon=true,length=array.length,result=[],valuesLength=values.length;if(!length){return result;}if(iteratee){values=arrayMap(values,baseUnary(iteratee));}if(comparator){includes=arrayIncludesWith;isCommon=false;}else if(values.length>=LARGE_ARRAY_SIZE){includes=cacheHas;isCommon=false;values=new SetCache(values);}outer:while(++indexlength?0:length+start;}end=end===undefined$1||end>length?length:toInteger(end);if(end<0){end+=length;}end=start>end?0:toLength(end);while(start0&&predicate(value)){if(depth>1){// Recursively flatten arrays (susceptible to call stack limits). + baseFlatten(value,depth-1,predicate,isStrict,result);}else {arrayPush(result,value);}}else if(!isStrict){result[result.length]=value;}}return result;}/** + * The base implementation of `baseForOwn` which iterates over `object` + * properties returned by `keysFunc` and invokes `iteratee` for each property. + * Iteratee functions may exit iteration early by explicitly returning `false`. + * + * @private + * @param {Object} object The object to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @param {Function} keysFunc The function to get the keys of `object`. + * @returns {Object} Returns `object`. + */var baseFor=createBaseFor();/** + * This function is like `baseFor` except that it iterates over properties + * in the opposite order. + * + * @private + * @param {Object} object The object to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @param {Function} keysFunc The function to get the keys of `object`. + * @returns {Object} Returns `object`. + */var baseForRight=createBaseFor(true);/** + * The base implementation of `_.forOwn` without support for iteratee shorthands. + * + * @private + * @param {Object} object The object to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Object} Returns `object`. + */function baseForOwn(object,iteratee){return object&&baseFor(object,iteratee,keys);}/** + * The base implementation of `_.forOwnRight` without support for iteratee shorthands. + * + * @private + * @param {Object} object The object to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Object} Returns `object`. + */function baseForOwnRight(object,iteratee){return object&&baseForRight(object,iteratee,keys);}/** + * The base implementation of `_.functions` which creates an array of + * `object` function property names filtered from `props`. + * + * @private + * @param {Object} object The object to inspect. + * @param {Array} props The property names to filter. + * @returns {Array} Returns the function names. + */function baseFunctions(object,props){return arrayFilter(props,function(key){return isFunction(object[key]);});}/** + * The base implementation of `_.get` without support for default values. + * + * @private + * @param {Object} object The object to query. + * @param {Array|string} path The path of the property to get. + * @returns {*} Returns the resolved value. + */function baseGet(object,path){path=castPath(path,object);var index=0,length=path.length;while(object!=null&&indexother;}/** + * The base implementation of `_.has` without support for deep paths. + * + * @private + * @param {Object} [object] The object to query. + * @param {Array|string} key The key to check. + * @returns {boolean} Returns `true` if `key` exists, else `false`. + */function baseHas(object,key){return object!=null&&hasOwnProperty.call(object,key);}/** + * The base implementation of `_.hasIn` without support for deep paths. + * + * @private + * @param {Object} [object] The object to query. + * @param {Array|string} key The key to check. + * @returns {boolean} Returns `true` if `key` exists, else `false`. + */function baseHasIn(object,key){return object!=null&&key in Object(object);}/** + * The base implementation of `_.inRange` which doesn't coerce arguments. + * + * @private + * @param {number} number The number to check. + * @param {number} start The start of the range. + * @param {number} end The end of the range. + * @returns {boolean} Returns `true` if `number` is in the range, else `false`. + */function baseInRange(number,start,end){return number>=nativeMin(start,end)&&number=120&&array.length>=120)?new SetCache(othIndex&&array):undefined$1;}array=arrays[0];var index=-1,seen=caches[0];outer:while(++index-1){if(seen!==array){splice.call(seen,fromIndex,1);}splice.call(array,fromIndex,1);}}return array;}/** + * The base implementation of `_.pullAt` without support for individual + * indexes or capturing the removed elements. + * + * @private + * @param {Array} array The array to modify. + * @param {number[]} indexes The indexes of elements to remove. + * @returns {Array} Returns `array`. + */function basePullAt(array,indexes){var length=array?indexes.length:0,lastIndex=length-1;while(length--){var index=indexes[length];if(length==lastIndex||index!==previous){var previous=index;if(isIndex(index)){splice.call(array,index,1);}else {baseUnset(array,index);}}}return array;}/** + * The base implementation of `_.random` without support for returning + * floating-point numbers. + * + * @private + * @param {number} lower The lower bound. + * @param {number} upper The upper bound. + * @returns {number} Returns the random number. + */function baseRandom(lower,upper){return lower+nativeFloor(nativeRandom()*(upper-lower+1));}/** + * The base implementation of `_.range` and `_.rangeRight` which doesn't + * coerce arguments. + * + * @private + * @param {number} start The start of the range. + * @param {number} end The end of the range. + * @param {number} step The value to increment or decrement by. + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {Array} Returns the range of numbers. + */function baseRange(start,end,step,fromRight){var index=-1,length=nativeMax(nativeCeil((end-start)/(step||1)),0),result=Array(length);while(length--){result[fromRight?length:++index]=start;start+=step;}return result;}/** + * The base implementation of `_.repeat` which doesn't coerce arguments. + * + * @private + * @param {string} string The string to repeat. + * @param {number} n The number of times to repeat the string. + * @returns {string} Returns the repeated string. + */function baseRepeat(string,n){var result='';if(!string||n<1||n>MAX_SAFE_INTEGER){return result;}// Leverage the exponentiation by squaring algorithm for a faster repeat. + // See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details. + do{if(n%2){result+=string;}n=nativeFloor(n/2);if(n){string+=string;}}while(n);return result;}/** + * The base implementation of `_.rest` which doesn't validate or coerce arguments. + * + * @private + * @param {Function} func The function to apply a rest parameter to. + * @param {number} [start=func.length-1] The start position of the rest parameter. + * @returns {Function} Returns the new function. + */function baseRest(func,start){return setToString(overRest(func,start,identity),func+'');}/** + * The base implementation of `_.sample`. + * + * @private + * @param {Array|Object} collection The collection to sample. + * @returns {*} Returns the random element. + */function baseSample(collection){return arraySample(values(collection));}/** + * The base implementation of `_.sampleSize` without param guards. + * + * @private + * @param {Array|Object} collection The collection to sample. + * @param {number} n The number of elements to sample. + * @returns {Array} Returns the random elements. + */function baseSampleSize(collection,n){var array=values(collection);return shuffleSelf(array,baseClamp(n,0,array.length));}/** + * The base implementation of `_.set`. + * + * @private + * @param {Object} object The object to modify. + * @param {Array|string} path The path of the property to set. + * @param {*} value The value to set. + * @param {Function} [customizer] The function to customize path creation. + * @returns {Object} Returns `object`. + */function baseSet(object,path,value,customizer){if(!isObject(object)){return object;}path=castPath(path,object);var index=-1,length=path.length,lastIndex=length-1,nested=object;while(nested!=null&&++indexlength?0:length+start;}end=end>length?length:end;if(end<0){end+=length;}length=start>end?0:end-start>>>0;start>>>=0;var result=Array(length);while(++index>>1,computed=array[mid];if(computed!==null&&!isSymbol(computed)&&(retHighest?computed<=value:computed=LARGE_ARRAY_SIZE){var set=iteratee?null:createSet(array);if(set){return setToArray(set);}isCommon=false;includes=cacheHas;seen=new SetCache();}else {seen=iteratee?[]:result;}outer:while(++index=length?array:baseSlice(array,start,end);}/** + * A simple wrapper around the global [`clearTimeout`](https://mdn.io/clearTimeout). + * + * @private + * @param {number|Object} id The timer id or timeout object of the timer to clear. + */var clearTimeout=ctxClearTimeout||function(id){return root.clearTimeout(id);};/** + * Creates a clone of `buffer`. + * + * @private + * @param {Buffer} buffer The buffer to clone. + * @param {boolean} [isDeep] Specify a deep clone. + * @returns {Buffer} Returns the cloned buffer. + */function cloneBuffer(buffer,isDeep){if(isDeep){return buffer.slice();}var length=buffer.length,result=allocUnsafe?allocUnsafe(length):new buffer.constructor(length);buffer.copy(result);return result;}/** + * Creates a clone of `arrayBuffer`. + * + * @private + * @param {ArrayBuffer} arrayBuffer The array buffer to clone. + * @returns {ArrayBuffer} Returns the cloned array buffer. + */function cloneArrayBuffer(arrayBuffer){var result=new arrayBuffer.constructor(arrayBuffer.byteLength);new Uint8Array(result).set(new Uint8Array(arrayBuffer));return result;}/** + * Creates a clone of `dataView`. + * + * @private + * @param {Object} dataView The data view to clone. + * @param {boolean} [isDeep] Specify a deep clone. + * @returns {Object} Returns the cloned data view. + */function cloneDataView(dataView,isDeep){var buffer=isDeep?cloneArrayBuffer(dataView.buffer):dataView.buffer;return new dataView.constructor(buffer,dataView.byteOffset,dataView.byteLength);}/** + * Creates a clone of `regexp`. + * + * @private + * @param {Object} regexp The regexp to clone. + * @returns {Object} Returns the cloned regexp. + */function cloneRegExp(regexp){var result=new regexp.constructor(regexp.source,reFlags.exec(regexp));result.lastIndex=regexp.lastIndex;return result;}/** + * Creates a clone of the `symbol` object. + * + * @private + * @param {Object} symbol The symbol object to clone. + * @returns {Object} Returns the cloned symbol object. + */function cloneSymbol(symbol){return symbolValueOf?Object(symbolValueOf.call(symbol)):{};}/** + * Creates a clone of `typedArray`. + * + * @private + * @param {Object} typedArray The typed array to clone. + * @param {boolean} [isDeep] Specify a deep clone. + * @returns {Object} Returns the cloned typed array. + */function cloneTypedArray(typedArray,isDeep){var buffer=isDeep?cloneArrayBuffer(typedArray.buffer):typedArray.buffer;return new typedArray.constructor(buffer,typedArray.byteOffset,typedArray.length);}/** + * Compares values to sort them in ascending order. + * + * @private + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @returns {number} Returns the sort order indicator for `value`. + */function compareAscending(value,other){if(value!==other){var valIsDefined=value!==undefined$1,valIsNull=value===null,valIsReflexive=value===value,valIsSymbol=isSymbol(value);var othIsDefined=other!==undefined$1,othIsNull=other===null,othIsReflexive=other===other,othIsSymbol=isSymbol(other);if(!othIsNull&&!othIsSymbol&&!valIsSymbol&&value>other||valIsSymbol&&othIsDefined&&othIsReflexive&&!othIsNull&&!othIsSymbol||valIsNull&&othIsDefined&&othIsReflexive||!valIsDefined&&othIsReflexive||!valIsReflexive){return 1;}if(!valIsNull&&!valIsSymbol&&!othIsSymbol&&value=ordersLength){return result;}var order=orders[index];return result*(order=='desc'?-1:1);}}// Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications + // that causes it, under certain circumstances, to provide the same value for + // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247 + // for more details. + // + // This also ensures a stable sort in V8 and other engines. + // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details. + return object.index-other.index;}/** + * Creates an array that is the composition of partially applied arguments, + * placeholders, and provided arguments into a single array of arguments. + * + * @private + * @param {Array} args The provided arguments. + * @param {Array} partials The arguments to prepend to those provided. + * @param {Array} holders The `partials` placeholder indexes. + * @params {boolean} [isCurried] Specify composing for a curried function. + * @returns {Array} Returns the new array of composed arguments. + */function composeArgs(args,partials,holders,isCurried){var argsIndex=-1,argsLength=args.length,holdersLength=holders.length,leftIndex=-1,leftLength=partials.length,rangeLength=nativeMax(argsLength-holdersLength,0),result=Array(leftLength+rangeLength),isUncurried=!isCurried;while(++leftIndex1?sources[length-1]:undefined$1,guard=length>2?sources[2]:undefined$1;customizer=assigner.length>3&&typeof customizer=='function'?(length--,customizer):undefined$1;if(guard&&isIterateeCall(sources[0],sources[1],guard)){customizer=length<3?undefined$1:customizer;length=1;}object=Object(object);while(++index-1?iterable[iteratee?collection[index]:index]:undefined$1;};}/** + * Creates a `_.flow` or `_.flowRight` function. + * + * @private + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {Function} Returns the new flow function. + */function createFlow(fromRight){return flatRest(function(funcs){var length=funcs.length,index=length,prereq=LodashWrapper.prototype.thru;if(fromRight){funcs.reverse();}while(index--){var func=funcs[index];if(typeof func!='function'){throw new TypeError(FUNC_ERROR_TEXT);}if(prereq&&!wrapper&&getFuncName(func)=='wrapper'){var wrapper=new LodashWrapper([],true);}}index=wrapper?index:length;while(++index1){args.reverse();}if(isAry&&aryarrLength)){return false;}// Assume cyclic values are equal. + var stacked=stack.get(array);if(stacked&&stack.get(other)){return stacked==other;}var index=-1,result=true,seen=bitmask&COMPARE_UNORDERED_FLAG?new SetCache():undefined$1;stack.set(array,other);stack.set(other,array);// Ignore non-index properties. + while(++index1?'& ':'')+details[lastIndex];details=details.join(length>2?', ':' ');return source.replace(reWrapComment,'{\n/* [wrapped with '+details+'] */\n');}/** + * Checks if `value` is a flattenable `arguments` object or array. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is flattenable, else `false`. + */function isFlattenable(value){return isArray(value)||isArguments(value)||!!(spreadableSymbol&&value&&value[spreadableSymbol]);}/** + * Checks if `value` is a valid array-like index. + * + * @private + * @param {*} value The value to check. + * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index. + * @returns {boolean} Returns `true` if `value` is a valid index, else `false`. + */function isIndex(value,length){var type=typeof value;length=length==null?MAX_SAFE_INTEGER:length;return !!length&&(type=='number'||type!='symbol'&&reIsUint.test(value))&&value>-1&&value%1==0&&value0){if(++count>=HOT_COUNT){return arguments[0];}}else {count=0;}return func.apply(undefined$1,arguments);};}/** + * A specialized version of `_.shuffle` which mutates and sets the size of `array`. + * + * @private + * @param {Array} array The array to shuffle. + * @param {number} [size=array.length] The size of `array`. + * @returns {Array} Returns `array`. + */function shuffleSelf(array,size){var index=-1,length=array.length,lastIndex=length-1;size=size===undefined$1?length:size;while(++index [['a', 'b'], ['c', 'd']] + * + * _.chunk(['a', 'b', 'c', 'd'], 3); + * // => [['a', 'b', 'c'], ['d']] + */function chunk(array,size,guard){if(guard?isIterateeCall(array,size,guard):size===undefined$1){size=1;}else {size=nativeMax(toInteger(size),0);}var length=array==null?0:array.length;if(!length||size<1){return [];}var index=0,resIndex=0,result=Array(nativeCeil(length/size));while(index [1, 2, 3] + */function compact(array){var index=-1,length=array==null?0:array.length,resIndex=0,result=[];while(++index [1, 2, 3, [4]] + * + * console.log(array); + * // => [1] + */function concat(){var length=arguments.length;if(!length){return [];}var args=Array(length-1),array=arguments[0],index=length;while(index--){args[index-1]=arguments[index];}return arrayPush(isArray(array)?copyArray(array):[array],baseFlatten(args,1));}/** + * Creates an array of `array` values not included in the other given arrays + * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * for equality comparisons. The order and references of result values are + * determined by the first array. + * + * **Note:** Unlike `_.pullAll`, this method returns a new array. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Array + * @param {Array} array The array to inspect. + * @param {...Array} [values] The values to exclude. + * @returns {Array} Returns the new array of filtered values. + * @see _.without, _.xor + * @example + * + * _.difference([2, 1], [2, 3]); + * // => [1] + */var difference=baseRest(function(array,values){return isArrayLikeObject(array)?baseDifference(array,baseFlatten(values,1,isArrayLikeObject,true)):[];});/** + * This method is like `_.difference` except that it accepts `iteratee` which + * is invoked for each element of `array` and `values` to generate the criterion + * by which they're compared. The order and references of result values are + * determined by the first array. The iteratee is invoked with one argument: + * (value). + * + * **Note:** Unlike `_.pullAllBy`, this method returns a new array. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {Array} array The array to inspect. + * @param {...Array} [values] The values to exclude. + * @param {Function} [iteratee=_.identity] The iteratee invoked per element. + * @returns {Array} Returns the new array of filtered values. + * @example + * + * _.differenceBy([2.1, 1.2], [2.3, 3.4], Math.floor); + * // => [1.2] + * + * // The `_.property` iteratee shorthand. + * _.differenceBy([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], 'x'); + * // => [{ 'x': 2 }] + */var differenceBy=baseRest(function(array,values){var iteratee=last(values);if(isArrayLikeObject(iteratee)){iteratee=undefined$1;}return isArrayLikeObject(array)?baseDifference(array,baseFlatten(values,1,isArrayLikeObject,true),getIteratee(iteratee,2)):[];});/** + * This method is like `_.difference` except that it accepts `comparator` + * which is invoked to compare elements of `array` to `values`. The order and + * references of result values are determined by the first array. The comparator + * is invoked with two arguments: (arrVal, othVal). + * + * **Note:** Unlike `_.pullAllWith`, this method returns a new array. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {Array} array The array to inspect. + * @param {...Array} [values] The values to exclude. + * @param {Function} [comparator] The comparator invoked per element. + * @returns {Array} Returns the new array of filtered values. + * @example + * + * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]; + * + * _.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual); + * // => [{ 'x': 2, 'y': 1 }] + */var differenceWith=baseRest(function(array,values){var comparator=last(values);if(isArrayLikeObject(comparator)){comparator=undefined$1;}return isArrayLikeObject(array)?baseDifference(array,baseFlatten(values,1,isArrayLikeObject,true),undefined$1,comparator):[];});/** + * Creates a slice of `array` with `n` elements dropped from the beginning. + * + * @static + * @memberOf _ + * @since 0.5.0 + * @category Array + * @param {Array} array The array to query. + * @param {number} [n=1] The number of elements to drop. + * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @returns {Array} Returns the slice of `array`. + * @example + * + * _.drop([1, 2, 3]); + * // => [2, 3] + * + * _.drop([1, 2, 3], 2); + * // => [3] + * + * _.drop([1, 2, 3], 5); + * // => [] + * + * _.drop([1, 2, 3], 0); + * // => [1, 2, 3] + */function drop(array,n,guard){var length=array==null?0:array.length;if(!length){return [];}n=guard||n===undefined$1?1:toInteger(n);return baseSlice(array,n<0?0:n,length);}/** + * Creates a slice of `array` with `n` elements dropped from the end. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Array + * @param {Array} array The array to query. + * @param {number} [n=1] The number of elements to drop. + * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @returns {Array} Returns the slice of `array`. + * @example + * + * _.dropRight([1, 2, 3]); + * // => [1, 2] + * + * _.dropRight([1, 2, 3], 2); + * // => [1] + * + * _.dropRight([1, 2, 3], 5); + * // => [] + * + * _.dropRight([1, 2, 3], 0); + * // => [1, 2, 3] + */function dropRight(array,n,guard){var length=array==null?0:array.length;if(!length){return [];}n=guard||n===undefined$1?1:toInteger(n);n=length-n;return baseSlice(array,0,n<0?0:n);}/** + * Creates a slice of `array` excluding elements dropped from the end. + * Elements are dropped until `predicate` returns falsey. The predicate is + * invoked with three arguments: (value, index, array). + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Array + * @param {Array} array The array to query. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @returns {Array} Returns the slice of `array`. + * @example + * + * var users = [ + * { 'user': 'barney', 'active': true }, + * { 'user': 'fred', 'active': false }, + * { 'user': 'pebbles', 'active': false } + * ]; + * + * _.dropRightWhile(users, function(o) { return !o.active; }); + * // => objects for ['barney'] + * + * // The `_.matches` iteratee shorthand. + * _.dropRightWhile(users, { 'user': 'pebbles', 'active': false }); + * // => objects for ['barney', 'fred'] + * + * // The `_.matchesProperty` iteratee shorthand. + * _.dropRightWhile(users, ['active', false]); + * // => objects for ['barney'] + * + * // The `_.property` iteratee shorthand. + * _.dropRightWhile(users, 'active'); + * // => objects for ['barney', 'fred', 'pebbles'] + */function dropRightWhile(array,predicate){return array&&array.length?baseWhile(array,getIteratee(predicate,3),true,true):[];}/** + * Creates a slice of `array` excluding elements dropped from the beginning. + * Elements are dropped until `predicate` returns falsey. The predicate is + * invoked with three arguments: (value, index, array). + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Array + * @param {Array} array The array to query. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @returns {Array} Returns the slice of `array`. + * @example + * + * var users = [ + * { 'user': 'barney', 'active': false }, + * { 'user': 'fred', 'active': false }, + * { 'user': 'pebbles', 'active': true } + * ]; + * + * _.dropWhile(users, function(o) { return !o.active; }); + * // => objects for ['pebbles'] + * + * // The `_.matches` iteratee shorthand. + * _.dropWhile(users, { 'user': 'barney', 'active': false }); + * // => objects for ['fred', 'pebbles'] + * + * // The `_.matchesProperty` iteratee shorthand. + * _.dropWhile(users, ['active', false]); + * // => objects for ['pebbles'] + * + * // The `_.property` iteratee shorthand. + * _.dropWhile(users, 'active'); + * // => objects for ['barney', 'fred', 'pebbles'] + */function dropWhile(array,predicate){return array&&array.length?baseWhile(array,getIteratee(predicate,3),true):[];}/** + * Fills elements of `array` with `value` from `start` up to, but not + * including, `end`. + * + * **Note:** This method mutates `array`. + * + * @static + * @memberOf _ + * @since 3.2.0 + * @category Array + * @param {Array} array The array to fill. + * @param {*} value The value to fill `array` with. + * @param {number} [start=0] The start position. + * @param {number} [end=array.length] The end position. + * @returns {Array} Returns `array`. + * @example + * + * var array = [1, 2, 3]; + * + * _.fill(array, 'a'); + * console.log(array); + * // => ['a', 'a', 'a'] + * + * _.fill(Array(3), 2); + * // => [2, 2, 2] + * + * _.fill([4, 6, 8, 10], '*', 1, 3); + * // => [4, '*', '*', 10] + */function fill(array,value,start,end){var length=array==null?0:array.length;if(!length){return [];}if(start&&typeof start!='number'&&isIterateeCall(array,value,start)){start=0;end=length;}return baseFill(array,value,start,end);}/** + * This method is like `_.find` except that it returns the index of the first + * element `predicate` returns truthy for instead of the element itself. + * + * @static + * @memberOf _ + * @since 1.1.0 + * @category Array + * @param {Array} array The array to inspect. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @param {number} [fromIndex=0] The index to search from. + * @returns {number} Returns the index of the found element, else `-1`. + * @example + * + * var users = [ + * { 'user': 'barney', 'active': false }, + * { 'user': 'fred', 'active': false }, + * { 'user': 'pebbles', 'active': true } + * ]; + * + * _.findIndex(users, function(o) { return o.user == 'barney'; }); + * // => 0 + * + * // The `_.matches` iteratee shorthand. + * _.findIndex(users, { 'user': 'fred', 'active': false }); + * // => 1 + * + * // The `_.matchesProperty` iteratee shorthand. + * _.findIndex(users, ['active', false]); + * // => 0 + * + * // The `_.property` iteratee shorthand. + * _.findIndex(users, 'active'); + * // => 2 + */function findIndex(array,predicate,fromIndex){var length=array==null?0:array.length;if(!length){return -1;}var index=fromIndex==null?0:toInteger(fromIndex);if(index<0){index=nativeMax(length+index,0);}return baseFindIndex(array,getIteratee(predicate,3),index);}/** + * This method is like `_.findIndex` except that it iterates over elements + * of `collection` from right to left. + * + * @static + * @memberOf _ + * @since 2.0.0 + * @category Array + * @param {Array} array The array to inspect. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @param {number} [fromIndex=array.length-1] The index to search from. + * @returns {number} Returns the index of the found element, else `-1`. + * @example + * + * var users = [ + * { 'user': 'barney', 'active': true }, + * { 'user': 'fred', 'active': false }, + * { 'user': 'pebbles', 'active': false } + * ]; + * + * _.findLastIndex(users, function(o) { return o.user == 'pebbles'; }); + * // => 2 + * + * // The `_.matches` iteratee shorthand. + * _.findLastIndex(users, { 'user': 'barney', 'active': true }); + * // => 0 + * + * // The `_.matchesProperty` iteratee shorthand. + * _.findLastIndex(users, ['active', false]); + * // => 2 + * + * // The `_.property` iteratee shorthand. + * _.findLastIndex(users, 'active'); + * // => 0 + */function findLastIndex(array,predicate,fromIndex){var length=array==null?0:array.length;if(!length){return -1;}var index=length-1;if(fromIndex!==undefined$1){index=toInteger(fromIndex);index=fromIndex<0?nativeMax(length+index,0):nativeMin(index,length-1);}return baseFindIndex(array,getIteratee(predicate,3),index,true);}/** + * Flattens `array` a single level deep. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Array + * @param {Array} array The array to flatten. + * @returns {Array} Returns the new flattened array. + * @example + * + * _.flatten([1, [2, [3, [4]], 5]]); + * // => [1, 2, [3, [4]], 5] + */function flatten(array){var length=array==null?0:array.length;return length?baseFlatten(array,1):[];}/** + * Recursively flattens `array`. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Array + * @param {Array} array The array to flatten. + * @returns {Array} Returns the new flattened array. + * @example + * + * _.flattenDeep([1, [2, [3, [4]], 5]]); + * // => [1, 2, 3, 4, 5] + */function flattenDeep(array){var length=array==null?0:array.length;return length?baseFlatten(array,INFINITY):[];}/** + * Recursively flatten `array` up to `depth` times. + * + * @static + * @memberOf _ + * @since 4.4.0 + * @category Array + * @param {Array} array The array to flatten. + * @param {number} [depth=1] The maximum recursion depth. + * @returns {Array} Returns the new flattened array. + * @example + * + * var array = [1, [2, [3, [4]], 5]]; + * + * _.flattenDepth(array, 1); + * // => [1, 2, [3, [4]], 5] + * + * _.flattenDepth(array, 2); + * // => [1, 2, 3, [4], 5] + */function flattenDepth(array,depth){var length=array==null?0:array.length;if(!length){return [];}depth=depth===undefined$1?1:toInteger(depth);return baseFlatten(array,depth);}/** + * The inverse of `_.toPairs`; this method returns an object composed + * from key-value `pairs`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {Array} pairs The key-value pairs. + * @returns {Object} Returns the new object. + * @example + * + * _.fromPairs([['a', 1], ['b', 2]]); + * // => { 'a': 1, 'b': 2 } + */function fromPairs(pairs){var index=-1,length=pairs==null?0:pairs.length,result={};while(++index 1 + * + * _.head([]); + * // => undefined + */function head(array){return array&&array.length?array[0]:undefined$1;}/** + * Gets the index at which the first occurrence of `value` is found in `array` + * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * for equality comparisons. If `fromIndex` is negative, it's used as the + * offset from the end of `array`. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Array + * @param {Array} array The array to inspect. + * @param {*} value The value to search for. + * @param {number} [fromIndex=0] The index to search from. + * @returns {number} Returns the index of the matched value, else `-1`. + * @example + * + * _.indexOf([1, 2, 1, 2], 2); + * // => 1 + * + * // Search from the `fromIndex`. + * _.indexOf([1, 2, 1, 2], 2, 2); + * // => 3 + */function indexOf(array,value,fromIndex){var length=array==null?0:array.length;if(!length){return -1;}var index=fromIndex==null?0:toInteger(fromIndex);if(index<0){index=nativeMax(length+index,0);}return baseIndexOf(array,value,index);}/** + * Gets all but the last element of `array`. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Array + * @param {Array} array The array to query. + * @returns {Array} Returns the slice of `array`. + * @example + * + * _.initial([1, 2, 3]); + * // => [1, 2] + */function initial(array){var length=array==null?0:array.length;return length?baseSlice(array,0,-1):[];}/** + * Creates an array of unique values that are included in all given arrays + * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * for equality comparisons. The order and references of result values are + * determined by the first array. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Array + * @param {...Array} [arrays] The arrays to inspect. + * @returns {Array} Returns the new array of intersecting values. + * @example + * + * _.intersection([2, 1], [2, 3]); + * // => [2] + */var intersection=baseRest(function(arrays){var mapped=arrayMap(arrays,castArrayLikeObject);return mapped.length&&mapped[0]===arrays[0]?baseIntersection(mapped):[];});/** + * This method is like `_.intersection` except that it accepts `iteratee` + * which is invoked for each element of each `arrays` to generate the criterion + * by which they're compared. The order and references of result values are + * determined by the first array. The iteratee is invoked with one argument: + * (value). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {...Array} [arrays] The arrays to inspect. + * @param {Function} [iteratee=_.identity] The iteratee invoked per element. + * @returns {Array} Returns the new array of intersecting values. + * @example + * + * _.intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor); + * // => [2.1] + * + * // The `_.property` iteratee shorthand. + * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x'); + * // => [{ 'x': 1 }] + */var intersectionBy=baseRest(function(arrays){var iteratee=last(arrays),mapped=arrayMap(arrays,castArrayLikeObject);if(iteratee===last(mapped)){iteratee=undefined$1;}else {mapped.pop();}return mapped.length&&mapped[0]===arrays[0]?baseIntersection(mapped,getIteratee(iteratee,2)):[];});/** + * This method is like `_.intersection` except that it accepts `comparator` + * which is invoked to compare elements of `arrays`. The order and references + * of result values are determined by the first array. The comparator is + * invoked with two arguments: (arrVal, othVal). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {...Array} [arrays] The arrays to inspect. + * @param {Function} [comparator] The comparator invoked per element. + * @returns {Array} Returns the new array of intersecting values. + * @example + * + * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]; + * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }]; + * + * _.intersectionWith(objects, others, _.isEqual); + * // => [{ 'x': 1, 'y': 2 }] + */var intersectionWith=baseRest(function(arrays){var comparator=last(arrays),mapped=arrayMap(arrays,castArrayLikeObject);comparator=typeof comparator=='function'?comparator:undefined$1;if(comparator){mapped.pop();}return mapped.length&&mapped[0]===arrays[0]?baseIntersection(mapped,undefined$1,comparator):[];});/** + * Converts all elements in `array` into a string separated by `separator`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {Array} array The array to convert. + * @param {string} [separator=','] The element separator. + * @returns {string} Returns the joined string. + * @example + * + * _.join(['a', 'b', 'c'], '~'); + * // => 'a~b~c' + */function join(array,separator){return array==null?'':nativeJoin.call(array,separator);}/** + * Gets the last element of `array`. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Array + * @param {Array} array The array to query. + * @returns {*} Returns the last element of `array`. + * @example + * + * _.last([1, 2, 3]); + * // => 3 + */function last(array){var length=array==null?0:array.length;return length?array[length-1]:undefined$1;}/** + * This method is like `_.indexOf` except that it iterates over elements of + * `array` from right to left. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Array + * @param {Array} array The array to inspect. + * @param {*} value The value to search for. + * @param {number} [fromIndex=array.length-1] The index to search from. + * @returns {number} Returns the index of the matched value, else `-1`. + * @example + * + * _.lastIndexOf([1, 2, 1, 2], 2); + * // => 3 + * + * // Search from the `fromIndex`. + * _.lastIndexOf([1, 2, 1, 2], 2, 2); + * // => 1 + */function lastIndexOf(array,value,fromIndex){var length=array==null?0:array.length;if(!length){return -1;}var index=length;if(fromIndex!==undefined$1){index=toInteger(fromIndex);index=index<0?nativeMax(length+index,0):nativeMin(index,length-1);}return value===value?strictLastIndexOf(array,value,index):baseFindIndex(array,baseIsNaN,index,true);}/** + * Gets the element at index `n` of `array`. If `n` is negative, the nth + * element from the end is returned. + * + * @static + * @memberOf _ + * @since 4.11.0 + * @category Array + * @param {Array} array The array to query. + * @param {number} [n=0] The index of the element to return. + * @returns {*} Returns the nth element of `array`. + * @example + * + * var array = ['a', 'b', 'c', 'd']; + * + * _.nth(array, 1); + * // => 'b' + * + * _.nth(array, -2); + * // => 'c'; + */function nth(array,n){return array&&array.length?baseNth(array,toInteger(n)):undefined$1;}/** + * Removes all given values from `array` using + * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * for equality comparisons. + * + * **Note:** Unlike `_.without`, this method mutates `array`. Use `_.remove` + * to remove elements from an array by predicate. + * + * @static + * @memberOf _ + * @since 2.0.0 + * @category Array + * @param {Array} array The array to modify. + * @param {...*} [values] The values to remove. + * @returns {Array} Returns `array`. + * @example + * + * var array = ['a', 'b', 'c', 'a', 'b', 'c']; + * + * _.pull(array, 'a', 'c'); + * console.log(array); + * // => ['b', 'b'] + */var pull=baseRest(pullAll);/** + * This method is like `_.pull` except that it accepts an array of values to remove. + * + * **Note:** Unlike `_.difference`, this method mutates `array`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {Array} array The array to modify. + * @param {Array} values The values to remove. + * @returns {Array} Returns `array`. + * @example + * + * var array = ['a', 'b', 'c', 'a', 'b', 'c']; + * + * _.pullAll(array, ['a', 'c']); + * console.log(array); + * // => ['b', 'b'] + */function pullAll(array,values){return array&&array.length&&values&&values.length?basePullAll(array,values):array;}/** + * This method is like `_.pullAll` except that it accepts `iteratee` which is + * invoked for each element of `array` and `values` to generate the criterion + * by which they're compared. The iteratee is invoked with one argument: (value). + * + * **Note:** Unlike `_.differenceBy`, this method mutates `array`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {Array} array The array to modify. + * @param {Array} values The values to remove. + * @param {Function} [iteratee=_.identity] The iteratee invoked per element. + * @returns {Array} Returns `array`. + * @example + * + * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }]; + * + * _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x'); + * console.log(array); + * // => [{ 'x': 2 }] + */function pullAllBy(array,values,iteratee){return array&&array.length&&values&&values.length?basePullAll(array,values,getIteratee(iteratee,2)):array;}/** + * This method is like `_.pullAll` except that it accepts `comparator` which + * is invoked to compare elements of `array` to `values`. The comparator is + * invoked with two arguments: (arrVal, othVal). + * + * **Note:** Unlike `_.differenceWith`, this method mutates `array`. + * + * @static + * @memberOf _ + * @since 4.6.0 + * @category Array + * @param {Array} array The array to modify. + * @param {Array} values The values to remove. + * @param {Function} [comparator] The comparator invoked per element. + * @returns {Array} Returns `array`. + * @example + * + * var array = [{ 'x': 1, 'y': 2 }, { 'x': 3, 'y': 4 }, { 'x': 5, 'y': 6 }]; + * + * _.pullAllWith(array, [{ 'x': 3, 'y': 4 }], _.isEqual); + * console.log(array); + * // => [{ 'x': 1, 'y': 2 }, { 'x': 5, 'y': 6 }] + */function pullAllWith(array,values,comparator){return array&&array.length&&values&&values.length?basePullAll(array,values,undefined$1,comparator):array;}/** + * Removes elements from `array` corresponding to `indexes` and returns an + * array of removed elements. + * + * **Note:** Unlike `_.at`, this method mutates `array`. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Array + * @param {Array} array The array to modify. + * @param {...(number|number[])} [indexes] The indexes of elements to remove. + * @returns {Array} Returns the new array of removed elements. + * @example + * + * var array = ['a', 'b', 'c', 'd']; + * var pulled = _.pullAt(array, [1, 3]); + * + * console.log(array); + * // => ['a', 'c'] + * + * console.log(pulled); + * // => ['b', 'd'] + */var pullAt=flatRest(function(array,indexes){var length=array==null?0:array.length,result=baseAt(array,indexes);basePullAt(array,arrayMap(indexes,function(index){return isIndex(index,length)?+index:index;}).sort(compareAscending));return result;});/** + * Removes all elements from `array` that `predicate` returns truthy for + * and returns an array of the removed elements. The predicate is invoked + * with three arguments: (value, index, array). + * + * **Note:** Unlike `_.filter`, this method mutates `array`. Use `_.pull` + * to pull elements from an array by value. + * + * @static + * @memberOf _ + * @since 2.0.0 + * @category Array + * @param {Array} array The array to modify. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @returns {Array} Returns the new array of removed elements. + * @example + * + * var array = [1, 2, 3, 4]; + * var evens = _.remove(array, function(n) { + * return n % 2 == 0; + * }); + * + * console.log(array); + * // => [1, 3] + * + * console.log(evens); + * // => [2, 4] + */function remove(array,predicate){var result=[];if(!(array&&array.length)){return result;}var index=-1,indexes=[],length=array.length;predicate=getIteratee(predicate,3);while(++index [3, 2, 1] + * + * console.log(array); + * // => [3, 2, 1] + */function reverse(array){return array==null?array:nativeReverse.call(array);}/** + * Creates a slice of `array` from `start` up to, but not including, `end`. + * + * **Note:** This method is used instead of + * [`Array#slice`](https://mdn.io/Array/slice) to ensure dense arrays are + * returned. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Array + * @param {Array} array The array to slice. + * @param {number} [start=0] The start position. + * @param {number} [end=array.length] The end position. + * @returns {Array} Returns the slice of `array`. + */function slice(array,start,end){var length=array==null?0:array.length;if(!length){return [];}if(end&&typeof end!='number'&&isIterateeCall(array,start,end)){start=0;end=length;}else {start=start==null?0:toInteger(start);end=end===undefined$1?length:toInteger(end);}return baseSlice(array,start,end);}/** + * Uses a binary search to determine the lowest index at which `value` + * should be inserted into `array` in order to maintain its sort order. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Array + * @param {Array} array The sorted array to inspect. + * @param {*} value The value to evaluate. + * @returns {number} Returns the index at which `value` should be inserted + * into `array`. + * @example + * + * _.sortedIndex([30, 50], 40); + * // => 1 + */function sortedIndex(array,value){return baseSortedIndex(array,value);}/** + * This method is like `_.sortedIndex` except that it accepts `iteratee` + * which is invoked for `value` and each element of `array` to compute their + * sort ranking. The iteratee is invoked with one argument: (value). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {Array} array The sorted array to inspect. + * @param {*} value The value to evaluate. + * @param {Function} [iteratee=_.identity] The iteratee invoked per element. + * @returns {number} Returns the index at which `value` should be inserted + * into `array`. + * @example + * + * var objects = [{ 'x': 4 }, { 'x': 5 }]; + * + * _.sortedIndexBy(objects, { 'x': 4 }, function(o) { return o.x; }); + * // => 0 + * + * // The `_.property` iteratee shorthand. + * _.sortedIndexBy(objects, { 'x': 4 }, 'x'); + * // => 0 + */function sortedIndexBy(array,value,iteratee){return baseSortedIndexBy(array,value,getIteratee(iteratee,2));}/** + * This method is like `_.indexOf` except that it performs a binary + * search on a sorted `array`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {Array} array The array to inspect. + * @param {*} value The value to search for. + * @returns {number} Returns the index of the matched value, else `-1`. + * @example + * + * _.sortedIndexOf([4, 5, 5, 5, 6], 5); + * // => 1 + */function sortedIndexOf(array,value){var length=array==null?0:array.length;if(length){var index=baseSortedIndex(array,value);if(index 4 + */function sortedLastIndex(array,value){return baseSortedIndex(array,value,true);}/** + * This method is like `_.sortedLastIndex` except that it accepts `iteratee` + * which is invoked for `value` and each element of `array` to compute their + * sort ranking. The iteratee is invoked with one argument: (value). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {Array} array The sorted array to inspect. + * @param {*} value The value to evaluate. + * @param {Function} [iteratee=_.identity] The iteratee invoked per element. + * @returns {number} Returns the index at which `value` should be inserted + * into `array`. + * @example + * + * var objects = [{ 'x': 4 }, { 'x': 5 }]; + * + * _.sortedLastIndexBy(objects, { 'x': 4 }, function(o) { return o.x; }); + * // => 1 + * + * // The `_.property` iteratee shorthand. + * _.sortedLastIndexBy(objects, { 'x': 4 }, 'x'); + * // => 1 + */function sortedLastIndexBy(array,value,iteratee){return baseSortedIndexBy(array,value,getIteratee(iteratee,2),true);}/** + * This method is like `_.lastIndexOf` except that it performs a binary + * search on a sorted `array`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {Array} array The array to inspect. + * @param {*} value The value to search for. + * @returns {number} Returns the index of the matched value, else `-1`. + * @example + * + * _.sortedLastIndexOf([4, 5, 5, 5, 6], 5); + * // => 3 + */function sortedLastIndexOf(array,value){var length=array==null?0:array.length;if(length){var index=baseSortedIndex(array,value,true)-1;if(eq(array[index],value)){return index;}}return -1;}/** + * This method is like `_.uniq` except that it's designed and optimized + * for sorted arrays. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {Array} array The array to inspect. + * @returns {Array} Returns the new duplicate free array. + * @example + * + * _.sortedUniq([1, 1, 2]); + * // => [1, 2] + */function sortedUniq(array){return array&&array.length?baseSortedUniq(array):[];}/** + * This method is like `_.uniqBy` except that it's designed and optimized + * for sorted arrays. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {Array} array The array to inspect. + * @param {Function} [iteratee] The iteratee invoked per element. + * @returns {Array} Returns the new duplicate free array. + * @example + * + * _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor); + * // => [1.1, 2.3] + */function sortedUniqBy(array,iteratee){return array&&array.length?baseSortedUniq(array,getIteratee(iteratee,2)):[];}/** + * Gets all but the first element of `array`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {Array} array The array to query. + * @returns {Array} Returns the slice of `array`. + * @example + * + * _.tail([1, 2, 3]); + * // => [2, 3] + */function tail(array){var length=array==null?0:array.length;return length?baseSlice(array,1,length):[];}/** + * Creates a slice of `array` with `n` elements taken from the beginning. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Array + * @param {Array} array The array to query. + * @param {number} [n=1] The number of elements to take. + * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @returns {Array} Returns the slice of `array`. + * @example + * + * _.take([1, 2, 3]); + * // => [1] + * + * _.take([1, 2, 3], 2); + * // => [1, 2] + * + * _.take([1, 2, 3], 5); + * // => [1, 2, 3] + * + * _.take([1, 2, 3], 0); + * // => [] + */function take(array,n,guard){if(!(array&&array.length)){return [];}n=guard||n===undefined$1?1:toInteger(n);return baseSlice(array,0,n<0?0:n);}/** + * Creates a slice of `array` with `n` elements taken from the end. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Array + * @param {Array} array The array to query. + * @param {number} [n=1] The number of elements to take. + * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @returns {Array} Returns the slice of `array`. + * @example + * + * _.takeRight([1, 2, 3]); + * // => [3] + * + * _.takeRight([1, 2, 3], 2); + * // => [2, 3] + * + * _.takeRight([1, 2, 3], 5); + * // => [1, 2, 3] + * + * _.takeRight([1, 2, 3], 0); + * // => [] + */function takeRight(array,n,guard){var length=array==null?0:array.length;if(!length){return [];}n=guard||n===undefined$1?1:toInteger(n);n=length-n;return baseSlice(array,n<0?0:n,length);}/** + * Creates a slice of `array` with elements taken from the end. Elements are + * taken until `predicate` returns falsey. The predicate is invoked with + * three arguments: (value, index, array). + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Array + * @param {Array} array The array to query. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @returns {Array} Returns the slice of `array`. + * @example + * + * var users = [ + * { 'user': 'barney', 'active': true }, + * { 'user': 'fred', 'active': false }, + * { 'user': 'pebbles', 'active': false } + * ]; + * + * _.takeRightWhile(users, function(o) { return !o.active; }); + * // => objects for ['fred', 'pebbles'] + * + * // The `_.matches` iteratee shorthand. + * _.takeRightWhile(users, { 'user': 'pebbles', 'active': false }); + * // => objects for ['pebbles'] + * + * // The `_.matchesProperty` iteratee shorthand. + * _.takeRightWhile(users, ['active', false]); + * // => objects for ['fred', 'pebbles'] + * + * // The `_.property` iteratee shorthand. + * _.takeRightWhile(users, 'active'); + * // => [] + */function takeRightWhile(array,predicate){return array&&array.length?baseWhile(array,getIteratee(predicate,3),false,true):[];}/** + * Creates a slice of `array` with elements taken from the beginning. Elements + * are taken until `predicate` returns falsey. The predicate is invoked with + * three arguments: (value, index, array). + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Array + * @param {Array} array The array to query. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @returns {Array} Returns the slice of `array`. + * @example + * + * var users = [ + * { 'user': 'barney', 'active': false }, + * { 'user': 'fred', 'active': false }, + * { 'user': 'pebbles', 'active': true } + * ]; + * + * _.takeWhile(users, function(o) { return !o.active; }); + * // => objects for ['barney', 'fred'] + * + * // The `_.matches` iteratee shorthand. + * _.takeWhile(users, { 'user': 'barney', 'active': false }); + * // => objects for ['barney'] + * + * // The `_.matchesProperty` iteratee shorthand. + * _.takeWhile(users, ['active', false]); + * // => objects for ['barney', 'fred'] + * + * // The `_.property` iteratee shorthand. + * _.takeWhile(users, 'active'); + * // => [] + */function takeWhile(array,predicate){return array&&array.length?baseWhile(array,getIteratee(predicate,3)):[];}/** + * Creates an array of unique values, in order, from all given arrays using + * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * for equality comparisons. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Array + * @param {...Array} [arrays] The arrays to inspect. + * @returns {Array} Returns the new array of combined values. + * @example + * + * _.union([2], [1, 2]); + * // => [2, 1] + */var union=baseRest(function(arrays){return baseUniq(baseFlatten(arrays,1,isArrayLikeObject,true));});/** + * This method is like `_.union` except that it accepts `iteratee` which is + * invoked for each element of each `arrays` to generate the criterion by + * which uniqueness is computed. Result values are chosen from the first + * array in which the value occurs. The iteratee is invoked with one argument: + * (value). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {...Array} [arrays] The arrays to inspect. + * @param {Function} [iteratee=_.identity] The iteratee invoked per element. + * @returns {Array} Returns the new array of combined values. + * @example + * + * _.unionBy([2.1], [1.2, 2.3], Math.floor); + * // => [2.1, 1.2] + * + * // The `_.property` iteratee shorthand. + * _.unionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x'); + * // => [{ 'x': 1 }, { 'x': 2 }] + */var unionBy=baseRest(function(arrays){var iteratee=last(arrays);if(isArrayLikeObject(iteratee)){iteratee=undefined$1;}return baseUniq(baseFlatten(arrays,1,isArrayLikeObject,true),getIteratee(iteratee,2));});/** + * This method is like `_.union` except that it accepts `comparator` which + * is invoked to compare elements of `arrays`. Result values are chosen from + * the first array in which the value occurs. The comparator is invoked + * with two arguments: (arrVal, othVal). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {...Array} [arrays] The arrays to inspect. + * @param {Function} [comparator] The comparator invoked per element. + * @returns {Array} Returns the new array of combined values. + * @example + * + * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]; + * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }]; + * + * _.unionWith(objects, others, _.isEqual); + * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }] + */var unionWith=baseRest(function(arrays){var comparator=last(arrays);comparator=typeof comparator=='function'?comparator:undefined$1;return baseUniq(baseFlatten(arrays,1,isArrayLikeObject,true),undefined$1,comparator);});/** + * Creates a duplicate-free version of an array, using + * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * for equality comparisons, in which only the first occurrence of each element + * is kept. The order of result values is determined by the order they occur + * in the array. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Array + * @param {Array} array The array to inspect. + * @returns {Array} Returns the new duplicate free array. + * @example + * + * _.uniq([2, 1, 2]); + * // => [2, 1] + */function uniq(array){return array&&array.length?baseUniq(array):[];}/** + * This method is like `_.uniq` except that it accepts `iteratee` which is + * invoked for each element in `array` to generate the criterion by which + * uniqueness is computed. The order of result values is determined by the + * order they occur in the array. The iteratee is invoked with one argument: + * (value). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {Array} array The array to inspect. + * @param {Function} [iteratee=_.identity] The iteratee invoked per element. + * @returns {Array} Returns the new duplicate free array. + * @example + * + * _.uniqBy([2.1, 1.2, 2.3], Math.floor); + * // => [2.1, 1.2] + * + * // The `_.property` iteratee shorthand. + * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x'); + * // => [{ 'x': 1 }, { 'x': 2 }] + */function uniqBy(array,iteratee){return array&&array.length?baseUniq(array,getIteratee(iteratee,2)):[];}/** + * This method is like `_.uniq` except that it accepts `comparator` which + * is invoked to compare elements of `array`. The order of result values is + * determined by the order they occur in the array.The comparator is invoked + * with two arguments: (arrVal, othVal). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {Array} array The array to inspect. + * @param {Function} [comparator] The comparator invoked per element. + * @returns {Array} Returns the new duplicate free array. + * @example + * + * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }]; + * + * _.uniqWith(objects, _.isEqual); + * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }] + */function uniqWith(array,comparator){comparator=typeof comparator=='function'?comparator:undefined$1;return array&&array.length?baseUniq(array,undefined$1,comparator):[];}/** + * This method is like `_.zip` except that it accepts an array of grouped + * elements and creates an array regrouping the elements to their pre-zip + * configuration. + * + * @static + * @memberOf _ + * @since 1.2.0 + * @category Array + * @param {Array} array The array of grouped elements to process. + * @returns {Array} Returns the new array of regrouped elements. + * @example + * + * var zipped = _.zip(['a', 'b'], [1, 2], [true, false]); + * // => [['a', 1, true], ['b', 2, false]] + * + * _.unzip(zipped); + * // => [['a', 'b'], [1, 2], [true, false]] + */function unzip(array){if(!(array&&array.length)){return [];}var length=0;array=arrayFilter(array,function(group){if(isArrayLikeObject(group)){length=nativeMax(group.length,length);return true;}});return baseTimes(length,function(index){return arrayMap(array,baseProperty(index));});}/** + * This method is like `_.unzip` except that it accepts `iteratee` to specify + * how regrouped values should be combined. The iteratee is invoked with the + * elements of each group: (...group). + * + * @static + * @memberOf _ + * @since 3.8.0 + * @category Array + * @param {Array} array The array of grouped elements to process. + * @param {Function} [iteratee=_.identity] The function to combine + * regrouped values. + * @returns {Array} Returns the new array of regrouped elements. + * @example + * + * var zipped = _.zip([1, 2], [10, 20], [100, 200]); + * // => [[1, 10, 100], [2, 20, 200]] + * + * _.unzipWith(zipped, _.add); + * // => [3, 30, 300] + */function unzipWith(array,iteratee){if(!(array&&array.length)){return [];}var result=unzip(array);if(iteratee==null){return result;}return arrayMap(result,function(group){return apply(iteratee,undefined$1,group);});}/** + * Creates an array excluding all given values using + * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * for equality comparisons. + * + * **Note:** Unlike `_.pull`, this method returns a new array. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Array + * @param {Array} array The array to inspect. + * @param {...*} [values] The values to exclude. + * @returns {Array} Returns the new array of filtered values. + * @see _.difference, _.xor + * @example + * + * _.without([2, 1, 2, 3], 1, 2); + * // => [3] + */var without=baseRest(function(array,values){return isArrayLikeObject(array)?baseDifference(array,values):[];});/** + * Creates an array of unique values that is the + * [symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference) + * of the given arrays. The order of result values is determined by the order + * they occur in the arrays. + * + * @static + * @memberOf _ + * @since 2.4.0 + * @category Array + * @param {...Array} [arrays] The arrays to inspect. + * @returns {Array} Returns the new array of filtered values. + * @see _.difference, _.without + * @example + * + * _.xor([2, 1], [2, 3]); + * // => [1, 3] + */var xor=baseRest(function(arrays){return baseXor(arrayFilter(arrays,isArrayLikeObject));});/** + * This method is like `_.xor` except that it accepts `iteratee` which is + * invoked for each element of each `arrays` to generate the criterion by + * which by which they're compared. The order of result values is determined + * by the order they occur in the arrays. The iteratee is invoked with one + * argument: (value). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {...Array} [arrays] The arrays to inspect. + * @param {Function} [iteratee=_.identity] The iteratee invoked per element. + * @returns {Array} Returns the new array of filtered values. + * @example + * + * _.xorBy([2.1, 1.2], [2.3, 3.4], Math.floor); + * // => [1.2, 3.4] + * + * // The `_.property` iteratee shorthand. + * _.xorBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x'); + * // => [{ 'x': 2 }] + */var xorBy=baseRest(function(arrays){var iteratee=last(arrays);if(isArrayLikeObject(iteratee)){iteratee=undefined$1;}return baseXor(arrayFilter(arrays,isArrayLikeObject),getIteratee(iteratee,2));});/** + * This method is like `_.xor` except that it accepts `comparator` which is + * invoked to compare elements of `arrays`. The order of result values is + * determined by the order they occur in the arrays. The comparator is invoked + * with two arguments: (arrVal, othVal). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {...Array} [arrays] The arrays to inspect. + * @param {Function} [comparator] The comparator invoked per element. + * @returns {Array} Returns the new array of filtered values. + * @example + * + * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]; + * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }]; + * + * _.xorWith(objects, others, _.isEqual); + * // => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }] + */var xorWith=baseRest(function(arrays){var comparator=last(arrays);comparator=typeof comparator=='function'?comparator:undefined$1;return baseXor(arrayFilter(arrays,isArrayLikeObject),undefined$1,comparator);});/** + * Creates an array of grouped elements, the first of which contains the + * first elements of the given arrays, the second of which contains the + * second elements of the given arrays, and so on. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Array + * @param {...Array} [arrays] The arrays to process. + * @returns {Array} Returns the new array of grouped elements. + * @example + * + * _.zip(['a', 'b'], [1, 2], [true, false]); + * // => [['a', 1, true], ['b', 2, false]] + */var zip=baseRest(unzip);/** + * This method is like `_.fromPairs` except that it accepts two arrays, + * one of property identifiers and one of corresponding values. + * + * @static + * @memberOf _ + * @since 0.4.0 + * @category Array + * @param {Array} [props=[]] The property identifiers. + * @param {Array} [values=[]] The property values. + * @returns {Object} Returns the new object. + * @example + * + * _.zipObject(['a', 'b'], [1, 2]); + * // => { 'a': 1, 'b': 2 } + */function zipObject(props,values){return baseZipObject(props||[],values||[],assignValue);}/** + * This method is like `_.zipObject` except that it supports property paths. + * + * @static + * @memberOf _ + * @since 4.1.0 + * @category Array + * @param {Array} [props=[]] The property identifiers. + * @param {Array} [values=[]] The property values. + * @returns {Object} Returns the new object. + * @example + * + * _.zipObjectDeep(['a.b[0].c', 'a.b[1].d'], [1, 2]); + * // => { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } } + */function zipObjectDeep(props,values){return baseZipObject(props||[],values||[],baseSet);}/** + * This method is like `_.zip` except that it accepts `iteratee` to specify + * how grouped values should be combined. The iteratee is invoked with the + * elements of each group: (...group). + * + * @static + * @memberOf _ + * @since 3.8.0 + * @category Array + * @param {...Array} [arrays] The arrays to process. + * @param {Function} [iteratee=_.identity] The function to combine + * grouped values. + * @returns {Array} Returns the new array of grouped elements. + * @example + * + * _.zipWith([1, 2], [10, 20], [100, 200], function(a, b, c) { + * return a + b + c; + * }); + * // => [111, 222] + */var zipWith=baseRest(function(arrays){var length=arrays.length,iteratee=length>1?arrays[length-1]:undefined$1;iteratee=typeof iteratee=='function'?(arrays.pop(),iteratee):undefined$1;return unzipWith(arrays,iteratee);});/*------------------------------------------------------------------------*/ /** + * Creates a `lodash` wrapper instance that wraps `value` with explicit method + * chain sequences enabled. The result of such sequences must be unwrapped + * with `_#value`. + * + * @static + * @memberOf _ + * @since 1.3.0 + * @category Seq + * @param {*} value The value to wrap. + * @returns {Object} Returns the new `lodash` wrapper instance. + * @example + * + * var users = [ + * { 'user': 'barney', 'age': 36 }, + * { 'user': 'fred', 'age': 40 }, + * { 'user': 'pebbles', 'age': 1 } + * ]; + * + * var youngest = _ + * .chain(users) + * .sortBy('age') + * .map(function(o) { + * return o.user + ' is ' + o.age; + * }) + * .head() + * .value(); + * // => 'pebbles is 1' + */function chain(value){var result=lodash(value);result.__chain__=true;return result;}/** + * This method invokes `interceptor` and returns `value`. The interceptor + * is invoked with one argument; (value). The purpose of this method is to + * "tap into" a method chain sequence in order to modify intermediate results. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Seq + * @param {*} value The value to provide to `interceptor`. + * @param {Function} interceptor The function to invoke. + * @returns {*} Returns `value`. + * @example + * + * _([1, 2, 3]) + * .tap(function(array) { + * // Mutate input array. + * array.pop(); + * }) + * .reverse() + * .value(); + * // => [2, 1] + */function tap(value,interceptor){interceptor(value);return value;}/** + * This method is like `_.tap` except that it returns the result of `interceptor`. + * The purpose of this method is to "pass thru" values replacing intermediate + * results in a method chain sequence. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Seq + * @param {*} value The value to provide to `interceptor`. + * @param {Function} interceptor The function to invoke. + * @returns {*} Returns the result of `interceptor`. + * @example + * + * _(' abc ') + * .chain() + * .trim() + * .thru(function(value) { + * return [value]; + * }) + * .value(); + * // => ['abc'] + */function thru(value,interceptor){return interceptor(value);}/** + * This method is the wrapper version of `_.at`. + * + * @name at + * @memberOf _ + * @since 1.0.0 + * @category Seq + * @param {...(string|string[])} [paths] The property paths to pick. + * @returns {Object} Returns the new `lodash` wrapper instance. + * @example + * + * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] }; + * + * _(object).at(['a[0].b.c', 'a[1]']).value(); + * // => [3, 4] + */var wrapperAt=flatRest(function(paths){var length=paths.length,start=length?paths[0]:0,value=this.__wrapped__,interceptor=function(object){return baseAt(object,paths);};if(length>1||this.__actions__.length||!(value instanceof LazyWrapper)||!isIndex(start)){return this.thru(interceptor);}value=value.slice(start,+start+(length?1:0));value.__actions__.push({'func':thru,'args':[interceptor],'thisArg':undefined$1});return new LodashWrapper(value,this.__chain__).thru(function(array){if(length&&!array.length){array.push(undefined$1);}return array;});});/** + * Creates a `lodash` wrapper instance with explicit method chain sequences enabled. + * + * @name chain + * @memberOf _ + * @since 0.1.0 + * @category Seq + * @returns {Object} Returns the new `lodash` wrapper instance. + * @example + * + * var users = [ + * { 'user': 'barney', 'age': 36 }, + * { 'user': 'fred', 'age': 40 } + * ]; + * + * // A sequence without explicit chaining. + * _(users).head(); + * // => { 'user': 'barney', 'age': 36 } + * + * // A sequence with explicit chaining. + * _(users) + * .chain() + * .head() + * .pick('user') + * .value(); + * // => { 'user': 'barney' } + */function wrapperChain(){return chain(this);}/** + * Executes the chain sequence and returns the wrapped result. + * + * @name commit + * @memberOf _ + * @since 3.2.0 + * @category Seq + * @returns {Object} Returns the new `lodash` wrapper instance. + * @example + * + * var array = [1, 2]; + * var wrapped = _(array).push(3); + * + * console.log(array); + * // => [1, 2] + * + * wrapped = wrapped.commit(); + * console.log(array); + * // => [1, 2, 3] + * + * wrapped.last(); + * // => 3 + * + * console.log(array); + * // => [1, 2, 3] + */function wrapperCommit(){return new LodashWrapper(this.value(),this.__chain__);}/** + * Gets the next value on a wrapped object following the + * [iterator protocol](https://mdn.io/iteration_protocols#iterator). + * + * @name next + * @memberOf _ + * @since 4.0.0 + * @category Seq + * @returns {Object} Returns the next iterator value. + * @example + * + * var wrapped = _([1, 2]); + * + * wrapped.next(); + * // => { 'done': false, 'value': 1 } + * + * wrapped.next(); + * // => { 'done': false, 'value': 2 } + * + * wrapped.next(); + * // => { 'done': true, 'value': undefined } + */function wrapperNext(){if(this.__values__===undefined$1){this.__values__=toArray(this.value());}var done=this.__index__>=this.__values__.length,value=done?undefined$1:this.__values__[this.__index__++];return {'done':done,'value':value};}/** + * Enables the wrapper to be iterable. + * + * @name Symbol.iterator + * @memberOf _ + * @since 4.0.0 + * @category Seq + * @returns {Object} Returns the wrapper object. + * @example + * + * var wrapped = _([1, 2]); + * + * wrapped[Symbol.iterator]() === wrapped; + * // => true + * + * Array.from(wrapped); + * // => [1, 2] + */function wrapperToIterator(){return this;}/** + * Creates a clone of the chain sequence planting `value` as the wrapped value. + * + * @name plant + * @memberOf _ + * @since 3.2.0 + * @category Seq + * @param {*} value The value to plant. + * @returns {Object} Returns the new `lodash` wrapper instance. + * @example + * + * function square(n) { + * return n * n; + * } + * + * var wrapped = _([1, 2]).map(square); + * var other = wrapped.plant([3, 4]); + * + * other.value(); + * // => [9, 16] + * + * wrapped.value(); + * // => [1, 4] + */function wrapperPlant(value){var result,parent=this;while(parent instanceof baseLodash){var clone=wrapperClone(parent);clone.__index__=0;clone.__values__=undefined$1;if(result){previous.__wrapped__=clone;}else {result=clone;}var previous=clone;parent=parent.__wrapped__;}previous.__wrapped__=value;return result;}/** + * This method is the wrapper version of `_.reverse`. + * + * **Note:** This method mutates the wrapped array. + * + * @name reverse + * @memberOf _ + * @since 0.1.0 + * @category Seq + * @returns {Object} Returns the new `lodash` wrapper instance. + * @example + * + * var array = [1, 2, 3]; + * + * _(array).reverse().value() + * // => [3, 2, 1] + * + * console.log(array); + * // => [3, 2, 1] + */function wrapperReverse(){var value=this.__wrapped__;if(value instanceof LazyWrapper){var wrapped=value;if(this.__actions__.length){wrapped=new LazyWrapper(this);}wrapped=wrapped.reverse();wrapped.__actions__.push({'func':thru,'args':[reverse],'thisArg':undefined$1});return new LodashWrapper(wrapped,this.__chain__);}return this.thru(reverse);}/** + * Executes the chain sequence to resolve the unwrapped value. + * + * @name value + * @memberOf _ + * @since 0.1.0 + * @alias toJSON, valueOf + * @category Seq + * @returns {*} Returns the resolved unwrapped value. + * @example + * + * _([1, 2, 3]).value(); + * // => [1, 2, 3] + */function wrapperValue(){return baseWrapperValue(this.__wrapped__,this.__actions__);}/*------------------------------------------------------------------------*/ /** + * Creates an object composed of keys generated from the results of running + * each element of `collection` thru `iteratee`. The corresponding value of + * each key is the number of times the key was returned by `iteratee`. The + * iteratee is invoked with one argument: (value). + * + * @static + * @memberOf _ + * @since 0.5.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [iteratee=_.identity] The iteratee to transform keys. + * @returns {Object} Returns the composed aggregate object. + * @example + * + * _.countBy([6.1, 4.2, 6.3], Math.floor); + * // => { '4': 1, '6': 2 } + * + * // The `_.property` iteratee shorthand. + * _.countBy(['one', 'two', 'three'], 'length'); + * // => { '3': 2, '5': 1 } + */var countBy=createAggregator(function(result,value,key){if(hasOwnProperty.call(result,key)){++result[key];}else {baseAssignValue(result,key,1);}});/** + * Checks if `predicate` returns truthy for **all** elements of `collection`. + * Iteration is stopped once `predicate` returns falsey. The predicate is + * invoked with three arguments: (value, index|key, collection). + * + * **Note:** This method returns `true` for + * [empty collections](https://en.wikipedia.org/wiki/Empty_set) because + * [everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) of + * elements of empty collections. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @returns {boolean} Returns `true` if all elements pass the predicate check, + * else `false`. + * @example + * + * _.every([true, 1, null, 'yes'], Boolean); + * // => false + * + * var users = [ + * { 'user': 'barney', 'age': 36, 'active': false }, + * { 'user': 'fred', 'age': 40, 'active': false } + * ]; + * + * // The `_.matches` iteratee shorthand. + * _.every(users, { 'user': 'barney', 'active': false }); + * // => false + * + * // The `_.matchesProperty` iteratee shorthand. + * _.every(users, ['active', false]); + * // => true + * + * // The `_.property` iteratee shorthand. + * _.every(users, 'active'); + * // => false + */function every(collection,predicate,guard){var func=isArray(collection)?arrayEvery:baseEvery;if(guard&&isIterateeCall(collection,predicate,guard)){predicate=undefined$1;}return func(collection,getIteratee(predicate,3));}/** + * Iterates over elements of `collection`, returning an array of all elements + * `predicate` returns truthy for. The predicate is invoked with three + * arguments: (value, index|key, collection). + * + * **Note:** Unlike `_.remove`, this method returns a new array. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @returns {Array} Returns the new filtered array. + * @see _.reject + * @example + * + * var users = [ + * { 'user': 'barney', 'age': 36, 'active': true }, + * { 'user': 'fred', 'age': 40, 'active': false } + * ]; + * + * _.filter(users, function(o) { return !o.active; }); + * // => objects for ['fred'] + * + * // The `_.matches` iteratee shorthand. + * _.filter(users, { 'age': 36, 'active': true }); + * // => objects for ['barney'] + * + * // The `_.matchesProperty` iteratee shorthand. + * _.filter(users, ['active', false]); + * // => objects for ['fred'] + * + * // The `_.property` iteratee shorthand. + * _.filter(users, 'active'); + * // => objects for ['barney'] + */function filter(collection,predicate){var func=isArray(collection)?arrayFilter:baseFilter;return func(collection,getIteratee(predicate,3));}/** + * Iterates over elements of `collection`, returning the first element + * `predicate` returns truthy for. The predicate is invoked with three + * arguments: (value, index|key, collection). + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Collection + * @param {Array|Object} collection The collection to inspect. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @param {number} [fromIndex=0] The index to search from. + * @returns {*} Returns the matched element, else `undefined`. + * @example + * + * var users = [ + * { 'user': 'barney', 'age': 36, 'active': true }, + * { 'user': 'fred', 'age': 40, 'active': false }, + * { 'user': 'pebbles', 'age': 1, 'active': true } + * ]; + * + * _.find(users, function(o) { return o.age < 40; }); + * // => object for 'barney' + * + * // The `_.matches` iteratee shorthand. + * _.find(users, { 'age': 1, 'active': true }); + * // => object for 'pebbles' + * + * // The `_.matchesProperty` iteratee shorthand. + * _.find(users, ['active', false]); + * // => object for 'fred' + * + * // The `_.property` iteratee shorthand. + * _.find(users, 'active'); + * // => object for 'barney' + */var find=createFind(findIndex);/** + * This method is like `_.find` except that it iterates over elements of + * `collection` from right to left. + * + * @static + * @memberOf _ + * @since 2.0.0 + * @category Collection + * @param {Array|Object} collection The collection to inspect. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @param {number} [fromIndex=collection.length-1] The index to search from. + * @returns {*} Returns the matched element, else `undefined`. + * @example + * + * _.findLast([1, 2, 3, 4], function(n) { + * return n % 2 == 1; + * }); + * // => 3 + */var findLast=createFind(findLastIndex);/** + * Creates a flattened array of values by running each element in `collection` + * thru `iteratee` and flattening the mapped results. The iteratee is invoked + * with three arguments: (value, index|key, collection). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @returns {Array} Returns the new flattened array. + * @example + * + * function duplicate(n) { + * return [n, n]; + * } + * + * _.flatMap([1, 2], duplicate); + * // => [1, 1, 2, 2] + */function flatMap(collection,iteratee){return baseFlatten(map(collection,iteratee),1);}/** + * This method is like `_.flatMap` except that it recursively flattens the + * mapped results. + * + * @static + * @memberOf _ + * @since 4.7.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @returns {Array} Returns the new flattened array. + * @example + * + * function duplicate(n) { + * return [[[n, n]]]; + * } + * + * _.flatMapDeep([1, 2], duplicate); + * // => [1, 1, 2, 2] + */function flatMapDeep(collection,iteratee){return baseFlatten(map(collection,iteratee),INFINITY);}/** + * This method is like `_.flatMap` except that it recursively flattens the + * mapped results up to `depth` times. + * + * @static + * @memberOf _ + * @since 4.7.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @param {number} [depth=1] The maximum recursion depth. + * @returns {Array} Returns the new flattened array. + * @example + * + * function duplicate(n) { + * return [[[n, n]]]; + * } + * + * _.flatMapDepth([1, 2], duplicate, 2); + * // => [[1, 1], [2, 2]] + */function flatMapDepth(collection,iteratee,depth){depth=depth===undefined$1?1:toInteger(depth);return baseFlatten(map(collection,iteratee),depth);}/** + * Iterates over elements of `collection` and invokes `iteratee` for each element. + * The iteratee is invoked with three arguments: (value, index|key, collection). + * Iteratee functions may exit iteration early by explicitly returning `false`. + * + * **Note:** As with other "Collections" methods, objects with a "length" + * property are iterated like arrays. To avoid this behavior use `_.forIn` + * or `_.forOwn` for object iteration. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @alias each + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @returns {Array|Object} Returns `collection`. + * @see _.forEachRight + * @example + * + * _.forEach([1, 2], function(value) { + * console.log(value); + * }); + * // => Logs `1` then `2`. + * + * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) { + * console.log(key); + * }); + * // => Logs 'a' then 'b' (iteration order is not guaranteed). + */function forEach(collection,iteratee){var func=isArray(collection)?arrayEach:baseEach;return func(collection,getIteratee(iteratee,3));}/** + * This method is like `_.forEach` except that it iterates over elements of + * `collection` from right to left. + * + * @static + * @memberOf _ + * @since 2.0.0 + * @alias eachRight + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @returns {Array|Object} Returns `collection`. + * @see _.forEach + * @example + * + * _.forEachRight([1, 2], function(value) { + * console.log(value); + * }); + * // => Logs `2` then `1`. + */function forEachRight(collection,iteratee){var func=isArray(collection)?arrayEachRight:baseEachRight;return func(collection,getIteratee(iteratee,3));}/** + * Creates an object composed of keys generated from the results of running + * each element of `collection` thru `iteratee`. The order of grouped values + * is determined by the order they occur in `collection`. The corresponding + * value of each key is an array of elements responsible for generating the + * key. The iteratee is invoked with one argument: (value). + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [iteratee=_.identity] The iteratee to transform keys. + * @returns {Object} Returns the composed aggregate object. + * @example + * + * _.groupBy([6.1, 4.2, 6.3], Math.floor); + * // => { '4': [4.2], '6': [6.1, 6.3] } + * + * // The `_.property` iteratee shorthand. + * _.groupBy(['one', 'two', 'three'], 'length'); + * // => { '3': ['one', 'two'], '5': ['three'] } + */var groupBy=createAggregator(function(result,value,key){if(hasOwnProperty.call(result,key)){result[key].push(value);}else {baseAssignValue(result,key,[value]);}});/** + * Checks if `value` is in `collection`. If `collection` is a string, it's + * checked for a substring of `value`, otherwise + * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * is used for equality comparisons. If `fromIndex` is negative, it's used as + * the offset from the end of `collection`. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Collection + * @param {Array|Object|string} collection The collection to inspect. + * @param {*} value The value to search for. + * @param {number} [fromIndex=0] The index to search from. + * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`. + * @returns {boolean} Returns `true` if `value` is found, else `false`. + * @example + * + * _.includes([1, 2, 3], 1); + * // => true + * + * _.includes([1, 2, 3], 1, 2); + * // => false + * + * _.includes({ 'a': 1, 'b': 2 }, 1); + * // => true + * + * _.includes('abcd', 'bc'); + * // => true + */function includes(collection,value,fromIndex,guard){collection=isArrayLike(collection)?collection:values(collection);fromIndex=fromIndex&&!guard?toInteger(fromIndex):0;var length=collection.length;if(fromIndex<0){fromIndex=nativeMax(length+fromIndex,0);}return isString(collection)?fromIndex<=length&&collection.indexOf(value,fromIndex)>-1:!!length&&baseIndexOf(collection,value,fromIndex)>-1;}/** + * Invokes the method at `path` of each element in `collection`, returning + * an array of the results of each invoked method. Any additional arguments + * are provided to each invoked method. If `path` is a function, it's invoked + * for, and `this` bound to, each element in `collection`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Array|Function|string} path The path of the method to invoke or + * the function invoked per iteration. + * @param {...*} [args] The arguments to invoke each method with. + * @returns {Array} Returns the array of results. + * @example + * + * _.invokeMap([[5, 1, 7], [3, 2, 1]], 'sort'); + * // => [[1, 5, 7], [1, 2, 3]] + * + * _.invokeMap([123, 456], String.prototype.split, ''); + * // => [['1', '2', '3'], ['4', '5', '6']] + */var invokeMap=baseRest(function(collection,path,args){var index=-1,isFunc=typeof path=='function',result=isArrayLike(collection)?Array(collection.length):[];baseEach(collection,function(value){result[++index]=isFunc?apply(path,value,args):baseInvoke(value,path,args);});return result;});/** + * Creates an object composed of keys generated from the results of running + * each element of `collection` thru `iteratee`. The corresponding value of + * each key is the last element responsible for generating the key. The + * iteratee is invoked with one argument: (value). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [iteratee=_.identity] The iteratee to transform keys. + * @returns {Object} Returns the composed aggregate object. + * @example + * + * var array = [ + * { 'dir': 'left', 'code': 97 }, + * { 'dir': 'right', 'code': 100 } + * ]; + * + * _.keyBy(array, function(o) { + * return String.fromCharCode(o.code); + * }); + * // => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } } + * + * _.keyBy(array, 'dir'); + * // => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } } + */var keyBy=createAggregator(function(result,value,key){baseAssignValue(result,key,value);});/** + * Creates an array of values by running each element in `collection` thru + * `iteratee`. The iteratee is invoked with three arguments: + * (value, index|key, collection). + * + * Many lodash methods are guarded to work as iteratees for methods like + * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`. + * + * The guarded methods are: + * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`, + * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`, + * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`, + * `template`, `trim`, `trimEnd`, `trimStart`, and `words` + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @returns {Array} Returns the new mapped array. + * @example + * + * function square(n) { + * return n * n; + * } + * + * _.map([4, 8], square); + * // => [16, 64] + * + * _.map({ 'a': 4, 'b': 8 }, square); + * // => [16, 64] (iteration order is not guaranteed) + * + * var users = [ + * { 'user': 'barney' }, + * { 'user': 'fred' } + * ]; + * + * // The `_.property` iteratee shorthand. + * _.map(users, 'user'); + * // => ['barney', 'fred'] + */function map(collection,iteratee){var func=isArray(collection)?arrayMap:baseMap;return func(collection,getIteratee(iteratee,3));}/** + * This method is like `_.sortBy` except that it allows specifying the sort + * orders of the iteratees to sort by. If `orders` is unspecified, all values + * are sorted in ascending order. Otherwise, specify an order of "desc" for + * descending or "asc" for ascending sort order of corresponding values. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]] + * The iteratees to sort by. + * @param {string[]} [orders] The sort orders of `iteratees`. + * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`. + * @returns {Array} Returns the new sorted array. + * @example + * + * var users = [ + * { 'user': 'fred', 'age': 48 }, + * { 'user': 'barney', 'age': 34 }, + * { 'user': 'fred', 'age': 40 }, + * { 'user': 'barney', 'age': 36 } + * ]; + * + * // Sort by `user` in ascending order and by `age` in descending order. + * _.orderBy(users, ['user', 'age'], ['asc', 'desc']); + * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]] + */function orderBy(collection,iteratees,orders,guard){if(collection==null){return [];}if(!isArray(iteratees)){iteratees=iteratees==null?[]:[iteratees];}orders=guard?undefined$1:orders;if(!isArray(orders)){orders=orders==null?[]:[orders];}return baseOrderBy(collection,iteratees,orders);}/** + * Creates an array of elements split into two groups, the first of which + * contains elements `predicate` returns truthy for, the second of which + * contains elements `predicate` returns falsey for. The predicate is + * invoked with one argument: (value). + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @returns {Array} Returns the array of grouped elements. + * @example + * + * var users = [ + * { 'user': 'barney', 'age': 36, 'active': false }, + * { 'user': 'fred', 'age': 40, 'active': true }, + * { 'user': 'pebbles', 'age': 1, 'active': false } + * ]; + * + * _.partition(users, function(o) { return o.active; }); + * // => objects for [['fred'], ['barney', 'pebbles']] + * + * // The `_.matches` iteratee shorthand. + * _.partition(users, { 'age': 1, 'active': false }); + * // => objects for [['pebbles'], ['barney', 'fred']] + * + * // The `_.matchesProperty` iteratee shorthand. + * _.partition(users, ['active', false]); + * // => objects for [['barney', 'pebbles'], ['fred']] + * + * // The `_.property` iteratee shorthand. + * _.partition(users, 'active'); + * // => objects for [['fred'], ['barney', 'pebbles']] + */var partition=createAggregator(function(result,value,key){result[key?0:1].push(value);},function(){return [[],[]];});/** + * Reduces `collection` to a value which is the accumulated result of running + * each element in `collection` thru `iteratee`, where each successive + * invocation is supplied the return value of the previous. If `accumulator` + * is not given, the first element of `collection` is used as the initial + * value. The iteratee is invoked with four arguments: + * (accumulator, value, index|key, collection). + * + * Many lodash methods are guarded to work as iteratees for methods like + * `_.reduce`, `_.reduceRight`, and `_.transform`. + * + * The guarded methods are: + * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`, + * and `sortBy` + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @param {*} [accumulator] The initial value. + * @returns {*} Returns the accumulated value. + * @see _.reduceRight + * @example + * + * _.reduce([1, 2], function(sum, n) { + * return sum + n; + * }, 0); + * // => 3 + * + * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) { + * (result[value] || (result[value] = [])).push(key); + * return result; + * }, {}); + * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed) + */function reduce(collection,iteratee,accumulator){var func=isArray(collection)?arrayReduce:baseReduce,initAccum=arguments.length<3;return func(collection,getIteratee(iteratee,4),accumulator,initAccum,baseEach);}/** + * This method is like `_.reduce` except that it iterates over elements of + * `collection` from right to left. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @param {*} [accumulator] The initial value. + * @returns {*} Returns the accumulated value. + * @see _.reduce + * @example + * + * var array = [[0, 1], [2, 3], [4, 5]]; + * + * _.reduceRight(array, function(flattened, other) { + * return flattened.concat(other); + * }, []); + * // => [4, 5, 2, 3, 0, 1] + */function reduceRight(collection,iteratee,accumulator){var func=isArray(collection)?arrayReduceRight:baseReduce,initAccum=arguments.length<3;return func(collection,getIteratee(iteratee,4),accumulator,initAccum,baseEachRight);}/** + * The opposite of `_.filter`; this method returns the elements of `collection` + * that `predicate` does **not** return truthy for. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @returns {Array} Returns the new filtered array. + * @see _.filter + * @example + * + * var users = [ + * { 'user': 'barney', 'age': 36, 'active': false }, + * { 'user': 'fred', 'age': 40, 'active': true } + * ]; + * + * _.reject(users, function(o) { return !o.active; }); + * // => objects for ['fred'] + * + * // The `_.matches` iteratee shorthand. + * _.reject(users, { 'age': 40, 'active': true }); + * // => objects for ['barney'] + * + * // The `_.matchesProperty` iteratee shorthand. + * _.reject(users, ['active', false]); + * // => objects for ['fred'] + * + * // The `_.property` iteratee shorthand. + * _.reject(users, 'active'); + * // => objects for ['barney'] + */function reject(collection,predicate){var func=isArray(collection)?arrayFilter:baseFilter;return func(collection,negate(getIteratee(predicate,3)));}/** + * Gets a random element from `collection`. + * + * @static + * @memberOf _ + * @since 2.0.0 + * @category Collection + * @param {Array|Object} collection The collection to sample. + * @returns {*} Returns the random element. + * @example + * + * _.sample([1, 2, 3, 4]); + * // => 2 + */function sample(collection){var func=isArray(collection)?arraySample:baseSample;return func(collection);}/** + * Gets `n` random elements at unique keys from `collection` up to the + * size of `collection`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Collection + * @param {Array|Object} collection The collection to sample. + * @param {number} [n=1] The number of elements to sample. + * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @returns {Array} Returns the random elements. + * @example + * + * _.sampleSize([1, 2, 3], 2); + * // => [3, 1] + * + * _.sampleSize([1, 2, 3], 4); + * // => [2, 3, 1] + */function sampleSize(collection,n,guard){if(guard?isIterateeCall(collection,n,guard):n===undefined$1){n=1;}else {n=toInteger(n);}var func=isArray(collection)?arraySampleSize:baseSampleSize;return func(collection,n);}/** + * Creates an array of shuffled values, using a version of the + * [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle). + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Collection + * @param {Array|Object} collection The collection to shuffle. + * @returns {Array} Returns the new shuffled array. + * @example + * + * _.shuffle([1, 2, 3, 4]); + * // => [4, 1, 3, 2] + */function shuffle(collection){var func=isArray(collection)?arrayShuffle:baseShuffle;return func(collection);}/** + * Gets the size of `collection` by returning its length for array-like + * values or the number of own enumerable string keyed properties for objects. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Collection + * @param {Array|Object|string} collection The collection to inspect. + * @returns {number} Returns the collection size. + * @example + * + * _.size([1, 2, 3]); + * // => 3 + * + * _.size({ 'a': 1, 'b': 2 }); + * // => 2 + * + * _.size('pebbles'); + * // => 7 + */function size(collection){if(collection==null){return 0;}if(isArrayLike(collection)){return isString(collection)?stringSize(collection):collection.length;}var tag=getTag(collection);if(tag==mapTag||tag==setTag){return collection.size;}return baseKeys(collection).length;}/** + * Checks if `predicate` returns truthy for **any** element of `collection`. + * Iteration is stopped once `predicate` returns truthy. The predicate is + * invoked with three arguments: (value, index|key, collection). + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @returns {boolean} Returns `true` if any element passes the predicate check, + * else `false`. + * @example + * + * _.some([null, 0, 'yes', false], Boolean); + * // => true + * + * var users = [ + * { 'user': 'barney', 'active': true }, + * { 'user': 'fred', 'active': false } + * ]; + * + * // The `_.matches` iteratee shorthand. + * _.some(users, { 'user': 'barney', 'active': false }); + * // => false + * + * // The `_.matchesProperty` iteratee shorthand. + * _.some(users, ['active', false]); + * // => true + * + * // The `_.property` iteratee shorthand. + * _.some(users, 'active'); + * // => true + */function some(collection,predicate,guard){var func=isArray(collection)?arraySome:baseSome;if(guard&&isIterateeCall(collection,predicate,guard)){predicate=undefined$1;}return func(collection,getIteratee(predicate,3));}/** + * Creates an array of elements, sorted in ascending order by the results of + * running each element in a collection thru each iteratee. This method + * performs a stable sort, that is, it preserves the original sort order of + * equal elements. The iteratees are invoked with one argument: (value). + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {...(Function|Function[])} [iteratees=[_.identity]] + * The iteratees to sort by. + * @returns {Array} Returns the new sorted array. + * @example + * + * var users = [ + * { 'user': 'fred', 'age': 48 }, + * { 'user': 'barney', 'age': 36 }, + * { 'user': 'fred', 'age': 40 }, + * { 'user': 'barney', 'age': 34 } + * ]; + * + * _.sortBy(users, [function(o) { return o.user; }]); + * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]] + * + * _.sortBy(users, ['user', 'age']); + * // => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['fred', 48]] + */var sortBy=baseRest(function(collection,iteratees){if(collection==null){return [];}var length=iteratees.length;if(length>1&&isIterateeCall(collection,iteratees[0],iteratees[1])){iteratees=[];}else if(length>2&&isIterateeCall(iteratees[0],iteratees[1],iteratees[2])){iteratees=[iteratees[0]];}return baseOrderBy(collection,baseFlatten(iteratees,1),[]);});/*------------------------------------------------------------------------*/ /** + * Gets the timestamp of the number of milliseconds that have elapsed since + * the Unix epoch (1 January 1970 00:00:00 UTC). + * + * @static + * @memberOf _ + * @since 2.4.0 + * @category Date + * @returns {number} Returns the timestamp. + * @example + * + * _.defer(function(stamp) { + * console.log(_.now() - stamp); + * }, _.now()); + * // => Logs the number of milliseconds it took for the deferred invocation. + */var now=ctxNow||function(){return root.Date.now();};/*------------------------------------------------------------------------*/ /** + * The opposite of `_.before`; this method creates a function that invokes + * `func` once it's called `n` or more times. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Function + * @param {number} n The number of calls before `func` is invoked. + * @param {Function} func The function to restrict. + * @returns {Function} Returns the new restricted function. + * @example + * + * var saves = ['profile', 'settings']; + * + * var done = _.after(saves.length, function() { + * console.log('done saving!'); + * }); + * + * _.forEach(saves, function(type) { + * asyncSave({ 'type': type, 'complete': done }); + * }); + * // => Logs 'done saving!' after the two async saves have completed. + */function after(n,func){if(typeof func!='function'){throw new TypeError(FUNC_ERROR_TEXT);}n=toInteger(n);return function(){if(--n<1){return func.apply(this,arguments);}};}/** + * Creates a function that invokes `func`, with up to `n` arguments, + * ignoring any additional arguments. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Function + * @param {Function} func The function to cap arguments for. + * @param {number} [n=func.length] The arity cap. + * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @returns {Function} Returns the new capped function. + * @example + * + * _.map(['6', '8', '10'], _.ary(parseInt, 1)); + * // => [6, 8, 10] + */function ary(func,n,guard){n=guard?undefined$1:n;n=func&&n==null?func.length:n;return createWrap(func,WRAP_ARY_FLAG,undefined$1,undefined$1,undefined$1,undefined$1,n);}/** + * Creates a function that invokes `func`, with the `this` binding and arguments + * of the created function, while it's called less than `n` times. Subsequent + * calls to the created function return the result of the last `func` invocation. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Function + * @param {number} n The number of calls at which `func` is no longer invoked. + * @param {Function} func The function to restrict. + * @returns {Function} Returns the new restricted function. + * @example + * + * jQuery(element).on('click', _.before(5, addContactToList)); + * // => Allows adding up to 4 contacts to the list. + */function before(n,func){var result;if(typeof func!='function'){throw new TypeError(FUNC_ERROR_TEXT);}n=toInteger(n);return function(){if(--n>0){result=func.apply(this,arguments);}if(n<=1){func=undefined$1;}return result;};}/** + * Creates a function that invokes `func` with the `this` binding of `thisArg` + * and `partials` prepended to the arguments it receives. + * + * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds, + * may be used as a placeholder for partially applied arguments. + * + * **Note:** Unlike native `Function#bind`, this method doesn't set the "length" + * property of bound functions. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Function + * @param {Function} func The function to bind. + * @param {*} thisArg The `this` binding of `func`. + * @param {...*} [partials] The arguments to be partially applied. + * @returns {Function} Returns the new bound function. + * @example + * + * function greet(greeting, punctuation) { + * return greeting + ' ' + this.user + punctuation; + * } + * + * var object = { 'user': 'fred' }; + * + * var bound = _.bind(greet, object, 'hi'); + * bound('!'); + * // => 'hi fred!' + * + * // Bound with placeholders. + * var bound = _.bind(greet, object, _, '!'); + * bound('hi'); + * // => 'hi fred!' + */var bind=baseRest(function(func,thisArg,partials){var bitmask=WRAP_BIND_FLAG;if(partials.length){var holders=replaceHolders(partials,getHolder(bind));bitmask|=WRAP_PARTIAL_FLAG;}return createWrap(func,bitmask,thisArg,partials,holders);});/** + * Creates a function that invokes the method at `object[key]` with `partials` + * prepended to the arguments it receives. + * + * This method differs from `_.bind` by allowing bound functions to reference + * methods that may be redefined or don't yet exist. See + * [Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern) + * for more details. + * + * The `_.bindKey.placeholder` value, which defaults to `_` in monolithic + * builds, may be used as a placeholder for partially applied arguments. + * + * @static + * @memberOf _ + * @since 0.10.0 + * @category Function + * @param {Object} object The object to invoke the method on. + * @param {string} key The key of the method. + * @param {...*} [partials] The arguments to be partially applied. + * @returns {Function} Returns the new bound function. + * @example + * + * var object = { + * 'user': 'fred', + * 'greet': function(greeting, punctuation) { + * return greeting + ' ' + this.user + punctuation; + * } + * }; + * + * var bound = _.bindKey(object, 'greet', 'hi'); + * bound('!'); + * // => 'hi fred!' + * + * object.greet = function(greeting, punctuation) { + * return greeting + 'ya ' + this.user + punctuation; + * }; + * + * bound('!'); + * // => 'hiya fred!' + * + * // Bound with placeholders. + * var bound = _.bindKey(object, 'greet', _, '!'); + * bound('hi'); + * // => 'hiya fred!' + */var bindKey=baseRest(function(object,key,partials){var bitmask=WRAP_BIND_FLAG|WRAP_BIND_KEY_FLAG;if(partials.length){var holders=replaceHolders(partials,getHolder(bindKey));bitmask|=WRAP_PARTIAL_FLAG;}return createWrap(key,bitmask,object,partials,holders);});/** + * Creates a function that accepts arguments of `func` and either invokes + * `func` returning its result, if at least `arity` number of arguments have + * been provided, or returns a function that accepts the remaining `func` + * arguments, and so on. The arity of `func` may be specified if `func.length` + * is not sufficient. + * + * The `_.curry.placeholder` value, which defaults to `_` in monolithic builds, + * may be used as a placeholder for provided arguments. + * + * **Note:** This method doesn't set the "length" property of curried functions. + * + * @static + * @memberOf _ + * @since 2.0.0 + * @category Function + * @param {Function} func The function to curry. + * @param {number} [arity=func.length] The arity of `func`. + * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @returns {Function} Returns the new curried function. + * @example + * + * var abc = function(a, b, c) { + * return [a, b, c]; + * }; + * + * var curried = _.curry(abc); + * + * curried(1)(2)(3); + * // => [1, 2, 3] + * + * curried(1, 2)(3); + * // => [1, 2, 3] + * + * curried(1, 2, 3); + * // => [1, 2, 3] + * + * // Curried with placeholders. + * curried(1)(_, 3)(2); + * // => [1, 2, 3] + */function curry(func,arity,guard){arity=guard?undefined$1:arity;var result=createWrap(func,WRAP_CURRY_FLAG,undefined$1,undefined$1,undefined$1,undefined$1,undefined$1,arity);result.placeholder=curry.placeholder;return result;}/** + * This method is like `_.curry` except that arguments are applied to `func` + * in the manner of `_.partialRight` instead of `_.partial`. + * + * The `_.curryRight.placeholder` value, which defaults to `_` in monolithic + * builds, may be used as a placeholder for provided arguments. + * + * **Note:** This method doesn't set the "length" property of curried functions. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Function + * @param {Function} func The function to curry. + * @param {number} [arity=func.length] The arity of `func`. + * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @returns {Function} Returns the new curried function. + * @example + * + * var abc = function(a, b, c) { + * return [a, b, c]; + * }; + * + * var curried = _.curryRight(abc); + * + * curried(3)(2)(1); + * // => [1, 2, 3] + * + * curried(2, 3)(1); + * // => [1, 2, 3] + * + * curried(1, 2, 3); + * // => [1, 2, 3] + * + * // Curried with placeholders. + * curried(3)(1, _)(2); + * // => [1, 2, 3] + */function curryRight(func,arity,guard){arity=guard?undefined$1:arity;var result=createWrap(func,WRAP_CURRY_RIGHT_FLAG,undefined$1,undefined$1,undefined$1,undefined$1,undefined$1,arity);result.placeholder=curryRight.placeholder;return result;}/** + * Creates a debounced function that delays invoking `func` until after `wait` + * milliseconds have elapsed since the last time the debounced function was + * invoked. The debounced function comes with a `cancel` method to cancel + * delayed `func` invocations and a `flush` method to immediately invoke them. + * Provide `options` to indicate whether `func` should be invoked on the + * leading and/or trailing edge of the `wait` timeout. The `func` is invoked + * with the last arguments provided to the debounced function. Subsequent + * calls to the debounced function return the result of the last `func` + * invocation. + * + * **Note:** If `leading` and `trailing` options are `true`, `func` is + * invoked on the trailing edge of the timeout only if the debounced function + * is invoked more than once during the `wait` timeout. + * + * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred + * until to the next tick, similar to `setTimeout` with a timeout of `0`. + * + * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/) + * for details over the differences between `_.debounce` and `_.throttle`. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Function + * @param {Function} func The function to debounce. + * @param {number} [wait=0] The number of milliseconds to delay. + * @param {Object} [options={}] The options object. + * @param {boolean} [options.leading=false] + * Specify invoking on the leading edge of the timeout. + * @param {number} [options.maxWait] + * The maximum time `func` is allowed to be delayed before it's invoked. + * @param {boolean} [options.trailing=true] + * Specify invoking on the trailing edge of the timeout. + * @returns {Function} Returns the new debounced function. + * @example + * + * // Avoid costly calculations while the window size is in flux. + * jQuery(window).on('resize', _.debounce(calculateLayout, 150)); + * + * // Invoke `sendMail` when clicked, debouncing subsequent calls. + * jQuery(element).on('click', _.debounce(sendMail, 300, { + * 'leading': true, + * 'trailing': false + * })); + * + * // Ensure `batchLog` is invoked once after 1 second of debounced calls. + * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 }); + * var source = new EventSource('/stream'); + * jQuery(source).on('message', debounced); + * + * // Cancel the trailing debounced invocation. + * jQuery(window).on('popstate', debounced.cancel); + */function debounce(func,wait,options){var lastArgs,lastThis,maxWait,result,timerId,lastCallTime,lastInvokeTime=0,leading=false,maxing=false,trailing=true;if(typeof func!='function'){throw new TypeError(FUNC_ERROR_TEXT);}wait=toNumber(wait)||0;if(isObject(options)){leading=!!options.leading;maxing='maxWait'in options;maxWait=maxing?nativeMax(toNumber(options.maxWait)||0,wait):maxWait;trailing='trailing'in options?!!options.trailing:trailing;}function invokeFunc(time){var args=lastArgs,thisArg=lastThis;lastArgs=lastThis=undefined$1;lastInvokeTime=time;result=func.apply(thisArg,args);return result;}function leadingEdge(time){// Reset any `maxWait` timer. + lastInvokeTime=time;// Start the timer for the trailing edge. + timerId=setTimeout(timerExpired,wait);// Invoke the leading edge. + return leading?invokeFunc(time):result;}function remainingWait(time){var timeSinceLastCall=time-lastCallTime,timeSinceLastInvoke=time-lastInvokeTime,timeWaiting=wait-timeSinceLastCall;return maxing?nativeMin(timeWaiting,maxWait-timeSinceLastInvoke):timeWaiting;}function shouldInvoke(time){var timeSinceLastCall=time-lastCallTime,timeSinceLastInvoke=time-lastInvokeTime;// Either this is the first call, activity has stopped and we're at the + // trailing edge, the system time has gone backwards and we're treating + // it as the trailing edge, or we've hit the `maxWait` limit. + return lastCallTime===undefined$1||timeSinceLastCall>=wait||timeSinceLastCall<0||maxing&&timeSinceLastInvoke>=maxWait;}function timerExpired(){var time=now();if(shouldInvoke(time)){return trailingEdge(time);}// Restart the timer. + timerId=setTimeout(timerExpired,remainingWait(time));}function trailingEdge(time){timerId=undefined$1;// Only invoke if we have `lastArgs` which means `func` has been + // debounced at least once. + if(trailing&&lastArgs){return invokeFunc(time);}lastArgs=lastThis=undefined$1;return result;}function cancel(){if(timerId!==undefined$1){clearTimeout(timerId);}lastInvokeTime=0;lastArgs=lastCallTime=lastThis=timerId=undefined$1;}function flush(){return timerId===undefined$1?result:trailingEdge(now());}function debounced(){var time=now(),isInvoking=shouldInvoke(time);lastArgs=arguments;lastThis=this;lastCallTime=time;if(isInvoking){if(timerId===undefined$1){return leadingEdge(lastCallTime);}if(maxing){// Handle invocations in a tight loop. + clearTimeout(timerId);timerId=setTimeout(timerExpired,wait);return invokeFunc(lastCallTime);}}if(timerId===undefined$1){timerId=setTimeout(timerExpired,wait);}return result;}debounced.cancel=cancel;debounced.flush=flush;return debounced;}/** + * Defers invoking the `func` until the current call stack has cleared. Any + * additional arguments are provided to `func` when it's invoked. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Function + * @param {Function} func The function to defer. + * @param {...*} [args] The arguments to invoke `func` with. + * @returns {number} Returns the timer id. + * @example + * + * _.defer(function(text) { + * console.log(text); + * }, 'deferred'); + * // => Logs 'deferred' after one millisecond. + */var defer=baseRest(function(func,args){return baseDelay(func,1,args);});/** + * Invokes `func` after `wait` milliseconds. Any additional arguments are + * provided to `func` when it's invoked. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Function + * @param {Function} func The function to delay. + * @param {number} wait The number of milliseconds to delay invocation. + * @param {...*} [args] The arguments to invoke `func` with. + * @returns {number} Returns the timer id. + * @example + * + * _.delay(function(text) { + * console.log(text); + * }, 1000, 'later'); + * // => Logs 'later' after one second. + */var delay=baseRest(function(func,wait,args){return baseDelay(func,toNumber(wait)||0,args);});/** + * Creates a function that invokes `func` with arguments reversed. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Function + * @param {Function} func The function to flip arguments for. + * @returns {Function} Returns the new flipped function. + * @example + * + * var flipped = _.flip(function() { + * return _.toArray(arguments); + * }); + * + * flipped('a', 'b', 'c', 'd'); + * // => ['d', 'c', 'b', 'a'] + */function flip(func){return createWrap(func,WRAP_FLIP_FLAG);}/** + * Creates a function that memoizes the result of `func`. If `resolver` is + * provided, it determines the cache key for storing the result based on the + * arguments provided to the memoized function. By default, the first argument + * provided to the memoized function is used as the map cache key. The `func` + * is invoked with the `this` binding of the memoized function. + * + * **Note:** The cache is exposed as the `cache` property on the memoized + * function. Its creation may be customized by replacing the `_.memoize.Cache` + * constructor with one whose instances implement the + * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object) + * method interface of `clear`, `delete`, `get`, `has`, and `set`. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Function + * @param {Function} func The function to have its output memoized. + * @param {Function} [resolver] The function to resolve the cache key. + * @returns {Function} Returns the new memoized function. + * @example + * + * var object = { 'a': 1, 'b': 2 }; + * var other = { 'c': 3, 'd': 4 }; + * + * var values = _.memoize(_.values); + * values(object); + * // => [1, 2] + * + * values(other); + * // => [3, 4] + * + * object.a = 2; + * values(object); + * // => [1, 2] + * + * // Modify the result cache. + * values.cache.set(object, ['a', 'b']); + * values(object); + * // => ['a', 'b'] + * + * // Replace `_.memoize.Cache`. + * _.memoize.Cache = WeakMap; + */function memoize(func,resolver){if(typeof func!='function'||resolver!=null&&typeof resolver!='function'){throw new TypeError(FUNC_ERROR_TEXT);}var memoized=function(){var args=arguments,key=resolver?resolver.apply(this,args):args[0],cache=memoized.cache;if(cache.has(key)){return cache.get(key);}var result=func.apply(this,args);memoized.cache=cache.set(key,result)||cache;return result;};memoized.cache=new(memoize.Cache||MapCache)();return memoized;}// Expose `MapCache`. + memoize.Cache=MapCache;/** + * Creates a function that negates the result of the predicate `func`. The + * `func` predicate is invoked with the `this` binding and arguments of the + * created function. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Function + * @param {Function} predicate The predicate to negate. + * @returns {Function} Returns the new negated function. + * @example + * + * function isEven(n) { + * return n % 2 == 0; + * } + * + * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven)); + * // => [1, 3, 5] + */function negate(predicate){if(typeof predicate!='function'){throw new TypeError(FUNC_ERROR_TEXT);}return function(){var args=arguments;switch(args.length){case 0:return !predicate.call(this);case 1:return !predicate.call(this,args[0]);case 2:return !predicate.call(this,args[0],args[1]);case 3:return !predicate.call(this,args[0],args[1],args[2]);}return !predicate.apply(this,args);};}/** + * Creates a function that is restricted to invoking `func` once. Repeat calls + * to the function return the value of the first invocation. The `func` is + * invoked with the `this` binding and arguments of the created function. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Function + * @param {Function} func The function to restrict. + * @returns {Function} Returns the new restricted function. + * @example + * + * var initialize = _.once(createApplication); + * initialize(); + * initialize(); + * // => `createApplication` is invoked once + */function once(func){return before(2,func);}/** + * Creates a function that invokes `func` with its arguments transformed. + * + * @static + * @since 4.0.0 + * @memberOf _ + * @category Function + * @param {Function} func The function to wrap. + * @param {...(Function|Function[])} [transforms=[_.identity]] + * The argument transforms. + * @returns {Function} Returns the new function. + * @example + * + * function doubled(n) { + * return n * 2; + * } + * + * function square(n) { + * return n * n; + * } + * + * var func = _.overArgs(function(x, y) { + * return [x, y]; + * }, [square, doubled]); + * + * func(9, 3); + * // => [81, 6] + * + * func(10, 5); + * // => [100, 10] + */var overArgs=castRest(function(func,transforms){transforms=transforms.length==1&&isArray(transforms[0])?arrayMap(transforms[0],baseUnary(getIteratee())):arrayMap(baseFlatten(transforms,1),baseUnary(getIteratee()));var funcsLength=transforms.length;return baseRest(function(args){var index=-1,length=nativeMin(args.length,funcsLength);while(++index 'hello fred' + * + * // Partially applied with placeholders. + * var greetFred = _.partial(greet, _, 'fred'); + * greetFred('hi'); + * // => 'hi fred' + */var partial=baseRest(function(func,partials){var holders=replaceHolders(partials,getHolder(partial));return createWrap(func,WRAP_PARTIAL_FLAG,undefined$1,partials,holders);});/** + * This method is like `_.partial` except that partially applied arguments + * are appended to the arguments it receives. + * + * The `_.partialRight.placeholder` value, which defaults to `_` in monolithic + * builds, may be used as a placeholder for partially applied arguments. + * + * **Note:** This method doesn't set the "length" property of partially + * applied functions. + * + * @static + * @memberOf _ + * @since 1.0.0 + * @category Function + * @param {Function} func The function to partially apply arguments to. + * @param {...*} [partials] The arguments to be partially applied. + * @returns {Function} Returns the new partially applied function. + * @example + * + * function greet(greeting, name) { + * return greeting + ' ' + name; + * } + * + * var greetFred = _.partialRight(greet, 'fred'); + * greetFred('hi'); + * // => 'hi fred' + * + * // Partially applied with placeholders. + * var sayHelloTo = _.partialRight(greet, 'hello', _); + * sayHelloTo('fred'); + * // => 'hello fred' + */var partialRight=baseRest(function(func,partials){var holders=replaceHolders(partials,getHolder(partialRight));return createWrap(func,WRAP_PARTIAL_RIGHT_FLAG,undefined$1,partials,holders);});/** + * Creates a function that invokes `func` with arguments arranged according + * to the specified `indexes` where the argument value at the first index is + * provided as the first argument, the argument value at the second index is + * provided as the second argument, and so on. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Function + * @param {Function} func The function to rearrange arguments for. + * @param {...(number|number[])} indexes The arranged argument indexes. + * @returns {Function} Returns the new function. + * @example + * + * var rearged = _.rearg(function(a, b, c) { + * return [a, b, c]; + * }, [2, 0, 1]); + * + * rearged('b', 'c', 'a') + * // => ['a', 'b', 'c'] + */var rearg=flatRest(function(func,indexes){return createWrap(func,WRAP_REARG_FLAG,undefined$1,undefined$1,undefined$1,indexes);});/** + * Creates a function that invokes `func` with the `this` binding of the + * created function and arguments from `start` and beyond provided as + * an array. + * + * **Note:** This method is based on the + * [rest parameter](https://mdn.io/rest_parameters). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Function + * @param {Function} func The function to apply a rest parameter to. + * @param {number} [start=func.length-1] The start position of the rest parameter. + * @returns {Function} Returns the new function. + * @example + * + * var say = _.rest(function(what, names) { + * return what + ' ' + _.initial(names).join(', ') + + * (_.size(names) > 1 ? ', & ' : '') + _.last(names); + * }); + * + * say('hello', 'fred', 'barney', 'pebbles'); + * // => 'hello fred, barney, & pebbles' + */function rest(func,start){if(typeof func!='function'){throw new TypeError(FUNC_ERROR_TEXT);}start=start===undefined$1?start:toInteger(start);return baseRest(func,start);}/** + * Creates a function that invokes `func` with the `this` binding of the + * create function and an array of arguments much like + * [`Function#apply`](http://www.ecma-international.org/ecma-262/7.0/#sec-function.prototype.apply). + * + * **Note:** This method is based on the + * [spread operator](https://mdn.io/spread_operator). + * + * @static + * @memberOf _ + * @since 3.2.0 + * @category Function + * @param {Function} func The function to spread arguments over. + * @param {number} [start=0] The start position of the spread. + * @returns {Function} Returns the new function. + * @example + * + * var say = _.spread(function(who, what) { + * return who + ' says ' + what; + * }); + * + * say(['fred', 'hello']); + * // => 'fred says hello' + * + * var numbers = Promise.all([ + * Promise.resolve(40), + * Promise.resolve(36) + * ]); + * + * numbers.then(_.spread(function(x, y) { + * return x + y; + * })); + * // => a Promise of 76 + */function spread(func,start){if(typeof func!='function'){throw new TypeError(FUNC_ERROR_TEXT);}start=start==null?0:nativeMax(toInteger(start),0);return baseRest(function(args){var array=args[start],otherArgs=castSlice(args,0,start);if(array){arrayPush(otherArgs,array);}return apply(func,this,otherArgs);});}/** + * Creates a throttled function that only invokes `func` at most once per + * every `wait` milliseconds. The throttled function comes with a `cancel` + * method to cancel delayed `func` invocations and a `flush` method to + * immediately invoke them. Provide `options` to indicate whether `func` + * should be invoked on the leading and/or trailing edge of the `wait` + * timeout. The `func` is invoked with the last arguments provided to the + * throttled function. Subsequent calls to the throttled function return the + * result of the last `func` invocation. + * + * **Note:** If `leading` and `trailing` options are `true`, `func` is + * invoked on the trailing edge of the timeout only if the throttled function + * is invoked more than once during the `wait` timeout. + * + * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred + * until to the next tick, similar to `setTimeout` with a timeout of `0`. + * + * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/) + * for details over the differences between `_.throttle` and `_.debounce`. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Function + * @param {Function} func The function to throttle. + * @param {number} [wait=0] The number of milliseconds to throttle invocations to. + * @param {Object} [options={}] The options object. + * @param {boolean} [options.leading=true] + * Specify invoking on the leading edge of the timeout. + * @param {boolean} [options.trailing=true] + * Specify invoking on the trailing edge of the timeout. + * @returns {Function} Returns the new throttled function. + * @example + * + * // Avoid excessively updating the position while scrolling. + * jQuery(window).on('scroll', _.throttle(updatePosition, 100)); + * + * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes. + * var throttled = _.throttle(renewToken, 300000, { 'trailing': false }); + * jQuery(element).on('click', throttled); + * + * // Cancel the trailing throttled invocation. + * jQuery(window).on('popstate', throttled.cancel); + */function throttle(func,wait,options){var leading=true,trailing=true;if(typeof func!='function'){throw new TypeError(FUNC_ERROR_TEXT);}if(isObject(options)){leading='leading'in options?!!options.leading:leading;trailing='trailing'in options?!!options.trailing:trailing;}return debounce(func,wait,{'leading':leading,'maxWait':wait,'trailing':trailing});}/** + * Creates a function that accepts up to one argument, ignoring any + * additional arguments. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Function + * @param {Function} func The function to cap arguments for. + * @returns {Function} Returns the new capped function. + * @example + * + * _.map(['6', '8', '10'], _.unary(parseInt)); + * // => [6, 8, 10] + */function unary(func){return ary(func,1);}/** + * Creates a function that provides `value` to `wrapper` as its first + * argument. Any additional arguments provided to the function are appended + * to those provided to the `wrapper`. The wrapper is invoked with the `this` + * binding of the created function. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Function + * @param {*} value The value to wrap. + * @param {Function} [wrapper=identity] The wrapper function. + * @returns {Function} Returns the new function. + * @example + * + * var p = _.wrap(_.escape, function(func, text) { + * return '

' + func(text) + '

'; + * }); + * + * p('fred, barney, & pebbles'); + * // => '

fred, barney, & pebbles

' + */function wrap(value,wrapper){return partial(castFunction(wrapper),value);}/*------------------------------------------------------------------------*/ /** + * Casts `value` as an array if it's not one. + * + * @static + * @memberOf _ + * @since 4.4.0 + * @category Lang + * @param {*} value The value to inspect. + * @returns {Array} Returns the cast array. + * @example + * + * _.castArray(1); + * // => [1] + * + * _.castArray({ 'a': 1 }); + * // => [{ 'a': 1 }] + * + * _.castArray('abc'); + * // => ['abc'] + * + * _.castArray(null); + * // => [null] + * + * _.castArray(undefined); + * // => [undefined] + * + * _.castArray(); + * // => [] + * + * var array = [1, 2, 3]; + * console.log(_.castArray(array) === array); + * // => true + */function castArray(){if(!arguments.length){return [];}var value=arguments[0];return isArray(value)?value:[value];}/** + * Creates a shallow clone of `value`. + * + * **Note:** This method is loosely based on the + * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm) + * and supports cloning arrays, array buffers, booleans, date objects, maps, + * numbers, `Object` objects, regexes, sets, strings, symbols, and typed + * arrays. The own enumerable properties of `arguments` objects are cloned + * as plain objects. An empty object is returned for uncloneable values such + * as error objects, functions, DOM nodes, and WeakMaps. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to clone. + * @returns {*} Returns the cloned value. + * @see _.cloneDeep + * @example + * + * var objects = [{ 'a': 1 }, { 'b': 2 }]; + * + * var shallow = _.clone(objects); + * console.log(shallow[0] === objects[0]); + * // => true + */function clone(value){return baseClone(value,CLONE_SYMBOLS_FLAG);}/** + * This method is like `_.clone` except that it accepts `customizer` which + * is invoked to produce the cloned value. If `customizer` returns `undefined`, + * cloning is handled by the method instead. The `customizer` is invoked with + * up to four arguments; (value [, index|key, object, stack]). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to clone. + * @param {Function} [customizer] The function to customize cloning. + * @returns {*} Returns the cloned value. + * @see _.cloneDeepWith + * @example + * + * function customizer(value) { + * if (_.isElement(value)) { + * return value.cloneNode(false); + * } + * } + * + * var el = _.cloneWith(document.body, customizer); + * + * console.log(el === document.body); + * // => false + * console.log(el.nodeName); + * // => 'BODY' + * console.log(el.childNodes.length); + * // => 0 + */function cloneWith(value,customizer){customizer=typeof customizer=='function'?customizer:undefined$1;return baseClone(value,CLONE_SYMBOLS_FLAG,customizer);}/** + * This method is like `_.clone` except that it recursively clones `value`. + * + * @static + * @memberOf _ + * @since 1.0.0 + * @category Lang + * @param {*} value The value to recursively clone. + * @returns {*} Returns the deep cloned value. + * @see _.clone + * @example + * + * var objects = [{ 'a': 1 }, { 'b': 2 }]; + * + * var deep = _.cloneDeep(objects); + * console.log(deep[0] === objects[0]); + * // => false + */function cloneDeep(value){return baseClone(value,CLONE_DEEP_FLAG|CLONE_SYMBOLS_FLAG);}/** + * This method is like `_.cloneWith` except that it recursively clones `value`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to recursively clone. + * @param {Function} [customizer] The function to customize cloning. + * @returns {*} Returns the deep cloned value. + * @see _.cloneWith + * @example + * + * function customizer(value) { + * if (_.isElement(value)) { + * return value.cloneNode(true); + * } + * } + * + * var el = _.cloneDeepWith(document.body, customizer); + * + * console.log(el === document.body); + * // => false + * console.log(el.nodeName); + * // => 'BODY' + * console.log(el.childNodes.length); + * // => 20 + */function cloneDeepWith(value,customizer){customizer=typeof customizer=='function'?customizer:undefined$1;return baseClone(value,CLONE_DEEP_FLAG|CLONE_SYMBOLS_FLAG,customizer);}/** + * Checks if `object` conforms to `source` by invoking the predicate + * properties of `source` with the corresponding property values of `object`. + * + * **Note:** This method is equivalent to `_.conforms` when `source` is + * partially applied. + * + * @static + * @memberOf _ + * @since 4.14.0 + * @category Lang + * @param {Object} object The object to inspect. + * @param {Object} source The object of property predicates to conform to. + * @returns {boolean} Returns `true` if `object` conforms, else `false`. + * @example + * + * var object = { 'a': 1, 'b': 2 }; + * + * _.conformsTo(object, { 'b': function(n) { return n > 1; } }); + * // => true + * + * _.conformsTo(object, { 'b': function(n) { return n > 2; } }); + * // => false + */function conformsTo(object,source){return source==null||baseConformsTo(object,source,keys(source));}/** + * Performs a + * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * comparison between two values to determine if they are equivalent. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @returns {boolean} Returns `true` if the values are equivalent, else `false`. + * @example + * + * var object = { 'a': 1 }; + * var other = { 'a': 1 }; + * + * _.eq(object, object); + * // => true + * + * _.eq(object, other); + * // => false + * + * _.eq('a', 'a'); + * // => true + * + * _.eq('a', Object('a')); + * // => false + * + * _.eq(NaN, NaN); + * // => true + */function eq(value,other){return value===other||value!==value&&other!==other;}/** + * Checks if `value` is greater than `other`. + * + * @static + * @memberOf _ + * @since 3.9.0 + * @category Lang + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @returns {boolean} Returns `true` if `value` is greater than `other`, + * else `false`. + * @see _.lt + * @example + * + * _.gt(3, 1); + * // => true + * + * _.gt(3, 3); + * // => false + * + * _.gt(1, 3); + * // => false + */var gt=createRelationalOperation(baseGt);/** + * Checks if `value` is greater than or equal to `other`. + * + * @static + * @memberOf _ + * @since 3.9.0 + * @category Lang + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @returns {boolean} Returns `true` if `value` is greater than or equal to + * `other`, else `false`. + * @see _.lte + * @example + * + * _.gte(3, 1); + * // => true + * + * _.gte(3, 3); + * // => true + * + * _.gte(1, 3); + * // => false + */var gte=createRelationalOperation(function(value,other){return value>=other;});/** + * Checks if `value` is likely an `arguments` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an `arguments` object, + * else `false`. + * @example + * + * _.isArguments(function() { return arguments; }()); + * // => true + * + * _.isArguments([1, 2, 3]); + * // => false + */var isArguments=baseIsArguments(function(){return arguments;}())?baseIsArguments:function(value){return isObjectLike(value)&&hasOwnProperty.call(value,'callee')&&!propertyIsEnumerable.call(value,'callee');};/** + * Checks if `value` is classified as an `Array` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an array, else `false`. + * @example + * + * _.isArray([1, 2, 3]); + * // => true + * + * _.isArray(document.body.children); + * // => false + * + * _.isArray('abc'); + * // => false + * + * _.isArray(_.noop); + * // => false + */var isArray=Array.isArray;/** + * Checks if `value` is classified as an `ArrayBuffer` object. + * + * @static + * @memberOf _ + * @since 4.3.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`. + * @example + * + * _.isArrayBuffer(new ArrayBuffer(2)); + * // => true + * + * _.isArrayBuffer(new Array(2)); + * // => false + */var isArrayBuffer=nodeIsArrayBuffer?baseUnary(nodeIsArrayBuffer):baseIsArrayBuffer;/** + * Checks if `value` is array-like. A value is considered array-like if it's + * not a function and has a `value.length` that's an integer greater than or + * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is array-like, else `false`. + * @example + * + * _.isArrayLike([1, 2, 3]); + * // => true + * + * _.isArrayLike(document.body.children); + * // => true + * + * _.isArrayLike('abc'); + * // => true + * + * _.isArrayLike(_.noop); + * // => false + */function isArrayLike(value){return value!=null&&isLength(value.length)&&!isFunction(value);}/** + * This method is like `_.isArrayLike` except that it also checks if `value` + * is an object. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an array-like object, + * else `false`. + * @example + * + * _.isArrayLikeObject([1, 2, 3]); + * // => true + * + * _.isArrayLikeObject(document.body.children); + * // => true + * + * _.isArrayLikeObject('abc'); + * // => false + * + * _.isArrayLikeObject(_.noop); + * // => false + */function isArrayLikeObject(value){return isObjectLike(value)&&isArrayLike(value);}/** + * Checks if `value` is classified as a boolean primitive or object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a boolean, else `false`. + * @example + * + * _.isBoolean(false); + * // => true + * + * _.isBoolean(null); + * // => false + */function isBoolean(value){return value===true||value===false||isObjectLike(value)&&baseGetTag(value)==boolTag;}/** + * Checks if `value` is a buffer. + * + * @static + * @memberOf _ + * @since 4.3.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a buffer, else `false`. + * @example + * + * _.isBuffer(new Buffer(2)); + * // => true + * + * _.isBuffer(new Uint8Array(2)); + * // => false + */var isBuffer=nativeIsBuffer||stubFalse;/** + * Checks if `value` is classified as a `Date` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a date object, else `false`. + * @example + * + * _.isDate(new Date); + * // => true + * + * _.isDate('Mon April 23 2012'); + * // => false + */var isDate=nodeIsDate?baseUnary(nodeIsDate):baseIsDate;/** + * Checks if `value` is likely a DOM element. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`. + * @example + * + * _.isElement(document.body); + * // => true + * + * _.isElement(''); + * // => false + */function isElement(value){return isObjectLike(value)&&value.nodeType===1&&!isPlainObject(value);}/** + * Checks if `value` is an empty object, collection, map, or set. + * + * Objects are considered empty if they have no own enumerable string keyed + * properties. + * + * Array-like values such as `arguments` objects, arrays, buffers, strings, or + * jQuery-like collections are considered empty if they have a `length` of `0`. + * Similarly, maps and sets are considered empty if they have a `size` of `0`. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is empty, else `false`. + * @example + * + * _.isEmpty(null); + * // => true + * + * _.isEmpty(true); + * // => true + * + * _.isEmpty(1); + * // => true + * + * _.isEmpty([1, 2, 3]); + * // => false + * + * _.isEmpty({ 'a': 1 }); + * // => false + */function isEmpty(value){if(value==null){return true;}if(isArrayLike(value)&&(isArray(value)||typeof value=='string'||typeof value.splice=='function'||isBuffer(value)||isTypedArray(value)||isArguments(value))){return !value.length;}var tag=getTag(value);if(tag==mapTag||tag==setTag){return !value.size;}if(isPrototype(value)){return !baseKeys(value).length;}for(var key in value){if(hasOwnProperty.call(value,key)){return false;}}return true;}/** + * Performs a deep comparison between two values to determine if they are + * equivalent. + * + * **Note:** This method supports comparing arrays, array buffers, booleans, + * date objects, error objects, maps, numbers, `Object` objects, regexes, + * sets, strings, symbols, and typed arrays. `Object` objects are compared + * by their own, not inherited, enumerable properties. Functions and DOM + * nodes are compared by strict equality, i.e. `===`. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @returns {boolean} Returns `true` if the values are equivalent, else `false`. + * @example + * + * var object = { 'a': 1 }; + * var other = { 'a': 1 }; + * + * _.isEqual(object, other); + * // => true + * + * object === other; + * // => false + */function isEqual(value,other){return baseIsEqual(value,other);}/** + * This method is like `_.isEqual` except that it accepts `customizer` which + * is invoked to compare values. If `customizer` returns `undefined`, comparisons + * are handled by the method instead. The `customizer` is invoked with up to + * six arguments: (objValue, othValue [, index|key, object, other, stack]). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @param {Function} [customizer] The function to customize comparisons. + * @returns {boolean} Returns `true` if the values are equivalent, else `false`. + * @example + * + * function isGreeting(value) { + * return /^h(?:i|ello)$/.test(value); + * } + * + * function customizer(objValue, othValue) { + * if (isGreeting(objValue) && isGreeting(othValue)) { + * return true; + * } + * } + * + * var array = ['hello', 'goodbye']; + * var other = ['hi', 'goodbye']; + * + * _.isEqualWith(array, other, customizer); + * // => true + */function isEqualWith(value,other,customizer){customizer=typeof customizer=='function'?customizer:undefined$1;var result=customizer?customizer(value,other):undefined$1;return result===undefined$1?baseIsEqual(value,other,undefined$1,customizer):!!result;}/** + * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`, + * `SyntaxError`, `TypeError`, or `URIError` object. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an error object, else `false`. + * @example + * + * _.isError(new Error); + * // => true + * + * _.isError(Error); + * // => false + */function isError(value){if(!isObjectLike(value)){return false;}var tag=baseGetTag(value);return tag==errorTag||tag==domExcTag||typeof value.message=='string'&&typeof value.name=='string'&&!isPlainObject(value);}/** + * Checks if `value` is a finite primitive number. + * + * **Note:** This method is based on + * [`Number.isFinite`](https://mdn.io/Number/isFinite). + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a finite number, else `false`. + * @example + * + * _.isFinite(3); + * // => true + * + * _.isFinite(Number.MIN_VALUE); + * // => true + * + * _.isFinite(Infinity); + * // => false + * + * _.isFinite('3'); + * // => false + */function isFinite(value){return typeof value=='number'&&nativeIsFinite(value);}/** + * Checks if `value` is classified as a `Function` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a function, else `false`. + * @example + * + * _.isFunction(_); + * // => true + * + * _.isFunction(/abc/); + * // => false + */function isFunction(value){if(!isObject(value)){return false;}// The use of `Object#toString` avoids issues with the `typeof` operator + // in Safari 9 which returns 'object' for typed arrays and other constructors. + var tag=baseGetTag(value);return tag==funcTag||tag==genTag||tag==asyncTag||tag==proxyTag;}/** + * Checks if `value` is an integer. + * + * **Note:** This method is based on + * [`Number.isInteger`](https://mdn.io/Number/isInteger). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an integer, else `false`. + * @example + * + * _.isInteger(3); + * // => true + * + * _.isInteger(Number.MIN_VALUE); + * // => false + * + * _.isInteger(Infinity); + * // => false + * + * _.isInteger('3'); + * // => false + */function isInteger(value){return typeof value=='number'&&value==toInteger(value);}/** + * Checks if `value` is a valid array-like length. + * + * **Note:** This method is loosely based on + * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a valid length, else `false`. + * @example + * + * _.isLength(3); + * // => true + * + * _.isLength(Number.MIN_VALUE); + * // => false + * + * _.isLength(Infinity); + * // => false + * + * _.isLength('3'); + * // => false + */function isLength(value){return typeof value=='number'&&value>-1&&value%1==0&&value<=MAX_SAFE_INTEGER;}/** + * Checks if `value` is the + * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) + * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an object, else `false`. + * @example + * + * _.isObject({}); + * // => true + * + * _.isObject([1, 2, 3]); + * // => true + * + * _.isObject(_.noop); + * // => true + * + * _.isObject(null); + * // => false + */function isObject(value){var type=typeof value;return value!=null&&(type=='object'||type=='function');}/** + * Checks if `value` is object-like. A value is object-like if it's not `null` + * and has a `typeof` result of "object". + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is object-like, else `false`. + * @example + * + * _.isObjectLike({}); + * // => true + * + * _.isObjectLike([1, 2, 3]); + * // => true + * + * _.isObjectLike(_.noop); + * // => false + * + * _.isObjectLike(null); + * // => false + */function isObjectLike(value){return value!=null&&typeof value=='object';}/** + * Checks if `value` is classified as a `Map` object. + * + * @static + * @memberOf _ + * @since 4.3.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a map, else `false`. + * @example + * + * _.isMap(new Map); + * // => true + * + * _.isMap(new WeakMap); + * // => false + */var isMap=nodeIsMap?baseUnary(nodeIsMap):baseIsMap;/** + * Performs a partial deep comparison between `object` and `source` to + * determine if `object` contains equivalent property values. + * + * **Note:** This method is equivalent to `_.matches` when `source` is + * partially applied. + * + * Partial comparisons will match empty array and empty object `source` + * values against any array or object value, respectively. See `_.isEqual` + * for a list of supported value comparisons. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Lang + * @param {Object} object The object to inspect. + * @param {Object} source The object of property values to match. + * @returns {boolean} Returns `true` if `object` is a match, else `false`. + * @example + * + * var object = { 'a': 1, 'b': 2 }; + * + * _.isMatch(object, { 'b': 2 }); + * // => true + * + * _.isMatch(object, { 'b': 1 }); + * // => false + */function isMatch(object,source){return object===source||baseIsMatch(object,source,getMatchData(source));}/** + * This method is like `_.isMatch` except that it accepts `customizer` which + * is invoked to compare values. If `customizer` returns `undefined`, comparisons + * are handled by the method instead. The `customizer` is invoked with five + * arguments: (objValue, srcValue, index|key, object, source). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {Object} object The object to inspect. + * @param {Object} source The object of property values to match. + * @param {Function} [customizer] The function to customize comparisons. + * @returns {boolean} Returns `true` if `object` is a match, else `false`. + * @example + * + * function isGreeting(value) { + * return /^h(?:i|ello)$/.test(value); + * } + * + * function customizer(objValue, srcValue) { + * if (isGreeting(objValue) && isGreeting(srcValue)) { + * return true; + * } + * } + * + * var object = { 'greeting': 'hello' }; + * var source = { 'greeting': 'hi' }; + * + * _.isMatchWith(object, source, customizer); + * // => true + */function isMatchWith(object,source,customizer){customizer=typeof customizer=='function'?customizer:undefined$1;return baseIsMatch(object,source,getMatchData(source),customizer);}/** + * Checks if `value` is `NaN`. + * + * **Note:** This method is based on + * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as + * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for + * `undefined` and other non-number values. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`. + * @example + * + * _.isNaN(NaN); + * // => true + * + * _.isNaN(new Number(NaN)); + * // => true + * + * isNaN(undefined); + * // => true + * + * _.isNaN(undefined); + * // => false + */function isNaN(value){// An `NaN` primitive is the only value that is not equal to itself. + // Perform the `toStringTag` check first to avoid errors with some + // ActiveX objects in IE. + return isNumber(value)&&value!=+value;}/** + * Checks if `value` is a pristine native function. + * + * **Note:** This method can't reliably detect native functions in the presence + * of the core-js package because core-js circumvents this kind of detection. + * Despite multiple requests, the core-js maintainer has made it clear: any + * attempt to fix the detection will be obstructed. As a result, we're left + * with little choice but to throw an error. Unfortunately, this also affects + * packages, like [babel-polyfill](https://www.npmjs.com/package/babel-polyfill), + * which rely on core-js. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a native function, + * else `false`. + * @example + * + * _.isNative(Array.prototype.push); + * // => true + * + * _.isNative(_); + * // => false + */function isNative(value){if(isMaskable(value)){throw new Error(CORE_ERROR_TEXT);}return baseIsNative(value);}/** + * Checks if `value` is `null`. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is `null`, else `false`. + * @example + * + * _.isNull(null); + * // => true + * + * _.isNull(void 0); + * // => false + */function isNull(value){return value===null;}/** + * Checks if `value` is `null` or `undefined`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is nullish, else `false`. + * @example + * + * _.isNil(null); + * // => true + * + * _.isNil(void 0); + * // => true + * + * _.isNil(NaN); + * // => false + */function isNil(value){return value==null;}/** + * Checks if `value` is classified as a `Number` primitive or object. + * + * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are + * classified as numbers, use the `_.isFinite` method. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a number, else `false`. + * @example + * + * _.isNumber(3); + * // => true + * + * _.isNumber(Number.MIN_VALUE); + * // => true + * + * _.isNumber(Infinity); + * // => true + * + * _.isNumber('3'); + * // => false + */function isNumber(value){return typeof value=='number'||isObjectLike(value)&&baseGetTag(value)==numberTag;}/** + * Checks if `value` is a plain object, that is, an object created by the + * `Object` constructor or one with a `[[Prototype]]` of `null`. + * + * @static + * @memberOf _ + * @since 0.8.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a plain object, else `false`. + * @example + * + * function Foo() { + * this.a = 1; + * } + * + * _.isPlainObject(new Foo); + * // => false + * + * _.isPlainObject([1, 2, 3]); + * // => false + * + * _.isPlainObject({ 'x': 0, 'y': 0 }); + * // => true + * + * _.isPlainObject(Object.create(null)); + * // => true + */function isPlainObject(value){if(!isObjectLike(value)||baseGetTag(value)!=objectTag){return false;}var proto=getPrototype(value);if(proto===null){return true;}var Ctor=hasOwnProperty.call(proto,'constructor')&&proto.constructor;return typeof Ctor=='function'&&Ctor instanceof Ctor&&funcToString.call(Ctor)==objectCtorString;}/** + * Checks if `value` is classified as a `RegExp` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a regexp, else `false`. + * @example + * + * _.isRegExp(/abc/); + * // => true + * + * _.isRegExp('/abc/'); + * // => false + */var isRegExp=nodeIsRegExp?baseUnary(nodeIsRegExp):baseIsRegExp;/** + * Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754 + * double precision number which isn't the result of a rounded unsafe integer. + * + * **Note:** This method is based on + * [`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a safe integer, else `false`. + * @example + * + * _.isSafeInteger(3); + * // => true + * + * _.isSafeInteger(Number.MIN_VALUE); + * // => false + * + * _.isSafeInteger(Infinity); + * // => false + * + * _.isSafeInteger('3'); + * // => false + */function isSafeInteger(value){return isInteger(value)&&value>=-MAX_SAFE_INTEGER&&value<=MAX_SAFE_INTEGER;}/** + * Checks if `value` is classified as a `Set` object. + * + * @static + * @memberOf _ + * @since 4.3.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a set, else `false`. + * @example + * + * _.isSet(new Set); + * // => true + * + * _.isSet(new WeakSet); + * // => false + */var isSet=nodeIsSet?baseUnary(nodeIsSet):baseIsSet;/** + * Checks if `value` is classified as a `String` primitive or object. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a string, else `false`. + * @example + * + * _.isString('abc'); + * // => true + * + * _.isString(1); + * // => false + */function isString(value){return typeof value=='string'||!isArray(value)&&isObjectLike(value)&&baseGetTag(value)==stringTag;}/** + * Checks if `value` is classified as a `Symbol` primitive or object. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. + * @example + * + * _.isSymbol(Symbol.iterator); + * // => true + * + * _.isSymbol('abc'); + * // => false + */function isSymbol(value){return typeof value=='symbol'||isObjectLike(value)&&baseGetTag(value)==symbolTag;}/** + * Checks if `value` is classified as a typed array. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. + * @example + * + * _.isTypedArray(new Uint8Array); + * // => true + * + * _.isTypedArray([]); + * // => false + */var isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray;/** + * Checks if `value` is `undefined`. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`. + * @example + * + * _.isUndefined(void 0); + * // => true + * + * _.isUndefined(null); + * // => false + */function isUndefined(value){return value===undefined$1;}/** + * Checks if `value` is classified as a `WeakMap` object. + * + * @static + * @memberOf _ + * @since 4.3.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a weak map, else `false`. + * @example + * + * _.isWeakMap(new WeakMap); + * // => true + * + * _.isWeakMap(new Map); + * // => false + */function isWeakMap(value){return isObjectLike(value)&&getTag(value)==weakMapTag;}/** + * Checks if `value` is classified as a `WeakSet` object. + * + * @static + * @memberOf _ + * @since 4.3.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a weak set, else `false`. + * @example + * + * _.isWeakSet(new WeakSet); + * // => true + * + * _.isWeakSet(new Set); + * // => false + */function isWeakSet(value){return isObjectLike(value)&&baseGetTag(value)==weakSetTag;}/** + * Checks if `value` is less than `other`. + * + * @static + * @memberOf _ + * @since 3.9.0 + * @category Lang + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @returns {boolean} Returns `true` if `value` is less than `other`, + * else `false`. + * @see _.gt + * @example + * + * _.lt(1, 3); + * // => true + * + * _.lt(3, 3); + * // => false + * + * _.lt(3, 1); + * // => false + */var lt=createRelationalOperation(baseLt);/** + * Checks if `value` is less than or equal to `other`. + * + * @static + * @memberOf _ + * @since 3.9.0 + * @category Lang + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @returns {boolean} Returns `true` if `value` is less than or equal to + * `other`, else `false`. + * @see _.gte + * @example + * + * _.lte(1, 3); + * // => true + * + * _.lte(3, 3); + * // => true + * + * _.lte(3, 1); + * // => false + */var lte=createRelationalOperation(function(value,other){return value<=other;});/** + * Converts `value` to an array. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Lang + * @param {*} value The value to convert. + * @returns {Array} Returns the converted array. + * @example + * + * _.toArray({ 'a': 1, 'b': 2 }); + * // => [1, 2] + * + * _.toArray('abc'); + * // => ['a', 'b', 'c'] + * + * _.toArray(1); + * // => [] + * + * _.toArray(null); + * // => [] + */function toArray(value){if(!value){return [];}if(isArrayLike(value)){return isString(value)?stringToArray(value):copyArray(value);}if(symIterator&&value[symIterator]){return iteratorToArray(value[symIterator]());}var tag=getTag(value),func=tag==mapTag?mapToArray:tag==setTag?setToArray:values;return func(value);}/** + * Converts `value` to a finite number. + * + * @static + * @memberOf _ + * @since 4.12.0 + * @category Lang + * @param {*} value The value to convert. + * @returns {number} Returns the converted number. + * @example + * + * _.toFinite(3.2); + * // => 3.2 + * + * _.toFinite(Number.MIN_VALUE); + * // => 5e-324 + * + * _.toFinite(Infinity); + * // => 1.7976931348623157e+308 + * + * _.toFinite('3.2'); + * // => 3.2 + */function toFinite(value){if(!value){return value===0?value:0;}value=toNumber(value);if(value===INFINITY||value===-INFINITY){var sign=value<0?-1:1;return sign*MAX_INTEGER;}return value===value?value:0;}/** + * Converts `value` to an integer. + * + * **Note:** This method is loosely based on + * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to convert. + * @returns {number} Returns the converted integer. + * @example + * + * _.toInteger(3.2); + * // => 3 + * + * _.toInteger(Number.MIN_VALUE); + * // => 0 + * + * _.toInteger(Infinity); + * // => 1.7976931348623157e+308 + * + * _.toInteger('3.2'); + * // => 3 + */function toInteger(value){var result=toFinite(value),remainder=result%1;return result===result?remainder?result-remainder:result:0;}/** + * Converts `value` to an integer suitable for use as the length of an + * array-like object. + * + * **Note:** This method is based on + * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to convert. + * @returns {number} Returns the converted integer. + * @example + * + * _.toLength(3.2); + * // => 3 + * + * _.toLength(Number.MIN_VALUE); + * // => 0 + * + * _.toLength(Infinity); + * // => 4294967295 + * + * _.toLength('3.2'); + * // => 3 + */function toLength(value){return value?baseClamp(toInteger(value),0,MAX_ARRAY_LENGTH):0;}/** + * Converts `value` to a number. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to process. + * @returns {number} Returns the number. + * @example + * + * _.toNumber(3.2); + * // => 3.2 + * + * _.toNumber(Number.MIN_VALUE); + * // => 5e-324 + * + * _.toNumber(Infinity); + * // => Infinity + * + * _.toNumber('3.2'); + * // => 3.2 + */function toNumber(value){if(typeof value=='number'){return value;}if(isSymbol(value)){return NAN;}if(isObject(value)){var other=typeof value.valueOf=='function'?value.valueOf():value;value=isObject(other)?other+'':other;}if(typeof value!='string'){return value===0?value:+value;}value=value.replace(reTrim,'');var isBinary=reIsBinary.test(value);return isBinary||reIsOctal.test(value)?freeParseInt(value.slice(2),isBinary?2:8):reIsBadHex.test(value)?NAN:+value;}/** + * Converts `value` to a plain object flattening inherited enumerable string + * keyed properties of `value` to own properties of the plain object. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Lang + * @param {*} value The value to convert. + * @returns {Object} Returns the converted plain object. + * @example + * + * function Foo() { + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.assign({ 'a': 1 }, new Foo); + * // => { 'a': 1, 'b': 2 } + * + * _.assign({ 'a': 1 }, _.toPlainObject(new Foo)); + * // => { 'a': 1, 'b': 2, 'c': 3 } + */function toPlainObject(value){return copyObject(value,keysIn(value));}/** + * Converts `value` to a safe integer. A safe integer can be compared and + * represented correctly. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to convert. + * @returns {number} Returns the converted integer. + * @example + * + * _.toSafeInteger(3.2); + * // => 3 + * + * _.toSafeInteger(Number.MIN_VALUE); + * // => 0 + * + * _.toSafeInteger(Infinity); + * // => 9007199254740991 + * + * _.toSafeInteger('3.2'); + * // => 3 + */function toSafeInteger(value){return value?baseClamp(toInteger(value),-MAX_SAFE_INTEGER,MAX_SAFE_INTEGER):value===0?value:0;}/** + * Converts `value` to a string. An empty string is returned for `null` + * and `undefined` values. The sign of `-0` is preserved. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to convert. + * @returns {string} Returns the converted string. + * @example + * + * _.toString(null); + * // => '' + * + * _.toString(-0); + * // => '-0' + * + * _.toString([1, 2, 3]); + * // => '1,2,3' + */function toString(value){return value==null?'':baseToString(value);}/*------------------------------------------------------------------------*/ /** + * Assigns own enumerable string keyed properties of source objects to the + * destination object. Source objects are applied from left to right. + * Subsequent sources overwrite property assignments of previous sources. + * + * **Note:** This method mutates `object` and is loosely based on + * [`Object.assign`](https://mdn.io/Object/assign). + * + * @static + * @memberOf _ + * @since 0.10.0 + * @category Object + * @param {Object} object The destination object. + * @param {...Object} [sources] The source objects. + * @returns {Object} Returns `object`. + * @see _.assignIn + * @example + * + * function Foo() { + * this.a = 1; + * } + * + * function Bar() { + * this.c = 3; + * } + * + * Foo.prototype.b = 2; + * Bar.prototype.d = 4; + * + * _.assign({ 'a': 0 }, new Foo, new Bar); + * // => { 'a': 1, 'c': 3 } + */var assign=createAssigner(function(object,source){if(isPrototype(source)||isArrayLike(source)){copyObject(source,keys(source),object);return;}for(var key in source){if(hasOwnProperty.call(source,key)){assignValue(object,key,source[key]);}}});/** + * This method is like `_.assign` except that it iterates over own and + * inherited source properties. + * + * **Note:** This method mutates `object`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @alias extend + * @category Object + * @param {Object} object The destination object. + * @param {...Object} [sources] The source objects. + * @returns {Object} Returns `object`. + * @see _.assign + * @example + * + * function Foo() { + * this.a = 1; + * } + * + * function Bar() { + * this.c = 3; + * } + * + * Foo.prototype.b = 2; + * Bar.prototype.d = 4; + * + * _.assignIn({ 'a': 0 }, new Foo, new Bar); + * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 } + */var assignIn=createAssigner(function(object,source){copyObject(source,keysIn(source),object);});/** + * This method is like `_.assignIn` except that it accepts `customizer` + * which is invoked to produce the assigned values. If `customizer` returns + * `undefined`, assignment is handled by the method instead. The `customizer` + * is invoked with five arguments: (objValue, srcValue, key, object, source). + * + * **Note:** This method mutates `object`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @alias extendWith + * @category Object + * @param {Object} object The destination object. + * @param {...Object} sources The source objects. + * @param {Function} [customizer] The function to customize assigned values. + * @returns {Object} Returns `object`. + * @see _.assignWith + * @example + * + * function customizer(objValue, srcValue) { + * return _.isUndefined(objValue) ? srcValue : objValue; + * } + * + * var defaults = _.partialRight(_.assignInWith, customizer); + * + * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 }); + * // => { 'a': 1, 'b': 2 } + */var assignInWith=createAssigner(function(object,source,srcIndex,customizer){copyObject(source,keysIn(source),object,customizer);});/** + * This method is like `_.assign` except that it accepts `customizer` + * which is invoked to produce the assigned values. If `customizer` returns + * `undefined`, assignment is handled by the method instead. The `customizer` + * is invoked with five arguments: (objValue, srcValue, key, object, source). + * + * **Note:** This method mutates `object`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Object + * @param {Object} object The destination object. + * @param {...Object} sources The source objects. + * @param {Function} [customizer] The function to customize assigned values. + * @returns {Object} Returns `object`. + * @see _.assignInWith + * @example + * + * function customizer(objValue, srcValue) { + * return _.isUndefined(objValue) ? srcValue : objValue; + * } + * + * var defaults = _.partialRight(_.assignWith, customizer); + * + * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 }); + * // => { 'a': 1, 'b': 2 } + */var assignWith=createAssigner(function(object,source,srcIndex,customizer){copyObject(source,keys(source),object,customizer);});/** + * Creates an array of values corresponding to `paths` of `object`. + * + * @static + * @memberOf _ + * @since 1.0.0 + * @category Object + * @param {Object} object The object to iterate over. + * @param {...(string|string[])} [paths] The property paths to pick. + * @returns {Array} Returns the picked values. + * @example + * + * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] }; + * + * _.at(object, ['a[0].b.c', 'a[1]']); + * // => [3, 4] + */var at=flatRest(baseAt);/** + * Creates an object that inherits from the `prototype` object. If a + * `properties` object is given, its own enumerable string keyed properties + * are assigned to the created object. + * + * @static + * @memberOf _ + * @since 2.3.0 + * @category Object + * @param {Object} prototype The object to inherit from. + * @param {Object} [properties] The properties to assign to the object. + * @returns {Object} Returns the new object. + * @example + * + * function Shape() { + * this.x = 0; + * this.y = 0; + * } + * + * function Circle() { + * Shape.call(this); + * } + * + * Circle.prototype = _.create(Shape.prototype, { + * 'constructor': Circle + * }); + * + * var circle = new Circle; + * circle instanceof Circle; + * // => true + * + * circle instanceof Shape; + * // => true + */function create(prototype,properties){var result=baseCreate(prototype);return properties==null?result:baseAssign(result,properties);}/** + * Assigns own and inherited enumerable string keyed properties of source + * objects to the destination object for all destination properties that + * resolve to `undefined`. Source objects are applied from left to right. + * Once a property is set, additional values of the same property are ignored. + * + * **Note:** This method mutates `object`. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Object + * @param {Object} object The destination object. + * @param {...Object} [sources] The source objects. + * @returns {Object} Returns `object`. + * @see _.defaultsDeep + * @example + * + * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 }); + * // => { 'a': 1, 'b': 2 } + */var defaults=baseRest(function(object,sources){object=Object(object);var index=-1;var length=sources.length;var guard=length>2?sources[2]:undefined$1;if(guard&&isIterateeCall(sources[0],sources[1],guard)){length=1;}while(++index { 'a': { 'b': 2, 'c': 3 } } + */var defaultsDeep=baseRest(function(args){args.push(undefined$1,customDefaultsMerge);return apply(mergeWith,undefined$1,args);});/** + * This method is like `_.find` except that it returns the key of the first + * element `predicate` returns truthy for instead of the element itself. + * + * @static + * @memberOf _ + * @since 1.1.0 + * @category Object + * @param {Object} object The object to inspect. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @returns {string|undefined} Returns the key of the matched element, + * else `undefined`. + * @example + * + * var users = { + * 'barney': { 'age': 36, 'active': true }, + * 'fred': { 'age': 40, 'active': false }, + * 'pebbles': { 'age': 1, 'active': true } + * }; + * + * _.findKey(users, function(o) { return o.age < 40; }); + * // => 'barney' (iteration order is not guaranteed) + * + * // The `_.matches` iteratee shorthand. + * _.findKey(users, { 'age': 1, 'active': true }); + * // => 'pebbles' + * + * // The `_.matchesProperty` iteratee shorthand. + * _.findKey(users, ['active', false]); + * // => 'fred' + * + * // The `_.property` iteratee shorthand. + * _.findKey(users, 'active'); + * // => 'barney' + */function findKey(object,predicate){return baseFindKey(object,getIteratee(predicate,3),baseForOwn);}/** + * This method is like `_.findKey` except that it iterates over elements of + * a collection in the opposite order. + * + * @static + * @memberOf _ + * @since 2.0.0 + * @category Object + * @param {Object} object The object to inspect. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @returns {string|undefined} Returns the key of the matched element, + * else `undefined`. + * @example + * + * var users = { + * 'barney': { 'age': 36, 'active': true }, + * 'fred': { 'age': 40, 'active': false }, + * 'pebbles': { 'age': 1, 'active': true } + * }; + * + * _.findLastKey(users, function(o) { return o.age < 40; }); + * // => returns 'pebbles' assuming `_.findKey` returns 'barney' + * + * // The `_.matches` iteratee shorthand. + * _.findLastKey(users, { 'age': 36, 'active': true }); + * // => 'barney' + * + * // The `_.matchesProperty` iteratee shorthand. + * _.findLastKey(users, ['active', false]); + * // => 'fred' + * + * // The `_.property` iteratee shorthand. + * _.findLastKey(users, 'active'); + * // => 'pebbles' + */function findLastKey(object,predicate){return baseFindKey(object,getIteratee(predicate,3),baseForOwnRight);}/** + * Iterates over own and inherited enumerable string keyed properties of an + * object and invokes `iteratee` for each property. The iteratee is invoked + * with three arguments: (value, key, object). Iteratee functions may exit + * iteration early by explicitly returning `false`. + * + * @static + * @memberOf _ + * @since 0.3.0 + * @category Object + * @param {Object} object The object to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @returns {Object} Returns `object`. + * @see _.forInRight + * @example + * + * function Foo() { + * this.a = 1; + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.forIn(new Foo, function(value, key) { + * console.log(key); + * }); + * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed). + */function forIn(object,iteratee){return object==null?object:baseFor(object,getIteratee(iteratee,3),keysIn);}/** + * This method is like `_.forIn` except that it iterates over properties of + * `object` in the opposite order. + * + * @static + * @memberOf _ + * @since 2.0.0 + * @category Object + * @param {Object} object The object to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @returns {Object} Returns `object`. + * @see _.forIn + * @example + * + * function Foo() { + * this.a = 1; + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.forInRight(new Foo, function(value, key) { + * console.log(key); + * }); + * // => Logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'. + */function forInRight(object,iteratee){return object==null?object:baseForRight(object,getIteratee(iteratee,3),keysIn);}/** + * Iterates over own enumerable string keyed properties of an object and + * invokes `iteratee` for each property. The iteratee is invoked with three + * arguments: (value, key, object). Iteratee functions may exit iteration + * early by explicitly returning `false`. + * + * @static + * @memberOf _ + * @since 0.3.0 + * @category Object + * @param {Object} object The object to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @returns {Object} Returns `object`. + * @see _.forOwnRight + * @example + * + * function Foo() { + * this.a = 1; + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.forOwn(new Foo, function(value, key) { + * console.log(key); + * }); + * // => Logs 'a' then 'b' (iteration order is not guaranteed). + */function forOwn(object,iteratee){return object&&baseForOwn(object,getIteratee(iteratee,3));}/** + * This method is like `_.forOwn` except that it iterates over properties of + * `object` in the opposite order. + * + * @static + * @memberOf _ + * @since 2.0.0 + * @category Object + * @param {Object} object The object to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @returns {Object} Returns `object`. + * @see _.forOwn + * @example + * + * function Foo() { + * this.a = 1; + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.forOwnRight(new Foo, function(value, key) { + * console.log(key); + * }); + * // => Logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'. + */function forOwnRight(object,iteratee){return object&&baseForOwnRight(object,getIteratee(iteratee,3));}/** + * Creates an array of function property names from own enumerable properties + * of `object`. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Object + * @param {Object} object The object to inspect. + * @returns {Array} Returns the function names. + * @see _.functionsIn + * @example + * + * function Foo() { + * this.a = _.constant('a'); + * this.b = _.constant('b'); + * } + * + * Foo.prototype.c = _.constant('c'); + * + * _.functions(new Foo); + * // => ['a', 'b'] + */function functions(object){return object==null?[]:baseFunctions(object,keys(object));}/** + * Creates an array of function property names from own and inherited + * enumerable properties of `object`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Object + * @param {Object} object The object to inspect. + * @returns {Array} Returns the function names. + * @see _.functions + * @example + * + * function Foo() { + * this.a = _.constant('a'); + * this.b = _.constant('b'); + * } + * + * Foo.prototype.c = _.constant('c'); + * + * _.functionsIn(new Foo); + * // => ['a', 'b', 'c'] + */function functionsIn(object){return object==null?[]:baseFunctions(object,keysIn(object));}/** + * Gets the value at `path` of `object`. If the resolved value is + * `undefined`, the `defaultValue` is returned in its place. + * + * @static + * @memberOf _ + * @since 3.7.0 + * @category Object + * @param {Object} object The object to query. + * @param {Array|string} path The path of the property to get. + * @param {*} [defaultValue] The value returned for `undefined` resolved values. + * @returns {*} Returns the resolved value. + * @example + * + * var object = { 'a': [{ 'b': { 'c': 3 } }] }; + * + * _.get(object, 'a[0].b.c'); + * // => 3 + * + * _.get(object, ['a', '0', 'b', 'c']); + * // => 3 + * + * _.get(object, 'a.b.c', 'default'); + * // => 'default' + */function get(object,path,defaultValue){var result=object==null?undefined$1:baseGet(object,path);return result===undefined$1?defaultValue:result;}/** + * Checks if `path` is a direct property of `object`. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Object + * @param {Object} object The object to query. + * @param {Array|string} path The path to check. + * @returns {boolean} Returns `true` if `path` exists, else `false`. + * @example + * + * var object = { 'a': { 'b': 2 } }; + * var other = _.create({ 'a': _.create({ 'b': 2 }) }); + * + * _.has(object, 'a'); + * // => true + * + * _.has(object, 'a.b'); + * // => true + * + * _.has(object, ['a', 'b']); + * // => true + * + * _.has(other, 'a'); + * // => false + */function has(object,path){return object!=null&&hasPath(object,path,baseHas);}/** + * Checks if `path` is a direct or inherited property of `object`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Object + * @param {Object} object The object to query. + * @param {Array|string} path The path to check. + * @returns {boolean} Returns `true` if `path` exists, else `false`. + * @example + * + * var object = _.create({ 'a': _.create({ 'b': 2 }) }); + * + * _.hasIn(object, 'a'); + * // => true + * + * _.hasIn(object, 'a.b'); + * // => true + * + * _.hasIn(object, ['a', 'b']); + * // => true + * + * _.hasIn(object, 'b'); + * // => false + */function hasIn(object,path){return object!=null&&hasPath(object,path,baseHasIn);}/** + * Creates an object composed of the inverted keys and values of `object`. + * If `object` contains duplicate values, subsequent values overwrite + * property assignments of previous values. + * + * @static + * @memberOf _ + * @since 0.7.0 + * @category Object + * @param {Object} object The object to invert. + * @returns {Object} Returns the new inverted object. + * @example + * + * var object = { 'a': 1, 'b': 2, 'c': 1 }; + * + * _.invert(object); + * // => { '1': 'c', '2': 'b' } + */var invert=createInverter(function(result,value,key){if(value!=null&&typeof value.toString!='function'){value=nativeObjectToString.call(value);}result[value]=key;},constant(identity));/** + * This method is like `_.invert` except that the inverted object is generated + * from the results of running each element of `object` thru `iteratee`. The + * corresponding inverted value of each inverted key is an array of keys + * responsible for generating the inverted value. The iteratee is invoked + * with one argument: (value). + * + * @static + * @memberOf _ + * @since 4.1.0 + * @category Object + * @param {Object} object The object to invert. + * @param {Function} [iteratee=_.identity] The iteratee invoked per element. + * @returns {Object} Returns the new inverted object. + * @example + * + * var object = { 'a': 1, 'b': 2, 'c': 1 }; + * + * _.invertBy(object); + * // => { '1': ['a', 'c'], '2': ['b'] } + * + * _.invertBy(object, function(value) { + * return 'group' + value; + * }); + * // => { 'group1': ['a', 'c'], 'group2': ['b'] } + */var invertBy=createInverter(function(result,value,key){if(value!=null&&typeof value.toString!='function'){value=nativeObjectToString.call(value);}if(hasOwnProperty.call(result,value)){result[value].push(key);}else {result[value]=[key];}},getIteratee);/** + * Invokes the method at `path` of `object`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Object + * @param {Object} object The object to query. + * @param {Array|string} path The path of the method to invoke. + * @param {...*} [args] The arguments to invoke the method with. + * @returns {*} Returns the result of the invoked method. + * @example + * + * var object = { 'a': [{ 'b': { 'c': [1, 2, 3, 4] } }] }; + * + * _.invoke(object, 'a[0].b.c.slice', 1, 3); + * // => [2, 3] + */var invoke=baseRest(baseInvoke);/** + * Creates an array of the own enumerable property names of `object`. + * + * **Note:** Non-object values are coerced to objects. See the + * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) + * for more details. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Object + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names. + * @example + * + * function Foo() { + * this.a = 1; + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.keys(new Foo); + * // => ['a', 'b'] (iteration order is not guaranteed) + * + * _.keys('hi'); + * // => ['0', '1'] + */function keys(object){return isArrayLike(object)?arrayLikeKeys(object):baseKeys(object);}/** + * Creates an array of the own and inherited enumerable property names of `object`. + * + * **Note:** Non-object values are coerced to objects. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Object + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names. + * @example + * + * function Foo() { + * this.a = 1; + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.keysIn(new Foo); + * // => ['a', 'b', 'c'] (iteration order is not guaranteed) + */function keysIn(object){return isArrayLike(object)?arrayLikeKeys(object,true):baseKeysIn(object);}/** + * The opposite of `_.mapValues`; this method creates an object with the + * same values as `object` and keys generated by running each own enumerable + * string keyed property of `object` thru `iteratee`. The iteratee is invoked + * with three arguments: (value, key, object). + * + * @static + * @memberOf _ + * @since 3.8.0 + * @category Object + * @param {Object} object The object to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @returns {Object} Returns the new mapped object. + * @see _.mapValues + * @example + * + * _.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) { + * return key + value; + * }); + * // => { 'a1': 1, 'b2': 2 } + */function mapKeys(object,iteratee){var result={};iteratee=getIteratee(iteratee,3);baseForOwn(object,function(value,key,object){baseAssignValue(result,iteratee(value,key,object),value);});return result;}/** + * Creates an object with the same keys as `object` and values generated + * by running each own enumerable string keyed property of `object` thru + * `iteratee`. The iteratee is invoked with three arguments: + * (value, key, object). + * + * @static + * @memberOf _ + * @since 2.4.0 + * @category Object + * @param {Object} object The object to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @returns {Object} Returns the new mapped object. + * @see _.mapKeys + * @example + * + * var users = { + * 'fred': { 'user': 'fred', 'age': 40 }, + * 'pebbles': { 'user': 'pebbles', 'age': 1 } + * }; + * + * _.mapValues(users, function(o) { return o.age; }); + * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed) + * + * // The `_.property` iteratee shorthand. + * _.mapValues(users, 'age'); + * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed) + */function mapValues(object,iteratee){var result={};iteratee=getIteratee(iteratee,3);baseForOwn(object,function(value,key,object){baseAssignValue(result,key,iteratee(value,key,object));});return result;}/** + * This method is like `_.assign` except that it recursively merges own and + * inherited enumerable string keyed properties of source objects into the + * destination object. Source properties that resolve to `undefined` are + * skipped if a destination value exists. Array and plain object properties + * are merged recursively. Other objects and value types are overridden by + * assignment. Source objects are applied from left to right. Subsequent + * sources overwrite property assignments of previous sources. + * + * **Note:** This method mutates `object`. + * + * @static + * @memberOf _ + * @since 0.5.0 + * @category Object + * @param {Object} object The destination object. + * @param {...Object} [sources] The source objects. + * @returns {Object} Returns `object`. + * @example + * + * var object = { + * 'a': [{ 'b': 2 }, { 'd': 4 }] + * }; + * + * var other = { + * 'a': [{ 'c': 3 }, { 'e': 5 }] + * }; + * + * _.merge(object, other); + * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] } + */var merge=createAssigner(function(object,source,srcIndex){baseMerge(object,source,srcIndex);});/** + * This method is like `_.merge` except that it accepts `customizer` which + * is invoked to produce the merged values of the destination and source + * properties. If `customizer` returns `undefined`, merging is handled by the + * method instead. The `customizer` is invoked with six arguments: + * (objValue, srcValue, key, object, source, stack). + * + * **Note:** This method mutates `object`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Object + * @param {Object} object The destination object. + * @param {...Object} sources The source objects. + * @param {Function} customizer The function to customize assigned values. + * @returns {Object} Returns `object`. + * @example + * + * function customizer(objValue, srcValue) { + * if (_.isArray(objValue)) { + * return objValue.concat(srcValue); + * } + * } + * + * var object = { 'a': [1], 'b': [2] }; + * var other = { 'a': [3], 'b': [4] }; + * + * _.mergeWith(object, other, customizer); + * // => { 'a': [1, 3], 'b': [2, 4] } + */var mergeWith=createAssigner(function(object,source,srcIndex,customizer){baseMerge(object,source,srcIndex,customizer);});/** + * The opposite of `_.pick`; this method creates an object composed of the + * own and inherited enumerable property paths of `object` that are not omitted. + * + * **Note:** This method is considerably slower than `_.pick`. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Object + * @param {Object} object The source object. + * @param {...(string|string[])} [paths] The property paths to omit. + * @returns {Object} Returns the new object. + * @example + * + * var object = { 'a': 1, 'b': '2', 'c': 3 }; + * + * _.omit(object, ['a', 'c']); + * // => { 'b': '2' } + */var omit=flatRest(function(object,paths){var result={};if(object==null){return result;}var isDeep=false;paths=arrayMap(paths,function(path){path=castPath(path,object);isDeep||(isDeep=path.length>1);return path;});copyObject(object,getAllKeysIn(object),result);if(isDeep){result=baseClone(result,CLONE_DEEP_FLAG|CLONE_FLAT_FLAG|CLONE_SYMBOLS_FLAG,customOmitClone);}var length=paths.length;while(length--){baseUnset(result,paths[length]);}return result;});/** + * The opposite of `_.pickBy`; this method creates an object composed of + * the own and inherited enumerable string keyed properties of `object` that + * `predicate` doesn't return truthy for. The predicate is invoked with two + * arguments: (value, key). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Object + * @param {Object} object The source object. + * @param {Function} [predicate=_.identity] The function invoked per property. + * @returns {Object} Returns the new object. + * @example + * + * var object = { 'a': 1, 'b': '2', 'c': 3 }; + * + * _.omitBy(object, _.isNumber); + * // => { 'b': '2' } + */function omitBy(object,predicate){return pickBy(object,negate(getIteratee(predicate)));}/** + * Creates an object composed of the picked `object` properties. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Object + * @param {Object} object The source object. + * @param {...(string|string[])} [paths] The property paths to pick. + * @returns {Object} Returns the new object. + * @example + * + * var object = { 'a': 1, 'b': '2', 'c': 3 }; + * + * _.pick(object, ['a', 'c']); + * // => { 'a': 1, 'c': 3 } + */var pick=flatRest(function(object,paths){return object==null?{}:basePick(object,paths);});/** + * Creates an object composed of the `object` properties `predicate` returns + * truthy for. The predicate is invoked with two arguments: (value, key). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Object + * @param {Object} object The source object. + * @param {Function} [predicate=_.identity] The function invoked per property. + * @returns {Object} Returns the new object. + * @example + * + * var object = { 'a': 1, 'b': '2', 'c': 3 }; + * + * _.pickBy(object, _.isNumber); + * // => { 'a': 1, 'c': 3 } + */function pickBy(object,predicate){if(object==null){return {};}var props=arrayMap(getAllKeysIn(object),function(prop){return [prop];});predicate=getIteratee(predicate);return basePickBy(object,props,function(value,path){return predicate(value,path[0]);});}/** + * This method is like `_.get` except that if the resolved value is a + * function it's invoked with the `this` binding of its parent object and + * its result is returned. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Object + * @param {Object} object The object to query. + * @param {Array|string} path The path of the property to resolve. + * @param {*} [defaultValue] The value returned for `undefined` resolved values. + * @returns {*} Returns the resolved value. + * @example + * + * var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] }; + * + * _.result(object, 'a[0].b.c1'); + * // => 3 + * + * _.result(object, 'a[0].b.c2'); + * // => 4 + * + * _.result(object, 'a[0].b.c3', 'default'); + * // => 'default' + * + * _.result(object, 'a[0].b.c3', _.constant('default')); + * // => 'default' + */function result(object,path,defaultValue){path=castPath(path,object);var index=-1,length=path.length;// Ensure the loop is entered when path is empty. + if(!length){length=1;object=undefined$1;}while(++index 4 + * + * _.set(object, ['x', '0', 'y', 'z'], 5); + * console.log(object.x[0].y.z); + * // => 5 + */function set(object,path,value){return object==null?object:baseSet(object,path,value);}/** + * This method is like `_.set` except that it accepts `customizer` which is + * invoked to produce the objects of `path`. If `customizer` returns `undefined` + * path creation is handled by the method instead. The `customizer` is invoked + * with three arguments: (nsValue, key, nsObject). + * + * **Note:** This method mutates `object`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Object + * @param {Object} object The object to modify. + * @param {Array|string} path The path of the property to set. + * @param {*} value The value to set. + * @param {Function} [customizer] The function to customize assigned values. + * @returns {Object} Returns `object`. + * @example + * + * var object = {}; + * + * _.setWith(object, '[0][1]', 'a', Object); + * // => { '0': { '1': 'a' } } + */function setWith(object,path,value,customizer){customizer=typeof customizer=='function'?customizer:undefined$1;return object==null?object:baseSet(object,path,value,customizer);}/** + * Creates an array of own enumerable string keyed-value pairs for `object` + * which can be consumed by `_.fromPairs`. If `object` is a map or set, its + * entries are returned. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @alias entries + * @category Object + * @param {Object} object The object to query. + * @returns {Array} Returns the key-value pairs. + * @example + * + * function Foo() { + * this.a = 1; + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.toPairs(new Foo); + * // => [['a', 1], ['b', 2]] (iteration order is not guaranteed) + */var toPairs=createToPairs(keys);/** + * Creates an array of own and inherited enumerable string keyed-value pairs + * for `object` which can be consumed by `_.fromPairs`. If `object` is a map + * or set, its entries are returned. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @alias entriesIn + * @category Object + * @param {Object} object The object to query. + * @returns {Array} Returns the key-value pairs. + * @example + * + * function Foo() { + * this.a = 1; + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.toPairsIn(new Foo); + * // => [['a', 1], ['b', 2], ['c', 3]] (iteration order is not guaranteed) + */var toPairsIn=createToPairs(keysIn);/** + * An alternative to `_.reduce`; this method transforms `object` to a new + * `accumulator` object which is the result of running each of its own + * enumerable string keyed properties thru `iteratee`, with each invocation + * potentially mutating the `accumulator` object. If `accumulator` is not + * provided, a new object with the same `[[Prototype]]` will be used. The + * iteratee is invoked with four arguments: (accumulator, value, key, object). + * Iteratee functions may exit iteration early by explicitly returning `false`. + * + * @static + * @memberOf _ + * @since 1.3.0 + * @category Object + * @param {Object} object The object to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @param {*} [accumulator] The custom accumulator value. + * @returns {*} Returns the accumulated value. + * @example + * + * _.transform([2, 3, 4], function(result, n) { + * result.push(n *= n); + * return n % 2 == 0; + * }, []); + * // => [4, 9] + * + * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) { + * (result[value] || (result[value] = [])).push(key); + * }, {}); + * // => { '1': ['a', 'c'], '2': ['b'] } + */function transform(object,iteratee,accumulator){var isArr=isArray(object),isArrLike=isArr||isBuffer(object)||isTypedArray(object);iteratee=getIteratee(iteratee,4);if(accumulator==null){var Ctor=object&&object.constructor;if(isArrLike){accumulator=isArr?new Ctor():[];}else if(isObject(object)){accumulator=isFunction(Ctor)?baseCreate(getPrototype(object)):{};}else {accumulator={};}}(isArrLike?arrayEach:baseForOwn)(object,function(value,index,object){return iteratee(accumulator,value,index,object);});return accumulator;}/** + * Removes the property at `path` of `object`. + * + * **Note:** This method mutates `object`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Object + * @param {Object} object The object to modify. + * @param {Array|string} path The path of the property to unset. + * @returns {boolean} Returns `true` if the property is deleted, else `false`. + * @example + * + * var object = { 'a': [{ 'b': { 'c': 7 } }] }; + * _.unset(object, 'a[0].b.c'); + * // => true + * + * console.log(object); + * // => { 'a': [{ 'b': {} }] }; + * + * _.unset(object, ['a', '0', 'b', 'c']); + * // => true + * + * console.log(object); + * // => { 'a': [{ 'b': {} }] }; + */function unset(object,path){return object==null?true:baseUnset(object,path);}/** + * This method is like `_.set` except that accepts `updater` to produce the + * value to set. Use `_.updateWith` to customize `path` creation. The `updater` + * is invoked with one argument: (value). + * + * **Note:** This method mutates `object`. + * + * @static + * @memberOf _ + * @since 4.6.0 + * @category Object + * @param {Object} object The object to modify. + * @param {Array|string} path The path of the property to set. + * @param {Function} updater The function to produce the updated value. + * @returns {Object} Returns `object`. + * @example + * + * var object = { 'a': [{ 'b': { 'c': 3 } }] }; + * + * _.update(object, 'a[0].b.c', function(n) { return n * n; }); + * console.log(object.a[0].b.c); + * // => 9 + * + * _.update(object, 'x[0].y.z', function(n) { return n ? n + 1 : 0; }); + * console.log(object.x[0].y.z); + * // => 0 + */function update(object,path,updater){return object==null?object:baseUpdate(object,path,castFunction(updater));}/** + * This method is like `_.update` except that it accepts `customizer` which is + * invoked to produce the objects of `path`. If `customizer` returns `undefined` + * path creation is handled by the method instead. The `customizer` is invoked + * with three arguments: (nsValue, key, nsObject). + * + * **Note:** This method mutates `object`. + * + * @static + * @memberOf _ + * @since 4.6.0 + * @category Object + * @param {Object} object The object to modify. + * @param {Array|string} path The path of the property to set. + * @param {Function} updater The function to produce the updated value. + * @param {Function} [customizer] The function to customize assigned values. + * @returns {Object} Returns `object`. + * @example + * + * var object = {}; + * + * _.updateWith(object, '[0][1]', _.constant('a'), Object); + * // => { '0': { '1': 'a' } } + */function updateWith(object,path,updater,customizer){customizer=typeof customizer=='function'?customizer:undefined$1;return object==null?object:baseUpdate(object,path,castFunction(updater),customizer);}/** + * Creates an array of the own enumerable string keyed property values of `object`. + * + * **Note:** Non-object values are coerced to objects. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Object + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property values. + * @example + * + * function Foo() { + * this.a = 1; + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.values(new Foo); + * // => [1, 2] (iteration order is not guaranteed) + * + * _.values('hi'); + * // => ['h', 'i'] + */function values(object){return object==null?[]:baseValues(object,keys(object));}/** + * Creates an array of the own and inherited enumerable string keyed property + * values of `object`. + * + * **Note:** Non-object values are coerced to objects. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Object + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property values. + * @example + * + * function Foo() { + * this.a = 1; + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.valuesIn(new Foo); + * // => [1, 2, 3] (iteration order is not guaranteed) + */function valuesIn(object){return object==null?[]:baseValues(object,keysIn(object));}/*------------------------------------------------------------------------*/ /** + * Clamps `number` within the inclusive `lower` and `upper` bounds. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Number + * @param {number} number The number to clamp. + * @param {number} [lower] The lower bound. + * @param {number} upper The upper bound. + * @returns {number} Returns the clamped number. + * @example + * + * _.clamp(-10, -5, 5); + * // => -5 + * + * _.clamp(10, -5, 5); + * // => 5 + */function clamp(number,lower,upper){if(upper===undefined$1){upper=lower;lower=undefined$1;}if(upper!==undefined$1){upper=toNumber(upper);upper=upper===upper?upper:0;}if(lower!==undefined$1){lower=toNumber(lower);lower=lower===lower?lower:0;}return baseClamp(toNumber(number),lower,upper);}/** + * Checks if `n` is between `start` and up to, but not including, `end`. If + * `end` is not specified, it's set to `start` with `start` then set to `0`. + * If `start` is greater than `end` the params are swapped to support + * negative ranges. + * + * @static + * @memberOf _ + * @since 3.3.0 + * @category Number + * @param {number} number The number to check. + * @param {number} [start=0] The start of the range. + * @param {number} end The end of the range. + * @returns {boolean} Returns `true` if `number` is in the range, else `false`. + * @see _.range, _.rangeRight + * @example + * + * _.inRange(3, 2, 4); + * // => true + * + * _.inRange(4, 8); + * // => true + * + * _.inRange(4, 2); + * // => false + * + * _.inRange(2, 2); + * // => false + * + * _.inRange(1.2, 2); + * // => true + * + * _.inRange(5.2, 4); + * // => false + * + * _.inRange(-3, -2, -6); + * // => true + */function inRange(number,start,end){start=toFinite(start);if(end===undefined$1){end=start;start=0;}else {end=toFinite(end);}number=toNumber(number);return baseInRange(number,start,end);}/** + * Produces a random number between the inclusive `lower` and `upper` bounds. + * If only one argument is provided a number between `0` and the given number + * is returned. If `floating` is `true`, or either `lower` or `upper` are + * floats, a floating-point number is returned instead of an integer. + * + * **Note:** JavaScript follows the IEEE-754 standard for resolving + * floating-point values which can produce unexpected results. + * + * @static + * @memberOf _ + * @since 0.7.0 + * @category Number + * @param {number} [lower=0] The lower bound. + * @param {number} [upper=1] The upper bound. + * @param {boolean} [floating] Specify returning a floating-point number. + * @returns {number} Returns the random number. + * @example + * + * _.random(0, 5); + * // => an integer between 0 and 5 + * + * _.random(5); + * // => also an integer between 0 and 5 + * + * _.random(5, true); + * // => a floating-point number between 0 and 5 + * + * _.random(1.2, 5.2); + * // => a floating-point number between 1.2 and 5.2 + */function random(lower,upper,floating){if(floating&&typeof floating!='boolean'&&isIterateeCall(lower,upper,floating)){upper=floating=undefined$1;}if(floating===undefined$1){if(typeof upper=='boolean'){floating=upper;upper=undefined$1;}else if(typeof lower=='boolean'){floating=lower;lower=undefined$1;}}if(lower===undefined$1&&upper===undefined$1){lower=0;upper=1;}else {lower=toFinite(lower);if(upper===undefined$1){upper=lower;lower=0;}else {upper=toFinite(upper);}}if(lower>upper){var temp=lower;lower=upper;upper=temp;}if(floating||lower%1||upper%1){var rand=nativeRandom();return nativeMin(lower+rand*(upper-lower+freeParseFloat('1e-'+((rand+'').length-1))),upper);}return baseRandom(lower,upper);}/*------------------------------------------------------------------------*/ /** + * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase). + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category String + * @param {string} [string=''] The string to convert. + * @returns {string} Returns the camel cased string. + * @example + * + * _.camelCase('Foo Bar'); + * // => 'fooBar' + * + * _.camelCase('--foo-bar--'); + * // => 'fooBar' + * + * _.camelCase('__FOO_BAR__'); + * // => 'fooBar' + */var camelCase=createCompounder(function(result,word,index){word=word.toLowerCase();return result+(index?capitalize(word):word);});/** + * Converts the first character of `string` to upper case and the remaining + * to lower case. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category String + * @param {string} [string=''] The string to capitalize. + * @returns {string} Returns the capitalized string. + * @example + * + * _.capitalize('FRED'); + * // => 'Fred' + */function capitalize(string){return upperFirst(toString(string).toLowerCase());}/** + * Deburrs `string` by converting + * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table) + * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A) + * letters to basic Latin letters and removing + * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks). + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category String + * @param {string} [string=''] The string to deburr. + * @returns {string} Returns the deburred string. + * @example + * + * _.deburr('déjà vu'); + * // => 'deja vu' + */function deburr(string){string=toString(string);return string&&string.replace(reLatin,deburrLetter).replace(reComboMark,'');}/** + * Checks if `string` ends with the given target string. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category String + * @param {string} [string=''] The string to inspect. + * @param {string} [target] The string to search for. + * @param {number} [position=string.length] The position to search up to. + * @returns {boolean} Returns `true` if `string` ends with `target`, + * else `false`. + * @example + * + * _.endsWith('abc', 'c'); + * // => true + * + * _.endsWith('abc', 'b'); + * // => false + * + * _.endsWith('abc', 'b', 2); + * // => true + */function endsWith(string,target,position){string=toString(string);target=baseToString(target);var length=string.length;position=position===undefined$1?length:baseClamp(toInteger(position),0,length);var end=position;position-=target.length;return position>=0&&string.slice(position,end)==target;}/** + * Converts the characters "&", "<", ">", '"', and "'" in `string` to their + * corresponding HTML entities. + * + * **Note:** No other characters are escaped. To escape additional + * characters use a third-party library like [_he_](https://mths.be/he). + * + * Though the ">" character is escaped for symmetry, characters like + * ">" and "/" don't need escaping in HTML and have no special meaning + * unless they're part of a tag or unquoted attribute value. See + * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands) + * (under "semi-related fun fact") for more details. + * + * When working with HTML you should always + * [quote attribute values](http://wonko.com/post/html-escaping) to reduce + * XSS vectors. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category String + * @param {string} [string=''] The string to escape. + * @returns {string} Returns the escaped string. + * @example + * + * _.escape('fred, barney, & pebbles'); + * // => 'fred, barney, & pebbles' + */function escape(string){string=toString(string);return string&&reHasUnescapedHtml.test(string)?string.replace(reUnescapedHtml,escapeHtmlChar):string;}/** + * Escapes the `RegExp` special characters "^", "$", "\", ".", "*", "+", + * "?", "(", ")", "[", "]", "{", "}", and "|" in `string`. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category String + * @param {string} [string=''] The string to escape. + * @returns {string} Returns the escaped string. + * @example + * + * _.escapeRegExp('[lodash](https://lodash.com/)'); + * // => '\[lodash\]\(https://lodash\.com/\)' + */function escapeRegExp(string){string=toString(string);return string&&reHasRegExpChar.test(string)?string.replace(reRegExpChar,'\\$&'):string;}/** + * Converts `string` to + * [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles). + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category String + * @param {string} [string=''] The string to convert. + * @returns {string} Returns the kebab cased string. + * @example + * + * _.kebabCase('Foo Bar'); + * // => 'foo-bar' + * + * _.kebabCase('fooBar'); + * // => 'foo-bar' + * + * _.kebabCase('__FOO_BAR__'); + * // => 'foo-bar' + */var kebabCase=createCompounder(function(result,word,index){return result+(index?'-':'')+word.toLowerCase();});/** + * Converts `string`, as space separated words, to lower case. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category String + * @param {string} [string=''] The string to convert. + * @returns {string} Returns the lower cased string. + * @example + * + * _.lowerCase('--Foo-Bar--'); + * // => 'foo bar' + * + * _.lowerCase('fooBar'); + * // => 'foo bar' + * + * _.lowerCase('__FOO_BAR__'); + * // => 'foo bar' + */var lowerCase=createCompounder(function(result,word,index){return result+(index?' ':'')+word.toLowerCase();});/** + * Converts the first character of `string` to lower case. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category String + * @param {string} [string=''] The string to convert. + * @returns {string} Returns the converted string. + * @example + * + * _.lowerFirst('Fred'); + * // => 'fred' + * + * _.lowerFirst('FRED'); + * // => 'fRED' + */var lowerFirst=createCaseFirst('toLowerCase');/** + * Pads `string` on the left and right sides if it's shorter than `length`. + * Padding characters are truncated if they can't be evenly divided by `length`. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category String + * @param {string} [string=''] The string to pad. + * @param {number} [length=0] The padding length. + * @param {string} [chars=' '] The string used as padding. + * @returns {string} Returns the padded string. + * @example + * + * _.pad('abc', 8); + * // => ' abc ' + * + * _.pad('abc', 8, '_-'); + * // => '_-abc_-_' + * + * _.pad('abc', 3); + * // => 'abc' + */function pad(string,length,chars){string=toString(string);length=toInteger(length);var strLength=length?stringSize(string):0;if(!length||strLength>=length){return string;}var mid=(length-strLength)/2;return createPadding(nativeFloor(mid),chars)+string+createPadding(nativeCeil(mid),chars);}/** + * Pads `string` on the right side if it's shorter than `length`. Padding + * characters are truncated if they exceed `length`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category String + * @param {string} [string=''] The string to pad. + * @param {number} [length=0] The padding length. + * @param {string} [chars=' '] The string used as padding. + * @returns {string} Returns the padded string. + * @example + * + * _.padEnd('abc', 6); + * // => 'abc ' + * + * _.padEnd('abc', 6, '_-'); + * // => 'abc_-_' + * + * _.padEnd('abc', 3); + * // => 'abc' + */function padEnd(string,length,chars){string=toString(string);length=toInteger(length);var strLength=length?stringSize(string):0;return length&&strLength ' abc' + * + * _.padStart('abc', 6, '_-'); + * // => '_-_abc' + * + * _.padStart('abc', 3); + * // => 'abc' + */function padStart(string,length,chars){string=toString(string);length=toInteger(length);var strLength=length?stringSize(string):0;return length&&strLength 8 + * + * _.map(['6', '08', '10'], _.parseInt); + * // => [6, 8, 10] + */function parseInt(string,radix,guard){if(guard||radix==null){radix=0;}else if(radix){radix=+radix;}return nativeParseInt(toString(string).replace(reTrimStart,''),radix||0);}/** + * Repeats the given string `n` times. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category String + * @param {string} [string=''] The string to repeat. + * @param {number} [n=1] The number of times to repeat the string. + * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @returns {string} Returns the repeated string. + * @example + * + * _.repeat('*', 3); + * // => '***' + * + * _.repeat('abc', 2); + * // => 'abcabc' + * + * _.repeat('abc', 0); + * // => '' + */function repeat(string,n,guard){if(guard?isIterateeCall(string,n,guard):n===undefined$1){n=1;}else {n=toInteger(n);}return baseRepeat(toString(string),n);}/** + * Replaces matches for `pattern` in `string` with `replacement`. + * + * **Note:** This method is based on + * [`String#replace`](https://mdn.io/String/replace). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category String + * @param {string} [string=''] The string to modify. + * @param {RegExp|string} pattern The pattern to replace. + * @param {Function|string} replacement The match replacement. + * @returns {string} Returns the modified string. + * @example + * + * _.replace('Hi Fred', 'Fred', 'Barney'); + * // => 'Hi Barney' + */function replace(){var args=arguments,string=toString(args[0]);return args.length<3?string:string.replace(args[1],args[2]);}/** + * Converts `string` to + * [snake case](https://en.wikipedia.org/wiki/Snake_case). + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category String + * @param {string} [string=''] The string to convert. + * @returns {string} Returns the snake cased string. + * @example + * + * _.snakeCase('Foo Bar'); + * // => 'foo_bar' + * + * _.snakeCase('fooBar'); + * // => 'foo_bar' + * + * _.snakeCase('--FOO-BAR--'); + * // => 'foo_bar' + */var snakeCase=createCompounder(function(result,word,index){return result+(index?'_':'')+word.toLowerCase();});/** + * Splits `string` by `separator`. + * + * **Note:** This method is based on + * [`String#split`](https://mdn.io/String/split). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category String + * @param {string} [string=''] The string to split. + * @param {RegExp|string} separator The separator pattern to split by. + * @param {number} [limit] The length to truncate results to. + * @returns {Array} Returns the string segments. + * @example + * + * _.split('a-b-c', '-', 2); + * // => ['a', 'b'] + */function split(string,separator,limit){if(limit&&typeof limit!='number'&&isIterateeCall(string,separator,limit)){separator=limit=undefined$1;}limit=limit===undefined$1?MAX_ARRAY_LENGTH:limit>>>0;if(!limit){return [];}string=toString(string);if(string&&(typeof separator=='string'||separator!=null&&!isRegExp(separator))){separator=baseToString(separator);if(!separator&&hasUnicode(string)){return castSlice(stringToArray(string),0,limit);}}return string.split(separator,limit);}/** + * Converts `string` to + * [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage). + * + * @static + * @memberOf _ + * @since 3.1.0 + * @category String + * @param {string} [string=''] The string to convert. + * @returns {string} Returns the start cased string. + * @example + * + * _.startCase('--foo-bar--'); + * // => 'Foo Bar' + * + * _.startCase('fooBar'); + * // => 'Foo Bar' + * + * _.startCase('__FOO_BAR__'); + * // => 'FOO BAR' + */var startCase=createCompounder(function(result,word,index){return result+(index?' ':'')+upperFirst(word);});/** + * Checks if `string` starts with the given target string. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category String + * @param {string} [string=''] The string to inspect. + * @param {string} [target] The string to search for. + * @param {number} [position=0] The position to search from. + * @returns {boolean} Returns `true` if `string` starts with `target`, + * else `false`. + * @example + * + * _.startsWith('abc', 'a'); + * // => true + * + * _.startsWith('abc', 'b'); + * // => false + * + * _.startsWith('abc', 'b', 1); + * // => true + */function startsWith(string,target,position){string=toString(string);position=position==null?0:baseClamp(toInteger(position),0,string.length);target=baseToString(target);return string.slice(position,position+target.length)==target;}/** + * Creates a compiled template function that can interpolate data properties + * in "interpolate" delimiters, HTML-escape interpolated data properties in + * "escape" delimiters, and execute JavaScript in "evaluate" delimiters. Data + * properties may be accessed as free variables in the template. If a setting + * object is given, it takes precedence over `_.templateSettings` values. + * + * **Note:** In the development build `_.template` utilizes + * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl) + * for easier debugging. + * + * For more information on precompiling templates see + * [lodash's custom builds documentation](https://lodash.com/custom-builds). + * + * For more information on Chrome extension sandboxes see + * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval). + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category String + * @param {string} [string=''] The template string. + * @param {Object} [options={}] The options object. + * @param {RegExp} [options.escape=_.templateSettings.escape] + * The HTML "escape" delimiter. + * @param {RegExp} [options.evaluate=_.templateSettings.evaluate] + * The "evaluate" delimiter. + * @param {Object} [options.imports=_.templateSettings.imports] + * An object to import into the template as free variables. + * @param {RegExp} [options.interpolate=_.templateSettings.interpolate] + * The "interpolate" delimiter. + * @param {string} [options.sourceURL='lodash.templateSources[n]'] + * The sourceURL of the compiled template. + * @param {string} [options.variable='obj'] + * The data object variable name. + * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @returns {Function} Returns the compiled template function. + * @example + * + * // Use the "interpolate" delimiter to create a compiled template. + * var compiled = _.template('hello <%= user %>!'); + * compiled({ 'user': 'fred' }); + * // => 'hello fred!' + * + * // Use the HTML "escape" delimiter to escape data property values. + * var compiled = _.template('<%- value %>'); + * compiled({ 'value': '