1import{A as u,ep as g,eq as I,d_ as _,j8 as b,V as w,aP as T,p8 as p,p9 as y,eG as D,eH as E,jd as h,jc as L,p as S,pa as B,pb as U}from"./commonChunk.BS0jzoOr.js";import{H as A,D as N}from"./vendorChunk.LVLHXJtX.js";import"../vendors/vendor-stable.Bob7ohop.js";const j=(o,n)=>{const{withToken:r=!0}=n!=null?n:{},{t}=u();g(I.LOBBY_SWITCH_DOMAIN,{title:()=>t("lobby.common.tips.title"),type:"info",showCancelButton:!0,message:()=>t("lobby.error.domainIsBaned"),confirmButtonText:()=>t("lobby.error.switchdomain"),cancelButtonText:()=>t("lobby.error.keepdomain"),className:"performance-dialog-switch-domain",onConfirm:()=>{const{isH5Pwa:s}=_(),{tokenInfos:i}=b(),{uuid:c}=w(),d=A(location.href),m=l=>{const e={...d,_ti:void 0,_et:void 0,[U]:void 0,[B]:void 0};return r&&i&&(e._ti=window.btoa(JSON.stringify(i)),e._et=window.btoa(String(Date.now())),Object.assign(e,h(c)),Object.assign(e,L(S().getFingerId))),N(l,e)},f=T.isActivated?`${new URL(o).origin}${location.pathname}${location.hash||""}`:o,a=m(f);s?p?(D(E.EVENT_UPDATE_LOBBY_ALIVE_DOMAIN).send({domain:o},{merge:!1,fireAndForget:!0}),setTimeout(()=>{location.href=a},100)):(y(a),setTimeout(()=>{location.reload()},100)):location.href=a}})};export{j as createSwitchDomain};
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.