!function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?exports.ImmortalDB=r():t.ImmortalDB=r()}(window,function(){return function(t){var r={};function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:n})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,r){if(1&r&&(t=e(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(e.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var o in t)e.d(n,o,function(r){return t[r]}.bind(null,o));return n},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},e.p="",e(e.s=129)}([function(t,r,e){(function(r){var e=function(t){return t&&t.Math==Math&&t};t.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof r&&r)||Function("return this")()}).call(this,e(91))},function(t,r,e){var n=e(0),o=e(39),i=e(5),u=e(28),c=e(44),a=e(66),f=o("wks"),s=n.Symbol,l=a?s:s&&s.withoutSetter||u;t.exports=function(t){return i(f,t)||(c&&i(s,t)?f[t]=s[t]:f[t]=l("Symbol."+t)),f[t]}},function(t,r){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,r,e){var n=e(0),o=e(25).f,i=e(10),u=e(9),c=e(37),a=e(61),f=e(43);t.exports=function(t,r){var e,s,l,p,v,h=t.target,y=t.global,d=t.stat;if(e=y?n:d?n[h]||c(h,{}):(n[h]||{}).prototype)for(s in r){if(p=r[s],l=t.noTargetGet?(v=o(e,s))&&v.value:e[s],!f(y?s:h+(d?".":"#")+s,t.forced)&&void 0!==l){if(typeof p==typeof l)continue;a(p,l)}(t.sham||l&&l.sham)&&i(p,"sham",!0),u(e,s,p,t)}}},function(t,r){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,r){var e={}.hasOwnProperty;t.exports=function(t,r){return e.call(t,r)}},function(t,r,e){var n=e(7),o=e(59),i=e(8),u=e(26),c=Object.defineProperty;r.f=n?c:function(t,r,e){if(i(t),r=u(r,!0),i(e),o)try{return c(t,r,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported");return"value"in e&&(t[r]=e.value),t}},function(t,r,e){var n=e(2);t.exports=!n(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},function(t,r,e){var n=e(4);t.exports=function(t){if(!n(t))throw TypeError(String(t)+" is not an object");return t}},function(t,r,e){var n=e(0),o=e(10),i=e(5),u=e(37),c=e(38),a=e(13),f=a.get,s=a.enforce,l=String(String).split("String");(t.exports=function(t,r,e,c){var a=!!c&&!!c.unsafe,f=!!c&&!!c.enumerable,p=!!c&&!!c.noTargetGet;"function"==typeof e&&("string"!=typeof r||i(e,"name")||o(e,"name",r),s(e).source=l.join("string"==typeof r?r:"")),t!==n?(a?!p&&t[r]&&(f=!0):delete t[r],f?t[r]=e:o(t,r,e)):f?t[r]=e:u(r,e)})(Function.prototype,"toString",function(){return"function"==typeof this&&f(this).source||c(this)})},function(t,r,e){var n=e(7),o=e(6),i=e(16);t.exports=n?function(t,r,e){return o.f(t,r,i(1,e))}:function(t,r,e){return t[r]=e,t}},function(t,r,e){var n=e(58),o=e(35);t.exports=function(t){return n(o(t))}},function(t,r){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,r,e){var n,o,i,u=e(92),c=e(0),a=e(4),f=e(10),s=e(5),l=e(27),p=e(18),v=c.WeakMap;if(u){var h=new v,y=h.get,d=h.has,m=h.set;n=function(t,r){return m.call(h,t,r),r},o=function(t){return y.call(h,t)||{}},i=function(t){return d.call(h,t)}}else{var g=l("state");p[g]=!0,n=function(t,r){return f(t,g,r),r},o=function(t){return s(t,g)?t[g]:{}},i=function(t){return s(t,g)}}t.exports={set:n,get:o,has:i,enforce:function(t){return i(t)?o(t):n(t,{})},getterFor:function(t){return function(r){var e;if(!a(r)||(e=o(r)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return e}}}},function(t,r,e){var n=e(62),o=e(0),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,r){return arguments.length<2?i(n[t])||i(o[t]):n[t]&&n[t][r]||o[t]&&o[t][r]}},function(t,r,e){var n=e(35);t.exports=function(t){return Object(n(t))}},function(t,r){t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},function(t,r){t.exports=!1},function(t,r){t.exports={}},function(t,r,e){var n=e(41),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},function(t,r,e){var n,o=e(8),i=e(95),u=e(42),c=e(18),a=e(68),f=e(36),s=e(27)("IE_PROTO"),l=function(){},p=function(t){return"<script>"+t+"<\/script>"},v=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(t){}v=n?function(t){t.write(p("")),t.close();var r=t.parentWindow.Object;return t=null,r}(n):function(){var t,r=f("iframe");return r.style.display="none",a.appendChild(r),r.src=String("javascript:"),(t=r.contentWindow.document).open(),t.write(p("document.F=Object")),t.close(),t.F}();for(var t=u.length;t--;)delete v.prototype[u[t]];return v()};c[s]=!0,t.exports=Object.create||function(t,r){var e;return null!==t?(l.prototype=o(t),e=new l,l.prototype=null,e[s]=t):e=v(),void 0===r?e:i(e,r)}},function(t,r,e){var n=e(6).f,o=e(5),i=e(1)("toStringTag");t.exports=function(t,r,e){t&&!o(t=e?t:t.prototype,i)&&n(t,i,{configurable:!0,value:r})}},function(t,r,e){var n=e(23);t.exports=function(t,r,e){if(n(t),void 0===r)return t;switch(e){case 0:return function(){return t.call(r)};case 1:return function(e){return t.call(r,e)};case 2:return function(e,n){return t.call(r,e,n)};case 3:return function(e,n,o){return t.call(r,e,n,o)}}return function(){return t.apply(r,arguments)}}},function(t,r){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,r){t.exports={}},function(t,r,e){var n=e(7),o=e(57),i=e(16),u=e(11),c=e(26),a=e(5),f=e(59),s=Object.getOwnPropertyDescriptor;r.f=n?s:function(t,r){if(t=u(t),r=c(r,!0),f)try{return s(t,r)}catch(t){}if(a(t,r))return i(!o.f.call(t,r),t[r])}},function(t,r,e){var n=e(4);t.exports=function(t,r){if(!n(t))return t;var e,o;if(r&&"function"==typeof(e=t.toString)&&!n(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!n(o=e.call(t)))return o;if(!r&&"function"==typeof(e=t.toString)&&!n(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,r,e){var n=e(39),o=e(28),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,r){var e=0,n=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++e+n).toString(36)}},function(t,r,e){var n=e(12);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,r,e){var n=e(3),o=e(7);n({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:e(6).f})},function(t,r,e){var n=e(48),o=e(9),i=e(115);n||o(Object.prototype,"toString",i,{unsafe:!0})},function(t,r,e){"use strict";var n,o,i,u,c=e(3),a=e(17),f=e(0),s=e(14),l=e(116),p=e(9),v=e(84),h=e(21),y=e(85),d=e(4),m=e(23),g=e(55),b=e(12),x=e(38),w=e(54),S=e(49),O=e(117),j=e(86).set,k=e(118),E=e(119),P=e(120),R=e(88),_=e(121),A=e(13),L=e(43),T=e(1),I=e(73),C=T("species"),D="Promise",M=A.get,F=A.set,N=A.getterFor(D),B=l,G=f.TypeError,z=f.document,U=f.process,V=s("fetch"),W=R.f,Y=W,H="process"==b(U),J=!!(z&&z.createEvent&&f.dispatchEvent),K=L(D,function(){if(!(x(B)!==String(B))){if(66===I)return!0;if(!H&&"function"!=typeof PromiseRejectionEvent)return!0}if(a&&!B.prototype.finally)return!0;if(I>=51&&/native code/.test(B))return!1;var t=B.resolve(1),r=function(t){t(function(){},function(){})};return(t.constructor={})[C]=r,!(t.then(function(){})instanceof r)}),Q=K||!S(function(t){B.all(t).catch(function(){})}),q=function(t){var r;return!(!d(t)||"function"!=typeof(r=t.then))&&r},$=function(t,r,e){if(!r.notified){r.notified=!0;var n=r.reactions;k(function(){for(var o=r.value,i=1==r.state,u=0;n.length>u;){var c,a,f,s=n[u++],l=i?s.ok:s.fail,p=s.resolve,v=s.reject,h=s.domain;try{l?(i||(2===r.rejection&&rt(t,r),r.rejection=1),!0===l?c=o:(h&&h.enter(),c=l(o),h&&(h.exit(),f=!0)),c===s.promise?v(G("Promise-chain cycle")):(a=q(c))?a.call(c,p,v):p(c)):v(o)}catch(t){h&&!f&&h.exit(),v(t)}}r.reactions=[],r.notified=!1,e&&!r.rejection&&Z(t,r)})}},X=function(t,r,e){var n,o;J?((n=z.createEvent("Event")).promise=r,n.reason=e,n.initEvent(t,!1,!0),f.dispatchEvent(n)):n={promise:r,reason:e},(o=f["on"+t])?o(n):"unhandledrejection"===t&&P("Unhandled promise rejection",e)},Z=function(t,r){j.call(f,function(){var e,n=r.value;if(tt(r)&&(e=_(function(){H?U.emit("unhandledRejection",n,t):X("unhandledrejection",t,n)}),r.rejection=H||tt(r)?2:1,e.error))throw e.value})},tt=function(t){return 1!==t.rejection&&!t.parent},rt=function(t,r){j.call(f,function(){H?U.emit("rejectionHandled",t):X("rejectionhandled",t,r.value)})},et=function(t,r,e,n){return function(o){t(r,e,o,n)}},nt=function(t,r,e,n){r.done||(r.done=!0,n&&(r=n),r.value=e,r.state=2,$(t,r,!0))},ot=function(t,r,e,n){if(!r.done){r.done=!0,n&&(r=n);try{if(t===e)throw G("Promise can't be resolved itself");var o=q(e);o?k(function(){var n={done:!1};try{o.call(e,et(ot,t,n,r),et(nt,t,n,r))}catch(e){nt(t,n,e,r)}}):(r.value=e,r.state=1,$(t,r,!1))}catch(e){nt(t,{done:!1},e,r)}}};K&&(B=function(t){g(this,B,D),m(t),n.call(this);var r=M(this);try{t(et(ot,this,r),et(nt,this,r))}catch(t){nt(this,r,t)}},(n=function(t){F(this,{type:D,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=v(B.prototype,{then:function(t,r){var e=N(this),n=W(O(this,B));return n.ok="function"!=typeof t||t,n.fail="function"==typeof r&&r,n.domain=H?U.domain:void 0,e.parent=!0,e.reactions.push(n),0!=e.state&&$(this,e,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new n,r=M(t);this.promise=t,this.resolve=et(ot,t,r),this.reject=et(nt,t,r)},R.f=W=function(t){return t===B||t===i?new o(t):Y(t)},a||"function"!=typeof l||(u=l.prototype.then,p(l.prototype,"then",function(t,r){var e=this;return new B(function(t,r){u.call(e,t,r)}).then(t,r)},{unsafe:!0}),"function"==typeof V&&c({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return E(B,V.apply(f,arguments))}}))),c({global:!0,wrap:!0,forced:K},{Promise:B}),h(B,D,!1,!0),y(D),i=s(D),c({target:D,stat:!0,forced:K},{reject:function(t){var r=W(this);return r.reject.call(void 0,t),r.promise}}),c({target:D,stat:!0,forced:a||K},{resolve:function(t){return E(a&&this===i?B:this,t)}}),c({target:D,stat:!0,forced:Q},{all:function(t){var r=this,e=W(r),n=e.resolve,o=e.reject,i=_(function(){var e=m(r.resolve),i=[],u=0,c=1;w(t,function(t){var a=u++,f=!1;i.push(void 0),c++,e.call(r,t).then(function(t){f||(f=!0,i[a]=t,--c||n(i))},o)}),--c||n(i)});return i.error&&o(i.value),e.promise},race:function(t){var r=this,e=W(r),n=e.reject,o=_(function(){var o=m(r.resolve);w(t,function(t){o.call(r,t).then(e.resolve,n)})});return o.error&&n(o.value),e.promise}})},function(t,r,e){var n=function(t){"use strict";var r,e=Object.prototype,n=e.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function a(t,r,e,n){var o=r&&r.prototype instanceof y?r:y,i=Object.create(o.prototype),u=new P(n||[]);return i._invoke=function(t,r,e){var n=s;return function(o,i){if(n===p)throw new Error("Generator is already running");if(n===v){if("throw"===o)throw i;return _()}for(e.method=o,e.arg=i;;){var u=e.delegate;if(u){var c=j(u,e);if(c){if(c===h)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(n===s)throw n=v,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n=p;var a=f(t,r,e);if("normal"===a.type){if(n=e.done?v:l,a.arg===h)continue;return{value:a.arg,done:e.done}}"throw"===a.type&&(n=v,e.method="throw",e.arg=a.arg)}}}(t,e,u),i}function f(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=a;var s="suspendedStart",l="suspendedYield",p="executing",v="completed",h={};function y(){}function d(){}function m(){}var g={};g[i]=function(){return this};var b=Object.getPrototypeOf,x=b&&b(b(R([])));x&&x!==e&&n.call(x,i)&&(g=x);var w=m.prototype=y.prototype=Object.create(g);function S(t){["next","throw","return"].forEach(function(r){t[r]=function(t){return this._invoke(r,t)}})}function O(t){var r;this._invoke=function(e,o){function i(){return new Promise(function(r,i){!function r(e,o,i,u){var c=f(t[e],t,o);if("throw"!==c.type){var a=c.arg,s=a.value;return s&&"object"==typeof s&&n.call(s,"__await")?Promise.resolve(s.__await).then(function(t){r("next",t,i,u)},function(t){r("throw",t,i,u)}):Promise.resolve(s).then(function(t){a.value=t,i(a)},function(t){return r("throw",t,i,u)})}u(c.arg)}(e,o,r,i)})}return r=r?r.then(i,i):i()}}function j(t,e){var n=t.iterator[e.method];if(n===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=r,j(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var o=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function k(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function E(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function R(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,u=function e(){for(;++o<t.length;)if(n.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=r,e.done=!0,e};return u.next=u}}return{next:_}}function _(){return{value:r,done:!0}}return d.prototype=w.constructor=m,m.constructor=d,m[c]=d.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===d||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c in t||(t[c]="GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},S(O.prototype),O.prototype[u]=function(){return this},t.AsyncIterator=O,t.async=function(r,e,n,o){var i=new O(a(r,e,n,o));return t.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},S(w),w[c]="Generator",w[i]=function(){return this},w.toString=function(){return"[object Generator]"},t.keys=function(t){var r=[];for(var e in t)r.push(e);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=R,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=r)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function o(n,o){return c.type="throw",c.arg=t,e.next=n,o&&(e.method="next",e.arg=r),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var u=this.tryEntries[i],c=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var a=n.call(u,"catchLoc"),f=n.call(u,"finallyLoc");if(a&&f){if(this.prev<u.catchLoc)return o(u.catchLoc,!0);if(this.prev<u.finallyLoc)return o(u.finallyLoc)}else if(a){if(this.prev<u.catchLoc)return o(u.catchLoc,!0)}else{if(!f)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return o(u.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var u=i?i.completion:{};return u.type=t,u.arg=r,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(u)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),h},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),E(e),h}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;E(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:R(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),h}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}},function(t,r,e){var n,o;
/*!
 * JavaScript Cookie v2.2.1
 * https://github.com/js-cookie/js-cookie
 *
 * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
 * Released under the MIT license
 */!function(i){if(void 0===(o="function"==typeof(n=i)?n.call(r,e,r,t):n)||(t.exports=o),!0,t.exports=i(),!!0){var u=window.Cookies,c=window.Cookies=i();c.noConflict=function(){return window.Cookies=u,c}}}(function(){function t(){for(var t=0,r={};t<arguments.length;t++){var e=arguments[t];for(var n in e)r[n]=e[n]}return r}function r(t){return t.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function e(n){function o(){}function i(r,e,i){if("undefined"!=typeof document){"number"==typeof(i=t({path:"/"},o.defaults,i)).expires&&(i.expires=new Date(1*new Date+864e5*i.expires)),i.expires=i.expires?i.expires.toUTCString():"";try{var u=JSON.stringify(e);/^[\{\[]/.test(u)&&(e=u)}catch(t){}e=n.write?n.write(e,r):encodeURIComponent(String(e)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),r=encodeURIComponent(String(r)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var c="";for(var a in i)i[a]&&(c+="; "+a,!0!==i[a]&&(c+="="+i[a].split(";")[0]));return document.cookie=r+"="+e+c}}function u(t,e){if("undefined"!=typeof document){for(var o={},i=document.cookie?document.cookie.split("; "):[],u=0;u<i.length;u++){var c=i[u].split("="),a=c.slice(1).join("=");e||'"'!==a.charAt(0)||(a=a.slice(1,-1));try{var f=r(c[0]);if(a=(n.read||n)(a,f)||r(a),e)try{a=JSON.parse(a)}catch(t){}if(o[f]=a,t===f)break}catch(t){}}return t?o[t]:o}}return o.set=i,o.get=function(t){return u(t,!1)},o.getJSON=function(t){return u(t,!0)},o.remove=function(r,e){i(r,"",t(e,{expires:-1}))},o.defaults={},o.withConverter=e,o}(function(){})})},function(t,r){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,r,e){var n=e(0),o=e(4),i=n.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},function(t,r,e){var n=e(0),o=e(10);t.exports=function(t,r){try{o(n,t,r)}catch(e){n[t]=r}return r}},function(t,r,e){var n=e(60),o=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(t){return o.call(t)}),t.exports=n.inspectSource},function(t,r,e){var n=e(17),o=e(60);(t.exports=function(t,r){return o[t]||(o[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.6.4",mode:n?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,r,e){var n=e(63),o=e(42).concat("length","prototype");r.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},function(t,r){var e=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:e)(t)}},function(t,r){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,r,e){var n=e(2),o=/#|\.prototype\./,i=function(t,r){var e=c[u(t)];return e==f||e!=a&&("function"==typeof r?n(r):!!r)},u=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=i.data={},a=i.NATIVE="N",f=i.POLYFILL="P";t.exports=i},function(t,r,e){var n=e(2);t.exports=!!Object.getOwnPropertySymbols&&!n(function(){return!String(Symbol())})},function(t,r,e){var n=e(22),o=e(58),i=e(15),u=e(19),c=e(97),a=[].push,f=function(t){var r=1==t,e=2==t,f=3==t,s=4==t,l=6==t,p=5==t||l;return function(v,h,y,d){for(var m,g,b=i(v),x=o(b),w=n(h,y,3),S=u(x.length),O=0,j=d||c,k=r?j(v,S):e?j(v,0):void 0;S>O;O++)if((p||O in x)&&(g=w(m=x[O],O,b),t))if(r)k[O]=g;else if(g)switch(t){case 3:return!0;case 5:return m;case 6:return O;case 2:a.call(k,m)}else if(s)return!1;return l?-1:f||s?s:k}};t.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6)}},function(t,r,e){var n=e(2),o=e(1),i=e(73),u=o("species");t.exports=function(t){return i>=51||!n(function(){var r=[];return(r.constructor={})[u]=function(){return{foo:1}},1!==r[t](Boolean).foo})}},function(t,r,e){var n=e(7),o=e(2),i=e(5),u=Object.defineProperty,c={},a=function(t){throw t};t.exports=function(t,r){if(i(c,t))return c[t];r||(r={});var e=[][t],f=!!i(r,"ACCESSORS")&&r.ACCESSORS,s=i(r,0)?r[0]:a,l=i(r,1)?r[1]:void 0;return c[t]=!!e&&!o(function(){if(f&&!n)return!0;var t={length:-1};f?u(t,1,{enumerable:!0,get:a}):t[1]=1,e.call(t,s,l)})}},function(t,r,e){var n={};n[e(1)("toStringTag")]="z",t.exports="[object z]"===String(n)},function(t,r,e){var n=e(1)("iterator"),o=!1;try{var i=0,u={next:function(){return{done:!!i++}},return:function(){o=!0}};u[n]=function(){return this},Array.from(u,function(){throw 2})}catch(t){}t.exports=function(t,r){if(!r&&!o)return!1;var e=!1;try{var i={};i[n]=function(){return{next:function(){return{done:e=!0}}}},t(i)}catch(t){}return e}},function(t,r,e){"use strict";var n=e(11),o=e(102),i=e(24),u=e(13),c=e(51),a=u.set,f=u.getterFor("Array Iterator");t.exports=c(Array,"Array",function(t,r){a(this,{type:"Array Iterator",target:n(t),index:0,kind:r})},function(){var t=f(this),r=t.target,e=t.kind,n=t.index++;return!r||n>=r.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==e?{value:n,done:!1}:"values"==e?{value:r[n],done:!1}:{value:[n,r[n]],done:!1}},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(t,r,e){"use strict";var n=e(3),o=e(103),i=e(52),u=e(53),c=e(21),a=e(10),f=e(9),s=e(1),l=e(17),p=e(24),v=e(80),h=v.IteratorPrototype,y=v.BUGGY_SAFARI_ITERATORS,d=s("iterator"),m=function(){return this};t.exports=function(t,r,e,s,v,g,b){o(e,r,s);var x,w,S,O=function(t){if(t===v&&R)return R;if(!y&&t in E)return E[t];switch(t){case"keys":case"values":case"entries":return function(){return new e(this,t)}}return function(){return new e(this)}},j=r+" Iterator",k=!1,E=t.prototype,P=E[d]||E["@@iterator"]||v&&E[v],R=!y&&P||O(v),_="Array"==r&&E.entries||P;if(_&&(x=i(_.call(new t)),h!==Object.prototype&&x.next&&(l||i(x)===h||(u?u(x,h):"function"!=typeof x[d]&&a(x,d,m)),c(x,j,!0,!0),l&&(p[j]=m))),"values"==v&&P&&"values"!==P.name&&(k=!0,R=function(){return P.call(this)}),l&&!b||E[d]===R||a(E,d,R),p[r]=R,v)if(w={values:O("values"),keys:g?R:O("keys"),entries:O("entries")},b)for(S in w)!y&&!k&&S in E||f(E,S,w[S]);else n({target:r,proto:!0,forced:y||k},w);return w}},function(t,r,e){var n=e(5),o=e(15),i=e(27),u=e(81),c=i("IE_PROTO"),a=Object.prototype;t.exports=u?Object.getPrototypeOf:function(t){return t=o(t),n(t,c)?t[c]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,r,e){var n=e(8),o=e(104);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,e={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(e,[]),r=e instanceof Array}catch(t){}return function(e,i){return n(e),o(i),r?t.call(e,i):e.__proto__=i,e}}():void 0)},function(t,r,e){var n=e(8),o=e(76),i=e(19),u=e(22),c=e(78),a=e(75),f=function(t,r){this.stopped=t,this.result=r};(t.exports=function(t,r,e,s,l){var p,v,h,y,d,m,g,b=u(r,e,s?2:1);if(l)p=t;else{if("function"!=typeof(v=c(t)))throw TypeError("Target is not iterable");if(o(v)){for(h=0,y=i(t.length);y>h;h++)if((d=s?b(n(g=t[h])[0],g[1]):b(t[h]))&&d instanceof f)return d;return new f(!1)}p=v.call(t)}for(m=p.next;!(g=m.call(p)).done;)if("object"==typeof(d=a(p,b,g.value,s))&&d&&d instanceof f)return d;return new f(!1)}).stop=function(t){return new f(!0,t)}},function(t,r){t.exports=function(t,r,e){if(!(t instanceof r))throw TypeError("Incorrect "+(e?e+" ":"")+"invocation");return t}},function(t,r,e){"use strict";var n=e(3),o=e(0),i=e(14),u=e(17),c=e(7),a=e(44),f=e(66),s=e(2),l=e(5),p=e(29),v=e(4),h=e(8),y=e(15),d=e(11),m=e(26),g=e(16),b=e(20),x=e(67),w=e(40),S=e(96),O=e(65),j=e(25),k=e(6),E=e(57),P=e(10),R=e(9),_=e(39),A=e(27),L=e(18),T=e(28),I=e(1),C=e(69),D=e(70),M=e(21),F=e(13),N=e(45).forEach,B=A("hidden"),G=I("toPrimitive"),z=F.set,U=F.getterFor("Symbol"),V=Object.prototype,W=o.Symbol,Y=i("JSON","stringify"),H=j.f,J=k.f,K=S.f,Q=E.f,q=_("symbols"),$=_("op-symbols"),X=_("string-to-symbol-registry"),Z=_("symbol-to-string-registry"),tt=_("wks"),rt=o.QObject,et=!rt||!rt.prototype||!rt.prototype.findChild,nt=c&&s(function(){return 7!=b(J({},"a",{get:function(){return J(this,"a",{value:7}).a}})).a})?function(t,r,e){var n=H(V,r);n&&delete V[r],J(t,r,e),n&&t!==V&&J(V,r,n)}:J,ot=function(t,r){var e=q[t]=b(W.prototype);return z(e,{type:"Symbol",tag:t,description:r}),c||(e.description=r),e},it=f?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof W},ut=function(t,r,e){t===V&&ut($,r,e),h(t);var n=m(r,!0);return h(e),l(q,n)?(e.enumerable?(l(t,B)&&t[B][n]&&(t[B][n]=!1),e=b(e,{enumerable:g(0,!1)})):(l(t,B)||J(t,B,g(1,{})),t[B][n]=!0),nt(t,n,e)):J(t,n,e)},ct=function(t,r){h(t);var e=d(r),n=x(e).concat(lt(e));return N(n,function(r){c&&!at.call(e,r)||ut(t,r,e[r])}),t},at=function(t){var r=m(t,!0),e=Q.call(this,r);return!(this===V&&l(q,r)&&!l($,r))&&(!(e||!l(this,r)||!l(q,r)||l(this,B)&&this[B][r])||e)},ft=function(t,r){var e=d(t),n=m(r,!0);if(e!==V||!l(q,n)||l($,n)){var o=H(e,n);return!o||!l(q,n)||l(e,B)&&e[B][n]||(o.enumerable=!0),o}},st=function(t){var r=K(d(t)),e=[];return N(r,function(t){l(q,t)||l(L,t)||e.push(t)}),e},lt=function(t){var r=t===V,e=K(r?$:d(t)),n=[];return N(e,function(t){!l(q,t)||r&&!l(V,t)||n.push(q[t])}),n};(a||(R((W=function(){if(this instanceof W)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,r=T(t),e=function(t){this===V&&e.call($,t),l(this,B)&&l(this[B],r)&&(this[B][r]=!1),nt(this,r,g(1,t))};return c&&et&&nt(V,r,{configurable:!0,set:e}),ot(r,t)}).prototype,"toString",function(){return U(this).tag}),R(W,"withoutSetter",function(t){return ot(T(t),t)}),E.f=at,k.f=ut,j.f=ft,w.f=S.f=st,O.f=lt,C.f=function(t){return ot(I(t),t)},c&&(J(W.prototype,"description",{configurable:!0,get:function(){return U(this).description}}),u||R(V,"propertyIsEnumerable",at,{unsafe:!0}))),n({global:!0,wrap:!0,forced:!a,sham:!a},{Symbol:W}),N(x(tt),function(t){D(t)}),n({target:"Symbol",stat:!0,forced:!a},{for:function(t){var r=String(t);if(l(X,r))return X[r];var e=W(r);return X[r]=e,Z[e]=r,e},keyFor:function(t){if(!it(t))throw TypeError(t+" is not a symbol");if(l(Z,t))return Z[t]},useSetter:function(){et=!0},useSimple:function(){et=!1}}),n({target:"Object",stat:!0,forced:!a,sham:!c},{create:function(t,r){return void 0===r?b(t):ct(b(t),r)},defineProperty:ut,defineProperties:ct,getOwnPropertyDescriptor:ft}),n({target:"Object",stat:!0,forced:!a},{getOwnPropertyNames:st,getOwnPropertySymbols:lt}),n({target:"Object",stat:!0,forced:s(function(){O.f(1)})},{getOwnPropertySymbols:function(t){return O.f(y(t))}}),Y)&&n({target:"JSON",stat:!0,forced:!a||s(function(){var t=W();return"[null]"!=Y([t])||"{}"!=Y({a:t})||"{}"!=Y(Object(t))})},{stringify:function(t,r,e){for(var n,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(n=r,(v(r)||void 0!==t)&&!it(t))return p(r)||(r=function(t,r){if("function"==typeof n&&(r=n.call(this,t,r)),!it(r))return r}),o[1]=r,Y.apply(null,o)}});W.prototype[G]||P(W.prototype,G,W.prototype.valueOf),M(W,"Symbol"),L[B]=!0},function(t,r,e){"use strict";var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!n.call({1:2},1);r.f=i?function(t){var r=o(this,t);return!!r&&r.enumerable}:n},function(t,r,e){var n=e(2),o=e(12),i="".split;t.exports=n(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},function(t,r,e){var n=e(7),o=e(2),i=e(36);t.exports=!n&&!o(function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},function(t,r,e){var n=e(0),o=e(37),i=n["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,r,e){var n=e(5),o=e(93),i=e(25),u=e(6);t.exports=function(t,r){for(var e=o(r),c=u.f,a=i.f,f=0;f<e.length;f++){var s=e[f];n(t,s)||c(t,s,a(r,s))}}},function(t,r,e){var n=e(0);t.exports=n},function(t,r,e){var n=e(5),o=e(11),i=e(94).indexOf,u=e(18);t.exports=function(t,r){var e,c=o(t),a=0,f=[];for(e in c)!n(u,e)&&n(c,e)&&f.push(e);for(;r.length>a;)n(c,e=r[a++])&&(~i(f,e)||f.push(e));return f}},function(t,r,e){var n=e(41),o=Math.max,i=Math.min;t.exports=function(t,r){var e=n(t);return e<0?o(e+r,0):i(e,r)}},function(t,r){r.f=Object.getOwnPropertySymbols},function(t,r,e){var n=e(44);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,r,e){var n=e(63),o=e(42);t.exports=Object.keys||function(t){return n(t,o)}},function(t,r,e){var n=e(14);t.exports=n("document","documentElement")},function(t,r,e){var n=e(1);r.f=n},function(t,r,e){var n=e(62),o=e(5),i=e(69),u=e(6).f;t.exports=function(t){var r=n.Symbol||(n.Symbol={});o(r,t)||u(r,t,{value:i.f(t)})}},function(t,r,e){"use strict";var n=e(3),o=e(7),i=e(0),u=e(5),c=e(4),a=e(6).f,f=e(61),s=i.Symbol;if(o&&"function"==typeof s&&(!("description"in s.prototype)||void 0!==s().description)){var l={},p=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),r=this instanceof p?new s(t):void 0===t?s():s(t);return""===t&&(l[r]=!0),r};f(p,s);var v=p.prototype=s.prototype;v.constructor=p;var h=v.toString,y="Symbol(test)"==String(s("test")),d=/^Symbol\((.*)\)[^)]+$/;a(v,"description",{configurable:!0,get:function(){var t=c(this)?this.valueOf():this,r=h.call(t);if(u(l,t))return"";var e=y?r.slice(7,-1):r.replace(d,"$1");return""===e?void 0:e}}),n({global:!0,forced:!0},{Symbol:p})}},function(t,r,e){e(70)("iterator")},function(t,r,e){var n,o,i=e(0),u=e(74),c=i.process,a=c&&c.versions,f=a&&a.v8;f?o=(n=f.split("."))[0]+n[1]:u&&(!(n=u.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=u.match(/Chrome\/(\d+)/))&&(o=n[1]),t.exports=o&&+o},function(t,r,e){var n=e(14);t.exports=n("navigator","userAgent")||""},function(t,r,e){var n=e(8);t.exports=function(t,r,e,o){try{return o?r(n(e)[0],e[1]):r(e)}catch(r){var i=t.return;throw void 0!==i&&n(i.call(t)),r}}},function(t,r,e){var n=e(1),o=e(24),i=n("iterator"),u=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||u[i]===t)}},function(t,r,e){"use strict";var n=e(26),o=e(6),i=e(16);t.exports=function(t,r,e){var u=n(r);u in t?o.f(t,u,i(0,e)):t[u]=e}},function(t,r,e){var n=e(79),o=e(24),i=e(1)("iterator");t.exports=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[n(t)]}},function(t,r,e){var n=e(48),o=e(12),i=e(1)("toStringTag"),u="Arguments"==o(function(){return arguments}());t.exports=n?o:function(t){var r,e,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,r){try{return t[r]}catch(t){}}(r=Object(t),i))?e:u?o(r):"Object"==(n=o(r))&&"function"==typeof r.callee?"Arguments":n}},function(t,r,e){"use strict";var n,o,i,u=e(52),c=e(10),a=e(5),f=e(1),s=e(17),l=f("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(o=u(u(i)))!==Object.prototype&&(n=o):p=!0),void 0==n&&(n={}),s||a(n,l)||c(n,l,function(){return this}),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:p}},function(t,r,e){var n=e(2);t.exports=!n(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},function(t,r,e){var n=e(7),o=e(6).f,i=Function.prototype,u=i.toString,c=/^\s*function ([^ (]*)/;!n||"name"in i||o(i,"name",{configurable:!0,get:function(){try{return u.call(this).match(c)[1]}catch(t){return""}}})},function(t,r,e){var n=e(18),o=e(4),i=e(5),u=e(6).f,c=e(28),a=e(112),f=c("meta"),s=0,l=Object.isExtensible||function(){return!0},p=function(t){u(t,f,{value:{objectID:"O"+ ++s,weakData:{}}})},v=t.exports={REQUIRED:!1,fastKey:function(t,r){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,f)){if(!l(t))return"F";if(!r)return"E";p(t)}return t[f].objectID},getWeakData:function(t,r){if(!i(t,f)){if(!l(t))return!0;if(!r)return!1;p(t)}return t[f].weakData},onFreeze:function(t){return a&&v.REQUIRED&&l(t)&&!i(t,f)&&p(t),t}};n[f]=!0},function(t,r,e){var n=e(9);t.exports=function(t,r,e){for(var o in r)n(t,o,r[o],e);return t}},function(t,r,e){"use strict";var n=e(14),o=e(6),i=e(1),u=e(7),c=i("species");t.exports=function(t){var r=n(t),e=o.f;u&&r&&!r[c]&&e(r,c,{configurable:!0,get:function(){return this}})}},function(t,r,e){var n,o,i,u=e(0),c=e(2),a=e(12),f=e(22),s=e(68),l=e(36),p=e(87),v=u.location,h=u.setImmediate,y=u.clearImmediate,d=u.process,m=u.MessageChannel,g=u.Dispatch,b=0,x={},w=function(t){if(x.hasOwnProperty(t)){var r=x[t];delete x[t],r()}},S=function(t){return function(){w(t)}},O=function(t){w(t.data)},j=function(t){u.postMessage(t+"",v.protocol+"//"+v.host)};h&&y||(h=function(t){for(var r=[],e=1;arguments.length>e;)r.push(arguments[e++]);return x[++b]=function(){("function"==typeof t?t:Function(t)).apply(void 0,r)},n(b),b},y=function(t){delete x[t]},"process"==a(d)?n=function(t){d.nextTick(S(t))}:g&&g.now?n=function(t){g.now(S(t))}:m&&!p?(i=(o=new m).port2,o.port1.onmessage=O,n=f(i.postMessage,i,1)):!u.addEventListener||"function"!=typeof postMessage||u.importScripts||c(j)?n="onreadystatechange"in l("script")?function(t){s.appendChild(l("script")).onreadystatechange=function(){s.removeChild(this),w(t)}}:function(t){setTimeout(S(t),0)}:(n=j,u.addEventListener("message",O,!1))),t.exports={set:h,clear:y}},function(t,r,e){var n=e(74);t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(n)},function(t,r,e){"use strict";var n=e(23);t.exports.f=function(t){return new function(t){var r,e;this.promise=new t(function(t,n){if(void 0!==r||void 0!==e)throw TypeError("Bad Promise constructor");r=t,e=n}),this.resolve=n(r),this.reject=n(e)}(t)}},function(t,r,e){"use strict";var n=e(124).charAt,o=e(13),i=e(51),u=o.set,c=o.getterFor("String Iterator");i(String,"String",function(t){u(this,{type:"String Iterator",string:String(t),index:0})},function(){var t,r=c(this),e=r.string,o=r.index;return o>=e.length?{value:void 0,done:!0}:(t=n(e,o),r.index+=t.length,{value:t,done:!1})})},function(t,r,e){var n=e(0),o=e(125),i=e(50),u=e(10),c=e(1),a=c("iterator"),f=c("toStringTag"),s=i.values;for(var l in o){var p=n[l],v=p&&p.prototype;if(v){if(v[a]!==s)try{u(v,a,s)}catch(t){v[a]=s}if(v[f]||u(v,f,l),o[l])for(var h in i)if(v[h]!==i[h])try{u(v,h,i[h])}catch(t){v[h]=i[h]}}}},function(t,r){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,r,e){var n=e(0),o=e(38),i=n.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},function(t,r,e){var n=e(14),o=e(40),i=e(65),u=e(8);t.exports=n("Reflect","ownKeys")||function(t){var r=o.f(u(t)),e=i.f;return e?r.concat(e(t)):r}},function(t,r,e){var n=e(11),o=e(19),i=e(64),u=function(t){return function(r,e,u){var c,a=n(r),f=o(a.length),s=i(u,f);if(t&&e!=e){for(;f>s;)if((c=a[s++])!=c)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===e)return t||s||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},function(t,r,e){var n=e(7),o=e(6),i=e(8),u=e(67);t.exports=n?Object.defineProperties:function(t,r){i(t);for(var e,n=u(r),c=n.length,a=0;c>a;)o.f(t,e=n[a++],r[e]);return t}},function(t,r,e){var n=e(11),o=e(40).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return u.slice()}}(t):o(n(t))}},function(t,r,e){var n=e(4),o=e(29),i=e(1)("species");t.exports=function(t,r){var e;return o(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!o(e.prototype)?n(e)&&null===(e=e[i])&&(e=void 0):e=void 0),new(void 0===e?Array:e)(0===r?0:r)}},function(t,r,e){"use strict";var n=e(3),o=e(45).filter,i=e(46),u=e(47),c=i("filter"),a=u("filter");n({target:"Array",proto:!0,forced:!c||!a},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,r,e){var n=e(3),o=e(100);n({target:"Array",stat:!0,forced:!e(49)(function(t){Array.from(t)})},{from:o})},function(t,r,e){"use strict";var n=e(22),o=e(15),i=e(75),u=e(76),c=e(19),a=e(77),f=e(78);t.exports=function(t){var r,e,s,l,p,v,h=o(t),y="function"==typeof this?this:Array,d=arguments.length,m=d>1?arguments[1]:void 0,g=void 0!==m,b=f(h),x=0;if(g&&(m=n(m,d>2?arguments[2]:void 0,2)),void 0==b||y==Array&&u(b))for(e=new y(r=c(h.length));r>x;x++)v=g?m(h[x],x):h[x],a(e,x,v);else for(p=(l=b.call(h)).next,e=new y;!(s=p.call(l)).done;x++)v=g?i(l,m,[s.value,x],!0):s.value,a(e,x,v);return e.length=x,e}},function(t,r,e){e(3)({target:"Array",stat:!0},{isArray:e(29)})},function(t,r,e){var n=e(1),o=e(20),i=e(6),u=n("unscopables"),c=Array.prototype;void 0==c[u]&&i.f(c,u,{configurable:!0,value:o(null)}),t.exports=function(t){c[u][t]=!0}},function(t,r,e){"use strict";var n=e(80).IteratorPrototype,o=e(20),i=e(16),u=e(21),c=e(24),a=function(){return this};t.exports=function(t,r,e){var f=r+" Iterator";return t.prototype=o(n,{next:i(1,e)}),u(t,f,!1,!0),c[f]=a,t}},function(t,r,e){var n=e(4);t.exports=function(t){if(!n(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},function(t,r,e){"use strict";var n=e(3),o=e(45).map,i=e(46),u=e(47),c=i("map"),a=u("map");n({target:"Array",proto:!0,forced:!c||!a},{map:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,r,e){"use strict";var n=e(3),o=e(4),i=e(29),u=e(64),c=e(19),a=e(11),f=e(77),s=e(1),l=e(46),p=e(47),v=l("slice"),h=p("slice",{ACCESSORS:!0,0:0,1:2}),y=s("species"),d=[].slice,m=Math.max;n({target:"Array",proto:!0,forced:!v||!h},{slice:function(t,r){var e,n,s,l=a(this),p=c(l.length),v=u(t,p),h=u(void 0===r?p:r,p);if(i(l)&&("function"!=typeof(e=l.constructor)||e!==Array&&!i(e.prototype)?o(e)&&null===(e=e[y])&&(e=void 0):e=void 0,e===Array||void 0===e))return d.call(l,v,h);for(n=new(void 0===e?Array:e)(m(h-v,0)),s=0;v<h;v++,s++)v in l&&f(n,s,l[v]);return n.length=s,n}})},function(t,r,e){"use strict";var n=e(3),o=e(23),i=e(15),u=e(2),c=e(108),a=[],f=a.sort,s=u(function(){a.sort(void 0)}),l=u(function(){a.sort(null)}),p=c("sort");n({target:"Array",proto:!0,forced:s||!l||!p},{sort:function(t){return void 0===t?f.call(i(this)):f.call(i(this),o(t))}})},function(t,r,e){"use strict";var n=e(2);t.exports=function(t,r){var e=[][t];return!!e&&n(function(){e.call(null,r||function(){throw 1},1)})}},function(t,r,e){var n=e(9),o=Date.prototype,i=o.toString,u=o.getTime;new Date(NaN)+""!="Invalid Date"&&n(o,"toString",function(){var t=u.call(this);return t==t?i.call(this):"Invalid Date"})},function(t,r,e){"use strict";var n=e(111),o=e(114);t.exports=n("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},o)},function(t,r,e){"use strict";var n=e(3),o=e(0),i=e(43),u=e(9),c=e(83),a=e(54),f=e(55),s=e(4),l=e(2),p=e(49),v=e(21),h=e(113);t.exports=function(t,r,e){var y=-1!==t.indexOf("Map"),d=-1!==t.indexOf("Weak"),m=y?"set":"add",g=o[t],b=g&&g.prototype,x=g,w={},S=function(t){var r=b[t];u(b,t,"add"==t?function(t){return r.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(d&&!s(t))&&r.call(this,0===t?0:t)}:"get"==t?function(t){return d&&!s(t)?void 0:r.call(this,0===t?0:t)}:"has"==t?function(t){return!(d&&!s(t))&&r.call(this,0===t?0:t)}:function(t,e){return r.call(this,0===t?0:t,e),this})};if(i(t,"function"!=typeof g||!(d||b.forEach&&!l(function(){(new g).entries().next()}))))x=e.getConstructor(r,t,y,m),c.REQUIRED=!0;else if(i(t,!0)){var O=new x,j=O[m](d?{}:-0,1)!=O,k=l(function(){O.has(1)}),E=p(function(t){new g(t)}),P=!d&&l(function(){for(var t=new g,r=5;r--;)t[m](r,r);return!t.has(-0)});E||((x=r(function(r,e){f(r,x,t);var n=h(new g,r,x);return void 0!=e&&a(e,n[m],n,y),n})).prototype=b,b.constructor=x),(k||P)&&(S("delete"),S("has"),y&&S("get")),(P||j)&&S(m),d&&b.clear&&delete b.clear}return w[t]=x,n({global:!0,forced:x!=g},w),v(x,t),d||e.setStrong(x,t,y),x}},function(t,r,e){var n=e(2);t.exports=!n(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(t,r,e){var n=e(4),o=e(53);t.exports=function(t,r,e){var i,u;return o&&"function"==typeof(i=r.constructor)&&i!==e&&n(u=i.prototype)&&u!==e.prototype&&o(t,u),t}},function(t,r,e){"use strict";var n=e(6).f,o=e(20),i=e(84),u=e(22),c=e(55),a=e(54),f=e(51),s=e(85),l=e(7),p=e(83).fastKey,v=e(13),h=v.set,y=v.getterFor;t.exports={getConstructor:function(t,r,e,f){var s=t(function(t,n){c(t,s,r),h(t,{type:r,index:o(null),first:void 0,last:void 0,size:0}),l||(t.size=0),void 0!=n&&a(n,t[f],t,e)}),v=y(r),d=function(t,r,e){var n,o,i=v(t),u=m(t,r);return u?u.value=e:(i.last=u={index:o=p(r,!0),key:r,value:e,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=u),n&&(n.next=u),l?i.size++:t.size++,"F"!==o&&(i.index[o]=u)),t},m=function(t,r){var e,n=v(t),o=p(r);if("F"!==o)return n.index[o];for(e=n.first;e;e=e.next)if(e.key==r)return e};return i(s.prototype,{clear:function(){for(var t=v(this),r=t.index,e=t.first;e;)e.removed=!0,e.previous&&(e.previous=e.previous.next=void 0),delete r[e.index],e=e.next;t.first=t.last=void 0,l?t.size=0:this.size=0},delete:function(t){var r=v(this),e=m(this,t);if(e){var n=e.next,o=e.previous;delete r.index[e.index],e.removed=!0,o&&(o.next=n),n&&(n.previous=o),r.first==e&&(r.first=n),r.last==e&&(r.last=o),l?r.size--:this.size--}return!!e},forEach:function(t){for(var r,e=v(this),n=u(t,arguments.length>1?arguments[1]:void 0,3);r=r?r.next:e.first;)for(n(r.value,r.key,this);r&&r.removed;)r=r.previous},has:function(t){return!!m(this,t)}}),i(s.prototype,e?{get:function(t){var r=m(this,t);return r&&r.value},set:function(t,r){return d(this,0===t?0:t,r)}}:{add:function(t){return d(this,t=0===t?0:t,t)}}),l&&n(s.prototype,"size",{get:function(){return v(this).size}}),s},setStrong:function(t,r,e){var n=r+" Iterator",o=y(r),i=y(n);f(t,r,function(t,r){h(this,{type:n,target:t,state:o(t),kind:r,last:void 0})},function(){for(var t=i(this),r=t.kind,e=t.last;e&&e.removed;)e=e.previous;return t.target&&(t.last=e=e?e.next:t.state.first)?"keys"==r?{value:e.key,done:!1}:"values"==r?{value:e.value,done:!1}:{value:[e.key,e.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})},e?"entries":"values",!e,!0),s(r)}}},function(t,r,e){"use strict";var n=e(48),o=e(79);t.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},function(t,r,e){var n=e(0);t.exports=n.Promise},function(t,r,e){var n=e(8),o=e(23),i=e(1)("species");t.exports=function(t,r){var e,u=n(t).constructor;return void 0===u||void 0==(e=n(u)[i])?r:o(e)}},function(t,r,e){var n,o,i,u,c,a,f,s,l=e(0),p=e(25).f,v=e(12),h=e(86).set,y=e(87),d=l.MutationObserver||l.WebKitMutationObserver,m=l.process,g=l.Promise,b="process"==v(m),x=p(l,"queueMicrotask"),w=x&&x.value;w||(n=function(){var t,r;for(b&&(t=m.domain)&&t.exit();o;){r=o.fn,o=o.next;try{r()}catch(t){throw o?u():i=void 0,t}}i=void 0,t&&t.enter()},b?u=function(){m.nextTick(n)}:d&&!y?(c=!0,a=document.createTextNode(""),new d(n).observe(a,{characterData:!0}),u=function(){a.data=c=!c}):g&&g.resolve?(f=g.resolve(void 0),s=f.then,u=function(){s.call(f,n)}):u=function(){h.call(l,n)}),t.exports=w||function(t){var r={fn:t,next:void 0};i&&(i.next=r),o||(o=r,u()),i=r}},function(t,r,e){var n=e(8),o=e(4),i=e(88);t.exports=function(t,r){if(n(t),o(r)&&r.constructor===t)return r;var e=i.f(t);return(0,e.resolve)(r),e.promise}},function(t,r,e){var n=e(0);t.exports=function(t,r){var e=n.console;e&&e.error&&(1===arguments.length?e.error(t):e.error(t,r))}},function(t,r){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},function(t,r,e){"use strict";var n=e(9),o=e(8),i=e(2),u=e(123),c=RegExp.prototype,a=c.toString,f=i(function(){return"/a/b"!=a.call({source:"a",flags:"b"})}),s="toString"!=a.name;(f||s)&&n(RegExp.prototype,"toString",function(){var t=o(this),r=String(t.source),e=t.flags;return"/"+r+"/"+String(void 0===e&&t instanceof RegExp&&!("flags"in c)?u.call(t):e)},{unsafe:!0})},function(t,r,e){"use strict";var n=e(8);t.exports=function(){var t=n(this),r="";return t.global&&(r+="g"),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.dotAll&&(r+="s"),t.unicode&&(r+="u"),t.sticky&&(r+="y"),r}},function(t,r,e){var n=e(41),o=e(35),i=function(t){return function(r,e){var i,u,c=String(o(r)),a=n(e),f=c.length;return a<0||a>=f?t?"":void 0:(i=c.charCodeAt(a))<55296||i>56319||a+1===f||(u=c.charCodeAt(a+1))<56320||u>57343?t?c.charAt(a):i:t?c.slice(a,a+2):u-56320+(i-55296<<10)+65536}};t.exports={codeAt:i(!1),charAt:i(!0)}},function(t,r){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,r,e){e(3)({target:"Object",stat:!0,sham:!e(7)},{create:e(20)})},function(t,r,e){var n=e(3),o=e(2),i=e(15),u=e(52),c=e(81);n({target:"Object",stat:!0,forced:o(function(){u(1)}),sham:!c},{getPrototypeOf:function(t){return u(i(t))}})},function(t,r,e){e(3)({target:"Object",stat:!0},{setPrototypeOf:e(53)})},function(t,r,e){"use strict";e.r(r);e(56),e(71),e(72),e(98),e(99),e(101),e(50),e(105),e(106),e(107),e(109),e(82),e(110),e(30),e(31),e(32),e(122),e(89),e(90),e(33);var n=e(34),o=e.n(n);function i(t,r,e,n,o,i,u){try{var c=t[i](u),a=c.value}catch(t){return void e(t)}c.done?r(a):Promise.resolve(a).then(n,o)}function u(t){return function(){var r=this,e=arguments;return new Promise(function(n,o){var u=t.apply(r,e);function c(t){i(u,n,o,c,a,"next",t)}function a(t){i(u,n,o,c,a,"throw",t)}c(void 0)})}}function c(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var a=365,f=function(){try{return!Boolean(window.top.location.href)}catch(t){return!0}}(),s=!!f,l=f?"None":"Lax";var p=function(){function t(){var r=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.ttl,o=void 0===n?a:n,i=e.secure,c=void 0===i?s:i,f=e.sameSite,p=void 0===f?l:f;return function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,t),this.ttl=o,this.secure=c,this.sameSite=p,u(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",r);case 1:case"end":return t.stop()}},t)}))()}return function(t,r,e){r&&c(t.prototype,r),e&&c(t,e)}(t,[{key:"get",value:function(){var t=u(regeneratorRuntime.mark(function t(r){var e;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=o.a.get(r),t.abrupt("return","string"==typeof e?e:void 0);case 2:case"end":return t.stop()}},t)}));return function(r){return t.apply(this,arguments)}}()},{key:"set",value:function(){var t=u(regeneratorRuntime.mark(function t(r,e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:o.a.set(r,e,this._constructCookieParams());case 1:case"end":return t.stop()}},t,this)}));return function(r,e){return t.apply(this,arguments)}}()},{key:"remove",value:function(){var t=u(regeneratorRuntime.mark(function t(r){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:o.a.remove(r,this._constructCookieParams());case 1:case"end":return t.stop()}},t,this)}));return function(r){return t.apply(this,arguments)}}()},{key:"_constructCookieParams",value:function(){return{expires:this.ttl,secure:this.secure,sameSite:this.sameSite}}}]),t}();class v{constructor(t="keyval-store",r="keyval"){this.storeName=r,this._dbp=new Promise((e,n)=>{const o=indexedDB.open(t,1);o.onerror=(()=>n(o.error)),o.onsuccess=(()=>e(o.result)),o.onupgradeneeded=(()=>{o.result.createObjectStore(r)})})}_withIDBStore(t,r){return this._dbp.then(e=>new Promise((n,o)=>{const i=e.transaction(this.storeName,t);i.oncomplete=(()=>n()),i.onabort=i.onerror=(()=>o(i.error)),r(i.objectStore(this.storeName))}))}}let h;function y(){return h||(h=new v),h}function d(t,r=y()){let e;return r._withIDBStore("readonly",r=>{e=r.get(t)}).then(()=>e.result)}function m(t,r,e=y()){return e._withIDBStore("readwrite",e=>{e.put(r,t)})}function g(t,r=y()){return r._withIDBStore("readwrite",r=>{r.delete(t)})}function b(t,r,e,n,o,i,u){try{var c=t[i](u),a=c.value}catch(t){return void e(t)}c.done?r(a):Promise.resolve(a).then(n,o)}function x(t){return function(){var r=this,e=arguments;return new Promise(function(n,o){var i=t.apply(r,e);function u(t){b(i,n,o,u,c,"next",t)}function c(t){b(i,n,o,u,c,"throw",t)}u(void 0)})}}function w(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var S="ImmortalDB",O="key-value-pairs",j=function(){function t(){var r=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:S,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:O;return function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,t),this.store=new v(e,n),x(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,r.store._dbp;case 3:t.next=12;break;case 5:if(t.prev=5,t.t0=t.catch(0),"SecurityError"!==t.t0.name){t.next=11;break}return t.abrupt("return",null);case 11:throw t.t0;case 12:return t.abrupt("return",r);case 13:case"end":return t.stop()}},t,null,[[0,5]])}))()}return function(t,r,e){r&&w(t.prototype,r),e&&w(t,e)}(t,[{key:"get",value:function(){var t=x(regeneratorRuntime.mark(function t(r){var e;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,d(r,this.store);case 2:return e=t.sent,t.abrupt("return","string"==typeof e?e:void 0);case 4:case"end":return t.stop()}},t,this)}));return function(r){return t.apply(this,arguments)}}()},{key:"set",value:function(){var t=x(regeneratorRuntime.mark(function t(r,e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,m(r,e,this.store);case 2:case"end":return t.stop()}},t,this)}));return function(r,e){return t.apply(this,arguments)}}()},{key:"remove",value:function(){var t=x(regeneratorRuntime.mark(function t(r){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,g(r,this.store);case 2:case"end":return t.stop()}},t,this)}));return function(r){return t.apply(this,arguments)}}()}]),t}();e(126),e(127),e(128);function k(t){"@babel/helpers - typeof";return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function E(t,r){return!r||"object"!==k(r)&&"function"!=typeof r?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):r}function P(t){return(P=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function R(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&_(t,r)}function _(t,r){return(_=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t})(t,r)}function A(t,r,e,n,o,i,u){try{var c=t[i](u),a=c.value}catch(t){return void e(t)}c.done?r(a):Promise.resolve(a).then(n,o)}function L(t){return function(){var r=this,e=arguments;return new Promise(function(n,o){var i=t.apply(r,e);function u(t){A(i,n,o,u,c,"next",t)}function c(t){A(i,n,o,u,c,"throw",t)}u(void 0)})}}function T(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function I(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var C=function(){function t(r){var e=this;return T(this,t),this.store=r,L(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e);case 1:case"end":return t.stop()}},t)}))()}return function(t,r,e){r&&I(t.prototype,r),e&&I(t,e)}(t,[{key:"get",value:function(){var t=L(regeneratorRuntime.mark(function t(r){var e;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.store.getItem(r),t.abrupt("return","string"==typeof e?e:void 0);case 2:case"end":return t.stop()}},t,this)}));return function(r){return t.apply(this,arguments)}}()},{key:"set",value:function(){var t=L(regeneratorRuntime.mark(function t(r,e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.store.setItem(r,e);case 1:case"end":return t.stop()}},t,this)}));return function(r,e){return t.apply(this,arguments)}}()},{key:"remove",value:function(){var t=L(regeneratorRuntime.mark(function t(r){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.store.removeItem(r);case 1:case"end":return t.stop()}},t,this)}));return function(r){return t.apply(this,arguments)}}()}]),t}(),D=function(t){function r(){return T(this,r),E(this,P(r).call(this,window.localStorage))}return R(r,C),r}(),M=function(t){function r(){return T(this,r),E(this,P(r).call(this,window.sessionStorage))}return R(r,C),r}();function F(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var e=[],n=!0,o=!1,i=void 0;try{for(var u,c=t[Symbol.iterator]();!(n=(u=c.next()).done)&&(e.push(u.value),!r||e.length!==r);n=!0);}catch(t){o=!0,i=t}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return e}(t,r)||function(t,r){if(!t)return;if("string"==typeof t)return N(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return N(t,r)}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function N(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function B(t){"@babel/helpers - typeof";return(B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function G(t,r,e,n,o,i,u){try{var c=t[i](u),a=c.value}catch(t){return void e(t)}c.done?r(a):Promise.resolve(a).then(n,o)}function z(t){return function(){var r=this,e=arguments;return new Promise(function(n,o){var i=t.apply(r,e);function u(t){G(i,n,o,u,c,"next",t)}function c(t){G(i,n,o,u,c,"throw",t)}u(void 0)})}}function U(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}e.d(r,"ImmortalDB",function(){return q}),e.d(r,"ImmortalStorage",function(){return Q}),e.d(r,"DEFAULT_STORES",function(){return H}),e.d(r,"DEFAULT_KEY_PREFIX",function(){return W}),e.d(r,"CookieStore",function(){return p}),e.d(r,"IndexedDbStore",function(){return j}),e.d(r,"LocalStorageStore",function(){return D}),e.d(r,"SessionStorageStore",function(){return M});var V=console.log,W="_immortal|",Y="undefined"!=typeof window,H=[p];try{Y&&window.indexedDB&&H.push(j)}catch(t){}try{Y&&window.localStorage&&H.push(D)}catch(t){}function J(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return r in t?t[r]:e}function K(t){var r=new Map,e=t.slice(),n=!0,o=!1,i=void 0;try{for(var u,c=function(){var t=u.value,n=0,o=!0,i=!1,c=void 0;try{for(var a,f=e[Symbol.iterator]();!(o=(a=f.next()).done);o=!0){var s=a.value;t===s&&(n+=1)}}catch(t){i=!0,c=t}finally{try{o||null==f.return||f.return()}finally{if(i)throw c}}n>0&&(r.set(t,n),e=e.filter(function(r){return r!==t}))},a=e[Symbol.iterator]();!(n=(u=a.next()).done);n=!0)c()}catch(t){o=!0,i=t}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}var Q=function(){function t(){var r=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:H;!function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,t),this.stores=[],this.onReady=z(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all(e.map(function(){var t=z(regeneratorRuntime.mark(function t(r){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if("object"!==B(r)){t.next=4;break}return t.abrupt("return",r);case 4:return t.prev=4,t.next=7,new r;case 7:return t.abrupt("return",t.sent);case 10:return t.prev=10,t.t0=t.catch(4),t.abrupt("return",null);case 13:case"end":return t.stop()}},t,null,[[4,10]])}));return function(r){return t.apply(this,arguments)}}()));case 2:t.t0=Boolean,r.stores=t.sent.filter(t.t0);case 4:case"end":return t.stop()}},t)}))()}return function(t,r,e){r&&U(t.prototype,r),e&&U(t,e)}(t,[{key:"get",value:function(){var t=z(regeneratorRuntime.mark(function t(r){var e,n,o,i,u,c,a,f,s,l,p,v,h,y=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=y.length>1&&void 0!==y[1]?y[1]:null,t.next=3,this.onReady;case 3:return n="".concat(W).concat(r),t.next=6,Promise.all(this.stores.map(function(){var t=z(regeneratorRuntime.mark(function t(r){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,r.get(n);case 3:return t.abrupt("return",t.sent);case 6:t.prev=6,t.t0=t.catch(0),V(t.t0);case 9:case"end":return t.stop()}},t,null,[[0,6]])}));return function(r){return t.apply(this,arguments)}}()));case 6:if(o=t.sent,(i=Array.from(K(o).entries())).sort(function(t,r){return t[1]<=r[1]}),c=J(i,0,[void 0,0]),a=F(c,2),f=a[0],s=a[1],l=J(i,1,[void 0,0]),p=F(l,2),v=p[0],h=p[1],void 0===(u=s>h||s===h&&void 0!==f?f:v)){t.next=18;break}return t.next=15,this.set(r,u);case 15:return t.abrupt("return",u);case 18:return t.next=20,this.remove(r);case 20:return t.abrupt("return",e);case 21:case"end":return t.stop()}},t,this)}));return function(r){return t.apply(this,arguments)}}()},{key:"set",value:function(){var t=z(regeneratorRuntime.mark(function t(r,e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.onReady;case 2:return r="".concat(W).concat(r),t.next=5,Promise.all(this.stores.map(function(){var t=z(regeneratorRuntime.mark(function t(n){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,n.set(r,e);case 3:t.next=8;break;case 5:t.prev=5,t.t0=t.catch(0),V(t.t0);case 8:case"end":return t.stop()}},t,null,[[0,5]])}));return function(r){return t.apply(this,arguments)}}()));case 5:return t.abrupt("return",e);case 6:case"end":return t.stop()}},t,this)}));return function(r,e){return t.apply(this,arguments)}}()},{key:"remove",value:function(){var t=z(regeneratorRuntime.mark(function t(r){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.onReady;case 2:return r="".concat(W).concat(r),t.next=5,Promise.all(this.stores.map(function(){var t=z(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.remove(r);case 3:t.next=8;break;case 5:t.prev=5,t.t0=t.catch(0),V(t.t0);case 8:case"end":return t.stop()}},t,null,[[0,5]])}));return function(r){return t.apply(this,arguments)}}()));case 5:case"end":return t.stop()}},t,this)}));return function(r){return t.apply(this,arguments)}}()}]),t}(),q=new Q}])});