PageSourceSearch

https://hopeful-jones-0ef7d3.netlify.app/static/js/668.cd95a876.chunk.js

js hopeful-jones-0ef7d3.netlify.app collected 2026-10-03 10:52:49 UTC 110,791 bytes, 3 lines download raw bytes

1/*! For license information please see 668.cd95a876.chunk.js.LICENSE.txt */
2(self.webpackChunkJames_L_Avakian=self.webpackChunkJames_L_Avakian||[]).push([[668],{7228:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},3646:function(e,t,n){var r=n(7228);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},4575:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},3913:function(e){function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},3269:function(e,t,n){var r=n(379);e.exports=function(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=r(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}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 a,c=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){u=!0,a=e},f:function(){try{c||null==n.return||n.return()}finally{if(u)throw a}}}},e.exports.__esModule=!0,e.exports.default=e.exports},6860:function(e){e.exports=function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},8206:function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},319:function(e,t,n){var r=n(3646),o=n(6860),i=n(379),a=n(8206);e.exports=function(e){return r(e)||o(e)||i(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},379:function(e,t,n){var r=n(7228);e.exports=function(e,t){if(e){if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},8306:function(e,t,n){var r=n(4575).default,o=n(3913).default,i=Symbol("SemVer ANY"),a=function(){"use strict";function e(t,n){if(r(this,e),n=c(n),t instanceof e){if(t.loose===!!n.loose)return t;t=t.value}h("comparator",t,n),this.options=n,this.loose=!!n.loose,this.parse(t),this.semver===i?this.value="":this.value=this.operator+this.semver.version,h("comp",this)}return o(e,[{key:"parse",value:function(e){var t=this.options.loose?s[l.COMPARATORLOOSE]:s[l.COMPARATOR],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: ".concat(e));this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new p(n[2],this.options.loose):this.semver=i}},{key:"toString",value:function(){return this.value}},{key:"test",value:function(e){if(h("Comparator.test",e,this.options.loose),this.semver===i||e===i)return!0;if("string"===typeof e)try{e=new p(e,this.options)}catch(t){return!1}return f(e,this.operator,this.semver,this.options)}},{key:"intersects",value:function(t,n){if(!(t instanceof e))throw new TypeError("a Comparator is required");if(n&&"object"===typeof n||(n={loose:!!n,includePrerelease:!1}),""===this.operator)return""===this.value||new d(t.value,n).test(this.value);if(""===t.operator)return""===t.value||new d(this.value,n).test(t.semver);var r=(">="===this.operator||">"===this.operator)&&(">="===t.operator||">"===t.operator),o=("<="===this.operator||"<"===this.operator)&&("<="===t.operator||"<"===t.operator),i=this.semver.version===t.semver.version,a=(">="===this.operator||"<="===this.operator)&&(">="===t.operator||"<="===t.operator),c=f(this.semver,"<",t.semver,n)&&(">="===this.operator||">"===this.operator)&&("<="===t.operator||"<"===t.operator),u=f(this.semver,">",t.semver,n)&&("<="===this.operator||"<"===this.operator)&&(">="===t.operator||">"===t.operator);return r||o||i&&a||c||u}}],[{key:"ANY",get:function(){return i}}]),e}();e.exports=a;var c=n(1262),u=n(1882),s=u.re,l=u.t,f=n(1426),h=n(7211),p=n(842),d=n(9206)},9206:function(e,t,n){var r=n(319).default,o=n(3269).default,i=n(4575).default,a=n(3913).default,c=function(){"use strict";function e(t,n){var r=this;if(i(this,e),n=s(n),t instanceof e)return t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease?t:new e(t.raw,n);if(t instanceof l)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease,this.raw=t,this.set=t.split(/\s*\|\|\s*/).map((function(e){return r.parseRange(e.trim())})).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: ".concat(t));if(this.set.length>1){var a=this.set[0];if(this.set=this.set.filter((function(e){return!b(e[0])})),0===this.set.length)this.set=[a];else if(this.set.length>1){var c,u=o(this.set);try{for(u.s();!(c=u.n()).done;){var f=c.value;if(1===f.length&&E(f[0])){this.set=[f];break}}}catch(h){u.e(h)}finally{u.f()}}}this.format()}return a(e,[{key:"format",value:function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range}},{key:"toString",value:function(){return this.range}},{key:"parseRange",value:function(e){var t=this;e=e.trim();var n=Object.keys(this.options).join(","),i="parseRange:".concat(n,":").concat(e),a=u.get(i);if(a)return a;var c=this.options.loose,s=c?d[v.HYPHENRANGELOOSE]:d[v.HYPHENRANGE];e=e.replace(s,k(this.options.includePrerelease)),f("hyphen replace",e),e=e.replace(d[v.COMPARATORTRIM],y),f("comparator trim",e,d[v.COMPARATORTRIM]),e=(e=(e=e.replace(d[v.TILDETRIM],m)).replace(d[v.CARETTRIM],g)).split(/\s+/).join(" ");var h,p=c?d[v.COMPARATORLOOSE]:d[v.COMPARATOR],E=e.split(" ").map((function(e){return w(e,t.options)})).join(" ").split(/\s+/).map((function(e){return L(e,t.options)})).filter(this.options.loose?function(e){return!!e.match(p)}:function(){return!0}).map((function(e){return new l(e,t.options)})),_=(E.length,new Map),I=o(E);try{for(I.s();!(h=I.n()).done;){var A=h.value;if(b(A))return[A];_.set(A.value,A)}}catch(O){I.e(O)}finally{I.f()}_.size>1&&_.has("")&&_.delete("");var S=r(_.values());return u.set(i,S),S}},{key:"intersects",value:function(t,n){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some((function(e){return _(e,n)&&t.set.some((function(t){return _(t,n)&&e.every((function(e){return t.every((function(t){return e.intersects(t,n)}))}))}))}))}},{key:"test",value:function(e){if(!e)return!1;if("string"===typeof e)try{e=new h(e,this.options)}catch(n){return!1}for(var t=0;t<this.set.length;t++)if(P(this.set[t],e,this.options))return!0;return!1}}]),e}();e.exports=c;var u=new(n(9341))({max:1e3}),s=n(1262),l=n(8306),f=n(7211),h=n(842),p=n(1882),d=p.re,v=p.t,y=p.comparatorTrimReplace,m=p.tildeTrimReplace,g=p.caretTrimReplace,b=function(e){return"<0.0.0-0"===e.value},E=function(e){return""===e.value},_=function(e,t){for(var n=!0,r=e.slice(),o=r.pop();n&&r.length;)n=r.every((function(e){return o.intersects(e,t)})),o=r.pop();return n},w=function(e,t){return f("comp",e,t),e=O(e,t),f("caret",e),e=A(e,t),f("tildes",e),e=R(e,t),f("xrange",e),e=T(e,t),f("stars",e),e},I=function(e){return!e||"x"===e.toLowerCase()||"*"===e},A=function(e,t){return e.trim().split(/\s+/).map((function(e){return S(e,t)})).join(" ")},S=function(e,t){var n=t.loose?d[v.TILDELOOSE]:d[v.TILDE];return e.replace(n,(function(t,n,r,o,i){var a;return f("tilde",e,t,n,r,o,i),I(n)?a="":I(r)?a=">=".concat(n,".0.0 <").concat(+n+1,".0.0-0"):I(o)?a=">=".concat(n,".").concat(r,".0 <").concat(n,".").concat(+r+1,".0-0"):i?(f("replaceTilde pr",i),a=">=".concat(n,".").concat(r,".").concat(o,"-").concat(i," <").concat(n,".").concat(+r+1,".0-0")):a=">=".concat(n,".").concat(r,".").concat(o," <").concat(n,".").concat(+r+1,".0-0"),f("tilde return",a),a}))},O=function(e,t){return e.trim().split(/\s+/).map((function(e){return N(e,t)})).join(" ")},N=function(e,t){f("caret",e,t);var n=t.loose?d[v.CARETLOOSE]:d[v.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,(function(t,n,o,i,a){var c;return f("caret",e,t,n,o,i,a),I(n)?c="":I(o)?c=">=".concat(n,".0.0").concat(r," <").concat(+n+1,".0.0-0"):I(i)?c="0"===n?">=".concat(n,".").concat(o,".0").concat(r," <").concat(n,".").concat(+o+1,".0-0"):">=".concat(n,".").concat(o,".0").concat(r," <").concat(+n+1,".0.0-0"):a?(f("replaceCaret pr",a),c="0"===n?"0"===o?">=".concat(n,".").concat(o,".").concat(i,"-").concat(a," <").concat(n,".").concat(o,".").concat(+i+1,"-0"):">=".concat(n,".").concat(o,".").concat(i,"-").concat(a," <").concat(n,".").concat(+o+1,".0-0"):">=".concat(n,".").concat(o,".").concat(i,"-").concat(a," <").concat(+n+1,".0.0-0")):(f("no pr"),c="0"===n?"0"===o?">
2=".concat(n,".").concat(o,".").concat(i).concat(r," <").concat(n,".").concat(o,".").concat(+i+1,"-0"):">=".concat(n,".").concat(o,".").concat(i).concat(r," <").concat(n,".").concat(+o+1,".0-0"):">=".concat(n,".").concat(o,".").concat(i," <").concat(+n+1,".0.0-0")),f("caret return",c),c}))},R=function(e,t){return f("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return x(e,t)})).join(" ")},x=function(e,t){e=e.trim();var n=t.loose?d[v.XRANGELOOSE]:d[v.XRANGE];return e.replace(n,(function(n,r,o,i,a,c){f("xRange",e,n,r,o,i,a,c);var u=I(o),s=u||I(i),l=s||I(a),h=l;return"="===r&&h&&(r=""),c=t.includePrerelease?"-0":"",u?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&h?(s&&(i=0),a=0,">"===r?(r=">=",s?(o=+o+1,i=0,a=0):(i=+i+1,a=0)):"<="===r&&(r="<",s?o=+o+1:i=+i+1),"<"===r&&(c="-0"),n="".concat(r+o,".").concat(i,".").concat(a).concat(c)):s?n=">=".concat(o,".0.0").concat(c," <").concat(+o+1,".0.0-0"):l&&(n=">=".concat(o,".").concat(i,".0").concat(c," <").concat(o,".").concat(+i+1,".0-0")),f("xRange return",n),n}))},T=function(e,t){return f("replaceStars",e,t),e.trim().replace(d[v.STAR],"")},L=function(e,t){return f("replaceGTE0",e,t),e.trim().replace(d[t.includePrerelease?v.GTE0PRE:v.GTE0],"")},k=function(e){return function(t,n,r,o,i,a,c,u,s,l,f,h,p){return n=I(r)?"":I(o)?">=".concat(r,".0.0").concat(e?"-0":""):I(i)?">=".concat(r,".").concat(o,".0").concat(e?"-0":""):a?">=".concat(n):">=".concat(n).concat(e?"-0":""),u=I(s)?"":I(l)?"<".concat(+s+1,".0.0-0"):I(f)?"<".concat(s,".").concat(+l+1,".0-0"):h?"<=".concat(s,".").concat(l,".").concat(f,"-").concat(h):e?"<".concat(s,".").concat(l,".").concat(+f+1,"-0"):"<=".concat(u),"".concat(n," ").concat(u).trim()}},P=function(e,t,n){for(var r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(var o=0;o<e.length;o++)if(f(e[o].semver),e[o].semver!==l.ANY&&e[o].semver.prerelease.length>0){var i=e[o].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}},842:function(e,t,n){var r=n(4575).default,o=n(3913).default,i=n(7211),a=n(8346),c=a.MAX_LENGTH,u=a.MAX_SAFE_INTEGER,s=n(1882),l=s.re,f=s.t,h=n(1262),p=n(4529).compareIdentifiers,d=function(){"use strict";function e(t,n){if(r(this,e),n=h(n),t instanceof e){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if("string"!==typeof t)throw new TypeError("Invalid Version: ".concat(t));if(t.length>c)throw new TypeError("version is longer than ".concat(c," characters"));i("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;var o=t.trim().match(n.loose?l[f.LOOSE]:l[f.FULL]);if(!o)throw new TypeError("Invalid Version: ".concat(t));if(this.raw=t,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>u||this.major<0)throw new TypeError("Invalid major version");if(this.minor>u||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>u||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<u)return t}return e})):this.prerelease=[],this.build=o[5]?o[5].split("."):[],this.format()}return o(e,[{key:"format",value:function(){return this.version="".concat(this.major,".").concat(this.minor,".").concat(this.patch),this.prerelease.length&&(this.version+="-".concat(this.prerelease.join("."))),this.version}},{key:"toString",value:function(){return this.version}},{key:"compare",value:function(t){if(i("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if("string"===typeof t&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}},{key:"compareMain",value:function(t){return t instanceof e||(t=new e(t,this.options)),p(this.major,t.major)||p(this.minor,t.minor)||p(this.patch,t.patch)}},{key:"comparePre",value:function(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;var n=0;do{var r=this.prerelease[n],o=t.prerelease[n];if(i("prerelease compare",n,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return p(r,o)}while(++n)}},{key:"compareBuild",value:function(t){t instanceof e||(t=new e(t,this.options));var n=0;do{var r=this.build[n],o=t.build[n];if(i("prerelease compare",n,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return p(r,o)}while(++n)}},{key:"inc",value:function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"===typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: ".concat(e))}return this.format(),this.raw=this.version,this}}]),e}();e.exports=d},1426:function(e,t,n){var r=n(3732),o=n(7494),i=n(6825),a=n(7236),c=n(6952),u=n(2215);e.exports=function(e,t,n,s){switch(t){case"===":return"object"===typeof e&&(e=e.version),"object"===typeof n&&(n=n.version),e===n;case"!==":return"object"===typeof e&&(e=e.version),"object"===typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return r(e,n,s);case"!=":return o(e,n,s);case">":return i(e,n,s);case">=":return a(e,n,s);case"<":return c(e,n,s);case"<=":return u(e,n,s);default:throw new TypeError("Invalid operator: ".concat(t))}}},1001:function(e,t,n){var r=n(842);e.exports=function(e,t,n){return new r(e,n).compare(new r(t,n))}},3732:function(e,t,n){var r=n(1001);e.exports=function(e,t,n){return 0===r(e,t,n)}},6825:function(e,t,n){var r=n(1001);e.exports=function(e,t,n){return r(e,t,n)>0}},7236:function(e,t,n){var r=n(1001);e.exports=function(e,t,n){return r(e,t,n)>=0}},6952:function(e,t,n){var r=n(1001);e.exports=function(e,t,n){return r(e,t,n)<0}},2215:function(e,t,n){var r=n(1001);e.exports=function(e,t,n){return r(e,t,n)<=0}},7494:function(e,t,n){var r=n(1001);e.exports=function(e,t,n){return 0!==r(e,t,n)}},5504:function(e,t,n){var r=n(9206);e.exports=function(e,t,n){try{t=new r(t,n)}catch(o){return!1}return t.test(e)}},8346:function(e){var t=Number.MAX_SAFE_INTEGER||9007199254740991;
2e.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:t,MAX_SAFE_COMPONENT_LENGTH:16}},7211:function(e){var t="object"===typeof process&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.NODE_DEBUG&&/\bsemver\b/i.test({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.NODE_DEBUG)?function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=console).error.apply(e,["SEMVER"].concat(n))}:function(){};e.exports=t},4529:function(e){var t=/^[0-9]+$/,n=function(e,n){var r=t.test(e),o=t.test(n);return r&&o&&(e=+e,n=+n),e===n?0:r&&!o?-1:o&&!r?1:e<n?-1:1};e.exports={compareIdentifiers:n,rcompareIdentifiers:function(e,t){return n(t,e)}}},1262:function(e){var t=["includePrerelease","loose","rtl"];e.exports=function(e){return e?"object"!==typeof e?{loose:!0}:t.filter((function(t){return e[t]})).reduce((function(e,t){return e[t]=!0,e}),{}):{}}},1882:function(e,t,n){var r=n(8346).MAX_SAFE_COMPONENT_LENGTH,o=n(7211),i=(t=e.exports={}).re=[],a=t.src=[],c=t.t={},u=0,s=function(e,t,n){var r=u++;o(r,t),c[e]=r,a[r]=t,i[r]=new RegExp(t,n?"g":void 0)};s("NUMERICIDENTIFIER","0|[1-9]\\d*"),s("NUMERICIDENTIFIERLOOSE","[0-9]+"),s("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),s("MAINVERSION","(".concat(a[c.NUMERICIDENTIFIER],")\\.")+"(".concat(a[c.NUMERICIDENTIFIER],")\\.")+"(".concat(a[c.NUMERICIDENTIFIER],")")),s("MAINVERSIONLOOSE","(".concat(a[c.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(a[c.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(a[c.NUMERICIDENTIFIERLOOSE],")")),s("PRERELEASEIDENTIFIER","(?:".concat(a[c.NUMERICIDENTIFIER],"|").concat(a[c.NONNUMERICIDENTIFIER],")")),s("PRERELEASEIDENTIFIERLOOSE","(?:".concat(a[c.NUMERICIDENTIFIERLOOSE],"|").concat(a[c.NONNUMERICIDENTIFIER],")")),s("PRERELEASE","(?:-(".concat(a[c.PRERELEASEIDENTIFIER],"(?:\\.").concat(a[c.PRERELEASEIDENTIFIER],")*))")),s("PRERELEASELOOSE","(?:-?(".concat(a[c.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(a[c.PRERELEASEIDENTIFIERLOOSE],")*))")),s("BUILDIDENTIFIER","[0-9A-Za-z-]+"),s("BUILD","(?:\\+(".concat(a[c.BUILDIDENTIFIER],"(?:\\.").concat(a[c.BUILDIDENTIFIER],")*))")),s("FULLPLAIN","v?".concat(a[c.MAINVERSION]).concat(a[c.PRERELEASE],"?").concat(a[c.BUILD],"?")),s("FULL","^".concat(a[c.FULLPLAIN],"$")),s("LOOSEPLAIN","[v=\\s]*".concat(a[c.MAINVERSIONLOOSE]).concat(a[c.PRERELEASELOOSE],"?").concat(a[c.BUILD],"?")),s("LOOSE","^".concat(a[c.LOOSEPLAIN],"$")),s("GTLT","((?:<|>)?=?)"),s("XRANGEIDENTIFIERLOOSE","".concat(a[c.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),s("XRANGEIDENTIFIER","".concat(a[c.NUMERICIDENTIFIER],"|x|X|\\*")),s("XRANGEPLAIN","[v=\\s]*(".concat(a[c.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(a[c.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(a[c.XRANGEIDENTIFIER],")")+"(?:".concat(a[c.PRERELEASE],")?").concat(a[c.BUILD],"?")+")?)?"),s("XRANGEPLAINLOOSE","[v=\\s]*(".concat(a[c.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(a[c.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(a[c.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(a[c.PRERELEASELOOSE],")?").concat(a[c.BUILD],"?")+")?)?"),s("XRANGE","^".concat(a[c.GTLT],"\\s*").concat(a[c.XRANGEPLAIN],"$")),s("XRANGELOOSE","^".concat(a[c.GTLT],"\\s*").concat(a[c.XRANGEPLAINLOOSE],"$")),s("COERCE","".concat("(^|[^\\d])(\\d{1,").concat(r,"})")+"(?:\\.(\\d{1,".concat(r,"}))?")+"(?:\\.(\\d{1,".concat(r,"}))?")+"(?:$|[^\\d])"),s("COERCERTL",a[c.COERCE],!0),s("LONETILDE","(?:~>?)"),s("TILDETRIM","(\\s*)".concat(a[c.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",s("TILDE","^".concat(a[c.LONETILDE]).concat(a[c.XRANGEPLAIN],"$")),s("TILDELOOSE","^".concat(a[c.LONETILDE]).concat(a[c.XRANGEPLAINLOOSE],"$")),s("LONECARET","(?:\\^)"),s("CARETTRIM","(\\s*)".concat(a[c.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",s("CARET","^".concat(a[c.LONECARET]).concat(a[c.XRANGEPLAIN],"$")),s("CARETLOOSE","^".concat(a[c.LONECARET]).concat(a[c.XRANGEPLAINLOOSE],"$")),s("COMPARATORLOOSE","^".concat(a[c.GTLT],"\\s*(").concat(a[c.LOOSEPLAIN],")$|^$")),s("COMPARATOR","^".concat(a[c.GTLT],"\\s*(").concat(a[c.FULLPLAIN],")$|^$")),s("COMPARATORTRIM","(\\s*)".concat(a[c.GTLT],"\\s*(").concat(a[c.LOOSEPLAIN],"|").concat(a[c.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",s("HYPHENRANGE","^\\s*(".concat(a[c.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(a[c.XRANGEPLAIN],")")+"\\s*$"),s("HYPHENRANGELOOSE","^\\s*(".concat(a[c.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(a[c.XRANGEPLAINLOOSE],")")+"\\s*$"),s("STAR","(<|>)?=?\\s*\\*"),s("GTE0","^\\s*>
2=\\s*0.0.0\\s*$"),s("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")},7143:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,a){if("function"!==typeof r)throw new TypeError("The listener must be a function");var c=new o(r,i||e,a),u=n?n+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],c]:e._events[u].push(c):(e._events[u]=c,e._eventsCount++),e}function a(e,t){0===--e._eventsCount?e._events=new r:delete e._events[t]}function c(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),c.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},c.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o<i;o++)a[o]=r[o].fn;return a},c.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},c.prototype.emit=function(e,t,r,o,i,a){var c=n?n+e:e;if(!this._events[c])return!1;var u,s,l=this._events[c],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,r),!0;case 4:return l.fn.call(l.context,t,r,o),!0;case 5:return l.fn.call(l.context,t,r,o,i),!0;case 6:return l.fn.call(l.context,t,r,o,i,a),!0}for(s=1,u=new Array(f-1);s<f;s++)u[s-1]=arguments[s];l.fn.apply(l.context,u)}else{var h,p=l.length;for(s=0;s<p;s++)switch(l[s].once&&this.removeListener(e,l[s].fn,void 0,!0),f){case 1:l[s].fn.call(l[s].context);break;case 2:l[s].fn.call(l[s].context,t);break;case 3:l[s].fn.call(l[s].context,t,r);break;case 4:l[s].fn.call(l[s].context,t,r,o);break;default:if(!u)for(h=1,u=new Array(f-1);h<f;h++)u[h-1]=arguments[h];l[s].fn.apply(l[s].context,u)}}return!0},c.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},c.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},c.prototype.removeListener=function(e,t,r,o){var i=n?n+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var c=this._events[i];if(c.fn)c.fn!==t||o&&!c.once||r&&c.context!==r||a(this,i);else{for(var u=0,s=[],l=c.length;u<l;u++)(c[u].fn!==t||o&&!c[u].once||r&&c[u].context!==r)&&s.push(c[u]);s.length?this._events[i]=1===s.length?s[0]:s:a(this,i)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=n,c.EventEmitter=c,e.exports=c},337:function(e,t){"undefined"!==typeof self&&self,function(e){"use strict";var t="localforage-driver-memory";function n(e){var t="function"===typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function r(e,t){e=e||[],t=t||{};try{return new Blob(e,t)}catch(o){if("TypeError"!==o.name)throw o;for(var n=new("undefined"!==typeof BlobBuilder?BlobBuilder:"undefined"!==typeof MSBlobBuilder?MSBlobBuilder:"undefined"!==typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder),r=0;r<e.length;r+=1)n.append(e[r]);return n.getBlob(t.type)}}var o=/^~~local_forage_type~([^~]+)~/,i="__lfsc__:".length,a=i+"arbf".length,c=Object.prototype.toString;function u(e){var t=.75*e.length,n=e.length;"="===e[e.length-1]&&(t--,"="===e[e.length-2]&&t--);for(var r=new ArrayBuffer(t),o=new Uint8Array(r),i=0,a=0;i<n;i+=4){var c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(e[i]),u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(e[i+1]),s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(e[i+2]),l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(e[i+3]);o[a++]=c<<2|u>>4,o[a++]=(15&u)<<4|s>>2,o[a++]=(3&s)<<6|63&l}return r}function s(e){for(var t=new Uint8Array(e),n="",r=0;r<t.length;r+=3)n+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
2+/"[t[r]>>2],n+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(3&t[r])<<4|t[r+1]>>4],n+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(15&t[r+1])<<2|t[r+2]>>6],n+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[63&t[r+2]];return t.length%3===2?n=n.substring(0,n.length-1)+"=":t.length%3===1&&(n=n.substring(0,n.length-2)+"=="),n}function l(e,t){var n="";if(e&&(n=c.call(e)),e&&("[object ArrayBuffer]"===n||e.buffer&&"[object ArrayBuffer]"===c.call(e.buffer))){var r=void 0,o="__lfsc__:";e instanceof ArrayBuffer?(r=e,o+="arbf"):(r=e.buffer,"[object Int8Array]"===n?o+="si08":"[object Uint8Array]"===n?o+="ui08":"[object Uint8ClampedArray]"===n?o+="uic8":"[object Int16Array]"===n?o+="si16":"[object Uint16Array]"===n?o+="ur16":"[object Int32Array]"===n?o+="si32":"[object Uint32Array]"===n?o+="ui32":"[object Float32Array]"===n?o+="fl32":"[object Float64Array]"===n?o+="fl64":t(new Error("Failed to get type for BinaryArray"))),t(o+s(r))}else if("[object Blob]"===n){var i=new FileReader;i.onload=function(){var n="~~local_forage_type~"+e.type+"~"+s(this.result);t("__lfsc__:blob"+n)},i.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(a){console.error("Couldn't convert value into a JSON string: ",e),t(null,a)}}function f(e){if("__lfsc__:"!==e.substring(0,i))return JSON.parse(e);var t,n=e.substring(a),c=e.substring(i,a);if("blob"===c&&o.test(n)){var s=n.match(o);t=s[1],n=n.substring(s[0].length)}var l=u(n);switch(c){case"arbf":return l;case"blob":return r([l],{type:t});case"si08":return new Int8Array(l);case"ui08":return new Uint8Array(l);case"uic8":return new Uint8ClampedArray(l);case"si16":return new Int16Array(l);case"ur16":return new Uint16Array(l);case"si32":return new Int32Array(l);case"ui32":return new Uint32Array(l);case"fl32":return new Float32Array(l);case"fl64":return new Float64Array(l);default:throw new Error("Unkown type: "+c)}}function h(e){var t,r;if(null===e||"object"!==typeof e||"isActiveClone"in e)return e;var o=e instanceof Date?new Date(e):e.constructor();try{for(var i=n(Object.keys(e)),a=i.next();!a.done;a=i.next()){var c=a.value;Object.prototype.hasOwnProperty.call(e,c)&&(e.isActiveClone=null,o[c]=h(e[c]),delete e.isActiveClone)}}catch(u){t={error:u}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return o}function p(e,t){return(e.name||t.name)+"/"+(e.storeName||t.storeName)+"/"}function d(e,t){t&&e.then((function(e){t(null,e)}),(function(e){t(e)}))}function v(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(arguments.length&&"function"===typeof arguments[arguments.length-1])return arguments[arguments.length-1]}function y(e,t){var n=this;if(t=v.apply(this,arguments),!(e="function"!==typeof e&&e||{}).name){var r=this.config();e.name=e.name||r.name,e.storeName=e.storeName||r.storeName}return{promise:e.name?new Promise((function(t){e.storeName?t(p(e,n._defaultConfig)):t(e.name+"/")})):Promise.reject("Invalid arguments"),callback:t}}function m(e){return"string"!==typeof e&&(console.warn(e+" used as a key, but it is not a string."),e=String(e)),e}var g={bufferToString:s,deserialize:f,serialize:l,stringToBuffer:u},b={},E=function(){function e(e){this.kp=e,this.data={}}return e.resolve=function(t){return b[t]||(b[t]=new e(t)),b[t]},e.prototype.clear=function(){this.data={}},e.prototype.drop=function(){this.clear(),delete b[this.kp]},e.prototype.get=function(e){return this.data[e]},e.prototype.key=function(e){return this.keys()[e]},e.prototype.keys=function(){return Object.keys(this.data)},e.prototype.rm=function(e){delete this.data[e]},e.prototype.set=function(e,t){this.data[e]=t},e}();function _(e){var t=e?h(e):{},n=p(t,this._defaultConfig),r=E.resolve(n);return this._dbInfo=t,this._dbInfo.serializer=g,this._dbInfo.keyPrefix=n,this._dbInfo.mStore=r,Promise.resolve()}function w(e){var t=this,n=this.ready().then((function(){t._dbInfo.mStore.clear()}));return d(n,e),n}function I(e,t){var n=y.apply(this,arguments),r=n.promise,o=n.callback;return d(r.then((function(e){E.resolve(e).drop()})),o),r}function A(e,t){var n=this;e=m(e);var r=this.ready().then((function(){var t=n._dbInfo.mStore.get(e);return null==t?null:n._dbInfo.serializer.deserialize(t)}));return d(r,t),r}function S(e,t){var n=this,r=this.ready().then((function(){for(var t=n._dbInfo.mStore,r=t.keys(),o=0;o<r.length;o++){var i=t.get(r[o]);if(i&&(i=n._dbInfo.serializer.deserialize(i)),void 0!==(i=e(i,r[o],o+1)))return i}}));return d(r,t),r}function O(e,t){var n=this,r=this.ready().then((function(){var t;try{void 0===(t=n._dbInfo.mStore.key(e))&&(t=null)}catch(r){t=null}return t}));return d(r,t),r}function N(e){var t=this,n=this.ready().then((function(){return t._dbInfo.mStore.keys()}));return d(n,e),n}function R(e){var t=this.keys().then((function(e){return e.length}));return d(t,e),t}function x(e,t){var n=this;e=m(e);var r=this.ready().then((function(){n._dbInfo.mStore.rm(e)}));return d(r,t),r}function T(e,t,n){var r=this;e=m(e);var o=this.ready().then((function(){void 0===t&&(t=null);var n=t;return new Promise((function(o,i){r._dbInfo.serializer.serialize(t,(function(t,a){if(a)i(a);else try{r._dbInfo.mStore.set(e,t),o(n)}catch(c){i(c)}}))}))}));return d(o,n),o}var L=!0;e._support=L,e._driver=t,e._initStorage=_,e.clear=w,e.dropInstance=I,e.getItem=A,e.iterate=S,e.key=O,e.keys=N,e.length=R,e.removeItem=x,e.setItem=T,Object.defineProperty(e,"__esMo
2dule",{value:!0})}(t)},1842:function(e,t,n){e.exports=function e(t,n,r){function o(a,c){if(!n[a]){if(!t[a]){if(i)return i(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var s=n[a]={exports:{}};t[a][0].call(s.exports,(function(e){var n=t[a][1][e];return o(n||e)}),s,s.exports,e,t,n,r)}return n[a].exports}for(var i=void 0,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,t,r){(function(e){"use strict";var n,r,o=e.MutationObserver||e.WebKitMutationObserver;if(o){var i=0,a=new o(l),c=e.document.createTextNode("");a.observe(c,{characterData:!0}),n=function(){c.data=i=++i%2}}else if(e.setImmediate||"undefined"===typeof e.MessageChannel)n="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){l(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(l,0)};else{var u=new e.MessageChannel;u.port1.onmessage=l,n=function(){u.port2.postMessage(0)}}var s=[];function l(){var e,t;r=!0;for(var n=s.length;n;){for(t=s,s=[],e=-1;++e<n;)t[e]();n=s.length}r=!1}function f(e){1!==s.push(e)||r||n()}t.exports=f}).call(this,"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],2:[function(e,t,n){"use strict";var r=e(1);function o(){}var i={},a=["REJECTED"],c=["FULFILLED"],u=["PENDING"];function s(e){if("function"!==typeof e)throw new TypeError("resolver must be a function");this.state=u,this.queue=[],this.outcome=void 0,e!==o&&p(this,e)}function l(e,t,n){this.promise=e,"function"===typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"===typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function f(e,t,n){r((function(){var r;try{r=t(n)}catch(o){return i.reject(e,o)}r===e?i.reject(e,new TypeError("Cannot resolve promise with itself")):i.resolve(e,r)}))}function h(e){var t=e&&e.then;if(e&&("object"===typeof e||"function"===typeof e)&&"function"===typeof t)return function(){t.apply(e,arguments)}}function p(e,t){var n=!1;function r(t){n||(n=!0,i.reject(e,t))}function o(t){n||(n=!0,i.resolve(e,t))}function a(){t(o,r)}var c=d(a);"error"===c.status&&r(c.value)}function d(e,t){var n={};try{n.value=e(t),n.status="success"}catch(r){n.status="error",n.value=r}return n}function v(e){return e instanceof this?e:i.resolve(new this(o),e)}function y(e){var t=new this(o);return i.reject(t,e)}function m(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var a=new Array(n),c=0,u=-1,s=new this(o);++u<n;)l(e[u],u);return s;function l(e,o){function u(e){a[o]=e,++c!==n||r||(r=!0,i.resolve(s,a))}t.resolve(e).then(u,(function(e){r||(r=!0,i.reject(s,e))}))}}function g(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var a=-1,c=new this(o);++a<n;)u(e[a]);return c;function u(e){t.resolve(e).then((function(e){r||(r=!0,i.resolve(c,e))}),(function(e){r||(r=!0,i.reject(c,e))}))}}t.exports=s,s.prototype.catch=function(e){return this.then(null,e)},s.prototype.then=function(e,t){if("function"!==typeof e&&this.state===c||"function"!==typeof t&&this.state===a)return this;var n=new this.constructor(o);return this.state!==u?f(n,this.state===c?e:t,this.outcome):this.queue.push(new l(n,e,t)),n},l.prototype.callFulfilled=function(e){i.resolve(this.promise,e)},l.prototype.otherCallFulfilled=function(e){f(this.promise,this.onFulfilled,e)},l.prototype.callRejected=function(e){i.reject(this.promise,e)},l.prototype.otherCallRejected=function(e){f(this.promise,this.onRejected,e)},i.resolve=function(e,t){var n=d(h,t);if("error"===n.status)return i.reject(e,n.value);var r=n.value;if(r)p(e,r);else{e.state=c,e.outcome=t;for(var o=-1,a=e.queue.length;++o<a;)e.queue[o].callFulfilled(t)}return e},i.reject=function(e,t){e.state=a,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},s.resolve=v,s.reject=y,s.all=m,s.race=g},{1:1}],3:[function(e,t,r){(function(t){"use strict";"function"!==typeof t.Promise&&(t.Promise=e(2))}).call(this,"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{2:2}],4:[function(e,t,n){"use strict";var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(){try{if("undefined"!==typeof indexedDB)return indexedDB;if("undefined"!==typeof webkitIndexedDB)return webkitIndexedDB;if("undefined"!==typeof mozIndexedDB)return mozIndexedDB;if("undefined"!==typeof OIndexedDB)return OIndexedDB;if("undefined"!==typeof msIndexedDB)return msIndexedDB}catch(e){return}}var a=i();function c(){try{if(!a||!a.open)return!1;var e="undefined"!==typeof openDatabase&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),t="function"===typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!e||t)&&"undefined"!==typeof indexedDB&&"undefined"!==typeof IDBKeyRange}catch(n){return!1}}function u(e,t){e=e||[],t=t||{};try{return new Blob(e,t)}catch(o){if("TypeError"!==o.name)throw o;for(var n=new("undefined"!==typeof BlobBuilder?BlobBuilder:"undefined"!==typeof MSBlobBuilder?MSBlobBuilder:"undefined"!==typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder),r=0;r<e.length;r+=1)n.append(e[r]);return n.getBlob(t.type)}}"undefined"===typeof Promise&&e(3);var s=Promise;function l(e,t){t&&e.then((function(e){t(null,e)}),(function(e){t(e)}))}function f(e,t,n){"function"===typeof t&&e.then(t),"function"===typeof n&&e.catch(n)}function h(e){return"string"!==typeof e&&(console.warn(e+" used as a key, but it is not a string."),e=String(e)),e}function p(){if(arguments.length&&"function"===typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var d="local-forage-detect-blob-support",v=void 0,y={},m=Object.prototype.toString,g="readonly",b="readwrite";function E(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n),o=0;o<t;o++)r[o]=e.charCodeAt(o);return n}function _(e){return new s((function(t){var n=e.transaction(d,b),r=u([""]);n.objectStore(d).put(r,"key"),n.onabort=function(e){e.preventDefault(),e.stopPropagation(),t(!1)},n.oncomplete=function(){var e=navigator.userAgent.match(/Chrome\/(\d+)/),n=navigator.userAgent.match(/Edge\//);t(n||!e||parseInt(e[1],10)>=43)}})).catch((function(){return!1}))}function w(e){return"boolean"===typeof v?s.resolve(v):_(e).then((function(e){return v=e}))}function I(e){var t=y[e.name],n={};n.promise=new s((function(e,t){n.resolve=e,n.reject=t})),t.deferredOperations.push(n),t.dbReady?t.dbReady=t.dbReady.then((function(){return n.promise})):t.dbReady=n.promise}function A(e){var t=y[e.name].deferredOperations.pop();if(t)return t.resolve(),t.promise}function S(e,t){var n=y[e.name].deferredOperations.pop();if(n)return n.reject(t),n.promise}function O(e,t){return new s((function(n,r){if(y[e.name]=y[e.name]||M(),e.db){if(!t)return n(e.db);I(e),e.db.close()}var o=[e.name];t&&o.push(e.version);var i=a.open.apply(a,o);t&&(i.onupgradeneeded=function(t){var n=i.result;try{n.createObjectStore(e.storeName),t.oldVersion<=1&&n.createObjectStore(d)}catch(r){if("ConstraintError"!==r.name)throw r;console.warn('The database "'+e.name+'" has been upgraded from version '+t.oldVersion+" to version "+t.newVersion+', but the storage "'+e.storeName+'" already exists.')}}),i.onerror=function(e){e.preventDefault(),r(i.error)},i.onsuccess=function(){var t=i.result;t.onversionchange=function(e){e.target.close()},n(t),A(e)}}))}function N(e){return O(e,!1)}function R(e){return O(e,!0)}function x(e,t){if(!e.db)return!0;var n=!e.db.objectStoreNames.contains(e.storeName),r=e.version<e.db.version,o=e.version>e.db.version;if(r&&(e.version!==t&&console.warn('The database "'+e.name+"\" can't be downgraded from version "+e.db.version+" to version "+e.version+"."),e.version=e.db.version),o||n){if
vendor: 17,063 bytes, line 2
2(n){var i=e.db.version+1;i>e.version&&(e.version=i)}return!0}return!1}function T(e){return new s((function(t,n){var r=new FileReader;r.onerror=n,r.onloadend=function(n){var r=btoa(n.target.result||"");t({__local_forage_encoded_blob:!0,data:r,type:e.type})},r.readAsBinaryString(e)}))}function L(e){return u([E(atob(e.data))],{type:e.type})}function k(e){return e&&e.__local_forage_encoded_blob}function P(e){var t=this,n=t._initReady().then((function(){var e=y[t._dbInfo.name];if(e&&e.dbReady)return e.dbReady}));return f(n,e,e),n}function D(e){I(e);for(var t=y[e.name],n=t.forages,r=0;r<n.length;r++){var o=n[r];o._dbInfo.db&&(o._dbInfo.db.close(),o._dbInfo.db=null)}return e.db=null,N(e).then((function(t){return e.db=t,x(e)?R(e):t})).then((function(r){e.db=t.db=r;for(var o=0;o<n.length;o++)n[o]._dbInfo.db=r})).catch((function(t){throw S(e,t),t}))}function C(e,t,n,r){void 0===r&&(r=1);try{var o=e.db.transaction(e.storeName,t);n(null,o)}catch(i){if(r>0&&(!e.db||"InvalidStateError"===i.name||"NotFoundError"===i.name))return s.resolve().then((function(){if(!e.db||"NotFoundError"===i.name&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),R(e)})).then((function(){return D(e).then((function(){C(e,t,n,r-1)}))})).catch(n);n(i)}}function M(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function j(e){var t=this,n={db:null};if(e)for(var r in e)n[r]=e[r];var o=y[n.name];o||(o=M(),y[n.name]=o),o.forages.push(t),t._initReady||(t._initReady=t.ready,t.ready=P);var i=[];function a(){return s.resolve()}for(var c=0;c<o.forages.length;c++){var u=o.forages[c];u!==t&&i.push(u._initReady().catch(a))}var l=o.forages.slice(0);return s.all(i).then((function(){return n.db=o.db,N(n)})).then((function(e){return n.db=e,x(n,t._defaultConfig.version)?R(n):e})).then((function(e){n.db=o.db=e,t._dbInfo=n;for(var r=0;r<l.length;r++){var i=l[r];i!==t&&(i._dbInfo.db=n.db,i._dbInfo.version=n.version)}}))}function U(e,t){var n=this;e=h(e);var r=new s((function(t,r){n.ready().then((function(){C(n._dbInfo,g,(function(o,i){if(o)return r(o);try{var a=i.objectStore(n._dbInfo.storeName).get(e);a.onsuccess=function(){var e=a.result;void 0===e&&(e=null),k(e)&&(e=L(e)),t(e)},a.onerror=function(){r(a.error)}}catch(c){r(c)}}))})).catch(r)}));return l(r,t),r}function G(e,t){var n=this,r=new s((function(t,r){n.ready().then((function(){C(n._dbInfo,g,(function(o,i){if(o)return r(o);try{var a=i.objectStore(n._dbInfo.storeName).openCursor(),c=1;a.onsuccess=function(){var n=a.result;if(n){var r=n.value;k(r)&&(r=L(r));var o=e(r,n.key,c++);void 0!==o?t(o):n.continue()}else t()},a.onerror=function(){r(a.error)}}catch(u){r(u)}}))})).catch(r)}));return l(r,t),r}function F(e,t,n){var r=this;e=h(e);var o=new s((function(n,o){var i;r.ready().then((function(){return i=r._dbInfo,"[object Blob]"===m.call(t)?w(i.db).then((function(e){return e?t:T(t)})):t})).then((function(t){C(r._dbInfo,b,(function(i,a){if(i)return o(i);try{var c=a.objectStore(r._dbInfo.storeName);null===t&&(t=void 0);var u=c.put(t,e);a.oncomplete=function(){void 0===t&&(t=null),n(t)},a.onabort=a.onerror=function(){var e=u.error?u.error:u.transaction.error;o(e)}}catch(s){o(s)}}))})).catch(o)}));return l(o,n),o}function B(e,t){var n=this;e=h(e);var r=new s((function(t,r){n.ready().then((function(){C(n._dbInfo,b,(function(o,i){if(o)return r(o);try{var a=i.objectStore(n._dbInfo.storeName).delete(e);i.oncomplete=function(){t()},i.onerror=function(){r(a.error)},i.onabort=function(){var e=a.error?a.error:a.transaction.error;r(e)}}catch(c){r(c)}}))})).catch(r)}));return l(r,t),r}function W(e){var t=this,n=new s((function(e,n){t.ready().then((function(){C(t._dbInfo,b,(function(r,o){if(r)return n(r);try{var i=o.objectStore(t._dbInfo.storeName).clear();o.oncomplete=function(){e()},o.onabort=o.onerror=function(){var e=i.error?i.error:i.transaction.error;n(e)}}catch(a){n(a)}}))})).catch(n)}));return l(n,e),n}function H(e){var t=this,n=new s((function(e,n){t.ready().then((function(){C(t._dbInfo,g,(function(r,o){if(r)return n(r);try{var i=o.objectStore(t._dbInfo.storeName).count();i.onsuccess=function(){e(i.result)},i.onerror=function(){n(i.error)}}catch(a){n(a)}}))})).catch(n)}));return l(n,e),n}function z(e,t){var n=this,r=new s((function(t,r){e<0?t(null):n.ready().then((function(){C(n._dbInfo,g,(function(o,i){if(o)return r(o);try{var a=i.objectStore(n._dbInfo.storeName),c=!1,u=a.openKeyCursor();u.onsuccess=function(){var n=u.result;n?0===e||c?t(n.key):(c=!0,n.advance(e)):t(null)},u.onerror=function(){r(u.error)}}catch(s){r(s)}}))})).catch(r)}));return l(r,t),r}function q(e){var t=this,n=new s((function(e,n){t.ready().then((function(){C(t._dbInfo,g,(function(r,o){if(r)return n(r);try{var i=o.objectStore(t._dbInfo.storeName).openKeyCursor(),a=[];i.onsuccess=function(){var t=i.result;t?(a.push(t.key),t.continue()):e(a)},i.onerror=function(){n(i.error)}}catch(c){n(c)}}))})).catch(n)}));return l(n,e),n}function V(e,t){t=p.apply(this,arguments);var n=this.config();(e="function"!==typeof e&&e||{}).name||(e.name=e.name||n.name,e.storeName=e.storeName||n.storeName);var r,o=this;if(e.name){var i=e.name===n.name&&o._dbInfo.db?s.resolve(o._dbInfo.db):N(e).then((function(t){var n=y[e.name],r=n.forages;n.db=t;for(var o=0;o<r.length;o++)r[o]._dbInfo.db=t;return t}));r=e.storeName?i.then((function(t){if(t.objectStoreNames.contains(e.storeName)){var n=t.version+1;I(e);var r=y[e.name],o=r.forages;t.close();for(var i=0;i<o.length;i++){var c=o[i];c._dbInfo.db=null,c._dbInfo.version=n}var u=new s((function(t,r){var o=a.open(e.name,n);o.onerror=function(e){o.result.close(),r(e)},o.onupgradeneeded=function(){o.result.deleteObjectStore(e.storeName)},o.onsuccess=function(){var e=o.result;e.close(),t(e)}}));return u.then((function(e){r.db=e;for(var t=0;t<o.length;t++){var n=o[t];n._dbInfo.db=e,A(n._dbInfo)}})).catch((function(t){throw(S(e,t)||s.resolve()).catch((function(){})),t}))}})):i.then((function(t){I(e);var n=y[e.name],r=n.forages;t.close();for(var o=0;o<r.length;o++)r[o]._dbInfo.db=null;var i=new s((function(t,n){var r=a.deleteDatabase(e.name);r.onerror=function(){var e=r.result;e&&e.close(),n(r.error)},r.onblocked=function(){console.warn('dropInstance blocked for database "'+e.name+'" until all open connections are closed')},r.onsuccess=function(){var e=r.result;e&&e.close(),t(e)}}));return i.then((function(e){n.db=e;for(var t=0;t<r.length;t++)A(r[t]._dbInfo)})).catch((function(t){throw(S(e,t)||s.resolve()).catch((function(){})),t}))}))}else r=s.reject("Invalid arguments");return l(r,t),r}var X={_driver:"asyncStorage",_initStorage:j,_support:c(),iterate:G,getItem:U,setItem:F,removeItem:B,clear:W,length:H,key:z,keys:q,dropInstance:V};function K(){return"function"===typeof openDatabase}var Q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Y="~~local_forage_type~",J=/^~~local_forage_type~([^~]+)~/,$="__lfsc__:",Z=$.length,ee="arbf",te="blob",ne="si08",re="ui08",oe="uic8",ie="si16",ae="si32",ce="ur16",ue="ui32",se="fl32",le="fl64",fe=Z+ee.length,he=Object.prototype.toString;function pe(e){var t,n,r,o,i,a=.75*e.length,c=e.length,u=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);var s=new ArrayBuffer(a),l=new Uint8Array(s);for(t=0;t<c;t+=4)n=Q.indexOf(e[t]),r=Q.indexOf(e[t+1]),o=Q.indexOf(e[t+2]),i=Q.indexOf(e[t+3]),l[u++]=n<<2|r>>4,l[u++]=(15&r)<<4|o>>2,l[u++]=(3&o)<<6|63&i;return s}function de(e){var t,n=new Uint8Array(e),r="";for(t=0;t<n.length;t+=3)r+=Q[n[t]>>2],r+=Q[(3&n[t])<<4|n[t+1]>>4],r+=Q[(15&n[t+1])<<2|n[t+2]>>6],r+=Q[63&n[t+2]];return n.length%3===2?r=r.substring(0,r.length-1)+"=":n.length%3===1&&(r=r.substring(0,r.length-2)+"=="),r}function ve(e,t){var n="";if(e&&(n=he.call(e)),e&&("[object ArrayBuffer]"===n||e.buffer&&"[object ArrayBuffer]"===he.call(e.buffer))){var r,o=$;e instanceof ArrayBuffer?(r=e,o+=ee):(r=e.buffer,"[object Int8Array]"===n?o+=ne:"[object Uint8Array]"===n?o+=re:"[object Uint8ClampedArray]"===n?o+=oe:"[object Int16Array]"===n?o+=ie:"[object Uint16Array]"===n?o+=ce:"[object Int32Array]"===n?o+=ae:"[object Uint32Array]"===n?o+=ue:"[object Float32Array]"===n?o+=se:"[object Float64Array]"===n?o+=le:t(new Error("Failed to get type for BinaryArray"))),t(o+de(r))}else if("[object Blob]"===n){var i=new FileReader;i.onload=function(){var n=Y+e.type+"~"+de(this.result);t($+te+n)},i.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(a){console.error("Couldn't convert value into a JSON string: ",e),t(null,a)}}function ye(e){if(e.substring(0,Z)!==$)return JSON.parse(e);var t,n=e.substring(fe),r=e.substring(Z,fe);if(r===te&&J.test(n)){var o=n.match(J);t=o[1],n=n.substring(o[0].length)}var i=pe(n);switch(r){case ee:return i;case te:return u([i],{type:t});case ne:return new Int8Array(i);case re:return new Uint8Array(i);case oe:return new Uint8ClampedArray(i);case ie:return new Int16Array(i);case ce:return new Uint16Array(i);case ae:return new Int32Array(i);case ue:return new Uint32Array(i);case se:return new Float32Array(i);case le:return new Float64Array(i);default:throw new Error("Unkown type: "+r)}}var me={serialize:ve,deserialize:ye,stringToBuffer:pe,bufferToString:de};function ge(e,t,n,r){e.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],n,r)}function be(e){var t=this,n={db:null};if(e)for(var r in e)n[r]="string"!==typeof e[r]?e[r].toString():e[r];var o=new s((function(e,r){try{n.db=openDatabase(n.name,String(n.version),n.description,n.size)}catch(o){return r(o)}n.db.transaction((function(o){ge(o,n,(function(){t._dbInfo=n,e()}),(function(e,t){r(t)}))}),r)}));return n.serializer=me,o}function Ee(e,t,n,r,o,i){e.executeSql(n,r,o,(function(e,a){a.code===a.SYNTAX_ERR?e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[t.storeName],(function(e,c){c.rows.length?i(e,a):ge(e,t,(function(){e.executeSql(n,r,o,i)}),i)}),i):i(e,a)}),i)}function _e(e,t){var n=this;e=h(e);var r=new s((function(t,r){n.ready().then((function(){var o=n._dbInfo;o.db.transaction((function(n){Ee(n,o,"SELECT * FROM "+o.storeName+" WHERE key = ? LIMIT 1",[e],(function(e,n){var r=n.rows.length?n.rows.item(0).value:null;r&&(r=o.serializer.deserialize(r)),t(r)}),(function(e,t){r(t)}))}))})).catch(r)}));return l(r,t),r}function we(e,t){var n=this,r=new s((function(t,r){n.ready().then((function(){var o=n._dbInfo;o.db.transaction((function(n){Ee(n,o,"SELECT * FROM "+o.storeName,[],(function(n,r){for(var i=r.rows,a=i.length,c=0;c<a;c++){var u=i.item(c),s=u.value;if(s&&(s=o.serializer.deserialize(s)),void 0!==(s=e(s,u.key,c+1)))return void t(s)}t()}),(function(e,t){r(t)}))}))})).catch(r)}));return l(r,t),r}function Ie(e,t,n,r){var o=this;e=h(e);var i=new s((function(i,a){o.ready().then((function(){void 0===t&&(t=null);var c=t,u=o._dbInfo;u.serializer.serialize(t,(function(t,s){s?a(s):u.db.transaction((function(n){Ee(n,u,"INSERT OR REPLACE INTO "+u.storeName+" (key, value) VALUES (?, ?)",[e,t],(function(){i(c)}),(function(e,t){a(t)}))}),(function(t){if(t.code===t.QUOTA_ERR){if(r>0)return void i(Ie.apply(o,[e,c,n,r-1]));a(t)}}))}))})).catch(a)}));return l(i,n),i}function Ae(e,t,n){return Ie.apply(this,[e,t,n,1])}function Se(e,t){var n=this;e=h(e);var r=new s((function(t,r){n.ready().then((function(){var o=n._dbInfo;o.db.transaction((function(n){Ee(n,o,"DELETE FROM "+o.storeName+" WHERE key = ?",[e],(function(){t()}),(function(e,t){r(t)}))}))})).catch(r)}));return l(r,t),r}function Oe(e){var t=this,n=new s((function(e,n){t.ready().then((function(){var r=t._dbInfo;r.db.transaction((function(t){Ee(t,r,"DELETE FROM "+r.storeName,[],(function(){e()}),(function(e,t){n(t)}))}))})).catch(n)}));return l(n,e),n}function Ne(e){var t=this,n=new s((function(e,n){t.ready().then((function(){var r=t._dbInfo;r.db.transaction((function(t){Ee(t,r,"SELECT COUNT(key) as c FROM "+r.storeName,[],(function(t,n){var r=n.rows.item(0).c;e(r)}),(function(e,t){n(t)}))}))})).catch(n)}));return l(n,e),n}function Re(e,t){var n=this,r=new s((function(t,r){n.ready().then((function(){var o=n._dbInfo;o.db.transaction((function(n){Ee(n,o,"SELECT key FROM "+o.storeName+" WHERE id = ? LIMIT 1",[e+1],(function(e,n){var r=n.rows.length?n.rows.item(0).key:null;t(r)}),(function(e,t){r(t)}))}))})).catch(r)}));return l(r,t),r}function xe(e){var t=this,n=new s((function(e,n){t.ready().then((function(){var r=t._dbInfo;r.db.transaction((function(t){Ee(t,r,"SELECT key FROM "+r.storeName,[],(function(t,n){for(var r=[],o=0;o<n.rows.length;o++)r.push(n.rows.item(o).key);e(r)}),(function(e,t){n(t)}))}))})).catch(n)}));return l(n,e),n}function Te(e){return new s((function(t,n){e.transaction((function(r){r.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],(function(n,r){for(var o=[],i=0;i<r.rows.length;i++)o.push(r.rows.item(i).name);t({db:e,storeNames:o})}),(function(e,t){n(t)}))}),(function(e){n(e)}))}))}function Le(e,t){t=p.apply(this,arguments);var n=this.config();(e="function"!==typeof e&&e||{}).name||(e.name=e.name||n.name,e.storeName=e.storeName||n.storeName);var r,o=this;return l(r=e.name?new s((function(t){var r;r=e.name===n.name?o._dbInfo.db:openDatabase(e.name,"","",0),e.storeName?t({db:r,storeNames:[e.storeName]}):t(Te(r))})).then((function(e){return new s((function(t,n){e.db.transaction((function(r){function o(e){return new s((function(t,n){r.executeSql("DROP TABLE IF EXISTS "+e,[],(function(){t()}),(function(e,t){n(t)}))}))}for(var i=[],a=0,c=e.storeNames.length;a<c;a++)i.push(o(e.storeNames[a]));s.all(i).then((function(){t()})).catch((function(e){n(e)}))}),(function(e){n(e)}))}))})):s.reject("Invalid arguments"),t),r}var ke={_driver:"webSQLStorage",_initStorage:be,_support:K(),iterate:we,getItem:_e,setItem:Ae,removeItem:Se,clear:Oe,length:Ne,key:Re,keys:xe,dropInstance:Le};function Pe(){try{return"undefined"!==typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(e){return!1}}function De(e,t){var n=e.name+"/";return e.storeName!==t.storeName&&(n+=e.storeName+"/"),n}function Ce(){var e="_localforage_support_test";try{return localStorage.setItem(e,!0),localStorage.removeItem(e),!1}catch(t){return!0}}function Me(){return!Ce()||localStorage.length>0}function je(e){var t=this,n={};if(e)for(var r in e)n[r]=e[r];return n.keyPrefix=De(e,t._defaultConfig),Me()?(t._dbInfo=n,n.serializer=me,s.resolve()):s.reject()}function Ue(e){var t=this,n=t.ready().then((function(){for(var e=t._dbInfo.keyPrefix,n=localStorage.length-1;n>=0;n--){var r=localStorage.key(n);0===r.indexOf(e)&&localStorage.removeItem(r)}}));return l(n,e),n}function Ge(e,t){var n=this;e=h(e);var r=n.ready().then((function(){var t=n._dbInfo,r=localStorage.getItem(t.keyPrefix+e);return r&&(r=t.serializer.deserialize(r)),r}));return l(r,t),r}function Fe(e,t){var n=this,r=n.ready().then((function(){for(var t=n._dbInfo,r=t.keyPrefix,o=r.length,i=localStorage.length,a=1,c=0;c<i;c++){var u=localStorage.key(c);if(0===u.indexOf(r)){var s=localStorage.getItem(u);if(s&&(s=t.serializer.deserialize(s)),void 0!==(s=e(s,u.substring(o),a++)))return s}}}));return l(r,t),r}function Be(e,t){var n=this,r=n.ready().then((function(){var t,r=n._dbInfo;try{t=localStorage.key(e)}catch(o){t=null}return t&&(t=t.substring(r.keyPrefix.length)),t}));return l(r,t),r}function We(e){var t=this,n=t.ready().then((function(){for(var e=t._dbInfo,n=localStorage.length,r=[],o=0;o<n;o++){var i=localStorage.key(o);0===i.indexOf(e.keyPrefix)&&r.push(i.substring(e.keyPrefix.length))}return r}));return l(n,e),n}function He(e){var t=this.keys().then((function(e){return e.length}));return l(t,e),t}function ze(e,t){var n=this;e=h(e);var r=n.ready().then((function(){var t=n._dbInfo;localStorage.removeItem(t.keyPrefix+e)}));return l(r,t),r}function qe(e,t,n){var r=this;e=h(e);var o=r.ready().then((function(){void 0===t&&(t=null);var n=t;return new s((function(o,i){var a=r._dbInfo;a.serializer.serialize(t,(function(t,r){if(r)i(r);else try{localStorage.setItem(a.keyPrefix+e,t),o(n)}catch(c){"QuotaExceededError"!==c.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==c.name||i(c),i(c)}}))}))}));return l(o,n),o}function Ve(e,t){if(t=p.apply(this,arguments),!(e="function"!==typeof e&&e||{}).name){var n=this.config();e.name=e.name||n.name,e.storeName=e.storeName||n.storeName}var r,o=this;return r=e.name?new s((function(t){e.storeName?t(De(e,o._defaultConfig)):t(e.name+"/")})).then((function(e){for(var t=localStorage.length-1;t>=0;t--){var n=localStorage.key(t);0===n.indexOf(e)&&localStorage.removeItem(n)}})):s.reject("Invalid arguments"),l(r,t),r}var Xe={_driver:"localStorageWrapper",_initStorage:je,_support:Pe(),iterate:Fe,getItem:Ge,setItem:qe,removeItem:ze,clear:Ue,length:He,key:Be,keys:We,dropInstance:Ve},Ke=function(e,t){return e===t||"number"===typeof e&&"number"===typeof t&&isNaN(e)&&isNaN(t)},Qe=function(e,t){for(var n=e.length,r=0;r<n;){if(Ke(e[r],t))return!0;r++}return!1},Ye=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},Je={},$e={},Ze={INDEXEDDB:X,WEBSQL:ke,LOCALSTORAGE:Xe},et=[Ze.INDEXEDDB._driver,Ze.WEBSQL._driver,Ze.LOCALSTORAGE._driver],tt
2=["dropInstance"],nt=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(tt),rt={description:"",driver:et.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function ot(e,t){e[t]=function(){var n=arguments;return e.ready().then((function(){return e[t].apply(e,n)}))}}function it(){for(var e=1;e<arguments.length;e++){var t=arguments[e];if(t)for(var n in t)t.hasOwnProperty(n)&&(Ye(t[n])?arguments[0][n]=t[n].slice():arguments[0][n]=t[n])}return arguments[0]}var at=function(){function e(t){for(var n in o(this,e),Ze)if(Ze.hasOwnProperty(n)){var r=Ze[n],i=r._driver;this[n]=i,Je[i]||this.defineDriver(r)}this._defaultConfig=it({},rt),this._config=it({},this._defaultConfig,t),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch((function(){}))}return e.prototype.config=function(e){if("object"===("undefined"===typeof e?"undefined":r(e))){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var t in e){if("storeName"===t&&(e[t]=e[t].replace(/\W/g,"_")),"version"===t&&"number"!==typeof e[t])return new Error("Database version must be a number.");this._config[t]=e[t]}return!("driver"in e)||!e.driver||this.setDriver(this._config.driver)}return"string"===typeof e?this._config[e]:this._config},e.prototype.defineDriver=function(e,t,n){var r=new s((function(t,n){try{var r=e._driver,o=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!e._driver)return void n(o);for(var i=nt.concat("_initStorage"),a=0,c=i.length;a<c;a++){var u=i[a];if((!Qe(tt,u)||e[u])&&"function"!==typeof e[u])return void n(o)}var f=function(){for(var t=function(e){return function(){var t=new Error("Method "+e+" is not implemented by the current driver"),n=s.reject(t);return l(n,arguments[arguments.length-1]),n}},n=0,r=tt.length;n<r;n++){var o=tt[n];e[o]||(e[o]=t(o))}};f();var h=function(n){Je[r]&&console.info("Redefining LocalForage driver: "+r),Je[r]=e,$e[r]=n,t()};"_support"in e?e._support&&"function"===typeof e._support?e._support().then(h,n):h(!!e._support):h(!0)}catch(p){n(p)}}));return f(r,t,n),r},e.prototype.driver=function(){return this._driver||null},e.prototype.getDriver=function(e,t,n){var r=Je[e]?s.resolve(Je[e]):s.reject(new Error("Driver not found."));return f(r,t,n),r},e.prototype.getSerializer=function(e){var t=s.resolve(me);return f(t,e),t},e.prototype.ready=function(e){var t=this,n=t._driverSet.then((function(){return null===t._ready&&(t._ready=t._initDriver()),t._ready}));return f(n,e,e),n},e.prototype.setDriver=function(e,t,n){var r=this;Ye(e)||(e=[e]);var o=this._getSupportedDrivers(e);function i(){r._config.driver=r.driver()}function a(e){return r._extend(e),i(),r._ready=r._initStorage(r._config),r._ready}function c(e){return function(){var t=0;function n(){for(;t<e.length;){var o=e[t];return t++,r._dbInfo=null,r._ready=null,r.getDriver(o).then(a).catch(n)}i();var c=new Error("No available storage method found.");return r._driverSet=s.reject(c),r._driverSet}return n()}}var u=null!==this._driverSet?this._driverSet.catch((function(){return s.resolve()})):s.resolve();return this._driverSet=u.then((function(){var e=o[0];return r._dbInfo=null,r._ready=null,r.getDriver(e).then((function(e){r._driver=e._driver,i(),r._wrapLibraryMethodsWithReady(),r._initDriver=c(o)}))})).catch((function(){i();var e=new Error("No available storage method found.");return r._driverSet=s.reject(e),r._driverSet})),f(this._driverSet,t,n),this._driverSet},e.prototype.supports=function(e){return!!$e[e]},e.prototype._extend=function(e){it(this,e)},e.prototype._getSupportedDrivers=function(e){for(var t=[],n=0,r=e.length;n<r;n++){var o=e[n];this.supports(o)&&t.push(o)}return t},e.prototype._wrapLibraryMethodsWithReady=function(){for(var e=0,t=nt.length;e<t;e++)ot(this,nt[e])},e.prototype.createInstance=function(t){return new e(t)},e}(),ct=new at;t.exports=ct},{3:3}]},{},[4])(4)},9341:function(e,t,n){"use strict";var r=n(4575).default,o=n(3913).default,i=n(7031),a=Symbol("max"),c=Symbol("length"),u=Symbol("lengthCalculator"),s=Symbol("allowStale"),l=Symbol("maxAge"),f=Symbol("dispose"),h=Symbol("noDisposeOnSet"),p=Symbol("lruList"),d=Symbol("cache"),v=Symbol("updateAgeOnGet"),y=function(){return 1},m=function(){function e(t){if(r(this,e),"number"===typeof t&&(t={max:t}),t||(t={}),t.max&&("number"!==typeof t.max||t.max<0))throw new TypeError("max must be a non-negative number");this[a]=t.max||1/0;var n=t.length||y;if(this[u]="function"!==typeof n?y:n,this[s]=t.stale||!1,t.maxAge&&"number"!==typeof t.maxAge)throw new TypeError("maxAge must be a number");this[l]=t.maxAge||0,this[f]=t.dispose,this[h]=t.noDisposeOnSet||!1,this[v]=t.updateAgeOnGet||!1,this.reset()}return o(e,[{key:"max",get:function(){return this[a]},set:function(e){if("number"!==typeof e||e<0)throw new TypeError("max must be a non-negative number");this[a]=e||1/0,E(this)}},{key:"allowStale",get:function(){return this[s]},set:function(e){this[s]=!!e}},{key:"maxAge",get:function(){return this[l]},set:function(e){if("number"!==typeof e)throw new TypeError("maxAge must be a non-negative number");this[l]=e,E(this)}},{key:"lengthCalculator",get:function(){return this[u]},set:function(e){var t=this;"function"!==typeof e&&(e=y),e!==this[u]&&(this[u]=e,this[c]=0,this[p].forEac
vendor: 6,556 bytes, line 2
2h((function(e){e.length=t[u](e.value,e.key),t[c]+=e.length}))),E(this)}},{key:"length",get:function(){return this[c]}},{key:"itemCount",get:function(){return this[p].length}},{key:"rforEach",value:function(e,t){t=t||this;for(var n=this[p].tail;null!==n;){var r=n.prev;I(this,e,n,t),n=r}}},{key:"forEach",value:function(e,t){t=t||this;for(var n=this[p].head;null!==n;){var r=n.next;I(this,e,n,t),n=r}}},{key:"keys",value:function(){return this[p].toArray().map((function(e){return e.key}))}},{key:"values",value:function(){return this[p].toArray().map((function(e){return e.value}))}},{key:"reset",value:function(){var e=this;this[f]&&this[p]&&this[p].length&&this[p].forEach((function(t){return e[f](t.key,t.value)})),this[d]=new Map,this[p]=new i,this[c]=0}},{key:"dump",value:function(){var e=this;return this[p].map((function(t){return!b(e,t)&&{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}})).toArray().filter((function(e){return e}))}},{key:"dumpLru",value:function(){return this[p]}},{key:"set",value:function(e,t,n){if((n=n||this[l])&&"number"!==typeof n)throw new TypeError("maxAge must be a number");var r=n?Date.now():0,o=this[u](t,e);if(this[d].has(e)){if(o>this[a])return _(this,this[d].get(e)),!1;var i=this[d].get(e).value;return this[f]&&(this[h]||this[f](e,i.value)),i.now=r,i.maxAge=n,i.value=t,this[c]+=o-i.length,i.length=o,this.get(e),E(this),!0}var s=new w(e,t,o,r,n);return s.length>this[a]?(this[f]&&this[f](e,t),!1):(this[c]+=s.length,this[p].unshift(s),this[d].set(e,this[p].head),E(this),!0)}},{key:"has",value:function(e){if(!this[d].has(e))return!1;var t=this[d].get(e).value;return!b(this,t)}},{key:"get",value:function(e){return g(this,e,!0)}},{key:"peek",value:function(e){return g(this,e,!1)}},{key:"pop",value:function(){var e=this[p].tail;return e?(_(this,e),e.value):null}},{key:"del",value:function(e){_(this,this[d].get(e))}},{key:"load",value:function(e){this.reset();for(var t=Date.now(),n=e.length-1;n>=0;n--){var r=e[n],o=r.e||0;if(0===o)this.set(r.k,r.v);else{var i=o-t;i>0&&this.set(r.k,r.v,i)}}}},{key:"prune",value:function(){var e=this;this[d].forEach((function(t,n){return g(e,n,!1)}))}}]),e}(),g=function(e,t,n){var r=e[d].get(t);if(r){var o=r.value;if(b(e,o)){if(_(e,r),!e[s])return}else n&&(e[v]&&(r.value.now=Date.now()),e[p].unshiftNode(r));return o.value}},b=function(e,t){if(!t||!t.maxAge&&!e[l])return!1;var n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[l]&&n>e[l]},E=function(e){if(e[c]>e[a])for(var t=e[p].tail;e[c]>e[a]&&null!==t;){var n=t.prev;_(e,t),t=n}},_=function(e,t){if(t){var n=t.value;e[f]&&e[f](n.key,n.value),e[c]-=n.length,e[d].delete(n.key),e[p].removeNode(t)}},w=o((function e(t,n,o,i,a){r(this,e),this.key=t,this.value=n,this.length=o,this.now=i,this.maxAge=a||0})),I=function(e,t,n,r){var o=n.value;b(e,o)&&(_(e,n),e[s]||(o=void 0)),o&&t.call(r,o.value,o.key,e)};e.exports=m},7138:function(e,t,n){"use strict";var r=n(7757);e.exports=function(e){e.prototype[Symbol.iterator]=r.mark((function e(){var t;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this.head;case 1:if(!t){e.next=7;break}return e.next=4,t.value;case 4:t=t.next,e.next=1;break;case 7:case"end":return e.stop()}}),e,this)}))}},7031:function(e,t,n){"use strict";function r(e){var t=this;if(t instanceof r||(t=new r),t.tail=null,t.head=null,t.length=0,e&&"function"===typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var n=0,o=arguments.length;n<o;n++)t.push(arguments[n]);return t}function o(e,t,n){var r=t===e.head?new c(n,null,t,e):new c(n,t,t.next,e);return null===r.next&&(e.tail=r),null===r.prev&&(e.head=r),e.length++,r}function i(e,t){e.tail=new c(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function a(e,t){e.head=new c(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function c(e,t,n,r){if(!(this instanceof c))return new c(e,t,n,r);this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}e.exports=r,r.Node=c,r.create=r,r.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t},r.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},r.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},r.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)i(this,arguments[e]);return this.length},r.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)a(this,arguments[e]);return this.length},r.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},r.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},r.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,r=0;null!==n;r++)e.call(t,n.value,r,this),n=n.next},r.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,r=this.length-1;null!==n;r--)e.call(t,n.value,r,this),n=n.prev},r.prototype.get=function(e){for(var t=0,n=this.head;null!==n&&t<e;t++)n=n.next;if(t===e&&null!==n)return n.value},r.prototype.getReverse=function(e){for(var t=0,n=this.tail;null!==n&&t<e;t++)n=n.prev;if(t===e&&null!==n)return n.value},r.prototype.map=function(e,t){t=t||this;for(var n=new r,o=this.head;null!==o;)n.push(e.call(t,o.value,this)),o=o.next;return n},r.prototype.mapReverse=function(e,t){t=t||this;for(var n=new r,o=this.tail;null!==o;)n.push(e.call(t,o.value,this)),o=o.prev;return n},r.prototype.reduce=function(e,t){var n,r=this.head;if(arguments.length>1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var o=0;null!==r;o++)n=e(n,r.value,o),r=r.next;return n},r.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var o=this.length-1;null!==r;o--)n=e(n,r.value,o),r=r.prev;return n},r.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;
2t++)e[t]=n.value,n=n.next;return e},r.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},r.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var o=0,i=this.head;null!==i&&o<e;o++)i=i.next;for(;null!==i&&o<t;o++,i=i.next)n.push(i.value);return n},r.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var o=this.length,i=this.tail;null!==i&&o>t;o--)i=i.prev;for(;null!==i&&o>e;o--,i=i.prev)n.push(i.value);return n},r.prototype.splice=function(e,t){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,r=this.head;null!==r&&n<e;n++)r=r.next;var i=[];for(n=0;r&&n<t;n++)i.push(r.value),r=this.removeNode(r);null===r&&(r=this.tail),r!==this.head&&r!==this.tail&&(r=r.prev);for(n=0;n<(arguments.length<=2?0:arguments.length-2);n++)r=o(this,r,n+2<2||arguments.length<=n+2?void 0:arguments[n+2]);return i},r.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this};try{n(7138)(r)}catch(u){}},2668:function(e,t,n){"use strict";n.r(t),n.d(t,{EthChainType:function(){return l},Extension:function(){return De},ExtensionError:function(){return w},ExtensionWarning:function(){return I},Magic:function(){return ut},MagicIncomingWindowMessage:function(){return i},MagicOutgoingWindowMessage:function(){return a},MagicPayloadMethod:function(){return o},RPCError:function(){return E},RPCErrorCode:function(){return s},SDKError:function(){return b},SDKErrorCode:function(){return c},SDKWarning:function(){return _},SDKWarningCode:function(){return u},isPromiEvent:function(){return q}});var r={};n.r(r),n.d(r,{clear:function(){return Oe},getItem:function(){return Ie},iterate:function(){return Te},key:function(){return Re},keys:function(){return xe},length:function(){return Ne},removeItem:function(){return Se},setItem:function(){return Ae}});var o,i,a,c,u,s,l,f=n(5504),h=n.n(f);function p(e){return"undefined"===typeof e}function d(e){return function(e){return null===e}(e)||p(e)}function v(e){if(!e)return!0;for(var t in e)if(Object.hasOwnProperty.call(e,t))return!1;return!0}!function(e){e.LoginWithMagicLink="magic_auth_login_with_magic_link",e.LoginWithCredential="magic_auth_login_with_credential",e.GetIdToken="magic_auth_get_id_token",e.GenerateIdToken="magic_auth_generate_id_token",e.GetMetadata="magic_auth_get_metadata",e.IsLoggedIn="magic_auth_is_logged_in",e.Logout="magic_auth_logout",e.UpdateEmail="magic_auth_update_email",e.WebAuthnRegistrationStart="magic_auth_webauthn_registration_start",e.RegisterWithWebAuth="magic_auth_webauthn_register",e.LoginWithWebAuthn="magic_auth_login_with_web_authn",e.WebAuthnLoginVerfiy="magic_auth_login_with_webauthn_verify",e.GetWebAuthnInfo="magic_user_get_webauthn_credentials",e.UpdateWebAuthnInfo="magic_user_update_webauthn",e.UnregisterWebAuthDevice="magic_user_unregister_webauthn",e.RegisterWebAuthDeviceStart="magic_auth_register_webauthn_device_start",e.RegisterWebAuthDevice="magic_auth_register_webauthn_device"}(o||(o={})),function(e){e.MAGIC_HANDLE_RESPONSE="MAGIC_HANDLE_RESPONSE",e.MAGIC_OVERLAY_READY="MAGIC_OVERLAY_READY",e.MAGIC_SHOW_OVERLAY="MAGIC_SHOW_OVERLAY",e.MAGIC_HIDE_OVERLAY="MAGIC_HIDE_OVERLAY",e.MAGIC_HANDLE_EVENT="MAGIC_HANDLE_EVENT"}(i||(i={})),function(e){e.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST"}(a||(a={})),function(e){e.MissingApiKey="MISSING_API_KEY",e.ModalNotReady="MODA
2L_NOT_READY",e.MalformedResponse="MALFORMED_RESPONSE",e.InvalidArgument="INVALID_ARGUMENT",e.ExtensionNotInitialized="EXTENSION_NOT_INITIALIZED",e.WebAuthnNotSupported="WEBAUTHN_NOT_SUPPORTED",e.IncompatibleExtensions="INCOMPATIBLE_EXTENSIONS",e.WebAuthnCreateCredentialError="WEBAUTHN_CREATE_CREDENTIAL_ERROR"}(c||(c={})),function(e){e.SyncWeb3Method="SYNC_WEB3_METHOD",e.DuplicateIframe="DUPLICATE_IFRAME",e.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",e.DeprecationNotice="DEPRECATION_NOTICE"}(u||(u={})),function(e){e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError",e[e.MagicLinkFailedVerification=-1e4]="MagicLinkFailedVerification",e[e.MagicLinkExpired=-10001]="MagicLinkExpired",e[e.MagicLinkRateLimited=-10002]="MagicLinkRateLimited",e[e.MagicLinkInvalidRedirectURL=-10006]="MagicLinkInvalidRedirectURL",e[e.UserAlreadyLoggedIn=-10003]="UserAlreadyLoggedIn",e[e.UpdateEmailFailed=-10004]="UpdateEmailFailed",e[e.UserRequestEditEmail=-10005]="UserRequestEditEmail"}(s||(s={})),function(e){e.Harmony="HARMONY"}(l||(l={}));var y={};var m={"magic-sdk":"magic-sdk","magic-sdk-rn":"@magic-sdk/react-native"},g=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),b=function(e){function t(n,r){var o=e.call(this,"Magic SDK Error: ["+n+"] "+r)||this;return o.code=n,o.rawMessage=r,o.__proto__=Error,Object.setPrototypeOf(o,t.prototype),o}return g(t,e),t}(Error),E=function(e){function t(n){var r=e.call(this)||this;r.__proto__=Error;var o,i=Number(null===n||void 0===n?void 0:n.code);return r.rawMessage=(null===n||void 0===n?void 0:n.message)||"Internal error",r.code=!d(o=i)&&"number"===typeof o&&Object.values(s).includes(o)?i:s.InternalError,r.message="Magic RPC Error: ["+r.code+"] "+r.rawMessage,Object.setPrototypeOf(r,t.prototype),r}return g(t,e),t}(Error),_=function(){function e(e,t){this.code=e,this.rawMessage=t,this.message="Magic SDK Warning: ["+e+"] "+t}return e.prototype.log=function(){console.warn(this.message)},e}(),w=function(e){function t(n,r,o,i){var a=e.call(this,"Magic Extension Error ("+n.name+"): ["+r+"] "+o)||this;return a.code=r,a.rawMessage=o,a.data=i,a.__proto__=Error,Object.setPrototypeOf(a,t.prototype),a}return g(t,e),t}(Error),I=function(){function e(e,t,n){this.code=t,this.rawMessage=n,this.message="Magic Extension Warning ("+e.name+"): ["+t+"] "+n}return e.prototype.log=function(){console.warn(this.message)},e}();function A(){return new b(c.WebAuthnNotSupported,"WebAuthn is not supported in this device.")}function S(e){return new b(c.WebAuthnCreateCredentialError,"Error creating credential: "+e)}function O(e){var t=e.method,n=e.removalVersions,r=e.useInstead,o=m[y.sdkName],i="`"+t+"` will be removed from `"+o+"` in version `"+n[o]+"`."+(r?" Use `"+r+"` instead.":"");return new _(u.DeprecationNotice,i)}function N(e){return btoa(JSON.stringify(e))}function R(e){return JSON.parse(atob(e))}function x(e){return O({method:"encodeQueryParameters()",removalVersions:{"magic-sdk":"v3.0.0","@magic-sdk/react-native":"v3.0.0"},useInstead:"encodeJSON()"}).log(),btoa(JSON.stringify(e))}function T(e){return O({method:"decodeQueryParameters()",removalVersions:{"magic-sdk":"v3.0.0","@magic-sdk/react-native":"v3.0.0"},useInstead:"decodeJSON()"}).log(),JSON.parse(atob(e))}var L=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(c){i=[6,c],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}};var k=function(){var e;return L(this,(function(t){switch(t.label){case 0:e=0,t.label=1;case 1:return e<Number.MAX_SAFE_INTEGER?[4,++e]:[3,3];case 2:return t.sent(),[3,4];case 3:e=0,t.label=4;case 4:return[3,1];case 5:return[2]}}
2))}();function P(){return k.next().value}var D=Symbol("Payload pre-processed by Magic SDK");function C(e){return Object.defineProperty(e,D,{value:!0,enumerable:!1}),e}function M(e){var t,n,r;return function(e){return!!e[D]}(e)||(e.jsonrpc=null!==(t=e.jsonrpc)&&void 0!==t?t:"2.0",e.id=P(),e.method=null!==(n=e.method)&&void 0!==n?n:"noop",e.params=null!==(r=e.params)&&void 0!==r?r:[],C(e)),e}function j(e,t){return void 0===t&&(t=[]),C({params:t,method:e,jsonrpc:"2.0",id:P()})}var U=function(){function e(t){var n;t instanceof e?(this._jsonrpc=t.payload.jsonrpc,this._id=t.payload.id,this._result=t.payload.result,this._error=t.payload.error):d(n=t)||p(n.jsonrpc)||p(n.id)||p(n.result)&&p(n.error)?(this._jsonrpc=t.jsonrpc,this._id=t.id,this._result=void 0,this._error=void 0):(this._jsonrpc=t.jsonrpc,this._id=t.id,this._result=t.result,this._error=t.error)}return e.prototype.applyError=function(e){return this._error=e,this},e.prototype.applyResult=function(e){return this._result=e,this},Object.defineProperty(e.prototype,"hasError",{get:function(){return"undefined"!==typeof this._error&&null!==this._error},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasResult",{get:function(){return"undefined"!==typeof this._result},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"payload",{get:function(){return{jsonrpc:this._jsonrpc,id:this._id,result:this._result,error:this._error}},enumerable:!0,configurable:!0}),e}(),G=n(7143),F=n.n(G),B=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),W=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return B(t,e),t}(F());function H(){var e=new W;return{emitter:e,createChainingEmitterMethod:function(t,n){return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return e[t].apply(e,r),n}},createBoundEmitterMethod:function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e[t].apply(e,n)}}}}var z=Symbol("isPromiEvent");function q(e){return!!e[z]}function V(e){var t=X(e),n=H(),r=n.createBoundEmitterMethod,o=n.createChainingEmitterMethod,i=Symbol("Promise.then"),a=Symbol("Promise.catch"),c=Symbol("Promise.finally"),u=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=t[e].apply(t,n);return s(o)}},s=function(e){var t;return Object.assign(e,((t={})[z]=!0,t[i]=e[i]||e.then,t[a]=e[a]||e.catch,t[c]=e[c]||e.finally,t.then=u(i,e),t.catch=u(a,e),t.finally=u(c,e),t.on=o("on",e),t.once=o("once",e),t.addListener=o("addListener",e),t.off=o("off",e),t.removeListener=o("removeListener",e),t.removeAllListeners=o("removeAllListeners",e),t.emit=r("emit"),t.eventNames=r("eventNames"),t.listeners=r("listeners"),t.listenerCount=r("listenerCount"),t))},l=s(t.then((function(e){return l.emit("done",e),l.emit("settled"),e}),(function(e){throw l.emit("error",e),l.emit("settled"),e})));return l}function X(e){return new Promise((function(t,n){var r=e(t,n);Promise.resolve(r).catch(n)}))}var K=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(c){o={error:c}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},Q=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(K(arguments[t]));return e},Y=function(){function e(e){this.sdk=e}return Object.defineProperty(e.prototype,"transport",{get:function(){return this.sdk.transport},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"overlay",{get:function(){return this.sdk.overlay},enumerable:!0,configurable:!0}),e.prototype.request=function(e){var t=this.transport.post(this.overlay,a.MAGIC_HANDLE_REQUEST,M(e)),n=V((function(e,n){t.then((function(t){if(r(),t.hasError)n(new E(t.payload.error));else{if(!t.hasResult)throw new b(c.MalformedResponse,"Response from the Magic iframe is malformed.");e(t.payload.result)}})).catch((function(e){r(),n(e)}))})),r=this.transport.on(i.MAGIC_HANDLE_EVENT,(function(t){var r,o=t.data.response;if(o.id===e.id&&(null===(r=o.result)||void 0===r?void 0:r.event)){var i=o.result,a=i.event,c=i.params,u=void 0===c?[]:c;n.emit.apply(n,Q([a],u))}}));return n},e}();function J(e){var t,n,r,o,i=e.length%3,a="";function c(e){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
2+/".charAt(e)}for(t=0,r=e.length-i;t<r;t+=3)n=(e[t]<<16)+(e[t+1]<<8)+e[t+2],a+=c((o=n)>>18&63)+c(o>>12&63)+c(o>>6&63)+c(63&o);switch(i){case 1:a+=c((n=e[e.length-1])>>2),a+=c(n<<4&63),a+="==";break;case 2:a+=c((n=(e[e.length-2]<<8)+e[e.length-1])>>10),a+=c(n>>4&63),a+=c(n<<2&63),a+="="}return a}function $(e){return J(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function Z(e){return J(e).replace(/\+/g,"-").replace(/\//g,"_")}var ee=function(e){var t=new Uint8Array(e.response.attestationObject),n=new Uint8Array(e.response.clientDataJSON),r=new Uint8Array(e.rawId),o=e.getClientExtensionResults();return{id:e.id,rawId:$(r),type:e.type,attObj:$(t),clientData:$(n),registrationClientExtensions:JSON.stringify(o)}},te=function(e){var t,n=new Uint8Array(e.response.authenticatorData),r=new Uint8Array(e.response.clientDataJSON),o=new Uint8Array(e.rawId),i=new Uint8Array(e.response.signature),a=e.getClientExtensionResults();return{id:e.id,rawId:$(o),type:e.type,authData:Z(n),clientData:Z(r),signature:(t=i,Array.from(t).map((function(e){return("0"+e.toString(16)).substr(-2)})).join("")),assertionClientExtensions:JSON.stringify(a)}},ne=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),re=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function c(e){try{u(r.throw(e))}catch(t){i(t)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}u((r=r.apply(e,t||[])).next())}))},oe=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(c){i=[6,c],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},ie=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ne(t,e),t.prototype.loginWithMagicLink=function(e){var t=e.email,n=e.showUI,r=void 0===n||n,i=e.redirectURI,a=j(o.LoginWithMagicLink,[{email:t,showUI:r,redirectURI:i}]);return this.request(a)},t.prototype.loginWithCredential=function(e){var t=null!==e&&void 0!==e?e:"";if(!e&&"web"===y.target){t=window.location.search;var n=window.location.origin+window.location.pathname;window.history.replaceState(null,"",n)}var r=j(o.LoginWithCredential,[t]);return this.request(r)},t.prototype.registerWithWebAuthn=function(e){return re(this,void 0,void 0,(function(){var t,n,r,i,a;return oe(this,(function(c){switch(c.label){case 0:if(!window.PublicKeyCredential)throw A();return t=e.username,n=e.nickname,r=void 0===n?"":n,[4,this.request(j(o.WebAuthnRegistrationStart,[{username:t}]))];case 1:i=c.sent(),c.label=2;case 2:return c.trys.push([2,4,,5]),[4,navigator.credentials.create({publicKey:i.credential_options})];case 3:return a=c.sent(),[3,5];case 4:throw S(c.sent());case 5:return[2,this.request(j(o.RegisterWithWebAuth,[{id:i.id,nickname:r,transport:a.response.getTransports(),user_agent:navigator.userAgent,registration_response:ee(a)}]))]}}))}))},t.prototype.loginWithWebAuthn=function(e){return re(this,void 0,void 0,(function(){var t,n,r;return oe(this,(function(i){switch(i.label){case 0:if(!window.PublicKeyCredential)throw A();return t=e.username,[4,this.request(j(o.LoginWithWebAuthn,[{username:t}]))];case 1:n=i.sent(),i.label=2;case 2:return i.trys.push([2,4,,5]),[4,navigator.credentials.get({publicKey:n})];case 3:return r=i.sent(),[3,5];case 4:throw S(i.sent());case 5:return[2,this.request(j(o.WebAuthnLoginVerfiy,[{username:t,assertion_response:te(r)}]))]}}))}))},t}(Y),ae=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}
2(),ce=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function c(e){try{u(r.throw(e))}catch(t){i(t)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}u((r=r.apply(e,t||[])).next())}))},ue=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(c){i=[6,c],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},se=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ae(t,e),t.prototype.getIdToken=function(e){var t=j(o.GetIdToken,[e]);return this.request(t)},t.prototype.generateIdToken=function(e){var t=j(o.GenerateIdToken,[e]);return this.request(t)},t.prototype.getMetadata=function(){var e=j(o.GetMetadata);return this.request(e)},t.prototype.updateEmail=function(e){var t=e.email,n=e.showUI,r=void 0===n||n,i=j(o.UpdateEmail,[{email:t,showUI:r}]);return this.request(i)},t.prototype.isLoggedIn=function(){var e=j(o.IsLoggedIn);return this.request(e)},t.prototype.logout=function(){var e=j(o.Logout);return this.request(e)},t.prototype.getWebAuthnInfo=function(){var e=j(o.GetWebAuthnInfo,[]);return this.request(e)},t.prototype.updateWebAuthnInfo=function(e){var t=e.id,n=e.nickname,r=j(o.UpdateWebAuthnInfo,[{webAuthnCredentialsId:t,nickname:n}]);return this.request(r)},t.prototype.unregisterWebAuthnDevice=function(e){var t=j(o.UnregisterWebAuthDevice,[{webAuthnCredentialsId:e}]);return this.request(t)},t.prototype.registerWebAuthnDevice=function(e){return void 0===e&&(e=""),ce(this,void 0,void 0,(function(){var t,n;return ue(this,(function(r){switch(r.label){case 0:if(!window.PublicKeyCredential)throw A();return[4,this.request(j(o.RegisterWebAuthDeviceStart,[]))];case 1:t=r.sent(),r.label=2;case 2:return r.trys.push([2,4,,5]),[4,navigator.credentials.create({publicKey:t.credential_options})];case 3:return n=r.sent(),[3,5];case 4:throw S(r.sent());case 5:return[2,this.request(j(o.RegisterWebAuthDevice,[{nickname:e,transport:n.response.getTransports(),user_agent:navigator.userAgent,registration_response:ee(n)}]))]}}))}))},t}(Y),le=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fe=function(){return fe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},fe.apply(this,arguments)},he=H(),pe=he.createBoundEmitterMethod,de=he.createChainingEmitterMethod,ve=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isMagic=!0,t.on=de("on",t),t.once=de("once",t),t.addListener=de("addListener",t),t.off=de("off",t),t.removeListener=de("removeListener",t),t.removeAllListeners=de("removeAllListeners",t),t.emit=pe("emit"),t.eventNames=pe("eventNames"),t.listeners=pe("listeners"),t.listenerCount=pe("listenerCount"),t}return le(t,e),t.prototype.sendAsync=function(e,t){if(!t)throw n={procedure:"Magic.rpcProvider.sendAsync",argument:1,expected:"function",received:null===t?"null":typeof t},new b(c.InvalidArgument,"Invalid "+function(e){var t=e+1,n=t%10,r=t%100;return 1===n&&11!==r?t+"st":2===n&&12!==r?t+"nd":3===n&&13!==r?t+"rd":t+"th"}(n.argument)+" argument given to `"+n.procedure+"`.\n  Expected: `"+n.expected+"`\n  Received: `"+n.received+"`");var n;if(Array.isArray(e))this.transport.post(this.overlay,a.MAGIC_HANDLE_REQUEST,e.map((function(e){return M(e)}))).then((function(e){t(null,e.map((function(e){return fe(fe({},e.payload),{error:e.hasError?new E(e.payload.error):null})})))}));else{var r=M(e);this.transport.post(this.overlay,a.MAGIC_HANDLE_REQUEST,r).then((function(e){t(e.hasError?new E(e.payload.error):null,e.payload)}))}},t.prototype.send=function(e,t){if("string"===typeof e){var n=j(e,Array.isArray(t)?t:[]);return this.request(n)}if(!Array.isArray(e)&&!t){var r=new _(u.SyncWeb3Method,"Non-async web3 methods are deprecated 
2in web3 > 1.0 and are not supported by the Magic web3 provider. Please use an async method instead.");return r.log(),new U(e).applyError({code:-32603,message:r.rawMessage}).payload}this.sendAsync(e,t)},t.prototype.enable=function(){var e=j("eth_accounts");return this.request(e)},t}(Y);function ye(e,t){return t?new URL(e,t):new URL(e)}var me,ge=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function c(e){try{u(r.throw(e))}catch(t){i(t)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}u((r=r.apply(e,t||[])).next())}))},be=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(c){i=[6,c],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},Ee=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(c){o={error:c}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},_e=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Ee(arguments[t]));return e};function we(e){var t=this;return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return ge(t,void 0,void 0,(function(){return be(this,(function(t){switch(t.label){case 0:return me?[3,2]:[4,y.configureStorage()];case 1:me=t.sent(),t.label=2;case 2:return[4,me.ready()];case 3:return t.sent(),[2,me[e].apply(me,_e(n))]}}))}))}}var Ie=we("getItem"),Ae=we("setItem"),Se=we("removeItem"),Oe=we("clear"),Ne=we("length"),Re=we("key"),xe=we("keys"),Te=we("iterate"),Le=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ke=function(e){function t(){var t=e.call(this,void 0)||this;t.isInitialized=!1,t.utils={createPromiEvent:V,isPromiEvent:q,encodeJSON:N,decodeJSON:R,encodeQueryParameters:x,decodeQueryParameters:T,createJsonRpcRequestPayload:j,standardizeJsonRpcRequestPayload:M,storage:r};var n=["request","transport","overlay","sdk"];return new Proxy(t,{get:function(e,r,o){if(n.includes(r)&&!t.isInitialized)throw i=r,new b(c.ExtensionNotInitialized,"Extensions must be initialized with a Magic SDK instance before `Extension."+i+"` can be accessed. Do not invoke `Extension."+i+"` inside an extension constructor.");var i;return Reflect.get(e,r,o)}})}return Le(t,e),t.prototype.init=function(e){this.isInitialized||(this.sdk=e,this.isInitialized=!0)},t.prototype.createDeprecationWarning=function(e){var t=e.method,n=e.removalVersion,r=e.useInstead;return new I(this,"DEPRECATION_NOTICE","`"+t+"` will be removed from this Extension in version `"+n+"`."+(r?" Use `"+r+"` instead.":""))},t.prototype.createWarning=function(e,t){return new I(this,e,t)},t.prototype.createError=function(e,t,n){return new w(this,e,t,n)},t.prototype.raiseError=function(e,t,n){throw new w(this,e,t,n)},t}(Y),Pe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Le(t,e),t}(ke),De=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Le(t,e),t.Internal=Pe,t}
2(ke),Ce=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function c(e){try{u(r.throw(e))}catch(t){i(t)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}u((r=r.apply(e,t||[])).next())}))},Me=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(c){i=[6,c],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}};function je(e){if(e.compat){if("magic-sdk"===y.sdkName)return"string"===typeof e.compat["magic-sdk"]?h()(y.version,e.compat["magic-sdk"]):!!e.compat["magic-sdk"];if("magic-sdk-rn"===y.sdkName)return"string"===typeof e.compat["@magic-sdk/react-native"]?h()(y.version,e.compat["@magic-sdk/react-native"]):!!e.compat["@magic-sdk/react-native"]}return!0}function Ue(e){var t,n=this,r=null!==(t=null===e||void 0===e?void 0:e.extensions)&&void 0!==t?t:[],o={},i=[];if(Array.isArray(r)?r.forEach((function(e){je(e)?(e.init(n),n[e.name]=e,e instanceof De.Internal&&(v(e.config)||(o[e.name]=e.config))):i.push(e)})):Object.keys(r).forEach((function(e){if(je(r[e])){r[e].init(n);var t=r[e];n[e]=t,t instanceof De.Internal&&(v(t.config)||(o[r[e].name]=t.config))}else i.push(r[e])})),i.length)throw function(e){var t=m[y.sdkName],n="Some extensions are incompatible with `"+t+"@"+y.version+"`:";return e.filter((function(e){return"undefined"!==typeof e.compat&&null!==e.compat})).forEach((function(e){var r=e.compat[t];"string"===typeof r?n+="\n  - Extension `"+e.name+"` supports version(s) `"+r+"`":r||(n+="\n  - Extension `"+e.name+"` does not support "+y.target+" environments.")})),new b(c.IncompatibleExtensions,n)}(i);return o}var Ge=function(){function e(e,t){var n;if(this.apiKey=e,!e)throw new b(c.MissingApiKey,"Please provide an API key that you acquired from the Magic developer dashboard.");"react-native"===y.target&&(null===t||void 0===t?void 0:t.endpoint)&&new _(u.ReactNativeEndpointConfiguration,"CUSTOM DOMAINS ARE NOT SUPPORTED WHEN USING MAGIC SDK WITH REACT NATIVE! The `endpoint` parameter SHOULD NOT be provided. The Magic `<iframe>` is automatically wrapped by a WebView pointed at `"+y.defaultEndpoint+"`. Changing this default behavior will lead to unexpected results and potentially security-threatening bugs.").log();var r=y.defaultEndpoint,o=y.version;this.endpoint=ye(null!==(n=null===t||void 0===t?void 0:t.endpoint)&&void 0!==n?n:r).origin,this.auth=new ie(this),this.user=new se(this),this.rpcProvider=new ve(this);var i=Ue.call(this,t);this.encodedQueryParams=N({API_KEY:this.apiKey,DOMAIN_ORIGIN:window.location?window.location.origin:"",ETH_NETWORK:null===t||void 0===t?void 0:t.network,host:ye(this.endpoint).host,sdk:y.sdkName,version:o,ext:v(i)?void 0:i,locale:(null===t||void 0===t?void 0:t.locale)||"en_US"})}return Object.defineProperty(e.prototype,"transport",{get:function(){return e.__transports__.has(this.encodedQueryParams)||e.__transports__.set(this.encodedQueryParams,new y.PayloadTransport(this.endpoint,this.encodedQueryParams)),e.__transports__.get(this.encodedQueryParams)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"overlay",{get:function(){if(!e.__overlays__.has(this.encodedQueryParams)){var t=new y.ViewController(this.transport,this.endpoint,this.encodedQueryParams);e.__overlays__.set(this.encodedQueryParams,t)}return e.__overlays__.get(this.encodedQueryParams)},enumerable:!0,configurable:!0}),e.prototype.preload=function(){return Ce(this,void 0,void 0,(function(){return Me(this,(function(e){switch(e.label){case 0:return[4,this.overlay.ready];case 1:return e.sent(),[2]}}))}))},e.__transports__=new Map,e.__overlays__=new Map,e}
2(),Fe=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function c(e){try{u(r.throw(e))}catch(t){i(t)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}u((r=r.apply(e,t||[])).next())}))},Be=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(c){i=[6,c],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}};function We(e,t){var n,r=null===(n=t.data.response)||void 0===n?void 0:n.id,o=function(e,t){return t&&Array.isArray(e)?e.find((function(e){return e.id===t})):e}(e,r);return r&&o?{id:r,response:new U(o).applyResult(t.data.response.result).applyError(t.data.response.error)}:{}}var He=function(){function e(e,t){this.endpoint=e,this.encodedQueryParams=t,this.messageHandlers=new Set,this.init()}return e.prototype.post=function(e,t,n){return Fe(this,void 0,void 0,(function(){var r=this;return Be(this,(function(o){return[2,X((function(o){return Fe(r,void 0,void 0,(function(){var r,a,c,u;return Be(this,(function(s){switch(s.label){case 0:return[4,e.ready];case 1:return s.sent(),r=[],a=Array.isArray(n)?n.map((function(e){return e.id})):[],[4,e.postMessage({msgType:t+"-"+this.encodedQueryParams,payload:n})];case 2:return s.sent(),c=function(e){return function(t){var i=We(n,t),c=i.id,u=i.response;c&&u&&Array.isArray(n)&&a.includes(c)?(r.push(u),r.length===n.length&&(e(),o(r))):c&&u&&!Array.isArray(n)&&c===n.id&&(e(),o(u))}},u=this.on(i.MAGIC_HANDLE_RESPONSE,c((function(){return u()}))),[2]}}))}))}))]}))}))},e.prototype.on=function(e,t){var n=this,r=t.bind(window),o=function(t){t.data.msgType===e+"-"+n.encodedQueryParams&&r(t)};return this.messageHandlers.add(o),function(){return n.messageHandlers.delete(o)}},e}(),ze=function(){function e(e,t,n){this.transport=e,this.endpoint=t,this.encodedQueryParams=n,this.ready=this.waitForReady(),this.init&&this.init(),this.listen()}return e.prototype.waitForReady=function(){var e=this;return new Promise((function(t){e.transport.on(i.MAGIC_OVERLAY_READY,(function(){return t()}))}))},e.prototype.listen=function(){var e=this;this.transport.on(i.MAGIC_HIDE_OVERLAY,(function(){e.hideOverlay()})),this.transport.on(i.MAGIC_SHOW_OVERLAY,(function(){e.showOverlay()}))},e}(),qe=n(1842),Ve=n.n(qe),Xe=n(337),Ke=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qe=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function c(e){try{u(r.throw(e))}catch(t){i(t)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}u((r=r.apply(e,t||[])).next())}))},Ye=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(c){i=[6,c],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},Je=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);
2if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},$e=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(c){o={error:c}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},Ze={display:"none",position:"fixed",top:"0",right:"0",width:"100%",height:"100%",borderRadius:"0",border:"none",zIndex:"2147483647"};var et,tt,nt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ke(t,e),t.prototype.init=function(){this.iframe=this.createIframe()},t.prototype.createIframe=function(){var e=this;return new Promise((function(t){var n=function(){if(function(e){var t=[].slice.call(document.querySelectorAll(".magic-iframe"));return Boolean(t.find((function(t){return t.src.includes(e)})))}(encodeURIComponent(e.encodedQueryParams)))new _(u.DuplicateIframe,"Duplicate iframes found.").log();else{var n=document.createElement("iframe");n.classList.add("magic-iframe"),n.dataset.magicIframeLabel=ye(e.endpoint).host,n.src=ye("/send?params="+encodeURIComponent(e.encodedQueryParams),e.endpoint).href,function(e){var t,n;try{for(var r=Je(Object.entries(Ze)),o=r.next();!o.done;o=r.next()){var i=$e(o.value,2),a=i[0],c=i[1];e.style[a]=c}}catch(u){t={error:u}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}}(n),document.body.appendChild(n),t(n)}};["loaded","interactive","complete"].includes(document.readyState)?n():window.addEventListener("load",n,!1)}))},t.prototype.showOverlay=function(){return Qe(this,void 0,void 0,(function(){return Ye(this,(function(e){switch(e.label){case 0:return[4,this.iframe];case 1:return e.sent().style.display="block",[2]}}))}))},t.prototype.hideOverlay=function(){return Qe(this,void 0,void 0,(function(){return Ye(this,(function(e){switch(e.label){case 0:return[4,this.iframe];case 1:return e.sent().style.display="none",[2]}}))}))},t.prototype.postMessage=function(e){return Qe(this,void 0,void 0,(function(){var t;return Ye(this,(function(n){switch(n.label){case 0:return[4,this.iframe];case 1:if(!(t=n.sent())||!t.contentWindow)throw new b(c.ModalNotReady,"Modal is not ready.");return t.contentWindow.postMessage(e,this.endpoint),[2]}}))}))},t}(ze),rt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ot=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},it=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rt(t,e),t.prototype.init=function(){var e=this;window.addEventListener("message",(function(t){var n,r,o;if(t.origin===e.endpoint&&t.data&&t.data.msgType&&e.messageHandlers.size){t.data.response=null!==(o=t.data.response)&&void 0!==o?o:{};try{for(var i=ot(e.messageHandlers.values()),a=i.next();!a.done;a=i.next()){(0,a.value)(t)}}catch(c){n={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}}))},t}(He),at=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function c(e){try{u(r.throw(e))}catch(t){i(t)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}u((r=r.apply(e,t||[])).next())}))},ct=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(c){i=[6,c],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},ut=(et=Ge,tt={target:"web",sdkName:"magic-sdk",version:"2.7.0",defaultEndpoint:"https://auth.magic.link/",ViewController:nt,PayloadTransport:it,configureStorage:function(){return at(void 0,void 0,void 0,(function(){var e;return ct(this,(function(t){switch(t.label){case 0:return[4,(e=Ve().createInstance({name:"MagicAuthLocalStorageDB",storeName:"MagicAuthLocalStorage"})).defineDriver(Xe)];case 1:return t.sent(),[4,e.setDriver([Ve().INDEXEDDB,Ve().LOCALSTORAGE,Xe._driver])];case 2:return t.sent(),[2,e]}}))}))}},Object.assign(y,tt),et)}}]);
3//# sourceMappingURL=668.cd95a876.chunk.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.