PageSourceSearch

https://static.snitcher.com/blackpearl/build/assets/index-t7AHyw9k.js

js snitcher.com collected 2026-09-24 08:47:04 UTC 8,441 bytes, 2 lines download raw bytes

vendor: 8,441 bytes, lines 1-2
1import{I as v,J as f,K as I,L as D,M as L,N as _,O as b,P,Q as p,R as N,T as R,U as y,V as F,W as j,X as S,Y as C,Z as Q,$ as B,a0 as W,a1 as T,a2 as U,a3 as V}from"./app-BhxsWfrC.js";import{i as G}from"./is-plan-event-enabled-DS1Agtkw.js";import"./vendor-DP2J4TSr.js";function E(e){return e.toLowerCase().replace(".","").replace(/\s+/g,"-")}function O(e,t){return t===void 0&&(t=!1),t?btoa(e).replace(/=/g,""):void 0}function J(e){return("Integration"in e?e.Integration:e).prototype.name}function K(e,t,n){var i,a;try{var r=((a=(i=window==null?void 0: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 X(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 Y(e,t,n,i){return v(this,void 0,void 0,function(){var a,r,s,u,o,d;return f(this,function(c){switch(c.label){case 0:a=E(t),r=O(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,I(u)];case 2:return c.sent(),K(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 d=window["".concat(a,"Deps")],[4,Promise.all(d.map(function(g){return I(s+g+".gz")}))];case 5:return c.sent(),window["".concat(a,"Loader")](),[2,window["".concat(a,"Integration")]]}})})}function Z(e,t,n){return v(this,void 0,void 0,function(){var i,a,r,s;return f(this,function(u){return i=D(),a=E(e),r=O(e,n),s="".concat(i,"/integrations/").concat(r??a,"/").concat(t,"/").concat(r??a,".dynamic.js.gz"),[2,L(s)]})})}function $(e){var t,n,i,a;return(a=(n=(t=e==null?void 0:e.versionSettings)===null||t===void 0?void 0:t.override)!==null&&n!==void 0?n:(i=e==null?void 0:e.versionSettings)===null||i===void 0?void 0:i.version)!==null&&a!==void 0?a:"latest"}var H=function(e,t){var n,i=t.type,a=t.bundlingStatus,r=t.versionSettings,s=a!=="unbundled"&&(i==="browser"||((n=r==null?void 0: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 v(this,void 0,void 0,function(){var n,i=this;return f(this,function(a){switch(a.label){case 0:return n=[],P()?[2,t]:[4,W(function(){return t.length>0&&V()},function(){return v(i,void 0,void 0,function(){var r,s,u;return f(this,function(o){switch(o.label){case 0:return r=t.pop(),r?[4,T(r,e)]:[2];case 1:return s=o.sent(),u=s instanceof U,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=C(),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 Q(4,[]):new B(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 v(this,void 0,void 0,function(){var a,r,s=this;return f(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,Y(t,this.name,this.version,this.options.obfuscate)];case 2:r=u.sent(),u.label=3;case 3:a=r,this.integration=X(a,this.settings,n),this.onReady=new Promise(function(o){var d=function(){s._ready=!0,o(!0)};s.integration.once("ready",d)}),this.integration.on("initialize",function(){s.initializePromise.resolve(!0)});try{b(t,{integrationName:this.name,methodName:"initialize",type:"classic"}),this.integration.initialize()}catch(o){throw b(t,{integrationName:this.name,methodName:"initialize",type:"classic",didError:!0}),this.initializePromise.resolve(!1),o}return[2]}})})},e.prototype.unload=function(t,n){return Z(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"&&(P()||this._ready!==!0||this._initialized!==!0)},e.prototype.send=function(t,n,i){var a,r;return v(this,void 0,void 0,function(){var s,u,o,d,c,g;return f(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],G(s,o)?t.updateEvent("integrations",p(p({},t.event.integrations),o==null?void 0: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!=null&&o.enabled&&(o==null?void 0: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,R(this.name,t.event,this.middleware)]);case 1:if(d=h.sent(),d===null)return[2,t];c=new n(d,{traverse:!this.disableAutoISOConversion}),b(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(),b(t,{integrationName:this.name,methodName:i,type:"classic",didError:!0}),g;case 6:return[2,t]}})})},e.prototype.track=function(t){return v(this,void 0,void 0,function(){return f(this,function(n){return[2,this.send(t,y.Track,"track")]})})},e.prototype.page=function(t){var n;return v(this,void 0,void 0,function(){return f(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,y.Page,"page")]}})})},e.prototype.identify=function(t){return v(this,void 0,void 0,function(){return f(this,function(n){return[2,this.send(t,y.Identify,"identify")]})})},e.prototype.alias=function(t){return v(this,void 0,void 0,function(){return f(this,function(n){return[2,this.send(t,y.Alias,"alias")]})})},e.prototype.group=function(t){return v(this,void 0,void 0,function(){return f(this,function(n){return[2,this.send(t,y.Group,"group")]})})},e.prototype.scheduleFlush=function(){var t=this;this.flushing||setTimeout(function(){return v(t,void 0,void 0,function(){var n;return f(this,function(i){switch(i.label){case 0:return P()||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 rt(e,t,n,i,a,r){var s,u;if(n===void 0&&(n={}),i===void 0&&(i={}),F())return[];t.plan&&(i=i??{},i.plan=t.plan);var o=(u=(s=t.middlewareSettings)===null||s===void 0?void 0:s.routingRules)!==null&&u!==void 0?u:[],d=t.integrations,c=i.integrations,g=j(t,i??{}),h=r==null?void 0:r.reduce(function(l,w){var m;return p(p({},l),(m={},m[J(w)]=w,m))},{}),k=new Set(_(_([],Object.keys(d).filter(function(l){return H(l,d[l])}),!0),Object.keys(h||{}).filter(function(l){return S(d[l])||S(c==null?void 0:c[l])}),!0));return Array.from(k).filter(function(l){return!q(l,n)}).map(function(l){var w=d[l],m=$(w),z=new tt(l,m,e,g[l],i,h==null?void 0:h[l]),A=o.filter(function(M){return M.destinationName===l});return A.length>0&&a&&z.addMiddleware(a),z})}export{tt as LegacyDestination,rt as ajsDestinations};
2//# sourceMappingURL=index-t7AHyw9k.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.