Plugin Directory

Changeset 2573438

Timestamp:
07/27/2021 08:22:57 PM (3 years ago)
Author:
mattwiebe
Message:

Update Editing Toolkit Plugin to 3.11821

Location:
full-site-editing/trunk
Files:
1 deleted
8 edited

Legend:

Unmodified
Added
Removed
  • full-site-editing/trunk/dotcom-fse/helpers.php

    r2556375 r2573438  
    132132        return false;
    133133    }
     134
    134135    // Use un-normalized theme slug because get_theme requires the full string.
    135     $theme = wp_get_theme( get_theme_slug() );
    136     return ! $theme->errors() && in_array( 'full-site-editing', $theme->tags, true );
     136    $theme      = wp_get_theme( $slug );
     137    $theme_slug = normalize_theme_slug( $slug );
     138    return ! $theme->errors() && in_array( $theme_slug, get_supported_themes(), true );
     139}
     140
     141/**
     142 * Hardcoded list of themes we support.
     143 * Once upon a time, we relied on the `full-site-editing` tag in themes,
     144 * but that conflicted with Core FSE and this project has been deprecated
     145 * in favour of Core.
     146 *
     147 * @return array List of supported themes.
     148 */
     149function get_supported_themes() {
     150    return array(
     151        'alves',
     152        'exford',
     153        'hever',
     154        'maywood',
     155        'morden',
     156        'shawburn',
     157        'stow',
     158        'varia',
     159    );
    137160}
    138161
  • full-site-editing/trunk/error-reporting/dist/error-reporting.asset.php

    r2573425 r2573438  
    1 <?php return array('dependencies' => array('wp-api-fetch', 'wp-polyfill'), 'version' => 'f280667d4464ada6d8ecb46bd38cecc3');
     1<?php return array('dependencies' => array('wp-api-fetch', 'wp-polyfill'), 'version' => '');
  • full-site-editing/trunk/error-reporting/dist/error-reporting.js

    r2573425 r2573438  
    1 !function(){"use strict";var t={487:function(t,e,n){n.d(e,{u:function(){return p}});var r=n(334),i=n(9504),o=n(2226),a=n(9798),s=n(1988),u=n(6149),c=n(6144),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype.eventFromException=function(t,e){return(0,s.dr)(this._options,t,e)},e.prototype.eventFromMessage=function(t,e,n){return void 0===e&&(e=o.z.Info),(0,s.aB)(this._options,t,e,n)},e.prototype._setupTransport=function(){if(!this._options.dsn)return t.prototype._setupTransport.call(this);var e=(0,r.pi)((0,r.pi)({},this._options.transportOptions),{dsn:this._options.dsn,tunnel:this._options.tunnel,_metadata:this._options._metadata});return this._options.transport?new this._options.transport(e):(0,a.Ak)()?new u.V(e):new c.w(e)},e}(i.N)},2314:function(t,e,n){n.d(e,{R:function(){return l}});var r=n(334),i=n(1476),o=n(9849),a=n(3699),s=n(8536),u=n(487),c=n(2634),p=n(8356),l=function(t){function e(e){void 0===e&&(e={});return e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:i.J}],version:i.J},t.call(this,u.u,e)||this}return(0,r.ZT)(e,t),e.prototype.showReportDialog=function(t){void 0===t&&(t={}),(0,a.Rf)().document&&(this._isEnabled()?(0,c.BS)((0,r.pi)((0,r.pi)({},t),{dsn:t.dsn||this.getDsn()})):s.k.error("Trying to call showReportDialog with Sentry Client disabled"))},e.prototype._prepareEvent=function(e,n,r){return e.platform=e.platform||"javascript",t.prototype._prepareEvent.call(this,e,n,r)},e.prototype._sendEvent=function(e){var n=this.getIntegration(p.O);n&&n.addSentryBreadcrumb(e),t.prototype._sendEvent.call(this,e)},e}(o.W)},1988:function(t,e,n){n.d(e,{dr:function(){return p},aB:function(){return l},ME:function(){return f}});var r=n(334),i=n(2226),o=n(3699),a=n(7946),s=n(1757),u=n(5311),c=n(3320);function p(t,e,n){var r=f(e,n&&n.syntheticException||void 0,{attachStacktrace:t.attachStacktrace});return(0,o.EG)(r,{handled:!0,type:"generic"}),r.level=i.z.Error,n&&n.event_id&&(r.event_id=n.event_id),a.c.resolve(r)}function l(t,e,n,r){void 0===n&&(n=i.z.Info);var o=d(e,r&&r.syntheticException||void 0,{attachStacktrace:t.attachStacktrace});return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),a.c.resolve(o)}function f(t,e,n){var i;if(void 0===n&&(n={}),(0,s.VW)(t)&&t.error)return t=t.error,i=(0,u.Vf)((0,c._)(t));if((0,s.TX)(t)||(0,s.fm)(t)){var a=t,p=a.name||((0,s.TX)(a)?"DOMError":"DOMException"),l=a.message?p+": "+a.message:p;return i=d(l,e,n),(0,o.Db)(i,l),"code"in a&&(i.tags=(0,r.pi)((0,r.pi)({},i.tags),{"DOMException.code":""+a.code})),i}if((0,s.VZ)(t))return i=(0,u.Vf)((0,c._)(t));if((0,s.PO)(t)||(0,s.cO)(t)){var f=t;return i=(0,u.QI)(f,e,n.rejection),(0,o.EG)(i,{synthetic:!0}),i}return i=d(t,e,n),(0,o.Db)(i,""+t,void 0),(0,o.EG)(i,{synthetic:!0}),i}function d(t,e,n){void 0===n&&(n={});var r={message:t};if(n.attachStacktrace&&e){var i=(0,c._)(e),o=(0,u.LU)(i.stack);r.stacktrace={frames:o}}return r}},2634:function(t,e,n){n.d(e,{Wz:function(){return c},re:function(){return l},BS:function(){return f}});var r=n(334),i=n(4678),o=n(4911),a=n(3699),s=n(8536),u=0;function c(){return u>0}function p(){u+=1,setTimeout((function(){u-=1}))}function l(t,e,n){if(void 0===e&&(e={}),"function"!=typeof t)return t;try{if(t.__sentry__)return t;if(t.__sentry_wrapped__)return t.__sentry_wrapped__}catch(u){return t}var o=function(){var o=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var s=o.map((function(t){return l(t,e)}));return t.handleEvent?t.handleEvent.apply(this,s):t.apply(this,s)}catch(u){throw p(),(0,i.$e)((function(t){t.addEventProcessor((function(t){var n=(0,r.pi)({},t);return e.mechanism&&((0,a.Db)(n,void 0,void 0),(0,a.EG)(n,e.mechanism)),n.extra=(0,r.pi)((0,r.pi)({},n.extra),{arguments:o}),n})),(0,i.Tb)(u)})),u}};try{for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(o[s]=t[s])}catch(c){}t.prototype=t.prototype||{},o.prototype=t.prototype,Object.defineProperty(t,"__sentry_wrapped__",{enumerable:!1,value:o}),Object.defineProperties(o,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:t}});try{Object.getOwnPropertyDescriptor(o,"name").configurable&&Object.defineProperty(o,"name",{get:function(){return t.name}})}catch(c){}return o}function f(t){if(void 0===t&&(t={}),t.eventId)if(t.dsn){var e=document.createElement("script");e.async=!0,e.src=new o.b(t.dsn).getReportDialogEndpoint(t),t.onLoad&&(e.onload=t.onLoad),(document.head||document.body).appendChild(e)}else s.k.error("Missing dsn option in showReportDialog call");else s.k.error("Missing eventId option in showReportDialog call")}},8356:function(t,e,n){n.d(e,{O:function(){return p}});var r=n(334),i=n(8585),o=n(2226),a=n(3699),s=n(4005),u=n(9660),c=n(4194),p=function(){function t(e){this.name=t.id,this._options=(0,r.pi)({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},e)}return t.prototype.addSentryBreadcrumb=function(t){this._options.sentry&&(0,i.Gd)().addBreadcrumb({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:(0,a.jH)(t)},{event:t})},t.prototype.setupOnce=function(){var t=this;this._options.console&&(0,s.o)({callback:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t._consoleBreadcrumb.apply(t,(0,r.fl)(e))},type:"console"}),this._options.dom&&(0,s.o)({callback:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t._domBreadcrumb.apply(t,(0,r.fl)(e))},type:"dom"}),this._options.xhr&&(0,s.o)({callback:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t._xhrBreadcrumb.apply(t,(0,r.fl)(e))},type:"xhr"}),this._options.fetch&&(0,s.o)({callback:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t._fetchBreadcrumb.apply(t,(0,r.fl)(e))},type:"fetch"}),this._options.history&&(0,s.o)({callback:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t._historyBreadcrumb.apply(t,(0,r.fl)(e))},type:"history"})},t.prototype._consoleBreadcrumb=function(t){var e={category:"console",data:{arguments:t.args,logger:"console"},level:o.z.fromString(t.level),message:(0,u.nK)(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;e.message="Assertion failed: "+((0,u.nK)(t.args.slice(1)," ")||"console.assert"),e.data.arguments=t.args.slice(1)}(0,i.Gd)().addBreadcrumb(e,{input:t.args,level:t.level})},t.prototype._domBreadcrumb=function(t){var e,n="object"==typeof this._options.dom?this._options.dom.serializeAttribute:void 0;"string"==typeof n&&(n=[n]);try{e=t.event.target?(0,c.R)(t.event.target,n):(0,c.R)(t.event,n)}catch(r){e="<unknown>"}0!==e.length&&(0,i.Gd)().addBreadcrumb({category:"ui."+t.name,message:e},{event:t.event,name:t.name,global:t.global})},t.prototype._xhrBreadcrumb=function(t){if(t.endTimestamp){if(t.xhr.__sentry_own_request__)return;var e=t.xhr.__sentry_xhr__||{},n=e.method,r=e.url,o=e.status_code,a=e.body;(0,i.Gd)().addBreadcrumb({category:"xhr",data:{method:n,url:r,status_code:o},type:"http"},{xhr:t.xhr,input:a})}else;},t.prototype._fetchBreadcrumb=function(t){t.endTimestamp&&(t.fetchData.url.match(/sentry_key/)&&"POST"===t.fetchData.method||(t.error?(0,i.Gd)().addBreadcrumb({category:"fetch",data:t.fetchData,level:o.z.Error,type:"http"},{data:t.error,input:t.args}):(0,i.Gd)().addBreadcrumb({category:"fetch",data:(0,r.pi)((0,r.pi)({},t.fetchData),{status_code:t.response.status}),type:"http"},{input:t.args,response:t.response})))},t.prototype._historyBreadcrumb=function(t){var e=(0,a.Rf)(),n=t.from,r=t.to,o=(0,a.en)(e.location.href),s=(0,a.en)(n),u=(0,a.en)(r);s.path||(s=o),o.protocol===u.protocol&&o.host===u.host&&(r=u.relative),o.protocol===s.protocol&&o.host===s.host&&(n=s.relative),(0,i.Gd)().addBreadcrumb({category:"navigation",data:{from:n,to:r}})},t.id="Breadcrumbs",t}()},184:function(t,e,n){n.d(e,{I:function(){return r}});var r=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(e,n){e((function(e){var r=n().getIntegration(t);if(r){try{if(r._shouldDropEvent(e,r._previousEvent))return null}catch(i){return r._previousEvent=e}return r._previousEvent=e}return e}))},t.prototype._shouldDropEvent=function(t,e){return!!e&&(!!this._isSameMessageEvent(t,e)||!!this._isSameExceptionEvent(t,e))},t.prototype._isSameMessageEvent=function(t,e){var n=t.message,r=e.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!this._isSameFingerprint(t,e)&&!!this._isSameStacktrace(t,e))))},t.prototype._getFramesFromEvent=function(t){var e=t.exception;if(e)try{return e.values[0].stacktrace.frames}catch(n){return}else if(t.stacktrace)return t.stacktrace.frames},t.prototype._isSameStacktrace=function(t,e){var n=this._getFramesFromEvent(t),r=this._getFramesFromEvent(e);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(n=n,(r=r).length!==n.length)return!1;for(var i=0;i<r.length;i++){var o=r[i],a=n[i];if(o.filename!==a.filename||o.lineno!==a.lineno||o.colno!==a.colno||o.function!==a.function)return!1}return!0},t.prototype._getExceptionFromEvent=function(t){return t.exception&&t.exception.values&&t.exception.values[0]},t.prototype._isSameExceptionEvent=function(t,e){var n=this._getExceptionFromEvent(e),r=this._getExceptionFromEvent(t);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!this._isSameFingerprint(t,e)&&!!this._isSameStacktrace(t,e)))},t.prototype._isSameFingerprint=function(t,e){var n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return!(n.join("")!==r.join(""))}catch(i){return!1}},t.id="Dedupe",t}()},1228:function(t,e,n){n.d(e,{d:function(){return f}});var r=n(334),i=n(8585),o=n(2226),a=n(8536),s=n(4005),u=n(1757),c=n(3699),p=n(1988),l=n(2634),f=function(){function t(e){this.name=t.id,this._onErrorHandlerInstalled=!1,this._onUnhandledRejectionHandlerInstalled=!1,this._options=(0,r.pi)({onerror:!0,onunhandledrejection:!0},e)}return t.prototype.setupOnce=function(){Error.stackTraceLimit=50,this._options.onerror&&(a.k.log("Global Handler attached: onerror"),this._installGlobalOnErrorHandler()),this._options.onunhandledrejection&&(a.k.log("Global Handler attached: onunhandledrejection"),this._installGlobalOnUnhandledRejectionHandler())},t.prototype._installGlobalOnErrorHandler=function(){var e=this;this._onErrorHandlerInstalled||((0,s.o)({callback:function(n){var r=n.error,o=(0,i.Gd)(),a=o.getIntegration(t),s=r&&!0===r.__sentry_own_request__;if(a&&!(0,l.Wz)()&&!s){var f=o.getClient(),d=void 0===r&&(0,u.HD)(n.msg)?e._eventFromIncompleteOnError(n.msg,n.url,n.line,n.column):e._enhanceEventWithInitialFrame((0,p.ME)(r||n.msg,void 0,{attachStacktrace:f&&f.getOptions().attachStacktrace,rejection:!1}),n.url,n.line,n.column);(0,c.EG)(d,{handled:!1,type:"onerror"}),o.captureEvent(d,{originalException:r})}},type:"error"}),this._onErrorHandlerInstalled=!0)},t.prototype._installGlobalOnUnhandledRejectionHandler=function(){var e=this;this._onUnhandledRejectionHandlerInstalled||((0,s.o)({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(v){}var a=(0,i.Gd)(),s=a.getIntegration(t),f=r&&!0===r.__sentry_own_request__;if(!s||(0,l.Wz)()||f)return!0;var d=a.getClient(),h=(0,u.pt)(r)?e._eventFromRejectionWithPrimitive(r):(0,p.ME)(r,void 0,{attachStacktrace:d&&d.getOptions().attachStacktrace,rejection:!0});h.level=o.z.Error,(0,c.EG)(h,{handled:!1,type:"onunhandledrejection"}),a.captureEvent(h,{originalException:r})},type:"unhandledrejection"}),this._onUnhandledRejectionHandlerInstalled=!0)},t.prototype._eventFromIncompleteOnError=function(t,e,n,r){var i,o=(0,u.VW)(t)?t.message:t,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,e,n,r)},t.prototype._eventFromRejectionWithPrimitive=function(t){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(t)}]}}},t.prototype._enhanceEventWithInitialFrame=function(t,e,n,r){t.exception=t.exception||{},t.exception.values=t.exception.values||[],t.exception.values[0]=t.exception.values[0]||{},t.exception.values[0].stacktrace=t.exception.values[0].stacktrace||{},t.exception.values[0].stacktrace.frames=t.exception.values[0].stacktrace.frames||[];var i=isNaN(parseInt(r,10))?void 0:r,o=isNaN(parseInt(n,10))?void 0:n,a=(0,u.HD)(e)&&e.length>0?e:(0,c.l4)();return 0===t.exception.values[0].stacktrace.frames.length&&t.exception.values[0].stacktrace.frames.push({colno:i,filename:a,function:"?",in_app:!0,lineno:o}),t},t.id="GlobalHandlers",t}()},3440:function(t,e,n){n.d(e,{i:function(){return c}});var r=n(334),i=n(1684),o=n(8585),a=n(1757),s=n(5311),u=n(3320),c=function(){function t(e){void 0===e&&(e={}),this.name=t.id,this._key=e.key||"cause",this._limit=e.limit||5}return t.prototype.setupOnce=function(){(0,i.c)((function(e,n){var r=(0,o.Gd)().getIntegration(t);return r?r._handler(e,n):e}))},t.prototype._handler=function(t,e){if(!(t.exception&&t.exception.values&&e&&(0,a.V9)(e.originalException,Error)))return t;var n=this._walkErrorTree(e.originalException,this._key);return t.exception.values=(0,r.fl)(n,t.exception.values),t},t.prototype._walkErrorTree=function(t,e,n){if(void 0===n&&(n=[]),!(0,a.V9)(t[e],Error)||n.length+1>=this._limit)return n;var i=(0,u._)(t[e]),o=(0,s.__)(i);return this._walkErrorTree(t[e],e,(0,r.fl)([o],n))},t.id="LinkedErrors",t}()},3399:function(t,e,n){n.d(e,{p:function(){return c}});var r=n(334),i=n(3699),o=n(1995),a=n(9038),s=n(2634),u=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],c=function(){function t(e){this.name=t.id,this._options=(0,r.pi)({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},e)}return t.prototype.setupOnce=function(){var t=(0,i.Rf)();(this._options.setTimeout&&(0,o.hl)(t,"setTimeout",this._wrapTimeFunction.bind(this)),this._options.setInterval&&(0,o.hl)(t,"setInterval",this._wrapTimeFunction.bind(this)),this._options.requestAnimationFrame&&(0,o.hl)(t,"requestAnimationFrame",this._wrapRAF.bind(this)),this._options.XMLHttpRequest&&"XMLHttpRequest"in t&&(0,o.hl)(XMLHttpRequest.prototype,"send",this._wrapXHR.bind(this)),this._options.eventTarget)&&(Array.isArray(this._options.eventTarget)?this._options.eventTarget:u).forEach(this._wrapEventTarget.bind(this))},t.prototype._wrapTimeFunction=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e[0];return e[0]=(0,s.re)(r,{mechanism:{data:{function:(0,a.$)(t)},handled:!0,type:"instrument"}}),t.apply(this,e)}},t.prototype._wrapRAF=function(t){return function(e){return t.call(this,(0,s.re)(e,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,a.$)(t)},handled:!0,type:"instrument"}}))}},t.prototype._wrapEventTarget=function(t){var e=(0,i.Rf)(),n=e[t]&&e[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,o.hl)(n,"addEventListener",(function(e){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=(0,s.re)(r.handleEvent.bind(r),{mechanism:{data:{function:"handleEvent",handler:(0,a.$)(r),target:t},handled:!0,type:"instrument"}}))}catch(o){}return e.call(this,n,(0,s.re)(r,{mechanism:{data:{function:"addEventListener",handler:(0,a.$)(r),target:t},handled:!0,type:"instrument"}}),i)}})),(0,o.hl)(n,"removeEventListener",(function(t){return function(e,n,r){var i,o=n;try{var a=null===(i=o)||void 0===i?void 0:i.__sentry_wrapped__;a&&t.call(this,e,a,r)}catch(s){}return t.call(this,e,o,r)}})))},t.prototype._wrapXHR=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=this,i=["onload","onerror","onprogress","onreadystatechange"];return i.forEach((function(t){t in r&&"function"==typeof r[t]&&(0,o.hl)(r,t,(function(e){var n={mechanism:{data:{function:t,handler:(0,a.$)(e)},handled:!0,type:"instrument"}};return e.__sentry_original__&&(n.mechanism.data.handler=(0,a.$)(e.__sentry_original__)),(0,s.re)(e,n)}))})),t.apply(this,e)}},t.id="TryCatch",t}()},9992:function(t,e,n){n.d(e,{Z:function(){return s}});var r=n(334),i=n(1684),o=n(8585),a=(0,n(3699).Rf)(),s=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){(0,i.c)((function(e){var n,i,s;if((0,o.Gd)().getIntegration(t)){if(!a.navigator&&!a.location&&!a.document)return e;var u=(null===(n=e.request)||void 0===n?void 0:n.url)||(null===(i=a.location)||void 0===i?void 0:i.href),c=(a.document||{}).referrer,p=(a.navigator||{}).userAgent,l=(0,r.pi)((0,r.pi)((0,r.pi)({},null===(s=e.request)||void 0===s?void 0:s.headers),c&&{Referer:c}),p&&{"User-Agent":p}),f=(0,r.pi)((0,r.pi)({},u&&{url:u}),{headers:l});return(0,r.pi)((0,r.pi)({},e),{request:f})}return e}))},t.id="UserAgent",t}()},5311:function(t,e,n){n.d(e,{__:function(){return a},QI:function(){return s},Vf:function(){return u},LU:function(){return c}});var r=n(1757),i=n(1995),o=n(3320);function a(t){var e=c(t.stack),n={type:t.name,value:t.message};return e&&e.length&&(n.stacktrace={frames:e}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function s(t,e,n){var a={exception:{values:[{type:(0,r.cO)(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+(0,i.zf)(t)}]},extra:{__serialized__:(0,i.Qy)(t)}};if(e){var s=c((0,o._)(e).stack);a.stacktrace={frames:s}}return a}function u(t){return{exception:{values:[a(t)]}}}function c(t){if(!t||!t.length)return[];var e=t,n=e[0].func||"",r=e[e.length-1].func||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(e=e.slice(1)),-1!==r.indexOf("sentryWrapped")&&(e=e.slice(0,-1)),e.slice(0,50).map((function(t){return{colno:null===t.column?void 0:t.column,filename:t.url||e[0].url,function:t.func||"?",in_app:!0,lineno:null===t.line?void 0:t.line}})).reverse()}},2456:function(t,e,n){n.d(e,{S1:function(){return g},yl:function(){return b}});var r=n(1061),i=n(6286),o=n(6853),a=n(8585),s=n(3699),u=n(7946),c=n(8536),p=n(4005),l=n(2314),f=n(3399),d=n(8356),h=n(1228),v=n(3440),m=n(184),_=n(9992),y=[new r.Q,new i.c,new f.p,new d.O,new h.d,new v.i,new m.I,new _.Z];function g(t){if(void 0===t&&(t={}),void 0===t.defaultIntegrations&&(t.defaultIntegrations=y),void 0===t.release){var e=(0,s.Rf)();e.SENTRY_RELEASE&&e.SENTRY_RELEASE.id&&(t.release=e.SENTRY_RELEASE.id)}void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),(0,o.M)(l.R,t),t.autoSessionTracking&&function(){if(void 0===(0,s.Rf)().document)return void c.k.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");var t=(0,a.Gd)();if("function"!=typeof t.startSession||"function"!=typeof t.captureSession)return;t.startSession({ignoreDuration:!0}),t.captureSession(),(0,p.o)({callback:function(e){var n=e.from,r=e.to;void 0!==n&&n!==r&&(t.startSession({ignoreDuration:!0}),t.captureSession())},type:"history"})}()}function b(t){var e=(0,a.Gd)().getClient();return e?e.flush(t):u.c.reject(!1)}},3320:function(t,e,n){n.d(e,{_:function(){return l}});var r=n(334),i="?",o=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,a=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,s=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,u=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,c=/\((\S*)(?::(\d+))(?::(\d+))\)/,p=/Minified React error #\d+;/i;function l(t){var e=null,n=0;t&&("number"==typeof t.framesToPop?n=t.framesToPop:p.test(t.message)&&(n=1));try{if(e=function(t){if(!t||!t.stacktrace)return null;for(var e,n=t.stacktrace,r=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,o=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,a=n.split("\n"),s=[],u=0;u<a.length;u+=2){var c=null;(e=r.exec(a[u]))?c={url:e[2],func:e[3],args:[],line:+e[1],column:null}:(e=o.exec(a[u]))&&(c={url:e[6],func:e[3]||e[4],args:e[5]?e[5].split(","):[],line:+e[1],column:+e[2]}),c&&(!c.func&&c.line&&(c.func=i),s.push(c))}if(!s.length)return null;return{message:d(t),name:t.name,stack:s}}(t))return f(e,n)}catch(r){}try{if(e=function(t){if(!t||!t.stack)return null;for(var e,n,r,p=[],l=t.stack.split("\n"),f=0;f<l.length;++f){if(n=o.exec(l[f])){var h=n[2]&&0===n[2].indexOf("native");n[2]&&0===n[2].indexOf("eval")&&(e=c.exec(n[2]))&&(n[2]=e[1],n[3]=e[2],n[4]=e[3]);var v=n[2]&&0===n[2].indexOf("address at ")?n[2].substr("address at ".length):n[2],m=n[1]||i,_=-1!==m.indexOf("safari-extension"),y=-1!==m.indexOf("safari-web-extension");(_||y)&&(m=-1!==m.indexOf("@")?m.split("@")[0]:i,v=_?"safari-extension:"+v:"safari-web-extension:"+v),r={url:v,func:m,args:h?[n[2]]:[],line:n[3]?+n[3]:null,column:n[4]?+n[4]:null}}else if(n=s.exec(l[f]))r={url:n[2],func:n[1]||i,args:[],line:+n[3],column:n[4]?+n[4]:null};else{if(!(n=a.exec(l[f])))continue;n[3]&&n[3].indexOf(" > eval")>-1&&(e=u.exec(n[3]))?(n[1]=n[1]||"eval",n[3]=e[1],n[4]=e[2],n[5]=""):0!==f||n[5]||void 0===t.columnNumber||(p[0].column=t.columnNumber+1),r={url:n[3],func:n[1]||i,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),p.push(r)}if(!p.length)return null;return{message:d(t),name:t.name,stack:p}}(t))return f(e,n)}catch(r){}return{message:d(t),name:t&&t.name,stack:[],failed:!0}}function f(t,e){try{return(0,r.pi)((0,r.pi)({},t),{stack:t.stack.slice(e)})}catch(n){return t}}function d(t){var e=t&&t.message;return e?e.error&&"string"==typeof e.error.message?e.error.message:e:"No error message"}},6526:function(t,e,n){n.d(e,{d:function(){return l}});var r=n(334),i=n(4911),o=n(4434),a=n(8963),s=n(4388),u=n(8536),c=n(3699),p={event:"error",transaction:"transaction",session:"session",attachment:"attachment"},l=function(){function t(t){this.options=t,this._buffer=new a.D(30),this._rateLimits={},this._api=new i.b(t.dsn,t._metadata,t.tunnel),this.url=this._api.getStoreEndpointWithUrlEncodedAuth()}return t.prototype.sendEvent=function(t){throw new s.b("Transport Class has to implement `sendEvent` method")},t.prototype.close=function(t){return this._buffer.drain(t)},t.prototype._handleResponse=function(t){var e=t.requestType,n=t.response,r=t.headers,i=t.resolve,a=t.reject,s=o.q.fromHttpCode(n.status);this._handleRateLimit(r)&&u.k.warn("Too many "+e+" requests, backing off until: "+this._disabledUntil(e)),s!==o.q.Success?a(n):i({status:s})},t.prototype._disabledUntil=function(t){var e=p[t];return this._rateLimits[e]||this._rateLimits.all},t.prototype._isRateLimited=function(t){return this._disabledUntil(t)>new Date(Date.now())},t.prototype._handleRateLimit=function(t){var e,n,i,o,a=Date.now(),s=t["x-sentry-rate-limits"],u=t["retry-after"];if(s){try{for(var p=(0,r.XA)(s.trim().split(",")),l=p.next();!l.done;l=p.next()){var f=l.value.split(":",2),d=parseInt(f[0],10),h=1e3*(isNaN(d)?60:d);try{for(var v=(i=void 0,(0,r.XA)(f[1].split(";"))),m=v.next();!m.done;m=v.next()){var _=m.value;this._rateLimits[_||"all"]=new Date(a+h)}}catch(y){i={error:y}}finally{try{m&&!m.done&&(o=v.return)&&o.call(v)}finally{if(i)throw i.error}}}}catch(g){e={error:g}}finally{try{l&&!l.done&&(n=p.return)&&n.call(p)}finally{if(e)throw e.error}}return!0}return!!u&&(this._rateLimits.all=new Date(a+(0,c.JY)(a,u)),!0)},t}()},6149:function(t,e,n){n.d(e,{V:function(){return c}});var r=n(334),i=n(6508),o=n(3699),a=n(9798),s=n(8536),u=n(7946);var c=function(t){function e(e,n){void 0===n&&(n=function(){var t,e,n=(0,o.Rf)();if((0,a.Du)(n.fetch))return n.fetch.bind(n);var r=n.document,i=n.fetch;if("function"==typeof(null===(t=r)||void 0===t?void 0:t.createElement))try{var u=r.createElement("iframe");u.hidden=!0,r.head.appendChild(u),(null===(e=u.contentWindow)||void 0===e?void 0:e.fetch)&&(i=u.contentWindow.fetch),r.head.removeChild(u)}catch(c){s.k.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",c)}return i.bind(n)}());var r=t.call(this,e)||this;return r._fetch=n,r}return(0,r.ZT)(e,t),e.prototype.sendEvent=function(t){return this._sendRequest((0,i.n)(t,this._api),t)},e.prototype.sendSession=function(t){return this._sendRequest((0,i.Q)(t,this._api),t)},e.prototype._sendRequest=function(t,e){var n=this;if(this._isRateLimited(t.type))return Promise.reject({event:e,type:t.type,reason:"Transport for "+t.type+" requests locked till "+this._disabledUntil(t.type)+" due to too many requests.",status:429});var r={body:t.body,method:"POST",referrerPolicy:(0,a.hv)()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(r,this.options.fetchParameters),void 0!==this.options.headers&&(r.headers=this.options.headers),this._buffer.add((function(){return new u.c((function(e,i){n._fetch(t.url,r).then((function(r){var o={"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")};n._handleResponse({requestType:t.type,response:r,headers:o,resolve:e,reject:i})})).catch(i)}))}))},e}(n(6526).d)},6144:function(t,e,n){n.d(e,{w:function(){return a}});var r=n(334),i=n(6508),o=n(7946),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype.sendEvent=function(t){return this._sendRequest((0,i.n)(t,this._api),t)},e.prototype.sendSession=function(t){return this._sendRequest((0,i.Q)(t,this._api),t)},e.prototype._sendRequest=function(t,e){var n=this;return this._isRateLimited(t.type)?Promise.reject({event:e,type:t.type,reason:"Transport for "+t.type+" requests locked till "+this._disabledUntil(t.type)+" due to too many requests.",status:429}):this._buffer.add((function(){return new o.c((function(e,r){var i=new XMLHttpRequest;for(var o in i.onreadystatechange=function(){if(4===i.readyState){var o={"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")};n._handleResponse({requestType:t.type,response:i,headers:o,resolve:e,reject:r})}},i.open("POST",t.url),n.options.headers)n.options.headers.hasOwnProperty(o)&&i.setRequestHeader(o,n.options.headers[o]);i.send(t.body)}))}))},e}(n(6526).d)},334:function(t,e,n){n.d(e,{ZT:function(){return i},pi:function(){return o},XA:function(){return a},fl:function(){return u}});
    2 /*! *****************************************************************************
    3 Copyright (c) Microsoft Corporation.
    4 
    5 Permission to use, copy, modify, and/or distribute this software for any
    6 purpose with or without fee is hereby granted.
    7 
    8 THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
    9 REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
    10 AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
    11 INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
    12 LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
    13 OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
    14 PERFORMANCE OF THIS SOFTWARE.
    15 ***************************************************************************** */
    16 var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function __(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function a(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function s(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function u(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(s(arguments[e]));return t}},4911:function(t,e,n){n.d(e,{b:function(){return o}});var r=n(3135),i=n(1995),o=function(){function t(t,e,n){void 0===e&&(e={}),this.dsn=t,this._dsnObject=new r.l(t),this.metadata=e,this._tunnel=n}return t.prototype.getDsn=function(){return this._dsnObject},t.prototype.forceEnvelope=function(){return!!this._tunnel},t.prototype.getBaseApiEndpoint=function(){var t=this.getDsn(),e=t.protocol?t.protocol+":":"",n=t.port?":"+t.port:"";return e+"//"+t.host+n+(t.path?"/"+t.path:"")+"/api/"},t.prototype.getStoreEndpoint=function(){return this._getIngestEndpoint("store")},t.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return this.getStoreEndpoint()+"?"+this._encodedAuth()},t.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return this.forceEnvelope()?this._tunnel:this._getEnvelopeEndpoint()+"?"+this._encodedAuth()},t.prototype.getStoreEndpointPath=function(){var t=this.getDsn();return(t.path?"/"+t.path:"")+"/api/"+t.projectId+"/store/"},t.prototype.getRequestHeaders=function(t,e){var n=this.getDsn(),r=["Sentry sentry_version=7"];return r.push("sentry_client="+t+"/"+e),r.push("sentry_key="+n.publicKey),n.pass&&r.push("sentry_secret="+n.pass),{"Content-Type":"application/json","X-Sentry-Auth":r.join(", ")}},t.prototype.getReportDialogEndpoint=function(t){void 0===t&&(t={});var e=this.getDsn(),n=this.getBaseApiEndpoint()+"embed/error-page/",r=[];for(var i in r.push("dsn="+e.toString()),t)if("dsn"!==i)if("user"===i){if(!t.user)continue;t.user.name&&r.push("name="+encodeURIComponent(t.user.name)),t.user.email&&r.push("email="+encodeURIComponent(t.user.email))}else r.push(encodeURIComponent(i)+"="+encodeURIComponent(t[i]));return r.length?n+"?"+r.join("&"):n},t.prototype._getEnvelopeEndpoint=function(){return this._getIngestEndpoint("envelope")},t.prototype._getIngestEndpoint=function(t){return this._tunnel?this._tunnel:""+this.getBaseApiEndpoint()+this.getDsn().projectId+"/"+t+"/"},t.prototype._encodedAuth=function(){var t={sentry_key:this.getDsn().publicKey,sentry_version:"7"};return(0,i._j)(t)},t}()},9504:function(t,e,n){n.d(e,{N:function(){return a}});var r=n(8536),i=n(4388),o=n(3926),a=function(){function t(t){this._options=t,this._options.dsn||r.k.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return t.prototype.eventFromException=function(t,e){throw new i.b("Backend has to implement `eventFromException` method")},t.prototype.eventFromMessage=function(t,e,n){throw new i.b("Backend has to implement `eventFromMessage` method")},t.prototype.sendEvent=function(t){this._transport.sendEvent(t).then(null,(function(t){r.k.error("Error while sending event: "+t)}))},t.prototype.sendSession=function(t){this._transport.sendSession?this._transport.sendSession(t).then(null,(function(t){r.k.error("Error while sending session: "+t)})):r.k.warn("Dropping session because custom transport doesn't implement sendSession")},t.prototype.getTransport=function(){return this._transport},t.prototype._setupTransport=function(){return new o.V},t}()},9849:function(t,e,n){n.d(e,{W:function(){return m}});var r=n(5733),i=n(1684),o=n(5971),a=n(3135),s=n(1757),u=n(8536),c=n(7946),p=n(3699),l=n(7790),f=n(1995),d=n(9660),h=n(4388),v=n(8889),m=function(){function t(t,e){this._integrations={},this._processing=0,this._backend=new t(e),this._options=e,e.dsn&&(this._dsn=new a.l(e.dsn))}return t.prototype.captureException=function(t,e,n){var r=this,i=e&&e.event_id;return this._process(this._getBackend().eventFromException(t,e).then((function(t){return r._captureEvent(t,e,n)})).then((function(t){i=t}))),i},t.prototype.captureMessage=function(t,e,n,r){var i=this,o=n&&n.event_id,a=(0,s.pt)(t)?this._getBackend().eventFromMessage(String(t),e,n):this._getBackend().eventFromException(t,n);return this._process(a.then((function(t){return i._captureEvent(t,n,r)})).then((function(t){o=t}))),o},t.prototype.captureEvent=function(t,e,n){var r=e&&e.event_id;return this._process(this._captureEvent(t,e,n).then((function(t){r=t}))),r},t.prototype.captureSession=function(t){this._isEnabled()?"string"!=typeof t.release?u.k.warn("Discarded session because of missing or non-string release"):(this._sendSession(t),t.update({init:!1})):u.k.warn("SDK not enabled, will not capture session.")},t.prototype.getDsn=function(){return this._dsn},t.prototype.getOptions=function(){return this._options},t.prototype.flush=function(t){var e=this;return this._isClientProcessing(t).then((function(n){return e._getBackend().getTransport().close(t).then((function(t){return n&&t}))}))},t.prototype.close=function(t){var e=this;return this.flush(t).then((function(t){return e.getOptions().enabled=!1,t}))},t.prototype.setupIntegrations=function(){this._isEnabled()&&(this._integrations=(0,v.q4)(this._options))},t.prototype.getIntegration=function(t){try{return this._integrations[t.id]||null}catch(e){return u.k.warn("Cannot retrieve integration "+t.id+" from the current Client"),null}},t.prototype._updateSessionFromEvent=function(t,e){var n,i,a=!1,s=!1,u=e.exception&&e.exception.values;if(u){s=!0;try{for(var c=(0,r.XA)(u),p=c.next();!p.done;p=c.next()){var l=p.value.mechanism;if(l&&!1===l.handled){a=!0;break}}}catch(d){n={error:d}}finally{try{p&&!p.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}}var f=t.status===o.$.Ok;(f&&0===t.errors||f&&a)&&(t.update((0,r.pi)((0,r.pi)({},a&&{status:o.$.Crashed}),{errors:t.errors||Number(s||a)})),this.captureSession(t))},t.prototype._sendSession=function(t){this._getBackend().sendSession(t)},t.prototype._isClientProcessing=function(t){var e=this;return new c.c((function(n){var r=0,i=setInterval((function(){0==e._processing?(clearInterval(i),n(!0)):(r+=1,t&&r>=t&&(clearInterval(i),n(!1)))}),1)}))},t.prototype._getBackend=function(){return this._backend},t.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},t.prototype._prepareEvent=function(t,e,n){var o=this,a=this.getOptions().normalizeDepth,s=void 0===a?3:a,u=(0,r.pi)((0,r.pi)({},t),{event_id:t.event_id||(n&&n.event_id?n.event_id:(0,p.DM)()),timestamp:t.timestamp||(0,l.yW)()});this._applyClientOptions(u),this._applyIntegrationsMetadata(u);var f=e;n&&n.captureContext&&(f=i.s.clone(f).update(n.captureContext));var d=c.c.resolve(u);return f&&(d=f.applyToEvent(u,n)),d.then((function(t){return"number"==typeof s&&s>0?o._normalizeEvent(t,s):t}))},t.prototype._normalizeEvent=function(t,e){if(!t)return null;var n=(0,r.pi)((0,r.pi)((0,r.pi)((0,r.pi)((0,r.pi)({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((function(t){return(0,r.pi)((0,r.pi)({},t),t.data&&{data:(0,f.Fv)(t.data,e)})}))}),t.user&&{user:(0,f.Fv)(t.user,e)}),t.contexts&&{contexts:(0,f.Fv)(t.contexts,e)}),t.extra&&{extra:(0,f.Fv)(t.extra,e)});return t.contexts&&t.contexts.trace&&(n.contexts.trace=t.contexts.trace),n},t.prototype._applyClientOptions=function(t){var e=this.getOptions(),n=e.environment,r=e.release,i=e.dist,o=e.maxValueLength,a=void 0===o?250:o;"environment"in t||(t.environment="environment"in e?n:"production"),void 0===t.release&&void 0!==r&&(t.release=r),void 0===t.dist&&void 0!==i&&(t.dist=i),t.message&&(t.message=(0,d.$G)(t.message,a));var s=t.exception&&t.exception.values&&t.exception.values[0];s&&s.value&&(s.value=(0,d.$G)(s.value,a));var u=t.request;u&&u.url&&(u.url=(0,d.$G)(u.url,a))},t.prototype._applyIntegrationsMetadata=function(t){var e=Object.keys(this._integrations);e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=(0,r.fl)(t.sdk.integrations||[],e))},t.prototype._sendEvent=function(t){this._getBackend().sendEvent(t)},t.prototype._captureEvent=function(t,e,n){return this._processEvent(t,e,n).then((function(t){return t.event_id}),(function(t){u.k.error(t)}))},t.prototype._processEvent=function(t,e,n){var r=this,i=this.getOptions(),o=i.beforeSend,a=i.sampleRate;if(!this._isEnabled())return c.c.reject(new h.b("SDK not enabled, will not capture event."));var s="transaction"===t.type;return!s&&"number"==typeof a&&Math.random()>a?c.c.reject(new h.b("Discarding event because it's not included in the random sample (sampling rate = "+a+")")):this._prepareEvent(t,n,e).then((function(t){if(null===t)throw new h.b("An event processor returned null, will not send event.");if(e&&e.data&&!0===e.data.__sentry__||s||!o)return t;var n=o(t,e);return r._ensureBeforeSendRv(n)})).then((function(t){if(null===t)throw new h.b("`beforeSend` returned `null`, will not send event.");var e=n&&n.getSession&&n.getSession();return!s&&e&&r._updateSessionFromEvent(e,t),r._sendEvent(t),t})).then(null,(function(t){if(t instanceof h.b)throw t;throw r.captureException(t,{data:{__sentry__:!0},originalException:t}),new h.b("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+t)}))},t.prototype._process=function(t){var e=this;this._processing+=1,t.then((function(t){return e._processing-=1,t}),(function(t){return e._processing-=1,t}))},t.prototype._ensureBeforeSendRv=function(t){var e="`beforeSend` method has to return `null` or a valid event.";if((0,s.J8)(t))return t.then((function(t){if(!(0,s.PO)(t)&&null!==t)throw new h.b(e);return t}),(function(t){throw new h.b("beforeSend rejected with "+t)}));if(!(0,s.PO)(t)&&null!==t)throw new h.b(e);return t},t}()},8889:function(t,e,n){n.d(e,{q4:function(){return c}});var r=n(5733),i=n(1684),o=n(8585),a=n(8536),s=[];function u(t){return t.reduce((function(t,e){return t.every((function(t){return e.name!==t.name}))&&t.push(e),t}),[])}function c(t){var e={};return function(t){var e=t.defaultIntegrations&&(0,r.fl)(t.defaultIntegrations)||[],n=t.integrations,i=(0,r.fl)(u(e));Array.isArray(n)?i=(0,r.fl)(i.filter((function(t){return n.every((function(e){return e.name!==t.name}))})),u(n)):"function"==typeof n&&(i=n(i),i=Array.isArray(i)?i:[i]);var o=i.map((function(t){return t.name})),a="Debug";return-1!==o.indexOf(a)&&i.push.apply(i,(0,r.fl)(i.splice(o.indexOf(a),1))),i}(t).forEach((function(t){e[t.name]=t,function(t){-1===s.indexOf(t.name)&&(t.setupOnce(i.c,o.Gd),s.push(t.name),a.k.log("Integration installed: "+t.name))}(t)})),e}},6286:function(t,e,n){var r;n.d(e,{c:function(){return i}});var i=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){r=Function.prototype.toString,Function.prototype.toString=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.__sentry_original__||this;return r.apply(n,t)}},t.id="FunctionToString",t}()},1061:function(t,e,n){n.d(e,{Q:function(){return p}});var r=n(5733),i=n(1684),o=n(8585),a=n(8536),s=n(3699),u=n(9660),c=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],p=function(){function t(e){void 0===e&&(e={}),this._options=e,this.name=t.id}return t.prototype.setupOnce=function(){(0,i.c)((function(e){var n=(0,o.Gd)();if(!n)return e;var r=n.getIntegration(t);if(r){var i=n.getClient(),a=i?i.getOptions():{},s="function"==typeof r._mergeOptions?r._mergeOptions(a):{};return"function"!=typeof r._shouldDropEvent?e:r._shouldDropEvent(e,s)?null:e}return e}))},t.prototype._shouldDropEvent=function(t,e){return this._isSentryError(t,e)?(a.k.warn("Event dropped due to being internal Sentry Error.\nEvent: "+(0,s.jH)(t)),!0):this._isIgnoredError(t,e)?(a.k.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+(0,s.jH)(t)),!0):this._isDeniedUrl(t,e)?(a.k.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+(0,s.jH)(t)+".\nUrl: "+this._getEventFilterUrl(t)),!0):!this._isAllowedUrl(t,e)&&(a.k.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+(0,s.jH)(t)+".\nUrl: "+this._getEventFilterUrl(t)),!0)},t.prototype._isSentryError=function(t,e){if(!e.ignoreInternal)return!1;try{return t&&t.exception&&t.exception.values&&t.exception.values[0]&&"SentryError"===t.exception.values[0].type||!1}catch(n){return!1}},t.prototype._isIgnoredError=function(t,e){return!(!e.ignoreErrors||!e.ignoreErrors.length)&&this._getPossibleEventMessages(t).some((function(t){return e.ignoreErrors.some((function(e){return(0,u.zC)(t,e)}))}))},t.prototype._isDeniedUrl=function(t,e){if(!e.denyUrls||!e.denyUrls.length)return!1;var n=this._getEventFilterUrl(t);return!!n&&e.denyUrls.some((function(t){return(0,u.zC)(n,t)}))},t.prototype._isAllowedUrl=function(t,e){if(!e.allowUrls||!e.allowUrls.length)return!0;var n=this._getEventFilterUrl(t);return!n||e.allowUrls.some((function(t){return(0,u.zC)(n,t)}))},t.prototype._mergeOptions=function(t){return void 0===t&&(t={}),{allowUrls:(0,r.fl)(this._options.whitelistUrls||[],this._options.allowUrls||[],t.whitelistUrls||[],t.allowUrls||[]),denyUrls:(0,r.fl)(this._options.blacklistUrls||[],this._options.denyUrls||[],t.blacklistUrls||[],t.denyUrls||[]),ignoreErrors:(0,r.fl)(this._options.ignoreErrors||[],t.ignoreErrors||[],c),ignoreInternal:void 0===this._options.ignoreInternal||this._options.ignoreInternal}},t.prototype._getPossibleEventMessages=function(t){if(t.message)return[t.message];if(t.exception)try{var e=t.exception.values&&t.exception.values[0]||{},n=e.type,r=void 0===n?"":n,i=e.value,o=void 0===i?"":i;return[""+o,r+": "+o]}catch(u){return a.k.error("Cannot extract message for event "+(0,s.jH)(t)),[]}return[]},t.prototype._getEventFilterUrl=function(t){try{if(t.stacktrace){var e=t.stacktrace.frames;return e&&e[e.length-1].filename||null}if(t.exception){var n=t.exception.values&&t.exception.values[0].stacktrace&&t.exception.values[0].stacktrace.frames;return n&&n[n.length-1].filename||null}return null}catch(r){return a.k.error("Cannot extract url for event "+(0,s.jH)(t)),null}},t.id="InboundFilters",t}()},6508:function(t,e,n){n.d(e,{Q:function(){return a},n:function(){return s}});var r=n(5733);function i(t){if(t.metadata&&t.metadata.sdk){var e=t.metadata.sdk;return{name:e.name,version:e.version}}}function o(t,e){return e?(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=(0,r.fl)(t.sdk.integrations||[],e.integrations||[]),t.sdk.packages=(0,r.fl)(t.sdk.packages||[],e.packages||[]),t):t}function a(t,e){var n=i(e),o="aggregates"in t?"sessions":"session";return{body:JSON.stringify((0,r.pi)((0,r.pi)({sent_at:(new Date).toISOString()},n&&{sdk:n}),e.forceEnvelope()&&{dsn:e.getDsn().toString()}))+"\n"+JSON.stringify({type:o})+"\n"+JSON.stringify(t),type:o,url:e.getEnvelopeEndpointWithUrlEncodedAuth()}}function s(t,e){var n=i(e),a=t.type||"event",s="transaction"===a||e.forceEnvelope(),u=t.debug_meta||{},c=u.transactionSampling,p=(0,r._T)(u,["transactionSampling"]),l=c||{},f=l.method,d=l.rate;0===Object.keys(p).length?delete t.debug_meta:t.debug_meta=p;var h={body:JSON.stringify(n?o(t,e.metadata.sdk):t),type:a,url:s?e.getEnvelopeEndpointWithUrlEncodedAuth():e.getStoreEndpointWithUrlEncodedAuth()};if(s){var v=JSON.stringify((0,r.pi)((0,r.pi)({event_id:t.event_id,sent_at:(new Date).toISOString()},n&&{sdk:n}),e.forceEnvelope()&&{dsn:e.getDsn().toString()}))+"\n"+JSON.stringify({type:a,sample_rates:[{id:f,rate:d}]})+"\n"+h.body;h.body=v}return h}},6853:function(t,e,n){n.d(e,{M:function(){return o}});var r=n(8585),i=n(8536);function o(t,e){var n;!0===e.debug&&i.k.enable();var o=(0,r.Gd)();null===(n=o.getScope())||void 0===n||n.update(e.initialScope);var a=new t(e);o.bindClient(a)}},3926:function(t,e,n){n.d(e,{V:function(){return o}});var r=n(4434),i=n(7946),o=function(){function t(){}return t.prototype.sendEvent=function(t){return i.c.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:r.q.Skipped})},t.prototype.close=function(t){return i.c.resolve(!0)},t}()},1476:function(t,e,n){n.d(e,{J:function(){return r}});var r="6.8.0"},5733:function(t,e,n){n.d(e,{pi:function(){return r},_T:function(){return i},XA:function(){return o},fl:function(){return s}});var r=function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function i(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function o(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function a(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function s(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(a(arguments[e]));return t}},8585:function(t,e,n){n.d(e,{Xb:function(){return l},cu:function(){return f},Gd:function(){return h}});var r=n(8773),i=n(5971),o=n(3699),a=n(7790),s=n(8536),u=n(7392),c=n(1684),p=n(2430),l=function(){function t(t,e,n){void 0===e&&(e=new c.s),void 0===n&&(n=4),this._version=n,this._stack=[{}],this.getStackTop().scope=e,this.bindClient(t)}return t.prototype.isOlderThan=function(t){return this._version<t},t.prototype.bindClient=function(t){this.getStackTop().client=t,t&&t.setupIntegrations&&t.setupIntegrations()},t.prototype.pushScope=function(){var t=c.s.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t},t.prototype.popScope=function(){return!(this.getStack().length<=1)&&!!this.getStack().pop()},t.prototype.withScope=function(t){var e=this.pushScope();try{t(e)}finally{this.popScope()}},t.prototype.getClient=function(){return this.getStackTop().client},t.prototype.getScope=function(){return this.getStackTop().scope},t.prototype.getStack=function(){return this._stack},t.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},t.prototype.captureException=function(t,e){var n=this._lastEventId=(0,o.DM)(),i=e;if(!e){var a=void 0;try{throw new Error("Sentry syntheticException")}catch(t){a=t}i={originalException:t,syntheticException:a}}return this._invokeClient("captureException",t,(0,r.pi)((0,r.pi)({},i),{event_id:n})),n},t.prototype.captureMessage=function(t,e,n){var i=this._lastEventId=(0,o.DM)(),a=n;if(!n){var s=void 0;try{throw new Error(t)}catch(u){s=u}a={originalException:t,syntheticException:s}}return this._invokeClient("captureMessage",t,e,(0,r.pi)((0,r.pi)({},a),{event_id:i})),i},t.prototype.captureEvent=function(t,e){var n=this._lastEventId=(0,o.DM)();return this._invokeClient("captureEvent",t,(0,r.pi)((0,r.pi)({},e),{event_id:n})),n},t.prototype.lastEventId=function(){return this._lastEventId},t.prototype.addBreadcrumb=function(t,e){var n=this.getStackTop(),i=n.scope,s=n.client;if(i&&s){var u=s.getOptions&&s.getOptions()||{},c=u.beforeBreadcrumb,p=void 0===c?null:c,l=u.maxBreadcrumbs,f=void 0===l?100:l;if(!(f<=0)){var d=(0,a.yW)(),h=(0,r.pi)({timestamp:d},t),v=p?(0,o.Cf)((function(){return p(h,e)})):h;null!==v&&i.addBreadcrumb(v,f)}}},t.prototype.setUser=function(t){var e=this.getScope();e&&e.setUser(t)},t.prototype.setTags=function(t){var e=this.getScope();e&&e.setTags(t)},t.prototype.setExtras=function(t){var e=this.getScope();e&&e.setExtras(t)},t.prototype.setTag=function(t,e){var n=this.getScope();n&&n.setTag(t,e)},t.prototype.setExtra=function(t,e){var n=this.getScope();n&&n.setExtra(t,e)},t.prototype.setContext=function(t,e){var n=this.getScope();n&&n.setContext(t,e)},t.prototype.configureScope=function(t){var e=this.getStackTop(),n=e.scope,r=e.client;n&&r&&t(n)},t.prototype.run=function(t){var e=d(this);try{t(this)}finally{d(e)}},t.prototype.getIntegration=function(t){var e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(n){return s.k.warn("Cannot retrieve integration "+t.id+" from the current Hub"),null}},t.prototype.startSpan=function(t){return this._callExtensionMethod("startSpan",t)},t.prototype.startTransaction=function(t,e){return this._callExtensionMethod("startTransaction",t,e)},t.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},t.prototype.captureSession=function(t){if(void 0===t&&(t=!1),t)return this.endSession();this._sendSessionUpdate()},t.prototype.endSession=function(){var t,e,n,r,i;null===(n=null===(e=null===(t=this.getStackTop())||void 0===t?void 0:t.scope)||void 0===e?void 0:e.getSession())||void 0===n||n.close(),this._sendSessionUpdate(),null===(i=null===(r=this.getStackTop())||void 0===r?void 0:r.scope)||void 0===i||i.setSession()},t.prototype.startSession=function(t){var e=this.getStackTop(),n=e.scope,a=e.client,s=a&&a.getOptions()||{},u=s.release,c=s.environment,l=((0,o.Rf)().navigator||{}).userAgent,f=new p.z((0,r.pi)((0,r.pi)((0,r.pi)({release:u,environment:c},n&&{user:n.getUser()}),l&&{userAgent:l}),t));if(n){var d=n.getSession&&n.getSession();d&&d.status===i.$.Ok&&d.update({status:i.$.Exited}),this.endSession(),n.setSession(f)}return f},t.prototype._sendSessionUpdate=function(){var t=this.getStackTop(),e=t.scope,n=t.client;if(e){var r=e.getSession&&e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}},t.prototype._invokeClient=function(t){for(var e,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var o=this.getStackTop(),a=o.scope,s=o.client;s&&s[t]&&(e=s)[t].apply(e,(0,r.fl)(n,[a]))},t.prototype._callExtensionMethod=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=f(),i=r.__SENTRY__;if(i&&i.extensions&&"function"==typeof i.extensions[t])return i.extensions[t].apply(this,e);s.k.warn("Extension method "+t+" couldn't be found, doing nothing.")},t}();function f(){var t=(0,o.Rf)();return t.__SENTRY__=t.__SENTRY__||{extensions:{},hub:void 0},t}function d(t){var e=f(),n=m(e);return _(e,t),n}function h(){var t=f();return v(t)&&!m(t).isOlderThan(4)||_(t,new l),(0,u.KV)()?function(t){var e,n,r;try{var i=null===(r=null===(n=null===(e=f().__SENTRY__)||void 0===e?void 0:e.extensions)||void 0===n?void 0:n.domain)||void 0===r?void 0:r.active;if(!i)return m(t);if(!v(i)||m(i).isOlderThan(4)){var o=m(t).getStackTop();_(i,new l(o.client,c.s.clone(o.scope)))}return m(i)}catch(a){return m(t)}}(t):m(t)}function v(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function m(t){return t&&t.__SENTRY__&&t.__SENTRY__.hub||(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=new l),t.__SENTRY__.hub}function _(t,e){return!!t&&(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=e,!0)}},1684:function(t,e,n){n.d(e,{s:function(){return u},c:function(){return p}});var r=n(8773),i=n(1757),o=n(7790),a=n(7946),s=n(3699),u=function(){function t(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={}}return t.clone=function(e){var n=new t;return e&&(n._breadcrumbs=(0,r.fl)(e._breadcrumbs),n._tags=(0,r.pi)({},e._tags),n._extra=(0,r.pi)({},e._extra),n._contexts=(0,r.pi)({},e._contexts),n._user=e._user,n._level=e._level,n._span=e._span,n._session=e._session,n._transactionName=e._transactionName,n._fingerprint=e._fingerprint,n._eventProcessors=(0,r.fl)(e._eventProcessors),n._requestSession=e._requestSession),n},t.prototype.addScopeListener=function(t){this._scopeListeners.push(t)},t.prototype.addEventProcessor=function(t){return this._eventProcessors.push(t),this},t.prototype.setUser=function(t){return this._user=t||{},this._session&&this._session.update({user:t}),this._notifyScopeListeners(),this},t.prototype.getUser=function(){return this._user},t.prototype.getRequestSession=function(){return this._requestSession},t.prototype.setRequestSession=function(t){return this._requestSession=t,this},t.prototype.setTags=function(t){return this._tags=(0,r.pi)((0,r.pi)({},this._tags),t),this._notifyScopeListeners(),this},t.prototype.setTag=function(t,e){var n;return this._tags=(0,r.pi)((0,r.pi)({},this._tags),((n={})[t]=e,n)),this._notifyScopeListeners(),this},t.prototype.setExtras=function(t){return this._extra=(0,r.pi)((0,r.pi)({},this._extra),t),this._notifyScopeListeners(),this},t.prototype.setExtra=function(t,e){var n;return this._extra=(0,r.pi)((0,r.pi)({},this._extra),((n={})[t]=e,n)),this._notifyScopeListeners(),this},t.prototype.setFingerprint=function(t){return this._fingerprint=t,this._notifyScopeListeners(),this},t.prototype.setLevel=function(t){return this._level=t,this._notifyScopeListeners(),this},t.prototype.setTransactionName=function(t){return this._transactionName=t,this._notifyScopeListeners(),this},t.prototype.setTransaction=function(t){return this.setTransactionName(t)},t.prototype.setContext=function(t,e){var n;return null===e?delete this._contexts[t]:this._contexts=(0,r.pi)((0,r.pi)({},this._contexts),((n={})[t]=e,n)),this._notifyScopeListeners(),this},t.prototype.setSpan=function(t){return this._span=t,this._notifyScopeListeners(),this},t.prototype.getSpan=function(){return this._span},t.prototype.getTransaction=function(){var t,e,n,r,i=this.getSpan();return(null===(t=i)||void 0===t?void 0:t.transaction)?null===(e=i)||void 0===e?void 0:e.transaction:(null===(r=null===(n=i)||void 0===n?void 0:n.spanRecorder)||void 0===r?void 0:r.spans[0])?i.spanRecorder.spans[0]:void 0},t.prototype.setSession=function(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this},t.prototype.getSession=function(){return this._session},t.prototype.update=function(e){if(!e)return this;if("function"==typeof e){var n=e(this);return n instanceof t?n:this}return e instanceof t?(this._tags=(0,r.pi)((0,r.pi)({},this._tags),e._tags),this._extra=(0,r.pi)((0,r.pi)({},this._extra),e._extra),this._contexts=(0,r.pi)((0,r.pi)({},this._contexts),e._contexts),e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession)):(0,i.PO)(e)&&(e=e,this._tags=(0,r.pi)((0,r.pi)({},this._tags),e.tags),this._extra=(0,r.pi)((0,r.pi)({},this._extra),e.extra),this._contexts=(0,r.pi)((0,r.pi)({},this._contexts),e.contexts),e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),this},t.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},t.prototype.addBreadcrumb=function(t,e){var n="number"==typeof e?Math.min(e,100):100;if(n<=0)return this;var i=(0,r.pi)({timestamp:(0,o.yW)()},t);return this._breadcrumbs=(0,r.fl)(this._breadcrumbs,[i]).slice(-n),this._notifyScopeListeners(),this},t.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},t.prototype.applyToEvent=function(t,e){var n;if(this._extra&&Object.keys(this._extra).length&&(t.extra=(0,r.pi)((0,r.pi)({},this._extra),t.extra)),this._tags&&Object.keys(this._tags).length&&(t.tags=(0,r.pi)((0,r.pi)({},this._tags),t.tags)),this._user&&Object.keys(this._user).length&&(t.user=(0,r.pi)((0,r.pi)({},this._user),t.user)),this._contexts&&Object.keys(this._contexts).length&&(t.contexts=(0,r.pi)((0,r.pi)({},this._contexts),t.contexts)),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts=(0,r.pi)({trace:this._span.getTraceContext()},t.contexts);var i=null===(n=this._span.transaction)||void 0===n?void 0:n.name;i&&(t.tags=(0,r.pi)({transaction:i},t.tags))}return this._applyFingerprint(t),t.breadcrumbs=(0,r.fl)(t.breadcrumbs||[],this._breadcrumbs),t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,this._notifyEventProcessors((0,r.fl)(c(),this._eventProcessors),t,e)},t.prototype._notifyEventProcessors=function(t,e,n,o){var s=this;return void 0===o&&(o=0),new a.c((function(a,u){var c=t[o];if(null===e||"function"!=typeof c)a(e);else{var p=c((0,r.pi)({},e),n);(0,i.J8)(p)?p.then((function(e){return s._notifyEventProcessors(t,e,n,o+1).then(a)})).then(null,u):s._notifyEventProcessors(t,p,n,o+1).then(a).then(null,u)}}))},t.prototype._notifyScopeListeners=function(){var t=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(e){e(t)})),this._notifyingListeners=!1)},t.prototype._applyFingerprint=function(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint},t}();function c(){var t=(0,s.Rf)();return t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.globalEventProcessors=t.__SENTRY__.globalEventProcessors||[],t.__SENTRY__.globalEventProcessors}function p(t){c().push(t)}},2430:function(t,e,n){n.d(e,{z:function(){return s}});var r=n(5971),i=n(3699),o=n(7790),a=n(1995),s=function(){function t(t){this.errors=0,this.sid=(0,i.DM)(),this.duration=0,this.status=r.$.Ok,this.init=!0,this.ignoreDuration=!1;var e=(0,o.ph)();this.timestamp=e,this.started=e,t&&this.update(t)}return t.prototype.update=function(t){if(void 0===t&&(t={}),t.user&&(!this.ipAddress&&t.user.ip_address&&(this.ipAddress=t.user.ip_address),this.did||t.did||(this.did=t.user.id||t.user.email||t.user.username)),this.timestamp=t.timestamp||(0,o.ph)(),t.ignoreDuration&&(this.ignoreDuration=t.ignoreDuration),t.sid&&(this.sid=32===t.sid.length?t.sid:(0,i.DM)()),void 0!==t.init&&(this.init=t.init),!this.did&&t.did&&(this.did=""+t.did),"number"==typeof t.started&&(this.started=t.started),this.ignoreDuration)this.duration=void 0;else if("number"==typeof t.duration)this.duration=t.duration;else{var e=this.timestamp-this.started;this.duration=e>=0?e:0}t.release&&(this.release=t.release),t.environment&&(this.environment=t.environment),!this.ipAddress&&t.ipAddress&&(this.ipAddress=t.ipAddress),!this.userAgent&&t.userAgent&&(this.userAgent=t.userAgent),"number"==typeof t.errors&&(this.errors=t.errors),t.status&&(this.status=t.status)},t.prototype.close=function(t){t?this.update({status:t}):this.status===r.$.Ok?this.update({status:r.$.Exited}):this.update()},t.prototype.toJSON=function(){return(0,a.Jr)({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:(0,a.Jr)({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},t}()},8773:function(t,e,n){n.d(e,{pi:function(){return r},fl:function(){return o}});var r=function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function i(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function o(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(i(arguments[e]));return t}},4678:function(t,e,n){n.d(e,{Tb:function(){return a},$e:function(){return s}});var r=n(5559),i=n(8585);function o(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var o=(0,i.Gd)();if(o&&o[t])return o[t].apply(o,(0,r.fl)(e));throw new Error("No hub defined or "+t+" was not found on the hub, please open a bug report.")}function a(t,e){var n;try{throw new Error("Sentry syntheticException")}catch(t){n=t}return o("captureException",t,{captureContext:e,originalException:t,syntheticException:n})}function s(t){o("withScope",t)}},5559:function(t,e,n){n.d(e,{fl:function(){return i}});function r(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function i(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(r(arguments[e]));return t}},40:function(t,e,n){n.d(e,{j:function(){return u}});var r=n(3699),i=n(8536),o=n(2881),a=n(2517),s=(0,r.Rf)();function u(){s&&s.document?s.document.addEventListener("visibilitychange",(function(){var t=(0,a.x1)();s.document.hidden&&t&&(i.k.log("[Tracing] Transaction: "+o.p.Cancelled+" -> since tab moved to the background, op: "+t.op),t.status||t.setStatus(o.p.Cancelled),t.setTag("visibilitychange","document.hidden"),t.finish())})):i.k.warn("[Tracing] Could not set up background tab detection due to lack of global document")}},4476:function(t,e,n){n.d(e,{gE:function(){return v}});var r=n(2481),i=n(8536),o=n(3699),a=n(1626),s=n(564),u=n(2881),c=n(2517),p=n(40),l=n(3800),f=n(6958),d=n(9866),h=(0,r.pi)({idleTimeout:s.nT,markBackgroundTransactions:!0,maxTransactionDuration:600,routingInstrumentation:d.R,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0},f.k3),v=function(){function t(e){this.name=t.id,this._metrics=new l.zE,this._emitOptionsWarning=!1;var n=f.k3.tracingOrigins;e&&e.tracingOrigins&&Array.isArray(e.tracingOrigins)&&0!==e.tracingOrigins.length?n=e.tracingOrigins:this._emitOptionsWarning=!0,this.options=(0,r.pi)((0,r.pi)((0,r.pi)({},h),e),{tracingOrigins:n})}return t.prototype.setupOnce=function(t,e){var n=this;this._getCurrentHub=e,this._emitOptionsWarning&&(i.k.warn("[Tracing] You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace."),i.k.warn("[Tracing] We added a reasonable default for you: "+f.k3.tracingOrigins));var r=this.options,o=r.routingInstrumentation,a=r.startTransactionOnLocationChange,s=r.startTransactionOnPageLoad,u=r.markBackgroundTransactions,c=r.traceFetch,l=r.traceXHR,d=r.tracingOrigins,h=r.shouldCreateSpanForRequest;o((function(t){return n._createRouteTransaction(t)}),s,a),u&&(0,p.j)(),(0,f.L7)({traceFetch:c,traceXHR:l,tracingOrigins:d,shouldCreateSpanForRequest:h})},t.prototype._createRouteTransaction=function(t){var e=this;if(this._getCurrentHub){var n=this.options,s=n.beforeNavigate,p=n.idleTimeout,l=n.maxTransactionDuration,f="pageload"===t.op?function(){var t=(e="sentry-trace",n=document.querySelector("meta[name="+e+"]"),n?n.getAttribute("content"):null);var e,n;if(t)return(0,c.qG)(t);return}():void 0,d=(0,r.pi)((0,r.pi)((0,r.pi)({},t),f),{trimEnd:!0}),h="function"==typeof s?s(d):d,v=void 0===h?(0,r.pi)((0,r.pi)({},d),{sampled:!1}):h;!1===v.sampled&&i.k.log("[Tracing] Will not send "+v.op+" transaction because of beforeNavigate."),i.k.log("[Tracing] Starting "+v.op+" transaction on scope");var m=this._getCurrentHub(),_=(0,o.Rf)().location,y=(0,a.lb)(m,v,p,!0,{location:_});return y.registerBeforeFinishCallback((function(t,n){e._metrics.addPerformanceEntries(t),function(t,e,n){var r=n-e.startTimestamp;n&&(r>t||r<0)&&(e.setStatus(u.p.DeadlineExceeded),e.setTag("maxTransactionDurationExceeded","true"))}((0,c.WB)(l),t,n)})),y}i.k.warn("[Tracing] Did not create "+t.op+" transaction because _getCurrentHub is invalid.")},t.id="BrowserTracing",t}()},3800:function(t,e,n){n.d(e,{zE:function(){return v}});var r=n(2481),i=n(3699),o=n(7392),a=n(7790),s=n(8536),u=n(4194),c=n(2517),p=n(1604),l=n(63),f=n(165),d=n(6843),h=(0,i.Rf)(),v=function(){function t(){var t;this._measurements={},this._performanceCursor=0,!(0,o.KV)()&&(null===(t=h)||void 0===t?void 0:t.performance)&&(h.performance.mark&&h.performance.mark("sentry-tracing-init"),this._trackCLS(),this._trackLCP(),this._trackFID())}return t.prototype.addPerformanceEntries=function(t){var e=this;if(h&&h.performance&&h.performance.getEntries&&a.Z1){s.k.log("[Tracing] Adding & adjusting spans using Performance API");var n,r,i,o,u,p=(0,c.XL)(a.Z1);if(h.document)for(var l=0;l<document.scripts.length;l++)if("true"===document.scripts[l].dataset.entry){n=document.scripts[l].src;break}if(h.performance.getEntries().slice(this._performanceCursor).forEach((function(a){var l=(0,c.XL)(a.startTime),f=(0,c.XL)(a.duration);if(!("navigation"===t.op&&p+l<t.startTimestamp))switch(a.entryType){case"navigation":!function(t,e,n){m({transaction:t,entry:e,event:"unloadEvent",timeOrigin:n}),m({transaction:t,entry:e,event:"redirect",timeOrigin:n}),m({transaction:t,entry:e,event:"domContentLoadedEvent",timeOrigin:n}),m({transaction:t,entry:e,event:"loadEvent",timeOrigin:n}),m({transaction:t,entry:e,event:"connect",timeOrigin:n}),m({transaction:t,entry:e,event:"secureConnection",timeOrigin:n,eventEnd:"connectEnd",description:"TLS/SSL"}),m({transaction:t,entry:e,event:"fetch",timeOrigin:n,eventEnd:"domainLookupStart",description:"cache"}),m({transaction:t,entry:e,event:"domainLookup",timeOrigin:n,description:"DNS"}),function(t,e,n){_(t,{op:"browser",description:"request",startTimestamp:n+(0,c.XL)(e.requestStart),endTimestamp:n+(0,c.XL)(e.responseEnd)}),_(t,{op:"browser",description:"response",startTimestamp:n+(0,c.XL)(e.responseStart),endTimestamp:n+(0,c.XL)(e.responseEnd)})}(t,e,n)}(t,a,p),o=p+(0,c.XL)(a.responseStart),u=p+(0,c.XL)(a.requestStart);break;case"mark":case"paint":case"measure":var h=function(t,e,n,r,i){var o=i+n,a=o+r;return _(t,{description:e.name,endTimestamp:a,op:e.entryType,startTimestamp:o}),o}(t,a,l,f,p);void 0===i&&"sentry-tracing-init"===a.name&&(i=h);var v=(0,d.u)(),y=a.startTime<v.timeStamp;"first-paint"===a.name&&y&&(s.k.log("[Measurements] Adding FP"),e._measurements.fp={value:a.startTime},e._measurements["mark.fp"]={value:h}),"first-contentful-paint"===a.name&&y&&(s.k.log("[Measurements] Adding FCP"),e._measurements.fcp={value:a.startTime},e._measurements["mark.fcp"]={value:h});break;case"resource":var g=a.name.replace(window.location.origin,""),b=function(t,e,n,r,i,o){if("xmlhttprequest"===e.initiatorType||"fetch"===e.initiatorType)return;var a={};"transferSize"in e&&(a["Transfer Size"]=e.transferSize);"encodedBodySize"in e&&(a["Encoded Body Size"]=e.encodedBodySize);"decodedBodySize"in e&&(a["Decoded Body Size"]=e.decodedBodySize);var s=o+r,u=s+i;return _(t,{description:n,endTimestamp:u,op:e.initiatorType?"resource."+e.initiatorType:"resource",startTimestamp:s,data:a}),u}(t,a,g,l,f,p);void 0===r&&(n||"").indexOf(g)>-1&&(r=b)}})),void 0!==r&&void 0!==i&&_(t,{description:"evaluation",endTimestamp:i,op:"script",startTimestamp:r}),this._performanceCursor=Math.max(performance.getEntries().length-1,0),this._trackNavigator(t),"pageload"===t.op){var f=(0,c.XL)(a.Z1);"number"==typeof o&&(s.k.log("[Measurements] Adding TTFB"),this._measurements.ttfb={value:1e3*(o-t.startTimestamp)},"number"==typeof u&&u<=o&&(this._measurements["ttfb.requestTime"]={value:1e3*(o-u)})),["fcp","fp","lcp"].forEach((function(n){if(e._measurements[n]&&!(f>=t.startTimestamp)){var r=e._measurements[n].value,i=f+(0,c.XL)(r),o=Math.abs(1e3*(i-t.startTimestamp)),a=o-r;s.k.log("[Measurements] Normalized "+n+" from "+r+" to "+o+" ("+a+")"),e._measurements[n].value=o}})),this._measurements["mark.fid"]&&this._measurements.fid&&_(t,{description:"first input delay",endTimestamp:this._measurements["mark.fid"].value+(0,c.XL)(this._measurements.fid.value),op:"web.vitals",startTimestamp:this._measurements["mark.fid"].value}),t.setMeasurements(this._measurements),this._tagMetricInfo(t)}}},t.prototype._tagMetricInfo=function(t){this._lcpEntry&&(s.k.log("[Measurements] Adding LCP Data"),this._lcpEntry.element&&t.setTag("lcp.element",(0,u.R)(this._lcpEntry.element)),this._lcpEntry.id&&t.setTag("lcp.id",this._lcpEntry.id),this._lcpEntry.url&&t.setTag("lcp.url",this._lcpEntry.url.trim().slice(0,200)),t.setTag("lcp.size",this._lcpEntry.size)),this._clsEntry&&(s.k.log("[Measurements] Adding CLS Data"),this._clsEntry.sources.map((function(e,n){return t.setTag("cls.source."+(n+1),(0,u.R)(e.node))})))},t.prototype._trackCLS=function(){var t=this;(0,p.k)((function(e){var n=e.entries.pop();n&&(s.k.log("[Measurements] Adding CLS"),t._measurements.cls={value:e.value},t._clsEntry=n)}))},t.prototype._trackNavigator=function(t){var e=h.navigator;if(e){var n=e.connection;n&&(n.effectiveType&&t.setTag("effectiveConnectionType",n.effectiveType),n.type&&t.setTag("connectionType",n.type),y(n.rtt)&&(this._measurements["connection.rtt"]={value:n.rtt}),y(n.downlink)&&(this._measurements["connection.downlink"]={value:n.downlink})),y(e.deviceMemory)&&t.setTag("deviceMemory",String(e.deviceMemory)),y(e.hardwareConcurrency)&&t.setTag("hardwareConcurrency",String(e.hardwareConcurrency))}},t.prototype._trackLCP=function(){var t=this;(0,f.T)((function(e){var n=e.entries.pop();if(n){var r=(0,c.XL)(a.Z1),i=(0,c.XL)(n.startTime);s.k.log("[Measurements] Adding LCP"),t._measurements.lcp={value:e.value},t._measurements["mark.lcp"]={value:r+i},t._lcpEntry=n}}))},t.prototype._trackFID=function(){var t=this;(0,l.T)((function(e){var n=e.entries.pop();if(n){var r=(0,c.XL)(a.Z1),i=(0,c.XL)(n.startTime);s.k.log("[Measurements] Adding FID"),t._measurements.fid={value:e.value},t._measurements["mark.fid"]={value:r+i}}}))},t}();function m(t){var e=t.transaction,n=t.entry,r=t.event,i=t.timeOrigin,o=t.eventEnd,a=t.description,s=o?n[o]:n[r+"End"],u=n[r+"Start"];u&&s&&_(e,{op:"browser",description:null!=a?a:r,startTimestamp:i+(0,c.XL)(u),endTimestamp:i+(0,c.XL)(s)})}function _(t,e){var n=e.startTimestamp,i=(0,r._T)(e,["startTimestamp"]);return n&&t.startTimestamp>n&&(t.startTimestamp=n),t.startChild((0,r.pi)({startTimestamp:n},i))}function y(t){return"number"==typeof t&&isFinite(t)}},6958:function(t,e,n){n.d(e,{k3:function(){return c},L7:function(){return p}});var r=n(2481),i=n(9660),o=n(4005),a=n(1757),s=n(2881),u=n(2517),c={traceFetch:!0,traceXHR:!0,tracingOrigins:["localhost",/^\//]};function p(t){var e=(0,r.pi)((0,r.pi)({},c),t),n=e.traceFetch,p=e.traceXHR,l=e.tracingOrigins,f=e.shouldCreateSpanForRequest,d={},h=function(t){if(d[t])return d[t];var e=l;return d[t]=e.some((function(e){return(0,i.zC)(t,e)}))&&!(0,i.zC)(t,"sentry_key"),d[t]},v=h;"function"==typeof f&&(v=function(t){return h(t)&&f(t)});var m={};n&&(0,o.o)({callback:function(t){!function(t,e,n){if(!(0,u.zu)()||!t.fetchData||!e(t.fetchData.url))return;if(t.endTimestamp&&t.fetchData.__span){return void((o=n[t.fetchData.__span])&&(t.response?o.setHttpStatus(t.response.status):t.error&&o.setStatus(s.p.InternalError),o.finish(),delete n[t.fetchData.__span]))}var i=(0,u.x1)();if(i){var o=i.startChild({data:(0,r.pi)((0,r.pi)({},t.fetchData),{type:"fetch"}),description:t.fetchData.method+" "+t.fetchData.url,op:"http"});t.fetchData.__span=o.spanId,n[o.spanId]=o;var c=t.args[0]=t.args[0],p=t.args[1]=t.args[1]||{},l=p.headers;(0,a.V9)(c,Request)&&(l=c.headers),l?"function"==typeof l.append?l.append("sentry-trace",o.toTraceparent()):l=Array.isArray(l)?(0,r.fl)(l,[["sentry-trace",o.toTraceparent()]]):(0,r.pi)((0,r.pi)({},l),{"sentry-trace":o.toTraceparent()}):l={"sentry-trace":o.toTraceparent()},p.headers=l}}(t,v,m)},type:"fetch"}),p&&(0,o.o)({callback:function(t){!function(t,e,n){var i,o;if(!(0,u.zu)()||(null===(i=t.xhr)||void 0===i?void 0:i.__sentry_own_request__)||!(null===(o=t.xhr)||void 0===o?void 0:o.__sentry_xhr__)||!e(t.xhr.__sentry_xhr__.url))return;var a=t.xhr.__sentry_xhr__;if(t.endTimestamp&&t.xhr.__sentry_xhr_span_id__){return void((c=n[t.xhr.__sentry_xhr_span_id__])&&(c.setHttpStatus(a.status_code),c.finish(),delete n[t.xhr.__sentry_xhr_span_id__]))}var s=(0,u.x1)();if(s){var c=s.startChild({data:(0,r.pi)((0,r.pi)({},a.data),{type:"xhr",method:a.method,url:a.url}),description:a.method+" "+a.url,op:"http"});if(t.xhr.__sentry_xhr_span_id__=c.spanId,n[t.xhr.__sentry_xhr_span_id__]=c,t.xhr.setRequestHeader)try{t.xhr.setRequestHeader("sentry-trace",c.toTraceparent())}catch(p){}}}(t,v,m)},type:"xhr"})}},9866:function(t,e,n){n.d(e,{R:function(){return s}});var r=n(3699),i=n(8536),o=n(4005),a=(0,r.Rf)();function s(t,e,n){if(void 0===e&&(e=!0),void 0===n&&(n=!0),a&&a.location){var r,s=a.location.href;e&&(r=t({name:a.location.pathname,op:"pageload"})),n&&(0,o.o)({callback:function(e){var n=e.to,o=e.from;void 0===o&&s&&-1!==s.indexOf(n)?s=void 0:o!==n&&(s=void 0,r&&(i.k.log("[Tracing] Finishing current transaction with op: "+r.op),r.finish()),r=t({name:a.location.pathname,op:"navigation"}))},type:"history"})}else i.k.warn("Could not initialize routing instrumentation due to invalid location")}},1604:function(t,e,n){n.d(e,{k:function(){return s}});var r=n(7498),i=n(4402),o=n(7483),a=n(391),s=function(t,e){void 0===e&&(e=!1);var n,s=(0,i.I)("CLS",0),u=function(t){t.hadRecentInput||(s.value+=t.value,s.entries.push(t),n())},c=(0,o.N)("layout-shift",u);c&&(n=(0,r._)(t,s,c,e),(0,a.u)((function(t){var e=t.isUnloading;c.takeRecords().map(u),e&&(s.isFinal=!0),n()})))}},63:function(t,e,n){n.d(e,{T:function(){return u}});var r=n(7498),i=n(6843),o=n(4402),a=n(7483),s=n(391),u=function(t){var e=(0,o.I)("FID"),n=(0,i.u)(),u=function(t){t.startTime<n.timeStamp&&(e.value=t.processingStart-t.startTime,e.entries.push(t),e.isFinal=!0,p())},c=(0,a.N)("first-input",u),p=(0,r._)(t,e,c);c?(0,s.u)((function(){c.takeRecords().map(u),c.disconnect()}),!0):window.perfMetrics&&window.perfMetrics.onFirstInputDelay&&window.perfMetrics.onFirstInputDelay((function(t,r){r.timeStamp<n.timeStamp&&(e.value=t,e.isFinal=!0,e.entries=[{entryType:"first-input",name:r.type,target:r.target,cancelable:r.cancelable,startTime:r.timeStamp,processingStart:r.timeStamp+t}],p())}))}},165:function(t,e,n){n.d(e,{T:function(){return c}});var r=n(7498),i=n(6843),o=n(4402),a=n(7483),s=n(391),u=n(8136),c=function(t,e){void 0===e&&(e=!1);var n,c=(0,o.I)("LCP"),p=(0,i.u)(),l=function(t){var e=t.startTime;e<p.timeStamp?(c.value=e,c.entries.push(t)):c.isFinal=!0,n()},f=(0,a.N)("largest-contentful-paint",l);if(f){n=(0,r._)(t,c,f,e);var d=function(){c.isFinal||(f.takeRecords().map(l),c.isFinal=!0,n())};(0,u.n)().then(d),(0,s.u)(d,!0)}}},7498:function(t,e,n){n.d(e,{_:function(){return r}});var r=function(t,e,n,r){var i;return function(){n&&e.isFinal&&n.disconnect(),e.value>=0&&(r||e.isFinal||"hidden"===document.visibilityState)&&(e.delta=e.value-(i||0),(e.delta||e.isFinal||void 0===i)&&(t(e),i=e.value))}}},6864:function(t,e,n){n.d(e,{f:function(){return r}});var r=function(){return Date.now()+"-"+(Math.floor(8999999999999*Math.random())+1e12)}},6843:function(t,e,n){n.d(e,{u:function(){return o}});var r,i=n(391),o=function(){return void 0===r&&(r="hidden"===document.visibilityState?0:1/0,(0,i.u)((function(t){var e=t.timeStamp;return r=e}),!0)),{get timeStamp(){return r}}}},4402:function(t,e,n){n.d(e,{I:function(){return i}});var r=n(6864),i=function(t,e){return void 0===e&&(e=-1),{name:t,value:e,delta:0,entries:[],id:(0,r.f)(),isFinal:!1}}},7483:function(t,e,n){n.d(e,{N:function(){return r}});var r=function(t,e){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){var n=new PerformanceObserver((function(t){return t.getEntries().map(e)}));return n.observe({type:t,buffered:!0}),n}}catch(r){}}},391:function(t,e,n){n.d(e,{u:function(){return a}});var r=!1,i=!1,o=function(t){r=!t.persisted},a=function(t,e){void 0===e&&(e=!1),i||(addEventListener("pagehide",o),addEventListener("beforeunload",(function(){})),i=!0),addEventListener("visibilitychange",(function(e){var n=e.timeStamp;"hidden"===document.visibilityState&&t({timeStamp:n,isUnloading:r})}),{capture:!0,once:e})}},8136:function(t,e,n){var r;n.d(e,{n:function(){return i}});var i=function(){return r||(r=new Promise((function(t){return["scroll","keydown","pointerdown"].map((function(e){addEventListener(e,t,{once:!0,passive:!0,capture:!0})}))}))),r}},9233:function(t,e,n){n.d(e,{e:function(){return s}});var r=n(4005),i=n(8536),o=n(2881),a=n(2517);function s(){(0,r.o)({callback:u,type:"error"}),(0,r.o)({callback:u,type:"unhandledrejection"})}function u(){var t=(0,a.x1)();t&&(i.k.log("[Tracing] Transaction: "+o.p.InternalError+" -> Global error occured"),t.setStatus(o.p.InternalError))}},1626:function(t,e,n){n.d(e,{lb:function(){return v},ro:function(){return m}});var r=n(2481),i=n(8585),o=n(6910),a=n(8536),s=n(7392),u=n(9233),c=n(564),p=n(8235),l=n(2517);function f(){var t=this.getScope();if(t){var e=t.getSpan();if(e)return{"sentry-trace":e.toTraceparent()}}return{}}function d(t,e,n){return(0,l.zu)()?void 0!==t.sampled?(t.setMetadata({transactionSampling:{method:o.K.Explicit}}),t):("function"==typeof e.tracesSampler?(r=e.tracesSampler(n),t.setMetadata({transactionSampling:{method:o.K.Sampler,rate:Number(r)}})):void 0!==n.parentSampled?(r=n.parentSampled,t.setMetadata({transactionSampling:{method:o.K.Inheritance}})):(r=e.tracesSampleRate,t.setMetadata({transactionSampling:{method:o.K.Rate,rate:Number(r)}})),function(t){if(isNaN(t)||"number"!=typeof t&&"boolean"!=typeof t)return a.k.warn("[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got "+JSON.stringify(t)+" of type "+JSON.stringify(typeof t)+"."),!1;if(t<0||t>1)return a.k.warn("[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got "+t+"."),!1;return!0}(r)?r?(t.sampled=Math.random()<r,t.sampled?(a.k.log("[Tracing] starting "+t.op+" transaction - "+t.name),t):(a.k.log("[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = "+Number(r)+")"),t)):(a.k.log("[Tracing] Discarding transaction because "+("function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),t.sampled=!1,t):(a.k.warn("[Tracing] Discarding transaction because of invalid sample rate."),t.sampled=!1,t)):(t.sampled=!1,t);var r}function h(t,e){var n,i,o=(null===(n=this.getClient())||void 0===n?void 0:n.getOptions())||{},a=new p.Y(t,this);return(a=d(a,o,(0,r.pi)({parentSampled:t.parentSampled,transactionContext:t},e))).sampled&&a.initSpanRecorder(null===(i=o._experiments)||void 0===i?void 0:i.maxSpans),a}function v(t,e,n,i,o){var a,s,u=(null===(a=t.getClient())||void 0===a?void 0:a.getOptions())||{},p=new c.io(e,t,n,i);return(p=d(p,u,(0,r.pi)({parentSampled:e.parentSampled,transactionContext:e},o))).sampled&&p.initSpanRecorder(null===(s=u._experiments)||void 0===s?void 0:s.maxSpans),p}function m(){var e;(e=(0,i.cu)()).__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=h),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=f)),(0,s.KV)()&&function(){var e=(0,i.cu)();if(e.__SENTRY__){var n={mongodb:function(){return new((0,s.l$)(t,"./integrations/mongo").Mongo)},mongoose:function(){return new((0,s.l$)(t,"./integrations/mongo").Mongo)({mongoose:!0})},mysql:function(){return new((0,s.l$)(t,"./integrations/mysql").Mysql)},pg:function(){return new((0,s.l$)(t,"./integrations/postgres").Postgres)}},o=Object.keys(n).filter((function(t){return!!(0,s.$y)(t)})).map((function(t){try{return n[t]()}catch(e){return}})).filter((function(t){return t}));o.length>0&&(e.__SENTRY__.integrations=(0,r.fl)(e.__SENTRY__.integrations||[],o))}}(),(0,u.e)()}t=n.hmd(t)},564:function(t,e,n){n.d(e,{nT:function(){return c},io:function(){return l}});var r=n(2481),i=n(7790),o=n(8536),a=n(8207),s=n(2881),u=n(8235),c=1e3,p=function(t){function e(e,n,r,i){void 0===r&&(r="");var o=t.call(this,i)||this;return o._pushActivity=e,o._popActivity=n,o.transactionSpanId=r,o}return(0,r.ZT)(e,t),e.prototype.add=function(e){var n=this;e.spanId!==this.transactionSpanId&&(e.finish=function(t){e.endTimestamp="number"==typeof t?t:(0,i._I)(),n._popActivity(e.spanId)},void 0===e.endTimestamp&&this._pushActivity(e.spanId)),t.prototype.add.call(this,e)},e}(a.g),l=function(t){function e(e,n,r,i){void 0===r&&(r=c),void 0===i&&(i=!1);var a=t.call(this,e,n)||this;return a._idleHub=n,a._idleTimeout=r,a._onScope=i,a.activities={},a._heartbeatTimer=0,a._heartbeatCounter=0,a._finished=!1,a._beforeFinishCallbacks=[],n&&i&&(f(n),o.k.log("Setting idle transaction on scope. Span ID: "+a.spanId),n.configureScope((function(t){return t.setSpan(a)}))),a._initTimeout=setTimeout((function(){a._finished||a.finish()}),a._idleTimeout),a}return(0,r.ZT)(e,t),e.prototype.finish=function(e){var n,a,u=this;if(void 0===e&&(e=(0,i._I)()),this._finished=!0,this.activities={},this.spanRecorder){o.k.log("[Tracing] finishing IdleTransaction",new Date(1e3*e).toISOString(),this.op);try{for(var c=(0,r.XA)(this._beforeFinishCallbacks),p=c.next();!p.done;p=c.next()){(0,p.value)(this,e)}}catch(l){n={error:l}}finally{try{p&&!p.done&&(a=c.return)&&a.call(c)}finally{if(n)throw n.error}}this.spanRecorder.spans=this.spanRecorder.spans.filter((function(t){if(t.spanId===u.spanId)return!0;t.endTimestamp||(t.endTimestamp=e,t.setStatus(s.p.Cancelled),o.k.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(t,void 0,2)));var n=t.startTimestamp<e;return n||o.k.log("[Tracing] discarding Span since it happened after Transaction was finished",JSON.stringify(t,void 0,2)),n})),o.k.log("[Tracing] flushing IdleTransaction")}else o.k.log("[Tracing] No active IdleTransaction");return this._onScope&&f(this._idleHub),t.prototype.finish.call(this,e)},e.prototype.registerBeforeFinishCallback=function(t){this._beforeFinishCallbacks.push(t)},e.prototype.initSpanRecorder=function(t){var e=this;if(!this.spanRecorder){this.spanRecorder=new p((function(t){e._finished||e._pushActivity(t)}),(function(t){e._finished||e._popActivity(t)}),this.spanId,t),o.k.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)},e.prototype._pushActivity=function(t){this._initTimeout&&(clearTimeout(this._initTimeout),this._initTimeout=void 0),o.k.log("[Tracing] pushActivity: "+t),this.activities[t]=!0,o.k.log("[Tracing] new activities count",Object.keys(this.activities).length)},e.prototype._popActivity=function(t){var e=this;if(this.activities[t]&&(o.k.log("[Tracing] popActivity "+t),delete this.activities[t],o.k.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){var n=this._idleTimeout,r=(0,i._I)()+n/1e3;setTimeout((function(){e._finished||e.finish(r)}),n)}},e.prototype._beat=function(){if(clearTimeout(this._heartbeatTimer),!this._finished){var t=Object.keys(this.activities),e=t.length?t.reduce((function(t,e){return t+e})):"";e===this._prevHeartbeatString?this._heartbeatCounter+=1:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?(o.k.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus(s.p.DeadlineExceeded),this.setTag("heartbeat","failed"),this.finish()):this._pingHeartbeat()}},e.prototype._pingHeartbeat=function(){var t=this;o.k.log("pinging Heartbeat -> current counter: "+this._heartbeatCounter),this._heartbeatTimer=setTimeout((function(){t._beat()}),5e3)},e}(u.Y);function f(t){if(t){var e=t.getScope();if(e)e.getTransaction()&&e.setSpan(void 0)}}},9886:function(t,e,n){n.d(e,{jK:function(){return s}});var r=n(2481),i=n(4476),o=n(1626),a=n(1861),s=(0,r.pi)((0,r.pi)({},a),{BrowserTracing:i.gE});(0,o.ro)()},6810:function(t,e,n){n.d(e,{N:function(){return o}});var r=n(2481),i=n(8536),o=function(){function t(e){void 0===e&&(e={}),this.name=t.id,this._router=e.router||e.app,this._methods=(Array.isArray(e.methods)?e.methods:[]).concat("use")}return t.prototype.setupOnce=function(){this._router?function(t,e){void 0===e&&(e=[]);e.forEach((function(e){return function(t,e){var n=t[e];return t[e]=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return n.call.apply(n,(0,r.fl)([this],s(t,e)))},t}(t,e)}))}(this._router,this._methods):i.k.error("ExpressIntegration is missing an Express instance")},t.id="Express",t}();function a(t,e){var n=t.length;switch(n){case 2:return function(n,r){var i=r.__sentry_transaction;if(i){var o=i.startChild({description:t.name,op:"middleware."+e});r.once("finish",(function(){o.finish()}))}return t.call(this,n,r)};case 3:return function(n,i,o){var a,s=null===(a=i.__sentry_transaction)||void 0===a?void 0:a.startChild({description:t.name,op:"middleware."+e});t.call(this,n,i,(function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];null===(t=s)||void 0===t||t.finish(),o.call.apply(o,(0,r.fl)([this],e))}))};case 4:return function(n,i,o,a){var s,u=null===(s=o.__sentry_transaction)||void 0===s?void 0:s.startChild({description:t.name,op:"middleware."+e});t.call(this,n,i,o,(function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];null===(t=u)||void 0===t||t.finish(),a.call.apply(a,(0,r.fl)([this],e))}))};default:throw new Error("Express middleware takes 2-4 arguments. Got: "+n)}}function s(t,e){return t.map((function(t){return"function"==typeof t?a(t,e):Array.isArray(t)?t.map((function(t){return"function"==typeof t?a(t,e):t})):t}))}},1861:function(t,e,n){n.r(e),n.d(e,{Express:function(){return r.N},Postgres:function(){return i.E},Mysql:function(){return o.m},Mongo:function(){return a._}});var r=n(6810),i=n(8567),o=n(8643),a=n(8746)},8746:function(t,e,n){n.d(e,{_:function(){return p}});var r=n(2481),i=n(7392),o=n(8536),a=n(1995),s=n(1757),u=["aggregate","bulkWrite","countDocuments","createIndex","createIndexes","deleteMany","deleteOne","distinct","drop","dropIndex","dropIndexes","estimatedDocumentCount","find","findOne","findOneAndDelete","findOneAndReplace","findOneAndUpdate","indexes","indexExists","indexInformation","initializeOrderedBulkOp","insertMany","insertOne","isCapped","mapReduce","options","parallelCollectionScan","rename","replaceOne","stats","updateMany","updateOne"],c={bulkWrite:["operations"],countDocuments:["query"],createIndex:["fieldOrSpec"],createIndexes:["indexSpecs"],deleteMany:["filter"],deleteOne:["filter"],distinct:["key","query"],dropIndex:["indexName"],find:["query"],findOne:["query"],findOneAndDelete:["filter"],findOneAndReplace:["filter","replacement"],findOneAndUpdate:["filter","update"],indexExists:["indexes"],insertMany:["docs"],insertOne:["doc"],mapReduce:["map","reduce"],rename:["newName"],replaceOne:["filter","doc"],updateMany:["filter","update"],updateOne:["filter","update"]},p=function(){function t(e){void 0===e&&(e={}),this.name=t.id,this._operations=Array.isArray(e.operations)?e.operations:u,this._describeOperations=!("describeOperations"in e)||e.describeOperations,this._useMongoose=!!e.useMongoose}return t.prototype.setupOnce=function(t,e){var n=this._useMongoose?"mongoose":"mongodb",r=(0,i.$y)(n);r?this._instrumentOperations(r.Collection,this._operations,e):o.k.error("Mongo Integration was unable to require `"+n+"` package.")},t.prototype._instrumentOperations=function(t,e,n){var r=this;e.forEach((function(e){return r._patchOperation(t,e,n)}))},t.prototype._patchOperation=function(t,e,n){if(e in t.prototype){var i=this._getSpanContextFromOperationArguments.bind(this);(0,a.hl)(t.prototype,e,(function(t){return function(){for(var o,a,u,c,p=[],l=0;l<arguments.length;l++)p[l]=arguments[l];var f=p[p.length-1],d=n().getScope(),h=null===(o=d)||void 0===o?void 0:o.getSpan();if("function"!=typeof f||"mapReduce"===e&&2===p.length){var v=null===(a=h)||void 0===a?void 0:a.startChild(i(this,e,p)),m=t.call.apply(t,(0,r.fl)([this],p));return(0,s.J8)(m)?m.then((function(t){var e;return null===(e=v)||void 0===e||e.finish(),t})):(null===(u=v)||void 0===u||u.finish(),m)}var _=null===(c=h)||void 0===c?void 0:c.startChild(i(this,e,p.slice(0,-1)));return t.call.apply(t,(0,r.fl)([this],p.slice(0,-1),[function(t,e){var n;null===(n=_)||void 0===n||n.finish(),f(t,e)}]))}}))}},t.prototype._getSpanContextFromOperationArguments=function(t,e,n){var i={collectionName:t.collectionName,dbName:t.dbName,namespace:t.namespace},o={op:"db",description:e,data:i},a=c[e],s=Array.isArray(this._describeOperations)?this._describeOperations.includes(e):this._describeOperations;if(!a||!s)return o;try{if("mapReduce"===e){var u=(0,r.CR)(n,2),p=u[0],l=u[1];i[a[0]]="string"==typeof p?p:p.name||"<anonymous>",i[a[1]]="string"==typeof l?l:l.name||"<anonymous>"}else for(var f=0;f<a.length;f++)i[a[f]]=JSON.stringify(n[f])}catch(d){}return o},t.id="Mongo",t}()},8643:function(t,e,n){n.d(e,{m:function(){return a}});var r=n(7392),i=n(8536),o=n(1995),a=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(t,e){var n=(0,r.$y)("mysql/lib/Connection.js");n?(0,o.hl)(n,"createQuery",(function(t){return function(n,r,i){var o,a,s=null===(a=null===(o=e().getScope())||void 0===o?void 0:o.getSpan())||void 0===a?void 0:a.startChild({description:"string"==typeof n?n:n.sql,op:"db"});return"function"==typeof i?t.call(this,n,r,(function(t,e,n){var r;null===(r=s)||void 0===r||r.finish(),i(t,e,n)})):"function"==typeof r?t.call(this,n,(function(t,e,n){var i;null===(i=s)||void 0===i||i.finish(),r(t,e,n)})):t.call(this,n,r,i)}})):i.k.error("Mysql Integration was unable to require `mysql` package.")},t.id="Mysql",t}()},8567:function(t,e,n){n.d(e,{E:function(){return s}});var r=n(7392),i=n(8536),o=n(1995),a=n(1757),s=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(t,e){var n=(0,r.$y)("pg");n?(0,o.hl)(n.Client.prototype,"query",(function(t){return function(n,r,i){var o,s,u,c=null===(s=null===(o=e().getScope())||void 0===o?void 0:o.getSpan())||void 0===s?void 0:s.startChild({description:"string"==typeof n?n:n.text,op:"db"});if("function"==typeof i)return t.call(this,n,r,(function(t,e){var n;null===(n=c)||void 0===n||n.finish(),i(t,e)}));if("function"==typeof r)return t.call(this,n,(function(t,e){var n;null===(n=c)||void 0===n||n.finish(),r(t,e)}));var p=void 0!==r?t.call(this,n,r):t.call(this,n);return(0,a.J8)(p)?p.then((function(t){var e;return null===(e=c)||void 0===e||e.finish(),t})):(null===(u=c)||void 0===u||u.finish(),p)}})):i.k.error("Postgres Integration was unable to require `pg` package.")},t.id="Postgres",t}()},8207:function(t,e,n){n.d(e,{g:function(){return u},D:function(){return c}});var r=n(2481),i=n(3699),o=n(7790),a=n(1995),s=n(2881),u=function(){function t(t){void 0===t&&(t=1e3),this.spans=[],this._maxlen=t}return t.prototype.add=function(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)},t}(),c=function(){function t(t){if(this.traceId=(0,i.DM)(),this.spanId=(0,i.DM)().substring(16),this.startTimestamp=(0,o._I)(),this.tags={},this.data={},!t)return this;t.traceId&&(this.traceId=t.traceId),t.spanId&&(this.spanId=t.spanId),t.parentSpanId&&(this.parentSpanId=t.parentSpanId),"sampled"in t&&(this.sampled=t.sampled),t.op&&(this.op=t.op),t.description&&(this.description=t.description),t.data&&(this.data=t.data),t.tags&&(this.tags=t.tags),t.status&&(this.status=t.status),t.startTimestamp&&(this.startTimestamp=t.startTimestamp),t.endTimestamp&&(this.endTimestamp=t.endTimestamp)}return t.prototype.child=function(t){return this.startChild(t)},t.prototype.startChild=function(e){var n=new t((0,r.pi)((0,r.pi)({},e),{parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId}));return n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n),n.transaction=this.transaction,n},t.prototype.setTag=function(t,e){var n;return this.tags=(0,r.pi)((0,r.pi)({},this.tags),((n={})[t]=e,n)),this},t.prototype.setData=function(t,e){var n;return this.data=(0,r.pi)((0,r.pi)({},this.data),((n={})[t]=e,n)),this},t.prototype.setStatus=function(t){return this.status=t,this},t.prototype.setHttpStatus=function(t){this.setTag("http.status_code",String(t));var e=s.p.fromHttpCode(t);return e!==s.p.UnknownError&&this.setStatus(e),this},t.prototype.isSuccess=function(){return this.status===s.p.Ok},t.prototype.finish=function(t){this.endTimestamp="number"==typeof t?t:(0,o._I)()},t.prototype.toTraceparent=function(){var t="";return void 0!==this.sampled&&(t=this.sampled?"-1":"-0"),this.traceId+"-"+this.spanId+t},t.prototype.toContext=function(){return(0,a.Jr)({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})},t.prototype.updateWithContext=function(t){var e,n,r,i,o;return this.data=null!=(e=t.data)?e:{},this.description=t.description,this.endTimestamp=t.endTimestamp,this.op=t.op,this.parentSpanId=t.parentSpanId,this.sampled=t.sampled,this.spanId=null!=(n=t.spanId)?n:this.spanId,this.startTimestamp=null!=(r=t.startTimestamp)?r:this.startTimestamp,this.status=t.status,this.tags=null!=(i=t.tags)?i:{},this.traceId=null!=(o=t.traceId)?o:this.traceId,this},t.prototype.getTraceContext=function(){return(0,a.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})},t.prototype.toJSON=function(){return(0,a.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})},t}()},2881:function(t,e,n){var r;n.d(e,{p:function(){return r}}),function(t){t.Ok="ok",t.DeadlineExceeded="deadline_exceeded",t.Unauthenticated="unauthenticated",t.PermissionDenied="permission_denied",t.NotFound="not_found",t.ResourceExhausted="resource_exhausted",t.InvalidArgument="invalid_argument",t.Unimplemented="unimplemented",t.Unavailable="unavailable",t.InternalError="internal_error",t.UnknownError="unknown_error",t.Cancelled="cancelled",t.AlreadyExists="already_exists",t.FailedPrecondition="failed_precondition",t.Aborted="aborted",t.OutOfRange="out_of_range",t.DataLoss="data_loss"}(r||(r={})),function(t){t.fromHttpCode=function(e){if(e<400)return t.Ok;if(e>=400&&e<500)switch(e){case 401:return t.Unauthenticated;case 403:return t.PermissionDenied;case 404:return t.NotFound;case 409:return t.AlreadyExists;case 413:return t.FailedPrecondition;case 429:return t.ResourceExhausted;default:return t.InvalidArgument}if(e>=500&&e<600)switch(e){case 501:return t.Unimplemented;case 503:return t.Unavailable;case 504:return t.DeadlineExceeded;default:return t.InternalError}return t.UnknownError}}(r||(r={}))},8235:function(t,e,n){n.d(e,{Y:function(){return c}});var r=n(2481),i=n(8585),o=n(1757),a=n(8536),s=n(1995),u=n(8207),c=function(t){function e(e,n){var r=t.call(this,e)||this;return r._measurements={},r._hub=(0,i.Gd)(),(0,o.V9)(n,i.Xb)&&(r._hub=n),r.name=e.name||"",r.metadata=e.metadata||{},r._trimEnd=e.trimEnd,r.transaction=r,r}return(0,r.ZT)(e,t),e.prototype.setName=function(t){this.name=t},e.prototype.initSpanRecorder=function(t){void 0===t&&(t=1e3),this.spanRecorder||(this.spanRecorder=new u.g(t)),this.spanRecorder.add(this)},e.prototype.setMeasurements=function(t){this._measurements=(0,r.pi)({},t)},e.prototype.setMetadata=function(t){this.metadata=(0,r.pi)((0,r.pi)({},this.metadata),t)},e.prototype.finish=function(e){var n=this;if(void 0===this.endTimestamp){if(this.name||(a.k.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this.name="<unlabeled transaction>"),t.prototype.finish.call(this,e),!0===this.sampled){var r=this.spanRecorder?this.spanRecorder.spans.filter((function(t){return t!==n&&t.endTimestamp})):[];this._trimEnd&&r.length>0&&(this.endTimestamp=r.reduce((function(t,e){return t.endTimestamp&&e.endTimestamp?t.endTimestamp>e.endTimestamp?t:e:t})).endTimestamp);var i={contexts:{trace:this.getTraceContext()},spans:r,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",debug_meta:this.metadata};return Object.keys(this._measurements).length>0&&(a.k.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),i.measurements=this._measurements),a.k.log("[Tracing] Finishing "+this.op+" transaction: "+this.name+"."),this._hub.captureEvent(i)}a.k.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled.")}},e.prototype.toContext=function(){var e=t.prototype.toContext.call(this);return(0,s.Jr)((0,r.pi)((0,r.pi)({},e),{name:this.name,trimEnd:this._trimEnd}))},e.prototype.updateWithContext=function(e){var n;return t.prototype.updateWithContext.call(this,e),this.name=null!=(n=e.name)?n:"",this._trimEnd=e.trimEnd,this},e}(u.D)},2517:function(t,e,n){n.d(e,{zu:function(){return o},qG:function(){return a},x1:function(){return s},XL:function(){return u},WB:function(){return c}});var r=n(8585),i=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function o(t){var e;return void 0===t&&(t=null===(e=(0,r.Gd)().getClient())||void 0===e?void 0:e.getOptions()),!!t&&("tracesSampleRate"in t||"tracesSampler"in t)}function a(t){var e=t.match(i);if(e){var n=void 0;return"1"===e[3]?n=!0:"0"===e[3]&&(n=!1),{traceId:e[1],parentSampled:n,parentSpanId:e[2]}}}function s(t){var e,n;return void 0===t&&(t=(0,r.Gd)()),null===(n=null===(e=t)||void 0===e?void 0:e.getScope())||void 0===n?void 0:n.getTransaction()}function u(t){return t/1e3}function c(t){return 1e3*t}},2481:function(t,e,n){n.d(e,{ZT:function(){return i},pi:function(){return o},_T:function(){return a},XA:function(){return s},CR:function(){return u},fl:function(){return c}});
    17 /*! *****************************************************************************
    18 Copyright (c) Microsoft Corporation.
    19 
    20 Permission to use, copy, modify, and/or distribute this software for any
    21 purpose with or without fee is hereby granted.
    22 
    23 THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
    24 REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
    25 AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
    26 INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
    27 LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
    28 OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
    29 PERFORMANCE OF THIS SOFTWARE.
    30 ***************************************************************************** */
    31 var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function __(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function a(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function s(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function c(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(u(arguments[e]));return t}},5971:function(t,e,n){var r,i;n.d(e,{$:function(){return r}}),function(t){t.Ok="ok",t.Exited="exited",t.Crashed="crashed",t.Abnormal="abnormal"}(r||(r={})),function(t){t.Ok="ok",t.Errored="errored",t.Crashed="crashed"}(i||(i={}))},2226:function(t,e,n){var r;n.d(e,{z:function(){return r}}),function(t){t.Fatal="fatal",t.Error="error",t.Warning="warning",t.Log="log",t.Info="info",t.Debug="debug",t.Critical="critical"}(r||(r={})),function(t){t.fromString=function(e){switch(e){case"debug":return t.Debug;case"info":return t.Info;case"warn":case"warning":return t.Warning;case"error":return t.Error;case"fatal":return t.Fatal;case"critical":return t.Critical;case"log":default:return t.Log}}}(r||(r={}))},4434:function(t,e,n){var r;n.d(e,{q:function(){return r}}),function(t){t.Unknown="unknown",t.Skipped="skipped",t.Success="success",t.RateLimit="rate_limit",t.Invalid="invalid",t.Failed="failed"}(r||(r={})),function(t){t.fromHttpCode=function(e){return e>=200&&e<300?t.Success:429===e?t.RateLimit:e>=400&&e<500?t.Invalid:e>=500?t.Failed:t.Unknown}}(r||(r={}))},6910:function(t,e,n){var r;n.d(e,{K:function(){return r}}),function(t){t.Explicit="explicitly_set",t.Sampler="client_sampler",t.Rate="client_rate",t.Inheritance="inheritance"}(r||(r={}))},4194:function(t,e,n){n.d(e,{R:function(){return i}});var r=n(1757);function i(t,e){try{for(var n=t,r=[],i=0,a=0,s=" > ".length,u=void 0;n&&i++<5&&!("html"===(u=o(n,e))||i>1&&a+r.length*s+u.length>=80);)r.push(u),a+=u.length,n=n.parentNode;return r.reverse().join(" > ")}catch(c){return"<unknown>"}}function o(t,e){var n,i,o,a,s,u,c,p=t,l=[];if(!p||!p.tagName)return"";l.push(p.tagName.toLowerCase());var f=(null===(n=e)||void 0===n?void 0:n.length)?e.filter((function(t){return p.getAttribute(t)})).map((function(t){return[t,p.getAttribute(t)]})):null;if(null===(i=f)||void 0===i?void 0:i.length)f.forEach((function(t){l.push("["+t[0]+'="'+t[1]+'"]')}));else if(p.id&&l.push("#"+p.id),(o=p.className)&&(0,r.HD)(o))for(a=o.split(/\s+/),c=0;c<a.length;c++)l.push("."+a[c]);var d=["type","name","title","alt"];for(c=0;c<d.length;c++)s=d[c],(u=p.getAttribute(s))&&l.push("["+s+'="'+u+'"]');return l.join("")}},3135:function(t,e,n){n.d(e,{l:function(){return s}});var r=n(4715),i=n(4388),o=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/,a="Invalid Dsn",s=function(){function t(t){"string"==typeof t?this._fromString(t):this._fromComponents(t),this._validate()}return t.prototype.toString=function(t){void 0===t&&(t=!1);var e=this,n=e.host,r=e.path,i=e.pass,o=e.port,a=e.projectId;return e.protocol+"://"+e.publicKey+(t&&i?":"+i:"")+"@"+n+(o?":"+o:"")+"/"+(r?r+"/":r)+a},t.prototype._fromString=function(t){var e=o.exec(t);if(!e)throw new i.b(a);var n=(0,r.CR)(e.slice(1),6),s=n[0],u=n[1],c=n[2],p=void 0===c?"":c,l=n[3],f=n[4],d=void 0===f?"":f,h="",v=n[5],m=v.split("/");if(m.length>1&&(h=m.slice(0,-1).join("/"),v=m.pop()),v){var _=v.match(/^\d+/);_&&(v=_[0])}this._fromComponents({host:l,pass:p,path:h,projectId:v,port:d,protocol:s,publicKey:u})},t.prototype._fromComponents=function(t){"user"in t&&!("publicKey"in t)&&(t.publicKey=t.user),this.user=t.publicKey||"",this.protocol=t.protocol,this.publicKey=t.publicKey||"",this.pass=t.pass||"",this.host=t.host,this.port=t.port||"",this.path=t.path||"",this.projectId=t.projectId},t.prototype._validate=function(){var t=this;if(["protocol","publicKey","host","projectId"].forEach((function(e){if(!t[e])throw new i.b("Invalid Dsn: "+e+" missing")})),!this.projectId.match(/^\d+$/))throw new i.b("Invalid Dsn: Invalid projectId "+this.projectId);if("http"!==this.protocol&&"https"!==this.protocol)throw new i.b("Invalid Dsn: Invalid protocol "+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new i.b("Invalid Dsn: Invalid port "+this.port)},t}()},4388:function(t,e,n){n.d(e,{b:function(){return o}});var r=n(4715),i=n(467),o=function(t){function e(e){var n=this.constructor,r=t.call(this,e)||this;return r.message=e,r.name=n.prototype.constructor.name,(0,i.f)(r,n.prototype),r}return(0,r.ZT)(e,t),e}(Error)},4005:function(t,e,n){n.d(e,{o:function(){return v}});var r,i=n(4715),o=n(1757),a=n(8536),s=n(3699),u=n(1995),c=n(9038),p=n(9798),l=(0,s.Rf)(),f={},d={};function h(t){if(!d[t])switch(d[t]=!0,t){case"console":!function(){if(!("console"in l))return;["debug","info","warn","error","log","assert"].forEach((function(t){t in l.console&&(0,u.hl)(l.console,t,(function(e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];m("console",{args:n,level:t}),e&&Function.prototype.apply.call(e,l.console,n)}}))}))}();break;case"dom":!function(){if(!("document"in l))return;var t=m.bind(null,"dom"),e=S(t,!0);l.document.addEventListener("click",e,!1),l.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach((function(e){var n=l[e]&&l[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,u.hl)(n,"addEventListener",(function(e){return function(n,r,i){if("click"===n||"keypress"==n)try{var o=this,a=o.__sentry_instrumentation_handlers__=o.__sentry_instrumentation_handlers__||{},s=a[n]=a[n]||{refCount:0};if(!s.handler){var u=S(t);s.handler=u,e.call(this,n,u,i)}s.refCount+=1}catch(c){}return e.call(this,n,r,i)}})),(0,u.hl)(n,"removeEventListener",(function(t){return function(e,n,r){if("click"===e||"keypress"==e)try{var i=this,o=i.__sentry_instrumentation_handlers__||{},a=o[e];a&&(a.refCount-=1,a.refCount<=0&&(t.call(this,e,a.handler,r),a.handler=void 0,delete o[e]),0===Object.keys(o).length&&delete i.__sentry_instrumentation_handlers__)}catch(s){}return t.call(this,e,n,r)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in l))return;var t=[],e=[],n=XMLHttpRequest.prototype;(0,u.hl)(n,"open",(function(n){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var a=this,s=r[1];a.__sentry_xhr__={method:(0,o.HD)(r[0])?r[0].toUpperCase():r[0],url:r[1]},(0,o.HD)(s)&&"POST"===a.__sentry_xhr__.method&&s.match(/sentry_key/)&&(a.__sentry_own_request__=!0);var c=function(){if(4===a.readyState){try{a.__sentry_xhr__&&(a.__sentry_xhr__.status_code=a.status)}catch(o){}try{var n=t.indexOf(a);if(-1!==n){t.splice(n);var i=e.splice(n)[0];a.__sentry_xhr__&&void 0!==i[0]&&(a.__sentry_xhr__.body=i[0])}}catch(o){}m("xhr",{args:r,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:a})}};return"onreadystatechange"in a&&"function"==typeof a.onreadystatechange?(0,u.hl)(a,"onreadystatechange",(function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return c(),t.apply(a,e)}})):a.addEventListener("readystatechange",c),n.apply(a,r)}})),(0,u.hl)(n,"send",(function(n){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.push(this),e.push(r),m("xhr",{args:r,startTimestamp:Date.now(),xhr:this}),n.apply(this,r)}}))}();break;case"fetch":!function(){if(!(0,p.t$)())return;(0,u.hl)(l,"fetch",(function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r={args:e,fetchData:{method:_(e),url:y(e)},startTimestamp:Date.now()};return m("fetch",(0,i.pi)({},r)),t.apply(l,e).then((function(t){return m("fetch",(0,i.pi)((0,i.pi)({},r),{endTimestamp:Date.now(),response:t})),t}),(function(t){throw m("fetch",(0,i.pi)((0,i.pi)({},r),{endTimestamp:Date.now(),error:t})),t}))}}))}();break;case"history":!function(){if(!(0,p.Bf)())return;var t=l.onpopstate;function e(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=e.length>2?e[2]:void 0;if(i){var o=r,a=String(i);r=a,m("history",{from:o,to:a})}return t.apply(this,e)}}l.onpopstate=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=l.location.href,o=r;if(r=i,m("history",{from:o,to:i}),t)try{return t.apply(this,e)}catch(a){}},(0,u.hl)(l.history,"pushState",e),(0,u.hl)(l.history,"replaceState",e)}();break;case"error":E=l.onerror,l.onerror=function(t,e,n,r,i){return m("error",{column:r,error:i,line:n,msg:t,url:e}),!!E&&E.apply(this,arguments)};break;case"unhandledrejection":x=l.onunhandledrejection,l.onunhandledrejection=function(t){return m("unhandledrejection",t),!x||x.apply(this,arguments)};break;default:a.k.warn("unknown instrumentation type:",t)}}function v(t){t&&"string"==typeof t.type&&"function"==typeof t.callback&&(f[t.type]=f[t.type]||[],f[t.type].push(t.callback),h(t.type))}function m(t,e){var n,r;if(t&&f[t])try{for(var o=(0,i.XA)(f[t]||[]),s=o.next();!s.done;s=o.next()){var u=s.value;try{u(e)}catch(p){a.k.error("Error while triggering instrumentation handler.\nType: "+t+"\nName: "+(0,c.$)(u)+"\nError: "+p)}}}catch(l){n={error:l}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}function _(t){return void 0===t&&(t=[]),"Request"in l&&(0,o.V9)(t[0],Request)&&t[0].method?String(t[0].method).toUpperCase():t[1]&&t[1].method?String(t[1].method).toUpperCase():"GET"}function y(t){return void 0===t&&(t=[]),"string"==typeof t[0]?t[0]:"Request"in l&&(0,o.V9)(t[0],Request)?t[0].url:String(t[0])}var g,b;function S(t,e){return void 0===e&&(e=!1),function(n){if(n&&b!==n&&!function(t){if("keypress"!==t.type)return!1;try{var e=t.target;if(!e||!e.tagName)return!0;if("INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable)return!1}catch(n){}return!0}(n)){var r="keypress"===n.type?"input":n.type;(void 0===g||function(t,e){if(!t)return!0;if(t.type!==e.type)return!0;try{if(t.target!==e.target)return!0}catch(n){}return!1}(b,n))&&(t({event:n,name:r,global:e}),b=n),clearTimeout(g),g=l.setTimeout((function(){g=void 0}),1e3)}}}var E=null;var x=null},1757:function(t,e,n){function r(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return v(t,Error)}}function i(t){return"[object ErrorEvent]"===Object.prototype.toString.call(t)}function o(t){return"[object DOMError]"===Object.prototype.toString.call(t)}function a(t){return"[object DOMException]"===Object.prototype.toString.call(t)}function s(t){return"[object String]"===Object.prototype.toString.call(t)}function u(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function c(t){return"[object Object]"===Object.prototype.toString.call(t)}function p(t){return"undefined"!=typeof Event&&v(t,Event)}function l(t){return"undefined"!=typeof Element&&v(t,Element)}function f(t){return"[object RegExp]"===Object.prototype.toString.call(t)}function d(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function h(t){return c(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function v(t,e){try{return t instanceof e}catch(n){return!1}}n.d(e,{VZ:function(){return r},VW:function(){return i},TX:function(){return o},fm:function(){return a},HD:function(){return s},pt:function(){return u},PO:function(){return c},cO:function(){return p},kK:function(){return l},Kj:function(){return f},J8:function(){return d},Cy:function(){return h},V9:function(){return v}})},8536:function(t,e,n){n.d(e,{k:function(){return s}});var r=n(3699),i=(0,r.Rf)(),o="Sentry Logger ",a=function(){function t(){this._enabled=!1}return t.prototype.disable=function(){this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},t.prototype.log=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&(0,r.Cf)((function(){i.console.log(o+"[Log]: "+t.join(" "))}))},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&(0,r.Cf)((function(){i.console.warn(o+"[Warn]: "+t.join(" "))}))},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&(0,r.Cf)((function(){i.console.error(o+"[Error]: "+t.join(" "))}))},t}();i.__SENTRY__=i.__SENTRY__||{};var s=i.__SENTRY__.logger||(i.__SENTRY__.logger=new a)},4048:function(t,e,n){n.d(e,{_:function(){return r}});var r=function(){function t(){this._hasWeakSet="function"==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return t.prototype.memoize=function(t){if(this._hasWeakSet)return!!this._inner.has(t)||(this._inner.add(t),!1);for(var e=0;e<this._inner.length;e++){if(this._inner[e]===t)return!0}return this._inner.push(t),!1},t.prototype.unmemoize=function(t){if(this._hasWeakSet)this._inner.delete(t);else for(var e=0;e<this._inner.length;e++)if(this._inner[e]===t){this._inner.splice(e,1);break}},t}()},3699:function(t,e,n){n.d(e,{Rf:function(){return o},DM:function(){return a},en:function(){return s},jH:function(){return u},Cf:function(){return c},Db:function(){return p},EG:function(){return l},l4:function(){return f},JY:function(){return d}});var r=n(7392),i={};function o(){return(0,r.KV)()||"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}function a(){var t=o(),e=t.crypto||t.msCrypto;if(void 0!==e&&e.getRandomValues){var n=new Uint16Array(8);e.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var r=function(t){for(var e=t.toString(16);e.length<4;)e="0"+e;return e};return r(n[0])+r(n[1])+r(n[2])+r(n[3])+r(n[4])+r(n[5])+r(n[6])+r(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))}function s(t){if(!t)return{};var e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};var n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],relative:e[5]+n+r}}function u(t){if(t.message)return t.message;if(t.exception&&t.exception.values&&t.exception.values[0]){var e=t.exception.values[0];return e.type&&e.value?e.type+": "+e.value:e.type||e.value||t.event_id||"<unknown>"}return t.event_id||"<unknown>"}function c(t){var e=o();if(!("console"in e))return t();var n=e.console,r={};["debug","info","warn","error","log","assert"].forEach((function(t){t in e.console&&n[t].__sentry_original__&&(r[t]=n[t],n[t]=n[t].__sentry_original__)}));var i=t();return Object.keys(r).forEach((function(t){n[t]=r[t]})),i}function p(t,e,n){t.exception=t.exception||{},t.exception.values=t.exception.values||[],t.exception.values[0]=t.exception.values[0]||{},t.exception.values[0].value=t.exception.values[0].value||e||"",t.exception.values[0].type=t.exception.values[0].type||n||"Error"}function l(t,e){void 0===e&&(e={});try{t.exception.values[0].mechanism=t.exception.values[0].mechanism||{},Object.keys(e).forEach((function(n){t.exception.values[0].mechanism[n]=e[n]}))}catch(n){}}function f(){try{return document.location.href}catch(t){return""}}function d(t,e){if(!e)return 6e4;var n=parseInt(""+e,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(""+e);return isNaN(r)?6e4:r-t}},7392:function(t,e,n){function r(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function i(t,e){return t.require(e)}function o(e){var n;try{n=i(t,e)}catch(o){}try{var r=i(t,"process").cwd;n=i(t,r()+"/node_modules/"+e)}catch(o){}return n}n.d(e,{KV:function(){return r},l$:function(){return i},$y:function(){return o}}),t=n.hmd(t)},1995:function(t,e,n){n.d(e,{hl:function(){return c},_j:function(){return p},Qy:function(){return d},Fv:function(){return m},zf:function(){return _},Jr:function(){return y}});var r=n(4715),i=n(4194),o=n(1757),a=n(4048),s=n(9038),u=n(9660);function c(t,e,n){if(e in t){var r=t[e],i=n(r);if("function"==typeof i)try{i.prototype=i.prototype||{},Object.defineProperties(i,{__sentry_original__:{enumerable:!1,value:r}})}catch(o){}t[e]=i}}function p(t){return Object.keys(t).map((function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])})).join("&")}function l(t){if((0,o.VZ)(t)){var e=t,n={message:e.message,name:e.name,stack:e.stack};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}if((0,o.cO)(t)){var a=t,s={};s.type=a.type;try{s.target=(0,o.kK)(a.target)?(0,i.R)(a.target):Object.prototype.toString.call(a.target)}catch(u){s.target="<unknown>"}try{s.currentTarget=(0,o.kK)(a.currentTarget)?(0,i.R)(a.currentTarget):Object.prototype.toString.call(a.currentTarget)}catch(u){s.currentTarget="<unknown>"}for(var r in"undefined"!=typeof CustomEvent&&(0,o.V9)(t,CustomEvent)&&(s.detail=a.detail),a)Object.prototype.hasOwnProperty.call(a,r)&&(s[r]=a);return s}return t}function f(t){return function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(t))}function d(t,e,n){void 0===e&&(e=3),void 0===n&&(n=102400);var r=m(t,e);return f(r)>n?d(t,e-1,n):r}function h(t,e){return"domain"===e&&t&&"object"==typeof t&&t._events?"[Domain]":"domainEmitter"===e?"[DomainEmitter]":"undefined"!=typeof window&&t===window?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":(0,o.Cy)(t)?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?"[Function: "+(0,s.$)(t)+"]":"symbol"==typeof t?"["+String(t)+"]":"bigint"==typeof t?"[BigInt: "+String(t)+"]":t}function v(t,e,n,r){if(void 0===n&&(n=1/0),void 0===r&&(r=new a._),0===n)return function(t){var e=Object.prototype.toString.call(t);if("string"==typeof t)return t;if("[object Object]"===e)return"[Object]";if("[object Array]"===e)return"[Array]";var n=h(t);return(0,o.pt)(n)?n:e}(e);if(null!=e&&"function"==typeof e.toJSON)return e.toJSON();var i=h(e,t);if((0,o.pt)(i))return i;var s=l(e),u=Array.isArray(e)?[]:{};if(r.memoize(e))return"[Circular ~]";for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(u[c]=v(c,s[c],n-1,r));return r.unmemoize(e),u}function m(t,e){try{return JSON.parse(JSON.stringify(t,(function(t,n){return v(t,n,e)})))}catch(n){return"**non-serializable**"}}function _(t,e){void 0===e&&(e=40);var n=Object.keys(l(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return(0,u.$G)(n[0],e);for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");if(!(i.length>e))return r===n.length?i:(0,u.$G)(i,e)}return""}function y(t){var e,n;if((0,o.PO)(t)){var i=t,a={};try{for(var s=(0,r.XA)(Object.keys(i)),u=s.next();!u.done;u=s.next()){var c=u.value;void 0!==i[c]&&(a[c]=y(i[c]))}}catch(p){e={error:p}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}return a}return Array.isArray(t)?t.map(y):t}},467:function(t,e,n){n.d(e,{f:function(){return r}});var r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){return t.__proto__=e,t}:function(t,e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n]);return t})},8963:function(t,e,n){n.d(e,{D:function(){return o}});var r=n(4388),i=n(7946),o=function(){function t(t){this._limit=t,this._buffer=[]}return t.prototype.isReady=function(){return void 0===this._limit||this.length()<this._limit},t.prototype.add=function(t){var e=this;if(!this.isReady())return i.c.reject(new r.b("Not adding Promise due to buffer limit reached."));var n=t();return-1===this._buffer.indexOf(n)&&this._buffer.push(n),n.then((function(){return e.remove(n)})).then(null,(function(){return e.remove(n).then(null,(function(){}))})),n},t.prototype.remove=function(t){return this._buffer.splice(this._buffer.indexOf(t),1)[0]},t.prototype.length=function(){return this._buffer.length},t.prototype.drain=function(t){var e=this;return new i.c((function(n){var r=setTimeout((function(){t&&t>0&&n(!1)}),t);i.c.all(e._buffer).then((function(){clearTimeout(r),n(!0)})).then(null,(function(){n(!0)}))}))},t}()},9038:function(t,e,n){n.d(e,{$:function(){return i}});var r="<anonymous>";function i(t){try{return t&&"function"==typeof t&&t.name||r}catch(e){return r}}},9660:function(t,e,n){n.d(e,{$G:function(){return i},nK:function(){return o},zC:function(){return a}});var r=n(1757);function i(t,e){return void 0===e&&(e=0),"string"!=typeof t||0===e||t.length<=e?t:t.substr(0,e)+"..."}function o(t,e){if(!Array.isArray(t))return"";for(var n=[],r=0;r<t.length;r++){var i=t[r];try{n.push(String(i))}catch(o){n.push("[value cannot be serialized]")}}return n.join(e)}function a(t,e){return!!(0,r.HD)(t)&&((0,r.Kj)(e)?e.test(t):"string"==typeof e&&-1!==t.indexOf(e))}},9798:function(t,e,n){n.d(e,{Ak:function(){return o},Du:function(){return a},t$:function(){return s},hv:function(){return u},Bf:function(){return c}});var r=n(8536),i=n(3699);function o(){if(!("fetch"in(0,i.Rf)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}function a(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function s(){if(!o())return!1;var t=(0,i.Rf)();if(a(t.fetch))return!0;var e=!1,n=t.document;if(n&&"function"==typeof n.createElement)try{var s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s),s.contentWindow&&s.contentWindow.fetch&&(e=a(s.contentWindow.fetch)),n.head.removeChild(s)}catch(u){r.k.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",u)}return e}function u(){if(!o())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(t){return!1}}function c(){var t=(0,i.Rf)(),e=t.chrome,n=e&&e.app&&e.app.runtime,r="history"in t&&!!t.history.pushState&&!!t.history.replaceState;return!n&&r}},7946:function(t,e,n){n.d(e,{c:function(){return o}});var r,i=n(1757);!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(r||(r={}));var o=function(){function t(t){var e=this;this._state=r.PENDING,this._handlers=[],this._resolve=function(t){e._setResult(r.RESOLVED,t)},this._reject=function(t){e._setResult(r.REJECTED,t)},this._setResult=function(t,n){e._state===r.PENDING&&((0,i.J8)(n)?n.then(e._resolve,e._reject):(e._state=t,e._value=n,e._executeHandlers()))},this._attachHandler=function(t){e._handlers=e._handlers.concat(t),e._executeHandlers()},this._executeHandlers=function(){if(e._state!==r.PENDING){var t=e._handlers.slice();e._handlers=[],t.forEach((function(t){t.done||(e._state===r.RESOLVED&&t.onfulfilled&&t.onfulfilled(e._value),e._state===r.REJECTED&&t.onrejected&&t.onrejected(e._value),t.done=!0)}))}};try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}return t.resolve=function(e){return new t((function(t){t(e)}))},t.reject=function(e){return new t((function(t,n){n(e)}))},t.all=function(e){return new t((function(n,r){if(Array.isArray(e))if(0!==e.length){var i=e.length,o=[];e.forEach((function(e,a){t.resolve(e).then((function(t){o[a]=t,0===(i-=1)&&n(o)})).then(null,r)}))}else n([]);else r(new TypeError("Promise.all requires an array as input."))}))},t.prototype.then=function(e,n){var r=this;return new t((function(t,i){r._attachHandler({done:!1,onfulfilled:function(n){if(e)try{return void t(e(n))}catch(r){return void i(r)}else t(n)},onrejected:function(e){if(n)try{return void t(n(e))}catch(r){return void i(r)}else i(e)}})}))},t.prototype.catch=function(t){return this.then((function(t){return t}),t)},t.prototype.finally=function(e){var n=this;return new t((function(t,r){var i,o;return n.then((function(t){o=!1,i=t,e&&e()}),(function(t){o=!0,i=t,e&&e()})).then((function(){o?r(i):t(i)}))}))},t.prototype.toString=function(){return"[object SyncPromise]"},t}()},7790:function(t,e,n){n.d(e,{yW:function(){return u},ph:function(){return c},_I:function(){return p},Z1:function(){return l}});var r=n(3699),i=n(7392);t=n.hmd(t);var o={nowSeconds:function(){return Date.now()/1e3}};var a=(0,i.KV)()?function(){try{return(0,i.l$)(t,"perf_hooks").performance}catch(e){return}}():function(){var t=(0,r.Rf)().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),s=void 0===a?o:{nowSeconds:function(){return(a.timeOrigin+a.now())/1e3}},u=o.nowSeconds.bind(o),c=s.nowSeconds.bind(s),p=c,l=function(){var t=(0,r.Rf)().performance;if(t&&t.now){var e=36e5,n=t.now(),i=Date.now(),o=t.timeOrigin?Math.abs(t.timeOrigin+n-i):e,a=o<e,s=t.timing&&t.timing.navigationStart,u="number"==typeof s?Math.abs(s+n-i):e;return a||u<e?o<=u?("timeOrigin",t.timeOrigin):("navigationStart",s):("dateNow",i)}"none"}()},4715:function(t,e,n){n.d(e,{ZT:function(){return i},pi:function(){return o},XA:function(){return a},CR:function(){return s}});
    32 /*! *****************************************************************************
    33 Copyright (c) Microsoft Corporation.
    34 
    35 Permission to use, copy, modify, and/or distribute this software for any
    36 purpose with or without fee is hereby granted.
    37 
    38 THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
    39 REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
    40 AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
    41 INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
    42 LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
    43 OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
    44 PERFORMANCE OF THIS SOFTWARE.
    45 ***************************************************************************** */
    46 var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function __(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function a(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function s(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}},7606:function(t){t.exports=window.wp.apiFetch}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={id:r,loaded:!1,exports:{}};return t[r](o,o.exports,n),o.loaded=!0,o.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.hmd=function(t){return(t=Object.create(t)).children||(t.children=[]),Object.defineProperty(t,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+t.id)}}),t},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};!function(){n.r(r);var t,e,i=n(2456),o=n(4678),a=n(9886),s=n(7606),u=n.n(s),c="true"===(null===(t=window.A8C_ETK_ErrorReporting_Config)||void 0===t?void 0:t.shouldActivateSentry),p=window._jsErr||[],l=window._headJsErrorHandler;c?(i.S1({dsn:"https://658ae291b00242148af6b76494d4a49a@o248881.ingest.sentry.io/5876245",integrations:[new a.jK.BrowserTracing],tracesSampleRate:1}),p.forEach((function(t){return o.Tb(t)})),i.yl().then((function(){return delete window._jsErr}))):(e=function(t){var e=t.error;if(e){var n={message:e.message,trace:e.stack,url:document.location.href,feature:"wp-admin"};return u()({global:!0,path:"/rest/v1.1/js-error",method:"POST",data:{error:JSON.stringify(n)}}).catch((function(){return console.error("Error: Unable to record the error in Logstash.")}))}},window.addEventListener("error",e),Promise.allSettled(p.map(e)).then((function(){return delete window._jsErr}))),window.removeEventListener("error",l),delete window._headJsErrorHandler}(),window.EditingToolkit=r}();
     1!function(){"use strict";var r={606:function(r){r.exports=window.wp.apiFetch}},e={};function t(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return r[n](i,i.exports,t),i.exports}t.n=function(r){var e=r&&r.__esModule?function(){return r.default}:function(){return r};return t.d(e,{a:e}),e},t.d=function(r,e){for(var n in e)t.o(e,n)&&!t.o(r,n)&&Object.defineProperty(r,n,{enumerable:!0,get:e[n]})},t.o=function(r,e){return Object.prototype.hasOwnProperty.call(r,e)},t.r=function(r){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})};var n={};!function(){t.r(n);var r=t(606),e=t.n(r),o=window._jsErr||[],i=window._headJsErrorHandler,a=function(r){var t=r.error;if(t){var n={message:t.message,trace:t.stack,url:document.location.href,feature:"wp-admin"};return e()({global:!0,path:"/rest/v1.1/js-error",method:"POST",data:{error:JSON.stringify(n)}}).catch((function(){return console.error("Error: Unable to record the error in Logstash.")}))}};window.addEventListener("error",a),window.removeEventListener("error",i),delete window._headJsErrorHandler,Promise.allSettled(o.map(a)).then((function(){return delete window._jsErr}))}(),window.EditingToolkit=n}();
  • full-site-editing/trunk/error-reporting/index.js

    r2573425 r2573438  
    1 import * as Sentry from '@sentry/browser';
    2 import { Integrations } from '@sentry/tracing';
    31import apiFetch from '@wordpress/api-fetch';
    42
    5 const shouldActivateSentry = window.A8C_ETK_ErrorReporting_Config?.shouldActivateSentry === 'true';
    63/**
    74 * Errors that happened before this script had a chance to load
     
    118const headErrorHandler = window._headJsErrorHandler;
    129
    13 function activateSentry() {
    14     Sentry.init( {
    15         dsn: 'https://658ae291b00242148af6b76494d4a49a@o248881.ingest.sentry.io/5876245',
    16         integrations: [ new Integrations.BrowserTracing() ],
     10const reportError = ( { error } ) => {
     11    // Sanitized error event objects do not include a nested error attribute. In
     12    // that case, we return early to prevent a needless TypeError when defining
     13    // `data`, below. Also, sanitized errors don't include any useful information,
     14    // so the sensible thing to do is to completely ignore them.
     15    if ( ! error ) {
     16        return;
     17    }
    1718
    18         // Set tracesSampleRate to 1.0 to capture 100%
    19         // of transactions for performance monitoring.
    20         // We recommend adjusting this value in production
    21         tracesSampleRate: 1.0,
    22     } );
    23 
    24     // We still need to report the head errors, if any.
    25     headErrors.forEach( ( error ) => Sentry.captureException( error ) );
    26     Sentry.flush().then( () => delete window._jsErr );
    27 }
    28 
    29 // Activate the home-brew error-reporting
    30 function activateHomebrewErrorReporting() {
    31     const reportError = ( { error } ) => {
    32         // Sanitized error event objects do not include a nested error attribute. In
    33         // that case, we return early to prevent a needless TypeError when defining
    34         // `data`, below. Also, sanitized errors don't include any useful information,
    35         // so the sensible thing to do is to completely ignore them.
    36         if ( ! error ) {
    37             return;
    38         }
    39 
    40         const data = {
    41             message: error.message,
    42             trace: error.stack,
    43             url: document.location.href,
    44             feature: 'wp-admin',
    45         };
    46 
    47         return (
    48             apiFetch( {
    49                 global: true,
    50                 path: '/rest/v1.1/js-error',
    51                 method: 'POST',
    52                 data: { error: JSON.stringify( data ) },
    53             } )
    54                 // eslint-disable-next-line no-console
    55                 .catch( () => console.error( 'Error: Unable to record the error in Logstash.' ) )
    56         );
     19    const data = {
     20        message: error.message,
     21        trace: error.stack,
     22        url: document.location.href,
     23        feature: 'wp-admin',
    5724    };
    5825
    59     window.addEventListener( 'error', reportError );
     26    return (
     27        apiFetch( {
     28            global: true,
     29            path: '/rest/v1.1/js-error',
     30            method: 'POST',
     31            data: { error: JSON.stringify( data ) },
     32        } )
     33            // eslint-disable-next-line no-console
     34            .catch( () => console.error( 'Error: Unable to record the error in Logstash.' ) )
     35    );
     36};
    6037
    61     // We still need to report the head errors, if any.
    62     Promise.allSettled( headErrors.map( reportError ) ).then( () => delete window._jsErr );
    63 }
     38window.addEventListener( 'error', reportError );
    6439
    65 if ( shouldActivateSentry ) {
    66     activateSentry();
    67 } else {
    68     activateHomebrewErrorReporting();
    69 }
    70 
    71 // Remove the head handler as it's not needed anymore after we set the main one above (either Sentry or homebrew)
     40// Remove the head handler as it's not needed anymore after we set the main one above
    7241window.removeEventListener( 'error', headErrorHandler );
    7342delete window._headJsErrorHandler;
     43
     44
     45
  • full-site-editing/trunk/error-reporting/index.php

    r2573425 r2573438  
    4242
    4343/**
    44  * Temporary function to feature flag Sentry by segment. We'll be testing
    45  * it on production (simple sites) for a while to see if it's feasible to
    46  * activate it for all sites and perhaps get rid of our custom solution.
    47  * If it works well, we'll activate for all simple sites and look into.
    48  * activating it for WoA, too.
    49  *
    50  * @param int $user_id the user id.
    51  * @return bool
     44 * Enqueue assets
    5245 */
    53 function user_in_sentry_test_segment( $user_id ) {
    54     $current_segment = 1; // segment of existing users that will get this feature in %.
    55     $user_segment    = $user_id % 100;
     46function enqueue_script() {
     47    $asset_file          = include plugin_dir_path( __FILE__ ) . 'dist/error-reporting.asset.php';
     48    $script_dependencies = isset( $asset_file['dependencies'] ) ? $asset_file['dependencies'] : array();
     49    $script_version      = isset( $asset_file['version'] ) ? $asset_file['version'] : filemtime( plugin_dir_path( __FILE__ ) . 'dist/error-reporting.js' );
    5650
    57     // We get the last two digits of the user id and that will be used to decide in what
    58     // segment the user is. i.e if current_segment is 10, then only ids that end in < 10
    59     // will be considered part of the segment.
    60     return $user_segment < $current_segment;
     51    wp_enqueue_script(
     52        'a8c-fse-error-reporting-script',
     53        plugins_url( 'dist/error-reporting.js', __FILE__ ),
     54        $script_dependencies,
     55        $script_version,
     56        true
     57    );
     58}
     59
     60/**
     61 * Effectivelly activates the error reporting module by setting the necessary hooks.
     62 */
     63function activate_error_reporting() {
     64    add_action( 'admin_print_scripts', __NAMESPACE__ . '\head_error_handler' );
     65    add_filter( 'script_loader_tag', __NAMESPACE__ . '\add_crossorigin_to_script_els', 99, 2 );
     66    // We load as last as possible for perf reasons. The head handler will
     67    // capture errors until the main handler is loaded.
     68    add_action( 'admin_enqueue_scripts', __NAMESPACE__ . '\enqueue_script', 99 );
    6169}
    6270
     
    7078}
    7179
    72 /**
    73  * Return whether Sentry should be activated for a given user.
    74  *
    75  * In this phase, a12s have the possibility of configuring what error reporter to choose
    76  * through the sticker. a12s shouldn not be covered by the segment logic.
    77  *
    78  * Regular users have the error reporter chosen based on the segmentation logic, only.
    79  *
    80  * @param int $user_id The user id. Used to check if the user is A8C or in
    81  * the Sentry test segment.
    82  * @param int $blog_id The blog ID. Usually the value of `get_current_blog_id`.
    83  * Used to check if the sticker is applied if user is A8C.
    84  */
    85 function should_activate_sentry( $user_id, $blog_id ) {
    86     return ( is_automattician( $user_id ) && has_blog_sticker( 'error-reporting-use-sentry', $blog_id ) )
    87         || ( ! is_automattician( $user_id ) && user_in_sentry_test_segment( $user_id ) );
    88 }
    89 
    90 /**
    91  * Enqueue assets
    92  */
    93 function enqueue_script() {
    94     $asset_file          = include plugin_dir_path( __FILE__ ) . 'dist/error-reporting.asset.php';
    95     $script_dependencies = isset( $asset_file['dependencies'] ) ? $asset_file['dependencies'] : array();
    96     $script_version      = isset( $asset_file['version'] ) ? $asset_file['version'] : filemtime( plugin_dir_path( __FILE__ ) . 'dist/error-reporting.js' );
    97     $script_id           = 'a8c-fse-error-reporting-script';
    98 
    99     wp_enqueue_script(
    100         $script_id,
    101         plugins_url( 'dist/error-reporting.js', __FILE__ ),
    102         $script_dependencies,
    103         $script_version,
    104         true
    105     );
    106 
    107     wp_localize_script(
    108         $script_id,
    109         'A8C_ETK_ErrorReporting_Config',
    110         array(
    111             'shouldActivateSentry' => should_activate_sentry( get_current_user_id(), get_current_blog_id() ) ? 'true' : 'false',
    112         )
    113     );
    114 }
    115 
    116 /**
    117  * Setup the error reporting module by setting the necessary hooks. Whether or not we get the
    118  * homebrew version or Sentry is decided inside the `enqueue_script` function, stored in a bool
    119  * var, and passed over to the clientside script (index.js) which will then use this value to
    120  * decide what tool to activate.
    121  */
    122 function setup_error_reporting() {
    123     add_action( 'admin_print_scripts', __NAMESPACE__ . '\head_error_handler', 0 );
    124     add_filter( 'script_loader_tag', __NAMESPACE__ . '\add_crossorigin_to_script_els', 99, 2 );
    125     // We load as last as possible for perf reasons. The head handler will
    126     // capture errors until the main handler is loaded.
    127     add_action( 'admin_enqueue_scripts', __NAMESPACE__ . '\enqueue_script', 99 );
    128 }
    129 
    13080// We don't want to activate this module in AT just yet. See https://wp.me/p4TIVU-9DI#comment-10922.
    13181// @todo Remove once we have a version that works for WPCOM simple sites and WoA.
    13282if ( ! is_atomic() ) {
    133     setup_error_reporting();
     83    _error_reporting();
    13484}
  • full-site-editing/trunk/full-site-editing-plugin.php

    r2573425 r2573438  
    33 * Plugin Name: WordPress.com Editing Toolkit
    44 * Description: Enhances your page creation workflow within the Block Editor.
    5  * Version: 3.11814
     5 * Version: 3.118
    66 * Author: Automattic
    77 * Author URI: https://automattic.com/wordpress-plugins/
     
    4343 * @var string
    4444 */
    45 define( 'A8C_ETK_PLUGIN_VERSION', '3.11814' );
     45define( 'A8C_ETK_PLUGIN_VERSION', '3.118' );
    4646
    4747// Always include these helper files for dotcom FSE.
  • full-site-editing/trunk/phpunit/bootstrap.php

    r2573425 r2573438  
    6262// Don't let deprecation notices cause tests to fail.
    6363PHPUnit\Framework\Error\Deprecated::$enabled = false;
    64 
    65 // Global function stubs that might be needed by all tests.
    66 
    67 /**
    68  * Stub for the `is_automattician` function.
    69  *
    70  * This function is only used by the `class-errorreporting-activation-test.php`
    71  * test at the moment. It needs to be defined here because for some reason it's
    72  * not loaded by default globally in the test env,and since it's when the error
    73  * reporting php module is loaded, and since all modules are loaded here for
    74  * each test, defining it globally here is needed in order to not break the
    75  * tests due to it being undefined.
    76  *
    77  * Check the `class-errorreporting-activation-test.php` test to make sense
    78  * of the implementation here.
    79  *
    80  * @param int $user_id The user id.
    81  */
    82 function is_automattician( $user_id ) {
    83     return ( 8898 === $user_id || 8808 === $user_id );
    84 }
  • full-site-editing/trunk/readme.txt

    r2573425 r2573438  
    44Requires at least: 5.5
    55Tested up to: 5.6
    6 Stable tag: 3.11814
     6Stable tag: 3.118
    77Requires PHP: 5.6.20
    88License: GPLv2 or later
Note: See TracChangeset for help on using the changeset viewer.