PageSourceSearch

https://www.educative.io/static/_next/static/chunks/234107-def7b842948b57db.js

js educative.io collected 2026-09-24 08:37:45 UTC 49,982 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[234107,974037],{940938:function(e,t,n){"use strict";n.d(t,{Z:function(){return _}});var r=n(574101),o=n(981109),i=n(42505),a=n(528274),l=n(662532),u=n(278114);let s=()=>(0,u.rV)("browser_tab_id");var c=n(290559);let d=(0,o.default)(()=>Promise.all([n.e(758515),n.e(223903)]).then(n.bind(n,223903)),{loadableGenerated:{webpack:()=>[223903]},loading:()=>(0,r.jsx)("div",{})}),f=[{matchRegex:/^\/api\/collection\/([a-z0-9-]+|\d+\/\d+)$/,type:"GET",abortIdentifier:"get-collection"},{matchRegex:/^\/api\/author\/profile\/\d+\/works$/,type:"GET",abortIdentifier:"get-author-works"},{matchRegex:/^\/api\/edpresso\/shots$/,type:"GET",abortIdentifier:"get-edpresso-shots"},{matchRegex:/^\/api\/content\/meta-info$/,type:"POST",abortIdentifier:"get-content-meta-info"},{matchRegex:/^\/api\/codetest\/run$/,type:"POST",abortIdentifier:"post-codetest-run"},{matchRegex:/^\/api\/workflows\/pages$/,type:"POST",abortIdentifier:"post-workflow-pages"},{matchRegex:/^\/api\/overdue-alert\/search$/,type:"POST",abortIdentifier:"fetch-overdue-alerts"},{matchRegex:/^\/api\/ai\/search$/,type:"POST",abortIdentifier:"get-ai-search"},{matchRegex:/^\/api\/ai\/template-population$/,type:"POST",abortIdentifier:"post-ai-template-population"}],g=!1,v=!1;window.pendingFetchRequests={};let p=async function(e){var t,o,u;let p=arguments.length>1&&void 0!==arguments[1]&&arguments[1],_=!(arguments.length>2)||void 0===arguments[2]||arguments[2],E=!(arguments.length>3)||void 0===arguments[3]||arguments[3],m=!(arguments.length>4)||void 0===arguments[4]||arguments[4],h=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,S=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"include",{type:w="GET",url:R,processData:T=!0,headers:N={}}=e,O=e.data;R.startsWith("/")&&(N["X-Ed-Client"]="v260921-h-260924-0628"),T&&e.data&&(O=JSON.stringify(Object.entries(e.data).reduce((e,t)=>{let[n,r]=t;return{...e,[n]:String(null!=r?r:"")}},{})),N["Content-Type"]="application/json"),e.contentType&&(N["Content-Type"]=e.contentType);let A=null,P=null;if(window.AbortController&&(P=f.find(e=>e.matchRegex.test(R.split("?")[0])&&e.type===w))){if(m){let e=window.pendingFetchRequests[P.abortIdentifier];null==e||e.abort()}h=(A=new AbortController).signal,window.pendingFetchRequests[P.abortIdentifier]=A}if("PUT"===w||"POST"===w){let e=s();e&&(N["X-Browser-Tab-Id"]=e)}let C=await fetch(R,{method:w,...e.referrerPolicy&&{referrerPolicy:e.referrerPolicy},credentials:S,mode:"GET"===e.type?"no-cors":void 0,headers:N,body:O,...h?{signal:h}:{}});if((null==P?void 0:P.abortIdentifier)&&delete window.pendingFetchRequests[P.abortIdentifier],C.status>=200&&C.status<400){let e=!1;if(R.startsWith("/")&&(e="True"===C.headers.get("show_referral_credit")),!g&&e&&n.g.bannerActions){g=!0;let e=n.g.bannerActions,t={showBanner:!0,content:(0,r.jsxs)("div",{children:["Congrats! You’ve earned some Educative credit",(0,r.jsx)("span",{className:"tailwind-hidden sm:inline-block",children:"\xa0by referring your friends"}),". Visit"," ",(0,r.jsx)(i.default,{prefetch:!1,href:"/refer-a-friend",legacyBehavior:!0,children:(0,r.jsx)(d,{white:!0,blackOnHover:!0,isUnderlined:!0,underlineOnHover:!0,onClick:()=>{e.hide(a.ZP.REFERRAL_CREDIT_BANNER)},children:"here"})})," ","to see your credit balance."]}),showCross:!0};e.show(a.ZP.REFERRAL_CREDIT_BANNER,t),g=!1}let o=await C.text();return p&&C&&_&&(null===(t=n.g.collectionArticleActions)||void 0===t||t.updateETag(C.headers.get(l.Zq))),p?{data:o,status:"success",xhr:C}:o}try{C.responseJSON=await C.json()}catch(e){C.responseJSON={}}if((0,c.u0)()||C.headers.get("X-App-Version")||(429!==C.status||C.headers.get("X-Cloud-Trace-Context"))&&403!==C.status||!n.g.store)401===C.status&&E&&(()=>{var e,t;if(window.location.hostname.includes("how.dev")||window.location.pathname.includes("/answers"))return;let r=window.location.hostname.includes("fenzo.ai")||window.location.hostname.includes("-fenzo.")||window.location.hostname.includes("-business.");v||window.location.pathname===(r?"/home":"/login")||(v=!0,setTimeout(()=>{v=!1},3e3),null===(e=(t=n.g).logoutSideEffects)||void 0===e||e.call(t),Promise.all([n.e(327823),n.e(676712)]).then(n.bind(n,451935)).then(e=>{var t;let{default:n}=e;if(!(null==n?void 0:null===(t=n.query)||void 0===t?void 0:t.ru)&&n.asPath&&n){let e=n.asPath;n.push({pathname:r?"/home":"/login",query:r?{showOTPLoginModal:!0,ru:e}:{ru:e}})}}).catch(()=>{{let e=window.location.pathname+window.location.search,t=new URLSearchParams(r?{showOTPLoginModal:"true",ru:e}:{ru:e});window.location.replace("".concat(r?"/home":"/login","?").concat(t.toString()))}}))})();else{let e=window.location.origin.toString();null===(o=(u=n.g).showCloudflareRecaptchaModal)||void 0===o||o.call(u,R,{src:"".concat(e,"/api/rec
1aptcha").concat(403===C.status?"?preserve_cf_cookie=True":"")})}throw C};p.post=function(e,t){let n={};return t&&(t=JSON.stringify(t,function(e,t){let n=e.replace(/([A-Z])/g,e=>"_".concat(e[0].toLowerCase())),r="object"==typeof t?t:String(null!=t?t:"");if(e===n)return r;this[n]=r}),n["Content-Type"]="application/json"),p({type:"POST",url:e.startsWith("/")?"/api".concat(e):e,data:t,headers:n,processData:!1},!0).then(e=>{let{data:t,xhr:n}=e;return n.headers.get("Content-Type").startsWith("application/json")?{data:JSON.parse(t,function(e,t){let n=e.replace(/(_\w)/g,e=>e[1].toUpperCase());if(e===n)return t;this[n]=t})}:{data:t}})};var _=p},403413:function(e,t,n){"use strict";var r,o;n.d(t,{HQ:function(){return a},bo:function(){return l},hA:function(){return r},tB:function(){return i}});let i={count:0,bannersHeight:0,banners:{}},a="holidayBanner";(o=r||(r={})).SHOW_BANNER="showBanner",o.HIDE_UPGRADE_BANNER="hideUpgradeBanner",o.HOLIDAY_BANNER_EXPIRE_TIME="holidayBannerExpireTime";let l={CURRENT_BANNER:"current-banner",PREMIUM_PLUS_BANNER:"premium-plus-banner",CHURNED_BANNER:"churned-banner",NON_PAYING_BANNER:"non-paying-banner"};t.ZP={SITE_COUPON:"SITE_COUPON_BANNER",SUBMIT_COURSE:"SUBMIT_COURSE_FOR_REVIEW_BANNER",GITHUB_STATUS_BANNER:"GITHUB_STATUS_BANNER",REFERRAL_CREDIT_BANNER:"REFERRAL_CREDIT_BANNER",DEPRECATED_CONTENT_BANNER:"DEPRECATED_CONTENT_BANNER",ACCESS_EXPIRY_BANNER:"ACCESS_EXPIRY_BANNER",PAL_BANNER:"PAL_BANNER"}},952170:function(e,t,n){"use strict";n.d(t,{Ef:function(){return o},Tz:function(){return r},lm:function(){return i}});let r="ab_test_variant",o="ab_test_hash",i="ver"},596224:function(e,t,n){"use strict";n.d(t,{S:function(){return r}});let r={NO_PAYMENT_METHOD:"No payment method is available.",LOAD_ALL_PAYMENT_METHODS:/All payment options failed to load/,VALID_DOM_NODE:/options\.selector or options\.container must reference a valid DOM node/}},937440:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r={INITIATE_CHECKOUT:"begin_checkout",ADD_TO_CART:"add_to_cart",COMPLETE_REGISTRATION:"sign_up",PURCHASE:"purchase"}},847464:function(e,t,n){"use strict";n.d(t,{t:function(){return r}});let r={CHP_TOP_NAV:"CHP_Top_Nav",CHP_CTA_BUTTON:"CHP_Cta_Button",CHP_Table_Of_Contents:"CHP_Table_Of_Contents",CHP_SIGNUP_PANEL:"CHP_Signup_Panel",CHP_OTL:"CHP_OTL"}},830349:function(e,t,n){"use strict";n.d(t,{J:function(){return r}});let r={MODAL:"Modal",SIGNUP_PAGE:"Signup_page",PREVIEWABLE_LOCKEDLESSON:"Previewable_LockedLesson",OTL:"OTL",CODE_EXECUTION_ANSWERS:"Code_Execution_Answers",CHEATSHEETS:"Cheatsheets",ASSESSMENTS:"Assessments",CODE_EXECUTION_BLOGS:"Code_Execution_Blogs",LANDING_PAGE_B2C:"Landing_Page_B2C",COURSE_HOMEPAGE:"Course_Homepage",PRICING_PAGE:"Pricing_Page",MOCK_INTERVIEW_DASHBOARD:"Mock_Interview_Dashboard",PALIFIED_COURSE_DISRUPTIVE_MODAL:"Palified_Course_Disruptive_Modal"}},434144:function(e,t,n){"use strict";n.d(t,{W:function(){return r}});let r={OPERATION:{LOGIN:"login",SIGNUP:"signup"},STATUS:{SUCCESS:"success",FAILURE:"failure"}}},469018:function(e,t,n){"use strict";n.d(t,{RI:function(){return i},fh:function(){return r},vF:function(){return o}});let r="educative",o="devpath",i="eduqative"},528274:function(e,t,n){"use strict";var r=n(403413);r.ZP.ACCESS_EXPIRY_BANNER,t.ZP=r.ZP},662532:function(e,t,n){"use strict";n.d(t,{O2:function(){return u},Ol:function(){return a},Wz:function(){return l},Zq:function(){return r},Zs:function(){return i},yc:function(){return o}});let r="X-ETag",o="Last-Modified",i="no-input",a="freehand-drawing",l="uploaded-image",u="text-input"},336812:function(e,t,n){"use strict";n.d(t,{j:function(){return r}});let r={b2bUser:"b2bUser",pageBroken:"pageBroken",workflowPageBroken:"workflowPageBroken",organizationId:"organizationId",userId:"userId",pageRoute:"pageRoute",exceededPayload:"exceededPayload",trimmingException:"trimmingException",slateFunctionCrashed:"slateFunctionCrashed",editorCrashed:"editorCrashed",widgetCrashed:"widgetCrashed",thirdPartyWidgetCrashed:"thirdPartyWidgetCrashed",legacyRouterUsed:"legacyRouterUsed",palPage:"palPage"}},536198:function(e,t,n){"use strict";n.d(t,{g:function(){return r}});let r={UNSET:"unset",SYSTEM_PREFERENCE:"system_preference",DARK_MODE:"dark",LIGHT_MODE:"light"}}
1,431144:function(e,t,n){"use strict";var r,o,i,a;n.d(t,{$A:function(){return o},Df:function(){return s},N1:function(){return r},W4:function(){return l},z3:function(){return u}}),(i=r||(r={})).ADMIN="Admin",i.MANAGER="Manager",i.MEMBER="Member",i.NON_PAID_MEMBER="Non-Paid Member",(a=o||(o={})).B2B_USER="B2B_USER",a.B2C_USER="B2C_USER",a.EDUCATIVE_INTERNAL="EDUCATIVE_INTERNAL",a.LOGGED_OUT="LOGGED_OUT";let l={100:"BASIC",150:"L2C",200:"STND",300:"PREM",400:"PREM_PLUS"},u={1:"MONTHLY",3:"QUARTERLY",12:"ANNUAL",24:"BIENNIAL"},s={PROD:"GTM-KW9B87V3",B2B:"GTM-W3ZFCR2",STAGING:"GTM-5D5HJBR"}},669473:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(431144),o=n(185078),i=(e,t,n)=>{(!e||e.toString().toLowerCase().includes("undefined")||t&&(String(t).toLowerCase().split("/").includes("undefined")||String(t).toLowerCase().split("_").includes("undefined")||String(t).toLowerCase().split(",").includes("undefined")))&&(0,o.u)(Error("Unexpected GA Event logging.  Action: ".concat(e," Label: ").concat(t)))},a=n(5812);let l=()=>{if("undefined"==typeof document)return!1;let e=document.querySelectorAll('script[src*="googletagmanager.com"], script[src*="educative.io/collect/gtm"]'),t=void 0!==window.google_tag_manager;return!(e.length>0)||!t},u=()=>{var e;
1(null!==(e=window._gtmEventQueue)&&void 0!==e?e:[]).forEach(e=>{dataLayer.push(e)}),window._gtmEventQueue=[]},s=()=>{window._gtmPollingStarted=!0;let e=Date.now(),t=setInterval(()=>{let n=Date.now()-e>5e3;if(window._gtmReady||n){var r,i;!n||window._gtmReady||window._gtmBlocked||!((null!==(r=window._gtmEventQueue)&&void 0!==r?r:[]).length>0)||l()||(0,o.u)(Error("Google Analytics failed to load due to timeout. Some events may not be tracked."),{DroppedGAEvents:JSON.stringify(null!==(i=window._gtmEventQueue)&&void 0!==i?i:[]),maxWait:String(5e3)}),u(),window.clearInterval(t)}},100)};var c=function(e,t){var o,l,c,d,f,g,v,p,_,E,m,h,S,w,R;let T=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",N=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,O=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};i(t,T,N);let A="false",P=null,C=null,I=null,y="LOGGED_OUT",L=null,b=r.$A.LOGGED_OUT;window._gtmEventQueue=null!==(d=window._gtmEventQueue)&&void 0!==d?d:[],"undefined"!=typeof document&&(A=String("none"===document.documentElement.style.getPropertyValue("--loggedout-false")||"none"===document.documentElement.style.getPropertyValue("--logged-out")));let U=(null===(o=n.g.userInfoContext)||void 0===o?void 0:o.userInfoState.data)||(null===(c=(0,a.M)("/api/user/info"))||void 0===c?void 0:null===(l=c.data)||void 0===l?void 0:l.data);if("true"===A&&U&&n.g._googleAnalyticsSubscribtionType){if((b=(null===(f=U.email)||void 0===f?void 0:f.endsWith("@educative.io"))?r.$A.EDUCATIVE_INTERNAL:(null===(g=U.enterprise)||void 0===g?void 0:g.organizations.length)?r.$A.B2B_USER:r.$A.B2C_USER)===r.$A.B2B_USER||b===r.$A.EDUCATIVE_INTERNAL){let e=null!==(S=null!==(h=null!==(m=null===(v=U.enterprise)||void 0===v?void 0:v.organizations.find(e=>e.is_admin&&e.subscription_id))&&void 0!==m?m:null===(p=U.enterprise)||void 0===p?void 0:p.organizations.find(e=>e.is_manager&&e.subscription_id))&&void 0!==h?h:null===(_=U.enterprise)||void 0===_?void 0:_.organizations.find(e=>e.subscription_id))&&void 0!==S?S:null===(E=U.enterprise)||void 0===E?void 0:E.organizations[0];P=(null==e?void 0:e.is_mentor)?"Yes":"No",L=(null==e?void 0:e.subscription_id)?e.is_admin?r.N1.ADMIN:e.is_manager?r.N1.MANAGER:r.N1.MEMBER:r.N1.NON_PAID_MEMBER,C=null==e?void 0:e.organization_id,I=null!==(w=null==e?void 0:e.subscription_id)&&void 0!==w?w:null}y=n.g._googleAnalyticsSubscribtionType}let D="SEARCH_RESULTS_PAGE"===e?"SEARCH_RESULTS_PAGE":t;O.resourceId=null!==(R=O.resourceId)&&void 0!==R?R:null;let G={action:t,category:e,event:"customEvent",eventName:D,label:T,loggedIn:A,mentor:P,orgId:C,subId:I,subType:y,userRole:L,userType:b,value:N,page_location:window.location.href,...O};if(window._gtmReady){window._gtmEventQueue.length>0&&u(),dataLayer.push(G);return}window._gtmEventQueue.push(G),window._gtmPollingStarted||s()}},841578:function(e,t,n){"use strict";n.d(t,{ConfigConstantProvider:function(){return u},F:function(){return l}});var r=n(574101),o=n(441386),i=n(2498);let a=(0,o.createContext)({configConstants:{}});function l(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],{configConstants:n}=(0,o.useContext)(a),r=n[e];return t?(0,i.gx)(r):r}let u=e=>{let{children:t,configConstants:n}=e;return(0,r.jsx)(a.Provider,{value:{configConstants:n},children:t})}},442579:function(e,t,n){"use strict";n.r(t),n(987631)},290559:function(e,t,n){"use strict";n.d(t,{Dp:function(){return m},EO:function(){return T},VW:function(){return w},XF:function(){return h},hN:function(){return g},l4:function(){return E},u0:function(){return f},uT:function(){return d},wD:function(){return R},yv:function(){return p},zw:function(){return _}});var r=n(469018),o=n(554373),i=n(858709),a=n(280023),l=n(794996),u=n(213355),s=n(732608);let c=/^(.+).((devpath|eduqative).com(?::\d+)?|localhost(.com)?:\d+)$/,d=()=>(0,o.Z)().endsWith("devpath.com")||(0,o.Z)().endsWith("eduqative.com"),f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return s.env.REACT_APP_STANDALONE&&(0,l.Z)(e)},g=()=>(0,o.Z)().endsWith("beta.educative.io")||(0,o.Z)().endsWith("beta.x.eduqative.com"),v=()=>!(0,u.Z)()&&!(0,l.Z)(),p=()=>(0,a.Z)()&&v(),_=()=>(0,a.Z)()?(0,i.Z)().host:"www.educative.io",E=()=>(0,a.Z)()&&(0,i.Z)().href,m=()=>(0,a.Z)()&&(0,i.Z)().origin,h=e=>{var t;return(null==e?void 0:null===(t=e.headers["x-original-host"])||void 0===t?void 0:t.toString())||(null==e?void 0:e.headers.host)||(null==e?void 0:e.headers.get)&&(e.headers.get("x-original-host")||e.headers.get("host"))||((0,a.Z)()?(0,i.Z)().host:"")},S=e=>{if("undefined"==typeof document)return null;let t=document.cookie.split(";").find(t=>t.trim().startsWith(e+"="));return t?t.split("=")[1].trim():null},w=(e,t)=>{let n=t||h(e);if(!n)return null;
1let o=n.match(c),i=o?"www"===o[1]?null:o[1]:null,a=n.split(":")[0].endsWith("".concat(r.RI,".com"));return i?a?S("subdomain")||("x"===i.split(".")[1]?"test-1759340556":i):i:null},R=e=>{let{serverRequest:t}=e;return T(h(t))},T=e=>e.endsWith("".concat(r.RI,".com"))||e.split(":")[0].endsWith("".concat(r.vF,".com"));g()||p(),t.ZP=u.Z},554373:function(e,t,n){"use strict";var r=n(858709),o=n(280023);let i=()=>{let{context:e,createContextKey:t}=n(279208),r=e.active().getValue(t("Request Headers Context Key"));return String((null==r?void 0:r["x-original-host"])||(null==r?void 0:r.host)||"localhost:3000")};t.Z=()=>(0,o.Z)()?(0,r.Z)().host:i()},89616:function(e,t,n){"use strict";n.d(t,{X:function(){return o},i:function(){return i}});var r=n(162030);let o="utm_sso_info",i=()=>JSON.parse(r.rV(o))},5812:function(e,t,n){"use strict";n.d(t,{M:function(){return o}});let r={data:null},o=e=>{if(!window.swrCache)return r;let t=window.swrCache.get(e);return t?{data:t.data}:r}},858709:function(e,t){"use strict";t.Z=()=>new URL(globalThis.location.workerRef||globalThis.location.href)},280023:function(e,t){"use strict";t.Z=()=>"undefined"!=typeof WorkerGlobalScope||!0},394978:function(e,t,n){"use strict";var r=n(280023),o=n(732608);t.Z=()=>{var e,t,n,i;return o.env.REACT_APP_STANDALONE&&(0,r.Z)()&&(null===(i=window)||void 0===i?void 0:null===(n=i.location)||void 0===n?void 0:null===(t=n.hostname)||void 0===t?void 0:null===(e=t.endsWith)||void 0===e?void 0:e.call(t,"devpath.com"))&&!!window.location.port}},794996:function(e,t,n){"use strict";var r=n(554373),o=n(394978);t.Z=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return(0,o.Z)()||(null===(e=t||(0,r.Z)())||void 0===e?void 0:e.split(":")[0].endsWith("localhost"))}},114467:function(e,t,n){"use strict";n.d(t,{T:function(){return r}});let r=()=>"undefined"!=typeof document&&!!document.documentElement.style.getPropertyValue("--loggedout-true")},402433:function(e,t,n){"use strict";n.d(t,{s:function(){return r}});let r=e=>{var t;let n=(null==e?void 0:e.status)||(null==e?void 0:null===(t=e.response)||void 0===t?void 0:t.status);return n>=500||429===n}},213355:function(e,t,n){"use strict";var r=n(554373);t.Z=()=>(0,r.Z)().endsWith("x.educative.io")||(0,r.Z)().endsWith("eduqative.com")&&!(0,r.Z)().includes("beta.x.eduqative.com")||(0,r.Z)().endsWith("d8888ea9.com")},162030:function(e,t,n){"use strict";let r;n.d(t,{rV:function(){return a},cl:function(){return u},LS:function(){return l}});var o=n(669473),i=()=>{if(void 0!==r)return r;let e="test";try{localStorage.setItem(e,e),localStorage.removeItem(e),r=!0}catch(e){r=!1}return r};let a=e=>i()?localStorage.getItem(e):null,l=(e,t)=>{if(i())try{localStorage.setItem(e,t)}catch(e){(0,o.Z)("EXCEPTION","LOCAL_STORAGE_QUOTA_EXCEDED"),localStorage.clear()}},u=e=>{i()&&localStorage.removeItem(e)}},417147:function(e,t,n){"use strict";n.d(t,{y:function(){return i}});var r=n(13858),o=n(441386);let i=e=>{let t=(0,r.usePathname)(),n=(0,r.useSearchParams)(),i=(0,o.useRef)(!0);(0,o.useEffect)(()=>{if(i.current){i.current=!1;return}let r=new URL(t,window.location.origin);n.forEach((e,t)=>{r.searchParams.set(t,e)}),e(r.toString())},[t,n])}},565580:function(e,t,n){"use strict";n.d(t,{V:function(){return o}});var r=n(669473);let o=function(e,t,n,o){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"",l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;(0,r.Z)(e,t,n,null,{signupSource:o,userId:i,referrer:a,pageSection:l})}},527151:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(543060),o=n(940938),i=n(434144),a=n(185078),l=n(89616),u=n(937440),s=n(669473),c=n(565580);let d=e=>{if(e){let n="".concat(Date.now(),"_").concat(Math.random().toString(36).substring(2,15)),[r,o,l,d,f,g,v,p]=e.split(":");if(o&&l&&d){var t;let e=(null===(t=({[i.W.STATUS.SUCCESS]:{[i.W.OPERATION.SIGNUP]:"SIGNUP"},[i.W.STATUS.FAILURE]:{[i.W.OPERATION.SIGNUP]:"SIGNUP"}})[d])||void 0===t?void 0:t[l])||null,_=null;try{_=v&&atob(v)||null}catch(e){(0,a.u)(Error("Failed to decode referrer(".concat(v,") with error ").concat(JSON.stringify(e))))}(0,c.V)(e,r,o,null!=f?f:"",g,_,p),(0,s.Z)(e,u.Z.COMPLETE_REGISTRATION,null,0,{"x-fb-cd-currency":"USD","x-fb-event_id":n}),"undefined"!=typeof fbq&&fbq("track","CompleteRegistration",{currency:"USD",value:0},{eventID:n})}}},f="signup_cookie",g=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new r.Z,n=t.get("sso_user"),u=t.get(f);if(n){let[r,u,s,d]=n.split(":");if(r&&u&&s){let n=s===i.W.STATUS.SUCCESS&&u===i.W.OPERATION.SIGNUP,[f,g]=s===i.W.STATUS.SUCCESS?u===i.W.OPERATION.LOGIN?["LOGIN","LOGIN_SUCCEEDED"]:[e?"SIGNUP":null,e?"SUCCESS_SIGNUP_DEVPATH":null]:s===i.W.STATUS.FAILURE?u===i.W.OPERATION.LOGIN?["LOGIN","LOGIN_FAILED"]:["SIGNUP","SIGNUP_FAILED"]:[null,null],v="".concat(r.toUpperCase(),"_SSO");g&&(0,c.V)(f,g,v,null!=d?d:""),"SIGNUP"===f&&(0,c.V)(f,n?e?"SUCCESS_SIGNUP_DEVPATH":null:"SIGNUP_FAILED"===g?e?"FAILURE_SIGNUP_DEVPATH":"FAILURE_SIGNUP_EDUCATIVE":null,v,null!=d?d:""),s===i.W.STATUS.SUCCESS&&u===i.W.OPERATION.SIGNUP&&(0,o.Z)({url:"/api/user/utm",type:"POST",data:{...(0,l.i)()}}).catch(a.u),t.remove("sso_user",{path:"/"})}}u&&(d(u),t.remove(f,{path:"/"}),document.cookie.includes("".concat(f,"="))&&(0,a.u)(Error("Signup cookie not cleared")))}},278114:function(e,t,n){"use strict";n.d(t,{rV:function(){return i},cl:function(){return l},LS:function(){return a}});var r=n(669473),o=()=>{let e="test";try{return sessionStorage.setItem(e,e),sessionStorage.removeItem(e),!0}catch(e){return!1}};let i=e=>o()?sessionStorage.getItem(e):null,a=(e,t)=>{if(o())try{sessionStorage.setItem(e,t)}catch(e){(0,r.Z)("EXCEPTION","SESSION_STORAGE_QUOTA_EXCEEDED"),sessionStorage.clear()}},l=e=>{o()&&sessionStorage.removeItem(e)}},2498:function(e,t,n){"use strict";n.d(t,{C6:function(){return a},Hj:function(){return i},LF:function(){return s},SW:function(){return u},Xe:function(){return l},gx:function(){return r}});let r=e=>{if("string"==typeof e){if("true"===e.toLowerCase())return!0;
1if("false"===e.toLowerCase())return!1}return!!e};t.ZP={capitalizeFirstLetter:e=>e.charAt(0).toUpperCase()+e.slice(1),isString:e=>"string"==typeof e,formatNumber:e=>e.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),formatString(e,t){let n=[].slice.call(t);return e.replace(/(\{\d+\})/g,e=>n[+e.substr(1,e.length-2)||0])},stripTrailingSlash:e=>e.endsWith("/")?e.slice(0,-1):e,titleCaseString(e){return e.split(" ").map(e=>this.capitalizeFirstLetter(e.toLowerCase())).join(" ")},titleCaseSplitString(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";return e.split(t).map(e=>this.capitalizeFirstLetter(e.toLowerCase())).join(" ")},getBaseHost(){let{host:e}=window.location;return e.startsWith("localhost")?"http://localhost:3000":"https://".concat(e)}};let o=(e,t)=>e===t,i=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o;if(e.length!==t.length)return!1;for(let r=0,o=e.length;r<o;++r)if(!n(e[r],t[r]))return!1;return!0},a=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=e;try{let r;r=t instanceof RegExp?t.toString().replace(/\|/g,"\\|").slice(1,-1):t.replace(/\|/g,"\\|");let i=RegExp(r,"g");o=e.replace(i,n)}catch(e){return o.split(t).join(n)}return r?o.split(t).join(n):o},l=e=>e.replace(/-/g," ").replace(/\sand/g," &").replace(/(\b[a-z](?!\s))/g,e=>e.toUpperCase()).replace(/To/g,"to"),u=e=>encodeURIComponent(e.replace(/\s/g,"-").replace(/-&/g,"-and").toLowerCase()),s=e=>e.replace(/(^\w|\s\w)/g,e=>e.toUpperCase())},7180:function(e,t,n){"use strict";n.d(t,{D_:function(){return o}});var r=n(940938);let o=()=>(0,r.Z)({type:"GET",url:"/api/google-analytics/subscription-type"})},761216:function(e,t,n){"use strict";n.d(t,{default:function(){return l}});var r=n(13858),o=n(161496),i=n(952170),a=n(417147);function l(e){let{abTestEnabledRoutes:t,variantAPercentage:n}=e,l=(0,r.usePathname)(),u=(0,r.useSearchParams)(),[s]=(0,o.Z)([i.Ef]);return(0,a.y)(()=>{if(!t.includes(l))return;let e=u.get(i.lm),r=s[i.Ef];if(null!=r&&"b"==(parseInt(String(r),10)<n?"a":"b")&&"b"!==("a"===e||"b"===e?e:void 0)){let e=new URL(window.location.href);e.searchParams.set(i.lm,"b"),window.location.href=e.toString()}}),null}},641036:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return I}});let r={DEVELOPMENT:"815435412714-r4612t1qunch81edqhdu8glt8i44j8l4.apps.googleusercontent.com",PRODUCTION:"989837567076-mq44lppc92mop4uti92b4r9tjboek0p1.apps.googleusercontent.com"};var o,i,a=n(794996),l=n(213355),u=n(940938),s=n(819559),c=n(13858),d=n(441386),f=n(328523),g=n(404410),v=n(847464),p=n(830349),_=n(434144),E=n(290559);let m=(e,t,n)=>t.some(t=>{let[r,o]=t.split(":");return"mobile_only"===r?n&&e===o:"desktop_only"===r&&!n&&e===o}),h=(e,t,n)=>!!(0,E.VW)()||["/enterprise/demos/demo-1","/enterprise/demos/demo-2","/checkout/[checkout_type]"].some(t=>e.includes(t))||m(e,t,n);var S=n(676799),w=n(166020);(o=i||(i={})).IDLE="idle",o.LOADING="loading",o.READY="ready",o.ERROR="error";var R=e=>{let[t,n]=(0,d.useState)(e?"loading":"idle");return(0,d.useEffect)(()=>{if(!e){n("idle");return}let t=document.querySelector('script[src="'.concat(e,'"]'));if(t)n(t.getAttribute("data-status")||"idle");else{(t=document.createElement("script")).src=e,t.async=!0,t.setAttribute("data-status","loading"),document.body.appendChild(t);let n=e=>{t&&t.setAttribute("data-status","load"===e.type?"ready":"error")};t.addEventListener("load",n),t.addEventListener("error",n)}let r=e=>{n("load"===e.type?"ready":"error")};return t.addEventListener("load",r),t.addEventListener("error",r),()=>{t&&(t.removeEventListener("load",r),t.removeEventListener("error",r))}},[e]),t},T=n(264391),N=n(58773),O=n(185078),A=n(874049),P=n(704276);let C=e=>{var t,n,r,o;let{googleAccountConfigs:a,suppressedRoutes:l="/courses/[courseUrlSlug]"}=e,E=(0,s.Pc)(),m=(0,s.H7)(),C=E.loaded,I=null===(t=E.data)||void 0===t?void 0:t.user_id,y=(0,c.useRouter)(),L=(0,c.useSearchParams)(),b=(0,g.s)(null!==(n=(0,A.P)("restricted_routes_for_social_login",!1))&&void 0!==n?n:"",!1),U=(0,S.a)("sm"),D=!h(l,b,U),G=R(C&&m&&D?"https://accounts.google.com/gsi/client":null),x=null!==(o=null!==(r=L.get("returnUrl"))&&void 0!==r?r:L.get("ru"))&&void 0!==o?o:"/",k=()=>{(0,f.JG)(e=>e!==s.Ee,void 0,!0)};return(0,d.useEffect)(()=>{try{var e,t;window.google&&G===i.READY&&(null===(t=window.google.accounts)||void 0===t||null===(e=t.id)||void 0===e||e.initialize({...a,callback:e=>(function(e,t,n,r){var o,i;let a=null===(i=window)||void 0===i?void 0:null===(o=i.location)||void 0===o?void 0:o.href;if(!e.credential)throw Error("Couldn't get id token from Google");let l=(null==a?void 0:a.includes("/login/special-offer"))?"/unlimited":(null==a?void 0:a.includes("/order-confirmation"))?"/learn":(null==a?void 0:a.includes("signup"))?r:null!=a?a:"/",s=[/^\/courses\/[^/]+\/?$/,/^\/collection\/\d+\/d+\/?$/].some(e=>e.test(window.location.pathname))?v.t.CHP_OTL:null;(0,u.Z)({url:"/api/google-otl/return".concat(s?"?page_section="+s:""),type:"POST",data:{token:e.credential,referral_site:(0,N.Ar)(),last_referral_site:(0,N.rT)(),referral_code:(0,T.getReferralCodeFromLocalStorage)(),...(0,P.We)(),...(0,P.bB)()}}).then(e=>{let r=JSON.parse(e),o=r.operation===_.W.OPERATION.LOGIN,i=r.operation===_.W.OPERATION.SIGNUP,a=o?"LOGIN":"SIGNUP";if(302===r.status){t.push(r.location);return}if(!0===r.login_successful){if(r.redirect_url){t.push(r.redirect_url);return}document.documentElement.style.setProperty("--logged-in","flex"),document.documentElement.style.setProperty("--logged-out","none"),document.documentElement.style.removeProperty("--loggedout-true"),document.documentElement.style.setProperty("--loggedout-false","none"),n(),t.push(l),o&&(0,w.V0)("LOGIN","LOGIN_SUCCEEDED","GOOGLE_OTL",p.J.OTL),i&&(0,w.V0)("SIGNUP",r.event_name,"GOOGLE_OTL",p.J.OTL,r.user_id,r.referrer,r.page_section)}else{if((0,w.V0)(a,o?"LOGIN_FAILED":"SIGNUP_FAILED","GOOGLE_OTL",p.J.OTL),i&&(0,w.V0)(a,"FAILURE_SIGNUP_EDUCATIVE","GOOGLE_OTL",p.J.OTL),r.redirect_url){t.push(r.redirect_url);return}t.push("/?openLoginModal=true")}})})(e,y,k,x)}))}catch(e){(0,O.u)(e)}},[G]),(0,d.useEffect)(()=>{try{var e,t,n,r,o,a,l,u;if(I&&(null===(r=window.google)||void 0===r||null===(n=r.accounts)||void 0===n||null===(t=n.id)||void 0===t||null===(e=t.cancel)||void 0===e||e.call(t)),!m&&!C||I&&C)return;G===i.READY&&D&&(null===(u=window.google)||void 0===u||null===(l=u.accounts)||void 0===l||null===(a=l.id)||void 0===a||null===(o=a.prompt)||void 0===o||o.call(a))}catch(e){(0,O.u)(e)}},[G,C,I,m,D]),(0,d.useEffect)(()=>{var e,t,n,r;
1h(l,b,U)&&(null===(r=window.google)||void 0===r||null===(n=r.accounts)||void 0===n||null===(t=n.id)||void 0===t||null===(e=t.cancel)||void 0===e||e.call(t))},[b,U,l]),null};var I=e=>{let{suppressedRoutes:t="/courses/[courseUrlSlug]"}=e;return C({googleAccountConfigs:{client_id:(0,l.Z)()||(0,a.Z)()?r.DEVELOPMENT:r.PRODUCTION,cancel_on_tap_outside:!1,context:"signin",prompt_parent_id:"g_id_onload"},suppressedRoutes:t}),null}},796709:function(e,t,n){"use strict";n.r(t);var r=n(441386),o=n(819559),i=n(7180);t.default=()=>{let{data:e}=(0,o.Pc)(),t=!!(null==e?void 0:e.user_id),[a,l]=(0,r.useState)({error:"",loaded:!1,loading:!1});return(0,r.useEffect)(()=>{t&&!(a.error||a.loaded||a.loading)&&(l(e=>({...e,loading:!0})),(0,i.D_)().then(e=>{n.g._googleAnalyticsSubscribtionType=e,l(e=>({...e,loaded:!0,loading:!1}))}).catch(e=>{var t;return l({error:(null===(t=e.responseJSON)||void 0===t?void 0:t.errorText)||"Failed to load Google Analytics Subscribtion Type",loaded:!1,loading:!1})}))},[t,a.loaded,a.loading]),(0,r.useEffect)(()=>{!t&&(n.g._googleAnalyticsSubscribtionType=null,a.loaded&&l({error:null,loaded:!1,loading:!1}))},[t]),null}},603352:function(e,t,n){"use strict";n.d(t,{ProgressComplete:function(){return a}});var r=n(13858),o=n(441386),i=n(426732);let a=()=>{let e=(0,r.usePathname)(),t=(0,r.useSearchParams)();return(0,o.useEffect)(()=>{(0,i.S)()},[e,t]),null}},426732:function(e,t,n){"use strict";n.d(t,{L:function(){return a},S:function(){return l}});var r=n(522306),o=n.n(r);let i=!1,a=()=>{i=!0,o().start()},l=()=>{i&&(i=!1,o().done())}},98513:function(e,t,n){"use strict";n.r(t);var r=n(522306),o=n.n(r),i=n(598133),a=n.n(i);o().configure({easing:"ease",speed:1e3,template:"\n    <div class='bar ".concat(a().outer,"' role='bar'>\n      <div class='peg ").concat(a().inner,"'></div>\n    </div>\n  ")})},668460:function(e,t,n){"use strict";var r=n(249775);t.default=()=>((0,r.$)(),null)},39225:function(e,t,n){"use strict";n.d(t,{I:function(){return f}});var r=n(940938);let o=e=>(0,r.Z)({url:"/api/userdata/darkmode",type:"POST",data:{frontend_theme:e}});var i=n(328523),a=n(819559);let l=e=>{(0,i.JG)(a.Ee,null,{revalidate:!1,populateCache:!1,optimisticData:t=>({...t,data:{...null==t?void 0:t.data,user_theme:e}}),rollbackOnError:!0})};var u=n(536198),s=n(669473);let c=(e,t)=>{let n=e===u.g.SYSTEM_PREFERENCE?"SYSTEM_PREFERENCE_CLICK":e===u.g.DARK_MODE?"DARK_MODE_CLICK":"LIGHT_MODE_CLICK";(0,s.Z)("USER_THEME",n,t)};var d=n(232888);let f=e=>{var t,r;let{theme:i,setCookie:a,isLoggedIn:u=!0,reportToGA:s=!0,source:f=""}=e;null===(r=n.g.userInfoContext)||void 0===r||null===(t=r.userInfoDispatch)||void 0===t||t.call(r,{type:"setUserThemeAction",payload:i}),u&&(l(i),o(i)),(0,d.z)(a,i),s&&c(i,f)}},819559:function(e,t,n){"use strict";n.d(t,{Ee:function(){return c},H7:function(){return v},Pc:function(){return g}});var r=n(421520),o=n(328523),i=n(940938),a=n(794996),l=n(402433),u=n(213355),s=n(732608);let c="/api/user/info",d=(0,u.Z)()||(0,a.Z)()?console.error:()=>{},f=()=>{let e=async e=>{let t;try{let n="logged_in".concat((s.env.REACT_APP_STANDALONE,""));if(!("undefined"!=typeof document&&document.cookie.includes(n)))return{data:null,loggedOut:!0};if(!(t=await (0,i.Z)({url:e,type:"GET"},void 0,void 0,!1).then(JSON.parse)).status||t.status>=200&&t.status<400)return{data:t,loggedOut:!1};return{data:null,loggedOut:!0}}catch(n){d(n);let e=Error("failed to fetch response");throw e.status=t.status,e}};return(0,r.F)((0,o.ZP)(c,e,{errorRetryInterval:1e3,errorRetryCount:3,shouldRetryOnError:l.s}))},g=()=>{var e,t;let{mutate:n,isLoading:r,data:o,error:i}=f();return{data:null!==(e=null==o?void 0:o.data)&&void 0!==e?e:null,loggedOut:null!==(t=null==o?void 0:o.loggedOut)&&void 0!==t&&t,error:i,loaded:!i&&!!Object.keys(o||{}).length,isLoading:r,mutate:n}},v=()=>{var e,t;return null!==(t=null===(e=f().data)||void 0===e?void 0:e.loggedOut)&&void 0!==t&&t}},166541:function(e,t,n){"use strict";n.d(t,{SWRProvider:function(){return u}});var r=n(574101),o=n(441386),i=n(328523),a=n(940938);let l=()=>{let{cache:e}=(0,i.kY)();return(0,o.useEffect)(()=>{window.swrCache=e},[]),null},u=e=>{let{children:t}=e;return(0,r.jsxs)(i.J$,{value:{revalidateIfStale:!1,revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!1,fetcher:async e=>{let t=null,n="GET",r=null;return"string"==typeof e?t=e:[t,n,r]=e,(0,a.Z)({url:t,type:n,data:r?JSON.parse(r):null}).then(JSON.parse)}},children:[(0,r.jsx)(l,{}),t]})}},421520:function(e,t,n){"use strict";n.d(t,{F:function(){return i}});var r=n(441386);let o=(e,t,n)=>{let[o,i]=(0,r.useState)(!1),a=Object.fromEntries((null!=n?n:[]).map(t=>[t,e[t]]));return(0,r.useEffect)(()=>{(0,r.startTransition)(()=>{i(!0)})},[]),o?e:{...a,...t}},i=e=>o(e,{isLoading:!0,isValidating:!0,data:null,error:null},["mutate"])},406450:function(e,t,n){"use strict";n.d(t,{default:function(){return g}});var r=n(13858),o=n(441386),i=n(161496),a=n(39225),l=n(819559),u=n(232888),s=n(536198);let c=(e,t)=>!t.theme||t.use_system_preference===s.g.SYSTEM_PREFERENCE&&e!==s.g.SYSTEM_PREFERENCE||t.theme!==e;var d=n(114467);let f=["/","/interview/software-engineering-interview-prep","/interview/engineering-manager-interview-prep","/interview/front-end-interview-prep","/github-students","/generative-ai","/data-science/machine-learning","/data-science"];var g=()=>{let e=(0,r.usePathname)(),{data:t}=(0,l.Pc)(),[n,g]=(0,i.Z)(["theme","use_system_preference","logged_in","logged_in2"]),v=null==t?void 0:t.user_theme,p=!!v;return(0,o.useEffect)(()=>
1{if(p&&v===s.g.UNSET){(0,a.I)({theme:t.dark_mode_selected?s.g.DARK_MODE:s.g.LIGHT_MODE,setCookie:(e,t,n)=>g(e,t,n),reportToGA:!1});return}f.includes(e)&&("/"!==e||(0,d.T)())?(0,u.z)(g,s.g.LIGHT_MODE):p&&c(v,n)&&(0,u.z)(g,v)},[p,v,e]),null}},236671:function(e,t,n){"use strict";n.d(t,{v:function(){return o}});var r=n(536198);let o=()=>window.matchMedia("(prefers-color-scheme: dark)").matches?r.g.DARK_MODE:r.g.LIGHT_MODE},560540:function(e,t,n){"use strict";n.r(t);var r=n(21562);let o={"Possible side-effect in debug-evaluate":"EvalError: Possible side-effect in debug-evaluate","Unexpected end of input":"SyntaxError: Unexpected end of input"},i={getWordAtPosition:"static/js/editor.worker",provideInlayHints:"",".map":"languageFeatures.js",getText:"static/js/html.worker",languageId:"static/js/css.worker"},a=["@safari-web-extension","@safari-extension"];var l=n(336812),u=n(290559);let s=e=>e>=1||!(e<=0)&&Math.random()<e,c=[{sampleRate:.01,error:{message:"^Google Analytics failed to load due to timeout\\. Some events may not be tracked\\.$"}},{sampleRate:.01,error:{message:"^Cannot read properties of undefined \\(reading 'Domain'\\)$",stack:"otSDKStub",stackTraceFilename:"/scripttemplates/otSDKStub\\.js"}},{sampleRate:.01,error:{message:"^Loading Recaptcha Failed$",stackTraceFilename:"src/utils/recaptcha"}},{sampleRate:.01,error:{message:"^Cannot read propert(?:y|ies) of (?:null|undefined) \\(?reading '.*'\\)?$",stackTraceFilename:"\\/clarity\\.js$"}},{sampleRate:.01,error:{message:"Unknown root exit status|Minified React error #329"}},{sampleRate:0,error:{message:"^Cannot read properties of null \\(reading 'replaceChild'\\)$",stackTraceFilename:"\\/v1\\/checkout\\.js"}},{sampleRate:.01,error:{stackTraceFilename:"\\/gsi\\/client"}},{sampleRate:0,error:{message:"^Cannot read properties of undefined \\(reading 'querySelectorAll'\\)$",tags:{[l.j.slateFunctionCrashed]:"^(toDOMRange|toDOMNode)$"}}},{sampleRate:0,error:{message:"^\\[object Event\\]$",tags:{[l.j.thirdPartyWidgetCrashed]:"^userback$"}}},{sampleRate:.2,error:{message:"^Empty lesson content in SSR\\. Error: TypeError: Cannot read properties of null \\(reading 'components'\\)$"}}],d=e=>c.find(t=>{var n,r;let{error:o}=t;return!!((void 0===o.message||new RegExp(o.message).test(e.message))&&(void 0===o.stack||new RegExp(o.stack).test(null!==(r=e.stack)&&void 0!==r?r:""))&&(void 0===o.stackTraceFilename||(null==e?void 0:null===(n=e.exceptionValues)||void 0===n?void 0:n.some(e=>{var t,n;return null==e?void 0:null===(n=e.stacktrace)||void 0===n?void 0:null===(t=n.frames)||void 0===t?void 0:t.some(e=>new RegExp(o.stackTraceFilename).test(null==e?void 0:e.filename))})))&&(void 0===o.tags||Object.entries(o.tags).every(t=>{var n;let[r,o]=t;return(null===(n=e.tags)||void 0===n?void 0:n[r])!==void 0&&new RegExp(o).test(e.tags[r])})))}),f=(e,t)=>{var n,r,o;let{message:i,stack:a}=t,l=d({message:i,stack:a,exceptionValues:null===(n=e.exception)||void 0===n?void 0:n.values,tags:e.tags});return l?s(l.sampleRate)?(e.tags={...null!==(r=e.tags)&&void 0!==r?r:{},sampled:"true"},e.extra={...null!==(o=e.extra)&&void 0!==o?o:{},sampled:"true"},"sampled"):"drop":"no-rule"};var g=n(732608),v=n(596224);let p=[/Unexpected (Usage|usage).*[\S\s]*loadForeignModule/,/Cannot read property 'getText' of null/,/e\.doHover is not a function/,/can't redefine non-configurable property "(?:Position|userAgent)"/,/Cannot redefine property:.*Position/,/undefined is not an object.*webkit\.messageHandlers\.(contextMenuMessageHandler|loginsManagerMessageHandler)\.postMessage/,/undefined is not an object.*evaluating 'window\.webkit\.messageHandlers'/,/Blocked a frame with origin "https:\/\/www\.educative\.io" from accessing/,/Permission denied to access property "dispatchEvent" on cross-origin object/,/Loading( CSS)? chunk.*failed.*/,/Can't find variable: pktAnnotationHighlighter/,/Non-Error promise rejection captured with keys: currentTarget, detail, isTrusted, target/,/.*monaco\/vs\/.*/,/Debug Failure\..*/,/NS_ERROR_FAILURE: No error message/,/NS_ERROR_UNEXPECTED: No error message/,/ResizeObserver loop completed with undelivered notifications\./,/Non-Error promise rejection captured with value: Timeout/,/.*can't access dead object/,/.*Non-Error promise rejection captured with value: Object Not Found Matching Id.*/,/.*Non-Error promise rejection captured with value: Utils::waitUntil: max iteration count reached.*/,/.*Invariant: attempted to hard navigate to the same URL.*/,/.*This Suspense boundary received an update before it finished hydrating.*/,/.*Non-error Prompt input incorrectly disabled.*/,/Cannot resolve a DOM point from Slate point: "OBFUSCATED"/,/Loading Recaptcha Failed/,v.S.VALID_DOM_NODE,v.S.LOAD_ALL_PAYMENT_METHODS];var _=n(185078),E=n(732608);let m=e=>{var t,n;let{event:r,errorStack:o,errorMessage:i}=e,a=o.includes("pptr://__puppeteer_evaluation_script__")||i.includes("pptr://__puppeteer_evaluation_script__"),l=null==r?void 0:null===(n=r.exception)||void 0===n?void 0:null===(t=n.values)||void 0===t?void 0:t.some(e=>{var t,n;return null==e?void 0:null===(n=e.stacktrace)||void 0===n?void 0:null===(t=n.frames)||void 0===t?void 0:t.some(e=>{var t,n;return null==e?void 0:null===(n=e.filename)||void 0===n?void 0:null===(t=n.includes)||void 0===t?void 0:t.call(n,"pptr://__puppeteer_evaluation_script__")})});return a||l},h=e=>{var t,r,o,i,a;let s;let c={},d={};
1try{s=null===(a=n.g.userInfoContext)||void 0===a?void 0:a.userInfoState.data}catch(e){s={}}let f=null==s?void 0:s.user_id,g=(null===(t=window)||void 0===t?void 0:t.document)&&(null===(r=window.document.cookie)||void 0===r?void 0:r.includes("enterprise_nav=true"));((0,u.wD)({serverRequest:e.request})||g)&&(d[l.j.b2bUser]="true",c[l.j.b2bUser]="true"),f&&(c[l.j.userId]=f,d[l.j.userId]=f);let v=null==s?void 0:null===(i=s.enterprise)||void 0===i?void 0:null===(o=i.organizations[0])||void 0===o?void 0:o.organization_id;v&&(c[l.j.organizationId]=v,d[l.j.organizationId]=v),E.env.LEARNAPP&&(d.Learnapp="true"),E.env.MI_APP&&(d.MI_APP="true"),e.extra={...e.extra,...c},e.tags={...e.tags,...d}},S=e=>{let t=e=>new Blob([JSON.stringify(e)]).size;try{let n=t(e);if(n>=2e5){e.tags[l.j.exceededPayload]="true";let r=e.exception.values[0],{lastIndexToRemove:o}=e.breadcrumbs.reduce((e,r)=>e.breadCrumbsSize>=n-2e5?e:{breadCrumbsSize:e.breadCrumbsSize+t(r),lastIndexToRemove:e.lastIndexToRemove+1},{breadCrumbsSize:0,lastIndexToRemove:0});if(e.breadcrumbs=e.breadcrumbs.slice(o),t(e)>=2e5)return(0,_.u)(Error("Error with too large payload: ".concat(r.value)),{},{},{[l.j.exceededPayload]:"true"}),null}}catch(e){(0,_.u)(e,{[l.j.trimmingException]:"true"})}return e},w={dsn:"https://[email protected]/1359572",release:(()=>{let e=g.env.WORKAPP2?"-work2":g.env.LEARNAPP?"-learnapp":g.env.WORKAPP?"-work":g.env.EDITORAPP?"-editorapp":g.env.MI_APP?"-mi_app":g.env.FENZO_APP?"-fenzo":"";return"".concat("v260921-h-260924-0628").concat(e)})(),tracesSampler:e=>{let{transactionContext:{name:t,op:n},parentSampled:r}=e;return["pageload","navigation"].includes(n)&&t.includes("/courses/")?.01:"boolean"==typeof r?r:0},ignoreErrors:[...p],beforeSend:(e,t)=>{var n,r,s,c,d,g;let v=null==t?void 0:t.originalException;if("undefined"!=typeof WorkerGlobalScope&&(e.tags?e.tags.url=(0,u.l4)():e.tags={url:(0,u.l4)()}),(null===(n=e.tags)||void 0===n?void 0:n.url)&&(null===(r=(s=e.tags.url).match)||void 0===r?void 0:r.call(s,"^file:"))||!(v instanceof Error))return null;let p=(null==v?void 0:v.stack)||"",_=(null==v?void 0:v.message)||"",E=parseInt(null!==(g=null!==(d=null==v?void 0:v.status)&&void 0!==d?d:null==e?void 0:null===(c=e.message)||void 0===c?void 0:c.status)&&void 0!==g?g:0);if(m({event:e,errorStack:p,errorMessage:_}))return null;let w=Object.entries(o).find(e=>{let[t,n]=e;return _===t&&p===n}),R=Object.entries(i).find(e=>{let[t,n]=e;return(p.includes(t)||_.includes(t))&&(!n||p.includes(n)||_.includes(n))}),T=p.startsWith("SyntaxError: Unexpected token")&&p.includes("node_modules/svgedit/editor/embedapi.js"),N=a.find(e=>p.includes(e)||_.includes(e));return"drop"===f(e,{message:_,stack:p})?null:T||R||N||w||!(E>=500)&&0!==E&&400!==E?null:(h(e),l.j.trimmingException in e.extra)?e:S(e)}};(0,r.S1)(w)},31783:function(e,t,n){"use strict";n.r(t);var r=n(940938),o=n(58773),i=n(185078),a=n(704276);{let e=new URLSearchParams(window.location.search);(0,a.FL)(e);let t=e.get("irclickid"),l=e.get("aff")||e.get("affiliate_id")||e.get("aid")||e.get("eid"),u=e.get("ref_id")||e.get("szredirectid")||"";l?n.e(193813).then(n.bind(n,193813)).then(n=>{let{saveEncodedAffiliateInfo:r}=n;return r(l.replace(/\/$/,""),u.replace(/\/$/,""),window.location.pathname+window.location.search,!!e.get("aff"),t)}):t&&(0,i.u)(Error("Could not find affiliate ID against Impact ID"));let s=e.get("ranMID"),c=e.get("ranSiteID");s&&c&&(0,r.Z)({url:"/api/rakuten/set-cookie",type:"PUT",data:{merchant_id:s,tracking_id:c}}),e.get("referralCode")&&Promise.resolve().then(n.bind(n,264391)).then(t=>{let{saveReferralCodeInLocalStorage:n}=t;return n(e.get("referralCode"))}),e.get("siteCoupon")&&n.e(347606).then(n.bind(n,347606)).then(t=>{let{setSiteCouponNameInSessionStorage:n,setShowSiteCouponBannerInSessionStorage:r}=t;n(e.get("siteCoupon")),r()}),(0,o.Mr)()}},232888:function(e,t,n){"use strict";n.d(t,{z:function(){return l}});var r=n(236671),o=n(536198);let i=e=>e===o.g.SYSTEM_PREFERENCE?o.g.SYSTEM_PREFERENCE:"personal",a=e=>{e===o.g.LIGHT_MODE?(document.documentElement.classList.remove(o.g.DARK_MODE),document.documentElement.classList.add(o.g.LIGHT_MODE)):(document.documentElement.classList.remove(o.g.LIGHT_MODE),document.documentElement.classList.add(o.g.DARK_MODE))},l=(e,t)=>
1{let n=t===o.g.SYSTEM_PREFERENCE?(0,r.v)():t;a(n),e("theme",n,{path:"/",maxAge:31536e4}),e("use_system_preference",i(t),{path:"/",maxAge:31536e4})}},404410:function(e,t,n){"use strict";n.d(t,{s:function(){return r}});let r=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return e.split(",").map(e=>{let n=e.trim();return t&&(n=n.toLowerCase()),n}).filter(e=>!!e)}},166020:function(e,t,n){"use strict";n.d(t,{V0:function(){return u.V},VY:function(){return d},eJ:function(){return c},pA:function(){return f},zq:function(){return s.$}});var r=n(162030),o=n(264391),i=n(58773),a=n(89616),l=n(704276),u=n(565580),s=n(249775);let c=()=>{let e={referral_site:(0,i.Ar)(),last_referral_site:(0,i.rT)(),referral_code:(0,o.getReferralCodeFromLocalStorage)(),...(0,l.We)(),...(0,l.bB)()};r.LS(a.X,JSON.stringify(e))},d=(e,t,n)=>(r,o)=>{r.preventDefault(),window.location.href="/authorize/".concat(o,"-sso?operation=signup&page_uri=").concat(encodeURIComponent(window.location.href),"&page_name=").concat(e,"&reference=").concat(t,"&signup_source=").concat(n)},f="This email is already verified and associated with an account. Please log in or create a new DevPath account with another work email."},249775:function(e,t,n){"use strict";n.d(t,{$:function(){return i}});var r=n(441386),o=n(527151);let i=()=>{(0,r.useEffect)(()=>{(0,o.Z)()},[])}},676799:function(e,t,n){"use strict";n.d(t,{L:function(){return i},a:function(){return a}});var r=n(441386);let o={sm:"600px",md:"780px",lg:"1080px",xl:"1320px"},i=e=>{var t;let n=null!==(t=o[e])&&void 0!==t?t:o.lg;return!window.matchMedia("(min-width: ".concat(n,")")).matches},a=e=>{var t;let n=null!==(t=o[e])&&void 0!==t?t:o.lg,[i,a]=(0,r.useState)(void 0),l=(0,r.useRef)(null);return(0,r.useEffect)(()=>{l.current=window.matchMedia("(min-width: ".concat(n,")")),a(!l.current.matches)},[]),(0,r.useEffect)(()=>{if(!l.current)return;let e=e=>a(!e.matches);return l.current.addEventListener?l.current.addEventListener("change",e):l.current.addListener(e),()=>l.current.removeEventListener?l.current.removeEventListener("change",e):l.current.removeListener(e)},[l]),i}},545111:function(e,t,n){"use strict";n.d(t,{CodeProvider:function(){return l},y:function(){return a}});var r=n(574101),o=n(441386);let i=(0,o.createContext)(null),a=()=>(0,o.useContext)(i),l=e=>{let{children:t,value:n}=e;return(0,r.jsx)(i.Provider,{value:n,children:t})}},303073:function(e,t,n){"use strict";n.d(t,{$F:function(){return l},CE:function(){return u},U7:function(){return s}});var r=n(940938),o=n(185078),i=n(427763),a=n(162030);let l="affiliate_discount_hash",u=()=>{try{let e=a.rV(l);if(!e)return null;try{let t=JSON.parse(e);if(Date.now()-t.storedAt>864e5)return a.cl(l),null;return t.value}catch(e){return(0,o.u)("Failed to parse affiliate_discount_hash from localStorage.",e),a.cl(l),null}}catch(e){return(0,o.u)("Failed to get affiliate_discount_hash from localStorage.",e),null}},s=async()=>{try{let e=a.rV(i.T);if(!e)return null;let t=await (0,r.Z)({url:"/api/affiliate/discount-hash/".concat(e)}),n=JSON.parse(t);if(n.affiliate_discount_hash){let e={value:n.affiliate_discount_hash,storedAt:Date.now()};return a.LS(l,JSON.stringify(e)),n.affiliate_discount_hash}return null}catch(e){return(0,o.u)("Failed to fetch affiliate discount hash.",e),null}}},427763:function(e,t,n){"use strict";n.d(t,{J:function(){return a},T:function(){return o}});var r=n(162030);let o="encoded_affiliate_id",i=e=>"number"==typeof e&&!isNaN(e),a=()=>{try{let e=parseInt(r.rV(o),10);return i(e)?e:null}catch(e){return console.log("Failed to get encoded_affiliate_id from localStorage\n",e),null}}},149553:function(e,t,n){"use strict";n.d(t,{L:function(){return d},h:function(){return f}});var r=n(940938),o=n(526493),i=n(328523);let a=e=>{let t=JSON.parse(e);return n.g.userConfigState={loaded:!0,data:t,loading:!1,error:""},t};var l=n(462083),u=n(303073),s=n(427763),c=n(185078);let d="/api/userdata/user_config",f=(e,t)=>{var n;let{data:f,error:g}=(0,i.ZP)(d,e=>new Promise(async(t,n)=>{let i=o.operation({retries:2,factor:1}),d=(0,s.J)(),f=(0,u.CE)();d&&!f&&(f=await (0,u.U7)()),i.attempt(async n=>{try{let o=e+(f?"?discount_hash="+f:""),i=n>1?o+"".concat(f?"&":"?","cache=false"):o,l=await (0,r.Z)({url:i});return t(a(l))}catch(e){var o;if(i.retry(e||!0))return;(0,c.u)(Error(null!==(o=(0,l.n)(e))&&void 0!==o?o:"Error occurred while loading user config status:".concat(null==e?void 0:e.status," error:").concat((null==e?void 0:e.message)||e))),t(null)}})}),{revalidateIfStale:null!==(n=null==t?void 0:t.revalidateIfStale)&&void 0!==n&&n,revalidateOnFocus:!1,revalidateOnReconnect:!1});return e({userConfig:{data:f,loaded:!g&&!!Object.keys(f||{}).length,error:g,loading:!g&&0===Object.keys(f||{}).length}})}},462083:function(e,t,n){"use strict";function r(e){if(null==e)return null;if(e.responseJSON&&null!=e.responseJSON.errorText)return e.responseJSON.errorText;if(null!=e.responseJSON&&null!=e.responseJSON.errors){let t="";for(let n in e.responseJSON.errors)t+="<span>".concat(e.responseJSON.errors[n],"</span><br/>");return t}return null}n.d(t,{n:function(){return r}})},264391:function(e,t,n){"use strict";n.r(t),n.d(t,{getReferralCodeFromLocalStorage:function(){return a},saveReferralCodeInLocalStorage:function(){return i}});var r=n(162030);let o="referral_code",i=e=>{r.LS(o,e)},a=()=>r.rV(o)},58773:function(e,t,n){"use strict";n.d(t,{Ar:function(){return l},Mr:function(){return s},rT:function(){return u}});var r=n(162030);let o="referral_site",i="last_referral_site",a=()=>("undefined"!=typeof document&&document.referrer||"").substring(0,512),l=()=>r.rV(o),u=()=>r.rV(i),s=()=>{let e=a(),t=l(),n=u();e&&(t?n!==e&&r.LS(i,e):(r.LS(o,e),r.LS(i,e)))}},874049:function(e,t,n){"use strict";n.d(t,{P:function(){return i},U:function(){return a}});var r=n(149553),o=n(2498);function i(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=(0,r.h)(t=>{var n;return null===(n=t.userConfig.data)||void 0===n?void 0:n.constants[e]});return t?(0,o.gx)(n):n}function a(e,t){let n=i(e,!1);return n?parseInt(n):t}},704276:function(e,t,n){"use strict";n.d(t,{FL:function(){return l},We:function(){return i},bB:function(){return a}});var r=n(2498),o=n(162030);let i=()=>{var e;return JSON.parse(null!==(e=o.rV("utm"))&&void 0!==e?e:"{}")},a=()=>{var e;return JSON.parse(null!==(e=o.rV("utm_init"))&&void 0!==e?e:"{}")},l=e=>{var t;let n=JSON.stringify({utm_campaign:null!==(t=e.get("utm_name"))&&void 0!==t?t:e.get("utm_campaign"),utm_term:e.get("utm_term"),utm_source:e.get("utm_source"),utm_medium:e.get("utm_medium"),utm_content:e.get("utm_content")});n!==o.rV("utm")&&(null==o.rV("utm")&&o.LS("utm_init",(0,r.C6)(n,"utm_","utm_init_")),o.LS("utm",n))}},598133:function(e){e.exports={outer:"styles_outer__D3kTK",inner:"styles_inner__eacNu"}},470781:function(){}
1,437841:function(e){e.exports={link:"Link_link__yeKnb","white-underline":"Link_white-underline__hBh59",blue:"Link_blue__ou0gz",white:"Link_white__JTr1Z","black-on-hover":"Link_black-on-hover__YQVJk",underlined:"Link_underlined__SOucz","underline-on-hover":"Link_underline-on-hover__ZvV9O","zoom-on-hover":"Link_zoom-on-hover__0UyWN","align-slightly-left":"Link_align-slightly-left__hIEv5"}}}]);

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.