PageSourceSearch

https://www.internships.com/assets/index-Dt5QcFDO.js

js internships.com collected 2026-09-24 18:27:57 UTC 10,910 bytes, 1 lines download raw bytes

1import{aC as S,aD as C,C as k,aE as h,aF as y,b as O,n as P,aG as R,aH as p,p as I,aI as T,aJ as N,A as o,aK as A,aL as x,aM as F,h as f,F as m}from"./browser-agent-HsJ8DMNw.js";import{b as M,c as _,w as H}from"./webdriver-detection-BgZQsjVO.js";import{l as z}from"./load-time-C4bn8JT8.js";import{A as B}from"./aggregate-base-D96c5c1L.js";import{g as w,b as r,n as d,a as D}from"./bel-serializer-CFzjZ9va.js";import{n as L}from"./nav-timing-CHjjxeJZ.js";import"./main-DmDsGTCr.js";import"./event-buffer-C1auQJ7A.js";let G=0;class E{belType;children=[];start;end;callbackEnd=0;callbackDuration=0;nodeId=++G;addChild(t){this.children.push(t)}serialize(){}}class v extends E{constructor(t,e){super(),this.belType=S.AJAX,this.method=t.method,this.status=t.status,this.domain=t.domain,this.path=t.path,this.txSize=t.requestSize,this.rxSize=t.responseSize,this.requestedWith=t.type==="fetch"?1:"",this.spanId=t.spanId,this.traceId=t.traceId,this.spanTimestamp=t.spanTimestamp,this.gql=t.gql,this.targetAttributes=t.targetAttributes,this.start=t.startTime,this.end=t.endTime,e?.latestLongtaskEnd?(this.callbackEnd=Math.max(e.latestLongtaskEnd,this.end),this.callbackDuration=this.callbackEnd-this.end):this.callbackEnd=this.end}serialize(t,e){const i=w(e.runtime.obfuscator),s=[],n=[r(this.belType),0,r(this.start-t),r(this.end-this.start),r(this.callbackEnd-this.end),r(this.callbackDuration),i(this.method),r(this.status),i(this.domain),i(this.path),r(this.txSize),r(this.rxSize),this.requestedWith,i(this.nodeId),d(this.spanId,i,!0)+d(this.traceId,i,!0)+d(this.spanTimestamp,r)];let a=D({...this.gql||{},...this.targetAttributes||{}},i);return this.children.forEach(u=>a.push(u.serialize())),n[1]=r(a.length),s.push(n),a.length&&s.push(a.join(";")),s.join(";")}}class b extends E{id=C();initialPageURL=k;customName;customAttributes={};customDataByApi={};queueTime;appTime;newRoute;status=h.IP;domTimestamp=0;historyTimestamp=0;createdByApi=!1;keepOpenUntilEndApi=!1;onDone=[];customEnd=0;cancellationTimer;watchLongtaskTimer;constructor(t,e,i,s){super(),this.belType=S.INTERACTION,this.trigger=t,this.start=e,this.oldRoute=i,this.eventSubscription=new Map([["finished",[]],["cancelled",[]]]),this.forceSave=this.forceIgnore=!1,this.trigger===y&&(this.createdByApi=!0),this.newURL=this.oldURL=s||O?.location.href}updateHistory(t,e){this.domTimestamp>0||!e||e===this.oldURL||(this.newURL=e,this.historyTimestamp=t||P())}updateDom(t){!this.historyTimestamp||t<this.historyTimestamp||(this.domTimestamp=t||P())}checkHistoryAndDomChange(){return this.historyTimestamp>0&&this.domTimestamp>this.historyTimestamp?(this.status===h.PF||(this.status=h.PF,clearTimeout(this.cancellationTimer),this.watchLongtaskTimer??=setTimeout(()=>this.done(),R)),!0):!1}on(t,e){if(!this.eventSubscription.has(t))throw new Error("Cannot subscribe to non pre-defined events.");
1if(typeof e!="function")throw new Error("Must supply function as callback.");this.eventSubscription.get(t).push(e)}done(t=this.customEnd,e=!1){return this.keepOpenUntilEndApi&&!e?!1:(this.status===h.FIN||this.status===h.CAN||(clearTimeout(this.cancellationTimer),clearTimeout(this.watchLongtaskTimer),this.onDone.forEach(i=>i(this.customDataByApi)),this.forceIgnore?this.#e():this.status===h.PF?this.#t(t):this.forceSave?this.#t(t||performance.now()):this.#e()),!0)}#t(t){this.end=Math.max(this.domTimestamp,this.historyTimestamp,t),this.status=h.FIN,this.eventSubscription.get("finished").forEach(i=>i())}#e(){this.status=h.CAN,this.eventSubscription.get("cancelled").forEach(e=>e())}isActiveDuring(t){return this.status===h.IP||this.status===h.PF?this.start<=t:this.status===h.FIN&&this.start<=t&&t<this.end}get firstPaint(){}get firstContentfulPaint(){}get navTiming(){}serialize(t,e){const i=t===void 0,s=w(e.runtime.obfuscator),n=[];let a;this.trigger===p?a=T.INITIAL_PAGE_LOAD:this.newURL!==this.oldURL?a=T.ROUTE_CHANGE:a=T.UNSPECIFIED;const u=[r(this.belType),0,r(this.start-(i?0:t)),r(this.end-this.start),r(0),r(0),s(this.trigger),s(I(this.initialPageURL,!0)),s(I(this.oldURL,!0)),s(I(this.newURL,!0)),s(this.customName),a,d(this.queueTime,r,!0)+d(this.appTime,r,!0)+d(this.oldRoute,s,!0)+d(this.newRoute,s,!0)+s(this.id),s(this.nodeId),d(this.firstPaint,r,!0)+d(this.firstContentfulPaint,r)],g={...e.info.jsAttributes,...this.customAttributes},l=D(g||{},s);return e.info.atts&&l.push("a,"+s(e.info.atts)),this.children.forEach(U=>l.push(U.serialize(i?this.start:t,e))),u[1]=r(l.length),n.push(u),l.length&&n.push(l.join(";")),this.navTiming?n.push(this.navTiming):n.push(""),n.join(";")}}class q extends b{constructor(t){super(p,0,null),this.queueTime=t.info.queueTime,this.appTime=t.info.applicationTime,this.oldURL=document.referrer||void 0}get firstPaint(){return M.current.value}get firstContentfulPaint(){return _.current.value}get navTiming(){if(!L.length)return;let t=",",e="b",i=0;return L.slice(1,21).forEach(s=>{s!==void 0?(e+=t+r(s-i),t=",",i=s):(e+=t+"!",t="")}),e}}class $ extends B{static featureName=N;constructor(t,{domObserver:e}){super(t,N),super.customAttributesAreSeparate=!0,this.interactionsToHarvest=this.events,this.domObserver=e,this.initialPageLoadInteraction=new q(t),this.initialPageLoadInteraction.onDone.push(()=>{t.runtime.session?.isNew&&(this.initialPageLoadInteraction.customAttributes.isFirstOfSession=!0),this.initialPageLoadInteraction.customAttributes.webdriverDetected=H,this.initialPageLoadInteraction.forceSave=!0;const i=this.initialPageLoadInteraction;this.events.add(i),this.initialPageLoadInteraction=null}),z.subscribe(({value:i})=>{this.initialPageLoadInteraction.done(i),this.reportSupportabilityMetric("SoftNav/Interaction/InitialPageLoad/Duration/Ms",Math.round(i))}),this.latestRouteSetByApi=null,this.interactionInProgress=null,this.latestHistoryUrl=window.location.href,this.harvestOpts.beforeUnload=()=>this.interactionInProgress?.done(),this.waitForFlags(["spa"]).then(([i])=>{i?this.drain():(this.blocked=!0,this.deregisterDrain())}),o("newUIEvent",i=>this.startUIInteraction(i.type,Math.floor(i.timeStamp),i.target),this.featureName,this.ee),o("newURL",(i,s)=>{this.latestHistoryUrl=s,this.interactionInProgress?.updateHistory(i,s)},this.featureName,this.ee),o("newDom",i=>{this.interactionInProgress?.updateDom(i),this.interactionInProgress?.checkHistoryAndDomChange()},this.featureName,this.ee),this.ee.on("long-task",i=>{this.interactionInProgress?.watchLongtaskTimer&&(clearTimeout(this.interactionInProgress.watchLongtaskTimer),this.interactionInProgress.customEnd=i.end,this.interactionInProgress.watchLongtaskTimer=setTimeout(()=>this.interactionInProgress.done(),R),this.reportSupportabilityMetric("SoftNav/Interaction/Extended"))}),this.#i(),o("ajax",this.#t.bind(this),this.featureName,this.ee),o("jserror",this.#e.bind(this),this.featureName,this.ee)}serializer(t){let e;const i=[];for(const s of t)i.push(s.serialize(e,this.agentRef)),e===void 0&&(e=Math.floor(s.start));return"bel.7;".concat(i.join(";"))}
1startUIInteraction(t,e,i){if(this.interactionInProgress?.createdByApi||t===A&&this.interactionInProgress?.trigger!==A&&e-this.interactionInProgress?.start<=x||this.interactionInProgress?.done()===!1)return;const s=t===A?this.latestHistoryUrl:void 0;if(this.interactionInProgress=new b(t,e,this.latestRouteSetByApi,s),t===F[0]){const n=J(i);n&&(this.interactionInProgress.customAttributes.actionText=n)}this.interactionInProgress.cancellationTimer=setTimeout(()=>{this.interactionInProgress.done(),this.reportSupportabilityMetric("SoftNav/Interaction/TimeOut")},3e4),this.setClosureHandlers()}setClosureHandlers(){this.interactionInProgress.on("finished",()=>{const t=this.interactionInProgress;this.events.add(this.interactionInProgress),this.interactionInProgress=null,this.domObserver.disconnect(),this.reportSupportabilityMetric("SoftNav/Interaction/".concat(t.newURL!==t.oldURL?"RouteChange":"Custom","/Duration/Ms"),Math.round(t.end-t.start))}),this.interactionInProgress.on("cancelled",()=>{this.interactionInProgress=null,this.domObserver.disconnect()})}getInteractionFor(t){if(this.interactionInProgress?.isActiveDuring(t))return this.interactionInProgress;let e;const i=this.interactionsToHarvest.get();if(i){for(let s=i.length-1;s>=0;s--){const n=i[s];if(n.isActiveDuring(t)){if(n.trigger!==p)return n;e=n}}if(e)return e;if(this.initialPageLoadInteraction?.isActiveDuring(t))return this.initialPageLoadInteraction}}#t(t,e){const i=this.getInteractionFor(t.startTime);i?i.status===h.FIN?s.call(this,t,e,i):(i.on("finished",()=>s.call(this,t,e,i)),i.on("cancelled",()=>f("returnAjax",[t],void 0,m.ajax,this.ee))):f("returnAjax",[t],void 0,m.ajax,this.ee);function s(n,a,u){const g=u.end;if(n.startTime>g){f("returnAjax",[n],void 0,m.ajax,this.ee);return}const l=new v(n,a);u.addChild(l)}}#e(t){const e=t[3].time,i=this.getInteractionFor(e);if(!i)return f("returnJserror",[t],void 0,m.jserrors,this.ee);i.status===h.FIN?s.call(this,t,i):(i.on("finished",()=>s.call(this,t,i)),i.on("cancelled",()=>f("returnJserror",[t],void 0,m.jserrors,this.ee)));function s(n,a){const u=a.end;if(e>u)return f("returnJserror",[n],void 0,m.jserrors,this.ee);const g=n[2];g.browserInteractionId=a.id,f("returnJserror",[n,a.customAttributes],void 0,m.jserrors,this.ee)}}#i(){const t="api-ixn-",e=this;o(t+"get",function(i,{waitForEnd:s}={}){this.associatedInteraction=e.getInteractionFor(i),this.associatedInteraction?.trigger===p&&(this.associatedInteraction=null),this.associatedInteraction||(this.associatedInteraction=e.interactionInProgress=new b(y,Math.floor(i),e.latestRouteSetByApi),e.domObserver.observe(document.body,{attributes:!0,childList:!0,subtree:!0,characterData:!0}),e.setClosureHandlers()),s===!0&&(this.associatedInteraction.keepOpenUntilEndApi=!0,clearTimeout(this.associatedInteraction.cancellationTimer))},e.featureName,e.ee),o(t+"end",function(i){this.associatedInteraction.done(i,!0)},e.featureName,e.ee),o(t+"save",function(){this.associatedInteraction.forceSave=!0},e.featureName,e.ee),o(t+"ignore",function(){this.associatedInteraction.forceIgnore=!0},e.featureName,e.ee),o(t+"getContext",function(i,s){typeof s=="function"&&setTimeout(()=>s(this.associatedInteraction.customDataByApi),0)},e.featureName,e.ee),o(t+"onEnd",function(i,s){typeof s=="function"&&this.associatedInteraction.onDone.push(s)},e.featureName,e.ee),o(t+"actionText",function(i,s){s&&(this.associatedInteraction.customAttributes.actionText=s)},e.featureName,e.ee),o(t+"setName",function(i,s,n){s&&(this.associatedInteraction.customName=s),n&&(this.associatedInteraction.trigger=n)},e.featureName,e.ee),o(t+"setAttribute",function(i,s,n){this.associatedInteraction.customAttributes[s]=n},e.featureName,e.ee),o(t+"routeName",function(i,s){e.latestRouteSetByApi=s,e.interactionInProgress&&(e.interactionInProgress.newRoute=s)},e.featureName,e.ee)}}function J(c){const t=c.tagName?.toLowerCase();if(["a","button","input"].includes(t))return c.title||c.value||c.innerText}export{$ as Aggregate};

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.