PageSourceSearch

https://www.cacareerzone.org/js/legacy.js?instance-F1022949068098IGZYFV=_

js cacareerzone.org collected 2026-10-01 13:06:18 UTC 568,561 bytes, 2 lines download raw bytes

1let Sentry;if(!function(){"use strict";var m={d(e,t){for(const n in t)m.o(t,n)&&!m.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}};m.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),m.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},m.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var e={};m.r(e),m.d(e,{BrowserClient(){return bu},MULTIPLEXED_TRANSPORT_EXTRA_KEY(){return ii},OpenFeatureIntegrationHook(){return t_},SDK_VERSION(){return u},SEMANTIC_ATTRIBUTE_SENTRY_OP(){return Xn},SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN(){return Qn},SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE(){return Kn},SEMANTIC_ATTRIBUTE_SENTRY_SOURCE(){return Gn},Scope(){return Ce},WINDOW(){return $o},addBreadcrumb(){return li},addEventProcessor(){return Oo},addIntegration(){return Ke},breadcrumbsIntegration(){return kd},browserApiErrorsIntegration(){return Td},browserProfilingIntegration(){return Kv},browserSessionIntegration(){return Ad},browserTracingIntegration(){return iv},buildLaunchDarklyFlagUsedHandler(){return Zv},captureConsoleIntegration(){return vi},captureEvent(){return _o},captureException(){return yo},captureFeedback(){return ze},captureMessage(){return vo},captureSession(){return Po},chromeStackLineParser(){return ju},close(){return Ao},consoleLoggingIntegration(){return Li},contextLinesIntegration(){return ap},continueTrace(){return Qi},createConsolaReporter(){return ds},createLangChainCallbackHandler(){return $a},createTransport(){return Va},createUserFeedbackEnvelope(){return Xu},cultureContextIntegration(){return Md},dedupeIntegration(){return Ja},defaultRequestInstrumentationOptions(){return Ly},defaultStackLineParsers(){return Gu},defaultStackParser(){return Ku},diagnoseSdkConnectivity(){return a_},elementTimingIntegration(){return hv},endSession(){return No},eventFiltersIntegration(){return Za},eventFromException(){return gu},eventFromMessage(){return yu},exceptionFromError(){return du},extraErrorDataIntegration(){return rc},featureFlagsIntegration(){return uc},feedbackAsyncIntegration(){return zo},feedbackIntegration(){return Vo},feedbackSyncIntegration(){return Vo},flush(){return Io},forceLoad(){return Vd},functionToStringIntegration(){return fc},geckoStackLineParser(){return qu},getActiveSpan(){return no},getClient(){return He},getCurrentScope(){return je},getDefaultIntegrations(){return Wd},getFeedback(){return _t},getGlobalScope(){return Be},getIsolationScope(){return Fe},getReplay(){return zg},getRootSpan(){return eo},getSpanDescendants(){return Zr},getSpanStatusFromHttpCode(){return xr},getTraceData(){return hc},globalHandlersIntegration(){return Dd},graphqlClientIntegration(){return _p},growthbookIntegration(){return i_},httpClientIntegration(){return ep},httpContextIntegration(){return jd},inboundFiltersIntegration(){return ec},init(){return zd},instrumentAnthropicAiClient(){return kc},instrumentCreateReactAgent(){return Ic},instrumentGoogleGenAIClient(){return $c},instrumentLangChainEmbeddings(){return Fc},instrumentLangGraph(){return Ac},instrumentOpenAiClient(){return zc},instrumentOutgoingRequests(){return Py},instrumentSupabaseClient(){return tl},isBotUserAgent(){return rv},isEnabled(){return Mo},isInitialized(){return Ro},lastEventId(){return Co},launchDarklyIntegration(){return Qv},lazyLoadIntegration(){return Wo},linkedErrorsIntegration(){return Hd},logger(){return t},makeBrowserOfflineTransport(){return Tv},makeFetchTransport(){return Ru},makeMultiplexedTransport(){return ai},metrics(){return n},moduleMetadataIntegration(){return El},onLoad(){return Jd},openFeatureIntegration(){return e_},opera10StackLineParser(){return zu},opera11StackLineParser(){return Ju},parameterize(){return rl},registerSpanErrorInstrumentation(){return Nl},registerWebWorker(){return u_},replayCanvasIntegration(){return vy},replayIntegration(){return Ug},reportPageLoaded(){return mv},reportingObserverIntegration(){return Xd},rewriteFramesIntegration(){return jl},sendFeedback(){return lt},setActiveSpanInBrowser(){return gv},setContext(){return bo},setConversationId(){return Eo},setCurrentClient(){return Fl},setExtra(){return wo},setExtras(){return So},setHttpStatus(){return Tr},setMeasurement(){return Hi},setTag(){return xo},setTags(){return ko},setUser(){return To},showReportDialog(){return Gd},spanStreamingIntegration(){return vv},spanToBaggageHeader(){return uo},spanToJSON(){return Ur},spanToTraceHeader(){return $r},spotlightBrowserIntegration(){return Xv},startBrowserTracingNavigationSpan(){return av},startBrowserTracingPageLoadSpan(){return sv},startInactiveSpan(){return Xi},startNewTrace(){return ts},startSession(){return Do},startSpan(){return Ki},startSpanManual(){return Yi},statsigIntegration(){return s_},supabaseIntegration(){return nl},suppressTracing(){return es},thirdPartyErrorFilterIntegration(){return Bl},uiProfiler(){return Ou},unleashIntegration(){return n_},updateSpanName(){return oo},viewHierarchyIntegration(){return bp},webWorkerIntegration(){return c_},winjsStackLineParser(){return Hu},withActiveSpan(){return Zi},withIsolationScope(){return Ue},withScope(){return qe},withStreamedSpan(){return qi},zodErrorsIntegration(){return zl}});var t={};m.r(t),m.d(t,{debug(){return al},error(){return ul},fatal(){return dl},fmt(){return ol},info(){return cl},trace(){return sl},warn(){return ll}});var n={};m.r(n),m.d(n,{count(){return _l},distribution(){return Sl},gauge(){return bl}});const L=globalThis,u="10.52.0";function l(){return a(L),L}function a(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||u,t[u]=t[u]||{}}function r(e,t,n=L){const r=n.__SENTRY__=n.__SENTRY__||{},o=r[u]=r[u]||{};return o[e]||(o[e]=t())}const T="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,o=Object.prototype.toString;function c(e){switch(o.call(e)){case"[object Error]":case"[object E
1xception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return v(e,Error)}}function d(e,t){return o.call(e)===`[object ${t}]`}function p(e){return d(e,"ErrorEvent")}function f(e){return d(e,"DOMError")}function h(e){return d(e,"String")}function E(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function P(e){return null===e||E(e)||"object"!=typeof e&&"function"!=typeof e}function _(e){return d(e,"Object")}function g(e){return"undefined"!=typeof Event&&v(e,Event)}function y(e){return Boolean(e?.then&&"function"==typeof e.then)}function v(e,t){try{return e instanceof t}catch{return!1}}function b(e){return"object"==typeof e&&null!==e&&(e.__isVue||e._isVue||e.__v_isVNode)}function S(e){return"undefined"!=typeof Request&&v(e,Request)}const w=L,k=80;function $(o,i={}){if(!o)return"<unknown>";try{let e=o;const l=[];let t=0,n=0;var s=" > ".length;let r;for(var a=Array.isArray(i)?i:i.keyAttrs,c=!Array.isArray(i)&&i.maxStringLength||k;e&&t++<5&&(r=function(e,t){const n=e,r=[];if(!n?.tagName)return"";if(w.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const o=t?.length?t.filter(e=>n.getAttribute(e)).map(e=>[e,n.getAttribute(e)]):null;if(o?.length)o.forEach(e=>{r.push(`[${e[0]}="${e[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const e=n.className;if(e&&h(e)){const t=e.split(/\s+/);for(const e of t)r.push(`.${e}`)}}for(const e of["aria-label","type","name","title","alt"]){const t=n.getAttribute(e);t&&r.push(`[${e}="${t}"]`)}return r.join("")}(e,a),!("html"===r||1<t&&n+l.length*s+r.length>=c));)l.push(r),n+=r.length,e=e.parentNode;return l.reverse().join(" > ")}catch{return"<unknown>"}}function j(){try{return w.document.location.href}catch{return""}}function F(e,t=5){if(!w.HTMLElement)return null;let n=e;for(let e=0;e<t;e++){if(!n)return null;if(n instanceof HTMLElement){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}n=n.parentNode}return null}const i=["debug","info","warn","error","log","assert","trace"],s={};function B(e){if(!("console"in L))return e();const n=L.console,r={},t=Object.keys(s);t.forEach(e=>{var t=s[e];r[e]=n[e],n[e]=t});try{return e()}finally{t.forEach(e=>{n[e]=r[e]})}}function x(){return I().enabled}function C(e,...t){T&&x()&&B(()=>{L.console[e](`Sentry Logger [${e}]:`,...t)})}function I(){return T?r("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const te={enable(){I().enabled=!0},disable(){I().enabled=!1},isEnabled:x,log(...e){C("log",...e)},warn(...e){C("warn",...e)},error(...e){C("error",...e)}};function A(e,t,n){if(t in e){var r=e[t];if("function"==typeof r){n=n(r);"function"==typeof n&&M(n,r);try{e[t]=n}catch{T&&te.log(`Failed to replace method "${t}" in object`,e)}}}}function R(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{T&&te.log(`Failed to add non-enumerable property "${String(t)}" to object`,e)}}function M(e,t){try{var n=t.prototype||{};e.prototype=t.prototype=n,R(e,"__sentry_original__",t)}catch{}}function O(e){return e.__sentry_original__}function D(e){if(c(e))return{message:e.message,name:e.name,stack:e.stack,...q(e)};if(g(e)){const t={type:e.type,target:N(e.target),currentTarget:N(e.currentTarget),...q(e)};return"undefined"!=typeof CustomEvent&&v(e,CustomEvent)&&(t.detail=e.detail),t}return e}function N(e){try{return"undefined"!=typeof Element&&v(e,Element)?$(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function q(e){return"object"==typeof e&&null!==e?Object.fromEntries(Object.entries(e)):{}}let U;function H(e){if(void 0!==U)return U?U(e):e();var t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=L;return t in n&&"function"==typeof n[t]?(U=n[t],U(e)):(U=null,e())}function W(){return H(()=>Math.random())}function z(){return H(()=>Date.now())}const V=50,J="?",G=/\(error: (.*)\)/,K=/captureMessage|captureException/;function Y(...e){const a=e.sort((e,t)=>
1e[0]-t[0]).map(e=>e[1]);return(n,e=0,r=0)=>{const o=[],i=n.split("\n");for(let t=e;t<i.length;t++){let e=i[t];1024<e.length&&(e=e.slice(0,1024));const s=G.test(e)?e.replace(G,"$1"):e;if(!s.includes("Error: ")){for(const n of a){const a=n(s);if(a){o.push(a);break}}if(o.length>=V+r)break}}return function(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(X(t).function||"")&&t.pop(),t.reverse(),K.test(X(t).function||"")&&(t.pop(),K.test(X(t).function||"")&&t.pop()),t.slice(0,V).map(e=>({...e,filename:e.filename||X(t).filename,function:e.function||J}))}(o.slice(r))}}function X(e){return e[e.length-1]||{}}const Q="<anonymous>";function Z(e){try{return e&&"function"==typeof e&&e.name||Q}catch{return Q}}function ee(t){const e=t.exception;if(e){const t=[];try{return e.values.forEach(e=>{e.stacktrace.frames&&t.push(...e.stacktrace.frames)}),t}catch{}}}function ne(e){return"__v_isVNode"in e&&e.__v_isVNode?"[VueVNode]":"[VueViewModel]"}function re(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function oe(e,t){let n=e;e=n.length;if(e<=150)return n;e<t&&(t=e);let r=Math.max(t-60,0);r<5&&(r=0);let o=Math.min(r+140,e);return o>e-5&&(o=e),o===e&&(r=Math.max(o-140,0)),n=n.slice(r,o),0<r&&(n=`'{snip} ${n}`),o<e&&(n+=" {snip}"),n}function ie(t,e){if(!Array.isArray(t))return"";const n=[];for(let e=0;e<t.length;e++){var r=t[e];try{b(r)?n.push(ne(r)):n.push(String(r))}catch{n.push("[value cannot be serialized]")}}return n.join(e)}function se(e,t,n=!1){return!!h(e)&&(d(t,"RegExp")?t.test(e):h(t)?n?e===t:e.includes(t):"function"==typeof t&&t(e))}function ae(t,e=[],n=!1){return e.some(e=>se(t,e,n))}let ce;function le(e=function(){var e=L;return e.crypto||e.msCrypto}()){try{if(e?.randomUUID)return H(()=>e.randomUUID()).replace(/-/g,"")}catch{}return ce=ce||[1e7]+1e3+4e3+8e3+1e11,ce.replace(/[018]/g,e=>(e^(16*W()&15)>>e/4).toString(16))}function ue(e){return e.exception?.values?.[0]}function de(e){var{message:t,event_id:n}=e;if(t)return t;e=ue(e);return e?e.type&&e.value?`${e.type}: ${e.value}`:e.type||e.value||n||"<unknown>":n||"<unknown>"}function pe(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type=n||"Error")}function fe(e,t){const n=ue(e);if(n){e=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...e,...t},t&&"data"in t){const r={...e?.data,...t.data};n.mechanism.data=r}}}function he(e){if(function(e){try{return e.__sentry_captured__}catch{}}(e))return 1;try{R(e,"__sentry_captured__",!0)}catch{}}const me=1e3;function ge(){return z()/me}let ye;function ve(){return(ye=ye??function(){const e=L["performance"];if(!e?.now||!e.timeOrigin)return ge;const t=e.timeOrigin;return()=>(t+H(()=>e.now()))/me}())()}let _e=null;function be(){return null===_e&&(_e=function(){const e=L["performance"];if(e?.now){var t=H(()=>e.now()),n=z(),r=e.timeOrigin;if("number"==typeof r&&Math.abs(r+t-n)<3e5)return r;r=e.timing?.navigationStart;return"number"==typeof r&&Math.abs(r+t-n)<3e5?r:n-t}}()),_e}function Se(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||ve(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:le()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=0<=t?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function we(e,t,n=2){if(!t||"object"!=typeof t||n<=0)return t;if(e&&0===Object.keys(t).length)return e;const r={...e};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=we(r[e],t[e],n-1));return r}function ke(){return le().substring(16)}const xe="_sentrySpan";function Te(e,t){t?R(e,xe,t):delete e[xe]}function Ee(e){return e[xe]}class Ce{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:le(),sampleRand:W()}}clone(){const e=new Ce;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._attributes={...this._attributes},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,e._conversationId=this._conversationId,Te(e,Ee(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Se(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e,n=t instanceof Ce?t.getScopeData():_(t)?e:void 0,{tags:r,attributes:o,extra:i,user:s,contexts:a,level:c,fingerprint:l=[],propagationContext:u,conversationId:d}=n||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...o},this._extra={...this._extra,...i},this._contexts={...this._contexts,...a},s&&Object.keys(s).length&&(this._user=s),c&&(this._level=c),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),d&&(this._conversationId=d),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,Te(this,void 0),this._attachments=[],this.setPropagationContext({traceId:le(),sampleRand:W()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){t="number"==typeof t?t:100;if(t<=0)return this;e={timestamp:ge(),...e,message:e.message&&re(e.message,2048)};return this._breadcrumbs.push(e),this._breadcrumbs.length>t&&(this._breadcrumbs=this._breadcrumbs.slice(-t),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Ee(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=we(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){var n=t?.event_id||le();if(!this._client)return T&&te.warn("No client configured on scope - will not capture exception!"),n;var r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){var r=n?.event_id||le();if(!this._client)return T&&te.warn("No client configured on scope - will not capture message!"),r;var o=n?.syntheticException??new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:r},this),r}captureEvent(e,t){var n=e.event_id||t?.event_id||le();return this._client?this._client.captureEvent(e,{...t,event_id:n},this):T&&te.warn("No client configured on scope - will not capture event!"),n}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
1h(e=>{e(this)}),this._notifyingListeners=!1)}}const Ie=e=>e instanceof Promise&&!e[Ae],Ae=Symbol("chained PromiseLike"),Re=(e,t,n)=>{var r=e.then(e=>(t(e),e),e=>{throw n(e),e});return Ie(r)&&Ie(e)?r:((t,e)=>{if(!e)return t;let n=!1;for(const r in t){if(r in e)continue;n=!0;const o=t[r];typeof o==="function"?Object.defineProperty(e,r,{value:(...e)=>o.apply(t,e),enumerable:!0,configurable:!0,writable:!0}):e[r]=o}return n&&Object.assign(e,{[Ae]:!0}),e})(e,r)};class Me{constructor(e,t){e=e||new Ce,t=t||new Ce;this._stack=[{scope:e}],this._isolationScope=t}withScope(e){var t=this._pushScope();let n;try{n=e(t)}catch(e){throw this._popScope(),e}return y(n)?Re(n,()=>this._popScope(),()=>this._popScope()):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){var e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1||!this._stack.pop())}}function Oe(){const e=a(l());return e.stack=e.stack||new Me(r("defaultCurrentScope",()=>new Ce),r("defaultIsolationScope",()=>new Ce))}function De(e){return Oe().withScope(e)}function Ne(e,t){const n=Oe();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function Le(e){return Oe().withScope(()=>e(Oe().getIsolationScope()))}function Pe(e){e=a(e);return e.acs||{withIsolationScope:Le,withScope:De,withSetScope:Ne,withSetIsolationScope:(e,t)=>Le(t),getCurrentScope:()=>Oe().getScope(),getIsolationScope:()=>Oe().getIsolationScope()}}let $e;function je(){return Pe(l()).getCurrentScope()}function Fe(){return Pe(l()).getIsolationScope()}function Be(){return r("globalScope",()=>new Ce)}function qe(...e){const t=Pe(l());if(2!==e.length)return t.withScope(e[0]);var[n,e]=e;return n?t.withSetScope(n,e):t.withScope(e)}function Ue(...e){const t=Pe(l());if(2!==e.length)return t.withIsolationScope(e[0]);var[n,e]=e;return n?t.withSetIsolationScope(n,e):t.withIsolationScope(e)}function He(){return je().getClient()}function We(e){var t=$e?.();if(t)return{trace_id:t.traceId,span_id:t.spanId};const n=e.getPropagationContext(),{traceId:r,parentSpanId:o,propagationSpanId:i}=n,s={trace_id:r,span_id:i||ke()};return o&&(s.parent_span_id=o),s}function ze(e,t={},n=je()){const{message:r,name:o,email:i,url:s,source:a,associatedEventId:c,tags:l}=e,u={contexts:{feedback:{contact_email:i,name:o,message:r,url:s,source:a,associated_event_id:c}},type:"feedback",level:"info",tags:l},d=n?.getClient()||He();return d&&d.emit("beforeSendFeedback",u,t),n.captureEvent(u,t)}const Ve=[];function Je(e,t){for(const n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function Ge(n,r,o){if(o[r.name])T&&te.log(`Integration skipped because it was already installed: ${r.name}`);else{if(o[r.name]=r,Ve.includes(r.name)||"function"!=typeof r.setupOnce||(r.setupOnce(),Ve.push(r.name)),r.setup&&"function"==typeof r.setup&&r.setup(n),"function"==typeof r.preprocessEvent){const o=r.preprocessEvent.bind(r);n.on("preprocessEvent",(e,t)=>o(e,t,n))}if("function"==typeof r.processEvent){const o=r.processEvent.bind(r),e=Object.assign((e,t)=>o(e,t,n),{id:r.name});n.addEventProcessor(e)}["processSpan","processSegmentSpan"].forEach(e=>{const t=r[e];"function"==typeof t&&n.on(e,e=>t.call(r,e,n))}),T&&te.log(`Integration installed: ${r.name}`)}}function Ke(e){const t=He();t?t.addIntegration(e):T&&te.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`)}function Ye(){return!("undefined"==typeof window||("undefined"==typeof __SENTRY_BROWSER_BUNDLE__||!__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)&&"renderer"!==L.process?.type)}const Xe=L,Qe=Xe.document,Ze=Xe.navigator,et="Report a Bug",tt="Unable to submit feedback with empty message",nt="No client setup, cannot send feedback.",rt="Unable to determine if Feedback was correctly sent.",ot="Unable to send feedback. This could be because this domain is not in your list of allowed domains.",it="Unable to send feedback. This could be because of network issues, or because you are using an ad-blocker.",st={ERROR_EMPTY_MESSAGE:tt,ERROR_NO_CLIENT:nt,ERROR_TIMEOUT:rt,ERROR_FORBIDDEN:ot,ERROR_GENERIC:it};function at(e,t){return t?.[e]??st[e]}function ct(e,t){return new Error(at(e,t))}const lt=(e,t={includeReplay:!0})=>{const s=t.errorMessages;if(!e.message)throw ct("ERROR_EMPTY_MESSAGE",s);const a=He();if(!a)throw ct("ERROR_NO_CLIENT",s);e.tags&&Object.keys(e.tags).length&&je().setTags(e.tags);const c=ze({source:"api",url:j(),...e},t);return new Promise((n,r)=>{const o=setTimeout(()=>{i(),r(at("ERROR_TIMEOUT",s))},3e4),i=a.on("afterSendEvent",(e,t)=>{if(e.event_id===c)return clearTimeout(o),i(),t?.statusCode&&200<=t.statusCode&&t.statusCode<300?n(c):r(at(403===t?.statusCode?"ER
1ROR_FORBIDDEN":"ERROR_GENERIC",s))})})},ut="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function dt(n,r){return{...n,...r,tags:{...n.tags,...r.tags},onFormOpen:()=>{r.onFormOpen?.(),n.onFormOpen?.()},onFormClose:()=>{r.onFormClose?.(),n.onFormClose?.()},onSubmitSuccess:(e,t)=>{r.onSubmitSuccess?.(e,t),n.onSubmitSuccess?.(e,t)},onSubmitError:e=>{r.onSubmitError?.(e),n.onSubmitError?.(e)},onFormSubmitted:()=>{r.onFormSubmitted?.(),n.onFormSubmitted?.()},themeDark:{...n.themeDark,...r.themeDark},themeLight:{...n.themeLight,...r.themeLight}}}function pt(n,e){return Object.entries(e).forEach(([e,t])=>{n.setAttributeNS(null,e,t)}),n}const ft="rgba(88, 74, 192, 1)",ht={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:ft,successColor:"#268d75",errorColor:"#df3338",border:"1.5px solid rgba(41, 35, 47, 0.13)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(95%)"},mt={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackground:ft,successColor:"#2da98c",errorColor:"#f55459",border:"1.5px solid rgba(235, 230, 239, 0.15)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(150%)"};function gt(e){return`\n  --foreground: ${e.foreground};\n  --background: ${e.background};\n  --accent-foreground: ${e.accentForeground};\n  --accent-background: ${e.accentBackground};\n  --success-color: ${e.successColor};\n  --error-color: ${e.errorColor};\n  --border: ${e.border};\n  --box-shadow: ${e.boxShadow};\n  --outline: ${e.outline};\n  --interactive-filter: ${e.interactiveFilter};\n  `}function yt({colorScheme:e,themeDark:t,themeLight:n,styleNonce:r}){const o=Qe.createElement("style");return o.textContent=`\n:host {\n  --font-family: system-ui, 'Helvetica Neue', Arial, sans-serif;\n  --font-size: 14px;\n  --z-index: 100000;\n\n  --page-margin: 16px;\n  --inset: auto 0 0 auto;\n  --actor-inset: var(--inset);\n\n  font-family: var(--font-family);\n  font-size: var(--font-size);\n\n  ${"system"!==e?`color-scheme: only ${e};`:""}\n\n  ${gt("dark"===e?{...mt,...t}:{...ht,...n})}\n}\n\n${"system"===e?`\n@media (prefers-color-scheme: dark) {\n  :host {\n    color-scheme: only dark;\n\n    ${gt({...mt,...t})}\n  }\n}`:""}\n`,r&&o.setAttribute("nonce",r),o}var vt=({lazyLoadIntegration:Q,getModalIntegration:Z,getScreenshotIntegration:ee})=>({id:e="sentry-feedback",autoInject:t=!0,showBranding:n=!0,isEmailRequired:r=!1,isNameRequired:o=!1,showEmail:i=!0,showName:s=!0,enableScreenshot:a=!0,useSentryUser:c={email:"email",name:"username"},tags:l,styleNonce:u,scriptNonce:d,colorScheme:p="system",themeLight:f={},themeDark:h={},addScreenshotButtonLabel:m="Add a screenshot",cancelButtonLabel:g="Cancel",confirmButtonLabel:y="Confirm",emailLabel:v="Email",emailPlaceholder:_="[email protected]",formTitle:b="Report a Bug",isRequiredLabel:S="(required)",messageLabel:w="Description",messagePlaceholder:k="What's the bug? What did you expect?",nameLabel:x="Name",namePlaceholder:T="Your Name",removeScreenshotButtonLabel:E="Remove screenshot",submitButtonLabel:C="Send Bug Report",successMessageText:I="Thank you for your report!",triggerLabel:A=et,triggerAriaLabel:R="",highlightToolText:M="Highlight",hideToolText:O="Hide",removeHighlightText:D="Remove",errorEmptyMessageText:N=tt,errorNoClientText:L=nt,errorTimeoutText:P=rt,errorForbiddenText:$=ot,errorGenericText:j=it,onFormOpen:F,onFormClose:B,onSubmitSuccess:q,onSubmitError:U,onFormSubmitted:H}={})=>{const W={id:e,autoInject:t,showBranding:n,isEmailRequired:r,isNameRequired:o,showEmail:i,showName:s,enableScreenshot:a,useSentryUser:c,tags:l,styleNonce:u,scriptNonce:d,colorScheme:p,themeDark:h,themeLight:f,triggerLabel:A,triggerAriaLabel:R,cancelButtonLabel:g,submitButtonLabel:C,confirmButtonLabel:y,formTitle:b,emailLabel:v,emailPlaceholder:_,messageLabel:w,messagePlaceholder:k,nameLabel:x,namePlaceholder:T,successMessageText:I,isRequiredLabel:S,addScreenshotButtonLabel:m,removeScreenshotButtonLabel:E,highlightToolText:M,hideToolText:O,removeHighlightText:D,errorEmptyMessageText:N,errorNoClientText:L,errorTimeoutText:P,errorForbiddenText:$,errorGenericText:j,onFormClose:B,onFormOpen:F,onSubmitError:U,onSubmitSuccess:q,onFormSubmitted:H};let z=null,V=null,J=[];const G=e=>{if(!z){const t=Qe.createElement("div");t.id=String(e.id),Qe.body.appendChild(t),z=t.attachShadow({mode:"open"}),V=yt(e),z.appendChild(V)}return z},K=async e=>{var t=e.enableScreenshot&&!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(Ze.userAgent)||/Macintosh/i.test(Ze.userAgent)&&Ze.maxTouchPoints&&1<Ze.maxTouchPoints||!isSecureContext);let n,r;try{n=(Z?Z():await Q("feedbackModalIntegration",d))(),Ke(n)}catch{throw ut&&te.error("[Feedback] Error when trying to load feedback integrations. Try using `feedbackSyncIntegration` in your `Sentry.init`."),new Error("[Feedback] Missing feedback modal integration!")}try{const Z=t?ee?ee():await Q("feedbackScreenshotIntegration",d):void 0;Z&&(r=Z(),Ke(r))}catch{ut&&te.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.")}const o={ERROR_EMPTY_MESSAGE:e.errorEmptyMessageText,ERROR_NO_CLIENT:e.errorNoClientText,E
1RROR_TIMEOUT:e.errorTimeoutText,ERROR_FORBIDDEN:e.errorForbiddenText,ERROR_GENERIC:e.errorGenericText},i=n.createDialog({options:{...e,onFormClose:()=>{i?.close(),e.onFormClose?.()},onFormSubmitted:()=>{i?.close(),e.onFormSubmitted?.()}},screenshotIntegration:r,sendFeedback:(e,t)=>lt(e,{includeReplay:!0,...t,errorMessages:o}),shadow:G(e)});return i},Y=(e,t={})=>{const n=dt(W,t),r="string"==typeof e?Qe.querySelector(e):"function"==typeof e.addEventListener?e:null;if(!r)throw ut&&te.error("[Feedback] Unable to attach to target element"),new Error("Unable to attach to target element");let o=null;const i=async()=>{o=o||await K({...n,onFormSubmitted:()=>{o?.removeFromDom(),n.onFormSubmitted?.()}}),o.appendToDom(),o.open()};r.addEventListener("click",i);const s=()=>{J=J.filter(e=>e!==s),o?.removeFromDom(),o=null,r.removeEventListener("click",i)};return J.push(s),s},X=(e={})=>{const t=dt(W,e),n=G(t),r=function({triggerLabel:e,triggerAriaLabel:t,shadow:n,styleNonce:r}){const o=Qe.createElement("button");if(o.type="button",o.className="widget__actor",o.ariaHidden="false",o.ariaLabel=t||e||et,o.appendChild(function(){const e=e=>Xe.document.createElementNS("http://www.w3.org/2000/svg",e),t=pt(e("svg"),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"var(--actor-color, var(--foreground))"}),n=pt(e("g"),{clipPath:"url(#clip0_57_80)"}),r=pt(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.4556 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z"});t.appendChild(n).appendChild(r);const o=e("defs"),i=pt(e("clipPath"),{id:"clip0_57_80"}),s=pt(e("rect"),{width:"20",height:"20",fill:"white"});return i.appendChild(s),o.appendChild(i),t.appendChild(o).appendChild(i).appendChild(s),t}()),e){const t=Qe.createElement("span");t.appendChild(Qe.createTextNode(e)),o.appendChild(t)}const i=function(e){const t=Qe.createElement("style");return t.textContent='\n.widget__actor {\n  position: fixed;\n  z-index: var(--z-index);\n  margin: var(--page-margin);\n  inset: var(--actor-inset);\n\n  display: flex;\n  align-items: center;\n  gap: 8px;\n  padding: 16px;\n\n  font-family: inherit;\n  font-size: var(--font-size);\n  font-weight: 600;\n  line-height: 1.14em;\n  text-decoration: none;\n\n  background: var(--actor-background, var(--background));\n  border-radius: var(--actor-border-radius, 1.7em/50%);\n  border: var(--actor-border, var(--border));
1\n  box-shadow: var(--actor-box-shadow, var(--box-shadow));\n  color: var(--actor-color, var(--foreground));\n  fill: var(--actor-color, var(--foreground));\n  cursor: pointer;\n  opacity: 1;\n  transition: transform 0.2s ease-in-out;\n  transform: translate(0, 0) scale(1);\n}\n.widget__actor[aria-hidden="true"] {\n  opacity: 0;\n  pointer-events: none;\n  visibility: hidden;\n  transform: translate(0, 16px) scale(0.98);\n}\n\n.widget__actor:hover {\n  background: var(--actor-hover-background, var(--background));\n  filter: var(--interactive-filter);\n}\n\n.widget__actor svg {\n  width: 1.14em;\n  height: 1.14em;\n}\n\n@media (max-width: 600px) {\n  .widget__actor span {\n    display: none;\n  }\n}\n',e&&t.setAttribute("nonce",e),t}(r);return{el:o,appendToDom(){n.appendChild(i),n.appendChild(o)},removeFromDom(){o.remove(),i.remove()},show(){o.ariaHidden="false"},hide(){o.ariaHidden="true"}}}({triggerLabel:t.triggerLabel,triggerAriaLabel:t.triggerAriaLabel,shadow:n,styleNonce:u});return Y(r.el,{...t,onFormOpen(){r.hide()},onFormClose(){r.show()},onFormSubmitted(){r.show()}}),r};return{name:"Feedback",setupOnce(){Ye()&&W.autoInject&&("loading"===Qe.readyState?Qe.addEventListener("DOMContentLoaded",()=>X().appendToDom()):X().appendToDom())},attachTo:Y,createWidget(e={}){const t=X(dt(W,e));return t.appendToDom(),t},async createForm(e={}){return K(dt(W,e))},setTheme(e){if(W.colorScheme=e,z){const e=yt(W);V?z.replaceChild(e,V):z.prepend(e),V=e}},remove(){z&&(z.parentElement?.remove(),z=null,V=null),J.forEach(e=>e()),J=[]}}};function _t(){const e=He();return e?.getIntegrationByName("Feedback")}let bt,St,wt,kt,xt,Tt,Et,Ct={},It=[],At=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Rt=Array.isArray;function Mt(e,t){for(const n in t)e[n]=t[n];return e}function Ot(e){const t=e.parentNode;t&&t.removeChild(e)}function Dt(e,t,n){let r,o,i,s={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:s[i]=t[i];if(2<arguments.length&&(s.children=3<arguments.length?bt.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===s[i]&&(s[i]=e.defaultProps[i]);return Nt(e,s,r,o,null)}function Nt(e,t,n,r,o){r={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==o?++wt:o,__i:-1,__u:0};return null==o&&null!=St.vnode&&St.vnode(r),r}function Lt(e){return e.children}function Pt(e,t){this.props=e,this.context=t}function $t(e,t){if(null==t)return e.__?$t(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?$t(e):null}function jt(e,t,n){let r,o=e.__v,i=o.__e,s=e.__P;if(s)return(r=Mt({},o)).__v=o.__v+1,St.vnode&&St.vnode(r),Vt(s,r,o,e.__n,void 0!==s.ownerSVGElement,32&o.__u?[i]:null,t,null==i?$t(o):i,!!(32&o.__u),n),r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=i&&function e(t){let n,r;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,n=0;n<t.__k.length;n++)if(null!=(r=t.__k[n])&&null!=r.__e){t.__e=t.__c.base=r.__e;break}return e(t)}}(r),r}function Ft(e){(!e.__d&&(e.__d=!0)&&kt.push(e)&&!Bt.__r++||xt!==St.debounceRendering)&&((xt=St.debounceRendering)||Tt)(Bt)}function Bt(){let e,t,n,r=[],o=[];for(kt.sort(Et);e=kt.shift();)e.__d&&(n=kt.length,t=jt(e,r,o)||t,0===n||kt.length>n?(Jt(r,t,o),o.length=r.length=0,t=void 0,kt.sort(Et)):t&&St.__c&&St.__c(t,It));t&&Jt(r,t,o),Bt.__r=0}function qt(e,t,n,r,o,i,s,a,c,l,u){let d,p,f,h,m,g=r&&r.__k||It,y=t.length;for(n.__d=c,function(e,t,n){let r,o,i,s,a,c=t.length,l=n.length,u=l,d=0;for(e.__k=[],r=0;r<c;r++)null!=(o=e.__k[r]=null==(o=t[r])||"boolean"==typeof o||"function"==typeof o?null:"string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?Nt(null,o,null,null,o):Rt(o)?Nt(Lt,{children:o},null,null,null):void 0===o.constructor&&0<o.__b?Nt(o.type,o.props,o.key,o.ref||null,o.__v):o)?(o.__=e,o.__b=e.__b+1,a=function(e,t,n,r){let o=e.key,i=e.type,s=n-1,a=n+1,c=t[n];if(null===c||c&&o==c.key&&i===c.type)return n;if(r>(null==c||131072&c.__u?0:1))for(;0<=s||a<t.length;){if(0<=s){if((c=t[s])&&!(131072&c.__u)&&o==c.key&&i===c.type)return s;s--}if(a<t.length){if((c=t[a])&&!(131072&c.__u)&&o==c.key&&i===c.type)return a;a++}}return-1}(o,n,s=r+d,u),o.__i=a,i=null,-1!==a&&(u--,(i=n[a])&&(i.__u|=131072)),null==i||null===i.__v?(-1==a&&d--,"function"!=typeof o.type&&(o.__u|=65536)):a!==s&&(a===s+1?d++:s<a?u>
vendor: 5,507 bytes, line 1
1c-s?d+=a-s:d--:d=a<s&&a==s-1?a-s:0,a!==r+d&&(o.__u|=65536))):(i=n[r])&&null==i.key&&i.__e&&(i.__e==e.__d&&(e.__d=$t(i)),Kt(i,i,!1),n[r]=null,u--);if(u)for(r=0;r<l;r++)null==(i=n[r])||131072&i.__u||(i.__e==e.__d&&(e.__d=$t(i)),Kt(i,i))}(n,t,g),c=n.__d,d=0;d<y;d++)null!=(f=n.__k[d])&&"boolean"!=typeof f&&"function"!=typeof f&&(p=-1!==f.__i&&g[f.__i]||Ct,f.__i=d,Vt(e,f,p,o,i,s,a,c,l,u),h=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&Gt(p.ref,null,f),u.push(f.ref,f.__c||h,f)),null==m&&null!=h&&(m=h),65536&f.__u||p.__k===f.__k?c=function e(t,n,r){let o,i;if("function"==typeof t.type){for(o=t.__k,i=0;o&&i<o.length;i++)o[i]&&(o[i].__=t,n=e(o[i],n,r));return n}t.__e!=n&&(r.insertBefore(t.__e,n||null),n=t.__e);for(;n=n&&n.nextSibling,null!=n&&8===n.nodeType;);return n}(f,c,e):"function"==typeof f.type&&void 0!==f.__d?c=f.__d:h&&(c=h.nextSibling),f.__d=void 0,f.__u&=-196609);n.__d=c,n.__e=m}function Ut(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||At.test(t)?n:`${n}px`}function Ht(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Ut(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Ut(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=(t.toLowerCase()in e?t.toLowerCase():t).slice(2),e.l||(e.l={}),(e.l[t+i]=n)?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,i?zt:Wt,i)):e.removeEventListener(t,i?zt:Wt,i);else{if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&"role"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function Wt(e){if(this.l){const t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(St.event?St.event(e):e)}}function zt(e){if(this.l)return this.l[e.type+!0](St.event?St.event(e):e)}function Vt(e,t,n,r,o,i,s,a,c,l){let u,d,p,f,h,m,g,y,v,_,b,S,w,k,x,T=t.type;if(void 0===t.constructor){128&n.__u&&(c=!!(32&n.__u),i=[a=t.__e=n.__e]),(u=St.__b)&&u(t);e:if("function"==typeof T)try{if(y=t.props,v=(u=T.contextType)&&r[u.__c],_=u?v?v.props.value:u.__:r,n.__c?g=(d=t.__c=n.__c).__=d.__E:("prototype"in T&&T.prototype.render?t.__c=d=new T(y,_):(t.__c=d=new Pt(y,_),d.constructor=T,d.render=Yt),v&&v.sub(d),d.props=y,d.state||(d.state={}),d.context=_,d.__n=r,p=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=T.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=Mt({},d.__s)),Mt(d.__s,T.getDerivedStateFromProps(y,d.__s))),f=d.props,h=d.state,d.__v=t,p)null==T.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==T.getDerivedStateFromProps&&y!==f&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(y,_),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(y,d.__s,_)||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=y,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(e){e&&(e.__=t)}),b=0;b<d._sb.length;b++)d.__h.push(d._sb[b]);d._sb=[],d.__h.length&&s.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(y,d.__s,_),null!=d.componentDidUpdate&&d.__h.push(function(){d.componentDidUpdate(f,h,m)})}if(d.context=_,d.props=y,d.__P=e,d.__e=!1,S=St.__r,w=0,"prototype"in T&&T.prototype.render){for(d.state=d.__s,d.__d=!1,S&&S(t),u=d.render(d.props,d.state,d.context),k=0;k<d._sb.length;k++)d.__h.push(d._sb[k]);d._sb=[]}else for(;d.__d=!1,S&&S(t),u=d.render(d.props,d.state,d.context),d.state=d.__s,d.__d&&++w<25;);d.state=d.__s,null!=d.getChildContext&&(r=Mt(Mt({},r),d.getChildContext())),p||null==d.getSnapshotBeforeUpdate||(m=d.getSnapshotBeforeUpdate(f,h)),qt(e,Rt(x=null!=u&&u.type===Lt&&null==u.key?u.props.children:u)?x:[x],t,n,r,o,i,s,a,c,l),d.base=t.__e,t.__u&=-161,d.__h.length&&s.push(d),g&&(d.__E=d.__=null)}catch(e){t.__v=null,c||null!=i?(t.__e=a,t.__u|=c?160:32,i[i.indexOf(a)]=null):(t.__e=n.__e,t.__k=n.__k),St.__e(e,t,n)}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,r,o,i,s,a,c){let l,u,d,p,f,h,m,g=n.props,y=t.props,v=t.type;if("svg"===v&&(o=!0),null!=i)for(l=0;l<i.length;l++)if((f=i[l])&&"setAttribute"in f==!!v&&(v?f.localName===v:3===f.nodeType)){e=f,i[l]=null;break}if(null==e){if(null===v)return document.createTextNode(y);e=o?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,y.is&&y),i=null,a=!1}if(null===v)g===y||a&&e.data===y||(e.data=y);else{if(i=i&&bt.call(e.childNodes),g=n.props||Ct,!a&&null!=i)for(g={},l=0;l<e.attributes.length;l++)g[(f=e.attributes[l]).name]=f.value;for(l in g)f=g[l],"children"==l||("dangerouslySetInnerHTML"==l?d=f:"key"===l||l in y||Ht(e,l,null,f,o));for(l in y)f=y[l],"children"==l?p=f:"dangerouslySetInnerHTML"==l?u=f:"value"==l?h=f:"checked"==l?m=f:"key"===l||a&&"function"!=typeof f||g[l]===f||Ht(e,l,f,g[l],o);if(u)a||d&&(u.__html===d.__html||u.__html===e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(d&&(e.innerHTML=""),qt(e,Rt(p)?p:[p],t,n,r,o&&"foreignObject"!==v,i,s,i?i[0]:n.__k&&$t(n,0),a,c),null!=i)for(l=i.length;l--;)null!=i[l]&&Ot(i[l]);a||(l="value",void 0!==h&&(h!==e[l]||"progress"===v&&!h||"option"===v&&h!==g[l])&&Ht(e,l,h,g[l],!1),l="checked",void 0!==m&&m!==e[l]&&Ht(e,l,m,g[l],!1))}return e}(n.__e,t,n,r,o,i,s,c,l);(u=St.diffed)&&u(t)}
vendor: 1,388 bytes, line 1
1}function Jt(e,t,n){for(let e=0;e<n.length;e++)Gt(n[e],n[++e],n[++e]);St.__c&&St.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){St.__e(e,t.__v)}})}function Gt(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){St.__e(e,n)}}function Kt(e,t,n){let r,o;if(St.unmount&&St.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Gt(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){St.__e(e,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Kt(r[o],t,n||"function"!=typeof e.type);n||null==e.__e||Ot(e.__e),e.__=e.__e=e.__d=void 0}function Yt(e,t,n){return this.constructor(e,n)}bt=It.slice,St={__e(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(t){e=t}throw e}},wt=0,Pt.prototype.setState=function(e,t){var n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=Mt({},this.state);(e="function"==typeof e?e(Mt({},n),this.props):e)&&Mt(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),Ft(this))},Pt.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ft(this))},Pt.prototype.render=Lt,kt=[],Tt="function"==typeof Promise?Promise.prototype.then.bind(Prom
1ise.resolve()):setTimeout,Et=function(e,t){return e.__v.__b-t.__v.__b},Bt.__r=0;let Xt,Qt,Zt,en,tn=0,nn=[],rn=[],on=St,sn=on.__b,an=on.__r,cn=on.diffed,ln=on.__c,un=on.unmount,dn=on.__;function pn(e,t){on.__h&&on.__h(Qt,e,tn||t),tn=0;const n=Qt.__H||(Qt.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:rn}),n.__[e]}function fn(e){return tn=1,hn(kn,e)}function hn(e,t,n){const i=pn(Xt++,2);if(i.t=e,!i.__c&&(i.__=[n?n(t):kn(void 0,t),function(e){var t=(i.__N||i.__)[0],e=i.t(t,e);t!==e&&(i.__N=[e,i.__[1]],i.__c.setState({}))}],i.__c=Qt,!Qt.u)){const a=function(e,t,n){if(!i.__c.__H)return!0;const r=i.__c.__H.__.filter(function(e){return!!e.__c});if(r.every(function(e){return!e.__N}))return!s||s.call(this,e,t,n);let o=!1;return r.forEach(function(e){var t;e.__N&&(t=e.__[0],e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0))}),!(!o&&i.__c.props===e)&&(!s||s.call(this,e,t,n))};Qt.u=!0;var s=Qt.shouldComponentUpdate,o=Qt.componentWillUpdate;Qt.componentWillUpdate=function(e,t,n){var r;this.__e&&(r=s,s=void 0,a(e,t,n),s=r),o&&o.call(this,e,t,n)},Qt.shouldComponentUpdate=a}return i.__N||i.__}function mn(e,t){const n=pn(Xt++,4);!on.__s&&wn(n.__H,t)&&(n.__=e,n.i=t,Qt.__h.push(n))}function gn(e,t){const n=pn(Xt++,7);return wn(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function yn(e,t){return tn=8,gn(function(){return e},t)}function vn(){for(var t;t=nn.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(bn),t.__H.__h.forEach(Sn),t.__H.__h=[]}catch(e){t.__H.__h=[],on.__e(e,t.__v)}}on.__b=function(e){Qt=null,sn&&sn(e)},on.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),dn&&dn(e,t)},on.__r=function(e){an&&an(e),Xt=0;const t=(Qt=e.__c).__H;t&&(Zt===Qt?(t.__h=[],Qt.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=rn,e.__N=e.i=void 0})):(t.__h.forEach(bn),t.__h.forEach(Sn),t.__h=[],Xt=0)),Zt=Qt},on.diffed=function(e){cn&&cn(e);const t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==nn.push(t)&&en===on.requestAnimationFrame||((en=on.requestAnimationFrame)||function(e){function t(){clearTimeout(r),_n&&cancelAnimationFrame(n),setTimeout(e)}var n,r=setTimeout(t,100);_n&&(n=requestAnimationFrame(t))})(vn)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==rn&&(e.__=e.__V),e.i=void 0,e.__V=rn})),Zt=Qt=null}
1,on.__c=function(e,n){n.some(function(t){try{t.__h.forEach(bn),t.__h=t.__h.filter(function(e){return!e.__||Sn(e)})}catch(e){n.some(function(e){e.__h&&(e.__h=[])}),n=[],on.__e(e,t.__v)}}),ln&&ln(e,n)},on.unmount=function(e){un&&un(e);let t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{bn(e)}catch(e){t=e}}),n.__H=void 0,t&&on.__e(t,n.__v))};const _n="function"==typeof requestAnimationFrame;function bn(e){const t=Qt,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),Qt=t}function Sn(e){var t=Qt;e.__c=e.__(),Qt=t}function wn(n,e){return!n||n.length!==e.length||e.some(function(e,t){return e!==n[t]})}function kn(e,t){return"function"==typeof t?t(e):t}const xn=Object.defineProperty({__proto__:null,useCallback:yn,useContext(e){const t=Qt.context[e.__c],n=pn(Xt++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(Qt)),t.props.value):e.__},useDebugValue(e,t){on.useDebugValue&&on.useDebugValue(t?t(e):e)},useEffect(e,t){const n=pn(Xt++,3);!on.__s&&wn(n.__H,t)&&(n.__=e,n.i=t,Qt.__H.__h.push(n))},useErrorBoundary(e){const n=pn(Xt++,10),r=fn();return n.__=e,Qt.componentDidCatch||(Qt.componentDidCatch=function(e,t){n.__&&n.__(e,t),r[1](e)}),[r[0],function(){r[1](void 0)}]},useId(){const e=pn(Xt++,11);if(!e.__){for(var t=Qt.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;const n=t.__m||(t.__m=[0,0]);e.__=`P${n[0]}-${n[1]++}`}return e.__},useImperativeHandle(e,t,n){tn=6,mn(function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},null==n?n:n.concat(e))},useLayoutEffect:mn,useMemo:gn,useReducer:hn,useRef(e){return tn=5,gn(function(){return{current:e}},[])},useState:fn},Symbol.toStringTag,{value:"Module"});function Tn({options:e}){var t=gn(()=>({__html:function(){const e=e=>Qe.createElementNS("http://www.w3.org/2000/svg",e),t=pt(e("svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),n=pt(e("path"),{transform:"translate(11, 11)",d:"M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z"});return t.appendChild(n),t}().outerHTML}),[]);return Dt("h2",{class:"dialog__header"},Dt("span",{class:"dialog__title"},e.formTitle),e.showBranding?Dt("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:t}):null)}function En(e,t){const n=e.get(t);return"string"==typeof n?n.trim():""}function Cn({options:e,defaultEmail:t,defaultName:n,onFormClose:r,onSubmit:i,onSubmitSuccess:s,onSubmitError:a,showEmail:o,showName:c,screenshotInput:l}){const{tags:u,addScreenshotButtonLabel:d,removeScreenshotButtonLabel:p,cancelButtonLabel:f,emailLabel:h,emailPlaceholder:m,isEmailRequired:g,isNameRequired:y,messageLabel:v,messagePlaceholder:_,nameLabel:b,namePlaceholder:S,submitButtonLabel:w,isRequiredLabel:k}=e,[x,T]=fn(!1),[E,C]=fn(null),[I,A]=fn(!1),R=l?.input,[M,O]=fn(null),D=yn(e=>{O(e),A(!1)},[]),N=yn(e=>{const t=function(e,t){const n=[];return t.isNameRequired&&!e.name&&n.push(t.nameLabel),t.isEmailRequired&&!e.email&&n.push(t.emailLabel),e.message||n.push(t.messageLabel),n}(e,{emailLabel:h,isEmailRequired:g,isNameRequired:y,messageLabel:v,nameLabel:b});return 0<t.length?C(`Please enter in the following required fields: ${t.join(", ")}`):C(null),0===t.length},[h,g,y,v,b]),L=yn(async e=>{T(!0);try{if(e.preventDefault(),!(e.target instanceof HTMLFormElement))return;var t=new FormData(e.target),n=await(l&&I?l.value():void 0),r={name:En(t,"name"),email:En(t,"email"),message:En(t,"message"),attachments:n?[n]:void 0};if(!N(r))return;try{const e=await i({name:r.name,email:r.email,message:r.message,source:"widget",tags:u},{attachments:r.attachments});s(r,e)}catch(e){ut&&te.error(e);var o=e instanceof Error?e:new Error(String(e));C(o.message),a(o)}}finally{T(!1)}},[l&&I,s,a]);return Dt("form",{class:"form",onSubmit:L},R&&I?Dt(R,{onError:D}):null,Dt("fieldset",{class:"form__right","data-sentry-feedback":!0,disabled:x},Dt("div",{class:"form__top"},E?Dt("div",{class:"form__error-container"},E):null,c?Dt("label",{for:"name",class:"form__label"},Dt(In,{label:b,isRequiredLabel:k,isRequired:y}),Dt("input",{class:"form__input",defaultValue:n,id:"name",name:"name",placeholder:S,required:y,type:"text"})):Dt("input",{"aria-hidden":!0,value:n,name:"name",type:"hidden"}),o?Dt("label",{for:"email",class:"form__label"},Dt(In,{label:h,isRequiredLabel:k,isRequired:g}),Dt("input",{class:"form__input",defaultValue:t,id:"email",name:"email",placeholder:m,required:g,type:"email"})):Dt("input",{"aria-hidden":!0,value:t,name:"email",type:"hidden"}),Dt("label",{for:"message",class:"form__label"},Dt(In,{label:v,isRequiredLabel:k,isRequired:!0}),Dt("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:_,required:!0,rows:5})),R?Dt("label",{for:"screenshot",class:"form__label"},Dt("button",{class:"btn btn--default",disabled:x,type:"button",onClick:()=>{O(null),A(e=>!e)}},I?p:d),M?Dt("div",{class:"form__error-container"},M.message):null):null),Dt("div",{class:"btn-group"},Dt("button",{class:"btn btn--primary",disabled:x,type:"submit"},w),Dt("button",{class:"btn btn--default",disabled:x,type:"button",onClick:r},f))))}function In({label:e,isRequired:t,isRequiredLabel:n}){return Dt("span",{class:"form__label__text"},e,t&&Dt("span",{class:"form__label__text--required"},n))}function An({open:e,onFormSubmitted:n,...r}){const t=r.options,o=gn(()=>({__html:function(){const e=e=>Xe.document.createElementNS("http://www.w3.org/2000/svg",e),t=pt(e("svg"),{width:"16",height:"17",viewBox:"0 0 16 17",fill:"inherit"}),n=pt(e("g"),{clipPath:"url(#clip0_57_156)"}),r=pt(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z"}),o=pt(e("path"),{d:"M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173 
110.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"});t.appendChild(n).append(o,r);const i=e("defs"),s=pt(e("clipPath"),{id:"clip0_57_156"}),a=pt(e("rect"),{width:"16",height:"16",fill:"white",transform:"translate(0 0.5)"});return s.appendChild(a),i.appendChild(s),t.appendChild(i).appendChild(s).appendChild(a),t}().outerHTML}),[]),[i,s]=fn(null),a=yn(()=>{i&&(clearTimeout(i),s(null)),n()},[i]),c=yn((e,t)=>{r.onSubmitSuccess(e,t),s(setTimeout(()=>{n(),s(null)},5e3))},[n]);return Dt(Lt,null,i?Dt("div",{class:"success__position",onClick:a},Dt("div",{class:"success__content"},t.successMessageText,Dt("span",{class:"success__icon",dangerouslySetInnerHTML:o}))):Dt("dialog",{class:"dialog",onClick:t.onFormClose,open:e},Dt("div",{class:"dialog__position"},Dt("div",{class:"dialog__content",onClick:e=>{e.stopPropagation()}},Dt(Tn,{options:t}),Dt(Cn,{...r,onSubmitSuccess:c})))))}const Rn=()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:i,screenshotIntegration:e,sendFeedback:s,shadow:t})=>{const n=t,a=i.useSentryUser,c=(o=je().getUser(),u=Fe().getUser(),t=Be().getUser(),o&&Object.keys(o).length?o:u&&Object.keys(u).length?u:t),l=Qe.createElement("div"),r=function(e){const t=Qe.createElement("style");return t.textContent="\n:host {\n  --dialog-inset: var(--inset);\n}\n\n\n.dialog {\n  position: fixed;\n  z-index: var(--z-index);\n  margin: 0;\n  inset: 0;\n\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  padding: 0;\n  height: 100vh;\n  width: 100vw;\n\n  color: var(--dialog-color, var(--foreground));\n  fill: var(--dialog-color, var(--foreground));\n  line-height: 1.75em;\n\n  background-color: rgba(0, 0, 0, 0.05);\n  border: none;\n  inset: 0;\n  opacity: 1;\n  transition: opacity 0.2s ease-in-out;\n}\n\n.dialog__position {\n  position: fixed;\n  z-index: var(--z-index);\n  inset: var(--dialog-inset);\n  padding: var(--page-margin);\n  display: flex;\n  max-height: calc(100vh - (2 * var(--page-margin)));\n}\n@media (max-width: 600px) {\n  .dialog__position {\n    inset: var(--page-margin);\n    padding: 0;\n  }\n}\n\n.dialog__position:has(.editor) {\n  inset: var(--page-margin);\n  padding: 0;\n}\n\n.dialog:not([open]) {\n  opacity: 0;\n  pointer-events: none;\n  visibility: hidden;\n}\n.dialog:not([open]) .dialog__content {\n  transform: translate(0, -16px) scale(0.98);\n}\n\n.dialog__content {\n  display: flex;\n  flex-direction: column;\n  gap: 16px;\n  padding: var(--dialog-padding, 24px);\n  max-width: 100%;\n  width: 100%;\n  max-height: 100%;\n  overflow: auto;\n\n  background: var(--dialog-background, var(--background));\n  border-radius: var(--dialog-border-radius, 20px);\n  border: var(--dialog-border, var(--border));
1\n  box-shadow: var(--dialog-box-shadow, var(--box-shadow));\n  transform: translate(0, 0) scale(1);\n  transition: transform 0.2s ease-in-out;\n}\n\n\n\n.dialog__header {\n  display: flex;\n  gap: 4px;\n  justify-content: space-between;\n  font-weight: var(--dialog-header-weight, 600);\n  margin: 0;\n}\n.dialog__title {\n  align-self: center;\n  width: var(--form-width, 272px);\n}\n\n@media (max-width: 600px) {\n  .dialog__title {\n    width: auto;\n  }\n}\n\n.dialog__position:has(.editor) .dialog__title {\n  width: auto;\n}\n\n\n.brand-link {\n  display: inline-flex;\n}\n.brand-link:focus-visible {\n  outline: var(--outline);\n}\n\n\n.form {\n  display: flex;\n  overflow: auto;\n  flex-direction: row;\n  gap: 16px;\n  flex: 1 0;\n}\n\n.form fieldset {\n  border: none;\n  margin: 0;\n  padding: 0;\n}\n\n.form__right {\n  flex: 0 0 auto;\n  display: flex;\n  overflow: auto;\n  flex-direction: column;\n  justify-content: space-between;\n  gap: 20px;\n  width: var(--form-width, 100%);\n}\n\n.dialog__position:has(.editor) .form__right {\n  width: var(--form-width, 272px);\n}\n\n.form__top {\n  display: flex;\n  flex-direction: column;\n  gap: 8px;\n}\n\n.form__error-container {\n  color: var(--error-color);\n  fill: var(--error-color);\n}\n\n.form__label {\n  display: flex;\n  flex-direction: column;\n  gap: 4px;\n  margin: 0px;\n}\n\n.form__label__text {\n  display: flex;\n  gap: 4px;\n  align-items: center;\n}\n\n.form__label__text--required {\n  font-size: 0.85em;\n}\n\n.form__input {\n  font-family: inherit;\n  line-height: inherit;\n  background: transparent;\n  box-sizing: border-box;\n  border: var(--input-border, var(--border));\n  border-radius: var(--input-border-radius, 6px);\n  color: var(--input-color, inherit);\n  fill: var(--input-color, inherit);\n  font-size: var(--input-font-size, inherit);\n  font-weight: var(--input-font-weight, 500);\n  padding: 6px 12px;\n}\n\n.form__input::placeholder {\n  opacity: 0.65;\n  color: var(--input-placeholder-color, inherit);\n  filter: var(--interactive-filter);\n}\n\n.form__input:focus-visible {\n  outline: var(--input-focus-outline, var(--outline));\n}\n\n.form__input--textarea {\n  font-family: inherit;\n  resize: vertical;\n}\n\n.error {\n  color: var(--error-color);\n  fill: var(--error-color);\n}\n\n\n.btn-group {\n  display: grid;\n  gap: 8px;\n}\n\n.btn {\n  line-height: inherit;\n  border: var(--button-border, var(--border));\n  border-radius: var(--button-border-radius, 6px);\n  cursor: pointer;\n  font-family: inherit;\n  font-size: var(--button-font-size, inherit);\n  font-weight: var(--button-font-weight, 600);\n  padding: var(--button-padding, 6px 16px);\n}\n.btn[disabled] {\n  opacity: 0.6;\n  pointer-events: none;\n}\n\n.btn--primary {\n  color: var(--button-primary-color, var(--accent-foreground));\n  fill: var(--button-primary-color, var(--accent-foreground));\n  background: var(--button-primary-background, var(--accent-background));\n  border: var(--button-primary-border, var(--border));\n  border-radius: var(--button-primary-border-radius, 6px);\n  font-weight: var(--button-primary-font-weight, 500);\n}\n.btn--primary:hover {\n  color: var(--button-primary-hover-color, var(--accent-foreground));\n  fill: var(--button-primary-hover-color, var(--accent-foreground));\n  background: var(--button-primary-hover-background, var(--accent-background));\n  filter: var(--interactive-filter);\n}\n.btn--primary:focus-visible {\n  background: var(--button-primary-hover-background, var(--accent-background));\n  filter: var(--interactive-filter);\n  outline: var(--button-primary-focus-outline, var(--outline));\n}\n\n.btn--default {\n  color: var(--button-color, var(--foreground));\n  fill: var(--button-color, var(--foreground));\n  background: var(--button-background, var(--background));\n  border: var(--button-border, var(--border));\n  border-radius: var(--button-border-radius, 6px);\n  font-weight: var(--button-font-weight, 500);\n}\n.btn--default:hover {\n  color: var(--button-color, var(--foreground));\n  fill: var(--button-color, var(--foreground));\n  background: var(--button-hover-background, var(--background));\n  filter: var(--interactive-filter);\n}\n.btn--default:focus-visible {\n  background: var(--button-hover-background, var(--background));\n  filter: var(--interactive-filter);\n  outline: var(--button-focus-outline, var(--outline));\n}\n\n\n.success__position {\n  position: fixed;\n  inset: var(--dialog-inset);\n  padding: var(--page-margin);\n  z-index: var(--z-index);\n}\n.success__content {\n  background: var(--success-background, var(--background));\n  border: var(--success-border, var(--border));\n  border-radius: var(--success-border-radius, 1.7em/50%);
1\n  box-shadow: var(--success-box-shadow, var(--box-shadow));\n  font-weight: var(--success-font-weight, 600);\n  color: var(--success-color);\n  fill: var(--success-color);\n  padding: 12px 24px;\n  line-height: 1.75em;\n\n  display: grid;\n  align-items: center;\n  grid-auto-flow: column;\n  gap: 6px;\n  cursor: default;\n}\n\n.success__icon {\n  display: flex;\n}\n\n",e&&t.setAttribute("nonce",e),t}(i.styleNonce);var o,u;let d="";const p={get el(){return l},appendToDom(){n.contains(r)||n.contains(l)||(n.appendChild(r),n.appendChild(l))},removeFromDom(){l.remove(),r.remove(),Qe.body.style.overflow=d},open(){h(!0),i.onFormOpen?.(),He()?.emit("openFeedbackWidget"),d=Qe.body.style.overflow,Qe.body.style.overflow="hidden"},close(){h(!1),Qe.body.style.overflow=d}},f=e?.createInput({h:Dt,hooks:xn,dialog:p,options:i}),h=e=>{var t,n,r,o;t=Dt(An,{options:i,screenshotInput:f,showName:i.showName||i.isNameRequired,showEmail:i.showEmail||i.isEmailRequired,defaultName:String(a&&c?.[a.name]||""),defaultEmail:String(a&&c?.[a.email]||""),onFormClose:()=>{h(!1),i.onFormClose?.()},onSubmit:s,onSubmitSuccess:(e,t)=>{h(!1),i.onSubmitSuccess?.(e,t)},onSubmitError:e=>{i.onSubmitError?.(e)},onFormSubmitted:()=>{i.onFormSubmitted?.()},open:e}),n=l,St.__&&St.__(t,n),r=n.__k,o=[],e=[],Vt(n,t=n.__k=Dt(Lt,null,[t]),r||Ct,Ct,void 0!==n.ownerSVGElement,!r&&n.firstChild?bt.call(n.childNodes):null,o,r?r.__e:n.firstChild,!1,e),t.__d=void 0,Jt(o,t,e)};return p}});function Mn(e,t,n){!e||(t=e.getContext("2d",t))&&n(e,t)}function On(e,n){Mn(e,{alpha:!0},(e,t)=>{t.drawImage(n,0,0,n.width,n.height,0,0,e.width,e.height)})}function Dn(e,n,r){Mn(e,{alpha:!0},(e,t)=>{r.length&&(t.fillStyle="rgba(0, 0, 0, 0.25)",t.fillRect(0,0,e.width,e.height)),r.forEach(e=>{!function(e,t,n){switch(e.type){case"highlight":t.shadowColor="rgba(0, 0, 0, 0.7)",t.shadowBlur=50,t.fillStyle=n,t.fillRect(e.x-1,e.y-1,e.w+2,e.h+2),t.clearRect(e.x,e.y,e.w,e.h);break;case"hide":t.fillStyle="rgb(0, 0, 0)",t.fillRect(e.x,e.y,e.w,e.h)}}(e,t,n)})})}function Nn({h:g,hooks:y,outputBuffer:v,dialog:e,options:_}){const n=(s=[{hooks:y}["hooks"]][0],function({onBeforeScreenshot:e,onScreenshot:o,onAfterScreenshot:t,onError:n}){const i=function(){const[e,n]=s.useState(Xe.devicePixelRatio??1);return s.useEffect(()=>{const e=()=>{n(Xe.devicePixelRatio)},t=matchMedia(`(resolution: ${Xe.devicePixelRatio}dppx)`);return t.addEventListener("change",e),()=>{t.removeEventListener("change",e)}},[]),e}();s.useEffect(()=>{(async()=>{e();const n=await Ze.mediaDevices.getDisplayMedia({video:{width:Xe.innerWidth*i,height:Xe.innerHeight*i},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"}),r=Qe.createElement("video");await new Promise((e,t)=>{r.srcObject=n,r.onloadedmetadata=()=>{o(r,i),n.getTracks().forEach(e=>e.stop()),e()},r.play().catch(t)}),t()})().catch(n)},[])}),b=(o=[{h:g}["h"]][0],function({action:e,setAction:t,options:n}){return o("div",{class:"editor__tool-container"},o("div",{class:"editor__tool-bar"},o("button",{type:"button",class:`editor__tool ${"highlight"===e?"editor__tool--active":""}`,onClick:()=>{t("highlight"===e?"":"highlight")}},n.highlightToolText),o("button",{type:"button",class:`editor__tool ${"hide"===e?"editor__tool--active":""}`,onClick:()=>{t("hide"===e?"":"hide")}},n.hideToolText)))}),S=(t=[{h:g}["h"]][0],function(){return t("svg",{"data-test-id":"icon-close",viewBox:"0 0 16 16",fill:"#2B2233",height:"25px",width:"25px"},t("circle",{r:"7",cx:"8",cy:"8",fill:"white"}),t("path",{strokeWidth:"1.5",d:"M8,16a8,8,0,1,1,8-8A8,8,0,0,1,8,16ZM8,1.53A6.47,6.47,0,1,0,14.47,8,6.47,6.47,0,0,0,8,1.53Z"}),t("path",{strokeWidth:"1.5",d:"M5.34,11.41a.71.71,0,0,1-.53-.22.74.74,0,0,1,0-1.06l5.32-5.32a.75.75,0,0,1,1.06,1.06L5.87,11.19A.74.74,0,0,1,5.34,11.41Z"}),t("path",{strokeWidth:"1.5",d:"M10.66,11.41a.74.74,0,0,1-.53-.22L4.81,5.87A.75.75,0,0,1,5.87,4.81l5.32,5.32a.74.74,0,0,1,0,1.06A.71.71,0,0,1,10.66,11.41Z"}))}),w={__html:function(e){const t=Qe.createElement("style"),n="#1A141F",r="#302735";return t.textContent=`\n.editor {\n  display: flex;\n  flex-grow: 1;\n  flex-direction: column;\n}\n\n.editor__image-container {\n  justify-items: center;\n  padding: 15px;\n  position: relative;\n  height: 100%;\n  border-radius: var(--menu-border-radius, 6px);\n\n  background-color: ${n};\n  background-image: repeating-linear-gradient(\n      -145deg,\n      transparent,\n      transparent 8px,\n      ${n} 8px,\n      ${n} 11px\n    ),\n    repeating-linear-gradient(\n      -45deg,\n      transparent,\n      transparent 15px,\
1n      ${r} 15px,\n      ${r} 16px\n    );\n}\n\n.editor__canvas-container {\n  width: 100%;\n  height: 100%;\n  position: relative;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n}\n\n.editor__canvas-container > * {\n  object-fit: contain;\n  position: absolute;\n}\n\n.editor__tool-container {\n  padding-top: 8px;\n  display: flex;\n  justify-content: center;\n}\n\n.editor__tool-bar {\n  display: flex;\n  gap: 8px;\n}\n\n.editor__tool {\n  display: flex;\n  padding: 8px 12px;\n  justify-content: center;\n  align-items: center;\n  border: var(--button-border, var(--border));\n  border-radius: var(--button-border-radius, 6px);\n  background: var(--button-background, var(--background));\n  color: var(--button-color, var(--foreground));\n}\n\n.editor__tool--active {\n  background: var(--button-primary-background, var(--accent-background));\n  color: var(--button-primary-color, var(--accent-foreground));\n}\n\n.editor__rect {\n  position: absolute;\n  z-index: 2;\n}\n\n.editor__rect button {\n  opacity: 0;\n  position: absolute;\n  top: -12px;\n  right: -12px;\n  cursor: pointer;\n  padding: 0;\n  z-index: 3;\n  border: none;\n  background: none;\n}\n\n.editor__rect:hover button {\n  opacity: 1;\n}\n`,e&&t.setAttribute("nonce",e),t}(_.styleNonce).innerText},r=e.el.style,i=({screenshot:r})=>{const[t,e]=y.useState("highlight"),[a,c]=y.useState([]),n=y.useRef(null),o=y.useRef(null),l=y.useRef(null),u=y.useRef(null),[d,i]=y.useState(1),p=y.useMemo(()=>{var e=Qe.getElementById(_.id);if(!e)return"white";const t=getComputedStyle(e);return t.getPropertyValue("--button-primary-background")||t.getPropertyValue("--accent-background")},[_.id]);y.useLayoutEffect(()=>{const e=()=>{const t=n.current;t&&(Mn(r.canvas,{alpha:!1},e=>{e=Math.min(t.clientWidth/e.width,t.clientHeight/e.height);i(e)}),0!==t.clientHeight&&0!==t.clientWidth||setTimeout(e,0))};return e(),Xe.addEventListener("resize",e),()=>{Xe.removeEventListener("resize",e)}},[r]);const s=y.useCallback((e,n)=>{Mn(e,{alpha:!0},(e,t)=>{t.scale(n,n),e.width=r.canvas.width,e.height=r.canvas.height})},[r]);y.useEffect(()=>{s(o.current,r.dpi),On(o.current,r.canvas)},[r]),y.useEffect(()=>{s(l.current,r.dpi),Mn(l.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),Dn(l.current,p,a)},[a,p]),y.useEffect(()=>{s(v,r.dpi),On(v,r.canvas),Mn(Qe.createElement("canvas"),{alpha:!0},(e,t)=>{t.scale(r.dpi,r.dpi),e.width=r.canvas.width,e.height=r.canvas.height,Dn(e,p,a),On(v,e)})},[a,r,p]);const f=y.useCallback(n=>e=>{e.preventDefault(),e.stopPropagation(),c(e=>{const t=[...e];return t.splice(n,1),t})},[]),h={width:`${r.canvas.width*d}px`,height:`${r.canvas.height*d}px`},m=e=>{e.stopPropagation()};return g("div",{class:"editor"},g("style",{nonce:_.styleNonce,dangerouslySetInnerHTML:w}),g("div",{class:"editor__image-container"},g("div",{class:"editor__canvas-container",ref:n},g("canvas",{ref:o,id:"background",style:h}),g("canvas",{ref:l,id:"foreground",style:h}),g("div",{ref:u,onMouseDown:e=>{if(t&&u.current){const r=u.current.getBoundingClientRect(),n={type:t,x:e.offsetX/d,y:e.offsetY/d},o=(e,t)=>{var n=(t.clientX-r.x)/d,t=(t.clientY-r.y)/d;return{type:e.type,x:Math.min(e.x,n),y:Math.min(e.y,t),w:Math.abs(n-e.x),h:Math.abs(t-e.y)}},i=e=>{Mn(l.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),Dn(l.current,p,[...a,o(n,e)])},s=e=>{const t=o(n,e);1<=t.w*d&&1<=t.h*d&&c(e=>[...e,t]),Qe.removeEventListener("mousemove",i),Qe.removeEventListener("mouseup",s)};Qe.addEventListener("mousemove",i),Qe.addEventListener("mouseup",s)}},style:h},a.map((e,t)=>g("div",{key:t,class:"editor__rect",style:{top:`${e.y*d}px`,left:`${e.x*d}px`,width:`${e.w*d}px`,height:`${e.h*d}px`}},g("button",{"aria-label":_.removeHighlightText,onClick:f(t),onMouseDown:m,onMouseUp:m,type:"button"},g(S,null))))))),g(b,{options:_,action:t,setAction:e}))};var t,o,s;return function({onError:t}){const[e,o]=y.useState();return n({onBeforeScreenshot:y.useCallback(()=>{r.display="none"},[]),onScreenshot:y.useCallback((n,r)=>{Mn(Qe.createElement("canvas"),{alpha:!1},(e,t)=>{t.scale(r,r),e.width=n.videoWidth,e.height=n.videoHeight,t.drawImage(n,
10,0,e.width,e.height),o({canvas:e,dpi:r})}),v.width=n.videoWidth,v.height=n.videoHeight},[]),onAfterScreenshot:y.useCallback(()=>{r.display="block"},[]),onError:y.useCallback(e=>{r.display="block",t(e)},[])}),e?g(i,{screenshot:e}):g("div",null)}}const Ln="production";function Pn(t){return new jn(e=>{e(t)})}function $n(n){return new jn((e,t)=>{t(n)})}class jn{constructor(e){this._state=0,this._handlers=[],this._runExecutor(e)}then(r,o){return new jn((t,n)=>{this._handlers.push([!1,e=>{if(r)try{t(r(e))}catch(e){n(e)}else t(e)},e=>{if(o)try{t(o(e))}catch(e){n(e)}else n(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(o){return new jn((e,t)=>{let n,r;return this.then(e=>{r=!1,n=e,o&&o()},e=>{r=!0,n=e,o&&o()}).then(()=>{(r?t:e)(n)})})}_executeHandlers(){if(0!==this._state){const e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(1===this._state&&e[1](this._value),2===this._state&&e[2](this._value),e[0]=!0)})}}_runExecutor(e){const t=(e,t)=>{0===this._state&&(y(t)?t.then(n,r):(this._state=e,this._value=t,this._executeHandlers()))},n=e=>{t(1,e)},r=e=>{t(2,e)};try{e(n,r)}catch(e){r(e)}}}function Fn(e,t,n,r=0){try{var o=function t(e,n,r,o){const i=r[o];if(!e||!i)return e;const s=i({...e},n);return T&&null===s&&te.log(`Event processor "${i.id||"?"}" dropped event`),y(s)?s.then(e=>t(e,n,r,o+1)):t(s,n,r,o+1)}(t,n,e,r);return y(o)?o:Pn(o)}catch(e){return $n(e)}}let Bn,qn,Un,Hn;function Wn(i){var e=L._sentryDebugIds,t=L._debugIds;if(!e&&!t)return{};var n=e?Object.keys(e):[],r=t?Object.keys(t):[];if(Hn&&n.length===qn&&r.length===Un)return Hn;qn=n.length,Un=r.length,Hn={},Bn=Bn||{};var o=(t,n)=>{for(const o of t){const t=n[o],e=Bn?.[o];if(e&&Hn&&t)Hn[e[0]]=t,Bn&&(Bn[o]=[e[0],t]);else if(t){const n=i(o);for(let e=n.length-1;0<=e;e--){var r=n[e]?.filename;if(r&&Hn&&Bn){Hn[r]=t,Bn[o]=[r,t];break}}}}};return e&&o(n,e),t&&o(r,t),Hn}const zn=Symbol.for("sentry.skipNormalization"),Vn=Symbol.for("sentry.overrideNormalizationDepth");function Jn(e,t=100,n=1/0){try{return function e(t,n,r=1/0,o=1/0,i=function(){const t=new WeakSet;return[function(e){return!!t.has(e)||(t.add(e),!1)},function(e){t.delete(e)}]}()){const[s,a]=i;
1if(null==n||["boolean","string"].includes(typeof n)||"number"==typeof n&&Number.isFinite(n))return n;const c=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(void 0!==m.g&&t===m.g)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(b(t))return ne(t);if(_(n=t)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n)return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${Z(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const r=function(e){const t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(e){return`**non-serializable** (${e})`}let n}(t,n);if(!c.startsWith("[object "))return c;if(function(e){return Boolean(e[zn])}(n))return n;const l=function(e){const t=e[Vn];return"number"==typeof t?t:void 0}(n),u=void 0!==l?l:r;if(0===u)return c.replace("object ","");if(s(n))return"[Circular ~]";const d=n;if(d&&"function"==typeof d.toJSON)try{return e("",d.toJSON(),u-1,o,i)}catch{}const p=Array.isArray(n)?[]:{};let f=0;const h=D(n);for(const m in h)if(Object.prototype.hasOwnProperty.call(h,m)){if(f>=o){p[m]="[MaxProperties ~]";break}const t=h[m];p[m]=e(m,t,u-1,o,i),f++}return a(n),p}("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}const Gn="sentry.source",Kn="sentry.sample_rate",Yn="sentry.previous_trace_sample_rate",Xn="sentry.op",Qn="sentry.origin",Zn="sentry.idle_span_finish_reason",er="sentry.measurement_unit",tr="sentry.measurement_value",nr="sentry.custom_span_name",rr="sentry.profile_id",or="sentry.exclusive_time",ir="sentry-",sr=8192;function ar(e){e=function(e){if(e&&(h(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce((n,e)=>{e=lr(e);return Object.entries(e).forEach(([e,t])=>{n[e]=t}),n},{}):lr(e)}(e);if(e){e=Object.entries(e).reduce((e,[t,n])=>(t.startsWith(ir)&&(e[t.slice(ir.length)]=n),e),{});return 0<Object.keys(e).length?e:void 0}}function cr(e){if(e)return function(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce((e,[t,n],r)=>{var o=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,o=0===r?o:`${e},${o}`;return o.length>sr?(T&&te.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):o},"")}(Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${ir}${t}`]=n),e),{}))}function lr(e){return e.split(",").map(e=>{var t=e.indexOf("=");return-1===t?[]:[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{}})}).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}const ur=/^o(\d+)\./,dr=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function pr(e,t=!1){var{host:n,path:r,pass:o,port:i,projectId:s,protocol:a,publicKey:e}=e;return`${a}://${e}${t&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${r&&`${r}/`}${s}`}function fr(n){const r=dr.exec(n);if(r){var[o,i,s="",a="",c="",l=""]=r.slice(1);let e="",t=l;const u=t.split("/");if(1<u.length&&(e=u.slice(0,-1).join("/"),t=u.pop()),t){const n=t.match(/^\d+/);n&&(t=n[0])}return hr({host:a,pass:s,path:e,projectId:t,port:c,protocol:o,publicKey:i})}B(()=>{console.error(`Invalid Sentry Dsn: ${n}`)})}function hr(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function mr(e){var t=e.getOptions(),e=(e.getDsn()||{})["host"];let n;return t.orgId?n=String(t.orgId):e&&(n=e.match(ur)?.[1]),n}function gr(e){e=("string"==typeof e?fr:hr)(e);if(e&&function(t){if(!T)return 1;const{port:e,projectId:n,protocol:r}=t;return!["protocol","publicKey","host","projectId"].find(e=>!t[e]&&(te.error(`Invalid Sentry Dsn: ${e} missing`),!0))&&!(n.match(/^\d+$/)?"http"===r||"https"===r?e&&isNaN(parseInt(e,10))&&(te.error(`Invalid Sentry Dsn: Invalid port ${e}`),1):(te.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),1):(te.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1))}(e))return e}function yr(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;e=e||He()?.getOptions();return!(!e||null==e.tracesSampleRate&&!e.tracesSampler)}function vr(e,t=!1){const n={};for(var[r,o]of Object.entries(e??{})){const e=function(e,t){var{value:n,unit:r}="object"==typeof(o=e)&&null!=o&&!Array.isArray(o)&&Object.keys(o).includes("value")?e:{value:e,unit:void 0};let o;if(e=function(e){var t="string"==typeof e?"string":"boolean"==typeof e?"boolean":"number"!=typeof e||Number.isNaN(e)?null:Number.isInteger(e)?"integer":"double";if(t)return{value:e,type:t}}(n),r=r&&"string"==typeof r?{unit:r}:{},e)return{...e,...r};if(t&&("skip-undefined"!==t||void 0!==n)){let e="";try{e=JSON.stringify(n)??""}catch{}return{value:e,type:"string",...r}}}(o,t);e&&(n[r]=e)}return n}function _r(e){if(!e)return 0;let t=0;for(var[n,r]of Object.entries(e)){t+=2*n.length,t+=2*r.type.length,t+=2*(r.unit?.length??0);const e=r.value;Array.isArray(e)?t+=br(e[0])*e.length:P(e)?t+=br(e):t+=100}return t}function br(e){return"string"==typeof e?2*e.length:"boolean"==typeof e?4:"number"==typeof e?8:0}const Sr=0,wr=1,kr=2;function xr(e){if(e<400&&100<=e)return{code:wr};if(400<=e&&e<500)switch(e){case 401:return{code:kr,message:"unauthenticated"};case 403:return{code:kr,message:"permission_denied"};case 404:return{code:kr,message:"not_found"};case 409:return{code:kr,message:"already_exists"};case 413:return{code:kr,message:"failed_precondition"};case 429:return{code:kr,message:"resource_exhausted"};case 499:return{code:kr,message:"cancelled"};default:return{code:kr,message:"invalid_argument"}}if(500<=e&&e<600)switch(e){case 501:return{code:kr,message:"unimplemented"};case 503:return{code:kr,message:"unavailable"};case 504:return{code:kr,message:"deadline_exceeded"};default:return{code:kr,message:"internal_error"}}return{code:kr,message:"internal_error"}}function Tr(e,t){e.setAttribute("http.response.status_code",t);t=xr(t);"unknown_error"!==t.message&&e.setStatus(t)}const Er="_sentryScope",Cr="_sentryIsolationScope";function Ir(e){return{scope:e[Er],isolationScope:function(e){if(e){if("object"==typeof e&&"deref"in e&&"function"==typeof e.deref)try{return e.deref()}catch{return}return e}}(e[Cr])}}function Ar(e){if("boolean"==typeof e)return Number(e);e="string"==typeof e?parseFloat(e):e;return"number"!=typeof e||isNaN(e)||e<0||1<e?void 0:e}const Rr=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Mr(e,t){const n=function(t){if(t){t=t.match(Rr);if(t){let e;return"1"===t[3]?e=!0:"0"===t[3]&&(e=!1),{traceId:t[1],parentSampled:e,parentSpanId:t[2]}}}}(e),r=ar(t);if(!n?.traceId)return{traceId:le(),sampleRand:W()};const o=function(e,t){var n=Ar(t?.sample_rand);if(void 0!==n)return n;t=Ar(t?.sample_rate);return t&&void 0!==e?.parentSampled?e.parentSampled?W()*t:t+W()*(1-t):W()}(n,r);r&&(r.sample_rand=o.toString());var{traceId:i,parentSpanId:e,parentSampled:t}=n;return{traceId:i,parentSpanId:e,sampled:t,dsc:r||{},sampleRand:o}}function Or(e=le(),t=ke(),n){let r=void 0!==n?n?"-1":"-0":"";return`${e}-${t}${r}`}function Dr(e=le(),t=ke(),n){return`00-${e}-${t}-${n?"01":"00"}`}const Nr=1;let Lr=!1;function Pr(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),o=r?t:Ur(e).parent_span_id,i=Ir(e).scope;return{parent_span_id:o,span_id:r?i?.getPropagationContext().propagationSpanId||ke():t,trace_id:n}}function $r(e){var{traceId:t,spanId:n}=e.spanContext();return Or(t,n,Jr(e))}function jr(e){return e&&0<e.length?e.map(({context:{spanId:e,traceId:t,traceFlags:n,...r},attributes:o})=>({span_id:e,trace_id:t,sampled:n===Nr,attributes:o,...r})):void 0}function Fr(e){return e?.length?e.map(({context:{spanId:e,traceId:t,traceFlags:n},attributes:r})=>({span_id:e,trace_id:t,sampled:n===Nr,attributes:r})):void 0}function Br(e){return"number"==typeof e?qr(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?qr(e.getTime()):ve()}function qr(e){return 9999999999<e?e/1e3:e}function Ur(e){if(Vr(e))return e.getSpanJSON();var{spanId:t,traceId:n}=e.spanContext();if(zr(e)){var{attributes:r,startTime:o,name:i,endTime:s,status:a,links:c}=e;return{span_id:t,trace_id:n,data:r,description:i,parent_span_id:Wr(e),start_timestamp:Br(o),timestamp:Br(s)||void 0,status:Gr(a),op:r[Xn],origin:r[Qn],links:jr(c)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function Hr(e){if(Vr(e))return e.getStreamedSpanJSON();var{spanId:t,traceId:n}=e.spanContext();if(zr(e)){var{attributes:r,startTime:o,name:i,endTime:s,status:a,links:c}=e;return{name:i,span_id:t,trace_id:n,parent_span_id:Wr(e),start_timestamp:Br(o),end_timestamp:Br(s),is_segment:e===to(e),status:Kr(a),attributes:r,links:Fr(c)}}return{span_id:t,trace_id:n,start_timestamp:0,name:"",end_timestamp:0,status:"ok",is_segment:e===to(e)}}function Wr(e){return"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0}function zr(e){return e.attributes&&e.startTime&&e.name&&e.endTime&&e.status}function Vr(e){return"function"==typeof e.getSpanJSON}function Jr(e){var e=e.spanContext()["traceFlags"];return e===Nr}function Gr(e){if(e&&e.code!==Sr)return e.code===wr?"ok":e.message||"internal_error"}function Kr(e){return e&&e.code!==wr&&e.code!==Sr&&"cancelled"!==e.message?"error":"ok"}const Yr="_sentryChildSpans",Xr="_sentryRootSpan";function Qr(e,t){var n=e[Xr]||e;R(t,Xr,n),e[Yr]?e[Yr].add(t):R(e,Yr,new Set([t]))}function Zr(e){const n=new Set;return function e(t){if(!n.has(t)&&Jr(t)){n.add(t);for(const n of t[Yr]?Array.from(t[Yr]):[])e(n)}}(e),Array.from(n)}const eo=to;function to(e){return e[Xr]||e}function no(){const e=Pe(l());return e.getActiveSpan?e.getActiveSpan():Ee(je())}function ro(){Lr||(B(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),Lr=!0)}function oo(e,t){e.updateName(t),e.setAttributes({[Gn]:"custom",[nr]:t})}const io="_frozenDsc";function so(e,t){R(e,io,t)}function ao(e,t){var n=t.getOptions(),r=(t.getDsn()||{})["publicKey"],e={environment:n.environment||Ln,release:n.release,public_key:r,trace_id:e,org_id:mr(t)};return t.emit("createDsc",e),e}
1function co(e,t){t=t.getPropagationContext();return t.dsc||ao(t.traceId,e)}function lo(e){const t=He();if(!t)return{};const n=eo(e),r=Ur(n),o=r.data,i=n.spanContext().traceState,s=i?.get("sentry.sample_rate")??o[Kn]??o[Yn];function a(e){return"number"!=typeof s&&"string"!=typeof s||(e.sample_rate=`${s}`),e}var c=n[io];if(c)return a(c);c=i?.get("sentry.dsc"),c=c&&ar(c);if(c)return a(c);const l=ao(e.spanContext().traceId,t),u=o[Gn]??o["sentry.span.source"],d=r.description;return"url"!==u&&d&&(l.transaction=d),yr()&&(l.sampled=String(Jr(n)),l.sample_rand=i?.get("sentry.sample_rand")??Ir(n).scope?.getPropagationContext().sampleRand.toString()),a(l),t.emit("createDsc",l,n),l}function uo(e){return cr(lo(e))}function po(e,t){var{extra:n,tags:r,attributes:o,user:i,contexts:s,level:a,sdkProcessingMetadata:c,breadcrumbs:l,fingerprint:u,eventProcessors:d,attachments:p,propagationContext:f,transactionName:h,span:t}=t;fo(e,"extra",n),fo(e,"tags",r),fo(e,"attributes",o),fo(e,"user",i),fo(e,"contexts",s),e.sdkProcessingMetadata=we(e.sdkProcessingMetadata,c,2),a&&(e.level=a),h&&(e.transactionName=h),t&&(e.span=t),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),p.length&&(e.attachments=[...e.attachments,...p]),e.propagationContext={...e.propagationContext,...f}}function fo(e,t,n){e[t]=we(e[t],n,1)}function ho(e,t){var n=Be().getScopeData();return e&&po(n,e.getScopeData()),t&&po(n,t.getScopeData()),n}function mo(s,e,t,n,r,o){const{normalizeDepth:i=3,normalizeMaxBreadth:a=1e3}=s,c={...e,event_id:e.event_id||t.event_id||le(),timestamp:e.timestamp||ge()},l=t.integrations||s.integrations.map(e=>e.name);var u,d;!function(e){const{environment:t,release:n,dist:r,maxValueLength:o}=s;e.environment=e.environment||t||Ln,!e.release&&n&&(e.release=n),!e.dist&&r&&(e.dist=r);const i=e.request;i?.url&&o&&(i.url=re(i.url,o)),o&&e.exception?.values?.forEach(e=>{e.value&&(e.value=re(e.value,o))})}(c),u=c,0<(d=l).length&&(u.sdk=u.sdk||{},u.sdk.integrations=[...u.sdk.integrations||[],...d]),r&&r.emit("applyFrameMetadata",e),void 0===e.type&&function(e){const t=Wn(s.stackParser);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=t[e.filename])})})}(c);n=function(e,t){if(!t)return e;const n=e?e.clone():new Ce;return n.update(t),n}(n,t.captureContext);t.mechanism&&fe(c,t.mechanism);r=r?r.getEventProcessors():[],o=ho(o,n),n=[...t.attachments||[],...o.attachments];n.length&&(t.attachments=n),function(e,a){var{fingerprint:t,span:n,breadcrumbs:r,sdkProcessingMetadata:o}=a;!function(e){var{extra:t,tags:n,user:r,contexts:o,level:i,transactionName:s}=a;Object.keys(t).length&&(e.extra={...t,...e.extra}),Object.keys(n).length&&(e.tags={...n,...e.tags}),Object.keys(r).length&&(e.user={...r,...e.user}),Object.keys(o).length&&(e.contexts={...o,...e.contexts}),i&&(e.level=i),s&&"transaction"!==e.type&&(e.transaction=s)}(e),n&&function(e,t){e.contexts={trace:Pr(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:lo(t),...e.sdkProcessingMetadata};t=Ur(eo(t)).description;t&&!e.transaction&&"transaction"===e.type&&(e.transaction=t)}(e,n),n=t,(t=e).fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],n&&(t.fingerprint=t.fingerprint.concat(n)),t.fingerprint.length||delete t.fingerprint,function(e,t){t=[...e.breadcrumbs||[],...t];e.breadcrumbs=t.length?t:void 0}(e,r),o=o,e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...o}}(c,o);o=[...r,...o.eventProcessors];return(t.data&&!0===t.data.__sentry__?Pn(c):Fn(o,c,t)).then(e=>(e&&function(e){const t={};if(e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})}),0!==Object.keys(t).length){e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:"sourcemap",code_file:e,debug_id:t})})}}(e),"number"==typeof i&&0<i?function(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:Jn(e.data,t,n)}}))},...e.user&&{user:Jn(e.user,t,n)},...e.contexts&&{contexts:Jn(e.contexts,t,n)},...e.extra&&{extra:Jn(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Jn(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:Jn(e.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=Jn(e.contexts.flags,3,n)),r}(e,i,a):e))}const go=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function yo(e,t){return je().captureException(e,function(e){if(e)return(t=e)instanceof Ce||"function"==typeof t||Object.keys(e).some(e=>go.includes(e))?{captureContext:e}:e;var t}(t))}function vo(e,t){var n="string"==typeof t?t:void 0,t="string"!=typeof t?{captureContext:t}:void 0;return je().captureMessage(e,n,t)}function _o(e,t){return je().captureEvent(e,t)}function bo(e,t){Fe().setContext(e,t)}function So(e){Fe().setExtras(e)}function wo(e,t){Fe().setExtra(e,t)}function ko(e){Fe().setTags(e)}function xo(e,t){Fe().setTag(e,t)}function To(e){Fe().setUser(e)}function Eo(e){Fe().setConversationId(e)}function Co(){return Fe().lastEventId()}async function Io(e){const t=He();return t?t.flush(e):(T&&te.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function Ao(e){const t=He();return t?t.close(e):(T&&te.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function Ro(){return!!He()}function Mo(){const e=He();return!1!==e?.getOptions().enabled&&!!e?.getTransport()}function Oo(e){Fe().addEventProcessor(e)}function Do(e){const t=Fe(),n=ho(t,je())["user"],r=(L.navigator||{})["userAgent"],o=function(e){const t=ve(),n={sid:le(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return{sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}(n)};return Se(n,e),n}({user:n,...r&&{userAgent:r},...e}),i=t.getSession();return"ok"===i?.status&&Se(i,{status:"exited"}),No(),t.setSession(o),o}function No(){const e=Fe(),t=je().getSession()||e.getSession();t&&function(){let e={};"ok"===t.status&&(e={status:"exited"}),Se(t,e)}(),Lo(),e.setSession()}function Lo(){const e=Fe(),t=He(),n=e.getSession();n&&t&&t.captureSession(n)}function Po(e=!1){(e?No:Lo)()}const $o=L;let jo=0;function Fo(t,r={}){if("function"!=typeof t)return t;try{const r=t.__sentry_wrapped__;if(r)return"function"==typeof r?r:t;if(O(t))return t}catch{return t}function e(...n){try{var e=n.map(e=>Fo(e,r));return t.apply(this,e)}catch(t){throw jo++,setTimeout(()=>{jo--}),qe(e=>{e.addEventProcessor(e=>(r.mechanism&&(pe(e,void 0,void 0),fe(e,r.mechanism)),e.extra={...e.extra,arguments:n},e)),yo(t)}),t}}try{for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}catch{}M(e,t),R(t,"__sentry_wrapped__",e);try{Object.getOwnPropertyDescriptor(e,"name").configurable&&Object.defineProperty(e,"name",{get(){return t.name}})}catch{}return e}function Bo(){var e=j(),t=($o.document||{})["referrer"],n=($o.navigator||{})["userAgent"];return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}}const qo=["replayIntegration","replayCanvasIntegration","feedbackIntegration","feedbackModalIntegration","feedbackScreenshotIntegration","captureConsoleIntegration","contextLinesIntegration","linkedErrorsIntegration","dedupeIntegration","extraErrorDataIntegration","graphqlClientIntegration","httpClientIntegration","reportingObserverIntegration","rewriteFramesIntegration","browserProfilingIntegration","moduleMetadataIntegration","instrumentAnthropicAiClient","
1instrumentOpenAiClient","instrumentGoogleGenAIClient","instrumentLangGraph","createLangChainCallbackHandler","instrumentLangChainEmbeddings"],Uo={replayCanvasIntegration:"replay-canvas",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot"},Ho=$o;async function Wo(e,t){var n=qo.includes(e)?(o=e,Uo[o]||o.replace("Integration","").toLowerCase()):void 0,r=Ho.Sentry=Ho.Sentry||{};if(!n)throw new Error(`Cannot lazy load integration: ${e}`);var o=r[e];if("function"==typeof o&&!("_isShim"in o))return o;const i=function(e){const t=He(),n=t?.getOptions()?.cdnBaseUrl||"https://browser.sentry-cdn.com";return new URL(`/${u}/${e}.min.js`,n).toString()}(n),s=$o.document.createElement("script");s.src=i,s.crossOrigin="anonymous",s.referrerPolicy="strict-origin",t&&s.setAttribute("nonce",t);const a=new Promise((e,t)=>{s.addEventListener("load",()=>e()),s.addEventListener("error",t)}),c=$o.document.currentScript,l=$o.document.body||$o.document.head||c?.parentElement;if(!l)throw new Error(`Could not find parent element to insert lazy-loaded ${e} script`);l.appendChild(s);try{await a}catch{throw new Error(`Error when loading integration: ${e}`)}r=r[e];if("function"!=typeof r)throw new Error(`Could not load integration: ${e}`);return r}const zo=vt({lazyLoadIntegration:Wo}),Vo=vt({getModalIntegration:()=>Rn,getScreenshotIntegration:()=>()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:({h:e,hooks:t,dialog:n,options:r})=>{const o=Qe.createElement("canvas");return{input:Nn({h:e,hooks:t,outputBuffer:o,dialog:n,options:r}),value:async()=>{const e=await new Promise(e=>
1{o.toBlob(e,"image/png")});if(e)return{data:new Uint8Array(await e.arrayBuffer()),filename:"screenshot.png",contentType:"application/png"}}}}})}),Jo="7";function Go(e){var t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function Ko(e,t,n){return t||`${`${Go(e)}${e.projectId}/envelope/`}?${function(e,t){const n={sentry_version:Jo};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}(e,n)}`}function Yo(e,t=[]){return[e,t]}function Xo(e,t){e=e[1];for(const n of e)if(t(n,n[0].type))return!0;return!1}function Qo(e,n){return Xo(e,(e,t)=>n.includes(t))}function Zo(e){const t=a(L);return t.encodePolyfill?t.encodePolyfill(e):(new TextEncoder).encode(e)}function ei(e){const[t,n]=e;let r=JSON.stringify(t);function o(e){"string"==typeof r?r="string"==typeof e?r+e:[Zo(r),e]:r.push("string"==typeof e?Zo(e):e)}for(const e of n){const[t,n]=e;if(o(`\n${JSON.stringify(t)}\n`),"string"==typeof n||n instanceof Uint8Array)o(n);else{let e;try{e=JSON.stringify(n)}catch{e=JSON.stringify(Jn(n))}o(e)}}return"string"==typeof r?r:function(e){const t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n}(r)}const ti={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};function ni(e){return e in ti?ti[e]:e}function ri(e){if(e?.sdk){var{name:t,version:e}=e.sdk;return{name:t,version:e}}}function oi(e,t,n,r){var o=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:pr(r)},...o&&{trace:o}}}const ii="MULTIPLEXED_TRANSPORT_EXTRA_KEY";function si(e,n){let r;return Xo(e,(e,t)=>(n.includes(t)&&(r=Array.isArray(e)?e[1]:void 0),!!r)),r}function ai(l,e){return a=>{const r=l(a),c=new Map,o=e||(e=>{e=e.getEvent();return e?.extra?.[ii]&&Array.isArray(e.extra[ii])?e.extra[ii]:[]});function i(e,t){var r,o,n=t?`${e}:${t}`:e;let i=c.get(n);if(!i){var s=fr(e);if(!s)return;s=Ko(s,a.tunnel);i=t?(r=l,o=t,(e=>{const n=r(e);return{...n,send:async e=>{const t=si(e,["event","transaction","profile","replay_event"]);return t&&(t.release=o),n.send(e)}}})({...a,url:s})):l({...a,url:s}),c.set(n,i)}return[e,i]}return{async send(n){const e=o({envelope:n,getEvent(e){return si(n,e?.length?e:["event"])}}).map(e=>"string"==typeof e?i(e,void 0):i(e.dsn,e.release)).filter(e=>!!e),t=e.length?e:[["",r]];return(await Promise.all(t.map(([e,t])=>t.send(function(e,t){return Yo(t?{...e[0],dsn:t}:e[0],e[1])}(n,e)))))[0]},async flush(t){const e=[...c.values(),r];return(await Promise.all(e.map(e=>e.flush(t)))).every(e=>e)}}}}const ci=100;function li(e,t){const n=He(),r=Fe();if(!n)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:i=ci}=n.getOptions();if(!(i<=0)){const s={timestamp:ge(),...e},a=o?B(()=>o(s,t)):s;null!==a&&(n.emit&&n.emit("beforeAddBreadcrumb",a,t),r.addBreadcrumb(a,i))}}const ui={},di={};function pi(t,n){return ui[t]=ui[t]||[],ui[t].push(n),()=>{const e=ui[t];if(e){const t=e.indexOf(n);-1!==t&&e.splice(t,1)}}}function fi(e,t){if(!di[e]){di[e]=!0;try{t()}catch(t){T&&te.error(`Error while instrumenting ${e}`,t)}}}function hi(e,t){var n=e&&ui[e];if(n)for(const r of n)try{r(t)}catch(t){T&&te.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Z(r)}\nError:`,t)}}function mi(e){var t="console",e=pi(t,e);return fi(t,gi),e}function gi(){"console"in L&&i.forEach(function(n){n in L.console&&A(L.console,n,function(e){return s[n]=e,function(...e){hi("console",{args:e,level:n});const t=s[n];t?.apply(L.console,e)}})})}function yi(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const vi=(e={})=>{const r=e.levels||i,o=e.handled??!0;return{name:"CaptureConsole",setup(n){"console"in L&&mi(({args:e,level:t})=>{He()===n&&r.includes(t)&&function(n,r,o){const i=yi(r),s=new Error,a={level:yi(r),extra:{arguments:n}};qe(e=>{if(e.addEventProcessor(e=>(e.logger="console",fe(e,{handled:o,type:"auto.core.capture_console"}),e)),"assert"!==r){var t=n.find(e=>e instanceof Error);t?yo(t,a):(t=ie(n," "),e.captureMessage(t,i,{captureContext:a,syntheticException:s}))}else if(!n[0]){const r=`Assertion failed: ${ie(n.slice(1)," ")||"console.assert"}`;e.setExtra("arguments",n.slice(1)),e.captureMessage(r,i,{captureContext:a,syntheticException:s})}})}(e,t,o)})}}},_i="sentry.timestamp.sequence";let bi,Si=0;function wi(e){var t=Math.floor(1e3*e);void 0!==bi&&t!==bi&&(Si=0);e=Si;return Si++,bi=t,{key:_i,value:{value:e,type:"integer"}}}function ki(n,r){return r?qe(r,()=>{var e=no(),t=e?Pr(e):We(r);return[e?lo(e):co(n,r),t]}):[void 0,void 0]}const xi={trace:1,debug:5,info:9,warn:13,error:17,fatal:21};const Ti=100;function Ei(e,t,n,r=!0){!n||e[t]&&!r||(e[t]=n)}function Ci(e,t=je(),n=function(e,t){const n=Ri(),r=Ai(e);void 0===r?n.set(e,[t]):r.length>=Ti?(Ii(e,r),n.set(e,[t])):n.set(e,[...r,t])}){const r=t?.getClient()??He();if(!r)return void(T&&te.warn("No client available to capture log."));const{release:o,environment:i,enableLogs:s=!1,beforeSendLog:a}=r.getOptions();if(!s)return void(T&&te.warn("logging option not enabled, log will not be captured."));const[,c]=ki(r,t),l={...e.attributes},{user:{id:u,email:d,username:p},attributes:f={}}=ho(Fe(),t);Ei(l,"user.id",u,!1),Ei(l,"user.email",d,!1),Ei(l,"user.name",p,!1),Ei(l,"sentry.release",o),Ei(l,"sentry.environment",i);var{name:h,version:m}=r.getSdkMetadata()?.sdk??{};Ei(l,"sentry.sdk.name",h),Ei(l,"sentry.sdk.version",m);const g=r.getIntegrationByName("Replay"),y=g?.getReplayId(!0);Ei(l,"sentry.replay_id",y),y&&"buffer"===g?.getRecordingMode()&&Ei(l,"sentry._internal.replay_is_buffering",!0);var v=e.message;
1if(E(v)){const{__sentry_template_string__:k,__sentry_template_values__:x=[]}=v;x?.length&&(l["sentry.message.template"]=k),x.forEach((e,t)=>{l[`sentry.message.parameter.${t}`]=e})}const _=Ee(t);Ei(l,"sentry.trace.parent_span_id",_?.spanContext().spanId);const b={...e,attributes:l};r.emit("beforeCaptureLog",b);var S=a?B(()=>a(b)):b;if(!S)return r.recordDroppedEvent("before_send","log_item",1),void(T&&te.warn("beforeSendLog returned null, log will not be captured."));var{level:w,message:h,attributes:m={},severityNumber:v}=S,t=ve(),e=wi(t);n(r,{timestamp:t,level:w,body:h,trace_id:c?.trace_id,severity_number:v??xi[w],attributes:{...vr(f),...vr(m,!0),[e.key]:e.value}}),r.emit("afterCaptureLog",S)}function Ii(e,t){t=t??Ai(e)??[];0!==t.length&&(t=function(e,t,n,r,o){const i={};return t?.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(i.dsn=pr(r)),Yo(i,[(o=(o=o)?"auto":"never",[{type:"log",item_count:(e=e).length,content_type:"application/vnd.sentry.items.log+json"},{version:2,...Ye()&&{ingest_settings:{infer_ip:o,infer_user_agent:o}},items:e}])])}(t,(t=e.getOptions())._metadata,t.tunnel,e.getDsn(),t.sendDefaultPii),Ri().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(t))}function Ai(e){return Ri().get(e)}function Ri(){return r("clientToLogBufferMap",()=>new WeakMap)}function Mi(e,t,n){return"util"in L&&"function"==typeof L.util.format?L.util.format(...e):(r=t,o=n,e.map(e=>P(e)?String(e):JSON.stringify(Jn(e,r,o))).join(" "));var r,o}function Oi(e){return/%[sdifocO]/.test(e)}function Di(e,t){const n={},r=new Array(t.length).fill("{}").join(" ");return n["sentry.message.template"]=`${e} ${r}`,t.forEach((e,t)=>{n[`sentry.message.parameter.${t}`]=e}),n}const Ni={[Qn]:"auto.log.console"},Li=(e={})=>{const l=e.levels||i;return{name:"ConsoleLogs",setup(s){const{enableLogs:e,normalizeDepth:a=3,normalizeMaxBreadth:c=1e3}=s.getOptions();var t;e?(t=mi(({args:e,level:t})=>{var n,r,o,i;He()===s&&l.includes(t)&&(n=e[0],r=e.slice(1),"assert"!==t?(o="log"===t,i=1<e.length&&"string"==typeof e[0]&&!Oi(e[0]),i={...Ni,...i?Di(n,r):{}},Ci({level:o?"info":t,message:Mi(e,a,c),severityNumber:o?10:void 0,attributes:i})):n||Ci({level:"error",message:0<r.length?`Assertion failed: ${Mi(r,a,c)}`:"Assertion failed",attributes:Ni}))}),s.registerCleanup(t)):T&&te.warn("`enableLogs` is not enabled, ConsoleLogs integration disabled")}}};function Pi(e,t,n=()=>{},r=()=>{}){let o;try{o=e()}catch(e){throw t(e),n(),e}return i=o,s=t,a=n,c=r,y(i)?Re(i,e=>{a(),c(e)},e=>{s(e),a()}):(a(),c(i),i);var i,s,a,c}function $i(e){te.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function ji(o,e){if(!e?.length)return!1;for(const i of e)if("string"==typeof(r=i)||r instanceof RegExp){if(o.description&&se(o.description,i))return T&&$i(o),!0}else{const e=!!i.attributes&&0<Object.keys(i.attributes).length;if(i.name||i.op||e){var t=!i.name||o.description&&se(o.description,i.name),n=!i.op||o.op&&se(o.op,i.op),r=!i.attributes||Object.entries(i.attributes).every(([e,t])=>{return n=o.attributes?.[e],r=t,"string"==typeof n&&("string"==typeof r||r instanceof RegExp)?se(n,r):Array.isArray(n)&&Array.isArray(r)?n.length===r.length&&n.every((e,t)=>e===r[t]):n===r;let n,r});if(t&&n&&r)return T&&$i(o),!0}}var r;return!1}function Fi(e){return"stream"===e.getOptions().traceLifecycle}class Bi{constructor(e={}){this._traceId=e.traceId||le(),this._spanId=e.spanId||ke(),this.dropReason=e.dropReason}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}}function qi(e){return R(e,"_streamed",!0),e}function Ui(e){return e&&"function"==typeof e&&"_streamed"in e&&e._streamed}function Hi(e,t,n,r=no()){const o=r&&eo(r);o&&(T&&te.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),o.addEvent(e,{[tr]:t,[er]:n}))}function Wi(e){if(e&&0!==e.length){const r={};return e.forEach(e=>{var t=e.attributes||{},n=t[er],t=t[tr];"string"==typeof n&&"number"==typeof t&&(r[e.name]={value:t,unit:n})}),r}}class zi{constructor(e={}){this._traceId=e.traceId||le(),this._spanId=e.spanId||ke(),this._startTime=e.startTimestamp||ve(),this._links=e.links,this._attributes={},this.setAttributes({[Qn]:"manual",[Xn]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}
1addLink(e){return this._links?this._links.push(e):this._links=[e],this}addLinks(e){return this._links?this._links.push(...e):this._links=e,this}recordException(e,t){}spanContext(){var{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?Nr:0}}setAttribute(e,t){return void 0===t?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(t){return Object.keys(t).forEach(e=>this.setAttribute(e,t[e])),this}updateStartTime(e){this._startTime=Br(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(Gn,"custom"),this}end(e){var t,n,r;this._endTime||(this._endTime=Br(e),t=this,T&&({description:n="< unknown name >",op:r="< unknown op >"}=Ur(t),e=t.spanContext()["spanId"],e=`[Tracing] Finishing "${r}" ${eo(t)===t?"root ":""}span "${n}" with ID ${e}`,te.log(e)),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[Xn],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:Gr(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Qn],profile_id:this._attributes[rr],exclusive_time:this._attributes[or],measurements:Wi(this._events),is_segment:this._isStandaloneSpan&&eo(this)===this||void 0,segment_id:this._isStandaloneSpan?eo(this).spanContext().spanId:void 0,links:jr(this._links)}}getStreamedSpanJSON(){return{name:this._name??"",span_id:this._spanId,trace_id:this._traceId,parent_span_id:this._parentSpanId,start_timestamp:this._startTime,end_timestamp:this._endTime??this._startTime,is_segment:this._isStandaloneSpan||this===eo(this),status:Kr(this._status),attributes:this._attributes,links:Fr(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){T&&te.log("[Tracing] Adding an event to span:",e);n=Vi(t)?t:n||ve(),t=!Vi(t)&&t||{},t={name:e,time:Br(n),attributes:t};return this._events.push(t),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const e=He();var t;e&&(e.emit("spanEnd",this),this._isStandaloneSpan||e.emit("afterSpanEnd",this)),!this._isStandaloneSpan&&this!==eo(this)||(this._isStandaloneSpan?this._sampled?function(e){const t=He();var n;t&&((n=e[1])&&0!==n.length?t.sendEnvelope(e):t.recordDroppedEvent("before_send","span"))}(function(e,t){const n=lo(e[0]),r=t?.getDsn(),o=t?.getOptions().tunnel,i={sent_at:(new Date).toISOString(),...!!n.trace_id&&!!n.public_key&&{trace:n},...!!o&&r&&{dsn:pr(r)}},{beforeSendSpan:s,ignoreSpans:a}=t?.getOptions()||{},c=a?.length?e.filter(e=>{e=Ur(e);return!ji({description:e.description,op:e.op,attributes:e.data},a)}):e,l=e.length-c.length;l&&t?.recordDroppedEvent("before_send","span",l);const u=s?e=>{e=Ur(e);return(Ui(s)?e:s(e))||(ro(),e)}:Ur,d=[];for(const e of c){const t=u(e);t&&d.push([{type:"span"},t])}return Yo(i,d)}([this],e)):(T&&te.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span")):e&&Fi(e)?e.emit("afterSegmentSpanEnd",this):(t=this._convertSpanToTransaction())&&(Ir(this).scope||je()).captureEvent(t))}_convertSpanToTransaction(){if(Ji(Ur(this))){this._name||(T&&te.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:e,isolationScope:t}=Ir(this),n=e?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0===this._sampled){const r=Zr(this).filter(e=>e!==this&&!function(e){return e instanceof zi&&e.isStandaloneSpan()}(e)).map(e=>Ur(e)).filter(Ji),o=this._attributes[Gn];delete this._attributes[nr],r.forEach(e=>{delete e.data[nr]});const i={contexts:{trace:function(e){var{spanId:t,traceId:n}=e.spanContext(),{data:r,op:o,parent_span_id:i,status:s,origin:a,links:e}=Ur(e);return{parent_span_id:i,span_id:t,trace_id:n,data:r,op:o,status:s,origin:a,links:e}}(this)},spans:1e3<r.length?r.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,1e3):r,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,dynamicSamplingContext:lo(this)},request:n,...o&&{transaction_info:{source:o}}},s=Wi(this._events);return s&&Object.keys(s).length&&(T&&te.log("[Measurements] Adding measurements to transaction event",JSON.stringify(s,void 0,2)),i.measurements=s),i}}}}function Vi(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function Ji(e){return!!(e.start_timestamp&&e.timestamp&&e.span_id&&e.trace_id)}const Gi="__SENTRY_SUPPRESS_TRACING__";function Ki(i,s){const e=os();if(e.startSpan)return e.startSpan(i,s);const a=rs(i),{forceTransaction:c,parentSpan:l,scope:t}=i,n=t?.clone();return qe(n,()=>as(l)(()=>{const e=je(),t=ss(e,l),n=He(),r=i.onlyIfParent&&!t,o=r?new Bi:ns({parentSpan:t,spanArguments:a,forceTransaction:c,scope:e});return r&&n?.recordDroppedEvent("no_parent_span","span"),cs(o)&&t||Te(e,o),Pi(()=>s(o),()=>{var e=Ur(o)["status"];!o.isRecording()||e&&"ok"!==e||o.setStatus({code:kr,message:"internal_error"})},()=>{o.end()})}))}function Yi(o,i){const e=os();if(e.startSpanManual)return e.startSpanManual(o,i);const s=rs(o),{forceTransaction:a,parentSpan:c,scope:t}=o,n=t?.clone();return qe(n,()=>as(c)(()=>{const e=je(),t=ss(e,c),n=o.onlyIfParent&&!t,r=n?new Bi:ns({parentSpan:t,spanArguments:s,forceTransaction:a,scope:e});return n&&He()?.recordDroppedEvent("no_parent_span","span"),cs(r)&&t||Te(e,r),Pi(()=>i(r,()=>r.end()),()=>{var e=Ur(r)["status"];!r.isRecording()||e&&"ok"!==e||r.setStatus({code:kr,message:"internal_error"})})}))}function Xi(r){const e=os();if(e.startInactiveSpan)return e.startInactiveSpan(r);const o=rs(r),{forceTransaction:i,parentSpan:s}=r;return(r.scope?e=>qe(r.scope,e):void 0!==s?e=>Zi(s,e):e=>e())(()=>{const e=je(),t=ss(e,s),n=He();return r.onlyIfParent&&!t?(n?.recordDroppedEvent("no_parent_span","span"),new Bi):ns({parentSpan:t,spanArguments:o,forceTransaction:i,scope:e})})}const Qi=(e,n)=>{const t=Pe(l());if(t.continueTrace)return t.continueTrace(e,n);const{sentryTrace:r,baggage:o}=e,i=He(),s=ar(o);
1return!i||(c=s?.org_id,e=mr(a=i),c&&e&&c!==e?(te.log(`Won't continue trace because org IDs don't match (incoming baggage: ${c}, SDK options: ${e})`),0):!a.getOptions().strictTraceContinuation||!(c&&!e||!c&&e)||(te.log(`Starting a new trace because strict trace continuation is enabled but one org ID is missing (incoming baggage: ${c}, Sentry client: ${e})`),0))?qe(e=>{var t=Mr(r,o);return e.setPropagationContext(t),Te(e,void 0),n()}):ts(n);var a,c};function Zi(t,n){const e=os();return e.withActiveSpan?e.withActiveSpan(t,n):qe(e=>(Te(e,t||void 0),n(e)))}function es(n){const e=os();return e.suppressTracing?e.suppressTracing(n):qe(e=>{e.setSDKProcessingMetadata({[Gi]:!0});var t=n();return e.setSDKProcessingMetadata({[Gi]:void 0}),t})}function ts(t){const e=os();return e.startNewTrace?e.startNewTrace(t):qe(e=>(e.setPropagationContext({traceId:le(),sampleRand:W()}),T&&te.log(`Starting a new trace with id ${e.getPropagationContext().traceId}`),Zi(null,t)))}function ns({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!yr()){const u=new Bi;return!n&&e||so(u,{sampled:"false",sample_rate:"0",transaction:t.name,...lo(u)}),u}const o=He();if(i=o,s=t,a=i?.getOptions().ignoreSpans,i&&Fi(i)&&a?.length&&ji({description:s.name||"",op:s.attributes?.[Xn]||s.op,attributes:s.attributes},a))return ls(r)||o?.recordDroppedEvent("ignored","span"),new Bi({dropReason:"ignored",traceId:e?.spanContext().traceId??r.getPropagationContext().traceId});var i,s,a;const c=Fe();let l;if(e&&!n)l=function(e,t,n){const{spanId:r,traceId:o}=e.spanContext(),i=ls(t),s=!i&&Jr(e),a=s?new zi({...n,parentSpanId:r,traceId:o,sampled:s}):new Bi({traceId:o});Qr(e,a);const c=He();return c&&(Fi(c)&&a instanceof Bi&&(e instanceof Bi&&e.dropReason?(a.dropReason=e.dropReason,c.recordDroppedEvent(e.dropReason,"span")):i||(a.dropReason="sample_rate",c.recordDroppedEvent("sample_rate","span"))),c.emit("spanStart",a),n.endTimestamp&&(c.emit("spanEnd",a),c.emit("afterSpanEnd",a))),a}(e,r,t),Qr(e,l);else if(e){const n=lo(e),{traceId:L,spanId:o}=e.spanContext(),c=Jr(e);l=is({traceId:L,parentSpanId:o,...t},r,c),so(l,n)}else{const{traceId:d,dsc:n,parentSpanId:L,sampled:o}={...c.getPropagationContext(),...r.getPropagationContext()};l=is({traceId:d,parentSpanId:L,...t},r,o),n&&so(l,n)}return function(e){if(!T)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=Ur(e),o=e.spanContext()["spanId"],i=Jr(e),s=eo(e),a=s===e,c=`[Tracing] Starting ${i?"sampled":"unsampled"} ${a?"root ":""}span`,l=[`op: ${n}`,`name: ${t}`,`ID: ${o}`];if(r&&l.push(`parent ID: ${r}`),!a){const{op:e,description:t}=Ur(s);l.push(`root ID: ${s.spanContext().spanId}`),e&&l.push(`root op: ${e}`),t&&l.push(`root description: ${t}`)}te.log(`${c}\n  ${l.join("\n  ")}`)}(l),e=l,t=r,r=c,e&&(R(e,Cr,function(e){try{const t=L.WeakRef;if("function"==typeof t)return new t(e)}catch{}return e}(r)),R(e,Er,t)),l}function rs(e){var t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const n={...t};return n.startTimestamp=Br(e.startTime),delete n.startTime,n}return t}function os(){return Pe(l())}function is(e,t,n){const r=He(),o=r?.getOptions()||{},{name:i=""}=e,s={spanAttributes:{...e.attributes},spanName:i,parentSampled:n};r?.emit("beforeSampling",s,{decision:!1});var a=s.parentSampled??n,c=s.spanAttributes,l=t.getPropagationContext(),n=ls(t),[t,a,l]=n?[!1]:function(e,t,n){if(!yr
1(e))return[!1];let r,o;"function"==typeof e.tracesSampler?(o=e.tracesSampler({...t,inheritOrSampleWith:e=>"number"==typeof t.parentSampleRate?t.parentSampleRate:"boolean"==typeof t.parentSampled?Number(t.parentSampled):e}),r=!0):void 0!==t.parentSampled?o=t.parentSampled:void 0!==e.tracesSampleRate&&(o=e.tracesSampleRate,r=!0);var i=Ar(o);if(void 0===i)return T&&te.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(o)} of type ${JSON.stringify(typeof o)}.`),[!1];if(!i)return T&&te.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"}`),[!1,i,r];n=n<i;return n||T&&te.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(o)})`),[n,i,r]}(o,{name:i,parentSampled:a,attributes:c,parentSampleRate:Ar(l.dsc?.sample_rate)},l.sampleRand),c=new zi({...e,attributes:{[Gn]:"custom",[Kn]:void 0!==a&&l?a:void 0,...c},sampled:t});return t||!r||n||(T&&te.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),r.recordDroppedEvent("sample_rate",Fi(r)?"span":"transaction")),r&&r.emit("spanStart",c),c}function ss(e,t){if(t)return t;if(null!==t){e=Ee(e);if(e){const n=He();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?eo(e):e}}}function as(t){return void 0!==t?e=>Zi(t,e):e=>e()}function cs(e){return e instanceof Bi&&"ignored"===e.dropReason}function ls(e){return!0===e.getScopeData().sdkProcessingMetadata[Gi]}const us=["trace","debug","info","warn","error","fatal"];function ds(e={}){const h=new Set(e.levels??us),m=e.client;return{log(e){const{type:t,level:n,message:r,args:o,tag:i,date:s,...a}=e,c=m||He();if(!c)return;var l=function(e,t){if("verbose"===e)return"debug";if("silent"===e)return"trace";if(e){const t=ps[e];if(t)return t}if("number"==typeof t){const e=fs[t];if(e)return e}return"info"}(t,n);if(!h.has(l))return;const{normalizeDepth:u=3,normalizeMaxBreadth:d=1e3}=c.getOptions(),p={};for(const[f,h]of Object.entries(a))p[f]=Jn(h,u,d);p["sentry.origin"]="auto.log.consola",i&&(p["consola.tag"]=i),t&&(p["consola.type"]=t),null!=n&&"number"==typeof n&&(p["consola.level"]=n);e=function(e,n,r){const{message:t,attributes:o,messageTemplate:i,messageParameters:s}=e,a={};if(i&&s){const e=Di(i,s);for(const[t,o]of Object.entries(e))a[t]=t.startsWith("sentry.message.parameter.")?Jn(o,n,r):o}else s&&0<s.length&&s.forEach((e,t)=>{a[`sentry.message.parameter.${t}`]=Jn(e,n,r)});return{message:t,attributes:{...Jn(o,n,r),...a}}}(function(e,t,n){if(!e?.length)return{message:""};t=Mi(e,t,n),n=e[0];if(_(n)){const r="string"==typeof e[1]?2:1;return{message:t,attributes:n,messageParameters:e.slice(r)}}{const r=e.slice(1),o=0<r.length&&"string"==typeof n&&!Oi(n);return{message:t,messageTemplate:o?n:void 0,messageParameters:o?r:void 0}}}(o,u,d),u,d);e?.attributes&&Object.assign(p,e.attributes),Ci({level:l,message:e?.message||r||o&&Mi(o,u,d)||"",attributes:p})}}}const ps={silent:"trace",fatal:"fatal",error:"error",warn:"warn",log:"info",info:"info",success:"info",fail:"error",ready:"info",start:"info",box:"info",debug:"debug",trace:"trace",verbose:"debug",critical:"fatal",notice:"info"},fs={0:"fatal",1:"warn",2:"info",3:"info",4:"debug",5:"trace"},hs="gen_ai.system",ms="gen_ai.request.model",gs="gen_ai.request.stream",ys="gen_ai.request.temperature",vs="gen_ai.request.max_tokens",_s="gen_ai.request.frequency_penalty",bs="gen_ai.request.presence_penalty",Ss="gen_ai.request.top_p",ws="gen_ai.request.top_k",ks="gen_ai.request.encoding_format",xs="gen_ai.request.dimensions",Ts="gen_ai.response.finish_reasons",Es="gen_ai.response.model",Cs="gen_ai.response.id",Is="gen_ai.response.stop_reason",As="gen_ai.usage.input_tokens",Rs="gen_ai.usage.output_tokens",Ms="gen_ai.usage.total_tokens",Os="gen_ai.operation.name",Ds="sentry.sdk_meta.gen_ai.input.messages.original_length",Ns="gen_ai.input.messages",Ls="gen_ai.system_instructions",Ps="gen_ai.response.text",$s="gen_ai.request.available_tools",js="gen_ai.response.tool_calls",Fs="gen_ai.agent.name",Bs="gen_ai.pipeline.name",qs="gen_ai.conversation.id",Us="gen_ai.usage.cache_creation_input_tokens",Hs="gen_ai.usage.cache_read_input_tokens",Ws="gen_ai.invoke_agent",zs="gen_ai.embeddings.input",Vs="gen_ai.embeddings",Js="gen_ai.execute_tool",Gs="gen_ai.tool.name",Ks="gen_ai.tool.call.id",Ys="gen_ai.tool.type",Xs="gen_ai.tool.input",Qs="gen_ai.tool.output",Zs="gen_ai.tool.description";function ea(e){return!(!e||"object"!=typeof e)&&("type"in(o=e)&&"string"==typeof o.type&&"source"in o&&ea(o.source)||na(e)||"image_url"in(r=e)&&("string"==typeof r.image_url?r.image_url.startsWith("data:"):ta(r))||ra(e)||oa(e)||"media_type"in(r=e)&&"string"==typeof r.media_type&&"data"in r||"type"in(n=e)&&"file"===n.type&&"mediaType"in n&&"string"==typeof n.mediaType&&"data"in n&&"string"==typeof n.data&&!n.data.startsWith("http://")&&!n.data.startsWith("https://")||"type"in(n=e)&&"image"===n.type&&"image"in n&&"string"==typeof n.image&&!n.image.startsWith("http://")&&!n.image.startsWith("https://")||"type"in(t=e)&&("blob"===t.type||"base64"===t.type)||"b64_json"in e||"type"in(t=e)&&"result"in t&&"image_generation"===t.type||"uri"in(e=e)&&"string"==typeof e.uri&&e.uri.startsWith("data:"));var t,n,r,o}function ta(e){return"image_url"in e&&!!e.image_url&&"object"==typeof e.image_url&&"url"in e.image_url&&"string"==typeof e.image_url.url&&e.
1image_url.url.startsWith("data:")}function na(e){return"inlineData"in e&&!!e.inlineData&&"object"==typeof e.inlineData&&"data"in e.inlineData&&"string"==typeof e.inlineData.data}function ra(e){return"type"in e&&"input_audio"===e.type&&"input_audio"in e&&!!e.input_audio&&"object"==typeof e.input_audio&&"data"in e.input_audio&&"string"==typeof e.input_audio.data}function oa(e){return"type"in e&&"file"===e.type&&"file"in e&&!!e.file&&"object"==typeof e.file&&"file_data"in e.file&&"string"==typeof e.file.file_data}const ia="[Blob substitute]",sa=["image_url","data","content","b64_json","result","uri","image"];function aa(e){const t={...e};ea(t.source)&&(t.source=aa(t.source)),na(e)&&(t.inlineData={...e.inlineData,data:ia}),ta(e)&&(t.image_url={...e.image_url,url:ia}),ra(e)&&(t.input_audio={...e.input_audio,data:ia}),oa(e)&&(t.file={...e.file,file_data:ia});for(const e of sa)"string"==typeof t[e]&&(t[e]=ia);return t}const ca=2e4,la=e=>(new TextEncoder).encode(e).length,ua=e=>la(JSON.stringify(e));function da(e,t){if(la(e)<=t)return e;let n=0,r=e.length,o="";for(;n<=r;){var i=Math.floor((n+r)/2),s=e.slice(0,i);la(s)<=t?(o=s,n=i+1):r=i-1}return o}function pa(e,t){return"string"==typeof e?t:{...e,text:t}}function fa(e){return null!==e&&"object"==typeof e&&"content"in e&&Array.isArray(e.content)}function ha(e){return null!==e&&"object"==typeof e&&"parts"in e&&Array.isArray(e.parts)&&0<e.parts.length}function ma(e,t){if(!e)return[];if("string"!=typeof e)return"object"!=typeof e?[]:null!==(n=e)&&"object"==typeof n&&"content"in n&&"string"==typeof n.content?function(e,t){var n={...e,content:""},n=t-ua(n);if(n<=0)return[];n=da(e.content,n);return[{...e,content:n}]}(e,t):fa(e)||ha(e)?function(e,t){const{key:n,items:r}="parts"in(i=e)&&Array.isArray(i.parts)?{key:"parts",items:i.parts}:"content"in i&&Array.isArray(i.content)?{key:"content",items:i.content}:{key:null,items:[]};if(null===n||0===r.length)return[];var o,i=r.map(e=>pa(e,""));let s=t-ua({...e,[n]:i});if(s<=0)return[];const a=[];for(const e of r){const t="string"==typeof(o=e)?o:"text"in o&&"string"==typeof o.text?o.text:"",n=la(t);if(!(n<=s)){if(0!==a.length)break;{const n=da(t,s);n&&a.push(pa(e,n));break}}a.push(e),s-=n}return a.length<=0?[]:[{...e,[n]:a}]}(e,t):[];var n,t=da(e,t);return t?[t]:[]}function ga(e,t){if(!Array.isArray(e)||0===e.length)return e;var n=t-2,t=function n(e){return e.map(e=>{let t;return e&&"object"==typeof e&&(fa(e)?t={...e,content:n(e.content)}:"content"in e&&ea(e.content)&&(t={...e,content:aa(e.content)}),ha(e)&&(t={...t??e,parts:n(e.parts)}),ea(t)?t=aa(t):ea(e)&&(t=aa(e))),t??e})}([e[e.length-1]]),e=t[0];return ua(e)<=n?t:ma(e,n)}function ya(e){var t=Boolean(He()?.getOptions().sendDefaultPii);return{...e,recordInputs:e?.recordInputs??t,recordOutputs:e?.recordOutputs??t}}function va(e){var t=He();return e??!(t&&Fi(t))}function _a(e,t){return e?`${e}.${t}`:t}function ba(e,t,n){if(e.isRecording()){const r={"gen_ai.response.streaming":!0};t.responseId&&(r[Cs]=t.responseId),t.responseModel&&(r[Es]=t.responseModel),void 0!==t.promptTokens&&(r[As]=t.promptTokens),void 0!==t.completionTokens&&(r[Rs]=t.completionTokens),void 0!==t.totalTokens?r[Ms]=t.totalTokens:void 0===t.promptTokens&&void 0===t.completionTokens&&void 0===t.cacheCreationInputTokens&&void 0===t.cacheReadInputTokens||(r[Ms]=(t.promptTokens??0)+(t.completionTokens??0)+(t.cacheCreationInputTokens??0)+(t.cacheReadInputTokens??0)),t.finishReasons.length&&(r[Ts]=JSON.stringify(t.finishReasons)),n&&t.responseTexts.length&&(r[Ps]=t.responseTexts.join("")),n&&t.toolCalls.length&&(r[js]=JSON.stringify(t.toolCalls)),e.setAttributes(r),e.end()}}function Sa(e){return"string"==typeof e?e:JSON.stringify(e)}function wa(e){if("string"==typeof e)return da(e,ca);if(Array.isArray(e)){var t=ga(e,ca);return JSON.stringify(t)}return JSON.stringify(e)}function ka(e){if(!Array.isArray(e))return{systemInstructions:void 0,filteredMessages:e};var t=e.findIndex(e=>e&&"object"==typeof e&&"role"in e&&"system"===e.role);if(-1===t)return{systemInstructions:void 0,filteredMessages:e};var n=e[t],n="string"==typeof n.content?n.content:void 0!==n.content?JSON.stringify(n.content):void 0;return n?{systemInstructions:JSON.stringify([{type:"text",content:n}]),filteredMessages:[...e.slice(0,t),...e.slice(t+1)]}:{systemInstructions:void 0,filteredMessages:e}}function xa(e,o,i){return y(e)?new Proxy(e,{get(e,t){const n=t in Promise.prototype||t===Symbol.toStringTag?o:e,r=Reflect.get(n,t);return"withResponse"===t&&"function"==typeof r?function(){return async function(e,t,n){e=e.catch(e=>{throw yo(e,{mechanism:{handled:!1,type:n}}),e}),t=await t,e=await e;return e&&"object"==typeof e&&"data"in e?{...e,data:t}:t}(r.call(e),o,i)}:"function"==typeof r?r.bind(n):r}}):o}const Ta="auto.ai.langchain",Ea={human:"user",ai:"assistant",assistant:"assistant",system:"system",function:"function",tool:"tool"},Ca=(e,t,n)=>{null!=n&&(e[t]=n)},Ia=(e,t,n)=>{n=Number(n);Number.isNaN(n)||(e[t]=n)};function Aa(e){if("string"==typeof e)return e;try{return JSON.stringify(e)}catch{return String(e)}}function Ra(e){if(Array.isArray(e))try{var t=e.map(e=>e&&"object"==typeof e&&ea(e)?aa(e):e);return JSON.stringify(t)}catch{return String(e)}return Aa(e)}function Ma(e){e=e.toLowerCase();return Ea[e]??e}function Oa(e){return e.includes("System")?"system":e.includes("Human")?"user":e.includes("AI")||e.includes("Assistant")?"assistant":e.includes("Function")?"function":e.includes("Tool")?"tool":"user"}function Da(e){if(e&&!Array.isArray(e))return e.invocation_params}function Na(e){return e.map(e=>{const t=e._getType;if("function"==typeof t)return{role:Ma(t.call(e)),content:Ra(e.content)};if(1===e.lc&&e.kwargs){const t=e.id,n=Array.isArray(t)&&0<t.length?t[t.length-1]:"";return{role:Ma("string"==typeof n?Oa(n):"user"),content:Ra(e.kwargs?.content)}}if(e.type)return{role:Ma(String(e.type).toLowerCase()),content:Ra(e.content)};if(e.role)return{role:Ma(String(e.role)),content:Ra(e.content)};const n=e.constructor?.name;return n&&"Object"!==n?{role:Ma(Oa(n)),content:Ra(e.content)}:{role:"user",content:Ra(e.content)}})}function La(e,t,n,r,o){return{[hs]:Aa(e??"langchain"),[Os]:"chat",[ms]:Aa(t),[Qn]:Ta,...(t=n,n=r,r=o,o={},t="kwargs"in t?t.kwargs:void 0,Ia(o,ys,n?.temperature??r?.ls_temperature??t?.temperature),Ia(o,vs,n?.max_tokens??r?.ls_max_tokens??t?.max_tokens),Ia(o,Ss,n?.top_p??t?.top_p),t=n?.frequency_penalty,Ia(o,_s,t),t=n?.presence_penalty,Ia(o,bs,t),n&&"stream"in n&&Ca(o,gs,Boolean(n.stream)),o)}}function Pa(e){const t={},n=e?.lc_agent_name;return"string"==typeof n&&(t[Fs]=n),t}function $a(e={}){const{recordInputs:d,recordOutputs:s}=ya(e),p=va(e.enableTruncation),f=new Map,a=e=>{const t=f.get(e);t?.isRecording()&&(t.end(),f.delete(e))}
1,t={lc_serializable:!1,lc_namespace:["langchain_core","callbacks","sentry"],lc_secrets:void 0,lc_attributes:void 0,lc_aliases:void 0,lc_serializable_keys:void 0,lc_id:["langchain_core","callbacks","sentry"],lc_kwargs:{},name:"SentryCallbackHandler",ignoreLLM:!1,ignoreChain:!1,ignoreAgent:!1,ignoreRetriever:!1,ignoreCustomEvent:!1,raiseError:!1,awaitHandlers:!0,handleLLMStart(e,t,n,r,o,i,s,a){const c=Da(i),l=function(e,t,n,r){e=La(s?.ls_provider,c?.model??s?.ls_model_name??"unknown",e,c,s);if(n&&Array.isArray(t)&&0<t.length){Ca(e,Ds,t.length);const o=t.map(e=>({role:"user",content:e}));Ca(e,Ns,(r?wa:Sa)(o))}return e}(e,t,d,p),u=l[ms];Yi({name:`${l[Os]} ${u}`,op:"gen_ai.chat",attributes:{...Pa(s),...l,[Xn]:"gen_ai.chat"}},e=>(f.set(n,e),e))},handleChatModelStart(e,t,n,r,o,i,s,a){const c=Da(i),l=function(e,t,n,r,o,i){i=La(i?.ls_provider??e.id?.[2],o?.model??i?.ls_model_name??"unknown",e,o,i);if(n&&Array.isArray(t)&&0<t.length){const e=Na(t.flat()),{systemInstructions:n,filteredMessages:o}=ka(e);n&&Ca(i,Ls,n);const s=Array.isArray(o)?o.length:0;Ca(i,Ds,s),Ca(i,Ns,(r?wa:Sa)(o))}return i}(e,t,d,p,c,s),u=function(){const e=o?.invocation_params?.tools??o?.options?.tools;if(Array.isArray(e)&&0!==e.length){var t=e.map(e=>{var t=e.function;return{type:"function",name:e.name??t?.name??"",description:e.description??t?.description}});return JSON.stringify(t)}}();u&&(l[$s]=u);t=l[ms];Yi({name:`${l[Os]} ${t}`,op:"gen_ai.chat",attributes:{...Pa(s),...l,[Xn]:"gen_ai.chat"}},e=>(f.set(n,e),e))},handleLLMEnd(e,t,n,r,o){const i=f.get(t);if(i?.isRecording()){const n=function(e,t){if(e){var n={};if(Array.isArray(e.generations)){const r=e.generations.flat().map(e=>e.generationInfo?.finish_reason?e.generationInfo.finish_reason:e.generation_info?.finish_reason?e.generation_info.finish_reason:null).filter(e=>"string"==typeof e);if(0<r.length&&Ca(n,Ts,Aa(r)),function(e,t){const n=[],r=e.flat();for(const e of r){const t=e.message,r=t?.tool_calls;if(Array.isArray(r)&&0<r.length)n.push(...r);else{const t=e.message?.content;if(Array.isArray(t))for(const e of t){const t=e;"tool_use"===t.type&&n.push(t)}}}0<n.length&&Ca(t,js,Aa(n))}(e.generations,n),t){const t=e.generations.flat().map(e=>e.text??e.message?.content).filter(e=>"string"==typeof e);0<t.length&&Ca(n,Ps,Aa(t))}}!function(e,t){if(e){const n=e.tokenUsage,r=e.usage;if(n)Ia(t,As,n.promptTokens),Ia(t,Rs,n.completionTokens),Ia(t,Ms,n.totalTokens);else if(r){Ia(t,As,r.input_tokens),Ia(t,Rs,r.output_tokens);const e=Number(r.input_tokens),n=Number(r.output_tokens),o=(Number.isNaN(e)?0:e)+(Number.isNaN(n)?0:n);0<o&&Ia(t,Ms,o),void 0!==r.cache_creation_input_tokens&&Ia(t,Us,r.cache_creation_input_tokens),void 0!==r.cache_read_input_tokens&&Ia(t,Hs,r.cache_read_input_tokens)}}}(e.llmOutput,n);const r=e.llmOutput,o=e.generations?.[0]?.[0],i=o?.message,s=r?.model_name??r?.model??i?.response_metadata?.model_name;s&&Ca(n,Es,s);e=r?.id??i?.id;e&&Ca(n,Cs,e);e=r?.stop_reason??i?.response_metadata?.finish_reason;return e&&Ca(n,Is,Aa(e)),n}}(e,s);n&&i.setAttributes(n),a(t)}},handleLLMError(e,t){const n=f.get(t);n?.isRecording()&&(n.setStatus({code:kr,message:"internal_error"}),a(t)),yo(e,{mechanism:{handled:!1,type:`${Ta}.llm_error_handler`}})},handleChainStart(e,t,n,r,o,i,s,a){if(!i?.__sentry_langgraph__){const c=a||e.name||"unknown_chain",l={[Qn]:"auto.ai.langchain","langchain.chain.name":c};d&&(l["langchain.chain.inputs"]=JSON.stringify(t)),Yi({name:`chain ${c}`,op:"gen_ai.invoke_agent",attributes:{...l,[Xn]:"gen_ai.invoke_agent"}},e=>(f.set(n,e),e))}},handleChainEnd(e,t){const n=f.get(t);n?.isRecording()&&(s&&n.setAttributes({"langchain.chain.outputs":JSON.stringify(e)}),a(t))},handleChainError(e,t){const n=f.get(t);n?.isRecording()&&(n.setStatus({code:kr,message:"internal_error"}),a(t)),yo(e,{mechanism:{handled:!1,type:`${Ta}.chain_error_handler`}})},handleToolStart(e,t,n,r,o,i,s){if(!i?.__sentry_langgraph__){const a=s||e.name||"unknown_tool",c={...Pa(i),[Qn]:Ta,[Os]:"execute_tool",[Gs]:a};d&&(c[Xs]=t),Yi({name:`execute_tool ${a}`,op:"gen_ai.execute_tool",attributes:{...c,[Xn]:"gen_ai.execute_tool"}},e=>(f.set(n,e),e))}},handleToolEnd(e,t){const n=f.get(t);if(n?.isRecording()){if(s){const t=e&&"object"==typeof e&&"content"in e?e.content:e;n.setAttributes({[Qs]:"string"==typeof t?t:JSON.stringify(t)})}a(t)}},handleToolError(e,t){const n=f.get(t);n?.isRecording()&&(n.setStatus({code:kr,message:"internal_error"}),a(t)),yo(e,{mechanism:{handled:!1,type:`${Ta}.tool_error_handler`}})},copy(){return t}
1,toJSON(){return{lc:1,type:"not_implemented",id:t.lc_id}},toJSONNotImplemented(){return{lc:1,type:"not_implemented",id:t.lc_id}}};return t}function ja(e){return"object"==typeof e&&"function"==typeof e.unref&&e.unref(),e}const Fa=Symbol.for("SentryBufferFullError");function Ba(n=100){const r=new Set;function o(e){r.delete(e)}return{get $(){return Array.from(r)},add(e){if(!(r.size<n))return $n(Fa);const t=e();return r.add(t),t.then(()=>o(t),()=>o(t)),t},drain(t){if(!r.size)return Pn(!0);var e=Promise.allSettled(Array.from(r)).then(()=>!0);if(!t)return e;e=[e,new Promise(e=>ja(setTimeout(()=>e(!1),t)))];return Promise.race(e)}}}const qa=6e4;function Ua(e,t=z()){var n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;e=Date.parse(`${e}`);return isNaN(e)?qa:e-t}function Ha(e,t,n=z()){return(e[t]||e.all||0)>n}function Wa(e,{statusCode:t,headers:n},r=z()){const o={...e},i=n?.["x-sentry-rate-limits"],s=n?.["retry-after"];if(i)for(const e of i.trim().split(",")){const[t,n,,,i]=e.split(":",5),s=parseInt(t,10),a=1e3*(isNaN(s)?60:s);if(n)for(const e of n.split(";"))"metric_bucket"===e&&i&&!i.split(";").includes("custom")||(o[e]=r+a);else o.all=r+a}else s?o.all=r+Ua(s,r):429===t&&(o.all=r+6e4);return o}const za=64;function Va(o,i,s=Ba(o.bufferSize||za)){let a={};return{send(e){const n=[];if(Xo(e,(e,t)=>{t=ni(t);Ha(a,t)?o.recordDroppedEvent("ratelimit_backoff",t):n.push(e)}),0===n.length)return Promise.resolve({});const t=Yo(e[0],n),r=n=>{Qo(t,["client_report"])?T&&te.warn(`Dropping client report. Will not send outcomes (reason: ${n}).`):Xo(t,(e,t)=>{o.recordDroppedEvent(n,ni(t))})};return s.add(()=>i({body:ei(t)}).then(e=>(413===e.statusCode?(T&&te.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),r("send_error")):(T&&void 0!==e.statusCode&&(e.statusCode<200||300<=e.statusCode)&&te.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),a=Wa(a,e)),e),e=>{throw r("network_error"),T&&te.error("Encountered error running transport request:",e),e})).then(e=>e,e=>{if(e===Fa)return T&&te.error("Skipped sending event because buffer is full."),r("queue_overflow"),Promise.resolve({});throw e})},flush:e=>s.drain(e)}}const Ja=()=>{let a;return{name:"Dedupe",processEvent(e){if(e.type)return e;try{if(t=e,(n=a)&&(o=n,i=(r=t).message,s=o.message,!(!i&&!s||i&&!s||!i&&s||i!==s)&&Ka(r,o)&&Ga(r,o)||(r=t,t=Ya(o=n),n=Ya(r),t&&n&&t.type===n.type&&t.value===n.value&&Ka(r,o)&&Ga(r,o))))return T&&te.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}var t,n,r,o,i,s;return a=e}}};function Ga(e,t){var n=ee(e),r=ee(t);if(!n&&!r)return 1;if(!(n&&!r||!n&&r)&&r.length===n.length){for(let e=0;e<r.length;e++){const t=r[e],o=n[e];if(t.filename!==o.filename||t.lineno!==o.lineno||t.colno!==o.colno||t.function!==o.function)return}return 1}}function Ka(e,t){const n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return 1;if(!(n&&!r||!n&&r))try{return n.join("")===r.join("")}catch{return}}function Ya(e){return e.exception?.values?.[0]}function Xa(e){const t=[];e.message&&t.push(e.message);try{var n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}const Qa=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/^Java exception was raised during method invocation$/],Za=(r={})=>{let o;return{name:"EventFilters",setup(e){e=e.getOptions();o=tc(r,e)},processEvent(e,t,n){if(!o){const e=n.getOptions();o=tc(r,e)}return function(n,e){if(n.type){if("transaction"===n.type&&function(e,t){if(t?.length){e=e.transaction;return e&&ae(e,t)}}(n,e.ignoreTransactions))return T&&te.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${de(n)}`),1}else{if((r=e.ignoreErrors)?.length&&Xa(n).some(e=>ae(e,r)))return T&&te.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${de(n)}`),1;if((t=n).exception?.values?.length&&!t.message&&!t.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))return T&&te.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${de(n)}`),1;if(function(e,t){if(t?.length){e=nc(e);return e&&ae(e,t)}}(n,e.denyUrls))return T&&te.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${de(n)}.\nUrl: ${nc(n)}`),1;if(!function(e){if(!e?.length)return 1;var t=nc(n);return!t||ae(t,e)}(e.allowUrls))return T&&te.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${de(n)}.\nUrl: ${nc(n)}`),1}var t,r}(e,o)?null:e}}},ec=(e={})=>({...Za(e),name:"InboundFilters"});function tc(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Qa],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function nc(e){try{var t=[...e.exception?.values??[]].reverse().find(e=>void 0===e.mechanism?.parent_id&&e.stacktrace?.frames?.length)?.stacktrace?.frames;return t?function(t=[]){for(let e=t.length-1;0<=e;e--){var n=t[e];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch{return T&&te.error(`Cannot extract url for event ${de(e)}`),null}}const rc=(e={})=>{const{depth:r=3,captureErrorCause:o=!0}=e;return{name:"ExtraErrorData",processEvent(e,t,n){var n=n.getOptions()["maxValueLength"];return function(e,t={},n,r,o){if(!t.originalException||!c(t.originalException))return e;var i=t.originalException.name||t.originalException.constructor.name,o=function e(t,n,r){try{const o=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],i={};for(const n of Object.keys(t))if(-1===o.indexOf(n)){const s=t[n];i[n]=c(s)||"string"==typeof s?r?re(`${s}`,r):`${s}`:s}if(n&&void 0!==t.cause)if(c(t.cause)){const n=t.cause.name||t.cause.constructor.name;i.cause={[n]:e(t.cause,!1,r)}}else i.cause=t.cause;if("function"==typeof t.toJSON){const n=t.toJSON();for(const t of Object.keys(n)){const r=n[t];i[t]=c(r)?r.toString():r}}return i}catch(t){T&&te.error("Unable to extract extra data from the Error object:",t)}return null}(t.originalException,r,o);if(o){const t={...e.contexts},r=Jn(o,n);return _(r)&&(R(r,zn,!0),t[i]=r),{...e,contexts:t}}return e}(e,t,r,o,n)}}};const oc=100,ic=10,sc="flag.evaluation.";function ac(e){if(e.type)return e;var t=je().getScopeData().contexts.flags,t=t?t.values:[];return t.length&&(void 0===e.contexts&&(e.contexts={}),e.contexts.flags={values:[...t]}),e}function cc(e,t,n=oc){const r=je().getScopeData().contexts;r.flags||(r.flags={values:[]}),function(e,t,n,r){if("boolean"==typeof n){if(e.length>
1r)return T&&te.error(`[Feature Flags] insertToFlagBuffer called on a buffer larger than maxSize=${r}`);var o=e.findIndex(e=>e.flag===t);-1!==o&&e.splice(o,1),e.length===r&&e.shift(),e.push({flag:t,result:n})}}(r.flags.values,e,t,n)}function lc(e,t,n=ic){if("boolean"==typeof t){const o=no();var r;o&&(r=Ur(o).data,(`${sc}${e}`in r||Object.keys(r).filter(e=>e.startsWith(sc)).length<n)&&o.setAttribute(`${sc}${e}`,t))}}const uc=()=>({name:"FeatureFlags",processEvent(e,t,n){return ac(e)},addFeatureFlag(e,t){cc(e,t),lc(e,t)}});let dc;const pc=new WeakMap,fc=()=>({name:"FunctionToString",setupOnce(){dc=Function.prototype.toString;try{Function.prototype.toString=function(...e){var t=O(this),t=pc.has(He())&&void 0!==t?t:this;return dc.apply(t,e)}}catch{}},setup(e){pc.set(e,!0)}});function hc(e={}){var t=e.client||He();if(!Mo()||!t)return{};const n=Pe(l());if(n.getTraceData)return n.getTraceData(e);var r=e.scope||je(),o=e.span||no();if(!o&&void 0!==$e)return{};var i=o?$r(o):function(){var{traceId:e,sampled:t,propagationSpanId:n}=r.getPropagationContext();return Or(e,n,t)}(),t=cr(o?lo(o):co(t,r));if(!Rr.test(i))return te.warn("Invalid sentry-trace data. Cannot generate trace data"),{};const s={"sentry-trace":i,baggage:t};return e.propagateTraceparent&&(s.traceparent=o?function(e){var{traceId:t,spanId:n}=e.spanContext();return Dr(t,n,Jr(e))}(o):function(){var{traceId:e,sampled:t,propagationSpanId:n}=r.getPropagationContext();return Dr(e,n,t)}()),s}const mc={"messages.create":{operation:"chat"},"messages.stream":{operation:"chat",streaming:!0},"messages.countTokens":{operation:"chat"},"models.get":{operation:"models"},"completions.create":{operation:"chat"},"models.retrieve":{operation:"models"},"beta.messages.create":{operation:"chat"}},gc={invalid_request_error:"invalid_argument",authentication_error:"unauthenticated",permission_error:"permission_denied",not_found_error:"not_found",request_too_large:"failed_precondition",rate_limit_error:"resource_exhausted",api_error:"internal_error",overloaded_error:"unavailable"};function yc(e){return e&&gc[e]||"internal_error"}function vc(e,t,n,r){var o;e&&"object"==typeof e&&(o=r,"type"in(r=e)&&"string"==typeof r.type&&"error"===r.type?(o.setStatus({code:kr,message:yc(r.error?.type)}),yo(r.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}})):(o=t,"message_delta"===(r=e).type&&r.usage&&"output_tokens"in r.usage&&"number"==typeof r.usage.output_tokens&&(o.completionTokens=r.usage.output_tokens),r.message&&((r=r.message).id&&(o.responseId=r.id),r.model&&(o.responseModel=r.model),r.stop_reason&&o.finishReasons.push(r.stop_reason),r.usage&&("number"==typeof r.usage.input_tokens&&(o.promptTokens=r.usage.input_tokens),"number"==typeof r.usage.cache_creation_input_tokens&&(o.cacheCreationInputTokens=r.usage.cache_creation_input_tokens),"number"==typeof r.usage.cache_read_input_tokens&&(o.cacheReadInputTokens=r.usage.cache_read_input_tokens))),r=t,"content_block_start"===e.type&&"number"==typeof e.index&&e.content_block&&("tool_use"!==e.content_block.type&&"server_tool_use"!==e.content_block.type||(r.activeToolBlocks[e.index]={id:e.content_block.id,name:e.content_block.name,inputJsonParts:[]})),function(e,t,n){if("content_block_delta"===e.type&&e.delta){if("number"==typeof e.index&&"partial_json"in e.delta&&"string"==typeof e.delta.partial_json){const n=t.activeToolBlocks[e.index];n&&n.inputJsonParts.push(e.delta.partial_json)}n&&"string"==typeof e.delta.text&&t.responseTexts.push(e.delta.text)}}(e,t,n),function(t,n){if("content_block_stop"===t.type&&"number"==typeof t.index){const o=n.activeToolBlocks[t.index];if(o){var r=o.inputJsonParts.join("");let e;try{e=r?JSON.parse(r):{}}catch{e={__unparsed:r}}n.toolCalls.push({type:"tool_use",id:o.id,name:o.name,input:e}),delete n.activeToolBlocks[t.index]}}}(e,t)))}function _c(e,r,t){var n,o,i=function(){var{system:e,messages:t,input:n}=r,e="string"==typeof e?[{role:"system",content:r.system}]:[],n=Array.isArray(n)?n:null!=n?[n]:void 0,t=Array.isArray(t)?t:null!=t?[t]:[];return[...e,...n??t]}();n=e,o=i,i=t,Array.isArray(o)&&0===o.length||({systemInstructions:t,filteredMessages:o}=ka(o),t&&n.setAttributes({[Ls]:t}),t=Array.isArray(o)?o.length:1,n.setAttributes({[Ns]:(i?wa:Sa)(o),[Ds]:t})),"prompt"in r&&e.setAttributes({"gen_ai.prompt":JSON.stringify(r.prompt)})}
1function bc(e,t,n){var r,o;t&&"object"==typeof t&&("type"in t&&"error"===t.type?(r=e,(o=t).error&&(r.setStatus({code:kr,message:yc(o.error.type)}),yo(o.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}))):(n&&function(e,t){if("content"in t&&Array.isArray(t.content)){e.setAttributes({[Ps]:t.content.map(e=>e.text).filter(e=>!!e).join("")});const n=[];for(const e of t.content)"tool_use"!==e.type&&"server_tool_use"!==e.type||n.push(e);0<n.length&&e.setAttributes({[js]:JSON.stringify(n)})}"completion"in t&&e.setAttributes({[Ps]:t.completion}),"input_tokens"in t&&e.setAttributes({[Ps]:JSON.stringify(t.input_tokens)})}(e,t),r=e,"id"in(o=t)&&"model"in o&&(r.setAttributes({[Cs]:o.id,[Es]:o.model}),"usage"in o&&o.usage&&(n=r,e=o.usage.input_tokens,t=o.usage.output_tokens,r=o.usage.cache_creation_input_tokens,o=o.usage.cache_read_input_tokens,void 0!==e&&n.setAttributes({[As]:e}),void 0!==t&&n.setAttributes({[Rs]:t}),void 0===e&&void 0===t&&void 0===r&&void 0===o||(o=(e??0)+(t??0)+(r??0)+(o??0),n.setAttributes({[Ms]:o}))))))}function Sc(e,t,n){throw yo(e,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:n}}}),t.isRecording()&&(t.setStatus({code:kr,message:"internal_error"}),t.end()),e}function wc(e,i="",s){return new Proxy(e,{get(e,t){const n=e[t],r=_a(i,String(t)),o=mc[r];return"function"==typeof n&&o?(d=n,p=r,f=o,h=e,m=s,new Proxy(d,{apply(e,t,n){const r=f.operation||"unknown",o=function(e,t,n){const r={[hs]:"anthropic",[Os]:n,[Qn]:"auto.ai.anthropic"};if(0<e.length&&"object"==typeof e[0]&&null!==e[0]){const t=e[0];t.tools&&Array.isArray(t.tools)&&(r[$s]=JSON.stringify(t.tools)),r[ms]=t.model??"unknown","temperature"in t&&(r[ys]=t.temperature),"top_p"in t&&(r[Ss]=t.top_p),"stream"in t&&(r[gs]=t.stream),"top_k"in t&&(r[ws]=t.top_k),"frequency_penalty"in t&&(r[_s]=t.frequency_penalty),"max_tokens"in t&&(r[vs]=t.max_tokens)}else r[ms]="models.retrieve"===t||"models.get"===t?e[0]:"unknown";return r}(n,p,r),i=o[ms]??"unknown",s="object"==typeof n[0]?n[0]:void 0,a=Bo
1olean(s?.stream),c=!0===f.streaming;if(a||c)return function(n,e,r,o,t,i,s,a,c,l,u){t={name:`${i} ${t[ms]??"unknown"}`,op:`gen_ai.${i}`,attributes:t};if(!l||u)return Yi(t,t=>{try{return c.recordInputs&&a&&_c(t,a,va(c.enableTruncation)),function(e,t,n){const r={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};return e.on("streamEvent",e=>{vc(e,r,n,t)}),e.on("message",()=>{ba(t,r,n)}),e.on("error",e=>{yo(e,{mechanism:{handled:!1,type:"auto.ai.anthropic.stream_error"}}),t.isRecording()&&(t.setStatus({code:kr,message:"internal_error"}),t.end())}),e}(e.apply(r,o),t,c.recordOutputs??!1)}catch(e){return Sc(e,t,s)}});{let e;const d=Yi(t,t=>(e=n.apply(r,o),c.recordInputs&&a&&_c(t,a,va(c.enableTruncation)),(async()=>{try{return async function*(e,t,n){var r={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};try{for await(const o of e)vc(o,r,n,t),yield o}finally{ba(t,r,n)}}(await e,t,c.recordOutputs??!1)}catch(e){return Sc(e,t,s)}})()));return xa(e,d,"auto.ai.anthropic")}}(d,e,h,n,o,r,p,s,m,a,c);let l;var u=Ki({name:`${r} ${i}`,op:`gen_ai.${r}`,attributes:o},t=>(l=e.apply(h,n),m.recordInputs&&s&&_c(t,s,va(m.enableTruncation)),l.then(e=>(bc(t,e,m.recordOutputs),e),e=>{throw yo(e,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:p}}}),e})));return xa(l,u,"auto.ai.anthropic")}})):"function"==typeof n?n.bind(e):n&&"object"==typeof n?wc(n,r,s):n;var d,p,f,h,m}})}function kc(e,t){return wc(e,"",ya(t))}const xc="auto.ai.langgraph";let Tc=!1;const Ec="__sentry_patched__";function Cc(e,p,f,h,t,m){return new Proxy(e,{apply(c,l,u){const d=t?.modelName??t?.model;return Ki({op:"gen_ai.invoke_agent",name:"invoke_agent",attributes:{[Qn]:xc,[Xn]:Ws,[Os]:"invoke_agent"}},async t=>{try{var e=f?.name;e&&"string"==typeof e&&(t.setAttribute(Bs,e),t.setAttribute(Fs,e),t.updateName(`invoke_agent ${e}`)),d&&t.setAttribute(ms,d);var n=(1<u.length?u[1]:void 0)?.configurable?.thread_id;if(n&&"string"==typeof n&&t.setAttribute(qs,n),m){const c=u[1]??{};u[1]=c;const p=c.metadata??{};c.metadata={...p,__sentry_langgraph__:!0,..."string"==typeof e?{lc_agent_name:e}:{}},c.callbacks=function(e,t){if(!e)return[t];if(Array.isArray(e))return e.includes(t)?e:[...e,t];const n=e;return"function"==typeof n.addHandler&&(Array.isArray(n.handlers)&&n.handlers.includes(t)||n.addHandler(t)),e}(c.callbacks,m)}var r=function(){if(!p.builder?.nodes?.tools?.runnable?.tools)return null;const e=p.builder?.nodes?.tools?.runnable?.tools;return e&&Array.isArray(e)&&0!==e.length?e.map(e=>({name:e.lc_kwargs?.name,description:e.lc_kwargs?.description,schema:e.lc_kwargs?.schema})):null}();r&&t.setAttribute($s,JSON.stringify(r));var o=h.recordInputs,i=h.recordOutputs,s=0<u.length?u[0]?.messages??[]:[];if(s&&o){const c=Na(s),{systemInstructions:p,filteredMessages:f}=ka(c);p&&t.setAttribute(Ls,p);const m=va(h.enableTruncation),l=Array.isArray(f)?f.length:0;t.setAttributes({[Ns]:(m?wa:Sa)(f),[Ds]:l})}var a=await Reflect.apply(c,l,u);return i&&function(r,o,i){const e=i,t=e?.messages;if(t&&Array.isArray(t)){i=o?.length??0,o=t.length>i?t.slice(i):[];if(0!==o.length){i=function(e){if(!e||0===e.length)return null;const t=[];for(const n of e)if(n&&"object"==typeof n){const e=n.tool_calls;e&&Array.isArray(e)&&t.push(...e)}return 0<t.length?t:null}(o);i&&r.setAttribute(js,JSON.stringify(i));i=Na(o);r.setAttribute(Ps,JSON.stringify(i));let e=0,t=0,n=0;for(const s of o){const a=function(e){const t=e;let n=0,r=0,o=0;if(t.usage_metadata&&"object"==typeof t.usage_metadata){const e=t.usage_metadata;return"number"==typeof e.input_tokens&&(n=e.input_tokens),"number"==typeof e.output_tokens&&(r=e.output_tokens),"number"==typeof e.total_tokens&&(o=e.total_tokens),{inputTokens:n,outputTokens:r,totalTokens:o}}if(t.response_metadata&&"object"==typeof t.response_metadata){const e=t.response_metadata;if(e.tokenUsage&&"object"==typeof e.tokenUsage){const t=e.tokenUsage;"number"==typeof t.promptTokens&&(n=t.promptTokens),"number"==typeof t.completionTokens&&(r=t.completionTokens),"number"==typeof t.totalTokens&&(o=t.totalTokens)}}return{inputTokens:n,outputTokens:r,totalTokens:o}}(s);e+=a.inputTokens,t+=a.outputTokens,n+=a.totalTokens,function(e,t){if(t.response_metadata&&"object"==typeof t.response_metadata){const n=t.response_metadata;n.model_name&&"string"==typeof n.model_name&&e.setAttribute(Es,n.model_name),n.finish_reason&&"string"==typeof n.finish_reason&&e.setAttribute(Ts,[n.finish_reason])}}(r,s)}0<e&&r.setAttribute(As,e),0<t&&r.setAttribute(Rs,t),0<n&&r.setAttribute(Ms,n)}}}(t,s??null,a),a}catch(e){throw t.setStatus({code:kr,message:"internal_error"}),yo(e,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),e}})}})}function Ic(e,t){if(Object.prototype.hasOwnProperty.call(e,Ec))return e;const c=ya(t),l=$a(c),n=new Proxy(e,{apply(e,t,n){var r,o=function(){var e=n[0];if(!("object"==typeof e&&e&&"llm"in e&&e.llm&&"object"==typeof e.llm))return null;e=e.llm;return"string"!=typeof e.modelName&&"string"!=typeof e.model?null:e}(),i="object"==typeof(r=n[0])&&r&&"name"in r&&"string"==typeof r.name?r.name:null,r=n[0];let s;r&&Array.isArray(r.tools)&&0<r.tools.length&&function(e,a,c){var t="__sentry_tool_wrapped__";for(const n of e)if(n&&"object"==typeof n){const e=n,r=e.invoke;if("function"==typeof r&&!Object.prototype.hasOwnProperty.call(e,t)){const l="string"==typeof e.name?e.name:"unknown_tool",u="string"==typeof e.description?e.description:void 0,o=new Proxy(r,{apply(n,r,o){const e={[Qn]:xc,[Xn]:Js,[Os]:"execute_tool",[Gs]:l,[Ys]:"function"},t=o[1],i=t?.metadata?.lc_agent_name??c;"string"==typeof i&&(e[Fs]=i),u&&(e[Zs]=u);var s=o[0];if("object"==typeof s&&s&&("id"in s&&"string"==typeof s.id&&(e[Ks]=s.id),a.recordInputs)){const n="args"in s&&"object"==typeof s.args?s.args:s;try{e[Xs]=JSON.stringify(n)}catch{}}return Ki({op:Js,name:`execute_tool ${l}`,attributes:e},async t=>{try{var e=await Reflect.apply(n,r,o);if(a.recordOutputs)try{const n=e&&"object"==typeof e&&"content"in e?e.content:e;t.setAttribute(Qs,"string"==typeof n?n:JSON.stringify(n))}catch{}return e}catch(e){throw t.setStatus({code:kr,message:"internal_error"}),yo(e,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),e}})}});e.invoke=o,Object.defineProperty(e,t,{value:!0,enumerable:!1})}}}(r.tools,c,i??void 0),Tc=!0;
1try{s=Reflect.apply(e,t,n)}finally{Tc=!1}const a=s.invoke;if(a&&"function"==typeof a){const e={};i&&(e.name=i),s.invoke=Cc(a.bind(s),s,e,c,o,l)}return s}});return Object.defineProperty(n,Ec,{value:!0,enumerable:!1}),n}function Ac(e,t){return e.compile=function(e,a){if(Object.prototype.hasOwnProperty.call(e,Ec))return e;const c=$a(a),t=new Proxy(e,{apply(o,i,s){return Tc?Reflect.apply(o,i,s):Ki({op:"gen_ai.create_agent",name:"create_agent",attributes:{[Qn]:xc,[Xn]:"gen_ai.create_agent",[Os]:"create_agent"}},t=>{try{const e=Reflect.apply(o,i,s),n=0<s.length?s[0]:{};n?.name&&"string"==typeof n.name&&(t.setAttribute(Fs,n.name),t.updateName(`create_agent ${n.name}`));const r=e.invoke;return r&&"function"==typeof r&&(e.invoke=Cc(r.bind(e),e,n,a,void 0,c)),e}catch(e){throw t.setStatus({code:kr,message:"internal_error"}),yo(e,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),e}})}});return Object.defineProperty(t,Ec,{value:!0,enumerable:!1}),t}(e.compile,ya(t)),e}const Rc={"models.generateContent":{operation:"generate_content"},"models.generateContentStream":{operation:"generate_content",streaming:!0},"models.embedContent":{operation:"embeddings"},"chats.create":{proxyResultPath:"chat"},"chat.sendMessage":{operation:"chat"},"chat.sendMessageStream":{operation:"chat",streaming:!0}},Mc="google_genai";function Oc(e,t,n,r){e&&!function(e,t){e=e?.promptFeedback;if(e?.blockReason){const n=e.blockReasonMessage??e.blockReason;return t.setStatus({code:kr,message:"internal_error"}),yo(`Content blocked: ${n}`,{mechanism:{handled:!1,type:"auto.ai.google_genai"}}),1}}(e,r)&&(function(e,t){"string"==typeof e.responseId&&(t.responseId=e.responseId),"string"==typeof e.modelVersion&&(t.responseModel=e.modelVersion);e=e.usageMetadata;e&&("number"==typeof e.promptTokenCount&&(t.promptTokens=e.promptTokenCount),"number"==typeof e.candidatesTokenCount&&(t.completionTokens=e.candidatesTokenCount),"number"==typeof e.totalTokenCount&&(t.totalTokens=e.totalTokenCount))}(e,t),function(e,t,n){Array.isArray(e.functionCalls)&&t.toolCalls.push(...e.functionCalls);for(const r of e.candidates??[]){r?.finishReason&&!t.finishReasons.includes(r.finishReason)&&t.finishReasons.push(r.finishReason);for(const e of r?.content?.parts??[])n&&e.text&&t.responseTexts.push(e.text),e.functionCall&&t.toolCalls.push({type:"function",id:e.functionCall.id,name:e.functionCall.name,arguments:e.functionCall.args})}}(e,t,n))}function Dc(e,t="user"){return"string"==typeof e?[{role:t,content:e}]:Array.isArray(e)?e.flatMap(e=>Dc(e,t)):"object"==typeof e&&e?"role"in e&&"string"==typeof e.role?[e]:"parts"in e?[{...e,role:t}]:[{role:t,content:e}]:[]}function Nc(e,t){if("model"in e&&"string"==typeof e.model)return e.model;if(t&&"object"==typeof t){const e=t;if("model"in e&&"string"==typeof e.model)return e.model;if("modelVersion"in e&&"string"==typeof e.modelVersion)return e.modelVersion}return"unknown"}function Lc(e,t,n,r){if(n){const n=t.contents;return null!=n&&e.setAttribute(zs,"string"==typeof n?n:JSON.stringify(n)),0}const o=[];if("config"in t&&t.config&&"object"==typeof t.config&&"systemInstruction"in t.config&&t.config.systemInstruction&&o.push(...Dc(t.config.systemInstruction,"system")),"history"in t&&o.push(...Dc(t.history,"user")),"contents"in t&&o.push(...Dc(t.contents,"user")),"message"in t&&o.push(...Dc(t.message,"user")),Array.isArray(o)&&o.length){const{systemInstructions:i,filteredMessages:n}=ka(o);i&&e.setAttribute(Ls,i);t=Array.isArray(n)?n.length:0;e.setAttributes({[Ds]:t,[Ns]:(r?wa:Sa)(n)})}}function Pc(e,a,c,l,u){const d="embeddings"===c.operation;return new Proxy(e,{apply(e,t,n){const r=c.operation||"unknown",o=n[0],i=function(e,t,n){const r={[hs]:Mc,[Os]:e,[Qn]:"auto.ai.google_genai"};if(t){if(r[ms]=Nc(t,n),"config"in t&&"object"==typeof t.config&&t.config){const e=t.config;if(Object.assign(r,function(e){const t={};return"temperature"in e&&"number"==typeof e.temperature&&(t[ys]=e.temperature),"topP"in e&&"number"==typeof e.topP&&(t[Ss]=e.topP),"topK"in e&&"number"==typeof e.topK&&(t[ws]=e.topK),"maxOutputTokens"in e&&"number"==typeof e.maxOutputTokens&&(t[vs]=e.maxOutputTokens),"frequencyPenalty"in e&&"number"==typeof e.frequencyPenalty&&(t[_s]=e.frequencyPenalty),"presencePenalty"in e&&"number"==typeof e.presencePenalty&&(t[bs]=e.presencePenalty
1),t}(e)),"tools"in e&&Array.isArray(e.tools)){const t=e.tools.flatMap(e=>e.functionDeclarations);r[$s]=JSON.stringify(t)}}}else r[ms]=Nc({},n);return r}(r,o,l),s=i[ms]??"unknown";return c.streaming?Yi({name:`${r} ${s}`,op:`gen_ai.${r}`,attributes:i},async t=>{try{return u.recordInputs&&o&&Lc(t,o,d,va(u.enableTruncation)),async function*(e,t,n){var r={responseTexts:[],finishReasons:[],toolCalls:[]};try{for await(const o of e)Oc(o,r,n,t),yield o}finally{ba(t,r,n)}}(await e.apply(l,n),t,Boolean(u.recordOutputs))}catch(e){throw t.setStatus({code:kr,message:"internal_error"}),yo(e,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:a}}}),t.end(),e}}):Ki({name:`${r} ${s}`,op:`gen_ai.${r}`,attributes:i},t=>(u.recordInputs&&o&&Lc(t,o,d,va(u.enableTruncation)),Pi(()=>e.apply(l,n),e=>{yo(e,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:a}}})},()=>{},e=>{d||function(e,t,n){if(t&&"object"==typeof t){if(t.modelVersion&&e.setAttribute(Es,t.modelVersion),t.usageMetadata&&"object"==typeof t.usageMetadata){const n=t.usageMetadata;"number"==typeof n.promptTokenCount&&e.setAttributes({[As]:n.promptTokenCount}),"number"==typeof n.candidatesTokenCount&&e.setAttributes({[Rs]:n.candidatesTokenCount}),"number"==typeof n.totalTokenCount&&e.setAttributes({[Ms]:n.totalTokenCount})}if(n&&Array.isArray(t.candidates)&&0<t.candidates.length){const n=t.candidates.map(e=>e.content?.parts&&Array.isArray(e.content.parts)?e.content.parts.map(e=>"string"==typeof e.text?e.text:"").filter(e=>0<e.length).join(""):"").filter(e=>0<e.length);0<n.length&&e.setAttributes({[Ps]:n.join("")})}if(n&&t.functionCalls){const n=t.functionCalls;Array.isArray(n)&&0<n.length&&e.setAttributes({[js]:JSON.stringify(n)})}}}(t,e,u.recordOutputs)})))}})}function $c(e,t){return function s(e,a="",c){return new Proxy(e,{get:(e,t,n)=>{const r=Reflect.get(e,t,n),o=_a(a,String(t)),i=Rc[o];if("function"==typeof r&&i){const a=i.operation?Pc(r,o,i,e,c):r.bind(e);return i.proxyResultPath?function(...e){return(e=a(...e))&&"object"==typeof e?s(e,i.proxyResultPath,c):e}:a}return"function"==typeof r?r.bind(e):r&&"object"==typeof r?s(r,o,c):r}})}(e,"",ya(t))}function jc(e,t={}){const i=ya(t)["recordInputs"];return new Proxy(e,{apply(e,n,t){const r=function(){const t=n??{},e={[Qn]:Ta,[Xn]:Vs,[Os]:"embeddings",[ms]:t.model??"unknown"};return e[hs]=function(){const e=t.constructor?.name??"";return e.includes("OpenAI")?"openai":e.includes("Google")?"google_genai":e.includes("Mistral")?"mistralai":e.includes("Vertex")?"google_vertexai":e.includes("Bedrock")?"aws_bedrock":e.includes("Ollama")?"ollama":e.includes("Cloudflare")?"cloudflare":e.includes("Cohere")?"cohere":"langchain"}(),"dimensions"in t&&(e[xs]=t.dimensions),"encodingFormat"in t&&(e[ks]=t.encodingFormat),e}(),o=r[ms]||"unknown";if(i){const e=t[0];null!=e&&(r[zs]="string"==typeof e?e:JSON.stringify(e))}return Ki({name:`embeddings ${o}`,op:Vs,attributes:r},()=>Reflect.apply(e,n,t).then(void 0,e=>{throw yo(e,{mechanism:{handled:!1,type:"auto.ai.langchain"}}),e}))}})}function Fc(e,t){const n=e;return"function"==typeof n.embedQuery&&(n.embedQuery=jc(n.embedQuery,t)),"function"==typeof n.embedDocuments&&(n.embedDocuments=jc(n.embedDocuments,t)),e}const Bc={"responses.create":{operation:"chat"},"chat.completions.create":{operation:"chat"},"embeddings.create":{operation:"embeddings"},"conversations.create":{operation:"chat"}},qc=["response.created","response.in_progress","response.failed","response.completed","response.incomplete","response.queued","response.output_text.delta","response.output_item.added","response.function_call_arguments.delta","response.function_call_arguments.done","response.output_item.done"];function Uc(e,t,n){t.responseId=e.id??t.responseId,t.responseModel=e.model??t.responseModel,e.usage&&(t.promptTokens=e.usage.prompt_tokens,t.completionTokens=e.usage.completion_tokens,t.totalTokens=e.usage.total_tokens);for(const r of e.choices??[])n&&(r.delta?.content&&t.responseTexts.push(r.delta.content),r.delta?.tool_calls&&function(e,t){for(const n of e){const e=n.index;if(void 0!==e&&n.function)if(e in t.chatCompletionToolCalls){const r=t.chatCompletionToolCalls[e];n.function.arguments&&r?.function&&(r.function.arguments+=n.function.arguments)}else t.chatCompletionToolCalls[e]={...n,function:{name:n.function.name,arguments:n.function.arguments||""}}}}(r.delta.tool_calls,t)),r.finish_reason&&t.finishReasons.push(r.finish_reason)}function Hc(e,t,n,r){if("embeddings"===n&&"input"in t){const o=t.input;return null==o?void 0:("string"!=typeof o||0!==o.length)&&((!Array.isArray(o)||0!==o.length)&&(e.setAttribute(zs,"string"==typeof o?o:JSON.stringify(o)),0))}n="input"in t?t.input:"messages"in t?t.messages:void 0;n&&(Array.isArray(n)&&0===n.length||({systemInstructions:t,filteredMessages:n}=ka(n),t&&e.setAttribute(Ls,t),e.setAttribute(Ns,(r?wa:Sa)(n)),Array.isArray(n)?e.setAttribute(Ds,n.length):e.setAttribute(Ds,1)))}function Wc(l,u,d,p,f){return function(...n){const r=d.operation||"unknown",t=function(e,t){const n={[hs]:"openai",[Os]:t,[Qn]:"auto.ai.openai"};if(0<e.length&&"object"==typeof e[0]&&null!==e[0]){const t=e[0],r=function(e){var t=[...Array.isArray(e.tools)?e.tools:[],...e.web_search_options&&"object"==typeof e.web_search_options?[{type:"web_search_options",...e.web_search_options}]:[]];if(0!==t.length)try{return JSON.stringify(t)}catch(e){return void(T&&te.error("Failed to serialize OpenAI tools:",e))}}(t);r&&(n[$s]=r),Object.assign(n,function(e){const t={[ms]:e.model??"unknown"};"temperature"in e&&(t[ys]=e.temperature),"top_p"in e&&(t[Ss]=e.top_p),"frequency_penalty"in e&&(t[_s]=e.frequency_penalty),"presence_penalty"in e&&(t[bs]=e.presence_penalty),"stream"in e&&(t[gs]=e.stream),"encoding_format"in e&&(t[ks]=e.encoding_format),"dimensions"in e&&(t[xs]=e.dimensions);e="conversation"in(e=e)&&"string"==typeof e.conversation?e.conversation:"previous_response_id"in e&&"string"==typeof e.previous_response_id?e.previous_response_id:void 0;return e&&(t[qs]=e),t}(t))}else n[ms]="unknown";return n}(n,r),e=t[ms]||"unknown",o=n[0],i=o&&"object"==typeof o&&!0===o.stream,s={name:`${r} ${e}`,op:`gen_ai.${r}`,attributes:t};
1if(i){let e;const t=Yi(s,t=>(e=l.apply(p,n),f.recordInputs&&o&&Hc(t,o,r,va(f.enableTruncation)),(async()=>{try{return async function*(e,t,n){var r,o,i={eventTypes:[],responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,totalTokens:void 0,chatCompletionToolCalls:{},responsesApiToolCalls:[]};try{for await(const s of e)null!==(o=s)&&"object"==typeof o&&"object"in o&&"chat.completion.chunk"===o.object?Uc(s,i,n):null!==(r=s)&&"object"==typeof r&&"type"in r&&"string"==typeof r.type&&r.type.startsWith("response.")&&function(e,t,n,r){if(!e||"object"!=typeof e)return t.eventTypes.push("unknown:non-object");if(e instanceof Error)return r.setStatus({code:kr,message:"internal_error"}),yo(e,{mechanism:{handled:!1,type:"auto.ai.openai.stream-response"}});if("type"in e){e=e;if(qc.includes(e.type)){if(n&&("response.output_item.done"===e.type&&"item"in e&&t.responsesApiToolCalls.push(e.item),"response.output_text.delta"===e.type&&"delta"in e&&e.delta))t.responseTexts.push(e.delta);else if("response"in e){const o=e["response"];t.responseId=o.id??t.responseId,t.responseModel=o.model??t.responseModel,o.usage&&(t.promptTokens=o.usage.input_tokens,t.completionTokens=o.usage.output_tokens,t.totalTokens=o.usage.total_tokens),o.status&&t.finishReasons.push(o.status),n&&o.output_text&&t.responseTexts.push(o.output_text)}}else t.eventTypes.push(e.type)}}(s,i,n,t),yield s}finally{const e=[...Object.values(i.chatCompletionToolCalls),...i.responsesApiToolCalls];ba(t,{...i,toolCalls:e},n)}}(await e,t,f.recordOutputs??!1)}catch(e){throw t.setStatus({code:kr,message:"internal_error"}),yo(e,{mechanism:{handled:!1,type:"auto.ai.openai.stream",data:{function:u}}}),t.end(),e}})()));return xa(e,t,"auto.ai.openai")}let a;var c=Ki(s,t=>(a=l.apply(p,n),f.recordInputs&&o&&Hc(t,o,r,va(f.enableTruncation)),a.then(e=>(function(e,t,n){if(t&&"object"==typeof t){const r=t,o={};if("string"==typeof r.id&&(o[Cs]=r.id),"string"==typeof r.model&&(o[Es]=r.model),"conversation"===r.object&&"string"==typeof r.id&&(o[qs]=r.id),r.usage&&"object"==typeof r.usage){const e=r.usage,t=e.prompt_tokens??e.input_tokens;"number"==typeof t&&(o[As]=t);const n=e.completion_tokens??e.output_tokens;"number"==typeof n&&(o[Rs]=n),"number"==typeof e.total_tokens&&(o[Ms]=e.total_tokens)}if(Array.isArray(r.choices)){const e=r.choices,t=e.map(e=>e.finish_reason).filter(e=>"string"==typeof e);if(0<t.length&&(o[Ts]=JSON.stringify(t)),n){const t=e.map(e=>{return e.message?.content||""});o[Ps]=JSON.stringify(t);const n=e.map(e=>{return e.message?.tool_calls}).filter(e=>Array.isArray(e)&&0<e.length).flat();0<n.length&&(o[js]=JSON.stringify(n))}}if("string"==typeof r.status&&(o[Ts]||(o[Ts]=JSON.stringify([r.status]))),n&&("string"!=typeof r.output_text||o[Ps]||(o[Ps]=r.output_text),Array.isArray(r.output)&&0<r.output.length&&!o[js])){const e=r.output.filter(e=>"function_call"===e?.type);0<e.length&&(o[js]=JSON.stringify(e))}e.setAttributes(o)}}(t,e,f.recordOutputs),e),e=>{throw yo(e,{mechanism:{handled:!1,type:"auto.ai.openai",data:{function:u}}}),e})));return xa(a,c,"auto.ai.openai")}}function zc(e,t){return function i(e,s="",a){return new Proxy(e,{get(e,t){const n=e[t],r=_a(s,String(t)),o=Bc[r];return"function"==typeof n&&o?Wc(n,r,o,e,a):"function"==typeof n?n.bind(e):n&&"object"==typeof n?i(n,r,a):n}})}(e,"",ya(t))}const Vc=["reauthenticate","signInAnonymously","signInWithOAuth","signInWithIdToken","signInWithOtp","signInWithPassword","signInWithSSO","signOut","signUp","verifyOtp"],Jc=["createUser","deleteUser","listUsers","getUserById","updateUserById","inviteUserByEmail"],Gc={eq:"eq",neq:"neq",gt:"gt",gte:"gte",lt:"lt",lte:"lte",like:"like","like(all)":"likeAllOf","like(any)":"likeAnyOf",ilike:"ilike","ilike(all)":"ilikeAllOf","ilike(any)":"ilikeAnyOf",is:"is",in:"in",cs:"contains",cd:"containedBy",sr:"rangeGt",nxl:"rangeGte",sl:"rangeLt",nxr:"rangeLte",adj:"rangeAdjacent",ov:"overlaps",fts:"",plfts:"plain",phfts:"phrase",wfts:"websearch",not:"not"},Kc=["select","insert","upsert","update","delete"];function Yc(e){try{e.__SENTRY_INSTRUMENTED__=!0}catch{}}function Xc(e){try{return e.__SENTRY_INSTRUMENTED__}catch{return}}function Qc(e,t){return 0<Object.keys(t).length?t:Array.isArray(e)&&0<e.length?e:void 0}function Zc(t,o=!1){return new Proxy(t,{apply(e,n,r){return Ki({name:`auth ${o?"(admin) ":""}${t.name}`,attributes:{[Qn]:"auto.db.supabase",[Xn]:"db","db.system":"postgresql","db.operation":`auth.${o?"admin.":""}${t.name}`}},t=>Reflect.apply(e,n,r).then(e=>(e&&"object"==typeof e&&"error"in e&&e.error?(t.setStatus({code:kr}),yo(e.error,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}})):t.setStatus({code:wr}),t.end(),e)).catch(e=>{throw t.setStatus({code:kr}),t.end(),yo(e,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}}),e}).then(...r))}})}function el(e){Xc(e.prototype.then)||(e.prototype.then=new Proxy(e.prototype.then,{apply(e,t,n){const r=Kc,o=t,i=function(e,t={}){switch(e){case"GET":return"select";case"POST":return t.Prefer?.includes("resolution=")?"upsert":"insert";case"PATCH":return"update";case"DELETE":return"delete";default:return"<unknown-op>"}}(o.method,o.headers);if(!r.includes(i))return Reflect.apply(e,t,n);if(!o?.url?.pathname||"string"!=typeof o.url.pathname)return Reflect.apply(e,t,n);const s=o.url.pathname.split("/"),a=0<s.length?s[s.length-1]:"",c=[];
1for(const[e,t]of o.url.searchParams.entries())c.push(function(e,t){if(""===t||"*"===t)return"select(*)";if("select"===e)return`select(${t})`;if("or"===e||e.endsWith(".or"))return`${e}${t}`;const[n,...r]=t.split(".");return`${n?.startsWith("fts")?"textSearch":n?.startsWith("plfts")?"textSearch[plain]":n?.startsWith("phfts")?"textSearch[phrase]":n?.startsWith("wfts")?"textSearch[websearch]":n&&Gc[n]||"filter"}(${e}, ${r.join(".")})`}(e,t));const l=Object.create(null);if(_(o.body))for(const[e,t]of Object.entries(o.body))l[e]=t;const u=Boolean(He()?.getOptions().sendDefaultPii),d=Qc(o.body,l),p="select"===i?"":`${i}${f=o.body,h=l,void 0!==Qc(f,h)?"(...) ":""}`;let f,h;const m=u?c.join(" "):0<c.length?"[redacted]":"",g=[p.trimEnd(),m].filter(Boolean).join(" "),y=g?`${g} from(${a})`:`from(${a})`,v={"db.table":a,"db.schema":o.schema,"db.url":o.url.origin,"db.sdk":o.headers["X-Client-Info"],"db.system":"postgresql","db.operation":i,[Qn]:"auto.db.supabase",[Xn]:"db"};return c.length&&u&&(v["db.query"]=c),void 0!==d&&u&&(v["db.body"]=d),Ki({name:y,attributes:v},r=>Reflect.apply(e,t,[]).then(e=>{if(r&&(e&&"object"==typeof e&&"status"in e&&Tr(r,e.status||500),r.end()),e?.error){const t=new Error(e.error.message);e.error.code&&(t.code=e.error.code),e.error.details&&(t.details=e.error.details);const n={};c.length&&u&&(n.query=c),void 0!==d&&u&&(n.body=d),yo(t,e=>(e.addEventProcessor(e=>(fe(e,{handled:!1,type:"auto.db.supabase.postgres"}),e)),e.setContext("supabase",n),e))}const t={type:"supabase",category:`db.${i}`,message:y},n={};return c.length&&u&&(n.query=c),void 0!==d&&u&&(n.body=d),Object.keys(n).length&&(t.data=n),li(t),e},e=>{throw r&&(Tr(r,500),r.end()),e}).then(...n))}}),Yc(e.prototype.then))}const tl=e=>{let t;e?(Xc((t=e.constructor===Function?e:e.constructor).prototype.from)||(t.prototype.from=new Proxy(t.prototype.from,{apply(e,t,n){n=Reflect.apply(e,t,n);return function(e){for(const r of Kc)Xc(e.prototype[r])||(e.prototype[r]=new Proxy(e.prototype[r],{apply(e,t,n){t=Reflect.apply(e,t,n),n=t.constructor;return T&&te.log(`Instrumenting ${r} operation's PostgRESTFilterBuilder`),el(n),t}}),Yc(e.prototype[r]))}(n.constructor),n}}),Yc(t.prototype.from)),function(e){var t=e.auth;if(t&&!Xc(e.auth)){for(const o of Vc){var n=t[o];n&&"function"==typeof e.auth[o]&&(e.auth[o]=Zc(n))}for(const i of Jc){var r=t.admin[i];r&&"function"==typeof e.auth.admin[i]&&(e.auth.admin[i]=Zc(r,!0))}Yc(e.auth)}}(e)):T&&te.warn("Supabase integration was not installed because no Supabase client was provided.")},nl=e=>{return t=e.supabaseClient,{setupOnce(){tl(t)},name:"Supabase"};let t};function rl(e,...t){const n=new String(String.raw(e,...t));return n.__sentry_template_string__=e.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),n.__sentry_template_values__=t,n}const ol=rl;function il(e,t,n,r,o){Ci({level:e,message:t,attributes:n,severityNumber:o},r)}function sl(e,t,{scope:n}={}){il("trace",e,t,n)}function al(e,t,{scope:n}={}){il("debug",e,t,n)}function cl(e,t,{scope:n}={}){il("info",e,t,n)}function ll(e,t,{scope:n}={}){il("warn",e,t,n)}function ul(e,t,{scope:n}={}){il("error",e,t,n)}function dl(e,t,{scope:n}={}){il("fatal",e,t,n)}const pl=1e3;function fl(e,t,n,r=!0){!n||!r&&t in e||(e[t]=n)}function hl(e,t){const n=yl(),r=gl(e);void 0===r?n.set(e,[t]):r.length>=pl?(ml(e,r),n.set(e,[t])):n.set(e,[...r,t])}function ml(e,t){t=t??gl(e)??[];0!==t.length&&(t=function(e,t,n,r,o){const i={};return t?.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(i.dsn=pr(r)),Yo(i,[(o=(o=o)?"auto":"never",[{type:"trace_metric",item_count:(e=e).length,content_type:"application/vnd.sentry.items.trace-metric+json"},{version:2,...Ye()&&{ingest_settings:{infer_ip:o,infer_user_agent:o}},items:e}])])}(t,(t=e.getOptions())._metadata,t.tunnel,e.getDsn(),t.sendDefaultPii),yl().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(t))}function gl(e){return yl().get(e)}function yl(){return r("clientToMetricBufferMap",()=>new WeakMap)}function vl(e,t,n,r){!function(e,t){const n=t.scope??je(),r=t.captureSerializedMetric??hl,o=n?.getClient()??He();if(!o)return T&&te.warn("No client available to capture metric.");var{_experiments:i,enableMetrics:s,beforeSendMetric:a}=o.getOptions();if(!(s??i?.enableMetrics??1))return T&&te.warn("metrics option not enabled, metric will not be captured.");var{user:t,attributes:s}=ho(Fe(),n),t=function(e,t,n){var{release:r,environment:o}=t.getOptions(),i={...e.attributes};fl(i,"user.id",n.id,!1),fl(i,"user.email",n.email,!1),fl(i,"user.name",n.username,!1),fl(i,"sentry.release",r),fl(i,"sentry.environment",o);var{name:r,version:o}=t.getSdkMetadata()?.sdk??{};fl(i,"sentry.sdk.name",r),fl(i,"sentry.sdk.version",o);const s=t.getIntegrationByName("Replay"),a=s?.getReplayId(!0);return fl(i,"sentry.replay_id",a),a&&"buffer"===s?.getRecordingMode()&&fl(i,"sentry._internal.replay_is_buffering",!0),{...e,attributes:i}}(e,o,t);
1o.emit("processMetric",t);const c=a||i?.beforeSendMetric,l=c?c(t):t;if(!l)return T&&te.log("`beforeSendMetric` returned `null`, will not send metric.");s=function(e,t,n,r){const[,o]=ki(t,n),i=Ee(n),s=i?i.spanContext().traceId:o?.trace_id,a=i?i.spanContext().spanId:void 0,c=ve(),l=wi(c);return{timestamp:c,trace_id:s??"",span_id:a,name:e.name,type:e.type,unit:e.unit,value:e.value,attributes:{...vr(r),...vr(e.attributes,"skip-undefined"),[l.key]:l.value}}}(l,o,n,s);T&&te.log("[Metric]",s),r(o,s),o.emit("afterCaptureMetric",l)}({type:e,name:t,value:n,unit:r?.unit,attributes:r?.attributes},{scope:r?.scope})}function _l(e,t=1,n){vl("counter",e,t,n)}function bl(e,t,n){vl("gauge",e,t,n)}function Sl(e,t,n){vl("distribution",e,t,n)}const wl=new Map,kl=new Set;function xl(n,e){e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{var t;e.filename&&!e.module_metadata&&(t=e.filename,function(e){if(L._sentryModuleMetadata)for(const n of Object.keys(L._sentryModuleMetadata)){var t=L._sentryModuleMetadata[n];if(!kl.has(n)){kl.add(n);const r=e(n);for(const e of r.reverse())if(e.filename){wl.set(e.filename,t);break}}}}(n),(t=wl.get(t))&&(e.module_metadata=t))})})}function Tl(e){e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{delete e.module_metadata})})}const El=()=>({name:"ModuleMetadata",setup(t){t.on("beforeEnvelope",e=>{Xo(e,(e,t)=>{if("event"===t){const t=Array.isArray(e)?e[1]:void 0;t&&(Tl(t),e[1]=t)}})}),t.on("applyFrameMetadata",e=>{e.type||xl(t.getOptions().stackParser,e)})}});let Cl=null;function Il(e){pi("error",e),fi("error",Al)}function Al(){Cl=L.onerror,L.onerror=function(e,t,n,r,o){return hi("error",{column:r,error:o,line:n,msg:e,url:t}),!!Cl&&Cl.apply(this,arguments)},L.onerror.__SENTRY_INSTRUMENTED__=!0}let Rl=null;function Ml(e){var t="unhandledrejection";pi(t,e),fi(t,Ol)}function Ol(){Rl=L.onunhandledrejection,L.onunhandledrejection=function(e){return hi("unhandledrejection",e),!Rl||Rl.apply(this,arguments)},L.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}let Dl=!1;function Nl(){function e(){const e=no(),t=e&&eo(e);if(t){const e="internal_error";T&&te.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:kr,message:e})}}Dl||(e.tag="sentry_tracingErrorCallback",Dl=!0,Il(e),Ml(e))}const Ll=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function Pl(...t){let n="",r=!1;for(let e=t.length-1;-1<=e&&!r;e--){const o=0<=e?t[e]:"/";o&&(n=`${o}/${n}`,r="/"===o.charAt(0))}return n=function(t,e){let n=0;for(let e=t.length-1;0<=e;e--){var r=t[e];"."===r?t.splice(e,1):".."===r?(t.splice(e,1),n++):n&&(t.splice(e,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}(n.split("/").filter(e=>!!e),!r).join("/"),(r?"/":"")+n||"."}function $l(e){let t=0;for(;t<e.length&&""===e[t];t++);let n=e.length-1;for(;0<=n&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}const jl=(e={})=>{const t=e.root,n=e.prefix||"app:///",r="window"in L&&!!L.window,o=e.iteratee||([{isBrowser:i,root:s,prefix:a}]=[{isBrowser:r,root:t,prefix:n}],e=>{if(!e.filename)return e;const t=/^[a-zA-Z]:\\/.test(e.filename)||e.filename.includes("\\")&&!e.filename.includes("/"),n=/^\//.test(e.filename);if(i){if(s){const i=e.filename;0===i.indexOf(s)&&(e.filename=i.replace(s,a))}}else if(t||n){const i=t?e.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):e.filename,n=s?function(e,t){e=Pl(e).slice(1),t=Pl(t).slice(1);const n=$l(e.split("/")),r=$l(t.split("/")),o=Math.min(n.length,r.length);let i=o;for(let e=0;e<o;e++)if(n[e]!==r[e]){i=e;break}let s=[];for(let e=i;e<n.length;e++)s.push("..");return s=s.concat(r.slice(i)),s.join("/")}(s,i):function(e){const t=1024<e.length?`<truncated>${e.slice(-1024)}`:e,n=Ll.exec(t);return n?n.slice(1):[]}(i)[2]||"";e.filename=`${a}${n}`}return e});var i,s,a;return{name:"RewriteFrames",processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=function(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map(e=>{return{...e,...e.stacktrace&&{stacktrace:(t=e.stacktrace,{...t,frames:t?.frames?.map(e=>o(e))})}};let t})}}}catch{return e}}(t)),t}}};function Fl(e){je().setClient(e)}const Bl=n=>({name:"ThirdPartyErrorsFilter",setup(t){t.on("beforeEnvelope",e=>{Xo(e,(e,t)=>{if("event"===t){const t=Array.isArray(e)?e[1]:void 0;t&&(Tl(t),e[1]=t)}})}),t.on("applyFrameMetadata",e=>{e.type||xl(t.getOptions().stackParser,e)})},processEvent(t){const e=function(n){const e=ee(t);if(e)return e.filter((e,t)=>
1!(!e.filename||null==e.lineno&&null==e.colno&&null==e.instruction_addr||n&&function(t,n){if(0===n&&t.context_line&&t.filename&&t.filename.includes("sentry")&&t.filename.includes("helpers")&&t.context_line.includes(Hl)&&t.pre_context){const n=t.pre_context.length;for(let e=0;e<n;e++)if(t.pre_context[e]?.includes(Ul))return 1}}(e,t))).map(e=>e.module_metadata?Object.keys(e.module_metadata).filter(e=>e.startsWith(ql)).map(e=>e.slice(ql.length)):[])}(n.ignoreSentryInternalFrames);if(e&&e["drop-error-if-contains-third-party-frames"===n.behaviour||"apply-tag-if-contains-third-party-frames"===n.behaviour?"some":"every"](e=>!e.some(e=>n.filterKeys.includes(e)))){if("drop-error-if-contains-third-party-frames"===n.behaviour||"drop-error-if-exclusively-contains-third-party-frames"===n.behaviour)return null;t.tags={...t.tags,third_party_code:!0}}return t}}),ql="_sentryBundlerPluginAppKey:",Ul="Attempt to invoke user-land function",Hl="fn.apply(this, wrappedArguments)";function Wl(e){return{...e,path:"path"in e&&Array.isArray(e.path)?e.path.join("."):void 0,keys:"keys"in e?JSON.stringify(e.keys):void 0,unionErrors:"unionErrors"in e?JSON.stringify(e.unionErrors):void 0}}const zl=(n={})=>{const r=n.limit??10;return{name:"ZodErrors",processEvent(e,t){return function(e,t=!1,n,r){if(!(n.exception?.values&&r.originalException&&(o=r.originalException,c(o)&&"ZodError"===o.name&&Array.isArray(o.issues))&&0!==r.originalException.issues.length))return n;let o;try{const o=(t?r.originalException.issues:r.originalException.issues.slice(0,e)).map(Wl);return t&&(Array.isArray(r.attachments)||(r.attachments=[]),r.attachments.push({filename:"zod_issues.json",data:JSON.stringify({issues:o})})),{...n,exception:{...n.exception,values:[{...n.exception.values[0],value:function(t){const e=new Set;for(const n of t.issues){const t=n.path.map(e=>"number"==typeof e?"<array>":e).join(".");0<t.length&&e.add(t)}const n=Array.from(e);if(0!==n.length)return`Failed to validate keys: ${re(n.join(", "),100)}`;{let e="variable";if(0<t.issues.length){const n=t.issues[0];void 0!==n&&"expected"in n&&"string"==typeof n.expected&&(e=n.expected)}return`Failed to validate ${e}`}}(r.originalException)},...n.exception.values.slice(1)]},extra:{...n.extra,"zoderror.issues":o.slice(0,e)}}}catch(e){return{...n,extra:{...n.extra,"zoderrors sentry integration parse error":{message:"an exception was thrown while processing ZodError within applyZodErrorsToEvent()",error:e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:"unknown"}}}}}(r,n.saveZodIssuesAsAttachment,e,t)}}},Vl="Not capturing exception because it's already been captured.",Jl="Discarded session because of missing or non-string release",Gl=Symbol.for("SentryInternalError"),Kl=Symbol.for("SentryDoNotSendEventError");function Yl(e){return{message:e,[Gl]:!0}}function Xl(e){return{message:e,[Kl]:!0}}function Ql(e){return e&&"object"==typeof e&&Gl in e}function Zl(e){return e&&"object"==typeof e&&Kl in e}function eu(t,e,n,r,o){let i,s=0,a=!1;t.on(n,()=>{s=0,clearTimeout(i),a=!1}),t.on(e,e=>{s+=r(e),8e5<=s?o(t):a||(a=!0,i=ja(setTimeout(()=>{o(t)},5e3)))}),t.on("flush",()=>{o(t)})}class tu{constructor(e){var t;this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=Ba(e.transportOptions?.bufferSize??za),e.dsn?this._dsn=gr(e.dsn):T&&te.warn("No DSN provided, client will not send events."),this._dsn&&(t=Ko(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0),this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})),this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&eu(this,"afterCaptureLog","flushLogs",su,Ii),(this._options.enableMetrics??this._options._experiments?.enableMetrics??1)&&eu(this,"afterCaptureMetric","flushMetrics",iu,ml)}captureException(e,t,n){var r=le();if(he(e))return T&&te.log(Vl),r;const o={event_id:r,...t};return this._process(()=>this.eventFromException(e,o).then(e=>this._captureEvent(e,o,n)).then(e=>e),"error"),o.event_id}captureMessage(e,t,n,r){const o={event_id:le(),...n},i=E(e)?e:String(e),s=P(e),a=s?this.eventFromMessage(i,t,o):this.eventFromException(e,o);return this._process(()=>a.then(e=>this._captureEvent(e,o,r)),s?"unknown":"error"),o.event_id}captureEvent(e,t,n){var r=le();if(t?.originalException&&he(t.originalException))return T&&te.log(Vl),r;const o={event_id:r,...t},i=e.sdkProcessingMetadata||{},s=i.capturedSpanScope,a=i.capturedSpanIsolationScope,c=nu(e.type);return this._process(()=>this._captureEvent(e,o,s||n,a),c),o.event_id}captureSession(e){this.sendSession(e),Se(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){const t=this._transport;
1if(this.emit("flush"),!t)return!0;var n=await this._isClientDoneProcessing(e),e=await t.flush(e);return n&&e}async close(e){Ii(this);e=await this.flush(e);return this.getOptions().enabled=!1,this.emit("close"),e}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){var t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),Ge(this,e,this._integrations),t||Je(this,[e])}sendEvent(t,e={}){this.emit("beforeSendEvent",t,e);let n=function(e,t,n,r){var o=ri(n),i=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){if(!t)return;var n=e.sdk||{};e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0}}(e,n?.sdk);t=oi(e,o,r,t);return delete e.sdkProcessingMetadata,Yo(t,[[{type:i},e]])}(t,this._dsn,this._options._metadata,this._options.tunnel);for(const t of e.attachments||[])n=function(e,t){var[n,e]=e;return[n,[...e,t]]}(n,(r=t,o=void 0,[{type:"attachment",length:(o="string"==typeof r.data?Zo(r.data):r.data).length,filename:r.filename,content_type:r.contentType,attachment_type:r.attachmentType},o]));var r,o;this.sendEnvelope(n).then(e=>this.emit("afterSendEvent",t,e))}sendSession(e){var{release:t,environment:n=Ln}=this._options;if("aggregates"in e){const r=e.attrs||{};if(!r.release&&!t)return void(T&&te.warn(Jl));r.release=r.release||t,r.environment=r.environment||n,e.attrs=r}else{if(!e.release&&!t)return void(T&&te.warn(Jl));e.release=e.release||t,e.environment=e.environment||n}this.emit("beforeSendSession",e);const r=function(e,t,n,r){n=ri(n);return Yo({sent_at:(new Date).toISOString(),...n&&{sdk:n},...!!r&&t&&{dsn:pr(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(e,t,n=1){this._options.sendClientReports&&(t=`${e}:${t}`,T&&te.log(`Recording outcome: "${t}"${1<n?` (${n} times)`:""}`),this._outcomes[t]=(this._outcomes[t]||0)+n)}on(e,t){const n=this._hooks[e]=this._hooks[e]||new Set,r=(...e)=>t(...e);return n.add(r),()=>{n.delete(r)}}emit(e,...t){const n=this._hooks[e];n&&n.forEach(e=>e(...t))}async sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{return this._transport.send(e)}catch(e){return T&&te.error("Error while sending envelope:",e),{}}return T&&te.error("Transport disabled"),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){var e=this._options["integrations"];this._integrations=function(t,e){const n={};return e.forEach(e=>{e?.beforeSetup&&e.beforeSetup(t)}),e.forEach(e=>{e&&Ge(t,e,n)}),n}(this,e),Je(this,e)}_updateSessionFromEvent(e,t){let n="fatal"===t.level,r=!1;t=t.exception?.values;if(t){r=!0,n=!1;for(const e of t)if(!1===e.mechanism?.handled){n=!0;break}}t="ok"===e.status;(t&&0===e.errors||t&&n)&&(Se(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise(e=>setTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,n,r,t){var o=this.getOptions(),i=Object.keys(this._integrations);return!n.integrations&&i?.length&&(n.integrations=i),this.emit("preprocessEvent",e,n),e.type||t.setLastEventId(e.event_id||n.event_id),mo(o,e,n,r,this,t).then(e=>{if(null===e)return e;this.emit("postprocessEvent",e,n),e.contexts={trace:{...e.contexts?.trace,...We(r)},...e.contexts};var t=co(this,r);return e.sdkProcessingMetadata={dynamicSamplingContext:t,...e.sdkProcessingMetadata},e})}_captureEvent(e,t={},n=je(),r=Fe()){return T&&ru(e)&&te.log(`Captured error event \`${Xa(e)[0]||"<unknown>"}\``),this._processEvent(e,t,n,r).then(e=>e.event_id,e=>{T&&(Zl(e)?te.log(e.message):Ql(e)?te.warn(e.message):te.warn(e))})}_processEvent(n,r,o,i){const t=this.getOptions(),e=t["sampleRate"],s=ou(n),a=ru(n),c=`before send for type \`${n.type||"error"}\``,l=void 0===e?void 0:Ar(e);if(a&&"number"==typeof l&&W()>l)return this.recordDroppedEvent("sample_rate","error"),$n(Xl(`Discarding event because it's not included in the random sample (sampling rate = ${e})`));const u=nu(n.type);return this._prepareEvent(n,r,o,i).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",u),Xl("An event processor returned `null`, will not send event.");return!0===r.data?.__sentry__?e:function(e,t){const n=`${t} must return \`null\` or a valid event.`;if(y(e))return e.then(e=>{if(!_(e)&&null!==e)throw Yl(n);return e},e=>{throw Yl(`${t} rejected with ${e}`)});if(!_(e)&&null!==e)throw Yl(n);return e}(function(e,t,n,r){const{beforeSend:o,beforeSendTransaction:i,ignoreSpans:s}=t,a=!Ui(t.beforeSendSpan)&&t.beforeSendSpan;let c=n;if(ru(c)&&o)return o(c,r);if(ou(c)){if(a||s){const t=function(e){var{trace_id:t,parent_span_id:n,span_id:r,status:o,origin:i,data:s,op:a}=e.contexts?.trace??{};return{data:s??{},description:e.transaction,op:a,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:o,timestamp:e.timestamp,trace_id:t??"",origin:i,profile_id:s?.[rr],exclusive_time:s?.[or],measurements:e.measurements,is_segment:!0}}(c);if(s?.length&&ji({description:t.description,op:t.op,attributes:t.data},s))return null;if(a){const e=a(t);e?c=we(n,{type:"transaction",timestamp:(l=e).timestamp,start_timestamp:l.start_timestamp,transaction:l.description,contexts:{trace:{trace_id:l.trace_id,span_id:l.span_id,parent_span_id:l.parent_span_id,op:l.op,status:l.status,origin:l.origin,data:{...l.data,...l.profile_id&&{"sentry.profile_id":l.profile_id},...l.exclusive_time&&{[or]:l.exclusive_time}}}},measurements:l.measurements}):ro()}if(c.spans){const t=[],n=c.spans;for(const e of n)if(s?.length&&ji({description:e.description,op:e.op,attributes:e.data},s))!function(e,t){var n=t.parent_span_id,r=t.span_id;if(n)for(const t of e)t.parent_span_id===r&&(t.parent_span_id=n)}(n,e);else if(a){const n=a(e);n?t.push(n):(ro(),t.push(e))}else t.push(e);const r=c.spans.length-t.length;r&&e.recordDroppedEvent("before_send","span",r),c.spans=t}}if(i){if(c.spans){const e=c.spans.length;c.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return i(c,r)}}let l;return c}(this,t,e,r),c)}).then(e=>{if(null===e){if(this.recordDroppedEvent("before_send",u),s){const r=1+(n.spans||[]).length;this.recordDroppedEvent("before_send","span",r)}throw Xl(`${c} returned \`null\`, will not send event.`)}var t=o.getSession()||i.getSession();if(a&&t&&this._updateSessionFromEvent(t,e),s){const n=(e.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(e.spans?e.spans.length:0);0<n&&this.recordDroppedEvent("before_send","span",n)}t=e.transaction_info;if(s&&t&&e.transaction!==n.transaction){const n="custom";e.transaction_info={...t,source:"custom"}}return this.sendEvent(e,r),e}).then(null,e=>{if(Zl(e)||Ql(e))throw e;throw this.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),Yl(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>
1(this._numProcessing--,e===Fa&&this.recordDroppedEvent("queue_overflow",t),e))}_clearOutcomes(){var e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{var[n,e]=e.split(":");return{reason:n,category:e,quantity:t}})}_flushOutcomes(){T&&te.log("Flushing outcomes...");var e=this._clearOutcomes();if(0===e.length)return void(T&&te.log("No outcomes to send"));if(!this._dsn)return void(T&&te.log("No dsn provided, will not send outcomes"));T&&te.log("Sending outcomes:",e);t=e,e=Yo((n=this._options.tunnel&&pr(this._dsn))?{dsn:n}:{},[[{type:"client_report"},{timestamp:ge(),discarded_events:t}]]);let t,n;this.sendEnvelope(e)}}function nu(e){return"replay_event"===e?"replay":e||"error"}function ru(e){return void 0===e.type}function ou(e){return"transaction"===e.type}function iu(e){let t=0;return e.name&&(t+=2*e.name.length),t+=8,t+au(e.attributes)}function su(e){let t=0;return e.message&&(t+=2*e.message.length),t+au(e.attributes)}function au(e){if(!e)return 0;let t=0;return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*cu(e[0]):P(e)?t+=cu(e):t+=100}),t}function cu(e){return"string"==typeof e?2*e.length:"number"==typeof e?8:"boolean"==typeof e?4:0}function lu(e){"aggregates"in e?void 0===e.attrs?.ip_address&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}function uu(e){return c(t=e)&&"__sentry_fetch_url_host__"in t&&"string"==typeof t.__sentry_fetch_url_host__?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message;var t}function du(e,t){const n=fu(e,t),r={type:!(e=(o=t)?.name)&&mu(o)?o.message&&Array.isArray(o.message)&&2==o.message.length?o.message[0]:"WebAssembly.Exception":e,value:(t=(e=t)?.message,mu(e)?Array.isArray(e.message)&&2==e.message.length?e.message[1]:"wasm exception":t?t.error&&"string"==typeof t.error.message?uu(t.error):uu(e):"No error message")};var o;return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function pu(e,t){return{exception:{values:[du(e,t)]}}}function fu(e,t){var n,r=t.stacktrace||t.stack||"",n=(n=t)&&hu.test(n.message)?1:0,t="number"==typeof t.framesToPop?t.framesToPop:0;try{return e(r,n,t)}catch{}return[]}const hu=/Minified React error #\d+;/i;function mu(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function gu(e,t,n,r){const o=vu(e,t,n?.syntheticException||void 0,r);return fe(o),o.level="error",n?.event_id&&(o.event_id=n.event_id),Pn(o)}function yu(e,t,n="info",r,o){const i=_u(e,t,r?.syntheticException||void 0,o);return i.level=n,r?.event_id&&(i.event_id=r.event_id),Pn(i)}function vu(e,t,n,r,o){let i;if(p(t)&&t.error)return pu(e,t.error);if(f(t)||d(t,"DOMException")){const o=t;if("stack"in t)i=pu(e,t);else{const t=o.name||(f(o)?"DOMError":"DOMException"),s=o.message?`${t}: ${o.message}`:t;i=_u(e,s,n,r),pe(i,s)}return"code"in o&&(i.tags={...i.tags,"DOMException.code":`${o.code}`}),i}return c(t)?pu(e,t):(_(t)||g(t)?i=function(e,t,n,r){const o=He(),i=o?.getOptions().normalizeDepth,s=(a=t,Object.values(a).find(e=>e instanceof Error));let a;var c,l={__serialized__:function e(t,n=3,r=102400){var o,i=Jn(t,n);return s=i,o=JSON.stringify(s),~-encodeURI(o).split(/%..|./).length>r?e(t,n-1,r):i;let s}(t,i)};if(s)return{exception:{values:[du(e,s)]},extra:l};const u={exception:{values:[{type:g(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:([c,t]=[t,{isUnhandledRejection:r}["isUnhandledRejection"]],r=function(){const e=Object.keys(D(c));return e.sort(),e[0]?e.join(", "):"[object has no keys]"}(),t=t?"promise rejection":"exception",p(c)?`Event \`ErrorEvent\` captured as ${t} with message \`${c.message}\``:g(c)?`Event \`${function(e){try{var t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}(c)}\` (type=${c.type}) captured as ${t}`:`Object captured as ${t} with keys: ${r}`)}]},extra:l};if(n){const d=fu(e,n);d.length&&(u.exception.values[0].stacktrace={frames:d})}return u}(e,t,n,o):(i=_u(e,t,n,r),pe(i,`${t}`,void 0)),fe(i,{synthetic:!0}),i)}function _u(e,t,n,r){const o={};if(r&&n){const r=fu(e,n);r.length&&(o.exception={values:[{value:t,stacktrace:{frames:r}}]}),fe(o,{synthetic:!0})}
1if(E(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return o.logentry={message:e,params:n},o}return o.message=t,o}class bu extends tu{constructor(e){const t=(n=e,{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:$o.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...n});let n;!function(e,t){const n=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};n.name||(n.name="sentry.javascript.browser",n.packages=["browser"].map(e=>({name:`${t}:@sentry/${e}`,version:u})),n.version=u)}(t,$o.SENTRY_SDK_SOURCE||"npm"),t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:t.sendDefaultPii?"auto":"never",...t._metadata.sdk.settings}),super(t);const{sendDefaultPii:r,sendClientReports:o,enableLogs:i,_experiments:s,enableMetrics:a}=this._options,c=a??s?.enableMetrics??!0;$o.document&&(o||i||c)&&$o.document.addEventListener("visibilitychange",()=>{"hidden"===$o.document.visibilityState&&(o&&this._flushOutcomes(),i&&Ii(this),c&&ml(this))}),r&&this.on("beforeSendSession",lu)}eventFromException(e,t){return gu(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return yu(this._options.stackParser,e,t,n,this._options.attachStacktrace)}_prepareEvent(e,t,n,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n,r)}}const Su=L;function wu(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function ku(){if("string"==typeof EdgeRuntime)return 1;if(function(){if("fetch"in Su)try{return new Headers,new Request("data:,"),new Response,1}catch{return}}()){if(wu(Su.fetch))return 1;let e=!1;const t=Su.document;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=wu(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){T&&te.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}}const xu="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Tu=L,Eu={};function Cu(e){const t=Eu[e];if(t)return t;let n=Tu[e];if(wu(n))return Eu[e]=n.bind(Tu);const r=Tu.document;if(r&&"function"==typeof r.createElement)try{const t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);var o=t.contentWindow;o?.[e]&&(n=o[e]),r.head.removeChild(t)}catch(t){xu&&te.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n&&(Eu[e]=n.bind(Tu))}function Iu(...e){return Cu("setTimeout")(...e)}const Au=40;function Ru(n,r=Cu("fetch")){let o=0,i=0;return Va(n,async function(e){var t=e.body.length;o+=t,i++;e={body:e.body,method:"POST",referrerPolicy:"strict-origin",headers:n.headers,keepalive:o<=6e4&&i<15,...n.fetchOptions};try{const o=await r(n.url,e);return{statusCode:o.status,headers:{"x-sentry-rate-limits":o.headers.get("X-Sentry-Rate-Limits"),"retry-after":o.headers.get("Retry-After")}}}catch(e){throw Eu.fetch=void 0,e}finally{o-=t,i--}},Ba(n.bufferSize||Au))}const Mu="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Ou={startProfiler(){const e=He();e?e.getIntegrationByName("BrowserProfiling")?e.emit("startUIProfiler"):Mu&&te.warn("BrowserProfiling integration is not available"):Mu&&te.warn("No Sentry client available, profiling is not started")},stopProfiler(){const e=He();e?e.getIntegrationByName("BrowserProfiling")?e.emit("stopUIProfiler"):Mu&&te.warn("ProfilingIntegration is not available"):Mu&&te.warn("No Sentry client available, profiling is not started")}};function Du(e,t,n,r){const o={filename:e,function:"<anonymous>"===t?J:t,in_app:!0};return void 0!==n&&(o.lineno=n),void 0!==r&&(o.colno=r),o}const Nu=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Lu=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Pu=/\((\S*)(?::(\d+))(?::(\d+))\)/,$u=/at (.+?) ?\(data:(.+?),/,ju=[30,e=>{const t=e.match($u);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};var n=Nu.exec(e);if(n){const[,e,t,r]=n;return Du(e,J,+t,+r)}const r=Lu.exec(e);if(r){if(0===r[2]?.indexOf("eval")){const e=Pu.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}const[e,t]=Yu(r[1]||J,r[2]);return Du(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],Fu=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Bu=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,qu=[50,e=>{const t=Fu.exec(e);if(t){if(t[3]&&-1<t[3].indexOf(" > eval")){const r=Bu.exec(t[3]);r&&(t[1]=t[1]||"eval",t[3]=r[1],t[4]=r[2],t[5]="")}var n=t[3],e=t[1]||J;return[e,n]=Yu(e,n),Du(n,e,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],Uu=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Hu=[40,e=>{e=Uu.exec(e);return e?Du(e[2],e[1]||J,+e[3],e[4]?+e[4]:void 0):void 0}],Wu=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,zu=[10,e=>{e=Wu.exec(e);return e?Du(e[2],e[3]||J,+e[1]):void 0}],Vu=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,Ju=[20,e=>{e=Vu.exec(e);return e?Du(e[5],e[3]||e[4]||J,+e[1],+e[2]):void 0}],Gu=[ju,qu],Ku=Y(...Gu),Yu=(e,t)=>
1{var n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:J,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};function Xu(e,{metadata:t,tunnel:n,dsn:r}){return Yo({event_id:e.event_id,sent_at:(new Date).toISOString(),...t?.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:pr(r)}},[[{type:"user_report"},e]])}const Qu=()=>({name:"ConversationId",setup(e){e.on("spanStart",e=>{const t=je().getScopeData(),n=Fe().getScopeData(),r=t.conversationId||n.conversationId;if(r){const{op:t,data:n,description:o}=Ur(e);(t?.startsWith("gen_ai.")||n["ai.operationId"]||o?.startsWith("ai."))&&e.setAttribute("gen_ai.conversation.id",r)}})}});function Zu(e,t){e=pi("fetch",e);return fi("fetch",()=>ed(void 0,t)),e}function ed(s,e=!1){e&&!ku()||A(L,"fetch",function(i){return function(...e){const r=new Error,{method:t,url:n}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:rd(t),method:nd(n,"method")?String(n.method).toUpperCase():S(t)&&nd(t,"method")?String(t.method).toUpperCase():"GET"}}const t=e[0];return{url:rd(t),method:nd(t,"method")?String(t.method).toUpperCase():"GET"}}(e),o={args:e,fetchData:{method:t,url:n},startTimestamp:1e3*ve(),virtualError:r,headers:function(e){var[t,e]=e;try{if("object"==typeof e&&null!==e&&"headers"in e&&e.headers)return new Headers(e.headers);if(S(t))return new Headers(t.headers)}catch{}}(e)};return s||hi("fetch",{...o}),i.apply(L,e).then(async e=>(s?s(e):hi("fetch",{...o,endTimestamp:1e3*ve(),response:e}),e),e=>{hi("fetch",{...o,endTimestamp:1e3*ve(),error:e}),c(e)&&void 0===e.stack&&(e.stack=r.stack,R(e,"framesToPop",1));const t=He(),n=t?.getOptions().enhanceFetchErrorMessages??"always";if(!1!==n&&e instanceof TypeError&&("Failed to fetch"===e.message||"Load failed"===e.message||"NetworkError when attempting to fetch resource."===e.message))try{const t=new URL(o.fetchData.url).host;"always"===n?e.message=`${e.message} (${t})`:R(e,"__sentry_fetch_url_host__",t)}catch{}throw e})}})}function td(s){let e;try{e=s.clone()}catch{return}!async function(e){if(e?.body){const r=e.body,o=r.getReader(),i=setTimeout(()=>{r.cancel().then(null,()=>{})},9e4);let t=!0;for(;t;){let e;try{e=setTimeout(()=>{r.cancel().then(null,()=>{})},5e3);var n=(await o.read())["done"];clearTimeout(e),n&&(hi("fetch-body-resolved",{endTimestamp:1e3*ve(),response:s}),t=!1)}catch{t=!1}finally{clearTimeout(e)}}clearTimeout(i),o.releaseLock(),r.cancel().then(null,()=>{})}}(e)}function nd(e,t){return e&&"object"==typeof e&&e[t]}function rd(e){return"string"==typeof e?e:e?nd(e,"url")?e.url:e.toString?e.toString():"":""}function od(e){return void 0===e?void 0:400<=e&&e<500?"warning":500<=e?"error":void 0}const id="thismessage:/";function sd(e){return"isRelative"in e}function ad(e,t){var n=e.indexOf("://")<=0&&0!==e.indexOf("//"),t=t??(n?id:void 0);try{if("canParse"in URL&&!URL.canParse(e,t))return;const r=new URL(e,t);return n?{isRelative:n,pathname:r.pathname,search:r.search,hash:r.hash}:r}catch{}}function cd(e){if(!e)return{};var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",e=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:e,relative:t[5]+n+e}}function ld(e){return e.split(/[?#]/,1)[0]}function ud(t,n=!0){if(t.startsWith("data:")){var r=t.match(/^data:([^;,]+)/),o=r?r[1]:"text/plain",i=t.includes(";base64,"),r=t.indexOf(",");let e="";if(n&&-1!==r){const n=t.slice(r+1);e=10<n.length?`${n.slice(0,10)}... [truncated]`:n}return`data:${o}${i?",base64":""}${e?`,${e}`:""}`}return t}let dd,pd,fd;function hd(e){pi("dom",e),fi("dom",md)}function md(){if(Tu.document){const i=hi.bind(null,"dom"),e=gd(i,!0);Tu.document.addEventListener("click",e,!1),Tu.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(e=>{const t=Tu,n=t[e]?.prototype;n?.hasOwnProperty?.("addEventListener")&&(A(n,"addEventListener",function(o){return function(e,t,n){if("click"===e||"keypress"==e)try{const t=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},r=t[e]=t[e]||{refCount:0};if(!r.handler){const t=gd(i);r.handler=t,o.call(this,e,t,n)}r.refCount++}catch{}return o.call(this,e,t,n)}}),A(n,"removeEventListener",function(o){return function(e,t,n){if("click"===e||"keypress"==e)try{const t=this.__sentry_instrumentation_handlers__||{},r=t[e];r&&(r.refCount--,r.refCount<=0&&(o.call(this,e,r.handler,n),r.handler=void 0,delete t[e]),0===Object.keys(t).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return o.call(this,e,t,n)}}))})}}function gd(r,o=!1){return e=>{var t,n;e&&!e._sentryCaptured&&(t=function(e){try{return e.target}catch{return null}}(e),("keypress"!==e.type||t?.tagName&&("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable))&&(R(e,"_sentryCaptured",!0),t&&!t._sentryId&&R(t,"_sentryId",le()),n="keypress"===e.type?"input":e.type,function(e){if(e.type===pd){try{if(!e.target||e.target._sentryId!==fd)return}catch{}return 1}}(e)||(r({event:e,name:n,global:o}),pd=e.type,fd=t?t._sentryId:void 0),clearTimeout(dd),dd=Tu.setTimeout(()=>{fd=void 0,pd=void 0},1e3)))}}const yd="__sentry_xhr_v3__";function vd(e){pi("xhr",e),fi("xhr",_d)}function _d(){if(Tu.XMLHttpRequest){const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){const r=new Error,o=1e3*ve(),i=h(n[0])?n[0].toUpperCase():void 0,s=function(e){if(h(e))return e;try{return e.toString()}catch{}}(n[1]);if(!i||!s)return e.apply(t,n);t[yd]={method:i,url:s,request_headers:{}}
1,"POST"===i&&s.match(/sentry_key/)&&(t.__sentry_own_request__=!0);const a=()=>{const e=t[yd];if(e&&4===t.readyState){try{e.status_code=t.status}catch{}hi("xhr",{endTimestamp:1e3*ve(),startTimestamp:o,xhr:t,virtualError:r})}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply(e,t,n){return a(),e.apply(t,n)}}):t.addEventListener("readystatechange",a),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){const[r,o]=n,i=t[yd];return i&&h(r)&&h(o)&&(i.request_headers[r.toLowerCase()]=o),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){const r=t[yd];return r&&(void 0!==n[0]&&(r.body=n[0]),hi("xhr",{startTimestamp:1e3*ve(),xhr:t})),e.apply(t,n)}})}}let bd;function Sd(e){pi("history",e),fi("history",wd)}function wd(){function e(r){return function(...e){var t=2<e.length?e[2]:void 0;if(t){var n=bd,t=function(e){try{return new URL(e,Tu.location.origin).toString()}catch{return e}}(String(t));if(n===(bd=t))return r.apply(this,e);hi("history",{from:n,to:t})}return r.apply(this,e)}}Tu.addEventListener("popstate",()=>{var e=Tu.location.href,t=bd;t!==(bd=e)&&hi("history",{from:t,to:e})}),"history"in Su&&Su.history&&(A(Tu.history,"pushState",e),A(Tu.history,"replaceState",e))}const kd=(e={})=>{const o={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var t,n,i,a,c,l,r;o.console&&mi((r=e,function(e){if(He()===r){const t={category:"console",data:{arguments:e.args,logger:"console"},level:yi(e.level),message:ie(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;t.message=`Assertion failed: ${ie(e.args.slice(1)," ")||"console.assert"}`,t.data.arguments=e.args.slice(1)}li(t,{input:e.args,level:e.level})}})),o.dom&&hd((c=e,l=o.dom,function(o){if(He()===c){let e,t,n="object"==typeof l?l.serializeAttribute:void 0,r="object"==typeof l&&"number"==typeof l.maxStringLength?l.maxStringLength:void 0;r&&1024<r&&(Mu&&te.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${r} was configured. Sentry will use 1024 instead.`),r=1024),"string"==typeof n&&(n=[n]);try{const c=o.event,l=(i=c)&&i.target?c.target:c;e=$(l,{keyAttrs:n,maxStringLength:r}),t=F(l)}catch{e="<unknown>"}var i;if(0!==e.length){const s={category:`ui.${o.name}`,message:e};t&&(s.data={"ui.component_name":t}),li(s,{event:o.event,name:o.name,global:o.global})}}})),o.xhr&&vd((a=e,function(e){var t,n,r,o,i,s;He()===a&&({startTimestamp:t,endTimestamp:i}=e,o=e.xhr[yd],t&&i&&o&&({method:n,url:r,status_code:s,body:o}=o,i={xhr:e.xhr,input:o,startTimestamp:t,endTimestamp:i},s={category:"xhr",data:{method:n,url:r,status_code:s},type:"http",level:od(s)},a.emit("beforeOutgoingRequestBreadcrumb",s,i),li(s,i)))})),o.fetch&&Zu((i=e,function(e){var t,n,r,o;He()===i&&({startTimestamp:t,endTimestamp:r}=e,!r||e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?(o={data:e.error,input:e.args,startTimestamp:t,endTimestamp:r},n={category:"fetch",data:e.fetchData,level:"error",type:"http"},i.emit("beforeOutgoingRequestBreadcrumb",n,o),li(n,o)):(n=e.response,o={...e.fetchData,status_code:n?.status},r={input:e.args,response:n,startTimestamp:t,endTimestamp:r},o={category:"fetch",data:o,type:"http",level:od(o.status_code)},i.emit("beforeOutgoingRequestBreadcrumb",o,r),li(o,r))))})),o.history&&Sd((n=e,function(r){if(He()===n){let e=r.from,t=r.to;var o=cd($o.location.href);let n=e?cd(e):void 0;r=cd(t);n?.path||(n=o),o.protocol===r.protocol&&o.host===r.host&&(t=r.relative),o.protocol===n.protocol&&o.host===n.host&&(e=n.relative),li({category:"navigation",data:{from:e,to:t}})}})),o.sentry&&e.on("beforeSendEvent",(t=e,function(e){He()===t&&li({category:`sentry.${"transaction"===e.type?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:de(e)},{event:e})}))}}},xd="EventTarget,Window,Node,ApplicationCache,AudioTrackList,BroadcastChannel,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload".
1split(","),Td=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&A($o,"setTimeout",Ed),t.setInterval&&A($o,"setInterval",Ed),t.requestAnimationFrame&&A($o,"requestAnimationFrame",Cd),t.XMLHttpRequest&&"XMLHttpRequest"in $o&&A(XMLHttpRequest.prototype,"send",Id);const e=t.eventTarget;e&&(Array.isArray(e)?e:xd).forEach(e=>function(a,c){const e=$o,t=e[a]?.prototype;t?.hasOwnProperty?.("addEventListener")&&(A(t,"addEventListener",function(s){return function(e,t,n){try{"function"==typeof t.handleEvent&&(t.handleEvent=Fo(t.handleEvent,{mechanism:{data:{handler:Z(t),target:a},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return c.unregisterOriginalCallbacks&&(o=e,i=t,(r=this)&&"object"==typeof r&&"removeEventListener"in r&&"function"==typeof r.removeEventListener&&r.removeEventListener(o,i)),s.apply(this,[e,Fo(t,{mechanism:{data:{handler:Z(t),target:a},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),n]);var r,o,i}}),A(t,"removeEventListener",function(o){return function(e,t,n){try{var r=t.__sentry_wrapped__;r&&o.call(this,e,r,n)}catch{}return o.call(this,e,t,n)}}))}(e,t))}}};function Ed(n){return function(...e){var t=e[0];return e[0]=Fo(t,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${Z(n)}`}}),n.apply(this,e)}}function Cd(t){return function(e){return t.apply(this,[Fo(e,{mechanism:{data:{handler:Z(t)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function Id(n){return function(...e){const t=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(r=>{r in t&&"function"==typeof t[r]&&A(t,r,function(e){const t={mechanism:{data:{handler:Z(e)},handled:!1,type:`auto.browser.browserapierrors.xhr.${r}`}},n=O(e);return n&&(t.mechanism.data.handler=Z(n)),Fo(e,t)})}),n.apply(this,e)}}const Ad=(e={})=>{const n=e.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(void 0!==$o.document){Do({ignoreDuration:!0}),Po();const e=Fe();let t=e.getUser();e.addScopeListener(e=>{e=e.getUser();t?.id===e?.id&&t?.ip_address===e?.ip_address||(Po(),t=e)}),"route"===n&&Sd(({from:e,to:t})=>{e!==t&&(Do({ignoreDuration:!0}),Po())})}else Mu&&te.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.")}}};function Rd(e,t){const n=e.attributes??(e.attributes={});Object.entries(t).forEach(([e,t])=>{null==t||e in n||(n[e]=t)})}const Md=()=>({name:"CultureContext",preprocessEvent(e){var t=Od();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){var t=Od();t&&Rd(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}});function Od(){try{const t=$o.Intl;if(!t)return;var e=t.DateTimeFormat().resolvedOptions();return{locale:e.locale,timezone:e.timeZone,calendar:e.calendar}}catch{}}const Dd=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){var i,l;t.onerror&&(l=e,Il(e=>{var{stackParser:t,attachStacktrace:n}=$d();if(!(He()!==l||0<jo)){const{msg:r,url:o,line:i,column:s,error:a}=e,c=function(e,t,n,r){const o=e.exception=e.exception||{},i=o.values=o.values||[],s=i[0]=i[0]||{},a=s.stacktrace=s.stacktrace||{},c=a.frames=a.frames||[];return 0===c.length&&c.push({colno:r,lineno:n,filename:function(e){if(h(e)&&0!==e.length)return e.startsWith("data:")?`<${ud(e,!1)}>`:e}(t)??j(),function:J,in_app:!0}),e}(vu(t,a||r,void 0,n,!1),o,i,s);c.level="error",_o(c,{originalException:a,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})}}),Pd("onerror")),t.onunhandledrejection&&(i=e,Ml(e=>{var{stackParser:t,attachStacktrace:n}=$d();if(!(He()!==i||0<jo)){const r=Nd(e),o=P(r)?Ld(r):vu(t,r,void 0,n,!0);o.level="error",_o(o,{originalException:r,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})}}),Pd("onunhandledrejection"))}}};function Nd(e){if(P(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function Ld(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Pd(e){Mu&&te.log(`Global Handler attached: ${e}`)}function $d(){const e=He();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const jd=()=>({name:"HttpContext",preprocessEvent(e){var t,n;($o.navigator||$o.location||$o.document)&&(n={...(t=Bo()).headers,...e.request?.headers},e.request={...t,...e.request,headers:n})},processSegmentSpan(e){($o.navigator||$o.location||$o.document)&&Rd(e,{"url.full":(e=Bo()).url||void 0,"http.request.header.user_agent":e.headers["User-Agent"],"http.request.header.referer":e.headers.Referer})}});function Fd(e,t,n,r,o,i){var s;o.exception?.values&&i&&v(i.originalException,Error)&&((s=0<o.exception.values.length?o.exception.values[o.exception.values.length-1]:void 0)&&(o.exception.values=function o(i,s,a,c,l,e,u,d){if(e.length>=a+1)return e;let p=[...e];if(v(c[l],Error)){qd(u,d,c);const e=i(s,c[l]),t=p.length;Ud(e,l,t,d),p=o(i,s,a,c[l],l,[e,...p],e,t)}
1return Bd(c)&&c.errors.forEach((e,t)=>{if(v(e,Error)){qd(u,d,c);const n=i(s,e),r=p.length;Ud(n,`errors[${t}]`,r,d),p=o(i,s,a,e,l,[n,...p],n,r)}}),p}(e,t,r,i.originalException,n,o.exception.values,s,0)))}function Bd(e){return Array.isArray(e.errors)}function qd(e,t,n){e.mechanism={handled:!0,type:"auto.core.linked_errors",...Bd(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function Ud(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}const Hd=(e={})=>{const r=e.limit||5,o=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,t,n){Fd(du,n.getOptions().stackParser,o,r,e,t)}}};function Wd(e){return[ec(),fc(),Qu(),Td(),kd(),Dd(),Hd(),Ja(),jd(),Md(),Ad()]}function zd(e={}){var t=!e.skipBrowserExtensionCheck&&!!function(){if(void 0!==$o.window){var e=$o;if(!e.nw)if((e.chrome||e.browser)?.runtime?.id){e=j();return $o!==$o.top||!/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(e)}}}()&&(Mu&&B(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0),n=null==e.defaultIntegrations?Wd():e.defaultIntegrations,e={...e,enabled:!t&&e.enabled,stackParser:(r=e.stackParser||Ku,Array.isArray(r)?Y(...r):r),integrations:function(e){const t=e.defaultIntegrations||[],n=e.integrations;let r;if(t.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(n))r=[...t,...n];else if("function"==typeof n){const e=n(t);r=Array.isArray(e)?e:[e]}else r=t;return function(e){const r={};return e.forEach(e=>{var t=e["name"],n=r[t];n&&!n.isDefaultInstance&&e.isDefaultInstance||(r[t]=e)}),Object.values(r)}(r)}({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||Ru};let r;return function(e,t){!0===t.debug&&(T?te.enable():B(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),je().update(t.initialScope);const n=new e(t);return Fl(n),n.init(),n}(bu,e)}function Vd(){}function Jd(e){e()}function Gd(t={}){const e=$o.document,n=e?.head||e?.body;if(n){const r=je(),o=He(),i=o?.getDsn();if(i){const s={...t,user:{...r.getUser(),...t.user},eventId:t.eventId||Co()},a=$o.document.createElement("script");a.async=!0,a.crossOrigin="anonymous",a.src=function(e,t){var n=gr(e);if(!n)return"";e=`${Go(n)}embed/error-page/`;let r=`dsn=${pr(n)}`;for(const o in t)if("dsn"!==o&&"onClose"!==o)if("user"===o){const o=t.user;o&&(o.name&&(r+=`&name=${encodeURIComponent(o.name)}`),o.email&&(r+=`&email=${encodeURIComponent(o.email)}`))}else r+=`&${encodeURIComponent(o)}=${encodeURIComponent(t[o])}`;return`${e}?${r}`}(i,s);const{onLoad:c,onClose:l}=s;if(c&&(a.onload=c),l){const t=e=>{if("__sentry_reportdialog_closed__"===e.data)try{l()}finally{$o.removeEventListener("message",t)}};$o.addEventListener("message",t)}n.appendChild(a)}else Mu&&te.error("[showReportDialog] DSN not configured")}else Mu&&te.error("[showReportDialog] Global document not defined")}const Kd=L,Yd=new WeakMap,Xd=(e={})=>{const t=e.types||["crash","deprecation","intervention"];function n(e){if(Yd.has(He()))for(const r of e)qe(e=>{e.setExtra("url",r.url);const t=`ReportingObserver [${r.type}]`;let n="No details available";if(r.body){const t={};for(const e in r.body)t[e]=r.body[e];if(e.setExtra("body",t),"crash"===r.type){const e=r.body;n=[e.crashId||"",e.reason||""].join(" ").trim()||n}else n=r.body.message||n}vo(`${t}: ${n}`)})}return{name:"ReportingObserver",setupOnce(){"ReportingObserver"in Su&&new Kd.ReportingObserver(n,{buffered:!0,types:t}).observe()},setup(e){Yd.set(e,!0)}}};function Qd(o,e){var t=e?.getDsn(),e=e?.getOptions().tunnel;return function(e){var t=ad(o);return!(!t||sd(t))&&!!e&&((n=t.hostname)===(r=e.host)||0<r.length&&n.endsWith(`.${r}`))&&/(^|&|\?)sentry_key=/.test(t.search);let n,r}(t)||!!(e=e)&&Zd(o)===Zd(e)}function Zd(e){return"/"===e[e.length-1]?e.slice(0,-1):e}const ep=(e={})=>{const t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:"HttpClient",setup(e){var i,s,a,c;a=e,c=t,ku()&&Zu(e=>{var t,n,r,o;He()===a&&({response:t,args:o,error:n,virtualError:r}=e,[e,o]=o,t&&function(o,i,s,a,c){if(rp(o,s.status,s.url)){const o=!a&&i instanceof Request||i instanceof Request&&i.bodyUsed?i:new Request
1(i,a);let e,t,n,r;ip()&&([e,n]=tp("Cookie",o),[t,r]=tp("Set-Cookie",s)),_o(op({url:o.url,method:o.method,status:s.status,requestHeaders:e,responseHeaders:t,requestCookies:n,responseCookies:r,error:c,type:"fetch"}))}}(c,e,t,o,n||r))},!1),i=e,s=t,"XMLHttpRequest"in L&&vd(e=>{if(He()===i){var{error:t,virtualError:n}=e,r=e.xhr,o=r[yd];if(o){var{method:e,request_headers:o}=o;try{!function(r,o,i,s,a){if(rp(r,o.status,o.responseURL)){let e,t,n;if(ip()){try{const r=o.getResponseHeader("Set-Cookie")||o.getResponseHeader("set-cookie")||void 0;r&&(t=np(r))}catch{}try{n=function(){const e=o.getAllResponseHeaders();return e?e.split("\r\n").reduce((e,t)=>{var[n,t]=t.split(": ");return n&&t&&(e[n]=t),e},{}):{}}()}catch{}e=s}_o(op({url:o.responseURL,method:i,status:o.status,requestHeaders:e,responseHeaders:n,responseCookies:t,error:a,type:"xhr"}))}}(s,r,e,o,t||n)}catch(e){Mu&&te.warn("Error while extracting response event form XHR response",e)}}}})}}};function tp(e,t){t=function(e){const n={};return e.forEach((e,t)=>{n[t]=e}),n}(t.headers);let n;try{const r=t[e]||t[e.toLowerCase()]||void 0;r&&(n=np(r))}catch{}return[t,n]}function np(e){return e.split("; ").reduce((e,t)=>{var[n,t]=t.split("=");return n&&t&&(e[n]=t),e},{})}function rp(e,t,n){return r=e.failedRequestStatusCodes,o=t,r.some(e=>"number"==typeof e?e===o:o>=e[0]&&o<=e[1])&&(i=e.failedRequestTargets,s=n,i.some(e=>"string"==typeof e?s.includes(e):e.test(s)))&&!Qd(n,He());var r,o;let i,s}function op(e){const t=He(),n=t&&e.error&&e.error instanceof Error?e.error.stack:void 0,r=n&&t?t.getOptions().stackParser(n,0,1):void 0,o=`HTTP Client Error with status code: ${e.status}`,i={message:o,exception:{values:[{type:"Error",value:o,stacktrace:r?{frames:r}:void 0}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:function(e){if(e){e=e["Content-Length"]||e["content-length"];if(e)return parseInt(e,10)}}(e.responseHeaders)}}};return fe(i,{type:`auto.http.client.${e.type}`,handled:!1}),i}function ip(){const e=He();return e&&Boolean(e.getOptions().sendDefaultPii)}const sp=L,ap=(e={})=>{const t=null!=e.frameContextLines?e.frameContextLines:7;return{name:"ContextLines",processEvent(e){return function(e,a){const t=sp.document,n=sp.location&&ld(sp.location.href);if(!t||!n)return e;const r=e.exception?.values;if(!r?.length)return e;const o=t.documentElement.innerHTML;if(!o)return e;const i=["<!DOCTYPE html>","<html>",...o.split("\n"),"</html>"];return r.forEach(e=>{const t=e.stacktrace;t?.frames&&(t.frames=t.frames.map(e=>function(e,t,n){return e.filename===n&&e.lineno&&t.length&&([r,o,i=5]=[t,e,a],void 0!==o.lineno&&(s=r.length,n=Math.max(Math.min(s-1,o.lineno-1),0),o.pre_context=r.slice(Math.max(0,n-i),n).map(e=>oe(e,0)),t=Math.min(s-1,n),o.context_line=oe(r[t],o.colno||0),o.post_context=r.slice(Math.min(n+1,s),n+1+i).map(e=>oe(e,0)))),e;var r,o,i,s}(e,i,n)))}),e}(e,t)}}},cp=Symbol.for("sentry__originalRequestBody");function lp(e){return new URLSearchParams(e).toString()}function up(t,n=te){try{if("string"==typeof t)return[t];if(t instanceof URLSearchParams)return[t.toString()];if(t instanceof FormData)return[lp(t)];if(!t)return[void 0]}catch(e){return xu&&n.error(e,"Failed to serialize body",t),[void 0,"BODY_PARSE_ERROR"]}return xu&&n.log("Skipping network body because of body type",t),[void 0,"UNPARSEABLE_BODY_TYPE"]}function dp(e=[]){if(2<=e.length&&e[1]&&"object"==typeof e[1]&&"body"in e[1])return e[1].body;if(1<=e.length&&e[0]instanceof Request){e=e[0][cp];return void 0!==e?e:void 0}}function pp(e){let t;try{t=e.getAllResponseHeaders()}catch(t){return xu&&te.error(t,"Failed to get xhr response headers",e),{}}return t?t.split("\r\n").reduce((e,t)=>{const[n,r]=t.split(": ");return r&&(e[n.toLowerCase()]=r),e},{}):{}}function fp(e){if(yp(e))return`persisted ${e.operationName}`;if(gp(e)){var{query:t,operationName:e}=e,{operationName:t=e,operationType:e}=function(e){var t=e.match(/^(?:\s*)(query|mutation|subscription)(?:\s*)(\w+)(?:\s*)[{(]/);if(t)return{operationType:t[1],operationName:t[2]};e=e.match(/^(?:\s*)(query|mutation|subscription)(?:\s*)[{(]/);return e?{operationType:e[1],operationName:void 0}:{operationType:void 0,operationName:void 0}}(t);return t?`${e} ${t}`:`${e}`}return"unknown"}function hp(e){let t;var n;return t="xhr"in e?(n=e.xhr[yd])&&up(n.body)[0]:up(dp(e.input))[0],t}function mp(e){return"object"==typeof e&&null!==e}function gp(e){return mp(e)&&"string"==typeof e.query}
1function yp(e){return mp(e)&&"string"==typeof e.operationName&&mp(e.extensions)&&mp(e.extensions.persistedQuery)&&"string"==typeof e.extensions.persistedQuery.sha256Hash&&"number"==typeof e.extensions.persistedQuery.version}function vp(e){try{var t=JSON.parse(e);return gp(t)||yp(t)?t:void 0}catch{}}const _p=t=>({name:"GraphQLClient",setup(e){var s,a;a=t,e.on("beforeOutgoingRequestSpan",(e,t)=>{var n=Ur(e).data||{};if("http.client"===n[Xn]){var r=n["url.full"]||n["http.url"]||n.url,o=n["http.request.method"]||n["http.method"];if(h(r)&&h(o)){var n=a["endpoints"],n=ae(r,n),t=hp(t);if(n&&t){const a=vp(t);if(a){const i=fp(a);e.updateName(`${o} ${r} (${i})`),gp(a)&&e.setAttribute("graphql.document",a.query),yp(a)&&(e.setAttribute("graphql.persisted_query.hash.sha256",a.extensions.persistedQuery.sha256Hash),e.setAttribute("graphql.persisted_query.version",a.extensions.persistedQuery.version))}}}}}),s=t,e.on("beforeOutgoingRequestBreadcrumb",(e,t)=>{const{category:n,type:r,data:o}=e;if("http"===r&&("fetch"===n||"xhr"===n)){const e=o?.url,n=s["endpoints"],r=ae(e,n),i=hp(t);if(r&&o&&i){const e=vp(i);if(!o.graphql&&e){const s=fp(e);o["graphql.operation"]=s,gp(e)&&(o["graphql.document"]=e.query),yp(e)&&(o["graphql.persisted_query.hash.sha256"]=e.extensions.persistedQuery.sha256Hash,o["graphql.persisted_query.version"]=e.extensions.persistedQuery.version)}}}})}}),bp=(p={})=>{const f=["script"];function h(e,t,n=0){if(e){const o=("shadowRoot"in e&&e.shadowRoot?e.shadowRoot:e).children;for(const e of o)if(e instanceof HTMLElement){const o=F(e,1)||void 0,i=e.tagName.toLowerCase();if(!f.includes(i)){var r=p.onElement?.({element:e,componentName:o,tagName:i,depth:n})||{};if("skip"!==r)if("children"!==r){const{x:s,y:a,width:c,height:l}=e.getBoundingClientRect(),u={identifier:e.id||void 0,type:o||i,visible:!0,alpha:1,height:l,width:c,x:s,y:a,...r},d=[];u.children=d,h(e,u.children,n+1),t.push(u)}else h(e,t,n+1)}}}}return{name:"ViewHierarchy",processEvent:(e,t)=>{if(void 0!==e.type||!1===p.shouldAttach?.(e,t))return e;var n={rendering_system:"DOM",positioning:"absolute",windows:[]};h(p.rootElement?.()||$o.document.body,n.windows);n={filename:"view-hierarchy.json",attachmentType:"event.view_hierarchy",contentType:"application/json",data:JSON.stringify(n)};return t.attachments=t.attachments||[],t.attachments.push(n),e}}},Sp=(t,n,r,o)=>{let i,s;return e=>{0<=n.value&&(e||o)&&(s=n.value-(i??0),!s&&void 0!==i||(i=n.value,n.delta=s,n.rating=(e=n.value)>r[1]?"poor":e>r[0]?"needs-improvement":"good",t(n)))}},wp=(e=!0)=>{var t=Tu.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&0<t.responseStart&&t.responseStart<performance.now())return t},kp=()=>{return wp()?.activationStart??0};function xp(e,t,n){Tu.document&&Tu.addEventListener(e,t,n)}function Tp(e,t,n){Tu.document&&Tu.removeEventListener(e,t,n)}let Ep=-1;const Cp=new Set,Ip=e=>{if(("pagehide"===e.type||"hidden"===Tu.document?.visibilityState)&&-1<Ep){if("visibilitychange"===e.type||"pagehide"===e.type)for(const e of Cp)e();isFinite(Ep)||(Ep="visibilitychange"===e.type?e.timeStamp:0,Tp("prerenderingchange",Ip,!0))}},Ap=()=>{if(Tu.document&&Ep<0){const t=kp(),e=Tu.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(e=>"hidden"===e.name&&e.startTime>t)[0]?.startTime;Ep=e??("hidden"!==Tu.document?.visibilityState||Tu.document?.prerendering?1/0:0),xp("visibilitychange",Ip,!0),xp("pagehide",Ip,!0),xp("prerenderingchange",Ip,!0)}return{get firstHiddenTime(){return Ep},onHidden(e){Cp.add(e)}}},Rp=(e,t=-1)=>{const n=wp();let r="navigate";return n&&(Tu.document?.prerendering||0<kp()?r="prerender":Tu.document?.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},Mp=new WeakMap;function Op(e,t){try{return Mp.get(e)||Mp.set(e,new t),Mp.get(e)}catch(e){return new t}}class Dp{constructor(){Dp.prototype.__init.call(this),Dp.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(e){var t,n;e.hadRecentInput||(t=this._sessionEntries[0],n=this._sessionEntries[this._sessionEntries.length-1],this._sessionValue&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),this._onAfterProcessingUnexpectedShift?.(e))}}const Np=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},Lp=e=>{let t=!1;return()=>{t||(e(),t=!0)}},Pp=e=>{Tu.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},$p=[1800,3e3],jp=[.1,.25];let Fp=0,Bp=1/0,qp=0;const Up=e=>
1{e.forEach(e=>{e.interactionId&&(Bp=Math.min(Bp,e.interactionId),qp=Math.max(qp,e.interactionId),Fp=qp?(qp-Bp)/7+1:0)})};let Hp;const Wp=()=>Hp?Fp:performance.interactionCount||0,zp=()=>{"interactionCount"in performance||Hp||(Hp=Np("event",Up,{type:"event",buffered:!0,durationThreshold:0}))};let Vp=0;class Jp{constructor(){Jp.prototype.__init.call(this),Jp.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){Vp=Wp(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){var e=Math.min(this._longestInteractionList.length-1,Math.floor((Wp()-Vp)/50));return this._longestInteractionList[e]}_processEntry(t){if(this._onBeforeProcessingEntry?.(t),t.interactionId||"first-input"===t.entryType){const n=this._longestInteractionList.at(-1);let e=this._longestInteractionMap.get(t.interactionId);if(e||this._longestInteractionList.length<10||t.duration>n._latency){if(e?t.duration>e._latency?(e.entries=[t],e._latency=t.duration):t.duration===e._latency&&t.startTime===e.entries[0].startTime&&e.entries.push(t):(e={id:t.interactionId,entries:[t],_latency:t.duration},this._longestInteractionMap.set(e.id,e),this._longestInteractionList.push(e)),this._longestInteractionList.sort((e,t)=>t._latency-e._latency),10<this._longestInteractionList.length){const t=this._longestInteractionList.splice(10);for(const n of t)this._longestInteractionMap.delete(n.id)}this._onAfterProcessingINPCandidate?.(e)}}}}const Gp=e=>{const t=Tu.requestIdleCallback||Tu.setTimeout;"hidden"===Tu.document?.visibilityState?e():(xp("visibilitychange",e=Lp(e),{once:!0,capture:!0}),xp("pagehide",e,{once:!0,capture:!0}),t(()=>{e(),Tp("visibilitychange",e,{capture:!0}),Tp("pagehide",e,{capture:!0})}))},Kp=[200,500];class Yp{_processEntry(e){this._onBeforeProcessingEntry?.(e)}}const Xp=[2500,4e3],Qp=[800,1800],Zp=e=>{Tu.document?.prerendering?Pp(()=>Zp(e)):"complete"!==Tu.document?.readyState?addEventListener("load",()=>Zp(e),!0):setTimeout(e)},ef={},tf={};let nf,rf,of,sf;function af(e,t=!1){return gf("cls",e,pf,nf,t)}function cf(e,t=!1){return gf("lcp",e,ff,rf,t)}function lf(e){return gf("inp",e,mf,sf)}function uf(e,t){return yf(e,t),tf[e]||(function(t){const e={};"event"===t&&(e.durationThreshold=0),Np(t,e=>{df(t,{entries:e})},e)}(e),tf[e]=!0),vf(e,t)}function df(e,t){var n=ef[e];if(n?.length)for(const r of n)try{r(t)}catch(t){xu&&te.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Z(r)}\nError:`,t)}}function pf(){return s=e=>{df("cls",{metric:e}),nf=e},a={reportAllChanges:!0},e=Lp(()=>{const n=Rp("CLS",0);let r;const e=Ap(),o=Op(a,Dp),t=e=>{for(const t of e)o._processEntry(t);o._sessionValue>n.value&&(n.value=o._sessionValue,n.entries=o._sessionEntries,r())},i=Np("layout-shift",t);i&&(r=Sp(s,n,jp,a.reportAllChanges),e.onHidden(()=>{t(i.takeRecords()),r(!0)}),Tu?.setTimeout?.(r))}),t={},void Pp(()=>{const n=Ap(),r=Rp("FCP");let o;const i=Np("paint",e=>{for(const t of e)"first-contentful-paint"===t.name&&(i.disconnect(),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-kp(),0),r.entries.push(t),o(!0)))});i&&(o=Sp(e,r,$p,t.reportAllChanges))});var s,a,e,t}function ff(){var s,a;s=e=>{df("lcp",{metric:e}),rf=e},a={reportAllChanges:!0},Pp(()=>{const t=Ap(),n=Rp("LCP");let r;const o=Op(a,Yp),e=e=>{a.reportAllChanges||(e=e.slice(-1));for(const a of e)o._processEntry(a),a.startTime<t.firstHiddenTime&&(n.value=Math.max(a.startTime-kp(),0),n.entries=[a],r())},i=Np("largest-contentful-paint",e);if(i){r=Sp(s,n,Xp,a.reportAllChanges);const t=Lp(()=>{e(i.takeRecords()),i.disconnect(),r(!0)}),o=e=>{e.isTrusted&&(Gp(t),Tp(e.type,o,{capture:!0}))};for(const s of["keydown","click","visibilitychange"])xp(s,o,{capture:!0})}})}function hf(){return((e={})=>{const t=Rp("TTFB"),n=Sp(e=>{df("ttfb",{metric:e}),of=e},t,Qp,e.reportAllChanges);Zp(()=>{var e=wp();e&&(t.value=Math.max(e.responseStart-kp(),0),t.entries=[e],n(!0))})})()}function mf(){return((i,s={})=>{if(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype){const a=Ap();Pp(()=>{zp();const n=Rp("INP");let r;const o=Op(s,Jp),e=t=>{Gp(()=>{for(const e of t)o._processEntry(e);const e=o._estimateP98LongestInteraction();e&&e._latency!==n.value&&(n.value=e._latency,n.entries=e.entries,r())})},t=Np("event",e,{durationThreshold:s.durationThreshold??40});r=Sp(i,n,Kp,s.reportAllChanges),t&&(t.observe({type:"first-input",buffered:!0}),a.onHidden(()=>{e(t.takeRecords()),r(!0)}))})}})(e=>{df("inp",{metric:e}),sf=e})}function gf(e,t,n,r,o=!1){let i;return yf(e,t),tf[e]||(i=n(),tf[e]=!0),r&&t({metric:r}),vf(e,t,o?i:void 0)}function yf(e,t){ef[e]=ef[e]||[],ef[e].push(t)}function vf(n,r,o){return()=>{o&&o();const e=ef[n];var t;!e||-1!==(t=e.indexOf(r))&&e.splice(t,1)}}const _f=L,bf="sentryReplaySession",Sf="Unable to send Replay",wf=15e4;
1var kf=Object.defineProperty,xf=(e,t,n)=>((e,t,n)=>t in e?kf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?`${t}`:t,n),Tf=((vt=Tf||{})[vt.Document=0]="Document",vt[vt.DocumentType=1]="DocumentType",vt[vt.Element=2]="Element",vt[vt.Text=3]="Text",vt[vt.CDATA=4]="CDATA",vt[vt.Comment=5]="Comment",vt);function Ef(e){return Boolean(e?.host?.shadowRoot===e)}function Cf(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function If(e){try{var t=e.rules||e.cssRules;return t?((n=Array.from(t,Af).join("")).includes(" background-clip: text;")&&!n.includes(" -webkit-background-clip: text;")&&(n=n.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),n):null}catch(e){return null}let n}function Af(t){let e;if("styleSheet"in t)try{e=If(t.styleSheet)||function(e){const t=e["cssText"];if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),`${n.join(" ")};`}(t)}catch(t){}else if("selectorText"in t){let e=t.cssText;var n=t.selectorText.includes(":"),r="string"==typeof t.style.all&&t.style.all;if(r&&(e=function(t){let n="";for(let e=0;e<t.style.length;e++){const r=t.style,o=r[e],i=r.getPropertyPriority(o);n+=`${o}:${r.getPropertyValue(o)}${i?" !important":""};`}return`${t.selectorText} { ${n} }`}(t)),n&&(e=e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),n||r)return e}return e||t.cssText}class Rf{constructor(){xf(this,"idNodeMap",new Map),xf(this,"nodeMetaMap",new WeakMap)}getId(e){return e?this.getMeta(e)?.id??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){var t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){var n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){var n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Mf({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),Boolean(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function Of({isMasked:e,element:t,value:n,maskInputFn:r}){let o=n||"";return e?(r&&(o=r(o,t)),"*".repeat(o.length)):o}function Df(e){return e.toLowerCase()}function Nf(e){return e.toUpperCase()}const Lf="__rrweb_original__";function Pf(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Df(t):null}function $f(e,t,n){return"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}function jf(e,t){let n;try{n=new URL(e,t??window.location.href)}catch(e){return null}return n.pathname.match(/\.([0-9a-z]+)(?:$)/i)?.[1]??null}const Ff={};function Bf(e){const t=Ff[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);var o=t.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(t)}catch(e){}return Ff[e]=r.bind(window)}function qf(...e){return Bf("setTimeout")(...e)}function Uf(...e){return Bf("clearTimeout")(...e)}function Hf(e){try{return e.contentDocument}catch(e){}}let Wf=1;const zf=new RegExp("[^a-z0-9-_:]");function Vf(){return Wf++}let Jf,Gf;const Kf=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Yf=/^(?:[a-z+]+:)?\/\//i,Xf=/^www\..*/i,Qf=/^(data:)([^,]*),(.*)/i;function Zf(e,u){return(e||"").replace(Kf,(e,t,n,r,o,i)=>{const s=n||o||i,a=t||r||"";if(!s)return e;if(Yf.test(s)||Xf.test(s))return`url(${a}${s}${a})`;if(Qf.test(s))return`url(${a}${s}${a})`;if("/"===s[0])return`url(${a}${function(e){let t="";return t=-1<e.indexOf("//")?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(u)+s}${a})`;const c=u.split("/"),l=s.split("/");c.pop();for(const e of l)"."!==e&&(".."===e?c.pop():c.push(e));return`url(${a}${c.join("/")}${a})`})}const eh=/^[^ \t\n\r\u000c]+/,th=/^[, \t\n\r\u000c]+/,nh=new WeakMap;function rh(e,t){return t&&""!==t.trim()?oh(e,t):t}function oh(e,t){let n=nh.get(e);if(n||(n=e.createElement("a"),nh.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function ih(t,e,n,r,o,i,s){if(!r)return r;if("src"===n||"href"===n&&("use"!==e||"#"!==r[0]))return rh(t,r);if("xlink:href"===n&&"#"!==r[0])return rh(t,r);if("background"===n&&("table"===e||"td"===e||"th"===e))return rh(t,r);if("srcset"===n)return function(r,o){if(""===o.trim())return o;let i=0;function e(e){var e=e.exec(o.substring(i));return e?(e=e[0],i+=e.length,e):""}const s=[];for(;e(th),!(i>=o.length);){let n=e(eh);if(","===n.slice(-1))n=rh(r,n.substring(0,n.length-1)),s.push(n);else{let e="";n=rh(r,n);let t=!1;for(;;){const r=o.charAt(i);if(""===r){s.push((n+e).trim());break}if(t)")"===r&&(t=!1);else{if(","===r){i+=1,s.push((n+e).trim());break}"("===r&&(t=!0)}e+=r,i+=1}}}return s.join(", ")}(t,r);if("style"!==n)return"object"===e&&"data"===n?rh(t,r):"function"==typeof i?i(n,r,o):r;{let e=Zf(r,oh(t));return s&&0<s.size&&(e=function(e,t){if(!e||0===t.size)return e;try{const i=e.split(";"),s=[];for(var n of i){var r,o;n=n.trim(),n&&(-1!==(r=n.indexOf(":"))?(o=n.slice(0,r).trim(),t.has(o)||s.push(n)):s.push(n))}return s.join("; ")+(0<s.length&&e.endsWith(";")?";":"")}catch(t){return console.warn("Error filtering CSS properties:",t),e}}(e,s)),e}}function sh(e,t){return("video"===e||"audio"===e)&&"autoplay"===t}function ah(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||n<r?-1:t(e)?r:ah(e.parentNode,t,n,r+1)}function ch(n,r){return e=>{const t=e;if(null===t)return!1;try{if(n)if("string"==typeof n){if(t.matches(`.${n}`))return!0}else if(function(t,n){for(let e=t.classList.length;e--;){var r=t.classList[e];if(n.test(r))return 1}}(t,n))return!0;return!(!r||!t.matches(r))}catch{return!1}}}function lh(n,r,o,i,s,a){try{const c=n.nodeType===n.ELEMENT_NODE?n:n.parentElement;if(null===c)return!1;if("INPUT"===c.tagName){const n=c.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(n))return!0}let e=-1,t=-1;if(a){if(t=ah(c,ch(i,s)),t<0)return!0;e=ah(c,ch(r,o),0<=t?t:1/0)}else{if(e=ah(c,ch(r,o)),e<0)return!1;t=ah(c,ch(i,s),0<=e?e:1/0)}return 0<=e?!(0<=t)||e<=t:!(0<=t||!a)}catch(n){}return!!a}function uh(e){return null==e?"":e.toLowerCase()}function dh(t,e){const{doc:k,mirror:x,blockClass:T,blockSelector:E,unblockSelector:C,maskAllText:I,maskTextClass:A,unmaskTextClass:R,maskTextSelector:M,unmaskTextSelector:O,skipChild:n=!1,inlineStylesheet:D=!0,maskInputOptions:N={},maskAttributeFn:L,maskTextFn:P,maskInputFn:$,slimDOMOptions:r,dataURLOptions:j={}
1,inlineImages:F=!1,recordCanvas:B=!1,onSerialize:o,onIframeLoad:i,iframeLoadTimeout:s=5e3,onBlockedImageLoad:a,onStylesheetLoad:c,stylesheetLoadTimeout:l=5e3,keepIframeSrcFn:q=()=>!1,newlyAddedElement:U=!1,ignoreCSSAttributes:H}=e;let{preserveWhiteSpace:u=!0}=e;const d=function(e){var{doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,maskAllText:s,maskAttributeFn:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,inlineStylesheet:p,maskInputOptions:f={},maskTextFn:h,maskInputFn:m,dataURLOptions:g={},inlineImages:y,recordCanvas:v,keepIframeSrcFn:_,newlyAddedElement:b=!1,ignoreCSSAttributes:S}={doc:k,mirror:x,blockClass:T,blockSelector:E,maskAllText:I,unblockSelector:C,maskTextClass:A,unmaskTextClass:R,maskTextSelector:M,unmaskTextSelector:O,inlineStylesheet:D,maskInputOptions:N,maskAttributeFn:L,maskTextFn:P,maskInputFn:$,dataURLOptions:j,inlineImages:F,recordCanvas:B,keepIframeSrcFn:q,newlyAddedElement:U,ignoreCSSAttributes:H},w=function(e,t){if(t.hasNode(e)){e=t.getId(e);return 1===e?void 0:e}}(t,n);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:Tf.Document,childNodes:[],compatMode:e.compatMode}:{type:Tf.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Tf.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:w};case e.ELEMENT_NODE:return function(t,n){const{doc:r,blockClass:o,blockSelector:e,unblockSelector:i,inlineStylesheet:s,maskInputOptions:a={},maskAttributeFn:c,maskInputFn:l,dataURLOptions:u={},inlineImages:d,recordCanvas:p,keepIframeSrcFn:f,newlyAddedElement:h=!1,rootId:m,maskTextClass:g,unmaskTextClass:y,maskTextSelector:v,unmaskTextSelector:_,ignoreCSSAttributes:b}=n,S=function(t,n,e,r){try{if(r&&t.matches(r))return!1;if("string"==typeof n){if(t.classList.contains(n))return!0}else for(let e=t.classList.length;e--;){const r=t.classList[e];if(n.test(r))return!0}if(e)return t.matches(e)}catch(t){}return!1}(t,o,e,i),w=function(){if(t instanceof HTMLFormElement)return"form";var e=Df(t.tagName);return zf.test(e)?"div":e}();let k={};var x=t.attributes.length;for(let e=0;e<x;e++){const o=t.attributes[e];o.name&&!sh(w,o.name,o.value)&&(k[o.name]=ih(r,w,Df(o.name),o.value,t,c,b))}if("link"===w&&s){const n=Array.from(r.styleSheets).find(e=>e.href===t.href);let e=null;n&&(e=If(n)),e&&(k.rel=null,k.href=null,k.crossorigin=null,k._cssText=Zf(e,n.href))}if("style"===w&&t.sheet&&!(t.innerText||t.textContent||"").trim().length){const n=If(t.sheet);n&&(k._cssText=Zf(n,oh(r)))}if("input"===w||"textarea"===w||"select"===w||"option"===w){const n=t,r=Pf(n),o=$f(n,Nf(w),r),e=n.checked;if("submit"!==r&&"button"!==r&&o){const t=lh(n,g,v,y,_,Mf({type:r,tagName:Nf(w),maskInputOptions:a}));k.value=Of({isMasked:t,element:n,value:o,maskInputFn:l})}e&&(k.checked=e)}if("option"===w&&(t.selected&&!a.select?k.selected=!0:delete k.selected),"canvas"===w&&p)if("2d"===t.__context)!function(n){var r=n.getContext("2d");if(!r)return 1;for(let t=0;t<n.width;t+=50)for(let e=0;e<n.height;e+=50){const o=r.getImageData,i=Lf in o?o[Lf]:o;if(new Uint32Array(i.call(r,t,e,Math.min(50,n.width-t),Math.min(50,n.height-e)).data.buffer).some(e=>0!==e))return}return 1}(t)&&(k.rr_dataURL=t.toDataURL(u.type,u.quality));else if(!("__context"in t)){const n=t.toDataURL(u.type,u.quality),o=r.createElement("canvas");o.width=t.width,o.height=t.height,n!==o.toDataURL(u.type,u.quality)&&(k.rr_dataURL=n)}if("img"===w&&d){Jf||(Jf=r.createElement("canvas"),Gf=Jf.getContext("2d"));const n=t,o=n.currentSrc||n.getAttribute("src")||"<unknown-src>",e=n.crossOrigin,i=()=>{n.removeEventListener("load",i);try{Jf.width=n.naturalWidth,Jf.height=n.naturalHeight,Gf.drawImage(n,0,0),k.rr_dataURL=Jf.toDataURL(u.type,u.quality)}catch(e){if("anonymous"!==n.crossOrigin)return n.crossOrigin="anonymous",void(n.complete&&0!==n.naturalWidth?i():n.addEventListener("load",i));console.warn(`Cannot inline img src=${o}! Error: ${e}`)}"anonymous"===n.crossOrigin&&(e?k.crossOrigin=e:n.removeAttribute("crossorigin"))};n.complete&&0!==n.naturalWidth?i():n.addEventListener("load",i)}if("audio"!==w&&"video"!==w||(k.rr_mediaState=t.paused?"paused":"played",k.rr_mediaCurrentTime=t.currentTime),h||(t.scrollLeft&&(k.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(k.rr_scrollTop=t.scrollTop)),S){const{width:n,height:r}=t.getBoundingClientRect();k={class:k.class,rr_width:`${n}px`,rr_height:`${r}px`}}let T;
1"iframe"!==w||f(k.src)||(S||Hf(t)||(k.rr_src=k.src),delete k.src);try{customElements.get(w)&&(T=!0)}catch(t){}return{type:Tf.Element,tagName:w,attributes:k,childNodes:[],isSVG:(E=t,Boolean("svg"===E.tagName||E.ownerSVGElement)||void 0),needBlock:S,rootId:m,isCustom:T};let E}(e,{doc:t,blockClass:r,blockSelector:o,unblockSelector:i,inlineStylesheet:p,maskAttributeFn:a,maskInputOptions:f,maskInputFn:m,dataURLOptions:g,inlineImages:y,recordCanvas:v,keepIframeSrcFn:_,newlyAddedElement:b,rootId:w,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,ignoreCSSAttributes:S});case e.TEXT_NODE:return function(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:o,maskTextSelector:i,unmaskTextSelector:s,maskTextFn:a,maskInputOptions:c,maskInputFn:l,rootId:u}=t,d=e.parentNode&&e.parentNode.tagName;let p=e.textContent;var f="STYLE"===d||void 0,h="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0;if(f&&p){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(p=If(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}p=Zf(p,oh(t.doc))}h&&(p="SCRIPT_PLACEHOLDER");var g=lh(e,r,i,o,s,n);return f||h||m||!p||!g||(p=a?a(p,e.parentElement):p.replace(/[\S]/g,"*")),m&&p&&(c.textarea||g)&&(p=l?l(p,e.parentNode):p.replace(/[\S]/g,"*")),"OPTION"===d&&p&&(p=Of({isMasked:lh(e,r,i,o,s,Mf({type:null,tagName:d,maskInputOptions:c})),element:e,value:p,maskInputFn:l})),{type:Tf.Text,textContent:p||"",isStyle:f,rootId:u}}(e,{doc:t,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,maskTextFn:h,maskInputOptions:f,maskInputFn:m,rootId:w});case e.CDATA_SECTION_NODE:return{type:Tf.CDATA,textContent:"",rootId:w};case e.COMMENT_NODE:return{type:Tf.Comment,textContent:e.textContent||"",rootId:w};default:return!1}}(t);if(!d)return console.warn(t,"not serialized"),null;e=x.hasNode(t)?x.getId(t):!function(e,t){if(t.comment&&e.type===Tf.Comment)return 1;if(e.type===Tf.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===jf(e.attributes.href)))return 1;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(uh(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===uh(e.attributes.name)||"icon"===uh(e.attributes.rel)||"apple-touch-icon"===uh(e.attributes.rel)||"shortcut icon"===uh(e.attributes.rel))))return 1;if("meta"===e.tagName){if(t.headMetaDescKeywords&&uh(e.attributes.name).match(/^description|keywords$/))return 1;if(t.headMetaSocial&&(uh(e.attributes.property).match(/^(og|twitter|fb):/)||uh(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===uh(e.attributes.name)))return 1;if(t.headMetaRobots&&("robots"===uh(e.attributes.name)||"googlebot"===uh(e.attributes.name)||"bingbot"===uh(e.attributes.name)))return 1;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return 1;if(t.headMetaAuthorship&&("author"===uh(e.attributes.name)||"generator"===uh(e.attributes.name)||"framework"===uh(e.attributes.name)||"publisher"===uh(e.attributes.name)||"progid"===uh(e.attributes.name)||uh(e.attributes.property).match(/^article:/)||uh(e.attributes.property).match(/^product:/)))return 1;if(t.headMetaVerification&&("google-site-verification"===uh(e.attributes.name)||"yandex-verification"===uh(e.attributes.name)||"csrf-token"===uh(e.attributes.name)||"p:domain_verify"===uh(e.attributes.name)||"verify-v1"===uh(e.attributes.name)||"verification"===uh(e.attributes.name)||"shopify-checkout-api-token"===uh(e.attributes.name)))return 1}}}(d,r)&&(u||d.type!==Tf.Text||d.isStyle||d.textContent.replace(/^\s+|\s+$/gm,"").length)?Wf++:-2;const p=Object.assign(d,{id:e});if(x.add(t,p),-2===e)return null;o&&o(t);let f=!n;if(p.type===Tf.Element){f=f&&!p.needBlock;const h=t.shadowRoot;h&&Cf(h)&&(p.isShadowHost=!0)}if((p.type===Tf.Document||p.type===Tf.Element)&&f){r.headWhitespace&&p.type===Tf.Element&&"head"===p.tagName&&(u=!1);const h={doc:k,mirror:x,blockClass:T,blockSelector:E,maskAllText:I,unblockSelector:C,maskTextClass:A,unmaskTextClass:R,maskTextSelector:M,unmaskTextSelector:O,skipChild:n,inlineStylesheet:D,maskInputOptions:N,maskAttributeFn:L,maskTextFn:P,maskInputFn:$,slimDOMOptions:r,dataURLOptions:j,inlineImages:F,recordCanvas:B,preserveWhiteSpace:u,onSerialize:o,onIframeLoad:i,iframeLoadTimeout:s,onBlockedImageLoad:a,onStylesheetLoad:c,stylesheetLoadTimeout:l,keepIframeSrcFn:q,ignoreCSSAttributes:H},U=t.childNodes?Array.from(t.childNodes):[];for(const t of U){const k=dh(t,h);k&&p.childNodes.push(k)}if(t.nodeType===t.ELEMENT_NODE&&t.shadowRoot)for(const k of Array.from(t.shadowRoot.childNodes)){const x=dh(k,h);x&&(Cf(t.shadowRoot)&&(x.isShadow=!0),p.childNodes.push(x))}}if(t.parentNode&&Ef(t.parentNode)&&Cf(t.parentNode)&&(p.isShadow=!0),p.type!==Tf.Element||"iframe"!==p.tagName||p.needBlock||function(n,r,o){const i=n.contentWindow;if(i){let e,t=!1;try{e=i.document.readyState}catch(n){return}if("complete"!==e){const i=qf(()=>{t||(r(),t=!0)},o);return n.addEventListener("load",()=>{Uf(i),t=!0,r()})}o="about:blank";
1if(i.location.href!==o||n.src===o||""===n.src)return qf(r,0),n.addEventListener("load",r);n.addEventListener("load",r)}}(t,()=>{var e=Hf(t);e&&i&&((e=dh(e,{doc:e,mirror:x,blockClass:T,blockSelector:E,unblockSelector:C,maskAllText:I,maskTextClass:A,unmaskTextClass:R,maskTextSelector:M,unmaskTextSelector:O,skipChild:!1,inlineStylesheet:D,maskInputOptions:N,maskAttributeFn:L,maskTextFn:P,maskInputFn:$,slimDOMOptions:r,dataURLOptions:j,inlineImages:F,recordCanvas:B,preserveWhiteSpace:u,onSerialize:o,onIframeLoad:i,iframeLoadTimeout:s,onStylesheetLoad:c,stylesheetLoadTimeout:l,keepIframeSrcFn:q,ignoreCSSAttributes:H}))&&i(t,e))},s),p.type===Tf.Element&&"img"===p.tagName&&!t.complete&&p.needBlock){const h=t,k=()=>{if(h.isConnected&&!h.complete&&a)try{var e=h.getBoundingClientRect();0<e.width&&0<e.height&&a(h,p,e)}catch(e){}h.removeEventListener("load",k)};h.isConnected&&h.addEventListener("load",k)}return p.type===Tf.Element&&"link"===p.tagName&&"string"==typeof p.attributes.rel&&("stylesheet"===p.attributes.rel||"preload"===p.attributes.rel&&"string"==typeof p.attributes.href&&"css"===jf(p.attributes.href))&&function(e,t,n){let r,o=!1;try{r=e.sheet}catch(e){return}if(!r){const i=qf(()=>{o||(t(),o=!0)},n);e.addEventListener("load",()=>{Uf(i),o=!0,t()})}}(t,()=>{var e;!c||(e=dh(t,{doc:k,mirror:x,blockClass:T,blockSelector:E,unblockSelector:C,maskAllText:I,maskTextClass:A,unmaskTextClass:R,maskTextSelector:M,unmaskTextSelector:O,skipChild:!1,inlineStylesheet:D,maskInputOptions:N,maskAttributeFn:L,maskTextFn:P,maskInputFn:$,slimDOMOptions:r,dataURLOptions:j,inlineImages:F,recordCanvas:B,preserveWhiteSpace:u,onSerialize:o,onIframeLoad:i,iframeLoadTimeout:s,onStylesheetLoad:c,stylesheetLoadTimeout:l,keepIframeSrcFn:q,ignoreCSSAttributes:H}))&&c(t,e)},l),p.type===Tf.Element&&delete p.needBlock,p}function ph(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const fh="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";vt={map:{},getId(){return console.error(fh),-1},getNode(){return console.error(fh),null},removeNodeFromMap(){console.error(fh)},has(){return console.error(fh),!1},reset(){console.error(fh)}};function hh(i,s,a={}){let c=null,l=0;return function(...e){var t,n=Date.now();l||!1!==a.leading||(l=n);const r=s-(n-l),o=this;r<=0||s<r?(c&&(t=[c],Mh("clearTimeout")(...t),c=null),l=n,i.apply(o,e)):c||!1===a.trailing||(c=Oh(()=>{l=!1===a.leading?0:Date.now(),c=null,i.apply(o,e)},r))}}function mh(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],o=n(r);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch{return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(vt=new Proxy(vt,{get(e,t,n){return"map"===t&&console.error(fh),Reflect.get(e,t,n)}}));let gh=Date.now;function yh(e){var t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function vh(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function _h(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function bh(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}function Sh(t,n,r,o,i){if(t){const s=bh(t);if(s){const a=ch(n,r);if(!i){const t=o&&s.matches(o);return a(s)&&!t}i=ah(s,a);let e=-1;return!(i<0)&&(o&&(e=ah(s,ch(null,o))),-1<i&&e<0||i<e)}}}function wh(e,t){return-2===t.getId(e)}function kh(e){return Boolean(e.changedTouches)}
1function xh(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function Th(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function Eh(e){return Boolean(e?.shadowRoot)}/[1-9][0-9]{12}/.test(Date.now().toString())||(gh=()=>(new Date).getTime());class Ch{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){return this.has(e)?this.getId(e):(t=void 0===t?this.id++:t,this.styleIDMap.set(e,t),this.idStyleMap.set(t,e),t)}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Ih(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function Ah(e){const t=e.ownerDocument;return t&&(t.contains(e)||function(n){const e=n.ownerDocument;if(e){var t=function(){let e,t=n;for(;e=Ih(t);)t=e;return t}();return e.contains(t)}}(e))}const Rh={};function Mh(e){const t=Rh[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);var o=t.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(t)}catch(e){}return Rh[e]=r.bind(window)}function Oh(...e){return Mh("setTimeout")(...e)}var Dh=((vt=Dh||{})[vt.DomContentLoaded=0]="DomContentLoaded",vt[vt.Load=1]="Load",vt[vt.FullSnapshot=2]="FullSnapshot",vt[vt.IncrementalSnapshot=3]="IncrementalSnapshot",vt[vt.Meta=4]="Meta",vt[vt.Custom=5]="Custom",vt[vt.Plugin=6]="Plugin",vt),Nh=((vt=Nh||{})[vt.Mutation=0]="Mutation",vt[vt.MouseMove=1]="MouseMove",vt[vt.MouseInteraction=2]="MouseInteraction",vt[vt.Scroll=3]="Scroll",vt[vt.ViewportResize=4]="ViewportResize",vt[vt.Input=5]="Input",vt[vt.TouchMove=6]="TouchMove",vt[vt.MediaInteraction=7]="MediaInteraction",vt[vt.StyleSheetRule=8]="StyleSheetRule",vt[vt.CanvasMutation=9]="CanvasMutation",vt[vt.Font=10]="Font",vt[vt.Log=11]="Log",vt[vt.Drag=12]="Drag",vt[vt.StyleDeclaration=13]="StyleDeclaration",vt[vt.Selection=14]="Selection",vt[vt.AdoptedStyleSheet=15]="AdoptedStyleSheet",vt[vt.CustomElement=16]="CustomElement",vt),Lh=((vt=Lh||{})[vt.MouseUp=0]="MouseUp",vt[vt.MouseDown=1]="MouseDown",vt[vt.Click=2]="Click",vt[vt.ContextMenu=3]="ContextMenu",vt[vt.DblClick=4]="DblClick",vt[vt.Focus=5]="Focus",vt[vt.Blur=6]="Blur",vt[vt.TouchStart=7]="TouchStart",vt[vt.TouchMove_Departed=8]="TouchMove_Departed",vt[vt.TouchEnd=9]="TouchEnd",vt[vt.TouchCancel=10]="TouchCancel",vt),Ph=((vt=Ph||{})[vt.Mouse=0]="Mouse",vt[vt.Pen=1]="Pen",vt[vt.Touch=2]="Touch",vt),$h=((vt=$h||{})[vt.Play=0]="Play",vt[vt.Pause=1]="Pause",vt[vt.Seeked=2]="Seeked",vt[vt.VolumeChange=3]="VolumeChange",vt[vt.RateChange=4]="RateChange",vt);function jh(e){try{return e.contentDocument}catch(e){}}function Fh(e){return"__ln"in e}class Bh{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let e=0;e<t;e++)n=n?.next||null;return n}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Fh(e.previousSibling)){const n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&Fh(e.nextSibling)&&e.nextSibling.__ln.previous){const r=e.nextSibling.__ln.previous;t.previous=r,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,r&&(r.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){const t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const qh=(e,t)=>`${e}@${t}`;class Uh{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>
1{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(!this.frozen&&!this.locked){const o=[],i=new Set,s=new Bh,a=e=>{let t=e,n=-2;for(;-2===n;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},n=t=>{if(t.parentNode&&Ah(t)){var e=Ef(t.parentNode)?this.mirror.getId(Ih(t)):this.mirror.getId(t.parentNode),n=a(t);if(-1===e||-1===n)return s.addNode(t);var r=dh(t,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{xh(e,this.mirror)&&!Sh(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),Th(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),Eh(t)&&this.shadowDomManager.addShadowRoot(t.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{Sh(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(e,t),e.contentWindow&&this.canvasManager.addWindow(e.contentWindow),this.shadowDomManager.observeAttachShadow(e))},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:n,height:r})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${n}px`,height:`${r}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});r&&(o.push({parentId:e,nextId:n,node:r}),i.add(r.id))}};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const o of this.movedSet)Wh(this.removes,o,this.mirror)&&!this.movedSet.has(o.parentNode)||n(o);for(const o of this.addedSet)!zh(this.droppedSet,o)&&!Wh(this.removes,o,this.mirror)||zh(this.movedSet,o)?n(o):this.droppedSet.add(o);let e=null;for(;s.length;){let t=null;if(e){const i=this.mirror.getId(e.value.parentNode),s=a(e.value);-1!==i&&-1!==s&&(t=e)}if(!t){let e=s.tail;for(;e;){const s=e;if(e=e.previous,s){const i=this.mirror.getId(s.value.parentNode);if(-1!==a(s.value)){if(-1!==i){t=s;break}{const i=s.value;if(i.parentNode&&i.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const a=i.parentNode.host;if(-1!==this.mirror.getId(a)){t=s;break}}}}}}}if(!t){for(;s.head;)s.removeNode(s.head.value);break}e=t.previous,s.removeNode(t.value),n(t.value)}var t={texts:this.texts.map(e=>({id:this.mirror.getId(e.node),value:e.value})).filter(e=>!i.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{const t=e["attributes"];var n,r;return"string"==typeof t.style&&(n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles),n.length<t.style.length&&(n+r).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)),{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!i.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:o};(t.texts.length||t.attributes.length||t.removes.length||t.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(t))}},this.processMutation=r=>{if(!wh(r.target,this.mirror))switch(r.type){case"characterData":{const e=r.target.textContent;Sh(r.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||e===r.oldValue||this.texts.push({value:lh(r.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&e?this.maskTextFn?this.maskTextFn(e,bh(r.target)):e.replace(/[\S]/g,"*"):e,node:r.target});break}case"attributes":{const c=r.target;let e=r.attributeName,t=r.target.getAttribute(e);var o,i;if("value"===e&&(i=Pf(c),o=c.tagName,t=$f(c,o,i),i=Mf({maskInputOptions:this.maskInputOptions,tagName:o,type:i}),t=Of({isMasked:lh(r.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,i),element:c,value:t,maskInputFn:this.maskInputFn})),Sh(r.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===r.oldValue)return;let n=this.attributeMap.get(r.target);
1if("IFRAME"===c.tagName&&"src"===e&&!this.keepIframeSrcFn(t)){if(jh(c))return;e="rr_src"}if(n||(n={node:r.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(n),this.attributeMap.set(r.target,n)),"type"===e&&"INPUT"===c.tagName&&"password"===(r.oldValue||"").toLowerCase()&&c.setAttribute("data-rr-is-password","true"),!sh(c.tagName,e)&&(n.attributes[e]=ih(this.doc,Df(c.tagName),Df(e),t,c,this.maskAttributeFn),"style"===e)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(r){this.unattachedDoc=this.doc}const l=this.unattachedDoc.createElement("span");r.oldValue&&l.setAttribute("style",r.oldValue);for(const r of Array.from(c.style)){var s=c.style.getPropertyValue(r),a=c.style.getPropertyPriority(r);s!==l.style.getPropertyValue(r)||a!==l.style.getPropertyPriority(r)?n.styleDiff[r]=""===a?s:[s,a]:n._unchangedStyles[r]=[s,a]}for(const r of Array.from(l.style))""===c.style.getPropertyValue(r)&&(n.styleDiff[r]=!1)}break}case"childList":if(Sh(r.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;r.addedNodes.forEach(e=>this.genAdds(e,r.target)),r.removedNodes.forEach(e=>{var t=this.mirror.getId(e),n=Ef(r.target)?this.mirror.getId(r.target.host):this.mirror.getId(r.target);Sh(r.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||wh(e,this.mirror)||-1===this.mirror.getId(e)||(this.addedSet.has(e)?(Hh(this.addedSet,e),this.droppedSet.add(e)):this.addedSet.has(r.target)&&-1===t||function e(t,n){if(Ef(t))return!1;var r=n.getId(t);return!n.has(r)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||e(t.parentNode,n))}(r.target,this.mirror)||(this.movedSet.has(e)&&this.movedMap[qh(t,n)]?Hh(this.movedSet,e):this.removes.push({parentId:n,id:t,isShadow:!(!Ef(r.target)||!Cf(r.target))||void 0})),this.mapRemoves.push(e))})}},this.genAdds=(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!this.addedSet.has(t)&&!this.movedSet.has(t)){if(this.mirror.hasNode(t)){if(wh(t,this.mirror))return;this.movedSet.add(t);let e=null;n&&this.mirror.hasNode(n)&&(e=this.mirror.getId(n)),e&&-1!==e&&(this.movedMap[qh(this.mirror.getId(t),e)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);Sh(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes&&t.childNodes.forEach(e=>this.genAdds(e)),Eh(t)&&t.shadowRoot.childNodes.forEach(e=>{this.processedNodeManager.add(e,this),this.genAdds(e,t)}))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager","ignoreCSSAttributes"].forEach(e=>{this[e]=t[e]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function Hh(t,e){t.delete(e),e.childNodes?.forEach(e=>Hh(t,e))}function Wh(e,t,n){return 0!==e.length&&function(e,t,n){let r=t.parentNode;for(;r;){const t=n.getId(r);if(e.some(e=>e.id===t))return 1;r=r.parentNode}}(e,t,n)}function zh(e,t){return 0!==e.size&&function e(t,n){const r=n["parentNode"];return!!r&&(!!t.has(r)||e(t,r))}(e,t)}let Vh;const Jh=t=>Vh?(...e)=>{try{return t(...e)}catch(e){if(Vh&&!0===Vh(e))return()=>{};throw e}}:t,Gh=[];function Kh(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function Yh(t,e){const n=new Uh;Gh.push(n),n.init(t);let r=window.MutationObserver||window.__rrMutationObserver;var o=window?.Zone?.__symbol__?.("MutationObserver");o&&window[o]&&(r=window[o]);const i=new r(Jh(e=>{t.onMutation&&!1===t.onMutation(e)||n.processMutations.bind(n)(e)}));return i.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function Xh({scrollCb:n,doc:r,mirror:o,blockClass:i,blockSelector:s,unblockSelector:a,sampling:e}){return ph("scroll",Jh(hh(Jh(e=>{var t=Kh(e);if(t&&!Sh(t,i,s,a,!0)){e=o.getId(t);if(t===r&&r.defaultView){const o=yh(r.defaultView);n({id:e,x:o.left,y:o.top})}else n({id:e,x:t.scrollLeft,y:t.scrollTop})}}),e.scroll||100)),r)}const Qh=["INPUT","TEXTAREA","SELECT"],Zh=new WeakMap;function em({inputCb:r,doc:u,mirror:o,blockClass:e,blockSelector:n,unblockSelector:d,ignoreClass:p,ignoreSelector:f,maskInputOptions:h,maskInputFn:m,sampling:t,userTriggeredOnInput:g,maskTextClass:y,unmaskTextClass:v,maskTextSelector:_,unmaskTextSelector:b}){function i(t){let r=Kh(t);const o=t.isTrusted,i=r&&Nf(r.tagName);if("OPTION"===i&&(r=r.parentElement),r&&i&&!(Qh.indexOf(i)<0)&&!Sh(r,e,n,d,!0)){const s=r;if(!(s.classList.contains(p)||f&&s.matches(f))){const a=Pf(r);let e=$f(s,i,a),n=!1;const c=Mf({maskInputOptions:h,tagName:i,type:a}),l=lh(r,y,_,v,b,c);"radio"!==a&&"checkbox"!==a||(n=r.checked),e=Of({isMasked:l,element:r,value:e,maskInputFn:m}),S(r,g?{text:e,isChecked:n,userTriggered:o}:{text:e,isChecked:n});t=r.name;"radio"===a&&t&&n&&u.querySelectorAll(`input[type="radio"][name="${t}
1"]`).forEach(e=>{var t;e!==r&&(t=Of({isMasked:l,element:e,value:$f(e,i,a),maskInputFn:m}),S(e,g?{text:t,isChecked:!n,userTriggered:!1}:{text:t,isChecked:!n}))})}}}function S(e,t){const n=Zh.get(e);if(!n||n.text!==t.text||n.isChecked!==t.isChecked){Zh.set(e,t);const n=o.getId(e);Jh(r)({...t,id:n})}}const s=("last"===t.input?["change"]:["input","change"]).map(e=>ph(e,Jh(i),u)),a=u.defaultView;if(!a)return()=>{s.forEach(e=>e())};const c=a.Object.getOwnPropertyDescriptor(a.HTMLInputElement.prototype,"value"),l=[[a.HTMLInputElement.prototype,"value"],[a.HTMLInputElement.prototype,"checked"],[a.HTMLSelectElement.prototype,"value"],[a.HTMLTextAreaElement.prototype,"value"],[a.HTMLSelectElement.prototype,"selectedIndex"],[a.HTMLOptionElement.prototype,"selected"]];return c&&c.set&&s.push(...l.map(e=>function e(t,n,r,o,i=window){const s=i.Object.getOwnPropertyDescriptor(t,n);return i.Object.defineProperty(t,n,o?r:{set(e){Oh(()=>{r.set.call(this,e)},0),s&&s.set&&s.set.call(this,e)}}),()=>e(t,n,s||{},!0)}(e[0],e[1],{set(){Jh(i)({target:this,isTrusted:!1})}},!1,a))),Jh(()=>{s.forEach(e=>e())})}function tm(e){return t=e,n=[],im("CSSGroupingRule")&&t.parentRule instanceof CSSGroupingRule||im("CSSMediaRule")&&t.parentRule instanceof CSSMediaRule||im("CSSSupportsRule")&&t.parentRule instanceof CSSSupportsRule||im("CSSConditionRule")&&t.parentRule instanceof CSSConditionRule?(e=Array.from(t.parentRule.cssRules).indexOf(t),n.unshift(e)):t.parentStyleSheet&&(t=Array.from(t.parentStyleSheet.cssRules).indexOf(t),n.unshift(t)),n;var t,n}function nm(e,t,n){let r,o;return e?(e.ownerNode?r=t.getId(e.ownerNode):o=n.getId(e),{styleId:o,id:r}):{}}function rm({mirror:e,stylesheetManager:n},t){let r;r="#document"===t.nodeName?e.getId(t):e.getId(t.host);const o="#document"===t.nodeName?t.defaultView?.Document:t.ownerDocument?.defaultView?.ShadowRoot,i=o?.prototype?Object.getOwnPropertyDescriptor(o?.prototype,"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&o&&i?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get(){return i.get?.call(this)},set(e){var t=i.set?.call(this,e);if(null!==r&&-1!==r)try{n.adoptStyleSheets(e,r)}catch(e){}return t}}),Jh(()=>{Object.defineProperty(t,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})})):()=>{}}function om(n,e=0){var t=n.doc.defaultView;if(!t)return()=>{};let r;n.recordDOM&&(r=Yh(n,n.doc));const o=function({mousemoveCb:n,sampling:e,doc:t,mirror:o}){if(!1===e.mousemove)return()=>{};var r="number"==typeof e.mousemove?e.mousemove:50,e="number"==typeof e.mousemoveCallback?e.mousemoveCallback:500;let i,s=[];const a=hh(Jh(e=>{const t=Date.now()-i;n(s.map(e=>(e.timeOffset-=t,e)),e),s=[],i=null}),e),c=Jh(hh(Jh(e=>{var t=Kh(e),{clientX:n,clientY:r}=kh(e)?e.changedTouches[0]:e;i=i||gh(),s.push({x:n,y:r,id:o.getId(t),timeOffset:gh()-i}),a("undefined"!=typeof DragEvent&&e instanceof DragEvent?Nh.Drag:e instanceof MouseEvent?Nh.MouseMove:Nh.TouchMove)}),r,{trailing:!1})),l=[ph("mousemove",c,t),ph("touchmove",c,t),ph("drag",c,t)];return Jh(()=>{l.forEach(e=>e())})}(n),i=function({mouseInteractionCb:s,doc:r,mirror:a,blockClass:c,blockSelector:l,unblockSelector:u,sampling:e}){if(!1===e.mouseInteraction)return()=>{};const t=!0===e.mouseInteraction||void 0===e.mouseInteraction?{}:e.mouseInteraction,o=[];let d=null;return Object.keys(Lh).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==t[e]).forEach(e=>{let t=Df(e);var i,n=(i=e,n=>{var r=Kh(n);if(!Sh(r,c,l,u,!0)){let e=null,t=i;if("pointerType"in n){switch(n.pointerType){case"mouse":e=Ph.Mouse;break;case"touch":e=Ph.Touch;break;case"pen":e=Ph.Pen}e===Ph.Touch?Lh[i]===Lh.MouseDown?t="TouchStart":Lh[i]===Lh.MouseUp&&(t="TouchEnd"):Ph.Pen}else kh(n)&&(e=Ph.Touch);null!==e?(d=e,(t.startsWith("Touch")&&e===Ph.Touch||t.startsWith("Mouse")&&e===Ph.Mouse)&&(e=null)):Lh[i]===Lh.Click&&(e=d,d=null);var o=kh(n)?n.changedTouches[0]:n;o&&(n=a.getId(r),{clientX:r,clientY:o}=o,Jh(s)({type:Lh[t],id:n,x:r,y:o,...null!==e&&{pointerType:e}}))}});if(window.PointerEvent)switch(Lh[e]){case Lh.MouseDown:case Lh.MouseUp:t=t.replace("mouse","pointer");break;case Lh.TouchStart:case Lh.TouchEnd:return}o.push(ph(t,n,r))}),Jh(()=>
vendor: 4,602 bytes, line 1
1{o.forEach(e=>e())})}(n),s=Xh(n),a=function({viewportResizeCb:n},{win:e}){let r=-1,o=-1;return ph("resize",Jh(hh(Jh(()=>{var e=vh(),t=_h();r===e&&o===t||(n({width:Number(t),height:Number(e)}),r=e,o=t)}),200)),e)}(n,{win:t}),c=em(n),l=function({mediaInteractionCb:s,blockClass:a,blockSelector:c,unblockSelector:l,mirror:u,sampling:e,doc:t}){const n=Jh(i=>hh(Jh(e=>{var t,n,r,o=Kh(e);o&&!Sh(o,a,c,l,!0)&&({currentTime:t,volume:n,muted:r,playbackRate:e}=o,s({type:i,id:u.getId(o),currentTime:t,volume:n,muted:r,playbackRate:e}))}),e.media||500)),r=[ph("play",n($h.Play),t),ph("pause",n($h.Pause),t),ph("seeked",n($h.Seeked),t),ph("volumechange",n($h.VolumeChange),t),ph("ratechange",n($h.RateChange),t)];return Jh(()=>{r.forEach(e=>e())})}(n);let u=()=>{},d=()=>{},p=()=>{},f=()=>{};n.recordDOM&&(u=function({styleSheetRuleCb:a,mirror:c,stylesheetManager:l},{win:e}){if(!e.CSSStyleSheet||!e.CSSStyleSheet.prototype)return()=>{};const t=e.CSSStyleSheet.prototype.insertRule;e.CSSStyleSheet.prototype.insertRule=new Proxy(t,{apply:Jh((e,t,n)=>{var[r,o]=n,{id:i,styleId:s}=nm(t,c,l.styleMirror);return(i&&-1!==i||s&&-1!==s)&&a({id:i,styleId:s,adds:[{rule:r,index:o}]}),e.apply(t,n)})});const n=e.CSSStyleSheet.prototype.deleteRule;let r,o;e.CSSStyleSheet.prototype.deleteRule=new Proxy(n,{apply:Jh((e,t,n)=>{var[r]=n,{id:o,styleId:i}=nm(t,c,l.styleMirror);return(o&&-1!==o||i&&-1!==i)&&a({id:o,styleId:i,removes:[{index:r}]}),e.apply(t,n)})}),e.CSSStyleSheet.prototype.replace&&(r=e.CSSStyleSheet.prototype.replace,e.CSSStyleSheet.prototype.replace=new Proxy(r,{apply:Jh((e,t,n)=>{var[r]=n,{id:o,styleId:i}=nm(t,c,l.styleMirror);return(o&&-1!==o||i&&-1!==i)&&a({id:o,styleId:i,replace:r}),e.apply(t,n)})})),e.CSSStyleSheet.prototype.replaceSync&&(o=e.CSSStyleSheet.prototype.replaceSync,e.CSSStyleSheet.prototype.replaceSync=new Proxy(o,{apply:Jh((e,t,n)=>{var[r]=n,{id:o,styleId:i}=nm(t,c,l.styleMirror);return(o&&-1!==o||i&&-1!==i)&&a({id:o,styleId:i,replaceSync:r}),e.apply(t,n)})}));const i={};sm("CSSGroupingRule")?i.CSSGroupingRule=e.CSSGroupingRule:(sm("CSSMediaRule")&&(i.CSSMediaRule=e.CSSMediaRule),sm("CSSConditionRule")&&(i.CSSConditionRule=e.CSSConditionRule),sm("CSSSupportsRule")&&(i.CSSSupportsRule=e.CSSSupportsRule));const s={};return Object.entries(i).forEach(([e,t])=>{s[e]={insertRule:t.prototype.insertRule,deleteRule:t.prototype.deleteRule},t.prototype.insertRule=new Proxy(s[e].insertRule,{apply:Jh((e,t,n)=>{var[r,o]=n,{id:i,styleId:s}=nm(t.parentStyleSheet,c,l.styleMirror);return(i&&-1!==i||s&&-1!==s)&&a({id:i,styleId:s,adds:[{rule:r,index:[...tm(t),o||0]}]}),e.apply(t,n)})}),t.prototype.deleteRule=new Proxy(s[e].deleteRule,{apply:Jh((e,t,n)=>{var[r]=n,{id:o,styleId:i}=nm(t.parentStyleSheet,c,l.styleMirror);return(o&&-1!==o||i&&-1!==i)&&a({id:o,styleId:i,removes:[{index:[...tm(t),r]}]}),e.apply(t,n)})})}),Jh(()=>{e.CSSStyleSheet.prototype.insertRule=t,e.CSSStyleSheet.prototype.deleteRule=n,r&&(e.CSSStyleSheet.prototype.replace=r),o&&(e.CSSStyleSheet.prototype.replaceSync=o),Object.entries(i).forEach(([e,t])=>{t.prototype.insertRule=s[e].insertRule,t.prototype.deleteRule=s[e].deleteRule})})}(n,{win:t}),d=rm(n,n.doc),p=function({styleDeclarationCb:c,mirror:l,ignoreCSSAttributes:u,stylesheetManager:d},{win:e}){const p=e.CSSStyleDeclaration.prototype.setProperty;e.CSSStyleDeclaration.prototype.setProperty=new Proxy(p,{apply:Jh((e,t,n)=>{var[r,o,i]=n;if(u.has(r))return p.apply(t,[r,o,i]);var{id:s,styleId:a}=nm(t.parentRule?.parentStyleSheet,l,d.styleMirror);return(s&&-1!==s||a&&-1!==a)&&c({id:s,styleId:a,set:{property:r,value:o,priority:i},index:tm(t.parentRule)}),e.apply(t,n)})});const s=e.CSSStyleDeclaration.prototype.removeProperty;return e.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:Jh((e,t,n)=>{var[r]=n;if(u.has(r))return s.apply(t,[r]);var{id:o,styleId:i}=nm(t.parentRule?.parentStyleSheet,l,d.styleMirror);return(o&&-1!==o||i&&-1!==i)&&c({id:o,styleId:i,remove:{property:r},index:tm(t.parentRule)}),e.apply(t,n)})}),Jh(()=>{e.CSSStyleDeclaration.prototype.setProperty=p,e.CSSStyleDeclaration.prototype.removeProperty=s})}(n,{win:t}),n.collectFonts&&(f=function({fontCb:n,doc:e}){const t=e.defaultView;if(!t)return()=>{};const r=[],o=new WeakMap,i=t.FontFace;t.FontFace=function(e,t,n){var r=new i(e,t,n);return o.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};e=mh(e.fonts,"add",function(e){return function(t){return Oh(Jh(()=>{var e=o.get(t);e&&(n(e),o.delete(t))}),0),e.apply(this,[t])}});return r.push(()=>{t.FontFace=i}),r.push(e),Jh(()=>
1{r.forEach(e=>e())})}(n)));const h=function(){const{doc:e,mirror:s,blockClass:a,blockSelector:c,unblockSelector:l,selectionCb:u}=n;let d=!0;const t=Jh(()=>{const t=e.getSelection();if(!(!t||d&&t?.isCollapsed)){d=t.isCollapsed||!1;const n=[],r=t.rangeCount||0;for(let e=0;e<r;e++){const u=t.getRangeAt(e),{startContainer:d,startOffset:r,endContainer:o,endOffset:i}=u;Sh(d,a,c,l,!0)||Sh(o,a,c,l,!0)||n.push({start:s.getId(d),startOffset:r,end:s.getId(o),endOffset:i})}u({ranges:n})}});return t(),ph("selectionchange",t)}(),m=function({doc:e,customElementCb:o}){e=e.defaultView;return e&&e.customElements?mh(e.customElements,"define",function(r){return function(e,t,n){try{o({define:{name:e}})}catch(e){}return r.apply(this,[e,t,n])}}):()=>{}}(n),g=[];for(const e of n.plugins)g.push(e.observer(e.callback,t,e.options));return Jh(()=>{Gh.forEach(e=>e.reset()),r?.disconnect(),o(),i(),s(),a(),c(),l(),u(),d(),p(),f(),h(),m(),g.forEach(e=>e())})}function im(e){return void 0!==window[e]}function sm(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class am{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){const o=n||this.getIdToRemoteIdMap(e),i=r||this.getRemoteIdToIdMap(e);let s=o.get(t);return s||(s=this.generateIdFn(),o.set(t,s),i.set(s,t)),s}getIds(t,e){const n=this.getIdToRemoteIdMap(t),r=this.getRemoteIdToIdMap(t);return e.map(e=>this.getId(t,e,n,r))}
1getRemoteId(e,t,n){const r=n||this.getRemoteIdToIdMap(e);return"number"!=typeof t?t:r.get(t)||-1}getRemoteIds(t,e){const n=this.getRemoteIdToIdMap(t);return e.map(e=>this.getRemoteId(t,e,n))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class cm{constructor(){this.crossOriginIframeMirror=new am(Vf),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class lm{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new am(Vf),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new am(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&e.contentWindow?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(e);e=jh(e);e&&e.adoptedStyleSheets&&0<e.adoptedStyleSheets.length&&this.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e))}handleMessage(e){var t=e;"rrweb"===t.data.type&&t.origin===t.data.origin&&e.source&&(!(e=this.crossOriginIframeMap.get(e.source))||(e=this.transformCrossOriginEvent(e,t.data.event))&&this.wrappedEmit(e,t.data.isCheckout))}transformCrossOriginEvent(n,e){switch(e.type){case Dh.FullSnapshot:this.crossOriginIframeMirror.reset(n),this.crossOriginIframeStyleMirror.reset(n),this.replaceIdOnNode(e.data.node,n);var t=e.data.node.id;return this.crossOriginIframeRootIdMap.set(n,t),this.patchRootIdOnNode(e.data.node,t),{timestamp:e.timestamp,type:Dh.IncrementalSnapshot,data:{source:Nh.Mutation,adds:[{parentId:this.mirror.getId(n),nextId:null,node:e.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case Dh.Meta:case Dh.Load:case Dh.DomContentLoaded:return!1;case Dh.Plugin:return e;case Dh.Custom:return this.replaceIds(e.data.payload,n,["id","parentId","previousId","nextId"]),e;case Dh.IncrementalSnapshot:switch(e.data.source){case Nh.Mutation:return e.data.adds.forEach(e=>{this.replaceIds(e,n,["parentId","nextId","previousId"]),this.replaceIdOnNode(e.node,n);var t=this.crossOriginIframeRootIdMap.get(n);t&&this.patchRootIdOnNode(e.node,t)}),e.data.removes.forEach(e=>{this.replaceIds(e,n,["parentId","id"])}),e.data.attributes.forEach(e=>{this.replaceIds(e,n,["id"])}),e.data.texts.forEach(e=>{this.replaceIds(e,n,["id"])}),e;case Nh.Drag:case Nh.TouchMove:case Nh.MouseMove:return e.data.positions.forEach(e=>{this.replaceIds(e,n,["id"])}),e;case Nh.ViewportResize:return!1;case Nh.MediaInteraction:case Nh.MouseInteraction:case Nh.Scroll:case Nh.CanvasMutation:case Nh.Input:return this.replaceIds(e.data,n,["id"]),e;case Nh.StyleSheetRule:case Nh.StyleDeclaration:return this.replaceIds(e.data,n,["id"]),this.replaceStyleIds(e.data,n,["styleId"]),e;case Nh.Font:return e;case Nh.Selection:return e.data.ranges.forEach(e=>{this.replaceIds(e,n,["start","end"])}),e;
1case Nh.AdoptedStyleSheet:return this.replaceIds(e.data,n,["id"]),this.replaceStyleIds(e.data,n,["styleIds"]),e.data.styles?.forEach(e=>{this.replaceStyleIds(e,n,["styleId"])}),e}}return!1}replace(e,t,n,r){for(const o of r)!Array.isArray(t[o])&&"number"!=typeof t[o]||(Array.isArray(t[o])?t[o]=e.getIds(n,t[o]):t[o]=e.getId(n,t[o]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===Tf.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class um{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class dm{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(Cf(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);const n=Yh({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(Xh({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),Oh(()=>{e.adoptedStyleSheets&&0<e.adoptedStyleSheets.length&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(rm({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}}observeAttachShadow(e){var t=jh(e),e=function(e){try{return e.contentWindow}catch(e){}}(e);t&&e&&this.patchAttachShadow(e.Element,t)}patchAttachShadow(e,n){const r=this;this.restoreHandlers.push(mh(e.prototype,"attachShadow",function(t){return function(e){e=t.call(this,e);return this.shadowRoot&&Ah(this)&&r.addShadowRoot(this.shadowRoot,n),e}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}for(let e="undefined"==typeof Uint8Array?[]:new Uint8Array(256),t=0;t<64;t++)e["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(t)]=t;class pm{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class fm{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new Ch,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0!==e.length){const n={id:t,styleIds:[]},r=[];for(const t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:Af(e),index:t}))})),n.styleIds.push(e)}0<r.length&&(n.styles=r),this.adoptedStyleSheetCb(n)}}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class hm{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){e=this.nodeMap.get(e);return e&&Array.from(e).some(e=>e!==t)}add(e,t){var n;this.active||(this.active=!0,n=[()=>{this.nodeMap=new WeakMap,this.active=!1}],Mh("requestAnimationFrame")(...n)),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let mm,gm;try{if(2!==Array.from([1],e=>2*e)[0]){const m=document.createElement("iframe");document.body.appendChild(m),Array.from=m.contentWindow?.Array.from||Array.from,document.body.removeChild(m)}}catch(m){console.debug("Unable to override Array.from",m)}const ym=new Rf;function vm(t={}){const{emit:r,checkoutEveryNms:o,checkoutEveryNth:i,blockClass:n="rr
1-block",blockSelector:s=null,unblockSelector:a=null,ignoreClass:c="rr-ignore",ignoreSelector:l=null,maskAllText:u=!1,maskTextClass:d="rr-mask",unmaskTextClass:p=null,maskTextSelector:f=null,unmaskTextSelector:h=null,inlineStylesheet:m=!0,maskAllInputs:e,maskInputOptions:g,slimDOMOptions:y,maskAttributeFn:v,maskInputFn:_,maskTextFn:b,maxCanvasSize:S=null,packFn:w,sampling:k={},dataURLOptions:x={},mousemoveWait:T,recordDOM:E=!0,recordCanvas:C=!1,recordCrossOriginIframes:I=!1,recordAfter:A="DOMContentLoaded"===t.recordAfter?t.recordAfter:"load",userTriggeredOnInput:R=!1,collectFonts:M=!1,inlineImages:O=!1,plugins:D,keepIframeSrcFn:N=()=>!1,ignoreCSSAttributes:L=new Set([]),errorHandler:P,onMutation:$,getCanvasManager:j}=t;Vh=P;const F=!I||window.parent===window;let B=!1;if(!F)try{window.parent.document&&(B=!1)}catch(t){B=!0}if(F&&!r)throw new Error("emit function is required");if(!F&&!B)return()=>{};void 0!==T&&void 0===k.mousemove&&(k.mousemove=T),ym.reset();const q=!0===e?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==g?g:{},U=!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===y,headMetaDescKeywords:"all"===y}:y||{};let H;!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}();let W=0;const z=e=>{for(const t of D||[])t.eventProcessor&&(e=t.eventProcessor(e));return e=w&&!B?w(e):e};mm=(e,t)=>{const n=e;if(n.timestamp=gh(),!Gh[0]?.isFrozen()||n.type===Dh.FullSnapshot||n.type===Dh.IncrementalSnapshot&&n.data.source===Nh.Mutation||Gh.forEach(e=>e.unfreeze()),F)r?.(z(n),t);else if(B){const e={type:"rrweb",event:z(n),origin:window.location.origin,isCheckout:t};window.parent.postMessage(e,"*")}if(n.type===Dh.FullSnapshot)H=n,W=0;else if(n.type===Dh.IncrementalSnapshot&&(n.data.source!==Nh.Mutation||!n.data.isAttachIframe)){W++;const e=i&&W>=i,r=o&&H&&n.timestamp-H.timestamp>o;(e||r)&&ee(!0)}};const V=e=>{mm({type:Dh.IncrementalSnapshot,data:{source:Nh.Mutation,...e}})},J=e=>mm({type:Dh.IncrementalSnapshot,data:{source:Nh.Scroll,...e}}),G=e=>mm({type:Dh.IncrementalSnapshot,data:{source:Nh.CanvasMutation,...e}}),K=new fm({mutationCb:V,adoptedStyleSheetCb:e=>mm({type:Dh.IncrementalSnapshot,data:{source:Nh.AdoptedStyleSheet,...e}})}),Y="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new cm:new lm({mirror:ym,mutationCb:V,stylesheetManager:K,recordCrossOriginIframes:I,wrappedEmit:mm});for(const t of D||[])t.getMirror&&t.getMirror({nodeMirror:ym,crossOriginIframeMirror:Y.crossOriginIframeMirror,crossOriginIframeStyleMirror:Y.crossOriginIframeStyleMirror});const X=new hm,Q=function(e,t){try{return e?e(t):new pm}catch{return console.warn("Unable to initialize CanvasManager"),new pm}}(j,{mirror:ym,win:window,mutationCb:e=>mm({type:Dh.IncrementalSnapshot,data:{source:Nh.CanvasMutation,...e}}),recordCanvas:C,blockClass:n,blockSelector:s,unblockSelector:a,maxCanvasSize:S,sampling:k.canvas,dataURLOptions:x,errorHandler:P}),Z="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new um:new dm({mutationCb:V,scrollCb:J,bypassOptions:{onMutation:$,blockClass:n,blockSelector:s,unblockSelector:a,maskAllText:u,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:m,maskInputOptions:q,dataURLOptions:x,maskAttributeFn:v,maskTextFn:b,maskInputFn:_,recordCanvas:C,inlineImages:O,sampling:k,slimDOMOptions:U,iframeManager:Y,stylesheetManager:K,canvasManager:Q,keepIframeSrcFn:N,processedNodeManager:X,ignoreCSSAttributes:L},mirror:ym}),ee=(e=!1)=>{if(E){mm({type:Dh.Meta,data:{href:window.location.href,width:_h(),height:vh()}}
1,e),K.reset(),Z.init(),Gh.forEach(e=>e.lock());e=function(e,t){var{mirror:n=new Rf,blockClass:r="rr-block",blockSelector:o=null,unblockSelector:i=null,maskAllText:s=!1,maskTextClass:a="rr-mask",unmaskTextClass:c=null,maskTextSelector:l=null,unmaskTextSelector:u=null,inlineStylesheet:d=!0,inlineImages:p=!1,recordCanvas:f=!1,maskAllInputs:h=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOM:v,dataURLOptions:_,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:k,onBlockedImageLoad:x,onStylesheetLoad:T,stylesheetLoadTimeout:E,keepIframeSrcFn:C=()=>!1,ignoreCSSAttributes:t=new Set([])}=t;return dh(e,{doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,maskAllText:s,maskTextClass:a,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===h?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===h?{}:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===v,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===v?{}:v,dataURLOptions:_,inlineImages:p,recordCanvas:f,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:k,onBlockedImageLoad:x,onStylesheetLoad:T,stylesheetLoadTimeout:E,keepIframeSrcFn:C,newlyAddedElement:!1,ignoreCSSAttributes:t})}(document,{mirror:ym,blockClass:n,blockSelector:s,unblockSelector:a,maskAllText:u,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:m,maskAllInputs:q,maskAttributeFn:v,maskInputFn:_,maskTextFn:b,slimDOM:U,dataURLOptions:x,recordCanvas:C,inlineImages:O,onSerialize:e=>{xh(e,ym)&&Y.addIframe(e),Th(e,ym)&&K.trackLinkElement(e),Eh(e)&&Z.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Y.attachIframe(e,t),e.contentWindow&&Q.addWindow(e.contentWindow),Z.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{K.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:n,height:r})=>{V({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${n}px`,height:`${r}px`}}}]})},keepIframeSrcFn:N,ignoreCSSAttributes:L});if(!e)return console.warn("Failed to snapshot the document");mm({type:Dh.FullSnapshot,data:{node:e,initialOffset:yh(window)}}),Gh.forEach(e=>e.unlock()),document.adoptedStyleSheets&&0<document.adoptedStyleSheets.length&&K.adoptStyleSheets(document.adoptedStyleSheets,ym.getId(document))}};gm=ee;try{const t=[],r=e=>Jh(om)({onMutation:$,mutationCb:V,mousemoveCb:(e,t)=>mm({type:Dh.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>mm({type:Dh.IncrementalSnapshot,data:{source:Nh.MouseInteraction,...e}}),scrollCb:J,viewportResizeCb:e=>mm({type:Dh.IncrementalSnapshot,data:{source:Nh.ViewportResize,...e}}),inputCb:e=>mm({type:Dh.IncrementalSnapshot,data:{source:Nh.Input,...e}}),mediaInteractionCb:e=>mm({type:Dh.IncrementalSnapshot,data:{source:Nh.MediaInteraction,...e}}),styleSheetRuleCb:e=>mm({type:Dh.IncrementalSnapshot,data:{source:Nh.StyleSheetRule,...e}}),styleDeclarationCb:e=>mm({type:Dh.IncrementalSnapshot,data:{source:Nh.StyleDeclaration,...e}}),canvasMutationCb:G,fontCb:e=>mm({type:Dh.IncrementalSnapshot,data:{source:Nh.Font,...e}}),selectionCb:e=>{mm({type:Dh.IncrementalSnapshot,data:{source:Nh.Selection,...e}})},customElementCb:e=>{mm({type:Dh.IncrementalSnapshot,data:{source:Nh.CustomElement,...e}})},blockClass:n,ignoreClass:c,ignoreSelector:l,maskAllText:u,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,maskInputOptions:q,inlineStylesheet:m,sampling:k,recordDOM:E,recordCanvas:C,inlineImages:O,userTriggeredOnInput:R,collectFonts:M,doc:e,maskAttributeFn:v,maskInputFn:_,maskTextFn:b,keepIframeSrcFn:N,blockSelector:s,unblockSelector:a,slimDOMOptions:U,dataURLOptions:x,mirror:ym,iframeManager:Y,stylesheetManager:K,shadowDomManager:Z,processedNodeManager:X,canvasManager:Q,ignoreCSSAttributes:L,plugins:D?.filter(e=>e.observer)?.map(t=>({observer:t.observer,options:t.options,callback:e=>mm({type:Dh.Plugin,data:{plugin:t.name,payload:e}})}))||[]},{});Y.addLoadListener(e=>{try{t.push(r(e.contentDocument))}catch(e){console.warn(e)}});const o=()=>{ee(),t.push(r(document))};return"interactive"===document.readyState||"complete"===document.readyState?o():(t.push(ph("DOMContentLoaded",()=>{mm({type:Dh.DomContentLoaded,data:{}}),"DOMContentLoaded"===A&&o()})),t.push(ph("load",()=>{mm({type:Dh.Load,data:{}}),"load"===A&&o()}
1,window))),()=>{t.forEach(e=>e()),X.destroy(),gm=void 0,Vh=void 0}}catch(t){console.warn(t)}}let _m;function bm(e){return 9999999999<e?e:1e3*e}function Sm(e){return 9999999999<e?e/1e3:e}function wm(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:Dh.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:Jn(t,10,1e3)}}),"console"===t.category)))}function km(e){return e.closest("button,a")||e}function xm(e){e=Tm(e);return e&&e instanceof Element?km(e):e}function Tm(e){return"object"==typeof e&&e&&"target"in e?e.target:e}let Em;vm.mirror=ym,vm.takeFullSnapshot=function(e){if(!gm)throw new Error("please take full snapshot after start recording");gm(e)},(_m={})[_m.NotStarted=0]="NotStarted",_m[_m.Running=1]="Running",_m[_m.Stopped=2]="Stopped";const Cm=new Set([Nh.Mutation,Nh.StyleSheetRule,Nh.StyleDeclaration,Nh.AdoptedStyleSheet,Nh.CanvasMutation,Nh.Selection,Nh.MediaInteraction]);class Im{constructor(e,t,n=wm){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){const e=(t=()=>{this._lastMutation=Rm()},Em||(Em=[],A(_f,"open",function(t){return function(...e){if(Em)try{Em.forEach(e=>e())}catch{}return t.apply(_f,e)}})),Em.push(t),()=>{var e=Em?Em.indexOf(t):-1;-1<e&&Em.splice(e,1)});let t;this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(n=t,r=this._ignoreSelector,!(!Am.includes(n.tagName)||"INPUT"===n.tagName&&!["submit","button"].includes(n.getAttribute("type")||"")||"A"===n.tagName&&(n.hasAttribute("download")||n.hasAttribute("target")&&"_self"!==n.getAttribute("target"))||r&&n.matches(r))&&e.data&&"number"==typeof e.data.nodeId&&e.timestamp){var n,r;const o={timestamp:Sm(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===o.node&&Math.abs(e.timestamp-o.timestamp)<1)||(this._clicks.push(o),1===this._clicks.length&&this._scheduleCheckClicks())}}registerMutation(e=Date.now()){this._lastMutation=Sm(e)}registerScroll(e=Date.now()){this._lastScroll=Sm(e)}registerClick(e){e=km(e);this._handleMultiClick(e)}_handleMultiClick(e){this._getClicks(e).forEach(e=>{e.clickCount++})}_getClicks(t){return this._clicks.filter(e=>e.node===t)}_checkClicks(){const t=[],n=Rm();this._clicks.forEach(e=>{!e.mutationAfter&&this._lastMutation&&(e.mutationAfter=e.timestamp<=this._lastMutation?this._lastMutation-e.timestamp:void 0),!e.scrollAfter&&this._lastScroll&&(e.scrollAfter=e.timestamp<=this._lastScroll?this._lastScroll-e.timestamp:void 0),e.timestamp+this._timeout<=n&&t.push(e)});for(const n of t){const t=this._clicks.indexOf(n);-1<t&&(this._generateBreadcrumbs(n),this._clicks.splice(t,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,o=!n&&!r,{clickCount:i,clickBreadcrumb:s}=e;if(o){const n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",o={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.slowClickDetected",data:{...s.data,url:_f.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:i||1}};this._addBreadcrumbEvent(t,o)}else if(1<i){const e={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.multiClick",data:{...s.data,url:_f.location.href,route:t.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=Iu(()=>this._checkClicks(),1e3)}}const Am=["A","BUTTON","INPUT"];function Rm(){return Date.now()/1e3}function Mm(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Om=((vt={})[vt.Document=0]="Document",vt[vt.DocumentType=1]="DocumentType",vt[vt.Element=2]="Element",vt[vt.Text=3]="Text",vt[vt.CDATA=4]="CDATA",vt[vt.Comment=5]="Comment",vt);const Dm=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function Nm(e,t){const n=vm.mirror.getId(e),r=n&&vm.mirror.getNode(n),o=r&&vm.mirror.getMeta(r),i=o&&o.type===Om.Element?o:null;return{message:t,data:i?{nodeId:n,node:{id:n,tagName:i.tagName,textContent:Array.from(i.childNodes).map(e=>
1e.type===Om.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(""),attributes:function(t){const n={};!t["data-sentry-component"]&&t["data-sentry-element"]&&(t["data-sentry-component"]=t["data-sentry-element"]);for(const r in t)if(Dm.has(r)){let e=r;"data-testid"!==r&&"data-test-id"!==r||(e="testId"),n[e]=t[r]}return n}(i.attributes)}}:{}}}const Lm={resource(e){var{entryType:t,initiatorType:n,name:r,responseEnd:o,startTime:i,decodedBodySize:s,encodedBodySize:a,responseStatus:c,transferSize:e}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:jm(i),end:jm(o),name:r,data:{size:e,statusCode:c,decodedBodySize:s,encodedBodySize:a}}},paint(e){var{duration:t,entryType:n,name:r,startTime:e}=e,e=jm(e);return{type:n,name:r,start:e,end:e+t,data:void 0}},navigation(e){var{entryType:t,name:n,decodedBodySize:r,duration:o,domComplete:i,encodedBodySize:s,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:l,loadEventStart:u,loadEventEnd:d,redirectCount:p,startTime:f,transferSize:h,type:e}=e;return 0===o?null:{type:`${t}.${e}`,start:jm(f),end:jm(i),name:n,data:{size:h,decodedBodySize:r,encodedBodySize:s,duration:o,domInteractive:l,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:u,loadEventEnd:d,domComplete:i,redirectCount:p}}}};function Pm(t,n){return({metric:e})=>{n.replayPerformanceEntries.push(t(e))}}function $m(e){const t=Lm[e.entryType];return t?t(e):null}function jm(e){return((be()||_f.performance.timeOrigin)+e)/1e3}function Fm(e){var t=e.entries[e.entries.length-1];return Um(e,"largest-contentful-paint",t?.element?[t.element]:void 0)}function Bm(e){const t=[],n=[];for(const o of e.entries)if(void 0!==o.sources){const e=[];for(const t of o.sources){var r;t.node&&(n.push(t.node),(r=vm.mirror.getId(t.node))&&e.push(r))}t.push({value:o.value,nodeIds:e.length?e:void 0})}return Um(e,"cumulative-layout-shift",n,t)}function qm(e){var t=e.entries[e.entries.length-1];return Um(e,"interaction-to-next-paint",t?.target?[t.target]:void 0)}function Um(e,t,n,r){var o=e.value,i=e.rating,e=jm(o);return{type:"web-vital",name:t,start:e,end:e,data:{value:o,size:o,rating:i,nodeIds:n?n.map(e=>vm.mirror.getId(e)):void 0,attributions:r}}}const Hm="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Wm=["log","warn","error"],zm="[Replay] ";function Vm(e,t="info"){li({category:"console",data:{logger:"replay"},level:t,message:`${zm}${e}`},{level:t})}const Jm=function(){let n=!1,r=!1;const o={exception:()=>{},infoTick:()=>{},setConfig:e=>{n=!!e.captureExceptions,r=!!e.traceInternals}};return Hm?(Wm.forEach(t=>{o[t]=(...e)=>{te[t](zm,...e),r&&Vm(e.join(""),yi(t))}}),o.exception=(e,...t)=>{t.length&&o.error&&o.error(...t),te.error(zm,e),n?yo(e,{mechanism:{handled:!0,type:"auto.function.replay.debug"}}):r&&Vm(e,"error")},o.infoTick=(...e)=>{te.log(zm,...e),r&&setTimeout(()=>Vm(e[0]),0)}):Wm.forEach(e=>{o[e]=()=>{}}),o}();class Gm extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class Km{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return 0<this.events.length}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){var t=JSON.stringify(e).length;if(this._totalSize+=t,2e7<this._totalSize)throw new Gm;this.events.push(e)}finish(){return new Promise(e=>{var t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let e=null;for(var{timestamp:t}of this.events)(null===e||t<e)&&(e=t);return null===e?e:bm(e)}}class Ym{constructor(e){Ym.prototype.__init.call(this),this._worker=e,this._id=0,this._pending=new Map,this._worker.addEventListener("message",this._onMessage)}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((t,n)=>{this._worker.addEventListener("message",({data:e})=>{e.success?t():(Hm&&Jm.warn("Received worker message with unsuccessful status",e),n(new Error("Received worker message with unsuccessful status")))},{once:!0}),this._worker.addEventListener("error",e=>{Hm&&Jm.warn("Failed to load Replay compression worker",e),n(new Error(`Failed to load Replay compression worker: ${e instanceof ErrorEvent&&e.message?e.message:"Unknown error. This can happen due to CSP policy restrictions, network issues, or the worker script failing to load."}`))},{once:!0})})),this._ensureReadyPromise}destroy(){Hm&&Jm.log("Destroying compression worker"),this._worker.removeEventListener("message",this._onMessage),this._pending.forEach(e
1=>e.reject(new Error("Worker destroyed"))),this._pending.clear(),this._worker.terminate()}postMessage(n,r){const o=this._getAndIncrementId();return new Promise((e,t)=>{this._pending.set(o,{method:n,resolve:e,reject:t});try{this._worker.postMessage({id:o,method:n,arg:r})}catch(e){this._pending.delete(o),t(e)}})}__init(){this._onMessage=({data:e})=>{if("number"==typeof e.id){const t=this._pending.get(e.id);if(t&&t.method===e.method){if(this._pending.delete(e.id),!e.success)return Hm&&Jm.error("Error in compression worker: ",e.response),void t.reject(new Error("Error in compression worker"));t.resolve(e.response)}}}}_getAndIncrementId(){return this._id++}}class Xm{constructor(e){this._worker=new Ym(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){var t=bm(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);e=JSON.stringify(e);return this._totalSize+=e.length,2e7<this._totalSize?Promise.reject(new Gm):this._sendEventToWorker(e)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{Hm&&Jm.exception(e,'Sending "clear" message to worker failed',e)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){var e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class Qm{constructor(e){this._fallback=new Km,this._compression=new Xm(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return void(Hm&&Jm.exception(e,"Failed to load the compression worker, falling back to simple buffer"))}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t,waitForCheckout:n}=this._fallback,r=[];for(const t of e)r.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=n,this._used=this._compression;try{await Promise.all(r),this._fallback.clear()}catch(e){Hm&&Jm.exception(e,"Failed to add events when switching buffers.")}}}function Zm(){try{return"sessionStorage"in _f&&_f.sessionStorage}catch{return}}function eg(e){return void 0!==e&&Math.random()<e}function tg(e){if(Zm())try{_f.sessionStorage.setItem(bf,JSON.stringify(e))}catch{}}function ng(e){var t=Date.now();return{id:e.id||le(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId,dirty:e.dirty||!1}}function rg({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){r=ng({sampled:(t=t,eg(e)?"session":!!t&&"buffer"),previousSessionId:r});return n&&tg(r),r}function og(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function ig(e,{sessionIdleExpire:t,maxReplayDuration:n}){return[r,{maxReplayDuration:o,sessionIdleExpire:t,targetTime:n=Date.now()}]=[e,{sessionIdleExpire:t,maxReplayDuration:n}],(og(r.started,o,n)||og(r.lastActivity,t,n))&&("buffer"!==e.sampled||0!==e.segmentId);var r,o}function sg({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){var o=r.stickySession&&function(){if(!Zm())return null;try{var e=_f.sessionStorage.getItem(bf);
1if(!e)return null;var t=JSON.parse(e);return Hm&&Jm.infoTick("Loading existing session"),ng(t)}catch{return null}}();return o?ig(o,{sessionIdleExpire:e,maxReplayDuration:t})?(Hm&&Jm.infoTick("Session in sessionStorage is expired, creating new one..."),rg(r,{previousSessionId:o.id})):o:(Hm&&Jm.infoTick("Creating new session"),rg(r,{previousSessionId:n}))}function ag(e,t,n){return lg(e,t)&&(cg(e,t,n),1)}async function cg(e,t,n){const r=e["eventBuffer"];if(!r||r.waitForCheckout&&!n)return null;var o="buffer"===e.recordingMode;try{n&&o&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);var i=function(e,t){try{if("function"==typeof t&&e.type===Dh.Custom)return t(e)}catch(e){return Hm&&Jm.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}(t,e.getOptions().beforeAddRecordingEvent);return i?r.addEvent(i):void 0}catch(t){const n=t&&t instanceof Gm,s=n?"eventBufferOverflow":"eventBufferError",a=He();if(a){const e=n?"buffer_overflow":"internal_sdk_error";a.recordDroppedEvent(e,"replay")}if(n&&o)return r.clear(),r.waitForCheckout=!0,null;e.handleException(t),await e.stop({reason:s})}}function lg(e,t){if(e.eventBuffer&&!e.isPaused()&&e.isEnabled()){t=bm(t.timestamp);return!(t+e.timeouts.sessionIdlePause<Date.now()||t>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration&&(Hm&&Jm.infoTick(`Skipping event with timestamp ${t} because it is after maxReplayDuration`),1))}}function ug(e){return!e.type}function dg(e){return"transaction"===e.type}function pg(e){return"feedback"===e.type}function fg(e){return e.category}function hg(){const e=je().getPropagationContext().dsc;e&&delete e.replay_id;var t=no();t&&delete lo(t).replay_id}function mg(i,e){return e.map(({type:e,start:t,end:n,name:r,data:o})=>{o=i.throttledAddEvent({type:Dh.Custom,timestamp:t,data:{tag:"performanceSpan",payload:{op:e,description:r,startTimestamp:t,endTimestamp:n,data:o}}});return"string"==typeof o?Promise.resolve(null):o})}function gg(e,t){var n,r;e.isEnabled()&&null!==t&&(n=e,r=t.name,(Hm&&n.getOptions()._experiments.traceInternals||!Qd(r,He()))&&e.addUpdate(()=>(mg(e,[t]),!0)))}function yg(e){if(e){const n=new TextEncoder;try{if("string"==typeof e)return n.encode(e).length;if(e instanceof URLSearchParams)return n.encode(e.toString()).length;if(e instanceof FormData){var t=lp(e);return n.encode(t).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}}function vg(e){if(e){e=parseInt(e,10);return isNaN(e)?void 0:e}}function _g(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function bg(e,t){if(!t)return null;var{startTimestamp:n,endTimestamp:r,url:o,method:i,statusCode:s,request:a,response:t}=t;return{type:e,start:n/1e3,end:r/1e3,name:o,data:{method:i,statusCode:s,request:a,response:t}}}function Sg(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function wg(e,t,n){if(t||0!==Object.keys(e).length){if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:o,warnings:i}=function(e){if(!e||"string"!=typeof e)return{body:e};const t=e.length>wf,n=(r=e[0],o=e[e.length-1],"["===r&&"]"===o||"{"===r&&"}"===o);var r,o;if(t){const t=e.slice(0,wf);return n?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}(n);return r.body=o,i?.length&&(r._meta={warnings:i}),r}}function kg(o,i){return Object.entries(o).reduce((e,[t,n])=>{var r=t.toLowerCase();return i.includes(r)&&o[t]&&(e[r]=n),e},{})}function xg(e,t){return ae(function(e,t=_f.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(_f.location.origin))return e;var n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}(e),t)}function Tg(t,e){const n={};return e.forEach(e=>{t.get(e)&&(n[e]=t.get(e))}),n}function Eg(e,t){if(!e)return{};e=e.headers;return e?e instanceof Headers?Tg(e,t):Array.isArray(e)?{}:kg(e,t):{}}function Cg(e){const t=He();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:i,networkResponseHeaders:s}=e.getOptions(),a={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:i,networkResponseHeaders:s};t&&t.on("beforeAddBreadcrumb",(e,t)=>function(e,t,i){if(t.data)try{"xhr"===t.category&&i?.xhr&&(function(e){const{xhr:t,input:n}=i;var r,o;t&&(r=yg(n),o=t.getResponseHeader("content-length")?vg(t.getResponseHeader("content-length")):function(e,t){try{return yg("json"===t&&e&&"object"==typeof e?JSON.stringify(e):e)}catch{}}(t.response,t.responseType),void 0!==r&&(e.data.request_body_size=r),void 0!==o&&(e.data.response_body_size=o))}(t),async function(e,t,n){try{var r=bg("resource.xhr",function(e,t,n){var r=Date.now(),{startTimestamp:o=r,endTimestamp:i=r,input:s,xhr:a}=t,{url:c,method:l,status_code:u=0,request_body_size:d,response_body_size:p}=e.data;if(!c)return null;if(!a||!xg(c,n.networkDetailAllowUrls)||xg(c,n.networkDetailDenyUrls))return{startTimestamp:o,endTimestamp:i,url:c,method:l,statusCode:u,request:Sg(d),response:Sg(p)};var t=a[yd],r=t?kg(t.request_headers,n.networkRequestHeaders):{},e=kg(pp(a),n.networkResponseHeaders),[t,s]=n.networkCaptureBodies?up(s,Jm):[void 0],[n,a]=n.networkCaptureBodies?function(e){const t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return function(e,t){try{if("string"==typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"==typeof e)return[JSON.stringify(e)];if(!e)return[void 0]}catch(t){return Hm&&Jm.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Hm&&Jm.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(e){t.push(e)}return Hm&&Jm.warn("Failed to get xhr response body",...t),[void 0]}(a):[void 0],t=wg(r,d,t),n=wg(e,p,n);return{startTimestamp:o,endTimestamp:i,url:c,method:l,statusCode:u,request:s?_g(t,s):t,response:a?_g(n,a):n}}
1(e,t,n));gg(n.replay,r)}catch(e){Hm&&Jm.exception(e,"Failed to capture xhr breadcrumb")}}(t,i,e)),"fetch"===t.category&&i?.response&&(function(e){const{input:t,response:n}=i,r=yg(t?dp(t):void 0),o=n?vg(n.headers.get("content-length")):void 0;void 0!==r&&(e.data.request_body_size=r),void 0!==o&&(e.data.response_body_size=o)}(t),async function(e,t,n){try{var r=bg("resource.fetch",await async function(e,t,n){var r=Date.now(),{startTimestamp:o=r,endTimestamp:i=r}=t,{url:s,method:a,status_code:c=0,request_body_size:l,response_body_size:r}=e.data,e=xg(s,n.networkDetailAllowUrls)&&!xg(s,n.networkDetailDenyUrls);return{startTimestamp:o,endTimestamp:i,url:s,method:a,statusCode:c,request:e?function({networkCaptureBodies:e,networkRequestHeaders:t},n,r){t=n?(i=t,1===(o=n).length&&"string"!=typeof o[0]?Eg(o[0],i):2===o.length?Eg(o[1],i):{}):{};let o,i;if(!e)return wg(t,r,void 0);var[e,n]=up(dp(n),Jm),e=wg(t,r,e);return n?_g(e,n):e}(n,t.input,l):Sg(l),response:await async function(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,o){if(!e&&void 0!==o)return Sg(o);var i=r?Tg(r.headers,n):{};if(!r||!t&&void 0!==o)return wg(i,o,void 0);var[n,r]=await async function(e){var r,t=function(e){try{return e.clone()}catch(e){Hm&&Jm.exception(e,"Failed to clone response body")}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{const e=(r=t,await new Promise((t,n)=>{const e=Iu(()=>n(new Error("Timeout while trying to read response body")),500);!async function(){return r.text()}().then(e=>t(e),e=>n(e)).finally(()=>clearTimeout(e))}));return[e]}catch(e){return e instanceof Error&&-1<e.message.indexOf("Timeout")?(Hm&&Jm.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(Hm&&Jm.exception(e,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}(r),i=function(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:o}){try{var i=e?.length&&void 0===n?yg(e):n;return r?wg(o,i,t?e:void 0):Sg(i)}catch(e){return Hm&&Jm.exception(e,"Failed to serialize response body"),wg(o,n,void 0)}}(n,{networkCaptureBodies:t,responseBodySize:o,captureDetails:e,headers:i});return r?_g(i,r):i}(e,n,t.response,r)}}(e,t,n));gg(n.replay,r)}catch(e){Hm&&Jm.exception(e,"Failed to capture fetch breadcrumb")}}(t,i,e))}catch(e){Hm&&Jm.exception(e,"Error when enriching network breadcrumb")}}(a,e,t))}catch{}}const Ig=L.navigator;function Ag(i){let t=!1;return(r,e)=>{if(i.checkAndHandleExpiredSession()){const o=e||!t;t=!0,function(e){const t=e.data;if(e.type===Dh.IncrementalSnapshot&&t&&"object"==typeof t&&"source"in t&&t.source===Nh.Mutation&&"attributes"in t&&Array.isArray(t.attributes))for(const e of t.attributes){const t=vm.mirror.getNode(e.id),n=t&&vm.mirror.getMeta(t);if(n?.type===Om.Element)for(const[t,r]of Object.entries(e.attributes))null===r?delete n.attributes[t]:n.attributes[t]=r}}(r),i.clickDetector&&function(e,t){try{if(3!==t.type)return;var n,r,o,i=t.data["source"];Cm.has(i)&&e.registerMutation(t.timestamp),i===Nh.Scroll&&e.registerScroll(t.timestamp),t.data.source===Nh.MouseInteraction&&({type:n,id:r}=t.data,(o=vm.mirror.getNode(r))instanceof HTMLElement&&n===Lh.Click&&e.registerClick(o))}catch{}}(i.clickDetector,r),i.addUpdate(()=>{if("buffer"===i.recordingMode&&o&&i.setInitialState(),!ag(i,r,o))return!0;if(!o)return!1;const e=i.session;if(t=i,o&&0===t.session?.segmentId&&ag(t,(t=(n=t).getOptions(),{type:Dh.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:n.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!n.eventBuffer&&"worker"===n.eventBuffer.type,networkDetailHasUrls:0<t.networkDetailAllowUrls.length,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:0<t.networkRequestHeaders.length,networkResponseHasHeaders:0<t.networkResponseHeaders.length}}}),!1),"buffer"===i.recordingMode&&e&&i.eventBuffer&&!e.dirty){const r=i.eventBuffer.getEarliestTimestamp();r&&(Hm&&Jm.log(`Updating session start time to earliest event in buffer to ${new Date(r)}`),e.started=r,i.getOptions().stickySession&&tg(e))}var t,n;return e?.previousSessionId||"session"===i.recordingMode&&i.flush(),!0})}else Hm&&Jm.warn("Received replay event after session expired.")}}
1class Rg extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class Mg extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}class Og extends Error{constructor(){super("Session is too long, not sending replay")}}async function Dg(n,r={count:0,interval:5e3}){const{recordingData:e,onError:t}=n;if(e.length)try{return await async function({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:o,session:i}){const s=function({recordingData:e,headers:t}){let n;t=`${JSON.stringify(t)}\n`;if("string"==typeof e)n=`${t}${e}`;else{const r=(new TextEncoder).encode(t);n=new Uint8Array(r.length+e.length),n.set(r),n.set(e,r.length)}return n}({recordingData:e,headers:{segment_id:n}}),{urls:a,errorIds:c,traceIds:l,initialTimestamp:u}=r,d=He(),p=je(),f=d?.getTransport(),h=d?.getDsn();if(!(d&&f&&h&&i.sampled))return Promise.resolve({});const m={type:"replay_event",replay_start_timestamp:u/1e3,timestamp:o/1e3,error_ids:c,trace_ids:l,urls:a,replay_id:t,segment_id:n,replay_type:i.sampled},g=await async function({client:e,scope:t,replayId:n,event:r}){n={event_id:n,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",r,n);const o=await mo(e.getOptions(),r,n,t,e,Fe());if(!o)return null;e.emit("postprocessEvent",o,n),o.platform=o.platform||"javascript";var{name:t,version:n,settings:e}=e.getSdkMetadata()?.sdk||{};return o.sdk={...o.sdk,name:t||"sentry.javascript.unknown",version:n||"0.0.0",settings:e},o}({scope:p,client:d,replayId:t,event:m});if(!g)return d.recordDroppedEvent("event_processor","replay"),Hm&&Jm.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete g.sdkProcessingMetadata;o=g,n=s,i=h,t=d.getOptions().tunnel,n=Yo(oi(o,ri(o),t,i),[[{type:"replay_event"},o],[{type:"replay_recording",length:("string"==typeof n?(new TextEncoder).encode(n):n).length},n]]);let y;try{y=await f.send(n)}catch(e){const v=new Error(Sf);try{v.cause=e}catch{}throw v}n=Wa({},y);if(Ha(n,"replay"))throw new Mg(n);if("number"==typeof y.statusCode&&(y.statusCode<200||300<=y.statusCode))throw new Rg(y.statusCode);return y}(n),!0}catch(e){if(e instanceof Rg||e instanceof Mg)throw e;if(bo("Replays",{_retryCount:r.count}),t&&t(e),3<=r.count){const n=new Error(`${Sf} - max retries exceeded`);try{n.cause=e}catch{}throw n}return r.interval*=++r.count,new Promise((e,t)=>{Iu(async()=>{try{await Dg(n,r),e(!0)}catch(e){t(e)}},r.interval)})}}const Ng="__THROTTLED";class Lg{constructor({options:e,recordingOptions:t}){var n,r;this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=(n=()=>this._flush(),r=this._options.flushMinDelay,t={maxWait:this._options.flushMaxDelay},function(e,t,n){let r,o,i;const s=n.maxWait?Math.max(n.maxWait,t):0,a=n.setTimeoutImpl||setTimeout;function c(){return l(),r=e(),r}function l(){void 0!==o&&clearTimeout(o),void 0!==i&&clearTimeout(i),o=i=void 0}function u(){return o&&clearTimeout(o),o=a(c,t),s&&void 0===i&&(i=a(c,s)),r}return u.cancel=l,u.flush=function(){return void 0!==o||void 0!==i?c():r},u}(n,r,{...t,setTimeoutImpl:Iu})),this._throttledAddEvent=function(r){const o=new Map;let i=!1;return(...e)=>{var t=Math.floor(Date.now()/1e3);if((()=>{const n=t-5;o.forEach((e,t)=>{t<n&&o.delete(t)})})(),300<=[...o.values()].reduce((e,t)=>e+t,0)){const r=i;return i=!0,r?"__SKIPPED":Ng}i=!1;var n=o.get(t)||0;return o.set(t,n+1),r(...e)}}((e,t)=>function(e,t,n){return lg(e,t)?cg(e,t,n):Promise.resolve(null)}(this,e,t));const{slowClickTimeout:o,slowClickIgnoreSelectors:i}=this.getOptions(),s=o?{threshold:Math.min(3e3,o),timeout:o,scrollTimeout:300,ignoreSelector:i?i.join(","):""}:void 0;if(s&&(this.clickDetector=new Im(this,s)),Hm){const a=e._experiments;Jm.setConfig({captureExceptions:!!a.captureExceptions,traceInternals:!!a.traceInternals})}this._handleVisibilityChange=()=>{"visible"===_f.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroun
1dTasks()},this._handleWindowBlur=()=>{var e=Mm({category:"ui.blur"});this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{var e=Mm({category:"ui.focus"});this._doChangeToForegroundTasks(e)},this._handleKeyboardEvent=e=>{var t,a;a=e,(t=this).isEnabled()&&(t.updateUserActivity(),(e=function(){var{metaKey:e,shiftKey:t,ctrlKey:n,altKey:r,key:o,target:i}=a;if(!i||"INPUT"===i.tagName||"TEXTAREA"===i.tagName||i.isContentEditable||!o)return null;var s=1===o.length;if(!(e||n||r)&&s)return null;s=$(i,{maxStringLength:200})||"<unknown>";return Mm({category:"ui.keyDown",message:s,data:{...Nm(i,s).data,metaKey:e,shiftKey:t,ctrlKey:n,altKey:r,key:o}})}())&&wm(t,e))}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return Boolean(this._canvas)}getOptions(){return this._options}handleException(e){Hm&&Jm.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){var{errorSampleRate:t,sessionSampleRate:n}=this._options,n=t<=0&&n<=0;(this._requiresManualStart=n)||(this._initializeSessionForSampling(e),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",Hm&&Jm.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording()):Hm&&Jm.exception(new Error("Unable to initialize and create session")))}start(){var e;this._isEnabled&&"session"===this.recordingMode?Hm&&Jm.log("Recording is already in progress"):this._isEnabled&&"buffer"===this.recordingMode?Hm&&Jm.log("Buffering is in progress, call `flush()` to save the replay"):(Hm&&Jm.infoTick("Starting replay in session mode"),this._updateUserActivity(),e=sg({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1}),this.session=e,this.recordingMode="session",this._initializeRecording())}startBuffering(){var e;this._isEnabled?Hm&&Jm.log("Buffering is in progress, call `flush()` to save the replay"):(Hm&&Jm.infoTick("Starting replay in buffer mode"),e=sg({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0}),this.session=e,this.recordingMode="buffer",this._initializeRecording())}startRecording(){try{var e=this._canvas;this._stopRecording=vm({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:Ag(this),.../iPhone|iPad|iPod/i.test(Ig?.userAgent??"")||/Macintosh/i.test(Ig?.userAgent??"")&&Ig?.maxTouchPoints&&1<Ig?.maxTouchPoints?{sampling:{mousemove:!1}}:{},onMutation:this._onMutationHandler.bind(this),...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(!this._isEnabled)return;this._isEnabled=!1,this.recordingMode="buffer";t=t??"manual";He()?.emit("replayEnd",{sessionId:this.session?.id,reason:t});try{Hm&&Jm.log(`Stopping Replay triggered by ${t}`),hg(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,n=this,function(){if(Zm())try{_f.sessionStorage.removeItem(bf)}catch{}}(),n.session=void 0}catch(e){this.handleException(e)}let n}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),Hm&&Jm.log("Pausing replay"))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),Hm&&Jm.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();var t=Date.now();Hm&&Jm.log("Converting buffer to session"),await this.flushImmediate();var n=this.stopRecording();e&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this.session.dirty=!1,this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){e=e();"buffer"!==this.recordingMode&&this._isEnabled&&!0!==e&&this._debouncedFlush()}triggerUserActivity(){this._updateUserActivity(),this._stopRecording?(this.checkAndHandleExpiredSession(),this._updateSessionActivity()):this._checkSession()&&this.resume()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(e){if(!e||!1!==this.session?.sampled)return this.session?.id}
1checkAndHandleExpiredSession(){if(!this._lastActivity||!og(this._lastActivity,this.timeouts.sessionIdlePause)||"session"!==this.session?.sampled)return!!this._checkSession();this.pause()}setInitialState(){var e=`${_f.location.pathname}${_f.location.hash}${_f.location.search}`,e=`${_f.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=e,this._context.initialTimestamp=Date.now(),this._context.urls.push(e)}throttledAddEvent(e,t){t=this._throttledAddEvent(e,t);if(t===Ng){const e=Mm({category:"replay.throttled"});this.addUpdate(()=>!ag(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}}))}return t}getCurrentRoute(){var e=this.lastActiveSpan||no(),t=e&&eo(e),e=(t&&Ur(t).data||{})[Gn];if(t&&e&&["route","custom"].includes(e))return Ur(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function({useCompression:e,workerUrl:t}){if(e&&window.Worker){const e=function(e){try{var t=e||("undefined"!=typeof __SENTRY_EXCLUDE_REPLAY_WORKER__&&__SENTRY_EXCLUDE_REPLAY_WORKER__?"":(r=new Blob(['
vendor: 10,329 bytes, line 1
1var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});
1']),URL.createObjectURL(r)));if(!t)return;Hm&&Jm.log(`Using compression worker${e?` from ${e}`:""}`);var n=new Worker(t);return new Qm(n)}catch(e){Hm&&Jm.exception(e,"Failed to create compression worker")}var r}(t);if(e)return e}return Hm&&Jm.log("Using simple buffer"),new Km}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.session&&He()?.emit("replayStart",{sessionId:this.session.id,recordingMode:this.recordingMode}),this.startRecording(),"session"===this.recordingMode&&this.session&&function(e){const t=je().getPropagationContext().dsc;t&&(t.replay_id=e);var n=no();n&&(lo(n).replay_id=e)}(this.session.id)}_initializeSessionForSampling(e){var t=0<this._options.errorSampleRate,t=sg({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=t}_checkSession(){if(!this.session)return!1;var e=this.session;return!ig(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"sessionExpired"}),this.initializeSampling(e.id))}_addListeners(){try{_f.document.addEventListener("visibilitychange",this._handleVisibilityChange),_f.addEventListener("blur",this._handleWindowBlur),_f.addEventListener("focus",this._handleWindowFocus),_f.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(function(r){const e=He();var n,t,i,o,a;hd((a=r,r=>{if(a.isEnabled()){var o=function(e){var{target:t,message:n}=function(e){var t="click"===e.name;let n,r=null;try{r=(t?xm:Tm)(e.event),n=$(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}(e);return Mm({category:`ui.${e.name}`,...Nm(t,n)})}(r);
1if(o){var i="click"===r.name,s=i?r.event:void 0;let e,t,n;!(i&&a.clickDetector&&s?.target)||s.altKey||s.metaKey||s.ctrlKey||s.shiftKey||(e=a.clickDetector,t=o,n=xm(r.event),e.handleClick(t,n)),wm(a,o)}}})),Sd((o=r,r=>{if(o.isEnabled()){const e=function(){var{from:e,to:t}=r,n=Date.now()/1e3;return{type:"navigation.push",start:n,end:n,name:t,data:{previous:e}}}();null!==e&&(o.getContext().urls.push(e.name),o.triggerUserActivity(),o.addUpdate(()=>(mg(o,[e]),!1)))}})),function(t){const e=He();e&&e.on("beforeAddBreadcrumb",e=>function(e,t){e.isEnabled()&&fg(t)&&((t=!fg(t=t)||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui.")?null:("console"===t.category?function(e){const t=e.data?.arguments;if(!Array.isArray(t)||0===t.length)return Mm(e);let n=!1;var r=t.map(e=>{if(!e)return e;if("string"==typeof e)return 5e3<e.length?(n=!0,`${e.slice(0,5e3)}…`):e;if("object"==typeof e)try{var t=Jn(e,7);return 5e3<JSON.stringify(t).length?(n=!0,`${JSON.stringify(t,null,2).slice(0,5e3)}…`):t}catch{}return e});return Mm({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}:Mm)(t))&&wm(e,t))}(t,e))}(r),Cg(r),Oo((i=r,Object.assign((e,t)=>{if(i.session&&ig(i.session,{maxReplayDuration:i.getOptions().maxReplayDuration,sessionIdleExpire:i.timeouts.sessionIdleExpire})&&hg(),!i.isEnabled()||i.isPaused())return e;if("replay_event"===e.type)return delete e.breadcrumbs,e;if(!ug(e)&&!dg(e)&&!pg(e))return e;if(!i.checkAndHandleExpiredSession())return hg(),e;if(pg(e))return i.flush(),e.contexts.feedback.replay_id=i.getSessionId(),r=e,(n=i).triggerUserActivity(),n.addUpdate(()=>!r.timestamp||(n.throttledAddEvent({type:Dh.Custom,timestamp:1e3*r.timestamp,data:{tag:"breadcrumb",payload:{timestamp:r.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:r.event_id}}}}),!1)),e;var n,r;if(!e.type&&e.exception?.values?.length&&t.originalException?.__rrweb__&&!i.getOptions()._experiments.captureExceptions)return Hm&&Jm.log("Ignoring error from rrweb internals",e),null;var o,t=(o=e,"buffer"===(t=i).recordingMode&&o.message!==Sf&&!(!o.exception||o.type)&&eg(t.getOptions().errorSampleRate));if(!t&&"session"!==i.recordingMode||(e.tags={...e.tags,replayId:i.getSessionId()}),t&&"buffer"===i.recordingMode&&"buffer"===i.session?.sampled){const e=i.session;e.dirty=!0,i.getOptions().stickySession&&tg(e)}return e},{id:"Replay"}))),e&&(e.on("beforeSendEvent",(t=r,n=>{t.isEnabled()&&ug(n)&&function(e){const t=n.exception?.values?.[0]?.value;"string"==typeof t&&(t.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||t.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&wm(e,Mm({category:"replay.hydrate-error",data:{url:j()}}))}(t)})),e.on("afterSendEvent",(n=r,(e,t)=>{n.isEnabled()&&(ug(e)||dg(e))&&(!(t=t.statusCode)||t<200||300<=t||(dg(e)?function(e){const t=n.getContext();e.contexts?.trace?.trace_id&&t.traceIds.size<100&&t.traceIds.add(e.contexts.trace.trace_id)}(e):function(t,e){const n=t.getContext();if(e.event_id&&n.errorIds.size<100&&n.errorIds.add(e.event_id),"buffer"===t.recordingMode&&e.tags?.replayId){const r=t.getOptions()["beforeErrorSampling"];"function"==typeof r&&!r(e)||Iu(async()=>{try{await t.sendBufferedReplayOrFlush()}catch(e){t.handleException(e)}})}}(n,e)))})),e.on("createDsc",e=>{var t=r.getSessionId();t&&r.isEnabled()&&"session"===r.recordingMode&&r.checkAndHandleExpiredSession()&&(e.replay_id=t)}),e.on("spanStart",e=>{r.lastActiveSpan=e}),e.on("spanEnd",e=>{r.lastActiveSpan=e}),e.on("beforeSendFeedback",async(e,t)=>{var n=r.getSessionId();t?.includeReplay&&r.isEnabled()&&n&&e.contexts?.feedback&&("api"===e.contexts.feedback.source&&await r.sendBufferedReplayOrFlush(),e.contexts.feedback.replay_id=n)}),e.on("openFeedbackWidget",async()=>{await r.sendBufferedReplayOrFlush()}))}(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=function(t){function n(e){t.performanceEntries.includes(e)||t.performanceEntries.push(e)}function r({entries:e}){e.forEach(n)}const o=[];
1return["navigation","paint","resource"].forEach(e=>{o.push(uf(e,r))}),o.push(cf(Pm(Fm,t)),af(Pm(Bm,t)),lf(Pm(qm,t))),()=>{o.forEach(e=>e())}}(this)}_removeListeners(){try{_f.document.removeEventListener("visibilitychange",this._handleVisibilityChange),_f.removeEventListener("blur",this._handleWindowBlur),_f.removeEventListener("focus",this._handleWindowFocus),_f.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}_doChangeToBackgroundTasks(e){this.session&&(ig(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})?hg():(e&&this._createCustomBreadcrumb(e),this.conditionalFlush()))}_doChangeToForegroundTasks(e){this.session&&(this.checkAndHandleExpiredSession()?e&&this._createCustomBreadcrumb(e):Hm&&Jm.log("Document has become active, but session has expired"))}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate(()=>{this.throttledAddEvent({type:Dh.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=(t=this.performanceEntries,t.map($m).filter(Boolean).concat(this.replayPerformanceEntries)),t;if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const t=this._context.initialTimestamp/1e3;e=e.filter(e=>e.start>=t)}return Promise.all(mg(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this;var n;e&&t&&!this._requiresManualStart&&(e.segmentId||(n=t.getEarliestTimestamp())&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n))}_popEventContext(){var e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){var e=this.getSessionId();if(this.session&&this.eventBuffer&&e){if(await this._addPerformanceEntries(),this.eventBuffer?.hasEvents&&(await async function(e){try{return Promise.all(mg(e,[function(e){var{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e;return{type:"memory",name:"memory",start:e=Date.now()/1e3,end:e,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}(_f.performance.memory)]))}catch{return[]}}(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();var t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Og;var n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession(),await Dg({replayId:e,recordingData:await this.eventBuffer.finish(),segmentId:r,eventContext:n,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(e){this.handleException(e),this.stop({reason:"sendError"});const o=He();o&&(t=e instanceof Mg?"ratelimit_backoff":e instanceof Og?"invalid":"send_error",o.recordDroppedEvent(t,"replay"))}}else Hm&&Jm.error("No session or eventBuffer found to flush.")}async _flush({force:e=!1}={}){if(this._isEnabled||e)if(this.checkAndHandleExpiredSession()){if(this.session){var t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();var r=n<this._options.minReplayDuration,t=n>this._options.maxReplayDuration+5e3;if(r||t)return Hm&&Jm.log(`Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`),void(r&&this._debouncedFlush());r=this.eventBuffer;r&&0===this.session.segmentId&&!r.hasCheckout&&Hm&&Jm.log("Flushing initial segment without checkout.");r=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,r&&this._debouncedFlush()}}}else Hm&&Jm.error("Attempting to finish replay event after session expired.")}_maybeSaveSession(){this.session&&this._options.stickySession&&tg(this.session)}_onMutationHandler(e){const r=this._options._experiments["ignoreMutations"];if(r?.length&&e.some(e=>{const t=function(e){if(!e)return null;
1try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}(e.target),n=r.join(",");return t?.matches(n)}))return!1;var t=e.length,e=this._options.mutationLimit,e=e&&e<t;if(t>this._options.mutationBreadcrumbLimit||e){const n=Mm({category:"replay.mutations",data:{count:t,limit:e}});this._createCustomBreadcrumb(n)}return!e||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}function Pg(e,t){return[...e,...t].join(",")}const $g='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',jg=["content-length","content-type","accept"],Fg=Symbol.for("sentry__originalRequestBody");let Bg=!1,qg=!1;const Ug=e=>new Hg(e);class Hg{constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:n=4999,maxReplayDuration:r=36e5,stickySession:o=!0,useCompression:i=!0,workerUrl:s,_experiments:a={},maskAllText:c=!0,maskAllInputs:l=!0,blockAllMedia:u=!0,mutationBreadcrumbLimit:d=750,mutationLimit:p=1e4,slowClickTimeout:f=7e3,slowClickIgnoreSelectors:h=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:g=[],networkCaptureBodies:y=!0,networkRequestHeaders:v=[],networkResponseHeaders:_=[],mask:b=[],maskAttributes:S=["title","placeholder","aria-label"],unmask:w=[],block:k=[],unblock:x=[],ignore:T=[],maskFn:E,beforeAddRecordingEvent:C,beforeErrorSampling:I,onError:A,attachRawBodyFromRequest:R=!1}={}){this.name="Replay";const M=([{mask:b,unmask:w,block:k,unblock:x,ignore:T}]=[{mask:b,unmask:w,block:k,unblock:x,ignore:T}],{maskTextSelector:Pg(b,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:Pg(w,[]),blockSelector:Pg(k,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not([src])"]),unblockSelector:Pg(x,[]),ignoreSelector:Pg(T,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])});if(this._recordingOptions={maskAllInputs:l,maskAllText:c,maskInputOptions:{password:!0},maskTextFn:E,maskInputFn:E,maskAttributeFn:(e,t,n)=>function({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:o,value:i}){if(o.unmaskTextSelector&&e.matches(o.unmaskTextSelector))return i;n=n.includes(t),e=r&&"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"");return n||e?i.replace(/[\S]/g,"*"):i}({maskAttributes:S,maskAllText:c,privacyOptions:M,key:e,value:t,el:n}),...M,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch{}},recordCrossOriginIframes:Boolean(a.recordCrossOriginIframes)},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,5e4),maxReplayDuration:Math.min(r,3
16e5),stickySession:o,useCompression:i,workerUrl:s,blockAllMedia:u,maskAllInputs:l,maskAllText:c,mutationBreadcrumbLimit:d,mutationLimit:p,slowClickTimeout:f,slowClickIgnoreSelectors:h,networkDetailAllowUrls:m,networkDetailDenyUrls:g,networkCaptureBodies:y,networkRequestHeaders:Wg(v),networkResponseHeaders:Wg(_),beforeAddRecordingEvent:C,beforeErrorSampling:I,onError:A,attachRawBodyFromRequest:R,_experiments:a},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${$g}`:$g,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&Ye())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Bg}set _isInitialized(e){Bg=e}afterAllSetup(e){Ye()&&!this._replay&&(this._initialOptions.attachRawBodyFromRequest&&function(){if("undefined"!=typeof Request&&!qg){const r=Request;try{var e=function(e,t){const n=new r(e,t);return null!=t?.body&&(n[Fg]=t.body),n};e.prototype=r.prototype,L.Request=e,qg=!0}catch{}}}(),this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode,reason:"manual"}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(e){if(this._replay?.isEnabled())return this._replay.getSessionId(e)}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(i){var e=function(e){const t=i.getOptions(),n={sessionSampleRate:0,errorSampleRate:0,...e},r=Ar(t.replaysSessionSampleRate),o=Ar(t.replaysOnErrorSampleRate);return null==r&&null==o&&B(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),null!=r&&(n.sessionSampleRate=r),null!=o&&(n.errorSampleRate=o),n}(this._initialOptions);this._replay=new Lg({options:e,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{const t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}}function Wg(e){return[...jg,...e.map(e=>e.toLowerCase())]}function zg(){const e=He();return e?.getIntegrationByName("Replay")}const Vg=Object.defineProperty,Jg=(e,t,n)=>((e,t,n)=>t in e?Vg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?`${t}`:t,n);function Gg(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||n<r?-1:t(e)?r:Gg(e.parentNode,t,n,r+1)}function Kg(n,r){return e=>{const t=e;if(null===t)return!1;try{if(n)if("string"==typeof n){if(t.matches(`.${n}`))return!0}else if(function(t,n){for(let e=t.classList.length;e--;){var r=t.classList[e];if(n.test(r))return 1}}(t,n))return!0;return!(!r||!t.matches(r))}catch{return!1}}}const Yg="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";vt={map:{},getId(){return console.error(Yg),-1},getNode(){return console.error(Yg),null},removeNodeFromMap(){console.error(Yg)},has(){return console.error(Yg),!1},reset(){console.error(Yg)}};function Xg(e,t,n,r,o=window){const i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(e){ry(()=>{n.set.call(this,e)},0),i&&i.set&&i.set.call(this,e)}}),()=>Xg(e,t,i||{},!0)}function Qg(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],o=n(r);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch{return()=>{}}}function Zg(t,n,r,o,i){if(t){const s=function(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}(t);if(s){const a=Kg(n,r);if(!i){const t=o&&s.matches(o);return a(s)&&!t}i=Gg(s,a);let e=-1;return!(i<0)&&(o&&(e=Gg(s,Kg(null,o))),-1<i&&e<0||i<e)}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(vt=new Proxy(vt,{get(e,t,n){return"map"===t&&console.error(Yg),Reflect.get(e,t,n)}})),Date.now().toString();const ey={};function ty(e){const t=ey[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);var o=t.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(t)}catch(e){}return ey[e]=r.bind(window)}function ny(...e){return ty("requestAnimationFrame")(...e)}
1function ry(...e){return ty("setTimeout")(...e)}var oy=((vt={})[vt["2D"]=0]="2D",vt[vt.WebGL=1]="WebGL",vt[vt.WebGL2=2]="WebGL2",vt);let iy;const sy=t=>iy?(...e)=>{try{return t(...e)}catch(e){if(iy&&!0===iy(e))return()=>{};throw e}}:t;for(var ay="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",cy="undefined"==typeof Uint8Array?[]:new Uint8Array(256),ly=0;ly<64;ly++)cy[ay.charCodeAt(ly)]=ly;const uy=new Map,dy=(t,e,n)=>{if(t&&(fy(t,e)||"object"==typeof t)){const r=function(e,t){let n=uy.get(e);return n||(n=new Map,uy.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}(n,t.constructor.name);let e=r.indexOf(t);return-1===e&&(e=r.length,r.push(t)),e}};const py=(e,t,n)=>e.map(e=>function t(o,n,r){if(o instanceof Array)return o.map(e=>t(e,n,r));if(null===o)return o;if(o instanceof Float32Array||o instanceof Float64Array||o instanceof Int32Array||o instanceof Uint32Array||o instanceof Uint8Array||o instanceof Uint16Array||o instanceof Int16Array||o instanceof Int8Array||o instanceof Uint8ClampedArray)return{rr_type:o.constructor.name,args:[Object.values(o)]};if(o instanceof ArrayBuffer)return{rr_type:o.constructor.name,base64:function(){let e,t=new Uint8Array(o),n=t.length,r="";for(e=0;e<n;e+=3)r+=ay[t[e]>>2],r+=ay[(3&t[e])<<4|t[e+1]>>4],r+=ay[(15&t[e+1])<<2|t[e+2]>>6],r+=ay[63&t[e+2]];return n%3==2?r=`${r.substring(0,r.length-1)}=`:n%3==1&&(r=`${r.substring(0,r.length-2)}==`),r}()};if(o instanceof DataView)return{rr_type:o.constructor.name,args:[t(o.buffer,n,r),o.byteOffset,o.byteLength]};if(o instanceof HTMLImageElement){const n=o.constructor.name,r=o.src;return{rr_type:n,src:r}}return o instanceof HTMLCanvasElement?{rr_type:"HTMLImageElement",src:o.toDataURL()}:o instanceof ImageData?{rr_type:o.constructor.name,args:[t(o.data,n,r),o.width,o.height]}:fy(o,n)||"object"==typeof o?{rr_type:o.constructor.name,index:dy(o,n,r)}:o}
1(e,t,n)),fy=(t,n)=>{const e=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(e=>"function"==typeof n[e]);return Boolean(e.find(e=>t instanceof n[e]))};function hy(e,r,o,i,s){const t=[];try{var n=Qg(e.HTMLCanvasElement.prototype,"getContext",function(n){return function(e,...t){if(!Zg(this,r,o,i,!0)){const n="experimental-webgl"===e?"webgl":e;if("__context"in this||(this.__context=n),s&&["webgl","webgl2"].includes(n))if(t[0]&&"object"==typeof t[0]){const n=t[0];n.preserveDrawingBuffer||(n.preserveDrawingBuffer=!0)}else t.splice(0,1,{preserveDrawingBuffer:!0})}return n.apply(this,[e,...t])}});t.push(n)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{t.forEach(e=>e())}}function my(e,r,o,i,s,a,c,l){const t=[],n=Object.getOwnPropertyNames(e);for(const c of n)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(c))try{if("function"!=typeof e[c])continue;const n=Qg(e,c,function(n){return function(...e){var t=n.apply(this,e);if(dy(t,l,this),"tagName"in this.canvas&&!Zg(this.canvas,i,s,a,!0)){const n=py(e,l,this),i={type:r,property:c,args:n};o(this.canvas,i)}return t}});t.push(n)}catch{const i=Xg(e,c,{set(e){o(this.canvas,{type:r,property:c,args:[e],setter:!0})}});t.push(i)}return t}class gy{constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.shadowDoms=new Set,this.windowsSet=new WeakSet,this.windows=[],this.restoreHandlers=[],this.frozen=!1,this.locked=!1,this.snapshotInProgressMap=new Map,this.worker=null,this.lastSnapshotTime=0,this.processMutation=(e,t)=>{(!this.rafStamps.invokeId||this.rafStamps.latestId===this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)};const{enableManualSnapshot:t,sampling:n="all",win:r,recordCanvas:o,errorHandler:i}=e;e.sampling=n,this.mutationCb=e.mutationCb,this.mirror=e.mirror,this.options=e,i&&(iy=i),(o&&"number"==typeof n||t)&&(this.worker=this.initFPSWorker()),this.addWindow(r),t||sy(()=>{o&&"all"===n&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),o&&"number"==typeof n&&this.initCanvasFPSObserver()})()}reset(){this.pendingCanvasMutations.clear(),this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,this.worker?.terminate(),this.worker=null,this.snapshotInProgressMap=new Map}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}addWindow(e){const{sampling:t="all",blockClass:n,blockSelector:r,unblockSelector:o,recordCanvas:i,enableManualSnapshot:s}=this.options;if(!this.windowsSet.has(e)){if(s)return this.windowsSet.add(e),void this.windows.push(new WeakRef(e));sy(()=>{if(i&&"all"===t&&this.initCanvasMutationObserver(e,n,r,o),i&&"number"==typeof t){const t=hy(e,n,r,o,!0);this.restoreHandlers.push(()=>{t()})}})(),this.windowsSet.add(e),this.windows.push(new WeakRef(e))}}addShadowRoot(e){this.shadowDoms.add(new WeakRef(e))}resetShadowRoots(){this.shadowDoms=new Set}snapshot(t,e){e?.skipRequestAnimationFrame?this.takeSnapshot(performance.now(),!0,t):ny(e=>this.takeSnapshot(e,!0,t))}initFPSWorker(){const e=new Worker((t=new Blob(['for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a<r;a+=3)s+=e[n[a]>>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;
1if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w?.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};']),URL.createObjectURL(t)));var t;return e.onmessage=e=>{var t,n,r=e.data,o=r["id"];this.snapshotInProgressMap.set(o,!1),"base64"in r&&({base64:t,type:n,width:e,height:r}=r,this.mutationCb({id:o,type:oy["2D"],commands:[{property:"clearRect",args:[0,0,e,r]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:t}],type:n}]},0,0,e,r]}]}))},e}initCanvasFPSObserver(){let t;if(this.windows.length||this.shadowDoms.size){const n=e=>{this.takeSnapshot(e,!1),t=ny(n)};t=ny(n),this.restoreHandlers.push(()=>{t&&cancelAnimationFrame(t)})}}initCanvasMutationObserver(e,t,n,r){const o=hy(e,t,n,r,!1),i=function(n,r,o,i,s){const e=[],t=Object.getOwnPropertyNames(r.CanvasRenderingContext2D.prototype);for(const a of t)try{if("function"!=typeof r.CanvasRenderingContext2D.prototype[a])continue;const t=Qg(r.CanvasRenderingContext2D.prototype,a,function(e){return function(...t){return Zg(this.canvas,o,i,s,!0)||ry(()=>{var e=py(t,r,this);n(this.canvas,{type:oy["2D"],property:a,args:e})},0),e.apply(this,t)}});e.push(t)}catch{const o=Xg(r.CanvasRenderingContext2D.prototype,a,{set(e){n(this.canvas,{type:oy["2D"],property:a,args:[e],setter:!0})}});e.push(o)}return()=>{e.forEach(e=>e())}}(this.processMutation.bind(this),e,t,n,r),s=function(e,t,n,r,o){const i=[];return i.push(...my(t.WebGLRenderingContext.prototype,oy.WebGL,e,n,r,o,0,t)),void 0!==t.WebGL2RenderingContext&&i.push(...my(t.WebGL2RenderingContext.prototype,oy.WebGL2,e,n,r,o,0,t)),()=>{i.forEach(e=>e())}}(this.processMutation.bind(this),e,t,n,r,this.mirror);this.restoreHandlers.push(()=>{o(),i(),s()})}getCanvasElements(t,n,r){const o=[],i=e=>{e.querySelectorAll("canvas").forEach(e=>{Zg(e,t,n,r,!0)||o.push(e)})};for(const t of this.windows){const n=t.deref();let e;try{e=n&&n.document}catch{}e&&i(e)}for(const t of this.shadowDoms){const n=t.deref();n&&i(n)}return o}takeSnapshot(e,r,t){const{sampling:n,blockClass:o,blockSelector:i,unblockSelector:s,dataURLOptions:a,maxCanvasSize:c}=this.options,l=1e3/("all"!==n&&n||2);return!(this.lastSnapshotTime&&e-this.lastSnapshotTime<l||(this.lastSnapshotTime=e,(t?[t]:this.getCanvasElements(o,i,s)).forEach(t=>{const n=this.mirror.getId(t);if(this.mirror.hasNode(t)&&t.width&&t.height&&!this.snapshotInProgressMap.get(n)){if(this.snapshotInProgressMap.set(n,!0),!r&&["webgl","webgl2"].includes(t.__context)){const r=t.getContext(t.__context);!1===r?.getContextAttributes()?.preserveDrawingBuffer&&r.clear(r.COLOR_BUFFER_BIT)}createImageBitmap(t).then(e=>{this.worker?.postMessage({id:n,bitmap:e,width:t.width,height:t.height,dataURLOptions:a,maxCanvasSize:c},[e])}).catch(e=>{sy(()=>{throw this.snapshotInProgressMap.delete(n),e})()})}}),0))}startPendingCanvasMutationFlusher(){ny(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=e=>{this.rafStamps.latestId=e,ny(t)};ny(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{var n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n)}),ny(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(!this.frozen&&!this.locked){const o=this.pendingCanvasMutations.get(e);var n,r;o&&-1!==t&&(n=o.map(e=>{const{type:t,...n}=e;return n}),r=o[0]["type"],this.mutationCb({id:t,type:r,commands:n}),this.pendingCanvasMutations.delete(e))}}}try{if(2!==Array.from([1],e=>
12*e)[0]){const m=document.createElement("iframe");document.body.appendChild(m),Array.from=m.contentWindow?.Array.from||Array.from,document.body.removeChild(m)}}catch(m){console.debug("Unable to override Array.from",m)}new class{constructor(){Jg(this,"idNodeMap",new Map),Jg(this,"nodeMetaMap",new WeakMap)}getId(e){return e?this.getMeta(e)?.id??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){var t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){var n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){var n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}},(vt={})[vt.NotStarted=0]="NotStarted",vt[vt.Running=1]="Running",vt[vt.Stopped=2]="Stopped";const yy={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}},vy=(e={})=>{const[t,n]=e.maxCanvasSize||[],r={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[t?Math.min(t,1280):1280,n?Math.min(n,1280):1280]};let o,i;const s=new Promise(e=>i=e);return{name:"ReplayCanvas",getOptions(){const{quality:e,enableManualSnapshot:t,maxCanvasSize:n}=r;return{enableManualSnapshot:t,recordCanvas:!0,getCanvasManager:e=>{e=new gy({...e,enableManualSnapshot:t,maxCanvasSize:n,errorHandler:e=>{try{"object"==typeof e&&(e.__rrweb__=!0)}catch{}}});return o=e,i(e),e},...yy[e]||yy.medium}},async snapshot(e,t){(o||await s).snapshot(e,t)}}};function _y(n,e,t,r,o){if(!n.fetchData)return;var{method:i,url:s}=n.fetchData,e=yr()&&e(s);if(n.endTimestamp){const p=n.fetchData.__span;if(!p)return;const t=r[p];return void(t&&(e&&(function(e,t){if(t.response){Tr(e,t.response.status);var n=t.response?.headers?.get("content-length");if(n){const t=parseInt(n);0<t&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:kr,message:"internal_error"});e.end()}(t,n),function(e){const t="object"==typeof o&&null!==o?o.onRequestSpanEnd:void 0;t?.(e,{headers:n.response?.headers,error:n.error})}(t)),delete r[p]))}const{spanOrigin:a="auto.http.browser",propagateTraceparent:c=!1}="object"==typeof o?o:{spanOrigin:o},l=He(),u=!!no()||!!l&&Fi(l),d=e&&u?Xi(function(e,t,n){if(e.startsWith("data:"))return{name:`${t} ${ud(e)}`,attributes:Sy(e,void 0,t,n)};var r=ad(e);return{name:`${t} ${r?function(e){if(sd(e))return e.pathname;const t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}(r):e}`,attributes:Sy(e,r,t,n)}}(s,i,a)):new Bi;if(e&&!u&&l?.recordDroppedEvent("no_parent_span","span"),n.fetchData.__span=d.spanContext().spanId,r[d.spanContext().spanId]=d,t(n.fetchData.url)){const p=n.args[0],t={...n.args[1]||{}},r=function(e,t,n,r){const o=hc({span:n,propagateTraceparent:r}),i=o["sentry-trace"],s=o.baggage,a=o.traceparent;if(i){const c=t.headers||(S(e)?e.headers:void 0);if(c){if(e=c,"undefined"!=typeof Headers&&v(e,Headers)){const l=new Headers(c);if(l.get("sentry-trace")||l.set("sentry-trace",i),r&&a&&!l.get("traceparent")&&l.set("traceparent",a),s){const t=l.get("baggage");t?by(t)||l.set("baggage",`${t},${s}`):l.set("baggage",s)}return l}if(e=c,Array.isArray(e)&&e.every(e=>Array.isArray(e)&&2===e.length&&"string"==typeof e[0])){const l=[...c];l.find(e=>"sentry-trace"===e[0])||l.push(["sentry-trace",i]),r&&a&&!l.find(e=>"traceparent"===e[0])&&l.push(["traceparent",a]);const t=c.find(e=>"baggage"===e[0]&&"string"==typeof e[1]&&by(e[1]));return s&&!t&&l.push(["baggage",s]),l}{const l="sentry-trace"in c?c["sentry-trace"]:void 0,t="traceparent"in c?c.traceparent:void 0,n="baggage"in c?c.baggage:void 0,o=n?Array.isArray(n)?[...n]:[n]:[],u=n&&(Array.isArray(n)?n.find(e=>by(e)):by(n));s&&!u&&o.push(s);const d=Object.assign({},c,{"sentry-trace":l??i,baggage:0<o.length?o.join(","):void 0});return r&&a&&!t&&(d.traceparent=a),d}}return{...o}}}
1(p,t,yr()&&u?d:void 0,c);r&&(n.args[1]=t,t.headers=r)}if(l){const p={input:n.args,response:n.response,startTimestamp:n.startTimestamp,endTimestamp:n.endTimestamp};l.emit("beforeOutgoingRequestSpan",d,p)}return d}function by(e){return"string"==typeof e&&e.split(",").some(e=>e.trim().startsWith(ir))}function Sy(e,t,n,r){const o={url:ud(e),type:"fetch","http.method":n,[Qn]:r,[Xn]:"http.client"};return t&&(sd(t)||(o["http.url"]=ud(t.href),o["server.address"]=t.host),t.search&&(o["http.query"]=t.search),t.hash&&(o["http.fragment"]=t.hash)),o}function wy(e){return"number"==typeof e&&isFinite(e)}function ky(e,t,n,{...r}){var o=Ur(e).start_timestamp;return o&&t<o&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),Zi(e,()=>{const e=Xi({startTime:t,...r});return e&&e.end(n),e})}function xy(t){const n=He();if(n){const{name:r,transaction:o,attributes:i,startTime:s}=t,{release:a,environment:c,sendDefaultPii:l}=n.getOptions(),u=n.getIntegrationByName("Replay"),d=u?.getReplayId(),p=je(),f=p.getUser(),h=void 0!==f?f.email||f.id||f.ip_address:void 0;let e;try{e=p.getScopeData().contexts.profile.profile_id}catch{}return Xi({name:r,attributes:{release:a,environment:c,user:h||void 0,profile_id:e||void 0,replay_id:d||void 0,transaction:o,"user_agent.original":Tu.navigator?.userAgent,"client.address":l?"{{auto}}":void 0,...i},startTime:s,experimental:{standalone:!0}})}}function Ty(){return Tu.addEventListener&&Tu.performance}function Ey(e){return e/1e3}function Cy(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return}}function Iy(e,t){let n,r=!1;function o(e){!r&&n&&t(e,n.spanContext().spanId,n),r=!0}var i;xp("visibilitychange",i=e=>{"pagehide"!==e.type&&"hidden"!==Tu.document?.visibilityState||o("pagehide")},{capture:!0,once:!0}),xp("pagehide",i,{capture:!0,once:!0});const s=e.on("beforeStartNavigationSpan",(e,t)=>{t?.isRedirect||(o("navigation"),s(),a())}),a=e.on("afterStartPageLoadSpan",e=>{n=e,a()})}function Ay(e){return e&&((be()||performance.timeOrigin)+e)/1e3}function Ry(e){const t={};if(null!=e.nextHopProtocol){const{name:n,version:r}=function(e){let t="unknown",n="unknown",r="";for(const o of e){if("/"===o){[t,n]=e.split("/");break}if(!isNaN(Number(o))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=o}return r===e&&(t=r),{name:t,version:n}}(e.nextHopProtocol);t["network.protocol.version"]=r,t["network.protocol.name"]=n}return be()||Ty()?.timeOrigin?(n={...t,"http.request.redirect_start":Ay(e.redirectStart),"http.request.redirect_end":Ay(e.redirectEnd),"http.request.worker_start":Ay(e.workerStart),"http.request.fetch_start":Ay(e.fetchStart),"http.request.domain_lookup_start":Ay(e.domainLookupStart),"http.request.domain_lookup_end":Ay(e.domainLookupEnd),"http.request.connect_start":Ay(e.connectStart),"http.request.secure_connection_start":Ay(e.secureConnectionStart),"http.request.connection_end":Ay(e.connectEnd),"http.request.request_start":Ay(e.requestStart),"http.request.response_start":Ay(e.responseStart),"http.request.response_end":Ay(e.responseEnd),"http.request.time_to_first_byte":null!=e.responseStart?e.responseStart/1e3:void 0},Object.fromEntries(Object.entries(n).filter(([,e])=>null!=e))):t;let n}function My(e){try{return new URL(e,$o.location.origin).href}catch{}}function Oy(e){try{return new Headers(e)}catch{}}const Dy=new WeakMap,Ny=new Map,Ly={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function Py(o,e){const{traceFetch:t,traceXHR:n,trackFetchStreamPerformance:r,shouldCreateSpanForRequest:i,enableHTTPTimings:s,tracePropagationTargets:a,onRequestSpanStart:c,onRequestSpanEnd:l}={...Ly,...e},u="function"==typeof i?i:e=>!0,d=e=>function(n,r){const o=j();if(o){let e,t;try{e=new URL(n,o),t=new URL(o).origin}catch{return!1}var i=e.origin===t;return r?ae(e.toString(),r)||i&&ae(e.pathname,r):i}{const o=!!n.match(/^\/(?!\/)/);return r?ae(n,r):o}}(e,a),p={},f=o.getOptions().propagateTraceparent;t&&(o.addEventProcessor(e=>("transaction"===e.type&&e.spans&&e.spans.forEach(e=>{var t;"http.client"!==e.op||(t=Ny.get(e.span_id))&&(e.timestamp=t/1e3,Ny.delete(e.span_id))}),e)),r&&(pi(e="fetch-body-resolved",e=>{var t;!e.response||(t=Dy.get(e.response))&&e.endTimestamp&&Ny.set(t,e.endTimestamp)}),fi(e,()=>ed(td))),Zu(e=>{const t=_y(e,u,d,p,{propagateTraceparent:f,onRequestSpanEnd:l});var n,r;e.response&&e.fetchData.__span&&Dy.set(e.response,e.fetchData.__span),t&&(r=(n=My(e.fetchData.url))?cd(n).host:void 0,t.setAttributes({"http.url":n?ud(n):void 0,"server.address":r}),s&&jy(t,o),c?.(t,{headers:e.headers}))})),n&&vd(e=>{var t=function(e,t,n,r,o,i){const s=e.xhr,a=s?.[yd];if(s&&!s.__sentry_own_request__&&a){var{url:c,method:l}=a,t=yr()&&t(c);if(!e.endTimestamp){const u=My(c),d=cd(u||c),p=ud(ld(c)),f=He(),h=!!no()||!!f&&Fi(f),m=t&&h?Xi({name:`${l} ${p}`,attributes:{url:ud(c),type:"xhr","http.method":l,"http.url":u?ud(u):void 0,"server.address":d?.host,[Qn]:"auto.http.browser",[Xn]:"http.client",...d?.search&&{"http.query":d?.search},...d?.hash&&{"http.fragment":d?.hash}}}):new Bi;return t&&!h&&f?.recordDroppedEvent("no_parent_span","span"),s.__sentry_xhr_span_id__=m.spanContext().spanId,r[s.__sentry_xhr_span_id__]=m,n(c)&&function(e){var{"sentry-trace":t,baggage:n,traceparent:r}=hc({span:yr()&&h?m:void 0,propagateTraceparent:o});t&&function(e,t,n,r){var o=e.__sentry_xhr_v3__?.request_headers;if(!o?.["sentry-trace"]&&e.setRequestHeader)try{if(e.setRequestHeader("sentry-trace",t),r&&!o?.traceparent&&e.setRequestHeader("traceparent",r),n){const t=o?.baggage;t&&t.split(",").some(e=>e.trim().startsWith("sentry-"))||e.setRequestHeader("baggage",n)}}catch{}}(e,t,n,r)}(s),f&&f.emit("beforeOutgoingRequestSpan",m,e),m}{const g=s.__sentry_xhr_span_id__;if(!g)return;const n=r[g];n&&(t&&void 0!==a.status_code&&(Tr(n,a.status_code),n.end(),i?.(n,{headers:Oy(pp(s)),error:e.error})),delete r[g])}}}(e,u,d,p,f,l);t&&(s&&jy(t,o),c?.(t,{headers:Oy(e.xhr.__sentry_xhr_v3__?.request_headers)}))})}const $y=300;function jy(n,o){const r=Ur(n).data["url"];if(!r||"string"!=typeof r)return;let i=()=>{setTimeout(s)};if(Fi(o)){const o=n.end.bind(n);n.end=e=>{const t=e??ve();let n=!1;e=()=>{n||(n=!0,setTimeout(s),o(t),clearTimeout(r))};i=e;const r=setTimeout(e,$y)}}const s=uf("resource",({entries:e})=>
1{e.forEach(e=>{var t;"resource"===(t=e).entryType&&"initiatorType"in t&&"string"==typeof t.nextHopProtocol&&("fetch"===t.initiatorType||"xmlhttprequest"===t.initiatorType)&&e.name.endsWith(r)&&(n.setAttributes(Ry(e)),i())})})}const Fy={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function By(e,t={}){const r=new Map;let n,o=!1,s="externalFinish",i=!t.disableAutoFinish;const a=[],{idleTimeout:c=Fy.idleTimeout,finalTimeout:p=Fy.finalTimeout,childSpanTimeout:l=Fy.childSpanTimeout,beforeSpanEnd:f,trimIdleSpanEndTimestamp:h=!0}=t,m=He();if(!m||!yr()){const S=new Bi;return so(S,{sample_rate:"0",sampled:"false",...lo(S)}),S}const u=je(),d=no(),g=(e=Xi(e),Te(je(),e),T&&te.log("[Tracing] Started span is an idle span"),e);function y(){n&&(clearTimeout(n),n=void 0)}function v(e){y(),n=setTimeout(()=>{!o&&0===r.size&&i&&(s="idleTimeout",g.end(e))},c)}function _(e){n=setTimeout(()=>{!o&&i&&(s="heartbeatFailed",g.end(e))},l)}function b(i){o=!0,r.clear(),a.forEach(e=>e()),Te(u,d);var e=Ur(g),t=e["start_timestamp"];if(t){e.data[Zn]||g.setAttribute(Zn,s);t=e.status;t&&"unknown"!==t||g.setStatus({code:wr}),te.log(`[Tracing] Idle span "${e.op}" finished`);const n=Zr(g).filter(e=>e!==g);let o=0;n.forEach(e=>{e.isRecording()&&(e.setStatus({code:kr,message:"cancelled"}),e.end(i),T&&te.log("[Tracing] Cancelling span since span ended early",JSON.stringify(e,void 0,2)));var{timestamp:t=0,start_timestamp:n=0}=Ur(e),r=n<=i,n=t-n<=(p+c)/1e3;if(T){const i=JSON.stringify(e,void 0,2);r?n||te.log("[Tracing] Discarding span since it finished after idle span final timeout",i):te.log("[Tracing] Discarding span since it happened after idle span was finished",i)}n&&r||(r=g,e=e,r[Yr]&&r[Yr].delete(e),o++)}),0<o&&g.setAttribute("sentry.idle_span_discarded_spans",o)}}return g.end=new Proxy(g.end,{apply(e,t,n){if(f&&f(g),!(t instanceof Bi)){const[r,...o]=n,i=Br(r||ve()),s=Zr(g).filter(e=>e!==g),a=Ur(g);if(!s.length||!h)return b(i),Reflect.apply(e,t,[i,...o]);const c=m.getOptions().ignoreSpans,l=s?.reduce((e,t)=>{t=Ur(t);return!t.timestamp||c&&ji({description:t.description,op:t.op,attributes:t.data},c)?e:e?Math.max(e,t.timestamp):t.timestamp},void 0),u=a.start_timestamp,d=Math.min(u?u+p/1e3:1/0,Math.max(u||-1/0,Math.min(i,l||1/0)));return b(d),Reflect.apply(e,t,[d,...o])}}}),a.push(m.on("spanStart",e=>{o||e===g||Ur(e).timestamp||e instanceof zi&&e.isStandaloneSpan()||Zr(g).includes(e)&&(e=e.spanContext().spanId,y(),r.set(e,!0),_(ve()+l/1e3))})),a.push(m.on("spanEnd",e=>{o||(e=e.spanContext().spanId,r.has(e)&&r.delete(e),0===r.size&&v(ve()+c/1e3))})),a.push(m.on("idleSpanEnableAutoFinish",e=>{e===g&&(i=!0,v(),r.size&&_())})),t.disableAutoFinish||v(),setTimeout(()=>{o||(g.setStatus({code:kr,message:"deadline_exceeded"}),s="finalTimeout",g.end())},p),g}function qy(e){return null!=e&&0<e&&e<=6e4}let Uy,Hy,Wy=0,zy={};function Vy({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){var r=Ty();if(r&&be()){r.mark&&Tu.performance.mark("sentry-tracing-init");const o=t?function(e){let n,r=0;if(Cy("largest-contentful-paint")){const o=cf(({metric:e})=>{var t=e.entries[e.entries.length-1];t&&qy(e.value)&&(r=e.value,n=t)},!0);Iy(e,(e,t)=>{!function(e,t,n,r){if(qy(e)){xu&&te.log(`Sending LCP span (${e})`);const o=Ey((be()||0)+(t?.startTime||0)),i=je().getScopeData().transactionName,s=t?$(t.element):"Largest contentful paint",a={[Qn]:"auto.http.browser.lcp",[Xn]:"ui.webvital.lcp",[or]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(a["lcp.element"]=$(t.element)),t.id&&(a["lcp.id"]=t.id),t.url&&(a["lcp.url"]=t.url),null!=t.loadTime&&(a["lcp.loadTime"]=t.loadTime),null!=t.renderTime&&(a["lcp.renderTime"]=t.renderTime),null!=t.size&&(a["lcp.size"]=t.size));const c=xy({name:s,transaction:i,attributes:a,startTime:o});c&&(c.addEvent("lcp",{[er]:"millisecond",[tr]:e}),c.end(o))}}(r,n,t,e),o()})}}(n):!1===t?cf(({metric:e})=>{var t=e.entries[e.entries.length-1];t&&qy(e.value)&&(zy.lcp={value:e.value,unit:"millisecond"},Uy=t)},!0):void 0,i=e?function(e){let n,r=0;if(Cy("layout-shift")){const o=af(({metric:e})=>{var t=e.entries[e.entries.length-1];t&&(r=e.value,n=t)},!0);Iy(e,(e,t)=>{!function(e,t,n,r){xu&&te.log(`Sending CLS span (${e})`);const o=t?Ey((be()||0)+t.startTime):ve(),i=je().getScopeData().transactionName,s=t?$(t.sources[0]?.node):"Layout shift",a={[Qn
1]:"auto.http.browser.cls",[Xn]:"ui.webvital.cls",[or]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t?.sources&&t.sources.forEach((e,t)=>{a[`cls.source.${t+1}`]=$(e.node)});const c=xy({name:s,transaction:i,attributes:a,startTime:o});c&&(c.addEvent("cls",{[er]:"",[tr]:e}),c.end(o))}(r,n,t,e),o()})}}(n):!1===e?af(({metric:e})=>{var t=e.entries[e.entries.length-1];t&&(zy.cls={value:e.value,unit:""},Hy=t)},!0):void 0,s=gf("ttfb",({metric:e})=>{e.entries[e.entries.length-1]&&(zy.ttfb={value:e.value,unit:"millisecond"})},hf,of);return()=>{s(),o?.(),i?.()}}return()=>{}}function Jy(e,t,n,r,o=n){var i=t["secureConnection"===n?"connectEnd":"fetch"===n?"domainLookupStart":`${n}End`],s=t[`${n}Start`];s&&i&&ky(e,r+s/1e3,r+i/1e3,{op:`browser.${o}`,name:t.name,attributes:{[Qn]:"auto.ui.browser.metrics",..."redirect"===n&&null!=t.redirectCount?{"http.redirect_count":t.redirectCount}:{}}})}const Gy=[],Ky=new Map,Yy=new Map,Xy={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"},Qy=({metric:t})=>{if(null!=t.value){var e=t.value/1e3;if(!(60<e)){var n=t.entries.find(e=>e.duration===t.value&&Xy[e.name]);if(n){const r=n["interactionId"],o=Xy[n.name],i=Ey(be()+n.startTime),s=no(),a=s?eo(s):void 0,c=null!=r?Ky.get(r):void 0,l=c?.span||a,u=l?Ur(l).description:je().getScopeData().transactionName,d=xy({name:c?.elementName||$(n.target),transaction:u,attributes:{[Qn]:"auto.http.browser.inp",[Xn]:`ui.interaction.${o}`,[or]:n.duration},startTime:i});d&&(d.addEvent("inp",{[er]:"millisecond",[tr]:t.value}),d.end(i+e))}}}};function Zy(e){const{name:t,op:n,origin:r,metricName:o,value:i,attributes:s,parentSpan:a,reportEvent:c,startTime:l,endTime:u}=e,d=je().getScopeData().transactionName,p={[Qn]:r,[Xn]:n,[or]:0,[`browser.web_vital.${o}.value`]:i,"sentry.transaction":d,"user_agent.original":Tu.navigator?.userAgent,...s};a&&"pageload"===Hr(a).attributes?.[Xn]&&(p["sentry.pageload.span_id"]=a.spanContext().spanId),c&&(p[`browser.web_vital.${o}.report_event`]=c);const f=Xi({name:t,attributes:p,startTime:l,parentSpan:a});f&&f.end(u??l)}const ev="sentry_previous_trace";function tv(e){return 1===e.traceFlags}const nv=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i;function rv(){var e=$o.navigator;return!!e?.userAgent&&nv.test(e.userAgent)}const ov={...Fy,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...Ly},iv=(e={})=>{"enableElementTiming"in e&&B(()=>{console.warn("[Sentry] `enableElementTiming` is deprecated and no longer has any effect. Use the standalone `elementTimingIntegration` instead.")});const l={name:void 0,source:void 0},u=$o.document,{enableInp:t,enableLongTask:n,enableLongAnimationFrame:r,_experiments:{enableInteractions:a,enableStandaloneClsSpans:d,enableStandaloneLcpSpans:p},beforeStartSpan:f,idleTimeout:h,finalTimeout:m,childSpanTimeout:g,markBackgroundSpan:o,traceFetch:c,traceXHR:y,trackFetchStreamPerformance:v,shouldCreateSpanForRequest:_,enableHTTPTimings:b,ignoreResourceSpans:S,ignorePerformanceApiSpans:w,instrumentPageLoad:k,instrumentNavigation:x,detectRedirects:T,linkPreviousTrace:E,consistentTraceSampling:C,enableReportPageLoaded:I,onRequestSpanStart:A,onRequestSpanEnd:R}={...ov,...e},M=rv();let O,D,N;function s(o,e,t=!0){const i="pageload"===e.op,n=e.name,r=f?f(e):e,s=r.attributes||{};if(n!==r.name&&(s[Gn]="custom",r.attributes=s),t){l.name=r.name,l.source=s[Gn];const c=By(r,{idleTimeout:h,finalTimeout:m,childSpanTimeout:g,disableAutoFinish:i,beforeSpanEnd:e=>{O?.();var t=Fi(o);(function(p,e){const t=Ty(),n=be();if(t?.getEntries&&n){const{spanStreamingEnabled:c,ignorePerformanceApiSpans:f,ignoreResourceSpans:h,recordClsOnPageloadSpan:l,recordLcpOnPageloadSpan:u}=e,m=n/1e3,d=t.getEntries(),{op:g,start_timestamp:y}=Ur(p);
1if(d.slice(Wy).forEach(e=>{var t,n,r,o,i,s,a,c,l=e.startTime/1e3,u=Math.max(0,e.duration)/1e3;if(!("navigation"===g&&y&&m+l<y))switch(e.entryType){case"navigation":t=p,n=e,r=m,["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(e=>{Jy(t,n,e,r)}),Jy(t,n,"secureConnection",r,"TLS/SSL"),Jy(t,n,"fetch",r,"cache"),Jy(t,n,"domainLookup",r,"DNS"),o=t,s=r+(i=n).requestStart/1e3,a=r+i.responseEnd/1e3,c=r+i.responseStart/1e3,i.responseEnd&&(ky(o,s,a,{op:"browser.request",name:i.name,attributes:{[Qn]:"auto.ui.browser.metrics"}}),ky(o,c,a,{op:"browser.response",name:i.name,attributes:{[Qn]:"auto.ui.browser.metrics"}}));break;case"mark":case"paint":case"measure":{!function(e,t,n,r,o,i){if(!(function(e){if("measure"===e?.entryType)try{return"Components ⚛"===e.detail.devtools.track}catch{}}(t)||["mark","measure"].includes(t.entryType)&&ae(t.name,i))){const s=wp(!1),a=Ey(s?s.requestStart:0),c=o+Math.max(n,a),l=o+n,u=l+r,d={[Qn]:"auto.resource.browser.metrics"};c!==l&&(d["sentry.browser.measure_happened_before_request"]=!0,d["sentry.browser.measure_start_time"]=c),function(e,t){try{var n=t.detail;if(!n)return;if("object"==typeof n){for(const[t,r]of Object.entries(n))if(r&&P(r))e[`sentry.browser.measure.detail.${t}`]=r;else if(void 0!==r)try{e[`sentry.browser.measure.detail.${t}`]=JSON.stringify(r)}catch{}return}if(P(n))return e["sentry.browser.measure.detail"]=n;try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}(d,t),c<=u&&ky(e,c,u,{name:t.name,op:t.entryType,attributes:d})}}(p,e,l,u,m,f);const d=Ap(),h=e.startTime<d.firstHiddenTime;"first-paint"===e.name&&h&&(zy.fp={value:e.startTime,unit:"millisecond"}),"first-contentful-paint"===e.name&&h&&(zy.fcp={value:e.startTime,unit:"millisecond"});break}case"resource":!function(e,t,n,r,o,i,s){if("xmlhttprequest"!==t.initiatorType&&"fetch"!==t.initiatorType){var a,c,l=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(!s?.includes(l)){const u={[Qn]:"auto.resource.browser.metrics"},d=cd(n);d.protocol&&(u["url.scheme"]=d.protocol.split(":").pop()),d.host&&(u["server.address"]=d.host),u["url.same_origin"]=n.includes(Tu.location.origin),a=t,c=u,[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]].forEach(([e,t])=>{e=a[e];null!=e&&("number"==typeof e&&e<2147483647||"string"==typeof e)&&(c[t]=e)});t={...u,...Ry(t)},r=i+r;ky(e,r,r+o,{name:n.replace(Tu.location.origin,""),op:l,attributes:t})}}}(p,e,e.name,l,u,m,h)}}),Wy=Math.max(d.length-1,0),o=p,i=c,(a=Tu.navigator)&&((s=a.connection)&&(s.effectiveType&&o.setAttribute(i?"network.connection.effective_type":"effectiveConnectionType",s.effectiveType),s.type&&o.setAttribute(i?"network.connection.type":"connectionType",s.type),wy(s.rtt)&&(zy["connection.rtt"]={value:s.rtt,unit:"millisecond"},i&&o.setAttribute("network.connection.rtt",s.rtt))),wy(a.deviceMemory)&&(i?o.setAttribute("device.memory.estimated_capacity",a.deviceMemory):o.setAttribute("deviceMemory",`${a.deviceMemory} GB`)),wy(a.hardwareConcurrency)&&(i?o.setAttribute("device.processor_count",a.hardwareConcurrency):o.setAttribute("hardwareConcurrency",String(a.hardwareConcurrency)))),"pageload"===g){if(i=zy,(o=wp(!1))&&({responseStart:a,requestStart:o}=o,o<=a&&(i["ttfb.requestTime"]={value:a-o,unit:"millisecond"})),c){const v=(e,t,n)=>{e=n??`browser.web_vital.${e}.value`;p.setAttribute(e,t),xu&&te.log("Setting web vital attribute",{[e]:t},"on pageload span")};["ttfb","fp","fcp"].forEach(e=>{zy[e]&&v(e,zy[e].value)}),zy["ttfb.requestTime"]&&v("ttfb.requestTime",zy["ttfb.requestTime"].value,"browser.web_vital.ttfb.request_time")}else l||delete zy.cls,u||delete zy.lcp,Object.entries(zy).forEach(([e,t])=>{Hi(e,t.value,t.unit)}),r=p,e=e,Uy&&e.recordLcpOnPageloadSpan&&(Uy.element&&r.setAttribute("lcp.element",$(Uy.element)),Uy.id&&r.setAttribute("lcp.id",Uy.id),Uy.url&&r.setAttribute("lcp.url",Uy.url.trim().slice(0,200)),null!=Uy.loadTime&&r.setAttribute("lcp.loadTime",Uy.loadTime),null!=Uy.renderTime&&r.setAttribute("lcp.renderTime",Uy.renderTime),r.setAttribute("lcp.size",Uy.size)),Hy?.sources&&e.recordClsOnPageloadSpan&&Hy.sources.forEac
1h((e,t)=>r.setAttribute(`cls.source.${t+1}`,$(e.node)));p.setAttribute(c?"browser.performance.time_origin":"performance.timeOrigin",m),p.setAttribute(c?"browser.performance.navigation.activation_start":"performance.activationStart",kp())}var r,o,i,s,a;Uy=void 0,Hy=void 0,zy={}}})(e,{recordClsOnPageloadSpan:!t&&!d,recordLcpOnPageloadSpan:!t&&!p,ignoreResourceSpans:S,ignorePerformanceApiSpans:w,spanStreamingEnabled:t}),pv(o,void 0);const n=je(),r=n.getPropagationContext();n.setPropagationContext({...r,traceId:c.spanContext().traceId,sampled:Jr(c),dsc:lo(e)}),i&&(N=void 0)},trimIdleSpanEndTimestamp:!I});function a(){u&&["interactive","complete"].includes(u.readyState)&&o.emit("idleSpanEnableAutoFinish",c)}i&&I&&(N=c),pv(o,c),i&&!I&&u&&(u.addEventListener("readystatechange",()=>{a()}),a())}else{const o=ge();Xi({...r,startTime:o}).end(o)}}return{name:"BrowserTracing",setup(o){if(M)Mu&&te.log("[Tracing] Skipping browserTracingIntegration setup for bot user agent.");else{Nl();var e=Fi(o);if(O=Vy({recordClsStandaloneSpans:e?void 0:d||!1,recordLcpStandaloneSpans:e?void 0:p||!1,client:o}),e?(function(e){let r,o=0;if(Cy("largest-contentful-paint")){const i=cf(({metric:e})=>{var t=e.entries[e.entries.length-1];t&&qy(e.value)&&(o=e.value,r=t)},!0);Iy(e,(e,t,n)=>{!function(e,t,n,r){if(qy(e)){xu&&te.log(`Sending LCP span (${e})`);const o=be()||0,i=o/1e3,s=Ey(o+(t?.startTime||0)),a=t?$(t.element):"Largest contentful paint",c={};t?.element&&(c["browser.web_vital.lcp.element"]=$(t.element)),t?.id&&(c["browser.web_vital.lcp.id"]=t.id),t?.url&&(c["browser.web_vital.lcp.url"]=t.url),null!=t?.loadTime&&(c["browser.web_vital.lcp.load_time"]=t.loadTime),null!=t?.renderTime&&(c["browser.web_vital.lcp.render_time"]=t.renderTime),null!=t?.size&&(c["browser.web_vital.lcp.size"]=t.size),Zy({name:a,op:"ui.webvital.lcp",origin:"auto.http.browser.lcp",metricName:"lcp",value:e,attributes:c,parentSpan:n,reportEvent:r,startTime:i,endTime:s})}}(o,r,n,e),i()})}}(o),function(e){let r,o=0;if(Cy("layout-shift")){const i=af(({metric:e})=>{var t=e.entries[e.entries.length-1];t&&(o=e.value,r=t)},!0);Iy(e,(e,t,n)=>{!function(e,t,n,r){xu&&te.log(`Sending CLS span (${e})`);const o=t?Ey((be()||0)+t.startTime):ve(),i=t?$(t.sources[0]?.node):"Layout shift",s={};t?.sources&&t.sources.forEach((e,t)=>{s[`browser.web_vital.cls.source.${t+1}`]=$(e.node)}),Zy({name:i,op:"ui.webvital.cls",origin:"auto.http.browser.cls",metricName:"cls",value:e,attributes:s,parentSpan:n,reportEvent:r,startTime:o})}(o,r,n,e),i()})}}(o),t&&Ty()&&be()&&lf(({metric:t})=>{var e;null!=t.value&&(60<t.value/1e3||(e=t.entries.find(e=>e.duration===t.value&&Xy[e.name]))&&function(e,t){xu&&te.log(`Sending INP span (${e})`);var n=Ey(be()+t.startTime),r=e/1e3,o=Xy[t.name],i=null!=(c=t.interactionId)?Ky.get(c):void 0,s=no(),a=s?eo(s):void 0,s=i?.span||a,a=s?Hr(s).name:je().getScopeData().transactionName;let c;Zy({name:i?.elementName||$(t.target),op:`ui.interaction.${o}`,origin:"auto.http.browser.inp",metricName:"inp",value:e,attributes:{[or]:t.duration,"sentry.transaction":a},startTime:n,endTime:n+r,parentSpan:s})}(t.value,e))})):t&&function(){if(Ty()&&be()){lf(Qy)}}(),r&&L.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?.includes("long-animation-frame")?new PerformanceObserver(e=>{var t=no();if(t)for(const n of e.getEntries())if(n.scripts[0]){const e=Ey(be()+n.startTime),{start_timestamp:r,op:o}=Ur(t);if(!("navigation"===o&&r&&e<r)){const i=n.duration/1e3,s={[Qn]:"auto.ui.browser.metrics"},a=n.scripts[0],{invoker:c,invokerType:l,sourceURL:u,sourceFunctionName:d,sourceCharPosition:p}=a;s["browser.script.invoker"]=c,s["browser.script.invoker_type"]=l,u&&(s["code.filepath"]=u),d&&(s["code.function"]=d),-1!==p&&(s["browser.script.source_char_position"]=p),ky(t,e,e+i,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:s})}}}).observe({type:"long-animation-frame",buffered:!0}):n&&uf("longtask",({entries:e})=>{var t=no();if(t){var{op:n,start_timestamp:r}=Ur(t);for(const o of e){const e=Ey(be()+o.startTime),i=o.duration/1e3;"navigation"===n&&r&&e<r||ky(t,e,e+i,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[Qn]:"auto.ui.browser.metrics"}})}}}),a&&uf("event",({entries:e})=>{var t=no();if(t)for(const n of e)if("click"===n.name){const e=Ey(be()+n.startTime),r=n.duration/1e3,o={name:$(n.target),op:`ui.interaction.${n.name}`,startTime:e,attributes:{[Qn]:"auto.ui.browser.metrics"}},i=F(n.target);i&&(o.attributes["ui.component_name"]=i),ky(t,e,e+r,o)}}),T&&u){const o=()=>{D=ve()};addEventListener("click",o,{capture:!0}),addEventListener("keydown",o,{capture:!0,passive:!0})}o.on("startNavigationSpan",(e,t)=>{if(He()===o){if(t?.isRedirect)return Mu&&te.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),void s(o,{op:"navigation.redirect",...e},!1);D=void 0,i(),Fe().setPropagationContext({traceId:le(),sampleRand:Math.random(),propagationSpanId:yr()?void 0:ke()});const n=je();n.setPropagationContext({traceId:le(),sampleRand:Math.random(),propagationSpanId:yr()?void 0:ke()}),n.setSDKProcessingMetadata({normalizedRequest:void 0}),s(o,{op:"navigation",...e,parentSpan:null,forceTransaction:!0})}}),o.on("startPageLoadSpan",(e,t={})=>
1{if(He()===o){i();const n=Mr(t.sentryTrace||cv("sentry-trace")||lv("sentry-trace"),t.baggage||cv("baggage")||lv("baggage")),r=je();r.setPropagationContext(n),yr()||(r.getPropagationContext().propagationSpanId=ke()),r.setSDKProcessingMetadata({normalizedRequest:Bo()}),s(o,{op:"pageload",...e})}}),o.on("endPageloadSpan",()=>{I&&N&&(N.setAttribute(Zn,"reportPageLoaded"),N.end())})}function i(){const e=dv(o);e&&!Ur(e).timestamp&&(Mu&&te.log(`[Tracing] Finishing current active span with op: ${Ur(e).op}`),e.setAttribute(Zn,"cancelled"),e.end())}},afterAllSetup(s){if(!M){let i=j();if("off"!==E&&function(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const r="session-storage"===t;let o=r?function(){try{var e=$o.sessionStorage?.getItem(ev);return JSON.parse(e)}catch{}}():void 0;e.on("spanStart",e=>{var t;eo(e)===e&&(t=je().getPropagationContext(),o=function(e,t,n){const r=Ur(t),o={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:function(){try{return Number(n.dsc?.sample_rate)??Number(r.data?.[Kn])}catch{return 0}}(),sampleRand:n.sampleRand};if(!e)return o;var i=e.spanContext;return i.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=3600&&(Mu&&te.log(`Adding previous_trace \`${JSON.stringify(i)}\` link to span \`${JSON.stringify({op:r.op,...t.spanContext()})}\``),t.addLink({context:i,attributes:{"sentry.link.type":"previous_trace"}}),t.setAttribute("sentry.previous_trace",`${i.traceId}-${i.spanId}-${tv(i)?1:0}`)),o)}(o,e,t),r&&function(e){try{$o.sessionStorage.setItem(ev,JSON.stringify(e))}catch(e){Mu&&te.warn("Could not store previous trace in sessionStorage",e)}}(o))});let i=!0;n&&e.on("beforeSampling",e=>{if(o){const t=je(),n=t.getPropagationContext();i&&n.parentSpanId?i=!1:(t.setPropagationContext({...n,dsc:{...n.dsc,sample_rate:String(o.sampleRate),sampled:String(tv(o.spanContext))},sampleRand:o.sampleRand}),e.parentSampled=tv(o.spanContext),e.parentSampleRate=o.sampleRate,e.spanAttributes={...e.spanAttributes,[Yn]:o.sampleRate})}})}(s,{linkPreviousTrace:E,consistentTraceSampling:C}),$o.location){if(k){const l=be();sv(s,{name:$o.location.pathname,startTime:l?l/1e3:void 0,attributes:{[Gn]:"url",[Qn]:"auto.pageload.browser"}})}x&&Sd(({to:e,from:t})=>{var n,r,o;void 0!==t||-1===i?.indexOf(e)?(i=void 0,n=ad(e),r=(o=dv(s))&&T&&(t=o,r=D,o=Ur(t),!((t=ge())-o.start_timestamp>fv||r&&t-r<=fv)),av(s,{name:n?.pathname||$o.location.pathname,attributes:{[Gn]:"url",[Qn]:"auto.navigation.browser"}},{url:e,isRedirect:r})):i=void 0})}o&&($o.document?$o.document.addEventListener("visibilitychange",()=>{const e=no();if(e){const t=eo(e);if($o.document.hidden&&t){const e="cancelled",{op:n,status:r}=Ur(t);Mu&&te.log(`[Tracing] Transaction: cancelled -> since tab moved to the background, op: ${n}`),r||t.setStatus({code:kr,message:"cancelled"}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}}):Mu&&te.warn("[Tracing] Could not set up background tab detection due to lack of global document")),a&&function(n,r,o,i,s){let a;$o.document&&addEventListener("click",()=>{var e="ui.action.click",t=dv(n);if(t){const n=Ur(t).op;if(["navigation","pageload"].includes(n))return void(Mu&&te.warn(`[Tracing] Did not create ${e} span because a pageload or navigation span is in progress.`))}a&&(a.setAttribute(Zn,"interactionInterrupted"),a.end(),a=void 0),s.name?a=By({name:s.name,op:e,attributes:{[Gn]:s.source||"url"}},{idleTimeout:r,finalTimeout:o,childSpanTimeout:i}):Mu&&te.warn(`[Tracing] Did not create ${e} transaction because _latestRouteName is missing.`)},{capture:!0})}(s,h,m,g,l),t&&function(){const e=Object.keys(Xy);function t(e){var t=e.target;if(t){t=$(t),e=Math.round(e.timeStamp);if(Yy.set(e,t),50<Yy.size){const n=Yy.keys().next().value;void 0!==n&&Yy.delete(n)}}}Ye()&&e.forEach(e=>{Tu.addEventListener(e,t,{capture:!0,passive:!0})});var n=({entries:e})=>{const t=no(),r=t&&eo(t);e.forEach(e=>{if("duration"in e){var t=e.interactionId;if(null!=t&&!Ky.has(t)){var n=e.target?$(e.target):function(){var t=Math.round(e.startTime);let n=Yy.get(t);if(!n)for(let e=-5;e<=5;e++){var r=Yy.get(t+e);if(r){n=r;break}}return n||"<unknown>"}();if(10<Gy.length){const e=Gy.shift();Ky.delete(e)}Gy.push(t),Ky.set(t,{span:r,elementName:n})}}})};uf("event",n),uf("first-input",n)}(),Py(s,{traceFetch:c,traceXHR:y,trackFetchStreamPerformance:v,tracePropagationTargets:s.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:_,enableHTTPTimings:b,onRequestSpanStart:A,onRequestSpanEnd:R})}}}};function sv(e,t,n){e.emit("startPageLoadSpan",t,n),je().setTransactionName(t.name);t=dv(e);return t&&e.emit("afterStartPageLoadSpan",t),t}function av(e,t,n){var{url:r,isRedirect:n}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:n}),e.emit("startNavigationSpan",t,{isRedirect:n});const o=je();return o.setTransactionName(t.name),r&&!n&&o.setSDKProcessingMetadata({normalizedRequest:{...Bo(),url:r}}),dv(e)}function cv(e){const t=$o.document,n=t?.querySelector(`meta[name=${e}]`);return n?.getAttribute("content")||void 0}function lv(t){const e=$o.performance?.getEntriesByType?.("navigation")[0],n=e?.serverTiming?.find(e=>e.name===t);return n?.description}const uv="_sentry_idleSpan";function dv(e){return e[uv]}function pv(e,t){R(e,uv,t)}const fv=1.5,hv=()=>({name:"ElementTiming",setup(){Ty()&&be()&&uf("element",({entries:e})=>{for(const t of e){const e=t;if(e.identifier){const n=e.identifier,r=e.name,o=e.renderTime,i=e.loadTime,s={"sentry.origin":"auto.ui.browser.element_timing","ui.element.i
1dentifier":n};r&&(s["ui.element.paint_type"]=r),e.id&&(s["ui.element.id"]=e.id),e.element&&(s["ui.element.type"]=e.element.tagName.toLowerCase()),e.url&&(s["ui.element.url"]=e.url),e.naturalWidth&&(s["ui.element.width"]=e.naturalWidth),e.naturalHeight&&(s["ui.element.height"]=e.naturalHeight),0<o&&Sl("ui.element.render_time",o,{unit:"millisecond",attributes:s}),0<i&&Sl("ui.element.load_time",i,{unit:"millisecond",attributes:s})}}})}});function mv(e=He()){e?.emit("endPageloadSpan")}function gv(e){const r=no();if(r!==e){const o=je();e.end=new Proxy(e.end,{apply(e,t,n){return Te(o,r),Reflect.apply(e,t,n)}}),Te(o,e)}}class yv{constructor(e,t){this._traceBuckets=new Map,this._client=e;var{maxSpanLimit:n,flushInterval:e,maxTraceWeightInBytes:t}=t??{};this._maxSpanLimit=n&&0<n&&n<=1e3?n:1e3,this._flushInterval=e&&0<e?e:5e3,this._maxTraceWeight=t&&0<t?t:5e6,this._client.on("flush",()=>{this.drain()}),this._client.on("close",()=>{this._traceBuckets.forEach(e=>{clearTimeout(e.timeout)}),this._traceBuckets.clear()})}add(e){const t=e.trace_id;let n=this._traceBuckets.get(t);n||(n={spans:new Set,size:0,timeout:ja(setTimeout(()=>{this.flush(t)},this._flushInterval))},this._traceBuckets.set(t,n)),n.spans.add(e),n.size+=function(e){let t=156;var n;return t+=2*e.name.length,t+=_r(e.attributes),e.links&&0<e.links.length&&(n=e.links[0]?.attributes,t+=(100+(n?_r(n):0))*e.links.length),t}(e),(n.spans.size>=this._maxSpanLimit||n.size>=this._maxTraceWeight)&&this.flush(t)}drain(){this._traceBuckets.size&&(T&&te.log(`Flushing span tree map with ${this._traceBuckets.size} traces`),this._traceBuckets.forEach((e,t)=>{this.flush(t)}))}flush(e){var t=this._traceBuckets.get(e);if(t)if(t.spans.size){const l=Array.from(t.spans),u=l[0]?._segmentSpan;if(!u)return T&&te.warn("No segment span reference found on span JSON, cannot compute DSC"),void this._removeTrace(e);var n,r,o,i,s,a=lo(u),c=l.map(e=>{const{_segmentSpan:t,...n}=e;return n}),n=(n=c,r=a,o=this._client,i=o.getOptions(),s=o.getDsn(),t=i.tunnel,a=ri(i._metadata),s={sent_at:(new Date).toISOString(),...(o=r,!!o.trace_id&&!!o.public_key&&{trace:r}),...a&&{sdk:a},...!!t&&s&&{dsn:pr(s)}},i=i.sendDefaultPii?"auto":"never",Yo(s,[[{type:"span",item_count:n.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...Ye()&&{ingest_settings:{infer_ip:i,infer_user_agent:i}},items:n}]]));T&&te.log(`Sending span envelope for trace ${e} with ${c.length} spans`),this._client.sendEnvelope(n).then(null,e=>{T&&te.error("Error while sending streamed span envelope:",e)}),this._removeTrace(e)}else this._removeTrace(e)}_removeTrace(e){var t=this._traceBuckets.get(e);t&&clearTimeout(t.timeout),this._traceBuckets.delete(e)}}const vv=()=>({name:"SpanStreaming",beforeSetup(e){const t=e.getOptions();t.traceLifecycle||(Mu&&te.log('[SpanStreaming] setting `traceLifecycle` to "stream"'),t.traceLifecycle="stream")},setup(t){const e="SpanStreaming integration requires",n="Falling back to static trace lifecycle.",r=t.getOptions();if(!Fi(t))return r.traceLifecycle="static",void(Mu&&te.warn(`${e} \`traceLifecycle\` to be set to "stream"! ${n}`));var o=r.beforeSendSpan;if(o&&!Ui(o))return r.traceLifecycle="static",void(Mu&&te.warn(`${e} a beforeSendSpan callback using \`withStreamedSpan\`! ${n}`));const i=new yv(t);t.on("afterSpanEnd",e=>{Jr(e)&&i.add(function(e,t){var n=Hr(e),r=to(e),o=Hr(r),{isolationScope:i,scope:s}=Ir(e);!function(e,t,n,r){var o=n.getSdkMetadata(),{release:i,environment:s,sendDefaultPii:n}=n.getOptions();Rd(e,{"sentry.release":i,"sentry.environment":s,"sentry.segment.name":t.name,"sentry.segment.id":t.span_id,"sentry.sdk.name":o?.sdk?.name,"sentry.sdk.version":o?.sdk?.version,...n?{"user.id":r.user?.id,"user.email":r.user?.email,"user.ip_address":r.user?.ip_address,"user.name":r.user?.username}:{},...r.attributes})}(n,o,t,ho(i,s)),function(e,t){var n=e.attributes;if(n){var r=n["http.request.method"]||n["http.method"];if(r)return function(e,i,t,n){const r=["http"];2===t?r.push("client"):1===t&&r.push("server"),i["sentry.http.prefetch"]&&r.push("prefetch"),Rd(e,{[Xn]:r.join(".")});var o=i[nr];if("string"==typeof o)return e.name=o;if("custom"!==i[Gn]){o=i["http.route"];if("string"==typeof o)e.name=`${n} ${o}`,Rd(e,{[Gn]:"route"});else{if(2===t||1===t){const r=function(e){const t=i["http.url"]||i["url.full"],n=i["http.target"],r="string"==typeof t?cd(t):void 0,o=r?function(){const{protocol:e,host:t,path:n}=r;return`${e?`${e}://`:""}${t?.replace(/^.*@/,"[filtered]:[filtered]@").replace(/(:80)$/,"").replace(/(:443)$/,"")||""}${n}`}():void 0;return 1===e&&"string"==typeof n?ld(n):o||("string"==typeof n?ld(n):void 0)}(t);r&&(e.name=`${n} ${r}`)}Rd(e,{[Gn]:"url"})}}}(e,n,t,r);t=n["db.system.name"]||n["db.system"],r="string"==typeof n[Xn]&&`${n[Xn]}`.startsWith("cache.");if(t&&!r)return function(e,t){Rd(e,{[Xn]:"db"});var n=t[nr];if("string"==typeof n)return e.name=n;"custom"===t[Gn]||(t=t["db.statement"])&&(e.name=`${t}`,Rd(e,{[Gn]:"task"}))}
1(e,n);if(n["rpc.service"])return Rd(e,{[Xn]:"rpc"});if(n["messaging.system"])return Rd(e,{[Xn]:"message"});n=n["faas.trigger"];n&&Rd(e,{[Xn]:`${n}`})}}(n,e.kind),n.is_segment&&t.emit("processSegmentSpan",n),t.emit("processSpan",n);const a=t.getOptions()["beforeSendSpan"],c=a&&Ui(a)?a(t=n)||(ro(),t):n,l=c.attributes?.[Gn];return l&&Rd(c,{"sentry.span.source":l}),{...(u=c,{...u,attributes:vr(u.attributes),links:u.links?.map(e=>({...e,attributes:vr(e.attributes)}))}),_segmentSpan:r};let u}(e,t))}),t.on("afterSegmentSpanEnd",e=>{const t=e.spanContext().traceId;setTimeout(()=>{i.flush(t)},500)})}}),_v=100,bv=5e3,Sv=36e5;function wv(n){return new Promise((e,t)=>{n.oncomplete=n.onsuccess=()=>e(n.result),n.onabort=n.onerror=()=>t(n.error)})}function kv(e){return wv(e.getAllKeys())}function xv(i){let e;function s(){return null==e&&(e=function(e,n){const t=indexedDB.open(e);t.onupgradeneeded=()=>t.result.createObjectStore(n);const r=wv(t);return t=>r.then(e=>t(e.transaction(n,"readwrite").objectStore(n)))}(i.dbName||"sentry-offline",i.storeName||"queue")),e}return{push:async e=>{try{var t=ei(e);n=s(),r=t,o=i.maxQueueSize||30,await n(t=>kv(t).then(e=>{if(!(e.length>=o))return t.put(r,Math.max(...e,0)+1),wv(t.transaction)}))}catch{}var n,r,o},unshift:async e=>{try{var t=ei(e);n=s(),r=t,o=i.maxQueueSize||30,await n(t=>kv(t).then(e=>{if(!(e.length>=o))return t.put(r,Math.min(...e,0)-1),wv(t.transaction)}))}catch{}var n,r,o},shift:async()=>{try{var e=await s()(n=>kv(n).then(e=>{const t=e[0];if(null!=t)return wv(n.get(t)).then(e=>(n.delete(t),wv(n.transaction).then(()=>e)))}));if(e)return function(e){let n="string"==typeof e?Zo(e):e;function t(e){var t=n.subarray(0,e);return n=n.subarray(e+1),t}function r(){let e=n.indexOf(10);return e<0&&(e=n.length),JSON.parse(function(e){const t=a(L);return t.decodePolyfill?t.decodePolyfill(e):(new TextDecoder).decode(e)}(t(e)))}const o=r(),i=[];for(;n.length;){const e=r(),n="number"==typeof e.length?e.length:void 0;i.push([e,n?t(n):r()])}return[o,i]}(e)}catch{}}}}function Tv(e=Ru){return r=e,n=s=>{const a=r(s);if(!s.createStore)throw new Error("No `createStore` function was provided");const c=s.createStore(s);let t,l=bv;function u(e){t&&clearTimeout(t),t=ja(setTimeout(async()=>{t=void 0;const e=await c.shift();e&&(p("Attempting to send previously queued event"),e[0].sent_at=(new Date).toISOString(),n(e,!0).catch(e=>{p("Failed to retry sending",e)}))},e))}function d(){t||(u(l),l=Math.min(2*l,Sv))}async function n(t,n=!1){if(!n&&Qo(t,["replay_event","replay_recording"]))return await c.push(t),u(_v),{};try{if(s.shouldSend&&!1===await s.shouldSend(t))throw new Error("Envelope not sent because `shouldSend` callback returned false");const p=await a.send(t);let e=_v;if(p)if(p.headers?.["retry-after"])e=Ua(p.headers["retry-after"]);else if(p.headers?.["x-sentry-rate-limits"])e=6e4;else if(400<=(p.statusCode||0))return p;return u(e),l=bv,p}catch(e){if(r=t,o=e,i=l,await(!Qo(r,["client_report"])&&(!s.shouldStore||s.shouldStore(r,o,i))))return n?await c.unshift(t):await c.push(t),d(),p("Error sending. Event queued.",e),{};throw e}var r,o,i}return s.flushAtStartup&&d(),{send:n,flush:e=>(void 0===e&&(l=bv,u(_v)),a.flush(e))}},e=>{const t=n({...e,createStore:xv});return $o.addEventListener("online",async e=>{await t.flush()}),t};var n,r;function p(...e){T&&te.log("[Offline]:",...e)}}const Ev=1e6,Cv="window"in L&&L.window===L&&"undefined"==typeof importScripts,Iv=String(0),Av=Cv?"main":"worker",Rv=$o.navigator;let Mv="",Ov="",Dv="",Nv=Rv?.userAgent||"",Lv="";const Pv=Rv?.language||Rv?.languages?.[0]||"",$v=Rv?.userAgentData;function jv(e){return"pageload"===Ur(e).op}function Fv(e){const t=He(),n=t?.getOptions(),r=n?.stackParser;return r?function(e,t){var n=Wn(e);if(!n)return[];const r=[];for(const e of t){const t=function(e){let t=e?.startsWith("file://")?e.slice(7):e;return t?.match(/\/[A-Z]:/)&&(t=t.slice(1)),t}(e);t&&n[t]&&r.push({type:"sourcemap",code_file:e,debug_id:n[t]})}return r}(r,e):[]}function Bv(e){return"number"!=typeof e&&"boolean"!=typeof e||"number"==typeof e&&isNaN(e)?(Mu&&te.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),0):!0===e||!1===e||!(e<0||1<e)||(Mu&&te.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),0)}"object"==typeof(vt=$v)&&null!==vt&&"getHighEntropyValues"in vt&&$v.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{Mv=e.platform||"",Dv=e.architecture||"",Lv=e.model||"",Ov=e.platformVersion||"",e.fullVersionList?.length&&(e=e.fullVersionList[e.fullVersionList.length-1],Nv=`${e.brand}
1 ${e.version}`)}).catch(e=>{});let qv=!1;function Uv(){const e=$o.Profiler;if("function"==typeof e){var t=Math.floor(3e3);try{return new e({sampleInterval:10,maxBufferSize:t})}catch(e){Mu&&(te.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),te.log("[Profiling] Disabling profiling for current user session.")),qv=!0}}else Mu&&te.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object.")}function Hv(e){if(qv)return Mu&&te.log("[Profiling] Profiling has been disabled for the duration of the current user session."),0;if(!e.isRecording())return Mu&&te.log("[Profiling] Discarding profile because root span was not sampled."),0;const t=He(),n=t?.getOptions();if(!n)return Mu&&te.log("[Profiling] Profiling disabled, no options found."),0;e=n.profilesSampleRate;return Bv(e)?e?!0===e||Math.random()<e||(Mu&&te.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(e)})`),0):(Mu&&te.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),0):(Mu&&te.warn("[Profiling] Discarding profile because of invalid sample rate."),0)}function Wv(e){return void 0!==e.profilesSampleRate}function zv(e,t,n,r){return((o=n).samples.length<2?(Mu&&te.log("[Profiling] Discarding profile because it contains less than 2 samples"),0):o.frames.length||(Mu&&te.log("[Profiling] Discarding profile because it contains no frames"),0))?function(e,t,n,r){if("transaction"!==r.type)throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(null==n)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);var o=("string"==typeof(s=r.contexts?.trace?.trace_id)&&32!==s.length&&Mu&&te.log(`[Profiling] Invalid traceId: ${s} on profiled event`),"string"!=typeof s?"":s),i=(a=n,"thread_metadata"in a?a:function(o){let i,s=0;const a={samples:[],stacks:[],frames:[],thread_metadata:{[Iv]:{name:Av}}},e=o.samples[0];if(!e)return a;const c=e.timestamp,t=be(),n="number"==typeof performance.timeOrigin?performance.timeOrigin:t||0,l=n-(t||n);return o.samples.forEach((e,t)=>{if(void 0===e.stackId)return void 0===i&&(i=s,a.stacks[i]=[],s++),void(a.samples[t]={elapsed_since_start_ns:((e.timestamp+l-c)*Ev).toFixed(0),stack_id:i,thread_id:Iv});let n=o.stacks[e.stackId];const r=[];for(;n;){r.push(n.frameId);const i=o.frames[n.frameId];i&&void 0===a.frames[n.frameId]&&(a.frames[n.frameId]={function:i.name,abs_path:"number"==typeof i.resourceId?o.resources[i.resourceId]:void 0,lineno:i.line,colno:i.column}),n=void 0===n.parentId?void 0:o.stacks[n.parentId]}e={elapsed_since_start_ns:((e.timestamp+l-c)*Ev).toFixed(0),stack_id:s,thread_id:Iv};a.stacks[s]=r,a.samples[t]=e,s++}),a}(a)),s=t||("number"==typeof r.start_timestamp?1e3*r.start_timestamp:1e3*ve()),t="number"==typeof r.timestamp?1e3*r.timestamp:1e3*ve();let a;return{event_id:e,timestamp:new Date(s).toISOString(),platform:"javascript",version:"1",release:r.release||"",environment:r.environment||Ln,runtime:{name:"javascript",version:$o.navigator.userAgent},os:{name:Mv,version:Ov,build_number:Nv},device:{locale:Pv,model:Lv,manufacturer:Nv,architecture:Dv,is_emulator:!1},debug_meta:{images:Fv(n.resources)},profile:i,transactions:[{name:r.transaction||"",id:r.event_id||le(),trace_id:o,active_thread_id:Iv,relative_start_ns:"0",relative_end_ns:(1e6*(t-s)).toFixed(0)}]}}(e,t,n,r):null;var o}const Vv=new Map;function Jv(t){let e;jv(t)&&(e=1e3*ve());const n=Uv();if(!n)return;Mu&&te.log(`[Profiling] started profiling span: ${Ur(t).description}`);const r=le();let o=null;async function i(){if(t&&n){if(!o)return n.stop().then(e=>{s&&($o.clearTimeout(s),s=void 0),Mu&&te.log(`[Profiling] stopped profiling of span: ${Ur(t).description}`),e?(o=e,function(e,t){if(Vv.set(e,t),30<Vv.size){const e=Vv.keys().next().value;void 0!==e&&Vv.delete(e)}}(r,e)):Mu&&te.log(`[Profiling] profiler returned null profile for: ${Ur(t).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started")}
1).catch(e=>{Mu&&te.log("[Profiling] error while stopping profiler:",e)});Mu&&te.log("[Profiling] profile for:",Ur(t).description,"already exists, returning early")}}je().setContext("profile",{profile_id:r,start_timestamp:e});let s=$o.setTimeout(()=>{Mu&&te.log("[Profiling] max profile duration elapsed, stopping profiling for:",Ur(t).description),i()},3e4);const a=t.end.bind(t);t.end=function(){return t?(i().then(()=>{a()},()=>{a()}),t):a()}}class Gv{constructor(){this._client=void 0,this._profiler=void 0,this._chunkTimer=void 0,this._profilerId=void 0,this._isRunning=!1,this._sessionSampled=!1,this._lifecycleMode=void 0,this._activeRootSpanIds=new Set,this._rootSpanTimeouts=new Map}initialize(e){var t=e.getOptions().profileLifecycle,n=function(e){if(qv)return Mu&&te.log("[Profiling] Profiling has been disabled for the duration of the current user session as the JS Profiler could not be started."),!1;if("trace"!==e.profileLifecycle&&"manual"!==e.profileLifecycle)return Mu&&te.warn("[Profiling] Session not sampled. Invalid `profileLifecycle` option."),!1;e=e.profileSessionSampleRate;return Bv(e)?e?Math.random()<=e:(Mu&&te.log("[Profiling] Discarding profile because profileSessionSampleRate is not defined or set to 0"),!1):(Mu&&te.warn("[Profiling] Discarding profile because of invalid profileSessionSampleRate."),!1)}(e.getOptions());Mu&&te.log(`[Profiling] Initializing profiler (lifecycle='${t}').`),n||Mu&&te.log("[Profiling] Session not sampled. Skipping lifecycle profiler initialization."),this._profilerId=le(),this._client=e,this._sessionSampled=n,"trace"===(this._lifecycleMode=t)&&this._setupTraceLifecycleListeners(e)}start(){"trace"!==this._lifecycleMode?this._isRunning?Mu&&te.warn("[Profiling] Profile session is already running, `uiProfiler.start()` is a no-op."):this._sessionSampled?this._beginProfiling():Mu&&te.warn("[Profiling] Session is not sampled, `uiProfiler.start()` is a no-op."):Mu&&te.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.start()` are ignored in trace mode.')}stop(){"trace"!==this._lifecycleMode?this._isRunning?this._endProfiling():Mu&&te.warn("[Profiling] Profiler is not running, `uiProfiler.stop()` is a no-op."):Mu&&te.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.stop()` are ignored in trace mode.')}notifyRootSpanActive(e){"trace"!==this._lifecycleMode||!this._sessionSampled||(e=e.spanContext().spanId)&&!this._activeRootSpanIds.has(e)&&(this._registerTraceRootSpan(e),1===(e=this._activeRootSpanIds.size)&&(Mu&&te.log("[Profiling] Detected already active root span during setup. Active root spans now:",e),this._beginProfiling()))}_beginProfiling(){if(!this._isRunning){if(this._isRunning=!0,Mu&&te.log("[Profiling] Started profiling with profiler ID:",this._profilerId),Be().setContext("profile",{profiler_id:this._profilerId}),this._startProfilerInstance(),!this._profiler)return Mu&&te.log("[Profiling] Failed to start JS Profiler; stopping."),void this._resetProfilerInfo();this._startPeriodicChunking()}}_endProfiling(){this._isRunning&&(this._isRunning=!1,this._chunkTimer&&(clearTimeout(this._chunkTimer),this._chunkTimer=void 0),this._clearAllRootSpanTimeouts(),this._collectCurrentChunk().catch(e=>{Mu&&te.error("[Profiling] Failed to collect current profile chunk on `stop()`:",e)}),"manual"===this._lifecycleMode&&Be().setContext("profile",{}))}_setupTraceLifecycleListeners(e){e.on("spanStart",e=>{var t;this._sessionSampled?e===eo(e)&&(e.isRecording()?(t=e.spanContext().spanId)&&!this._activeRootSpanIds.has(t)&&(this._registerTraceRootSpan(t),1===(e=this._activeRootSpanIds.size)&&(Mu&&te.log(`[Profiling] Root span ${t} started. Profiling active while there are active root spans (count=${e}).`),this._beginProfiling())):Mu&&te.log("[Profiling] Discarding profile because root span was not sampled.")):Mu&&te.log("[Profiling] Span not profiled because of negative sampling decision for user session.")}),e.on("spanEnd",e=>{var t;!this._sessionSampled||(t=e.spanContext().spanId)&&this._activeRootSpanIds.has(t)&&(this._activeRootSpanIds.delete(t),e=this._activeRootSpanIds.size,Mu&&te.log(`[Profiling] Root span with ID ${t} ended. Will continue profiling for as long as there are active root spans (currently: ${e}).`),0===e&&(this._collectCurrentChunk().catch(e=>{Mu&&te.error("[Profiling] Failed to collect current profile chunk on last `spanEnd`:",e)}),this._endProfiling()))})}_resetProfilerInfo(){this._isRunning=!1,Be().setContext("profile",{})}
1_clearAllRootSpanTimeouts(){this._rootSpanTimeouts.forEach(e=>clearTimeout(e)),this._rootSpanTimeouts.clear()}_registerTraceRootSpan(e){this._activeRootSpanIds.add(e);var t=setTimeout(()=>this._onRootSpanTimeout(e),3e5);this._rootSpanTimeouts.set(e,t)}_startProfilerInstance(){var e;!1!==this._profiler?.stopped&&((e=Uv())?this._profiler=e:Mu&&te.log("[Profiling] Failed to start JS Profiler."))}_startPeriodicChunking(){this._isRunning&&(this._chunkTimer=setTimeout(()=>{this._collectCurrentChunk().catch(e=>{Mu&&te.error("[Profiling] Failed to collect current profile chunk during periodic chunking:",e)}),this._isRunning&&(this._startProfilerInstance(),this._profiler?this._startPeriodicChunking():this._resetProfilerInfo())},6e4))}_onRootSpanTimeout(e){this._rootSpanTimeouts.has(e)&&(this._rootSpanTimeouts.delete(e),this._activeRootSpanIds.has(e)&&(Mu&&te.log(`[Profiling] Reached 5-minute timeout for root span ${e}. You likely started a manual root span that never called \`.end()\`.`),this._activeRootSpanIds.delete(e),0===this._activeRootSpanIds.size&&this._endProfiling()))}async _collectCurrentChunk(){const e=this._profiler;if(this._profiler=void 0,e)try{var t=function(e,t,n){if(null==e)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${e} instead.`);var r=function(n){const t=[];for(let e=0;e<n.frames.length;e++){const o=n.frames[e];o&&(t[e]={function:o.name,abs_path:"number"==typeof o.resourceId?n.resources[o.resourceId]:void 0,lineno:o.line,colno:o.column})}const r=[];for(let t=0;t<n.stacks.length;t++){const o=n.stacks[t];if(o){const i=[];let e=o;for(;e;)i.push(e.frameId),e=void 0===e.parentId?void 0:n.stacks[e.parentId];r[t]=i}}const o=be(),i="number"==typeof performance.timeOrigin?performance.timeOrigin:o||0,s=i-(o||i),a=[];for(let e=0;e<n.samples.length;e++){const r=n.samples[e];if(r){const o=(i+(r.timestamp-s))/1e3;a[e]={stack_id:r.stackId??0,thread_id:Iv,timestamp:o}}}return{frames:t,stacks:r,samples:a,thread_metadata:{[Iv]:{name:Av}}}}(e),o=t.getOptions(),t=t.getSdkMetadata?.()?.sdk;return{chunk_id:le(),client_sdk:{name:t?.name??"sentry.javascript.browser",version:t?.version??"0.0.0"},profiler_id:n||le(),platform:"javascript",version:"2",release:o.release??"",environment:o.environment??"production",debug_meta:{images:Fv(e.resources)},profile:r}}(await e.stop(),this._client,this._profilerId),n=function(e){try{if(!e||"object"!=typeof e)return{reason:"chunk is not an object"};var t=e=>"string"==typeof e&&/^[a-f0-9]{32}$/.test(e);if(!t(e.profiler_id))return{reason:"missing or invalid profiler_id"};if(!t(e.chunk_id))return{reason:"missing or invalid chunk_id"};if(!e.client_sdk)return{reason:"missing client_sdk metadata"};var n=e.profile;return n?Array.isArray(n.frames)&&n.frames.length?Array.isArray(n.stacks)&&n.stacks.length?Array.isArray(n.samples)&&n.samples.length?{valid:!0}:{reason:"profile has no samples"}:{reason:"profile has no stacks"}:{reason:"profile has no frames"}:{reason:"missing profile data"}}catch(e){return{reason:`unknown validation error: ${e}`}}}(t);if("reason"in n)return void(Mu&&te.log("[Profiling] Discarding invalid profile chunk (this is probably a bug in the SDK):",n.reason));this._sendProfileChunk(t),Mu&&te.log("[Profiling] Collected browser profile chunk.")}catch(e){Mu&&te.log("[Profiling] Error while stopping JS Profiler for chunk:",e)}}_sendProfileChunk(e){const t=this._client,n=ri(t.getSdkMetadata?.()),r=t.getDsn(),o=t.getOptions().tunnel,i=Yo({event_id:le(),sent_at:(new Date).toISOString(),...n&&{sdk:n},...!!o&&r&&{dsn:pr(r)}},[[{type:"profile_chunk",platform:"javascript"},e]]);t.sendEnvelope(i).then(null,e=>{Mu&&te.error("Error while sending profile chunk envelope:",e)})}}const Kv=()=>({name:"BrowserProfiling",setup(e){const t=e.getOptions(),n=new Gv;if(Wv(t)||t.profileLifecycle||(t.profileLifecycle="manual"),!Wv(t)||t.profilesSampleRate){const r=no(),o=r&&eo(r);if(Wv(t)&&void 0!==t.profileSessionSampleRate&&Mu&&te.warn("[Profiling] Both legacy profiling (`profilesSampleRate`) and UI profiling settings are defined. `profileSessionSampleRate` has no effect when legacy profiling is enabled."),Wv(t))o&&jv(o)&&Hv(o)&&Jv(
1o),e.on("spanStart",e=>{e===eo(e)&&Hv(e)&&Jv(e)}),e.on("beforeEnvelope",e=>{if(Vv.size){const r=function(){const n=[];return Xo(e,(t,e)=>{if("transaction"===e)for(let e=1;e<t.length;e++)t[e]?.contexts?.profile?.profile_id&&n.push(t[e])}),n}();if(r.length){const o=[];for(const e of r){const r=e?.contexts,i=r?.profile?.profile_id,s=r?.profile?.start_timestamp;"string"==typeof i?i?(r?.profile&&delete r.profile,(n=(t=i,n=void 0,(n=Vv.get(t))&&Vv.delete(t),n))?(n=zv(i,s,n,e))&&o.push(n):Mu&&te.log(`[Profiling] Could not retrieve profile for span: ${i}`)):Mu&&te.log("[Profiling] cannot find profile for a span without a profile context"):Mu&&te.log("[Profiling] cannot find profile for a span without a profile context")}var t,n;!function(e,t){if(!t.length)return;for(const n of t)e[1].push([{type:"profile"},n])}(e,o)}}});else{const r=t.profileLifecycle;e.on("startUIProfiler",()=>n.start()),e.on("stopUIProfiler",()=>n.stop()),"manual"===r?n.initialize(e):"trace"===r&&(yr(t)?(n.initialize(e),o&&n.notifyRootSpanActive(o),$o.setTimeout(()=>{var e=no(),e=e&&eo(e);e&&n.notifyRootSpanActive(e)},0)):Mu&&te.warn("[Profiling] `profileLifecycle` is 'trace' but tracing is disabled. Set a `tracesSampleRate` or `tracesSampler` to enable span tracing."))}}else Mu&&te.log("[Profiling] Profiling disabled, no profiling options found.")},processEvent(e){return(e=e)?.contexts?.profile&&e.contexts&&(e.contexts.trace?.trace_id&&(e.contexts.trace={...e.contexts.trace,data:{...e.contexts.trace.data??{},"thread.id":Iv,"thread.name":Av}}),e.spans?.forEach(e=>{e.data={...e.data||{},"thread.id":Iv,"thread.name":Av}})),e}}),Yv=[{op:"ui.interaction.click",name:"#sentry-spotlight"}],Xv=(e={})=>{const t=e.sidecarUrl||"http://localhost:8969/stream";return{name:"SpotlightBrowser",setup:()=>{Mu&&te.log("Using Sidecar URL",t)},beforeSetup(e){const t=e.getOptions();t.ignoreSpans=[...t.ignoreSpans||[],...Yv]},afterAllSetup:e=>{!function(e,t){const n=Cu("fetch");let r=0;e.on("beforeEnvelope",e=>{3<r?te.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:",r):n(t,{method:"POST",body:ei(e),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then(e=>{200<=e.status&&e.status<400&&(r=0)},e=>{r++,te.error("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",e)})})}(e,t)}}},Qv=()=>({name:"LaunchDarkly",processEvent(e,t,n){return ac(e)}});function Zv(){return{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:(e,t,n)=>{cc(e,t.value),lc(e,t.value)}}}const e_=()=>({name:"OpenFeature",processEvent(e,t,n){return ac(e)}});class t_{after(e,t){cc(t.flagKey,t.value),lc(t.flagKey,t.value)}error(e,t,n){cc(e.flagKey,e.defaultValue),lc(e.flagKey,e.defaultValue)}}const n_=({featureFlagClientClass:e})=>({name:"Unleash",setupOnce(){A(e.prototype,"isEnabled",r_)},processEvent(e,t,n){return ac(e)}});function r_(n){return function(...e){var t=e[0],e=n.apply(this,e);return"string"==typeof t&&"boolean"==typeof e?(cc(t,e),lc(t,e)):Mu&&te.error(`[Feature Flags] UnleashClient.isEnabled does not match expected signature. arg0: ${t} (${typeof t}), result: ${e} (${typeof e})`),e}}function o_(n){return function(...e){var t=e[0],e=n.apply(this,e);return"string"==typeof t&&"boolean"==typeof e&&(cc(t,e),lc(t,e)),e}}const i_=({growthbookClass:e})=>(({growthbookClass:t})=>({name:"GrowthBook",setupOnce(){var e=t.prototype;"function"==typeof e.isOn&&A(e,"isOn",o_),"function"==typeof e.getFeatureValue&&A(e,"getFeatureValue",o_)},processEvent(e,t,n){return ac(e)}}))({growthbookClass:e}),s_=({featureFlagClient:t})=>({name:"Statsig",setup(e){t.on("gate_evaluation",e=>{cc(e.gate.name,e.gate.value),lc(e.gate.name,e.gate.value)})},processEvent(e,t,n){return ac(e)}});async function a_(){const e=He();if(!e)return"no-client-active";if(!e.getDsn())return"no-dsn-configured";const t=e.getOptions().tunnel||"https://o447951.ingest.sentry.io/api/4509632503087104/envelope/?sentry_version=7&sentry_key=c1dfb07d783ad5325c245c1fd3725390&sentry_client=sentry.javascript.browser%2F1.33.7";try{await es(()=>fetch(t,{body:"{}",method:"POST",mode:"cors",credentials:"omit"}))}catch{return"sentry-unreachable"}}const c_=({worker:e})=>({name:"WebWorker",setupOnce:()=>
1{(Array.isArray(e)?e:[e]).forEach(e=>l_(e))},addWorker:e=>l_(e)});function l_(e){e.addEventListener("message",e=>{if(function(e){if(_(e)&&!0===e._sentryMessage){var t="_sentryDebugIds"in e,n="_sentryModuleMetadata"in e,r="_sentryWorkerError"in e,o="_sentryWasmImages"in e;return(t||n||r||o)&&(!t||_(e._sentryDebugIds)||void 0===e._sentryDebugIds)&&(!n||_(e._sentryModuleMetadata)||void 0===e._sentryModuleMetadata)&&(!r||_(e._sentryWorkerError))&&(!o||Array.isArray(e._sentryWasmImages)&&e._sentryWasmImages.every(e=>_(e)&&"string"==typeof e.code_file))}}(e.data)){if(e.stopImmediatePropagation(),e.data._sentryDebugIds&&(Mu&&te.log("Sentry debugId web worker message received",e.data),$o._sentryDebugIds={...e.data._sentryDebugIds,...$o._sentryDebugIds}),e.data._sentryModuleMetadata&&(Mu&&te.log("Sentry module metadata web worker message received",e.data),$o._sentryModuleMetadata={...e.data._sentryModuleMetadata,...$o._sentryModuleMetadata}),e.data._sentryWasmImages){Mu&&te.log("Sentry WASM images web worker message received",e.data);const n=$o._sentryWasmImages||[],t=e.data._sentryWasmImages.filter(t=>_(t)&&"string"==typeof t.code_file&&!n.some(e=>e.code_file===t.code_file));$o._sentryWasmImages=[...n,...t]}e.data._sentryWorkerError&&(Mu&&te.log("Sentry worker rejection message received",e.data._sentryWorkerError),function(e){const t=He();if(t){const n=t.getOptions().stackParser,r=t.getOptions().attachStacktrace,o=e.reason,i=P(o)?Ld(o):vu(n,o,void 0,r,!0);i.level="error",e.filename&&(i.contexts={...i.contexts,worker:{filename:e.filename}}),_o(i,{originalException:o,mechanism:{handled:!1,type:"auto.browser.web_worker.onunhandledrejection"}}),Mu&&te.log("Captured worker unhandled rejection",o)}}(e.data._sentryWorkerError))}})}function u_({self:t}){t.postMessage({_sentryMessage:!0,_sentryDebugIds:t._sentryDebugIds??void 0,_sentryModuleMetadata:t._sentryModuleMetadata??void 0}),t.addEventListener("unhandledrejection",e=>{e={reason:Nd(e),filename:t.location?.href};t.postMessage({_sentryMessage:!0,_sentryWorkerError:e}),Mu&&te.log("[Sentry Worker] Forwarding unhandled rejection to parent",e)}),Mu&&te.log("[Sentry Worker] Registered worker with unhandled rejection handling")}Sentry=e}(),function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(w,e){"use strict";function m(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item}function g(e){return null!=e&&e===e.window}var t=[],n=Object.getPrototypeOf,a=t.slice,y=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},c=t.push,o=t.indexOf,r={},i=r.toString,v=r.hasOwnProperty,s=v.toString,l=s.call(Object),_={},k=w.document,u={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,o,i=(n=n||k).createElement("script");if(i.text=e,t)for(r in u)(o=t[r]||t.getAttribute&&t.getAttribute(r))&&i.setAttribute(r,o);n.head.appendChild(i).parentNode.removeChild(i)}function h(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?r[i.call(e)]||"object":typeof e}var x=function(e,t){return new x.fn.init(e,t)};function d(e){var t=!!e&&"length"in e&&e.length,n=h(e);return!m(e)&&!g(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}x.fn=x.prototype={jquery:"3.6.0",constructor:x,length:0,toArray:function(){return a.call(this)},get:function(e){return null==e?a.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){e=x.merge(this.constructor(),e);return e.prevObject=this,e},each:function(e){return x.each(this,e)},map:function(n){return this.pushStack(x.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(x.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(x.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,e=+e+(e<0?t:0);return this.pushStack(0<=e&&e<t?[this[e]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:t.sort,splice:t.splice},x.extend=x.fn.extend=function(){var e,t,n,r,o,i=arguments[0]||{},s=1,a=arguments.length,c=!1;for("boolean"==typeof i&&(c=i,i=arguments[s]||{},s++),"object"==typeof i||m(i)||(i={}),s===a&&(i=this,s--);s<a;s++)if(null!=(e=arguments[s]))for(t in e)n=e[t],"__proto__"!==t&&i!==n&&(c&&n&&(x.isPlainObject(n)||(r=Array.isArray(n)))?(o=i[t],o=r&&!Array.isArray(o)?[]:r||x.isPlainObject(o)?o:{},r=!1,i[t]=x.extend(c,o,n)):void 0!==n&&(i[t]=n));return i},x.extend({expando:"jQuery"+("3.6.0"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){return!(!e||"[object Object]"!==i.call(e))&&(!(e=n(e))||"function"==typeof(e=v.call(e,"constructor")&&e.constructor)&&s.call(e)===l)},isEmptyObject:function(e){for(var t in e)return!1;return!0},globalEval:function(e,t,n){b(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(d(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){t=t||[];
vendor: 11,598 bytes, line 1
1return null!=e&&(d(Object(e))?x.merge(t,"string"==typeof e?[e]:e):c.call(t,e)),t},inArray:function(e,t,n){return null==t?-1:o.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,o=e.length;r<n;r++)e[o++]=t[r];return e.length=o,e},grep:function(e,t,n){for(var r=[],o=0,i=e.length,s=!n;o<i;o++)!t(e[o],o)!=s&&r.push(e[o]);return r},map:function(e,t,n){var r,o,i=0,s=[];if(d(e))for(r=e.length;i<r;i++)null!=(o=t(e[i],i,n))&&s.push(o);else for(i in e)null!=(o=t(e[i],i,n))&&s.push(o);return y(s)},guid:1,support:_}),"function"==typeof Symbol&&(x.fn[Symbol.iterator]=t[Symbol.iterator]),x.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){r["[object "+t+"]"]=t.toLowerCase()});var p=function(n){function d(e,t){return e="0x"+e.slice(1)-65536,t||(e<0?String.fromCharCode(65536+e):String.fromCharCode(e>>10|55296,1023&e|56320))}function p(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}function r(){w()}var e,f,b,i,o,h,m,g,S,c,l,w,k,s,x,y,a,u,v,T="sizzle"+ +new Date,_=n.document,E=0,C=0,I=ce(),A=ce(),R=ce(),M=ce(),O=function(e,t){return e===t&&(l=!0),0},D={}.hasOwnProperty,t=[],N=t.pop,L=t.push,P=t.push,$=t.slice,j=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},F="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",B="[\\x20\\t\\r\\n\\f]",q="(?:\\\\[\\da-fA-F]{1,6}"+B+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",U="\\["+B+"*("+q+")(?:"+B+"*([*^$|!~]?=)"+B+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+q+"))|)"+B+"*\\]",H=":("+q+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+U+")*)|.*)\\)|)",W=new RegExp(B+"+","g"),z=new RegExp("^"+B+"+|((?:^|[^\\\\])(?:\\\\.)*)"+B+"+$","g"),V=new RegExp("^"+B+"*,"+B+"*"),J=new RegExp("^"+B+"*([>+~]|"+B+")"+B+"*"),G=new RegExp(B+"|>"),K=new RegExp(H),Y=new RegExp("^"+q+"$"),X={ID:new RegExp("^#("+q+")"),CLASS:new RegExp("^\\.("+q+")"),TAG:new RegExp("^("+q+"|[*])"),ATTR:new RegExp("^"+U),PSEUDO:new RegExp("^"+H),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+B+"*(even|odd|(([+-]|)(\\d*)n|)"+B+"*(?:([+-]|)"+B+"*(\\d+)|))"+B+"*\\)|)","i"),bool:new RegExp("^(?:"+F+")$","i"),needsContext:new RegExp("^"+B+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+B+"*((?:-\\d)?\\d*)"+B+"*\\)|)(?=[^-]|$)","i")},Q=/HTML$/i,Z=/^(?:input|select|textarea|button)$/i,ee=/^h\d$/i,te=/^[^{]+\{\s*\[native \w/,ne=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,re=/[+~]/,oe=new RegExp("\\\\[\\da-fA-F]{1,6}"+B+"?|\\\\([^\\r\\n\\f])","g"),ie=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,se=ve(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{P.apply(t=$.call(_.childNodes),_.childNodes),t[_.childNodes.length].nodeType}catch(e){P={apply:t.length?function(e,t){L.apply(e,$.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function ae(t,e,n,r){var o,i,s,a,c,l,u=e&&e.ownerDocument,d=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==d&&9!==d&&11!==d)return n;if(!r&&(w(e),e=e||k,x)){if(11!==d&&(a=ne.exec(t)))if(l=a[1]){if(9===d){if(!(i=e.getElementById(l)))return n;if(i.id===l)return n.push(i),n}else if(u&&(i=u.getElementById(l))&&v(e,i)&&i.id===l)return n.push(i),n}else{if(a[2])return P.apply(n,e.getElementsByTagName(t)),n;if((l=a[3])&&f.getElementsByClassName&&e.getElementsByClassName)return P.apply(n,e.getElementsByClassName(l)),n}if(f.qsa&&!M[t+" "]&&(!y||!y.test(t))&&(1!==d||"object"!==e.nodeName.toLowerCase())){if(l=t,u=e,1===d&&(G.test(t)||J.test(t))){for((u=re.test(t)&&me(e.parentNode)||e)===e&&f.scope||((s=e.getAttribute("id"))?s=s.replace(ie,p):e.setAttribute("id",s=T)),o=(c=h(t)).length;o--;)c[o]=(s?"#"+s:":scope")+" "+ye(c[o]);l=c.join(",")}try{return P.apply(n,u.querySelectorAll(l)),n}catch(e){M(t,!0)}finally{s===T&&e.removeAttribute("id")}}}return g(t.replace(z,"$1"),e,n,r)}function ce(){var n=[];function r(e,t){return n.push(e+" ")>b.cacheLength&&delete r[n.shift()],r[e+" "]=t}return r}function le(e){return e[T]=!0,e}function ue(e){var t=k.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function de(e,t){for(var n=e.split("|"),r=n.length;r--;)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function fe(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&se(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function he(s){return le(function(i){return i=+i,le(function(e,t){for(var n,r=s([],e.length,i),o=r.length;o--;)e[n=r[o]]&&(e[n]=!(t[n]=e[n]))})})}function me(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in f=ae.support={},o=ae.isXML=function(e){var t=e&&e.namespaceURI,e=e&&(e.ownerDocument||e).documentElement;return!Q.test(t||e&&e.nodeName||"HTML")},w=ae.setDocument=function(e){var t,e=e?e.ownerDocument||e:_;return e!=k&&9===e.nodeType&&e.documentElement&&(s=(k=e).documentElement,x=!o(k),_!=k&&(t=k.defaultView)&&t.top!==t&&(t.addEventListener?t.addEventListener("unload",r,!1):t.attachEvent&&t.attachEvent("onunload",r)),f.scope=ue(function(e){return s.appendChild(e).appendChild(k.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),f.attributes=ue(function(e){return e.className="i",!e.getAttribute("className")}),f.getElementsByTagName=ue(function(e){return e.appendChild(k.createComment("")),!e.getElementsByTagName("*").length}),f.getElementsByClassName=te.test(k.getElementsByClassName),f.getById=ue(function(e){return s.appendChild(e).id=T,!k.getElementsByName||!k.getElementsByName(T).length}),f.getById?(b.filter.ID=function(e){var t=e.replace(oe,d);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if(void 0!==t.getElementById&&x){e=t.getElementById(e);return e?[e]:[]}}):(b.filter.ID=function(e){var t=e.replace(oe,d);return function(e){e=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return e&&e.value===t}},b.find.ID=function(e,t){if(void 0!==t.getElementById&&x){var n,r,o,i=t.getElementById(e);if(i){if((n=i.getAttributeNode("id"))&&n.value===e)return[i];for(o=t.getElementsByName(e),r=0;i=o[r++];)if((n=i.getAttributeNode("id"))&&n.value===e)return[i]}return[]}}),b.find.TAG=f.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):f.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],o=0,i=t.getElementsByTagName(e);if("*"!==e)return i;for(;n=i[o++];)1===n.nodeType&&r.push(n);return r},b.find.CLASS=f.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&x)return t.getElementsByClassName(e)},a=[],y=[],(f.qsa=te.test(k.querySelectorAll))&&(ue(function(e){var t;s.appendChild(e).innerHTML="<a id='"+T+"'></a><select id='"+T+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&y.push("[*^$]="+B+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||y.push("\\["+B+"*(?:value|"+F+")"),e.querySelectorAll("[id~="+T+"-]").length||y.push("~="),(t=k.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||y.push("\\["+B+"*name"+B+"*="+B+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||y.push(":checked"),e.querySelectorAll("a#"+T+"+*").length||y.push(".#.+[+~]"),e.querySelectorAll("\\\f"),y.push("[\\r\\n\\f]")}),ue(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=k.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&y.push("name"+B+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&y.push(":enabled",":disabled"),s.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&y.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),y.push(",.*:")})),(f.matchesSelector=te.test(u=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&ue(function(e){f.disconnectedMatch=u.call(e,"*"),u.call(e,"[s!='']:x"),a.push("!=",H)}),y=y.length&&new RegExp(y.join("|")),a=a.length&&new RegExp(a.join("|")),t=te.test(s.compareDocumentPosition),v=t||te.test(s.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,t=t&&t.parentNode;return e===t||!(!t||1!==t.nodeType||!(n.contains?n.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},O=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!f.sortDetached&&t.compareDocumentPosition(e)===n?e==k||e.ownerDocument==_&&v(_,e)?-1:t==k||t.ownerDocument==_&&v(_,t)?1:c?j(c,e)-j(c,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,o=e.parentNode,i=t.parentNode,s=[e],a=[t];if(!o||!i)return e==k?-1:t==k?1:o?-1:i?1:c?j(c,e)-j(c,t):0;if(o===i)return pe(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)a.unshift(n);for(;s[r]===a[r];)r++;return r?pe(s[r],a[r]):s[r]==_?-1:a[r]==_?1:0}),k},ae.matches=function(e,t){return ae(e,null,null,t)},ae.matchesSelector=function(e,t){if(w(e),f.matchesSelector&&x&&!M[t+" "]&&(!a||!a.test(t))&&(!y||!y.test(t)))try{var n=u.call(e,t);if(n||f.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){M(t,!0)}return 0<ae(t,k,null,[e]).length},ae.contains=function(e,t){return(e.ownerDocument||e)!=k&&w(e),v(e,t)},ae.attr=function(e,t){(e.ownerDocument||e)!=k&&w(e);var n=b.attrHandle[t.toLowerCase()],n=n&&D.call(b.attrHandle,t.toLowerCase())?n(e,t,!x):void 0;return void 0!==n?n:f.attributes||!x?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},ae.escape=function(e){return(e+"").replace(ie,p)},ae.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ae.uniqueSort=function(e){var t,n=[],r=0,o=0;if(l=!f.detectDuplicates,c=!f.sortStable&&e.slice(0),e.sort(O),l){for(;t=e[o++];)t===e[o]&&(r=n.push(o));for(;r--;)e.splice(n[r],1)}return c=null,e},i=ae.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},(b=ae.selectors={cacheLength:50,createPseudo:le,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(oe,d),e[3]=(e[3]||e[4]||e[5]||"").replace(oe,d),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ae.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ae.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return X.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&K.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(oe,d).toLowerCase();return"*"===e?function(){return!0}
vendor: 4,532 bytes, line 1
1:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=I[e+" "];return t||(t=new RegExp("(^|"+B+")"+e+"("+B+"|$)"))&&I(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(t,n,r){return function(e){e=ae.attr(e,t);return null==e?"!="===n:!n||(e+="","="===n?e===r:"!="===n?e!==r:"^="===n?r&&0===e.indexOf(r):"*="===n?r&&-1<e.indexOf(r):"$="===n?r&&e.slice(-r.length)===r:"~="===n?-1<(" "+e.replace(W," ")+" ").indexOf(r):"|="===n&&(e===r||e.slice(0,r.length+1)===r+"-"))}},CHILD:function(h,e,t,m,g){var y="nth"!==h.slice(0,3),v="last"!==h.slice(-4),_="of-type"===e;return 1===m&&0===g?function(e){return!!e.parentNode}:function(e,t,n){var r,o,i,s,a,c,l=y!=v?"nextSibling":"previousSibling",u=e.parentNode,d=_&&e.nodeName.toLowerCase(),p=!n&&!_,f=!1;if(u){if(y){for(;l;){for(s=e;s=s[l];)if(_?s.nodeName.toLowerCase()===d:1===s.nodeType)return!1;c=l="only"===h&&!c&&"nextSibling"}return!0}if(c=[v?u.firstChild:u.lastChild],v&&p){for(f=(a=(r=(o=(i=(s=u)[T]||(s[T]={}))[s.uniqueID]||(i[s.uniqueID]={}))[h]||[])[0]===E&&r[1])&&r[2],s=a&&u.childNodes[a];s=++a&&s&&s[l]||(f=a=0)||c.pop();)if(1===s.nodeType&&++f&&s===e){o[h]=[E,a,f];break}}else if(!1===(f=p?a=(r=(o=(i=(s=e)[T]||(s[T]={}))[s.uniqueID]||(i[s.uniqueID]={}))[h]||[])[0]===E&&r[1]:f))for(;(s=++a&&s&&s[l]||(f=a=0)||c.pop())&&((_?s.nodeName.toLowerCase()!==d:1!==s.nodeType)||!++f||(p&&((o=(i=s[T]||(s[T]={}))[s.uniqueID]||(i[s.uniqueID]={}))[h]=[E,f]),s!==e)););return(f-=g)===m||f%m==0&&0<=f/m}}},PSEUDO:function(e,i){var t,s=b.pseudos[e]||b.setFilters[e.toLowerCase()]||ae.error("unsupported pseudo: "+e);return s[T]?s(i):1<s.length?(t=[e,e,"",i],b.setFilters.hasOwnProperty(e.toLowerCase())?le(function(e,t){for(var n,r=s(e,i),o=r.length;o--;)e[n=j(e,r[o])]=!(t[n]=r[o])}):function(e){return s(e,0,t)}):s}},pseudos:{not:le(function(e){var r=[],o=[],a=m(e.replace(z,"$1"));return a[T]?le(function(e,t,n,r){for(var o,i=a(e,null,r,[]),s=e.length;s--;)(o=i[s])&&(e[s]=!(t[s]=o))}):function(e,t,n){return r[0]=e,a(r,null,n,o),r[0]=null,!o.pop()}}),has:le(function(t){return function(e){return 0<ae(t,e).length}}),contains:le(function(t){return t=t.replace(oe,d),function(e){return-1<(e.textContent||i(e)).indexOf(t)}}),lang:le(function(n){return Y.test(n||"")||ae.error("unsupported lang: "+n),n=n.replace(oe,d).toLowerCase(),function(e){var t;do{if(t=x?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===s},focus:function(e){return e===k.activeElement&&(!k.hasFocus||k.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:fe(!1),disabled:fe(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!b.pseudos.empty(e)},header:function(e){return ee.test(e.nodeName)},input:function(e){return Z.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(e=e.getAttribute("type"))||"text"===e.toLowerCase())},first:he(function(){return[0]}),last:he(function(e,t){return[t-1]}),eq:he(function(e,t,n){return[n<0?n+t:n]}),even:he(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:he(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:he(function(e,t,n){for(var r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:he(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[e]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(e);for(e in{submit:!0,reset:!0})b.pseudos[e]=function(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}(e);function ge(){}function ye(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function ve(s,e,t){var a=e.dir,c=e.next,l=c||a,u=t&&"parentNode"===l,d=C++;return e.first?function(e,t,n){for(;e=e[a];)if(1===e.nodeType||u)return s(e,t,n);return!1}:function(e,t,n){var r,o,i=[E,d];if(n){for(;e=e[a];
vendor: 4,818 bytes, line 1
1)if((1===e.nodeType||u)&&s(e,t,n))return!0}else for(;e=e[a];)if(1===e.nodeType||u)if(r=(o=e[T]||(e[T]={}))[e.uniqueID]||(o[e.uniqueID]={}),c&&c===e.nodeName.toLowerCase())e=e[a]||e;else{if((o=r[l])&&o[0]===E&&o[1]===d)return i[2]=o[2];if((r[l]=i)[2]=s(e,t,n))return!0}return!1}}function _e(o){return 1<o.length?function(e,t,n){for(var r=o.length;r--;)if(!o[r](e,t,n))return!1;return!0}:o[0]}function be(e,t,n,r,o){for(var i,s=[],a=0,c=e.length,l=null!=t;a<c;a++)(i=e[a])&&(n&&!n(i,r,o)||(s.push(i),l&&t.push(a)));return s}function Se(f,h,m,g,y,e){return g&&!g[T]&&(g=Se(g)),y&&!y[T]&&(y=Se(y,e)),le(function(e,t,n,r){var o,i,s,a=[],c=[],l=t.length,u=e||function(e,t,n){for(var r=0,o=t.length;r<o;r++)ae(e,t[r],n);return n}(h||"*",n.nodeType?[n]:n,[]),d=!f||!e&&h?u:be(u,a,f,n,r),p=m?y||(e?f:l||g)?[]:t:d;if(m&&m(d,p,n,r),g)for(o=be(p,c),g(o,[],n,r),i=o.length;i--;)(s=o[i])&&(p[c[i]]=!(d[c[i]]=s));if(e){if(y||f){if(y){for(o=[],i=p.length;i--;)(s=p[i])&&o.push(d[i]=s);y(null,p=[],o,r)}for(i=p.length;i--;)(s=p[i])&&-1<(o=y?j(e,s):a[i])&&(e[o]=!(t[o]=s))}}else p=be(p===t?p.splice(l,p.length):p),y?y(null,t,p,r):P.apply(t,p)})}function we(g,y){function e(e,t,n,r,o){var i,s,a,c=0,l="0",u=e&&[],d=[],p=S,f=e||_&&b.find.TAG("*",o),h=E+=null==p?1:Math.random()||.1,m=f.length;for(o&&(S=t==k||t||o);l!==m&&null!=(i=f[l]);l++){if(_&&i){for(s=0,t||i.ownerDocument==k||(w(i),n=!x);a=g[s++];)if(a(i,t||k,n)){r.push(i);break}o&&(E=h)}v&&((i=!a&&i)&&c--,e&&u.push(i))}if(c+=l,v&&l!==c){for(s=0;a=y[s++];)a(u,d,t,n);if(e){if(0<c)for(;l--;)u[l]||d[l]||(d[l]=N.call(r));d=be(d)}P.apply(r,d),o&&!e&&0<d.length&&1<c+y.length&&ae.uniqueSort(r)}return o&&(E=h,S=p),u}var v=0<y.length,_=0<g.length;return v?le(e):e}return ge.prototype=b.filters=b.pseudos,b.setFilters=new ge,h=ae.tokenize=function(e,t){var n,r,o,i,s,a,c,l=A[e+" "];if(l)return t?0:l.slice(0);for(s=e,a=[],c=b.preFilter;s;){for(i in n&&!(r=V.exec(s))||(r&&(s=s.slice(r[0].length)||s),a.push(o=[])),n=!1,(r=J.exec(s))&&(n=r.shift(),o.push({value:n,type:r[0].replace(z," ")}),s=s.slice(n.length)),b.filter)!(r=X[i].exec(s))||c[i]&&!(r=c[i](r))||(n=r.shift(),o.push({value:n,type:i,matches:r}),s=s.slice(n.length));if(!n)break}return t?s.length:s?ae.error(e):A(e,a).slice(0)},m=ae.compile=function(e,t){var n,r=[],o=[],i=R[e+" "];if(!i){for(n=(t=t||h(e)).length;n--;)((i=function e(t){for(var r,n,o,i=t.length,s=b.relative[t[0].type],a=s||b.relative[" "],c=s?1:0,l=ve(function(e){return e===r},a,!0),u=ve(function(e){return-1<j(r,e)},a,!0),d=[function(e,t,n){return n=!s&&(n||t!==S)||((r=t).nodeType?l:u)(e,t,n),r=null,n}];c<i;c++)if(n=b.relative[t[c].type])d=[ve(_e(d),n)];else{if((n=b.filter[t[c].type].apply(null,t[c].matches))[T]){for(o=++c;o<i&&!b.relative[t[o].type];o++);return Se(1<c&&_e(d),1<c&&ye(t.slice(0,c-1).concat({value:" "===t[c-2].type?"*":""})).replace(z,"$1"),n,c<o&&e(t.slice(c,o)),o<i&&e(t=t.slice(o)),o<i&&ye(t))}d.push(n)}return _e(d)}(t[n]))[T]?r:o).push(i);(i=R(e,we(o,r))).selector=e}return i},g=ae.select=function(e,t,n,r){var o,i,s,a,c,l="function"==typeof e&&e,u=!r&&h(e=l.selector||e);if(n=n||[],1===u.length){if(2<(i=u[0]=u[0].slice(0)).length&&"ID"===(s=i[0]).type&&9===t.nodeType&&x&&b.relative[i[1].type]){if(!(t=(b.find.ID(s.matches[0].replace(oe,d),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(i.shift().value.length)}for(o=X.needsContext.test(e)?0:i.length;o--&&(s=i[o],!b.relative[a=s.type]);)if((c=b.find[a])&&(r=c(s.matches[0].replace(oe,d),re.test(i[0].type)&&me(t.parentNode)||t))){if(i.splice(o,1),!(e=r.length&&ye(i)))return P.apply(n,r),n;break}}return(l||m(e,u))(r,t,!x,n,!t||re.test(e)&&me(t.parentNode)||t),n},f.sortStable=T.split("").sort(O).join("")===T,f.detectDuplicates=!!l,w(),f.sortDetached=ue(function(e){return 1&e.compareDocumentPosition(k.createElement("fieldset"))}),ue(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||de("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),f.attributes&&ue(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||de("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ue(function(e){return null==e.getAttribute("disabled")})||de(F,function(e,t,n){if(!n)return!0===e[t]?t.toLowerCase():(t=e.getAttributeNode(t))&&t.specified?t.value:null}),ae}(w);x.find=p,x.expr=p.selectors,x.expr[":"]=x.expr.pseudos,x.uniqueSort=x.unique=p.uniqueSort,x.text=p.getText,x.isXMLDoc=p.isXML,x.contains=p.contains,x.escapeSelector=p.escape;function f(e,t,n){for(var r=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&x(e).is(n))break;r.push(e)}return r}function S(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}var T=x.expr.match.needsContext;
vendor: 9,443 bytes, line 1
1function E(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var C=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function I(e,n,r){return m(n)?x.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?x.grep(e,function(e){return e===n!==r}):"string"!=typeof n?x.grep(e,function(e){return-1<o.call(n,e)!==r}):x.filter(n,e,r)}x.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?x.find.matchesSelector(r,e)?[r]:[]:x.find.matches(e,x.grep(t,function(e){return 1===e.nodeType}))},x.fn.extend({find:function(e){var t,n,r=this.length,o=this;if("string"!=typeof e)return this.pushStack(x(e).filter(function(){for(t=0;t<r;t++)if(x.contains(o[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)x.find(e,o[t],n);return 1<r?x.uniqueSort(n):n},filter:function(e){return this.pushStack(I(this,e||[],!1))},not:function(e){return this.pushStack(I(this,e||[],!0))},is:function(e){return!!I(this,"string"==typeof e&&T.test(e)?x(e):e||[],!1).length}});var A=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(x.fn.init=function(e,t,n){if(!e)return this;if(n=n||R,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(x):x.makeArray(e,this);if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:A.exec(e))||!r[1]&&t)return(!t||t.jquery?t||n:this.constructor(t)).find(e);if(r[1]){if(t=t instanceof x?t[0]:t,x.merge(this,x.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:k,!0)),C.test(r[1])&&x.isPlainObject(t))for(var r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(e=k.getElementById(r[2]))&&(this[0]=e,this.length=1),this}).prototype=x.fn;var R=x(k),M=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};function D(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}x.fn.extend({has:function(e){var t=x(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(x.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,o=this.length,i=[],s="string"!=typeof e&&x(e);if(!T.test(e))for(;r<o;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?-1<s.index(n):1===n.nodeType&&x.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(1<i.length?x.uniqueSort(i):i)},index:function(e){return e?"string"==typeof e?o.call(x(e),this[0]):o.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(x.uniqueSort(x.merge(this.get(),x(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),x.each({parent:function(e){e=e.parentNode;return e&&11!==e.nodeType?e:null},parents:function(e){return f(e,"parentNode")},parentsUntil:function(e,t,n){return f(e,"parentNode",n)},next:function(e){return D(e,"nextSibling")},prev:function(e){return D(e,"previousSibling")},nextAll:function(e){return f(e,"nextSibling")},prevAll:function(e){return f(e,"previousSibling")},nextUntil:function(e,t,n){return f(e,"nextSibling",n)},prevUntil:function(e,t,n){return f(e,"previousSibling",n)},siblings:function(e){return S((e.parentNode||{}).firstChild,e)},children:function(e){return S(e.firstChild)},contents:function(e){return null!=e.contentDocument&&n(e.contentDocument)?e.contentDocument:(E(e,"template")&&(e=e.content||e),x.merge([],e.childNodes))}},function(r,o){x.fn[r]=function(e,t){var n=x.map(this,o,e);return(t="Until"!==r.slice(-5)?e:t)&&"string"==typeof t&&(n=x.filter(t,n)),1<this.length&&(O[r]||x.uniqueSort(n),M.test(r)&&n.reverse()),this.pushStack(n)}});var N=/[^\x20\t\r\n\f]+/g;function L(e){return e}function P(e){throw e}function $(e,t,n,r){var o;try{e&&m(o=e.promise)?o.call(e).done(t).fail(n):e&&m(o=e.then)?o.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}x.Callbacks=function(r){var e,n;r="string"==typeof r?(e=r,n={},x.each(e.match(N)||[],function(e,t){n[t]=!0}),n):x.extend({},r);function o(){for(a=a||r.once,s=i=!0;l.length;u=-1)for(t=l.shift();++u<c.length;)!1===c[u].apply(t[0],t[1])&&r.stopOnFalse&&(u=c.length,t=!1);r.memory||(t=!1),i=!1,a&&(c=t?[]:"")}var i,t,s,a,c=[],l=[],u=-1,d={add:function(){return c&&(t&&!i&&(u=c.length-1,l.push(t)),function n(e){x.each(e,function(e,t){m(t)?r.unique&&d.has(t)||c.push(t):t&&t.length&&"string"!==h(t)&&n(t)})}(arguments),t&&!i&&o()),this},remove:function(){return x.each(arguments,function(e,t){for(var n;-1<(n=x.inArray(t,c,n));)c.splice(n,1),n<=u&&u--}),this},has:function(e){return e?-1<x.inArray(e,c):0<c.length},empty:function(){return c=c&&[],this},disable:function(){return a=l=[],c=t="",this},disabled:function(){return!c},lock:function(){return a=l=[],t||i||(c=t=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],l.push(t),i||o()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!s}};return d},x.extend({Deferred:function(e){var i=[["notify","progress",x.Callbacks("memory"),x.Callbacks("memory"),2],["resolve","done",x.Callbacks("once memory"),x.Callbacks("once memory"),0,"resolved"],["reject","fail",x.Callbacks("once memory"),x.Callbacks("once memory"),1,"rejected"]],o="pending",s={state:function(){return o},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return s.then(null,e)},pipe:function(){var o=arguments;return x.Deferred(function(r){x.each(i,function(e,t){var n=m(o[t[4]])&&o[t[4]];a[t[1]](function(){var e=n&&n.apply(this,arguments);e&&m(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this,n?[e]:arguments)})}),o=null}).promise()},then:function(t,n,r){var c=0;function l(o,i,s,a){return function(){function e(){var e,t;if(!(o<c)){if((e=s.apply(n,r))===i.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,m(t)?a?t.call(e,l(c,i,L,a),l(c,i,P,a)):(c++,t.call(e,l(c,i,L,a),l(c,i,P,a),l(c,i,L,i.notifyWith))):(s!==L&&(n=void 0,r=[e]),(a||i.resolveWith)(n,r))}}var n=this,r=arguments,t=a?e:function(){try{e()}catch(e){x.Deferred.exceptionHook&&x.Deferred.exceptionHook(e,t.stackTrace),c<=o+1&&(s!==P&&(n=void 0,r=[e]),i.rejectWith(n,r))}};o?t():(x.Deferred.getStackHook&&(t.stackTrace=x.Deferred.getStackHook()),w.setTimeout(t))}}return x.Deferred(function(e){i[0][3].add(l(0,e,m(r)?r:L,e.notifyWith)),i[1][3].add(l(0,e,m(t)?t:L)),i[2][3].add(l(0,e,m(n)?n:P))}).promise()},promise:function(e){return null!=e?x.extend(e,s):s}},a={};return x.each(i,function(e,t){var n=t[2],r=t[5];s[t[1]]=n.add,r&&n.add(function(){o=r},i[3-e][2].disable,i[3-e][3].disable,i[0][2].lock,i[0][3].lock),n.add(t[3].fire),a[t[0]]=function(){return a[t[0]+"With"](this===a?void 0:this,arguments),this},a[t[0]+"With"]=n.fireWith}),s.promise(a),e&&e.call(a,a),a},when:function(e){function t(t){return function(e){o[t]=this,i[t]=1<arguments.length?a.call(arguments):e,--n||s.resolveWith(o,i)}}var n=arguments.length,r=n,o=Array(r),i=a.call(arguments),s=x.Deferred();if(n<=1&&($(e,s.done(t(r)).resolve,s.reject,!n),"pending"===s.state()||m(i[r]&&i[r].then)))return s.then();for(;r--;)$(i[r],t(r),s.reject);return s.promise()}});var j=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;x.Deferred.exceptionHook=function(e,t){w.console&&w.console.warn&&e&&j.test(e.name)&&w.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},x.readyException=function(e){w.setTimeout(function(){throw e})};var F=x.Deferred();function B(){k.removeEventListener("DOMContentLoaded",B),w.removeEventListener("load",B),x.ready()}x.fn.ready=function(e){return F.then(e).catch(function(e){x.readyException(e)}),this},x.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--x.readyWait:x.isReady)||(x.isReady=!0)!==e&&0<--x.readyWait||F.resolveWith(k,[x])}}),x.ready.then=F.then,"complete"===k.readyState||"loading"!==k.readyState&&!k.documentElement.doScroll?w.setTimeout(x.ready):(k.addEventListener("DOMContentLoaded",B),w.addEventListener("load",B));function q(e,t,n,r,o,i,s){var a=0,c=e.length,l=null==n;if("object"===h(n))for(a in o=!0,n)q(e,t,a,n[a],!0,i,s);else if(void 0!==r&&(o=!0,m(r)||(s=!0),t=l?s?(t.call(e,r),null):(l=t,function(e,t,n){return l.call(x(e),n)}):t))for(;a<c;a++)t(e[a],n,s?r:r.call(e[a],a,t(e[a],n)));return o?e:l?t.call(e):c?t(e[0],n):i}var U=/^-ms-/,H=/-([a-z])/g;function W(e,t){return t.toUpperCase()}function z(e){return e.replace(U,"ms-").replace(H,W)}function V(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}function J(){this.expando=x.expando+J.uid++}J.uid=1,J.prototype={cache:function(e){var t=e[this.expando];return t||(t={},V(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,o=this.cache(e);if("string"==typeof t)o[z(t)]=n;else for(r in t)o[z(r)]=t[r];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][z(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(z):(t=z(t))in r?[t]:t.match(N)||[]).length;for(;n--;)delete r[t[n]]}void 0!==t&&!x.isEmptyObject(r)||(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){e=e[this.expando];return void 0!==e&&!x.isEmptyObject(e)}};var G=new J,K=new J,Y=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,X=/[A-Z]/g;function Q(e,t,n){var r,o;
vendor: 4,212 bytes, line 1
1if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(X,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(o=n)||"false"!==o&&("null"===o?null:o===+o+""?+o:Y.test(o)?JSON.parse(o):o)}catch(e){}K.set(e,t,n)}else n=void 0;return n}x.extend({hasData:function(e){return K.hasData(e)||G.hasData(e)},data:function(e,t,n){return K.access(e,t,n)},removeData:function(e,t){K.remove(e,t)},_data:function(e,t,n){return G.access(e,t,n)},_removeData:function(e,t){G.remove(e,t)}}),x.fn.extend({data:function(n,e){var t,r,o,i=this[0],s=i&&i.attributes;if(void 0!==n)return"object"==typeof n?this.each(function(){K.set(this,n)}):q(this,function(e){var t;return i&&void 0===e?void 0!==(t=K.get(i,n))||void 0!==(t=Q(i,n))?t:void 0:void this.each(function(){K.set(this,n,e)})},null,e,1<arguments.length,null,!0);if(this.length&&(o=K.get(i),1===i.nodeType&&!G.get(i,"hasDataAttrs"))){for(t=s.length;t--;)s[t]&&0===(r=s[t].name).indexOf("data-")&&(r=z(r.slice(5)),Q(i,r,o[r]));G.set(i,"hasDataAttrs",!0)}return o},removeData:function(e){return this.each(function(){K.remove(this,e)})}}),x.extend({queue:function(e,t,n){var r;if(e)return r=G.get(e,t=(t||"fx")+"queue"),n&&(!r||Array.isArray(n)?r=G.access(e,t,x.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=x.queue(e,t),r=n.length,o=n.shift(),i=x._queueHooks(e,t);"inprogress"===o&&(o=n.shift(),r--),o&&("fx"===t&&n.unshift("inprogress"),delete i.stop,o.call(e,function(){x.dequeue(e,t)},i)),!r&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return G.get(e,n)||G.access(e,n,{empty:x.Callbacks("once memory").add(function(){G.remove(e,[t+"queue",n])})})}}),x.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?x.queue(this[0],t):void 0===n?this:this.each(function(){var e=x.queue(this,t,n);x._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&x.dequeue(this,t)})},dequeue:function(e){return this.each(function(){x.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){function n(){--o||i.resolveWith(s,[s])}var r,o=1,i=x.Deferred(),s=this,a=this.length;for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(r=G.get(s[a],e+"queueHooks"))&&r.empty&&(o++,r.empty.add(n));return n(),i.promise(t)}});var Z=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ee=new RegExp("^(?:([+-])=|)("+Z+")([a-z%]*)$","i"),te=["Top","Right","Bottom","Left"],ne=k.documentElement,re=function(e){return x.contains(e.ownerDocument,e)},oe={composed:!0};ne.getRootNode&&(re=function(e){return x.contains(e.ownerDocument,e)||e.getRootNode(oe)===e.ownerDocument});function ie(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&re(e)&&"none"===x.css(e,"display")}function se(e,t,n,r){var o,i,s=20,a=r?function(){return r.cur()}:function(){return x.css(e,t,"")},c=a(),l=n&&n[3]||(x.cssNumber[t]?"":"px"),u=e.nodeType&&(x.cssNumber[t]||"px"!==l&&+c)&&ee.exec(x.css(e,t));if(u&&u[3]!==l){for(l=l||u[3],u=+(c/=2)||1;s--;)x.style(e,t,u+l),(1-i)*(1-(i=a()/c||.5))<=0&&(s=0),u/=i;x.style(e,t,(u*=2)+l),n=n||[]}return n&&(u=+u||+c||0,o=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=u,r.end=o)),o}var ae={};function ce(e,t){for(var n,r,o,i,s,a=[],c=0,l=e.length;c<l;c++)(r=e[c]).style&&(n=r.style.display,t?("none"===n&&(a[c]=G.get(r,"display")||null,a[c]||(r.style.display="")),""===r.style.display&&ie(r)&&(a[c]=(s=i=void 0,i=(o=r).ownerDocument,s=o.nodeName,(o=ae[s])||(i=i.body.appendChild(i.createElement(s)),o=x.css(i,"display"),i.parentNode.removeChild(i),ae[s]=o="none"===o?"block":o)))):"none"!==n&&(a[c]="none",G.set(r,"display",n)));for(c=0;c<l;c++)null!=a[c]&&(e[c].style.display=a[c]);return e}x.fn.extend({show:function(){return ce(this,!0)},hide:function(){return ce(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ie(this)?x(this).show():x(this).hide()})}});var le=/^(?:checkbox|radio)$/i,ue=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,de=/^$|^module$|\/(?:java|ecma)script/i;Jt=k.createDocumentFragment().appendChild(k.createElement("div")),(p=k.createElement("input")).setAttribute("type","radio"),p.setAttribute("checked","checked"),p.setAttribute("name","t"),Jt.appendChild(p),_.checkClone
vendor: 4,753 bytes, line 1
1=Jt.cloneNode(!0).cloneNode(!0).lastChild.checked,Jt.innerHTML="<textarea>x</textarea>",_.noCloneChecked=!!Jt.cloneNode(!0).lastChild.defaultValue,Jt.innerHTML="<option></option>",_.option=!!Jt.lastChild;var pe={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function fe(e,t){var n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&E(e,t)?x.merge([e],n):n}function he(e,t){for(var n=0,r=e.length;n<r;n++)G.set(e[n],"globalEval",!t||G.get(t[n],"globalEval"))}pe.tbody=pe.tfoot=pe.colgroup=pe.caption=pe.thead,pe.th=pe.td,_.option||(pe.optgroup=pe.option=[1,"<select multiple='multiple'>","</select>"]);var me=/<|&#?\w+;/;function ge(e,t,n,r,o){for(var i,s,a,c,l,u=t.createDocumentFragment(),d=[],p=0,f=e.length;p<f;p++)if((i=e[p])||0===i)if("object"===h(i))x.merge(d,i.nodeType?[i]:i);else if(me.test(i)){for(s=s||u.appendChild(t.createElement("div")),a=(ue.exec(i)||["",""])[1].toLowerCase(),a=pe[a]||pe._default,s.innerHTML=a[1]+x.htmlPrefilter(i)+a[2],l=a[0];l--;)s=s.lastChild;x.merge(d,s.childNodes),(s=u.firstChild).textContent=""}else d.push(t.createTextNode(i));for(u.textContent="",p=0;i=d[p++];)if(r&&-1<x.inArray(i,r))o&&o.push(i);else if(c=re(i),s=fe(u.appendChild(i),"script"),c&&he(s),n)for(l=0;i=s[l++];)de.test(i.type||"")&&n.push(i);return u}var ye=/^([^.]*)(?:\.(.+)|)/;function ve(){return!0}function _e(){return!1}function be(e,t){return e===function(){try{return k.activeElement}catch(e){}}()==("focus"===t)}function Se(e,t,n,r,o,i){var s,a;if("object"==typeof t){for(a in"string"!=typeof n&&(r=r||n,n=void 0),t)Se(e,a,n,r,t[a],i);return e}if(null==r&&null==o?(o=n,r=n=void 0):null==o&&("string"==typeof n?(o=r,r=void 0):(o=r,r=n,n=void 0)),!1===o)o=_e;else if(!o)return e;return 1===i&&(s=o,(o=function(e){return x().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=x.guid++)),e.each(function(){x.event.add(this,t,o,r,n)})}function we(e,o,i){i?(G.set(e,o,!1),x.event.add(e,o,{namespace:!1,handler:function(e){var t,n,r=G.get(this,o);if(1&e.isTrigger&&this[o]){if(r.length)(x.event.special[o]||{}).delegateType&&e.stopPropagation();else if(r=a.call(arguments),G.set(this,o,r),t=i(this,o),this[o](),r!==(n=G.get(this,o))||t?G.set(this,o,!1):n={},r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n&&n.value}else r.length&&(G.set(this,o,{value:x.event.trigger(x.extend(r[0],x.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===G.get(e,o)&&x.event.add(e,o,ve)}x.event={global:{},add:function(t,e,n,r,o){var i,s,a,c,l,u,d,p,f,h=G.get(t);if(V(t))for(n.handler&&(n=(i=n).handler,o=i.selector),o&&x.find.matchesSelector(ne,o),n.guid||(n.guid=x.guid++),(a=h.events)||(a=h.events=Object.create(null)),(s=h.handle)||(s=h.handle=function(e){return void 0!==x&&x.event.triggered!==e.type?x.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(N)||[""]).length;c--;)d=f=(l=ye.exec(e[c])||[])[1],p=(l[2]||"").split(".").sort(),d&&(u=x.event.special[d]||{},d=(o?u.delegateType:u.bindType)||d,u=x.event.special[d]||{},l=x.extend({type:d,origType:f,data:r,handler:n,guid:n.guid,selector:o,needsContext:o&&x.expr.match.needsContext.test(o),namespace:p.join(".")},i),(f=a[d])||((f=a[d]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(t,r,p,s)||t.addEventListener&&t.addEventListener(d,s)),u.add&&(u.add.call(t,l),l.handler.guid||(l.handler.guid=n.guid)),o?f.splice(f.delegateCount++,0,l):f.push(l),x.event.global[d]=!0)},remove:function(e,t,n,r,o){var i,s,a,c,l,u,d,p,f,h,m,g=G.hasData(e)&&G.get(e);if(g&&(c=g.events)){for(l=(t=(t||"").match(N)||[""]).length;l--;)if(f=m=(a=ye.exec(t[l])||[])[1],h=(a[2]||"").split(".").sort(),f){for(d=x.event.special[f]||{},p=c[f=(r?d.delegateType:d.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=i=p.length;i--;)u=p[i],!o&&m!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(p.splice(i,1),u.selector&&p.delegateCount--,d.remove&&d.remove.call(e,u));s&&!p.length&&(d.teardown&&!1!==d.teardown.call(e,h,g.handle)||x.removeEvent(e,f,g.handle),delete c[f])}else for(f in c)x.event.remove(e,f+t[l],n,r,!0);x.isEmptyObject(c)&&G.remove(e,"handle events")}},dispatch:function(e){var t,n,r,o,i,s=new Array(arguments.length),a=x.event.fix(e),c=(G.get(this,"events")||Object.create(null))[a.type]||[],e=x.event.special[a.type]||{};for(s[0]=a,t=1;t<arguments.length;t++)s[t]=arguments[t];if(a.delegateTarget=this,!e.preDispatch||!1!==e.preDispatch.call(this,a)){for(i=x.event.handlers.call(this,a,c),t=0;(r=i[t++])&&!a.isPropagationStopped();
vendor: 3,371 bytes, line 1
1)for(a.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!1!==o.namespace&&!a.rnamespace.test(o.namespace)||(a.handleObj=o,a.data=o.data,void 0!==(o=((x.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,s))&&!1===(a.result=o)&&(a.preventDefault(),a.stopPropagation()));return e.postDispatch&&e.postDispatch.call(this,a),a.result}},handlers:function(e,t){var n,r,o,i,s,a=[],c=t.delegateCount,l=e.target;if(c&&l.nodeType&&!("click"===e.type&&1<=e.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(i=[],s={},n=0;n<c;n++)void 0===s[o=(r=t[n]).selector+" "]&&(s[o]=r.needsContext?-1<x(o,this).index(l):x.find(o,this,null,[l]).length),s[o]&&i.push(r);i.length&&a.push({elem:l,handlers:i})}return l=this,c<t.length&&a.push({elem:l,handlers:t.slice(c)}),a},addProp:function(t,e){Object.defineProperty(x.Event.prototype,t,{enumerable:!0,configurable:!0,get:m(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[x.expando]?e:new x.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){e=this||e;return le.test(e.type)&&e.click&&E(e,"input")&&we(e,"click",ve),!1},trigger:function(e){e=this||e;return le.test(e.type)&&e.click&&E(e,"input")&&we(e,"click"),!0},_default:function(e){e=e.target;return le.test(e.type)&&e.click&&E(e,"input")&&G.get(e,"click")||E(e,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},x.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},x.Event=function(e,t){if(!(this instanceof x.Event))return new x.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?ve:_e,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&x.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[x.expando]=!0},x.Event.prototype={constructor:x.Event,isDefaultPrevented:_e,isPropagationStopped:_e,isImmediatePropagationStopped:_e,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=ve,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=ve,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=ve,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},x.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},x.event.addProp),x.each({focus:"focusin",blur:"focusout"},function(e,t){x.event.special[e]={setup:function(){return we(this,e,be),!1},trigger:function(){return we(this,e),!0},_default:function(){return!0},delegateType:t}}
vendor: 12,122 bytes, line 1
1),x.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,o){x.event.special[e]={delegateType:o,bindType:o,handle:function(e){var t,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||x.contains(this,n))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=o),t}}}),x.fn.extend({on:function(e,t,n,r){return Se(this,e,t,n,r)},one:function(e,t,n,r){return Se(this,e,t,n,r,1)},off:function(e,t,n){var r,o;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,x(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=_e),this.each(function(){x.event.remove(this,e,n,t)});for(o in e)this.off(o,t,e[o]);return this}});var ke=/<script|<style|<link/i,xe=/checked\s*(?:[^=]|=\s*.checked.)/i,Te=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Ee(e,t){return E(e,"table")&&E(11!==t.nodeType?t:t.firstChild,"tr")&&x(e).children("tbody")[0]||e}function Ce(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ie(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ae(e,t){var n,r,o,i;if(1===t.nodeType){if(G.hasData(e)&&(i=G.get(e).events))for(o in G.remove(t,"handle events"),i)for(n=0,r=i[o].length;n<r;n++)x.event.add(t,o,i[o][n]);K.hasData(e)&&(e=K.access(e),e=x.extend({},e),K.set(t,e))}}function Re(n,r,o,i){r=y(r);var e,t,s,a,c,l,u=0,d=n.length,p=d-1,f=r[0],h=m(f);if(h||1<d&&"string"==typeof f&&!_.checkClone&&xe.test(f))return n.each(function(e){var t=n.eq(e);h&&(r[0]=f.call(this,e,t.html())),Re(t,r,o,i)});if(d&&(t=(e=ge(r,n[0].ownerDocument,!1,n,i)).firstChild,1===e.childNodes.length&&(e=t),t||i)){for(a=(s=x.map(fe(e,"script"),Ce)).length;u<d;u++)c=e,u!==p&&(c=x.clone(c,!0,!0),a&&x.merge(s,fe(c,"script"))),o.call(n[u],c,u);if(a)for(l=s[s.length-1].ownerDocument,x.map(s,Ie),u=0;u<a;u++)c=s[u],de.test(c.type||"")&&!G.access(c,"globalEval")&&x.contains(l,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?x._evalUrl&&!c.noModule&&x._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},l):b(c.textContent.replace(Te,""),c,l))}return n}function Me(e,t,n){for(var r,o=t?x.filter(t,e):e,i=0;null!=(r=o[i]);i++)n||1!==r.nodeType||x.cleanData(fe(r)),r.parentNode&&(n&&re(r)&&he(fe(r,"script")),r.parentNode.removeChild(r));return e}x.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,o,i,s,a,c,l,u=e.cloneNode(!0),d=re(e);if(!(_.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||x.isXMLDoc(e)))for(s=fe(u),r=0,o=(i=fe(e)).length;r<o;r++)a=i[r],c=s[r],l=void 0,"input"===(l=c.nodeName.toLowerCase())&&le.test(a.type)?c.checked=a.checked:"input"!==l&&"textarea"!==l||(c.defaultValue=a.defaultValue);if(t)if(n)for(i=i||fe(e),s=s||fe(u),r=0,o=i.length;r<o;r++)Ae(i[r],s[r]);else Ae(e,u);return 0<(s=fe(u,"script")).length&&he(s,!d&&fe(e,"script")),u},cleanData:function(e){for(var t,n,r,o=x.event.special,i=0;void 0!==(n=e[i]);i++)if(V(n)){if(t=n[G.expando]){if(t.events)for(r in t.events)o[r]?x.event.remove(n,r):x.removeEvent(n,r,t.handle);n[G.expando]=void 0}n[K.expando]&&(n[K.expando]=void 0)}}}),x.fn.extend({detach:function(e){return Me(this,e,!0)},remove:function(e){return Me(this,e)},text:function(e){return q(this,function(e){return void 0===e?x.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Re(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ee(this,e).appendChild(e)})},prepend:function(){return Re(this,arguments,function(e){var t;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(t=Ee(this,e)).insertBefore(e,t.firstChild)})},before:function(){return Re(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Re(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(x.cleanData(fe(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return x.clone(this,e,t)})},html:function(e){return q(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!ke.test(e)&&!pe[(ue.exec(e)||["",""])[1].toLowerCase()]){e=x.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(x.cleanData(fe(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return Re(this,arguments,function(e){var t=this.parentNode;x.inArray(this,n)<0&&(x.cleanData(fe(this)),t&&t.replaceChild(e,this))},n)}}),x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,s){x.fn[e]=function(e){for(var t,n=[],r=x(e),o=r.length-1,i=0;i<=o;i++)t=i===o?this:this.clone(!0),x(r[i])[s](t),c.apply(n,t.get());return this.pushStack(n)}});function Oe(e){var t=e.ownerDocument.defaultView;return(t=!t||!t.opener?w:t).getComputedStyle(e)}function De(e,t,n){var r,o={};for(r in t)o[r]=e.style[r],e.style[r]=t[r];for(r in n=n.call(e),t)e.style[r]=o[r];return n}var Ne,Le,Pe,$e,je,Fe,Be,qe,Ue=new RegExp("^("+Z+")(?!px)[a-z%]+$","i"),He=new RegExp(te.join("|"),"i");function We(){var e;qe&&(Be.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",qe.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ne.appendChild(Be).appendChild(qe),e=w.getComputedStyle(qe),Ne="1%"!==e.top,Fe=12===ze(e.marginLeft),qe.style.right="60%",$e=36===ze(e.right),Le=36===ze(e.width),qe.style.position="absolute",Pe=12===ze(qe.offsetWidth/3),ne.removeChild(Be),qe=null)}function ze(e){return Math.round(parseFloat(e))}function Ve(e,t,n){var r,o,i=e.style;return(n=n||Oe(e))&&(""!==(o=n.getPropertyValue(t)||n[t])||re(e)||(o=x.style(e,t)),!_.pixelBoxStyles()&&Ue.test(o)&&He.test(t)&&(r=i.width,e=i.minWidth,t=i.maxWidth,i.minWidth=i.maxWidth=i.width=o,o=n.width,i.width=r,i.minWidth=e,i.maxWidth=t)),void 0!==o?o+"":o}function Je(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}Be=k.createElement("div"),(qe=k.createElement("div")).style&&(qe.style.backgroundClip="content-box",qe.cloneNode(!0).style.backgroundClip="",_.clearCloneStyle="content-box"===qe.style.backgroundClip,x.extend(_,{boxSizingReliable:function(){return We(),Le},pixelBoxStyles:function(){return We(),$e},pixelPosition:function(){return We(),Ne},reliableMarginLeft:function(){return We(),Fe},scrollboxSize:function(){return We(),Pe},reliableTrDimensions:function(){var e,t,n;return null==je&&(e=k.createElement("table"),t=k.createElement("tr"),n=k.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",ne.appendChild(e).appendChild(t).appendChild(n),n=w.getComputedStyle(t),je=parseInt(n.height,10)+parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10)===t.offsetHeight,ne.removeChild(e)),je}}));var Ge=["Webkit","Moz","ms"],Ke=k.createElement("div").style,Ye={};function Xe(e){var t=x.cssProps[e]||Ye[e];return t||(e in Ke?e:Ye[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Ge.length;n--;)if((e=Ge[n]+t)in Ke)return e}(e)||e)}var Qe=/^(none|table(?!-c[ea]).+)/,Ze=/^--/,et={position:"absolute",visibility:"hidden",display:"block"},tt={letterSpacing:"0",fontWeight:"400"};function nt(e,t,n){var r=ee.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function rt(e,t,n,r,o,i){var s="width"===t?1:0,a=0,c=0;if(n===(r?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(c+=x.css(e,n+te[s],!0,o)),r?("content"===n&&(c-=x.css(e,"padding"+te[s],!0,o)),"margin"!==n&&(c-=x.css(e,"border"+te[s]+"Width",!0,o))):(c+=x.css(e,"padding"+te[s],!0,o),"padding"!==n?c+=x.css(e,"border"+te[s]+"Width",!0,o):a+=x.css(e,"border"+te[s]+"Width",!0,o));return!r&&0<=i&&(c+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-i-c-a-.5))||0),c}function ot(e,t,n){var r=Oe(e),o=(!_.boxSizingReliable()||n)&&"border-box"===x.css(e,"boxSizing",!1,r),i=o,s=Ve(e,t,r),a="offset"+t[0].toUpperCase()+t.slice(1);if(Ue.test(s)){if(!n)return s;s="auto"}return(!_.boxSizingReliable()&&o||!_.reliableTrDimensions()&&E(e,"tr")||"auto"===s||!parseFloat(s)&&"inline"===x.css(e,"display",!1,r))&&e.getClientRects().length&&(o="border-box"===x.css(e,"boxSizing",!1,r),(i=a in e)&&(s=e[a])),(s=parseFloat(s)||0)+rt(e,t,n||(o?"border":"content"),i,r,s)+"px"}function it(e,t,n,r,o){return new it.prototype.init(e,t,n,r,o)}x.extend({cssHooks:{opacity:{get:function(e,t){if(t){e=Ve(e,"opacity");return""===e?"1":e}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,i,s,a=z(t),c=Ze.test(t),l=e.style;if(c||(t=Xe(a)),s=x.cssHooks[t]||x.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(o=s.get(e,!1,r))?o:l[t];"string"===(i=typeof n)&&(o=ee.exec(n))&&o[1]&&(n=se(e,t,o),i="number"),null!=n&&n==n&&("number"!==i||c||(n+=o&&o[3]||(x.cssNumber[a]?"":"px")),_.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,r))||(c?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var o,i=z(t);return Ze.test(t)||(t=Xe(i)),"normal"===(o=void 0===(o=(i=x.cssHooks[t]||x.cssHooks[i])&&"get"in i?i.get(e,!0,n):o)?Ve(e,t,r):o)&&t in tt&&(o=tt[t]),""===n||n?(t=parseFloat(o),!0===n||isFinite(t)?t||0:o):o}}),x.each(["height","width"],function(e,a){x.cssHooks[a]={get:function(e,t,n){if(t)return!Qe.test(x.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ot(e,a,n):De(e,et,function(){return ot(e,a,n)})},set:function(e,t,n){var r,o=Oe(e),i=!_.scrollboxSize()&&"absolute"===o.position,s=(i||n)&&"border-box"===x.css(e,"boxSizing",!1,o),n=n?rt(e,a,n,s,o):0;return s&&i&&(n-=Math.ceil(e["offset"+a[0].toUpperCase()+a.slice(1)]-parseFloat(o[a])-rt(e,a,"border",!1,o)-.5)),n&&(r=ee.exec(t))&&"px"!==(r[3]||"px")&&(e.style[a]=t,t=x.css(e,a)),nt(0,t,n)}}}),x.cssHooks.marginLeft=Je(_.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ve(e,"marginLeft"))||e.getBoundingClientRect().left-De(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),x.each({margin:"",padding:"",border:"Width"},function(o,i){x.cssHooks[o+i]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[o+te[t]+i]=r[t]||r[t-2]||r[0];return n}},"margin"!==o&&(x.cssHooks[o+i].set=nt)}),x.fn.extend({css:function(e,t){return q(this,function(e,t,n){var r,o,i={},s=0;if(Array.isArray(t)){for(r=Oe(e),o=t.length;s<o;s++)i[t[s]]=x.css(e,t[s],!1,r);return i}return void 0!==n?x.style(e,t,n):x.css(e,t)},e,t,1<arguments.length)}}),((x.Tween=it).prototype={constructor:it,init:function(e,t,n,r,o,i){this.elem=e,this.prop=n,this.easing=o||x.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=i||(x.cssNumber[n]?"":"px")},cur:function(){var e=it.propHooks[this.prop];return(e&&e.get?e:it.propHooks._default).get(this)},run:function(e){var t,n=it.propHooks[this.prop];return this.options.duration?this.pos=t=x.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),(n&&n.set?n:it.propHooks._default).set(this),this}}).init.prototype=it.prototype,(it.propHooks={_default:{get:function(e){return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(e=x.css(e.elem,e.prop,""))&&"auto"!==e?e:0}
vendor: 3,190 bytes, line 1
1,set:function(e){x.fx.step[e.prop]?x.fx.step[e.prop](e):1!==e.elem.nodeType||!x.cssHooks[e.prop]&&null==e.elem.style[Xe(e.prop)]?e.elem[e.prop]=e.now:x.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=it.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},x.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},x.fx=it.prototype.init,x.fx.step={};var st,at,ct=/^(?:toggle|show|hide)$/,lt=/queueHooks$/;function ut(){at&&(!1===k.hidden&&w.requestAnimationFrame?w.requestAnimationFrame(ut):w.setTimeout(ut,x.fx.interval),x.fx.tick())}function dt(){return w.setTimeout(function(){st=void 0}),st=Date.now()}function pt(e,t){var n,r=0,o={height:e};for(t=t?1:0;r<4;r+=2-t)o["margin"+(n=te[r])]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function ft(e,t,n){for(var r,o=(ht.tweeners[t]||[]).concat(ht.tweeners["*"]),i=0,s=o.length;i<s;i++)if(r=o[i].call(n,t,e))return r}function ht(o,e,t){var n,i,r=0,s=ht.prefilters.length,a=x.Deferred().always(function(){delete c.elem}),c=function(){if(i)return!1;for(var e=st||dt(),e=Math.max(0,l.startTime+l.duration-e),t=1-(e/l.duration||0),n=0,r=l.tweens.length;n<r;n++)l.tweens[n].run(t);return a.notifyWith(o,[l,t,e]),t<1&&r?e:(r||a.notifyWith(o,[l,1,0]),a.resolveWith(o,[l]),!1)},l=a.promise({elem:o,props:x.extend({},e),opts:x.extend(!0,{specialEasing:{},easing:x.easing._default},t),originalProperties:e,originalOptions:t,startTime:st||dt(),duration:t.duration,tweens:[],createTween:function(e,t){e=x.Tween(o,l.opts,e,t,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(e),e},stop:function(e){var t=0,n=e?l.tweens.length:0;if(i)return this;for(i=!0;t<n;t++)l.tweens[t].run(1);return e?(a.notifyWith(o,[l,1,0]),a.resolveWith(o,[l,e])):a.rejectWith(o,[l,e]),this}}),u=l.props;for(!function(e,t){var n,r,o,i,s;for(n in e)if(o=t[r=z(n)],i=e[n],Array.isArray(i)&&(o=i[1],i=e[n]=i[0]),n!==r&&(e[r]=i,delete e[n]),(s=x.cssHooks[r])&&"expand"in s)for(n in i=s.expand(i),delete e[r],i)n in e||(e[n]=i[n],t[n]=o);else t[r]=o}(u,l.opts.specialEasing);r<s;r++)if(n=ht.prefilters[r].call(l,o,u,l.opts))return m(n.stop)&&(x._queueHooks(l.elem,l.opts.queue).stop=n.stop.bind(n)),n;return x.map(u,ft,l),m(l.opts.start)&&l.opts.start.call(o,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),x.fx.timer(x.extend(c,{elem:o,anim:l,queue:l.opts.queue})),l}x.Animation=x.extend(ht,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return se(n.elem,e,ee.exec(t),n),n}]},tweener:function(e,t){for(var n,r=0,o=(e=m(e)?(t=e,["*"]):e.match(N)).length;r<o;r++)n=e[r],ht.tweeners[n]=ht.tweeners[n]||[],ht.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,o,i,s,a,c,l,u="width"in t||"height"in t,d=this,p={},f=e.style,h=e.nodeType&&ie(e),m=G.get(e,"fxshow");for(r in n.queue||(null==(s=x._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,d.always(function(){d.always(function(){s.unqueued--,x.queue(e,"fx").length||s.empty.fire()})})),t)if(o=t[r],ct.test(o)){if(delete t[r],i=i||"toggle"===o,o===(h?"hide":"show")){if("show"!==o||
vendor: 4,771 bytes, line 1
1!m||void 0===m[r])continue;h=!0}p[r]=m&&m[r]||x.style(e,r)}if((c=!x.isEmptyObject(t))||!x.isEmptyObject(p))for(r in u&&1===e.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],null==(l=m&&m.display)&&(l=G.get(e,"display")),"none"===(u=x.css(e,"display"))&&(l?u=l:(ce([e],!0),l=e.style.display||l,u=x.css(e,"display"),ce([e]))),("inline"===u||"inline-block"===u&&null!=l)&&"none"===x.css(e,"float")&&(c||(d.done(function(){f.display=l}),null==l&&(u=f.display,l="none"===u?"":u)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",d.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]})),c=!1,p)c||(m?"hidden"in m&&(h=m.hidden):m=G.access(e,"fxshow",{display:l}),i&&(m.hidden=!h),h&&ce([e],!0),d.done(function(){for(r in h||ce([e]),G.remove(e,"fxshow"),p)x.style(e,r,p[r])})),c=ft(h?m[r]:0,r,d),r in m||(m[r]=c.start,h&&(c.end=c.start,c.start=0))}],prefilter:function(e,t){t?ht.prefilters.unshift(e):ht.prefilters.push(e)}}),x.speed=function(e,t,n){var r=e&&"object"==typeof e?x.extend({},e):{complete:n||!n&&t||m(e)&&e,duration:e,easing:n&&t||t&&!m(t)&&t};return x.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in x.fx.speeds?r.duration=x.fx.speeds[r.duration]:r.duration=x.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){m(r.old)&&r.old.call(this),r.queue&&x.dequeue(this,r.queue)},r},x.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ie).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){var o=x.isEmptyObject(t),i=x.speed(e,n,r),r=function(){var e=ht(this,x.extend({},t),i);(o||G.get(this,"finish"))&&e.stop(!0)};return r.finish=r,o||!1===i.queue?this.each(r):this.queue(i.queue,r)},stop:function(o,e,i){function s(e){var t=e.stop;delete e.stop,t(i)}return"string"!=typeof o&&(i=e,e=o,o=void 0),e&&this.queue(o||"fx",[]),this.each(function(){var e=!0,t=null!=o&&o+"queueHooks",n=x.timers,r=G.get(this);if(t)r[t]&&r[t].stop&&s(r[t]);else for(t in r)r[t]&&r[t].stop&&lt.test(t)&&s(r[t]);for(t=n.length;t--;)n[t].elem!==this||null!=o&&n[t].queue!==o||(n[t].anim.stop(i),e=!1,n.splice(t,1));!e&&i||x.dequeue(this,o)})},finish:function(s){return!1!==s&&(s=s||"fx"),this.each(function(){var e,t=G.get(this),n=t[s+"queue"],r=t[s+"queueHooks"],o=x.timers,i=n?n.length:0;for(t.finish=!0,x.queue(this,s,[]),r&&r.stop&&r.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===s&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<i;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),x.each(["toggle","show","hide"],function(e,r){var o=x.fn[r];x.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?o.apply(this,arguments):this.animate(pt(r,!0),e,t,n)}}),x.each({slideDown:pt("show"),slideUp:pt("hide"),slideToggle:pt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){x.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),x.timers=[],x.fx.tick=function(){var e,t=0,n=x.timers;for(st=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||x.fx.stop(),st=void 0},x.fx.timer=function(e){x.timers.push(e),x.fx.start()},x.fx.interval=13,x.fx.start=function(){at||(at=!0,ut())},x.fx.stop=function(){at=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fn.delay=function(r,e){return r=x.fx&&x.fx.speeds[r]||r,this.queue(e=e||"fx",function(e,t){var n=w.setTimeout(e,r);t.stop=function(){w.clearTimeout(n)}})},Jt=k.createElement("input"),Z=k.createElement("select").appendChild(k.createElement("option")),Jt.type="checkbox",_.checkOn=""!==Jt.value,_.optSelected=Z.selected,(Jt=k.createElement("input")).value="t",Jt.type="radio",_.radioValue="t"===Jt.value;var mt,gt=x.expr.attrHandle;x.fn.extend({attr:function(e,t){return q(this,x.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){x.removeAttr(this,e)})}}),x.extend({attr:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return void 0===e.getAttribute?x.prop(e,t,n):(1===i&&x.isXMLDoc(e)||(o=x.attrHooks[t.toLowerCase()]||(x.expr.match.bool.test(t)?mt:void 0)),void 0!==n?null===n?void x.removeAttr(e,t):o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:(e.setAttribute(t,n+""),n):!(o&&"get"in o&&null!==(r=o.get(e,t)))&&null==(r=x.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!_.radioValue&&"radio"===t&&E(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,o=t&&t.match(N);if(o&&1===e.nodeType)for(;n=o[r++];)e.removeAttribute(n)}}),mt={set:function(e,t,n){return!1===t?x.removeAttr(e,n):e.setAttribute(n,n),n}},x.each(x.expr.match.bool.source.match(/\w+/g),function(e,t){var s=gt[t]||x.find.attr;gt[t]=function(e,t,n){var r,o,i=t.toLowerCase();
vendor: 4,632 bytes, line 1
1return n||(o=gt[i],gt[i]=r,r=null!=s(e,t,n)?i:null,gt[i]=o),r}});var yt=/^(?:input|select|textarea|button)$/i,vt=/^(?:a|area)$/i;function _t(e){return(e.match(N)||[]).join(" ")}function bt(e){return e.getAttribute&&e.getAttribute("class")||""}function St(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(N)||[]}x.fn.extend({prop:function(e,t){return q(this,x.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[x.propFix[e]||e]})}}),x.extend({prop:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&x.isXMLDoc(e)||(t=x.propFix[t]||t,o=x.propHooks[t]),void 0!==n?o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:e[t]=n:o&&"get"in o&&null!==(r=o.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=x.find.attr(e,"tabindex");return t?parseInt(t,10):yt.test(e.nodeName)||vt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),_.optSelected||(x.propHooks.selected={get:function(e){e=e.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(e){e=e.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this}),x.fn.extend({addClass:function(t){var e,n,r,o,i,s,a=0;if(m(t))return this.each(function(e){x(this).addClass(t.call(this,e,bt(this)))});if((e=St(t)).length)for(;n=this[a++];)if(s=bt(n),r=1===n.nodeType&&" "+_t(s)+" "){for(i=0;o=e[i++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");s!==(s=_t(r))&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,r,o,i,s,a=0;if(m(t))return this.each(function(e){x(this).removeClass(t.call(this,e,bt(this)))});if(!arguments.length)return this.attr("class","");if((e=St(t)).length)for(;n=this[a++];)if(s=bt(n),r=1===n.nodeType&&" "+_t(s)+" "){for(i=0;o=e[i++];)for(;-1<r.indexOf(" "+o+" ");)r=r.replace(" "+o+" "," ");s!==(s=_t(r))&&n.setAttribute("class",s)}return this},toggleClass:function(o,t){var i=typeof o,s="string"==i||Array.isArray(o);return"boolean"==typeof t&&s?t?this.addClass(o):this.removeClass(o):m(o)?this.each(function(e){x(this).toggleClass(o.call(this,e,bt(this),t),t)}):this.each(function(){var e,t,n,r;if(s)for(t=0,n=x(this),r=St(o);e=r[t++];)n.hasClass(e)?n.removeClass(e):n.addClass(e);else void 0!==o&&"boolean"!=i||((e=bt(this))&&G.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==o&&G.get(this,"__className__")||""))})},hasClass:function(e){for(var t,n=0,r=" "+e+" ";t=this[n++];)if(1===t.nodeType&&-1<(" "+_t(bt(t))+" ").indexOf(r))return!0;return!1}});var wt=/\r/g;x.fn.extend({val:function(t){var n,e,r,o=this[0];return arguments.length?(r=m(t),this.each(function(e){1===this.nodeType&&(null==(e=r?t.call(this,e,x(this).val()):t)?e="":"number"==typeof e?e+="":Array.isArray(e)&&(e=x.map(e,function(e){return null==e?"":e+""})),(n=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,e,"value")||(this.value=e))})):o?(n=x.valHooks[o.type]||x.valHooks[o.nodeName.toLowerCase()])&&"get"in n&&void 0!==(e=n.get(o,"value"))?e:"string"==typeof(e=o.value)?e.replace(wt,""):null==e?"":e:void 0}}),x.extend({valHooks:{option:{get:function(e){var t=x.find.attr(e,"value");return null!=t?t:_t(x.text(e))}},select:{get:function(e){for(var t,n=e.options,r=e.selectedIndex,o="select-one"===e.type,i=o?null:[],s=o?r+1:n.length,a=r<0?s:o?r:0;a<s;a++)if(((t=n[a]).selected||a===r)&&!t.disabled&&(!t.parentNode.disabled||!E(t.parentNode,"optgroup"))){if(t=x(t).val(),o)return t;i.push(t)}return i},set:function(e,t){for(var n,r,o=e.options,i=x.makeArray(t),s=o.length;s--;)((r=o[s]).selected=-1<x.inArray(x.valHooks.option.get(r),i))&&(n=!0);return n||(e.selectedIndex=-1),i}}}}),x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<x.inArray(x(e).val(),t)}},_.checkOn||(x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),_.focusin="onfocusin"in w;function kt(e){e.stopPropagation()}var xt=/^(?:focusinfocus|focusoutblur)$/;x.extend(x.event,{trigger:function(e,t,n,r){var o,i,s,a,c,l,u,d=[n||k],p=v.call(e,"type")?e.type:e,f=v.call(e,"namespace")?e.namespace.split("."):[],h=u=i=n=n||k;if(3!==n.nodeType&&8!==n.nodeType&&!xt.test(p+x.event.triggered)&&(-1<p.indexOf(".")&&(p=(f=p.split(".")).shift(),f.sort()),a=p.indexOf(":")<0&&"on"+p,(e=e[x.expando]?e:new x.Event(p,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=f.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+f.
vendor: 12,183 bytes, line 1
1join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:x.makeArray(t,[e]),l=x.event.special[p]||{},r||!l.trigger||!1!==l.trigger.apply(n,t))){if(!r&&!l.noBubble&&!g(n)){for(s=l.delegateType||p,xt.test(s+p)||(h=h.parentNode);h;h=h.parentNode)d.push(h),i=h;i===(n.ownerDocument||k)&&d.push(i.defaultView||i.parentWindow||w)}for(o=0;(h=d[o++])&&!e.isPropagationStopped();)u=h,e.type=1<o?s:l.bindType||p,(c=(G.get(h,"events")||Object.create(null))[e.type]&&G.get(h,"handle"))&&c.apply(h,t),(c=a&&h[a])&&c.apply&&V(h)&&(e.result=c.apply(h,t),!1===e.result&&e.preventDefault());return e.type=p,r||e.isDefaultPrevented()||l._default&&!1!==l._default.apply(d.pop(),t)||!V(n)||a&&m(n[p])&&!g(n)&&((i=n[a])&&(n[a]=null),x.event.triggered=p,e.isPropagationStopped()&&u.addEventListener(p,kt),n[p](),e.isPropagationStopped()&&u.removeEventListener(p,kt),x.event.triggered=void 0,i&&(n[a]=i)),e.result}},simulate:function(e,t,n){e=x.extend(new x.Event,n,{type:e,isSimulated:!0});x.event.trigger(e,null,t)}}),x.fn.extend({trigger:function(e,t){return this.each(function(){x.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return x.event.trigger(e,t,n,!0)}}),_.focusin||x.each({focus:"focusin",blur:"focusout"},function(n,r){function o(e){x.event.simulate(r,e.target,x.event.fix(e))}x.event.special[r]={setup:function(){var e=this.ownerDocument||this.document||this,t=G.access(e,r);t||e.addEventListener(n,o,!0),G.access(e,r,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=G.access(e,r)-1;t?G.access(e,r,t):(e.removeEventListener(n,o,!0),G.remove(e,r))}}});var Tt=w.location,Et={guid:Date.now()},Ct=/\?/;x.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new w.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||x.error("Invalid XML: "+(n?x.map(n.childNodes,function(e){return e.textContent}).join("\n"):e)),t};var It=/\[\]$/,At=/\r?\n/g,Rt=/^(?:submit|button|image|reset|file)$/i,Mt=/^(?:input|select|textarea|keygen)/i;x.param=function(e,t){function n(e,t){t=m(t)?t():t,o[o.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==t?"":t)}var r,o=[];if(null==e)return"";if(Array.isArray(e)||e.jquery&&!x.isPlainObject(e))x.each(e,function(){n(this.name,this.value)});else for(r in e)!function n(r,e,o,i){if(Array.isArray(e))x.each(e,function(e,t){o||It.test(r)?i(r,t):n(r+"["+("object"==typeof t&&null!=t?e:"")+"]",t,o,i)});else if(o||"object"!==h(e))i(r,e);else for(var t in e)n(r+"["+t+"]",e[t],o,i)}(r,e[r],t,n);return o.join("&")},x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=x.prop(this,"elements");return e?x.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!x(this).is(":disabled")&&Mt.test(this.nodeName)&&!Rt.test(e)&&(this.checked||!le.test(e))}).map(function(e,t){var n=x(this).val();return null==n?null:Array.isArray(n)?x.map(n,function(e){return{name:t.name,value:e.replace(At,"\r\n")}}):{name:t.name,value:n.replace(At,"\r\n")}}).get()}});var Ot=/%20/g,Dt=/#.*$/,Nt=/([?&])_=[^&]*/,Lt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Pt=/^(?:GET|HEAD)$/,$t=/^\/\//,jt={},Ft={},Bt="*/".concat("*"),qt=k.createElement("a");function Ut(i){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,o=e.toLowerCase().match(N)||[];if(m(t))for(;n=o[r++];)"+"===n[0]?(n=n.slice(1)||"*",(i[n]=i[n]||[]).unshift(t)):(i[n]=i[n]||[]).push(t)}}function Ht(t,r,o,i){var s={},a=t===Ft;function c(e){var n;return s[e]=!0,x.each(t[e]||[],function(e,t){t=t(r,o,i);return"string"!=typeof t||a||s[t]?a?!(n=t):void 0:(r.dataTypes.unshift(t),c(t),!1)}),n}return c(r.dataTypes[0])||!s["*"]&&c("*")}function Wt(e,t){var n,r,o=x.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((o[n]?e:r=r||{})[n]=t[n]);return r&&x.extend(!0,e,r),e}qt.href=Tt.href,x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Tt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Tt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Bt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Wt(Wt(e,x.ajaxSettings),t):Wt(x.ajaxSettings,e)},ajaxPrefilter:Ut(jt),ajaxTransport:Ut(Ft),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0);var c,l,u,n,d,p,f,r,o,h=x.ajaxSetup({},t=t||{}),m=h.context||h,g=h.context&&(m.nodeType||m.jquery)?x(m):x.event,y=x.Deferred(),v=x.Callbacks("once memory"),_=h.statusCode||{},i={},s={},a="canceled",b={readyState:0,getResponseHeader:function(e){var t;if(p){if(!n)for(n={};t=Lt.exec(u);)n[t[1].toLowerCase()+" "]=(n[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=n[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return p?u:null},setRequestHeader:function(e,t){return null==p&&(e=s[e.toLowerCase()]=s[e.toLowerCase()]||e,i[e]=t),this},overrideMimeType:function(e){return null==p&&(h.mimeType=e),this},statusCode:function(e){if(e)if(p)b.always(e[b.status]);else for(var t in e)_[t]=[_[t],e[t]];return this},abort:function(e){e=e||a;return c&&c.abort(e),S(0,e),this}};if(y.promise(b),h.url=((e||h.url||Tt.href)+"").replace($t,Tt.protocol+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(N)||[""],null==h.crossDomain){o=k.createElement("a");try{o.href=h.url,o.href=o.href,h.crossDomain=qt.protocol+"//"+qt.host!=o.protocol+"//"+o.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=x.param(h.data,h.traditional)),Ht(jt,h,t,b),p)return b;for(r in(f=x.event&&h.global)&&0==x.active++&&x.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Pt.test(h.type),l=h.url.replace(Dt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Ot,"+")):(o=h.url.slice(l.length),h.data&&(h.processData||"string"==typeof h.data)&&(l+=(Ct.test(l)?"&":"?")+h.data,delete h.data),!1===h.cache&&(l=l.replace(Nt,"$1"),o=(Ct.test(l)?"&":"?")+"_="+Et.guid+++o),h.url=l+o),h.ifModified&&(x.lastModified[l]&&b.setRequestHeader("If-Modified-Since",x.lastModified[l]),x.etag[l]&&b.setRequestHeader("If-None-Match",x.etag[l])),(h.data&&h.hasContent&&!1!==h.contentType||t.contentType)&&b.setRequestHeader("Content-Type",h.contentType),b.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Bt+"; q=0.01":""):h.accepts["*"]),h.headers)b.setRequestHeader(r,h.headers[r]);if(h.beforeSend&&(!1===h.beforeSend.call(m,b,h)||p))return b.abort();if(a="abort",v.add(h.complete),b.done(h.success),b.fail(h.error),c=Ht(Ft,h,t,b)){if(b.readyState=1,f&&g.trigger("ajaxSend",[b,h]),p)return b;h.async&&0<h.timeout&&(d=w.setTimeout(function(){b.abort("timeout")},h.timeout));try{p=!1,c.send(i,S)}catch(e){if(p)throw e;S(-1,e)}}else S(-1,"No Transport");function S(e,t,n,r){var o,i,s,a=t;p||(p=!0,d&&w.clearTimeout(d),c=void 0,u=r||"",b.readyState=0<e?4:0,r=200<=e&&e<300||304===e,n&&(s=function(e,t,n){for(var r,o,i,s,a=e.contents,c=e.dataTypes;"*"===c[0];)c.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(o in a)if(a[o]&&a[o].test(r)){c.unshift(o);break}if(c[0]in n)i=c[0];else{for(o in n){if(!c[0]||e.converters[o+" "+c[0]]){i=o;break}s=s||o}i=i||s}if(i)return i!==c[0]&&c.unshift(i),n[i]}(h,b,n)),!r&&-1<x.inArray("script",h.dataTypes)&&x.inArray("json",h.dataTypes)<0&&(h.converters["text script"]=function(){}),s=function(e,t,n,r){var o,i,s,a,c,l={},u=e.dataTypes.slice();if(u[1])for(s in e.converters)l[s.toLowerCase()]=e.converters[s];for(i=u.shift();i;)if(e.responseFields[i]&&(n[e.responseFields[i]]=t),!c&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),c=i,i=u.shift())if("*"===i)i=c;else if("*"!==c&&c!==i){if(!(s=l[c+" "+i]||l["* "+i]))for(o in l)if((a=o.split(" "))[1]===i&&(s=l[c+" "+a[0]]||l["* "+a[0]])){!0===s?s=l[o]:!0!==l[o]&&(i=a[0],u.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+c+" to "+i}}}return{state:"success",data:t}}(h,s,b,r),r?(h.ifModified&&((n=b.getResponseHeader("Last-Modified"))&&(x.lastModified[l]=n),(n=b.getResponseHeader("etag"))&&(x.etag[l]=n)),204===e||"HEAD"===h.type?a="nocontent":304===e?a="notmodified":(a=s.state,o=s.data,r=!(i=s.error))):(i=a,!e&&a||(a="error",e<0&&(e=0))),b.status=e,b.statusText=(t||a)+"",r?y.resolveWith(m,[o,a,b]):y.rejectWith(m,[b,a,i]),b.statusCode(_),_=void 0,f&&g.trigger(r?"ajaxSuccess":"ajaxError",[b,h,r?o:i]),v.fireWith(m,[b,a]),f&&(g.trigger("ajaxComplete",[b,h]),--x.active||x.event.trigger("ajaxStop")))}return b},getJSON:function(e,t,n){return x.get(e,t,n,"json")},getScript:function(e,t){return x.get(e,void 0,t,"script")}}),x.each(["get","post"],function(e,o){x[o]=function(e,t,n,r){return m(t)&&(r=r||n,n=t,t=void 0),x.ajax(x.extend({url:e,type:o,dataType:r,data:t,success:n},x.isPlainObject(e)&&e))}}),x.ajaxPrefilter(function(e){for(var t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),x._evalUrl=function(e,t,n){return x.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){x.globalEval(e,t,n)}})},x.fn.extend({wrapAll:function(e){return this[0]&&(m(e)&&(e=e.call(this[0])),e=x(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return m(n)?this.each(function(e){x(this).wrapInner(n.call(this,e))}):this.each(function(){var e=x(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=m(t);return this.each(function(e){x(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){x(this).replaceWith(this.childNodes)}),this}}),x.expr.pseudos.hidden=function(e){return!x.expr.pseudos.visible(e)},x.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},x.ajaxSettings.xhr=function(){try{return new w.XMLHttpRequest}catch(e){}};var zt={0:200,1223:204},Vt=x.ajaxSettings.xhr();_.cors=!!Vt&&"withCredentials"in Vt,_.ajax=Vt=!!Vt,x.ajaxTransport(function(o){var i,s;if(_.cors||Vt&&!o.crossDomain)return{send:function(e,t){var n,r=o.xhr();if(r.open(o.type,o.url,o.async,o.username,o.password),o.xhrFields)for(n in o.xhrFields)r[n]=o.xhrFields[n];for(n in o.mimeType&&r.overrideMimeType&&r.overrideMimeType(o.mimeType),o.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)r.setRequestHeader(n,e[n]);i=function(e){return function(){i&&(i=s=r.onload=r.onerror=r.onabort=r.ontimeout=r.onreadystatechange=null,"abort"===e?r.abort():"error"===e?"number"!=typeof r.status?t(0,"error"):t(r.status,r.statusText):t(zt[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=i(),s=r.onerror=r.ontimeout=i("error"),void 0!==r.onabort?r.onabort=s:r.onreadystatechange=function(){4===r.readyState&&w.setTimeout(function(){i&&s()})},i=i("abort");try{r.send(o.hasContent&&o.data||null)}catch(e){if(i)throw e}},abort:function(){i&&i()}}}),x.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return x.globalEval(e),e}}}),x.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),x.ajaxTransport("script",function(n){var r,o;
vendor: 4,510 bytes, line 1
1if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){r=x("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",o=function(e){r.remove(),o=null,e&&t("error"===e.type?404:200,e.type)}),k.head.appendChild(r[0])},abort:function(){o&&o()}}});var Jt,Gt=[],Kt=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Gt.pop()||x.expando+"_"+Et.guid++;return this[e]=!0,e}}),x.ajaxPrefilter("json jsonp",function(e,t,n){var r,o,i,s=!1!==e.jsonp&&(Kt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Kt.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Kt,"$1"+r):!1!==e.jsonp&&(e.url+=(Ct.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return i||x.error(r+" was not called"),i[0]},e.dataTypes[0]="json",o=w[r],w[r]=function(){i=arguments},n.always(function(){void 0===o?x(w).removeProp(r):w[r]=o,e[r]&&(e.jsonpCallback=t.jsonpCallback,Gt.push(r)),i&&m(o)&&o(i[0]),i=o=void 0}),"script"}),_.createHTMLDocument=((Jt=k.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Jt.childNodes.length),x.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(_.createHTMLDocument?((r=(t=k.implementation.createHTMLDocument("")).createElement("base")).href=k.location.href,t.head.appendChild(r)):t=k),r=!n&&[],(n=C.exec(e))?[t.createElement(n[1])]:(n=ge([e],t,r),r&&r.length&&x(r).remove(),x.merge([],n.childNodes)));var r},x.fn.load=function(e,t,n){var r,o,i,s=this,a=e.indexOf(" ");return-1<a&&(r=_t(e.slice(a)),e=e.slice(0,a)),m(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),0<s.length&&x.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done(function(e){i=arguments,s.html(r?x("<div>").append(x.parseHTML(e)).find(r):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,i||[e.responseText,t,e])})}),this},x.expr.pseudos.animated=function(t){return x.grep(x.timers,function(e){return t===e.elem}).length},x.offset={setOffset:function(e,t,n){var r,o,i,s,a=x.css(e,"position"),c=x(e),l={};"static"===a&&(e.style.position="relative"),i=c.offset(),r=x.css(e,"top"),s=x.css(e,"left"),s=("absolute"===a||"fixed"===a)&&-1<(r+s).indexOf("auto")?(o=(a=c.position()).top,a.left):(o=parseFloat(r)||0,parseFloat(s)||0),null!=(t=m(t)?t.call(e,n,x.extend({},i)):t).top&&(l.top=t.top-i.top+o),null!=t.left&&(l.left=t.left-i.left+s),"using"in t?t.using.call(e,l):c.css(l)}},x.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){x.offset.setOffset(this,t,e)});var e,n=this[0];return n?n.getClientRects().length?(e=n.getBoundingClientRect(),n=n.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],o={top:0,left:0};if("fixed"===x.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===x.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((o=x(e).offset()).top+=x.css(e,"borderTopWidth",!0),o.left+=x.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-x.css(r,"marginTop",!0),left:t.left-o.left-x.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===x.css(e,"position");)e=e.offsetParent;return e||ne})}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,o){var i="pageYOffset"===o;x.fn[t]=function(e){return q(this,function(e,t,n){var r;return g(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n?r?r[o]:e[t]:void(r?r.scrollTo(i?r.pageXOffset:n,i?n:r.pageYOffset):e[t]=n)},t,e,arguments.length)}}),x.each(["top","left"],function(e,n){x.cssHooks[n]=Je(_.pixelPosition,function(e,t){if(t)return t=Ve(e,n),Ue.test(t)?x(e).position()[n]+"px":t})}),x.each({Height:"height",Width:"width"},function(s,a){x.each({padding:"inner"+s,content:a,"":"outer"+s},function(r,i){x.fn[i]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),o=r||(!0===e||!0===t?"margin":"border");return q(this,function(e,t,n){var r;return g(e)?0===i.indexOf("outer")?e["inner"+s]:e.document.documentElement["client"+s]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+s],r["scroll"+s],e.body["offset"+s],r["offset"+s],r["client"+s])):void 0===n?x.
1css(e,t,o):x.style(e,t,n,o)},a,n?e:void 0,n)}})}),x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){x.fn[t]=function(e){return this.on(t,e)}}),x.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),x.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){x.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}});var Yt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;x.proxy=function(e,t){var n,r;if("string"==typeof t&&(r=e[t],t=e,e=r),m(e))return n=a.call(arguments,2),(r=function(){return e.apply(t||this,n.concat(a.call(arguments)))}).guid=e.guid=e.guid||x.guid++,r},x.holdReady=function(e){e?x.readyWait++:x.ready(!0)},x.isArray=Array.isArray,x.parseJSON=JSON.parse,x.nodeName=E,x.isFunction=m,x.isWindow=g,x.camelCase=z,x.type=h,x.now=Date.now,x.isNumeric=function(e){var t=x.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},x.trim=function(e){return null==e?"":(e+"").replace(Yt,"")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return x});var Xt=w.jQuery,Qt=w.$;return x.noConflict=function(e){return w.$===x&&(w.$=Qt),e&&w.jQuery===x&&(w.jQuery=Xt),x},void 0===e&&(w.jQuery=w.$=x),x}),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(){"use strict";var e=jQuery.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")}(),function(r){"use strict";r.fn.emulateTransitionEnd=function(e){var t=!1,n=this;r(this).one("bsTransitionEnd",function(){t=!0});return setTimeout(function(){t||r(n).trigger(r.support.transition.end)},e),this},r(function(){r.support.transition=function(){var e,t=document.createElement("bootstrap"),n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(e in n)if(void 0!==t.style[e])return{end:n[e]};return!1}(),r.support.transition&&(r.event.special.bsTransitionEnd={bindType:r.support.transition.end,delegateType:r.support.transition.end,handle:function(e){if(r(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}})})}(jQuery),function(i){"use strict";function s(e){i(e).on("click",t,this.close)}var t='[data-dismiss="alert"]';s.VERSION="3.3.4",s.TRANSITION_DURATION=150,s.prototype.close=function(e){var t=i(this),n=(n=t.attr("data-target"))||(n=t.attr("href"))&&n.replace(/.*(?=#[^\s]*$)/,""),r=i(n);function o(){r.detach().trigger("closed.bs.alert").remove()}e&&e.preventDefault(),(r=!r.length?t.closest(".alert"):r).trigger(e=i.Event("close.bs.alert")),e.isDefaultPrevented()||(r.removeClass("in"),i.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",o).emulateTransitionEnd(s.TRANSITION_DURATION):o())};var e=i.fn.alert;i.fn.alert=function(n){return this.each(function(){var e=i(this),t=e.data("bs.alert");t||e.data("bs.alert",t=new s(this)),"string"==typeof n&&t[n].call(e)})},i.fn.alert.Constructor=s,i.fn.alert.noConflict=function(){return i.fn.alert=e,this},i(document).on("click.bs.alert.data-api",t,s.prototype.close)}(jQuery),function(i){"use strict";function r(e,t){this.$element=i(e),this.options=i.extend({},r.DEFAULTS,t),this.isLoading=!1}function n(n){return this.each(function(){var e=i(this),t=e.data("bs.button");t||e.data("bs.button",t=new r(this,"object"==typeof n&&n)),"toggle"==n?t.toggle():n&&t.setState(n)})}r.VERSION="3.3.4",r.DEFAULTS={loadingText:"loading..."},r.prototype.setState=function(e){var t="disabled",n=this.$element,r=n.is("input")?"val":"html",o=n.data();e+="Text",null==o.resetText&&n.data("resetText",n[r]()),setTimeout(i.proxy(function(){n[r]((null==o[e]?this.options:o)[e]),"loadingText"==e?(this.isLoading=!0,n.addClass(t).attr(t,t)):this.isLoading&&(this.isLoading=!1,n.removeClass(t).removeAttr(t))},this),0)},r.prototype.toggle=function(){var e,t=!0,n=this.$element.closest('[data-toggle="buttons"]');n.length?("radio"==(e=this.$element.find("input")).prop("type")&&(e.prop("checked")&&this.$element.hasClass("active")?t=!1:n.find(".active").removeClass("active")),t&&e.prop("checked",!this.$element.hasClass("active")).trigger("change")):this.$element.attr("aria-pressed",!this.$element.hasClass("active")),t&&this.$element.toggleClass("active")};var e=i.fn.button;i.fn.button=n,i.fn.button.Constructor=r,i.fn.button.noConflict=function(){return i.fn.button=e,this},i(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(e){var t=i(e.target);t.hasClass("btn")||(t=t.closest(".btn")),n.call(t,"toggle"),e.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(e){i(e.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(e.type))})}(jQuery),function(l){"use strict";function u(e,t){this.$element=l(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=t,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("key
1down.bs.carousel",l.proxy(this.keydown,this)),"hover"!=this.options.pause||"ontouchstart"in document.documentElement||this.$element.on("mouseenter.bs.carousel",l.proxy(this.pause,this)).on("mouseleave.bs.carousel",l.proxy(this.cycle,this))}function o(o){return this.each(function(){var e=l(this),t=e.data("bs.carousel"),n=l.extend({},u.DEFAULTS,e.data(),"object"==typeof o&&o),r="string"==typeof o?o:n.slide;t||e.data("bs.carousel",t=new u(this,n)),"number"==typeof o?t.to(o):r?t[r]():n.interval&&t.pause().cycle()})}u.VERSION="3.3.4",u.TRANSITION_DURATION=600,u.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},u.prototype.keydown=function(e){if(!/input|textarea/i.test(e.target.tagName)){switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return}e.preventDefault()}},u.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(l.proxy(this.next,this),this.options.interval)),this},u.prototype.getItemIndex=function(e){return this.$items=e.parent().children(".item"),this.$items.index(e||this.$active)},u.prototype.getItemForDirection=function(e,t){var n=this.getItemIndex(t);if(("prev"==e&&0===n||"next"==e&&n==this.$items.length-1)&&!this.options.wrap)return t;e=(n+("prev"==e?-1:1))%this.$items.length;return this.$items.eq(e)},u.prototype.to=function(e){var t=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(e>this.$items.length-1||e<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){t.to(e)}):n==e?this.pause().cycle():this.slide(n<e?"next":"prev",this.$items.eq(e))},u.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&l.support.transition&&(this.$element.trigger(l.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},u.prototype.next=function(){if(!this.sliding)return this.slide("next")},u.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},u.prototype.slide=function(e,t){var n=this.$element.find(".item.active"),r=t||this.getItemForDirection(e,n),o=this.interval,i="next"==e?"left":"right",s=this;if(r.hasClass("active"))return this.sliding=!1;var a=r[0],t=l.Event("slide.bs.carousel",{relatedTarget:a,direction:i});if(this.$element.trigger(t),!t.isDefaultPrevented()){this.sliding=!0,o&&this.pause(),this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),(t=l(this.$indicators.children()[this.getItemIndex(r)]))&&t.addClass("active"));var c=l.Event("slid.bs.carousel",{relatedTarget:a,direction:i});return l.support.transition&&this.$element.hasClass("slide")?(r.addClass(e),r[0].offsetWidth,n.addClass(i),r.addClass(i),n.one("bsTransitionEnd",function(){r.removeClass([e,i].join(" ")).addClass("active"),n.removeClass(["active",i].join(" ")),s.sliding=!1,setTimeout(function(){s.$element.trigger(c)},0)}).emulateTransitionEnd(u.TRANSITION_DURATION)):(n.removeClass("active"),r.addClass("active"),this.sliding=!1,this.$element.trigger(c)),o&&this.cycle(),this}};var e=l.fn.carousel;l.fn.carousel=o,l.fn.carousel.Constructor=u,l.fn.carousel.noConflict=function(){return l.fn.carousel=e,this};function t(e){var t,n=l(this),r=l(n.attr("data-target")||(t=n.attr("href"))&&t.replace(/.*(?=#[^\s]+$)/,""));r.hasClass("carousel")&&(t=l.extend({},r.data(),n.data()),(n=n.attr("data-slide-to"))&&(t.interval=!1),o.call(r,t),n&&r.data("bs.carousel").to(n),e.preventDefault())}l(document).on("click.bs.carousel.data-api","[data-slide]",t).on("click.bs.carousel.data-api","[data-slide-to]",t),l(window).on("load",function(){l('[data-ride="carousel"]').each(function(){var e=l(this);o.call(e,e.data())})})}(jQuery),function(o){"use strict";function i(e,t){this.$element=o(e),this.options=o.extend({},i.DEFAULTS,t),this.$trigger=o('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()}function n(e){var t=e.attr("data-target")||(t=e.attr("href"))&&t.replace(/.*(?=#[^\s]+$)/,"");return o(t)}function s(r){return this.each(function(){var e=o(this),t=e.data("bs.collapse"),n=o.extend({},i.DEFAULTS,e.data(),"object"==typeof r&&r);!t&&n.toggle&&/show|hide/.test(r)&&(n.toggle=!1),t||e.data("bs.collapse",t=new i(this,n)),"string"==typeof r&&t[r]()})}i.VERSION="3.3.4",i.TRANSITION_DURATION=350,i.DEFAULTS={toggle:!0},i.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},i.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(e&&e.length&&(r=e.data("bs.collapse"))&&r.transitioning)){var t=o.Event("show.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){e&&e.length&&(s.call(e,"hide"),r||e.data("bs.collapse",null));var n=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[n](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var r=function(){this.$element.removeClass("collapsing").addClass("collapse in")[n](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!o.support.transition)return r.call(this);e=o.camelCase(["scroll",n].join("-"));this.$element.one("bsTransitionEnd",o.proxy(r,this)).emulateTransitionEnd(i.TRANSITION_DURATION)[n](this.$element[0][e])}}}},i.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=o.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var t=this.dimension();this.$element[t](this.$element[t]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;e=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!o.support.transition)return e.call(this);this.$element[t](0).one("bsTransitionEnd",o.proxy(e,this)).emulateTransitionEnd(i.TRANSITION_DURATION)}}},i.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},i.prototype.getParent=function(){return o(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(o.proxy(function(e,t){t=o(t);this.addAriaAndCollapsedClass(n(t),t)},this)).end()},i.prototype.addAriaAndCollapsedClass=function(e,t){var n=e.hasClass("in");e.attr("aria-expanded",n),t.toggleClass("collapsed",!n).attr("aria-expanded",n)};var e=o.fn.collapse;o.fn.collapse=s,o.fn.collapse.Constructor=i,o.fn.collapse.noConflict=function(){return o.fn.collapse=e,this},o(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(e){var t=o(this);t.attr("data-target")||e.preventDefault();e=n(t),t=e.data("bs.collapse")?"toggle":t.data();s.call(e,t)})}(jQuery),function(o){"use strict";function r(e){o(e).on("click.bs.dropdown",this.toggle)}var i='[data-toggle="dropdown"]';function s(r){r&&3===r.which||(o(".dropdown-backdrop").remove(),o(i).each(function(){var e=o(this),t=a(e),n={relatedTarget:this};t.hasClass("open")&&(t.trigger(r=o.Event("hide.bs.dropdown",n)),r.isDefaultPrevented()||(e.attr("aria-expanded","fal
1se"),t.removeClass("open").trigger("hidden.bs.dropdown",n)))}))}function a(e){var t=e.attr("data-target"),t=(t=t||(t=e.attr("href"))&&/#[A-Za-z]/.test(t)&&t.replace(/.*(?=#[^\s]*$)/,""))&&o(t);return t&&t.length?t:e.parent()}r.VERSION="3.3.4",r.prototype.toggle=function(e){var t=o(this);if(!t.is(".disabled, :disabled")){var n=a(t),r=n.hasClass("open");if(s(),!r){"ontouchstart"in document.documentElement&&!n.closest(".navbar-nav").length&&o('<div class="dropdown-backdrop"/>').insertAfter(o(this)).on("click",s);r={relatedTarget:this};if(n.trigger(e=o.Event("show.bs.dropdown",r)),e.isDefaultPrevented())return;t.trigger("focus").attr("aria-expanded","true"),n.toggleClass("open").trigger("shown.bs.dropdown",r)}return!1}},r.prototype.keydown=function(e){if(/(38|40|27|32)/.test(e.which)&&!/input|textarea/i.test(e.target.tagName)){var t=o(this);if(e.preventDefault(),e.stopPropagation(),!t.is(".disabled, :disabled")){var n=a(t),r=n.hasClass("open");if(!r&&27!=e.which||r&&27==e.which)return 27==e.which&&n.find(i).trigger("focus"),t.trigger("click");t=" li:not(.disabled):visible a",n=n.find('[role="menu"]'+t+', [role="listbox"]'+t);n.length&&(t=n.index(e.target),38==e.which&&0<t&&t--,40==e.which&&t<n.length-1&&t++,n.eq(t=!~t?0:t).trigger("focus"))}}};var e=o.fn.dropdown;o.fn.dropdown=function(n){return this.each(function(){var e=o(this),t=e.data("bs.dropdown");t||e.data("bs.dropdown",t=new r(this)),"string"==typeof n&&t[n].call(e)})},o.fn.dropdown.Constructor=r,o.fn.dropdown.noConflict=function(){return o.fn.dropdown=e,this},o(document).on("click.bs.dropdown.data-api",s).on("click.bs.dropdown.data-api",".dropdown form",function(e){e.stopPropagation()}).on("click.bs.dropdown.data-api",i,r.prototype.toggle).on("keydown.bs.dropdown.data-api",i,r.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="menu"]',r.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="listbox"]',r.prototype.keydown)}(jQuery),function(i){"use strict";function s(e,t){this.options=t,this.$body=i(document.body),this.$element=i(e),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,i.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))}function o(r,o){return this.each(function(){var e=i(this),t=e.data("bs.modal"),n=i.extend({},s.DEFAULTS,e.data(),"object"==typeof r&&r);t||e.data("bs.modal",t=new s(this,n)),"string"==typeof r?t[r](o):n.show&&t.show(o)})}s.VERSION="3.3.4",s.TRANSITION_DURATION=300,s.BACKDROP_TRANSITION_DURATION=150,s.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},s.prototype.toggle=function(e){return this.isShown?this.hide():this.show(e)},s.prototype.show=function(n){var r=this,e=i.Event("show.bs.modal",{relatedTarget:n});this.$element.trigger(e),this.isShown||e.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',i.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){r.$element.one("mouseup.dismiss.bs.modal",function(e){i(e.target).is(r.$element)&&(r.ignoreBackdropClick=!0)})}),this.backdrop(function(){var e=i.support.transition&&r.$element.hasClass("fade");r.$element.parent().length||r.$element.appendTo(r.$body),r.$element.show().scrollTop(0),r.adjustDialog(),e&&r.$element[0].offsetWidth,r.$element.addClass("in").attr("aria-hidden",!1),r.enforceFocus();var t=i.Event("shown.bs.modal",{relatedTarget:n});e?r.$dialog.one("bsTransitionEnd",function(){r.$element.trigger("focus").trigger(t)}).emulateTransitionEnd(s.TRANSITION_DURATION):r.$element.trigger("focus").trigger(t)}))},s.prototype.hide=function(e){e&&e.preventDefault(),e=i.Event("hide.bs.modal"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),i(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),i.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",i.proxy(this.hideModal,this)).emulateTransitionEnd(s.TRANSITION_DURATION):this.hideModal())},s.prototype.enforceFocus=function(){i(document).off("focusin.bs.modal").on("focusin.bs.modal",i.proxy(function(e){this.$element[0]===e.target||this.$element.has(e.target).length||this.$element.trigger("focus")},this))},s.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("key
1down.dismiss.bs.modal",i.proxy(function(e){27==e.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},s.prototype.resize=function(){this.isShown?i(window).on("resize.bs.modal",i.proxy(this.handleUpdate,this)):i(window).off("resize.bs.modal")},s.prototype.hideModal=function(){var e=this;this.$element.hide(),this.backdrop(function(){e.$body.removeClass("modal-open"),e.resetAdjustments(),e.resetScrollbar(),e.$element.trigger("hidden.bs.modal")})},s.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},s.prototype.backdrop=function(e){var t,n=this,r=this.$element.hasClass("fade")?"fade":"";this.isShown&&this.options.backdrop?(t=i.support.transition&&r,this.$backdrop=i('<div class="modal-backdrop '+r+'" />').appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",i.proxy(function(e){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:e.target===e.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),t&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),e&&(t?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(s.BACKDROP_TRANSITION_DURATION):e())):!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),t=function(){n.removeBackdrop(),e&&e()},i.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",t).emulateTransitionEnd(s.BACKDROP_TRANSITION_DURATION):t()):e&&e()},s.prototype.handleUpdate=function(){this.adjustDialog()},s.prototype.adjustDialog=function(){var e=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},s.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},s.prototype.checkScrollbar=function(){var e,t=window.innerWidth;t||(t=(e=document.documentElement.getBoundingClientRect()).right-Math.abs(e.left)),this.bodyIsOverflowing=document.body.clientWidth<t,this.scrollbarWidth=this.measureScrollbar()},s.prototype.setScrollbar=function(){var e=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",e+this.scrollbarWidth)},s.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},s.prototype.measureScrollbar=function(){var e=document.createElement("div");e.className="modal-scrollbar-measure",this.$body.append(e);var t=e.offsetWidth-e.clientWidth;return this.$body[0].removeChild(e),t};var e=i.fn.modal;i.fn.modal=o,i.fn.modal.Constructor=s,i.fn.modal.noConflict=function(){return i.fn.modal=e,this},i(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(e){var t=i(this),n=t.attr("href"),r=i(t.attr("data-target")||n&&n.replace(/.*(?=#[^\s]+$)/,"")),n=r.data("bs.modal")?"toggle":i.extend({remote:!/#/.test(n)&&n},r.data(),t.data());t.is("a")&&e.preventDefault(),r.one("show.bs.modal",function(e){e.isDefaultPrevented()||r.one("hidden.bs.modal",function(){t.is(":visible")&&t.trigger("focus")})}),o.call(r,n,this)})}(jQuery),function(c){"use strict";function l(e,t){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.init("tooltip",e,t)}l.VERSION="3.3.4",l.TRANSITION_DURATION=150,l.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},l.prototype.init=function(e,t,n){if(this.enabled=!0,this.type=e,this.$element=c(t),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&c(this.options.viewport.selector||this.options.viewport),this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var r=this.options.trigger.split(" "),o=r.length;o--;){var i,s=r[o];"click"==s?this.$element.on("click."+this.type,this.options.selector,c.proxy(this.toggle,this)):"manual"!=s&&(i="hover"==s?"mouseleave":"focusout",this.$element.on(("hover"==s?"mouseenter":"focusin")+"."+this.type,this.options.selector,c.proxy(this.enter,this)),this.$element.on(i+"."+this.type,this.options.selector,c.proxy(this.leave,this)))}this.options.selector?this._options=c.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},l.prototype.getDefaults=function(){return l.DEFAULTS},l.prototype.getOptions=function(e){return(e=c.extend({},this.getDefaults(),this.$element.data(),e)).delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},l.prototype.getDelegateOptions=function(){var n={},r=this.getDefaults();return this._options&&c.each(this._options,function(e,t){r[e]!=t&&(n[e]=t)}),n},l.prototype.enter=function(e){var t=e instanceof this.constructor?e:c(e.currentTarget).data("bs."+this.type);if(t&&t.$tip&&t.$tip.is(":visible"))t.hoverState="in";else{if(t||(t=new this.constructor(e.currentTarget,this.getDelegateOptions()),c(e.currentTarget).data("bs."+this.type,t)),clearTimeout(t.timeout),t.hoverState="in",!t.options.delay||!t.options.delay.show)return t.show();t.timeout=setTimeout(function(){"in"==t.hoverState&&t.show()},t.options.delay.show)}},l.prototype.leave=function(e){var t=e instanceof this.constructor?e:c(e.currentTarget).data("bs."+this.type);if(t||(t=new this.constructor(e.currentTarget,this.getDelegateOptions()),c(e.currentTarget).data("bs."+this.type,t)),clearTimeout(t.timeout),t.hoverState="out",!t.options.delay||!t.options.delay.hide)return t.hide();t.timeout=setTimeout(function(){"out"==t.hoverState&&t.hide()},t.options.delay.hide)},l.prototype.show=function(){var t,e,n,r,o,i,s,a=c.Event("show.bs."+this.type);this.hasContent()&&this.enabled&&(this.$element.trigger(a),n=c.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]),!a.isDefaultPrevented()&&n&&(e=(t=this).tip(),i=this.getUID(this.type),this.setContent(),e.attr("id",i),this.$element.attr("aria-describedby",i),this.options.animation&&e.addClass("fade"),s="function"==typeof this.options.placement?this.options.placement.call(this,e[0],this.$element[0]):this.options.placement,(o=(r=/\s?auto?\s?/i).test(s))&&(s=s.replace(r,"")||"top"),e.detach().css({top:0,left:0,display:"block"}).addClass(s).data("bs."+this.type,this),this.options.container?e.appendTo(this.options.container):e.insertAfter(this.$element),a=this.getPosition(),n=e[0].offsetWidth,i=e[0].offsetHeight,o&&(r=s,o=this.options.container?c(this.options.container):this.$element.parent(),o=this.getPosition(o),s="bottom"==s&&a.bottom+i>o.bottom?"top":"top"==s&&a.top-i<o.top?"bottom":"right"==s&&a.right+n>o.width?"left":"left"==s&&a.left-n<o.left?"right":s,e.removeClass(r).addClass(s)),i=this.getCalculatedOffset(s,a,n,i),this.applyPlacement(i,s),s=function(){var e=t.hoverState;t.$element.trigger("shown.bs."+t.type),t.hoverState=null,"out"==e&&t.leave(t)},c.support.transition&&this.$tip.hasClass("fade")?e.one("bsTransitionEnd",s).emulateTransitionEnd(l.TRANSITION_DURATION):s()))},l.prototype.applyPlacement=function(e,t){var n=this.tip(),r=n[0].offsetWidth,o=n[0].offsetHeight,i=parseInt(n.css("margin-top"),10),s=parseInt(n.css("margin-left"),10);isNaN(i)&&(i=0),isNaN(s)&&(s=0),e.top=e.top+i,e.left=e.left+s,c.offset.setOffset(n[0],c.extend({using:function(e){n.css({top:Math.round(e.top),left
vendor: 10,954 bytes, line 1
1:Math.round(e.left)})}},e),0),n.addClass("in");var a=n[0].offsetWidth,i=n[0].offsetHeight;"top"==t&&i!=o&&(e.top=e.top+o-i);s=this.getViewportAdjustedDelta(t,e,a,i);s.left?e.left+=s.left:e.top+=s.top;t=/top|bottom/.test(t),o=t?2*s.left-r+a:2*s.top-o+i,i=t?"offsetWidth":"offsetHeight";n.offset(e),this.replaceArrow(o,n[0][i],t)},l.prototype.replaceArrow=function(e,t,n){this.arrow().css(n?"left":"top",50*(1-e/t)+"%").css(n?"top":"left","")},l.prototype.setContent=function(){var e=this.tip(),t=this.getTitle();e.find(".tooltip-inner")[this.options.html?"html":"text"](t),e.removeClass("fade in top bottom left right")},l.prototype.hide=function(e){var t=this,n=c(this.$tip),r=c.Event("hide.bs."+this.type);function o(){"in"!=t.hoverState&&n.detach(),t.$element.removeAttr("aria-describedby").trigger("hidden.bs."+t.type),e&&e()}if(this.$element.trigger(r),!r.isDefaultPrevented())return n.removeClass("in"),c.support.transition&&n.hasClass("fade")?n.one("bsTransitionEnd",o).emulateTransitionEnd(l.TRANSITION_DURATION):o(),this.hoverState=null,this},l.prototype.fixTitle=function(){var e=this.$element;!e.attr("title")&&"string"==typeof e.attr("data-original-title")||e.attr("data-original-title",e.attr("title")||"").attr("title","")},l.prototype.hasContent=function(){return this.getTitle()},l.prototype.getPosition=function(e){var t=(e=e||this.$element)[0],n="BODY"==t.tagName,r=t.getBoundingClientRect();null==r.width&&(r=c.extend({},r,{width:r.right-r.left,height:r.bottom-r.top}));t=n?{top:0,left:0}:e.offset(),e={scroll:n?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},n=n?{width:c(window).width(),height:c(window).height()}:null;return c.extend({},r,e,n,t)},l.prototype.getCalculatedOffset=function(e,t,n,r){return"bottom"==e?{top:t.top+t.height,left:t.left+t.width/2-n/2}:"top"==e?{top:t.top-r,left:t.left+t.width/2-n/2}:"left"==e?{top:t.top+t.height/2-r/2,left:t.left-n}:{top:t.top+t.height/2-r/2,left:t.left+t.width}},l.prototype.getViewportAdjustedDelta=function(e,t,n,r){var o={top:0,left:0};if(!this.$viewport)return o;var i,s=this.options.viewport&&this.options.viewport.padding||0,a=this.getPosition(this.$viewport);return/right|left/.test(e)?(e=t.top-s-a.scroll,i=t.top+s-a.scroll+r,e<a.top?o.top=a.top-e:i>a.top+a.height&&(o.top=a.top+a.height-i)):(i=t.left-s,n=t.left+s+n,i<a.left?o.left=a.left-i:n>a.width&&(o.left=a.left+a.width-n)),o},l.prototype.getTitle=function(){var e=this.$element,t=this.options;return e.attr("data-original-title")||("function"==typeof t.title?t.title.call(e[0]):t.title)},l.prototype.getUID=function(e){for(;e+=~~(1e6*Math.random()),document.getElementById(e););return e},l.prototype.tip=function(){return this.$tip=this.$tip||c(this.options.template)},l.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},l.prototype.enable=function(){this.enabled=!0},l.prototype.disable=function(){this.enabled=!1},l.prototype.toggleEnabled=function(){this.enabled=!this.enabled},l.prototype.toggle=function(e){var t=this;e&&((t=c(e.currentTarget).data("bs."+this.type))||(t=new this.constructor(e.currentTarget,this.getDelegateOptions()),c(e.currentTarget).data("bs."+this.type,t))),t.tip().hasClass("in")?t.leave(t):t.enter(t)},l.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide(function(){e.$element.off("."+e.type).removeData("bs."+e.type)})};var e=c.fn.tooltip;c.fn.tooltip=function(r){return this.each(function(){var e=c(this),t=e.data("bs.tooltip"),n="object"==typeof r&&r;!t&&/destroy|hide/.test(r)||(t||e.data("bs.tooltip",t=new l(this,n)),"string"==typeof r&&t[r]())})},c.fn.tooltip.Constructor=l,c.fn.tooltip.noConflict=function(){return c.fn.tooltip=e,this}}(jQuery),function(o){"use strict";function i(e,t){this.init("popover",e,t)}if(!o.fn.tooltip)throw new Error("Popover requires tooltip.js");i.VERSION="3.3.4",i.DEFAULTS=o.extend({},o.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),((i.prototype=o.extend({},o.fn.tooltip.Constructor.prototype)).constructor=i).prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),n=this.getContent();e.find(".popover-title")[this.options.html?"html":"text"](t),e.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof n?"html":"append":"text"](n),e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},i.prototype.hasContent=function(){return this.getTitle()||this.getContent()},i.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr("data-content")||("function"==typeof t.content?t.content.call(e[0]):t.content)},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var e=o.fn.popover;o.fn.popover=function(r){return this.each(function(){var e=o(this),t=e.data("bs.popover"),n="object"==typeof r&&r;!t&&/destroy|hide/.test(r)||(t||e.data("bs.popover",t=new i(this,n)),"string"==typeof r&&t[r]())})},o.fn.popover.Constructor=i,o.fn.popover.noConflict=function(){return o.fn.popover=e,this}}(jQuery),function(o){"use strict";function r(e,t){this.$body=o(document.body),this.$scrollElement=o(e).is(document.body)?o(window):o(e),this.options=o.extend({},r.DEFAULTS,t),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",o.proxy(this.process,this)),this.refresh(),this.process()}function t(n){return this.each(function(){var e=o(this),t=e.data("bs.scrollspy");t||e.data("bs.scrollspy",t=new r(this,"object"==typeof n&&n)),"string"==typeof n&&t[n]()})}r.VERSION="3.3.4",r.DEFAULTS={offset:10},r.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},r.prototype.refresh=function(){var e=this,n="offset",r=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),o.isWindow(this.$scrollElement[0])||(n="position",r=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var e=o(this),t=e.data("target")||e.attr("href"),e=/^#./.test(t)&&o(t);return e&&e.length&&e.is(":visible")?[[e[n]().top+r,t]]:null}).sort(function(e,t){return e[0]-t[0]}).each(function(){e.offsets.push(this[0]),e.targets.push(this[1])})},r.prototype.process=function(){var e,t=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),r=this.options.offset+n-this.$scrollElement.height(),o=this.offsets,i=this.targets,s=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),r<=t)return s!=(e=i[i.length-1])&&this.activate(e);if(s&&t<o[0])return this.activeTarget=null,this.clear();for(e=o.length;e--;)s!=i[e]&&t>=o[e]&&(void 0===o[e+1]||t<o[e+1])&&this.activate(i[e])},r.prototype.activate=function(e){this.activeTarget=e,this.clear();e=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',e=o(e).parents("li").addClass("active");(e=e.parent(".dropdown-menu").length?e.closest("li.dropdown").addClass("active"):e).trigger("activate.bs.scrollspy")},r.prototype.clear=function(){o(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var e=o.fn.scrollspy;o.fn.scrollspy=t,o.fn.scrollspy.Constructor=r,o.fn.scrollspy.noConflict=function(){return o.fn.scrollspy=e,this},o(window).on("load.bs.scrollspy.data-api",function(){o('[data-spy="scroll"]').each(function(){var e=o(this);t.call(e,e.data())})})}(jQuery),function(s){"use strict";function a(e){this.element=s(e)}function t(n){return this.each(function(){var e=s(this),t=e.data("bs.tab");t||e.data("bs.tab",t=new a(this)),"string"==typeof n&&t[n]()})}a.VERSION="3.3.4",a.TRANSITION_DURATION=150,a.prototype.show=function(){var e,t,n,r=this.element,o=r.closest("ul:not(.dropdown-menu)"),i=(i=r.data("target"))||(i=r.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,"");r.parent("li").hasClass("active")||(e=o.find(".active:last a"),t=s.Event("hide.bs.tab",{relatedTarget:r[0]}),n=s.Event("show.bs.tab",{relatedTarget:e[0]}),e.trigger(t),r.trigger(n),n.isDefaultPrevented()||t.isDefaultPrevented()||(i=s(i),this.activate(r.closest("li"),o),this.activate(i,i.parent(),function(){e.trigger({type:"hidden.bs.tab",relatedTarget:r[0]}),r.trigger({type:"shown.bs.tab",relatedTarget:e[0]})})))},a.prototype.activate=function(e,t,n){var r=t.find("> .active"),o=n&&s.support.transition&&(r.length&&r.hasClass("fade")||!!t.find("> .fade").length);function i(){r.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),e.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),o?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu").length&&e.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),n&&n()}r.length&&o?r.one("bsTransitionEnd",i).emulateTransitionEnd(a.TRANSITION_DURATION):i(),r.removeClass("in")};var e=s.fn.tab;s.fn.tab=t,s.fn.tab.Constructor=a,s.fn.tab.noConflict=function(){return s.fn.tab=e,this};function n(e){e.preventDefault(),t.call(s(this),"show")}s(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',n).on("click.bs.tab.data-api",'[data-toggle="pill"]',n)}(jQuery),function(s){"use strict";function a(e,t){this.options=s.extend({},a.DEFAULTS,t),this.$target=s(this.options.target).on("scroll.bs.affix.data-api",s.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",s.proxy(this.checkPositionWithEventLoop,this)),this.$element=s(e),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()}function n(n){return this.each(function(){var e=s(this),t=e.data("bs.affix");t||e.data("bs.affix",t=new a(this,"object"==typeof n&&n)),"string"==typeof n&&t[n]()})}a.VERSION="3.3.4",a.RESET="affix affix-top affix-bottom",a.DEFAULTS={offset:0,target:window},a.prototype.getState=function(e,t,n,r){var o=this.$target.scrollTop(),i=this.$element.offset(),s=this.$target.height();if(null!=n&&"top"==this.affixed)return o<n&&"top";if("bottom"==this.affixed)return null!=n?!(o+this.unpin<=i.top)&&"bottom":!(o+s<=e-r)&&"bottom";var a=null==this.affixed,i=a?o:i.top;return null!=n&&o<=n?"top":null!=r&&e-r<=i+(a?s:t)&&"bottom"},a.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(a.RESET).addClass("affix");var e=this.$target.scrollTop(),t=this.$element.offset();return this.pinnedOffset=t.top-e},a.prototype.checkPositionWithEventLoop=function(){setTimeout(s.proxy(this.checkPosition,this),1)},a.prototype.checkPosition=function(){if(this.$element.is(":visible")){var e=this.$element.height(),t=this.options.offset,n=t.top,r=t.bottom,o=s(document.body).height();
1"object"!=typeof t&&(r=n=t),"function"==typeof n&&(n=t.top(this.$element)),"function"==typeof r&&(r=t.bottom(this.$element));var i=this.getState(o,e,n,r);if(this.affixed!=i){null!=this.unpin&&this.$element.css("top","");t="affix"+(i?"-"+i:""),n=s.Event(t+".bs.affix");if(this.$element.trigger(n),n.isDefaultPrevented())return;this.affixed=i,this.unpin="bottom"==i?this.getPinnedOffset():null,this.$element.removeClass(a.RESET).addClass(t).trigger(t.replace("affix","affixed")+".bs.affix")}"bottom"==i&&this.$element.offset({top:o-e-r})}};var e=s.fn.affix;s.fn.affix=n,s.fn.affix.Constructor=a,s.fn.affix.noConflict=function(){return s.fn.affix=e,this},s(window).on("load",function(){s('[data-spy="affix"]').each(function(){var e=s(this),t=e.data();t.offset=t.offset||{},null!=t.offsetBottom&&(t.offset.bottom=t.offsetBottom),null!=t.offsetTop&&(t.offset.top=t.offsetTop),n.call(e,t)})})}(jQuery),function(n){const t={init(){return this.data("interestProfiler")||(this.data("interestProfiler",{initialized:!0}),this.interestProfiler("buttonState"),this.find("div.question:first").addClass("selected"),this.keydown(function(e){e=e.which;38===e?this.interestProfiler&&this.interestProfiler("changeSelection",-1):40===e&&this.interestProfiler&&this.interestProfiler("changeSelection",1)}).keypress(function(e){var t=e.which;if(13===t)n(".navigation .next[disabled!=true]").click();else if(8===t)n(".navigation .previous").click();else if(!e.altKey&&!e.ctrlKey&&!e.metaKey){let e=String.fromCharCode(t).toUpperCase();"?"===e&&(e="U"),"L"!==e&&"U"!==e&&"D"!==e||n(`.interest-profiler div.selected a.${e}`).click()}}).focus()),this},changeSelection(e){const t=this.find("div.selected");var n=t.attr("class"),n=/ question-(\d+) /.exec(n),n=Number(n[1]);const r=this.find(`.question-${n+e}`);return 1===r.length&&(t.removeClass("selected"),r.addClass("selected")),this},selectedNumber(){const e=this.find("div.selected");e.attr("class");var t=/ question-(\d+) /.exec(e.attr("class"));return Number(t[1])},respond(e,t){const n=this.find(`.question-${e}`),r=n.find(".L").removeClass("selected"),o=n.find(".U").removeClass("selected"),i=n.find(".D").removeClass("selected");return"L"===t?r.addClass("selected"):"?"===t?o.addClass("selected"):"D"===t&&i.addClass("selected"),this.find("div.selected").removeClass("selected"),this.find(`.question-${e}`).addClass("selected"),this.interestProfiler("changeSelection",1),this.interestProfiler("buttonState"),this},buttonState(){if(12===this.find(".question .selected").length){const e=this.find(".navigation");e.find("button").removeClass("disabled")}return this},nextClick(e){if(12!==this.find(".question .selected").length)return alert("You must answer every question on this page before you can advance to the next page"),!1;"function"==typeof e&&e()}};n.fn.interestProfiler=function(e){return t[e]?t[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void n.error(`Method ${e} does not exist`):t.init.apply(this,arguments)}}(jQuery),function(s){let a=[];const c=4,l=["no","one","two","three","four","five","six","seven","eight","nine"];function e(){s("table input[type='checkbox'][name='tocompare']").unbind("click").click(function(){var e=s(this).val();if(this.checked)a.length>=c?(this.checked=!1,alert("You can only select up to four items for comparison. You must unselect an option before making another selection.")):a.indexOf(e)<0&&(a.push(e),s(this).closest("tr").addClass("selected-row"),n());else if(a.splice(a.indexOf(e),1),s(this).closest("tr").removeClass("selected-row"),n(),0===a.length){s("#comparewrap").slideUp(100,function(){s(this).remove()});const t=s("body");let e=t.css("padding-bottom");e=e?parseInt(e)-s("#comparewrap").height():0,t.css("padding-bottom",`${e}px`),s("#footer").show(),s(".attributions").show()}})}function n(){var t=s("#comparisonurl").val(),n=["/majors/comparison","/colleges/comparison"].includes(t)?t:"",t=s("<div>").attr("id","instr").css("display","inline-block").append("You have selected ").append(s("<b>").text(l[a.length])).append(" items to compare, you can select ").append(s("<b>").text(l[c-a.length])).append(" more.");const e=s("#instr");if(0<e.length)e.replaceWith(t);else{const r=s("body"),o=document.createElement("form");o.id="tempcomparebutton",o.action=n;const i=s(o).append(s("<input>").attr({type:"submit",class:"btn btn-success",value:"Compare Selected"}));r.append(s("<div>").attr("id","comparewrap").css("display","none").append(i.append(t)));let e=r.css("padding-bottom");e=e?parseInt(e)+s("#comparewrap").height():s("#comparewrap").height(),r.css("padding-bottom",`${e}px`),s("#tempcomparebutton").on("submit",u),s("#footer").hide(),s(".attributions").hide(),s("#comparewrap").slideDown(100)}}function u(){const t=s("#comparisonparam").val(),n=s(this);return a.forEach(function(e){n.append(s("<input>").attr({type:"hidden",name:t,value:e}))}),!0}s.fn.countCheckboxes=function(){a=[],s("table input[type='checkbox'][name='tocompare']").each(function(e){s(this).attr("title","Check this box to compare with up to three other items").tooltip({placement:"auto bottom",trigger:"hover"}),this.checked=!1}
1),s("#comparewrap").slideUp(100,function(){s(this).remove()}),e()},s.fn.countCheckboxesNoReset=function(){s("table input[type='checkbox'][name='tocompare']").each(function(e){s(this).attr("title","Check this box to compare with up to three other items").tooltip({placement:"auto bottom",trigger:"hover"}),!this.checked&&0<=a.indexOf(s(this).val())&&(this.checked=!0)}),e()}}(jQuery),function(e){e.fn.clearForms=function(){return this.each(function(){e(":input",this).each(function(){var e=this.type,t=this.tagName.toLowerCase();"text"===e||"password"===e||"textarea"===t?this.value="":"checkbox"===e||"radio"===e?this.checked=!1:"select"===t&&(this.selectedIndex=-1)})})}}(jQuery),jQuery.fn.clearNotices=function(){return h2.clearNotices(),this&&(this.find(".notices").html(""),this.find(".error").removeClass("error")),this};var h2=function(c){var r;function l(e,t){t(c(e))}function u(e,i){const t=c(e),n=t.find("label");n.each(function(e,t){const n=c(t),r=n.parents(".form-group");var o=r.find(".help-block"),t=n.attr("for");i(o,r,t)})}function o(e){e=r(e).find(".position").text();return parseInt(e)-1}function i(e){r(".round").removeClass("selected"),r(e).addClass("selected")}function s(e){null==e?r("#rounds").toggleClass("active"):e?r("#rounds").addClass("active"):r("#rounds").removeClass("active")}return{form:{post:function(e,t,n){return c.ajax(e,c.merge({method:"POST",contentType:"application/json; charset=utf-8",dataType:"json",data:JSON.stringify(t)},n||{}))},serialize:function(e){const t={};e=c(e).serializeArray();return c.each(e,function(){void 0!==t[this.name]?(t[this.name].push||(t[this.name]=[t[this.name]]),t[this.name].push(this.value||"")):t[this.name]=this.value||""}),t},clearMessages:function(e,t){l(e,function(e){e.html("")}),u(t,function(e,t){e.html(""),t.removeClass("has-error")})},fail:function(e,t,n,r,o){const i=e.responseJSON;if(Array.isArray(i)){const s=[],a={};i.forEach(function(e){"global"===e.type?s.push(e.error):a[e.field]=e.error}),l(r,function(t){t.children().each(function(e,t){c(t).remove()}),s.forEach(function(e){t.append(c("<div></div>").addClass("alert").addClass("alert-danger").text(e))})}),u(o,function(e,t,n){n=a[n];n?(t.addClass("has-error"),0===e.length&&(e=c("<div></div>").addClass("help-block"),t.find("label").after(e)),e.text(n)):(t.removeClass("has-error"),e.html(""))})}}},openAuth(){c("#non-auth").hide(),c("#auth").show();const e=c("#modal");c("#lift__noticesContainer__").prependTo(e.find(".modal-body")),e.modal("show"),e.on("hidden.bs.modal",function(e){h2.closeModalById("#modal")}),c("#signin_name").focus()},openTicketFaq(){const e=c("#helpmodal");c("#lift__noticesContainer__").prependTo(e.find(".modal-body")),e.modal("show")},openModal(t,e){const n=c(t);c("#lift__noticesContainer__").prependTo(n.find(".modal-body")),n.modal("show"),n.on("hidden.bs.modal",function(e){h2.closeModalById(t)})},openRegister(){window.openSigninDialogRegisterTab?window.openSigninDialogRegisterTab():console.log("openSigninDialogRegisterTab not yet defined")},openLogin(){window.openSigninDialogRegisterTab?window.openSigninDialogSignInTab():console.log("openSigninDialogRegisterTab not yet defined")},closeModal(){this.closeModalById("#modal")},closeModalById(e){c("#messages").append(c("#lift__noticesContainer__").remove()),c(e).clearNotices().modal("hide").clearForms()},clearNotices(){c("#lift__noticesContainer__").html("")},redirectTo(e){window.location=e},showLoadingImage(e){c(e).next().hasClass("loading-indicator")||c(e).after(c("<span></span>").addClass("loading-indicator").append(c("<span>loading...</span>")))},hideLoadingImage(){c(".loading-indicator").remove()},showAdminReportingLoader(e){c(e).parent().hasClass("loadingwrapper")||(c(e).wrap('<div class="loadingwrapper"/>'),c(e).css("visibility","hidden"),c('<div id="loading-desc"><h3>Assembling Report - Please Wait...</h3><br /><br /><div class="loading-img"></div></div>').prependTo(c(e).parent()))},hideAdminReportingLoader(e){c("div#loading-desc").remove(),c(e).parent().hasClass("loadingwrapper")&&(c(e).unwrap(),c(e).css("visibility","visible"))},wip:(r=jQuery,{init(e){!function(e){let t=0,n=!1;e&&null!=e.active&&(t=e.active,n=!0),r("#work-importance-profiler").find(".round").draggable({handle:".handle",containment:"#rounds",revert:"invalid",axis:"y",helper:"clone",start(e,t){r(t.helper).addClass("dragging")},stop(e,t){r(t.helper).removeClass("dragging")}}
1).droppable({accept:".round",drop(e,t){var n=o(t.draggable),t=o(this);move(n,t)}}).keydown(function(e){13===e.keyCode&&(i(this),s(!0))}).click(function(){i(this),s(!0)}),i(r(`.round:eq(${t})`)),s(n)}(e)},up(){var e;0<(e=o(r("#rounds .selected")))&&(r("#rounds").hasClass("active")?move(e,e-1):i(r(`#rounds .round:eq(${e-1})`)))},down(){var e;(e=o(r("#rounds .selected")))<4&&(r("#rounds").hasClass("active")?move(e,e+1):i(r(`#rounds .round:eq(${e+1})`)))}}),addCommas(e){x=(e+="").split("."),x1=x[0],x2=1<x.length?`.${x[1]}`:"";const t=/(\d+)(\d{3})/;for(;t.test(x1);)x1=x1.replace(t,"$1,$2");return x1+x2},footerPush(e){var t=c(document.body).height()-c("#modal").height()-c("#tiptip_holder").height();c(window).height()>t&&(c.browser.msie?c(e).height(+(c(e).height()+(c(window).height()-c(document.body).height()))):c.browser.mozilla?c(e).height(c(e).height()+(c(window).height()-c(document.body).height())-17):c.browser.safari?c(e).height(c(e).height()+(c(window).height()-t)-12):c(e).height(+(c(e).height()+(c(window).height()-c(document.body).height())))),c.browser.opera&&window.innerHeight>c(document.body).height()&&c(e).height(+(c(e).height()+(window.innerHeight-c(document.body).height())))},clearField(e){c(e).val("")},markRequired(){c("input[data-field-required='true'],select[data-field-required='true'],textarea[data-field-required='true']").each(function(e,t){if(t.id){t=c(this).parents("div.item").find(`label[for='${t.id}']`);if(0<t.length){const n=t[0],r=document.createElement("span");r.title="This field is required",r.textContent="*",n.appendChild(document.createTextNode(" ")),n.appendChild(r)}}})},addToolTips(){const e=c("body > :not(#spatarget)").find("[title]").not(".notip");e.filter("textarea,input,iframe").tooltip({placement:"auto bottom",trigger:"focus"}),e.not("textarea,input,iframe").tooltip(),e.filter("p,span").addClass("defined")},deleteCookie(e){document.cookie=`${e}=; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=/`},setCookie(e,t,n){const r=new Date;r.setDate(r.getDate()+n);n=`${encodeURIComponent(t)+(null==n?"":`; expires=${r.toUTCString()}`)}; path=/`;document.cookie=`${e}=${n}`},addDatePicker(){console.log("BEING CALLED FROM")},clearDirtyForm(){c(document).data(window.location.pathname,null)},watchForDirtyForm(e){c(e).find("input, textarea").change(function(){0===this.value.length?h2.clearDirtyForm():c(document).data(window.location.pathname,"dirty")}),c(e).find("select").change(function(){c(document).data(window.location.pathname,"dirty")})},isFormDirty(){return null!=c(document).data(window.location.pathname)},emphasizeJobs(){c("table a.emphasized-listing").closest("tr").addClass("emphasized-listing")},styleCmsEdit(e){0<c(e).length&&tinymce.init(h2.getOptionsTinyMCE(e,500)),c(".collapsable").each(function(){c(this).prepend("<div class='ctrl'><a href='javascript://' class='togglectl' onclick='toggle()'>Show Content</a></div>")})},getPrivateOptionsTinyMCE(e,t){return h2.getOptionsTinyMCE(e,t,!0)},stripStylesOnPasteTinyMCE(e){return e.replace(/(style|dir|id|role|aria-level)=".*?"/g," ")},getOptionsTinyMCE(e,t,r){const n={resize:"both",width:"100%",base_url:"/js/tinymce/",menubar:!1,plugins:"lists paste media link image code",paste_remove_styles_if_webkit:!0,keep_styles:!1,paste_postprocess:(e,t)=>{t.node.innerHTML=h2.stripStylesOnPasteTinyMCE(t.node.innerHTML)},setup(e){e.on("change",function(){e.save()})},extended_valid_elements:"form [onsubmit|id|action|class|method]",file_picker_callback:(n,e,t)=>
1{t=r?`/cms/user/files?type=${t.filetype}`:`/cms/tenant/files?type=${t.filetype}`;return window.tinyMCE.activeEditor.windowManager.openUrl({title:"File Browser",url:t,onMessage(e,t){"setFileUrl"===t.mceAction&&(n(t.data.url),window.tinyMCE.activeEditor.windowManager.close())}}),!1},branding:!1,statusbar:!1,remove_script_host:!0,relative_urls:!1,allow_script_urls:!0,document_base_url:"/",content_css:["https://use.typekit.net/rda0bts.css"],toolbar:`bold italic | alignleft aligncenter alignright alignjustify | bullist numlist ${dynamicValues.isSubscriber||dynamicValues.root?"| link image media ":""}| code`};e&&(n.selector=e),t&&(n.height=t);t=c("#site-css-file").attr("href");return null!=t&&(n.content_css=[t,"https://use.typekit.net/rda0bts.css"]),n},handleSearchForm(e,t){0===t.toLowerCase().replace("search","").length?window.location=`${e}/occupations/list`:window.location=`${e}/search/${encodeURIComponent(t.replace(/[\s\/]/g,"_")).toLowerCase()}`},roundTables(){},isBreakpoint(e){return c(`.device-${e}`).is(":visible")},handleLiftError(){try{var e=new InvalidArgumentException("A Lift Exception has occurred");Raven.captureException(e),alert("An error has occured")}catch(e){alert("An error has occured")}},addError(e,t){t=!!t;const n=c("#messages").find("#lift__noticesContainer__"),r=n.find("ul");t&&r.find("li").remove();e=c("<li>").append(c("<i>").addClass("fa fa-info-circle").attr("aria-hidden","true")).append(document.createTextNode(" ")).append(document.createTextNode(e));if(0<r.length)r.append(e);else{e=c("<ul>").append(e);const o=c("#lift__noticesContainer___error");0===o.length?n.append(c("<div>").attr("id","lift__noticesContainer___error").append(e)):o.append(e)}}}}(jQuery);$(document).ready(function(){h2.markRequired(),h2.clearDirtyForm(),h2.emphasizeJobs(),$(document).on("focusin",function(e){$(e.target).closest(".tox-tinymce-aux, .moxman-window, .tam-assetmanager-root").length&&e.stopImmediatePropagation()})});
2//# sourceMappingURL=legacy.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.