diff --git a/demo/dist/demo.js b/demo/dist/demo.js index 59c1a41f..31021f2e 100644 --- a/demo/dist/demo.js +++ b/demo/dist/demo.js @@ -29440,7 +29440,10 @@ typeof navigator === "object" && (function () { label: 'French', srclang: 'fr', src: 'https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-HD.fr.vtt' - }] + }], + previewThumbnails: { + src: ['https://cdn.plyr.io/static/demo/thumbs/100p.vtt', 'https://cdn.plyr.io/static/demo/thumbs/240p.vtt'] + } }, audio: { type: 'audio', diff --git a/demo/dist/demo.min.js b/demo/dist/demo.min.js index e8f5dae2..1cb842f9 100644 --- a/demo/dist/demo.min.js +++ b/demo/dist/demo.min.js @@ -15,5 +15,5 @@ ***************************************************************************** */ var Pc=function(e,t){return(Pc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function Ic(e,t){function n(){this.constructor=e}Pc(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var jc,Cc,Rc=function(){return(Rc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function Nc(){for(var e=[],t=0;t=200&&t<300?e.Success:429===t?e.RateLimit:t>=400&&t<500?e.Invalid:t>=500?e.Failed:e.Unknown}}(Cc||(Cc={}));var Mc=O.f,Uc=Function.prototype,Dc=Uc.toString,Fc=/^\s*function ([^ (]*)/;o&&!("name"in Uc)&&Mc(Uc,"name",{configurable:!0,get:function(){try{return Dc.call(this).match(Fc)[1]}catch(e){return""}}});var Bc=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){return e.__proto__=t,e}:function(e,t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n]);return e});var qc=function(e){function t(t){var n=this.constructor,r=e.call(this,t)||this;return r.message=t,r.name=n.prototype.constructor.name,Bc(r,n.prototype),r}return Ic(t,e),t}(Error);function Hc(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Jc(e,Error)}}function Vc(e){return"[object ErrorEvent]"===Object.prototype.toString.call(e)}function Wc(e){return"[object DOMError]"===Object.prototype.toString.call(e)}function zc(e){return"[object String]"===Object.prototype.toString.call(e)}function Yc(e){return null===e||"object"!==Ka(e)&&"function"!=typeof e}function $c(e){return"[object Object]"===Object.prototype.toString.call(e)}function Gc(e){return"undefined"!=typeof Event&&Jc(e,Event)}function Kc(e){return"undefined"!=typeof Element&&Jc(e,Element)}function Xc(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function Jc(e,t){try{return e instanceof t}catch(e){return!1}}wi("match",1,(function(e,t,n){return[function(t){var n=d(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var i=x(e),o=String(this);if(!i.global)return ki(i,o);var a=i.unicode;i.lastIndex=0;for(var s,c=[],u=0;null!==(s=ki(i,o));){var l=String(s[0]);c[u]=l,""===l&&(i.lastIndex=Ei(o,se(i.lastIndex),a)),u++}return 0===u?null:c}]}));var Qc,Zc="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,eu=O.f,tu=r.Int8Array,nu=tu&&tu.prototype,ru=r.Uint8ClampedArray,iu=ru&&ru.prototype,ou=tu&&Dn(tu),au=nu&&Dn(nu),su=Object.prototype,cu=su.isPrototypeOf,uu=Fe("toStringTag"),lu=H("TYPED_ARRAY_TAG"),fu=Zc&&!!$t&&"Opera"!==lt(r.opera),hu=!1,pu={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},du=function(e){return v(e)&&b(pu,lt(e))};for(Qc in pu)r[Qc]||(fu=!1);if((!fu||"function"!=typeof ou||ou===Function.prototype)&&(ou=function(){throw TypeError("Incorrect invocation")},fu))for(Qc in pu)r[Qc]&&$t(r[Qc],ou);if((!fu||!au||au===su)&&(au=ou.prototype,fu))for(Qc in pu)r[Qc]&&$t(r[Qc].prototype,au);if(fu&&Dn(iu)!==au&&$t(iu,au),o&&!b(au,uu))for(Qc in hu=!0,eu(au,uu,{get:function(){return v(this)?this[lu]:void 0}}),pu)r[Qc]&&P(r[Qc],lu,Qc);var gu={NATIVE_ARRAY_BUFFER_VIEWS:fu,TYPED_ARRAY_TAG:hu&&lu,aTypedArray:function(e){if(du(e))return e;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(e){if($t){if(cu.call(ou,e))return e}else for(var t in pu)if(b(pu,Qc)){var n=r[t];if(n&&(e===n||cu.call(n,e)))return e}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n){if(o){if(n)for(var i in pu){var a=r[i];a&&b(a.prototype,e)&&delete a.prototype[e]}au[e]&&!n||Z(au,e,n?t:fu&&nu[e]||t)}},exportTypedArrayStaticMethod:function(e,t,n){var i,a;if(o){if($t){if(n)for(i in pu)(a=r[i])&&b(a,e)&&delete a[e];if(ou[e]&&!n)return;try{return Z(ou,e,n?t:fu&&tu[e]||t)}catch(e){}}for(i in pu)!(a=r[i])||a[e]&&!n||Z(a,e,t)}},isView:function(e){var t=lt(e);return"DataView"===t||b(pu,t)},isTypedArray:du,TypedArray:ou,TypedArrayPrototype:au},vu=gu.NATIVE_ARRAY_BUFFER_VIEWS,mu=r.ArrayBuffer,yu=r.Int8Array,bu=!vu||!i((function(){yu(1)}))||!i((function(){new yu(-1)}))||!yt((function(e){new yu,new yu(null),new yu(1.5),new yu(e)}),!0)||i((function(){return 1!==new yu(new mu(2),1,void 0).length})),wu=function(e){if(void 0===e)return 0;var t=oe(e),n=se(t);if(t!==n)throw RangeError("Wrong length or index");return n},_u=Math.abs,Eu=Math.pow,ku=Math.floor,Su=Math.log,Tu=Math.LN2,xu=function(e,t,n){var r,i,o,a=new Array(n),s=8*n-t-1,c=(1<>1,l=23===t?Eu(2,-24)-Eu(2,-77):0,f=e<0||0===e&&1/e<0?1:0,h=0;for((e=_u(e))!=e||e===1/0?(i=e!=e?1:0,r=c):(r=ku(Su(e)/Tu),e*(o=Eu(2,-r))<1&&(r--,o*=2),(e+=r+u>=1?l/o:l*Eu(2,1-u))*o>=2&&(r++,o/=2),r+u>=c?(i=0,r=c):r+u>=1?(i=(e*o-1)*Eu(2,t),r+=u):(i=e*Eu(2,u-1)*Eu(2,t),r=0));t>=8;a[h++]=255&i,i/=256,t-=8);for(r=r<0;a[h++]=255&r,r/=256,s-=8);return a[--h]|=128*f,a},Au=function(e,t){var n,r=e.length,i=8*r-t-1,o=(1<>1,s=i-7,c=r-1,u=e[c--],l=127&u;for(u>>=7;s>0;l=256*l+e[c],c--,s-=8);for(n=l&(1<<-s)-1,l>>=-s,s+=t;s>0;n=256*n+e[c],c--,s-=8);if(0===l)l=1-a;else{if(l===o)return n?NaN:u?-1/0:1/0;n+=Eu(2,t),l-=a}return(u?-1:1)*n*Eu(2,l-t)},Ou=function(e){for(var t=Ce(this),n=se(t.length),r=arguments.length,i=le(r>1?arguments[1]:void 0,n),o=r>2?arguments[2]:void 0,a=void 0===o?n:le(o,n);a>i;)t[i++]=e;return t},Pu=me.f,Iu=O.f,ju=Q.get,Cu=Q.set,Ru=r.ArrayBuffer,Lu=Ru,Nu=r.DataView,Mu=Nu&&Nu.prototype,Uu=Object.prototype,Du=r.RangeError,Fu=xu,Bu=Au,qu=function(e){return[255&e]},Hu=function(e){return[255&e,e>>8&255]},Vu=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},Wu=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},zu=function(e){return Fu(e,23,4)},Yu=function(e){return Fu(e,52,8)},$u=function(e,t){Iu(e.prototype,t,{get:function(){return ju(this)[t]}})},Gu=function(e,t,n,r){var i=wu(n),o=ju(e);if(i+t>o.byteLength)throw Du("Wrong index");var a=ju(o.buffer).bytes,s=i+o.byteOffset,c=a.slice(s,s+t);return r?c:c.reverse()},Ku=function(e,t,n,r,i,o){var a=wu(n),s=ju(e);if(a+t>s.byteLength)throw Du("Wrong index");for(var c=ju(s.buffer).bytes,u=a+s.byteOffset,l=r(+i),f=0;fZu;)(Xu=Qu[Zu++])in Lu||P(Lu,Xu,Ru[Xu]);Ju.constructor=Lu}$t&&Dn(Mu)!==Uu&&$t(Mu,Uu);var el=new Nu(new Lu(2)),tl=Mu.setInt8;el.setInt8(0,2147483648),el.setInt8(1,2147483649),!el.getInt8(0)&&el.getInt8(1)||no(Mu,{setInt8:function(e,t){tl.call(this,e,t<<24>>24)},setUint8:function(e,t){tl.call(this,e,t<<24>>24)}},{unsafe:!0})}else Lu=function(e){Wi(this,Lu,"ArrayBuffer");var t=wu(e);Cu(this,{bytes:Ou.call(new Array(t),0),byteLength:t}),o||(this.byteLength=t)},Nu=function(e,t,n){Wi(this,Nu,"DataView"),Wi(e,Lu,"DataView");var r=ju(e).byteLength,i=oe(t);if(i<0||i>r)throw Du("Wrong offset");if(i+(n=void 0===n?r-i:se(n))>r)throw Du("Wrong length");Cu(this,{buffer:e,byteLength:n,byteOffset:i}),o||(this.buffer=e,this.byteLength=n,this.byteOffset=i)},o&&($u(Lu,"byteLength"),$u(Nu,"buffer"),$u(Nu,"byteLength"),$u(Nu,"byteOffset")),no(Nu.prototype,{getInt8:function(e){return Gu(this,1,e)[0]<<24>>24},getUint8:function(e){return Gu(this,1,e)[0]},getInt16:function(e){var t=Gu(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=Gu(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return Wu(Gu(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return Wu(Gu(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return Bu(Gu(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return Bu(Gu(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){Ku(this,1,e,qu,t)},setUint8:function(e,t){Ku(this,1,e,qu,t)},setInt16:function(e,t){Ku(this,2,e,Hu,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){Ku(this,2,e,Hu,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){Ku(this,4,e,Vu,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){Ku(this,4,e,Vu,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){Ku(this,4,e,zu,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){Ku(this,8,e,Yu,t,arguments.length>2?arguments[2]:void 0)}});Wn(Lu,"ArrayBuffer"),Wn(Nu,"DataView");var nl={ArrayBuffer:Lu,DataView:Nu},rl=function(e,t){var n=function(e){var t=oe(e);if(t<0)throw RangeError("The argument can't be less than 0");return t}(e);if(n%t)throw RangeError("Wrong offset");return n},il=gu.aTypedArrayConstructor,ol=function(e){var t,n,r,i,o,a,s=Ce(e),c=arguments.length,u=c>1?arguments[1]:void 0,l=void 0!==u,f=ht(s);if(null!=f&&!it(f))for(a=(o=f.call(s)).next,s=[];!(i=a.call(o)).done;)s.push(i.value);for(l&&c>2&&(u=je(u,arguments[2],2)),n=se(s.length),r=new(il(this))(n),t=0;n>t;t++)r[t]=l?u(s[t],t):s[t];return r};t((function(e){var t=me.f,n=We.forEach,i=Q.get,a=Q.set,s=O.f,c=T.f,l=Math.round,f=r.RangeError,h=nl.ArrayBuffer,p=nl.DataView,d=gu.NATIVE_ARRAY_BUFFER_VIEWS,g=gu.TYPED_ARRAY_TAG,y=gu.TypedArray,w=gu.TypedArrayPrototype,_=gu.aTypedArrayConstructor,E=gu.isTypedArray,k=function(e,t){for(var n=0,r=t.length,i=new(_(e))(r);r>n;)i[n]=t[n++];return i},S=function(e,t){s(e,t,{get:function(){return i(this)[t]}})},x=function(e){var t;return e instanceof h||"ArrayBuffer"==(t=lt(e))||"SharedArrayBuffer"==t},A=function(e,t){return E(e)&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},I=function(e,t){return A(e,t=m(t,!0))?u(2,e[t]):c(e,t)},j=function(e,t,n){return!(A(e,t=m(t,!0))&&v(n)&&b(n,"value"))||b(n,"get")||b(n,"set")||n.configurable||b(n,"writable")&&!n.writable||b(n,"enumerable")&&!n.enumerable?s(e,t,n):(e[t]=n.value,e)};o?(d||(T.f=I,O.f=j,S(w,"buffer"),S(w,"byteOffset"),S(w,"byteLength"),S(w,"length")),Pe({target:"Object",stat:!0,forced:!d},{getOwnPropertyDescriptor:I,defineProperty:j}),e.exports=function(e,o,c){var u=e.match(/\d+$/)[0]/8,m=e+(c?"Clamped":"")+"Array",b="get"+e,_="set"+e,S=r[m],T=S,A=T&&T.prototype,O={},I=function(e,t){s(e,t,{get:function(){return function(e,t){var n=i(e);return n.view[b](t*u+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,n){var r=i(e);c&&(n=(n=l(n))<0?0:n>255?255:255&n),r.view[_](t*u+r.byteOffset,n,!0)}(this,t,e)},enumerable:!0})};d?bu&&(T=o((function(e,t,n,r){return Wi(e,T,m),Gt(v(t)?x(t)?void 0!==r?new S(t,rl(n,u),r):void 0!==n?new S(t,rl(n,u)):new S(t):E(t)?k(T,t):ol.call(T,t):new S(wu(t)),e,T)})),$t&&$t(T,y),n(t(S),(function(e){e in T||P(T,e,S[e])})),T.prototype=A):(T=o((function(e,t,n,r){Wi(e,T,m);var i,o,s,c=0,l=0;if(v(t)){if(!x(t))return E(t)?k(T,t):ol.call(T,t);i=t,l=rl(n,u);var d=t.byteLength;if(void 0===r){if(d%u)throw f("Wrong length");if((o=d-l)<0)throw f("Wrong length")}else if((o=se(r)*u)+l>d)throw f("Wrong length");s=o/u}else s=wu(t),i=new h(o=s*u);for(a(e,{buffer:i,byteOffset:l,byteLength:o,length:s,view:new p(i)});c2?arguments[2]:void 0,s=al((void 0===a?r:le(a,r))-o,r-i),c=1;for(o0;)o in n?n[i]=n[o]:delete n[i],i+=c,o+=c;return n},cl=gu.aTypedArray;(0,gu.exportTypedArrayMethod)("copyWithin",(function(e,t){return sl.call(cl(this),e,t,arguments.length>2?arguments[2]:void 0)}));var ul=We.every,ll=gu.aTypedArray;(0,gu.exportTypedArrayMethod)("every",(function(e){return ul(ll(this),e,arguments.length>1?arguments[1]:void 0)}));var fl=gu.aTypedArray;(0,gu.exportTypedArrayMethod)("fill",(function(e){return Ou.apply(fl(this),arguments)}));var hl=We.filter,pl=gu.aTypedArray,dl=gu.aTypedArrayConstructor;(0,gu.exportTypedArrayMethod)("filter",(function(e){for(var t=hl(pl(this),e,arguments.length>1?arguments[1]:void 0),n=ji(this,this.constructor),r=0,i=t.length,o=new(dl(n))(i);i>r;)o[r]=t[r++];return o}));var gl=We.find,vl=gu.aTypedArray;(0,gu.exportTypedArrayMethod)("find",(function(e){return gl(vl(this),e,arguments.length>1?arguments[1]:void 0)}));var ml=We.findIndex,yl=gu.aTypedArray;(0,gu.exportTypedArrayMethod)("findIndex",(function(e){return ml(yl(this),e,arguments.length>1?arguments[1]:void 0)}));var bl=We.forEach,wl=gu.aTypedArray;(0,gu.exportTypedArrayMethod)("forEach",(function(e){bl(wl(this),e,arguments.length>1?arguments[1]:void 0)}));var _l=he.includes,El=gu.aTypedArray;(0,gu.exportTypedArrayMethod)("includes",(function(e){return _l(El(this),e,arguments.length>1?arguments[1]:void 0)}));var kl=he.indexOf,Sl=gu.aTypedArray;(0,gu.exportTypedArrayMethod)("indexOf",(function(e){return kl(Sl(this),e,arguments.length>1?arguments[1]:void 0)}));var Tl=Fe("iterator"),xl=r.Uint8Array,Al=ii.values,Ol=ii.keys,Pl=ii.entries,Il=gu.aTypedArray,jl=gu.exportTypedArrayMethod,Cl=xl&&xl.prototype[Tl],Rl=!!Cl&&("values"==Cl.name||null==Cl.name),Ll=function(){return Al.call(Il(this))};jl("entries",(function(){return Pl.call(Il(this))})),jl("keys",(function(){return Ol.call(Il(this))})),jl("values",Ll,!Rl),jl(Tl,Ll,!Rl);var Nl=gu.aTypedArray,Ml=[].join;(0,gu.exportTypedArrayMethod)("join",(function(e){return Ml.apply(Nl(this),arguments)}));var Ul=Math.min,Dl=[].lastIndexOf,Fl=!!Dl&&1/[1].lastIndexOf(1,-0)<0,Bl=ze("lastIndexOf"),ql=Ke("indexOf",{ACCESSORS:!0,1:0}),Hl=Fl||!Bl||!ql?function(e){if(Fl)return Dl.apply(this,arguments)||0;var t=g(this),n=se(t.length),r=n-1;for(arguments.length>1&&(r=Ul(r,oe(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in t&&t[r]===e)return r||0;return-1}:Dl,Vl=gu.aTypedArray;(0,gu.exportTypedArrayMethod)("lastIndexOf",(function(e){return Hl.apply(Vl(this),arguments)}));var Wl=We.map,zl=gu.aTypedArray,Yl=gu.aTypedArrayConstructor;(0,gu.exportTypedArrayMethod)("map",(function(e){return Wl(zl(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(Yl(ji(e,e.constructor)))(t)}))}));var $l=function(e){return function(t,n,r,i){Ie(n);var o=Ce(t),a=p(o),s=se(o.length),c=e?s-1:0,u=e?-1:1;if(r<2)for(;;){if(c in a){i=a[c],c+=u;break}if(c+=u,e?c<0:s<=c)throw TypeError("Reduce of empty array with no initial value")}for(;e?c>=0:s>c;c+=u)c in a&&(i=n(i,a[c],c,o));return i}},Gl={left:$l(!1),right:$l(!0)},Kl=Gl.left,Xl=gu.aTypedArray;(0,gu.exportTypedArrayMethod)("reduce",(function(e){return Kl(Xl(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}));var Jl=Gl.right,Ql=gu.aTypedArray;(0,gu.exportTypedArrayMethod)("reduceRight",(function(e){return Jl(Ql(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}));var Zl=gu.aTypedArray,ef=gu.exportTypedArrayMethod,tf=Math.floor;ef("reverse",(function(){for(var e,t=Zl(this).length,n=tf(t/2),r=0;r1?arguments[1]:void 0,1),n=this.length,r=Ce(e),i=se(r.length),o=0;if(i+t>n)throw RangeError("Wrong length");for(;oi;)a[i]=n[i++];return a}),i((function(){new Int8Array(1).slice()})));var sf=We.some,cf=gu.aTypedArray;(0,gu.exportTypedArrayMethod)("some",(function(e){return sf(cf(this),e,arguments.length>1?arguments[1]:void 0)}));var uf=gu.aTypedArray,lf=[].sort;(0,gu.exportTypedArrayMethod)("sort",(function(e){return lf.call(uf(this),e)}));var ff=gu.aTypedArray;(0,gu.exportTypedArrayMethod)("subarray",(function(e,t){var n=ff(this),r=n.length,i=le(e,r);return new(ji(n,n.constructor))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,se((void 0===t?r:le(t,r))-i))}));var hf=r.Int8Array,pf=gu.aTypedArray,df=gu.exportTypedArrayMethod,gf=[].toLocaleString,vf=[].slice,mf=!!hf&&i((function(){gf.call(new hf(1))}));df("toLocaleString",(function(){return gf.apply(mf?vf.call(pf(this)):pf(this),arguments)}),i((function(){return[1,2].toLocaleString()!=new hf([1,2]).toLocaleString()}))||!i((function(){hf.prototype.toLocaleString.call([1,2])})));var yf=gu.exportTypedArrayMethod,bf=r.Uint8Array,wf=bf&&bf.prototype||{},_f=[].toString,Ef=[].join;i((function(){_f.call({})}))&&(_f=function(){return Ef.call(this)});var kf=wf.toString!=_f;function Sf(e,t){return void 0===t&&(t=0),"string"!=typeof e||0===t||e.length<=t?e:e.substr(0,t)+"..."}function Tf(e,t){if(!Array.isArray(e))return"";for(var n=[],r=0;r"}return e.event_id||""}function Rf(e){var t=Pf();if(!("console"in t))return e();var n=t.console,r={};["debug","info","warn","error","log","assert"].forEach((function(e){e in t.console&&n[e].__sentry_original__&&(r[e]=n[e],n[e]=n[e].__sentry_original__)}));var i=e();return Object.keys(r).forEach((function(e){n[e]=r[e]})),i}function Lf(e,t,n){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].value=e.exception.values[0].value||t||"",e.exception.values[0].type=e.exception.values[0].type||n||"Error"}function Nf(e,t){void 0===t&&(t={});try{e.exception.values[0].mechanism=e.exception.values[0].mechanism||{},Object.keys(t).forEach((function(n){e.exception.values[0].mechanism[n]=t[n]}))}catch(e){}}function Mf(e){try{for(var t=e,n=[],r=0,i=0,o=" > ".length,a=void 0;t&&r++<5&&!("html"===(a=Uf(t))||r>1&&i+n.length*o+a.length>=80);)n.push(a),i+=a.length,t=t.parentNode;return n.reverse().join(" > ")}catch(e){return""}}function Uf(e){var t,n,r,i,o,a=e,s=[];if(!a||!a.tagName)return"";if(s.push(a.tagName.toLowerCase()),a.id&&s.push("#"+a.id),(t=a.className)&&zc(t))for(n=t.split(/\s+/),o=0;o"}catch(e){return""}}var zf=Pf(),Yf="Sentry Logger ",$f=function(){function e(){this._enabled=!1}return e.prototype.disable=function(){this._enabled=!1},e.prototype.enable=function(){this._enabled=!0},e.prototype.log=function(){for(var e=[],t=0;t9007199254740991)throw TypeError("Maximum allowed length exceeded");for(i=qe(c,r),o=0;ou-r+n;o--)delete c[o-1]}else if(n>r)for(o=u-r;o>l;o--)s=o+n-1,(a=o+r-1)in c?c[s]=c[a]:delete c[s];for(o=0;o"}try{o.currentTarget=Kc(i.currentTarget)?Mf(i.currentTarget):Object.prototype.toString.call(i.currentTarget)}catch(e){o.currentTarget=""}for(var r in"undefined"!=typeof CustomEvent&&Jc(e,CustomEvent)&&(o.detail=i.detail),i)Object.prototype.hasOwnProperty.call(i,r)&&(o[r]=i);return o}return e}function ph(e){return function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(e))}function dh(e,t,n){void 0===t&&(t=3),void 0===n&&(n=102400);var r=mh(e,t);return ph(r)>n?dh(e,t-1,n):r}function gh(e,t){return"domain"===t&&e&&"object"===Ka(e)&&e._events?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":"undefined"!=typeof global&&e===global?"[Global]":"undefined"!=typeof window&&e===window?"[Window]":"undefined"!=typeof document&&e===document?"[Document]":$c(n=e)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n?"[SyntheticEvent]":"number"==typeof e&&e!=e?"[NaN]":void 0===e?"[undefined]":"function"==typeof e?"[Function: "+Wf(e)+"]":e;var n}function vh(e,t,n,r){if(void 0===n&&(n=1/0),void 0===r&&(r=new lh),0===n)return function(e){var t=Object.prototype.toString.call(e);if("string"==typeof e)return e;if("[object Object]"===t)return"[Object]";if("[object Array]"===t)return"[Array]";var n=gh(e);return Yc(n)?n:t}(t);if(null!=t&&"function"==typeof t.toJSON)return t.toJSON();var i=gh(t,e);if(Yc(i))return i;var o=hh(t),a=Array.isArray(t)?[]:{};if(r.memoize(t))return"[Circular ~]";for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(a[s]=vh(s,o[s],n-1,r));return r.unmemoize(t),a}function mh(e,t){try{return JSON.parse(JSON.stringify(e,(function(e,n){return vh(e,n,t)})))}catch(e){return"**non-serializable**"}}function yh(e,t){void 0===t&&(t=40);var n=Object.keys(hh(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Sf(n[0],t);for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length?i:Sf(i,t)}return""}Pe({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}});var bh=We.filter,wh=Ht("filter"),_h=Ke("filter");Pe({target:"Array",proto:!0,forced:!wh||!_h},{filter:function(e){return bh(this,e,arguments.length>1?arguments[1]:void 0)}});var Eh,kh=!!vs&&i((function(){vs.prototype.finally.call({then:function(){}},(function(){}))}));Pe({target:"Promise",proto:!0,real:!0,forced:kh},{finally:function(e){var t=ji(this,ne("Promise")),n="function"==typeof e;return this.then(n?function(n){return tc(t,e()).then((function(){return n}))}:e,n?function(n){return tc(t,e()).then((function(){throw n}))}:e)}}),"function"!=typeof vs||vs.prototype.finally||Z(vs.prototype,"finally",ne("Promise").prototype.finally),function(e){e.PENDING="PENDING",e.RESOLVED="RESOLVED",e.REJECTED="REJECTED"}(Eh||(Eh={}));var Sh=function(){function e(e){var t=this;this._state=Eh.PENDING,this._handlers=[],this._resolve=function(e){t._setResult(Eh.RESOLVED,e)},this._reject=function(e){t._setResult(Eh.REJECTED,e)},this._setResult=function(e,n){t._state===Eh.PENDING&&(Xc(n)?n.then(t._resolve,t._reject):(t._state=e,t._value=n,t._executeHandlers()))},this._attachHandler=function(e){t._handlers=t._handlers.concat(e),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==Eh.PENDING){var e=t._handlers.slice();t._handlers=[],e.forEach((function(e){e.done||(t._state===Eh.RESOLVED&&e.onfulfilled&&e.onfulfilled(t._value),t._state===Eh.REJECTED&&e.onrejected&&e.onrejected(t._value),e.done=!0)}))}};try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}return e.prototype.toString=function(){return"[object SyncPromise]"},e.resolve=function(t){return new e((function(e){e(t)}))},e.reject=function(t){return new e((function(e,n){n(t)}))},e.all=function(t){return new e((function(n,r){if(Array.isArray(t))if(0!==t.length){var i=t.length,o=[];t.forEach((function(t,a){e.resolve(t).then((function(e){o[a]=e,0===(i-=1)&&n(o)})).then(null,r)}))}else n([]);else r(new TypeError("Promise.all requires an array as input."))}))},e.prototype.then=function(t,n){var r=this;return new e((function(e,i){r._attachHandler({done:!1,onfulfilled:function(n){if(t)try{return void e(t(n))}catch(e){return void i(e)}else e(n)},onrejected:function(t){if(n)try{return void e(n(t))}catch(e){return void i(e)}else i(t)}})}))},e.prototype.catch=function(e){return this.then((function(e){return e}),e)},e.prototype.finally=function(t){var n=this;return new e((function(e,r){var i,o;return n.then((function(e){o=!1,i=e,t&&t()}),(function(e){o=!0,i=e,t&&t()})).then((function(){o?r(i):e(i)}))}))},e}(),Th=function(){function e(e){this._limit=e,this._buffer=[]}return e.prototype.isReady=function(){return void 0===this._limit||this.length()0&&n(!1)}),e);Sh.all(t._buffer).then((function(){clearTimeout(r),n(!0)})).then(null,(function(){n(!0)}))}))},e}();function xh(){if(!("fetch"in Pf()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function Ah(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Oh(){if(!xh())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(e){return!1}}var Ph,Ih=Pf(),jh={},Ch={};function Rh(e){if(!Ch[e])switch(Ch[e]=!0,e){case"console":!function(){if(!("console"in Ih))return;["debug","info","warn","error","log","assert"].forEach((function(e){e in Ih.console&&fh(Ih.console,e,(function(t){return function(){for(var n=[],r=0;r2?t[2]:void 0;if(r){var i=Ph,o=String(r);Ph=o,Nh("history",{from:i,to:o})}return e.apply(this,t)}}Ih.onpopstate=function(){for(var t=[],n=0;n=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(jh[e]||[]),o=i.next();!o.done;o=i.next()){var a=o.value;try{a(t)}catch(t){Gf.error("Error while triggering instrumentation handler.\nType: "+e+"\nName: "+Wf(a)+"\nError: "+t)}}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}function Mh(e){return void 0===e&&(e=[]),"Request"in Ih&&Jc(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function Uh(e){return void 0===e&&(e=[]),"string"==typeof e[0]?e[0]:"Request"in Ih&&Jc(e[0],Request)?e[0].url:String(e[0])}var Dh,Fh,Bh=0;function qh(e,t,n){return void 0===n&&(n=!1),function(r){Dh=void 0,r&&Fh!==r&&(Fh=r,Bh&&clearTimeout(Bh),n?Bh=setTimeout((function(){t({event:r,name:e})})):t({event:r,name:e}))}}function Hh(e){return function(t){var n;try{n=t.target}catch(e){return}var r=n&&n.tagName;r&&("INPUT"===r||"TEXTAREA"===r||n.isContentEditable)&&(Dh||qh("input",e)(t),clearTimeout(Dh),Dh=setTimeout((function(){Dh=void 0}),1e3))}}var Vh=null;var Wh=null;var zh=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w\.-]+)(?::(\d+))?\/(.+)/,Yh=function(){function e(e){"string"==typeof e?this._fromString(e):this._fromComponents(e),this._validate()}return e.prototype.toString=function(e){void 0===e&&(e=!1);var t=this,n=t.host,r=t.path,i=t.pass,o=t.port,a=t.projectId;return t.protocol+"://"+t.user+(e&&i?":"+i:"")+"@"+n+(o?":"+o:"")+"/"+(r?r+"/":r)+a},e.prototype._fromString=function(e){var t=zh.exec(e);if(!t)throw new qc("Invalid Dsn");var n=Lc(t.slice(1),6),r=n[0],i=n[1],o=n[2],a=void 0===o?"":o,s=n[3],c=n[4],u=void 0===c?"":c,l="",f=n[5],h=f.split("/");h.length>1&&(l=h.slice(0,-1).join("/"),f=h.pop()),this._fromComponents({host:s,pass:a,path:l,projectId:f,port:u,protocol:r,user:i})},e.prototype._fromComponents=function(e){this.protocol=e.protocol,this.user=e.user,this.pass=e.pass||"",this.host=e.host,this.port=e.port||"",this.path=e.path||"",this.projectId=e.projectId},e.prototype._validate=function(){var e=this;if(["protocol","user","host","projectId"].forEach((function(t){if(!e[t])throw new qc("Invalid Dsn")})),"http"!==this.protocol&&"https"!==this.protocol)throw new qc("Invalid Dsn");if(this.port&&isNaN(parseInt(this.port,10)))throw new qc("Invalid Dsn")},e}(),$h=function(){function e(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._context={}}return e.prototype.addScopeListener=function(e){this._scopeListeners.push(e)},e.prototype.addEventProcessor=function(e){return this._eventProcessors.push(e),this},e.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,setTimeout((function(){e._scopeListeners.forEach((function(t){t(e)})),e._notifyingListeners=!1})))},e.prototype._notifyEventProcessors=function(e,t,n,r){var i=this;return void 0===r&&(r=0),new Sh((function(o,a){var s=e[r];if(null===t||"function"!=typeof s)o(t);else{var c=s(Rc({},t),n);Xc(c)?c.then((function(t){return i._notifyEventProcessors(e,t,n,r+1).then(o)})).then(null,a):i._notifyEventProcessors(e,c,n,r+1).then(o).then(null,a)}}))},e.prototype.setUser=function(e){return this._user=e||{},this._notifyScopeListeners(),this},e.prototype.setTags=function(e){return this._tags=Rc({},this._tags,e),this._notifyScopeListeners(),this},e.prototype.setTag=function(e,t){var n;return this._tags=Rc({},this._tags,((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setExtras=function(e){return this._extra=Rc({},this._extra,e),this._notifyScopeListeners(),this},e.prototype.setExtra=function(e,t){var n;return this._extra=Rc({},this._extra,((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setFingerprint=function(e){return this._fingerprint=e,this._notifyScopeListeners(),this},e.prototype.setLevel=function(e){return this._level=e,this._notifyScopeListeners(),this},e.prototype.setTransaction=function(e){return this._transaction=e,this._span&&(this._span.transaction=e),this._notifyScopeListeners(),this},e.prototype.setContext=function(e,t){var n;return this._context=Rc({},this._context,((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setSpan=function(e){return this._span=e,this._notifyScopeListeners(),this},e.prototype.getSpan=function(){return this._span},e.clone=function(t){var n=new e;return t&&(n._breadcrumbs=Nc(t._breadcrumbs),n._tags=Rc({},t._tags),n._extra=Rc({},t._extra),n._context=Rc({},t._context),n._user=t._user,n._level=t._level,n._span=t._span,n._transaction=t._transaction,n._fingerprint=t._fingerprint,n._eventProcessors=Nc(t._eventProcessors)),n},e.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._context={},this._level=void 0,this._transaction=void 0,this._fingerprint=void 0,this._span=void 0,this._notifyScopeListeners(),this},e.prototype.addBreadcrumb=function(e,t){var n=Rc({timestamp:Hf()},e);return this._breadcrumbs=void 0!==t&&t>=0?Nc(this._breadcrumbs,[n]).slice(-t):Nc(this._breadcrumbs,[n]),this._notifyScopeListeners(),this},e.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},e.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},e.prototype.applyToEvent=function(e,t){return this._extra&&Object.keys(this._extra).length&&(e.extra=Rc({},this._extra,e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=Rc({},this._tags,e.tags)),this._user&&Object.keys(this._user).length&&(e.user=Rc({},this._user,e.user)),this._context&&Object.keys(this._context).length&&(e.contexts=Rc({},this._context,e.contexts)),this._level&&(e.level=this._level),this._transaction&&(e.transaction=this._transaction),this._span&&(e.contexts=Rc({trace:this._span.getTraceContext()},e.contexts)),this._applyFingerprint(e),e.breadcrumbs=Nc(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,this._notifyEventProcessors(Nc(Gh(),this._eventProcessors),e,t)},e}();function Gh(){var e=Pf();return e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.globalEventProcessors=e.__SENTRY__.globalEventProcessors||[],e.__SENTRY__.globalEventProcessors}function Kh(e){Gh().push(e)}var Xh=function(){function e(e,t,n){void 0===t&&(t=new $h),void 0===n&&(n=3),this._version=n,this._stack=[],this._stack.push({client:e,scope:t})}return e.prototype._invokeClient=function(e){for(var t,n=[],r=1;r0?e[e.length-1].scope:void 0,n=$h.clone(t);return this.getStack().push({client:this.getClient(),scope:n}),n},e.prototype.popScope=function(){return void 0!==this.getStack().pop()},e.prototype.withScope=function(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}},e.prototype.getClient=function(){return this.getStackTop().client},e.prototype.getScope=function(){return this.getStackTop().scope},e.prototype.getStack=function(){return this._stack},e.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},e.prototype.captureException=function(e,t){var n=this._lastEventId=If(),r=t;if(!t){var i=void 0;try{throw new Error("Sentry syntheticException")}catch(e){i=e}r={originalException:e,syntheticException:i}}return this._invokeClient("captureException",e,Rc({},r,{event_id:n})),n},e.prototype.captureMessage=function(e,t,n){var r=this._lastEventId=If(),i=n;if(!n){var o=void 0;try{throw new Error(e)}catch(e){o=e}i={originalException:e,syntheticException:o}}return this._invokeClient("captureMessage",e,t,Rc({},i,{event_id:r})),r},e.prototype.captureEvent=function(e,t){var n=this._lastEventId=If();return this._invokeClient("captureEvent",e,Rc({},t,{event_id:n})),n},e.prototype.lastEventId=function(){return this._lastEventId},e.prototype.addBreadcrumb=function(e,t){var n=this.getStackTop();if(n.scope&&n.client){var r=n.client.getOptions&&n.client.getOptions()||{},i=r.beforeBreadcrumb,o=void 0===i?null:i,a=r.maxBreadcrumbs,s=void 0===a?100:a;if(!(s<=0)){var c=Hf(),u=Rc({timestamp:c},e),l=o?Rf((function(){return o(u,t)})):u;null!==l&&n.scope.addBreadcrumb(l,Math.min(s,100))}}},e.prototype.setUser=function(e){var t=this.getStackTop();t.scope&&t.scope.setUser(e)},e.prototype.setTags=function(e){var t=this.getStackTop();t.scope&&t.scope.setTags(e)},e.prototype.setExtras=function(e){var t=this.getStackTop();t.scope&&t.scope.setExtras(e)},e.prototype.setTag=function(e,t){var n=this.getStackTop();n.scope&&n.scope.setTag(e,t)},e.prototype.setExtra=function(e,t){var n=this.getStackTop();n.scope&&n.scope.setExtra(e,t)},e.prototype.setContext=function(e,t){var n=this.getStackTop();n.scope&&n.scope.setContext(e,t)},e.prototype.configureScope=function(e){var t=this.getStackTop();t.scope&&t.client&&e(t.scope)},e.prototype.run=function(e){var t=Qh(this);try{e(this)}finally{Qh(t)}},e.prototype.getIntegration=function(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return Gf.warn("Cannot retrieve integration "+e.id+" from the current Hub"),null}},e.prototype.startSpan=function(e,t){return void 0===t&&(t=!1),this._callExtensionMethod("startSpan",e,t)},e.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},e.prototype._callExtensionMethod=function(e){for(var t=[],n=1;n=e&&n({interval:i,ready:!1})):n({interval:i,ready:!0})}),1)}))},e.prototype._getBackend=function(){return this._backend},e.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},e.prototype._prepareEvent=function(e,t,n){var r=this,i=this.getOptions(),o=i.environment,a=i.release,s=i.dist,c=i.maxValueLength,u=void 0===c?250:c,l=i.normalizeDepth,f=void 0===l?3:l,h=Rc({},e);void 0===h.environment&&void 0!==o&&(h.environment=o),void 0===h.release&&void 0!==a&&(h.release=a),void 0===h.dist&&void 0!==s&&(h.dist=s),h.message&&(h.message=Sf(h.message,u));var p=h.exception&&h.exception.values&&h.exception.values[0];p&&p.value&&(p.value=Sf(p.value,u));var d=h.request;d&&d.url&&(d.url=Sf(d.url,u)),void 0===h.event_id&&(h.event_id=n&&n.event_id?n.event_id:If()),this._addIntegrations(h.sdk);var g=Sh.resolve(h);return t&&(g=t.applyToEvent(h,n)),g.then((function(e){return"number"==typeof f&&f>0?r._normalizeEvent(e,f):e}))},e.prototype._normalizeEvent=function(e,t){return e?Rc({},e,e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((function(e){return Rc({},e,e.data&&{data:mh(e.data,t)})}))},e.user&&{user:mh(e.user,t)},e.contexts&&{contexts:mh(e.contexts,t)},e.extra&&{extra:mh(e.extra,t)}):null},e.prototype._addIntegrations=function(e){var t=Object.keys(this._integrations);e&&t.length>0&&(e.integrations=t)},e.prototype._processEvent=function(e,t,n){var r=this,i=this.getOptions(),o=i.beforeSend,a=i.sampleRate;return this._isEnabled()?"number"==typeof a&&Math.random()>a?Sh.reject("This event has been sampled, will not send event."):new Sh((function(i,a){r._prepareEvent(e,n,t).then((function(e){if(null!==e){var n=e;if(t&&t.data&&!0===t.data.__sentry__||!o)return r._getBackend().sendEvent(n),void i(n);var s=o(e,t);if(void 0===s)Gf.error("`beforeSend` method has to return `null` or a valid event.");else if(Xc(s))r._handleAsyncBeforeSend(s,i,a);else{if(null===(n=s))return Gf.log("`beforeSend` returned `null`, will not send event."),void i(null);r._getBackend().sendEvent(n),i(n)}}else a("An event processor returned null, will not send event.")})).then(null,(function(e){r.captureException(e,{data:{__sentry__:!0},originalException:e}),a("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+e)}))})):Sh.reject("SDK not enabled, will not send event.")},e.prototype._handleAsyncBeforeSend=function(e,t,n){var r=this;e.then((function(e){null!==e?(r._getBackend().sendEvent(e),t(e)):n("`beforeSend` returned `null`, will not send event.")})).then(null,(function(e){n("beforeSend rejected with "+e)}))},e}(),fp=function(){function e(){}return e.prototype.sendEvent=function(e){return Sh.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:Cc.Skipped})},e.prototype.close=function(e){return Sh.resolve(!0)},e}(),hp=function(){function e(e){this._options=e,this._options.dsn||Gf.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return e.prototype._setupTransport=function(){return new fp},e.prototype.eventFromException=function(e,t){throw new qc("Backend has to implement `eventFromException` method")},e.prototype.eventFromMessage=function(e,t,n){throw new qc("Backend has to implement `eventFromMessage` method")},e.prototype.sendEvent=function(e){this._transport.sendEvent(e).then(null,(function(e){Gf.error("Error while sending event: "+e)}))},e.prototype.getTransport=function(){return this._transport},e}();var pp=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){up=Function.prototype.toString,Function.prototype.toString=function(){for(var e=[],t=0;t1?arguments[1]:void 0)}});var mp=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],yp=function(){function e(t){void 0===t&&(t={}),this._options=t,this.name=e.id}return e.prototype.setupOnce=function(){Kh((function(t){var n=Zh();if(!n)return t;var r=n.getIntegration(e);if(r){var i=n.getClient(),o=i?i.getOptions():{},a=r._mergeOptions(o);if(r._shouldDropEvent(t,a))return null}return t}))},e.prototype._shouldDropEvent=function(e,t){return this._isSentryError(e,t)?(Gf.warn("Event dropped due to being internal Sentry Error.\nEvent: "+Cf(e)),!0):this._isIgnoredError(e,t)?(Gf.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+Cf(e)),!0):this._isBlacklistedUrl(e,t)?(Gf.warn("Event dropped due to being matched by `blacklistUrls` option.\nEvent: "+Cf(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0):!this._isWhitelistedUrl(e,t)&&(Gf.warn("Event dropped due to not being matched by `whitelistUrls` option.\nEvent: "+Cf(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0)},e.prototype._isSentryError=function(e,t){if(void 0===t&&(t={}),!t.ignoreInternal)return!1;try{return e&&e.exception&&e.exception.values&&e.exception.values[0]&&"SentryError"===e.exception.values[0].type||!1}catch(e){return!1}},e.prototype._isIgnoredError=function(e,t){return void 0===t&&(t={}),!(!t.ignoreErrors||!t.ignoreErrors.length)&&this._getPossibleEventMessages(e).some((function(e){return t.ignoreErrors.some((function(t){return xf(e,t)}))}))},e.prototype._isBlacklistedUrl=function(e,t){if(void 0===t&&(t={}),!t.blacklistUrls||!t.blacklistUrls.length)return!1;var n=this._getEventFilterUrl(e);return!!n&&t.blacklistUrls.some((function(e){return xf(n,e)}))},e.prototype._isWhitelistedUrl=function(e,t){if(void 0===t&&(t={}),!t.whitelistUrls||!t.whitelistUrls.length)return!0;var n=this._getEventFilterUrl(e);return!n||t.whitelistUrls.some((function(e){return xf(n,e)}))},e.prototype._mergeOptions=function(e){return void 0===e&&(e={}),{blacklistUrls:Nc(this._options.blacklistUrls||[],e.blacklistUrls||[]),ignoreErrors:Nc(this._options.ignoreErrors||[],e.ignoreErrors||[],mp),ignoreInternal:void 0===this._options.ignoreInternal||this._options.ignoreInternal,whitelistUrls:Nc(this._options.whitelistUrls||[],e.whitelistUrls||[])}},e.prototype._getPossibleEventMessages=function(e){if(e.message)return[e.message];if(e.exception)try{var t=e.exception.values&&e.exception.values[0]||{},n=t.type,r=void 0===n?"":n,i=t.value,o=void 0===i?"":i;return[""+o,r+": "+o]}catch(t){return Gf.error("Cannot extract message for event "+Cf(e)),[]}return[]},e.prototype._getEventFilterUrl=function(e){try{if(e.stacktrace){var t=e.stacktrace.frames;return t&&t[t.length-1].filename||null}if(e.exception){var n=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return n&&n[n.length-1].filename||null}return null}catch(t){return Gf.error("Cannot extract url for event "+Cf(e)),null}},e.id="InboundFilters",e}(),bp=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack||[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,wp=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,_p=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Ep=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,kp=/\((\S*)(?::(\d+))(?::(\d+))\)/;function Sp(e){var t=null,n=e&&e.framesToPop;try{if(t=function(e){if(!e||!e.stacktrace)return null;for(var t,n=e.stacktrace,r=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,i=/ line (\d+), column (\d+)\s*(?:in (?:]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i,o=n.split("\n"),a=[],s=0;s eval")>-1&&(t=Ep.exec(n[3]))?(n[1]=n[1]||"eval",n[3]=t[1],n[4]=t[2],n[5]=""):0!==a||n[5]||void 0===e.columnNumber||(i[0].column=e.columnNumber+1),r={url:n[3],func:n[1]||"?",args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}!r.func&&r.line&&(r.func="?"),i.push(r)}if(!i.length)return null;return{message:xp(e),name:e.name,stack:i}}(e))return Tp(t,n)}catch(e){}return{message:xp(e),name:e&&e.name,stack:[],failed:!0}}function Tp(e,t){try{return Rc({},e,{stack:e.stack.slice(t)})}catch(t){return e}}function xp(e){var t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function Ap(e){var t=Pp(e.stack),n={type:e.name,value:e.message};return t&&t.length&&(n.stacktrace={frames:t}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function Op(e){return{exception:{values:[Ap(e)]}}}function Pp(e){if(!e||!e.length)return[];var t=e,n=t[0].func||"",r=t[t.length-1].func||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(t=t.slice(1)),-1!==r.indexOf("sentryWrapped")&&(t=t.slice(0,-1)),t.map((function(e){return{colno:null===e.column?void 0:e.column,filename:e.url||t[0].url,function:e.func||"?",in_app:!0,lineno:null===e.line?void 0:e.line}})).slice(0,50).reverse()}function Ip(e,t,n){var r,i;if(void 0===n&&(n={}),Vc(e)&&e.error)return r=Op(Sp(e=e.error));if(Wc(e)||(i=e,"[object DOMException]"===Object.prototype.toString.call(i))){var o=e,a=o.name||(Wc(o)?"DOMError":"DOMException"),s=o.message?a+": "+o.message:a;return Lf(r=jp(s,t,n),s),r}return Hc(e)?r=Op(Sp(e)):$c(e)||Gc(e)?(Nf(r=function(e,t,n){var r={exception:{values:[{type:Gc(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+yh(e)}]},extra:{__serialized__:dh(e)}};if(t){var i=Pp(Sp(t).stack);r.stacktrace={frames:i}}return r}(e,t,n.rejection),{synthetic:!0}),r):(Lf(r=jp(e,t,n),""+e,void 0),Nf(r,{synthetic:!0}),r)}function jp(e,t,n){void 0===n&&(n={});var r={message:e};if(n.attachStacktrace&&t){var i=Pp(Sp(t).stack);r.stacktrace={frames:i}}return r}var Cp=function(){function e(e){this.options=e,this._buffer=new Th(30),this.url=new ap(this.options.dsn).getStoreEndpointWithUrlEncodedAuth()}return e.prototype.sendEvent=function(e){throw new qc("Transport Class has to implement `sendEvent` method")},e.prototype.close=function(e){return this._buffer.drain(e)},e}(),Rp=Pf(),Lp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._disabledUntil=new Date(Date.now()),t}return Ic(t,e),t.prototype.sendEvent=function(e){var t=this;if(new Date(Date.now())0}function Bp(){Dp+=1,setTimeout((function(){Dp-=1}))}function qp(e,t,n){if(void 0===t&&(t={}),"function"!=typeof e)return e;try{if(e.__sentry__)return e;if(e.__sentry_wrapped__)return e.__sentry_wrapped__}catch(t){return e}var r=function(){var r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var i=r.map((function(e){return qp(e,t)}));return e.handleEvent?e.handleEvent.apply(this,i):e.apply(this,i)}catch(e){throw Bp(),op((function(n){n.addEventProcessor((function(e){var n=Rc({},e);return t.mechanism&&(Lf(n,void 0,void 0),Nf(n,t.mechanism)),n.extra=Rc({},n.extra,{arguments:r}),n})),ip(e)})),e}};try{for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch(e){}e.prototype=e.prototype||{},r.prototype=e.prototype,Object.defineProperty(e,"__sentry_wrapped__",{enumerable:!1,value:r}),Object.defineProperties(r,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:e}});try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:function(){return e.name}})}catch(e){}return r}var Hp=function(){function e(t){this.name=e.id,this._onErrorHandlerInstalled=!1,this._onUnhandledRejectionHandlerInstalled=!1,this._options=Rc({onerror:!0,onunhandledrejection:!0},t)}return e.prototype.setupOnce=function(){Error.stackTraceLimit=50,this._options.onerror&&(Gf.log("Global Handler attached: onerror"),this._installGlobalOnErrorHandler()),this._options.onunhandledrejection&&(Gf.log("Global Handler attached: onunhandledrejection"),this._installGlobalOnUnhandledRejectionHandler())},e.prototype._installGlobalOnErrorHandler=function(){var t=this;this._onErrorHandlerInstalled||(Lh({callback:function(n){var r=n.error,i=Zh(),o=i.getIntegration(e),a=r&&!0===r.__sentry_own_request__;if(o&&!Fp()&&!a){var s=i.getClient(),c=Yc(r)?t._eventFromIncompleteOnError(n.msg,n.url,n.line,n.column):t._enhanceEventWithInitialFrame(Ip(r,void 0,{attachStacktrace:s&&s.getOptions().attachStacktrace,rejection:!1}),n.url,n.line,n.column);Nf(c,{handled:!1,type:"onerror"}),i.captureEvent(c,{originalException:r})}},type:"error"}),this._onErrorHandlerInstalled=!0)},e.prototype._installGlobalOnUnhandledRejectionHandler=function(){var t=this;this._onUnhandledRejectionHandlerInstalled||(Lh({callback:function(n){var r=n;try{"reason"in n?r=n.reason:"detail"in n&&"reason"in n.detail&&(r=n.detail.reason)}catch(e){}var i=Zh(),o=i.getIntegration(e),a=r&&!0===r.__sentry_own_request__;if(!o||Fp()||a)return!0;var s=i.getClient(),c=Yc(r)?t._eventFromIncompleteRejection(r):Ip(r,void 0,{attachStacktrace:s&&s.getOptions().attachStacktrace,rejection:!0});c.level=jc.Error,Nf(c,{handled:!1,type:"onunhandledrejection"}),i.captureEvent(c,{originalException:r})},type:"unhandledrejection"}),this._onUnhandledRejectionHandlerInstalled=!0)},e.prototype._eventFromIncompleteOnError=function(e,t,n,r){var i,o=Vc(e)?e.message:e;if(zc(o)){var a=o.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);a&&(i=a[1],o=a[2])}var s={exception:{values:[{type:i||"Error",value:o}]}};return this._enhanceEventWithInitialFrame(s,t,n,r)},e.prototype._eventFromIncompleteRejection=function(e){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+e}]}}},e.prototype._enhanceEventWithInitialFrame=function(e,t,n,r){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].stacktrace=e.exception.values[0].stacktrace||{},e.exception.values[0].stacktrace.frames=e.exception.values[0].stacktrace.frames||[];var i=isNaN(parseInt(r,10))?void 0:r,o=isNaN(parseInt(n,10))?void 0:n,a=zc(t)&&t.length>0?t:function(){try{return document.location.href}catch(e){return""}}();return 0===e.exception.values[0].stacktrace.frames.length&&e.exception.values[0].stacktrace.frames.push({colno:i,filename:a,function:"?",in_app:!0,lineno:o}),e},e.id="GlobalHandlers",e}(),Vp=function(){function e(){this._ignoreOnError=0,this.name=e.id}return e.prototype._wrapTimeFunction=function(e){return function(){for(var t=[],n=0;n"}0!==t.length&&Zh().addBreadcrumb({category:"ui."+e.name,message:t},{event:e.event,name:e.name})},e.prototype._xhrBreadcrumb=function(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;Zh().addBreadcrumb({category:"xhr",data:e.xhr.__sentry_xhr__,type:"http"},{xhr:e.xhr})}else this._options.sentry&&e.xhr.__sentry_own_request__&&zp(e.args[0])},e.prototype._fetchBreadcrumb=function(e){if(e.endTimestamp){var t=Zh().getClient(),n=t&&t.getDsn();if(this._options.sentry&&n){var r=new ap(n).getStoreEndpoint();if(r&&-1!==e.fetchData.url.indexOf(r)&&"POST"===e.fetchData.method&&e.args[1]&&e.args[1].body)return void zp(e.args[1].body)}e.error?Zh().addBreadcrumb({category:"fetch",data:Rc({},e.fetchData,{status_code:e.response.status}),level:jc.Error,type:"http"},{data:e.error,input:e.args}):Zh().addBreadcrumb({category:"fetch",data:Rc({},e.fetchData,{status_code:e.response.status}),type:"http"},{input:e.args,response:e.response})}},e.prototype._historyBreadcrumb=function(e){var t=Pf(),n=e.from,r=e.to,i=jf(t.location.href),o=jf(n),a=jf(r);o.path||(o=i),i.protocol===a.protocol&&i.host===a.host&&(r=a.relative),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),Zh().addBreadcrumb({category:"navigation",data:{from:n,to:r}})},e.prototype.setupOnce=function(){var e=this;this._options.console&&Lh({callback:function(){for(var t=[],n=0;n=this._limit)return n;var r=Ap(Sp(e[t]));return this._walkErrorTree(e[t],t,Nc([r],n))},e.id="LinkedErrors",e}(),$p=Pf(),Gp=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){Kh((function(t){if(Zh().getIntegration(e)){if(!$p.navigator||!$p.location)return t;var n=t.request||{};return n.url=n.url||$p.location.href,n.headers=n.headers||{},n.headers["User-Agent"]=$p.navigator.userAgent,Rc({},t,{request:n})}return t}))},e.id="UserAgent",e}(),Kp=[new yp,new pp,new Vp,new Wp,new Hp,new Yp,new Gp];function Xp(e){if(void 0===e&&(e={}),void 0===e.defaultIntegrations&&(e.defaultIntegrations=Kp),void 0===e.release){var t=Pf();t.SENTRY_RELEASE&&t.SENTRY_RELEASE.id&&(e.release=t.SENTRY_RELEASE.id)}!function(e,t){!0===t.debug&&Gf.enable();var n=Zh(),r=new e(t);n.bindClient(r)}(Up,e)}var Jp=We.find,Qp=!0,Zp=Ke("find");"find"in[]&&Array(1).find((function(){Qp=!1})),Pe({target:"Array",proto:!0,forced:Qp||!Zp},{find:function(e){return Jp(this,e,arguments.length>1?arguments[1]:void 0)}}),jt("find");var ed="[\t\n\v\f\r                 \u2028\u2029\ufeff]",td=RegExp("^"+ed+ed+"*"),nd=RegExp(ed+ed+"*$"),rd=function(e){return function(t){var n=String(d(t));return 1&e&&(n=n.replace(td,"")),2&e&&(n=n.replace(nd,"")),n}},id={start:rd(1),end:rd(2),trim:rd(3)},od=me.f,ad=T.f,sd=O.f,cd=id.trim,ud=r.Number,ld=ud.prototype,fd="Number"==f(Ot(ld)),hd=function(e){var t,n,r,i,o,a,s,c,u=m(e,!1);if("string"==typeof u&&u.length>2)if(43===(t=(u=cd(u)).charCodeAt(0))||45===t){if(88===(n=u.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(u.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+u}for(a=(o=u.slice(2)).length,s=0;si)return NaN;return parseInt(o,r)}return+u};if(Ae("Number",!ud(" 0o1")||!ud("0b1")||ud("+0x1"))){for(var pd,dd=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof dd&&(fd?i((function(){ld.valueOf.call(n)})):"Number"!=f(n))?Gt(new ud(hd(t)),n,dd):hd(t)},gd=o?od(ud):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),vd=0;gd.length>vd;vd++)b(ud,pd=gd[vd])&&!b(dd,pd)&&sd(dd,pd,ad(ud,pd));dd.prototype=ld,ld.constructor=dd,Z(r,"Number",dd)}Pe({target:"Number",stat:!0},{isNaN:function(e){return e!=e}});var md=c.f,yd=function(e){return function(t){for(var n,r=g(t),i=_t(r),a=i.length,s=0,c=[];a>s;)n=i[s++],o&&!md.call(r,n)||c.push(e?[n,r[n]]:r[n]);return c}},bd={entries:yd(!0),values:yd(!1)}.entries;function wd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _d(e,t){for(var n=0;n0?iv:rv)(e)},av=Math.min,sv=function(e){return e>0?av(ov(e),9007199254740991):0},cv=Math.max,uv=Math.min,lv=function(e,t){var n=ov(e);return n<0?cv(n+t,0):uv(n,t)},fv=function(e){return function(t,n,r){var i,o=pg(t),a=sv(o.length),s=lv(r,a);if(e&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},hv={includes:fv(!0),indexOf:fv(!1)},pv=hv.indexOf,dv=function(e,t){var n,r=pg(e),i=0,o=[];for(n in r)!mg(Vg,n)&&mg(r,n)&&o.push(n);for(;t.length>i;)mg(r,n=t[i++])&&(~pv(o,n)||o.push(n));return o},gv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],vv=gv.concat("length","prototype"),mv={f:Object.getOwnPropertyNames||function(e){return dv(e,vv)}},yv={f:Object.getOwnPropertySymbols},bv=nv("Reflect","ownKeys")||function(e){var t=mv.f(Sg(e)),n=yv.f;return n?t.concat(n(e)):t},wv=function(e,t){for(var n=bv(t),r=xg.f,i=kg.f,o=0;o=74)&&(Xg=qv.match(/Chrome\/(\d+)/))&&(Jg=Xg[1]);var zv=Jg&&+Jg,Yv=Dv("species"),$v=function(e){return zv>=51||!ng((function(){var t=[];return(t.constructor={})[Yv]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Gv=Dv("isConcatSpreadable"),Kv=zv>=51||!ng((function(){var e=[];return e[Gv]=!1,e.concat()[0]!==e})),Xv=$v("concat"),Jv=function(e){if(!dg(e))return!1;var t=e[Gv];return void 0!==t?!!t:Iv(e)};Pv({target:"Array",proto:!0,forced:!Kv||!Xv},{concat:function(e){var t,n,r,i,o,a=jv(this),s=Bv(a,0),c=0;for(t=-1,r=arguments.length;t9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n=9007199254740991)throw TypeError("Maximum allowed index exceeded");Cv(s,c++,o)}return s.length=c,s}});var Qv=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},Zv=function(e,t,n){if(Qv(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}},em=[].push,tm=function(e){var t=1==e,n=2==e,r=3==e,i=4==e,o=6==e,a=5==e||o;return function(s,c,u,l){for(var f,h,p=jv(s),d=fg(p),g=Zv(c,u,3),v=sv(d.length),m=0,y=l||Bv,b=t?y(s,v):n?y(s,0):void 0;v>m;m++)if((a||m in d)&&(h=g(f=d[m],m,p),e))if(t)b[m]=h;else if(h)switch(e){case 3:return!0;case 5:return f;case 6:return m;case 2:em.call(b,f)}else if(i)return!1;return o?-1:r||i?i:b}},nm={forEach:tm(0),map:tm(1),filter:tm(2),some:tm(3),every:tm(4),find:tm(5),findIndex:tm(6)},rm=Object.defineProperty,im={},om=function(e){throw e},am=function(e,t){if(mg(im,e))return im[e];t||(t={});var n=[][e],r=!!mg(t,"ACCESSORS")&&t.ACCESSORS,i=mg(t,0)?t[0]:om,o=mg(t,1)?t[1]:void 0;return im[e]=!!n&&!ng((function(){if(r&&!rg)return!0;var e={length:-1};r?rm(e,1,{enumerable:!0,get:om}):e[1]=1,n.call(e,i,o)}))},sm=nm.filter,cm=$v("filter"),um=am("filter");Pv({target:"Array",proto:!0,forced:!cm||!um},{filter:function(e){return sm(this,e,arguments.length>1?arguments[1]:void 0)}});var lm,fm=Object.keys||function(e){return dv(e,gv)},hm=rg?Object.defineProperties:function(e,t){Sg(e);for(var n,r=fm(t),i=r.length,o=0;i>o;)xg.f(e,n=r[o++],t[n]);return e},pm=nv("document","documentElement"),dm=Hg("IE_PROTO"),gm=function(){},vm=function(e){return"