PageSourceSearch

https://home.deriv.com/dashboard/_next/static/chunks/39tm3bbda15lp.js

js deriv.com collected 2026-10-02 02:47:07 UTC 30,546 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,259396,e=>{"use strict";var t=e.i(843476),n=e.i(271645),r=e.i(948148),l=e.i(174080),a=e.i(246538),i=e.i(583903),o=e.i(499762),s=e.i(549838),c=e.i(40167),u=e.i(420551),d=e.i(135659);function m(e,t,n,r){if(0===n&&void 0===r)return{filtered:t?e.filter(e=>{let n=t.toLowerCase().replace(/^\+/,"");return!!(e.label.toLowerCase().includes(n)||e.callingCode&&e.callingCode.replace(/^\+/,"").startsWith(n))||!1}):e,needsMoreChars:!1};let l=t.trim();if(l.length<n)return{filtered:[],needsMoreChars:n>0};let a=l.toLowerCase().replace(/^\+/,""),i=a?e.filter(e=>!!(e.label.toLowerCase().includes(a)||e.callingCode&&e.callingCode.replace(/^\+/,"").startsWith(a))||!1):e;return"number"==typeof r&&r>=0&&(i=i.slice(0,r)),{filtered:i,needsMoreChars:!1}}function f({title:e,options:r,value:l,search:a,onSearch:i,onSelect:h,onClose:p,searchPlaceholder:g,noResultsLabel:b,searchPromptLabel:x,loading:w=!1,loadingLabel:v,minSearchLength:y=0,maxResults:k}){let[j,C]=(0,n.useState)(!1),[E,S]=(0,n.useState)(!1),{showSheetOpen:_,sheetLeaving:R,requestClose:N,onSheetTransitionEnd:L}=(0,c.useBottomSheetMotion)(p),A=(0,n.useRef)(null),$=_&&!R,z=(0,n.useCallback)(()=>{A.current?.blur(),N()},[N]),{offsetY:F,dragging:I,gripProps:P,sheetRef:B,gripRef:M}=(0,u.useBottomSheetDragGrip)({requestClose:z,canDrag:$,dragFrom:"grip"}),U=_?F>0?`${F}px`:"0px":"100%",O=(0,n.useRef)(null);(0,n.useLayoutEffect)(()=>{let e=O.current;if(!e)return;e.style.overflowY="hidden",e.scrollTop=0;let t=requestAnimationFrame(()=>{e.style.overflowY="auto"});return()=>cancelAnimationFrame(t)},[a]);let q=(0,n.useRef)(!1);(0,n.useEffect)(()=>{if(!_||q.current||!l)return;q.current=!0;let e=requestAnimationFrame(()=>{let e=O.current,t=e?.querySelector(`[data-testid="country-picker-option-${CSS.escape(l)}"]`);if(!e||!t)return;let n=t.getBoundingClientRect(),r=e.getBoundingClientRect();e.scrollTop+=n.top-r.top-e.clientHeight/2+n.height/2});return()=>cancelAnimationFrame(e)},[_,l]),(0,n.useEffect)(()=>{let e=e=>{"Escape"===e.key&&z()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[z]);let{filtered:T,needsMoreChars:W}=(0,n.useMemo)(()=>m(r,a,y,k),[a,r,y,k]);(0,n.useEffect)(()=>{y>0&&a.trim().length>=y&&S(!0)},[y,a]);let D=0===y?j:E;return(0,t.jsx)(d.ModalPortal,{mobileBottomSheet:!0,animate:!1,onBackdropClick:z,backdropClassName:(0,s.cn)("transition-opacity duration-500",c.bottomSheetEaseClass,_?"opacity-100 bg-black/40":"opacity-0 bg-black/40"),children:(0,t.jsxs)("div",{ref:B,"data-testid":"country-picker-sheet",role:"dialog","aria-modal":"true","aria-label":e,className:(0,s.cn)("flex w-full flex-col bg-white shadow-xl will-change-transform","transition-[transform,border-radius] duration-500",D?"h-dvh rounded-none":"h-[min(80dvh,90svh)] rounded-t-2xl",c.bottomSheetEaseClass,I&&"transition-none"),style:{transform:`translate3d(0, ${U}, 0)`},onTransitionEnd:L,onClick:e=>e.stopPropagation(),children:[(0,t.jsxs)("div",{ref:M,className:"shrink-0 touch-none cursor-grab active:cursor-grabbing select-none",...P,onClick:$?void 0:N,children:[(0,t.jsx)("div",{className:"flex justify-center pt-2 pb-1",children:(0,t.jsx)("span",{className:"h-1.5 w-12 rounded-full bg-neutral-200","aria-hidden":!0})}),(0,t.jsx)("div",{className:"px-4 pt-3 pb-0",children:(0,t.jsxs)("div",{"data-testid":"country-picker-sheet-search-field",className:"flex h-8 items-center gap-2 self-stretch rounded-lg bg-black/4 px-2",children:[(0,t.jsx)(o.StandaloneSearchRegularIcon,{width:16,height:16,className:"shrink-0 text-neutral-400","aria-hidden":!0}),(0,t.jsx)("input",{ref:A,"data-testid":"country-picker-search",type:"text",value:a,onChange:e=>i(e.target.value),onFocus:()=>C(!0),onBlur:()=>setTimeout(()=>C(!1),200),placeholder:g,className:"min-w-0 flex-1 border-0 bg-transparent text-sm text-neutral-900 outline-none placeholder:text-neutral-400"})]})})]}),(0,t.jsx)("div",{ref:O,"data-bottom-sheet-scroll":!0,className:"min-h-0 flex-1 touch-pan-y overflow-y-auto overscroll-y-contain pt-2 pb-[max(1rem,env(safe-area-inset-bottom))]",children:0===T.length?(0,t.jsx)("div",{"data-testid":w?"country-picker-loading":W?"country-picker-search-prompt":"country-picker-no-results",className:"px-4 py-3 text-sm text-neutral-400",children:w?v:W?x??b:b}):T.map(e=>(0,t.jsxs)("button",{type:"button","data-testid":`country-picker-option-${e.value}`,onClick:()=>{h(e.value),N()},className:(0,s.cn)("flex w-full items-center gap-3 px-4 py-3 text-sm transition-colors cursor-pointer text-start","hover:bg-neutral-50 active:bg-neutral-100",e.value===l?"bg-neutral-50 font-medium text-neutral-800":"text-neutral-700"),children:[e.emoji&&(0,t.jsx)("span",{className:"text-base",children:e.emoji}),(0,t.jsxs)("span",{children:[e.label,e.callingCode?` (${e.callingCode.startsWith("+")?e.callingCode:`+${e.callingCode}`})`:""]})]},e.value))})]})})}e.s(["CountryPicker",0,function({label:e,placeholder:c,options:u,value:d,onChange:h,error:p,onOpen:g,loading:b=!1,triggerDis
1playValue:x,embedded:w=!1,disabled:v=!1,sheetTitle:y,racFieldChain:k=!1,minSearchLength:j=0,maxResults:C,searchPromptLabel:E,noResultsLabel:S}){let _=(0,r.useTranslations)("common"),R=c??_("select"),N=S??_("no_countries_found"),[L,A]=(0,n.useState)(!1),[$,z]=(0,n.useState)(""),[F,I]=(0,n.useState)(()=>window.matchMedia("(max-width: 1023px)").matches),[P,B]=(0,n.useState)(null),M=(0,n.useRef)(null),U=(0,n.useRef)(null),O=(0,n.useRef)(null),q=(0,n.useRef)(null),T=(0,n.useRef)(null),W=(0,n.useRef)(0),D=u.find(e=>e.value===d),{filtered:H,needsMoreChars:V}=(0,n.useMemo)(()=>m(u,$,j,C),[$,u,j,C]),J=b?_("loading"):V?E??N:N;(0,n.useEffect)(()=>{let e=window.matchMedia("(max-width: 1023px)"),t=e=>I(e.matches);return e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]),(0,n.useEffect)(()=>{if(!L||F)return;let e=e=>{let t=e.target;M.current?.contains(t)||O.current?.contains(t)||(A(!1),z(""))};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[L,F]),(0,n.useLayoutEffect)(()=>{if(!L||F||!U.current||"u"<typeof document){let e=requestAnimationFrame(()=>B(null));return()=>cancelAnimationFrame(e)}let e=U.current.getBoundingClientRect(),t=window.innerHeight-e.bottom<292&&e.top>292,n={top:t?e.top:e.bottom,left:e.left,width:e.width,openUpward:t},r=requestAnimationFrame(()=>B(n));return()=>cancelAnimationFrame(r)},[L,F]),(0,n.useEffect)(()=>{if(L&&!F){var e;let t;return e=()=>T.current,t=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{t||e()?.focus()})}),()=>{t=!0}}},[L,F]),(0,n.useLayoutEffect)(()=>{let e=q.current;e&&(e.scrollTop=0)},[$]);let G=(0,n.useRef)(!1);(0,n.useEffect)(()=>{if(!L||F){G.current=!1;return}if(G.current||!d)return;G.current=!0;let e=0,t=requestAnimationFrame(()=>{e=requestAnimationFrame(()=>{let e=q.current,t=e?.querySelector(`[data-testid="country-picker-desktop-option-${CSS.escape(d)}"]`);if(!e||!t)return;let n=t.getBoundingClientRect(),r=e.getBoundingClientRect();e.scrollTop+=n.top-r.top-e.clientHeight/2+n.height/2})});return()=>{cancelAnimationFrame(t),cancelAnimationFrame(e)}},[L,F,d]);let K=(0,n.useCallback)(()=>{A(!1),z("")},[]);return(0,t.jsxs)("div",{ref:M,className:"w-full",children:[e&&(0,t.jsx)("label",{className:"mb-1.5 block text-sm font-medium text-neutral-700",children:e}),(0,t.jsxs)("button",{ref:U,type:"button","data-testid":"country-picker-trigger",...k?{"data-rac-field-chain":""}:{},disabled:v,onClick:()=>{v||(z(""),L||(W.current+=1,g?.()),A(!L))},className:(0,s.cn)("flex w-full items-center justify-between px-3 text-sm font-normal transition-colors",!v&&(w?"focus:outline-none":"focus:outline-none focus:ring-1 focus:ring-black focus:border-transparent"),v?"cursor-not-allowed text-[#999999]":"cursor-pointer",!w&&v&&"rounded-[0.625rem] border border-[#E6E6E6] bg-slate-solid-75",w&&v&&"text-[#999999]",w?"h-12 min-h-12 border-0 rounded-none bg-transparent":"h-12 rounded-lg border bg-white",!w&&!v&&(p?"border-(--quill-semantic-colour-field-outline-border-error)":"border-neutral-200"),!w&&v&&!p&&"border-[#E6E6E6]",D&&!v&&"text-neutral-800",D&&v&&"text-[#999999]",!D&&!v&&"text-neutral-400"),"aria-expanded":v?void 0:L,"aria-haspopup":v?void 0:"listbox","aria-label":e||_("country_region"),"aria-disabled":v||void 0,children:[(0,t.jsx)("span",{className:"flex items-center gap-2 truncate",children:D?void 0!==x?x:(0,t.jsxs)(t.Fragment,{children:[D.emoji&&(0,t.jsx)("span",{children:D.emoji}),D.label]}):R}),L&&!F?(0,t.jsx)(i.StandaloneChevronUpRegularIcon,{width:16,height:16,className:"shrink-0 text-brand-red"}):(0,t.jsx)(a.StandaloneChevronDownRegularIcon,{width:16,height:16,className:(0,s.cn)("shrink-0",v?"text-[#a3a3a3]":"text-neutral-400")})]}),L&&F&&(0,t.jsx)(f,{title:y||e||R,options:u,value:d,search:$,onSearch:z,onSelect:h,onClose:K,searchPlaceholder:_("search"),noResultsLabel:N,searchPromptLabel:E,loading:b,loadingLabel:_("loading"),minSearchLength:j,maxResults:C},W.current),!F&&L&&P&&"u">typeof document&&(0,l.createPortal)((0,t.jsx)("div",{ref:O,className:"fixed z-9999",style:P.openUpward?{bottom:window.innerHeight-P.top,left:P.left,width:P.width,minWidth:220}
1:{top:P.top,left:P.left,width:P.width,minWidth:220},children:(0,t.jsxs)("div",{className:(0,s.cn)("rounded-lg border border-neutral-200 bg-white shadow-lg",P.openUpward?"mb-1":"mt-1"),children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 border-b border-neutral-100 px-3 py-2",children:[(0,t.jsx)(o.StandaloneSearchRegularIcon,{width:16,height:16,className:"text-neutral-400 shrink-0"}),(0,t.jsx)("input",{ref:T,"data-testid":"country-picker-desktop-search",type:"text",value:$,onChange:e=>z(e.target.value),placeholder:_("search"),className:"w-full text-sm outline-none placeholder:text-neutral-400"})]}),(0,t.jsx)("div",{ref:q,className:"max-h-60 overflow-y-auto py-1",role:"listbox",children:0===H.length?(0,t.jsx)("div",{"data-testid":b?"country-picker-loading":V?"country-picker-search-prompt":"country-picker-no-results",className:"px-4 py-3 text-sm text-neutral-400",children:J}):H.map(e=>(0,t.jsxs)("button",{type:"button",role:"option","data-testid":`country-picker-desktop-option-${e.value}`,"aria-selected":e.value===d,onClick:()=>{h(e.value),A(!1),z("")},className:(0,s.cn)("flex w-full items-center gap-3 px-4 py-2.5 text-sm transition-colors cursor-pointer text-start","hover:bg-neutral-50",e.value===d?"bg-neutral-50 font-medium text-neutral-800":"text-neutral-700"),children:[e.emoji&&(0,t.jsx)("span",{className:"text-base",children:e.emoji}),(0,t.jsxs)("span",{children:[e.label,e.callingCode?` (${e.callingCode.startsWith("+")?e.callingCode:`+${e.callingCode}`})`:""]})]},e.value))})]})}),document.body),p&&(0,t.jsx)("p",{role:"alert","data-testid":"country-picker-error",className:"mt-1 text-xs text-(--quill-semantic-colour-field-text-error)",children:p})]})}])},401794,e=>{"use strict";var t=e.i(843476),n=e.i(522016),r=e.i(271645),l=e.i(549838);function a({active:e,testId:n}){return(0,t.jsx)("span",{"aria-hidden":"true",className:"ml-1 inline-block h-3 w-3 align-[-0.125em]",children:e&&(0,t.jsx)("span",{className:"block h-3 w-3 animate-spin rounded-full border-2 border-neutral-300 border-t-neutral-600","data-testid":n})})}e.s(["AuthNavigationSpinner",0,a,"AuthSwitchLink",0,function({children:e,className:i,onClick:o,"data-testid":s,trailingText:c,...u}){let[d,m]=(0,r.useState)(!1),f=(0,r.useCallback)(e=>{d?e.preventDefault():(m(!0),o?.(e))},[d,o]),h=(0,t.jsx)(a,{active:d,testId:s?`${s}-spinner`:void 0}),p=(0,t.jsxs)(n.default,{...u,"data-testid":s,"aria-disabled":d||void 0,"aria-busy":d||void 0,className:(0,l.cn)(i,d&&"pointer-events-none opacity-70"),onClick:f,children:[e,void 0===c&&h]});return void 0===c?p:(0,t.jsxs)(t.Fragment,{children:[p,c,h]})}])},998778,549093,e=>{"use strict";let t=new Set(["utm_source","utm_medium","utm_campaign","utm_content","utm_term","affiliate_token","affiliate_platform","t"]);function n(e){let t=e.trim();return!(!t||t.length>2048||/[;\r\n]/.test(t))}function r(e){if("u"<typeof document)return null;try{let t=encodeURIComponent(e);for(let n of document.cookie.split(";")){let r=n.trim();if(r.startsWith(t+"="))return decodeURIComponent(r.slice(t.length+1));if(r.startsWith(e+"="))try{return decodeURIComponent(r.slice(e.length+1))}catch{return r.slice(e.length+1)}}return null}catch{return null}}function l(e,t,n=365){let r;if("u"<typeof document)return;let a=new Date;a.setTime(a.getTime()+24*n*36e5);let i=(r=window.location.hostname,["deriv.com","deriv.ae","deriv.be","deriv.me","binary.sx"].find(e=>r===e||r.endsWith("."+e))??r),o=i?`; domain=${i}`:"";document.cookie=`${encodeURIComponent(e)}=${encodeURIComponent(t)}; expires=${a.toUTCString()}${o}; path=/; SameSite=None; Secure`}function a(e){if(!e)return{};try{let t=JSON.parse(e);if(t&&"object"==typeof t&&!Array.isArray(t))return t}catch{try{let t=decodeURIComponent(e),n=JSON.parse(t);if(n&&"object"==typeof n&&!Array.isArray(n))return n}catch{}}return{}}e.s(["installAttributionCookiesFromRequestUrl",0,function(e){if(e&&"string"==typeof e)try{let i=function(e){let r,l=new URLSearchParams;if(!e||"string"!=typeof e)return l;try{r=new URL(e)}catch{return l}for(let[e,a]of r.searchParams.entries())t.has(e)&&n(a)&&l.set(e,a.trim());
1for(let[,e]of r.searchParams.entries()){let r,a;try{r=decodeURIComponent(e)}catch{continue}if(r.includes("?")||r.includes("&")){try{a=new URL(r).searchParams}catch{try{let e=r.indexOf("?");a=new URLSearchParams(e>=0?r.slice(e+1):r)}catch{continue}}for(let[e,r]of a.entries())t.has(e)&&!l.has(e)&&n(r)&&l.set(e,r.trim())}}return l}(e);if(0===i.size)return;!function(e){let t=["utm_source","utm_medium","utm_campaign","utm_content","utm_term"],n={};for(let r of t){let t=e.get(r);t&&(n[r]=t)}let i=e.get("affiliate_token")??e.get("t")??null;if(Object.keys(n).length>0){let e=a(r("utm_data")),i=e.utm_source;if(!i||"null"===i||""===i){let r={};for(let l of t){let t=e[l],a=n[l];t&&"null"!==t&&""!==t?r[l]=t:a&&(r[l]=a)}Object.keys(r).length>0&&l("utm_data",JSON.stringify(r))}}if(i){let e=r("affiliate_tracking");e&&"null"!==e||l("affiliate_tracking",i)}if(i){let e=a(r("affiliate_data"));e.affiliate_token&&"null"!==e.affiliate_token&&""!==e.affiliate_token||l("affiliate_data",JSON.stringify({affiliate_token:i,...n}))}}(i)}catch{}}],998778);var i=e.i(848990),o=e.i(577396);e.s(["applyLocaleFromRequestUrl",0,function(e){try{let t=function(e){let t;if(!e||"string"!=typeof e)return null;try{t=new URL(e)}catch{return null}let n=t.searchParams.get("lang");if(n&&n.trim()&&n.length<=64)return n.trim();for(let[,e]of t.searchParams.entries()){let t,n;try{t=decodeURIComponent(e)}catch{continue}if(!t.includes("lang="))continue;try{n=new URL(t).searchParams}catch{try{let e=t.indexOf("?");n=new URLSearchParams(e>=0?t.slice(e+1):t)}catch{continue}}let r=n.get("lang");if(r&&r.trim()&&r.length<=64)return r.trim()}return null}(e);if(!t)return null;let n=(0,i.normalizeLangParam)(t);if(!n)return null;let r=o.useLocaleStore.getState();return n!==r.locale&&r.setLocale(n),n}catch{return null}}],549093)},150806,809857,412205,332735,226867,106752,e=>{"use strict";let t,n=["gmail.com","yahoo.com","hotmail.com","outlook.com","live.com","icloud.com","ymail.com"],r=["gmail.com","outlook.com","hotmail.com","yahoo.com","live.com","icloud.com","ymail.com","163.com","mail.ru","yandex.ru","rediffmail.com","uol.com.br"],l=["com","net","org","info","biz","edu","gov","io"],a=new Set([...l,"ae","af","ag","ai","al","am","ao","ar","at","au","az","ba","bb","bd","be","bf","bg","bh","bi","bj","bm","bn","bo","br","bs","bt","bw","by","bz","ca","cd","cf","cg","ch","ci","cl","cm","cn","co","cr","cu","cv","cx","cy","cz","de","dj","dk","dm","do","dz","ec","ee","eg","es","et","eu","fi","fj","fk","fm","fo","fr","ga","gd","ge","gg","gh","gi","gl","gm","gp","gr","gt","gy","hk","hm","hn","hr","ht","hu","id","ie","il","im","in","iq","ir","is","it","je","jm","jo","jp","ke","kg","kh","ki","km","kn","kp","kr","kw","ky","kz","la","lb","lc","li","lk","lr","ls","lt","lu","lv","ly","ma","mc","md","me","mg","mk","ml","mm","mn","mo","mp","mq","mr","ms","mt","mu","mv","mw","mx","my","mz","na","ne","nf","ng","ni","nl","no","np","nu","nz","om","pa","pe","pg","ph","pk","pl","pr","ps","pt","py","qa","ro","rs","ru","rw","sa","sb","sc","sd","se","sg","sh","si","sk","sl","sm","sn","so","sr","ss","st","sv","sx","sy","sz","tc","td","tf","tg","th","tj","tk","tl","tm","tn","to","tr","tt","tv","tw","tz","ua","ug","uk","us","uy","uz","va","vc","ve","vg","vi","vn","vu","ws","ye","yt","za","zm","zw","app","dev","xyz","online","site","store","shop","tech","blog","cloud","email","news","media","design","network","agency","studio","page","link","zone","world","life","ltd","group","today","tools","plus","name","pro","mobi","asia","tel","travel","jobs","museum","aero","coop","int","mil"]);function i(e,t){let n=e.length,r=t.length,l=Array.from({length:n+1},(e,t)=>Array.from({length:r+1},(e,n)=>0===t?n:0===n?t:0));for(let a=1;a<=n;a++)for(let n=1;n<=r;n++)l[a][n]=e[a-1]===t[n-1]?l[a-1][n-1]:1+Math.min(l[a-1][n],l[a][n-1],l[a-1][n-1]);return l[n][r]}function o(e){if(r.includes(e))return null;let t=null,n=1/0;for(let l of r){let r=i(e,l);r<n&&(n=r,t=l)}return n<=2?t:null}function s(e){let t=e.lastIndexOf("@");if(-1===t)return[];let r=e.slice(0,t);if(!r)return[];let l=e.slice(t+1).toLowerCase();return n.includes(l)?[]:n.filter(e=>e.startsWith(l)).slice(0,6).map(e=>`${r}@${e}`)}e.s(["getEmailDomainSuggestions",0,s,"suggestEmail",0,function(e){let t=e.lastIndexOf("@");if(-1===t)return null;let n=e.slice(0,t),r=e.slice(t+1).toLowerCase();if(!n||!r)return null;let s=o(r);if(s)return`${n}@${s}`;let c=function(e){let t=e.lastIndexOf(".");if(-1===t)return null;let n=e.slice(t+1).toLowerCase(),r=e.slice(0,t);if(!n||!r||a.has(n))return null;let o=null,s=1/0;for(let e of l){let t=i(n,e);t<s&&(s=t,o=e)}return s>=1&&s<=2&&o?`${r}.${o}`:null}(r);if(c){let e=o(c);return`${n}@${e??c}`}return null}],150806);var c=e.i(477604),u=e.i(701200),d=e.i(165933),m=e.i(652987),f=e.i(759684),h=e.i(71112),p=e.i(150975);
1e.s(["socialAuthService",0,{async initSocialAuth(e,t,n){let r=n.getErrorMessage,l=n.tCommon;if(e===f.SOCIAL_SANDBOX_PROVIDER_KEY&&(0,m.isDerivProductionHostname)(window.location.hostname))return(0,c.showApiError)(null,r(),l),!1;try{var a;let i,o=(a=(0,d.getAppBase)(),i=(a.startsWith("http")?a:`${window.location.origin}${a}`).replace(/\/+$/,""),"login"===t?i:`${i}/welcome?from_oidc_signup=1`),s=await (0,u.kratosInitSocial)({provider:e,action:t,return_to:o,...n.countryCode?{country_code:n.countryCode}:{},...n.flowId&&"login"===t?{flow_id:n.flowId}:{}});if("use_email_login"in s&&"login"===t)return n.onUseEmailLogin?.(s.use_email_login.email),!1;let m="redirect_url"in s?s.redirect_url:"";if(m&&1){if(function(e){try{return"https:"===new URL(e).protocol}catch{return!1}}(m))return"login"===t&&(0,h.markPendingPostOidcRedirect)(),window.location.assign(m),!0;return(0,c.showApiError)(null,r(),l),!1}}catch(t){if((0,p.isLegacyClientBlockedError)(t)&&n.onLegacyClientBlocked)return n.onLegacyClientBlocked(),!1;let e=t?.response?.data?.error_code;if(n.getMessageForErrorCode&&"string"==typeof e){let t=n.getMessageForErrorCode(e);if(t)return(0,c.showErrorToast)(t),!1}return(0,c.showApiError)(t,r(),l),!1}return(0,c.showApiError)(null,r(),l),!1}}],809857);var g=e.i(271645),b=e.i(649348);e.s(["useAuthMethodBusy",0,function(){let[e,t]=(0,g.useState)(null);return{busy:e,lock:(0,g.useCallback)(e=>{t(t=>(null===t&&b.useAuthChromeBusyStore.getState().begin(),e))},[]),unlock:(0,g.useCallback)(()=>{t(e=>(null!==e&&b.useAuthChromeBusyStore.getState().end(),null))},[])}}],412205);var x=e.i(843476),w=e.i(174080),v=e.i(948148),y=e.i(4971);let k=(0,g.forwardRef)(({iconSize:e="md",title:t,titleId:n,...r},l)=>g.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 32",...y.sizes[e],role:"img",ref:l,"aria-labelledby":n,...r},t?g.createElement("title",{id:n},t):null,g.createElement("g",{clipPath:"url(#e5549db6a)"},g.createElement("path",{fill:"#3E82F1",d:"M32 16.375c0-1.097-.1-2.194-.294-3.273H16.325v6.186h8.787a7.34 7.34 0 0 1-3.256 4.829l5.274 4.02C30.22 25.348 32 21.248 32 16.374"}),g.createElement("path",{fill:"#32A753",d:"M21.858 24.119c-1.458.962-3.33 1.529-5.53 1.529-4.257 0-7.852-2.815-9.136-6.6l-5.458 4.145c2.77 5.404 8.42 8.82 14.593 8.812 4.412 0 8.108-1.43 10.805-3.876z"}),g.createElement("path",{fill:"#F9BB00",d:"M7.19 12.966 1.735 8.82a15.77 15.77 0 0 0 0 14.377l5.457-4.145a9.35 9.35 0 0 1 0-6.087"}),g.createElement("path",{fill:"#E74133",d:"M16.327 0C10.154 0 4.503 3.417 1.734 8.82l5.457 4.146c1.284-3.786 4.88-6.6 9.136-6.6 2.394 0 4.55.81 6.237 2.392l4.687-4.595C24.426 1.583 20.73 0 16.327 0"})),g.createElement("defs",null,g.createElement("clipPath",{id:"e5549db6a"},g.createElement("path",{fill:"#fff",d:"M0 0h32v32H0z"}))))),j=(0,g.forwardRef)(({iconSize:e="md",title:t,titleId:n,...r},l)=>g.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 32",...y.sizes[e],role:"img",ref:l,"aria-labelledby":n,...r},t?g.createElement("title",{id:n},t):null,g.createElement("g",{clipPath:"url(#fc8c6b8ca)"},g.createElement("path",{fill:"#1877F2",fillRule:"evenodd",d:"M16 32c8.837 0 16-7.163 16-16S24.837 0 16 0 0 7.163 0 16s7.163 16 16 16m2.5-11.249v11.055a16.1 16.1 0 0 1-5 0V20.75H9.438v-4.653H13.5V12.55c0-4.034 2.389-6.263 6.043-6.263 1.751 0 3.582.315 3.582.315v3.961h-2.018c-1.987 0-2.607 1.241-2.607 2.514v3.02h4.438l-.71 4.653z",clipRule:"evenodd"}),g.createElement("path",{fill:"#fff",d:"M18.5 20.751v11.055a16.1 16.1 0 0 1-5 0V20.75H9.438v-4.653H13.5V12.55c0-4.034 2.389-6.263 6.043-6.263 1.751 0 3.582.315 3.582.315v3.961h-2.018c-1.987 0-2.607 1.241-2.607 2.514v3.02h4.438l-.71 4.653z"})),g.createElement("defs",null,g.createElement("clipPath",{id:"fc8c6b8ca"},g.createElement("path",{fill:"#fff",d:"M0 0h32v32H0z"}))))),C=(0,g.forwardRef)(({iconSize:e="md",title:t,titleId:n,...r},l)=>g.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 32",...y.sizes[e],role:"img",ref:l,"aria-labelledby":n,...r},t?g.createElement("title",{id:n},t):null,g.createElement("g",{fill:"#000",clipPath:"url(#e5bc9906a)"},g.createElement("path",{d:"M22.248 0c.195 1.894-.542 3.749-1.627 5.129-1.125 1.34-2.907 2.405-4.69 2.248-.233-1.815.66-3.746 1.667-4.93C18.721 1.066 20.66.08 22.248 0m-4.184 8.672c1.158-.464 2.59-1.038 4.165-.943 1.006.08 3.904.395 5.76 3.185l-.06.041c-.476.317-3.378 2.248-3.342 6.057.036 4.537 3.678 6.238 4.16 6.463l.053.026-.01.032c-.092.3-.72 2.36-2.153 4.49-1.315 1.97-2.668 3.896-4.833 3.935-1.02.02-1.706-.28-2.422-.592-.75-.326-1.53-.667-2.757-.667-1.286 0-2.104.351-2.891.69-.68.29-1.336.572-2.25.61-2.087.077-3.67-2.087-4.985-4.053-2.707-3.973-4.755-11.21-1.971-16.088C5.88 9.42 8.354 7.887 11.02 7.847c1.164-.022 2.278.426 3.25.816.739.297 1.396.562 1.93.562.485 0 1.118-.254 1.864-.553"})),g.createElement("defs",null,g.createElement("clipPath",{id:"e5bc9906a"},g.createElement("path",{fill:"#fff",d:"M0 0h32v32H0z"})))));var E=e.i(262125),S=e.i(907565);function _({width:e,height:t}){return(0,x.jsxs)("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,
1children:[(0,x.jsx)("path",{d:"M10 3h4v3.5l4.8 12.2c.35.9-.3 1.8-1.2 1.8H6.4c-.9 0-1.55-.9-1.2-1.8L10 6.5V3z",stroke:"currentColor",strokeWidth:"1.35",strokeLinejoin:"round"}),(0,x.jsx)("path",{d:"M8 21h8",stroke:"currentColor",strokeWidth:"1.35",strokeLinecap:"round"})]})}let R=[{id:"google",Icon:k,name:"Google"},{id:"facebook",Icon:j,name:"Facebook"},{id:"apple",Icon:C,name:"Apple"}];e.s(["SocialLoginButtons",0,function({variant:e="signup",busy:t,onSocialFlowStart:n,onSocialFlowEnd:r,onSocialClick:l,onGoogleClick:a,onFacebookClick:i,onAppleClick:o}){let s=(0,v.useTranslations)("auth"),[c,u]=(0,g.useState)(!1),[d,f]=(0,g.useState)(null),h=(0,E.useGlobalFlags)()?.flags.hide_facebook===!0;(0,g.useEffect)(()=>{u((0,m.shouldShowSocialSandboxOidcButton)(window.location.hostname)),f((0,S.getLastLoginMethod)())},[]);let p=h?R.filter(({id:e})=>"facebook"!==e):R,b={google:l?()=>l("google"):a,facebook:l?()=>l("facebook"):i,apple:l?()=>l("apple"):o,social_sandbox:l?()=>l("social_sandbox"):void 0},y=(l,a,i,o)=>{let c=t===l,u=null!==t&&!c;return(0,x.jsxs)("div",{className:"relative",children:[o&&"login"===e&&(0,x.jsx)("span",{"data-testid":`social-btn-${l.replace(/_/g,"-")}-last-used-badge`,className:"absolute -top-2 right-0 z-10 pointer-events-none",style:{padding:"2px 4px",fontSize:"8px",color:"#fff",borderRadius:"4px",background:"var(--semantic-color-emerald-solid-surface-normal-highest, #00C390)"},children:s("last_used")}),(0,x.jsx)("button",{type:"button","data-testid":`social-btn-${l.replace(/_/g,"-")}`,onClick:()=>{null===t&&((0,w.flushSync)(()=>n(l)),(async()=>{let e=!1;try{e=await b[l]?.()===!0}finally{e||r()}})())},disabled:u||c,"aria-disabled":u||c,"aria-busy":c,className:["flex h-12 w-full items-center rounded-full border px-4 text-base font-bold transition-colors lg:text-sm",c?"justify-center border-neutral-200 bg-neutral-200 text-neutral-700 cursor-not-allowed":"gap-3 border-neutral-200 bg-white text-neutral-700 hover:bg-neutral-50 cursor-pointer",u?"opacity-50 cursor-not-allowed":""].join(" "),children:c?(0,x.jsx)("div",{className:"h-5 w-5 rounded-full border-2 border-neutral-300 border-t-neutral-600 animate-spin","data-testid":`social-btn-${l.replace(/_/g,"-")}-spinner`,"aria-hidden":!0}):(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("span",{className:"flex h-8 w-8 items-center justify-center text-neutral-900","aria-hidden":!0,"data-testid":`social-btn-${l.replace(/_/g,"-")}-icon`,children:i}),(0,x.jsx)("span",{className:"flex-1 text-center",children:a}),(0,x.jsx)("span",{className:"h-8 w-8","aria-hidden":!0})]})})]},l)};return(0,x.jsxs)("div",{className:"space-y-3","data-testid":`social-login-buttons-${e}`,"aria-busy":null!==t,children:[p.map(({id:t,Icon:n,name:r})=>y(t,"login"===e?s("log_in_with_provider",{provider:r}):s("sign_up_with_provider",{provider:r}),(0,x.jsx)(n,{width:22,height:22}),d===t)),c&&b.social_sandbox?y("social_sandbox",s("social_sandbox_test"),(0,x.jsx)(_,{width:22,height:22})):null]})}],332735),e.s(["EmailSuggestDropdown",0,function({inputValue:e,onSelect:t,visible:n}){let[r,l]=(0,g.useState)(-1),a=(0,g.useRef)(null),i=s(e);return((0,g.useEffect)(()=>
1{l(-1)},[e]),(0,g.useEffect)(()=>{if(!n)return;let e=e=>{i.length&&("ArrowDown"===e.key?(e.preventDefault(),l(e=>(e+1)%i.length)):"ArrowUp"===e.key?(e.preventDefault(),l(e=>e<=0?i.length-1:e-1)):"Enter"===e.key&&r>=0?(e.preventDefault(),t(i[r]),l(-1)):"Escape"===e.key&&l(-1))};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[n,i,r,t]),n&&i.length)?(0,x.jsx)("ul",{ref:a,role:"listbox","aria-label":"Email suggestions",className:"absolute left-0 right-0 top-full z-50 mt-1 overflow-hidden rounded-xl border border-neutral-200 bg-white shadow-[0_4px_20px_rgba(0,0,0,0.1)]","data-testid":"email-suggest-dropdown",children:i.map((e,n)=>{let l=e.lastIndexOf("@"),a=e.slice(0,l+1),i=e.slice(l+1);return(0,x.jsxs)("li",{role:"option","aria-selected":r===n,className:`flex cursor-pointer items-center px-4 py-2.5 text-sm transition-colors ${r===n?"bg-neutral-100 text-neutral-900":"text-neutral-700 hover:bg-neutral-50"}`,"data-testid":`email-suggest-option-${i}`,onMouseDown:n=>{n.preventDefault(),t(e)},children:[(0,x.jsx)("span",{className:"text-neutral-400",children:a}),(0,x.jsx)("span",{className:"font-medium text-neutral-900",children:i})]},e)})}):null}],226867);var N=e.i(567909),L=e.i(549838);let A="u">typeof Intl&&"Segmenter"in Intl?new Intl.Segmenter(void 0,{granularity:"grapheme"}):null;function $(e){return A?Array.from(A.segment(e),e=>e.segment):Array.from(e)}function z(e,t){let n=0,r=e,l=-1;for(;n<=r;){let e=n+r>>1;t(e)?(l=e,n=e+1):r=e-1}return l}function F(e,t,n){let r=$(e),l=e=>r.slice(0,e).join(""),a=z(r.length,e=>n(l(e)+"…")<=t);return a<0?"…":l(a)+"…"}e.s(["EmailSuggestionRow",0,function({suggestion:e,onAccept:n,testIdPrefix:r,disabled:l=!1,className:a}){let i=(0,v.useTranslations)("auth"),o=(0,g.useRef)(null),s=(0,g.useRef)(null),[c,u]=(0,g.useState)(0),[d,m]=(0,g.useState)(""),f=(0,g.useCallback)(()=>{let e=o.current,t=s.current;if(!e||!t)return;let n=window.getComputedStyle(t),r=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth),l=e.clientWidth-(Number.isFinite(r)?r:0);u(l>0?l:0),m(`${n.fontStyle} ${n.fontWeight} ${n.fontSize} ${n.fontFamily}`)},[]);(0,g.useLayoutEffect)(()=>{if(!e)return;if(f(),"u"<typeof ResizeObserver)return window.addEventListener("resize",f),()=>window.removeEventListener("resize",f);let t=new ResizeObserver(f);return o.current&&t.observe(o.current),document.fonts?.ready.then(f).catch(()=>{}),()=>t.disconnect()},[e,f]);let h=(0,g.useMemo)(()=>{if(!e)return"";let n=(void 0===t&&(t="u"<typeof document?null:document.createElement("canvas").getContext("2d")??null),t);return n&&d&&!(c<=0)?(n.font=d,function(e,t,n){if(!e||!Number.isFinite(t)||t<=0||n(e)<=t)return e;let r=e.lastIndexOf("@");if(r<=0)return F(e,t,n);let l=e.slice(0,r),a=e.slice(r);if(n("…"+a)>t)return F(e,t,n);let i=$(l),o=e=>i.slice(0,e).join(""),s=z(i.length-1,e=>n(o(e)+"…"+a)<=t);return o(Math.max(s,0))+"…"+a}(e,c,e=>n.measureText(e).width)):e},[e,d,c]);return e?(0,x.jsxs)("div",{className:(0,L.cn)("mt-1 flex w-full min-w-0 items-center gap-2 text-xs",a),"data-testid":`${r}-row-email-suggestion`,children:[(0,x.jsx)("span",{className:"shrink-0 whitespace-nowrap text-brand-red","data-testid":`${r}-text-email-suggestion`,children:i("did_you_mean_label")}),(0,x.jsx)("div",{ref:o,className:"min-w-0 flex-1",children:(0,x.jsx)(N.Button,{ref:s,htmlType:"button",type:"outline",size:"sm","data-testid":`${r}-btn-use-suggestion`,state:l?"disabled":"default",className:"max-w-full rounded-full text-sm!","aria-label":e,...{title:e},label:h,onClick:()=>n(e)})})]}):null}],106752)},637016,e=>{"use strict";var t=e.i(261238);function n(e,t){let n=e.trim();if(n.includes("@"))return null;let r=n.split("+").filter(Boolean);if(r.length<2)return null;let l=r[0].replace(/\D/g,"");return(t&&!l.startsWith(t)&&(l=`${t}${l}`),l.length<6)?null:{alias:`+${[l,...r.slice(1)].join("+")}`}}async function r(e){let n=await t.apiClient.post("/v1/identity/phone/alias",{phone_alias:e});return n.data?.data?.test_phone?.trim()??""}async function l(e,t){let l=n(e,t);return l?{aliasPhone:await r(l.alias),alias:l.alias}:null}e.s(["parseInternalPhoneAliasRequest",0,n,"resolveInternalPhoneAlias",0,l])}]);

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.