PageSourceSearch

https://cna.clarknationalaccounts.com/assets/index-DJu4ZKKk.js

js clarknationalaccounts.com collected 2026-10-08 01:14:27 UTC 10,076 bytes, 3 lines download raw bytes

1import{dV as L,dw as w,df as x,dW as u,dX as E,cK as A,cM as b,dY as p,dZ as I,d_ as N,cG as a,d$ as P,c$ as f,cC as m,dH as y}from"./index-BBqf4QSj.js";import{t as F}from"./time-to-first-byte-Buso6aer.js";import{c as g,A as O}from"./aggregate-base-DOZ5iLU3.js";import{g as R,b as r,n as c,a as U}from"./bel-serializer-DvJNbjkq.js";import{n as S}from"./nav-timing-BJJZNqVX.js";import{f as H,a as M}from"./first-paint-tst-aSJ8.js";import"./event-buffer-CPaKAmDM.js";let _=0;class v{belType;children=[];start;end;callbackEnd=0;callbackDuration=0;nodeId=++_;addChild(t){this.children.push(t)}serialize(){}}class z extends v{constructor(t){super(),this.belType=L.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.start=t.startTime,this.end=t.endTime}serialize(t,e){const i=R(e.runtime.obfuscator),s=[],n=[r(this.belType),0,r(this.start-t),r(this.end-this.start),r(this.callbackEnd),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),c(this.spanId,i,!0)+c(this.traceId,i,!0)+c(this.spanTimestamp,r)];let o=[];return typeof this.gql=="object"&&(o=U(this.gql,i)),this.children.forEach(l=>o.push(l.serialize())),n[1]=r(o.length),s.push(n),o.length&&s.push(o.join(";")),s.join(";")}}class T extends v{id=w();initialPageURL=x;customName;customAttributes={};customDataByApi={};queueTime;appTime;newRoute;status=u.IP;domTimestamp=0;historyTimestamp=0;createdByApi=!1;keepOpenUntilEndApi=!1;onDone=[];cancellationTimer;constructor(t,e,i,s){super(),this.belType=L.INTERACTION,this.trigger=t,this.start=e,this.oldRoute=i,this.eventSubscription=new Map([["finished",[]],["cancelled",[]]]),this.forceSave=this.forceIgnore=!1,this.trigger===E&&(this.createdByApi=!0),this.newURL=this.oldURL=s||A?.location.href}updateDom(t){this.domTimestamp=t||b()}updateHistory(t,e){this.newURL=e||""+A?.location,this.historyTimestamp=t||b()}seenHistoryAndDomChange(){return this.historyTimestamp>0&&this.domTimestamp>this.historyTimestamp}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){return this.keepOpenUntilEndApi&&t===void 0?!1:(this.status!==u.IP||(this.onDone.forEach(e=>e(this.customDataByApi)),this.forceIgnore?this.#e():this.seenHistoryAndDomChange()?this.#t(t):this.forceSave?this.#t(t||performance.now()):this.#e()),!0)}#t(t=0){clearTimeout(this.cancellationTimer),this.end=Math.max(this.domTimestamp,this.historyTimestamp,t),this.status=u.FIN,this.eventSubscription.get("finished").forEach(i=>i())}#e(){clearTimeout(this.cancellationTimer),this.status=u.CAN,this.eventSubscription.get("cancelled").forEach(e=>e())}isActiveDuring(t){return this.status===u.IP?this.start<=t:this.status===u.FIN&&this.start<=t&&this.end>t}get firstPaint(){}get firstContentfulPaint(){}get navTiming(){}serialize(t,e){const i=t===void 0,s=R(e.runtime.obfuscator),n=[];let o;this.trigger===p?o=I.INITIAL_PAGE_LOAD:this.newURL!==this.oldURL?o=I.ROUTE_CHANGE:o=I.UNSPECIFIED;const l=[r(this.belType),0,r(this.start-(i?0:t)),r(this.end-this.start),r(this.callbackEnd),r(this.callbackDuration),s(this.trigger),s(g(this.initialPageURL,!0)),s(g(this.oldURL,!0)),s(g(this.newURL,!0)),s(this.customName),o,c(this.queueTime,r,!0)+c(this.appTime,r,!0)+c(this.oldRoute,s,!0)+c(this.newRoute,s,!0)+s(this.id),s(this.nodeId),c(this.firstPaint,r,!0)+c(this.firstContentfulPaint,r)],C={...e.info.jsAttributes,...this.customAttributes},d=U(C||{},s);return e.info.atts&&d.push("a,"+s(e.info.atts)),this.children.forEach(D=>d.push(D.serialize(i?this.start:t,e))),l[1]=r(d.length),n.push(l),d.length&&n.push(d.join(";")),this.navTiming?n.push(this.navTiming):n.push(""),n.join(";")}}class B extends T{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 H.current.value}get firstContentfulPaint(){return M.current.value}get navTiming(){if(!S.length)return;let t=",",e="b",i=0;return S.slice(1,21).forEach(s=>{s!==void 0?(e+=t+r(s-i),t=",",i=s):(e+=t+"!",t="")}),e}}class X extends O{static featureName=N;constructor(t,{domObserver:e}){super(t,N),super.customAttributesAreSeparate=!0,this.interactionsToHarvest=this.events,this.domObserver=e,this.initialPageLoadInteraction=new B(t),this.initialPageLoadInteraction.onDone.push(()=>{t.runtime.session?.isNew&&(this.initialPageLoadInteraction.customAttributes.isFirstOfSession=!0),this.initialPageLoadInteraction.forceSave=!0;const i=this.initialPageLoadInteraction;this.events.add(i),this.initialPageLoadInteraction=null}),F.subscribe(({attrs:i})=>{const s=i.navigationEntry.loadEventEnd;this.initialPageLoadInteraction.done(s),this.reportSupportabilityMetric("SoftNav/Interaction/InitialPageLoad/Duration/Ms",Math.round(s))}),this.latestRouteSetByApi=null,this.interactionInProgress=null,this.latestHistoryUrl=null,this.harvestOpts.beforeUnload=()=>this.interactionInProgress?.done(),this.waitForFlags(["spa"]).then(([i])=>{i?(this.drain(),setTimeout(()=>t.runtime.harvester.triggerHarvestFor(this),0)):(this.blocked=!0,this.deregisterDrain())}),a("newUIEvent",i=>this.startUIInteraction(i.type,Math.floor(i.timeStamp),i.target),this.featureName,this.ee),a("newURL",(i,s)=>{this.latestHistoryUrl=s,this.interactionInProgress?.updateHistory(i,s)},this.featureName,this.ee),a("newDom",i=>{this.interactionInProgress?.updateDom(i),this.interactionInProgress?.seenHistoryAndDomChange()&&this.interactionInProgress.done()},this.featureName,this.ee),this.#i(),a("ajax",this.#t.bind(this),this.featureName,this.ee),a("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(";"))}startUIInteraction(t,e,i){if(this.interactionInProgress?.createdByApi||this.interactionInProgress?.done()===!1)return;const s=t===P[3]?this.latestHistoryUrl:void 0;if(this.interactionInProgress=new T(t,e,this.latestRouteSetByApi,s),t===P[0]){const n=k(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()?.[0]?.data;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){const e=this.getInteractionFor(t.startTime);e?e.status===u.FIN?i(t,e):(e.on("finished",()=>i(t,e)),e.on("cancelled",()=>f("returnAjax",[t],void 0,m.ajax,this.ee))):f("returnAjax",[t],void 0,m.ajax,this.ee);function i(s,n){const o=new z(s);n.addChild(o)}}#e(t,e){const i=this.getInteractionFor(e);
1i&&(t.browserInteractionId=i.id,i.status===u.FIN?(t._softNavFinished=!0,t._softNavAttributes=i.customAttributes):(i.on("finished",y(()=>f("softNavFlush",[i.id,!0,i.customAttributes],void 0,m.jserrors,this.ee))),i.on("cancelled",y(()=>f("softNavFlush",[i.id,!1,void 0],void 0,m.jserrors,this.ee)))))}#i(){const t="api-ixn-",e=this;a(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 T(E,i,e.latestRouteSetByApi),e.domObserver.observe(document.body,{attributes:!0,childList:!0,subtree:!0,characterData:!0}),e.setClosureHandlers()),s===!0&&(this.associatedInteraction.keepOpenUntilEndApi=!0)},e.featureName,e.ee),a(t+"end",function(i){this.associatedInteraction.done(i)},e.featureName,e.ee),a(t+"save",function(){this.associatedInteraction.forceSave=!0},e.featureName,e.ee),a(t+"ignore",function(){this.associatedInteraction.forceIgnore=!0},e.featureName,e.ee),a(t+"getContext",function(i,s){typeof s=="function"&&setTimeout(()=>s(this.associatedInteraction.customDataByApi),0)},e.featureName,e.ee),a(t+"onEnd",function(i,s){typeof s=="function"&&this.associatedInteraction.onDone.push(s)},e.featureName,e.ee),a(t+"actionText",function(i,s){s&&(this.associatedInteraction.customAttributes.actionText=s)},e.featureName,e.ee),a(t+"setName",function(i,s,n){s&&(this.associatedInteraction.customName=s),n&&(this.associatedInteraction.trigger=n)},e.featureName,e.ee),a(t+"setAttribute",function(i,s,n){this.associatedInteraction.customAttributes[s]=n},e.featureName,e.ee),a(t+"routeName",function(i,s){e.latestRouteSetByApi=s,e.interactionInProgress&&(e.interactionInProgress.newRoute=s)},e.featureName,e.ee)}}function k(h){const t=h.tagName.toLowerCase();if(["a","button","input"].includes(t))return h.title||h.value||h.innerText}export{X as Aggregate};
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="99c6e740-173b-5b0c-ae0e-3cfb9d4b7011")}catch(e){}}();
3//# debugId=99c6e740-173b-5b0c-ae0e-3cfb9d4b7011

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.