PageSourceSearch

https://lingduck.cn/assets/@sentry_vue-BpBoSdfL.js

js lingduck.cn collected 2026-10-10 00:29:23 UTC 3,986 bytes, 2 lines download raw bytes

1import{c as m,n as _,o as $,S as y,d as O,p as R}from"./@sentry_core-BgJ8dncn.js";import{T as l,l as N,c as D,G as V,a6 as A,X as g}from"./@sentry_utils-DI4d1A1o.js";import{g as w,i as C}from"./@sentry_browser-DPrM4qNP.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new t.Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="b415b083-1110-4a9a-a706-23a7668baa6c",t._sentryDebugIdIdentifier="sentry-dbid-b415b083-1110-4a9a-a706-23a7668baa6c")}catch(e){}})();const E=["activate","mount","update"],T=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,M=/(?:^|[-_])(\w)/g,k=t=>t.replace(M,n=>n.toUpperCase()).replace(/[-_]/g,""),U="<Root>",d="<Anonymous>",x=(t,n)=>t.repeat(n),p=(t,n)=>{if(!t)return d;if(t.$root===t)return U;if(!t.$options)return d;const e=t.$options;let a=e.name||e._componentTag||e.__name;const o=e.__file;if(!a&&o){const s=o.match(/([^/\\]+)\.vue$/);s&&(a=s[1])}return(a?"<".concat(k(a),">"):d)+(o&&n!==!1?" at ".concat(o):"")},G=t=>{if(t&&(t._isVue||t.__isVue)&&t.$parent){const n=[];let e=0;for(;t;){if(n.length>0){const o=n[n.length-1];if(o.constructor===t.constructor){e++,t=t.$parent;continue}else e>0&&(n[n.length-1]=[o,e],e=0)}n.push(t),t=t.$parent}const a=n.map((o,s)=>"".concat((s===0?"---> ":x(" ",5+s*2))+(Array.isArray(o)?"".concat(p(o[0]),"... (").concat(o[1]," recursive calls)"):p(o)))).join("\n");return"\n\nfound in\n\n".concat(a)}return"\n\n(found in ".concat(p(t),")")},B=(t,n)=>{const{errorHandler:e,warnHandler:a,silent:o}=t.config;t.config.errorHandler=(s,r,c)=>{const f=p(r,!1),i=r?G(r):"",u={componentName:f,lifecycleHook:c,trace:i};if(n.attachProps&&r&&(r.$options&&r.$options.propsData?u.propsData=r.$options.propsData:r.$props&&(u.propsData=r.$props)),setTimeout(()=>{m(s,{captureContext:{contexts:{vue:u}},mechanism:{handled:!1}})}),typeof e=="function"&&e.call(t,s,r,c),n.logErrors){const I=typeof console<"u",b="Error in ".concat(c,': "').concat(s&&s.toString(),'"');a?a.call(null,b,r,i):I&&!o&&l(()=>{})}}},S="ui.vue",H={activate:["activated","deactivated"],create:["beforeCreate","created"],unmount:["beforeUnmount","unmounted"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]};function K(t,n,e){t.$_sentryRootSpanTimer&&clearTimeout(t.$_sentryRootSpanTimer),t.$_sentryRootSpanTimer=setTimeout(()=>{t.$root&&t.$root.$_sentryRootSpan&&(t.$root.$_sentryRootSpan.end(n),t.$root.$_sentryRootSpan=void 0)},e)}const L=t=>{const n=(t.hooks||[]).concat(E).filter((a,o,s)=>s.indexOf(a)===o),e={};for(const a of n){const o=H[a];if(!o){T&&N.warn("Unknown hook: ".concat(a));continue}for(const s of o)e[s]=function(){const r=this.$root===this;r&&_()&&(this.$_sentryRootSpan=this.$_sentryRootSpan||$({name:"Application Render",op:"".concat(S,".render"),attributes:{[y]:"auto.ui.vue"}}));const c=p(this,!1),f=Array.isArray(t.trackComponents)?t.trackComponents.indexOf(c)>-1:t.trackComponents;if(!(!r&&!f))if(this.$_sentrySpans=this.$_sentrySpans||{},s==o[0]){if(this.$root&&this.$root.$_sentryRootSpan||_()){const u=this.$_sentrySpans[a];u&&u.end(),this.$_sentrySpans[a]=$({name:"Vue <".concat(c,">"),op:"".concat(S,".").concat(a),attributes:{[y]:"auto.ui.vue"}})}}else{const i=this.$_sentrySpans[a];if(!i)return;i.end(),K(this,D(),t.timeout)}}}return e},P=V,Y={Vue:P.Vue,attachProps:!0,logErrors:!0,hooks:E,timeout:2e3,trackComponents:!1},F="Vue",j=(t={})=>({name:F,setup(n){q(n,t)}}),W=O(j);function q(t,n){const e={...Y,...t.getOptions(),...n};if(!e.Vue&&!e.app){l(()=>{});return}e.app?A(e.app).forEach(o=>h(o,e)):e.Vue&&h(e.Vue,e)}const h=(t,n)=>{if(T){const e=t;(e._instance&&e._instance.isMounted)===!0&&l(()=>{})}B(t,n),R(n)&&t.mixin(L({...n,...n.tracingOptions}))};function Q(t={}){const n={_metadata:{sdk:{name:"sentry.javascript.vue",packages:[{name:"npm:@sentry/vue",version:g}],version:g}},defaultIntegrations:[...w(),W()],...t};return C(n)}export{Q as i};
2//# sourceMappingURL=@sentry_vue-BpBoSdfL.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.