@schibsted/account-sdk-browser 4.8.7-beta → 4.8.7-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- module.exports=function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=138)}([function(t,e,r){(function(e){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||Function("return this")()}).call(this,r(140))},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,r){var n=r(0),o=r(36).f,i=r(11),a=r(13),u=r(69),c=r(95),s=r(57);t.exports=function(t,e){var r,f,l,h,p,v=t.target,d=t.global,y=t.stat;if(r=d?n:y?n[v]||u(v,{}):(n[v]||{}).prototype)for(f in e){if(h=e[f],l=t.noTargetGet?(p=o(r,f))&&p.value:r[f],!s(d?f:v+(y?".":"#")+f,t.forced)&&void 0!==l){if(typeof h==typeof l)continue;c(h,l)}(t.sham||l&&l.sham)&&i(h,"sham",!0),a(r,f,h,t)}}},function(t,e,r){"use strict";var n,o=r(111),i=r(9),a=r(0),u=r(5),c=r(6),s=r(50),f=r(11),l=r(13),h=r(10).f,p=r(51),v=r(40),d=r(4),y=r(44),g=a.Int8Array,m=g&&g.prototype,b=a.Uint8ClampedArray,w=b&&b.prototype,x=g&&p(g),S=m&&p(m),E=Object.prototype,O=E.isPrototypeOf,A=d("toStringTag"),_=y("TYPED_ARRAY_TAG"),k=o&&!!v&&"Opera"!==s(a.opera),j=!1,L={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},P=function(t){return u(t)&&c(L,s(t))};for(n in L)a[n]||(k=!1);if((!k||"function"!=typeof x||x===Function.prototype)&&(x=function(){throw TypeError("Incorrect invocation")},k))for(n in L)a[n]&&v(a[n],x);if((!k||!S||S===E)&&(S=x.prototype,k))for(n in L)a[n]&&v(a[n].prototype,S);if(k&&p(w)!==S&&v(w,S),i&&!c(S,A))for(n in j=!0,h(S,A,{get:function(){return u(this)?this[_]:void 0}}),L)a[n]&&f(a[n],_,n);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:k,TYPED_ARRAY_TAG:j&&_,aTypedArray:function(t){if(P(t))return t;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(t){if(v){if(O.call(x,t))return t}else for(var e in L)if(c(L,n)){var r=a[e];if(r&&(t===r||O.call(r,t)))return t}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(t,e,r){if(i){if(r)for(var n in L){var o=a[n];o&&c(o.prototype,t)&&delete o.prototype[t]}S[t]&&!r||l(S,t,r?e:k&&m[t]||e)}},exportTypedArrayStaticMethod:function(t,e,r){var n,o;if(i){if(v){if(r)for(n in L)(o=a[n])&&c(o,t)&&delete o[t];if(x[t]&&!r)return;try{return l(x,t,r?e:k&&g[t]||e)}catch(t){}}for(n in L)!(o=a[n])||o[t]&&!r||l(o,t,e)}},isView:function(t){var e=s(t);return"DataView"===e||c(L,e)},isTypedArray:P,TypedArray:x,TypedArrayPrototype:S}},function(t,e,r){var n=r(0),o=r(71),i=r(6),a=r(44),u=r(75),c=r(99),s=o("wks"),f=n.Symbol,l=c?f:f&&f.withoutSetter||a;t.exports=function(t){return i(s,t)||(u&&i(f,t)?s[t]=f[t]:s[t]=l("Symbol."+t)),s[t]}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},function(t,e,r){var n=r(5);t.exports=function(t){if(!n(t))throw TypeError(String(t)+" is not an object");return t}},function(t,e,r){var n=r(19),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},function(t,e,r){var n=r(1);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,e,r){var n=r(9),o=r(93),i=r(7),a=r(31),u=Object.defineProperty;e.f=n?u:function(t,e,r){if(i(t),e=a(e,!0),i(r),o)try{return u(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},function(t,e,r){var n=r(9),o=r(10),i=r(30);t.exports=n?function(t,e,r){return o.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e,r){var n=r(22);t.exports=function(t){return Object(n(t))}},function(t,e,r){var n=r(0),o=r(11),i=r(6),a=r(69),u=r(70),c=r(17),s=c.get,f=c.enforce,l=String(String).split("String");(t.exports=function(t,e,r,u){var c=!!u&&!!u.unsafe,s=!!u&&!!u.enumerable,h=!!u&&!!u.noTargetGet;"function"==typeof r&&("string"!=typeof e||i(r,"name")||o(r,"name",e),f(r).source=l.join("string"==typeof e?e:"")),t!==n?(c?!h&&t[e]&&(s=!0):delete t[e],s?t[e]=r:o(t,e,r)):s?t[e]=r:a(e,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&s(this).source||u(this)}))},function(t,e,r){var n=r(33),o=r(43),i=r(12),a=r(8),u=r(98),c=[].push,s=function(t){var e=1==t,r=2==t,s=3==t,f=4==t,l=6==t,h=5==t||l;return function(p,v,d,y){for(var g,m,b=i(p),w=o(b),x=n(v,d,3),S=a(w.length),E=0,O=y||u,A=e?O(p,S):r?O(p,0):void 0;S>E;E++)if((h||E in w)&&(m=x(g=w[E],E,b),t))if(e)A[E]=m;else if(m)switch(t){case 3:return!0;case 5:return g;case 6:return E;case 2:c.call(A,g)}else if(f)return!1;return l?-1:s||f?f:A}};t.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6)}},function(t,e,r){"use strict";var n=r(16),o=r(109),i=r(48),a=r(17),u=r(83),c=a.set,s=a.getterFor("Array Iterator");t.exports=u(Array,"Array",(function(t,e){c(this,{type:"Array Iterator",target:n(t),index:0,kind:e})}),(function(){var t=s(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(t,e,r){var n=r(43),o=r(22);t.exports=function(t){return n(o(t))}},function(t,e,r){var n,o,i,a=r(141),u=r(0),c=r(5),s=r(11),f=r(6),l=r(55),h=r(45),p=u.WeakMap;if(a){var v=new p,d=v.get,y=v.has,g=v.set;n=function(t,e){return g.call(v,t,e),e},o=function(t){return d.call(v,t)||{}},i=function(t){return y.call(v,t)}}else{var m=l("state");h[m]=!0,n=function(t,e){return s(t,m,e),e},o=function(t){return f(t,m)?t[m]:{}},i=function(t){return f(t,m)}}t.exports={set:n,get:o,has:i,enforce:function(t){return i(t)?o(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!c(e)||(r=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}}},function(t,e,r){var n=r(10).f,o=r(6),i=r(4)("toStringTag");t.exports=function(t,e,r){t&&!o(t=r?t:t.prototype,i)&&n(t,i,{configurable:!0,value:e})}},function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},function(t,e,r){"use strict";var n=r(82).charAt,o=r(17),i=r(83),a=o.set,u=o.getterFor("String Iterator");i(String,"String",(function(t){a(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=u(this),r=e.string,o=e.index;return o>=r.length?{value:void 0,done:!0}:(t=n(r,o),e.index+=t.length,{value:t,done:!1})}))},function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,r){var n=r(96),o=r(0),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?i(n[t])||i(o[t]):n[t]&&n[t][e]||o[t]&&o[t][e]}},function(t,e,r){var n,o=r(7),i=r(101),a=r(72),u=r(45),c=r(102),s=r(68),f=r(55),l=f("IE_PROTO"),h=function(){},p=function(t){return"<script>"+t+"<\/script>"},v=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;v=n?function(t){t.write(p("")),t.close();var e=t.parentWindow.Object;return t=null,e}(n):((e=s("iframe")).style.display="none",c.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(p("document.F=Object")),t.close(),t.F);for(var r=a.length;r--;)delete v.prototype[a[r]];return v()};u[l]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(h.prototype=o(t),r=new h,h.prototype=null,r[l]=t):r=v(),void 0===e?r:i(r,e)}},function(t,e,r){var n=r(81),o=r(13),i=r(149);n||o(Object.prototype,"toString",i,{unsafe:!0})},function(t,e,r){"use strict";var n=r(2),o=r(0),i=r(23),a=r(37),u=r(9),c=r(75),s=r(99),f=r(1),l=r(6),h=r(58),p=r(5),v=r(7),d=r(12),y=r(16),g=r(31),m=r(30),b=r(24),w=r(47),x=r(38),S=r(191),E=r(73),O=r(36),A=r(10),_=r(54),k=r(11),j=r(13),L=r(71),P=r(55),T=r(45),I=r(44),R=r(4),U=r(124),N=r(52),C=r(18),M=r(17),F=r(14).forEach,D=P("hidden"),B=R("toPrimitive"),V=M.set,G=M.getterFor("Symbol"),q=Object.prototype,W=o.Symbol,Y=i("JSON","stringify"),$=O.f,z=A.f,H=S.f,K=_.f,J=L("symbols"),X=L("op-symbols"),Q=L("string-to-symbol-registry"),Z=L("symbol-to-string-registry"),tt=L("wks"),et=o.QObject,rt=!et||!et.prototype||!et.prototype.findChild,nt=u&&f((function(){return 7!=b(z({},"a",{get:function(){return z(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=$(q,e);n&&delete q[e],z(t,e,r),n&&t!==q&&z(q,e,n)}:z,ot=function(t,e){var r=J[t]=b(W.prototype);return V(r,{type:"Symbol",tag:t,description:e}),u||(r.description=e),r},it=s?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof W},at=function(t,e,r){t===q&&at(X,e,r),v(t);var n=g(e,!0);return v(r),l(J,n)?(r.enumerable?(l(t,D)&&t[D][n]&&(t[D][n]=!1),r=b(r,{enumerable:m(0,!1)})):(l(t,D)||z(t,D,m(1,{})),t[D][n]=!0),nt(t,n,r)):z(t,n,r)},ut=function(t,e){v(t);var r=y(e),n=w(r).concat(lt(r));return F(n,(function(e){u&&!ct.call(r,e)||at(t,e,r[e])})),t},ct=function(t){var e=g(t,!0),r=K.call(this,e);return!(this===q&&l(J,e)&&!l(X,e))&&(!(r||!l(this,e)||!l(J,e)||l(this,D)&&this[D][e])||r)},st=function(t,e){var r=y(t),n=g(e,!0);if(r!==q||!l(J,n)||l(X,n)){var o=$(r,n);return!o||!l(J,n)||l(r,D)&&r[D][n]||(o.enumerable=!0),o}},ft=function(t){var e=H(y(t)),r=[];return F(e,(function(t){l(J,t)||l(T,t)||r.push(t)})),r},lt=function(t){var e=t===q,r=H(e?X:y(t)),n=[];return F(r,(function(t){!l(J,t)||e&&!l(q,t)||n.push(J[t])})),n};(c||(j((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,e=I(t),r=function(t){this===q&&r.call(X,t),l(this,D)&&l(this[D],e)&&(this[D][e]=!1),nt(this,e,m(1,t))};return u&&rt&&nt(q,e,{configurable:!0,set:r}),ot(e,t)}).prototype,"toString",(function(){return G(this).tag})),j(W,"withoutSetter",(function(t){return ot(I(t),t)})),_.f=ct,A.f=at,O.f=st,x.f=S.f=ft,E.f=lt,U.f=function(t){return ot(R(t),t)},u&&(z(W.prototype,"description",{configurable:!0,get:function(){return G(this).description}}),a||j(q,"propertyIsEnumerable",ct,{unsafe:!0}))),n({global:!0,wrap:!0,forced:!c,sham:!c},{Symbol:W}),F(w(tt),(function(t){N(t)})),n({target:"Symbol",stat:!0,forced:!c},{for:function(t){var e=String(t);if(l(Q,e))return Q[e];var r=W(e);return Q[e]=r,Z[r]=e,r},keyFor:function(t){if(!it(t))throw TypeError(t+" is not a symbol");if(l(Z,t))return Z[t]},useSetter:function(){rt=!0},useSimple:function(){rt=!1}}),n({target:"Object",stat:!0,forced:!c,sham:!u},{create:function(t,e){return void 0===e?b(t):ut(b(t),e)},defineProperty:at,defineProperties:ut,getOwnPropertyDescriptor:st}),n({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:ft,getOwnPropertySymbols:lt}),n({target:"Object",stat:!0,forced:f((function(){E.f(1)}))},{getOwnPropertySymbols:function(t){return E.f(d(t))}}),Y)&&n({target:"JSON",stat:!0,forced:!c||f((function(){var t=W();return"[null]"!=Y([t])||"{}"!=Y({a:t})||"{}"!=Y(Object(t))}))},{stringify:function(t,e,r){for(var n,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(n=e,(p(e)||void 0!==t)&&!it(t))return h(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!it(e))return e}),o[1]=e,Y.apply(null,o)}});W.prototype[B]||k(W.prototype,B,W.prototype.valueOf),C(W,"Symbol"),T[D]=!0},function(t,e,r){"use strict";var n=r(2),o=r(9),i=r(0),a=r(6),u=r(5),c=r(10).f,s=r(95),f=i.Symbol;if(o&&"function"==typeof f&&(!("description"in f.prototype)||void 0!==f().description)){var l={},h=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof h?new f(t):void 0===t?f():f(t);return""===t&&(l[e]=!0),e};s(h,f);var p=h.prototype=f.prototype;p.constructor=h;var v=p.toString,d="Symbol(test)"==String(f("test")),y=/^Symbol\((.*)\)[^)]+$/;c(p,"description",{configurable:!0,get:function(){var t=u(this)?this.valueOf():this,e=v.call(t);if(a(l,t))return"";var r=d?e.slice(7,-1):e.replace(y,"$1");return""===r?void 0:r}}),n({global:!0,forced:!0},{Symbol:h})}},function(t,e,r){r(52)("iterator")},function(t,e,r){var n=r(0),o=r(125),i=r(15),a=r(11),u=r(4),c=u("iterator"),s=u("toStringTag"),f=i.values;for(var l in o){var h=n[l],p=h&&h.prototype;if(p){if(p[c]!==f)try{a(p,c,f)}catch(t){p[c]=f}if(p[s]||a(p,s,l),o[l])for(var v in i)if(p[v]!==i[v])try{a(p,v,i[v])}catch(t){p[v]=i[v]}}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,r){var n=r(5);t.exports=function(t,e){if(!n(t))return t;var r,o;if(e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!n(o=r.call(t)))return o;if(!e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,r){var n=r(2),o=r(12),i=r(47);n({target:"Object",stat:!0,forced:r(1)((function(){i(1)}))},{keys:function(t){return i(o(t))}})},function(t,e,r){var n=r(34);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 0:return function(){return t.call(e)};case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,e){t.exports=function(t,e,r){if(!(t instanceof e))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return t}},function(t,e,r){var n=r(9),o=r(54),i=r(30),a=r(16),u=r(31),c=r(6),s=r(93),f=Object.getOwnPropertyDescriptor;e.f=n?f:function(t,e){if(t=a(t),e=u(e,!0),s)try{return f(t,e)}catch(t){}if(c(t,e))return i(!o.f.call(t,e),t[e])}},function(t,e){t.exports=!1},function(t,e,r){var n=r(97),o=r(72).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},function(t,e,r){var n=r(19),o=Math.max,i=Math.min;t.exports=function(t,e){var r=n(t);return r<0?o(r+e,0):i(r,e)}},function(t,e,r){var n=r(7),o=r(144);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),e=r instanceof Array}catch(t){}return function(r,i){return n(r),o(i),e?t.call(r,i):r.__proto__=i,r}}():void 0)},function(t,e,r){var n=r(7),o=r(34),i=r(4)("species");t.exports=function(t,e){var r,a=n(t).constructor;return void 0===a||null==(r=n(a)[i])?e:o(r)}},function(t,e,r){var n=r(9),o=r(1),i=r(6),a=Object.defineProperty,u={},c=function(t){throw t};t.exports=function(t,e){if(i(u,t))return u[t];e||(e={});var r=[][t],s=!!i(e,"ACCESSORS")&&e.ACCESSORS,f=i(e,0)?e[0]:c,l=i(e,1)?e[1]:void 0;return u[t]=!!r&&!o((function(){if(s&&!n)return!0;var t={length:-1};s?a(t,1,{enumerable:!0,get:c}):t[1]=1,r.call(t,f,l)}))}},function(t,e,r){var n=r(1),o=r(21),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,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++r+n).toString(36)}},function(t,e){t.exports={}},function(t,e,r){"use strict";var n=r(9),o=r(0),i=r(57),a=r(13),u=r(6),c=r(21),s=r(78),f=r(31),l=r(1),h=r(24),p=r(38).f,v=r(36).f,d=r(10).f,y=r(145).trim,g=o.Number,m=g.prototype,b="Number"==c(h(m)),w=function(t){var e,r,n,o,i,a,u,c,s=f(t,!1);if("string"==typeof s&&s.length>2)if(43===(e=(s=y(s)).charCodeAt(0))||45===e){if(88===(r=s.charCodeAt(2))||120===r)return NaN}else if(48===e){switch(s.charCodeAt(1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+s}for(a=(i=s.slice(2)).length,u=0;u<a;u++)if((c=i.charCodeAt(u))<48||c>o)return NaN;return parseInt(i,n)}return+s};if(i("Number",!g(" 0o1")||!g("0b1")||g("+0x1"))){for(var x,S=function(t){var e=arguments.length<1?0:t,r=this;return r instanceof S&&(b?l((function(){m.valueOf.call(r)})):"Number"!=c(r))?s(new g(w(e)),r,S):w(e)},E=n?p(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),O=0;E.length>O;O++)u(g,x=E[O])&&!u(S,x)&&d(S,x,v(g,x));S.prototype=m,m.constructor=S,a(o,"Number",S)}},function(t,e,r){var n=r(97),o=r(72);t.exports=Object.keys||function(t){return n(t,o)}},function(t,e){t.exports={}},function(t,e,r){var n=r(50),o=r(48),i=r(4)("iterator");t.exports=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[n(t)]}},function(t,e,r){var n=r(81),o=r(21),i=r(4)("toStringTag"),a="Arguments"==o(function(){return arguments}());t.exports=n?o:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?r:a?o(e):"Object"==(n=o(e))&&"function"==typeof e.callee?"Arguments":n}},function(t,e,r){var n=r(6),o=r(12),i=r(55),a=r(108),u=i("IE_PROTO"),c=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=o(t),n(t,u)?t[u]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?c:null}},function(t,e,r){var n=r(96),o=r(6),i=r(124),a=r(10).f;t.exports=function(t){var e=n.Symbol||(n.Symbol={});o(e,t)||a(e,t,{value:i.f(t)})}},function(t,e,r){"use strict";var n=r(2),o=r(1),i=r(58),a=r(5),u=r(12),c=r(8),s=r(74),f=r(98),l=r(59),h=r(4),p=r(76),v=h("isConcatSpreadable"),d=p>=51||!o((function(){var t=[];return t[v]=!1,t.concat()[0]!==t})),y=l("concat"),g=function(t){if(!a(t))return!1;var e=t[v];return void 0!==e?!!e:i(t)};n({target:"Array",proto:!0,forced:!d||!y},{concat:function(t){var e,r,n,o,i,a=u(this),l=f(a,0),h=0;for(e=-1,n=arguments.length;e<n;e++)if(g(i=-1===e?a:arguments[e])){if(h+(o=c(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(r=0;r<o;r++,h++)r in i&&s(l,h,i[r])}else{if(h>=9007199254740991)throw TypeError("Maximum allowed index exceeded");s(l,h++,i)}return l.length=h,l}})},function(t,e,r){"use strict";var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!n.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:n},function(t,e,r){var n=r(71),o=r(44),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,e,r){var n=r(16),o=r(8),i=r(39),a=function(t){return function(e,r,a){var u,c=n(e),s=o(c.length),f=i(a,s);if(t&&r!=r){for(;s>f;)if((u=c[f++])!=u)return!0}else for(;s>f;f++)if((t||f in c)&&c[f]===r)return t||f||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},function(t,e,r){var n=r(1),o=/#|\.prototype\./,i=function(t,e){var r=u[a(t)];return r==s||r!=c&&("function"==typeof e?n(e):!!e)},a=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},u=i.data={},c=i.NATIVE="N",s=i.POLYFILL="P";t.exports=i},function(t,e,r){var n=r(21);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e,r){var n=r(1),o=r(4),i=r(76),a=o("species");t.exports=function(t){return i>=51||!n((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},function(t,e,r){"use strict";var n=r(2),o=r(43),i=r(16),a=r(79),u=[].join,c=o!=Object,s=a("join",",");n({target:"Array",proto:!0,forced:c||!s},{join:function(t){return u.call(i(this),void 0===t?",":t)}})},function(t,e,r){var n=r(4)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[n]=function(){return this},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},t(i)}catch(t){}return r}},function(t,e,r){var n=r(13);t.exports=function(t,e,r){for(var o in e)n(t,o,e[o],r);return t}},function(t,e,r){"use strict";var n=r(2),o=r(14).map,i=r(59),a=r(42),u=i("map"),c=a("map");n({target:"Array",proto:!0,forced:!u||!c},{map:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){r(52)("toPrimitive")},function(t,e,r){var n=r(11),o=r(190),i=r(4)("toPrimitive"),a=Date.prototype;i in a||n(a,i,o)},function(t,e,r){var n=r(9),o=r(10).f,i=Function.prototype,a=i.toString,u=/^\s*function ([^ (]*)/;n&&!("name"in i)&&o(i,"name",{configurable:!0,get:function(){try{return a.call(this).match(u)[1]}catch(t){return""}}})},function(t,e,r){"use strict";var n=r(2),o=r(92);n({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},function(t,e,r){var n=r(0),o=r(5),i=n.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},function(t,e,r){var n=r(0),o=r(11);t.exports=function(t,e){try{o(n,t,e)}catch(r){n[t]=e}return e}},function(t,e,r){var n=r(94),o=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(t){return o.call(t)}),t.exports=n.inspectSource},function(t,e,r){var n=r(37),o=r(94);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:n?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,r){"use strict";var n=r(31),o=r(10),i=r(30);t.exports=function(t,e,r){var a=n(e);a in t?o.f(t,a,i(0,r)):t[a]=r}},function(t,e,r){var n=r(1);t.exports=!!Object.getOwnPropertySymbols&&!n((function(){return!String(Symbol())}))},function(t,e,r){var n,o,i=r(0),a=r(77),u=i.process,c=u&&u.versions,s=c&&c.v8;s?o=(n=s.split("."))[0]+n[1]:a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(o=n[1]),t.exports=o&&+o},function(t,e,r){var n=r(23);t.exports=n("navigator","userAgent")||""},function(t,e,r){var n=r(5),o=r(40);t.exports=function(t,e,r){var i,a;return o&&"function"==typeof(i=e.constructor)&&i!==r&&n(a=i.prototype)&&a!==r.prototype&&o(t,a),t}},function(t,e,r){"use strict";var n=r(1);t.exports=function(t,e){var r=[][t];return!!r&&n((function(){r.call(null,e||function(){throw 1},1)}))}},function(t,e,r){var n=r(4),o=r(48),i=n("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||a[i]===t)}},function(t,e,r){var n={};n[r(4)("toStringTag")]="z",t.exports="[object z]"===String(n)},function(t,e,r){var n=r(19),o=r(22),i=function(t){return function(e,r){var i,a,u=String(o(e)),c=n(r),s=u.length;return c<0||c>=s?t?"":void 0:(i=u.charCodeAt(c))<55296||i>56319||c+1===s||(a=u.charCodeAt(c+1))<56320||a>57343?t?u.charAt(c):i:t?u.slice(c,c+2):a-56320+(i-55296<<10)+65536}};t.exports={codeAt:i(!1),charAt:i(!0)}},function(t,e,r){"use strict";var n=r(2),o=r(106),i=r(51),a=r(40),u=r(18),c=r(11),s=r(13),f=r(4),l=r(37),h=r(48),p=r(107),v=p.IteratorPrototype,d=p.BUGGY_SAFARI_ITERATORS,y=f("iterator"),g=function(){return this};t.exports=function(t,e,r,f,p,m,b){o(r,e,f);var w,x,S,E=function(t){if(t===p&&j)return j;if(!d&&t in _)return _[t];switch(t){case"keys":case"values":case"entries":return function(){return new r(this,t)}}return function(){return new r(this)}},O=e+" Iterator",A=!1,_=t.prototype,k=_[y]||_["@@iterator"]||p&&_[p],j=!d&&k||E(p),L="Array"==e&&_.entries||k;if(L&&(w=i(L.call(new t)),v!==Object.prototype&&w.next&&(l||i(w)===v||(a?a(w,v):"function"!=typeof w[y]&&c(w,y,g)),u(w,O,!0,!0),l&&(h[O]=g))),"values"==p&&k&&"values"!==k.name&&(A=!0,j=function(){return k.call(this)}),l&&!b||_[y]===j||c(_,y,j),h[e]=j,p)if(x={values:E("values"),keys:m?j:E("keys"),entries:E("entries")},b)for(S in x)(d||A||!(S in _))&&s(_,S,x[S]);else n({target:e,proto:!0,forced:d||A},x);return x}},function(t,e,r){"use strict";var n=r(23),o=r(10),i=r(4),a=r(9),u=i("species");t.exports=function(t){var e=n(t),r=o.f;a&&e&&!e[u]&&r(e,u,{configurable:!0,get:function(){return this}})}},function(t,e,r){"use strict";var n=r(13),o=r(7),i=r(1),a=r(116),u=RegExp.prototype,c=u.toString,s=i((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),f="toString"!=c.name;(s||f)&&n(RegExp.prototype,"toString",(function(){var t=o(this),e=String(t.source),r=t.flags;return"/"+e+"/"+String(void 0===r&&t instanceof RegExp&&!("flags"in u)?a.call(t):r)}),{unsafe:!0})},function(t,e,r){var n=r(7),o=r(80),i=r(8),a=r(33),u=r(49),c=r(105),s=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,e,r,f,l){var h,p,v,d,y,g,m,b=a(e,r,f?2:1);if(l)h=t;else{if("function"!=typeof(p=u(t)))throw TypeError("Target is not iterable");if(o(p)){for(v=0,d=i(t.length);d>v;v++)if((y=f?b(n(m=t[v])[0],m[1]):b(t[v]))&&y instanceof s)return y;return new s(!1)}h=p.call(t)}for(g=h.next;!(m=g.call(h)).done;)if("object"==typeof(y=c(h,b,m.value,f))&&y&&y instanceof s)return y;return new s(!1)}).stop=function(t){return new s(!0,t)}},function(t,e,r){r(2)({target:"Object",stat:!0},{setPrototypeOf:r(40)})},function(t,e,r){var n=r(2),o=r(1),i=r(12),a=r(51),u=r(108);n({target:"Object",stat:!0,forced:o((function(){a(1)})),sham:!u},{getPrototypeOf:function(t){return a(i(t))}})},function(t,e,r){var n=r(0),o=r(125),i=r(192),a=r(11);for(var u in o){var c=n[u],s=c&&c.prototype;if(s&&s.forEach!==i)try{a(s,"forEach",i)}catch(t){s.forEach=i}}},function(t,e,r){"use strict";var n=r(2),o=r(5),i=r(58),a=r(39),u=r(8),c=r(16),s=r(74),f=r(4),l=r(59),h=r(42),p=l("slice"),v=h("slice",{ACCESSORS:!0,0:0,1:2}),d=f("species"),y=[].slice,g=Math.max;n({target:"Array",proto:!0,forced:!p||!v},{slice:function(t,e){var r,n,f,l=c(this),h=u(l.length),p=a(t,h),v=a(void 0===e?h:e,h);if(i(l)&&("function"!=typeof(r=l.constructor)||r!==Array&&!i(r.prototype)?o(r)&&null===(r=r[d])&&(r=void 0):r=void 0,r===Array||void 0===r))return y.call(l,p,v);for(n=new(void 0===r?Array:r)(g(v-p,0)),f=0;p<v;p++,f++)p in l&&s(n,f,l[p]);return n.length=f,n}})},function(t,e,r){"use strict";r(15);var n=r(2),o=r(23),i=r(131),a=r(13),u=r(62),c=r(18),s=r(106),f=r(17),l=r(35),h=r(6),p=r(33),v=r(50),d=r(7),y=r(5),g=r(24),m=r(30),b=r(194),w=r(49),x=r(4),S=o("fetch"),E=o("Headers"),O=x("iterator"),A=f.set,_=f.getterFor("URLSearchParams"),k=f.getterFor("URLSearchParamsIterator"),j=/\+/g,L=Array(4),P=function(t){return L[t-1]||(L[t-1]=RegExp("((?:%[\\da-f]{2}){"+t+"})","gi"))},T=function(t){try{return decodeURIComponent(t)}catch(e){return t}},I=function(t){var e=t.replace(j," "),r=4;try{return decodeURIComponent(e)}catch(t){for(;r;)e=e.replace(P(r--),T);return e}},R=/[!'()~]|%20/g,U={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},N=function(t){return U[t]},C=function(t){return encodeURIComponent(t).replace(R,N)},M=function(t,e){if(e)for(var r,n,o=e.split("&"),i=0;i<o.length;)(r=o[i++]).length&&(n=r.split("="),t.push({key:I(n.shift()),value:I(n.join("="))}))},F=function(t){this.entries.length=0,M(this.entries,t)},D=function(t,e){if(t<e)throw TypeError("Not enough arguments")},B=s((function(t,e){A(this,{type:"URLSearchParamsIterator",iterator:b(_(t).entries),kind:e})}),"Iterator",(function(){var t=k(this),e=t.kind,r=t.iterator.next(),n=r.value;return r.done||(r.value="keys"===e?n.key:"values"===e?n.value:[n.key,n.value]),r})),V=function(){l(this,V,"URLSearchParams");var t,e,r,n,o,i,a,u,c,s=arguments.length>0?arguments[0]:void 0,f=this,p=[];if(A(f,{type:"URLSearchParams",entries:p,updateURL:function(){},updateSearchParams:F}),void 0!==s)if(y(s))if("function"==typeof(t=w(s)))for(r=(e=t.call(s)).next;!(n=r.call(e)).done;){if((a=(i=(o=b(d(n.value))).next).call(o)).done||(u=i.call(o)).done||!i.call(o).done)throw TypeError("Expected sequence with length 2");p.push({key:a.value+"",value:u.value+""})}else for(c in s)h(s,c)&&p.push({key:c,value:s[c]+""});else M(p,"string"==typeof s?"?"===s.charAt(0)?s.slice(1):s:s+"")},G=V.prototype;u(G,{append:function(t,e){D(arguments.length,2);var r=_(this);r.entries.push({key:t+"",value:e+""}),r.updateURL()},delete:function(t){D(arguments.length,1);for(var e=_(this),r=e.entries,n=t+"",o=0;o<r.length;)r[o].key===n?r.splice(o,1):o++;e.updateURL()},get:function(t){D(arguments.length,1);for(var e=_(this).entries,r=t+"",n=0;n<e.length;n++)if(e[n].key===r)return e[n].value;return null},getAll:function(t){D(arguments.length,1);for(var e=_(this).entries,r=t+"",n=[],o=0;o<e.length;o++)e[o].key===r&&n.push(e[o].value);return n},has:function(t){D(arguments.length,1);for(var e=_(this).entries,r=t+"",n=0;n<e.length;)if(e[n++].key===r)return!0;return!1},set:function(t,e){D(arguments.length,1);for(var r,n=_(this),o=n.entries,i=!1,a=t+"",u=e+"",c=0;c<o.length;c++)(r=o[c]).key===a&&(i?o.splice(c--,1):(i=!0,r.value=u));i||o.push({key:a,value:u}),n.updateURL()},sort:function(){var t,e,r,n=_(this),o=n.entries,i=o.slice();for(o.length=0,r=0;r<i.length;r++){for(t=i[r],e=0;e<r;e++)if(o[e].key>t.key){o.splice(e,0,t);break}e===r&&o.push(t)}n.updateURL()},forEach:function(t){for(var e,r=_(this).entries,n=p(t,arguments.length>1?arguments[1]:void 0,3),o=0;o<r.length;)n((e=r[o++]).value,e.key,this)},keys:function(){return new B(this,"keys")},values:function(){return new B(this,"values")},entries:function(){return new B(this,"entries")}},{enumerable:!0}),a(G,O,G.entries),a(G,"toString",(function(){for(var t,e=_(this).entries,r=[],n=0;n<e.length;)t=e[n++],r.push(C(t.key)+"="+C(t.value));return r.join("&")}),{enumerable:!0}),c(V,"URLSearchParams"),n({global:!0,forced:!i},{URLSearchParams:V}),i||"function"!=typeof S||"function"!=typeof E||n({global:!0,enumerable:!0,forced:!0},{fetch:function(t){var e,r,n,o=[t];return arguments.length>1&&(y(e=arguments[1])&&(r=e.body,"URLSearchParams"===v(r)&&((n=e.headers?new E(e.headers):new E).has("content-type")||n.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),e=g(e,{body:m(0,String(r)),headers:m(0,n)}))),o.push(e)),S.apply(this,o)}}),t.exports={URLSearchParams:V,getState:_}},function(t,e,r){"use strict";var n,o,i=r(116),a=r(202),u=RegExp.prototype.exec,c=String.prototype.replace,s=u,f=(n=/a/,o=/b*/g,u.call(n,"a"),u.call(o,"a"),0!==n.lastIndex||0!==o.lastIndex),l=a.UNSUPPORTED_Y||a.BROKEN_CARET,h=void 0!==/()??/.exec("")[1];(f||h||l)&&(s=function(t){var e,r,n,o,a=this,s=l&&a.sticky,p=i.call(a),v=a.source,d=0,y=t;return s&&(-1===(p=p.replace("y","")).indexOf("g")&&(p+="g"),y=String(t).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==t[a.lastIndex-1])&&(v="(?: "+v+")",y=" "+y,d++),r=new RegExp("^(?:"+v+")",p)),h&&(r=new RegExp("^"+v+"$(?!\\s)",p)),f&&(e=a.lastIndex),n=u.call(s?r:a,y),s?n?(n.input=n.input.slice(d),n[0]=n[0].slice(d),n.index=a.lastIndex,a.lastIndex+=n[0].length):a.lastIndex=0:f&&n&&(a.lastIndex=a.global?n.index+n[0].length:e),h&&n&&n.length>1&&c.call(n[0],r,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(n[o]=void 0)})),n}),t.exports=s},function(t,e,r){var n=r(9),o=r(1),i=r(68);t.exports=!n&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,e,r){var n=r(0),o=r(69),i=n["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,e,r){var n=r(6),o=r(142),i=r(36),a=r(10);t.exports=function(t,e){for(var r=o(e),u=a.f,c=i.f,s=0;s<r.length;s++){var f=r[s];n(t,f)||u(t,f,c(e,f))}}},function(t,e,r){var n=r(0);t.exports=n},function(t,e,r){var n=r(6),o=r(16),i=r(56).indexOf,a=r(45);t.exports=function(t,e){var r,u=o(t),c=0,s=[];for(r in u)!n(a,r)&&n(u,r)&&s.push(r);for(;e.length>c;)n(u,r=e[c++])&&(~i(s,r)||s.push(r));return s}},function(t,e,r){var n=r(5),o=r(58),i=r(4)("species");t.exports=function(t,e){var r;return o(t)&&("function"!=typeof(r=t.constructor)||r!==Array&&!o(r.prototype)?n(r)&&null===(r=r[i])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===e?0:e)}},function(t,e,r){var n=r(75);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,r){r(2)({target:"Number",stat:!0},{isInteger:r(143)})},function(t,e,r){var n=r(9),o=r(10),i=r(7),a=r(47);t.exports=n?Object.defineProperties:function(t,e){i(t);for(var r,n=a(e),u=n.length,c=0;u>c;)o.f(t,r=n[c++],e[r]);return t}},function(t,e,r){var n=r(23);t.exports=n("document","documentElement")},function(t,e,r){var n=r(2),o=r(104);n({target:"Array",stat:!0,forced:!r(61)((function(t){Array.from(t)}))},{from:o})},function(t,e,r){"use strict";var n=r(33),o=r(12),i=r(105),a=r(80),u=r(8),c=r(74),s=r(49);t.exports=function(t){var e,r,f,l,h,p,v=o(t),d="function"==typeof this?this:Array,y=arguments.length,g=y>1?arguments[1]:void 0,m=void 0!==g,b=s(v),w=0;if(m&&(g=n(g,y>2?arguments[2]:void 0,2)),null==b||d==Array&&a(b))for(r=new d(e=u(v.length));e>w;w++)p=m?g(v[w],w):v[w],c(r,w,p);else for(h=(l=b.call(v)).next,r=new d;!(f=h.call(l)).done;w++)p=m?i(l,g,[f.value,w],!0):f.value,c(r,w,p);return r.length=w,r}},function(t,e,r){var n=r(7);t.exports=function(t,e,r,o){try{return o?e(n(r)[0],r[1]):e(r)}catch(e){var i=t.return;throw void 0!==i&&n(i.call(t)),e}}},function(t,e,r){"use strict";var n=r(107).IteratorPrototype,o=r(24),i=r(30),a=r(18),u=r(48),c=function(){return this};t.exports=function(t,e,r){var s=e+" Iterator";return t.prototype=o(n,{next:i(1,r)}),a(t,s,!1,!0),u[s]=c,t}},function(t,e,r){"use strict";var n,o,i,a=r(51),u=r(11),c=r(6),s=r(4),f=r(37),l=s("iterator"),h=!1;[].keys&&("next"in(i=[].keys())?(o=a(a(i)))!==Object.prototype&&(n=o):h=!0),null==n&&(n={}),f||c(n,l)||u(n,l,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:h}},function(t,e,r){var n=r(1);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,e,r){var n=r(4),o=r(24),i=r(10),a=n("unscopables"),u=Array.prototype;null==u[a]&&i.f(u,a,{configurable:!0,value:o(null)}),t.exports=function(t){u[a][t]=!0}},function(t,e,r){"use strict";var n=r(0),o=r(9),i=r(111),a=r(11),u=r(62),c=r(1),s=r(35),f=r(19),l=r(8),h=r(112),p=r(148),v=r(51),d=r(40),y=r(38).f,g=r(10).f,m=r(113),b=r(18),w=r(17),x=w.get,S=w.set,E=n.ArrayBuffer,O=E,A=n.DataView,_=A&&A.prototype,k=Object.prototype,j=n.RangeError,L=p.pack,P=p.unpack,T=function(t){return[255&t]},I=function(t){return[255&t,t>>8&255]},R=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},U=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},N=function(t){return L(t,23,4)},C=function(t){return L(t,52,8)},M=function(t,e){g(t.prototype,e,{get:function(){return x(this)[e]}})},F=function(t,e,r,n){var o=h(r),i=x(t);if(o+e>i.byteLength)throw j("Wrong index");var a=x(i.buffer).bytes,u=o+i.byteOffset,c=a.slice(u,u+e);return n?c:c.reverse()},D=function(t,e,r,n,o,i){var a=h(r),u=x(t);if(a+e>u.byteLength)throw j("Wrong index");for(var c=x(u.buffer).bytes,s=a+u.byteOffset,f=n(+o),l=0;l<e;l++)c[s+l]=f[i?l:e-l-1]};if(i){if(!c((function(){E(1)}))||!c((function(){new E(-1)}))||c((function(){return new E,new E(1.5),new E(NaN),"ArrayBuffer"!=E.name}))){for(var B,V=(O=function(t){return s(this,O),new E(h(t))}).prototype=E.prototype,G=y(E),q=0;G.length>q;)(B=G[q++])in O||a(O,B,E[B]);V.constructor=O}d&&v(_)!==k&&d(_,k);var W=new A(new O(2)),Y=_.setInt8;W.setInt8(0,2147483648),W.setInt8(1,2147483649),!W.getInt8(0)&&W.getInt8(1)||u(_,{setInt8:function(t,e){Y.call(this,t,e<<24>>24)},setUint8:function(t,e){Y.call(this,t,e<<24>>24)}},{unsafe:!0})}else O=function(t){s(this,O,"ArrayBuffer");var e=h(t);S(this,{bytes:m.call(new Array(e),0),byteLength:e}),o||(this.byteLength=e)},A=function(t,e,r){s(this,A,"DataView"),s(t,O,"DataView");var n=x(t).byteLength,i=f(e);if(i<0||i>n)throw j("Wrong offset");if(i+(r=void 0===r?n-i:l(r))>n)throw j("Wrong length");S(this,{buffer:t,byteLength:r,byteOffset:i}),o||(this.buffer=t,this.byteLength=r,this.byteOffset=i)},o&&(M(O,"byteLength"),M(A,"buffer"),M(A,"byteLength"),M(A,"byteOffset")),u(A.prototype,{getInt8:function(t){return F(this,1,t)[0]<<24>>24},getUint8:function(t){return F(this,1,t)[0]},getInt16:function(t){var e=F(this,2,t,arguments.length>1?arguments[1]:void 0);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=F(this,2,t,arguments.length>1?arguments[1]:void 0);return e[1]<<8|e[0]},getInt32:function(t){return U(F(this,4,t,arguments.length>1?arguments[1]:void 0))},getUint32:function(t){return U(F(this,4,t,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(t){return P(F(this,4,t,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(t){return P(F(this,8,t,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(t,e){D(this,1,t,T,e)},setUint8:function(t,e){D(this,1,t,T,e)},setInt16:function(t,e){D(this,2,t,I,e,arguments.length>2?arguments[2]:void 0)},setUint16:function(t,e){D(this,2,t,I,e,arguments.length>2?arguments[2]:void 0)},setInt32:function(t,e){D(this,4,t,R,e,arguments.length>2?arguments[2]:void 0)},setUint32:function(t,e){D(this,4,t,R,e,arguments.length>2?arguments[2]:void 0)},setFloat32:function(t,e){D(this,4,t,N,e,arguments.length>2?arguments[2]:void 0)},setFloat64:function(t,e){D(this,8,t,C,e,arguments.length>2?arguments[2]:void 0)}});b(O,"ArrayBuffer"),b(A,"DataView"),t.exports={ArrayBuffer:O,DataView:A}},function(t,e){t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(t,e,r){var n=r(19),o=r(8);t.exports=function(t){if(void 0===t)return 0;var e=n(t),r=o(e);if(e!==r)throw RangeError("Wrong length or index");return r}},function(t,e,r){"use strict";var n=r(12),o=r(39),i=r(8);t.exports=function(t){for(var e=n(this),r=i(e.length),a=arguments.length,u=o(a>1?arguments[1]:void 0,r),c=a>2?arguments[2]:void 0,s=void 0===c?r:o(c,r);s>u;)e[u++]=t;return e}},function(t,e,r){var n=r(153);t.exports=function(t,e){var r=n(t);if(r%e)throw RangeError("Wrong offset");return r}},function(t,e,r){var n=r(34),o=r(12),i=r(43),a=r(8),u=function(t){return function(e,r,u,c){n(r);var s=o(e),f=i(s),l=a(s.length),h=t?l-1:0,p=t?-1:1;if(u<2)for(;;){if(h in f){c=f[h],h+=p;break}if(h+=p,t?h<0:l<=h)throw TypeError("Reduce of empty array with no initial value")}for(;t?h>=0:l>h;h+=p)h in f&&(c=r(c,f[h],h,s));return c}};t.exports={left:u(!1),right:u(!0)}},function(t,e,r){"use strict";var n=r(7);t.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,r){"use strict";var n,o,i,a,u=r(2),c=r(37),s=r(0),f=r(23),l=r(184),h=r(13),p=r(62),v=r(18),d=r(84),y=r(5),g=r(34),m=r(35),b=r(21),w=r(70),x=r(86),S=r(61),E=r(41),O=r(118).set,A=r(185),_=r(186),k=r(187),j=r(120),L=r(188),P=r(17),T=r(57),I=r(4),R=r(76),U=I("species"),N="Promise",C=P.get,M=P.set,F=P.getterFor(N),D=l,B=s.TypeError,V=s.document,G=s.process,q=f("fetch"),W=j.f,Y=W,$="process"==b(G),z=!!(V&&V.createEvent&&s.dispatchEvent),H=T(N,(function(){if(!(w(D)!==String(D))){if(66===R)return!0;if(!$&&"function"!=typeof PromiseRejectionEvent)return!0}if(c&&!D.prototype.finally)return!0;if(R>=51&&/native code/.test(D))return!1;var t=D.resolve(1),e=function(t){t((function(){}),(function(){}))};return(t.constructor={})[U]=e,!(t.then((function(){}))instanceof e)})),K=H||!S((function(t){D.all(t).catch((function(){}))})),J=function(t){var e;return!(!y(t)||"function"!=typeof(e=t.then))&&e},X=function(t,e,r){if(!e.notified){e.notified=!0;var n=e.reactions;A((function(){for(var o=e.value,i=1==e.state,a=0;n.length>a;){var u,c,s,f=n[a++],l=i?f.ok:f.fail,h=f.resolve,p=f.reject,v=f.domain;try{l?(i||(2===e.rejection&&et(t,e),e.rejection=1),!0===l?u=o:(v&&v.enter(),u=l(o),v&&(v.exit(),s=!0)),u===f.promise?p(B("Promise-chain cycle")):(c=J(u))?c.call(u,h,p):h(u)):p(o)}catch(t){v&&!s&&v.exit(),p(t)}}e.reactions=[],e.notified=!1,r&&!e.rejection&&Z(t,e)}))}},Q=function(t,e,r){var n,o;z?((n=V.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),s.dispatchEvent(n)):n={promise:e,reason:r},(o=s["on"+t])?o(n):"unhandledrejection"===t&&k("Unhandled promise rejection",r)},Z=function(t,e){O.call(s,(function(){var r,n=e.value;if(tt(e)&&(r=L((function(){$?G.emit("unhandledRejection",n,t):Q("unhandledrejection",t,n)})),e.rejection=$||tt(e)?2:1,r.error))throw r.value}))},tt=function(t){return 1!==t.rejection&&!t.parent},et=function(t,e){O.call(s,(function(){$?G.emit("rejectionHandled",t):Q("rejectionhandled",t,e.value)}))},rt=function(t,e,r,n){return function(o){t(e,r,o,n)}},nt=function(t,e,r,n){e.done||(e.done=!0,n&&(e=n),e.value=r,e.state=2,X(t,e,!0))},ot=function(t,e,r,n){if(!e.done){e.done=!0,n&&(e=n);try{if(t===r)throw B("Promise can't be resolved itself");var o=J(r);o?A((function(){var n={done:!1};try{o.call(r,rt(ot,t,n,e),rt(nt,t,n,e))}catch(r){nt(t,n,r,e)}})):(e.value=r,e.state=1,X(t,e,!1))}catch(r){nt(t,{done:!1},r,e)}}};H&&(D=function(t){m(this,D,N),g(t),n.call(this);var e=C(this);try{t(rt(ot,this,e),rt(nt,this,e))}catch(t){nt(this,e,t)}},(n=function(t){M(this,{type:N,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=p(D.prototype,{then:function(t,e){var r=F(this),n=W(E(this,D));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=$?G.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&X(this,r,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new n,e=C(t);this.promise=t,this.resolve=rt(ot,t,e),this.reject=rt(nt,t,e)},j.f=W=function(t){return t===D||t===i?new o(t):Y(t)},c||"function"!=typeof l||(a=l.prototype.then,h(l.prototype,"then",(function(t,e){var r=this;return new D((function(t,e){a.call(r,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof q&&u({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return _(D,q.apply(s,arguments))}}))),u({global:!0,wrap:!0,forced:H},{Promise:D}),v(D,N,!1,!0),d(N),i=f(N),u({target:N,stat:!0,forced:H},{reject:function(t){var e=W(this);return e.reject.call(void 0,t),e.promise}}),u({target:N,stat:!0,forced:c||H},{resolve:function(t){return _(c&&this===i?D:this,t)}}),u({target:N,stat:!0,forced:K},{all:function(t){var e=this,r=W(e),n=r.resolve,o=r.reject,i=L((function(){var r=g(e.resolve),i=[],a=0,u=1;x(t,(function(t){var c=a++,s=!1;i.push(void 0),u++,r.call(e,t).then((function(t){s||(s=!0,i[c]=t,--u||n(i))}),o)})),--u||n(i)}));return i.error&&o(i.value),r.promise},race:function(t){var e=this,r=W(e),n=r.reject,o=L((function(){var o=g(e.resolve);x(t,(function(t){o.call(e,t).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}})},function(t,e,r){var n,o,i,a=r(0),u=r(1),c=r(21),s=r(33),f=r(102),l=r(68),h=r(119),p=a.location,v=a.setImmediate,d=a.clearImmediate,y=a.process,g=a.MessageChannel,m=a.Dispatch,b=0,w={},x=function(t){if(w.hasOwnProperty(t)){var e=w[t];delete w[t],e()}},S=function(t){return function(){x(t)}},E=function(t){x(t.data)},O=function(t){a.postMessage(t+"",p.protocol+"//"+p.host)};v&&d||(v=function(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return w[++b]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},n(b),b},d=function(t){delete w[t]},"process"==c(y)?n=function(t){y.nextTick(S(t))}:m&&m.now?n=function(t){m.now(S(t))}:g&&!h?(i=(o=new g).port2,o.port1.onmessage=E,n=s(i.postMessage,i,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||u(O)||"file:"===p.protocol?n="onreadystatechange"in l("script")?function(t){f.appendChild(l("script")).onreadystatechange=function(){f.removeChild(this),x(t)}}:function(t){setTimeout(S(t),0)}:(n=O,a.addEventListener("message",E,!1))),t.exports={set:v,clear:d}},function(t,e,r){var n=r(77);t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(n)},function(t,e,r){"use strict";var n=r(34),o=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n})),this.resolve=n(e),this.reject=n(r)};t.exports.f=function(t){return new o(t)}},function(t,e,r){var n=r(2),o=r(122);n({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},function(t,e,r){"use strict";var n=r(9),o=r(1),i=r(47),a=r(73),u=r(54),c=r(12),s=r(43),f=Object.assign,l=Object.defineProperty;t.exports=!f||o((function(){if(n&&1!==f({b:1},f(l({},"a",{enumerable:!0,get:function(){l(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol();return t[r]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=f({},t)[r]||"abcdefghijklmnopqrst"!=i(f({},e)).join("")}))?function(t,e){for(var r=c(t),o=arguments.length,f=1,l=a.f,h=u.f;o>f;)for(var p,v=s(arguments[f++]),d=l?i(v).concat(l(v)):i(v),y=d.length,g=0;y>g;)p=d[g++],n&&!h.call(v,p)||(r[p]=v[p]);return r}:f},function(t,e,r){var n=r(2),o=r(23),i=r(34),a=r(7),u=r(5),c=r(24),s=r(189),f=r(1),l=o("Reflect","construct"),h=f((function(){function t(){}return!(l((function(){}),[],t)instanceof t)})),p=!f((function(){l((function(){}))})),v=h||p;n({target:"Reflect",stat:!0,forced:v,sham:v},{construct:function(t,e){i(t),a(e);var r=arguments.length<3?t:i(arguments[2]);if(p&&!h)return l(t,e,r);if(t==r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(s.apply(t,n))}var o=r.prototype,f=c(u(o)?o:Object.prototype),v=Function.apply.call(t,f,e);return u(v)?v:f}})},function(t,e,r){var n=r(4);e.f=n},function(t,e){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,e,r){r(52)("asyncIterator")},function(t,e,r){r(52)("toStringTag")},function(t,e,r){var n=r(0);r(18)(n.JSON,"JSON",!0)},function(t,e,r){r(18)(Math,"Math",!0)},function(t,e,r){"use strict";r(20);var n,o=r(2),i=r(9),a=r(131),u=r(0),c=r(101),s=r(13),f=r(35),l=r(6),h=r(122),p=r(104),v=r(82).codeAt,d=r(193),y=r(18),g=r(91),m=r(17),b=u.URL,w=g.URLSearchParams,x=g.getState,S=m.set,E=m.getterFor("URL"),O=Math.floor,A=Math.pow,_=/[A-Za-z]/,k=/[\d+-.A-Za-z]/,j=/\d/,L=/^(0x|0X)/,P=/^[0-7]+$/,T=/^\d+$/,I=/^[\dA-Fa-f]+$/,R=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,U=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,N=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,C=/[\u0009\u000A\u000D]/g,M=function(t,e){var r,n,o;if("["==e.charAt(0)){if("]"!=e.charAt(e.length-1))return"Invalid host";if(!(r=D(e.slice(1,-1))))return"Invalid host";t.host=r}else if(z(t)){if(e=d(e),R.test(e))return"Invalid host";if(null===(r=F(e)))return"Invalid host";t.host=r}else{if(U.test(e))return"Invalid host";for(r="",n=p(e),o=0;o<n.length;o++)r+=Y(n[o],V);t.host=r}},F=function(t){var e,r,n,o,i,a,u,c=t.split(".");if(c.length&&""==c[c.length-1]&&c.pop(),(e=c.length)>4)return t;for(r=[],n=0;n<e;n++){if(""==(o=c[n]))return t;if(i=10,o.length>1&&"0"==o.charAt(0)&&(i=L.test(o)?16:8,o=o.slice(8==i?1:2)),""===o)a=0;else{if(!(10==i?T:8==i?P:I).test(o))return t;a=parseInt(o,i)}r.push(a)}for(n=0;n<e;n++)if(a=r[n],n==e-1){if(a>=A(256,5-e))return null}else if(a>255)return null;for(u=r.pop(),n=0;n<r.length;n++)u+=r[n]*A(256,3-n);return u},D=function(t){var e,r,n,o,i,a,u,c=[0,0,0,0,0,0,0,0],s=0,f=null,l=0,h=function(){return t.charAt(l)};if(":"==h()){if(":"!=t.charAt(1))return;l+=2,f=++s}for(;h();){if(8==s)return;if(":"!=h()){for(e=r=0;r<4&&I.test(h());)e=16*e+parseInt(h(),16),l++,r++;if("."==h()){if(0==r)return;if(l-=r,s>6)return;for(n=0;h();){if(o=null,n>0){if(!("."==h()&&n<4))return;l++}if(!j.test(h()))return;for(;j.test(h());){if(i=parseInt(h(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;l++}c[s]=256*c[s]+o,2!=++n&&4!=n||s++}if(4!=n)return;break}if(":"==h()){if(l++,!h())return}else if(h())return;c[s++]=e}else{if(null!==f)return;l++,f=++s}}if(null!==f)for(a=s-f,s=7;0!=s&&a>0;)u=c[s],c[s--]=c[f+a-1],c[f+--a]=u;else if(8!=s)return;return c},B=function(t){var e,r,n,o;if("number"==typeof t){for(e=[],r=0;r<4;r++)e.unshift(t%256),t=O(t/256);return e.join(".")}if("object"==typeof t){for(e="",n=function(t){for(var e=null,r=1,n=null,o=0,i=0;i<8;i++)0!==t[i]?(o>r&&(e=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r&&(e=n,r=o),e}(t),r=0;r<8;r++)o&&0===t[r]||(o&&(o=!1),n===r?(e+=r?":":"::",o=!0):(e+=t[r].toString(16),r<7&&(e+=":")));return"["+e+"]"}return t},V={},G=h({},V,{" ":1,'"':1,"<":1,">":1,"`":1}),q=h({},G,{"#":1,"?":1,"{":1,"}":1}),W=h({},q,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Y=function(t,e){var r=v(t,0);return r>32&&r<127&&!l(e,t)?t:encodeURIComponent(t)},$={ftp:21,file:null,http:80,https:443,ws:80,wss:443},z=function(t){return l($,t.scheme)},H=function(t){return""!=t.username||""!=t.password},K=function(t){return!t.host||t.cannotBeABaseURL||"file"==t.scheme},J=function(t,e){var r;return 2==t.length&&_.test(t.charAt(0))&&(":"==(r=t.charAt(1))||!e&&"|"==r)},X=function(t){var e;return t.length>1&&J(t.slice(0,2))&&(2==t.length||"/"===(e=t.charAt(2))||"\\"===e||"?"===e||"#"===e)},Q=function(t){var e=t.path,r=e.length;!r||"file"==t.scheme&&1==r&&J(e[0],!0)||e.pop()},Z=function(t){return"."===t||"%2e"===t.toLowerCase()},tt={},et={},rt={},nt={},ot={},it={},at={},ut={},ct={},st={},ft={},lt={},ht={},pt={},vt={},dt={},yt={},gt={},mt={},bt={},wt={},xt=function(t,e,r,o){var i,a,u,c,s,f=r||tt,h=0,v="",d=!1,y=!1,g=!1;for(r||(t.scheme="",t.username="",t.password="",t.host=null,t.port=null,t.path=[],t.query=null,t.fragment=null,t.cannotBeABaseURL=!1,e=e.replace(N,"")),e=e.replace(C,""),i=p(e);h<=i.length;){switch(a=i[h],f){case tt:if(!a||!_.test(a)){if(r)return"Invalid scheme";f=rt;continue}v+=a.toLowerCase(),f=et;break;case et:if(a&&(k.test(a)||"+"==a||"-"==a||"."==a))v+=a.toLowerCase();else{if(":"!=a){if(r)return"Invalid scheme";v="",f=rt,h=0;continue}if(r&&(z(t)!=l($,v)||"file"==v&&(H(t)||null!==t.port)||"file"==t.scheme&&!t.host))return;if(t.scheme=v,r)return void(z(t)&&$[t.scheme]==t.port&&(t.port=null));v="","file"==t.scheme?f=pt:z(t)&&o&&o.scheme==t.scheme?f=nt:z(t)?f=ut:"/"==i[h+1]?(f=ot,h++):(t.cannotBeABaseURL=!0,t.path.push(""),f=mt)}break;case rt:if(!o||o.cannotBeABaseURL&&"#"!=a)return"Invalid scheme";if(o.cannotBeABaseURL&&"#"==a){t.scheme=o.scheme,t.path=o.path.slice(),t.query=o.query,t.fragment="",t.cannotBeABaseURL=!0,f=wt;break}f="file"==o.scheme?pt:it;continue;case nt:if("/"!=a||"/"!=i[h+1]){f=it;continue}f=ct,h++;break;case ot:if("/"==a){f=st;break}f=gt;continue;case it:if(t.scheme=o.scheme,a==n)t.username=o.username,t.password=o.password,t.host=o.host,t.port=o.port,t.path=o.path.slice(),t.query=o.query;else if("/"==a||"\\"==a&&z(t))f=at;else if("?"==a)t.username=o.username,t.password=o.password,t.host=o.host,t.port=o.port,t.path=o.path.slice(),t.query="",f=bt;else{if("#"!=a){t.username=o.username,t.password=o.password,t.host=o.host,t.port=o.port,t.path=o.path.slice(),t.path.pop(),f=gt;continue}t.username=o.username,t.password=o.password,t.host=o.host,t.port=o.port,t.path=o.path.slice(),t.query=o.query,t.fragment="",f=wt}break;case at:if(!z(t)||"/"!=a&&"\\"!=a){if("/"!=a){t.username=o.username,t.password=o.password,t.host=o.host,t.port=o.port,f=gt;continue}f=st}else f=ct;break;case ut:if(f=ct,"/"!=a||"/"!=v.charAt(h+1))continue;h++;break;case ct:if("/"!=a&&"\\"!=a){f=st;continue}break;case st:if("@"==a){d&&(v="%40"+v),d=!0,u=p(v);for(var m=0;m<u.length;m++){var b=u[m];if(":"!=b||g){var w=Y(b,W);g?t.password+=w:t.username+=w}else g=!0}v=""}else if(a==n||"/"==a||"?"==a||"#"==a||"\\"==a&&z(t)){if(d&&""==v)return"Invalid authority";h-=p(v).length+1,v="",f=ft}else v+=a;break;case ft:case lt:if(r&&"file"==t.scheme){f=dt;continue}if(":"!=a||y){if(a==n||"/"==a||"?"==a||"#"==a||"\\"==a&&z(t)){if(z(t)&&""==v)return"Invalid host";if(r&&""==v&&(H(t)||null!==t.port))return;if(c=M(t,v))return c;if(v="",f=yt,r)return;continue}"["==a?y=!0:"]"==a&&(y=!1),v+=a}else{if(""==v)return"Invalid host";if(c=M(t,v))return c;if(v="",f=ht,r==lt)return}break;case ht:if(!j.test(a)){if(a==n||"/"==a||"?"==a||"#"==a||"\\"==a&&z(t)||r){if(""!=v){var x=parseInt(v,10);if(x>65535)return"Invalid port";t.port=z(t)&&x===$[t.scheme]?null:x,v=""}if(r)return;f=yt;continue}return"Invalid port"}v+=a;break;case pt:if(t.scheme="file","/"==a||"\\"==a)f=vt;else{if(!o||"file"!=o.scheme){f=gt;continue}if(a==n)t.host=o.host,t.path=o.path.slice(),t.query=o.query;else if("?"==a)t.host=o.host,t.path=o.path.slice(),t.query="",f=bt;else{if("#"!=a){X(i.slice(h).join(""))||(t.host=o.host,t.path=o.path.slice(),Q(t)),f=gt;continue}t.host=o.host,t.path=o.path.slice(),t.query=o.query,t.fragment="",f=wt}}break;case vt:if("/"==a||"\\"==a){f=dt;break}o&&"file"==o.scheme&&!X(i.slice(h).join(""))&&(J(o.path[0],!0)?t.path.push(o.path[0]):t.host=o.host),f=gt;continue;case dt:if(a==n||"/"==a||"\\"==a||"?"==a||"#"==a){if(!r&&J(v))f=gt;else if(""==v){if(t.host="",r)return;f=yt}else{if(c=M(t,v))return c;if("localhost"==t.host&&(t.host=""),r)return;v="",f=yt}continue}v+=a;break;case yt:if(z(t)){if(f=gt,"/"!=a&&"\\"!=a)continue}else if(r||"?"!=a)if(r||"#"!=a){if(a!=n&&(f=gt,"/"!=a))continue}else t.fragment="",f=wt;else t.query="",f=bt;break;case gt:if(a==n||"/"==a||"\\"==a&&z(t)||!r&&("?"==a||"#"==a)){if(".."===(s=(s=v).toLowerCase())||"%2e."===s||".%2e"===s||"%2e%2e"===s?(Q(t),"/"==a||"\\"==a&&z(t)||t.path.push("")):Z(v)?"/"==a||"\\"==a&&z(t)||t.path.push(""):("file"==t.scheme&&!t.path.length&&J(v)&&(t.host&&(t.host=""),v=v.charAt(0)+":"),t.path.push(v)),v="","file"==t.scheme&&(a==n||"?"==a||"#"==a))for(;t.path.length>1&&""===t.path[0];)t.path.shift();"?"==a?(t.query="",f=bt):"#"==a&&(t.fragment="",f=wt)}else v+=Y(a,q);break;case mt:"?"==a?(t.query="",f=bt):"#"==a?(t.fragment="",f=wt):a!=n&&(t.path[0]+=Y(a,V));break;case bt:r||"#"!=a?a!=n&&("'"==a&&z(t)?t.query+="%27":t.query+="#"==a?"%23":Y(a,V)):(t.fragment="",f=wt);break;case wt:a!=n&&(t.fragment+=Y(a,G))}h++}},St=function(t){var e,r,n=f(this,St,"URL"),o=arguments.length>1?arguments[1]:void 0,a=String(t),u=S(n,{type:"URL"});if(void 0!==o)if(o instanceof St)e=E(o);else if(r=xt(e={},String(o)))throw TypeError(r);if(r=xt(u,a,null,e))throw TypeError(r);var c=u.searchParams=new w,s=x(c);s.updateSearchParams(u.query),s.updateURL=function(){u.query=String(c)||null},i||(n.href=Ot.call(n),n.origin=At.call(n),n.protocol=_t.call(n),n.username=kt.call(n),n.password=jt.call(n),n.host=Lt.call(n),n.hostname=Pt.call(n),n.port=Tt.call(n),n.pathname=It.call(n),n.search=Rt.call(n),n.searchParams=Ut.call(n),n.hash=Nt.call(n))},Et=St.prototype,Ot=function(){var t=E(this),e=t.scheme,r=t.username,n=t.password,o=t.host,i=t.port,a=t.path,u=t.query,c=t.fragment,s=e+":";return null!==o?(s+="//",H(t)&&(s+=r+(n?":"+n:"")+"@"),s+=B(o),null!==i&&(s+=":"+i)):"file"==e&&(s+="//"),s+=t.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==u&&(s+="?"+u),null!==c&&(s+="#"+c),s},At=function(){var t=E(this),e=t.scheme,r=t.port;if("blob"==e)try{return new URL(e.path[0]).origin}catch(t){return"null"}return"file"!=e&&z(t)?e+"://"+B(t.host)+(null!==r?":"+r:""):"null"},_t=function(){return E(this).scheme+":"},kt=function(){return E(this).username},jt=function(){return E(this).password},Lt=function(){var t=E(this),e=t.host,r=t.port;return null===e?"":null===r?B(e):B(e)+":"+r},Pt=function(){var t=E(this).host;return null===t?"":B(t)},Tt=function(){var t=E(this).port;return null===t?"":String(t)},It=function(){var t=E(this),e=t.path;return t.cannotBeABaseURL?e[0]:e.length?"/"+e.join("/"):""},Rt=function(){var t=E(this).query;return t?"?"+t:""},Ut=function(){return E(this).searchParams},Nt=function(){var t=E(this).fragment;return t?"#"+t:""},Ct=function(t,e){return{get:t,set:e,configurable:!0,enumerable:!0}};if(i&&c(Et,{href:Ct(Ot,(function(t){var e=E(this),r=String(t),n=xt(e,r);if(n)throw TypeError(n);x(e.searchParams).updateSearchParams(e.query)})),origin:Ct(At),protocol:Ct(_t,(function(t){var e=E(this);xt(e,String(t)+":",tt)})),username:Ct(kt,(function(t){var e=E(this),r=p(String(t));if(!K(e)){e.username="";for(var n=0;n<r.length;n++)e.username+=Y(r[n],W)}})),password:Ct(jt,(function(t){var e=E(this),r=p(String(t));if(!K(e)){e.password="";for(var n=0;n<r.length;n++)e.password+=Y(r[n],W)}})),host:Ct(Lt,(function(t){var e=E(this);e.cannotBeABaseURL||xt(e,String(t),ft)})),hostname:Ct(Pt,(function(t){var e=E(this);e.cannotBeABaseURL||xt(e,String(t),lt)})),port:Ct(Tt,(function(t){var e=E(this);K(e)||(""==(t=String(t))?e.port=null:xt(e,t,ht))})),pathname:Ct(It,(function(t){var e=E(this);e.cannotBeABaseURL||(e.path=[],xt(e,t+"",yt))})),search:Ct(Rt,(function(t){var e=E(this);""==(t=String(t))?e.query=null:("?"==t.charAt(0)&&(t=t.slice(1)),e.query="",xt(e,t,bt)),x(e.searchParams).updateSearchParams(e.query)})),searchParams:Ct(Ut),hash:Ct(Nt,(function(t){var e=E(this);""!=(t=String(t))?("#"==t.charAt(0)&&(t=t.slice(1)),e.fragment="",xt(e,t,wt)):e.fragment=null}))}),s(Et,"toJSON",(function(){return Ot.call(this)}),{enumerable:!0}),s(Et,"toString",(function(){return Ot.call(this)}),{enumerable:!0}),b){var Mt=b.createObjectURL,Ft=b.revokeObjectURL;Mt&&s(St,"createObjectURL",(function(t){return Mt.apply(b,arguments)})),Ft&&s(St,"revokeObjectURL",(function(t){return Ft.apply(b,arguments)}))}y(St,"URL"),o({global:!0,forced:!a,sham:!i},{URL:St})},function(t,e,r){var n=r(1),o=r(4),i=r(37),a=o("iterator");t.exports=!n((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,r="";return t.pathname="c%20d",e.forEach((function(t,n){e.delete("b"),r+=n+t})),i&&!t.toJSON||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host}))},function(t,e,r){"use strict";var n=r(2),o=r(14).filter,i=r(59),a=r(42),u=i("filter"),c=a("filter");n({target:"Array",proto:!0,forced:!u||!c},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){var n=r(45),o=r(5),i=r(6),a=r(10).f,u=r(44),c=r(198),s=u("meta"),f=0,l=Object.isExtensible||function(){return!0},h=function(t){a(t,s,{value:{objectID:"O"+ ++f,weakData:{}}})},p=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,s)){if(!l(t))return"F";if(!e)return"E";h(t)}return t[s].objectID},getWeakData:function(t,e){if(!i(t,s)){if(!l(t))return!0;if(!e)return!1;h(t)}return t[s].weakData},onFreeze:function(t){return c&&p.REQUIRED&&l(t)&&!i(t,s)&&h(t),t}};n[s]=!0},function(t,e,r){"use strict";var n=r(135),o=r(7),i=r(12),a=r(8),u=r(19),c=r(22),s=r(203),f=r(136),l=Math.max,h=Math.min,p=Math.floor,v=/\$([$&'`]|\d\d?|<[^>]*>)/g,d=/\$([$&'`]|\d\d?)/g;n("replace",2,(function(t,e,r,n){var y=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,g=n.REPLACE_KEEPS_$0,m=y?"$":"$0";return[function(r,n){var o=c(this),i=null==r?void 0:r[t];return void 0!==i?i.call(r,o,n):e.call(String(o),r,n)},function(t,n){if(!y&&g||"string"==typeof n&&-1===n.indexOf(m)){var i=r(e,t,this,n);if(i.done)return i.value}var c=o(t),p=String(this),v="function"==typeof n;v||(n=String(n));var d=c.global;if(d){var w=c.unicode;c.lastIndex=0}for(var x=[];;){var S=f(c,p);if(null===S)break;if(x.push(S),!d)break;""===String(S[0])&&(c.lastIndex=s(p,a(c.lastIndex),w))}for(var E,O="",A=0,_=0;_<x.length;_++){S=x[_];for(var k=String(S[0]),j=l(h(u(S.index),p.length),0),L=[],P=1;P<S.length;P++)L.push(void 0===(E=S[P])?E:String(E));var T=S.groups;if(v){var I=[k].concat(L,j,p);void 0!==T&&I.push(T);var R=String(n.apply(void 0,I))}else R=b(k,p,j,L,T,n);j>=A&&(O+=p.slice(A,j)+R,A=j+k.length)}return O+p.slice(A)}];function b(t,r,n,o,a,u){var c=n+t.length,s=o.length,f=d;return void 0!==a&&(a=i(a),f=v),e.call(u,f,(function(e,i){var u;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return r.slice(0,n);case"'":return r.slice(c);case"<":u=a[i.slice(1,-1)];break;default:var f=+i;if(0===f)return e;if(f>s){var l=p(f/10);return 0===l?e:l<=s?void 0===o[l-1]?i.charAt(1):o[l-1]+i.charAt(1):e}u=o[f-1]}return void 0===u?"":u}))}}))},function(t,e,r){"use strict";r(67);var n=r(13),o=r(1),i=r(4),a=r(92),u=r(11),c=i("species"),s=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),f="$0"==="a".replace(/./,"$0"),l=i("replace"),h=!!/./[l]&&""===/./[l]("a","$0"),p=!o((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}));t.exports=function(t,e,r,l){var v=i(t),d=!o((function(){var e={};return e[v]=function(){return 7},7!=""[t](e)})),y=d&&!o((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[c]=function(){return r},r.flags="",r[v]=/./[v]),r.exec=function(){return e=!0,null},r[v](""),!e}));if(!d||!y||"replace"===t&&(!s||!f||h)||"split"===t&&!p){var g=/./[v],m=r(v,""[t],(function(t,e,r,n,o){return e.exec===a?d&&!o?{done:!0,value:g.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}}),{REPLACE_KEEPS_$0:f,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:h}),b=m[0],w=m[1];n(String.prototype,t,b),n(RegExp.prototype,v,2==e?function(t,e){return w.call(t,this,e)}:function(t){return w.call(t,this)})}l&&u(RegExp.prototype[v],"sham",!0)}},function(t,e,r){var n=r(21),o=r(92);t.exports=function(t,e){var r=t.exec;if("function"==typeof r){var i=r.call(t,e);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==n(t))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},function(t,e){function r(){}r.prototype={on:function(t,e,r){var n=this.e||(this.e={});return(n[t]||(n[t]=[])).push({fn:e,ctx:r}),this},once:function(t,e,r){var n=this;function o(){n.off(t,o),e.apply(r,arguments)}return o._=e,this.on(t,o,r)},emit:function(t){for(var e=[].slice.call(arguments,1),r=((this.e||(this.e={}))[t]||[]).slice(),n=0,o=r.length;n<o;n++)r[n].fn.apply(r[n].ctx,e);return this},off:function(t,e){var r=this.e||(this.e={}),n=r[t],o=[];if(n&&e)for(var i=0,a=n.length;i<a;i++)n[i].fn!==e&&n[i].fn._!==e&&o.push(n[i]);return o.length?r[t]=o:delete r[t],this}},t.exports=r,t.exports.TinyEmitter=r},function(t,e,r){"use strict";window.regeneratorRuntime=r(139);var n=r(208).Identity;t.exports={Identity:n}},function(t,e,r){var n=function(t){"use strict";var e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var o=e&&e.prototype instanceof l?e:l,i=Object.create(o.prototype),a=new E(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return A()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=w(a,r);if(u){if(u===f)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=s(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,a),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var f={};function l(){}function h(){}function p(){}var v={};v[o]=function(){return this};var d=Object.getPrototypeOf,y=d&&d(d(O([])));y&&y!==e&&r.call(y,o)&&(v=y);var g=p.prototype=l.prototype=Object.create(v);function m(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){var n;this._invoke=function(o,i){function a(){return new e((function(n,a){!function n(o,i,a,u){var c=s(t[o],t,i);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==typeof l&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):e.resolve(l).then((function(t){f.value=t,a(f)}),(function(t){return n("throw",t,a,u)}))}u(c.arg)}(o,i,n,a)}))}return n=n?n.then(a,a):a()}}function w(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=s(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,f;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function O(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=g.constructor=p,p.constructor=h,h.displayName=u(p,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,u(t,a,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},m(b.prototype),b.prototype[i]=function(){return this},t.AsyncIterator=b,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new b(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},m(g),u(g,a,"Generator"),g[o]=function(){return this},g.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=O,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},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 n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){var n=r(0),o=r(70),i=n.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},function(t,e,r){var n=r(23),o=r(38),i=r(73),a=r(7);t.exports=n("Reflect","ownKeys")||function(t){var e=o.f(a(t)),r=i.f;return r?e.concat(r(t)):e}},function(t,e,r){var n=r(5),o=Math.floor;t.exports=function(t){return!n(t)&&isFinite(t)&&o(t)===t}},function(t,e,r){var n=r(5);t.exports=function(t){if(!n(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},function(t,e,r){var n=r(22),o="["+r(146)+"]",i=RegExp("^"+o+o+"*"),a=RegExp(o+o+"*$"),u=function(t){return function(e){var r=String(n(e));return 1&t&&(r=r.replace(i,"")),2&t&&(r=r.replace(a,"")),r}};t.exports={start:u(1),end:u(2),trim:u(3)}},function(t,e){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},function(t,e,r){"use strict";var n=r(2),o=r(1),i=r(110),a=r(7),u=r(39),c=r(8),s=r(41),f=i.ArrayBuffer,l=i.DataView,h=f.prototype.slice;n({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:o((function(){return!new f(2).slice(1,void 0).byteLength}))},{slice:function(t,e){if(void 0!==h&&void 0===e)return h.call(a(this),t);for(var r=a(this).byteLength,n=u(t,r),o=u(void 0===e?r:e,r),i=new(s(this,f))(c(o-n)),p=new l(this),v=new l(i),d=0;n<o;)v.setUint8(d++,p.getUint8(n++));return i}})},function(t,e){var r=Math.abs,n=Math.pow,o=Math.floor,i=Math.log,a=Math.LN2;t.exports={pack:function(t,e,u){var c,s,f,l=new Array(u),h=8*u-e-1,p=(1<<h)-1,v=p>>1,d=23===e?n(2,-24)-n(2,-77):0,y=t<0||0===t&&1/t<0?1:0,g=0;for((t=r(t))!=t||t===1/0?(s=t!=t?1:0,c=p):(c=o(i(t)/a),t*(f=n(2,-c))<1&&(c--,f*=2),(t+=c+v>=1?d/f:d*n(2,1-v))*f>=2&&(c++,f/=2),c+v>=p?(s=0,c=p):c+v>=1?(s=(t*f-1)*n(2,e),c+=v):(s=t*n(2,v-1)*n(2,e),c=0));e>=8;l[g++]=255&s,s/=256,e-=8);for(c=c<<e|s,h+=e;h>0;l[g++]=255&c,c/=256,h-=8);return l[--g]|=128*y,l},unpack:function(t,e){var r,o=t.length,i=8*o-e-1,a=(1<<i)-1,u=a>>1,c=i-7,s=o-1,f=t[s--],l=127&f;for(f>>=7;c>0;l=256*l+t[s],s--,c-=8);for(r=l&(1<<-c)-1,l>>=-c,c+=e;c>0;r=256*r+t[s],s--,c-=8);if(0===l)l=1-u;else{if(l===a)return r?NaN:f?-1/0:1/0;r+=n(2,e),l-=u}return(f?-1:1)*r*n(2,l-e)}}},function(t,e,r){"use strict";var n=r(81),o=r(50);t.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},function(t,e,r){r(151)("Uint8",(function(t){return function(e,r,n){return t(this,e,r,n)}}))},function(t,e,r){"use strict";var n=r(2),o=r(0),i=r(9),a=r(152),u=r(3),c=r(110),s=r(35),f=r(30),l=r(11),h=r(8),p=r(112),v=r(114),d=r(31),y=r(6),g=r(50),m=r(5),b=r(24),w=r(40),x=r(38).f,S=r(154),E=r(14).forEach,O=r(84),A=r(10),_=r(36),k=r(17),j=r(78),L=k.get,P=k.set,T=A.f,I=_.f,R=Math.round,U=o.RangeError,N=c.ArrayBuffer,C=c.DataView,M=u.NATIVE_ARRAY_BUFFER_VIEWS,F=u.TYPED_ARRAY_TAG,D=u.TypedArray,B=u.TypedArrayPrototype,V=u.aTypedArrayConstructor,G=u.isTypedArray,q=function(t,e){for(var r=0,n=e.length,o=new(V(t))(n);n>r;)o[r]=e[r++];return o},W=function(t,e){T(t,e,{get:function(){return L(this)[e]}})},Y=function(t){var e;return t instanceof N||"ArrayBuffer"==(e=g(t))||"SharedArrayBuffer"==e},$=function(t,e){return G(t)&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},z=function(t,e){return $(t,e=d(e,!0))?f(2,t[e]):I(t,e)},H=function(t,e,r){return!($(t,e=d(e,!0))&&m(r)&&y(r,"value"))||y(r,"get")||y(r,"set")||r.configurable||y(r,"writable")&&!r.writable||y(r,"enumerable")&&!r.enumerable?T(t,e,r):(t[e]=r.value,t)};i?(M||(_.f=z,A.f=H,W(B,"buffer"),W(B,"byteOffset"),W(B,"byteLength"),W(B,"length")),n({target:"Object",stat:!0,forced:!M},{getOwnPropertyDescriptor:z,defineProperty:H}),t.exports=function(t,e,r){var i=t.match(/\d+$/)[0]/8,u=t+(r?"Clamped":"")+"Array",c="get"+t,f="set"+t,d=o[u],y=d,g=y&&y.prototype,A={},_=function(t,e){T(t,e,{get:function(){return function(t,e){var r=L(t);return r.view[c](e*i+r.byteOffset,!0)}(this,e)},set:function(t){return function(t,e,n){var o=L(t);r&&(n=(n=R(n))<0?0:n>255?255:255&n),o.view[f](e*i+o.byteOffset,n,!0)}(this,e,t)},enumerable:!0})};M?a&&(y=e((function(t,e,r,n){return s(t,y,u),j(m(e)?Y(e)?void 0!==n?new d(e,v(r,i),n):void 0!==r?new d(e,v(r,i)):new d(e):G(e)?q(y,e):S.call(y,e):new d(p(e)),t,y)})),w&&w(y,D),E(x(d),(function(t){t in y||l(y,t,d[t])})),y.prototype=g):(y=e((function(t,e,r,n){s(t,y,u);var o,a,c,f=0,l=0;if(m(e)){if(!Y(e))return G(e)?q(y,e):S.call(y,e);o=e,l=v(r,i);var d=e.byteLength;if(void 0===n){if(d%i)throw U("Wrong length");if((a=d-l)<0)throw U("Wrong length")}else if((a=h(n)*i)+l>d)throw U("Wrong length");c=a/i}else c=p(e),o=new N(a=c*i);for(P(t,{buffer:o,byteOffset:l,byteLength:a,length:c,view:new C(o)});f<c;)_(t,f++)})),w&&w(y,D),g=y.prototype=b(B)),g.constructor!==y&&l(g,"constructor",y),F&&l(g,F,u),A[u]=y,n({global:!0,forced:y!=d,sham:!M},A),"BYTES_PER_ELEMENT"in y||l(y,"BYTES_PER_ELEMENT",i),"BYTES_PER_ELEMENT"in g||l(g,"BYTES_PER_ELEMENT",i),O(u)}):t.exports=function(){}},function(t,e,r){var n=r(0),o=r(1),i=r(61),a=r(3).NATIVE_ARRAY_BUFFER_VIEWS,u=n.ArrayBuffer,c=n.Int8Array;t.exports=!a||!o((function(){c(1)}))||!o((function(){new c(-1)}))||!i((function(t){new c,new c(null),new c(1.5),new c(t)}),!0)||o((function(){return 1!==new c(new u(2),1,void 0).length}))},function(t,e,r){var n=r(19);t.exports=function(t){var e=n(t);if(e<0)throw RangeError("The argument can't be less than 0");return e}},function(t,e,r){var n=r(12),o=r(8),i=r(49),a=r(80),u=r(33),c=r(3).aTypedArrayConstructor;t.exports=function(t){var e,r,s,f,l,h,p=n(t),v=arguments.length,d=v>1?arguments[1]:void 0,y=void 0!==d,g=i(p);if(null!=g&&!a(g))for(h=(l=g.call(p)).next,p=[];!(f=h.call(l)).done;)p.push(f.value);for(y&&v>2&&(d=u(d,arguments[2],2)),r=o(p.length),s=new(c(this))(r),e=0;r>e;e++)s[e]=y?d(p[e],e):p[e];return s}},function(t,e,r){"use strict";var n=r(3),o=r(156),i=n.aTypedArray;(0,n.exportTypedArrayMethod)("copyWithin",(function(t,e){return o.call(i(this),t,e,arguments.length>2?arguments[2]:void 0)}))},function(t,e,r){"use strict";var n=r(12),o=r(39),i=r(8),a=Math.min;t.exports=[].copyWithin||function(t,e){var r=n(this),u=i(r.length),c=o(t,u),s=o(e,u),f=arguments.length>2?arguments[2]:void 0,l=a((void 0===f?u:o(f,u))-s,u-c),h=1;for(s<c&&c<s+l&&(h=-1,s+=l-1,c+=l-1);l-- >0;)s in r?r[c]=r[s]:delete r[c],c+=h,s+=h;return r}},function(t,e,r){"use strict";var n=r(3),o=r(14).every,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("every",(function(t){return o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,r){"use strict";var n=r(3),o=r(113),i=n.aTypedArray;(0,n.exportTypedArrayMethod)("fill",(function(t){return o.apply(i(this),arguments)}))},function(t,e,r){"use strict";var n=r(3),o=r(14).filter,i=r(41),a=n.aTypedArray,u=n.aTypedArrayConstructor;(0,n.exportTypedArrayMethod)("filter",(function(t){for(var e=o(a(this),t,arguments.length>1?arguments[1]:void 0),r=i(this,this.constructor),n=0,c=e.length,s=new(u(r))(c);c>n;)s[n]=e[n++];return s}))},function(t,e,r){"use strict";var n=r(3),o=r(14).find,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("find",(function(t){return o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,r){"use strict";var n=r(3),o=r(14).findIndex,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("findIndex",(function(t){return o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,r){"use strict";var n=r(3),o=r(14).forEach,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("forEach",(function(t){o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,r){"use strict";var n=r(3),o=r(56).includes,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("includes",(function(t){return o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,r){"use strict";var n=r(3),o=r(56).indexOf,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("indexOf",(function(t){return o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,r){"use strict";var n=r(0),o=r(3),i=r(15),a=r(4)("iterator"),u=n.Uint8Array,c=i.values,s=i.keys,f=i.entries,l=o.aTypedArray,h=o.exportTypedArrayMethod,p=u&&u.prototype[a],v=!!p&&("values"==p.name||null==p.name),d=function(){return c.call(l(this))};h("entries",(function(){return f.call(l(this))})),h("keys",(function(){return s.call(l(this))})),h("values",d,!v),h(a,d,!v)},function(t,e,r){"use strict";var n=r(3),o=n.aTypedArray,i=n.exportTypedArrayMethod,a=[].join;i("join",(function(t){return a.apply(o(this),arguments)}))},function(t,e,r){"use strict";var n=r(3),o=r(168),i=n.aTypedArray;(0,n.exportTypedArrayMethod)("lastIndexOf",(function(t){return o.apply(i(this),arguments)}))},function(t,e,r){"use strict";var n=r(16),o=r(19),i=r(8),a=r(79),u=r(42),c=Math.min,s=[].lastIndexOf,f=!!s&&1/[1].lastIndexOf(1,-0)<0,l=a("lastIndexOf"),h=u("indexOf",{ACCESSORS:!0,1:0}),p=f||!l||!h;t.exports=p?function(t){if(f)return s.apply(this,arguments)||0;var e=n(this),r=i(e.length),a=r-1;for(arguments.length>1&&(a=c(a,o(arguments[1]))),a<0&&(a=r+a);a>=0;a--)if(a in e&&e[a]===t)return a||0;return-1}:s},function(t,e,r){"use strict";var n=r(3),o=r(14).map,i=r(41),a=n.aTypedArray,u=n.aTypedArrayConstructor;(0,n.exportTypedArrayMethod)("map",(function(t){return o(a(this),t,arguments.length>1?arguments[1]:void 0,(function(t,e){return new(u(i(t,t.constructor)))(e)}))}))},function(t,e,r){"use strict";var n=r(3),o=r(115).left,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduce",(function(t){return o(i(this),t,arguments.length,arguments.length>1?arguments[1]:void 0)}))},function(t,e,r){"use strict";var n=r(3),o=r(115).right,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduceRight",(function(t){return o(i(this),t,arguments.length,arguments.length>1?arguments[1]:void 0)}))},function(t,e,r){"use strict";var n=r(3),o=n.aTypedArray,i=n.exportTypedArrayMethod,a=Math.floor;i("reverse",(function(){for(var t,e=o(this).length,r=a(e/2),n=0;n<r;)t=this[n],this[n++]=this[--e],this[e]=t;return this}))},function(t,e,r){"use strict";var n=r(3),o=r(8),i=r(114),a=r(12),u=r(1),c=n.aTypedArray;(0,n.exportTypedArrayMethod)("set",(function(t){c(this);var e=i(arguments.length>1?arguments[1]:void 0,1),r=this.length,n=a(t),u=o(n.length),s=0;if(u+e>r)throw RangeError("Wrong length");for(;s<u;)this[e+s]=n[s++]}),u((function(){new Int8Array(1).set({})})))},function(t,e,r){"use strict";var n=r(3),o=r(41),i=r(1),a=n.aTypedArray,u=n.aTypedArrayConstructor,c=n.exportTypedArrayMethod,s=[].slice;c("slice",(function(t,e){for(var r=s.call(a(this),t,e),n=o(this,this.constructor),i=0,c=r.length,f=new(u(n))(c);c>i;)f[i]=r[i++];return f}),i((function(){new Int8Array(1).slice()})))},function(t,e,r){"use strict";var n=r(3),o=r(14).some,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("some",(function(t){return o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,r){"use strict";var n=r(3),o=n.aTypedArray,i=n.exportTypedArrayMethod,a=[].sort;i("sort",(function(t){return a.call(o(this),t)}))},function(t,e,r){"use strict";var n=r(3),o=r(8),i=r(39),a=r(41),u=n.aTypedArray;(0,n.exportTypedArrayMethod)("subarray",(function(t,e){var r=u(this),n=r.length,c=i(t,n);return new(a(r,r.constructor))(r.buffer,r.byteOffset+c*r.BYTES_PER_ELEMENT,o((void 0===e?n:i(e,n))-c))}))},function(t,e,r){"use strict";var n=r(0),o=r(3),i=r(1),a=n.Int8Array,u=o.aTypedArray,c=o.exportTypedArrayMethod,s=[].toLocaleString,f=[].slice,l=!!a&&i((function(){s.call(new a(1))}));c("toLocaleString",(function(){return s.apply(l?f.call(u(this)):u(this),arguments)}),i((function(){return[1,2].toLocaleString()!=new a([1,2]).toLocaleString()}))||!i((function(){a.prototype.toLocaleString.call([1,2])})))},function(t,e,r){"use strict";var n=r(3).exportTypedArrayMethod,o=r(1),i=r(0).Uint8Array,a=i&&i.prototype||{},u=[].toString,c=[].join;o((function(){u.call({})}))&&(u=function(){return c.call(this)});var s=a.toString!=u;n("toString",u,s)},function(t,e,r){"use strict";var n=r(2),o=r(181).start;n({target:"String",proto:!0,forced:r(183)},{padStart:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){var n=r(8),o=r(182),i=r(22),a=Math.ceil,u=function(t){return function(e,r,u){var c,s,f=String(i(e)),l=f.length,h=void 0===u?" ":String(u),p=n(r);return p<=l||""==h?f:(c=p-l,(s=o.call(h,a(c/h.length))).length>c&&(s=s.slice(0,c)),t?f+s:s+f)}};t.exports={start:u(!1),end:u(!0)}},function(t,e,r){"use strict";var n=r(19),o=r(22);t.exports="".repeat||function(t){var e=String(o(this)),r="",i=n(t);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(e+=e))1&i&&(r+=e);return r}},function(t,e,r){var n=r(77);t.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(n)},function(t,e,r){var n=r(0);t.exports=n.Promise},function(t,e,r){var n,o,i,a,u,c,s,f,l=r(0),h=r(36).f,p=r(21),v=r(118).set,d=r(119),y=l.MutationObserver||l.WebKitMutationObserver,g=l.process,m=l.Promise,b="process"==p(g),w=h(l,"queueMicrotask"),x=w&&w.value;x||(n=function(){var t,e;for(b&&(t=g.domain)&&t.exit();o;){e=o.fn,o=o.next;try{e()}catch(t){throw o?a():i=void 0,t}}i=void 0,t&&t.enter()},b?a=function(){g.nextTick(n)}:y&&!d?(u=!0,c=document.createTextNode(""),new y(n).observe(c,{characterData:!0}),a=function(){c.data=u=!u}):m&&m.resolve?(s=m.resolve(void 0),f=s.then,a=function(){f.call(s,n)}):a=function(){v.call(l,n)}),t.exports=x||function(t){var e={fn:t,next:void 0};i&&(i.next=e),o||(o=e,a()),i=e}},function(t,e,r){var n=r(7),o=r(5),i=r(120);t.exports=function(t,e){if(n(t),o(e)&&e.constructor===t)return e;var r=i.f(t);return(0,r.resolve)(e),r.promise}},function(t,e,r){var n=r(0);t.exports=function(t,e){var r=n.console;r&&r.error&&(1===arguments.length?r.error(t):r.error(t,e))}},function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},function(t,e,r){"use strict";var n=r(34),o=r(5),i=[].slice,a={},u=function(t,e,r){if(!(e in a)){for(var n=[],o=0;o<e;o++)n[o]="a["+o+"]";a[e]=Function("C,a","return new C("+n.join(",")+")")}return a[e](t,r)};t.exports=Function.bind||function(t){var e=n(this),r=i.call(arguments,1),a=function(){var n=r.concat(i.call(arguments));return this instanceof a?u(e,n.length,n):e.apply(t,n)};return o(e.prototype)&&(a.prototype=e.prototype),a}},function(t,e,r){"use strict";var n=r(7),o=r(31);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return o(n(this),"number"!==t)}},function(t,e,r){var n=r(16),o=r(38).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return a.slice()}}(t):o(n(t))}},function(t,e,r){"use strict";var n=r(14).forEach,o=r(79),i=r(42),a=o("forEach"),u=i("forEach");t.exports=a&&u?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,e,r){"use strict";var n=/[^\0-\u007E]/,o=/[.\u3002\uFF0E\uFF61]/g,i="Overflow: input needs wider integers to process",a=Math.floor,u=String.fromCharCode,c=function(t){return t+22+75*(t<26)},s=function(t,e,r){var n=0;for(t=r?a(t/700):t>>1,t+=a(t/e);t>455;n+=36)t=a(t/35);return a(n+36*t/(t+38))},f=function(t){var e,r,n=[],o=(t=function(t){for(var e=[],r=0,n=t.length;r<n;){var o=t.charCodeAt(r++);if(o>=55296&&o<=56319&&r<n){var i=t.charCodeAt(r++);56320==(64512&i)?e.push(((1023&o)<<10)+(1023&i)+65536):(e.push(o),r--)}else e.push(o)}return e}(t)).length,f=128,l=0,h=72;for(e=0;e<t.length;e++)(r=t[e])<128&&n.push(u(r));var p=n.length,v=p;for(p&&n.push("-");v<o;){var d=2147483647;for(e=0;e<t.length;e++)(r=t[e])>=f&&r<d&&(d=r);var y=v+1;if(d-f>a((2147483647-l)/y))throw RangeError(i);for(l+=(d-f)*y,f=d,e=0;e<t.length;e++){if((r=t[e])<f&&++l>2147483647)throw RangeError(i);if(r==f){for(var g=l,m=36;;m+=36){var b=m<=h?1:m>=h+26?26:m-h;if(g<b)break;var w=g-b,x=36-b;n.push(u(c(b+w%x))),g=a(w/x)}n.push(u(c(g))),h=s(l,y,v==p),l=0,++v}}++l,++f}return n.join("")};t.exports=function(t){var e,r,i=[],a=t.toLowerCase().replace(o,".").split(".");for(e=0;e<a.length;e++)r=a[e],i.push(n.test(r)?"xn--"+f(r):r);return i.join(".")}},function(t,e,r){var n=r(7),o=r(49);t.exports=function(t){var e=o(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return n(e.call(t))}},function(t,e,r){"use strict";var n=r(2),o=r(56).includes,i=r(109);n({target:"Array",proto:!0,forced:!r(42)("indexOf",{ACCESSORS:!0,1:0})},{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i("includes")},function(t,e,r){"use strict";var n=r(197),o=r(199);t.exports=n("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),o)},function(t,e,r){"use strict";var n=r(2),o=r(0),i=r(57),a=r(13),u=r(133),c=r(86),s=r(35),f=r(5),l=r(1),h=r(61),p=r(18),v=r(78);t.exports=function(t,e,r){var d=-1!==t.indexOf("Map"),y=-1!==t.indexOf("Weak"),g=d?"set":"add",m=o[t],b=m&&m.prototype,w=m,x={},S=function(t){var e=b[t];a(b,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(y&&!f(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return y&&!f(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(y&&!f(t))&&e.call(this,0===t?0:t)}:function(t,r){return e.call(this,0===t?0:t,r),this})};if(i(t,"function"!=typeof m||!(y||b.forEach&&!l((function(){(new m).entries().next()})))))w=r.getConstructor(e,t,d,g),u.REQUIRED=!0;else if(i(t,!0)){var E=new w,O=E[g](y?{}:-0,1)!=E,A=l((function(){E.has(1)})),_=h((function(t){new m(t)})),k=!y&&l((function(){for(var t=new m,e=5;e--;)t[g](e,e);return!t.has(-0)}));_||((w=e((function(e,r){s(e,w,t);var n=v(new m,e,w);return null!=r&&c(r,n[g],n,d),n}))).prototype=b,b.constructor=w),(A||k)&&(S("delete"),S("has"),d&&S("get")),(k||O)&&S(g),y&&b.clear&&delete b.clear}return x[t]=w,n({global:!0,forced:w!=m},x),p(w,t),y||r.setStrong(w,t,d),w}},function(t,e,r){var n=r(1);t.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(t,e,r){"use strict";var n=r(10).f,o=r(24),i=r(62),a=r(33),u=r(35),c=r(86),s=r(83),f=r(84),l=r(9),h=r(133).fastKey,p=r(17),v=p.set,d=p.getterFor;t.exports={getConstructor:function(t,e,r,s){var f=t((function(t,n){u(t,f,e),v(t,{type:e,index:o(null),first:void 0,last:void 0,size:0}),l||(t.size=0),null!=n&&c(n,t[s],t,r)})),p=d(e),y=function(t,e,r){var n,o,i=p(t),a=g(t,e);return a?a.value=r:(i.last=a={index:o=h(e,!0),key:e,value:r,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=a),n&&(n.next=a),l?i.size++:t.size++,"F"!==o&&(i.index[o]=a)),t},g=function(t,e){var r,n=p(t),o=h(e);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key==e)return r};return i(f.prototype,{clear:function(){for(var t=p(this),e=t.index,r=t.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete e[r.index],r=r.next;t.first=t.last=void 0,l?t.size=0:this.size=0},delete:function(t){var e=p(this),r=g(this,t);if(r){var n=r.next,o=r.previous;delete e.index[r.index],r.removed=!0,o&&(o.next=n),n&&(n.previous=o),e.first==r&&(e.first=n),e.last==r&&(e.last=o),l?e.size--:this.size--}return!!r},forEach:function(t){for(var e,r=p(this),n=a(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!g(this,t)}}),i(f.prototype,r?{get:function(t){var e=g(this,t);return e&&e.value},set:function(t,e){return y(this,0===t?0:t,e)}}:{add:function(t){return y(this,t=0===t?0:t,t)}}),l&&n(f.prototype,"size",{get:function(){return p(this).size}}),f},setStrong:function(t,e,r){var n=e+" Iterator",o=d(e),i=d(n);s(t,e,(function(t,e){v(this,{type:n,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?"keys"==e?{value:r.key,done:!1}:"values"==e?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),r?"entries":"values",!r,!0),f(e)}}},function(t,e,r){var n=r(2),o=r(201).entries;n({target:"Object",stat:!0},{entries:function(t){return o(t)}})},function(t,e,r){var n=r(9),o=r(47),i=r(16),a=r(54).f,u=function(t){return function(e){for(var r,u=i(e),c=o(u),s=c.length,f=0,l=[];s>f;)r=c[f++],n&&!a.call(u,r)||l.push(t?[r,u[r]]:u[r]);return l}};t.exports={entries:u(!0),values:u(!1)}},function(t,e,r){"use strict";var n=r(1);function o(t,e){return RegExp(t,e)}e.UNSUPPORTED_Y=n((function(){var t=o("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),e.BROKEN_CARET=n((function(){var t=o("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},function(t,e,r){"use strict";var n=r(82).charAt;t.exports=function(t,e,r){return e+(r?n(t,e).length:1)}},function(t,e,r){r(2)({target:"Number",stat:!0},{isFinite:r(205)})},function(t,e,r){var n=r(0).isFinite;t.exports=Number.isFinite||function(t){return"number"==typeof t&&n(t)}},function(t,e,r){"use strict";var n=r(135),o=r(7),i=r(22),a=r(207),u=r(136);n("search",1,(function(t,e,r){return[function(e){var r=i(this),n=null==e?void 0:e[t];return void 0!==n?n.call(e,r):new RegExp(e)[t](String(r))},function(t){var n=r(e,t,this);if(n.done)return n.value;var i=o(t),c=String(this),s=i.lastIndex;a(s,0)||(i.lastIndex=0);var f=u(i,c);return a(i.lastIndex,s)||(i.lastIndex=s),null===f?-1:f.index}]}))},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,r){"use strict";r.r(e),r.d(e,"Identity",(function(){return ft}));r(53),r(100),r(46),r(60),r(32),r(103),r(20),r(15),r(147),r(25),r(150),r(155),r(157),r(158),r(159),r(160),r(161),r(162),r(163),r(164),r(165),r(166),r(167),r(169),r(170),r(171),r(172),r(173),r(174),r(175),r(176),r(177),r(178),r(179),r(63),r(180),r(85),r(117),r(121),r(87),r(88),r(123),r(64),r(65),r(26),r(27),r(28),r(29),r(126),r(127),r(128),r(129),r(89),r(66),r(90),r(130),r(91),r(132),r(195),r(196);function n(t){return(n="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 o(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,(i=o.key,a=void 0,a=function(t,e){if("object"!==n(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===n(a)?a:String(a)),o)}var i,a}function i(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return a(t)}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function u(t){var e="function"==typeof Map?new Map:void 0;return(u=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return c(t,arguments,l(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),f(r,t)})(t)}function c(t,e,r){return(c=s()?Reflect.construct.bind():function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&f(o,r.prototype),o}).apply(null,arguments)}function s(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function f(t,e){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var h=["boolean","number","string"],p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(d,t);var e,r,u,c,p,v=(e=d,r=s(),function(){var t,n=l(e);if(r){var o=l(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return i(this,t)});function d(t,e){var r;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),(r=v.call(this,t)).name="SDKError","object"===n(e))try{Object.assign(a(r),e)}catch(t){}return r}return u=d,(c=[{key:"toString",value:function(){var t=this,e="".concat(this.name,": ").concat(this.message),r=Object.keys(this).filter((function(e){return"name"!==e&&h.includes(n(t[e]))})).map((function(e){return" ".concat(e,": ").concat(t[e])})).join("\n");return r?"".concat(e,"\n").concat(r):e}}])&&o(u.prototype,c),p&&o(u,p),Object.defineProperty(u,"prototype",{writable:!1}),d}(u(Error));function v(t){return(v="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 d(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Assertion failed";if(!t)throw new p(e)}function y(t){return"string"==typeof t}function g(t){return"string"==typeof t&&t.length>0}function m(t){return"object"===v(t)&&null!==t}function b(t){return m(t)&&Object.keys(t).length>0}function w(t){try{for(var e=new URL(t),r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return n.every((function(t){return e[t]}))}catch(t){return!1}}function x(t){return"function"==typeof t}function S(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=function(e){return y(e)&&t.toUpperCase()===e.toUpperCase()};return!(!y(t)||!Array.isArray(e))&&(r?-1!==e.indexOf(t):e.some(n))}r(200),r(67);function E(t){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function O(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return A(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return A(t,e)}(t,e)||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 A(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function _(){for(var t={},e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];if(!r||!r.length)throw new p("No objects to clone");return r.forEach((function(e){d(m(e)),b(e)&&Object.entries(e).forEach((function(e){var r=O(e,2),n=r[0],o=r[1];void 0!==o&&(t[n]=m(o)?k(o):o)}))})),t}function k(t){return d("object"===E(t),"obj should be an object (even null) but it is ".concat(t)),JSON.parse(JSON.stringify(t))||t}function j(t){return(j="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 L(t,e){return d(g(t),'"url" param must be a non empty string: '.concat(j(t))),b(e)&&w(e[t])?e[t]:(d(w(t,"hostname"),"Bad URL given: '".concat(t,"'")),t)}var P={ENDPOINTS:{SPiD:{LOCAL:"http://id.localhost",DEV:"https://identity-dev.schibsted.com",PRE:"https://identity-pre.schibsted.com",PRO:"https://login.schibsted.com",PRO_NO:"https://payment.schibsted.no",PRO_FI:"https://login.schibsted.fi",PRO_DK:"https://login.schibsted.dk"},BFF:{LOCAL:"http://id.localhost/authn/",DEV:"https://identity-dev.schibsted.com/authn/",PRE:"https://identity-pre.schibsted.com/authn/",PRO:"https://login.schibsted.com/authn/",PRO_NO:"https://payment.schibsted.no/authn/",PRO_FI:"https://login.schibsted.fi/authn/",PRO_DK:"https://login.schibsted.dk/authn/"},SESSION_SERVICE:{LOCAL:"http://session-service.id.localhost",DEV:"https://session-service.identity-dev.schibsted.com",PRE:"https://session-service.identity-pre.schibsted.com",PRO:"https://session-service.login.schibsted.com",PRO_NO:"https://session-service.payment.schibsted.no",PRO_FI:"https://session-service.login.schibsted.fi",PRO_DK:"https://session-service.login.schibsted.dk"}},NAMESPACE:{LOCAL:"id.localhost",DEV:"schibsted.com",PRE:"schibsted.com",PRO:"schibsted.com",PRO_NO:"spid.no",PRO_FI:"schibsted.fi",PRO_DK:"schibsted.dk"}},T=P.ENDPOINTS,I=P.NAMESPACE,R=r(137),U=r.n(R);r(134);function N(t){return(N="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 C(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=n.key,i=void 0,i=function(t,e){if("object"!==N(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==N(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"),"symbol"===N(i)?i:String(i)),n)}var o,i}function M(t,e,r){return e&&C(t.prototype,e),r&&C(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function F(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var D=M((function t(e){var r=this;F(this,t),this.store=e,this.get=function(t){return r.store.getItem(t)},this.set=function(t,e){return r.store.setItem(t,e)},this.delete=function(t){return r.store.removeItem(t)}})),B=M((function t(){var e=this;F(this,t),this.store={},this.get=function(t){return e.store[t]},this.set=function(t,r){return e.store[t]=r},this.delete=function(t){return delete e.store[t]}})),V=Math.pow(2,31)-1,G=function(){function t(e){F(this,t),!function(t){if(!t)return!1;try{var e=t(),r="x-x-x-x".replace(/x/g,(function(){return Math.random()}));e.setItem(r,"TEST-VALUE");var n=e.getItem(r);return e.removeItem(r),"TEST-VALUE"===n}catch(t){return!1}}(e)?(this.cache=new B,this.type="ObjectLiteralStorage"):(this.cache=new D(e()),this.type="WebStorage")}return M(t,[{key:"get",value:function(t){try{var e=function(t){try{return JSON.parse(t)}catch(t){return null}}(this.cache.get(t));return e&&Number.isInteger(e.expiresOn)&&e.expiresOn>Date.now()?e.value:(this.delete(t),null)}catch(t){throw new p(t)}}},{key:"set",value:function(t,e){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!(n<=0)){n=Math.min(V,n);try{var o=Math.floor(Date.now()+n);this.cache.set(t,JSON.stringify({expiresOn:o,value:e})),setTimeout((function(){return r.delete(t)}),n)}catch(t){throw new p(t)}}}},{key:"delete",value:function(t){try{this.cache.delete(t)}catch(t){throw new p(t)}}}]),t}();r(204);function q(t){return d(m(t),"Object must be an object but it is '".concat(t,"'")),Object.keys(t).map((function(e){return"".concat(e,"=").concat(t[e])})).join(",")}var W={scrollbars:"yes",location:"yes",status:"no",menubar:"no",toolbar:"no",resizable:"yes"};r(206);function Y(t){return(Y="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 $(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */$=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),u=new L(n||[]);return o(a,"_invoke",{value:A(t,r,u)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var h="suspendedStart",p="executing",v="completed",d={};function y(){}function g(){}function m(){}var b={};s(b,a,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(P([])));x&&x!==r&&n.call(x,a)&&(b=x);var S=m.prototype=y.prototype=Object.create(b);function E(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,a,u){var c=l(t[o],t,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==Y(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,u)}))}u(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function A(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=_(u,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var s=l(e,r,n);if("normal"===s.type){if(o=n.done?v:"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=v,n.method="throw",n.arg=s.arg)}}}function _(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,_(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,d;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,d):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(Y(e)+" is not iterable")}return g.prototype=m,o(S,"constructor",{value:m,configurable:!0}),o(m,"constructor",{value:g,configurable:!0}),g.displayName=s(m,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,s(t,c,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},E(O.prototype),s(O.prototype,u,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new O(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(S),s(S,c,"Generator"),s(S,a,(function(){return this})),s(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=P,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),d}},e}function z(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function H(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=n.key,i=void 0,i=function(t,e){if("object"!==Y(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"),"symbol"===Y(i)?i:String(i)),n)}var o,i}var K=function(t){return t.map((function(t){return m(t)?JSON.stringify(t,null,2):t})).join(" ")},J=function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return"function"==typeof t&&t(K(r))};function X(t){var e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}var Q=function(){function t(e){var r=e.serverUrl,n=void 0===r?"PRE":r,o=e.envDic,i=e.fetch,a=void 0===i?window.fetch&&window.fetch.bind(window):i,u=e.log,c=e.defaultParams,s=void 0===c?{}:c;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),d(m(s),"defaultParams should be a non-null object"),this.url=new URL(L(n,o)),this.defaultParams=s,u&&(d(x(u),"log must be a function but it is ".concat(u)),this.log=u),a&&(d(x(a),"Fetch should be a function"),this.fetch=a)}var e,r,n,o,i;return e=t,r=[{key:"go",value:(o=$().mark((function t(e){var r,n,o,i,a,u,c,s,f,l,h,v,b;return $().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.method,n=e.headers,o=e.pathname,i=e.data,a=void 0===i?{}:i,u=e.useDefaultParams,c=void 0===u||u,s=e.fetchOptions,f=void 0===s?{method:r,credentials:"include"}:s,d(x(this.fetch),"Can't make a call. The reference to fetch is missing or not a function."),d(g(r),'Method must be a non empty string but it is "'.concat(r,'"')),d(g(o),'Pathname must be string but it is "'.concat(o,'"')),d(m(a),"data must be a non-null object"),f.headers=m(n)?_(n):{},l=this.makeUrl(o,a,c),J(this.log,"Request:",f.method.toUpperCase(),l),J(this.log,"Request Headers:",f.headers),J(this.log,"Request Body:",f.body),t.prev=10,t.next=13,this.fetch(l,f);case 13:if(h=t.sent,J(this.log,"Response Code:",h.status,h.statusText),h.ok){t.next=17;break}throw new p(h.statusText,{code:h.status});case 17:return t.next=19,h.json();case 19:return v=t.sent,J(this.log,"Response Parsed:",v),t.abrupt("return",v);case 24:throw t.prev=24,t.t0=t.catch(10),b=y(t.t0)?t.t0:"Unknown RESTClient error",m(t.t0)&&y(t.t0.message)&&(b=t.t0.message),new p("Failed to '".concat(r,"' '").concat(l,"': '").concat(b,"'"),t.t0);case 29:case"end":return t.stop()}}),t,this,[[10,24]])})),i=function(){var t=this,e=arguments;return new Promise((function(r,n){var i=o.apply(t,e);function a(t){z(i,r,n,a,u,"next",t)}function u(t){z(i,r,n,a,u,"throw",t)}a(void 0)}))},function(t){return i.apply(this,arguments)})},{key:"makeUrl",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=new URL(e,this.url);return o.search=t.search(r,n,this.defaultParams),o.href}},{key:"get",value:function(t,e){return this.go({method:"get",pathname:t,data:e})}}],n=[{key:"search",value:function(t,e,r){var n=e?_(r,t):_(t);return Object.keys(n).filter((function(t){return""!==n[t]})).map((function(t){return"".concat(X(t),"=").concat(X(n[t]))})).join("&")}}],r&&H(e.prototype,r),n&&H(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Z(t){return(Z="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 tt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */tt=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),u=new L(n||[]);return o(a,"_invoke",{value:A(t,r,u)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var h="suspendedStart",p="executing",v="completed",d={};function y(){}function g(){}function m(){}var b={};s(b,a,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(P([])));x&&x!==r&&n.call(x,a)&&(b=x);var S=m.prototype=y.prototype=Object.create(b);function E(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,a,u){var c=l(t[o],t,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==nt(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,u)}))}u(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function A(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=_(u,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var s=l(e,r,n);if("normal"===s.type){if(o=n.done?v:"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=v,n.method="throw",n.arg=s.arg)}}}function _(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,_(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,d;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,d):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(nt(e)+" is not iterable")}return g.prototype=m,o(S,"constructor",{value:m,configurable:!0}),o(m,"constructor",{value:g,configurable:!0}),g.displayName=s(m,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,s(t,c,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},E(O.prototype),s(O.prototype,u,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new O(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(S),s(S,c,"Generator"),s(S,a,(function(){return this})),s(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=P,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),d}},e}function et(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function rt(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){et(i,n,o,a,u,"next",t)}function u(t){et(i,n,o,a,u,"throw",t)}a(void 0)}))}}function nt(t){return(nt="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 ot(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=n.key,i=void 0,i=function(t,e){if("object"!==nt(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==nt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"),"symbol"===nt(i)?i:String(i)),n)}var o,i}function it(t,e){return(it=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function at(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=ct(t);if(e){var o=ct(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return ut(this,r)}}function ut(t,e){if(e&&("object"===nt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function ct(t){return(ct=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var st=function(){return window},ft=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&it(t,e)}(E,t);var e,r,n,o,i,a,u,c,s,f,l,h,v,b=at(E);function E(t){var e,r,n=t.clientId,o=t.redirectUri,i=t.sessionDomain,a=t.env,u=void 0===a?"PRE":a,c=t.log,s=t.window,f=void 0===s?st():s,l=t.callbackBeforeRedirect,h=void 0===l?function(){}:l;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,E),e=b.call(this),d(g(n),"clientId parameter is required"),d(m(f),"The reference to window is missing"),d(!o||w(o),"redirectUri parameter is invalid"),d(i&&w(i),"sessionDomain parameter is not a valid URL"),null!==(r=f).SPiD&&"object"===Z(r.SPiD)||(r.SPiD={}),null!==r.SPiD.Talk&&"object"===Z(r.SPiD.Talk)||(r.SPiD.Talk={}),x(r.SPiD.Talk.response)||(r.SPiD.Talk.response=function(t,e){return r[t](e)}),e._sessionInitiatedSent=!1,e.window=f,e.clientId=n,e.cache=new G((function(){return e.window&&e.window.sessionStorage})),e.redirectUri=o,e.env=u,e.log=c,e.callbackBeforeRedirect=h,e._sessionDomain=i,e._enableSessionCaching=!0,e._session={},e._setSessionServiceUrl(i),e._setSpidServerUrl(u),e._setBffServerUrl(u),e._setOauthServerUrl(u),e._setGlobalSessionServiceUrl(u),e}return e=E,(r=[{key:"_setSpidServerUrl",value:function(t){d(y(t),"url parameter is invalid: ".concat(t)),this._spid=new Q({serverUrl:L(t,T.SPiD),log:this.log,defaultParams:{client_id:this.clientId,redirect_uri:this.redirectUri}})}},{key:"_setOauthServerUrl",value:function(t){d(y(t),"url parameter is invalid: ".concat(t)),this._oauthService=new Q({serverUrl:L(t,T.SPiD),log:this.log,defaultParams:{client_id:this.clientId,redirect_uri:this.redirectUri}})}},{key:"_setBffServerUrl",value:function(t){d(y(t),"url parameter is invalid: ".concat(t)),this._bffService=new Q({serverUrl:L(t,T.BFF),log:this.log,defaultParams:{client_id:this.clientId,redirect_uri:this.redirectUri}})}},{key:"_setSessionServiceUrl",value:function(t){d(y(t),"domain parameter is invalid: ".concat(t));var e="sdrn:".concat(I[this.env],":client:").concat(this.clientId);this._sessionService=new Q({serverUrl:t,log:this.log,defaultParams:{client_sdrn:e,redirect_uri:this.redirectUri,sdk_version:"4.8.7-beta"}})}},{key:"_setGlobalSessionServiceUrl",value:function(t){d(y(t),"url parameter is invalid: ".concat(t));var e="sdrn:".concat(I[this.env],":client:").concat(this.clientId);this._globalSessionService=new Q({serverUrl:L(t,T.SESSION_SERVICE),log:this.log,defaultParams:{client_sdrn:e,sdk_version:"4.8.7-beta"}})}},{key:"_emitSessionEvent",value:function(t,e){e.userId&&this.emit("login",e),t.userId&&!e.userId&&this.emit("logout",e),t.userId&&e.userId&&t.userId!==e.userId&&this.emit("userChange",e),t.userId||e.userId?this.emit("sessionChange",e):this.emit("notLoggedin",e),e.userId&&!this._sessionInitiatedSent&&(this._sessionInitiatedSent=!0,this.emit("sessionInit",e)),t.userStatus!==e.userStatus&&this.emit("statusChange",e)}},{key:"_closePopup",value:function(){this.popup&&(this.popup.closed||this.popup.close(),this.popup=null)}},{key:"enableVarnishCookie",value:function(t){var e,r=0;Number.isInteger(t)?r=t:"object"==nt(t)&&(r=t.expiresIn||r,e=t.domain||e),d(Number.isInteger(r),"'expiresIn' must be an integer"),d(r>=0,"'expiresIn' cannot be negative"),this.setVarnishCookie=!0,this.varnishExpiresIn=r,this.varnishCookieDomain=e}},{key:"_maybeSetVarnishCookie",value:function(t){if(this.setVarnishCookie){var e=new Date;if(this.varnishExpiresIn||"number"==typeof t.expiresIn&&t.expiresIn>0){var r=this.varnishExpiresIn||t.expiresIn;e.setTime(e.getTime()+1e3*r)}else e.setTime(0);var n=this.varnishCookieDomain||("string"==typeof t.baseDomain?t.baseDomain:document.domain)||"",o=["SP_ID=".concat(t.sp_id),"expires=".concat(e.toUTCString()),"path=/","domain=.".concat(n)].join("; ");document.cookie=o}}},{key:"_maybeClearVarnishCookie",value:function(){this.setVarnishCookie&&this._clearVarnishCookie()}},{key:"_clearVarnishCookie",value:function(){var t=this._session&&"string"==typeof this._session.baseDomain?this._session.baseDomain:document.domain,e=this.varnishCookieDomain||t||"";document.cookie="SP_ID=nothing; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; domain=.".concat(e)}},{key:"logSettings",value:function(){if(!this.log&&!window.console)throw new p("You have to provide log method in constructor");var t=this.log||console.log,e={clientId:this.clientId,redirectUri:this.redirectUri,env:this.env,sessionDomain:this._sessionDomain,sdkVersion:"4.8.7-beta"};t("Schibsted account SDK for browsers settings: \n".concat(JSON.stringify(e,null,2)))}},{key:"hasSession",value:function(){var t=this;if(this._hasSessionInProgress)return this._hasSessionInProgress;var e=function(e){if(e.error)throw new p("HasSession failed",e.error);return t._maybeSetVarnishCookie(e),t._emitSessionEvent(t._session,e),t._session=e,e},r=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Object.keys(t);return 1===e.length&&"redirectURL"===e[0]},n=function(){var n=rt(tt().mark((function n(){var o,i,a,u;return tt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!t._enableSessionCaching){n.next=4;break}if(!(o=t.cache.get("hasSession-cache"))){n.next=4;break}return n.abrupt("return",e(o));case 4:return i=null,n.prev=5,n.next=8,t._sessionService.get("/v2/session");case 8:i=n.sent,n.next=15;break;case 11:throw n.prev=11,n.t0=n.catch(5),n.t0&&400===n.t0.code&&t._enableSessionCaching&&(a=1e3*(n.t0.expiresIn||300),t.cache.set("hasSession-cache",{error:n.t0},a)),n.t0;case 15:if(!i){n.next=22;break}if(!r(i)){n.next=21;break}return n.next=19,t.callbackBeforeRedirect();case 19:return t.window.location.href=t._sessionService.makeUrl(i.redirectURL,{redirect_uri:t.window.location.origin}),n.abrupt("return");case 21:t._enableSessionCaching&&(u=1e3*(i.expiresIn||300),t.cache.set("hasSession-cache",i,u));case 22:return n.abrupt("return",e(i));case 23:case"end":return n.stop()}}),n,null,[[5,11]])})));return function(){return n.apply(this,arguments)}}();return this._hasSessionInProgress=n().then((function(e){return t._hasSessionInProgress=!1,e}),(function(e){throw t.emit("error",e),t._hasSessionInProgress=!1,new p("HasSession failed",e)})),this._hasSessionInProgress}},{key:"isLoggedIn",value:(v=rt(tt().mark((function t(){var e;return tt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.hasSession();case 3:return e=t.sent,t.abrupt("return","result"in e);case 7:return t.prev=7,t.t0=t.catch(0),t.abrupt("return",!1);case 10:case"end":return t.stop()}}),t,this,[[0,7]])}))),function(){return v.apply(this,arguments)})},{key:"clearCachedUserSession",value:function(){this.cache.delete("hasSession-cache")}},{key:"isConnected",value:(h=rt(tt().mark((function t(){var e;return tt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.hasSession();case 3:return e=t.sent,t.abrupt("return",!!e.result);case 7:return t.prev=7,t.t0=t.catch(0),t.abrupt("return",!1);case 10:case"end":return t.stop()}}),t,this,[[0,7]])}))),function(){return h.apply(this,arguments)})},{key:"getUser",value:(l=rt(tt().mark((function t(){var e;return tt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.hasSession();case 2:if((e=t.sent).result){t.next=5;break}throw new p("The user is not connected to this merchant");case 5:return t.abrupt("return",k(e));case 6:case"end":return t.stop()}}),t,this)}))),function(){return l.apply(this,arguments)})},{key:"getUserId",value:(f=rt(tt().mark((function t(){var e;return tt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.hasSession();case 2:if(!(e=t.sent).userId||!e.result){t.next=5;break}return t.abrupt("return",e.userId);case 5:throw new p("The user is not connected to this merchant");case 6:case"end":return t.stop()}}),t,this)}))),function(){return f.apply(this,arguments)})},{key:"getExternalId",value:(s=rt(tt().mark((function t(e){var r,n,o,i,a,u,c,s=arguments;return tt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=s.length>1&&void 0!==s[1]?s[1]:"",t.next=3,this.hasSession();case 3:if(n=t.sent,o=n.pairId){t.next=7;break}throw new p("pairId missing in user session!");case 7:if(e&&0!==e.length){t.next=9;break}throw new p("externalParty cannot be empty");case 9:return i=function(t){return Array.from(new Uint8Array(t)).map((function(t){return t.toString(16).padStart(2,"0")})).join("")},a=function(t){return crypto.subtle.digest("SHA-256",t)},u=function(){var t=rt(tt().mark((function t(e){var r;return tt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=(new TextEncoder).encode(e),t.abrupt("return",a(r).then((function(t){return i(t)})));case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),c=function(t,e,r){return r?"".concat(t,":").concat(e,":").concat(r):"".concat(t,":").concat(e)},t.abrupt("return",u(c(o,e,r)));case 14:case"end":return t.stop()}}),t,this)}))),function(t){return s.apply(this,arguments)})},{key:"getUserSDRN",value:(c=rt(tt().mark((function t(){var e,r;return tt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.hasSession();case 2:if(e=t.sent,!(r=e.sdrn)){t.next=6;break}return t.abrupt("return",r);case 6:throw new p("Failed to get SDRN from user session");case 7:case"end":return t.stop()}}),t,this)}))),function(){return c.apply(this,arguments)})},{key:"getUserUuid",value:(u=rt(tt().mark((function t(){var e;return tt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.hasSession();case 2:if(!(e=t.sent).uuid||!e.result){t.next=5;break}return t.abrupt("return",e.uuid);case 5:throw new p("The user is not connected to this merchant");case 6:case"end":return t.stop()}}),t,this)}))),function(){return u.apply(this,arguments)})},{key:"getUserContextData",value:(a=rt(tt().mark((function t(){return tt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this._globalSessionService.get("/user-context");case 3:return t.abrupt("return",t.sent);case 6:return t.prev=6,t.t0=t.catch(0),t.abrupt("return",null);case 9:case"end":return t.stop()}}),t,this,[[0,6]])}))),function(){return a.apply(this,arguments)})},{key:"login",value:function(t){var e=t.state,r=t.acrValues,n=void 0===r?"":r,o=t.scope,i=void 0===o?"openid":o,a=t.redirectUri,u=void 0===a?this.redirectUri:a,c=t.preferPopup,s=void 0!==c&&c,f=t.loginHint,l=void 0===f?"":f,h=t.tag,p=void 0===h?"":h,v=t.teaser,y=void 0===v?"":v,g=t.maxAge,b=void 0===g?"":g,S=t.locale,E=void 0===S?"":S,O=t.oneStepLogin,A=void 0!==O&&O,k=t.prompt,j=void 0===k?"select_account":k;this._closePopup(),this.cache.delete("hasSession-cache");var L=this.loginUrl({state:e,acrValues:n,scope:i,redirectUri:u,loginHint:l,tag:p,teaser:y,maxAge:b,locale:E,oneStepLogin:A,prompt:j});return s&&(this.popup=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};d(m(t),"window was supposed to be an object but it is ".concat(t)),d(m(t.screen),"window should be a valid Window object but it lacks a 'screen' property"),d(x(t.open),"window should be a valid Window object but it lacks an 'open' function"),d(w(e),"Invalid URL for popup");var o=t.screen,i=o.height,a=o.width,u=_(W,n);Number.isFinite(u.width)&&Number.isFinite(a)&&(u.left=(a-u.width)/2),Number.isFinite(u.height)&&Number.isFinite(i)&&(u.top=(i-u.height)/2);var c=q(u);return t.open(e,r,c)}(this.window,L,"Schibsted account",{width:360,height:570}),this.popup)?this.popup:(this.window.location.href=L,null)}},{key:"getSpId",value:(i=rt(tt().mark((function t(){var e;return tt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.hasSession();case 3:return e=t.sent,t.abrupt("return",e.sp_id||null);case 7:return t.prev=7,t.t0=t.catch(0),t.abrupt("return",null);case 10:case"end":return t.stop()}}),t,this,[[0,7]])}))),function(){return i.apply(this,arguments)})},{key:"logout",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.redirectUri;this.cache.delete("hasSession-cache"),this._maybeClearVarnishCookie(),this.emit("logout"),this.window.location.href=this.logoutUrl(t)}},{key:"loginUrl",value:function(t){var e=t.state,r=t.acrValues,n=void 0===r?"":r,o=t.scope,i=void 0===o?"openid":o,a=t.redirectUri,u=void 0===a?this.redirectUri:a,c=t.loginHint,s=void 0===c?"":c,f=t.tag,l=void 0===f?"":f,h=t.teaser,p=void 0===h?"":h,v=t.maxAge,y=void 0===v?"":v,m=t.locale,b=void 0===m?"":m,x=t.oneStepLogin,E=void 0!==x&&x,O=t.prompt,A=void 0===O?"select_account":O;"object"!==nt(arguments[0])&&(e=arguments[0],n=arguments[1],i=arguments[2]||i,u=arguments[3]||u,s=arguments[4]||s,l=arguments[5]||l,p=arguments[6]||p,y=isNaN(arguments[7])?y:arguments[7]);var _=function(t){return S(t,["password","otp","sms","eid-no","eid-se","eid-fi","eid"],!0)};return d(!n||S(n,["","otp-email"],!0)||n.split(" ").every(_),"The acrValues parameter is not acceptable: ".concat(n)),d(w(u),"loginUrl(): redirectUri must be a valid url but is ".concat(u)),d(g(e),"the state parameter should be a non empty string but it is ".concat(e)),this._oauthService.makeUrl("oauth/authorize",{response_type:"code",redirect_uri:u,scope:i,state:e,acr_values:n,login_hint:s,tag:l,teaser:p,max_age:y,locale:b,one_step_login:E||"",prompt:n?"":A})}},{key:"logoutUrl",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.redirectUri;d(w(t),"logoutUrl(): redirectUri is invalid");var e={redirect_uri:t};return this._sessionService.makeUrl("logout",e)}},{key:"accountUrl",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.redirectUri;return this._spid.makeUrl("profile-pages",{response_type:"code",redirect_uri:t})}},{key:"phonesUrl",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.redirectUri;return this._spid.makeUrl("profile-pages/about-you/phone",{response_type:"code",redirect_uri:t})}},{key:"showSimplifiedLoginWidget",value:(o=rt(tt().mark((function t(e,r){var n,o,i,a,u=this;return tt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getUserContextData();case 2:return n=t.sent,o={client_id:this.clientId},r&&r.encoding&&(o.encoding=r.encoding),i=this._bffService.makeUrl("simplified-login-widget",o,!1),a=function(){var t=rt(tt().mark((function t(e){return tt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("function"!=typeof e.state){t.next=4;break}return t.next=3,e.state();case 3:e.state=t.sent;case 4:return t.abrupt("return",e);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),t.abrupt("return",new Promise((function(t,o){if(!n||!n.display_text||!n.identifier)return o(new p("Missing user data"));var c={displayText:n.display_text,env:u.env,clientName:n.client_name,clientId:u.clientId,providerId:n.provider_id,windowWidth:function(){return window.innerWidth},windowOnResize:function(t){window.onresize=t}};r&&r.locale&&(c.locale=r.locale);var s=function(){var t=rt(tt().mark((function t(){return tt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=u,t.t1=Object,t.next=4,a(e);case 4:t.t2=t.sent,t.t3={loginHint:n.identifier},t.t4=t.t1.assign.call(t.t1,t.t2,t.t3),t.t0.login.call(t.t0,t.t4);case 8:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),f=function(){var t=rt(tt().mark((function t(){return tt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=u,t.t1=Object,t.next=4,a(e);case 4:t.t2=t.sent,t.t3={loginHint:n.identifier,prompt:"login"},t.t4=t.t1.assign.call(t.t1,t.t2,t.t3),t.t0.login.call(t.t0,t.t4);case 8:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),l=function(){u.emit("simplifiedLoginOpened")},h=function(){u.emit("simplifiedLoginCancelled")};if(window.openSimplifiedLoginWidget)return window.openSimplifiedLoginWidget(c,s,f,l,h),t(!0);var v=document.createElement("script");v.type="text/javascript",v.src=i,v.onload=function(){window.openSimplifiedLoginWidget(c,s,f,l,h),t(!0)},v.onerror=function(){o(new p("Error when loading simplified login widget content"))},document.getElementsByTagName("body")[0].appendChild(v)})));case 8:case"end":return t.stop()}}),t,this)}))),function(t,e){return o.apply(this,arguments)})}])&&ot(e.prototype,r),n&&ot(e,n),Object.defineProperty(e,"prototype",{writable:!1}),E}(U.a);e.default=ft}]);
1
+ module.exports=function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=138)}([function(t,e,r){(function(e){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||Function("return this")()}).call(this,r(140))},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,r){var n=r(0),o=r(36).f,i=r(11),a=r(13),u=r(69),c=r(95),s=r(57);t.exports=function(t,e){var r,f,l,h,p,v=t.target,d=t.global,y=t.stat;if(r=d?n:y?n[v]||u(v,{}):(n[v]||{}).prototype)for(f in e){if(h=e[f],l=t.noTargetGet?(p=o(r,f))&&p.value:r[f],!s(d?f:v+(y?".":"#")+f,t.forced)&&void 0!==l){if(typeof h==typeof l)continue;c(h,l)}(t.sham||l&&l.sham)&&i(h,"sham",!0),a(r,f,h,t)}}},function(t,e,r){"use strict";var n,o=r(111),i=r(9),a=r(0),u=r(5),c=r(6),s=r(50),f=r(11),l=r(13),h=r(10).f,p=r(51),v=r(40),d=r(4),y=r(44),g=a.Int8Array,m=g&&g.prototype,b=a.Uint8ClampedArray,w=b&&b.prototype,x=g&&p(g),S=m&&p(m),E=Object.prototype,O=E.isPrototypeOf,A=d("toStringTag"),_=y("TYPED_ARRAY_TAG"),k=o&&!!v&&"Opera"!==s(a.opera),j=!1,L={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},P=function(t){return u(t)&&c(L,s(t))};for(n in L)a[n]||(k=!1);if((!k||"function"!=typeof x||x===Function.prototype)&&(x=function(){throw TypeError("Incorrect invocation")},k))for(n in L)a[n]&&v(a[n],x);if((!k||!S||S===E)&&(S=x.prototype,k))for(n in L)a[n]&&v(a[n].prototype,S);if(k&&p(w)!==S&&v(w,S),i&&!c(S,A))for(n in j=!0,h(S,A,{get:function(){return u(this)?this[_]:void 0}}),L)a[n]&&f(a[n],_,n);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:k,TYPED_ARRAY_TAG:j&&_,aTypedArray:function(t){if(P(t))return t;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(t){if(v){if(O.call(x,t))return t}else for(var e in L)if(c(L,n)){var r=a[e];if(r&&(t===r||O.call(r,t)))return t}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(t,e,r){if(i){if(r)for(var n in L){var o=a[n];o&&c(o.prototype,t)&&delete o.prototype[t]}S[t]&&!r||l(S,t,r?e:k&&m[t]||e)}},exportTypedArrayStaticMethod:function(t,e,r){var n,o;if(i){if(v){if(r)for(n in L)(o=a[n])&&c(o,t)&&delete o[t];if(x[t]&&!r)return;try{return l(x,t,r?e:k&&g[t]||e)}catch(t){}}for(n in L)!(o=a[n])||o[t]&&!r||l(o,t,e)}},isView:function(t){var e=s(t);return"DataView"===e||c(L,e)},isTypedArray:P,TypedArray:x,TypedArrayPrototype:S}},function(t,e,r){var n=r(0),o=r(71),i=r(6),a=r(44),u=r(75),c=r(99),s=o("wks"),f=n.Symbol,l=c?f:f&&f.withoutSetter||a;t.exports=function(t){return i(s,t)||(u&&i(f,t)?s[t]=f[t]:s[t]=l("Symbol."+t)),s[t]}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},function(t,e,r){var n=r(5);t.exports=function(t){if(!n(t))throw TypeError(String(t)+" is not an object");return t}},function(t,e,r){var n=r(19),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},function(t,e,r){var n=r(1);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,e,r){var n=r(9),o=r(93),i=r(7),a=r(31),u=Object.defineProperty;e.f=n?u:function(t,e,r){if(i(t),e=a(e,!0),i(r),o)try{return u(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},function(t,e,r){var n=r(9),o=r(10),i=r(30);t.exports=n?function(t,e,r){return o.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e,r){var n=r(22);t.exports=function(t){return Object(n(t))}},function(t,e,r){var n=r(0),o=r(11),i=r(6),a=r(69),u=r(70),c=r(17),s=c.get,f=c.enforce,l=String(String).split("String");(t.exports=function(t,e,r,u){var c=!!u&&!!u.unsafe,s=!!u&&!!u.enumerable,h=!!u&&!!u.noTargetGet;"function"==typeof r&&("string"!=typeof e||i(r,"name")||o(r,"name",e),f(r).source=l.join("string"==typeof e?e:"")),t!==n?(c?!h&&t[e]&&(s=!0):delete t[e],s?t[e]=r:o(t,e,r)):s?t[e]=r:a(e,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&s(this).source||u(this)}))},function(t,e,r){var n=r(33),o=r(43),i=r(12),a=r(8),u=r(98),c=[].push,s=function(t){var e=1==t,r=2==t,s=3==t,f=4==t,l=6==t,h=5==t||l;return function(p,v,d,y){for(var g,m,b=i(p),w=o(b),x=n(v,d,3),S=a(w.length),E=0,O=y||u,A=e?O(p,S):r?O(p,0):void 0;S>E;E++)if((h||E in w)&&(m=x(g=w[E],E,b),t))if(e)A[E]=m;else if(m)switch(t){case 3:return!0;case 5:return g;case 6:return E;case 2:c.call(A,g)}else if(f)return!1;return l?-1:s||f?f:A}};t.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6)}},function(t,e,r){"use strict";var n=r(16),o=r(109),i=r(48),a=r(17),u=r(83),c=a.set,s=a.getterFor("Array Iterator");t.exports=u(Array,"Array",(function(t,e){c(this,{type:"Array Iterator",target:n(t),index:0,kind:e})}),(function(){var t=s(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(t,e,r){var n=r(43),o=r(22);t.exports=function(t){return n(o(t))}},function(t,e,r){var n,o,i,a=r(141),u=r(0),c=r(5),s=r(11),f=r(6),l=r(55),h=r(45),p=u.WeakMap;if(a){var v=new p,d=v.get,y=v.has,g=v.set;n=function(t,e){return g.call(v,t,e),e},o=function(t){return d.call(v,t)||{}},i=function(t){return y.call(v,t)}}else{var m=l("state");h[m]=!0,n=function(t,e){return s(t,m,e),e},o=function(t){return f(t,m)?t[m]:{}},i=function(t){return f(t,m)}}t.exports={set:n,get:o,has:i,enforce:function(t){return i(t)?o(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!c(e)||(r=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}}},function(t,e,r){var n=r(10).f,o=r(6),i=r(4)("toStringTag");t.exports=function(t,e,r){t&&!o(t=r?t:t.prototype,i)&&n(t,i,{configurable:!0,value:e})}},function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},function(t,e,r){"use strict";var n=r(82).charAt,o=r(17),i=r(83),a=o.set,u=o.getterFor("String Iterator");i(String,"String",(function(t){a(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=u(this),r=e.string,o=e.index;return o>=r.length?{value:void 0,done:!0}:(t=n(r,o),e.index+=t.length,{value:t,done:!1})}))},function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,r){var n=r(96),o=r(0),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?i(n[t])||i(o[t]):n[t]&&n[t][e]||o[t]&&o[t][e]}},function(t,e,r){var n,o=r(7),i=r(101),a=r(72),u=r(45),c=r(102),s=r(68),f=r(55),l=f("IE_PROTO"),h=function(){},p=function(t){return"<script>"+t+"<\/script>"},v=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;v=n?function(t){t.write(p("")),t.close();var e=t.parentWindow.Object;return t=null,e}(n):((e=s("iframe")).style.display="none",c.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(p("document.F=Object")),t.close(),t.F);for(var r=a.length;r--;)delete v.prototype[a[r]];return v()};u[l]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(h.prototype=o(t),r=new h,h.prototype=null,r[l]=t):r=v(),void 0===e?r:i(r,e)}},function(t,e,r){var n=r(81),o=r(13),i=r(149);n||o(Object.prototype,"toString",i,{unsafe:!0})},function(t,e,r){"use strict";var n=r(2),o=r(0),i=r(23),a=r(37),u=r(9),c=r(75),s=r(99),f=r(1),l=r(6),h=r(58),p=r(5),v=r(7),d=r(12),y=r(16),g=r(31),m=r(30),b=r(24),w=r(47),x=r(38),S=r(191),E=r(73),O=r(36),A=r(10),_=r(54),k=r(11),j=r(13),L=r(71),P=r(55),T=r(45),I=r(44),R=r(4),U=r(124),N=r(52),C=r(18),M=r(17),F=r(14).forEach,D=P("hidden"),B=R("toPrimitive"),V=M.set,G=M.getterFor("Symbol"),q=Object.prototype,W=o.Symbol,Y=i("JSON","stringify"),$=O.f,z=A.f,H=S.f,K=_.f,J=L("symbols"),X=L("op-symbols"),Q=L("string-to-symbol-registry"),Z=L("symbol-to-string-registry"),tt=L("wks"),et=o.QObject,rt=!et||!et.prototype||!et.prototype.findChild,nt=u&&f((function(){return 7!=b(z({},"a",{get:function(){return z(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=$(q,e);n&&delete q[e],z(t,e,r),n&&t!==q&&z(q,e,n)}:z,ot=function(t,e){var r=J[t]=b(W.prototype);return V(r,{type:"Symbol",tag:t,description:e}),u||(r.description=e),r},it=s?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof W},at=function(t,e,r){t===q&&at(X,e,r),v(t);var n=g(e,!0);return v(r),l(J,n)?(r.enumerable?(l(t,D)&&t[D][n]&&(t[D][n]=!1),r=b(r,{enumerable:m(0,!1)})):(l(t,D)||z(t,D,m(1,{})),t[D][n]=!0),nt(t,n,r)):z(t,n,r)},ut=function(t,e){v(t);var r=y(e),n=w(r).concat(lt(r));return F(n,(function(e){u&&!ct.call(r,e)||at(t,e,r[e])})),t},ct=function(t){var e=g(t,!0),r=K.call(this,e);return!(this===q&&l(J,e)&&!l(X,e))&&(!(r||!l(this,e)||!l(J,e)||l(this,D)&&this[D][e])||r)},st=function(t,e){var r=y(t),n=g(e,!0);if(r!==q||!l(J,n)||l(X,n)){var o=$(r,n);return!o||!l(J,n)||l(r,D)&&r[D][n]||(o.enumerable=!0),o}},ft=function(t){var e=H(y(t)),r=[];return F(e,(function(t){l(J,t)||l(T,t)||r.push(t)})),r},lt=function(t){var e=t===q,r=H(e?X:y(t)),n=[];return F(r,(function(t){!l(J,t)||e&&!l(q,t)||n.push(J[t])})),n};(c||(j((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,e=I(t),r=function(t){this===q&&r.call(X,t),l(this,D)&&l(this[D],e)&&(this[D][e]=!1),nt(this,e,m(1,t))};return u&&rt&&nt(q,e,{configurable:!0,set:r}),ot(e,t)}).prototype,"toString",(function(){return G(this).tag})),j(W,"withoutSetter",(function(t){return ot(I(t),t)})),_.f=ct,A.f=at,O.f=st,x.f=S.f=ft,E.f=lt,U.f=function(t){return ot(R(t),t)},u&&(z(W.prototype,"description",{configurable:!0,get:function(){return G(this).description}}),a||j(q,"propertyIsEnumerable",ct,{unsafe:!0}))),n({global:!0,wrap:!0,forced:!c,sham:!c},{Symbol:W}),F(w(tt),(function(t){N(t)})),n({target:"Symbol",stat:!0,forced:!c},{for:function(t){var e=String(t);if(l(Q,e))return Q[e];var r=W(e);return Q[e]=r,Z[r]=e,r},keyFor:function(t){if(!it(t))throw TypeError(t+" is not a symbol");if(l(Z,t))return Z[t]},useSetter:function(){rt=!0},useSimple:function(){rt=!1}}),n({target:"Object",stat:!0,forced:!c,sham:!u},{create:function(t,e){return void 0===e?b(t):ut(b(t),e)},defineProperty:at,defineProperties:ut,getOwnPropertyDescriptor:st}),n({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:ft,getOwnPropertySymbols:lt}),n({target:"Object",stat:!0,forced:f((function(){E.f(1)}))},{getOwnPropertySymbols:function(t){return E.f(d(t))}}),Y)&&n({target:"JSON",stat:!0,forced:!c||f((function(){var t=W();return"[null]"!=Y([t])||"{}"!=Y({a:t})||"{}"!=Y(Object(t))}))},{stringify:function(t,e,r){for(var n,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(n=e,(p(e)||void 0!==t)&&!it(t))return h(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!it(e))return e}),o[1]=e,Y.apply(null,o)}});W.prototype[B]||k(W.prototype,B,W.prototype.valueOf),C(W,"Symbol"),T[D]=!0},function(t,e,r){"use strict";var n=r(2),o=r(9),i=r(0),a=r(6),u=r(5),c=r(10).f,s=r(95),f=i.Symbol;if(o&&"function"==typeof f&&(!("description"in f.prototype)||void 0!==f().description)){var l={},h=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof h?new f(t):void 0===t?f():f(t);return""===t&&(l[e]=!0),e};s(h,f);var p=h.prototype=f.prototype;p.constructor=h;var v=p.toString,d="Symbol(test)"==String(f("test")),y=/^Symbol\((.*)\)[^)]+$/;c(p,"description",{configurable:!0,get:function(){var t=u(this)?this.valueOf():this,e=v.call(t);if(a(l,t))return"";var r=d?e.slice(7,-1):e.replace(y,"$1");return""===r?void 0:r}}),n({global:!0,forced:!0},{Symbol:h})}},function(t,e,r){r(52)("iterator")},function(t,e,r){var n=r(0),o=r(125),i=r(15),a=r(11),u=r(4),c=u("iterator"),s=u("toStringTag"),f=i.values;for(var l in o){var h=n[l],p=h&&h.prototype;if(p){if(p[c]!==f)try{a(p,c,f)}catch(t){p[c]=f}if(p[s]||a(p,s,l),o[l])for(var v in i)if(p[v]!==i[v])try{a(p,v,i[v])}catch(t){p[v]=i[v]}}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,r){var n=r(5);t.exports=function(t,e){if(!n(t))return t;var r,o;if(e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!n(o=r.call(t)))return o;if(!e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,r){var n=r(2),o=r(12),i=r(47);n({target:"Object",stat:!0,forced:r(1)((function(){i(1)}))},{keys:function(t){return i(o(t))}})},function(t,e,r){var n=r(34);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 0:return function(){return t.call(e)};case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,e){t.exports=function(t,e,r){if(!(t instanceof e))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return t}},function(t,e,r){var n=r(9),o=r(54),i=r(30),a=r(16),u=r(31),c=r(6),s=r(93),f=Object.getOwnPropertyDescriptor;e.f=n?f:function(t,e){if(t=a(t),e=u(e,!0),s)try{return f(t,e)}catch(t){}if(c(t,e))return i(!o.f.call(t,e),t[e])}},function(t,e){t.exports=!1},function(t,e,r){var n=r(97),o=r(72).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},function(t,e,r){var n=r(19),o=Math.max,i=Math.min;t.exports=function(t,e){var r=n(t);return r<0?o(r+e,0):i(r,e)}},function(t,e,r){var n=r(7),o=r(144);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),e=r instanceof Array}catch(t){}return function(r,i){return n(r),o(i),e?t.call(r,i):r.__proto__=i,r}}():void 0)},function(t,e,r){var n=r(7),o=r(34),i=r(4)("species");t.exports=function(t,e){var r,a=n(t).constructor;return void 0===a||null==(r=n(a)[i])?e:o(r)}},function(t,e,r){var n=r(9),o=r(1),i=r(6),a=Object.defineProperty,u={},c=function(t){throw t};t.exports=function(t,e){if(i(u,t))return u[t];e||(e={});var r=[][t],s=!!i(e,"ACCESSORS")&&e.ACCESSORS,f=i(e,0)?e[0]:c,l=i(e,1)?e[1]:void 0;return u[t]=!!r&&!o((function(){if(s&&!n)return!0;var t={length:-1};s?a(t,1,{enumerable:!0,get:c}):t[1]=1,r.call(t,f,l)}))}},function(t,e,r){var n=r(1),o=r(21),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,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++r+n).toString(36)}},function(t,e){t.exports={}},function(t,e,r){"use strict";var n=r(9),o=r(0),i=r(57),a=r(13),u=r(6),c=r(21),s=r(78),f=r(31),l=r(1),h=r(24),p=r(38).f,v=r(36).f,d=r(10).f,y=r(145).trim,g=o.Number,m=g.prototype,b="Number"==c(h(m)),w=function(t){var e,r,n,o,i,a,u,c,s=f(t,!1);if("string"==typeof s&&s.length>2)if(43===(e=(s=y(s)).charCodeAt(0))||45===e){if(88===(r=s.charCodeAt(2))||120===r)return NaN}else if(48===e){switch(s.charCodeAt(1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+s}for(a=(i=s.slice(2)).length,u=0;u<a;u++)if((c=i.charCodeAt(u))<48||c>o)return NaN;return parseInt(i,n)}return+s};if(i("Number",!g(" 0o1")||!g("0b1")||g("+0x1"))){for(var x,S=function(t){var e=arguments.length<1?0:t,r=this;return r instanceof S&&(b?l((function(){m.valueOf.call(r)})):"Number"!=c(r))?s(new g(w(e)),r,S):w(e)},E=n?p(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),O=0;E.length>O;O++)u(g,x=E[O])&&!u(S,x)&&d(S,x,v(g,x));S.prototype=m,m.constructor=S,a(o,"Number",S)}},function(t,e,r){var n=r(97),o=r(72);t.exports=Object.keys||function(t){return n(t,o)}},function(t,e){t.exports={}},function(t,e,r){var n=r(50),o=r(48),i=r(4)("iterator");t.exports=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[n(t)]}},function(t,e,r){var n=r(81),o=r(21),i=r(4)("toStringTag"),a="Arguments"==o(function(){return arguments}());t.exports=n?o:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?r:a?o(e):"Object"==(n=o(e))&&"function"==typeof e.callee?"Arguments":n}},function(t,e,r){var n=r(6),o=r(12),i=r(55),a=r(108),u=i("IE_PROTO"),c=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=o(t),n(t,u)?t[u]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?c:null}},function(t,e,r){var n=r(96),o=r(6),i=r(124),a=r(10).f;t.exports=function(t){var e=n.Symbol||(n.Symbol={});o(e,t)||a(e,t,{value:i.f(t)})}},function(t,e,r){"use strict";var n=r(2),o=r(1),i=r(58),a=r(5),u=r(12),c=r(8),s=r(74),f=r(98),l=r(59),h=r(4),p=r(76),v=h("isConcatSpreadable"),d=p>=51||!o((function(){var t=[];return t[v]=!1,t.concat()[0]!==t})),y=l("concat"),g=function(t){if(!a(t))return!1;var e=t[v];return void 0!==e?!!e:i(t)};n({target:"Array",proto:!0,forced:!d||!y},{concat:function(t){var e,r,n,o,i,a=u(this),l=f(a,0),h=0;for(e=-1,n=arguments.length;e<n;e++)if(g(i=-1===e?a:arguments[e])){if(h+(o=c(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(r=0;r<o;r++,h++)r in i&&s(l,h,i[r])}else{if(h>=9007199254740991)throw TypeError("Maximum allowed index exceeded");s(l,h++,i)}return l.length=h,l}})},function(t,e,r){"use strict";var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!n.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:n},function(t,e,r){var n=r(71),o=r(44),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,e,r){var n=r(16),o=r(8),i=r(39),a=function(t){return function(e,r,a){var u,c=n(e),s=o(c.length),f=i(a,s);if(t&&r!=r){for(;s>f;)if((u=c[f++])!=u)return!0}else for(;s>f;f++)if((t||f in c)&&c[f]===r)return t||f||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},function(t,e,r){var n=r(1),o=/#|\.prototype\./,i=function(t,e){var r=u[a(t)];return r==s||r!=c&&("function"==typeof e?n(e):!!e)},a=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},u=i.data={},c=i.NATIVE="N",s=i.POLYFILL="P";t.exports=i},function(t,e,r){var n=r(21);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e,r){var n=r(1),o=r(4),i=r(76),a=o("species");t.exports=function(t){return i>=51||!n((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},function(t,e,r){"use strict";var n=r(2),o=r(43),i=r(16),a=r(79),u=[].join,c=o!=Object,s=a("join",",");n({target:"Array",proto:!0,forced:c||!s},{join:function(t){return u.call(i(this),void 0===t?",":t)}})},function(t,e,r){var n=r(4)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[n]=function(){return this},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},t(i)}catch(t){}return r}},function(t,e,r){var n=r(13);t.exports=function(t,e,r){for(var o in e)n(t,o,e[o],r);return t}},function(t,e,r){"use strict";var n=r(2),o=r(14).map,i=r(59),a=r(42),u=i("map"),c=a("map");n({target:"Array",proto:!0,forced:!u||!c},{map:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){r(52)("toPrimitive")},function(t,e,r){var n=r(11),o=r(190),i=r(4)("toPrimitive"),a=Date.prototype;i in a||n(a,i,o)},function(t,e,r){var n=r(9),o=r(10).f,i=Function.prototype,a=i.toString,u=/^\s*function ([^ (]*)/;n&&!("name"in i)&&o(i,"name",{configurable:!0,get:function(){try{return a.call(this).match(u)[1]}catch(t){return""}}})},function(t,e,r){"use strict";var n=r(2),o=r(92);n({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},function(t,e,r){var n=r(0),o=r(5),i=n.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},function(t,e,r){var n=r(0),o=r(11);t.exports=function(t,e){try{o(n,t,e)}catch(r){n[t]=e}return e}},function(t,e,r){var n=r(94),o=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(t){return o.call(t)}),t.exports=n.inspectSource},function(t,e,r){var n=r(37),o=r(94);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:n?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,r){"use strict";var n=r(31),o=r(10),i=r(30);t.exports=function(t,e,r){var a=n(e);a in t?o.f(t,a,i(0,r)):t[a]=r}},function(t,e,r){var n=r(1);t.exports=!!Object.getOwnPropertySymbols&&!n((function(){return!String(Symbol())}))},function(t,e,r){var n,o,i=r(0),a=r(77),u=i.process,c=u&&u.versions,s=c&&c.v8;s?o=(n=s.split("."))[0]+n[1]:a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(o=n[1]),t.exports=o&&+o},function(t,e,r){var n=r(23);t.exports=n("navigator","userAgent")||""},function(t,e,r){var n=r(5),o=r(40);t.exports=function(t,e,r){var i,a;return o&&"function"==typeof(i=e.constructor)&&i!==r&&n(a=i.prototype)&&a!==r.prototype&&o(t,a),t}},function(t,e,r){"use strict";var n=r(1);t.exports=function(t,e){var r=[][t];return!!r&&n((function(){r.call(null,e||function(){throw 1},1)}))}},function(t,e,r){var n=r(4),o=r(48),i=n("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||a[i]===t)}},function(t,e,r){var n={};n[r(4)("toStringTag")]="z",t.exports="[object z]"===String(n)},function(t,e,r){var n=r(19),o=r(22),i=function(t){return function(e,r){var i,a,u=String(o(e)),c=n(r),s=u.length;return c<0||c>=s?t?"":void 0:(i=u.charCodeAt(c))<55296||i>56319||c+1===s||(a=u.charCodeAt(c+1))<56320||a>57343?t?u.charAt(c):i:t?u.slice(c,c+2):a-56320+(i-55296<<10)+65536}};t.exports={codeAt:i(!1),charAt:i(!0)}},function(t,e,r){"use strict";var n=r(2),o=r(106),i=r(51),a=r(40),u=r(18),c=r(11),s=r(13),f=r(4),l=r(37),h=r(48),p=r(107),v=p.IteratorPrototype,d=p.BUGGY_SAFARI_ITERATORS,y=f("iterator"),g=function(){return this};t.exports=function(t,e,r,f,p,m,b){o(r,e,f);var w,x,S,E=function(t){if(t===p&&j)return j;if(!d&&t in _)return _[t];switch(t){case"keys":case"values":case"entries":return function(){return new r(this,t)}}return function(){return new r(this)}},O=e+" Iterator",A=!1,_=t.prototype,k=_[y]||_["@@iterator"]||p&&_[p],j=!d&&k||E(p),L="Array"==e&&_.entries||k;if(L&&(w=i(L.call(new t)),v!==Object.prototype&&w.next&&(l||i(w)===v||(a?a(w,v):"function"!=typeof w[y]&&c(w,y,g)),u(w,O,!0,!0),l&&(h[O]=g))),"values"==p&&k&&"values"!==k.name&&(A=!0,j=function(){return k.call(this)}),l&&!b||_[y]===j||c(_,y,j),h[e]=j,p)if(x={values:E("values"),keys:m?j:E("keys"),entries:E("entries")},b)for(S in x)(d||A||!(S in _))&&s(_,S,x[S]);else n({target:e,proto:!0,forced:d||A},x);return x}},function(t,e,r){"use strict";var n=r(23),o=r(10),i=r(4),a=r(9),u=i("species");t.exports=function(t){var e=n(t),r=o.f;a&&e&&!e[u]&&r(e,u,{configurable:!0,get:function(){return this}})}},function(t,e,r){"use strict";var n=r(13),o=r(7),i=r(1),a=r(116),u=RegExp.prototype,c=u.toString,s=i((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),f="toString"!=c.name;(s||f)&&n(RegExp.prototype,"toString",(function(){var t=o(this),e=String(t.source),r=t.flags;return"/"+e+"/"+String(void 0===r&&t instanceof RegExp&&!("flags"in u)?a.call(t):r)}),{unsafe:!0})},function(t,e,r){var n=r(7),o=r(80),i=r(8),a=r(33),u=r(49),c=r(105),s=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,e,r,f,l){var h,p,v,d,y,g,m,b=a(e,r,f?2:1);if(l)h=t;else{if("function"!=typeof(p=u(t)))throw TypeError("Target is not iterable");if(o(p)){for(v=0,d=i(t.length);d>v;v++)if((y=f?b(n(m=t[v])[0],m[1]):b(t[v]))&&y instanceof s)return y;return new s(!1)}h=p.call(t)}for(g=h.next;!(m=g.call(h)).done;)if("object"==typeof(y=c(h,b,m.value,f))&&y&&y instanceof s)return y;return new s(!1)}).stop=function(t){return new s(!0,t)}},function(t,e,r){r(2)({target:"Object",stat:!0},{setPrototypeOf:r(40)})},function(t,e,r){var n=r(2),o=r(1),i=r(12),a=r(51),u=r(108);n({target:"Object",stat:!0,forced:o((function(){a(1)})),sham:!u},{getPrototypeOf:function(t){return a(i(t))}})},function(t,e,r){var n=r(0),o=r(125),i=r(192),a=r(11);for(var u in o){var c=n[u],s=c&&c.prototype;if(s&&s.forEach!==i)try{a(s,"forEach",i)}catch(t){s.forEach=i}}},function(t,e,r){"use strict";var n=r(2),o=r(5),i=r(58),a=r(39),u=r(8),c=r(16),s=r(74),f=r(4),l=r(59),h=r(42),p=l("slice"),v=h("slice",{ACCESSORS:!0,0:0,1:2}),d=f("species"),y=[].slice,g=Math.max;n({target:"Array",proto:!0,forced:!p||!v},{slice:function(t,e){var r,n,f,l=c(this),h=u(l.length),p=a(t,h),v=a(void 0===e?h:e,h);if(i(l)&&("function"!=typeof(r=l.constructor)||r!==Array&&!i(r.prototype)?o(r)&&null===(r=r[d])&&(r=void 0):r=void 0,r===Array||void 0===r))return y.call(l,p,v);for(n=new(void 0===r?Array:r)(g(v-p,0)),f=0;p<v;p++,f++)p in l&&s(n,f,l[p]);return n.length=f,n}})},function(t,e,r){"use strict";r(15);var n=r(2),o=r(23),i=r(131),a=r(13),u=r(62),c=r(18),s=r(106),f=r(17),l=r(35),h=r(6),p=r(33),v=r(50),d=r(7),y=r(5),g=r(24),m=r(30),b=r(194),w=r(49),x=r(4),S=o("fetch"),E=o("Headers"),O=x("iterator"),A=f.set,_=f.getterFor("URLSearchParams"),k=f.getterFor("URLSearchParamsIterator"),j=/\+/g,L=Array(4),P=function(t){return L[t-1]||(L[t-1]=RegExp("((?:%[\\da-f]{2}){"+t+"})","gi"))},T=function(t){try{return decodeURIComponent(t)}catch(e){return t}},I=function(t){var e=t.replace(j," "),r=4;try{return decodeURIComponent(e)}catch(t){for(;r;)e=e.replace(P(r--),T);return e}},R=/[!'()~]|%20/g,U={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},N=function(t){return U[t]},C=function(t){return encodeURIComponent(t).replace(R,N)},M=function(t,e){if(e)for(var r,n,o=e.split("&"),i=0;i<o.length;)(r=o[i++]).length&&(n=r.split("="),t.push({key:I(n.shift()),value:I(n.join("="))}))},F=function(t){this.entries.length=0,M(this.entries,t)},D=function(t,e){if(t<e)throw TypeError("Not enough arguments")},B=s((function(t,e){A(this,{type:"URLSearchParamsIterator",iterator:b(_(t).entries),kind:e})}),"Iterator",(function(){var t=k(this),e=t.kind,r=t.iterator.next(),n=r.value;return r.done||(r.value="keys"===e?n.key:"values"===e?n.value:[n.key,n.value]),r})),V=function(){l(this,V,"URLSearchParams");var t,e,r,n,o,i,a,u,c,s=arguments.length>0?arguments[0]:void 0,f=this,p=[];if(A(f,{type:"URLSearchParams",entries:p,updateURL:function(){},updateSearchParams:F}),void 0!==s)if(y(s))if("function"==typeof(t=w(s)))for(r=(e=t.call(s)).next;!(n=r.call(e)).done;){if((a=(i=(o=b(d(n.value))).next).call(o)).done||(u=i.call(o)).done||!i.call(o).done)throw TypeError("Expected sequence with length 2");p.push({key:a.value+"",value:u.value+""})}else for(c in s)h(s,c)&&p.push({key:c,value:s[c]+""});else M(p,"string"==typeof s?"?"===s.charAt(0)?s.slice(1):s:s+"")},G=V.prototype;u(G,{append:function(t,e){D(arguments.length,2);var r=_(this);r.entries.push({key:t+"",value:e+""}),r.updateURL()},delete:function(t){D(arguments.length,1);for(var e=_(this),r=e.entries,n=t+"",o=0;o<r.length;)r[o].key===n?r.splice(o,1):o++;e.updateURL()},get:function(t){D(arguments.length,1);for(var e=_(this).entries,r=t+"",n=0;n<e.length;n++)if(e[n].key===r)return e[n].value;return null},getAll:function(t){D(arguments.length,1);for(var e=_(this).entries,r=t+"",n=[],o=0;o<e.length;o++)e[o].key===r&&n.push(e[o].value);return n},has:function(t){D(arguments.length,1);for(var e=_(this).entries,r=t+"",n=0;n<e.length;)if(e[n++].key===r)return!0;return!1},set:function(t,e){D(arguments.length,1);for(var r,n=_(this),o=n.entries,i=!1,a=t+"",u=e+"",c=0;c<o.length;c++)(r=o[c]).key===a&&(i?o.splice(c--,1):(i=!0,r.value=u));i||o.push({key:a,value:u}),n.updateURL()},sort:function(){var t,e,r,n=_(this),o=n.entries,i=o.slice();for(o.length=0,r=0;r<i.length;r++){for(t=i[r],e=0;e<r;e++)if(o[e].key>t.key){o.splice(e,0,t);break}e===r&&o.push(t)}n.updateURL()},forEach:function(t){for(var e,r=_(this).entries,n=p(t,arguments.length>1?arguments[1]:void 0,3),o=0;o<r.length;)n((e=r[o++]).value,e.key,this)},keys:function(){return new B(this,"keys")},values:function(){return new B(this,"values")},entries:function(){return new B(this,"entries")}},{enumerable:!0}),a(G,O,G.entries),a(G,"toString",(function(){for(var t,e=_(this).entries,r=[],n=0;n<e.length;)t=e[n++],r.push(C(t.key)+"="+C(t.value));return r.join("&")}),{enumerable:!0}),c(V,"URLSearchParams"),n({global:!0,forced:!i},{URLSearchParams:V}),i||"function"!=typeof S||"function"!=typeof E||n({global:!0,enumerable:!0,forced:!0},{fetch:function(t){var e,r,n,o=[t];return arguments.length>1&&(y(e=arguments[1])&&(r=e.body,"URLSearchParams"===v(r)&&((n=e.headers?new E(e.headers):new E).has("content-type")||n.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),e=g(e,{body:m(0,String(r)),headers:m(0,n)}))),o.push(e)),S.apply(this,o)}}),t.exports={URLSearchParams:V,getState:_}},function(t,e,r){"use strict";var n,o,i=r(116),a=r(202),u=RegExp.prototype.exec,c=String.prototype.replace,s=u,f=(n=/a/,o=/b*/g,u.call(n,"a"),u.call(o,"a"),0!==n.lastIndex||0!==o.lastIndex),l=a.UNSUPPORTED_Y||a.BROKEN_CARET,h=void 0!==/()??/.exec("")[1];(f||h||l)&&(s=function(t){var e,r,n,o,a=this,s=l&&a.sticky,p=i.call(a),v=a.source,d=0,y=t;return s&&(-1===(p=p.replace("y","")).indexOf("g")&&(p+="g"),y=String(t).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==t[a.lastIndex-1])&&(v="(?: "+v+")",y=" "+y,d++),r=new RegExp("^(?:"+v+")",p)),h&&(r=new RegExp("^"+v+"$(?!\\s)",p)),f&&(e=a.lastIndex),n=u.call(s?r:a,y),s?n?(n.input=n.input.slice(d),n[0]=n[0].slice(d),n.index=a.lastIndex,a.lastIndex+=n[0].length):a.lastIndex=0:f&&n&&(a.lastIndex=a.global?n.index+n[0].length:e),h&&n&&n.length>1&&c.call(n[0],r,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(n[o]=void 0)})),n}),t.exports=s},function(t,e,r){var n=r(9),o=r(1),i=r(68);t.exports=!n&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,e,r){var n=r(0),o=r(69),i=n["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,e,r){var n=r(6),o=r(142),i=r(36),a=r(10);t.exports=function(t,e){for(var r=o(e),u=a.f,c=i.f,s=0;s<r.length;s++){var f=r[s];n(t,f)||u(t,f,c(e,f))}}},function(t,e,r){var n=r(0);t.exports=n},function(t,e,r){var n=r(6),o=r(16),i=r(56).indexOf,a=r(45);t.exports=function(t,e){var r,u=o(t),c=0,s=[];for(r in u)!n(a,r)&&n(u,r)&&s.push(r);for(;e.length>c;)n(u,r=e[c++])&&(~i(s,r)||s.push(r));return s}},function(t,e,r){var n=r(5),o=r(58),i=r(4)("species");t.exports=function(t,e){var r;return o(t)&&("function"!=typeof(r=t.constructor)||r!==Array&&!o(r.prototype)?n(r)&&null===(r=r[i])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===e?0:e)}},function(t,e,r){var n=r(75);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,r){r(2)({target:"Number",stat:!0},{isInteger:r(143)})},function(t,e,r){var n=r(9),o=r(10),i=r(7),a=r(47);t.exports=n?Object.defineProperties:function(t,e){i(t);for(var r,n=a(e),u=n.length,c=0;u>c;)o.f(t,r=n[c++],e[r]);return t}},function(t,e,r){var n=r(23);t.exports=n("document","documentElement")},function(t,e,r){var n=r(2),o=r(104);n({target:"Array",stat:!0,forced:!r(61)((function(t){Array.from(t)}))},{from:o})},function(t,e,r){"use strict";var n=r(33),o=r(12),i=r(105),a=r(80),u=r(8),c=r(74),s=r(49);t.exports=function(t){var e,r,f,l,h,p,v=o(t),d="function"==typeof this?this:Array,y=arguments.length,g=y>1?arguments[1]:void 0,m=void 0!==g,b=s(v),w=0;if(m&&(g=n(g,y>2?arguments[2]:void 0,2)),null==b||d==Array&&a(b))for(r=new d(e=u(v.length));e>w;w++)p=m?g(v[w],w):v[w],c(r,w,p);else for(h=(l=b.call(v)).next,r=new d;!(f=h.call(l)).done;w++)p=m?i(l,g,[f.value,w],!0):f.value,c(r,w,p);return r.length=w,r}},function(t,e,r){var n=r(7);t.exports=function(t,e,r,o){try{return o?e(n(r)[0],r[1]):e(r)}catch(e){var i=t.return;throw void 0!==i&&n(i.call(t)),e}}},function(t,e,r){"use strict";var n=r(107).IteratorPrototype,o=r(24),i=r(30),a=r(18),u=r(48),c=function(){return this};t.exports=function(t,e,r){var s=e+" Iterator";return t.prototype=o(n,{next:i(1,r)}),a(t,s,!1,!0),u[s]=c,t}},function(t,e,r){"use strict";var n,o,i,a=r(51),u=r(11),c=r(6),s=r(4),f=r(37),l=s("iterator"),h=!1;[].keys&&("next"in(i=[].keys())?(o=a(a(i)))!==Object.prototype&&(n=o):h=!0),null==n&&(n={}),f||c(n,l)||u(n,l,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:h}},function(t,e,r){var n=r(1);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,e,r){var n=r(4),o=r(24),i=r(10),a=n("unscopables"),u=Array.prototype;null==u[a]&&i.f(u,a,{configurable:!0,value:o(null)}),t.exports=function(t){u[a][t]=!0}},function(t,e,r){"use strict";var n=r(0),o=r(9),i=r(111),a=r(11),u=r(62),c=r(1),s=r(35),f=r(19),l=r(8),h=r(112),p=r(148),v=r(51),d=r(40),y=r(38).f,g=r(10).f,m=r(113),b=r(18),w=r(17),x=w.get,S=w.set,E=n.ArrayBuffer,O=E,A=n.DataView,_=A&&A.prototype,k=Object.prototype,j=n.RangeError,L=p.pack,P=p.unpack,T=function(t){return[255&t]},I=function(t){return[255&t,t>>8&255]},R=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},U=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},N=function(t){return L(t,23,4)},C=function(t){return L(t,52,8)},M=function(t,e){g(t.prototype,e,{get:function(){return x(this)[e]}})},F=function(t,e,r,n){var o=h(r),i=x(t);if(o+e>i.byteLength)throw j("Wrong index");var a=x(i.buffer).bytes,u=o+i.byteOffset,c=a.slice(u,u+e);return n?c:c.reverse()},D=function(t,e,r,n,o,i){var a=h(r),u=x(t);if(a+e>u.byteLength)throw j("Wrong index");for(var c=x(u.buffer).bytes,s=a+u.byteOffset,f=n(+o),l=0;l<e;l++)c[s+l]=f[i?l:e-l-1]};if(i){if(!c((function(){E(1)}))||!c((function(){new E(-1)}))||c((function(){return new E,new E(1.5),new E(NaN),"ArrayBuffer"!=E.name}))){for(var B,V=(O=function(t){return s(this,O),new E(h(t))}).prototype=E.prototype,G=y(E),q=0;G.length>q;)(B=G[q++])in O||a(O,B,E[B]);V.constructor=O}d&&v(_)!==k&&d(_,k);var W=new A(new O(2)),Y=_.setInt8;W.setInt8(0,2147483648),W.setInt8(1,2147483649),!W.getInt8(0)&&W.getInt8(1)||u(_,{setInt8:function(t,e){Y.call(this,t,e<<24>>24)},setUint8:function(t,e){Y.call(this,t,e<<24>>24)}},{unsafe:!0})}else O=function(t){s(this,O,"ArrayBuffer");var e=h(t);S(this,{bytes:m.call(new Array(e),0),byteLength:e}),o||(this.byteLength=e)},A=function(t,e,r){s(this,A,"DataView"),s(t,O,"DataView");var n=x(t).byteLength,i=f(e);if(i<0||i>n)throw j("Wrong offset");if(i+(r=void 0===r?n-i:l(r))>n)throw j("Wrong length");S(this,{buffer:t,byteLength:r,byteOffset:i}),o||(this.buffer=t,this.byteLength=r,this.byteOffset=i)},o&&(M(O,"byteLength"),M(A,"buffer"),M(A,"byteLength"),M(A,"byteOffset")),u(A.prototype,{getInt8:function(t){return F(this,1,t)[0]<<24>>24},getUint8:function(t){return F(this,1,t)[0]},getInt16:function(t){var e=F(this,2,t,arguments.length>1?arguments[1]:void 0);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=F(this,2,t,arguments.length>1?arguments[1]:void 0);return e[1]<<8|e[0]},getInt32:function(t){return U(F(this,4,t,arguments.length>1?arguments[1]:void 0))},getUint32:function(t){return U(F(this,4,t,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(t){return P(F(this,4,t,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(t){return P(F(this,8,t,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(t,e){D(this,1,t,T,e)},setUint8:function(t,e){D(this,1,t,T,e)},setInt16:function(t,e){D(this,2,t,I,e,arguments.length>2?arguments[2]:void 0)},setUint16:function(t,e){D(this,2,t,I,e,arguments.length>2?arguments[2]:void 0)},setInt32:function(t,e){D(this,4,t,R,e,arguments.length>2?arguments[2]:void 0)},setUint32:function(t,e){D(this,4,t,R,e,arguments.length>2?arguments[2]:void 0)},setFloat32:function(t,e){D(this,4,t,N,e,arguments.length>2?arguments[2]:void 0)},setFloat64:function(t,e){D(this,8,t,C,e,arguments.length>2?arguments[2]:void 0)}});b(O,"ArrayBuffer"),b(A,"DataView"),t.exports={ArrayBuffer:O,DataView:A}},function(t,e){t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(t,e,r){var n=r(19),o=r(8);t.exports=function(t){if(void 0===t)return 0;var e=n(t),r=o(e);if(e!==r)throw RangeError("Wrong length or index");return r}},function(t,e,r){"use strict";var n=r(12),o=r(39),i=r(8);t.exports=function(t){for(var e=n(this),r=i(e.length),a=arguments.length,u=o(a>1?arguments[1]:void 0,r),c=a>2?arguments[2]:void 0,s=void 0===c?r:o(c,r);s>u;)e[u++]=t;return e}},function(t,e,r){var n=r(153);t.exports=function(t,e){var r=n(t);if(r%e)throw RangeError("Wrong offset");return r}},function(t,e,r){var n=r(34),o=r(12),i=r(43),a=r(8),u=function(t){return function(e,r,u,c){n(r);var s=o(e),f=i(s),l=a(s.length),h=t?l-1:0,p=t?-1:1;if(u<2)for(;;){if(h in f){c=f[h],h+=p;break}if(h+=p,t?h<0:l<=h)throw TypeError("Reduce of empty array with no initial value")}for(;t?h>=0:l>h;h+=p)h in f&&(c=r(c,f[h],h,s));return c}};t.exports={left:u(!1),right:u(!0)}},function(t,e,r){"use strict";var n=r(7);t.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,r){"use strict";var n,o,i,a,u=r(2),c=r(37),s=r(0),f=r(23),l=r(184),h=r(13),p=r(62),v=r(18),d=r(84),y=r(5),g=r(34),m=r(35),b=r(21),w=r(70),x=r(86),S=r(61),E=r(41),O=r(118).set,A=r(185),_=r(186),k=r(187),j=r(120),L=r(188),P=r(17),T=r(57),I=r(4),R=r(76),U=I("species"),N="Promise",C=P.get,M=P.set,F=P.getterFor(N),D=l,B=s.TypeError,V=s.document,G=s.process,q=f("fetch"),W=j.f,Y=W,$="process"==b(G),z=!!(V&&V.createEvent&&s.dispatchEvent),H=T(N,(function(){if(!(w(D)!==String(D))){if(66===R)return!0;if(!$&&"function"!=typeof PromiseRejectionEvent)return!0}if(c&&!D.prototype.finally)return!0;if(R>=51&&/native code/.test(D))return!1;var t=D.resolve(1),e=function(t){t((function(){}),(function(){}))};return(t.constructor={})[U]=e,!(t.then((function(){}))instanceof e)})),K=H||!S((function(t){D.all(t).catch((function(){}))})),J=function(t){var e;return!(!y(t)||"function"!=typeof(e=t.then))&&e},X=function(t,e,r){if(!e.notified){e.notified=!0;var n=e.reactions;A((function(){for(var o=e.value,i=1==e.state,a=0;n.length>a;){var u,c,s,f=n[a++],l=i?f.ok:f.fail,h=f.resolve,p=f.reject,v=f.domain;try{l?(i||(2===e.rejection&&et(t,e),e.rejection=1),!0===l?u=o:(v&&v.enter(),u=l(o),v&&(v.exit(),s=!0)),u===f.promise?p(B("Promise-chain cycle")):(c=J(u))?c.call(u,h,p):h(u)):p(o)}catch(t){v&&!s&&v.exit(),p(t)}}e.reactions=[],e.notified=!1,r&&!e.rejection&&Z(t,e)}))}},Q=function(t,e,r){var n,o;z?((n=V.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),s.dispatchEvent(n)):n={promise:e,reason:r},(o=s["on"+t])?o(n):"unhandledrejection"===t&&k("Unhandled promise rejection",r)},Z=function(t,e){O.call(s,(function(){var r,n=e.value;if(tt(e)&&(r=L((function(){$?G.emit("unhandledRejection",n,t):Q("unhandledrejection",t,n)})),e.rejection=$||tt(e)?2:1,r.error))throw r.value}))},tt=function(t){return 1!==t.rejection&&!t.parent},et=function(t,e){O.call(s,(function(){$?G.emit("rejectionHandled",t):Q("rejectionhandled",t,e.value)}))},rt=function(t,e,r,n){return function(o){t(e,r,o,n)}},nt=function(t,e,r,n){e.done||(e.done=!0,n&&(e=n),e.value=r,e.state=2,X(t,e,!0))},ot=function(t,e,r,n){if(!e.done){e.done=!0,n&&(e=n);try{if(t===r)throw B("Promise can't be resolved itself");var o=J(r);o?A((function(){var n={done:!1};try{o.call(r,rt(ot,t,n,e),rt(nt,t,n,e))}catch(r){nt(t,n,r,e)}})):(e.value=r,e.state=1,X(t,e,!1))}catch(r){nt(t,{done:!1},r,e)}}};H&&(D=function(t){m(this,D,N),g(t),n.call(this);var e=C(this);try{t(rt(ot,this,e),rt(nt,this,e))}catch(t){nt(this,e,t)}},(n=function(t){M(this,{type:N,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=p(D.prototype,{then:function(t,e){var r=F(this),n=W(E(this,D));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=$?G.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&X(this,r,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new n,e=C(t);this.promise=t,this.resolve=rt(ot,t,e),this.reject=rt(nt,t,e)},j.f=W=function(t){return t===D||t===i?new o(t):Y(t)},c||"function"!=typeof l||(a=l.prototype.then,h(l.prototype,"then",(function(t,e){var r=this;return new D((function(t,e){a.call(r,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof q&&u({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return _(D,q.apply(s,arguments))}}))),u({global:!0,wrap:!0,forced:H},{Promise:D}),v(D,N,!1,!0),d(N),i=f(N),u({target:N,stat:!0,forced:H},{reject:function(t){var e=W(this);return e.reject.call(void 0,t),e.promise}}),u({target:N,stat:!0,forced:c||H},{resolve:function(t){return _(c&&this===i?D:this,t)}}),u({target:N,stat:!0,forced:K},{all:function(t){var e=this,r=W(e),n=r.resolve,o=r.reject,i=L((function(){var r=g(e.resolve),i=[],a=0,u=1;x(t,(function(t){var c=a++,s=!1;i.push(void 0),u++,r.call(e,t).then((function(t){s||(s=!0,i[c]=t,--u||n(i))}),o)})),--u||n(i)}));return i.error&&o(i.value),r.promise},race:function(t){var e=this,r=W(e),n=r.reject,o=L((function(){var o=g(e.resolve);x(t,(function(t){o.call(e,t).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}})},function(t,e,r){var n,o,i,a=r(0),u=r(1),c=r(21),s=r(33),f=r(102),l=r(68),h=r(119),p=a.location,v=a.setImmediate,d=a.clearImmediate,y=a.process,g=a.MessageChannel,m=a.Dispatch,b=0,w={},x=function(t){if(w.hasOwnProperty(t)){var e=w[t];delete w[t],e()}},S=function(t){return function(){x(t)}},E=function(t){x(t.data)},O=function(t){a.postMessage(t+"",p.protocol+"//"+p.host)};v&&d||(v=function(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return w[++b]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},n(b),b},d=function(t){delete w[t]},"process"==c(y)?n=function(t){y.nextTick(S(t))}:m&&m.now?n=function(t){m.now(S(t))}:g&&!h?(i=(o=new g).port2,o.port1.onmessage=E,n=s(i.postMessage,i,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||u(O)||"file:"===p.protocol?n="onreadystatechange"in l("script")?function(t){f.appendChild(l("script")).onreadystatechange=function(){f.removeChild(this),x(t)}}:function(t){setTimeout(S(t),0)}:(n=O,a.addEventListener("message",E,!1))),t.exports={set:v,clear:d}},function(t,e,r){var n=r(77);t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(n)},function(t,e,r){"use strict";var n=r(34),o=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n})),this.resolve=n(e),this.reject=n(r)};t.exports.f=function(t){return new o(t)}},function(t,e,r){var n=r(2),o=r(122);n({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},function(t,e,r){"use strict";var n=r(9),o=r(1),i=r(47),a=r(73),u=r(54),c=r(12),s=r(43),f=Object.assign,l=Object.defineProperty;t.exports=!f||o((function(){if(n&&1!==f({b:1},f(l({},"a",{enumerable:!0,get:function(){l(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol();return t[r]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=f({},t)[r]||"abcdefghijklmnopqrst"!=i(f({},e)).join("")}))?function(t,e){for(var r=c(t),o=arguments.length,f=1,l=a.f,h=u.f;o>f;)for(var p,v=s(arguments[f++]),d=l?i(v).concat(l(v)):i(v),y=d.length,g=0;y>g;)p=d[g++],n&&!h.call(v,p)||(r[p]=v[p]);return r}:f},function(t,e,r){var n=r(2),o=r(23),i=r(34),a=r(7),u=r(5),c=r(24),s=r(189),f=r(1),l=o("Reflect","construct"),h=f((function(){function t(){}return!(l((function(){}),[],t)instanceof t)})),p=!f((function(){l((function(){}))})),v=h||p;n({target:"Reflect",stat:!0,forced:v,sham:v},{construct:function(t,e){i(t),a(e);var r=arguments.length<3?t:i(arguments[2]);if(p&&!h)return l(t,e,r);if(t==r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(s.apply(t,n))}var o=r.prototype,f=c(u(o)?o:Object.prototype),v=Function.apply.call(t,f,e);return u(v)?v:f}})},function(t,e,r){var n=r(4);e.f=n},function(t,e){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,e,r){r(52)("asyncIterator")},function(t,e,r){r(52)("toStringTag")},function(t,e,r){var n=r(0);r(18)(n.JSON,"JSON",!0)},function(t,e,r){r(18)(Math,"Math",!0)},function(t,e,r){"use strict";r(20);var n,o=r(2),i=r(9),a=r(131),u=r(0),c=r(101),s=r(13),f=r(35),l=r(6),h=r(122),p=r(104),v=r(82).codeAt,d=r(193),y=r(18),g=r(91),m=r(17),b=u.URL,w=g.URLSearchParams,x=g.getState,S=m.set,E=m.getterFor("URL"),O=Math.floor,A=Math.pow,_=/[A-Za-z]/,k=/[\d+-.A-Za-z]/,j=/\d/,L=/^(0x|0X)/,P=/^[0-7]+$/,T=/^\d+$/,I=/^[\dA-Fa-f]+$/,R=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,U=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,N=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,C=/[\u0009\u000A\u000D]/g,M=function(t,e){var r,n,o;if("["==e.charAt(0)){if("]"!=e.charAt(e.length-1))return"Invalid host";if(!(r=D(e.slice(1,-1))))return"Invalid host";t.host=r}else if(z(t)){if(e=d(e),R.test(e))return"Invalid host";if(null===(r=F(e)))return"Invalid host";t.host=r}else{if(U.test(e))return"Invalid host";for(r="",n=p(e),o=0;o<n.length;o++)r+=Y(n[o],V);t.host=r}},F=function(t){var e,r,n,o,i,a,u,c=t.split(".");if(c.length&&""==c[c.length-1]&&c.pop(),(e=c.length)>4)return t;for(r=[],n=0;n<e;n++){if(""==(o=c[n]))return t;if(i=10,o.length>1&&"0"==o.charAt(0)&&(i=L.test(o)?16:8,o=o.slice(8==i?1:2)),""===o)a=0;else{if(!(10==i?T:8==i?P:I).test(o))return t;a=parseInt(o,i)}r.push(a)}for(n=0;n<e;n++)if(a=r[n],n==e-1){if(a>=A(256,5-e))return null}else if(a>255)return null;for(u=r.pop(),n=0;n<r.length;n++)u+=r[n]*A(256,3-n);return u},D=function(t){var e,r,n,o,i,a,u,c=[0,0,0,0,0,0,0,0],s=0,f=null,l=0,h=function(){return t.charAt(l)};if(":"==h()){if(":"!=t.charAt(1))return;l+=2,f=++s}for(;h();){if(8==s)return;if(":"!=h()){for(e=r=0;r<4&&I.test(h());)e=16*e+parseInt(h(),16),l++,r++;if("."==h()){if(0==r)return;if(l-=r,s>6)return;for(n=0;h();){if(o=null,n>0){if(!("."==h()&&n<4))return;l++}if(!j.test(h()))return;for(;j.test(h());){if(i=parseInt(h(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;l++}c[s]=256*c[s]+o,2!=++n&&4!=n||s++}if(4!=n)return;break}if(":"==h()){if(l++,!h())return}else if(h())return;c[s++]=e}else{if(null!==f)return;l++,f=++s}}if(null!==f)for(a=s-f,s=7;0!=s&&a>0;)u=c[s],c[s--]=c[f+a-1],c[f+--a]=u;else if(8!=s)return;return c},B=function(t){var e,r,n,o;if("number"==typeof t){for(e=[],r=0;r<4;r++)e.unshift(t%256),t=O(t/256);return e.join(".")}if("object"==typeof t){for(e="",n=function(t){for(var e=null,r=1,n=null,o=0,i=0;i<8;i++)0!==t[i]?(o>r&&(e=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r&&(e=n,r=o),e}(t),r=0;r<8;r++)o&&0===t[r]||(o&&(o=!1),n===r?(e+=r?":":"::",o=!0):(e+=t[r].toString(16),r<7&&(e+=":")));return"["+e+"]"}return t},V={},G=h({},V,{" ":1,'"':1,"<":1,">":1,"`":1}),q=h({},G,{"#":1,"?":1,"{":1,"}":1}),W=h({},q,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Y=function(t,e){var r=v(t,0);return r>32&&r<127&&!l(e,t)?t:encodeURIComponent(t)},$={ftp:21,file:null,http:80,https:443,ws:80,wss:443},z=function(t){return l($,t.scheme)},H=function(t){return""!=t.username||""!=t.password},K=function(t){return!t.host||t.cannotBeABaseURL||"file"==t.scheme},J=function(t,e){var r;return 2==t.length&&_.test(t.charAt(0))&&(":"==(r=t.charAt(1))||!e&&"|"==r)},X=function(t){var e;return t.length>1&&J(t.slice(0,2))&&(2==t.length||"/"===(e=t.charAt(2))||"\\"===e||"?"===e||"#"===e)},Q=function(t){var e=t.path,r=e.length;!r||"file"==t.scheme&&1==r&&J(e[0],!0)||e.pop()},Z=function(t){return"."===t||"%2e"===t.toLowerCase()},tt={},et={},rt={},nt={},ot={},it={},at={},ut={},ct={},st={},ft={},lt={},ht={},pt={},vt={},dt={},yt={},gt={},mt={},bt={},wt={},xt=function(t,e,r,o){var i,a,u,c,s,f=r||tt,h=0,v="",d=!1,y=!1,g=!1;for(r||(t.scheme="",t.username="",t.password="",t.host=null,t.port=null,t.path=[],t.query=null,t.fragment=null,t.cannotBeABaseURL=!1,e=e.replace(N,"")),e=e.replace(C,""),i=p(e);h<=i.length;){switch(a=i[h],f){case tt:if(!a||!_.test(a)){if(r)return"Invalid scheme";f=rt;continue}v+=a.toLowerCase(),f=et;break;case et:if(a&&(k.test(a)||"+"==a||"-"==a||"."==a))v+=a.toLowerCase();else{if(":"!=a){if(r)return"Invalid scheme";v="",f=rt,h=0;continue}if(r&&(z(t)!=l($,v)||"file"==v&&(H(t)||null!==t.port)||"file"==t.scheme&&!t.host))return;if(t.scheme=v,r)return void(z(t)&&$[t.scheme]==t.port&&(t.port=null));v="","file"==t.scheme?f=pt:z(t)&&o&&o.scheme==t.scheme?f=nt:z(t)?f=ut:"/"==i[h+1]?(f=ot,h++):(t.cannotBeABaseURL=!0,t.path.push(""),f=mt)}break;case rt:if(!o||o.cannotBeABaseURL&&"#"!=a)return"Invalid scheme";if(o.cannotBeABaseURL&&"#"==a){t.scheme=o.scheme,t.path=o.path.slice(),t.query=o.query,t.fragment="",t.cannotBeABaseURL=!0,f=wt;break}f="file"==o.scheme?pt:it;continue;case nt:if("/"!=a||"/"!=i[h+1]){f=it;continue}f=ct,h++;break;case ot:if("/"==a){f=st;break}f=gt;continue;case it:if(t.scheme=o.scheme,a==n)t.username=o.username,t.password=o.password,t.host=o.host,t.port=o.port,t.path=o.path.slice(),t.query=o.query;else if("/"==a||"\\"==a&&z(t))f=at;else if("?"==a)t.username=o.username,t.password=o.password,t.host=o.host,t.port=o.port,t.path=o.path.slice(),t.query="",f=bt;else{if("#"!=a){t.username=o.username,t.password=o.password,t.host=o.host,t.port=o.port,t.path=o.path.slice(),t.path.pop(),f=gt;continue}t.username=o.username,t.password=o.password,t.host=o.host,t.port=o.port,t.path=o.path.slice(),t.query=o.query,t.fragment="",f=wt}break;case at:if(!z(t)||"/"!=a&&"\\"!=a){if("/"!=a){t.username=o.username,t.password=o.password,t.host=o.host,t.port=o.port,f=gt;continue}f=st}else f=ct;break;case ut:if(f=ct,"/"!=a||"/"!=v.charAt(h+1))continue;h++;break;case ct:if("/"!=a&&"\\"!=a){f=st;continue}break;case st:if("@"==a){d&&(v="%40"+v),d=!0,u=p(v);for(var m=0;m<u.length;m++){var b=u[m];if(":"!=b||g){var w=Y(b,W);g?t.password+=w:t.username+=w}else g=!0}v=""}else if(a==n||"/"==a||"?"==a||"#"==a||"\\"==a&&z(t)){if(d&&""==v)return"Invalid authority";h-=p(v).length+1,v="",f=ft}else v+=a;break;case ft:case lt:if(r&&"file"==t.scheme){f=dt;continue}if(":"!=a||y){if(a==n||"/"==a||"?"==a||"#"==a||"\\"==a&&z(t)){if(z(t)&&""==v)return"Invalid host";if(r&&""==v&&(H(t)||null!==t.port))return;if(c=M(t,v))return c;if(v="",f=yt,r)return;continue}"["==a?y=!0:"]"==a&&(y=!1),v+=a}else{if(""==v)return"Invalid host";if(c=M(t,v))return c;if(v="",f=ht,r==lt)return}break;case ht:if(!j.test(a)){if(a==n||"/"==a||"?"==a||"#"==a||"\\"==a&&z(t)||r){if(""!=v){var x=parseInt(v,10);if(x>65535)return"Invalid port";t.port=z(t)&&x===$[t.scheme]?null:x,v=""}if(r)return;f=yt;continue}return"Invalid port"}v+=a;break;case pt:if(t.scheme="file","/"==a||"\\"==a)f=vt;else{if(!o||"file"!=o.scheme){f=gt;continue}if(a==n)t.host=o.host,t.path=o.path.slice(),t.query=o.query;else if("?"==a)t.host=o.host,t.path=o.path.slice(),t.query="",f=bt;else{if("#"!=a){X(i.slice(h).join(""))||(t.host=o.host,t.path=o.path.slice(),Q(t)),f=gt;continue}t.host=o.host,t.path=o.path.slice(),t.query=o.query,t.fragment="",f=wt}}break;case vt:if("/"==a||"\\"==a){f=dt;break}o&&"file"==o.scheme&&!X(i.slice(h).join(""))&&(J(o.path[0],!0)?t.path.push(o.path[0]):t.host=o.host),f=gt;continue;case dt:if(a==n||"/"==a||"\\"==a||"?"==a||"#"==a){if(!r&&J(v))f=gt;else if(""==v){if(t.host="",r)return;f=yt}else{if(c=M(t,v))return c;if("localhost"==t.host&&(t.host=""),r)return;v="",f=yt}continue}v+=a;break;case yt:if(z(t)){if(f=gt,"/"!=a&&"\\"!=a)continue}else if(r||"?"!=a)if(r||"#"!=a){if(a!=n&&(f=gt,"/"!=a))continue}else t.fragment="",f=wt;else t.query="",f=bt;break;case gt:if(a==n||"/"==a||"\\"==a&&z(t)||!r&&("?"==a||"#"==a)){if(".."===(s=(s=v).toLowerCase())||"%2e."===s||".%2e"===s||"%2e%2e"===s?(Q(t),"/"==a||"\\"==a&&z(t)||t.path.push("")):Z(v)?"/"==a||"\\"==a&&z(t)||t.path.push(""):("file"==t.scheme&&!t.path.length&&J(v)&&(t.host&&(t.host=""),v=v.charAt(0)+":"),t.path.push(v)),v="","file"==t.scheme&&(a==n||"?"==a||"#"==a))for(;t.path.length>1&&""===t.path[0];)t.path.shift();"?"==a?(t.query="",f=bt):"#"==a&&(t.fragment="",f=wt)}else v+=Y(a,q);break;case mt:"?"==a?(t.query="",f=bt):"#"==a?(t.fragment="",f=wt):a!=n&&(t.path[0]+=Y(a,V));break;case bt:r||"#"!=a?a!=n&&("'"==a&&z(t)?t.query+="%27":t.query+="#"==a?"%23":Y(a,V)):(t.fragment="",f=wt);break;case wt:a!=n&&(t.fragment+=Y(a,G))}h++}},St=function(t){var e,r,n=f(this,St,"URL"),o=arguments.length>1?arguments[1]:void 0,a=String(t),u=S(n,{type:"URL"});if(void 0!==o)if(o instanceof St)e=E(o);else if(r=xt(e={},String(o)))throw TypeError(r);if(r=xt(u,a,null,e))throw TypeError(r);var c=u.searchParams=new w,s=x(c);s.updateSearchParams(u.query),s.updateURL=function(){u.query=String(c)||null},i||(n.href=Ot.call(n),n.origin=At.call(n),n.protocol=_t.call(n),n.username=kt.call(n),n.password=jt.call(n),n.host=Lt.call(n),n.hostname=Pt.call(n),n.port=Tt.call(n),n.pathname=It.call(n),n.search=Rt.call(n),n.searchParams=Ut.call(n),n.hash=Nt.call(n))},Et=St.prototype,Ot=function(){var t=E(this),e=t.scheme,r=t.username,n=t.password,o=t.host,i=t.port,a=t.path,u=t.query,c=t.fragment,s=e+":";return null!==o?(s+="//",H(t)&&(s+=r+(n?":"+n:"")+"@"),s+=B(o),null!==i&&(s+=":"+i)):"file"==e&&(s+="//"),s+=t.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==u&&(s+="?"+u),null!==c&&(s+="#"+c),s},At=function(){var t=E(this),e=t.scheme,r=t.port;if("blob"==e)try{return new URL(e.path[0]).origin}catch(t){return"null"}return"file"!=e&&z(t)?e+"://"+B(t.host)+(null!==r?":"+r:""):"null"},_t=function(){return E(this).scheme+":"},kt=function(){return E(this).username},jt=function(){return E(this).password},Lt=function(){var t=E(this),e=t.host,r=t.port;return null===e?"":null===r?B(e):B(e)+":"+r},Pt=function(){var t=E(this).host;return null===t?"":B(t)},Tt=function(){var t=E(this).port;return null===t?"":String(t)},It=function(){var t=E(this),e=t.path;return t.cannotBeABaseURL?e[0]:e.length?"/"+e.join("/"):""},Rt=function(){var t=E(this).query;return t?"?"+t:""},Ut=function(){return E(this).searchParams},Nt=function(){var t=E(this).fragment;return t?"#"+t:""},Ct=function(t,e){return{get:t,set:e,configurable:!0,enumerable:!0}};if(i&&c(Et,{href:Ct(Ot,(function(t){var e=E(this),r=String(t),n=xt(e,r);if(n)throw TypeError(n);x(e.searchParams).updateSearchParams(e.query)})),origin:Ct(At),protocol:Ct(_t,(function(t){var e=E(this);xt(e,String(t)+":",tt)})),username:Ct(kt,(function(t){var e=E(this),r=p(String(t));if(!K(e)){e.username="";for(var n=0;n<r.length;n++)e.username+=Y(r[n],W)}})),password:Ct(jt,(function(t){var e=E(this),r=p(String(t));if(!K(e)){e.password="";for(var n=0;n<r.length;n++)e.password+=Y(r[n],W)}})),host:Ct(Lt,(function(t){var e=E(this);e.cannotBeABaseURL||xt(e,String(t),ft)})),hostname:Ct(Pt,(function(t){var e=E(this);e.cannotBeABaseURL||xt(e,String(t),lt)})),port:Ct(Tt,(function(t){var e=E(this);K(e)||(""==(t=String(t))?e.port=null:xt(e,t,ht))})),pathname:Ct(It,(function(t){var e=E(this);e.cannotBeABaseURL||(e.path=[],xt(e,t+"",yt))})),search:Ct(Rt,(function(t){var e=E(this);""==(t=String(t))?e.query=null:("?"==t.charAt(0)&&(t=t.slice(1)),e.query="",xt(e,t,bt)),x(e.searchParams).updateSearchParams(e.query)})),searchParams:Ct(Ut),hash:Ct(Nt,(function(t){var e=E(this);""!=(t=String(t))?("#"==t.charAt(0)&&(t=t.slice(1)),e.fragment="",xt(e,t,wt)):e.fragment=null}))}),s(Et,"toJSON",(function(){return Ot.call(this)}),{enumerable:!0}),s(Et,"toString",(function(){return Ot.call(this)}),{enumerable:!0}),b){var Mt=b.createObjectURL,Ft=b.revokeObjectURL;Mt&&s(St,"createObjectURL",(function(t){return Mt.apply(b,arguments)})),Ft&&s(St,"revokeObjectURL",(function(t){return Ft.apply(b,arguments)}))}y(St,"URL"),o({global:!0,forced:!a,sham:!i},{URL:St})},function(t,e,r){var n=r(1),o=r(4),i=r(37),a=o("iterator");t.exports=!n((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,r="";return t.pathname="c%20d",e.forEach((function(t,n){e.delete("b"),r+=n+t})),i&&!t.toJSON||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host}))},function(t,e,r){"use strict";var n=r(2),o=r(14).filter,i=r(59),a=r(42),u=i("filter"),c=a("filter");n({target:"Array",proto:!0,forced:!u||!c},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){var n=r(45),o=r(5),i=r(6),a=r(10).f,u=r(44),c=r(198),s=u("meta"),f=0,l=Object.isExtensible||function(){return!0},h=function(t){a(t,s,{value:{objectID:"O"+ ++f,weakData:{}}})},p=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,s)){if(!l(t))return"F";if(!e)return"E";h(t)}return t[s].objectID},getWeakData:function(t,e){if(!i(t,s)){if(!l(t))return!0;if(!e)return!1;h(t)}return t[s].weakData},onFreeze:function(t){return c&&p.REQUIRED&&l(t)&&!i(t,s)&&h(t),t}};n[s]=!0},function(t,e,r){"use strict";var n=r(135),o=r(7),i=r(12),a=r(8),u=r(19),c=r(22),s=r(203),f=r(136),l=Math.max,h=Math.min,p=Math.floor,v=/\$([$&'`]|\d\d?|<[^>]*>)/g,d=/\$([$&'`]|\d\d?)/g;n("replace",2,(function(t,e,r,n){var y=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,g=n.REPLACE_KEEPS_$0,m=y?"$":"$0";return[function(r,n){var o=c(this),i=null==r?void 0:r[t];return void 0!==i?i.call(r,o,n):e.call(String(o),r,n)},function(t,n){if(!y&&g||"string"==typeof n&&-1===n.indexOf(m)){var i=r(e,t,this,n);if(i.done)return i.value}var c=o(t),p=String(this),v="function"==typeof n;v||(n=String(n));var d=c.global;if(d){var w=c.unicode;c.lastIndex=0}for(var x=[];;){var S=f(c,p);if(null===S)break;if(x.push(S),!d)break;""===String(S[0])&&(c.lastIndex=s(p,a(c.lastIndex),w))}for(var E,O="",A=0,_=0;_<x.length;_++){S=x[_];for(var k=String(S[0]),j=l(h(u(S.index),p.length),0),L=[],P=1;P<S.length;P++)L.push(void 0===(E=S[P])?E:String(E));var T=S.groups;if(v){var I=[k].concat(L,j,p);void 0!==T&&I.push(T);var R=String(n.apply(void 0,I))}else R=b(k,p,j,L,T,n);j>=A&&(O+=p.slice(A,j)+R,A=j+k.length)}return O+p.slice(A)}];function b(t,r,n,o,a,u){var c=n+t.length,s=o.length,f=d;return void 0!==a&&(a=i(a),f=v),e.call(u,f,(function(e,i){var u;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return r.slice(0,n);case"'":return r.slice(c);case"<":u=a[i.slice(1,-1)];break;default:var f=+i;if(0===f)return e;if(f>s){var l=p(f/10);return 0===l?e:l<=s?void 0===o[l-1]?i.charAt(1):o[l-1]+i.charAt(1):e}u=o[f-1]}return void 0===u?"":u}))}}))},function(t,e,r){"use strict";r(67);var n=r(13),o=r(1),i=r(4),a=r(92),u=r(11),c=i("species"),s=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),f="$0"==="a".replace(/./,"$0"),l=i("replace"),h=!!/./[l]&&""===/./[l]("a","$0"),p=!o((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}));t.exports=function(t,e,r,l){var v=i(t),d=!o((function(){var e={};return e[v]=function(){return 7},7!=""[t](e)})),y=d&&!o((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[c]=function(){return r},r.flags="",r[v]=/./[v]),r.exec=function(){return e=!0,null},r[v](""),!e}));if(!d||!y||"replace"===t&&(!s||!f||h)||"split"===t&&!p){var g=/./[v],m=r(v,""[t],(function(t,e,r,n,o){return e.exec===a?d&&!o?{done:!0,value:g.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}}),{REPLACE_KEEPS_$0:f,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:h}),b=m[0],w=m[1];n(String.prototype,t,b),n(RegExp.prototype,v,2==e?function(t,e){return w.call(t,this,e)}:function(t){return w.call(t,this)})}l&&u(RegExp.prototype[v],"sham",!0)}},function(t,e,r){var n=r(21),o=r(92);t.exports=function(t,e){var r=t.exec;if("function"==typeof r){var i=r.call(t,e);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==n(t))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},function(t,e){function r(){}r.prototype={on:function(t,e,r){var n=this.e||(this.e={});return(n[t]||(n[t]=[])).push({fn:e,ctx:r}),this},once:function(t,e,r){var n=this;function o(){n.off(t,o),e.apply(r,arguments)}return o._=e,this.on(t,o,r)},emit:function(t){for(var e=[].slice.call(arguments,1),r=((this.e||(this.e={}))[t]||[]).slice(),n=0,o=r.length;n<o;n++)r[n].fn.apply(r[n].ctx,e);return this},off:function(t,e){var r=this.e||(this.e={}),n=r[t],o=[];if(n&&e)for(var i=0,a=n.length;i<a;i++)n[i].fn!==e&&n[i].fn._!==e&&o.push(n[i]);return o.length?r[t]=o:delete r[t],this}},t.exports=r,t.exports.TinyEmitter=r},function(t,e,r){"use strict";window.regeneratorRuntime=r(139);var n=r(208).Identity;t.exports={Identity:n}},function(t,e,r){var n=function(t){"use strict";var e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var o=e&&e.prototype instanceof l?e:l,i=Object.create(o.prototype),a=new E(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return A()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=w(a,r);if(u){if(u===f)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=s(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,a),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var f={};function l(){}function h(){}function p(){}var v={};v[o]=function(){return this};var d=Object.getPrototypeOf,y=d&&d(d(O([])));y&&y!==e&&r.call(y,o)&&(v=y);var g=p.prototype=l.prototype=Object.create(v);function m(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){var n;this._invoke=function(o,i){function a(){return new e((function(n,a){!function n(o,i,a,u){var c=s(t[o],t,i);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==typeof l&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):e.resolve(l).then((function(t){f.value=t,a(f)}),(function(t){return n("throw",t,a,u)}))}u(c.arg)}(o,i,n,a)}))}return n=n?n.then(a,a):a()}}function w(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=s(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,f;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function O(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=g.constructor=p,p.constructor=h,h.displayName=u(p,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,u(t,a,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},m(b.prototype),b.prototype[i]=function(){return this},t.AsyncIterator=b,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new b(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},m(g),u(g,a,"Generator"),g[o]=function(){return this},g.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=O,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},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 n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){var n=r(0),o=r(70),i=n.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},function(t,e,r){var n=r(23),o=r(38),i=r(73),a=r(7);t.exports=n("Reflect","ownKeys")||function(t){var e=o.f(a(t)),r=i.f;return r?e.concat(r(t)):e}},function(t,e,r){var n=r(5),o=Math.floor;t.exports=function(t){return!n(t)&&isFinite(t)&&o(t)===t}},function(t,e,r){var n=r(5);t.exports=function(t){if(!n(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},function(t,e,r){var n=r(22),o="["+r(146)+"]",i=RegExp("^"+o+o+"*"),a=RegExp(o+o+"*$"),u=function(t){return function(e){var r=String(n(e));return 1&t&&(r=r.replace(i,"")),2&t&&(r=r.replace(a,"")),r}};t.exports={start:u(1),end:u(2),trim:u(3)}},function(t,e){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},function(t,e,r){"use strict";var n=r(2),o=r(1),i=r(110),a=r(7),u=r(39),c=r(8),s=r(41),f=i.ArrayBuffer,l=i.DataView,h=f.prototype.slice;n({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:o((function(){return!new f(2).slice(1,void 0).byteLength}))},{slice:function(t,e){if(void 0!==h&&void 0===e)return h.call(a(this),t);for(var r=a(this).byteLength,n=u(t,r),o=u(void 0===e?r:e,r),i=new(s(this,f))(c(o-n)),p=new l(this),v=new l(i),d=0;n<o;)v.setUint8(d++,p.getUint8(n++));return i}})},function(t,e){var r=Math.abs,n=Math.pow,o=Math.floor,i=Math.log,a=Math.LN2;t.exports={pack:function(t,e,u){var c,s,f,l=new Array(u),h=8*u-e-1,p=(1<<h)-1,v=p>>1,d=23===e?n(2,-24)-n(2,-77):0,y=t<0||0===t&&1/t<0?1:0,g=0;for((t=r(t))!=t||t===1/0?(s=t!=t?1:0,c=p):(c=o(i(t)/a),t*(f=n(2,-c))<1&&(c--,f*=2),(t+=c+v>=1?d/f:d*n(2,1-v))*f>=2&&(c++,f/=2),c+v>=p?(s=0,c=p):c+v>=1?(s=(t*f-1)*n(2,e),c+=v):(s=t*n(2,v-1)*n(2,e),c=0));e>=8;l[g++]=255&s,s/=256,e-=8);for(c=c<<e|s,h+=e;h>0;l[g++]=255&c,c/=256,h-=8);return l[--g]|=128*y,l},unpack:function(t,e){var r,o=t.length,i=8*o-e-1,a=(1<<i)-1,u=a>>1,c=i-7,s=o-1,f=t[s--],l=127&f;for(f>>=7;c>0;l=256*l+t[s],s--,c-=8);for(r=l&(1<<-c)-1,l>>=-c,c+=e;c>0;r=256*r+t[s],s--,c-=8);if(0===l)l=1-u;else{if(l===a)return r?NaN:f?-1/0:1/0;r+=n(2,e),l-=u}return(f?-1:1)*r*n(2,l-e)}}},function(t,e,r){"use strict";var n=r(81),o=r(50);t.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},function(t,e,r){r(151)("Uint8",(function(t){return function(e,r,n){return t(this,e,r,n)}}))},function(t,e,r){"use strict";var n=r(2),o=r(0),i=r(9),a=r(152),u=r(3),c=r(110),s=r(35),f=r(30),l=r(11),h=r(8),p=r(112),v=r(114),d=r(31),y=r(6),g=r(50),m=r(5),b=r(24),w=r(40),x=r(38).f,S=r(154),E=r(14).forEach,O=r(84),A=r(10),_=r(36),k=r(17),j=r(78),L=k.get,P=k.set,T=A.f,I=_.f,R=Math.round,U=o.RangeError,N=c.ArrayBuffer,C=c.DataView,M=u.NATIVE_ARRAY_BUFFER_VIEWS,F=u.TYPED_ARRAY_TAG,D=u.TypedArray,B=u.TypedArrayPrototype,V=u.aTypedArrayConstructor,G=u.isTypedArray,q=function(t,e){for(var r=0,n=e.length,o=new(V(t))(n);n>r;)o[r]=e[r++];return o},W=function(t,e){T(t,e,{get:function(){return L(this)[e]}})},Y=function(t){var e;return t instanceof N||"ArrayBuffer"==(e=g(t))||"SharedArrayBuffer"==e},$=function(t,e){return G(t)&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},z=function(t,e){return $(t,e=d(e,!0))?f(2,t[e]):I(t,e)},H=function(t,e,r){return!($(t,e=d(e,!0))&&m(r)&&y(r,"value"))||y(r,"get")||y(r,"set")||r.configurable||y(r,"writable")&&!r.writable||y(r,"enumerable")&&!r.enumerable?T(t,e,r):(t[e]=r.value,t)};i?(M||(_.f=z,A.f=H,W(B,"buffer"),W(B,"byteOffset"),W(B,"byteLength"),W(B,"length")),n({target:"Object",stat:!0,forced:!M},{getOwnPropertyDescriptor:z,defineProperty:H}),t.exports=function(t,e,r){var i=t.match(/\d+$/)[0]/8,u=t+(r?"Clamped":"")+"Array",c="get"+t,f="set"+t,d=o[u],y=d,g=y&&y.prototype,A={},_=function(t,e){T(t,e,{get:function(){return function(t,e){var r=L(t);return r.view[c](e*i+r.byteOffset,!0)}(this,e)},set:function(t){return function(t,e,n){var o=L(t);r&&(n=(n=R(n))<0?0:n>255?255:255&n),o.view[f](e*i+o.byteOffset,n,!0)}(this,e,t)},enumerable:!0})};M?a&&(y=e((function(t,e,r,n){return s(t,y,u),j(m(e)?Y(e)?void 0!==n?new d(e,v(r,i),n):void 0!==r?new d(e,v(r,i)):new d(e):G(e)?q(y,e):S.call(y,e):new d(p(e)),t,y)})),w&&w(y,D),E(x(d),(function(t){t in y||l(y,t,d[t])})),y.prototype=g):(y=e((function(t,e,r,n){s(t,y,u);var o,a,c,f=0,l=0;if(m(e)){if(!Y(e))return G(e)?q(y,e):S.call(y,e);o=e,l=v(r,i);var d=e.byteLength;if(void 0===n){if(d%i)throw U("Wrong length");if((a=d-l)<0)throw U("Wrong length")}else if((a=h(n)*i)+l>d)throw U("Wrong length");c=a/i}else c=p(e),o=new N(a=c*i);for(P(t,{buffer:o,byteOffset:l,byteLength:a,length:c,view:new C(o)});f<c;)_(t,f++)})),w&&w(y,D),g=y.prototype=b(B)),g.constructor!==y&&l(g,"constructor",y),F&&l(g,F,u),A[u]=y,n({global:!0,forced:y!=d,sham:!M},A),"BYTES_PER_ELEMENT"in y||l(y,"BYTES_PER_ELEMENT",i),"BYTES_PER_ELEMENT"in g||l(g,"BYTES_PER_ELEMENT",i),O(u)}):t.exports=function(){}},function(t,e,r){var n=r(0),o=r(1),i=r(61),a=r(3).NATIVE_ARRAY_BUFFER_VIEWS,u=n.ArrayBuffer,c=n.Int8Array;t.exports=!a||!o((function(){c(1)}))||!o((function(){new c(-1)}))||!i((function(t){new c,new c(null),new c(1.5),new c(t)}),!0)||o((function(){return 1!==new c(new u(2),1,void 0).length}))},function(t,e,r){var n=r(19);t.exports=function(t){var e=n(t);if(e<0)throw RangeError("The argument can't be less than 0");return e}},function(t,e,r){var n=r(12),o=r(8),i=r(49),a=r(80),u=r(33),c=r(3).aTypedArrayConstructor;t.exports=function(t){var e,r,s,f,l,h,p=n(t),v=arguments.length,d=v>1?arguments[1]:void 0,y=void 0!==d,g=i(p);if(null!=g&&!a(g))for(h=(l=g.call(p)).next,p=[];!(f=h.call(l)).done;)p.push(f.value);for(y&&v>2&&(d=u(d,arguments[2],2)),r=o(p.length),s=new(c(this))(r),e=0;r>e;e++)s[e]=y?d(p[e],e):p[e];return s}},function(t,e,r){"use strict";var n=r(3),o=r(156),i=n.aTypedArray;(0,n.exportTypedArrayMethod)("copyWithin",(function(t,e){return o.call(i(this),t,e,arguments.length>2?arguments[2]:void 0)}))},function(t,e,r){"use strict";var n=r(12),o=r(39),i=r(8),a=Math.min;t.exports=[].copyWithin||function(t,e){var r=n(this),u=i(r.length),c=o(t,u),s=o(e,u),f=arguments.length>2?arguments[2]:void 0,l=a((void 0===f?u:o(f,u))-s,u-c),h=1;for(s<c&&c<s+l&&(h=-1,s+=l-1,c+=l-1);l-- >0;)s in r?r[c]=r[s]:delete r[c],c+=h,s+=h;return r}},function(t,e,r){"use strict";var n=r(3),o=r(14).every,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("every",(function(t){return o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,r){"use strict";var n=r(3),o=r(113),i=n.aTypedArray;(0,n.exportTypedArrayMethod)("fill",(function(t){return o.apply(i(this),arguments)}))},function(t,e,r){"use strict";var n=r(3),o=r(14).filter,i=r(41),a=n.aTypedArray,u=n.aTypedArrayConstructor;(0,n.exportTypedArrayMethod)("filter",(function(t){for(var e=o(a(this),t,arguments.length>1?arguments[1]:void 0),r=i(this,this.constructor),n=0,c=e.length,s=new(u(r))(c);c>n;)s[n]=e[n++];return s}))},function(t,e,r){"use strict";var n=r(3),o=r(14).find,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("find",(function(t){return o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,r){"use strict";var n=r(3),o=r(14).findIndex,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("findIndex",(function(t){return o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,r){"use strict";var n=r(3),o=r(14).forEach,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("forEach",(function(t){o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,r){"use strict";var n=r(3),o=r(56).includes,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("includes",(function(t){return o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,r){"use strict";var n=r(3),o=r(56).indexOf,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("indexOf",(function(t){return o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,r){"use strict";var n=r(0),o=r(3),i=r(15),a=r(4)("iterator"),u=n.Uint8Array,c=i.values,s=i.keys,f=i.entries,l=o.aTypedArray,h=o.exportTypedArrayMethod,p=u&&u.prototype[a],v=!!p&&("values"==p.name||null==p.name),d=function(){return c.call(l(this))};h("entries",(function(){return f.call(l(this))})),h("keys",(function(){return s.call(l(this))})),h("values",d,!v),h(a,d,!v)},function(t,e,r){"use strict";var n=r(3),o=n.aTypedArray,i=n.exportTypedArrayMethod,a=[].join;i("join",(function(t){return a.apply(o(this),arguments)}))},function(t,e,r){"use strict";var n=r(3),o=r(168),i=n.aTypedArray;(0,n.exportTypedArrayMethod)("lastIndexOf",(function(t){return o.apply(i(this),arguments)}))},function(t,e,r){"use strict";var n=r(16),o=r(19),i=r(8),a=r(79),u=r(42),c=Math.min,s=[].lastIndexOf,f=!!s&&1/[1].lastIndexOf(1,-0)<0,l=a("lastIndexOf"),h=u("indexOf",{ACCESSORS:!0,1:0}),p=f||!l||!h;t.exports=p?function(t){if(f)return s.apply(this,arguments)||0;var e=n(this),r=i(e.length),a=r-1;for(arguments.length>1&&(a=c(a,o(arguments[1]))),a<0&&(a=r+a);a>=0;a--)if(a in e&&e[a]===t)return a||0;return-1}:s},function(t,e,r){"use strict";var n=r(3),o=r(14).map,i=r(41),a=n.aTypedArray,u=n.aTypedArrayConstructor;(0,n.exportTypedArrayMethod)("map",(function(t){return o(a(this),t,arguments.length>1?arguments[1]:void 0,(function(t,e){return new(u(i(t,t.constructor)))(e)}))}))},function(t,e,r){"use strict";var n=r(3),o=r(115).left,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduce",(function(t){return o(i(this),t,arguments.length,arguments.length>1?arguments[1]:void 0)}))},function(t,e,r){"use strict";var n=r(3),o=r(115).right,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduceRight",(function(t){return o(i(this),t,arguments.length,arguments.length>1?arguments[1]:void 0)}))},function(t,e,r){"use strict";var n=r(3),o=n.aTypedArray,i=n.exportTypedArrayMethod,a=Math.floor;i("reverse",(function(){for(var t,e=o(this).length,r=a(e/2),n=0;n<r;)t=this[n],this[n++]=this[--e],this[e]=t;return this}))},function(t,e,r){"use strict";var n=r(3),o=r(8),i=r(114),a=r(12),u=r(1),c=n.aTypedArray;(0,n.exportTypedArrayMethod)("set",(function(t){c(this);var e=i(arguments.length>1?arguments[1]:void 0,1),r=this.length,n=a(t),u=o(n.length),s=0;if(u+e>r)throw RangeError("Wrong length");for(;s<u;)this[e+s]=n[s++]}),u((function(){new Int8Array(1).set({})})))},function(t,e,r){"use strict";var n=r(3),o=r(41),i=r(1),a=n.aTypedArray,u=n.aTypedArrayConstructor,c=n.exportTypedArrayMethod,s=[].slice;c("slice",(function(t,e){for(var r=s.call(a(this),t,e),n=o(this,this.constructor),i=0,c=r.length,f=new(u(n))(c);c>i;)f[i]=r[i++];return f}),i((function(){new Int8Array(1).slice()})))},function(t,e,r){"use strict";var n=r(3),o=r(14).some,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("some",(function(t){return o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,r){"use strict";var n=r(3),o=n.aTypedArray,i=n.exportTypedArrayMethod,a=[].sort;i("sort",(function(t){return a.call(o(this),t)}))},function(t,e,r){"use strict";var n=r(3),o=r(8),i=r(39),a=r(41),u=n.aTypedArray;(0,n.exportTypedArrayMethod)("subarray",(function(t,e){var r=u(this),n=r.length,c=i(t,n);return new(a(r,r.constructor))(r.buffer,r.byteOffset+c*r.BYTES_PER_ELEMENT,o((void 0===e?n:i(e,n))-c))}))},function(t,e,r){"use strict";var n=r(0),o=r(3),i=r(1),a=n.Int8Array,u=o.aTypedArray,c=o.exportTypedArrayMethod,s=[].toLocaleString,f=[].slice,l=!!a&&i((function(){s.call(new a(1))}));c("toLocaleString",(function(){return s.apply(l?f.call(u(this)):u(this),arguments)}),i((function(){return[1,2].toLocaleString()!=new a([1,2]).toLocaleString()}))||!i((function(){a.prototype.toLocaleString.call([1,2])})))},function(t,e,r){"use strict";var n=r(3).exportTypedArrayMethod,o=r(1),i=r(0).Uint8Array,a=i&&i.prototype||{},u=[].toString,c=[].join;o((function(){u.call({})}))&&(u=function(){return c.call(this)});var s=a.toString!=u;n("toString",u,s)},function(t,e,r){"use strict";var n=r(2),o=r(181).start;n({target:"String",proto:!0,forced:r(183)},{padStart:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){var n=r(8),o=r(182),i=r(22),a=Math.ceil,u=function(t){return function(e,r,u){var c,s,f=String(i(e)),l=f.length,h=void 0===u?" ":String(u),p=n(r);return p<=l||""==h?f:(c=p-l,(s=o.call(h,a(c/h.length))).length>c&&(s=s.slice(0,c)),t?f+s:s+f)}};t.exports={start:u(!1),end:u(!0)}},function(t,e,r){"use strict";var n=r(19),o=r(22);t.exports="".repeat||function(t){var e=String(o(this)),r="",i=n(t);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(e+=e))1&i&&(r+=e);return r}},function(t,e,r){var n=r(77);t.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(n)},function(t,e,r){var n=r(0);t.exports=n.Promise},function(t,e,r){var n,o,i,a,u,c,s,f,l=r(0),h=r(36).f,p=r(21),v=r(118).set,d=r(119),y=l.MutationObserver||l.WebKitMutationObserver,g=l.process,m=l.Promise,b="process"==p(g),w=h(l,"queueMicrotask"),x=w&&w.value;x||(n=function(){var t,e;for(b&&(t=g.domain)&&t.exit();o;){e=o.fn,o=o.next;try{e()}catch(t){throw o?a():i=void 0,t}}i=void 0,t&&t.enter()},b?a=function(){g.nextTick(n)}:y&&!d?(u=!0,c=document.createTextNode(""),new y(n).observe(c,{characterData:!0}),a=function(){c.data=u=!u}):m&&m.resolve?(s=m.resolve(void 0),f=s.then,a=function(){f.call(s,n)}):a=function(){v.call(l,n)}),t.exports=x||function(t){var e={fn:t,next:void 0};i&&(i.next=e),o||(o=e,a()),i=e}},function(t,e,r){var n=r(7),o=r(5),i=r(120);t.exports=function(t,e){if(n(t),o(e)&&e.constructor===t)return e;var r=i.f(t);return(0,r.resolve)(e),r.promise}},function(t,e,r){var n=r(0);t.exports=function(t,e){var r=n.console;r&&r.error&&(1===arguments.length?r.error(t):r.error(t,e))}},function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},function(t,e,r){"use strict";var n=r(34),o=r(5),i=[].slice,a={},u=function(t,e,r){if(!(e in a)){for(var n=[],o=0;o<e;o++)n[o]="a["+o+"]";a[e]=Function("C,a","return new C("+n.join(",")+")")}return a[e](t,r)};t.exports=Function.bind||function(t){var e=n(this),r=i.call(arguments,1),a=function(){var n=r.concat(i.call(arguments));return this instanceof a?u(e,n.length,n):e.apply(t,n)};return o(e.prototype)&&(a.prototype=e.prototype),a}},function(t,e,r){"use strict";var n=r(7),o=r(31);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return o(n(this),"number"!==t)}},function(t,e,r){var n=r(16),o=r(38).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return a.slice()}}(t):o(n(t))}},function(t,e,r){"use strict";var n=r(14).forEach,o=r(79),i=r(42),a=o("forEach"),u=i("forEach");t.exports=a&&u?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,e,r){"use strict";var n=/[^\0-\u007E]/,o=/[.\u3002\uFF0E\uFF61]/g,i="Overflow: input needs wider integers to process",a=Math.floor,u=String.fromCharCode,c=function(t){return t+22+75*(t<26)},s=function(t,e,r){var n=0;for(t=r?a(t/700):t>>1,t+=a(t/e);t>455;n+=36)t=a(t/35);return a(n+36*t/(t+38))},f=function(t){var e,r,n=[],o=(t=function(t){for(var e=[],r=0,n=t.length;r<n;){var o=t.charCodeAt(r++);if(o>=55296&&o<=56319&&r<n){var i=t.charCodeAt(r++);56320==(64512&i)?e.push(((1023&o)<<10)+(1023&i)+65536):(e.push(o),r--)}else e.push(o)}return e}(t)).length,f=128,l=0,h=72;for(e=0;e<t.length;e++)(r=t[e])<128&&n.push(u(r));var p=n.length,v=p;for(p&&n.push("-");v<o;){var d=2147483647;for(e=0;e<t.length;e++)(r=t[e])>=f&&r<d&&(d=r);var y=v+1;if(d-f>a((2147483647-l)/y))throw RangeError(i);for(l+=(d-f)*y,f=d,e=0;e<t.length;e++){if((r=t[e])<f&&++l>2147483647)throw RangeError(i);if(r==f){for(var g=l,m=36;;m+=36){var b=m<=h?1:m>=h+26?26:m-h;if(g<b)break;var w=g-b,x=36-b;n.push(u(c(b+w%x))),g=a(w/x)}n.push(u(c(g))),h=s(l,y,v==p),l=0,++v}}++l,++f}return n.join("")};t.exports=function(t){var e,r,i=[],a=t.toLowerCase().replace(o,".").split(".");for(e=0;e<a.length;e++)r=a[e],i.push(n.test(r)?"xn--"+f(r):r);return i.join(".")}},function(t,e,r){var n=r(7),o=r(49);t.exports=function(t){var e=o(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return n(e.call(t))}},function(t,e,r){"use strict";var n=r(2),o=r(56).includes,i=r(109);n({target:"Array",proto:!0,forced:!r(42)("indexOf",{ACCESSORS:!0,1:0})},{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i("includes")},function(t,e,r){"use strict";var n=r(197),o=r(199);t.exports=n("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),o)},function(t,e,r){"use strict";var n=r(2),o=r(0),i=r(57),a=r(13),u=r(133),c=r(86),s=r(35),f=r(5),l=r(1),h=r(61),p=r(18),v=r(78);t.exports=function(t,e,r){var d=-1!==t.indexOf("Map"),y=-1!==t.indexOf("Weak"),g=d?"set":"add",m=o[t],b=m&&m.prototype,w=m,x={},S=function(t){var e=b[t];a(b,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(y&&!f(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return y&&!f(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(y&&!f(t))&&e.call(this,0===t?0:t)}:function(t,r){return e.call(this,0===t?0:t,r),this})};if(i(t,"function"!=typeof m||!(y||b.forEach&&!l((function(){(new m).entries().next()})))))w=r.getConstructor(e,t,d,g),u.REQUIRED=!0;else if(i(t,!0)){var E=new w,O=E[g](y?{}:-0,1)!=E,A=l((function(){E.has(1)})),_=h((function(t){new m(t)})),k=!y&&l((function(){for(var t=new m,e=5;e--;)t[g](e,e);return!t.has(-0)}));_||((w=e((function(e,r){s(e,w,t);var n=v(new m,e,w);return null!=r&&c(r,n[g],n,d),n}))).prototype=b,b.constructor=w),(A||k)&&(S("delete"),S("has"),d&&S("get")),(k||O)&&S(g),y&&b.clear&&delete b.clear}return x[t]=w,n({global:!0,forced:w!=m},x),p(w,t),y||r.setStrong(w,t,d),w}},function(t,e,r){var n=r(1);t.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(t,e,r){"use strict";var n=r(10).f,o=r(24),i=r(62),a=r(33),u=r(35),c=r(86),s=r(83),f=r(84),l=r(9),h=r(133).fastKey,p=r(17),v=p.set,d=p.getterFor;t.exports={getConstructor:function(t,e,r,s){var f=t((function(t,n){u(t,f,e),v(t,{type:e,index:o(null),first:void 0,last:void 0,size:0}),l||(t.size=0),null!=n&&c(n,t[s],t,r)})),p=d(e),y=function(t,e,r){var n,o,i=p(t),a=g(t,e);return a?a.value=r:(i.last=a={index:o=h(e,!0),key:e,value:r,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=a),n&&(n.next=a),l?i.size++:t.size++,"F"!==o&&(i.index[o]=a)),t},g=function(t,e){var r,n=p(t),o=h(e);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key==e)return r};return i(f.prototype,{clear:function(){for(var t=p(this),e=t.index,r=t.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete e[r.index],r=r.next;t.first=t.last=void 0,l?t.size=0:this.size=0},delete:function(t){var e=p(this),r=g(this,t);if(r){var n=r.next,o=r.previous;delete e.index[r.index],r.removed=!0,o&&(o.next=n),n&&(n.previous=o),e.first==r&&(e.first=n),e.last==r&&(e.last=o),l?e.size--:this.size--}return!!r},forEach:function(t){for(var e,r=p(this),n=a(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!g(this,t)}}),i(f.prototype,r?{get:function(t){var e=g(this,t);return e&&e.value},set:function(t,e){return y(this,0===t?0:t,e)}}:{add:function(t){return y(this,t=0===t?0:t,t)}}),l&&n(f.prototype,"size",{get:function(){return p(this).size}}),f},setStrong:function(t,e,r){var n=e+" Iterator",o=d(e),i=d(n);s(t,e,(function(t,e){v(this,{type:n,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?"keys"==e?{value:r.key,done:!1}:"values"==e?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),r?"entries":"values",!r,!0),f(e)}}},function(t,e,r){var n=r(2),o=r(201).entries;n({target:"Object",stat:!0},{entries:function(t){return o(t)}})},function(t,e,r){var n=r(9),o=r(47),i=r(16),a=r(54).f,u=function(t){return function(e){for(var r,u=i(e),c=o(u),s=c.length,f=0,l=[];s>f;)r=c[f++],n&&!a.call(u,r)||l.push(t?[r,u[r]]:u[r]);return l}};t.exports={entries:u(!0),values:u(!1)}},function(t,e,r){"use strict";var n=r(1);function o(t,e){return RegExp(t,e)}e.UNSUPPORTED_Y=n((function(){var t=o("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),e.BROKEN_CARET=n((function(){var t=o("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},function(t,e,r){"use strict";var n=r(82).charAt;t.exports=function(t,e,r){return e+(r?n(t,e).length:1)}},function(t,e,r){r(2)({target:"Number",stat:!0},{isFinite:r(205)})},function(t,e,r){var n=r(0).isFinite;t.exports=Number.isFinite||function(t){return"number"==typeof t&&n(t)}},function(t,e,r){"use strict";var n=r(135),o=r(7),i=r(22),a=r(207),u=r(136);n("search",1,(function(t,e,r){return[function(e){var r=i(this),n=null==e?void 0:e[t];return void 0!==n?n.call(e,r):new RegExp(e)[t](String(r))},function(t){var n=r(e,t,this);if(n.done)return n.value;var i=o(t),c=String(this),s=i.lastIndex;a(s,0)||(i.lastIndex=0);var f=u(i,c);return a(i.lastIndex,s)||(i.lastIndex=s),null===f?-1:f.index}]}))},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,r){"use strict";r.r(e),r.d(e,"Identity",(function(){return ft}));r(53),r(100),r(46),r(60),r(32),r(103),r(20),r(15),r(147),r(25),r(150),r(155),r(157),r(158),r(159),r(160),r(161),r(162),r(163),r(164),r(165),r(166),r(167),r(169),r(170),r(171),r(172),r(173),r(174),r(175),r(176),r(177),r(178),r(179),r(63),r(180),r(85),r(117),r(121),r(87),r(88),r(123),r(64),r(65),r(26),r(27),r(28),r(29),r(126),r(127),r(128),r(129),r(89),r(66),r(90),r(130),r(91),r(132),r(195),r(196);function n(t){return(n="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 o(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,(i=o.key,a=void 0,a=function(t,e){if("object"!==n(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===n(a)?a:String(a)),o)}var i,a}function i(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return a(t)}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function u(t){var e="function"==typeof Map?new Map:void 0;return(u=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return c(t,arguments,l(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),f(r,t)})(t)}function c(t,e,r){return(c=s()?Reflect.construct.bind():function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&f(o,r.prototype),o}).apply(null,arguments)}function s(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function f(t,e){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var h=["boolean","number","string"],p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(d,t);var e,r,u,c,p,v=(e=d,r=s(),function(){var t,n=l(e);if(r){var o=l(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return i(this,t)});function d(t,e){var r;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),(r=v.call(this,t)).name="SDKError","object"===n(e))try{Object.assign(a(r),e)}catch(t){}return r}return u=d,(c=[{key:"toString",value:function(){var t=this,e="".concat(this.name,": ").concat(this.message),r=Object.keys(this).filter((function(e){return"name"!==e&&h.includes(n(t[e]))})).map((function(e){return" ".concat(e,": ").concat(t[e])})).join("\n");return r?"".concat(e,"\n").concat(r):e}}])&&o(u.prototype,c),p&&o(u,p),Object.defineProperty(u,"prototype",{writable:!1}),d}(u(Error));function v(t){return(v="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 d(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Assertion failed";if(!t)throw new p(e)}function y(t){return"string"==typeof t}function g(t){return"string"==typeof t&&t.length>0}function m(t){return"object"===v(t)&&null!==t}function b(t){return m(t)&&Object.keys(t).length>0}function w(t){try{for(var e=new URL(t),r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return n.every((function(t){return e[t]}))}catch(t){return!1}}function x(t){return"function"==typeof t}function S(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=function(e){return y(e)&&t.toUpperCase()===e.toUpperCase()};return!(!y(t)||!Array.isArray(e))&&(r?-1!==e.indexOf(t):e.some(n))}r(200),r(67);function E(t){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function O(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return A(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return A(t,e)}(t,e)||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 A(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function _(){for(var t={},e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];if(!r||!r.length)throw new p("No objects to clone");return r.forEach((function(e){d(m(e)),b(e)&&Object.entries(e).forEach((function(e){var r=O(e,2),n=r[0],o=r[1];void 0!==o&&(t[n]=m(o)?k(o):o)}))})),t}function k(t){return d("object"===E(t),"obj should be an object (even null) but it is ".concat(t)),JSON.parse(JSON.stringify(t))||t}function j(t){return(j="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 L(t,e){return d(g(t),'"url" param must be a non empty string: '.concat(j(t))),b(e)&&w(e[t])?e[t]:(d(w(t,"hostname"),"Bad URL given: '".concat(t,"'")),t)}var P={ENDPOINTS:{SPiD:{LOCAL:"http://id.localhost",DEV:"https://identity-dev.schibsted.com",PRE:"https://identity-pre.schibsted.com",PRO:"https://login.schibsted.com",PRO_NO:"https://payment.schibsted.no",PRO_FI:"https://login.schibsted.fi",PRO_DK:"https://login.schibsted.dk"},BFF:{LOCAL:"http://id.localhost/authn/",DEV:"https://identity-dev.schibsted.com/authn/",PRE:"https://identity-pre.schibsted.com/authn/",PRO:"https://login.schibsted.com/authn/",PRO_NO:"https://payment.schibsted.no/authn/",PRO_FI:"https://login.schibsted.fi/authn/",PRO_DK:"https://login.schibsted.dk/authn/"},SESSION_SERVICE:{LOCAL:"http://session-service.id.localhost",DEV:"https://session-service.identity-dev.schibsted.com",PRE:"https://session-service.identity-pre.schibsted.com",PRO:"https://session-service.login.schibsted.com",PRO_NO:"https://session-service.payment.schibsted.no",PRO_FI:"https://session-service.login.schibsted.fi",PRO_DK:"https://session-service.login.schibsted.dk"}},NAMESPACE:{LOCAL:"id.localhost",DEV:"schibsted.com",PRE:"schibsted.com",PRO:"schibsted.com",PRO_NO:"spid.no",PRO_FI:"schibsted.fi",PRO_DK:"schibsted.dk"}},T=P.ENDPOINTS,I=P.NAMESPACE,R=r(137),U=r.n(R);r(134);function N(t){return(N="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 C(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=n.key,i=void 0,i=function(t,e){if("object"!==N(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==N(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"),"symbol"===N(i)?i:String(i)),n)}var o,i}function M(t,e,r){return e&&C(t.prototype,e),r&&C(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function F(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var D=M((function t(e){var r=this;F(this,t),this.store=e,this.get=function(t){return r.store.getItem(t)},this.set=function(t,e){return r.store.setItem(t,e)},this.delete=function(t){return r.store.removeItem(t)}})),B=M((function t(){var e=this;F(this,t),this.store={},this.get=function(t){return e.store[t]},this.set=function(t,r){return e.store[t]=r},this.delete=function(t){return delete e.store[t]}})),V=Math.pow(2,31)-1,G=function(){function t(e){F(this,t),!function(t){if(!t)return!1;try{var e=t(),r="x-x-x-x".replace(/x/g,(function(){return Math.random()}));e.setItem(r,"TEST-VALUE");var n=e.getItem(r);return e.removeItem(r),"TEST-VALUE"===n}catch(t){return!1}}(e)?(this.cache=new B,this.type="ObjectLiteralStorage"):(this.cache=new D(e()),this.type="WebStorage")}return M(t,[{key:"get",value:function(t){try{var e=function(t){try{return JSON.parse(t)}catch(t){return null}}(this.cache.get(t));return e&&Number.isInteger(e.expiresOn)&&e.expiresOn>Date.now()?e.value:(this.delete(t),null)}catch(t){throw new p(t)}}},{key:"set",value:function(t,e){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!(n<=0)){n=Math.min(V,n);try{var o=Math.floor(Date.now()+n);this.cache.set(t,JSON.stringify({expiresOn:o,value:e})),setTimeout((function(){return r.delete(t)}),n)}catch(t){throw new p(t)}}}},{key:"delete",value:function(t){try{this.cache.delete(t)}catch(t){throw new p(t)}}}]),t}();r(204);function q(t){return d(m(t),"Object must be an object but it is '".concat(t,"'")),Object.keys(t).map((function(e){return"".concat(e,"=").concat(t[e])})).join(",")}var W={scrollbars:"yes",location:"yes",status:"no",menubar:"no",toolbar:"no",resizable:"yes"};r(206);function Y(t){return(Y="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 $(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */$=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),u=new L(n||[]);return o(a,"_invoke",{value:A(t,r,u)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var h="suspendedStart",p="executing",v="completed",d={};function y(){}function g(){}function m(){}var b={};s(b,a,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(P([])));x&&x!==r&&n.call(x,a)&&(b=x);var S=m.prototype=y.prototype=Object.create(b);function E(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,a,u){var c=l(t[o],t,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==Y(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,u)}))}u(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function A(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=_(u,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var s=l(e,r,n);if("normal"===s.type){if(o=n.done?v:"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=v,n.method="throw",n.arg=s.arg)}}}function _(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,_(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,d;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,d):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(Y(e)+" is not iterable")}return g.prototype=m,o(S,"constructor",{value:m,configurable:!0}),o(m,"constructor",{value:g,configurable:!0}),g.displayName=s(m,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,s(t,c,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},E(O.prototype),s(O.prototype,u,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new O(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(S),s(S,c,"Generator"),s(S,a,(function(){return this})),s(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=P,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),d}},e}function z(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function H(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=n.key,i=void 0,i=function(t,e){if("object"!==Y(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"),"symbol"===Y(i)?i:String(i)),n)}var o,i}var K=function(t){return t.map((function(t){return m(t)?JSON.stringify(t,null,2):t})).join(" ")},J=function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return"function"==typeof t&&t(K(r))};function X(t){var e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}var Q=function(){function t(e){var r=e.serverUrl,n=void 0===r?"PRE":r,o=e.envDic,i=e.fetch,a=void 0===i?window.fetch&&window.fetch.bind(window):i,u=e.log,c=e.defaultParams,s=void 0===c?{}:c;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),d(m(s),"defaultParams should be a non-null object"),this.url=new URL(L(n,o)),this.defaultParams=s,u&&(d(x(u),"log must be a function but it is ".concat(u)),this.log=u),a&&(d(x(a),"Fetch should be a function"),this.fetch=a)}var e,r,n,o,i;return e=t,r=[{key:"go",value:(o=$().mark((function t(e){var r,n,o,i,a,u,c,s,f,l,h,v,b;return $().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.method,n=e.headers,o=e.pathname,i=e.data,a=void 0===i?{}:i,u=e.useDefaultParams,c=void 0===u||u,s=e.fetchOptions,f=void 0===s?{method:r,credentials:"include"}:s,d(x(this.fetch),"Can't make a call. The reference to fetch is missing or not a function."),d(g(r),'Method must be a non empty string but it is "'.concat(r,'"')),d(g(o),'Pathname must be string but it is "'.concat(o,'"')),d(m(a),"data must be a non-null object"),f.headers=m(n)?_(n):{},l=this.makeUrl(o,a,c),J(this.log,"Request:",f.method.toUpperCase(),l),J(this.log,"Request Headers:",f.headers),J(this.log,"Request Body:",f.body),t.prev=10,t.next=13,this.fetch(l,f);case 13:if(h=t.sent,J(this.log,"Response Code:",h.status,h.statusText),h.ok){t.next=17;break}throw new p(h.statusText,{code:h.status});case 17:return t.next=19,h.json();case 19:return v=t.sent,J(this.log,"Response Parsed:",v),t.abrupt("return",v);case 24:throw t.prev=24,t.t0=t.catch(10),b=y(t.t0)?t.t0:"Unknown RESTClient error",m(t.t0)&&y(t.t0.message)&&(b=t.t0.message),new p("Failed to '".concat(r,"' '").concat(l,"': '").concat(b,"'"),t.t0);case 29:case"end":return t.stop()}}),t,this,[[10,24]])})),i=function(){var t=this,e=arguments;return new Promise((function(r,n){var i=o.apply(t,e);function a(t){z(i,r,n,a,u,"next",t)}function u(t){z(i,r,n,a,u,"throw",t)}a(void 0)}))},function(t){return i.apply(this,arguments)})},{key:"makeUrl",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=new URL(e,this.url);return o.search=t.search(r,n,this.defaultParams),o.href}},{key:"get",value:function(t,e){return this.go({method:"get",pathname:t,data:e})}}],n=[{key:"search",value:function(t,e,r){var n=e?_(r,t):_(t);return Object.keys(n).filter((function(t){return""!==n[t]})).map((function(t){return"".concat(X(t),"=").concat(X(n[t]))})).join("&")}}],r&&H(e.prototype,r),n&&H(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Z(t){return(Z="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 tt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */tt=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),u=new L(n||[]);return o(a,"_invoke",{value:A(t,r,u)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var h="suspendedStart",p="executing",v="completed",d={};function y(){}function g(){}function m(){}var b={};s(b,a,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(P([])));x&&x!==r&&n.call(x,a)&&(b=x);var S=m.prototype=y.prototype=Object.create(b);function E(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,a,u){var c=l(t[o],t,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==nt(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,u)}))}u(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function A(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=_(u,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var s=l(e,r,n);if("normal"===s.type){if(o=n.done?v:"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=v,n.method="throw",n.arg=s.arg)}}}function _(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,_(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,d;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,d):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(nt(e)+" is not iterable")}return g.prototype=m,o(S,"constructor",{value:m,configurable:!0}),o(m,"constructor",{value:g,configurable:!0}),g.displayName=s(m,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,s(t,c,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},E(O.prototype),s(O.prototype,u,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new O(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(S),s(S,c,"Generator"),s(S,a,(function(){return this})),s(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=P,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),d}},e}function et(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function rt(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){et(i,n,o,a,u,"next",t)}function u(t){et(i,n,o,a,u,"throw",t)}a(void 0)}))}}function nt(t){return(nt="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 ot(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=n.key,i=void 0,i=function(t,e){if("object"!==nt(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==nt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"),"symbol"===nt(i)?i:String(i)),n)}var o,i}function it(t,e){return(it=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function at(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=ct(t);if(e){var o=ct(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return ut(this,r)}}function ut(t,e){if(e&&("object"===nt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function ct(t){return(ct=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var st=function(){return window},ft=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&it(t,e)}(E,t);var e,r,n,o,i,a,u,c,s,f,l,h,v,b=at(E);function E(t){var e,r,n=t.clientId,o=t.redirectUri,i=t.sessionDomain,a=t.env,u=void 0===a?"PRE":a,c=t.log,s=t.window,f=void 0===s?st():s,l=t.callbackBeforeRedirect,h=void 0===l?function(){}:l;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,E),e=b.call(this),d(g(n),"clientId parameter is required"),d(m(f),"The reference to window is missing"),d(!o||w(o),"redirectUri parameter is invalid"),d(i&&w(i),"sessionDomain parameter is not a valid URL"),null!==(r=f).SPiD&&"object"===Z(r.SPiD)||(r.SPiD={}),null!==r.SPiD.Talk&&"object"===Z(r.SPiD.Talk)||(r.SPiD.Talk={}),x(r.SPiD.Talk.response)||(r.SPiD.Talk.response=function(t,e){return r[t](e)}),e._sessionInitiatedSent=!1,e.window=f,e.clientId=n,e.cache=new G((function(){return e.window&&e.window.sessionStorage})),e.redirectUri=o,e.env=u,e.log=c,e.callbackBeforeRedirect=h,e._sessionDomain=i,e._enableSessionCaching=!0,e._session={},e._setSessionServiceUrl(i),e._setSpidServerUrl(u),e._setBffServerUrl(u),e._setOauthServerUrl(u),e._setGlobalSessionServiceUrl(u),e}return e=E,(r=[{key:"_setSpidServerUrl",value:function(t){d(y(t),"url parameter is invalid: ".concat(t)),this._spid=new Q({serverUrl:L(t,T.SPiD),log:this.log,defaultParams:{client_id:this.clientId,redirect_uri:this.redirectUri}})}},{key:"_setOauthServerUrl",value:function(t){d(y(t),"url parameter is invalid: ".concat(t)),this._oauthService=new Q({serverUrl:L(t,T.SPiD),log:this.log,defaultParams:{client_id:this.clientId,redirect_uri:this.redirectUri}})}},{key:"_setBffServerUrl",value:function(t){d(y(t),"url parameter is invalid: ".concat(t)),this._bffService=new Q({serverUrl:L(t,T.BFF),log:this.log,defaultParams:{client_id:this.clientId,redirect_uri:this.redirectUri}})}},{key:"_setSessionServiceUrl",value:function(t){d(y(t),"domain parameter is invalid: ".concat(t));var e="sdrn:".concat(I[this.env],":client:").concat(this.clientId);this._sessionService=new Q({serverUrl:t,log:this.log,defaultParams:{client_sdrn:e,redirect_uri:this.redirectUri,sdk_version:"4.8.7-beta.3"}})}},{key:"_setGlobalSessionServiceUrl",value:function(t){d(y(t),"url parameter is invalid: ".concat(t));var e="sdrn:".concat(I[this.env],":client:").concat(this.clientId);this._globalSessionService=new Q({serverUrl:L(t,T.SESSION_SERVICE),log:this.log,defaultParams:{client_sdrn:e,sdk_version:"4.8.7-beta.3"}})}},{key:"_emitSessionEvent",value:function(t,e){e.userId&&this.emit("login",e),t.userId&&!e.userId&&this.emit("logout",e),t.userId&&e.userId&&t.userId!==e.userId&&this.emit("userChange",e),t.userId||e.userId?this.emit("sessionChange",e):this.emit("notLoggedin",e),e.userId&&!this._sessionInitiatedSent&&(this._sessionInitiatedSent=!0,this.emit("sessionInit",e)),t.userStatus!==e.userStatus&&this.emit("statusChange",e)}},{key:"_closePopup",value:function(){this.popup&&(this.popup.closed||this.popup.close(),this.popup=null)}},{key:"enableVarnishCookie",value:function(t){var e,r=0;Number.isInteger(t)?r=t:"object"==nt(t)&&(r=t.expiresIn||r,e=t.domain||e),d(Number.isInteger(r),"'expiresIn' must be an integer"),d(r>=0,"'expiresIn' cannot be negative"),this.setVarnishCookie=!0,this.varnishExpiresIn=r,this.varnishCookieDomain=e}},{key:"_maybeSetVarnishCookie",value:function(t){if(this.setVarnishCookie){var e=new Date;if(this.varnishExpiresIn||"number"==typeof t.expiresIn&&t.expiresIn>0){var r=this.varnishExpiresIn||t.expiresIn;e.setTime(e.getTime()+1e3*r)}else e.setTime(0);var n=this.varnishCookieDomain||("string"==typeof t.baseDomain?t.baseDomain:document.domain)||"",o=["SP_ID=".concat(t.sp_id),"expires=".concat(e.toUTCString()),"path=/","domain=.".concat(n)].join("; ");document.cookie=o}}},{key:"_maybeClearVarnishCookie",value:function(){this.setVarnishCookie&&this._clearVarnishCookie()}},{key:"_clearVarnishCookie",value:function(){var t=this._session&&"string"==typeof this._session.baseDomain?this._session.baseDomain:document.domain,e=this.varnishCookieDomain||t||"";document.cookie="SP_ID=nothing; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; domain=.".concat(e)}},{key:"logSettings",value:function(){if(!this.log&&!window.console)throw new p("You have to provide log method in constructor");var t=this.log||console.log,e={clientId:this.clientId,redirectUri:this.redirectUri,env:this.env,sessionDomain:this._sessionDomain,sdkVersion:"4.8.7-beta.3"};t("Schibsted account SDK for browsers settings: \n".concat(JSON.stringify(e,null,2)))}},{key:"hasSession",value:function(){var t=this;if(this._hasSessionInProgress)return this._hasSessionInProgress;var e=function(e){if(e.error)throw new p("HasSession failed",e.error);return t._maybeSetVarnishCookie(e),t._emitSessionEvent(t._session,e),t._session=e,e},r=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Object.keys(t);return 1===e.length&&"redirectURL"===e[0]},n=function(){var n=rt(tt().mark((function n(){var o,i,a,u;return tt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!t._enableSessionCaching){n.next=4;break}if(!(o=t.cache.get("hasSession-cache"))){n.next=4;break}return n.abrupt("return",e(o));case 4:return i=null,n.prev=5,n.next=8,t._sessionService.get("/v2/session");case 8:i=n.sent,n.next=15;break;case 11:throw n.prev=11,n.t0=n.catch(5),n.t0&&400===n.t0.code&&t._enableSessionCaching&&(a=1e3*(n.t0.expiresIn||300),t.cache.set("hasSession-cache",{error:n.t0},a)),n.t0;case 15:if(!i){n.next=22;break}if(!r(i)){n.next=21;break}return n.next=19,t.callbackBeforeRedirect();case 19:return t.window.location.href=t._sessionService.makeUrl(i.redirectURL),n.abrupt("return");case 21:t._enableSessionCaching&&(u=1e3*(i.expiresIn||300),t.cache.set("hasSession-cache",i,u));case 22:return n.abrupt("return",e(i));case 23:case"end":return n.stop()}}),n,null,[[5,11]])})));return function(){return n.apply(this,arguments)}}();return this._hasSessionInProgress=n().then((function(e){return t._hasSessionInProgress=!1,e}),(function(e){throw t.emit("error",e),t._hasSessionInProgress=!1,new p("HasSession failed",e)})),this._hasSessionInProgress}},{key:"isLoggedIn",value:(v=rt(tt().mark((function t(){var e;return tt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.hasSession();case 3:return e=t.sent,t.abrupt("return","result"in e);case 7:return t.prev=7,t.t0=t.catch(0),t.abrupt("return",!1);case 10:case"end":return t.stop()}}),t,this,[[0,7]])}))),function(){return v.apply(this,arguments)})},{key:"clearCachedUserSession",value:function(){this.cache.delete("hasSession-cache")}},{key:"isConnected",value:(h=rt(tt().mark((function t(){var e;return tt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.hasSession();case 3:return e=t.sent,t.abrupt("return",!!e.result);case 7:return t.prev=7,t.t0=t.catch(0),t.abrupt("return",!1);case 10:case"end":return t.stop()}}),t,this,[[0,7]])}))),function(){return h.apply(this,arguments)})},{key:"getUser",value:(l=rt(tt().mark((function t(){var e;return tt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.hasSession();case 2:if((e=t.sent).result){t.next=5;break}throw new p("The user is not connected to this merchant");case 5:return t.abrupt("return",k(e));case 6:case"end":return t.stop()}}),t,this)}))),function(){return l.apply(this,arguments)})},{key:"getUserId",value:(f=rt(tt().mark((function t(){var e;return tt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.hasSession();case 2:if(!(e=t.sent).userId||!e.result){t.next=5;break}return t.abrupt("return",e.userId);case 5:throw new p("The user is not connected to this merchant");case 6:case"end":return t.stop()}}),t,this)}))),function(){return f.apply(this,arguments)})},{key:"getExternalId",value:(s=rt(tt().mark((function t(e){var r,n,o,i,a,u,c,s=arguments;return tt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=s.length>1&&void 0!==s[1]?s[1]:"",t.next=3,this.hasSession();case 3:if(n=t.sent,o=n.pairId){t.next=7;break}throw new p("pairId missing in user session!");case 7:if(e&&0!==e.length){t.next=9;break}throw new p("externalParty cannot be empty");case 9:return i=function(t){return Array.from(new Uint8Array(t)).map((function(t){return t.toString(16).padStart(2,"0")})).join("")},a=function(t){return crypto.subtle.digest("SHA-256",t)},u=function(){var t=rt(tt().mark((function t(e){var r;return tt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=(new TextEncoder).encode(e),t.abrupt("return",a(r).then((function(t){return i(t)})));case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),c=function(t,e,r){return r?"".concat(t,":").concat(e,":").concat(r):"".concat(t,":").concat(e)},t.abrupt("return",u(c(o,e,r)));case 14:case"end":return t.stop()}}),t,this)}))),function(t){return s.apply(this,arguments)})},{key:"getUserSDRN",value:(c=rt(tt().mark((function t(){var e,r;return tt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.hasSession();case 2:if(e=t.sent,!(r=e.sdrn)){t.next=6;break}return t.abrupt("return",r);case 6:throw new p("Failed to get SDRN from user session");case 7:case"end":return t.stop()}}),t,this)}))),function(){return c.apply(this,arguments)})},{key:"getUserUuid",value:(u=rt(tt().mark((function t(){var e;return tt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.hasSession();case 2:if(!(e=t.sent).uuid||!e.result){t.next=5;break}return t.abrupt("return",e.uuid);case 5:throw new p("The user is not connected to this merchant");case 6:case"end":return t.stop()}}),t,this)}))),function(){return u.apply(this,arguments)})},{key:"getUserContextData",value:(a=rt(tt().mark((function t(){return tt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this._globalSessionService.get("/user-context");case 3:return t.abrupt("return",t.sent);case 6:return t.prev=6,t.t0=t.catch(0),t.abrupt("return",null);case 9:case"end":return t.stop()}}),t,this,[[0,6]])}))),function(){return a.apply(this,arguments)})},{key:"login",value:function(t){var e=t.state,r=t.acrValues,n=void 0===r?"":r,o=t.scope,i=void 0===o?"openid":o,a=t.redirectUri,u=void 0===a?this.redirectUri:a,c=t.preferPopup,s=void 0!==c&&c,f=t.loginHint,l=void 0===f?"":f,h=t.tag,p=void 0===h?"":h,v=t.teaser,y=void 0===v?"":v,g=t.maxAge,b=void 0===g?"":g,S=t.locale,E=void 0===S?"":S,O=t.oneStepLogin,A=void 0!==O&&O,k=t.prompt,j=void 0===k?"select_account":k;this._closePopup(),this.cache.delete("hasSession-cache");var L=this.loginUrl({state:e,acrValues:n,scope:i,redirectUri:u,loginHint:l,tag:p,teaser:y,maxAge:b,locale:E,oneStepLogin:A,prompt:j});return s&&(this.popup=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};d(m(t),"window was supposed to be an object but it is ".concat(t)),d(m(t.screen),"window should be a valid Window object but it lacks a 'screen' property"),d(x(t.open),"window should be a valid Window object but it lacks an 'open' function"),d(w(e),"Invalid URL for popup");var o=t.screen,i=o.height,a=o.width,u=_(W,n);Number.isFinite(u.width)&&Number.isFinite(a)&&(u.left=(a-u.width)/2),Number.isFinite(u.height)&&Number.isFinite(i)&&(u.top=(i-u.height)/2);var c=q(u);return t.open(e,r,c)}(this.window,L,"Schibsted account",{width:360,height:570}),this.popup)?this.popup:(this.window.location.href=L,null)}},{key:"getSpId",value:(i=rt(tt().mark((function t(){var e;return tt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.hasSession();case 3:return e=t.sent,t.abrupt("return",e.sp_id||null);case 7:return t.prev=7,t.t0=t.catch(0),t.abrupt("return",null);case 10:case"end":return t.stop()}}),t,this,[[0,7]])}))),function(){return i.apply(this,arguments)})},{key:"logout",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.redirectUri;this.cache.delete("hasSession-cache"),this._maybeClearVarnishCookie(),this.emit("logout"),this.window.location.href=this.logoutUrl(t)}},{key:"loginUrl",value:function(t){var e=t.state,r=t.acrValues,n=void 0===r?"":r,o=t.scope,i=void 0===o?"openid":o,a=t.redirectUri,u=void 0===a?this.redirectUri:a,c=t.loginHint,s=void 0===c?"":c,f=t.tag,l=void 0===f?"":f,h=t.teaser,p=void 0===h?"":h,v=t.maxAge,y=void 0===v?"":v,m=t.locale,b=void 0===m?"":m,x=t.oneStepLogin,E=void 0!==x&&x,O=t.prompt,A=void 0===O?"select_account":O;"object"!==nt(arguments[0])&&(e=arguments[0],n=arguments[1],i=arguments[2]||i,u=arguments[3]||u,s=arguments[4]||s,l=arguments[5]||l,p=arguments[6]||p,y=isNaN(arguments[7])?y:arguments[7]);var _=function(t){return S(t,["password","otp","sms","eid-no","eid-se","eid-fi","eid"],!0)};return d(!n||S(n,["","otp-email"],!0)||n.split(" ").every(_),"The acrValues parameter is not acceptable: ".concat(n)),d(w(u),"loginUrl(): redirectUri must be a valid url but is ".concat(u)),d(g(e),"the state parameter should be a non empty string but it is ".concat(e)),this._oauthService.makeUrl("oauth/authorize",{response_type:"code",redirect_uri:u,scope:i,state:e,acr_values:n,login_hint:s,tag:l,teaser:p,max_age:y,locale:b,one_step_login:E||"",prompt:n?"":A})}},{key:"logoutUrl",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.redirectUri;d(w(t),"logoutUrl(): redirectUri is invalid");var e={redirect_uri:t};return this._sessionService.makeUrl("logout",e)}},{key:"accountUrl",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.redirectUri;return this._spid.makeUrl("profile-pages",{response_type:"code",redirect_uri:t})}},{key:"phonesUrl",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.redirectUri;return this._spid.makeUrl("profile-pages/about-you/phone",{response_type:"code",redirect_uri:t})}},{key:"showSimplifiedLoginWidget",value:(o=rt(tt().mark((function t(e,r){var n,o,i,a,u=this;return tt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getUserContextData();case 2:return n=t.sent,o={client_id:this.clientId},r&&r.encoding&&(o.encoding=r.encoding),i=this._bffService.makeUrl("simplified-login-widget",o,!1),a=function(){var t=rt(tt().mark((function t(e){return tt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("function"!=typeof e.state){t.next=4;break}return t.next=3,e.state();case 3:e.state=t.sent;case 4:return t.abrupt("return",e);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),t.abrupt("return",new Promise((function(t,o){if(!n||!n.display_text||!n.identifier)return o(new p("Missing user data"));var c={displayText:n.display_text,env:u.env,clientName:n.client_name,clientId:u.clientId,providerId:n.provider_id,windowWidth:function(){return window.innerWidth},windowOnResize:function(t){window.onresize=t}};r&&r.locale&&(c.locale=r.locale);var s=function(){var t=rt(tt().mark((function t(){return tt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=u,t.t1=Object,t.next=4,a(e);case 4:t.t2=t.sent,t.t3={loginHint:n.identifier},t.t4=t.t1.assign.call(t.t1,t.t2,t.t3),t.t0.login.call(t.t0,t.t4);case 8:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),f=function(){var t=rt(tt().mark((function t(){return tt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=u,t.t1=Object,t.next=4,a(e);case 4:t.t2=t.sent,t.t3={loginHint:n.identifier,prompt:"login"},t.t4=t.t1.assign.call(t.t1,t.t2,t.t3),t.t0.login.call(t.t0,t.t4);case 8:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),l=function(){u.emit("simplifiedLoginOpened")},h=function(){u.emit("simplifiedLoginCancelled")};if(window.openSimplifiedLoginWidget)return window.openSimplifiedLoginWidget(c,s,f,l,h),t(!0);var v=document.createElement("script");v.type="text/javascript",v.src=i,v.onload=function(){window.openSimplifiedLoginWidget(c,s,f,l,h),t(!0)},v.onerror=function(){o(new p("Error when loading simplified login widget content"))},document.getElementsByTagName("body")[0].appendChild(v)})));case 8:case"end":return t.stop()}}),t,this)}))),function(t,e){return o.apply(this,arguments)})}])&&ot(e.prototype,r),n&&ot(e,n),Object.defineProperty(e,"prototype",{writable:!1}),E}(U.a);e.default=ft}]);
2
2
  //# sourceMappingURL=identity.min.js.map