PageSourceSearch

https://app.idrivesafely.com/assets/index-BeghWz6t.js

js idrivesafely.com collected 2026-09-24 18:01:15 UTC 8,666 bytes, 2 lines download raw bytes

vendor: 7,983 bytes, line 1
1import{_ as f,a as v,l as z,g as D,u as L,b as _,r as w,i as I,c as p,C as N,d as M,e as m,f as j,m as C,h as E,j as F,P as B,k as Q,p as T,n as W,o as G,q as U}from"./index-LrH-sEEU.js";import{i as V}from"./is-plan-event-enabled-CwfWB81O.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"[email protected]"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4349e337-81e7-49f6-a31c-d2a5ede161c2",e._sentryDebugIdIdentifier="sentry-dbid-4349e337-81e7-49f6-a31c-d2a5ede161c2")}catch{}})();function S(e){return e.toLowerCase().replace(".","").replace(/\s+/g,"-")}function k(e,t){return t===void 0&&(t=!1),t?btoa(e).replace(/=/g,""):void 0}function Y(e){return("Integration"in e?e.Integration:e).prototype.name}function H(e,t,n){var i,a;try{var r=((a=(i=window?.performance)===null||i===void 0?void 0:i.getEntriesByName(e,"resource"))!==null&&a!==void 0?a:[])[0];r&&t.stats.gauge("legacy_destination_time",Math.round(r.duration),_([n],r.duration<100?["cached"]:[],!0))}catch{}}function J(e,t,n){var i;if("Integration"in e){var a={user:function(){return n.user()},addIntegration:function(){}};e(a),i=e.Integration}else i=e;var r=new i(t);return r.analytics=n,r}function K(e,t,n,i){return f(this,void 0,void 0,function(){var a,r,s,u,o,l;return v(this,function(c){switch(c.label){case 0:a=S(t),r=k(a,i),s=D(),u="".concat(s,"/integrations/").concat(r??a,"/").concat(n,"/").concat(r??a,".dynamic.js.gz"),c.label=1;case 1:return c.trys.push([1,3,,4]),[4,z(u)];case 2:return c.sent(),H(u,e,t),[3,4];case 3:throw o=c.sent(),e.stats.gauge("legacy_destination_time",-1,["plugin:".concat(t),"failed"]),o;case 4:return l=window["".concat(a,"Deps")],[4,Promise.all(l.map(function(g){return z(s+g+".gz")}))];case 5:return c.sent(),window["".concat(a,"Loader")](),[2,window["".concat(a,"Integration")]]}})})}function X(e,t,n){return f(this,void 0,void 0,function(){var i,a,r,s;return v(this,function(u){return i=D(),a=S(e),r=k(e,n),s="".concat(i,"/integrations/").concat(r??a,"/").concat(t,"/").concat(r??a,".dynamic.js.gz"),[2,L(s)]})})}function Z(e){var t,n,i,a;return(a=(n=(t=e?.versionSettings)===null||t===void 0?void 0:t.override)!==null&&n!==void 0?n:(i=e?.versionSettings)===null||i===void 0?void 0:i.version)!==null&&a!==void 0?a:"latest"}var $=function(e,t){var n,i=t.type,a=t.bundlingStatus,r=t.versionSettings,s=a!=="unbundled"&&(i==="browser"||((n=r?.componentTypes)===null||n===void 0?void 0:n.includes("browser")));return!e.startsWith("Segment")&&e!=="Iterable"&&s},q=function(e,t){var n=t.All===!1&&t[e]===void 0;return t[e]===!1||n};function x(e,t){return f(this,void 0,void 0,function(){var n,i=this;return v(this,function(a){switch(a.label){case 0:return n=[],I()?[2,t]:[4,T(function(){return t.length>0&&U()},function(){return f(i,void 0,void 0,function(){var r,s,u;return v(this,function(o){switch(o.label){case 0:return r=t.pop(),r?[4,W(r,e)]:[2];case 1:return s=o.sent(),u=s instanceof G,u||n.push(r),[2]}})})})];case 1:return a.sent(),n.map(function(r){return t.pushWithBackoff(r)}),[2,t]}})})}var tt=(function(){function e(t,n,i,a,r,s){a===void 0&&(a={});var u=this;this.options={},this.type="destination",this.middleware=[],this.initializePromise=F(),this.flushing=!1,this.name=t,this.version=n,this.settings=p({},a),this.disableAutoISOConversion=r.disableAutoISOConversion||!1,this.integrationSource=s,this.settings.type&&this.settings.type==="browser"&&delete this.settings.type,this.initializePromise.promise.then(function(o){return u._initialized=o},function(){}),this.options=r,this.buffer=r.disableClientPersistence?new B(4,[]):new Q(4,"".concat(i,":dest-").concat(t)),this.scheduleFlush()}return e.prototype.isLoaded=function(){return!!this._ready},e.prototype.ready=function(){var t=this;return this.initializePromise.promise.then(function(){var n;return(n=t.onReady)!==null&&n!==void 0?n:Promise.resolve()})},e.prototype.load=function(t,n){var i;return f(this,void 0,void 0,function(){var a,r,s=this;return v(this,function(u){switch(u.label){case 0:return this._ready||this.onReady!==void 0?[2]:(i=this.integrationSource)!==null&&i!==void 0?(r=i,[3,3]):[3,1];case 1:return[4,K(t,this.name,this.version,this.options.obfuscate)];case 2:r=u.sent(),u.label=3;case 3:a=r,this.integration=J(a,this.settings,n),this.onReady=new Promise(function(o){var l=function(){s._ready=!0,o(!0)};s.integration.once("ready",l)}),this.integration.on("initialize",function(){s.initializePromise.resolve(!0)});try{w(t,{integrationName:this.name,methodName:"initialize",type:"classic"}),this.integration.initialize()}catch(o){throw w(t,{integrationName:this.name,methodName:"initialize",type:"classic",didError:!0}),this.initializePromise.resolve(!1),o}return[2]}})})},e.prototype.unload=function(t,n){return X(this.name,this.version,this.options.obfuscate)},e.prototype.addMiddleware=function(){for(var t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];this.middleware=(t=this.middleware).concat.apply(t,n)},e.prototype.shouldBuffer=function(t){return t.event.type!=="page"&&(I()||this._ready!==!0||this._initialized!==!0)},e.prototype.send=function(t,n,i){var a,r;return f(this,void 0,void 0,function(){var s,u,o,l,c,g;return v(this,function(h){switch(h.label){case 0:return this.shouldBuffer(t)?(this.buffer.push(t),this.scheduleFlush(),[2,t]):(s=(r=(a=this.options)===null||a===void 0?void 0:a.plan)===null||r===void 0?void 0:r.track,u=t.event.event,s&&u&&this.name!=="Segment.io"&&(o=s[u],V(s,o)?t.updateEvent("integrations",p(p({},t.event.integrations),o?.integrations)):(t.updateEvent("integrations",p(p({},t.event.integrations),{All:!1,"Segment.io":!0})),t.cancel(new N({retry:!1,reason:"Event ".concat(u," disabled for integration ").concat(this.name," in tracking plan"),type:"Dropped by plan"}))),o?.enabled&&o?.integrations[this.name]===!1&&t.cancel(new N({retry:!1,reason:"Event ".concat(u," disabled for integration ").concat(this.name," in tracking plan"),type:"Dropped by plan"}))),[4,M(this.name,t.event,this.middleware)]);case 1:if(l=h.sent(),l===null)return[2,t];c=new n(l,{traverse:!this.disableAutoISOConversion}),w(t,{integrationName:this.name,methodName:i,type:"classic"}),h.label=2;case 2:return h.trys.push([2,5,,6]),this.integration?[4,this.integration.invoke.call(this.integration,i,c)]:[3,4];case 3:h.sent(),h.label=4;case 4:return[3,6];case 5:throw g=h.sent(),w(t,{integrationName:this.name,methodName:i,type:"classic",didError:!0}),g;case 6:return[2,t]}})})},e.prototype.track=function(t){return f(this,void 0,void 0,function(){return v(this,function(n){return[2,this.send(t,m.Track,"track")]})})},e.prototype.page=function(t){var n;return f(this,void 0,void 0,function(){return v(this,function(i){switch(i.label){case 0:return!((n=this.integration)===null||n===void 0)&&n._assumesPageview&&!this._initialized&&this.integration.initialize(),[4,this.initializePromise.promise];case 1:return i.sent(),[2,this.send(t,m.Page,"page")]}})})},e.prototype.identify=function(t){return f(this,void 0,void 0,function(){return v(this,function(n){return[2,this.send(t,m.Identify,"identify")]})})},e.prototype.alias=function(t){return f(this,void 0,void 0,function(){return v(this,function(n){return[2,this.send(t,m.Alias,"alias")]})})},e.prototype.group=function(t){return f(this,void 0,void 0,function(){return v(this,function(n){return[2,this.send(t,m.Group,"group")]})})},e.prototype.scheduleFlush=function(){var t=this;this.flushing||setTimeout(function(){return f(t,void 0,void 0,function(){var n;return v(this,function(i){switch(i.label){case 0:return I()||this._ready!==!0||this._initialized!==!0?(this.scheduleFlush(),[2]):(this.flushing=!0,n=this,[4,x(this,this.buffer)]);case 1:return n.buffer=i.sent(),this.flushing=!1,this.buffer.todo>0&&this.scheduleFlush(),[2]}})})},Math.random()*5e3)},e})();function nt(e,t,n,i,a,r){var s,u;if(n===void 0&&(n={}),i===void 0&&(i={}),j())return[];t.plan&&(i=i??{},i.plan=t.plan);
1var o=(u=(s=t.middlewareSettings)===null||s===void 0?void 0:s.routingRules)!==null&&u!==void 0?u:[],l=t.integrations,c=i.integrations,g=C(t,i??{}),h=r?.reduce(function(d,b){var y;return p(p({},d),(y={},y[Y(b)]=b,y))},{}),A=new Set(_(_([],Object.keys(l).filter(function(d){return $(d,l[d])}),!0),Object.keys(h||{}).filter(function(d){return E(l[d])||E(c?.[d])}),!0));return Array.from(A).filter(function(d){return!q(d,n)}).map(function(d){var b=l[d],y=Z(b),P=new tt(d,y,e,g[d],i,h?.[d]),O=o.filter(function(R){return R.destinationName===d});return O.length>0&&a&&P.addMiddleware(a),P})}export{tt as LegacyDestination,nt as ajsDestinations};
2//# sourceMappingURL=index-BeghWz6t.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.