@pollyjs/persister-local-storage
Version:
Local storage persister for @pollyjs
3 lines • 118 kB
JavaScript
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self)["@pollyjs/persister-local-storage"]=e()}(this,(function(){"use strict";var t="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function r(t,e){return t(e={exports:{}},e.exports),e.exports}var n=r((function(t){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)})),o=r((function(t){var e=t.exports={version:"2.6.9"};"number"==typeof __e&&(__e=e)})),i=(o.version,function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}),a=function(t,e,r){if(i(t),void 0===e)return t;switch(r){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)}},s=function(t){return"object"==typeof t?null!==t:"function"==typeof t},u=function(t){if(!s(t))throw TypeError(t+" is not an object!");return t},c=function(t){try{return!!t()}catch(t){return!0}},f=!c((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),l=n.document,p=s(l)&&s(l.createElement),h=function(t){return p?l.createElement(t):{}},d=!f&&!c((function(){return 7!=Object.defineProperty(h("div"),"a",{get:function(){return 7}}).a})),y=function(t,e){if(!s(t))return t;var r,n;if(e&&"function"==typeof(r=t.toString)&&!s(n=r.call(t)))return n;if("function"==typeof(r=t.valueOf)&&!s(n=r.call(t)))return n;if(!e&&"function"==typeof(r=t.toString)&&!s(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")},v=Object.defineProperty,g={f:f?Object.defineProperty:function(t,e,r){if(u(t),e=y(e,!0),u(r),d)try{return v(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}},m=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},b=f?function(t,e,r){return g.f(t,e,m(1,r))}:function(t,e,r){return t[e]=r,t},w={}.hasOwnProperty,_=function(t,e){return w.call(t,e)},S=function(t,e,r){var i,s,u,c=t&S.F,f=t&S.G,l=t&S.S,p=t&S.P,h=t&S.B,d=t&S.W,y=f?o:o[e]||(o[e]={}),v=y.prototype,g=f?n:l?n[e]:(n[e]||{}).prototype;for(i in f&&(r=e),r)(s=!c&&g&&void 0!==g[i])&&_(y,i)||(u=s?g[i]:r[i],y[i]=f&&"function"!=typeof g[i]?r[i]:h&&s?a(u,n):d&&g[i]==u?function(t){var e=function(e,r,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,r)}return new t(e,r,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(u):p&&"function"==typeof u?a(Function.call,u):u,p&&((y.virtual||(y.virtual={}))[i]=u,t&S.R&&v&&!v[i]&&b(v,i,u)))};S.F=1,S.G=2,S.S=4,S.P=8,S.B=16,S.W=32,S.U=64,S.R=128;var x,O=S,P={}.toString,A=function(t){return P.call(t).slice(8,-1)},E=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==A(t)?t.split(""):Object(t)},M=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},k=function(t){return E(M(t))},R=Math.ceil,j=Math.floor,F=function(t){return isNaN(t=+t)?0:(t>0?j:R)(t)},T=Math.min,B=function(t){return t>0?T(F(t),9007199254740991):0},I=Math.max,N=Math.min,U=r((function(t){var e=n["__core-js_shared__"]||(n["__core-js_shared__"]={});(t.exports=function(t,r){return e[t]||(e[t]=void 0!==r?r:{})})("versions",[]).push({version:o.version,mode:"pure",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})})),C=0,L=Math.random(),D=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++C+L).toString(36))},z=U("keys"),Y=function(t){return z[t]||(z[t]=D(t))},W=(x=!1,function(t,e,r){var n,o=k(t),i=B(o.length),a=function(t,e){return(t=F(t))<0?I(t+e,0):N(t,e)}(r,i);if(x&&e!=e){for(;i>a;)if((n=o[a++])!=n)return!0}else for(;i>a;a++)if((x||a in o)&&o[a]===e)return x||a||0;return!x&&-1}),G=Y("IE_PROTO"),V=function(t,e){var r,n=k(t),o=0,i=[];for(r in n)r!=G&&_(n,r)&&i.push(r);for(;e.length>o;)_(n,r=e[o++])&&(~W(i,r)||i.push(r));return i},J="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),q=Object.keys||function(t){return V(t,J)},H=f?Object.defineProperties:function(t,e){u(t);for(var r,n=q(e),o=n.length,i=0;o>i;)g.f(t,r=n[i++],e[r]);return t},K=n.document,$=K&&K.documentElement,Z=Y("IE_PROTO"),X=function(){},Q=function(){var t,e=h("iframe"),r=J.length;for(e.style.display="none",$.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),Q=t.F;r--;)delete Q.prototype[J[r]];return Q()},tt=Object.create||function(t,e){var r;return null!==t?(X.prototype=u(t),r=new X,X.prototype=null,r[Z]=t):r=Q(),void 0===e?r:H(r,e)},et=function(t,e,r){var n=void 0===r;switch(e.length){case 0:return n?t():t.call(r);case 1:return n?t(e[0]):t.call(r,e[0]);case 2:return n?t(e[0],e[1]):t.call(r,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(r,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(r,e[0],e[1],e[2],e[3])}return t.apply(r,e)},rt=[].slice,nt={},ot=function(t,e,r){if(!(e in nt)){for(var n=[],o=0;o<e;o++)n[o]="a["+o+"]";nt[e]=Function("F,a","return new F("+n.join(",")+")")}return nt[e](t,r)},it=Function.bind||function(t){var e=i(this),r=rt.call(arguments,1),n=function(){var o=r.concat(rt.call(arguments));return this instanceof n?ot(e,o.length,o):et(e,o,t)};return s(e.prototype)&&(n.prototype=e.prototype),n},at=(n.Reflect||{}).construct,st=c((function(){function t(){}return!(at((function(){}),[],t)instanceof t)})),ut=!c((function(){at((function(){}))}));O(O.S+O.F*(st||ut),"Reflect",{construct:function(t,e){i(t),u(e);var r=arguments.length<3?t:i(arguments[2]);if(ut&&!st)return at(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(it.apply(t,n))}var o=r.prototype,a=tt(s(o)?o:Object.prototype),c=Function.apply.call(t,a,e);return s(c)?c:a}});var ct=o.Reflect.construct,ft=e(r((function(t){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.default=t.exports,t.exports.__esModule=!0})));O(O.S+O.F*!f,"Object",{defineProperty:g.f});var lt=o.Object,pt=function(t,e,r){return lt.defineProperty(t,e,r)},ht=e(r((function(t){function e(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),pt(t,n.key,n)}}t.exports=function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t},t.exports.default=t.exports,t.exports.__esModule=!0})));O(O.S,"Object",{create:tt});var dt=o.Object,yt=function(t,e){return dt.create(t,e)},vt={f:{}.propertyIsEnumerable},gt=Object.getOwnPropertyDescriptor,mt={f:f?gt:function(t,e){if(t=k(t),e=y(e,!0),d)try{return gt(t,e)}catch(t){}if(_(t,e))return m(!vt.f.call(t,e),t[e])}},bt=function(t,e){if(u(t),!s(e)&&null!==e)throw TypeError(e+": can't set as prototype!")},wt={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{(r=a(Function.call,mt.f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return bt(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:bt};O(O.S,"Object",{setPrototypeOf:wt.set});var _t=o.Object.setPrototypeOf,St=r((function(t){function e(r,n){return t.exports=e=_t||function(t,e){return t.__proto__=e,t},t.exports.default=t.exports,t.exports.__esModule=!0,e(r,n)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0}));e(St);var xt=e(r((function(t){t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=yt(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&St(t,e)},t.exports.default=t.exports,t.exports.__esModule=!0}))),Ot=b,Pt=r((function(t){var e=D("meta"),r=g.f,n=0,o=Object.isExtensible||function(){return!0},i=!c((function(){return o(Object.preventExtensions({}))})),a=function(t){r(t,e,{value:{i:"O"+ ++n,w:{}}})},u=t.exports={KEY:e,NEED:!1,fastKey:function(t,r){if(!s(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!_(t,e)){if(!o(t))return"F";if(!r)return"E";a(t)}return t[e].i},getWeak:function(t,r){if(!_(t,e)){if(!o(t))return!0;if(!r)return!1;a(t)}return t[e].w},onFreeze:function(t){return i&&u.NEED&&o(t)&&!_(t,e)&&a(t),t}}})),At=(Pt.KEY,Pt.NEED,Pt.fastKey,Pt.getWeak,Pt.onFreeze,r((function(t){var e=U("wks"),r=n.Symbol,o="function"==typeof r;(t.exports=function(t){return e[t]||(e[t]=o&&r[t]||(o?r:D)("Symbol."+t))}).store=e}))),Et=g.f,Mt=At("toStringTag"),kt=function(t,e,r){t&&!_(t=r?t:t.prototype,Mt)&&Et(t,Mt,{configurable:!0,value:e})},Rt={f:At},jt=g.f,Ft=function(t){var e=o.Symbol||(o.Symbol={});"_"==t.charAt(0)||t in e||jt(e,t,{value:Rt.f(t)})},Tt={f:Object.getOwnPropertySymbols},Bt=Array.isArray||function(t){return"Array"==A(t)},It=function(t){return Object(M(t))},Nt=J.concat("length","prototype"),Ut={f:Object.getOwnPropertyNames||function(t){return V(t,Nt)}},Ct=Ut.f,Lt={}.toString,Dt="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],zt={f:function(t){return Dt&&"[object Window]"==Lt.call(t)?function(t){try{return Ct(t)}catch(t){return Dt.slice()}}(t):Ct(k(t))}},Yt=Pt.KEY,Wt=mt.f,Gt=g.f,Vt=zt.f,Jt=n.Symbol,qt=n.JSON,Ht=qt&&qt.stringify,Kt=At("_hidden"),$t=At("toPrimitive"),Zt={}.propertyIsEnumerable,Xt=U("symbol-registry"),Qt=U("symbols"),te=U("op-symbols"),ee=Object.prototype,re="function"==typeof Jt&&!!Tt.f,ne=n.QObject,oe=!ne||!ne.prototype||!ne.prototype.findChild,ie=f&&c((function(){return 7!=tt(Gt({},"a",{get:function(){return Gt(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=Wt(ee,e);n&&delete ee[e],Gt(t,e,r),n&&t!==ee&&Gt(ee,e,n)}:Gt,ae=function(t){var e=Qt[t]=tt(Jt.prototype);return e._k=t,e},se=re&&"symbol"==typeof Jt.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof Jt},ue=function(t,e,r){return t===ee&&ue(te,e,r),u(t),e=y(e,!0),u(r),_(Qt,e)?(r.enumerable?(_(t,Kt)&&t[Kt][e]&&(t[Kt][e]=!1),r=tt(r,{enumerable:m(0,!1)})):(_(t,Kt)||Gt(t,Kt,m(1,{})),t[Kt][e]=!0),ie(t,e,r)):Gt(t,e,r)},ce=function(t,e){u(t);for(var r,n=function(t){var e=q(t),r=Tt.f;if(r)for(var n,o=r(t),i=vt.f,a=0;o.length>a;)i.call(t,n=o[a++])&&e.push(n);return e}(e=k(e)),o=0,i=n.length;i>o;)ue(t,r=n[o++],e[r]);return t},fe=function(t){var e=Zt.call(this,t=y(t,!0));return!(this===ee&&_(Qt,t)&&!_(te,t))&&(!(e||!_(this,t)||!_(Qt,t)||_(this,Kt)&&this[Kt][t])||e)},le=function(t,e){if(t=k(t),e=y(e,!0),t!==ee||!_(Qt,e)||_(te,e)){var r=Wt(t,e);return!r||!_(Qt,e)||_(t,Kt)&&t[Kt][e]||(r.enumerable=!0),r}},pe=function(t){for(var e,r=Vt(k(t)),n=[],o=0;r.length>o;)_(Qt,e=r[o++])||e==Kt||e==Yt||n.push(e);return n},he=function(t){for(var e,r=t===ee,n=Vt(r?te:k(t)),o=[],i=0;n.length>i;)!_(Qt,e=n[i++])||r&&!_(ee,e)||o.push(Qt[e]);return o};re||(Ot((Jt=function(){if(this instanceof Jt)throw TypeError("Symbol is not a constructor!");var t=D(arguments.length>0?arguments[0]:void 0),e=function(r){this===ee&&e.call(te,r),_(this,Kt)&&_(this[Kt],t)&&(this[Kt][t]=!1),ie(this,t,m(1,r))};return f&&oe&&ie(ee,t,{configurable:!0,set:e}),ae(t)}).prototype,"toString",(function(){return this._k})),mt.f=le,g.f=ue,Ut.f=zt.f=pe,vt.f=fe,Tt.f=he,Rt.f=function(t){return ae(At(t))}),O(O.G+O.W+O.F*!re,{Symbol:Jt});for(var de="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ye=0;de.length>ye;)At(de[ye++]);for(var ve=q(At.store),ge=0;ve.length>ge;)Ft(ve[ge++]);O(O.S+O.F*!re,"Symbol",{for:function(t){return _(Xt,t+="")?Xt[t]:Xt[t]=Jt(t)},keyFor:function(t){if(!se(t))throw TypeError(t+" is not a symbol!");for(var e in Xt)if(Xt[e]===t)return e},useSetter:function(){oe=!0},useSimple:function(){oe=!1}}),O(O.S+O.F*!re,"Object",{create:function(t,e){return void 0===e?tt(t):ce(tt(t),e)},defineProperty:ue,defineProperties:ce,getOwnPropertyDescriptor:le,getOwnPropertyNames:pe,getOwnPropertySymbols:he});var me=c((function(){Tt.f(1)}));O(O.S+O.F*me,"Object",{getOwnPropertySymbols:function(t){return Tt.f(It(t))}}),qt&&O(O.S+O.F*(!re||c((function(){var t=Jt();return"[null]"!=Ht([t])||"{}"!=Ht({a:t})||"{}"!=Ht(Object(t))}))),"JSON",{stringify:function(t){for(var e,r,n=[t],o=1;arguments.length>o;)n.push(arguments[o++]);if(r=e=n[1],(s(e)||void 0!==t)&&!se(t))return Bt(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!se(e))return e}),n[1]=e,Ht.apply(qt,n)}}),Jt.prototype[$t]||b(Jt.prototype,$t,Jt.prototype.valueOf),kt(Jt,"Symbol"),kt(Math,"Math",!0),kt(n.JSON,"JSON",!0),Ft("asyncIterator"),Ft("observable");var be=o.Symbol,we={},_e={};b(_e,At("iterator"),(function(){return this}));var Se,xe=function(t,e,r){t.prototype=tt(_e,{next:m(1,r)}),kt(t,e+" Iterator")},Oe=Y("IE_PROTO"),Pe=Object.prototype,Ae=Object.getPrototypeOf||function(t){return t=It(t),_(t,Oe)?t[Oe]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Pe:null},Ee=At("iterator"),Me=!([].keys&&"next"in[].keys()),ke=function(){return this},Re=function(t,e,r,n,o,i,a){xe(r,e,n);var s,u,c,f=function(t){if(!Me&&t in d)return d[t];switch(t){case"keys":case"values":return function(){return new r(this,t)}}return function(){return new r(this,t)}},l=e+" Iterator",p="values"==o,h=!1,d=t.prototype,y=d[Ee]||d["@@iterator"]||o&&d[o],v=y||f(o),g=o?p?f("entries"):v:void 0,m="Array"==e&&d.entries||y;if(m&&(c=Ae(m.call(new t)))!==Object.prototype&&c.next&&kt(c,l,!0),p&&y&&"values"!==y.name&&(h=!0,v=function(){return y.call(this)}),a&&(Me||h||!d[Ee])&&b(d,Ee,v),we[e]=v,we[l]=ke,o)if(s={values:p?v:f("values"),keys:i?v:f("keys"),entries:g},a)for(u in s)u in d||Ot(d,u,s[u]);else O(O.P+O.F*(Me||h),e,s);return s},je=(Se=!0,function(t,e){var r,n,o=String(M(t)),i=F(e),a=o.length;return i<0||i>=a?Se?"":void 0:(r=o.charCodeAt(i))<55296||r>56319||i+1===a||(n=o.charCodeAt(i+1))<56320||n>57343?Se?o.charAt(i):r:Se?o.slice(i,i+2):n-56320+(r-55296<<10)+65536});Re(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,r=this._i;return r>=e.length?{value:void 0,done:!0}:(t=je(e,r),this._i+=t.length,{value:t,done:!1})}));var Fe=function(t,e){return{value:e,done:!!t}};Re(Array,"Array",(function(t,e){this._t=k(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,Fe(1)):Fe(0,"keys"==e?r:"values"==e?t[r]:[r,t[r]])}),"values");we.Arguments=we.Array;for(var Te=At("toStringTag"),Be="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),Ie=0;Ie<Be.length;Ie++){var Ne=Be[Ie],Ue=n[Ne],Ce=Ue&&Ue.prototype;Ce&&!Ce[Te]&&b(Ce,Te,Ne),we[Ne]=we.Array}var Le=Rt.f("iterator"),De=r((function(t){function e(r){return"function"==typeof be&&"symbol"==typeof Le?(t.exports=e=function(t){return typeof t},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(t){return t&&"function"==typeof be&&t.constructor===be&&t!==be.prototype?"symbol":typeof t},t.exports.default=t.exports,t.exports.__esModule=!0),e(r)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0})),ze=e(De),Ye=r((function(t){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.default=t.exports,t.exports.__esModule=!0})),We=e(Ye),Ge=e(r((function(t){var e=De.default;t.exports=function(t,r){if(r&&("object"===e(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return Ye(t)},t.exports.default=t.exports,t.exports.__esModule=!0}))),Ve=function(t,e){var r=(o.Object||{})[t]||Object[t],n={};n[t]=e(r),O(O.S+O.F*c((function(){r(1)})),"Object",n)};Ve("getPrototypeOf",(function(){return function(t){return Ae(It(t))}}));var Je=o.Object.getPrototypeOf,qe=r((function(t){function e(r){return t.exports=e=_t?Je:function(t){return t.__proto__||Je(t)},t.exports.default=t.exports,t.exports.__esModule=!0,e(r)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0})),He=e(qe);Ve("keys",(function(){return function(t){return q(It(t))}}));var Ke=o.Object.keys,$e=o.Object.getOwnPropertySymbols,Ze=mt.f;Ve("getOwnPropertyDescriptor",(function(){return function(t,e){return Ze(k(t),e)}}));var Xe=o.Object,Qe=function(t,e){return Xe.getOwnPropertyDescriptor(t,e)},tr=n.Reflect,er=tr&&tr.ownKeys||function(t){var e=Ut.f(u(t)),r=Tt.f;return r?e.concat(r(t)):e},rr=function(t,e,r){e in t?g.f(t,e,m(0,r)):t[e]=r};O(O.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,r,n=k(t),o=mt.f,i=er(n),a={},s=0;i.length>s;)void 0!==(r=o(n,e=i[s++]))&&rr(a,e,r);return a}});var nr=o.Object.getOwnPropertyDescriptors;O(O.S+O.F*!f,"Object",{defineProperties:H});var or=o.Object,ir=function(t,e){return or.defineProperties(t,e)},ar=function(t,e,r,n){try{return n?e(u(r)[0],r[1]):e(r)}catch(e){var o=t.return;throw void 0!==o&&u(o.call(t)),e}},sr=At("iterator"),ur=Array.prototype,cr=function(t){return void 0!==t&&(we.Array===t||ur[sr]===t)},fr=At("toStringTag"),lr="Arguments"==A(function(){return arguments}()),pr=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),fr))?r:lr?A(e):"Object"==(n=A(e))&&"function"==typeof e.callee?"Arguments":n},hr=At("iterator"),dr=o.getIteratorMethod=function(t){if(null!=t)return t[hr]||t["@@iterator"]||we[pr(t)]},yr=At("iterator"),vr=!1;try{var gr=[7][yr]();gr.return=function(){vr=!0},Array.from(gr,(function(){throw 2}))}catch(t){}var mr=function(t,e){if(!e&&!vr)return!1;var r=!1;try{var n=[7],o=n[yr]();o.next=function(){return{done:r=!0}},n[yr]=function(){return o},t(n)}catch(t){}return r};O(O.S+O.F*!mr((function(t){Array.from(t)})),"Array",{from:function(t){var e,r,n,o,i=It(t),s="function"==typeof this?this:Array,u=arguments.length,c=u>1?arguments[1]:void 0,f=void 0!==c,l=0,p=dr(i);if(f&&(c=a(c,u>2?arguments[2]:void 0,2)),null==p||s==Array&&cr(p))for(r=new s(e=B(i.length));e>l;l++)rr(r,l,f?c(i[l],l):i[l]);else for(o=p.call(i),r=new s;!(n=o.next()).done;l++)rr(r,l,f?ar(o,c,[n.value,l],!0):n.value);return r.length=l,r}});var br=o.Array.from;O(O.S,"Array",{isArray:Bt});var wr=o.Array.isArray,_r=r((function(t){t.exports=function(t){if(wr(t))return t},t.exports.default=t.exports,t.exports.__esModule=!0}));e(_r);var Sr=r((function(t){t.exports=function(t,e){var r=null==t?null:void 0!==be&&t[Le]||t["@@iterator"];if(null!=r){var n,o,i=[],a=!0,s=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}},t.exports.default=t.exports,t.exports.__esModule=!0}));e(Sr);var xr=r((function(t){t.exports=function(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},t.exports.default=t.exports,t.exports.__esModule=!0}));e(xr);var Or=r((function(t){t.exports=function(t,e){if(t){if("string"==typeof t)return xr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?br(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?xr(t,e):void 0}},t.exports.default=t.exports,t.exports.__esModule=!0}));e(Or);var Pr=r((function(t){t.exports=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.")},t.exports.default=t.exports,t.exports.__esModule=!0}));e(Pr);var Ar,Er,Mr,kr=e(r((function(t){t.exports=function(t,e){return _r(t)||Sr(t,e)||Or(t,e)||Pr()},t.exports.default=t.exports,t.exports.__esModule=!0}))),Rr=function(t,e,r,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(r+": incorrect invocation!");return t},jr=r((function(t){var e={},r={},n=t.exports=function(t,n,o,i,s){var c,f,l,p,h=s?function(){return t}:dr(t),d=a(o,i,n?2:1),y=0;if("function"!=typeof h)throw TypeError(t+" is not iterable!");if(cr(h)){for(c=B(t.length);c>y;y++)if((p=n?d(u(f=t[y])[0],f[1]):d(t[y]))===e||p===r)return p}else for(l=h.call(t);!(f=l.next()).done;)if((p=ar(l,d,f.value,n))===e||p===r)return p};n.BREAK=e,n.RETURN=r})),Fr=At("species"),Tr=function(t,e){var r,n=u(t).constructor;return void 0===n||null==(r=u(n)[Fr])?e:i(r)},Br=n.process,Ir=n.setImmediate,Nr=n.clearImmediate,Ur=n.MessageChannel,Cr=n.Dispatch,Lr=0,Dr={},zr=function(){var t=+this;if(Dr.hasOwnProperty(t)){var e=Dr[t];delete Dr[t],e()}},Yr=function(t){zr.call(t.data)};Ir&&Nr||(Ir=function(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return Dr[++Lr]=function(){et("function"==typeof t?t:Function(t),e)},Ar(Lr),Lr},Nr=function(t){delete Dr[t]},"process"==A(Br)?Ar=function(t){Br.nextTick(a(zr,t,1))}:Cr&&Cr.now?Ar=function(t){Cr.now(a(zr,t,1))}:Ur?(Mr=(Er=new Ur).port2,Er.port1.onmessage=Yr,Ar=a(Mr.postMessage,Mr,1)):n.addEventListener&&"function"==typeof postMessage&&!n.importScripts?(Ar=function(t){n.postMessage(t+"","*")},n.addEventListener("message",Yr,!1)):Ar="onreadystatechange"in h("script")?function(t){$.appendChild(h("script")).onreadystatechange=function(){$.removeChild(this),zr.call(t)}}:function(t){setTimeout(a(zr,t,1),0)});var Wr={set:Ir,clear:Nr},Gr=Wr.set,Vr=n.MutationObserver||n.WebKitMutationObserver,Jr=n.process,qr=n.Promise,Hr="process"==A(Jr);function Kr(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=i(e),this.reject=i(r)}var $r,Zr,Xr,Qr,tn={f:function(t){return new Kr(t)}},en=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}},rn=n.navigator,nn=rn&&rn.userAgent||"",on=function(t,e){if(u(t),s(e)&&e.constructor===t)return e;var r=tn.f(t);return(0,r.resolve)(e),r.promise},an=function(t,e,r){for(var n in e)r&&t[n]?t[n]=e[n]:b(t,n,e[n]);return t},sn=At("species"),un=function(t){var e="function"==typeof o[t]?o[t]:n[t];f&&e&&!e[sn]&&g.f(e,sn,{configurable:!0,get:function(){return this}})},cn=Wr.set,fn=function(){var t,e,r,o=function(){var n,o;for(Hr&&(n=Jr.domain)&&n.exit();t;){o=t.fn,t=t.next;try{o()}catch(n){throw t?r():e=void 0,n}}e=void 0,n&&n.enter()};if(Hr)r=function(){Jr.nextTick(o)};else if(!Vr||n.navigator&&n.navigator.standalone)if(qr&&qr.resolve){var i=qr.resolve(void 0);r=function(){i.then(o)}}else r=function(){Gr.call(n,o)};else{var a=!0,s=document.createTextNode("");new Vr(o).observe(s,{characterData:!0}),r=function(){s.data=a=!a}}return function(n){var o={fn:n,next:void 0};e&&(e.next=o),t||(t=o,r()),e=o}}(),ln=n.TypeError,pn=n.process,hn=pn&&pn.versions,dn=hn&&hn.v8||"",yn=n.Promise,vn="process"==pr(pn),gn=function(){},mn=Zr=tn.f,bn=!!function(){try{var t=yn.resolve(1),e=(t.constructor={})[At("species")]=function(t){t(gn,gn)};return(vn||"function"==typeof PromiseRejectionEvent)&&t.then(gn)instanceof e&&0!==dn.indexOf("6.6")&&-1===nn.indexOf("Chrome/66")}catch(t){}}(),wn=function(t){var e;return!(!s(t)||"function"!=typeof(e=t.then))&&e},_n=function(t,e){if(!t._n){t._n=!0;var r=t._c;fn((function(){for(var n=t._v,o=1==t._s,i=0,a=function(e){var r,i,a,s=o?e.ok:e.fail,u=e.resolve,c=e.reject,f=e.domain;try{s?(o||(2==t._h&&On(t),t._h=1),!0===s?r=n:(f&&f.enter(),r=s(n),f&&(f.exit(),a=!0)),r===e.promise?c(ln("Promise-chain cycle")):(i=wn(r))?i.call(r,u,c):u(r)):c(n)}catch(t){f&&!a&&f.exit(),c(t)}};r.length>i;)a(r[i++]);t._c=[],t._n=!1,e&&!t._h&&Sn(t)}))}},Sn=function(t){cn.call(n,(function(){var e,r,o,i=t._v,a=xn(t);if(a&&(e=en((function(){vn?pn.emit("unhandledRejection",i,t):(r=n.onunhandledrejection)?r({promise:t,reason:i}):(o=n.console)&&o.error&&o.error("Unhandled promise rejection",i)})),t._h=vn||xn(t)?2:1),t._a=void 0,a&&e.e)throw e.v}))},xn=function(t){return 1!==t._h&&0===(t._a||t._c).length},On=function(t){cn.call(n,(function(){var e;vn?pn.emit("rejectionHandled",t):(e=n.onrejectionhandled)&&e({promise:t,reason:t._v})}))},Pn=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),_n(e,!0))},An=function(t){var e,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw ln("Promise can't be resolved itself");(e=wn(t))?fn((function(){var n={_w:r,_d:!1};try{e.call(t,a(An,n,1),a(Pn,n,1))}catch(t){Pn.call(n,t)}})):(r._v=t,r._s=1,_n(r,!1))}catch(t){Pn.call({_w:r,_d:!1},t)}}};bn||(yn=function(t){Rr(this,yn,"Promise","_h"),i(t),$r.call(this);try{t(a(An,this,1),a(Pn,this,1))}catch(t){Pn.call(this,t)}},($r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=an(yn.prototype,{then:function(t,e){var r=mn(Tr(this,yn));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=vn?pn.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&_n(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),Xr=function(){var t=new $r;this.promise=t,this.resolve=a(An,t,1),this.reject=a(Pn,t,1)},tn.f=mn=function(t){return t===yn||t===Qr?new Xr(t):Zr(t)}),O(O.G+O.W+O.F*!bn,{Promise:yn}),kt(yn,"Promise"),un("Promise"),Qr=o.Promise,O(O.S+O.F*!bn,"Promise",{reject:function(t){var e=mn(this);return(0,e.reject)(t),e.promise}}),O(O.S+!0*O.F,"Promise",{resolve:function(t){return on(this===Qr?yn:this,t)}}),O(O.S+O.F*!(bn&&mr((function(t){yn.all(t).catch(gn)}))),"Promise",{all:function(t){var e=this,r=mn(e),n=r.resolve,o=r.reject,i=en((function(){var r=[],i=0,a=1;jr(t,!1,(function(t){var s=i++,u=!1;r.push(void 0),a++,e.resolve(t).then((function(t){u||(u=!0,r[s]=t,--a||n(r))}),o)})),--a||n(r)}));return i.e&&o(i.v),r.promise},race:function(t){var e=this,r=mn(e),n=r.reject,o=en((function(){jr(t,!1,(function(t){e.resolve(t).then(r.resolve,n)}))}));return o.e&&n(o.v),r.promise}}),O(O.P+O.R,"Promise",{finally:function(t){var e=Tr(this,o.Promise||n.Promise),r="function"==typeof t;return this.then(r?function(r){return on(e,t()).then((function(){return r}))}:t,r?function(r){return on(e,t()).then((function(){throw r}))}:t)}}),O(O.S,"Promise",{try:function(t){var e=tn.f(this),r=en(t);return(r.e?e.reject:e.resolve)(r.v),e.promise}});var En=o.Promise,Mn=e(r((function(t){function e(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):En.resolve(u).then(n,o)}t.exports=function(t){return function(){var r=this,n=arguments;return new En((function(o,i){var a=t.apply(r,n);function s(t){e(a,o,i,s,u,"next",t)}function u(t){e(a,o,i,s,u,"throw",t)}s(void 0)}))}},t.exports.default=t.exports,t.exports.__esModule=!0}))),kn=e(r((function(t){t.exports=function(t,e,r){return e in t?pt(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},t.exports.default=t.exports,t.exports.__esModule=!0}))),Rn=r((function(t){var e=function(t){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 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 u(t,e,r,n){var o=e&&e.prototype instanceof l?e:l,i=Object.create(o.prototype),a=new x(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 P()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=w(a,r);if(s){if(s===f)continue;return s}}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 u=c(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(t,r,a),i}function c(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function l(){}function p(){}function h(){}var d={};s(d,o,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(O([])));v&&v!==e&&r.call(v,o)&&(d=v);var g=h.prototype=l.prototype=Object.create(d);function m(t){["next","throw","return"].forEach((function(e){s(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,s){var u=c(t[o],t,i);if("throw"!==u.type){var f=u.arg,l=f.value;return l&&"object"==typeof l&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){f.value=t,a(f)}),(function(t){return n("throw",t,a,s)}))}s(u.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=c(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 _(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 x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function O(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var 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:P}}function P(){return{value:void 0,done:!0}}return p.prototype=h,s(g,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,s(t,a,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},m(b.prototype),s(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(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},m(g),s(g,a,"Generator"),s(g,o,(function(){return this})),s(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,x.prototype={constructor:x,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 s=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)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=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}})),jn=function(t,e){if(!s(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t},Fn=g.f,Tn=Pt.fastKey,Bn=f?"_s":"size",In=function(t,e){var r,n=Tn(e);if("F"!==n)return t._i[n];for(r=t._f;r;r=r.n)if(r.k==e)return r},Nn={getConstructor:function(t,e,r,n){var o=t((function(t,i){Rr(t,o,e,"_i"),t._t=e,t._i=tt(null),t._f=void 0,t._l=void 0,t[Bn]=0,null!=i&&jr(i,r,t[n],t)}));return an(o.prototype,{clear:function(){for(var t=jn(this,e),r=t._i,n=t._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete r[n.i];t._f=t._l=void 0,t[Bn]=0},delete:function(t){var r=jn(this,e),n=In(r,t);if(n){var o=n.n,i=n.p;delete r._i[n.i],n.r=!0,i&&(i.n=o),o&&(o.p=i),r._f==n&&(r._f=o),r._l==n&&(r._l=i),r[Bn]--}return!!n},forEach:function(t){jn(this,e);for(var r,n=a(t,arguments.length>1?arguments[1]:void 0,3);r=r?r.n:this._f;)for(n(r.v,r.k,this);r&&r.r;)r=r.p},has:function(t){return!!In(jn(this,e),t)}}),f&&Fn(o.prototype,"size",{get:function(){return jn(this,e)[Bn]}}),o},def:function(t,e,r){var n,o,i=In(t,e);return i?i.v=r:(t._l=i={i:o=Tn(e,!0),k:e,v:r,p:n=t._l,n:void 0,r:!1},t._f||(t._f=i),n&&(n.n=i),t[Bn]++,"F"!==o&&(t._i[o]=i)),t},getEntry:In,setStrong:function(t,e,r){Re(t,e,(function(t,r){this._t=jn(t,e),this._k=r,this._l=void 0}),(function(){for(var t=this._k,e=this._l;e&&e.r;)e=e.p;return this._t&&(this._l=e=e?e.n:this._t._f)?Fe(0,"keys"==t?e.k:"values"==t?e.v:[e.k,e.v]):(this._t=void 0,Fe(1))}),r?"entries":"values",!r,!0),un(e)}},Un=At("species"),Cn=function(t,e){return new(function(t){var e;return Bt(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!Bt(e.prototype)||(e=void 0),s(e)&&null===(e=e[Un])&&(e=void 0)),void 0===e?Array:e}(t))(e)},Ln=g.f,Dn=function(t,e){var r=1==t,n=2==t,o=3==t,i=4==t,s=6==t,u=5==t||s,c=e||Cn;return function(e,f,l){for(var p,h,d=It(e),y=E(d),v=a(f,l,3),g=B(y.length),m=0,b=r?c(e,g):n?c(e,0):void 0;g>m;m++)if((u||m in y)&&(h=v(p=y[m],m,d),t))if(r)b[m]=h;else if(h)switch(t){case 3:return!0;case 5:return p;case 6:return m;case 2:b.push(p)}else if(i)return!1;return s?-1:o||i?i:b}}(0);!function(t,e,r,o,i,a){var u=n[t],l=u,p=i?"set":"add",h=l&&l.prototype,d={};f&&"function"==typeof l&&(a||h.forEach&&!c((function(){(new l).entries().next()})))?(l=e((function(e,r){Rr(e,l,t,"_c"),e._c=new u,null!=r&&jr(r,i,e[p],e)})),Dn("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),(function(t){var e="add"==t||"set"==t;!(t in h)||a&&"clear"==t||b(l.prototype,t,(function(r,n){if(Rr(this,l,t),!e&&a&&!s(r))return"get"==t&&void 0;var o=this._c[t](0===r?0:r,n);return e?this:o}))})),a||Ln(l.prototype,"size",{get:function(){return this._c.size}})):(l=o.getConstructor(e,t,i,p),an(l.prototype,r),Pt.NEED=!0),kt(l,t),d[t]=l,O(O.G+O.W+O.F,d),a||o.setStrong(l,t,i)}("Map",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(t){var e=Nn.getEntry(jn(this,"Map"),t);return e&&e.v},set:function(t,e){return Nn.def(jn(this,"Map"),0===t?0:t,e)}},Nn,!0);O(O.P+O.R,"Map",{toJSON:function(t){return function(){if(pr(this)!=t)throw TypeError(t+"#toJSON isn't generic");return function(t,e){var r=[];return jr(t,!1,r.push,r,e),r}(this)}}("Map")});var zn;zn="Map",O(O.S,zn,{of:function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)}});!function(t){O(O.S,t,{from:function(t){var e,r,n,o,s=arguments[1];return i(this),(e=void 0!==s)&&i(s),null==t?new this:(r=[],e?(n=0,o=a(s,arguments[2],2),jr(t,!1,(function(t){r.push(o(t,n++))}))):jr(t,!1,r.push,r),new this(r))}})}("Map");var Yn=o.Map,Wn=o.JSON||(o.JSON={stringify:JSON.stringify}),Gn=function(t){return Wn.stringify.apply(Wn,arguments)},Vn=function(t,e){e||(e={}),"function"==typeof e&&(e={cmp:e});var r="boolean"==typeof e.cycles&&e.cycles,n=e.cmp&&function(t){return function(e){return function(r,n){var o={key:r,value:e[r]},i={key:n,value:e[n]};return t(o,i)}}}(e.cmp),o=[];return function t(e){if(e&&e.toJSON&&"function"==typeof e.toJSON&&(e=e.toJSON()),void 0!==e){if("number"==typeof e)return isFinite(e)?""+e:"null";if("object"!==ze(e))return Gn(e);var i,a;if(wr(e)){for(a="[",i=0;i<e.length;i++)i&&(a+=","),a+=t(e[i])||"null";return a+"]"}if(null===e)return"null";if(-1!==o.indexOf(e)){if(r)return Gn("__cycle__");throw new TypeError("Converting circular structure to JSON")}var s=o.push(e)-1,u=Ke(e).sort(n&&n(e));for(a="",i=0;i<u.length;i++){var c=u[i],f=t(e[c]);f&&(a&&(a+=","),a+=Gn(c)+":"+f)}return o.splice(s,1),"{"+a+"}"}}(t)},Jn="record",qn="replay",Hn=r((function(t){t.exports=function(t){return-1!==Function.toString.call(t).indexOf("[native code]")},t.exports.default=t.exports,t.exports.__esModule=!0}));e(Hn);var Kn=r((function(t){t.exports=function(){if("undefined"==typeof Reflect||!ct)return!1;if(ct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ct(Boolean,[],(function(){}))),!0}catch(t){return!1}},t.exports.default=t.exports,t.exports.__esModule=!0}));e(Kn);var $n=r((function(t){function e(r,n,o){return Kn()?(t.exports=e=ct,t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&St(o,r.prototype),o},t.exports.default=t.exports,t.exports.__esModule=!0),e.apply(null,arguments)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0}));function Zn(t){var e=function(){if("undefined"==typeof Reflect||!ct)return!1;if(ct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=He(t);if(e){var o=He(this).constructor;r=ct(n,arguments,o)}else r=n.apply(this,arguments);return Ge(this,r)}}e($n);var Xn=function(t){xt(r,t);var e=Zn(r);function r(t){var n;ft(this,r);for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return n=e.call.apply(e,[this,"[Polly] ".concat(t)].concat(i)),Error.captureStackTrace&&Error.captureStackTrace(We(n),r),n.name="PollyError",n}return r}(e(r((function(t){function e(r){var n="function"==typeof Yn?new Yn:void 0;return t.exports=e=function(t){if(null===t||!Hn(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(t))return n.get(t);n.set(t,e)}function e(){return $n(t,arguments,qe(this).constructor)}return e.prototype=yt(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),St(e,t)},t.exports.default=t.exports,t.exports.__esModule=!0,e(r)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0})))(Error));function Qn(t,e){if(!e)throw new Xn(t)}var to="\t\n\v\f\r \u2028\u2029\ufeff",eo="["+to+"]",ro=RegExp("^"+eo+eo+"*"),no=RegExp(eo+eo+"*$"),oo=function(t,e,r){var n={},o=c((function(){return!!to[t]()||"
"!="
"[t]()})),i=n[t]=o?e(io):to[t];r&&(n[r]=i),O(O.P+O.F*o,"String",n)},io=oo.trim=function(t,e){return t=String(M(t)),1&e&&(t=t.replace(ro,"")),2&e&&(t=t.replace(no,"")),t},ao=oo,so=n.parseInt,uo=ao.trim,co=/^[-+]?0[xX]/,fo=8!==so(to+"08")||22!==so(to+"0x16")?function(t,e){var r=uo(String(t),3);return so(r,e>>>0||(co.test(r)?16:10))}:so;O(O.G+O.F*(parseInt!=fo),{parseInt:fo});var lo=o.parseInt;O(O.S,"Reflect",{get:function t(e,r){var n,o,i=arguments.length<3?e:arguments[2];return u(e)===i?e[r]:(n=mt.f(e,r))?_(n,"value")?n.value:void 0!==n.get?n.get.call(i):void 0:s(o=Ae(e))?t(o,r,i):void 0}});var po=o.Reflect.get,ho=r((function(t){t.exports=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=qe(t)););return t},t.exports.default=t.exports,t.exports.__esModule=!0}));e(ho),e(r((function(t){function e(){return"undefined"!=typeof Reflect&&po?(t.exports=e=po,t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(t,e,r){var n=ho(t,e);if(n){var o=Qe(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},t.exports.default=t.exports,t.exports.__esModule=!0),e.apply(this,arguments)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0})));var yo="undefined"!=typeof Symbol&&Symbol,vo="Function.prototype.bind called on incompatible ",go=Array.prototype.slice,mo=Object.prototype.toString,bo=Function.prototype.bind||function(t){var e=this;if("function"!=typeof e||"[object Function]"!==mo.call(e))throw new TypeError(vo+e);for(var r,n=go.call(arguments,1),o=function(){if(this instanceof r){var o=e.apply(this,n.concat(go.call(arguments)));return Object(o)===o?o:this}return e.apply(t,n.concat(go.call(arguments)))},i=Math.max(0,e.length-n.length),a=[],s=0;s<i;s++)a.push("$"+s);if(r=Function("binder","return function ("+a.join(",")+"){ return binder.apply(this,arguments); }")(o),e.prototype){var u=function(){};u.prototype=e.prototype,r.prototype=new u,u.prototype=null}return r},wo=bo.call(Function.call,Object.prototype.hasOwnProperty),_o=SyntaxError,So=Function,xo=TypeError,Oo=function(t){try{return So('"use strict"; return ('+t+").constructor;")()}catch(t){}},Po=Object.getOwnPropertyDescriptor;if(Po)try{Po({},"")}catch(t){Po=null}var Ao,Eo=function(){throw new xo},Mo=Po?function(){try{return Eo}catch(t){try{return Po(arguments,"callee").get}catch(t){return Eo}}}():Eo,ko="function"==typeof yo&&"function"==typeof Symbol&&"symbol"==typeof yo("foo")&&"symbol"==typeof Symbol("bar")&&function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}(),Ro=Object.getPrototypeOf||function(t){return t.__proto__},jo={},Fo="undefined"==typeof Uint8Array?void 0:Ro(Uint8Array),To={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":ko?Ro([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":jo,"%AsyncGenerator%":jo,"%AsyncGeneratorFunction%":jo,"%AsyncIteratorPrototype%":jo,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":So,"%GeneratorFunction%":jo,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ko?Ro(Ro([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&ko?Ro((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&ko?Ro((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ko?Ro(""[Symbol.iterator]()):void 0,"%Symbol%":ko?Symbol:void 0,"%SyntaxError%":_o,"%ThrowTypeError%":Mo,"%TypedArray%":Fo,"%TypeError%":xo,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet},Bo={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Io=bo.call(Function.call,Array.prototype.concat),No=bo.call(Function.apply,Array.prototype.splice),Uo=bo.call(Function.call,String.prototype.replace),Co=bo.call(Function.call,String.prototype.slice),Lo=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Do=/\\(\\)?/g,zo=function(t){var e=Co(t,0,1),r=Co(t,-1);if("%"===e&&"%"!==r)throw new _o("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new _o("invalid intrinsic syntax, expected opening `%`");var n=[];return Uo(t,Lo,(function(t,e,r,o){n[n.length]=r?Uo(o,Do,"$1"):e||t})),n},Yo=function(t,e){var r,n=t;if(wo(Bo,n)&&(n="%"+(r=Bo[n])[0]+"%"),wo(To,n)){var o=To[n];if(o===jo&&(o=function t(e){var r;if("%AsyncFunction%"===e)r=Oo("async function () {}");else if("%GeneratorFunction%"===e)r=Oo("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=Oo("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&(r=Ro(o.prototype))}return To[e]=r,r}(n)),void 0===o&&!e)throw new xo("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new _o("intrinsic "+t+" does not exist!")},Wo=function(t,e){if("string"!=typeof t||0===t.length)throw new xo("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new xo('"allowMissing" argument must be a boolean');var r=zo(t),n=r.length>0?r[0]:"",o=Yo("%"+n+"%",e),i=o.name,a=o.value,s=!1,u=o.alias;u&&(n=u[0],No(r,Io([0,1],u)));for(var c=1,f=!0;c<r.length;c+=1){var l=r[c],p=Co(l,0,1),h=Co(l,-1);if(('"'===p||"'"===p||"`"===p||'"'===h||"'"===h||"`"===h)&&p!==h)throw new _o("property names with quotes must have matching quotes");if("constructor"!==l&&f||(s=!0),wo(To,i="%"+(n+="."+l)+"%"))a=To[i];else if(null!=a){if(!(l in a)){if(!e)throw new xo("base intrinsic for "+t+" exists, but the property is not available.");return}if(Po&&c+1>=r.length){var d=Po(a,l);a=(f=!!d)&&"get"in d&&!("originalValue"in d.get)?d.get:a[l]}else f=wo(a,l),a=a[l];f&&!s&&(To[i]=a)}}return a},Go=r((function(t){var e=Wo("%Function.prototype.apply%"),r=Wo("%Function.prototype.call%"),n=Wo("%Reflect.apply%",!0)||bo.call(r,e),o=Wo("%Object.getOwnPropertyDescriptor%",!0),i=Wo("%Object.defineProperty%",!0),a=Wo("%Math.max%");if(i)try{i({},"a",{value:1})}catch(t){i=null}t.exports=function(t){var e=n(bo,r,arguments);if(o&&i){var s=o(e,"length");s.configurable&&i(e,"length",{value:1+a(0,t.length-(arguments.length-1))})}return e};var s=function(){return n(bo,e,arguments)};i?i(t.exports,"apply",{value:s}):t.exports.apply=s})),Vo=(Go.apply,Go(Wo("String.prototype.indexOf"))),Jo=function(t,e){var r=Wo(t,!!e);return"function"==typeof r&&Vo(t,".prototype.")>-1?Go(r):r},qo=(Ao=Object.freeze({default:{}}))&&Ao.default||Ao,Ho="function"==typeof Map&&Map.prototype,Ko=Object.getOwnPropertyDescriptor&&Ho?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,$o=(Ho&&Ko&&"function"==typeof Ko.get&&Ko.get,"function"==typeof Set&&Set.prototype),Zo=Object.getOwnPropertyDescriptor&&$o?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Xo=($o&&Zo&&"function"==typeof Zo.get&&Zo.get,"function"==typeof WeakRef&&WeakRef.prototype&&WeakRef.prototype.deref,Function.prototype.toString,"function"==typeof BigInt&&BigInt.prototype.valueOf,"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null),Qo="function"==typeof Symbol&&"object"==typeof Symbol.iterator,ti=qo.custom;ti&&function(t){if(Qo)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!Xo)return!1;try{return Xo.call(t),!0}catch(t){}}(ti);Wo("%TypeError%"),Wo("%WeakMap%",!0),Wo("%Map%",!0),Jo("WeakMap.prototype.get",!0),Jo("WeakMap.prototype.set",!0),Jo("WeakMap.prototype.has",!0),Jo("Map.prototype.get",!0),Jo("Map.prototype.set",!0),Jo("Map.prototype.has",!0),function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase())}(),be(),function(){try{new Blob}catch(t){return!1}}();var ei=[],ri=[],ni="undefined"!=typeof Uint8Array?Uint8Array:Array,oi=!1;function ii(){oi=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,r=t.length;e<r;++e)ei[e]=t[e],ri[t.charCodeAt(e)]=e;ri["-".charCodeAt(0)]=62,ri["_".charCodeAt(0)]=63}function ai(t,e,r){for(var n,o,i=[],a=e;a<r;a+=3)n=(t[a]<<16)+(t[a+1]<<8)+t[a+2],i.push(ei[(o=n)>>18&63]+ei[o>>12&63]+ei[o>>6&63]+ei[63&o]);return i.join("")}function si(t){var e;oi||ii();for(var r=t.length,n=r%3,o="",i=[],a=0,s=r-n;a<s;a+=16383)i.push(ai(t,a,a+16383>s?s:a+16383));return 1===n?(e=t[r-1],o+=ei[e>>2],o+=ei[e<<4&63],o+="=="):2===n&&(e=(t[r-2]<<8)+t[r-1],o+=ei[e>>10],o+=ei[e>>4&63],o+=ei[e<<2&63],o+="="),i.push(o),i.join("")}function ui(t,e,r,n,o){var i,a,s=8*o-n-1,u=(1<<s)-1,c=u>>1,f=-7,l=r?o-1:0,p=r?-1:1,h=t[e+l];for(l+=p,i=h&(1<<-f)-1,h>>=-f,f+=s;f>0;i=256*i+t[e+l],l+=p,f-=8);for(a=i&(1<<-f)-1,i>>=-f,f+=n;f>0;a=256*a+t[e+l],l+=p,f-=8);if(0===i)i=1-c;else{if(i===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),i-=c}return(h?-1:1)*a*Math.pow(2,i-n)}function ci(t,e,r,n,o,i){var a,s,u,c=8*i-o-1,f=(1<<c)-1,l=f>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:i-1,d=n?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=f):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+l>=1?p/u:p*Math.pow(2,1-l))*u>=2&&(a++,u/=2),a+l>=f?(s=0,a=f):a+l>=1?(s=(e*u-1)*Math.pow(2,o),a+=l):(s=e*Math.pow(2,l-1)*Math.pow(2,o),a=0));o>=8;t[r+h]=255&s,h+=d,s/=256,o-=8);for(a=a<<o|s,c+=o;c>0;t[r+h]=255&a,h+=d,a/=256,c-=8);t[r+h-d]|=128*y}var fi={}.toString,li=Array.isArray||function(t){return"[object Array]"==fi.call(t)};function pi(){return di.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function hi(t,e){if(pi()<e)throw new RangeError("Invalid typed array length");return di.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=di.prototype:(null===t&&(t=new di(e)),t.length=e),t}function di(t,e,r){if(!(di.TYPED_ARRAY_SUPPORT||this instanceof di))return new di(t,e,r);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return gi(this,t)}return yi(this,t,e,r)}function yi(t,e,r,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n);di.TYPED_ARRAY_SUPPORT?(t=e).__proto__=di.prototype:t=mi(t,e);return t}(t,e,r,n):"string"==typeof e?function(t,e,r){"string"==typeof r&&""!==r||(r="utf8");if(!di.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|_i(e,r),o=(t=hi(t,n)).write(e,r);o!==n&&(t=t.slice(0,o));return t}(t,e,r):function(t,e){if(wi(e)){var r=0|bi(e.length);return 0===(t=hi(t,r)).length||e.copy(t,0,0,r),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(n=e.length)!=n?hi(t,0):mi(t,e);if("Buffer"===e.type&&li(e.data))return mi(t,e.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function vi(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function gi(t,e){if(vi(e),t=hi(t,e<0?0:0|bi(e)),!di.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function mi(t,e){var r=e.length<0?0:0|bi(e.length);t=hi(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function bi(t){if(t>=pi())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+pi().toString(16)+" bytes");return 0|t}function wi(t){return!(null==t||!t._isBuffer)}function _i(t,e){if(wi(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return qi(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Hi(t).length;default:if(n)return qi(t).length;e=(""+e).toLowerCase(),n=!0}}function Si(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return Ni(this,e,r);case"utf8":case"utf-8":return Ti(this,e,r);case"ascii":return Bi(this,e,r);case"latin1":case"binary":return Ii(this,e,r);case"base64":return Fi(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ui(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function xi(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function Oi(t,e,r,n,o){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof e&&(e=di.from(e,n)),wi(e))return 0===e.length?-1:Pi(t,e,r,n,o);if("number"==typeof e)return e&=255,di.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):Pi(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function Pi(t,e,r,n,o){var i,a=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,r/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(o){var f=-1;for(i=r;i<s;i++)if(c(t,i)===c(e,-1===f?0:i-f)){if(-1===f&&(f=i),i-f+1===u)return f*a}else-1!==f&&(i-=i-f),f=-1}else for(r+u>s&&(r=s-u),i=r;i>=0;i--){for(var l=!0,p=0;p<u;p++)if(c(t,i+p)!==c(e,p)){l=!1;break}if(l)return i}return-1}function Ai(t,e,r,n){r=Number(r)||0;var o=t.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=e.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var a=0;a<n;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[r+a]=s}return a}function Ei(t,e,r,n){return Ki(qi(e,t.length-r),t,r,n)}function Mi(t,e,r,n){return Ki(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function ki(t,e,r,n){return Mi(t,e,r,n)}function Ri(t,e,r,n){return Ki(Hi(e),t,r,n)}function ji(t,e,r,n){return Ki(function(t,e){for(var r,n,o,i=[],a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),n=r>>8,o=r%256,i.push(o),i.push(n);return i}(e,t.length-r),t,r,n)}function Fi(t,e,r){return 0===e&&r===t.length?si(t):si(t.slice(e,r))}function Ti(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o<r;){var i,a,s,u,c=t[o],f=null,l=c>239?4:c>223?3:c>191?2:1;if(o+l<=r)switch(l){case 1:c<128&&(f=c);break;case 2:128==(192&(i=t[o+1]))&&(u=(31&c)<<6|63&i)>127&&(f=u);break;case 3:i=t[o+1],a=t[o+2],128==(192&i)&&128==(192&a)&&(u=(15&c)<<12|(63&i)<<6|63&a)>2047&&(u<55296||u>57343)&&(f=u);break;case 4:i=t[o+1],a=t[o+2],s=t[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(f=u)}null===f?(f=65533,l=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),o+=l}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=4096));return r}(n)}di.TYPED_ARRAY_SUPPORT=void 0===t.TYPED_ARRAY_SUPPORT||t.TYPED_ARRAY_SUPPORT,di.poolSize=8192,di._augment=function(t){return t.__proto__=di.prototype,t},di.from=function(t,e,r){return yi(null,t,e,r)},di.TYPED_ARRAY_SUPPORT&&(di.prototype.__proto__=Uint8Array.prototype,di.__proto__=Uint8Array),di.alloc=function(t,e,r){return function(t,e,r,n){return vi(e),e<=0?hi(t,e):void 0!==r?"string"==typeof n?hi(t,e).fill(r,n):hi(t,e).fill(r):hi(t,e)}(null,t,e,r)},di.allocUnsafe=function(t){return gi(null,t)},di.allocUnsafeSlow=function(t){return gi(null,t)},di.isBuffer=function(t){return null!=t&&(!!t._isBuffer||$i(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&$i(t.slice(0,0))}(t))},di.compare=function(t,e){if(!wi(t)||!wi(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,o=0,i=Math.min(r,n);o<i;++o)if(t[o]!==e[o]){r=t[o],n=e[o];break}return r<n?-1:n<r?1:0},di.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},di.concat=function(t,e){if(!li(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return di.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=di.allocUnsafe(e),o=0;for(r=0;r<t.length;++r){var i=t[r];if(!wi(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(n,o),o+=i.length}return n},di.byteLength=_i,di.prototype._isBuffer=!0,di.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)xi(this,e,e+1);return this},di.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)xi(this,e,e+3),xi(this,e+1,e+2);return this},di.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)xi(this,e,e+7),xi(this,e+1,e+6),xi(this,e+2,e+5),xi(this,e+3,e+4);return this},di.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?Ti(this,0,t):Si.apply(this,arguments)},di.prototype.equals=function(t){if(!wi(t))throw new TypeError("Argument must be a Buffer");return this===t||0===di.compare(this,t)},di.prototype.inspect=function(){var t="";return this.length>0&&(t=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(t+=" ... ")),"<Buffer "+t+">"},di.prototype.compare=function(t,e,r,n,o){if(!wi(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=r)return 0;if(n>=o)return-1;if(e>=r)return 1;if(this===t)return 0;for(var i=(o>>>=0)-(n>>>=0),a=(r>>>=0)-(e>>>=0),s=Math.min(i,a),u=this.slice(n,o),c=t.slice(e,r),f=0;f<s;++f)if(u[f]!==c[f]){i=u[f],a=c[f];break}return i<a?-1:a<i?1:0},di.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},di.prototype.indexOf=function(t,e,r){return Oi(this,t,e,r,!0)},di.prototype.lastIndexOf=function(t,e,r){return Oi(this,t,e,r,!1)},di.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-e;if((void 0===r||r>o)&&(r=o),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return Ai(this,t,e,r);case"utf8":case"utf-8":return Ei(this,t,e,r);case"ascii":return Mi(this,t,e,r);case"latin1":case"binary":return ki(this,t,e,r);case"base64":return Ri(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ji(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},di.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Bi(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(127&t[o]);return n}function Ii(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(t[o]);return n}function Ni(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=e;i<r;++i)o+=Ji(t[i]);return o}function Ui(t,e,r){for(var n=t.slice(e,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function Ci(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function Li(t,e,r,n,o,i){if(!wi(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function Di(t,e,r,n){e<0&&(e=65535+e+1);for(var o=0,i=Math.min(t.length-r,2);o<i;++o)t[r+o]=(e&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function zi(t,e,r,n){e<0&&(e=4294967295+e+1);for(var o=0,i=Math.min(t.length-r,4);o<i;++o)t[r+o]=e>>>8*(n?o:3-o)&255}function Yi(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Wi(t,e,r,n,o){return o||Yi(t,0,r,4),ci(t,e,r,n,23,4),r+4}function Gi(t,e,r,n,o){return o||Yi(t,0,r,8),ci(t,e,r,n,52,8),r+8}di.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t),di.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=di.prototype;else{var o=e-t;r=new di(o,void 0);for(var i=0;i<o;++i)r[i]=this[i+t]}return r},di.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||Ci(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n},di.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||Ci(t,e,this.length);for(var n=this[t+--e],o=1;e>0&&(o*=256);)n+=this[t+--e]*o;return n},di.prototype.readUInt8=function(t,e){return e||Ci(t,1,this.length),this[t]},di.prototype.readUInt16LE=function(t,e){return e||Ci(t,2,this.length),this[t]|this[t+1]<<8},di.prototype.readUInt16BE=function(t,e){return e||Ci(t,2,this.length),this[t]<<8|this[t+1]},di.prototype.readUInt32LE=function(t,e){return e||Ci(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},di.prototype.readUInt32BE=function(t,e){return e||Ci(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},di.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||Ci(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*e)),n},di.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||Ci(t,e,this.length);for(var n=e,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*e)),i},di.prototype.readInt8=function(t,e){return e||Ci(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},di.prototype.readInt16LE=function(t,e){e||Ci(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},di.prototype.readInt16BE=function(t,e){e||Ci(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},di.prototype.readInt32LE=function(t,e){return e||Ci(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},di.prototype.readInt32BE=function(t,e){return e||Ci(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},di.prototype.readFloatLE=function(t,e){return e||Ci(t,4,this.length),ui(this,t,!0,23,4)},di.prototype.readFloatBE=function(t,e){return e||Ci(t,4,this.length),ui(this,t,!1,23,4)},di.prototype.readDoubleLE=function(t,e){return e||Ci(t,8,this.length),ui(this,t,!0,52,8)},di.prototype.readDoubleBE=function(t,e){return e||Ci(t,8,this.length),ui(this,t,!1,52,8)},di.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||Li(this,t,e,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[e]=255&t;++i<r&&(o*=256);)this[e+i]=t/o&255;return e+r},di.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||Li(this,t,e,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+r},di.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||Li(this,t,e,1,255,0),di.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},di.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||Li(this,t,e,2,65535,0),di.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):Di(this,t,e,!0),e+2},di.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||Li(this,t,e,2,65535,0),di.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):Di(this,t,e,!1),e+2},di.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||Li(this,t,e,4,4294967295,0),di.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):zi(this,t,e,!0),e+4},di.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||Li(this,t,e,4,4294967295,0),di.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):zi(this,t,e,!1),e+4},di.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);Li(this,t,e,r,o-1,-o)}var i=0,a=1,s=0;for(this[e]=255&t;++i<r&&(a*=256);)t<0&&0===s&&0!==this[e+i-1]&&(s=1),this[e+i]=(t/a>>0)-s&255;return e+r},di.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);Li(this,t,e,r,o-1,-o)}var i=r-1,a=1,s=0;for(this[e+i]=255&t;--i>=0&&(a*=256);)t<0&&0===s&&0!==this[e+i+1]&&(s=1),this[e+i]=(t/a>>0)-s&255;return e+r},di.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||Li(this,t,e,1,127,-128),di.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},di.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||Li(this,t,e,2,32767,-32768),di.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):Di(this,t,e,!0),e+2},di.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||Li(this,t,e,2,32767,-32768),di.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):Di(this,t,e,!1),e+2},di.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||Li(this,t,e,4,2147483647,-2147483648),di.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):zi(this,t,e,!0),e+4},di.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||Li(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),di.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):zi(this,t,e,!1),e+4},di.prototype.writeFloatLE=function(t,e,r){return Wi(this,t,e,!0,r)},di.prototype.writeFloatBE=function(t,e,r){return Wi(this,t,e,!1,r)},di.prototype.writeDoubleLE=function(t,e,r){return Gi(this,t,e,!0,r)},di.prototype.writeDoubleBE=function(t,e,r){return Gi(this,t,e,!1,r)},di.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var o,i=n-r;if(this===t&&r<e&&e<n)for(o=i-1;o>=0;--o)t[o+e]=this[o+r];else if(i<1e3||!di.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)t[o+e]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+i),e);return i},di.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===t.length){var o=t.charCodeAt(0);o<256&&(t=o)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!di.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var i;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i<r;++i)this[i]=t;else{var a=wi(t)?t:qi(new di(t,n).toString()),s=a.length;for(i=0;i<r-e;++i)this[i+e]=a[i%s]}return this};var Vi=/[^+\/0-9A-Za-z-_]/g;function Ji(t){return t<16?"0"+t.toString(16):t.toString(16)}function qi(t,e){var r;e=e||1/0;for(var n=t.length,o=null,i=[],a=0;a<n;++a){if((r=t.charCodeAt(a))>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function Hi(t){return function(t){var e,r,n,o,i,a;oi||ii();var s=t.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");i="="===t[s-2]?2:"="===t[s-1]?1:0,a=new ni(3*s/4-i),n=i>0?s-4:s;var u=0;for(e=0,r=0;e<n;e+=4,r+=3)o=ri[t.charCodeAt(e)]<<18|ri[t.charCodeAt(e+1)]<<12|ri[t.charCodeAt(e+2)]<<6|ri[t.charCodeAt(e+3)],a[u++]=o>>16&255,a[u++]=o>>8&255,a[u++]=255&o;return 2===i?(o=ri[t.charCodeAt(e)]<<2|ri[t.charCodeAt(e+1)]>>4,a[u++]=255&o):1===i&&(o=ri[t.charCodeAt(e)]<<10|ri[t.charCodeAt(e+1)]<<4|ri[t.charCodeAt(e+2)]>>2,a[u++]=o>>8&255,a[u++]=255&o),a}(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(Vi,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function Ki(t,e,r,n){for(var o=0;o<n&&!(o+r>=e.length||o>=t.length);++o)e[o+r]=t[o];return o}function $i(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}var Zi=r((function(t){t.exports=function(t){if(wr(t))return xr(t)},t.exports.default=t.exports,t.exports.__esModule=!0}));e(Zi);var Xi=r((function(t){t.exports=function(t){if(void 0!==be&&null!=t[Le]||null!=t["@@iterator"])return br(t)},t.exports.default=t.exports,t.exports.__esModule=!0}));e(Xi);var Qi=r((function(t){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.default=t.exports,t.exports.__esModule=!0}));e(Qi);var ta=e(r((function(t){t.exports=function(t){return Zi(t)||Xi(t)||Or(t)||Qi()},t.exports.default=t.exports,t.exports.__esModule=!0}))),ea=Object.assign,ra=!ea||c((function(){var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!=ea({},t)[r]||Object.keys(ea({},e)).join("")!=n}))?function(t,e){for(var r=It(t),n=arguments.length,o=1,i=Tt.f,a=vt.f;n>o;)for(var s,u=E(arguments[o++]),c=i?q(u).concat(i(u)):q(u),l=c.length,p=0;l>p;)s=c[p++],f&&!a.call(u,s)||(r[s]=u[s]);return r}:ea;O(O.S+O.F,"Object",{assign:ra});var na=o.Object.assign,oa="object"==typeof t&&t&&t.Object===Object&&t,ia="object"==typeof self&&self&&self.Object===Object&&self,aa=oa||ia||Function("return this")(),sa=aa.Symbol,ua=Object.prototype,ca=ua.hasOwnProperty,fa=ua.toString,la=sa?sa.toStringTag:void 0;var pa=Object.prototype.toString;var ha=sa?sa.toStringTag:void 0;function da(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ha&&ha in Object(t)?function(t){var e=ca.call(t,la),r=t[la];try{t[la]=void 0;var n=!0}catch(t){}var o=fa.call(t);return n&&(e?t[la]=r:delete t[la]),o}(t):function(t){return pa.call(t)}(t)}function ya(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var va,ga=aa["__core-js_shared__"],ma=(va=/[^.]+$/.exec(ga&&ga.keys&&ga.keys.IE_PROTO||""))?"Symbol(src)_1."+va:"";var ba=Function.prototype.toString;var wa=/^\[object .+?Constructor\]$/,_a=Function.prototype,Sa=Object.prototype,xa=_a.toString,Oa=Sa.hasOwnProperty,Pa=RegExp("^"+xa.call(Oa).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Aa(t){return!(!ya(t)||(e=t,ma&&ma in e))&&(function(t){if(!ya(t))return!1;var e=da(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}(t)?Pa:wa).test(function(t){if(null!=t){try{return ba.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t));var e}function Ea(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return Aa(r)?r:void 0}var Ma=Ea(Object,"create");var ka=Object.prototype.hasOwnProperty;var Ra=Object.prototype.hasOwnProperty;function ja(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Fa(t,e){for(var r,n,o=t.length;o--;)if((r=t[o][0])===(n=e)||r!=r&&n!=n)return o;return-1}ja.prototype.clear=function(){this.__data__=Ma?Ma(null):{},this.size=0},ja.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},ja.prototype.get=function(t){var e=this.__data__;if(Ma){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return ka.call(e,t)?e[t]:void 0},ja.prototype.has=function(t){var e=this.__data__;return Ma?void 0!==e[t]:Ra.call(e,t)},ja.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Ma&&void 0===e?"__lodash_hash_undefined__":e,this};var Ta=Array.prototype.splice;function Ba(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Ba.prototype.clear=function(){this.__data__=[],this.size=0},Ba.prototype.delete=function(t){var e=this.__data__,r=Fa(e,t);return!(r<0)&&(r==e.length-1?e.pop():Ta.call(e,r,1),--this.size,!0)},Ba.prototype.get=function(t){var e=this.__data__,r=Fa(e,t);return r<0?void 0:e[r][1]},Ba.prototype.has=function(t){return Fa(this.__data__,t)>-1},Ba.prototype.set=function(t,e){var r=this.__data__,n=Fa(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};var Ia=Ea(aa,"Map");function Na(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function Ua(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Ua.prototype.clear=function(){this.size=0,this.__data__={hash:new ja,map:new(Ia||Ba),string:new ja}},Ua.prototype.delete=function(t){var e=Na(this,t).delete(t);return this.size-=e?1:0,e},Ua.prototype.get=function(t){return Na(this,t).get(t)},Ua.prototype.has=function(t){return Na(this,t).has(t)},Ua.prototype.set=function(t,e){var r=Na(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function Ca(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new Ua;++e<r;)this.add(t[e])}function La(t){return t!=t}function Da(t,e){return!!(null==t?0:t.length)&&function(t,e,r){return e==e?function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}(t,e,r):function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}(t,La,r)}(t,e,0)>-1}function za(t,e,r){for(var n=-1,o=null==t?0:t.length;++n<o;)if(r(e,t[n]))return!0;return!1}function Ya(t,e){return t.has(e)}Ca.prototype.add=Ca.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Ca.prototype.has=function(t){return this.__data__.has(t)};var Wa=Ea(aa,"Set");function Ga(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}var Va=Wa&&1/Ga(new Wa([,-0]))[1]==1/0?function(t){return new Wa(t)}:function(){};function Ja(t,e){return e="function"==typeof e?e:void 0,t&&t.length?function(t,e,r){var n=-1,o=Da,i=t.length,a=!0,s=[],u=s;if(r)a=!1,o=za;else if(i>=200){var c=e?null:Va(t);if(c)return Ga(c);a=!1,o=Ya,u=new Ca}else u=e?[]:s;t:for(;++n<i;){var f=t[n],l=e?e(f):f;if(f=r||0!==f?f:0,a&&l==l){for(var p=u.length;p--;)if(u[p]===l)continue t;e&&u.push(l),s.push(f)}else o(u,l,r)||(u!==s&&u.push(l),s.push(f))}return s}(t,void 0,e):[]}var qa=r((function(t,e){t.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=86)}({17:function(t,e,r){var n,o,i;o=[e,r(89)],void 0===(i="function"==typeof(n=function(r,n){function o(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,n.key,n)}}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return e=t,(r=[{key:"getFirstMatch",value:function(t,e){var r=e.match(t);return r&&r.length>0&&r[1]||""}},{key:"getSecondMatch",value:function(t,e){var r=e.match(t);return r&&r.length>1&&r[2]||""}},{key:"matchAndReturnConst",value:function(t,e,r){if(t.test(e))return r}},{key:"getWindowsVersionName",value:function(t){switch(t){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}},{key:"getAndroidVersionName",value:function(t){var e=t.split(".").splice(0,2).map((function(t){return parseInt(t,10)||0}));if(e.push(0),!(1===e[0]&&e[1]<5))return 1===e[0]&&e[1]<6?"Cupcake":1===e[0]&&e[1]>=6?"Donut":2===e[0]&&e[1]<2?"Eclair":2===e[0]&&2===e[1]?"Froyo":2===e[0]&&e[1]>2?"Gingerbread":3===e[0]?"Honeycomb":4===e[0]&&e[1]<1?"Ice Cream Sandwich":4===e[0]&&e[1]<4?"Jelly Bean":4===e[0]&&e[1]>=4?"KitKat":5===e[0]?"Lollipop":6===e[0]?"Marshmallow":7===e[0]?"Nougat":8===e[0]?"Oreo":void 0}},{key:"getVersionPrecision",value:function(t){return t.split(".").length}},{key:"compareVersions",value:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=t.getVersionPrecision(e),i=t.getVersionPrecision(r),a=Math.max(o,i),s=0,u=t.map([e,r],(function(e){var r=a-t.getVersionPrecision(e),n=e+new Array(r+1).join(".0");return t.map(n.split("."),(function(t){return new Array(20-t.length).join("0")+t})).reverse()}));for(n&&(s=a-Math.min(o,i)),a-=1;a>=s;){if(u[0][a]>u[1][a])return 1;if(u[0][a]===u[1][a]){if(a===s)return 0;a-=1}else if(u[0][a]<u[1][a])return-1}}},{key:"map",value:function(t,e){var r,n=[];if(Array.prototype.map)return Array.prototype.map.call(t,e);for(r=0;r<t.length;r+=1)n.push(e(t[r]));return n}},{key:"getBrowserAlias",value:function(t){return n.BROWSER_ALIASES_MAP[t]}}])&&o(e,r),t;var e,r}();r.default=i,t.exports=e.default})?n.apply(e,o):n)||(t.exports=i)},86:function(t,e,r){var n,o,i;o=[e,r(87)],void 0===(i="function"==typeof(n=function(r,n){function o(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,n.key,n)}}var i;Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n=(i=n)&&i.__esModule?i:{default:i};var a=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return e=t,(r=[{key:"getParser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("string"!=typeof t)throw new Error("UserAgent should be a string");return new n.default(t,e)}},{key:"parse",value:function(t){return new n.default(t).getResult()}}])&&o(e,r),t;var e,r}();r.default=a,t.exports=e.default})?n.apply(e,o):n)||(t.exports=i)},87:function(t,e,r){var n,o,i;o=[e,r(88),r(90),r(91),r(92),r(17)],void 0===(i="function"==typeof(n=function(r,n,o,i,a,s){function u(t){return t&&t.__esModule?t:{default:t}}function c(t){return(c="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)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n=u(n),o=u(o),i=u(i),a=u(a),s=u(s);var f=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),null==e||""===e)throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},!0!==r&&this.parse()}return(e=[{key:"getUA",value:function(){return this._ua}},{key:"test",value:function(t){return t.test(this._ua)}},{key:"parseBrowser",value:function(){var t=this;this.parsedResult.browser={};var e=n.default.find((function(e){if("function"==typeof e.test)return e.test(t);if(e.test instanceof Array)return e.test.some((function(e){return t.test(e)}));throw new Error("Browser's test function is not valid")}));return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}},{key:"getBrowser",value:function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}},{key:"getBrowserName",value:function(t){return t?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}},{key:"getBrowserVersion",value:function(){return this.getBrowser().version}},{key:"getOS",value:function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}},{key:"parseOS",value:function(){var t=this;this.parsedResult.os={};var e=o.default.find((function(e){if("function"==typeof e.test)return e.test(t);if(e.test instanceof Array)return e.test.some((function(e){return t.test(e)}));throw new Error("Browser's test function is not valid")}));return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}},{key:"getOSName",value:function(t){var e=this.getOS().name;return t?String(e).toLowerCase()||"":e||""}},{key:"getOSVersion",value:function(){return this.getOS().version}},{key:"getPlatform",value:function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}},{key:"getPlatformType",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.getPlatform(),r=e.type;return t?String(r).toLowerCase()||"":r||""}},{key:"parsePlatform",value:function(){var t=this;this.parsedResult.platform={};var e=i.default.find((function(e){if("function"==typeof e.test)return e.test(t);if(e.test instanceof Array)return e.test.some((function(e){return t.test(e)}));throw new Error("Browser's test function is not valid")}));return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}},{key:"getEngine",value:function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}},{key:"getEngineName",value:function(t){return t?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}},{key:"parseEngine",value:function(){var t=this;this.parsedResult.engine={};var e=a.default.find((function(e){if("function"==typeof e.test)return e.test(t);if(e.test instanceof Array)return e.test.some((function(e){return t.test(e)}));throw new Error("Browser's test function is not valid")}));return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}},{key:"parse",value:function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}},{key:"getResult",value:function(){return Object.assign({},this.parsedResult)}},{key:"satisfies",value:function(t){var e=this,r={},n=0,o={},i=0;if(Object.keys(t).forEach((function(e){var a=t[e];"string"==typeof a?(o[e]=a,i+=1):"object"===c(a)&&(r[e]=a,n+=1)})),n>0){var a=Object.keys(r),s=a.find((function(t){return e.isOS(t)}));if(s){var u=this.satisfies(r[s]);if(void 0!==u)return u}var f=a.find((function(t){return e.isPlatform(t)}));if(f){var l=this.satisfies(r[f]);if(void 0!==l)return l}}if(i>0){var p=Object.keys(o).find((function(t){return e.isBrowser(t,!0)}));if(void 0!==p)return this.compareVersion(o[p])}}},{key:"isBrowser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.getBrowserName(),n=[r.toLowerCase()],o=s.default.getBrowserAlias(r);return e&&void 0!==o&&n.push(o.toLowerCase()),-1!==n.indexOf(t.toLowerCase())}},{key:"compareVersion",value:function(t){var e=[0],r=t,n=!1,o=this.getBrowserVersion();if("string"==typeof o)return">"===t[0]||"<"===t[0]?(r=t.substr(1),"="===t[1]?(n=!0,r=t.substr(2)):e=[],">"===t[0]?e.push(1):e.push(-1)):"="===t[0]?r=t.substr(1):"~"===t[0]&&(n=!0,r=t.substr(1)),e.indexOf(s.default.compareVersions(o,r,n))>-1}},{key:"isOS",value:function(t){return this.getOSName(!0)===String(t).toLowerCase()}},{key:"isPlatform",value:function(t){return this.getPlatformType(!0)===String(t).toLowerCase()}},{key:"isEngine",value:function(t){return this.getEngineName(!0)===String(t).toLowerCase()}},{key:"is",value:function(t){return this.isBrowser(t)||this.isOS(t)||this.isPlatform(t)}},{key:"some",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.some((function(e){return t.is(e)}))}}])&&function(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,n.key,n)}}(t.prototype,e),t;var e}();r.default=f,t.exports=e.default})?n.apply(e,o):n)||(t.exports=i)},88:function(t,e,r){var n,o,i;o=[e,r(17)],void 0===(i="function"==typeof(n=function(r,n){var o;Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n=(o=n)&&o.__esModule?o:{default:o};var i=/version\/(\d+(\.?_?\d+)+)/i,a=[{test:[/googlebot/i],describe:function(t){var e={name:"Googlebot"},r=n.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,t)||n.default.getFirstMatch(i,t);return r&&(e.version=r),e}},{test:[/opera/i],describe:function(t){var e={name:"Opera"},r=n.default.getFirstMatch(i,t)||n.default.getFirstMatch(/(?:opera)[\s\/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/opr\/|opios/i],describe:function(t){var e={name:"Opera"},r=n.default.getFirstMatch(/(?:opr|opios)[\s\/](\S+)/i,t)||n.default.getFirstMatch(i,t);return r&&(e.version=r),e}},{test:[/SamsungBrowser/i],describe:function(t){var e={name:"Samsung Internet for Android"},r=n.default.getFirstMatch(i,t)||n.default.getFirstMatch(/(?:SamsungBrowser)[\s\/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/Whale/i],describe:function(t){var e={name:"NAVER Whale Browser"},r=n.default.getFirstMatch(i,t)||n.default.getFirstMatch(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/MZBrowser/i],describe:function(t){var e={name:"MZ Browser"},r=n.default.getFirstMatch(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i,t)||n.default.getFirstMatch(i,t);return r&&(e.version=r),e}},{test:[/focus/i],describe:function(t){var e={name:"Focus"},r=n.default.getFirstMatch(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i,t)||n.default.getFirstMatch(i,t);return r&&(e.version=r),e}},{test:[/swing/i],describe:function(t){var e={name:"Swing"},r=n.default.getFirstMatch(/(?:swing)[\s\/](\d+(?:\.\d+)+)/i,t)||n.default.getFirstMatch(i,t);return r&&(e.version=r),e}},{test:[/coast/i],describe:function(t){var e={name:"Opera Coast"},r=n.default.getFirstMatch(i,t)||n.default.getFirstMatch(/(?:coast)[\s\/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/yabrowser/i],describe:function(t){var e={name:"Yandex Browser"},r=n.default.getFirstMatch(/(?:yabrowser)[\s\/](\d+(\.?_?\d+)+)/i,t)||n.default.getFirstMatch(i,t);return r&&(e.version=r),e}},{test:[/ucbrowser/i],describe:function(t){var e={name:"UC Browser"},r=n.default.getFirstMatch(i,t)||n.default.getFirstMatch(/(?:ucbrowser)[\s\/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/Maxthon|mxios/i],describe:function(t){var e={name:"Maxthon"},r=n.default.getFirstMatch(i,t)||n.default.getFirstMatch(/(?:Maxthon|mxios)[\s\/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/epiphany/i],describe:function(t){var e={name:"Epiphany"},r=n.default.getFirstMatch(i,t)||n.default.getFirstMatch(/(?:epiphany)[\s\/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/puffin/i],describe:function(t){var e={name:"Puffin"},r=n.default.getFirstMatch(i,t)||n.default.getFirstMatch(/(?:puffin)[\s\/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/sleipnir/i],describe:function(t){var e={name:"Sleipnir"},r=n.default.getFirstMatch(i,t)||n.default.getFirstMatch(/(?:sleipnir)[\s\/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/k-meleon/i],describe:function(t){var e={name:"K-Meleon"},r=n.default.getFirstMatch(i,t)||n.default.getFirstMatch(/(?:k-meleon)[\s\/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/micromessenger/i],describe:function(t){var e={name:"WeChat"},r=n.default.getFirstMatch(/(?:micromessenger)[\s\/](\d+(\.?_?\d+)+)/i,t)||n.default.getFirstMatch(i,t);return r&&(e.version=r),e}},{test:[/msie|trident/i],describe:function(t){var e={name:"Internet Explorer"},r=n.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/\sedg\//i],describe:function(t){var e={name:"Microsoft Edge"},r=n.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/edg([ea]|ios)/i],describe:function(t){var e={name:"Microsoft Edge"},r=n.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/vivaldi/i],describe:function(t){var e={name:"Vivaldi"},r=n.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/seamonkey/i],describe:function(t){var e={name:"SeaMonkey"},r=n.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/sailfish/i],describe:function(t){var e={name:"Sailfish"},r=n.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,t);return r&&(e.version=r),e}},{test:[/silk/i],describe:function(t){var e={name:"Amazon Silk"},r=n.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/phantom/i],describe:function(t){var e={name:"PhantomJS"},r=n.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/slimerjs/i],describe:function(t){var e={name:"SlimerJS"},r=n.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(t){var e={name:"BlackBerry"},r=n.default.getFirstMatch(i,t)||n.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/(web|hpw)[o0]s/i],describe:function(t){var e={name:"WebOS Browser"},r=n.default.getFirstMatch(i,t)||n.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/bada/i],describe:function(t){var e={name:"Bada"},r=n.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/tizen/i],describe:function(t){var e={name:"Tizen"},r=n.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,t)||n.default.getFirstMatch(i,t);return r&&(e.version=r),e}},{test:[/qupzilla/i],describe:function(t){var e={name:"QupZilla"},r=n.default.getFirstMatch(/(?:qupzilla)[\s\/](\d+(\.?_?\d+)+)/i,t)||n.default.getFirstMatch(i,t);return r&&(e.version=r),e}},{test:[/firefox|iceweasel|fxios/i],describe:function(t){var e={name:"Firefox"},r=n.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s\/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/chromium/i],describe:function(t){var e={name:"Chromium"},r=n.default.getFirstMatch(/(?:chromium)[\s\/](\d+(\.?_?\d+)+)/i,t)||n.default.getFirstMatch(i,t);return r&&(e.version=r),e}},{test:[/chrome|crios|crmo/i],describe:function(t){var e={name:"Chrome"},r=n.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:function(t){var e=!t.test(/like android/i),r=t.test(/android/i);return e&&r},describe:function(t){var e={name:"Android Browser"},r=n.default.getFirstMatch(i,t);return r&&(e.version=r),e}},{test:[/playstation 4/i],describe:function(t){var e={name:"PlayStation 4"},r=n.default.getFirstMatch(i,t);return r&&(e.version=r),e}},{test:[/safari|applewebkit/i],describe:function(t){var e={name:"Safari"},r=n.default.getFirstMatch(i,t);return r&&(e.version=r),e}},{test:[/.*/i],describe:function(t){var e=-1!==t.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:n.default.getFirstMatch(e,t),version:n.default.getSecondMatch(e,t)}}}];r.default=a,t.exports=e.default})?n.apply(e,o):n)||(t.exports=i)},89:function(t,e,r){var n,o;void 0===(o="function"==typeof(n=function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex"}})?n.apply(e,[e]):n)||(t.exports=o)},90:function(t,e,r){var n,o,i;o=[e,r(17)],void 0===(i="function"==typeof(n=function(r,n){var o;Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n=(o=n)&&o.__esModule?o:{default:o};var i=[{test:[/windows phone/i],describe:function(t){return{name:"Windows Phone",version:n.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,t)}}},{test:[/windows/i],describe:function(t){var e=n.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,t);return{name:"Windows",version:e,versionName:n.default.getWindowsVersionName(e)}}},{test:[/macintosh/i],describe:function(t){return{name:"macOS",version:n.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,t).replace(/[_\s]/g,".")}}},{test:[/(ipod|iphone|ipad)/i],describe:function(t){return{name:"iOS",version:n.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,t).replace(/[_\s]/g,".")}}},{test:function(t){var e=!t.test(/like android/i),r=t.test(/android/i);return e&&r},describe:function(t){var e=n.default.getFirstMatch(/android[\s\/-](\d+(\.\d+)*)/i,t),r=n.default.getAndroidVersionName(e),o={name:"Android",version:e};return r&&(o.versionName=r),o}},{test:[/(web|hpw)[o0]s/i],describe:function(t){var e=n.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,t),r={name:"WebOS"};return e&&e.length&&(r.version=e),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(t){return{name:"BlackBerry",version:n.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,t)||n.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,t)||n.default.getFirstMatch(/\bbb(\d+)/i,t)}}},{test:[/bada/i],describe:function(t){return{name:"Bada",version:n.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,t)}}},{test:[/tizen/i],describe:function(t){return{name:"Tizen",version:n.default.getFirstMatch(/tizen[\/\s](\d+(\.\d+)*)/i,t)}}},{test:[/linux/i],describe:function(){return{name:"Linux"}}},{test:[/CrOS/],describe:function(){return{name:"Chrome OS"}}},{test:[/PlayStation 4/],describe:function(t){return{name:"PlayStation 4",version:n.default.getFirstMatch(/PlayStation 4[\/\s](\d+(\.\d+)*)/i,t)}}}];r.default=i,t.exports=e.default})?n.apply(e,o):n)||(t.exports=i)},91:function(t,e,r){var n,o,i;o=[e,r(17)],void 0===(i="function"==typeof(n=function(r,n){var o;Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n=(o=n)&&o.__esModule?o:{default:o};var i="tablet",a="mobile",s="desktop",u="tv",c=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(t){var e=n.default.getFirstMatch(/(can-l01)/i,t)&&"Nova",r={type:a,vendor:"Huawei"};return e&&(r.model=e),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:i,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:i,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:i,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:i,vendor:"Amazon"}}},{test:[/tablet/i],describe:function(){return{type:i}}},{test:function(t){var e=t.test(/ipod|iphone/i),r=t.test(/like (ipod|iphone)/i);return e&&!r},describe:function(t){var e=n.default.getFirstMatch(/(ipod|iphone)/i,t);return{type:a,vendor:"Apple",model:e}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:a,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:a}}},{test:function(t){return"blackberry"===t.getBrowserName(!0)},describe:function(){return{type:a,vendor:"BlackBerry"}}},{test:function(t){return"bada"===t.getBrowserName(!0)},describe:function(){return{type:a}}},{test:function(t){return"windows phone"===t.getBrowserName()},describe:function(){return{type:a,vendor:"Microsoft"}}},{test:function(t){var e=Number(String(t.getOSVersion()).split(".")[0]);return"android"===t.getOSName(!0)&&e>=3},describe:function(){return{type:i}}},{test:function(t){return"android"===t.getOSName(!0)},describe:function(){return{type:a}}},{test:function(t){return"macos"===t.getOSName(!0)},describe:function(){return{type:s,vendor:"Apple"}}},{test:function(t){return"windows"===t.getOSName(!0)},describe:function(){return{type:s}}},{test:function(t){return"linux"===t.getOSName(!0)},describe:function(){return{type:s}}},{test:function(t){return"playstation 4"===t.getOSName(!0)},describe:function(){return{type:u}}}];r.default=c,t.exports=e.default})?n.apply(e,o):n)||(t.exports=i)},92:function(t,e,r){var n,o,i;o=[e,r(17)],void 0===(i="function"==typeof(n=function(r,n){var o;Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n=(o=n)&&o.__esModule?o:{default:o};var i=[{test:function(t){return"microsoft edge"===t.getBrowserName(!0)},describe:function(t){return/\sedg\//i.test(t)?{name:"Blink"}:{name:"EdgeHTML",version:n.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,t)}}},{test:[/trident/i],describe:function(t){var e={name:"Trident"},r=n.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:function(t){return t.test(/presto/i)},describe:function(t){var e={name:"Presto"},r=n.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:function(t){var e=t.test(/gecko/i),r=t.test(/like gecko/i);return e&&!r},describe:function(t){var e={name:"Gecko"},r=n.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:"Blink"}}},{test:[/(apple)?webkit/i],describe:function(t){var e={name:"WebKit"},r=n.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}}];r.default=i,t.exports=e.default})?n.apply(e,o):n)||(t.exports=i)}})})),Ha=e(qa),Ka=(qa.bowser,t.navigator&&t.navigator.userAgent?Ha.getParser(t.navigator.userAgent).getBrowser():null),$a=Ka&&Ka.name&&Ka.version?{name:Ka.name,version:Ka.version}:null,Za=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ft(this,t),na(this,{version:"1.2",entries:[],pages:[]},e),!this.browser&&$a&&(this.browser=$a)}return ht(t,[{key:"addEntries",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.entries=Ja([].concat(ta(t),ta(this.entries)),(function(t,e){return t._id===e._id&&t._order===e._order}))}},{key:"sortEntries",value:function(){this.entries=this.entries.sort((function(t,e){return new Date(t.startedDateTime)-new Date(e.startedDateTime)}))}}]),t}(),Xa=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ft(this,t),this.log=new Za(e.log)};function Qa(t){return t>=55296&&t<=56319}function ts(t){return t>=56320&&t<=57343}var es=function(t){if("string"!=typeof t)throw new Error("Input must be string");for(var e=t.length,r=0,n=null,o=null,i=0;i<e;i++)ts(n=t.charCodeAt(i))?null!=o&&Qa(o)?r+=1:r+=3:n<=127?r+=1:n>=128&&n<=2047?r+=2:n>=2048&&n<=65535&&(r+=3),o=n;return r},rs={decodeValues:!0,map:!1,silent:!1};function ns(t){return"string"==typeof t&&!!t.trim()}function os(t,e){var r=t.split(";").filter(ns),n=r.shift().split("="),o=n.shift(),i=n.join("=");e=e?Object.assign({},rs,e):rs;try{i=e.decodeValues?decodeURIComponent(i):i}catch(t){console.error("set-cookie-parser encountered an error while decoding a cookie with value '"+i+"'. Set options.decodeValues to false to disable this feature.",t)}var a={name:o,value:i};return r.forEach((function(t){var e=t.split("="),r=e.shift().trimLeft().toLowerCase(),n=e.join("=");"expires"===r?a.expires=new Date(n):"max-age"===r?a.maxAge=parseInt(n,10):"secure"===r?a.secure=!0:"httponly"===r?a.httpOnly=!0:"samesite"===r?a.sameSite=n:a[r]=n})),a}function is(t,e){if(e=e?Object.assign({},rs,e):rs,!t)return e.map?{}:[];if(t.headers&&t.headers["set-cookie"])t=t.headers["set-cookie"];else if(t.headers){var r=t.headers[Object.keys(t.headers).find((function(t){return"set-cookie"===t.toLowerCase()}))];r||!t.headers.cookie||e.silent||console.warn("Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning."),t=r}if(Array.isArray(t)||(t=[t]),(e=e?Object.assign({},rs,e):rs).map){return t.filter(ns).reduce((function(t,r){var n=os(r,e);return t[n.name]=n,t}),{})}return t.filter(ns).map((function(t){return os(t,e)}))}var as=is,ss=is,us=os,cs=function(t){if(Array.isArray(t))return t;if("string"!=typeof t)return[];var e,r,n,o,i,a=[],s=0;function u(){for(;s<t.length&&/\s/.test(t.charAt(s));)s+=1;return s<t.length}for(;s<t.length;){for(e=s,i=!1;u();)if(","===(r=t.charAt(s))){for(n=s,s+=1,u(),o=s;s<t.length&&"="!==(r=t.charAt(s))&&";"!==r&&","!==r;)s+=1;s<t.length&&"="===t.charAt(s)?(i=!0,s=o,a.push(t.substring(e,n)),e=s):s=n+1}else s+=1;(!i||s>=t.length)&&a.push(t.substring(e,t.length))}return a};as.parse=ss,as.parseString=us,as.splitCookiesString=cs;var fs=Ke,ls=wr;function ps(t){return fs(t||{}).reduce((function(e,r){var n=t[r];return ls(n)?e.push.apply(e,ta(n.map((function(t){return{name:r,value:t,_fromType:"array"}})))):e.push({name:r,value:n}),e}),[])}var hs=wr;function ds(t,e){var r=t.getHeader(e);return hs(r)?r.length>0?r[0]:"":r}var ys=function t(e){ft(this,t),this.httpVersion="HTTP/1.1",this.url=e.absoluteUrl,this.method=e.method,this.headers=ps(e.headers),this.headersSize=function(t){var e=[],r=[];t.headers.forEach((function(t){var n=t.name,o=t.value;e.push(n),r.push(o)}));var n=t.method+t.url+e.join()+r.join();return es(n)+2*e.length+2+12+2}(this),this.queryString=ps(e.query),this.cookies=as.parse(e.getHeader("Set-Cookie")),e.body&&(this.postData={mimeType:ds(e,"Content-Type")||"text/plain",params:[]},"string"==typeof e.body&&(this.postData.text=e.body));var r=ds(e,"Content-Length");this.bodySize=r?lo(r,10):this.postData&&this.postData.text?es(this.postData.text):0};var vs=function t(e){ft(this,t),this.httpVersion="HTTP/1.1",this.status=e.statusCode,this.statusText=e.statusText,this.headers=ps(e.headers),this.headersSize=function(t){var e=[],r=[];t.headers.forEach((function(t){var n=t.name,o=t.value;e.push(n),r.push(o)}));var n=e.join()+r.join();return es(n)+2*e.length+2+2}(this),this.cookies=as.parse(e.getHeader("Set-Cookie")),this.redirectURL=ds(e,"Location")||"",this.content={mimeType:ds(e,"Content-Type")||"text/plain"},e.body&&"string"==typeof e.body&&(this.content.text=e.body,e.encoding&&(this.content.encoding=e.encoding));var r=ds(e,"Content-Length");this.content.size=r?lo(r,10):this.content.text?es(this.content.text):0,this.bodySize=this.content.size},gs=Ke;var ms=function t(e){ft(this,t),this._id=e.id,this._order=e.order,this.startedDateTime=e.timestamp,this.request=new ys(e),this.response=new vs(e.response),this.cache={},this.timings={blocked:-1,dns:-1,connect:-1,send:0,wait:e.responseTime,receive:0,ssl:-1},this.time=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return gs(t).reduce((function(e,r){return t[r]>0?e+=t[r]:e}),0)}(this.timings)};function bs(t,e){var r=void 0!==be&&t[Le]||t["@@iterator"];if(!r){if(wr(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return ws(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 br(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ws(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function ws(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 _s(t,e){var r=Ke(t);if($e){var n=$e(t);e&&(n=n.filter((function(e){return Qe(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ss(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?_s(Object(r),!0).forEach((function(e){kn(t,e,r[e])})):nr?ir(t,nr(r)):_s(Object(r)).forEach((function(e){pt(t,e,Qe(r,e))}))}return t}var xs=function(){function t(e){ft(this,t),this.polly=e,this.pending=new Yn,this._cache=new Yn}var e,r,n,o,i;return ht(t,[{key:"defaultOptions",get:function(){return{}}},{key:"options",get:function(){return Ss(Ss({},this.defaultOptions||{}),(this.polly.config.persisterOptions||{})[this.constructor.id]||{})}},{key:"hasPending",get:function(){return this.pending.size>0}},{key:"persist",value:(i=Mn(Rn.mark((function t(){var e,r,n,o,i,a,s,u,c,f,l,p,h,d,y,v;return Rn.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.hasPending){t.next=2;break}return t.abrupt("return");case 2:e=[],r={name:"Polly.JS",version:this.polly.constructor.VERSION,comment:"".concat(this.constructor.type,":").concat(this.constructor.id)},n=bs(this.pending),t.prev=5,n.s();case 7:if((o=n.n()).done){t.next=41;break}return i=kr(o.value,2),a=i[0],s=i[1],u=s.name,c=s.requests,f=[],t.next=12,this.findRecording(a);case 12:l=t.sent,p=void 0,p=new Xa(l||{log:{creator:r,_recordingName:u}}),h=bs(c),t.prev=16,h.s();case 18:if((d=h.n()).done){t.next=27;break}return y=d.value,v=new ms(y),this.assert("Cannot persist response for [".concat(v.request.method,"] ").concat(v.request.url," because the status code was ").concat(v.response.status," and `recordFailedRequests` is `false`"),v.response.status<400||y.config.recordFailedRequests),t.next=24,y._emit("beforePersist",v);case 24:f.push(v);case 25:t.next=18;break;case 27:t.next=32;break;case 29:t.prev=29,t.t0=t.catch(16),h.e(t.t0);case 32:return t.prev=32,h.f(),t.finish(32);case 35:p.log.addEntries(f),this.polly.config.persisterOptions.disableSortingHarEntries||p.log.sortEntries(),this.polly.config.persisterOptions.keepUnusedRequests||this._removeUnusedEntries(a,p),e.push(this.saveRecording(a,p));case 39:t.next=7;break;case 41:t.next=46;break;case 43:t.prev=43,t.t1=t.catch(5),n.e(t.t1);case 46:return t.prev=46,n.f(),t.finish(46);case 49:return t.next=51,En.all(e);case 51:this.pending.clear();case 52:case"end":return t.stop()}}),t,this,[[5,43,46,49],[16,29,32,35]])}))),function(){return i.apply(this,arguments)})},{key:"recordRequest",value:function(t){this.assert("You must pass a PollyRequest to 'recordRequest'.",t),this.assert("Cannot save a request with no response.",t.didRespond);var e=t.recordingId,r=t.recordingName;this.pending.has(e)||this.pending.set(e,{name:r,requests:[]}),this.pending.get(e).requests.push(t)}},{key:"findRecording",value:(o=Mn(Rn.mark((function t(e){var r,n,o=this;return Rn.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(r=this._cache).has(e)||(n=function(){var t=Mn(Rn.mark((function t(){var n;return Rn.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,o.onFindRecording(e);case 2:if(!(n=t.sent)){t.next=8;break}return o.assert("Recording with id '".concat(e,"' is invalid. Please delete the recording so a new one can be created."),n.log&&"Polly.JS"===n.log.creator.name),t.abrupt("return",n);case 8:return r.delete(e),t.abrupt("return",null);case 10:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),r.set(e,n())),t.abrupt("return",r.get(e));case 3:case"end":return t.stop()}}),t,this)}))),function(t){return o.apply(this,arguments)})},{key:"onFindRecording",value:function(){this.assert("Must implement the `onFindRecording` hook.")}},{key:"saveRecording",value:(n=Mn(Rn.mark((function t(e,r){var n=arguments;return Rn.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.onSaveRecording.apply(this,n);case 2:this._cache.delete(e),this.polly.logger.log.debug("Recording saved.",{recordingId:e,har:r});case 4:case"end":return t.stop()}}),t,this)}))),function(t,e){return n.apply(this,arguments)})},{key:"onSaveRecording",value:function(){this.assert("Must implement the `onSaveRecording` hook.")}},{key:"deleteRecording",value:(r=Mn(Rn.mark((function t(e){var r=arguments;return Rn.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.onDeleteRecording.apply(this,r);case 2:this._cache.delete(e);case 3:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})},{key:"onDeleteRecording",value:function(){this.assert("Must implement the `onDeleteRecording` hook.")}},{key:"findEntry",value:(e=Mn(Rn.mark((function t(e){var r,n,o,i;return Rn.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.id,n=e.order,o=e.recordingId,t.next=3,this.findRecording(o);case 3:return i=t.sent,t.abrupt("return",i&&i.log.entries.find((function(t){return t._id===r&&t._order===n}))||null);case 5:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"stringify",value:function(){return Vn.apply(void 0,arguments)}},{key:"assert",value: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];Qn.apply(void 0,["[".concat(this.constructor.type,":").concat(this.constructor.id,"] ").concat(t)].concat(r))}},{key:"_removeUnusedEntries",value:function(t,e){var r=this.polly._requests.filter((function(e){return e.recordingId===t&&(e.action===Jn||e.action===qn)}));e.log.entries=e.log.entries.filter((function(t){return r.find((function(e){return t._id===e.id&&t._order===e.order}))}))}}],[{key:"type",get:function(){return"persister"}},{key:"id",get:function(){Qn("Must override the static `id` getter.")}}]),t}();function Os(t){var e=function(){if("undefined"==typeof Reflect||!ct)return!1;if(ct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=He(t);if(e){var o=He(this).constructor;r=ct(n,arguments,o)}else r=n.apply(this,arguments);return Ge(this,r)}}var Ps=JSON.parse;return function(e){xt(n,e);var r=Os(n);function n(){return ft(this,n),r.apply(this,arguments)}return ht(n,[{key:"defaultOptions",get:function(){return{key:"pollyjs",context:t}}},{key:"localStorage",get:function(){var t=this.options.context;return this.assert('Could not find "localStorage" on the given context "'.concat(t,'".'),t&&t.localStorage),t.localStorage}},{key:"db",get:function(){var t=this.localStorage.getItem(this.options.key);return t?Ps(t):{}},set:function(t){this.localStorage.setItem(this.options.key,this.stringify(t))}},{key:"onFindRecording",value:function(t){return this.db[t]||null}},{key:"onSaveRecording",value:function(t,e){var r=this.db;r[t]=e,this.db=r}},{key:"onDeleteRecording",value:function(t){var e=this.db;delete e[t],this.db=e}}],[{key:"id",get:function(){return"local-storage"}}]),n}(xs)}));
//# sourceMappingURL=pollyjs-persister-local-storage.min.js.map