PageSourceSearch

https://www.hellointerview.com/_next/static/chunks/099qdoi6bpoej.j…=e18ea22e9055ec52156946688ae00374fccadfa4

js hellointerview.com collected 2026-10-02 05:32:50 UTC 20,709 bytes, 3 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,4128885,e=>{"use strict";var t=e.i(7843476),E=e.i(5271645);function i(e){let t=0x811c9dc5;for(let E=0;E<e.length;E++)t^=e.charCodeAt(E),t+=(t<<1)+(t<<4)+(t<<7)+(t<<8)+(t<<24);return t>>>0}function r(e,t){return i(i(e+t)+"")%1e4/1e4}function n(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}let I=new Map;function T(e,t){for(let E of Object.keys(e)){let i=e[E],r=t[E];if(n(i)&&"boolean"==typeof i.$exists){if(void 0!==r!==i.$exists)return!1;continue}if(void 0===r)return!1;if(n(i)&&Array.isArray(i.$in)){if("string"!=typeof r||!i.$in.includes(r))return!1;continue}if(n(i)&&"string"==typeof i.$regex){if("string"!=typeof r)return!1;let e=function(e){let t,E=I.get(e);if(void 0!==E)return E;try{t=new RegExp(e)}catch{t=null}return I.set(e,t),t}(i.$regex);if(!e||!e.test(r))return!1;continue}if(n(i)&&"number"==typeof i.$gt){if("number"!=typeof r||!(r>i.$gt))return!1;continue}if(n(i)&&"number"==typeof i.$lt){if("number"!=typeof r||!(r<i.$lt))return!1;continue}if(r!==i)return!1}return!0}function o(e,t,E,i){if(!e)return{value:i,source:"default"};let n=function(e,t,E){let i=e.flags[E];if(!i)return null;for(let e of i.rules){if("experiment"in e){if(e.when&&!T(e.when,t))continue;let E=t[e.hashAttribute];if(!E)continue;let i=r(e.seed,E);if(null===i)continue;let n=function(e,t){for(let E=0;E<t.length;E++){let i=t[E];if(e>=i[0]&&e<i[1])return E}return -1}(i,function(e,t,E){let i=t;i<0?i=0:i>1&&(i=1);let r=e<=0?[]:Array(e).fill(1/e),n=E.length===e?E:r,I=n.reduce((e,t)=>e+t,0);(I<.99||I>1.01)&&(n=r);let T=0;return n.map(e=>{let t=T;return T+=e,[t,t+i*e]})}(e.variations.length,e.coverage,e.weights));if(-1===n)continue;let I=e.variations[n];return{value:I.value,source:"experiment",experiment:{key:e.experiment,variationKey:I.key,variationIndex:n,hashAttribute:e.hashAttribute,hashValue:E}}}if("rollout"in e){if(e.when&&!T(e.when,t))continue;let E=r(e.seed,t.id);if(null===E)continue;if(E<=e.rollout)return{value:e.value,source:"rollout"};continue}if(!e.when||T(e.when,t))return{value:e.value,source:"rule"}}return{value:i.default,source:"default"}}(e,t,E);return n||{value:i,source:"default"}}var s=e.i(7710976),R=e.i(6206100);let a=new Set,N=new Set;function u(e){return"experiment"in e}function S(e,t,E,i){let r=t?.[E],n=e?.flags[E];if(!r||!n)return null;let I=n.rules.find(e=>u(e)&&e.experiment===r.exp);if(!I||!u(I))return null;let T=I.variations[r.variationId];return T?{value:T.value,source:"experiment",experiment:{key:r.exp,variationKey:T.key,variationIndex:r.variationId,hashAttribute:"id",hashValue:""}}:null}function l(e){let t=new Map;if(!e)return t;for(let[E,i]of Object.entries(e.flags))for(let e of i.rules)u(e)&&t.set(e.experiment,E);return t}function _(e){return`${e.experiment.key}:${e.experiment.variationKey}`}function O(e){let t=_(e);if(a.has(t))return;a.add(t);let E=(0,s.getTrackingClient)();E?E.trackEvent("$experiment_exposure",{experiment_id:e.experiment.key,variation_id:e.experiment.variationKey,variation_index:String(e.experiment.variationIndex),variation_key:e.experiment.variationKey,in_experiment:!0,hash_used:e.experiment.hashAttribute}):console.warn("[flags] tracking client not initialized, skipping exposure tracking")}let A=(0,E.createContext)(null);e.s(["FlagsClientProvider",0,function({children:e,payload:i,version:r,attributes:n,edgeAssignment:I}){(0,s.updateTrackingContext)({anonSessionId:(0,R.readAnonSessionId)()??n.id,userId:n.userId,country:n.country,isPremiumUser:n.isPremiumUser,userRole:n.role});let[T,a]=(0,E.useState)(n),[u,_]=(0,E.useState)(!1),C=(0,E.useRef)([]),D=(0,E.useMemo)(()=>l(i),[i]);(0,E.useEffect)(()=>{let e=(0,R.readAnonSessionId)(),t=e?{...n,id:e}:n;a(t),_(!0);let E=C.current;for(let e of(C.current=[],E)){if("experiment"!==e.source)continue;let E=D.get(e.experiment.key),r=E?o(i,t,E,e.value):e;"experiment"===r.source&&O(r)}},[n]);let c=(0,E.useCallback)((e,t)=>{if(!u){let E=S(i,I,e,t);return E||o(i,T,e,t)}let E=o(i,T,e,t);{let r=S(i,I,e,t);r&&("experiment"===E.source?E.experiment.variationKey:null)!==r.experiment.variationKey&&function(e,t,E){if(N.has(e))return;N.add(e);let i="experiment"===t.source?t.experiment.variationKey:null,r=E.experiment.variationKey;console.warn(`[flags] "${e}" edge/client disagreement: edge=${r} client=${i??"(default)"}`),(0,s.trackEvent)("gb::disagreement",{flag:e,axis:"edge_client",reason:null===i?"assigned_but_origin_default":"variation_mismatch",source:"native_client",origin_variation:i??"none",edge_variation:r})}(e,E,r)}return E},[i,T,u,I]),h=(0,E.useCallback)(e=>{if("experiment"===e.source){if(!u)return void C.current.push(e);O(e)}},[u]),P=(0,E.useMemo)(()=>({payload:i,version:r,attributes:T,hydrated:u,edgeAssignment:I,evaluateFlag:c,logExposure:h}),[i,r,T,u,I,c,h]);return(0,t.jsx)(A.Provider,{value:P,children:e})},"edgeAssignedResult",0,S,"experimentKeyToFlagKey",0,l,"exposureDedupeKey",0,_,"sendExposure",0,O,"useNativeFlags",0,function(){return(0,E.useContext)(A)}],4128885)},6206100,e=>{"use strict";var t=e.i(4596002);e.s(["readAnonSessionId",0,function(){if("u">typeof document)for(let e of document.cookie.split(";")){let E=e.indexOf("=");if(-1!==E&&e.slice(0,E).trim()===t.ANONYMOUS_SESSION_ID)return e.slice(E+1).trim()||void 0}}])},4596002,e=>{"use strict";e.s(["ANONYMOUS_SESSION_ID",0,"anonSessionId","HI_OFFLINE_READ_FLAG",0,"__hiOfflineRead","HI_TEST_ACCESS_TOKEN",0,"HI_TEST_ACCESS_TOKEN"])},9109948,e=>{"use strict";e.s(["AdminRatingIssue",0,{BLIND_MODEL:"BLIND_MODEL",INCORRECT_SUGGESTION:"INCORRECT_SUGGESTION",EXTRA_EFFORT_PENALTY:"EXTRA_EFFORT_PENALTY",MISSING_NON_OBVIOUS:"MISSING_NON_OBVIOUS",MERGED_FORK:"MERGED_FORK",EXPERT_OBVIOUSLY_MISSING:"EXPERT_OBVIOUSLY_MISSING",NIT_PICKING:"NIT_PICKING",FILLER_SENTENCES:"FILLER_SENTENCES",ANNOYING_TONE:"ANNOYING_TONE",REPETITIVE_SENTENCES:"REPETITIVE_SENTENCES",BAD_LINT:"BAD_LINT"},"ArticleEditSide",0,{BEFORE:"BEFORE",AFTER:"AFTER"},"ArticleEditStatus",0,{PROPOSED:"PROPOSED",ACCEPTED:"ACCEPTED",REJECTED:"REJECTED",SUPERSEDED:"SUPERSEDED"},"CodeSubmissionStatus",0,{IN_QUEUE:"IN_QUEUE",PROCESSING:"PROCESSING",ACCEPTED:"ACCEPTED",WRONG_ANSWER:"WRONG_ANSWER",TIME_LIMIT_EXCEEDED:"TIME_LIMIT_EXCEEDED",COMPILATION_ERROR:"COMPILATION_ERROR",RUNTIME_ERROR_SIGSEGV:"RUNTIME_ERROR_SIGSEGV",RUNTIME_ERROR_SIGXFSZ:"RUNTIME_ERROR_SIGXFSZ",RUNTIME_ERROR_SIGFPE:"RUNTIME_ERROR_SIGFPE",RUNTIME_ERROR_SIGABRT:"RUNTIME_ERROR_SIGABRT",RUNTIME_ERROR_NZEC:"RUNTIME_ERROR_NZEC",RUNTIME_ERROR_OTHER:"RUNTIME_ERROR_OTHER",INTERNAL_ERROR:"INTERNAL_ERROR",EXEC_FORMAT_ERROR:"EXEC_FORMAT_ERROR"},"ContentAssetKind",0,{IMAGE:"IMAGE",VIDEO:"VIDEO"},"ContentAssetSource",0,{POST_INGESTED:"POST_INGESTED",MANUAL:"MANUAL"},"ContentAssetUsageType",0,{VIDEO:"VIDEO",GRAPHIC:"GRAPHIC"},"ContentDistribution",0,{EXTERNAL:"EXTERNAL",SITE_ONLY:"SITE_ONLY"},"ContentDraftStatus",0,{GENERATING:"GENERATING",DONE:"DONE",FAILED:"FAILED"},"ContentEditPath",0,{EXTERNAL:"EXTERNAL",IN_HOUSE:"IN_HOUSE"},"ContentFormat",0,{TEXT_POST:"TEXT_POST",SHORT_VIDEO:"SHORT_VIDEO",LONG_VIDEO:"LONG_VIDEO",BLOG:"BLOG"},"ContentPlatform",0,{YOUTUBE:"YOUTUBE",LINKEDIN:"LINKEDIN",TWITTER:"TWITTER",INSTAGRAM:"INSTAGRAM",TIKTOK:"TIKTOK",BLOG:"BLOG"},"ContentPostStatus",0,{DRAFT:"DRAFT",REVIEW:"REVIEW",AWAITING_ASSETS:"AWAITING_ASSETS",SCRIPT_DRAFT:"SCRIPT_DRAFT",SCRIPT_REVIEW:"SCRIPT_REVIEW",RECORDING:"RECORDING",READY_TO_SCHEDULE:"READY_TO_SCHEDULE",WITH_EDITOR:"WITH_EDITOR",IN_HOUSE_EDIT:"IN_HOUSE_EDIT",READY:"READY",SCHEDULED:"SCHEDULED",PUBLISHED:"PUBLISHED",SITE_ONLY:"SITE_ONLY",APPROVED:"APPROVED",IN_REVIEW:"IN_REVIEW",APPROVED_AWAITING_ASSETS:"APPROVED_AWAITING_ASSETS",NEEDS_GRAPHICS:"NEEDS_GRAPHICS",GRAPHICS_DONE:"GRAPHICS_DONE",SCRIPT_APPROVED:"SCRIPT_APPROVED",IN_PRODUCTION:"IN_PRODUCTION",REVIEW_CUT:"REVIEW_CUT",OUTLINE:"OUTLINE",ROUGH_CUT:"ROUGH_CUT",FINAL_CUT:"FINAL_CUT",NEEDS_THUMBNAIL:"NEEDS_THUMBNAIL"},"ContentReportStatus",0,{PENDING:"PENDING",REVIEWED_ACTIONED:"REVIEWED_ACTIONED",REVIEWED_DISMISSED:"REVIEWED_DISMISSED"},"ContentSourceType",0,{ORIGINAL:"ORIGINAL",DERIVED_FROM_ARTICLE:"DERIVED_FROM_ARTICLE",DERIVED_FROM_POST:"DERIVED_FROM_POST",AI_GENERATED:"AI_GENERATED",REPURPOSE:"REPURPOSE",SUCCESS_STORY:"SUCCESS_STORY"}
1,"ContentThumbnailTestStatus",0,{NONE:"NONE",PENDING:"PENDING",RUNNING:"RUNNING",COMPLETE:"COMPLETE",SKIPPED:"SKIPPED"},"DayOfWeek",0,{MONDAY:"MONDAY",TUESDAY:"TUESDAY",WEDNESDAY:"WEDNESDAY",THURSDAY:"THURSDAY",FRIDAY:"FRIDAY",SATURDAY:"SATURDAY",SUNDAY:"SUNDAY"},"EmailCategory",0,{SPAM:"SPAM",PROMOTIONAL:"PROMOTIONAL",SUPPORT:"SUPPORT",FEEDBACK:"FEEDBACK",CALENDAR:"CALENDAR",OTHER:"OTHER",UNKNOWN:"UNKNOWN",ACKNOWLEDGMENT_THANKS:"ACKNOWLEDGMENT_THANKS",DISCOUNT_PRICING_INQUIRY:"DISCOUNT_PRICING_INQUIRY",MOCK_SCHEDULING_REQUEST:"MOCK_SCHEDULING_REQUEST",MOCK_FEEDBACK_COMPLAINT:"MOCK_FEEDBACK_COMPLAINT",TECHNICAL_ISSUE:"TECHNICAL_ISSUE",PAYMENT_BILLING_INQUIRY:"PAYMENT_BILLING_INQUIRY",REFUND_REQUEST:"REFUND_REQUEST",INTERVIEW_UPDATE_POSITIVE:"INTERVIEW_UPDATE_POSITIVE",INTERVIEW_UPDATE_NEUTRAL:"INTERVIEW_UPDATE_NEUTRAL",SUBSCRIPTION_MANAGEMENT:"SUBSCRIPTION_MANAGEMENT",COACH_AVAILABILITY_ISSUE:"COACH_AVAILABILITY_ISSUE",FEATURE_REQUEST:"FEATURE_REQUEST",CONTENT_QUESTION:"CONTENT_QUESTION",PLATFORM_QUESTION:"PLATFORM_QUESTION",ACCOUNT_SUPPORT:"ACCOUNT_SUPPORT",INTERVIEW_EXPERIENCE_SUBMISSION:"INTERVIEW_EXPERIENCE_SUBMISSION",PARTNERSHIP_INQUIRY:"PARTNERSHIP_INQUIRY",SALARY_NEGOTIATION:"SALARY_NEGOTIATION"},"InterviewIntelligenceChecklistItemPreparednessLevel",0,{BASELINE:"BASELINE",GOOD:"GOOD",GREAT:"GREAT"},"InterviewIntelligenceNuggetType",0,{COACH_RECOMMENDATION:"COACH_RECOMMENDATION",LEVELLING_DETAIL:"LEVELLING_DETAIL",INTERVIEW_DESCRIPTION:"INTERVIEW_DESCRIPTION",RESOURCE_LINK:"RESOURCE_LINK"},"InterviewLevel",0,{INTERN:"INTERN",JUNIOR:"JUNIOR",MID_LEVEL:"MID_LEVEL",SENIOR:"SENIOR",STAFF:"STAFF",PRINCIPAL:"PRINCIPAL",MANAGER:"MANAGER",SENIOR_MANAGER:"SENIOR_MANAGER",DIRECTOR:"DIRECTOR",SENIOR_DIRECTOR:"SENIOR_DIRECTOR"},"InterviewRegion",0,{USA:"USA",CANADA:"CANADA",EMEA:"EMEA",LATAM:"LATAM",APAC:"APAC",OTHER:"OTHER"},"InterviewRole",0,{SOFTWARE_ENGINEER:"SOFTWARE_ENGINEER",PRODUCT_MANAGER:"PRODUCT_MANAGER",DESIGNER:"DESIGNER",DATA_SCIENTIST:"DATA_SCIENTIST",DATA_ENGINEER:"DATA_ENGINEER"},"InterviewTimeline",0,{SCHEDULED:"SCHEDULED",NOT_YET:"NOT_YET"},"InterviewType",0,{BEHAVIORAL:"BEHAVIORAL",SYSTEM_DESIGN:"SYSTEM_DESIGN",PRODUCT_DESIGN:"PRODUCT_DESIGN",MOBILE_SYSTEM_DESIGN:"MOBILE_SYSTEM_DESIGN",OBJECT_ORIENTED_DESIGN:"OBJECT_ORIENTED_DESIGN",ML_SYSTEM_DESIGN:"ML_SYSTEM_DESIGN",CODING:"CODING",AI_ENABLED_CODING:"AI_ENABLED_CODING",AI_ENABLED_SYSTEM_DESIGN:"AI_ENABLED_SYSTEM_DESIGN",CODE_REVIEW:"CODE_REVIEW",PROJECT_RETROSPECTIVE:"PROJECT_RETROSPECTIVE",TECHNICAL_PROJECT_RETROSPECTIVE:"TECHNICAL_PROJECT_RETROSPECTIVE",MANAGER_PROJECT_RETROSPECTIVE:"MANAGER_PROJECT_RETROSPECTIVE",PEOPLE_MANAGEMENT:"PEOPLE_MANAGEMENT",BUSINESS_CASE:"BUSINESS_CASE",PROJECT_PRESENTATION:"PROJECT_PRESENTATION",ML_THEORY:"ML_THEORY",CUSTOM:"CUSTOM"},"LoopRole",0,{GENERALIST_SOFTWARE_ENGINEER:"GENERALIST_SOFTWARE_ENGINEER",BACKEND_SOFTWARE_ENGINEER:"BACKEND_SOFTWARE_ENGINEER",FRONTEND_SOFTWARE_ENGINEER:"FRONTEND_SOFTWARE_ENGINEER",FULLSTACK_SOFTWARE_ENGINEER:"FULLSTACK_SOFTWARE_ENGINEER",MOBILE_SOFTWARE_ENGINEER:"MOBILE_SOFTWARE_ENGINEER",ML_INFRA_SOFTWARE_ENGINEER:"ML_INFRA_SOFTWARE_ENGINEER",APPLIED_ML_ENGINEER:"APPLIED_ML_ENGINEER",ML_SCIENTIST:"ML_SCIENTIST",CUSTOM:"CUSTOM"},"OpportunitiesTiming",0,{ACTIVELY_LOOKING:"ACTIVELY_LOOKING",WITHIN_3_MONTHS:"WITHIN_3_MONTHS",EXPLORING:"EXPLORING"},"PercentOrFixed",0,{FIXED:"FIXED",PERCENT:"PERCENT"},"PracticeQuestionType",0,{WHITEBOARD_ONLY:"WHITEBOARD_ONLY",WHITEBOARD_AND_TEXT:"WHITEBOARD_AND_TEXT"},"PurchaseType",0,{MOCK_INTERVIEW:"MOCK_INTERVIEW",MENTORSHIP:"MENTORSHIP",NO_SHOW_FEE:"NO_SHOW_FEE",LATE_CANCEL_FEE:"LATE_CANCEL_FEE",VERY_LATE_CANCEL_FEE:"VERY_LATE_CANCEL_FEE",AI_MOCK:"AI_MOCK",GUIDED_PRACTICE:"GUIDED_PRACTICE",GIFT_CREDIT:"GIFT_CREDIT",PREMIUM_GIFT:"PREMIUM_GIFT",CREDIT_UPGRADE:"CREDIT_UPGRADE",SALARY_NEGOTIATION:"SALARY_NEGOTIATION"},"QAndAClosureReason",0,{REQUEST_FOR_SYSTEM_DESIGN:"REQUEST_FOR_SYSTEM_DESIGN",TOO_SPECIFIC:"TOO_SPECIFIC",CUSTOMER_SUPPORT:"CUSTOMER_SUPPORT",TOO_PERSONAL:"TOO_PERSONAL",OTHER:"OTHER"},"ResearchRequestStatus",0,{DRAFT:"DRAFT",SENT:"SENT",VIEWED:"VIEWED",BOOKED:"BOOKED",CONDUCTED:"CONDUCTED",REWARD_PENDING:"REWARD_PENDING",REWARDED:"REWARDED",DECLINED:"DECLINED",EXPIRED:"EXPIRED",CANCELLED:"CANCELLED",NO_SHOW:"NO_SHOW"},"ResearchRewardMethod",0,{GIFT_CARD:"GIFT_CARD",PAYPAL:"PAYPAL",PREMIUM_CREDIT:"PREMIUM_CREDIT",OTHER:"OTHER"}
1,"StarMethod",0,{SITUATION:"SITUATION",TASK:"TASK",ACTION:"ACTION",RESULT:"RESULT",CONTEXT:"CONTEXT",ACTIONS:"ACTIONS",RESULTS:"RESULTS",LEARNINGS:"LEARNINGS"},"UserRole",0,{ADMIN:"ADMIN",USER:"USER",COACH:"COACH",BOT:"BOT"}])},3754760,e=>{"use strict";var t=e.i(4050270);let E=["Meta","Amazon","Google","Apple","Netflix","Microsoft","OpenAI","Anthropic","Cursor","Perplexity","Prometheus","Uber","Stripe","Airbnb","Salesforce","Shopify","DoorDash","Datadog","Databricks","Snowflake","X","LinkedIn","Spotify","Twitch","Adobe","Agoda","PayPal","Square","Tesla","NVIDIA","Intel","IBM","Oracle","SAP","VMware","Cisco","Zoom","Reddit","Slack","Epic Games","Riot Games","Unity","Roblox","GitHub","GitLab","Atlassian","Cloudflare","Dropbox","Lyft","Pinterest","Quora","Snapchat","TikTok","Twilio","Fastly","HashiCorp","Heroku","DigitalOcean","Palantir","Splunk","Akamai","Autodesk","MongoDB","Docker","Kubernetes","RedHat","Squarespace","Symantec","Trello","Mailchimp","Elastic","Figma","Sketch","Notion","Asana","Zapier","Robinhood","Binance","Circle","Coinbase","Expedia","Intuit","Flipkart","Hello Interview","ChartMogul","Box","Block","HSBC","Gusto","Bloomberg","BuildOps","The Trade Desk","HP Inc","Instacart","Yelp","Canva","Waymo","JPMorgan Chase","HubSpot","Toast","Clio","CrowdStrike","Etsy","Monzo","Coursera","Ford","Mastercard","Trustpilot","Wise","Visa","Roku","Glovo","Goldman Sachs","eBay","Miro","N26","Okta","Palo Alto Networks","Capital One","Confluent","Jane Street","Cognizant","Freelancer","Graphite","Qualtrics","Revolut","SeatGeek","UiPath","6sense","Affirm","Anduril","Axon","Blue Origin","BNSF","C3 AI","Carta","Clever","CoreWeave","Coupang","Disney","Ethos","FanDuel","Flex","Fountain","Freshworks","JetBrains","Justworks","LaunchDarkly","Life360","Lightspeed","Macquarie Group","Metropolis","Morgan Stanley","Navan","Oscar Health","Ramp","RapidSOS","Remitly","Rippling","Rubrik","SailPoint","Samsara","Scale AI","ServiceNow","ServiceTitan","Smartsheet","SoFi","Upstart","Whatnot","Whoop","ZoomInfo","Zscaler","Walmart","Nubank","Adyen","Grab","TCS","Discord","DocuSign","Wix","HackerRank","Xero","Samsung","PhonePe","Nutanix","SpaceX","AMD","Target","Infosys","Rakuten","Workday","Plaid","Citadel","Zoox","Meesho","Nuro","Nielsen","Chime","Booking.com","Harvey","Fanatics","Vanta","Wayfair","Glean","xAI","Optiver","BlackRock","Chewy","Optum"],i=t.z.enum(E),r=t.z.union([i,t.z.string()]);e.s(["AllInterviewCompanies",0,E,"InterviewCompanyOrString",0,r,"InterviewCompanySchema",0,i,"isInterviewCompany",0,function(e){return E.includes(e)}])},7710976,e=>{"use strict";e.i(6247167);let t="hi-tracking-events";class E{context={};endpoint;regularFlushTimer=null;priorityFlushTimer=null;isFlushing=!1;useDirectMode=!1;isInitialized=!1;buffer=[];constructor(e){this.endpoint=e}init(){if(!this.isInitialized){if(this.isInitialized=!0,"u"<typeof localStorage){console.warn("[TrackingClient] localStorage not available, using direct send mode"),this.useDirectMode=!0,this.drainBuffer();return}try{localStorage.getItem(t)}catch{console.warn("[TrackingClient] localStorage access failed, using direct send mode"),this.useDirectMode=!0,this.drainBuffer();return}document.addEventListener("visibilitychange",this.handleVisibilityChange),window.addEventListener("beforeunload",this.handleBeforeUnload),this.drainBufferToStorage(),this.scheduleRegularFlush(),this.flush()}}getQueue(){if(this.useDirectMode)return[];try{let e=localStorage.getItem(t);return e?JSON.parse(e):[]}catch{return[]}}setQueue(e){if(!this.useDirectMode)try{0===e.length?localStorage.removeItem(t):localStorage.setItem(t,JSON.stringify(e))}catch(e){console.warn("[TrackingClient] localStorage write failed, switching to direct mode"),this.switchToDirectMode()}}drainBuffer(){if(0===this.buffer.length)return;let e=this.buffer.map(e=>({...e,context:this.context}));for(let t of(this.buffer=[],e))this.sendDirect(t)}drainBufferToStorage(){if(0===this.buffer.length)return;let e=this.buffer.map(e=>({...e,context:this.context}));this.buffer=[];let t=this.getQueue();this.setQueue([...t,...e].slice(-500))}
1updateContext(e){let t=!!this.context.anonSessionId;this.context={...this.context,...e},t||!this.context.anonSessionId||this.isInitialized||this.init()}handleVisibilityChange=()=>{"hidden"===document.visibilityState&&this.flush(!0)};handleBeforeUnload=()=>{this.flush()};scheduleRegularFlush(){this.regularFlushTimer&&clearTimeout(this.regularFlushTimer),this.regularFlushTimer=setTimeout(()=>{this.flush(),this.scheduleRegularFlush()},4e3)}schedulePriorityFlush(){this.priorityFlushTimer||(this.priorityFlushTimer=setTimeout(()=>{this.priorityFlushTimer=null,this.flush()},500))}async trackEvent(e,t,E){this.queueEvent({eventName:e,eventValue:E?.toString(),properties:t,timestamp:Date.now(),isPriority:"$experiment_exposure"===e})}async trackClick(e,t){await this.trackEvent("click",{target:e,...t})}async trackPageview(e){this.queueEvent({eventName:"pageview",properties:{...e,url:window.location.href,title:document.title},timestamp:Date.now(),isPriority:!0})}queueEvent(e){let t={...e,id:`${Date.now()}-${Math.random().toString(36).substring(2,9)}`,context:this.context,queuedAt:Date.now()};if(!this.context.anonSessionId)return void this.buffer.push(t);if(!this.isInitialized){this.buffer.push(t),this.init();return}if(this.useDirectMode)return void this.sendDirect(t);let E=this.getQueue();E.push(t),this.setQueue(E.slice(-500)),e.isPriority&&this.schedulePriorityFlush()}toWireFormat(e,t){let E=e.properties?.offlineRead===!0||e.properties?.offlineReplay===!0||t-e.timestamp>=6e4;return{eventName:e.eventName,eventValue:null!=e.eventValue?String(e.eventValue):void 0,properties:E?{...e.properties,offlineReplay:!0}:e.properties,timestampOffsetMs:t-e.timestamp,isPriority:e.isPriority,version:2,id:e.id,context:e.context,queuedAt:e.queuedAt}}async sendDirect(e){try{let t=Date.now(),E=this.toWireFormat(e,t);await fetch(this.endpoint,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({events:[E]}),keepalive:!0})}catch(e){}}async flush(e=!1){if((!this.isFlushing||e)&&!this.useDirectMode){this.isFlushing=!0;try{let e=this.getQueue();if(0===e.length){this.isFlushing=!1;return}let t=e.sort((e,t)=>e.queuedAt-t.queuedAt);for(let e=0;e<t.length;e+=50){let E=t.slice(e,e+50);if(await this.sendBatch(E)){let e=new Set(E.map(e=>e.id)),t=this.getQueue().filter(t=>!e.has(t.id));this.setQueue(t)}}}catch(e){console.error("[TrackingClient] Flush failed:",e)}finally{this.isFlushing=!1}}}switchToDirectMode(){this.useDirectMode=!0,this.regularFlushTimer&&(clearTimeout(this.regularFlushTimer),this.regularFlushTimer=null),this.priorityFlushTimer&&(clearTimeout(this.priorityFlushTimer),this.priorityFlushTimer=null)}async sendBatch(e,t=1){try{let t=Date.now(),E=e.map(e=>this.toWireFormat(e,t)),i=await fetch(this.endpoint,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({events:E}),keepalive:!0});if(!i.ok)throw Error(`HTTP ${i.status}`);return!0}catch(E){if(t<3)return await new Promise(e=>setTimeout(e,1e3*t)),this.sendBatch(e,t+1);return console.error("[TrackingClient] Failed to send batch after retries:",E),!1}}getQueueSize(){return this.useDirectMode?0:this.getQueue().length}destroy(){this.regularFlushTimer&&clearTimeout(this.regularFlushTimer),this.priorityFlushTimer&&clearTimeout(this.priorityFlushTimer),"u">typeof document&&document.removeEventListener("visibilitychange",this.handleVisibilityChange),window.removeEventListener("beforeunload",this.handleBeforeUnload),this.flush(!0)}}let i=null;function r(){return i||(i=new E("/api/t")),i}e.s(["getTrackingClient",0,r,"trackEvent",0,function(e,t,E){let i=r();i&&i.trackEvent(e,t,E)},"updateTrackingContext",0,function(e){r()?.updateContext(e)}])}]);
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]="cb1cb384-1b9d-5d1a-877e-89c936890cca")}catch(e){}}();
3//# debugId=cb1cb384-1b9d-5d1a-877e-89c936890cca

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.