@powerhousedao/connect 4.1.0-dev.7 → 4.1.0-dev.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{AddDriveModal.DjVVMHtE.js → AddDriveModal.BQ3AxW6j.js} +2 -2
- package/dist/assets/{AddDriveModal.DjVVMHtE.js.map → AddDriveModal.BQ3AxW6j.js.map} +1 -1
- package/dist/assets/{AddRemoteDriveModal.wpR-Y-Fy.js → AddRemoteDriveModal.C37zccm4.js} +2 -2
- package/dist/assets/{AddRemoteDriveModal.wpR-Y-Fy.js.map → AddRemoteDriveModal.C37zccm4.js.map} +1 -1
- package/dist/assets/{CookiesPolicyModal.DSQvOi9a.js → CookiesPolicyModal.BWl3HWrR.js} +2 -2
- package/dist/assets/{CookiesPolicyModal.DSQvOi9a.js.map → CookiesPolicyModal.BWl3HWrR.js.map} +1 -1
- package/dist/assets/{CreateDocumentModal.B_4j_glA.js → CreateDocumentModal.IufC3vcb.js} +2 -2
- package/dist/assets/{CreateDocumentModal.B_4j_glA.js.map → CreateDocumentModal.IufC3vcb.js.map} +1 -1
- package/dist/assets/{DebugSettingsModal.DgXBnTEp.js → DebugSettingsModal.N5kUhVbC.js} +2 -2
- package/dist/assets/{DebugSettingsModal.DgXBnTEp.js.map → DebugSettingsModal.N5kUhVbC.js.map} +1 -1
- package/dist/assets/{DeleteDriveModal.B6Rq7ino.js → DeleteDriveModal.Dwp4Rlo3.js} +2 -2
- package/dist/assets/{DeleteDriveModal.B6Rq7ino.js.map → DeleteDriveModal.Dwp4Rlo3.js.map} +1 -1
- package/dist/assets/{DeleteItemModal.COOW87mk.js → DeleteItemModal.DtjxLxof.js} +2 -2
- package/dist/assets/{DeleteItemModal.COOW87mk.js.map → DeleteItemModal.DtjxLxof.js.map} +1 -1
- package/dist/assets/{DisclaimerModal.DtV1HGgU.js → DisclaimerModal.BIu5Iwo0.js} +2 -2
- package/dist/assets/{DisclaimerModal.DtV1HGgU.js.map → DisclaimerModal.BIu5Iwo0.js.map} +1 -1
- package/dist/assets/{DriveSettingsModal.DK-386do.js → DriveSettingsModal.CvpE8cJD.js} +2 -2
- package/dist/assets/{DriveSettingsModal.DK-386do.js.map → DriveSettingsModal.CvpE8cJD.js.map} +1 -1
- package/dist/assets/{SettingsModal.C1DqIkG4.js → SettingsModal.C9kmlJZN.js} +2 -2
- package/dist/assets/{SettingsModal.C1DqIkG4.js.map → SettingsModal.C9kmlJZN.js.map} +1 -1
- package/dist/assets/{Trans.Bl9c9KYm.js → Trans.BC7VAl8D.js} +2 -2
- package/dist/assets/{Trans.Bl9c9KYm.js.map → Trans.BC7VAl8D.js.map} +1 -1
- package/dist/assets/{UpgradeDriveModal.CKaXHT7Q.js → UpgradeDriveModal.Bw95WFoY.js} +2 -2
- package/dist/assets/{UpgradeDriveModal.CKaXHT7Q.js.map → UpgradeDriveModal.Bw95WFoY.js.map} +1 -1
- package/dist/assets/{atlas-import.hcs-cUp6.js → atlas-import.By-DQZoa.js} +2 -2
- package/dist/assets/{atlas-import.hcs-cUp6.js.map → atlas-import.By-DQZoa.js.map} +1 -1
- package/dist/assets/{content.DyHyjmCI.js → content.C9_QEwbp.js} +3 -3
- package/dist/assets/{content.DyHyjmCI.js.map → content.C9_QEwbp.js.map} +1 -1
- package/dist/assets/{cookie-banner.DXIsH7kn.js → cookie-banner.CApoHhzk.js} +2 -2
- package/dist/assets/{cookie-banner.DXIsH7kn.js.map → cookie-banner.CApoHhzk.js.map} +1 -1
- package/dist/assets/{index.D-jzcXIZ.js → index.BbzT-Ix3.js} +2 -2
- package/dist/assets/{index.D-jzcXIZ.js.map → index.BbzT-Ix3.js.map} +1 -1
- package/dist/assets/{index.DvBnyD8e.js → index.ByrvJSkp.js} +2 -2
- package/dist/assets/{index.DvBnyD8e.js.map → index.ByrvJSkp.js.map} +1 -1
- package/dist/assets/{index.AZjpWAnF.js → index.C9DqZU_M.js} +2 -2
- package/dist/assets/{index.AZjpWAnF.js.map → index.C9DqZU_M.js.map} +1 -1
- package/dist/assets/{index.BpG7SKUK.js → index.CLkEmvO5.js} +2 -2
- package/dist/assets/{index.BpG7SKUK.js.map → index.CLkEmvO5.js.map} +1 -1
- package/dist/assets/{index.CAcQolq2.js → index.CkH9Eedx.js} +2 -2
- package/dist/assets/{index.CAcQolq2.js.map → index.CkH9Eedx.js.map} +1 -1
- package/dist/assets/{index.Ch_ELz2I.js → index.DXz-dnzF.js} +5 -5
- package/dist/assets/{index.Ch_ELz2I.js.map → index.DXz-dnzF.js.map} +1 -1
- package/dist/assets/{index.EiWPM99y.js → index.HS9QQAvT.js} +2 -2
- package/dist/assets/{index.EiWPM99y.js.map → index.HS9QQAvT.js.map} +1 -1
- package/dist/assets/{index.DXXMr-Hh.js → index.ix7EA-Vj.js} +2 -2
- package/dist/assets/{index.DXXMr-Hh.js.map → index.ix7EA-Vj.js.map} +1 -1
- package/dist/assets/{main.D1uLlehN.js → main.DbuaFs0F.js} +3 -3
- package/dist/assets/{main.D1uLlehN.js.map → main.DbuaFs0F.js.map} +1 -1
- package/dist/assets/{modal.CWoim6cq.js → modal.CWG-LTra.js} +3 -3
- package/dist/assets/{modal.CWoim6cq.js.map → modal.CWG-LTra.js.map} +1 -1
- package/dist/assets/{modals.DI4FGCi-.js → modals.awl4Vk7d.js} +2 -2
- package/dist/assets/{modals.DI4FGCi-.js.map → modals.awl4Vk7d.js.map} +1 -1
- package/dist/assets/{nodefs.BfWABIH3.js → nodefs.BoMPICt3.js} +2 -2
- package/dist/assets/{nodefs.BfWABIH3.js.map → nodefs.BoMPICt3.js.map} +1 -1
- package/dist/assets/{nodes.m3ahoT3e.js → nodes.lrGFynf0.js} +2 -2
- package/dist/assets/{nodes.m3ahoT3e.js.map → nodes.lrGFynf0.js.map} +1 -1
- package/dist/assets/{opfs-ahp.C6-LErQ6.js → opfs-ahp.CYQfyahd.js} +2 -2
- package/dist/assets/{opfs-ahp.C6-LErQ6.js.map → opfs-ahp.CYQfyahd.js.map} +1 -1
- package/dist/assets/{registerServiceWorker.XhPO3sW3.js → registerServiceWorker.CRB2aHx-.js} +2 -2
- package/dist/assets/{registerServiceWorker.XhPO3sW3.js.map → registerServiceWorker.CRB2aHx-.js.map} +1 -1
- package/dist/assets/{root.Dmvh1GJt.js → root.b_2XiR2e.js} +2 -2
- package/dist/assets/{root.Dmvh1GJt.js.map → root.b_2XiR2e.js.map} +1 -1
- package/dist/assets/{useAcceptedCookies.DCBDqbse.js → useAcceptedCookies.D4QqDJFI.js} +2 -2
- package/dist/assets/{useAcceptedCookies.DCBDqbse.js.map → useAcceptedCookies.D4QqDJFI.js.map} +1 -1
- package/dist/assets/useDefaultDocumentModelEditor.CIPcz_de.js +2 -0
- package/dist/assets/{useDefaultDocumentModelEditor.CFUofJIJ.js.map → useDefaultDocumentModelEditor.CIPcz_de.js.map} +1 -1
- package/dist/assets/{useInitSentry.Cjdo2kG5.js → useInitSentry.SdOln5Jn.js} +6 -6
- package/dist/assets/{useInitSentry.Cjdo2kG5.js.map → useInitSentry.SdOln5Jn.js.map} +1 -1
- package/dist/index.html +1 -1
- package/dist/vite-envs.sh +1 -1
- package/package.json +10 -10
- package/dist/assets/useDefaultDocumentModelEditor.CFUofJIJ.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a2 as fn,a3 as Rl,a4 as Dt,a5 as Ms,a6 as h,a7 as ze,a8 as U,a9 as aa,aa as se,ab as bi,ac as it,ad as Lt,ae as ca,af as At,ag as Os,ah as Pt,ai as Ns,aj as Te,ak as gr,al as Cl,am as xl,an as Ie,ao as k,ap as ua,aq as A,ar as ae,as as Al,at as Ds,au as _r,av as Gt,aw as pn,ax as Ml,ay as lt,az as j,aA as ot,aB as Ol,aC as Nl,aD as Jn,aE as yr,aF as la,aG as Dl,aH as Ll,aI as Pl,aJ as Fl,aK as $l,aL as Ei,aM as Ls,aN as vi,aO as Ps,aP as Fs,aQ as da,aR as Zn,aS as Ti,aT as He,aU as Yt,aV as $s,aW as oe,aX as at,aY as fa,aZ as pa,a_ as ha,a$ as rs,b0 as ma,b1 as ga,b2 as Bl,b3 as ss,b4 as Ft,b5 as Sn,b6 as Bs,b7 as Ii,b8 as Hl,b9 as Mt,ba as Hs,bb as Ul,bc as Wl,bd as zl,be as je,bf as Qn,bg as Sr,bh as _a,bi as jl,bj as wi,bk as ki,bl as ql,bm as is,bn as Gl,bo as Yl,bp as Ri,bq as Vl}from"./index.
|
|
1
|
+
import{a2 as fn,a3 as Rl,a4 as Dt,a5 as Ms,a6 as h,a7 as ze,a8 as U,a9 as aa,aa as se,ab as bi,ac as it,ad as Lt,ae as ca,af as At,ag as Os,ah as Pt,ai as Ns,aj as Te,ak as gr,al as Cl,am as xl,an as Ie,ao as k,ap as ua,aq as A,ar as ae,as as Al,at as Ds,au as _r,av as Gt,aw as pn,ax as Ml,ay as lt,az as j,aA as ot,aB as Ol,aC as Nl,aD as Jn,aE as yr,aF as la,aG as Dl,aH as Ll,aI as Pl,aJ as Fl,aK as $l,aL as Ei,aM as Ls,aN as vi,aO as Ps,aP as Fs,aQ as da,aR as Zn,aS as Ti,aT as He,aU as Yt,aV as $s,aW as oe,aX as at,aY as fa,aZ as pa,a_ as ha,a$ as rs,b0 as ma,b1 as ga,b2 as Bl,b3 as ss,b4 as Ft,b5 as Sn,b6 as Bs,b7 as Ii,b8 as Hl,b9 as Mt,ba as Hs,bb as Ul,bc as Wl,bd as zl,be as je,bf as Qn,bg as Sr,bh as _a,bi as jl,bj as wi,bk as ki,bl as ql,bm as is,bn as Gl,bo as Yl,bp as Ri,bq as Vl}from"./index.DXz-dnzF.js";import{br as Ov,bs as Nv,bt as Dv,bu as Lv,bv as Pv,bw as Fv,bx as $v,by as Bv,bz as Hv,bA as Uv,bB as Wv,bC as zv,bD as jv,bE as qv,bF as Gv,bG as Yv,bH as Vv}from"./index.DXz-dnzF.js";import{p as Ci,aG as br}from"./index.D6ia8VH9.js";import*as me from"react";import"react-dom/client";import"react/jsx-runtime";import"./browser.BkwNmV2Z.js";import"./app-skeleton.js";import"react-dom";function ya(e,t,n=250,r,s,i,o){if(!i.exception||!i.exception.values||!o||!fn(o.originalException,Error))return;const a=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;a&&(i.exception.values=Kl(os(e,t,s,o.originalException,r,i.exception.values,a,0),n))}function os(e,t,n,r,s,i,o,a){if(i.length>=n+1)return i;let c=[...i];if(fn(r[s],Error)){xi(o,a);const u=e(t,r[s]),l=c.length;Ai(u,s,l,a),c=os(e,t,n,r[s],s,[u,...c],u,l)}return Array.isArray(r.errors)&&r.errors.forEach((u,l)=>{if(fn(u,Error)){xi(o,a);const d=e(t,u),f=c.length;Ai(d,`errors[${l}]`,f,a),c=os(e,t,n,u,s,[d,...c],d,f)}}),c}function xi(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function Ai(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function Kl(e,t){return e.map(n=>(n.value&&(n.value=Rl(n.value,t)),n))}const Xl=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Jl(e){return e==="http"||e==="https"}function dt(e,t=!1){const{host:n,path:r,pass:s,port:i,projectId:o,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&s?`:${s}`:""}@${n}${i?`:${i}`:""}/${r&&`${r}/`}${o}`}function Sa(e){const t=Xl.exec(e);if(!t){Dt(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,s="",i,o="",a]=t.slice(1);let c="",u=a;const l=u.split("/");if(l.length>1&&(c=l.slice(0,-1).join("/"),u=l.pop()),u){const d=u.match(/^\d+/);d&&(u=d[0])}return ba({host:i,pass:s,path:c,projectId:u,port:o,protocol:n,publicKey:r})}function ba(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Zl(e){if(!Ms)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(o=>e[o]?!1:(h.error(`Invalid Sentry Dsn: ${o} missing`),!0))?!1:n.match(/^\d+$/)?Jl(r)?t&&isNaN(parseInt(t,10))?(h.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(h.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(h.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function Ea(e){const t=typeof e=="string"?Sa(e):ba(e);if(!(!t||!Zl(t)))return t}class Ce extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}const Gn={},Mi={};function ft(e,t){Gn[e]=Gn[e]||[],Gn[e].push(t)}function pt(e,t){Mi[e]||(t(),Mi[e]=!0)}function ve(e,t){const n=e&&Gn[e];if(n)for(const r of n)try{r(t)}catch(s){Ms&&h.error(`Error while triggering instrumentation handler.
|
|
2
2
|
Type: ${e}
|
|
3
3
|
Name: ${ze(r)}
|
|
4
4
|
Error:`,s)}}function va(e){const t="console";ft(t,e),pt(t,Ql)}function Ql(){"console"in U&&aa.forEach(function(e){e in U.console&&se(U.console,e,function(t){return bi[e]=t,function(...n){ve("console",{args:n,level:e});const s=bi[e];s&&s.apply(U.console,n)}})})}const bt=U,ed=1e3;let Oi,as,cs;function Ta(e){const t="dom";ft(t,e),pt(t,td)}function td(){if(!bt.document)return;const e=ve.bind(null,"dom"),t=Ni(e,!0);bt.document.addEventListener("click",t,!1),bt.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const r=bt[n]&&bt[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(se(r,"addEventListener",function(s){return function(i,o,a){if(i==="click"||i=="keypress")try{const c=this,u=c.__sentry_instrumentation_handlers__=c.__sentry_instrumentation_handlers__||{},l=u[i]=u[i]||{refCount:0};if(!l.handler){const d=Ni(e);l.handler=d,s.call(this,i,d,a)}l.refCount++}catch{}return s.call(this,i,o,a)}}),se(r,"removeEventListener",function(s){return function(i,o,a){if(i==="click"||i=="keypress")try{const c=this,u=c.__sentry_instrumentation_handlers__||{},l=u[i];l&&(l.refCount--,l.refCount<=0&&(s.call(this,i,l.handler,a),l.handler=void 0,delete u[i]),Object.keys(u).length===0&&delete c.__sentry_instrumentation_handlers__)}catch{}return s.call(this,i,o,a)}}))})}function nd(e){if(e.type!==as)return!1;try{if(!e.target||e.target._sentryId!==cs)return!1}catch{}return!0}function rd(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function Ni(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=sd(n);if(rd(n.type,r))return;it(n,"_sentryCaptured",!0),r&&!r._sentryId&&it(r,"_sentryId",Lt());const s=n.type==="keypress"?"input":n.type;nd(n)||(e({event:n,name:s,global:t}),as=n.type,cs=r?r._sentryId:void 0),clearTimeout(Oi),Oi=bt.setTimeout(()=>{cs=void 0,as=void 0},ed)}}function sd(e){try{return e.target}catch{return null}}const er=ca();function Ia(){if(!("fetch"in er))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function us(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function wa(){if(typeof EdgeRuntime=="string")return!0;if(!Ia())return!1;if(us(er.fetch))return!0;let e=!1;const t=er.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=us(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){Ms&&h.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function id(){return"ReportingObserver"in er}function Er(e){const t="fetch";ft(t,e),pt(t,od)}function od(){wa()&&se(U,"fetch",function(e){return function(...t){const{method:n,url:r}=ad(t),s={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return ve("fetch",{...s}),e.apply(U,t).then(i=>{const o={...s,endTimestamp:Date.now(),response:i};return ve("fetch",o),i},i=>{const o={...s,endTimestamp:Date.now(),error:i};throw ve("fetch",o),i})}})}function ls(e,t){return!!e&&typeof e=="object"&&!!e[t]}function Di(e){return typeof e=="string"?e:e?ls(e,"url")?e.url:e.toString?e.toString():"":""}function ad(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:Di(n),method:ls(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:Di(t),method:ls(t,"method")?String(t.method).toUpperCase():"GET"}}let On=null;function ka(e){const t="error";ft(t,e),pt(t,cd)}function cd(){On=U.onerror,U.onerror=function(e,t,n,r,s){return ve("error",{column:r,error:s,line:n,msg:e,url:t}),On&&!On.__SENTRY_LOADER__?On.apply(this,arguments):!1},U.onerror.__SENTRY_INSTRUMENTED__=!0}let Nn=null;function Ra(e){const t="unhandledrejection";ft(t,e),pt(t,ud)}function ud(){Nn=U.onunhandledrejection,U.onunhandledrejection=function(e){return ve("unhandledrejection",e),Nn&&!Nn.__SENTRY_LOADER__?Nn.apply(this,arguments):!0},U.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Dn=ca();function ld(){const e=Dn.chrome,t=e&&e.app&&e.app.runtime,n="history"in Dn&&!!Dn.history.pushState&&!!Dn.history.replaceState;return!t&&n}const en=U;let Ln;function bn(e){const t="history";ft(t,e),pt(t,dd)}function dd(){if(!ld())return;const e=en.onpopstate;en.onpopstate=function(...n){const r=en.location.href,s=Ln;if(Ln=r,ve("history",{from:s,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){const s=r.length>2?r[2]:void 0;if(s){const i=Ln,o=String(s);Ln=o,ve("history",{from:i,to:o})}return n.apply(this,r)}}se(en.history,"pushState",t),se(en.history,"replaceState",t)}const fd=U,Me="__sentry_xhr_v3__";function vr(e){const t="xhr";ft(t,e),pt(t,pd)}function pd(){if(!fd.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;se(e,"open",function(t){return function(...n){const r=Date.now(),s=At(n[0])?n[0].toUpperCase():void 0,i=hd(n[1]);if(!s||!i)return t.apply(this,n);this[Me]={method:s,url:i,request_headers:{}},s==="POST"&&i.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const o=()=>{const a=this[Me];if(a&&this.readyState===4){try{a.status_code=this.status}catch{}const c={args:[s,i],endTimestamp:Date.now(),startTimestamp:r,xhr:this};ve("xhr",c)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?se(this,"onreadystatechange",function(a){return function(...c){return o(),a.apply(this,c)}}):this.addEventListener("readystatechange",o),se(this,"setRequestHeader",function(a){return function(...c){const[u,l]=c,d=this[Me];return d&&At(u)&&At(l)&&(d.request_headers[u.toLowerCase()]=l),a.apply(this,c)}}),t.apply(this,n)}}),se(e,"send",function(t){return function(...n){const r=this[Me];if(!r)return t.apply(this,n);n[0]!==void 0&&(r.body=n[0]);const s={args:[r.method,r.url],startTimestamp:Date.now(),xhr:this};return ve("xhr",s),t.apply(this,n)}})}function hd(e){if(At(e))return e;try{return e.toString()}catch{}}function md(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function gd(){return"npm"}function _d(){return!md()&&Object.prototype.toString.call(typeof Ci<"u"?Ci:0)==="[object process]"}function ds(){return typeof window<"u"&&(!_d()||yd())}function yd(){return U.process!==void 0&&U.process.type==="renderer"}function Sd(e,t){let n=0;for(let r=e.length-1;r>=0;r--){const s=e[r];s==="."?e.splice(r,1):s===".."?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}const bd=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function Ed(e){const t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=bd.exec(t);return n?n.slice(1):[]}function Li(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const s=r>=0?e[r]:"/";s&&(t=`${s}/${t}`,n=s.charAt(0)==="/")}return t=Sd(t.split("/").filter(r=>!!r),!n).join("/"),(n?"/":"")+t||"."}function Pi(e){let t=0;for(;t<e.length&&e[t]==="";t++);let n=e.length-1;for(;n>=0&&e[n]==="";n--);return t>n?[]:e.slice(t,n-t+1)}function vd(e,t){e=Li(e).slice(1),t=Li(t).slice(1);const n=Pi(e.split("/")),r=Pi(t.split("/")),s=Math.min(n.length,r.length);let i=s;for(let a=0;a<s;a++)if(n[a]!==r[a]){i=a;break}let o=[];for(let a=i;a<n.length;a++)o.push("..");return o=o.concat(r.slice(i)),o.join("/")}function Td(e,t){return Ed(e)[2]}function Id(e){const t=[];function n(){return e===void 0||t.length<e}function r(o){return t.splice(t.indexOf(o),1)[0]}function s(o){if(!n())return Ns(new Ce("Not adding Promise because buffer limit was reached."));const a=o();return t.indexOf(a)===-1&&t.push(a),a.then(()=>r(a)).then(null,()=>r(a).then(null,()=>{})),a}function i(o){return new Os((a,c)=>{let u=t.length;if(!u)return a(!0);const l=setTimeout(()=>{o&&o>0&&a(!1)},o);t.forEach(d=>{Pt(d).then(()=>{--u||(clearTimeout(l),a(!0))},c)})})}return{$:t,add:s,drain:i}}function et(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function wd(e){return e.split(/[\?#]/,1)[0]}function Fi(e){return e.split(/\\?\//).filter(t=>t.length>0&&t!==",").length}const kd=["fatal","error","warning","log","info","debug"];function Ca(e){return e==="warn"?"warning":kd.includes(e)?e:"log"}function Ne(e,t=[]){return[e,t]}function Rd(e,t){const[n,r]=e;return[n,[...r,t]]}function $t(e,t){const n=e[1];for(const r of n){const s=r[0].type;if(t(r,s))return!0}return!1}function Cd(e,t){return $t(e,(n,r)=>t.includes(r))}function fs(e,t){return(t||new TextEncoder).encode(e)}function xa(e,t){const[n,r]=e;let s=JSON.stringify(n);function i(o){typeof s=="string"?s=typeof o=="string"?s+o:[fs(s,t),o]:s.push(typeof o=="string"?fs(o,t):o)}for(const o of r){const[a,c]=o;if(i(`
|
|
@@ -358,4 +358,4 @@ ${t==="system"?`
|
|
|
358
358
|
`),"</html>"];return s.forEach(a=>{const c=a.stacktrace;c&&c.frames&&(c.frames=c.frames.map(u=>Kb(u,o,r,t)))}),e}function Kb(e,t,n,r){return e.filename!==n||!e.lineno||!t.length||Gl(t,e,r),e}function yn(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function Xb(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const r=yn(n);return s=>r.then(i=>s(i.transaction(t,"readwrite").objectStore(t)))}function al(e){return yn(e.getAllKeys())}function Jb(e,t,n){return e(r=>al(r).then(s=>{if(!(s.length>=n))return r.put(t,Math.max(...s,0)+1),yn(r.transaction)}))}function Zb(e){return e(t=>al(t).then(n=>{if(n.length!==0)return yn(t.get(n[0])).then(r=>(t.delete(n[0]),yn(t.transaction).then(()=>r)))}))}function Qb(e){let t;function n(){return t==null&&(t=Xb(e.dbName||"sentry-offline",e.storeName||"queue")),t}return{insert:async r=>{try{const s=await xa(r,e.textEncoder);await Jb(n(),s,e.maxQueueSize||30)}catch{}},pop:async()=>{try{const r=await Zb(n());if(r)return Ad(r,e.textEncoder||new TextEncoder,e.textDecoder||new TextDecoder)}catch{}}}}function eE(e){return t=>e({...t,createStore:Qb})}function fv(e){return eE(Pf(e))}const ea=1e6,Xn=String(0),tE="main";let cl="",ul="",ll="",Cs=E.navigator&&E.navigator.userAgent||"",dl="";const nE=E.navigator&&E.navigator.language||E.navigator&&E.navigator.languages&&E.navigator.languages[0]||"";function rE(e){return typeof e=="object"&&e!==null&&"getHighEntropyValues"in e}const ta=E.navigator&&E.navigator.userAgentData;rE(ta)&&ta.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{if(cl=e.platform||"",ll=e.architecture||"",dl=e.model||"",ul=e.platformVersion||"",e.fullVersionList&&e.fullVersionList.length>0){const t=e.fullVersionList[e.fullVersionList.length-1];Cs=`${t.brand} ${t.version}`}}).catch(e=>{});function sE(e){return!("thread_metadata"in e)}function iE(e){return sE(e)?cE(e):e}function oE(e){const t=e&&e.contexts&&e.contexts.trace&&e.contexts.trace.trace_id;return typeof t=="string"&&t.length!==32&&F&&h.log(`[Profiling] Invalid traceId: ${t} on profiled event`),typeof t!="string"?"":t}function aE(e,t,n,r){if(r.type!=="transaction")throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(n==null)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);const s=oE(r),i=iE(n),o=t||(typeof r.start_timestamp=="number"?r.start_timestamp*1e3:Date.now()),a=typeof r.timestamp=="number"?r.timestamp*1e3:Date.now();return{event_id:e,timestamp:new Date(o).toISOString(),platform:"javascript",version:"1",release:r.release||"",environment:r.environment||Yl,runtime:{name:"javascript",version:E.navigator.userAgent},os:{name:cl,version:ul,build_number:Cs},device:{locale:nE,model:dl,manufacturer:Cs,architecture:ll,is_emulator:!1},debug_meta:{images:dE(n.resources)},profile:i,transactions:[{name:r.transaction||"",id:r.event_id||Lt(),trace_id:s,active_thread_id:Xn,relative_start_ns:"0",relative_end_ns:((a-o)*1e6).toFixed(0)}]}}function fl(e){return e.op==="pageload"}function cE(e){let t,n=0;const r={samples:[],stacks:[],frames:[],thread_metadata:{[Xn]:{name:tE}}};if(!e.samples.length)return r;const s=e.samples[0].timestamp,i=typeof performance.timeOrigin=="number"?performance.timeOrigin:oe||0,o=i-(oe||i);for(let a=0;a<e.samples.length;a++){const c=e.samples[a];if(c.stackId===void 0){t===void 0&&(t=n,r.stacks[t]=[],n++),r.samples[a]={elapsed_since_start_ns:((c.timestamp+o-s)*ea).toFixed(0),stack_id:t,thread_id:Xn};continue}let u=e.stacks[c.stackId];const l=[];for(;u;){l.push(u.frameId);const f=e.frames[u.frameId];r.frames[u.frameId]===void 0&&(r.frames[u.frameId]={function:f.name,abs_path:typeof f.resourceId=="number"?e.resources[f.resourceId]:void 0,lineno:f.line,colno:f.column}),u=u.parentId===void 0?void 0:e.stacks[u.parentId]}const d={elapsed_since_start_ns:((c.timestamp+o-s)*ea).toFixed(0),stack_id:n,thread_id:Xn};r.stacks[n]=l,r.samples[a]=d,n++}return r}function uE(e,t){if(!t.length)return e;for(const n of t)e[1].push([{type:"profile"},n]);return e}function lE(e){const t=[];return $t(e,(n,r)=>{if(r==="transaction")for(let s=1;s<n.length;s++){const i=n[s];i&&i.contexts&&i.contexts.profile&&i.contexts.profile.profile_id&&t.push(n[s])}}),t}const na=new WeakMap;function dE(e){const t=U._sentryDebugIds;if(!t)return[];const n=A(),r=n&&n.getOptions(),s=r&&r.stackParser;if(!s)return[];let i;const o=na.get(s);o?i=o:(i=new Map,na.set(s,i));const a=Object.keys(t).reduce((u,l)=>{let d;const f=i.get(l);f?d=f:(d=s(l),i.set(l,d));for(let p=d.length-1;p>=0;p--){const m=d[p],_=m&&m.filename;if(m&&_){u[_]=t[l];break}}return u},{}),c=[];for(const u of e)u&&a[u]&&c.push({type:"sourcemap",code_file:u,debug_id:a[u]});return c}function fE(e){return typeof e!="number"&&typeof e!="boolean"||typeof e=="number"&&isNaN(e)?(F&&h.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)}.`),!1):e===!0||e===!1?!0:e<0||e>1?(F&&h.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function pE(e){return e.samples.length<2?(F&&h.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):e.frames.length?!0:(F&&h.log("[Profiling] Discarding profile because it contains no frames"),!1)}let pl=!1;const hl=3e4;function hE(e){return typeof e=="function"}function mE(){const e=E.Profiler;if(!hE(e)){F&&h.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object.");return}const t=10,n=Math.floor(hl/t);try{return new e({sampleInterval:t,maxBufferSize:n})}catch{F&&(h.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),h.log("[Profiling] Disabling profiling for current user session.")),pl=!0}}function xs(e){if(pl)return F&&h.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return F&&h.log("[Profiling] Discarding profile because transaction was not sampled."),!1;const t=A(),n=t&&t.getOptions();if(!n)return F&&h.log("[Profiling] Profiling disabled, no options found."),!1;const r=n.profilesSampleRate;return fE(r)?r?(r===!0?!0:Math.random()<r)?!0:(F&&h.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(r)})`),!1):(F&&h.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1):(F&&h.warn("[Profiling] Discarding profile because of invalid sample rate."),!1)}function gE(e,t,n,r){return pE(n)?aE(e,t,n,r):null}const Qe=new Map;function _E(){return Qe.size}function yE(e){const t=Qe.get(e);return t&&Qe.delete(e),t}function SE(e,t){if(Qe.set(e,t),Qe.size>30){const n=Qe.keys().next().value;Qe.delete(n)}}function pv(e){return e?xs(e)?As(e):e:(F&&h.log("[Profiling] Transaction is undefined, skipping profiling"),e)}function As(e){let t;fl(e)&&(t=ot()*1e3);const n=mE();if(!n)return e;F&&h.log(`[Profiling] started profiling transaction: ${j(e).description}`);const r=Lt();async function s(){return!e||!n?null:n.stop().then(c=>(i&&(E.clearTimeout(i),i=void 0),F&&h.log(`[Profiling] stopped profiling of transaction: ${j(e).description}`),c?(SE(r,c),null):(F&&h.log(`[Profiling] profiler returned null profile for: ${j(e).description}`,"this may indicate an overlapping transaction or a call to stopProfiling with a profile title that was never started"),null))).catch(c=>(F&&h.log("[Profiling] error while stopping profiler:",c),null))}let i=E.setTimeout(()=>{F&&h.log("[Profiling] max profile duration elapsed, stopping profiling for:",j(e).description),s()},hl);const o=e.end.bind(e);function a(){return e?(s().then(()=>{e.setContext("profile",{profile_id:r,start_timestamp:t}),o()},()=>{o()}),e):o()}return e.end=a,e}const ml="BrowserProfiling",bE=()=>({name:ml,setupOnce(){},setup(e){const n=ae().getTransaction();if(n&&fl(n)&&xs(n)&&As(n),typeof e.on!="function"){h.warn("[Profiling] Client does not support hooks, profiling will be disabled");return}e.on("startTransaction",r=>{xs(r)&&As(r)}),e.on("beforeEnvelope",r=>{if(!_E())return;const s=lE(r);if(!s.length)return;const i=[];for(const o of s){const a=o&&o.contexts,c=a&&a.profile&&a.profile.profile_id,u=a&&a.profile&&a.profile.start_timestamp;if(typeof c!="string"){F&&h.log("[Profiling] cannot find profile for a transaction without a profile context");continue}if(!c){F&&h.log("[Profiling] cannot find profile for a transaction without a profile context");continue}a&&a.profile&&delete a.profile;const l=yE(c);if(!l){F&&h.log(`[Profiling] Could not retrieve profile for transaction: ${c}`);continue}const d=gE(c,u,l,o);d&&i.push(d)}uE(r,i)})}}),EE=bE,hv=Z(ml,EE);let gl={};E.Sentry&&E.Sentry.Integrations&&(gl=E.Sentry.Integrations);const mv={...gl,...Ip,...Jm};function gv(e){const t={...e};nc(t,"react"),Km(t)}const _l="ui.react.render",vE="ui.react.update",yl="ui.react.mount",ra="/home/runner/work/sentry-javascript/sentry-javascript/packages/react/src/profiler.tsx",TE="unknown";class Sl extends me.Component{static __initStatic(){this.defaultProps={disabled:!1,includeRender:!0,includeUpdates:!0}}constructor(t){super(t);const{name:n,disabled:r=!1}=this.props;r||(this._mountSpan=tt({name:`<${n}>`,onlyIfParent:!0,op:yl,origin:"auto.ui.react.profiler",attributes:{"ui.component_name":n}}))}componentDidMount(){this._mountSpan&&this._mountSpan.end()}shouldComponentUpdate({updateProps:t,includeUpdates:n=!0}){if(n&&this._mountSpan&&t!==this.props.updateProps){const r=Object.keys(t).filter(s=>t[s]!==this.props.updateProps[s]);if(r.length>0){const s=ot();this._updateSpan=Ri(this._mountSpan,()=>tt({name:`<${this.props.name}>`,onlyIfParent:!0,op:vE,origin:"auto.ui.react.profiler",startTimestamp:s,attributes:{"ui.component_name":this.props.name,"ui.react.changed_props":r}}))}}return!0}componentDidUpdate(){this._updateSpan&&(this._updateSpan.end(),this._updateSpan=void 0)}componentWillUnmount(){const t=ot(),{name:n,includeRender:r=!0}=this.props;if(this._mountSpan&&r){const s=j(this._mountSpan).timestamp;Ri(this._mountSpan,()=>{const i=tt({onlyIfParent:!0,name:`<${n}>`,op:_l,origin:"auto.ui.react.profiler",startTimestamp:s,attributes:{"ui.component_name":n}});i&&i.end(t)})}}render(){return this.props.children}}Sl.__initStatic();function _v(e,t){const n=t&&t.name||e.displayName||e.name||TE,r=s=>me.createElement(Sl,{...t,name:n,updateProps:s,__self:this,__source:{fileName:ra,lineNumber:159}},me.createElement(e,{...s,__self:this,__source:{fileName:ra,lineNumber:160}}));return r.displayName=`profiler(${n})`,br(r,e),r}function yv(e,t={disabled:!1,hasRenderSpan:!0}){const[n]=me.useState(()=>{if(!(t&&t.disabled))return tt({name:`<${e}>`,onlyIfParent:!0,op:yl,origin:"auto.ui.react.profiler",attributes:{"ui.component_name":e}})});me.useEffect(()=>(n&&n.end(),()=>{if(n&&t.hasRenderSpan){const r=j(n).timestamp,s=ot(),i=tt({name:`<${e}>`,onlyIfParent:!0,op:_l,origin:"auto.ui.react.profiler",startTimestamp:r,attributes:{"ui.component_name":e}});i&&i.end(s)}}),[])}const fi=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,sa="/home/runner/work/sentry-javascript/sentry-javascript/packages/react/src/errorboundary.tsx";function IE(e){const t=e.match(/^([^.]+)/);return t!==null&&parseInt(t[0])>=17}const wE="unknown",ia={componentStack:null,error:null,eventId:null};function kE(e,t){const n=new WeakMap;function r(s,i){if(!n.has(s)){if(s.cause)return n.set(s,!0),r(s.cause,i);s.cause=i}}r(e,t)}class pi extends me.Component{constructor(t){super(t),pi.prototype.__init.call(this),this.state=ia,this._openFallbackReportDialog=!0;const n=A();n&&n.on&&t.showDialog&&(this._openFallbackReportDialog=!1,n.on("afterSendEvent",r=>{!r.type&&r.event_id===this._lastEventId&&lo({...t.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(t,{componentStack:n}){const{beforeCapture:r,onError:s,showDialog:i,dialogOptions:o}=this.props;lt(a=>{if(IE(me.version)&&Mt(t)){const u=new Error(t.message);u.name=`React ErrorBoundary ${t.name}`,u.stack=n,kE(t,u)}r&&r(a,t,n);const c=Sn(t,{captureContext:{contexts:{react:{componentStack:n}}},mechanism:{handled:!!this.props.fallback}});s&&s(t,n,c),i&&(this._lastEventId=c,this._openFallbackReportDialog&&lo({...o,eventId:c})),this.setState({error:t,componentStack:n,eventId:c})})}componentDidMount(){const{onMount:t}=this.props;t&&t()}componentWillUnmount(){const{error:t,componentStack:n,eventId:r}=this.state,{onUnmount:s}=this.props;s&&s(t,n,r)}__init(){this.resetErrorBoundary=()=>{const{onReset:t}=this.props,{error:n,componentStack:r,eventId:s}=this.state;t&&t(n,r,s),this.setState(ia)}}render(){const{fallback:t,children:n}=this.props,r=this.state;if(r.error){let s;return typeof t=="function"?s=t({error:r.error,componentStack:r.componentStack,resetError:this.resetErrorBoundary,eventId:r.eventId}):s=t,me.isValidElement(s)?s:(t&&fi&&h.warn("fallback did not produce a valid ReactElement"),null)}return typeof n=="function"?n():n}}function Sv(e,t){const n=e.displayName||e.name||wE,r=s=>me.createElement(pi,{...t,__self:this,__source:{fileName:sa,lineNumber:240}},me.createElement(e,{...s,__self:this,__source:{fileName:sa,lineNumber:241}}));return r.displayName=`errorBoundary(${n})`,br(r,e),r}const RE="redux.action",CE="info",xE={attachReduxState:!0,actionTransformer:e=>e,stateTransformer:e=>e||null};function bv(e){const t={...xE,...e};return n=>(r,s)=>(t.attachReduxState&&Vl().addEventProcessor((o,a)=>{try{o.type===void 0&&o.contexts.state.state.type==="redux"&&(a.attachments=[...a.attachments||[],{filename:"redux_state.json",data:JSON.stringify(o.contexts.state.state.value)}])}catch{}return o}),n((o,a)=>{const c=r(o,a),u=ae(),l=t.actionTransformer(a);typeof l<"u"&&l!==null&&u.addBreadcrumb({category:RE,data:l,type:CE});const d=t.stateTransformer(c);if(typeof d<"u"&&d!==null){const p=A(),m=p&&p.getOptions(),_=m&&m.normalizeDepth||3,S={state:{type:"redux",value:d}};it(S,"__sentry_override_normalization_depth__",3+_),u.setContext("state",S)}else u.setContext("state",null);const{configureScopeWithState:f}=t;return typeof f=="function"&&f(u,c),c},s))}function Ev(e){const t=Cr({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,match:s,instrumentPageLoad:i=!0,instrumentNavigation:o=!0}=e;return{...t,afterAllSetup(a){t.afterAllSetup(a);const c=d=>{wn(a,d)},u=d=>{kn(a,d)},l=AE(n,r,s);l(c,i,!1),l(u,!1,o)}}}function AE(e,t,n){return(r,s=!0,i=!0)=>{let o,a;s&&E&&E.location&&oa(t,E.location,n,(c,u="url")=>{a=c,o=r({name:a,attributes:{[Ee]:"pageload",[he]:"auto.pageload.react.reactrouter_v3",[ee]:u}})}),i&&e.listen&&e.listen(c=>{(c.action==="PUSH"||c.action==="POP")&&(o&&o.end(),oa(t,c,n,(u,l="url")=>{a=u;const d={[Ee]:"navigation",[he]:"auto.navigation.react.reactrouter_v3",[ee]:l};o=r({name:a,attributes:d})}))})}}function oa(e,t,n,r){let s=t.pathname;n({location:t,routes:e},(i,o,a)=>{if(i||!a)return r(s);const c=ME(a.routes||[]);return c.length===0||c==="/*"?r(s):(s=c,r(s,"route"))})}function ME(e){if(!Array.isArray(e)||e.length===0)return"";const t=e.filter(r=>!!r.path);let n=-1;for(let r=t.length-1;r>=0;r--){const s=t[r];if(s.path&&s.path.startsWith("/")){n=r;break}}return t.slice(n).filter(({path:r})=>!!r).map(({path:r})=>r).join("")}const OE="/home/runner/work/sentry-javascript/sentry-javascript/packages/react/src/reactrouter.tsx";let xt;function vv(e){const t=Cr({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,matchPath:s,instrumentPageLoad:i=!0,instrumentNavigation:o=!0}=e;return{...t,afterAllSetup(a){t.afterAllSetup(a);const c=d=>{wn(a,d)},u=d=>{kn(a,d)},l=NE(n,r,s);l(c,i,!1),l(u,!1,o)}}}function Tv(e){const t=Cr({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,matchPath:s}=e;return{...t,afterAllSetup(i){t.afterAllSetup(i);const o=u=>{wn(i,u)},a=u=>{kn(i,u)},c=DE(n,r,s);c(o,e.instrumentPageLoad,!1),c(a,!1,e.instrumentNavigation)}}}function NE(e,t,n){return bl(e,"reactrouter_v4",t,n)}function DE(e,t,n){return bl(e,"reactrouter_v5",t,n)}function bl(e,t,n=[],r){function s(){if(e&&e.location)return e.location.pathname;if(E&&E.location)return E.location.pathname}function i(o){if(n.length===0||!r)return[o,"url"];const a=El(n,o,r);for(let c=0;c<a.length;c++)if(a[c].match.isExact)return[a[c].match.path,"route"];return[o,"url"]}return(o,a=!0,c=!0)=>{const u=s();if(a&&u){const[l,d]=i(u);xt=o({name:l,attributes:{[Ee]:"pageload",[he]:`auto.pageload.react.${t}`,[ee]:d}})}c&&e.listen&&e.listen((l,d)=>{if(d&&(d==="PUSH"||d==="POP")){xt&&xt.end();const[f,p]=i(l.pathname);xt=o({name:f,attributes:{[Ee]:"navigation",[he]:`auto.navigation.react.${t}`,[ee]:p}})}})}}function El(e,t,n,r=[]){return e.some(s=>{const i=s.path?n(t,s):r.length?r[r.length-1].match:LE(t);return i&&(r.push({route:s,match:i}),s.routes&&El(s.routes,t,n,r)),!!i}),r}function LE(e){return{path:"/",url:"/",params:{},isExact:e==="/"}}function Iv(e){const t=e.displayName||e.name,n=r=>{if(r&&r.computedMatch&&r.computedMatch.isExact){const s=r.computedMatch.path,i=PE();i&&(i.updateName(s),i.setAttribute(ee,"route"))}return me.createElement(e,{...r,__self:this,__source:{fileName:OE,lineNumber:279}})};return n.displayName=`sentryRoute(${t})`,br(n,e),n}function PE(){if(xt)return xt;const e=Kt(),t=e?Jn(e):void 0;if(!t)return;const n=j(t).op;return n==="navigation"||n==="pageload"?t:void 0}const vl="/home/runner/work/sentry-javascript/sentry-javascript/packages/react/src/reactrouterv6.tsx";let Nt,nt,rt,st,dn,ut,qt,Fr,Je=!1;function wv(e){const t=Cr({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{useEffect:n,useLocation:r,useNavigationType:s,createRoutesFromChildren:i,matchRoutes:o,stripBasename:a,instrumentPageLoad:c=!0,instrumentNavigation:u=!0}=e;return{...t,afterAllSetup(l){t.afterAllSetup(l);const d=p=>{kn(l,p)},f=E&&E.location&&E.location.pathname;c&&f&&wn(l,{name:f,attributes:{[ee]:"url",[Ee]:"pageload",[he]:"auto.pageload.react.reactrouter_v6"}}),nt=n,rt=r,st=s,ut=o,dn=i,Je=a||!1,qt=d,Fr=u}}}function kv(e,t,n,r,s,i){return(o,a=!0,c=!0)=>{const u=E&&E.location&&E.location.pathname;a&&u&&(Nt=o({name:u,attributes:{[ee]:"url",[Ee]:"pageload",[he]:"auto.pageload.react.reactrouter_v6"}})),nt=e,rt=t,st=n,ut=s,dn=r,Je=i||!1,qt=o,Fr=c}}function ns(e,t){if(!t||t==="/"||!e.toLowerCase().startsWith(t.toLowerCase()))return e;const n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?e:e.slice(n)||"/"}function Tl(e,t,n,r=""){if(!e||e.length===0)return[Je?ns(t.pathname,r):t.pathname,"url"];let s="";if(n)for(let i=0;i<n.length;i++){const o=n[i],a=o.route;if(a){if(a.index)return[Je?ns(o.pathname,r):o.pathname,"route"];const c=a.path;if(c){const u=c[0]==="/"||s[s.length-1]==="/"?c:`/${c}`;if(s+=u,r+o.pathname===t.pathname)return Fi(s)!==Fi(o.pathname)&&s.slice(-2)!=="/*"?[(Je?"":r)+u,"route"]:[(Je?"":r)+s,"route"]}}}return[Je?ns(t.pathname,r):t.pathname,"url"]}function hi(e,t,n,r,s){const i=Array.isArray(r)?r:ut(n,t,s);if(e&&i){const[o,a]=Tl(n,t,i,s);e.updateName(o),e.setAttribute(ee,a)}}function mi(e,t,n,r,s){const i=Array.isArray(r)?r:ut(t,e,s);if(Fr&&(n==="PUSH"||n==="POP")&&i){Nt&&Nt.end();const[o,a]=Tl(t,e,i,s);Nt=qt({name:o,attributes:{[ee]:a,[Ee]:"navigation",[he]:"auto.navigation.react.reactrouter_v6"}})}}function Rv(e){if(!nt||!rt||!st||!dn||!ut||!qt)return fi&&h.warn(`reactRouterV6Instrumentation was unable to wrap Routes because of one or more missing parameters.
|
|
359
359
|
useEffect: ${nt}. useLocation: ${rt}. useNavigationType: ${st}.
|
|
360
360
|
createRoutesFromChildren: ${dn}. matchRoutes: ${ut}. customStartTransaction: ${qt}.`),e;let t=!0;const n=r=>{const s=rt(),i=st();return nt(()=>{const o=dn(r.children);t?(hi(gi(),s,o),t=!1):mi(s,o,i)},[s,i]),me.createElement(e,{...r,__self:this,__source:{fileName:vl,lineNumber:329}})};return br(n,e),n}function Cv(e){if(!nt||!rt||!st||!ut||!qt)return fi&&h.warn("reactRouterV6Instrumentation was unable to wrap `useRoutes` because of one or more missing parameters."),e;let t=!0;const n=r=>{const{routes:s,locationArg:i}=r,o=e(s,i),a=rt(),c=st(),u=typeof i=="string"||i&&i.pathname?i:a;return nt(()=>{const l=typeof u=="string"?{pathname:u}:u;t?(hi(gi(),l,s),t=!1):mi(l,s,c)},[c,u]),o};return(r,s)=>me.createElement(n,{routes:r,locationArg:s,__self:this,__source:{fileName:vl,lineNumber:386}})}function xv(e){return function(t,n){const r=e(t,n),s=n&&n.basename,i=gi();return r.state.historyAction==="POP"&&i&&hi(i,r.state.location,t,void 0,s),r.subscribe(o=>{const a=o.location;Fr&&(o.historyAction==="PUSH"||o.historyAction==="POP")&&mi(a,t,o.historyAction,void 0,s)}),r}}function gi(){if(Nt)return Nt;const e=Kt(),t=e?Jn(e):void 0;if(!t)return;const n=j(t).op;return n==="navigation"||n==="pageload"?t:void 0}export{mm as Breadcrumbs,Hh as BrowserClient,hv as BrowserProfilingIntegration,tv as BrowserTracing,Im as Dedupe,pi as ErrorBoundary,Pr as Feedback,lp as FunctionToString,xm as GlobalHandlers,Pm as HttpContext,Ov as Hub,Qf as InboundFilters,mv as Integrations,Hm as LinkedErrors,QE as ModuleMetadata,Sl as Profiler,Dr as Replay,lv as ReplayCanvas,Ti as SDK_VERSION,Ee as SEMANTIC_ATTRIBUTE_SENTRY_OP,he as SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,Tt as SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,ee as SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,Nv as Scope,zm as TryCatch,E as WINDOW,je as addBreadcrumb,Tf as addEventProcessor,$l as addGlobalEventProcessor,XE as addIntegration,za as addTracingExtensions,Dc as breadcrumbsIntegration,Vc as browserApiErrorsIntegration,EE as browserProfilingIntegration,Cr as browserTracingIntegration,pb as captureConsoleIntegration,Sr as captureEvent,Sn as captureException,is as captureMessage,ki as captureSession,av as captureUserFeedback,em as chromeStackLineParser,Dv as close,Lv as configureScope,Yb as contextLinesIntegration,KE as continueTrace,bv as createReduxEnhancer,Qa as createTransport,$h as createUserFeedbackEnvelope,gb as debugIntegration,yb as dedupeIntegration,Ym as defaultIntegrations,ir as defaultRequestInstrumentationOptions,fm as defaultStackLineParsers,pm as defaultStackParser,Pv as endSession,Dh as eventFromException,Lh as eventFromMessage,Mc as exceptionFromError,Tb as extraErrorDataIntegration,jE as extractTraceparentData,dv as feedbackIntegration,Fv as flush,sv as forceLoad,cc as functionToStringIntegration,sm as geckoStackLineParser,Kt as getActiveSpan,Oe as getActiveTransaction,A as getClient,Ie as getCurrentHub,ae as getCurrentScope,Vm as getDefaultIntegrations,$v as getHubFromCarrier,uv as getReplay,Da as getSpanStatusFromHttpCode,Hc as globalHandlersIntegration,Db as httpClientIntegration,jc as httpContextIntegration,oc as inboundFiltersIntegration,gv as init,Cc as instrumentOutgoingRequests,Bv as isInitialized,Hv as lastEventId,Gc as linkedErrorsIntegration,fv as makeBrowserOfflineTransport,zh as makeFetchTransport,Uv as makeMain,JE as makeMultiplexedTransport,qh as makeXHRTransport,ev as metrics,Kf as moduleMetadataIntegration,iv as onLoad,pv as onProfilingStartRouteTransaction,nv as opera10StackLineParser,rv as opera11StackLineParser,ZE as parameterize,Ev as reactRouterV3BrowserTracingIntegration,AE as reactRouterV3Instrumentation,vv as reactRouterV4BrowserTracingIntegration,NE as reactRouterV4Instrumentation,Tv as reactRouterV5BrowserTracingIntegration,DE as reactRouterV5Instrumentation,wv as reactRouterV6BrowserTracingIntegration,kv as reactRouterV6Instrumentation,DS as replayCanvasIntegration,cv as replayIntegration,Cb as reportingObserverIntegration,Ab as rewriteFramesIntegration,KS as sendFeedback,Ob as sessionTimingIntegration,ql as setContext,Mf as setCurrentClient,Wv as setExtra,zv as setExtras,Ws as setHttpStatus,Xd as setMeasurement,jv as setTag,qv as setTags,Gv as setUser,lo as showReportDialog,qE as spanStatusfromHttpCode,kn as startBrowserTracingNavigationSpan,wn as startBrowserTracingPageLoadSpan,tt as startInactiveSpan,wi as startSession,YE as startSpan,VE as startSpanManual,Yv as startTransaction,GE as trace,yv as useProfiler,am as winjsStackLineParser,Ri as withActiveSpan,Sv as withErrorBoundary,Vv as withIsolationScope,_v as withProfiler,lt as withScope,Rv as withSentryReactRouterV6Routing,Iv as withSentryRouting,ov as wrap,xv as wrapCreateBrowserRouter,Cv as wrapUseRoutes};
|
|
361
|
-
//# sourceMappingURL=index.
|
|
361
|
+
//# sourceMappingURL=index.ix7EA-Vj.js.map
|