1const __vite__fileDeps=["assets/theme-0/0_EntryLoginRegisterChunk.BocAHywh.css","assets/theme-0/0_RechargeCommonChunk.cD1Z7U3x.css","assets/theme-0/1_EmbeddedGameChunk.Uh0kqRXD.css","assets/theme-0/0_WithdrawChunk.Bistmez9.css","assets/vendors/vendor-swiper.cCn-eWse.css","assets/theme-0/1_AgentCenterChunk.B9OajlP_.css","assets/theme-0/1_MineChunk.9OMKtFic.css","assets/theme-0/1_ClubRebateChunk.z3YfvvYT.css","assets/theme-0/1_PromoteChunk.BvzSHz24.css","assets/theme-0/1_PromotionChunk.gzTUFYql.css","assets/theme-0/1_SearchGameChunk.CCIBIOOL.css","assets/theme-0/2_EventDialogsChunk.9Ywe6hf0.css","assets/theme-0/2_EventOthersChunk.DfC1yo0T.css","assets/theme-0/toast.wT637YGN.css","assets/theme-0/index.BdyTscoh.css","assets/theme-0/1_SearchSubGameChunk.B8M7_WPi.css","assets/theme-0/1_SubGameChunk.C1CF7Fus.css","assets/theme-0/style.g2ytS34E.css","assets/theme-0/2_RechargeDialogsChunk.By5ql0jI.css","assets/theme-0/ResultIndex.D7WqbMwO.css","assets/theme-0/KYCIndex.DDoFEUcy.css","assets/theme-0/LoginRegisterIndex.D-RpPyym.css","assets/theme-0/LoginRegisterUpgradeGuideIndex.BHH8ujW0.css","assets/theme-0/0_RechargeFormChunk.3t6Jzi_E.css","assets/theme-0/1_RechargeDialogsChunk.HfwpOwlj.css","assets/theme-0/2_ReportChunk.aQNYv0aT.css","assets/theme-0/EventSubPageChunk.Dul9zjwY.css","assets/theme-0/NqDebugPanel.CRS1yMop.css","assets/theme-0/2_SportChunk.omlnw0OO.css","assets/theme-0/RowsIndex.BWHVm0_I.css","assets/theme-0/BindNoWallet.DTQcXlMZ.css","assets/theme-0/LogoImgIndex.C9cVhCxY.css","assets/theme-0/PngTransparentIndex.16Xi3afm.css","assets/theme-0/Index.ug6kJXis.css","assets/theme-0/festival-ui-group.rrai3CrY.css","assets/theme-0/WinnerContainerIndex.D8lO_eGh.css","assets/theme-0/Common.BD3G5jj1.css","assets/theme-0/useMarketing.CMc463iX.css","assets/theme-0/MarketingIndex.CctX6pAm.css","assets/theme-0/SpecialControlIndex.R7LPm1em.css","assets/theme-0/MarqueeImgList.DEhySW4i.css","assets/theme-0/PopoverContentIndex.DpIITYjS.css","assets/theme-0/DebuggerSwitchButtonIndex.C9QM3Iwk.css","assets/theme-0/AsyncFooter.DYiHT-rF.css","assets/theme-0/WinnerIndex.MmW03yyu.css","assets/theme-0/HomeVideoIndex.C328eaaI.css","assets/vendors/vendor-@cg/live-player.BlrIY6nt.css","assets/theme-0/HomeLiveStreamIndex.BHGkO_If.css","assets/theme-0/RecommendMatchsIndex.BRZEc5fL.css","assets/theme-0/0_RechargeLegacyChunk.B2OK18oo.css","assets/theme-0/0_RechargeSimpleDialogChunk.v8vi_Ya2.css","assets/theme-0/MoreMenuIndex.DpdaEAFO.css","assets/theme-0/CouponIndex.CXwebOBz.css","assets/theme-0/RepaymentIndex.CGqYKTpC.css","assets/theme-0/LoanIndex.CyIhXwBa.css","assets/theme-0/PromoteGameIndex.D5S2H0tJ.css","assets/theme-0/VersionUpdateIndex.PU8_BwOG.css","assets/theme-0/StakeInputIndex.D-tbz6ri.css","assets/theme-0/RecordIndex.DoqCEN1a.css","assets/theme-0/DetailIndex.CVvLfGR_.css","assets/theme-0/FilterIndex.DwUdrRGJ.css","assets/theme-0/ResultIndex.CPbf_FyS.css","assets/theme-0/RuleIndex.DhngqG1a.css","assets/theme-0/HomeIndex.CgpcAXZj.css","assets/theme-0/DetailIndex.BfNo_HT-.css","assets/theme-0/2_ItemIndexChunk.B_EAkt3O.css","assets/theme-0/ReceiveRecordsIndex.CLDE8fEd.css","assets/theme-0/ReceiveFormIndex.DRy7OjCa.css","assets/theme-0/BettingRecordsIndex.Dt0CmIJB.css","assets/theme-0/IntegralsIndex.hTHukKns.css","assets/theme-0/InvestNowIndex.hxX8TmKE.css","assets/theme-0/2_NoticePageChunk.DqzUyn3O.css","assets/theme-0/ServiceIframeIndex.UbtGuONf.css","assets/theme-0/FormItemIndex.CJWpEU4G.css","assets/theme-0/SelectOptionIndex.BuNpd0Yy.css","assets/theme-0/VipBadgeIndex.CV8QQdky.css","assets/theme-0/ComplianceFormIndex.CoK7O7wK.css","assets/theme-0/SettingTipsIndex.GStH2z8V.css","assets/theme-0/SettingIndex.Ch-RJAsH.css","assets/theme-0/UpdateAvatorIndex.DRQO7bU8.css","assets/theme-0/Eye.ClqK9lko.css","assets/theme-0/Withdrawpass.BMde4jlH.css","assets/theme-0/Switch.DzlvFVV1.css","assets/theme-0/Verify.BvPThANK.css","assets/theme-0/UpdateRealNameIndex.C1p67FV7.css","assets/theme-0/2_WithdrawDialogsChunk.D4CuVCoz.css","assets/theme-0/2_WithdrawSubChunk.SzVAvfIe.css","assets/theme-0/AccountDetailIndex.DucwwUnF.css","assets/theme-0/BettingDetailIndex.B7UEL2sL.css","assets/theme-0/PersonalDailyReportIndex.B77DkqVo.css","assets/theme-0/1_CreditManage
1Chunk.eU-t4iM2.css","assets/theme-0/GeneralPromotIndex.9iuqF7vT.css","assets/theme-0/ShareholdingIndex.BF89h-zf.css","assets/theme-0/TransferRecordIndex.TMjylpds.css","assets/theme-0/ClubAgentCalculatorIndex.Rt6g8LgM.css","assets/theme-0/FaceIndex.CAKFSKD-.css","assets/theme-0/IDSelfieIndex.YKvCLQ7b.css","assets/theme-0/SecurityIndex.C7hZkiVp.css","assets/theme-0/NormalHeader.CsU3GjN9.css","assets/theme-0/DeviceInfoIndex.B3wlfMbv.css","assets/theme-0/3_ClaimChunk.BgSPvKHH.css","assets/theme-0/3_ClaimSubChunk.C8u9o0hU.css","assets/theme-0/CookiePolicyIndex.DJw6kMLk.css","assets/theme-0/ForbiddenSelfIndex.DNa4Leu9.css","assets/theme-0/ExternalEmbedded.hiLioIrk.css","assets/theme-0/ExplanationIndex.DSdo1_1z.css","assets/theme-0/RemarkIndex.C4qDTKb_.css","assets/theme-0/ApplyIndex.CbWPQ2t8.css","assets/theme-0/WithdrawTaskCancelAmountTextIndex.D7XTow-9.css","assets/theme-0/WithdrawTaskDetailIndex.D_G0IWi4.css","assets/theme-0/OrderPopoverIndex.C1p0RWCV.css","assets/theme-0/WinningNumbersIndex.DH_I6vqg.css","assets/theme-0/HistoryIndex.AuAOzT-D.css","assets/theme-0/HomeIndex.BwmIhPeU.css","assets/theme-0/RecordIndex.DN-vi2XM.css","assets/theme-0/PlazzaGifAnimationIndex.DqNbio5I.css","assets/theme-0/PublicityPlazzaIndex.DPl7jWFp.css","assets/theme-0/PublisherIndex.B0QmPyVp.css","assets/theme-0/PlazzaRichTextEditorIndex.BP8AamDT.css","assets/theme-0/PlazzaPostIndex.C40H0rg2.css","assets/theme-0/PlazzaSearchPageIndex.Cz2IW2zg.css","assets/theme-0/live-player-container.CSyZGelD.css","assets/theme-0/LivePlayerContainer.BpeQoucP.css","assets/theme-0/index.D2W10Gjo.css","assets/theme-0/index.DZ5ASk04.css","assets/theme-0/index.C5FF-sWW.css","assets/theme-0/index.ChMdLRz4.css","assets/theme-0/index.CCnAhQWv.css","assets/theme-0/AreaSelector.wrVeJEGP.css","assets/theme-0/AddressIndex.C0or0I0v.css","assets/theme-0/ActiveRecordsIndex.CHnso6PS.css","assets/theme-0/SelectCustomName.S-u8pT1C.css","assets/theme-0/HomeIndex.C81dsfJo.css","assets/theme-0/RecordsIndex.MsmBVCS2.css","assets/theme-0/2_DownloadDialogsChunk.BxCK5cUf.css","assets/theme-0/DownloadIndex.ClVz7gfD.css","assets/theme-0/LoadingGameIndex.B4sOrklC.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); 2var Q0=Object.defineProperty;var Hy=e=>{throw TypeError(e)};var X0=(e,t,n)=>t in e?Q0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var x=(e,t,n)=>X0(e,typeof t!="symbol"?t+"":t,n),Nf=(e,t,n)=>t.has(e)||Hy("Cannot "+n);var Tr=(e,t,n)=>(Nf(e,t,"read from private field"),n?n.call(e):t.get(e)),si=(e,t,n)=>t.has(e)?Hy("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),xy=(e,t,n,o)=>(Nf(e,t,"write to private field"),o?o.call(e,n):t.set(e,n),n),gd=(e,t,n)=>(Nf(e,t,"access private method"),n);import{R as Ru,V as Gs,o as k_,E as Ra,_ as V,W as B_,J as dl,X as Z0,Y as Tc,Z as ur,a0 as J0,a1 as Kc,a2 as dw,a3 as mw,a4 as Zp,a5 as e1,a6 as t1,a7 as n1,a8 as o1,a9 as a1,aa as r1,ab as s1,ac as i1,ad as c1,ae as mu,I as Zs,t as Ee,s as l1,m as H_,af as Yi,f as sa,ag as u1,Q as gw,$ as kf,ah as P,ai as d1,aj as m1,ak as g1,al as f1,am as fw,q as p1,an as Bf,ao as h1,g as Hi,ap as _1,v as Hf,L as b1,aq as y1,h as Qc,b as pw,e as hw,ar as v1,a as _w,K as S1,c as C1,D as Hm}from"./vendorChunk.96TTY5fG.js";import{k as Pe,S as qn,Y as bw,u as Bn,H as Fs,A as Nt,aT as w1,aU as I1,P as $s,ar as yw,C as Lo,l as ke,r as O,c as C,a0 as Fn,ad as x_,U as A1,L as L1,aV as T1,s as vt,D as Xc,E as Ye,w as fe,ah as im,ae as Zc,aW as vw,V as rs,_ as Ey,aX as R1,av as O1,h as Gt,as as E_,aY as P1,au as Sw,K as Ao,a6 as St,B as gu,aZ as D1,a_ as Dg,a$ as M1,b0 as Cw,aA as N1,a8 as ss,aI as yc,g as gn,n as yt,az as ww,b1 as k1,Z as Iw,aq as B1,b2 as xm,b3 as Aw,b4 as H1,q as x1,b5 as E1,N as qu,ak as U1,al as G1,at as Lw,d as le,y as He,J as ua,p as mt,a7 as kn,F as gt,o as fa,aD as fd,e as w,m as Te,b as qa,t as Kn,a as za,aE as Tw,b6 as F1,ab as W1,b7 as V1,b8 as Uy,Q as gs,j as ao,a2 as $1,a3 as Y1,b9 as Rw,ba as Ow,aO as q1,R as z1,f as vr,v as is,aR as U_,bb as Pw,bc as j1,bd as K1,be as Q1,aP as Em,a1 as X1,aa as Z1,bf as J1,aK as Dw,bg as Gy,i as eP,T as G_,bh as tP,ax as Mw,a5 as F_,ay as nP,O as oP,aM as Fy,bi as aP,b
2j as rP,bk as Nw,bl as kw,bm as sP,aJ as iP}from"../vendors/vendor-stable.CbjAnMzp.js";const nt={info:(...e)=>{console.log(...e)},error:(...e)=>{console.error(...e)},warn:(...e)=>{console.warn(...e)},trace:(...e)=>{console.trace(...e)}},Jp={reset:"color: inherit;",black:"color: black;",red:"color: red;",green:"color: green;",yellow:"color: yellow;",blue:"color: blue;",magenta:"color: magenta;",cyan:"color: cyan;",white:"color: white;"},cP=(e,t)=>{const n=Jp[t]||Jp.reset;return{text:`%c${e}`,style:n}},Za=Object.keys(Jp).filter(e=>e!=="reset").reduce((e,t)=>(e[t]=n=>{const{text:o,style:a}=cP(n,t);return[o,a]},e),{}),lP=()=>{const e=window;if(typeof e.Request!="function")return;function t(){try{if(typeof e.ReadableStream!="function")return!1;let a=!1;return new e.Request("/",{method:"POST",body:new e.ReadableStream,get duplex(){return a=!0,"half"}}),a}catch(a){return!1}}if(t())return;const n=e.Request;function o(a,r={}){return r.body&&e.ReadableStream&&r.body instanceof e.ReadableStream&&(console.warn("[Compatibility] ReadableStream body detected but not supported. Dropping body to prevent crash."),r.body=null,"duplex"in r&&delete r.duplex),new n(a,r)}o.prototype=n.prototype,e.Request=o};lP();try{const e=o=>o==="unload"?"pagehide":o,t=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(o,a,r){return t.call(this,e(o),a,r)};const n=EventTarget.prototype.removeEventListener;EventTarget.prototype.removeEventListener=function(o,a,r){return n.call(this,e(o),a,r)}}catch(e){}function To(e=window.location.href){return Ru(new URL(e).search)}function Wy(e){try{const t=c=>c?Array.isArray(c)?c:[c]:[],n=c=>{let l=c,u="";const d=m=>{try{return JSON.parse(m),!0}catch(g){return!1}};for(;l!==u;)try{if(u=l,l=decodeURIComponent(l),d(l))throw new Error}catch(m){break}return l},o=t(e==null?void 0:e.atobKeys),a=t(e==null?void 0:e.parseKeys),r=a.toString()==="*",s=To(e==null?void 0:e.url),i={};for(const[c,l]of Object.entries(s)){let u=l?n(l):"";if(u)try{o.includes(c)&&(u=window.atob(u)),(r||a.includes(c))&&(u=JSON.parse(u))}catch(d){}i[c]=u}return i}catch(t){return{}}}const Ot=To(),uP=Date.now();var aw;const dP=((aw=JSON.parse(localStorage.getItem("web__lobby__persisted__device")||"{}"))==null?void 0:aw.uuid)||"";var rw;const mP=((rw=JSON.parse(localStorage.getItem("web__lobby__persisted__token")||"{}"))==null?void 0:rw.expiredUrlToken)||"",W_=window.top!==window;var sw;const gP=(sw=window.LOBBY_SITE_CONFIG)==null?void 0:sw.CF_MODE,fP=location.href.includes("/home/download"),pP={name:"main-db"},hP=[],_P=[],vn=JSON.parse(JSON.stringify(self.LOBBY_SITE_CONFIG||null)),Bw={WEB_SPACE:["WebSpace",[["WebSpace","FasterBrowser"]]],"115_BROWSER":"115","2345_BROWSER":"2345","360_BROWSER":"360",ALIPAY:"Alipay",ANDROID:"Android Browser",BAIDU:"Baidu Browser",CHROME:"Chrome",CHROME_HEADLESS:"Chrome Headless",CHROME_MOBILE:"Mobile Chrome",CHROME_WEBVIEW:"Chrome WebView",CHROMIUM:"Chromium",EDGE:"Edge",FACEBOOK:"Facebook",FIREFOX:"Firefox",FIREFOX_MOBILE:"Mobile Firefox",GO:"GoBrowser",HONOR:"Honor",HUAWEI:"Huawei Browser",IE:"IE",INSTAGRAM:"Instagram",LENOVO:"Smart Lenovo Browser",LINE:"Line",MIUI:"MIUI Browser",MOZILLA:"Mozilla",NOKIA:"Nokia Browser",OPERA:"Opera",OPERA_MINI:"Opera Mini",OPERA_MOBI:"Opera Mobi",OPERA_TABLET:"Opera Tablet",OPERA_TOUCH:"Opera Touch",PHOENIX:"Phoenix",QQ:"QQBrowser",QQ_LITE:"QQBrowserLite",QUARK:"Quark",SAFARI:"Safari",SAFARI_MOBILE:"Mobile Safari",SAILFISH:"Sailfish Browser",SAMSUNG:"Samsung Internet",SOGOU_EXPLORER:"Sogou Explorer",SOGOU_MOBILE:"Sogou Mobile",SWIFTFOX:"Swiftfox",TESLA:"Tesla",TIKTOK:["TikTok",["aweme","Bytedance","BytedanceWebview","ByteLocale"]],TWITTER:"Twitter",UC:"UCBrowser",VIVO:"Vivo Browser",WECHAT:"WeChat",WEIBO:"Weibo",DUCKDUCKGO:"DuckDuckGo"},Hw={DESKTOP:"desktop",MOBILE:"mobile",TABLET:"tablet"},xw={APPLE:"Apple",ZTE:"ZTE",GOOGLE:"Google",HUAWEI:"Huawei",HTC:"HTC",LENOVO:"Lenovo",MEIZU:"Meizu",LG:"LG",MOTOROLA:"Motorola",ACER:"Acer",ADVAN:"Advan",ALCATEL:"Alcatel",AMAZON:"Amazon",ARCHOS:"Archos",ASUS:"ASUS",ATT:"AT&T",BENQ:"BenQ",BLACKBERRY:"BlackBerry",CAT:"Cat",DELL:"Dell",SAMSUNG:"Samsung",ENERGIZER:"Energizer",ESSENTIAL:"Essential",FACEBOOK:"Facebook",FAIRPHONE:"Fairphone",GEEKSPHONE:"GeeksPhone",GENERIC:"Generic",HMD:"HMD",HP:"HP",IMO:"IMO",INFINIX:"Infinix",ITEL:"itel",JOLLA:"Jolla",KOBO:"Kobo",MICROMAX:"Micromax",MICROSOFT:"Microsoft",NEXIAN:"Nexian",NINTENDO:"Nintendo",NOKIA:"Nokia",NOTHING:"Nothing",NVIDIA:"Nvidia",ONEPLUS:"OnePlus",OPPO:"OPPO",OUYA:"Ouya",PALM:"Palm",PANASONIC:"Panasonic",PEBBLE:"Pebble",PICO:"Pico",POLYTRON:"Polytron",REALME:"Realme",RIM:"RIM",ROKU:"Roku",SHARP:"Sharp",SIEMENS:"Siemens",SMARTFREN:"Smartfren",SONY
2:"Sony",SPRINT:"Sprint",TCL:"TCL",TECHNISAT:"TechniSAT",TECNO:"Tecno",TESLA:"Tesla",ULEFONE:"Ulefone",VIVO:"Vivo",VODAFONE:"Vodafone",XBOX:"Xbox",XIAOMI:"Xiaomi",ZEBRA:"Zebra"},bP={ARKWEB:"ArkWeb",BLINK:"Blink",EDGEHTML:"EdgeHTML",FLOW:"Flow",GECKO:"Gecko",ICAB:"iCab",KHTML:"KHTML",TRIDENT:"Trident",WEBKIT:"WebKit"},Nr={ANDROID:"Android",CENTOS:"CentOS",CHROME_OS:"Chrome OS",HARMONYOS:["HarmonyOS",["ArkWeb","OpenHarmony","HarmonyOS"]],IOS:"iOS",LINUX:"Linux",MACOS:"macOS",UBUNTU:"Ubuntu",WINDOWS:"Windows",WINDOWS_MOBILE:"Windows Mobile",WINDOWS_PHONE:"Windows Phone"},xi={GREATER:1,SMALLER:-1,EQUAL:0};function Vy(e){return e.toString().split(".").map(Number)}function V_(e,t){if(!e||!t)throw new Error("Version Compare Failed!");const n=Vy(e),o=Vy(t),a=Math.max(n.length,o.length);for(let r=0;r<a;r+=1){const s=n[r]||0,i=o[r]||0;if(s!==i)return s>i?xi.GREATER:xi.SMALLER}return xi.EQUAL}const yP=[[/(WebSpace)\/([\w.]+) FasterBrowser/i],[Gs.BROWSER.NAME,Gs.BROWSER.VERSION,[Gs.BROWSER.TYPE,""]]],vP=[[/X11; (Windows)/],[Gs.OS.NAME]],$_=e=>{const t=Object.create(Object.getPrototypeOf(e));return Pe(t,e)},La=(e,t)=>{if(!e)return!1;const n=(a,r)=>a.toString().toLowerCase().indexOf(r.toString().toLowerCase())!==-1,o=a=>Array.isArray(a)?a:[a];for(const a of o(t))if(o(a).every(s=>n(e,s)))return!0;return!1},SP=e=>t=>{if(t)throw new Error(`Ua-Parser ${e}`)},Y_=(e,t,n)=>{const o=SP("Input Value InValid");o(typeof n!="string"&&!Array.isArray(n));const a=e(n.toString());if(a||!Array.isArray(n)||!n[1])return a;const[r,s]=n,i=Array.isArray(s)?s:[s];return o(typeof r!="string"||i.some(c=>typeof c!="string"&&!Array.isArray(c))),t(i)},Ew=(e,t)=>{const{browser:n}=e,o=t||[{brand:n.name,version:n.major}],a=o.some(l=>La(l.brand,"webview"))||e.uaHas("webview"),r=o.some(l=>La(l.brand,"chromium")),s=n.is.bind($_(n)),i=Pe(n,{format:"",brands:o,isWebview:a,isChromium:r,compareVersions:l=>V_(l,i.version),has:l=>La(i.name,l),is:l=>Y_(s,La.bind(null,e.ua),Bw[l.toString()]||l)});let{name:c}=i;if(typeof c!="string"&&(c=""),c){/^\d+$/.test(c)&&(c=`${c} Browser`);const{version:l}=i;i.format=l?`${c} v${l}`:c}return i},CP=e=>{var o;const{clientHints:t}=e;let n;return t&&(n=(o=t.brands)!=null&&o.length?t.brands:void 0),Ew(e,n)},wP=()=>window.matchMedia("(any-hover: hover)").matches,IP=()=>window.matchMedia("(any-pointer: fine)").matches,AP=()=>({anyHover:wP(),anyPointer:IP()}),LP=()=>{const{width:e}=window.screen;return{likeMobile:e<768,likeTablet:e>=768&&e<=1024,likeDesktop:e>1024}},TP=()=>{const e="ontouchstart"in window,t=navigator.maxTouchPoints||1;return{touchAvailable:e,maxTouchPoints:t}},Uw=e=>{const{device:t}=e,n=t.type===Gs.DEVICE.MOBILE,o=n?!1:t.type===Gs.DEVICE.TABLET,a=n&&t.is("iphone"),r=!n&&!a&&(t.is("ipad")||t.is("macintosh"))&&!e.os.is(Nr.MACOS),s=t.is.bind($_(t));return Pe(t,{isIphone:a,isIpad:r,isMobile:n,isTablet:o,isDesktop:!n&&!a&&!r,has:i=>{const{vendor:c,model:l}=e.device;return La(`${c||""}${l||""}`,i)},is:i=>Y_(s,La.bind(null,e.ua),Hw[i.toString()]||xw[i.toString()]||i)})},RP=(e,t)=>
2{const n=Uw(e),{device:o}=t,{gpu:{success:a,likeApple:r,likeDesktop:s}}=e,{anyHover:i,anyPointer:c}=AP(),{likeMobile:l,likeTablet:u}=LP(),d=a?r&&l:n.isIphone,{touchAvailable:m,maxTouchPoints:g}=TP(),f=a?r&&u&&m&&g>1:n.isIpad,_=d||(a?!s&&l&&!i&&!c:n.isMobile),h=f||!_&&u&&!s,p=!_&&!h,y=o.isIphone!==d||o.isIpad!==f||o.isMobile!==_||o.isTablet!==h||o.isDesktop!==p;return Pe(n,{isIphone:d,isIpad:f,isMobile:_,isTablet:h,isDesktop:p,isFaked:y})},Gw=e=>{let t=e.os.version||"";e.os.version&&/^[\d.]+$/.test(e.os.version)&&(t=`${e.os.name} ${e.os.version}`);const n=e.os.is.bind($_(e.os));return Pe(e.os,{versionFormat:t,isIOS:n(Nr.IOS),isAndroid:n(Nr.ANDROID),isLinux:n(Nr.LINUX),isWindows:n(Nr.WINDOWS),isMacOS:n(Nr.MACOS),isWinPhone:n(Nr.WINDOWS_PHONE),compareVersions:o=>V_(o,e.os.version),has:o=>La(e.os.name,o),is:o=>Y_(n,La.bind(null,e.ua),Nr[o.toString()]||o)})},OP=(e,t)=>{const n=Gw(e),{os:o}=t,{gpu:a}=e,r=a.success?a.likeApple:n.isIOS,s=!r&&n.isAndroid&&(a.success?!a.likeDesktop:!0),i=o.isIOS!==r||o.isAndroid!==s;return Pe(n,{isIOS:r,isAndroid:s,isFaked:i})},PP=async()=>{try{return navigator.userAgentData.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"])}catch(e){return null}},$y={MOBILE:["mali","Adreno","Apple","Tegra","RDNA","PowerVR ","Immortalis"],PC:["Radeon","SwiftShader","GTX","RTX","Intel","Graphics"]},DP=()=>{try{const e=document.createElement("canvas"),t=e.getContext("webgl")||e.getContext("experimental-webgl");if(t){const n=t.getExtension("WEBGL_debug_renderer_info");return t.getParameter(n.UNMASKED_RENDERER_WEBGL)}}catch(e){return""}},MP=()=>{const e={success:!1,info:"",likeApple:!1,likeDesktop:!1,likeMobile:!1},t=DP();if(!t)return e;e.info=t;const n=La(t,$y.PC),o=La(t,$y.MOBILE);return n===o||Object.assign(e,{success:!0,likeApple:La(t,"apple"),likeMobile:o,likeDesktop:n}),e},Ba={worker:null,onWorkDone:null},Fw=(e,t={})=>Pe(e,{uaHas:o=>La(e.ua,o)},t),Yy=e=>{const t=new Gs(e,{browser:yP,os:vP}),n=Fw(t.getResult());return{...n,device:Uw(n),browser:Ew(n),os:Gw(n)}},NP=async(e=!0)=>{try{const t=await PP();if(!t&&!e)return null;const n=await Gs().withFeatureCheck().withClientHints(),o=Fw(n,{clientHints:t,gpu:MP()}),a=RP(o,Wo),r=CP(o),s=OP(o,Wo);return await new Promise(i=>setTimeout(i,1e4)),Pe(o,{device:a,browser:r,os:s,isFakedUA:a.isFaked||s.isFaked})}catch(t){return null}},qy=async(e=!0)=>{try{return Ba.worker&&await Ba.worker,Wo.withFeatureCheck||(Wo.withFeatureCheck=await NP(e)),Wo.withFeatureCheck}catch(t){return console.error("UA: Failed With Client Hints!"),e?Wo:null}};let Wo,zy=!1;const eh=e=>{if(zy&&!e)return;zy=!0,Wo=Yy(),window.uaParserResult=Pe(Wo,{create:n=>Yy(n),withFeatureCheck:null,getWithFeatureCheck:qy,constants:{BROWSER:Bw,DEVICE:Hw,VENDOR:xw,OS:Nr,ENGINE:bP,COMPARE_VERSIONS_RESULT:xi}}),(async()=>{var n;try{const o=qy(!1);Ba.worker=new Promise(i=>Ba.onWorkDone=i);const a=await o;
2if(!a)return;const{os:r,device:s}=a;r.version&&Pe(Wo,{os:{version:r.version,versionFormat:r.versionFormat}}),s.vendor&&s.model&&Pe(Wo,{device:{model:s.model,vendor:s.vendor}})}catch(o){console.error("UA: Failed UAParser!")}finally{(n=Ba==null?void 0:Ba.onWorkDone)==null||n.call(Ba),Ba.worker=null,Ba.onWorkDone=null}})()},kP=()=>(eh(),Wo),BP=e=>{const t=()=>{eh(),e(Wo)},n=qn(()=>{eh(!0),e(Wo)},500);t(),bw(window==null?void 0:window.addEventListener)&&(window.addEventListener("resize",n,{passive:!0}),window.addEventListener("orientationchange",n,{passive:!0}))};function Ww(e,...t){for(const n of t)for(const o of Object.getOwnPropertyNames(n)){const a=Object.getOwnPropertyDescriptor(n,o);a&&Object.defineProperty(e,o,a)}return e}const HP=e=>{const t=Object.create(null);for(const n of Object.getOwnPropertyNames(e)){const o=Object.getOwnPropertyDescriptor(e,n);if(!o||typeof o.get!="function")break;const a=o.get;Object.defineProperty(e,n,{get(){return n in t||(t[n]=a.apply(this)),t[n]}})}return e},xP=(e,t)=>{const{browser:n,uaHas:o,os:a}=e,{BROWSER:r}=t,s=HP({get isWebSpace(){return n.is(r.WEB_SPACE)},get isEdge(){return n.is(r.EDGE)},get isChrome(){return n.is(r.CHROME)||n.is(r.CHROME_MOBILE)},get isSafari(){return n.is(r.SAFARI)||n.is(r.SAFARI_MOBILE)},get isOpera(){return n.is(r.OPERA)||n.is(r.OPERA_MOBI)||n.is(r.OPERA_TOUCH)||n.is(r.OPERA_TABLET)||n.is(r.OPERA_MINI)},get isFirefox(){return n.is(r.FIREFOX)||n.is(r.FIREFOX_MOBILE)},get isIE(){return n.is(r.IE)},get isDuckDuckGo(){return n.is(r.DUCKDUCKGO)},get isHola(){return o("hibrowser")},get isQuark(){return n.is(r.QUARK)},get isUC(){return n.is(r.UC)},get isQQ(){return n.is(r.QQ)||n.is(r.QQ_LITE)},get is115(){return n.is(r["115_BROWSER"])},get is2345(){return n.is(r["2345_BROWSER"])},get isSamsung(){return n.is(r.SAMSUNG)},get isHuawei(){return n.is(r.HUAWEI)},get isTikTok(){return n.is(r.TIKTOK)},get isInstagram(){return n.is(r.INSTAGRAM)},get isFacebook(){return n.is(r.FACEBOOK)},get isTwitter(){return n.is(r.TWITTER)},get isKwai(){return o("kwai")},get isInThirdAppBrowser(){return s.isTikTok||s.isInstagram||s.isFacebook||s.isTwitter||s.isKwai},get isInAppBrowser(){return n.isWebview||s.isInThirdAppBrowser},get isAndroidInAppBrowser(){return s.isInAppBrowser&&a.isAndroid},get isIOSInAppBrowser(){return s.isInAppBrowser&&a.isIOS}});return Ww(e.browser,s)},EP=(e,t)=>{const{device:n,os:o}=e,{VENDOR:a}=t,r={get isHuawei(){return n.is(a.HUAWEI)},get isGoogle(){return n.is(a.GOOGLE)},get isSamsung(){return n.is(a.SAMSUNG)},get isApple(){return n.is(a.APPLE)},get isAndroidMobile(){return o.isAndroid&&n.isMobile},get isAndroidTablet(){return o.isAndroid&&n.isTablet}};return Ww(e.device,r)},UP=(e,t)=>{const{os:n}=e,{OS:o}=t,a={get isHarmonyOS(){return n.is(o.HARMONYOS)}};return Pe(e.os,a)},Vw=(e,t)=>Pe(e,{os:UP(e,t),device:EP(e,t),browser:xP(e,t)}),wse=e=>Vw(e?Hc.create(e):Hc,Hc.constants),ft=()=>$w,dc=e=>e||"unknown";let Hc,$w;BP(()=>{Hc=kP(),$w=Vw(Hc,Hc.constants)});var GP=(e=>(e[e.NORMAL=1]="NORMAL",e[e.CRYPTO=2]="CRYPTO",e))(GP||{}),th=(e=>(e[e.DEFAULT=1]="DEFAULT",e))(th||{}),Yw=(e=>(e[e.Password=0]="Password",e[e.Captcha=1]="Captcha",e[e.PasswordCaptcha=2]="PasswordCaptcha",e))(Yw||{}),qw=(e=>(e[e.Default=0]="Default",e[e.SmartMatching=1]="SmartMatching",e))(qw||{}),zw=(e=>(e[e.Normal=1]="Normal",e[e.EuropeanAmerican=2]="EuropeanAmerican",e[e.Stake=4]="Stake",e[e.Entertainment=28]="Entertainment",e[e.Sports=29]="Sports",e[e.USDT=61]="USDT",e))(zw||{}),jw=(e=>(e[e.Entertainment=0]="Entertainment",e[e.Club=1]="Club",e))(jw||{}),FP=(e=>(e.Dev="dev",e.Test="test",e.Try="try",e.Pressure="pressure",e.AsiaPacific="asiaPacific",e.NorthAmerica="northAmerica",e))(FP||{});const Mg={defaultExpires:5*60,delayRemove:3600*24*7,defaultDependencies:["currency","language","platformType"]},Li={baseURL:"/hall",timeout:60*1e3,timeoutByRetry:10*1e3,maxRetryCount:10},ql={merge:!0,addCommonParams:e=>!/\.json(\?(\S)*)?$/.test(e.url||""),maxRetryCount:Li.maxRetryCount,cache:{time:Mg.defaultExpires,useCache:!1,setCache:"auto",useCacheOnError:e=>!!(e&&e!=="dataError"),expireOnloaded:!0},oss:{enable:!1},crypto:{enable:!0,deduplicateParams:!0,contentType:"text"},token:{type:"tryLogined"},waiting:{ensureTokenAndUid:"auto",ensureCurrency:"auto"},error:{action:"normal",report:!0,checkResCode:!0},requestControl:{allowDuringLogout:!1}},$e={SUCCESSCODE:0,SUCCESS:1,UPAY_SUCCESS_CODE:"C2",TOKEN_EXPIRED:-1,SERVER_MAINTAIN:-1,RESTRICTED_ACCESS:9110,FORCE_GEETEST:1119,PHONE_CODE_ERROR:1101,LOGIN_ERROR:1011,TOW_VERYFI:1012,THIRD_PARTY_UN_REGIST
2ER:100,GEETEST_ILLEGAL_REQUEST:1130,EMAIL_SECURITY_CONFIG_EXPIRED:1044,PHONE_SECURITY_CONFIG_EXPIRED:1248,PHONE_COUNTRY_CODE_CONFIG_EXPIRED:1330,VERIFY_USERNAME_PHONE_ERROR:1216,VERIFY_USERNAME_EMAIL_ERROR:1105,THIRD_PARTY_LOGIN_UNREGISTER_ERROR:1361,CURRENT_THIRD_PARTY_BINDED:1232,THIRD_PARTY_LOGIN_UNBIND_ERROR:1362,DISABLE_BIND_PHONE_REGISTER:1354,REGISTER_USERNAME_EXISTED_ERROR:1013,REGISTER_USERNAME_PASSWORD_SAME_ERR:4040,REGISTER_PASSWORD_FORMAT_ERR:4024,CONFIG_CHANGE_PASSWORD_FORMAT_ERR:4042,REGISTER_USERNAME_FORMAT_ERR:1323,GEE_TOKEN_ERROR:1135,REGISTER_CPF_REALNAME_ERR:1349,REGISTER_FAILED_ERROR:2005,EMAIL_CAPTCHA_EMPTY:1326,PHONE_CAPTCHA_EMPTY:1325,PHONE_CAPTCHA_EXPIRED:1333,EMAIL_CAPTCHA_EXPIRED:1332,SECURITY_CONFIG_EXPIRED:1044,SECURITY_PASSWORD_EQUAL:1002,HCAPTCHA:1133,SWIPER_PUZZLE_GEETEST:1124,GRAPHIC_CLICK_GEETEST:1125,NINE_SQUARE_GEETEST:1126,SMS_CODE_GEETEST:1127,TURNSTILE:1134,PHONE_ERROR:1216,ACCOUNT_FREEZE:1025,CONFIG_CHANGE_ERR:1128,CONFIG_CHANGE_ERR_1:1247,SECURITY_PHONE_CLOSED:1237,SECURITY_EMAIL_CLOSED:1255,ACCOUNT_ERROR:1107,NO_TEMPORARY_ACCOUNT_ERROR:1335,TEMPORARY_QD_DL_CURRENCY:1351,CURRENCY_UNAVAILABLE:1032,CURRENCY_CLOSED:1033,REGISTER_CURRENCY_CLOSED:41e3,SYSTEM_NOT_ABNORMAL:41e3,ACCOUNT_ERROR_EXTREME:1129,ACCOUNT_WARING:4025,SMS_CODE_GAME:3002,BIND_WITHDRAW:3003,TEST_REGISTER_GAME:3004,FIRST_RECHARGE:3006,DOWNLOAD_APP:3007,FORCE_DOWNLOAD_APP:3012,DOWNLOAD_APP_CHANNEL_BY_CALL_GAMEAPI:3010,FORCE_DOWNLOAD_APP_BY_CHANNEL:3014,PAGE_OVERDUE:4020,CENTER_WALLET_NOT_BALANCE:9527,DEMO_GAME_LINE_DISABLED:210103,DEMO_GAME_DISABLED:41020,SITE_FREEZE_ERROR:9111,SITE_MAINTAIN_ERROR:-3,SITE_FREEZE_AND_MAINTAIN_ERROR:-4,NO_DISCOUNT_CODE_ERROR:999221,LOTTERY_POINT_NOT_ENOUGH:6610000001,LOTTERY_POINT_SETTING_CHANGE:6610000002,NAME_EXISTED_ERROR:1013,VERSION_ERROR:999,DISCOUNT_CLOSED:999e3,VERSION_UPGRADE:999999,RECEIVE_BANNED:6500000001,LOAN_BANNED:6509000001,LOAN_CLOSED:6509000002,LOAN_CANNOT_ATTEMPT:6509000003,LOAN_REPAY_FAILED:6509000004,OTHER_CLIENT_GAME_LOGIN:1401,USER_RESTRICT_ERROR:1334,RED_PACK_BETA:2,RED_PACK_EXPIRED:99,RED_PACK_PIN_EXPIRED:999077,RED_PACK_SOLD_OUT:999078,USER_CLUB_ERROR:1338,NO_WALLET_MERCH_NO_CONFIG:41050,KYC_NO_PROVIDER_CONFIG:4052,KYC_ALREADY_SUCCESS:4050,KYC_IS_VALIDATING:4051,KYC_FACE_NEED_KYC_FIRST:4054,KYC_FACE_PROCESS_ERROR:4055,SELF_FORBIDDEN_BUT_HAS_MONEY:1360,PROMOTE_ACCOUNT_ERROR:536,KYC_PROVIDER_TODAY_LIMITED:4058,KYC_USER_TODAY_LIMITED:4056,KYC_USER_TOTAL_LIMITED:4057,USER_BLACKLIST_LIMITED:4100100,KYC_CPF_INVALID:4059,TGMA_LOGIN_NEED_REGISTER_OR_BIND_FIRST:1365,TG_MICRO_APPLICATION_NEED_CURRENCY_FIRST:4106,IP_CONFIRM:3016,KYC_GAME_ENTRY:3018,KYC_GAME_ENTRY_FORCE:3019,USER_INELIGIBLE:999002,TASK_USER_INELIGIBLE:4104999002,CONTINUE_RECHARGE_TIMES_ERR_CODE:10007,CONTINUE_RECHARGE_AMOUNT_ERR_CODE:10008,CONTINUE_RECHARGE_DAY_ERR_CODE:10009,CONTINUE_BET_DAY_ERR_CODE:10010,CONTINUE_BET_MULTIPLE_ERR_CODE:10011,NEED_CONTACT:10003,REPEAT_ORDER:4106430,NOT_WHITELIST_IP:1370,NOT_WHITELIST_USER:1371,GACODE_NEED:1372,GACODE_NOT_BOUND:1201,GACODE_ERROR:1211,TG_RP_CREATE_ERROR1:999230,TG_RP_CREATE_ERROR2:999231,TG_RP_VS_CODE_ERROR:999232,TG_RP_ATTENTION_ERROR:999233,REWARD_NOT_ALLOWED:41040,REWARD_PENDING_REVIEW:660300001,PHONE_CLOSED:1378,EMAIL_CLOSED:1379,CLAIM_LOGIN_NOT_SUPPORTED:1375,CLAIM_LOGIN_REDIRECT_NORMAL:1376,CLAIM_LOGIN_NEED_PASSWORD:1377},pd={NORMAL:"",PAY_JB:""};var eo=(e=>(e[e.CLOSE=0]="CLOSE",e[e.OPEN=1]="OPEN",e[e.HIDE_EVENT=2]="HIDE_EVENT",e))(eo||{}),nh=(e=>(e[e.CLOSE=0]="CLOSE",e[e.OPEN=1]="OPEN",e))(nh||{}),zl=(e=>(e[e.Login=1]="Login",e[e.Register=2]="Register",e[e.Auto=3]="Auto",e))(zl||{}),WP=(e=>(e[e.Bind=0]="Bind",e[e.Skip=1]="Skip",e[e.Hide=2]="Hide",e))(WP||{}),VP=(e=>(e[e.OPEN=1]="OPEN",e[e.CLOSE=2]="CLOSE",e))(VP||{}),$P=(e=>(e[e.OPEN=1]="OPEN",e[e.CLOSE=0]="CLOSE",e))($P||{}),Kw=(e=>(e.OPEN="1",e.CLOSE="0",e))(Kw||{}),Qw=(e=>(e.PASSWORD="1",e.GA="2",e.WEBAUTHN="3",e))(Qw||{}),_r=(e=>(e[e.Normal=0]="Normal",e[e.Complex=1]="Complex",e[e.Simple=2]="Simple",e))(_r||{}),ar=(e=>(e[e.IMG_RIGHT=1]="IMG_RIGHT",e[e.IMG_LEFT=2]="IMG_LEFT",e[e.CUSTOMIZE=3]="CUSTOMIZE",e))(ar||{}),kt=(e=>(e[e.default=3]="default",e[e.min=4]="min",e[e.cascading=5]="cascading",e[e.big=6]="big",e[e.middle=7]="middle",e[e.bigSide=8]="bigSide",e))(kt||{}),oh=(e=>(e[e.HIDDEN=1]="HIDDEN",e[e.SHOW=2]="SHOW",e))(oh||{}),jl=(e=>
2(e[e.style0=0]="style0",e[e.style1=1]="style1",e))(jl||{}),Sr=(e=>(e[e.VERTICAL_BOTTOM=1]="VERTICAL_BOTTOM",e[e.SQUARE_BELOW=2]="SQUARE_BELOW",e[e.VERTICAL_BELOW=3]="VERTICAL_BELOW",e[e.SQUARE_ANGLE_BELOW=4]="SQUARE_ANGLE_BELOW",e[e.ROUNDED_BELOW=5]="ROUNDED_BELOW",e[e.LANDSCAPE_BELOW=6]="LANDSCAPE_BELOW",e))(Sr||{}),ah=(e=>(e[e.Texture=1]="Texture",e[e.Image=2]="Image",e[e.Defalut=3]="Defalut",e[e.Modern=4]="Modern",e))(ah||{}),di=(e=>(e.generalColor="generalColor",e.generalCentreColor="generalCentreColor",e.importantColor="importantColor",e))(di||{}),mi=(e=>(e.ordinaryColor="ordinaryColor",e.secondaryColor="secondaryColor",e.weakerColor="weakerColor",e))(mi||{}),gi=(e=>(e.leftUnColor="leftUnColor",e.leftOnColor="leftOnColor",e.bottomUnColor="bottomUnColor",e))(gi||{}),he=(e=>(e[e.VerticalMask=1]="VerticalMask",e[e.Square=2]="Square",e[e.Vertical=3]="Vertical",e[e.SquareRightAngle=4]="SquareRightAngle",e[e.Rounded=5]="Rounded",e[e.Horizontal=6]="Horizontal",e))(he||{}),Qt=(e=>(e[e.EuropeanAmerican=1]="EuropeanAmerican",e[e.LeftRight1=2]="LeftRight1",e[e.LeftRight2=3]="LeftRight2",e[e.Rounded=4]="Rounded",e[e.Square=5]="Square",e[e.Rectangle=6]="Rectangle",e))(Qt||{}),YP=(e=>(e[e.PH=1]="PH",e[e.BR=2]="BR",e))(YP||{}),cm=(e=>(e[e.OPEN=1]="OPEN",e))(cm||{}),qP=(e=>(e[e.FULL_NAME=1]="FULL_NAME",e[e.FIRST_AND_LAST=2]="FIRST_AND_LAST",e[e.FIRST_MIDLLE_LAST=3]="FIRST_MIDLLE_LAST",e))(qP||{}),Xw=(e=>(e[e.NO=0]="NO",e[e.Yes=1]="Yes",e))(Xw||{}),Um=(e=>(e[e.Link=0]="Link",e[e.Active=1]="Active",e))(Um||{}),Rt=(e=>(e[e.IOS_APP=1]="IOS_APP",e[e.ANDROID_APP=2]="ANDROID_APP",e[e.PC_H5=3]="PC_H5",e[e.PC_Windows=4]="PC_Windows",e[e.IOS_H5=5]="IOS_H5",e[e.ANDROID_H5=6]="ANDROID_H5",e))(Rt||{}),jt=(e=>(e[e.CLOSE=0]="CLOSE",e[e.OPEN=1]="OPEN",e))(jt||{}),Ng=(e=>(e[e.OPEN=0]="OPEN",e[e.CLOSE=1]="CLOSE",e))(Ng||{}),zP=(e=>(e[e.PublicAuth=0]="PublicAuth",e[e.Bot=1]="Bot",e[e.Link=2]="Link",e[e.PrivateAuth=3]="PrivateAuth",e))(zP||{}),jP=(e=>(e[e.AUTOREFRESH=1]="AUTOREFRESH",e[e.MANUALREFRESH=2]="MANUALREFRESH",e[e.EXITREFRESH=3]="EXITREFRESH",e))(jP||{}),KP=(e=>(e[e.Close=0]="Close",e[e.Open=1]="Open",e[e.OpenRequired=2]="OpenRequired",e[e.OpenRequiredVerify=3]="OpenRequiredVerify",e))(KP||{}),Zw=(e=>(e[e.NotDefault=0]="NotDefault",e[e.Default=1]="Default",e))(Zw||{}),fo=(e=>(e.HandLoadPage="1",e.HandScroll="2",e))(fo||{}),QP=(e=>(e.Age16="16",e.Age18="18",e.Age21="21",e.AgeNone="-1",e))(QP||{}),Xe=(e=>(e.Page="1",e.Dialog="0",e))(Xe||{}),Gm=(e=>(e.OPEN="1",e.CLOSE="0",e))(Gm||{}),Jw=(e=>(e.CLOSE="0",e.OPEN="1",e))(Jw||{}),XP=(e=>(e.Horizontal="1",e.Vertical="2",e.Null="-1",e))(XP||{}),sr=(e=>(e[e.WINDOWS=1]="WINDOWS",e[e.ANDROID=2]="ANDROID",e[e.IOS=3]="IOS",e[e.MAC=4]="MAC",e[e.OTHER=0]="OTHER",e))(sr||{}),rn=(e=>(e[e.NORMAL=1]="NORMAL",e[e.APP=2]="APP",e[e.SPEED=3]="SPEED",e[e.VEST=4]="VEST",e[e.PWA=5]="PWA",e[e.SHORTCUT=6]="SHORTCUT",e[e.QUICK=7]="QUICK",e[e.TELEGRAM=8]="TELEGRAM",e[e.OTHER=0]="OTHER",e))(rn||{}),rh=(e=>(e.Custom="0",e.Style1="1",e.Style2="2",e.Style3="3",e))(rh||{}),sh=(e=>(e.OPEN="1",e.CLOSE="0",e))(sh||{}),vc=(e=>(e.NONE="0",e.APP="1",e.SPEED_APP="2",e.VEST_APP="3",e.PWA="4",e.H5="5",e.PC="6",e))(vc||{}),eI=(e=>(e.OPEN="1",e.CLOSE="0",e))(eI||{}),ZP=(e=>(e.LEFT="1",e.TOP="2",e.BOTTOM="3",e.RIGHT="4",e))(ZP||{}),lm=(e=>(e.ALL="all",e.LEVEL="level",e.TAG="tag",e))(lm||{});const JP={crypto:2},fu={normal:{init:12,decimal:2},crypto:{init:12,decimal:2},specialCryptos:{decimal:8},score:{decimal:2},rate:{decimal:10}},eD="******",tD="*.**",nD=["BTC","ETH","BNB"],oD={showGroup:!0,roundingMode:k_.ROUND_DOWN};var qt=(e=>(e[e.Try=1]="Try",e[e.Normal=2]="Normal",e[e.Robot=3]="Robot",e[e.Demo=4]="Demo",e[e.Agent=5]="Agent",e[e.Promote=9]="Promote",e[e.Temporary=10]="Temporary",e[e.NormalMember=15]="NormalMember",e[e.ProfessionalAgent=16]="ProfessionalAgent",e))(qt||{}),st=(e=>(e[e.Account=1]="Account",e[e.Phone=2]="Phone",e[e.Email=3]="Email",e[e.PhonePass=4]="PhonePass",e[e.EmailPass=5]="EmailPass",e[e.PhonePassCode=6]="PhonePassCode",e[e.EmailPassCode=7]="EmailPassCode",e))(st||{}),Co=(e=>(e[e.APP=0]="APP",e[e.WAP=1]="WAP",e[e.FACEBOOK=2]="FACEBOOK",e[e.GOOGLE=3]="GOOGLE",e[e.WECHAT=4]="WECHAT",e[e.QQ=5]="QQ",e[e.LINE=6]="LINE",e[e.TELEGRAM=7]="TELEGRAM",e[e.ZALO=8]="ZALO",e[e.TG_MICRO_APPLICATION=9]="TG_MICRO_APPLICATION",e[e.WEBAUTHN=10]="WEBAUTHN",e[e.TG_MICRO_APPLICATION_OPEN=11]="TG_MICRO_APPLICATION_OPEN",e[e.TG_MICRO_GAME=15]="TG_MICRO_GAME",e[e.APP_WEBAUTHN_FACE=16]="APP_WEBAUTHN_FACE",e[e.APP_WEBAUTHN_FINGERPRINT=17]="APP_WEBAUTHN_FINGERPRINT",e[e.NOWALLET=19]="NOWALLET",e))(Co||{}),It=(e=>(e[e.Off=0]="Off",e[e.Open=1]="Open",e[e.Required=2]="Required",e))(It||{}),aD=(e=>(e[e.Phone=1]="Phone",e[e.Emial=2]="Emial",e[e.Password=3]="Password",e[e.Withdraw=4]="Withdraw",e))(aD||{}),rD=(e=>(e[e.Final=1]="Final",e[e.HasOtherFields=2]="HasOtherFields",e))(rD||{}),sD=(e=>
2(e[e.Account=1]="Account",e[e.Phone=2]="Phone",e[e.Email=3]="Email",e[e.ThirdParty=4]="ThirdParty",e))(sD||{}),Fm=(e=>(e[e.Normal=1]="Normal",e[e.FreezeManual=2]="FreezeManual",e[e.FreezeAbnormal=3]="FreezeAbnormal",e[e.ForbidReceive=4]="ForbidReceive",e[e.BlackList=5]="BlackList",e[e.GuaranteedClaim=10]="GuaranteedClaim",e[e.Discouraging=13]="Discouraging",e[e.Discouraged=14]="Discouraged",e))(Fm||{}),iD=(e=>(e[e.NotVerify=0]="NotVerify",e[e.Verified=1]="Verified",e))(iD||{}),tI=(e=>(e[e.NONE=0]="NONE",e[e.CLOSE=1]="CLOSE",e[e.OPEN=2]="OPEN",e))(tI||{}),Ls=(e=>(e[e.GOOGLE=1]="GOOGLE",e[e.FACEBOOK=2]="FACEBOOK",e[e.LINE=3]="LINE",e[e.TELEGRAM=4]="TELEGRAM",e[e.ZALO=5]="ZALO",e[e.WEBAUTHN=6]="WEBAUTHN",e[e.NOWALLET=7]="NOWALLET",e))(Ls||{}),dr=(e=>(e[e.CLOSE=0]="CLOSE",e[e.OPEN=1]="OPEN",e))(dr||{}),um=(e=>(e[e.MUST_AUDIT=1]="MUST_AUDIT",e[e.DIRECT_WITHDRAWAL=2]="DIRECT_WITHDRAWAL",e))(um||{}),cD=(e=>(e[e.Register=1]="Register",e[e.Bind=2]="Bind",e[e.Verify=3]="Verify",e[e.LoginRegister=4]="LoginRegister",e[e.RegisterIntegration=5]="RegisterIntegration",e[e.LoginIntegration=6]="LoginIntegration",e))(cD||{}),lD=(e=>(e[e.NONE=0]="NONE",e[e.LOGIN_PASS=1]="LOGIN_PASS",e[e.QUESTIONS=2]="QUESTIONS",e[e.GA=3]="GA",e[e.PHONE=4]="PHONE",e[e.EMAIL=5]="EMAIL",e[e.WITHDRAW_PASS=6]="WITHDRAW_PASS",e[e.THIRD_BIND=8]="THIRD_BIND",e[e.WEBAUTHN=10]="WEBAUTHN",e))(lD||{}),uD=(e=>(e[e.NONE=0]="NONE",e[e.GA=1]="GA",e[e.EMAIL=2]="EMAIL",e[e.PHONE=3]="PHONE",e[e.QUESTIONS=4]="QUESTIONS",e[e.WITHDRAW_PASS=5]="WITHDRAW_PASS",e[e.LOGIN_PWD=6]="LOGIN_PWD",e[e.WEBAUTHN=7]="WEBAUTHN",e))(uD||{}),nI=(e=>(e[e.NONE=0]="NONE",e[e.PHONE_CODE=1]="PHONE_CODE",e[e.EMAIL_CODE=2]="EMAIL_CODE",e[e.PHONE_FILL=3]="PHONE_FILL",e[e.EMAIL_FILL=4]="EMAIL_FILL",e[e.REAL_NAME=5]="REAL_NAME",e))(nI||{}),dD=(e=>(e[e.Edit=0]="Edit",e[e.Verify=1]="Verify",e))(dD||{}),mD=(e=>(e[e.ALLOW=0]="ALLOW",e[e.FORBIDDEN=1]="FORBIDDEN",e[e.ASSET_PROTECT_FORBIDDEN=2]="ASSET_PROTECT_FORBIDDEN",e[e.FORCE_BIND_FORBIDDEN=3]="FORCE_BIND_FORBIDDEN",e))(mD||{}),gD=(e=>(e.DEPOSIT_GAME_SMS_VERIFY="deposit_game_sms_verify",e.WITHDRAW_SMS_VERIFY="withdraw_sms_verify",e))(gD||{}),fD=(e=>(e.REGISTER="register",e.REGISTER_BIND="register_bind",e.LOGIN="login",e.WITHDRAW="withdraw",e.BIND_PHONE_REGISTER="bind_phone_register",e.BIND_PHONE="bind_phone",e.EDIT_PHONE="edit_phone",e.VERIFY_PHONE="verify_phone",e.BIND_EMAIL="bind_email",e.EDIT_EMAIL="edit_email",e.VERIFY_EMAIL="verify_email",e.DIRECT_OPEN="direct_open",e.NEWBIE_BONUS="newbie_bonus",e.APPLY_CLUB="apply_club",e.RECHARGE="recharge",e.TEMP_ACCOUNT_UPGRADE="temp_account_upgrade",e))(fD||{}),ih=(e=>(e[e.Default=0]="Default",e[e.Skip=1]="Skip",e))(ih||{}),pD=(e=>(e[e.PHONE=1]="PHONE",e[e.EMAIL=2]="EMAIL",e[e.USERNAME=3]="USERNAME",e[e.ID=4]="ID",e))(pD||{}),ch=(e=>(e[e.Club=1]="Club",e[e.Sass=2]="Sass",e[e.AgentPC=3]="AgentPC",e))(ch||{}),Yt=(e=>(e[e.GeneralManager=1]="GeneralManager",e[e.AssistantManager=2]="AssistantManager",e[e.DepartmentManager=3]="DepartmentManager",e[e.Member=4]="Member",e[e.Admin=5]="Admin",e))(Yt||{}),hD=(e=>(e.ZOLOZ="zoloz",e.TOPPH="top.ph",e.LEGITIMUZ="legitimuz",e.SUMSUB="sumsub",e.KYCAID="kycaid",e))(hD||{}),_D=(e=>(e[e.IDCard=1]="IDCard",e[e.Passport=2]="Passport",e[e.DrivingLicense=3]="DrivingLicense",e[e.Other=4]="Other",e))(_D||{}),bD=(e=>(e.REGISTER="register",e.LOGIN="login",e.PERCENTER="percenter",e.WITHDRAW="withdraw",e))(bD||{}),yD=(e=>(e.LOGIN="login_v",e.WITHDRAW="withdraw_v",e))(yD||{}),vD=(e=>(e[e.UPLOADED=1]="UPLOADED",e[e.SWITCH_CLOSED=-99]="SWITCH_CLOSED",e))(vD||{}),SD=(e=>(e[e.ALLOW=1]="ALLOW",e[e.TODAY_LIMITED=2]="TODAY_LIMITED",e[e.TOTAL_LIMITED=3]="TOTAL_LIMITED",e[e.NO_PROVIDER=4]="NO_PROVIDER",e))(SD||{}),CD=(e=>(e[e.ADMIN_FORCE_PASS=1]="ADMIN_FORCE_PASS",e))(CD||{}),wD=(e=>(e[e.Default=0]="Default",e[e.Success=1]="Success",e[e.Pending=2]="Pending",e[e.Failure=3]="Failure",e[e.InProcess=4]="InProcess",e[e.VoidCancelled=5]="VoidCancelled",e[e.VoidTimeout=6]="VoidTimeout",e[e.SWITCH_CLOSED=-99]="SWITCH_CLOSED",e))(wD||{}),ID=(e=>(e[e.NOT_SUBMIT=0]="NOT_SUBMIT",e[e.Success=1]="Success",e[e.Failure=2]="Failure",e[e.VoidTimeout=3]="VoidTimeout",e[e.InProcess=4]="InProcess",e[e.SWITCH_CLOSED=-99]="SWITCH_CLOSED",e))(ID||{}),AD=(e=>(e[e.NOT_SUBMIT=0]="NOT_SUBMIT",e[e.Success=1]="Success",e[e.Failure=2]="Failure",e[e.VoidTimeout=3]="VoidTimeout",e[e.InProcess=4]="InProcess",e[e.SWITCH_CLOSED=-99]="SWITCH_CLOSED",e))(AD||{}),LD=(e=>(e[e.SUCCESS=1]="SUCCESS",e[e.FAILURE=2]="FAILURE",e[e.VOID_TIMEOUT=3]="VOID_TIMEOUT",e[e.IN_PROCESS=4]="IN_PROCESS",e))(LD||{}),TD=(e=>(e[e.Regexp=0]="Regexp",e[e.ThirdParty=1]="ThirdParty",e[e.OnlyLength=2]="OnlyLength",e[e.OnlyThirdParty=3]="O
2nlyThirdParty",e))(TD||{}),RD=(e=>(e[e.Register=1]="Register",e[e.Withdraw=2]="Withdraw",e[e.Birthday=3]="Birthday",e[e.Recharge=5]="Recharge",e))(RD||{}),OD=(e=>(e[e.LoginPassword=1]="LoginPassword",e[e.Google=2]="Google",e[e.Webauthn=3]="Webauthn",e))(OD||{}),PD=(e=>(e[e.CLOSE=0]="CLOSE",e[e.OPEN=1]="OPEN",e))(PD||{}),DD=(e=>(e[e.Event=0]="Event",e[e.Task=1]="Task",e[e.URL=2]="URL",e[e.Download=3]="Download",e[e.Recharge=10]="Recharge",e))(DD||{}),MD=(e=>(e[e.Total=0]="Total",e[e.Fixed=1]="Fixed",e[e.First=2]="First",e[e.Times=3]="Times",e))(MD||{}),ND=(e=>(e[e.Fixed=0]="Fixed",e[e.Percentage=1]="Percentage",e[e.Random=2]="Random",e[e.BlindBoxTimes=3]="BlindBoxTimes",e))(ND||{}),qi=(e=>(e[e.Unlimited=1]="Unlimited",e[e.AllowList=2]="AllowList",e[e.DenyList=3]="DenyList",e))(qi||{});const ml=(e,t=[],n=!0)=>{const o=new URL(window.location.href),a=new URLSearchParams(o.search);for(const r in e)a.set(r,e[r]);if(t.forEach(r=>{a.delete(r)}),o.search=a.toString(),window.history.replaceState(null,"",o.toString()),n)try{const r=Bn();r.query=Fs(Pe({},r.query,e),t)}catch(r){}};function oI(e,t){const n=c=>c?Array.isArray(c)?c:[c]:[],o=n(t==null?void 0:t.btoaKeys),a=n(t==null?void 0:t.doNotEncodeKeys),r=a.includes("*"),s=!!(t!=null&&t.stringify),i={};for(const[c,l]of Object.entries(e)){let u=l;if(u)try{typeof u=="object"&&(u=JSON.stringify(u)),o.includes(c)&&(u=window.btoa(u))}catch(d){}i[c]=r||a.includes(c)?l:encodeURIComponent(u)}if(s){const c=new URLSearchParams;for(const l in i)c.set(l,i[l]);return c.toString()}return i}const Ou=(()=>{var t,n;const e=o=>{try{return JSON.parse(window.atob(String(o)))}catch(a){return}};try{const o={userkey:Nt(Ot,"userkey",""),_et:Nt(Ot,"_et",""),_ti:Nt(Ot,"_ti",""),_tm:Nt(Ot,"_tm","")},a=o.userkey.length===342?String(o.userkey):void 0,r=e(String(o._ti)),s=Number(window.atob(String(o._et)))||void 0,i=s?s+60*60*1e3:void 0,c=e(String(o._tm)),l={parserd:c,expired:(t=c==null?void 0:c.expired)!=null?t:i,replace:(n=c==null?void 0:c.replace)!=null?n:!1};return l.parserd&&l.expired&&Date.now()>l.expired&&(l.replace=!1),{_ti:o._ti,userkey:a,tokenInfos:r,tokenMetas:l}}catch(o){return nt.error("@token","urlError",o),{}}})();function kD(e,t){const n={_ti:window.btoa(JSON.stringify(e))};return t&&(n._tm=window.btoa(JSON.stringify(t))),nt.info("@token","create",Ra(location.origin,n)),n}function BD(){const{tokenMetas:e}=Ou;e!=null&&e.parserd&&(e==null?void 0:e.expired)===void 0&&ml({},["_ti","_tm"])}function Ms(){return Ou}function xf(e,t){const n=t?[...e].reverse():e;for(const o of n)if(o)return o}var yn=(e=>(e[e.djc=0]="djc",e[e.zh=1]="zh",e[e.qp=2]="qp",e[e.by=3]="by",e[e.dz=4]="dz",e[e.zr=26]="zr",e[e.ty=27]="ty",e[e.cp=28]="cp",e[e.dianjing=29]="dianjing",e[e.blockchain=12]="blockchain",e[e.dj=100]="dj",e))(yn||{}),HD=(e=>(e[e.ReceiveRecord=-1]="ReceiveRecord",e[e.RefreshReward=-2]="RefreshReward",e[e.RedeemCode=-3]="RedeemCode",e))(HD||{}),xD=(e=>(e[e.DEFAULT=1]="DEFAULT",e[e.CUSTOMIZE=2]="CUSTOMIZE",e))(xD||{}),aI=(e=>(e[e.Left=1]="Left",e[e.Right=2]="Right",e[e.Center=3]="Center",e[e.Customer=4]="Customer",e))(aI||{}),at=(e=>(e[e.Customize=1]="Customize",e[e.LuckyWheel=2]="LuckyWheel",e[e.DailyBonus=3]="DailyBonus",e[e.Rescue=5]="Rescue",e[e.RedPocket=7]="RedPocket",e[e.Deposit=10]="Deposit",e[e.Wager=12]="Wager",e[e.Promote=15]="Promote",e[e.Invest=16]="Invest",e[e.Proxy=17]="Proxy",e[e.Collection=18]="Collection",e[e.LuckyWheelNew=20]="LuckyWheelNew",e[e.GuessingSports=21]="GuessingSports",e[e.LuckyBet=14]="LuckyBet",e[e.Ranking=24]="Ranking",e[e.DiscountCode=22]="DiscountCode",e[e.CutOnce=23]="CutOnce",e[e.NewCutOnce=25]="NewCutOnce",e[e.WithDraw=27]="WithDraw",e[e.SlashOnce=28]="SlashOnce",e[e.JoinConditions=99]="JoinConditions",e[e.ReturningBonus=30]="ReturningBonus",e[e.Retention=31]="Retention",e))(at||{}),ED=(e=>(e[e.Show=1]="Show",e[e.Hide=2]="Hide",e))(ED||{}),UD=(e=>(e[e.Daily=1]="Daily",e[e.Weekly=2]="Weekly",e[e.Monthly=3]="Monthly",e[e.AfterRegister=999]="AfterRegister",e))(UD||{}),xo=(e=>(e[e.Processing=0]="Processing",e[e.CanReceive=1]="CanReceive",e[e.HasReceive=2]="HasReceive",e[e.Expired=3]="Expired",e[e.Distributed=4]="Distributed",e[e.Cancel=5]="Cancel",e[e.PendingCheck=6]="PendingCheck",e[e.PendingApply=7]="PendingApply",e[e.Rejected=8]="Rejected",e[e.Eceipting=9]="Eceipting",e))(xo||{});const Ise={1:0,7:0,6:1,2:2,4:2},Ase=3;var GD=(e=>(e[e.DRAFT=0]="DRAFT",e[e.PROCESSING=1]="PROCESSING",e[e.PENDING=1]="PEND
2ING",e[e.OVER=2]="OVER",e[e.CLOSED=3]="CLOSED",e[e.EXPIRED=4]="EXPIRED",e))(GD||{}),FD=(e=>(e[e.Show=1]="Show",e[e.Hide=2]="Hide",e))(FD||{}),WD=(e=>(e[e.OldCustomize=1]="OldCustomize",e[e.SelfCollectionDelivery=2]="SelfCollectionDelivery",e[e.SelfCollectionExpired=3]="SelfCollectionExpired",e[e.AutoDispatch=4]="AutoDispatch",e[e.ManualDistribution=5]="ManualDistribution",e))(WD||{}),VD=(e=>(e[e.Regular=0]="Regular",e[e.Proportion=1]="Proportion",e[e.Interregional=2]="Interregional",e))(VD||{}),$D=(e=>(e[e.Regular=1]="Regular",e[e.Proportion=2]="Proportion",e[e.Interregional=3]="Interregional",e[e.BlindBox=4]="BlindBox",e))($D||{}),YD=(e=>(e[e.Total=0]="Total",e[e.SingleFixed=1]="SingleFixed",e[e.Single=2]="Single",e[e.First=3]="First",e))(YD||{}),qD=(e=>(e[e.Undone=0]="Undone",e[e.CanReceive=1]="CanReceive",e[e.HasReceive=2]="HasReceive",e[e.MaxRuleHasReceive=3]="MaxRuleHasReceive",e[e.MaxRuleCanReceive=4]="MaxRuleCanReceive",e[e.CannotComplete=5]="CannotComplete",e[e.Distributed=6]="Distributed",e))(qD||{}),zD=(e=>(e[e.AccountBalance=0]="AccountBalance",e[e.WithdrawAmount=1]="WithdrawAmount",e))(zD||{}),jD=(e=>(e[e.PROPORTION=0]="PROPORTION",e[e.FIXED=1]="FIXED",e))(jD||{}),Ts=(e=>(e[e.Now=0]="Now",e[e.NextDay=1]="NextDay",e[e.EveryWeek=2]="EveryWeek",e[e.Monthly=3]="Monthly",e[e.NextWeek=4]="NextWeek",e[e.NextMonth=5]="NextMonth",e[e.EveryDaily=6]="EveryDaily",e))(Ts||{}),rI=(e=>(e[e.Min=0]="Min",e[e.Max=1]="Max",e[e.Request=2]="Request",e[e.ManualSend=3]="ManualSend",e[e.NoDissatisfied=4]="NoDissatisfied",e))(rI||{}),KD=(e=>(e[e.complete=1]="complete",e[e.undone=0]="undone",e))(KD||{}),QD=(e=>(e.ToRegister="0",e.bankBinding="2",e.birthdaySettings="4",e.SetWithdrawalPwd="5",e.SetEncrypted="6",e.SetNickname="7",e.FirstYeb="8",e.SetHead="10",e.SMSVerification="12",e.BindGoogle="16",e.firstPay="17",e.DownloadAndLogin="18",e.emailBinding="19",e.SaveUrl="20",e.BindDigitalCurrency="21",e.BindPaymentMethod="25",e.FirstWithdraw="26",e.AddContact="27",e.BindThirdLogin="28",e.BindThirdPartyWallet="30",e.SaveAddress="31",e.SaveEmail="32",e.BindAuthn="41",e.AlreadyKYC="42",e.CompleteNo="43",e.Verified="10000",e.IPRestrictions="10001",e.SameDevice="10002",e.SameBrowserFingerprint="10003",e.SimilarActivities="10004",e.AfterDepositAndNoBet="10005",e.SameName="10006",e.WSBrowserOnly="10012",e.BindRealName="908",e))(QD||{}),Rs=(e=>(e.WX="901",e.Facebook="902",e.Telegram="903",e.WhatsApp="904",e.Zalo="905",e.Line="906",e.X="907",e))(Rs||{}),XD=(e=>(e[e.TYPE_1=1]="TYPE_1",e[e.TYPE_2=2]="TYPE_2",e[e.TYPE_3=3]="TYPE_3",e))(XD||{}),sI=(e=>(e.All="0",e))(sI||{}),lh=(e=>(e[e.Channels=1]="Channels",e[e.Agents=2]="Agents",e))(lh||{}),ZD=(e=>(e.DAY="day",e.WEEK="week",e.MONTH="month",e))(ZD||{}),iI=(e=>(e[e.Default=0]="Default",e[e.Every=1]="Every",e))(iI||{}),Mr=(e=>(e.Receive="receive",e.Use="use",e.Exchange="exchange",e))(Mr||{}),JD=(e=>(e[e.Item=0]="Item",e[e.Top=1]="Top",e))(JD||{}),eM=(e=>(e[e.Bet=1]="Bet",e[e.Recharge=2]="Recharge",e))(eM||{}),Aa=(e=>(e[e.Speed=1]="Speed",e[e.Normal=2]="Normal",e[e.Quick=3]="Quick",e[e.PWA=4]="PWA",e[e.DesktopShortcut=5]="DesktopShortcut",e[e.Vest=6]="Vest",e[e.UnBanSpeed=11]="UnBanSpeed",e[e.UnBanNormal=12]="UnBanNormal",e))(Aa||{}),Sc=(e=>(e[e.NATIVE=0]="NATIVE",e[e.CLONE=1]="CLONE",e[e.SPEED=2]="SPEED",e[e.PWA=3]="PWA",e[e.IOS_SIGN=4]="IOS_SIGN",e))(Sc||{}),Cc=(e=>(e[e.NATIVE=2]="NATIVE",e[e.CLONE=4]="CLONE",e[e.SPEED=3]="SPEED",e[e.PWA=5]="PWA",e[e.IOS_SIGN=7]="IOS_SIGN",e))(Cc||{});const Lse=[at.Customize,at.Deposit,at.Wager,at.Rescue,at.Invest,at.Proxy,at.LuckyWheelNew,at.LuckyBet,at.RedPocket,at.Promote,at.Collection,at.GuessingSports,at.DailyBonus,at.DiscountCode,at.NewCutOnce,at.CutOnce,at.Ranking,at.WithDraw],Tse=[at.Ranking];var tM=(e=>(e[e.Every=0]="Every",e[e.OnlyTop=1]="OnlyTop",e))(tM||{});const nM=7258089599;var cI=(e=>(e[e.PC=1]="PC",e[e.Mobile=2]="Mobile",e))(cI||{}),oM=(e=>(e[e.CurrentWindow=1]="CurrentWindow",e[e.NewWindow=2]="NewWindow",e))(oM||{}),aM=(e=>(e[e.Default=0]="Default",e[e.OutsideLink=2]="OutsideLink",e[e.Activity=3]="Activity",e[e.Task=4]="Task",e[e.Recharge=5]="Recharge",e[e.Cashback=6]="Cashback",e[e.Proxy=7]="Proxy",e[e.Vip=8]="Vip",e[e.Interest=9]="Interest",e[e.RechargeFund=10]="RechargeFund",e[e.BlindBox=11]="BlindBox",e[e.CanReceive=12]="CanReceive",e[e.Records=13]="Records",e[e.PromoteLink=14]="PromoteLink",e[e.CLUB=15]="CLUB",e[e.Game=16]="Game",e))(aM||{}),rM=(e=>(e[e.System=0]="System",e[e.DepositBetting=3]="DepositBetting",e[e.ExternalAPI=4]="ExternalAPI",e))(rM||{}),sM=(e=>(e[e.System=0]="System",e[e.CustomStyle=1]="CustomStyle",e[e.CustomGradient=2]="CustomGradient",e))(sM||{}),iM=(e=>(e[e.CUSTOM=0]="CUSTOM",e[e.BETNUMBER=1]="BETNUMBER",e[e.PLATFORM=2]="PLATFORM",e[e.CATEGORY=3]="CATEGORY",e[e.GAMENUMBER=4]="GAMENUMBER",e[e.RECHARGEORDERID=5]="RECHARGEORDERID",e))(iM||{}),cM=(e=>(e[e.INPUT=0]="INPUT",e[e.UPLOAD=1]="UPLOAD",e[e.SINGLECHOICE=2]="SINGLECHOICE",e[e.MULTIPLECHOICE=3]="MULTIPLECHOICE",e))(cM||{}),lM=(e=>(e.LargeReward="largeReward",e))(lM||{}),uM=(e=>(e[e.All=-1]="All",e[e.Reward=0]="Reward",e[e.Activity=3]="Activity",e[e.LuckyVal=4]="LuckyVal",e[e.Integral=5]="Integral",e[e.BlindTimes=6]="BlindTimes",e[e.Discount=11]="Discount",e[e.MultipleReward=10]="MultipleReward",e[e.KeepUp=99]="KeepUp",e))(uM||{}),ct=(e=>(e[e.Old=0]="Old",e[e.Fixed=1]="Fixed",e[e.Random=2]="Random",e[e.Proportion=3]="Proportion",e[e.Activity=4]="Activity",e[e.LuckyVal=5]="LuckyVal",e[e.Integral=6]="Integral",e[e.SmallBlindTimes=7]="SmallBlindTimes",e[e.BigBlindTimes=8]="BigBlindTimes",e[e.SuperBlindTimes=9]="SuperBlindTimes",e[e.Discount=11]="Discount",e[e.MultipleBonus=10]="MultipleBonus",e[e.ShopDiscount=11]="ShopDiscount",e[e.ShopCutADeal=12]="ShopCutADeal",e[e.ShopVoucherCode=13]="ShopVoucherCode",e[e.ShopPhysical=14]="ShopPhysical",e[e.ShopCustom=15]="ShopCustom",e[e.KeepUp=99]="KeepUp",e))(ct||{});const dM=[7,8,9];var uh=(e=>(e[e.Events=1]="Events",e[e.Task=2]="Task",e[e.Rebate=3]="Rebate",e[e.CreditReturnGold=14]="CreditReturnGold",e[e.Interest=4]="Interest",e[e.Vip=5]="Vip",e[e.RechargeFund=6]="RechargeFund",e[e.BindBox=7]="BindBox",e[e.LuckyWheel=8]="LuckyWheel",e[e.SVip=10]="SVip",e[e.SurpriseReward=11]="SurpriseReward",e[e.SvipLottery=62]="SvipLottery",e[e.Coupon=63]="Coupon",e[e.RewardFeedback=1e4]="RewardFeedback",e))(uh||{});const Rse=[2,4,6,7,10,11,62,63];var mM=(e=>(e[e.Small=0]="Small",e[e.Large=1]="Large",e[e.Apply=2]="Apply",e[e.Manual=3]="Manual",e[e.NotMeet=4]="NotMeet",e))(mM||{}),dh=(e=>(e[e.CLOSE=0]="CLOSE",e[e.OPEN=1]="OPEN",e))(dh||{}),gM=(e=>(e[e.canReceive=0]="canReceive",e[e.hasReceive=1]="hasReceive",e[e.cannotReceive=2]="cannotReceive",e))(gM||{}),fM=(e=>(e[e.CanReceive=0]="CanReceive",e[e.HasReceive=2]="HasReceive",e[e.Distributed=4]="Distributed",e[e.Cancel=5]="Cancel",e[e.Rejected=8]="Rejected",e))(fM||{}),pM=(e=>(e.Promotion="promotion",e.Day="day",e.Week="week",e.Month="month",e.Power="power",e.Keep="keep",e.Birthday="birthday",e.All="all",e))(pM||{}),hM=(e=>(e.List="0",e.Card="1",e))(hM||{}),_M=(e=>(e[e.Default=1]="Default",e[e.Custom=2]="Custom",e))(_M||{});function zn(e){return new Promise(t=>setTimeout(t,e))}var Z=(e=>(e[e.Hot=0]="Hot",e[e.Chess=1]="Chess",e[e.Fish=2]="Fish",e[e.Electronic=3]="Electronic",e[e.Real=4]="Real",e[e.Sports=5]="Sports",e[e.Cockfighting=6]="Cockfighting",e[e.Gaming=7]="Gaming",e[e.Lottery=8]="Lottery",e[e.LotteryA=801]="LotteryA",e[e.LotteryB=802]="LotteryB",e[e.LotteryC=803]="LotteryC",e[e.LotteryD=804]="LotteryD",e[e.BlockChain=11]="BlockChain",e[e.ClubRoom=12]="ClubRoom",e[e.TgBuiltIn=13]="TgBuiltIn",e[e.ClubRoomCommission=1201]="ClubRoomCommission",e[e.ClubInsurance=1202]="ClubInsurance",e[e.ClubProps=1203]="ClubProps",e[e.Merged=14]="Merged",e[e.Search=99]="Search",e[e.Recent=100]="Recent",e[e.Collect=101]="Collect",e[e.Demo=20]="Demo",e[e.More=102]="More",e))(Z||{}),De=(e=>(e[e.ZJH=12001]="ZJH",e[e.QZNN=12002]="QZNN",e[e.DDZ=12005]="DDZ",e[e.DZPK=12006]="DZPK",e[e.NEW_DZPK=12017]="NEW_DZPK",e[e.TBNN=12004]="TBNN",e[e.SSS=12009]="SSS",e[e.NEW_SSS=12018]="NEW_SSS",e[e.KPQZNN=12003]="KPQ
2ZNN",e[e.ERMJ=12007]="ERMJ",e[e.GD=12015]="GD",e))(De||{}),bM=(e=>(e[e.KY=2]="KY",e[e.JDB=5]="JDB",e[e.WG=13]="WG",e))(bM||{}),lI=(e=>(e[e.WG=13]="WG",e))(lI||{}),yM=(e=>(e[e.WG=13]="WG",e))(yM||{}),vM=(e=>(e[e.Hot=0]="Hot",e[e.Recent=100]="Recent",e[e.Collect=101]="Collect",e))(vM||{}),Yr=(e=>(e[e.CLUB=12]="CLUB",e[e.WG=13]="WG",e))(Yr||{}),uI=(e=>(e.NotUploaded="0",e.Uploaded="1",e))(uI||{});const Qo={[Z.Chess]:{normal:"/lobby_asset/{layout}-{bg}-common/web/common/icon_dtfl_qp_0.svg",active:"/lobby_asset/{layout}-{bg}-common/common/_sprite/icon_dtfl_qp_1.png"},[Z.Fish]:{normal:"/lobby_asset/{layout}-{bg}-common/web/common/icon_dtfl_by_0.svg",active:"/lobby_asset/{layout}-{bg}-common/common/_sprite/icon_dtfl_by_1.png"},[Z.Electronic]:{normal:"/lobby_asset/{layout}-{bg}-common/web/common/icon_dtfl_dz_0.svg",active:"/lobby_asset/{layout}-{bg}-common/common/_sprite/icon_dtfl_dz_1.png"},[Z.Real]:{normal:"/lobby_asset/{layout}-{bg}-common/web/common/icon_dtfl_zr_0.svg",active:"/lobby_asset/{layout}-{bg}-common/common/_sprite/icon_dtfl_zr_1.png"},[Z.Sports]:{normal:"/lobby_asset/{layout}-{bg}-common/web/common/icon_dtfl_ty_0.svg",active:"/lobby_asset/{layout}-{bg}-common/common/_sprite/icon_dtfl_ty_1.png"},[Z.Cockfighting]:{normal:"/lobby_asset/{layout}-{bg}-common/web/common/icon_dtfl_douji_0.svg",active:"/lobby_asset/{layout}-{bg}-common/common/_sprite/icon_dtfl_douji_1.png"},[Z.Gaming]:{normal:"/lobby_asset/{layout}-{bg}-common/web/common/icon_dtfl_dianjing_0.svg",active:"/lobby_asset/{layout}-{bg}-common/common/_sprite/icon_dtfl_dianjing_1.png"},[Z.Lottery]:{normal:"/lobby_asset/{layout}-{bg}-common/web/common/icon_dtfl_cp_0.svg",active:"/lobby_asset/{layout}-{bg}-common/common/_sprite/icon_dtfl_cp_1.png"},[Z.BlockChain]:{normal:"/lobby_asset/{layout}-{bg}-common/web/common/icon_dtfl_qkl_0.svg",active:"/lobby_asset/{layout}-{bg}-common/common/_sprite/icon_dtfl_qkl_1.png"},[Z.ClubRoom]:{normal:"/lobby_asset/common/web/club/club_icon_dtfl_fjj.svg",active:"/lobby_asset/common/web/club/club_icon_dtfl_fjj.svg"},[Z.Hot]:{normal:"/lobby_asset/{layout}-{bg}-common/web/common/icon_dtfl_rm_0.svg",active:"/lobby_asset/{layout}-{bg}-common/common/_sprite/icon_dtfl_rm_1.png"},[Z.Recent]:{normal:"/lobby_asset/{layout}-{bg}-common/web/common/icon_dtfl_zj_0.svg",active:"/lobby_asset/{layout}-{bg}-common/common/_sprite/icon_dtfl_zj_1.png"},[Z.Collect]:{normal:"/lobby_asset/{layout}-{bg}-common/web/common/icon_dtfl_sc_0.svg",active:"/lobby_asset/{layout}-{bg}-common/common/_sprite/icon_dtfl_sc_1.png"},[Z.Demo]:{normal:"/lobby_asset/{layout}-{bg}-common/web/common/icon_dtfl_sw_0.svg",active:"/lobby_asset/{layout}-{bg}-common/common/_sprite/icon_dtfl_sw_1.png"},[De.ZJH]:{normal:"/lobby_asset/common/web/club/club_icon_dtfl_zjh_0.svg",active:"/lobby_asset/common/common/club/club_icon_dtfl_zjh_1.png"},[De.QZNN]:{normal:"/lobby_asset/common/web/club/club_icon_dtfl_qznn_0.svg",active:"/lobby_asset/common/common/club/club_icon_dtfl_qznn_1.png"},[De.DDZ]:{normal:"/lobby_asset/common/web/club/club_icon_dtfl_ddz_0.svg",active:"/lobby_asset/common/common/club/club_icon_dtfl_ddz_1.png"},[De.DZPK]:{normal:"/lobby_asset/common/web/club/club_icon_dtfl_dzpk_0.svg",active:"/lobby_asset/common/common/club/club_icon_dtfl_dzpk_1.png"},[De.NEW_DZPK]:{normal:"/lobby_asset/common/web/club/club_icon_dtfl_dzpk_0.svg",active:"/lobby_asset/common/common/club/club_icon_dtfl_dzpk_1.png"},[De.TBNN]:{normal:"/lobby_asset/common/web/club/club_icon_dtfl_tbnn_0.svg",active:"/lobby_asset/common/common/club/club_icon_dtfl_tbnn_1.png"},[De.SSS]:{normal:"/lobby_asset/common/web/club/club_icon_dtfl_sss_0.svg",active:"/lobby_asset/common/common/club/club_icon_dtfl_sss_1.png"},[De.NEW_SSS]:{normal:"/lobby_asset/common/web/club/club_icon_dtfl_sss_0.svg",active:"/lobby_asset/common/common/club/club_icon_dtfl_sss_1.png"},[De.KPQZNN]:{normal:"/lobby_asset/common/web/club/club_icon_dtfl_kpnn_0.svg",active:"/lobby_asset/common/common/club/club_icon_dtfl_kpnn_1.png"},[De.ERMJ]:{normal:"/lobby_asset/common/web/club/club_icon_dtfl_ermj_0.svg",active:"/lobby_asset/common/common/club/club_icon_dtfl_ermj_1.png"},[De.GD]:{normal:"/lobby_asset/common/web/club/club_icon_dtfl_gd_0.svg",active:"/lobby_asset/common/common/club/club_icon_dtfl_gd_1.png"}},Kl={[De.ZJH]:{zh:"/lobby_asset/common/common/club/club_logo_zjh.png",en:"/lobby_asset/common/common/club/club_logo_zjh1.png"},[De.QZNN]:{zh:"/lobby_asset/common/common/club/club_logo_qznn.png",en:"/lobby_asset/common/common/club/club_logo_qznn1.png"},[De.DDZ]:{zh:"/lobby_asset/common/common/club/club_logo_ddz.png",en:"/lobby_asset/common/common/club/club_logo_ddz1.png"},[De.DZPK]:{zh:"/lobby_asset/common/common/club/club_logo_dzpk.png",en:"/lobby_asset/common/common/club/club_logo_dzpk1.png"},[De.NEW_DZPK]:{zh:"/lobby_asset/common/common/club/club_logo_dzpk.png",en:"/lobby_asset/common/common/club/club_logo_dzpk1.png"},[De.TBNN]:{zh:"/lobby_asset/common/common/club/club_logo_tbnn.png",en:"/lobby_asset/common/common/club/club_logo_tbnn1.png"},[De.SSS]:{zh:"/lobby_asset/common/common/club/club_logo_sss.png",en:"/lobby_asset/common/common/club/club_logo_sss1.png"},[De.NEW_SSS]:{zh:"/lobby_asset/common/common/club/club_logo_jdsss.png",en:"/lobby_asset/common/common/club/club_logo_jdsss1.png"},[De.KPQZNN]:{zh:"/lobby_asset/common/common/club/club_logo_kpnn.png",en:"/lobby_asset/common/common/club/club_logo_kpnn1.png"},[De.ERMJ]:{zh:"/lobby_asset/common/common/club/club_logo_ermj.png",en:"/lobby_asset/common/common/club/club_logo_ermj1.png"},[De.GD]:{zh:"/lobby_asset/common/common/club/club_logo_gd.png",en:"/lobby_asset/common/common/club/club_logo_gd1.png"}};De.ZJH+"",De.QZNN+"",De.DDZ+"",De.DZPK+"",De.NEW_DZPK+"",De.TBNN+"",De.SSS+"",De.NEW_SSS+"",De.KPQZNN+"",De.ERMJ+"",De.GD+"";const SM={[De.ZJH]:"/lobby_asset/{layout}-{bg}-common/common/home/img_club_qtwf_zjh.png",[De.QZNN]:"/lobby_asset/{layout}-{bg}-common/common/home/img_club_qtwf_qznn.png",[De.DDZ]:"/lobby_asset/{layout}-{bg}-common/common/home/img_club_qtwf_ddz.png",[De.DZPK]:"/lobby_asset/{layout}-{bg}-common/common/home/img_club_qtwf_dzpk.png",[De.NEW_DZPK]:"/lobby_asset/{layout}-{bg}-common/common/home/img_club_qtwf_dzpk.png",[De.TBNN]:"/lobby_asset/{layout}-{bg}-common/common/home/img_club_qtwf_tbnn.png",[De.SSS]:"/lobby_asset/{layout}-{bg}-common/common/home/img_club_qtwf_sss.png",[De.NEW_SSS]:"/lobby_asset/{layout}-{bg}-common/common/home/img_club_qtwf_jdsss.png",[De.KPQZNN]:"/lobby_asset/{layout}-{bg}-common/common/home/img_club_qtwf_kpqznn.png",[De.ERMJ]:"/lobby_asset/{layout}-{bg}-common/common/home/img_club_qtwf_ermj.png",[De.GD]:"/lobby_asset/{layout}-{bg}-common/common/home/img_club_qtwf_gd.png"};De.ZJH+"",De.QZNN+"",De.DDZ+"",De.DZPK+"",De.NEW_DZPK+"",De.TBNN+"",De.SSS+"",De.NEW_SSS+"",De.KPQZNN+"",De.ERMJ+"",De.GD+"";De.ZJH+"",De.QZNN+"",De.DDZ+"",De.DZPK+"",De.NEW_DZPK+"",De.TBNN+"",De.SSS+"",De.KPQZNN+"",De.ERMJ+"",De.GD+"",De.NEW_SSS+"";var q_=(e=>(e[e.Show=1]="Show",e[e.Hide=0]="Hide",e))(q_||{}),Jc=(e=>(e[e.Open=0]="Open",e[e.Close=1]="Close",e))(Jc||{}),CM=(e=>(e[e.Normal=0]="Normal",e[e.Treasure=1]="Treasure",e[e.RedPocket=2]="RedPocket",e))(CM||{}),dI=(e=>(e[e.bottom=0]="bottom",e[e.top=1]="top",e[e.hidden=2]="hidden",e))(dI||{}),mI=(e=>(e[e.Open=1]="Open",e[e.Close=0]="Close",e))(mI||{}),gI=(e=>(e[e.NoPop=0]="NoPop",e[e.DailyPop=1]="DailyPop",e[e.OnlyPop=4]="OnlyPop",e[e.OncePop=5]="OncePop",e[e.LoginPop=6]="LoginPop",e))(gI||{}),mh=(e=>(e[e.List=0]="List",e[e.Detail=1]="Detail",e[e.IconMenu=3]="IconMenu",e))(mh||{}),gh=(e=>(e[e.Click=0]="Click",e[e.Slide=1]="Slide",e))(gh||{}),fh=(e=>(e[e.Hidden=0]="Hidden",e[e.Show=1]="Show",e))(fh||{}),ph=(e=>(e[e.Show=0]="Show",e[e.Hidden=1]="Hidden",e))(ph||{});const wM={showEvent:!0,showTask:!0,showNormalCashback:!0,showClubCashback:!1,rechargeFundConfigItem:void 0,showCreditLoan:!1,showVip:!0,showInterest:!0,showCoupon:!1,receivePop:0,unreceiveRewardListStyle:0,rechargeFundName:"",showBlindBox:!1,displayExpireRe
2ward:!1,showNewBenefits:!1,showTurntable:!1,showSVip:!1,activePageDisplayLocation:0,activePageDisplayStyle:0,activePageDisplayAction:0,showMall:!1,activePageDisplaySearch:0,activePageHideCategory:0,activePageSort:""};var fI=(e=>(e[e.Normal=0]="Normal",e[e.Modal=1]="Modal",e[e.HomeModal=2]="HomeModal",e[e.PayAfterModal=3]="PayAfterModal",e))(fI||{}),pI=(e=>(e[e.never=0]="never",e[e.onceDay=1]="onceDay",e[e.constantly=2]="constantly",e))(pI||{}),Uo=(e=>(e[e.never=0]="never",e[e.onceDay=1]="onceDay",e[e.constantly=2]="constantly",e[e.waitingComplete=3]="waitingComplete",e[e.waitingReceive=4]="waitingReceive",e[e.onceForever=5]="onceForever",e[e.everyLogining=6]="everyLogining",e))(Uo||{}),IM=(e=>(e[e.forbidReceive=0]="forbidReceive",e[e.receiveType=1]="receiveType",e[e.task=2]="task",e[e.largeAmount=3]="largeAmount",e[e.pendingCheck=4]="pendingCheck",e[e.isDemoLogin=5]="isDemoLogin",e[e.timeLimit=6]="timeLimit",e[e.logined=7]="logined",e[e.receiveTimeLimit=8]="receiveTimeLimit",e[e.multipleReward=9]="multipleReward",e[e.discountCoupon=10]="discountCoupon",e[e.pendingReview=11]="pendingReview",e))(IM||{}),AM=(e=>(e[e.userRestrict=0]="userRestrict",e[e.largeAmount=1]="largeAmount",e[e.multipleReward=2]="multipleReward",e[e.taskOrder=3]="taskOrder",e[e.versionUpgrade=4]="versionUpgrade",e[e.restrictWithId=5]="restrictWithId",e[e.restrictReceive=6]="restrictReceive",e[e.rewardExpired=7]="rewardExpired",e[e.pendingReview=8]="pendingReview",e[e.networkOrTimeout=9]="networkOrTimeout",e))(AM||{}),mr=(e=>(e[e.None=-1]="None",e[e.BindPhoneAndSMSValid=-2]="BindPhoneAndSMSValid",e[e.Register=0]="Register",e[e.BindPhone=1]="BindPhone",e[e.FirstBindBankCard=2]="FirstBindBankCard",e[e.BindWechat=3]="BindWechat",e[e.SetBirthDay=4]="SetBirthDay",e[e.SetWithdrawalPin=5]="SetWithdrawalPin",e[e.SetQuestion=6]="SetQuestion",e[e.FirstSetNicname=7]="FirstSetNicname",e[e.YuebaoFirstDeposit=8]="YuebaoFirstDeposit",e[e.SetAvatar=10]="SetAvatar",e[e.DownloadMusicLibrary=11]="DownloadMusicLibrary",e[e.SMSValid=12]="SMSValid",e[e.BindWhatsApp=13]="BindWhatsApp",e[e.BindFacebook=14]="BindFacebook",e[e.BindTelegram=15]="BindTelegram",e[e.SetGa=16]="SetGa",e[e.FirstDeposit=17]="FirstDeposit",e[e.DownloadAndLogin=18]="DownloadAndLogin",e[e.BindEmail=19]="BindEmail",e[e.BindCrypto=21]="BindCrypto",e[e.BindZalo=22]="BindZalo",e[e.BindLine=23]="BindLine",e[e.BindTwitter=24]="BindTwitter",e[e.AddWithdraw=25]="AddWithdraw",e[e.FirstWithdraw=26]="FirstWithdraw",e[e.AddContact=27]="AddContact",e[e.ThirdParty=28]="ThirdParty",e[e.BindThirdPartyWallet=30]="BindThirdPartyWallet",e[e.createDesktop=20]="createDesktop",e[e.createP2a=999]="createP2a",e[e.SaveUrlImage=31]="SaveUrlImage",e[e.SaveEmailImage=32]="SaveEmailImage",e[e.BindBiometric=41]="BindBiometric",e[e.CompleteKYC=42]="CompleteKYC",e[e.CompleteNo=43]="CompleteNo",e))(mr||{}),LM=(e=>(e.Integral="integral",e.Task="task",e.LuckyWheel="luckyWheel",e.Surprise="surprise",e))(LM||{}
2),kr=(e=>(e[e.MemberLevel=0]="MemberLevel",e[e.VipLevel=1]="VipLevel",e[e.RegisterDays=2]="RegisterDays",e[e.Currency=3]="Currency",e[e.ChannelProxy=4]="ChannelProxy",e[e.Time=5]="Time",e[e.DeviceValid=6]="DeviceValid",e))(kr||{}),hI=(e=>(e[e.Normal=0]="Normal",e[e.Random=1]="Random",e))(hI||{}),wc=(e=>(e[e.Normal=0]="Normal",e[e.Speed=2]="Speed",e[e.PWA=3]="PWA",e[e.Quick=4]="Quick",e[e.Vest=1]="Vest",e))(wc||{});const Ose={[yn.zh]:{normal:"/lobby_asset/common/web/common/icon_dtfl_zh_0.svg",active:""},[yn.qp]:Qo[Z.Chess],[yn.djc]:Qo[Z.Cockfighting],[yn.dj]:Qo[Z.Cockfighting],[yn.by]:Qo[Z.Fish],[yn.zr]:Qo[Z.Real],[yn.cp]:Qo[Z.Lottery],[yn.dz]:Qo[Z.Electronic],[yn.ty]:Qo[Z.Sports],[yn.dianjing]:Qo[Z.Gaming],[yn.blockchain]:Qo[Z.BlockChain]},Pse={[yn.djc]:Z.Cockfighting,[yn.dj]:Z.Cockfighting,[yn.qp]:Z.Chess,[yn.by]:Z.Fish,[yn.dz]:Z.Electronic,[yn.zr]:Z.Real,[yn.ty]:Z.Sports,[yn.cp]:Z.Lottery,[yn.dianjing]:Z.Gaming,[yn.blockchain]:Z.BlockChain};var TM=(e=>(e[e.SubUserDetailModal=1]="SubUserDetailModal",e[e.PromotionModalContent=2]="PromotionModalContent",e))(TM||{}),RM=(e=>(e[e.ReceiveTip=1]="ReceiveTip",e[e.GoToTip=2]="GoToTip",e))(RM||{}),OM=(e=>(e[e.Again=1]="Again",e[e.FreeDraw=2]="FreeDraw",e[e.GoDraw=3]="GoDraw",e[e.Processing=4]="Processing",e[e.CanReceiveOrPendingCheck=5]="CanReceiveOrPendingCheck",e[e.ReceiveSuccess=6]="ReceiveSuccess",e[e.ReceiveFail=7]="ReceiveFail",e))(OM||{}),uo=(e=>(e[e.TODAY=0]="TODAY",e[e.YESTERDAY=1]="YESTERDAY",e[e.THIS_WEEK=2]="THIS_WEEK",e[e.LAST_WEEK=3]="LAST_WEEK",e[e.THIS_MONTH=4]="THIS_MONTH",e[e.LAST_MONTH=5]="LAST_MONTH",e[e.ALL=-1]="ALL",e))(uo||{}),PM=(e=>(e[e.EventCenter=1]="EventCenter",e[e.Task=2]="Task",e[e.Cashback=3]="Cashback",e[e.LXBao=4]="LXBao",e[e.Vip=5]="Vip",e[e.Recharge=6]="Recharge",e[e.BlindBox=7]="BlindBox",e[e.LuckyWheel=8]="LuckyWheel",e[e.CreditLoan=9]="CreditLoan",e[e.SVIP=10]="SVIP",e[e.Mall=12]="Mall",e[e.Coupon=127]="Coupon",e))(PM||{}),DM=(e=>(e.InternalLink="0",e.ExternalLink="1",e.Receive="2",e.Bind="3",e))(DM||{});const Dse={[Rs.WX]:"wechat",[Rs.Facebook]:"facebook",[Rs.Telegram]:"telegram",[Rs.WhatsApp]:"whatsapp",[Rs.Zalo]:"zalo",[Rs.Line]:"line",[Rs.X]:"twitter"},MM={lobby:{plan:{header:{search:"Search",recharge:"Deposit",withdraw:"Withdraw",Interest:"Interest",login:"Login",register:"Register"},middle:{clickLogin:"Login",signUp:"Register now",menu:{vip:"VIP",download:"APP Download",commonQuestion:"FAQ",about:"About",aboutUsSub:"About Us",forbiddenSelf:"Self-restriction",Interest:"Interest",rechargeFund:"Fund",pickUpRecord:"History",waitingCollect:"Unclaimed",backwater:"Rebate",task:"Mission",active:"Event",bettingRecord:"Bet record",promote:"Agent",feedback:"Reward Feedback",service:"Support",withDraw:"Withdraw",recharge:"Deposit",security:"Security Center",settings:"Profile",discount:"Promo",accountDetails:"Statement",personalStatement:"Report",withdrawalManagement:"Manage withdrawal",language:"Language",audit:"Betting missions",facebook:"Facebook Login",google:"Google Login",line:"Line Login",more:"More",blindBoxLottery:"Blind box",findUs:"Find us",clubBillSettlement:"Bill settlement",clubLoan:"Credit",customerPay:"Manual Deposit"},gameMenu:{loadingRecent:"Recent",loadingCollect:"Favorites",loadingDemo:"Demo",menu0:"Hot",menu1:"Cards",menu2:"Fishing",menu3:"Slot",menu4:"Live",menu5:"Sports",menu6:"Cockfight",menu7:"E-Sports",menu8:"Lottery",menu9:"Club",menu10:"Friends",menu11:"Mini Games",menu12:"Room bureau",menu14:"More",menu20:"Demo"},tabs:{hot:"Hot",loadingRecent:"Recent",loadingCollect:"Favorites"}},tabbar:{home:"Home",menu:"Menu",event:"Event",service:"Support",download:"APP Download",discount:"Promo",recharge:"Deposit",withDraw:"Withdraw",register:"Register",login:"Login",mine:"Profile",balance_dz:"Balance",task:"Mission",backwater:"Rebate",vip:"VIP",Interest:"Interest",promote:"Agent",rechargeFund:"Fund",waitingCollect:"Unclaimed",pickUpRecord:"History",blindBoxLottery:"Blind box",luckySpin:"Spins",svip:"SVIP"}},tabbar:{home:"Home",menu:"Menu",event:"Event",service:"Support",download:"APP Download",discount:"Promo",recharge:"Deposit",withDraw:"Withdraw",register:"Register",login:"Login",mine:"Profile",balance_dz:"Balance",rechargeNew:"Deposit",withDrawNew:"Withdraw",task:"Mission",backwater:"Rebate",appDownload:"APP Download",management:"Manage",contact:"Contact"},game:{search:"Search",hot:"Hot",allPlatform:"All brands",loadingRecent:"Recent",loadingCollect:"Favorites",menue:"Games",loadingAll:"All",searchPlaceholder:"Search",liveLine:"Channel",fifaClubLive:"FIFA Live",hk:{convidar_dz:"Invited {0} players",recebido_dz:"Received: {0}",total_dz:"Total: {0}",distancia_dz:"Remaining: {0}",montante_dz:"Lump Sum: {0}"}},aside:{jackpot:{cumulativeReward:"Jackpot has accumulated winnings<em>{amount}</em>({count}x)"}},gameMenu:{all:"All",home:"Home",loadingRecent:"Recent",loadingCollect:"Favorites",loadingDemo:"Demo",menu0:"Hot",menu1:"Cards",menu2:"Fishing",menu3:"Slot",menu4:"Live",menu5:"Sports",menu6:"Cockfight",menu7:"E-Sports",menu8:"Lottery",menu9:"Club",menu10:"Friends",menu11:"Mini Games",menu14:"More",menu20:"Demo",menu100:"Recent",menu101:"Favorites",allmenu1:"All Cards",allmenu2:"All Fishing",allmenu3:"All Slot",allmenu11:"All Blockchains",allmenu20:"Demo",menuClub:"Club",menuFriend:"Friends",tipsClub:"Can only be used on the APP side!",toDownloadApp:"Download now",NotToDownloadApp:"Download L
2ater"},modal:{login:{label:"Login"},register:{label:"Register"}},footer:{quickJump:{recreationCity:"Casino"}},selfoperatedGames:{sports:{soccer:"Football",basketball:"Basketball",cricketBall:"Cricket",football:"American Football",iceHockey:"Ice hockey",tennis:"Tennis",volleyball:"Volleyball",billiards:"Snooker",baseball:"Baseball",badminton:"Badminton",golf:"Golf",motorsports:"Racing",swimming:"Swim",politics:"Politics",water:"Water polo",diving:"Diving",boxing:"Boxing",tableTennis:"Table Tennis",handball:"Handball",darts:"Darts",rugby:"Rugby",judo:"Judo",ESports:"Esports",beachVolleyball:"Beach Volleyball",finance:"Finance",lotto:"Lotto"}},event:{marketing:{newbieBenefit:"Newplayer",task:"Mission",cashback:"Rebate",rechargeFund:"Fund",yuebao:"Interest",canReceive:"Unclaimed",blindBox:"Blind box",promoteAgent:"Invite"}},theme18_dz:{mid:{activityTitle:"Invite friends",task:"Earn 1 million every month"}},theme27_dz:{home:{promoteTitle:"Earn one million per month",popular:"Popular",total:"All",distancial:"Remaining",recebido:"Received",totalAmount:"Total amount",invite:"Invite",player:"Player",open:"Open",justWin:"Just won",jackpotTitle:"Play for free, the award is waiting for you",downloadTips:"Fast and stable, enjoy at your fingertips"}},theme42_dz:{home:{winner:"I am the winner"}},theme64_dz:{tabbar:{discount:"Promo"}},theme82_dz:{gameMenu:{menu102:"More",menu103:"External links",search:"Search"},wantSearch:"Guess you want to search"},theme117_dz:{gameMenu:{menu102:"More",menu103:"",search:"Search"},wantSearch:"Guess you want to search"},theme123_dz:{gameMenu:{menu102:"More",menu103:"",search:"Search"},wantSearch:"Guess you want to search"},system:{promoteAgent:"Invite"},theme125_dz:{gameMenu:{menu102:"More",menu103:"External links",search:"Search"}}}},NM={lobby:{plan:{header:{search:"Pesquisar",recharge:"Depósito",withdraw:"Saques",Interest:"Juros",login:"Login",register:"Registro"},middle:{clickLogin:"Login",signUp:"Registro",menu:{vip:"VIP",download:"Baixar App",commonQuestion:"Faq",about:"Sobre",aboutUsSub:"Sobre Nós",forbiddenSelf:"Auto-Reestrição",Interest:"Juros",rechargeFund:"Fundo",pickUpRecord:"Histórico",waitingCollect:"Recompensas",backwater:"Taxa de Rebate",task:"Missão",active:"Eventos",bettingRecord:"Apostas",promote:"Agente",feedback:"Bônus De Sugestão",service:"Suporte",withDraw:"Saques",recharge:"Depósito",security:"Segurança",settings:"Dados",discount:"Ofertas",accountDetails:"Conta",personalStatement:"Relatório",withdrawalManagement:"Gestão de saques",language:"Idioma",audit:"Missões De Apostas",facebook:"Facebook Login",google:"Google Login",line:"Line Login",more:"Mais",blindBoxLottery:"Surpresa",findUs:"Encontre-nos",clubBillSettlement:"Liquidação de contas",clubLoan:"Empréstimo",customerPay:"Depósito Manual"},gameMenu:{loadingRecent:"Recente",loadingCollect:"Favoritos",loadingDemo:"Demo",menu0:"Popular",menu1:"Cartas",menu2:"Pescaria",menu3:"Slots",menu4:"Ao Vivo",menu5:"Esporte",menu6:"Brigas Galos",menu7:"Esports",menu8:"Loteria",menu9:"Clube",menu10:"Amigos",menu11:"Minijogos",menu12:"Mesa de quarto",menu14:"Mais",menu20:"Demo"},tabs:{hot:"Popular",loadingRecent:"Recente",loadingCollect:"Favoritos"}},tabbar:{home:"Começar",menu:"Menu",event:"Eventos",service:"Suporte",download:"Baixar APP",discount:"Ofertas",recharge:"Depósito",withDraw:"Saques",register:"Registro",login:"Login",mine:"Perfil",balance_dz:"Saldo",task:"Missão",backwater:"Taxa de Rebate",vip:"VIP",Interest:"Juros",promote:"Agente",rechargeFund:"Fundo",waitingCollect:"Recompensas",pickUpRecord:"Histórico",blindBoxLottery:"Surpresa",luckySpin:"Spins",svip:"SVIP"}},tabbar:{home:"Começar",menu:"Menu",event:"Eventos",service:"Suporte",download:"Baixar APP",discount:"Ofertas",recharge:"Depósito",withDraw:"Saques",register:"Registro",login:"Login",mine:"Perfil",balance_dz:"Saldo",rechargeNew:"Depósito",withDrawNew:"Saques",task:"Missão",backwater:"Taxa de Rebate",appDownload:"Baixar APP",management:"Gerenciar",contact:"Suporte"},game:{search:"Pesquisar",hot:"Popular",allPlatform:"Todas as Marcas",loadingRecent:"Recente",loadingCollect:"Favoritos",menue:"Jogos",loadingAll:"Tudo",searchPlaceholder:"Pesquisar",liveLine:"Canal",fifaClubLive:"FIFA Ao Vivo",hk:{convidar_dz:"Convidar {0} jogador",recebido_dz:"Recebido:{0}",total_dz:"Total:{0}",distancia_dz:"Distância:{0}",montante_dz:"Montante fixo:{0}"}},aside:{jackpot:{cumulativeReward:"Jackpot com ganhos acumulados<em>{amount}</em>({count} Vezes)"}},gameMenu:{all:"Tudo",home:"Começar",loadingRecent:"Recente",loadingCollect:"Favoritos",loadingDemo:"Demo",menu0:"Popular",menu1:"Cartas",menu2:"Pescaria",menu3:"Slots",menu4:"Ao Vivo",menu5:"Esporte",menu6:"Brigas Galos",menu7:"Esports",menu8:"Loteria",menu9:"Clube",menu10:"Amigos",menu11:"Minijogos",menu14:"Mais",menu20:"Demo",menu100:"Recente",menu101:"Favoritos",allmenu1:"Tudo de Cartas",allmenu2:"Tudo de Pescaria",allmenu3:"Tudo de Slots",allmenu11:"Todas as Blockchains",allmenu20:"Demo",menuClub:"Clube",menuFriend:"Amigos",tipsClub:"Só pode ser utilizado no aplicativo!",toDownloadApp:"Baixar Agora",NotToDownloadApp:"Baixar Depois"},modal:{login:{label:"Login"},register:{label:"Registro"}},footer:{quickJump:{recreationCity:"Casino"}},selfoperatedGames:{sports:{soccer:"Futebol",basketball:"Basquete",cricketBall:"Grilo",football:"Futebol Americano",iceHockey:"Hóquei no gelo",tennis:"Tênis",volleyball:"Voleibol",billiards:"Sinuca",baseball:"Beisebol",badminton:"Badminton",golf:"Golfe",motorsports:"Corrida",swimming:"Natação",politics:"PolÃtica",water:"Pólo aquático",diving:"Salto ornamental",boxing:"Boxe",tableTennis:"Tênis de mesa",handball:"Handebol",darts:"Dardos",rugby:"Rugby",judo:"Judô",ESports:"Esports",beachVolleyball:"Vôlei de praia",finance:"Financeiro",lotto:"Loteria"}},event:{marketing:{newbieBenefit:"Novo Usuário",task:"Tarefas",cashback:"Rebate",rechargeFund:"Fundo",yuebao:"Juros",canReceive:"Recompensas",blindBox:"Surpresa",promoteAgent:"Promoção"}},theme18_dz:{mid:{activityTitle:"Convidar amigos",task:"Ganhe 1 milhão por mês"}},theme27_dz:{home:{promoteTitle:"Ganhe um milhão por mês",popular:"Popular",total:"Tudo",distancial:"Restantes",recebido:"Recebido",totalAmount:"pagamento único",invite:"Convidar",player:"Jogador",open:"Abrir",justWin:"Acabei de Ganhar",jackpotTitle:"Jogue gratuitamente e ganhe prêmios incrÃveis!",downloadTips:"Velocidade extrema e estabilidade, tudo na ponta dos seus dedos para você desfrutar"}},theme42_dz:{home:{winner:"Eu sou o vencedor"}},theme64_dz:{tabbar:{discount:""}}
2,theme82_dz:{gameMenu:{menu102:"Mais",menu103:"Links externos",search:"Pesquisar"},wantSearch:"Acho que você quer pesquisar"},theme117_dz:{gameMenu:{menu102:"Mais",menu103:"",search:"Pesquisar"},wantSearch:"Acho que você quer pesquisar"},theme123_dz:{gameMenu:{menu102:"Mais",menu103:"",search:"Pesquisar"},wantSearch:"Acho que você quer pesquisar"},system:{promoteAgent:"Promoção"},theme125_dz:{gameMenu:{menu102:"",menu103:"Links externos",search:"Pesquisar"}}}},kM={lobby:{plan:{header:{search:"Maghanap",recharge:"Deposit",withdraw:"Withdraw",Interest:"Interes",login:"Login",register:"Register"},middle:{clickLogin:"Mag Log In",signUp:"Magrehistro",menu:{vip:"VIP",download:`I-download 3ang App`,commonQuestion:"Karaniwang Problema",about:"Tungkol sa",aboutUsSub:"Tungkol sa Atin",forbiddenSelf:"Pagpigil sa sarili",Interest:"Interes",rechargeFund:"Pondo",pickUpRecord:"Kasaysayan",waitingCollect:"Unreceived",backwater:"Rebate",task:"Gawain",active:"Aktibidad",bettingRecord:"Record ng Pagtaya",promote:"Magtaguyod ng Pera",feedback:`Award 4Feedback`,service:"Support",withDraw:"Withdraw",recharge:"Deposit",security:"Sentro ng Seguridad",settings:"Profile",discount:"Promosyon",accountDetails:"Statement",personalStatement:`Personal na 5Ulat`,withdrawalManagement:"Pamamahala",language:"Wika",audit:"Mga gawain sa pagtaya",facebook:"Facebook Login",google:"Google Login",line:"Line Login",more:"Higit pa",blindBoxLottery:"Blind box",findUs:"Hanapin mo kami",clubBillSettlement:"Pag-aayos ng bayarin",clubLoan:"Pautang",customerPay:"Manu-manong Deposito"},gameMenu:{loadingRecent:"Kamakailan",loadingCollect:"Mangolekta",loadingDemo:"Subukan",menu0:"Hot",menu1:"Baraha",menu2:"Fishing",menu3:"Scatter",menu4:"Live",menu5:"Sports",menu6:"Sabong",menu7:"Paglalaro",menu8:"Lottery",menu9:"Club",menu10:"Friend Office",menu11:"Arcade",menu12:"Kawanihan ng silid",menu14:"Higit pa",menu20:"Subukan"},tabs:{hot:"Hot",loadingRecent:"Kamakailan",loadingCollect:"Mangolekta"}},tabbar:{home:"Home",menu:"Menu",event:"Aktibidad",service:"Support",download:`I-download 6ang App`,discount:"Promosyon",recharge:"Deposit",withDraw:"Withdraw",register:"Register",login:"Login",mine:"Profile",balance_dz:"Balansehin",task:"Gawain",backwater:"Rebate",vip:"VIP",Interest:"Interes",promote:"Magtaguyod ng Pera",rechargeFund:"Pondo",waitingCollect:"Unreceived",pickUpRecord:"Kasaysayan",blindBoxLottery:"Blind box",luckySpin:"Spins",svip:"SVIP"}},tabbar:{home:"Home",menu:"Menu",event:"Aktibidad",service:"Support",download:`I-download 7ang App`,discount:"Promosyon",recharge:"Deposit",withDraw:"Withdraw",register:"Register",login:"Login",mine:"Profile",balance_dz:"Balansehin",rechargeNew:"Deposit",withDrawNew:"Withdraw",task:"Gawain",backwater:"Rebate",appDownload:`I-download 8ang App`,management:"Pamahalaan",contact:"Kumonekta"},game:{search:"Maghanap",hot:"Hot",allPlatform:"Lahat ng Brand",loadingRecent:"Kamakailan",loadingCollect:"Mangolekta",menue:"Laro",loadingAll:"Lahat",searchPlaceholder:"Maghanap",liveLine:"Channel",fifaClubLive:"FIFA Live",hk:{convidar_dz:"",recebido_dz:"",total_dz:"",distancia_dz:"",montante_dz:""}},aside:{jackpot:{cumulativeReward:"Naiipong papremyo sa jackpot<em>{amount}</em>({count} Dalas)"}},gameMenu:{all:"Lahat",home:"Unang Pahina",loadingRecent:"Kamakailan",loadingCollect:"Mangolekta",loadingDemo:"Subukan",menu0:"Hot",menu1:"Baraha",menu2:"Fishing",menu3:"Scatter",menu4:"Live",menu5:"Sports",menu6:"Sabong",menu7:"Paglalaro",menu8:"Lottery",menu9:"Club",menu10:"Friend Office",menu11:"Arcade",menu14:"Higit pa",menu20:"Subukan",menu100:"Kamakailan",menu101:"Mangolekta",allmenu1:"Lahat Chess",allmenu2:"Lahat Pangingisda",allmenu3:"Lahat Elektronik",allmenu11:"Lahat ng mga laro ng blockchain",allmenu20:"Subukan",menuClub:"Club",menuFriend:"Friend Office",tipsClub:"Magagamit lamang ito sa panig ng APP!",toDownloadApp:"I-download",NotToDownloadApp:"Download Mamaya"},modal:{login:{label:"Login"},register:{label:"Register"}},footer:{quickJump:{recreationCity:"Casino"}},selfoperatedGames:{sports:{soccer:"Football",basketball:"Basketball",cricketBall:"Kuliglig",football:"Football",iceHockey:"Ice Hockey",tennis:"Tennis",volleyball:"Volleyball",billiards:"Snooker",baseball:"Baseball",badminton:"Badminton",golf:"Golf",motorsports:"Pangkarerang kotse",swimming:"Lumangoy",politics:"Pulitika",water:"Water polo",diving:"Pagsisid",boxing:"Boksing",tableTennis:"Ping pong",handball:"handball",darts:"Darts",rugby:"Rugby",judo:"Judo",
8ESports:"Esports",beachVolleyball:"Beach Volleyball",finance:"Pananalapi",lotto:"Lotto"}},event:{marketing:{newbieBenefit:"Newplayer",task:"Task Center",cashback:"Instant Rebate",rechargeFund:"Pondo",yuebao:"Interes",canReceive:"Unreceived",blindBox:"Blind box",promoteAgent:"Imbitasyon"}},theme18_dz:{mid:{activityTitle:"",task:""}},theme27_dz:{home:{promoteTitle:"",popular:"",total:"",distancial:"",recebido:"",totalAmount:"kabuuan",invite:"",player:"",open:"",justWin:"Nanalo lang ng",jackpotTitle:"",downloadTips:""}},theme42_dz:{home:{winner:"Ako ang nanalo"}},theme64_dz:{tabbar:{discount:""}},theme82_dz:{gameMenu:{menu102:"Higit pa",menu103:"Mga panlabas na link",search:"Maghanap"},wantSearch:"Hulaan mo gusto mong maghanap"},theme117_dz:{gameMenu:{menu102:"Higit pa",menu103:"",search:"Maghanap"},wantSearch:"Hulaan mo gusto mong maghanap"},theme123_dz:{gameMenu:{menu102:"Higit pa",menu103:"",search:"Maghanap"},wantSearch:"Hulaan mo gusto mong maghanap"},system:{promoteAgent:"Imbitasyon"},theme125_dz:{gameMenu:{menu102:"",menu103:"Mga panlabas na link",search:"Maghanap"}}}},BM={lobby:{plan:{header:{search:"Tìm Kiếm",recharge:"Nạp Tiá»n",withdraw:"Rút Tiá»n",Interest:"Sinh Lá»i",login:"ÄÄng Nháºp",register:"ÄÄng Ký"},middle:{clickLogin:"ÄÄng Nháºp",signUp:"ÄÄng Ký",menu:{vip:"VIP",download:"Tải App",commonQuestion:"Vấn Äá» Thưá»ng Gặp",about:"Giá»i Thiá»u Vá»",aboutUsSub:"Vá» Chúng Tôi",forbiddenSelf:"Tá»± Hạn Chế",Interest:"Sinh Lá»i",rechargeFund:"Quỹ",pickUpRecord:"Äã Nháºn",waitingCollect:"Äang Chá» Nháºn",backwater:"Hoà n Trả",task:"Nhiá»m Vụ",active:"Khuyến Mãi",bettingRecord:"Lá»ch Sá» Äặt Cược",promote:"Äại Lý",feedback:"Phản Há»i",service:"CSKH",withDraw:"Rút Tiá»n",recharge:"Nạp Tiá»n",security:"Bảo Máºt",settings:"Thông Tin Cá Nhân",discount:"Khuyến Mãi",accountDetails:"Tà i Khoản",personalStatement:"Báo Cáo",withdrawalManagement:"Quản Lý Rút Tiá»n",language:"Ngôn Ngữ",audit:"Nhiá»m Vụ Cược",facebook:"Facebook ÄÄng Nháºp",google:"Google ÄÄng Nháºp",line:"Line ÄÄng Nháºp",more:"Thêm",blindBoxLottery:"Há»p Mù",findUs:"Tìm Chúng Tôi",clubBillSettlement:"Thanh Toán Hóa ÄÆ¡n",clubLoan:"TÃn Dụng",customerPay:"Äặt cá»c thá»§ công"},gameMenu:{loadingRecent:"Lá»ch Sá»",loadingCollect:"Yêu ThÃch",loadingDemo:"ChÆ¡i Thá»",menu0:"Hot",menu1:"Game Bà i",menu2:"Bắn Cá",menu3:"Ná» HÅ©",menu4:"Casino",menu5:"Thá» Thao",menu6:"Äá Gà ",menu7:"E-Sports",menu8:"Xá» Sá»",menu9:"CLB",menu10:"Bạn",menu11:"Blockchain",menu12:"VÄn phòng phòng",menu14:"Thêm",menu20:"ChÆ¡i Thá»"},tabs:{hot:"Hot",loadingRecent:"Lá»ch Sá»",loadingCollect:"Yêu ThÃch"}},tabbar:{home:"Trang Chá»§",menu:"Thá»±c ÄÆ¡n",event:"Khuyến Mãi",service:"CSKH",download:"Tải APP",discount:"Khuyến Mãi",recharge:"Nạp Tiá»n",withDraw:"Rút Tiá»n",register:"ÄÄng Ký",login:"ÄÄng Nháºp",mine:"Tôi",balance_dz:"Sá» dư",task:"Nhiá»m Vụ",backwater:"Hoà n Trả",vip:"VIP",Interest:"Sinh Lá»i",promote:"Äại Lý",rechargeFund:"Quỹ",waitingCollect:"Äang Chá» Nháºn",pickUpRecord:"Äã Nháºn",blindBoxLottery:"Há»p Mù",luckySpin:"Vòng Quay",svip:"SVIP"}},tabbar:{home:"Trang Chá»§",menu:"THá»°C ÄÆ N",event:"KHUYẾN MÃI",service:"CSKH",download:"TẢI APP",discount:"KHUYẾN MÃI",recharge:"NẠP TIá»N",withDraw:"RÃT TIá»N",register:"ÄÄng Ký",login:"ÄÄng Nháºp",mine:"TÃI",balance_dz:"Sá» DƯ",rechargeNew:"NẠP TIá»N",withDrawNew:"RÃT TIá»N",task:"NHIá»M VỤ",backwater:"HOÃN TRẢ",appDownload:"TẢI APP",management:"QUẢN LÃ",contact:"LIÃN Há»"},game:{search:"Tìm Kiếm",hot:"HOT",allPlatform:"Tất cả thương hiá»u",loadingRecent:"Lá»CH SỬ",loadingCollect:"YÃU THÃCH",menue:"Trò ChÆ¡i",loadingAll:"Tất Cả",searchPlaceholder:"Tìm Kiếm",liveLine:"kênh",fifaClubLive:"FIFA Trá»±c tiếp",hk:{convidar_dz:"",recebido_dz:"",total_dz:"",distancia_dz:"",montante_dz:""}},aside:{jackpot:{cumulativeReward:"Jackpot Äã tÃch lÅ©y tiá»n thắng<em>{amount}</em>({count} lần)"}},gameMenu:{all:"Tất Cả",home:"TRANG CHỦ",loadingRecent:"Lá»CH SỬ",loadingCollect:"YÃU THÃCH",loadingDemo:"CHÆ I THỬ",menu0:"HOT",menu1:"GAME BÃI",menu2:"BẮN CÃ",menu3:"Ná» HŨ",menu4:"CASINO",menu5:"THá» THAO",menu6:"Äà GÃ",menu7:"E-SPORTS",menu8:"Xá» Sá»",menu9:"CLB",menu10:"BẠN",menu11:"BLOCKCHAIN",menu14:"Thêm",menu20:"CHÆ I THỬ",menu100:"Lá»ch Sá»",menu101:"Yêu ThÃch",allmenu1:"TẤT CẢ GAME BÃI",allmenu2:"TẤT CẢ BẮN CÃ",allmenu3:"TẤT CẢ Ná» HŨ",allmenu11:"Má»i blockchain",allmenu20:"CHÆ I THỬ",menuClub:"CLB",menuFriend:"BẠN",tipsClub:"Nó chá» có thá» ÄÆ°á»£c sá» dụng á» phÃa APP!",toDownloadApp:"Tải APP",NotToDownloadApp:"Tải Xuá»ng Sau"},modal:{login:{label:"ÄÄng Nháºp"},register:{label:"ÄÄng Ký"}},footer:{quickJump:{recreationCity:"Giải TrÃ"}},selfoperatedGames:{sports:{soccer:"Bóng Äá",basketball:"Bóng Rá»",cricketBall:"Bóng Gáºy",football:"Bóng Bầu Dục",iceHockey:"Khúc Côn Cầu",tennis:"Quần Vợt",volleyball:"Bóng Chuyá»n",billiards:"Bi Da",baseball:"Bóng Chà y",badminton:"Cầu Lông",golf:"Golf",motorsports:"Äua Xe",swimming:"BÆ¡i Lá»i",politics:"ChÃnh Trá»",water:"Bóng Nưá»c",diving:"Nhảy Cầu",boxing:"Boxing",tableTennis:"Bóng Bà n",handball:"Bóng Ném",darts:"Phi Tiêu",rugby:"Bóng Bầu Dục",judo:"Nhu Äạo",ESports:"Esports",beachVolleyball:"Bóng Chuyá»n Biá»n",finance:"Tà i ChÃnh",lotto:"Xá» Sá»"}},event:{marketing:{newbieBenefit:"Tân thá»§",task:"Nhiá»m Vụ",cashback:"Hoà n Trả",rechargeFund:"Quỹ",yuebao:"Sinh Lá»i",canReceive:"Äang Chá» Nháºn",blindBox:"Há»p Mù",promoteAgent:"Má»i Bạn"}},theme18_dz:{mid:{activityTitle:"",task:""}},theme27_dz:{home:{promoteTitle:"",popular:"",total:"",distancial:"",recebido:"",totalAmount:"tá»ng sá» tiá»n",invite:"",player:"",open:"",justWin:"Vừa thắng",jackpotTitle:"",downloadTips:""}},theme42_dz:{home:{winner:"Tôi là ngưá»i chiến thắng"}},theme64_dz:{tabbar:{discount:"Khuyến Mãi"}},theme82_dz:{gameMenu:{menu102:"Thêm",menu103:"Liên kết ngoà i",search:"Tìm Kiếm"},wantSearch:"Tôi Äoán bạn muá»n tìm kiếm"},theme117_dz:{gameMenu:{menu102:"Thêm",menu103:"",search:"Tìm Kiếm"},wantSearch:"Tôi Äoán bạn muá»n tìm kiếm"},theme123_dz:{gameMenu:{menu102:"Thêm",menu103:"",search:"Tìm Kiếm"},wantSearch:"Tôi Äoán bạn muá»n tìm kiếm"},system:{promoteAgent:"Má»i Bạn"},theme125_dz:{gameMenu:{menu102:"Thêm",menu103:"Liên kết ngoà i",search:"TÃM KIẾM"}}}},HM={lobby:{plan:{header:{search:"æç´¢",recharge:"忬¾",withdraw:"æç°",Interest:"婿¯å®",login:"ç» å½",register:"注 å"},middle:{clickLogin:"ç¹å»ç»å½",signUp:"ç«å³æ³¨å",menu:{vip:"VIP",download:"APPä¸è½½",commonQuestion:"常è§é®é¢",about:"å
³äº",aboutUsSub:"å
³äºæä»¬",forbiddenSelf:"èªæç¦æ¢",Interest:"婿¯å®",rechargeFund:"å
¬ç§¯é",pickUpRecord:"é¢åè®°å½",waitingCollect:"å¾
é¢å",backwater:"è¿æ°´",task:"ä»»å¡",active:"æ´»å¨",bettingRecord:"ææ³¨è®°å½",promote:"æ¨å¹¿èµé±",feedback:"æå¥åé¦",service:"客æ",withDraw:"æç°",recharge:"忬¾",security:"å®å
¨ä¸å¿",settings:"ä¸ªäººèµæ",discount:"伿 ",accountDetails:"è´¦æ·æç»",personalStatement:"个人æ¥è¡¨",withdrawalManagement:"æç°ç®¡ç",language:"è¯è¨",audit:"ææ³¨ä»»å¡",facebook:"Facebook ç»å½",google:"Google ç»å½",line:"Line ç»å½",more:"æ´å¤",blindBoxLottery:"ç²çæ½å¥",findUs:"æ¾å°æä»¬",clubBillSettlement:"è´¦åç»ç®",clubLoan:"ä¿¡ç¨å款",customerPay:"客æä»£å
"},gameMenu:{loadingRecent:"æ è¿",loadingCollect:"æ¶ è",loadingDemo:"è¯ ç©",menu0:"ç é¨",menu1:"æ£ ç",menu2:"æ é±¼",menu3:"çµ å",menu4:"ç 人",menu5:"ä½ è²",menu6:"æ 鸡",menu7:"çµ ç«",menu8:"彩 票",menu9:"俱ä¹é¨",menu10:"æåå±",menu11:"åºåé¾",menu12:"æ¿é´å±",menu14:"æ´å¤",menu20:"è¯ ç©"},tabs:{hot:"çé¨",loadingRecent:"æè¿",loadingCollect:"æ¶è"}},tabbar:{home:"é¦é¡µ",menu:"èå",event:"æ´»å¨",service:"客æ",download:"APPä¸è½½",discount:"伿 ",recharge:"忬¾",withDraw:"æç°",register:"注å",login:"ç»å½",mine:"æç",balance_dz:"ä½é¢",task:"ä»»å¡",backwater:"è¿æ°´",vip:"VIP",Interest:"婿¯å®",promote:"æ¨å¹¿èµé±",rechargeFund:"å
¬ç§¯é",waitingCollect:"å¾
é¢å",pickUpRecord:"é¢åè®°å½",blindBoxLottery:"ç²çæ½å¥",luckySpin:"幸è¿è½¬ç",svip:"éèSVIP"}},tabbar:{home:"é¦é¡µ",menu:"èå",event:"æ´»å¨",service:"客æ",download:"APPä¸è½½",discount:"伿 ",recharge:"忬¾",withDraw:"æç°",register:"注å",login:"ç»å½",mine:"æç",balance_dz:"ä½é¢",rechargeNew:"忬¾",withDrawNew:"æç°",task:"ä»»å¡",backwater:"è¿æ°´",appDownload:"APPä¸è½½",management:"管ç",contact:"èç³»"},game:{search:"æç´¢",hot:"çé¨",allPlatform:"å
¨é¨åç",loadingRecent:"æè¿",loadingCollect:"æ¶è",menue:"游æ",loadingAll:"å
¨é¨",searchPlaceholder:"æç´¢æ¸¸æ",liveLine:"é¢é",fifaClubLive:"FIFAç´æ",hk:{convidar_dz:"é请{0}ä½ç©å®¶",recebido_dz:"累计æ¶å°çéé¢ : {0}",total_dz:"å·²é请å°çæ»äººæ° : {0}",distancia_dz:"è·ç¦»ä¸ä¸ä¸ªçº¢å
å·®çäººæ° : {0}",montante_dz:"æé«å¯ä»¥æ¿å°å¤å°éé¢ : {0}"}},aside:{jackpot:{cumulativeReward:"彩鿱 已累计å¼å¥<em>{amount}</em>({count}次)"}},gameMenu:{all:"å
¨ é¨",home:"é¦ é¡µ",loadingRecent:"æ è¿",loadingCollect:"æ¶ è",loadingDemo:"è¯ ç©",menu0:"ç é¨",menu1:"æ£ ç",menu2:"æ é±¼",menu3:"çµ å",menu4:"ç 人",menu5:"ä½ è²",menu6:"æ 鸡",menu7:"çµ ç«",menu8:"彩 票",menu9:"俱ä¹é¨",menu10:"æåå±",menu11:"åºåé¾",menu14:"æ´å¤",menu20:"è¯ ç©",menu100:"æè¿",menu101:"æ¶è",allmenu1:"å
¨é¨æ£ç",allmenu2:"å
¨é¨æé±¼",allmenu3:"å
¨é¨çµå",allmenu11:"å
¨é¨åºåé¾",allmenu20:"å
¨é¨è¯ç©",menuClub:"俱ä¹é¨",menuFriend:"æåå±",tipsClub:"åªè½å¨APP端使ç¨å¦ï¼",toDownloadApp:"ç«å³ä¸è½½",NotToDownloadApp:"ç¨åä¸è½½"},modal:{login:{label:"ç» å½"},register:{label:"注 å"}},footer:{quickJump:{recreationCity:"娱ä¹å"}},selfoperatedGames:{sports:{soccer:"è¶³ç",basketball:"篮ç",cricketBall:"æ¿ç",football:"ç¾å¼è¶³ç",iceHockey:"å°ä¸æ²æ£ç",tennis:"ç½ç",volleyball:"æç",billiards:"æ¯è¯ºå
",baseball:"æ£ç",badminton:"ç¾½æ¯ç",golf:"é«å°å¤«ç",motorsports:"èµè½¦",swimming:"游泳",politics:"æ¿æ²»",water:"æ°´ç",diving:"跳水",boxing:"æ³å»",tableTennis:"ä¹ä¹ç",handball:"æç",darts:"é£é",rugby:"æ©æ¦ç",judo:"æé",ESports:"çµåç«æ",beachVolleyball:"æ²æ»©æç",finance:"éè",lotto:"ä¹é"}},event:{marketing:{newbieBenefit:"æ°äººç¦å©",task:"ä»»å¡ä¸å¿",cashback:"宿¶è¿æ°´",rechargeFund:"å
¬ç§¯é",yuebao:"婿¯å®",canReceive:"å¾
é¢å",blindBox:"ç²çæ½å¥",promoteAgent:"å享èµé±"}},theme18_dz:{mid:{activityTitle:"æ¨è好å",task:"æ¯æèµåä¸ç¾ä¸"}},theme27_dz:{home:{promoteTitle:"æ¯æèµä¸ç¾ä¸",popular:"忬¢è¿ç",total:"å
¨é¨",distancial:"è·ç¦»",recebido:"å·²æ¶å°",totalAmount:"æ»éé¢",invite:"å·²é请",player:"ç©å®¶",open:"æå¼",justWin:"ååèµ¢äº",jackpotTitle:"å
è´¹ç©æå¤§å¥ççä½ ",downloadTips:"æéç¨³å® å°½äº«ä½ çæå°"}},theme42_dz:{home:{winner:"æä¸ºèµ¢å®¶"}},theme64_dz:{tabbar:{discount:"伿 "}},theme82_dz:{gameMenu:{menu102:"æ´å¤",menu103:"å¤é¾",search:"æç´¢"},wantSearch:"çä½ æ³æ"},theme117_dz:{gameMenu:{menu102:"æ´å¤",menu103:"å¤é¾",search:"æç´¢"},wantSearch:"çä½ æ³æ"},theme123_dz:{gameMenu:{menu102:"æ´å¤",menu103:"å¤é¾",search:"æç´¢"},wantSearch:"çä½ æ³æ"},system:{promoteAgent:"å享èµé±"},theme125_dz:{gameMenu:{menu102:"æ´å¤",menu103:"å¤é¾",search:"æç´¢"}}}},el={zh:{OldWebLobby:"zh_CN",WgSportService:"CMN",WgSportLiveAnimation:"zh",GeetestService:"zho",Cloudflare:"zh-cn",BaseLocale:HM,CountryName:"China"},en:{OldWebLobby:"en_US",WgSportService:"ENG",WgSportLiveAnimation:"en",GeetestService:"eng",Cloudflare:"en",BaseLocale:MM,CountryName:"USA"},hi:{OldWebLobby:"hi_IN",WgSportService:"HIN",WgSportLiveAnimation:"hi",GeetestService:"him",Cloudflare:"hi",BaseLocale:()=>V(()=>import("../locales/hi.9SVnA8yq.js"),[]),CountryName:"India"},vi:{OldWebLobby:"vi_VN",WgSportService:"VIE",WgSportLiveAnimation:"vi",GeetestService:"vie",Cloudflare:"vi",BaseLocale:BM,CountryName:"Vietnam"},ja:{OldWebLobby:"ja_JP",WgSportService:"JPN",WgSportLiveAnimation:"ja",GeetestService:"jpn",Cloudflare:"ja",BaseLocale:()=>V(()=>import("../locales/ja.DOU1TLJn.js"),[]),CountryName:"Japan"},id:{OldWebLobby:"id_ID",WgSportService:"IND",WgSportLiveAnimation:"en",GeetestService:"ind",Cloudflare:"id",BaseLocale:()=>V(()=>import("../locales/id.BID_TF74.js"),[]),CountryName:"Indonesia"},zh_hk:{OldWebLobby:"zh_TW",WgSportService:"ZHO",WgSportLiveAnimation:"zht",GeetestService:"zho-tw",Cloudflare:"zh-tw",BaseLocale:()=>V(()=>import("../locales/zh_hk.cK0-xUhz.js"),[]),CountryName:"Hong Kong",htmlLang:"zh-hk"},es:{OldWebLobby:"es_ES",WgSportService:"SPA",WgSportLiveAnimation:"es",GeetestService:"spa",Cloudflare:"es",BaseLocale:()=>V(()=>import("../locales/es.WgJiqBH9.js"),[]),CountryName:"Spain"},tl:{OldWebLobby:"tl_PH",WgSportService:"ENG",WgSportLiveAnimation:"en",GeetestService:"fil",Cloudflare:"tl",BaseLocale:kM,CountryName:"Philippines"},th:{OldWebLobby:"th_TH",WgSportService:"THA",WgSportLiveAnimation:"tha",GeetestService:"tha",Cloudflare:"th",BaseLocale:()=>V(()=>import("../locales/th.CYt1w2JA.js"),[]),CountryName:"Thailand"},pt:{OldWebLobby:"pt_PT",WgSportService:"BRA",WgSportLiveAnimation:"br",GeetestService:"por",Cloudflare:"pt",BaseLocale:NM,CountryName:"Portugal"},km:{OldWebLobby:"km_KH",WgSportService:"ENG",WgSportLiveAnimation:"en",GeetestService:"khm",Cloudflare:"en",BaseLocale:()=>V(()=>import("../locales/km.Bra2_LKT.js"),[]),CountryName:"Cambodia"},ko:{OldWebLobby:"ko_KR",WgSportService:"KOR",WgSportLiveAnimation:"ko",GeetestService:"kor",Cloudflare:"ko",BaseLocale:()=>V(()=>import("../locales/ko.BQ71m8D1.js"),[]),CountryName:"Korea"},fr:{OldWebLobby:"fr_FR",WgSportService:"FRA",WgSportLiveAnimation:"fr",GeetestService:"fra",Cloudflare:"fr",BaseLocale:()=>V(()=>import("../locales/fr.BNeTaCNL.js"),[]),CountryName:"France"},de:{OldWebLobby:"de_DE",WgSportService:"DEU",WgSportLiveAnimation:"de",GeetestService:"deu",Cloudflare:"de",BaseLocale:()=>V(()=>import("../locales/de.D3hAOcIx.js"),[]),CountryName:"Germany"},it:{OldWebLobby:"it_IT",WgSportService:"ENG",WgSportLiveAnimation:"en",GeetestService:"isl",Cloudflare:"it",BaseLocale:()=>V(()=>import("../locales/it.C6XNPGef.js"),[]),CountryName:"Italy"},te:{OldWebLobby:"te_IN",WgSportService:"ENG",WgSportLiveAnimation:"en",GeetestService:"tel",Cloudflare:"en",BaseLocale:()=>V(()=>import("../locales/te.CtS_wtel.js"),[]),CountryName:"India"},ta:{OldWebLobby:"ta_LK",WgSportService:"ENG",WgSportLiveAnimation:"en",GeetestService:"tam",Cloudflare:"en",BaseLocale:()=>V(()=>import("../locales/ta.BS3tkMl4.js"),[]),CountryName:"Sri Lanka"},mr:{OldWebLobby:"mr_IN",WgSportService:"ENG",WgSportLiveAnimation:"en",GeetestService:"mar",Cloudflare:"en",BaseLocale:()=>V(()=>import("../locales/mr.CgrnJZSH.js"),[]),CountryName:"India"},kn:{OldWebLobby:"kn_IN",WgSportService:"ENG",WgSportLiveAnimation:"en",GeetestService:"kan",Cloudflare:"en",BaseLocale:()=>V(()=>import("../locales/kn.CV3Md88T.js"),[]),CountryName:"India"},my:{OldWebLobby:"my_MM",WgSportService:"ENG",WgSportLiveAnimation:"en",GeetestService:"mya",Cloudflare:"en",BaseLocale:()=>V(()=>import("../locales/my.BR-asXeM.js"),[]),CountryName:"Myanmar"},tr:{OldWebLobby:"tr_TR",WgSportService:"TR",WgSportLiveAnimation:"en",GeetestService:"eng",Cloudflare:"tr",BaseLocale:()=>V(()=>import("../locales/tr.BCOuuJbm.js"),[]),CountryName:"Turkey"},ru:{OldWebLobby:"ru_RU",WgSportService:"RUS",WgSportLiveAnimation:"ru",GeetestService:"rus",Cloudflare:"ru",BaseLocale:()=>V(()=>import("../locales/ru.BxjJy5Xj.js"),[]),CountryName:"Russia"},bn:{OldWebLobby:"bn_BN",WgSportService:"ENG",WgSportLiveAnimation:"en",GeetestService:"eng",Cloudflare:"en",BaseLocale:()=>V(()=>import("../locales/bn.BDzWJO3x.js"),[]),CountryName:"Bangladesh"},pa:{OldWebLobby:"pa_PA",WgSportService:"ENG",WgSportLiveAnimation:"en",GeetestService:"eng",Cloudflare:"en",BaseLocale:()=>V(()=>import("../locales/pa.DU4rzqmV.js"),[]),Cou
8ntryName:"Pakistan"},ur:{OldWebLobby:"",WgSportService:"ENG",WgSportLiveAnimation:"en",GeetestService:"eng",Cloudflare:"en",BaseLocale:()=>V(()=>import("../locales/ur.CnfUGiXR.js"),[])},af:{OldWebLobby:"",WgSportService:"ENG",WgSportLiveAnimation:"en",GeetestService:"eng",CountryName:"Afghanistan",Cloudflare:"en",BaseLocale:()=>V(()=>import("../locales/af.CgU5IPlt.js"),[])},ar:{OldWebLobby:"ar_EG",WgSportService:"SAU",WgSportLiveAnimation:"aa",GeetestService:"ara",Cloudflare:"ar",BaseLocale:()=>V(()=>import("../locales/ar.DVmztgJt.js"),[]),CountryName:"Egypt"},sw:{OldWebLobby:"",WgSportService:"ENG",WgSportLiveAnimation:"en",GeetestService:"eng",Cloudflare:"en",BaseLocale:()=>V(()=>import("../locales/sw.DENBUDiS.js"),[])},am:{OldWebLobby:"",WgSportService:"ENG",WgSportLiveAnimation:"en",GeetestService:"eng",Cloudflare:"en",BaseLocale:()=>V(()=>import("../locales/am.DH6fbJwH.js"),[])},ne:{OldWebLobby:"",WgSportService:"ENG",WgSportLiveAnimation:"en",GeetestService:"eng",Cloudflare:"en",BaseLocale:()=>V(()=>import("../locales/ne.BPd9H_uU.js"),[])},si:{OldWebLobby:"",WgSportService:"ENG",WgSportLiveAnimation:"en",GeetestService:"eng",Cloudflare:"en",BaseLocale:()=>V(()=>import("../locales/si.7Ca2-Y9z.js"),[])}},kg=Object.keys(el),zu=e=>kg.reduce((t,n)=>{const o=n;return el[o][e]&&(t[o]=el[o][e]),t},{}),Mse=zu("GeetestService");zu("SportsService");const Nse=zu("WgSportService"),kse=zu("WgSportLiveAnimation");zu("OldWebLobby");function Bse(e,t,n){return el[t][e]||n}const Ol={en:"en",zh:"zh","zh-CN":"zh","zh-SG":"zh","zh-TW":"zh_hk","zh-HK":"zh_hk","zh-MO":"zh_hk",th:"th",vi:"vi",id:"id","id-ID":"id",my:"my","my-MM":"my",km:"km",fil:"tl","fil-PH":"tl",tl:"tl","tl-PH":"tl",ko:"ko",ja:"ja",pt:"pt","pt-PT":"pt","pt-BR":"pt",es:"es",de:"de",fr:"fr","fr-FR":"fr",it:"it",ru:"ru","ru-RU":"ru",hi:"hi",bn:"bn","bn-BD":"bn","bn-IN":"bn",pa:"pa","pa-IN":"pa","pa-PK":"pa",ur:"ur",te:"te",ta:"ta",mr:"mr",kn:"kn",ar:"ar",tr:"tr","tr-TR":"tr",af:"af","af-ZA":"af",sw:"sw","sw-KE":"sw","sw-TZ":"sw",am:"am",ne:"ne",si:"si"},Hse={en:{minRect:"/lobby_asset/common/common/_sprite/flag_1x1_UnitedStates.png",rect:"/lobby_asset/common/common/_sprite/flag_4x3_UnitedStates.png"},zh:{minRect:"/lobby_asset/common/common/_sprite/flag_1x1_ChineseMainland.png",rect:"/lobby_asset/common/common/_sprite/flag_4x3_ChineseMainland.png"},zh_hk:{minRect:"/lobby_asset/common/common/_sprite/flag_1x1_HongKong.png",rect:"/lobby_asset/common/common/_sprite/flag_4x3_HongKong.png"},th:{minRect:"/lobby_asset/common/common/_sprite/flag_1x1_Thailand.png",rect:"/lobby_asset/common/common/_sprite/flag_4x3_Thailand.png"},vi:{minRect:"/lobby_asset/common/common/_sprite/flag_1x1_Vietnam.png",rect:"/lobby_asset/common/common/_sprite/flag_4x3_Vietnam.png"},ko:{minRect:"/lobby_asset/common/common/_sprite/flag_1x1_SouthKorea.png",rect:"/lobby_asset/common/common/_sprite/flag_4x3_SouthKorea.png"},ja:{minRect:"/lobby_asset/common/common/_sprite/flag_1x1_Japan.png",rect:"/lobby_asset/common/common/_sprite/flag_4x3_Japan.png"},pt:{minRect:"/lobby_asset/common/common/_sprite/flag_1x1_Brazil.png",rect:"/lobby_asset/common/common/_sprite/flag_4x3_Brazil.png"},es:{minRect:"/lobby_asset/common/common/_sprite/flag_1x1_Spain.png",rect:"/lobby_asset/common/common/_sprite/flag_4x3_Spain.png"},de:{minRect:"/lobby_asset/common/common/_sprite/flag_1x1_Germany.png",rect:"/lobby_asset/common/common/_sprite/flag_4x3_Germany.png"},fr:{minRect:"/lobby_asset/common/common/_sprite/flag_1x1_France.png",rect:"/lobby_asset/common/common/_sprite/flag_4x3_France.png"},it:{minRect:"/lobby_asset/common/common/_sprite/flag_1x1_Italy.png",rect:"/lobby_asset/common/common/_sprite/flag_4x3_Italy.png"},ru:{minRect:"/lobby_asset/common/common/_sprite/flag_1x1_Russia.png",rect:"/lobby_asset/common/common/_sprite/flag_4x3_Russia.png"},my:{minRect:"/lobby_asset/common/common/_sprite/flag_1x1_Myanmar.png",rect:"/lobby_asset/common/common/_sprite/flag_4x3_Myanmar.png"},id:{minRect:"/lobby_asset/common/common/_sprite/flag_1x1_Indonesia.png",rect:"/lobby_asset/common/common/_sprite/flag_4x3_Indonesia.png"},hi:{minRect:"/lobby_asset/common/common/_sprite/flag_1x1_India.png",rect:"/lobby_asset/common/common/_sprite/flag_4x3_India.png"},tl:{minRect:"/lobby_asset/common/common/_sprite/flag_1x1_Philippines.png",rect:"/lobby_asset/common/common/_sprite/flag_4x3_Philippines.png"},km:{minRect:"/lobby_asset/common/common/_sprite/flag_1x1_Cambodia.png",rect:"/lobby_asset/common/common/_sprite/flag_4x3_Cambodia.png"},te:{minRect:"/lobby_asset/common/common/_sprite/flag_1x1_India.png",rect:"/lobby_asset/common/common/_sprite/flag_4x3_India.png"},ta:{minRect:"/lobby_asset/common/common/_sprite/flag_1x1_India.png",rect:"/lobby_asset/common/common/_sprite/flag_4x3_India.png"},mr:{minRect:"/lobby_asset/common/common/_sprite/flag_1x1_India.png",rect:"/lobby_asset/common/common/_sprite/flag_4x3_India.png"},kn:{minRect:"/lobby_asset/common/common/_sprite/flag_1x1_India.png",rect:"/lobby_asset/common/common/_sprite/flag_4x3_India.png"},pa:{minRect:"/lobby_asset/common/common/_sprite/flag_1x1_India.png",rect:"/lobby_asset/common/common/_sprite/flag_4x3_India.png"},bn:{minRect:"/lobby_asset/common/common/_sprite/flag_1x1_Bangladesh.png",rect:"/lobby_asset/common/common/_sprite/flag_4x3_Bangladesh.png"},tr:{minRect:"/lobby_asset/common/common/_sprite/flag_1x1_Turkey.png",rect:"/lobby_asset/common/common/_sprite/flag_4x3_Turkey.png"},ur:{minRect:"/lobby_asset/common/common/_sprite/flag_1x1_Pakistan.png",rect:"/lobby_asset/common/common/_sprite/flag_4x3_Pakistan.png"},af:{minRect:"/lobby_asset/common/common/_sprite/flag_1x1_SouthAfrica.png",rect:"/lobby_asset/common/common/_sprite/flag_4x3_SouthAfrica.png"},ar:{minRect:"/lobby_asset/common/common/_sprite/flag_1x1_SaudiArabia.png",rect:"/lobby_asset/common/common/_sprite/flag_4x3_SaudiArabia.png"},sw:{minRect:"/lobby_asset/common/common/_sprite/flag_1x1_Kenya.png",rect:"/lobby_asset/common/common/_sprite/flag_4x3_Kenya.png"},am:{minRect:"/lobby_asset/common/common/_sprite/flag_1x1_Ethiopia.png",rect:"/lobby_asset/common/common/_sprite/flag_4x3_Ethiopia.png"},ne:{minRect:"/lobby_asset/common/common/_sprite/flag_1x1_Nepal.png",rect:"/lobby_asset/common/common/_sprite/flag_4x3_Nepal.png"},si:{minRect:"/lobby_asset/common/common/_sprite/flag_1x1_SriLanka.png",rect:"/lobby_asset/common/common/_sprite/flag_4x3_SriLanka.png"}},xM=e=>{if(typeof e!="string")return e;const t=[],n=new Set;for(let a=0;a<e.length;a++){const r=e[a];r==="{"?t.push(a):r==="}"&&(t.length>0?t.pop():n.add(a))}for(;t.length>0;)n.add(t.pop());let o="";for(let a=0;a<e.length;a++)n.has(a)||(o+=e[a]);return o},EM=Object.entries(el).reduce((e,[t,n])=>{const o=n.BaseLocale;return typeof o=="function"||(e[t]=o&&o.default?o.default:o||{}),e},{unknown:{}}),_I=w1({legacy:!1,warnHtmlMessage:!1,messages:EM,fallbackLocale:"unknown",messageResolver:(e,t)=>{var o,a,r,s;const n=xM(Nt(e,t));return(s=(r=(a=(o=n==null?void 0:n.replace(/\{([^}]{1,64})\}/g,(i,c)=>/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(c)?`{${c}}`:/^(0|[1-9]\d*)$/.test(c)?`{${c}}`:(console.warn("i18n: The naming of the translation text variable is incorrect",t),"")))==null?void 0:o.replace(/@/g,function(){return"{'@'}"}))==null?void 0:a.replace(/\$/g,function(){return"{'$'}"}))==null?void 0:r.replace(/\|/g,function(){return"{'|'}"}))==null?void 0:s.replace(/%/g,function(){return"{'%'}"})},missing:()=>""}),we=()=>_I.global;var Mn=(e=>(e.EVENT_PAGE_INSTALLED="EVENT_PAGE_INSTALLED",e.EVENT_UPDATE_LOBBY_DOMAIN="EVENT_UPDATE_LOBBY_DOMAIN",e.EVENT_UPDATE_TOKEN="EVENT_UPDATE_TOKEN",e.EVENT_SET_THEMECOLOR="EVENT_SET_THEMECOLOR",e.EVENT_UPDATE_LOBBY_OSS="EVENT_UPDATE_LOBBY_OSS",e.EVENT_UPDATE_SKELETON_SCREEN="EVENT_UPDATE_SKELETON_SCREEN",e.EVENT_DESTROY_SKELETON_SCREEN="EVENT_DESTROY_SKELETON_SCREEN",e.EVENT_UPDATE_MANIFEST="EVENT_UPDATE_MANIFEST",e.EVENT_SHARE="share",e.EVENT_JPUSH_PARAMS="EVENT_JPUSH_PARAMS",e.EVENT_OPEN_URL="EVENT_OPEN_URL",e.EVENT_UPDATE_URL_PARAMS="EVENT_UPDATE_URL_PARAMS",e.EVENT_UPDATE_LOBBY_ALIVE_DOMAIN="EVENT_UPDATE_LOBBY_ALIVE_DOMAIN",e))(Mn||{});const ir=["ar","ur"],dm=2,gr=B_({disabled:()=>!W_,sendMessage(e){var t;(t=window.top)==null||t.postMessage(JSON.stringify(e),"*")},registerMessage(e){const t=n=>{e(n.data)};return window.addEventListener("message",t),()=>{window.removeEventListener("message",t)}}}),UM=13,GM=356,FM=[UM,GM],WM=e=>typeof e=="number"&&FM.includes(e),Ta=999,xse=[14,200],Ese=332,Bg=[Z.Real,Z.Sports,Z.Lottery,Z.Cockfighting,Z.Gaming],z_=[Z.Chess,Z.Fish,Z.Electronic,Z.BlockChain,Z.Merged],bI=[Z.Hot,Z.Recent,Z.Collect],jy=[Z.Recent,Z.Collect],yI=[...bI,Z.Demo],vI=[Z.Recent,Z.Collect,Z.Demo],VM=[Z.Recent,Z.Collect,Z.Search,Z.More],hh=[...z_,...Bg],SI=16e3,$M="-",CI="firstScreen",Wm="/cocos/maintain-time.json",Vm="/api/backstage/customer/getWebTransByPackTime",YM=new Set([Wm]),qM={[Wm]:["timestamp"]};var Pu=(e=>(e.ReportView="reportView",e.DomainPointer="domainPointer",e))(Pu||{});const zM=e=>{var o,a;const t=(o=e==null?void 0:e.data)==null?void 0:o.data;if(!Array.isArray(t))return null;const n=Object.create(null);for(const r of t)r!=null&&r.route&&r.code===$e.SUCCESS&&r.result!==void 0&&(n[r.route]=YM.has(r.route)?r.result:{code:$e.SUCCESS,msg:(a=r.msg)!=null?a:"success",data:r.result});return n},jM=[{id:"bffHome",scope:CI,originUrl:"/api/gohal/bffApi",method:"POST",scene:"homeFirstLoad",subRequests:[{route:"/api/agent/promote/binding/reportViewV2"},{route:"/api/statistics/domain/pointer"},{route:"/api/finance/maxChargeRate"},{route:"/api/finance/setting"},{route:Vm},{route:"/gameApi/v1/hall/gameRule/saasStatic/loginUrl"},{route:"/api/domain/lobby/domainMatch"},{route:"/api/netstat/point/get/static"},{route:Wm}],keys:["/api/agent/promote/binding/reportViewV2","/api/statistics/domain/pointer","/api/finance/maxChargeRate","/api/finance/setting",Vm,"/gameApi/v1/hall/gameRule/saasStatic/loginUrl","/api/domain/lobby/domainMatch","/api/netstat/point/get/static",Wm],delegatedReports:{[Pu.ReportView]:"/api/agent/promote/binding/reportViewV2",[Pu.DomainPointer]:"/api/statistics/domain/pointer"},dims:{currency:!0},prefetch:"always",timeoutMs:15e3,waitTimeoutMs:16e3,extract:zM}],KM=e=>{const t=new Map;for(const n of e)for(const o of n.keys){const a=t.get(o);if(a)throw new Error(`[aggregate] duplicated key "${o}" claimed by both "${a}" and "${n.id}"`);t.set(o,n.id)}return t},QM=e=>{const t=new Set;for(const{id:n}of e){if(n.includes("-"))throw new Error(`[aggregate] source id "${n}" must not contain "-" (config separator)`);if(t.has(n))throw new Error(`[aggregate] duplicated source id "${n}"`);t.add(n)}},wI=e=>e?`[aggregate][${e}]`:"[aggregate]",Ys=(e,t,...n)=>{console.log(`${wI(e)} ${t}`,...n)},Go=(e,t,...n)=>{console.warn(`${wI(e)} ${t}`,...n)},XM=(e,t)=>{var n;t&&Ys(e,`请æ±ä½ scene=${(n=t.scene)!=null?n:"-"} requestId=${t.requestId} å
± ${t.data.length} æ¡`,t.data.map(o=>({route:o.route,params:o.params})))},ZM=(e,t)=>{var o;const n=(o=t==null?void 0:t.data)==null?void 0:o.data;if(!Array.isArray(n)){Go(e,"ååºç»æä¸ç¬¦å BFF å¥çº¦ï¼ææ data.data 为æ°ç»ï¼",t);return}Ys(e,`ååºå
± ${n.length} æ¡`,n.map(a=>({route:a==null?void 0:a.route,code:a==null?void 0:a.code,...a!=null&&a.msg?{msg:a.msg}:{}})))},JM=(e,{route:t,label:n,read:o,write:a,request:r,describe:s})=>{const i=d=>s?`ï¼${s(d)}ï¼`:"",c=async()=>
8{if(!e.isPrefetchStartedFor(t)){Go(void 0,`${n} 颿æªåèµ·ï¼${t}ï¼ï¼æ¹èµ°åæ¡è¯·æ±`);return}await e.whenReadyFor(t);const d=e.get(t);if((d==null?void 0:d.code)!==$e.SUCCESS||d.data===void 0){Go(void 0,`${n} æªä» BFF å½ä¸ï¼æ¹èµ°åæ¡è¯·æ± ââ ${e.describeMiss(t)}`);return}return d.data},l=async d=>{if(o()!==void 0)return;const m=await c();if(o()!==void 0)return;if(m!==void 0){a(m),Ys(void 0,`${n} å·²ç± BFF å请æ±è¡¥é½${i(m)}`);return}if(d&&await d,o()!==void 0)return;const g=await r();g!==void 0&&o()===void 0&&(a(g),Ys(void 0,`${n} å·²ç±åæ¡ ${t} å
åºè¡¥é½${i(g)}`))};let u;return d=>u||(u=l(d).catch(m=>{Go(void 0,`${n} è¡¥é½å¤±è´¥ï¼ç»§ç»èµ°å
åºå¼`,m)}).finally(()=>{u=void 0}),u)},eN=(e,t,n={})=>{var r;const o=new Map,a=((r=e.subRequests)!=null?r:[]).filter(s=>{const i=n[s.route];if(!i)return!0;try{return i()}catch(c){return!1}}).map((s,i)=>{const c=t[s.route],l=c==null?void 0:c();return c&&o.set(s.route,l),{id:`sub-req-${i+1}`,route:s.route,params:l!=null?l:{},header:null}});return{body:{scene:e.scene,requestId:dl(),header:null,data:a},sentParams:o}},tN=(e,t)=>{var n,o,a;return{url:e.originUrl,method:(n=e.method)!=null?n:"POST",params:(a=(o=e.buildParams)==null?void 0:o.call(e))!=null?a:{},...t?{data:t}:{},...e.timeoutMs?{timeout:e.timeoutMs}:{}}},nN=e=>({token:{type:"staticOnly"},crypto:{enable:!0},cache:{useCache:!1},error:{action:"silent",report:!0},maxRetryCount:0,requestControl:{skipDomainResort:!0},...e.customConfig});function oN(e){return new Worker("/assets/workers-DZZHDtNt.js",{name:e==null?void 0:e.name})}const Ef=new oN,II=B_({sendMessage(e){Ef.postMessage(e)},registerMessage(e){return Ef.onmessage=t=>{e(t.data)},()=>Ef.terminate()}}),aN=e=>{var t;return(t=window.__GlobalVars)==null?void 0:t[e]},AI=()=>{window.__GlobalVars=window.__GlobalVars||{idbStore:{httpRequests:[],httpResponses:[],i18n:[]},REAL_DEVICE_SIZE:{width:0,height:0}}},rN=(e,t)=>{window.__GlobalVars||AI(),window.__GlobalVars[e]=t},Ln={get:aN,set:rN,initialize:AI},Fo=async(e,t)=>{try{return await e}catch(n){return console.error("[IndexedDB Error]:",n),t}};var LI=(e=>(e.appSetup="appSetup",e.appAsyncStart="appAsyncStart",e.appMounted="appMounted",e.dataCompeted="dataCompeted",e.sysConfigCompeted="sysConfigCompeted",e.autoLogin="autoLogin",e.localTemporary="localTemporary",e.apiAutoLoginTime="apiAutoLoginTime",e))(LI||{});const Ai=class Ai{static start(t){this.recordTimer[t]=Date.now()}static end(t,n){var o,a;nt.info(`[PerfRec] ${t} ===> ${n} ï¼${Date.now()-((o=Ai.recordTimer[t])!=null?o:0)}msï¼`),this.recordData.push({target:t,eventName:n,cost:Date.now()-((a=Ai.recordTimer[t])!=null?a:0)})}static clear(t){if(t){delete this.recordTimer[t],this.recordData=this.recordData.filter(n=>n.target!==t);return}this.recordTimer={},this.recordData=[]}static report(){console.group("[PerfRec] Report"),this.recordData.forEach(t=>{nt.info(`${t.target} ===> ${t.eventName} ï¼${t.cost}msï¼`)}),console.groupEnd()}};x(Ai,"target",LI),x(Ai,"recordTimer",{}),x(Ai,"recordData",[]);let Lt=Ai;const Lu=class Lu{static getInstance(t,n,...o){const a=Lu.instances[t];if(a)return a;const r=new n(...o);return Lu.instances[t]=r,r}};x(Lu,"instances",{});let Vo=Lu;const TI=(e,t)=>{const n={};if(e===null||t===null)return n;const o=new Set([...Object.keys(e),...Object.keys(t)]);for(const a of o){const r=e[a],s=t[a];if(!t.hasOwnProperty(a))n[a]=r;else if(!e.hasOwnProperty(a))n[a]=s;else if(typeof r=="object"&&typeof s=="object"){const i=TI(r,s);Object.keys(i).length>0&&(n[a]=i)}else r!==s&&(n[a]=r)}return n},sN=1.1,iN={httpRequests:"++id, requestId, path, removeAt",httpResponses:"key, originUrl, requestId, removeAt",i18n:"transId, lang, transName",store:"key"},cN=null,lN={version:sN,stores:iN,upgrade:cN},uN=Object.assign({"./migrations/version1_initial.ts":lN}),dN=pP.name,Ky={versions:uN,name:dN};class mN extends I1{constructor(){super(Ky.name);x(this,"httpRequests");x(this,"httpResponses");x(this,"i18n");x(this,"store");for(const{version:n,stores:o,upgrade:a}of Object.values(Ky.versions)){const r=this.version(n).stores(o);a&&r.upgrade(a)}this.httpRequests=this.table("httpRequests"),this.httpResponses=this.table("httpResponses"),this.i18n=this.table("i18n"),this.store=this.table("store")}}const mo=Vo.getInstance("MainDataBase",mN),j_=(e,t="INDEXEDDB-ONLY")=>({set:async c=>{await Fo(mo[e].put(c))},bulkPut:async c=>{await Fo(mo[e].bulkPut(c))},get:async c=>await Fo(mo[e].get(c)),remove:async c=>{await Fo(mo[e].delete(c))},clear:async()=>{await Fo(mo[e].clear())},sync:async(c=t)=>{if(c==="INDEXEDDB-ONLY"){Ln.set("idbStore",{...Ln.get("idbStore"),[e]:[]});return}const l=await mo[e].toArray();Ln.set("idbStore",{...Ln.get("idbStore"),[e]:l})},table:mo[e]}),gN=()=>({...j_("httpRequests"),set:a=>{const r={...a,sendAt:Date.now(),removeAt:Date.now()+(a.remove||Mg.delayRemove)*1e3};Fo(mo.httpRequests.put(r))},get:async a=>{const r=await Fo(mo.httpRequests.get(a));return r||null},removeExpiredData:async()=>{const a=Date.now();await Fo(mo.httpRequests.where("removeAt").below(a).delete())}}),fN=()=>{let e=typeof Worker!="undefined"?"INDEXEDDB-WITH-WORKER-ONLY":"MEMORY-FIRST";["MEMORY-FIRST","MEMORY-ONLY","INDEXEDDB-WITH-WORKER-ONLY"].includes(e)&&zn(1e3*20
8).then(()=>{n("INDEXEDDB-ONLY"),o()});const t=j_("httpResponses",e),n=l=>{e=l},o=()=>t.sync(e),a=async(l,u={},d=!0)=>{const m=u.normal||((y,{expiresAt:b,removeAt:v})=>{nt.info(`[${y}]`,`expiresAt@${b}`,`removeAt@${v}`)}),{defaultExpires:g,delayRemove:f}=Mg,_=l.expires||g;if(_<0){console.error("expires åæ°ä¸è½å°äº 0 ->",l.key);return}const h=l.delayRemove||f;if(h<0){console.error("remove åæ°ä¸è½å°äº 0 ->",l.key);return}const p={...l,updatedAt:Date.now(),expiresAt:Date.now()+_*1e3,removeAt:Date.now()+(_+h)*1e3,duration:-1};await Fo(mo.httpResponses.put(p)),m(l.key,{expiresAt:p.expiresAt,removeAt:p.removeAt}),d&&await o()};return{...t,set:a,get:async(l,u=!1,d={})=>{const m=Date.now();let g=!1;const f=d.timeout||(L=>{nt.info("æ¥è¯¢è¶
æ¶(remove)",L)}),_=d.normal||((L,{expiresAt:T,removeAt:S})=>{nt.info(`[${L}]`,`expiresAt@${T}`,`removeAt@${S}`)}),h=()=>Ln.get("idbStore").httpResponses.find(L=>L.key===l),p=()=>Fo(mo.httpResponses.get(l)),y=async()=>{const L=await II("DB_GET_BY_KEY").send({key:l});return L==null?void 0:L.payload},b=async()=>{switch(e){case"MEMORY-FIRST":return Ln.get("idbStore").httpResponses.length?h()||await p():await p();case"MEMORY-ONLY":return h();case"INDEXEDDB-WITH-WORKER-ONLY":return await y();default:return await p()}},v=async()=>(await zn(500),"timeout"),A=async()=>{const L=await b();if(!L)return null;const T=Date.now()-m;if(L.removeAt<Date.now())return nt.info(`[${l}]`,"æ¥å£ç¼åæ°æ®éè¦å é¤(remove)"),Fo(mo.httpResponses.delete(l).then(()=>{o()})),null;const S=L.expiresAt<Date.now();return $s(L.data,"data.__isExpired__",S),S&&nt.info(`[${l}]`,`æ¥å£ç¼åæ°æ®å·²è¿æ(expired),allowExpiredCache:${u}`),!u&&S?null:(g||_(l,{elapsedTime:T,strategyName:e,...L}),L.data)};return Promise.race([A(),v()]).then(L=>{g=L==="timeout";const T=Date.now()-m;return g&&f(l,{strategyName:e,elapsedTime:T}),g?null:L})},removeExpiredData:async(l=!0)=>{const u=Date.now();await Fo(mo.httpResponses.where("removeAt").below(u).delete()),l&&await o()},setDataExpired:async l=>{const u=await Fo(mo.httpResponses.where(l).toArray(),[]);return Promise.all(u.map(d=>a({...d,expires:.001,delayRemove:(d.removeAt-d.expiresAt)/1e3},{},!1))).then(async d=>(await o(),d))},removeCacheData:async l=>await Fo(mo.httpResponses.where(l).delete())}},K_=e=>{const[t,...n]=e.split(".");return{isPathKey:n.length>0,topKey:t,restKey:n.join(".")}},$m=e=>{if(!localStorage)return null;const{topKey:t,isPathKey:n,restKey:o}=K_(e),a=localStorage.getItem(t);if(!a)return null;const r=JSON.parse(a);return Date.now()>Number(r.expires)?(nt.info(`Cache ${t} expired!`),localStorage.removeItem(t),null):n?Nt(r.data,o):r.data};function _h(e,t,n){if(!localStorage)return;const{isPathKey:o,topKey:a,restKey:r}=K_(e),s=Date.now()+(n||3600*24*30*12*999)*1e3;let i=t;o&&(i=$m(a),yw(i)||(i={}),$s(i,r,t)),localStorage.setItem(a,JSON.stringify({data:i,expires:s}))}const Qy=e=>{if(!localStorage)return;const{isPathKey:t,topKey:n,restKey:o}=K_(e);if(t){const a=$m(n),r=o.split("."),s=r.pop(),i=r.length?Nt(a,r.join(".")):a;i&&i[s]&&(delete i[s],_h(n,a))}else localStorage.removeItem(e)},pN=()=>{localStorage&&localStorage.clear()},hN=()=>{if(localStorage)for(let e=0;e<localStorage.length;e++){const t=localStorage.key(e);t&&hP.includes(t)&&localStorage.removeItem(t)}},_N=()=>{},Ti={get:e=>$m(e),getAny:$m,set:(e,t,n)=>_h(e,t,n),setAny:_h,remove:e=>Qy(e),removeAny:Qy,clearAll:pN,clear:hN,initialize:_N},Xy=e=>{var o;if(!sessionStorage)return null;const t=sessionStorage.getItem(e);if(!t)return null;const n=JSON.parse(t);return(o=n==null?void 0:n.data)!=null?o:n};function Zy(e,t){sessionStorage&&sessionStorage.setItem(e,JSON.stringify({data:t}))}const Jy=e=>{sessionStorage&&sessionStorage.removeItem(e)},bN=()=>{sessionStorage&&sessionStorage.clear()},yN=()=>{if(sessionStorage)for(let e=0;e<sessionStorage.length;e++){const t=sessionStorage.key(e);t&&_P.includes(t)&&sessionStorage.removeItem(t)}},vN=()=>{},SN={get:e=>Xy(e),getAny:Xy,set:(e,t)=>Zy(e,t),setAny:Zy,remove:e=>Jy(e),removeAny:Jy,clearAll:bN,clear:yN,initialize:vN};class CN{constructor(){x(this,"isSupportLocalStorage",!!window.localStorage);x(this,"isSupportSessionStorage",!!window.sessionStorage);x(this,"isSupportCookie",!!navigator.cookieEnabled);x(this,"isSupportIndexedDB",!!window.indexedDB);x(this,"cookie",Z0);x(this,"localStorage",Ti);x(this,"sessionStorage",SN);x(this,"createDBManager",j_);x(this,"httpResDataRecord",fN());x(this,"httpReqRecord",gN())}async initialize(){this.localStorage.initialize(),this.sessionStorage.
8initialize(),II("DB_READY").send({messages:"ping"})}cleanExpired(){return Promise.all([this.httpResDataRecord.removeExpiredData(!1).then(()=>this.httpResDataRecord.sync()),this.httpReqRecord.removeExpiredData()])}setConfig(){}}const qe=Vo.getInstance("cacheService",CN),RI=e=>e==="__proto__"||e==="constructor"||e==="prototype";function OI(e){if(e)try{return JSON.parse(e,(t,n)=>RI(t)?void 0:n)}catch(t){return}}const wN=e=>typeof e=="string"&&!e.split(".").some(RI),IN=31536e4,AN=e=>({get:t=>{for(const n of e){const o=Ym[n.type];if(o){const a=o.get(t);if(a!=null)return a}}return null},set:(t,n)=>{for(const o of e){const a=Ym[o.type];if(!a||o.disabled)continue;let r=n;try{const{config:s}=o;if((s==null?void 0:s.pathsPick)||(s==null?void 0:s.pathsOmit)){let l=JSON.parse(n);s.omitFirst?(l=s.pathsOmit?Fs(l,s.pathsOmit):l,l=s.pathsPick?Lo(l,s.pathsPick):l):(l=s.pathsPick?Lo(l,s.pathsPick):l,l=s.pathsOmit?Fs(l,s.pathsOmit):l),r=JSON.stringify(l)}else s!=null&&s.filterCallback&&(r=s.filterCallback(n))}catch(s){console.warn(`value filtering error in ${o.type}:`,s)}o.type==="cookie"?a.set(t,r,{expires:IN}):a.set(t,r)}}}),Ym={memory:new Tc({type:"memory",persistence:{async hydrate(){try{const e=await qe.createDBManager("store").table.toArray();return new Map(e.filter(t=>!!t).map(t=>[t.key,t.value]))}catch(e){return new Map}},async persist(e){qe.createDBManager("store").bulkPut([...e].map(([t,n])=>({key:t,value:n})))}}},{manageExpiry:!1}),local:new Tc("local",{manageExpiry:!1,serializationStrategy:"never"}),session:new Tc("session",{manageExpiry:!1,serializationStrategy:"never"}),cookie:new Tc("cookie",{manageExpiry:!1,serializationStrategy:"never"})};let bh=!1;const LN=()=>{bh=!0};function Yo(e={},t="memory"){const n=typeof t=="string"?Ym[t]:AN(t),o=e.shouldSet||(()=>!bh);return{getItem(a){let r=n.get(a);return r&&e.afterGet&&(r=e.afterGet(r,a)),r},setItem(a,r){e.beforeSet&&(r=e.beforeSet(r,a)),o(a,r,bh)?n.set(a,r):console.log(`${a} should stop persistent!`)}}}const tn=ke("token",()=>{const e=O(null),t=O(!1),n=O(!1),o=O(mP),a=C(()=>{var f;const g=Ms();return g._ti===o.value||(f=g.tokenMetas)!=null&&f.expired&&Date.now()>g.tokenMetas.expired?null:g.tokenInfos||null}),r=C(()=>{var g,f;return!!((g=e==null?void 0:e.value)!=null&&g.session_key||(f=a==null?void 0:a.value)!=null&&f.session_key)}),s=C(()=>!t.value&&Ms().userkey||""),i=C(()=>{var g,f,_;return xf([(g=e.value)==null?void 0:g.session_key,(f=a.value)==null?void 0:f.session_key],!!((_=Ms().tokenMetas)!=null&&_.replace))}),c=C(()=>{var g,f,_;return xf([(g=e.value)==null?void 0:g.jwt_token,(f=a.value)==null?void 0:f.jwt_token],!!((_=Ms().tokenMetas)!=null&&_.replace))}),l=C(()=>{var g,f,_;return xf([(g=e.value)==null?void 0:g.userkey,(f=a.value)==null?void 0:f.userkey],!!((_=Ms().tokenMetas)!=null&&_.replace))});return{hasToken:r,sessionKey:i,userkey:l,jwtToken:c,tokenInfos:e,userkeyFromUrl:s,tokenInfosFromUrl:a,isUserKeyFromUrlFail:t,ensureTokenAndUidMatched:n,expiredUrlToken:o,getURLTokenQuery:Ms,createURLTokenQuery:g=>e.value?kD(e.value,g):{},setExpiredUrlToken:g=>{o.value=g},updateToken:(g,f)=>{if(g){let _=Date.now();try{const{created_time:h,jwt_token:p}=e.value||{};(f!=null&&f.isFastType||p===g.jwt_token)&&h&&(_=h)}catch(h){console.info("failed to change token creation time data")}g.created_time=_}e.value=g}}},{persist:{paths:["tokenInfos","expiredUrlToken"],storage:Yo({},[{type:"local"},{type:"cookie",config:{pathsPick:["tokenInfos"]}}])}});var TN={staticToken:"b2e3d672-9d88-47a7-81b4-9d7ffc62054f"};const Q_=()=>{const{systemInfos:e}=ue();return(e==null?void 0:e.token)||TN.staticToken},RN=()=>{const{userInfos:e}=J();return{hasUid:typeof(e==null?void 0:e.username)!="undefined",hasLocalToken:typeof(e==null?void 0:e.session_key)!="undefined"}},Si=e=>{var f,_,h,p,y,b,v;const t=(h=(f=e==null?void 0:e.token)==null?void 0:f.type)!=null?h:(_=ql==null?void 0:ql.token)==null?void 0:_.type;if(!t)return"";const{sessionKey:n,userkeyFromUrl:o,tokenInfosFromUrl:a,ensureTokenAndUidMatched:r}=tn(),s=(p=e==null?void 0:e.waiting)!=null?p:ql.waiting,{currency:i}=ze(),{hasLocalToken:c,hasUid:l}=RN(),u=(y=Ou.tokenMetas)!=null&&y.replace?r:c&&l,d=Q_(),m=(s==null?void 0:s.ensureCurrency)===!1||i?d:"ensureCurrency",g=(s==null?void 0:s.ensureTokenAndUid)===!1||u?n:"ensureTokenAndUid";if((b=e==null?void 0:e.token)!=null&&b.useCacheToken)return n;if(t==="staticOnly")return m;if(t==="loginOnly")return g;if(t==="tryLogined"){const A=[[[a,o].some(L=>!!L),g],[u,g]];return new Map([[!0,m],...(v=Ou.tokenMetas)!=null&&v.replace?A.reverse():A]).get(!0)}return""},ON=e=>{const t="abcdefghijklmnopqrstuvwxyz0123456789";let n="";for(let o=0;o<e;o++){const a=Math.floor(Math.random()*t.length);n+=t[a]}return n},PN=(e,t)=>(t.forEach(n=>{e[n]&&Array.isArray(e[n])&&(e[n]=e[n].map(o=>{if(/^https?:\/\/\*\.[a-zA-Z0-9\-.]+(:\d+)?$/.test(o)){const r=Math.floor(Math.random()*9)+8,s=ON(r);return o.replace("*",s)}return o}
8))}),e),PI=(e,t)=>{if(e.length!==t.length)return!1;const n=new Set(t);return e.every(o=>n.has(o))},DN=(e=ue().siteURLInfos)=>(e==null?void 0:e.siteBucketSwitchStatus)===1||vl("wg.mow.true").length>0,cs=(e=ue().siteURLInfos)=>DN(e)&&!0&&!gP,qm=e=>{var t;try{const n=`${window.LOBBY_SITE_CONFIG.ossName}.${window.LOBBY_SITE_CONFIG.ossType}`,o=new RegExp(`https?://${n.replace(/\./g,"\\.").replace(/\/$/,"")}`,"g");return e==null?void 0:e.replace(o,(t=location.origin)==null?void 0:t.replace(/\/$/,""))}catch(n){return e}},MN=e=>{var t;try{const n=`${window.LOBBY_SITE_CONFIG.ossName}.${window.LOBBY_SITE_CONFIG.ossType}`,o=new RegExp(`https?://${n.replace(/\./g,"\\.")}`,"g"),a=ur(((t=ue().siteURLInfos)==null?void 0:t.oss_domain[0])||n);return e==null?void 0:e.replace(o,a)}catch(n){return e}},yh=e=>{const t=Fn(e),n={__original__:t,...t};return PN(n,["api_domain","logReportUrl"]),re.package.isLite?n.lobby_domain=[...(n==null?void 0:n.ma_domain)||[],...n.lobby_domain].filter((o,a,r)=>o&&r.indexOf(o)===a):n.lobby_domain=[...(n==null?void 0:n.non_ma_domain)||[],...n.lobby_domain].filter((o,a,r)=>o&&r.indexOf(o)===a),cs(n)&&(n.oss_domain=[window.location.origin,...n.lobby_domain]),n},Uf=/-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,NN=/[eE][+-]?\d{3}/,kN=e=>{Uf.lastIndex=0;let t;for(;t=Uf.exec(e);)if(t[0].length>15||NN.test(t[0]))return Uf.lastIndex=0,!0;return!1},BN=/"(?:__proto__|constructor)"\s*:/,HN=e=>Fn(J0({storeAsString:!0}).parse(e)),xN=e=>{if(!kN(e)&&!BN.test(e))try{return JSON.parse(e)}catch(t){}return HN(e)},EN=e=>{const t=C(()=>{const o=e.siteConfig,a=o==null?void 0:o.ossName,r=o==null?void 0:o.ossType;return o?`https://${a}.${r}/`:`https://${vn.ossName}.${vn.ossType}/`}),n=C(()=>cs()?Kc(window.location.origin):t.value);return{originalOssHost:t,ossHost:n}},UN=(e,t)=>C(()=>e.ossDomain.filter(n=>n!==t.value)),vh={normal:4,weak:2},zm={normal:{size:3,intervalMs:3e3,timeoutMs:3e3},weak:{size:2,intervalMs:5e3,timeoutMs:5e3}},ev={VisibilityResumeThresholdMs:5*60*1e3,OssCandidatePromoteDebounceMs:1e3},Sh={RelativeGain:.3,AbsoluteGainMs:80,CacheCostGoodEnoughMs:500},GN=e=>{e.aborted=!0,e.wake.forEach(t=>t()),e.wake.clear()},FN=()=>{const e={};return{start:n=>{const o=e[n];o&&GN(o);const a={aborted:!1,wake:new Set};return e[n]=a,a}}},WN=e=>typeof document=="undefined"||document.visibilityState==="visible"||e.aborted?Promise.resolve():new Promise(t=>{const n=()=>{document.removeEventListener("visibilitychange",o),e.wake.delete(n),t()},o=()=>{(document.visibilityState==="visible"||e.aborted)&&n()};document.addEventListener("visibilitychange",o),e.wake.add(n)}),Ql={api:"/ipacdn.txt",web:"/cocos/bewcdn.json",oss:"/ssocdn.json",pay:"/fzcdn.txt",game:"/agespeed.txt",download:"/normal/dscdn.json"};var Hr=(e=>(e.WIFI="wifi",e.CELLULAR="cellular",e.NONE="none",e.UNKNOWN="unknown",e))(Hr||{}),Ch=(e=>(e.G2="2g",e.G3="3g",e.G4="4g",e.UNKNOWN="unknown",e))(Ch||{}),xr=(e=>(e.High="High",e.Medium="Medium",e.Low="Low",e))(xr||{});const X_=(()=>{const e="lobby@first_load";return localStorage.getItem(e)?!1:(localStorage.setItem(e,"false"),!0)})(),Ri=10,tv=5,DI=200,MI=500,NI=.7,kI=1.6,nv=700,ov=.3,Gf=500,av=.3,VN=3,rv=3,$N=5*60*1e3,YN=2,Hg="lobby@network-samples",Use=()=>{try{const[e]=performance.getEntriesByType("navigation");if(e&&typeof e.requestStart=="number"&&typeof e.responseStart=="number"&&e.requestStart>0&&e.responseStart>e.requestStart){const t=e.responseStart-e.requestStart;return t>=0?t:null}}catch(e){console.warn("Error accessing PerformanceNavigationTiming:",e)}
8try{if("timing"in performance){const{requestStart:e,responseStart:t}=performance.timing;if(e>0&&t>e){const n=t-e;return n>=0?n:null}}}catch(e){console.warn("Error accessing performance.timing:",e)}return null};let hn={stability:[],ttfb:[],throughput:[],probe:[]},sv=!1,iv=!1;function hd(e){const t=Date.now()-$N;return e.filter(n=>n.ts>=t)}function fs(){hn.stability=hd(hn.stability),hn.ttfb=hd(hn.ttfb),hn.throughput=hd(hn.throughput),hn.probe=hd(hn.probe)}function qN(){hn={stability:[],ttfb:[],throughput:[],probe:[]},jN()}function zN(){if(!iv){iv=!0;try{const e=navigator.connection;e&&typeof e.addEventListener=="function"&&e.addEventListener("change",()=>{qN()})}catch(e){}}}function Js(){if(!sv){sv=!0,zN();try{const e=localStorage.getItem(Hg);if(e){const t=JSON.parse(e);hn={stability:Array.isArray(t.stability)?t.stability.slice(-Ri):[],ttfb:Array.isArray(t.ttfb)?t.ttfb.slice(-Ri):[],throughput:Array.isArray(t.throughput)?t.throughput.slice(-Ri):[],probe:Array.isArray(t.probe)?t.probe.slice(-Ri):[]},fs()}}catch(e){hn={stability:[],ttfb:[],throughput:[],probe:[]}}}}function jN(){try{localStorage.setItem(Hg,JSON.stringify(hn))}catch(e){}}function KN(){Js(),fs();let e=0;for(let t=hn.probe.length-1;t>=0&&!hn.probe[t].ok;t--)e++;return e}function QN(){const e={};try{const t=navigator.connection;t&&(typeof t.effectiveType=="string"&&(e.effectiveType=t.effectiveType),typeof t.rtt=="number"&&(e.rtt=t.rtt),typeof t.downlink=="number"&&(e.downlink=t.downlink))}catch(t){}return e}function XN(){return Js(),fs(),hn}function ZN(){return Js(),fs(),hn.stability.length+hn.ttfb.length+hn.throughput.length}function JN(){Js(),fs();const e=hn.stability;return e.length===0?0:e.filter(n=>!n.ok).length/e.length}function ek(e){Js(),fs();const t=hn.ttfb.map(o=>o.value).sort((o,a)=>o-a);if(t.length===0)return null;const n=Math.ceil(t.length*e)-1;return t[Math.max(0,n)]}function tk(e){Js(),fs();const t=hn.ttfb;return t.length===0?0:t.filter(o=>o.value>e).length/t.length}function nk(){Js(),fs();const e=hn.throughput.map(n=>n.kbps).sort((n,o)=>n-o);if(e.length<VN)return null;const t=Math.ceil(e.length*.75)-1;return e[Math.max(0,t)]}function ok(){return Js(),fs(),hn.ttfb.length>=5}function Ja(e,t,n,o){return{quality:e,confidence:t,sources:n,reasons:o}}function ak(e){return typeof e=="number"&&e>=MI?{weak:!0,medium:!1,source:"connection-rtt"}:typeof e=="number"&&e>DI?{weak:!1,medium:!0,source:"connection-rtt"}:{weak:!1,medium:!1,source:""}}function rk(e){return typeof e=="number"&&e<=NI?{weak:!0,medium:!1,source:"connection-downlink"}:typeof e=="number"&&e<kI?{weak:!1,medium:!0,source:"connection-downlink"}:{weak:!1,medium:!1,source:""}}function sk(){if(typeof navigator!="undefined"&&!navigator.onLine)return Ja("offline","high",["reachability"],["navigator-offline"]);if(KN()>=rv)return Ja("weak","high",["probe-consecutive-fail"],[`consecutive-probe-failures>=${rv}`]);const t=QN();if(t.effectiveType==="slow-2g"||t.effectiveType==="2g")return Ja("weak","medium",["connection-hint"],["2g-hint"]);if(ZN()<tv)return Ja("unknown","low",[],["insufficient-samples"]);const o=[],a=[];let r=!1;const s=ak(t.rtt);s.weak&&(r=!0,o.push(s.source),a.push(`rtt>=${MI}ms`));const i=rk(t.downlink);i.weak&&(r=!0,o.push(i.source),a.push(`downlink<=${NI}Mbps`));const c=nk();c!==null&&c<nv&&(r=!0,o.push("resource-timing"),a.push(`throughput-p75<${nv}kbps`));const l=XN().stability,u=l.filter(g=>!g.ok).length;if(l.length>=tv&&u>=YN&&JN()>=ov&&(r=!0,o.push("request-stability"),a.push(`error-rate>=${(ov*100).toFixed(0)}%`)),r)return Ja("weak","high",o,a);if(s.medium)return Ja("medium","medium",[s.source],[`rtt>${DI}ms`]);if(i.medium)return Ja("medium","medium",[i.source],[`downlink<${kI}Mbps`]);if(t.effectiveType==="3g")return Ja("medium","medium",["connection-hint"],["3g-hint"]);if(ok()){const g=ek(.75),f=tk(Gf);if(g!==null&&g>Gf||f>=av)return Ja("weak","low",["ttfb-window"],[`ttfb-p75>${Gf}ms`,`slow-ratio>=${(av*100).toFixed(0)}%`])}const d=[];c!==null&&d.push("resource-timing"),typeof t.rtt=="number"&&d.push("connection-rtt");const m=d.length>0?"high":"medium";return Ja("good",m,d,["within-threshold"])}function ik(e){return e.quality==="offline"?xr.Low:e.quality==="good"?xr.High:e.quality==="medium"?xr.Medium:e.quality==="weak"?e.confidence==="low"?xr.Medium:xr.Low:xr.Medium}function BI(){return ik(sk())}const Z_=()=>navigator.connection,ju=()=>{if(BI()===xr.Low)return!0;const e=Z_();return!!(e&&(e.saveData||e.effectiveType==="slow-2g"||e.effectiveType==="2g"))},_d=e=>/^https?:\/\/([a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}(:\d+)?(\/[^\s?#]*)?(\?[^\s#]*)?(#[^\s]*)?$/.test(e),HI=e=>/^(https?:\/\/)?(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})(:\d+)?(\/.*)?(\?.*)?$/.test(e),ck=(e,t)=>dw(e+"/"+t),An=9999,xI=(e,t,n)=>{const o=new AbortController,a=o.signal,r=i=>new Promise(c=>{setTimeout(()=>{c(new Response("timeout",{status:504,statusText:"timeout "})),o.abort()},i)}),s=async i=>{const c=await fetch(i,{signal:a});if(n&&!await n(c))throw new Error("Ivalid response");return c};return Promise.race([r(t!=null?t:300),s(e)])};async function xg(e,t="api",n=!1,o=An,a=!0,r=EI){return new Promise(async(s,i)=>{const c=Date.now(),l=Ql[t];let u=An;const d=await xI(e+l+(n?"":`?t=${c}`),o,r).catch(()=>{i("fetchUrlError")});(d==null?void 0:d.status)===200?(u=Date.now()-c,s(u)):a?i(An):s(An)})}function jm(e,t="api",n=5e3,o){return new Promise((a,r)=>{xg(e,t,!1,n,!0,o).then(s=>{a({url:e,pingTime:s})}).catch(()=>{r({url:e,pingTime:An})})})}const EI=async(e,t={})=>{var a;const{siteCode:n=(a=window.LOBBY_SITE_CONFIG)==null?void 0:a.siteCode,acceptPlainOk:o=!0}=t;try{const r=(await e.text()).trim();if(o&&r.toLocaleLowerCase()==="ok")return!0;const{current:s,history:i=[]}=JSON.parse(r);return!!n&&(s===n||i.includes(n))}catch(r){return!1}};async function lk(e){return xg(e,"game",!1,5e3,!1).then(t=>({url:e,ping:t})).catch(()=>({url:e,ping:An}))}const J_=async(e,t,n=An,o=!1)=>{const a=Date.now();try{const r=ck(e,t)+(o?"":`?t=${a}`),s=await xI(r,n,EI);return(s==null?void 0:s.status)===200?Date.now()-a:null}catch(r){return null}},UI=e=>{let t=Math.max(1,e),n=0;const o=[],a=()=>{for(;n<t&&o.length;)n++,o.shift()()};return{acquire:()=>new Promise(r=>{n<t?(n++,r()):o.push(r)}),release:()=>{n=Math.max(0,n-1),a()},setLimit:r=>{t=Math.max(1,r),a()}}},cv=async(e,t,n={})=>{const{concurrency:o=5,timeout:a=An,gate:r,onResult:s,shouldAbort:i}=n,c=e.filter(Boolean);if(!c.length)return;let l=0;const u=async()=>{for(;l<c.length;){if(i!=null&&i())return;const m=c[l++];r&&await r.acquire();try{if(i!=null&&i())return;const g=await J_(m,t,a);if(i!=null&&i())return;s==null||s(m,g)}finally{r&&r.release()}}},d=Math.max(1,Math.min(o,c.length));await Promise.all(Array.from({length:d},u))},lv=(e,t,n={})=>{const{concurrency:o=5,timeout:a=An,cache:r=!1,gate:s,shouldAbort:i}=n,c=e.filter(Boolean);if(!c.length||i!=null&&i())return Promise.resolve(void 0);let l=0,u;const d=Math.max(1,Math.min(o,c.length));return new Promise(m=>{let g=!1;const f=h=>{g||(g=!0,m(h))},_=async()=>{for(;l<c.length&&!u&&!(i!=null&&i())&&!(i!=null&&i());){const h=c[l++];s&&await s.acquire();try{if(u||i!=null&&i())return;const p=await J_(h,t,a,r);p!=null&&!u&&!(i!=null&&i())&&(u={host:h,ping:p},f(u))}finally{s&&s.release()}}};Promise.all(Array.from({length:d},_)).then(()=>f(u))})},uv=async(e,t,n={})=>{const{timeout:o=An,gate:a,onResult:r,accept:s,shouldAbort:i}=n;for(const c of e.filter(Boolean)){if(i!=null&&i())return;a&&await a.acquire();let l=null;try{if(i!=null&&i())return;l=await J_(c,t,o)}finally{a&&a.release()}if(i!=null&&i()||(r==null||r(c,l),l!=null&&(!s||s(c,l))))return}},Km=()=>{const e=Z_();return e?`${e.type||"na"}|${e.effectiveType||"na"}|${e.saveData?"save":""}`:"unknown"},Gse=async e=>{var i,c,l;const{mode:t,primary:n,targetRunner:o}=e,a=await o(n);if(a.length>0){const u=n.filter(d=>!a.includes(d));return{targetDomains:a,restDomains:u,fromFallback:!1}}const r=(l=(c=(i=ue().siteURLInfos)==null?void 0:i.fback_domain)==null?void 0:c[t])!=null?l:[];
8if(r.length===0)return console.log(`[fback_domain]: empty (mode=${t})`),{targetDomains:[],restDomains:[],fromFallback:!1};const s=await o(r);return s.length===0?(console.log(`[fback_domain]: all dead (mode=${t})`),{targetDomains:[],restDomains:[],fromFallback:!1}):(console.log(`[fback_domain]: hit (mode=${t})`,s),{targetDomains:s,restDomains:[],fromFallback:!0})},uk=e=>{var s;const t=e.gate,n=(s=e.isWeakNetwork)!=null?s:ju,o=FN(),a=i=>new Promise(c=>setTimeout(c,i));return{probe:async i=>{var R,D,M,B,E,Y;if((R=i.skipIf)!=null&&R.call(i))return{hasUsableResult:!1,aborted:!1,skipped:!0};const c=(D=i.getProbeHosts)!=null?D:i.getList;if(!c().length)return{hasUsableResult:!1,aborted:!1,skipped:!0};(M=i.onBeforeRun)==null||M.call(i);const l=o.start(i.key),u=()=>l.aborted,d=n(),{timeoutMs:m,size:g,intervalMs:f}=d?zm.weak:zm.normal;let _=!1;const h=new Set;let p=(B=c()[0])!=null?B:"",y=null,b=!1,v=null;const A=()=>{var $,X,j;if(u()||!v)return;const H=i.getList(),{host:F,ping:Q}=v;if(H[0]===F){($=i.onCandidateSettled)==null||$.call(i);return}const G=i.decide({primaryPing:y,primaryHostDown:b,candidatePing:Q});if(G==="none")return;if(G==="defer-promote"){(X=i.onDeferPromote)==null||X.call(i,F);return}const N=[F,...H.filter(te=>te!==F)];i.setList(i.normalize?i.normalize(N):N),(j=i.onSwitchNow)==null||j.call(i),i.cache.scheduleWrite(),p=F,y=Q,b=!1},L=(H,F)=>{var Q,G;h.add(H),F!=null&&(_=!0),H===p&&(F==null?(b=!0,(Q=i.onPrimaryDown)==null||Q.call(i)):y=F),F!=null&&H!==p&&(!v||F<v.ping)&&(v={host:H,ping:F}),(G=i.onResult)==null||G.call(i,H,F),A()},T=i.cache.isHit(i.getList()),S=i.cache.isFresh();if(T){if(await uv(c(),i.probePath,{timeout:m,gate:t,shouldAbort:u,onResult:L}),S)return i.cache.scheduleWrite.flush(),(E=i.onSettle)==null||E.call(i),{hasUsableResult:_,aborted:u()}}else if(d)await uv(c(),i.probePath,{timeout:m,gate:t,shouldAbort:u,onResult:L});else{const H=c();for(let F=0;F<H.length;F+=g){if(u())return{hasUsableResult:_,aborted:!0};if(await cv(H.slice(F,F+g),i.probePath,{concurrency:g,timeout:m,gate:t,shouldAbort:u,onResult:L}),_)break}}const I=c().filter(H=>!h.has(H));for(let H=0;H<I.length;H+=g){if(u())return{hasUsableResult:_,aborted:!0};if(await WN(l),u())return{hasUsableResult:_,aborted:!0};if(await a(f),u())return{hasUsableResult:_,aborted:!0};await cv(I.slice(H,H+g),i.probePath,{concurrency:g,timeout:m,gate:t,shouldAbort:u,onResult:L})}return u()||(i.cache.scheduleWrite.cancel(),i.cache.writeNow(!0)),(Y=i.onSettle)==null||Y.call(i),{hasUsableResult:_,aborted:u()}},gate:t}},bd=UI(vh.normal),dk=(e,t)=>{const n=e-t;return n>=Sh.AbsoluteGainMs&&n>=e*Sh.RelativeGain},mk=(e,t)=>e<t,dv=e=>{const{primaryPing:t,primaryHostDown:n,candidatePing:o,hasCacheCost:a=!1,goodEnoughMs:r=Sh.CacheCostGoodEnoughMs}=e;return n?"switch-now":t==null||!dk(t,o)?"none":a?mk(t,r)?"none":"defer-promote":"switch-now"},tl={Key:"lobby@domain@order",ExpiresSec:24*60*60,FreshWindowMs:30*60*1e3,WriteDebounceMs:800},Rc=()=>{var e;return(e=qe.localStorage.getAny(tl.Key))!=null?e:null},gk=(e,t={})=>{var i;const{refreshTs:n=!1,fromFallback:o,issuedTime:a}=t,r=Rc(),s=o!==void 0?{...r==null?void 0:r.fromFallback,...o}:r==null?void 0:r.fromFallback;qe.localStorage.setAny(tl.Key,{ts:n?Date.now():(i=r==null?void 0:r.ts)!=null?i:Date.now(),net:Km(),apiDomain:[...e.apiDomain],ossDomain:[...e.ossDomain],fromFallback:s,issuedTime:a!=null?a:r==null?void 0:r.issuedTime},tl.ExpiresSec)},fk=e=>!!(e!=null&&e.ts)&&Date.now()-e.ts<tl.FreshWindowMs&&e.net===Km(),mm=(e,t,n)=>{var o;return!!((o=e==null?void 0:e.fromFallback)!=null&&o[t])&&!!e.issuedTime&&e.issuedTime===n},mv=(e,t,n)=>{if(!mm(e,t,n))return;const o=e==null?void 0:e[t];return Array.isArray(o)&&o.length?[...o]:void 0},gv=(e,t)=>{if(t&&PI(e,t))return[...t]};var k=(e=>(e.DEVTOOLS="dev-tools",e.DEMO="demo",e.ROOT="root",e.HOME="home",e.GAME="game",e.CASINO="casino",e.ROOM_GAME="roomGame",e.SUB_GAME="subGame",e.SEARCH_SUB_GAME="searchSubGame",e.MORE_CATEGORY="moreCategory",e.GAME_SEARCH="gameSearch",e.GAME_EMBEDDED="gameEmbedded",e.LOGIN_REGISTER_UPGRADE_GUIDE="loginRegisterUpgradeGuideIndex",e.EVENT="event",e.EVENT_ITEM="event/item",e.EVENT_DETAIL="event/detail",e.EVENT_SEARCH="event-search",e.TASK="task",e.LUCKY_WHELL="lucky-whell",e.CASHBACK="cashback",e.CASHBACK_RATES="cashback-rates",e.CLUB_REBATE_MANAGEMENT="club-rebate",e.PROMOTE="promote",e.AGENT_CENTER="agent-center",e.CREDIT_MANAGE="credit-manage",e.GENERALPROMOTINDEX="generalPromotIndex",e.SHAREHOLDING="shareholding",e.PROXYTRANSFER="proxyTransfer",e.MYTRANSFERRECORD="myTransferRecord",e.CLUB_AGENT_CALCULATOR="clubAgentCalculator",e.PICKUPRECORD="pickUpRecord",e.VIP="vip",e.COUPON="coupon",e.SVIP="svip",e.PREVIEW_SVIP="preview-svip",e.AWARD="award",e.SETTING="setting",e.REPORT="report",e.PERSONAL_DAILY_REPORT="personal-daily-report",e.ACCOUNT_DETAIL="account-detail",e.BETTING_DETAIL="betting-detail",e.SECURITY="security",e.ABOUT_US="about-us",e.ABOUT_US_DETAIL="about-us-detail",e.FEEDBACK="feedback",e.INTEREST="interest",e.CENTER_WALLET="center-wallet",e.CUSTOMER_SERVICE="service",e.WITHDRAW="withdraw",e.WITHDRAW_DETAILS="withdraw-detail
8s",e.AUDIT_DETAILS="audit-details",e.WITHDRAWAL_RECORD_DETAILS="withdrawal-record-details",e.BETTING_TASK_DETAILS="betting-task-details",e.WITHDRAW_TASK="withdraw-task-details",e.CUSTOMERS_QUESTION_SEARCH="customers-question-search",e.NOTICE="notice",e.NOTICE_DETAIL="noticeDetail",e.RECORDS="records",e.CANRECEIVE="canReceive",e.CREDITLOAN="creditLoan",e.REPAYMENT="repayment",e.LOAN="user-loan",e.RECEIVERECORDS="receive-records",e.RECEIVE_FORM="receive-form",e.BETTING_RECORDS="betting-records",e.INTEGRALS="integrals",e.INVEST_NOW="invest-now",e.DEMO_REGISTER="demo-register",e.PROMOTE_GAME="promote-game",e.LOADING_GAME="loading-game",e.VERSION_UPDATE="version-update",e.ERROR_TEXT="error-text",e.NOT_FOUND="404",e.SPORT="sport",e.SPORT_EVENT_DETAIL="sport-event-detail",e.SPORT_RECORD="sport-record",e.SPORT_FILTER="sport-filter",e.SPORT_RESULT="sport-result",e.SPORT_RULE="sport-rule",e.IFRAME_ROUTE="iframe-route",e.MINE="mine",e.RECHARGE_FUND="rechargeFund",e.DEVICE_INFO="deviceInfo",e.CLAIM="claim",e.APPLY_CLAIM="apply-claim",e.CLAIM_ORDER_DETAIL="claim-order-detail",e.UPDATE_AVATOR="updateAvator",e.AGENT_LOGIN="agentLogin",e.LOGIN="login",e.KYC="KYC",e.KYC_FACE="KYC_FACE",e.IDSelfie="IDSelfie",e.KYC_FACE_FAILED="kycFaceFailed",e.REGISTER="register",e.FORBIDDEN_SELF="forbidden-self",e.FEEDBACK_DETAIL="feedback-detail",e.SERVICE_IFRAME="service-iframe",e.COOKIE_POLICY="cookie-policy",e.EXTERNAL_EMBEDDED="externalEmbedded",e.CLUB="club",e.CLUB_MANAGEMENT="club-management",e.CLUB_CONTACT_SETTING="club-contact-setting",e.CLUB_ADD_MEMBER="club-add-member",e.CLUB_UPDATE_MEMBER="club-update-member",e.CLUB_LOGO_SETTING="club-logo-setting",e.CLUB_LOAN="club-loan",e.CLUB_BILL="club-bill",e.CLUB_BILL_DETAIL="club-bill-detail",e.CLUB_APPLY="club-apply",e.CLUB_MESSAGE_CENTER="club-message-center",e.CLUB_MINE="club-mine",e.CLUB_PROMOTE="club-promote",e.AGENT_ADMIN="agent",e.HOME_LIVE="live",e.LOTTERY_HOME="lottery-home",e.LOTTERY_RECORD="lottery-record",e.LOTTERY_HISTORY="lottery-history",e.CLUB_DEPOSIT_MANAGEMENT="deposit-management",e.CLUB_DEPOSIT_CHANNEL="deposit-channel",e.CLUB_WITHDRAW_MANAGEMENT="withdraw-management",e.CLUB_WITHDRAW_ACCOUNT_SETTING="withdraw-acount-setting",e.CLUB_REBATE="rebate",e.CLUB_COMMISSION="commission",e.TG_GAME="tg-game",e.MORE_MENU="more-menu",e.UPDATE_REALNAME="updateRealName",e.PLAZZA="plazza",e.PLAZZA_PUBLISHER="plazza-publisher",e.PLAZZA_POST="plazza-post",e.PLAZZA_SEARCH="plazza-search",e.MATCH_NEWS="match-news",e.MATCH_NEWS_SEARCH="match-news-search",e.MATCH_NEWS_DETAIL="match-news-detail",e.PAGE_DOWNLOAD="page-download",e.MALL="mall",e.MALL_RECORDS="mall-records",e.TG_RP_LIST="tg-rp-list",e.TG_RP_ACTION="tg-rp-action",e.TG_RP_DETAIL="tg-rp-detail",e))(k||{});const Qm=(e={},t=["showLazyLoadDebugSwitch","lazyLoadDebug","id","cid","aid","qd","dl","afId","gtagId","gtmId","currency","bot","fb_dynamic_pixel","tiktokBaseCode","kwaiPixelBaseCode","ks_px_test","pixel_id","click_id","appsflyer_id","fbclid","test_event_code","appsflyer_appId","appsflyer_auth","ttclid","tiktok_id","tt_test_id","bbg","isBgeTest","pixel_click_id","utm_source","utm_content","utm_id","utm_medium","utm_campaign","utm_term","isWgPackage","WgPackage","SpeedPackaeInit","openWinBridgeTunnel","refer",n=>/(mock|fixed)\.\S+$/.test(n),"pwaLaunch"])=>{const n={};return Object.keys(e).forEach(o=>{t.some(r=>typeof r=="function"?r(o):r===o)&&(n[o]=e[o])}),n};function Oe(e){const t=c=>{const{router:l}=i,u=To();if(typeof c=="string")return l.push(c);{const d=Qm(u||{},e),m=Pe({},d,c.query);return l.push({...c,query:m})}},n=c=>{const{router:l}=i,u=To();if(typeof c=="string")return l.replace(c);{const d=Qm(u||{},e),m=Pe({},d,c.query);return l.replace({...c,query:m})}},o=c=>{var u;if(c)return n(c);const l=(u=Wy({parseKeys:["redirect"]}))==null?void 0:u.redirect;n(l||{name:k.ROOT})};let a=null;const i={get route(){var c,l;return((l=(c=Ln.get("App"))==null?void 0:c.config.globalProperties)==null?void 0:l.$route)||Bn()},get router(){var c,l;return((l=(c=Ln.get("App"))==null?void 0:c.config.globalProperties)==null?void 0:l.$router)||x_()},get routeLocationRaw(){const c=i.route;if(c.name)return{name:c.name,query:c.query,params:c.params};const l=location.pathname,u={query:To(),path:l,params:""};if(l==="/")u.name=k.HOME;else{const g=i.router.getRoutes().find(f=>f.path===l);u.name=g==null?void 0:g.name}return u},back:(c=!1,l=!1)=>{var g,f;if(a&&clearTimeout(a),c){const _=(g=Wy({parseKeys:["backRedirect"]}))==null?void 0:g.backRedirect;if(_)return o(_)}const{router:u}=i,d=(f=history.state)==null?void 0:f.back,m=location.pathname;d?(u.back(),location.href.includes("fixed.iswebclip=")&&(l=!0),l&&(a=window.setTimeout(()=>{location.pathname===m&&n({path:d})},10))):t({name:k.ROOT})},push:t,replace:n,redirect:o,clearHistoryStateBack:()=>{var l;if(!((l=history.state)!=null&&l.back))return;const{router:c}=i;
8c.options.history.replace(c.currentRoute.value.fullPath,{back:null})}};return i}const So={Fcp:"fcp",Visibility:"visibility",Connection:"connection",RefreshUrlError:"refresh_url_error"},pk={[So.Fcp]:5e3,[So.Visibility]:60*1e3,[So.Connection]:30*1e3},fv={fcp:0,visibility:0,connection:0},hk=()=>{const e=Oe().routeLocationRaw.name;return e===k.HOME||e===k.GAME},_k=e=>{const t=Date.now(),n=pk[e];return t-fv[e]<n?!1:(fv[e]=t,!0)},GI=(e,t,n)=>{const o=e.filter(r=>r!==t);return(n?[t,...o]:[...o,t]).filter((r,s,i)=>i.indexOf(r)===s)},bk=5e3,yk=15e3,Xm=(e,t)=>typeof window.requestIdleCallback=="function"?window.requestIdleCallback(e,t!=null?{timeout:t}:void 0):window.setTimeout(()=>e({didTimeout:!0,timeRemaining:()=>0}),0);function Eg(e){const t=e!=null?e:ju()?yk:bk;return new Promise(n=>{let o=!1;const a=()=>{o||(o=!0,n())};try{const r=new PerformanceObserver(s=>{s.getEntries().some(i=>i.name==="first-contentful-paint")&&(r.disconnect(),a())});r.observe({type:"paint",buffered:!0})}catch(r){a()}window.setTimeout(a,t)})}const vk=e=>new Promise(t=>Xm(()=>t(),e));function Sk(){const e=globalThis.scheduler;return e&&typeof e.yield=="function"?e.yield():typeof MessageChannel!="undefined"?new Promise(t=>{const n=new MessageChannel;n.port1.onmessage=()=>{n.port1.close(),t()},n.port2.postMessage(void 0)}):new Promise(t=>setTimeout(t,0))}function Ck(e){let t=!1,n;return function(...o){if(!t)return t=!0,n=e(...o),e=null,n}}function ve(e,t){let n=t;const o=Vo.getInstance("mittInstance",wk).getEmitter();return n&&o.on(e,n),{emit:(a,r)=>{o.emit(e,a,r)},off:()=>{n&&o.off(e,n)},changeOn:a=>{o.off(e,n),n=a,o.on(e,a)}}}class wk{constructor(){x(this,"emitter");this.emitter=mw()}getEmitter(){return this.emitter}}const Ik=e=>{var Y;const{domainListMap:t,ossHost:n,ossDomainWithoutOrigial:o}=e,a=ue(),r=uk({gate:bd}),s=()=>{var H;return(H=a.siteURLInfos)==null?void 0:H.issuedTime},i=Rc(),c={apiDomain:mm(i,"apiDomain",s()),ossDomain:mm(i,"ossDomain",s())},l={apiDomain:0,ossDomain:0},u=(H=!1,F)=>gk({apiDomain:t.apiDomain,ossDomain:t.ossDomain},{refreshTs:H,fromFallback:F?{...F}:{...c},issuedTime:s()}),d={apiDomain:qn(()=>u(!1),tl.WriteDebounceMs),ossDomain:qn(()=>u(!1),tl.WriteDebounceMs)},m=H=>({isHit:F=>{const Q=Rc(),G=Q==null?void 0:Q[H];return Array.isArray(G)&&PI(F,G)},isFresh:()=>fk(Rc()),scheduleWrite:d[H],writeNow:u});let g=null;const f=()=>{const H=g;if(!H||typeof document!="undefined"&&document.visibilityState==="hidden"||(g=null,!t.ossDomain.includes(H)))return;const F=p([H,...t.ossDomain.filter(Q=>Q!==H)]);F.join("|")!==t.ossDomain.join("|")&&(t.ossDomain=F,d.ossDomain())},_=qn(()=>{Eg().then(()=>{f()})},ev.OssCandidatePromoteDebounceMs),h={onBeforeRun:()=>{g=null,_.cancel()},onCandidateSettled:()=>{g=null},onDeferPromote:H=>{g=H,_()},onSwitchNow:()=>{g=null},onPrimaryDown:()=>{g&&(_.cancel(),f())}},p=H=>GI(H,n.value,cs()),y=async H=>{var G,N,$;const F=(($=(N=(G=a.siteURLInfos)==null?void 0:G.fback_domain)==null?void 0:N.api)!=null?$:[]).map(X=>ur(X)),Q=await lv(F,Ql.api,{concurrency:1,timeout:zm.normal.timeoutMs,cache:!1,gate:bd,shouldAbort:H});return Q?{domains:F,winner:Q.host}:void 0},b=async H=>{var G,N,$;const F=(($=(N=(G=a.siteURLInfos)==null?void 0:G.fback_domain)==null?void 0:N.oss)!=null?$:[]).map(X=>Kc(X)),Q=await lv(F,Ql.oss,{concurrency:1,timeout:zm.normal.timeoutMs,cache:!1,gate:bd,shouldAbort:H});return Q?{domains:F,winner:Q.host}:void 0},v={key:"apiDomain",getList:()=>t.apiDomain,setList:H=>{t.apiDomain=H},probePath:Ql.api,cache:m("apiDomain"),decide:H=>dv({...H})},A={key:"ossDomain",getList:()=>t.ossDomain,getProbeHosts:()=>o.value,setList:H=>{t.ossDomain=H},probePath:Ql.oss,normalize:p,cache:m("ossDomain"),decide:H=>dv({...H,hasCacheCost:!0}),...h},L=async(H,F,Q,G,N)=>{const $=l[H]+=1,X=()=>{const ne=Q();ne.length&&F.setList([...ne]),c[H]=!1,u(!1,{[H]:!1})},j=mm(Rc(),H,s());c[H]=j;const te=await r.probe(F);if($!==l[H]||te.skipped||te.aborted||te.hasUsableResult)return;const K=await G(()=>$!==l[H]);if($!==l[H])return;if(!K){(j||c[H])&&X();return}const{domains:q,winner:ae}=K,me=[ae,...q.filter(ne=>ne!==ae)];N(me),c[H]=!0,u(!1,{[H]:!0});const de=await r.probe({...F,getProbeHosts:()=>q});$===l[H]&&!de.skipped&&!de.aborted&&!de.hasUsableResult&&X()},T=()=>L("apiDomain",v,()=>{var H,F;return((F=(H=a.siteURLInfos)==null?void 0:H.api_domain)!=null?F:[]).map(Q=>ur(Q)).filter((Q,G,N)=>G===0||N.indexOf(Q)===G)},y,H=>{t.apiDomain=[...H]}),S=()=>L("ossDomain",A,()=>{var H,F;return p([...(F=(H=a.siteURLInfos)==null?void 0:H.oss_domain)!=null?F:[],n.value].map(Q=>Kc(Q)).filter((Q,G,N)=>N.indexOf(Q)===G))},b,H=>{t.ossDomain=p([...H])}
8),I=H=>{_k(H)&&(bd.setLimit(ju()?vh.weak:vh.normal),T(),S())},R=qn(()=>{ve("DOMAIN_PROBE_TRIGGER").emit({source:So.Fcp})},2e3),D=Z_();let M=Km();const B=()=>{const H=Km();H!==M&&(M=H,ve("DOMAIN_PROBE_TRIGGER").emit({source:So.Connection}))};(Y=D==null?void 0:D.addEventListener)==null||Y.call(D,"change",B);const E=ve("DOMAIN_PROBE_TRIGGER",({source:H,hiddenDuration:F})=>{if(!(H!==So.RefreshUrlError&&!hk())&&!(H===So.Visibility&&(_(),(F!=null?F:0)<ev.VisibilityResumeThresholdMs))){if(H===So.Fcp||H===So.Connection||H===So.Visibility){I(H);return}H===So.RefreshUrlError&&I(So.Fcp)}});return A1()&&L1(()=>{var H;E.off(),(H=D==null?void 0:D.removeEventListener)==null||H.call(D,"change",B),R.cancel(),_.cancel()}),{pingApi:T,pingOssHost:S,pingAllDomain:R}},Ak=e=>{const{domainListMap:t,ossHost:n,ossDomainWithoutOrigial:o}=e;return(r,s,i)=>{const c=(l,u,d)=>(T1(l,m=>m===u),d?l.unshift(u):l.push(u),l);if(r==="ossDomain"){if(s===n.value)return;{const l=c(o.value,s,i);cs()?t[r]=[n.value,...l].filter((u,d,m)=>d===0?u:m.indexOf(u)===d):t[r]=[...l,n.value]}}else t[r]=c(t[r],s,i)}};async function Lk(e){const t=globalThis.DecompressionStream;if(typeof t=="function"){const a=new t("gzip"),r=new Blob([e]).stream().pipeThrough(a);return new Uint8Array(await new Response(r).arrayBuffer())}const n=window.__gunzip;if(typeof n=="function")return n(e);const{gunzipSync:o}=await V(async()=>{const{gunzipSync:a}=await import("./fflate-gunzip.esm.CbcMl-OD.js");return{gunzipSync:a}},[]);return o(e)}function Tk(e){return e.length>=2&&e[0]===31&&e[1]===139}const Rk=Zp,ot={AES:c1,MD5:i1,SHA256:s1,enc:{Utf8:r1,Base64:a1,Latin1:o1},mode:{ECB:n1,CBC:Rk.mode.CBC},pad:{Pkcs7:t1,ZeroPadding:e1},lib:{WordArray:Zp.lib.WordArray,CipherParams:Zp.lib.CipherParams}};function Ok(e){const t=s=>String(s).replace(/[\s=,"]/g,i=>"\\"+i),n=s=>`"${s.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`,o=s=>s!==null&&typeof s=="object"?n(JSON.stringify(s)):typeof s=="string"?n(s):`${s}`,a=Object.keys(e.tags).map(s=>`${t(s)}=${t(String(e.tags[s]))}`).join(","),r=Object.keys(e.fields).filter(s=>e.fields[s]!==void 0&&e.fields[s]!==null).map(s=>`${t(s)}=${o(e.fields[s])}`).join(",");return`${t(e.measurement)},${a} ${r}`}var Pk={v:3,h:"50c0f041"};function Zm(){const e=["WPJdOSkJ","pSkHbW","WQXJWOjQDa","W6WgW5fMExisW7Tp","ymkVWOu","cw8s","WQzWW4ddJ3X9WOFdNqz5","WP98WQe","d8kVWPCSW6O","WRyKW5u","weddKCki","CxqunmkDlq","n8k3lCkyWOW","rCo3WOLoW59lWRtcLeet","ygZcJIu","e8k0Aee","BSkjqum0W7u","W4XnW53dNaJdT8k2W4ClW5jn","cSkKW5NdV8oeWOuDDMpcSq","WPNdQCk2bmo0WQy","g8kExCkl","WQ3dG8ktoq","j3e0nSkB","tgjcWOmo","WRHzWOS","qrxcLvRcTmkrtCk7","tCkjA1WiW7SOWROfWQO","W4DwWQreqqNdNa7cRLG","sZtcVCoVWRtcVSo5lSkl","beRdSrZdTmolemkfW4JcSwJcN8o6","WRKVt8koia","fmk1oSko","WR5iW5zGW4O0WQHLwSovgv8S","tbdcNSodWR0","q8kevXVcRmocm8oLWP1r","W6n9lCo0y8kDvW","Df4ttSol","tddcRmo4W4i","Av5Yo8kHW5hcNtuQWOO","sqdcJmo6fSk7WQbPW6S","ymk3gXnzWOBcUSorvmoqWOe","W61JjW","WQpdVuBdMGDuWPddRmkiBsZdUCk6Ba","WPhdQCkUcSoJWQS","imkgWRr0W5u","BeWDrLHo","FYNcQSoQWOhcQq","WQGYW7qQWRq","WPv4W5q","WO3dRCkKcCo+WQ3cSa","p8oVd0qoWPNcGG","WRTxWPf9W7TXWOmwWOW2","WOKiWP9FxG","CSoXoKeVWR/cT2LVW79TCSo6","W6pdNxynW7KeW6tdHI0AW7HC","CIP4jmo8W5i","xr7cNa","WO7cTSkTWO4PpLTTgG","W5VdLI0","W5NcSJ3cGxq","W7xdJGtdGbG","W6BcUeiNxq","lSkTBXPpW6ldPb8sWPW","ur/cPvZcV8kivW","WRW2W7aWWRiD","ymkkqMm0W7i4WOrmW68","W61apmoRqa","W7lcVfmMqrtdUG","WRRdTfRdS2y","W4aoWQFdNsxcTmkR","WO4wWO3cI1u","WOyWwCkTmW9WWQG","WOxdUK7dJMvmW6hcSaO","kKhdQWLc","kuiZ","xKVcQ3ioWOm","W4BdRCoF","ggddIq","mmkcAdf/","W6DjCW","WOr4W48Y","W4efWRi","W4FcTWxcKt4yWRVcKbxcNCkHW6NdTa","mSkOW5W","WRpdIHrVzW","WRScWP5eFCk8q2ddQCkh","WOejW4ugxYJdOI0","FLBdK8kpWRy","xJfdv8kwW4fQov4r","cw8se8kdW7Lo","WQ9TWPHPW44","nSkMCa","CN0hDCon","W6acWPWsWPPKW6LAtmo3","amkvWRa","W6vYoSoLCG","WOuhW7i","WPRdOvVdGgjfW68","htqGWQ0sfxJdRdW","heaJdhxcI8kpWPBdQK4","W47cKubFshfTWRWN","i8kUEa","dLtdHW","WRiIESk+kCoyeCobjLxdI8k7WQu","afOKlq","a8kevG","xMrAWP1fgeFcPHdcLG","W4XkW5pdMGlcQCooW6SMW4jEWO06","W4pdPSkzWRqO","WRJdOYm","k8kNW58","wKOEhW","WPmhW4qyva","W7/cQXpcIq","rG7cTeFcQmkF","WPzwW7ittNJcThpcIIK","WRJcGCkD","WRGZBSkTcW","dhtdVLNdJa","W7BcVdRcQLW","WRRcPmo5W77dIW","WRm2W78Q","WPJcRmk8"];return Zm=function(){return e},Zm()}(function(e,t){const n=e();function o(a,r){return Ha(a-738,r)}for(;;)try{if(-parseInt(o(1097,"*^5*"))/1+parseInt(o(1078,"D#Sf"))/2*(-parseInt(o(1003,"A]E$"))/3)+-
8parseInt(o(1007,"*^5*"))/4*(-parseInt(o(1088,"kUb("))/5)+-parseInt(o(1093,"TjD1"))/6+parseInt(o(1029,"gHcV"))/7*(parseInt(o(1044,"g^ge"))/8)+-parseInt(o(1022,"YlEp"))/9+parseInt(o(1032,"XpBo"))/10===t)break;n.push(n.shift())}catch(a){n.push(n.shift())}})(Zm,278672+-1*760620+1154458);var Lg,$u,jc,Tg;class Dk{constructor(){si(this,Lg,Bt(52,"kUb(")+Bt(1,"Pjv@"));si(this,$u,ot[Bt(-30,"6z7Q")].Utf8[Bt(7,"mDfs")]("5421698523412578"));si(this,jc,window.atob("dGhhbmtzLH"+Bt(-28,"10bd")+Bt(26,"(Pj$")));si(this,Tg,"fc361cdb77"+Bt(-20,"AidV")+Bt(61,"&%fo")+"96")}getSK(){return Tr(this,Lg)}getRK(){return Tr(this,Tg)}md5(t){function n(o,a){return Bt(a-697,o)}return ot[n("AidV",644)](t)[n("&%fo",729)]()}[Bt(-43,"2w(L")](t){function n(o,a){return Bt(o-129,a)}return ot[n(150,"Eb1%")](t)[n(100,"7K9[")]()}[Bt(8,"&XFR")](t,n){function o(a,r){return Bt(a- -296,r)}return ot[o(-332,"(Kq4")](t,n).toString()}[Bt(35,"D#Sf")](t,n){function o(c,l){return Bt(c- -166,l)}const a={};a[o(-152,"0oTY")]=o(-106,"7K9[");const r=a,s=typeof t===r[o(-176,"&JUH")]?t:JSON[o(-148,"0oTY")](t);return ot[o(-111,"gR$$")][o(-185,"TjD1")](s,ot[o(-162,"J1v(")].Utf8.parse(n),{iv:Tr(this,$u),mode:ot.mode[o(-211,"&%fo")],padding:ot[o(-115,"AidV")].ZeroPadding}).toString()}[Bt(15,"QkiS")](t,n,o){const a={};a[i("iW7[",-219)]=function(c,l){return c!=null?c:l};const r=a,s=ot.AES.decrypt(t,ot[i("a6pK",-213)].Utf8[i("2w(L",-121)](n),{iv:Tr(this,$u),mode:ot.mode[i("f]ok",-209)],padding:ot[i("&%fo",-117)][i("]qhE",-128)+"g"],...r[i("gR$$",-129)](o,{})}).toString(ot[i("PAaE",-214)][i("&XFR",-198)]);function i(c,l){return Bt(l- -159,c)}return s}[Bt(11,"10bd")](t){function n(o,a){return Bt(a-160,o)}return ot[n("(Pj$",113)].encrypt(t,ot[n("D#Sf",111)][n("n[eU",217)].parse(Tr(this,jc)),{mode:ot[n("Eb1%",120)][n("D#Sf",180)],padding:ot[n("CK5c",183)][n("vW%!",118)]})[n("iW7[",177)]()}[Bt(45,"bpb)")](t){const n={};function o(a,r){return Bt(a-557,r)}return n.mode=ot[o(513,"tzy1")][o(496,"PAaE")],n[o(552,"a6pK")]=ot[o(586,"(Kq4")].Pkcs7,this[o(566,"7K9[")](t,Tr(this,jc),n)}[Bt(39,"YlEp")+"Bytes"](t){function n(r,s){return Bt(r- -145,s)}const o=ot[n(-105,"&JUH")][n(-193,"s@!t")+"ms"][n(-154,"n[eU")]({ciphertext:Nk(t)}),a=ot[n(-143,"K5q9")][n(-132,"mDfs")](o,ot.enc.Utf8[n(-152,"5RzO")](Tr(this,jc)),{mode:ot[n(-86,"XpBo")][n(-108,"AidV")],padding:ot[n(-151,"s@!t")][n(-162,"K5q9")]});return Mk(a)}gk(t,n,o,a){const r={};r[c(400,"inC3")]=function(l,u){return l===u};const s=r,i={k1:()=>kk(t),k2:()=>Bk(t,o)};if(a)return i[a]();function c(l,u){return Bt(l-457,u)}return s[c(398,"CK5c")](t,n)?i.k1():i.k2()}[Bt(25,"MGDL")](t,n){const o={};o.kSrmZ=function(l,u){return l instanceof u};const a=o,r=new FormData,s={},i={};for(const l of Object[c(478,"16hq")](t)){const u=t[l];a[c(524,"TjD1")](u,Blob)?i[l]=u:s[l]=u}for(const l of Object[c(456,"5RzO")](i))r.append(l,i[l]);r[c(474,"10bd")](c(509,"(Pj$")+c(568,"(Kq4"),this.encrypt(s,n));function c(l,u){return Bt(l-512,u)}return r}}Lg=new WeakMap,$u=new WeakMap,jc=new WeakMap,Tg=new WeakMap;function Mk(e){const t={};t[n("(Pj$",-632)]=function(i,c){return i&c},t[n("XpBo",-726)]=function(i,c){return i>>>c};function n(i,c){return Bt(c- -668,i)}t[n("&XFR",-644)]=function(i,c){return i-c},t[n("J1v(",-662)]=function(i,c){return i*c};const o=t,{words:a,sigBytes:r}=e,s=new Uint8Array(r);for(let i=298*-17+-5339+10405;i<r;i++)s[i]=o[n("6z7Q",-720)](a[o.dxMFl(i,-998*7+-2093*-1+4895)]>>>o[n("2w(L",-686)](-3499*-2+2*2966+27*-478,o[n("XpBo",-663)](i%(35*268+347*14+-1294*11),9073+-2739*3+-848)),1*1181+-89*-22+721*-4);return s}function Nk(e){function t(n,o){return Bt(o- -528,n)}return ot.lib[t("K5q9",-554)][t("K5q9",-536)](e)}function Bt(e,t){return Ha(e- -306,t)}const Sn=new Dk;function Ha(e,t){e=e-(5018+1*335+-5108);const n=Zm();let o=n[e];if(Ha.LzWDVh===void 0){var a=function(l){const u="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=";let d="",m="";for(let g=0,f,_,h=0;_=l.charAt(h++);~_&&(f=g%4?f*64+_:_,g++%4)?d+=String.fromCharCode(255&f>>(-2*g&6)):0)_=u.indexOf(_);for(let g=0,f=d.length;g<f;g++)m+="%"+("00"+d.charCodeAt(g).toString(16)).slice(-2);return decodeURIComponent(m)};const c=function(l,u){let d=[],m=0,g,f="";l=a(l);let _;for(_=0;_<256;_++)d[_]=_;for(_=0;_<256;_++)m=(m+d[_]+u.charCodeAt(_%u.length))%256,g=d[_],d[_]=d[m],d[m]=g;_=0,m=0;for(let h=0;h<l.length;h++)_=(_+1)%256,m=(m+d[_])%256,g=d[_],d[_]=d[m],d[m]=g,f+=String.fromCharCode(l.charCodeAt(h)^d[(d[_]+d[m])%256]);return f};Ha.xhlTiG=c,Ha.ralNVN={},Ha.LzWDVh=!0}const r=n[2757+86*-53+1801],s=e+r,i=Ha.ralNVN[s];return i?o=i:(Ha.gGIfjp===void 0&&(Ha.gGIfjp=!0),o=Ha.xhlTiG(o,t),Ha.ralNVN[s]=o),o}const kk=e=>{function t(n,o){return Bt(o-209,n)}return Sn[t("rXlV",231)](e+Sn.md5(e))[t("vh%K",163)](-3517+-49*97+8272,1439*1+472*-1+13*-73)},Bk=(e,t)=>{function n(o,a){return Bt(o-831,a)}return Sn.md5(e+t)[n(847,"*^5*")](16676+2*-8338,16)};var Yu,oc,FI,wh;class Hk{constructor(){si(this,oc);si(this,Yu,!1)}init(t){Tr(this,Yu)||(xy(this,Yu,!0),t.on("t",n=>gd(this,oc,FI).call(this,n)))}}Yu=new WeakMap,oc=new WeakSet,FI=function(t){const n={};function o(r,s){return Bt(s-1229,r)}n[o("iW7[",1205)]="tw_client_"+o("TjD1",1216),n[o("kUb(",1198)]="info";const a=n;try{if(!t[o("rXlV",1283)].length)return;const r=Pk,{dims:s}=t,i={};i.a=1;const c={measurement:a[o("D#Sf",1197)],tags:{dw_keyword:"tw_client_kpi",env:s[o("QkiS",1256)],site:s[o("vW%!",1206)],device:s[o("a6pK",1194)],v:r.v,h:r.h,status:a[o("&%fo",1287)]},fields:{message:JSON[o("PAaE",1232)]({meta:{v:r.v,h:r.h},client:{env:s[o("&XFR",1276)],site:s[o("bpb)",1279)],device:s[o("5RzO",1239)],ver:s[o("gHcV",1277)]},payload:i})}};gd(this,oc,wh).call(this,t[o("]qhE",1227)],-4*1431+-5277+11001*1,Ok(c))}catch(r){}},wh=function(t,n,o){const a={};a[s(-16,"K5q9")]="/v1/write/"+s(48,"0oTY"),a[s(38,"tzy1")]=s(-28,"a6pK");const r=a;function s(i,c){return Bt(i-5,c)}n>=t[s(-6,"a6pK")]||fetch(t[n]+r[s(24,"6#uo")],{method:r.KyfbD,body:o,keepalive:!0,mode:s(1,"EM2R")})[s(46,"TjD1")](()=>gd(this,oc,wh).call(this,t,n+(-4992+1*4993),o))};const xk=new Hk,Ih=e=>{var t;return((t=e==null?void 0:e.oss)==null?void 0:t.compression)==="gzip"?"gzip":void 0}
8,Ek=e=>{let t=0;for(e.length>=3&&e[0]===239&&e[1]===187&&e[2]===191&&(t=3);t<e.length;t++){const n=e[t];if(n!==32&&n!==9&&n!==10&&n!==13)return n}return-1},Uk=e=>{var t,n;return(t=e==null?void 0:e.crypto)!=null&&t.enable&&((n=e==null?void 0:e.crypto)==null?void 0:n.contentType)==="text"?"text/plain":"application/json"},WI=e=>{var t,n;return(t=e==null?void 0:e.crypto)!=null&&t.enable?((n=e==null?void 0:e.crypto)==null?void 0:n.contentType)==="text"?"chipher":"json_cipher":"plain"},Gk=(e,t)=>{var r,s,i;const n=((r=e.headers)==null?void 0:r.token)||Si(t),{userInfos:o}=J(),a=Q_();return Sn.gk(n,a,String((s=o==null?void 0:o.username)!=null?s:""),(i=t==null?void 0:t.crypto)==null?void 0:i.keyType)},Fk=(e,t,n)=>{var r,s;const o=(r=t==null?void 0:t.crypto)==null?void 0:r.enable,a=Gk(e,t);if(e.params&&o&&n!=="oss"&&(e.params={...e.params,encryptString:Sn.encrypt(e.params,a)}),e.data&&!(e.data instanceof FormData)&&!(t!=null&&t.autoSetupFormData)&&o){const i=Sn.encrypt(e.data,a);e.data=((s=t==null?void 0:t.crypto)==null?void 0:s.contentType)==="text"?i:{encryptString:i}}return a},Wk=async(e,t,n,o,a=r=>r)=>{var r,s,i;if(o==="oss"){if(Ih(n)&&e.data instanceof ArrayBuffer)try{const c=new Uint8Array(e.data),l=Ek(c);if(l===123||l===91){const g=a(new TextDecoder().decode(c));if(g&&typeof g=="object")return e.__originIsEncrypted=!1,e.data=g,e.data.code=$e.SUCCESS,{forceRetry:!1}}e.__originIsEncrypted=!0;const u=Sn.ossDecryptBytes(c),d=Tk(u)?await Lk(u):u,m=a(new TextDecoder().decode(d));if(!m||typeof m!="object")throw new Error("invalid oss payload");return e.data=m,e.data.code=$e.SUCCESS,{forceRetry:!1}}catch(c){return{forceRetry:!0}}if(typeof e.data=="string")try{if((r=e.data)!=null&&r.toLowerCase().includes("<!doctype html>"))throw new Error("200 html");return e.__originIsEncrypted=!0,e.data=a(Sn.ossDecrypt(e.data)),e.data.code=$e.SUCCESS,{forceRetry:!1}}catch(c){return{forceRetry:!0}}else e.__originIsEncrypted=!1,e.data.code=$e.SUCCESS}else if((s=n==null?void 0:n.crypto)!=null&&s.enable){const c=e.headers["content-type"],l=e.headers["x-data-mode"],u=(c==null?void 0:c.includes("text/plain"))||l==="cipher",m=WI(n)==="json_cipher"||l==="json_cipher";let g;u?g=e.data:m&&((i=e.data)!=null&&i.encryptString)&&(g=e.data.encryptString),g&&(e.data=a(Sn.decrypt(g,t!=null?t:"",{padding:ot.pad.Pkcs7})))}return{forceRetry:!1}};var gl=(e=>(e.TGMA="tgma",e.TGMG="tgmg",e))(gl||{}),eb=(e=>(e[e.FRAMEWORK=0]="FRAMEWORK",e))(eb||{}),Vk=(e=>(e[e.Open=1]="Open",e[e.Grab=2]="Grab",e[e.Send=3]="Send",e[e.Tg=4]="Tg",e))(Vk||{});const $k="hostEnvValues",tb={REFERENCE:"refer",STORAGE_KEY:"tGMicroConfig",START_PARAM_KEY:"tgWebAppStartParam",ACCESS_TOKEN:"accessToken",OAUTH_HASH_KEY:"#tgWebAppData",OAUTH_START_PARAM_KEY:"startapp",START_PARAM_SPLIT_KEY:"__SPLIT__",OAUTH_TYPE:{OPEN_HASH:"openHash",NORMAL_TOKEN:"normalToken"},BOOT_PARAMS_FROM:{HASH:"HASH",QUERY:"QUERY",LOCAL:"LOCAL"}},VI={APP_NAME:gl.TGMA},nb={APP_NAME:gl.TGMG},zi={loginProcess:{key:"loginProcess",status:!1,execute:!1},navigationProcess:{key:"navigationProcess",status:!1,execute:!1},showDialogProcess:{key:"showDialogProcess",status:!1,execute:!1}},$I=(e,t)=>{const n={...zi[e]};delete n.key,((t?[t]:n.callback)||[]).forEach(a=>a(n,()=>Yk(e,a)))},Yk=(e,t)=>{const n=zi[e];n.callback=(n.callback||[]).filter(o=>o!==t)},qk=(e,t)=>{const n=zi[e];n.callback=n.callback||[],n.callback.push(t),$I(e,t)},Fse=(e,t)=>{const n=zi[e];zi[e]={...n,...t},$I(e)},Wse=e=>zi[e],Vse=zi,zk=e=>{for(const t of["loginProcess","navigationProcess","showDialogProcess"])jk(e[t],t);return e},jk=(e,t)=>(e&&(e.on=n=>{qk(t,n)}),e),Kk=e=>async t=>{var r;const{load:n,...o}=e,a=await n();return(r=a.init)==null||r.call(a,t),{...zk(a),isActivated:!0,name:o.name}},YI=e=>{const t=Kk(e);return{...e,isActivated:!1,loader:t}},qI=e=>{const{loader:t,...n}=e,o={...n};let a=!1;return o.loader=async r=>{if(a)return o;a=!0;const s=await t(r);return Object.assign(o,s),o},o},Ug=(e,t=$k)=>{const n=(a,r)=>r?`.${a}`:`${a}.`,o=a=>`${t}${e?n(e,!0):""}${a?n(a,!0):""}`;return{get:a=>Ti.get(o(a)),set:(a,r)=>Ti.set(o(a),r),remove:a=>Ti.remove(o(a)),clear:()=>Ti.remove(o()),createStorage:a=>Ug(`${e?n(e,!1):""}${a}`)}},ji=(e=window.location.search)=>{const t=new URLSearchParams(e),n={};for(const[o,a]of t.entries())n[o]=a;return n},ob=(e,t)=>
8{var r,s;const n=new Map,o=(r=t==null?void 0:t.deleteCache)!=null?r:!0,a=(s=t==null?void 0:t.maxCacheSize)!=null?s:100;return async function(i,...c){if(n.has(i))return n.get(i);const l=e(...c).then(u=>(o&&n.delete(i),u),u=>{throw o&&n.delete(i),u});if(a!==void 0&&n.size>=a){const u=n.keys().next().value;n.delete(u)}return n.set(i,l),l}},pv={state:"pending",data:null};function hv(e,t){let{interrupt:n=!1,onError:o=mu,onProgress:a=mu,onCompleted:r=mu}=t||{};const s=b=>Array.from({length:b},()=>pv),i=O([...e]),c=C(()=>{var b,v;return(v=(b=i.value)==null?void 0:b.length)!=null?v:0}),l=vt(s(c.value)),u=O(0),d=O(!1),m=O(!1),g=(b,v,A)=>{b<u.value||u.value===c.value||(v&&(l[u.value].data=A,l[u.value].state=v),a(u.value+1,c.value),u.value++)},f=async b=>{var v,A,L,T;if(b&&(n=(v=b==null?void 0:b.interrupt)!=null?v:n,o=(A=b==null?void 0:b.onError)!=null?A:o,a=(L=b==null?void 0:b.onProgress)!=null?L:a,r=(T=b==null?void 0:b.onCompleted)!=null?T:r),c.value===0){r();return}for(;u.value<c.value;){const S=u.value;let I=null;S>0&&(I=l[S-1].data);const R=i.value[S];await Promise.resolve().then(()=>{var M;if(d.value){g(S,"aborted",new Error("aborted"));return}if(m.value){g(S);return}if(S>0&&n&&((M=l[S-1])==null?void 0:M.state)==="rejected"){m.value=!0,g(S);return}const D=R(I).then(B=>(g(S,"fulfilled",B),B));return d.value?Promise.race([D,Qk(d.value)]):D}).catch(D=>d.value?(g(S,"aborted",D),D):(o(S),g(S,"rejected",D),D))}u.value===c.value&&r()};return{start:f,abort:()=>(d.value=!0,u.value),retry:b=>{m.value=!1,d.value=!1,u.value=0,i.value=b.map(v=>e[v]),f()},add:b=>{(Array.isArray(b)?b:[b]).forEach(A=>{e.push(A),i.value.push(A),l.push(pv)})},next:()=>(g(u.value,"skipped",null),u.value-1),activeIndex:u,results:l}}function Qk(e){return new Promise((t,n)=>{if(e){const o=new Error("aborted");n(o)}})}const Xk=e=>new Promise((t,n)=>{const o=document.createElement("script"),a=document.querySelector("body");e.integrity&&!e.crossOrigin&&(o.crossOrigin="anonymous");for(const r in e){const s=e[r];typeof s=="string"&&o.setAttribute(r,s)}a==null||a.appendChild(o),o.onload=()=>{t(o)},o.onerror=r=>{n(r)}}),Zk=ob(Xk,{deleteCache:!1}),ab=e=>()=>new Promise(async(t,n)=>{const{src:o,callback:a}=e;Zk(o,e).then(r=>{a==null||a(r),t(r)}).catch(r=>{n(r)})}),Jk=async e=>{let t=e[0].src;for(const n of e)try{return t=n.src,await ab(n)(),[null,t]}catch(o){}return[t,void 0]},eB=async(e,t=99e3)=>{const n=e.map(r=>r.src),o=()=>new Promise(r=>setTimeout(()=>r([{type:"timeout",details:n},void 0]),t)),a=async()=>{try{const r=await Promise.any(n.map(i=>Xc.head(i))),s=e.find(i=>i.src==r.config.url);return await ab(s)(),[null,s.src]}catch(r){return[{type:"error",details:n},void 0]}};return Promise.race([a(),o()])},Gg=e=>{e=Array.isArray(e)?e:[e];const t=e.map(n=>ab(n));return{queue:n=>hv(t,n),parallel:()=>Promise.all(t.map(n=>n())),withRetry:()=>Jk(e),withBestLine:n=>eB(e,n),serial:()=>new Promise((n,o)=>{const{results:a,start:r}=hv(t);r({onCompleted:()=>{n(a)},onError(s){o(s)}})})}},$se=e=>new Promise((t,n)=>{const o=new XMLHttpRequest;o.open("GET",e),o.send(),o.onreadystatechange=()=>{if(o.readyState===4)if(o.status==200)try{t(JSON.parse(o.response))}catch(a){n()}else n()}}),Yse=e=>new Promise((t,n)=>{const o=new Audio;o.oncanplay=()=>{t(o)},o.onerror=()=>{n("load error:"+e)},o.src=e,navigator.userAgent.match(/iPhone|iPod|iPad/i)!=null&&setTimeout(()=>{o.load()},0)}),rb=(e,t=!1,n=null,o="auto")=>new Promise(async(a,r)=>{if(t)a(URL.createObjectURL(await nB(e)));else{const s=new Image;s.decoding="async",n&&(s.crossOrigin=n),o!=="auto"&&"fetchPriority"in s&&(s.fetchPriority=o),s.onload=()=>{a(s)},s.onerror=()=>{r("load error:"+e)},s.src=e}});function tB(e){const[t,n]=e.split(","),o=t.match(/:(.*?);/),a=o?o[1]:"application/octet-stream",r=atob(n),s=r.length,i=new Uint8Array(s);for(let c=0;c<s;c++)i[c]=r.charCodeAt(c);return new Blob([i],{type:a})}const nB=e=>e.startsWith("data:")?Promise.resolve(tB(e)):new Promise((t,n)=>{const o=new XMLHttpRequest;o.open("GET",e,!0),o.onreadystatechange=()=>{o.readyState===4&&(o.status==200?t(o.response):n())},o.responseType="blob",o.send()}),qse=e=>new Promise((t,n)=>{if(typeof Blob=="undefined"||!(e instanceof Blob))return n(new Error("first argument must be a Blob"));
8if("arrayBuffer"in e)e.arrayBuffer().then(t).catch(n);else{const o=new FileReader,a=r=>{var s,i;o.removeEventListener("loadend",a),(s=r.target)!=null&&s.error?n(r.target.error):(i=r.target)!=null&&i.result&&t(r.target.result)};o.addEventListener("loadend",a),o.readAsArrayBuffer(e)}}),oB=e=>{var t;if(e instanceof Error)return e;if(typeof Event!="undefined"&&e instanceof Event){const n=(t=e.target)==null?void 0:t.src;return new Error(n?`Script load failed: ${n}`:"Resource load failed")}return new Error(String(e))},_v=e=>e.catch(t=>{throw oB(t)}),aB=(...e)=>{const t=Gg(...e);return{...t,parallel:()=>_v(t.parallel()),serial:()=>_v(t.serial())}},zI=()=>aB({id:"tgClientScript",src:"https://telegram.org/js/telegram-web-app.js?59"}).parallel(),zse=()=>window.Telegram,sb=()=>{var e;return(e=window.Telegram)==null?void 0:e.WebApp},jse=()=>{var e;return(e=window.Telegram)==null?void 0:e.WebView},Kse=e=>{const t=sb();if(!t)return window.open(e);t.openLink(e)},Qse=()=>{const e=sb();if(!e)return window.close();e.close()},jI=()=>!!(window.TelegramWebviewProxy&&window.TelegramWebviewProxy.postEvent),rB=()=>{try{return jI()?window.uaParserResult.os.isAndroid?window.uaParserResult.uaHas("Telegram-Android"):Object.keys(sb().themeParams).length>0:!1}catch(e){return!1}},sB=(e,t,n)=>{for(const o of Object.keys(e))n!=null&&n.includes(o)||Object.prototype.hasOwnProperty.call(t,o)&&t[o]!==void 0&&(e[o]=t[o]);return e},bv=e=>{const t={route:void 0,token:"",modal:void 0,languageCode:"",raw:void 0,tgId:void 0,template:void 0,redPackType:void 0};if(e){let n={};try{n=OI(window.atob(decodeURIComponent(e)))||{},t.raw={...n}}catch(s){n={},console.info("Tg params parsing failed")}const{path:o,modal:a,...r}=n;if(o){const[s,i]=o.split("?");s&&(t.route={name:s,query:ji(i),jumped:!1})}if(a){const[s,i]=a.split("?");t.modal={name:s,options:ji(i),opened:!1}}sB(t,r,["raw","route","modal"])}return t},Pl={tg:{}},{STORAGE_KEY:iB,OAUTH_HASH_KEY:KI,OAUTH_START_PARAM_KEY:cB,START_PARAM_SPLIT_KEY:QI,OAUTH_TYPE:yv,BOOT_PARAMS_FROM:Ff,START_PARAM_KEY:XI,ACCESS_TOKEN:lB}=tb,uB=e=>{const t=ji(),n={value:"",fromType:""},o=(r,s)=>{const i=(e==null?void 0:e[r])||s;return i?()=>({fromType:r,value:i(s)}):null},a=[o(Ff.HASH,()=>{const r=location.hash.includes(KI)?location.hash:"",s=t[cB]||t[XI]||"";return r?`${s}${QI}${r}`:""}),o(Ff.QUERY,()=>t.tgWebAppStartParam),o(Ff.LOCAL)];for(const r of a)if(r)try{const s=r();if(!s||!s.value)continue;Pe(n,s);break}catch(s){console.error(s)}return n},dB=e=>{const t={},n=[()=>{if(!e.includes(KI))return null;const[o,a]=e.split(QI)||[],r=decodeURIComponent(a.replace("#tgWebAppData=","")).replace(/(.+)&tgWebAppVersion.+/,"$1");return{...bv(o),token:r,hash:a,oauthType:yv.OPEN_HASH}},()=>({...bv(e),oauthType:yv.NORMAL_TOKEN})];for(const o of n){const a=o();if(a){Pe(t,a);break}}return t},Fg=e=>{if(!e||Pl.tg&&Object.keys(Pl.tg).length)return Pl.tg;const t=Ug(iB),n=ji(),{value:o,fromType:a}=uB(e==null?void 0:e.staticGetterMapper);if(!o)return Pl.tg;const r=!!(n.refer===gl.TGMG||n.isTGMicroGame),s=Pe({bootStaticParamsFrom:a,refer:n.refer,bootStaticParams:o,isTGMicroGame:r,isTGMicroApp:!r},dB(o));return Pl.tg=s,t.set(XI,s.bootStaticParams),t.set(lB,s.token),s},Xse=()=>!rB(),ZI=(e,t="")=>{window.history.replaceState(null,"",`${location.origin}?${new URLSearchParams(e).toString()}${t}`)},{STORAGE_KEY:mB,START_PARAM_KEY:gB,BOOT_PARAMS_FROM:JI,REFERENCE:fB}=tb,pB=()=>Promise.resolve(jI()&&zI()).then(()=>V(()=>import("./controller.i_tEIELP.js"),__vite__mapDeps([0]))),Wf=YI({name:VI.APP_NAME,load:pB}),fn=qI({name:Wf.name,isActivated:Wf.isActivated,isNotSupportLoginRegister:!0,loader:Wf.loader}),hB=()=>{const e=Fg();if(e.languageCode){const n={...ji(),languageCode:e.languageCode};ZI(n)}},_B=()=>{const e=Ug(mB),o=ji()[fB]===VI.APP_NAME;return Fg({staticGetterMapper:{[JI.LOCAL]:()=>o?e.get(gB):""}})},bB=async()=>{var n;const{bootStaticParams:e,bootStaticParamsFrom:t}=_B();return e?(t!==JI.LOCAL&&hB(),await fn.loader(),(n=document.querySelector("html"))==null||n.setAttribute("data-isTGMicroApp","1"),fn):!1},{STORAGE_KEY:yB,START_PARAM_KEY:vB,BOOT_PARAMS_FROM:gm,REFERENCE:eA}=tb,SB=()=>zI().then(()=>V(()=>import("./controller.Hl3fdYLR.js"),__vite__mapDeps([0]))),Vf=YI({n
8ame:nb.APP_NAME,load:()=>SB()}),Oi=qI({name:Vf.name,isActivated:Vf.isActivated,isNotSupportLoginRegister:!0,loader:Vf.loader}),CB=()=>{const e=Fg(),t={[eA]:nb.APP_NAME};e.languageCode&&(t.languageCode=e.languageCode),ZI(t,e.hash)},wB=()=>{const e=ji(),t=Ug(yB),o=e[eA]===nb.APP_NAME;return Fg({staticGetterMapper:{[gm.HASH]:a=>o?a():"",[gm.QUERY]:()=>null,[gm.LOCAL]:()=>o?t.get(vB):""}})},IB=async()=>{const{isTGMicroGame:e,hash:t,bootStaticParamsFrom:n}=wB();if(!e)return!1;if(!t)throw new Error("Invalid Telegram Hash Params!");if(location.hash=t,await Oi.loader(),!Oi.webApp)throw new Error("Telegram SDK Load Failed!");if(!Oi.webApp.initData)throw new Error("Invalid Telegram Init Data!");return n!==gm.LOCAL&&CB(),Oi},AB=[IB,bB];var xc=(e=>(e.TIMEOUT="TIMEOUT",e.OUT_OF_MAX_TRY="OUT_OF_MAX_TRY",e.NOT_SUPPORTED="NOT_SUPPORTED",e.PARAMETER_INVALID="PARAMETER_INVALID",e.UNKNOWN="UNKNOWN",e))(xc||{});const LB=e=>new Promise(t=>setTimeout(t,e)),tA=(e,t)=>{if(t)throw new Error(`createDynamicImport: ${e}`)},TB=["failed to fetch dynamically imported module","error loading dynamically imported module","importing a module script failed","unable to preload css"],RB=e=>{var n;const t=String((n=e==null?void 0:e.message)!=null?n:e).toLowerCase();return TB.some(o=>t.includes(o))},OB=3,PB=(e=10)=>{e=Number(e);let t=null,n=0;tA("timeout Is Invalid",Number.isNaN(e)||e<=0);let o=null,a;return{getSecondsPassed:()=>(Date.now()-n)/1e3,getErrorType:()=>t,stop:()=>{a&&(clearTimeout(a),a=null,o==null||o())},start:()=>new Promise((r,s)=>{n=Date.now(),o=s,a=setTimeout(()=>{t=xc.TIMEOUT,o==null||o("Timeout")},e*1e3)})}},DB=(e,t=0)=>{let n=null,o="",a=0,r=0,s=Number(t);tA("maxTry Is Invalid",Number.isNaN(s)),s=Math.round(s);let i=!1,c=0;const l=f=>()=>{const _=new URL(f);return _.searchParams.set("_t",Date.now().toString()),new Function("url","return import(url);")(_.toString())};function u(f){try{const _=f==null?void 0:f.message.split(":");return _.length>2?_[0]:`${f}`}catch(_){throw new Error(`D${_}`)}}const d=f=>{var _;try{return new URL(((_=f==null?void 0:f.message.match(/(http.+)/))==null?void 0:_[1])||"").href}catch(h){return""}},m=async()=>{if(c){const f=Date.now()-c,_=300;f<_&&await LB(_-f)}c=Date.now()},g=async f=>{try{let _=null,h=null,p="";try{_=await f()}catch(y){h=y,o=u(y),await m(),p=d(y)}if(h){if(!p&&!RB(h))throw n=xc.NOT_SUPPORTED,h;if(!p){if(r>=OB)throw n=xc.OUT_OF_MAX_TRY,new Error("Already Max Try");r++}if(s>0&&--s<=0)throw n=xc.OUT_OF_MAX_TRY,new Error("Already Max Try");return a++,i?null:g(p?l(p):f)}return _}catch(_){throw new Error(`Load: ${_}`)}};return{getImportErrorMsg:()=>o,getTriedTimes:()=>a,getErrorType:()=>n,stop:()=>{i=!0},start:()=>(m(),g(e))}},MB=async(e,t,n)=>{var s;const{onFinish:o,...a}=n||{},r={success:!1,triedTimes:0,errorMsg:"",importErrorMsg:"",errorType:null,secondsPassed:0,options:a};try{const i=await Promise.race([t.start(),e.start()]);if(!i)throw new Error("Load Failed");return r.success=!0,i}catch(i){throw r.success=!1,r.errorMsg=`${i}`,r.errorType=t.getErrorType()||e.getErrorType()||xc.UNKNOWN,e.stop(),t.stop(),new Error(`ChunkLoadError: Import ${i}`)}finally{r.importErrorMsg=e.getImportErrorMsg(),r.triedTimes=e.getTr
8iedTimes(),r.secondsPassed=t.getSecondsPassed(),(s=n==null?void 0:n.onFinish)==null||s.call(n,r)}},pa=(e,t)=>()=>MB(DB(e,t==null?void 0:t.maxTry),PB(t==null?void 0:t.timeout),t);let nA=!1;const NB=async()=>{for(const e of AB)if(await e()){nA=!0;break}};async function kB(){try{nA||await NB()}catch(e){pa(()=>V(()=>import("./dialog.cECtyzCy.js").then(t=>t.d),[]))().then(t=>{t.showInitFailed(e)})}}const ib=()=>[Oi,fn].find(e=>e.isActivated),Zse=e=>{var n;return((n=ib())==null?void 0:n.isNotSupportLoginRegister)?e?null:!0:e?e():!1},da=typeof window!="undefined",Po=navigator.userAgent.toLowerCase(),BB=/FB_|FBAN|FBIOS|FBAV/i.test(Po),HB=/instagram/i.test(Po),xB=/whatsapp/i.test(Po),oA=/telegram/i.test(Po),EB=/mobile/i.test(Po),UB=/iphone/i.test(Po),GB=/safari\/([0-9.]+)/.test(Po),FB=/line/i.test(Po),WB=/UCBrowser/i.test(Po),VB=/Byte/i.test(Po),$B=/miuibrowser/i.test(Po)||/xiaomi/i.test(Po),Jse=/quark/i.test(Po),eie=/baidu/i.test(Po),tie=/WebSpace/i.test(Po);var YB=Object.getOwnPropertyDescriptor,qB=(e,t,n,o)=>{for(var a=o>1?void 0:o?YB(t,n):t,r=e.length-1,s;r>=0;r--)(s=e[r])&&(a=s(a)||a);return a};function zB(e){const t=e.prototype;for(const n of Object.getOwnPropertyNames(t)){const o=Object.getOwnPropertyDescriptor(t,n);if(o&&typeof o.get=="function"){const a=o.get;Object.defineProperty(t,n,{get:function(...r){return Object.prototype.hasOwnProperty.call(this.cacheGetters,n)||(this.cacheGetters[n]=a.apply(this,r)),this.cacheGetters[n]}})}}}let Ah=class{constructor(){x(this,"cacheGetters",{});x(this,"userAgent",navigator.userAgent.toLowerCase())}includes(e,t){return e.indexOf(t)!==-1}find(e){return this.includes(this.userAgent,e)}get isMacos(){return this.find("mac os")}get isWindows(){return this.find("windows")}get isFindMobile(){return this.find("mobile")}get isFindTablet(){return this.find("tablet")}get isFindDesktop(){return this.find("desktop")}get isFacebook(){return this.find("fban")||this.find("fbav")}get isTikTok(){return this.find("tiktok")}get isInstagram(){return this.find("instagram")}get isKwai(){return this.find("kwai")}get isIos(){return this.isIphone||this.isIpod||this.isIpad}get isIphone(){return!this.isWindows&&this.find("iphone")}get isIpod(){return this.find("ipod")}get isIpad(){const e=navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,t=/macintosh|mac os x/i.test(navigator.userAgent)&&window.screen.height>window.screen.width&&!navigator.userAgent.match(/(iPhone\sOS)\s([\d_]+)/);return navigator.userAgent.includes("ipad")||e||t}get isHarmonyOS(){return this.find("harmonyos")}get isHuawei(){return this.find("huawei")}get isSamsung(){return this.find("samsung")}get isEdge(){return this.find("edga")||this.find("edgios")||this.find("edgA")||this.find("edg")}get isFireFox(){return this.find("firefox")}get isDuckDuckGo(){return this.find("duckduckgo")}get isHibrowser(){return this.find("hibrowser")}get isPWASupportBrowser(){return!this.isHarmonyOS&&!this.isHuawei}get isAndroidThirdBrowserOrApp(){return this.isAndroid&&(re.package.isApp||this.isFacebook||this.isTikTok||this.isInstagram||this.isKwai)}get isAndroidInAppBrowser(){return this.isAndroid&&(this.isFacebook||this.isTikTok||this.isInstagram||this.isKwai)}get isAndroid(){return!this.isWindows&&this.find("android")}get isAndroidPhone(){return this.isAndroid&&this.isFindMobile}get isAndroidTablet(){return this.isAndroid&&!this.isFindMobile}get isBlackberry(){return this.userAgent.includes("blackberry")||this.userAgent.includes("bb10")}get isBlackberryPhone(){return this.isBlackberry&&!this.isFindTablet}get isBlackberryTablet(){return this.isBlackberry&&this.isFindTablet}get isWindowsPhone(){return this.isWindows&&this.find("phone")}get isWindowsTablet(){return this.isWindows&&this.find("touch")&&!this.isWindowsPhone}get isFxos(){return(this.isFindMobile||this.isFindTablet)&&this.find(" rv:")}get isFxosPhone(){return this.isFindMobile&&this.find(" rv:")}get isFxosTablet(){return this.isFindTablet&&this.find(" rv:")}get isMeego(){return this.find("meego")}get isMobile(){return this.isAndroidPhone||this.isIphone||this.isIpod||this.isWindowsPhone||this.isBlackberryPhone||this.isFxosPhone||this.isMeego}get isTablet(){return this.isIpad||this.isAndroidTablet||this.isBlackberryTablet||this.isWindowsTablet||this.isFxosTablet}get isDesktop(){return!this.isMobile&&!this.isTablet}get television(){const e=["googletv","viera","smarttv","internet.tv","netcast","nettv","appletv","boxee","kylo","roku","dlnadoc","pov_tv","hbbtv","ce-html"];let t=0;for(;t<e.length;){if(this.find(e[t]))return e[t];t++}return""}get isTelevision(){return!!this.television}get wx(){return this.isMobile&&this.find("micromessenger")}get isPortrait(){var e;return screen.orientation&&Object.prototype.hasOwnProperty.call(window,"onorientationchange")?(e=screen.orientation.type)==null?void 0:e.includes("portrait"):this.isIos&&Object.prototype.hasOwnProperty.call(window,"orientation")?Math.abs(window.orientation)!==90:window.innerHeight/window.innerWidth>1}get isLandscape(){var e;return screen.orientation&&Object.prototype.hasOwnProperty.call(window,"onorientationchange")?(e=screen.orientation.type)==null?void 0:e.includes("landscape"):this.isIos&&Object.prototype.hasOwnProperty.call(window,"orientation")?Math.abs(window.orientation)===90:window.innerHeight/window.innerWidth<1}
8get isFromShortcut(){return!!Zs(location.href)["fixed.isSaveShort"]}get isInStandaloneMode(){return!!(["fullscreen","standalone","minimal-ui"].some(e=>window.matchMedia("(display-mode: "+e+")").matches)||navigator.standalone)}get isH5Pwa(){var e;return this.isInStandaloneMode&&!re.package.isApp&&!((e=re.speedPackageConfig)!=null&&e.isSpeedPackae)}get isH5Shortcut(){const e=this.isFromShortcut;return!!((this.isMacos||this.isIphone)&&(this.isH5Pwa||e)||e&&(this.isHuawei||this.isHarmonyOS)||(this.isH5Pwa||e)&&this.isSamsung||this.isAndroid&&!this.isH5Pwa&&e||this.isWindows&&e&&!this.isH5Pwa)}get isP2a(){return this.isH5Pwa&&!this.isIos&&!this.isHuawei&&!this.isHarmonyOS&&!this.isSamsung}get isiOSWebClip(){return To()["fixed.iswebclip"]==="1"||this.isNewiOSWebClip}get isNewiOSWebClip(){const e=To();return e["fixed.iswebclip"]==="2"||e.webClipData}get isiOSVest(){return re.package.isVest&&(this.isMacos||this.isIos)}get browserInfo(){var n,o,a,r,s,i,c,l;const e={type:"",versions:""},t={IE:window.ActiveXObject||"ActiveXObject"in window,Chrome:this.userAgent.indexOf("chrome")>-1&&this.userAgent.indexOf("safari")>-1,Firefox:this.userAgent.indexOf("firefox")>-1,Opera:this.userAgent.indexOf("opera")>-1,Safari:this.userAgent.indexOf("safari")>-1&&this.userAgent.indexOf("chrome")==-1,Edg:this.userAgent.indexOf("edg")>-1,QQBrowser:/qqbrowser/.test(this.userAgent),WeixinBrowser:/MicroMessenger/i.test(this.userAgent)};for(const u in t)if(t[u]){let d;if(u=="IE"?d=(n=this.userAgent.match(/(msie\s|trident.*rv:)([\w.]+)/))==null?void 0:n[2]:u=="Chrome"?d=(o=/chrome\/([0-9.]+)/.exec(this.userAgent))==null?void 0:o[1]:u=="Firefox"?d=(a=/firefox\/([0-9.]+)/.exec(this.userAgent))==null?void 0:a[1]:u=="Opera"?d=(r=/opera\/([0-9.]+)/.exec(this.userAgent))==null?void 0:r[1]:u=="Safari"?d=(s=/safari\/([0-9.]+)/.exec(this.userAgent))==null?void 0:s[1]:u=="Edg"?d=(i=/edg\/([0-9.]+)/.exec(this.userAgent))==null?void 0:i[1]:u=="QQBrowser"&&(d=(c=/qqbrowser\/([0-9.]+)/.exec(this.userAgent))==null?void 0:c[1]),e.type=u,u=="Chrome")for(const m in navigator.mimeTypes)navigator.mimeTypes[m].type=="application/360softmgrplugin"&&(e.type="360");d&&(e.versions=d)}return e.versions||(this.userAgent.indexOf("applewebkit")?(e.type="AppleWebkit",e.versions=((l=/applewebkit\/([0-9.]+)/.exec(this.userAgent))==null?void 0:l[1])||""):(e.type="Mozilla",e.versions="5.0")),e}get deviceType(){return this.isFindMobile?"mobile":this.isFindTablet?"tablet":this.isFindDesktop?"desktop":"unknown"}get deviceOs(){return this.isIos?"ios":this.isIphone?"iphone":this.isIpad?"ipad":this.isIpod?"ipod":this.isAndroid?"android":this.isBlackberry?"blackberry":this.isMacos?"macos":this.isWindows?"windows":this.isFxos?"fxos":this.isMeego?"meego":this.isTelevision?"television":"unknown"}get isTgAppOnIos(){return(!!window.TelegramWebviewProxy||fn.isActivated)&&this.isIos}get isTelegram(){return!fn.isActivated&&(!!window.TelegramWebviewProxy||!!window.TelegramWebview||oA)}};Ah=qB([zB],Ah);let pu;const Qe=()=>{if(!pu){const e=()=>{pu=new Ah};da&&(window.addEventListener("resize",e,{passive:!0}),window.addEventListener("orientationchange",e,{passive:!0})),e()}return pu},aA=()=>{const e=Qe();return e.isIos&&(e.isMobile||e.isTablet)?Rt.IOS_H5:e.isAndroidPhone||e.isAndroid&&e.isTablet?Rt.ANDROID_H5:Rt.PC_Windows},fl=()=>{var e,t;return(e=re==null?void 0:re.package)!=null&&e.isLite?(t=re==null?void 0:re.speedPackageConfig)==null?void 0:t.osType:aA()},rA=()=>{var e,t,n;return(e=re==null?void 0:re.package)!=null&&e.isVest?Qe().isIos?Rt.IOS_APP:Rt.ANDROID_APP:(t=re==null?void 0:re.package)!=null&&t.isLite?(n=re==null?void 0:re.speedPackageConfig)==null?void 0:n.osType:aA()},sA=()=>{var t,n,o;const e=Qe();return(t=re==null?void 0:re.package)!=null&&t.isVest||(n=re==null?void 0:re.package)!=null&&n.isLite||e.isP2a&&e.isAndroid?e.isIos?Rt.IOS_APP:Rt.ANDROID_APP:(o=re==null?void 0:re.package)!=null&&o.isWebClip?Rt.IOS_APP:rA()},jB=(e=!1)=>{var o,a,r;let t=((o=re.wgPackageConfig)==null?void 0:o.deviceModel)||Ot["fixed.deviceModel"]||"",n="";if(t)t=((a=t.match(/([^\s]+)/))==null?void 0:a[1])||"";
8else if(((r=re==null?void 0:re.speedPackageConfig)==null?void 0:r.osType)===Rt.IOS_APP)t="Apple";else{const s=ft().device;n=t=s.vendor||"",s.vendor==="Apple"&&(t=t+(s.model||""))}return e?n||t:(/iphone/.test(t.toLowerCase())?t="iPhone":/mac/.test(t.toLowerCase())?t="Mac":/ipad/.test(t.toLowerCase())?t="iPad":t==="Apple"&&(t=""),t)},KB=e=>{var r;let t=(((r=re.wgPackageConfig)==null?void 0:r.deviceModel)||Ot["fixed.deviceModel"]||"").replace(/\s+/g," ").trim();if(t)return t;const n=ft().device,o=n.vendor||"",a=n.model||"";return a.length===1?"":(t=`${o} ${a}`.trim(),(e==null?void 0:e.toLowerCase())===a.toLowerCase()?"":t)},QB=()=>{var o,a,r,s;const e=Qe();let t=iA();const n=(o=re==null?void 0:re.speedPackageConfig)==null?void 0:o.osType;return((a=re==null?void 0:re.package)!=null&&a.isVest||(r=re==null?void 0:re.package)!=null&&r.isLite||e.isP2a&&e.isAndroid)&&(t=n===Rt.IOS_APP?"iOS":"Android"),(s=re==null?void 0:re.package)!=null&&s.isWebClip?"iOS":t},iA=()=>{var t;const e=((t=re.wgPackageConfig)==null?void 0:t.deviceModel)||ft().browser.format;return re.package.isVest&&Ot["fixed.deviceModel"]||e},cA=()=>{const e=navigator;let t=Hr.UNKNOWN,n=Ch.UNKNOWN;if(e!=null&&e.connection)switch(e.connection.type){case"wifi":t=Hr.WIFI;break;case"cellular":t=Hr.CELLULAR,n=e.connection.effectiveType||Ch.UNKNOWN;break;case"none":t=Hr.NONE;break;default:e.connection.effectiveType?(t=Hr.CELLULAR,n=e.connection.effectiveType):t=Hr.UNKNOWN;break}return{type:t,effectiveType:n}},ei=()=>{const e=cA();let t=e.type.toString();return e.type===Hr.CELLULAR&&e.effectiveType&&(t+=`-${e.effectiveType.toString()}`),t.toUpperCase()},Wg=()=>{const e=ft();return new Map([[e.os.isWindows||e.os.isLinux,sr.WINDOWS],[e.os.isAndroid||e.os.isHarmonyOS,sr.ANDROID],[e.os.isIOS,sr.IOS],[e.os.isMacOS&&!e.device.isMobile&&!e.device.isTablet,sr.MAC]]).get(!0)||sr.OTHER},Vg=()=>{var r,s,i;const e=Qe(),t=(r=re==null?void 0:re.package)==null?void 0:r.isWebClip,n=e.isH5Shortcut&&!e.isP2a,o=e.isP2a&&!e.isH5Shortcut,a=fn.isActivated;return new Map([[n,rn.SHORTCUT],[t,rn.QUICK],[o,rn.PWA],[(s=re==null?void 0:re.package)==null?void 0:s.isLite,rn.SPEED],[(i=re==null?void 0:re.package)==null?void 0:i.isVest,rn.VEST],[a,rn.TELEGRAM]]).get(!0)||rn.NORMAL},XB=()=>{var r,s;if(!ft().os.isAndroid)return!1;const{cpu:e,os:t}=ft();if(((r=e.architecture)!=null?r:"").includes("64"))return!0;const o=navigator.hardwareConcurrency||4;return(parseInt((s=t.version)!=null?s:"0")||5)>8&&o>5},nie=()=>{const e=pu.isP2a&&!pu.isH5Shortcut,t=re.package;return e||t.isVest||t.isWebClip||t.isApp};function vv(){return{stability:[],ttfb:[],throughput:[],probe:[]}}function ZB(){try{const e=localStorage.getItem(Hg);if(!e)return vv();const t=JSON.parse(e);return{stability:Array.isArray(t.stability)?t.stability.slice(-Ri):[],ttfb:Array.isArray(t.ttfb)?t.ttfb:[],throughput:Array.isArray(t.throughput)?t.throughput:[],probe:Array.isArray(t.probe)?t.probe:[]}}catch(e){return vv()}}function Sv(e){try{const t=ZB(),n={ts:Date.now(),ok:!e};t.stability.push(n),t.stability.length>Ri&&t.stability.splice(0,t.stability.length-Ri),localStorage.setItem(Hg,JSON.stringify(t))}catch(t){}}var Ei=(e=>(e.ERROR="error",e.NETWORK="network",e.PERFORMANCE="performance",e.CUSTOM="custom",e.DEFAULT="default",e))(Ei||{}),pn=(e=>(e.Ga="Ga",e.Go="Go",e.Sensors="Sensors",e.FacebookMatePixel="FacebookMatePixel",e.FacebookMatePixelV2="FacebookMatePixelV2",e.Tiktok="Tiktok",e.Kwai="Kwai",e.GoogleAnalytics="GoogleAnalytics",e.JsBridge="JsBridge",e.PostMessage="PostMessage",e.AppsFlyer="AppsFlyer",e.Adjust="Adjust",e.Sentry="Sentry",e))(pn||{}),Oc=(e=>(e.default="default",e.throttle="throttle",e.debounce="debounce",e.merge="merge",e))(Oc||{}),fm=(e=>(e.withContext="withContext",e.withNavigateConnection="withNavigateConnection",e.withUserInfo="withUserInfo",e))(fm||{}),Lh=(e=>(e.FilterNoUseBuried="FilterNoUseBuried",e))(Lh||{}),JB=(e=>(e[e.GTAG=1]="GTAG",e[e.GTM=2]="GTM",e))(JB||{}),lA=(e=>(e[e.Google=1]="Google",e[e.FacebookMatePixel=2]="FacebookMatePixel",e[e.KwaiPixel=3]="KwaiPixel",e[e.TikTokPixel=4]="TikTokPixel",e[e.AppsFlyer=5]="AppsFlyer",e[e.Adjust=6]="Adjust",e))(lA||{});const oie={[rn.NORMAL]:"h5",[rn.SHORTCUT]:"h5Shortcut",[rn.PWA]:"pwa",[rn.SPEED]:"lite",[rn.VEST]:"vest",[rn.TELEGRAM]:"tg",[rn.QUICK]:"webClip"};var Th=(e=>(e[e.CHANNEL=1]="CHANNEL",e[e.PARENT_AGENT_ID=2]="PARENT_AGENT_ID",e[e.SELF_ID=3]="SELF_ID",e))(Th||{}),cb=(e=>(e.ALL_CLICK="allClick",e.MORE_CLICK="moreClick",e.SLIDE_CLICK="slideClick",e.ARROW_CLICK="arrowClick",e))(cb||{});const Ns={Sensors:{fileName:"ReporterSensorsImp",className:"Sensors"},GoogleAnalytics:{fileName:"ReporterGoogleAnalyticsImp",className:"GoogleAnalytics",multipe:!0},FacebookMatePixel:{fileName:"ReporterFacebookImp",className:"FacebookMatePixel"},FacebookMatePixelV2:{fileName:"index",className:"FacebookMatePixelV2"},Tiktok:{fileName:"ReporterTiktokImp",className:"Tiktok"},Kwai:{fileName:"ReporterkwaiImp",className:"Kwai"},Adjust:{fileName:"ReporterAdjustImp",className:"Adjust"}
8,AppsFlyer:{fileName:"ReporterAppFlyerImp",className:"AppsFlyer"},JsBridge:{fileName:"ReporterJsBridgeImp",className:"JsBridge"},PostMessage:{fileName:"ReporterPostMessageImpImp",className:"PostMessage"}},eH={1:Ns.GoogleAnalytics,2:Ns.FacebookMatePixel,3:Ns.Kwai,4:Ns.Tiktok,5:Ns.AppsFlyer,6:Ns.Adjust},tH={fb_dynamic_pixel:{category:2},kwaiPixelBaseCode:{category:3},tiktokBaseCode:{category:4},gtagId:{category:1,type:1},gtmId:{category:1,type:2}};var nH=(e=>(e[e.NOT_LOGIN=3]="NOT_LOGIN",e[e.NORMAL=1]="NORMAL",e[e.TEMP_ACCOUNT=2]="TEMP_ACCOUNT",e))(nH||{}),uA=(e=>(e.PageView="PageView",e.ViewContent="ViewContent",e.Login="login",e.Logout="logout",e.Register="register",e.RegisterClick="registerClick",e.RechargeClick="rechargeClick",e.FirstRecharge="firstrecharge",e.Recharge="recharge",e.Deposit="deposit",e.WithdrawClick="withdrawClick",e.WithdrawOrderSuccess="withdrawOrderSuccess",e.EnterPromote="enterPromote",e.EnterCashback="enterCashback",e.EnterEventCenter="enterEventCenter",e.EnterTask="enterTask",e.EnterGame="enterGame",e.EnterRewards="enterRewards",e.PlazzaView="plazzaView",e.PwaInstalled="pwaInstalled",e.PwaFirstOpen="pwaFirstOpen",e.RechargeSelectAmount="rechargeSelectAmount",e))(uA||{}),Pi=(e=>(e.ViewContent="viewContent",e.CompleteRegistration="completeRegistration",e.InitiateCheckout="initiateCheckout",e.Purchase="purchase",e))(Pi||{}),dA=(e=>(e.CrossStationAlarm="CrossStationAlarm",e.IndicatorA="IndicatorA",e.RegisterFail="RegisterFail",e.VerificationError="VerificationError",e.VerificationTime="VerificationTime",e.DeviceVerifyError="DeviceVerifyError",e.DeviceVerifyTime="DeviceVerifyTime",e.HcaptchaError="hcaptchaError",e.HcaptchaTime="hcaptchaTime",e.BannerClick="BannerClick",e.ReturnSearchResults="ReturnSearchResults",e.ClickSearchResult="ClickSearchResult",e.ChargePageView="ChargePageView",e.Error="Error",e.ResponseSlow="ResponseSlow",e.ResponseTimeout="ResponseTimeout",e.ResponseSystemError="ResponseSystemError",e.LoginModalOpen="loginModalOpen",e.ForgotPasswordModalOpen="forgotPasswordModalOpen",e.ForgotPasswordModalSuccess="forgotPasswordModalSuccess",e.GameReturnClick="gameReturnClick",e.GameReturnLobby="gameReturnLobby",e.GameOpenError="GameOpenError",e.EnterGameClick="EnterGameClick",e.Performance="Performance",e.StorageUsed="storageUsed",e.IndexedDBStatistics="IndexedDBStatistics",e.EnterApplyClub="enterApplyClub",e.ComponentError="ComponentError",e.AsyncComponentError="AsyncComponentError",e.AsyncDialogStatus="AsyncDialogStatus",e.RechargeRequestError="RechargeRequestError",e.RechargeTypeDataError="RechargeTypeDataError",e.ImageFirstLoadErrorWhenSimpleImageMode="ImageFirstLoadErrorWhenSimpleImageMode",e.GuideNotification="GuideNotification",e.NotificationsPermissions="NotificationsPermissions",e.ChargeFail="ChargeFail",e.WithdrawFail="WithdrawFail",e.PromoteShare="PromoteShare",e.BalanceRefresh="BalanceRefresh",e.EventDetails="EventDetails",e.FindGameClick="FindGameClick",e.RechargeChannelLoaded="RechargeChannelLoaded",e.ClickRechargeToThirdPayTime="ClickRechargeToThirdPayTime",e.RechargeRealNameAuthentication="RechargeRealNameAuthentication",e.RechargeRealNameAuthenticationVerification="RechargeRealNameAuthenticationVerification",e.UpdateWithdrawPasswordBeforeRecharge="UpdateWithdrawPasswordBeforeRecharge",e.RechargeActivityBindPhoneNumberFirst="RechargeActivityBindPhoneNumberFirst",e.WithdrawalTwoStepVerification="WithdrawalTwoStepVerification",e.DiscountReceive="DiscountReceive",e.CheckLimitAll="CheckLimitAll",e.ReportDownload="ReportDownload",e.ClientDataInitializationCompeted="ClientDataInitializationCompeted",e.GossipView="GossipView",e.EnterThirdPay="EnterThirdPay",e.ThirdPayStart="ThirdPayStart",e.DepositNowClick="DepositNowClick",e.ReportDomainMatch="ReportDomainMatch",e.FbSdkNotReadyOnRegister="FbSdkNotReadyOnRegister",e.MatchNewStart="MatchNewStart",e.MatchNewTime="MatchNewTime",e.WgSportApiError="wgSportApiError",e.WgLotteryProviderMissing="wgLotteryProviderMissing",e.WgEnterDomain="wg_enter_domain",e.WgEnterMonitorDomain="wg_enter_monitor_domain",e.WgResourcesLoaded="wg_resources_loaded",e.WgWssConnected="wg_wss_connected",e))(dA||{});const mA={CUSTOM_BURIED:{uploadPlatforms:[pn.GoogleAnalytics,pn.FacebookMatePixel,pn.Tiktok,pn.Kwai,pn.Sensors,pn.JsBridge,pn.PostMessage],effective:[{name:Lh.FilterNoUseBuried}],eventType:Ei.CUSTOM},SENSOR_BURIED:{uploadPlatforms:[pn.Sensors],effective:[{name:Lh.FilterNoUseBuried}],eventType:Ei.CUSTOM},FB_OFFICIAL_BURIED:{uploadPlatforms:[pn.FacebookMatePixelV2],effective:[],eventType:Ei.CUSTOM}},oH=e=>z.request({url:"/api/netstat/point/get/static",method:"GET",params:e},{token:{type:"staticOnly"},maxRetryCount:0,omitKey:["currency","language","platformType"],oss:{force:!0,enable:!0},error:{action:"noMessage"}}).then(t=>{var n,o;return(o=(n=t==null?void 0:t.data)==null?void 0:n.data)!=null?o:[]}),aie=e=>z.request({url:"/api/netstat/evt/report",method:"POST",data:e},{token:{type:"loginOnly"},error:{action:"noMessage"}}),rie=e=>z.request({url:"/api/eventtrack/event/collect",method:"POST",data:e},{token:{type:"staticOnly"},error:{action:"noMessage"}}),aH={FilterNoUseBuried:e=>e.uploadPlatforms.map(t=>{switch(t){case pn.GoogleAnalytics:return{[t]:!!window.GTM&&!window.MonitoringAnalysis};case pn.FacebookMatePixel:return{[t]:!!window.FacebookMatePixel};case pn.Tiktok:return{[t]:!!window.Tiktok};case pn.Kwai:return{[t]:!!window.KwaiPixe};case pn.Sensors:return{[t]:!!window.sensorsDataAnalytic201505};case pn.JsBridge:return{[t]:!!window.jsBridge||!!window.Android||window.android_JS
8Inter||window.uni};default:return{[t]:!0}}})},rH=async(e,t)=>{if(e.length===0)return t.uploadPlatforms.reduce((o,a)=>(o[a]=!0,o),{});const n=e.map(o=>aH[o.name]({...t,conditions:o.conditions}));return Promise.all(n).then(o=>sH(o))};function sH(e){const t={};for(const n of e)for(const o of n)for(const a of Object.keys(o))t[a]=t[a]===!1||o[a]===!1?!1:o[a];return t}const iH={[fm.withContext]:()=>({context:{}}),[fm.withNavigateConnection]:()=>{const e=(navigator==null?void 0:navigator.connection)||{};return{navigatorConnection:{downlinkMax:e.downlinkMax,effectiveType:e.effectiveType,rtt:e.rtt,saveData:e.saveData}}},[fm.withUserInfo]:()=>({userInfo:{}})},cH=async(e,t)=>{const n=e.map(o=>iH[o](t));return Promise.all(n).then(o=>o.reduce((a,r)=>({...a,...r}),{}))},lH=async e=>{const{eventName:t}=e,n=e.rule||mA.CUSTOM_BURIED,o=e.payload||{},a=await cH(n.params||[],o),r=await rH(n.effective||[],{uploadPlatforms:n.uploadPlatforms,eventName:t,eventType:n.eventType||Ei.DEFAULT,payload:o,extParams:a});return{eventName:e.eventName,eventType:n.eventType||Ei.DEFAULT,payload:o,strategy:n.strategy||{name:Oc.default},extParams:a,effective:r}},Du=[0,999995,999996,999997,999998,999999,888,101,102,103],lb=e=>{const{urlParams:t}=en(),n=(e==null?void 0:e.regPkgId)||t.cid||void 0,o=(e==null?void 0:e.parentId)||t.id||void 0,r=!!!(n&&Du.includes(Number(n)))&&n||o,s=n?Th.CHANNEL:o?Th.PARENT_AGENT_ID:void 0;if(!(!Number(r)||!s))return{idx:Number(r),idxType:Number(s)}},uH=new Set(["461698923152373"]),dH=new URLSearchParams(window.location.search).get("fixed.fbv2")==="1";function mH(e){var t;return e!=null&&e.closed?!1:dH?!0:typeof((t=e==null?void 0:e.debugChannel)==null?void 0:t.fbv2)=="boolean"?e.debugChannel.fbv2:!!(e!=null&&e.gid)&&uH.has(e.gid)}const sie={[Pi.ViewContent]:"ViewContent",[Pi.CompleteRegistration]:"CompleteRegistration",[Pi.InitiateCheckout]:"InitiateCheckout",[Pi.Purchase]:"Purchase"},iie=new Set(Object.values(Pi)),cie="fb_v2_pending_events",lie=3e4,uie=new Set(["/home","/home/subgame","/home/embedded","/home/event","/home/vip","/home/promote"]);class gA{constructor(t){x(this,"platformName");x(this,"isInitialized",!1);x(this,"buriedConfigs",[]);x(this,"uploadPlatforms",[]);x(this,"timer",{});x(this,"uploadPayload",{});this.platformName=t,this.initialize()}action(t){var s,i,c;const{strategy:n,payload:o,eventName:a,eventType:r}=t;if(n.name!==Oc.default&&n.option){const l=n.option.targetBy==="eventName"?a:r;if(n.name===Oc.debounce){this.timer[l]&&clearTimeout(this.timer[l]),this.timer[l]=setTimeout(()=>{this.report(t),delete this.timer[l]},(s=n.option)==null?void 0:s.duration);return}if(n.name===Oc.throttle){if(this.timer[l])return;this.report(t),this.timer[l]=setTimeout(()=>{delete this.timer[l]},(i=n.option)==null?void 0:i.duration)}if(n.name===Oc.merge){if(!this.timer[l]){const d=n.option.relationKey?[o[n.option.relationKey]]:[];this.uploadPayload[l]={origin:o,diff:[],relationIds:d},this.timer[l]=setTimeout(()=>{this.report({...t,payload:{...this.uploadPayload[l].origin,__diff:this.uploadPayload[l].diff,__relationIds:this.uploadPayload[l].relationIds}}),delete this.uploadPayload[l],delete this.timer[l]},(c=n.option)==null?void 0:c.duration)}const u=this.uploadPayload[l].origin;this.uploadPayload[l].diff.push(TI(u,o)),n.option.relationKey&&this.uploadPayload[l].relationIds.push(o[n.option.relationKey])}return}this.report(t)}syncConfig(t){this.buriedConfigs=t}isValidTrackingId(t){return!!t&&/^[a-zA-Z0-9_-]{1,128}$/.test(t)}isNonAdLink(){const t=["utm_id","fbclid","gclid","ttclid","click_id"],n=new URL(location.href).searchParams;return!t.some(o=>n.has(o))}}class gH extends gA{constructor(){super(pn.JsBridge);x(this,"platformId")}initialize(){this.initByManual()}async initByManual(){navigator.userAgent.includes("uniappVersion")&&await Gg([{id:"script-uniApp",async:!0,src:"https://unpkg.com/@dcloudio/[email protected]/index.js",integrity:"sha384-sVA4v4ENd1CtvPZW4a6DqhJy82gPo255Fxr02VLRRodUqyuNL+M4qDyKSSfZsgVP"}]).serial(),["jsBridge","Android","android_JSInter","uni"].forEach(n=>{window[n]&&(this.platformId=n)})}report(n){var r,s,i,c,l;nt.info("ãReporterJsBridgeImpã",n);const{eventName:o,payload:a}=n;window.jsBridge&&((s=(r=window.jsBridge)==null?void 0:r.postMessage)==null||s.call(r,o,JSON.stringify(a))),window.Android&&((c=(i=window.Android)==null?void 0:i.eventTracker)==null||c.call(i,o,JSON.stringify(a))),window.android_JS
8Inter&&((l=window.android_JSInter)==null||l.eventTracker(o,JSON.stringify(a))),window.uni&&window.uni.postMessage({data:{eventName:o,eventValues:a}})}}class fH extends gA{constructor(){super(pn.PostMessage)}initialize(){}async initByManual(){}report(t){const{eventName:n,payload:o}=t;window.postMessage({eventType:"onAppEvent",eventName:n,params:o},window.location.origin)}}const Cv={ReporterSensorsImp:()=>V(()=>import("./ReporterSensorsImp.D2rJsTig.js"),__vite__mapDeps([0,1,2])),ReporterGoogleAnalyticsImp:()=>V(()=>import("./ReporterGoogleAnalyticsImp.CHE-XEi_.js"),[]),ReporterFacebookImp:()=>V(()=>import("./ReporterFacebookImp.CMnfHP1v.js"),[]),ReporterTiktokImp:()=>V(()=>import("./ReporterTiktokImp.D2HN58GT.js"),[]),ReporterkwaiImp:()=>V(()=>import("./ReporterkwaiImp.BpDiANaF.js"),[]),ReporterAdjustImp:()=>V(()=>import("./ReporterAdjustImp.wMKWe3Kx.js"),[]),ReporterAppFlyerImp:()=>V(()=>import("./ReporterAppFlyerImp.DNU0DBLm.js"),[])};class pH{constructor(){x(this,"rules",mA);x(this,"eventType",Ei);x(this,"buriedEvents",uA);x(this,"sensorEvents",dA);x(this,"fbV2Events",Pi);x(this,"searchStatus");x(this,"prveReportPlatforms",[]);x(this,"modules",{[pn.JsBridge]:Vo.getInstance("ReporterJsBridgeImp",gH),[pn.PostMessage]:Vo.getInstance("ReporterPostMessageImp",fH)});setTimeout(()=>{this.setSystemBuried()},8e3)}async processReport(t){try{const n=await lH(t),o=n.effective;this.prveReportPlatforms=Object.keys(o).filter(a=>o[a]).map(a=>`${[a]}:${this.modules[a].platformId||this.modules[a].gtagId||this.modules[a].gtmId}`).filter(a=>!a.includes("undefined"));for(const a in this.modules)o[a]&&await this.modules[a].action({...n,uploadPlatforms:this.prveReportPlatforms})}catch(n){console.warn("Error when report:",n)}}async doReport(t){await this.processReport(t)}initialize(){}updateSerachStatus(t){this.searchStatus=t}getInstances(){return this.modules}setConfig(t){Array.isArray(t)&&t.forEach(n=>{const o=eH[n.category];if(o){const a=o.multipe?t:n;if(this.modules[o.className]){const r=this.modules[o.className];r.platformConfig=a,r.initByManual()}else{const r=Cv[o.fileName];r&&r().then(s=>{this.modules[o.className]=Vo.getInstance(o.className,s.default,a)})}}if(n.category===lA.FacebookMatePixel){const a=Ns[pn.FacebookMatePixelV2];if(this.modules[a.className]){const r=this.modules[a.className];r==null||r.initByManual({pixelId:n.gid,platformConfig:n})}else{if(!mH(n))return;V(()=>import("./index.6bX-axC1.js"),[]).then(r=>{this.modules[a.className]=Vo.getInstance(a.className,r.default,{pixelId:n.gid,platformConfig:n})})}}})}setSystemBuried(){const t=Ns[pn.Sensors],o=(vn==null?void 0:vn.isForbidSeoAndInjectSite)?ue().siteInfos:window.LOBBY_SITE_CONFIG.INJECT_DATA.apiGetSiteInfo.data.data,a=(o==null?void 0:o.sensorsStatus)===1,r=new URLSearchParams(location.search).get("pwaLaunch")==="1"&&window.top!==window;if(a&&!this.modules[t.className]&&!r){const s=Cv[t.fileName];s&&s().then(i=>{this.modules[t.className]=Vo.getInstance(t.className,i.default)})}}initialBuried(t,n=!1){const o=lb(t);if(o)oH(o).then(a=>{this.setConfig(a)});else{if(n)return;//!TODO 妿齿²¡æé ç½®ç´æ¥èµ°å°å串æ¥é»è¾ä¹å¯ä»¥ 9const a=new URLSearchParams(window.location.search),r=[];for(const[s,i]of a.entries()){const c=tH[s];c&&i&&r.push({category:c.category,gid:i,type:c.type,closed:!1}
9)}this.setConfig(r)}}reinitFbAdvancedMatching(t){const n=this.modules[pn.FacebookMatePixel];n&&"reinitWithAdvancedMatching"in n&&n.reinitWithAdvancedMatching(t)}reInitialBuried(t){const{parentId:n,regPkgId:o}=t,{urlParams:a}=en();o!=Number(a.cid)&&n!=Number(a.id)&&this.initialBuried({parentId:n,regPkgId:o},!0)}}const Re=Vo.getInstance("ReporterMananger",pH),fA=Object.freeze(Object.defineProperty({__proto__:null,reporter:Re},Symbol.toStringTag,{value:"Module"}));class hH{constructor(t,n,o){x(this,"instance",null);x(this,"loadPromise",null);x(this,"runnableImport");x(this,"selector");x(this,"key");this.selector=n,this.runnableImport=pa(t,o),this.key=(o==null?void 0:o.key)||"AnonymousModule"}async load(){return this.instance?this.instance:(this.loadPromise||(this.loadPromise=this.runnableImport().then(t=>(this.instance=this.selector(t),this.loadPromise=null,this.instance)).catch(t=>{throw this.loadPromise=null,this.reportLoadFailed(t),t})),this.loadPromise)}preload(){this.load().catch(()=>{})}reportLoadFailed(t){console.info(`[AsyncLoader] [${this.key}] Load failed:`,t),V(async()=>{const{reporter:n}=await Promise.resolve().then(()=>fA);return{reporter:n}},void 0).then(({reporter:n})=>{n.doReport({rule:n.rules.SENSOR_BURIED,eventName:n.sensorEvents.Error,payload:{errorType:"async_module_load_error",errorModuleKey:this.key,errorMsg:`${t}`}})}).catch(()=>{})}}const Mu={timeout:15,maxTry:3};function pA(e,t,n){let o;return typeof n=="string"?o={...Mu,key:n}:o={...Mu,...n},new hH(e,t,o)}function Oa(e,t,n){const o=pA(e,t,n);return new Proxy({},{get(a,r){if(r==="preload")return()=>o.preload();if(!(r==="then"||r==="catch"||r==="finally"))return async(...s)=>{const i=await o.load(),c=i[r];return typeof c=="function"?c.apply(i,s):c}}})}function rt(e,t,n){const o=pA(e,t,n),a=()=>{};return new Proxy(a,{async apply(r,s,i){return(await o.load()).apply(s,i)},get(r,s){if(s==="preload")return()=>o.preload();if(!(s==="then"||s==="catch"||s==="finally"))return async(...i)=>{const c=await o.load(),l=c[s];return typeof l=="function"?l.apply(c,i):l}}})}const Rh=Oa(()=>V(()=>import("./risk-behavior.impl.CkPYlU4a.js"),[]),e=>e.riskBehavior,"RiskBehavior"),ub=(e,t)=>z.request({url:"/api/backstage/system/status",method:"get",params:{...e}},Pe(t,{oss:{enable:!0},token:{type:"staticOnly"},cache:{useCache:!0,expireOnloaded:!1,useCacheOnError(){return!0}},crypto:{enable:!1}})),_H=()=>z.request({url:"/api/agent/promote/pureAgentOpenRegister",method:"POST"},{token:{type:"loginOnly"},crypto:{enable:!0},error:{action:"silent"}}),Oh=(e={},t)=>z.request({url:"/api/lobby/webapi/optimizationV2/site/config",method:"GET",params:{...e.previewonly?{previewonly:5}:{}}},Pe(t,{token:{type:"staticOnly"},omitKey:e.previewonly?["language","platformType","currency"]:["currency","platformType"],oss:{enable:!0,force:e.previewonly},cache:{useCache:!0,expireOnloaded:!1},crypto:{enable:!1}})),bH=()=>z.request({url:"/api/gohal/getSysInfo",method:"get",params:{now:Date.now(),os_type:fl()}},{token:{type:"staticOnly"},cache:{useCache:!1},crypto:{enable:!1}}),die=e=>z.request({url:"/api/gohal/getClientConfig",method:"get",params:{osType:e}},{token:{type:"staticOnly"},cache:{useCache:!1},crypto:{enable:!1}}),yH=()=>z.request({url:"/version_v2.json",method:"get",params:{t:Date.now()}},{token:{type:"staticOnly"},omitKey:["currency","language","platformType"],oss:{enable:!0,force:!0},error:{action:"silent",dataChecker:e=>!!e.response}}).then(e=>e==null?void 0:e.data),hA=ke("version",()=>{const e=O();return{versionMap:e,init:async()=>{const o=await yH();o&&(e.value=o)},getUrlVersion:o=>{var s;if(!o)return;const a=e.value;if(!a)return;const r=o.replace(/^\/+/,"");return(s=a[r])!=null?s:a[`/${r}`]}}},{persist:{paths:["versionMap"]}}),vH=()=>z.request({url:"/api/lobby/versionUpdate/getVersionList"},{cache:{useCache:!0,expireOnloaded:!1}}),SH=10*60*1e3,Tt=ke("base",()=>{const e=O(null),t=B=>{e.value=B},n=O(1),o=B=>{n.value=B},a=O({}),r=vt({lastMD5:"",firstLoadTime:0}),s=B=>{const E=ot.MD5(JSON.stringify(B)).toString(),Y=Object.keys(a.value).length>0,H=r.lastMD5&&E!==r.lastMD5,F=r.firstLoadTime&&Date.now()-r.firstLoadTime>SH;
9(Y||H||F)&&(a.value=B),r.firstLoadTime||(r.firstLoadTime=Date.now()),r.lastMD5=E},i=[],c=O(!1),l=O(!1),u=O(!0),d=O(!0),m=B=>{l.value=B},g=B=>{u.value=B},f=B=>{B&&(_.value=!0,h.value=B)},_=O(!1),h=O({siteMaintenanceStatus:!1,areaStatus:!0,countryCode:"",recommendAreaCode:"",ip:"",recommendCurrency:"",recommendLanguage:""}),p=B=>{c.value=B},y=()=>{const B=Ye().unix(),E=v();return B+E},b=(B,E)=>{var Q;const Y=((Q=E==null?void 0:E.config)==null?void 0:Q.url)||"unknown";B>1e12&&(nt.info(`[addTimeDiff] url: ${Y}, serverTime(${B}) is in milliseconds, automatically converting to seconds`),B=Math.floor(B/1e3));const H=Ye().unix(),F=B-H;i.push(F),nt.info(`[addTimeDiff] url: ${Y}, serverTime: ${B}, localTime: ${H}, diff: ${F}s`),i.length>10&&i.shift()},v=()=>i.length?Math.floor(i.reduce((B,E)=>B+E)/i.length):0,A=C(()=>{const{isIos:B,isMobile:E,isTablet:Y,isAndroidPhone:H,isAndroid:F}=Qe();return B&&(E||Y)?Rt.IOS_H5:H||F&&Y?Rt.ANDROID_H5:Rt.PC_Windows}),L=vt({lastActionTime:0,lastShowTime:0}),T=(B,E=Date.now())=>{L[B]=E},S=async()=>{const[B,E]=await Ee(vH());if(!B){const Y=E.data.data;Y!=null&&Y.length&&(d.value=!1)}},I=O(null),R=B=>{I.value=B},D=O(!1);return{ipChecked:_,ipCheck:h,siteMaintenanceStatus:l,areaStatus:u,isAgeFulfil:I,setAgeFulfil:R,updateSiteMaintenanceStatus:m,updateAreaStatus:g,updateIPCheck:f,osType:A,isInitializationCompleted:c,updateIsInitializationCompleted:p,addTimeDiff:b,getTimeDiff:v,getServerTime:y,robot:n,updateRobot:o,skinAssetsHash:a,skinAssetsHashState:r,updateSkinAssetsHash:s,maintainTimeInfo:e,updateMaintainTimeInfo:t,versionTips:L,updateVersionTips:T,isHiddenUpdateVersion:d,initVersionStatus:S,skeletonScreenStatus:D,setSkeletonScreenStatus:B=>{D.value=B}}},{persist:{paths:["skinAssetsHash","skinAssetsHashState","versionTips","isAgeFulfil"]}}),Ec=()=>Ot["mock.webAppVersion"]||"v7.5.141",jn=ke("device",()=>{const e=Qe(),t=O(),n=O(),o=O(e.isDesktop),a=f=>{t.value=f},r=f=>{n.value=f},s=O();return{uuid:t,hash:n,getHtmlTemplateVersion:()=>{var _;const f=(_=document.querySelector("html"))==null?void 0:_.getAttribute("data-version");if(f)try{return+new Date(f)}catch(h){return}},getXVersion:()=>{const f=Ec();let _="";return/^\d+$/.test(f)||(_=f.replace(/^v/i,"")),_},updateUUId:a,updateHash:r,getWebAppVersion:Ec,isDesktop:o,getDeviceVersion:()=>{var f,_,h;return re.package.isLite?(f=re.speedPackageConfig)==null?void 0:f.pkgVersion:re.package.isVest?((_=window.WgPackage)==null?void 0:_.patchVersion)||((h=window.WgPackage)==null?void 0:h.version):Ec()},getFbpCookie:()=>{const f=document.cookie.split(";");let _,h=0;for(const p of f){const y=p.split("=");if(y[0].trim()==="_fbp"){const b=y[1].trim(),v=b.split(".");if(v.length===4){const A=parseInt(v[2],10);A>h&&(h=A,_=b)}}}return _},getMetaCookie:f=>{const _=document.cookie.split(";");let h=null,p=0;for(const y of _){const[b,v]=y.split("=").map(A=>A.trim());if(b===f&&v){const A=v.split(".");if(A.length>=3){const L=parseInt(A[2],10);!isNaN(L)&&L>p&&(p=L,h=v)}else h||(h=v)}}return h},wsBrowserVerified:s,hasWsBrowserVerified:f=>{const _=s.value;return!_||!t.value||_.uuid!==t.value?!1:_.userIds.includes(f)},markWsBrowserVerified:f=>{var _;if(t.value){if(((_=s.value)==null?void 0:_.uuid)!==t.value){s.value={uuid:t.value,userIds:[f]};return}s.value.userIds.includes(f)||s.value.userIds.push(f)}}}},{persist:{paths:["uuid","wsBrowserVerified"],storage:Yo({},[{type:"local"},{type:"cookie",config:{pathsPick:["uuid"]}},{type:"memory",config:{pathsPick:["uuid"]}}])}}),wv="/lobby_asset/common/common/selfoperated-games/img_sszb_bg2.png",Iv=0,CH=1;var Nu=(e=>(e[e.CUSTOM=1]="CUSTOM",e[e.IMA_TXT=2]="IMA_TXT",e))(Nu||{}),qr=(e=>(e[e.TOP=0]="TOP",e[e.BANNER=1]="BANNER",e[e.MIDDLE=2]="MIDDLE",e[e.BOTTOM=3]="BOTTOM",e))(qr||{}),db=(e=>(e[e.CLOSED=0]="CLOSED",e[e.OPENED=1]="OPENED",e[e.OPENTD=2]="OPENTD",e))(db||{}),_A=(e=>(e[e.CLOSED=0]="CLOSED",e[e.OPENED=1]="OPENED",e))(_A||{}),$g=(e=>(e[e.CLOSED=0]="CLOSED",e[e.OPENED=1]="OPENED",e))($g||{}),wH=(e=>(e[e.popUpFromBottom=1]="popUpFromBottom",e[e.fixedInBottomHasClose=2]="fixedInBottomHasClose",e[e.fixedInBottomNoClose=3]="fixedInBottomNoClose",e))(wH||{}),IH=(e=>
9(e[e.show=1]="show",e[e.hidden=0]="hidden",e))(IH||{}),bA=(e=>(e[e.STYLE1=1]="STYLE1",e[e.STYLE2=2]="STYLE2",e[e.STYLE3=3]="STYLE3",e[e.STYLE4=4]="STYLE4",e[e.STYLE5=5]="STYLE5",e[e.STYLE6=6]="STYLE6",e[e.STYLE7=7]="STYLE7",e))(bA||{}),pm=(e=>(e[e.SYSTEM=1]="SYSTEM",e[e.CUSTOM=2]="CUSTOM",e[e.DEFAULT=3]="DEFAULT",e))(pm||{}),yA=(e=>(e[e.HIDE=0]="HIDE",e[e.SHOW=1]="SHOW",e))(yA||{}),cr=(e=>(e[e.LOGOIMG=1]="LOGOIMG",e[e.ARTFONT=2]="ARTFONT",e[e.TRANSPANTIMG=3]="TRANSPANTIMG",e[e.CODESTYLE=4]="CODESTYLE",e[e.CUSTOMGIF=5]="CUSTOMGIF",e[e.CURRENTLOGO=6]="CURRENTLOGO",e[e.PROGRESSBAR=7]="PROGRESSBAR",e))(cr||{}),AH=(e=>(e[e.LOGO=1]="LOGO",e[e.CUSTOM=2]="CUSTOM",e))(AH||{}),Ph=(e=>(e[e.CUSTOM=1]="CUSTOM",e[e.SKIN_DEFAULT=2]="SKIN_DEFAULT",e))(Ph||{}),mb=(e=>(e[e.SYSTEM=0]="SYSTEM",e[e.CUSTOM=1]="CUSTOM",e))(mb||{}),LH=(e=>(e[e.OPEN=1]="OPEN",e[e.CLOSED=0]="CLOSED",e))(LH||{}),Gr=(e=>(e[e.LOGO=1]="LOGO",e[e.LOGO_WITH_SMALL=2]="LOGO_WITH_SMALL",e[e.LOGO_WITH_MEDIUM=3]="LOGO_WITH_MEDIUM",e[e.LOGO_WITH_BIG=4]="LOGO_WITH_BIG",e[e.LOGO_WITH_EQUAL=5]="LOGO_WITH_EQUAL",e))(Gr||{}),vA=(e=>(e[e.NEW_WINDOW=1]="NEW_WINDOW",e[e.SAME_WINDOW=2]="SAME_WINDOW",e))(vA||{}),yo=(e=>(e[e.NONE=1]="NONE",e[e.CUSTOM=2]="CUSTOM",e[e.EVENT=3]="EVENT",e[e.TASK=4]="TASK",e[e.RECHARGE=5]="RECHARGE",e[e.REBATE=6]="REBATE",e[e.RECHARGE_FUND=11]="RECHARGE_FUND",e[e.BLINDBOX_LOTTERY=13]="BLINDBOX_LOTTERY",e[e.PROMOTE=36]="PROMOTE",e[e.LUCKY_WHEEL=16]="LUCKY_WHEEL",e[e.CLAIM=23]="CLAIM",e[e.CUT_ONE=25]="CUT_ONE",e[e.AWARD=32]="AWARD",e[e.SVIP=17]="SVIP",e))(yo||{}),Pc=(e=>(e.SOPEN="1",e.SCLOSE="0",e))(Pc||{}),TH=(e=>(e[e.isRestraintGame=1]="isRestraintGame",e[e.isRestraintBenefit=2]="isRestraintBenefit",e[e.isRestraintLogin=3]="isRestraintLogin",e[e.isRestraintDeposit=4]="isRestraintDeposit",e[e.isRestraintAccount=5]="isRestraintAccount",e))(TH||{}),RH=(e=>(e.isRestraintBenefit="isRestraintBenefit",e))(RH||{}),OH=(e=>(e[e.on=1]="on",e[e.off=0]="off",e))(OH||{}),hm=(e=>(e[e.OPEN=1]="OPEN",e[e.CLOSE=0]="CLOSE",e))(hm||{}),PH=(e=>(e[e.password=0]="password",e[e.withdrawalPwd=1]="withdrawalPwd",e[e.biometric=2]="biometric",e))(PH||{}),DH=(e=>(e.noRestraint="1",e.betAmount="2",e.betTimes="3",e.betLoss="4",e.betTime="5",e))(DH||{}),MH=(e=>(e.restraintGame="restraintGame",e.amountLimit="amountLimit",e))(MH||{}),SA=(e=>(e[e.Open=1]="Open",e[e.Hidden=0]="Hidden",e))(SA||{}),NH=(e=>(e[e.centerDialog=1]="centerDialog",e[e.fullDialog=2]="fullDialog",e))(NH||{}),kH=(e=>(e[e.BASIC_WARRANTY=0]="BASIC_WARRANTY",e[e.ADVANCED_WARRANTY=1]="ADVANCED_WARRANTY",e[e.COMPREHENSIVE_WARRANTY=2]="COMPREHENSIVE_WARRANTY",e))(kH||{}),BH=(e=>(e[e.Image=1]="Image",e[e.Video=2]="Video",e))(BH||{}),CA=(e=>(e[e.VIOLATION_NO_REFUND=1]="VIOLATION_NO_REFUND",e[e.FALSE_MANUAL_WITHDRAWAL=2]="FALSE_MANUAL_WITHDRAWAL",e[e.MANUAL_DEDUCTION=3]="MANUAL_DEDUCTION",e[e.LARGE_WITHDRAWAL_REJECTED=4]="LARGE_WITHDRAWAL_REJECTED",e[e.HIGH_PROFIT_REJECTED=5]="HIGH_PROFIT_REJECTED",e[e.ACCOUNT_FUNDS_STOLEN=6]="ACCOUNT_FUNDS_STOLEN",e[e.WEBSITE_PERMANENTLY_CLOSED=7]="WEBSITE_PERMANENTLY_CLOSED",e))(CA||{}),HH=(e=>(e[e.PENDING_ACCEPTANCE=1]="PENDING_ACCEPTANCE",e[e.PROCESSING=2]="PROCESSING",e[e.PENDING_PAYMENT=3]="PENDING_PAYMENT",e[e.COMPLETED=4]="COMPLETED",e[e.REJECTED=5]="REJECTED",e[e.CANCELED=6]="CANCELED",e))(HH||{}),xH=(e=>(e[e.OWNER=1]="OWNER",e[e.MEMBER=2]="MEMBER",e))(xH||{}),EH=(e=>(e[e.NORMAL=0]="NORMAL",e[e.CLAIMING=1]="CLAIMING",e[e.SUSPENDED=2]="SUSPENDED",e[e.PERMANENTLY_BANNED=3]="PERMANENTLY_BANNED",e))(EH||{}),UH=(e=>(e[e.NORMAL=0]="NORMAL",e[e.CLAIMING=1]="CLAIMING",e[e.SUSPENDED=2]="SUSPENDED",e))(UH||{}),wA=(e=>(e[e.ON=1]="ON",e[e.OFF=2]="OFF",e))(wA||{}),GH=(e=>(e[e.WAITING=1]="WAITING",e[e.PROGRESS=2]="PROGRESS",e[e.PAY=3]="PAY",e[e.REPAY=4]="REPAY",e[e.COMPLETED=5]="COMPLETED",e[e.REJECTED=6]="REJECTED",e[e.CANCEL=7]="CANCEL",e))(GH||{}),FH=(e=>(e[e.ON=1]="ON",e[e.OFF=0]="OFF",e))(FH||{}),WH=(e=>(e[e.PASSWORD=4105423]="PASSWORD",e))(WH||{}),gb=(e=>(e[e.NotCanceled=0]="NotCanceled",e[e.Canceled=1]="Canceled",e[e.Closed=2]="Closed",e))(gb||{});function Ku(){const e=J(),t=C(()=>{var r;return((r=ue().systemInfos)==null?void 0:r.legalConfigPromoteSwitch)!==dr.OPEN}),n=C(()=>{var a;return t.value&&(!e.hasLoginedComponent||((a=e.userInfos)==null?void 0:a.account_type)!==qt.NormalMember)}),o=C(()=>{var a;return t.value&&e.hasLoginedComponent&&((a=e.userInfos)==null?void 0:a.account_type)===qt.NormalMember});return{isShowPromote:t,showPromoteEntry:n,isShowAgentShareEarn:o}}const IA=ke("debugger",()=>{const e=Ot["mock.useMockMaintainIframe"]==="true",t=Ot["mock.clubDomain"];return{useMockMaintainIframe:e,clubDomain:t}});class dt{constructor(){}static get enableRegister(){return!0}static getCurrentDomain(){return IA().clubDomain||this.domain||location.origin}static getCurrentHostname(){const t=this.getCurrentDomain();try{const{hostname:n}=new URL(t);return n}catch(n){return location.hostname}}}x(dt,"enable",!1),x(dt,"currency"),x(dt,"id",0),x(dt,"isOpenRegister",!0),x(dt,"isAllowLoan",!1),x(dt,"buildFee"),x(dt,"domain");const VH={isUniversalThemeType:!1,hasAsideBadge:!1,isHK:!1,hasJackPotUI:!0,navHasMore:!0,navPath:"",customNavBasePath:"",personalCenterItemBorder:!1,hasJackPotWs:!0,sideBarCommonBg:!0,sideBarTabPosition:"left",asideGameIconNormal:!0,hasCustomizeSource:!1,isNotCustomizeGameImage:!0,subDefaultCardsPerRow:3,subHorizontalCardsPerRow:2,subNoPlatformCardsPerRowAll:1,subNoPlatformCardsPerRowOther:4,isSubPageScrollLoadEnabled:!1,isGameNameForceOneLine:!1,isSubPageForceLoadMore:!1,maintainIconStyleNo:"",isShowSelectCustomName:!1,isS
9howMineSelectCustomName:!0,navTextOneLine:!1,isShowRechargePop:!0,isShowHearderVip:!1,isTabbarShowActiveIcon:!0,isUseNewImagePath:!1,isFindUsEntryInPersonCenter:!0,isHeaderShowFestivalBg:!1,isFindUsEntryInAside:!0,isExpandTabbar:!1,isSupportSlideMultipleStyles:!1,isCorrectGameMenuActive:!1,isElectronicBadge:!1,isElectronicBadgeDot:!1,isShowNoWalletBindBar:!1,isDiscountFullScreenScroll:!1,isOnlyEventPageDefaultStyle:!1,isUseEventDefaultConfig:!1,isSetEventBarReduceVersion:!1,subGameSideTabGameCategoryUseActiveIcon:!1,isCommonBannerNoCut:!1,isUniversalFestivalStyle:!1,isNologinMine:!0,customPlaceholderImage:{},isShowClubBackMenu:!1,isShowFestivalPartern:!0,supportsMp4HolidayMedia:!1,isAwlaysShowSportHome:!1,isCricketFirst:!0,isUseNewDiscountBadge:!0,isShowCustomizeBottomIconMap:!1,gameInvalidRedirectTo:k.GAME,isClubMarqueeCommon:!1,hasMiniJackPotUI:!1,miniJackpotShowBesidesHome:[],isSpecialUniversalIcon:!1,isWinnerUniversalIcon:!1,isAsideBgPath:!1,isShowFestivalHeaderMiddleAnimation:!1,isShowFestivelImgOnlyRightBottom:!1,isOpenNavPopupOverLay:!1,isSupportHomeTabBarToTop:!1,homeTabBarToTopTextKey:"lobby.plan.tabbar.backTop",isScrollHideTabbar:!1,isOpenAnimteRegister:!1,forceShowAppDownloadEntry:!1,downloadInstallButtonLottie:{},showRegisterBadge:!0,showHotCategoryWhenEmpty:!0,isRemoveBackdropFilter:!1,isShowFestivalInAside:!1,renderAsideInTabbar:!1,isReportDisplayRoom:!1,isSupportMarqueeLogo:!0,dialogHomeBg:[],dialogCloseIconPath:"",clubModeShowBg:!0,isShowNightMode:!1,showCouponTipRoute:k.GAME,customerServiceStyle:{width:100,height:100,right:0,bottom:0},isDisplayTabBarInSearchSub:!1,isSupportCategoryToggle:!0,isAddIosSafeAreaInset:!0,fastEntryHomePage:[k.HOME,k.GAME],isUseCategoryMerge:!0,isMiddleMoreBadge:!1,forceShowTabbarRoutes:[],isHideRechargeEntryBySwitch:!1,isHideWithdrawEntryBySwitch:!1,vestHideFooter:!1,jackpotCommonSpace:!0,disableAvifForFestival:!1,isSimpleTheme:!1},Ke={...VH,hasAsideBadge:!0,hasJackPotUI:!0,hasJackPotWs:!0,isUniversalFestivalStyle:!0,isShowRechargePop:!0,isUseNewImagePath:!0,isShowMineSelectCustomName:!0,isHeaderShowFestivalBg:!0,isCorrectGameMenuActive:!0,isShowNoWalletBindBar:!0,isCommonBannerNoCut:!0,isUniversalThemeType:!0,isWinnerUniversalIcon:!0,isUseNewDiscountBadge:!0,hasMiniJackPotUI:!0,isSpecialUniversalIcon:!0,isAsideBgPath:!0,hasCustomizeSource:!0,isShowNightMode:!0,showHotCategoryWhenEmpty:!1,isSubPageScrollLoadEnabled:!0,vestHideFooter:!0},Ze=ke("site",()=>{const{t:e}=we(),t=ue(),n=ze(),o=Ku(),a=Ge(),r=J(),s=O(!1),i=C(()=>{var U;return(U=t==null?void 0:t.siteConfig)==null?void 0:U.siteCode}),c=C(()=>{var U;return(U=t==null?void 0:t.siteInfos)==null?void 0:U.deployEnv}),l=C(()=>t.isClubSite),u=O(null),d=U=>{u.value=U},m=O(null),g=U=>{m.value=U},f=O(null),_=U=>{f.value=U};fe(()=>{var U;
9return[r.hasLogined,r.isTryMode,o.isShowPromote.value,(U=f.value)==null?void 0:U.pureAgentOpenRegister]},async()=>{var W,oe,be;if(!r.hasLogined||r.isTryMode||!o.isShowPromote.value||((W=f.value)==null?void 0:W.pureAgentOpenRegister)!==cm.OPEN){s.value=!1;return}if(h.value){s.value=h.value.pureAgentOpenRegister===cm.OPEN;return}const U=await _H();(oe=U.data)!=null&&oe.data?(p(U.data.data),s.value=((be=U.data.data)==null?void 0:be.pureAgentOpenRegister)===cm.OPEN):s.value=!1},{immediate:!0});const h=O(null),p=U=>{h.value=U},y=O(),b=U=>{y.value=U},v=O({}),A=U=>{v.value=U},L=O(),T=U=>{L.value=U},S=O(),I=U=>{S.value=U},R=O(),D=U=>{R.value=U},M=C(()=>{var et;const U=((et=L.value)==null?void 0:et.selfRestraintEntry)||{},W=U.isShowEntry===hm.OPEN,oe=U.isProfileEntry===hm.OPEN,be=U.isSidebarEntry===hm.OPEN;return W?{isMineHidden:oe,isOtherHidden:be}:{isMineHidden:!1,isOtherHidden:!1}}),B=C(()=>{var U,W;return((W=(U=L.value)==null?void 0:U.findUs)==null?void 0:W.isEntry)===1}),E=C(()=>{var U,W;return(W=(U=S.value)==null?void 0:U.noWalletCurrencyStatus)==null?void 0:W.some(oe=>oe.currency===n.currency&&oe.status===!0)}),Y=C(()=>{var U,W,oe;return(oe=(W=(U=L.value)==null?void 0:U.leagueConfig)==null?void 0:W.entry)!=null?oe:e("lobby.matchNews.entranceName")}),H=C(()=>{var U,W;return((W=(U=L.value)==null?void 0:U.leagueConfig)==null?void 0:W.isInfo)!==yA.SHOW||dt.enable}),F=C(()=>{var oe;const U=(oe=L==null?void 0:L.value)==null?void 0:oe.leagueConfig;return!(U!=null&&U.isOpen)||(U==null?void 0:U.liveImgType)===pm.DEFAULT?wv:U==null?void 0:U.liveImg}),Q=C(()=>{var U,W;return((W=(U=L.value)==null?void 0:U.leagueConfig)==null?void 0:W.failImg)||F.value}),G=C(()=>{var W,oe,be,Ie;const U=(oe=(W=L==null?void 0:L.value)==null?void 0:W.leagueConfig)==null?void 0:oe.liveImgType;if(U===pm.SYSTEM){const Me=(Ie=(be=L==null?void 0:L.value)==null?void 0:be.leagueConfig)==null?void 0:Ie.liveImgIndex;return Me?Me-1:Iv}return U===pm.DEFAULT?CH:Iv}),N=C(()=>{var W;const U=(W=L.value)==null?void 0:W.loadingStyle;return(U==null?void 0:U.fontFamily)!==$.value.fontFamily&&!!(U!=null&&U.subsetFontFile)&&(U==null?void 0:U.type)===2}),$=O({fontFamily:""}),X=U=>{$.value.fontFamily=U},j=C(()=>{var U,W;return((W=(U=t==null?void 0:t.systemInfos)==null?void 0:U.newsConfig)==null?void 0:W.inputChineseText)||""}),te=C(()=>{var U,W;return a.language==="zh"&&!!((W=(U=t==null?void 0:t.systemInfos)==null?void 0:U.newsConfig)!=null&&W.status)}),K=C(()=>{var U,W;return((W=(U=t==null?void 0:t.systemInfos)==null?void 0:U.newsConfig)==null?void 0:W.inputImage)||""}),q=C(()=>{var U;return((U=t==null?void 0:t.systemInfos)==null?void 0:U.legalConfigInfoUpdatePopInfo)||""}),ae=C(()=>{var U,W;return((W=(U=t.homeLayoutInfos)==null?void 0:U.commonConfig)==null?void 0:W.footerSecondStyle)===eI.OPEN}),me=U=>{var Ie,Me;if(!U)return!1;let W;if(typeof U=="string")try{W=JSON.parse(U)}catch(et){return!1}else W=U;if(!(W!=null&&W.type)||W.type===lm.ALL)return!1;const oe=r.userInfos;if(!oe||!r.hasLogined||r.isTemporaryAccountMode)return!0;const be=((Ie=W.value)!=null?Ie:"").split(",").map(et=>et.trim()).filter(Boolean);return be.length?W.type===lm.LEVEL?!be.includes(String(oe.member_level)):W.type===lm.TAG?!((Me=oe.member_tag_ids)!=null?Me:"").split(",").map(se=>se.trim()).filter(Boolean).some(se=>be.includes(se)):!1:!1},de=C(()=>{var W;if(!Ke.isHideRechargeEntryBySwitch||dt.enable)return!1;const U=(W=t.homeLayoutInfos)==null?void 0:W.commonConfig;return(U==null?void 0:U.depositShow)===Pc.SCLOSE?!0:(U==null?void 0:U.depositShow)===Pc.SOPEN&&me(U==null?void 0:U.depositMbrCfg)}),ne=C(()=>{var W;if(!Ke.isHideWithdrawEntryBySwitch||dt.enable)return!1;const U=(W=t.homeLayoutInfos)==null?void 0:W.commonConfig;return(U==null?void 0:U.withdrawShow)===Pc.SCLOSE?!0:(U==null?void 0:U.withdrawShow)===Pc.SOPEN&&me(U==null?void 0:U.withdrawMbrCfg)});return{isClubSite:l,siteCode:i,socialMediaList:u,setSocialMediaList:d,vipSwitchStatus:m,setVipSwitchStatus:g,yuebaoGetSetting:y,setYuebaoGetSetting:b,channelGlobalConfig:v,setChannelGlobalConfig:A,setPureAgentConfig:_,pureAgentConfig:f,setAgentApplyConfig:p,agentApplyConfig:h,hasAgentApplyEntry:s,brandLogoInfos:L,setBrandLogoInfos:T,isForbiddenSelfShow:M,financeSetting:S,setFinanceSetting:I,isFindUsEnterShow:B,deployEnv:c,currencyNoWalletIsOpen:E,customEventName:Y,liveImage:F,liveFailImage:Q,liveImgIndex:G,isHideMatchNews:H,installFontData:$,isInstallFont:N,updateInstallFont:X,isShowGossip:te,gossipName:j,gossipIcon:K,clubSetting:R,setClubSetting:D,userSettingTipsInfo:q,showTabbarOnSubPage:ae,isHideRechargeEntry:de,isHideWithdrawEntry:ne}},{persist:{paths:["brandLogoInfos","yuebaoGetSetting","clubSetting"],storage:{getItem:e=>localStorage.getItem(e),setItem:(e,t)=>
9{var n,o,a;try{const r=(n=JSON.parse(t))==null?void 0:n.brandLogoInfos,s=(o=JSON.parse(t))==null?void 0:o.yuebaoGetSetting,i=(a=JSON.parse(t))==null?void 0:a.clubSetting,c={brandLogoInfos:r?Lo(r,["type","hallLogo","brandName","brandNameText","officialWebsite","bootInstallationIconSwitch","bootInstallationIconUrl","topIconColor","topBgColor","topIconTextColor","topDownloadText","customizeH5Config","h5Config","bootInstallationSwitch","bootInstallationStyles","bootInstallationStyle","agreeTitle","winnerCarousels","combinationSwitch","publicityOpen","loadingStyle","logoStyle","subLogoImage"]):{},yuebaoGetSetting:s?Lo(s,["yearRate","isPop"]):{},clubSetting:i?Lo(i,["isClubApplyOpen"]):{}};localStorage.setItem(e,JSON.stringify(c))}catch(r){}}}}});var $H={env:"prod"};const AA=mw();function $f(e){var o,a,r,s;const t=jn(),n=((a=(o=ue().siteURLInfos)==null?void 0:o.logReportUrl)!=null?a:[]).map(i=>i==null?void 0:i.replace(/\/+$/,"")).filter(Boolean);AA.emit("t",{hosts:n,dims:{site:(r=Ze().siteCode)!=null?r:"",device:(s=t.uuid)!=null?s:"",ver:t.getWebAppVersion(),env:$H.env}})}function YH(){xk.init(AA)}YH();const qH=Xc.create({baseURL:Li.baseURL,timeout:Li.timeout,headers:{"Content-type":"application/json"},transformResponse:[e=>DA(e)]});class zH{constructor(t){x(this,"buckets");x(this,"totalRequests");x(this,"reportFunction");const{buckets:n,totalRequests:o}=this.loadState();this.buckets=n,this.totalRequests=o,this.reportFunction=t}recordRequest(t,n=!1){const o=Math.ceil(t/100)*100;["INDEXEDDB",...n?["INDEXEDDB_TIMEOUT"]:["INDEXEDDB_NORMAL"]].forEach(r=>{const s=`${r}:${o}`;this.buckets[s]||(this.buckets[s]=0),this.buckets[s]++}),this.totalRequests++,this.saveState(),this.totalRequests>=100&&(this.report(),this.reset())}report(){this.reportFunction(this.buckets)}reset(){this.buckets={},this.totalRequests=0,this.saveState()}saveState(){Ti.set("webLobbyindexedDBRequestStats",{buckets:this.buckets,totalRequests:this.totalRequests},0)}loadState(){const t=Ti.get("webLobbyindexedDBRequestStats");if(t){const{buckets:n,totalRequests:o}=t;return{buckets:n||{},totalRequests:o||0}}return{buckets:{},totalRequests:0}}}const Av=new zH(e=>{Re.doReport({rule:Re.rules.SENSOR_BURIED,eventName:Re.sensorEvents.IndexedDBStatistics,payload:{...e}}).catch(()=>{})});var jH={env:"prod"};const Lv=(e=(n,o=!1)=>
9{o?ve("RESPONSE_ERROR_DIALOG").emit({message:n}):ve("RESPONSE_ERROR").emit({message:n})},t)=>t?Zc(e,t):e,yd={IMMEDIATE:Lv(),THROTTLED_1_MIN:Lv(void 0,1e3*60)};let Yf=0;class KH{constructor(t){x(this,"axiosInstance",qH);x(this,"cancelTokenSource",Xc.CancelToken.source());x(this,"id");x(this,"mode","api");x(this,"startTime");x(this,"forceRetry",!1);x(this,"lastErrorType");x(this,"cryptoKey","");x(this,"requestCount",0);x(this,"originUrl");x(this,"originBaseURL");x(this,"ossPath");x(this,"isWaitingFor");x(this,"isBaseUrlFull");x(this,"isUrlFull");x(this,"ready",!1);x(this,"isFirstTime");x(this,"prevInfo",{});x(this,"theUsedHostMap",{});x(this,"params");x(this,"headers");x(this,"originParams");x(this,"originData");x(this,"originHeaders");x(this,"config");x(this,"customConfig");x(this,"queue",[]);x(this,"onFinish");x(this,"onApiRequestFail");x(this,"onApiRequestSuccess");x(this,"emmitMaintainEvent");x(this,"xRequestId",dl());x(this,"usedHostList",[]);x(this,"cache");x(this,"cacheBeforeNetworkResult");var o;this.id=t.id,this.config=Fn(t.config),this.customConfig=Fn(t.customConfig),this.isFirstTime=t.isFirstTime,this.originUrl=this.config.url,this.originBaseURL=(o=this.config.baseURL)!=null?o:Li.baseURL,this.originParams=this.config.params?Fn(this.config.params):void 0,this.originData=this.config.data?Fn(this.config.data):void 0,this.originHeaders=this.config.headers?Fn(this.config.headers):void 0,this.isBaseUrlFull=_d(this.originBaseURL),this.isUrlFull=!!this.originUrl&&_d(this.originUrl),this.config.method=this.config.method?this.config.method.toUpperCase():"GET",this.onFinish=t.onFinish,this.onApiRequestFail=t.onApiRequestFail,this.onApiRequestSuccess=t.onApiRequestSuccess,this.emmitMaintainEvent=t.emmitMaintainEvent,(()=>{this.startTime=Date.now(),this.add({customConfig:t.customConfig,queueItem:[t.resolve,t.reject],done:!1}),this.applyConfig()})()}get hiddenLogEndpoints(){return["/api/backstage/system/guestHome","/api/lobby/lowFrequencyConfig","/api/lobby/highFrequencyConfig","/api/lobby/injectedDataConfig","/api/lobby/platformGameConfig"].some(n=>{var o;return(o=this.originUrl)==null?void 0:o.includes(n)})||["try","prod"].includes(jH.env)&&["/cocos/config_data.json"].some(n=>{var o;return(o=this.config.url)==null?void 0:o.includes(n)})}cryptoEnable(){var t,n;return(n=(t=this.customConfig)==null?void 0:t.crypto)==null?void 0:n.enable}useTextContent(){var t,n;return((n=(t=this.customConfig)==null?void 0:t.crypto)==null?void 0:n.contentType)==="text"}getContentType(){return Uk(this.customConfig)}getXDataMode(){return WI(this.customConfig)}getOssHost(){var t,n;return Ht().pickOssHost({attempt:this.requestCount,maxRetryCount:this.getMaxRetryCount(),pure:!!((n=(t=this.customConfig)==null?void 0:t.oss)!=null&&n.force)})}getRequestType(){var n,o,a;const t=(n=this.customConfig)==null?void 0:n.oss;if(t!=null&&t.enable){if(t!=null&&t.force)return"oss";{const r=((a=(o=this.customConfig)==null?void 0:o.token)==null?void 0:a.type)||"",{isLogined:s}=J();if(r==="loginOnly"||s&&r==="tryLogined")return"api";const i=this.getOssHost();return!i||this.theUsedHostMap[i]||this.requestCount>=this.getMaxRetryCount()/2?"api":"oss"}}return"api"}setupParams(){var n,o,a,r,s,i,c;if((typeof((n=this.customConfig)==null?void 0:n.addCommonParams)=="function"?(a=(o=this.customConfig)==null?void 0:o.addCommonParams)==null?void 0:a.call(o,this.config):(r=this.customConfig)==null?void 0:r.addCommonParams)&&this.config.method==="GET"){const{siteCode:l}=Ze(),u=Pe({siteCode:l,token:((s=this.config.headers)==null?void 0:s.token)||Si(this.customConfig)||null,currency:Jm(this.customConfig),language:Dh(),platformType:fb(this.customConfig)},this.config.params);this.params=Fs(u,(c=(i=this.customConfig)==null?void 0:i.omitKey)!=null?c:[])}else this.params=this.originParams}getVersionParams(){var t;if(this.mode==="oss"){const n=hA(),o=((t=this.originBaseURL)!=null?t:Li.baseURL)+this.originUrl,a=n.getUrlVersion(o);if(a!=null&&a.ts)return{v:a.ts}}return{}}getParams(){var a,r,s,i,c;const t=((r=(a=this.customConfig)==null?void 0:a.crypto)==null?void 0:r.deduplicateParams)&&this.mode!=="oss"&&this.config.params&&this.config.params.encryptString&&this.cryptoEnable(),n=((i=(s=this.customConfig)==null?void 0:s.crypto)==null?void 0:i.deduplicateParams)&&!((c=this.originUrl)!=null&&c.endsWith(".json"))&&this.mode==="oss"&&this.config.params&&this.ossPath;return{params:{...t||n?Fs(this.config.params,Object.keys(this.originParams||{})):this.config.params,...this.getVersionParams()}}}ensureValidHeadersToken(){var t;(t=this.originHeaders)!=null&&t.token||this.config.headers&&(this.config.headers.token=Si(this.customConfig),this.headers&&(this.headers.token=this.config.headers.token))}isTokenStale(t){var o,a,r,s;const n=(s=(a=(o=t==null?void 0:t.config)==null?void 0:o.headers)==null?void 0:a.token)!=null?s:(r=this.headers)==null?void 0:r.token;return!!n&&n!==Si(this.customConfig)}setupConfig(){var b,v;const{userInfos:t,getFingerId:n}=J(),{jwtToken:o}=tn(),a=Dh(),{uuid:r,getXVersion:s,getHtmlTemplateVersion:i,getDeviceVersion:c,getFbpCookie:l,getMetaCookie:u}=jn(),{siteCode:d}=Ze(),{getServerTime:m}=Tt(),g=m(),f=this.config.data;f&&(f.time=(b=f==null?void 0:f.time)!=null?b:g);
9const _=ft(),h=_==null?void 0:_.browser.format,p=jB(),y=KB(p);this.config=Pe({},{responseType:this.cryptoEnable()&&this.useTextContent()?"text":"json",headers:{"x-object-id":JSON.stringify({uid:(t==null?void 0:t.username)||"",browserLanguage:navigator.language,init:{device:dP,created:uP,version:i()}}),platformType:(v=this.customConfig)!=null&&v.useAppEnv?6:5,"x-device":`${Wg()}-${Vg()}`,"content-type":this.getContentType(),"x-data-mode":this.getXDataMode(),"accept-language":a,"x-request-id":this.xRequestId,device:r,currency:Jm(this.customConfig),timestamp:g,siteCode:d,language:a,token:Si(this.customConfig),newJwt:o,deviceModel:dc(y||h),physicalDeviceModel:dc(y),operatingSystem:dc(_.os.name),deviceBrand:dc(p),browserType:dc(h),appSystem:dc(_.os.versionFormat),domain:window.location.host,webauthnDomain:window.location.host,clienttimezone:e6(),"x-custom-referer":window.location.href,"x-version":s(),appVersion:c()||"unknown",browserfingerid:n,fbp:l(),fbc:u("_fbc")},data:f},this.config),this.headers=this.config.headers}setupUrl(){var t,n,o,a,r,s,i,c,l;if(this.mode==="api"){if(this.config.url=this.originUrl,this.isBaseUrlFull||this.isUrlFull){this.usedHostList.push(this.originBaseURL);return}this.requestCount>=1?this.config.baseURL=ux({customConfig:this.customConfig,prevMode:this.prevInfo.mode,prevApiDomain:this.prevInfo.apiDomain,attempt:this.requestCount})+this.originBaseURL:this.config.baseURL=lx()+this.originBaseURL,this.prevInfo.apiDomain=this.config.baseURL,this.usedHostList.push(this.config.baseURL)}else{if(!this.ossPath){const m=(typeof((t=this.customConfig)==null?void 0:t.addCommonParams)=="function"?(o=(n=this.customConfig)==null?void 0:n.addCommonParams)==null?void 0:o.call(n,this.config):(a=this.customConfig)==null?void 0:a.addCommonParams)?Fs(this.params,["siteCode","token","encryptString"]):void 0,g=Ih(this.customConfig)?".gzip.json":".json",_=((r=this.originUrl)==null?void 0:r.endsWith(".json"))?"":(i=(s=this.customConfig)==null?void 0:s.oss)!=null&&i.isDefaultFile?`/default${g}`:g;this.ossPath=m?dx(m)+_:_}if(this.config.url=((c=this.originUrl)!=null?c:"")+this.ossPath,this.isBaseUrlFull){this.usedHostList.push(this.originBaseURL);return}const u=this.getOssHost();this.usedHostList.push(u),u&&(this.theUsedHostMap[u]=!0,this.prevInfo.ossHost=u,this.config.baseURL=dw(u+((l=this.originBaseURL)!=null?l:"")))}}encode(){var t;this.cryptoKey=Fk(this.config,this.customConfig,this.mode),this.config.data&&((t=this.customConfig)!=null&&t.autoSetupFormData)&&(this.config.data=this.setupFormData(this.config.data,this.customConfig))}async decode(t){const{forceRetry:n}=await Wk(t,this.cryptoKey,this.customConfig,this.mode,DA);n&&(this.forceRetry=!0)}setupFormData(t,n){var a;if(t instanceof FormData)return t;if((a=n==null?void 0:n.crypto)!=null&&a.enable)return Sn.efd(t,this.cryptoKey);const o=new FormData;for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&o.append(r,t[r]);return o}async applyConfig(){var s,i,c,l,u,d,m,g,f;const t=(i=(s=this.customConfig)==null?void 0:s.cache)!=null&&i.useCache?await this.getCache((l=(c=this.customConfig)==null?void 0:c.cache)==null?void 0:l.useCache):null;if(t){this.onComplete("resolve",t);return}if(this.originUrl&&aa.shouldServe(this.config.method,this.originUrl,this.originParams,this.customConfig))try{const _=aa.isPrefetchStartedFor(this.originUrl);_&&await aa.whenReadyFor(this.originUrl);const h=aa.get(this.originUrl,this.originParams,this.customConfig);if(h!==null&&typeof h=="object"){const p=_x(h,this.config);if(!qf(p,this.customConfig)){Ys(void 0,"å½ä¸ï¼éç¨èåç»æ",this.originUrl),this.setCache(p),this.onComplete("resolve",p);return}Go(void 0,"å½ä¸ä½ååºè¢«å¤ä¸ºé误ï¼åéä¸ºéæ¡è¯·æ±",this.originUrl)}else _&&Go(void 0,`æªå½ä¸ï¼åéä¸ºéæ¡è¯·æ± ââ ${aa.describeMiss(this.originUrl)}`,this.originUrl)}catch(_){Go(void 0,"æ¦æªåå
é¨å¼å¸¸ï¼åéä¸ºéæ¡è¯·æ±",_)}const n=((u=this.customConfig)==null?void 0:u.throttleWait)||0;if(n>0){setTimeout(()=>{this.request()},n);return}const{duringLogout:o}=J();if(o&&!((m=(d=this.customConfig)==null?void 0:d.requestControl)!=null&&m.allowDuringLogout)){console.log("Request canceled due to logout process.",this.config.url);return}const a=Si(this.customConfig);if(((f=(g=this.customConfig)==null?void 0:g.token)==null?void 0:f.type)&&(a!=null&&a.startsWith("ensure"))){this.isWaitingFor=a,c
9onsole.log(`[NETWORK PAUSED] Waitting for ${a}`,this.config.url);return}this.request()}log(...t){var n;(n=this.originUrl)!=null&&n.includes(".svg")||nt.info(...t)}indexDBTimeoutHandler(t,{strategyName:n,elapsedTime:o}){this.log(...Za.red(`${t} TIMEOUT`),[`${this.config.method} <<<<<< ${this.originUrl}`,`[DB2C HTTP ${this.xRequestId} ${this.id}]`,`strategyName@${n} elapsedTime@${o}ms`].join(` 10`)),Av.recordRequest(o)}indexDBNormalHandler(t,{expiresAt:n,removeAt:o,elapsedTime:a,strategyName:r,data:s}){this.log(...Za.green(`${t}`),[`${this.config.method} <<<<<< ${this.originUrl}`,`[DB2C HTTP ${this.xRequestId} ${this.id}]`,`strategyName@${r} elapsedTime@${a}ms expiresAt@${Ye(n).format()} removeAt@${Ye(o).format()}`,`${JSON.stringify(Nt(s,"data"))}`].join(` 11`)),Av.recordRequest(a)}getCacheAllowExpiredCache(t){return this.log(...Za.green(`[${t} SEND]`),[`${this.config.method} >>>>>> ${this.originUrl}`,`[C2DB HTTP ${this.xRequestId} ${this.id}]`].join(` 12`)),qe.httpResDataRecord.get(this.id,!0,{timeout:(n,o)=>{this.indexDBTimeoutHandler(`[${t} GET]`,o)},normal:(n,o)=>{this.indexDBNormalHandler(`[${t} GET]`,o)}})}cacheBeforeNetwork(){var o;const t=(o=this.customConfig)==null?void 0:o.cache,n=t==null?void 0:t.getCacheSync;n&&typeof n=="function"&&this.getCacheAllowExpiredCache("CACHE-BEFORE-NETWORK").then(a=>{a&&(this.cacheBeforeNetworkResult=a,this.queue.forEach(r=>{this.cacheBeforeNetworkApply(r)}))})}cacheBeforeNetworkApply(t){var a,r;if(!this.cacheBeforeNetworkResult)return;const n=this.cacheBeforeNetworkResult,o=(r=(a=t.customConfig)==null?void 0:a.cache)==null?void 0:r.getCacheSync;this.log(...t.done?Za.red("[CACHE-BEFORE-NETWORK APPLY]"):Za.green("[CACHE-BEFORE-NETWORK APPLY]"),[`${this.config.method} <<<<<< ${this.originUrl}`,`[DB2C HTTP ${this.xRequestId} ${this.id}]`,t.done?"REQUEST NETWORK OR CACHE HAS DONE":"SUCCESS"].join(` 13`)),!t.done&&o&&typeof o=="function"&&o(n,!!Nt(n,"data.__isExpired__"),this.isFirstTime)}request(){var n;this.cacheBeforeNetwork();const t=Date.now();this.log(...Za.magenta("[NETWORK SEND]"),[`${this.config.method} >>>>>> ${this.originUrl}`,`[C2S HTTP ${this.xRequestId} ${this.id}]`,`${JSON.stringify({...Lo(this.config,["params","data"]),customConfig:this.customConfig})}`].join(` 14`)),this.ready||(this.setupConfig(),this.encode(),this.setupParams(),this.ready=!0),this.mode=this.getRequestType(),this.setupUrl(),this.config.responseType=this.mode==="oss"&&Ih(this.customConfig)?"arraybuffer":this.cryptoEnable()&&this.useTextContent()?"text":"json",this.requestCount++,this.mode==="oss"||(n=this.originUrl)!=null&&n.includes(".svg")?(delete this.config.headers,this.config.params=this.originParams):(this.config.headers=this.headers,this.config.params=this.params),this.axiosInstance.request({timeout:this.lastErrorType==="timeoutError"?Li.timeoutByRetry:void 0,...this.config,...this.getParams(),cancelToken:this.cancelTokenSource.token}).then(async o=>{var r,s,i,c,l;if(this.lastErrorType=void 0,Yf=Date.now(),this.recordRequestInfo(!0),await this.decode(o),this.log(...Za.magenta("[NETWORK GET]"),[`${this.config.method} <<<<<< ${this.originUrl}`,`[S2C HTTP ${this.xRequestId} ${this.id}]`,`elapsedTime@${Date.now()-t}ms`,`x-request-id:${this.xRequestId}`,`x-trace-id:${o.headers["x-trace-id"]}ï¼Please use this ID to ask a backend colleague for help in investigating this request.`,`${this.hiddenLogEndpoints?"*****hiddenLogEndpoints*****":JSON.stringify(o.data)}`].join(` 15`)),this.record(o),qf(o,this.customConfig)){this.onFail(o);return}Sv(!1);const a=typeof((r=o==null?void 0:o.data)==null?void 0:r.time)!="undefined"?"time":"timestamp";if((i=(s=this.customConfig)==null?void 0:s.oss)!=null&&i.checkWithCache&&this.mode==="oss"&&a){const u=await this.getCacheAllowExpiredCache("OSS-COMPARE-WITH-CACHE");u&&((c=u==null?void 0:u.data)==null?void 0:c[a])>((l=o.data)==null?void 0:l[a])?(this.log(...Za.red("[USE CACHE INSTEAD OF OSS]"),[`${this.config.method} <<<<<< ${this.originUrl}`,`[C2DB HTTP ${this.xRequestId} ${this.id}]`].join(` 16`)),o={...u}):this.setCache(o)}else this.setCache(o);this.onComplete("resolve",o),this.mode==="api"&&this.onApiRequestSuccess(o)}).catch(o=>{if(Xc.isCancel(o)){console.log("Request canceled",o.message);return}this.recordRequestInfo(!1),this.onFail(o)})}async getCache(t){var n,o;return!t||(t=t===!0?"fresh":t,t==="fresh"&&this.isFirstTime&&((o=(n=this.customConfig)==null?void 0:n.cache)!=null&&o.expireOnloaded))||!this.cache&&(this.log(...Za.green("[CACHE SEND]"),[`${this.config.method} >>>>>> ${this.originUrl}`,`[C2DB HTTP ${this.xRequestId} ${this.id}]`].join(` 17`)),await qe.httpResDataRecord.get(this.id,!0,{timeout:(a,r)=>{this.indexDBTimeoutHandler("[CACHE GET]",r)},normal:(a,r)=>{this.indexDBNormalHandler("[CACHE GET]",r),this.cache=r}}),!this.cache)||t==="fresh"&&this.cache.expiresAt<Date.now()?null:this.cache.data}setCache(t){var s,i,c,l,u,d,m,g,f,_;const n=(c=(i=(s=this.customConfig)==null?void 0:s.cache)==null?void 0:i.time)!=null?c:0,o=(u=(l=this.customConfig)==null?void 0:l.cache)==null?void 0:u.setCache,a=(m=(d=this.customConfig)==null?void 0:d.cache)==null?void 0:m.getCacheSync;let r=!1;if(o==="auto"?r=typeof a=="function"?!0:!!((f=(g=this.customConfig)==null?void 0:g.cache)!=null&&f.useCache):r=!!o,r){const h=t.config.method?t.config.method.toUpperCase():"GET";qe.httpReqRecord.set({requestId:this.xRequestId,path:(_=t.config.url)!=null?_:"",data:h==="GET"?t.config.params:t.config.data,method:h});const p=Array.isArray(t.data)?[...t.data]:{...t.data};p.__isCache=!0;const y={data:p,status:t.status,config:{url:t.config.url,baseURL:t.config.baseURL,headers:{"x-request-id":this.xRequestId}},headers:{"x-trace-id":t.headers["x-trace-id"]}};qe.httpResDataRecord.set({key:this.id,requestId:this.xRequestId,data:(()=>{try{return JSON.parse(JSON.stringify(y))}catch(b){}return y})(),url:t.config.url,originUrl:this.originUrl,expires:n},{normal:(b,{expiresAt:v,removeAt:A})=>{this.log(...Za.green("[CACHE SET]"),[`${this.config.method} >>>>>> ${this.originUrl}`,`[C2DB HTTP ${this.xRequestId} ${this.id}]`,`expiresAt@${Ye(v).format()} removeAt@${Ye(A).format()}`].join(` 18`))}})}}recordRequestInfo(t){var a,r,s;if(this.isBaseUrlFull||this.isUrlFull||(r=(a=this.customConfig)==null?void 0:a.requestControl)!=null&&r.skipDomainResort)return;const{resortList:n}=Ht();let o;this.mode==="oss"?o=this.prevInfo.ossHost:this.originBaseURL&&((s=this.prevInfo.apiDomain)!=null&&s.endsWith(this.originBaseURL))?o=this.prevInfo.apiDomain.slice(0,-this.originBaseURL.length):o=this.prevInfo.apiDomain,this.prevInfo.mode=this.mode,o&&n(this.mode==="oss"?"ossDomain":"apiDomain",o,t)}async add(t){this.queue.push(t),this.cacheBeforeNetworkApply(t)}updateId(t){this.id=t}cancel(t){this.cancelTokenSource.cancel(t)}async resume(t){this.isWaitingFor===t&&(this.ready||(console.log(`[NETWORK PAUSED] Resuming for ${t}`,this==null?void 0:this.config.url),this.request()))}onComplete(t,n){var a,r;(a=this.onFinish)==null||a.call(this,this.id);const o={...n,__requestCount:this.requestCount};this.queue.forEach(s=>{s.done=!0;const{queueItem:[i,c]}=s;t==="resolve"?i(o):c(o)}),delete this.cacheBeforeNetworkResult,(r=window.__LOBBY_NETWORK__)==null||r.call(window,{type:t,customConfig:this.customConfig,req:{...this.config,params:this.originParams,data:this.originData},res:n})}record(t){const{config:n,data:o}=t;if(o.time&&["post","POST"].includes(n.method||"")){const{addTimeDiff:a}=Tt();a(o.time,t)}}getMaxRetryCount(){var t,n,o,a;return typeof((t=this.customConfig)==null?void 0:t.maxRetryCount)=="function"?(n=this.customConfig)==null?void 0:n.maxRetryCount(this.mode):(a=(o=this.customConfig)==null?void 0:o.maxRetryCount)!=null?a:Li.maxRetryCount}async onFail(t){var d,m,g;const n=qf(t,this.customConfig);this.lastErrorType=n;const o=gx(n,t,this.customConfig),a=n&&n!=="dataError",r=a||n&&n==="dataError"&&MA(t),s=(im(o==null?void 0:o.retry)?r||this.forceRetry:o.retry)&&this.requestCount<this.getMaxRetryCount(),i=await Rh.triggerWithStats(t,this.config),c=this.isTokenStale(t);if((s||i.retry)&&!c){this.forceRetry=!1,this.request();return}a&&Sv(!0),(im(o==null?void 0:o.report)?a:o.report)&&this.mode==="api"&&!c&&this.onApiRequestFail(t);const l=im(o==null?void 0:o.useCache)?(g=(m=(d=this.customConfig)==null?void 0:d.cache)==null?void 0:m.useCacheOnError)==null?void 0:g.call(m,n):o.useCache;let u=!1;if(l){const f=await this.getCache("all");f?(u=!0,this.onComplete("resolve",f)):this.onComplete("reject",t)}else this.onComplete("reject",t);(o==null?void 0:o.handleError)!==!1&&this.handleError(t,n,u)}createErrorResChecker(t,n){var u,d,m,g;const o=((d=(u=this.customConfig)==null?void 0:u.error)==null?void 0:d.action)||"normal",a=((g=(m=this.customConfig)==null?void 0:m.error)==null?void 0:g.actionExcludes)||[],r=(f,_)=>{const h={normal:{handle:!0,msg:!0},noMessage:{handle:!0,msg:!1},silent:{handle:!1,msg:!1}}[_],p=typeof f=="object"&&!Array.isArray(f)?f:{code:f,handle:!!f,msg:!!f},y=(b,v)=>b?!v:v;return{code:p.code,handle:y(p.handle,h.handle),msg:y(p.msg,h.msg)}
18},s=a.find(f=>f===t||(f==null?void 0:f.code)===t),i=r(s,o),c=f=>(Array.isArray(f)?f:[f]).find(_=>_===t)!==void 0,l=(f,_,h,p)=>c(h)?(i[_]&&(n&&$s(n,`data.__PUBLIC_ERROR__.${f}`,!0),p()),!0):!1;return{isNeedHandle:i.handle,isNeedShowMsg:i.msg,checkCanHandleByCode:f=>c(f)&&i.handle,checkCanShowMsgByCode:f=>c(f)&&i.msg,handleWhenCode:l.bind(null,"handled","handle"),showMsgWhenCode:l.bind(null,"showedMsg","msg")}}async getErrorMessageString(t){var u,d,m,g,f,_,h,p,y,b;const n=Tt(),o=J(),a=ue(),r=new Set(this.usedHostList).size,s=(u=a.siteURLInfos)==null?void 0:u.issuedTime.slice(5,16).replace(/\D/g,""),i=await xg(window.location.origin,"web",!0,3e3,!1).catch(()=>{}),c=_d(((d=this.config)==null?void 0:d.url)||"")?this.config.url:`${(g=(m=this.config)==null?void 0:m.baseURL)!=null?g:""}${(_=(f=this.config)==null?void 0:f.url)!=null?_:""}`,l=Yf?`${Math.round((Date.now()-Yf)/1e3)}s`:"-";return`${t}-RequestID:${this.xRequestId}-Url:${c}@${this.requestCount}:${r}%${s}#${(p=(h=n.ipCheck)==null?void 0:h.ip)!=null?p:""}&${(b=(y=o.userInfos)==null?void 0:y.username)!=null?b:""}$${i!=null?i:9999}ms^${l}`}async handleError(t,n,o){var m,g,f,_,h,p,y,b,v,A,L,T,S;if(this.isTokenStale(t)){nt.info("[STALE TOKEN] skip public error handling",this.originUrl);return}const a=(m=t.data)==null?void 0:m.code,r=(g=t.data)==null?void 0:g.err_code,s=(f=t.data)==null?void 0:f.extra,i={...fx(),...(p=(h=(_=this.customConfig)==null?void 0:_.error)==null?void 0:h.message)!=null?p:{}};if(n&&n!=="dataError"){const I=this.createErrorResChecker(n);let R="Unknown Error-RequestID";if(n==="networkError"?(R=i.SYSTEM_ERROR,I.isNeedHandle&&this.report(t,Re.sensorEvents.ResponseSystemError,{by:"xhr"})):n==="timeoutError"&&(R=i.NETWORK_TIMEOUT,I.isNeedHandle&&this.report(t,Re.sensorEvents.ResponseTimeout,{by:"timeout"})),o)return;const D=await this.getErrorMessageString(R);if(n==="networkError"&&!navigator.onLine)return;I.showMsgWhenCode(n,()=>yd.IMMEDIATE(D));return}const c=this.createErrorResChecker(a,t),l=(y=t.data)==null?void 0:y.msg;!l&&c.handleWhenCode(a,()=>{this.report(t,Re.sensorEvents.ResponseSystemError,{by:"format"})});const u=l||await this.getErrorMessageString(i.RSP_DATA_NOT_JSON);if(c.checkCanHandleByCode($e.TOKEN_EXPIRED)){nt.error("ã-1ã",(b=t.config)==null?void 0:b.url,t),ve("TOKEN_EXPIRED").emit({message:u});return}if(c.checkCanHandleByCode($e.OTHER_CLIENT_GAME_LOGIN)){const{token:I,deviceModel:R}=((v=t==null?void 0:t.data)==null?void 0:v.data)||{};ve("OTHER_CLIENT_GAME_LOGIN").emit({token:I,deviceModel:R});return}if(c.checkCanHandleByCode($e.VERSION_ERROR)){ve("VERSION_CHECK").emit({version:0,byServer:!0,force:!0,closable:!1});return}if(c.checkCanHandleByCode($e.USER_RESTRICT_ERROR)){ve("USER_RESTRICT_ERROR").emit({res:t});return}if(c.checkCanHandleByCode([$e.SITE_MAINTAIN_ERROR,$e.SITE_FREEZE_ERROR,$e.SITE_FREEZE_AND_MAINTAIN_ERROR])){this.emmitMaintainEvent({res:t,isSiteFreeze:$e.SITE_FREEZE_ERROR===a,isSiteFreezeAndMaintain:$e.SITE_FREEZE_AND_MAINTAIN_ERROR===a,ipCheck:!1,onError:()=>{yd.IMMEDIATE(u)}});return}if(c.checkCanHandleByCode($e.CONFIG_CHANGE_ERR)&&ve("CONFIG_CHANGE_ERR").emit({}),c.checkCanHandleByCode($e.CONFIG_CHANGE_ERR_1)){const I=s==null?void 0:s.verifyMethods;if(I!=null&&typeof I=="object"&&Object.keys(I).length>0&&((L=(A=this.customConfig)==null?void 0:A.error)!=null&&L.selfHandleSecondVerify))return;ve("CONFIG_CHANGE_ERR").emit({})}if(o||await Rh.hasAbort(t))return;const d=[$e.USER_BLACKLIST_LIMITED].includes(r)&&((S=(T=this.customConfig)==null?void 0:T.error)==null?void 0:S.blacklistThrottle)===!0;c.showMsgWhenCode(a,()=>d?yd.THROTTLED_1_MIN(u):yd.IMMEDIATE(u,(s==null?void 0:s.prompt)==1))}report(t,n,o={}){var g,f,_,h,p,y,b,v;if(!((f=(g=this.customConfig)==null?void 0:g.error)!=null&&f.report))return;const a=this.startTime,r=navigator.connection||{},s=JSON.stringify({downlink:r.downlink,effectiveType:r.effectiveType,rtt:r.rtt,saveData:r.saveData});let i=0;try{i=new Date((_=document.querySelector("html"))==null?void 0:_.getAttribute("data-version")).getTime()}catch(A){}const{siteURLInfos:c}=ue(),{ipCheck:l}=Tt(),u=t.headers||((h=t.response)==null?void 0:h.headers)||{},d=t.data||((p=t.response)==null?void 0:p.data),m={...o,ip:l.ip,start:a,connectionInfo:s,requestId:this.xRequestId,headers:u,url:`${_d(this.config.url||"")?"":this.originBaseURL}${this.config.url}`,axc:t.code,duration:Date.now()-a,om:vn.OSS_MODE,conn:"",status:t.status,event:n,retry:this.requestCount,matry:this.getMaxRetryCount(),ver:i,cotype:u["content-type"]||"empty",message:t.message,api1:((c==null?void 0:c.api_domain)||[])[0],text:(y=u["content-type"])!=null&&y.includes("text/plain")||(b=u["content-type"])!=null&&b.includes("json")?d:(v=d==null?void 0:d.substring)==null?void 0:v.call(d,0,500)};Re.doReport({rule:Re.rules.SENSOR_BURIED,eventName:n,payload:m})}}class LA{constructor(){x(this,"Request",KH);x(this,"name","lobby");
18x(this,"continuousApiErrorCount",0);x(this,"maxGoGateWayBack2SourceErrorCount",1);x(this,"mergeRequestMap",{});x(this,"hasRequestedMap",{});this.init()}init(){this.listenLoginStatus(),this.listenCurrencyStatus()}setupCustomConfig(t){return Pe({},ql,t)}emmitMaintainEvent(t){var n,o,a;t.res&&((a=(o=(n=t==null?void 0:t.res)==null?void 0:n.config)==null?void 0:o.url)!=null&&a.includes("/ipCheck"))||ve("SITE_MAINTAIN").emit({...t,requestErrorCountConsequent:this.continuousApiErrorCount})}onApiRequestFail(t){Rv(t)&&(ve("REFRESH_URL").emit({probeSource:So.RefreshUrlError}),this.continuousApiErrorCount++,this.continuousApiErrorCount>=this.maxGoGateWayBack2SourceErrorCount&&this.emmitMaintainEvent({res:t}))}onApiRequestSuccess(t){Rv(t)&&(this.continuousApiErrorCount=0,this.updateTokenByApiRes(t))}updateTokenByApiRes(t){const{token:n,newjwt:o}=t.headers||{},a=Q_();n!==a&&(n||o)&&ve("UPDATE_TOKEN_BY_RES").emit({token:n,newjwt:o})}updateMergeRequestMap(){Object.entries(this.mergeRequestMap).forEach(([t,{updateId:n,request:o}])=>{const a=n();a!==t&&(o==null||o.updateId(a),this.mergeRequestMap[a]={request:o,updateId:n},delete this.mergeRequestMap[t])})}cancel(t){Object.values(this.mergeRequestMap).forEach(({request:n})=>{n==null||n.cancel(t)})}resume(t){Object.values(this.mergeRequestMap).forEach(({request:n})=>{n==null||n.resume(t)})}listenLoginStatus(){ve("LOGIN_SUCCESS",()=>{this.updateMergeRequestMap(),this.resume("ensureTokenAndUid")})}listenCurrencyStatus(){ve("INIT_CURRENCY_SUCCESS",()=>{this.resume("ensureCurrency")})}async request(t,n){return new Promise((o,a)=>{const r=()=>vd(t,n,this.name),s=r();n=this.setupCustomConfig(n);const i=!this.hasRequestedMap[s];if(n!=null&&n.merge)if(!this.mergeRequestMap[s])this.mergeRequestMap[s]={request:new this.Request({id:s,resolve:o,reject:a,config:t,isFirstTime:i,customConfig:n,onFinish:c=>this.onRequestFinish(c),onApiRequestSuccess:c=>this.onApiRequestSuccess(c),onApiRequestFail:c=>
18this.onApiRequestFail(c),emmitMaintainEvent:c=>this.emmitMaintainEvent(c)}),updateId:()=>r()};else{const{request:c}=this.mergeRequestMap[s];c&&c.add({customConfig:n,queueItem:[o,a],done:!1})}else try{new this.Request({id:s,resolve:o,reject:a,config:t,isFirstTime:i,customConfig:n,onApiRequestSuccess:c=>this.onApiRequestSuccess(c),onApiRequestFail:c=>this.onApiRequestFail(c),emmitMaintainEvent:c=>this.emmitMaintainEvent(c)})}catch(c){}this.hasRequestedMap[s]=!0})}async getCache(t,n={},o=!1){const a=vd(t,n,this.name);return qe.httpResDataRecord.get(a,o)}async upload(t,n){var o;return t.method="post",t.headers={...(o=t.headers)!=null?o:{},"Content-type":"multipart/form-data"},this.request(t,n)}async setCacheExpired(t){const n=Array.isArray(t)?t:[t];return Promise.all(n.map(o=>{if(typeof o=="string")return qe.httpResDataRecord.setDataExpired({originUrl:o});{const a=vd(o.config,o.customConfig,this.name);return qe.httpResDataRecord.setDataExpired({key:a})}}))}async removeCacheData(t){const n=Array.isArray(t)?t:[t];return Promise.all(n.map(o=>{if(typeof o=="string")return qe.httpResDataRecord.removeCacheData({originUrl:o});{const a=vd(o.config,o.customConfig,this.name);return qe.httpResDataRecord.removeCacheData({key:a})}}))}onRequestFinish(t){this.mergeRequestMap[t]&&delete this.mergeRequestMap[t]}}const z=new LA,QH=Object.freeze(Object.defineProperty({__proto__:null,Network:LA,default:z},Symbol.toStringTag,{value:"Module"})),mie=()=>z.request({url:"/api/club/manager/isApplyOpen",method:"get"},{oss:{enable:!0,isDefaultFile:!0},token:{type:"staticOnly"},crypto:{enable:!0},omitKey:["currency","siteCode","language","platformType"]}),XH=e=>z.upload({url:"/api/club/manager/uploadFile",data:e},{crypto:{enable:!0},autoSetupFormData:!0});let TA=!0;const gie=()=>TA,Tv=e=>{TA=e};let RA=[];const fie=()=>RA,ZH=e=>{RA=e},JH=()=>z.request({url:"/api/lobby/webapi/h5/config/getInfo",method:"get"},{waiting:{ensureCurrency:!1},error:{action:"silent"},token:{type:"staticOnly"},oss:{enable:!0},crypto:{enable:!1},cache:{delayRemove:1*60*60*24*365*10,useCache:!0,useCacheOnError(){return!0}},omitKey:["currency","platformType","language"]}),ex=e=>z.request({url:"/api/lobby/site/getSiteInfo",method:"get"},Pe({waiting:{ensureCurrency:!1},token:{type:"staticOnly"},oss:{enable:!0},cache:{useCache:!0,useCacheOnError(){return!0},expireOnloaded:!1},crypto:{enable:!1},omitKey:["currency","platformType"]},e)),OA=async()=>{var o;const{domainListMap:e}=Ht(),t=await z.request({url:"/cocos/config_data.json",method:"GET",baseURL:"/",params:{timestamp:Date.now()}},{waiting:{ensureCurrency:!1},token:{type:!1},oss:{enable:!0,force:!0},error:{checkResCode:!1,action:"silent",dataChecker({response:a}){var i,c,l;if(typeof(a==null?void 0:a.data)=="string"&&((i=a==null?void 0:a.data)!=null&&i.toLowerCase().includes("<!doctype html>")))return!1;const r=(c=window.LOBBY_SITE_CONFIG)==null?void 0:c.siteCode,s=(l=a==null?void 0:a.data)==null?void 0:l.siteCode;return!(r&&s&&r!==s)},failedActions:[{type:"errorType",code:"dataError",actions:{retry:!0}}]},crypto:{enable:!1},maxRetryCount:Math.max(((o=e.ossDomain)==null?void 0:o.length)||0,10)}),n=t.data;if(t.__originIsEncrypted){const a=Array.isArray(n==null?void 0:n.lobby_domain)&&n.lobby_domain.length>0;Tv(a)}else Tv(!1);return n},tx=()=>z.request({url:"/api/lobby/currencyInfo/getAllCurrency",method:"get"},{waiting:{ensureCurrency:!1},token:{type:"staticOnly"},cache:{useCache:!0,expireOnloaded:!1,useCacheOnError(){return!0}},oss:{enable:!0},omitKey:["currency","platformType","language"],crypto:{enable:!1}}).then(e=>{var t,n;return(n=(t=e==null?void 0:e.data)==null?void 0:t.data)!=null?n:[]}),PA=e=>z.request({url:"/api/message/smsCountry",method:"get"},Pe({cache:{useCache:!0},crypto:{enable:!1},omitKey:["platformType"],oss:{enable:!0},token:{type:"staticOnly"}},e)),nx=async()=>{try{const e=await z.request({url:"/api/message/all/country",method:"get"},{omitKey:["currency","platformType"],oss:{enable:!0},token:{type:"staticOnly"}});if(Array.isArray(e.data.data)&&e.data.data.length>0)return{defaultCountry:e.data.data.find(o=>o.phoneNumberSegment==="+855")||e.data.data[0],countryInfos:e.data.data,ipCheck:0};throw new Error("/home/all/Country: No valid area code data")}catch(e){throw new Error("/home/all/Country: Failed to retrieve area code data")}},ox=e=>{const t=O(),n=O(""),o=C(()=>{var i,c;const s=(i=e.siteURLInfos)==null?void 0:i.download_domain;return n.value||((c=s==null?void 0:s[0])!=null?c:"")});return{clubDomain:t,fatestDownloadUrl:n,downloadPageUrl:o,pingDownloadHost:async()=>{var l;const s=(l=e.siteURLInfos)==null?void 0:l.download_domain;if(!(s!=null&&s.length)||n.value)return;const[i,...c]=s;jm(i,"download").then(u=>{n.value=u.url}).catch(()=>{Promise.any(c.map(u=>jm(u,"download"))).then(u=>{n.value=u.url})})},getFreshWebDomain:async()=>{var s,i,c,l;try{const u=await OA();return e.updateSiteURLInfos(u),(i=(s=e.siteURLInfos)==null?void 0:s.lobby_domain)!=null?i:[]}catch(u){return(l=(c=e.siteURLInfos)==null?void 0:c.lobby_domain)!=null?l:[]}}}},ax=e=>{const{initialStore:t,domainListMap:n,ossHost:o}=e,a=()=>{var u,d;const r=Rc();if(!r)return;const s=(u=t.siteURLInfos)==null?void 0:u.issuedTime,i=(d=mv(r,"apiDomain",s))!=null?d:gv(n.apiDomain,r.apiDomain);i&&(n.apiDomain=i);const c=mv(r,"ossDomain",s),l=c?GI(c,o.value,cs()):gv(n.ossDomain,r.ossDomain);l&&(n.ossDomain=l)};fe(()=>t.siteURLInfos,r=>{if(!r)return;const s=r.oss_domain;n.lobbyDomain=[...r.lobby_domain],n.agentDomain=[...r.agent_domain||[]],n.ossDomain=[...s,o.value].map(c=>Kc(c)).filter((c,l,u)=>u.indexOf(c)===l);const i=r.commonOssDomain;r.commonOssBucket&&i.push(r.commonOssBucket),n.ossCommonDomain=i.map(c=>Kc(c)),n.apiDomain=r.api_domain.map(c=>ur(c)).filter((c,l,u)=>l===0?c:u.indexOf(c)===l),a()},{immediate:!0})},rx=(e,t)=>{var s,i;const{attempt:n,prevMode:o,prevApiDomain:a}=t,r=(s=e[0])!=null?s:"";if(n<1||o==="oss"||!e.length)return r;if(e[0]===a){const c=e.length>1?1:0;return e[c]}return(i=e[0])!=null?i:""},sx=(e,t)=>{const{attempt:n,maxRetryCount:o,pure:a,ossHost:r,originalOssHost:s,merged:i}=t,c=n===0,l=n===(a?o-1:o/2-1);return i?a?c?r:l?s:e[1]||r:c?r:e[1]||r:a&&l?s:e[0]},Ht=ke("domain",()=>{const e=ue(),t=C(()=>{var p;return(p=e.siteURLInfos)==null?void 0:p.commonOssBucket}),{originalOssHost:n,ossHost:o}=EN(e),a=vt({apiDomain:[],ossCommonDomain:[],ossDomain:[o.value],lobbyDomain:[],agentDomain:[]}),r=UN(a,o),s=Ak({domainListMap:a,ossHost:o,ossDomainWithoutOrigial:r}),{clubDomain:i,downloadPageUrl:c,pingDownloadHost:l,getFreshWebDomain:u}
18=ox(e),{pingApi:d,pingOssHost:m,pingAllDomain:g}=Ik({domainListMap:a,ossHost:o,ossDomainWithoutOrigial:r});ax({initialStore:e,domainListMap:a,ossHost:o});const f=p=>rx(a.apiDomain,p),_=p=>sx(a.ossDomain,{...p,ossHost:o.value,originalOssHost:n.value,merged:cs()}),h=C(()=>{var b,v;const p=(v=(b=e.homeLayoutInfos)==null?void 0:b.imgPath)!=null?v:"";return o.value.replace(/\/+$/,"")+"/"+p.replace(/^\/+/,"")});return{resortList:s,ossCommonHost:t,ossHost:o,originalOssHost:n,clubDomain:i,downloadPageUrl:c,getFreshWebDomain:u,domainListMap:a,hostCombineDomain:h,isNeedOssHost2LocationHost:cs,ossHost2LocationHost:qm,ossHost2FirstCDNHost:MN,pingAllDomain:g,pingApi:d,pingOssHost:m,pingDownloadHost:l,pickApiHost:f,pickOssHost:_}}),ix=e=>{var o,a;const t=(o=e==null?void 0:e.cache)==null?void 0:o.dependencies,n=r=>r==="currency"?Jm(e):r==="language"?Dh():r==="platformType"?fb(e):r+"?";if(t)return t.map(r=>n(r));{const r=[],s=(a=e==null?void 0:e.omitKey)!=null?a:[];return Mg.defaultDependencies.forEach(i=>{var l;s.includes(i)||r.push((l=n(i))!=null?l:"-")}),r}},vd=(e,t,n="lobby")=>{const o=l1({url:e.url,data:e.data,params:e.params,token:Si(t)});return[n,Sn.md5(o),...ix(t)].join("-")};function cx(e){const{ossHost:t,ossCommonHost:n,isNeedOssHost2LocationHost:o,ossHost2LocationHost:a}=Ht();if(e.includes("{$WG_BUCKET")){const r={"{$WG_BUCKET_SITE$}":t,"{$WG_BUCKET_PUBLIC$}":n};e=e.replace(/(\{\$(WG_BUCKET_SITE|WG_BUCKET_PUBLIC)\$\})(\/)?/g,(s,i)=>Kc(r[i])||s)}return o()&&(e=a(e)),e}function qs(e){const{ossHost:t,ossCommonHost:n}=Ht(),o={ossHost:"{$WG_BUCKET_SITE$}",ossCommonHost:"{$WG_BUCKET_PUBLIC$}"};return t&&(e=e.replace(ur(t),o.ossHost)),n&&(e=e.replace(ur(n),o.ossCommonHost)),e}const DA=e=>{if(typeof e=="string")try{e=cx(e),e=xN(e)}catch(t){}return e},Jm=(e={})=>ze().currency,fb=e=>e!=null&&e.useAppEnv?6:5,Dh=()=>{var e;return Ge().language||((e=ue().siteConfig)==null?void 0:e.languageCode)||""},lx=()=>Ht().pickApiHost({attempt:0}),ux=e=>Ht().pickApiHost({attempt:e.attempt,prevMode:e.prevMode,prevApiDomain:e.prevApiDomain}),dx=e=>Object.keys(e).sort((t,n)=>t.localeCompare(n)).reduce((t,n)=>{const o=e[n];return typeof o!="undefined"&&(t+=`/${n}/${encodeURIComponent(typeof o=="string"?o:JSON.stringify(o))}`),t},""),MA=e=>{var n,o;return!!(/\.(json|svg)(\?.*)?$/i.test(((n=e==null?void 0:e.config)==null?void 0:n.url)||"")&&typeof(e==null?void 0:e.data)=="string"&&((o=e==null?void 0:e.data)==null?void 0:o.toLowerCase().includes("<!doctype html>")))},mx=(e,t)=>{var a,r,s;const n=e instanceof vw,o=(a=t==null?void 0:t.error)==null?void 0:a.dataChecker;return o?!o({response:n?null:e,axiosError:n?e:null,customConfig:t}):n?!1:MA(e)?!0:((r=t==null?void 0:t.error)==null?void 0:r.checkResCode)&&((s=e==null?void 0:e.data)==null?void 0:s.code)!==$e.SUCCESS},gx=(e,t,n)=>{var c,l,u,d;const o=(c=n==null?void 0:n.error)==null?void 0:c.failedActions;if(!o)return;const a=(l=t==null?void 0:t.data)==null?void 0:l.code,r=(d=(u=t.response)==null?void 0:u.status)!=null?d:t.status,s=(m,g,f)=>{m=Array.isArray(m)?m:[m];let _=m.includes(g);return _&&f&&(_=!i(f,!0)),_},i=(m,g=!1)=>{for(const f of m){const{type:_,code:h,excludes:p,actions:y}=f;if(s(h,{errorType:e,resCode:a,statusCode:r}[_],p))return g?f:y}};return i(o)},qf=(e,t,n=mx)=>{var a;if(e instanceof vw)return e&&e.code==="ECONNABORTED"&&((a=e.message)==null?void 0:a.includes("timeout"))?"timeoutError":"networkError";if(n(e,t))return"dataError"},fx=()=>{const{t:e}=we();return{SYSTEM_ERROR:e("lobby.common.errorMessages.NETWORK_ERROR"),RSP_DATA_NOT_JSON:e("lobby.common.errorMessages.RSP_DATA_NOT_JSON"),NETWORK_TIMEOUT:e("lobby.error.networkTimeout")}},Rv=e=>{const t=Xc.getUri((e==null?void 0:e.config)||{}),{domainListMap:n}=Ht();return n.apiDomain.some(o=>t.startsWith(o))},zf=e=>{var n,o,a;const{language:t}=Ge();return{currency:(n=Jm(e))!=null?n:"",language:t,platformType:(o=fb(e))!=null?o:0,osType:(a=fl())!=null?a:0}},jf=(e,t)=>Object.keys(e).filter(n=>t[n]).sort((n,o)=>n.localeCompare(o)).map(n=>`${n}:${e[n]}`).join("|");class px{constructor(t){x(this,"map",null);x(this,"loadPromise",null);x(this,"loaded",!1);x(this,"loadedDimsKey","");x(this,"generation",0);x(this,"prefetchStartedAt",0);x(this,"sentParams",null);x(this,"paramBuilders",{});x(this,"subGates",{});this.source=t}get id(){return this.source.id}setParamBuilders(t){this.paramBuilders={...this.paramBuilders,...t}}setSubGates(t){this.subGates={...this.subGates,...t}}hasParamBuilderFor(t){return!!this.paramBuilders[t]}prefetch(){var a;if(this.loadPromise)return;const t=this.generation;this.prefetchStartedAt=Date.now();let n;try{n=jf(zf(),this.source.dims)}catch(r){Go(this.id,"读å维度快ç
§å¤±è´¥ï¼åéä¸ºéæ¡è¯·æ±",r),this.loadPromise=Promise.resolve(),this.loaded=!0;return}let o;if((a=this.source.subRequests)!=null&&a.length){const r=eN(this.source,this.paramBuilders,this.subGates);o=r.body,this.sentParams=r.sentParams}Ys(this.id,`颿åèµ·ï¼BFF ${this.source.originUrl}ï¼`),XM(this.id,o),this.loadPromise=V(async()=>{const{default:r}=await Promise.resolve().then(()=>QH);return{default:r}},void 0).then(({default:r})=>r.request(tN(this.source,o),nN(this.source))).then(r=>{if(t!==this.generation){Go(this.id,"ç»´åº¦å·²åæ¢ï¼ä¸¢å¼è¿æååº");return}ZM(this.id,r==null?void 0:r.data);const s=this.source.extract?this.source.extract(r==null?void 0:r.data):r==null?void 0:r.data;s&&typeof s=="object"?(this.map=s,this.loadedDimsKey=n):Go(this.id,"ååºä¸æ¯åæ³å¯¹è±¡ï¼åéä¸ºéæ¡è¯·æ±",r==null?void 0:r.data)}).catch(r=>{Go(this.id,"èå请æ±å¤±è´¥ï¼404 / ç½ç»é / è§£å¯å¤±è´¥ï¼ï¼åéä¸ºéæ¡è¯·æ±",r)}
18).finally(()=>{t===this.generation&&(this.loaded=!0)})}whenReady(t=(n=>(n=this.source.waitTimeoutMs)!=null?n:SI)()){if(this.loaded||!this.loadPromise)return Promise.resolve();const o=this.prefetchStartedAt+t-Date.now();if(o<=0)return Promise.resolve();const a=this.loadPromise;return new Promise(r=>{const s=()=>{clearTimeout(i),r()},i=setTimeout(s,o);a.then(s,s)})}isPrefetchStarted(){return this.loadPromise!==null}isLoaded(){return this.loaded}hasMap(){return this.map!==null}elapsedSincePrefetch(){return this.prefetchStartedAt?Date.now()-this.prefetchStartedAt:0}get(t,n,o){if(!this.map||!this.matchesSentParams(t,n))return;try{if(jf(zf(o),this.source.dims)!==this.loadedDimsKey)return}catch(r){Go(this.id,"读å维度åå½ä¸å®å«å¤±è´¥ï¼è§ä¸ºæªå½ä¸",r);return}const a=this.map[t];if(a!==void 0&&this.source.validateHit&&!this.source.validateHit(t,a)){Go(this.id,"å½ä¸å¼æªéè¿ä¸å¡æ ¡éªï¼åéä¸ºéæ¡è¯·æ±",t);return}return a}matchesSentParams(t,n){var o,a;return(o=this.sentParams)!=null&&o.has(t)?rs((a=this.sentParams.get(t))!=null?a:{},n!=null?n:{}):!0}isReportDelegated(t){var o;const n=(o=this.source.delegatedReports)==null?void 0:o[t];return!!n&&!!this.map&&n in this.map}isDimsStale(){if(!this.loaded)return!1;try{return jf(zf(),this.source.dims)!==this.loadedDimsKey}catch(t){return!1}}invalidate(){this.generation++,this.map=null,this.loaded=!1,this.loadPromise=null,this.loadedDimsKey="",this.sentParams=null,this.prefetch()}}const hx=(e,t)=>{if(!t)return!0;const n=qM[e];return Object.keys(t).every(o=>!!(n!=null&&n.includes(o)))},_x=(e,t)=>({data:Array.isArray(e)?[...e]:e&&typeof e=="object"?{...e}:e,status:200,statusText:"OK",headers:{},config:t});class bx{constructor(t){x(this,"stores",new Map);x(this,"keyToSourceId");x(this,"touchedScopes",new Set);this.sources=t,QM(t),this.keyToSourceId=KM(t);for(const n of t)this.stores.set(n.id,new px(n));this.subscribeCurrencyChange()}subscribeCurrencyChange(){ve("INIT_CURRENCY_SUCCESS",()=>{if(!Et.aggregateDisabled()){for(const t of this.stores.values())if(this.touchedScopes.has(t.source.scope)&&this.isSourceEnabled(t.source)){if(!t.isPrefetchStarted()){this.shouldPrefetch(t.source)&&t.prefetch();continue}t.isDimsStale()&&t.invalidate()}}})}isSourceEnabled(t){return Et.aggregateDisabled()||!t.originUrl?!1:this.parseEnabledSourceIds().includes(t.id)}parseEnabledSourceIds(){const t=Et.aggregateSources();return t?t.split($M).map(n=>n.trim()).filter(Boolean):[]}shouldPrefetch(t){return!!ze().currency}prefetchScope(t){var r;if(this.touchedScopes.add(t),Et.aggregateDisabled()){Ys(void 0,`kill switch å·²å¼å¯ï¼è·³è¿ scope=${t} çå
¨é¨é¢æ`);return}const n=[],o=[],a=[];for(const s of this.sources)if(s.scope===t){if(!this.isSourceEnabled(s)){o.push(s.id);continue}if(!this.shouldPrefetch(s)){a.push(s.id);continue}(r=this.stores.get(s.id))==null||r.prefetch(),n.push(s.id)}Ys(void 0,`颿 scope=${t} â åèµ· [${n.join(", ")}]ï¼æªæ¾è¡ [${o.join(", ")}]ï¼æ¡ä»¶æªæ»¡è¶³ [${a.join(", ")}]`)}storeOf(t){const n=this.keyToSourceId.get(t);if(!n)return;const o=this.stores.get(n);if(!(!o||!this.isSourceEnabled(o.source)))return o}shouldServe(t,n,o,a){var s;if((s=a==null?void 0:a.requestControl)!=null&&s.skipAggregate||(t!=null?t:"").toLowerCase()!=="get")return!1;const r=this.storeOf(n);return!r||this.sources.some(i=>i.originUrl===n)?!1:r.hasParamBuilderFor(n)?!0:hx(n,o)}registerSubParams(t,n){var o;(o=this.stores.get(t))==null||o.setParamBuilders(n)}registerSubGates(t,n){var o;(o=this.stores.get(t))==null||o.setSubGates(n)}isPrefetchStartedFor(t){var n,o;return(o=(n=this.storeOf(t))==null?void 0:n.isPrefetchStarted())!=null?o:!1}whenReadyFor(t,n){const o=this.storeOf(t);return o?n===void 0?o.whenReady():o.whenReady(n):Promise.resolve()}get(t,n,o){var a;return(a=this.storeOf(t))==null?void 0:a.get(t,n,o)}describeMiss(t){var r;const n=this.storeOf(t);if(!n)return"该 key ä¸å±äºä»»ä½å·²æ¾è¡çæº";const o=n.elapsedSincePrefetch(),a=(r=n.source.waitTimeoutMs)!=null?r:SI;return n.isLoaded()?n.hasMap()?`æº ${n.id} 产ç©é没æè¿ä¸ª keyï¼å端该å请æ±å¤±è´¥ææªé
置该 routeï¼`:`æº ${n.id} 产ç©ä¸å¯ç¨ï¼è¯·æ±å¤±è´¥ / ååºç»æä¸ç¬¦ï¼ï¼å·²å
¨éåé`:`çå¾
è¶
æ¶ï¼æº ${n.id} 颿已 ${o}ms 仿ªå°±ç»ªï¼ä¸é ${a}msï¼ï¼æ¬æ¬¡å
èµ°å请æ±`}isReportDelegated(t){for(const n of this.stores.values())if(this.isSourceEnabled(n.source)&&n.isReportDelegated(t))return!0;return!1}}const yx=e=>
18new bx(e),aa=yx(jM),vx=e=>JM(aa,e);var Mh=(e=>(e[e.Normal=1]="Normal",e[e.ClickDownLoad=2]="ClickDownLoad",e[e.App=3]="App",e))(Mh||{}),ea=(e=>(e[e.Normal=1]="Normal",e[e.Quickly=2]="Quickly",e[e.Vest=3]="Vest",e[e.P2a=4]="P2a",e[e.WebClip=5]="WebClip",e[e.Shortcut=6]="Shortcut",e))(ea||{}),eg=(e=>(e.HOME="2",e.TEST_REGISTER="3",e.REGISTER="4",e.EVENT="5",e))(eg||{}),NA=(e=>(e.DOWNLOAD="1",e.REGISTER="2",e.TEST_REGISTER="3",e.HOME="4",e))(NA||{}),hu=(e=>(e[e.ANDROID=1]="ANDROID",e[e.IOS=2]="IOS",e[e.PC=3]="PC",e))(hu||{}),Ci=(e=>(e[e.LobbyVisit=1]="LobbyVisit",e[e.LobbyDownload=2]="LobbyDownload",e[e.AppVisit=4]="AppVisit",e))(Ci||{});const Ov=e=>z.request({url:"/api/lobby/channel/go/getChannelInfoById",method:"GET",params:{...e,info:"channel"}},{waiting:{ensureCurrency:!1},cache:{useCache:"fresh"},oss:{enable:!0},token:{type:"staticOnly"},omitKey:["language","platformType","currency"],error:{action:"noMessage"}}).then(t=>t.data.data),Sx=e=>z.request({url:"/api/agent/promote/linkSetting",method:"POST",data:e},{waiting:{ensureCurrency:!1},oss:{enable:!1},token:{type:"staticOnly"},crypto:{enable:!1},error:{action:"noMessage"}}).then(t=>t.data.data),Cx=e=>z.request({url:"/api/agent/promote/binding/reportViewV2",method:"POST",data:e},{token:{type:"staticOnly"},crypto:{enable:!1},error:{action:"noMessage"}}).then(n=>n.data.data),wx=e=>{z.request({url:"/api/agent/promote/binding/reportClickV2",method:"POST",data:e},{crypto:{enable:!1}})},Ix=e=>z.request({url:"/api/statistics/domain/pointer",method:"POST",data:e},{token:{type:"staticOnly"},error:{action:"silent"},crypto:{enable:!1}});var Xl=(e=>(e[e.OFF=0]="OFF",e[e.ON=1]="ON",e))(Xl||{}),Uc=(e=>(e[e.PWA=0]="PWA",e[e.SpeedPackage=1]="SpeedPackage",e[e.NormalPackage=2]="NormalPackage",e))(Uc||{}),kA=(e=>(e[e.AllUser=0]="AllUser",e[e.FirstRechargedUser=1]="FirstRechargedUser",e))(kA||{}),Yg=(e=>(e[e.All=0]="All",e[e.FirstDeposit=1]="FirstDeposit",e[e.OfficialAccount=2]="OfficialAccount",e))(Yg||{}),Nh=(e=>(e[e.SYSTEM=0]="SYSTEM",e[e.CUSTOM=1]="CUSTOM",e))(Nh||{}),BA=(e=>(e[e.Off=0]="Off",e[e.On=1]="On",e))(BA||{}),HA=(e=>(e[e.OTHER=0]="OTHER",e[e.DOWN_PAGE=1]="DOWN_PAGE",e[e.APP=2]="APP",e[e.DOWN_PAGE_APP=3]="DOWN_PAGE_APP",e[e.PWA_WEB2APP=4]="PWA_WEB2APP",e))(HA||{}),_m=(e=>(e[e.OPTIONAL=0]="OPTIONAL",e[e.FORCE=1]="FORCE",e[e.ALWAYS=2]="ALWAYS",e))(_m||{}),tg=(e=>(e[e.Unspecified=0]="Unspecified",e[e.Mandatory=1]="Mandatory",e))(tg||{}),nr=(e=>(e[e.PCPwa=15]="PCPwa",e[e.AndroidPwa=13]="AndroidPwa",e[e.IOSPwa=19]="IOSPwa",e[e.AndroidVest=12]="AndroidVest",e[e.IOSVest=10]="IOSVest",e[e.AndroidSpeedApp=11]="AndroidSpeedApp",e[e.IOSSpeedApp=9]="IOSSpeedApp",e[e.AndroidNormalApp=2]="AndroidNormalApp",e[e.IOSNormalApp=1]="IOSNormalApp",e))(nr||{}),Zl=(e=>(e.NOT_INITIATE="NOT_INITIATE",e.PREPARING="PREPARING",e.INITIATED="INITIATED",e.DOWNLOADING="DOWNLOADING",e.DOWNLOADED="DOWNLOADED",e.NOT_SUPPORT="NOT_SUPPORT",e))(Zl||{}),fr=(e=>(e.Standalone="standalone",e.MinimalUi="minimal-ui",e.Browser="browser",e))(fr||{}),Se=(e=>(e[e.Speed=1]="Speed",e[e.Normal=2]="Normal",e[e.Quick=3]="Quick",e[e.PWA=4]="PWA",e[e.DesktopShortcut=5]="DesktopShortcut",e[e.Vest=6]="Vest",e[e.UnBanSpeed=11]="UnBanSpeed",e[e.UnBanNormal=12]="UnBanNormal",e))(Se||{}),Ax=(e=>(e[e.Speed=1]="Speed",e[e.Normal=2]="Normal",e[e.PWA=3]="PWA",e))(Ax||{}),Jl=(e=>(e.SUPER="super",e.TF="tf",e.ENTERPRISE="enterprise",e.IOS="tutorialIos",e))(Jl||{}),zr=(e=>
18(e[e.SUPER=1]="SUPER",e[e.TF=2]="TF",e[e.ENTERPRISE=3]="ENTERPRISE",e[e.IOS=0]="IOS",e))(zr||{}),kh=(e=>(e[e.STORE=0]="STORE",e[e.LANDINGPAGE=1]="LANDINGPAGE",e))(kh||{}),Bh=(e=>(e[e.OTHER=0]="OTHER",e[e.SYSTEM=1]="SYSTEM",e))(Bh||{}),xA=(e=>(e[e.DEFAULT=0]="DEFAULT",e[e.POPUP=1]="POPUP",e))(xA||{});const EA="/api/member/user/vip",pie=async(e=!1)=>{var n;const t=await z.request({url:EA,method:"POST"},{cache:{useCache:e?!1:"fresh"},token:{type:"loginOnly"},oss:{enable:!1}});return(n=t==null?void 0:t.data)==null?void 0:n.data},Lx="/api/member/user/vipDetails",hie=async()=>{var t;const e=await z.request({url:Lx,method:"POST"},{cache:{useCache:"fresh"},token:{type:"loginOnly"},oss:{enable:!1}});return(t=e==null?void 0:e.data)==null?void 0:t.data},Tx="/api/member/user/giftRecvV2",_ie=async e=>{var n;const t=await z.request({url:Tx,method:"POST",data:e},{error:{action:"silent"},cache:{useCache:!1},token:{type:"loginOnly"},oss:{enable:!1}});return(n=t==null?void 0:t.data)==null?void 0:n.data},Rx="/api/member/user/vipInfoV2",bie=async(e=!1)=>{var n;const t=await z.request({url:Rx,method:"POST"},{merge:!e,cache:{useCache:e?!1:"fresh",setCache:!0},token:{type:"loginOnly"},oss:{enable:!1}});return(n=t==null?void 0:t.data)==null?void 0:n.data},yie=async()=>{var t;const e=await z.request({url:"/api/member/vipInfoUnLogin",method:"POST"},{cache:{useCache:"fresh"},oss:{enable:!1}});return(t=e==null?void 0:e.data)==null?void 0:t.data},UA=async(e=!1)=>{var n;const t=await z.request({url:"/api/member/user/info",method:"post",data:{get_first_pay:e}},{cache:{useCache:"fresh"},error:{blacklistThrottle:!0}});return(n=t==null?void 0:t.data)==null?void 0:n.data},vie=async()=>{var t;const e=await z.request({url:"/api/member/user/refreshVipStatistic",method:"POST"});return(t=e==null?void 0:e.data)==null?void 0:t.data},Ox="/api/active/allVipLevel",Sie=async()=>{var t;const e=await z.request({url:Ox,method:"POST"},{token:{type:"loginOnly"},cache:{useCache:"fresh"},oss:{enable:!1}});return(t=e==null?void 0:e.data)==null?void 0:t.data};var jr=(e=>(e.dismissed="dismissed",e.accepted="accepted",e.notSupported="notSupported",e.installed="installed",e))(jr||{}),bm=(e=>(e.Android="1",e.Ios="2",e.Pc="3",e))(bm||{});const ku="_di",Px=10*60*1e3,GA=/^[A-Za-z0-9_-]{8,64}$/,Dx=(()=>{try{const e=Nt(Ot,ku,"");if(!e)return;const t=JSON.parse(window.atob(String(e)));return!GA.test(String(t==null?void 0:t.d))||!(t!=null&&t.t)||Date.now()-t.t>Px?void 0:t}catch(e){nt.error("@device","urlDeviceIdError",e);return}})();function pb(e){if(!e||!GA.test(e))return{};const t={d:e,t:Date.now()};return{[ku]:window.btoa(JSON.stringify(t))}}function Mx(){Nt(Ot,ku,"")&&ml({},[ku],!1)}function Nx(){const e=Dx;if(Mx(),!e)return;const{tokenInfos:t,userkey:n}=Ms();if(!(t!=null&&t.session_key)&&!n){nt.info("@device","urlDeviceId","reject: no credential");return}return nt.info("@device","urlDeviceId","accept",e.d),e.d}const Bu="_fp",kx=10*60*1e3,Bx=512;function Hx(e){for(const t of e){const n=t.charCodeAt(0);if(n<=32||n===127)return!0}return!1}function FA(e){return typeof e=="string"&&e.length>0&&e.length<=Bx&&!Hx(e)}const xx=(()=>{try{const e=Nt(Ot,Bu,"");if(!e)return;const t=JSON.parse(window.atob(String(e)));return!FA(t==null?void 0:t.f)||!(t!=null&&t.t)||Date.now()-t.t>kx?void 0:t}catch(e){nt.error("@device","urlFingerprintError",e);return}})();function hb(e){if(!FA(e))return{};const t={f:e,t:Date.now()};return{[Bu]:window.btoa(JSON.stringify(t))}}function Ex(){Nt(Ot,Bu,"")&&ml({},[Bu],!1)}function Ux(){const e=xx;if(Ex(),!e)return;const{tokenInfos:t,userkey:n}=Ms();if(!(t!=null&&t.session_key)&&!n){nt.info("@device","urlFingerprint","reject: no credential");return}return nt.info("@device","urlFingerprint","accept",e.f),e.f}const Gx=(e,t)=>{try{const n=new URL(e),o=new URL(t);return n.href.replace(n.origin,o.origin)}catch(n){return e}},Fx=()=>!!Zs(location.href)["fixed.isFromAndroidWgPackage"],WA=e=>{const{tokenInfos:t}=tn(),n=window.btoa(String(Date.now())),o={_ti:void 0,_et:void 0,[ku]:void 0,[Bu]:void 0};return t&&(o._ti=window.btoa(JSON.stringify(t)),o._et=n,Object.assign(o,pb(jn().uuid)),Object.assign(o,hb(J().getFingerId))),Ra(e,o)},Wx=(e,t)=>{try{const n=new URL(e),o=n.searchParams;for(const a of t)o.delete(a);return n.search=o.toString(),n.toString()}catch(n){return console.log(n),e}},VA=()=>{const e=Wx(location.href,["isWgPackage","WgPackage","SpeedPackaeInit"]);return WA(e)},Vx=async e=>z.request({url:"/api/netstat/player/adInfo",method:"post",data:e},{error:{action:"silent",checkResCode:!0},crypto:{enable:!1},token:{type:"staticOnly"}}),$x=e=>z.request({url:"/api/netstat/attribution/submit",method:"POST",data:e},{token:{type:"staticOnly"},error:{action:"silent"}}),Yx=e=>z.request({url:"/api/netstat/attribution/match",method:"POST",data:e},{token:{type:"staticOnly"},error:{action:"silent"}}),nl=B_({disabled:()=>{var e;return!((e=window.jsBridge)!=null&&e.postMessage)},sendMessage(e){var t,n;window.jsBridge&&((n=(t=window.jsBridge)==null?void 0:t.postMessage)==null||n.call(t,"AppEvents",JSON.stringify(e)))},registerMessage(e){if(window.jsBridge){const t=n=>{e(n)};return window.jsBridge.onWebviewEvents=t,()=>{delete window.jsBridge.onWebviewEvents}}}}),_b=ke("download-report",()=>{const e=O({}),t=o=>{e.value={...e.value,[o]:Date.now()}},n=O(0);return{prevReportTime:e,updatePrevReportTime:t,attributionMatchCount:n}},{persist:{paths:["prevReportTime","attributionMatchCount"],storage:localStorage}});function $A(){const{os:e,device:t}=ft(),{uuid:n}=jn();return{screenSpec:{physRes:{w:screen.width,h:screen.height}
18,availRes:{w:screen.availWidth,h:screen.availHeight},logRes:{w:window.innerWidth,h:window.innerHeight},aspRatio:Number((screen.width/screen.height).toFixed(2)),pixDens:window.devicePixelRatio,colDepth:screen.colorDepth},langTzInfo:{prefLang:navigator.language,tzOffset:new Date().getTimezoneOffset()*-1,tzName:Intl.DateTimeFormat().resolvedOptions().timeZone},sysVer:e.version,cpuCores:navigator.hardwareConcurrency,deviceModel:t.model,deviceID:n}}const qx=e=>{const t=$A();return $x({...t,clipData:e})},Cie=async()=>{var s,i,c,l,u,d;const e=$A(),t=_b(),{isP2a:n}=Qe(),o=[(s=re==null?void 0:re.package)==null?void 0:s.isLite,(i=re==null?void 0:re.package)==null?void 0:i.isWebClip,n];if(!(o.includes(!0)&&!t.attributionMatchCount))return;console.log("[netstat]: start match",o);let r="";if((c=re==null?void 0:re.package)!=null&&c.isLite)try{const m=await nl("GET_NETSTAT_CLIPBOARD_DATA").send({});r=(u=(l=m==null?void 0:m.payload)==null?void 0:l.clipData)!=null?u:"",console.log("[netstat]: originalClipData",r)}catch(m){console.log("[netstat]: originalClipData error",m)}try{const m=Et.useAttributionMatchData(),g={...e,originalClipData:r};console.log("[netstat]: matchPlayLoad & useAttributionMatchData",r,g,m);const f=await Yx(g),{clipData:_,referUrl:h}=f.data.data||{};console.log("[netstat]: attributionMatchData",_,h),_&&m&&((d=re==null?void 0:re.package)!=null&&d.isLite)&&nl("UPDATE_ATTRIBUTION_MATCH_DATA").send({clipData:_},{merge:!1,fireAndForget:!0}),t.attributionMatchCount+=1}catch(m){console.log("[netstat]: match fetch error",m)}},ng=e=>(!Ey(e)||e===null||R1(e,(t,n)=>{if(t===void 0){delete e[n];return}Ey(t)&&(ng(t),O1(t)&&delete e[n])}),e),Pv=e=>!e||!Number(e)?0:Number(e),bb=()=>
18{const{urlParams:e,encryptParams:t}=en(),{channelInfo:n}=Ut(),o=(n==null?void 0:n.currencyType)===tg.Mandatory&&n.currency,a=(n==null?void 0:n.languageType)===tg.Mandatory&&n.languageCode,{cid:r,id:s}=e,i=Zs(window.location.href),{fbclid:c,pixel_id:l,click_id:u,ttclid:d,utm_source:m,utm_medium:g,utm_id:f,utm_content:_,utm_term:h,utm_campaign:p,bbg:y,isBgeTest:b}=i,v=i["fixed.kwaiTestClickId"],A=i["fixed.testEventCode"],L=i["fixed.adjust_appid"],T=i["fixed.adjust_adid"],S=i["fixed.gaid"],I=i["fixed.appsflyer_appId"],R=i["fixed.appsflyer_afUserId"],{qd:D,dl:M}=t,B=Ze().siteCode;return{adjust:{appid:L,adid:T,webuuid:S},appsflyer:{appId:I,afUserId:R},facebook:{fbclid:c},wg:{name:"WG",cid:r,id:s,siteCode:B,qd:D,dl:M,languageCode:a?n==null?void 0:n.languageCode:void 0,currency:o?n==null?void 0:n.currency:void 0},kwai:{click_id:u,"fixed.kwaiTestClickId":v},tiktok:{ttclid:d,"fixed.testEventCode":A},utm:{utm_source:m,utm_medium:g,utm_id:f,utm_content:_,utm_term:h,utm_campaign:p},bigo:{bbg:y,pixel_id:l,isBgeTest:b},timestamp:Math.floor(Date.now()/1e3)}},YA=()=>
18{const{urlParams:e,encryptParams:t}=en(),{cid:n,id:o}=e,a=Zs(window.location.href),{fbclid:r,pixel_id:s,fb_dynamic_pixel:i,click_id:c,ttclid:l,utm_source:u,utm_medium:d,utm_id:m,utm_content:g,utm_term:f,utm_campaign:_,bbg:h,isBgeTest:p}=a,{qd:y,dl:b}=t,v=a["fixed.kwaiTestClickId"],A=a["fixed.testEventCode"];return!!(r||s||i||Number(n)||Number(o)||c||l||v||A||u||d||m||g||f||_||y||b||A||h||p)},zx=()=>{const e=bb(),{wg:t}=e,{cid:n,id:o}=t;return e.wg={...t,cid:Pv(String(n)),id:Pv(String(o))},e},jx=e=>{var t;try{const n=(t=e==null?void 0:e.copyToken)!=null?t:!0,{isAndroid:o}=ft().os,{tokenInfos:a}=tn(),r=YA(),s=ng(bb()),i=n&&a;i&&(s.wg={...s.wg,_ti:window.btoa(JSON.stringify(a)),_et:window.btoa(String(Date.now()))}),o&&(r||i)&&H_.copy(JSON.stringify(s))}catch(n){return console.error("handleClipboardWrite error:",n),null}},Kx=()=>{try{const e=ng(bb()),{isDesktop:t}=ft().device,n=YA();if(!t&&n){const o=ng(zx());return Promise.all([Vx(o),qx(JSON.stringify(e))])}return null}catch(e){console.error("handlePlayerAdInfoFetch error:",e)}},Qx=()=>BB?"facebook":HB?"instagram":oA?"telegram":xB?"whatsapp":FB?"line":WB?"uc":$B?"xiaomi":VB?"byte":UB?"iphone":EB?"mobile":GB?"safari":"",Xx=()=>{var r,s,i;const e=Qe(),t=(r=re==null?void 0:re.package)==null?void 0:r.isWebClip,n=e.isH5Shortcut&&!e.isP2a,o=e.isP2a&&!e.isH5Shortcut,a=fn.isActivated;return new Map([[n,"desktopShortcut"],[t,"quick"],[o,"pwa"],[(s=re==null?void 0:re.package)==null?void 0:s.isLite,"speed"],[(i=re==null?void 0:re.package)==null?void 0:i.isVest,"vest"],[a,"telegram"]]).get(!0)||Qx()||"web"},ts=ke("download-pwa",()=>{const e=O(),t=O(!1),n=O(),o=d=>{d===fr.Browser&&(e.value=void 0),n.value=d},a=O(!1),r=d=>{a.value=d},s=O(!1),i=d=>{s.value=d},c=O(!1),l=C(()=>{var m;const d=(m=e.value)==null?void 0:m.prompt;return s.value||a.value&&!d||t.value}),u=async()=>{const d=await WY();return t.value=d,console.log("[pwa] -> getInstalledRelatedApps:",d),d};return Gt(()=>{u()}),{isPWAInstalled:l,installPrompt:e,displayMode:n,setDisplayMode:o,isCanInstallPwa:a,installPwaIsSuccess:s,setIsCanInstallPwa:r,setInstallPwaIsSuccess:i,installPwaBySystem:c,getInstalledRelatedApps:u}},{persist:{paths:["isCanInstallPwa"],storage:localStorage}});class Zx{constructor(){x(this,"reportDownload",({type:t},n)=>{var s;const{channelInfo:o}=Ut(),a=ts(),r={os:ft().os.name,browser:ft().browser.name,device:Xx(),channelId:o==null?void 0:o.id,viewDownload:o==null?void 0:o.viewDownload,appType:t,canInstallPwa:!!((s=a.installPrompt)!=null&&s.prompt),url:n};return console.log("download report",r),Promise.all([Re.doReport({rule:Re.rules.SENSOR_BURIED,eventName:Re.sensorEvents.ReportDownload,payload:r}),...t===Se.PWA?[Re.doReport({rule:Re.rules.CUSTOM_BURIED,eventName:Re.buriedEvents.PwaInstalled})]:[]])})}}const Jx=new Zx,yb=()=>{const{urlParams:e}=en(),{id:t}=e;return t&&Number(t)?{id:Number(t)}:{}},vb=()=>{const{channelInfo:e}=Ut(),{urlParams:t}=en(),{cid:n}=t;return e!=null&&e.id||n?{cid:(e==null?void 0:e.id)||Number(n)}:{}},eE=()=>{const{isIos:e,isAndroid:t}=Qe();return t?hu.ANDROID:e?hu.IOS:hu.PC},tE=()=>{const{isVest:e,isLite:t,isApp:n}=re.package;return n&&t?ea.Quickly:ea.Vest},nE=()=>{const t=yb().id,n=vb();return!(t||n.cid)},oE=e=>{let t=ea.Normal;return(e===Se.Speed||e===Se.UnBanSpeed)&&(t=ea.Quickly),e===Se.Quick&&(t=ea.WebClip),e===Se.Vest&&(t=ea.Vest),e===Se.DesktopShortcut&&(t=ea.Shortcut),e===Se.PWA&&(t=ea.P2a),t},aE=window.location.host,Sb=()=>{const e=eE(),t=tE(),{isWebClip:n,isApp:o}=re.package,{isP2a:a,isFromShortcut:r}=Qe();return o?{kind:Ci.AppVisit,deviceKind:e,packKind:t}:a?{kind:Ci.AppVisit,deviceKind:e,packKind:ea.P2a,counts:1}:r?{kind:Ci.AppVisit,deviceKind:e,packKind:ea.Shortcut,counts:1}:n?{kind:Ci.AppVisit,deviceKind:hu.IOS,packKind:ea.WebClip}:{kind:Ci.LobbyVisit,deviceKind:e,domain:aE,visitsKind:fn.isActivated?2:1}},rE=()=>({...vb(),...yb(),...Sb(),clubId:void 0}),qA=e=>{var o;if(!nE())return!0;const t=e!=null?e:String((o=Sb().packKind)!=null?o:"0"),n=_b().prevReportTime[t];return!(n&&Ye().isSame(Ye(n),"hour"))},sE=window.location.host,zA=e=>{const t=vb(),n=yb();return Ix({...t,...n,...e,clubId:void 0})},wie=async()=>{var o;const{updatePrevReportTime:e}=_b(),t=Sb(),n=String((o=t.packKind)!=null?o:"0");
18if(qA(n)){if(await aa.whenReadyFor("/api/statistics/domain/pointer"),aa.isReportDelegated(Pu.DomainPointer)){e(n);return}zA({...t}).then(()=>{e(n)})}},iE=e=>zA({kind:Ci.LobbyDownload,packKind:oE(e),domain:sE,visitsKind:fn.isActivated?2:1}),Hu=(e,t)=>{const n=cl(e.type);return Promise.all([en().reportDownloadUrlClick({type:n}),Jx.reportDownload(e,t),iE(e.type),Kx()])},og=(e,t)=>{var n;return(n=e.find(o=>{var a;return(a=o.lang)==null?void 0:a.includes(t)}))==null?void 0:n.name},cE=(e,t="")=>{var a,r,s,i;if(e.length===0)return t;const{language:n}=Ge();return((i=(s=(a=og(e,n||"en"))!=null?a:og(e,"en"))!=null?s:(r=e.find(c=>c.name))==null?void 0:r.name)!=null?i:"")||t},lE=(e,t="")=>{if(e.length===0)return t;const{language:n}=Ge();return og(e,n||"en")||t},uE=(e,t="")=>{if(!e)return t;try{const n=JSON.parse(e);return Array.isArray(n)?lE(n,t):t||e}catch(n){return t||e}},dE=(e,t="")=>{if(!e)return t;try{const n=JSON.parse(e);return Array.isArray(n)?cE(n,t):t}catch(n){return t}},mE=e=>{if(!e)return"";try{const{language:t}=Ge(),n=JSON.parse(e);return Array.isArray(n)&&og(n,t)||""}catch(t){return""}},jA=`/sw-runtime-${1791251963889}.js`,KA="/sw.local.js",Kf=["recharge","loginRegister","forceChangePassword","downloadMainPopup","downloadMainDialog","forceSaveFindUs","messagePopup","noBackgroundPopup","findUs","newCutOnce","slashOnce","slashOnceHomeTip","slashOnceReceive","cutOnce","eventSign","firstCharge","taskSeries","returningBonus","canReceive","distributedReward","promoteInviterRewards","surpriseReward","creditLoan","coupon","userProfileTips","blindBoxLottery","guessingPoints"];var Zo=(e=>(e.Loading="Loading",e.Done="Done",e.Error="Error",e.Cancelled="Cancelled",e))(Zo||{}),QA=(e=>(e[e.Default=2]="Default",e[e.Infinity=50]="Infinity",e[e.Common=3]="Common",e))(QA||{}),Bs=(e=>(e.Login="Login",e.Router="Router",e))(Bs||{}),XA=(e=>(e.Cancel="Cancel",e.Defer="Defer",e))(XA||{});const Iie="2.4.2",gE="lobby@device@score@v2",Aie=60,Lie=410,Tie=80,Rie=410,Oie=1e3,Pie=20,Die=40,Mie=70,Nie=50,kie=15e3,Bie=.2,Hie=.2,xie=.5,Eie=.1,Uie=2,Gie=35,fE=35,Fie=69,Wie=90,Vie=69,$ie=4,Yie=45,qie=39,zie=35,jie=3e4,Kie=39,Qie=180,Xie=15,Zie=39,Jie=100,ece=100,tce=50,nce=66,oce=120;let ym=null;const pE=()=>{try{const e=localStorage.getItem(gE);return e?JSON.parse(e):{}}catch(e){return{}}},hE=()=>{ym=null},Cb=()=>{ym||(ym=pE());const e=ym;if(!e.result)return e;const t=tt("mock.deviceScoreV2",void 0,!0);if(t!=null&&!isNaN(Number(t))){const n=Number(t),o=n<40?"LOW":n<70?"MID":"HIGH";return{version:e.version,result:{...e.result,score:n,tier:o}}}return e},_E=()=>{var n,o,a,r;const{version:e,result:t}=Cb();return t?{deviceScoreV2:t.score,deviceScoreV2Version:e,deviceScoreV2Tier:t.tier,deviceScoreV2Confidence:t.confidence,deviceScoreV2ImageRisk:t.imageRisk,deviceScoreV2DecodeMedian:(o=(n=t.details)==null?void 0:n.decode)==null?void 0:o.median,deviceScoreV2Source:(r=(a=t.proposed)==null?void 0:a.source)!=null?r:"dynamic-v2"}:{deviceScoreV2:fE,deviceScoreV2Version:e,deviceScoreV2Tier:"LOW",deviceScoreV2Confidence:"low",deviceScoreV2ImageRisk:"high",deviceScoreV2Source:"not-ready-low-fallback"}},bE=Object.freeze(Object.defineProperty({__proto__:null,getDeviceScoreV2ReportFields:_E,getDeviceScoreV2Result:Cb,invalidateDeviceScoreV2Cache:hE},Symbol.toStringTag,{value:"Module"}));var Hh=(e=>(e.LOWEST="0-39",e.LOW="40-59",e.MEDIUM="60-74",e.HIGH="75-89",e.HIGHEST="90-100",e))(Hh||{});const yE=()=>{const[e,t]=(localStorage.getItem("lobby@device@score")||"").split(":")||[],n=tt("mock.deviceScore",t?Number(t):void 0,!0);return{version:e,score:n}},vE=e=>e>=90&&e<=100?"90-100":e>=75&&e<=89?"75-89":e>=60&&e<=74?"60-74":e>=40&&e<=59?"40-59":"0-39",SE=e=>e==="HIGH"?"90-100":e==="MID"?"60-74":"0-39",CE=()=>{const e=Cb().result;return e?typeof e.score=="number"?vE(e.score):SE(e.tier):"0-39"},wb=()=>CE(),Dn=(e=[])=>!!Et.reduceByDeviceScoreV2()&&e.includes(wb()),ZA=()=>!!Dn(["40-59","0-39"]),En=e=>String(tt("mock.reduceByDeviceScoreExclude")).includes(e),Dv=new Set,JA=e=>{if(Dv.has(e))return;Dv.add(e);const{score:t,version:n}=yE();console.info(`[ä½ç«¯æºé级] ${e} å·²å¯ç¨ (score=${t!=null?t:"-"}, quality=${wb()}, scoreVersion=${n!=null?n:"-"})`)},$n=(e,t)=>()=>{const n=t();return n&&JA(e),n},va={stopScrollAnimation:$n("stopScrollAnimation",()=>!En("stopScrollAnimation")&&Dn(["40-59","0-39"])),stopRouterAnimation:$n("stopRouterAnimation",()=>!En("stopRouterAnimation")&&Dn(["40-59","0-39"])),stopOverlayAnimation:$n("stopOverlayAnimation",()=>!En("stopOverlayAnimation")&&Dn(["40-59","0-39"])),staticGameLoading:$n("staticGameLoading",()=>!En("staticGameLoading")&&Dn(["40-59","0-39"])),delayAutoDialogOpen:$n("delayAutoDialogOpen",()=>!En("delayAutoDialogOpen")&&Dn(["40-59","0-39"])),disableAvif:$n("disableAvif",()=>!En("disableAvif")&&Dn(["40-59","0-39"])),deferLoginSuccessTasks:$n("deferLoginSuccessTasks",()=>!En("deferLoginSuccessTasks")&&Dn(["40-59","0-39"])),reduceFirstScreenEagerList:$n("reduceFirstScreenEagerList",()=>!En("reduceFirstScreenEagerList")&&Dn(["40-59","0-39"])),asyncDecodeImageByDeviceScore:$n("asyncDecodeImageByDeviceScore",()=>!En("asyncDecodeImageByDeviceScore")&&Dn(["40-59","0-39"])),disableCountToAnimation:$n("disableCountToAnimation",()=>!En("disableCountToAnimation")&&Dn(["40-59","0-39"])),disableAutoSlide:$n("disableAutoSlide",()=>!En("disableAutoSlide")&&Dn(["40-59","0-39"])),disableSeamlessScroll:$n("disableSeamlessScroll",()=>!En("disableSeamlessScroll")&&Dn(["40-59","0-39"])),disableWinnerScroll:$n("disableWinnerScroll",()=>!En("disableWinnerScroll")&&Dn(["40-59","0-39"])),disableMarketingAnimation:$n("disableMarketingAnimation",()=>!En("disableMarketingAnimation")&&Dn(["40-59","0-39"])),disableApngByDeviceScore:$n("disableApngByDeviceScore",()=>!En("disableApngByDeviceScore")&&Dn(["40-59","0-39"])),disableLottieAnimation:$n("disableLottieAnimation",()=>!En("disableLottieAnimation")&&Dn(["40-59","0-39"])),disableRedPackRain:$n("disableRedPackRain",()=>!En("disableRedPackRain")&&Dn(["40-59","0-39"])),stopRechargeDecorativeImages:e=>{if(En("stopRechargeDecorativeImages"))return!1;let t=!1;return(e==null?void 0:e.forceAllDeviceDowngradeSwitch)===eo.OPEN?t=!0:(e==null?void 0:e.lowEndDeviceDowngradeSwitch)===eo.OPEN&&(t=Dn(["40-59","0-39"])),t&&JA("stopRechargeDecorativeImages"),t},disableRedPocketRainLottie:$n("disableRedPocketRainLottie",()=>!En("disableRedPocketRainLottie")&&Dn(["40-59","0-39"]))},wE=async(e,t,n)=>{if(!t)return Zo.Error;
18const o=r=>{if(r.default)return r;for(const s of Object.keys(r)){const i=r[s];if((i.__esModule||i[Symbol.toStringTag]==="Module")&&i.default)return i}return r},a=r=>{t.componentConfig.component=t.componentConfig.createAsyncComponent(()=>Promise.resolve(o(r)))};try{const r=await t.componentConfig.loader({...Mu});return a(r),Zo.Done}catch(r){return t.componentConfig.useBackgroundLoad&&t.componentConfig.loader({maxTry:QA.Infinity,timeout:600}).then(s=>{a(s),n==null||n()}),Zo.Error}},IE=e=>{if(!e)return!0;const n=Oe().route.name,o=e.include?e.include.includes(n):!0,a=e.exclude?e.exclude.includes(n):!1;return o&&!a},AE=e=>{var r;const n=(r=Oe().route.meta)==null?void 0:r.dialogLimit,o=Array.isArray(n==null?void 0:n.include)?n.include.includes(e):!0,a=Array.isArray(n==null?void 0:n.exclude)?n.exclude.includes(e):!1;return o&&!a},LE=9,eL=9,TE="inheritLoginRegisterProcess",Sd={GeetestApiServers:["gcaptcha4-hrc.gsensebot.com","gcaptcha4-hrc.geetest.com"],BotionApiServers:["bcaptcha.botion.com"],BotionStaticServers:["static.botion.com"],SmsScope:{Min:6,Max:12},UsernameScope:{Min:4,Max:16}},xh={Min:2,Max:20},Dc="!@#$%^&*_=+\\\\,./?()\\-",ace={get url(){return Qe().isIos?"https://apps.apple.com/sg/app/google-authenticator/id388497605":"https://play.google.com/store/search?q=google-authenticator"}},rce={Phone:{Min:4,Max:8},Email:5,Ga:6},sce=()=>{const{t:e}=we();return[{value:1,label:e("lobby.selectOptions.workType.management")},{value:2,label:e("lobby.selectOptions.workType.technical")},{value:3,label:e("lobby.selectOptions.workType.sales_marketing")},{value:4,label:e("lobby.selectOptions.workType.customer_service")},{value:5,label:e("lobby.selectOptions.workType.education_training")},{value:6,label:e("lobby.selectOptions.workType.administration")},{value:7,label:e("lobby.selectOptions.workType.finance_accounting")},{value:8,label:e("lobby.selectOptions.workType.healthcare")},{value:9,label:e("lobby.selectOptions.workType.hr")},{value:10,label:e("lobby.selectOptions.workType.project_management")},{value:99,label:e("lobby.selectOptions.workType.other")}]},ice=()=>{const{t:e}=we();return[{value:1,label:e("lobby.selectOptions.incomeSource.salary")},{value:2,label:e("lobby.selectOptions.incomeSource.self_employed")},{value:3,label:e("lobby.selectOptions.incomeSource.investment")},{value:4,label:e("lobby.selectOptions.incomeSource.part_time")},{value:5,label:e("lobby.selectOptions.incomeSource.commission")},{value:6,label:e("lobby.selectOptions.incomeSource.ip")},{value:7,label:e("lobby.selectOptions.incomeSource.pension_social_security")},{value:8,label:e("lobby.selectOptions.incomeSource.intangible_assets")},{value:9,label:e("lobby.selectOptions.incomeSource.sponsorship_donations")},{value:10,label:e("lobby.selectOptions.incomeSource.rental")},{value:99,label:e("lobby.selectOptions.incomeSource.other")}]},ag={get pathname(){const e="home";return{login:`/${e}/login`,register:`/${e}/register`}}};var Kt=(e=>(e.Login="login",e.Register="register",e))(Kt||{}),Vt=(e=>(e.Account="account",e.Phone="phone",e.Email="email",e.ThirdParty="thirdParty",e))(Vt||{}),ta=(e=>(e[e.Theme1=1]="Theme1",e[e.Theme2=2]="Theme2",e[e.Theme3=3]="Theme3",e))(ta||{}),vo=(e=>(e[e.Style1=1]="Style1",e[e.Style2=2]="Style2",e[e.Style3=3]="Style3",e))(vo||{}),Kr=(e=>(e[e.Picture=1]="Picture",e[e.Text=2]="Text",e[e.None=3]="None",e))(Kr||{}),un=(e=>(e[e.Account=1]="Account",e[e.Phone=2]="Phone",e[e.Email=3]="Email",e))(un||{}),tL=(e=>(e[e.UserInput=0]="UserInput",e[e.History=1]="History",e))(tL||{}),RE=(e=>(e[e.Ip=1]="Ip",e[e.UserInput=2]="UserInput",e[e.UserClear=3]="UserClear",e))(RE||{}),vm=(e=>(e[e.Qudao=1]="Qudao",e[e.Tuiguang=2]="Tuiguang",e[e.Sysconf=3]="Sysconf",e))(vm||{});function OE(e=location.pathname){var n;const{router:t}=Oe();return(n=t.getRoutes().find(o=>o.path===e))==null?void 0:n.name}function Xn(e,t=location.pathname){return(E_(e)?e:[e]).map(o=>OE(t)===o).includes(!0)}const _o=rt(()=>V(()=>import("./toast.impl.DaOyXc1l.js"),__vite__mapDeps([0,1,3,4,5,6,7,8,9,10,11,12,13])),e=>e.showToast,"ShowToast"),cce=rt(()=>V(()=>import("./toast.impl.DaOyXc1l.js"),__vite__mapDeps([0,1,3,4,5,6,7,8,9,10,11,12,13])),e=>e.closeToast,"CloseToast"),wi={GateNormal:6,GateWeak:2,GateLowEndCap:4,MaxTasksLowEnd:2,TaskGapLowEndMs:300},Di={TimeoutNormalMs:1e4,TimeoutWeakMs:3e4,RampFallbackMs:8e3,AbortGraceMs:2e3,InputCooldownMs:200},Cd=["critical","high","normal","low"],PE=new Set(["critical","high"]),$o={SkinAssetsHash:"skin-assets-hash",I18nCacheUpdate:"i18n-cache-update",GlobalLazyInit:"global-lazy-init",BannerRestImages:"banner-rest-images",DomainProbe:"domain-probe",RechargeDataPreload:"recharge-data-preload",RechargeActivityPreload:"recharge-activity-preload",RechargeCouponPreload:"recharge-coupon-preload",RechargeUnpaidRefresh:"recharge-unpaid-refresh",RechargeServerTime:"recharge-server-time",RechargeSurpriseReward:"recharge-surprise-reward",RechargeImagesPreload:"recharge-images-preload",CacheCleanExpired:"cache-clean-expired",LazyRegionPreload:"lazy-region-preload",AsyncAsidePreload:"async-aside-preload",AutoDialogLaunch:"auto-dialog-launch",GameDomainSpeedTest:"game-domain-speed-test",ApiVersionInit:"api-version-init"};function DE(e){const t=UI(e);return{gate:t,acquireOnce:()=>t.acquire().then(()=>{let o=!1;return()=>
18{o||(o=!0,t.release())}}),setLimit:o=>t.setLimit(o)}}function ME(){const e=ju(),t=ZA(),n=e?wi.GateWeak:wi.GateNormal,o=e?Di.TimeoutWeakMs:Di.TimeoutNormalMs,a=t?Math.min(n,wi.GateLowEndCap):n,r=t?wi.MaxTasksLowEnd:1/0,s=t?wi.TaskGapLowEndMs:0;return{isWeak:e,isLowEnd:t,gateLimit:a,trickleGateLimit:a,maxConcurrentTasks:r,taskGapMs:s,defaultTimeoutMs:o}}let NE=0;function wd(e){const t=new Error(`[idle-scheduler] task aborted: ${e}`);return t.name="IdleSchedulerAbortError",t.reason=e,t}function kE(){const e=navigator.scheduling;if(e&&typeof e.isInputPending=="function")return()=>e.isInputPending();let t=0;const n=()=>{t=Date.now()};if(typeof window!="undefined")for(const o of["pointerdown","keydown","wheel","touchstart"])window.addEventListener(o,n,{passive:!0,capture:!0});return()=>Date.now()-t<Di.InputCooldownMs}function BE(e={}){var G,N,$,X,j,te,K,q,ae,me,de;const t=(G=e.whenFcp)!=null?G:Eg,n=(N=e.ric)!=null?N:Xm,o=($=e.yieldToMain)!=null?$:Sk,a=(X=e.evaluateBudget)!=null?X:ME,r=(j=e.setTimeout)!=null?j:(ne,U)=>window.setTimeout(ne,U),s=(te=e.clearTimeout)!=null?te:ne=>window.clearTimeout(ne),i=(K=e.isHidden)!=null?K:()=>document.visibilityState==="hidden",c=(q=e.reportError)!=null?q:(ne,U)=>{var W;console.warn("[idle-scheduler] task error",(W=U.label)!=null?W:U.id,ne)},l=(ae=e.isInputPending)!=null?ae:kE(),u=e.onTaskSettled,d=(me=e.onConfigReady)!=null?me:ne=>{const U=ve("CLIENT_CONFIG_INITIALIZATION_COMPETED",()=>{U.off(),ne()});return()=>U.off()},m=(de=e.onVisibilityChange)!=null?de:ne=>(document.addEventListener("visibilitychange",ne),()=>document.removeEventListener("visibilitychange",ne)),g={critical:[],high:[],normal:[],low:[]};let f=!1,_=!1,h=0,p={isWeak:!1,gateLimit:wi.GateNormal,trickleGateLimit:wi.GateNormal,maxConcurrentTasks:1/0,taskGapMs:0,defaultTimeoutMs:Di.TimeoutNormalMs};const y=DE(p.trickleGateLimit);let b=0,v=!1;const A=()=>Date.now(),L=(ne,U)=>{ne.abortReason||(ne.abortReason=U),ne.controller.signal.aborted||ne.controller.abort()},T=()=>{y.setLimit(_?p.gateLimit:p.trickleGateLimit)},S=ne=>_?!0:PE.has(ne),I=()=>{for(const ne of Cd){if(!S(ne))continue;const U=g[ne];if(U.length)return U.shift()}},R=()=>Cd.some(ne=>S(ne)&&g[ne].length>0),D=(ne,U,W)=>{var oe;if(!(ne.status==="fulfilled"||ne.status==="rejected"||ne.status==="aborted")&&(ne.status=U,ne.watchdog!==void 0&&s(ne.watchdog),ne.graceTimer!==void 0&&s(ne.graceTimer),U==="fulfilled"?ne.resolve(W):ne.reject(W),u)){const be=A();try{u({id:ne.id,label:ne.label,priority:ne.priority,status:U,queuedMs:((oe=ne.startAt)!=null?oe:be)-ne.enqueueAt,runningMs:ne.startAt!==void 0?be-ne.startAt:0,abortReason:ne.abortReason})}catch(Ie){}}},M=new WeakSet,B=ne=>{M.has(ne)||(M.add(ne),h=Math.max(0,h-1),Y())},E=ne=>{var oe;ne.status="running",h++,b=A(),ne.startAt=b;const U=(oe=ne.timeout)!=null?oe:p.defaultTimeoutMs;ne.watchdog=r(()=>{ne.status==="running"&&(L(ne,"timeout"),ne.graceTimer=r(()=>{ne.status==="running"&&(D(ne,"aborted",wd("timeout")),B(ne))},Di.AbortGraceMs))},U);const W={gate:y.gate,signal:ne.controller.signal,shouldAbort:()=>ne.controller.signal.aborted,isWeak:p.isWeak,yieldToMain:o,fetchPriority:ne.fetchPriority};Promise.resolve().then(()=>ne.runner(W)).then(be=>{ne.status==="running"&&(D(ne,"fulfilled",be),B(ne))},be=>{var Ie;ne.status==="running"&&(ne.controller.signal.aborted?D(ne,"aborted",wd((Ie=ne.abortReason)!=null?Ie:"cancelled")):(c(be,{label:ne.label,id:ne.id}),D(ne,"rejected",be)),B(ne))})};function Y(){if(v||!f)return;if(i()){for(const be of Cd)for(const Ie of g[be])Ie.status==="queued"&&(Ie.status="paused");return}if(!R()||h>=p.maxConcurrentTasks)return;v=!0;const ne=p.taskGapMs,U=A()-b;let W=ne>0&&b>0?Math.max(0,ne-U):0;l()&&(W=Math.max(W,Di.InputCooldownMs));const oe=()=>n(()=>{v=!1,H()});W>0?r(oe,W):oe()}function H(){if(!f||i()||h>=p.maxConcurrentTasks)return;const ne=I();if(ne&&!(ne.status!=="queued"&&ne.status!=="paused")){if(p.isWeak&&ne.net==="skipWeak"){D(ne,"aborted",wd("skipped-weak")),Y();return}E(ne),Y()}}const F=()=>{if(f)return;f=!0,p=a(),T();let ne=!1;const U={},W=()=>{var oe;ne||(ne=!0,_=!0,p=a(),T(),(oe=U.cancel)==null||oe.call(U),U.timer!==void 0&&s(U.timer),Y())};U.cancel=d(W),U.timer=r(W,Di.RampFallbackMs),m(()=>{if(i())Y();else{for(const oe of Cd)for(const be of g[oe])be.status==="paused"&&(be.status="queued");Y()}}),Y()};return t().then(()=>F()),{schedule:(ne,U={})=>{var Ae,Je;const W=++NE,oe=(Ae=U.priority)!=null?Ae:"normal",be=new AbortController;let Ie,Me;const et=new Promise((wt,Dt)=>{Ie=wt,Me=Dt});et.catch(()=>{});const se={id:W,priority:oe,label:U.label,net:(Je=U.net)!=null?Je:"any",timeout:U.timeout,fetchPriority:U.fetchPriority,runner:ne,externalSignal:U.signal,status:"queued",resolve:Ie,reject:Me,controller:be,enqueueAt:A()};return U.signal&&(U.signal.aborted?L(se,"external"):U.signal.addEventListener("abort",()=>L(se,"external"),{once:!0})),be.signal.addEventListener("abort",()=>{var wt;if(se.status==="queued"||se.status==="paused"){const Dt=g[se.priority],xn=Dt.indexOf(se);xn>=0&&Dt.splice(xn,1),D(se,"aborted",wd((wt=se.abortReason)!=null?wt:"cancelled"))}},{once:!0}),g[oe].push(se),Y(),{promise:et,cancel:()=>{(se.status==="queued"||se.status==="paused"||se.status==="running")&&L(se,"cancelled")},get status(){return se.status},id:W,label:U.label,priority:oe}},start:F}}const Fa=BE();var ha=(e=>(e.LOBBY_PWA_REDIRECT_URL="lobby_pwa_redirect_url",e.LOBBY_PWA_DOMAIN="lobby_pwa_domain",e.LOBBY_PWA_OSS="lobby_pwa_oss",e.LOBBY_PWA_TOKEN="lobby_pwa_token",e.LOBBY_PWA_NEW_URL_PARAMS="lobby_pwa_new_url_params",e))(ha||{});const HE=()=>{const e=Ot.siteCode;return e?String(e):""},xE=()=>{var e;return[window.LOBBY_SITE_CONFIG.siteCode,...(e=window.LOBBY_SITE_CONFIG.history)!=null?e:[]]},EE=()=>{const e=HE();return!!e&&!xE().includes(e)},lce=()=>{try{const e=qe.localStorage.getAny(ha.LOBBY_PWA_DOMAIN);if(!e)return[];const t=typeof e=="string"?JSON.parse(window.atob(e)):e;return Array.isArray(t)?t.filter(n=>typeof n=="string"&&n.includes("https")):[]}catch(e){return[]}},Ib={key:e=>`web__lobby__persisted__${e}`,restoreFromStore:(e,t)=>
18{t=Array.isArray(t)?t:[t],t.forEach(n=>{const{oldStore:o,oldPath:a,newPath:r}=n,s=typeof o=="string"?JSON.parse(o):o,i=Nt(s,a);i&&$s(e.store,r,i)})}};function UE(){var e;return JSON.parse(Sn.ossDecrypt(((e=window.self.LOBBY_SITE_CONFIG.INJECT_DATA)==null?void 0:e.ossGetSiteUrlConfig.data.data)||""))}const GE=async e=>{try{const n=await(await fetch(`${e}/cocos/config_data.json`)).text(),o=Sn.ossDecrypt(n);return JSON.parse(o)}catch(t){console.log(`query ${e}/cocos/config_data.json error , pleace confirm oss config (LOBBY_SITE_CONFIG.ossName,LOBBY_SITE_CONFIG.ossType)! `,t)}return null},Ab=async e=>new Promise((t,n)=>{xg(e,"web",!1,5e3).then(o=>{t({domain:e,pingTime:o})}).catch(()=>{n({domain:e,pingTime:-1})})}),FE=async e=>await Promise.any(e.map(t=>Ab(t))),Lb=e=>qe.localStorage.set(ha.LOBBY_PWA_DOMAIN,window.btoa(JSON.stringify(e))),nL=()=>{let e=[];try{const n=qe.localStorage.get(ha.LOBBY_PWA_DOMAIN)?window.atob(qe.localStorage.get(ha.LOBBY_PWA_DOMAIN)):"";e=(n?JSON.parse(n):"")||UE().lobby_domain||[]}catch(t){console.log(t)}return e.filter(t=>t.includes("https"))},WE=e=>qe.localStorage.set(ha.LOBBY_PWA_TOKEN,e),VE=()=>qe.localStorage.get(ha.LOBBY_PWA_TOKEN),$E=e=>qe.localStorage.set(ha.LOBBY_PWA_OSS,e),YE=()=>{const e=`https://${window.LOBBY_SITE_CONFIG.ossName}.${window.LOBBY_SITE_CONFIG.ossType}`;try{const t=qe.localStorage.get(ha.LOBBY_PWA_OSS)||"";return(t?window.atob(t):e).replace(/\/+$/,"")}catch(t){return e}},oL=e=>qe.localStorage.set(ha.LOBBY_PWA_REDIRECT_URL,e),aL=()=>qe.localStorage.get(ha.LOBBY_PWA_REDIRECT_URL)||"",qE=e=>{console.log("lobbyPwa newParams",e);const t=rL();return qe.localStorage.set(ha.LOBBY_PWA_NEW_URL_PARAMS,{...t,...e})},rL=()=>{const e=qe.localStorage.get(ha.LOBBY_PWA_NEW_URL_PARAMS);return e!=null?e:{}},sL=e=>{try{return JSON.parse(window.localStorage.getItem(Ib.key(e))||"{}")||{}}catch(t){return{}}},zE=()=>sL("device").uuid||"",jE=()=>{const{userInfos:e,fingerId:t}=sL("user");return(e==null?void 0:e.deviceFingerprint)||t||""},KE=window.top!==window,QE=e=>{gr(Mn.EVENT_UPDATE_LOBBY_DOMAIN).send({lobby_domain:e},{merge:!1,fireAndForget:!0}),!EE()&&!KE&&Lb(e)};let iL=0;const cL=()=>{iL=Date.now()},lL=async(e=!1,t=100)=>{var r;let n=null;const{health:o,response:a}=Pt("ossGetSiteUrlConfig");if(e&&o)try{n=JSON.parse(Sn.ossDecrypt((a==null?void 0:a.data.data)||""))}catch(s){}else n=await OA();if(n){cL();const{updateSiteURLInfos:s}=ue(),i=yh(n);QE((r=i.lobby_domain)!=null?r:[]),s(i),Fa.schedule(()=>ve("DOMAIN_PROBE_TRIGGER").emit({source:So.Fcp}),{priority:"high",label:$o.DomainProbe})}},XE=(e=!1)=>{(e||Date.now()-iL>216e5)&&ve("REFRESH_URL").emit()};function qg(){const e=ue(),t=C(()=>{var s;return((s=e.systemInfos)==null?void 0:s.enable_using_sms)===dr.OPEN}),n=C(()=>{var s;return((s=e.systemInfos)==null?void 0:s.enable_using_gmail)===dr.OPEN}),o=C(()=>{var s;return((s=e.systemInfos)==null?void 0:s.enableModifyPhone)===dr.OPEN}),a=C(()=>{var s;return((s=e.systemInfos)==null?void 0:s.enableModifyEmail)===dr.OPEN}),r=C(()=>{var l,u;const i=String((u=(l=e.systemInfos)==null?void 0:l.otpSmsVerifyRestrict)!=null?u:"").split(",").map(d=>d.trim()).filter(Boolean),c=C(()=>{const d=Qe();if(re.package.isLite)return vc.SPEED_APP;if(re.package.isVest)return vc.VEST_APP;if(d.isP2a||d.isH5Pwa)return vc.PWA;const m=Wg();return m===sr.ANDROID||m===sr.IOS?vc.H5:vc.PC});return i.length?i.some(d=>d==c.value):!0});return{enableUsingSms:t,enableUsingEmail:n,enableModifyPhone:o,enableModifyEmail:a,enableOTPRestrict:r}}function uL(){const e=ue(),{enableUsingSms:t,enableOTPRestrict:n}=qg();return{bindPhoneRegister:C(()=>{var d,m,g,f;const a=(m=(d=e.systemInfos)==null?void 0:d.phoneLogin)==null?void 0:m.quickCaptchaRegister,r=(f=(g=e.systemInfos)==null?void 0:g.phoneLogin)==null?void 0:f.quickPasswordRegister,s=rs(a,jt.OPEN),i=rs(r,jt.OPEN),c=(s||i)&&!0,l=s&&n.value&&t.value;return{enable:c,enableCaptcha:l,enablePassword:i||c&&!l}})}}const cn=e=>{const t=bn(),n=Oe(),o=C(()=>{var h;if(e)return(h=t.stateMap[e])==null?void 0:h.options}),a=C(()=>{var h;return e?(h=t.stateMap[e])==null?void 0:h.isAutoDialog:!1}),r={onOpen:()=>{},onClose:()=>{}},s=C({get(){var h;return e?(h=t.stateMap[e])==null?void 0:h.visible:void 0},set(h){e&&(h?t.open(e):t.close(e))}});e&&fe(()=>{var h;
18return(h=t.stateMap[e])==null?void 0:h.visible},h=>{h?r.onOpen():r.onClose()});const i=h=>{r.onOpen=h,s.value&&h()},c=h=>{r.onClose=h},l=C(()=>Object.values(t.stateMap).some(h=>h.visible)),u=C(()=>{if(!e)return!1;const h=t.stateMap[e];return!(h!=null&&h.visible)||typeof h.stackIndex!="number"?!1:Object.values(t.stateMap).some(p=>(p==null?void 0:p.visible)&&typeof p.stackIndex=="number"&&p.stackIndex>h.stackIndex)}),d=h=>{t.stopAutoDialog(),e&&t.close(e),n.router.push({name:h})},m=t.open,g=t.close,f=t.closeAll;return{visible:s,isAutoDialog:a,isAcitve:h=>{var y;const p=h!=null?h:e;return p?((y=t.stateMap[p])==null?void 0:y.visible)||t.isInQueue(p):!1},openOptions:o,onDialogOpen:i,onDialogClose:c,goToPage:d,openDialog:m,closeDialog:g,closeAllDialog:f,hasOpeningDialog:l,isCoveredByDialog:u}},dL=async(e,t)=>{try{return(await z.request({url:"/ipCheck",method:"GET",timeout:5e3},{oss:{enable:!1},cache:{useCache:"fresh",setCache:!0,time:900,dependencies:[],expireOnloaded:!1,useCacheOnError(){return!0},...e==="whiteList"?{useCache:!1,useCacheOnError:()=>!1}:{}},token:{type:!1},error:{checkResCode:!0,action:"silent"},crypto:{enable:!1},maxRetryCount:t})).data.data}catch(n){if(e==="whiteList")throw new Error("query whiteList Failed");const{ipCheck:o}=Tt();return{...o,areaStatus:!0,siteMaintenanceStatus:!0}}};var fi=(e=>(e.Webauthn="Webauthn",e.Google="Google",e.Facebook="Facebook",e.Line="Line",e.Telegram="Telegram",e.Zalo="Zalo",e.Nowallet="Nowallet",e))(fi||{});function Tb(){return ir.includes(Ge().language)}function ZE(e){return Tb()?[...e].reverse().join(""):e.join("")}function JE(){return Tb()?"Ø":"ã"}function uce(e){return Tb()?`â§${e}â©`:e}function dce(e,t=!1){return!e||!t?e:`â«${e}â¬`}function Rb(){const e=Ge(),t=C(()=>e.isRtlLanguage),n=C(()=>ir.includes(e.language)),o=C(()=>n.value?"Ø":"ï¼"),a=C(()=>n.value?"Ø":"ã");return{getComma:o,isRTL:t,isLangRtl:n,getChineseComma:a,getJoinTxt:i=>ZE(i),formatRtlPlaceholder:(i,c,l)=>!e.isRtlLayoutWithLeftAlign||!i.includes(c)?i:l(i)}}const Mc=Sn.getSK();var Hs=(e=>(e.ACCOUNT="3",e.BETTING="2",e.PERSONAL="1",e.CENTER_WALLET="4",e.RECHARGE_RECORD="5",e.WITHDRAW_RECORD="6",e))(Hs||{}),eU=(e=>(e.DEF="DEF",e.DESC="DESC",e.ASC="ASC",e))(eU||{}),tU=(e=>(e[e.ALL=0]="ALL",e[e.UNSETTLEMENT=1]="UNSETTLEMENT",e[e.SETTLED=2]="SETTLED",e[e.REVOKE=3]="REVOKE",e))(tU||{});const _u={LoginNoLastGameInfo:"login no lastgameinfo",LoadingGameExternalApp:"loading-game external_app",UpdatePrizeGame:"update prize game",CleanUpGame:"clean up game",MultiTabGame:"multi tab game",WinClosedGame:"win closed game",WgPackageGame:"wg package game",ContinueGame:"continue game"},mce=[_u.WinClosedGame,_u.WgPackageGame,_u.CleanUpGame],Ki=Oa(()=>V(()=>import("./game-opener.impl.CL5FQ1-P.js"),__vite__mapDeps([0,1,2,14,3,4,5,6,10,15,7,8,16])),e=>e.gameOpenerImpl,"GameOpener");var Eh=(e=>(e.White="#ffffff",e.Yellow="#ffff00",e))(Eh||{}),Uh=(e=>(e.WHITE="white",e.YELLOW="yellow",e))(Uh||{}),Ui=(e=>(e.AWARD="var(--skin__accent_1)",e))(Ui||{});const nU={"#1678ff":"blue","#ffaa09":"orange","#00bc06":"green"},Gh={"#ffaa09":"var(--skin__accent_3)","#00bc06":"var(--skin__accent_1)","#ea4e3d":"var(--skin__accent_2)"},gce=e=>{var t;return(t=Gh[e])!=null?t:e},fce=e=>e==="#ffaa09"?"var(--skin__text_accent3)":"#fff";var ut=(e=>(e[e.Casino=0]="Casino",e[e.Club=1001]="Club",e[e.Native=1002]="Native",e[e.ThirdParty=1003]="ThirdParty",e[e.Sport=-1]="Sport",e))(ut||{});const Gc={NORMAL:1,EUROPEAN_AMERICAN:2,CYAN_BLUE:3,STAKE:4,CROWN_GOLD:5,GALAXY_GOLD:6,DQ:7,THEME_8:8,HK:9,THEME_10:10,THEME_11:11,THEME_12:12,THEME_13:13,THEME_14:14,THEME_15:15,THEME_16:16,THEME_17:17,THEME_18:18,THEME_19:19,THEME_20:20,THEME_21:21,THEME_22:22,THEME_23:23,THEME_24:24,THEME_25:25,THEME_26:26,THEME_27:27,THEME_28:28,THEME_29:29,THEME_30:30,THEME_31:31,THEME_32:32,THEME_33:33,THEME_34:34,THEME_35:35,THEME_36:36,THEME_37:37,THEME_38:38,THEME_39:39,THEME_40:40,THEME_41:41,THEME_42:42,THEME_43:43,THEME_45:45,THEME_46:46,THEME_47:47,THEME_48:48,THEME_49:49,THEME_50:50,THEME_51:51,THEME_52:52,THEME_53:53,THEME_54:54,THEME_55:55,THEME_56:56,THEME_57:57,THEME_58:58,THEME_59:59,THEME_60:60,THEME_61:61,THEME_62:62,THEME_63:63,THEME_64:64,THEME_65:65,THEME_66:66,THEME_67:67,THEME_68:68,THEME_69:69,THEME_70:70,THEME_71:71,THEME_72:72,THEME_73:73,THEME_74:74,THEME_75:75,THEME_76:76,THEME_77:77,THEME_78:78,THEME_79:79,THEME_80:80,THEME_81:81,THEME_82:82,THEME_83:83,THEME_84:84,THEME_85:85,THEME_86:86,THEME_87:87,THEME_88:88,THEME_89:89,THEME_90:90,THEME_91:91,THEME_92:92,THEME_93:93,THEME_94:94,THEME_95:95,THEME_96:96,THEME_97:97,THEME_98:98,THEME_99:99,THEME_100:100,THEME_102:102,THEME_103:103,THEME_104:104,THEME_105:105,THEME_106:106,THEME_107:107,THEME_108:108,THEME_109:109,THEME_110:110,THEME_111:111,THEME_112:112,THEME_113:113,THEME_114:114,THEME_115:115,THEME_116:116,THEME_117:117,THEME_118:118,THEME_119:119,THEME_120:120,THEME_121:121,THEME_122:122,THEME_123:123,THEME_124:124,THEME_125:125,THEME_126:126,THEME_127:127,THEME_128:128,THEME_130:130,THEME_131:131,THEME_132:132,THEME_134:134,THEME_135:135,THEME_136:136,THEME_138:138,THEME_141:141,THEME_142:142,THEME_143:143,THEME_144:144,THEME_145:145,THEME_146:146,THEME_147:147,THEME_520:520},oU={THEME_1:1,THEME_2:2,THEME_3:3,THEME_4:4,THEME_5:5,THEME_6:6,THEME_7:7,THEME_9:9};Object.assign(Gc,oU);const aU={[Gc.THEME_11]:3},rU=[Gc.THEME_97,Gc.THEME_112,Gc.THEME_113],sU={NO_BG:0},iU={allCurrency:{ca:"currencyAisle",cc:"currencyCode",cd:"currencyDisplay",cn:"currencyName",cs:"currencySign",ct:"currencyType",ci:"currencyIcon",fn:"fullName",gameRateStr:"gameRateStr",gr:"gameRate",id:"id",mcc:"marketCurrencyCode",tp:"thousandthPlace"}},Qu={RealGameSkinTypeArr:rU,SubGameSummaryCategoryIdMap:aU,ThemeSkinType:Gc,ThemeSkinBg:sU,dataMap:iU},Be=Qu.ThemeSkinType,cU=Qu.dataMap,lU=Qu.ThemeSkinBg,uU=Qu.SubGameSummaryCategoryIdMap,mL=Qu.RealGameSkinTypeArr,gL={[Be.THEME_8]:{displayMode:[Xe.Page],supportedSpecialThemes:[ta.Theme3],supportedSpecialStyles:[vo.Style1,vo.Style2]},[Be.THEME_62]:{displayMode:[Xe.Dialog,Xe.Page]},[Be.THEME_64]:{displayMode:[Xe.Dialog,Xe.Page]},[Be.THEME_59]:{displayMode:[Xe.Page]}
18,[Be.THEME_70]:{displayMode:[Xe.Page]},[Be.THEME_69]:{displayMode:[Xe.Page]},[Be.THEME_82]:{displayMode:[Xe.Page],supportedSpecialThemes:[ta.Theme3],supportedSpecialStyles:[vo.Style1,vo.Style2]},[Be.THEME_83]:{displayMode:[Xe.Page],supportedSpecialThemes:[ta.Theme3],supportedSpecialStyles:[vo.Style1,vo.Style2]},[Be.THEME_84]:{displayMode:[Xe.Page]},[Be.THEME_67]:{displayMode:[Xe.Page]},[Be.THEME_81]:{displayMode:[Xe.Page]},[Be.THEME_38]:{displayMode:[Xe.Page]},[Be.THEME_86]:{displayMode:[Xe.Dialog]},[Be.THEME_88]:{displayMode:[Xe.Page]},[Be.THEME_80]:{displayMode:[Xe.Page]},[Be.THEME_104]:{displayMode:[Xe.Page]},[Be.THEME_76]:{displayMode:[Xe.Page]},[Be.THEME_89]:{displayMode:[Xe.Page]},[Be.THEME_98]:{displayMode:[Xe.Page]},[Be.THEME_99]:{displayMode:[Xe.Dialog]},[Be.THEME_68]:{displayMode:[Xe.Dialog]},[Be.THEME_103]:{displayMode:[Xe.Page]},[Be.THEME_110]:{displayMode:[Xe.Page]},[Be.THEME_105]:{displayMode:[Xe.Dialog,Xe.Page]},[Be.THEME_109]:{displayMode:[Xe.Page]},[Be.THEME_115]:{displayMode:[Xe.Page]},[Be.THEME_122]:{displayMode:[Xe.Page]},[Be.THEME_106]:{displayMode:[Xe.Page]},[Be.THEME_120]:{displayMode:[Xe.Page]},[Be.THEME_121]:{displayMode:[Xe.Page]},[Be.THEME_102]:{displayMode:[Xe.Page],supportedSpecialThemes:[ta.Theme3],supportedSpecialStyles:[vo.Style1,vo.Style2]},[Be.THEME_126]:{displayMode:[Xe.Page]},[Be.THEME_118]:{displayMode:[Xe.Page],supportedSpecialThemes:[ta.Theme3],supportedSpecialStyles:[vo.Style1,vo.Style2]},[Be.THEME_130]:{displayMode:[Xe.Page]},[Be.THEME_135]:{displayMode:[Xe.Page]},[Be.THEME_132]:{displayMode:[Xe.Page]},[Be.THEME_134]:{displayMode:[Xe.Page]},[Be.THEME_138]:{displayMode:[Xe.Page]},[Be.THEME_136]:{displayMode:[Xe.Dialog],supportedSpecialThemes:[ta.Theme3],forceDisplayMode:Xe.Dialog},[Be.THEME_142]:{displayMode:[Xe.Page]},[Be.THEME_144]:{displayMode:[Xe.Page]},[Be.THEME_143]:{displayMode:[Xe.Page]}},dU=async(e=!0)=>{var n;const t=await z.request({method:"get",url:"/api/finance/maxChargeRate",params:{osType:fl()}},{merge:e?void 0:!1,cache:{useCache:e,...e?{}:{useCacheOnError:()=>!1}},oss:{enable:e,force:!1},omitKey:["platformType","language"],error:{action:"noMessage"},...e?{}:{requestControl:{skipAggregate:!0}}});return((n=t==null?void 0:t.data)==null?void 0:n.data)||void 0};var Sm=(e=>(e[e.LIGHT=1]="LIGHT",e[e.DARK=2]="DARK",e[e.SYSTEM=3]="SYSTEM",e[e.TIMING=4]="TIMING",e))(Sm||{});function mU(e){const{setThemeState:t}=Xu();t(e)}function gU(e,t){const[n,o]=e,[a,r]=t;let s,i=null;function c(){const u=new Date,d=u.toDateString(),m=new Date(d);m.setHours(n,o,0,0);const g=new Date(d);return g.setHours(a,r,0,0),g<m&&(u>=m?g.setDate(g.getDate()+1):m.setDate(m.getDate()-1)),{startDateTime:m,endDateTime:g}}function l(){const u=new Date,{startDateTime:d,endDateTime:m}=c();u>=d&&u<m?s||(s=!0):s&&(s=!1),mU(s?"dark":"light");let g;u<d?g=d:u>=m?(g=new Date(d),g.setDate(g.getDate()+1)):g=m;const f=g.getTime()-u.getTime(),_=Math.max(0,Math.ceil(f/1e3)*1e3);i=setTimeout(l,_)}return l(),()=>{i!==null&&(clearTimeout(i),i=null)}}const Xu=ke("nightMode",()=>{const e=O(document.documentElement.getAttribute("data-prefers-color-scheme")||"light"),t=O(Sm.LIGHT),n=O([]),o=O([]);fe(e,g=>{document.documentElement.setAttribute("data-prefers-color-scheme",g)},{immediate:!0});let a,r;fe([t,n,o],([g])=>{if(a&&(a(),a=void 0),r&&(r(),r=void 0),g===Sm.SYSTEM){const f=window.matchMedia("(prefers-color-scheme: dark)");e.value=f.matches?"dark":"light";const _=h=>{e.value=h.matches?"dark":"light"};f.addEventListener("change",_),a=()=>f.removeEventListener("change",_)}else g===Sm.TIMING&&n.value.length>=2&&o.value.length>=2&&(r=gU(n.value,o.value))},{immediate:!0});const s=g=>{e.value=g},i=()=>e.value,c=C(()=>e.value==="dark"),{t:l}=we(),u=C(()=>c.value?l("lobby.modal.nightMode.dayModeName"):l("lobby.modal.nightMode.name")),d=C(()=>dt.enable);return{themeState:e,modeType:t,timingStart:n,timingEnd:o,setThemeState:s,getThemeState:i,isDark:c,menuTitle:u,menuHidden:d,menuClick:()=>bn().open("nightMode")}},{persist:{paths:["themeState","modeType","timingStart","timingEnd"]}}),fU=e=>{if(!e)return"";const t=/^\/lobby_asset\/(\{layout\}-\{bg\}-(?:\{skin\}|common)|\d+-\d+-\w+)(\/.*)/;return t.test(e)&&Xu().isDark?e.replace(t,"/lobby_asset_dark/$1$2"):e};var zt=(e=>(e.Wait="wait",e.Placeholder="placeholder",e.Loading="loading",e.LoadingAndSet="loading-set",e.Success="success",e.Error="error",e))(zt||{}),Ii=(e=>(e.AVIF="1",e.WEBP="2",e.AVIF_STATIC_WEBP_ANIMATED="3",e.UNSUPPORTED="4",e))(Ii||{}),lr=(e=>(e.Svg="svg",e.Canvas="canvas",e.Img="img",e.Bg="bg",e))(lr||{}),Jn=(e=>(e.NonFirstTime="nonFirstTime",e.Always="always",e.Loaded="loaded",e.Default="default",e))(Jn||{});function Mv(e){var o;const t=tt(e),n={false:Jn.Default,true:Jn.Always,loaded:Jn.Loaded,nonFirstTime:Jn.NonFirstTime,get networkQuality(){return BI()===xr.High?Jn.Always:Jn.Loaded}};return(o=n[t])!=null?o:e==="mock.simpleImage"?n.true:n.false}const ls={notLazy:()=>Mv("mock.notLazy"),loadingAndSet:()=>Mv("mock.simpleImage"),disabledAvif:()=>tt("mock.disabledAvif")==="true"||va.disableAvif(),nonDelayLazy:()=>tt("mock.nonDelayLazy")==="true",reportFirstLoadError:()=>tt("mock.reportFirstLoadError")==="true",useAvifOrWebpDefault:()=>tt("mock.useAvifOrWebpDefault")==="true"},pU=()=>{const[,e]=(localStorage.getItem("lobby@support@media")||"").split(":");return e||Ii.UNSUPPORTED},hU=()=>!!localStorage.getItem("lobby@support@media");function _U(){const e=pU(),t=ls.disabledAvif(),n=Qe(),o=n.isIos||n.isMacos||n.isIpad,a=[!1,!1],r=[!1,!1];for(let s=0;s<2;s++){const i=s===1,c=e===Ii.AVIF||e===Ii.AVIF_STATIC_WEBP_ANIMATED&&!i,l=e===Ii.WEBP||e===Ii.AVIF_STATIC_WEBP_ANIMATED&&i,u=e===Ii.AVIF&&o&&i;a[s]=!t&&!u&&c,r[s]=t?l||c:u?!0:l}return{useAvifOrWebpDefault:ls.useAvifOrWebpDefault(),getUseAvif:s=>a[s?1:0],getUseWebp:s=>r[s?1:0]}}let Qf=null;function fL(){if(Qf)return Qf;const e=_U();return hU()&&(Qf=e),e}const pL=(e,t=!0)=>t?/^\/lobby_asset\/\S+/.test(e):/\/lobby_asset\/\S+/.test(e),bU=[127,126,141,142,143,144,145,138,139,140,124,125,128,129,130,131,132,146,147,152,153,151,154,155,156,157,148,149],nn=ke("skin",()=>{const{siteConfig:e,siteInfos:t}=ue(),n=C(()=>{var h;
18return(h=e==null?void 0:e.type)!=null?h:Be.NORMAL}),o=C(()=>{var h;return(h=t==null?void 0:t.clubType)!=null?h:zw.Normal}),a=C(()=>e==null?void 0:e.skinType),r=C(()=>(t==null?void 0:t.backgroundColor)===lU.NO_BG),s=C(()=>{var h;return(h=i.value)==null?void 0:h.themeType}),i=C(()=>{const{hasLogined:h,userInfos:p}=J(),{currentTryCurrency:y}=ze(),{siteInfos:b}=ue(),v=h?(p==null?void 0:p.currency)||"":y==null?void 0:y.currencyCode,A=(b==null?void 0:b.holidayThemes)||[],L=Ye().unix();return A.find(T=>{var R;const S=T.showStartTime<=L&&T.showEndTime>=L;if(((R=T.currencyCodes)==null?void 0:R.split(",")).includes(v)&&T.status===1&&S)return!0})}),c=C(()=>{var y,b;const{ossHost:h}=Ht();if(!((y=i.value)!=null&&y.custom))return{};const p=JSON.parse((b=i.value)==null?void 0:b.custom);for(const v in p)v.includes("Img")&&(v==="cateImg"?p[v]=p[v].split(",").map(A=>A&&`${h}siteadmin/upload/img/${A}`||"").join(","):p[v]=p[v]?`${h}siteadmin/upload/img/${p[v]}`:"");return p}),l=C(()=>{var h;return((h=i.value)==null?void 0:h.themeCategory)==="custom_theme"}),u=C(()=>Number(s.value)>=108&&Number(s.value)<=158),d=C(()=>m.value&&Number(s.value)>=159),m=C(()=>!!s.value),g=C(()=>{var h;return m.value&&!!((h=i.value)!=null&&h.alpha)}),f=C(()=>{var h,p;return Ke.isShowFestivalPartern&&(!l.value&&!!((h=i.value)!=null&&h.isBackground)||l.value&&!!((p=c.value)!=null&&p.backgroundImg))}),_=C(()=>bU.includes(Number(s.value)));return{skinType:n,clubType:o,skinTypeValue:a,isNoBg:r,holidayThemeType:s,isNormalHolidayTheme:u,isBossDesignThemeType:d,isHeaderFestivalAlphaImg:g,isHolidayThemeVisible:m,isShowFestivalBgPattern:f,customizeFestivalConfig:c,isCustomizeFestival:l,holidayThemeConfig:i,isOldToNewStyleFestival:_}}),yU=P1((e="skin")=>{const{skinAssetsHash:t}=Tt();return e==="skin"?t:{}}),Dl=(e,t)=>typeof e!="undefined"?String(e):t,vU=/\{(layout|bg|skin|clubLayout|holiday)\}/g,SU=e=>{const{siteInfos:t}=ue(),n=nn().holidayThemeType,o={layout:Dl(t==null?void 0:t.type,"{layout}"),bg:Dl(t==null?void 0:t.backgroundColor,"{bg}"),skin:Dl(t==null?void 0:t.skinTypeValue,"{skin}"),clubLayout:Dl(t==null?void 0:t.clubType,"{clubLayout}"),holiday:Dl(n,"{holiday}")};return e.replace(vU,(a,r)=>o[r])},CU=e=>{var o;const t=yU("skin")||{},n=e.replace(/^\/lobby_asset\//,"").replace(/\?\S+$/,"");return(o=t[n])!=null?o:jn().getWebAppVersion()},wU=4e3,Ml=new Map,IU=()=>{const{siteInfos:e}=ue(),t=nn().holidayThemeType,n=Ht().ossHost,o=jn().getWebAppVersion(),a=Xu().isDark;return[e==null?void 0:e.type,e==null?void 0:e.skinTypeValue,e==null?void 0:e.backgroundColor,e==null?void 0:e.clubType,t,n,o,a].join("|")},AU=(e,t)=>{t||(t=`${Ht().ossHost}siteadmin/skin`);const n=SU(fU(e)),o=CU(n),a=Et.lobbyAssetImageSw();return Ra(t+n,{manualVersion:1,version:o,...o&&a?{swRuntimeCacheName:"images"}:{}})},ol=(e,t)=>{if(typeof e!="string"||!pL(e))return e;const n=`${e}__${t!=null?t:""}__${IU()}`,o=Ml.get(n);if(o!==void 0)return o;const a=AU(e,t);if(Ml.size>=wU){const r=Ml.keys().next().value;r!==void 0&&Ml.delete(r)}return Ml.set(n,a),a},rr=(e,t)=>{const{siteInfos:n}=ue();return e||""},LU=(e,t,n)=>e?t:"",zg=e=>{if(!e)return null;const{pathname:t,search:n}=Yi(e),o=t.lastIndexOf("."),a=t.lastIndexOf("/"),r=o>a&&o>0;return{name:r?t.slice(0,o):t,ext:r?t.slice(o+1):"",query:n}},TU=(e,t)=>{const n=zg(e);if(n){const{name:o,ext:a,query:r}=n;return a?o+`.${t}`+(r||""):e}return e},RU=["avif","webp"],br="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQImWNgYGBgAAAABQABh6FO1AAAAABJRU5ErkJggg==",OU=e=>/^(https?:\/\/[^/]+)?\/(lobby_asset|assets\/lobby_asset|siteadmin\/skin\/lobby_asset|siteadmin\/system_message_set|game_pictures|active|cocos\/lg|siteadmin\/upload|cocos\/icon|siteadmin\/active|agent|operation\/seo|common\/upload|siteadmin\/default\/2D|siteadmin\/pyq_img|publicityplaza\/upload|siteadmin\/officialcommunity|siteadmin\/brandLogo)(\/.*)?/.test(e),PU=e=>{if(pL(e,!1)){const n=/\/apng_.*\.png/,{version:o}=Ru(e);return n.test(e)||String(o).endsWith("@apng")||["home/icon_dt_pmd.png","/home/bookmark_star_1.png","/home/bookmark_star_2.png"].some(a=>e.includes(a))}return!1}
18,DU=e=>{const t=e.match(/\.([0-9a-z]+)(?:[?#]|$)/i);return t?t[1]:""},MU=e=>{const{src:t,isApng:n,canvasMode:o,replaceExtension:a,useAvif:r,useWebp:s}=e;return!(fL().useAvifOrWebpDefault||OU(t||""))||o&&n?[]:[...a===!0?RU:a===!1?[]:a||[]].filter(l=>l==="avif"?r:l==="webp"?s:!0)},hL=(e,t={})=>{const{canvasMode:n=!1,isApng:o=null,isSvg:a=!1,replaceExtension:r=!0}=t,s=o!=null?o:PU(e||""),i=s||DU(e||"").toLowerCase()==="gif",c=fL();return a?{replaceExtensionList:[],isAnimated:i}:i&&re.package.isLite?{replaceExtensionList:[],isAnimated:i}:{replaceExtensionList:MU({src:e,isApng:s,canvasMode:n,replaceExtension:r,useAvif:c.getUseAvif(i),useWebp:c.getUseWebp(i)}),isAnimated:i}},NU=()=>z.request({url:"/api/gameCenter/gold",method:"post"},{oss:{enable:!1}}).then(e=>e.data.data);var ns=(e=>(e[e.WITHDRAW=20]="WITHDRAW",e[e.BETTING_TASK=1]="BETTING_TASK",e[e.ACCOUNT_MANAGEMENT=10]="ACCOUNT_MANAGEMENT",e[e.WITHDRAW_RECORD=3]="WITHDRAW_RECORD",e[e.WITHDRAW_TASK=4]="WITHDRAW_TASK",e))(ns||{}),kU=(e=>(e[e.NEED_VERIFY_MESSAGE=3001]="NEED_VERIFY_MESSAGE",e[e.BIOMETRICS=3002]="BIOMETRICS",e[e.KYC_OR_BIOMETRICS=3003]="KYC_OR_BIOMETRICS",e[e.WRONG_PASSWORD=423]="WRONG_PASSWORD",e[e.VERSION_UPDATE=5001]="VERSION_UPDATE",e[e.PERFECT_PROFILE=5003]="PERFECT_PROFILE",e[e.FIELD_NAME=6001]="FIELD_NAME",e[e.TASK_ERROR=7001]="TASK_ERROR",e[e.EMAIL_LOAN_CODE_ERROR=41050]="EMAIL_LOAN_CODE_ERROR",e[e.UNRECHARGE_BIND_ACCOUNT=8e3]="UNRECHARGE_BIND_ACCOUNT",e[e.CANNOT_DELETE_ACCOUNT=8001]="CANNOT_DELETE_ACCOUNT",e[e.MEMEBER_BIND_EXTRA_ACCOUNT=8002]="MEMEBER_BIND_EXTRA_ACCOUNT",e[e.NO_WALLET_BIND_ERROR=8003]="NO_WALLET_BIND_ERROR",e))(kU||{});const BU=()=>z.request({url:"/api/club/manager/info",method:"post"}),HU=e=>z.request({url:"/api/club/manager/setting",method:"post",data:e}),xU=(e,t)=>z.request({url:"/api/club/manager/logo/settings",method:"get",params:{clubId:e}},{omitKey:["currency","language","platformType"],crypto:{enable:!0},oss:{enable:!t,checkWithCache:!0},cache:{useCache:!t,setCache:!0},token:{type:"staticOnly"}}),pce=(e,t)=>z.request({url:"/api/club/manager/contact/list",method:"get",params:{clubId:e}},{omitKey:["currency","language","platformType"],crypto:{enable:!0},oss:{checkWithCache:!0,enable:!t},token:{type:"staticOnly"},cache:{useCache:!t,setCache:!0}}),hce=e=>z.request({url:"/api/club/manager/apply",data:e,method:"post"}),_ce=()=>z.request({url:"/api/club/manager/applyInfo",method:"post"}),bce=()=>z.request({url:"/api/domain/lobby/club/parentDomain",method:"get"},{error:{action:"noMessage"},oss:{enable:!0},token:{type:"staticOnly"},omitKey:["currency","platformType","language"]}),EU=e=>z.request({url:"/api/club/margin/refreshMargin",method:"post",data:e}).then(t=>t.data.data),yce=e=>z.request({url:"/api/club/manager/queryUnique",method:"post",data:e}),Xf=()=>{var a,r,s,i,c,l,u;const e=J(),t=tn(),n=ze(),o=e.userInfos;return JSON.stringify([(a=o==null?void 0:o.username)!=null?a:"",(r=o==null?void 0:o.account_type)!=null?r:"",(s=o==null?void 0:o.tempAccountStatus)!=null?s:"",e.isTemporaryAccountMode,e.hasLogined,(i=t.sessionKey)!=null?i:"",(u=(l=o==null?void 0:o.currency)!=null?l:(c=n.currentTryCurrency)==null?void 0:c.currencyCode)!=null?u:""])},Nv=()=>{const e=J();return!!e.userInfos&&(e.hasLogined||e.isTemporaryAccountMode)};var Os=(e=>(e[e.WgDuel=1]="WgDuel",e[e.WgSelfProfit=2]="WgSelfProfit",e[e.ThirdParty=3]="ThirdParty",e[e.WgSports=4]="WgSports",e))(Os||{}),rg=(e=>(e[e.ImageAndText=0]="ImageAndText",e[e.ImageOnly=1]="ImageOnly",e))(rg||{}),_L=(e=>(e[e.Margin=0]="Margin",e[e.CreditLimit=1]="CreditLimit",e))(_L||{});const Ob=ke("club-base",()=>{const e=J(),t=Ze(),n=vt({}),o=C(()=>{var c,l;return(l=(c=e.userInfos)==null?void 0:c.clubMemberInfo)==null?void 0:l.memberRole}),a=C(()=>{var c,l;return(l=(c=e.userInfos)==null?void 0:c.clubMemberInfo)==null?void 0:l.isShowLoanModule}),r=O(),s=C(()=>{var c;return((c=t.clubSetting)==null?void 0:c.marginMode)!==_L.CreditLimit}),i=O();return{needReloadTabMap:n,role:o,clubId:r,isShowLoad:a,isMarginMode:s,currentUserPermission:i}},{persist:{paths:["clubId"]}}),kv={Lv1:[Yt.GeneralManager],Lv2:[Yt.GeneralManager,Yt.Admin,Yt.AssistantManager,Yt.DepartmentManager],onlyLv2:[Yt.Admin,Yt.AssistantManager,Yt.DepartmentManager],Lv3:[Yt.GeneralManager,Yt.Admin,Yt.AssistantManager,Yt.DepartmentManager]};var Fc=(e=>(e.CONNECTED="CONNECTED",e.ERROR="ERROR",e.CLOSED="CLOSED",e.MESSAGE="MESSAGE",e.WITHDRAW_ORDER_PROGRESS="withdraw/orderProgress",e.DEPOSIT_ORDER_PROGRESS="pay/orderProgress",e.REGIST
18ER_SUCCESS="registerSuccess",e.PAY_ORDER_SUCCESS="payOrderSuccess",e.PAY_ORDER_SUCCESS_NOTICE="payOrderSuccessNotice",e.WITHDRAW_ORDER_SUCCESS_NOTICE="withdrawOrderSuccessNotice",e.PAY_ORDER_SUCCESS_BACKEND="payOrderSuccessBackend",e.WITHDRAW_ORDER_SUCCESS="withdrawOrderSuccess",e.ACTIVE_DETAILS="activeDetails",e.DISTRIBUTED_REWARD="activeRewardPop",e.MULTIPLE_LOGIN="multipleLogin",e.NO_WALLET_ORDER="noWalletOrderMsg",e.NO_WALLET_BALANCE="noWalletBalanceMsg",e.NO_WALLET_BIND="noWalletBindMsg",e.GAME_GOLD_CHANGE="gameGoldChange",e.GAME_GOLD_UPDATE="gameGoldUpdate",e.ACTIVE_LOAN_CHANGE="activeLoanChange",e.JACKPOT_DATA="1005",e.JACKPOT_REWARD="jackpot",e.CHANGE_BANK_PASS_REGISTER="changeBankPassRegister",e.PAY_ORDER_STATUS_NOTICE="payOrderStatusNotice",e.WITHDRAW_ORDER_STATUS_NOTICE="withdrawOrderStatusNotice",e.KYC_FREEZE_HOURS="kycFreezeHours",e.CHANNEL_CHANGE_NOTICE="channelChangeNotice",e.PAYMENT_MODE_CHANGE="paymentModeChange",e.ACTIVE_SURPRISE_REWARD_POP="activeSurpriseRewardPop",e.SVIP_LEVEL_CHANGE="svipLevelChange",e.VIP_LEVEL_UP="vipLevelUp",e.SPORT="sport",e.FORCE_CHANGE_LOGIN_PASSWORD="forceChangePassword",e.PAY_ORDER_UNPAID_COUNT_NOTICE="payOrderUnpaidCountNotice",e.COUPON_AUTO_DISTRIBUTE="activeCouponPop",e.BLIND_BOX_FREE_COUNT="activeRewardPop",e.GUESS_INTEGRAL_SEND="guessIntegralSend",e))(Fc||{}),UU=(e=>(e[e.CONNECTING=0]="CONNECTING",e[e.OPEN=1]="OPEN",e[e.CLOSING=2]="CLOSING",e[e.CLOSED=3]="CLOSED",e))(UU||{}),wn=(e=>(e[e.Yesterday=1]="Yesterday",e[e.Today=2]="Today",e[e.ThisWeek=3]="ThisWeek",e[e.LastWeek=4]="LastWeek",e[e.ThisMonth=5]="ThisMonth",e[e.LastMonth=6]="LastMonth",e[e.All=7]="All",e[e.Custom=8]="Custom",e[e.Tomorrow=9]="Tomorrow",e))(wn||{});const Pb=["/lobby_asset/common/common/club/club_img_jlbgl_logo_bear1.png","/lobby_asset/common/common/club/club_img_jlbgl_logo_bear2.png","/lobby_asset/common/common/club/club_img_jlbgl_logo_bird1.png","/lobby_asset/common/common/club/club_img_jlbgl_logo_bird2.png","/lobby_asset/common/common/club/club_img_jlbgl_logo_cat1.png","/lobby_asset/common/common/club/club_img_jlbgl_logo_cat2.png","/lobby_asset/common/common/club/club_img_jlbgl_logo_dog1.png","/lobby_asset/common/common/club/club_img_jlbgl_logo_dragon1.png","/lobby_asset/common/common/club/club_img_jlbgl_logo_dragon2.png","/lobby_asset/common/common/club/club_img_jlbgl_logo_dragon3.png","/lobby_asset/common/common/club/club_img_jlbgl_logo_fox1.png","/lobby_asset/common/common/club/club_img_jlbgl_logo_leopard1.png","/lobby_asset/common/common/club/club_img_jlbgl_logo_lion1.png","/lobby_asset/common/common/club/club_img_jlbgl_logo_lion2.png","/lobby_asset/common/common/club/club_img_jlbgl_logo_monkey1.png","/lobby_asset/common/common/club/club_img_jlbgl_logo_tiger1.png","/lobby_asset/common/common/club/club_img_jlbgl_logo_wolf1.png","/lobby_asset/common/common/club/club_img_jlbgl_logo_wolf2.png","/lobby_asset/common/common/club/club_img_jlbgl_logo_wolf3.png"],GU="_page_168v4_91",FU="_content_168v4_140",WU="_link_168v4_177",VU="_form_168v4_185",$U="_popover_168v4_210",YU="_success_168v4_252",qU="_warning_168v4_255",zU="_failed_168v4_258",jU="_gray_168v4_261",KU="_line_168v4_326",QU="_button_168v4_236",XU="_icon_168v4_220",ZU={page:GU,"page-tab-container":"_page-tab-container_168v4_97",content:FU,"with-footer-bar":"_with-footer-bar_168v4_146","with-filter":"_with-filter_168v4_149","with-footer-bar-lg":"_with-footer-bar-lg_168v4_152","fixed-footer-bar":"_fixed-footer-bar_168v4_165",link:WU,form:VU,"multiple-form-item":"_multiple-form-item_168v4_196","multiple-account-container":"_multiple-account-container_168v4_200",popover:$U,"icon-arrow":"_icon-arrow_168v4_220","button-small":"_button-small_168v4_236","icon-with-bg":"_icon-with-bg_168v4_245",success:YU,warning:qU,failed:zU,gray:jU,"select-popover":"_select-popover_168v4_265","select-wrap":"_select-wrap_168v4_280","base-header":"_base-header_168v4_298","base-header-title":"_base-header-title_168v4_317",line:KU,button:QU,icon:XU},JU="_flex_19650_161",eG="_absolute_19650_389",tG={"grid-2":"_grid-2_19650_91","grid-3":"_grid-3_19650_111","grid-4":"_grid-4_19650_134",flex:JU,"flex-1":"_flex-1_19650_164","flex-center":"_flex-center_19650_167","flex-col":"_flex-col_19650_172","align-self-center":"_align-self-center_19650_176","align-self-start":"_align-self-start_19650_179","align-self-end":"_align-self-end_19650_182","items-start":"_items-start_19650_186","items-center":"_items-center_19650_189","items-end":"_items-end_19650_192","justify-center":"_justify-center_19650_196","justify-between":"_justify-between_19650_199","justify-end":"_justify-end_19650_202","shrink-0":"_shrink-0_19650_206","leading-1":"_leading-1_19650_210","leading-18":"_leading-18_19650_213","leading-16":"_leading-16_19650_216","font-20":"_font-20_19650_220","font-22":"_font-22_19650_223","font-24":"_font-24_19650_226","font-26":"_font-26_19650_229","font-bold":"_font-bold_19650_232","font-normal":"_font-normal_19650_235","ellipsis-1":"_ellipsis-1_19650_239","ellipsis-2":"_ellipsis-2_19650_244","text-primary":"_text-primary_19650_253","text-warning":"_text-warning_19650_256","text-success":"_text-success_19650_259","text-error":"_text-error_19650_262","text-neutral2":"_text-neutral2_19650_265","text-neutral1":"_text-neutral1_19650_268","text-lead":"_text-lead_19650_271","text-white":"_text-white_19650_274","text-right":"_text-right_19650_277","text-center":"_text-center_19650_280","text-indent-44":"_text-indent-44_19650_283","text-underline":"_text-underline_19650_286","space-x-20":"_space-x-20_19650_290","space-x-10":"_space-x-10_19650_293","space-x-40":"_space-x-40_19650_296","space-y-20":"_space-y-20_19650_299","space-y-10":"_space-y-10_19650_302","mt-10":"_mt-10_19650_306","mt-20":"_mt-2
180_19650_309","mt-30":"_mt-30_19650_312","mt-40":"_mt-40_19650_315","mx-10":"_mx-10_19650_319","mx-4":"_mx-4_19650_323","mb-0":"_mb-0_19650_328","mr-10":"_mr-10_19650_332","r-20":"_r-20_19650_336","ml-4":"_ml-4_19650_340","ml-10":"_ml-10_19650_343","ml-20":"_ml-20_19650_346","ml-30":"_ml-30_19650_349","p-20":"_p-20_19650_353","px-20":"_px-20_19650_356","pr-140":"_pr-140_19650_360","pl-40":"_pl-40_19650_364","w-full":"_w-full_19650_368","w-200":"_w-200_19650_371","w-max300":"_w-max300_19650_374","h-full":"_h-full_19650_378","bg-1":"_bg-1_19650_382","bg-2":"_bg-2_19650_385",absolute:eG,"overflow-hidden":"_overflow-hidden_19650_393","break-all":"_break-all_19650_397","break-anywhere":"_break-anywhere_19650_400","inline-block":"_inline-block_19650_405","inline-flex":"_inline-flex_19650_408","display-webkit-box":"_display-webkit-box_19650_412","resize-vertical":"_resize-vertical_19650_416","rounded-20":"_rounded-20_19650_420","vertical-middle":"_vertical-middle_19650_424"};Ye.extend(Sw);const ti=e=>{const t=n=>e.find(o=>o.key===n);return{list:e,get:t,getContent:n=>{var o,a;return(a=(o=t(n))==null?void 0:o.content)!=null?a:"-"}}},vce=e=>e.split(/ +/).map(t=>t.startsWith("base/")?ZU[t.replace("base/","")]:tG[t]).join(" "),Sce=e=>{const t=tR(),n=Ye().utcOffset(t*60);let o,a,r,s,i;switch(e){case wn.Today:o=n.startOf("day").unix(),a=n.endOf("day").unix();break;case wn.Yesterday:r=n.subtract(1,"day"),o=r.startOf("day").unix(),a=r.endOf("day").unix();break;case wn.ThisWeek:o=n.startOf("isoWeek").unix(),a=n.endOf("isoWeek").unix();break;case wn.LastWeek:s=n.subtract(1,"week"),o=s.startOf("isoWeek").unix(),a=s.endOf("isoWeek").unix();break;case wn.ThisMonth:o=n.startOf("month").unix(),a=n.endOf("month").unix();break;case wn.LastMonth:i=n.subtract(1,"month"),o=i.startOf("month").unix(),a=i.endOf("month").unix();break;default:return[]}return[o,a]},Cce=(e="",t=!0)=>{if(!e)return"";const n=t?"ymdhms":"ymd";return Ni(Number(e),n)},wce=async e=>{var a,r;const t=new FormData;t.append("uploadfile",e);const[n,o]=await Ee(XH(t));if(!n)return(r=(a=o==null?void 0:o.data.data)==null?void 0:a.fileLink)!=null?r:""},Ice=(e=0,t=!0)=>Oo(e,{showGroup:!0}).toFixed({decimalPlaces:2,tailZero:t,roundingMode:k_.ROUND_DOWN}).toString(),Ace=e=>{if(typeof e!="undefined")return sa(e,{toFixed:2}).toString()},Lce=e=>{if(!e)return e;let t="",n=0;for(let o=0;o<e.length;o++){const a=e.charAt(o);/[a-zA-Z0-9]/.test(a)?n+1<=12&&(t+=a,n+=1):a.match(/[\u4e00-\u9fa5]/)&&n+2<=12&&(t+=a,n+=2)}return t},Id=async(e,t=!1)=>{var s,i;const{t:n}=we(),o=await pa(()=>V(()=>Promise.resolve().then(()=>H8),void 0))().catch(()=>{}),a=(s=o==null?void 0:o.clubGameErrs)==null?void 0:s[e==null?void 0:e.code];if(t&&a==="gameMaintain")return;const r=n(a?`lobby.club.gameErrors.${a}`:"lobby.club.operateFail");_o({type:"error",message:((i=e==null?void 0:e.msg)==null?void 0:i.length)>0?e==null?void 0:e.msg:r})},Tce=(e,t)=>{var o;const n=typeof e;return n==="undefined"?t:n==="number"?e:e&&(o=Number(e))!=null?o:t},Rce=e=>sa(e!=null?e:0).isLessThan(0)?0:e,Oce=e=>typeof e=="undefined"||e===""?"-":e,Bv=e=>e&&(e.startsWith("#")?e:"#"+e),Pce=()=>{const{userInfos:e}=J(),{t}=we();if((e==null?void 0:e.user_status)===Fm.GuaranteedClaim){_o({type:"error",message:t("lobby.reward.base.stopReceive")});return}Oe().push({name:k.CLUB_APPLY})};function nG(e,t){const n=document.createElement(e);return Object.keys(t).forEach(o=>{n.setAttribute(o,t[o])}),n.setAttribute("data-club-meta",""),n}const bL=e=>{if(!e||(e.clubName&&(document.title=e.clubName),(e==null?void 0:e.logoType)===rg.ImageOnly))return;const t=e.clubLogoIndex==="-1"?e.clubLogo:ol(Pb[Number(e.clubLogoIndex)]);if(!t)return;[{rel:"shortcut icon",href:t},{sizes:"16x16",rel:"icon",href:t},{sizes:"32x32",rel:"icon",href:t},{rel:"apple-touch-icon",href:t},{sizes:"192x192",rel:"apple-touch-icon",href:t},{rel:"apple-touch-icon-precomposed",href:t}].forEach(o=>{const a=nG("link",o);document.head.appendChild(a)})};function oG(e,t,n){const{immediate:o=!0,delay:a=0,onError:r=mu,onSuccess:s=mu,resetOnExecute:i=!0,shallow:c=!0,useSyncCache:l=!1,throwError:u}=n!=null?n:{},d=c?Ao(t):O(t),m=Ao(!1),g=Ao(!1),f=Ao(void 0),_=b=>{d.value=b,g.value=!1,m.value=!0,s(b)};async function h(b=0,...v){i&&(d.value=t),f.value=void 0,m.value=!1,g.value=!0,b>0&&await u1(b),l&&v.push(_);const A=typeof e=="function"?e(...v):e;try{const L=await A;d.value=L,m.value=!0,s(L)}catch(L){if(f.value=L,r(L),u)throw L}finally{g.value=!1}return d.value}o&&h(a);const p={state:d,isReady:m,isLoading:g,error:f,execute:h};function y(){return new Promise((b,v)=>{gw(g).toBe(!1).then(()=>b(p)).catch(v)})}return{...p,then(b,v){return y().then(b,v)}}}const Mi=(e,t)=>{const n=Ao(),{state:o,isLoading:a,error:r,execute:s}=oG(e,void 0,{immediate:!1,...t,onSuccess:c=>{var u;const l=t!=null&&t.checkData?t==null?void 0:t.checkData(c==null?void 0:c.data.data):!0;(u=t==null?void 0:t.onSuccess)==null||u.call(t,c==null?void 0:c.data.data),n.value=l?c==null?void 0:c.data.data:void 0},onError:c=>{var l;(l=t==null?void 0:t.onError)==null||l.call(t,c)}}),i=C(()=>
18{if(!n.value)return a.value?"loading":r.value?"retry":"empty"});return{data:n,isLoading:a,error:r,state:o,placeholderType:i,execute:(...c)=>s(0,...c)}},Gi=Oa(()=>V(()=>import("./websocket.impl.794xlg8U.js"),[]),e=>e.websocket,"WebsocketService"),yL=ke("club-management",()=>{const e=J(),{data:t,placeholderType:n,execute:o,isLoading:a}=Mi(BU,{onSuccess:d=>{bL(d)}}),r=()=>{e.hasLogined&&dt.enable},s=O(!1),i=O(),{isLoading:c,error:l,execute:u}=Mi(HU);return fe(()=>e.hasLogined,r,{immediate:!0}),Gi.on(Fc.PAY_ORDER_SUCCESS_NOTICE,r),Gi.on(Fc.WITHDRAW_ORDER_SUCCESS_NOTICE,r),{infoData:t,infoPlaceholderType:n,isInfoLoading:a,getInfo:o,settingModalVisible:s,settingFocusField:i,isUpdateLoaidng:c,updateError:l,updateInfo:u}}),ac=e=>{const t=Ob();return C(()=>{const n=t.role;return e?!n||!kv[e]?!1:kv[e].includes(n):!0})},Dce=e=>{const t=yL();return C(()=>{var n;return t.infoData?!!((n=t.infoData)!=null&&n[e]):dt.isAllowLoan})},Mce=e=>{const t=J();return C(()=>{var n,o;return!!((o=(n=t.userInfos)==null?void 0:n.clubMemberInfo)!=null&&o[e])})},Do=ke("home",()=>{const{t:e}=we(),{userInfos:t}=St(J()),{currentTryCurrency:n}=St(ze()),o=Ob(),{clubId:a}=St(o);ac("Lv1");const r=O(!1);let s=null;const i=O(),c=ue(),l=C(()=>i.value===ut.Club),u=j=>{r.value=j},d=O(!0),m=j=>{d.value=j};qn(async()=>{u(!0);const[j,te]=await Ee(EU({clubId:a.value}));!j&&te&&(J().updateUserInfos({game_gold:Number(te==null?void 0:te.availableMargin)}),s=performance.now()),u(!1)},200);const g=async()=>{u(!0);const[j,te]=await Ee(NU());!j&&te&&(J().updateUserInfos({auditMode:te==null?void 0:te.auditMode,bonus:te==null?void 0:te.bonus,game_gold:te==null?void 0:te.game_gold,totalGold:te==null?void 0:te.totalGold,bonusRequireBet:te==null?void 0:te.bonusRequireBet}),s=performance.now()),u(!1)},f=async j=>{r.value||j!=null&&j.maxAge&&s!==null&&performance.now()-s<j.maxAge||g()},_=C(()=>{var j,te;return J().isTemporaryAccountMode?um.MUST_AUDIT:Number((j=t.value)==null?void 0:j.bonus)>0?um.DIRECT_WITHDRAWAL:(te=t.value)==null?void 0:te.auditMode}),h=C(()=>_.value===um.MUST_AUDIT),p=O(!1),y=j=>{p.value=j},b=O(!1),v=j=>{b.value=j},A=C(()=>{var j,te;return((te=(j=c.homeLayoutInfos)==null?void 0:j.commonConfig)==null?void 0:te.homeSidebarStyle)||0}),L=O(0),T=j=>{L.value=j},S=C(()=>{var ae,me;const{skinType:j,clubType:te}=nn(),K=[jl.style0,jl.style1],q=(me=(ae=c.homeLayoutInfos)==null?void 0:ae.topLayout)!=null?me:jl.style0;return j!==Be.NORMAL&&Be.THEME_57,K.includes(q)?q:jl.style0}),I=C(()=>{var K,q,ae;const j=[fo.HandLoadPage,fo.HandScroll],te=(ae=(q=(K=c.homeLayoutInfos)==null?void 0:K.commonConfig)==null?void 0:q.turnPageType)!=null?ae:fo.HandLoadPage;return j.includes(te)?te:fo.HandLoadPage}),R=C(()=>{var K,q,ae,me;const j=(q=(K=Ze().brandLogoInfos)==null?void 0:K.hallOfficialCommunitys)!=null?q:[];if(j.length===0)return[];const te=J().hasLogined?(ae=t.value)==null?void 0:ae.currency:(me=n.value)==null?void 0:me.currencyCode;return j.filter(de=>de.currency.includes(te))}),D=C(()=>{var j;return((j=c.homeLayoutInfos)==null?void 0:j.gameIcon)===Sr.VERTICAL_BOTTOM}),M=C(()=>{var j;return((j=c.homeLayoutInfos)==null?void 0:j.gameIcon)===Sr.SQUARE_BELOW}),B=O(),E=O(),Y=()=>({customerRate:"",customerColor:"",customerMode:0}),H=()=>({backgroundColor:"",designBgMode:void 0}),F=O(Y()),Q=O(H());let G=0;const N=()=>{E.value=void 0,B.value=void 0,F.value=Y(),Q.value=H()},$=async(j=!Nv())=>{const te=++G,K=Xf();N();const[q,ae]=await Ee(dU(j));if(!(te!==G||K!==Xf()||q||!ae)){const{customerRate:me="",customerColor:de="",customerMode:ne=0,maxGiftScore:U="",chargeGiftColor:W=""}=ae;E.value=U&&Number(U)>0?Oo(Number(U),{showGroup:!0,toFixedType:"currency"}).toFixed({decimalPlaces:2,tailZero:!1}):0,B.value=ae.charge_rate&&ae.charge_rate>0?Oo(ae.charge_rate,{showGroup:!0,toFixedType:"currency"}).toFixed({decimalPlaces:2,tailZero:!1}):0,F.value={customerRate:me,customerColor:Gh[de]||de,customerMode:ne},Q.value={backgroundColor:Gh[W]||W||"var(--skin__accent_2)",designBgMode:nU[W]}}};fe(Xf,()=>{$(!Nv())},{immediate:!0});const X=C(()=>{const j=Number(F.value.customerRate);return j?`${e("lobby.modal.pay.give2",{num:Oo(j,{toFixedType:"currency"}).toFixed({decimalPlaces:2,tailZero:!1}).toString()})}`:0});return{isFetchingPrize:r,setFetchingPrize:u,updatePrize:f,curAuditModeIsModeOne:h,asideCollapsed:b,setAsideCollapsed:v,asideMode:A,asideTotalBadge:L,setAsideTotalBadge:T,h5HomeLayoutStyle:S,gameListTurnPageType:I,getOfficialChannelList:R,isIconStyleVertical:D,isIconStyleSquare:M,payMaxCharge:B,payGiftScore:E,resetPayMaxCharge:N,fetchPayMaxCharge:$,hiddenBalance:p,setHiddenBalance:y,isClubTab:l,customerPayCharge:F,showTabbar:d,setTabbarVisible:m,customerPayBadge:X,payChargeBadge:Q}}),Nce=()=>St(Do());function _a(){return document.documentElement.getAttribute("data-is-agent-pc")==="1"}const aG=(e,t)=>
18{window.location.href=Ra(e,t)},Hv=e=>!e||typeof e!="object"||!("msg"in e)||typeof e.msg!="string"?"":e.msg.trim(),kce=(e,t)=>{var a;if(!e||typeof e!="object")return t;const n=e;return Hv(n.data)||Hv((a=n.response)==null?void 0:a.data)||(typeof n.message=="string"?n.message.trim():"")||t},rG=(e,t)=>{var n;return z.request(Pe(e,{url:"/api/member/fastLogin",method:"POST",data:{...Ut().isP2aParamsByChannel,...J().userLoginBasePayload,token:(n=ue().systemInfos)==null?void 0:n.token,networkType:ei()}}),Ks({oss:{enable:!1},token:{type:"staticOnly"}},t))},Bce=e=>z.request({url:"/api/member/wsBrowser/challenge",method:"POST",data:{}},e),Hce=(e,t)=>z.request({url:"/api/member/wsBrowser/verify",method:"POST",data:e},t),sG=async(e,t)=>z.request(Pe(e,{url:"/api/member/getFastLogin",method:"POST",data:{...Ut().isP2aParamsByChannel,...J().userLoginBasePayload}}),Ks({token:{useCacheToken:!0,type:"loginOnly"},crypto:{keyType:"k1"},oss:{enable:!1}},t)),iG=async e=>{const{domain:t,mtpush_id:n}=J().userLoginBasePayload;return z.request({url:"/api/member/v2/fastLogin",method:"POST",data:{networkType:ei(),...e,domain:t,mtpush_id:n}},{error:{action:"noMessage"},oss:{enable:!1},token:{type:"staticOnly"}})},cG=e=>z.request({url:"/api/member/logout",method:"POST",data:{useridx:String(e==null?void 0:e.username),token:e==null?void 0:e.token}},{oss:{enable:!1},requestControl:{allowDuringLogout:!0}}),lG=_a()?"/api/member/agent/login":"/api/member/login",uG=(e,t)=>z.request({...e,url:lG,method:"post",data:{...Ut().isP2aParamsByChannel,...J().userLoginBasePayload,networkType:ei(),version:LE,...e.data}},Ks({oss:{enable:!1},token:{type:"staticOnly"},error:{action:"normal",actionExcludes:[$e.GEETEST_ILLEGAL_REQUEST,$e.USER_RESTRICT_ERROR,$e.USER_CLUB_ERROR]},crypto:{contentType:"json"}},Ks(t,{error:{action:"normal",actionExcludes:[$e.GEE_TOKEN_ERROR]}}))),dG=(e,t)=>z.request({...e,url:"/api/member/thirdPartyLogin",method:"post",data:{...Ut().isP2aParamsByChannel,...J().userLoginBasePayload,networkType:ei(),...e.data}},Ks({oss:{enable:!1},token:{type:"staticOnly"},error:{action:"normal",actionExcludes:[$e.THIRD_PARTY_LOGIN_UNREGISTER_ERROR,$e.THIRD_PARTY_LOGIN_UNBIND_ERROR,$e.TGMA_LOGIN_NEED_REGISTER_OR_BIND_FIRST,$e.TG_MICRO_APPLICATION_NEED_CURRENCY_FIRST]}},Ks(t,{error:{action:"normal",actionExcludes:[$e.GEE_TOKEN_ERROR]}}))),mG=(e,t)=>z.request({...e,url:"/api/member/thirdPartyLogin",method:"post",data:{...Ut().isP2aParamsByChannel,...J().userLoginBasePayload,networkType:ei(),...e.data}},Pe({oss:{enable:!1},token:{type:"staticOnly"},error:{action:"noMessage"}},t)),gG=e=>z.request({...e,url:"/api/member/temporaryAccountLogin",method:"post",data:{...Ut().isP2aParamsByChannel,...J().userLoginBasePayload,networkType:ei(),...e.data}},{oss:{enable:!1},error:{action:"noMessage"},token:{type:"staticOnly"}}),xce=e=>z.request({url:"/api/member/v2/user/temporary/upgrade",method:"post",data:e},{oss:{enable:!1},crypto:{enable:!0}}),fG="/api/member/check/register",Ece=(e,t)=>{const{systemInfos:n}=ue();return z.request({...e,url:fG,method:"post",data:{...Ut().isP2aParamsByChannel,...J().userLoginBasePayload,token:n==null?void 0:n.token,version:eL,...e.data}},Pe({oss:{enable:!1},token:{type:"staticOnly"}},Pe(t,{error:{action:"normal",actionExcludes:[$e.GEE_TOKEN_ERROR]}})))},pG="/api/member/register",Uce=(e,t)=>{const{systemInfos:n}=ue();return z.request({...e,url:pG,method:"post",data:{...Ut().isP2aParamsByChannel,...J().userLoginBasePayload,token:n==null?void 0:n.token,version:eL,...e.data}},Ks({oss:{enable:!1},token:{type:"staticOnly"}},Ks(t,{error:{action:"normal",actionExcludes:[$e.GEE_TOKEN_ERROR]}})))},hG="/api/member/fastRegister",Gce=(e,t)=>z.request({...e,url:hG,method:"post",data:{...Ut().isP2aParamsByChannel,...J().userLoginBasePayload,networkType:ei(),...e.data}},Pe({oss:{enable:!1},token:{type:"staticOnly"}},Pe(t,{error:{action:"normal",actionExcludes:[$e.GEE_TOKEN_ERROR,$e.DISABLE_BIND_PHONE_REGISTER]}}))),Fce=(e,t)=>z.request({...e,url:"/api/member/thirdPartyRegister",method:"post",data:{...Ut().isP2aParamsByChannel,...J().userLoginBasePayload,networkType:ei(),...e.data}},Pe({oss:{enable:!1},token:{type:"staticOnly"}},Pe(t,{error:{action:"normal",actionExcludes:[$e.GEE_TOKEN_ERROR]}}))),Wce=e=>z.request({...e,url:"/api/member/user/security/thirdUser/bind",method:"post",data:{os_type:fl(),...e.data}},{oss:{enable:!1}}),Vce=()=>z.request({url:"/api/member/auth/telegram/login",method:"post"},{oss:{enable:!1},token:{type:"staticOnly"}}),$ce=()=>z.request({url:"/api/lobby/userAgreement/index/getInfo"},{oss:{enable:!0},token:{type:"staticOnly"},crypto:{enable:!1},omitKey:["platformType","currency"]}),Yce=e=>z.request({...e,url:"/api/member/check/cpf",method:"post"},{error:{action:"noMessage"},oss:{enable:!1},token:{type:"staticOnly"},crypto:{enable:!0}}),qce=e=>z.request({...e,url:"/api/member/user/check/cpf",method:"post"},{error:{action:"noMessage"},oss:{enable:!1},crypto:{enable:!0}}),zce=e=>z.request({...e,url:"/api/member/user/security/bindCpf",method:"post"}),jce=e=>z.request({url:"/api/member/user/forceChangePassword",method:"post",data:{newpass:e}},{oss:{enable:!1}}),_G=(e,t)=>z.request({url:"/api/agent/promote/getIpBindInfo",method:"post",data:e,timeout:t?5e3:void 0},{waiting:{ensureCurrency:!1},error:{action:"noMessage"},oss:{enable:!1},token:{type:"staticOnly"},crypto:{enable:!1},useAppEnv:!!re.package.isLite||!!re.isWebClip,maxRetryCount:t?1:void 0}),Kce=async e=>{var n;const t=await z.request({url:"/api/member/user/registerPopupDlgInfo",method:"post",data:e},{error:{action:"noMessage"},oss:{enable:!1},cache:{useCache:!1}});return(n=t==null?void 0:t.data)==null?void 0:n.data},Qce=async()=>{var t;const e=await z.request({url:"/api/member/user/registerRetentionDlgInfo",method:"post"},{error:{action:"noMessage"},oss:{enable:!1},cache:{useCache:!1}});return(t=e==null?void 0:e.data)==null?void 0:t.data},Xce=async()=>{var t;const e=await z.request({url:"/api/member/user/rechargePopupDlgInfo",method:"post"},{error:{action:"noMessage"},oss:{enable:!1},cache:{useCache:!1}});return(t=e==null?void 0:e.data)==null?void 0:t.data},Zce=async e=>z.request({url:"/api/member/listAccount",method:"POST",data:{sessionKey:e}},{error:{action:"noMessage"},oss:{enable:!1},token:{type:"loginOnly"}});function sg(){const e=J();return{getIPBindInfo:async n=>{const{id:o="",cid:a="",currency:r=""}
18=en().urlParams;if(e.ipBindInfo)return e.ipBindInfo;const[,s]=await Ee(_G({agentName:o,channelId:Number(a||0),currency:r},n)),i=s==null?void 0:s.data.data;return i&&!n&&e.setIPBindInfo(i),n?i:e.ipBindInfo}}}var vL=(e=>(e[e.LOGOUT=0]="LOGOUT",e[e.LOGIN_ERROR=1]="LOGIN_ERROR",e[e.MULTIPLE_LOGIN=2]="MULTIPLE_LOGIN",e[e.BOT_BEHAVIOR_ERROR=3]="BOT_BEHAVIOR_ERROR",e[e.OTHER_CLIENT_GAME_LOGIN=4]="OTHER_CLIENT_GAME_LOGIN",e[e.GEETEST_ILLEGAL_REQUEST=5]="GEETEST_ILLEGAL_REQUEST",e[e.TOKEN_EXPIRED=6]="TOKEN_EXPIRED",e[e.WEBAUTHN_BIND_SUCCESS=7]="WEBAUTHN_BIND_SUCCESS",e[e.WEBAUTHN_BIND_FAIL=8]="WEBAUTHN_BIND_FAIL",e[e.WEBAUTHN_UNREGISTER_FAIL=9]="WEBAUTHN_UNREGISTER_FAIL",e[e.WEBAUTHN_UNBIND_FAIL=10]="WEBAUTHN_UNBIND_FAIL",e[e.CATCH_GEOLOCATION=11]="CATCH_GEOLOCATION",e[e.TEMPORARY_ACCOUNT=12]="TEMPORARY_ACCOUNT",e[e.SITE_DOMAIN_NOT_MATCH=13]="SITE_DOMAIN_NOT_MATCH",e[e.LOBBY_VERSION_UPDATE=14]="LOBBY_VERSION_UPDATE",e[e.LOBBY_SWITCH_DOMAIN=15]="LOBBY_SWITCH_DOMAIN",e[e.ROUTE_ERROR=16]="ROUTE_ERROR",e[e.KYC_DONE=17]="KYC_DONE",e[e.KYC_ERROR_MESSAGE=18]="KYC_ERROR_MESSAGE",e[e.KYC_NEED=19]="KYC_NEED",e[e.FORCE_UPDATE=20]="FORCE_UPDATE",e[e.RECHARGE_ERROR=21]="RECHARGE_ERROR",e[e.SHOW_NO_BALANCE=22]="SHOW_NO_BALANCE",e[e.CONTINUE_PAYMENT=23]="CONTINUE_PAYMENT",e[e.RISK_VALIDATION=24]="RISK_VALIDATION",e[e.NO_RECHARGE_SUCCESS=25]="NO_RECHARGE_SUCCESS",e[e.REDIRECT_DIALOG=26]="REDIRECT_DIALOG",e[e.BIND_WITHDRAW_ACCOUNT=27]="BIND_WITHDRAW_ACCOUNT",e[e.RECHARGE_FAIL=28]="RECHARGE_FAIL",e[e.CONFIRM_CANCEL_ORDER=29]="CONFIRM_CANCEL_ORDER",e[e.SHOW_GIVE_DIALOG=30]="SHOW_GIVE_DIALOG",e[e.RECHARGE_WALLET_BIND_CONFIRM=31]="RECHARGE_WALLET_BIND_CONFIRM",e[e.LOBBY_SWITCH_CURRENT_DOMAIN_ERROR=32]="LOBBY_SWITCH_CURRENT_DOMAIN_ERROR",e[e.COMPLIANCE_ANTI_ADDICTION=33]="COMPLIANCE_ANTI_ADDICTION",e[e.RESPONSE_ERROR=34]="RESPONSE_ERROR",e[e.COMPLIANCE_DEVICE_RISK=35]="COMPLIANCE_DEVICE_RISK",e[e.QIANNENG_AUTH_DIALOG=36]="QIA
18NNENG_AUTH_DIALOG",e[e.KYC_LEAVE_CONFIRM=37]="KYC_LEAVE_CONFIRM",e[e.CLAIM_THIRD_PARTY_UNBOUND=38]="CLAIM_THIRD_PARTY_UNBOUND",e))(vL||{});const Ca=Oa(()=>V(()=>import("./stats-points.impl.CT2t72rG.js"),[]),e=>e.StatsPoints,"StatsPoints"),Jce=rt(()=>V(()=>import("./CreateBotBehaviorErrorDialog.impl.DsZQJ732.js"),[]),e=>e.createBotBehaviorErrorDialog,"CreateBotBehaviorErrorDialog"),bG=rt(()=>V(()=>import("./CreateCatchGeolocationErrorDialog.impl.CjHYVzLU.js"),__vite__mapDeps([17])),e=>e.createCatchGeolocationErrorDialog,"CreateCatchGeolocationErrorDialog"),yG=rt(()=>V(()=>import("./CreateIllegalRequestInterceptionDialog.impl.CtEFp3-t.js"),[]),e=>e.createIllegalRequestInterceptionDialog,"CreateIllegalRequestInterceptionDialog"),Zf=rt(()=>V(()=>import("./CreateTokenExpiredDialog.impl.pLviOetq.js"),__vite__mapDeps([17])),e=>e.createTokenExpiredDialog,"CreateTokenExpiredDialog"),vG=rt(()=>V(()=>import("./CreateLobbyVersionUpdate.impl.DQtCfaOS.js"),[]),e=>e.createLobbyVersionUpdate,"CreateLobbyVersionUpdate");rt(()=>V(()=>import("./CreateLoginErrorDialog.impl.TrZfz-Rj.js"),__vite__mapDeps([17])),e=>e.createLoginErrorDialog,"CreateLoginErrorDialog");const ele=rt(()=>V(()=>import("./CreateLogoutDialog.impl._KsU6BoQ.js"),__vite__mapDeps([17])),e=>e.createLogoutDialog,"CreateLogoutDialog"),tle=rt(()=>V(()=>import("./CreateMultipleLoginDialog.impl.nSrCDuex.js"),[]),e=>e.createMultipleLoginDialog,"CreateMultipleLoginDialog"),SG=rt(()=>V(()=>import("./CreateOtherGameLoginDialog.impl.R2fNljK7.js"),[]),e=>e.createOtherGameLoginDialog,"CreateOtherGameLoginDialog"),nle=rt(()=>V(()=>import("./CreateRouteErrorDialog.impl.DqNWe-mt.js"),[]),e=>e.createRouteErrorDialog,"CreateRouteErrorDialog"),CG=rt(()=>V(()=>import("./CreateSiteDomainNotMatchDialog.impl.Ch9ag5F8.js"),[]),e=>e.createSiteDomainNotMatchDialog,"CreateSiteDomainNotMatchDialog"),ole=rt(()=>V(()=>import("./CreateSwitchDomain.impl.OoRx1JGT.js"),[]),e=>e.createSwitchDomain,"CreateSwitchDomain"),wG=rt(()=>V(()=>import("./CreateResponseDialog.impl.DrU2IIxR.js"),[]),e=>e.createResponseDialog,"CreateResponseDialog"),ale=rt(()=>V(()=>import("./CreateCurrentDomainError.impl.DZ1Pq6lG.js"),[]),e=>e.createCurrentDomainError,"CreateCurrentDomainError"),rle=rt(()=>V(()=>import("./CreateAntiAddictionDialog.impl.DzYt5cT8.js"),__vite__mapDeps([17])),e=>e.createAntiAddictionDialog,"CreateAntiAddictionDialog"),sle=rt(()=>V(()=>import("./CreateDeviceRiskRootDialog.impl.BI6LUL3A.js"),__vite__mapDeps([17])),e=>e.CreateDeviceRiskRootDialog,"CreateDeviceRiskRootDialog"),IG=Oa(()=>V(()=>import("./CreateKYCDialog.impl.mdacEbgd.js"),__vite__mapDeps([0,17])),e=>e,"CreateKYCDialog"),{createKYCDoneByIndexDialog:ile,createKYCDoneDialog:cle,createKYCErrorMessageDialog:lle,createKYCNeedBindPhoneDialog:ule,createKYCNeedMobileDialog:dle,createNeedKYCDialog:mle,createGameEntryKycDialog:gle,createKYCLeaveConfirmDialog:fle}=IG,xv=Oa(()=>V(()=>
18import("./CreateWebAuthnDialog.impl.CWAYoN1n.js"),__vite__mapDeps([17])),e=>e.createWebAuthnDialog,"CreateWebAuthnDialog"),{search:AG=""}=Yi(window.location.href),Er=Ru(AG),pi=Oa(()=>V(()=>import("./risk-device.impl.CjUvQ4Pj.js"),[]),e=>e.riskDevice,"RiskDevice");var ye=(e=>(e[e.PHONE=0]="PHONE",e[e.CPF=1]="CPF",e[e.EMAIL=2]="EMAIL",e[e.GA=3]="GA",e[e.LOGINPASS=4]="LOGINPASS",e[e.WITHDRAWPASS=5]="WITHDRAWPASS",e[e.QUESTION=6]="QUESTION",e[e.WEBAUTHN=7]="WEBAUTHN",e[e.THIRDPARTY=8]="THIRDPARTY",e[e.USER=9]="USER",e[e.WITHDRAWACCOUNT=10]="WITHDRAWACCOUNT",e[e.REALNAME=11]="REALNAME",e))(ye||{}),LG=(e=>(e.Bind="bind",e.Edit="edit",e.Verify="verify",e))(LG||{}),Eo=(e=>(e.Seurity="1",e.Withdraw="2",e.LargeBalances="3",e.ChannelRegister="4",e.Discount="5",e))(Eo||{});const Fh={get enable(){return location.search.includes("openWinBridgeTunnel")},get username(){var e;return(e=J().userInfos)==null?void 0:e.platfromid},get phoneNumber(){return J().loginRegisterPhoneNumber},init(){this.enable&&(window.getPhoneNumber=()=>JSON.stringify({username:this.username,phone:this.phoneNumber}))},setPhoneNumber(e){setTimeout(()=>{if(this.enable&&this.phoneNumber&&window.jsBridge&&bw(window.winBridge.setPhoneNumber))try{window.winBridge.setPhoneNumber(JSON.stringify({username:this.username,phone:this.phoneNumber,type:e===Kt.Register?1:2}))}catch(t){}})}},SL=rt(()=>V(()=>Promise.resolve().then(()=>Lq),void 0),e=>e.useSecurityForceBinding,"useSecurityForceBinding"),Cm=async(...e)=>{var t;return(t=await SL())==null?void 0:t.openSecurityForceBinding(...e)},Db=async(...e)=>{var t;return(t=await SL())==null?void 0:t.openSecurityDialogBinding(...e)};function eu(e){return gu(ye,e)}function Nc(e,t){return eu(e)&&e===t}function TG(){return re.package.isApp||re.package.isWebClip}function RG(){var e;return!!((e=re==null?void 0:re.wgPackageConfig)!=null&&e.isBioSupported)}function OG(){var r,s;const e=ft();if(e.browser.type==="inapp")return!0;const t=(r=e.os.name)==null?void 0:r.toLocaleLowerCase();if(t==="ios"&&(window.TelegramWebviewProxy||window.TelegramWebviewProxyProto))return!0;const n=e.browser.name;return!n||!t?!0:((s={ios:["Quark","Facebook","Instagram"],android:["Quark","Facebook","Instagram","Mobile Firefox"],windows:[]}[t])!=null?s:[]).includes(n)}function PG(){const e=ft(),t=e.browser.name,n=e.browser.version;if(!t||!n)return!1;const a={Chrome:98,"Mobile Chrome":98,Edge:98,Firefox:120,"Mobile Firefox":120,Safari:15.5,"Mobile Safari":15.5}[t];return a?parseFloat(n)<=a:!1}function DG(){return![HI(window.location.hostname),OG(),PG(),!window.PublicKeyCredential,!navigator.credentials].includes(!0)}function Wh(){return TG()?RG():DG()}function Vh(){var n;const t=((n=ue().systemInfos)==null?void 0:n.userWebAuthnSwitch)===eo.OPEN;return Wh()&&t}function jg(){const e=J();return C(()=>{var t,n;return{...(t=e.userInfos)!=null?t:{}
18,currencySign:MR(((n=e.userInfos)==null?void 0:n.currency)||"CNY")}})}const MG=rt(()=>V(()=>import("./0_EntryLoginRegisterChunk.DMUz1wnE.js").then(e=>e.gP),__vite__mapDeps([0])),e=>e.useWithdrawStore,"useWithdrawStore");function pl(){const e=J(),t=ue(),n=sf(),{clubInfo:o,filterClubForceBindingMember:a}=Mb(),r=jg(),s=C(()=>{var v;return(v=t.systemInfos)!=null?v:{}}),i=v=>{var T,S,I,R;const A=v!=null?v:r.value;return{[ye.WITHDRAWPASS]:!!((T=A==null?void 0:A.permissionOpt)!=null&&T.hasWithdrawPasswd),[ye.LOGINPASS]:kf((S=A==null?void 0:A.permissionOpt)==null?void 0:S.hasPassword),[ye.PHONE]:kf(A==null?void 0:A.mobile_phone),[ye.EMAIL]:kf(A==null?void 0:A.email),[ye.GA]:(A==null?void 0:A.is_open_google_auth)===tI.OPEN,[ye.QUESTION]:!!((I=A==null?void 0:A.permissionOpt)!=null&&I.hasSecurityQuestion),[ye.WEBAUTHN]:(A==null?void 0:A.webauthnSwitch)===eo.OPEN,[ye.WITHDRAWACCOUNT]:!!((R=A==null?void 0:A.permissionOpt)!=null&&R.hasWithdrawAccount),[ye.THIRDPARTY]:!!(A!=null&&A.thirdType)}},c=v=>{const A=[ye.WEBAUTHN,ye.LOGINPASS,ye.PHONE,ye.EMAIL,ye.GA,ye.WITHDRAWPASS,ye.QUESTION],L=[];if(!(v!=null&&v.length))return L;v=[...v];const T=yw(v[0])?S=>v.findIndex(I=>Number(I.type)===Number(S)):S=>v.indexOf(S);return A.forEach(S=>{const I=T(S);I!==-1&&L.push(v.splice(I,1)[0])}),L.concat(v)},l=v=>{var D,M,B,E,Y,H,F;const A=v!=null?v:r.value,L=i(A);let T=[],S=[],I=[];const R={[ye.WITHDRAWPASS]:(D=A==null?void 0:A.mustBindWithdrawPass)!=null?D:It.Off,[ye.PHONE]:(M=A==null?void 0:A.must_bind_phone)!=null?M:It.Off,[ye.EMAIL]:(B=A==null?void 0:A.must_bind_email)!=null?B:It.Off,[ye.GA]:(E=A==null?void 0:A.must_bind_google_auth)!=null?E:It.Off,[ye.QUESTION]:(Y=A==null?void 0:A.mustBindSecurityQuestion)!=null?Y:It.Off,[ye.WEBAUTHN]:(H=A==null?void 0:A.must_bind_webauthn)!=null?H:It.Off,[ye.WITHDRAWACCOUNT]:(F=A==null?void 0:A.mustBindWithdrawAccount)!=null?F:It.Off};return D1(R).forEach(([Q,G])=>{const N=+Q;L[N]||(G>=It.Required&&S.push(N),G===It.Open&&I.push(N),G>=It.Open&&T.push(N))}),o.value.isClubMember&&(T=a(T),S=a(S),I=a(I)),{allList:c(T),mastList:c(S),unMastList:c(I)}},u=async()=>{var R,D,M,B,E;const v=await MG(),A=(R=v.verifyBindItem)==null?void 0:R.phone,L=(D=v.verifyBindItem)==null?void 0:D.email,T=(M=v.verifyBindItem)==null?void 0:M.googleAuth,S=(B=v.verifyBindItem)==null?void 0:B.secQuestion,I=((E=v.verifyBindItem)==null?void 0:E.webauthn)&&Wh();return l(Pe({},r.value,{must_bind_phone:A?It.Required:It.Off,must_bind_email:L?It.Required:It.Off,must_bind_google_auth:T?It.Required:It.Off,must_bind_webauthn:I?It.Required:It.Off,mustBindSecurityQuestion:S?It.Required:It.Off,mustBindWithdrawPass:It.Off,mustBindWithdrawAccount:It.Off}))},d=()=>{var T,S,I;const v=(T=s.value.largeAmountMustBind)==null?void 0:T.phone,A=(S=s.value.largeAmountMustBind)==null?void 0:S.email,L=(I=s.value.largeAmountMustBind)==null?void 0:I.googleAuth;return l(Pe({},r.value,{must_bind_phone:v?It.Required:It.Off,must_bind_email:A?It.Required:It.Off,must_bind_google_auth:L?It.Required:It.Off,mustBindWithdrawPass:It.Off,mustBindSecurityQuestion:It.Off,mustBindWithdrawAccount:It.Off}))},m=()=>{var M,B,E,Y;const{enableUsingSms:v,enableUsingEmail:A,enableOTPRestrict:L}=qg(),T=(M=r.value.must_bind_phone)!=null?M:It.Off,S=(B=r.value.must_bind_email)!=null?B:It.Off,R=L.value&&v.value&&((E=e.ipBindInfo)==null?void 0:E.bindPhoneStatus),D=((Y=e.ipBindInfo)==null?void 0:Y.bindEmailStatus)&&A.value;return l(Pe({},r.value,{must_bind_phone:R?It.Required:T,must_bind_email:D?It.Required:S}))},g=v=>{const A=[];return v!=null&&v.phone&&A.push(ye.PHONE),v!=null&&v.email&&A.push(ye.EMAIL),v!=null&&v.googleAuth&&A.push(ye.GA),v!=null&&v.securityQuestion&&A.push(ye.QUESTION),v!=null&&v.withdrawPasswd&&A.push(ye.WITHDRAWPASS),A},f=v=>{const{PHONE_CODE:A,PHONE_FILL:L,EMAIL_CODE:T,EMAIL_FILL:S,REAL_NAME:I}=nI;switch(v==null?void 0:v.type){case A:case L:return[ye.PHONE];case T:case S:return[ye.EMAIL];case I:return[ye.REALNAME];default:return[]}},_=v=>{var D;const A=v!=null?v:r.value,L=i(A),T=(D=s.value.securityVerify)!=null?D:{},{OPEN:S}=eo,I=[];let R=[];if((T==null?void 0:T.securityPhone)===S){const M=n.codeIncludes(A.mobile_phone);I.push(ye.PHONE),L[ye.PHONE]&&M&&R.push(ye.PHONE)}return(T==null?void 0:T.securityEmail)===S&&(I.push(ye.EMAIL),L[ye.EMAIL]&&R.push(ye.EMAIL)),(T==null?void 0:T.securityGoogle)===S&&(I.push(ye.GA),L[ye.GA]&&R.push(ye.GA)),(T==null?void 0:T.securityPassQuestion)===S&&(I.push(ye.QUESTION),L[ye.QUESTION]&&R.push(ye.QUESTION)),(T==null?void 0:T.securityLoginPass)===S&&(I.push(ye.LOGINPASS),R.push(ye.LOGINPASS)),(T==null?void 0:T.securityWebauthn)===S&&Vh()&&(I.push(ye.WEBAUTHN),L[ye.WEBAUTHN]&&R.push(ye.WEBAUTHN)),R.length===0&&I.length>0&&R.push(ye.LOGINPASS),r.value.account_type===qt.Temporary&&(R=R.filter(M=>!Nc(M,ye.LOGINPASS))),{verifys:R,openItems:I}};return{validateConfigStatus:i,securityForceBindConfig:l,withdrawForceBindConfig:u,largeBalancesForceBindConfig:d,channelRegisterForceBindConfig:m,loginVerifyConfig:g,loginFirstVerifyConfig:f,securityConfig:_,forgetPasswordConfig:(v,A)=>{var S,I,R,D,M,B,E;const L=[],T=[];return n.codeIncludes((S=A==null?void 0:A.a)==null?void 0:S.phone)&&L.push(ye.PHONE),(I=A==null?void 0:A.a)!=null&&I.email&&L.push(ye.EMAIL),(R=A==null?void 0:A.a)!=null&&R.googleAuth&&L.push(ye.GA),v&&((D=A==null?void 0:A.a)!=null&&D.question)&&L.push(ye.QUESTION),Wh()&&((M=A==null?void 0:A.a)!=null&&M.webauthn)&&L.push(ye.WEBAUTHN),(B=A==null?void 0:A.b)!=null&&B.withdrawPassword&&T.push(ye.WITHDRAWPASS),(E=A==null?void 0:A.b)!=null&&E.question&&T.push(ye.QUESTION),{verifyList:L,editorList:T}},firstSettingWithdrawPassword:v=>{var L;const A=i();if(Nc(v,ye.WITHDRAWPASS)&&!A[ye.WITHDRAWPASS])return((L=s.value.securityVerify)==null?void 0:L.firstWithdrawPasswdSet)===eo.OPEN?r.value.isTrustedDevice?[]:[ye.LOGINPASS]:[]},trustedDeviceConfig:(v,A)=>{var I,R;if(!r.value.isTrustedDevice||A&&!A.find(D=>D===ye.LOGINPASS)||!_().verifys.find(D=>D===ye.LOGINPASS)&&((R=(I=s.value)==null?void 0:I.securityVerify)==null?void 0:R.securityPass)!==eo.OPEN)return nt.info("trustedDevice",!1),!1;const L=s.value.deviceIdSecurityVerify,S={[ye.PHONE]:L==null?void 0:L.deviceIdPhone,[ye.EMAIL]:L==null?void 0:L.deviceIdEmail,[ye.GA]:L==null?void 0:L.deviceIdGoogleAuth,[ye.LOGINPASS]:L==null?void 0:L.deviceIdLoginPasswd,[ye.WITHDRAWPASS]:L==null?void 0:L.deviceIdWithdrawPasswd,[ye.QUESTION]:L==null?void 0:L.deviceIdPassQuestion,[ye.THIRDPARTY]:L==null?void 0:L.deviceIdThirdPartyLogin}[v]===jt.OPEN;return nt.info("trustedDevice",S),S},complianceCheckConfig:()=>{var S,I;const v=i(),A=R=>{var F;const{PASSWORD:D,GA:M,WEBAUTHN:B}=Qw,E=[],Y=[],H=(F=R==null?void 0:R.split(","))!=null?F:[];return Vh()&&H.includes(B)&&(Y.push(ye.WEBAUTHN),v[ye.WEBAUTHN]&&E.push(ye.WEBAUTHN)),H.includes(D)&&(Y.push(ye.LOGINPASS),v[ye.LOGINPASS]&&E.push(ye.LOGINPASS)),H.includes(M)&&(Y.push(ye.GA),v[ye.GA]&&E.push(ye.GA)),E.length===0&&Y.length>0&&E.push(ye.LOGINPASS),E},L=A((S=s.value)==null?void 0:S.legal_config_active_status),T=A((I=s.value)==null?void 0:I.legal_config_login_status);return{activityVerifies:L,loginVerifies:T}},verifiesOrder:c}}function Mb(){const e=ue(),t=jg(),n=()=>{var i,c,l;return!(((i=t.value.clubMemberInfo)==null?void 0:i.memberRole)!==Yt.GeneralManager||((l=(c=e.systemInfos)==null?void 0:c.clubSecurityVerify)==null?void 0:l.clubSecurityGoogle)!==eo.OPEN||pl().validateConfigStatus()[ye.GA])};return{clubInfo:C(()=>{var s,i;const r=(i=(s=t.value)==null?void 0:s.clubMemberInfo)==null?void 0:i.memberRole;return Yt.GeneralManager,{isClubManager:dt.enable,isClubMember:dt.enable}}),openClubGAForceBinding:n,filterClubForceBindingMember:r=>r.filter(s=>![ye.WITHDRAWPASS,ye.WITHDRAWACCOUNT].includes(s))}}const CL=rt(()=>V(()=>import("./index.B5r1qISH.js"),__vite__mapDeps([0])),e=>e.useComplianceCheck,"useComplianceCheck"),NG=rt(()=>V(()=>
18import("./store.Dsb0fDSp.js"),__vite__mapDeps([0])),e=>e.useIntelligentRechargeStore,"useIntelligentRechargeStore");var Es=(e=>(e[e.Independent=1]="Independent",e[e.onPlatform=2]="onPlatform",e[e.Carousel=3]="Carousel",e))(Es||{}),Ua=(e=>(e[e.Marquee=10]="Marquee",e[e.Banner=20]="Banner",e[e.MiddleMenu=30]="MiddleMenu",e[e.Popular=40]="Popular",e[e.PlatformTop=50]="PlatformTop",e[e.Footer=60]="Footer",e[e.PlatformCard=70]="PlatformCard",e))(Ua||{}),or=(e=>(e[e.None=-1]="None",e[e.Platform=10]="Platform",e[e.Event=20]="Event",e[e.Task=30]="Task",e[e.CLUB_APPLY=60]="CLUB_APPLY",e[e.OtherUrl=40]="OtherUrl",e[e.OtherUrlWithUserId=50]="OtherUrlWithUserId",e))(or||{}),$h=(e=>(e[e.IFrame=0]="IFrame",e[e.Window=1]="Window",e))($h||{}),Yh=(e=>(e[e.All=0]="All",e[e.Casino=1]="Casino",e[e.Club=2]="Club",e))(Yh||{}),bu=(e=>(e[e.Virtual=0]="Virtual",e[e.WGReal=1]="WGReal",e))(bu||{}),wL=(e=>(e.Normal="0",e.Dragon="1",e))(wL||{}),kG=(e=>(e[e.None=0]="None",e[e.Grand=1]="Grand",e[e.Major=2]="Major",e[e.Mid=3]="Mid",e[e.Small=4]="Small",e))(kG||{});let Ad=null;const Ev=()=>(Ad||(Ad=pa(()=>V(()=>Promise.resolve().then(()=>Nne),void 0))().then(e=>e).catch(e=>{throw Ad=null,e})),Ad);var tu=(e=>(e[e.NewcomerBenefits=1]="NewcomerBenefits",e[e.DailyTasks=2]="DailyTasks",e[e.WeeklyTasks=3]="WeeklyTasks",e[e.MysteriousTasks=4]="MysteriousTasks",e[e.TaskActivity=5]="TaskActivity",e))(tu||{}),os=(e=>(e[e.Normal=0]="Normal",e[e.Mini=1]="Mini",e))(os||{}),BG=(e=>(e[e.Enable=0]="Enable",e[e.Disable=1]="Disable",e))(BG||{}),HG=(e=>(e[e.canNotReceive=0]="canNotReceive",e[e.canReceive=1]="canReceive",e[e.alreadyReceived=2]="alreadyReceived",e))(HG||{}),xG=(e=>(e[e.once=0]="once",e[e.multiple=1]="multiple",e))(xG||{}),IL=(e=>(e[e.newBenefits=1]="newBenefits",e[e.taskDaily=2]="taskDaily",e[e.taskWeekly=3]="taskWeekly",e[e.taskMystery=4]="taskMystery",e))(IL||{});const ple=[1,2,3,4];var EG=(e=>(e[e.newBenefits=1]="newBenefits",e[e.taskDaily=2]="taskDaily",e[e.taskWeekly=3]="taskWeekly",e[e.taskMystery=4]="taskMystery",e[e.taskActivity=5]="taskActivity",e))(EG||{}),kc=(e=>(e[e.newBenefits=101]="newBenefits",e[e.taskDaily=102]="taskDaily",e[e.taskWeekly=103]="taskWeekly",e[e.taskMystery=104]="taskMystery",e))(kc||{});const UG={1:101,2:102,3:103,4:104},hle={101:1,102:2,103:3,104:4};var GG=(e=>(e[e.Goto=0]="Goto",e[e.PendingReceive=1]="PendingReceive",e[e.Finish=2]="Finish",e[e.Expired=3]="Expired",e[e.HasSend=4]="HasSend",e[e.ServerCancel=5]="ServerCancel",e[e.PendingApprove=6]="PendingApprove",e[e.PendingApply=7]="PendingApply",e[e.ServerReject=8]="ServerReject",e[e.UnOpen=99]="UnOpen",e))(GG||{}),FG=(e=>(e[e.Nothing=0]="Nothing",e[e.Recharge=1]="Recharge",e[e.BettingTotal=2]="BettingTotal",e[e.BettingOne=3]="BettingOne",e[e.ProfitTotal=4]="ProfitTotal",e[e.LossTotal=5]="LossTotal",e[e.ProfitOne=6]="ProfitOne",e[e.LossOne=7]="LossOne",e[e.RechargeOne=8]="RechargeOne",e[e.InviteWithRegister=9]="InviteWithRegister",e[e.InviteWithFirstCharge=10]="InviteWithFirstCharge",e))(FG||{}),WG=(e=>(e[e.Immediately=0]="Immediately",e[e.Tomorrow=1]="Tomorrow",e[e.WeekOne=2]="WeekOne",e[e.MonthOne=3]="MonthOne",e[e.WeekWhole=4]="WeekWhole",e[e.MonthWhole=5]="MonthWhole",e[e.EveryDay=6]="EveryDay",e))(WG||{}),VG=(e=>(e[e.Include=0]="Include",e[e.Exclude=1]="Exclude",e))(VG||{});const _le={1:1,6:1,7:1,0:2,99:3,2:3,4:3,3:3,5:3,8:3};var Kg=(e=>(e[e.AllUserLevel=0]="AllUserLevel",e[e.DefaultLevel=1]="DefaultLevel",e))(Kg||{}),$G=(e=>(e.MAIL="mail",e.DOMAIN="domain",e))($G||{}),YG=(e=>(e[e.MAIL=32]="MAIL",e[e.DOMAIN=31]="DOMAIN",e))(YG||{}),qG=(e=>(e[e.registerAcc=0]="registerAcc",e[e.addPhoneNoVerify=1]="addPhoneNoVerify",e[e.bindBankCard=2]="bindBankCard",e[e.setBirthday=4]="setBirthday",e[e.setWithdrawPwd=5]="setWithdrawPwd",e[e.setSecurityQA=6]="setSecurityQA",e[e.interestDeposit=8]="interestDeposit",e[e.setAvatar=10]="setAvatar",e[e.smsVerify=12]="smsVerify",e[e.setupGoogleAuth=16]="setupGoogleAuth",e[e.firstDeposit=17]="firstDeposit",e[e.firstInstallLogin=18]="firstInstallLogin",e[e.verifyEmail=19]="verifyEmail",e[e.saveShortcut=20]="saveShortcut",e[e.firstBindCrypto=21]="firstBindCrypto",e[e.addWithdrawAcc=25]="addWithdrawAcc",e[e.firstWithdraw=26]="firstWithdraw",e[e.addSocialAcc=27]="addSocialAcc",e[e.bindQuickLogin=28]="bindQuickLogin",e[e.bindWallet=30]="bindWallet",e[e.saveWebsite=31]="saveWebsite",e[e.saveOfficialEmail=32]="saveOfficialEmail",e[e.bindBiometric=41]="bindBiometric",e[e.completeKYC=42]="completeKYC",e[e.completeNo=43]="completeNo",e))(qG||{}
18),zG=(e=>(e[e.Bouns=0]="Bouns",e[e.Activity=3]="Activity",e[e.Lucky=4]="Lucky",e[e.Integral=5]="Integral",e[e.Lottery=6]="Lottery",e[e.SmallBlindTimes=7]="SmallBlindTimes",e[e.BigBlindTimes=8]="BigBlindTimes",e[e.SuperBlindTimes=9]="SuperBlindTimes",e[e.MultipleBonus=10]="MultipleBonus",e))(zG||{}),jG=(e=>(e[e.Style0=1]="Style0",e[e.Style1=2]="Style1",e[e.Style2=3]="Style2",e[e.Style3=4]="Style3",e[e.Style4=5]="Style4",e))(jG||{});const ble=[1,2,3,4,5],KG={[tu.NewcomerBenefits]:kc.newBenefits,[tu.DailyTasks]:kc.taskDaily,[tu.WeeklyTasks]:kc.taskWeekly,[tu.MysteriousTasks]:kc.taskMystery},QG=()=>{var s;const{siteInfos:e}=ue(),t=Qe();let n;t.isAndroid?n=0:t.isIos&&(n=1);const o=Array.isArray(e==null?void 0:e.vestBagJumpConfig)?e==null?void 0:e.vestBagJumpConfig:[e==null?void 0:e.vestBagJumpConfig],a=To();let r=(o==null?void 0:o.length)&&((s=o.filter(i=>(i==null?void 0:i.appType)===n).find(i=>{var c;return(((c=window.WgPackage)==null?void 0:c.name)||a.WgPackage)===(i==null?void 0:i.packageName)}))==null?void 0:s.appJumpValue)||"";return re.speedPackageConfig&&!r&&(r="jsBridge.openWindow"),r},yle=(e,t="_blank")=>{let n=null;const o=Qe(),a=navigator.userAgent.toLowerCase(),r=a.includes("iphone")||a.includes("cfnetwork")||o.isMacos||o.isIpad,s=!re.package.isApp;return r&&s&&(n=window.open(e,t)),n};function to(e="",t){var o,a,r,s,i,c,l,u;const n=QG();if(t!=null&&t.log,fn.isActivated)return fn.openExternalLink(e);try{if(window.jsBridge&&n==="jsBridge.openWindow"){(a=(o=window.jsBridge)==null?void 0:o.postMessage)==null||a.call(o,"openWindow",JSON.stringify({url:e}));return}else if(window.PlatNative&&n==="PlatNative.openWindow"){(r=window.PlatNative)==null||r.event("openWindow",JSON.stringify({url:e}));return}else if(window.Android&&n==="Android.openPG"){(s=window.Android)==null||s.eventTracker("openPG",JSON.stringify({url:e}));return}else if(window.uni&&n==="uni.openPG"){window.uni.postMessage({data:{eventName:"openPG",eventValues:{url:e}}});return}else if(n==="window.open"){window.open(e);return}}catch(d){}window.jsBridge&&((c=(i=window.jsBridge)==null?void 0:i.postMessage)==null||c.call(i,"openWindow",JSON.stringify({url:e}))),window.PlatNative?(l=window.PlatNative)==null||l.event("openWindow",JSON.stringify({url:e})):window.Android?(u=window.Android)==null||u.eventTracker("openPG",JSON.stringify({url:e})):window.uni?window.uni.postMessage({data:{eventName:"openPG",eventValues:{url:e}}}):t!=null&&t.iosClipHack?AL(e):window.open(e)}function XG(e,t){var _;const n=typeof e=="string",o=!!["FB_","FBAN","FBAV"].find(h=>navigator.userAgent.includes(h)),a=!!["Instagram"].find(h=>navigator.userAgent.includes(h)),r=navigator.userAgent.toLowerCase().includes("iphone"),s=(t==null?void 0:t.openMode)||"window.open.location",i=(_=t==null?void 0:t.forceOpenDirect)!=null?_:re.package.isApp||o||a,c=i||s!=="window.open.location";t=Object.assign({keepOpener:!1,preUrl:"",createDelay:0,openDelay:c||n?0:r?100:300,notPreCreate:c,openMode:s,windowFeatures:""},t);let l=null,u="",d=null;const m=()=>{var p,y;if(c)return;const h=!!u;l=window.open(u||(t==null?void 0:t.preUrl),"_blank",t==null?void 0:t.windowFeatures),(p=t==null?void 0:t.created)==null||p.call(t,l),h&&((y=t==null?void 0:t.opened)==null||y.call(t,l),t!=null&&t.keepOpener||l&&(l.opener=null))},g=t==null?void 0:t.createDelay;g&&g>0?d=window.setTimeout(()=>{m()},g):g||m();const f=h=>{const p=()=>{var y;if(i)to(h);else{const b=`${location.origin}/pages/open/index.html?to=${encodeURIComponent(h)}`;if(s==="window.open.location")l?(t!=null&&t.keepOpener||(l.opener=null),l.location=b,(y=t==null?void 0:t.opened)==null||y.call(t,l)):u=h;else if(s==="A"){const v=document.createElement("a");v.setAttribute("target","_brank"),v.setAttribute("href",b),v.style.display="none",document.body.appendChild(v),v.click(),setTimeout(()=>{v==null||v.remove()},1e3)}else s==="iframe-route"&&x_().push({name:k.IFRAME_ROUTE,query:{to:encodeURIComponent(b)}})}};t!=null&&t.openDelay&&t.openDelay>0?setTimeout(p,t.openDelay):p()};if(e instanceof Function)return e().then(h=>{f(h)}).catch(h=>{var p;return(p=l==null?void 0:l.close)==null||p.call(l),d&&clearTimeout(d),Promise.reject(h)});f(e)}function ZG(e){const t=ot.enc.Utf8.parse("A8AB38E02DAC2D18"),n=ot.enc.Utf8.parse("80a295f8076b1c57");
18return ot.AES.encrypt(e,t,{mode:ot.mode.CBC,padding:ot.pad.Pkcs7,iv:n}).toString()}function JG({element:e,vestATagJump:t,checkTag:n}){if(e){const{userInfos:o}=J(),a=Zc(async({aTag:s,url:i})=>{try{const c=!n||n&&await n({aTag:s,vestATagJump:t}),l=s.getAttribute("target")||s.getAttribute("data-target");c&&i&&(new URL(i),window.open(i,l||""))}catch(c){console.error("jump link error:",i,c)}},500);e.querySelectorAll("a").forEach(s=>{if(s.hasAttribute("data-jump"))return;s.setAttribute("data-jump","1");let i=s.getAttribute("href");if(i){const c={"{USERNAME}":()=>{var l;return o!=null&&o.platfromid?ZG((l=o==null?void 0:o.platfromid)==null?void 0:l.toString()):"null"}};for(const[l,u]of Object.entries(c))if(i.includes(l)){if(!u)throw new Error(`Parameter ${l} not available`);i=i.replace(l,u==null?void 0:u())}s.setAttribute("href",i)}s.addEventListener("click",function(c){c.stopPropagation(),c.preventDefault(),a({aTag:s,url:i})})})}}const AL=(e,t=window.open)=>{const{isNewiOSWebClip:n,isFromShortcut:o}=Qe(),{isIOS:a}=ft().os;a&&(n||o)?W_?gr(Mn.EVENT_OPEN_URL).send({url:e},{merge:!1,fireAndForget:!0}):location.href=e:t==null||t(e)},wm=e=>{const t=e.includes("://")?e:"https://"+e;to(t)},LL=e=>KG[e],vle=Object.freeze(Object.defineProperty({__proto__:null,getApiCodeByJackPotCode:LL,openExternalLink:wm},Symbol.toStringTag,{value:"Module"})),ma=()=>{var t;return!(((t=ue().systemInfos)==null?void 0:t.legalConfigDiscountSwitch)===eo.OPEN||_a())},Nb=({url:e,title:t="",type:n="push"})=>{const o=Oe();qe.sessionStorage.setAny("externalLinkUrl",e),qe.sessionStorage.setAny("externalLinkTitle",t),o[n]({name:k.EXTERNAL_EMBEDDED})};var Nn=(e=>(e.Platform="p",e.Individual="g",e.Category="c",e))(Nn||{}),lo=(e=>(e.Custom="custom",e.Overall="default",e.MaterialBackground="default_unLogo",e.Material="material",e))(lo||{}),eF=(e=>(e[e.No=0]="No",e[e.Have=1]="Have",e))(eF||{}),Im=(e=>(e[e.IOS=1]="IOS",e[e.Android=2]="Android",e[e.PC=3]="PC",e))(Im||{}),tF=(e=>(e[e.Formal=0]="Formal",e[e.Demo=1]="Demo",e))(tF||{}),nu=(e=>(e.customGameVersion="g",e.defaultGameVersion="g0",e.customPlatformVersion="p",e.defaultPlatformVersion="p0",e))(nu||{});const Ld="web_lobby_next_game_version_info",Sle="web_lobby_next_user_webpush_visitor_fingerId",Cle="web_lobby_next_withdraw-record_qr_code",nF=10*60*1e3;class Qg{constructor(){x(this,"versionInfo",null);x(this,"webAppVersion","");this.initVersionInfo(),this.webAppVersion=Ec()}static saveVersionInfo(t){if(!t)return;const n=qe.localStorage.get(Ld)||{};qe.localStorage.set(Ld,{...n,info:t})}initVersionInfo(){const t=qe.localStorage.get(Ld)||{};if(!(t!=null&&t.info)){qe.localStorage.set(Ld,{...t,loadNoVersionTimestamp:Date.now()});return}t.loadNoVersionTimestamp&&Date.now()-t.loadNoVersionTimestamp<nF||(this.versionInfo=t.info)}run(t){const n=this.versionInfo;if(!n)return`?web_v=${this.webAppVersion}`;const{isCustomIcon:o,gameType:a,isOriginImg:r}=t;let s="";const i=!!(o||!o&&!r);return a===Nn.Individual?s=o?nu.customGameVersion:nu.defaultGameVersion:a===Nn.Platform?s=i?nu.customPlatformVersion:nu.defaultPlatformVersion:s=Nn.Category,`?${s}=${n[s]}`}}var oF={env:"prod"};class aF{constructor(){x(this,"imgUrlVersion",new Qg);x(this,"isDebug",!1);location.search.includes("gameCardDebug=true")&&["dev","test","try"].includes(oF.env)&&(this.isDebug=!0)}get ossHost(){return Ht().ossHost}debugLog(t,n){this.isDebug&&(window.cardUrlVSDataMapper||(window.cardUrlVSDataMapper={}),window.cardUrlVSDataMapper[`${t.oriParams.cardData.webId} [${n}]`]=t)}}var Wc=(e=>(e[e.Default=-1]="Default",e[e.SystemDefault=0]="SystemDefault",e[e.Custom=1]="Custom",e))(Wc||{}),qh=(e=>(e.Transparent="#FFFFFF",e.White="#F2F7FC",e))(qh||{});class rF{getInjectedLayoutCode(){const n=ue().homeLayoutInfos;return n?{layoutGameCode:n.gameIcon,layoutPlatformCode:n.platformIcon}:{}}rectifyByImgCategory(t,n){typeof(n==null?void 0:n.imgCategory)!="undefined"&&([lo.MaterialBackground,lo.Material].includes(n.imgCategory)&&t.gameType===Nn.Individual&&(n.imgCategory=lo.MaterialBackground,t.isCustomIcon=!1,t.isOriginImg=!0),n.imgCategory!==lo.Custom&&t.gameType===Nn.Platform&&(t.isCustomIcon=!1),n.imgCategory===lo.Custom&&(t.isCustomIcon=!0))}rectifyByHotImgConfig(t,n){var s,i;const o=(s=n==null?void 0:n.isExhibitHotIcon)!=null?s:t.isExhibitHotIcon;if(t.gameType!==Nn.Platform||!o)return{};const a=(i=t.cardData)==null?void 0:i.hotImgConfig;if(a==null)return{};const r={};switch(a){case Wc.Default:r.isOriginImg=!0,r.isCustomIcon=!1;break;case Wc.SystemDefault:r.isOriginImg=!1,r.isCustomIcon=!1;break;case Wc.Custom:r.isOriginImg=!1,r.isCustomIcon=!0;break}return r}run(t,n){const o=this.getInjectedLayoutCode(),a=this.rectifyByHotImgConfig(t,n),r=Pe({},o,t,a,n);return t.gameType===Nn.Individual&&(r.isExhibitHotIcon=!1),this.rectifyByImgCategory(r,n),r}}var mn=(e=>(e[e.Platform=1]="Platform",e[e.NormalGame=2]="NormalGame",e))(mn||{}),Xg=(e=>(e.Vertical="vertical",e.Square="square",e.Landscape="landscape",e))(Xg||{}),Zg=(e=>(e.Game="game",e.Platform="platform",e))(Zg||{}),xu=(e=>(e[e.Close=0]="Close",e[e.Interim=100]="Interim",e[e.Best=101]="Best",e[e.Hot=103]="Hot",e[e.New=102]="New",e))(xu||{}),Ue=(e=>(e[e.SubGameHasSide=1]="SubGameHasSide",e[e.SubGameNoSide=2]="SubGameNoSide",e[e.SearchPage=3]="SearchPage",e[e.HomeHasSide=4]="HomeHasSide",e[e.HomeNoSide=5]="HomeNoSide",e[e.JackpotInner=6]="JackpotInner",e[e.SearchSubPage=7]="SearchSubPage",e))(Ue||{}),us=(e=>(e.Transparent="transparent",e.White="white",e.Other="other",e))(us||{}),ig=(e=>(e.One="one",e.Two="two",e))(ig||{}),TL=(e=>(e[e.Horizontal=0]="Horizontal",e[e.Vertical=1]="Vertical",e))(TL||{});class xa{static parseArray(t,n){return t.map(o=>new n().parse(o))}}const hl=e=>P.parse(t=>Array.isArray(t)?t.map(n=>new e().parse(n)):[]),Ft=e=>!!e,kb=e=>{const{ossHost:t}=Ht();return e?`${t}cocos/icon/${e}`:""};var sF=Object.defineProperty,iF=Object.getOwnPropertyDescriptor,Rn=(e,t,n,o)=>{for(var a=o>1?void 0:o?iF(t,n):t,r=e.length-1,s;r>=0;r--)(s=e[r])&&(a=(o?s(t,n,a):s(a))||a);return o&&a&&sF(t,n,a),a};let _t=class extends P.Model{constructor(){super(...arguments);x(this,"webId","");x(this,"gameId",0);x(this,"gameName","");x(this,"gameIcon","");x(this,"isCustomIcon",!1);x(this,"isOriginImg",!1);x(this,"maintainStatus",!1);x(this,"recommendStatus",!1);x(this,"demoModeSupport",!1);x(this,"screenDirection",TL.Horizontal);x(this,"anchorSupport",!1);x(this,"gameCategoryId",0);x(this,"gameCategoryName","");x(this,"platformId",0);x(this,"gameType",mn.NormalGame);x(this,"isVassalCustomIcon",!1);x(this,"specialRecommendCase","");x(this,"gameImgName","");x(this,"rememberMode",null);x(this,"isCustomThemeUpload",!1);x(this,"isCustomThemeHotUpload",!1);
18x(this,"imgBackgroundColor","");x(this,"platformName","");x(this,"platformLogo","");x(this,"isExternalLink",!1);x(this,"minimumEntryBalance",0);x(this,"isSupportSubPage",!0);x(this,"isPlatformBypassSubGame",!1);x(this,"sortOrder",1);x(this,"isJump",!1);x(this,"jumpPlantId",0);x(this,"jumpPlantCategoryId",0);x(this,"hotImgConfig");x(this,"hotImgBackgroundColor")}static isThisType(t){return!!["gameIcon","gameType"].every(o=>Reflect.has(t,o))}parsePlatformCategoriesItem(t){return this.webId=t.webId,this.gameId=t.gameId,this.demoModeSupport=t.demoModeSupport,this.isCustomIcon=t.isCustomIcon,this.isOriginImg=t.isOriginImg,this.gameCategoryId=t.gameCategoryId,this.platformId=t.platformId,this.platformName=t.platformName,this.platformLogo=t.platformLogo,this.maintainStatus=t.maintainStatus,this.minimumEntryBalance=t.minimumEntryBalance,this.anchorSupport=t.anchorSupport,this.isExternalLink=t.isExternalLink,this.gameName=t.brand,this.gameType=mn.Platform,this.isSupportSubPage=t.isSupportSubPage,this.gameImgName=t.gameImgName,this.hotImgConfig=t.hotImgConfig,this.imgBackgroundColor=t.imgBackgroundColor,this.isCustomThemeUpload=t.isCustomThemeUpload,this.isCustomThemeHotUpload=t.isCustomThemeHotUpload,this}selfParseSpecialGameProperty(t){this.gameType=!t.g0||t.g12===1?mn.Platform:mn.NormalGame,this.sortOrder=t.g11,this.isJump=!!t.g12,this.jumpPlantId=t.g13,this.jumpPlantCategoryId=t.g14}};Rn([P.type(String),P.parse((e,t)=>{const n=t!=null&&t.g0?`_${t.g0}`:"";return`${t==null?void 0:t.g9}_${t==null?void 0:t.g10}${n}`})],_t.prototype,"webId",2);Rn([P.from("g0"),P.type(Number),P.nullable()],_t.prototype,"gameId",2);Rn([P.from("g1"),P.type(String),P.nullable()],_t.prototype,"gameName",2);Rn([P.from("g3"),P.type(Boolean),P.parse(Ft),P.nullable()],_t.prototype,"isCustomIcon",2);Rn([P.from("g16"),P.type(Boolean),P.parse(Ft),P.nullable()],_t.prototype,"isOriginImg",2);Rn([P.from("g4"),P.type(Boolean),P.parse(Ft)],_t.prototype,"maintainStatus",2);Rn([P.from("g5"),P.type(Boolean),P.parse(Ft)],_t.prototype,"recommendStatus",2);Rn([P.from("g6"),P.type(Boolean),P.parse(Ft)],_t.prototype,"demoModeSupport",2);Rn([P.from("g7"),P.nullable(),P.type(Number)],_t.prototype,"screenDirection",2);Rn([P.from("g8"),P.type(Boolean),P.parse(Ft)],_t.prototype,"anchorSupport",2);Rn([P.from("g9"),P.type(Number),P.nullable()],_t.prototype,"gameCategoryId",2);Rn([P.from("gameCategoryName"),P.type(String),P.nullable()],_t.prototype,"gameCategoryName",2);Rn([P.from("g10"),P.type(Number),P.nullable()],_t.prototype,"platformId",2);Rn([P.from("g11"),P.type(Number),P.nullable(),P.parse((e,t)=>(t==null?void 0:t.g11)||mn.NormalGame)],_t.prototype,"gameType",2);Rn([P.from("g14"),P.type(Boolean),P.parse(Ft)],_t.prototype,"isVassalCustomIcon",2);Rn([P.from("g15"),P.type(String),P.nullable()],_t.prototype,"specialRecommendCase",2);Rn([P.from("g17"),P.type(String),P.nullable()],_t.prototype,"gameImgName",2);Rn([P.from("g18"),P.type(Number),P.nullable(),P.parse(e=>e===xu.Interim?xu.Best:e)],_t.prototype,"rememberMode",2);Rn([P.from("g19"),P.type(Boolean),P.parse(Ft),P.nullable()],_t.prototype,"isCustomThemeUpload",2);Rn([P.from("g21"),P.type(String),P.nullable()],_t.prototype,"imgBackgroundColor",2);_t=Rn([P.Entity()],_t);class cF{run(t){return typeof t.imgCategory!="undefined"?this.handleSpecialImgCategory(t):this.handleReconstructSkin(t)}handleReconstructSkin(t){const{isCustomIcon:n,gameType:o,customAnySize:a}=t,r=ze().currency,s=()=>{let c="";return t.cardData.isSupportSubPage?n?c=`${lo.Custom}_${r}`:c=lo.Overall:n&&t.cardData.gameImgName||!n&&!t.isOriginImg?c=lo.Custom:c=lo.Overall,`${c}.png`},i=()=>{var l;let c="";return t.isExhibitHotIcon?n===!0&&t.isOriginImg===!1&&((l=t.cardData)!=null&&l.gameImgName)?c=`${lo.Custom}_${r}`:n===!1&&t.isOriginImg===!1?c=`${lo.Overall}_${r}`:c=lo.Overall:n?c=`${lo.Custom}_${r}`:t.isOriginImg?c=lo.Overall:c=`${lo.Overall}_${r}`,`${c}.png`};if(a){const{width:c,height:l}=a;return`${c}_${l}_${r}.png`}return o===Nn.Individual?s():i()}handleSpecialImgCategory(t){const{isOriginImg:n,isCustomIcon:o,gameType:a,imgCategory:r,isSpecialLayout:s,cardData:i}=t,c=ze().currency;return a===Nn.Individual?o&&!s?`${r}_${c}.png`:`${r}.png`:!i.gameImgName&&!s&&i.isCustomIcon&&i.gameType!==mn.NormalGame&&_t.isThisType(i)&&!n?`${r}.png`:!n||o?`${r}_${c}.png`:`${r}.png`}}class lF{constructor(){x(this,"layoutAddressPlatform",{[Qt.EuropeanAmerican]:"EA",[Qt.LeftRight1]:"L1",[Qt.LeftRight2]:"L2",[Qt.Rounded]:"RD",[Qt.Square]:"SQ",[Qt.Rectangle]:"RT"});x(this,"layoutAddressGame",{[he.VerticalMask]:"EA",[he.Square]:"CL",[he.Vertical]:"VR",[he.SquareRightAngle]:"SQ",[he.Rounded]:"RD",[he.Horizontal]:"HZ"})}run(t){if(t.customAnySize)return"";const n=t.isCustomIcon&&!t.cardData.gameImgName||!t.isCustomIcon&&t.isOriginImg;if(t.isExhibitHotIcon&&t.gameType===Nn.Platform&&!t.isOriginImg&&!n){const o=t.layoutGameC
18ode===he.VerticalMask&&t.layoutPlatformCode===Qt.EuropeanAmerican,a=t.layoutGameCode===he.Square&&t.layoutPlatformCode===Qt.LeftRight1;if(!(o||a))return`${this.layoutAddressPlatform[t.layoutPlatformCode]}/${this.layoutAddressGame[t.layoutGameCode]}`}return t.gameType===Nn.Individual||t.isExhibitHotIcon?this.layoutAddressGame[t.layoutGameCode]:this.layoutAddressPlatform[t.layoutPlatformCode]}}class uF{constructor(){x(this,"siteCode",Ze().siteCode)}handlePlatform(t){const{isSpecialLayout:n,isExhibitHotIcon:o,isCustomIcon:a,isOriginImg:r,customAnySize:s,imgCategory:i,cardData:c={}}=t;return(n||s?!0:!c.gameImgName&&c.gameType!==mn.NormalGame&&_t.isThisType(c)&&c.isCustomIcon&&!r&&i?!1:!a&&!r?!0:a||!r?!!(!o||o&&c.gameImgName):!1)?`/${this.siteCode}`:""}handleIndividual(t){return t.isCustomIcon||t.customAnySize?`/${this.siteCode}`:""}run(t){return t.gameType===Nn.Individual?this.handleIndividual(t):this.handlePlatform(t)}}const Rg=class Rg extends aF{constructor(){super();x(this,"conflateParamsVsConfig",new rF);x(this,"siteCodeApplication",new uF);x(this,"patternCode",new lF);x(this,"imgName",new cF)}static getInstance(){return this.instance||(this.instance=new Rg),this.instance}static run(n,o={}){return this.getInstance().generateIconPath(n,o)}getPlatformHotStr(n){return n.isExhibitHotIcon?"/hot":""}getSpecialLayoutStr(n){return n.isSpecialLayout?"/custom":""}getCustomThemeStr(n){return n.customAnySize?"s":""}getGameIdStr(n){const{gameId:o,gameType:a,isCustomIcon:r,isOriginImg:s,cardData:i}=n,c=!r&&s;return a===Nn.Platform&&!i.isPlatformBypassSubGame||i.isPlatformBypassSubGame&&c?"":`/${o}`}generateIconPath(n,o){const a=this.conflateParamsVsConfig.run(n,o),r=this.siteCodeApplication.run(a),s=this.patternCode.run(a),i=this.getPlatformHotStr(a),c=this.getSpecialLayoutStr(a),l=this.getCustomThemeStr(a),u=this.getGameIdStr(a),d=this.imgName.run(a),m=this.imgUrlVersion.run(a),{gameType:g,gameCategoryId:f,platformId:_}=a,h=`${this.ossHost}game_pictures/${g}${r}/${l}${s}${i}${c}/${_}/${f}${u}/${d}${m}`;return this.debugLog({oriParams:n,combineConfig:a},h),h}};x(Rg,"instance");let cg=Rg;const Og=class Og{constructor(){}static getInstance(){return this.instance||(this.instance=new Og),this.instance}static run(){return this.getInstance().previewGameIconUrl()}getURLParameters(t=window.location.href){return(t.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((o,a)=>{const[r,s]=a.split("=");return o[r]=s,o},{})}generateImgUrl(t){const{ossHost:n}=Ht();return`${n}siteadmin/skin/lobby_asset/common/web/home/${t}?manualVersion=1`}previewGameIconUrl(){const{previewonly:t,gameIconType:n}=this.getURLParameters();if(t==="true"){if(n==="1")return this.generateImgUrl("img_def_yx_sb.png");if(n==="2")return this.generateImgUrl("img_def_yx_fx.png")}}};x(Og,"instance");let lg=Og;var dF=Object.defineProperty,mF=Object.getOwnPropertyDescriptor,ni=(e,t,n,o)=>{for(var a=o>1?void 0:o?mF(t,n):t,r=e.length-1,s;r>=0;r--)(s=e[r])&&(a=(o?s(t,n,a):s(a))||a);return o&&a&&dF(t,n,a),a};let Va=class extends P.Model{constructor(){super(...arguments);x(this,"webId","");x(this,"platformId",0);x(this,"gameCategoryId",0);x(this,"gameName","");x(this,"isExternalLink",!1);x(this,"externalLink","");x(this,"gameIcon","");x(this,"isAnchorHot",!0);x(this,"anchorSupport",!0);x(this,"customLargeIcon",!1);x(this,"gameType",mn.NormalGame);x(this,"specialRecommendCase","");x(this,"isCustomThemeUpload",!1);x(this,"isCustomThemeHotUpload",!1);x(this,"maintainStatus",!1)}static isThisType(t){return t.isAnchorHot}static generateWebId(t){const{gameCategoryId:n,platformId:o}=t;return`${n}_${o}`}};ni([P.type(String),P.parse((e,t)=>`${t==null?void 0:t.b}_${t==null?void 0:t.a}_${t==null?void 0:t.c}`)],Va.prototype,"webId",2);ni([P.from("a"),P.type(Number)],Va.prototype,"platformId",2);ni([P.from("b"),P.type(Number)],Va.prototype,"gameCategoryId",2);ni([P.from("c"),P.type(String)],Va.prototype,"gameName",2);ni([P.from("d"),P.parse(Ft),P.type(Boolean),P.nullable()],Va.prototype,"isExternalLink",2);ni([P.from("e"),P.type(String),P.nullable()],Va.prototype,"externalLink",2);ni([P.from("f"),P.parse(kb),P.type(String),P.nullable()],Va.prototype,"gameIcon",2);Va=ni([P.Entity()],Va);var gF=Object.defineProperty,fF=Object.getOwnPropertyDescriptor,Jt=(e,t,n,o)=>{for(var a=o>1?void 0:o?fF(t,n):t,r=e.length-1,s;r>=0;r--)(s=e[r])&&(a=(o?s(t,n,a):s(a))||a);return o&&a&&gF(t,n,a),a};let Ct=class extends P.Model{constructor(){super(...arguments);
18x(this,"gameCount",0);x(this,"webId","");x(this,"gameId",0);x(this,"demoModeSupport",!1);x(this,"isCustomIcon",!1);x(this,"isOriginImg",!1);x(this,"gameCategoryId",0);x(this,"platformLogo","");x(this,"maintainStatus",!1);x(this,"minimumEntryBalance",0);x(this,"platformIcon","");x(this,"platformId",0);x(this,"platformName","");x(this,"slogan","");x(this,"isExternalLink",!1);x(this,"brand","");x(this,"anchorSupport",!1);x(this,"gameImgName","");x(this,"normalHotIcon","");x(this,"imgBackgroundColor","");x(this,"isSupportSubPage",!1);x(this,"isPlatformBypassSubGame",!1);x(this,"isCustomThemeUpload",!1);x(this,"hotImgConfig",null);x(this,"isCustomThemeHotUpload",!1);x(this,"hotImgBackgroundColor","");x(this,"isShowOnHome",!1);x(this,"platformGameTotal");x(this,"gameType",mn.Platform);x(this,"specialRecommendCase","")}static isThisType(t){return!!["platformIcon","brand","slogan"].every(o=>Reflect.has(t,o))}parseGameItem(t){var o,a,r;this.webId=t.webId,this.gameId=t.gameId,this.demoModeSupport=t.demoModeSupport,this.isCustomIcon=t.isCustomIcon,this.isOriginImg=t.isOriginImg,this.gameCategoryId=t.gameCategoryId,this.platformId=t.platformId,this.platformName=t.platformName,this.platformLogo=t.platformLogo,this.maintainStatus=t.maintainStatus,this.minimumEntryBalance=t.minimumEntryBalance,this.anchorSupport=t.anchorSupport,this.isExternalLink=t.isExternalLink,this.brand=t.gameName,this.imgBackgroundColor=t.imgBackgroundColor,this.isSupportSubPage=t.isSupportSubPage,this.gameImgName=t.gameImgName,this.isCustomThemeUpload=t.isCustomThemeUpload;const n=t;return this.hotImgConfig=(o=n.hotImgConfig)!=null?o:this.hotImgConfig,this.isCustomThemeHotUpload=(a=n.isCustomThemeHotUpload)!=null?a:this.isCustomThemeHotUpload,this.hotImgBackgroundColor=(r=n.hotImgBackgroundColor)!=null?r:this.hotImgBackgroundColor,this}};Jt([P.from("t0"),P.type(Number),P.nullable()],Ct.prototype,"gameCount",2);Jt([P.type(String),P.parse((e,t)=>{const n=t!=null&&t.t1?`_${t.t1}`:"";return`${t==null?void 0:t.t4}_${t==null?void 0:t.t9}${n}`})],Ct.prototype,"webId",2);Jt([P.from("t1"),P.type(Number),P.nullable()],Ct.prototype,"gameId",2);Jt([P.from("t2"),P.type(Boolean),P.parse(Ft)],Ct.prototype,"demoModeSupport",2);Jt([P.from("t3"),P.type(Boolean),P.parse(Ft),P.nullable()],Ct.prototype,"isCustomIcon",2);Jt([P.from("t19"),P.type(Boolean),P.parse(Ft),P.nullable()],Ct.prototype,"isOriginImg",2);Jt([P.from("t4"),P.nullable(),P.type(Number),P.nullable()],Ct.prototype,"gameCategoryId",2);Jt([P.from("t5"),P.parse(kb),P.type(String),P.nullable()],Ct.prototype,"platformLogo",2);Jt([P.from("t6"),P.type(Boolean),P.parse(Ft)],Ct.prototype,"maintainStatus",2);Jt([P.from("t7"),P.nullable()],Ct.prototype,"minimumEntryBalance",2);Jt([P.from("t9"),P.type(Number),P.nullable()],Ct.prototype,"platformId",2);Jt([P.from("t10"),P.type(String),P.nullable()],Ct.prototype,"platformName",2);Jt([P.from("t11"),P.type(String),P.nullable()],Ct.prototype,"slogan",2);Jt([P.from("t12"),P.type(Boolean),P.parse(Ft),P.nullable()],Ct.prototype,"isExternalLink",2);Jt([P.from("t15"),P.type(String),P.nullable()],Ct.prototype,"brand",2);Jt([P.from("t16"),P.type(Boolean),P.parse(Ft)],Ct.prototype,"anchorSupport",2);Jt([P.from("t17"),P.type(String),P.nullable()],Ct.prototype,"gameImgName",2);Jt([P.from("t21"),P.type(String),P.nullable()],Ct.prototype,"imgBackgroundColor",2);Jt([P.from("t22"),P.type(Boolean),P.parse((e,t)=>typeof e!="number"?z_.includes(t.t4):!!e),P.nullable()],Ct.prototype,"isSupportSubPage",2);Jt([P.from("t23"),P.type(Boolean),P.parse(e=>!!e),P.nullable()],Ct.prototype,"isPlatformBypassSubGame",2);Jt([P.from("t24"),P.type(Boolean),P.parse(Ft),P.nullable()],Ct.prototype,"isCustomThemeUpload",2);Jt([P.from("t25"),P.type(Number),P.nullable()],Ct.prototype,"hotImgConfig",2);Jt([P.from("t26"),P.type(Boolean),P.parse(Ft),P.nullable()],Ct.prototype,"isCustomThemeHotUpload",2);Jt([P.from("t28"),P.type(String),P.nullable()],Ct.prototype,"hotImgBackgroundColor",2);Jt([P.from("t30"),P.type(Boolean),P.parse(Ft),P.nullable()],Ct.prototype,"isShowOnHome",2);Jt([P.from("t31"),P.type(Number),P.nullable()],Ct.prototype,"platformGameTotal",2);Ct=Jt([P.Entity()],Ct);class Nl{static gameData2Params(t){const n={cardData:t},o=a=>{n.gameCategoryId=a.gameCategoryId,n.platformId=a.platformId,n.gameId=a.gameId,n.isOriginImg=a.isOriginImg,n.isCustomIcon=a.isCustomIcon};return _t.isThisType(t)?(o(t),n.renderName=t.gameName,t.gameType===mn.Platform?(n.gameType=Nn.Platform,n.isExhibitHotIcon=!0):(n.gameType=Nn.Individual,n.isExhibitHotIcon=!1)):Ct.isThisType(t)?(o(t),n.renderName=t.platformName,n.gameType=Nn.Platform,n.isExhibitHotIcon=!1):Va.isThisType(t)&&(n.gameType=Nn.Individual,n.gameCategoryId=t.gameCategoryId,n.platformId=t.platformId,n.isExhibitHotIcon=!1),n}static responseData2simpleGameItem(t){const n=t.g11||(Bg.includes(t.g9)?mn.Platform:mn.NormalGame);return{responseData:t,gameName:t.g1,gameIcon:"",gameCategoryId:t.g9,platformId:t.g10,gameId:t.g0,isCustomIcon:!!t.g3,isOriginImg:!!t.g16,gameType:n}}static responseData2simplePlatformCategoriesItem(t){return{responseData:t,platformName:t.t10,platformIcon:"",brand:"",slogan:"",gameCategoryId:t.t4,platformId:t.t9,gameId:t.t1,isCustomIcon:!!t.t3,isOriginImg:!!t.t19}}}const Tu=class Tu{static parseHotPlatformItem(t){let n=t;Ct.isThisType(n)||(n=Nl.responseData2simplePlatformCategoriesItem(t));const o=new _t().parsePlatformCategoriesItem(n);return Tu.parseGameItem(o)}};x(Tu,"parsePlatformItem",(t,n)=>{const o=lg.run();if(o)return o;let a=t;Ct.isThisType(a)||(a=Nl.responseData2simplePlatformCategoriesItem(t));const r=Nl.gameData2Params(a);return cg.run(r,n)}),x(Tu,"parseGameItem",(t,n)=>{const o=lg.run();if(o)return o;let a=t;_t.isThisType(t)||(a=Nl.responseData2simpleGameItem(t));const r=Nl.gameData2Params(a);return cg.run(r,n)});let ra=Tu;class pF{constructor(t){x(this,"curMapperStatus","initial");x(this,"platformIdObjMapper",{});x(this,"initMapperAwaitPromise",[]);x(this,"assignPlatformIdInfoMapper",qn((t,n)=>{this.platformIdObjMapper=this.formatPlatformIdObjMapper(t),this.curMapperStatus="success",n()},0));this.clsGameRepository=t}async run(t,n){n?(Object.keys(this.platformIdObjMapper).length<=0&&(this.platformIdObjMapper=this.formatPlatformIdObjMapper(n)),this.curMapperStatus="success"):this.curMapperStatus!=="success"&&await this.initPlatformIdInfoMapper(),this.supplement(t)}resetStatus(){this.curMapperStatus="initial",this.platformIdObjMapper={}}async initPlatformIdInfoMapper(t){const n=new Promise(o=>{this.initMapperAwaitPromise.push(o)});return(async()=>{var a;let o=[];try{o=t||await this.clsGameRepository.getPlatformCateExtLinkList()}catch(r){(a=this.initMapperAwaitPromise.splice(0))==null||a.forEach(s=>s());return}this.assignPlatformIdInfoMapper(o.filter(r=>!r.isExLink),()=>{var r;(r=this.initMapperAwaitPromise.splice(0))==null||r.forEach(s=>s())})})(),n}supplementItem(t){const{gameCategoryId:n,platformId:o}=t,a=this.platformIdObjMapper[`${n}_${o}`];return a&&(t.platformLogo=a.platformLogo,t.platformName=a.platformName,t.isExternalLink=a.isExternalLink,t.minimumEntryBalance=a.minimumEntryBalance,t.demoModeSupport=a.demoModeSupport,t.isPlatformBypassSubGame=a.isPlatformBypassSubGame,t.isSupportSubPage=a.isSupportSubPage,t.gameId===0&&(t.gameType=mn.Platform),t.gameType===mn.NormalGame&&(t.gameType=a.isSupportSubPage?mn.NormalGame:mn.Platform),a.anchorSupport||(t.anchorSupport=a.anchorSupport),t.gameType===mn.Platform&&t.gameCategoryId===Z.Lottery&&t.platformId===lI.WG&&(t.hotImgConfig=a.hotImgConfig,t.hotImgBackgroun
18dColor=a.hotImgBackgroundColor,t.imgBackgroundColor=a.imgBackgroundColor,t.gameImgName=a.gameImgName,t.isCustomIcon=a.hotImgConfig===Wc.Custom,t.isOriginImg=a.hotImgConfig===Wc.Default),t.maintainStatus=a.maintainStatus||t.maintainStatus),t}supplementArray(t){return t.map(n=>this.supplementItem(n))}supplement(t){return Array.isArray(t)?this.supplementArray(t):this.supplementItem(t)}formatPlatformIdObjMapper(t){return t.reduce((n,o)=>{const a=o.list;return E_(a)&&a.forEach(r=>{if(r.isPlatformBypassSubGame)return;const{gameCategoryId:s,platformId:i,platformLogo:c,platformName:l,isExternalLink:u,isCustomIcon:d,isOriginImg:m,minimumEntryBalance:g,maintainStatus:f,imgBackgroundColor:_,gameImgName:h,isSupportSubPage:p,anchorSupport:y,demoModeSupport:b,isPlatformBypassSubGame:v,hotImgConfig:A,hotImgBackgroundColor:L}=r;n[`${s}_${i}`]={platformId:i,platformLogo:c,platformName:l,isExternalLink:u,isCustomIcon:d,isOriginImg:m,minimumEntryBalance:g,maintainStatus:f,imgBackgroundColor:_,gameImgName:h,isSupportSubPage:p,anchorSupport:y,demoModeSupport:b,isPlatformBypassSubGame:v,hotImgConfig:A,hotImgBackgroundColor:L}}),n},{})}}const Am=()=>{const{isIos:e,isAndroid:t}=Qe();return e?Im.IOS:t?Im.Android:Im.PC},Td=e=>{var i;const{userInfos:t}=J(),{isH5Pwa:n}=Qe(),{isPWAInstalled:o}=ts(),a=t==null?void 0:t.regPkgId;return a&&Number(a)&&(e={...e,cid:String(a)}),n&&(e={...e,isH5Pwa:1}),(((i=t==null?void 0:t.loginpwaType)!=null?i:0)||o)&&(e={...e,loginpwaType:1}),{os_type:Am(),...e}},Rd=e=>{try{const t=new Error().stack,n=t==null?void 0:t.split(` 19`),o=(n==null?void 0:n.slice(2).map(a=>a.replace(/https?:\/\/[^/]+/,"").replace(/^\s*at\s+/,"").replace(/\?t=.*$/,"").replace(/:\d+:\d+/g,"")).filter(a=>!/(chunk-|vendor-)/.test(a)))||[];return{time:Ye().format("YYYY-MM-DD HH:mm:ss"),scene:e,stack:JSON.stringify(o).slice(0,500)}}catch(t){return{scene:e,stack:JSON.stringify(t)}}},zh=Ao(Er),ug=()=>{const e=zh.value.bot;return typeof e=="string"?e.trim():""},hF=e=>{zh.value.bot!==e.bot&&(zh.value={bot:e.bot})},_F=()=>{var n;const e=ug();if(e)return e;const t=(n=J().userInfos)==null?void 0:n.thirdAccount;return typeof t=="string"?t.trim():""};var bF=Object.defineProperty,yF=Object.getOwnPropertyDescriptor,_l=(e,t,n,o)=>{for(var a=o>1?void 0:o?yF(t,n):t,r=e.length-1,s;r>=0;r--)(s=e[r])&&(a=(o?s(t,n,a):s(a))||a);return o&&a&&bF(t,n,a),a};let zs=class extends P.Model{constructor(t){super();x(this,"webId","");x(this,"total",0);x(this,"gameCategoryId",0);x(this,"gameCategoryName","");x(this,"list",[]);this.merge(t)}};_l([P.type(String),P.parse((e,t)=>`${t==null?void 0:t.p0}`)],zs.prototype,"webId",2);_l([P.from("c"),P.type(Number)],zs.prototype,"total",2);_l([P.from("p0"),P.type(Number)],zs.prototype,"gameCategoryId",2);_l([P.from("p1"),P.type(String)],zs.prototype,"gameCategoryName",2);_l([P.from("l"),P.type(Array),hl(_t),P.nullable()],zs.prototype,"list",2);zs=_l([P.Entity()],zs);var vF=Object.defineProperty,SF=Object.getOwnPropertyDescriptor,Wn=(e,t,n,o)=>{for(var a=o>1?void 0:o?SF(t,n):t,r=e.length-1,s;r>=0;r--)(s=e[r])&&(a=(o?s(t,n,a):s(a))||a);return o&&a&&vF(t,n,a),a};let Tn=class extends P.Model{constructor(t){super();x(this,"webId","");x(this,"gameCategoryId",0);x(this,"isExLink",!1);x(this,"gameCategoryName","");x(this,"isServerOpen",!1);x(this,"pcSquare",0);x(this,"appSquare",0);x(this,"pcVertical",0);x(this,"appVertical",0);x(this,"pcMenuRow",0);x(this,"appMenuRow",0);x(this,"openApproach",0);x(this,"jumpPosition",null);x(this,"externalLinks","");x(this,"icon","");x(this,"isCustomIcon",!1);x(this,"isMerged",!1);x(this,"list",[]);x(this,"listRowCount",0);x(this,"iconUrlNormal","");x(this,"iconUrlActive","");x(this,"display",!1);this.merge(t)}};Wn([P.type(String),P.parse((e,t)=>`${t==null?void 0:t.p0}`)],Tn.prototype,"webId",2);Wn([P.from("p0"),P.type(Number),P.parse(e=>!e&&e!==0?-1:e),P.nullable()],Tn.prototype,"gameCategoryId",2);Wn([P.from("p0"),P.type(Boolean),P.parse(e=>!e&&e!==0)],Tn.prototype,"isExLink",2);Wn([P.from("p1"),P.type(String)],Tn.prototype,"gameCategoryName",2);Wn([P.from("p2"),P.type(Boolean),P.parse(Ft)],Tn.prototype,"isServerOpen",2);Wn([P.from("p3"),P.type(Number),P.nullable()],Tn.prototype,"pcSquare",2);Wn([P.from("p4"),P.type(Number),P.nullable()],Tn.prototype,"appSquare",2);Wn([P.from("p5"),P.type(Number),P.nullable()],Tn.prototype,"pcVertical",2);Wn([P.from("p6"),P.type(Number),P.nullable()],Tn.prototype,"appVertical",2);Wn([P.from("p7"),P.type(Number),P.nullable()],Tn.prototype,"pcMenuRow",2);Wn([P.from("p8"),P.type(Number),P.nullable()],Tn.prototype,"appMenuRow",2);Wn([P.from("p9"),P.type(Number),P.nullable()],Tn.prototype,"openApproach",2);Wn([P.from("p10"),P.type(Object),P.parse(e=>e?JSON.parse(e):null),P.nullable()],Tn.prototype,"jumpPosition",2);Wn([P.from("p11"),P.type(String),P.nullable()],Tn.prototype,"externalLinks",2);Wn([P.from("p12"),P.type(String),P.nullable()],Tn.prototype,"icon",2);Wn([P.from("p13"),P.type(Boolean),P.parse(Ft)],Tn.prototype,"isCustomIcon",2);Wn([P.from("p14"),P.type(Boolean),P.parse(Ft),P.nullable()],Tn.prototype,"isMerged",2);Wn([P.from("l"),P.type(Array),hl(Ct),P.nullable()],Tn.prototype,"list",2);Tn=Wn([P.Entity()],Tn);var CF=Object.defineProperty,wF=Object.getOwnPropertyDescriptor,jo=(e,t,n,o)=>{for(var a=o>1?void 0:o?wF(t,n):t,r=e.length-1,s;r>=0;r--)(s=e[r])&&(a=(o?s(t,n,a):s(a))||a);return o&&a&&CF(t,n,a),a};let ho=class extends P.Model{constructor(t){super();x(this,"webId","");x(this,"gameCategoryId",0);x(this,"gameCategoryName","");x(this,"isServerOpen",!1);x(this,"pcSquare",0);x(this,"appSquare",0);x(this,"pcVertical",0);x(this,"appVertical",0);x(this,"pcMenuRow",0);x(this,"appMenuRow",0);x(this,"isCustomIcon",!1);x(this,"isMerged",!1);x(this,"list",[]);x(this,"listRowCount",0);x(this,"iconUrlNormal","");x(this,"iconUrlActive","");x(this,"display",!1);
19this.merge(t)}};jo([P.type(String),P.parse((e,t)=>`${t==null?void 0:t.p0}`)],ho.prototype,"webId",2);jo([P.from("p0"),P.type(Number)],ho.prototype,"gameCategoryId",2);jo([P.from("p1"),P.type(String)],ho.prototype,"gameCategoryName",2);jo([P.from("p2"),P.type(Boolean),P.parse(Ft)],ho.prototype,"isServerOpen",2);jo([P.from("p3"),P.type(Number)],ho.prototype,"pcSquare",2);jo([P.from("p4"),P.type(Number)],ho.prototype,"appSquare",2);jo([P.from("p5"),P.type(Number)],ho.prototype,"pcVertical",2);jo([P.from("p6"),P.type(Number)],ho.prototype,"appVertical",2);jo([P.from("p7"),P.type(Number)],ho.prototype,"pcMenuRow",2);jo([P.from("p8"),P.type(Number)],ho.prototype,"appMenuRow",2);jo([P.from("p13"),P.type(Boolean),P.parse(Ft)],ho.prototype,"isCustomIcon",2);jo([P.from("p14"),P.type(Boolean),P.parse(Ft),P.nullable()],ho.prototype,"isMerged",2);jo([P.from("l"),P.type(Array),hl(Ct),P.nullable()],ho.prototype,"list",2);ho=jo([P.Entity()],ho);var IF=(e=>(e[e.Road=1]="Road",e[e.GameType=2]="GameType",e[e.Time=3]="Time",e[e.RealCasino=5]="RealCasino",e))(IF||{}),Bb=(e=>(e[e.Baccarat=1]="Baccarat",e[e.DragonTiger=2]="DragonTiger",e[e.Blackjack=3]="Blackjack",e[e.Roulette=4]="Roulette",e[e.Poker=5]="Poker",e[e.NiuNiu=6]="NiuNiu",e[e.ZhaJinHua=7]="ZhaJinHua",e[e.SanGong=8]="SanGong",e[e.SicBo=9]="SicBo",e[e.Other=99]="Other",e))(Bb||{}),Hb=(e=>(e[e.DEFAULT=0]="DEFAULT",e[e.REGULAR=1]="REGULAR",e[e.FAST=2]="FAST",e[e.LIGHTNING=3]="LIGHTNING",e[e.MIPAI=4]="MIPAI",e))(Hb||{}),AF=(e=>(e[e.None=-1]="None",e[e.LongBanker=1]="LongBanker",e[e.LongPlayer=2]="LongPlayer",e[e.BigRoadSingleJump=3]="BigRoadSingleJump",e[e.OneBankerTwoPlayers=4]="OneBankerTwoPlayers",e[e.OnePlayerTwoBankers=5]="OnePlayerTwoBankers",e[e.LongRoadSingleJump=6]="LongRoadSingleJump",e[e.BankerContinuous=7]="BankerContinuous",e))(AF||{}),LF=(e=>(e[e.Min=1]="Min",e[e.Max=2]="Max",e))(LF||{}),TF=(e=>(e[e.Novice=1]="Novice",e[e.Expert=2]="Expert",e))(TF||{}),RF=Object.defineProperty,OF=Object.getOwnPropertyDescriptor,Pa=(e,t,n,o)=>{for(var a=o>1?void 0:o?OF(t,n):t,r=e.length-1,s;r>=0;r--)(s=e[r])&&(a=(o?s(t,n,a):s(a))||a);return o&&a&&RF(t,n,a),a};let qo=class extends P.Model{constructor(){super(...arguments);x(this,"location");x(this,"column");x(this,"row");x(this,"ties",0);x(this,"score",0);x(this,"color","");x(this,"playerPair",!1);x(this,"bankerPair",!1);x(this,"natural",!1);x(this,"lightning",!1);x(this,"isOdd",!1)}};Pa([P.from("r0"),P.type(Object),P.nullable()],qo.prototype,"location",2);Pa([P.from("r0.m0"),P.type(Number),P.nullable()],qo.prototype,"column",2);Pa([P.from("r0.m1"),P.type(Number),P.nullable()],qo.prototype,"row",2);Pa([P.from("r1"),P.type(Number),P.nullable()],qo.prototype,"ties",2);Pa([P.from("r2"),P.type(Number),P.nullable()],qo.prototype,"score",2);Pa([P.from("r3"),P.type(String),P.nullable()],qo.prototype,"color",2);Pa([P.from("r4"),P.type(Boolean),P.nullable()],qo.prototype,"playerPair",2);Pa([P.from("r5"),P.type(Boolean),P.nullable()],qo.prototype,"bankerPair",2);Pa([P.from("r6"),P.type(Boolean),P.nullable()],qo.prototype,"natural",2);Pa([P.from("r7"),P.type(Boolean),P.nullable()],qo.prototype,"lightning",2);Pa([P.from("r8"),P.type(Boolean),P.nullable()],qo.prototype,"isOdd",2);qo=Pa([P.Entity()],qo);var PF=Object.defineProperty,DF=Object.getOwnPropertyDescriptor,bl=(e,t,n,o)=>{for(var a=o>1?void 0:o?DF(t,n):t,r=e.length-1,s;r>=0;r--)(s=e[r])&&(a=(o?s(t,n,a):s(a))||a);return o&&a&&PF(t,n,a),a};let js=class extends P.Model{constructor(){super(...arguments);x(this,"currency");x(this,"minBet",0);x(this,"maxBet",0);x(this,"isOpenGame",!1);x(this,"maintainStatus",!1)}};bl([P.from("c0"),P.type(String)],js.prototype,"currency",2);bl([P.from("c1"),P.type(Number),P.nullable()],js.prototype,"minBet",2);bl([P.from("c2"),P.type(Number),P.nullable()],js.prototype,"maxBet",2);bl([P.from("c3"),P.type(Boolean),P.parse(Ft)],js.prototype,"isOpenGame",2);bl([P.from("c4"),P.type(Boolean),P.parse(Ft)],js.prototype,"maintainStatus",2);js=bl([P.Entity()],js);var MF=Object.defineProperty,NF=Object.getOwnPropertyDescriptor,Mo=(e,t,n,o)=>{for(var a=o>1?void 0:o?NF(t,n):t,r=e.length-1,s;r>=0;r--)(s=e[r])&&(a=(o?s(t,n,a):s(a))||a);return o&&a&&MF(t,n,a),a};let no=class extends P.Model{constructor(){super(...arguments);x(this,"gameId",0);
19x(this,"gameCoding","");x(this,"liveThumbnail",{S:"",XL:"",L:"",M:""});x(this,"onlinePlayers",0);x(this,"roadHistory",[]);x(this,"roadData",[]);x(this,"platformId",0);x(this,"casinoType",Bb.Other);x(this,"cardRevealDuration",Hb.DEFAULT);x(this,"betAmountSwitch",!1);x(this,"roadFilterSwitch",!1);x(this,"goodRoadType",null);x(this,"currenyConfigList",[]);x(this,"isCustomThemeUpload",!1);x(this,"currenyConfig");x(this,"isOriginData",!0);x(this,"gameType",mn.NormalGame);x(this,"platformName","");x(this,"platformLogo","");x(this,"maintainStatus",!1);x(this,"imgBackgroundColor","");x(this,"hotImgBackgroundColor","")}};Mo([P.from("g0"),P.type(Number),P.nullable()],no.prototype,"gameId",2);Mo([P.from("g1"),P.type(String),P.nullable()],no.prototype,"gameCoding",2);Mo([P.from("g2"),P.type(Object),P.parse(e=>{if(e){const t=Date.now();return{S:`${e.S}?t=${t}`,XL:`${e.XL}?t=${t}`,L:`${e.L}?t=${t}`,M:`${e.M}?t=${t}`}}return{S:"",XL:"",L:"",M:""}}),P.nullable()],no.prototype,"liveThumbnail",2);Mo([P.from("g3"),P.type(Number),P.nullable()],no.prototype,"onlinePlayers",2);Mo([P.from("g4"),P.type(Array),P.nullable()],no.prototype,"roadHistory",2);Mo([P.from("g5"),P.type(Array),hl(qo),P.nullable()],no.prototype,"roadData",2);Mo([P.from("g6"),P.type(Number),P.nullable()],no.prototype,"platformId",2);Mo([P.from("g7"),P.type(Number),P.nullable()],no.prototype,"casinoType",2);Mo([P.from("g8"),P.type(Number),P.nullable()],no.prototype,"cardRevealDuration",2);Mo([P.from("g9"),P.type(Boolean),P.parse(Ft)],no.prototype,"betAmountSwitch",2);Mo([P.from("g10"),P.type(Boolean),P.parse(Ft)],no.prototype,"roadFilterSwitch",2);Mo([P.from("g11"),P.type(Number),P.nullable()],no.prototype,"goodRoadType",2);Mo([P.from("g12"),P.type(Array),hl(js)],no.prototype,"currenyConfigList",2);Mo([P.from("g19"),P.type(Boolean),P.parse(Ft),P.nullable()],no.prototype,"isCustomThemeUpload",2);no=Mo([P.Entity()],no);var kF=Object.defineProperty,BF=Object.getOwnPropertyDescriptor,ja=(e,t,n,o)=>{for(var a=o>1?void 0:o?BF(t,n):t,r=e.length-1,s;r>=0;r--)(s=e[r])&&(a=(o?s(t,n,a):s(a))||a);return o&&a&&kF(t,n,a),a};let ba=class extends P.Model{constructor(){super(...arguments);x(this,"betAmountSwitch",!1);x(this,"cardRevealDuration",Hb.DEFAULT);x(this,"gameCategoryId",-1);x(this,"gameCode","");x(this,"gameId",-1);x(this,"platformName","");x(this,"platformId",-1);x(this,"gameSubclassId",-1);x(this,"roadFilterSwitch",!1);x(this,"casinoType",Bb.Other);x(this,"platformLogo","");x(this,"isOriginData",!0)}};ja([P.from("t1"),P.type(Boolean),P.parse(Ft)],ba.prototype,"betAmountSwitch",2);ja([P.from("t2"),P.type(Number),P.nullable()],ba.prototype,"cardRevealDuration",2);ja([P.from("t3"),P.type(Number),P.nullable()],ba.prototype,"gameCategoryId",2);ja([P.from("t4"),P.type(String),P.nullable()],ba.prototype,"gameCode",2);ja([P.from("t5"),P.type(Number),P.nullable()],ba.prototype,"gameId",2);ja([P.from("t6"),P.type(String),P.nullable()],ba.prototype,"platformName",2);ja([P.from("t7"),P.type(Number),P.nullable()],ba.prototype,"platformId",2);ja([P.from("t8"),P.type(Number),P.nullable()],ba.prototype,"gameSubclassId",2);ja([P.from("t9"),P.type(Boolean),P.parse(Ft)],ba.prototype,"roadFilterSwitch",2);ja([P.from("t10"),P.type(Number),P.nullable()],ba.prototype,"casinoType",2);ba=ja([P.Entity()],ba);var HF=Object.defineProperty,xF=Object.getOwnPropertyDescriptor,Zu=(e,t,n,o)=>{for(var a=o>1?void 0:o?xF(t,n):t,r=e.length-1,s;r>=0;r--)(s=e[r])&&(a=(o?s(t,n,a):s(a))||a);return o&&a&&HF(t,n,a),a};let Qi=class extends P.Model{constructor(){super(...arguments);x(this,"gameCount",0);x(this,"gameCategoryId",0);x(this,"platformId",0);x(this,"gameList",[])}static isThisType(t){return!!["gameCount","gameList","platformId"].every(o=>Reflect.has(t,o))}};Zu([P.from("t0"),P.type(Number),P.nullable()],Qi.prototype,"gameCount",2);Zu([P.from("t4"),P.type(Number)],Qi.prototype,"gameCategoryId",2);Zu([P.from("t9"),P.type(Number)],Qi.prototype,"platformId",2);Zu([P.from("g"),P.type(Array),P.nullable()],Qi.prototype,"gameList",2);Qi=Zu([P.Entity()],Qi);const Pg=class Pg{static async supplementPlatformInfo(t,n){await this.supplyIns.run(t,n)}static resetSupplementPlatformInfoStatus(){this.supplyIns.resetStatus()}static parseGameCategoriesInfoList(t=[]){const n=xa.parseArray(t,ho);
19return n.forEach(({list:o})=>{o.forEach(a=>{a.platformIcon=ra.parsePlatformItem(a)})}),n}static async parseCategoryGameList(t=[]){const n=xa.parseArray(t,zs);return await Promise.all(n.map(async o=>{await this.supplementPlatformInfo(o.list),o.list.forEach(a=>{a.gameIcon=ra.parseGameItem(a)})})),n}static parseGameCategoriesExtLinkInfoList(t=[]){var a;const n=Array.isArray(t)?t:(a=t==null?void 0:t.c)!=null?a:[],o=xa.parseArray(n,Tn);return o.forEach(({list:r})=>{r&&r.length>0&&r.forEach(s=>{s.platformIcon=ra.parsePlatformItem(s)})}),o}static async parseGameItemList(t=[],n){const o=xa.parseArray(t,_t);return await this.supplementPlatformInfo(o,n),o.forEach(a=>{a.gameIcon=ra.parseGameItem(a)}),o}static async parseSpecialGameItemList(t=[],n){const o=xa.parseArray(t,_t);return o.forEach((a,r)=>{a.selfParseSpecialGameProperty(t[r])}),await this.supplementPlatformInfo(o,n),o.forEach(a=>{a.gameIcon=ra.parseGameItem(a)}),o}static async parsePlatformAttachGamesList(t=[],n){const o=xa.parseArray(t,Qi);for(const a of o)a.gameList=await this.parseGameItemList(a.gameList,n);return o}static async parseWinnerGamesList(t){var o;const n=(o=t==null?void 0:t.hallRecords)==null?void 0:o.map(a=>{const r=new _t;return r.gameId=a.d,r.isCustomIcon=a.i,r.platformId=a.b,r.gameCategoryId=a.c,{winOriginalData:a,...r}});return await this.supplementPlatformInfo(n),{...t,hallRecords:n}}static async getPlatformCateExtLinkList(){const t=J().hasLogined;return z.request({method:"GET",url:"/api/game/hall/listPlatformCateExtLinkV2",params:{tg:Oi.isActivated?"tg":void 0}},{oss:{enable:!t},token:{type:t?"loginOnly":"staticOnly"},cache:{useCache:!0,expireOnloaded:!t},omitKey:["platformType"],error:{action:"noMessage"}}).then(n=>{var r,s,i,c,l;const o=(i=(s=(r=n==null?void 0:n.data)==null?void 0:r.data)==null?void 0:s.c)!=null?i:[];Qg.saveVersionInfo((l=(c=n==null?void 0:n.data)==null?void 0:c.data)==null?void 0:l.v);const a=this.parseGameCategoriesExtLinkInfoList(o);return this.supplyIns.initPlatformIdInfoMapper(a),a})}static async getSpecialGameList(){return z.request({method:"GET",url:"/api/game/hall/listSpecialGameV2"},{oss:{enable:!0},token:{type:"staticOnly"},cache:{useCache:!0},omitKey:["platformType"]}).then(async t=>{var a,r;const n=(r=await((a=t==null?void 0:t.data)==null?void 0:a.data))!=null?r:[];return await this.parseSpecialGameItemList(n)})}static async searchGameList(t,n){const o=_F();return z.request({method:"POST",url:"/api/game/hall/listSearchGameV2",data:{gameName:t,...o&&{botAccount:o},...Number.isFinite(n)&&{categoryId:n},...dt.enable}}).then(async a=>{var s,i;const r=(i=(s=a==null?void 0:a.data)==null?void 0:s.data)!=null?i:[];return this.parseGameItemList(r)})}static async getPlatformGameList({platformId:t,gameCategoryId:n}){return z.request({method:"GET",url:"/api/game/hall/listPlatformGameV2",params:{categoryId:n,platformId:t}},{oss:{enable:!0},token:{type:"staticOnly"},cache:{useCache:!0},omitKey:["platformType"]}).then(async o=>{var r,s;const a=(s=(r=o==null?void 0:o.data)==null?void 0:r.data)!=null?s:[];return this.parseGameItemList(a)})}static async getPlatformPaginationGameList({platformId:t,gameCategoryId:n,page:o}){return z.request({method:"GET",url:"/api/game/hall/listPlatformGameV2",params:{categoryId:n,page:o,platformId:t}},{oss:{enable:!0},token:{type:"staticOnly"},cache:{useCache:!0},omitKey:["platformType"]}).then(async a=>{var c;function r(l){return!!l.g1}const s=((c=a==null?void 0:a.data)==null?void 0:c.data)||[],i={total:0,gameList:[]};return r(s)?(i.total=s.g0,i.gameList=await this.parseGameItemList(s.g1)):(i.gameList=await this.parseGameItemList(s),i.total=i.gameList.length),i})}static async getCategoryPaginationGameList({activeType:t,template:n,activeId:o,javaArg:a}){return z.request({method:"POST",url:"/api/active/betToGame",data:{activeType:t,template:n,activeId:o,javaArg:a}},{token:{type:"tryLogined"},cache:{useCache:!0},omitKey:["platformType"]}).then(async r=>{var l,u,d;const s=((u=(l=r.data.data)==null?void 0:l.javaData)==null?void 0:u.data)||[],i=await this.parseCategoryGameList(s);return{game:((d=r.data.data)==null?void 0:d.categoryPlatformGame)||[],list:i}})}static async apiGetGameSubGameSummary({gameCategoryId:t}){return z.request({url:"/api/game/hall/listSubGameSummary",method:"GET",params:{categoryId:t}},{oss:{enable:!0},token:{type:"staticOnly"},cache:{useCache:!0},omitKey:["platformType"]}).then(async n=>{var a,r;const o=(r=(a=n==null?void 0:n.data)==null?void 0:a.data)!=null?r:[];return this.parsePlatformAttachGamesList(o)})}static async getHotGameList(){return z.request({method:"GET",url:"/api/game/hall/hotListV2"},{oss:{enable:!0},token:{type:"staticOnly"},cache:{useCache:!0},omitKey:["platformType"]}).then(t=>{var o,a;const n=(a=(o=t==null?void 0:t.data)==null?void 0:o.data)!=null?a:[];return this.parseGameItemList(n)})}static async getDemoGameList(){return z.request({method:"GET",url:"/api/game/hall/listTryGameV2"},{oss:{enable:!0},token:{type:"staticOnly"},cache:{useCache:!0},omitKey:["platformType"]}).then(async t=>{var o,a;const n=(a=(o=t==null?void 0:t.data)==null?void 0:o.data)!=null?a:[];return this.parseGameItemList(n)})}static async getRecentGameList(){return z.request({method:"POST",url:"/api/gameCenter/gameApi/recent-list/v3"},{cache:{useCache:!0},error:{action:"noMessage"}}).then(async t=>{var a,r,s,i;const n=(r=(a=t==null?void 0:t.data)==null?void 0:a.data)!=null?r:[];return{gameList:(s=await this.parseGameItemList(n))!=null?s:[],isCache:!!((i=t==null?void 0:t.data)!=null&&i.__isCache)}})}static async getCollectGameList(){return z.request({method:"POST",url:"/api/gameCenter/gameApi/favorite-list-all/v3"},{cache:{useCache:!0},error:{action:"noMessage"}}).then(async t=>{var a,r,s,i;const n=(r=(a=t==null?void 0:t.data)==null?void 0:a.data)!=null?r:[];return{gameList:(s=await this.parseGameItemList(n))!=null?s:[],isCache:!!((i=t==null?void 0:t.data)!=null&&i.__isCache)}})}static async apiGetGameUrl(t,n){const o=Td(t);if(!t.gameid&&n){const a=Rd("login:gameId=0");Object.assign(o,{callContext:JSON.stringify({...a,gameInfo:n})})}return z.request({url:"/api/gameCenter/gameApi/login",method:"POST",data:o},{crypto:{enable:!1},maxRetryCount:0,error:{action:"noMessage"}}).then(a=>a.data.data)}static async apiGetGameUrlBypassChecks(t){const n=Td(t);return z.request({url:"/api/gameCenter/gameApi/apiLogin",method:"POST",data:n},{maxRetryCount:0,error:{action:"noMessage"}}).then(o=>o.data.data)}static async apiGetLocalAccountGameUrl(t,n){const o=Td(t);if(!t.gameid&&n){const a=Rd("localLogin:gameId=0");Object.assign(o,{callContext:JSON.stringify({...a,gameInfo:n})})}return z.request({url:"/api/gameCenter/gameApi/localLogin",method:"POST",data:o},{crypto:{enable:!1},maxRetryCount:0,error:{action:"noMessage"}}).then(a=>a.data.data)}static async apiGetTgGameUrl(t){const n=Td(t);return z.request({url:"/api/gameCenter/gameApi/tgLogin",method:"POST",data:n},{maxRetryCount:0,error:{action:"noMessage"}}).then(o=>o.data.data)}static async apiGameApiLogin(t){return z.request({url:"/api/club/gameApi/login",method:"POST",data:t},{crypto:{enable:!0},maxRetryCount:0,error:{checkResCode:!0,action:"noMessage"}}).then(n=>n.data.data)}static async apiGetFavoriteIdList(){return z.request({url:"/api/gameCenter/gameApi/favoriteGameList",method:"POST"}).then(t=>{var n;return(n=t.data.data)!=null?n:[]})}static async apiAddFavorite(t,n){return z.request({url:"/api/gameCenter/addFavorite",method:"POST",data:{[n?"id":"delid"]:[{game_id:t.gameId,cate_id:t.platformId,c
19ategory_id:t.gameCategoryId}]}})}static async apiGameLogout(t,n=""){const o=Rd(n);return z.request({url:"/api/gameCenter/gameApi/logout",method:"POST",data:{...t,os_type:Am(),callContext:JSON.stringify(o)}},{crypto:{enable:!1},maxRetryCount:0}).then(a=>a.data.data)}static async apiGetLastGameInfo(){return z.request({url:"/api/gameCenter/gameApi/lastGameInfo",method:"POST",data:{os_type:Am()}}).then(t=>t.data.data)}static async apiSelfOpertedGameLogout(t,n=""){const o=Rd(n);return z.request({url:"/api/gameCenter/gameApi/logoutGame",method:"POST",data:{...t,os_type:Am(),callContext:JSON.stringify(o)}},{crypto:{enable:!1},maxRetryCount:0}).then(a=>a.data.data)}static async apiGetPlatformExchange(){return z.request({url:"/api/third/game/platformExchange/findListAll",method:"GET"},{oss:{enable:!0,force:!0},token:{type:"staticOnly"},cache:{useCache:!0},error:{action:"noMessage"},omitKey:["currency","language","platformType"]}).then(t=>t.data.data)}static async apiGetSelfOpertedDomains(){return z.request({method:"GET",url:"/gameApi/v1/hall/gameRule/saasStatic/loginUrl"},{oss:{enable:!0},token:{type:"staticOnly"},cache:{useCache:!0},error:{action:"noMessage"},omitKey:["platformType","language","currency"]}).then(t=>{var o;return(o=t==null?void 0:t.data.data)!=null?o:[]})}static async apiGetWinnerCarouselData(){return await z.request({url:"/api/lobby/winnerCarousel/result"},{omitKey:["language","platformType"],oss:{enable:!0,force:!0},cache:{useCache:!0},token:{type:"staticOnly"},error:{action:"noMessage"}}).then(async t=>{const n=t==null?void 0:t.data.data;return this.parseWinnerGamesList(n)})}static parseRealLiveGameLIst(t=[]){return xa.parseArray(t,no)}static async getLiveVideo(t){return z.request({method:"GET",url:"/api/game/hall/liveVideo",params:{gamePlatformId:t}},{omitKey:["platformType","currency","language"],oss:{enable:!0,force:!0},cache:{useCache:!0}}).then(n=>{var o,a;return this.parseRealLiveGameLIst((a=(o=n==null?void 0:n.data)==null?void 0:o.data)!=null?a:[])})}static parseRealLivePlatformList(t=[]){return xa.parseArray(t,ba)}static async getRealLivePlatform(){return z.request({method:"GET",url:"/api/game/hall/liveGame"},{omitKey:["platformType","currency","language"],oss:{enable:!0,force:!0}}).then(t=>{var n,o;return this.parseRealLivePlatformList((o=(n=t==null?void 0:t.data)==null?void 0:n.data)!=null?o:[])})}};x(Pg,"supplyIns",new pF(Pg));let Mt=Pg;const Jf=-1,wle=100,Lm={g6:!1,g7:!1,g8:!1},ep=Promise.resolve(),RL={g6:ep,g7:ep,g8:ep},dg=(e,t)=>{Lm[e]=!1,RL[e]=t.then(n=>{Lm[e]=n},()=>{Lm[e]=!1})},al=e=>RL[e],rl=()=>Lm,xb=new Map,Tm=new Map,EF=(e,t)=>(xb.set(e,new Set),Tm.set(e,t),t),UF=(e,t)=>{xb.set(e,new Set(t))},Ro=(e,t)=>{var n,o;return(o=(n=xb.get(e))==null?void 0:n.has(t))!=null?o:!1},ga=async e=>{let t=Tm.get(e);for(;t;){if(await t.catch(()=>{}),Tm.get(e)===t)return;t=Tm.get(e)}},GF=e=>{let t=0;return async n=>{const o=!!(n!=null&&n.force),a=++t;if(o||await al("g8"),!(!o&&rl().g8&&ms("apiGetGameCateExtLinkList"))&&(await ga("g8"),!(!o&&Ro("g8","platformCateExtLink"))))try{const r=await e.fetchList();if(a!==t)return;e.apply(r)}catch(r){console.warn("[fetchGameCategorieAndExtLinkList] failed:",r)}}},FF=["gameCategoriesInfoList","gameCategorieExtLink","gameCategoriesExtLinkInfoList","specialGameList","hotGameList","gameCountList","gamePlatformFirstPageList"],WF=["collectGameIdList","searchHistory","tryModeGameList","gameCategoryPlatformList","allGameList"],yu={LastLanguage:"web__lobby__persisted__lastLanguage",LastCurrency:"web__lobby__persisted__lastCurrency",LastThemeConfig:"web__lobby__persisted__lastThemeConfig"};class sl{static _checkChange(t,n){if(this._resultCache.has(t))return this._resultCache.get(t);const o=qe.localStorage.get(t),a=!!(o&&n!==o);return(a||!o)&&qe.localStorage.set(t,n),this._resultCache.set(t,a),a}
19static isLanguageChanged(){const t=Ge().language;return this._checkChange(yu.LastLanguage,t)}static isCurrencyChanged(){const t=ze().currency;return this._checkChange(yu.LastCurrency,t)}static isThemeFormatChanged(){const t=ue().siteInfos,n=`${t.type}-${t.skinTypeValue}-${t.backgroundColor}`;return this._checkChange(yu.LastThemeConfig,n)}static resetCache(){this._resultCache.clear()}}x(sl,"_resultCache",new Map);const VF=e=>{var n,o,a,r;const t=Dg(e);return(n=t==null?void 0:t.hotGameList)!=null&&n.length&&(t.hotGameList=t.hotGameList.map(s=>({...s,gameName:"",platformName:""}))),(o=t==null?void 0:t.specialGameList)!=null&&o.length&&(t.specialGameList=t.specialGameList.map(s=>({...s,gameName:""}))),(a=t==null?void 0:t.gameCategorieExtLink)!=null&&a.length&&(t.gameCategorieExtLink=t.gameCategorieExtLink.map(s=>({...s,linkName:""}))),(r=t==null?void 0:t.gameCategoriesInfoList)!=null&&r.length&&(t.gameCategoriesInfoList=t.gameCategoriesInfoList.map((s,i)=>{var c;return{...s,gameCategoryName:"",list:i===1?(c=s.list)==null?void 0:c.map(l=>({...l,brand:"",platformName:""})):s.list}})),t},$F=()=>({persist:[{storage:Yo({afterGet:e=>{if(!sl.isLanguageChanged())return e;try{const t=JSON.parse(e);return JSON.stringify(VF(t))}catch(t){return console.error("Language sensitive data sanitization failed:",t),e}}},"local"),paths:[...FF]},{storage:Yo(),paths:[...WF]}]});let Ic,il,wo,jh=!1,Kh,Qh,Xh;const Xi=e=>Number.isInteger(e)&&Number(e)>0,OL=e=>{if(typeof e=="number")return Xi(e)?e:void 0;if(typeof e=="string"&&e.trim()){const t=Number(e);return Xi(t)?t:void 0}},YF=e=>{if(typeof e!="number"&&(typeof e!="string"||!e.trim()))return;const t=Number(e);return t===qi.AllowList||t===qi.DenyList?t:void 0},PL=()=>({all:!1,categories:new Map}),qF=(e,t)=>{const n=OL(t.platformId);n!==void 0&&e.platformIds.add(n)},zF=(e,t)=>{var r;const n=OL(t.gameCategoryId);if(n===void 0)return;const o=(r=e.categories.get(n))!=null?r:{all:!1,platformIds:new Set},a=t.platformCategoryGame;if(a==null||!Array.isArray(a)){if(a!=null)return;o.all=!0,o.platformIds.clear(),e.categories.set(n,o);return}if(a.length===0||a.includes("all")){o.all=!0,o.platformIds.clear(),e.categories.set(n,o);return}if(!o.all){for(const s of a)s&&typeof s=="object"&&qF(o,s);o.platformIds.size>0&&e.categories.set(n,o)}},jF=e=>{const t=PL();if(typeof e!="string"||!e)return t;const n=e.trim();if(n==="all")return{...t,all:!0};try{const o=JSON.parse(n);if(o==="all")return{...t,all:!0};if(!Array.isArray(o))return t;for(const a of o)a&&typeof a=="object"&&zF(t,a)}catch(o){return t}return t},KF=(e,t)=>{if(wo)return;const n=YF(e);if(n!==void 0){il=n,wo=jF(t);return}il=qi.Unlimited,wo=PL()};let Zh=!1;const QF=e=>{Zh||(Zh=!0,console.warn("[tg-platform-scope] limitType is set but limitGames resolved to no rule, restriction is skipped:",e))},XF=()=>!!(wo!=null&&wo.all||wo!=null&&wo.categories.size),Jg=()=>{var i;const e=ug(),t=e?(i=ue().systemInfos)==null?void 0:i.botLimitMap:void 0,n=t==null?void 0:t[e],o=t&&Object.prototype.hasOwnProperty.call(t,e)?n:void 0,a=e?o:J().userInfos,r=a==null?void 0:a.limitType,s=a==null?void 0:a.limitGames;return(!jh||Kh!==e||Qh!==r||Xh!==s)&&Eb(),jh=!0,Kh=e,Qh=r,Xh=s,Ic!==void 0?Ic:(KF(r,s),il===qi.Unlimited?(a&&(Ic=!1),!1):XF()?(Ic=!0,!0):(QF(s),Ic=!1,!1))},ZF=()=>Jg(),Eb=()=>{Ic=void 0,jh=!1,Zh=!1,Kh=void 0,Qh=void 0,Xh=void 0,il=void 0,wo=void 0},DL=e=>Xi(e)?wo==null?void 0:wo.categories.get(e):void 0,JF=[Z.Merged,Z.Demo],e3=(e,t)=>Xi(e)&&JF.includes(e)&&Xi(t)?t:e,t3=e=>{const t=DL(e),n=!!(wo.all||t!=null&&t.all);return il===qi.DenyList?!n:n||!!(t!=null&&t.platformIds.size)},Jh=(e,t)=>{const n=DL(e),o=!!(wo.all||n!=null&&n.all||Xi(t)&&(n!=null&&n.platformIds.has(t)));return il===qi.DenyList?!o:o},ML=(e,t,n)=>{if(e===Z.Merged&&n&&Xi(t.platformId)){const o=n(e,t.platformId);if(o.length>0)return o.some(a=>Jh(a,t.platformId))}return Jh(e3(e,t.gameCategoryId),t.platformId)},tp=e=>Jg()?e.filter(t=>Jh(t.gameCategoryId,t.platformId)):e,Uv=(e,t,n)=>Jg()?t.filter(o=>ML(e,o,n)):t,Gv=(e,t)=>{var o;if(!Jg())return e;const n=[];for(const a of e){if(a.isExLink){n.push(a);continue}const r=(o=a.list)!=null?o:[];if(r.length===0){t3(a.gameCategoryId)&&n.push(a);continue}const s=r.filter(i=>ML(a.gameCategoryId,i,t));s.length!==0&&n.push(s.length===r.length?a:{...a,list:s})}return n},mg=(e,t)=>yI.includes(e)||!t?e:`${e}_${t}`,Fv=(e,t,n=50)=>{if(!t)return e.slice(0,n);const o=e.filter(r=>r.gameId!==t.gameId);return[t,...o].slice(0,n)},Wv=(e,t)=>
19{const n=n3(e,t),o=o3(n);return NL(o,e)},n3=(e,t)=>{var i,c,l;const{gameCategoryId:n,platformId:o}=e,a=mg(n,o),r=(i=t.gamePlatformFirstPageList[a])!=null?i:[],s=(c=t.gameCategoryPlatformList[a])!=null?c:[];if(Bg.includes(n)){const u=t.gameCategoriesInfoList.find(m=>m.gameCategoryId===n),d=u==null?void 0:u.list.find(m=>m.platformId===o&&!m.isPlatformBypassSubGame);return d!=null&&d.isSupportSubPage?[...r,...s]:(l=u==null?void 0:u.list)!=null?l:[]}return[...r,...s]},o3=e=>{const{isDemoMode:t}=J();return t?e.filter(n=>n==null?void 0:n.anchorSupport):e},NL=(e,t)=>{const{pageIndex:n,pageSize:o}=t,a=e.length;let r=e;if(o&&n){const s=(n-1)*o,i=Math.min(s+o,a);r=e.slice(s,i)}return{list:r,total:a}},a3=e=>{const{isDemoMode:t}=J();return t&&(e=e.filter(n=>n===null?!0:n.anchorSupport)),e},r3=(e,t)=>{const n=Array.isArray(t.matches)?t.matches:[t.matches],o=new Set(n);return e.filter(a=>o.has(a.gameCategoryId))},s3=(e,t)=>{const{isContainsNull:n=!1}=t,o=Array.isArray(t.matches)?t.matches:[t.matches],a=new Map;o.forEach(s=>{a.set(s,null)}),e.forEach(s=>{a.has(s.gameId)&&a.set(s.gameId,s)});const r=Array.from(a.values());return n?r:r.filter(Boolean)},i3=(e,t)=>{const n=Array.isArray(t.matches)?t.matches:[t.matches],o=new Map;n.forEach(s=>{o.set(s,[])});const a=n.reduce((s,i)=>(s[i]=new RegExp(M1(i),"i"),s),{});return function(){for(const i of e)for(const c of n)if(a[c].test(i.gameName)){o.get(c).push(i);break}}(),Cw(Array.from(o.values()))},c3=function(e,...t){const n={gameId:s3,gameName:i3,gameCategoryId:r3};let o=e.filter(Boolean);for(const a of t){const r=a.type||"gameId";try{o=n[r](o,a)}catch(s){o=[],console.error(s)}}return o=a3(o),o},e_=[Be.THEME_117,Be.THEME_132],ef=ke("winner-data",()=>{const e=O({hallRecords:[],winThreshold:0,winTimes:0,winTimesMax:0});return{winnerData:e,setWinnerData:async n=>{const o=on(),{language:a}=Ge();n.hallRecords=n.hallRecords.map(r=>{var i,c;const s=(c=(i=r.winOriginalData)==null?void 0:i.k)==null?void 0:c[a];if(!r.isSupportSubPage||r.gameCategoryId===Z.Lottery){const l=o.getPlatformInfoByCategory(r.gameCategoryId,r.platformId),u=new _t().parsePlatformCategoriesItem(l),d=ra.parseGameItem(u);return r.isSupportSubPage?{...r,gameIcon:d}:{...u,gameIcon:d,winOriginalData:r.winOriginalData}}else{const l=ra.parseGameItem({...r,gameType:mn.NormalGame});return{...r,gameName:s,gameIcon:l}}}),e.value=n}}},{persist:{storage:Yo(),paths:["winnerData"]}}),on=ke("gameData",()=>{const e=vt({tryModeGameList:{},searchHistory:[],allGameList:[],hotGameList:[],collectGameIdList:[],specialGameList:[],gameCategoryPlatformList:{},gamePlatformFirstPageList:{},gameCategoriesInfoList:[],gameCategoriesRawList:[],gameCategoriesExtLinkInfoList:[],gameCategorieExtLink:[],categoryGameList:[],categoryPlatformGame:[],platformExchangeObj:{memberIntoThirdLimit:{},platformCurrencyExchange:{}},gameCountList:{}}),t=J(),n=Ge(),o=Do(),a=ue(),{skinType:r}=nn(),s=()=>{var ie;return`${n.language}_${(ie=t.userInfos)==null?void 0:ie.currency}`},i=(ie,ge)=>{var Fe;const ee=s(),pe={...(Fe=e.tryModeGameList[ee])!=null?Fe:{recentGame:[],collectGame:[]},[ie]:ge};e.tryModeGameList={...e.tryModeGameList,[ee]:pe}},c=ie=>{if(ie.isPlatformBypassSubGame){const ge=se({type:"gameId",matches:ie.gameId})[0];ge&&(ie=ge)}if(Ct.isThisType(ie)){const ge=new _t().parsePlatformCategoriesItem(ie);return ie.isPlatformBypassSubGame&&(ge.isCustomIcon=!1,ge.isOriginImg=!0,ge.gameType=mn.NormalGame),ge.gameIcon=ra.parseGameItem(ge),ge}return ie},l=ie=>{var ge,ee;if(ie=c(ie),t.isLogined){const ce=T({gameCategoryId:Z.Recent}).list,pe=Fv(ce,ie);f({gameCategoryId:Z.Recent,gameList:pe})}else{const ce=s(),pe=(ee=(ge=e.tryModeGameList[ce])==null?void 0:ge.recentGame)!=null?ee:[],Fe=Fv(pe,ie);i("recentGame",Fe)}},u=ie=>{var ee,ce;ie=c(ie);const ge=[ie,...(ce=(ee=e.tryModeGameList[s()])==null?void 0:ee.collectGame)!=null?ce:[]];i("collectGame",ge)},d=ie=>{var ee,ce;const ge=((ce=(ee=e.tryModeGameList[s()])==null?void 0:ee.collectGame)!=null?ce:[]).filter(pe=>pe.gameId!==ie.gameId);i("collectGame",ge)},m=ie=>{e.searchHistory=ie},g=(ie,ge=!1)=>{ge?e.allGameList=ie:e.allGameList=yc([...ie,...e.allGameList],"gameId")},f=({gameCategoryId:ie,platformId:ge,gameList:ee})=>{const ce=mg(ie,ge),pe=15;ee.length>pe?(e.gamePlatformFirstPageList[ce]=ee.slice(0,pe),e.gameCategoryPlatformList[ce]=ee.slice(pe)):(e.gamePlatformFirstPageList[ce]=ee,e.gameCategoryPlatformList[ce]=[])},_=ie=>{var ce;const ge=`${ie}_`;for(const pe of new Set([...Object.keys(e.gamePlatformFirstPageList),...Object.keys(e.gameCategoryPlatformList)]))pe.startsWith(ge)&&(
19delete e.gamePlatformFirstPageList[pe],delete e.gameCategoryPlatformList[pe]);const ee=`${(ce=ze().currency)!=null?ce:""}_${ge}`;for(const pe of Object.keys(e.gameCountList))pe.startsWith(ee)&&delete e.gameCountList[pe]},h=C(()=>{const ie=new Set,ge=new Map;if(!Ke.isUseCategoryMerge)return{siblingIds:ie,platformToOrigCatIds:ge};const ee=e.gameCategoriesInfoList.find(ce=>ce.gameCategoryId===Z.Merged);if(!ee||!ee.isServerOpen)return{siblingIds:ie,platformToOrigCatIds:ge};for(const ce of e.gameCategoriesInfoList){const pe=ce.gameCategoryId===Z.Merged;if(!(!ce.isMerged&&!pe)&&!(!pe&&!ce.isServerOpen)){ie.add(ce.gameCategoryId);for(const Fe of ce.list){if(Fe.gameCategoryId===Z.Merged)continue;const Ne=ge.get(Fe.platformId);Ne?Ne.includes(Fe.gameCategoryId)||Ne.push(Fe.gameCategoryId):ge.set(Fe.platformId,[Fe.gameCategoryId])}}}return{siblingIds:ie,platformToOrigCatIds:ge}}),p=(ie,ge)=>ge===Z.Merged?h.value.siblingIds.has(ie.gameCategoryId):ie.gameCategoryId===ge,y=ie=>ie===Z.Merged?Array.from(h.value.siblingIds):ie,b=(ie,ge)=>{const ee=h.value;return ie!==Z.Merged&&ee.siblingIds.has(ie)&&(!ge||ee.platformToOrigCatIds.has(ge))},v=(ie,ge)=>{var ee;return ie!==Z.Merged?[ie]:(ee=h.value.platformToOrigCatIds.get(ge))!=null?ee:[]},A=async(ie,ge)=>{const ee=await Promise.all(ie.map(ce=>ge(ce).catch(()=>{})));return yc(ee.flatMap(ce=>ce!=null?ce:[]),"gameId")},L=async(ie,ge,ee)=>{var pe;let ce=v(ie,ge);if(!(ie===Z.Merged&&(ce=ce.filter(Fe=>{var Ne;return(Ne=M(Fe,ge))==null?void 0:Ne.isSupportSubPage}),ce.length===0)))return ce.length>1?A(ce,ee):ee((pe=ce[0])!=null?pe:ie)},T=ie=>{if(ie.gameCategoryId!==Z.Merged)return Wv(ie,e);const ge=v(ie.gameCategoryId,ie.platformId);if(ge.length===0)return{list:[],total:0};const ee=ge.flatMap(ce=>Wv({...ie,gameCategoryId:ce,pageIndex:void 0,pageSize:void 0},e).list.filter(pe=>pe.platformId===ie.platformId));return NL(yc(ee,"gameId"),ie)},I=GF({fetchList:()=>Mt.getPlatformCateExtLinkList(),apply:ie=>{G(ie);const ge=ie.filter(ee=>ee.isExLink).map(ee=>({...ee,linkName:ee.gameCategoryName}));N(ge)}}),R=ie=>{var ge,ee;return Uv(ie,(ee=(ge=e.gameCategoriesInfoList.find(ce=>ce.gameCategoryId===ie))==null?void 0:ge.list)!=null?ee:[],v)},D=ie=>{var ee;const ge=e.gameCategoriesInfoList.find(ce=>ce.gameCategoryId===ie);return ge!=null&&ge.isServerOpen?!0:ge!=null&&ge.isMerged&&ie!==Z.Merged?!!((ee=e.gameCategoriesInfoList.find(ce=>ce.gameCategoryId===Z.Merged))!=null&&ee.isServerOpen):!1},M=(ie,ge)=>{var pe;const ee=e.gameCategoriesInfoList.find(Fe=>Fe.gameCategoryId===ie);
19return Uv(ie,(pe=ee==null?void 0:ee.list)!=null?pe:[],v).find(Fe=>Fe.platformId===ge&&!Fe.isPlatformBypassSubGame)},B=async()=>{if(await ga("g6"),Ro("g6","winnerCarousel"))return;const{setWinnerData:ie}=ef(),ge=await Mt.apiGetWinnerCarouselData();ge!=null&&ge.hallRecords&&ie(ge)},E=async()=>{if(t.isTryMode)return;const ie=await Mt.apiGetFavoriteIdList();e.collectGameIdList=ie},Y=ie=>{e.collectGameIdList=ie},H=C(()=>{var pe,Fe;const ie=s(),ge=T({gameCategoryId:Z.Collect}).list.map(Ne=>Ne==null?void 0:Ne.gameId),ee=N1([...ge,...e.collectGameIdList]),ce=(Fe=(pe=e.tryModeGameList[ie])==null?void 0:pe.collectGame)!=null?Fe:[];return t.hasLogined?ee:ce.map(Ne=>Ne==null?void 0:Ne.gameId)}),F=ie=>{const ge=ie.find(Ne=>Ne.gameCategoryId===Z.Merged);if(!Ke.isUseCategoryMerge||!ge||!ge.isServerOpen)return ie.map(Ne=>Ne.gameCategoryId===Z.Merged?{...Ne,display:!1}:Ne);const ee=[],ce=ie.map(Ne=>Ne.isMerged&&Ne.gameCategoryId!==Z.Merged?(Ne.isServerOpen&&ee.push(...Ne.list),{...Ne,display:!1}):Ne),pe=ce.findIndex(Ne=>Ne.gameCategoryId===Z.Merged);if(pe===-1)return ce;const Fe=ce[pe];return ce[pe]={...Fe,display:!!Fe.isServerOpen&&ee.length>0,list:ee},ce},Q=ie=>{const ge=new Set([Z.Hot,Z.Recent,Z.Collect,Z.Demo,Z.Search,Z.ClubRoom]),ee=ie.find(ce=>!ge.has(ce.gameCategoryId)&&!ce.isExLink&&ce.display);ee&&(ee.isFirstThirdPartyCategory=!0)},G=ie=>{const ge=ie.reduce((ce,pe)=>{var md,By;if(!e_.includes(r)&&pe.gameCategoryId===Z.ClubRoom)return ce;const Ne=t.isDemoMode?pe.list.filter(K0=>K0.anchorSupport):pe.list,Vn=pe.gameCategoryId===Z.Merged,Ma=!!pe.isServerOpen,Ss=Vn||Ne.length>0?pe.isServerOpen:!1,Ll=(md=a.homeLayoutInfos)==null?void 0:md.platformIcon,Mf=((By=a.homeLayoutInfos)==null?void 0:By.gameIcon)===he.VerticalMask&&Ll===Qt.EuropeanAmerican?pe.appVertical:pe.appSquare;return ce.push({...pe,listRowCount:Mf,display:Ss,isServerOpen:Ma,list:Ne}),ce},[]),ee=F(ge);Q(ee),e.gameCategoriesRawList=ie,e.gameCategoriesInfoList=ee.filter(ce=>!ce.isExLink),e.gameCategoriesExtLinkInfoList=ee},N=ie=>{e.gameCategorieExtLink=ie},$=(ie=[])=>{e.hotGameList=ie.filter(ge=>ge.gameCategoryId!==Z.ClubRoom)},X=C(()=>tp(e.hotGameList)),j=C(()=>ZF()),te=C(()=>j.value||!X.value.length),K=async()=>{if(await al("g8"),rl().g8&&ms("apiGetHotGameList")||(await ga("g8"),Ro("g8","hotGameList")))return e.hotGameList;const ie=await Mt.getHotGameList();return $(ie),ie},q=async ie=>{const ge=await Mt.apiGetGameSubGameSummary({gameCategoryId:ie});for(const ee of ge){const{platformId:ce,gameList:pe,gameCount:Fe}=ee,Ne=mg(ie,ce);an(Ne,Fe),f({gameCategoryId:ie,platformId:ce,gameList:pe})}},ae=C(()=>(ie=Z.Hot,ge=!1)=>{const ee=ie===Z.Hot?X.value:X.value.filter(ce=>p(ce,ie));if(t.isDemoMode&&!ge){const ce=o==null?void 0:o.isIconStyleVertical;return ee.reduce((pe,Fe)=>(pe.length>=100||Fe.anchorSupport&&pe.push({...Fe,customLargeIcon:ce}),pe),[])}return ee}),me=async()=>{if(await al("g8"),rl().g8&&ms("apiGetSpecialGameList")||(await ga("g8"),Ro("g8","specialGameList")))return;const ie=await Mt.getSpecialGameList();de(ie)},de=ie=>{e.specialGameList=ie},ne=async()=>{if(!t.hasLogined)return oe.value();const ie=await Mt.getCollectGameList(),ge=ie.gameList;return ie.isCache?oe.value():(f({gameCategoryId:Z.Collect,platformId:Z.Collect,gameList:ge}),U.value=ge,ge)},U=O([]),W=()=>{var ee,ce;const ie=s(),ge=t.hasLogined?T({gameCategoryId:Z.Collect}).list:(ce=(ee=e.tryModeGameList[ie])==null?void 0:ee.collectGame)!=null?ce:[];U.value=[...ge]},oe=C(()=>{const ie=s();return(ge,ee=!1)=>{var Fe,Ne;let pe=t.hasLogined?T({gameCategoryId:Z.Collect}).list:(Ne=(Fe=e.tryModeGameList[ie])==null?void 0:Fe.collectGame)!=null?Ne:[];return ee&&U.value.length&&(pe=U.value),pe=tp(pe),ge?pe.filter(Vn=>p(Vn,ge)):pe}}),be=async()=>{if(!t.hasLogined)return Ie.value();const ie=await Mt.getRecentGameList(),ge=ie.gameList;return ie.isCache?Ie.value():(f({gameCategoryId:Z.Recent,platformId:Z.Recent,gameList:ge}),ge)},Ie=C(()=>{const ie=s();return ge=>{var pe,Fe;const ee=t.hasLogined?T({gameCategoryId:Z.Recent}).list:(Fe=(pe=e.tryModeGameList[ie])==null?void 0:pe.recentGame)!=null?Fe:[],ce=tp(ee);return ge?ce.filter(Ne=>p(Ne,ge)):ce}}),Me=async()=>{const ie=await Mt.getDemoGameList();return f({gameCategoryId:Z.Demo,platformId:Z.Demo,gameList:ie.filter(ge=>ge.gameCategoryId!==Z.ClubRoom)}),ie},et=async(ie="",ge)=>{const ee=ie.trim();if(!ee)return;const ce=await Mt.searchGameList(ee,ge);return g(ce.filter(pe=>pe.gameCategoryId!==Z.ClubRoom)),ce},se=(...ie)=>{const ge=yc([...e.allGameList,...e.specialGameList,...e.hotGameList],"gameId");return c3(ge,...ie)},Ae=async(ie,ge)=>{var pe,Fe;e.gameCategoriesInfoList.length===0&&await I();const ee=(Fe=(pe=e.gameCategoriesInfoList.find(Ne=>Ne.gameCategoryId===ie))==null?void 0:pe.list)!=null?Fe:[],ce=ee==null?void 0:ee.find(Ne=>Ne.platformId===ge);return!!(ce!=null&&ce.platformId)},Je=({gameCategoryId:ie,platformId:ge})=>L(ie,ge,async ee=>{const ce={gameCategoryId:ee,platformId:ge};if(!await Ae(ee,ge))return;const Fe=await Mt.getPlatformGameList(ce);return f({...ce,gameList:Fe}),g(Fe),Fe}),wt=({gameCategoryId:ie,platformId:ge,page:ee})=>!Et.subUsePagination()||t.isDemoMode?Je({gameCategoryId:ie,platformId:ge}):L(ie,ge,async ce=>{const pe={gameCategoryId:ce,platformId:ge};if(!await Ae(ce,ge))return;let Ne={total:0,gameList:[]};try{Ne=await Mt.getPlatformPaginationGameList({...pe,page:1})}catch(Tl){Ne=await Mt.getPlatformPaginationGameList(pe)}const Vn=T(pe);let Ma=Ne.gameList;const Ss=ee===1&&Ne.total>Ne.gameList.length,Ll=Vn.total===Ne.total;return Ss?(Ll&&(Ma=[...Ne.gameList,...Vn.list.slice(Ne.gameList.length)]),Mt.getPlatformPaginationGameList({...pe,page:2}).then(Tl=>{const Rl=[...Ne.gameList,...Tl.gameList];f({...pe,gameList:Rl}),g(Rl)}
19)):g(Ma),f({...pe,gameList:Ma}),Ma}),Dt=ie=>{e.categoryGameList=ie},xn=ie=>{e.categoryPlatformGame=ie},pt=ie=>{const ge=e.categoryGameList;ie.forEach(ee=>{const ce=ge.find(pe=>pe.gameCategoryId===ee.gameCategoryId);ce?(ce.list=yc([...ce.list,...ee.list],"webId"),ce.total=ee.total):ge.push(ee)})},xt=async({activeId:ie,activeType:ge,template:ee,javaArg:ce,append:pe=!1})=>{const Fe=await Mt.getCategoryPaginationGameList({activeId:ie,activeType:ge,template:ee,javaArg:JSON.stringify(ce)});if(pe)pt(Fe.list);else{if(ce.gameCategoryId===Jf){let Ne=0;const Vn=Fe.list.reduce((Ma,Ss)=>(Ne+=Ss.total||0,Ma.push(...Ss.list),Ma),[]);if(!Vn.length){Dt([]);return}Dt([{webId:`search-${Jf}`,gameCategoryId:Jf,gameCategoryName:"",total:Ne,list:Vn}]);return}Dt(Fe.list),xn(Fe.game)}},Pn=async()=>{if(!t.hasLogined)return;const ie=await Mt.apiGetPlatformExchange();ie&&(e.platformExchangeObj=ie)},an=(ie,ge)=>{var ce;const ee=(ce=ze().currency)!=null?ce:"";e.gameCountList[ee+"_"+ie]=ge},ro=ie=>{var ee;const ge=(ee=ze().currency)!=null?ee:"";return e.gameCountList[ge+"_"+ie]},Xa=()=>{e.allGameList=[]};return{...ss(e),gameCategoriesInfoList:C(()=>Gv(e.gameCategoriesInfoList,v)),gameCategoriesExtLinkInfoList:C(()=>Gv(e.gameCategoriesExtLinkInfoList,v)),addRecentGame:l,addTryModeCollectGame:u,delTryModeCollectGame:d,setSearchHistory:m,setAllGameList:g,setGameCategoryPlatformList:f,clearGameCategoryPlatformList:_,getGameListByCategoryAndPlatform:T,fetchGameCategorieAndExtLinkList:I,getCategoriesPlatformList:R,getPlatformInfoByCategory:M,fetchPlatformPaginationGameList:wt,fetchCategoryPaginationGameList:xt,getAllCollectIdList:H,fetchHotGameList:K,getHotGameList:ae,fetchSpecialGameList:me,setSpecialGameList:de,fetchCollectGameList:ne,getCollectGameList:oe,fetchCollectIdList:E,setCollectGameIdList:Y,freshConsistentCollectList:W,fetchRecentGameList:be,getRecentGameList:Ie,fetchDemoGameList:Me,searchGameList:et,getFilteredGameList:se,fetchPlatformGameList:Je,fetchPlatformExchangeObj:Pn,setGameCategoriesInfoList:G,setGameCategorieExtLink:N,setHotGameList:$,fetchGameSubGameSummary:q,getGameCountList:ro,setGameCountList:an,fetchWinnerData:B,getCategoriesIsOpen:D,getCategoryIdMatcher:y,shouldRouteToMerged:b,resolveOriginalCategoriesByPlatform:v,shouldHideHotCategory:te,shouldHideTgDerivedCategory:j,resetData:Xa,setCategoryGameList:Dt}},{...$F()}),kL=e=>{J().isLogined||(_a()?aG("/home/subgame",{gameCategoryId:String(Z.Demo),platformId:`${Z.Demo}${Ta}`,from:e==null?void 0:e.from}):Cr(Z.Demo,`${Z.Demo}${Ta}`,"push",e))},Cr=(e,t,n="push",o)=>{Oe()[n]({name:k.SUB_GAME,query:{gameCategoryId:String(e),platformId:t?String(t):void 0,from:o==null?void 0:o.from}})},BL=(e,t,n="push",o)=>{const{shouldRouteToMerged:a,getCategoriesIsOpen:r}=on();let s=Number(e);if(!VM.includes(s)){if(!r(s))return;s=a(s,Number(t))?Z.Merged:s}Cr(s,t,n,o)},HL=()=>{Oe().push({name:k.GAME_SEARCH})},l3=()=>{Cr(Z.Hot,`${Z.Hot}${Ta}`)},u3=()=>{Cr(Z.Collect,`${Z.Collect}${Ta}`)},d3=()=>{Cr(Z.Recent,`${Z.Recent}${Ta}`)},tf=()=>{Oe().push({name:k.GAME})},m3=()=>{Oe().push({name:k.CASINO})},g3=()=>{const e=Oe(),t=e.route.query;e.route.name!==k.GAME_EMBEDDED&&e.push({query:t.scene?{scene:t.scene}:void 0,name:k.GAME_EMBEDDED})},f3=()=>{Oe().push({name:k.SPORT})},p3=e=>{Oe().push({name:k.LOTTERY_HOME,query:{id:e}})},Ub=e=>Nb({url:e}),Gb=(e,t,n)=>{var i;if(t&&![or.Platform,or.Event,or.Task].includes((e==null?void 0:e.type)||or.None)){switch(e==null?void 0:e.type){case or.OtherUrl:{n===$h.IFrame?Ub(t):wm(t);break}case or.OtherUrlWithUserId:{const c=(i=J().userInfos)==null?void 0:i.username,l=c?ot.MD5(String(c)).toString().slice(-8):"";let u=`${t}${l}`;/^https?:\/\//i.test(u)||(u="http://"+u),n===$h.IFrame?Nb({url:u}):wm(u);break}default:wm(t)}return}const{t:o}=we(),{type:a,value:r,value2:s}=e||{};switch(a){case or.Platform:{const{getPlatformInfoByCategory:c}=on(),l=c(Number(r),Number(s));if(!l){_o.error({message:()=>o("lobby.game.platformClose")});break}Ki.openGame(l);break}case or.Event:{if(!ma())return;r&&Ev().then(c=>{c!=null&&c.goEventDetail&&typeof(c==null?void 0:c.goEventDetail)=="function"&&c.goEventDetail(Number(r),!0)});break}case or.Task:{if(!ma())return;Ev().then(c=>{c!=null&&c.toTaskPage&&typeof(c==null?void 0:c.toTaskPage)=="function"&&c.toTaskPage(LL(Number(r))||void 0)});break}}},Ile=Object.freeze(Object.defineProperty({__proto__:null,goCasioPage:m3,goEmbeddedPage:g3,goExternalLinkOrCommonPage:Gb,goHomePage:tf,goLotteryPage:p3,goSearchGamePage:HL,goSelfSportPage:f3,goSubGameC
19ollectPage:u3,goSubGameDemoPage:kL,goSubGameHotPage:l3,goSubGameMergedAwarePage:BL,goSubGamePage:Cr,goSubGameRecentPage:d3,openExternal:Ub},Symbol.toStringTag,{value:"Module"})),xL=(e="/",t=!0,n=!0,o={})=>{const a=Qm(To()),r=Ra(e.startsWith("/")?`${window.location.origin}${e}`:e,{...t?a:{},...o}),s=Qe(),i=s.isIos||s.isMacos||s.isIpad;setTimeout(()=>{location.href=r},n&&i?700:0)},h3=()=>{xL("/",!0)},Vv=async(e="",t={})=>{const{domainListMap:n}=Ht(),{agentDomain:o,lobbyDomain:a}=n,{createURLTokenQuery:r}=tn(),{uuid:s}=jn(),{_ti:i,_tm:c}=r({replace:!0}),l=i?{...pb(s),...hb(J().getFingerId)}:{},u=Qm(To()),d=Ge().language;if(o.length){const m=To();let g;m["fixed.referDomain"]&&(g=decodeURIComponent(m["fixed.referDomain"]));let f;if(!g){const[h,...p]=a;await jm(h,"web").then(y=>{f=y.url}).catch(async()=>{await Promise.any(p.map(y=>jm(y,"web"))).then(y=>{f=y.url})})}const _=Ra(`${g||f}${e}`,{_ti:i,_tm:c,...l,languageCode:d,...t,...u});window.open(_,"_blank")}else{const m=Ra(`${window.location.origin}${e}`,{languageCode:d,...t,...u});window.open(m,"_blank")}};var rc=(e=>(e[e.DEFAULT=0]="DEFAULT",e[e.ACTIVITY=101001e3]="ACTIVITY",e[e.TASK=101002e3]="TASK",e[e.LUCKY_WHEEL=101003e3]="LUCKY_WHEEL",e[e.BLIND_BOX=101004e3]="BLIND_BOX",e[e.REBATE=101005e3]="REBATE",e[e.INTEREST=101006e3]="INTEREST",e[e.VIP_REWARD=101007e3]="VIP_REWARD",e[e.FINANCE_SVIP=101008e3]="FINANCE_SVIP",e[e.PROVIDENT_FUND=101009e3]="PROVIDENT_FUND",e[e.COUPON=10101e4]="COUPON",e[e.SURPRISE=101011e3]="SURPRISE",e[e.CREDIT_LOAN=101012e3]="CREDIT_LOAN",e[e.MALL=101013e3]="MALL",e[e.QUICK_ENTRY=101014e3]="QUICK_ENTRY",e[e.RECEIVE_LIMIT=101015e3]="RECEIVE_LIMIT",e[e.REGISTER_SUCCESS_POPUP=102001e3]="REGISTER_SUCCESS_POPUP",e[e.TEMP_ACCOUNT_UPGRADE_POPUP=102002e3]="TEMP_ACCOUNT_UPGRADE_POPUP",e[e.KYC_RECHARGE=102004e3]="KYC_RECHARGE",e[e.HOME_TOP=103001e3]="HOME_TOP",e[e.HOME_MIDDLE=103002e3]="HOME_MIDDLE",e[e.HOME_BOTTOM=103003e3]="HOME_BOTTOM",e[e.HOME_SIDEBAR=103004e3]="HOME_SIDEBAR",e[e.PROFILE=103005e3]="PROFILE",e[e.MULTI_WALLET_DROPDOWN=103006e3]="MULTI_WALLET_DROPDOWN",e[e.BANNER=103007e3]="BANNER",e[e.MARKETING_AD=103008e3]="MARKETING_AD",e[e.MARQUEE_LOGO=103009e3]="MARQUEE_LOGO",e[e.MESSAGE_POPUP=10301e4]="MESSAGE_POPUP",e[e.FOOTER=103011e3]="FOOTER",e[e.SELF_GAME=104001e3]="SELF_GAME",e[e.THIRD_PARTY_GAME=104002e3]="THIRD_PARTY_GAME",e[e.BETTING_TASK=105001e3]="BETTING_TASK",e[e.RECHARGE_DETAILS=105001001]="RECHARGE_DETAILS",e[e.RECHARGE_INFO=105001002]="RECHARGE_INFO",e[e.SMART_GUIDE_RECHARGE_POPUP=105001003]="SMART_GUIDE_RECHARGE_POPUP",e[e.CLUB_MANAGEMENT=106001e3]="CLUB_MANAGEMENT",e))(rc||{}),_3=(e=>(e[e.unclaimed=1]="unclaimed",e[e.claimed=2]="claimed",e))(_3||{}),b3=(e=>(e[e.unclaimed=0]="unclaimed",e[e.claimed=1]="claimed",e))(b3||{}),Fi=(e=>(e[e.ANNOUNCEMENT=2]="ANNOUNCEMENT",e[e.NOTICE=1]="NOTICE",e[e.MARQUEE=3]="MARQUEE",e[e.SERVICE=4]="SERVICE",e[e.FEEDBACK=5]="FEEDBACK",e[e.PLAZZA=6]="PLAZZA",e))(Fi||{}),Rm=(e=>(e[e.NOTICE=1]="NOTICE",e[e.ANNOUNCEMENT=2]="ANNOUNCEMENT",e[e.PUBLICIZE=4]="PUBLICIZE",e))(Rm||{}),ou=(e=>(e[e.ANNOUNCEMENT=2]="ANNOUNCEMENT",e[e.NOTICE=1]="NOTICE",e[e.MARQUEE=3]="MARQUEE",e[e.FRAME=4]="FRAME",e[e.INDEX_PAGE=99]="INDEX_PAGE",e))(ou||{}),y3=(e=>(e[e.OPEN=1]="OPEN",e[e.CLOSE=0]="CLOSE",e))(y3||{}),v3=(e=>(e[e.ON=0]="ON",e[e.CLOSE=1]="CLOSE",e))(v3||{}),S3=(e=>(e[e.CLOSE=0]="CLOSE",e[e.ON=1]="ON",e))(S3||{}),C3=(e=>(e[e.FOLLOWSKIN=0]="FOLLOWSKIN",e[e.NOBACKGROUND=1]="NOBACKGROUND",e))(C3||{}),w3=(e=>(e.SERVICE="service",e.ANNOUNCEMENT="annoucement",e.NOTICE="notice",e.MARQUEE="marquee",e.FEEDBACK="feedback",e))(w3||{}),Zn=(e=>(e[e.CLOSE=0]="CLOSE",e[e.OPEN=1]="OPEN",e))(Zn||{}),I3=(e=>(e[e.CLOSE=0]="CLOSE",e[e.OPEN=1]="OPEN",e[e.SHUT_DOWN=2]="SHUT_DOWN",e))(I3||{}),A3=(e=>(e[e.CLOSE=0]="CLOSE",e[e.OPEN=1]="OPEN",e[e.OPEN_REQUIRED=2]="OPEN_REQUIRED",e))(A3||{});const Ale={wechat:"user_wechat_switch",telegram:"user_telegram_switch",facebook:"user_facebook_switch",whatsapp:"user_whatsapp_switch",twitter:"userTwitterSwitch",zalo:"userZaloSwitch",line:"userLineSwitch",threads:"userThreadsSwitch",instagram:"userInstagramSwitch"};var Vc=(e=>(e[e.CurrentWindow=1]="CurrentWindow",e[e.NewWindow=2]="NewWindow",e[e.CurrentWindowHaveBack=3]="CurrentWindowHaveBack",e))(Vc||{});const np="k$P9m*N2s&V5x!R8z#L4j@F7b^W1t+Q0",L3=e=>{if(!e)return!1;try{const n=decodeURIComponent(e).split("?")[1];return n?new URLSearchParams(n).get("encryptType")==="aes":!1}catch(t){return console.warn("Failed to parse nested URL parameters:",t),!1}};function T3(e){const{url:t}=e||{},n=O(L3(t)),o=(s,i)=>{const c=ot.enc.Utf8.parse(i||np),l=typeof s=="string"?s:JSON.stringify(s),u=ot.enc.Utf8.parse("0000000000000000");
19return ot.AES.encrypt(l,c,{iv:u,mode:ot.mode.CBC,padding:ot.pad.Pkcs7}).toString()},a=(s,i)=>{const c=ot.enc.Utf8.parse(i||np),l=ot.enc.Utf8.parse("0000000000000000");return ot.AES.decrypt(s,c,{iv:l,mode:ot.mode.CBC,padding:ot.pad.Pkcs7}).toString(ot.enc.Utf8)};return{isEncryptEnabled:n,secretKey:np,encryptData:o,decryptData:a,decryptToObject:(s,i)=>{const c=a(s,i);return JSON.parse(c)}}}var R3=(e=>(e.MAX="maximized",e.MIN="minimized",e))(R3||{}),O3=(e=>(e.UKEFU='[id="ukefu-point"]',e.LIVECHAT='[id="chat-widget-container"]',e.MKEFU='[id="meiqia-container"]',e.LINKCHAT='[id="icEntry"]',e.INTERCOM='[class="intercom-lightweight-app-launcher intercom-launcher"]',e.INTERCOM_OPEN='[name="intercom-launcher-frame"]',e.SALE_SMARTLY_CHAT='[id="ss-chat-p"]',e.QIABOT='[id="qiabot-wrapper"]',e.CHATBOT='[id="K_L_D"]',e.ONLINEHELP='[id^="onlinehelp-button-"]',e))(O3||{}),EL=(e=>(e[e.Home=0]="Home",e[e.All=1]="All",e))(EL||{});const P3=()=>{const{siteCode:e}=Ze();return z.request({url:"/api/gohal/staffAllV3",params:{siteCode:e},method:"GET"},{oss:{enable:!0},token:{type:"staticOnly"},cache:{useCache:!0},omitKey:["platformType"]}).then(t=>t.data.data)},UL=[k.PLAZZA,k.PLAZZA_PUBLISHER,k.PLAZZA_POST,k.PLAZZA_SEARCH,k.FORBIDDEN_SELF,k.MATCH_NEWS,k.ABOUT_US,k.ABOUT_US_DETAIL,k.COUPON,k.SUB_GAME,k.MORE_CATEGORY],D3={get hasTabBar(){var o;const t=Oe().router.options.routes,n=a=>a.reduce((r,s)=>{var i;return(i=s.meta)!=null&&i.showTabbar&&s.name&&!UL.includes(s.name)&&r.push(s.name),s.children&&r.push(...n(s.children)),r},[]);return n((o=t[0].children)!=null?o:[])}},M3="-1",Ju=ke("service",()=>{const e=Bn(),t=J(),n=O(!1),o=O(null),a=O(!1),r=O(!1),s=O(!1),i=vt({customer:{customerContentConfig:[],onlineCustomers:[],otherCustomers:[],liveChatCustomer:{}},hasQuestion:0,question:[]}),c=S=>{o.value=S},l=S=>{a.value=S},u=async S=>{var R,D,M,B,E,Y,H,F;if(!S){l(!0);const[Q,G]=await Ee(P3());if(l(!1),Q){c(Q);return}c(null),S=G,r.value=!0}const I=(D=(R=S==null?void 0:S.customer)==null?void 0:R.onlineCustomers)!=null?D:[];i.customer={onlineCustomers:I,otherCustomers:(B=(M=S==null?void 0:S.customer)==null?void 0:M.otherCustomers)!=null?B:[],liveChatCustomer:(Y=(E=S==null?void 0:S.customer)==null?void 0:E.liveChatCustomer)!=null?Y:{},customerContentConfig:(F=(H=S==null?void 0:S.customer)==null?void 0:H.customerContentConfig)!=null?F:[]},i.hasQuestion=S.hasQuestion,S.question&&(i.question=S.question),s.value=!0},d=C(()=>{var S;return(S=i==null?void 0:i.customer)==null?void 0:S.liveChatCustomer}),m=C(()=>{var S;return(S=i==null?void 0:i.customer)==null?void 0:S.onlineCustomers}),g=C(()=>{var I,R;return(R=(I=t.userInfos)==null?void 0:I.vip_level)!=null?R:0}),f=C(()=>{var S;return((S=m.value)!=null?S:[]).filter(I=>GL(I)?!I.vipLevels||I.vipLevels===M3?!0:I.vipLevels.split(",").includes(String(g.value)):!1)}),_=C(()=>{var S,I;return(I=(S=i==null?void 0:i.customer)==null?void 0:S.customerContentConfig)!=null?I:[]}),h=C(()=>{var S;return((S=d.value)==null?void 0:S.initFlag)===0}),p=C(()=>{var S,I,R,D,M;return h.value?(I=(S=d.value)==null?void 0:S.displayPage)!=null?I:0:(M=(D=(R=m.value)==null?void 0:R[0])==null?void 0:D.h5DisplayPage)!=null?M:0}),y=C(()=>{const S=D3.hasTabBar.includes(e.name);return!([k.GAME_EMBEDDED,k.SERVICE_IFRAME].includes(e.name)||!S&&p.value===EL.Home||n.value)}),b=C(()=>{var I;return((I=i.question)!=null?I:[]).filter(R=>R.questionList.length)}),v=C(()=>b.value.flatMap(S=>S.questionList)),A=C(()=>i.hasQuestion>0||b.value.length>0),L=O([]);return{serviceAxiosError:o,loading:a,isServiceApiLoaded:r,isServiceHomeLoaded:s,serviceInfo:i,setServiceAxiosError:c,setLoading:l,updateStaffall:u,isNeedHideService:n,liveChatCustomer:d,onlineCustomersByVipLevelAndTime:f,customerContentConfig:_,isNewDragService:h,serviceDisplayPage:p,showDragService:y,questions:b,allQuestionList:v,hasQuestion:A,searchHistory:L,setSearchHistory:S=>{L.value=S}}},{persist:{paths:["serviceInfo","searchHistory"],storage:Yo({},"local")}});function GL(e){if(!e.onlineTime)return!0;const t=new Date,n=t.getHours()*60+t.getMinutes(),[o,a]=e.onlineTime.split(","),[r,s]=o.split(":").map(Number),[i,c]=a.split(":").map(Number),l=r*60+s,u=i*60+c;return l<=u?n>=l&&n<=u:n>=l||n<=u}function Fb(e){var t;if(e!=null&&e.length)return(t=e.find(n=>GL(n)))!=null?t:e[0]}function Lle(){XG(async()=>{var t,n;const e=Fb((n=(t=Ju().serviceInfo)==null?void 0:t.customer)==null?void 0:n.onlineCustomers);if(e)return e.customerUrl;{const{t:o}=we();return _o.warn({message:o("lobby.common.tips.customerNotEnabled")}),Promise.reject()}},{createDelay:500})}const N3=e=>{const t=Oe(),{isDesktop:n}=ft().device,o=FL(e.customerUrl);if(e.openType===Vc.NewWindow||n)return to(o,{iosClipHack:!0});
19e.openType===Vc.CurrentWindow?AL(o,a=>{location.href=a}):e.openType===Vc.CurrentWindowHaveBack&&(cn().closeDialog("serviceOnlineList"),t.push({name:k.SERVICE_IFRAME,query:{url:encodeURIComponent(o)}}))},Tle=e=>{const{isDesktop:t}=ft().device,n=FL(e.customerUrl);if(e.openType===Vc.NewWindow||t)return to(n,{iosClipHack:!0});e.openType===Vc.CurrentWindow&&cn().openDialog("dragServicePopup",{openType:"overlay",options:{customerUrl:n}})},FL=e=>{const{userInfos:t,isLogined:n}=J(),{isEncryptEnabled:o,encryptData:a}=T3({url:e}),r=String((t==null?void 0:t.username)||""),s=String((t==null?void 0:t.platfromid)||""),i=`${s}(${r})`,c=o.value?a(r):r,l=o.value?a(s):s,u=o.value?a(i):i;return e.replaceAll("$CustomerAccountAndId",n?u:"").replaceAll("$CustomerAccount",n?c:"").replaceAll("$CustomerId",n?l:"")},Wb=()=>{const e=ue(),t=Ju(),n=Oe(),{onlineCustomersByVipLevelAndTime:o}=St(t),{systemInfos:a}=St(e),{openDialog:r}=cn("serviceOnlineList"),s=C(()=>{var g;return((g=a.value)==null?void 0:g.kfOnlineStatus)!==Zn.OPEN}),i=o,c=C(()=>i.value.length!==0),l=C(()=>{var g;return((g=a.value)==null?void 0:g.questionListDisplay)===Zn.OPEN||dt.enable}),u=async g=>{const{useDefaultService:f,..._}=g!=null?g:{};return c.value&&(_a()||l.value)?i.value.length===1||f?(N3(Fb(i.value)),"page"):(await r("serviceOnlineList",{..._,singleton:!0}),"dialog"):(await n.push({name:k.NOTICE,query:{noticeType:`${Fi.SERVICE}`}}),"page")};return{isServiceHidden:s,questionListDisplay:l,onlineCustomers:i,havaService:c,navigateToServicePage:u,navigateToCustomer:async g=>u(g),navigateToQuestionPage:async()=>{n.push({name:k.NOTICE,query:{noticeType:`${Fi.SERVICE}`,question:"0"}})}}};function Rle(e){return e}const nf=rt(()=>V(()=>import("./dialog.impl.Dd2EglJG.js"),__vite__mapDeps([0,1,3,4,5,6,10])),e=>e.showDialog,"ShowDialog"),Vb=rt(()=>V(()=>import("./dialog.impl.Dd2EglJG.js"),__vite__mapDeps([0,1,3,4,5,6,10])),e=>e.showConfirmDialog,"ShowConfirmDialog"),WL=rt(()=>V(()=>import("./dialog.impl.Dd2EglJG.js"),__vite__mapDeps([0,1,3,4,5,6,10])),e=>e.closeDialog,"CloseDialog"),VL=gn(()=>V(()=>import("./dialog.impl.Dd2EglJG.js"),__vite__mapDeps([0,1,3,4,5,6,10])).then(e=>e.DialogComponent));Object.assign(VL,{showDialog:nf,closeDialog:WL,showConfirmDialog:Vb});const k3=VL,B3=k3,yr=B3,Ole=Object.freeze(Object.defineProperty({__proto__:null,Dialog:yr,closeDialog:WL,default:yr,showConfirmDialog:Vb,showDialog:nf},Symbol.toStringTag,{value:"Module"})),H3="_hideEntry_1xmmq_91",x3={hideEntry:H3},E3=e=>cn().openDialog("downloadMainDialog",e),$c=(e=ns.WITHDRAW,t={},n)=>{const{hasLogined:o}=J(),a=Oe(),{t:r}=we(),{validateConfigStatus:s}=pl(),{withdrawPasswordDialogVisible:i}=J(),c=ac("Lv1");if(wr().disableOperate())return;if(Ze().isHideWithdrawEntry){QL(r("lobby.common.tips.hideWithdrawEntry"));return}const l=()=>{if(e===ns.BETTING_TASK){a.push({name:k.WITHDRAW,query:{active:e.toString(),openPages:`${ns.BETTING_TASK}`,...t}});return}a.push({name:k.WITHDRAW,query:{active:e.toString(),...t}})},u=()=>{n?Db({active:ye.WITHDRAWPASS,openType:"overlay",onSuccess:()=>{l()}}):a.push({name:k.SECURITY,query:{active:`${ye.WITHDRAWPASS}`,redirect:encodeURIComponent(JSON.stringify({name:k.WITHDRAW,query:{active:e}})),...t}})};if(!o){sn().openLoginRegister({onSuccess:()=>{s()[ye.WITHDRAWPASS]?l():u()}});return}i?oy({type:"error",title:r("lobby.common.tips.title"),message:pg([[c.value,r("lobby.club.finance.withdraw.reset_withdraw_password")]],r("lobby.modal.reset_withdraw_password")),closeOnClickOverlay:!1,showCloseButton:!0,showConfirmButton:!0,onConfirm:u}):s()[ye.WITHDRAWPASS]?l():(_o.warn({message:pg([[c.value,r("lobby.club.finance.withdraw.forceBindWidthdrawPass")]],r("lobby.center.security.forceBindWidthdrawPass"))}),u())},U3=(e={})=>{$c(ns.ACCOUNT_MANAGEMENT,e)},G3=()=>{Oe().push({name:k.SECURITY,query:{active:`${ye.EMAIL}`}})},of=async(e={openType:"overlay"},t)=>{const{openType:n="overlay",options:o,...a}=e,r={openType:n,options:{payEntryId:rc.DEFAULT,...o},...a},s={onSuccess:t,...n==="overlay"&&{openType:"overlay"}};if(!J().hasLoginedComponent){sn().openLoginRegister(s);return}await cn().openDialog("recharge",r)},$L=()=>{Oe().push({name:k.GAME})},YL=e=>{const{hasLogined:t}=J(),n=Oe(),{openLoginRegister:o}=sn();if(n.routeLocationRaw.name===k.FORBIDDEN_SELF)return;if(!t){o({login:!0});return}const{redirectPayload:a,redirectName:r,needRedirect:s,redirectLocation:i,isForce:c,useReplace:l}=Pe({},e),u={};if(c&&(u.force=!0),r)u.redirectName=r,a&&(u.redirectPayload=a);else if(s){const{name:d,query:m,params:g}=n.routeLocationRaw;u.redirection=i||{name:d,query:m,params:g}}
19n[l?"replace":"push"]({name:k.FORBIDDEN_SELF,query:oI(u)})},F3=()=>{Oe().push({name:k.CASHBACK})},qL=(e=4)=>{Oe().push({name:k.NOTICE,query:{noticeType:e}})},zL=async(e={})=>{const t=Oe(),n=Ku();if(Ze().isClubSite){await t.push({name:k.AGENT_CENTER,query:e});return}if(n.isShowAgentShareEarn.value){await t.push({name:k.GENERALPROMOTINDEX,query:e});return}await t.push({name:k.PROMOTE,query:e})},W3=(e="management-info")=>{Oe().push({name:k.CLUB_MANAGEMENT,query:{tab:e}})},V3=()=>{Oe().push({name:k.CLUB_BILL})},$3=()=>{Oe().push({name:k.CLUB_LOAN})},Y3=async(e=4)=>(await Oe().push({name:k.CLUB_MESSAGE_CENTER,query:{noticeType:e}}),"page"),q3=()=>{const e=Oe(),t=ac("Lv1");e.push({name:k.CLUB_DEPOSIT_MANAGEMENT,query:{to:t.value?"depositManage":""}})},z3=()=>{Oe().push({name:k.CLUB_WITHDRAW_MANAGEMENT})},j3=()=>{Oe().push({name:k.CLUB_REBATE})},K3=()=>{Oe().push({name:k.CLUB_COMMISSION})},Q3=()=>{Oe().push({name:k.CLUB_PROMOTE})},X3=e=>{const t=Oe();e={needRedirect:!0,isForce:!1,...e||{}};const n={};if(e.isForce&&(n.force=!0),e.needRedirect){const{name:o,query:a,params:r}=t.route;a.redirect=encodeURIComponent(JSON.stringify(e.redirectLocation||{name:o,query:a,params:r}))}t.push({name:k.KYC_FACE,query:oI(n)})},Z3=()=>{Oe().push({name:k.VIP})},J3=async()=>{const{hasLogined:e}=J(),t=Oe(),{openLoginRegister:n}=sn(),o=async()=>{await t.push({name:k.REPORT,query:{reportCurrent:Hs.BETTING}})};e?await o():await n({login:!0,onSuccess:o})},eW=async e=>new Promise(t=>{const{hasLogined:n}=J(),{t:o}=we(),a=ac("Lv1"),{validateConfigStatus:r}=pl(),{withdrawPasswordDialogVisible:s}=J();if(wr().disableOperate())return t(!1);const i=async()=>{Db({openType:"overlay",active:ye.WITHDRAWPASS,onSuccess:()=>{e==null||e(),t(!1)},onClose:()=>t(!1)})};s?oy({type:"error",title:o("lobby.common.tips.title"),message:pg([[a.value,o("lobby.club.finance.withdraw.reset_withdraw_password")]],o("lobby.modal.reset_withdraw_password")),closeOnClickOverlay:!1,showCloseButton:!0,showConfirmButton:!0,onConfirm:i,onClose:()=>t(!1)}):r()[ye.WITHDRAWPASS]?t(!0):(n&&_o.warn({message:pg([[a.value,o("lobby.club.finance.withdraw.forceBindWidthdrawPass")]],o("lobby.center.security.forceBindWidthdrawPass"))}),i())}),jL=async e=>{try{const{reporter:n}=await V(async()=>{const{reporter:o}=await Promise.resolve().then(()=>fA);return{reporter:o}},void 0);await n.doReport({rule:n.rules.SENSOR_BURIED,eventName:n.sensorEvents.GossipView})}catch(n){console.warn(n)}const t=e||"/gossip/";qe.localStorage.setAny("[email protected]",location.href),qe.localStorage.setAny("[email protected]",Ut().isHiddenAppEnter?"0":"1"),xL(t,!1,!0)},KL=()=>{Oe().push({name:k.MALL})},tW=()=>{cn().openDialog("promoteInviterRewards")},nW=()=>{Oe().push({name:k.SETTING})},QL=e=>{const{t}=we(),{navigateToServicePage:n}=Wb();yr.showConfirmDialog({title:t("lobby.common.tips.title"),icon:"important",overlayClass:x3.hideEntry,message:e,showCloseButton:!0,cancelButtonText:t("lobby.finance.popupTipsText.ok"),confirmButtonText:t("lobby.event.contactUS"),onConfirm:()=>{n({useDefaultService:dt.enable})}})},oW=Object.freeze(Object.defineProperty({__proto__:null,goHomePage:$L,navigateToCashBack:F3,navigateToClubBill:V3,navigateToClubCommission:K3,navigateToClubDeposit:q3,navigateToClubLoan:$3,navigateToClubManagement:W3,navigateToClubMessageCenter:Y3,navigateToClubPromote:Q3,navigateToClubRebate:j3,navigateToClubWithdrawManagement:z3,navigateToForbiddenSelf:YL,navigateToGossip:jL,navigateToKYCFace:X3,navigateToMall:KL,navigateToNotice:qL,navigateToPromote:zL,navigateToReportBetting:J3,navigateToSecurityEmailPage:G3,navigateToSetting:nW,navigateToVIP:Z3,navigateToWithdrawAccountPage:U3,navigateToWithdrawPage:$c,openDownloadAppModal:E3,openPromoteInviterRewardsModal:tW,openRechargeModal:of,openWithdrawPasswordModal:eW,showHideEntryDialog:QL},Symbol.toStringTag,{value:"Module"})),aW=Oa(()=>V(()=>import("./navigateToIdSelfie.impl.Bw7QjdTA.js"),__vite__mapDeps([0])),e=>e,{key:"NavigateToIdSelfie"}),{navigateToIdSelfie:rW}=aW,sW=Oa(()=>V(()=>import("./navigateToKYC.impl.Ca4bCYJY.js"),__vite__mapDeps([0,1,3,4,5,6,7,8,9,10,11])),e=>e,{key:"NavigateToKYC"}),{navigateToKYC:iW}=sW;function XL(e){const t=Ar();return C(()=>{const n=e!=null?e:t.state.mode,{type:o,subType:a}=t.getModeState(n);return{loading:t.state.loading,mode:n,type:o,subType:a,login:n===Kt.Login,register:n===Kt.Register,account:o===Vt.Account,phone:o===Vt.Phone,email:o===Vt.Email,thirdParty:o===Vt.ThirdParty,accountPass:a===st.Account,phoneCode:a===st.Phone,phonePass:a===st.PhonePass,phonePassCode:a===st.PhonePassCode,emailCode:a===st.Email,emailPass:a===st.EmailPass,emailPassCode:a===st.EmailPassCode}})}function op(){const e=Ar(),t=ue();Oe();const{open:n}=bn(),o=Uu(Kt.Register),a=XL(Kt.Register),{navigateToServicePage:r}
19=Wb(),{closeLoginRegister:s,openLoginRegister:i,usePageing:c,backLoginRegisterPage:l}=sn(),u=()=>a.value.phone?o.value.phone.autoGenPassword:a.value.email?o.value.email.autoGenPassword:!0,d=(R,D)=>{if(D)return R;const M={...R};return Reflect.deleteProperty(M,"platformId"),(a.value.phoneCode||a.value.emailCode)&&Reflect.deleteProperty(M,"passwd"),M},m=async()=>{_a()?Vv("/home/notice",{noticeType:4}):await r({openType:"insert",options:{beforeClose:async()=>(c.value||await i({...e.state.openOptions,openType:"insert"}),!0)}}),s()},g=()=>{kL({from:"loginRegister"}),setTimeout(s,600)},f=async()=>{_a()?Vv("/"):(await n("forgetPassword",{openType:"insert"}),s())},_=async(R,D)=>{const M=u();await n("registerConfirm",{options:{form:d(R,M),autoGenPassword:M},openType:"insert"}),s(D)},h=async(R,D)=>{await n("registerPassword",{options:{form:R},openType:"insert"}),s(D)},p=async R=>{var B;const D=(B=t.systemInfos)==null?void 0:B.webauthnGuideBeforeRegister,M=Vh();if(nt.info("quickWebauthnLogin","canOpenBind",D,M),M&&D){if(cn("registerWebauthn").isAcitve())return;await n("registerWebauthn",{openType:(R==null?void 0:R.openType)||"insert"})}},y=async()=>{await n("registerRecharge",{openType:"insert"})},b=async()=>{await n("registerLoginClub",{openType:"insert",options:{mode:Kt.Register}}),s(!0)},v=async()=>{await n("registerLoginClub",{openType:"insert",options:{mode:Kt.Login}}),s(!0)},A=R=>{s(!(R!=null&&R.useReplace))};return{toRestraintEntry:async R=>{A(R),await zn(0),YL(R)},toIdSelfie:async R=>{A(R),await zn(0),rW({needRedirect:!1,...R})},toKYCValidate:async R=>{try{A(R),await zn(0);const D=await iW(R);R!=null&&R.useReplace&&D===!1&&l()}catch(D){}},toCustomer:m,toForgetPass:f,toFreeTryit:g,toRegisterConfirm:_,toRegisterPassword:h,toRegisterWebauthn:p,toRegisterRecharge:y,toClubRegister:b,toClubLogin:v,toForceChangePassword:async R=>{var E;const D=J(),{visible:M,openDialog:B}=cn("forceChangePassword");M.value||!((E=D.userInfos)!=null&&E.change_password)&&!(R!=null&&R.forceChange)||await B("forceChangePassword",{openType:"insert",options:{forceChange:R==null?void 0:R.forceChange}})}}}const cW=ke("loginRegisterTheme",()=>{const e=cf(),t=nn(),n=ue(),o=Ar(),a=Ge(),r=C(()=>{var f,_;return Number((_=(f=n.homeLayoutInfos)==null?void 0:f.commonConfig)==null?void 0:_.registerLogin)}),s=C(()=>{var f,_;return Number((_=(f=n.homeLayoutInfos)==null?void 0:f.commonConfig)==null?void 0:_.registerLoginInputStyle)}
19),i=gL[t.skinType],c=C(()=>{var h,p;if(!i)return!0;const _=((p=(h=n.homeLayoutInfos)==null?void 0:h.commonConfig)==null?void 0:p.registerLoginDisplay)||Xe.Dialog;return!i.displayMode.includes(_)}),l=C(()=>{var f;return r.value!==ta.Theme3||c.value||(f=i.supportedSpecialThemes)!=null&&f.includes(r.value)?r.value:ta.Theme1}),u=C(()=>{var f;return s.value===vo.Style3||c.value||(f=i.supportedSpecialStyles)!=null&&f.includes(s.value)?s.value:vo.Style3}),d=C(()=>{var f;return((f=o.state.customOverrideTheme)==null?void 0:f.theme)||l.value||ta.Theme1}),m=C(()=>{var f;return((f=o.state.customOverrideTheme)==null?void 0:f.style)||u.value||vo.Style3}),g=C(()=>{var v,A,L,T,S,I;const f=e.usePageing.value;let _="",h="";const y=Number((A=(v=n.homeLayoutInfos)==null?void 0:v.commonConfig)==null?void 0:A.registerLoginType)||Kr.None;if(y!==Kr.None&&((L=n.homeLayoutInfos)==null?void 0:L.languageCode)===a.language){if(y===Kr.Text)_=(T=n.homeLayoutInfos)==null?void 0:T.loginSlogan;else if(y===Kr.Picture){const R=(I=(S=n.homeLayoutInfos)==null?void 0:S.commonConfig)==null?void 0:I.registerLoginImg;R&&(h=R.startsWith("http")?R:`${Ht().ossHost}siteadmin/upload/img/${R}`)}}const b=R=>{const D={sloganText:_,sloganDisplay:y,rawTheme:r.value,theme:d.value,sloganPicture:h,isPageMode:f,style:m.value};return Pe(D,R,o.state.customOverrideTheme)};switch(d.value){case ta.Theme3:return b({logo:{visible:!0,isOutSide:!1},showTabIcon:!1,showTabsLine:!1,isTheme3:!0,showLogoBackground:!0});case ta.Theme2:return b({logo:{visible:!0,isOutSide:f},showTabIcon:!1,showTabsLine:!0,isTheme2:!0,showLogoBackground:!0});case ta.Theme1:default:return b({isTheme1:!0,logo:{visible:!1,isOutSide:!1},showTabIcon:!0,showTabsLine:!0,showLogoBackground:!1})}});return{configTheme:r,localTheme:l,localStyle:u,currentTheme:d,currentStyle:m,themeStyles:g,isNormalMode:c}});function ZL(){const e=cW();return C(()=>{const t=e.themeStyles;return Pe({},t,{isDisableOrNoSlogan:t.sloganDisplay===Kr.None||!t.sloganPicture&&!t.sloganText,isNormalMode:e.isNormalMode,rawStyle:t.style,style:e.currentStyle,isDisabledSlogan:t.sloganDisplay===Kr.None,isDisabledOrNoSloganText:t.sloganDisplay!==Kr.Text||!t.sloganText,isDisabledOrNoSloganPicture:t.sloganDisplay!==Kr.Picture||!t.sloganPicture})})}const lW=ke("user-state",()=>({state:vt({opendRegisterRechargeNumber:0,allowOpenRegisterRechargeNumber:0})}));function uW(){const e=Ar(),t=bn(),{closeLoginRegister:n}=sn(),{enableUsingSms:o,enableUsingEmail:a}=qg(),{openClubGAForceBinding:r}=Mb(),s=lW(),i=J(),{complexPassword:c}=cf(),{t:l}=we(),u=ze(),d=ZL(),m=C(()=>{var A,L;const b=!!((A=i.ipBindInfo)!=null&&A.bindPhoneStatus)&&o.value;return!!((L=i.ipBindInfo)!=null&&L.bindEmailStatus)&&a.value||b?Eo.ChannelRegister:Eo.Seurity});return{forceBindType:m,onLoginError:b=>{},onLoginSuccess:b=>{var v,A,L,T,S;if(i.setGeeToken(""),(A=(v=e.state.openOptions).onSuccess)==null||A.call(v),(T=(L=e.state.openOptions).onLoginSuccess)==null||T.call(L),e.state.openOptions.skipProcess){n(!0);return}NG().then(I=>I.loginSuccess()).finally(()=>{r()?Db({active:ye.GA,showCloseButton:!1}).finally(()=>{n(!0)}):Cm().finally(()=>{n(!0)})}),b!=null&&b.username&&(b!=null&&b.userpass)&&rs(b.username,b.userpass)&&!c.value&&_o.warn(l("lobby.modal.loginRegister.tipsAccountPasswordEqual")),b&&e.getModeState(Kt.Login).type===Vt.Phone&&(i.setLoginRegisterPhoneNumber((S=b.phone)!=null?S:""),Fh.setPhoneNumber(Kt.Login))},onRegisterError:b=>{},onRegisterSuccess:async b=>{var I,R,D,M,B;if(i.isRegistered=!0,i.setGeeToken(""),(R=(I=e.state.openOptions).onSuccess)==null||R.call(I),(M=(D=e.state.openOptions).onRegisterSuccess)==null||M.call(D),u.updateUserPreferredCurrencyCache(b==null?void 0:b.currency),e.state.openOptions.skipProcess){n(!0);return}if((await CL()).afterRegisterProcess({useReplace:d.value.isPageMode}))return;const{toRegisterRecharge:L,toRegisterWebauthn:T}=op();s.state.allowOpenRegisterRechargeNumber=1,s.state.opendRegisterRechargeNumber=0;const S=async()=>{await Ee(t.open("devtools",{openType:"insert",options:{empty:!0}})),await Ee(t.close("registerRecharge")),await Ee(t.close("securityForceBinding")),await Ee(L()),await Ee(Cm(m.value)),await Ee(T()),n(!0),yt(()=>t.close("devtools"))};b&&e.getModeState(Kt.Register).type===Vt.Phone&&(i.setLoginRegisterPhoneNumber((B=b.mobilePhoneNumber)!=null?B:""),Fh.setPhoneNumber(Kt.Register)),S()},onClubRegisterSuccess:()=>{op().toClubRegister()},onClubLoginError:()=>{op().toClubLogin()},openSecurityForceBinding:Cm}}function dW(){const e=Ar();return{reportLoginSuccess:async(l,u,d)=>{var f,_;if(Ca.stats("loginStats","end"),l==="trymode")return;const m={normal:{loginMode:d==null?void 0:d.loginType},thirdLogin:{loginMode:d==null?void 0:d.requester_type},temporaryAccountLogin:{loginMode:st.Account}},g={login_type:l,if_success:!0,username:String((f=u==null?void 0:u.username)!=null?f:""),loginMode:(_=m[l])==null?void 0:_.loginMode};l==="normal"&&($s(g,"rememberAccountPassword",e.state.userLoginMode),$s(g,"rememberStatus",rf().remember.value?1:0)),Re.doReport({rule:Re.rules.CUSTOM_BURIED,eventName:Re.buriedEvents.Login,payload:{...g,...await Ca.payload("loginStats","include",["statsTotalTime"])}})},reportLoginError:async(l,u)=>{Ca.stats("loginStats","end"),Re.doReport({rule:Re.rules.CUSTOM_BURIED,eventName:Re.buriedEvents.Login,payload:{login_type:l,if_success:!1,fail_reason:(u
19==null?void 0:u.message)||Su(u).msg,err:u,...await Ca.payload("loginStats","include",["statsTotalTime"])}})},reportRegisterSubmit:l=>{$f(),Re.doReport({rule:Re.rules.CUSTOM_BURIED,eventName:Re.buriedEvents.RegisterClick,payload:l})},reportRegisterSuccess:async(l,u,d)=>{$f(),Ca.stats("registerStats","end");const{effectiveType:m,type:g}=cA(),f=g===Hr.WIFI,_={normal:{register_mode:1,registerType:u==null?void 0:u.registerType},thirdParty:{register_mode:2,registerType:u==null?void 0:u.requester_type},temporaryAccount:{register_mode:3,registerType:st.Account},fast:{register_mode:4,registerType:u==null?void 0:u.registerType}},{mobilePhoneNumber:h,realName:p,email:y,country:b}=u||{},v={phone:h,realName:p,email:y,country:b};try{Re.reinitFbAdvancedMatching({email:y,phone:h,realName:p,country:b,username:(d==null?void 0:d.username)!=null?String(d.username):void 0})}catch(A){}Re.doReport({rule:Re.rules.CUSTOM_BURIED,eventName:Re.buriedEvents.Register,payload:{...v,username:d==null?void 0:d.username,currency:d==null?void 0:d.currency,$wifi:f?1:0,$network_type:f?g:m,register_mode:_[l].register_mode,registerType:_[l].registerType,...await Ca.payload("registerStats","include",["statsTotalTime"])}}),Re.doReport({rule:Re.rules.FB_OFFICIAL_BURIED,eventName:Re.fbV2Events.CompleteRegistration,payload:{phone:h,email:y,currency:d==null?void 0:d.currency,username:d==null?void 0:d.username}})},reportRegisterError:async(l,u)=>{$f(),Ca.stats("registerStats","end"),Re.doReport({rule:Re.rules.SENSOR_BURIED,eventName:Re.sensorEvents.RegisterFail,payload:{type:u,err:l,...await Ca.payload("registerStats","include",["statsTotalTime"])}})},reportOpenLoginRegister:(l,u)=>{Re.doReport({rule:Re.rules.SENSOR_BURIED,eventName:Re.sensorEvents.LoginModalOpen,payload:{modal_type:u}})},reportOpenForgetPassword:()=>{Re.doReport({rule:Re.rules.SENSOR_BURIED,eventName:Re.sensorEvents.ForgotPasswordModalOpen})},reportForgetPasswordLoginSuccess:()=>{Re.doReport({rule:Re.rules.SENSOR_BURIED,eventName:Re.sensorEvents.ForgotPasswordModalSuccess})}}}var JL=(e=>(e.Tgmg="tgmg",e.ExternalApp="external_app",e))(JL||{}),Yc=(e=>(e.TIMEOUT="TIMEOUT",e.OUT_OF_MAX_TRY="OUT_OF_MAX_TRY",e.NOT_SUPPORTED="NOT_SUPPORTED",e.PARAMETER_INVALID="PARAMETER_INVALID",e.UNKNOWN="UNKNOWN",e))(Yc||{});const mW=e=>new Promise(t=>setTimeout(t,e)),eT=(e,t)=>{if(t)throw new Error(`createDynamicImport: ${e}`)},gW=["failed to fetch dynamically imported module","error loading dynamically imported module","importing a module script failed","unable to preload css"],fW=e=>{var n;const t=String((n=e==null?void 0:e.message)!=null?n:e).toLowerCase();return gW.some(o=>t.includes(o))},pW=3,hW=(e=10)=>{e=Number(e);let t=null,n=0;eT("timeout Is Invalid",Number.isNaN(e)||e<=0);let o=null,a;return{getSecondsPassed:()=>(Date.now()-n)/1e3,getErrorType:()=>t,stop:()=>{a&&(clearTimeout(a),a=null,o==null||o())},start:()=>new Promise((r,s)=>{n=Date.now(),o=s,a=setTimeout(()=>{t=Yc.TIMEOUT,o==null||o("Timeout")},e*1e3)})}},_W=(e,t=0)=>{let n=null,o="",a=0,r=0,s=Number(t);eT("maxTry Is Invalid",Number.isNaN(s)),s=Math.round(s);let i=!1,c=0;const u=(h=>{try{const p=h.toString(),y=p.match(/\.then\s*\(\s*(\w+)\s*=>\s*\1\s*\.\s*(\w+)\s*\)/);if(y){const b=y[2];return v=>v==null?void 0:v[b]}return/\.then\s*\(/.test(p)&&console.warn("[dynamic-import-v2] selector pattern unrecognized, retry may fail for multi-export chunk:",p),null}catch(p){return null}})(e),d=h=>()=>{const p=new URL(h);p.searchParams.set("_t",Date.now().toString());const y=new Function("url","return import(url);")(p.toString());return u?y.then(u):y};function m(h){try{const p=h==null?void 0:h.message.split(":");return p.length>2?p[0]:`${h}`}catch(p){throw new Error(`D${p}`)}}const g=h=>{var p;try{return new URL(((p=h==null?void 0:h.message.match(/(http.+)/))==null?void 0:p[1])||"").href}catch(y){return""}},f=async()=>{if(c){const h=Date.now()-c,p=300;h<p&&await mW(p-h)}c=Date.now()},_=async h=>{try{let p=null,y=null,b="";try{p=await h()}catch(v){y=v,o=m(v),await f(),b=g(v)}if(y){if(!b&&!fW(y))throw n=Yc.NOT_SUPPORTED,y;if(!b){if(r>=pW)throw n=Yc.OUT_OF_MAX_TRY,new Error("Already Max Try");r++}if(s>0&&--s<=0)throw n=Yc.OUT_OF_MAX_TRY,new Error("Already Max Try");return a++,i?null:_(b?d(b):h)}return p}catch(p){throw new Error(`Load: ${p}`)}};return{getImportErrorMsg:()=>o,getTriedTimes:()=>a,getErrorType:()=>n,stop:()=>{i=!0},start:()=>(f(),_(e))}},bW=async(e,t,n)=>{var s;const{onFinish:o,...a}=n||{}
19,r={success:!1,triedTimes:0,errorMsg:"",importErrorMsg:"",errorType:null,secondsPassed:0,options:a};try{const i=await Promise.race([t.start(),e.start()]);if(!i)throw new Error("Load Failed");return r.success=!0,i}catch(i){throw r.success=!1,r.errorMsg=`${i}`,r.errorType=t.getErrorType()||e.getErrorType()||Yc.UNKNOWN,e.stop(),t.stop(),new Error(`ChunkLoadError: Import ${i}`)}finally{r.importErrorMsg=e.getImportErrorMsg(),r.triedTimes=e.getTriedTimes(),r.secondsPassed=t.getSecondsPassed(),(s=n==null?void 0:n.onFinish)==null||s.call(n,r)}},tT=(e,t)=>()=>bW(_W(e,t==null?void 0:t.maxTry),hW(t==null?void 0:t.timeout),t),Ple=()=>z.request({url:"/api/member/user/userDeviceList",method:"POST"}),Dle=e=>z.request({url:"/api/member/user/delUserDevice",method:"POST",data:e}),Mle=e=>z.request({url:"/api/member/user/token/setIdleDays",method:"POST",data:e}),yW=e=>z.request({url:"/api/member/getFingerprint",method:"POST",data:{geetoken:e}}),vW=(e,t)=>z.request({url:"/api/member/noauth/getFingerprint",method:"POST",data:{geetoken:e},headers:{device:t}},{merge:!1,token:{type:!1},oss:{enable:!1},error:{action:"noMessage"}});function SW(){var o;const e=(o=ue().systemInfos)==null?void 0:o.geetetsDeviceAsyncDisabled,t=J();return{getToken:async()=>{if(e||t.getFingerId)return;let a=0;for(;a<3;){const r=await pi.getToken();if(a++,!r.token||!t.hasLogined)continue;const[s,i]=await Ee(yW(r.token));if(s)continue;const l=((i==null?void 0:i.data.data)||{}).fingerprint;if(l&&t.userInfos)return t.fingerId=l,t.userInfos.deviceFingerprint=l,l;await new Promise(u=>setTimeout(u,1e3))}}}}const CW=Oa(()=>V(()=>import("./register.impl.BBga6pHI.js"),[]),e=>e,"WebPushService"),{registerWebPush:nT,registerWebPushInParent:oT}=CW,wW=Object.freeze(Object.defineProperty({__proto__:null,registerWebPush:nT,registerWebPushInParent:oT},Symbol.toStringTag,{value:"Module"}));var aT=(e=>(e[e.CLAIM_APPLICATION=0]="CLAIM_APPLICATION",e[e.CLAIM_ORDER=1]="CLAIM_ORDER",e[e.GUARANTEE_CLAIM_RULE=2]="GUARANTEE_CLAIM_RULE",e))(aT||{}),IW=(e=>(e[e.UPLOADING=0]="UPLOADING",e[e.SUCCESS=1]="SUCCESS",e[e.FAILURE=2]="FAILURE",e))(IW||{}),AW=(e=>(e[e.MEMBER=1]="MEMBER",e[e.OWNER=2]="OWNER",e[e.BACKSTAGE=3]="BACKSTAGE",e))(AW||{}),LW=(e=>(e[e.IMAGE=1]="IMAGE",e[e.Video=2]="Video",e))(LW||{}),TW=(e=>(e[e.NOT_RATED=0]="NOT_RATED",e[e.VERY_DISSATISFIED=1]="VERY_DISSATISFIED",e[e.DDSSATISFIED=2]="DDSSATISFIED",e[e.GENERALLY=3]="GENERALLY",e[e.SATISFY=4]="SATISFY",e[e.VERTSATISFIED=5]="VERTSATISFIED",e))(TW||{});const No=()=>{const{claimToken:e}=Wi();return e?{"X-Claim-Token":e}:{}},Nle=e=>z.request({url:"/api/member/user/security/claimLogin",method:"POST",data:e},{error:{checkResCode:!0,action:"noMessage"}}),RW=()=>z.request({url:"/api/lobby/finance/getSiteGuaranteeRule",method:"GET"},{omitKey:["currency","platformType"],oss:{enable:!0},crypto:{enable:!1},token:{type:"staticOnly"}}),OW=()=>z.request({url:"/api/finance/claim/unreadMsgCnt",method:"POST",headers:No()}),PW=()=>z.request({url:"/api/finance/claim/userInfo",method:"POST",headers:No()},{error:{action:"noMessage"}}),DW=()=>z.request({url:"/api/finance/claim/withdrawAccount",method:"POST",headers:No()}),MW=e=>z.request({url:"/api/finance/claim/manualDeductionRecord",method:"POST",data:e,headers:No()}),NW=e=>z.request({url:"/api/finance/claim/withdrawRecord",method:"POST",data:e,headers:No()}),kle=e=>z.request({url:"/api/finance/claim/applyClaim",method:"POST",data:e,headers:No()}),Ble=e=>z.upload(Pe({url:"/api/backstage/upload",data:e.data,headers:{"Upload-Business-Id":"claim","Image-Validation-Mode":"loose",...No()}},e),{merge:!1,crypto:{enable:!1}}),Hle=(e,t)=>z.request({url:"/api/finance/claim/claimRecord",method:"POST",data:e,headers:No()}
19,{cache:{setCache:!0,expireOnloaded:!1,time:60*60*24*999,useCacheOnError:()=>!1,getCacheSync:t}}),xle=e=>z.request({url:"/api/finance/claim/claimDetail",method:"POST",data:{claimId:e},headers:No()}),Ele=e=>z.request({url:"/api/finance/claim/changeEmail",data:e,method:"POST",headers:No()}),Ule=e=>z.request({url:"/api/finance/message/list",data:e,method:"POST",headers:No()}),Gle=e=>z.request({url:"/api/finance/message/send",data:e,method:"POST",headers:No()}),Fle=e=>z.request({url:"/api/finance/claim/cancelOrder",data:{claimId:e},method:"POST",headers:No()}),Wle=e=>z.request({url:"/api/finance/claim/evaluate",data:e,method:"POST",headers:No()}),Vle=(e,t)=>z.request({url:"/api/finance/upload/presigned/urls",data:{deviceFingerprint:e,fileInfos:t},method:"POST",headers:No()}),$le=e=>z.request({url:e.url,data:e.file,headers:{...e.headers},method:"PUT",timeout:300*1e3},{crypto:{enable:!1},error:{action:"silent",failedActions:[{type:"statusCode",code:[409,412],actions:{retry:!1}}]}}),Wi=ke("claim",()=>{const e=O(""),t=O({}),n=O(!1),o=O(aT.CLAIM_APPLICATION),a=O(),r=O(0),s=O(),i=O(),c=O(),l=O(),u=O({}),d=O({}),m=async()=>{var R;const[S,I]=await Ee(RW());S||(a.value=I.data.data,n.value=((R=a.value)==null?void 0:R.claimSwitch)===wA.ON)},g=async()=>{var R,D;const[S,I]=await Ee(OW());S||(r.value=(D=(R=I.data.data)==null?void 0:R.unreadCnt)!=null?D:0)},f=async()=>{const[S,I]=await Ee(PW());if(S)return S;s.value=I.data.data},_=async()=>{var R,D;const[S,I]=await Ee(DW());S||(i.value=(D=(R=I.data.data)==null?void 0:R.accounts)!=null?D:[])},h=async S=>{var B,E,Y,H;const I=S.claimType===CA.MANUAL_DEDUCTION?MW:NW,[R,D]=await Ee(I(S));if(R)return;const M=((E=(B=D==null?void 0:D.data)==null?void 0:B.data)==null?void 0:E.records)||((H=(Y=D==null?void 0:D.data)==null?void 0:Y.data)==null?void 0:H.list)||[];c.value=M.map(F=>({createTime:F.createTime,money:F.money||F.amount,orderNo:F.orderNo||F.recordId,bizId:F.bizId,currencyCode:F.currencyCode||F.currency,isChecked:!1})),l.value=Fn(c.value)},p=C(()=>{var I,R,D;return(D=(R=(I=c.value)==null?void 0:I.filter(M=>M.isChecked===!0))==null?void 0:R.map(M=>M.bizId||M.orderNo.toString()))!=null?D:[]});return{claimToken:e,setClaimToken:S=>{e.value=S},claimLoginInfo:t,setClaimLoginInfo:S=>{t.value={...S}},clearClaimLoginInfo:()=>{t.value={}},claimSwitch:n,tabsActive:o,guaranteeRule:a,unreadMsgCount:r,claimInfo:s,withdrawAccountList:i,abnormalRecordList:c,abnormalRecordListActive:l,orderList:p,applyClaimDraft:u,applyClaimDraftTemp:d,getGuaranteeRule:m,getUnreadMsgCnt:g,getClaimInfo:f,getWithdrawAccountList:_,getAbnormalRecord:h,setApplyClaimDraft:(S,I)=>{u.value[S]=I},setApplyClaimDraftTemp:(S,I)=>{d.value[S]=I},clearApplyClaimDraftTemp:()=>{d.value={}}}},{persist:{paths:["claimToken","claimLoginInfo","applyClaimDraft"]}});var co=(e=>(e[e.All=0]="All",e[e.EVENT=1]="EVENT",e[e.TASK=2]="TASK",e[e.LUCKY_WHEEL=3]="LUCKY_WHEEL",e[e.BLINDBOX=4]="BLINDBOX",e[e.CASHBACK=5]="CASHBACK",e[e.YUEBAO=6]="YUEBAO",e[e.VIP=7]="VIP",e[e.SVIP=8]="SVIP",e[e.RECHARGE_FUND=9]="RECHARGE_FUND",e[e.COUPON=10]="COUPON",e[e.SURPRISE=11]="SURPRISE",e[e.MALL=12]="MALL",e[e.LOAN=13]="LOAN",e[e.CANRECEIVE=14]="CANRECEIVE",e[e.KPI=15]="KPI",e[e.MARKETING=16]="MARKETING",e))(co||{}),t_=(e=>
19(e.Countdown="Countdown",e.CanReceive="CanReceive",e.Expired="Expired",e.Expired1="Expired1",e.Expired2="Expired2",e.Expired3="Expired3",e.Reset="Reset",e.Start="Start",e.SimpleStart="SimpleStart",e.Update="Update",e.UpdateCountDown="UpdateCountDown",e.SuffixSecond="SuffixSecond",e.TextTime="TextTime",e.Closed="Closed",e.None="None",e))(t_||{});Ye.extend(ww);Ye.extend(Sw);const ia=(e,t,n,o=!0,a)=>rT(e,t,{currencyConfig:{code:n,...a},toFixedConfig:{tailZero:o}}),rT=(e,t,n)=>{var s;const{currencyConfig:o,toFixedConfig:a}=n!=null?n:{},r=(s=a==null?void 0:a.tailZero)!=null?s:!0;return t===0||t&&t>0?Oo(e,{showGroup:!0,...o}).toFixed({decimalPlaces:t,tailZero:r,...a}).toString():Oo(e,{showGroup:!0,toFixedType:"currency",...o}).toFixed({decimalPlaces:2,tailZero:r,...a}).toString()},Yle=e=>!e||(e==null?void 0:e.length)===0?e:e.replace(/[.,]00$/,""),vu=(e,t,n)=>rT(e!=null?e:0,t!=null?t:2,{toFixedConfig:{tailZero:!1,roundingMode:n}}),qle=(e,t="HH:mm")=>{const n=Ni(Ye().startOf("days").unix());return Ye(n).add(e,"s").format(t)},kW=(e,t)=>{const o=Math.floor(Math.abs(e)/86400),a=Math.floor((Math.abs(e)-o*86400)/3600),r=Math.floor((Math.abs(e)-o*86400-a*3600)/60),s=Math.floor(Math.abs(e)-o*86400-a*3600-r*60),i=l=>l<10?`0${l}`:l,c={d:o,h:i(a),m:i(r),s:i(s)};return t?k1(c,(l,u)=>u==="d"&&typeof l=="number"?l>0?`<${t}>${i(l)}</${t}>`:0:`<${t}>${l}</${t}>`):c},zle=(e,t,n)=>{const o=kW(e,n),a=o.d,{t:r}=we();return t===t_.TextTime?r(a?"lobby.event.distributedReward.conunDownTime":"lobby.event.distributedReward.conunDownTime2",o):t===t_.SuffixSecond?a?`${r("lobby.modal.task.reactiveTime2",o)}s`:`${r("lobby.modal.task.reactiveTime1",o)}s`:r(a?"lobby.modal.task.reactiveTime2":"lobby.modal.task.reactiveTime1",o)},jle=(e,t="HH:mm",n=!0)=>{const{siteInfos:o}=ue(),a=Ye().utcOffset();let r=Ye().startOf("days");if(o!=null&&o.timeZone&&n){const s=Ye().utcOffset(o.timeZone).utcOffset();r=r.add(a-s,"m")}return r.add(e,"s").format(t)},Kle=(e,t=!0)=>{const n=Number(e);if(!n)return 0;const o=vu(n);return n>0&&t?`+${o}`:o},BW=()=>{var n;const{siteInfos:e}=ue(),t=Tt().getServerTime();return Ye.unix(t).utcOffset((n=e==null?void 0:e.timeZone)!=null?n:"")},Qle=({type:e,timestamp:t=Tt().getServerTime()*1e3,endTime:n,startTime:o})=>{var i;const{siteInfos:a}=ue(),r=Ye(t).utcOffset((i=a==null?void 0:a.timeZone)!=null?i:"");let s;switch(e){case"day":s=r.endOf("day");break;case"week":s=r.endOf("isoWeek");break;case"month":s=r.endOf("month").endOf("day");break;default:throw new Error("Invalid type")}return s&&n&&s.unix()>n?n-r.unix():r&&o&&r.unix()<o?0:s.diff(r,"seconds")},Xle=e=>{const{t}=we(),n=e,o=Math.floor(n/(24*3600*1e3)),a=Math.floor(n%(24*3600*1e3)/(3600*1e3)),r=Math.floor(n%(3600*1e3)/(60*1e3)),s=Math.floor(n%(60*1e3)/1e3),i=Math.floor(n%1e3/100),c={d:o,h:String(a).padStart(2,"0"),m:String(r).padStart(2,"0"),s:String(s).padStart(2,"0"),ms:String(i)};return o?`${t("lobby.modal.task.reactiveTime4",c)}`:`${t("lobby.modal.task.reactiveTime3",c)}`},Zle=(e,t)=>{var a,r,s,i,c,l,u;if(!e)return t||"";let n;if(Iw(e)){const d=sd(e);if(Array.isArray(d)&&(n=d),!n)return t||""}else n=e;if(n.length===0)return t||"";const o=Ge().language||"en";return(u=(l=(c=(s=(a=n.find(d=>d.lang.includes(o)))==null?void 0:a.name)!=null?s:(r=n.find(d=>d.lang.includes("en")))==null?void 0:r.name)!=null?c:(i=n.find(d=>d.name))==null?void 0:i.name)!=null?l:t)!=null?u:""},HW=30*24*60*60,Jle=(e,t=HW)=>{const n=Math.abs(e);return n<=t&&n>0},eue=(e,t=Ni)=>{if(e>=nM){const{t:n}=we();return n("lobby.event.longTime")}return t(e)},sT="/api/active/getRedDotV2",xW="/api/active/jumpInfo",tue=async e=>{var n,o;const t=await z.request({url:"/api/active/browser/downloads",method:"POST",data:e},{error:{action:"silent"},cache:{useCache:"fresh"}});return(o=(n=t==null?void 0:t.data)==null?void 0:n.data)!=null?o:null},EW=async()=>{var o,a;const t=(o=(await z.request({url:sT,method:"POST"},{error:{action:"silent"},cache:{useCache:"fresh"},token:{type:"loginOnly"},oss:{enable:!1}})).data)==null?void 0:o.data,{homeLayoutInfos:n}=ue();return((a=n==null?void 0:n.commonConfig)==null?void 0:a.commissionBubble)===Jw.CLOSE?t.agentPromoteReward=0:t.agentPromoteReward!=0&&typeof t.agentPromoteReward=="number"&&(t.agentPromoteReward=ia(t.agentPromoteReward,void 0,void 0,!1)),t.activeRedDot.activeList||(t.activeRedDot.activeList=[]),t.activeRedDot.categoryList||(t.activeRedDot.categoryList=[]),t.taskRedDot||(t.taskRedDot=[]),t},UW=async()=>{var t;const e=await z.request({url:"/api/active/isShowV2",method:"GET"},{token:{type:"staticOnly"},cache:{useCache:"fresh",...ai()},omitKey:["currency","language","platformType"],oss:{enable:!0,isDefaultFile:!0}});return(t=e==null?void 0:e.data)==null?void 0:t.data},GW=async()=>{var t;const e=await z.request({url:"/api/active/tasks/newcomer_benefit_reward",method:"GET"},{token:{type:"staticOnly"},cache:{useCache:"fresh"},omitKey:["currency","language","platformType"],oss:{enable:!0,isDefaultFile:!0}});return(t=e==null?void 0:e.data)==null?void 0:t.data},nue=async e=>{var n;const t=await z.request({url:xW,method:"POST",data:e},{error:{action:"silent"},cache:{useCache:"fresh",time:10}});return(n=t==null?void 0:t.data)==null?void 0:n.data},FW="/api/active/tasks/newcomer_benefit_pop",WW=async()=>{var t;const e=await z.request({url:"/api/active/tasks/newcomer_benefit_pop",method:"POST"},{error:{action:"silent"},cache:{useCache:"fresh",time:10},token:{type:"loginOnly"},oss:{enable:!1}});return(t=e==null?void 0:e.data)==null?void 0:t.data},VW="/api/backstage/customer/getactivetrans",$W=async()=>{var t;const e=await z.request({url:VW,method:"GET"},{oss:{enable:!0},token:{type:"staticOnly"},cache:{useCache:!0},omitKey:["currency","platformType"]});return(t=e==null?void 0:e.data)==null?void 0:t.data};var YW=(e=>(e[e.typingAmount=0]="typingAmount",e[e.vip=1]="vip",e))(YW||{}),qW=(e=>(e[e.Today=1]="Today",e[e.NextDay=2]="NextDay",e[e.AutoSend=3]="AutoSend",e))(qW||{}),zW=(e=>(e.GAMECATEGORYID="gameCategory",e.GAMESECONDCATEID="gameSecondCateId",e))(zW||{}),Zi=(e=>(e.All="0",e))(Zi||{}),Qr=(e=>(e.All="0",e))(Qr||{}),wa=(e=>(e[e.HOME=0]="HOME",e[e.MINE=1]="MINE",e[e.ALL=2]="ALL",e))(wa||{}),Le=(e=>(e[e.HOME_TOP_BELOW=1]="HOME_TOP_BELOW",e[e.BANNER_BELOW=2]="BANNER_BELOW",e[e.ANNOUNCEMENT_BELOW=3]="ANNOUNCEMENT_BELOW",e[e.HOT_GAMES_ABOVE=4]="HOT_GAMES_ABOVE",e[e.HOT_GAMES_BELOW=5]="HOT_GAMES_BELOW",e[e.THIRD_PARTY_GAMES_ABOVE=6]="THIRD_PARTY_GAMES_ABOVE",e[e.THIRD_PARTY_GAMES_BELOW=7]="THIRD_PARTY_GAMES_BELOW",e[e.HOME_BOTTOM_ABOVE=8]="HOME_BOTTOM_ABOVE",e[e.HOME_BOTTOM=9]="HOME_BOTTOM",e[e.BOTTOM_LEFT_FLOATING=10]="BOTTOM_LEFT_FLOATING",e[e.BOTTOM_RIGHT_FLOATING=11]="BOTTOM_RIGHT_FLOATING",e[e.MINE_PROFILE_BELOW=12]="MINE_PROFILE_BELOW",e[e.MINE_TOP=13]="MINE_TOP",e[e.MINE_MIDDLE=14]="MINE_MIDDLE",e[e.MINE_BELOW=15]="MINE_BELOW",e))(Le||{}),Ws=(e=>(e[e.SMALL=1]="SMALL",e[e.MIDDLE=2]="MIDDLE",e[e.BIG=3]="BIG",e[e.SUPERBIG=4]="SUPERBIG",e))(Ws||{}),jW=(e=>(e[e.SCROLL=1]="SCROLL",e[e.SINGLE=2]="SINGLE",e[e.GROUP=3]="GROUP",e))(jW||{}),Vi=(e=>(e[e.EXTER=0]="EXTER",e[e.SYSTEM=1]="SYSTEM",e[e.SYSTEMACTIVE=2]="SYSTEMACTIVE",e))(Vi||{}),n_=(e=>(e[e.NONE=0]="NONE",e[e.CHANNELID=1]="CHANNELID",e[e.TOPPROXY=2]="TOPPROXY",e))(n_||{}),At=(e=>(e[e.VIP=1]="VIP",e[e.DISCOUNT_CODE=2]="DISCOUNT_CODE",e[e.TASK=3]="TASK",e[e.CASHBACK=4]="CASHBACK",e[e.RECHARGE_FUND=5]="RECHARGE_FUND",e[e.YUEBAO=6]="YUEBAO",e[e.CANRECEIVE=7]="CANRECEIVE",e[e.BLINDBOX=8]="BLINDBOX",e[e.PROMOTE=9]="PROMOTE",e[e.RECHARGE=10]="RECHARGE",e[e.COUPONS=11]="COUPONS",e[e.ACTIVITY=12]="ACTIVITY",e[e.LUCKY_SPIN=13]="LUCKY_SPIN",e[e.LOAN=14]="LOAN",e[e.SVIP=15]="SVIP",e[e.FEEDBACK=16]="FEEDBACK",e[e.MALL=17]="MALL",e[e.MOMENTS=18]="MOMENTS",e[e.COOPERATIVE=19]="COOPERATIVE",e[e.CLAIM=20]="
19CLAIM",e[e.WITHDRAW=21]="WITHDRAW",e[e.SURPRISE=22]="SURPRISE",e[e.NEW_GIFT=25]="NEW_GIFT",e[e.RED_POCKET=26]="RED_POCKET",e[e.DALIY_BONUS=27]="DALIY_BONUS",e[e.NEW_CUT_ONE=28]="NEW_CUT_ONE",e[e.LUCKY_BET=29]="LUCKY_BET",e[e.CUT_ONE=30]="CUT_ONE",e[e.RESCUE=31]="RESCUE",e[e.RETURNING_BONUS=32]="RETURNING_BONUS",e[e.RANKING=33]="RANKING",e[e.SHARE=34]="SHARE",e[e.PROMOTE_REMARD=37]="PROMOTE_REMARD",e))(At||{}),KW=(e=>(e[e.SYSTEM=0]="SYSTEM",e[e.CUSTOM=1]="CUSTOM",e))(KW||{}),QW=(e=>(e[e.VERSION_0=0]="VERSION_0",e[e.VERSION_1=1]="VERSION_1",e))(QW||{}),XW=(e=>(e[e.STYLE_1=1]="STYLE_1",e[e.STYLE_2=2]="STYLE_2",e[e.STYLE_3=3]="STYLE_3",e))(XW||{});const ap={[kr.MemberLevel]:(e,{memberLevel:t})=>{if(!e.showLevel)return!0;const n=e.showLevel.split(",").map(Number);return n.includes(Kg.AllUserLevel)||n.includes(t.value)},[kr.VipLevel]:(e,{vipLevel:t})=>e.showVip?(Array.isArray(e.showVip)?e.showVip:[e.showVip]).every(o=>{const a=o.split(",").map(Number);return t.value>=0&&a.includes(t.value)}):!0,[kr.RegisterDays]:(e,{registerTime:t,timeZone:n})=>{if(!e.registerDay||!t.value)return!0;const o=3600*24*e.registerDay,a=Tt().getServerTime(),r=Ye(t.value*1e3).utcOffset(n.value).endOf("day").unix();return o+r>=a},[kr.Currency]:(e,{currency:t})=>!e.currencyCode||e.currencyCode==="0"?!0:e.currencyCode.split(",").includes(t.value),[kr.ChannelProxy]:(e,{currentChannelId:t,proxyDetail
19s:n})=>{var o,a,r,s;if(!e.channelProxy)return!0;if(e.channelProxy===n_.CHANNELID){const i=(a=(o=e.channelId)==null?void 0:o.split(","))!=null?a:[];return!e.channelId||i.includes(`${t.value}`)}else if(e.channelProxy===n_.TOPPROXY){const i=(s=(r=e.proxyAccount)==null?void 0:r.split(","))!=null?s:[],c=Object.values(n.value).filter(Boolean);return!e.proxyAccount||i.some(l=>c.includes(l))}return!0},[kr.Time]:e=>{if(!e.endTime&&!e.startTime)return!0;const t=Tt().getServerTime();return e.endTime&&e.endTime>t&&e.startTime&&t>e.startTime||(!e.endTime||e.endTime>t)&&(!e.startTime||t>e.startTime)},[kr.DeviceValid]:e=>e.showDeviceType?!!(Dm!=null&&Dm(e.showDeviceType,e.showDeviceLoginType)):!0},ZW=()=>{const e=J(),t=ue(),n=ze(),o=en();return{memberLevel:C(()=>{var a,r;return(r=(a=e.userInfos)==null?void 0:a.member_level)!=null?r:1}),vipLevel:C(()=>{var a,r,s,i;return(i=(s=(a=e.userInfos)==null?void 0:a.vip_level)!=null?s:(r=t.systemInfos)==null?void 0:r.min_vip_level)!=null?i:0}),registerTime:C(()=>{var a,r;return(r=(a=e.userInfos)==null?void 0:a.register_time)!=null?r:0}),currency:C(()=>{var a,r,s;return(s=(r=n.currency)!=null?r:(a=e.userInfos)==null?void 0:a.currency)!=null?s:""}),currentChannelId:C(()=>{var a,r,s,i,c,l;return(l=(c=(s=(a=e.userInfos)==null?void 0:a.regPkgId)!=null?s:(r=o.urlParams)==null?void 0:r.cid)!=null?c:(i=o.urlParams)==null?void 0:i.id)!=null?l:""}),proxyDetails:C(()=>{var a,r,s,i;return{parentId:(a=e.userInfos)==null?void 0:a.parentId,parentUsername:(r=e.userInfos)==null?void 0:r.parentUsername,platfromid:(s=e.userInfos)==null?void 0:s.platfromid,username:(i=e.userInfos)==null?void 0:i.username}}),timeZone:C(()=>{var a,r;return(r=(a=t.siteInfos)==null?void 0:a.timeZone)!=null?r:""})}},af=(e="all")=>{const t=ZW(),n=(a={},r)=>{const s=r!=null?r:e;return(s==="all"?Object.values(kr).map(Number):s).every(c=>{var l,u;return(u=(l=ap[c])==null?void 0:l.call(ap,a,t))!=null?u:!0})};return{filter:n,filterList:(a,r)=>a.filter(s=>n(s,r))}},ya=1,JW=e=>{var a,r,s,i;const t=J(),n=(a=t.userInfos)==null?void 0:a.currency;let o=!0;if(t.useFastLogin){const c=(i=(s=(r=t.userInfos)==null?void 0:r.member_level)==null?void 0:s.toString())!=null?i:"";e&&c&&Object.keys(e).forEach(l=>{var u,d,m;l===n&&(o=((m=(d=(u=e[l])==null?void 0:u.banUserLevel)==null?void 0:d.split(","))!=null?m:[]).includes(c))})}else e&&n&&Object.keys(e).forEach(c=>{var l,u,d;c===n&&(o=((d=(u=(l=e[c])==null?void 0:l.banUserLevel)==null?void 0:u.split(","))!=null?d:[]).includes(ya.toString()))});return!o},eV=(e,t)=>{var i,c,l,u,d;const n=J(),o=(c=(i=n.userInfos)==null?void 0:i.currency)!=null?c:"",a=t!=null?t:[],r=(d=(u=(l=n.userInfos)==null?void 0:l.member_level)==null?void 0:u.toString())!=null?d:"";return e===Jc.Close||(a==null?void 0:a.length)===0?!1:a.some(m=>{var _,h,p,y;const g=(h=(_=m==null?void 0:m.currency)==null?void 0:_.split(","))!=null?h:[],f=(y=(p=m==null?void 0:m.userLevels)==null?void 0:p.split(","))!=null?y:[];return n.useFastLogin?(g.includes(Zi.All)||g.includes(o))&&f.includes(r):(g.includes(Zi.All)||g.includes(o))&&f.includes(ya.toString())})},tV=e=>{var n,o,a,r,s;if(!e||e.couponStatus!==q_.Show)return!1;const t=J();if(e.vipList){const i=((n=t.userInfos)==null?void 0:n.vip_level)||((o=ue().systemInfos)==null?void 0:o.min_vip_level)||0;if(!e.vipList.split(",").includes(String(i)))return!1}if(e.userLevels&&e.userLevels!=="-1"){const i=t.useFastLogin?(s=(r=(a=t.userInfos)==null?void 0:a.member_level)==null?void 0:r.toString())!=null?s:"":ya.toString();if(!e.userLevels.split(",").includes(i))return!1}return!0},nV=(e,t)=>{var i,c,l,u,d;const n=J(),o=(c=(i=n.userInfos)==null?void 0:i.currency)!=null?c:"",a=t||[],r=(d=(u=(l=n.userInfos)==null?void 0:l.member_level)==null?void 0:u.toString())!=null?d:"";return e===Jc.Close||(a==null?void 0:a.length)===0?!1:a.some(m=>{var _,h,p,y;const g=(h=(_=m==null?void 0:m.currency)==null?void 0:_.split(","))!=null?h:[],f=(y=(p=m==null?void 0:m.userLevels)==null?void 0:p.split(","))!=null?y:[];return n.useFastLogin?g.includes(Zi.All)||g.includes("")?f.includes(Qr.All)||f.includes("")||f.includes(r):g.includes(o)&&(f.includes(r)||f.includes(Qr.All)):g.includes(Zi.All)||g.includes("")?f.includes(Qr.All)||f.includes("")||f.includes(ya.toString()):g.includes(o)&&(f.includes(ya.toString())||f.includes(Qr.All))})},oV=(e,t)=>{var s,i,c,l,u;const n=J(),o=(i=(s=n.userInfos)==null?void 0:s.currency)!=null?i:"",a=t!=null?t:[],r=(u=(l=(c=n.userInfos)==null?void 0:c.member_level)==null?void 0:l.toString())!=null?u:"";if(!(e===Jc.Close||(a==null?void 0:a.length)===0))return t.find(d=>{var f,_,h,p;const m=(_=(f=d==null?void 0:d.currency)==null?void 0:f.split(","))!=null?_:[],g=(p=(h=d==null?void 0:d.userLevels)==null?void 0:h.split(","))!=null?p:[];return n.useFastLogin?m.includes(Zi.All)?g.includes(r):m.includes(o)&&(g.includes(r)||g.includes(Qr.All)):m.includes(Zi.All)?g.includes(ya.toString()):m.includes(o)&&(g.includes(ya.toString())||g.includes(Qr.All))})},aV=e=>{var t,n,o;{const{useFastLogin:a,userInfos:r}=J();let s=!0;const i=a?(n=(t=r==null?void 0:r.member_level)==null?void 0:t.toString())!=null?n:"":ya.toString(),c=r==null?void 0:r.currency;return e&&c&&((o=Object.keys(e))==null||o.forEach(l=>{var u,d;if(l===c){const m=(u=e[l])==null?void 0:u.userLevels;s=m===Qr.All?!1:!((d=m.split(","))!=null?d:[]).includes(i)}})),!s}},rV=e=>{var t,n;if(e){const{useFastLogin:o,userInfos:a}=J(),r=o?(n=(t=a==null?void 0:a.member_level)==null?void 0:t.toString())!=null?n:"":ya.toString(),s=(a==null?void 0:a.currency)||"";let i=Zn.CLOSE,c=Zn.CLOSE,l=Zn.CLOSE;const{userLevels:u,commonSwitch:d,currencyCfg:m}=e,g=m==null?void 0:m[s];return g&&(i=g.smallSwitch,c=g.bigSwitch,l=g.superSwitch),!(!Object.keys((e==null?void 0:e.currencyCfg)||{}).includes(s)||u&&u!=="0"&&!u.split(",").includes(r)||d===Zn.CLOSE||i===Zn.CLOSE&&c===Zn.CLOSE&&l===Zn.CLOSE)}return!1},sV=e=>{var t,n;if(e){const{useFastLogin:o,userInfos:a}=J(),r=o?(n=(t=a==null?void 0:a.member_level)==null?void 0:t.toString())!=null?n:"":ya.toString(),s=(a==null?void 0:a.currency)||"";let i=Zn.CLOSE,c=Zn.CLOSE,l=Zn.CLOSE;const{currencyCfg:u,userLevels:d,commonSwitch:m}=e,g=u==null?void 0:u[s];return g&&(i=g.silverSwitch,c=g.goldSwitch,l=g.diamondSwitch),!(!Object.keys((e==null?void 0:e.currencyCfg)||{}).includes(s)||d&&d!=="0"&&!d.split(",").includes(r)||m===Zn.CLOSE||i===Zn.CLOSE&&c===Zn.CLOSE&&l===Zn.CLOSE)}return!1},rp=e=>{const{amount:t,displayRandomAmount:n,awardType:o}=e||{};let a=[t,t];return o===hI.Random&&n&&(a=n==null?void 0:n.split(",").map(Number)),{reward:cV(a,!1),bindTypeAward:a}},iV=e=>{var i,c,l,u;const t=Tt(),n=J(),{filter:o}=af(),a=(c=(i=n==null?void 0:n.userInfos)==null?void 0:i.register_time)!=null?c:0,r=e==null?void 0:e.find(d=>(d==null?void 0:d.template)===IL.newBenefits);if(!r||!o({showLevel:r==null?void 0:r.userLevel,currencyCode:r==null?void 0:r.currency}))return!1;const s=(u=(l=r==null?void 0:r.details)==null?void 0:l.limitDay)!=null?u:0;if(s>0&&a>0){const d=a+s*60*60*24,m=t.getServerTime();return d-m>0}return!0},cV=(e,t=!0)=>{var o;let n="";return e[0]===e[1]&&e[0]>0?n=(o=Oo(e[0]).toFixed({decimalPlaces:2,tailZero:t}))==null?void 0:o.toString():e[0]!==e[1]&&(n=e.map(a=>Oo(a).toFixed({decimalPlaces:2,tailZero:t})).join("-")),n},lV=e=>{var r,s,i,c;if(!Array.isArray(e))return!1;const t=J(),n=t.useFastLogin?(i=(s=(r=t.userInfos)==null?void 0:r.member_level)==null?void 0:s.toString())!=null?i:"":ya.toString(),o=(c=t.userInfos)==null?void 0:c.currency;return e==null?void 0:e.some(l=>{var f,_,h,p;const u=(_=(f=l==null?void 0:l.currency)==null?void 0:f.split(",").filter(
19Boolean))!=null?_:[],d=(p=(h=l==null?void 0:l.userLevel)==null?void 0:h.split(","))!=null?p:[],m=(l==null?void 0:l.currency)==="0"||!u.length||u.includes(o),g=!(l!=null&&l.userLevel)||!d.length||d.includes(Qr.All)||d.includes(n);return m&&g})},uV=e=>{var a,r,s,i,c,l,u,d,m,g;const t=J(),n=(a=t.userInfos)==null?void 0:a.currency;let o=!0;if(t.useFastLogin){const f=(i=(s=(r=t.userInfos)==null?void 0:r.member_level)==null?void 0:s.toString())!=null?i:"";if(e&&((c=e==null?void 0:e.statusJson)!=null&&c.length)&&f)for(const _ of e.statusJson)_.currency===n&&_.status===1&&(!e.userLevel||e.userLevel==="0"?o=!1:o=!((u=(l=e.userLevel)==null?void 0:l.split(","))!=null?u:[]).includes(f))}else if(e&&n&&(d=e==null?void 0:e.statusJson)!=null&&d.length)for(const f of e.statusJson)f.currency===n&&f.status===1&&(!e.userLevel||e.userLevel==="0"?o=!1:o=!((g=(m=e.userLevel)==null?void 0:m.split(","))!=null?g:[]).includes(ya.toString()));return!o},dV=e=>{const t=af();return(e==null?void 0:e.commonSwitch)!==jt.OPEN?!1:t.filter({showLevel:e==null?void 0:e.userLevels,showVip:e==null?void 0:e.vipLevels,currencyCode:e==null?void 0:e.currency})},$b=ke("discountBase",()=>{const e=O([]),t=a=>{e.value=a},n=O(!1);return{eventsList:e,isLoadedCategories:n,updateEventsList:t,updateLoadedCategories:()=>{n.value=!0}}}),On=ke("discount",()=>{const e=J(),t=ue(),n=$b(),{t:o}=we(),a=O(null),r=O({}),s=O({}),i=O(null),c=C(()=>{var se;return((se=i.value)==null?void 0:se.creditReturnGoldClosed)===Jc.Open}),l=O(null),u=O([]),d=()=>{a.value=null,r.value={},s.value={}},m=async()=>{const[se,Ae]=await Ee($W());!se&&Ae&&(u.value=Ae)},g=async()=>{if(!e.hasLogined||!ma()){d();return}setTimeout(async()=>{const[se,Ae]=await Ee(EW());l.value=se,!se&&_(Ae)},1e3)},f=[[co.EVENT,{activeCount:0,activeRedDot:{categoryList:[],activeList:[]}}],[co.TASK,{taskCount:0,taskRedDot:[]}],[co.LUCKY_WHEEL,{turntableRedDot:0}],[co.CASHBACK,{returnGoldCount:0,creditReturnGoldCount:0}],[co.YUEBAO,{yueBaoCount:0}],[co.RECHARGE_FUND,{rechargeFundCount:0}],[co.VIP,{vipCount:0}],[co.SVIP,{svipCount:0}],[co.CANRECEIVE,{receiveLogCount:0}]],_=se=>{var xn,pt,xt,Pn;f.forEach(([an,ro])=>{T(an)||Object.assign(se,ro)}),a.value={...se,returnGoldCount:c.value?(xn=se.creditReturnGoldCount)!=null?xn:0:(pt=se.returnGoldCount)!=null?pt:0};const Ae=((xt=se==null?void 0:se.activeRedDot)==null?void 0:xt.categoryList)||[],Je={};Ae.forEach(an=>{an.activeCount>0&&(Je[`${an.categoryId}`]=an)}),r.value=Je;const wt=((Pn=se==null?void 0:se.activeRedDot)==null?void 0:Pn.activeList)||[],Dt={};wt.forEach(an=>{an.activeCount>0&&(Dt[`${an.activeId}`]=an)}),s.value=Dt},h=async()=>{await z.setCacheExpired(sT),g()},p=async()=>{if(ma()){if(await ga("g4"),!Ro("g4","activeIsShowV2")){const[se,Ae]=await Ee(UW());!se&&Ae&&(i.value=Ae)}v()}},y=se=>{i.value=se,v()},b=O(wM),v=()=>{if(!i.value||!e.userInfos)return;const{returnGoldClosed:se,creditReturnGoldClosed:Ae,rechargeFundClosed:Je,loanClosed:wt,loanConfig:Dt,disableReceiveLogPop:xn,displayExpireReward:pt,vipConfig:xt,returnGoldConfig:Pn,rechargeFundConfig:an,couponConfig:ro,yueBaoConfig:Xa,unreceiveRewardListStyle:ie,rechargeFundName:ge,blindBoxConfigV1:ee,turntableConfigV1:ce,taskSetting:pe,svipConfig:Fe,activePageDisplayLocation:Ne,activePageDisplayStyle:Vn,activePageDisplayAction:Ma,shopConfig:Ss,activePageDisplaySearch:Ll,activePageHideCategory:Tl,activePageSort:Rl}=i.value||{},Mf=eV(se,Pn),md=Ae===Jc.Open;b.value={showEvent:!0,showTask:lV(pe),showNormalCashback:Mf,showClubCashback:md,rechargeFundConfigItem:oV(Je,an),showCreditLoan:nV(wt,Dt),showCoupon:tV(ro),showVip:JW(xt),showInterest:aV(Xa),receivePop:xn,unreceiveRewardListStyle:ie,rechargeFundName:mE(ge),showBlindBox:rV(ee),displayExpireReward:pt===mI.Open,showNewBenefits:iV(pe),showTurntable:sV(ce),showSVip:uV(Fe),activePageDisplayLocation:Ne||dI.bottom,activePageDisplayStyle:Vn,activePageDisplayAction:Ma,showMall:dV(Ss),activePageDisplaySearch:Ll,activePageHideCategory:Tl,activePageSort:Rl||""}},A=C(()=>{var Ae,Je;const se=((Je=(Ae=t.homeLayoutInfos)==null?void 0:Ae.commonConfig)==null?void 0:Je.redDotConfig)||"{}";return sd(se)}),L=C(()=>{var se,Ae,Je,wt,Dt;if(Number((se=A.value)==null?void 0:se.enabled)===jt.CLOSE)return new Set;if(Number((Ae=A.value)==null?void 0:Ae.enabled)===jt.OPEN){const xn=((Dt=(wt=(Je=A.value)==null?void 0:Je.scopes)==null?void 0:wt.split(","))==null?void 0:Dt.map(Number))||[];return new Set(xn)}return new Set([co.All])}),T=se=>L.value.has(co.All)||L.value.has(se),S=C(()=>ma()),I=C(()=>{var se,Ae,Je;return S.value?n.isLoadedCategories?((se=b.value)==null?void 0:se.showEvent)&&((Ae=n.eventsList)==null?void 0:Ae.length)>0:(Je=b.value)==null?void 0:Je.showEvent:!1}),R=C(()=>!S.value||Ke.isSimpleTheme?!1:b.value.showTask),D=C(()=>{var se;return S.value?(se=b.value)==null?void 0:se.showTurntable:!1}),M=C(()=>{var se;return S.value?(se=b.value)==null?void 0:se.showNormalCashback:!1}),B=C(()=>{var se;return S.value?(se=b.value)==null?void 0:se.showClubCashback:!1}),E=C(()=>M.value||B.value),Y=C(()=>{var se;return!S.value||Ke.isSimpleTheme?!1:(se=b.value)==null?void 0:se.showCreditLoan}),H=C(()=>!S.value||Ke.isSimpleTheme?!1:!!b.value.rechargeFundConfigItem),F=C(()=>{var se;return H.value?(se=b.value.rechargeFundConfigItem)==null?void 0:se.addFundRate:0}),Q=C(()=>{var se;return!S.value||Ke.isSimpleTheme?!1:(se=b.value)==null?void 0:se.showBlindBox}),G=C(()=>{var se;return S.value?(se=b.value)==null?void 0:se.showVip:!1}),N=C(()=>{var se;return!S.value||Ke.isSimpleTheme?!1:(se=b.value)==null?void 0:se.showSVip}),$=C(()=>{var se;return!S.value||Ke.isSimpleTheme?!1:(se=b.value)==null?void 0:se.showInterest}),X=C(()=>{var se;return(se=b.value)==null?void 0:se.receivePop}),j=C(()=>{var se;return!S.value||Ke.isSimpleTheme?!1:(se=b.value)==null?void 0:se.showCoupon}),te=C(()=>{var se;return(se=b.value)==null?void 0:se.unreceiveRewardListStyle}),K=C(()=>{var se;
19return(se=b.value)==null?void 0:se.displayExpireReward}),q=C(()=>{var se,Ae;return Ke.isOnlyEventPageDefaultStyle?mh.List:(Ae=(se=b.value)==null?void 0:se.activePageDisplayStyle)!=null?Ae:mh.List}),ae=C(()=>{var se,Ae;return Ke.isOnlyEventPageDefaultStyle?gh.Click:(Ae=(se=b.value)==null?void 0:se.activePageDisplayAction)!=null?Ae:gh.Click}),me=C(()=>{var se,Ae;return Ke.isUseEventDefaultConfig?fh.Hidden:(Ae=(se=b.value)==null?void 0:se.activePageDisplaySearch)!=null?Ae:fh.Show}),de=C(()=>{var se,Ae;return Ke.isUseEventDefaultConfig?ph.Show:(Ae=(se=b.value)==null?void 0:se.activePageHideCategory)!=null?Ae:ph.Show}),ne=C(()=>{var se;return(se=b.value)==null?void 0:se.rechargeFundName}),U=C(()=>ne.value||o("lobby.system.rechargeFund")),W=C(()=>{var se;return!S.value||Ke.isSimpleTheme?!1:(se=b.value)==null?void 0:se.showNewBenefits}),oe=C(()=>{var se;return!S.value||Ke.isSimpleTheme?!1:(se=b.value)==null?void 0:se.showMall}),be=C(()=>{var se;return(se=b.value)==null?void 0:se.activePageDisplayLocation}),Ie=C(()=>{var Je;const se=(Je=a.value)==null?void 0:Je.agentPromoteReward;return se==null?void 0:(typeof se=="string"?Number(String(se).replace(/,/g,"")):se)>0?se:void 0}),Me=O(!1);return{discountRedDot:a,redDotCatesMap:r,redDotEventsMap:s,eventsAuthData:i,redDotStatus:L,getRedDotStatus:T,isShowDiscount:S,isShowEvents:I,isShowTask:R,isShowLuckyWheel:D,isShowVip:G,isShowCoupon:j,isShowSVIP:N,isShowCashback:E,isShowNormalCashback:M,isShowClubCashback:B,isClubCashbackMode:c,isShowCreditLoan:Y,isShowRechargeFund:H,rechargeFundRate:F,isShowBlindBox:Q,isShowInterest:$,receivePop:X,eventsAuthInfos:b,canReceiveStyle:te,displayExpireReward:K,eventIndexStyle:q,eventActionStyle:ae,activePageDisplaySearch:me,activePageHideCategory:de,rechargeFundCustomName:ne,rechargeFundName:U,showNewBenefits:W,discountStaticRules:u,eventBarLocation:be,isShowMall:oe,promoteReward:Ie,isShowSurpriseReward:Me,setIsShowSurpriseReward:se=>{Me.value=se},resetDiscountRedDot:d,setEventsAuthData:y,getEventsAuthInfos:p,getDiscountRedDot:g,freshDiscountRedDot:h,getDiscountStaticRules:m}},{persist:{paths:["discountRedDot","redDotCatesMap","redDotEventsMap","eventsAuthData","eventsAuthInfos","discountStaticRules","isShowSurpriseReward"]}}),Ir=ke("gameUI",()=>{const e=O(!1),t=D=>{e.value=D},n=C(()=>{var D;return e.value&&!!((D=L.value)!=null&&D.platformId)}),o=O(!1),a=D=>{o.value=D},r=O(!0),s=D=>{r.value=D},i=O(Z.Hot),c=D=>{i.value=D},l=O(0),u=D=>{l.value=D},d=O(Z.Hot),m=D=>{d.value=D},g=O(!1),f=D=>{g.value=D},_=O(!1),h=D=>{_.value=D},p=O({}),y=D=>{Object.keys(D).forEach(M=>{p.value[M]=D[M]})},b=C(()=>Object.keys(p.value).map(D=>{var M;return(M=p.value)==null?void 0:M[D]}).flat()),v=O(!1),A=D=>{v.value=D},L=O({}),T=D=>{L.value=D},S=O({name:""});return{isGamePlaying:e,setGamePlaying:t,hasGamePlaying:n,isGameScoring:o,setGameScoring:a,isGameScoreSettled:r,setGameScoreSettled:s,isFullScreen:g,setFullScreen:f,isGameOpening:_,setGameOpening:h,hasLuckyBet:v,setHasLuckyBet:A,gameTypesShowRid:p,setGameTypesShowRid:y,showRidTypes:b,gameParameters:L,setGameParameters:T,preGameEmbeddedParams:S,setPreGameEmbeddedParams:D=>{S.value=D},scrollStickyMenuTab:i,setScrollStickyMenuTab:c,scrollStickyMenuPlatformTab:d,setScrollStickyMenuPlatformTab:m,homePageTab:l,setHomePageTab:u,resetGameState:()=>{a(!1),h(!1),t(!1)}}},{persist:[{paths:["isGamePlaying"]}]}),mV=()=>St(Ir());function gV(){const e=J(),t=ue(),n=cn("realNameForceModify"),o="|",a=C(()=>{var l,u,d,m;const c=(m=(d=((u=((l=t.systemInfos)==null?void 0:l.legalConfigRealnameOptions)&&JSON.parse(t.systemInfos.legalConfigRealnameOptions))!=null?u:[]).find(g=>{var f;return g.currencyCode===((f=e.userInfos)==null?void 0:f.currency)}))==null?void 0:d.option)!=null?m:1;return Number(c)}),r=C(()=>{var c,l,u,d,m;const i=(d=((c=e.userInfos)==null?void 0:c.realname)&&((u=(l=e.userInfos)==null?void 0:l.realname)==null?void 0:u.split(o).length))!=null?d:1;return((m=e.userInfos)==null?void 0:m.realname)&&Number(i)!==a.value});return{openModifyRealName:async()=>{r.value&&await n.openDialog("realNameForceModify",{openType:"insert"})},legalRealNameOption:a,splitSign:o}}const gg=rt(()=>V(()=>import("./0_RechargeCommonChunk.DDWWiKeW.js").then(e=>e.bF),__vite__mapDeps([0,1])),e=>e.useVipStore,"useVipStore");
19function fV(){const e=J(),t=tn(),n=ue(),o=Ht(),a=On(),r=bn(),s=To(),i=wr(),{apiDomain:c}=o.domainListMap;return(l,u,d,m)=>{var T;const g=va.deferLoginSuccessTasks(),f=S=>g?void Eg().then(()=>vk(2e3)).then(S):S(),_=u==="normal"||u=="thirdLogin",h=u=="temporaryAccountLogin",p=_||h,y=u==="trymode",b=u==="fastLogin",v=b&&m,A=b&&!m;if((()=>{if(y)return t.updateToken(null);const{session_key:S,userkey:I,jwt_token:R}=l;S&&I&&R&&t.updateToken({session_key:S,jwt_token:R,userkey:I},{isFastType:b})})(),_&&(Wi().setClaimToken(""),Wi().clearClaimLoginInfo()),e.setUserInfos(l),Eb(),d==null||d(l),l.deviceFingerprint&&e.setFingerId(l.deviceFingerprint),gV().openModifyRealName(),r.restartAutoDialog(y?void 0:{startBy:Bs.Login,startByPayload:{isNormalLogin:_,isFastLogin:b,isFastFromRegister:v,isFastFromReload:A,loginType:u}},["intelligentRecharge","securityForceBinding"]),e.isTemporaryAccountMode&&(_?i.disableOperate():(h||b)&&i.watchIfTempAccountCanUpgrade()),b&&Ln.set("recentlyLoggedIn",e.isRegistered),p&&Ln.set("recentlyLoggedIn",!0),!y){const{session_key:S,currency:I}=l;Ar().state.cacheRegisterValues=void 0,ze().updateUserPreferredCurrencyCache(I),f(()=>Re.reInitialBuried(l)),ve("LOGIN_SUCCESS").emit({loginType:u,userInfos:l}),f(()=>Gi.connectWS(n.siteInfos.siteCode,S,c)),f(()=>{tT(()=>V(()=>import("./index.BvvXf9lY.js"),[]))().then(D=>D.wsBrowserAuth()).catch(()=>{})}),setTimeout(()=>{pa(()=>V(()=>import("./postLoginCleanup.DfxOSXbK.js"),[]))().then(D=>{var M;(M=D.default)==null||M.call(D)}).catch(()=>{})},3e3);const R=qe.localStorage.get(yu.LastCurrency);l.currency!==R&&(ve("CURRENCY_CHANGED").emit({currencyCode:l.currency}),qe.localStorage.set(yu.LastCurrency,l.currency)),(s==null?void 0:s.scene)!==JL.ExternalApp&&(l!=null&&l.gameSession?ve("OTHER_CLIENT_GAME_LOGIN").emit(l.gameSession):l!=null&&l.lastgameinfo?Ki.continueGameDialog(l.lastgameinfo):(Ir().setGamePlaying(!1),Oi.isActivated||Ki.logoutAndUpdatePrize(!1,_u.LoginNoLastGameInfo))),e.hasHistoryLogined||(e.hasHistoryLogined=!0),f(()=>SW().getToken())}if(l!=null&&l.vip_icon_back_color_value&&typeof(l==null?void 0:l.vip_level)=="number"){const S={vip:l.vip_level,icon_color_value:l.vip_icon_back_color_value,vip_status:l.vip_status,icon_color:l.icon_color,icon_style:l.icon_style,current_style:l.vip_style};gg().then(I=>I.updateVipBasicInfo(S))}(T=e.userInfos)!=null&&T.noWalletMerchNo&&f(()=>{pa(()=>V(()=>import("./2_RechargeDialogsChunk.CBXWV6fA.js").then(S=>S.i),__vite__mapDeps([0,1,3,18])))().then(S=>{var I;typeof S.useNoWalletOrderStore=="function"&&((I=S.useNoWalletOrderStore())==null||I.getBubbleInfo())})}),e.isTemporaryAccountMode&&f(()=>gg().then(async S=>{var M;await S.getVipLevelList();const I=S.currentVip,R={...S.vipDetails,vip:I,icon_color_value:((M=S.vipLevels)==null?void 0:M.icon_color_value)||""};S.setVipDetails(R);const D={...l,vip_level:I,vip_status:a.isShowVip?dh.OPEN:dh.CLOSE};e.setUserInfos(D)})),n.engageLabWebPush&&f(()=>nT(n.engageLabWebPush))}}const iT=function(...e){const t=e[0],n=e.length===3?e[1]:!1,o=e[e.length-1];Ln.get("singletonDialogs")||Ln.set("singletonDialogs",{});const a=Ln.get("singletonDialogs"),r=()=>Reflect.get(a,t),s=u=>Reflect.set(a,t,u),i=()=>Reflect.deleteProperty(a,t);if(r())return;const l=(n?Vb:nf)({name:t,...o,isShowFrostedGlassEffect:!0,async beforeClose(...u){if(o.beforeClose){const d=await o.beforeClose(...u);return i(),d!=null?d:!0}return i(),!0}});s(l),l.catch(()=>i())};function pV(e,t){iT(e,t)}function oue(e,t){iT(e,!0,t)}function Eu(){const{t:e}=we(),t=J(),n=tn(),o=bn(),a=Ar(),{loginRemember:r}=rf(),s=fV(),i=dW(),c=uW(),l=async(h={})=>{var b;const{currentValidCurrency:p}=ze(),y={game_gold:2e3,account_type:qt.Try,platfromid:"web_lobby_guest_account",mode:0,currency:((b=h==null?void 0:h.tryCurrency)==null?void 0:b.currencyCode)||(p==null?void 0:p.currencyCode)};s(y,"trymode")},u=async(h,p)=>{var M;const{tokenInfos:y,tokenInfosFromUrl:b}=tn(),{noError:v=!0}=p||{},{userkey:A,session_key:L}=h||{},T=A&&!y,S={error:{action:v?"noMessage":"normal"}},[I,R]=await Ee(T?rG({data:{userkey:A}},S):sG({data:{session_key:L}},S));if(BD(),I)return Su(I).code===$e.USER_CLUB_ERROR?void 0:(i.reportLoginError("fastLogin",I),Promise.reject(I));const D=(M=R==null?void 0:R.data)==null?void 0:M.data;if(D){n.ensureTokenAndUidMatched=!0;let B=D;return T||(B=Object.assign({},D,tn().tokenInfos||b)),D.tempAccountUpgradeType&&setTimeout(()=>{i.reportRegisterSuccess("temporaryAccount")},5e3),s(B,"fastLogin",()=>{i.reportLoginSuccess("fastLogin",B);try{const E=TE,Y=Er[E];if(!Y)throw new Error("no queryString");ml({[E]:""},[E]);const H=JSON.parse(atob(Y!=null?Y:"bnVsbA==")),F=Nt(H,"mode"),Q=Nt(H,"urlIPBindInfo");t.setIPBindInfo(Q),F===Kt.Login&&c.onLoginSuccess(),F===Kt.Register&&c.onRegisterSuccess()}catch(E){t.setIPBindInfo({}),c.openSecurityForceBinding()}}),B}},d=async h=>{var v;const[p,y]=await Ee(iG(h));if(p)return i.reportLoginError("deviceHashLogin",p),Promise.reject(p);const b=(v=y==null?void 0:y.data)==null?void 0:v.data;b&&s(b,"deviceHashLogin",()=>{i.reportLoginSuccess("deviceHashLogin",b)})},m=async(h,p)=>{var I,R,D,M;const y=[$e.GEETEST_ILLEGAL_REQUEST,$e.USER_CLUB_ERROR,$e.USER_RESTRICT_ERROR];t.loginValidatePassed===ih.Skip&&(h.validatePassed=ih.Skip),Ca.stats("loginStats","statsDeviceVerify");const b=await pi.withRequestConfig("login",{data:h});Ca.stats("loginStats","statsDeviceVerify"),Ca.stats("loginStats","statsApi");let v={action:"normal",actionExcludes:y};p!=null&&p.noErrorMessage&&(v={action:"noMessage",actionExcludes:y.map(B=>({code:B,handle:!0,msg:!1}))});const[A,L]=await Ee(uG(b,{error:v}));if(Ca.stats("loginStats","statsApi"),await pi.decorator("login",A))return m(h,p);if(A){if(await Rh.hasAbort(A))return Promise.reject();if(p!=null&&p.errorTakeover)return Promise.reject(A);const{code:B,msg:E}=Su(A);switch(B){case $e.GEETEST_ILLEGAL_REQUEST:return sn().closeLoginRegister(),ve("GEETEST_ILLEGAL_REQUEST").emit
19({code:B,msg:E}),Promise.reject();case $e.USER_CLUB_ERROR:return c.onClubLoginError(),Promise.reject();case $e.USER_RESTRICT_ERROR:return await o.open("forbiddenSelf",{openType:"insert",options:{errorMessage:E}}),sn().closeLoginRegister(),Promise.reject();case $e.LOGIN_ERROR:return await((I=p==null?void 0:p.onUsernameOrUserpassError)==null?void 0:I.call(p,E)),Promise.reject(A);default:return i.reportLoginError("normal",A),Promise.reject(A)}}const T=(R=L==null?void 0:L.data)==null?void 0:R.code,S=(D=L==null?void 0:L.data)==null?void 0:D.data;return T===$e.SUCCESS&&(S!=null&&S.loginVerify||S!=null&&S.firstLoginVerify)?(await o.close("loginVerify"),await o.open("loginVerify",{openType:"insert",options:{form:h,userInfos:S}}),sn().closeLoginRegister(),t.setLoginValidatePassed(),Promise.reject()):(S&&(await((M=p==null?void 0:p.onBeforeSuccess)==null?void 0:M.call(p)),r(h,S),s(S,"normal",()=>{i.reportLoginSuccess("normal",S,h),AV(h,S),c.onLoginSuccess(h)})),S)},g=async(h,p,y,b)=>{var I,R,D,M;const v=await pi.withRequestConfig("login",{data:h}),A=b?mG:dG,[L,T]=await Ee(A(v));if(await pi.decorator("login",L))return g(h,p,y);if(L){const{code:B}=Su(L),E=async Y=>{var Q;const H=(Q=o.stateMap.loginRegister)==null?void 0:Q.visible,F={};Y===Kt.Login&&(F.login=!0),Y===Kt.Register&&(F.register=!0),await sn().openLoginRegister({force:!0,skipGuide:!0,skipWebauthn:!0,skipTemporary:!0,skipBindRegister:!0,openType:"insert",...F}),H&&sn().closeLoginRegister(!1,!1)};if(B===$e.USER_CLUB_ERROR){c.onClubLoginError();return}else if(B===$e.THIRD_PARTY_LOGIN_UNREGISTER_ERROR){xv.loginWithUnRegister(async Y=>{a.setMode(Y),Xn(k.LOGIN_REGISTER_UPGRADE_GUIDE)&&await E(Y)});return}else if(B===$e.THIRD_PARTY_LOGIN_UNBIND_ERROR){xv.loginWithUnBind(async Y=>{a.setMode(Y),Xn(k.LOGIN_REGISTER_UPGRADE_GUIDE)&&await E(Y)});return}return i.reportLoginError("thirdLogin",L),Promise.reject(L)}const S=(I=T==null?void 0:T.data)==null?void 0:I.data;if(S)if(S.code!==$e.THIRD_PARTY_UN_REGISTER)s(S,"thirdLogin",()=>{r(h,S),p==null||p(),i.reportLoginSuccess("thirdLogin",S,h),c.onLoginSuccess(h)}),Xn([k.LOGIN_REGISTER_UPGRADE_GUIDE])&&Oe().replace({name:k.ROOT});else{if(y==null||y(),(R=o.stateMap.claimLogin)!=null&&R.visible){pV(vL.CLAIM_THIRD_PARTY_UNBOUND,{title:e("lobby.common.tips.title"),message:e("lobby.center.claim.claimLogin.unboundThirdPartyAccount"),showConfirmButton:!1,showCloseButton:!0});return}const B=S,E=h.email||B.email||"",Y=(D=o.stateMap.loginRegister)==null?void 0:D.visible;await sn().openLoginRegister({force:!0,skipGuide:!0,skipWebauthn:!0,skipTemporary:!0,skipBindRegister:!0,openType:"insert",register:!0,thirdParty:!0,email:E,id:(M=h.id)!=null?M:S==null?void 0:S.thirdAccount,access_token:h.access_token,requester_type:h.requester_type,platformId:B.new_username,passwd:B.new_password,thirdAccount:B.thirdAccount}),Y&&sn().closeLoginRegister(!1,!1)}else y==null||y()},f=async()=>{const{temporaryAccountCurrency:h}=ze(),{localUserid:p,localUsername:y}=a_(),b={game_gold:0,account_type:qt.Temporary,platfromid:y,username:+p,mode:0,currency:h||"",vip_level:0,portrait_id:"/lobby_asset/common/common/common/default_man.png"};return new Promise(v=>{s(b,"trymode",()=>{v(null)})})},_=async h=>{var R,D;const{localUserid:p,localUsername:y}=a_(),b={registerLink:window.location.href,currency:h!=null?h:((R=ze().currentTryCurrency)==null?void 0:R.currencyCode)||"",localUserid:p,localUsername:y},{urlParams:v}=en(),A=v.cid||((D=t.ipBindInfo)==null?void 0:D.regPkgId);A?Pe(b,{agent_type:1,agent_code:`${A}`}):v.id&&Pe(b,{agent_type:2,agent_code:v.id});const L=await pi.withRequestConfig("register",{data:b}),[T,S]=await Ee(gG(L));if(await pi.decorator("register",T))return _(h);const I=S==null?void 0:S.data.data;if(T)return i.reportRegisterError(T,"temporaryAccount"),Promise.reject(T);I&&s(I,"temporaryAccountLogin",()=>{i.reportRegisterSuccess("temporaryAccount")})};return{mockTryModeLogin:l,fastLogin:u,hashLogin:d,login:m,thirdPartyLogin:g,temporaryUserLogin:f,temporaryAccountLogin:_}}let Od;function hV(){const e=J(),t=ze(),n=Ge(),o=Tt(),{homeLayoutInfos:a}=ue(),r=()=>t.currencyLangDialogShown||i(),s=async()=>
19{if(o.ipChecked)return o.ipCheck;const[d,m]=await Ee(dL("register"));return m&&o.updateIPCheck(m),o.ipCheck},i=async()=>Od||(Od=c(),Od),c=async()=>{const d="currencyLangPageVisited";if(localStorage.getItem(d))return!1;localStorage.setItem(d,"1");const m=t.currentValidCurrency,g=await sg().getIPBindInfo(),f=await s(),h=(g==null?void 0:g.currency)||f.recommendCurrency,p=m==null?void 0:m.currencyCode,y=f.recommendLanguage,b=Ge().language,v=h===p,A=y===b,L=n.isSingleLang,T=t.siteCurrencyList.length<=1;return!((a==null?void 0:a.commonConfig.langCnyCfg)===Pc.SCLOSE||e.isLogined||t.currencyLangDialogShown||L&&T||L&&!T&&!A&&v||!L&&T&&!v&&A||!T&&!v&&!t.isCurrencyChangeable()||!T&&!L&&v&&A)};return{beforeOpen:i,openedOrWillOpen:r,tryOpenBeforeQueue:async()=>{var _;if(!await i())return;const m=bn(),{envEnable:g}=wr();m.lockAutoDialog("switchCurrencyLang");const{off:f}=ve("DIALOG_CLOSE",({name:h})=>{h==="switchCurrencyLang"&&(f(),m.unlockAutoDialog("switchCurrencyLang"))});await m.open("switchCurrencyLang",{openType:"overlay",options:{showCloseButton:!g.value,showCancelButton:!g.value}}),(_=m.stateMap.switchCurrencyLang)!=null&&_.visible||(f(),m.unlockAutoDialog("switchCurrencyLang"))},tryOpenWithCallback:async d=>{var g,f;if(t.currencyLangDialogShown)return(g=d==null?void 0:d.onComplete)==null||g.call(d),!0;if(!await i())return(f=d==null?void 0:d.onSkip)==null||f.call(d),!1;if(d!=null&&d.onComplete){const{off:_}=ve("DIALOG_CLOSE",({name:h})=>{h==="switchCurrencyLang"&&(_(),d.onComplete())})}return!0}}}const _V=async()=>{var i,c;const{isAgeFulfil:e,siteMaintenanceStatus:t,areaStatus:n,setAgeFulfil:o}=Tt();if(e||dt.enable||t||!n){e||o(1);return}let a=null;const{data:r}=Pt("apiGetOptimizationSiteConfigV2");ms("apiGetOptimizationSiteConfigV2")?a=r==null?void 0:r.layoutDesign:a=(c=(i=(await Oh({previewonly:!1})).data)==null?void 0:i.data)==null?void 0:c.layoutDesign;const s=a==null?void 0:a.hgAgeConfig;(s==null?void 0:s.isOpen)===SA.Open&&(s!=null&&s.content)?bn().open("ageCompliance"):o(1)},bV=async()=>{const e=Tt();e.isAgeFulfil||await gw(()=>e.isAgeFulfil).toBeTruthy()};function wr(){const e=J(),{bindPhoneRegister:t}=uL(),n=en(),o=ze(),a=bn(),r=tn(),s=ue(),i=sn(),c=(...T)=>nt.info("tempAccount",...T),l=C(()=>{var S,I,R,D,M;return[(S=a.stateMap.loginRegister)==null?void 0:S.visible,(I=a.stateMap.registerConfirm)==null?void 0:I.visible,(R=a.stateMap.registerPassword)==null?void 0:R.visible,(D=a.stateMap.registerRecharge)==null?void 0:D.visible,(M=a.stateMap.bindRegister)==null?void 0:M.visible].includes(!0)?"stop":"start"});fe(l,()=>{ve("AUTO_INIT_TEMPORARY_ACCOUNT_INTERVAL").emit(l.value)});const u=C(()=>{var R,D,M,B;const T=Qe();let S=(D=(R=s.systemInfos)==null?void 0:R.loginRegister)==null?void 0:D.temporaryAccountH5;return[!!re.package.isApp,re.package.isWebClip,T.isP2a].includes(!0)&&(S=(B=(M=s.systemInfos)==null?void 0:M.loginRegister)==null?void 0:B.temporaryAccount),S===jt.OPEN}),d=C(()=>{const T=[!_a(),!0,!fP,u.value,o.siteCurrencyList.length,!r.hasToken,!e.hasHistoryLogined],S=T.every(Boolean);return c(S?"enable":"disabled",`[${T.join(",")}]`),S}),m=C(()=>{var F,Q,G;const T=Ut(),S=[re.package.isLite,re.package.isWebClip,Qe().isP2a],I={condition:(F=T==null?void 0:T.channelInfo)==null?void 0:F.rewardsCondition,amount:(Q=T==null?void 0:T.currentCurrencyAward)==null?void 0:Q.tempRewardsAmount},R=I.condition===Yg.All,D=((G=I.amount)!=null?G:-1)>0,M=S.includes(!0),B=R&&D,E=e.temporaryAccountStatus.unRecharg,H={device:M,enableDevices:S,config:B,enableConfigs:I,channelReward:M&&B&&E};return c("refCannelReward",["all",H.channelReward,"device",H.device,"config",H.config,"unRecharg",E]),H}),g=async()=>{var I,R;const T=Ut();if(!m.value.device){c("channe","not package scene",m.value.enableDevices);return}let S;if(e.temporaryAccountStatus.unLogin){const D=await sg().getIPBindInfo();S=D==null?void 0:D.regPkgId}else if(e.temporaryAccountStatus.logined&&!((I=e==null?void 0:e.userInfos)!=null&&I.deposit_count))S=(R=e.userInfos)==null?void 0:R.regPkgId;else{c("not tempaccount");return}if(!S){c("channe","not regPkgId");return}if(!T.channelInfo&&(await Ut().getChannelInfoById(S),!T.channelInfo)){c("channe","not channeInfo",T.channelInfo);return}if(m.value.config)return c("channe reward enable","condition",m.value.enableConfigs.condition),c("channe reward enable","amount",m.value.enableConfigs.amount),!0;c("channe reward disabled")},f=()=>{var T;return Number((T=e.userInfos)==null?void 0:T.deposit_count)>0&&e.isTemporaryAccountMode},_=()=>{i.openLoginRegisterUpgradeGuide()};let h=null;const p=()=>
19{if(h)return;h=ve("USER_DEPOSIT_COUNT_CHANGE");const T=()=>f()?(_(),h.off(),!0):(e.isTemporaryAccountMode||(h.off(),h=null),!1);T()||h.changeOn(T)},y=async()=>{if(Lt.end(Lt.target.localTemporary,Lt.target.appMounted),!d.value||e.isTemporaryAccountMode)return!1;try{const T=await b();o.temporaryAccountCurrency=T,c("selectCurrency",T),await Eu().temporaryUserLogin(),c("localGenerateSuccess");const S=await g();if(c("channel reward enable",`${!!S}`),!S)return A();v().then(()=>{})}catch(T){if((T==null?void 0:T.message)==="LOGIN_SUCCESS"){c("initTemporaryUser aborted: user already logged in");return}throw T}},b=async()=>{var I;if(await new Promise(R=>{hV().tryOpenWithCallback({onSkip:()=>R(!1),onComplete:()=>R(!0)})}))return(I=o.currentValidCurrency)==null?void 0:I.currencyCode;await bV();let S;if(o.temporaryAccountCurrency)S=o.siteCurrencyList.find(R=>R.currencyCode===o.temporaryAccountCurrency);else if(o.siteCurrencyList.length===1)S=o.siteCurrencyList[0];else if(n.urlParams.currency)S=o.siteCurrencyList.find(R=>R.currencyCode===n.urlParams.currency);else{const R=await sg().getIPBindInfo();R!=null&&R.currency&&(S=o.siteCurrencyList.find(D=>D.currencyCode===R.currency))}if(S)return o.updateCurrentTryCurrency(S),S.currencyCode;if(r.hasToken)throw new Error("LOGIN_SUCCESS");return await new Promise((R,D)=>{let M=!1;const B=ve("LOGIN_SUCCESS",()=>{M||(M=!0,B.off(),a.close("switchCurrencyLang"),D("LOGIN_SUCCESS"))});a.open("switchCurrencyLang",{openType:"overlay",options:{showCancelButton:!1,showCloseButton:!1,closeOnRouteChange:!1,onConfirm:E=>{var Y;M||(M=!0,B.off(),R(E.currencyCode||((Y=o.currentTryCurrency)==null?void 0:Y.currencyCode)))}}})})},v=async()=>{if(c("init"),!d.value)return!1;try{return c("generate"),await Eu().temporaryAccountLogin(),c("generateSuccess"),!0}catch(T){return c("generateError",T),!1}},A=()=>{let T;const S=qn(I=>{var E,Y,H,F,Q,G;if(c("AUTO_INIT_TEMPORARY_ACCOUNT_INTERVAL",I),window.clearInterval(T),I==="stop")return;const R=(Y=(E=s.systemInfos)==null?void 0:E.loginRegister)==null?void 0:Y.regTempAccountPageStay;let D=((Q=(F=(H=s.systemInfos)==null?void 0:H.loginRegister)==null?void 0:F.regTempAccountAfterSecs)!=null?Q:40)*1e3;const M=(G=To())==null?void 0:G.autoInitTempAcc;if(M&&(D=+M*1e3),c("enableAutoInit",R),R!==jt.OPEN){c("disabled: ","switch is closed");return}if(e.isNormalMode&&!e.isTemporaryAccountMode){c("disabled: ","is Normal Account");return}const B=Date.now()+D;c("startStats",D/1e3,"s"),T=window.setInterval(()=>{const N=B-Date.now();c("sleepAutoInit",N/1e3),N<=0&&(window.clearInterval(T),c("startAutoInit"),v())},2e3)},300);ve("AUTO_INIT_TEMPORARY_ACCOUNT_INTERVAL").changeOn(S),ve("AUTO_INIT_TEMPORARY_ACCOUNT_INTERVAL").emit("start")};return{envEnable:d,selectCurrency:b,disableOperate:T=>{var S;if(e.isTemporaryAccountMode){const I=(S=T==null?void 0:T.openType)!=null?S:"overlay";return f()?_():t.value.enable?a.open("bindRegister",{...T,openType:I}):(a.open("temporaryAccountGuide",{...T,openType:I}),p()),!0}return!1},isChannelReward:m,initTemporaryUser:y,initTemporaryAccount:v,watchIfTempAccountCanUpgrade:p,canUpgrade2NormalAccount:f}}const cT=d1(()=>{const e=jg();ac("Lv1");const t=Oe(),n=Do(),o=J(),a=ue(),{openDialog:r}=cn(),s=O(!1),i=T=>Oo(T,{showGroup:!0,toFixedType:"currency"}).toFixed({tailZero:!0}).toString(),c=T=>{if(T>=1e3){const S=I=>(Math.trunc(I*100)/100).toFixed(2)+"K";if(T>=1e3)return S(T/1e3)}return Oo(T,{showGroup:!0,toFixedType:"currency"}).toFixed({tailZero:!0}).toString()},{getCurrencyNormalIconByMap:l}=ze(),u=C(()=>{var S;const T=(S=e.value)==null?void 0:S.currency;return l(T)}),d=(T=Hs.CENTER_WALLET)=>{var S;if(o!=null&&o.isTemporaryAccountMode&&(s.value=!0),!((S=o.userInfos)!=null&&S.deposit_count)&&o.isTemporaryAccountMode){r("temporaryAccountGuide",{options:{rechargeBonus:m.value}});return}if(!o.hasLoginedComponent){sn().openLoginRegister();return}t.push({name:k.REPORT,query:{reportCurrent:T}})},m=C(()=>{var T;return f((a==null?void 0:a.tempAccountFirstRechargeBonus)||{},((T=o.userInfos)==null?void 0:T.currency)||"CNY")}),g=async()=>{var I,R;const T=Tt(),S=(R=(I=(await ub({osType:T.osType})).data.data)==null?void 0:I.homeGetSysInfo)==null?void 0:R.tempAccountFirstRechargeBonus;S&&a.setTempAccountFirstRechargeBonus(S)},f=(T,S)=>T===null||!Object.prototype.hasOwnProperty.call(T,S)?"0.00":T[S],_=O(null),h=async()=>{_.value&&clearTimeout(_.value),_.value=setTimeout(()=>{n.setFetchingPrize(!1)},200),n.setFetchingPrize(!0),g()},p=T=>{var S;if(((S=t.route)==null?void 0:S.name)===k.GAME&&T){Ki.logoutAndUpdatePrize(!0,_u.UpdatePrizeGame);return}Do().updatePrize(),y()},y=()=>{Re.doReport({rule:Re.rules.SENSOR_BURIED,eventName:Re.sensorEvents.BalanceRefresh})},b=T=>{var R,D,M;const{isChannelReward:S}=wr();if(S.value.channelReward)return Oo(S.value.enableConfigs.amount,{showGroup:!0,toFixedType:"currency"}).toFixed({tailZero:!0}).toString();if(o.isTemporaryAccountMode&&!o.temporaryAccountStatus.recharged)return m.value;(R=t.route)!=null&&R.name&&[k.LOTTERY_HOME,k.SPORT].includes((D=t.route)==null?void 0:D.name);const I=sa(e.value.game_gold);return(T?I:I.plus((M=e.value.bonus)!=null?M:"")).toString()},v=C(()=>n.hiddenBalance||A.value),A=C(()=>{var T,S;return((T=o.userInfos)==null?void 0:T.user_status)===Fm.BlackList&&[k.GAME,k.MINE,k.CASINO].includes((S=t.route)==null?void 0:S.name)&&!0}),L=C(()=>{var T;return((T=o.userInfos)==null?void 0:T.user_status)===Fm.BlackList?tD:n.hiddenBalance?eD:""});return{formatCurrency:i,getCurrencyIcon:u,goCenterWallet:d,bonusNum:m,isShowBonusNum:s,temporaryAccountClick:h,updateCurrency:p,getRechargeBonus:g,balance:b,encryptContent:L,isNeedEncryptBalance:v,isBlackUser:A,formatCurrencyShrink:c}});function o_(){const e=J(),t=ue(),{formatCurrency:n}=cT(),o=C(()=>{var p;const m=Number((p=t.systemInfos)==null?void 0:p.maxMultiAccountCount)||0,g=m>=xh.Min,f=e.isTemporaryAccountMode,h=(e.isNormalMode||e.isAgent||e.isProfessionalAgent||e.isNormalMember||e.isDemoMode)&&!f;return{enable:g,count:m,switch:{temporary:f,ordinary:h&&g}}}),a=()=>
19{if(!e.localAccounts)return[];let m=[];try{m=JSON.parse(Sn.decrypt(e.localAccounts,Mc))}catch(g){m=null}return m!=null?m:[]},r=m=>{try{e.setLocalAccounts(Sn.encrypt(JSON.stringify(m.slice(0,xh.Max)),Mc))}catch(g){nt.error("setFillArray",g)}return m},s=m=>{const g=a(),f=g.findIndex(_=>_.session_key===m);return f>=0&&g.splice(f,1),r(g),g},i=m=>{let g=a();return g.length?(m.session_key&&(g=s(m.session_key)),g.unshift(m),r(g)):r([m])};return{refOptions:o,getFillArray:a,setFillArray:r,delFillArray:s,pushFillArray:i,editFillArray:m=>{const f=a().find(h=>h.session_key===m.session_key||h.username===m.username);if(!f)return;const _={...f,...m};i(_)},clearFillArray:()=>{e.setLocalAccounts("")},accountRemember:m=>{if(!(m!=null&&m.session_key))return;const g={session_key:m.session_key,game_gold:m.game_gold+(Number(m.bonus)||0),portrait_id:m.portrait_id,platfromid:m.platfromid,username:m.username,vip_status:m.vip_status,vip_level:m.vip_level,vip_icon_back_color_value:m.vip_icon_back_color_value};i(g),gg().then(f=>f.freshLocalAccounts())},formatLocalAccount:m=>{const g=[];for(const f of m){const h=a().find(v=>v.session_key===f.session_key);let p=f;if(f.exception_state&&(p={...f,...h,exception_state:f.exception_state}),!p.username){s(f.session_key);continue}const y=g.find(v=>v.username===p.username||p.platfromid&&v.platfromid===p.platfromid);if(y)if(y.exception_state&&!p.exception_state){const v=g.indexOf(y);g.splice(v,1),s(y.session_key)}else{s(f.session_key);continue}const b=n(p==null?void 0:p.game_gold);g.push({...p,format_game_gold:b})}return g}}}function rf(){const e=J(),{remember:t}=ss(e),{autoFillString:n,autoFillAccount:o}=ss(e),a=()=>{try{return JSON.parse(Sn.decrypt(o.value,Mc))}catch(h){return""}},r=(h="")=>{try{const p=Sn.encrypt(JSON.stringify(h),Mc);e.setAutoFillAccount(p)}catch(p){nt.error("setFillAccount",p)}},s=h=>h.filter(p=>!!p.account),i=()=>{if(!n.value)return[];let h=[];try{h=JSON.parse(Sn.decrypt(n.value,Mc))}catch(p){h=null}return s(h!=null?h:[])},c=h=>{try{h=s(h),e.setAutoFillString(Sn.encrypt(JSON.stringify(h.slice(0,20)),Mc))}catch(p){nt.error("setFillArray",p)}return h},l=h=>{const p=i(),y=p.findIndex(b=>b.account===h);return y>=0&&p.splice(y,1),c(p),p},u=h=>{let p=i();return p.length?(h.account&&(p=l(h.account)),p.unshift(h),c(p)):c([h])};return{remember:t,getFillAccount:a,setFillAccount:r,getFillArray:i,setFillArray:c,delFillArray:l,pushFillArray:u,editFillArray:h=>{const p=i(),y=a(),b=p.find(A=>A.account===y);if(!b)return;const v={...b,...h};u(v)},loginRemember:(h,p)=>{var S;o_().accountRemember(p);const{Account:y,PhonePass:b,EmailPass:v}=st,A=h.loginType;let L={};switch(A){case st.Phone:case st.PhonePass:{const I=((S=h==null?void 0:h.phone)!=null?S:"").split("-");L={loginType:A,account:I[1],smsSegment:I[0]};break}case st.Email:case st.EmailPass:L={loginType:A,account:h.email};break;default:L={loginType:A,account:h.username};break}r(L.account);const T=typeof A!="undefined"&&!t.value&&[y,b,v].includes(A);if(t.value||T){const I=i().find(D=>D.account===L.account),R=h.userpass||(I==null?void 0:I.userpass);L.userpass=T?"":R,L.session_key=p==null?void 0:p.session_key,u(L)}},registerRemember:(h,p)=>{var v,A;o_().accountRemember(p);const y=(v=Nt(h,"registerType"))!=null?v:st.Account;let b={};switch(y){case st.Phone:case st.PhonePass:case st.PhonePassCode:{const L=((A=h==null?void 0:h.mobilePhoneNumber)!=null?A:"").split("-");b={account:L[1],userpass:h==null?void 0:h.passwd,smsSegment:L[0],loginType:st.PhonePass};break}case st.Email:case st.EmailPass:case st.EmailPassCode:{b={account:h==null?void 0:h.email,userpass:h==null?void 0:h.passwd,loginType:st.EmailPass};break}default:b={account:h==null?void 0:h.platformId,userpass:h==null?void 0:h.passwd,loginType:st.Account}}b.webauthn=!1,b.session_key=p==null?void 0:p.session_key,t.value||(b.userpass=""),r(b.account),u(b),e.toggleRemember(!0)},getWithSessionkey:h=>{if(h)return i().find(p=>p.session_key===h)},autoFillHistoryTotal:()=>!!i().length}}var yV=(e=>(e.AutoFallback="auto-fallback",e.IpRecommendation="ip-recommendation",e.UserSelection="user-selection",e.History="history",e.Business="business",e))(yV||{});const sp=vt({loading:!1,error:null}),sf=ke("smsCountry",()=>{const e=vt({defaultCountry:void 0,countrys:[],allCountryList:[],ipCheck:void 0,code:"",codeSource:"auto-fallback"}),t=async u=>
19{if(u||!e.allCountryList.length){const[d,m]=await Ee(nx());!d&&m&&(e.allCountryList=m.countryInfos)}},n=async(u,d)=>{sp.loading=!0;const m=async()=>u?await u():(await PA()).data.data,[g,f]=await Ee(m());return sp.loading=!1,sp.error=g,f&&(e.defaultCountry=f.defaultCountry,e.countrys=f.countryInfos,e.ipCheck=f.ipCheck),o(d),g},o=(u,d="business")=>{var p,y,b,v;const{getFillArray:m}=rf(),{ipCheck:g}=Tt(),f=e.code;if(!e.countrys.length){e.code="",e.codeSource="auto-fallback";return}const h=[{code:u,source:d},{code:f,source:e.codeSource},{code:(p=m()[0])==null?void 0:p.smsSegment,source:"history"},{code:e.ipCheck===dr.OPEN?g.recommendAreaCode:"",source:"ip-recommendation"},{code:(y=e.defaultCountry)==null?void 0:y.phoneNumberSegment,source:"auto-fallback"},{code:e.countrys[0].phoneNumberSegment,source:"auto-fallback"}].find(({code:A})=>e.countrys.some(L=>L.phoneNumberSegment===A));e.code=(b=h==null?void 0:h.code)!=null?b:"",e.codeSource=(v=h==null?void 0:h.source)!=null?v:"auto-fallback"},a=()=>{const{ipCheck:u}=Tt(),d=e.ipCheck===dr.OPEN?u.recommendAreaCode:"",m=e.countrys.some(f=>f.phoneNumberSegment===d);return e.codeSource==="auto-fallback"&&!!d&&m?(e.code=d,e.codeSource="ip-recommendation",!0):!1},r=C(()=>{var u;return(u=e.countrys.find(d=>d.phoneNumberSegment===e.code))!=null?u:e.allCountryList.find(d=>d.phoneNumberSegment===e.code)}),s=C(()=>{var _,h,p;let u=(_=r.value)==null?void 0:_.phoneLengthScope;u||(u=`${Sd.SmsScope.Min},${Sd.SmsScope.Max}`);const d=u.split(",").map(Number),m=(h=Math.min(...d))!=null?h:Sd.SmsScope.Min,g=(p=Math.max(...d))!=null?p:Sd.SmsScope.Max;return{range:fg(m,g),min:m,max:g}}),i=u=>u?u.indexOf("-")>=0?u:`${e.code}-${u}`:"",c=(u="")=>{if(/(\+\d+-)((\d+)(\**)(\d+))/.test(u)){const[d,m]=u.split("-");return{code:d,phone:m,desensitized:/(\*+)/.test(u),source:u}}return{code:void 0,phone:void 0,desensitized:void 0,source:u}};return{state:e,range:s,country:r,initApis:n,initCode:o,applyIpRecommendation:a,initAllCountry:t,codeIncludes:u=>{const d=c(u).code||u;return!!e.countrys.find(m=>m.phoneNumberSegment===d)},format:i,parser:c}},{persist:{paths:["state.countrys"]}});function aue(e){return{handled:Nt(e,"data.__PUBLIC_ERROR__.handled",!1),showedMsg:Nt(e,"data.__PUBLIC_ERROR__.showedMsg",!1)}}function Su(e={}){let t=0,n=0,o="";return t=Nt(e,"data.code",t),n=Nt(e,"data.errorCode",Nt(e,"data.err_code",n)),o=Nt(e,"data.msg",o),Nt(e,"data")||(t=Nt(e,"code",t),o=Nt(e,"message",o)),{code:t,errorCode:n,msg:o}}function rue(e){for(const t of Reflect.ownKeys(e)){const n=Nt(e,t);(Aw(n)||n==="")&&Reflect.deleteProperty(e,t)}}function fg(e,t){return e===t?`${e}`:`${e}-${t}`}function pg(e,t){for(const n of e)if(n[0])return n[1];return t}async function sue(e=1e3){return new Promise(t=>{setTimeout(t,e)})}function iue(e,t){var r,s,i;const n=ue(),a=((s=Nt((r=n.systemInfos)==null?void 0:r.pinTypeMap,e))!=null?s:[]).find(c=>c.pinNumberType===t);return(i=a==null?void 0:a.pinNumberTypeName)!=null?i:"CPF"}function cue(e){return{[Co.NOWALLET]:Ls.NOWALLET,[Co.GOOGLE]:Ls.GOOGLE,[Co.LINE]:Ls.LINE,[Co.FACEBOOK]:Ls.FACEBOOK,[Co.WEBAUTHN]:Ls.WEBAUTHN,[Co.ZALO]:Ls.ZALO,[Co.TELEGRAM]:Ls.TELEGRAM}[e]}function lue(e){const{t}=we();return{[Co.NOWALLET]:t("lobby.center.setting.noWallet"),[Co.GOOGLE]:fi.Google,[Co.LINE]:fi.Line,[Co.FACEBOOK]:fi.Facebook,[Co.WEBAUTHN]:fi.Webauthn,[Co.ZALO]:fi.Zalo,[Co.TELEGRAM]:fi.Telegram}[e]}function uue(e,t="*"){return e.replace(/^(.{2}).*(.{3})$/,(n,o,a)=>o+t.repeat(e.length-5)+a)}function due(e="",t="*"){return e?e.length<=5?xm(t,3)+e.slice(-1):xm(t,3)+e.slice(-4):""}function mue(e,t="*"){var a;const n=((a=e.match(/^(\S+)@/))==null?void 0:a[1])||"";return(r=>e.replace(`${n}@`,`${n.slice(0,r)}${xm(t,n.length-r)}@`))(n.length<=3?0:3)}function gue(e,t=6,n="*"){if(~e.indexOf("-")){const{areaCode:a,value:r}=vV(e);return a+r.slice(0,2)+xm(n,Math.min(t,r.length-5))+r.slice(2+Math.min(t,r.length-5))}else throw new Error("phone is not a correct phone number, phone = "+e)}function vV(e){const[t,n,o,a,r,s]=e.match(/(\+\d+-)((\d+)(\**)(\d+))/)||[];return{origin:t,areaCode:n,placeholder:r,value:o,prefix:a,suffix:s}}const SV=(e,t)=>{var n,o,a;return((n=e==null?void 0:e.data)==null?void 0:n.code)===$e.USER_RESTRICT_ERROR&&((o=e==null?void 0:e.data)!=null&&o.msg)?(sn().closeLoginRegister(),CV((a=e==null?void 0:e.data)==null?void 0:a.msg,t),!0):!1},CV=(e,t)=>{e&&bn().open("forbiddenSelf",{openType:"overlay",options:{errorMessage:e,okCallback:t}})};function fue(e){const t=sf(),{formatRtlPlaceholder:n}=Rb(),{phone:o}=t.parser(t.format(e)),{t:a}=we();if(!o)return;const r=`âª${o.replace(/\*+/,"*")}â¬`,s="__PHONE__",i=a("lobby.modal.login.placeholder.desensitizedPhoneNumber",{phone:s});return n(i,s,l=>`${s} ${l.replace(s,"").trim()}`).replace(s,r)}function pue(e){const{t}=we(),{formatRtlPlaceholder:n}=Rb();if(!e)return;const o=`âª${e.replace(/\*+/,"*")}â¬`,a="__EMAIL__",r=t("lobby.modal.login.placeholder.desensitizedEmail",{email:a});return n(r,a,i=>`${a} ${i.replace(a,"").trim()}`).replace(a,o)}function hue(e){const t=document.documentElement.getAttribute("dir")==="rtl",{code:n,phone:o}=sf().parser(e);return(t||Ge().rtlClass)&&n&&o?[o,n.split("+").reverse().join("+")].join("-"):e}function a_(){var o,a,r;const e=(o=jn().uuid)!=null?o:"",t=(r=(a=e.match(/\d+/g))==null?void 0:a.join("").substring(0,9).padEnd(9,"0"))!=null?r:"";return{localUsername:"guest_"+e.substring(0,6).padEnd(6,"abc"),localUserid:""+t}}const Ks=(e,...t)=>{const n=(o,a)=>
19{if(E_(o))return Array.from(new Set(o.concat(a)))};return B1({},e,...t,n)};function lT(){var n;const t=(n=ue().systemInfos)==null?void 0:n.loginPasswdStrengthDetectSwitch;return t!=null?t:_r.Normal}function wV(e){var h,p;const n=ue(),o=(h=n.systemInfos)==null?void 0:h.strongPasswdLength,i={meetsLength:((p=n.systemInfos)==null?void 0:p.loginPasswdStrengthDetectSwitch)===_r.Complex&&o!=null?o:6,lowerCase:/[a-z]/,upperCase:/[A-Z]/,number:/\d/,punctuation:new RegExp(`[${Dc}]`)},c=e.length>=i.meetsLength,l=i.lowerCase.test(e),u=i.upperCase.test(e),d=i.number.test(e),m=i.punctuation.test(e);let g=0;const f=[l,u,d,m].filter(y=>y),_=[c,...f].filter(y=>y);return _.length===5?g=4:c&&f.length>=3?g=3:_.length>=2?g=2:_.length>=1&&(g=1),g}function IV(e){const{t}=we(),{length:n,lowerCase:o,upperCase:a,number:r,punctuation:s,range:i=[6,16]}=e;let c="";const l=u=>c+=(c?"/":"")+u;return a&&l(t("lobby.common.formRules.uppercase")),o&&l(t("lobby.common.formRules.lowercase")),r&&l(t("lobby.common.formRules.num")),s&&l(t("lobby.common.formRules.special")),c=fg(n!=null?n:i[0],i[1])+t("lobby.common.formRules.atLeast")+c,c}function AV(e,t){var c,l;const{t:n}=we(),o=ue(),a=(c=o.systemInfos)==null?void 0:c.loginPasswdStrengthDetectSwitch,r=(l=o.systemInfos)==null?void 0:l.strongPasswdWeakLoginRemind,s=e.userpass,i=wV(s!=null?s:"");t.account_type===qt.Normal&&s&&a&&r&&i<2&&_o.warn(n("lobby.modal.login.passwordHint"))}function _ue(e){var r,s,i,c,l;const{t}=we(),n=ue(),{level:o,range:a=[6,16]}=e;switch(o){case _r.Complex:{const u=(r=n.systemInfos)==null?void 0:r.strongPasswdRequireUppercase,d=(s=n.systemInfos)==null?void 0:s.strongPasswdRequireLowercase,m=(i=n.systemInfos)==null?void 0:i.strongPasswdRequireNum,g=(c=n.systemInfos)==null?void 0:c.strongPasswdRequireSpecial,f=(l=n.systemInfos)==null?void 0:l.strongPasswdLength;let _="";return u&&(_+="^(?=.*[A-Z])"),d&&(_+="(?=.*[a-z])"),m&&(_+="(?=.*[0-9])"),g&&(_+=`(?=.*[${Dc}])`),_+=`.{${f!=null?f:a[0]},${a[1]}}$`,{regex:new RegExp(_),message:IV({length:f,upperCase:u,lowerCase:d,number:m,pu
19nctuation:g,range:a})}}case _r.Normal:return{regex:new RegExp(`^(?!^(\\d+|[a-zA-Z]+|[${Dc}]+)$)^[\\w${Dc}]{${a[0]},${a[1]}}$`),message:t("lobby.common.formRules.userpass",{range:fg(a[0],a[1])})};case _r.Simple:default:return{regex:new RegExp(`^([${Dc}a-zA-Z0-9]){${a[0]},${a[1]}}$`),message:t("lobby.common.formRules.loginUserpass",{range:fg(a[0],a[1])})}}}function bue(e){const t=ue();e=e!=null?e:lT();const n=Dc,o="123456789",a="abcdefghijklmnopqrstuvwxyz",r="ABCDEFGHIJKLMNOPQRSTUVWXYZ",s=a+o,i=(u,d)=>Math.floor(Math.random()*(d-u+1))+u,c=(u,d)=>{var g;let m="";for(let f=0;f<d;f++)m+=(g=u[Math.floor(Math.random()*u.length)])!=null?g:"";return m},l=u=>{const d=u.split("");for(let m=d.length-1;m>0;m--){const g=Math.floor(Math.random()*(m+1));[d[m],d[g]]=[d[g],d[m]]}return d.join("")};switch(e){case _r.Complex:{const u=t.systemInfos,d={count:12,special:0,upper:0,number:0,lower:0};let m="",g="";return u!=null&&u.strongPasswdLength&&(u==null?void 0:u.strongPasswdLength)>12&&(d.count=u.strongPasswdLength),u!=null&&u.strongPasswdRequireSpecial&&(d.special=1,m+=c(n,d.special),g+=n),u!=null&&u.strongPasswdRequireUppercase&&(d.upper=i(1,3),m+=c(r,d.upper),g+=r),u!=null&&u.strongPasswdRequireNum&&(d.number=i(2,4),m+=c(o,d.number),g+=o),u!=null&&u.strongPasswdRequireLowercase&&(d.lower=d.count-d.special-d.upper-d.number,m+=c(a,d.lower),g+=a),m.length!==d.count&&(m+=c(g+g,d.count-m.length)),l(m)}case _r.Normal:{const u={count:12,upper:i(1,3),number:i(1,3)};let d="";return d+=c(r,u.upper),d+=c(o,u.number),d+=c(s,u.count-u.upper-u.number),l(d)}case _r.Simple:default:{const u={count:8,upper:i(1,3)};let d="";return d+=c(r,u.upper),d+=c(s,u.count-u.upper),l(d)}}}function cf(){const e=ue(),t=C(()=>{var r,s;const a=(s=(r=e.homeLayoutInfos)==null?void 0:r.commonConfig)==null?void 0:s.registerLoginDisplay;return _a()?!1:a===Xe.Page}),n=C(()=>lT()===_r.Complex),o=C(()=>{var a,r;return((r=(a=e.systemInfos)==null?void 0:a.loginRegister)==null?void 0:r.usernameMustContainAlpha)===jt.OPEN});return{usePageing:t,complexPassword:n,mustContainAlpha:o}}function Uu(e){const t=ue(),{enableUsingSms:n,enableUsingEmail:o,enableOTPRestrict:a}=qg(),{Password:r,Captcha:s,PasswordCaptcha:i}=Yw,{usePageing:c,complexPassword:l,mustContainAlpha:u}=cf(),d=C(()=>{var T,S,I,R,D,M,B,E,Y,H;const g=F=>F&&F.disabled!==jt.OPEN?F:void 0,f=e===Kt.Login,_=(T=t.systemInfos)==null?void 0:T.accountLogin,h=(S=t.systemInfos)==null?void 0:S.accountRegister,p=(I=t.systemInfos)==null?void 0:I.phoneLogin,y=g((R=t.systemInfos)==null?void 0:R.phoneRegister),b=(D=t.systemInfos)==null?void 0:D.emailLogin,v=g((M=t.systemInfos)==null?void 0:M.emailRegister),A=(E=(B=t.systemInfos)==null?void 0:B.loginRegister)==null?void 0:E.tabSort,L=(H=(Y=t.systemInfos)==null?void 0:Y.loginRegister)==null?void 0:H.loginTabSort;return!h&&!y&&!v&&(nt.info("loginRegisterConfig",{accountRegister:h,phoneRegister:y,emailRegister:v}),t.setSystemInfos({...t.systemInfos,accountRegister:{}})),!_&&!p&&!b&&(nt.info("loginRegisterConfig",{accountLogin:_,phoneLogin:p,emailLogin:b}),t.setSystemInfos({...t.systemInfos,accountLogin:h,phoneLogin:y,emailLogin:v})),{isLogin:f,tabSort:f?L:A,accountConfig:f?_:h,phoneConfig:f?p:y,emailConfig:f?b:v}}),m=()=>{const g=d.value.isLogin,f=p=>{var T,S;const y=(T=p==null?void 0:p.verifyType)!=null?T:r,b=(S=p==null?void 0:p.verifyDefaultHint)!=null?S:r,v=(p==null?void 0:p.registerRequiredCaptcha)===jt.OPEN,A=(p==null?void 0:p.confirmDialog)===jt.OPEN,L=(p==null?void 0:p.autoGenPassword)===jt.OPEN;return{enableVerify:y,defuVerify:b,forceCaptcha:v,confirm:A,autoGenPassword:L}},_=()=>{const p=f(d.value.phoneConfig),y=!g&&p.forceCaptcha,b=()=>{const A=[s,i].includes(p.enableVerify);return g?A&&n.value:A||y},v=()=>{const{PhonePass:A,Phone:L,PhonePassCode:T}=st;return g?p.defuVerify===s&&!n.value||p.defuVerify===r?A:L:y?p.defuVerify===r?T:L:p.defuVerify===r?A:L};return{confirm:p.confirm,autoGenPassword:p.autoGenPassword,forceCaptcha:y,enablePassword:[r,i].includes(p.enableVerify),enableCaptcha:b(),defaultVerify:v(),defuVerifyCodePass:v()===st.PhonePassCode,enableOTPRestrict:a.value}},h=()=>{const p=f(d.value.emailConfig),y=!g&&p.forceCaptcha,b=()=>[r,i].includes(p.enableVerify),v=()=>{const L=[s,i].includes(p.enableVerify);return g?L&&o.value:L||y},A=()=>{const{EmailPass:L,Email:T,EmailPassCode:S}=st;return g?p.defuVerify===s&&!o.value||p.defuVerify==r?L:T:y?p.defuVerify===r?S:T:p.defuVerify===r?L:T};return{confirm:p.confirm,autoGenPassword:p.autoGenPassword,forceCaptcha:y,enablePassword:b(),enableCaptcha:v(),defaultVerify:A(),defuVerifyCodePass:A()===st.EmailPassCode}};return{phone:_(),email:h()}};return C(()=>{const g=d.value.accountConfig,f=d.value.phoneConfig,_=d.value.emailConfig,{phone:h,email:p}=m();let y=d.value.tabSort;y||(y=`${un.Account}`),y=[y,[un.Phone,un.Email,un.Account].join(",")].join(",");const b={[un.Account]:!!g,[un.Phone]:!!f,[un.Email]:!!_},v=[un.Phone,un.Email,un.Account].filter(R=>b[R]),A=v.length===1,L=b[un.Phone],T=b[un.Email],S=b[un.Account],I=C(()=>d.value.isLogin?!0:!u.value);return{tabSort:y,complexPassword:l,pureNumberAccount:I,usePageing:c,phone:h,email:p,enableOptions:{enables:v,enableAccount:S,enablePhone:L,enableEmail:T,onlyOneEnable:A,onlyAccountEnable:A&&S,onlyPhoneEnable:A&&L,onlyEmailEnable:A&&T}}})}function yue(e){const t=Uu(e);return n=>{if(!n)return!1;const o=t.value.enableOptions;return!!(n===Vt.Account&&o.enableAccount||n===Vt.Phone&&o.enablePhone||n===Vt.Email&&o.enableEmail)}}function vue(e,t,n){const{enableAccount:o,enablePhone:a,enableEmail:r}=t.enableOptions,s=e===Vt.Account&&!o,i=e===Vt.Phone&&!a,c=e===Vt.Email&&!r,l=!rs(t.phone,n==null?void 0:n.phone),u=!rs(t.email,n==null?void 0:n.email);return s||i||c||l||u}function LV(e){const t=ZL(),n=Ar(),o=Uu(e),a=i=>o.value.tabSort.split(",").map(Number).filter(l=>i.includes(l))[0],r=C(()=>
19{if(t.value.style===vo.Style3)return o.value.enableOptions;if(n.getModeState(e).type===Vt.Account)return{enables:[un.Account],enableAccount:!0,enablePhone:!1,enableEmail:!1,onlyOneEnable:!0,onlyAccountEnable:!0,onlyPhoneEnable:!1,onlyEmailEnable:!1};const i=[];return o.value.enableOptions.enablePhone&&i.push(un.Phone),o.value.enableOptions.enableEmail&&i.push(un.Email),{enables:i,enableAccount:!1,enablePhone:i.includes(un.Phone),enableEmail:i.includes(un.Email),onlyOneEnable:i.length===1,onlyAccountEnable:!1,onlyPhoneEnable:i.length===1&&i[0]===un.Phone,onlyEmailEnable:i.length===1&&i[0]===un.Email}});return{getHint:i=>{const c=a(i?o.value.enableOptions.enables:r.value.enables);return{defuHint:c,defuHintPhone:c===un.Phone,defuHintEmail:c===un.Email,defuHintAccount:c===un.Account}},config:o,enableOptions:r}}const Ar=ke("loginRegister",()=>{const e=Tt(),{getFillArray:t}=rf(),n=vt({mode:Kt.Login,login:{type:Vt.Account,subType:st.Account},register:{type:Vt.Account,subType:st.Account},optional:!1,openOptions:{},openToken:0,loading:!1,currency:void 0,isUserBacking:!1,registerAccounts:[],userRegisterAccounts:[],userSuggestions:{},agreed:!0,userPhoneVerify:null,userEmailVerify:null,userLoginMode:tL.History,lockChange:!1,customOverrideTheme:null}),o=p=>p===Kt.Login?n.login:n.register,a=p=>{n.openOptions=p,n.openToken++},r=p=>{Object.assign(n.openOptions,p)},s=async()=>{if(e.ipChecked)return;const[p,y]=await Ee(dL("register"));y&&e.updateIPCheck(y)},i=p=>{p===Kt.Login?n.loginKeepValues=void 0:(p===Kt.Register||(n.loginKeepValues=void 0),n.registerKeepValues=void 0)},c=p=>{n.isUserBacking=p},l=p=>{n.mode=p,n.loading=!1},u=(p,y)=>{o(p).type=y},d=(p,y)=>{const b=Uu(p),{Phone:v,PhonePass:A,PhonePassCode:L,Email:T,EmailPass:S,EmailPassCode:I,Account:R}=st,D={[v]:{bool:b.value.phone.enableCaptcha,tabSorts:[v,A],defu:b.value.phone.defaultVerify},[A]:{bool:b.value.phone.enablePassword,tabSorts:[A,v],defu:b.value.phone.defaultVerify},[L]:{bool:b.value.phone.forceCaptcha,tabSorts:[L],defu:b.value.phone.defaultVerify},[T]:{bool:b.value.email.enableCaptcha,tabSorts:[T,S],defu:b.value.email.defaultVerify},[S]:{bool:b.value.email.enablePassword,tabSorts:[S,T],defu:b.value.email.defaultVerify},[I]:{bool:b.value.email.forceCaptcha,tabSorts:[I],defu:b.value.email.defaultVerify},[R]:{bool:!0,tabSorts:[R],defu:R}},M=()=>{for(const B of D[y].tabSorts)if(D[B].bool)return B;return D[y].defu};o(p).subType=M()},m=()=>{n.optional=!1},g=()=>{n.loading=!0},f=p=>{p?setTimeout(()=>n.loading=!1,typeof p=="number"?p:2e3):yt(()=>n.loading=!1)},_=(p,y)=>{const b=n.openOptions.guide,v=Uu(p),{getHint:A}=LV(p),L=A(y==null?void 0:y.fromOpend);if(y!=null&&y.fromOpend&&p===Kt.Login){const S=t()[0];switch(S==null?void 0:S.loginType){case st.Phone:case st.PhonePass:case st.PhonePassCode:if(v.value.enableOptions.enablePhone){u(p,Vt.Phone);return}break;case st.Email:case st.EmailPass:case st.EmailPassCode:if(v.value.enableOptions.enableEmail){u(p,Vt.Email);return}break;case st.Account:if(v.value.enableOptions.enableAccount){u(p,Vt.Account);return}}}if(n.openOptions.thirdParty){u(p,Vt.ThirdParty),d(p,st.Account);return}let T;if(L.defuHintPhone&&(T=Vt.Phone),L.defuHintAccount&&(T=Vt.Account),L.defuHintEmail&&(T=Vt.Email),b){const S=n.openOptions.login&&p===Kt.Login,I=n.openOptions.register&&p===Kt.Register;(S||I)&&(T=b)}T===Vt.Phone?(u(p,Vt.Phone),d(p,v.value.phone.defaultVerify)):T===Vt.Account?(u(p,Vt.Account),d(p,st.Account)):T===Vt.Email&&(u(p,Vt.Email),d(p,v.value.email.defaultVerify))};return{state:n,ipCheck:s,setMode:l,getModeState:o,setOpenOptions:a,patchOpenOptions:r,setType:u,initType:_,initAllTypes:p=>{_(Kt.Login,p),_(Kt.Register,p)},setSubType:d,initOptional:m,setLoading:g,delLoading:f,initKeeps:i,setUserBackStatus:c}}),$v=ke("LoginRegisterUpgrade",()=>{const e=O({});return{isFromTemporaryAccount:C(()=>{var n,o;return!((n=e.value)!=null&&n.login)&&!((o=e.value)!=null&&o.register)}),loginRegisterUpgradeOpenOptions:e}}),Yv=rt(()=>V(()=>import("./0_EntryLoginRegisterChunk.DMUz1wnE.js").then(e=>e.gQ),__vite__mapDeps([0])),e=>e.useWebauthn,"useWebauthn"),Pd={value:!1};function sn(){const{t:e}=we(),{openDialog:t,closeDialog:n}=cn(),{push:o,back:a,replace:r}=Oe(),{bindPhoneRegister:s}=uL(),{usePageing:i}=cf(),c=Ar(),l=ue(),u=tn(),d=J(),m=$v(),g=()=>Pd.value=!0,f=()=>Pd.value=!1,_=C(()=>d.hasHistoryLogined),h=async E=>{var G,N,$,X,j,te;const Y=d.isTemporaryAccountMode,H=(N=(G=l.systemInfos)==null?void 0:G.loginRegister)==null?void 0:N.guideBeforeLogin,F=(X=($=l.systemInfos)==null?void 0:$.loginRegister)==null?void 0:X.guideBeforeRegister,Q={serverTemporary:!1,upgradeTemporary:!1,bindRegister:!1,lazyLoginRegister:!1,loginWebauthn:!1};if(Y)Q.serverTemporary=!((j=d.userInfos)!=null&&j.deposit_count),Q.upgradeTemporary=!!((te=d.userInfos)!=null&&te.deposit_count);else{let K=rs(F,jt.OPEN);E.login&&(K=rs(H,jt.OPEN)),Q.lazyLoginRegister=[!_.value,K,!0].every(Boolean)}return Q.bindRegister=s.value.enable,E.login&&(Q.loginWebauthn=!!(await Yv()).checkFirst()),Q},p=()=>{var E;if(!((E=c.state.openOptions)!=null&&E.noBackRedirect)&&Xn([k.LOGIN,k.REGISTER])){const Y=c.state.openOptions.redirect;Y?(c.patchOpenOptions({redirect:void 0}),r({name:Y})):a()}},y=E=>{var H;if(E.login||E.register)return E;const Y=(H=l.systemInfos)==null?void 0:H.autoVisitorLoginH5;switch(!0){case Y===zl.Login:return{...E,login:!0};case Y===zl.Register:return{...E,register:!0};case Y===zl.Auto:default:return _.value?{...E,login:!0}:{...E,register:!0}}},b=(E={})=>{var H;if(((H=l.systemInfos)==null?void 0:H.disableRegister)===jt.OPEN&&E.register)return _o({type:"warn",message:()=>e("lobby.modal.register.disabled")}),!0},v=async(E={})=>
19{if(!Pd.value&&!b(E)){g();try{await A(E)}finally{f()}}},A=async(E={})=>{const Y=await h(E),H=y(E);c.setOpenOptions(H);const F=H.login?Kt.Login:Kt.Register,Q=H.login?k.LOGIN:k.REGISTER;c.initKeeps(),c.delLoading(),c.setMode(F),c.initAllTypes({fromOpend:!0}),c.initOptional();const{isAcitve:G}=cn("loginRegister");if(G()&&!H.force)return;if(Y.loginWebauthn&&!H.skipWebauthn){const $=await Yv(),[X]=await Ee($.checkLogin());if(!X)return}if(!(E.login||E.register||E.onTryGame)&&Y.bindRegister&&!H.skipBindRegister){await t("bindRegister",{openType:H.openType||"insert",options:H});return}if(Y.serverTemporary&&!H.skipTemporary){wr().disableOperate(H);return}if(Y.upgradeTemporary&&!H.skipTemporary){T({...H,login:void 0,register:void 0});return}if(Y.lazyLoginRegister&&!H.skipGuide){T(H);return}XE(),Ln.set("wasOpenedLoginRegister",!0),i.value?Xn([k.LOGIN,k.REGISTER])||H.openPageReplace?await r({name:Q}):await o({name:Q}):await t("loginRegister",{openType:H.openType||"insert",options:H})},L=()=>{t("switchAccount")},T=(E={})=>($v().loginRegisterUpgradeOpenOptions=E,o({name:k.LOGIN_REGISTER_UPGRADE_GUIDE})),S=async()=>{a()},I=()=>{var Y;if((Y=c.state.openOptions)!=null&&Y.noBackRedirect||!c.state.openOptions.dialogApplyRedirect)return;const E=c.state.openOptions.redirect;E&&(c.patchOpenOptions({redirect:void 0}),r({name:E}))};return{opening:Pd,usePageing:i,guideConfig:h,isActivate:()=>cn("loginRegister").isAcitve()||Xn([k.LOGIN,k.REGISTER]),openLoginRegister:v,closeLoginRegister:(E=!1,Y=!0)=>{var H,F;E||!i.value?i.value?p():(I(),n("loginRegister"),Xn(k.LOGIN_REGISTER_UPGRADE_GUIDE)&&Y&&!m.isFromTemporaryAccount&&S()):(I(),n("loginRegister")),(F=(H=c.state.openOptions)==null?void 0:H.onClose)==null||F.call(H)},backLoginRegisterPage:p,autoLoginRegister:(E=!1)=>{var K;const{id:Y,cid:H,type:F}=en().urlParams,{hasLogined:Q,hasHistoryLogined:G,confEnableAutoLogin:N,isTemporaryAccountMode:$}=d,{isLite:X}=re.package;if([Et.ignoreAutoLoginRegister(),dt.enable,Q,!!u.tokenInfosFromUrl,!!u.userkeyFromUrl,!Xn(k.GAME),Ln.get("wasOpenedLoginRegister"),i.value!==E,wr().envEnable.value,$,N&&X&&!G,Xn([k.LOGIN,k.REGISTER]),Xn([k.DEVTOOLS,k.DEMO])].includes(!0))return;const te=i.value?k.ROOT:void 0;if(H&&F)return F!==eg.REGISTER?void 0:{register:!0,redirect:te,autoOpenOrigin:vm.Qudao};if(!H&&Y&&F)return F!==NA.REGISTER?void 0:{register:!0,redirect:te,autoOpenOrigin:vm.Tuiguang};if(gu(zl,(K=l.systemInfos)==null?void 0:K.autoVisitorLoginH5))return{redirect:te,autoOpenOrigin:vm.Sysconf}},guideLoginRegister:E=>new Promise((Y,H)=>{if(d.hasLogined&&!d.isTemporaryAccountMode)return Y(null);v({redirect:E,onSuccess:()=>Y(null),onClose:H}).catch(H)}),openSwitchAccount:L,openLoginRegisterUpgradeGuide:T,closeLoginRegisterUpgradeGuide:S}}let qv=!1;const uT=async(e,t)=>{var g,f,_,h,p,y,b,v,A;const{isLogined:n,isDemoMode:o,userInfos:a}=J(),{guideLoginRegister:r}=sn(),s=J(),i=(L="pass")=>{e.source&&e.source.to&&(qv=!0),t==null||t(L)},c=()=>{i("toRoot")},l=()=>{i("cancel")},u=typeof((g=e.meta)==null?void 0:g.private)=="function"?(_=(f=e.meta).private)==null?void 0:_.call(f):(h=e.meta)==null?void 0:h.private,d=((p=e.meta)==null?void 0:p.whiteRoleType)||[],m=()=>o?d.includes(a==null?void 0:a.account_type)||!u:!0;try{if(u){const L=(b=(y=e.source)==null?void 0:y.from)==null?void 0:b.name;if(!n&&(L===k.LOGIN||L===k.REGISTER)){c();return}if(qv){if(m()){try{await r(e.name)}catch(T){return l(),Promise.reject()}i()}else if(o)return}else m()&&n?i():c()}else{if((A=(v=e.meta)==null?void 0:v.disabled)!=null&&A.call(v,s,e.source)){c();return}i()}}catch(L){c()}},zv=e=>e.hasRoute(k.LOGIN)||e.hasRoute(k.REGISTER),TV=(e,t,n,o,a)=>{const r=ag.pathname.login===location.pathname,s=ag.pathname.register===location.pathname;if(!e&&t&&(r||s)){if(wr().envEnable.value)return a({name:k.ROOT,query:n.query}),!0;if(r)return a({name:k.LOGIN,query:n.query}),!0;if(s)return a({name:k.REGISTER,query:n.query}),!0}},ip=e=>(t,n=k.ROOT)=>{e=e||Oe().router,t.forEach(o=>{e&&e.addRoute(n,o)})},hg=200,RV=800,OV=.02,jv=.9,PV=.08,DV=()=>{const e=document.createElement("div");e.id="nprogress",e.className="nprogress";const t=document.createElement("div");t.className="bar",t.style.cssText=["position:relative","width:100%","transform:translate3d(-100%,0,0)",`transition:transform ${hg}ms linear,opacity ${hg}ms linear`,"opacity:0"].join(";");const n=document.createElement("div");return n.className="peg",n.style.cssText=["display:block","position:absolute","right:0","width:100px","height:100%","opacity:1","transform:rotate(3deg) translate(0,-4px)"].join(";"),t.appendChild(n),e.appendChild(t),e},MV=()=>{let e=null,t=null,n=null,o=[],a=null;const r=()=>{o.forEach(m=>clearTimeout(m)),o=[]},s=()=>{e&&t&&e.isConnected||(e=DV(),t=e.firstElementChild,document.body.appendChild(e))},i=m=>{t&&(a=m,t.style.opacity="1",t.style.transform=`translate3d(${(m-1)*100}%,0,0)`)},c=()=>{n||(n=setInterval(()=>{if(a===null||a>=jv)return;
19const m=Math.min(a+OV*Math.random(),jv);i(m)},RV))},l=()=>{n&&(clearInterval(n),n=null)},u=()=>{t&&(t.style.opacity="0",o.push(setTimeout(()=>{t&&(t.style.transform="translate3d(-100%,0,0)"),a=null,o=[]},hg)))},d={start:()=>(typeof document=="undefined"||(o.length&&(r(),a=null),a!==null)||(s(),i(PV),c()),d),done:()=>(a===null||(l(),i(1),o.push(setTimeout(u,hg))),d),configure:()=>d};return d},NV=rt(()=>V(()=>import("./index.UkCL2YQg.js").then(e=>e.i),__vite__mapDeps([0,1])),e=>e.useSurpriseRewardStore,"useSurpriseRewardStore"),Yb=(...e)=>Ke.isSimpleTheme?Promise.resolve(void 0):NV(...e),lf=ke("transition",()=>{const e=O("Base"),t=O(null),n=r=>{e.value=r},o=async(r,s,i=0)=>{try{t.value=r,s&&await s()}finally{setTimeout(()=>{t.value=null},i)}},a=C(()=>t.value?t.value:e.value);return{routerViewTransitionModeOnce:t,currentRouterViewTransitionMode:a,updateRouterViewTransitionMode:n,updateRouterViewTransitionModeOnce:o}}),dT="/api/finance/setting",kV=["claim","rechargeBtnStyle","noWalletCurrencyStatus"],BV=e=>{const t=kV.filter(n=>e[n]==null);t.length!==0&&Go(void 0,`${dT} æªä¸ååµå¥å段 ${t.join("/")}ï¼å¯¹åºè¯»ç¹å°èµ°å
åº`)};let Dd;async function HV(e){return Dd!=null||(Dd=vx({route:dT,label:"financeSetting",read:()=>Ze().financeSetting,write:t=>{BV(t),Ze().setFinanceSetting(t)},request:async()=>{var a,r;const{apiFinanceSettings:t}=await V(async()=>{const{apiFinanceSettings:s}=await import("./0_EntryLoginRegisterChunk.DMUz1wnE.js").then(i=>i.gL);return{apiFinanceSettings:s}},__vite__mapDeps([0])),[n,o]=await Ee(t());if(!n)return(r=(a=o==null?void 0:o.data)==null?void 0:a.data)!=null?r:void 0},describe:t=>`paymentMode=${t.paymentMode}`})),Dd(e)}const xV=[HV],mT=2,uf=async(e,t=mT+1,n=()=>!1,o=1)=>{if(o>t)return Promise.reject(new Error("Max retry attempts reached"));const a=o===1,r=o===t;try{return await e(o,{isFirst:a,isLast:r})}catch(s){return n(s,{isFirst:a,isLast:r})?Promise.reject("Retry canceled"):(o++,uf(e,t,n,o))}},qb=(e,t,{getCurrentDomain:n=(s,i)=>{if(s){const{domainListMap:c,ossHost:l}=Ht(),u=c[s];return s==="ossDomain"?cs()?i.isFirst?l:u[1]:i.isLast?l:u[0]:u[0]}},getDomainList:o=s=>Ht().domainListMap[s],singleAttempt:a=!1,maxDomainAttempts:r}={})=>{const{resortList:s}=Ht(),i=e?o(e).length:mT+1,c=a?1:r!=null?Math.min(r,i):i;return uf(async(l,u)=>{let d;e&&(d=n(e,{...u,...a?{isLast:!1}:null,times:l}));try{const m=await t(d,l,u);return e&&d&&s(e,d,!0),m}catch(m){return e&&d&&s(e,d,!1),Promise.reject(new Error("retryDomain fail"))}},c)},Sue=Object.freeze(Object.defineProperty({__proto__:null,retry:uf,retryDomain:qb},Symbol.toStringTag,{value:"Module"})),EV=()=>{const{holidayThemeConfig:e,isCustomizeFestival:t}=nn();return t||!e?null:[e]},UV=async()=>{const{siteInfos:e}=ue();let t={};const{type:n,backgroundColor:o,skinTypeValue:a}=e||{},r=[`siteadmin/skin/lobby_asset/${n}-${o}-${a}/assets.hash.json`,...(EV()||[]).map(s=>`siteadmin/skin/lobby_asset/festival/${s.themeType}/${n}-${o}/assets.hash.json`)];try{await qb("ossDomain",s=>Promise.all(r.map(async i=>{try{const c=await z.request({url:`${s}${i}`,method:"GET",params:{timestamp:Date.now()}},{maxRetryCount:0,oss:{enable:!0,force:!0},token:{type:!1},error:{checkResCode:!1,action:"silent"},crypto:{enable:!1}});t={...t,...c.data}}catch(c){}})))}catch(s){}return{data:{code:1,data:t}}};function GV(e,t){var o,a;e.loginRegister=(o=e.loginRegister)!=null?o:t==null?void 0:t.loginRegister;const n=["temporaryAccount","temporaryAccountH5","regTempAccountPageStay","regTempAccountAfterSecs","autoLoginAfterReinstall","guideBeforeRegister","guideBeforeLogin","guidePageStyleSelection"];return e.loginRegister&&Object.keys(e.loginRegister).forEach(r=>{if(n.includes(r)){const s=Nt(t==null?void 0:t.loginRegister,r),i=Nt(e.loginRegister,r);e.loginRegister&&$s(e.loginRegister,r,s!=null?s:i)}}),e.autoVisitorLoginH5=(a=t==null?void 0:t.autoVisitorLoginH5)!=null?a:e.autoVisitorLoginH5,e}const FV=e=>{var t;return{lotteryTime:e.lt,userName:e.u,game:e.g,amount:e.a,lotteryType:e.t,betAmount:e.ba,amountUsdt:e.au,currency:e.c,replayUrl:e.d,gameSource:(t=e.gs)!=null?t:wL.Normal}},WV=e=>({id:e.id,cnt:e.cnt}),VV=e=>{var t,n;if(e)return{grandPool:e.gp,majorPool:e.map,midPool:e.mip,smallPool:e.sp,sumRewardCnt:e.src,sumRewardGold:e.srg,rewardPoolGold:e.rpl,recordCount:e.rc,records:(t=e.r)==null?void 0:t.map(FV),games:(n=e.g)==null?void 0:n.map(WV)}},df=(e=[])=>e.map(t=>{const{a:n,b:o,c:a,d:r,e:s,f:i,g:c,h:l,y:u,j:d,k:m,m:g,n:f,i:_,l:h,o:p,p:y,q:b,r:v}=t;return{id:n,showType:o,showPosition:a,jumpPosition:r,decimalPlaces:s,numericStyle:i,backgroundStyle:c,externalLinks:l,carouselName:u,fontTypeface:d,backgroundUrl:kb(m),virtualPoolTimestamp:g,virtualPoolNumbers:f,externalNewTab:_,jackpotType:h,platformType:p,bonusSource:y,jackpotAnimation:b,data:VV(v)}}),$V=()=>z.request({url:"/api/lobby/aboutUs/index/getInfo",method:"GET"},{omitKey:["currency","platformType"],token:{type:"staticOnly"},oss:{enable:!0},cache:{useCache:!0}}),zb=ke("about",()=>{const e=O([]),t=J(),n=Ze(),{t:o}=we(),a=O(!1),r=Ge(),s=C(()=>{var g,f;const m=(f=(g=t.userInfos)==null?void 0:g.currency)!=null?f:"CNY";return e.value.filter(_=>_.currencyCodes.includes(m))}),i=m=>{e.value=m},c=C(()=>r.language==="vi");let l=null;const u=async()=>l||(a.value=!0,l=$V().then(m=>{var g;return i((g=m.data.data)!=null?g:[]),s.value}).catch(()=>{}).finally(()=>{a.value=!1,l=null}),l),d=C(()=>{var m,g;return(m=n.brandLogoInfos)!=null&&m.brandName?o("lobby.plan.middle.menu.about")+(c.value?" ":"")+((g=n.brandLogoInfos)==null?void 0:g.brandName):o("lobby.footer.quickJump.aboutUsSub")});return{aboutUsList:e,filteredAboutUsList:s,setAboutUsInfoData:i,getAboutUsInfoData:u,aboutUserInfoData:d}},{persist:{storage:Yo(),paths:["aboutUsList"]}}),Kv=Object.freeze(Object.defineProperty({__proto__:null,useAboutUsStore:zb},Symbol.toStringTag,{value:"Module"})),YV=async()=>{const{data:e}=await z.request({method:"get",url:"/api/lobby/config/getAppDownloadInfo"},{oss:{enable:!0},cache:{useCache:"fresh"},token:{type:"staticOnly"},omitKey:["currency","platformType","language"]});return e==null?void 0:e.data},qV=async()=>{const{data:e}=await z.request({url:"/api/lobby/webapi/forceUpdate/getForceUpdate",method:"get"},{oss:{enable:!0},cache:{useCache:"fresh"},token:{type:"staticOnly"},omitKey:["currency","platformType","language"]});return e==null?void 0:e.data},zV=async e=>{const{data:t}=await z.request({method:"get",url:"/api/club/manager/app/pkg/list",params:e},{oss:{enable:!0},token:{type:"staticOnly"},omitKey:["currency","platformType","language"]});return t==null?void 0:t.data},jb=ke("pwa-start-url",()=>{const{isIos:e}=Qe(),t=C(()=>ts().displayMode||Ut().pWADisplayMode),n=C(()=>{var i;const{affParams:a}=en(),r=tn().tokenInfos;let s={...a,gameCategoryId:0,siteCode:(i=window.LOBBY_SITE_CONFIG)==null?void 0:i.siteCode,"fixed.isSaveShort":!0,"fixed.isHideDomain":1,_ti:void 0,_et:void 0};return r&&e&&(s._ti=window.btoa(JSON.stringify(r))),t.value===fr.MinimalUi&&(s={...s,"fixed.isHideDomain":0}),{...Zs(window.location.href),...s}});return{start_url:C(()=>Ra(window.location.origin,n.value)),mode:t,pwaQueryParams:n}}),Qv=async({name:e,displayMode:t,logo:n,start_url:o,screenshots:a},r="data")=>{const{origin:s}=window.location,i={scope:s,id:s,name:e,short_name:e,icons:[{src:n,sizes:"any",type:"image/png"},{src:n,sizes:"192x192",type:"image/png"}],start_url:o,display:t,background_color:"#181818",theme_color:"#181818",prefer_related_applications:!1,related_applications:[{platform:"webapp",url:s+"/pwa/manifest_v2",id:s}],protocol_handlers:[{protocol:ZT().protocol,url:"/pages/pc-pwa-redirect/index.html?from=%s"}],screenshots:a},c=JSON.stringify(i);let l="";if(r==="sw"){await(await window.caches.open("manifest")).put("/pwa/manifest_v2",new Response(c,{headers:{"Content-Type":"application/json"}}));try{await XY()&&(l="/pwa/manifest_v2")}catch(m){}}else r==="data"&&(l="data:text/json;charset=utf-8,"+encodeURIComponent(c));if(!l)return;const u=document.querySelector("#pwa-manifest");
19if(u)if(r==="sw"){const d=u.cloneNode(!0);d.setAttribute("href",l),u.replaceWith(d)}else u.setAttribute("href",l)},jV=(e,t)=>{var a,r,s;const{isAndroid:n}=Qe();let o=e;if(n&&re.package.isVest){const i=vl(((a=re==null?void 0:re.wgPackageConfig)==null?void 0:a.name)+".wgvdd");((s=(r=re==null?void 0:re.wgPackageConfig)==null?void 0:r.downloadable)!=null?s:!1)||i.length||(o=VA())}Hu(t,o),o&&to(o)},KV=async e=>{var s;const{isPWASupportBrowser:t}=Qe(),{isEdge:n}=ft().browser,{installPrompt:o,isPWAInstalled:a,setIsCanInstallPwa:r}=ts();if(a)return gT(),jr.installed;if(t&&o)try{const i=await((s=o.prompt)==null?void 0:s.call(o)),{outcome:c}=i;return c==="accepted"?(e==null||e(jr.accepted),!n&&r(!0),Hu({type:Se.PWA},jb().start_url)):e==null||e(jr.dismissed),c}catch(i){console.log(i)}else return jr.notSupported},gT=()=>{const{start_url:e}=jb(),{isChrome:t,isEdge:n,major:o,isOpera:a}=ft().browser,{isAndroid:r}=ft().os,s=(t||n)&&Number(o)>=96,i=a&&Number(o)>=82;if(r)return n?void 0:to(e);s||i?location.href=ZT(new URL(e).search).scheme:bn().open("appDownloadPwaTips",{openType:"overlay"})},QV=(e,t)=>{if(t===void 0){const{member_level:o=1}=J().userInfos||{};t=o}if(!e)return!0;const n=e?e.split(",").map(Number):[];return(n==null?void 0:n.includes(Kg.AllUserLevel))||t&&n.includes(t)},Xv=(e,t)=>{if(!t)return!0;const n=t?t.split(",").map(Number):[];return e>=0&&n.includes(e)},fT=(e,t)=>{var n,o;return!e||e.length===0?!0:(t===void 0&&(t=((n=J().userInfos)==null?void 0:n.vip_level)||((o=ue().systemInfos)==null?void 0:o.min_vip_level)||0),Array.isArray(e)?e.every(a=>Xv(t,a)):Xv(t,e))},pT=(e,t)=>{var s,i;if(!e||(t===void 0&&(t=((s=J().userInfos)==null?void 0:s.register_time)||0),!t))return!0;const n=3600*24*e,o=Tt().getServerTime(),{siteInfos:a}=ue(),r=Ye(t*1e3).utcOffset((i=a==null?void 0:a.timeZone)!=null?i:"").endOf("day").unix();return!!e&&n+r>=o},XV=(e,t)=>{var o,a;if(!e)return!0;t===void 0&&(t=(a=ze().currency||((o=J().userInfos)==null?void 0:o.currency))!=null?a:"");const n=e?e.split(","):[];return e==="0"||(n==null?void 0:n.includes(t))},ed=ke("new-comer-reward",()=>{const e=J(),t=O({}),n=O({}),o=()=>{n.value={}},a=(l,u)=>{var y,b,v,A;const d=u||((y=e.userInfos)==null?void 0:y.currency),m=((b=t.value)==null?void 0:b.currency)||"",f={...((A=(v=t.value)==null?void 0:v.list)==null?void 0:A.find(L=>L.bindType===l))||{}},h=["","0",0].includes(String(m));if(!m.includes(String(d))&&!h)return f.reward=0,f;let p={};try{p=JSON.parse(String(f.currency)).find(T=>T.currency===d)}catch(L){}return f.reward=rp(p).reward,f.bindTypeAward=rp(p).bindTypeAward,f},r=async()=>{if(!ma()){t.value={};return}if(await ga("g4"),Ro("g4","activeTasksBenefitReward"))return;const[l,u]=await Ee(GW());!l&&u&&s(u)},s=l=>{var m,g,f;const u=(g=(m=e.userInfos)==null?void 0:m.member_level)!=null?g:Kg.DefaultLevel,d=QV((f=l==null?void 0:l.userLevel)!=null?f:"",u);t.value={...l,list:d?l.list:[]}},i=async()=>{var f;if(!e.hasLogined||!ma()){n.value={};return}const[l,u]=await Ee(WW());if(l)return;const d={};u.forEach(_=>{var b;let h={};try{h=JSON.parse((b=_.currency)!=null?b:"")}catch(v){}const{reward:p,bindTypeAward:y}=rp(h);d[_.bindType]={..._,reward:p,bindTypeAward:y}});const m=d[mr.AddContact];let g=[];try{g=((f=JSON.parse(m==null?void 0:m.content))==null?void 0:f.bindTypes)||[]}catch(_){}g.forEach(_=>{d[_]={...m,bindType:_}}),n.value=d};return{newBenefitsBeforeLogin:t,newBenefitsMap:n,resetNewBenefits:o,getRedDotBeforeLogin:a,setBenefitBeforeLogin:s,getNewComerBenefitBeforeLogin:r,getNewComerBenefitAfterLogin:i,freshNewComerBenefitAfterLogin:async()=>{await z.setCacheExpired(FW),i()}}}),zo=ke("download-main",()=>{const e=Ze(),t=ue(),n=Ge(),{openDialog:o,closeDialog:a}=cn(),{isIos:r,isAndroid:s,isMacos:i}=Qe(),{isSafari:c,isInThirdAppBrowser:l}=ft().browser,u=r||i,d=ed(),m=J(),g=Ht(),f=en(),_=O({}),h=O({}),p=O(!1),y=O(),b=async()=>{if(!ma())return;m.hasLogined?await d.getNewComerBenefitAfterLogin():await d.getNewComerBenefitBeforeLogin();const K={[mr.DownloadAndLogin]:gS(mr.DownloadAndLogin),[mr.createDesktop]:gS(mr.createDesktop)};y.value=K},v=O(),A=async()=>{if(await al("g7"),rl().g7&&ms("apiGetAppDownloadInfo")||(await ga("g7"),Ro("g7","appDownloadInfo")))return;const K=await YV();K&&(v.value=K)},L=C(()=>{var me,de;const K=XB();return H1(x1((de=(me=v.value)==null?void 0:me.androidList)!=null?de:[],"type"),ne=>{if(K){const{package64Path:U,package64Size:W,downloadPath:oe,size:be}=ne[0],Ie=W||be||0,Me=U||oe;return{...ne[0],size:Number(Ie),downloadPath:Me}}return ne[0]}).filter(({customizePath:ne,downloadPath:U})=>ne||U)}),T=C(()=>{var ae,me;const K=(me=(ae=v.value)==null?void 0:ae.downloadList)==null?void 0:me.filter(de=>{var ne;return(ne=de.language)==null?void 0:ne.split(",").includes(n.language)});return!(K!=null&&K.find(de=>de.type===Se.Quick))&&X.value&&c&&!l&&(K==null||K.push(qY(X.value))),K==null?void 0:K.map(de=>{const ne=de.type!==Se.DesktopShortcut?!0:de.showTutorial;if(de.type===Se.Vest&&de.vestBagType===Bh.SYSTEM&&de.downloadType===kh.LANDINGPAGE)return{...de,showTutorial:ne,value:Ra(g.downloadPageUrl,{mode:5,activeId:de.vestBagId,style:de.style,languageCode:n.language,...f.affParams})};if(de.type===Se.Quick){let U=de.value;return U=qm(U),{...de,showTutorial:ne,signType:zr.IOS,value:U}}return{...de,showTutorial:ne}})}),S=C(()=>{var K,q;return u?(K=T.value)!=null?K:[]:(q=L.value)!=null?q:[]}),I=C(()=>{var K,q;return(q=(K=v.value)==null?void 0:K.installTutorial)!=null?q:[]}),R=O(),D=K=>{K&&(R.value=K)},M=async()=>{await ga("g5"),!Ro("g5","forceUpdate")&&D(await qV())},B=C(()=>{const{brandLogoInfos:K}=e;return s?K==null?void 0:K.androidBootInstallation:r?K==null?void 0:K.iosBootInstallation:K==null?void 0:K.pcBootInstallation}),E=O(0),Y=C(()=>{var ne,U;const K=(U=(ne=t.siteURLInfos)==null?void 0:ne.lobby_domain)!=null?U:[],q=K.filter(W=>W.startsWith("https://")),ae=K.filter(W=>W.startsWith("http://")),me=[...q,...ae],{origin:de}=new URL(window.location.href);return ts().isPWAInstalled?[...new Set([...me,de])]:[...new Set([de,...me])]}),H=K=>{if(!Y.value.length)return K;const q=Y.value.length,ae=Y.value[E.value++%q];return Gx(K,ae)},F=O(0),Q=async(K,q)=>{var be;const{downloadPath:ae,customizePath:me,type:de,value:ne}=K,U=(be=q==null?void 0:q.closeDialogName)!=null?be:"downloadMainDialog",W=async Ie=>{await o("downloadPWADialogInHome",{options:{autoPlay:!0,downloadStatus:Ie}}),a(U)};if(!ZY(K))return;if([Se.PWA,Se.DesktopShortcut,Se.Quick].includes(de)||jx(),s&&await FY(de)){a(U);return}if(de===Se.Quick){ne?VY(ne):await W(Zl.NOT_INITIATE);return}if(de===Se.PWA){if(ts().isPWAInstalled)return gT();const Ie=await KV();
19Ie===jr.accepted?await W(Zl.DOWNLOADING):Ie===jr.dismissed||(Ie===jr.notSupported?await W(Zl.NOT_INITIATE):Ie===jr.installed&&await W(Zl.DOWNLOADED));return}if(de===Se.DesktopShortcut){ts().setDisplayMode(fr.Browser),await o("downloadShortcut",{openType:"insert"}),a(U),Hu({type:Se.DesktopShortcut},location.href);return}const oe=[];if(u)oe.push(ne);else{if(ae){const Ie=H(ae);oe.push(Ie)}me&&oe.push(me.includes("://")?me:"https://"+me)}jV(oe[F.value++%oe.length],K)},G=async()=>{try{await A(),b(),N(),p.value=!0}catch(K){p.value=!1,console.warn("[initAPPDownloadConfigs] error:",K)}},N=async()=>{setTimeout(()=>{M(),$()},2e3)},$=()=>{var q;const K=(q=v.value)==null?void 0:q.downloadList.find(ae=>ae.type===Se.Vest&&ae.vestBagType===Bh.SYSTEM&&ae.downloadType===kh.LANDINGPAGE);u&&K&&g.pingDownloadHost()},X=O(""),j=C(()=>{var K;return(K=S.value.find(q=>q.type===Se.Quick))==null?void 0:K.value});return{rewardBindDataBefore:y,downloadAppConfig:v,downlaodAppList:S,appVersion:R,setAppVersion:D,bootInstallation:B,downloadLoaded:p,download:Q,clickCount:F,initAPPDownloadConfigs:G,installTutorialList:I,webclipUrl:j,localWebclipUrl:X,bootInstallationStatus:_,bootInstallationStatusShowTimes:h,setBootInstallationStatusHandler:(K,q=!0)=>{const ae=h.value[K];_.value={..._.value,[K]:q},q&&(h.value={...h.value,[K]:ae?ae+1:1})}}},{persist:{paths:["downloadAppConfig"],storage:Yo({},"local")}}),ZV=async()=>await z.request({url:"/api/lobby/footerConfigV2/getInfo"},{oss:{enable:!0},cache:{useCache:!0},token:{type:"staticOnly"},omitKey:["currency","platformType"]}).then(e=>e.data.data||{});var JV={env:"prod"};const e5=(e,t)=>{var r;const n=/([^/?#]+)\.png$/,o=(r=e.match(n))==null?void 0:r[1];return/^\d+$/.test(o)?BigInt(o)>BigInt(t[JV.env]):!1},Cue=e=>{switch(e){case"E-Sports":return"lobby.footerNew.quickJump.eSports";case"selfRestraint":return"lobby.center.forbiddenSelf.title";default:return`lobby.footerNew.quickJump.${e}`}};let Md,cp;function mf(){if(!Md&&(Md=O(0),cp=O(0),da)){const e=()=>{Md.value=window.innerWidth,cp.value=window.innerHeight};e(),window.addEventListener("resize",e,{passive:!0}),window.addEventListener("orientationchange",e,{passive:!0})}return{width:Md,height:cp}}const wue=Array.isArray,t5=e=>typeof e=="string",Iue=e=>e==null;function Aue(){}const hT=e=>e!==null&&typeof e=="object",Ji=e=>e!=null,Zv=e=>typeof e=="function",_T=e=>hT(e)&&Zv(e.then)&&Zv(e.catch),Lue=e=>Object.prototype.toString.call(e)==="[object Date]"&&!Number.isNaN(e.getTime()),bT=e=>typeof e=="number"||/^\d+(\.\d+)?$/.test(e),n5=()=>da?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1;function Tue(e,t,n){return t.reduce((o,a)=>(o[a]=e[a],o),{})}const Rue=(e,t)=>JSON.stringify(e)===JSON.stringify(t),Oue=e=>e.reduce((t,n)=>t.concat(n),[]);function Jv(e){return da?requestAnimationFrame(e):-1}function Bc(e){Jv(()=>Jv(e))}function yT(e){return(e==null?void 0:e.tagName)!=="HTML"&&(e==null?void 0:e.tagName)!=="BODY"&&(e==null?void 0:e.nodeType)===1}const{width:o5,height:a5}=mf();function Jo(e){if(Ji(e))return bT(e)?`${e}px`:String(e)}function Pue(e){if(Ji(e)){if(Array.isArray(e))return{width:Jo(e[0]),height:Jo(e[1])};const t=Jo(e);return{width:t,height:t}}}function r_(e){const t={};return e!==void 0&&(t.zIndex=+e),t}let au=null;typeof window!="undefined"&&window.addEventListener("resize",()=>{au=null},{passive:!0});function gf(){if(au!==null)return au;const e=document.documentElement,t=e.style.fontSize||window.getComputedStyle(e).fontSize;return au=parseFloat(t),au}function r5(e){return e=e.replace(/rem/g,""),+e*gf()}function s5(e){return e=e.replace(/vw/g,""),+e*o5.value/100}function i5(e){return e=e.replace(/vh/g,""),+e*a5.value/100}function Ga(e){if(typeof e=="number")return e;if(da){if(e.includes("rem"))return r5(e);if(e.includes("vw"))return s5(e);if(e.includes("vh"))return i5(e)}return parseFloat(e)}function Due(e,t=2){let n=e+"";for(;n.length<t;)n="0"+n;return n}const eS=(e,t,n)=>Math.min(Math.max(e,t),n);function Mue(e,t){return Math.round((e+t)*1e10)/1e10}const Kb=100,Zt=(e,t)=>(t=t||Kb,`${(typeof e=="string"?parseFloat(e):e)/t}rem`),c5=(e,t)=>(t=t||Kb,`${(typeof e=="string"?parseFloat(e):e)*t}px`),Nue=e=>{const t=gf();return(o=>parseFloat(c5(o))*(t/100))(e)};function kue(e){const t=typeof e=="string"?parseFloat(e):e;return Ga(Zt(t))}function l5(e,t){const n=/style="([^"]*)"/g;return e.replace(n,function(a,r){return'style="'+r.replace(/(\d*\.?\d+)px/g,function(i,c){return Zt(parseFloat(c)*t)})+'"'})}function Nd(e){const n=new DOMParser().parseFromString(e,"text/html"),o=n.getElementsByTagName("img");for(const a of Array.from(o)){const r=a.getAttribute("width");r?(a.style.width=`${parseFloat(r)/100}rem`,a.removeAttribute("width"),a.removeAttribute("height")):a.style.maxHeight||(a.style.opacity="0",a.setAttribute("onload","this.style.width = this.naturalWi
19dth/100 + 'rem'; this.style.opacity = '1';"))}return n.body.innerHTML}function u5({element:e}){if(!e)return;e.querySelectorAll("[style]").forEach(n=>{const o=n.getAttribute("style");o&&n.setAttribute("style",o.replace(/(\d+(\.\d+)?)px/g,(a,r)=>Zt(r)))})}const d5={dev:"1817181896559132674",test:"1817181896559132674",try:"1817417140912545793",prod:"1817481894734766081"},m5=ke("footer",()=>{const e=O(),t=s=>{if(!s)return;const{content:i="",oldContent:{companyInfoLanguage:c={customContent:""},contactInfoLanguage:{contactContent:l="",copyrightInfo:u=""}={}}={}}=s;s.content=Nd(i),c.customContent&&(s.oldContent.companyInfoLanguage.customContent=Nd(c.customContent)),l&&(s.oldContent.contactInfoLanguage.contactContent=Nd(l)),u&&(s.oldContent.contactInfoLanguage.copyrightInfo=Nd(u)),e.value=s},n=async()=>{await ga("g5");let s;Ro("g5","footerConfig")||(s=await ZV(),t(s));const i=zb();(s==null?void 0:s.aboutUs)!==void 0?i.setAboutUsInfoData(s.aboutUs):Ro("g5","footerAboutUs")||await i.getAboutUsInfoData()},o=C(()=>{var s,i,c,l;return((l=(c=(i=(s=e.value)==null?void 0:s.oldContent.qualificationProofLanguages)==null?void 0:i.filter)==null?void 0:c.call(i,u=>!!u.qualificationImage))==null?void 0:l.map(u=>({...u,isNewImage:e5(u.qualificationImage,d5)})))||[]}),a=C(()=>{var s,i;return((i=(s=e.value)==null?void 0:s.oldContent)==null?void 0:i.qualificationProofStatus)===jt.OPEN}),r=C(()=>o.value.length===0||a.value);return{footerInfos:e,setFooterInfos:t,initFooterInfos:n,isHideQualification:r}},{persist:{storage:Yo(),paths:["footerInfos"]}});var $i=(e=>(e.JACKPOT_PRIZE="fetch/aside-jackpot-prize",e.JACKPOT_AMOUNT="change-jackpot-amount",e.JACKPOT_PRIZE_NO_LOGIN="jackpot-prize-no-login",e.HEART_BEAT="fetch/heart-beat",e.NETWORK_DETECTION="fetch/aside-network-detection",e.RED_POCKETS="fetch/event-red-pockets",e.ACTIVITY_TIME="fetch/activity-time-calc",e.NO_WALLET_WITHDRAW_ORDER="fetch/no-wallet-order",e.MAINTAININFO="fetch/maintain-info-json",e.KYC_VERIFY_RESULT="fetch/kyc-get-verify-result",e.REAL_LIVE_GAME="fetch/real-live-game",e))($i||{}),ru=(e=>(e.PAUSE="pause",e.RECOVER="recover",e.DESTROY="destroy",e.RUN="run",e))(ru||{});Ua.Popular,Ua.PlatformTop,Ua.Footer;const g5=(e,t)=>t==="array"?Array.isArray(e):t==="array-or-object"?e!==null&&typeof e=="object":e!==null&&typeof e=="object"&&!Array.isArray(e),f5=(e,t,n)=>{const o={...t};for(const[a,r]of Object.entries(n)){const s=o[a];s===void 0||g5(s,r)||(console.warn(`[static-aggregate] ${e}.${a} ç»ææ æï¼æåæ®µç¼ºå¤±å¤ç`),delete o[a])}return o},p5=3e4,h5=2,td=async(e,t,n=["platformType"],o={})=>{const r=(await z.request({url:e,method:"GET",timeout:p5},{maxRetryCount:h5,oss:{enable:!0,force:t,compression:"gzip"},token:{type:"staticOnly"},omitKey:n})).data.data;if(!r||typeof r!="object"||Array.isArray(r))throw new TypeError(`[static-aggregate] ${e} ååºç¼ºå°ææ data 对象`);return f5(e,r,o)},_5=async()=>td("/api/backstage/system/guestHome",!1,["platformType"],{activeCategoryHome:"object",activeIsShowV2:"object",activePopRecharge:"array",activeTasksBenefitReward:"object",gohalStaffHome:"object",messageListHome:"object",messagePopupcfg:"array"}),b5=async()=>td("/api/lobby/lowFrequencyConfig",!1,["platformType","currency"],{footerConfig:"object",forceUpdate:"object"}),y5=async()=>td("/api/lobby/highFrequencyConfig",!0,["platformType","language"],{bonusPool:"array",winnerCarousel:"object"}),v5=async()=>{const e=await td("/api/lobby/injectedDataConfig",!1,["platformType","currency"],{allCurrency:"array",appDownloadInfo:"object",optimizationConfig:"object",optimizationSiteConfig:"object",publicityInfo:"array",siteInfo:"object"}),{optimizationConfig:t,...n}=e;return{...n,...n.optimizationSiteConfig===void 0&&t!==void 0?{optimizationSiteConfig:t}:{}}},S5=async()=>{const e=await td("/api/lobby/platformGameConfig",!1,["platformType"],{hotList:"array",hotGameList:"array",listSubGameSummary:"array",liveGame:"array",liveVideo:"array",platformCateExtLink:"array-or-object",specialGame:"array",specialGameList:"array"}),{hotList:t,specialGame:n,...o}=e;return{...o,...o.hotGameList===void 0&&t!==void 0?{hotGameList:t}:{},...o.specialGameList===void 0&&n!==void 0?{specialGameList:n}:{}}},vT=async e=>{var t;try{const n=await z.request({url:"/api/game/hall/listBonusPoolV2",params:e,method:"GET"},{omitKey:["language","platformType"],oss:{enable:!0,force:!0},cache:{useCache:!0},token:{type:"staticOnly"},error:{action:"noMessage"}});return{data:df((t=n==null?void 0:n.data)==null?void 0:t.data)}}catch(n){if(e!=null&&e.page)return{data:[]};throw n}},C5=async(e,t)=>{if(sl.isCurrencyChanged()||t(e),await ga("g6"),Ro("g6","bonusPool"))return;const{data:n}=await vT();t(n)},ST=5,CT=new Map([["banner",Ua.Banner],["marquee",Ua.Marquee],["middleMenu",Ua.MiddleMenu],["popular",Ua.Popular],["footer",Ua.Footer],["platformTop",Ua.PlatformTop]]),Bue={"--jackpot-card-count-box-scale":"0.66","--jackpot-card-count-box-height":"0.76rem","--jackpot-card-count-to-bottom":"0.245rem","--jackpot-card-width":"7.1rem","--jackpot-card-height":"1.68rem","--jackpot-font-letter-spacing":"0.007rem","--jackpot-card-margin":"0 0 0.2rem","--jackpot-font-color":"$skin__neutral_1","--jackpot-font-size":"0.48rem"},Hue={"--jackpot-card-count-box-height":"0.52rem","--jackpot-card-count-box-scale":"0.48","--jackpot-card-count-to-bottom":"0.2rem","--jackpot-card-width":"5.2rem","--jackpot-card-height":"1.24rem","--jackpot-font-letter-spacing":"0.007rem","--jackpot-card-margin":"0 0 0.2rem","--jackpot-font-color":"$skin__neutral_1","--jackpot-font-size":"0.33rem"},xue={"--jackpot-card-count-box-scale":"0.58","--jackpot-card-count-to-bottom":"0.28rem"},Eue={"--jackpot-card-count-box-scale":"0.4","--jackpot-card-count-to-bottom":"0.25rem"},Uue={2:{"--jackpot-card-count-to-bottom":"0.02rem"},4:{"--jackpot-card-count-to-bottom":"0.06rem"},5:{"--jackpot-card-count-to-bottom":"0.06rem"}},Gue={"--jackpot-card-count-box-scale":"0.875","--jackpot-card-count-box-height":"0.37714rem","--jackpot-card-count-to-bottom":"0.04rem","--jackpot-card-width":"2.14rem","--jackpot-card-height":"0.68rem","--jackpot-font-letter-spacing":"0.007rem","--jackpot-card-margin":"0 0 0.2rem","--jackpot-font-color":"$skin__neutral_1","--jackpot-font-size":"0.28rem"},tS=({virtualPoolTimestamp:e,virtualPoolNumbers:t})=>{const n=Ye().valueOf();let o=Math.floor((n-e)/(ST*1e3));return(o>t.length-1||o<0)&&(o=o<0?0:t.length-1),o};function wT({fn:e,time:t,waitAsync:n=!0}){let o=!1;const a={value:0,valueOf(){return o=!0,a.value}};function r(s){a.value=setTimeout(()=>{const i=e(s);_T(i)&&n?i.then(()=>{o||r(i)}):r(i)},t)}return r(),a}class w5{constructor(){x(this,"pools",{});x(this,"manualKey",[])}batch(t,n=Object.keys(this.pools)){const o=this[t].bind(this);
19n.forEach(o)}async create(t){const{key:n,pollingHandler:o,immediate:a=!1,useSync:r=!1,beforeCreateHooks:s=()=>Promise.resolve(null)}=t;a&&(o==null||o()),s&&await s(),this.destroy(n);const i=()=>{var l,u;if(!((u=(l=this.pools)==null?void 0:l[n])!=null&&u.pause))return o==null?void 0:o()},c=r?wT({fn:i,time:t.interval,waitAsync:!0}):window.setInterval(i,t.interval);this.pools[n]={pause:!1,id:c,intervalHandler:i,options:t}}pause(t){if(!t)return this.batch(ru.PAUSE);this.pools[t]&&(this.pools[t].pause=!0)}recover(t){if(!t)return this.batch(ru.RECOVER);this.pools[t]&&!this.manualKey.includes(t)&&(this.pools[t].pause=!1,this.run(t))}pauseInManual(t){t&&this.pools[t]&&!this.manualKey.includes(t)&&this.manualKey.push(t),this.pause(t)}recoverInManual(t){if(!t)return;const n=this.manualKey.indexOf(t);n!==-1&&(this.manualKey.splice(n,1),this.recover(t))}run(t){if(!t)return this.batch(ru.RUN);this.pools[t]&&this.pools[t].intervalHandler()}destroy(t){if(!t)return this.batch(ru.DESTROY);this.pools[t]&&(clearInterval(this.pools[t].id),delete this.pools[t])}update(t,n){if(!t)return;const o={...this.pools[t].options,...n};this.destroy(t),this.create(o)}}const as=Vo.getInstance("PollingManager",w5),I5=()=>{const e=O(null),t=O([]),n=C(()=>t.value.length>0),o=()=>{e.value&&(clearTimeout(e.value),e.value=null)};return{delayQueryTimer:e,clearDelayQueryTimer:o,hasActiveJackpot:n,setJackpotActive:(r,s)=>{const i=t.value.includes(r);s&&!i?t.value=[...t.value,r]:!s&&i&&(t.value=t.value.filter(c=>c!==r)),n.value||o()}}},ff=ke("jackPot",()=>{const e=O(""),t=O([]),n=C(()=>{var F,Q;const H=t.value.find(G=>G.showType===Es.Independent&&G.bonusSource===bu.WGReal);return(Q=(F=H==null?void 0:H.data)==null?void 0:F.rewardPoolGold)!=null?Q:0}),o=C(()=>!!e.value||!!n.value),a=O([]),r=O([]),s=O(0),i=O(!1),{delayQueryTimer:c,clearDelayQueryTimer:l,hasActiveJackpot:u,setJackpotActive:d}=I5();let m=0;const g=O(null),{hasLogined:f,isLogined:_}=DR(),h=(H,F,Q)=>{if(!H)return t.value.filter(N=>N.platformType===Yh.Club?!1:N.showType===Es.Independent)||[];const G=CT.get(H);return t.value.filter(N=>{if(N.platformType===Yh.Club)return!1;const $=JSON.parse(N.showPosition||"{}");return H==="platformTop"?$.type===G&&N.showType!==Es.onPlatform&&$.value&&F===Number($.value)&&(Q?N.bonusSource===bu.Virtual&&N.jackpotType===os.Mini:N.jackpotType===os.Normal):$.type===G})},p=H=>{var N;const{virtualPoolNumbers:F=[]}=a.value.find($=>Number($.id)===Number(H))||{},Q=(N=r.value.find($=>Number($.id)===Number(H)))==null?void 0:N.value;let G="0.0";return F.length>0&&Q!==void 0&&(G=F[Q]),G},y=H=>{const F=H?r.value.findIndex(G=>Number(G.id)===Number(H)):-1;return{amountKeyItem:F>-1?r.value[F]:void 0,index:F}},b=H=>{var Q;const F=((H==null?void 0:H.filter(G=>{var N;return((N=t.value.find($=>$.id===G.id))==null?void 0:N.showType)===Es.Independent}))||[])[0];if(F){const G=tS(F);A(F.virtualPoolNumbers.length>0&&G>-1?(Q=F.virtualPoolNumbers[G])==null?void 0:Q.toString():"")}},v=(H,F)=>{const Q=JSON.parse(JSON.stringify(r.value));if(F){const{amountKeyItem:G,index:N}=y(F);G?Q[N].value=H:Q.push({id:F,value:H})}else Q.forEach(G=>{G.value=H});r.value=Q},A=H=>{e.value=H},L=H=>{t.value=H},T=()=>{a.value.forEach(H=>{var Q;const F=((Q=y(H.id).amountKeyItem)==null?void 0:Q.value)||0;b(a.value),H.virtualPoolNumbers.length-1>F&&v(F+1,H.id)})},S=(H,F=!1)=>{const Q=JSON.parse(JSON.stringify(a.value));b(H),F&&(r.value=[]),H.forEach(G=>{const N=Q.findIndex(X=>Number(X.id)===Number(G.id));N>-1?Q[N]=G:Q.push(G);const $=tS(G);v($||0,G.id)}),a.value=F?H:Q},I=H=>{!f.value&&u.value&&!c.value&&(l(),c.value=setTimeout(async()=>{if(c.value=null,!u.value)return;const F=await vT();u.value&&F.data&&F.data.length>0&&(i.value=F.data.every(Q=>a.value.some(G=>G.id===Q.id&&G.virtualPoolTimestamp===Q.virtualPoolTimestamp))&&F.data.length===a.value.length,S((F==null?void 0:F.data)||[]))},H))},R=()=>{var Q,G,N;const H=((G=(Q=a.value[0])==null?void 0:Q.virtualPoolNumbers)==null?void 0:G.length)||0,F=((N=r.value[0])==null?void 0:N.value)||0;if(b(a.value),H-1>F&&v(F+1),H-1<=F+1&&s.value<1){const $=H-1===F+1?Math.floor(Math.random()*15)+5:0;I($),s.value+=1}else s.value>12||!i.value?s.value=0:i.value&&(s.value+=1)},D=(H=[])=>{L(H);const F=H.filter(Q=>{var G;return Q.bonusSource!==bu.WGReal||((G=Q.virtualPoolNumbers)==null?void 0:G.length)}).map(Q=>({id:Q.id,showType:Q.showType,virtualPoolNumbers:Q.virtualPoolNumbers||[],virtualPoolTimestamp:Q.virtualPoolTimestamp||0}))||[];S(F,!0),F.length>0?B():(e.value="",as.destroy($i.JACKPOT_AMOUNT))},M=()=>C5(t.value,D),B=()=>{as.destroy($i.JACKPOT_AMOUNT),as.create({key:$i.JACKPOT_AMOUNT,pollingHandler:()=>{f.value?T():R()},interval:1e3*ST})},E=H=>
19{g.value={data:H,id:++m}},Y=()=>{if(M(),f.value&&Ke.hasJackPotWs&&(Gi.on(Fc.JACKPOT_DATA,H=>{H.length&&S(H)}),Gi.off(Fc.JACKPOT_REWARD,E),Gi.on(Fc.JACKPOT_REWARD,E)),!_.value){const H=fe(()=>_.value,()=>{_.value&&(Y(),H())})}};return{getPlaceConfig:h,getAmount:p,getAmountKey:y,setAmountKeys:v,jackPotAmount:e,realJackPotAmount:n,hasJackPotData:o,setJackPotAmount:A,virtualBonusPool:t,calculatePolling:a,setVirtualBonusPool:L,setVirtualBonusPoolRender:D,loginedSetKey:T,setCalculatePolling:S,getQueuePolling:I,noLoginedSetKey:R,getVirtualBonusPool:M,longConnectionJackpot:Y,setJackpotActive:d,latestReward:g,pushReward:E}},{persist:{paths:["virtualBonusPool"]}}),A5=async e=>{const t=[];return e.footerConfig!==void 0&&(m5().setFooterInfos(e.footerConfig),e.footerConfig.aboutUs!==void 0&&(zb().setAboutUsInfoData(e.footerConfig.aboutUs),t.push("footerAboutUs")),t.push("footerConfig")),e.forceUpdate!==void 0&&(zo().setAppVersion(e.forceUpdate),t.push("forceUpdate")),t},L5=async(e,t=()=>!0)=>{const n=e.winnerCarousel?await Mt.parseWinnerGamesList(e.winnerCarousel):void 0,o=e.bonusPool===void 0?void 0:df(e.bonusPool);if(!t())return[];const a=[];return n!==void 0&&(ef().setWinnerData(n),a.push("winnerCarousel")),o!==void 0&&(ff().setVirtualBonusPoolRender(o),a.push("bonusPool")),a},lp=new Map,pf=e=>{var n;const t=((n=lp.get(e))!=null?n:0)+1;return lp.set(e,t),()=>lp.get(e)===t},T5=(e,t)=>{if(e===void 0)return;Array.isArray(e)||Qg.saveVersionInfo(e.v);let n=Mt.parseGameCategoriesExtLinkInfoList(e);t.clearLanguageDependentText&&(n=n.map((a,r)=>{var s;return{...a,gameCategoryName:"",list:r===1?(s=a.list)==null?void 0:s.map(i=>({...i,brand:"",platformName:""})):a.list}}));const o=n.filter(a=>a.isExLink).map(a=>({...a,linkName:a.gameCategoryName}));return{categories:n,extLinks:o}},R5=async(e,t,n={})=>{if(e===void 0||t===void 0)return;if(!t.length)return[];let o=await Mt.parseGameItemList(e,t);return n.clearLanguageDependentText&&(o=o.map(a=>({...a,gameName:"",platformName:""}))),o},O5=async(e,t,n={})=>{if(e===void 0||t===void 0)return;if(!t.length)return[];const o=await Mt.parseSpecialGameItemList(e,t);return o.forEach(a=>{n.clearLanguageDependentText&&(a.gameName="",a.platformName="")}),o},P5=async(e,t)=>{if(!(e===void 0||t===void 0))return t.length?Mt.parsePlatformAttachGamesList(e,t):[]},D5=async e=>{var t;if(!(e.liveGame===void 0&&e.liveVideo===void 0)&&mL.includes((t=ue().siteInfos)==null?void 0:t.type))return{platforms:e.liveGame===void 0?void 0:Mt.parseRealLivePlatformList(e.liveGame),games:e.liveVideo===void 0?void 0:Mt.parseRealLiveGameLIst(e.liveVideo)}},IT=async(e,t={})=>{var m,g,f;const n=(m=t.isLatest)!=null?m:pf("g8"),o=T5(e.platformCateExtLink,t),a=o==null?void 0:o.categories;a!==void 0&&await Mt.supplementPlatformInfo([],a);const[r,s,i,c]=await Promise.all([R5(e.hotGameList,a,t),O5(e.specialGameList,a,t),P5(e.listSubGameSummary,a),D5(e)]);if(!n())return[];const l=on(),u=[];if(o&&(l.setGameCategoriesInfoList(o.categories),l.setGameCategorieExtLink(o.extLinks),u.push("platformCateExtLink")),r!==void 0&&(l.setHotGameList(r),u.push("hotGameList")),s!==void 0&&(l.setSpecialGameList(s),u.push("specialGameList")),i!==void 0){const _=uU[(g=ue().siteInfos)==null?void 0:g.type];_!==void 0&&l.clearGameCategoryPlatformList(_);for(const{gameCategoryId:h,platformId:p,gameList:y,gameCount:b}of i){const v=mg(h,p);l.setGameCountList(v,b),l.setGameCategoryPlatformList({gameCategoryId:h,platformId:p,gameList:y})}u.push("listSubGameSummary")}const d=mL.includes((f=ue().siteInfos)==null?void 0:f.type)&&o!==void 0&&!l.getCategoriesIsOpen(Z.Real);if(c||d){const{useRealLiveGame:_}=await pa(()=>V(()=>import("./index.DODz-Ynz.js"),__vite__mapDeps([0,1,3,4,5,6,10,15,7,8,16])))();if(!n())return[];const h=_();if(!c)return h.realLivePlatformList=[],h.realLiveGameList=[],u;if(await h.setInjectedRealLiveData({...c,categoryOpen:!o||l.getCategoriesIsOpen(Z.Real),isLatest:n}),!n())return[]}return(c==null?void 0:c.platforms)!==void 0&&u.push("liveGame"),(c==null?void 0:c.games)!==void 0&&u.push("liveVideo"),u},M5=Ao(),N5=e=>{e!==void 0&&(M5.value=e)};var k5=(e=>(e[e.SendPrivatePromotion=0]="SendPrivatePromotion",e[e.LinkToGet=1]="LinkToGet",e[e.ClickToGet=2]="ClickToGet",e))(k5||{}),s_=(e=>(e[e.Universal=1]="Universal",e[e.Unique=2]="Unique",e[e.BoundPhone=3]="BoundPhone",e[e.UnboundPhone=4]="UnboundPhone",e[e.FirstCharge=5]="FirstCharge",e[e.InvitationLink=6]="InvitationLink",e))(s_||{}),B5=(e=>(e[e.Unbound=0]="Unbound",e[e.Bound=1]="Bound",e[e.HasPhoneNumber=2]="HasPhoneNumber",e))(B5||{}),H5=(e=>(e[e.Fixed=1]="Fixed",e[e.FirstDepositBonus=2]="FirstDepositBonus",e[e.FirstChargeRatio=3]="FirstChargeRatio",e[e.Random=4]="Random",e))(H5||{}),x5=(e=>(e[e.Show=0]="Show",e[e.Hide=1]="Hide",e))(x5||{}),E5=(e=>(e[e.Open=0]="Open",e[e.Close=1]="Close",e))(E5||{}),U5=(e=>(e[e.Success=0]="Success",e[e.OnlyOneTime=1]="OnlyOneTime",e[e.WrongOrExpired=2]="WrongOrExpired",e[e.RechargeAtLeastOnce=3]="RechargeAtLeastOnce",e[e.CouponCodeNotMatchActivity=4]="CouponCodeNotMatchActivity",e[e.DiscountAmountTooLowContactCustomerService=5]="DiscountAmountTooLowContactCustomerService",e[e.CodeAllTimesUsed=6]="CodeAllTimesUsed",e[e.YouHaveNoRight=7]="YouHaveNoRight",e[e.RechargeLimit=8]="RechargeLimit",e[e.BetLimit=9]="BetLimit",e[e.AccumulatedBonusLimit=10]="AccumulatedBonusLimit",e[e.AccumulatedLossLimit=11]="AccumulatedLossLimit",e[e.SubBrandUniqueWrongOrExpired=14]="SubBrandUniqueWrongOrExpired",e))(U5||{}),G5=(e=>(e[e.Unbound=0]="Unbound",e[e.Bound=1]="Bound",e))(G5||{}),F5=(e=>(e.Modal="modal",e.Page="page",e.Server="server",e))(F5||{}),W5=(e=>(e[e.None=0]="None",e[e.Recharge=1]="Recharge",e[e.Bet=2]="Bet",e[e.Bonus=3]="Bonus",e[e.Loss=4]="Loss",e))(W5||{});const AT="/api/active/category",V5="/api/active/categoryV2",$5="/api/active/refreshActiveStatistic",Y5=async e=>{var a,r,s;const{hasLogined:t}=J(),n=await z.request({url:AT,method:"GET"},{omitKey:["platformType"],cache:{useCache:"fresh",...ai(),expireOnloaded:t,getCacheSync:e},oss:{enable:!t},error:{blacklistThrottle:!0}}),o=(r=(a=n==null?void 0:n.data)==null?void 0:a.data)!=null?r:{categoryList:[],activeList:[]};return o.__isCache=!!((s=n==null?void 0:n.data)!=null&&s.__isCache),o},q5=async e=>{var a,r,s;const{hasLogined:t}=J(),n=await z.request({url:V5,method:"GET"},{omitKey:["platformType"],cache:{useCache:"fresh",...ai(),expireOnloaded:t,getCacheSync:e},oss:{enable:!t},error:{blacklistThrottle:!0}}),o=(r=(a=n==null?void 0:n.data)==null?void 0:a.data)!=null?r:{categoryList:[],activeList:[]};return o.__isCache=!!((s=n==null?void 0:n.data)!=null&&s.__isCache),o},Fue=e=>z.request({method:"GET",url:"/api/active/getByTemplate",data:e},{omitKey:["language","platformType"],cache:{time:60},token:{type:"staticOnly"},oss:{enable:!0}}).then(t=>t.data.data),Wue=async()=>{var t;const e=await z.request({url:$5,method:"POST"},{error:{action:"noMessage"}});return(t=e==null?void 0:e.data)==null?void 0:t.data},z5=e=>{var n;const t=Tt().getServerTime();return((n=e.activeList)!=null?n:[]).filter(o=>{const a=o.es,r=o.ss;return(a&&t<a||!a)&&(r&&t>r||!r)}).map(o=>{var a,r,s;return{activeId:o.id,template:o.tp,startShowTime:o.ss,endShowTime:o.es,startTime:o.ss,endTime:(a=o.et)!=null?a:o.es,activeName:(r=o.nm)!=null?r:"",remark:o.rk,status:(s=o.st)!=null?s:0,categories:""}})},oi=ke("eventIndex",()=>{const e=On(),t=$b(),{redDotCatesMap:n,redDotEventsMap:o}=St(e),a=O([]),r=O([]),s=O([]),i=O(!1),c=Ao(new Map),l=Ao(new Map),u=Ao(new Map),d=O(!1),m=O(null),g=O(!1),f=O(null),_=O(!1),h=O(0),p=O(null),y=async G=>{var j;if(!e.isShowDiscount&&!(G!=null&&G.forceShowDiscount))return[];d.value=!0;let N=!1;const[$,X]=await Ee(Y5(te=>{var K,q;g.value||(T((K=te==null?void 0:te.data)==null?void 0:K.data),N=!0,(q=G==null?void 0:G.callbackFromCac
19he)==null||q.call(G))}));if(m.value=$,$)return d.value=!1,console.error("categories fetch error:",$),((j=$==null?void 0:$.data)==null?void 0:j.err_code)===$e.USER_BLACKLIST_LIMITED&&T({categoryList:[],activeList:[]}),[];(!N||!(X!=null&&X.__isCache))&&T(X),g.value=!0,d.value=!1,t.updateLoadedCategories()},b=G=>{const N=z5(G);i.value=!0,!(g.value||a.value.length)&&(r.value=N,I(N,!1))},v=async()=>{if(!e.isShowDiscount)return;const[G,N]=await Ee(q5());G||!N||(s.value=N.activeList,L())},A=G=>(l.value.size||L(),l.value.get(G)),L=()=>{const G=new Map;s.value.forEach(N=>{const $=G.get(N.template)||[];$.push(N),G.set(N.template,$)}),l.value=G};fe(()=>J().hasLogined,async G=>{await z.setCacheExpired(AT),G&&y()});const T=G=>{var X,j;if(!(G!=null&&G.categoryList))return;(X=G.categoryList)==null||X.sort((te,K)=>te.sortNumber-K.sortNumber),a.value=G.categoryList||[];const N=Tt().getServerTime(),$=(j=G.activeList||[])==null?void 0:j.reduce((te,K)=>{try{K!=null&&K.imgId&&(K.imgIdParsed=JSON.parse(K.imgId),K.imgId="");const q=K==null?void 0:K.endShowTime,ae=K==null?void 0:K.startShowTime;(q&&N<q||!q)&&(ae&&N>ae||!ae)&&fT([K==null?void 0:K.vipLevel,K==null?void 0:K.signVipLevel])&&pT(K==null?void 0:K.register_days_limit)&&(K.categories&&!K._parsedCateIds&&(K._parsedCateIds=K.categories.split(",").map(Number)),te.push(K))}catch(q){console.error("useEventIndexStore reducelist error",q)}return te},[]);r.value=$,I($),t.updateEventsList(r.value)},S=(G,N=!1)=>{var $;return($=G||[])==null?void 0:$.flatMap(X=>{var j;try{if(!N&&X.remark&&typeof X.remark=="string"){const te=(j=sd(X.remark))!=null?j:{};return te.name=X.activeName,te.id=X.activeId,[{...X,...te}]}else if(N)return[{...{...X,name:X.activeName,id:X.activeId,activeData:X.activeCfg}}]}catch(te){return console.error("JSON parse fail",te),[]}return[]})},I=(G,N=!0)=>{const $=new Map,X=new Map;G.forEach(j=>{const te=$.get(j.template)||[];te.push(j),$.set(j.template,te),N&&j.categories&&(j._parsedCateIds||j.categories.split(",").map(Number)).forEach(q=>{const ae=X.get(q)||[];ae.push({...j,categoryId:q}),X.set(q,ae)})}),c.value=$,N&&(u.value=X)},R=G=>{var N;return c.value.size||I(r.value,!i.value),(N=c.value.get(G))!=null?N:[]},D=({withRedDot:G=!1}={})=>!g.value&&!a.value.length?[]:G?H(r.value):r.value,M=C(()=>a.value.filter(G=>u.value.has(G.categoryId)).map(G=>({...G,tEvents:u.value.get(G.categoryId)||[]}))),B=C(()=>M.value.map(G=>{var N,$,X;return{...G,activeCount:(X=($=(N=n.value)==null?void 0:N[`${G.categoryId}`])==null?void 0:$.activeCount)!=null?X:0}})),E=C(()=>{const G=u.value.get(Number(f.value))||[];return H(G)}),Y=G=>{if(!G)return;const N=Number(G);for(const $ of M.value){const X=$.tEvents.find(j=>j.activeId===N);if(X)return{...X,categoryId:$.categoryId}}},H=G=>{var j;if(!(G!=null&&G.length))return[];const N=o.value;if(!Object.keys(N).length)return G;let $=null,X=null;for(let te=0;te<G.length;te++){const K=G[te];(((j=N==null?void 0:N[`${K.activeId}`])==null?void 0:j.activeCount)||0)>0?($||($=[],X=G.slice(0,te)),$.push(K)):X&&X.push(K)}return $?($.sort((te,K)=>{var q,ae;return(((q=N==null?void 0:N[`${K.activeId}`])==null?void 0:q.activeCount)||0)-(((ae=N==null?void 0:N[`${te.activeId}`])==null?void 0:ae.activeCount)||0)}),X!=null&&X.length?$.concat(X):$):G},F=G=>{f.value=G},Q=C(()=>{var G,N;return(N=S((G=R(at.DiscountCode))!=null?G:[]))==null?void 0:N.filter($=>[s_.Universal,s_.Unique].includes($.codeType))});return{curTab:f,eventsList:r,eventsListV2:s,hasHomeActiveCategory:i,categoryList:a,isListLoading:d,isReceiveLoading:_,listErr:m,baseFilterCategories:M,filterCategories:B,activeEventsList:E,isLoadedCategories:g,eventResetStatusIndex:h,pendingEventFromSearch:p,setCurTab:F,setHomeActive:b,handlePopConfigData:S,getTemplateList:R,getTemplateListV2:A,getEventPageList:D,getEventCategoriesAndEvents:y,getEventCategoriesAndEventsV2:v,freshDiscountRedDot:e.freshDiscountRedDot,injectRedDotToList:H,findEventWithCategory:Y,redemptionList:Q}}),j5=async()=>{const e=await z.request({url:"/api/active/active_popRecharge",method:"GET"},{token:{type:"staticOnly"},omitKey:["platformType"],error:{action:"silent"},cache:{useCache:"fresh",...ai()},oss:{enable:!0}});return e==null?void 0:e.data.data},Vue=async()=>{const e=await z.request({url:"/api/active/withdraw/getAllActive",method:"POST",headers:{deviceModel:QB(),devicetype:sA()}},{error:{action:"noMessage"}});return e==null?void 0:e.data.data};var K5=(e=>(e[e.equal0=0]="equal0",e[e.equal4=4]="equal4",e[e.equal6=6]="equal6",e[e.equal8=8]="equal8",e[e.equal10=10]="equal10",e[e.equal12=12]="equal12",e))(K5||{}),Q5=(e=>(e[e.Style1=1]="Style1",e[e.Style2=2]="Style2",e[e.Style3=3]="Style3",e[e.Style4=4]="Style4",e[e.Style5=5]="Style5",e[e.Style6=6]="Style6",e))(Q5||{}),X5=(e=>(e[e.Count0=0]="Count0",e[e.Count1=1]="Count1",e[e.Count2=2]="Count2",e))(X5||{}),Om=(e=>(e[e.Month=0]="Month",e[e.Week=1]="Week",e[e.Day=2]="Day",e[e.Once=4]="Once",e))(Om||{}),Z5=(e=>(e[e.FirstAward=1]="FirstAward",e[e.SecondAward=2]="SecondAward",e[e.FinishTask=3]="FinishTask",e[e.GetAward=4]="GetAward",e[e.SelfRecharge=11]="SelfRecharge",e[e.SelfBetting=12]="SelfBetting",e[e.EachRecharge=14]="EachRecharge",e[e.DownloadApp=21]="DownloadApp",e[e.BindingPhone=22]="BindingPhone",e[e.BingdingEmail=23]="BingdingEmail",e[e.BingdingRecharge=24]="BingdingRecharge",e[e.RechargeDay=42]="RechargeDay",e[e.BettingDay=43]="BettingDay",e[e.RechargesDay=44]="RechargesDay",e[e.SubordinatesRecharge=45]="SubordinatesRecharge",e[e.SubordinatesBetting=46]="SubordinatesBetting",e[e.DailyLogin=101]="DailyLogin",e[e.DailyOnline=102]="DailyOnline",e[e.Lottery=103]="Lottery",e[e.MallRedemption=104]="MallRedemption",e))(Z5||{}),J5=(e=>(e[e.EAwardTypeConst=0]="EAwardTypeConst",e[e.EAwardTypeRand=1]="EAwardTypeRand",e[e.EAwardTypeUnGet=2]="EAwardTypeUnGet",e))(J5||{}),e$=(e=>(e[e.SubUser=0]="SubUser",e[e.MySelfReCharge=11]="MySelfReCharge",e[e.MySelfDaMa=12]="MySelfDaMa",e[e.MySelfReChargeAndDaMa=13]="MySelfReChargeAndDaMa",e[e.MySelfReChargeSingle=14]="MySelfReChargeSingle",e[e.OnceLoginApp=21]="OnceLoginApp",e[e.OnceBindPhone=22]="OnceBindPhone",e[e.OnceBindEmail=23]="OnceBindEmail",e[e.OnceBindWithdraw=24]="OnceBindWithdraw",e[e.MySelfThisDayReCharge=42]="MySelfThisDayReCharge",e[e.MySelfThisDayDaMa=43]="MySelfThisDayDaMa",e[e.MySelfThisDayReChargeCount=44]="MySelfThisDayReChargeCount",e[e.SubUserTotalRecharge=45]="SubUserTotalRecharge",e[e.SubUserTotalDaMa=46]="SubUserTotalDaMa",e))(e$||{}),t$=(e=>(e[e.Default=1]="Default",e[e.Spining=2]="Spining",e[e.Winning=3]="Winning",e))(t$||{}),n$=(e=>(e[e.Hide=0]="Hide",e[e.Show=1]="Show",e))(n$||{}),o$=(e=>(e[e.Hide=0]="Hide",e[e.Show=1]="Show",e))(o$||{}),a$=(e=>(e[e.Hide=0]="Hide",e[e.Show=1]="Show",e))(a$||{}),r$=(e=>(e[e.InvitedNumber=1]="InvitedNumber",e[e.DownloadAppNumberAndLogin=3]="DownloadAppNumberAndLogin",e[e.SubordinateDaMaNumber=4]="SubordinateDaMaNumber",e[e.SubordinateFirstRechargeNumber=5]="SubordinateFirstRechargeNumber",e[e.SubordinateRechargeCount=6]="SubordinateRechargeCount",e[e.SubordinateTotalRechargeValue=7]="SubordinateTotalRechargeValue",e[e.SubordinateTotalDaMaValue=8]="SubordinateTotalDaMaValue",e[e.SubordinateTotalWithdrawValue=9]="SubordinateTotalWithdrawValue",e[e.SubordinateWithdrawCount=10]="SubordinateWithdrawCount",e[e.MySelfOneRechargeValue=11]="MySelfOneRechargeValue",e[e.MySelfOneDaNaValue=12]="MySelfOneDaNaValue",e[e.MySelfTotalRechargeValue=13]="MySelfTotalRechargeValue",e[e.ConditionTypeMySelfTotalDaNaValue=14]="ConditionTypeMySelfTotalDaNaValue",e))(r$||{}),s$=(e=>(e[e.NoOpt=0]="NoOpt",e[e.ReceiveSecondAward=1]="ReceiveSecondAward",e))(s$||{});const $ue={1:{bg:"/lobby_asset/common/common/event/kyd_style_1_zp_1.png",border:"/lobby_asset/common/common/event/kyd_style_1_zp_2.png",btn:"/lobby_asset/common/common/event/kyd_style_1_zp_3.png",pointer:"/lobby_asset/common/common/event/kyd_style_1_zp_x.png",tipsCard:"/lobby_asset/common/common/event/kyd_style_1_qp.png",secondAwardIcon:"/lobby_asset/common/common/event/kyd_style_1_jl_4.png",secondAwardIconActive:"/lobby_asset/common/common/event/kyd_style_1_jl_5.png",bgSize:510,btnSize:198,pointerHeight:207.3,pointerWidth:128.2,tipsCardWidth:522,tipsCardHeight:300},2:{bg:"/lobby_asset/common/common/event/kyd_style_2_zp_1.png",border:"/lobby_asset/common/common/event/kyd_style_2_zp_2.png",btn:"/lobby_asset/common/common/event/kyd_style_2_zp_3.png",pointer:"/lobby_asset/common/common/event/kyd_style_2_zp_x.png",tipsCard:"/lobby_asset/common/common/event/kyd_style_2_qp.png",secondAwardIcon:"/lobby_asset/common/common/event/kyd_style_2_jl_4.png",secondAwardIconActive:"/lobby_asset/common/common/event/kyd_style_2_jl_5.png",bgSize:510,btnSize:198,pointerHeight:207.3,pointerWidth:128.2,tipsCardWidth:575,tipsCardHeight:296.4},3:{bg:"/lobby_asset/common/common/event/kyd_style_3_zp_1.png",border:"/lobby_asset/common/common/event/kyd_style_3_zp_2.png",btn:"/lobby_asset/common/common/event/kyd_style_3_zp_3.png",pointer:"/lobby_asset/common/common/event/kyd_style_3_zp_x.png",tipsCard:"/lobby_asset/common/common/event/kyd_style_3_qp.png",secondAwardIcon:"/lobby_asset/common/common/event/kyd_style_3_jl_4.png",secondAwardIconActive:"/lobby_asset/common/common/event/kyd_style_3_jl_5.png",bgSize:510,btnSize:198,pointerHeight:207.3,pointerWidth:128.2,tipsCardWidth:522,tipsCardHeight:300},4:{bg:"/lobby_asset/common/common/event/kyd_style_4_zp_1.png",border:"/lobby_asset/common/common/event/kyd_style_4_zp_2.png",btn:"/lobby_asset/common/common/event/kyd_style_4_zp_3.png",pointer:"/lobby_asset/common/common/event/kyd_style_4_zp_x.png",tipsCard:"/lobby_asset/common/common/event/kyd_style_4_qp.png",secondAwardIcon:"/lobby_asset/common/common/event/kyd_style_4_jl_4.png",secondAwardIconActive:"/lobby_asset/common/common/event/kyd_style_4_jl_5.png",baseBottom:"/lobby_asset/common/common/event/kyd_style_4_zpdz.png",bgSize:510,btnSize:198,pointerHeight:207.3,pointerWidth:128.2,tipsCardWidth:560,tipsCardHeight:300},5:{bg:"/lobby_asset/common/common/event/kyd_style_5_zp_1.png",border:"/lobby_asset/common/common/event/kyd_style_5_zp_2.png",btn:"/lobby_asset/common/common/event/kyd_style_5_zp_3.png",pointer:"/lobby_asset/common/common/event/kyd_style_5_zp_x.png",tipsCard:"/lobby_asset/common/common/event/kyd_style_5_qp.png",secondAwardIcon:"/lobby_asset/common/common/event/kyd_style_5_jl_4.png",secondAwardIconActive:"/lobby_asset/common/common/event/kyd_style_5_jl_5.png",bgSize:510,btnSize:198,pointerHeight:207.3,pointerWidth:128.2,tipsCardWidth:555,tipsCardHeight:290.5},6:{bg:"/lobby_asset/common/common/event/kyd_style_6_zp_1.png",border:"/lobby_asset/common/common/event/kyd_style_6_zp_2.png",btn:"/lobby_asset/common/common/event/kyd_style_6_zp_3.png",pointer:"/lobby_asset/common/common/event/kyd_style_6_zp_x.png",tipsCard:"/lobby_asset/common/common/event/kyd_style_6_qp.png",secondAwardIcon:"/lobby_asset/common/common/event/kyd_style_6_jl_4.png",secondAwardIconActive:"/lobby_asset/common/common/event/kyd_style_6_jl_5.png",bgSize:510,btnSize:198,pointerHeight:207.3,pointerWidth:128.2,tipsCardWidth:560,tipsCardHeight:282.5}},Yue={1:{bg:"/lobby_asset/common/common/event/kyd_style_1_zp_1.png",borderAnim1:"/lobby_asset/common/web/animated/apng_event_kyd_ZP1_anim1.png",borderAnim2:"/lobby_asset/common/web/animated/apng_event_kyd_ZP1_anim2.png",borderAnim3:"/lobby_asset/common/web/animated/apng_event_kyd_ZP1_anim3.png",btn:"/lobby_asset/common/common/event/kyd_style_1_zp_2_2.png",pointer:"/lobby_asset/common/common/event/kyd_style_1_zp_x.png",tipsCard:"/lobby_asset/common/common/event/kyd_style_1_qp.png",secondAwardIcon:"/lobby_asset/common/common/event/kyd_style_1_jl_4.png",secondAwardIconActive:"/lobby_asset/common/common/event/kyd_style_1_jl_5.png",bgSize:510,btnSize:198,pointerHeight:207.3,pointerWidth:128.2,tipsCardWidth:522,tipsCardHeight:300},2:{bg:"/lobby_asset/common/common/event/kyd_style_2_zp_1.png",borderAnim1:"/lobby_asset/common/web/animated/apng_event_kyd_ZP2_anim1_alpha.png",borderAnim2:"/lobby_asset/common/web/animated/apng_event_kyd_ZP2_anim2_alpha.png",borderAnim3:"/lobby_asset/common/web/animated/apng_event_kyd_ZP2_anim3_alpha.png",btn:"/lobby_asset/common/common/event/kyd_style_2_zp_2_2.png",pointer:"/lobby_asset/common/common/event/kyd_style_2_zp_x.png",tipsCard:"/lobby_asset/common/common/event/kyd_style_2_qp.png",secondAwardIcon:"/lobby_asset/common/common/event/kyd_style_2_jl_4.png",secondAwardIconActive:"/lobby_asset/common/common/event/kyd_style_2_jl_5.png",bgSize:510,btnSize:198,pointerHeight:207.3,pointerWidth:128.2,tipsCardWidth:575,tipsCardHeight:296.4},3:{bg:"/lobby_asset/common/common/event/kyd_style_3_zp_1.png",borderAnim1:"/lobby_asset/common/web/animated/apng_event_kyd_ZP3_anim1_alpha.png",borderAnim2:"/lobby_asset/common/web/animated/apng_event_kyd_ZP3_anim2_alpha.png",borderAnim3:"/lobby_asset/common/web/animated/apng_event_kyd_ZP3_anim3_alpha.png",btn:"/lobby_asset/common/common/event/kyd_style_3_zp_2_2.png",pointer:"/lobby_asset/common/common/event/kyd_style_3_zp_x.png",tipsCard:"/lobby_asset/common/common/event/kyd_style_3_qp.png",secondAwardIcon:"/lobby_asset/common/common/event/kyd_style_3_jl_4.png",secondAwardIconActive:"/lobby_asset/common/common/event/kyd_style_3_jl_5.png",bgSize:510,btnSize:198,pointerHeight:207.3,pointerWidth:128.2,tipsCardWidth:522,tipsCardHeight:300},4:{bg:"/lobby_asset/common/common/event/kyd_style_4_zp_1.png",borderAnim1:"/lobby_asset/common/web/animated/apng_event_kyd_ZP4_2_anim1_alpha.png",borderAnim2:"/lobby_asset/common/web/animated/apng_event_kyd_ZP4_2_anim2_alpha.png",borderAnim3:"/lobby_asset/common/web/animated/apng_event_kyd_ZP4_2_anim3_alpha.png",btn:"/lobby_asset/common/common/event/kyd_style_4_zp_3.png",pointer:"/lobby_asset/common/common/event/kyd_style_4_zp_x.png",tipsCard:"/lobby_asset/common/common/event/kyd_style_4_qp.png",secondAwardIcon:"/lobby_asset/common/common/event/kyd_style_4_jl_4.png",secondAwardIconActive:"/lobby_asset/common/common/event/kyd_style_4_jl_5.png",baseBottom:"/lobby_asset/common/common/event/kyd_style_4_zpdz.png",bgSize:510,btnSize:198,pointerHeight:207.3,pointerWidth:128.2,tipsCardWidth:560,tipsCardHeight:300},5:{bg:"/lobby_asset/common/common/event/kyd_style_5_zp_1.png",borderAnim1:"/lobby_asset/common/web/animated/apng_event_kyd_ZP5_2_anim1_alpha.png",borderAnim2:"/lobby_asset/common/web/animated/apng_event_kyd_ZP5_2_anim2_alpha.png",borderAnim3:"/lobby_asset/common/web/animated/apng_event_kyd_ZP5_2_anim3_alpha.png",btn:"/lobby_asset/common/common/event/kyd_style_5_zp_3.png",pointer:"/lobby_asset/common/common/event/kyd_style_5_zp_x.png",tipsCard:"/lobby_asset/common/common/event/kyd_style_5_qp.png",secondAwardIcon:"/lobby_asset/common/common/event/kyd_style_5_jl_4.png",secondAwardIconActive:"/lobby_asset/common/common/event/kyd_style_5_jl_5.png",bgSize:510,btnSize:198,pointerHeight:207.3,pointerWidth:128.2,tipsCardWidth:555,tipsCardHeight:290.5}},que={0:{width:118.2,height:230,width_m:131.1,height_m:255},4:{width:322.5,height:230,width_m:357.6,height_m:255},6:{width:228.7,height:230,width_m:253.6,height_m:255},8:{width:179.9,height:230,width_m:199.4,height_m:255},10:{width:143.9,height:230,width_m:159.5,height_m:255},12:{width:118.2,height:230,width_m:131.1,height_m:255}};var i$=(e=>(e[e.Rule=1]="Rule",e[e.Announce=2]="Announce",e[e.Record=3]="Record",e))(i$||{});const LT=ke("popPersist",()=>{const e=O({}),t=O({}),n=O({}),o=O({}),a=O({}),r=O({}),s=O({}),i=O({}),c=O({}),l=O({}),u=O({}),d=O({}),m=O({}),g=O({}),f=O({}),_=O({}),h=O({}),p=O({}),y=O({}),b=O({}),v=O({}),A=O({}),L=O({}),T=O({}),S=O({}),I=O({}),R=O({}),D=O({}),M=O({}),B=O({}),E=O({}),Y=O({}),H=O({}),F=K=>({cutOnce:e,newCutOnce:o,slashOnce:s,taskNewBenefits:l,taskDaily:l,taskWeekly:l,taskMystery:l,taskSeries:m,canReceive:_,firstCharge:y,eventSign:A,creditLoan:S,findUs:D,mallExchange:E,blindBoxLottery:H})[K],Q=K=>({cutOnce:t,newCutOnce:a,slashOnce:i,taskNewBenefits:u,taskDaily:u,taskWeekly:u,taskMystery:u,taskSeries:g,canReceive:h,firstCharge:b,eventSign:L,creditLoan:I,findUs:M})[K],G=K=>({cutOnce:n,newCutOnce:r,slashOnce:c,taskNewBenefits:d,taskDaily:d,taskWeekly:d,taskMystery:d,taskSeries:f,canReceive:p,firstCharge:v,eventSign:T,creditLoan:R,findUs:B,mallExchange:Y})[K];return{allUserOpeningCutOnceRecord:e,cutOnceAllUserCheckTodayReminderMapper:t,cutOnceAllUserCheckNeverReminderMapper:n,allUserOpeningNewCutOnceRecord:o,newCutOnceAllUserCheckTodayReminderMapper:a,newCutOnceAllUserCheckNeverReminderMap
19per:r,allUserOpeningSlashOnceRecord:s,slashOnceAllUserCheckTodayReminderMapper:i,slashOnceAllUserCheckNeverReminderMapper:c,allUserOpeningTaskModalRecord:l,fourTaskAllUserCheckTodayReminderMapper:u,fourTaskAllUserCheckNeverReminderMapper:d,allUserOpeningtaskSeriesRecord:m,taskSeriesAllUserCheckTodayReminderMapper:g,taskSeriesAllUserCheckNeverReminderMapper:f,allUserOpeningCanReceiveRecord:_,canReceiveAllUserCheckTodayReminderMapper:h,canReceiveAllUserCheckNeverReminderMapper:p,allUserOpeningFirstChargeConstantRecord:y,firstChargeAllUserCheckTodayReminderMapper:b,firstChargeAllUserCheckNeverReminderMapper:v,allUserOpeningSignConstantRecord:A,signAllUserCheckTodayReminderMapper:L,signAllUserCheckNeverReminderMapper:T,allUserOpeningFindUsRecord:D,findUsAllUserCheckTodayReminderMapper:M,findUsAllUserCheckNeverReminderMapper:B,allUserMallExchangeRecord:E,mallExchangeAllUserCheckNeverReminderMapper:Y,allUserOpeningBlindBoxLotteryRecord:H,popPersistUserRecords:F,popPersistUserCheckToday:Q,popPersistUserCheckNever:G,getUserOpeningRecord:(K,q)=>{var ne,U,W,oe;const ae=String(((ne=J().userInfos)==null?void 0:ne.username)||"unlogin"),me=F(K),de=q?(W=(U=me.value)==null?void 0:U[ae])==null?void 0:W[q]:(oe=me.value)==null?void 0:oe[ae];return{isOpenedToday:Ye().date()===Number(de),isOpenedEver:!!de}},setUserOpeningRecord:(K,q)=>{var ne,U;const ae=String(((ne=J().userInfos)==null?void 0:ne.username)||"unlogin"),me=F(K);let de=(U=me.value)==null?void 0:U[ae];q?de?de[q]=Ye().date():de={[q]:Ye().date()}:de=Ye().date(),me.value={...me.value,[ae]:de}},clearUserActivityOpeningRecords:K=>{if(!K)return;const q=String(K);delete e.value[q],delete o.value[q],delete s.value[q],delete l.value[q],delete m.value[q],delete _.value[q],delete y.value[q],delete A.value[q],delete H.value[q]},getUserChecked:(K,q,ae)=>{var U,W,oe,be;const me=String(((U=J().userInfos)==null?void 0:U.username)||"unlogin"),de=q==="today"?Q(K):G(K);return ae?(oe=(W=de==null?void 0:de.value)==null?void 0:W[me])==null?void 0:oe[ae]:(be=de==null?void 0:de.value)==null?void 0:be[me]},setUserChecked:(K,q,ae,me)=>{var W;const de=String(((W=J().userInfos)==null?void 0:W.username)||"unlogin"),ne=q==="today"?Q(K):G(K);let U=ne.value[de];me?U?U[me]=ae:U={[me]:ae}:U=ae,ne.value={...ne.value,[de]:U}}}},{persist:{paths:["allUserOpeningCutOnceRecord","cutOnceAllUserCheckTodayReminderMapper","cutOnceAllUserCheckNeverReminderMapper","allUserOpeningNewCutOnceRecord","newCutOnceAllUserCheckTodayReminderMapper","newCutOnceAllUserCheckNeverReminderMapper","allUserOpeningSlashOnceRecord","slashOnceAllUserCheckTodayReminderMapper","slashOnceAllUserCheckNeverReminderMapper","allUserOpeningTaskModalRecord","fourTaskAllUserCheckTodayReminderMapper","fourTaskAllUserCheckNeverReminderMapper","allUserOpeningtaskSeriesRecord","taskSeriesAllUserCheckTodayReminderMapper","taskSeriesAllUserCheckNeverReminderMapper","allUserOpeningCanReceiveRecord","canReceiveAllUserCheckTodayReminderMapper","canReceiveAllUserCheckNeverReminderMapper","allUserOpeningFirstChargeConstantRecord","firstChargeAllUserCheckTodayReminderMapper","firstChargeAllUserCheckNeverReminderMapper","allUserOpeningSignConstantRecord","signAllUserCheckTodayReminderMapper","signAllUserCheckNeverReminderMapper","allUserOpeningFindUsRecord","findUsAllUserCheckTodayReminderMapper","findUsAllUserCheckNeverReminderMapper","allUserMallExchangeRecord","mallExchangeAllUserCheckNeverReminderMapper","allUserOpeningBlindBoxLotteryRecord"]}}),c$=Object.freeze(Object.defineProperty({__proto__:null,usePopPersistStore:LT},Symbol.toStringTag,{value:"Module"})),TT=(e,t,n,o,a)=>{var l,u;if(!n)return!1;const s=LT().getUserOpeningRecord(e,a),i=Pe({[Uo.onceDay]:()=>!s.isOpenedToday,[Uo.onceForever]:()=>!s.isOpenedEver,[Uo.constantly]:()=>!0,[Uo.never]:()=>!1,[Uo.waitingComplete]:()=>!0,[Uo.waitingReceive]:()=>!0,[Uo.everyLogining]:()=>t},o),c=J().hasLogined?n.afterLoginPopType:n.beforeLoginPopType;return(u=(l=i[c])==null?void 0:l.call(i))!=null?u:!1},l$=Object.freeze(Object.defineProperty({__proto__:null,judgePopOpenByConfig:TT},Symbol.toStringTag,{value:"Module"})),u$=({data:e,recordKey:t,isLoginTrigger:n,checkEventList:o=!1})=>{var d,m;const a=J(),{eventsList:r}=$b();let s=(d=a.userInfos)==null?void 0:d.member_level;s==null&&(s=1);const i=Ye().unix(),c=e==null?void 0:e.filter(g=>{const f=ay(g.operation),_=pT(g.register_days_limit),h=fT(g.vipLevel),p=o?r==null?void 0:r.find(v=>v.activeId===+g.id):!0,y=g==null?void 0:g.activeData,b=t?!!y&&TT(t,!!n,y):!0;return!((g==null?void 0:g.endShowTime)>0&&i>=(g==null?void 0:g.endShowTime))&&f&&h&&p&&_&&b}),l=c==null?void 0:c.find(g=>{var _;const f=((_=g==null?void 0:g.userLevel)==null?void 0:_.split(","))||[];return(g==null?void 0:g.userLevel)===""||f.length===0||f.includes("0")?!0:f.includes(String(s))});l&&(l.username=String((m=a==null?void 0:a.userInfos)==null?void 0:m.platfromid),l.lang=Ge().language);const u=l;return u?Fn(u):void 0},zue=(e,t)=>
19{const{language:n}=Ge(),{userInfos:o}=J();if(t.username=o==null?void 0:o.platfromid,t.lang=n,(e==null?void 0:e.length)===0)return[t];const a=e==null?void 0:e.findIndex(s=>(s==null?void 0:s.id)===(t==null?void 0:t.id)&&(s==null?void 0:s.username)===(t==null?void 0:t.username)&&(s==null?void 0:s.lang)===(t==null?void 0:t.lang));if(a===-1)return[t,...e];const r=[...e];return r.splice(a,1),[t,...r]},jue=(e,t)=>{const{language:n}=Ge(),{userInfos:o}=J(),a=e==null?void 0:e.find(r=>t===(r==null?void 0:r.id)&&(o==null?void 0:o.platfromid)===(r==null?void 0:r.username)&&(r==null?void 0:r.lang)===n);return a?Fn(a):void 0},Kue=(e,t)=>{const{userInfos:n}=J(),o=e==null?void 0:e.filter(a=>!(t===(a==null?void 0:a.id)&&(n==null?void 0:n.platfromid)===(a==null?void 0:a.username)));return o?Fn(o):void 0},Que=(e,t)=>{var s;const{siteInfos:n}=ue(),{getServerTime:o}=Tt(),a=o(),r=Ye(e*1e3).utcOffset((s=n==null?void 0:n.timeZone)!=null?s:"");switch(t){case Om.Day:return r.endOf("day").unix()<a;case Om.Week:return r.endOf("isoWeek").unix()<a;case Om.Month:return r.endOf("month").unix()<a;default:return!1}},RT=e=>{var f;const{t}=we(),n=oi(),o=O({}),a=O(!1),r=O(null),s=O((f=e==null?void 0:e.value)!=null?f:0),i=_=>{s.value=_},c=C(()=>{var h;const _=((h=o.value)==null?void 0:h.id)||s.value;return n.eventsListV2.find(p=>p.activeId===_)}),l=C(()=>{var I,R,D,M,B,E,Y,H;const{activeCfg:_,template:h,cycleType:p,id:y,activeData:b={},list:v}=o.value,{ruleType:A,rewardType:L,receiveType:T,rechargeEachOrder:S}=b;return{...o.value,id:y!=null?y:s.value,activeCfg:(R=_!=null?_:(I=c.value)==null?void 0:I.activeCfg)!=null?R:{statisticType:A,amountType:L,rewardType:T,rechargeEachOrder:S},template:h!=null?h:(D=c.value)==null?void 0:D.template,cycleType:p!=null?p:(B=(M=c.value)==null?void 0:M.activeCfg)==null?void 0:B.cycleType,list:(H=v!=null?v:_==null?void 0:_.list)!=null?H:(Y=(E=c.value)==null?void 0:E.activeCfg)==null?void 0:Y.list}}),u=async(_,h,p,y)=>{var A;a.value=!0,h||(h={error:{action:"silent"}});const[b,v]=await Ee(tz(_,{config:h,refreshReward:p}));if(r.value=b,b){a.value=!1,y?y(b):LR({message:((A=b.data)==null?void 0:A.msg)||t("lobby.error.networkError")}),console.error("event item detail fetch error:",b);return}return(!s.value||s.value===v.id)&&(o.value=v),a.value=!1,v};return{activeId:s,allEventActiveItem:c,eventItemData:l,isItemLoading:a,itemErr:r,setActiveId:i,getEventItemDetail:u,refreshEventItemDetail:async(_,h,p)=>(await z.setCacheExpired(PR),await u(_,h,p)),resetEventItemData:()=>{o.value={},s.value=0},setEventItemData:_=>{o.value=_}}},d$=300,m$=ke("firstCharge",()=>{const e=J(),t=O(null),n=O(),o=RT(),a=O(!1),r=O([]),s=async()=>{var f;if(await ga("g4"),Ro("g4","activePopRecharge")){i((f=n.value)!=null?f:[]);return}const[m,g]=await Ee(j5());m||i(g!=null?g:[])},i=m=>{var f,_;const g=u$({data:m});t.value=g!=null?g:null,o.setEventItemData(g?{...g,activeCfg:(f=g.activeCfg)!=null?f:{statisticType:g.ruleType,list:g.list},activeData:(_=g.activeData)!=null?_:{ruleType:g.ruleType,ruleList:[],orderDetails:[],receiveList:[],haveIntegral:0,receiveTimeType:0,currentAmount:0,rechargeEachOrder:iI.Default}}:{})},c=m=>{n.value=m,i(m)},l=m=>{var g;return m&&((g=e.userInfos)==null?void 0:g.platfromid)&&r.value.findIndex(f=>{var _;return(f==null?void 0:f.activeId)===m&&(f==null?void 0:f.platfromid)===((_=e.userInfos)==null?void 0:_.platfromid)})>-1};return{...o,firstChargeData:t,rechargeEventReceivedCache:r,setedWebsocket:a,setPopFirstChargeData:c,fetchPopFirstCharge:s,setRechargeReceivedCache:({activeId:m,template:g})=>{var _;const f=(_=e.userInfos)==null?void 0:_.platfromid;m&&g===at.Deposit&&f&&!l(m)&&(r.value.push({platfromid:f,activeId:m}),r.value.length>d$&&r.value.shift())},checkHasRechegeReceiveChache:l,setWebsocket:(m=!0)=>{a.value=m}}},{persist:{paths:["rechargeEventReceivedCache"]}}),kd=(e,t)=>z.request({url:"/api/message/list/all",method:"get",params:e},{crypto:{enable:dt.enable},omitKey:["platformType"],oss:{enable:!0},error:{action:"noMessage",actionExcludes:["networkError"]},cache:{useCache:"fresh",setCache:!0,time:5,expireOnloaded:!1,getCacheSync:t}}),Xue=e=>z.request({url:"/api/message/details",method:"POST",data:e}).then(t=>t.data),Zue=e=>z.request({url:"/api/message/read",method:"POST",data:e},{crypto:{enable:dt.enable}}),Jue=e=>z.request({url:"/api/message/readall",data:e,method:"POST"}),ede=e=>z.request({url:"/api/message/delall",method:"POST",data:e}),tde=e=>z.request({url:"/api/message/delete",method:"POST",data:e}),nde=e=>z.request({url:"/api/message/customDel",data:e,method:"POST"}),hf=ke("notice",()=>{const e=O([]),t=O([]),n=O([]),o=O(0),a=O(0),r=C(()=>`${Wg()}_${Vg()}`),s=C(()=>a.value+o.value),i=I=>{o.value=I},c=I=>{a.value=I},l=I=>
19{e.value=I},u=(I,R)=>{const D=I?String(I):"",M=R?String(R):"";return Number(D+M)||0},d=I=>{if(!I)return[];const R=Fn(I).map(D=>({...D,uniqueId:u(D.triggerId,D.id)}));return E1(R,["read_status",D=>-(D==null?void 0:D.create_time)])},m=(I,R)=>{I==null||I.forEach(D=>{D.forceType=R})},g=I=>{I&&(I.unreadNoticeCount!==void 0&&i(I.unreadNoticeCount||0),I.unreadAnnouncementCount!==void 0&&c(I.unreadAnnouncementCount||0),l(I.marqueeList||[]),m(I.announcementFrameMsgList,Rm.ANNOUNCEMENT),m(I.noticeFrameMsgList,Rm.NOTICE),m(I.publicityMsgList,Rm.PUBLICIZE))},{data:f,placeholderType:_,execute:h}=Mi((...I)=>kd({page:1,type:ou.INDEX_PAGE,xdevice:r.value},...I).catch(()=>{c(0)}),{onSuccess:I=>{g(I)},useSyncCache:!0}),p=I=>{var D;if(!I)return;const R={...(D=f.value)!=null?D:{},...I,marqueeList:I.marqueeList||[]};g(R),f.value=R},y=async()=>{const I=J();if(I.hasLogined)return h();if(await ga("g4"),!(!I.hasLogined&&Ro("g4","messageListHome")))return h()},{placeholderType:b,execute:v}=Mi((...I)=>kd({page:1,type:ou.NOTICE,xdevice:r.value},...I).catch(()=>{i(0)}),{onSuccess:I=>{i((I==null?void 0:I.unreadNoticeCount)||0),t.value=d(I==null?void 0:I.noticeMsgList)},checkData:I=>!!(I!=null&&I.noticeMsgList&&(I==null?void 0:I.noticeMsgList.length)>0),useSyncCache:!0}),{placeholderType:A,execute:L}=Mi((...I)=>kd({page:1,type:ou.ANNOUNCEMENT,xdevice:r.value},...I),{onSuccess:I=>{c((I==null?void 0:I.unreadAnnouncementCount)||0),n.value=d(I==null?void 0:I.announcementMsgList)},checkData:I=>!!(I!=null&&I.announcementMsgList&&(I==null?void 0:I.announcementMsgList.length)>0),useSyncCache:!0}),{placeholderType:T,execute:S}=Mi((...I)=>kd({page:1,type:ou.MARQUEE,xdevice:r.value},...I),{onSuccess:I=>{l((I==null?void 0:I.marqueeList)||[])},checkData:I=>!!(I!=null&&I.marqueeList&&(I==null?void 0:I.marqueeList.length)>0),useSyncCache:!0});return{homeMarqueeType:_,getHomeList:y,messageRes:f,unreadNotice:o,unreadAnnouncement:a,unReadNum:s,setUnreadAnnouncement:c,setUnreadNotice:i,applyHomeMessageData:p,marqueeList:e,noticeList:t,announcementList:n,getNoticeList:v,getAnnouncementList:L,getMarqueeList:S,noticeType:b,announcementType:A,marqueeType:T,setMarqueeList:l}},{persist:{storage:localStorage,paths:["marqueeList","unreadNotice","unreadAnnouncement"]}}),g$=async e=>{const t=[];return J().hasLogined||(e.messageListHome!==void 0&&(hf().applyHomeMessageData(e.messageListHome),t.push("messageListHome")),e.messagePopupcfg!==void 0&&(N5(e.messagePopupcfg),t.push("messagePopupcfg"))),e.gohalStaffHome!==void 0&&(Ju().updateStaffall(e.gohalStaffHome),t.push("gohalStaffHome")),e.activeIsShowV2!==void 0&&(On().setEventsAuthData(e.activeIsShowV2),t.push("activeIsShowV2")),e.activePopRecharge!==void 0&&(m$().setPopFirstChargeData(e.activePopRecharge),t.push("activePopRecharge")),e.activeTasksBenefitReward!==void 0&&(ed().setBenefitBeforeLogin(e.activeTasksBenefitReward),t.push("activeTasksBenefitReward")),e.activeCategoryHome!==void 0&&(oi().setHomeActive(e.activeCategoryHome),t.push("activeCategoryHome")),t},OT=(e=[])=>e.map(t=>Object.fromEntries(Object.entries(t).map(([n,o])=>{const a=cU.allCurrency[n];return a?[a,o]:[]}).filter(Boolean)));var i_=(e=>(e[e.Start=0]="Start",e[e.Uncompleted=1]="Uncompleted",e[e.Achieved=2]="Achieved",e[e.Claimed=3]="Claimed",e))(i_||{});const f$=[wa.ALL,wa.HOME],p$=[Le.BOTTOM_LEFT_FLOATING,Le.BOTTOM_RIGHT_FLOATING],h$=[Le.HOME_TOP_BELOW,Le.BANNER_BELOW,Le.ANNOUNCEMENT_BELOW,Le.HOT_GAMES_ABOVE,Le.HOT_GAMES_BELOW,Le.THIRD_PARTY_GAMES_ABOVE,Le.THIRD_PARTY_GAMES_BELOW,Le.HOME_BOTTOM_ABOVE,Le.HOME_BOTTOM],_$=[Le.MINE_TOP,Le.MINE_MIDDLE,Le.MINE_PROFILE_BELOW,Le.MINE_BELOW],c_=[At.NEW_GIFT,At.RED_POCKET,At.DALIY_BONUS,At.NEW_CUT_ONE,At.LUCKY_BET,At.CUT_ONE,At.RESCUE,At.RETURNING_BONUS,At.RANKING,At.SHARE],b$=(e,t)=>{const n=[],o=[],a=[wa.HOME,wa.MINE],r=[...h$,..._$],s=i=>i==="0"||i.includes(t);return e.forEach(i=>{const c=i.showPage,l=i.currencyCode,u=i.showPosition;f$.includes(c)&&p$.includes(u)&&XV(l)&&i.infos.length>0&&o.push(i),a.includes(c)&&r.includes(u)&&s(l)&&i.infos.length>0&&n.push(i)}),{homeList:n,floatList:o}};var PT=(e=>(e.Unused="1",e.Used="2",e.Expired="3",e))(PT||{}),Vs=(e=>(e[e.Unused=0]="Unused",e[e.Using=1]="Using",e[e.Used=2]="Used",e[e.Expired=3]="Expired",e))(Vs||{}),y$=(e=>(e[e.Fixed=0]="Fixed",e[e.Proportion=1]="Proportion",e))(y$||{}),v$=(e=>(e[e.List=0]="List",e[e.HomePage=1]="HomePage",e))(v$||{}),su=(e=>(e.Expiring="expiring",e.Ws="ws",e))(su||{});const S$=async(e,t=!1)=>{var o;const n=await z.request({url:"/api/active/coupon/list",method:"POST",data:{...e}},{error:{action:t?"noMessage":"normal"},cache:{useCache:!1},oss:{enable:!1}});return(o=n==null?void 0:n.data)==null?void 0:o.data},C$=async()=>{var t;const e=await z.request({url:"/api/active/coupon/popList",method:"POST"},{cache:{useCache:!1},oss:{enable:!1}});return(t=e==null?void 0:e.data)==null?void 0:t.data},ode=async e=>{var n;const t=await z.request({url:"/api/active/coupon/check",method:"POST",data:{...e}},{error:{action:"silent"},cache:{useCache:!1},oss:{enable:!1}});return(n=t==null?void 0:t.data)==null?void 0:n.data},ade={[Vs.Unused]:{class:"unused",name:"lobby.coupon.statusUnused"},[Vs.Used]:{class:"used",name:"lobby.coupon.used"},[Vs.Expired]:{class:"expired",name:"lobby.coupon.expired"}},w$={couponStatus:q_.Show,disableSameReceive:"",condition:"",maxDiscount:"0",ipLimit:0,deviceLimit:0,browserLimit:0,receiveDeviceType:"",expireNotice:0,receivePopSwitch:Ng.OPEN,vipList:"",userLevels:"",style:0},up=e=>e!==Ng.CLOSE,dp="/lobby_asset/common/common/event/",I$=["img_zkq_bg1.png","img_zkq_bg2.png","img_zkq_bg3.png","img_zkq_bg4.png",{head:"img_zkq_bg5_1.png",tail:"img_zkq_bg5_2.png"},"img_zkq_bg6.png"],nS=e=>[`img_zkq_sx_bg1_${e}.png`,`img_zkq_sx_bg2_${e}.png`,`img_zkq_sx_bg3_${e}.png`,`img_zkq_sx_bg4_${e}.png`,{head:`img_zkq_sx_bg5_${e}_1.png`,tail:`img_zkq_sx_bg5_${e}_2.png`},`img_zkq_sx_bg6_${e}.png`],rde=e=>{const t=n=>n.map(o=>
19typeof o=="string"?{head:`${dp}${o}`}:{head:`${dp}${o.head}`,tail:`${dp}${o.tail}`});return{[Vs.Unused]:t(I$),[Vs.Used]:t(nS(e)),[Vs.Expired]:t(nS(e))}},Qb=ke("coupon",()=>{const e=O([]),t=O([]),n=O(),o=O(void 0),a=O(),r=O(!1),s=O(PT.Unused),i=On(),c=Ge(),l=O(0),u=O(),d=O(!1),m=O(!1),g=O(!1),f=O(!1);let _=null,h=null;const p=O(!1),y=O(su.Expiring),b=O(0),{t:v}=we(),A=new Map,L=O(0),T=C(()=>{var X,j,te;return{...w$,...(j=(X=i.eventsAuthData)==null?void 0:X.couponConfig)!=null?j:{},...(te=n.value)!=null?te:{}}}),S=C(()=>{var X;return((X=T.value)==null?void 0:X.style)||1}),I=X=>{p.value=X},R=X=>Oo(X,{showGroup:!0,toFixedType:"currency"}).toFixed({tailZero:!1}).toString(),D=()=>!J().hasLogined||!i.isShowDiscount||!i.isShowCoupon?Promise.resolve():_||(_=(async()=>{g.value=!0;const X={timeDay:uo.ALL,status:Vs.Unused,size:1e3},[j,te]=await Ee(S$(X,!0));if(j){g.value=!1;return}d.value=!0;const{list:K,couponConfig:q}=te;t.value=K||[],b.value=t.value.length,g.value=!1,Y(q),A.clear(),L.value++})().finally(()=>{_=null}),_),M=C(()=>{if(!l.value||!i.getRedDotStatus(co.COUPON))return 0;const X=R(Number(l.value));return c.isCN?`${v("lobby.mine.minus")}${X}`:X}),B=(X=!1)=>!J().hasLogined||!i.isShowDiscount||!i.isShowCoupon||X&&m.value?Promise.resolve():h||(h=(async()=>{var K,q,ae,me;f.value=!0;const[j,te]=await Ee(C$());if(j){f.value=!1;return}m.value=!0,l.value=Number(((K=te==null?void 0:te.coupon)==null?void 0:K.maxDiscount)||0),u.value=((q=te==null?void 0:te.coupon)==null?void 0:q.lastNotice)||{},e.value=((ae=te==null?void 0:te.coupon)==null?void 0:ae.list)||[],y.value=su.Expiring,b.value=Number(((me=te==null?void 0:te.coupon)==null?void 0:me.totalCnt)||0),f.value=!1})().finally(()=>{h=null}),h),E=X=>{o.value=X?{...X}:void 0},Y=X=>{n.value=X},H=C(()=>i.isShowCoupon),F=(X,j,te)=>{var ae;if(!X||!te)return;const K=`${X}-${j}-${te}-${L.value}`;if(A.get(K))return A.get(K);const q=[];return(ae=t.value)==null||ae.forEach(me=>{var Me,et;if(!me)return;const de=(Me=me.payType)==null?void 0:Me.split(","),ne=Number((me==null?void 0:me.discount)||0),[U,W]=((et=me.rechargeAmount)==null?void 0:et.split("-").map(se=>Number(se)))||[0,0],oe=W?Number(sa(U).minus(sa(U).times(ne).div(100).number).toString()):U-ne,be=W?Number(sa(W).minus(sa(W).times(ne).div(100).number).toString()):0;if(!(me.payType&&!(de!=null&&de.includes(String(X)))&&me.payType!=="[]"||te<oe||be&&be<j)){const se={...me,select:!1};q.push(se)}}),A.set(K,q),q},Q=async()=>{var X;if(!(!i.isShowDiscount||!H.value)&&(await D(),!!up(T.value.receivePopSwitch)&&(X=t.value)!=null&&X.length)){if(y.value=su.Ws,Ir().isGamePlaying){r.value=!0;return}bn().open("coupon")}},G=C(()=>e.value.length),N=X=>H.value?r.value?up(T.value.receivePopSwitch):X?G.value>0?!0:t.value.length>0&&up(T.value.receivePopSwitch)?(y.value=su.Ws,!0):!1:!1:!1,$=C(()=>{const X=ue().siteInfos;return Ke.alwaysUseCouponListBg0&&(X==null?void 0:X.backgroundColor)===1&&X.skinTypeValue===2?"/lobby_asset/common/common/event/img_zkq_none0.png":"/lobby_asset/common/common/event/img_zkq_none{bg}.png"});return{initial:d,tipClose:p,lastNotice:u,selectValues:a,emptyImageUrl:$,maxDiscountNum:l,couponBadgeForMine:M,style:S,couponUseSelection:o,popSource:y,popCouponListData:e,couponListDataLength:b,expiringCouponListDataLength:G,pendingAutoDistribute:r,tabsActive:s,couponSetting:n,isCouponEntryShow:H,couponListData:t,setTipClose:I,initDataList:D,freshPopData:B,processCoupons:F,handleAutoDistribute:Q,shouldPopOpen:N,setCouponSetting:Y,setUseSelection:E}}),A$=Object.freeze(Object.defineProperty({__proto__:null,useCouponStore:Qb},Symbol.toStringTag,{value:"Module"}));var it=(e=>(e[e.ALL=0]="ALL",e[e.FOLLOW=1]="FOLLOW",e[e.FAVORITE=2]="FAVORITE",e[e.LIKE=3]="LIKE",e[e.PUBLISHER=4]="PUBLISHER",e[e.SHARE=5]="SHARE",e[e.MINE=6]="MINE",e))(it||{}),Cu=(e=>(e[e.LIKE=0]="LIKE",e[e.FAVORITE=1]="FAVORITE",e))(Cu||{}),qc=(e=>(e[e.ALL=0]="ALL",e[e.PUBLISHER=1]="PUBLISHER",e))(qc||{}),L$=(e=>(e[e.BACKEND=0]="BACKEND",e))(L$||{}),T$=(e=>(e[e.IMAGE=1]="IMAGE",e[e.VIDEO=2]="VIDEO",e))(T$||{});const R$=e=>{const{hasLogined:t}=J();return t?z.request({url:"/api/message/publicityPlaza/all",data:e,method:"POST"}).then(n=>n.data):z.request({url:"/api/message/publicityPlaza/all",params:e,method:"GET"},{oss:{enable:!0}}).then(n=>n.data)},O$=e=>z.request({url:"/api/message/publicityPlaza/follow",data:e,method:"POST"}).then(t=>t.data),P$=e=>z.request({url:"/api/message/publicityPlaza/favorites",data:e,method:"POST"}).then(t=>t.data),D$=e=>z.request({url:"/api/message/publicityPlaza/like",data:e,method:"POST"}).then(t=>t.data),M$=e=>z.request({url:"/api/message/publicityPlaza/publisher",data:e,method:"POST"}).then(async t=>{var n,o,a,r,s;if(Array.isArray((o=(n=t.data)==null?void 0:n.data)==null?void 0:o.publisher.recentGameList)){const i=xa.parseArray((s=(r=(a=t.data)==null?void 0:a.data)==null?void 0:r.publisher.recentGameList)!=null?s:[],_t);await Mt.supplementPlatformInfo(i),t.data.data.publisher.recentGameList=i}return t.data}),N$=e=>z.request({url:"/api/message/publicityPlaza/listShare",data:e,method:"POST"}).then(t=>t.data),k$=e=>z.request({url:"/api/message/publicityPlaza/user/like",data:e,method:"POST"}).then(t=>t.data),B$=e=>z.request({url:"/api/message/publicityPlaza/user/cancelLike",data:e,method:"POST"}).then(t=>t.data),H$=e=>z.request({url:"/api/message/publicityPlaza/user/favorites",data:e,method:"POST"}).then(t=>t.data),x$=e=>z.request({url:"/api/message/publicityPlaza/user/cancelFavorites",data:e,method:"POST"}).then(t=>t.data),E$=e=>z.request({url:"/api/message/publicityPlaza/user/follow",data:e,method:"POST"}).then(t=>t.data),U$=e=>z.request({url:"/api/message/publicityPlaza/user/cancelFollow",data:e,method:"POST"}).then(t=>t.data),G$=e=>z.request({url:"/api/message/publicityPlaza/search",data:e,method:"POST"}).then(t=>t.data),F$=e=>z.request({url:"/api/message/publicityPlaza/read",data:e,method:"POST"}).then(t=>t.data),W$=()=>z.request({url:"/api/message/publicityPlaza/tip",method:"GET"},{oss:{enable:!0}}).then(e=>e.data),sde=e=>z.request({url:"/api/message/publicityPlaza/user/tip",data:e,method:"POST"}).then(t=>t.data),V$=()=>z.request({url:"/api/message/publicityPlaza/noTipping",method:"GET"}).then(e=>e.data),$$=e=>z.request({url:"/api/message/publicityPlaza/homePage",data:e,method:"POST"}).then(async t=>{var n,o,a,r,s;if(Array.isArray((o=(n=t.data)==null?void 0:n.data)==null?void 0:o.publisher.recentGameList)){const i=xa.parseArray((s=(r=(a=t.data)==null?void 0:a.data)==null?void 0:r.publisher.recentGameList)!=null?s:[],_t);await Mt.supplementPlatformInfo(i),t.data.data.publisher.recentGameList=i}return t.data}),Y$=()=>z.request({url:"/api/member/publicityPlaza/postingRestrictions",method:"GET"}).then(e=>e.data),ide=e=>z.request({url:"/api/message/publicityPlaza/user/postArticle",data:e,method:"POST"}).then(t=>t.data),cde=e=>z.upload({url:"/api/backstage/upload",data:e,timeout:0,headers:{"Upload-Business-Id":"publicityPlaza"}},{crypto:{enable:!1},merge:!1}).then(t=>t.data.data),_g=(e=!0)=>{const{openLoginRegister:t}=sn(),{isLogined:n,isTemporaryAccountMode:o}=J();return!n||o?(e&&t({login:!0}),!1):!0},q$=(e,t,n,o)=>{var a,r,s;return!!(Object.keys(t).find(i=>t[i].find(c=>c.followed&&c.publisherID===e))||(a=n.searchResultList)!=null&&a.find(i=>i.followed&&i.publisherID===e)||(r=o.value)!=null&&r.followed&&((s=o.value)==null?void 0:s.id)===e)},DT=(e,t,n,o,a)=>{var s;const r=Array.isArray(e)?e:[e];
19return Object.keys(n).forEach(i=>{n[i].forEach(c=>{r.includes(c.publisherID)&&(c.followed=t,c.realFollowersCount=Math.max(0,c.realFollowersCount+(t?1:-1)))})}),(s=o.searchResultList)==null||s.forEach(i=>{r.includes(i.publisherID)&&(i.followed=t,i.realFollowersCount=Math.max(0,i.realFollowersCount+(t?1:-1)))}),a.value&&r.includes(a.value.id)&&(a.value.followed=t,a.value.realFollowersCount=Math.max(0,a.value.realFollowersCount+(t?1:-1))),()=>DT(e,!t,n,o,a)},z$=async(e,t,n,o)=>{if(!_g())return;const a=Array.isArray(e),r=a?!1:q$(e,t,n,o);let s=e;!r&&!a&&(s=[e]);const i=DT(s,!r,t,n,o);await(r?U$:E$)({publisher:s}).then(l=>{if(!l.data)throw new Error}).catch(()=>i())},j$=async(e,t,n,o,a)=>{var r,s,i,c,l,u,d;if(o.trim()==="")return[];e.loading=!0;try{const m=await G$({content:o,publisher:a,page:t,size:10}).finally(()=>{e.loading=!1});return n?e.searchResultList=(s=(r=m.data)==null?void 0:r.data)!=null?s:[]:e.searchResultList=[...(i=e.searchResultList)!=null?i:[],...(l=(c=m.data)==null?void 0:c.data)!=null?l:[]],(d=(u=m.data)==null?void 0:u.data)!=null?d:[]}catch(m){return[]}},K$=(e,t,n=qc.ALL)=>{if(e.searchContent="",e.searchResultList=void 0,n===qc.ALL&&t){Oe().push({name:k.PLAZZA_SEARCH});return}e.isShowSearch=t,e.searchType=n,t===!1&&(e.searchType=qc.ALL)},Q$=async(e,t,n,o)=>{Object.keys(e).forEach(a=>{const r=e[a].find(s=>s.id===n);if(r){const s={tipId:t.id,tipIcon:t.icon,tipNumber:o};if(!Array.isArray(r.tipRecord)){r.tipRecord=[s];return}const i=r.tipRecord.find(c=>c.tipIcon===t.icon);i?i.tipNumber+=o:r.tipRecord.push(s)}})},MT=e=>{const t=on();e.forEach(n=>{if(n.isSupportSubPage){n.gameType=mn.NormalGame;const o=ra.parseGameItem(n);n.gameIcon=o}else{const o=t.getPlatformInfoByCategory(n.gameCategoryId,n.platformId),a=new _t().parsePlatformCategoriesItem(o),r=ra.parseGameItem(a);n.gameIcon=r}})},X$=async(e,t,n,o)=>{var r,s,i,c,l,u,d,m;const a=await M$({publisher:n});return t?e[it.PUBLISHER]=(s=(r=a.data)==null?void 0:r.data)!=null?s:[]:e[it.PUBLISHER]=[...e[it.PUBLISHER],...(c=(i=a.data)==null?void 0:i.data)!=null?c:[]],MT((u=(l=a.data)==null?void 0:l.publisher.recentGameList)!=null?u:[]),o.value=a.data.publisher,(m=(d=a.data)==null?void 0:d.data)!=null?m:[]},Z$=async(e,t,n,o)=>{var r,s,i,c,l,u,d,m;const a=await $$({page:n,size:10});return t?e[it.MINE]=(s=(r=a.data)==null?void 0:r.data)!=null?s:[]:e[it.MINE]=[...e[it.MINE],...(c=(i=a.data)==null?void 0:i.data)!=null?c:[]],MT((u=(l=a.data)==null?void 0:l.publisher.recentGameList)!=null?u:[]),o.value=a.data.publisher,(m=(d=a.data)==null?void 0:d.data)!=null?m:[]},J$=async({page:e=1,type:t,currentPublisherTabId:n})=>{const o={[it.ALL]:R$,[it.FOLLOW]:O$,[it.FAVORITE]:P$,[it.LIKE]:D$,[it.SHARE]:N$}[t],a=t===it.SHARE?{id:n}:{page:e,size:10};return(await o(a)).data},NT=(e,t)=>(e.forEach(n=>{t===Cu.LIKE?(n.liked=!n.liked,n.likes+=n.liked?1:-1):(n.favorite=!n.favorite,n.favorites+=n.favorite?1:-1)}),()=>NT(e,t)),e4=(e,t,n,o,a)=>{var l;if(!_g())return;Oe().route.name===k.PLAZZA_PUBLISHER&&(n=it.PUBLISHER);const r=[e[n].find(u=>u.id===a),(l=t.searchResultList)==null?void 0:l.find(u=>u.id===a)].filter(u=>u);if(r.length===0)return;const s=o===Cu.LIKE?r[0].liked:r[0].favorite,i=NT(r,o);({[Cu.LIKE]:s?B$:k$,[Cu.FAVORITE]:s?x$:H$})[o]({id:a}).then(u=>{if(!u.data)throw new Error}).catch(()=>{i()})},t4=(e,t,n)=>{const o=Oe(),{t:a}=we();Y$().then(r=>{r&&r.data&&(r!=null&&r.data.Status?!(e!=null&&e.nickname)&&!n?bn().open("plazzaSetUserInfo",{options:{isEdit:!1,openPostPage:!0}}):o.push({name:k.PLAZZA_POST}):nf({type:"warning",title:a("lobby.common.tips.title"),message:r.data.Msg,showCancelButton:!1,showConfirmButton:!1,showCloseButton:!0,className:t}))})},n4=Yo({afterGet:e=>sl.isCurrencyChanged()||sl.isLanguageChanged()?"":e,beforeSet:e=>{try{const{plazzaList:t}=JSON.parse(e);return Object.keys(t).forEach(n=>{t[n]=t[n].splice(0,10)}),JSON.stringify({plazzaList:t})}catch(t){return e}}},"local"),kT=ke("plazza",()=>{const{t:e}=we(),t=ue(),n=jg(),o=vt({[it.ALL]:[],[it.FOLLOW]:[],[it.FAVORITE]:[],[it.LIKE]:[],[it.PUBLISHER]:[],[it.MINE]:[]}),a=O(),r=O(),s=O([]),i=O(!1),c=O(),l=O(),u=O(!1),d=vt({searchResultList:void 0,searchContent:"",isShowSearch:!1,searchType:qc.ALL,loading:!1,searchTime:0}),m=O([]),g=C(()=>[{type:it.ALL,i18nTitle:()=>e("lobby.moments.btnAll")},{type:it.FOLLOW,i18nTitle:()=>e("lobby.moments.btnFollow")},{type:it.FAVORITE,i18nTitle:()=>e("lobby.moments.btnCollection")},{type:it.LIKE,i18nTitle:()=>e("lobby.moments.btnAcclaim")},{type:it.MINE,i18nTitle:()=>e("lobby.moments.minePage")},...m.value]),f=O(),_=C(()=>{var j,te,K,q,ae,me;const G=n.value.currency,N=(te=(j=t.systemInfos)==null?void 0:j.publicityCurrency)!=null?te:[],$=(q=(K=t.systemInfos)==null?void 0:K.publicityPlazaConfig)==null?void 0:q.dis
19play,X=(me=(ae=t.systemInfos)==null?void 0:ae.publicityPlazaConfig)==null?void 0:me.currency;return!$&&X===G?!1:N.includes(G)}),h=C(()=>{var N,$;return(($=(N=t.systemInfos)==null?void 0:N.publicityPlazaConfig)==null?void 0:$.name)||e("lobby.moments.title")}),p=C(()=>{var G,N;return!!((N=(G=t.systemInfos)==null?void 0:G.publicityPlazaConfig)!=null&&N.redDot)}),y=()=>{_g(!1)?V$().then(G=>{var N;u.value=!((N=G.data)!=null&&N.status)}):u.value=!0},b=(G,N=qc.ALL)=>K$(d,G,N),v=G=>{[it.FAVORITE,it.FOLLOW,it.LIKE,it.MINE].includes(G)&&!_g()||(a.value=G,[it.SHARE].includes(G)||m.value.map(N=>{N.type===it.SHARE&&L(N.id)}))},A=()=>{o[it.ALL]=[],o[it.FOLLOW]=[],o[it.FAVORITE]=[],o[it.LIKE]=[],o[it.PUBLISHER]=[],o[it.MINE]=[]},L=G=>{m.value=m.value.filter(N=>N.id!==G)},T=G=>{m.value.push({type:it.SHARE,i18nTitle:()=>e("lobby.moments.article"),id:G}),r.value=G,v(it.SHARE)},S=async(G=1,N=!0,$=a.value)=>{var te,K;const X=await J$({page:G,type:$,currentPublisherTabId:r.value}),j=(te=X==null?void 0:X.data)!=null?te:[];return o[$]=[...N?[]:o[$],...Array.isArray(j)?j:[j]],s.value=(K=X==null?void 0:X.publisher)!=null?K:[],i.value=(X==null?void 0:X.followed)||!1,j},I=async(G,N=!1)=>X$(o,N,G,l),R=async(G=1,N=!1)=>Z$(o,N,G,c),D=async G=>z$(G,o,d,l),M=async(G,N=1,$=!1,X)=>j$(d,N,$,G,X),B=(G,N)=>e4(o,d,a.value,G,N),E=G=>
19F$({ids:G}),Y=async()=>{const G=await W$();f.value=G.data.data},H=(G,N,$)=>Q$(o,G,$,N),F=C(()=>a.value===it.MINE);return{isShowPlazza:_,plazzaTitle:h,isShowDot:p,typeTabs:g,currentTab:a,recommendList:s,plazzaList:o,currentTabId:r,publisherDetail:l,minePageDetail:c,searchState:d,hasFollow:i,giftList:f,isMine:F,canTipping:u,setSearchShow:b,updateTab:v,getPromoteAdvertise:S,likeOrFavoritedItem:B,followItem:D,getPublisher:I,search:M,setShareTab:T,clearList:A,readItem:E,getGiftList:Y,getMineData:R,addGift:H,possiblePost:(G,N=!1)=>t4(c.value,G,N),initTippingStatus:y}},{persist:{paths:["plazzaList"],storage:n4}}),o4=e=>{const{a:t,b:n,c:o,d:a,e:r,f:s}=e;return{showMethod:t,closeable:n,carouselStyle:o,showName:a,shrunkStyle:r,staySeconds:s}},a4=e=>e&&((e==null?void 0:e.map(t=>{const{a:n="",b:o="",c:a="",d:r="",e:s="",f:i="",g:c,h:l=""}=t;return{text:n,changeColor:o,fontColor:a,borderColor:r,fontColor1:s,borderColor1:i,fontSize:c,backColor:l}}))||[]),r4=e=>{const{a:t,b:n,c:o,h:a,g:r,p:s,f:i,j:c,k:l,l:u,m:d,n:m,o:g,t:f,v:_,orb:h,ocd:p,cdt:y,ct:b,cp:v}=e;return{showBackGround:t,backGroundImage:n,borderColor:o,showName:a,imgDesc:a4(r),imgPosition:s,showDeviceType:i,showLevel:c,showVip:l,channelProxy:u,channelId:d,proxyAccount:m,registerDay:g,backGroundType:f,langVersion:_,openRedBadge:h,openCountdown:p,countdownTimer:y,cycleType:b,cyclePeriod:v}};var s4=Object.defineProperty,i4=Object.getOwnPropertyDescriptor,ko=(e,t,n,o)=>{for(var a=o>1?void 0:o?i4(t,n):t,r=e.length-1,s;r>=0;r--)(s=e[r])&&(a=(o?s(t,n,a):s(a))||a);return o&&a&&s4(t,n,a),a};let oo=class extends P.Model{constructor(t){super();x(this,"id","");x(this,"currencyCode","");x(this,"moduleId","");x(this,"enduring",jt.CLOSE);x(this,"startTime",0);x(this,"endTime",0);x(this,"jumpType",Vi.EXTER);x(this,"activeId",0);x(this,"jumpInfo");x(this,"imgSize",Ws.SMALL);x(this,"imgMatch",1);x(this,"img","");x(this,"extConfig");x(this,"actConfig","");this.merge(t)}};ko([P.from("a"),P.type(String),P.parse((e,t)=>`${t==null?void 0:t.a}`)],oo.prototype,"id",2);ko([P.from("b"),P.type(String)],oo.prototype,"currencyCode",2);ko([P.from("c"),P.type(String)],oo.prototype,"moduleId",2);ko([P.from("d"),P.type(Number)],oo.prototype,"enduring",2);ko([P.from("e"),P.type(Number)],oo.prototype,"startTime",2);ko([P.from("f"),P.type(Number)],oo.prototype,"endTime",2);ko([P.from("g"),P.type(Number)],oo.prototype,"jumpType",2);ko([P.from("h"),P.type(Number),P.nullable()],oo.prototype,"activeId",2);ko([P.from("i")],oo.prototype,"jumpInfo",2);ko([P.from("j"),P.type(Number)],oo.prototype,"imgSize",2);ko([P.from("k"),P.type(Number),P.nullable()],oo.prototype,"imgMatch",2);ko([P.from("l"),P.type(String),P.nullable()],oo.prototype,"img",2);ko([P.from("m"),P.parse(r4)],oo.prototype,"extConfig",2);ko([P.from("n"),P.type(String),P.nullable()],oo.prototype,"actConfig",2);oo=ko([P.Entity()],oo);var c4=Object.defineProperty,l4=Object.getOwnPropertyDescriptor,ps=(e,t,n,o)=>{for(var a=o>1?void 0:o?l4(t,n):t,r=e.length-1,s;r>=0;r--)(s=e[r])&&(a=(o?s(t,n,a):s(a))||a);return o&&a&&c4(t,n,a),a};let $a=class extends P.Model{constructor(t){super();x(this,"id","");x(this,"currencyCode","");x(this,"showPage",wa.HOME);x(this,"showPosition",Le.ANNOUNCEMENT_BELOW);x(this,"showStyle",1);x(this,"imgSize",Ws.SMALL);x(this,"extConfig");x(this,"infos",[]);this.merge(t)}};ps([P.from("a"),P.type(String),P.parse((e,t)=>`${t==null?void 0:t.a}`)],$a.prototype,"id",2);ps([P.from("b"),P.type(String)],$a.prototype,"currencyCode",2);ps([P.from("c"),P.type(Number)],$a.prototype,"showPage",2);ps([P.from("d"),P.type(Number)],$a.prototype,"showPosition",2);ps([P.from("e"),P.type(Number)],$a.prototype,"showStyle",2);ps([P.from("f"),P.type(Number)],$a.prototype,"imgSize",2);ps([P.from("g"),P.parse(o4)],$a.prototype,"extConfig",2);ps([P.from("h"),P.type(Array),hl(oo),P.nullable()],$a.prototype,"infos",2);$a=ps([P.Entity()],$a);const u4="/api/active/unreceiveAwardList",lde=async(e,t)=>{var o;const n=await z.request({url:u4,method:"POST",data:{...e}},{error:{action:"silent"},cache:{useCache:!1,getCacheSync:t,useCacheOnError:()=>!1},oss:{enable:!1}});return(o=n==null?void 0:n.data)==null?void 0:o.data},d4="/api/active/expireAwardList",ude=async(e,t)=>{var o;const n=await z.request({url:d4,method:"POST",data:{...e}},{error:{action:"silent"},cache:{useCache:!1,getCacheSync:t,useCacheOnError:()=>!1},oss:{enable:!1}});return(o=n==null?void 0:n.data)==null?void 0:o.data},dde=async e=>{var n;const t=await z.request({url:"/api/active/receiveManualSend",method:"POST",data:{...e}},{error:{action:"silent"},cache:{useCache:!1},token:{type:"loginOnly"},oss:{enable:!1}});return(n=t==null?void 0:t.data)==null?void 0:n.data},m4="/api/active/rejectManualSend",mde=async e=>{var n;const t=await z.request({url:m4,method:"POST",data:{...e}},{error:{action:"silent"},cache:{useCache:!1},token:{type:"loginOnly"},oss:{enable:!1}});return(n=t==null?void 0:t.data)==null?void 0:n.data},BT="/api/active/pop_canReceiveReward",g4=async()=>{var t;const e=await z.request({url:BT,method:"POST"},{cache:{useCache:"fresh",time:60},token:{type:"loginOnly"},oss:{enable:!1}});return(t=e==null?void 0:e.data)==null?void 0:t.data},gde=async e=>{var n;const t=await z.request({url:"/api/active/getReceiveLogsForMessage",method:"POST",data:{...e}},{error:{action:"silent"}});return(n=t==null?void 0:t.data)==null?void 0:n.data},fde=async e=>{const t=await z.request({url:"/api/active/doMatchBet",method:"POST",data:{...e}},{token:{type:"loginOnly"},cache:{useCache:!1},oss:{enable:!1},error:{action:"silent"}});return t==null?void 0:t.data.data},f4="/api/active/integralChangeHistory",pde=async e=>{const t=await z.request({url:"/api/active/integralChangeHistory",method:"POST",data:{...e}},{cache:{useCache:"fresh",...ai()},token:{type:"loginOnly"},oss:{enable:!1}});return t==null?void 0:t.data.data},HT="/api/active/matchBetRecordList",hde=async e=>{const t=await z.request({url:HT,method:"POST",data:{...e}},{cache:{useCache:"fresh",...ai()},token:{type:"loginOnly"},oss:{enable:!1}});return t==null?void 0:t.data.data},_de=e=>z.request({url:"/api/active/confirmMsgPop",method:"POST",data:e},{token:{type:"loginOnly"},cache:{useCache:!1},oss:{enable:!1},error:{action:"silent"}}),p4=ke("eventItem",()=>({...RT()})),xT=ke("eventGuessingSports",()=>
19{const e=p4(),{isItemLoading:t,itemErr:n}=St(e),o=Oe(),a=C(()=>e.eventItemData),r=C(()=>{var f;return(f=a.value)==null?void 0:f.activeData}),s=O([]),i=C(()=>s.value.filter(f=>f.isWsPush)),c=f=>{s.value=f},l=f=>{s.value.push(f)};return{isItemLoading:t,itemErr:n,guessingSportsData:a,activeData:r,guessIntegralPopList:s,wsPushPopList:i,setGuessIntegralPopList:c,pushGuessIntegralPop:l,removePopItem:f=>{const _=s.value.findIndex(h=>h.activeId===f.activeId&&h.msgConfirm===f.msgConfirm);_!==-1&&s.value.splice(_,1)},refreshCache:async()=>{await z.setCacheExpired(f4),await z.setCacheExpired(HT)},toChildPage:f=>{var _;if(!J().hasLogined){sn().openLoginRegister();return}o.push({name:f,query:{eventId:String(((_=a.value)==null?void 0:_.id)||"")}})},openGuessingPointsDialog:f=>{if(Ir().isGamePlaying||!On().isShowDiscount)return;l({...f,isWsPush:!0});const{visible:_,openDialog:h}=cn("guessingPoints");_.value||h("guessingPoints",{openType:"insert"})},refreshEventItemDetail:e.refreshEventItemDetail}}),bde=Object.freeze(Object.defineProperty({__proto__:null,useGuessingSportsStore:xT},Symbol.toStringTag,{value:"Module"})),h4=ke("canReceive",()=>{const e=Bn(),t=O(null),n=O(!1);let o=null;const a=O(null),r=O([]),s=O(!1),i=O(0),c=(g,f)=>{var T,S;const _=(T=On().receivePop)!=null?T:gI.OnlyPop,h=[],p=[],y=[],b=BW(),v=b.add(1,"day").startOf("day").diff(b,"second")-1;for(const I of g){const{status:R,receiveDuration:D,id:M,receiveDeviceType:B}=I;R!==xo.HasReceive&&(D<=0||D>0&&D<=v)&&!((S=r.value)!=null&&S.includes(M))?h.push({...I,receiveStatus:1,receiveDeviceType:B||"1,2,4,5,6",serverTime:b.unix()}):R!==xo.HasReceive&&D>0?p.push({...I,isShaking:!1}):R===xo.HasReceive&&y.push(I)}const A=(h==null?void 0:h.filter(I=>!I.canGo&&I.receiveDuration<=0))||[],L=(h==null?void 0:h.filter(I=>I.canGo||I.receiveDuration>0))||[];t.value={beforeLoginPopType:pI.never,afterLoginPopType:_,pendingRewardList:[...A,...L],collectTomorrowList:p,receivedTodayList:y,isReceivedEver:(g==null?void 0:g.length)===0,isServerDisabled:!(g!=null&&g.length),agentInviterReward:f}},l=async g=>{if(o)return o;n.value=!0;const f=Ee(g4()).then(async([_,h])=>{var y,b,v,A,L,T,S;if(a.value=_,n.value=!1,_)return;c((y=h==null?void 0:h.list)!=null?y:[],h==null?void 0:h.agentInviterReward),s.value=!0,g==null||g(h),xT().setGuessIntegralPopList((v=(b=h==null?void 0:h.guessIntegralPop)==null?void 0:b.list)!=null?v:[]);const p=await Yb();if(p!=null&&p.isSurpriseSwitchOpen){const I=(L=(A=h==null?void 0:h.surpriseReward)==null?void 0:A.setting)!=null?L:null;p==null||p.updateSetting(I);const R=(S=(T=h==null?void 0:h.surpriseReward)==null?void 0:T.rewardList)!=null?S:[];p==null||p.updateAll(R)}}).finally(()=>{o=null});return o=f,f},u=g=>{r.value=g},d=async()=>{e.name===k.CANRECEIVE?i.value++:e.name===k.GAME&&(await z.setCacheExpired([BT]),l())},m=C(()=>{const{pendingRewardList:g=[],collectTomorrowList:f=[]}=t.value||{};return[...g,...f]});return{isLoading:n,listErr:a,isLoadedCanReceive:s,receiveRewardPop:t,receiveRewardList:m,receivedList:r,canReceiveResetStatusIndex:i,getCanReceiveRewardPop:l,updateReceivedList:u,refreshRewards:d}}),nd=ke("marketing",()=>{const e=Oe(),t=Qb(),n=Ze(),o=kT(),a=Ku(),r=On(),s=ze(),i=h4(),c=af(),l=on(),u=J(),d=O([]),m=O([]),g=O([]),f=S=>{if(!ma()||!_.value)g.value=[];else{const{homeList:I,floatList:R}=b$(xa.parseArray(S,$a),s.currency);d.value=I,m.value=R}},_=C(()=>{var S;return((S=n.brandLogoInfos)==null?void 0:S.publicityOpen)===jt.OPEN}),h=C(()=>{var I,R,D,M,B;const S=(R=(I=i.receiveRewardPop)==null?void 0:I.agentInviterReward)==null?void 0:R.rewardStatus;return{[At.VIP]:r.isShowVip,[At.DISCOUNT_CODE]:r.showNewBenefits,[At.TASK]:r.isShowTask,[At.CASHBACK]:r.isShowCashback,[At.RECHARGE_FUND]:r.isShowRechargeFund,[At.YUEBAO]:r.isShowInterest,[At.CANRECEIVE]:r.isShowDiscount,[At.BLINDBOX]:r.isShowBlindBox,[At.PROMOTE]:a.isShowPromote,[At.RECHARGE]:!0,[At.ACTIVITY]:r.isShowEvents,[At.COUPONS]:t.isCouponEntryShow,[At.LOAN]:r.isShowCreditLoan,[At.LUCKY_SPIN]:r.isShowLuckyWheel,[At.SURPRISE]:r.isShowSurpriseReward,[At.SVIP]:r.isShowSVIP,[At.FEEDBACK]:!u.isGuestAccount,[At.MALL]:r.isShowMall,[At.MOMENTS]:o.isShowPlazza,[At.COOPERATIVE]:n.isClubSite&&((D=n.clubSetting)==null?void 0:D.isClubApplyOpen)===jt.OPEN,[At.CLAIM]:((B=(M=n.financeSetting)==null?void 0:M.claim)==null?void 0:B.cancelMargin)===gb.NotCanceled,[At.WITHDRAW]:!0,[At.PROMOTE_REMARD]:S&&[i_.Uncompleted,i_.Achieved].includes(S)}}),p={[wa.HOME]:new Set([Le.HOME_TOP_BELOW,Le.BANNER_BELOW,Le.ANNOUNCEMENT_BELOW,Le.HOT_GAMES_ABOVE,Le.HOT_GAMES_BELOW,Le.THIRD_PARTY_GAMES_ABOVE,Le.THIRD_PARTY_GAMES_BELOW,Le.HOME_BOTTOM_ABOVE,Le.HOME_BOTTOM]),[wa.MINE]:new Set([Le.MINE_MIDDLE,Le.MINE_TOP,Le.MINE_PROFILE_BELOW,Le.MINE_PROFILE_BELOW,Le.MINE_BELOW])},y=S=>{var I,R;return S.jumpType===Vi.SYSTEM?c_.includes((I=S.jumpInfo)==null?void 0:I.insideModuleId)?S.activeId:(R=S.jumpInfo)==null?void 0:R.insideModuleId:S.activeId},b=S=>{const I=Ye().unix();return S.reduce((D,M)=>{var $;if(M.enduring===jt.OPEN){if(I<M.startTime)return D}else if(M.startTime>
19I||M.endTime<I)return D;const{registerDay:B,showLevel:E,showVip:Y,channelProxy:H,proxyAccount:F,channelId:Q,showDeviceType:G}=M.extConfig,N=y(M);if(M.jumpType===Vi.SYSTEM&&!c_.includes(($=M.jumpInfo)==null?void 0:$.insideModuleId)&&(!Reflect.has(h.value,N)||!h.value[N]))return D;if(G!=="0"){const[X="",j=""]=(G==null?void 0:G.split("|"))||[];if(!c.filter({showDeviceType:X,showDeviceLoginType:j}))return D}return c.filter({registerDay:B,showLevel:E,showVip:Y,currencyCode:M==null?void 0:M.currencyCode,channelProxy:H,channelId:Q,proxyAccount:F})?[...D,M]:D},[])},v=C(()=>{const S={};return!ma()||!_.value||d.value.forEach(I=>{var D;if(I.showPage!==wa.ALL&&!((D=p[I.showPage])!=null&&D.has(I.showPosition))||l.shouldHideHotCategory&&(I.showPosition===Le.HOT_GAMES_ABOVE||I.showPosition===Le.HOT_GAMES_BELOW)||!c.filter({currencyCode:I==null?void 0:I.currencyCode}))return;const R=b(I.infos);R.length&&(S[I.showPosition]?S[I.showPosition].push({...I,infos:R}):S[I.showPosition]=[{...I,infos:R}])}),S}),A=(S,I)=>I===wa.ALL?!0:I===wa.MINE?S===k.MINE:I===wa.HOME?Ke.fastEntryHomePage.includes(S):!1,L=C(()=>{const S={};return!ma()||!_.value||m.value.forEach(I=>{var D;if(!A((D=e.route)==null?void 0:D.name,I.showPage)||!c.filter({currencyCode:I==null?void 0:I.currencyCode}))return;const R=b(I.infos);R.length&&(S[I.showPosition]?S[I.showPosition].push({...I,infos:R}):S[I.showPosition]=[{...I,infos:R}])}),S}),T=C(()=>Object.entries(v.value).reduce((S,[I,R])=>{const M=R.reduce((B,E)=>[...B,...E.infos],[]).every(B=>{const E=y(B);return B.jumpType===Vi.SYSTEM&&E&&h.value[E]});return{...S,[I]:M}},{}));return{getActiveId:y,publicityList:g,homePublicityList:d,floatPublicityList:m,setPublicityList:f,formatHomeList:v,formatFloatList:L,routeNameMap:p,formatInfoList:b,forceRenderModule:T}},{persist:{paths:["homePublicityList","floatPublicityList"]}}),_4=(e,t)=>{console.warn(`[static-aggregate][g7] ${e} è§£æå¤±è´¥ï¼ä¿çå½åæ°æ®`,t)},b4=e=>{const t=e.find(n=>n&&typeof n=="object");return!t||"currencyCode"in t?e:OT(e)},y4=e=>{var o;const t=ue(),n=Ze();return e.layoutDesign&&t.updateHomeLayoutInfos({...t.homeLayoutInfos,languageCode:Ge().language,...Lo(e.layoutDesign,["loginSlogan","hgAgeConfig","layoutIcons"]),commonConfig:Pe({},(o=t.homeLayoutInfos)==null?void 0:o.commonConfig,Lo(e.layoutDesign.commonConfig,["registerLoginImg"]))}),e.brandLogoUse&&n.setBrandLogoInfos(e.brandLogoUse),e.channelGlobalConfig&&n.setChannelGlobalConfig(e.channelGlobalConfig),t.setEngageLabWebPush(e.engageLabWebPush),e.engageLabWebPush},ET=async(e,t={})=>{var l,u,d;const n=(l=t.isLatest)!=null?l:pf("g7");if(!n())return[];const o=ue(),a=[];let r;e.appDownloadInfo!==void 0&&(zo().downloadAppConfig=e.appDownloadInfo,a.push("appDownloadInfo")),e.siteInfo!==void 0&&(t.siteInfoMode==="initial"||!o.siteInfos?o.updateSiteInfos(e.siteInfo):o.updateSiteInfos({...o.siteInfos,...Lo(e.siteInfo,["title","currencyInfos"])}),a.push("siteInfo")),e.allCurrency!==void 0&&(ze().updateAllCurrencyList(b4(e.allCurrency)),a.push("allCurrency")),e.optimizationSiteConfig!==void 0&&t.applyOptimization!==!1&&(r=y4(e.optimizationSiteConfig),a.push("optimizationSiteConfig"));const s=(u=Ze().brandLogoInfos)==null?void 0:u.publicityOpen,i=((d=o.systemInfos)==null?void 0:d.legalConfigDiscountSwitch)===eo.OPEN,c=t.applyPublicity!==!1&&!0&&s&&!i;if(e.publicityInfo!==void 0&&c&&(nd().setPublicityList(e.publicityInfo),a.push("publicityInfo")),r){const m=r;pa(()=>V(()=>Promise.resolve().then(()=>wW),void 0))().then(({registerWebPush:g})=>{n()&&(g==null||g(m))}).catch(g=>_4("engageLabWebPush",g))}return a},v4={g4:"language-and-currency",g5:"language",g6:"currency",g7:"language",g8:"language-and-currency"},S4=(e,t)=>{console.warn(`[static-aggregate][${e}] 请æ±å¤±è´¥ï¼ä¿çå½åæ°æ®`,t)},oS=e=>{var a,r;const t=(a=Ge().language)!=null?a:"",n=(r=ze().currency)!=null?r:"",o=v4[e];return o==="language"?t:o==="currency"?n:`${t}:${n}`},od=(e,t,n)=>{const o=pf(e),a=oS(e),r=()=>o()&&a===oS(e),s=(async()=>{try{const i=await t();if(!r())return;const c=await n(i,r);if(!r())return;UF(e,c)}catch(i){if(!r())return;S4(e,i)}})();return EF(e,s)},UT=()=>od("g4",_5,g$),C4=()=>od("g5",b5,A5),GT=()=>od("g6",y5,L5),w4=()=>
19od("g7",v5,(e,t)=>ET(e,{isLatest:t,siteInfoMode:"language",applyOptimization:!Ot.previewonly,applyPublicity:!Ot.previewonly})),FT=()=>od("g8",S5,(e,t)=>IT(e,{isLatest:t})),I4=async()=>{await Promise.all([UT(),C4(),GT()])},A4=async()=>{const e=async()=>{await al("g7"),(!Ge().isSiteDefaultLang||!rl().g7)&&await w4()},t=async()=>{await al("g8"),(!Ge().isSiteDefaultLang||!ze().isSiteDefaultCurrency||!rl().g8)&&await FT()};await Promise.all([e(),t()])},L4=async()=>{await Promise.all([UT(),GT(),FT()])};var WT=(e=>(e[e.NULL=1]="NULL",e[e.EXTERNAL_URL=2]="EXTERNAL_URL",e[e.EVENT=3]="EVENT",e[e.TASK=4]="TASK",e[e.RECHARGE=5]="RECHARGE",e[e.CASHBACK=6]="CASHBACK",e[e.PROMOTE=7]="PROMOTE",e[e.VIP=8]="VIP",e[e.CLUB=9]="CLUB",e[e.YUEBAO=10]="YUEBAO",e[e.FUND=11]="FUND",e[e.GAME=12]="GAME",e[e.BLINDBOX=13]="BLINDBOX",e[e.CLUBAPPLY=14]="CLUBAPPLY",e[e.CREDIT_LOAN=15]="CREDIT_LOAN",e[e.APP=18]="APP",e[e.ABOUT=19]="ABOUT",e[e.FORBIDDEN_SELF=20]="FORBIDDEN_SELF",e[e.SERVICE=21]="SERVICE",e[e.CENTER_WALLET=22]="CENTER_WALLET",e[e.CLAIM=23]="CLAIM",e[e.SECURITY=24]="SECURITY",e[e.WITHDRAW=25]="WITHDRAW",e[e.FINDUS=26]="FINDUS",e[e.PYQ=27]="PYQ",e[e.LOGIN=29]="LOGIN",e[e.REGISTER=30]="REGISTER",e[e.LUCKYWHEEL=16]="LUCKYWHEEL",e[e.SVIP=17]="SVIP",e[e.SSZX=28]="SSZX",e[e.RECHARGE_COUPONS=31]="RECHARGE_COUPONS",e[e.CANRECEIVE=32]="CANRECEIVE",e[e.RECEIVE_RECORD=33]="RECEIVE_RECORD",e[e.MALL=34]="MALL",e[e.REPORT=35]="REPORT",e[e.PROMOTE_LINK=36]="PROMOTE_LINK",e[e.PROMOTE_LINK_COPY=37]="PROMOTE_LINK_COPY",e[e.FEEDBACK_REWARDS=39]="FEEDBACK_REWARDS",e[e.GOSSIP=43]="GOSSIP",e[e.SHARE=44]="SHARE",e[e.WS_BROWSER_DOWNLOAD=48]="WS_BROWSER_DOWNLOAD",e))(WT||{}),T4=(e=>(e[e.Yes=1]="Yes",e[e.No=2]="No",e))(T4||{});const yde={6:k.CASHBACK,7:k.PROMOTE,8:k.VIP,10:k.INTEREST,11:k.RECHARGE_FUND,32:k.CANRECEIVE,33:k.RECORDS,35:k.REPORT},ds=ke("banner",()=>{const e=oi(),{eventsList:t}=St(e),{homeLayoutInfos:n}=St(ue()),o=O([]),a=(v=[])=>{o.value=v},r=O(),s=v=>{r.value=v},i=C(()=>{var v,A,L;return(L=(A=r.value)!=null?A:(v=n.value)==null?void 0:v.banner)!=null?L:kt.default}),c=C(()=>{const v=Ye().unix();return o.value.filter(({startTime:L,endTime:T})=>!L&&!T?!0:L&&!T?L<=v:!L&&T?T>=v:L&&T?L<=v&&T>=v:!1).map(L=>{if(L.location_type!==WT.EVENT)return L;const T=t.value.some(S=>Number(L.location_value)===(S==null?void 0:S.activeId));return{...L,disabled:!T}}).filter(L=>L.img_type===Zw.Default?!1:L.img_format===i.value)}),l=C(()=>{let v=[...c.value];return i.value===kt.min&&v.length<3?v.length===1?v.push(v[0],v[0]):v.length===2&&v.push(v[0]):i.value===kt.cascading&&(v.length===2?v=[v[1],v[0],v[1],v[0]]:v.length===3&&(v=[v[2],...v,v[0],v[1]])),v}),u=C(()=>l.value.length===1&&i.value===kt.cascading?kt.default:i.value),d=O(void 0),m=v=>{d.value=qs(v)},g=v=>{v&&qe.localStorage.setAny("lobby@lcp@banner",v,3600*24*7)},f=O(!1),_=v=>{f.value=v},h=O(!1),p=O([]);return{initialBanner:o,setInitialBanner:a,initialBannerData:c,finalBannerData:l,finalBannerMode:u,firstImgSrc:d,setFirstImgSrc:m,persistLcpBannerUrl:g,setBannerDataMode:s,bannerLoaded:f,setBannerLoaded:_,interceptOtherModules:async(v,A,L,T)=>{if(Et.noDelayHomePageResource()){A();return}let S;h.value?S=Promise.resolve():S=new Promise(R=>{p.value=[...p.value,R]});const I=typeof T=="function"?T():T?zn(T):Promise.resolve();await Promise.all([Promise.race([zn(v),S]),I]),L&&await zn(L),A()},releaseOtherModules:()=>{p.value.forEach(v=>{v==null||v()}),h.value=!0}}},{persist:[{paths:["firstImgSrc","bannerLoaded"]},{storage:Yo(),paths:["initialBanner"]}]}),aS=5,R4=3e3,rS="/inhousegame",sS=20,O4=e=>{if(e==null||e==="")return sS;const t=Number(e);return Number.isFinite(t)?t:sS};function P4(e,t,n){const o=[],a=[];for(const s of e){const{domain:i,currency:c,lineCode:l,isCny:u}=s;if(!(c===t||c===""&&(t!=="CNY"||u===1)))continue;const m={url:i,weight:s==null?void 0:s.weight,bonusWeight:s==null?void 0:s.bonusWeight};l===n?o.push(m):l===""&&a.push(m)}const r=o.length>0?o:a;return yc(r,"url")}const D4=e=>{if(!e||e.length===0)return null;const t=a=>{const r=Number(a.weight);return Number.isNaN(r)?0:r},n=e.reduce((a,r)=>a+t(r),0);if(n<=0)return e[Math.floor(Math.random()*e.length)];let o=Math.random()*n;for(const a of e){const r=t(a);if(r>0){if(o<r)return a;o-=r}}return e[e.length-1]},io=e=>{try{return new URL(e).origin}catch(t){return e}},iS=e=>{if(!e)return"";const t=e.replace(/\/+$/,"");return t.endsWith(rS)?t:`${t}${rS}`};async function M4(e,t){const n=typeof t=="number"?{deadlineMs:t}:t!=null?t:{},{deadlineMs:o,onResult:a,onLateUpdate:r}=n,s=new Map;return e.length?new Promise(i=>{let c=!1;const l=()=>{if(!c){c=!0;for(const m of e){const g=io(m);s.has(g)||s.set(g,An)}i(s)}},u=o?setTimeout(l,o):null;let d=e.length;e.forEach(m=>{const g=io(m);lk(m).then(f=>{const _=s.get(g);s.set(g,f.ping),a==null||a(m,f.ping),c&&_===An&&f.ping<An&&(r==null||r(g,_,f.ping))}).catch(()=>{s.set(g,An),a==null||a(m,An)}).finally(()=>{d-=1,d===0&&(u&&clearTimeout(u),l())})})}):s}const N4=(e,t)=>
19{if(!e||!t)return!1;try{return new URL(e).origin===new URL(t).origin}catch(n){return e===t}},cS=(e,t,n)=>(e!=null?e:[]).map(o=>{const a=Number(o.weight)||0,r=n?N4(o.url,n):!1,s=r?O4(o.bonusWeight):0,i=t.get(io(o.url)),c=!i||i<=0?An:i,l=(a+s)/c;return{domain:o,url:o.url,weight:a,bonus:s,isLastLogin:r,ping:c,score:l}}),VT=ke("gameDomain",()=>{const e=ze(),t=Ht(),n=Ze(),o=O([]),a=async()=>{try{if(o.value.length)return;const M=await Mt.apiGetSelfOpertedDomains();M&&M.length&&(console.log("[GAME] [ååæå] æ°æ®è·åæå",M),o.value=M)}catch(M){}},r=C(()=>{var H,F;const M=o.value;if(!M.length)return[];const B=(H=e.currency)!=null?H:"",E=(F=n.siteCode)!=null?F:"",Y=P4(M,B,E);return console.log("[GAME] [ååçé] æå¸ç§/ç«ç¹è¿æ»¤å",Y),Y}),s=C(()=>{var M,B;return(B=(M=o.value.find(E=>E.env))==null?void 0:M.env)!=null?B:""}),i=O([]),c=(M,B)=>{if(!M||!B)return;let E=[...i.value];E=E.filter(Y=>Y.username!==M),E.unshift({username:M,url:B,timestamp:Date.now()}),E.length>aS&&(E=E.slice(0,aS)),i.value=E,console.log("[GAME] [ååç¼å] å·²æ´æ°ç¨æ·æè¿ç»å½åå",E)},l=O(new Map),u=O(!1);let d=null,m=null,g=null;const f=O(new Set),_=C(()=>t.domainListMap.apiDomain),h=O(null),p=O(new Set),y=M=>{const B=io(M);!B||f.value.has(B)||(f.value=new Set(f.value).add(B),console.warn("[GAME] [ååæé»] æ¬æ¬¡ä¼è¯ä¸å使ç¨:",B))},b=M=>{const B=io(M);if(!B)return!1;const E=l.value.get(B);return!!(E!==void 0&&E>=An||f.value.has(B))},v=()=>r.value.every(B=>b(B.url)),A=M=>{var H;const B=_.value;if(!B.length)return"";const E=M?io(M):"",Y=B.filter(F=>!b(F)&&io(F)!==E);return iS((H=Y[0])!=null?H:"")},L=M=>{const B=_.value;return!B.length||M<=0?[]:B.filter(E=>!b(E)).slice(0,M).map(E=>iS(E))},T=(M,B)=>{var Q;if(!M.length)return[];const E=new Map;for(const G of r.value){const N=io(G.url),$=E.get(N);(!$||(Number(G.weight)||0)>(Number($.weight)||0))&&E.set(N,G)}const Y=new Map(l.value);f.value.forEach(G=>Y.set(G,An));const H=B?(Q=i.value.find(G=>G.username===B))==null?void 0:Q.url:void 0,F=M.map(G=>({...E.get(io(G)),url:G}));return cS(F,Y,H).filter(G=>G.ping<An).sort((G,N)=>N.score-G.score).map(G=>({url:G.url,ping:G.ping,score:G.score}))},S=M=>{if(!M)return!1;const B=io(M);return _.value.some(E=>io(E)===B)},I=()=>{if(u.value)return Promise.resolve();if(d)return d;const M=r.value;if(!M.length)return console.warn("[GAME] [ååæµé] ååå表为空, è·³è¿æµé (è°ç¨æ¹åºå
await fetchSelfOpertedDomains)"),Promise.resolve();let B=!1;return m=new Promise(E=>{g=Y=>{B||(B=!0,E(Y))}}),d=M4(M.map(E=>E.url),{deadlineMs:R4,onResult:(E,Y)=>{const H=io(E);l.value.set(H,Y),Y<An&&!f.value.has(H)&&(g==null||g(E))},onLateUpdate:(E,Y,H)=>{p.value=new Set(p.value).add(E),console.log(`[GAME] [ååæµé] æå°æ´æ° (deadline åçå® ping 忥è¦ç 9999): ${E} ${Y}ms â ${H}ms`)}}).then(E=>{l.value=E,u.value=!0,g==null||g(""),console.log("[GAME] [ååæµé] 宿",Array.from(E.entries()))}).catch(E=>{console.error("[GAME] [ååæµé] æµéæµç¨å¼å¸¸",E),g==null||g("")}).finally(()=>{d=null,g=null}),d},R=async M=>{if(!r.value.length||u.value)return D(M);const B=new Set(r.value.filter(Y=>!b(Y.url)).map(Y=>io(Y.url)));if(!B.size)return D(M);I();const E=await(m!=null?m:Promise.resolve(""));return E&&B.has(io(E))&&!b(E)?(console.log("[GAME] [ååçç¥] ç¹å»æ¶æµéæªå®æ, 使ç¨é¦ä¸ªæµéæååå",{ç¨æ·:M,éä¸åå:E,ping:l.value.get(io(E))}),h.value={mode:"race",selectedUrl:E,speedTestDone:!1},E):D(M)},D=M=>{var G,N,$,X,j,te,K;const B=r.value;if(!B.length){console.log("[GAME] [ååçç¥] å忏
å为空 â å°è¯saaså éååä¿åº (ä»ç©ºèµ°æ®éæµç¨)",{ç¨æ·:M});const q=A();return q?(h.value={mode:"saas-fallback",selectedUrl:q,speedTestDone:u.value},q):(h.value={mode:"empty",selectedUrl:"",speedTestDone:u.value},"")}const E=B.filter(q=>!b(q.url));if(!E.length){const q=u.value?"æµé宿忿ååé½å·²ç¥æ»":"æµéæªå®æ, 使æåå已被 markDead (è¿è¡æ¶æé»)";console.log(`[GAME] [ååçç¥] ${q} â å°è¯saaså éååä¿åº (ä»ç©ºèµ°æ®éè¿å
¥æµç¨)`,{ç¨æ·:M,ååæ»æ°:B.length});const ae=A();return ae?(h.value={mode:"saas-fallback",selectedUrl:ae,speedTestDone:u.value},ae):(h.value={mode:"empty",selectedUrl:"",speedTestDone:u.value},"")}const Y=(G=i.value.find(q=>q.username===M))==null?void 0:G.url;if(!u.value){const q=D4(E);return console.log("[GAME] [ååçç¥] æµéæªå®æ, èµ°æééæº selectByWeight",{ç¨æ·:M,å¯éåå:E.map(ae=>
19({url:ae.url,weight:Number(ae.weight)||0})),éä¸åå:(N=q==null?void 0:q.url)!=null?N:"â ï¸ æªéå°"}),h.value={mode:"weight",selectedUrl:($=q==null?void 0:q.url)!=null?$:"",speedTestDone:!1},(X=q==null?void 0:q.url)!=null?X:""}const H=new Map(l.value);f.value.forEach(q=>H.set(q,An));const F=cS(E,H,Y);let Q=F[0];for(const q of F)q.score>Q.score&&(Q=q);return console.log(`[GAME] [ååçç¥] æµé宿, èµ°å¾åå¼ç®æ³ ${Y?"(weight + bonusWeight å½ä¸å æ) / ping":"weight / ping æªå½ä¸ä¸æ¬¡ç»å½åå"}`,{ç¨æ·:M,䏿¬¡ç»å½åå:Y||"(æ )",åååå¾å:F.map(q=>({url:q.url,weight:q.weight,bonusWeight:q.bonus,å½ä¸ä¸æ¬¡ç»å½:q.isLastLogin,ping:q.ping,...p.value.has(io(q.url))?{late:!0}:{},score:Number(q.score.toFixed(6))})),éä¸åå:(j=Q==null?void 0:Q.url)!=null?j:"â ï¸ æªéå°"}),h.value={mode:"score",selectedUrl:(te=Q==null?void 0:Q.url)!=null?te:"",speedTestDone:!0,scores:F},(K=Q==null?void 0:Q.url)!=null?K:""};return{selfOpertedDomains:r,fetchSelfOpertedDomains:a,gameApiEnv:s,userGameDomains:i,updateCachedDomain:c,runDomainSpeedTest:I,isDomainSpeedTestDone:u,domainPingResults:l,getBestDomain:D,getBestDomainOnEnter:R,runtimeDeadDomains:f,markDomainDead:y,isDomainKnownDead:b,areAllGameDomainsKnownDead:v,saasAccDomains:_,getBestSaasAccDomain:A,isSaasAccelerationDomain:S,getRankedSaasAccDomains:L,getScoredBackupDomains:T,lastSelectionDetail:h}},{persist:[{paths:["userGameDomains"]}]}),vde=()=>St(VT()),k4=rt(()=>V(()=>import("./0_EntryLoginRegisterChunk.DMUz1wnE.js").then(e=>e.gN),__vite__mapDeps([0])),e=>e.useWithdrawSettingStore,"useWithdrawSettingStore");var $T=(e=>(e.CUSTOMIZE_TOP_ICON_MAP="customizeTopIconMap",e.CUSTOMIZE_MIDDLE_ICON_MAP="customizeMiddleIconMap",e.CUSTOMIZE_BOTTOM_ICON_MAP="customizeBottomIconMap",e))($T||{}),YT=(e=>(e.GAME_ICON_MAP="gameIconMap",e.GAME_ICON_SELECT_MAP="gameIconSelectMap",e))(YT||{}),qT=(e=>(e.OWNER_TOP_ICON_MAP="ownerTopIconMap",e.OWNER_MIDDLE_ICON_MAP="ownerMiddleIconMap",e.OWNER_BOTTOM_ICON_MAP="ownerBottomIconMap",e))(qT||{}),iu=(e=>(e[e.ONE=1]="ONE",e[e.TWO=2]="TWO",e[e.THREE=3]="THREE",e[e.FOUR=4]="FOUR",e[e.FIVE=5]="FIVE",e[e.SIX=6]="SIX",e[e.SEVEN=7]="SEVEN",e[e.EIGHT=8]="EIGHT",e[e.NINE=9]="NINE",e[e.TEN=10]="TEN",e[e.ELEVEN=11]="ELEVEN",e[e.TWELVE=12]="TWELVE",e[e.THIRTEEN=13]="THIRTEEN",e[e.FOURTEEN=14]="FOURTEEN",e[e.FIFTEEN=15]="FIFTEEN",e[e.SIXTEEN=16]="SIXTEEN",e[e.SEVENTEEN=17]="SEVENTEEN",e[e.EIGHTEEN=18]="EIGHTEEN",e[e.NINETEEN=19]="NINETEEN",e[e.TWENTY=20]="TWENTY",e))(iu||{});class B4{static setGlobalTextColor(){var m,g,f,_,h;const t=(m=ue())==null?void 0:m.homeLayoutInfos,n=((g=ue().siteInfos)==null?void 0:g.type)||0,o=p=>{if(!p||!/^#([A-Fa-f0-9]{3,4}){1,2}$/.test(p))return null;p=p.replace("#",""),(p.length===3||p.length===4)&&(p=p.split("").map(A=>A+A).join("")),p.length===8&&(p=p.substring(0,6));const y=parseInt(p.substring(0,2),16),b=parseInt(p.substring(2,4),16),v=parseInt(p.substring(4,6),16);return`${y}, ${b}, ${v}`},a=(p,y,b)=>{const v=o(b);p.setProperty(`--skin__${y}`,b),v&&p.setProperty(`--skin__${y}__toRgbString`,v)},r=[iu.TWO,iu.FOUR],s=C(()=>r.includes(n)?["alt_text_primary"]:["alt_primary"]),i=C(()=>r.includes(n)?["alt_primary","alt_lead"]:["alt_text_primary"]),c=C(()=>r.includes(n)?[]:["alt_lead"]),l=C(()=>r.includes(n)?n===iu.FOUR?["alt_neutral_2"]:[]:["alt_border"]),u=C(()=>n!==iu.FOUR?["alt_neutral_2"]:[]),d=C(()=>r.includes(n)?["alt_border"]:[]);try{if(!Ke.hasCustomizeSource||!t)return;const p=document.documentElement.style,y=(f=t==null?void 0:t.advanceSetting)==null?void 0:f.day,b=(_=y==null?void 0:y.backgroundSetting)!=null?_:{},v=(h=y==null?void 0:y.btnFontColorSetting)!=null?h:{},{bgColor:A,basePlateColor:L}=b,{importantButtonColor:T,generalButtonColor:S,otherColor:I}=v;A!=null&&A.length&&(a(p,"bg_1",A),a(p,"home_bg",A),a(p,"filter_bg",A),a(p,"bs_zc_an1",A),a(p,"web_left_bg_q",A),a(p,"web_left_bg_z",A)),L!=null&&L.length&&(a(p,"bg_2",L),a(p,"table_bg",L),a(p,"bs_zc_bg",L),a(p,"ddt_icon",L),a(p,"bs_topnav_bg",L),a(p,"web_plat_line",L),a(p,"web_bs_yj_bg",L),a(p,"web_btmnav_db",L));const R={[di.generalColor]:"",[di.generalCentreColor]:"",[di.importantColor]:"",[mi.ordinaryColor]:"",[mi.secondaryColor]:"",[mi.weakerColor]:"",[gi.leftUnColor]:"",[gi.leftOnColor]:"",[gi.bottomUnColor]:""};
19[...T!=null?T:[],...S!=null?S:[],...I!=null?I:[]].forEach(B=>{B!=null&&B.key&&(B!=null&&B.value)&&(R[B.key]=B.value)}),[[di.generalColor,["primary","search_icon","btmnav_active","icon_1","filter_active","jdd_vip_bjc","profile_icon_1","profile_icon_2","profile_icon_3","profile_icon_4","web_topbg_1","web_topbg_3","btn_color_1","btn_color_2",...s.value]],[di.generalCentreColor,["text_primary","web_filter_gou",...i.value]],[di.importantColor,["lead",...c.value]],[mi.ordinaryColor,["neutral_1","alt_neutral_1","cards_text",...l.value]],[mi.secondaryColor,["neutral_2","neutral_3",...u.value]],[mi.weakerColor,["border","kb_bg","ddt_bg","web_bs_zc_an2",...d.value]],[gi.leftUnColor,["leftnav_def","icon_tg_q","icon_tg_z"]],[gi.leftOnColor,["leftnav_active"]],[gi.bottomUnColor,["btmnav_def"]]].forEach(([B,E])=>{const Y=R[B];Y&&E.forEach(H=>a(p,H,Y))})}catch(p){console.error(p)}}}const H4=(e={},t)=>z.request({url:"/api/lobby/publicityInfo/list",method:"GET",params:{...e.previewonly?{previewonly:5}:{}}},Pe(t,{token:{type:"staticOnly"},omitKey:e.previewonly?["language","platformType","currency"]:["currency","platformType"],oss:{enable:!0,force:!0},cache:{useCache:!0,expireOnloaded:!1},crypto:{enable:!1},error:{action:"noMessage"}})),x4=async()=>{var a,r,s;const e=nd(),t=Ze(),n=ue();if(!((a=t.brandLogoInfos)!=null&&a.publicityOpen)||((r=n.systemInfos)==null?void 0:r.legalConfigDiscountSwitch)===eo.OPEN)return;const o=await H4();(s=o==null?void 0:o.data)!=null&&s.data&&e.setPublicityList(o.data.data)},E4=async()=>{const{updateSkinAssetsHash:e}=Tt(),{holidayThemeType:t}=St(nn());typeof t.value!="undefined"&&document.documentElement.setAttribute("data-holiday-theme",`${t.value}`),Fa.schedule(async()=>{var o,a;const n=await UV();(o=n.data)!=null&&o.data&&e((a=n.data)==null?void 0:a.data)},{priority:"low",label:$o.SkinAssetsHash}),Fa.schedule(()=>qe.cleanExpired(),{priority:"low",label:$o.CacheCleanExpired})},zT=async(e=[],t=!1)=>{const n=t&&ms("apiGetSystemStatus"),a=(async()=>{var p,y,b;const{osType:s}=Tt(),{setSystemInfos:i,systemInfos:c}=ue(),{setSocialMediaList:l,setVipSwitchStatus:u,setYuebaoGetSetting:d,setFinanceSetting:m,setPureAgentConfig:g,setClubSetting:f}=Ze(),{setInitialBanner:_}=ds(),h=n?Pt("apiGetSystemStatus").data:(y=(p=await ub({osType:s}))==null?void 0:p.data)==null?void 0:y.data;h&&(h.messageBannerIndex&&_(h.messageBannerIndex||[]),h.promoteGetSocialmedia&&l(h.promoteGetSocialmedia||[]),h.userVipConfig&&u(h.userVipConfig),h.yuebaoGetSetting&&d(h.yuebaoGetSetting),h.homeGetSysInfo&&i(GV(h.homeGetSysInfo,c)),(b=h==null?void 0:h.homeGetSysInfo)!=null&&b.betTaskDisplayToggle&&k4().then(v=>{var A;v.setBetTaskDisplayToggle((A=h==null?void 0:h.homeGetSysInfo)==null?void 0:A.betTaskDisplayToggle)}),h.financeSetting&&m(h.financeSetting),h.pureAgentConfig&&g(h.pureAgentConfig),h.clubSetting&&f(h.clubSetting))})().catch(()=>{});for(const s of xV)s(a).catch(()=>{});const r=async()=>{await Promise.all(e),Ro("g7","publicityInfo")||t&&ms("ossGetPublicityInfoList")||await x4()};await Promise.all([a,r(),...e]).finally(()=>{ve("CLIENT_CONFIG_INITIALIZATION_COMPETED").emit()})},U4=async()=>{await hf().getHomeList()},G4=async()=>{await ga("g4"),Ro("g4","gohalStaffHome")||await Ju().updateStaffall()},F4=async()=>new Promise(e=>{try{const{useMockMaintainIframe:t}=IA();ve("SITE_MAINTAIN").emit({useMockMaintainIframe:t,check403:!0,onCallback:()=>{e("")}})}catch(t){e("")}}),W4=async()=>{E4();const e=A4();zT([e],!0),I4();const t=U4().catch(o=>{console.warn("[static-aggregate][g4] é¦é¡µæ¶æ¯å
åºå¤±è´¥",o)});G4().catch(o=>{console.warn("[static-aggregate][g4] é¦é¡µå®¢æå
åºå¤±è´¥",o)}),await F4();const n=VT();n.fetchSelfOpertedDomains(),B4.setGlobalTextColor(),Fa.schedule(async()=>{if(await t,Tt().areaStatus){const o=bn();o.isDelayDone=!0,o.startAutoDialog()}},{priority:"low",label:$o.AutoDialogLaunch}),Fa.schedule(async()=>{await n.fetchSelfOpertedDomains(),n.runDomainSpeedTest()},{priority:"low",label:$o.GameDomainSpeedTest}),Fa.schedule(()=>hA().init(),{priority:"low",label:$o.ApiVersionInit})};function V4(e){var o;const t=tt(e),n={false:"default",true:"jsFirst",jsonFirst:"jsonFirst",localStorageFirst:"localStorageFirst"};return(o=n[t])!=null?o:n.localStorageFirst}var hi=(e=>(e.JsFirst="jsFirst",e.JsonFirst="jsonFirst",e.LocalStorageFirst="localStorageFirst",e.Default="default",e))(hi||{});const l_={i18nStrategy:()=>V4("mock.simpleI18n"),jsonTag:()=>
19tt("mock.simpleI18nJsonTag")},u_=e=>Number.isFinite(e)&&e>0?Math.floor(e/1e3):0,jT=e=>({language:e,packTime:u_(1791251963889)}),$4=e=>({url:Vm,params:jT(e)}),lS={crypto:{enable:!1},error:{action:"silent",checkResCode:!0},omitKey:["currency","platformType"],cache:{useCache:!0,dependencies:[],expireOnloaded:!1},token:{type:"staticOnly"},oss:{enable:!0,compression:"gzip"}},Y4=(e,t=!0)=>z.request($4(e),t?lS:Pe({},lS,{cache:{useCache:!1}})),q4=()=>{const{urlParams:e}=en(),{uuid:t}=jn();return{promoter_info:e==null?void 0:e.id,channel_info:e==null?void 0:e.cid,accessUrl:new URL(location.href).origin,visitor_device:t}},z4=()=>rE(),j4=()=>({osType:fl()}),K4=()=>jT(Ge().language+(l_.jsonTag()||"")),Q4=()=>({subDomain:location.hostname}),X4=()=>lb(),Z4={"/api/agent/promote/binding/reportViewV2":q4,"/api/statistics/domain/pointer":z4,"/api/finance/maxChargeRate":j4,[Vm]:K4,"/api/domain/lobby/domainMatch":Q4,"/api/netstat/point/get/static":X4},J4={"/api/agent/promote/binding/reportViewV2":()=>!J().hasLogined,"/api/statistics/domain/pointer":qA,"/api/netstat/point/get/static":()=>!!lb()},eY=()=>{var n;if(!da)return!1;const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e);const t=e.scrollHeight===1;return(n=e.parentNode)==null||n.removeChild(e),t},tY=async(e=!1)=>{const{health:t,response:n}=Pt("apiGetAllCurrency"),{updateAllCurrencyList:o}=ze();let a=[];e&&t?a=OT(n==null?void 0:n.data.data):a=await tx(),o(a)},nY=()=>{ze().initValidCurrency()},uS=(()=>{var t;const e=(t=vl(`wg.domain.bind.${location.host}.lang.`)[0])==null?void 0:t.packageName;return e==null?void 0:e.replace(/.*\./,"")})(),_i=(e,t)=>!e||!t?!1:kg.includes(e)&&!!t.languageInfos.find(n=>n.languageCode===e),oY=()=>{var a,r;const{siteInfos:e}=ue(),t=(e==null?void 0:e.languageInfos)||[],n=(a=t.find(s=>s.defaultLanguageTag))==null?void 0:a.languageCode;if(_i(n,e))return n;const o=(r=t.find(s=>kg.includes(s.languageCode)))==null?void 0:r.languageCode;return o!=null?o:"en"},aY=()=>{var n;if(typeof navigator=="undefined")return;const e=navigator.language;if(Ol[e])return Ol[e];const t=e.split("-")[0];return Ol[t]?Ol[t]:(n=Object.entries(Ol).find(([o])=>new RegExp(`^${o}(-[A-Z]+)?$`,"i").test(e)))==null?void 0:n[1]},rY=()=>{var d,m;const e=ue(),t=Ge(),n=en(),{siteInfos:o}=e,a=(d=To())==null?void 0:d.languageCode,r=n.channelCachedLang,s=(m=n.urlParam
19s)==null?void 0:m.cid,i=t.userSelectedLanguage,c=n.urlParams.languageCode,u=(()=>{if(_i(a,o))return a;if(s){if(_i(r,o))return r;if(_i(c,o))return c}if(_i(i,o))return i;if(_i(uS,o)&&!(s&&c))return uS;if((o==null?void 0:o.languageMatchMode)===qw.SmartMatching){const g=aY();if(_i(g,o))return g}return oY()})();t.setCurrentLanguage(u,!0,!1)},sY=e=>{const t=async()=>{var c;const{updateSiteCurrencyList:i}=ze();i((c=ue().siteInfos)==null?void 0:c.currencyInfos),await en().getLinkConfiguration(),en().directAccess(),nY(),rY(),ve("INIT_CURRENCY_SUCCESS").emit()},n=(i,c)=>{var d;ml(i,c,!0);const l={...(d=e.query)!=null?d:{},...i},u=Ra("/",l);e.query=l,e.fullPath=u},o=({cid:i})=>{nl("UPDATE_AFF_ID").send({cid:i},{merge:!1,fireAndForget:!0}),gr(Mn.EVENT_UPDATE_URL_PARAMS).send({cid:i},{merge:!1,fireAndForget:!0})},a=async()=>{const i=Er.cid||Er.qd,c=Er.restore,l=Er.affSource;if(console.log("[restoreUrlParams]:",i,c,l,Er),!!(re.package.isLite||re.isWebClip)&&!(re.isWebClip&&(i||!c))&&!(re.package.isLite&&l!=="clipboard"&&i)&&!(en().restoreTimes>0)){console.log("[restoreUrlParams]: request ");try{const u=await sg().getIPBindInfo(!0),d=u==null?void 0:u.regPkgId;console.log("[restoreUrlParams]-> getIpBindInfo:",u,en().urlParams),d&&!Du.includes(d)&&(n({cid:d,qd:void 0},["qd"]),o({cid:d}))}catch(u){}finally{en().restoreTimes=1}}},r=async()=>{const{isP2a:i}=Qe(),c=Er.languageCode,l=en().channelCachedLang||Ge().userSelectedLanguage;i&&!W_&&c&&l&&n({languageCode:l})};return(async()=>{r(),await a(),en().parseLink(),await t()})()};function iY(e,t=2e3+Math.random()*2e3){try{const n="detached-script-"+Math.random().toString(36).slice(2),o=document.createElement("script");o.id=n,o.textContent=`try { 20 (new Function(${JSON.stringify(e)}))(); 21} catch (e) { 22 console.warn('Detached code execution failed:', e); 23}`;const a=()=>{requestAnimationFrame(()=>{o.remove()})},r=()=>{document.body.appendChild(o),a()};setTimeout(()=>{Promise.resolve().then(()=>{if("requestIdleCallback"in window)requestIdleCallback(()=>{const i=new MessageChannel;i.port1.onmessage=r,i.port2.postMessage(null)});else{const i=new MessageChannel;i.port1.onmessage=r,i.port2.postMessage(null)}})},t)}catch(n){console.warn("Detached execution failed",n)}}const cY=()=>{iY(` 24 (function(_0x158fbf,_0xcc3d65){const _0x4dee9d=_0x3af1,_0x386676=_0x158fbf();while(!![]){try{const _0x32d70c=parseInt(_0x4dee9d(0xca))/0x1*(parseInt(_0x4dee9d(0xc0))/0x2)+-parseInt(_0x4dee9d(0xb6))/0x3*(-parseInt(_0x4dee9d(0xaf))/0x4)+parseInt(_0x4dee9d(0xd1))/0x5+-parseInt(_0x4dee9d(0xc4))/0x6*(-parseInt(_0x4dee9d(0xc8))/0x7)+parseInt(_0x4dee9d(0xbf))/0x8+-parseInt(_0x4dee9d(0xd4))/0x9+-parseInt(_0x4dee9d(0xbe))/0xa*(parseInt(_0x4dee9d(0xad))/0xb);if(_0x32d70c===_0xcc3d65)break;else _0x386676['push'](_0x386676['shift']());}catch(_0x1e67f7){_0x386676['push'](_0x386676['shift']());}}}(_0x5c86,0xc179a));;((()=>{const _0x465796=_0x3af1,_0x271960={'iframe':![],'pc':![],'qqBrowser':![],'firefox':![],'macos':![],'edge':![],'oldEdge':![],'ie':![],'iosChrome':![],'iosEdge':![],'chrome':![],'seoBot':![],'mobile':![]};function _0x5d251c(){const _0x58c551=_0x3af1,_0x1fcedb=navigator[_0x58c551(0xbd)][_0x58c551(0xc6)](),_0x2e5b1f=_0x4f7843=>_0x1fcedb[_0x58c551(0xd7)](_0x4f7843),_0x4e9f7d=_0x423104(),_0x4987cc=!!window[_0x58c551(0xb0)]&&window!==window[_0x58c551(0xb0)],_0x38b2db=!_0x4e9f7d,_0x520593=_0x2e5b1f('qqbrowser'),_0x496b7c=_0x2e5b1f(_0x58c551(0xa9)),_0x267774=_0x2e5b1f('macintosh'),_0x5d63ab=_0x2e5b1f(_0x58c551(0xc5)),_0x3d2dfa=_0x5d63ab&&!_0x2e5b1f(_0x58c551(0xba)),_0x361a8f=_0x3d2dfa||_0x2e5b1f(_0x58c551(0xd3))||_0x2e5b1f(_0x58c551(0xcb)),_0x4ed314=_0x2e5b1f(_0x58c551(0xcf)),_0x1f16f1=_0x2e5b1f(_0x58c551(0xb9)),_0x1edcc3=_0x2e5b1f('chrome')||_0x4ed314,_0x1133b1=!_0x4e9f7d&&/(googlebot|baiduspider|bingbot|applebot|petalbot|yandexbot|bytespider|chrome-lighthouse|moto g power)/i[_0x58c551(0xcd)](_0x1fcedb);Object[_0x58c551(0xaa)](_0x271960,{'iframe':_0x4987cc,'pc':_0x38b2db,'qqBrowser':_0x520593,'firefox':_0x496b7c,'macos':_0x267774,'edge':_0x5d63ab,'oldEdge':_0x3d2dfa,'ie':_0x361a8f,'iosChrome':_0x4ed314,'iosEdge':_0x1f16f1,'chrome':_0x1edcc3,'seoBot':_0x1133b1,'mobile':_0x4e9f7d});}function _0x59959b(){const _0x422f5c=_0x3af1;return/(iphone|ipad|ipod|ios|android)/i['test'](navigator[_0x422f5c(0xbd)][_0x422f5c(0xc6)]());}function _0x423104(){const _0x4c6e8c=_0x3af1,{platform:_0x4d6365,maxTouchPoints:_0x3a53c5}=navigator;if(typeof _0x3a53c5==='number')return _0x3a53c5>0x1;if(typeof _0x4d6365===_0x4c6e8c(0xbc)){const _0x22ef4f=_0x4d6365[_0x4c6e8c(0xc6)]();if(/(mac|win)/i[_0x4c6e8c(0xcd)](_0x22ef4f))return![];else{if(/(android|iphone|ipad|ipod|arch)/i['test'](_0x22ef4f))return!![];}}return _0x59959b();}function _0x13923a(){const _0x325649=_0x3af1;return typeof window[_0x325649(0xab)]!=='undefined'&&window[_0x325649(0xab)]||typeof window!=='undefined'&&window[_0x325649(0xd0)]||console;}class _0x397e5c{constructor(_0x40fc87={}){const _0x12cb7c=_0x3af1;this[_0x12cb7c(0xb1)]={'preventDevTools':_0x40fc87[_0x12cb7c(0xc3)]??![],'mode':_0x40fc87[_0x12cb7c(0xbb)]??'crash','onDetect':typeof _0x40fc87[_0x12cb7c(0xcc)]===_0x12cb7c(0xb4)?_0x40fc87[_0x12cb7c(0xcc)]:()=>{}},this['triggered']=![],this[_0x12cb7c(0xa8)]=null,this[_0x12cb7c(0xce)]();}[_0x465796(0xce)](){const _0x55e28a=_0x465796;_0x5d251c();if(_0x271960[_0x55e28a(0xc9)])return;this[_0x55e28a(0xb1)][_0x55e28a(0xc3)]&&this[_0x55e28a(0xb5)]();}['startDevToolsDetection'](){const _0x21ec36=_0x465796,_0x13b672=[this[_0x2
241ec36(0xd5)]()];this[_0x21ec36(0xa8)]=setInterval(()=>{const _0x1edcc5=_0x21ec36;_0x13b672[_0x1edcc5(0xb7)](_0x28b237=>{const _0xec100d=_0x1edcc5;_0x28b237[_0xec100d(0xc2)]()&&_0x28b237['detect']();});},0x3e8);}['triggerDetection'](){const _0xe0a5ac=_0x465796;if(this['triggered'])return;this['triggered']=!![];this[_0xe0a5ac(0xa8)]&&clearInterval(this[_0xe0a5ac(0xa8)]);const _0x380bff={'reload':()=>location['reload'](),'crash':()=>{const _0x44b2d3=_0xe0a5ac;for(let _0x34ca1f=0x0;_0x34ca1f<Number[_0x44b2d3(0xae)];_0x34ca1f++){window[_0x44b2d3(0xb2)+_0x34ca1f]=new Array(0x2**0x1b-0x1)[_0x44b2d3(0xac)](0x0);}},'custom':()=>this[_0xe0a5ac(0xb1)][_0xe0a5ac(0xcc)]()};_0x380bff[this[_0xe0a5ac(0xb1)][_0xe0a5ac(0xbb)]]();}[_0x465796(0xb3)](){this['intervalId']&&clearInterval(this['intervalId']);}[_0x465796(0xd5)](){const _0x3be745=_0x465796,_0x224367=()=>{const _0x301740={};for(let _0x2c31cc=0x0;_0x2c31cc<0x1f4;_0x2c31cc++){_0x301740[_0x2c31cc]=String(_0x2c31cc);}return _0x301740;},_0x574949=()=>{const _0x35c112=_0x3af1,_0x3bc279=_0x224367();return Array[_0x35c112(0xc1)]({'length':0x32},()=>_0x3bc279);},_0x1500f2=_0x313b5f=>{const _0x4b95bb=performance['now']();return _0x313b5f(),performance['now']()-_0x4b95bb;},_0x391b2d=_0x574949();let _0x19c0e7=0x0,_0x42a8e4=0x0;const _0x151277=()=>{const _0x911dd9=_0x3af1,_0x33388b=_0x1500f2(()=>_0x13923a()[_0x911dd9(0xd6)](_0x391b2d)),_0x349bf1=_0x1500f2(()=>_0x13923a()[_0x911dd9(0xb8)](_0x391b2d));_0x19c0e7=Math['max'](_0x19c0e7,_0x349bf1),_0x13923a()['clear']();if(_0x33388b===0x0||_0x19c0e7===0x0)return;_0x33388b>_0x19c0e7*0xa&&(_0x42a8e4>=0x2?this[_0x911dd9(0xd2)]():_0x42a8e4++);};return{'enable':()=>_0x271960[_0x3be745(0xba)]||!_0x271960[_0x3be745(0xc7)],'detect':_0x151277};}}new _0x397e5c({'preventDevTools':!![]});})());function _0x3af1(_0x1ef9ed,_0x2e61f1){_0x1ef9ed=_0x1ef9ed-0xa8;const _0x5c8664=_0x5c86();let _0x3af1c4=_0x5c8664[_0x1ef9ed];return _0x3af1c4;}function _0x5c86(){const _0x1889c5=['8358NqAyJd','edge','toLowerCase','mobile','3171sdepkI','seoBot','112BqJQLc','msie','onDetect','test','init','crios','console','4589430WtENnf','triggerDetection','trident','12991572NBiqLY','performanceDetector','table','includes','intervalId','firefox','assign','__ORIGINAL_CONSOLE__','fill','11SzpScF','MAX_VALUE','574292KuzGsj','top','options','__cg_x_','destroy','function','startDevToolsDetection','9lioSOv','forEach','log','edgios','chrome','mode','string','userAgent','14137190NqkAUu','9915416hCXVKq','7690ARLVEA','from','enable','preventDevTools'];_0x5c86=function(){return _0x1889c5;};return _0x5c86();}`)},lY=e=>{var i;const t=new URLSearchParams(window.location.search),n=Et.preventDevtools(),o=n==="force",a=n==="false",r=[1,"1"].includes(e.antiDebugStatus),s=["true","eruda","vconsole"].includes((i=t.get("fixed.abcdefg_open"))!=null?i:"")||a;(o||!s&&(r||n==="true"))&&cY()},uY=e=>{let t=null,n;return{getErrorType:()=>null,stop:()=>{n&&(clearTimeout(n),n=null,t==null||t())},start:()=>new Promise((o,a)=>{t=a,n=setTimeout(()=>{t==null||t("Timeout")},e*1e3)})}},dY=(e,t)=>{let n=!1,o=0,a=Number(t);a=Math.round(Number.isNaN(a)||a<0?0:a);const r=l=>()=>new Function("url",` 25 var urlObj = new URL(url); 26 urlObj.searchParams.set('_t', Date.now()); 27 return import(urlObj.toString()); 28 `)(l),s=l=>{var u;try{const d=new URL(((u=l==null?void 0:l.message.match(/(http.+)/))==null?void 0:u[1])||"").href;if(!d)throw new Error("Not Found");return d}catch(d){throw new Error(`Dynamic Import URL: ${d}`)}},i=async()=>{if(o){const l=Date.now()-o,u=300;l<u&&await zn(u-l)}o=Date.now()},c=async l=>{try{let u=null,d="";try{u=await l()}catch(m){await i(),d=s(m)}if(d){if(a>0&&--a<=0)throw new Error("Already Max Try");return n?null:c(r(d))}return u}catch(u){throw new Error(`Load: ${u}`)}};return{getErrorType:()=>null,stop:()=>{n=!0},start:()=>(i(),c(e))}},mY=async(e,t)=>{try{const n=await Promise.race([t.start(),e.start()]);if(!n)throw new Error("Load Failed");return n}catch(n){throw e.stop(),t.stop(),new Error(`ChunkLoadError: Import ${n}`)}},Sde=(e,t)=>()=>mY(dY(e,t==null?void 0:t.maxTry),uY(10)),gY=e=>{if(typeof e!="string"||!/^<svg[\s>]/i.test(e.trim()))return;const t=document.createElement("div");t.innerHTML=e.trim();const n=t.firstElementChild;if(!n)return;const o=document.body.querySelector("svg");o&&!o.getAttribute("xmlns")&&o.setAttribute("xmlns","http://www.w3.org/2000/svg"),o?Array.from(n.children).forEac
28h(a=>{o.appendChild(a)}):(Object.assign(n.style,{position:"absolute",width:"0",height:"0"}),document.body.insertBefore(n,document.body.firstChild))},fY=20,pY=e=>typeof e=="number"&&Number.isInteger(e)&&e>=0,hY=e=>{if(!e||typeof e!="object"||Array.isArray(e))return!1;const t=Object.values(e);return t.every(pY)?t.reduce((n,o)=>n+o,0)>fY:!1},_Y=(e,t)=>e.health&&Array.isArray(e.data)&&e.data.length>0&&Array.isArray(t.response)&&t.response.length===0,bY=e=>{const{health:t,data:n}=Pt("ossGetVirtualBonusPoolData");if(!e()||!ze().isSiteDefaultCurrency||!t||n===void 0)return;const o=df(n);o&&ff().setVirtualBonusPoolRender(o)},yY=()=>{const{health:e,data:t}=Pt("apiGetSystemStatus"),{initialBanner:n,setInitialBanner:o}=ds();!ze().isSiteDefaultCurrency||n.length||!e||t!=null&&t.messageBannerIndex&&o(t.messageBannerIndex)},vY=()=>{const{health:e,data:t}=Pt("apiGetMessageAll"),{marqueeList:n,setMarqueeList:o}=hf();!ze().isSiteDefaultCurrency||n.length||!e||t!=null&&t.marqueeList&&o(t.marqueeList)},SY=async(e,t)=>{var c;const{health:n,data:o}=Pt("ossGetWinnerCarouselData"),{winnerData:a,setWinnerData:r}=ef();if(!(ze().isSiteDefaultCurrency&&!((c=a.hallRecords)!=null&&c.length))||!n||o===void 0)return!1;const i=await Mt.parseWinnerGamesList(o);return!e()||ze().currency!==t?!1:(await r(i),!0)},CY=()=>{const e=ze(),t=e.currency,n=pf("g6");bY(n);const o=SY(n,t).then(a=>a&&n()&&e.currency===t&&e.isSiteDefaultCurrency).catch(a=>(console.warn("[static-aggregate][g6] HTML 注水解æå¤±è´¥ï¼çå¾
æ´å
å
åº",a),!1));dg("g6",o)},wY=()=>{const{health:e,data:t}=Pt("ossGetSkinHomeSvgSprite");e&&t&&gY(t)},IY=()=>{const e=Pt("apiGetAppDownloadInfo"),t=Pt("apiGetSiteInfo"),n=Pt("ossGetPublicityInfoList"),o=Pt("apiGetOptimizationSiteConfigV2"),a=Pt("apiGetAllCurrency"),r={};e.health&&e.data!==void 0&&(r.appDownloadInfo=e.data),t.health&&t.data!==void 0&&(r.siteInfo=t.data),o.health&&o.data!==void 0&&(r.optimizationSiteConfig=o.data),n.health&&n.data!==void 0&&(r.publicityInfo=n.data),a.health&&a.data!==void 0&&(r.allCurrency=a.data);const s=o.health&&r.optimizationSiteConfig!==void 0,i=Object.keys(r).length?ET(r,{siteInfoMode:"initial",applyOptimization:!Ot.previewonly,applyPublicity:!Ot.previewonly}).then(()=>s).catch(c=>(console.warn("[static-aggregate][g7] HTML 注水解æå¤±è´¥ï¼çå¾
æ´å
å
åº",c),!1)):Promise.resolve(!1);dg("g7",i)},AY=()=>{if(!ze().isSiteDefaultCurrency){dg("g8",Promise.resolve(!1));return}const e=Pt("apiGetGameCateExtLinkList"),t=Pt("apiGetHotGameList"),n=Pt("apiGetSpecialGameList"),o=Pt("apiGetSpecialGameListTotal"),a=Pt("apiGetGameSubGameSummary"),r=Pt("ossGetLiveGame"),s=Pt("ossGetAllLiveVideoList"),i={};e.health&&e.data!==void 0&&(i.platformCateExtLink=e.data),t.health&&t.data!==void 0&&(i.hotGameList=t.data),n.health&&n.data!==void 0&&(i.specialGameList=n.data),a.health&&a.data!==void 0&&(i.listSubGameSummary=a.data),r.health&&r.data!==void 0&&(i.liveGame=r.data),Array.isArray(s.response)&&(i.liveVideo=s.response);const c=o.health&&hY(o.data),l=_Y(r,s),u=e.health&&e.data!==void 0&&!c&&!l,d=Object.keys(i).length?IT(i,{clearLanguageDependentText:!Ge().isSiteDefaultLang}).then(()=>u).catch(m=>(console.warn("[static-aggregate][g8] HTML 注水解æå¤±è´¥ï¼çå¾
æ´å
å
åº",m),!1)):Promise.resolve(!1);dg("g8",d)},LY=()=>{wY(),IY(),AY(),yY(),CY(),vY()},TY=async()=>{},KT={addKYC:e=>{ip(e)([{name:k.KYC,path:"/home/kyc",component:()=>V(()=>import("./KYCIndex.DYyqKE0S.js"),__vite__mapDeps([0,1,3,4,5,19,20])),meta:{depIndex:1}}])},addLoginRegister:e=>{const t=ue(),n=o=>{var c;const a=o.hasLogined,r=o.isTemporaryAccountMode,i=(Number((c=t.systemInfos)==null?void 0:c.maxMultiAccountCount)||0)>=xh.Min;return a&&r||a&&i?!1:o.hasLogined};ip(e)([{name:k.LOGIN,path:ag.pathname.login,component:()=>V(()=>import("./LoginRegisterIndex.DmGJtP1N.js"),__vite__mapDeps([0,1,3,21])),meta:{depIndex:1,disabled:n}},{name:k.REGISTER,path:ag.pathname.register,component:()=>V(()=>import("./LoginRegisterIndex.DmGJtP1N.js"),__vite__mapDeps([0,1,3,21])),meta:{depIndex:1,disabled:n}}])},addLoginRegisterUpgradeGuide:e=>{ip(e)([{path:"/home/login-register-upgrade-guide",name:k.LOGIN_REGIST
28ER_UPGRADE_GUIDE,component:()=>V(()=>import("./LoginRegisterUpgradeGuideIndex.CN1Mtsew.js"),__vite__mapDeps([0,1,3,22])),meta:{depIndex:2}}])},addDevtools:e=>{}},RY=[{name:"clubHome"},{name:"clubManagement"},{name:"clubPromote"},{name:"clubContact"},{name:"clubMine"}],OY=async(e=!1)=>{var r,s,i,c;let t=null;const{response:n}=Pt("apiGetOptimizationSiteConfigV2"),o=(r=n==null?void 0:n.data)==null?void 0:r.data;if(Ot.previewonly)return t=(i=(s=(await Oh({previewonly:!0})).data)==null?void 0:s.data)==null?void 0:i.layoutDesign,mp(t,o);if(e&&ms("apiGetOptimizationSiteConfigV2"))return t=Pe({},o==null?void 0:o.layoutDesign,{languageCode:vn.languageCode}),mp(t,o);const a=(c=(await Oh({previewonly:!1})).data)==null?void 0:c.data;return t=a==null?void 0:a.layoutDesign,mp(t,a)},PY=()=>{var n;const e=(n=ue().siteConfig)==null?void 0:n.type,t=gL[e];return t==null?void 0:t.forceDisplayMode},DY=e=>{if(!e)return;const{setBrandLogoInfos:t}=Ze();t(e.brandLogoUse)},mp=(e,t)=>{var n;if(DY(t),e){e.clubBottomLayouts=RY;const o=PY();o&&e.commonConfig&&(e.commonConfig.registerLoginDisplay=o),ue().updateHomeLayoutInfos(e),((n=e.commonConfig)==null?void 0:n.registerLoginDisplay)===Xe.Page&&KT.addLoginRegister()}},MY=async()=>{let e=null;if(!(vn!=null&&vn.CREATE_BY_STATIC))e=vn;else{const t=(await JH()).data.data;t&&(e=t)}if(e){const{updateSiteConfig:t}=ue();lY(e),t(e)}},NY=async(e,t=!1)=>{let n=null;const{response:o}=Pt("apiGetSiteInfo");if(t&&ms("apiGetSiteInfo")&&o)n=o.data.data;else{const a=(await ex()).data.data;a&&(n=a)}if(n){const a=document.documentElement,r=eY()?"1":"0";a.setAttribute("data-skin-layout",`${n.type}`),a.setAttribute("data-skin-id",`${n.skinTypeValue}`),a.style.setProperty("--skin__layout",`${n.type}`),a.setAttribute("data-skin-bg",`${n.backgroundColor}`),a.setAttribute("data-gap-supported",r);const{updateSiteInfos:s}=ue();s(n),sl.isThemeFormatChanged(),await sY(e)}},kY=async(e=!1)=>{var a,r;let t=null;const{health:n,response:o}=Pt("apiGetSystemStatus");if(e&&n&&o)t=(a=o==null?void 0:o.data.data)==null?void 0:a.homeGetSysInfo;else{const s=(r=(await ub({osType:4})).data.data)==null?void 0:r.homeGetSysInfo;s&&(t=s)}if(t){const{setSystemInfos:s}=ue();s(t)}},BY=async e=>{const t=!!vn.INJECT_DATA;await MY();const{siteURLInfos:n}=ue(),o=Et.delayFirstNet()||100;Array.isArray(n==null?void 0:n.lobby_domain)&&n.lobby_domain.length>0?cL():await lL(!1,o);const a=NY(e,t).catch(()=>{});await Promise.all([a,kY(t).catch(()=>{}),tY(t).catch(()=>{}),OY(t).catch(()=>{}),a.then(()=>TY())]),aa.registerSubParams("bffHome",Z4),aa.registerSubGates("bffHome",J4),aa.prefetchScope(CI),LY()},xs={isAlready:!1,process:void 0},Fr={isPush:!1,isTouchStart:!1,endTime:Date.now()};function HY(e){["push","go","replace","forward","back"].forEach(r=>{const s=e[r].bind(e);e[r]=function(...i){return Fr.isPush=!0,s(...i)}}),document.addEventListener("touchstart",()=>{Fr.isTouchStart=!0}),document.addEventListener("touchend",()=>{Fr.isTouchStart=!1,Fr.endTime=Date.now()});let n=!1;const o=EY(),a=Ck((r,s)=>{if(vn.SITE_DOMAIN_NOT_MATCH)return CG(),!0;const i=qe.localStorage.get("currentHref");if(i){const c=new URL(i),l={...r.query};c.searchParams.forEach((u,d)=>{l[d]=u}),qe.localStorage.set("currentHref",""),s({path:c.pathname||r.path,query:l})}return!1});e.beforeEach(async(r,s,i)=>{if(a(r,i))return;if(r.fullPath==="/"+k.AGENT_ADMIN){location.reload();return}const c=zv(e);await o.init(r);const l=zv(e);if(!TV(c,l,r,s,i)){if(r.name===k.WITHDRAW&&Ze().isHideWithdrawEntry){const{t:u}=we();V(async()=>{const{showHideEntryDialog:d}=await Promise.resolve().then(()=>oW);return{showHideEntryDialog:d}},void 0).then(({showHideEntryDialog:d})=>{d(u("lobby.common.tips.hideWithdrawEntry"))}),i(new Error("cancel"));return}return uT({name:r.name,meta:{...r.meta},source:{to:r,from:s}},u=>{u!=="cancel"?(Xr.start(`route-${String(r.name)}`),u==="toRoot"?i({replace:!0,name:k.ROOT,query:r.query}):u==="pass"&&i()):i(new Error("cancel"))})}}),e.beforeResolve((r,s)=>{const i=()=>{if(!n){const c=()=>{window.initSplash.destroy(),gr(Mn.EVENT_DESTROY_SKELETON_SCREEN).send({},{fireAndForget:!0}),n=!0,Tt().setSkeletonScreenStatus(!0),requestAnimationFrame(()=>{setTimeout(()=>{try{nl("HIDE_SPLASH").send({},{merge:100,fireAndForget:!0})}catch(u){console.error(u,"hide splash err")}})})},l=Et.delaySplashDestory();l?setTimeout(()=>{c()},l):c()}};xs.process?xs.isAlready||(xs.isAlready=!0,xs.process.on((c,l)=>
28{c.status!==!1&&l(),c.status&&(xs.process=void 0,i())})):i(),xY(s,r)}),e.afterEach((r,s)=>{Fr.isPush=!1,fn.isActivated&&fn.navigationProcess(),Xr.done(`route-${r.name}`),J().hasLogined&&Yb().then(i=>{i==null||i.checkSurprisePageReward(r.name,s.name)}),(r.name===k.PROMOTE||r.name===k.CLUB_PROMOTE||r.name===k.GENERALPROMOTINDEX)&&V(async()=>{const{usePromoteStore:i}=await import("./0_EntryLoginRegisterChunk.DMUz1wnE.js").then(c=>c.gU);return{usePromoteStore:i}},__vite__mapDeps([0])).then(({usePromoteStore:i})=>{i().getPromoteAdvertise()}),ve("LOGIN_STATUS_CHECK").emit(),ve("ROUTER_AFTER_EACH").emit(),bn().replayDeferredQueue()})}const dS=MV(),Xr={state:[],start:(e,t=!1)=>{Xr.state.includes(e)||t||dS.start()},done:e=>{dS.done();const t=Xr.state.indexOf(e);t>-1&&Xr.state.splice(t,1),Xr.state.push(e)}},xY=(e,t)=>{var i,c,l,u,d,m;const n=Xr.state.reduce((g,f)=>(f.startsWith("route-")&&g.push(f.replace(/^route-/,"")),g),[]);let o;const{routerViewTransitionModeOnce:a,updateRouterViewTransitionMode:r}=lf();if((typeof t.name=="string"?n.indexOf(t.name||""):0)>=0&&!Fr.isPush&&(Fr.isTouchStart||Date.now()-Fr.endTime<377))o="None";else if(a)o=a;else if(typeof e.name=="string"&&typeof t.name=="string"&&e.name!==t.name){let g=n.indexOf(e.name||""),f=n.indexOf(t.name||"");typeof((i=e.meta)==null?void 0:i.depIndex)=="number"&&typeof((c=t.meta)==null?void 0:c.depIndex)=="number"&&((l=e.meta)==null?void 0:l.depIndex)!==((u=t.meta)==null?void 0:u.depIndex)&&(g=(d=e.meta)==null?void 0:d.depIndex,f=(m=t.meta)==null?void 0:m.depIndex),o=g>f?"Pop":"Push"}else o="Base";Fr.isTouchStart=!1,r(o)},EY=()=>{let e=!1,t=!1;const n=async a=>{e||(e=!0,await UY(a),o(a))},o=async a=>{if(t)return;t=!0,Tt().updateIsInitializationCompleted(!0),ve("CLIENT_DATA_INITIALIZATION_COMPETED").emit(),yt(()=>{W4()});const{NOT_FOUND:r,ERROR_TEXT:s}=k;[r,s].includes(a.name)||console.log("GUARD INIT DONE ROUTE: ",a.name)};return{init:n,done:o}},UY=async e=>{await BY(e),await Promise.all([GY(e)])},GY=async e=>{var n,o;if(xs.process=(n=ib())==null?void 0:n.loginProcess,xs.process){await xs.process();return}((o=e.meta)==null?void 0:o.private)?await mS().catch(()=>{}):mS().catch(()=>{})},mS=async()=>{const{userkeyFromUrl:e}=tn(),{useFastLogin:t}=J(),n=Eu();t?await n.fastLogin({userkey:e}).then(()=>{ve("LOGIN_STATUS_CHECK").emit()}).catch(o=>{throw e&&(tn().isUserKeyFromUrlFail=!0),o}):n.mockTryModeLogin()},bn=ke("dialog",()=>{const{t:e}=we(),{emit:t}=ve("DIALOG_CLOSE"),{emit:n}=ve("DIALOG_OPEN"),o=vt({}),a=vt({startBy:void 0,from:void 0,startByPayload:void 0}),r=Oe(),s=Ao(),i=vt({}),c=new m1,l=["iframeAccessRestrictedPopup","iframeMaintainPopup"];let u=!1,d=null,m=!1,g=!1,f=null;const _=O(!1),h=O([]),p=W=>h.value.some(oe=>oe.name===W)?!0:c.queue.some(oe=>oe.key===W||oe.key==="AUTO_"+W);let y=0;const b=()=>Object.values(i).some(W=>(W==null?void 0:W.openType)==="overlay"&&(W==null?void 0:W.visible)),v=()=>l.some(W=>{var oe;return(oe=i[W])==null?void 0:oe.visible}),A=(W,oe)=>{var be;!i[W]||!((be=s.value)!=null&&be[W])||(oe?(y+=1,i[W].stackIndex=y):i[W].stackIndex=void 0)};let L=null;const T=async()=>{const W=await tT(()=>V(()=>import("./index.B013Rxle.js").then(oe=>oe.i),__vite__mapDeps([0,1,3,4,5,6,23,24,7,8,9,25,10,11])))();s.value=W.DialogConfig,Object.keys(W.DialogConfig).forEach(oe=>{i[oe]={visible:!1}}),U()},S=()=>(L||(L=T().catch(W=>{throw L=null,console.error("ãAUTO_DIALOGã init failed, will retry on next call:",W),W})),L),I=new Map,R=async W=>{if(!i[W])return;const oe=s.value[W];if(!oe||i[W].uiStatus===Zo.Done)return;const be=I.get(W);if(be)return be;const Ie=(async()=>{var et;i[W].uiStatus=Zo.Loading,Xr.start(`modal-${W}`);let Me;try{if(await uT({name:`modal-${W}`,meta:(et=oe.meta)!=null?et:{}},Ae=>{Me=Ae}),Me!=="pass"){i[W].uiStatus=Zo.Cancelled;return}const se=await wE(W,oe,()=>{i[W].uiStatus=Zo.Done});i[W].uiStatus=se}catch(se){console.warn(`ãAUTO_DIALOGã initDialogUi cancelled for "${W}":`,se),i[W].uiStatus=Zo.Cancelled}finally{Xr.done(`modal-${W}`),I.delete(W)}})();return I.set(W,Ie),Ie},D=async(W,{config:oe,initData:be})=>{var pt,xt,Pn,an;if(!i[W])return;const Ie=s.value[W];if(!Ie)return null;const Me=(pt=oe==null?void 0:oe.openType)!=null?pt:"insert",et=Me==="overlay",se=be==null?void 0:be._isAutoDialog,Ae=se?(xt=Ie.autoDialogConfig)==null?void 0:xt.actions:Ie.actions;let Je;try{Je=await((Pn=Ae==null?void 0:Ae.beforeInit)==null?void 0:Pn.call(Ae,a))}catch(ro){console.warn(`ãAUTO_DIALOGã beforeInit failed for "${W}":`,ro),Je=!1}if(Je===!1)return null;const wt=se?{include:[k.GAME]}:Ie==null?void 0:Ie.routerLimit;i[W].openType=Me;const Dt=se?"AUTO_"+W:W;return new g1({key:Dt,maxWaitingInit:(an=Ie.maxWaitingInit)!=null?an:5e3,init:async()=>{var ro;try{await((ro=Ae==null?void 0:Ae.init)==null?void 0:ro.call(Ae,a))}catch(Xa){console.warn(`ãAUTO_DIALOGã init failed for "${W}":`,Xa)}return be},open:async()=>{var ce,pe,Fe,Ne;console.log("ãAUTO_DIALOGã","OPEN:",Dt);let ro;try{ro=await((ce=Ae==null?void 0:Ae.beforeOpen)==null?void 0:ce.call(Ae,a))}catch(Vn){ro=!1}const Xa=IE(wt),ie=AE(W),ge=ro!==!1;if(!Xa||!ie||!ge){if(!ie&&Xa&&ge){const Vn=Ie.onRouteBlocked;(Vn==null?void 0:Vn.action)===XA.Defer&&!p(W)&&h.value.push({name:W,config:oe})}et||await c.close();return}await R(W);const ee=i[W].uiStatus;if(ee!==Zo.Done){ee===Zo.Error&&(console.info(`ãAUTO_DIALOGã UI load failed for "${W}"`),se||_o({type:"error",message:()=>
28e("lobby.error.networkTimeout")})),et||await c.close();return}!et&&b()||(se&&va.delayAutoDialogOpen()&&await new Promise(Vn=>setTimeout(Vn,300)),console.log("ãAUTO_DIALOGã","OPEN SUCCESS",Dt,c),i[W].options=(Ne=oe==null?void 0:oe.options)!=null?Ne:se?(Fe=(pe=Ie.autoDialogConfig)==null?void 0:pe.getOpenOptions)==null?void 0:Fe.call(pe,a):void 0,i[W].isAutoDialog=se,i[W].visible=!0,A(W,!0),n({name:W}))},close:async()=>{console.log("ãAUTO_DIALOGã","CLOSE",Dt)}})},M=new Set,B=async(W,oe)=>{var be,Ie,Me;if(oe!=null&&oe.singleton){if(me(W))return;M.add(W)}try{if(console.log("ãAUTO_DIALOGã","Manual OPEN:",W,oe),await S(),!i[W])return;const et=(be=oe==null?void 0:oe.openType)!=null?be:"insert",se=await D(W,{config:oe});if(!se)return;console.log("ãAUTO_DIALOGã","Manual OPEN success",W,oe),et==="insert"?(await c.insert(se,(Ie=oe==null?void 0:oe.insertOptions)==null?void 0:Ie.immediateOpen),c.open()):et==="overlay"?(await((Me=se.init)==null?void 0:Me.call(se)),se.open(se)):(await c.add(se),c.open())}finally{oe!=null&&oe.singleton&&M.delete(W)}},E=async W=>{var Ie,Me,et;const oe=i[W];if(!oe)return;const be=oe.isAutoDialog?"AUTO_"+W:W;if(!oe.visible){c.remove(be),A(W,!1),t({name:W});return}if(oe.visible=!1,A(W,!1),oe.openType==="overlay")oe.options=void 0,c.current&&!b()&&await c.current.open(c.current);else if(((Ie=c.current)==null?void 0:Ie.key)===be){await c.close();const se=(et=(Me=c.queue[0])==null?void 0:Me.data)==null?void 0:et._isAutoDialog;!c.auto&&!se&&await c.open()}else c.remove(be);t({name:W}),console.log("ãAUTO_DIALOGã","Manual CLOSE:",W)},Y=(W=[])=>{console.log("ãAUTO_DIALOGã","close ALLLLLLLLLLLLLLL",W.length?`whitelist: ${W.join(", ")}
28`:""),Object.keys(i).forEach(oe=>{W.includes(oe)||(i[oe].visible=!1,A(oe,!1))}),c.clear()},H=(W="default")=>{o[W]=!0},F=(W="default")=>{o[W]=!1,console.log("ãAUTO_DIALOGã","unloack",W),$()},Q=()=>c.queue.some(W=>{var oe;return(oe=W.data)==null?void 0:oe._isAutoDialog}),G=()=>Object.values(o).some(W=>W),N=()=>{const W=[...Kf];let oe=0;const be=()=>{var Ie,Me,et,se;for(;oe<W.length;){const Ae=W[oe++],Je=(Ie=s.value)==null?void 0:Ie[Ae];if(!Je||((Me=i[Ae])==null?void 0:Me.uiStatus)===Zo.Done)continue;let wt;try{wt=(se=(et=Je.componentConfig).loader)==null?void 0:se.call(et,{maxTry:1})}catch(Dt){wt=void 0}Promise.resolve(wt).catch(()=>{}).finally(()=>Xm(be));return}};Eg().then(()=>Xm(be))},$=async(W={})=>{var se;let{startBy:oe=Bs.Router,from:be,startByPayload:Ie}=W;if(console.log("ãAUTO_DIALOGã","starting auto-dialog...",oe,be),r.routeLocationRaw.name!==k.GAME||u||G())return;oe===Bs.Router&&f&&(console.log("ãAUTO_DIALOGã","consume pending login state"),oe=(se=f.startBy)!=null?se:Bs.Login,be=f.from,Ie=f.startByPayload,f=null),await S();const Me=oe===Bs.Login&&r.route.name===k.GAME,et=Q();if(!Me&&(et||g))X(),console.log("ãAUTO_DIALOGã","start auto-dialog: resume");else{console.log("ãAUTO_DIALOGã","start auto-dialog: start"),a.startBy=oe,a.from=be,a.startByPayload=Ie,u=!0;try{const Ae=[];for(let Je=0;Je<Kf.length;Je++){if(m)return;const wt=Kf[Je],Dt=await D(wt,{config:{openType:"push"},initData:{_isAutoDialog:!0,_autoDialogIndex:Je}});Dt&&Ae.push(Dt)}for(const Je of Ae){if(m)return;try{await c.add(Je)}catch(wt){console.error("[AutoDialog] add failed",Je.key,wt);break}}U(),g=!0,N()}finally{u=!1,m=!1,d==null||d(),d=null}}},X=()=>{G()||U()},j=()=>{c.stop()},te=async(W,oe=[])=>{if(c.stop(),u&&(m=!0,await new Promise(be=>{d=be})),Y([...l,...oe]),g=!1,!v()){if((W==null?void 0:W.startBy)===Bs.Login&&(r.routeLocationRaw.name!==k.GAME||G())){f=W,console.log("ãAUTO_DIALOGã","stash login state, waiting for router to GAME or unlock");return}await $(W)}},K=()=>{[...c.queue].forEach(W=>{var oe;(oe=W.data)!=null&&oe._isAutoDialog&&c.remove(W.key)})},q=(W,oe)=>{const be=i[W];be&&(be.options=oe)},ae=W=>c.queue.some(oe=>oe.key===W),me=W=>{var oe,be;return!!((oe=i[W])!=null&&oe.visible)||ae(W)||((be=c.current)==null?void 0:be.key)===W||M.has(W)},de=()=>{if(!h.value.length)return;const W=[...h.value];h.value=[];for(const oe of W)B(oe.name,oe.config)},ne=c.stop,U=()=>{c.start(0)};return{manager:c,open:B,close:E,closeAll:Y,init:T,ensureInit:S,DialogConfig:s,stop:ne,start:U,autoDialogState:a,updateOptions:q,isInQueue:ae,isActiveOrInQueue:me,startAutoDialog:$,restartAutoDialog:te,stopAutoDialog:j,resumeAutoDialog:X,clearAutoDialog:K,resetBuiltQueue:()=>{g=!1},stateMap:i,lockAutoDialog:H,unlockAutoDialog:F,isDelayDone:_,deferredQueue:h,replayDeferredQueue:de}}),Bd=e=>{const{t}=we();switch(e){case Se.Speed:return t("lobby.rightBar.downloadAppFirst");case Se.Normal:return t("lobby.rightBar.downloadAppNative");case Se.Quick:return t("lobby.rightBar.P2A");case Se.PWA:return t("lobby.rightBar.P2A");case Se.DesktopShortcut:return t("lobby.rightBar.desktopShortCut");case Se.UnBanSpeed:return t("lobby.rightBar.downloadAppFirst");case Se.UnBanNormal:return t("lobby.rightBar.downloadAppNative");case Se.Vest:return t("lobby.rightBar.downloadAppStore")}return""},d_=e=>{const{tokenInfos:t}=tn(),{siteCode:n}=Ze(),{isIos:o}=Qe(),a=cl(e),s={[Se.Normal]:"wgwgwgwg",[Se.Speed]:"wgwgspeed"}[a],i=o?`${s}${n}://`:`${s}${n}://wgwgwgwg/open`,c=t?window.btoa(JSON.stringify(t)):"";return c?`${i}?_ti=${c}`:i},Cde=(e="schema",t)=>{var a;const{isAndroid:n}=ft().os,o=vl(((a=re==null?void 0:re.wgPackageConfig)==null?void 0:a.name)+".wgvdlabg").length;if(re.package.isVest&&n&&!o&&e==="schema"){const r=[Se.Normal,Se.Speed].map(s=>({name:d_(s)}));return QT(r)}return!1},QT=e=>{var t,n,o;try{if((t=window.jsBridge)!=null&&t.ifSchemaExists)return(o=(n=window.jsBridge)==null?void 0:n.ifSchemaExists)==null?void 0:o.call(n,JSON.stringify(e),!0)}catch(a){console.error(a)}return!1},FY=e=>new Promise(t=>{const{isAndroid:n}=Qe(),o=cl(e);if(e&&[Se.Normal,Se.Speed].includes(o)){const a=[{name:d_(e)}];if(QT(a))return t(!0)}
28if(re.package.isApp||e&&![Se.Normal,Se.Speed].includes(o)||!n)return t(!1);try{let a=Object.create(null);a=document.createElement("iframe"),a.style.height="0",a.src=d_(e),setTimeout(()=>{document.body.appendChild(a)},200);const r=setTimeout(()=>{a&&document.body.removeChild(a),t(!1)},1500),s=()=>{try{a&&document.body.removeChild(a)}catch(i){console.log(i)}clearTimeout(r),t(!0)};document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&s()},{once:!0}),window.addEventListener("blur",()=>{s()},{once:!0})}catch(a){t(!1)}});async function WY(){return"getInstalledRelatedApps"in window.navigator&&typeof window.navigator.getInstalledRelatedApps=="function"?(await window.navigator.getInstalledRelatedApps()).length>0:!1}const XT=e=>{const{isKwai:t}=Qe(),{open:n,close:o}=bn();return t&&n("kwaiNonsupportDialog",{}),t},VY=e=>{if(!e)return;const{isInThirdAppBrowser:t,isSafari:n,isTikTok:o}=ft().browser,{isIOS:a,version:r}=ft().os,{isTelegram:s}=Qe(),i=a&&parseInt(r!=null?r:"0")>=17,{open:c}=bn();return fn.isActivated?(Hu({type:Se.Quick},e),to(e),!0):a&&(t||s||!n)?o?(c("kwaiNonsupportDialog",{options:{url:e},openType:"overlay"}),!1):(i&&(e!=null&&e.startsWith("https://"))?zY(e):c("kwaiNonsupportDialog",{options:{url:e},openType:"overlay"}),!1):(Hu({type:Se.Quick},e).finally(()=>{location.href=e}),!0)},wde=(e="add")=>{const{deviceOs:t}=Qe(),n="fixed.isSaveShort";(t==="windows"||t==="macos")&&ml({[n]:"true"},e==="add"?[]:[n])},gS=e=>{var r;const t=ed(),n=J().hasLogined?t.newBenefitsMap[e]:t.getRedDotBeforeLogin(e);if(!n)return;let o=[];try{const s=(r=JSON.parse(n.content))==null?void 0:r.bindTypes;o=s.length?s:[0,1,2,3,4]}catch(s){o=[0,1,2,3,4]}let a=n.reward;return J().hasLogined?a=(n==null?void 0:n.bubbleContent)||String(n.reward):a=n!=null&&n.bubbleContent?uE(n.bubbleContent,String(n.reward)):n.reward,{bindType:n.bindType,bindTypes:o,reward:n.isPop?a:0}},$Y=e=>{var r,s,i;const{rewardBindDataBefore:t}=St(zo()),n=(r=t.value)==null?void 0:r[mr.DownloadAndLogin],o=(s=t.value)==null?void 0:s[mr.createDesktop];if(e===Se.DesktopShortcut)return o||{};const a=new Map([[Se.Normal,wc.Normal],[Se.Speed,wc.Speed],[Se.Quick,wc.Quick],[Se.PWA,wc.PWA],[Se.Vest,wc.Vest]]);return(i=n==null?void 0:n.bindTypes)!=null&&i.includes(a.get(e))?n:{}},cl=e=>{var n;return(n={[Se.UnBanNormal]:Se.Normal,[Se.UnBanSpeed]:Se.Speed}[e])!=null?n:e},Ide=e=>({[zr.IOS]:Jl.IOS,[zr.ENTERPRISE]:Jl.ENTERPRISE,[zr.SUPER]:Jl.SUPER,[zr.TF]:Jl.TF})[e],YY=e=>{const{t}=we();return{[zr.ENTERPRISE]:t("lobby.rightBar.signEnterprise"),[zr.SUPER]:t("lobby.rightBar.signSuper"),[zr.TF]:t("lobby.rightBar.signTf")}[e]},qY=e=>({language:"",link:"",linkType:"0",name:"",type:Se.Quick,value:e}),zY=e=>{const{isIOS:t}=ft().os;t&&e.includes("https://")&&(location.href=`x-safari-${e}`)},jY=(e,t="chrome")=>{const n=new URL(e),{protocol:o}=n,a=e.replace(`${o}//`,""),r=o.replace(":","");t==="chrome"?location.href=`intent://${a}#Intent;scheme=${r};package=com.android.chrome;end`:location.href=`intent://${a}#Intent;scheme=${r};end`},Ade=(e,t,n=10)=>{const o=e.split(".").map(Number),a=t.split(".").map(Number);if(o[0]!==a[0])return o[0]>a[0]?1:-1;if(o[1]!==a[1])return o[1]>a[1]?1:-1;const r=o[2]-n;return r===a[2]?0:r>a[2]?1:-1},Xb=e=>{var s;const{isIOS:t,isAndroid:n,isWindows:o,isMacOS:a}=ft().os,r=(s=new Map([[n,bm.Android],[t,bm.Ios],[a||o,bm.Pc]]).get(!0))!=null?s:"";return e?e.includes(r):!1},KY=(e,t)=>{const n=Ye(e*1e3).startOf("day"),o=Ye(t*1e3).startOf("day");return Math.abs(o.diff(n,"day"))},fS=()=>!!(["standalone","minimal-ui"].some(e=>window.matchMedia("(display-mode: "+e+")").matches)||navigator.standalone),QY=e=>e.split("").map(t=>{const n=parseInt(t,16);return String.fromCharCode(97+n%26)}).join("");let gp;const ZT=e=>{if(!gp){const{name:n}=ft().browser,o=QY(ot.MD5(location.host).toString());gp=`web+${n==null?void 0:n.toLowerCase()}${o.substring(0,8)}`}const t=gp;return{protocol:t,scheme:t+"://"+(e!=null?e:"")}};let pS=!1,kl=null;const XY=(e=15)=>pS?Promise.resolve(!0):kl||(kl=new Promise((n,o)=>{if("serviceWorker"in navigator){let a=0;const r=()=>{a++,navigator.serviceWorker.getRegistrations().then(s=>{const i=s.find(c=>{var l;return[KA,jA].some(u=>{var d;return(d=c.active)==null?void 0:d.scriptURL.includes(u)})&&((l=c.active)==null?void 0:l.state)==="activated"});i?(console.log("pwa -> Service Workers registered:",i,a),pS=!0,n(!0)):a<e?setTimeout(r,1e3):(console.log("pwa -> Maximum attempts reached. Service Worker not found."),n(!1))}).catch(s=>{console.error("pwa -> Error fetching Service Worker registrations:",s),o(s)})};r()}else console.log("pwa -> Service Worker is not supported in this browser."),n(!1)}).finally(()=>{kl=null}),kl),ZY=e=>{const{type:t,value:n}=e,{isInThirdAppBrowser:o,isTikTok:a}=ft().browser,{isAndroid:r,isIOS:s}=ft().os,{isTelegram:i}=Qe(),{open:c}=bn();if(r){if(o||i)return jY(WA(location.href),"system"),!1;if(re.package.isApp&&t===Se.PWA)return to(VA()),!1}else if(s&&a)return c("kwaiNonsupportDialog",{options:{url:n},openType:"overlay"}),!1;return!0},Ut=ke("download-channel",()=>{const e=J(),{isFirstDeposit:t}=St(e),{isH5Pwa:n,isIos:o,isAndroid:a,isiOSVest:r,isiOSWebClip:s,isP2a:i}=Qe(),c=O(null),l=O(null),u=async U=>{const W=await Ov({id:U});return W&&d({...W,downloadRewards:Xl.OFF,rewardsAmount:0,currencyA
28ward:[]}),W},d=U=>{c.value=U},m=async U=>{try{l.value=await Ov({id:U})}catch(W){l.value=null}};qu(()=>{var W;const U=(W=e.userInfos)==null?void 0:W.regPkgId;U&&!Du.includes(U)?m(U):l.value=null});const g=C(()=>l.value||c.value),f=C(()=>{var U;return M.value&&((U=g.value)==null?void 0:U.viewDownload)===Uc.PWA}),_=C(()=>n&&!o&&f?{isPwa:1}:{}),h=C(()=>{var U;return((U=g.value)==null?void 0:U.userDisplay)===kA.FirstRechargedUser}),p=O();fe([h,t],async()=>{h.value&&t.value&&!p.value&&setTimeout(async()=>{const U=await UA(!0);p.value=Number(U.first_pay_amount)||0},1e3)});const y=C(()=>{var U,W,oe;return(oe=(W=(U=g.value)==null?void 0:U.channelAward)==null?void 0:W.scope)!=null?oe:[]}),b=C(()=>{var W,oe,be;const U=ze().currency;return(be=(oe=(W=g.value)==null?void 0:W.currencyAward)==null?void 0:oe.find(Ie=>Ie.currency===U))!=null?be:null}),v=C(()=>{var U;return((U=g.value)==null?void 0:U.downloadRewards)===Xl.ON}),A=C(()=>{var U;return((U=g.value)==null?void 0:U.isForceDownload)===_m.FORCE}),L=C(()=>{var U;return((U=g.value)==null?void 0:U.isForceDownload)===_m.ALWAYS}),T=C(()=>{var U;return((U=g.value)==null?void 0:U.isForceDownload)===_m.OPTIONAL}),S=C(()=>{var U;return((U=e.userInfos)==null?void 0:U.deposit_count)===0}),I=C(()=>{var Ae,Je,wt,Dt,xn,pt,xt,Pn,an;const U=((Je=(Ae=g.value)==null?void 0:Ae.channelAward)==null?void 0:Je.recharges)||0,W=((Dt=(wt=g.value)==null?void 0:wt.channelAward)==null?void 0:Dt.register)||0,oe=((pt=(xn=g.value)==null?void 0:xn.channelAward)==null?void 0:pt.withdrawal)||0,be=W*60*60*24,Ie=((xt=e.userInfos)==null?void 0:xt.deposit_count)||0,Me=((Pn=e.userInfos)==null?void 0:Pn.withdrawCount)||0,et=((an=e.userInfos)==null?void 0:an.register_time)||0,se=KY(et,Tt().getServerTime());return!(be!==0&&se<W||U!==0&&Ie<U||oe!==0&&Me<oe)}),R=C(()=>{var U;return((U=g.value)==null?void 0:U.rewardsCondition)===Yg.FirstDeposit}),D=C(()=>S.value&&R.value),M=C(()=>{var U;return((U=g.value)==null?void 0:U.downloadDisplay)===Xl.ON}),B=C(()=>K.value&&M.value&&I.value&&e.hasLogined),E=C(()=>{const U=g.value;return U!=null&&U.viewDownloadTypes?U.viewDownloadTypes.split(",").map(W=>Number(W)):(U==null?void 0:U.viewDownload)!=null?[U.viewDownload]:[]}),Y=1,H=O(!1);function F(){H.value=!0}const Q=C(()=>{var W;return((W=g.value)==null?void 0:W.isHideDomain)===Xl.OFF?fr.MinimalUi:fr.Standalone}),G=C(()=>{const U=e.userInfos,W=(U==null?void 0:U.loginpwaType)===Y,oe=(U==null?void 0:U.loginOsType)===Y,be=oe||W,Ie=ts().isPWAInstalled,Me=E.value.includes(Uc.PWA);if(fn.isActivated&&E.value.length===1&&Me)return"";if(L.value)return"downloadAppPopup";if(Me){if(Ie||be)return""}else if(oe)return"";return A.value?"downloadAppPopup":T.value?"downloadAppDialog":""}),N=C(()=>!B.value||q.value?"":G.value),{name:$}=ss(Bn());fe(()=>$.value,U=>{[k.GAME,k.SUB_GAME].includes(U)&&X()},{immediate:!0});function X(){if(Fx()){let U=0;const W=setInterval(()=>{if(U++,U>5)return clearInterval(W);if(G.value)return bn().open(G.value),clearInterval(W)},2e3)}}function j(){var U,W;if(o&&((U=g.value)==null?void 0:U.androidBackupLinkType)===Nh.CUSTOM)return to(g.value.androidBackupLink);if(a&&((W=g.value)==null?void 0:W.iosBackupLinkType)===Nh.CUSTOM)return to(g.value.iosBackupLink)}const te=C(()=>{var U,W;return fn.isActivated?!1:((U=g.value)==null?void 0:U.type)===HA.PWA_WEB2APP&&((W=g.value)==null?void 0:W.allDisplayType)===1}),K=C(()=>!re.package.isLite&&!i),q=C(()=>{var U;return!!((U=re.speedPackageConfig)!=null&&U.isSpeedPackae)||r||s||i}),ae=C(()=>{var W;return((W=g.value)==null?void 0:W.allDisplayType)===BA.Off||q.value}),me=C(()=>{var U,W;return T.value&&((W=(U=g.value)==null?void 0:U.channelAward)==null?void 0:W.gamePopup)===jt.OPEN&&de.value>0}),de=C(()=>{var U,W;return((W=(U=g.value)==null?void 0:U.channelAward)==null?void 0:W.intervalTime)||0}),ne=C(()=>{var U,W;return!!(((U=g.value)==null?void 0:U.currencyType)===tg.Mandatory&&((W=g.value)!=null&&W.currency))});return{channelInfo:g,isP2aParamsByChannel:_,isDownloadRewardsOn:v,firstPayAmount:p,isShowRewardsConditionLiteral:D,downloadDialogName:N,getChannelInfoById:u,setOpenOnce:F,downloadPWAFallback:j,pWADisplayMode:Q,pwaChannelShowInHome:te,isHiddenAppEnter:ae,isHiddenAppByDevice:q,setUrlChannelInfo:d,inGameShowChannelDownload:me,gamePopupTime:de,isOpenOnce:H,viewDownloadTypes:E,rewardScope:y,currentCurrencyA
28ward:b,isChannelCurrencyMandatory:ne}},{persist:{paths:["urlChannelInfo","registerChannelInfo"]}}),en=ke("statistic",()=>{const e=Ut(),t=O(!1),n=O(void 0),o=O(void 0),a=O(window.location.href),r=O({}),s=O(0),i=O({}),c=()=>{var B,E,Y,H,F,Q,G,N,$,X,j,te;const y=K=>K?parseInt(K,36).toString():void 0,b=K=>new URLSearchParams(location.search).get(K),v=K=>{if(!K)return{};if(K.includes("$")){const[q,ae,me,de]=K.split("$");return{baseCode:y(q),id:y(ae),currency:me,type:de}}return{baseCode:y(K)}},A=(B=b("cid"))!=null?B:void 0,L=(E=b("qd"))!=null?E:void 0,T=(Y=b("id"))!=null?Y:void 0,S=(H=b("dl"))!=null?H:void 0,I=A?{baseCode:A}:v(L),R=T?{baseCode:T}:v(S),D=r.value.cid,M=r.value.id;r.value={...r.value,cid:I.baseCode,id:(F=R.baseCode)!=null?F:R.id,currency:(N=(G=(Q=b("currency"))!=null?Q:I.currency)!=null?G:R.currency)!=null?N:r.value.currency,type:(j=(X=($=b("type"))!=null?$:I.type)!=null?X:R.type)!=null?j:r.value.type,isJumped:I.baseCode!=D||((te=R.baseCode)!=null?te:R.id)!=M?void 0:r.value.isJumped},i.value={qd:L,dl:S}},l=()=>new Promise(y=>{const{cid:b,id:v}=r.value,{getChannelInfoById:A,setUrlChannelInfo:L}=e;if((!b||Du.includes(Number(b)))&&(L(null),r.value={...r.value,languageCode:void 0}),b&&!Du.includes(Number(b))){const T=Et.skipChannelLinkByCid(b),S=performance.now();A(Number(b)).then(I=>{var R,D;I&&(r.value={...r.value,type:(R=I==null?void 0:I.jumpType)==null?void 0:R.toString(),currency:(D=I==null?void 0:I.currency)==null?void 0:D.toString(),languageCode:I==null?void 0:I.languageCode,selfOperatedGameId:I==null?void 0:I.gameId,amount:I==null?void 0:I.amount},h.value==null&&_(!0,{userCachedLang:I==null?void 0:I.languageCode}))}).finally(()=>{t.value=!0,T||(n.value=Math.round(performance.now()-S),y())}),T&&y()}else if(v){const T=performance.now();Sx({promoteId:Number(v)}).then(S=>{var I,R;r.value={...r.value,currency:(I=S==null?void 0:S.currency)==null?void 0:I.toString(),type:(R=S==null?void 0:S.linkType)==null?void 0:R.toString()}}).finally(()=>{o.value=Math.round(performance.now()-T),y()})}else y()}),u=()=>{const y=Oe();return(()=>{if(!r.value.isJumped){if((r==null?void 0:r.value.type)===eg.TEST_REGISTER&&!J().hasLogined)return r.value.isJumped=!0,y.replace({name:k.SUB_GAME,query:{gameCategoryId:`${Z.Demo}`,platformId:`${Z.Demo}${Ta}`}});if((r==null?void 0:r.value.type)===eg.EVENT)return r.value.isJumped=!0,y.replace({name:k.EVENT})}})()},d=async(y=Mh.Normal)=>{var I,R,D;if(!((R=(I=Tt())==null?void 0:I.ipCheck)!=null&&R.areaStatus))return;const b=Number((D=qe.localStorage.get("expirationTime"))==null?void 0:D.toString()),v=Ye().endOf("day").valueOf(),A=b&&v>b||!b;(A||y!==Mh.Normal)&&(A&&qe.localStorage.set("expirationTime",v.toString()),Re.doReport({rule:Re.rules.SENSOR_BURIED,eventName:Re.sensorEvents.IndicatorA}));const{hasLogined:L}=J(),{uuid:T}=jn(),{urlParams:S}=en();if(!L&&(await aa.whenReadyFor("/api/agent/promote/binding/reportViewV2"),!aa.isReportDelegated(Pu.ReportView))){const M=new URL(location.href);Cx({promoter_info:S==null?void 0:S.id,channel_info:S==null?void 0:S.cid,accessUrl:M.origin,visitor_device:T})}},m=async y=>{var v,A,L,T,S;const{uuid:b}=jn();((v=r.value)!=null&&v.cid||(A=r.value)!=null&&A.id)&&await wx({accessType:1,accessUrl:(L=window.location)==null?void 0:L.href,packageType:y==null?void 0:y.type,promoter_info:((T=r.value)==null?void 0:T.id)||"",channel_info:((S=r.value)==null?void 0:S.cid)||"",visitor_device:b})},g=C(()=>{const{id:y,cid:b,currency:v}=r.value,{qd:A,dl:L}=i.value,{channelInfo:T}=e;return{...A?{qd:A}:{cid:b||(T==null?void 0:T.id)||void 0},...L?{dl:L}:{id:y},currency:v}}),f=O({}),_=(y,b)=>{const v=String(r.value.cid||"");v&&(f.value[v]={...f.value[v],...b,priority:y})},h=C(()=>{var b;const y=String(r.value.cid||"");return(b=f.value[y])==null?void 0:b.priority}),p=C(()=>{var b;const y=String(r.value.cid||"");return(b=f.value[y])==null?void 0:b.userCachedLang});
28return{defaultUrl:a,urlParams:r,encryptParams:i,channelInfoLoaded:t,channelBlockMs:n,agentBlockMs:o,affParams:g,restoreTimes:s,setIsChannelLanguagePriority:_,sendPointerDomain:d,reportDownloadUrlClick:m,parseLink:c,getLinkConfiguration:l,directAccess:u,channelConfigs:f,currentChannelPriority:h,channelCachedLang:p}},{persist:[{paths:["urlParams","encryptParams","restoreTimes","channelConfigs"]}]}),Hd=(e,t=[])=>t.reduce((n,o)=>(wN(o.transName)&&typeof Nt(n,o.transName)!="object"&&$s(n,o.transName,o.transContent),n),Fn(e));class JY{constructor(){x(this,"i18n");x(this,"loadedLanguages",new Set);x(this,"i18nPackTimeKey","i18nPackTime");this.i18n=_I}async setI18nLanguage(t,n=!1){return n&&this.setI18nInstance(t),this.loadedLanguages.has(t)?(this.switchLanguage(t),!0):(await this.loadLocaleMessages(t),this.i18n.global.locale.value===t)}setI18nInstance(t){var n;this.i18n.global.locale.value=t,document.querySelector("html").setAttribute("lang",(n=el[t].htmlLang)!=null?n:t),ve("LANGUAGE_CHANGE").emit({languageCode:t})}switchLanguage(t){this.i18n.global.locale.value!==t&&(this.setI18nInstance(t),this.loadedLanguages.add(t))}async loadLocaleMessages(t,n=!0){console.time("loadLocaleMessages:total");let o={};const a=async()=>{const[s,i]=await Promise.all([this.loadMessageFromLocal(t),this.loadI18nCacheVersion()]),c=u_(1791251963889);if(i!==c)return s;const l=await this.loadMessageFromIndexDB(t);console.time("loadLocaleMessages:mergeIndexDB2Local");const u=Hd(s,l);return console.timeEnd("loadLocaleMessages:mergeIndexDB2Local"),u},r=l_.i18nStrategy();if(r===hi.JsFirst)o=await this.loadMessageFromLocal(t).catch(async()=>{const s=await this.loadMessageFromServer(t);return Hd({},s||[])});else if(r===hi.JsonFirst){const[s,i]=await Promise.all([this.loadMessageFromLocal(t),this.loadMessageFromServer(t,!1)]);o=Hd(s,i||[])}else r===hi.LocalStorageFirst?o=this.loadMessageFromLocalStorage(t)||await this.loadMessageFromLocal(t):o=await a();this.i18n.global.mergeLocaleMessage(t,o),console.timeEnd("loadLocaleMessages:total"),n&&this.switchLanguage(t),[hi.LocalStorageFirst,hi.Default].includes(r)&&Fa.schedule(async()=>{const s=await this.loadMessageFromServer(t);if(s)if(hi.LocalStorageFirst===r){const i=Ec(),c=JSON.stringify({version:i,locale:t,messages:Hd(o,s)});localStorage.setItem("lobby@i18n",c)}else{const i=qe.createDBManager("i18n").table,c=qe.createDBManager("store").table;await i.db.transaction("rw",i,c,async()=>{await i.clear(),await i.bulkPut(s),await c.put({key:this.i18nPackTimeKey,value:String(u_(1791251963889))})})}},{priority:"low",label:$o.I18nCacheUpdate})}async loadMessageFromLocal(t){console.time("loadLocaleMessages:loadMessageFromLocal");const{default:n}=await f1(Object.assign({
28"../../locales/af.ts":()=>V(()=>import("../locales/af.B86OymFQ.js"),[]),
28"../../locales/am.ts":()=>V(()=>import("../locales/am.R0mmktIS.js"),[]),
28"../../locales/ar.ts":()=>V(()=>import("../locales/ar.Dt6tIMOo.js"),[]),
28"../../locales/bn.ts":()=>V(()=>import("../locales/bn.B4AANJzi.js"),[]),
28"../../locales/de.ts":()=>V(()=>import("../locales/de.CJ-QoIej.js"),[]),
28"../../locales/en.ts":()=>V(()=>import("../locales/en.CjghbCma.js"),[]),
28"../../locales/es.ts":()=>V(()=>import("../locales/es.CkzQJDEu.js"),[]),
28"../../locales/fr.ts":()=>V(()=>import("../locales/fr.V4NTud91.js"),[]),
28"../../locales/hi.ts":()=>V(()=>import("../locales/hi.C17aYmjY.js"),[]),
28"../../locales/id.ts":()=>V(()=>import("../locales/id.Bjc0oLZn.js"),[]),
28"../../locales/it.ts":()=>V(()=>import("../locales/it.D7mkkoYs.js"),[]),
28"../../locales/ja.ts":()=>V(()=>import("../locales/ja.CdLeRsMV.js"),[]),
28"../../locales/km.ts":()=>V(()=>import("../locales/km.D5vL2iWx.js"),[]),
28"../../locales/kn.ts":()=>V(()=>import("../locales/kn.8mjz0u5v.js"),[]),
28"../../locales/ko.ts":()=>V(()=>import("../locales/ko.JdNIbaUP.js"),[]),
28"../../locales/mr.ts":()=>V(()=>import("../locales/mr.DWa2NE0M.js"),[]),
28"../../locales/my.ts":()=>V(()=>import("../locales/my.P3Nx-2IP.js"),[]),
28"../../locales/ne.ts":()=>V(()=>import("../locales/ne.n_Z7Uacg.js"),[]),
28"../../locales/pa.ts":()=>V(()=>import("../locales/pa.CaGcLhKB.js"),[]),
28"../../locales/pt.ts":()=>V(()=>import("../locales/pt.DTOFDoRJ.js"),[]),
28"../../locales/ru.ts":()=>V(()=>import("../locales/ru.BnSAVPjo.js"),[]),
28"../../locales/si.ts":()=>V(()=>import("../locales/si.X7KQMlrB.js"),[]),
28"../../locales/sw.ts":()=>V(()=>import("../locales/sw.BcEa8wOU.js"),[]),
28"../../locales/ta.ts":()=>V(()=>import("../locales/ta.DKNyf1Sc.js"),[]),
28"../../locales/te.ts":()=>V(()=>import("../locales/te.CnNY4D9D.js"),[]),
28"../../locales/th.ts":()=>V(()=>import("../locales/th.C3chDaT1.js"),[]),
28"../../locales/tl.ts":()=>V(()=>import("../locales/tl.CgsaWj1N.js"),[]),
28"../../locales/tr.ts":()=>V(()=>import("../locales/tr.Cqk4nE3U.js"),[]),
28"../../locales/ur.ts":()=>V(()=>import("../locales/ur.B-bA2oLa.js"),[]),
28"../../locales/vi.ts":()=>V(()=>import("../locales/vi.DAxNX6cn.js"),[]),
28"../../locales/zh.ts":()=>V(()=>import("../locales/zh.BpE_1oZI.js"),[]),
28"../../locales/zh_hk.ts":()=>V(()=>import("../locales/zh_hk.8ZdENwbc.js"),[])
28}),`../../locales/${t}.ts`,4).catch(()=>({default:{}})).finally(()=>{console.timeEnd("loadLocaleMessages:loadMessageFromLocal")});return n}async loadMessageFromServer(t,n=!0){return console.time("loadLocaleMessages:loadMessageFromServer"),Y4(t+(l_.jsonTag()||""),n).then(o=>o.data.data).catch(()=>{console.error("ERROR: locale is not exist on server =>",t)}).finally(()=>{console.timeEnd("loadLocaleMessages:loadMessageFromServer")})}loadMessageFromLocalStorage(t){console.time("loadLocaleMessages:loadMessageFromLocalStorage");const n=localStorage.getItem("lobby@i18n");if(console.timeEnd("loadLocaleMessages:loadMessageFromLocalStorage"),n){const o=JSON.parse(n),a=Ec();return(o==null?void 0:o.locale)===t&&(o==null?void 0:o.version)===a?o==null?void 0:o.messages:null}else return null}async loadI18nCacheVersion(){try{const t=await qe.createDBManager("store").table.get(this.i18nPackTimeKey);return Number(t==null?void 0:t.value)}catch(t){return Number.NaN}}async loadMessageFromIndexDB(t){console.time("loadLocaleMessages:loadMessageFromIndexDB");const n=new Promise((a,r)=>{setTimeout(()=>{r(new Error("Loading messages from IndexDB timed out"))},5e3)}),o=qe.createDBManager("i18n").table.where("lang").equals(t).toArray();try{const a=await Promise.race([o,n]);return console.timeEnd("loadLocaleMessages:loadMessageFromIndexDB"),a||[]}catch(a){return console.log(a),console.timeEnd("loadLocaleMessages:loadMessageFromIndexDB"),[]}}}const JT=new JY,Ge=ke("language",()=>{const e=en(),t=O(""),n=O(""),o=ue(),a=async(p,y=!1,b=!1)=>{var v,A;
28b&&((v=e.urlParams)!=null&&v.cid?e.setIsChannelLanguagePriority(!1,{userCachedLang:p}):n.value=p,gr(Mn.EVENT_UPDATE_URL_PARAMS).send({languageCode:p},{merge:!1,fireAndForget:!0})),t.value=p,ir.includes(t.value)&&((A=o.siteInfos)==null?void 0:A.type)===dm?document.documentElement.setAttribute("dir","rtl"):document.documentElement.setAttribute("dir","ltr"),await JT.setI18nLanguage(p,y)},r=C(()=>{const{siteInfos:p}=ue();return Fn((p==null?void 0:p.languageInfos)||[]).filter(y=>kg.includes(y.languageCode)).sort((y,b)=>y.languageCode===t.value&&b.languageCode!==t.value?-1:b.languageCode===t.value&&y.languageCode!==t.value?1:y.defaultLanguageTag&&!b.defaultLanguageTag?-1:1)||[]}),s=C(()=>["zh","zh_hk"].includes(t.value)),i=C(()=>{var p;return ir.includes(t.value)&&((p=o.siteInfos)==null?void 0:p.type)===dm}),c=C(()=>r.value.length<=1),l=C(()=>ir.includes(t.value)),u=C(()=>ir.includes(t.value)?"rtl-flip-text":""),d=C(()=>!i.value&&u.value?"rtl-flip-text-indent":""),m=C(()=>{var p;return((p=r.value.find(y=>y.languageCode===t.value))==null?void 0:p.languageTranslateName)||""}),g=C(()=>{var p;return t.value===((p=ue().siteConfig)==null?void 0:p.languageCode)}),f=p=>/[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF]/u.test(p),_=C(()=>{const{siteConfig:p}=ue();return ir.includes(t.value)&&(p==null?void 0:p.type)!==dm}),h=C(()=>t.value==="tl"?"/lobby_asset/common/common/_sprite/flag_1x1_Philippines.png":void 0);return{isCN:s,language:t,userSelectedLanguage:n,langsList:r,setCurrentLanguage:a,isSingleLang:c,currentLanguageName:m,isSiteDefaultLang:g,isRtlLanguage:i,isNormalLayoutRtl:l,strIsRtl:f,rtlClass:u,rtlIndentClass:d,isRtlLayoutWithLeftAlign:_,langSwitchIcon:h}},{persist:{paths:["userSelectedLanguage"]}});Ye.extend(U1);Ye.extend(G1);const Ea={en:{ymdhms:"DD/MM/YYYY HH:mm:ss",ymdhm:"DD/MM/YYYY HH:mm",ymd:"DD/MM/YYYY",md:"DD/MM",mdhm:"DD/MM HH:mm",mdhms:"DD/MM HH:mm:ss",hms:"HH:mm:ss",hm:"HH:mm",ms:"mm:ss","-ymdhms":"DD-MM-YYYY HH:mm:ss","-ymdhm":"DD-MM-YYYY HH:mm","-md|hm":"DD-MM | HH:mm","-mdhm":"DD-MM HH:mm"},zh:{ymdhms:"YYYY/MM/DD HH:mm:ss",ymdhm:"YYYY/MM/DD HH:mm",ymd:"YYYY/MM/DD",md:"MM/DD",mdhm:"MM/DD HH:mm",mdhms:"MM/DD HH:mm:ss",hms:"HH:mm:ss",hm:"HH:mm",ms:"mm:ss","-ymdhms":"YYYY-MM-DD HH:mm:ss","-ymdhm":"YYYY-MM-DD HH:mm","-md|hm":"MM-DD | HH:mm","-mdhm":"MM-DD HH:mm"},zh_hk:{ymdhms:"YYYY/MM/DD HH:mm:ss",ymdhm:"YYYY/MM/DD HH:mm",ymd:"YYYY/MM/DD",md:"MM/DD",mdhm:"MM/DD HH:mm",mdhms:"MM/DD HH:mm:ss",hms:"HH:mm:ss",hm:"HH:mm",ms:"mm:ss","-ymdhms":"YYYY-MM-DD HH:mm:ss","-ymdhm":"YYYY-MM-DD HH:mm","-md|hm":"MM-DD | HH:mm","-mdhm":"MM-DD HH:mm"},th:{ymdhms:"DD/MM/YYYY HH:mm:ss",ymdhm:"DD/MM/YYYY HH:mm",ymd:"DD/MM/YYYY",md:"DD/MM",mdhm:"DD/MM HH:mm",mdhms:"DD/MM HH:mm:ss",hms:"HH:mm:ss",hm:"HH:mm",ms:"mm:ss","-ymdhms":"DD-MM-YYYY HH:mm:ss","-ymdhm":"DD-MM-YYYY HH:mm","-md|hm":"DD-MM | HH:mm","-mdhm":"DD-MM HH:mm"},vi:{ymdhms:"DD/MM/YYYY HH:mm:ss",ymdhm:"DD/MM/YYYY HH:mm",ymd:"DD/MM/YYYY",md:"DD/MM",mdhm:"DD/MM HH:mm",mdhms:"DD/MM HH:mm:ss",hms:"HH:mm:ss",hm:"HH:mm",ms:"mm:ss","-ymdhms":"DD-MM-YYYY HH:mm:ss","-ymdhm":"DD-MM-YYYY HH:mm","-md|hm":"DD-MM | HH:mm","-mdhm":"DD-MM HH:mm"},ko:{ymdhms:"YYYY/MM/DD HH:mm:ss",ymdhm:"YYYY/MM/DD HH:mm",ymd:"YYYY/MM/DD",md:"MM/DD",mdhm:"MM/DD HH:mm",mdhms:"MM/DD HH:mm:ss",hms:"HH:mm:ss",hm:"HH:mm",ms:"mm:ss","-ymdhms":"YYYY-MM-DD HH:mm:ss","-ymdhm":"YYYY-MM-DD HH:mm","-md|hm":"MM-DD | HH:mm","-mdhm":"MM-DD HH:mm"},ja:{ymdhms:"YYYY/MM/DD HH:mm:ss",ymdhm:"YYYY/MM/DD HH:mm",ymd:"YYYY/MM/DD",md:"MM/DD",mdhm:"MM/DD HH:mm",mdhms:"MM/DD HH:mm:ss",hms:"HH:mm:ss",hm:"HH:mm",ms:"mm:ss","-ymdhms":"YYYY-MM-DD HH:mm:ss","-ymdhm":"YYYY-MM-DD HH:mm","-md|hm":"MM-DD | HH:mm","-mdhm":"MM-DD HH:mm"},pt:{ymdhms:"DD/MM/YYYY HH:mm:ss",ymdhm:"DD/MM/YYYY HH:mm",ymd:"DD/MM/YYYY",md:"DD/MM",mdhm:"DD/MM HH:mm",mdhms:"DD/MM HH:mm:ss",hms:"HH:mm:ss",hm:"HH:mm",ms:"mm:ss","-ymdhms":"DD-MM-YYYY HH:mm:ss","-ymdhm":"DD-MM-YYYY HH:mm","-md|hm":"DD-MM | HH:mm","-mdhm":"DD-MM HH:mm"},es:{ymdhms:"DD/MM/YYYY HH:mm:ss",ymdhm:"DD/MM/YYYY HH:mm",ymd:"DD/MM/YYYY",md:"DD/MM",mdhm:"DD/MM HH:mm",mdhms:"DD/MM HH:mm:ss",hms:"HH:mm:ss",hm:"HH:mm",ms:"mm:ss","-ymdhms":"DD-MM-YYYY HH:mm:ss","-ymdhm":"DD-M
28M-YYYY HH:mm","-md|hm":"DD-MM | HH:mm","-mdhm":"DD-MM HH:mm"},de:{ymdhms:"DD/MM/YYYY HH:mm:ss",ymdhm:"DD/MM/YYYY HH:mm",ymd:"DD/MM/YYYY",md:"DD/MM",mdhm:"DD/MM HH:mm",mdhms:"DD/MM HH:mm:ss",hms:"HH:mm:ss",hm:"HH:mm",ms:"mm:ss","-ymdhms":"DD-MM-YYYY HH:mm:ss","-ymdhm":"DD-MM-YYYY HH:mm","-md|hm":"DD-MM | HH:mm","-mdhm":"DD-MM HH:mm"},fr:{ymdhms:"DD/MM/YYYY HH:mm:ss",ymdhm:"DD/MM/YYYY HH:mm",ymd:"DD/MM/YYYY",md:"DD/MM",mdhm:"DD/MM HH:mm",mdhms:"DD/MM HH:mm:ss",hms:"HH:mm:ss",hm:"HH:mm",ms:"mm:ss","-ymdhms":"DD-MM-YYYY HH:mm:ss","-ymdhm":"DD-MM-YYYY HH:mm","-md|hm":"DD-MM | HH:mm","-mdhm":"DD-MM HH:mm"},it:{ymdhms:"DD/MM/YYYY HH:mm:ss",ymdhm:"DD/MM/YYYY HH:mm",ymd:"DD/MM/YYYY",md:"DD/MM",mdhm:"DD/MM HH:mm",mdhms:"DD/MM HH:mm:ss",hms:"HH:mm:ss",hm:"HH:mm",ms:"mm:ss","-ymdhms":"DD-MM-YYYY HH:mm:ss","-ymdhm":"DD-MM-YYYY HH:mm","-md|hm":"DD-MM | HH:mm","-mdhm":"DD-MM HH:mm"},ru:{ymdhms:"DD/MM/YYYY HH:mm:ss",ymdhm:"DD/MM/YYYY HH:mm",ymd:"DD/MM/YYYY",md:"DD/MM",mdhm:"DD/MM HH:mm",mdhms:"DD/MM HH:mm:ss",hms:"HH:mm:ss",hm:"HH:mm",ms:"mm:ss","-ymdhms":"DD-MM-YYYY HH:mm:ss","-ymdhm":"DD-MM-YYYY HH:mm","-md|hm":"DD-MM | HH:mm","-mdhm":"DD-MM HH:mm"},id:{ymdhms:"DD/MM/YYYY HH:mm:ss",ymdhm:"DD/MM/YYYY HH:mm",ymd:"DD/MM/YYYY",md:"DD/MM",mdhm:"DD/MM HH:mm",mdhms:"DD/MM HH:mm:ss",hms:"HH:mm:ss",hm:"HH:mm",ms:"mm:ss","-ymdhms":"DD-MM-YYYY HH:mm:ss","-ymdhm":"DD-MM-YYYY HH:mm","-md|hm":"DD-MM | HH:mm","-mdhm":"DD-MM HH:mm"},hi:{ymdhms:"DD/MM/YYYY HH:mm:ss",ymdhm:"DD/MM/YYYY HH:mm",ymd:"DD/MM/YYYY",md:"DD/MM",mdhm:"DD/MM HH:mm",mdhms:"DD/MM HH:mm:ss",hms:"HH:mm:ss",hm:"HH:mm",ms:"mm:ss","-ymdhms":"DD-MM-YYYY HH:mm:ss","-ymdhm":"DD-MM-YYYY HH:mm","-md|hm":"DD-MM | HH:mm","-mdhm":"DD-MM HH:mm"},tl:{ymdhms:"MM/DD/YYYY HH:mm:ss",ymdhm:"MM/DD/YYYY HH:mm",ymd:"MM/DD/YYYY",md:"MM/DD",mdhm:"MM/DD HH:mm",mdhms:"MM/DD HH:mm:ss",hms:"HH:mm:ss",hm:"HH:mm",ms:"mm:ss","-ymdhms":"MM-DD-YYYY HH:mm:ss","-ymdhm":"MM-DD-YYYY HH:mm","-md|hm":"MM-DD | HH:mm","-mdhm":"MM-DD HH:mm"},km:{ymdhms:"DD/MM/YYYY HH:mm:ss",ymdhm:"DD/MM/YYYY HH:mm",ymd:"DD/MM/YYYY",md:"DD/MM",mdhm:"DD/MM HH:mm",mdhms:"DD/MM HH:mm:ss",hms:"HH:mm:ss",hm:"HH:mm",ms:"mm:ss","-ymdhms":"DD-MM-YYYY HH:mm:ss","-ymdhm":"DD-MM-YYYY HH:mm","-md|hm":"DD-MM | HH:mm","-mdhm":"DD-MM HH:mm"},te:{ymdhms:"DD/MM/YYYY HH:mm:ss",ymdhm:"DD/MM/YYYY HH:mm",ymd:"DD/MM/YYYY",md:"DD/MM",mdhm:"DD/MM HH:mm",mdhms:"DD/MM HH:mm:ss",hms:"HH:mm:ss",hm:"HH:mm",ms:"mm:ss","-ymdhms":"DD-MM-YYYY HH:mm:ss","-ymdhm":"DD-MM-YYYY HH:mm","-md|hm":"DD-MM | HH:mm","-mdhm":"DD-MM HH:mm"},ta:{ymdhms:"DD/MM/YYYY HH:mm:ss",ymdhm:"DD/MM/YYYY HH:mm",ymd:"DD/MM/YYYY",md:"DD/MM",mdhm:"DD/MM HH:mm",mdhms:"DD/MM HH:mm:ss",hms:"HH:mm:ss",hm:"HH:mm",ms:"mm:ss","-ymdhms":"DD-MM-YYYY HH:mm:ss","-ymdhm":"DD-MM-YYYY HH:mm","-md|hm":"DD-MM | HH:mm","-mdhm":"DD-MM HH:mm"},mr:{ymdhms:"DD/MM/YYYY HH:mm:ss",ymdhm:"DD/MM/YYYY HH:mm",ymd:"DD/MM/YYYY",md:"DD/MM",mdhm:"DD/MM HH:mm",mdhms:"DD/MM HH:mm:ss",hms:"HH:mm:ss",hm:"HH:mm",ms:"mm:ss","-ymdhms":"DD-MM-YYYY HH:mm:ss","-ymdhm":"DD-MM-YYYY HH:mm","-md|hm":"DD-MM | HH:mm","-mdhm":"DD-MM HH:mm"},kn:{ymdhms:"DD/MM/YYYY HH:mm:ss",ymdhm:"DD/MM/YYYY HH:mm",ymd:"DD/MM/YYYY",md:"DD/MM",mdhm:"DD/MM HH:mm",mdhms:"DD/MM HH:mm:ss",hms:"HH:mm:ss",hm:"HH:mm",ms:"mm:ss","-ymdhms":"DD-MM-YYYY HH:mm:ss","-ymdhm":"DD-MM-YYYY HH:mm","-md|hm":"DD-MM | HH:mm","-mdhm":"DD-MM HH:mm"},my:{ymdhms:"DD/MM/YYYY HH:mm:ss",ymdhm:"DD/MM/YYYY HH:mm",ymd:"DD/MM/YYYY",md:"DD/MM",mdhm:"DD/MM HH:mm",mdhms:"DD/MM HH:mm:ss",hms:"HH:mm:ss",hm:"HH:mm",ms:"mm:ss","-ymdhms":"DD-MM-YYYY HH:mm:ss","-ymdhm":"DD-MM-YYYY HH:mm","-md|hm":"DD-MM | HH:mm","-mdhm":"DD-MM HH:mm"},tr:{ymdhms:"DD/MM/YYYY HH:mm:ss",ymdhm:"DD/MM/YYYY HH:mm",ymd:"DD/MM/YYYY",md:"DD/MM",mdhm:"DD/MM HH:mm",mdhms:"DD/MM HH:mm:ss",hms:"HH:mm:ss",hm:"HH:mm",ms:"mm:ss","-ymdhms":"DD-MM-YYYY HH:mm:ss","-ymdhm":"DD-MM-YYYY HH:mm","-md|hm":"DD-MM | HH:mm","-mdhm":"DD-MM HH:mm"},bn:{ymdhms:"DD/MM/YYYY HH:mm:ss",ymdhm:"DD/MM/YYYY HH:mm",ymd:"DD/MM/YYYY",md:"DD/MM",mdhm:"DD/MM HH:mm",mdhms:"DD/MM HH:mm:ss",hms:"HH:mm:ss",hm:"HH:mm",ms:"mm:ss","-ymdhms":"DD-MM-YYYY HH:mm:ss","-ymdhm":"DD-MM-YYYY HH:mm","-md|hm":"DD-M
28M | HH:mm","-mdhm":"DD-MM HH:mm"},pa:{ymdhms:"DD/MM/YYYY HH:mm:ss",ymdhm:"DD/MM/YYYY HH:mm",ymd:"DD/MM/YYYY",md:"DD/MM",mdhm:"DD/MM HH:mm",mdhms:"DD/MM HH:mm:ss",hms:"HH:mm:ss",hm:"HH:mm",ms:"mm:ss","-ymdhms":"DD-MM-YYYY HH:mm:ss","-ymdhm":"DD-MM-YYYY HH:mm","-md|hm":"DD-MM | HH:mm","-mdhm":"DD-MM HH:mm"},ar:{ymdhms:"HH:mm:ss DD/MM/YYYY",ymdhm:"HH:mm DD/MM/YYYY",ymd:"DD/MM/YYYY",md:"DD/MM",mdhm:"HH:mm DD/MM",mdhms:"HH:mm:ss DD/MM",hms:"HH:mm:ss",hm:"HH:mm",ms:"mm:ss","-ymdhms":"HH:mm:ss DD-MM-YYYY","-ymdhm":"HH:mm DD-MM-YYYY","-md|hm":"DD-MM | HH:mm","-mdhm":"DD-MM HH:mm",rtl:{ymdhms:"DD/MM/YYYY HH:mm:ss",ymdhm:"DD/MM/YYYY HH:mm",ymd:"DD/MM/YYYY",md:"DD/MM",mdhm:"DD/MM HH:mm",mdhms:"DD/MM HH:mm:ss",hms:"HH:mm:ss",hm:"HH:mm",ms:"mm:ss","-ymdhms":"DD-MM-YYYY HH:mm:ss","-ymdhm":"DD-MM-YYYY HH:mm","-md|hm":"DD-MM | HH:mm","-mdhm":"DD-MM HH:mm"}},ur:{ymdhms:"HH:mm:ss DD/MM/YYYY",ymdhm:"HH:mm DD/MM/YYYY",ymd:"DD/MM/YYYY",md:"DD/MM",mdhm:"HH:mm DD/MM",mdhms:"HH:mm:ss DD/MM",hms:"HH:mm:ss",hm:"HH:mm",ms:"mm:ss","-ymdhms":"HH:mm:ss DD-MM-YYYY","-ymdhm":"HH:mm DD-MM-YYYY","-md|hm":"DD-MM | HH:mm","-mdhm":"DD-MM HH:mm",rtl:{ymdhms:"DD/MM/YYYY HH:mm:ss",ymdhm:"DD/MM/YYYY HH:mm",ymd:"DD/MM/YYYY",md:"DD/MM",mdhm:"DD/MM HH:mm",mdhms:"DD/MM HH:mm:ss",hms:"HH:mm:ss",hm:"HH:mm",ms:"mm:ss","-ymdhms":"DD-MM-YYYY HH:mm:ss","-ymdhm":"DD-MM-YYYY HH:mm","-md|hm":"DD-MM | HH:mm","-mdhm":"DD-MM HH:mm"}},af:{ymdhms:"DD/MM/YYYY HH:mm:ss",ymdhm:"DD/MM/YYYY HH:mm",ymd:"DD/MM/YYYY",md:"DD/MM",mdhm:"DD/MM HH:mm",mdhms:"DD/MM HH:mm:ss",hms:"HH:mm:ss",hm:"HH:mm",ms:"mm:ss","-ymdhms":"DD-MM-YYYY HH:mm:ss","-ymdhm":"DD-MM-YYYY HH:mm","-md|hm":"DD-MM | HH:mm","-mdhm":"DD-MM HH:mm"},sw:{ymdhms:"DD/MM/YYYY HH:mm:ss",ymdhm:"DD/MM/YYYY HH:mm",ymd:"DD/MM/YYYY",md:"DD/MM",mdhm:"DD/MM HH:mm",mdhms:"DD/MM HH:mm:ss",hms:"HH:mm:ss",hm:"HH:mm",ms:"mm:ss","-ymdhms":"DD-MM-YYYY HH:mm:ss","-ymdhm":"DD-MM-YYYY HH:mm","-md|hm":"DD-MM | HH:mm","-mdhm":"DD-MM HH:mm"},am:{ymdhms:"YYYY/MM/DD HH:mm:ss",ymdhm:"YYYY/MM/DD HH:mm",ymd:"YYYY/MM/DD",md:"MM/DD",mdhm:"MM/DD HH:mm",mdhms:"MM/DD HH:mm:ss",hms:"HH:mm:ss",hm:"HH:mm",ms:"mm:ss","-ymdhms":"YYYY-MM-DD HH:mm:ss","-ymdhm":"YYYY-MM-DD HH:mm","-md|hm":"MM-DD | HH:mm","-mdhm":"MM-DD HH:mm"},ne:{ymdhms:"YYYY/MM/DD HH:mm:ss",ymdhm:"YYYY/MM/DD HH:mm",ymd:"YYYY/MM/DD",md:"MM/DD",mdhm:"MM/DD HH:mm",mdhms:"MM/DD HH:mm:ss",hms:"HH:mm:ss",hm:"HH:mm",ms:"mm:ss","-ymdhms":"YYYY-MM-DD HH:mm:ss","-ymdhm":"YYYY-MM-DD HH:mm","-md|hm":"MM-DD | HH:mm","-mdhm":"MM-DD HH:mm"},si:{ymdhms:"YYYY/MM/DD HH:mm:ss",ymdhm:"YYYY/MM/DD HH:mm",ymd:"YYYY/MM/DD",md:"MM/DD",mdhm:"MM/DD HH:mm",mdhms:"MM/DD HH:mm:ss",hms:"HH:mm:ss",hm:"HH:mm",ms:"mm:ss","-ymdhms":"YYYY-MM-DD HH:mm:ss","-ymdhm":"YYYY-MM-DD HH:mm","-md|hm":"MM-DD | HH:mm","-mdhm":"MM-DD HH:mm"}},e6=()=>{const e=Ye().utcOffset()/60;return(e>0?"+":"")+e},Ni=(e,t="ymdhms")=>{const{siteInfos:n}=ue();return Zr(e,{offset:n==null?void 0:n.timeZone,fmt:t})},eR=(e,t,n)=>{var r,s,i,c;const o=t==="rtl"?(s=(r=Ea==null?void 0:Ea[e])==null?void 0:r[t])==null?void 0:s[n]:void 0,a=(i=Ea==null?void 0:Ea[e])==null?void 0:i[n];return(c=o!=null?o:a)!=null?c:Ea.en.ymdhms},Lde=({fmt:e="ymd",fmtLan:t,direction:n}={})=>{const o=t||Ge().language,a=n||document.documentElement.getAttribute("dir");return eR(o,a,e)},Zr=(e=Date.now()/1e3,{fmt:t="ymdhms",offset:n=Ye().utcOffset(),template:o="",fmtLan:a,direction:r}={})=>{const s=a||Ge().language,i=r||document.documentElement.getAttribute("dir")||void 0;return o=o||eR(s,i,t),Ye.utc(e*1e3).utcOffset(n).format(o)},Tde=(e,{fmt:t="ymdhms",template:n="",fmtLan:o}={})=>{var r,s;const a=o||Ge().language;return n=n||((s=(r=Ea==null?void 0:Ea[a])==null?void 0:r[t])!=null?s:Ea.en.ymdhms),Ye(e).format(n)},Rde=(e=new Date,t)=>{const{utcOffset:n,secondsIn:o,secondsOut:a}=Pe({utcOffset:Ye().utcOffset(),secondsIn:!1,secondsOut:!0},t);return e=o&&typeof e=="number"?Ye.unix(e):Ye(e),e=e.utcOffset(n),t!=null&&t.daysAgo&&(e=e.subtract(t==null?void 0:t.daysAgo,"days")),t!=null&&t.isStart&&(e=e.startOf("day")),t!=null&&t.isEnd&&(e=e.endOf("day")),a?e.unix():+e},tR=()=>{const{siteInfos:e}=ue(),t=e==null?void 0:e.timeZone,n=t==null?void 0:t.match(/UTC\s*([+-])(\d{2}):(\d{2})/);if(!n)return 0;const o=n[1]==="+"?1:-1,a=parseInt(n[2],10),r=parseInt(n[3],10);return o*(a+r/60)},Ode=(e,t=!1,n=!0)=>{const o=tR();console.log(`${t?"end":"start"} parseTime:`,o,e);let a=Ye(e).utcOffset(o,n);return t?a=a.endOf("day"):a=a.startOf("day"),a.unix()},Pde=e=>{const{siteInfos:t}
28=ue(),n=t6(t==null?void 0:t.timeZone),o=Ye().tz(n),a=Ye.utc(e*1e3).tz(n),{t:r}=we();return a.isSame(o,"day")?`${r("lobby.center.components.dateRadio.today")} ${Zr(e,{offset:t==null?void 0:t.timeZone,fmt:"hms"})}`:a.isSame(o.subtract(1,"day"),"day")?`${r("lobby.center.components.dateRadio.yesterday")} ${Zr(e,{offset:t==null?void 0:t.timeZone,fmt:"hms"})}`:a.isSame(o,"year")?Zr(e,{offset:t==null?void 0:t.timeZone,fmt:"mdhms"}):Zr(e,{offset:t==null?void 0:t.timeZone,fmt:"ymdhms"})},t6=e=>{const t=e.match(/UTC ([+-]\d{1,2}):(\d{2})/);if(t){const n=t[1];return n.startsWith("-")?`Etc/GMT+${Math.abs(parseInt(n))}`:`Etc/GMT-${Math.abs(parseInt(n))}`}return"UTC"},Dde=(e=!0)=>{const{t}=we(),n=[{label:()=>t("lobby.center.components.dateRadio.today"),value:uo.TODAY},{label:()=>t("lobby.center.components.dateRadio.yesterday"),value:uo.YESTERDAY},{label:()=>t("lobby.center.components.dateRadio.thisWeek"),value:uo.THIS_WEEK},{label:()=>t("lobby.center.components.dateRadio.lastWeek"),value:uo.LAST_WEEK},{label:()=>t("lobby.center.components.dateRadio.thisMonth"),value:uo.THIS_MONTH},{label:()=>t("lobby.center.components.dateRadio.lastMonth"),value:uo.LAST_MONTH}];return e?n.concat([{label:()=>t("lobby.center.components.dateRadio.all"),value:uo.ALL}]):n};var nR=(e=>(e.APP="APP",e.GUIDE="GUIDE",e.FALLBACK="FALLBACK",e))(nR||{});const Mde=ke("download-club",()=>{const{openDialog:e}=cn(),{isIos:t,isMacos:n}=Qe(),o=O(),a=async()=>{const i=await zV({clubId:dt.id});i&&(o.value=i)},r=C(()=>{var c,l;const i=t||n?(c=o.value)==null?void 0:c.pkgListForIos:(l=o.value)==null?void 0:l.pkgListForAndroid;return i==null?void 0:i.filter(u=>u.downloadLink)}),s=async()=>{e("downloadClubAppDialog")};return a(),{clubDownloadList:r,getClubAppDownloadInfo:a,openClubDownloadDialog:s}}),bg=()=>{const{isIos:e,isMacos:t}=Qe(),n=Ge(),o=zo(),a=Ze(),r=e||t,s=C(()=>{var u,d,m,g,f,_,h,p,y,b;let c,l;return o.bootInstallation&&(c=(m=(d=(u=o.bootInstallation.installationHintLanguage)==null?void 0:u.find(v=>v.key===n.language))==null?void 0:d.value)!=null?m:""),((g=o.bootInstallation)==null?void 0:g.shortcutsLogoType)===mb.SYSTEM?l=(f=a.channelGlobalConfig.appIcon)!=null?f:"":l=(h=(_=o.bootInstallation)==null?void 0:_.shortcutsLogo)!=null?h:"",{title:((p=a.brandLogoInfos)==null?void 0:p.installationHint)||"",logo:l||((y=a.brandLogoInfos)==null?void 0:y.appIconBigPath)||"",innerTitle:c,appIcon:(b=a.channelGlobalConfig.appIcon)!=null?b:""}}),i=C(()=>{var c,l,u,d;return r?((l=(c=a.brandLogoInfos)==null?void 0:c.commonConfig)==null?void 0:l.iosAppStoreLogo)||"":((d=(u=a.brandLogoInfos)==null?void 0:u.commonConfig)==null?void 0:d.androidAppStoreLogo)||""});return{downloadInfo:s,buttonIcon:i}},ad=e=>{const{isIos:t,isP2a:n,isMacos:o,isFromShortcut:a,isiOSWebClip:r}=Qe(),s=zo(),{openDialog:i,closeDialog:c}=cn(),l=t||o,u=bg(),d=C(()=>u.downloadInfo.value),m=C(()=>{var y;return Lw(e)||((y=s.bootInstallation)==null?void 0:y.installType)||""}),g=y=>{var b,v,A,L,T,S;if(l&&y===Se.Speed)return(b=s.appVersion)==null?void 0:b.iosWebSpeedPkgVersion;if(l&&y===Se.Normal)return(v=s.appVersion)==null?void 0:v.iosPkgVersion;if(y===Se.Normal)return(A=s.appVersion)==null?void 0:A.androidPkgVersion;if(y===Se.Speed)return(L=s.appVersion)==null?void 0:L.androidWebSpeedPkgVersion;if(y===Se.UnBanNormal)return(T=s.appVersion)==null?void 0:T.androidUnbanVersion;if(y===Se.UnBanSpeed)return(S=s.appVersion)==null?void 0:S.androidUnbanSpeedVersion},f=(y=!1)=>{var A,L;let b=[...s.downlaodAppList];if(b=b==null?void 0:b.filter(T=>{const S=[];return r&&S.push(Se.Quick),re.package.isLite&&S.push(Se.Speed,Se.UnBanSpeed),!S.includes(T.type)}),!y&&m.value){const T=[{name:(A=Bd(Se.DesktopShortcut))!=null?A:"",type:Se.DesktopShortcut},{name:(L=Bd(Se.PWA))!=null?L:"",type:Se.PWA,sizeFormat:"(10Kb)"}];b=[...fn.isActivated?[]:T,...b||[]],b=b.filter(S=>{const I=cl(S.type);return m.value.includes(String(I))}).filter(S=>{const I=[];return n&&I.push(Se.PWA),(n||a)&&I.push(Se.DesktopShortcut),!I.includes(S.type)})}const v=u.buttonIcon.value;return b==null?void 0:b.map(T=>{const S=cl(T.type),I=$Y(S),R=![Se.PWA,Se.Normal,Se.Vest,Se.Quick].includes(S),D=T.type===Se.PWA,M=g(T.type);let B;if(l){const H=YY(T.signType);B=Bd(T.type)+(H?`(${H}
28)`:"")}else B=Bd(T.type);let E=I.reward||I.amount;const Y=String(E);return/^\d+(\.\d+)?$/.test(Y)&&(E=E?`+${Y}`:0),{version:M,...T,name:B,reward:E,ghost:R,hot:D,icon:v,sizeFormat:T.size?`(${Number(T.size).toFixed(1)}M)`:T.sizeFormat||""}})},_=C(()=>f(!0)),h=C(()=>f());return{downloadInfo:d,installType:m,downloadDefaultList:_,downloadMiddleList:h,openMiddleDownloadDialog:async y=>{var I,R;const{pwaChannelShowInHome:b,isHiddenAppEnter:v}=Ut(),{options:A,...L}=y!=null?y:{};if(v){y!=null&&y.forcePop&&await i("downloadMainDialog",{openType:"insert",options:{...L,type:nR.APP},...A!=null?A:{}});return}if(XT())return;let T=(I=h.value)!=null?I:[];if((y==null?void 0:y.from)==="mainPopup"&&(T=T.filter(D=>D.type!==Se.DesktopShortcut)),b&&!n)return s.download({type:t?Se.Quick:Se.PWA,value:t?s.webclipUrl:void 0},{closeDialogName:y==null?void 0:y.closeDialogName});if(T.length===1&&T[0])return s.download(T[0],{closeDialogName:y==null?void 0:y.closeDialogName});await i("downloadMainDialog",{options:{...L},...(R=y==null?void 0:y.options)!=null?R:{}}),y!=null&&y.closeDialogName&&c(y==null?void 0:y.closeDialogName)}}},n6=e=>{const{downloadMiddleList:t,downloadDefaultList:n,openMiddleDownloadDialog:o}=ad(e==null?void 0:e.installType),a=Ut(),r=C(()=>a.isHiddenAppEnter),s=C(()=>{var l;return(l=t.value)==null?void 0:l.length}),i=C(()=>{var l;return(l=n.value)==null?void 0:l.length});return{isHiddenAppEnter:r,haveApps:s,haveDefaultApps:i,downloadMiddleList:t,downloadDefaultList:n,openCustomDownload:()=>o(e)}},Nde=async e=>{var u;const{receiveDeviceType:t,silent:n,fn:o,tipType:a,closeCallback:r,receiveDeviceLoginType:s}=e,{t:i}=we();if(!t)return!1;const{canReceive:c,errorMessage:l}=rR(t,s,a);if(!c&&!n){const d=oR((u=t.split(","))!=null?u:[]),m=[Rt.ANDROID_APP,Rt.IOS_APP],f=d.some(h=>m.some(p=>p===h))&&a6(d),_=await yr.showDialog({title:i("lobby.receiveModal.kindTips"),width:Zt(600),message:l,confirmButtonText:i("lobby.gameMenu.toDownloadApp"),cancelButtonText:i("lobby.modal.task.close"),showConfirmButton:f,showCancelButton:f,showCloseButton:!f,onConfirm:()=>{n6({installType:s?OR(s):"",forcePop:!0,options:{openType:"overlay"}}).openCustomDownload(),o==null||o()},onCancel:()=>{_.close(),r==null||r()},onClose:()=>{_.close(),r==null||r()}})}return!!c},oR=e=>{const{ANDROID_H5:t,IOS_H5:n,PC_H5:o}=Rt;return e.includes(String(o))&&(e=[...new Set(e.map(a=>a===String(o)?[String(t),String(n)]:a).flat())]),e.map(a=>o6(a))},o6=e=>{const{ANDROID_APP:t,IOS_APP:n,PC_Windows:o,ANDROID_H5:a,IOS_H5:r}=Rt;switch(e){case String(t):return t;case String(n):return n;case String(o):return o;case String(a):return a;case String(r):default:return r}},a6=e=>{const{isIos:t,isMacos:n}=Qe();return t||n?e.includes(Rt.IOS_APP):e.includes(Rt.ANDROID_APP)},r6=e=>{const{NORMAL:t,APP:n,SPEED:o,VEST:a,PWA:r,SHORTCUT:s,QUICK:i,TELEGRAM:c,OTHER:l}=rn;switch(e){case String(t):return t;case String(n):return n;case String(o):return o;case String(a):return a;case String(r):return r;case String(s):return s;case String(i):return i;case String(c):return c;case String(l):default:return l}},aR=[rn.SPEED,rn.VEST,rn.PWA,rn.QUICK],s6=[...aR,rn.SHORTCUT,rn.TELEGRAM],i6=[rn.NORMAL,rn.OTHER],c6=e=>{var o;const t=((o=e==null?void 0:e.split(","))!=null?o:[]).map(a=>r6(a));t.sort((a,r)=>+a-+r);const n=Vg();return aR.includes(n)?t.length&&s6.includes(n)&&!t.includes(n):!t.includes(rn.APP)},rR=(e,t,n)=>{var v,A,L;const{t:o}=we();if(!i6.includes(Vg())&&t&&c6(t)){const T={[Mr.Use]:o("lobby.event.validTips.limitTypeAllUse"),[Mr.Exchange]:o("lobby.event.validTips.limitTypeAllExchange"),[Mr.Receive]:o("lobby.event.validTips.limitTypeAll")};return{canReceive:!1,errorMessage:(v=T[n])!=null?v:T[Mr.Receive]}}const a=oR((A=e==null?void 0:e.split(","))!=null?A:[]);a.sort((T,S)=>+T-+S);const r=sA(),s=Qe(),i=a.includes(Rt.IOS_APP),c=a.includes(Rt.ANDROID_APP),l=a.includes(Rt.PC_Windows),u=a.includes(Rt.IOS_H5),d=a.includes(Rt.ANDROID_H5),m=s.isH5Shortcut&&!s.isP2a;let g;if(m?g=s.isIos?i:c:r===+Rt.PC_Windows?g=l:r===+Rt.IOS_H5?g=u:r===+Rt.ANDROID_H5?g=d:r===+Rt.ANDROID_APP?g=c:r===+Rt.IOS_APP&&(g=i),g)return{canReceive:g,errorMessage:""};const f=[];i&&c?f.push(o("lobby.event.validTips.limitType_1_2")):i?f.push(o(`lobby.event.validTips.limitType_${Rt.IOS_APP}`)):c&&f.push(o(`lobby.event.validTips.limitType_${Rt.ANDROID_APP}`)),l&&u&&d?f.push(o("lobby.event.validTips.limitType_4_5_6")):u&&d?f.push(o("lobby.event.validTips.limitType_5_6")):(l&&f.push(o(`lobby.event.validTips.limitType_${Rt.PC_W
28indows}`)),u&&f.push(o(`lobby.event.validTips.limitType_${Rt.IOS_H5}`)),d&&f.push(o(`lobby.event.validTips.limitType_${Rt.ANDROID_H5}`)));const _=i||c,h=[...new Set(f)].join(JE()),p={[Mr.Use]:{app:o("lobby.event.validTips.limitTypeUse",{x:h}),web:o("lobby.event.validTips.limitTypeWebUse",{x:h})},[Mr.Exchange]:{app:o("lobby.event.validTips.limitTypeExchange",{x:h}),web:o("lobby.event.validTips.limitTypeWebExchange",{x:h})},[Mr.Receive]:{app:o("lobby.event.validTips.limitType",{x:h}),web:o("lobby.event.validTips.limitTypeWeb",{x:h})}},y=(L=p[n])!=null?L:p[Mr.Receive],b=_?y.app:y.web;return{canReceive:g,errorMessage:b}},l6=rt(()=>V(()=>import("./0_EntryLoginRegisterChunk.DMUz1wnE.js").then(e=>e.gU),__vite__mapDeps([0])),e=>e.usePromoteStore,"usePromoteStore");var xe=(e=>(e.Integral="integral",e.Activity="activity",e.Lucky="lucky",e.Bouns="bouns",e.Lottery="lottery",e.SmallBlindTimes="smallBlindTimes",e.BigBlindTimes="bigBlindTimes",e.SuperBlindTimes="superBlindTimes",e.Discount="discount",e.MultipleBonus="multipleBonus",e))(xe||{}),Wr=(e=>(e.Mall="mall",e.Surprise="surprse",e.Common="common",e.Task="task",e.Receive="Receive",e.TaskSeries="TaskSeries",e))(Wr||{}),Qs=(e=>(e.Up="Up",e.Right="Right",e.Down="Down",e.Left="Left",e))(Qs||{}),u6=(e=>(e[e.Yes=1]="Yes",e[e.No=2]="No",e))(u6||{}),d6=(e=>(e.New="New",e.Recommend="Recommended",e.Hot="Hot",e))(d6||{}),m6=(e=>(e[e.All=0]="All",e[e.Coupon=1]="Coupon",e[e.CutOnce=2]="CutOnce",e[e.BlindBox=3]="BlindBox",e[e.Redeem=4]="Redeem",e[e.Bonus=5]="Bonus",e[e.Physical=6]="Physical",e[e.Custom=7]="Custom",e))(m6||{}),cu=(e=>(e[e.NoLimit=0]="NoLimit",e[e.Integral=2]="Integral",e[e.Activity=1]="Activity",e[e.Lucky=3]="Lucky",e[e.Balance=4]="Balance",e))(cu||{}),g6=(e=>(e[e.Apply=1]="Apply",e[e.Exchanged=2]="Exchanged",e[e.Reject=3]="Reject",e))(g6||{}),f6=(e=>(e[e.All=0]="All",e[e.Apply=1]="Apply",e[e.Exchanged=2]="Exchanged",e[e.Reject=3]="Reject",e[e.Shipped=91]="Shipped",e[e.Signed=92]="Signed",e[e.Shipmend=93]="Shipmend",e[e.Canceled=94]="Canceled",e))(f6||{});const p6={[xe.Integral]:{key:cu.Integral,disabledIcon:""},[xe.Activity]:{key:cu.Activity,disabledIcon:""},[xe.Lucky]:{key:cu.Lucky,disabledIcon:""},[xe.Bouns]:{key:cu.Balance,disabledIcon:""}},h6={[xe.Integral]:{},[xe.Activity]:{key:ct.Activity,textColor:"var(--activation, #63E733)"},[xe.Lucky]:{key:ct.LuckyVal,textColor:"#FFAA09"},[xe.Bouns]:{key:ct.Old,textColor:"#FFAA09"},[xe.SmallBlindTimes]:{key:ct.SmallBlindTimes,textColor:"#FFAA09"},[xe.BigBlindTimes]:{key:ct.BigBlindTimes,textColor:"#FFAA09"},[xe.SuperBlindTimes]:{key:ct.SuperBlindTimes,textColor:"#FFAA09"}},_6={[xe.Integral]:{key:ct.Integral,textColor:"var(--skin__neutral_1)"},[xe.Activity]:{key:ct.Activity},[xe.Lucky]:{key:ct.LuckyVal},[xe.Bouns]:{key:ct.Old},[xe.MultipleBonus]:{key:ct.MultipleBonus},[xe.SmallBlindTimes]:{key:ct.SmallBlindTimes,textColor:"var(--skin__neutral_1)"},[xe.BigBlindTimes]:{key:ct.BigBlindTimes,textColor:"var(--skin__neutral_1)"},[xe.SuperBlindTimes]:{key:ct.SuperBlindTimes,textColor:"var(--skin__neutral_1)"},[xe.Discount]:{key:ct.Discount,textColor:"var(--skin__neutral_1)"}},b6={[xe.Integral]:{key:ct.Integral,textColor:"var(--skin__neutral_1)"},[xe.Activity]:{key:ct.Activity},[xe.Lucky]:{key:ct.LuckyVal},[xe.Bouns]:{key:ct.Old},[xe.MultipleBonus]:{key:ct.MultipleBonus},[xe.SmallBlindTimes]:{key:ct.SmallBlindTimes,textColor:"var(--skin__neutral_1)"},[xe.BigBlindTimes]:{key:ct.BigBlindTimes,textColor:"var(--skin__neutral_1)"},[xe.SuperBlindTimes]:{key:ct.SuperBlindTimes,textColor:"var(--skin__neutral_1)"},[xe.Discount]:{key:ct.Discount,textColor:"var(--skin__neutral_1)"}},y6={[xe.Integral]:{key:ct.Integral,textColor:"var(--integral, #fbcc51)"},[xe.Activity]:{key:ct.Activity,textColor:"var(--activity, #04be02)",iconColor:"var(--activity, #04be02)"},[xe.Lucky]:{key:ct.LuckyVal,textColor:"var(--lucky, #fcf62e)"},[xe.Bouns]:{key:ct.Old,textColor:"var(--skin__accent_3)"},[xe.MultipleBonus]:{key:ct.MultipleBonus,textColor:"var(--skin__accent_3)"},[xe.SmallBlindTimes]:{key:ct.SmallBlindTimes,textColor:"var(--lottery, #ffaa09)",iconColor:"var(--lottery, #ffaa09)"},[xe.BigBlindTimes]:{key:ct.BigBlindTimes,textColor:"var(--lottery, #ffaa09)",iconColor:"var(--lottery, #ffaa09)"},[xe.SuperBlindTimes]:{key:ct.SuperBlindTimes,textColor:"var(--lottery, #ffaa09)",iconColor:"var(--lottery, #ffaa09)"},[xe.Discount]:{key:ct.Discount,icon:"/lobby_asset/common/web/task/comm_img_dlq_zkj.svg",disabledIcon:"/lobby_asset/common/web/task/comm_img_dlq_zkj.svg",textColor:"var(--discount, #ffffff)",iconColor:"var(--discount-text, #EED8D6)"}},v6=()=>{var o,a;const{t:e}=we(),t=J(),{getCurrencyPayIconByMap:n}=ze();return{[xe.Integral]:{title:e("lobby.event.bet.item.integral"),key:xe.Integral,icon:"/lobby_asset/common/common/event/svip_icon_jf_2.png",disabledIcon:"/lobby_asset/common/common/task/img_jf_zh.png",textColor:"var(--skin__lead)"},[xe.Activity]:{title:e("lobby.reward.base.activity"),key:xe.Activity,icon:"/lobby_asset/common/web/common/comm_icon_shy.svg",textColor:"var(--skin__accent_1)",iconColor:"var(--skin__accent_1)"},[xe.Lucky]:{title:e("lobby.event.luckyWheel.tabs.luckyValue"),key:xe.Lucky,icon:"/lobby_asset/common/common/event/common_icon_xyz.png",disabledIcon:"/lobby_asset/common/common/task/img_xyz_zh.png",textColor:"var(--skin__accent_4, #C609FF)"},[xe.Bouns]:{title:e("lobby.modal.task.amount"),key:xe.Bouns,icon:n((o=t.userInfos)==null?void 0:o.currency),textColor:"var(--skin__accent_3)",iconColor:"var(--skin__accent_3)"},[xe.MultipleBonus]:{title:e("lobby.modal.task.amount"),key:xe.MultipleBonus,icon:n((a=t.userInfos)==null?void 0:a.currency),textColor:"var(--skin__accent_3)",iconColor:"var(--skin__accent_3)"},[xe.Lottery]:{title:e("lobby.event.luckyWheel.draw"),key:xe.Lottery,icon:"/lobby_asset/common/common/common/comm_icon_mh.svg",textColor:"var(--skin__neutral_1)",
28iconColor:"var(--skin__accent_3)"},[xe.SmallBlindTimes]:{title:e("lobby.event.blindBox.smallBox"),key:xe.SmallBlindTimes,icon:"/lobby_asset/common/common/event/img_mhcj_blue.png",disabledIcon:"/lobby_asset/common/common/task/img_mhcj_zh.png",textColor:"var(--skin__neutral_1)",iconColor:"var(--skin__accent_3)"},[xe.BigBlindTimes]:{title:e("lobby.event.blindBox.largeBox"),key:xe.BigBlindTimes,icon:"/lobby_asset/common/common/event/img_mhcj_yellow.png",disabledIcon:"/lobby_asset/common/common/task/img_mhcj_zh.png",textColor:"var(--skin__neutral_1)",iconColor:"var(--skin__accent_3)"},[xe.SuperBlindTimes]:{title:e("lobby.event.blindBox.superBox"),key:xe.SuperBlindTimes,icon:"/lobby_asset/common/common/event/img_mhcj_purple.png",disabledIcon:"/lobby_asset/common/common/task/img_mhcj_zh.png",textColor:"var(--skin__neutral_1)",iconColor:"var(--skin__accent_3)"},[xe.Discount]:{title:e("lobby.surprise.discount"),key:xe.Discount,icon:"/lobby_asset/common/common/task/img_zkj.png",disabledIcon:"/lobby_asset/common/common/task/img_zkj_zh.png",textColor:"var(--skin__neutral_1)",
28iconColor:"var(--skin__primary)"}}},S6=e=>{const t=v6(),o={[Wr.Mall]:p6,[Wr.Surprise]:h6,[Wr.Common]:_6,[Wr.Task]:b6,[Wr.Receive]:y6}[e],a={};return o&&Object.keys(o).forEach(r=>{const s=Pe(t[r],o[r]);s.category=r,a[s.key]={...s}}),a},C6=Object.freeze({angle:180,colorStop:[]}),sR={isApng:{type:Boolean,default:null},src:{type:String,required:!0},normalizeSrcForWatch:{type:[Function,String]},persistError:{type:Boolean,default:!1},thumbSrc:{type:String,default:br},placeholderSrc:{type:String,default:br},errorSrc:{type:String},width:String,height:String,lazy:{type:[Boolean,String],default:!0},lazyOptions:{type:Object},useSkeleton:{type:Boolean},canvasMode:{type:[Boolean,Object]},replaceExtension:{type:[Boolean,Array],default:!0},degrade:{type:Boolean,default:!1},performance:{type:Boolean,default:!1},showBlurAnimation:{type:Boolean,default:!1},hideWhenPopupOpen:{type:Boolean,default:!1},tag:{type:String,default:"img"},color:String,svgGo:{type:Boolean,default:!0},svgLinearGradientConfig:{type:Object,default:()=>C6},svgColorMode:{type:String,default:"fill"},svgInheritSize:{type:Boolean},sizeByAuto:{type:Boolean,default:!1},alt:{type:String,default:void 0},loadingAndSet:{type:String},notLazy:{type:String},fetchPriority:{type:String}},iR=["load"];function w6(e,t){const n=Symbol(e),o=le({name:`${e}Provider`,props:{value:{type:null,required:!0}},setup(s,{slots:i}){return mt(n,s.value),()=>{var c;return kn(gt,{},((c=i.default)==null?void 0:c.call(i))||[])}}});function a(){const s=He(n,t);return s!==void 0?ua(s):void 0}function r(){const s=He(n,t);if(s===void 0)throw new Error(`[Context] ${e} is not provided`);return ua(s)}return{Provider:o,useInject:a,useStrictInject:r,key:n}}const{useInject:cR,key:kde}=w6("ImageConfig"),Zb=Symbol("ImageCore"),lR=Symbol("ImageStrategy"),uR=Symbol("ImageLazy"),m_=e=>{re.isWebClip&&Et.webClipImageHack()?setTimeout(()=>e(),50):e()};function I6(e){fa(()=>{e.setDestroyed(),e.hooks.cleanupLazy(),e.apngPlayerDestroy.forEach(t=>{try{t()}catch(n){}}),e.apngPlayerDestroy.length=0,e.loaderCache.clear();try{e.imgSrc.value="",e.svgContext.value="",e.autoSizeConfig.value={width:"",height:""},e.el.value=void 0}catch(t){}e.loadRecords.clear()})}function A6(e){Gt(()=>{e.loadPlaceholder(),e.hooks.onMountedLoad(e.initAssets)}),fe(()=>{var t,n;if(e.props.normalizeSrcForWatch){if(typeof e.props.normalizeSrcForWatch=="function")return e.props.normalizeSrcForWatch(e.props.src);if(e.props.normalizeSrcForWatch==="ignoreQuery")return e.props.src.split("?")[0]||e.props.src}return(t=e.props.src)!=null&&t.includes("{holiday}")||(n=e.props.src)!=null&&n.includes("lobby_asset")?ol(e.props.src):e.props.src},()=>{e.hooks.onSrcChangeLoad(e.initAssets)})}function L6(){const e=O(0);return{start:()=>++e.value,isLatest:r=>r===e.value,getCurrentToken:()=>e.value,getIsInitial:()=>e.value===0}}const hS=()=>ls.loadingAndSet()===Jn.Loaded||ls.notLazy()===Jn.Loaded;localStorage.removeItem("lobby@image@cache");const _S=(e,t=0,n=()=>!1)=>({hydrate:()=>{if(n())return new Map;try{const o=localStorage.getItem(e);if(!o)return new Map;const a=JSON.parse(o);return typeof a!="object"||a===null?new Map:new Map(Object.entries(a))}catch(o){console.warn(`Failed to parse localStorage item: ${e}`,o)}return new Map},persist:o=>{if(!n())try{if(t>0)for(;o.size>t;){const r=o.keys().next().value;o.delete(r)}const a=JSON.stringify(Object.fromEntries(o));localStorage.setItem(e,a)}catch(a){console.error(`Failed to persist data to localStorage: ${e}`,a)}}});let fp=null;const yg=()=>(fp||(fp={success:new Tc({type:"memory",persistence:_S("lobby@image@cache@success",500,()=>!hS())}),fail:new Tc({type:"memory",persistence:_S("lobby@image@cache@error",100,()=>!hS())})}),fp),rd={get(e,t=!1){return yg().success.get(qs(e),{allowExpired:t})},set(e,t,n){return n==="img"&&!e.includes(";base64")?yg().success.set(qs(e),t,{expires:60*60*24,delayRemove:60*60*24*6}):null}},T6=500,ii=new Map,Jb={get(e){if(e)return ii.get(qs(e))},set(e,t){if(!e||!t)return;const n=qs(e);if(ii.has(n))ii.delete(n);else if(ii.size>=T6){const o=ii.keys().next().value;o!==void 0&&ii.delete(o)}ii.set(n,t)}},ey={get(e){return yg().fail.get(qs(e))},set(e){return yg().fail.set(qs(e),"1",{expires:60*5})}},Bde=Object.freeze(Object.defineProperty({__proto__:null,Cached:rd,ErrorCached:ey,SvgMemCache:Jb},Symbol.toStringTag,{value:"Module"})),R6=[zt.Success,zt.Error];function O6(e,t){const n=c=>{e.useLoadingAndSet.value||!e.props.thumbSrc||!R6.includes(e.status.value)||t.load("thumbSrc").then(l=>{if(t.checkToken(c,u=>{const d=t.loadRecords.get(u);return!d.srcLoadingAndSet&&!d.srcLoaded})){t.setRenderResult(l,"thumbSrc");const u=t.loadRecords.get(c);if(!u||e.getIsDestroyed())return;u.thumbSrcLoaded=!0}}).catch(()=>{})},o=c=>{const l=(d,m)=>{if(e.useLoadingAndSet.value&&m==="img"){t.setRenderResult(d,"src",!1);const g=t.loadRecords.get(c);if(!g||e.getIsDestroyed())return;g.srcLoadingAndSet=!0,e.status.value=zt.LoadingAndSet}},u=(d,m)=>{if(t.checkToken(c)){if(!e.useLoadingAndSet.value)return;m==="img"&&(e.status.value=zt.Loading,t.setRenderResult(br,"src",!1),ls.reportFirstLoadError()&&Re.doReport({rule:Re.rules.SENSOR_BURIED,eventName:Re.sensorEvents.ImageFirstLoadErrorWhenSimpleImageMode,payload:{ImageOnFirstLoadUrl:d}}).catch(()=>{}))}};return t.load("src",l,u)},a=(c,l)=>{if(!t.isLatest(c))return;const u=t.loadRecords.get(c);!u||e.getIsDestroyed()||(u.srcLoaded=!0,t.loadSuccess(l))},r=c=>{if(!t.isLatest(c))return;const l=t.loadRecords.get(c);!l||e.getIsDestroyed()||(l.srcLoaded=!0,t.loadFail())};return{initAssets:async()=>{t.loadRecords.clear();const c=t.start();if(t.loadRecords.set(c,{srcLoaded:!1,thumbSrcLoaded:!1,srcLoadingAndSet:!1}),e.props.persistError&&ey.get(e.srcComputed.src.value)){e.imgSrc.value=br,r(c);return}if(e.srcComputed.getIsSvg()&&e.srcComputed.src.value){const l=Jb.get(e.srcComputed.src.value);if(l!==void 0){const u=t.loadRecords.get(c);u&&(u.srcLoaded=!0),t.loadSuccess(l);return}}if(e.props.src){n(c);try{a(c,await o(c))}catch(l){r(c)}}else e.status.value=zt.Placeholder,t.setRenderResult(br,"src",!1)},loadPlaceholder:()=>{if(e.useLoadingAndSet.value){e.status.value=zt.Placeholder;return}e.props.placeholderSrc&&t.load("placeholderSrc").then(c=>{(t.getIsInitial()||t.checkToken(t.getCurrentToken(),l=>{const u=t.loadRecords.get(l);return!u||!u.srcLoadingAndSet&&!u.srcLoaded&&!u.thumbSrcLoaded}
28))&&(e.status.value=zt.Placeholder,t.setRenderResult(c,"placeholderSrc"))}).catch(()=>{})}}}const P6=ob(rb),pp={x70:"_x70",x50:"_x50",q1:"_q1",r2:"_r2"},D6=/_(x70|x50|q1|r2)\.(webp|avif)$/i,bS={suffix:"",fallbackToOrigin:!1},M6=(e,t="",n=!1)=>{if(D6.test(t))return bS;const o=e?Et.animDegradeTier():Et.imageDegradeTier(),a=o&&pp[o]||"";return a?{suffix:a,fallbackToOrigin:!1}:n&&(ju()||ZA())?{suffix:e?pp.r2:pp.x50,fallbackToOrigin:!0}:bS},N6=(e,t,n="")=>{const o=zg(e);if(!o||!o.ext)return e;const{name:a,query:r}=o;return`${a}${n}.${t}${r||""}`},k6=3;let g_=0,vg=!1;const B6=()=>Et.imageDegradeAutoOff()?!vg:!0,H6=()=>{vg||(g_++,g_>=k6&&(vg=!0))},x6=()=>{g_=0,vg=!1},yS={isAvailable:B6,markMissing:H6,reset:x6},E6=3,U6=(e,t=[])=>{const n=zg(e);if(!n)return[];if(!t.length)return[n.ext].filter(Boolean);const o=t.filter(a=>a!==n.ext);return o.push(n.ext),o.filter(Boolean)};function G6(e,t){const{urlAnalysis:{getString:n},loadType:o,beforeFirstLoad:a,onFirstLoadError:r}=e;return a(n(),o),t(n()).catch(s=>(r(n(),o),Promise.reject(s)))}function F6(e,t){var R;const{urlAnalysis:n,loadType:o,beforeFirstLoad:a,onFirstLoadError:r}
28=e,{src:s,getIsSvg:i,obj:c,getString:l,getDomainType:u}=n,{replaceExtensionList:d,isAnimated:m=!1}=hL(s.value,{isApng:e.isApng,canvasMode:e.canvasMode,isSvg:i(),replaceExtension:e.replaceExtension}),g=U6(l(),d),{suffix:f,fallbackToOrigin:_}=M6(m,l(),e.degrade),h=f&&yS.isAvailable()?d.map(D=>({ext:D,suffix:f})):[],p=g.map(D=>({ext:D,suffix:""})),y=(R=zg(l()))==null?void 0:R.ext,v=_?_&&y?[{ext:y,suffix:""}]:[]:p,A=h.length?[...h,...v]:p,L=h.length,T=c.value.pathname,S=Et.imageLoadNoRetry(),I=(D,M,B)=>{let E=!1;return uf((Y,H)=>{const{ext:F,suffix:Q}=A[Y-1],G=Y<=L;if(D){const{host:N}=Yi(D);c.value.host=N}return c.value.pathname=N6(T,F,Q),B.isFirst&&H.isFirst&&a(l(),o),t(l()).then(N=>(!G&&E&&yS.markMissing(),N),N=>(G&&(E=!0),Promise.reject(N)))},S?1:A.length,(Y,H)=>(B.isFirst&&H.isFirst&&r(l(),o),!1))};return qb(u(),(D,M,B)=>I(D,M,B),{singleAttempt:S,maxDomainAttempts:E6})}function hp(e,t){return e.urlAnalysis.getDomainType()?F6(e,t):G6(e,t)}const W6=async e=>fetch(e,{method:"GET"}).then(t=>{if(!t.ok)throw new Error(`SVG fetch failed: ${t.status}`);return t.text()}),V6=ob(W6);function $6(e){return{loadImg:async()=>(await hp(e.retryDeps,a=>P6(a,a,!1,null,e.retryDeps.fetchPriority)),e.getString()),loadCanvas:async()=>{var s,i;const{createCanvas:a}=await V(async()=>{const{createCanvas:c}=await import("./createCanvas.DMCMlnb3.js");return{createCanvas:c}},__vite__mapDeps([0])),r=await hp(e.retryDeps,c=>{var l,u,d;return a(c,{canvas:e.canvasEl(),scale:1,autoPlay:(u=(l=e.apngOptions)==null?void 0:l.autoPlay)!=null?u:!0,numPlays:(d=e.apngOptions)==null?void 0:d.numPlays})});return r.player&&((s=e.apngOptions)!=null&&s.onEnd)&&r.player.on("end",(i=e.apngOptions)==null?void 0:i.onEnd),r},loadSvg:async()=>{const[,a]=await Ee(hp(e.retryDeps,r=>V6(r,r)));return a?(e.retryDeps.urlAnalysis.src.value&&Jb.set(e.retryDeps.urlAnalysis.src.value,a),a):Promise.reject()}}}function Pm(){return{src:{value:""},getIsSvg:()=>!1,getDomainType:()=>{},obj:{value:{...Yi("")}},getString:()=>""}}const lu=e=>{const t=C(()=>ol(e.value||"")),n=()=>/\.svg(\?|$)/i.test(t.value),o=()=>{if(!a.value.host)return;let s=Ht().domainListMap.ossCommonDomain.find(i=>i.includes(a.value.host||""));if(s)return"ossCommonDomain";if(s=Ht().domainListMap.ossDomain.find(i=>i.includes(a.value.host||"")),s)return"ossDomain"},a=O(Yi(t.value));return fe(()=>t.value,()=>{a.value=Yi(t.value)}),{src:t,getIsSvg:n,getDomainType:o,obj:a,getString:()=>t.value.startsWith("data:")?t.value:fw(a.value)}},Hde=Object.freeze(Object.defineProperty({__proto__:null,createEmptyURLAnalysis:Pm,useURLAnalysis:lu},Symbol.toStringTag,{value:"Module"})),Y6=(e,t="auto")=>{const n=new Image;return t!=="auto"&&"fetchPriority"in n&&(n.fetchPriority=t),n.src=e,n.complete?Promise.resolve(e):new Promise((o,a)=>{n.onload=()=>{o(e),n.onload=null,n.onerror=null},n.onerror=()=>{a(),n.onload=null,n.onerror=null}})},dR=(e,{canvasMode:t=!1,isApng:n=null,replaceExtension:o=!0,degrade:a=!1,fetchPriority:r="auto",canvasEl:s=()=>document.createElement("canvas"),beforeLoading:i=()=>{},beforeFirstLoad:c=()=>{},onFirstLoadError:l=()=>{}})=>{const{getIsSvg:u,src:d,getString:m}=e,g=!!t,f=u()?"svg":g?"canvas":"img",_=g?typeof t=="boolean"?{numPlays:va.disableApngByDeviceScore()?1:0}:t:null,h={urlAnalysis:e,loadType:f,isApng:n,canvasMode:t,replaceExtension:o,degrade:a,fetchPriority:r,beforeFirstLoad:c,onFirstLoadError:l},{loadImg:p,loadCanvas:y,loadSvg:b}=$6({retryDeps:h,getString:m,canvasEl:s,apngOptions:_});return{load:async()=>{const A=d.value&&f!=="canvas"?rd.get(d.value):null;if(A){if(u())return A;try{return await Y6(A,r)}catch(L){}}i();try{return u()?await b():g?await y():await p()}catch(L){return Promise.reject()}}}},xde=Object.freeze(Object.defineProperty({__proto__:null,useLoader:dR},Symbol.toStringTag,{value:"Module"}));function q6(e){const t=new Map,n=[],o=(r,s,i)=>`${r}-${s}-${JSON.stringify(i)}`;return{load:async(r="src",s=()=>{},i=()=>{})=>{const c={canvasMode:e.props.canvasMode,isApng:e.props.isApng,replaceExtension:e.props.replaceExtension,degrade:e.props.degrade,fetchPriority:e.props.fetchPriority,canvasEl:()=>e.el.value,beforeLoading:()=>{e.status.value!==zt.LoadingAndSet&&r==="src"&&(e.status.value=zt.Loading)},beforeFirstLoad:s,onFirstLoadError:i},l=e.getSrcComputedByType(r),u=o(r,l.src.value||"",{canvasMode:c.canvasMode,isApng:c.isApng,replaceExtension:c.replaceExtension,degrade:c.degrade});return t.has(u)||t.set(u,dR(l,c)),t.get(u).load().then(d=>{if(c.canvasMode&&typeof d!="string"){const m=d.player;if(m){if(e.getIsDestroyed())return m.stop(),m.removeAllListeners(),d;n.push(()=>{m.stop(),m.removeAllListeners()})}}return d})},loaderCache:t,apngPlayerDestroy:n}}function z6(e,t){const n=(r,s="src",i=!0)=>{const{src:c,getIsSvg:l}=e.getSrcComputedByType(s);i&&c.value&&rd.set(c.value,r,e.getLoadType(s)),l()?(e.svgContext.value=r,s==="errorSrc"&&(e.imgSrc.value=e.props.tag==="img"?c.value||"":br)):e.imgSrc.value=r};return{setRenderResult:n,loadSuccess:r=>{e.emitLoad({type:zt.Success,payload:r}),e.status.value=zt.Success,n(r),e.props.sizeByAuto&&rb(r).then(s=>{if(e.getIsDestroyed())return;const{width:i,height:c}=s;e.autoSizeConfig.value.width=Zt(i),e.autoSizeConfig.value.height=Zt
28(c)}).catch(()=>{})},loadFail:()=>{e.status.value=zt.Error,e.emitLoad({type:zt.Error});const{src:r}=e.getSrcComputedByType("src");e.props.persistError&&e.getLoadType("src")==="img"&&ey.set(r.value),e.props.errorSrc&&t("errorSrc").then(s=>{e.getIsDestroyed()||e.status.value===zt.Error&&s&&n(s,"errorSrc")}).catch(()=>{})}}}function j6(e){const{start:t,isLatest:n,getCurrentToken:o,getIsInitial:a}=L6(),r=new Map,{load:s,loaderCache:i,apngPlayerDestroy:c}=q6(e),{setRenderResult:l,loadSuccess:u,loadFail:d}=z6(e,s),g={load:s,setRenderResult:l,loadSuccess:u,loadFail:d,checkToken:(h,p=()=>!0)=>{if(e.getIsDestroyed()||!n(h)||!r.get(h))return!1;try{return!!p(h)}catch(b){return!1}},start:t,isLatest:n,loadRecords:r,getIsInitial:a,getCurrentToken:o},{initAssets:f,loadPlaceholder:_}=O6(e,g);return{initAssets:f,loadPlaceholder:_,loadRecords:r,loaderCache:i,apngPlayerDestroy:c}}const K6=["img","svg"];function Q6(e){const t=fd(e,"src"),n=lu(t),o=e.thumbSrc?lu(fd(e,"thumbSrc")):Pm(),a=e.placeholderSrc?lu(fd(e,"placeholderSrc")):Pm(),r=e.errorSrc?lu(fd(e,"errorSrc")):Pm(),s=(l="src")=>l==="thumbSrc"?o:l==="placeholderSrc"?a:l==="errorSrc"?r:n,i=C(()=>n.getIsSvg()&&K6.includes(e.tag)?lr.Svg:e.canvasMode?lr.Canvas:e.tag==="img"?lr.Img:lr.Bg);return{src:t,srcComputed:n,thumbSrcComputed:o,placeholderSrcComputed:a,errorSrcComputed:r,getSrcComputedByType:s,renderMode:i,getLoadType:(l="src")=>{const{getIsSvg:u}=s(l);return u()?"svg":i.value===lr.Canvas?"canvas":"img"}}}function X6(e){const t=cR(),n=O(typeof(t==null?void 0:t.loadingAndSet)!="undefined"?t.loadingAndSet:ls.loadingAndSet()),o=O(typeof(t==null?void 0:t.notLazy)!="undefined"?t.notLazy:ls.notLazy()),a=C(()=>e.srcComputed.getIsSvg()||e.props.canvasMode?!1:n.value===Jn.Always?!0:n.value===Jn.Loaded&&e.src.value?!!rd.get(e.src.value,!0):n.value===Jn.NonFirstTime?!X_:!1);return{loadingAndSet:n,notLazy:o,useLoadingAndSet:a}}let Z6=0;function J6(e,t){const n=String(++Z6);let o=!1;const{src:a,srcComputed:r,thumbSrcComputed:s,placeholderSrcComputed:i,errorSrcComputed:c,getSrcComputedByType:l,renderMode:u,getLoadType:d}=Q6(e),m=O(zt.Wait),g=O(br),f=O(""),_=O({width:"",height:""}),h=O(),{loadingAndSet:p,notLazy:y,useLoadingAndSet:b}=X6({props:e,srcComputed:r,src:a}),v={onMountedLoad:R=>{m_(R)},onSrcChangeLoad:R=>{R()},cleanupLazy:()=>{}},{initAssets:A,loadPlaceholder:L,loadRecords:T,loaderCache:S,apngPlayerDestroy:I}=j6({props:e,emitLoad:R=>t("load",R),status:m,imgSrc:g,svgContext:f,el:h,autoSizeConfig:_,srcComputed:r,getSrcComputedByType:l,getLoadType:d,useLoadingAndSet:b,getIsDestroyed:()=>o});return A6({props:e,initAssets:A,loadPlaceholder:L,hooks:v}),I6({hooks:v,apngPlayerDestroy:I,loaderCache:S,imgSrc:g,svgContext:f,autoSizeConfig:_,el:h,loadRecords:T,setDestroyed:()=>{o=!0}}),{id:n,props:e,status:m,imgSrc:g,svgContext:f,autoSizeConfig:_,el:h,get isDestroyed(){return o},srcComputed:r,thumbSrcComputed:s,placeholderSrcComputed:i,errorSrcComputed:c,renderMode:u,loadingAndSet:p,notLazy:y,useLoadingAndSet:b,useLazy:O(!!e.lazy),get imageWidth(){return e.sizeByAuto?_.value.width||"0px":e.width},hooks:v}}const eq=le({name:"ImageCore",inheritAttrs:!1,props:sR,emits:iR,setup(e,{emit:t,slots:n,attrs:o}){const a=J6(e,t);mt(Zb,a);const r=He(lR,null),s=He(uR,null);return r==null||r.upTransferCore(a),s==null||s.upTransferCore(a),()=>{var c;const i=(c=n.default)==null?void 0:c.call(n);return(i==null?void 0:i.length)===1?kn(i[0],o):i}}});function tq(e,t){const n=t.getBoundingClientRect();if(!(n.top<window.innerHeight&&n.bottom>0&&n.left<window.innerWidth&&n.right>0))return!1;const a=e.getBoundingClientRect();return a.width===0&&a.height===0?!1:a.left<n.right&&a.right>n.left&&a.top<n.bottom&&a.bottom>n.top}function nq(e,t){var n;return typeof t=="string"?e.closest(t):typeof t=="function"&&(n=t())!=null?n:null}const _p=new WeakMap;function oq(){return`${window.innerHeight}px ${window.innerWidth}px`}function aq(e){const t={opened:!1,pending:new Set,observer:null};return window.IntersectionObserver?(t.observer=new IntersectionObserver(n=>{var r;if(!n.some(s=>{var i;return(i=s.isIntersecting)!=null?i:s.intersectionRatio>0}))return;t.opened=!0,(r=t.observer)==null||r.disconnect(),t.observer=null;const a=[...t.pending];t.pending.clear(),a.forEach(s=>{s()})},{rootMargin:oq(),threshold:0}),t.observer.observe(e),t):(t.opened=!0,t)}function rq(e,t){const n=_p.get(e),o=n!=null?n:aq(e);return n||_p.set(e,o),o.opened?(t(),()=>{}):(o.pending.add(t),()=>{var a;o.pending.delete(t),o.pending.size===0&&!o.opened&&((a=o.observer)==null||a.disconnect(),o.observer=null,_p.delete(e))})}const sq=(e,t)=>{let n=vt({});const o=()=>{n=e.getBoundingClientRect()};return{rect:n,checkInView:()=>(o(),n.top<window.innerHeight*t&&n.bottom>0&&n.left<window.innerWidth*t&&n.right>0)}},iq=2,Br=class Br{constructor({observerOptions:t={threshold:0},preload:n=iq}){x(this,"listenerQueue",[]);x(this,"listenerMap",new Map);x(this,"observer",null);x(this,"options");this.options={observerOptions:t,preload:n},this.init()}init(){this.initIntersectionObserver()}initIntersectionObserver(){var t;window.IntersectionObserver&&(this.observer=new IntersectionObserver(n=>
28{n.forEach(o=>{var c,l;const{isIntersecting:a,target:r,intersectionRatio:s}=o,i=this.listenerMap.get(r);i&&((a!=null?a:s>0)?(i.options.keepObserver||this.unobserve(i.el),i.loaded=!0,i.show=!0,i.options.callback()):i.loaded&&i.options.keepObserver&&(i.show=!1,(l=(c=i.options)==null?void 0:c.leaveCallback)==null||l.call(c)))})},{...this.options.observerOptions,rootMargin:((t=this.options.observerOptions)==null?void 0:t.rootMargin)||(()=>{const o=this.options.preload-1;return`${window.innerHeight*o}px ${window.innerWidth*o}px`})()}))}unobserve(t){var a;if(!t)return;const n=this.listenerMap.get(t);if(!n)return;const o=this.listenerQueue.indexOf(n);o>-1&&this.listenerQueue.splice(o,1),this.listenerMap.delete(t),(a=this.observer)==null||a.unobserve(t)}static elToRoot(t){return!t||t===window?null:t}static getInstance(t,n){const o=this.elToRoot(t),a=t||document.body,r=n||"";let s=Br.instancePools.get(a);s||(s=new Map,Br.instancePools.set(a,s));let i=s.get(r);return i||(i=new Br({observerOptions:{root:o,threshold:0,...n?{rootMargin:n}:{}}}),s.set(r,i)),i}static addLazyBox(t,n){var i,c;if(!(t instanceof Element)){console.error("Target is not a DOM element.");return}const o=n.root||null,a=n.rootMargin,r=this.getInstance(o,a);r.unobserve(t);const s={el:t,options:{callback:n.callback,leaveCallback:n.leaveCallback,keepObserver:(i=n.keepObserver)!=null?i:!1},loaded:!1,show:!1,checkInView:sq(t,r.options.preload).checkInView};return r.listenerQueue.push(s),r.listenerMap.set(t,s),(c=r.observer)==null||c.observe(t),()=>{this.removeLazyBox(t,o,a)}}static removeLazyBox(t,n=null,o){var c;if(!(t instanceof Element)){console.error("Target is not a DOM element.");return}const a=n||document.body,r=o||"",s=Br.instancePools.get(a),i=s==null?void 0:s.get(r);i&&(i.unobserve(t),n&&i.listenerQueue.length===0&&((c=i.observer)==null||c.disconnect(),s==null||s.delete(r),(s==null?void 0:s.size)===0&&Br.instancePools.delete(a)))}static remove(t=null){const n=t||document.body,o=Br.instancePools.get(n);o&&(o.forEach(a=>{var s;[...a.listenerQueue].forEach(i=>{a.unobserve(i.el)}),a.listenerMap.clear(),(s=a.observer)==null||s.disconnect()}),this.instancePools.delete(n))}};x(Br,"instancePools",new Map);let ec=Br;const cq=le({name:"ImageLazy",inheritAttrs:!1,setup(e,{slots:t,attrs:n}){return mt(uR,{upTransferCore:o=>{let a,r=!1,s,i;const c=C(()=>{if(o.props.lazy==="force-true")return!0;if(o.props.lazy==="force-false")return!1;if(o.notLazy.value===Jn.Default||!o.props.lazy)return!!o.props.lazy;const{getIsSvg:u,src:d}=o.srcComputed;return o.notLazy.value===Jn.Loaded&&!u()&&!o.props.canvasMode&&d.value?!rd.get(d.value,!0):o.notLazy.value===Jn.NonFirstTime?X_:!1});o.useLazy=c,fe(c,u=>{u||r||!i||(r=!0,a==null||a(),a=void 0,m_(i))});const l=u=>{var h;if(r)return;const d=o.el.value,m=(h=d==null?void 0:d.$el)!=null?h:d;if(o.isDestroyed||!m)return;s=m;const g=o.props.lazyOptions,f=nq(m,g==null?void 0:g.root),_=()=>ec.addLazyBox(m,{root:f,rootMargin:g==null?void 0:g.rootMargin,callback:()=>{r=!0,u()}});if(f){if((g==null?void 0:g.syncFastPath)!==!1&&tq(m,f)){r=!0,u();return}let p;const y=rq(f,()=>{p=_()});a=()=>{y(),p==null||p()}}else a=_()};Object.assign(o.hooks,{onMountedLoad:u=>{i=u,c.value?ls.nonDelayLazy()?l(u):setTimeout(()=>{l(u)}):(r=!0,m_(u))},onSrcChangeLoad:u=>{if(i=u,c.value||(r=!0),r){u();return}yt(()=>{var g;if(o.isDestroyed||r)return;const d=o.el.value,m=(g=d==null?void 0:d.$el)!=null?g:d;!m||m===s||(a==null||a(),a=void 0,l(u))})},cleanupLazy:()=>{a==null||a()}})}}),()=>{var a;const o=(a=t.default)==null?void 0:a.call(t);return(o==null?void 0:o.length)===1?kn(o[0],n):o}}}),lq=(e,{slots:t})=>{const n=He(Zb),o=()=>{const i=n.status.value;return i===zt.Success?n.srcComputed.getIsSvg():i===zt.Error?n.errorSrcComputed.getIsSvg():n.useLoadingAndSet.value?!1:i===zt.Placeholder?n.placeholderSrcComputed.getIsSvg():i===zt.Loading?n.thumbSrcComputed.getIsSvg():!1},a=()=>{var c;const i=n.status.value;if(!(n.props.performance&&(i===zt.Wait||i===zt.Placeholder)))return(c=t.default)==null?void 0:c.call(t)},r={width:n.imageWidth,height:n.props.height,backgroundImage:`url(${n.imgSrc.value})`},s=n.props.tag;return w(s,Te(e,{style:r}),{default:()=>{var i;return[o()&&((i=t.svgOverlay)==null?void 0:i.call(t)),a()]}})},uq={svgGo:{type:Boolean,default:!0},svgText:{type:String},name:{type:String},color:{type:String},colorMode:{type:String,default:"fill"},size:{type:Object},inheritSize:{type:Boolean},svgStyle:{type:Object},linearGradientConfig:{type:Object,default:()=>({angle:180,colorStop:[]})}},dq=(e,t)=>{{const n=t.params.attrs,o=new RegExp(`\\s+(${n})="(?!none)[^"]{0,200}"`,"g");return e.replace(o,"")}},mq=e=>{const t=e*Math.PI/180,n=.5+.5*Math.cos(t),o=.5-.5*Math.sin(t),a=1-n,r=1-o;return{x1:a,y1:r,x2:n,y2:o}};function f_(e,t){return t?typeof t=="string"?` ${e}--${t}`:Array.isArray(t)?t.reduce((n,o)=>n+f_(e,o),""):Object.keys(t).reduce((n,o)=>
28n+(t[o]?f_(e,o):""),""):""}function gq(e){return(t,n)=>(t&&typeof t!="string"&&(n=t,t=""),t=t?`${e}__${t}`:e,`${t}${f_(t,n)}`)}function mR(e,t=""){const n=t?`${t}-${e}`:e;return[n,gq(n)]}function _e(e){return mR(e,"lobby")}function Wt(e){return mR(e,"ui")}const fq={tag:{type:String,default:"div"},html:{type:String,default:""},noAvifIos:{type:Boolean,default:!0},format:{type:Function,default:e=>{if(typeof e=="undefined")return;if(e===null)return null;const t=String(e);return/<\/?[a-z][\s\S]*>/i.test(t)?t:t.replace(/\n/g,"<br/>")}},xssProtection:{type:Boolean,default:!0},vestATagJump:{type:Boolean,default:!1},aTagJumpCheckTag:{type:Function,default:async({aTag:e,vestATagJump:t})=>{var o;const n=e.getAttribute("href");return t&&n&&((o=re==null?void 0:re.package)!=null&&o.isApp)&&e.getAttribute("data-rich")==="open"?(to(n),!1):!0}},addCommonStyle:{type:Boolean,default:!1},othersXssWhiteList:{type:Object,default:{}},revertSystemStyle:{type:Boolean,default:!1},px2rem:{type:Boolean,default:!1}};function hs(e){let t;Gt(()=>{e(t),yt(()=>{t=!0})}),qa(()=>{t&&e(t)})}function Xs(e,t,n={}){if(!da)return;const{target:o=window,passive:a=!1,capture:r=!1}=n;let s=!1,i,c=null;const l=m=>{if(s)return;const g=ua(m);g&&!i&&(c=g,g.addEventListener(e,t,{capture:r,passive:a}),i=!0)},u=()=>{s||c&&i&&(c.removeEventListener(e,t,r),i=!1,c=null)};Kn(()=>u()),za(()=>u()),hs(()=>l(o));let d;return Tw(o)&&(d=fe(o,m=>{u(),l(m)})),()=>{d==null||d(),u(),s=!0}}const pq=(e,t)=>{let n;const o=()=>{const{emit:r,off:s}=ve(e,t);return n=s,{emit:r}};let{emit:a}=o();return qa(()=>{const{emit:r}=o();a=r}),za(()=>{n&&n()}),fa(()=>{n&&n()}),{emit:a}};function hq(e){Re.doReport({rule:Re.rules.SENSOR_BURIED,eventName:Re.sensorEvents.ComponentError,payload:e})}async function Ede(e){if(window.isBlockDomain==null)try{const t=await Ab(location.origin);window.isBlockDomain=t.pingTime>0}catch(t){window.isBlockDomain=!1}Re.doReport({rule:Re.rules.SENSOR_BURIED,eventName:Re.sensorEvents.AsyncDialogStatus,payload:{...e,isBlockDomain:window.isBlockDomain}})}var Ac=(e=>(e.onBroadcast="onBroadcast",e.onActions="onActions",e))(Ac||{});const _q=rt(()=>V(()=>import("./aliveDomainCheck.BTZZbDX-.js"),[]),e=>e.aliveDomainCheck,"aliveDomainCheck");Ye.extend(ww);const bq=e=>{var s,i,c,l,u,d;const t=e.res,n=(i=e.isSiteFreeze)!=null?i:((s=t==null?void 0:t.data)==null?void 0:s.code)===$e.SITE_FREEZE_ERROR,o=(l=e.isSiteFreezeAndMaintain)!=null?l:((c=t==null?void 0:t.data)==null?void 0:c.code)===$e.SITE_FREEZE_AND_MAINTAIN_ERROR,a=t==null?void 0:t.config;return{...e,isSiteFreeze:n,isSiteFreezeAndMaintain:o,requestInfo:{url:a==null?void 0:a.url,xRequestId:(u=a==null?void 0:a.headers)==null?void 0:u["x-request-id"],code:(d=t==null?void 0:t.data)==null?void 0:d.code}}},Ude=e=>{const{siteInfos:t}=ue(),{language:n}=Ge(),{start_time:o,end_time:a,site_time_zone:r}=e,i={offset:r||(t==null?void 0:t.timeZone)||Ye().utcOffset(),direction:ir.includes(n)?"rtl":"ltr"};try{const c=Ye.duration(a&&o?a-o:0,"seconds").asHours(),l=Date.now(),u=d=>{const m=d*2;return Math.ceil(m)/2};return{health:l>=o*1e3&&l<=a*1e3,now:Zr(void 0,i),start:Zr(o,i),end:Zr(a,i),duration:Math.max(.5,u(c))}}catch(c){return console.error(c),{now:Zr(void 0,i)}}};let bp=null;const yq=e=>{const t=e.start_time*1e3-Date.now();t>0&&(as.destroy($i.MAINTAININFO),bp&&window.clearTimeout(bp),bp=window.setTimeout(()=>{as.create({key:$i.MAINTAININFO,immediate:!0,interval:1e3*60*5,pollingHandler:()=>{ve("SITE_MAINTAIN").emit()}})},t))},vq={ACCELEROMETER:"accelerometer",BACKGROUND_SYNC:"background-sync",CAMERA:"camera",CLIPBOARD_READ:"clipboard-read",CLIPBOARD_WRITE:"clipboard-write",GEOLOCATION:"geolocation",MICROPHONE:"microphone",NOTIFICATIONS:"notifications",PUSH:"push",SCREEN_WAKE_LOCK:"screen-wake-lock"},Sq=(e,t)=>new Promise(n=>{const o={isGranted:!1,isDenied:!1,isPrompt:!1,isNotSupport:!1,permissionStatus:null};navigator.permissions.query({name:e},t).then(a=>{const r=(s={})=>{switch(a.state){case"granted":s.isGranted=!0;break;case"denied":s.isDenied=!0;break;case"prompt":s.isPrompt=!0;break}return s};r(o),Object.assign(a,{getCurrentStatus:r}),o.permissionStatus=a}).catch(a=>{o.errorMsg=`QueryPermission ${a}`,o.isNotSupport=!0}).finally(()=>{n(o)})}),Cq=e=>new Promise(t=>{try{navigator.geolocation.getCurrentPosition(n=>{t({geolocationPosition:n})},n=>{var a;const o=((a=n==null?void 0:n.message)==null?void 0:a.toLocaleLowerCase())||"";t({errorMsg:`ERROR(${n.code}): ${n.message}`,isDenied:o.indexOf("denied")>-1,isTimeout:o.indexOf("timeout")>-1})},Object.assign(e||{},{enableHighAccuracy:!0,maximumAge:0}))}catch(n){t({errorMsg:`getCurrentGeolocation ${n}`})}}),wq=async e=>new Promise(t=>{const n={isDenied:!1,isTimeout:!1,isNotSupport:!1,geolocation:null,geolocationPosition:null};try{if(!navigator.geolocation)return Object.assign(n,{isNotSupport:!0,errorMsg:'"navigator.geolocation" Is N
28ot Valid Api!'}),t(n);const o=async()=>{const{geolocationPosition:r,errorMsg:s,isTimeout:i}=await Cq(e);return r?n.geolocationPosition=r:(n.errorMsg=s,n.isTimeout=!!i,n.isDenied=!n.isTimeout),n},a=r=>{const{isGranted:s,isDenied:i,isNotSupport:c,errorMsg:l}=r;if(c)Object.assign(n,{isNotSupport:!0,errorMsg:l});else if(i)Object.assign(n,{isDenied:!0,errorMsg:"Permission Has Been Denied!"});else{if(s)return o();n.errorMsg="Permission Has Been Error"}return n};Sq(vq.GEOLOCATION).then(({isPrompt:r,...s})=>{t(r?o():a(s))})}catch(o){n.errorMsg=`getGeolocation unknown ${o}`}}),Iq=rt(()=>V(()=>import("./index.BlIr6KgK.js"),[]),e=>e.to503,"to503"),Gde="wg.deviceRisk.on",Fde=20601,Wde=20999,vS="lobby_token_checked_time",Vde="https://sigap.fazenda.gov.br",ty=ke("complianceCheck",()=>{const{complianceCheckConfig:e}=pl(),t=J(),n=tn(),o=ue(),a=Ze(),r=C(()=>{var M;return(M=o.systemInfos)!=null?M:{}}),s=C(()=>t.isNormalMode&&!t.isTemporaryAccountMode&&!0&&!_a()),i=C(()=>{var H,F,Q;const M=Number((H=r.value)==null?void 0:H.legal_config_anti_addiction_reminder),B=(F=a.brandLogoInfos)==null?void 0:F.selfRestraintEntry,{activityVerifies:E,loginVerifies:Y}=e();return{antiAddiction:{open:M>0,interval:M},catchGeoSwitch:(Q=r.value)==null?void 0:Q.legal_config_location_detection,selfRestraint:{isShowRegistered:Number(B==null?void 0:B.isShowRegistered)===jt.OPEN},activityVerifies:E,loginVerifies:Y}}),c=C(()=>{var M,B,E;return s.value&&i.value.selfRestraint.isShowRegistered&&!((E=(B=(M=t.userInfos)==null?void 0:M.restrictInfo)==null?void 0:B.status)!=null&&E.length)}),l=C(()=>s.value&&i.value.antiAddiction.open),u=C(()=>s.value&&i.value.activityVerifies.length>0),d=C(()=>s.value&&i.value.loginVerifies.length>0),m=C(()=>i.value.catchGeoSwitch===Kw.OPEN&&!_a()),g=(M=Date.now())=>{localStorage.setItem(vS,M.toString())},f=()=>Number(localStorage.getItem(vS)),_=(M=7)=>{var F,Q;const B=f(),E=(F=n.tokenInfos)==null?void 0:F.created_time;if(!E)return!1;B||g(E);const Y=B>=E?B:E,H=Number((Q=location.search.match(/tokenLivedOver=(\d)/))==null?void 0:Q[1]);return Date.now()-Y>(H?H*6e4:864e5*M)},h=new Set([k.FORBIDDEN_SELF,k.KYC,k.KYC_FACE,k.KYC_FACE_FAILED,k.IDSelfie]),p=O(!1),y=new Set;let b=!1,v=null,A=null;const L=(M,B)=>{y.forEach(E=>E(M,B))},T=()=>{p.value||(p.value=!0,L(!0,!1))},S=()=>{p.value&&(p.value=!1,L(!1,!0))},I=()=>p.value,R=()=>{var Y;const M=Oe().route,B=M.name;if(h.has(B))return!0;const E=(Y=M.query)==null?void 0:Y.redirect;if(E)try{const H=JSON.parse(decodeURIComponent(E));if(H!=null&&H.name&&h.has(H.name))return!0}catch(H){}return!1},D=(M,B)=>{if(y.add(M),!b){b=!0,v=ve("ROUTER_AFTER_EACH",()=>{p.value&&(R()||S())});const{visible:E}=cn("needKycValidate");A=fe(()=>E.value,async(Y,H)=>{Y||!H||(await zn(300),p.value&&(R()||S()))})}return B!=null&&B.immediate&&M(p.value,p.value),()=>{y.delete(M),y.size||(v==null||v.off(),A==null||A(),v=null,A=null,b=!1)}};return{isNeedToSelfRestraint:c,isNeedActivityCheck:u,isNeedLoginCheck:d,isNeedCatchGeo:m,isNeedAntiAddiction:l,activityVerifies:i.value.activityVerifies,loginVerifies:i.value.loginVerifies,isTokenLivedOverDays:_,updateTokenCheckedTime:g,getTokenCheckedTime:f,checkConfig:i,isInComplianceFlow:p,activateComplianceFlow:T,getIsInComplianceFlow:I,watchComplianceFlow:D}},{persist:{storage:Yo({},"session"),paths:["isInComplianceFlow"]}});let xd=null;const SS=()=>(xd||(xd=pa(()=>V(()=>import("./1_MineChunk.CPGTMigo.js").then(e=>e.af),__vite__mapDeps([0,1,3,4,5,6])))().then(e=>e.useSecurityStore()).catch(e=>{throw xd=null,e})),xd),Aq=ke("sidebar",{state:()=>({collapse:!1,securityModalVisible:!1,securityModalType:Eo.Seurity}),getters:{},actions:{handleCollapse(){this.collapse=!this.collapse},setSecurityModalVisible(e,t){this.securityModalVisible=e,t&&(this.securityModalType=t)}}}),gR=[k.NOTICE,k.SERVICE_IFRAME];let yp=!1;function fR(){const e=J(),t=bn(),{replace:n}=Oe(),o=Bn(),a=[k.SECURITY,k.WITHDRAW],r=()=>{const b=o==null?void 0:o.name;return a.includes(b)||Xn(a)},s=C(()=>c(o.query)),i=C(()=>{const b=o.query.active;if(b&&eu(+b))return+b}),c=b=>{const v=b!=null?b:Ru(location.search);let A;v.active&&eu(+v.active)&&(A=+v.active);let L;const T=[],S=[];if(v.forceBinding)try{const E=v.forceBinding.split("-"),[Y,H,F]=E;H==null||H.split(",").forEach(Q=>
28{gu(Eo,Y)&&(L=Y),gu(ye,+Q)&&T.push(+Q)}),F==null||F.split(",").forEach(Q=>{gu(ye,+Q)&&S.push(+Q)})}catch(E){nt.error(E),l()}let I;if(v.redirect)try{I=JSON.parse(decodeURIComponent(v.redirect))}catch(E){}const R=F1(T,S),D=r(),M=!!T.length&&!!L&&D;let B;return v.withdrawActive&&(B=+v.withdrawActive),{type:L,active:A,forceBinding:M,forceHideBack:!!v.forceHideBack,withdrawActive:B,allList:T,mastList:R,unMastList:S,redirect:I}},l=b=>{const{name:v=k.SECURITY,type:A,active:L,allList:T,unMastList:S}=b!=null?b:{},I=[];T!=null&&T.length&&(A&&I.push(A),I.push(T.join(","))),S!=null&&S.length&&I.push(S.join(","));const R=I.join("-")||null,D=Ru(location.search);let M;b!=null&&b.redirect&&(M=encodeURIComponent(JSON.stringify(b.redirect)));const B=b==null?void 0:b.withdrawActive,E=W1(Pe(D,{active:L!=null?L:null,forceBinding:R,redirect:M,withdrawActive:B}),V1);return n({name:v,query:E})},u=async()=>{var R;const b=await SS();(R=b==null?void 0:b.setIgnoreSecurityBindkey)==null||R.call(b);const{type:v,active:A,forceBinding:L}=c();if(!L||!v)return;const T=c().allList.filter(D=>D!==A),S=c().unMastList.filter(D=>D!==A),I=T[0];if(Nc(I,ye.WITHDRAWACCOUNT))return l({type:v,name:k.WITHDRAW,active:ns.ACCOUNT_MANAGEMENT,allList:T,unMastList:S});if(!eu(I)||Nc(I,A))return l({type:v,name:k.ROOT});l({type:v,active:I,allList:T,unMastList:S})},d=()=>{const{type:b,active:v,forceBinding:A,withdrawActive:L}=c();if(!A||!b)return;const T=c().allList.filter(R=>R!==v),S=c().unMastList.filter(R=>R!==v),I=T[0];if(b===Eo.LargeBalances)return l({name:k.ROOT});if(b===Eo.Withdraw)return l({name:k.WITHDRAW,active:L,withdrawActive:null});if(Nc(I,ye.WITHDRAWACCOUNT))return l({type:b,name:k.WITHDRAW,active:ns.ACCOUNT_MANAGEMENT,allList:T,unMastList:S});if(!eu(I)||Nc(I,v))return l({type:b,name:k.ROOT});l({active:I,type:b,allList:T,unMastList:S})},m=C(()=>!(!s.value.forceBinding||!s.value.type||Aw(i.value)||s.value.mastList.includes(i.value))),g=async b=>{const v=pl();return b===Eo.Withdraw?await v.withdrawForceBindConfig():{[Eo.Seurity]:v.securityForceBindConfig,[Eo.LargeBalances]:v.largeBalancesForceBindConfig,[Eo.ChannelRegister]:v.channelRegisterForceBindConfig}[b]()},f=async(b,v)=>{var I;const{allList:A,mastList:L}=await g(b),T=b===Eo.Seurity;if(yp&&!(v!=null&&v.forceRender))return yp=!1,!1;if(!e.hasLogined||Mb().clubInfo.value.isClubManager&&T)return!1;if(v!=null&&v.dialog){if(t.isInQueue("securityDialogBinding"))return!1}else if(c().forceBinding&&!(v!=null&&v.forceRender))return!1;if(!A.length||e.isDemoMode||e.isTemporaryAccountMode)return!1;const S=await SS();return!((I=S==null?void 0:S.getIgnoreSecurityBindkey)!=null&&I.call(S)&&!L.length||!(v!=null&&v.skipRepeatOpened)&&t.isActiveOrInQueue("securityForceBinding")||Xn(gR)||Xn(k.KYC))};return{refQuery:s,refActive:i,canSkip:m,skip:u,next:d,getList:g,getQuery:c,setQuery:l,isSecurityForceBindingActive:()=>t.isActiveOrInQueue("securityForceBinding")||c().forceBinding,checkSecurityForceBinding:f,openSecurityForceBinding:async(b,v)=>{b=b!=null?b:Eo.Seurity;const A=await f(b,v);return A&&(_a()?Aq().setSecurityModalVisible(!0,b):await bn().open("securityForceBinding",{openType:(v==null?void 0:v.openType)||"insert",singleton:!0,options:{type:b,dialog:v==null?void 0:v.dialog,showCloseButton:v==null?void 0:v.showCloseButton,withdrawActive:v==null?void 0:v.withdrawActive}})),A},openSecurityDialogBinding:async b=>{var v;await bn().open("securityDialogBinding",{openType:(v=b==null?void 0:b.openType)!=null?v:"insert",options:b})},skipNextOpen:()=>{yp=!0}}}const Lq=Object.freeze(Object.defineProperty({__proto__:null,SERVICE_ROUTE_NAMES:gR,useSecurityForceBinding:fR},Symbol.toStringTag,{value:"Module"}));function Tq(){const e=J(),t=ue();return()=>{var c,l,u,d;if(!e.hasLogined||!((c=e.userInfos)!=null&&c.game_gold)||e.isTryMode||!((l=t.systemInfos)!=null&&l.largeAmountMustBind)||!t.systemInfos.largeAmountRange)return;const n=(d=t.systemInfos.largeAmountRange[(u=e.userInfos)==null?void 0:u.currency])!=null?d:0;if(e.userInfos.game_gold<n)return;const{isSecurityForceBindingActive:o}=fR();if(o())return;if(Xn(k.NOTICE)||Xn(k.KYC))return!1;const a=pl().validateConfigStatus(),{email:r,phone:s,googleAuth:i}=t.systemInfos.largeAmountMustBind;s&&a[ye.PHONE]||r&&a[ye.EMAIL]||i&&a[ye.GA]||Cm(Eo.LargeBalances)}}const pR="/api/active/rechargeFund/recharge/list",hR="/api/active/rechargeFund/setting/get",Sg="/api/active/rechargeFund/currentPeriodReward/get",Rq=async e=>{var n;const t=await z.request({url:pR,method:"POST",data:{...e}},{omitKey:["platformType"],cache:{useCache:"fresh",time:60},token:{type:"loginOnly"},oss:{enable:!1}});return(n=t==null?void 0:t.data)==null?void 0:n.data},Oq=async()=>{var n;const{hasLogined:e}
28=J(),t=await z.request({url:hR,method:"GET"},{omitKey:["platformType"],cache:{useCache:"fresh",time:60},token:{type:e?"loginOnly":"staticOnly"},oss:{enable:!e}});return(n=t==null?void 0:t.data)==null?void 0:n.data},Pq=async()=>{var t;const e=await z.request({url:Sg,method:"post"},{cache:{useCache:"fresh",time:60},token:{type:"loginOnly"},oss:{enable:!1}});return(t=e==null?void 0:e.data)==null?void 0:t.data},$de=async(e,t="normal")=>{const n=await z.request({url:"/api/active/rechargeFund/receive",method:"post",data:{receive_log_id:e}},{cache:{useCache:!1},oss:{enable:!1},error:{action:t}});return n==null?void 0:n.data},Yde=async()=>{const e=await z.request({url:"/api/active/rechargeFund/reward/changeIsOverFlag",method:"post"},{cache:{useCache:!1},oss:{enable:!1},error:{action:"noMessage"}});return e==null?void 0:e.data},qde=async()=>{var t;const e=await z.request({url:"/api/member/user/avatars",method:"POST"});return(t=e==null?void 0:e.data)==null?void 0:t.data},zde=e=>z.request({url:"/api/member/user/updateUserAvatars",data:e,method:"POST"}),jde=e=>z.request({url:"/api/member/user/settings/modifyinfo",data:e,method:"POST"}),_R="/api/member/v2/user/info",Dq=async(e,t=!0)=>{var o;const n=await z.request({url:_R,data:{action:e},method:"POST"},{cache:{useCache:t,time:30}});return(o=n==null?void 0:n.data)==null?void 0:o.data},Kde=async e=>{var n;const t=await z.request({url:"/api/member/v2/user/update",data:e,method:"POST"});return(n=t==null?void 0:t.data)==null?void 0:n.data},bR=rt(()=>V(()=>Promise.resolve().then(()=>c$),void 0),e=>e.usePopPersistStore,"usePopPersistStore"),Mq=rt(()=>V(()=>Promise.resolve().then(()=>Oae),void 0),e=>e.useRechargeFundStore,"useRechargeFundStore"),Nq=rt(()=>V(()=>import("./EventSubPageChunk.DBmz0utZ.js").then(e=>e._),__vite__mapDeps([0,1,3,4,5,6,7,8,9,10,11,23,24,25,26])),e=>e.useSVipStore,"useSVipStore");function kq(e){return{send(t){const n=To().h,o=n?window.atob(n):"";return!o||!HI(o)?Promise.resolve():Ee(Xc.get(o,{params:{type:e,payload:window.btoa(JSON.stringify(t))}}))}}}const Bq=1;function yR(){var i,c;const e=ue(),t=re.package.isVest,n=((i=e.siteConfig)==null?void 0:i.vestBagSaveLocal)===jt.OPEN,o=(c=window.WgPackage)==null?void 0:c.saveLocal,a=o===Bq||o===void 0&&n;async function r(l){var u,d;if(t&&a){const{jwt_token:m,session_key:g}=l.userInfos;kq("LOGIN_SUCCESS").send({jwt_token:m,session_key:g}).then(f=>nt.info("VestSync",f))}(re.package.isLite||t&&a)&&((d=(u=window.jsBridge)==null?void 0:u.postMessage)==null||d.call(u,"LOGIN_SUCCESS",JSON.stringify(l)))}function s(l){var u,d;re.isInBridgeShellApp&&((d=(u=window.jsBridge)==null?void 0:u.postMessage)==null||d.call(u,"LOGOUT_SUCCESS",JSON.stringify({username:l})))}return{loginSync:r,logoutSync:s}}function CS(){const e=J(),t=tn(),n=()=>h3(),o=async(r,s=!0)=>{var i,c;if(r==="manual"){const l=(i=e.userInfos)==null?void 0:i.username,u=(c=t.tokenInfos)==null?void 0:c.session_key;ve("LOGOUT_BEFORE").emit(),z.cancel("Operation canceled due to logout."),e.duringLogout=!0,e.hasLogined&&await Ee(cG({username:l,token:u})),await a(l),ve("LOGOUT_SUCCESS").emit({username:l,clear:!1}),Re.doReport({rule:Re.rules.CUSTOM_BURIED,eventName:Re.buriedEvents.Logout,payload:{username:l}}),fn.isActivated&&fn.exit()}s&&n()},a=async r=>{var l;r=r!=null?r:(l=e.userInfos)==null?void 0:l.username;const s=Er._ti;localStorage.removeItem("web__lobby__persisted__plazza");const i=await bR();i==null||i.clearUserActivityOpeningRecords(r),localStorage.removeItem("app.userInfos"),localStorage.removeItem("web.lobby.token"),await Ee(z.removeCacheData(Sg)),await Ee(z.removeCacheData(_R)),await Ee(z.removeCacheData(EA)),e.setUserInfos(null),Do().resetPayMaxCharge(),Eb(),tn().updateToken(null);const c=new URL(location.href);c.searchParams.delete("userkey"),c.searchParams.delete("_ti"),s&&tn().setExpiredUrlToken(s),gr(Mn.EVENT_UPDATE_TOKEN).send({token:""},{merge:!1,fireAndForget:!0}),history.replaceState(history.state,"",c.href),On().resetDiscountRedDot(),ed().resetNewBenefits(),await Promise.all([gg().then(u=>u==null?void 0:u.resetVipInfos()),Nq().then(u=>u==null?void 0:u.resetSVipInfos()),Mq().then(u=>u==null?void 0:u.resetRechargeFundInfo()),Yb().then(u=>u==null?void 0:u.resetSurpriseRewardCache())]),e.setLoginRegisterPhoneNumber(""),Gi.disconnect(),as.destroy(),yR().logoutSync(r)};return{logout:o,afterLogoutRedirect:n,clearLoginStatus:a}}function Hq(){const e=J();return{syncStatus:async n=>{var o,a,r;if(e.hasLogined&&(!((o=e.userInfos)!=null&&o.isTrustedDevice)||n)){const[,s]=await Ee(Dq([0],!1));(!im((a=s==null?void 0:s.basic)==null?void 0:a.isTrustedDevice)||n)&&e.updateUserInfos({isTrustedDevice:!!((r=s==null?void 0:s.basic)!=null&&r.isTrustedDevice)})}}}}const Qde=e=>z.request({method:"POST",url:"/api/member/user/security/status"},{...e,oss:{enable:!1}}),Xde=e=>z.request({...e,url:"/api/member/user/security/verifyModify",method:"post"},{oss:{enable:!1}}),Zde=e=>z.request({...e,method:"POST",url:"/api/member/user/notLogin/getAccountVerifyList"},{oss:{enable:!1},token:{type:"staticOnly"},error:{action:"noMessage"}}),Jde=e=>z.request({...e,method:"POST",url:"/api/member/user/notLogin/resetPassVerify"},{oss:{enable:!1},token:{type:"staticOnly"}
28,error:{action:"noMessage",actionExcludes:[$e.CONFIG_CHANGE_ERR_1]}}),eme=e=>z.request({...e,method:"POST",url:"/api/member/user/notLogin/resetPasswd"},{oss:{enable:!1},token:{type:"staticOnly"},error:{action:"normal",actionExcludes:[$e.REGISTER_USERNAME_PASSWORD_SAME_ERR]}}),tme=e=>z.request({...e,method:"POST",url:"/api/member/user/security/switchGoogleAuth"},{oss:{enable:!1},error:{selfHandleSecondVerify:!0}}),nme=e=>z.request({...e,method:"POST",url:"/api/member/user/security/bindGoogleAuth"},{oss:{enable:!1},error:{selfHandleSecondVerify:!0}}),ome=e=>z.request({...e,method:"POST",url:"/api/member/user/security/verifyGoogleAuthCode"},{oss:{enable:!1}}),ame=e=>z.request({...e,method:"POST",url:"/api/member/user/security/verifyLoginPass"},{oss:{enable:!1},error:{action:"normal",actionExcludes:[$e.SECURITY_PASSWORD_EQUAL]}}),rme=e=>z.request({...e,method:"POST",url:"/api/member/user/changePass"},{oss:{enable:!1},error:{selfHandleSecondVerify:!0}}),sme=e=>z.request({...e,method:"POST",url:"/api/member/user/security/verifyWithdrawPass"},{oss:{enable:!1},error:{action:"normal",actionExcludes:[$e.SECURITY_PASSWORD_EQUAL]}}),ime=e=>z.request({...e,method:"POST",url:"/api/member/user/security/modifyWithdrawPass"},{oss:{enable:!1},error:{selfHandleSecondVerify:!0}}),cme=e=>z.request({...e,method:"POST",url:"/api/member/user/passQuint"},{oss:{enable:!1},error:{selfHandleSecondVerify:!0}}),lme=e=>z.request({...e,method:"POST",url:"/api/member/user/editQuint"},{oss:{enable:!1},error:{selfHandleSecondVerify:!0}}),ume=e=>z.request({method:"POST",url:"/api/member/user/security/thirdUser/bindList"},{...e,oss:{enable:!1}}),dme=e=>z.request({...e,method:"POST",url:"/api/member/user/security/actionVerify"},{oss:{enable:!1},error:{selfHandleSecondVerify:!0}}),mme=e=>z.request({...e,method:"POST",url:"/api/member/user/security/thirdUser/unBind"},{oss:{enable:!1},error:{selfHandleSecondVerify:!0}}),gme=e=>z.request({method:"POST",url:"/api/member/user/checkBMM",data:{...e}},{error:{action:"normal"}}),xq=()=>z.request({url:"/api/member/user/security/recordIpInfo",method:"POST"},{error:{action:"silent"}});let vp=0;const Eq=()=>{const e=ty(),t=()=>xq();return{startUpGeoLocation:()=>{vp||!e.isNeedCatchGeo||(vp=wT({fn:t,time:30*6e4}))},stopUpGeoLocation:()=>{clearInterval(vp)}}};let Bo=null;function Uq(){const{openDialog:e,isAcitve:t,closeDialog:n}=cn("userAuthentication"),o=ty(),{hasGamePlaying:a}=mV(),r=l=>{if(Xn([k.SERVICE_IFRAME])||t())return;const{isActivityCheck:u,isLoginStatusCheck:d}=l;u?e("userAuthentication",{openType:"overlay",options:{isActivityCheck:!0,onSuccess:()=>{var m;n("userAuthentication"),(m=l.onSuccess)==null||m.call(l)}}}):d&&e("userAuthentication",{openType:"overlay",options:{isLoginStatusCheck:!0,onSuccess:()=>{var m;n("userAuthentication"),Bo==null||Bo.restart(),(m=l.onSuccess)==null||m.call(l)}}})};return{stopWatchActivity:()=>{Bo==null||Bo.destory()},startWatchActivity:()=>{Bo||pa(()=>V(()=>import("./activeMonitor.CGlmhPly.js"),[]))().then(l=>{const u=Ot["mock.activityTimeout"],d=u?Uy(u):30*6e4;Bo=l.ActiveMonitor.getInstance(m=>{r({isActivityCheck:!0,onSuccess:()=>{m.restart()}})},{timeout:d,independent:!0}),fe(a,m=>{m?Bo==null||Bo.stop():Bo==null||Bo.restart()})})},tryLoginStatusCheck:l=>{const u=Ot["mock.tokenDays"];o.isNeedLoginCheck&&o.isTokenLivedOverDays(u?Uy(u):void 0)&&r({isLoginStatusCheck:!0,onSuccess:()=>{l==null||l(),o.updateTokenCheckedTime()}})}}}function Ed(e){const t=Vo.getInstance("broadcastChannelInstance",Gq).getChannel();return e&&(t.onmessage=e),{emit:n=>{t.postMessage(n)},off:()=>{e&&t.close()}}}class Gq{constructor(){x(this,"channel",null);window.BroadcastChannel?this.channel=new BroadcastChannel("message"):Gg({id:"broadcastchannel-polyfill",src:"/libs/broadcastchannel-polyfill/index.js"}).parallel().then(()=>{this.channel=new BroadcastChannel("message")})}getChannel(){return this.channel}}const Fq=()=>{const{t:e}=we(),{updateRobot:t}=Tt(),n=ty(),o=J(),a=Uq(),{startUpGeoLocation:r,stopUpGeoLocation:s}=Eq(),i={};ve("USER_GAME_GOLD_CHANGE",Tq());const c=()=>{window.addEventListener("resize",()=>{const u=jn();u.isDesktop=Qe().isDesktop}),window.addEventListener("click",()=>{t(0)}),ve("CATCH_GEOLOCATION",async()=>{var u,d,m,g;if(n.isNeedCatchGeo&&!((u=re==null?void 0:re.package)!=null&&u.isApp||(d=re==null?void 0:re.package)!=null&&d.isLite||(m=re==null?void 0:re.package)!=null&&m.isVest||(g=re==null?void 0:re.package)!=null&&g.isWebClip))try{const{isDenied:f}=await wq();r(),f&&bG({message:()=>e("lobby.error.catchGeolocationIsDenied")})}catch(f){console.error(`CATCH_GEOLOCATION Error ${f}`)}}),ve("openUrlByIframe",u=>{(u==null?void 0:u.type)==="openUrlByIframe"&&to(u==null?void 0:u.url)}),n.isNeedLoginCheck&&ve("LOGIN_STATUS_CHECK",u=>{o.isPureNormalMode&&a.tryLoginStatusCheck(u==null?void 0:u.onSuccess)}),ve("LOGIN_SUCCESS",u=>{var d;yR().loginSync(u),Ed().emit({eventType:Ac.onBroadcast,type:"LOGIN_MULTI_TABS",payload:{username:(d=u==null?void 0:u.userInfos)==null?void 0:d.username,loginType:u==null?void 0:u.loginType}}),CL().then(m=>m.afterLoginProcess()),cn().openDialog("forceChangePassword")}),ve("UPDATE_TOKEN_BY_RES",u=>{const{token:d,newjwt:m}=u,g=f=>{var h;const _=Object.assign({},f,{...d?{session_key:d}:{},...m?{jwt_token:m}:{}});tn().updateToken(_),o_().editFillArray({session_key:_.session_key,username:(h=o.userInfos)==null?void 0:h.username})};if(d||m){const f=tn().tokenInfos;f?g(f):fe(()=>tn().tokenInfos,_=>{_&&g(_)},{once:!0})}}),ve("LOGOUT_MULTI_TABS",u=>{var d;u.username===((d=J().userInfos)==null?void 0:d.username)&&(CS().clearLoginStatus(u.username),nt.info("logout@","LOGOUT_MULTI_TABS",u),Zf({message:()=>e("lobby.error.relogin"),clearStatus:{username:u.username}}))}),ve("LOGIN_MULTI_TABS",u=>{var m;const d=(m=J().userInfos)==null?void 0:m.username;if(d&&u.username!==d){if(LN(),u.loginType==="temporaryAccountLogin")return location.reload();nt.info("logout@","LOGIN_MULTI_TABS",u),Zf({message:()=>e("lobby.error.signOut"),clearStatus:{}})}}),ve("TOKEN_EXPIRED",u=>{a.stopWatchActivity(),s(),nt.info("logout@","TOKEN_EXPIRED",u),Zf({...u,clearStatus:{}}),Ed().emit({eventType:Ac.onBroadcast,type:"LOGOUT_MULTI_TABS",payload:u})}),ve("LOGOUT_SUCCESS",u=>{a.stopWatchActivity(),s(),u.clear!==!1&&CS().clearLoginStatus(u.username),Ed().emit({eventType:Ac.onBroadcast,type:"LOGOUT_MULTI_TABS",payload:u})}),ve("GEETEST_ILLEGAL_REQUEST",u=>{yG(u)}),ve("OTHER_CLIENT_GAME_LOGIN",u=>{SG(u)}
28),ve("RESPONSE_ERROR",u=>{_o.error(u,"flush")}),ve("RESPONSE_ERROR_DIALOG",u=>{wG({message:u.message})}),ve("USER_RESTRICT_ERROR",({res:u})=>{fn.isActivated&&!J().hasLogined||SV(u)}),ve("SITE_MAINTAIN",u=>{Iq(bq(u||{}))}),ve("MAINTAIN_MESSAGE",u=>{yq(u)}),ve("CONFIG_CHANGE_ERR",()=>{const{syncStatus:u}=Hq(),d=async()=>{await sf().initApis(()=>PA({cache:{useCache:!1,setCache:!0},oss:{enable:!1},crypto:{enable:!0}}).then(m=>m.data.data))};u(!0),d(),bH().then(m=>{m.data.data&&(ue().setSystemInfos(m.data.data),ve("CONFIG_CHANGE_SUCCESS").emit())})}),ve("CHECK_UPGRADE",()=>{fetch(location.href).then(async u=>{try{const d=await u.text(),[,,m]=d.match(/<html\s+[^>]*data-version=(["']?)([^"'>]+)\1[^>]*>/)||[],g=+Ye(m);g&&m&&ve("VERSION_CHECK").emit({version:g})}catch(d){}})}),ve("VERSION_CHECK",u=>{vG(u)}),ve("ALIVE_CHECK",u=>{(!i.ALIVE_CHECK||i.ALIVE_CHECK+1e3*60*5<Date.now())&&(i.ALIVE_CHECK=Date.now(),_q(u))}),ve("REFRESH_URL",u=>{(!i.REFRESH_URL||i.REFRESH_URL+1e3*60*5<Date.now())&&(i.REFRESH_URL=Date.now(),lL(!1)),u!=null&&u.probeSource&&ve("DOMAIN_PROBE_TRIGGER").emit({source:u.probeSource})}),ve("LANGUAGE_CHANGE",u=>{var d,m;re.speedPackageConfig&&((m=(d=window.jsBridge)==null?void 0:d.postMessage)==null||m.call(d,"sp_language",u.languageCode)),On().discountStaticRules=[]}),ve("CURRENCY_CHANGED",()=>{on().resetData()}),ve("COMPONENT_ERROR",u=>{hq(u)})},l=()=>{try{const u=d=>{var m,g;try{const f=typeof d.data=="object"?d.data:JSON.parse(d.data);if((f==null?void 0:f.eventType)===Ac.onBroadcast){ve(f.type).emit(f.payload);return}const _=["EVENT_CUSTOMIZE_MOCK_PREVIEW","EVENT_CUSTOMIZE_COPY","TELEGRAM"].includes(f.type);(d.origin===window.location.origin||_)&&((f==null?void 0:f.eventType)===Ac.onActions&&ve(f.type).emit(f.payload),f.type==="EVENT_CUSTOMIZE_COPY"&&H_.copy((g=(m=f.payload)==null?void 0:m.value)!=null?g:""))}catch(f){}};window.addEventListener("message",u),Ed(u)}catch(u){}};Gt(()=>{c(),l(),nt.info("useGlobalEventListener onMounted")})};function ll(e){const t=O(!1);return fe(e,n=>{n&&(t.value=n)},{immediate:!0}),n=>()=>t.value?n():null}function sc(e){Kn(()=>{e()}),za(()=>{e()})}let Ud;function Wq(){if(!Ud&&(Ud=O("visible"),da)){const e=()=>{Ud.value=document.hidden?"hidden":"visible"};e(),window.addEventListener("visibilitychange",e)}return Ud}const fme=()=>{var t;const{scopeId:e}=((t=gs())==null?void 0:t.vnode)||{};return e?{[e]:""}:null},Vq=()=>z.request({url:"/api/gohal/heartbeat",method:"post",data:{robot:Tt().robot}},{addCommonParams:!1,error:{action:"noMessage"},oss:{enable:!1}}),$q=()=>{const e=p1();let t=0;fe(e,o=>{if(o==="hidden"){t=Date.now(),as.pause(),ve("APP_VISIBILITY_CHANGE").emit({state:"hidden"});return}if(o!=="visible")return;const a=t?Date.now()-t:0;t=0,ve("CHECK_UPGRADE").emit(),as.recover(),ve("APP_VISIBILITY_CHANGE").emit({state:"visible",hiddenDuration:a}),ve("DOMAIN_PROBE_TRIGGER").emit({source:So.Visibility,hiddenDuration:a})});const n=()=>{setTimeout(()=>{as.create({key:$i.HEART_BEAT,pollingHandler:Vq,immediate:!0,interval:1e3*90})},1e3*10)};Gt(()=>{n(),nt.info("useStateKeeper onMounted")})};function Yq(e,t){if(!window.IntersectionObserver)return;const n=new IntersectionObserver(s=>{t(s[0].intersectionRatio>0)},{root:document.body,threshold:1}),o=C(()=>{var s;return yT(e.value)?e.value:(s=e.value)==null?void 0:s.$el}),a=()=>{o.value&&n.observe(o.value)},r=()=>{o.value&&n.unobserve(o.value)};za(r),fa(r),hs(a)}let qq=2e3;const pme=()=>++qq,hme=(e,t)=>{const n=O(e());return fe(e,o=>{o!==n.value&&(n.value=o)}),fe(n,o=>{o!==e()&&t(o)}),n};class zq{constructor(t,n,o,a=0,r=0){x(this,"identifier");x(this,"target");x(this,"clientX");x(this,"clientY");x(this,"screenX");x(this,"screenY");x(this,"pageX");x(this,"pageY");this.identifier=n,this.target=t,this.clientX=o.clientX+a,this.clientY=o.clientY+r,this.screenX=o.screenX+a,this.screenY=o.screenY+r,this.pageX=o.pageX+a,this.pageY=o.pageY+r}}function wS(){const e=[];return e.item=function(t){return this[t]||null},e.identifiedTouch=function(t){return this[t+1]||null},e}class vR{constructor(t=window){x(this,"eventTarget");x(this,"eventTargetAncestors",[]);x(this,"initiated",!1);x(this,"destoryCallback");if("ontouchstart"in window)return;this.eventTarget=null,this.initiated=!1;const o=this.onMouse("touchstart"),a=this.onMouse("touchmove"),r=this.onMouse("touchend");t.addEventListener("mousedown",o,!0),t.addEventListener("mousemove",a,!0),t.addEventListener("mouseup",r,!0),this.destoryCallback=()=>{t.removeEventListener("mousedown",o,!0),t.removeEventListener("mousemove",a,!0),t.removeEventListener("mouseup",r,!0)}}destory(){this.destoryCallback&&this.destoryCallback()}onMouse(t){return n=>{if(n.type==="mousedown"&&(this.initiated=!0),n.type==="mouseup"&&(this.initiated=!1),!(n.type==="mousemove"&&!this.initiated)){if(n.type==="mousedown"||!this.eventTarget)this.setEventTarget(n.target);else if(!this.eventTarget.isConnected){const o=this.eventTargetAncestors.find(a=>a.isConnected);this.setEventTarget(o!=null?o:n.target)}this.eventTarget.closest("[data-no-touch-simulate]")==null&&this.triggerTouch(t,n),n.type==="mouseup"&&(this.eventTarget=null,this.eventTargetAncestors=[])}}}setEventTarget(t){this.eventTarget=t,this.eventTargetAncestors=[];let n=t;for(;n;)this.eventTargetAncestors.push(n),n=n.parentNode}getActiveTouches(t){return t.type==="mouseup"?wS():this.createTouchList(t)}triggerTouch(t,n){const o=document.createEvent("Event");o.initEvent(t,!0,!0),o.altKey=n.altKey,o.ctrlKey=n.ctrlKey,o.metaKey=n.metaKey,o.shiftKey=n.shiftKey,o.touches=this.getActiveTouches(n),o.targetTouches=this.getActiveTouches(n),o.changedTouches=this.createTouchList(n),this.eventTarget.dispatchEvent(o)}createTouchList(t){const n=wS();return n.push(new zq(this.eventTarget,1,t,0,0)),n}}x(vR,"multiTouchOffset",75);const jq=(e=Ao(window))=>{let t=null;const n=async()=>{"ontouchstart"in window||(t=new vR(e.value))},o=()=>{t&&t.destory()};hs(()=>{n()}),za(()=>{o()}),fa(()=>{o()})};function Da(e){const t=gs();t&&Object.assign(t.proxy,e)}
28const Kq=["data-vue-comp","data-props","data-location-id","data-location-template","data-location-value","data-location-link-type","data-location-type","data-location-category","data-rich","data-target","data-user-agreement","data-action","data-account"];function Qq(e,t={}){const n=Pe({},Bf.getDefaultWhiteList(),{iframe:["width","height","frameborder"]});return t=Pe({whiteList:n,onIgnoreTagAttr(o,a,r){if([Kq.includes(a),["style","class","id"].includes(a),o==="iframe"&&a==="src"&&/^https?:\/\//i.test(r)].includes(!0))return a+'="'+Bf.escapeAttrValue(r)+'"';if(o==="iframe"&&a==="sandbox"){const i=["allow-scripts","allow-same-origin","allow-forms","allow-popups","allow-modals","allow-presentation"],c=r.split(/\s+/).filter(l=>i.includes(l));return'sandbox="'+Bf.escapeAttrValue(c.join(" "))+'"'}}},t),h1(e,t)}const IS={"editor-base-style":"_editor-base-style_1imaa_91","revert-system-style":"_revert-system-style_1imaa_99"},[Xq]=_e("inner-html"),Zq=(e,t)=>{try{return[{tag:"source",attr:"srcset",appendError:!1},{tag:"img",attr:"src",appendError:!0}].reduce((n,{tag:o,attr:a,appendError:r})=>(n=n.replace(new RegExp(`<${o}\\b[^>]*?\\b${a}=(["']?)([^"'\\s>]+)\\1?`,"gi"),(s,i,c)=>{for(const[l,u]of Object.entries(t))if(c.startsWith(l)){const d=cs(),m=c.replace(l,()=>u),[g,f]=d?[m,c]:[c,m],{replaceExtensionList:_}=hL(c),h=Yi(f);if(_.length){const y=_[0],b=TU(h.pathname,y);h.pathname=b}const p=fw(h);return s.replace(`${a}=${i}${c}${i}`,()=>{const y=g.replace(/'/g,"'"),b=r?`onerror="this.onerror=null;this.src='${y}';"`:"";return`${a}=${i}${p}${i} ${b}`})}return s}),n),e)}catch(n){return e}},Gu=le({name:Xq,props:fq,setup(e,{attrs:t,slots:n}){const o=O(),a=e.aTagJumpCheckTag,r=()=>{JG({element:o.value,vestATagJump:e.vestATagJump,checkTag:a}),e.px2rem&&u5({element:o.value})};Da({matchForReplace:r,elementRef:o}),fe(()=>e.html,()=>r(),{flush:"post"}),Gt(()=>r());const{domainListMap:s,ossHost:i}=Ht(),c={[ur(i)]:s.ossDomain.map(u=>ur(u)).find(u=>u!==ur(i))||ur(i)},l=C(()=>{const u=e.format(e.html);let d=e.xssProtection?Qq(u,{whiteList:{picture:["src"],source:["src","srcset","type"],td:["bgcolor"],...e.othersXssWhiteList}}):u;return d=Zq(d,c),d});return()=>{const u={...t,...l.value?{innerHTML:l.value}:{}};return w(e.tag,Te({ref:o},u,{class:[{[IS["editor-base-style"]]:e.revertSystemStyle||e.addCommonStyle},{[IS["revert-system-style"]]:e.revertSystemStyle}]}),{default:()=>{var d;return[(d=n.default)==null?void 0:d.call(n)]}})}}}),[Jq]=Wt("icon"),SR=le({name:Jq,props:uq,setup(e,{slots:t}){const n=C(()=>{const{colorStop:a,angle:r}=e.linearGradientConfig;return a.length&&r?{colorStop:a,points:mq(r)}:null}),o=C(()=>{var s,i;const a=(s=e.svgText)==null?void 0:s.replace(/^\n/,"");if(!a)return null;const r=document.createElement("div");if(/^<svg/.test(a)){r.innerHTML=e.svgGo?dq(a,{params:{attrs:"(fill|stroke)"}}):a;const c=r.childNodes[0],l=dl(),u=c.getAttribute("viewBox")||"",d=`${c.innerHTML} 29${n.value?`<defs> 30 <linearGradient id="${l}" x1="${n.value.points.x1}" x2="${n.value.points.x2}" y1="${n.value.points.y1}" y2="${n.value.points.y2}"> 31 ${(i=n.value)==null?void 0:i.colorStop.map(({progress:m,color:g},f)=>`<stop offset=${m} stop-color=${g} key=${f} />`).join(` 32`)} 33 </linearGradient> 34 </defs>`:""}`;return{linearGradientId:l,svgText:d,viewBox:u}}return null});return()=>{var r,s,i,c,l;const a=e.color||(n.value&&((r=o.value)!=null&&r.linearGradientId)?`url(#${(s=o.value)==null?void 0:s.linearGradientId})`:"currentColor");return w("i",{style:{display:"inline-flex",justifyContent:"center",alignItems:"center"}},[t.default?(i=t.default)==null?void 0:i.call(t):w(Gu,Te({tag:"svg",width:"1em",height:"1em",xssProtection:!1,html:(c=o.value)==null?void 0:c.svgText,viewBox:(l=o.value)==null?void 0:l.viewBox,fill:e.colorMode!=="stroke"&&e.svgGo?a:void 0,stroke:e.colorMode!=="fill"&&e.svgGo?a:void 0,style:{...e!=null&&e.inheritSize?{width:"inherit",height:"inherit"}:{},...e.svgStyle}},e==null?void 0:e.size),{default:()=>{var u,d;return[w("use",{"xlink:href":`#${e.name}`},null),((u=n.value)==null?void 0:u.colorStop.length)&&w("defs",null,[w("linearGradient",Te({id:(d=o.value)==null?void 0:d.linearGradientId},n.value.points),[n==null?void 0:n.value.colorStop.map(({progress:m,color:g},f)=>w("stop",{offset:m,"stop-color":g,key:`stop-${f}`},null))])])]}})])}}}),_f=SR,[,Sp]=_e("image"),e9=le({name:"ImageRender",setup(e,{slots:t}){const n=He(Zb),o=()=>({ref:n.el,class:[Sp(),Sp({"use-bg":n.renderMode.value===lr.Bg,skeleton:n.props.useSkeleton,blur:n.props.showBlurAnimation})],"data-load-strategy":`loading-set@${n.useLoadingAndSet.value?"1":"0"}:lazy@${n.useLazy.value?"1":"0"}`,"data-status":n.status.value,"data-thumb":n.props.thumbSrc&&n.props.thumbSrc!==br?"1":"0","data-id":n.id,"data-src":n.status.value===zt.Error?n.srcComputed.getString():void 0,"data-hide-on-popup":n.props.hideWhenPopupOpen?"1":"0"}),a=(r={})=>{var l;const{color:s,width:i,height:c}=n.props;return w(_f,Te(r,{color:s,colorMode:n.props.svgColorMode,svgGo:n.props.svgGo,inheritSize:n.props.svgInheritSize,linearGradientConfig:n.props.svgLinearGradientConfig,size:i||c?{width:i,height:c}:{},svgText:n.svgContext.value,"data-src":(l=n.srcComputed.obj.value)==null?void 0:l.pathname}),null)};return()=>{const r=o();if(n.renderMode.value===lr.Svg)return n.status.value===zt.Error&&n.errorSrcComputed.src.value&&!n.errorSrcComputed.getIsSvg()?(r.style={width:n.imageWidth,height:n.props.height},w("img",Te(r,{src:n.imgSrc.value||br,style:r.style,alt:n.props.alt||"."}),null)):a(r);if(n.renderMode.value===lr.Bg)return w(lq,r,{default:()=>{var c;return(c=t.default)==null?void 0:c.call(t)},svgOverlay:()=>a({class:Sp("status")})});if(r.style={width:n.imageWidth,height:n.props.height},n.renderMode.value===lr.Canvas)return w("canvas",r,null);const s=n.status.value===zt.LoadingAndSet&&[Hh.LOW,Hh.LOWEST].includes(wb())||n.status.value===zt.Error&&!n.errorSrcComputed.src.value,i=n.props.fetchPriority?{fetchpriority:n.props.fetchPriority}:{};return w("img",Te(r,i,{src:n.imgSrc.value||br,style:{...r.style,...s?{opacity:0}
34:{}},alt:n.props.alt||"."}),null)}}}),t9=le({name:"ImageStrategyConfig",inheritAttrs:!1,props:{loadingAndSet:{type:String},notLazy:{type:String}},setup(e,{slots:t,attrs:n}){return mt(lR,{upTransferCore:o=>{typeof e.loadingAndSet!="undefined"&&(o.loadingAndSet.value=e.loadingAndSet),typeof e.notLazy!="undefined"&&(o.notLazy.value=e.notLazy)}}),()=>{var a;const o=(a=t.default)==null?void 0:a.call(t);return(o==null?void 0:o.length)===1?kn(o[0],n):o}}}),[n9]=["lobby-image"],Ve=le({name:n9,props:sR,emits:iR,setup(e,{emit:t,slots:n}){const o=cR(),a=r=>{t("load",r)};return()=>{var r,s;return w(t9,{loadingAndSet:(r=e.loadingAndSet)!=null?r:o==null?void 0:o.loadingAndSet,notLazy:(s=e.notLazy)!=null?s:o==null?void 0:o.notLazy},{default:()=>[w(cq,null,{default:()=>[w(eq,Te(e,{onLoad:a}),{default:()=>[w(e9,null,{default:()=>{var i;return[(i=n.default)==null?void 0:i.call(n)]}})]})]})]})}}}),o9={"icon-currency":"_icon-currency_7jmu0_91"},[a9]=_e("components-currency-icon"),CR=le({name:a9,props:{customClass:{type:String,default:""},inhertColor:{type:[String,Boolean],default:!1},iconStyle:{type:Object,default:()=>{}},useRtlClass:{type:Boolean,default:!1},isVertical:{type:Boolean,default:!1}},setup(e,{slots:t}){const n=Ge(),o=J(),{getCurrencyPayIconByMap:a}=ze(),r=C(()=>{var l;const c=(l=o.userInfos)==null?void 0:l.currency;return a(c)}),s=C(()=>e.inhertColor?Iw(e.inhertColor)?{color:e.inhertColor}:{color:"inherit"}:{}),i=C(()=>e.isVertical?!1:e.useRtlClass?n.rtlClass:n.isRtlLanguage);return()=>{var c,l;return w(gt,null,[i.value&&((c=t==null?void 0:t.default)==null?void 0:c.call(t)),w(Ve,{style:{...s.value,marginRight:"0.05rem",...e.iconStyle},class:["icon-currency",o9["icon-currency"],e.customClass],src:r.value},null),!i.value&&((l=t==null?void 0:t.default)==null?void 0:l.call(t))])}}}),wu={WithoutNormalFlow:{FlipList:"animate-flip-list",Fade:"animate-fade__without-normal-flow",Page:{Fade:"animate-page-fade",Push:"animate-page-push",Pop:"animate-page-pop"}},Zoom:"animate-zoom",Fade:"animate-fade",SlideUp:"animate-slide-up",SlideDown:"animate-slide-down",SlideLeft:"animate-slide-left",SlideRight:"animate-slide-right",DropDown:"drop-down"},go={Animated:"animate__animated",NoReduce:"animate__no_reduce",HeartBeat:"animate__heartBeat",Speed:{Faster:"animate__faster",Slow:"animate__slow",Slower:"animate__slower"},Repeat:{Infinite:"animate__infinite",1:"animate__repeat-1"},FillMode:{Forwards:"animate__forwards"},Actions:{Spin:"animate__spin",BeatUpAndDown:"animate__beatUpAndDown",SwingByCenter:"animate__swingByCenter",FadeOut:"animate__fadeOut",slideInDown:"animate__slideInDown"}},wR={FixedNoDesktop:"wg-fixed-no-desktop"},r9={"modal-top-z-index":99999999,"modal-suggest-download-app":99999,"modal-account-info":1003,"modal-account-bind":1002,"modal-account-bind-mask":1001,"modal-download-app":1001,"modal-guild-save-shortcut":99999,"modal-save-shortcut":1001,"modal-yuebao":1998,"fixed-view":1998},_me={iframeMaintainPopupBg:"#fff"},s9={disabled:{type:Boolean,default:!1},fullViewStop:{type:Boolean,default:!1},resetDelay:{type:Number,default:0},speed:{type:Number,default:77},direction:{type:String,default:Qs.Left},delay:{type:Number,default:0},minRequiredDuration:{type:Number,default:1},useRealWidthMath:{type:Boolean,default:!1},gap:{type:Number,default:0},noScrollWhenFullVisible:{type:Boolean,default:!1},avoidSafariBlink:{type:Boolean,default:!1},isPaused:{type:Boolean,default:!1}},i9="_main_1rcjp_91",c9="_placeholder_1rcjp_100",l9="_mainScroller_1rcjp_104",u9="_scrollUp_1rcjp_185",d9="_dynamicScrollUp_1rcjp_1",m9="_scrollRight_1rcjp_189",g9="_dynamicScrollRight_1rcjp_1",f9="_scrollDown_1rcjp_193",p9="_dynamicScrollDown_1rcjp_1",h9="_scrollLeft_1rcjp_197",_9="_dynamicScrollLeft_1rcjp_1",ci={main:i9,placeholder:c9,mainScroller:l9,"scroll-pasued":"_scroll-pasued_1rcjp_113",scrollUp:u9,dynamicScrollUp:d9,scrollRight:m9,dynamicScrollRight:g9,scrollDown:f9,dynamicScrollDown:p9,scrollLeft:h9,dynamicScrollLeft:_9},[b9]=_e("seamless-scroll"),IR=le({name:b9,props:s9,emits:["scrollend","animationstart"],setup(e,{slots:t,emit:n}){const{direction:o,minRequiredDuration:a,disabled:r,speed:s,delay:i,fullViewStop:c,resetDelay:l,gap:u,noScrollWhenFullVisible:d,useRealWi
34dthMath:m}=ss(e),g=[Qs.Left,Qs.Right].includes(o.value)?"width":"height",f=O(null),_=O(null),h=O(null),p=O(null),y=Hi(_),b=Hi(f),v=Hi(h),A=C(()=>{const G=Qe(),N=G.isIos||G.isMacos||G.isIpad;return e.avoidSafariBlink&&N}),L=va.disableSeamlessScroll();let T=null;const S=()=>{T!=null&&(clearTimeout(T),T=null)},I=()=>{if(S(),e.isPaused||r.value)return;const G=Math.max(a.value,3)*1e3;T=setTimeout(()=>n("scrollend"),G)},R=()=>{const G=p.value;G&&(G.classList.remove(ci[`scroll${o.value}`]),G.offsetWidth,B.value&&!L&&G.classList.add(ci[`scroll${o.value}`]))},D=C(()=>m.value?h.value?Math.floor(v[g].value):0:_.value?Math.floor(y[g].value):0),M=C(()=>f.value?b[g].value:0),B=O(!r.value),E=C(()=>c.value?Math.min(M.value,D.value):u.value?u.value*-1:0),Y=C(()=>Math.max(D.value-E.value,.1)),H=C(()=>{if(!M.value||!D.value)return 0;const G=Y.value/s.value;return Math.max(a.value,G)}),F=C(()=>D.value>M.value),Q=G=>{B.value=G};return fe(()=>r.value,G=>{if(L){G?S():I();return}G?l.value?setTimeout(()=>{Q(!1)},l.value*1e3):Q(!1):Q(!0)}),fe(H,(G,N)=>{N===0&&G>0&&B.value&&yt(()=>{R()})}),fe(()=>e.isPaused,G=>{L&&(G?S():I())}),Gt(()=>{d.value&&(B.value=F.value),L&&!r.value&&I()}),Kn(()=>{S()}),fe(F,G=>{d.value&&!r.value&&(B.value=G)}),()=>{var G,N,$;return w("span",{ref:f,class:ci.main,"data-direction":o.value.toLowerCase(),style:{"--end-offset":`${E.value}px`}},[w("div",{class:"seamless-scroll-inner"},[w("span",{ref:_,class:ci.placeholder,style:{visibility:"hidden"}},[(G=t.default)==null?void 0:G.call(t)]),w("div",{ref:p,onAnimationstart:()=>{n("animationstart")},onAnimationend:()=>{A.value&&R(),n("scrollend")},onAnimationiteration:()=>{n("scrollend")},class:["seamless-main-scroller",ci.mainScroller,[go.NoReduce,go.Animated,go.FillMode.Forwards,c.value||A.value?go.Repeat[1]:go.Repeat.Infinite,{[ci[`scroll${o.value}`]]:B.value&&!L,[ci["scroll-pasued"]]:e.isPaused}],"mainScroller"],style:{animationDelay:`${i.value}s`,animationDuration:`${H.value}s`}},[w("span",{ref:h},[(N=t.default)==null?void 0:N.call(t)]),w("span",{style:{"margin-left":`${u.value}px`}},[($=t.default)==null?void 0:$.call(t)])])])])}}}),y9="_vertical_1yta0_104",v9="_disabled_1yta0_113",S9="_bold_1yta0_116",Na={"category-icon-text":"_category-icon-text_1yta0_91",vertical:y9,"seamless-scroll":"_seamless-scroll_1yta0_107","category-text":"_category-text_1yta0_110",disabled:v9,bold:S9,"category-icon":"_category-icon_1yta0_91","has-value":"_has-value_1yta0_145","category-text-name":"_category-text-name_1yta0_152","category-text-value":"_category-text-value_1yta0_159"};function C9(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ao(e)}const[w9]=_e("pages-discount-components-category-icon-text"),I9=le({name:w9,props:{type:{type:String,default:Wr.Common},detail:{type:Object,required:!0},disabled:Boolean,isVertical:Boolean,onlyIcon:Boolean,bold:Boolean,iconClass:String,textClass:String,autoScrollLimit:{type:Number,default:0},configMap:{type:Object,default:null},keepLTR:{type:Boolean,default:!1}}
34,setup(e){const t=Ge(),n=C(()=>S6(e.type)),o=C(()=>e.keepLTR?!0:[Wr.Mall].includes(e.type)),a=C(()=>{var u;const l=Pe({},n.value[e.detail.key],(u=e.configMap)==null?void 0:u[e.detail.key]);return Pe(l,e.detail)}),r=()=>{if(a.value.icon)return w(Ve,{src:e.disabled&&a.value.disabledIcon||a.value.icon,class:[Na["category-icon"],e.iconClass],alt:a.value.title},null)},s=()=>a.value.valueText?w(gt,null,[w("span",{class:Na["category-text-name"]},[a.value.text]),w("span",{class:Na["category-text-value"],style:{color:a.value.valueTextColor}},[a.value.valueText])]):a.value.text,i=()=>{var d,m;const l=!!a.value.valueText,u=[Na["category-text"],l&&Na["has-value"],e.textClass,t.rtlClass];return e.autoScrollLimit>0&&a.value.text?w(IR,{class:Na["seamless-scroll"],disabled:((d=a.value.text)==null?void 0:d.length)<=e.autoScrollLimit,gap:((m=a.value.text)==null?void 0:m.length)<=e.autoScrollLimit?0:10,direction:t.rtlClass?Qs.Right:Qs.Left},{default:()=>[w("span",{class:u},[s()])]}):w("span",{class:u},[s()])},c=()=>{let l;return e.onlyIcon?r():a.value.category!=null&&[xe.Bouns,xe.MultipleBonus].includes(a.value.category)&&!e.detail.icon?w(CR,{customClass:`${Na["category-icon"]} ${e.iconClass}`,iconStyle:{marginRight:0},isVertical:e.isVertical},C9(l=i())?l:{default:()=>[l]}):o.value&&t.isRtlLanguage?w(gt,null,[i(),r()]):w(gt,null,[r(),i()])};return()=>w("span",{style:{"--category-icon-color":a.value.iconColor||"","--category-text-color":a.value.textColor||""},"data-key":a.value.key,class:{[Na["category-icon-text"]]:!0,[Na.vertical]:e.isVertical,[Na.disabled]:e.disabled,[Na.bold]:e.bold}},[c()])}}),A9="_rewardPopup_lig3d_91",L9="_text_lig3d_106",T9="_rightContent_lig3d_115",R9="_currency_lig3d_123",O9="_activity_lig3d_124",P9="_icon_lig3d_102",D9="_iconAnime_lig3d_159",M9="_anime_lig3d_164",er={rewardPopup:A9,"icon-img":"_icon-img_lig3d_102",text:L9,rightContent:T9,currency:R9,activity:O9,icon:P9,"text-class":"_text-class_lig3d_148",iconAnime:D9,anime:M9},N9=le({props:{award:{type:Number,default:0},activity:{type:Number,default:0},messageText:{type:String,required:!1},extraBonusType:{type:Number,default:ct.Activity},couponName:{type:String,default:""}},setup(e){const{t}=we(),n=Ge(),o=C(()=>e.extraBonusType===ct.Discount?e.couponName||t("lobby.coupon.couponTitle"):e.activity),a=C(()=>{if(e.extraBonusType===ct.Discount)return String(o.value);const r=vu(o.value,0);return"+"+(["zh","zh_hk"].includes(n.language)&&dM.includes(e.extraBonusType)?t("lobby.modal.task.giftCount",{x:r}):r)});return()=>{var i;const r=ia(e.award),s=n.isRtlLanguage?[r,"+"]:["+",r];return w("div",{class:er.rewardPopup},[w(Ve,{class:er["icon-img"],useSkeleton:!0,src:"/lobby_asset/common/common/common/img_emoji_tada.png"},null),w(Gu,{class:[er.text,n.rtlClass],html:(i=e.messageText)!=null?i:t("lobby.event.receiveSuccessTip")},null),w(Ve,{class:er.anime,src:"/lobby_asset/common/web/animated/apng_lingqu_5_alpha.png",isApng:!0,canvasMode:{numPlays:1}},null),w("div",{class:er.rightContent},[!!e.award&&w("span",{class:er.currency},[w(CR,{customClass:er.iconAnime},{default:()=>[w("span",null,[s])]})," "]),!!o.value&&w("span",{class:er.activity},[w(I9,{type:Wr.Receive,autoScrollLimit:13,isVertical:!1,class:{[er.icon]:!0},textClass:er["text-class"],detail:{key:e.extraBonusType,text:a.value,...e.extraBonusType===ct.Discount&&{textColor:"var(--discount, #0D79FF)",iconColor:"var(--discount-text, #0D79FF)"}},bold:!0},null)])])])}}}),k9="_animatePopup_1lq98_91",B9="_errorMessageModal_1lq98_114",H9="_largeAmountModal_1lq98_138",x9="_reviewNotifyDialog_1lq98_155",E9="_reviewNotify_1lq98_155",U9="_success_1lq98_173",G9="_icon_1lq98_177",F9="_text_1lq98_182",ny={animatePopup:k9,errorMessageModal:B9,"task-order-tips":"_task-order-tips_1lq98_134",largeAmountModal:H9,reviewNotifyDialog:x9,reviewNotify:E9,success:U9,icon:G9,text:F9},ai=()=>({time:(J().hasLogined?1:10)*60}),bi=e=>Ye().startOf("day").second(e).format("HH:mm:ss"),W9=e=>{let t=(e==null?void 0:e.promotional_color)||"";if(!e)return{url:t,isCustomer:!1};const n=e.promotional_style===aI.Customer,o=e.unique_no&&e.promotional_imgstr;return o?t=e.promotional_imgstr:n&&(t=e.promotional_picture||e.promotional_color),{url:t,isCustomer:o||n}},V9=({periodDuration:e,receiveDuration:t,canReceive:n})=>{var o;return(o=n?e:t)!=null?o:0},AR=()=>{const{t:e}=we();return{1:e("lobby.event.validDay.monday"),2:e("lobby.event.validDay.tuesday"),3:e("lobby.event.validDay.wednesday"),4:e("lobby.event.validDay.thursday"),5:e("lobby.event.validDay.friday"),6:e("lobby.event.validDay.saturday"),7:e("lobby.event.validDay.sunday")}},oy=e=>{const{t}=we();e.message&&yr.showDialog({title:(e==null?void 0:e.title)||(()=>t("lobby.notice.importantNotice")),type:"error",closeOnClickOverlay:!1,showCloseButton:!0,showConfirmButton:!1,className:ny.errorMessageModal,...e})},LR=e=>{const{t}=we();e.message&&yr.showDialog({title:(e==null?void 0:e.title)||(()=>t("lobby.error.friendlyReminder")),closeOnClickOverlay:!1,showCloseButton:!0,showConfirmButton:!1,className:ny.errorMessageModal,...e})},TR=(e,t,n,o,a)=>{var i,c;const{t:r}=we(),s={[Ts.Now]:()=>
34r("lobby.event.listedRewards.canReceiveTip1",{day:Ni(e,"ymdhms")}),[Ts.NextDay]:()=>r("lobby.event.listedRewards.canReceiveTip1",{day:Ni(e,"ymdhms")}),[Ts.NextWeek]:()=>r("lobby.event.listedRewards.canReceiveTip1",{day:Ni(e,"ymdhms")}),[Ts.NextMonth]:()=>r("lobby.event.listedRewards.canReceiveTip1",{day:Ni(e,"ymdhms")}),[Ts.EveryDaily]:()=>r("lobby.event.listedRewards.canReceiveTip2",{startTime:bi(n),endTime:bi(o)}),[Ts.EveryWeek]:()=>{const l=AR();return r("lobby.event.listedRewards.canReceiveTip3",{week:l[t],startTime:bi(n),endTime:bi(o)})},[Ts.Monthly]:()=>r("lobby.event.listedRewards.canReceiveTip4",{day:t,startTime:bi(n),endTime:bi(o)})};return(c=(i=s[a])==null?void 0:i.call(s))!=null?c:""},$9=e=>{const{receiveTimeRemark:t,canReceiveTime:n}=e,{receiveTimeDay:o,receiveTimeStart:a,receiveTimeEnd:r,receiveTimeType:s}=sd(t)||{};return TR(n,o,a,r,s)},Y9=(e={})=>{typeof e=="number"&&(e={award:e});const{award:t=0,activity:n=0,extraBonusType:o=ct.Activity,messageText:a,receiveList:r,couponName:s}=e,i=r==null?void 0:r.reduce((d,m)=>sa(d).plus(m.reward).number,sa(0).number),{t:c}=we(),l=s||c("lobby.coupon.couponTitle"),u=o===ct.Discount&&String(l).length>13;return _o.success({overlayClass:ny.animatePopup,...u&&{duration:5e3},message:()=>kn(N9,{award:Number(i||t),activity:Number(n),messageText:a,extraBonusType:o,couponName:s})})},q9=e=>{const{t}=we();return{[xo.Processing]:t("lobby.modal.task.processing"),[xo.CanReceive]:t("lobby.modal.task.collect"),[xo.HasReceive]:t("lobby.modal.task.collected"),[xo.Expired]:t("lobby.modal.task.expired"),[xo.Distributed]:t("lobby.modal.task.distributed"),[xo.Cancel]:t("lobby.modal.task.cancel"),[xo.PendingCheck]:t("lobby.modal.task.collect"),[xo.PendingApply]:t("lobby.modal.task.applyAward"),[xo.Rejected]:t("lobby.records.rejected")}[e]},z9=e=>{try{const t=JSON.parse(e);return Array.isArray(t)}catch(t){return!1}},Dm=(e,t)=>rR(e,t).canReceive,j9=async(e=!0)=>{var a,r,s;const t=await l6();J().hasLogined&&await t.getAgentPromotion();const{linkList:n}=(a=t.agentPromotion)!=null?a:{},o=((r=n==null?void 0:n.find(i=>i.select))==null?void 0:r.url)||((s=n==null?void 0:n[0])==null?void 0:s.url)||window.location.origin;o&&(H_.copy(o),_o.success(we().t("lobby.common.tips.copy"),"flush"),await zn(500),e&&to(o))},ay=e=>{var t,n,o;if(e){if(!e.operationStatus)return!0;const a=((t=e.operationId)==null?void 0:t.split(","))||[],{userInfos:r,hasLogined:s}=J();if(!s)return!1;if(e.operationType===lh.Channels)return(r==null?void 0:r.regPkgId)&&a.includes((n=r.regPkgId)==null?void 0:n.toString());if(e.operationType===lh.Agents)return(r==null?void 0:r.parentUsername)&&a.includes((o=r.parentUsername)==null?void 0:o.toString())}return!0},K9=()=>Ge().isCN?"ã":".",Q9=({logCategory:e,receiveStatus:t})=>e===rI.Max&&t===xo.PendingApply?we().t("lobby.modal.task.collect"):!1,X9=e=>{if(e.isLoading){if(e.isEmpty||e.isError&&!e.noError)return"loading";if(!e.noLoading)return"nested-loading"}else if(e.isError){if(e.isEmpty||!e.noError)return"retry"}else if(e.isEmpty)return"empty";return null},Z9=e=>{var r;let t={},n={};try{t=JSON.parse(e||"{}")}catch(s){}const{displayType:o,displayList:a=[]}=t;return+o&&(a!=null&&a.length)&&(n=(r=a.find(s=>+s.deviceType===cI.Mobile))!=null?r:{}),n};function sd(e){const t=$1(JSON.parse,e);return Y1(t)?void 0:t}const RR=(e,t)=>{if(!e)return"";const{isIOS:n}=ft().os;return e.split(",").map(o=>t[o]||o).filter(o=>!(n&&o===String(Aa.PWA))).join(",")},J9=e=>RR(e,{[Sc.NATIVE]:String(Aa.Normal),[Sc.CLONE]:String(Aa.Vest),[Sc.SPEED]:String(Aa.Speed),[Sc.PWA]:String(Aa.PWA),[Sc.IOS_SIGN]:String(Aa.Quick)}),OR=e=>RR(e,{[Cc.NATIVE]:String(Aa.Normal),[Cc.CLONE]:String(Aa.Vest),[Cc.SPEED]:String(Aa.Speed),[Cc.PWA]:String(Aa.PWA),[Cc.IOS_SIGN]:String(Aa.Quick)}),ez=e=>e===uh.Rebate||e===uh.CreditReturnGold,bme=Object.freeze(Object.defineProperty({__proto__:null,checkCountdown:V9,checkUserLevelOperation:ay,commonReceiveTips:TR,convertReceiveDeviceTypeWays:OR,convertRulesDeviceTypeWays:J9,copyPromoteUrl:j9,defaultCache:ai,getEventBannerImg:W9,getEventCustomizeDisplayItem:Z9,getLogCategoryMax:Q9,getNoDot:K9,getPlaceholderType:X9,getReceiveText:q9,getTime:bi,isCashbackDiscountType:ez,isJSONStringArray:z9,receiveDeviceValid:Dm,receiveTipsMapText:$9,safeJsonParse:sd,showErrorMessageModal:oy,showKindMessageModal:LR,showReceiveAnime:Y9,validDayMappings:AR},Symbol.toStringTag,{value:"Module"})),PR="/api/active/get",tz=async(e,t)=>{var o;const n=await z.request({url:PR,method:"POST",data:{activeId:e,...t!=null&&t.refreshReward?{refreshStatistic:t==null?void 0:t.refreshReward}:{},...t!=null&&t.extendParam?{extendParam:t==null?void 0:t.extendParam}:{}}},{crypto:{enable:!1},cache:{useCache:"fresh",...ai()},...(t==null?void 0:t.config)||{}});return Fn((o=n==null?void 0:n.data)==null?void 0:o.data)},nz="/api/active/activeTaskCompleteList",yme=async()=>{var t;const e=await z.request({url:nz,method:"POST",timeout:1e4},{maxRetryCount:1,error:{action:"silent"},cache:{useCache:"fresh",time:60}});return(t=e==null?void 0:e.data)==null?void 0:t.data},oz=e=>z.request({url:"/api/active/receiveOne",method:"POST",data:{...e}},{error:{action:"silent"}}),vme=async e=>{var n;const t=await oz(e);return(n=t==null?void 0:t.data)==null?void 0:n.data},AS=async e=>{var n;const t=await z.request({url:"/api/active/tasks/task_save_address",method:"POST",data:{...e}},{error:{action:"noMessage"}});return(n=t==null?void 0:t.data)==null?void 0:n.data},Sme=async()=>{var t;const e=await z.request({url:"/api/active/getDefaultAddress",method:"GET"},{error:{action:"noMessage"},cache:{useCache:!1}});return(t=e==null?void 0:e.data)==null?void 0:t.data},Cme=async()=>{var t,n;const e=await z.request({url:"/api/active/getBigApplyPopupConfig",method:"POST"},{error:{action:"silent"},cache:{useCache:!0,setCache:!0},maxRetryCount:1});return(n=(t=e==null?void 0:e.data)==null?void 0:t.data)!=null?n:{}},az=["thirdAccount","limitType","limitGames"],LS=e=>typeof e=="number"?Number.isFinite(e)?String(e):"":typeof e=="string"?e.trim():"",rz=(e,t)=>{if(!e)return t;const n=LS(e.username);if(!n||n!==LS(t.username))return t;const o={};let a=!1;for(const r of az)t[r]!==void 0||e[r]===void 0||(Object.assign(o,{[r]:e[r]}),a=!0);return a?{...t,...o}:t},Cp=["025","032","105","1195","1525","1505","1512","1566"].includes(String(vn.siteCode)),sz=rt(()=>V(()=>import("./0_RechargeCommonChunk.DDWWiKeW.js").then(e=>e.bI),__vite__mapDeps([0,1])),e=>e.useSmartRechargeStore,"useSmartRechargeStore"),J=ke("user",()=>{const e=ue(),t=O(!1),n=O(!1),o=O(!1),a=O(null),r=O(0),s=C(()=>{var ee;return(ee=a==null?void 0:a.value)==null?void 0:ee.username}),i=ee=>{var ce;a.value=ee?rz(a.value,ee):null,((ce=a.value)==null?void 0:ce.account_type)!==qt.Try&&sz().then(pe=>{pe.init(a.value)})},c=ee=>{a.value=Pe(a.value,ee)},l=O(""),u=O(),d=C(()=>{var pe;const{hasToken:ee,ensureTokenAndUidMatched:ce}=tn();return(pe=Ou.tokenMetas)!=null&&pe.replace?ce:!!ee&&typeof s.value!="undefined"}),m=C(()=>d.value),g=C(()=>d.value||_.value),f=C(()=>{var ee;return((ee=a.value)==null?void 0:ee.account_type)===qt.Demo}),_=C(()=>{var pe,Fe,Ne;const ee=((pe=a.value)==null?void 0:pe.account_type)===qt.Temporary,ce=((Fe=a.value)==null?void 0:Fe.account_type)===qt.Normal;return ee||ce&&((Ne=a.value)==null?void 0:Ne.tempAccountStatus)===1}),h=C(()=>v.value&&!_.value),p=C(()=>{var ee,ce;return{unLogin:!d.value&&_.value,logined:d.value&&_.value,unRecharg:!((ee=a.value)!=null&&ee.deposit_count)&&_.value,recharged:!!((ce=a.value)!=null&&ce.deposit_count)&&_.value}}),y=C(()=>{var ce;return((ce=a.value)==null?void 0:ce.changeWithdrawPassword)===dr.OPEN||r.value===dr.OPEN}),b=C(()=>{var ee;return((ee=a.value)==null?void 0:ee.account_type)===qt.Try}),v=C(()=>{var ee;return((ee=a.value)==null?void 0:ee.account_type)===qt.Normal}),A=C(()=>{var ee;return((ee=a.value)==null?void 0:ee.account_type)===qt.Agent}),L=C(()=>{var ee;return((ee=a.value)==null?void 0:ee.account_type)===qt.ProfessionalAgent}),T=C(()=>{var ee;return((ee=a.value)==null?void 0:ee.account_type)===qt.NormalMember}),S=C(()=>{var ee;return((ee=a==null?void 0:a.value)==null?void 0:ee.deviceFingerprint)||l.value}),I=C(()=>v.value&&!_.value||f.value),R=C(()=>b.value||!d.value||_.value);fe(()=>{var ee;return[(ee=a.value)==null?void 0:ee.game_gold,e.systemInfos]},ve("USER_GAME_GOLD_CHANGE").emit,{immediate:!0});const D=ee=>{l.value=ee},M=C(()=>{const ee=tn(),{hasToken:ce,userkeyFromUrl:pe}=St(ee);return ce.value||!!pe.value}),B=C(()=>{var pe;let ee=location.origin,ce;return _a()?ce=ch.AgentPC:ce=ch.Sass,{domain:ee,clientType:re.package.isLite||re.isWebClip?2:5,jpush_id:"",loginId:jn().uuid,deviceHash:jn().hash,os_type:fl(),deviceOsType:rA(),deviceModel:iA(),platformType:"1001",operationId:0,pkgId:1,...re.package.isLite?{mtpush_id:(pe=re==null?void 0:re.speedPackage
34Config)==null?void 0:pe.pushId}:{},fromClub:ce}}),E=C(()=>{var ee,ce;return((ce=(ee=e.systemInfos)==null?void 0:ee.loginRegister)==null?void 0:ce.autoLoginAfterReinstall)!==Ng.CLOSE}),Y=O(""),H=ee=>{Y.value=ee},F=O(0),Q=ee=>{F.value=ee},G=O(0),N=ee=>{G.value=ee},$=C(()=>{var ce,pe;return((pe=(ce=a.value)==null?void 0:ce.deposit_count)!=null?pe:0)>0}),X=C(()=>{var ce;const ee=(ce=a.value)==null?void 0:ce.register_time;return ee?Tt().getServerTime()-ee:0}),j=O(""),te=ee=>{j.value=ee},K=O(""),q=ee=>{K.value=ee},ae=O(""),me=ee=>{ae.value=ee},de=O(!Cp),ne=(ee=!de.value)=>{de.value=ee},U=O(!0),W=()=>{U.value=!U.value},oe=O(null),be=ee=>{oe.value=ee},Ie=async()=>{var ee;try{if(!d.value)return;const ce=await UA();ce!=null&&ce.restrictInfo?c({...a.value,...ce==null?void 0:ce.restrictInfo,restrictInfo:ce==null?void 0:ce.restrictInfo}):(ee=a.value)==null||delete ee.restrictInfo}catch(ce){}},Me=O(),et=ee=>Me[ee],se=(ee,ce)=>{Me[ee]=ce},Ae=O(),Je=ee=>{Ae.value=ee},wt=O(""),Dt=ee=>{wt.value=ee},xn=()=>{var ce,pe;const ee=(pe=(ce=a.value)==null?void 0:ce.deposit_count)!=null?pe:0;a.value=Pe(a.value,{deposit_count:ee+1}),ve("USER_DEPOSIT_COUNT_CHANGE").emit()},pt=O(!1),{uuid:xt}=jn(),{isP2a:Pn,isAndroid:an,isH5Shortcut:ro}=Qe(),Xa=async()=>{var ee;try{if(re.package.isApp||!d.value||Pn&&an||(ee=re==null?void 0:re.package)!=null&&ee.isWebClip)return;(Pn||ro)&&(pt.value||(await AS({address:xt,actionType:1}),await AS({address:xt,actionType:2}),pt.value=!0))}catch(ce){console.log("checkPWATask error",ce)}},ie=C(()=>!_.value&&d.value);return{isPureNormalMode:h,isRegistered:o,duringLogout:t,isLogined:m,hasLogined:d,hasLoginedComponent:g,hasHistoryLogined:u,useFastLogin:M,isNormalMode:v,isAgent:A,isProfessionalAgent:L,isNormalMember:T,isTryMode:b,isDemoMode:f,isTemporaryAccountMode:_,temporaryAccountStatus:p,userInfos:a,ipBindInfo:oe,userLoginBasePayload:B,fingerId:l,getFingerId:S,confEnableAutoLogin:E,geeToken:Y,geeTokenCreateTime:F,geetestRestrictedTime:G,isFirstDeposit:$,remember:de,agreed:U,autoFillString:j,autoFillAccount:K,localAccounts:ae,withdrawPasswordDialogVisible:y,loginValidatePassed:Ae,loginRegisterPhoneNumber:wt,configInitializationCompeted:n,registerSeconds:X,setLoginRegisterPhoneNumber:Dt,setLoginValidatePassed:Je,setGeetestRestrictedTime:N,setUserInfos:i,updateUserInfos:c,setFingerId:D,setIPBindInfo:be,setGeeToken:H,setGeeTokenCreateTime:Q,toggleRemember:ne,toggleAgreed:W,setAutoFillString:te,setAutoFillAccount:q,setLocalAccounts:me,updateUserRestrictInfo:Ie,getCurrencySeparator:et,setCurrencySeparator:se,updateDepositeCount:xn,checkPWATask:Xa,isFormallyLoggedInUser:I,isGuestAccount:R,isEqauelToLogin:ie,updateWithdrawPasswordStatus:ee=>{r.value=ee}}},{persist:{storage:Yo({afterGet(e,t){try{Cp&&qe.cookie.remove(t)}catch(n){console.error("remove cookie",n)}return e}},[{type:"local"},{type:Cp?"session":"cookie",config:{pathsPick:["userInfos"],pathsOmit:["userInfos.jwt_token","userInfos.userkey"]}}]),paths:["userInfos","remember","fingerId","agreed","autoFillString","autoFillAccount","localAccounts","hasHistoryLogined","loginRegisterPhoneNumber"]}}),DR=()=>St(J());function yl(e){const{allCurrencyList:t}=ze();return t==null?void 0:t.find(n=>n.currencyCode===e)}function wme(){var n;const{userInfos:e}=J(),t=yl((n=e==null?void 0:e.currency)!=null?n:"CNY");return(t==null?void 0:t.gameRate)!==1}function iz(){var c,l;const{userInfos:e,getCurrencySeparator:t,setCurrencySeparator:n}=J(),o=(c=e==null?void 0:e.currency)!=null?c:"CNY",a=t(o);if(a)return a;const r=yl(o),i={".":{decimalSeparator:",",groupSeparator:"."},",":{decimalSeparator:".",groupSeparator:","}}[(l=r==null?void 0:r.thousandthPlace)!=null?l:","];return n(o,i),i}function bf(e){const t=yl(e);return(t==null?void 0:t.currencyType)===JP.crypto}function cz(e,t){return e==="VND"&&t!=="rate"||bf(e)?"suffix":"prefix"}const Ime=()=>{const{userInfos:e}=J();return(e==null?void 0:e.currency)==="BRL"},Ame=()=>{const{userInfos:e}=J();return(e==null?void 0:e.currency)==="PKR"},Lme=()=>{const{userInfos:e}=J();return(e==null?void 0:e.currency)==="KRW"},Tme=()=>{const{userInfos:e}=J();return(e==null?void 0:e.currency)==="ARS"},Rme=()=>{const{userInfos:e}=J();return(e==null?void 0:e.currency)==="THB"},Ome=()=>{const{userInfos:e}=J();return(e==null?void 0:e.currency)==="CLP"},Cg=()=>{var t;const{userInfos:e}=J();return(t=yl((e==null?void 0:e.currency)||"CNY"))==null?void 0:t.currencySign};function lz(e){return bf(e)?nD.includes(e)?fu.specialCryptos:fu.crypto:fu.normal}function Pme(e){if(!e)return e;const t=15,n=12;return e.includes(".")?e.slice(0,t):e.slice(0,n)}function MR(e){const t=yl(e);return t?bf(t.marketCurrencyCode)?t.marketCurrencyCode:t.currencySign:""}function uz(e){var a;const t=e.toString(),n=t.indexOf(".");return n===-1?0:t.length-n-1-(((a=t.slice(n+1).match(/0+$/))==null?void 0:a[0].length)||0)}function Dme(e,t=0){const n=e-t,o=Math.max(0,Math.floor((n-1)/3)),a=Math.max(0,Math.floor(t/3));return o+a}function Oo(e,t){var l,u,d,m;t=Pe({},oD,t);const{userInfos:n}=J(),o=((l=yl((n==null?void 0:n.currency)||"CNY"))==null?void 0:l.marketCurrencyCode)||"CNY",a=(u=t==null?void 0:t.code)!=null?u:o;let r=(e!=null?e:0).toString();typeof e=="string"&&(r=e.replace(",","."));const s=sa(r),i=iz(),c={decimalSeparator:(d=t.decimalSeparator)!=null?d:i.decimalSeparator};if(t!=null&&t.showGroup&&(c.groupSeparator=(m=t.groupSeparator)!=null?m:i.groupSeparator),s.format(c),t!=null&&t.sign){const g=(t==null?void 0:t.sign)==="auto"?MR(a):t==null?void 0:t.sign;(t.signPlace||cz(a,t.toFixedType))==="prefix"?s.format({prefix:g}):s.format({suffix:g})}if(t!=null&&t.toFixedType){let g;
34t.toFixedType==="currency"?g=uz(r)<=2?2:lz(a).decimal:t.toFixedType==="rate"?g=fu.rate.decimal:g=fu.score.decimal,s.toFixed({decimalPlaces:g,roundingMode:t.roundingMode,tailZero:g<=2})}return s}const dz=()=>{const{userInfos:e}=J();return(e==null?void 0:e.currency)==="VND"},Mme=(e,t=!1)=>{let n="";const o=Oo(1,{sign:"auto"}).toFixed(0).toString();if((typeof e=="string"?Number(e):e)<=1){const r=sa(1).div(e).toFixed({roundingMode:k_.ROUND_HALF_DOWN,decimalPlaces:0}),s=Oo(r.toString(),{showGroup:!0}).toString();n=`${o}=${s}`}else{const r=Oo(String(e),{showGroup:!0}).toString();n=dz()?`${r}${Cg()}=1`:`${Cg()}${r}=1`}return t?n.split("=").reverse().join("="):n},ze=ke("currency",()=>{const e=J(),t=Ge(),n=en(),o=Tt(),a=ue(),r=O(null),s=O(null),i=O(),c=O(!1),l=O([]),u=O([]),d=N=>{u.value=N},m=C({get:()=>s.value,set:N=>{r.value=N,h()}}),g=C(()=>{var N,$;return e.isLogined?(N=e.userInfos)==null?void 0:N.currency:($=s.value)==null?void 0:$.currencyCode}),f=C(()=>{var N;return g.value===((N=ue().siteConfig)==null?void 0:N.currencyCode)}),_=C(()=>{var N;return(N=ue().siteConfig)==null?void 0:N.currencyCode}),h=(N=!0)=>{var ne,U;const $=l.value;if(!$.length)return null;const X=W=>W?$.find(oe=>oe.currencyCode===W):null,j=((ne=a.systemInfos)==null?void 0:ne.modifyPromoteCurrency)===nh.OPEN,te=N?null:e.ipBindInfo,{isChannelCurrencyMandatory:K,channelInfo:q}=Ut(),ae=(te==null?void 0:te.currency)||(q==null?void 0:q.currency),de=[X((()=>
34{if(!(j&&!K))return ae})()),X((U=r.value)==null?void 0:U.currencyCode),X(ae),X(n.urlParams.currency),N?void 0:X(o.ipCheck.recommendCurrency),$[0]].find(Boolean);return N&&(s.value=de),de},p=(N,$)=>t.isRtlLanguage?`âª(${$}â¬)${N}`:`â¬${N}â¬(${$})`,y=N=>{var q,ae;const{currencyDisplay:$,currencyCode:X,currencyNameLanguage:j}=N,te=bf(X),K=j!=null&&j.length&&(ae=(q=j==null?void 0:j.find(me=>me.key===(t==null?void 0:t.language)))==null?void 0:q.value)!=null?ae:X;return Pe(N,{crypto:te,icon:N.ci,currencyName:K,formatDisplayName:te?b(N,K):p($,K),formatDisplayNameFunc:()=>te?b(N,K):p($,K)})},b=(N,$)=>{var q;const{currencyDisplay:X,marketCurrencyCode:j,gameRate:te,gameRateDisplay:K}=N;return sa(te).isGreaterThan(th.DEFAULT)||sa(te).isLessThan(th.DEFAULT)?K?`${$}${K}`:`${$}${(q=X.split(j)[1])!=null?q:""}`:$},v=C(()=>{var N;return((N=ue().siteInfos)==null?void 0:N.currencyInfos)||[]}),A=(N=v.value)=>{const $=[],X=[];for(const j of N)j.hs===jt.OPEN&&$.push(y(j)),j.currencyCode===dt.currency&&X.push(y(j));l.value=$};qu(()=>{var N;if(A(v.value),r.value){const $=(N=r.value)==null?void 0:N.currencyCode;l.value.find(X=>X.currencyCode===$)||h()}});const L=N=>{var q,ae,me;const $=(q=N==null?void 0:N.ipBindInfo)!=null?q:e.ipBindInfo,{isChannelCurrencyMandatory:X,channelInfo:j}=Ut(),te=(ae=N==null?void 0:N.currency)!=null?ae:g.value,K=((me=a.systemInfos)==null?void 0:me.modifyPromoteCurrency)===nh.OPEN;return X&&(j==null?void 0:j.currency)===te?!1:$!=null&&$.currency?!($!=null&&$.agentDomain||!K&&($==null?void 0:$.currency)===te):!0},T=N=>{e.isTemporaryAccountMode||Eu().mockTryModeLogin({tryCurrency:N}),I(N)},S=N=>{T(N)},I=N=>{if(N&&typeof N=="string"){if(!l.value.length)return;const $=l.value.find(X=>X.currencyCode===N);if(!$)return;N=$}r.value=N,h()},R=N=>{I(N)},D=(N=_.value)=>u==null?void 0:u.value.find($=>$.currencyCode===N),M=()=>{var N,$;return($=(N=ue().siteConfig)==null?void 0:N.currencySquareIcon)!=null?$:pd.NORMAL},B=()=>{var N,$;return($=(N=ue().siteConfig)==null?void 0:N.currencySymbolIcon)!=null?$:pd.PAY_JB},E=C(()=>new Map(l.value.map(N=>[N.currencyCode,{normalIcon:N.icon,currencyDisplay:N.currencyDisplay,currencyName:N.currencyName,displayName:N.formatDisplayName,payIcon:N.csh5i}]))),Y=O(new Map);fe(()=>{var N;return(N=ue().siteInfos)==null?void 0:N.currencyInfos},N=>{if(N!=null&&N.length){const $=new Map;for(const X of N){const j=y(X);$.set(j.currencyCode,{normalIcon:j.icon,currencyDisplay:j.currencyDisplay,currencyName:j.currencyName,displayName:j.formatDisplayName,payIcon:j.csh5i})}Y.value=$}},{immediate:!0});const H=C(()=>Y.value),F=N=>{let $;return typeof N=="string"?$=N:$=N.currencyCode,$};return{currency:g,allCurrencyList:u,allCurrencyMap:H,updateAllCurrencyList:d,siteCurrencyList:l,temporaryAccountCurrency:i,updateSiteCurrencyList:A,updateCurrentTryCurrency:S,updateCurrentTryCurrencyCache:R,currentTryCurrency:m,getCurrencyInfoByCode:D,isSiteDefaultCurrency:f,getCurrencyNormalIcon:M,getCurrencyPayIcon:B,siteCurrencyMap:E,siteDefaultCurrency:_,currencyLangDialogShown:c,getCurrencyNormalIconByMap:N=>{var te,K,q;if(!N)return"";const $=F(N),X=(te=H.value.get($))==null?void 0:te.normalIcon;if(X)return X;const j=(q=typeof N=="object"?N:void 0)!=null?q:(K=u.value)==null?void 0:K.find(ae=>ae.currencyCode===$);return(j==null?void 0:j.ci)||pd.NORMAL},getCurrencyPayIconByMap:N=>{var X,j;if(!N)return"";const $=F(N);return(j=(X=H.value.get($))==null?void 0:X.payIcon)!=null?j:pd.NORMAL},initValidCurrency:h,currentValidCurrency:s,userPreferredCurrency:r,updateUserPreferredCurrency:T,updateUserPreferredCurrencyCache:I,isCurrencyChangeable:L}},{persist:{paths:["userPreferredCurrency","allCurrencyList","temporaryAccountCurrency","currencyLangDialogShown"]}}),Pt=e=>{var r,s,i;const t=Fn((r=vn.INJECT_DATA)==null?void 0:r[e]),n=t,o=(s=n==null?void 0:n.data)==null?void 0:s.data,a=((i=n==null?void 0:n.data)==null?void 0:i.code)===$e.SUCCESS;return{response:t,exit:!!(n!=null&&n.data),health:a,data:o}},ms=e=>{if(ze().currency&&!ze().isSiteDefaultCurrency||Ge().language&&!Ge().isSiteDefaultLang)return!1;const{response:t,health:n,data:o}=Pt(e);if(e==="ossGetAllLiveVideoList"){if(!Array.isArray(t))return!1;if(t.length>0)return!0;const a=Pt("ossGetLiveGame");return!(a.health&&Array.isArray(a.data)&&a.data.length>0)}return n&&o!==void 0},ue=ke("initial",()=>{const e=O(vn.CREATE_BY_STATIC?void 0:vn),t=y=>{e.value=y},n=O((()=>{var v;const{health:y,response:b}=Pt("ossGetSiteUrlConfig");if(y)try{const A=yh(JSON.parse(Sn.ossDecrypt((b==null?void 0:b.data.data)||"")));return ZH((v=A.lobby_domain)!=null?v:[]),A}catch(A){return}})()),o=y=>{try{Nt(y,"__original__")||(y=yh(y))}catch(b){}n.value=y},a=O((()=>{const{health:y,response:b}=Pt("apiGetSiteInfo");if(y)return b==null?void 0:b.data.data})()),r=y=>{a.value=y},s=O((()=>{var v;const{health:y,response:b}=Pt("apiGetSystemStatus");if(y)return(v=b==null?void 0:b.data.data)==null?void 0:v.homeGetSysInfo})()),i=y=>{var b,v;s.value&&(y.legalConfigPromoteSwitch=(b=y.legalConfigPromoteSwitch)!=null?b:s.value.legalConfigPromoteSwitch,y.legalConfigDiscountSwitch=(v=y.legalConfigDiscountSwitch)!=null?v:s.value.legalConfigDiscountSwitch),s.value=y,g((y==null?void 0:y.tempAccountFirstRechargeBonus)||{})},c=y=>{s.value&&y&&(s.value.kyc=Pe(s.value.kyc,y))},l=y=>{s.value&&y&&Object.assign(s.value,y)},u=O(),d=y=>{y.languageCode||(y=Pe(y,{language:Ge().language})),u.value=y},m=O({}),g=y=>{m.value=y},f=O(),_=y=>{f.value=y},h=()=>{var b,v;const y=(v=(b=a.value)==null?void 0:b.vestBagJumpConfig)!=null?v:[];return Array.isArray(y)?y:[y]},p=C(()=>{var y;return((y=a.value)==null?void 0:y.siteMode)===jw.Club});return{siteConfig:e,siteURLInfos:n,siteInfos:a,systemInfos:s,homeLayoutInfos:u,engageLabWebPush:f,updateSiteURLInfos:o,updateSiteConfig:t,updateSiteInfos:r,setSystemInfos:i,updateHomeLayoutInfos:d,updateSystemKycConfig:c,patchThirdPartyConfig:l,tempAccountFirstRechargeBonus:m,setTempAccountFirstRechargeBonus:g,setEngageLabWebPush:_,getVestBagJumpConfigList:h,isClubSite:p}}),mz=()=>{if(!window.WgPackage&&Ot.WgPackage)try{window.WgPackage=JSON.parse(decodeURIComponent(window.atob(String(Ot.WgPackage))))}catch(e){}return re.wgPackageConfig||!!(window.WgPackage||window.jsBridge&&!ft().browser.isWebSpace||window.PlatNative||window.Android||window.uni)||Ot.isWgPackage==="true"||!!Ot.WgPackage},re={get wgPackageConfig(){var e;try{(e=window.jsBridge)!=null&&e.getWGConfigInfo?window.WgPackage=JSON.parse(window.jsBridge.getWGConfigInfo()).WgPackage:Ot.WgPackage&&(window.WgPackage=JSON.parse(decodeURIComponent(window.atob(String(Ot.WgPackage)))))}catch(t){}return window.WgPackage?window.WgPackage:void 0}
34,get speedPackageConfig(){var e,t;try{(e=window.jsBridge)!=null&&e.getWGConfigInfo?window.SpeedPackaeInit=JSON.parse(window.jsBridge.getWGConfigInfo()).SpeedPackaeInit:Ot.SpeedPackaeInit&&(window.SpeedPackaeInit=JSON.parse(decodeURIComponent(window.atob(String(Ot.SpeedPackaeInit)))))}catch(n){}return(t=window.SpeedPackaeInit)!=null&&t.isSpeedPackae?window.SpeedPackaeInit:void 0},get isInBridgeShellApp(){var e;return re.speedPackageConfig||((e=window.jsBridge)==null?void 0:e.getWGConfigInfo)||window.WgPackage},get isWebClip(){return Ot["fixed.iswebclip"]==="1"||Ot["fixed.iswebclip"]==="2"||!!Ot.webClipData},get package(){var t;const e=mz();return{isApp:e,isVest:e&&!this.speedPackageConfig,isLite:e&&((t=this.speedPackageConfig)==null?void 0:t.isSpeedPackae),isWebClip:this.isWebClip}}};function vl(e){let t=[];try{const o=(vn==null?void 0:vn.isForbidSeoAndInjectSite)?ue().siteInfos:window.LOBBY_SITE_CONFIG.INJECT_DATA.apiGetSiteInfo.data.data,a=o==null?void 0:o.vestBagJumpConfig;if(!a)return[];t=(Array.isArray(a)?a:[a]).filter(r=>{var s;return(s=r==null?void 0:r.packageName)==null?void 0:s.includes(e)}).map(r=>({packageName:r.packageName,appJumpValue:r.appJumpValue}))}catch(n){}return t}function Nme(e){const t=re.speedPackageConfig;return t?e(t):!0}function kme(e){const t=re.wgPackageConfig;return t?e(t):!0}function Bme(e){var o;const t=(o=re.wgPackageConfig)==null?void 0:o.version;let n=0;return t&&(n=V_(t,e)),{get isGreater(){return t?n===xi.GREATER:!1},get isSmaller(){return t?n===xi.SMALLER:!1},get isEqual(){return t?n===xi.EQUAL:!1}}}var uu,NR,TS=!1;function gz(){if(TS)return;TS=!0,uu=vn.siteCode;const t={...{...[""].reduce((o,a)=>(o[a]={"mock.notLazy":"true","mock.simpleImage":"true"},o),{})}};vl("wg.mock.").forEach(o=>{var r;const a=((o==null?void 0:o.packageName)||"").replace(/^wg\.mock\./,"").split(".");if(!(a.length<2)){t[uu]||(t[uu]={});for(let s=0;s<a.length;s+=2){const i=a[s],c=(r=a[s+1])!=null?r:"";t[uu][`mock.${i}`]=c}}}),NR=t}function tt(e,t,n){var r,s;gz();const o=(s=Ot[e])!=null?s:(r=NR[uu])==null?void 0:r[e];if(o===void 0)return t;const a=String(o);return n?/^\d+$/.test(a)?Number(a):t:a}const Et={delayFirstNet:()=>tt("mock.delayPre",100,!0),lobbyAssetImageSw:()=>tt("mock.imageSw")==="true",dragScrollDisabled:()=>tt("mock.notDragScroll")==="true",tabsStickyDisabled:()=>tt("mock.disabledTabsSticky")==="true",virtualScrollBarDisabled:()=>tt("mock.disabledVirtualScrollBar")==="true",ignoreAutoLoginRegister:()=>tt("mock.ignoreAutoLoginRegister")==="true",deferDisabled:()=>tt("mock.disabledDefer")==="true",reduceMeasureTabsActivedOnScrollConfig:()=>{const e=tt("mock.reduceMeasureTabsActivedOnScroll");return{default:"default",debounce:"debounce",disabled:"disabled"}[e]},reduceMeasureTabsActivedOnScrollDebounceWait:()=>tt("mock.reduceMeasureTabsActivedOnScrollDebounceWait",500,!0),delaySplashDestory:()=>tt("mock.delaySplashDestory",0,!0),openTabsScrollListenerOrActive:()=>tt("mock.openTabsScrollOrActive")==="true",reduceByDeviceScore:()=>{const e=tt("mock.reduceByDeviceScore");return e==="true"?"cpu@1,memory@1":e==="false"?!1:e!=null?e:!0},alertDeviceScore:()=>tt("mock.alertDeviceScore")==="true",deviceScoreEveryTime:()=>tt("mock.deviceScoreEveryTime")==="true",useSvgSprite:()=>tt("mock.useSvgSprite","true")==="true",getTheme17HotListPlayingDelay:()=>parseInt(String(tt("mock.playingDelay")||"0")),originIsOssBucket:()=>tt("mock.originIsOssBucket")==="true",webClipImageHack:()=>tt("mock.webClipImageHack")==="true",liveLowEndDegrade:()=>tt("mock.liveLowEndDegrade")!=="false",livePauseOnHidden:()=>tt("mock.livePauseOnHidden")!=="false",imageDegradeTier:()=>tt("mock.img","standard"),animDegradeTier:()=>tt("mock.anim","standard"),imageLoadNoRetry:()=>tt("mock.imgNoRetry")==="true",imageDegradeAutoOff:()=>tt("mock.imgDegradeAutoOff")!=="false",noDelayHomePageResource:()=>tt("mock.noDelayHomePageResource")==="true",subUsePagination:()=>tt("mock.subUsePagination")!=="false",registerServiceWorkerClean:()=>tt("mock.registerServiceWorkerClean")==="true",notFilterApngFrame:()=>tt("mock.notFilterApngFrame")==="true",useAttributionMatchData:()=>tt("mock.useAttributionMatchData")==="true",useMatchDomainErrorDialog:()=>tt("mock.useMatchDomainErrorDialog")==="true",collectPerformance:()=>tt("mock.collectPerformance")==="true",preventDevtools:()=>{const e=tt("mock.preventDevtools");return["true","force","false"].includes(e)?e:null},reduceByDeviceScoreV2:()=>tt("mock.reduceByDeviceScoreV2")!=="false",deviceScoreV2EveryTime:()=>tt("mock.deviceScoreV2EveryTime")==="true",skipChannelLinkByCid:e=>vl("wg.mock.skipChannelLink.chennl.").some(n=>n.packageName===`wg.mock.skipChannelLink.chennl.${e}`),aggregateDisabled:()=>tt("mock.disableAggregate")==="true",aggregateSources:()=>tt("mock.aggregateSources","bffHome")},fz=["/libs/webPush","/sw-runtime-",KA,"/common/store"],pz=()=>
34{"serviceWorker"in navigator&&navigator.serviceWorker.getRegistrations().then(e=>{e.forEach(t=>{t.active&&([...Et.registerServiceWorkerClean()?[]:fz].some(a=>{var r;return(r=t.active)==null?void 0:r.scriptURL.includes(a)})||t.unregister().then(a=>{console.log(a?`Service Worker ${t.scope} unregister success`:"Service Worker unregister fail")}))})})},RS={cpu:.3,memory:.4,storage:0,network:0,fps:.3,api:0};async function hz(){try{const e=[{name:"Fetch API",weight:3,test:()=>typeof fetch!="undefined"},{name:"Promise",weight:3,test:()=>typeof Promise!="undefined"},{name:"Async/Await",weight:3,test:()=>{try{return new Function("async function test() { await Promise.resolve(); }"),!0}catch(a){return!1}}},{name:"WebGL 2.0",weight:3,test:()=>{try{return!!document.createElement("canvas").getContext("webgl2")}catch(a){return!1}}},{name:"WebAssembly",weight:3,test:()=>typeof WebAssembly!="undefined"},{name:"Intersection Observer",weight:2.5,test:()=>"IntersectionObserver"in window},{name:"Resize Observer",weight:2.5,test:()=>"ResizeObserver"in window},{name:"Service Worker",weight:3,test:()=>"serviceWorker"in navigator},{name:"Media Recorder",weight:2,test:()=>"MediaRecorder"in window},{name:"CSS Grid",weight:2,test:()=>CSS.supports&&CSS.supports("display","grid")}],t=e.reduce((a,r)=>a+r.weight,0);let n=0;for(const a of e)try{a.test()&&(n+=a.weight)}catch(r){}return Math.round(n/t*100)}catch(e){return 50}}async function _z(){return new Promise(e=>{const t=performance.now();setTimeout(()=>{const o=performance.now()-t,r=Math.min(100,Math.max(0,100*(150/o)));e(Math.round(r))},0)})}async function bz(){return new Promise(e=>{try{let t=0,n=performance.now();const o=[],a=60,r=2e3,s=performance.now(),i=document.createElement("canvas");i.width=100,i.height=100,i.style.position="fixed",i.style.top="-100px",document.body.appendChild(i);const c=i.getContext("2d");if(!c){document.body.removeChild(i),e(50);return}const l=()=>{const u=performance.now();if(t++,t>1){const d=u-n;o.length<a&&o.push(d)}if(n=u,c.clearRect(0,0,i.width,i.height),c.fillStyle="#"+Math.floor(Math.random()*16777215).toString(16),c.fillRect(0,0,50,50),u-s<r)requestAnimationFrame(l);else{if(document.body.removeChild(i),o.length===0){e(60);return}o.sort((h,p)=>h-p);const d=Math.floor(o.length*.1),m=o.slice(d,o.length-d),f=1e3/(m.reduce((h,p)=>h+p,0)/m.length);let _;f>=120?_=100:f>=60?_=80+(f-60)*(20/60):f>=30?_=50+(f-30)*(30/30):f>=15?_=20+(f-15)*(30/15):_=Math.max(0,f*(20/15)),e(Math.min(100,Math.max(0,Math.round(_))))}};requestAnimationFrame(l)}catch(t){e(50)}})}async function yz(){return new Promise(e=>{setTimeout(()=>{try{const t=navigator;if(t.deviceMemory){const i=t.deviceMemory;let c;i>=12?c=100:i>=8?c=80+(i-8)*5:c=i*1/8*100,e(Math.round(c));return}const n=new Array(1e4).fill(0),o=performance.now();for(let i=0;i<1e3;i++)n[i]=i;const r=performance.now()-o,s=Math.min(100,Math.max(20,100-(r-1)*8));e(Math.round(s))}catch(t){e(50)}},0)})}async function vz(){return new Promise(e=>{setTimeout(()=>{try{if(!navigator.onLine){e(0);return}let t=null;if(performance&&performance.getEntriesByType){const r=performance.getEntriesByType("navigation");r&&r.length>0&&(t=r[0])}if(t&&"responseStart"in t&&"requestStart"in t){const r=t.responseStart-t.requestStart;let s;r<100?s=100:r<300?s=80+(300-r)*(20/200):r<800?s=50+(800-r)*(30/500):r<2e3?s=20+(2e3-r)*(30/1200):s=Math.max(0,20-(r-2e3)/500),e(Math.min(100,Math.max(0,Math.round(s))));return}const n=performance.now(),o=window.location.href.split("?")[0],a=`${o}${o.includes("?")?"&":"?"}cachebust=${Date.now()}`;fetch(a,{method:"HEAD",cache:"no-store"}).then(r=>{const i=performance.now()-n;let c;i<100?c=100:i<300?c=80+(300-i)*(20/200):i<800?c=50+(800-i)*(30/500):i<2e3?c=20+(2e3-i)*(30/1200):c=Math.max(0,20-(i-2e3)/500),e(Math.min(100,Math.max(0,Math.round(c))))}).catch(()=>{e(15)})}catch(t){e(20)}},0)})}async function Sz(){function e(t){try{if(typeof localStorage!="undefined"){const n="_device_score_test_",o=new Array(100).join("a"),a=performance.now();localStorage.setItem(n,o);const r=localStorage.getItem(n);localStorage.removeItem(n);const i=performance.now()-a,l=r===o?60:30,u=Math.min(20,Math.max(0,20-i));t(l+u)}else t(30)}catch(n){t(20)}}return new Promise(t=>{setTimeout(()=>{try{navigator.storage&&navigator.storage.estimate?navigator.storage.estimate().then(n=>{const o=n.usage&&n.quota?n.usage/n.quota*100:null,a=n.quota?n.quota/(1024*1024*1024):null;let r=50;a!==null&&(a>=10?r=100:a>=5?r=80+(a-5)*4:a>=1?r=60+(a-1)*5:a>=.1?r=30+(a-.1)*33:r=Math.max(10,a*200)),o!==null&&o>90&&(r=Math.max(10,r-(o-90)*2)),t(Math.round(r))}).catch(()=>{e(t)}):e(t)}catch(n){t(25)}},0)})}async function Cz(e){const t=e||{cpu:!0,memory:!0,storage:!1,network:!1,fps:!1,api:!1},n={...RS};let o=0;if(Object.keys(t).forEach(i=>
34{t[i]?o+=RS[i]:n[i]=0}),o>0)Object.keys(n).forEach(i=>{n[i]/=o});else return{score:50,details:{}};const a={},r=[];t.cpu&&r.push(_z().then(i=>{a.cpu=i})),t.memory&&r.push(yz().then(i=>{a.memory=i})),t.storage&&r.push(Sz().then(i=>{a.storage=i})),t.network&&r.push(vz().then(i=>{a.network=i})),t.fps&&r.push(bz().then(i=>{a.fps=i})),t.api&&r.push(hz().then(i=>{a.api=i})),await Promise.all(r);let s=0;return Object.keys(a).forEach(i=>{s+=a[i]*n[i]}),{score:Math.min(100,Math.max(0,Math.round(s))),details:a}}const wz=()=>{var e;try{const t=window.location,n=(e=window==null?void 0:window.top)==null?void 0:e.location;return t.protocol===(n==null?void 0:n.protocol)&&t.hostname===(n==null?void 0:n.hostname)&&t.port===(n==null?void 0:n.port)}catch(t){return!1}},Iz=window.self!==window.top,Az=location.href.includes("fixed.iswebclip=2")||location.href.includes("webClipData="),Lz=Az&&Iz&&wz();async function Tz(e,t=3){const n=qe.localStorage.get("preLoadAssests")||[],o=[];for(const a of e){let r=!1,s=0;if(n.find(i=>i===a)){o.push(a);continue}for(;!r&&s<t;)try{await Rz(a),o.push(a),r=!0}catch(i){s++,await zn(1e3),s>=t&&console.error(`â maxRetries reload: ${a}`)}}qe.localStorage.set("preLoadAssests",o),console.log("ð all assest preload done!")}async function Rz(e){const t=await fetch(e.startsWith("/")?e:`/${e}`,{cache:"force-cache"});if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);await t.blob()}async function Oz(e){if(e.length)try{const t=[];for(const n of["scripts","stylesheets","media"]){const o=await window.caches.open(n),r=(await o.keys()).filter(s=>!e.some(i=>s.url.includes(i)&&i!=="/")&&!s.url.includes("/libs/"));t.push(...r.map(s=>o.delete(s)))}await Promise.all(t)}catch(t){console.error(t)}}const OS=async(e,t)=>{const n=t.startsWith("/")?t:`/${t}`,o=await window.caches.open(e),r=(await o.keys()).find(i=>i.url===location.origin+n);if(!r)throw new Error(`Failed to match ${t}`);const s=await o.match(r);return s==null?void 0:s.text()};async function Pz(e){if(!Array.isArray(e)||e.length===0)return console.warn("â ï¸ htmlUrls must be a non-empty array."),[];const t=window.__vite_is_modern_browser;return(await Promise.allSettled(e.map(async o=>{try{const a=await OS("spa-html-cache",o),r=/import\(["'](\/assets\/theme-0\/index\.[^"')]+\.js)["']\)/,s=/<script[^>]*id=vite-legacy-entry[^>]data-src=(\/assets\/theme-0\/index-legacy\.[^"')]+\.js)>/,i=a==null?void 0:a.match(t?r:s);if(!i)throw new Error("JS import path not found");const c=i[1],l=await OS("scripts",c),u=/__MANIFEST_ASSETS\s*=\s*['"](assets\/theme-0\/manifest\.[^'"]+\.json)['"]/,d=l==null?void 0:l.match(u);if(!d)throw new Error("Manifest JSON path not found");const m=d[1];return console.log(`â Found manifest from ${o}:`,m),m}catch(a){return console.warn(`â ï¸ Failed to extract manifest from ${o}:`,a.message),null}}))).filter(o=>o.status==="fulfilled"&&o.value!==null).map(o=>o.value)}async function Dz(e){if(!Array.isArray(e)||e.length===0)return console.warn("â ï¸ manifestPaths must be a non-empty array."),null;try{const t=await Promise.all(e.map(async o=>{const a=await fetch(o);if(!a.ok)throw new Error(`Failed to fetch ${o}: ${a.status}`);const r=await a.json().catch(()=>({}));return{manifestPath:o,preloadAssets:r.preload||[],otherAssets:r.other||[]}}));return{manifestPaths:t.map(o=>o.manifestPath),preloadAssets:Array.from(new Set(t.flatMap(o=>o.preloadAssets))),otherAssets:Array.from(new Set(t.flatMap(o=>o.otherAssets))),manifests:t}}catch(t){return console.error("â One or more manifests failed to load. Aborting all."),null}}async function Mz(){if(await zn(5e3),!window.__MANIFEST_ASSETS){console.warn("â ï¸ window.__MANIFEST_ASSETS is not defined.");return}let t;try{t=await Dz([...await Pz(["/","/agent","/gossip","/pc"])].map(s=>`/${s}`))}catch(s){console.error("â Failed to parse manifest:",s.message);return}if(!t){console.warn("â ï¸ Manifest is null or invalid. Skipping cache and preload.");return}const{manifestPaths:n,preloadAssets:o,otherAssets:a,manifests:r}=t;try{await Oz([...n,...o,...a])}catch(s){console.error("â Failed to clear cache:",s.message)}try{await Tz(r[0].preloadAssets)}catch(s){console.error("â Failed to preload resources:",s.message)}}const PS={perfRec:Lt};var DS={addDevtools:!1,showConsole:!1,registerSW:!0,sentryOn:!1,isSupportApiMock:!1,preventDevtools:!0,showVirtualSport:!1};(function(){PS.perfRec.start(PS.perfRec.target.appSetup);const e=Et.reduceByDeviceScore(),t=()=>{const i="0.0.1",c=window.localStorage.getItem("lobby@device@score")||"",l=u=>{if(Et.alertDeviceScore()){const d=document.createElement("div");d.innerText=`Device Score: ${u}`,d.style.cssText=` 35 pointer-events: none; 36 position: fixed; top: 10px; right: 10px; 37 background: rgba(0, 0, 0, 0.7); color: white; 38 padding: 10px 15px; border-radius: 5px; 39 font-size: 14px; font-family: Arial, sans-serif; 40 z-index: 9999; 41 `,document.body.appendChild(d)}};if(Et.deviceScoreEveryTime()||!c||c.split(":")[0]!==i)return Cz(Object.assign({cpu:!0,memory:!0,network:!1,storage:!1,api:!1,fps:!1},typeof e=="string"?e.split(",").reduce((u,d)=>{const[m,g]=d.split("@")||[];return u[m]=g==="1",u},{}):{})).then(u=>{window.localStorage.setItem("lobby@device@score",i+":"+u.score);const d=JSON.stringify(u,null,4);window.localStorage.setItem("lobby@device@score@detail",i+":"+d),l(`new:${d}`)}
41);if(c){const u=window.localStorage.getItem("lobby@device@score@detail")||"";l(`old:${(u||c).split(":").slice(1).join(":")}`)}return Promise.resolve()},n=new URLSearchParams(location.search).get("mock.deviceScoreV2MultiRound")!=="false",o=async()=>{var i;try{const{getDeviceScoreV2:c,V2_VERSION:l,V2_STORAGE_KEY:u}=await V(async()=>{const{getDeviceScoreV2:h,V2_VERSION:p,V2_STORAGE_KEY:y}=await import("./index.DufkQsLX.js");return{getDeviceScoreV2:h,V2_VERSION:p,V2_STORAGE_KEY:y}},[]),d=window.localStorage.getItem(u);if(!(Et.deviceScoreV2EveryTime()||!d||(()=>{try{return JSON.parse(d).version!==l}catch(h){return!0}})()))return;const g=navigator.userAgent.includes("Android"),f=await c({decode:!0,sort:!0,cpu:!0,memory:g,multiRound:n});if(f.tier==="LOW"&&f.details.memory!=null&&f.details.memory>=8)try{const h=d?JSON.parse(d):null;if((i=h==null?void 0:h.result)!=null&&i.tier&&h.result.tier!=="LOW")return}catch(h){}window.localStorage.setItem(u,JSON.stringify({version:l,result:f}));const{invalidateDeviceScoreV2Cache:_}=await V(async()=>{const{invalidateDeviceScoreV2Cache:h}=await Promise.resolve().then(()=>bE);return{invalidateDeviceScoreV2Cache:h}},void 0);_()}catch(c){}},a=()=>{e&&t().catch(()=>{})};if((()=>{const i=()=>{o().finally(a)};typeof requestIdleCallback=="function"?requestIdleCallback(i):setTimeout(i,0)})(),localStorage&&localStorage.getItem("__FEATURE_SWITCHES__")){const i=OI(localStorage.getItem("__FEATURE_SWITCHES__"));i?DS={...DS,...i}:console.error("parse localStorage __FEATURE_SWITCHES__ error")}(i=>()=>{const c=_a();!c&&pz(),!(Lz||c)&&"serviceWorker"in navigator&&i().then(()=>{nt.info("ServiceWorker registration successful!"),Mz()}).catch(l=>{nt.error("ServiceWorker registration failed: ",l)})})(()=>navigator.serviceWorker.register(jA))(),console.log("%c ## Welcome To Visit SaaS Lobby Next ###","color: #409EFF; font-size: 16px; font-weight: bold;")})();const Nz=()=>{const e=re.package.isVest,t=!Ke.isAddIosSafeAreaInset&&re.package.isWebClip;if(e||t){const n=document.querySelector('meta[name="viewport"]');n&&n.setAttribute("content",(n.getAttribute("content")||"").replace(/,?\s*viewport-fit=cover/i,""))}Ke.isAddIosSafeAreaInset||document.documentElement.style.setProperty("--skin__safe-area-inset-bottom","0px")},kz=()=>{document.documentElement.style.setProperty("--skin__fixed-bottom-offset",re.isWebClip?"0px":"env(safe-area-inset-bottom)")},Bz=()=>{const e=aL(),{isH5Pwa:t,isNewiOSWebClip:n}=Qe(),o=window.self!==window.top;return n&&!o?(e||oL(location.href),!0):!!(e&&t&&!o)};var Hz={env:"prod"};const xz=(e=["log","trace","table","group","groupEnd","groupCollapsed","time","timeEnd","timeLog","debug"])=>{const t=()=>{if(!Object.prototype.hasOwnProperty.call(window,"__ORIGINAL_CONSOLE__")){const a=Object.create(null),r=Object.getOwnPropertyDescriptors(console);for(const s of Object.keys(r)){const i=r[s];typeof i.value=="function"&&(i.value=i.value.bind(console)),Object.defineProperty(a,s,i)}Object.defineProperty(window,"__ORIGINAL_CONSOLE__",{value:a,writable:!1,configurable:!1,enumerable:!1})}},n=a=>(...r)=>{var u;const i=(u=new Error().stack)==null?void 0:u.split(` 42`);let c=3;i&&i[3]&&i[3].includes("Object.")&&(c=4);let l=i&&i[c]?i[c].trim():"unknown location";l=l.replace("at ",""),l=l.replace("(",""),l=l.replace(")",""),l=l.split("webpack-internal://")[1]||l,l.includes(" ")&&(l=l.split(" ")[1]),a(...r)},o=a=>(...r)=>{if(!Ln.get("abcdefg_open"))return()=>{};n(a)(...r)};["try","prod"].includes(Hz.env)&&e.push("warn","error"),t(),e.forEach(a=>{console[a]=o(console[a])})},Ez={FILTER_WHITE_LIST:{[eb.FRAMEWORK]:["async-dialogs"]}},Uz=(e,t)=>{var o;const n=(o={[gl.TGMG]:Ez.FILTER_WHITE_LIST}[e])==null?void 0:o[t];return(n==null?void 0:n.map(a=>`lobby-${a}`))||[]},Gz={onlyRun:{type:[String,Array]},name:{required:!0,type:Number}},kR=(e,{slots:t})=>{var s;const n=(s=t.default)==null?void 0:s.call(t),o=ib();if(!n||!o||!(Array.isArray(e.onlyRun)?e.onlyRun:[e.onlyRun]).find(i=>i===o.name))return n;const r=Uz(o.name,e.name);return n.filter(i=>{var c;return r.includes((c=i.type)==null?void 0:c.name)})};kR.props=Gz;var Jr=(e=>(e.LanguageChange="languageChange",e.CurrencyChange="currencyChange",e.LoginStatusChange="loginStatusChange",e))(Jr||{}),Iu=(e=>(e.Init="init",e))(Iu||{});function Fz(e,t,n=!0){const o=qn(t,200);let a=!1;const r=()=>{n&&a||o("init")},s=[];return Object.entries(e).forEach(([c,l])=>{const u=fe(l,(d,m)=>{a=!0,o(c,m,d)});s.push(u)}),{init:r,stop:()=>
42{o.cancel(),s.forEach(c=>c())}}}const Wz=e=>{const{fetchCollectIdList:t,fetchPlatformExchangeObj:n,fetchGameCategorieAndExtLinkList:o}=on();try{e===Iu.Init&&(J().hasLogined?o({force:!0}):o()),e!==Iu.Init&&Mt.resetSupplementPlatformInfoStatus(),e!==Iu.Init&&(e===Jr.LoginStatusChange||J().hasLogined)&&o({force:!0}),t(),n()}catch(a){console.log(a)}};function Vz(){const e=J(),{hashLogin:t}=Eu(),n=C(()=>{const a=e.confEnableAutoLogin,r=a&&!e.hasLogined&&!e.hasHistoryLogined,s=re.package.isLite;return{isOpen:a,enable:r,isLite:s}});return{login:async(a,r)=>{var c;Lt.end(Lt.target.autoLogin,Lt.target.appMounted);const{enable:s,isLite:i}=n.value;if(nt.info("AutoLogin","envEnable=",a,n.value),(s||a)&&i){const{localUserid:l,localUsername:u}=a_(),d=(c=re.wgPackageConfig)==null?void 0:c.hash;if(!d){nt.info("AutoLogin","HashLogin","Not Hash",re.wgPackageConfig);return}Lt.start(Lt.target.apiAutoLoginTime);const[m]=await Ee(t({deviceHash:d,localUserid:l,localUsername:u}));Lt.end(Lt.target.apiAutoLoginTime,Lt.target.apiAutoLoginTime);const{code:g}=Su(m);g===2006&&(r==null||r()),m&&nt.info("AutoLogin","HashLogin","Server Error",g)}else r==null||r()}}}const yf=()=>{const e=zo();return{isHiddenByTgMiniApp:C(()=>{var n;return((n=e.bootInstallation)==null?void 0:n.tgMiniAppEnabled)===jt.CLOSE&&fn.isActivated})}},$z=()=>{const e=async()=>{const{initAPPDownloadConfigs:o}=zo();return o()},t=async o=>{var f;const{isHiddenAppEnter:a}=Ut(),{isHiddenByTgMiniApp:r}=yf(),{skinType:s}=nn(),{bootInstallation:i,setBootInstallationStatusHandler:c,bootInstallationStatusShowTimes:l}=zo(),{brandLogoInfos:u}=Ze();if(s===Be.THEME_8&&o===qr.BOTTOM||a||r.value||re!=null&&re.package.isApp||!(u!=null&&u.bootInstallationSwitch)||!Xb(u==null?void 0:u.combinationSwitch))return!1;const d=(f=u==null?void 0:u.bootInstallationStyles)!=null&&f.length?u==null?void 0:u.bootInstallationStyles.includes(`${o}`):`${u==null?void 0:u.bootInstallationStyle}`==`${o}`,m=l[o],g=(i==null?void 0:i.forceInstall)===$g.OPENED;return d&&(g||!m)?(c(o,!0),o===qr.MIDDLE?n():!0):!1},n=async()=>{const{openDialog:o}=cn(),{pwaChannelShowInHome:a}=Ut(),{isP2a:r}=Qe();return XT()?!1:a&&!r?(await o("downloadPWADialogInHome",{options:{autoPlay:!1}}),!1):!0};return{loadDataByDownload:e,beforeOpenDownloadDialog:t,downloadMainDialogOpen:n}};function MS({events:e,callback:t,preventInitWhenWatchTriggered:n=!0}){const{init:o,stop:a}=Fz(Lo({[Jr.LanguageChange]:()=>Ge().language,[Jr.CurrencyChange]:()=>ze().currency,[Jr.LoginStatusChange]:()=>J().isLogined},e),t,n);return{init:o,stop:a}}const Yz=()=>{const e=a=>a==null||a==="";MS({events:[Jr.CurrencyChange],callback:(a,r)=>{Tt().isInitializationCompleted&&(e(r)||(zT(),L4()))}});const{init:t}=MS({events:[Jr.CurrencyChange,Jr.LoginStatusChange],callback:(a,r)=>{const s=a===Jr.CurrencyChange&&e(r)?Iu.Init:a;Wz(s)}}),n=async()=>{var i;const{autoLoginRegister:a,openLoginRegister:r}=sn(),s=a(!0);s&&(await r({skipGuide:!0,skipWebauthn:!0,skipTemporary:!0,skipBindRegister:!0,...s}),(i=history.state)!=null&&i.replaced&&Xn([k.LOGIN,k.REGISTER])&&Oe().clearHistoryStateBack())};ve("CLIENT_DATA_INITIALIZATION_COMPETED",()=>{Lt.end(Lt.target.dataCompeted,Lt.target.appMounted),KT.addLoginRegisterUpgradeGuide(),n(),Vz().login(wr().envEnable.value,()=>{wr().initTemporaryUser()}),t();const{maintainTimeInfo:a}=Tt();a&&ve("MAINTAIN_MESSAGE").emit(a),Re.initialBuried(),setTimeout(()=>{try{$z().loadDataByDownload()}catch(r){}},2e3)});const o=ve("CLIENT_CONFIG_INITIALIZATION_COMPETED",()=>{o.off(),Lt.end(Lt.target.sysConfigCompeted,Lt.target.appMounted),J().configInitializationCompeted=!0})},qz="data-global-meta",zz="data-global-describe";function NS(e,t,n){const o=document.createElement(e);return Object.keys(t).forEach(a=>{o.setAttribute(a,t[a])}),n&&o.setAttribute(n,""),o}function kS(e,t){const{title:n="",link:o=[],meta:a=[]}=e;if(n)if(document.title)document.title=n;else{const r=document.createElement("title");r.innerHTML=n,document.head.appendChild(r)}t&&document.querySelectorAll(`[${t}]`).forEach(r=>r.remove()),o.forEach(r=>{const s=NS("link",r,t);document.head.appendChild(s)}),a.forEach(r=>{const s=r.name?`meta[name="${r.name}"]`:r.property?`meta[property="${r.property}"]`:"";if(s?document.head.querySelector(s):null)return;const c=NS("meta",r,t);document.head.appendChild(c)})}const jz=()=>{const{ossHost2LocationHost:e}=Ht(),t=C(()=>{var c;let i=((c=ue().siteConfig)==null?void 0:c.siteAppIcon)||"";return i=e(i),i}),n=C(()=>{let i=bg().downloadInfo.value.logo;return i=e(i),i}),o=C(()=>{var i,c;return((i=ue().siteInfos)==null?void 0:i.title)||((c=ue().siteInfos)==null?void 0:c.siteName)}),a=i=>{const c=document.querySelector('link[rel="shortcut icon"]'),l=c==null?void 0:c.href;if(c&&l){if(l===i)return;c.href=i}else{const u=document.createElement("link");u.rel="shortcut icon",u.href=i,document.head.appendChild(u)}},r=i=>{kS({title:i,meta:[{name:"apple-mobile-web-app-status-bar-style",content:"white"},{name:"apple-mobile-web-app-capable",content:"yes"},{name:"apple-touch-fullscreen",content:"yes"},{name:"google",content:"notranslate"},{name:"apple-mobile-web-app-title",content:i},{name:"title",property:"og:title",content:i},{name:"url",property:"og:url",content:location.origin},{name:"type",property:"og:type",content:"website"}]},zz)},s=i=>{kS({link:[{sizes:"16x16",rel:"icon",href:i},{sizes:"32x32",rel:"icon",href:i},{rel:"apple-touch-icon",href:i},{sizes:"192x192",rel:"apple-touch-icon",href:i},{rel:"apple-touch-icon-precomposed",href:i}].filter(({href:c})=>!!c),meta:[{name:"image",property:"og:image",content:i}]},qz)};fe(()=>o.value,(i,c)=>{i!==c&&r(i)},{immediate:!0,deep:!0}),fe(()=>n.value,(i,c)=>{i&&i!==c&&s(i)},{immediate:!0,deep:!0}),fe(()=>t.value,(i,c)=>{i&&i!==c&&a(i)},{immediate:!0,deep:!0})},Kz=()=>{const e=Bn(),{ossHost:t}=St(Ht()),n=C(()=>Tt().skeletonScreenStatus),o=C(()=>{var s,i,c;const r=(s=ue().siteInfos)==null?void 0:s.skinConfigInfo;return{bs_topnav_bg:(i=r==null?void 0:r.bs_topnav_bg)!=null?i:"#FFFFFF",bg_2:(c=r==null?void 0:r.bg_2)!=null?c:"#FFFFFF"}}),{tokenInfos:a}=St(tn());return fe(()=>t.value,()=>{if(t.value){const r=window.btoa(t.value.replace(/\/+$/,""));gr(Mn.EVENT_UPDATE_LOBBY_OSS).send({oss_domain:r},{merge:!1,fireAndForget:!0})}},{immediate:!0}),fe(()=>[o.value,e.name,n.value],()=>{const{bs_topnav_bg:r,bg_2:s}=o.value;if(!e.name||!n.value)return;const c=e.name===k.GAME||e.name===k.HOME?r:s;window.updateThemeColor(c),gr(Mn.EVENT_SET_THEMECOLOR).send({themeColor:c},{merge:100,fireAndForget:!0}),nl("UPDATE_STATUS_BAR_COLOR").send({themeColor:c},{merge:100,fireAndForget:!0})},{immediate:!0}),fe(()=>a.value,()=>{a.value&&gr(Mn.EVENT_UPDATE_TOKEN).send({token:window.btoa(JSON.stringify(a.value))},{merge:!1,fireAndForget:!0})},{deep:!0,immediate:!0}),Gt(async()=>{window.frameProxyIsReady&&gr(Mn.EVENT_PAGE_INSTALLED).send({},{fireAndForget:!0})}),{}},Qz=()=>{const{userInfos:e,isTemporaryAccountMode:t}=J(),{viewDownloadTypes:n,rewardScope:o,channelInfo:a,isDownloadRewardsOn:r,currentCurrencyA
42ward:s}=St(Ut()),{isDesktop:i}=ft().device,{isIOS:c,isMacOS:l}=ft().os,u=C(()=>{var v,A,L,T,S;let b=(A=(v=s.value)==null?void 0:v.rewardsAmount)!=null?A:0;return r.value?(t&&((L=a.value)==null?void 0:L.rewardsCondition)===Yg.All&&(b=(S=(T=s.value)==null?void 0:T.tempRewardsAmount)!=null?S:0),b?ia(b):0):0}),d=C(()=>{const b=new Map([[Uc.PWA,Se.PWA],[Uc.SpeedPackage,Se.Speed],[Uc.NormalPackage,Se.Normal]]);return n.value.map(v=>b.get(v)).join(",")}),{downloadMiddleList:m}=ad(d.value),g=C(()=>{var b;return(b=e==null?void 0:e.platfromid)!=null?b:""}),f=C(()=>{var b,v;return(v=(b=Fb(Ju().onlineCustomersByVipLevelAndTime))==null?void 0:b.customerUrl)!=null?v:""}),_=C(()=>{var L,T;const{appNameLanguage:b}=Ze().channelGlobalConfig,{language:v}=Ge(),A=b==null?void 0:b.find(S=>S.key.includes(v));return(T=A==null?void 0:A.value)!=null?T:(L=b==null?void 0:b[0])==null?void 0:L.value}),h=b=>{const v=cl(b),A=c||l,T={[Se.PWA]:{desktop:i&&nr.PCPwa,ios:c&&nr.IOSPwa,default:nr.AndroidPwa},[Se.Speed]:{apple:A&&nr.IOSSpeedApp,default:nr.AndroidSpeedApp},[Se.Normal]:{apple:A&&nr.IOSNormalApp,default:nr.AndroidNormalApp},[Se.Vest]:{apple:A&&nr.IOSVest,default:nr.AndroidVest}}[v];if(T)return v===Se.PWA?T.desktop||T.ios||T.default:T.apple||T.default},p=b=>{const v=h(b);if(o.value.includes(v))return u.value?`+${u.value}`:u.value},y=C(()=>{const b=m.value,v=[Se.UnBanSpeed,Se.Speed,Se.UnBanNormal,Se.Normal];b.length%2?v.push(Se.PWA):v.unshift(Se.PWA);const A=new Map(v.map((T,S)=>[T,S]));return b==null?void 0:b.map(T=>({...T,reward:p(T.type),ghost:!0})).sort((T,S)=>{var D,M;const I=(D=A.get(T.type))!=null?D:1/0,R=(M=A.get(S.type))!=null?M:1/0;return I-R})});return{userName:g,customerUrl:f,appName:_,appList:y,downloadRewardsAmount:u}};class Xz{constructor(){x(this,"logoMap",{});x(this,"translateUrl",t=>{var r;const n=Zs(t),{origin:o}=new URL(t),a={...n,"fixed.isSaveShort":void 0,"fixed.isHideDomain":void 0,"fixed.iswebclip":2,siteCode:(r=window.LOBBY_SITE_CONFIG)==null?void 0:r.siteCode};return Ra(o,{webClipData:window.btoa(JSON.stringify(a))})});x(this,"getWebclipUrl",async({logo:t,appName:n,domain:o})=>{try{const a=this.translateUrl(o),r="6131f1a0-89c2-410c-b748-0738b0cdeadc",s=await this.getBase64Image(t);this.logoMap[t]=s;const i=s.split(",")[1],c=_1(`${t}-${n}-${a}`,r),l=this.generateMobileConfigXml({logo:i,appName:n,uuid:c,domain:a}),u=new Blob([l],{type:"application/x-apple-aspen-config"});return URL.createObjectURL(u)}catch(a){return console.log(a),this.logoMap[t]="",""}});x(this,"getBase64Image",async t=>this.logoMap[t]?this.logoMap[t]:fetch(t,{mode:"cors",cache:"force-cache"}).then(n=>{if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);return n.blob()}).then(n=>new Promise((o,a)=>{const r=new FileReader;r.onloadend=()=>{o(r.result)},r.onerror=a,r.readAsDataURL(n)})));x(this,"generateMobileConfigXml",({logo:t,appName:n,uuid:o,domain:a})=>` 43 <?xml version="1.0" encoding="UTF-8"?> 44 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> 45 <plist version="1.0"> 46 <dict> 47 <key>HasRemovalPasscode</key> 48 <false/> 49 <key>PayloadContent</key> 50 <array> 51 <dict> 52 <key>FullScreen</key> 53 <true/> 54 <key>Icon</key> 55 <data> 56 ${t} 57 </data> 58 <key>IsRemovable</key> 59 <true/> 60 <key>Label</key> 61 <string>${n}</string> 62 <key>PayloadDescription</key> 63 <string>Authorized application</string> 64 <key>PayloadDisplayName</key> 65 <string>${n}</string> 66 <key>PayloadIdentifier</key> 67 <string>com.apple.webClip.managed.1D4C96C9-E7DE-42C3-BECD-BA359A205F95</string> 68 <key>PayloadType</key> 69 <string>com.apple.webClip.managed</string> 70 <key>PayloadUUID</key> 71 <string>1D4C96C9-E7DE-42C3-BECD-BA359A205F95</string> 72 <key>PayloadVersion</key> 73 <integer>1</integer> 74 <key>Precomposed</key> 75 <false/> 76 <key>URL</key> 77 <string>${a}</string> 78 </dict> 79 </array> 80 <key>PayloadDescription</key> 81 <string>Authorized application</string> 82 <key>PayloadDisplayName</key> 83 <string>${n}</string> 84 <key>PayloadIdentifier</key> 85 <string>${o}</string> 86 <key>PayloadRemovalDisallowed</key> 87 <false/> 88 <key>PayloadType</key> 89 <string>Configuration</string> 90 <key>PayloadUUID</key> 91 <string>7AF56A7A-4F98-4611-B189-62E6C7EB173B</string> 92 <key>PayloadVersion</key> 93 <integer>1</integer> 94 </dict> 95 </plist> 96 `)}}const Zz=new Xz,Jz=()=>({createWebClipUrl:async({logo:t,appName:n,domain:o})=>{const{isIOS:a}=ft().os;a&&await Zz.getWebclipUrl({logo:t,appName:n,domain:o}).then(r=>{zo().localWebclipUrl=r}).catch(()=>{zo().localWebclipUrl=""})}}),ej=()=>{const{isH5Pwa:e,isIos:t}=Qe(),{isDesktop:n}=ft().device;if(e)return;const o=ts(),{installPrompt:a,displayMode:r,installPwaBySystem:s}=St(o),{start_url:i,mode:c}=St(jb()),{appName:l}=Qz(),u=C(()=>{let f;return c.value===fr.Browser?f=bg().downloadInfo.value.logo:f=bg().downloadInfo.value.appIcon,f=qm(f),f}),d=C(()=>{var h,p,y;const f=(h=zo().downloadAppConfig)==null?void 0:h.pwaPromoImage;if(((p=zo().downloadAppConfig)==null?void 0:p.pwaStyle)===xA.POPUP)return(y=f==null?void 0:f.split(","))==null?void 0:y.map(b=>(b=qm(b),{src:b,sizes:"720x1280",type:"image/png",form_factor:n?"wide":void 0}))}),m=C(()=>JSON.stringify([l.value,u.value,c.value,i.value,d.value]));fe(()=>m.value,()=>{const f=!!(l.value&&u.value);t&&(Qv({name:"",logo:"",displayMode:fr.Standalone,start_url:i.value},"data"),f&&Jz().createWebClipUrl({logo:u.value,appName:l.value,domain:i.value})),!t&&f&&Qv({name:l.value,logo:u.value,displayMode:c.value,start_url:i.value,screenshots:d.value},c.value===fr.Browser?"data":"sw")},{immediate:!0}),Hf(window,"beforeinstallprompt",f=>{f.preventDefault(),a.value=f}),Hf(window,"appinstalled",()=>{r.value!==fr.Browser&&(s.value=!0)});const g=b1(()=>{fS()&&(o.setIsCanInstallPwa(!0),setTimeout(()=>{window.location.reload()}))},1e3);return fS()||Hf(window,"resize",g),null},tj=e=>{const t=Qe();let n=!1;return(e==="all"||e==="ios"&&t.isIos||e==="android"&&t.isAndroid)&&(n=!0),n},nj=()=>{const e=O(void 0),t=o=>{const a=o.changedTouches[0].clientX;a<25&&(e.value=a),a>document.documentElement.clientWidth-25&&(e.value=a)},n=qn(o=>{typeof e.value!="number"||!(()=>{let r=!1;const s=o.changedTouches[0].clientX,i=e.value;return i<25&&s-i>20&&(r=!0),i>document.documentElement.clientWidth-25&&s-i<-20&&(r=!0),r})()||(lf().updateRouterViewTransitionModeOnce("None",void 0,300),e.value=void 0)}
96,0);document.addEventListener("touchstart",t,{passive:!1}),document.addEventListener("touchmove",n,{passive:!1}),Kn(()=>{document.removeEventListener("touchstart",t),document.removeEventListener("touchmove",n)})},oj=(e="ios")=>{tj(e)&&nj()},[aj]=_e("delay-loader"),rj=le({name:aj,props:{loader:{type:Function,required:!0},delay:{type:Number,default:1e4},idle:{type:Boolean,default:!1},idlePriority:{type:String,default:"low"},idleLabel:{type:String,default:void 0}},emits:["show"],setup(e,{emit:t}){const n=O(!1);let o=null;Gt(async()=>{if(e.idle){if(o=Fa.schedule(()=>{},{priority:e.idlePriority,label:e.idleLabel}),await o.promise.catch(()=>{}),o.status==="aborted")return}else await zn(e.delay);n.value=!0,t("show")}),Kn(()=>{o==null||o.cancel()});const a=gn({loader:()=>e.loader()});return()=>n.value?w(a,null,null):null}}),[sj]=_e("async-dialogs"),ij=le({name:sj,setup(){const e=!va.stopOverlayAnimation(),t=bn(),n=Oe(),o=C(()=>{const a=[];return Object.entries(t.stateMap).forEach(r=>{const[s,i]=r;i.uiStatus===Zo.Done&&a.push(s)}),a});return n.router.afterEach((a,r)=>{a.name===k.GAME?t.isDelayDone&&t.startAutoDialog({startBy:Bs.Router,from:r.name}):(t.stopAutoDialog(),t.resetBuiltQueue())}),()=>{const a=t.DialogConfig;return a?o.value.map(r=>{var i,c;const s=(i=a[r])==null?void 0:i.componentConfig.component;return s?w(s,Te({key:r},Pe({closeOnOverlayValueFromCloseButton:!0,isShowFrostedGlassEffect:e},(c=a[r])==null?void 0:c.componentConfig.props)),null):null}):null}}}),cj=gn({loader:()=>V(()=>import("./NqDebugPanel.SkGJ_j-y.js"),__vite__mapDeps([27]))}),lj=()=>location.search.includes("nqDebug=true")?w(cj,null,null):w(gt,null,null),uj=gn(()=>V(()=>import("./GlobalEventListenerIndex.4bQgFWwV.js"),__vite__mapDeps([0,1]))),dj=null,[mj]=_e("framework"),gj=le({name:mj,setup(){_V(),Yz(),jz(),Fq(),$q(),jq(),Kz(),ej(),oj();const e=()=>w(gt,null,[w(uj,null,null),w(rj,{idle:!0,idleLabel:$o.GlobalLazyInit,loader:()=>V(()=>import("./GlobalLazyInitIndex.DF1eCLM6.js"),__vite__mapDeps([0,1,3,18]))},null),dj]);return()=>w(gt,null,[w(Rw,null,null),w(kR,{onlyRun:gl.TGMG,name:eb.FRAMEWORK},{default:()=>[w(e,null,null),w(ij,null,null)]}),w(lj,null,null)])}}),fj=le({setup(){return()=>w(gj,null,null)}});class pj{constructor(){x(this,"online",navigator.onLine);x(this,"started",!1);x(this,"handleOffline",()=>{this.online&&(this.online=!1,_o.warn({message:we().t("lobby.error.networkError")}),ve("NETWORK_OFFLINE").emit())});x(this,"handleOnline",()=>{this.online||(this.online=!0,ve("NETWORK_ONLINE").emit())})}get isOnline(){return this.online}setup(){this.started||(this.started=!0,window.addEventListener("offline",this.handleOffline),window.addEventListener("online",this.handleOnline))}}const hj=Vo.getInstance("onlineStatusInstance",pj),_j=async()=>{Fh.init(),Lt.start(Lt.target.dataCompeted),Lt.start(Lt.target.sysConfigCompeted),Lt.start(Lt.target.autoLogin),Lt.start(Lt.target.localTemporary),hj.setup(),ve("APP_MOUNTED").emit()},bj=["00000000-6ebc-d919-ffff-ffffe7763000","6e3a97e6-1618-4a46-99cc-b42dc9f3e31c"],yj="b7f3c2d1-4e8a-4c6b-9f2d-3a5e7c1b8d40",vj=e=>bj.some(t=>t===e),BR=e=>y1(e.trim(),yj),Sj=1500;function Cj(e){var a,r;const t=Sj,n=ue(),o=ft().os.isIOS?(a=n.systemInfos)==null?void 0:a.geetestDeviceIOSAppId:(r=n.systemInfos)==null?void 0:r.geetestDeviceAndroidAppId;return o?new Promise((s,i)=>{let c=!1;const l=setTimeout(()=>{c||(c=!0,i(new Error("GEE_TOKEN bridge timeout")))},t);let u;try{u=nl("GEE_TOKEN").send({appId:o})}catch(d){u=void 0}if(!u){clearTimeout(l),c||(c=!0,i(new Error("Invalid GEE_TOKEN")));return}u.then(d=>{var g;if(clearTimeout(l),c)return;c=!0;const m=(g=d.payload)==null?void 0:g.gee_token;if(m){s(m);return}i(new Error("Invalid GEE_TOKEN"))}).catch(()=>{clearTimeout(l),!c&&(c=!0,i(new Error("Invalid GEE_TOKEN")))})}):Promise.reject(new Error("Missing GEE_TOKEN appId"))}const HR="fixed_device_id",xR="device_finger",p_=Yo({},[{type:"local"},{type:"cookie"}]);function ER(e){try{const t=p_.getItem(e);return t!=null?t:void 0}catch(t){return}}function UR(e,t){try{return p_.setItem(e,t),p_.getItem(e)===t}catch(n){return!1}}function wj(){return ER(HR)}function GR(){return ER(xR)}function h_(e){return UR(HR,e)}function BS(e){return UR(xR,e)}const Ij=2e3;let wp;function Aj(){return wp||(wp=Lj()),wp}async function Lj(){const e=wj();if(e)return e;const t=GR();if(t){const n=BR(t);
96if(!h_(n))throw new Error("Failed to persist fixed device id");return n}return Rj()}async function Tj(e){var a,r;const t=await Cj(),n=await vW(t,e),o=(r=(a=n==null?void 0:n.data)==null?void 0:a.data)==null?void 0:r.fingerprint;if(!o)throw new Error("Invalid fingerprint response");return o}async function Rj(){const e=dl(),t=Tj(e).catch(()=>{});let n;const o=new Promise(r=>{n=setTimeout(()=>r(void 0),Ij)}),a=await Promise.race([t,o]);if(clearTimeout(n),a){const r=BR(a);if(!h_(r))throw new Error("Failed to persist fixed device id");return BS(a),r}if(!h_(e))throw new Error("Failed to persist fixed device id");return t.then(r=>{r&&BS(r)}),e}const Oj=async()=>{var o,a;const{updateUUId:e,updateHash:t}=jn(),n=Nx();if(re!=null&&re.package.isApp){const r=((o=re==null?void 0:re.wgPackageConfig)==null?void 0:o.device)||"",s=(a=re==null?void 0:re.wgPackageConfig)==null?void 0:a.hash;if(re.package.isLite&&vj(r))try{e(await Aj());const i=GR();i&&!J().getFingerId&&J().setFingerId(i)}catch(i){}else r&&e(r);s&&t(s)}jn().uuid||e(n||dl())},Pj=()=>{const e=J(),t=Ux();t&&(e.getFingerId||e.setFingerId(t))},Dj=async()=>{await Oj(),Pj(),ve("APP_BEFORE_MOUNTED").emit()},FR=new Map;function WR(e){return document.querySelector(`[data-route-for-scroll="${String(e.name)}"].lobby-scroll`)}function Mj(e){const t=WR(e);e&&t&&FR.set(e.name,{x:t.scrollLeft,y:t.scrollTop,time:Date.now(),name:e.name})}function Nj(e){return FR.get(e.name)}const kj=async function(e){var o;const t=(o=e.meta.scrollType)!=null?o:"auto",n=a=>{if(a){const r=WR(e);r&&(r.scrollTop=a.y,r.scrollLeft=a.x)}};if(t==="auto"){const a=Nj(e);n(a)}else n({x:0,y:0})};function Bj(e){e.beforeEach((t,n,o)=>{try{Mj(n)}catch(a){}o()})}const Hj=e=>{let t=!0;e.beforeEach(n=>{var i,c;if(t){const l=ug()||void 0;return n.query.bot!==l?{path:n.path,query:{...n.query,bot:l},hash:n.hash}:void 0}if(Object.prototype.hasOwnProperty.call(n.query,"bot"))return;const o=(i=n.redirectedFrom)!=null?i:n;if(o.fullPath===e.options.history.location&&!Object.prototype.hasOwnProperty.call(o.query,"bot"))return;const a=(c=n.redirectedFrom)==null?void 0:c.query,r=a&&Object.prototype.hasOwnProperty.call(a,"bot"),s=r?a.bot:ug();if(!(!r&&!s))return{path:n.path,query:{...n.query,bot:s},hash:n.hash}}),e.afterEach((n,o,a)=>{a||(t=!1,hF(n.query))})},VR="asyncFooter",$R="banner",xj={[kt.default]:2.1,[kt.min]:1.46,[kt.cascading]:1.89,[kt.big]:{height:3.4,marginTop:0,marginBottom:0},[kt.middle]:{height:2.2,marginTop:0,marginBottom:0},[kt.bigSide]:{height:4.4,marginTop:.2,marginBottom:.2}};var Un=(e=>(e.gameExhibition="gameExhibition",e.gameExhibition_hot="gameExhibition_hot",e.gameExhibition_chess="gameExhibition_chess",e.gameExhibition_fish="gameExhibition_fish",e.gameExhibition_electronic="gameExhibition_electronic",e.gameExhibition_real="gameExhibition_real",e.gameExhibition_sports="gameExhibition_sports",e.gameExhibition_cockfighting="gameExhibition_cockfighting",e.gameExhibition_gaming="gameExhibition_gaming",e.gameExhibition_lottery="gameExhibition_lottery",e.gameExhibition_blockChain="gameExhibition_blockChian",e.gameExhibition_merged="gameExhibition_merged",e.gameExhibition_clubRoom="gameExhibition_clubRoom",e.gameExhibition_search="gameExhibition_search",e.gameExhibition_recent="gameExhibition_recent",e.gameExhibition_collect="gameExhibition_collect",e.gameExhibition_demo="gameExhibition_demo",e))(Un||{}),$t=(e=>(e.jackpotInBannerTop="jackpotInBannerTop",e.jackpotInMarqueeTop="jackpotInMarqueeTop",e.jackpotInMiddleMenu="jackpotInMiddleMenu",e.jackpotInPopular="jackpotInPopular",e.jackpotInPlatformTop="jackpotInPlatformTop",e.jackpotInPlatformRight="jackpotInPlatformRight",e.jackpotInDefault="jackpotInDefault",e))($t||{});const YR="homeLiveStream";var na=(e=>(e[e.GameTop=1]="GameTop",e[e.BannerTop=2]="BannerTop",e[e.FooterTop=3]="FooterTop",e[e.MarqueeBottom=4]="MarqueeBottom",e[e.GameCategoryTop=5]="GameCategoryTop",e[e.SportFooterTop=6]="SportFooterTop",e))(na||{}),ry=(e=>(e[e.Style1=1]="Style1",e[e.Style2=2]="Style2",e[e.Style3=3]="Style3",e))(ry||{});const Ej=5e3,sy={1:3.04,2:4,3:1.8},Uj=sy[2],Gd="0.2rem";var Gj=(e=>
96(e.Guest="1",e.Member="2",e))(Gj||{});const Hme=3e3,Cs="/lobby_asset/common/common/selfoperated-games",xme={menu:`${Cs}/icon_sszb_cd1.svg`,play:`${Cs}/icon_sszb_play1.svg`,pause:`${Cs}/icon_sszb_pause1.svg`,volumeOn:`${Cs}/icon_sszb_sy1.svg`,volumeOff:`${Cs}/icon_sszb_jy1.svg`,fullscreenExpand:`${Cs}/icon_sszb_max1.svg`,fullscreenCollapse:`${Cs}/icon_sszb_min1.svg`,close:`${Cs}/icon_sszb_x1.svg`};var lt=(e=>(e.marketInHeaderBelow="marketInHeaderBelow",e.marketInBannerBelow="marketInBannerBelow",e.marketInMarqueeBelow="marketInMarqueeBelow",e.marketInGameBelow="marketInGameBelow",e.marketInHomeBottomAbove="marketInHomeBottomAbove",e.marketInHomeBottom="marketInHomeBottom",e.marketInHotGamesBelow="marketInHotGamesBelow",e.marketInThirdPartyGamesAbove="marketInThirdPartyGamesAbove",e.marketInThirdPartyGamesBelow="marketInThirdPartyGamesBelow",e.marketInHotGamesAbove="marketInHotGamesAbove",e))(lt||{}),Yn=(e=>(e.specialInDefault="specialInDefault",e.specialInGameTop="specialInGameTop",e.specialInGameSingle="specialInGameSingle",e.specialInGameBottom="specialInGameBottom",e))(Yn||{}),_n=(e=>(e[e.UniversalCard=1]="UniversalCard",e[e.CenterMagnify=2]="CenterMagnify",e[e.SlideLeftLarge=3]="SlideLeftLarge",e[e.NavigationPopover=4]="NavigationPopover",e[e.SlideBottomName=5]="SlideBottomName",e))(_n||{}),Wa=(e=>(e[e.Top=1]="Top",e[e.Single=2]="Single",e[e.Bottom=3]="Bottom",e))(Wa||{}),Fj=(e=>(e[e.Name1=1]="Name1",e[e.Name2=2]="Name2",e[e.Name3=3]="Name3",e))(Fj||{}),ca=(e=>(e[e.BANNER=0]="BANNER",e[e.NAV=1]="NAV",e[e.FOOTER=2]="FOOTER",e[e.MARQUEUE=3]="MARQUEUE",e))(ca||{}),In=(e=>(e[e.STYLE1=1]="STYLE1",e[e.STYLE2=2]="STYLE2",e[e.STYLE3=3]="STYLE3",e[e.STYLE4=4]="STYLE4",e[e.STYLE5=5]="STYLE5",e[e.STYLE6=6]="STYLE6",e[e.STYLE7=7]="STYLE7",e))(In||{}),Wj=(e=>(e[e.USER_COLOR=1]="USER_COLOR",e[e.COIN_COLOR=2]="COIN_COLOR",e[e.WIN_COLOR=3]="WIN_COLOR",e))(Wj||{}),Gn=(e=>(e.winnerInDefault="winnerInDefault",e.winnerInBannerTop="winnerInBannerTop",e.winnerInMarqueeTop="winnerInMarqueeTop",e.winnerInMiddleMenuTop="winnerInMiddleMenuTop",e.winnerInFooterTop="winnerInFooterTop",e))(Gn||{});const iy="gameSport",cy="homeVideo",qR="marqueue",zR="recommendMatchs",jR="syncHeader",Vj={1:.9,2:.9,4:.9,5:1.1,6:1.1,7:.9,8:1,11:1,12:1.06,13:.9,20:1,22:.95,28:1,29:1,32:.94,58:1,59:.9,60:1.14,61:.76,63:1.1,64:.9,66:.9,72:1,76:.85,82:.9,83:.9,88:.9,89:.9,98:.9,102:.84,104:.9,107:.9,109:.9,111:1,114:.9,115:.9,116:.9,119:.9,122:.9,123:.9,128:.9},KR="topDownload",$j={1:.6,2:.6,4:.6,5:.6,6:.6,7:.6,8:.6,11:.6,12:.6,13:.6,20:.6,22:.6,28:.6,29:.6,32:.6,58:.6,59:.6,60:.6,63:.6,64:.6,66:.6,72:.6,76:.6,82:.95,83:.95,88:.6,89:.6,98:.6,104:.6,107:.6,109:.6,111:.6,114:.6,115:.6,116:.6,119:.6,122:.6,123:.6},Yj=Symbol.for("myorg.vue.async-component"),qj=le({name:"async-empty-fallback",setup:()=>()=>null});function zj(e){return e?e===!0?{...Mu}:{...Mu,...e}:null}function bo(e,t){var r,s;const n=zj(t==null?void 0:t.retry),o=(r=t==null?void 0:t.errorComponent)!=null?r:qj;let a;if(typeof e=="function"){const i=e;a=n?gn({loader:pa(i,n),errorComponent:o}):gn(i)}else n?a=gn({...e,loader:pa(e.loader,n),errorComponent:(s=e.errorComponent)!=null?s:o}):a=gn(e);return a[Yj]=!0,a}const jj=()=>({asyncFooterConfig:{name:VR,isAsync:!0,height:3,isOpen:!0}}),Kj=e=>{e||(e=xj);const t=()=>{var r,s;if(Qj(e)){const i=(s=(r=ue().homeLayoutInfos)==null?void 0:r.banner)!=null?s:kt.default,c=e[i];return n(c)}else return n(e)},n=r=>typeof r=="number"?{height:r,marginTop:.2,marginBottom:.2}:r,o=()=>ds().finalBannerData.length>0;return{bannerModulesConfig:{...t(),name:$R,isOpen:o,isAsync:!1}}},Qj=e=>{if(Object.prototype.toString.call(e)!=="[object Object]")return!1;const{big:t,cascading:n,middle:o,min:a}=kt;return!![kt.default,t,n,o,a].some(s=>Reflect.has(e,s))},Xj="bindNoWallet";var QR=(e=>(e[e.binded=1]="binded",e[e.noBind=2]="noBind",e[e.unBind=3]="unBind",e))(QR||{}),Zj=(e=>(e[e.rmbBalance=1]="rmbBalance",e[e.score=2]="score",e))(Zj||{}),Jj=(e=>(e.buy="buyUrl",e.score="scoreUrl",e.home="homeUrl",e))(Jj||{});const Eme=async()=>(await z.request({method:"post",url:"/api/gameCenter/gameApi/recentPlatformList"})).data.data,Ume=async e=>{var n;return(n=(await z.request({method:"post",url:"/api/gameCenter/gameApi/getPlatformBalance",data:e,timeout:15e3},{error:{action:"silent"}})).data.data)!=null?n:[]},Gme=async e=>(await z.request({method:"post",url:"/api/gameCenter/gameApi/RefreshGold",data:{os_type:3,platformIdList:e}},{error:{action:"noMessage"}})).data.data,e8=async e=>(await z.request({method:"post",url:"/api/finance/getUserNoWalletInfo",data:e,timeout:15e3},{error:{action:"noMessage"}})).data.data,t8=async()=>(await z.request({method:"post",url:"/api/finance/getUserNoWalletBindUrl",timeout:15e3})).data.data,vf=ke("noWallet",()=>{const{homeLayoutInfos:e}=ue(),t=ze(),n=J(),o=O(null),a=O(!1),r=O(!1),s=O(!1),i=C(()=>{var h,p;return!((h=n.userInfos)!=null&&h.noWalletMerchNo)&&!((p=n.userInfos)!=null&&p.withdrawNoWalletMerchNo)}),c=O(),l=Ze(),u=async h=>{var v;if(!g.value)return;a.value=!0;const p=i.value&&h&&((v=o.value)==null?void 0:v.bind)!==QR.binded?{onlyScoreReward:!0}:{},[y,b]=await Ee(e8(p));a.value=!1,!y&&b?(r.value=!0,o.value=b):r.value=!1},d=async()=>await Ee(t8()),m=()=>{s.value=!s.value},g=C(()=>{var y;const h=[qt.Demo,qt.Agent],p=(y=n.userInfos)==null?void 0:y.account_type;return!n.isLogined||p&&h.includes(p)||dt.enable||n.isTemporaryAccountMode?!1:(f.value||_.value)&&Ke.isShowNoWalletBindBar&&l.currencyNoWalletIsOpen}),f=C(()=>t.currency==="CNY"?(e==null?void 0:e.commonConfig.noWalletTipCny)===s
96h.OPEN:!1),_=C(()=>t.currency==="INR"?(e==null?void 0:e.commonConfig.noWalletTipInr)===sh.OPEN:!1);return{userNoWalletInfo:o,isNoWalletCollapse:s,isFetching:a,isOpenNoWallet:g,isOpenCny:f,isOpenInr:_,isNoWalletConfig:r,noWalletHeight:c,getUsNoWalletfoData:u,getNoWalletBindUrl:d,changeNoWalletExStatus:m}}),n8=()=>{const e=vf();return{bindNoWalletModulesConfig:{name:Xj,isAsync:!1,height:.83,isOpen:()=>{var n;return(n=e==null?void 0:e.isNoWalletConfig)!=null?n:!1}}}},{Hot:o8,Chess:a8,Fish:r8,Electronic:s8,Real:i8,Sports:c8,Cockfighting:l8,Gaming:u8,Lottery:d8,BlockChain:m8,ClubRoom:g8,Search:f8,Recent:p8,Collect:h8,Demo:_8}=Z,b8=[o8,a8,r8,s8,i8,c8,l8,u8,d8,m8,g8,f8,p8,h8,_8],XR={[Z.Hot]:Un.gameExhibition_hot,[Z.Chess]:Un.gameExhibition_chess,[Z.Fish]:Un.gameExhibition_fish,[Z.Electronic]:Un.gameExhibition_electronic,[Z.Real]:Un.gameExhibition_real,[Z.Sports]:Un.gameExhibition_sports,[Z.Cockfighting]:Un.gameExhibition_cockfighting,[Z.Gaming]:Un.gameExhibition_gaming,[Z.Lottery]:Un.gameExhibition_lottery,[Z.BlockChain]:Un.gameExhibition_blockChain,[Z.Merged]:Un.gameExhibition_merged,[Z.ClubRoom]:Un.gameExhibition_clubRoom,[Z.Search]:Un.gameExhibition_search,[Z.Recent]:Un.gameExhibition_recent,[Z.Collect]:Un.gameExhibition_collect,[Z.Demo]:Un.gameExhibition_demo},y8=e=>{var d,m,g;const{jackConfMap:t,specConfMap:n,cateId:o}=e,{cusJackNormal:a,cusJackMini:r,cusSpec:s}=(e==null?void 0:e.customConfFun)||{},i=[],c=t[$t.jackpotInPlatformTop+o],l=t[$t.jackpotInPlatformRight+o],u=n[Yn.specialInGameSingle+o];return c&&i.push((d=a==null?void 0:a(c))!=null?d:c),l&&i.push((m=r==null?void 0:r(l))!=null?m:l),u&&i.push((g=s==null?void 0:s(u))!=null?g:u),i};var Sl=(e=>(e.close="0-0",e.inRootDivNotAutoToBot="1-0",e.inNewDivNotAutoToBot="2-0",e.inRootDivAutoToBot="1-1",e.inNewDivAutoToBot="2-1",e))(Sl||{}),Vr=(e=>(e.close="0",e.inRootDiv="1",e.inNewDiv="2",e))(Vr||{}),Fu=(e=>(e.no="0",e.yes="1",e))(Fu||{}),v8={env:"prod"};const Ip=(e,t)=>{if(typeof e=="number")return isFinite(e)?e:t;if(typeof e=="function")try{const n=e();return typeof n=="number"&&isFinite(n)?n:t}catch(n){return t}return t},S8=()=>location.search.includes("showLazyLoadDebugSwitch=true")&&["dev","test","try","prod"].includes(v8.env),id=()=>{const e=location.search;let t=e.replace(/.*[?&]lazyLoadDebug=([012])(&|$).*/,"$1");return t===e&&(t=Sl.close),t},C8=e=>{const t={debugPosition:Fu.no,isToPageBot:!1};if(!e)return t;const[n,o]=e.split("-");return t.debugPosition=n,t.isToPageBot=o===Fu.yes,t},Fme=e=>{const{debugPosition:t,isToPageBot:n}=e,o=n?Fu.yes:Fu.no;return`${t}-${o}`},w8={isMultiplePages:!1,listRowCount:0,listAreaHeight:0},HS=(e,t)=>e.gameCategory.list.length>0,xS=(e,t)=>e.gameCategory.list.length===0,ES=(e,t)=>e.isMultiplePages,US=(e,t)=>e.gameCategory.list.length>0&&!e.isMultiplePages,GS=(e,t)=>!0,I8=e=>{if(e.gameCategory.list.length===0)return;const t=Math.ceil(e.gameCategory.list.length/(e.listConfig.box.listColumnCount||1)),n=e.gameCategory.listRowCount;t<=n?(e.listRowCount=t,e.isMultiplePages=!1):(e.listRowCount=n,e.isMultiplePages=!0)},A8=e=>{if(e.listRowCount===0){e.listAreaHeight=0;return}const t=e.listConfig;e.listAreaHeight=e.listRowCount*(parseFloat(t.card.height)+parseFloat(t.box.topBotSpacing))-parseFloat(t.box.topBotSpacing)},L8=(e,t)=>{var a,r,s,i,c,l,u;const n={...e,...w8};let o=0;return I8(n),A8(n),HS(n)&&(o+=n.listAreaHeight),xS(n)&&(o+=(a=n.emptyOccupiedHeight)!=null?a:3.84),ES(n)&&(o+=(r=n.dynamicPaginationHeight)!=null?r:0),US(n)&&(o+=(s=n.paginationCompletedHeight)!=null?s:0),GS()&&(o+=(i=n.listOutHeight)!=null?i:0),id()!==Sl.close&&console.warn(`debugger: category é«åº¦å å â :æå å å® ð«:æªå å å® 97 categoryName:ã${e.gameCategory.gameCategoryName}ã 98 listAreaHeight:â¤ï¸${n.listAreaHeight*50}px ${HS(n)?"â ":"ð«"}, 99 emptyOccupiedHeight:â¤ï¸${((c=n.emptyOccupiedHeight)!=null?c:3.84)*50}px ${xS(n)?"â ":"ð«"} 100 dynamicPaginationHeight:â¤ï¸${((l=n.dynamicPaginationHeight)!=null?l:0)*50}px ${ES(n)?"â ":"ð«"} 101 paginationCompletedHeight:â¤ï¸${((u=n.paginationCompletedHeight)!=null?u:0)*50}px ${US(n)?"â ":"ð«"} 102 listOutHeight:â¤ï¸${n.listOutHeight*50}px ${GS()?"â ":"ð«"} 103 æ¬å类模åé«åº¦(ä¸å«childrenä¸çé 置项):â¤ï¸${o*50}px 104 `),o}
104,T8=()=>{var e;return((e=ue().homeLayoutInfos)==null?void 0:e.commonConfig.turnPageType)===fo.HandScroll?fo.HandScroll:fo.HandLoadPage},R8=e=>{const t=T8();return new Map([[t===fo.HandLoadPage&&e!==Z.Hot,{listOutHeight:.92,dynamicPaginationHeight:.94}],[t===fo.HandLoadPage&&e===Z.Hot,{listOutHeight:.92,dynamicPaginationHeight:.94}],[t===fo.HandScroll&&e!==Z.Hot,{listOutHeight:.92,dynamicPaginationHeight:0}],[t===fo.HandScroll&&e===Z.Hot,{listOutHeight:.92,dynamicPaginationHeight:0,emptyOccupiedHeight:3.64}]]).get(!0)},O8=()=>Qe().isIos?1:0,FS=e=>{const{userInfos:t}=J();return z.request({url:"/gameApi/v1/hall/club/getClubRoomTableList",method:"POST",data:{...e,requesterId:t==null?void 0:t.username}},{crypto:{enable:!0},cache:{useCache:!1},error:{checkResCode:!0,action:"silent"}}).then(n=>n.data.data)},P8=e=>z.request({url:"/gameApi/v1/hall/club/getNewClubRoomTableList",method:"POST",data:e},{crypto:{enable:!0},cache:{useCache:!1},error:{checkResCode:!0,action:"silent"}}).then(t=>t.data.data),Wme=e=>z.request({url:"/gameApi/v1/hall/club/checkEnterClubRoomTable",method:"POST",data:{...e,appTypeRestrict:O8()}},{crypto:{enable:!0},error:{checkResCode:!0,action:"silent"}}).then(t=>t.data.data),D8=e=>z.request({url:"/gameApi/v1/hall/club/getClubGameRule",method:"POST",data:e},{crypto:{enable:!0},error:{checkResCode:!0,action:"silent"}}).then(t=>t.data.data),M8=e=>z.request({url:"/gameApi/v1/hall/club/getNewClubGameRule",method:"POST",data:e},{crypto:{enable:!0},error:{checkResCode:!0,action:"silent"}}).then(t=>t.data.data),N8=e=>z.request({url:"/gameApi/v1/hall/club/checkCreateNewClubRoomTable",method:"POST",data:e},{crypto:{enable:!0},error:{checkResCode:!0,action:"silent"}}).then(t=>t.data.data),Vme=e=>z.request({url:"/gameApi/v1/hall/club/getNewClubRoomTableInfo",method:"POST",data:e},{crypto:{enable:!0},error:{checkResCode:!0,action:"silent"}}).then(t=>t.data.data),k8=()=>z.request({url:"/gameApi/v1/hall/club/getNewClubGameDeskCreate",method:"POST"},{crypto:{enable:!0},error:{checkResCode:!1,action:"silent"}}).then(e=>{var t;return!!((t=e.data.data)!=null&&t.memberCreateRoomTableSwitch)}),$me=()=>z.request({url:"/api/club/manager/gameRate",method:"GET"}).then(e=>e.data.data);var ZR=(e=>(e[e.ClubNotFound=71110009]="ClubNotFound",e[e.ClubStatusNoInvalid=71110015]="ClubStatusNoInvalid",e[e.ClubConfigFieldError=71110018]="ClubConfigFieldError",e[e.ClubRoomNotExist=71110501]="ClubRoomNotExist",e[e.GameRuleError=71110502]="GameRuleError",e[e.GameTypeInvalid=71110503]="GameTypeInvalid",e[e.GameClosed=71110506]="GameClosed",e[e.GameMaintain=71110536]="GameMaintain",e[e.GameStatusDisable=71110537]="GameStatusDisable",e[e.CreateClubTableGameFull=71111001]="CreateClubTableGameFull",e[e.CreateClubTableAllFull=71111002]="CreateClubTableAllFull",e[e.EnterClubTablePasswordIncorrect=71111003]="EnterClubTablePasswordIncorrect",e[e.RoomFull=71111004]="RoomFull",e[e.GameStartError=71111005]="GameStartError",e[e.GameParameterError=71000021]="GameParameterError",e[e.RoomRuleVerificationError=71111006]="RoomRuleVerificationError",e[e.OperatingTooFast=71111007]="OperatingTooFast",e[e.AppTypeRestrictErrMsg=71111008]="AppTypeRestrictErrMsg",e[e.MemberStatusError=71000042]="MemberStatusError",e[e.MemberInsufficientBalance=71000043]="MemberInsufficientBalance",e[e.MemberHasUnfinishedRoom=71000044]="MemberHasUnfinishedRoom",e[e.ClubMemberCreateRoomDisabled=71111013]="ClubMemberCreateRoomDisabled",e[e.ClubMemberCreateRoomForbidden=71111014]="ClubMemberCreateRoomForbidden",e[e.ClubRoomNotExist2=71000009]="ClubRoomNotExist2",e[e.ClubRoomExpirySettling=71111016]="ClubRoomExpirySettling",e))(ZR||{});const B8={71110009:"clubNotFound",71110015:"clubStatusNoInvalid",71110018:"clubConfigFieldError",71110501:"clubRoomNotExist",71110502:"gameRuleError",71110503:"gameTypeInvalid",71110506:"gameClosed",71110536:"gameMaintain",71110537:"gameStatusDisable",71111001:"createClubTableGameFull",71111002:"createClubTableAllFull",71111003:"enterClubTablePasswordIncorrect",71111004:"roomFull",71111005:"gameStartError",71000021:"gameParameterError",71111006:"roomRuleVerificationError",71111007:"operatingTooFast",71111008:"appTypeRestrictErrMsg",71000042:"memberStatusError",71000043:"memberInsufficientBalance",71000044:"unfinishedRoom",71111013:"clubMemberCreateRoomDisabled",71111014:"memberStatusError",71000009:"roomNotExist",71111016:"roomExpirySettling"},JR=[71111013,71111014],H8=Object.freeze(Object.defineProperty({__proto__:null,EGameErrorCodes:ZR,closeAlertCodes:JR,clubGameErrs:B8},Symbol.toStringTag,{value:"Module"})),x8=()=>{const{t:e}=we();return[{icon:"/lobby_asset/{layout}-{bg}-common/common/home/icon_ylc.png",sportName:()=>e("lobby.footer.quickJump.recreationCity"),sportType:ut.Casino}]};ut.Club,ut.Native,ut.ThirdParty;const E8=rt(()=>V(()=>Promise.resolve().then(()=>
104s7),void 0),e=>e.useWgSportStatusStore,"useWgSportStatusStore"),Wu=ke("club-home",()=>{const e=J(),{userInfos:t}=St(e),n=Object.keys(Kl).map(q=>Number(q)),o=O(!1),a=O(!1),r=O(n[0]),s=O(n[0]),i=O(!1),c=O(!1),l=Ir(),u=C(()=>c.value||l.isGameOpening),d=async q=>{if(!u.value){c.value=!0;try{await q()}finally{c.value=!1}}},m=O([]),g=O(!1),f=O(),_=ac("Lv1"),h=O(),p=on(),y=yL(),{skinType:b}=nn(),v=C(()=>{var ae,me,de;const q=(de=(me=(ae=p.gameCategoriesInfoList)==null?void 0:ae.find(ne=>ne.gameCategoryId===Z.ClubRoom))==null?void 0:me.list)==null?void 0:de.find(ne=>ne.platformId===Yr.WG);return q?!!q.maintainStatus:!1}),{data:A,execute:L}=Mi((q=!1)=>xU(dt.id,q),{onSuccess:q=>{bL(q)}}),T=C(()=>_.value&&dt.enable),S=C(()=>{var ae;const q=(ae=y.infoData)!=null?ae:A.value;if(q){const me=/^\d+$/.test(String(q.clubLogo))||q.clubLogo==="";return{...q,clubLogo:me?Pb[Number(q.clubLogoIndex)]:q.clubLogo}}}),I=C(()=>m.value.reduce((q,ae)=>(q[ae.clubPlatformId]=ae.isOpen,q),{})),R=C(()=>{var q,ae;return(ae=(q=m.value.find(me=>me.clubPlatformId===3))==null?void 0:q.isOpen)!=null?ae:!1}),D=C(()=>{var q,ae;return(ae=(q=m.value.find(me=>me.clubPlatformId===2))==null?void 0:q.isOpen)!=null?ae:!1}),M=C(()=>{var q,ae;return(ae=(q=m.value.find(me=>me.clubPlatformId===4))==null?void 0:q.isOpen)!=null?ae:!1}),B=C(()=>{var q;return(q=t.value)==null?void 0:q.clubMemberInfo}),E=vt(n.reduce((q,ae)=>(q[ae]=[],q),{})),Y=vt(n.reduce((q,ae)=>(q[ae]=[],q),{})),H=C(()=>Y[r.value]),F=q=>{a.value=q},Q=async()=>{o.value=await k8()},G=q=>{let ae={};try{ae=JSON.parse(q)}catch(me){console.warn(me)}return ae},N=q=>{q!=null&&q.length&&q.forEach(ae=>{var me;return(me=on())==null?void 0:me.fetchPlatformGameList(ae).then(async de=>{const ne=h.value;if(de!=null&&de.length&&ne){const U=ae.gameCategoryId===Z.ClubRoom&&ae.platformId===Yr.WG&&ne===ut.Club,W=!U&&ne===ut.Native;(U||W)&&(await E8()).setSportTabKey(ne),h.value=void 0}})})},$=()=>n.forEach(async q=>{const[ae,me]=await Ee(FS({gameType:q,clubId:dt.id}));!ae&&(me!=null&&me.tableList.length)?E[q]=me==null?void 0:me.tableList.map(de=>({...de,tableRule:G(de.tableRule)})):Id(ae.data)}),X=qn(async q=>{var U,W;if(!q)return;const ae=e_.includes(b)&&!0;g.value=!0,s.value=q;const me=ae?P8:FS,[de,ne]=await Ee(me({gameType:q,clubId:dt.id}));if(g.value=!1,!de)E[q]=Object.assign(((U=ne==null?void 0:ne.tableList)==null?void 0:U.map(oe=>({...oe,tableRule:G(oe.tableRule),totalPerson:ne.totalPerson,totalRoom:ne.totalRoom})))||[],{isMaintain:!1});else{if(Number((W=de.data)==null?void 0:W.code)===71110536){const oe=Object.assign([],{isMaintain:!0});E[q]=oe;return}Id(de.data,!0)}},200),j=q=>{const{t:ae}=we();if(v.value){_o.warn({message:ae("lobby.game.gameMaintainText")});return}te(q)},te=async q=>{if(!q||u.value)return;i.value=!0;const ae=e_.includes(b)&&!0;if(ae){const[U]=await Ee(N8({gameType:q}));if(U){i.value=!1;const W=U.data;Id(W),JR.includes(W==null?void 0:W.code)&&Q();return}}const me=ae?M8:D8,[de,ne]=await Ee(me({gameType:q}));if(i.value=!1,!de&&ne)try{Y[q]=JSON.parse(ne.gameRule),F(!0)}catch(U){console.warn(U)}else Id(de.data);r.value=q};return{canCreateRoom:o,clubTableListMap:E,createModalVisible:a,curRuleId:r,curClubGameId:s,clubTableRuleMap:Y,curClubRule:H,clubMemberInfo:B,ruleLoading:i,clubGameSetting:m,clubGameSettingMap:I,isThirdPartyOpen:R,isNativeGameOpen:D,isSportOpen:M,clubLogoSetting:S,isClubGameMaintain:v,isHideCurrency:T,active132RoomTabId:f,getTableListLoading:g,initCLubAndWgSubGameList:N,getClubLogoSetting:L,initGameSetting:async()=>{},initAllTableList:$,setCreateModalVisible:F,fetchCanCreateRoom:Q,refreshSingleTableList:X,setClubTableRule:te,openCreateRoom:j,createRoomDisabled:u,runQuickStart:d}},{persist:{paths:["clubGameSetting","active132RoomTabId"]}}),U8=e=>{var r,s,i;const{getFilteredGameList:t,getCategoryIdMatcher:n}=on(),o=[...new Set((r=e==null?void 0:e.map(c=>c==null?void 0:c.gameCategoryId).filter(c=>c!=null))!=null?r:[])],a=[...new Set(o.flatMap(c=>n(c)))];return a.length?(i=(s=t({type:"gameCategoryId",matches:a}))==null?void 0:s.filter(c=>c.platformId===Yr.WG))!=null?i:[]:[]};var G8=(e=>(e[e.SORT_BY_TIME=0]="SORT_BY_TIME",e[e.SORT_BY_LEAGUE=1]="SORT_BY_LEAGUE",e))(G8||{}),F8=(e=>(e[e.EUROPE=1]="EUROPE",e[e.HONGKONG=2]="HONGKONG",e[e.MALAY=3]="MALAY",e[e.INDONESIA=4]="INDONESIA",e[e.AMERICAN=5]="AMERICAN",e))(F8||{}),W8=(e=>(e[e.DONT_ACCEPT_ANY_ODDS_CHANGE=0]="DONT_ACCEPT_ANY_ODDS_CHANGE",e[e.ACCEPT_BETTER_ODDS=1]="ACCEPT_BETTER_ODDS",e[e.ACCEPT_ANY_ODDS_CHANGE=2]="ACCEPT_ANY_ODDS_CHANGE",e))(W8||{}),V8=(e=>(e[e.DONT_ACCEPT_CASH_OUT_CHANGE=0]="DONT_ACCEPT_CASH_OUT_CHANGE",e[e.ACCEPT_CASH_OUT_CHANGE=1]="ACCEPT_CASH_OUT_CHANGE",e))(V8||{}),$8=(e=>(e[e.BATCH_BET=0]="BATCH_BET",e[e.QUICK_BET=1]="QUICK_BET",e))($8||{}),Y8=(e=>(e[e.HIDDEN=1]="HIDDEN",e[e.SHOW=0]="SHOW",e))(Y8||{}
104),eO=(e=>(e[e.CREATED=0]="CREATED",e[e.CONFIRMING=1]="CONFIRMING",e[e.REJECTED=2]="REJECTED",e[e.CANCELED=3]="CANCELED",e[e.CONFIRMED=4]="CONFIRMED",e[e.SETTLED=5]="SETTLED",e))(eO||{}),q8=(e=>(e[e.CONFIRMING=4]="CONFIRMING",e[e.VALID=0]="VALID",e[e.SUCCESSFUL=1]="SUCCESSFUL",e[e.FAILED=2]="FAILED",e[e.CANCELLED=3]="CANCELLED",e))(q8||{}),ht=(e=>(e.Roll="roll",e.Shake="shake",e))(ht||{}),z8=(e=>(e.Default="ymdhms",e.Normal="ymdhm",e.Simple="mdhm",e.Date="md",e.Time="hm",e))(z8||{}),j8=(e=>(e.Equal="equal",e.Up="up",e.Down="down",e))(j8||{}),K8=(e=>(e.Video="video",e.Animation="animation",e))(K8||{}),Q8=(e=>(e.SD="SD",e.HD="HD",e))(Q8||{}),X8=(e=>(e[e.TODAY=0]="TODAY",e[e.YESTERDAY=1]="YESTERDAY",e[e.LAST_TOW_DAY=2]="LAST_TOW_DAY",e[e.LAST_SEVEN_DAY=7]="LAST_SEVEN_DAY",e[e.LAST_FIFTEEN_DAY=15]="LAST_FIFTEEN_DAY",e[e.LAST_THIRTY_DAY=30]="LAST_THIRTY_DAY",e[e.LAST_SIXTY_DAY=60]="LAST_SIXTY_DAY",e[e.THIS_MONTH=61]="THIS_MONTH",e[e.LAST_TOW_MONTH=62]="LAST_TOW_MONTH",e[e.LAST_THREE_MONTH=63]="LAST_THREE_MONTH",e[e.THIS_WEEK=-2]="THIS_WEEK",e[e.LAST_WEEK=-3]="LAST_WEEK",e[e.ALL=-1]="ALL",e[e.CUSTOMER=-4]="CUSTOMER",e[e.LAST_MONTH=-30]="LAST_MONTH",e))(X8||{}),Z8=(e=>(e.Unsettled="unsettled",e.Reserve="reserve",e.Settled="settled",e.All="all",e))(Z8||{});const J8=1e4,Yme=Symbol("from_home_sport"),e7=Symbol("home_offset_top"),qme=Symbol("bet-way"),zme={[ht.Roll]:"animation-sport-roll",[ht.Shake]:"animation-sport-shake"},jme=10,Kme=[eO.CONFIRMED],Qme=20,Xme=20,Zme=50,Jme=5,ege="sport-bet-cart-classname",tge="/lobby_asset/common/common/selfoperated-games/wgty_sports_league_a.png",nge="/lobby_asset/common/common/selfoperated-games/wgty_sports_soccer.png";var ki=(e=>(e.ASIDE="aside",e.GAME="game",e.MIDDLE="middle",e.FOOTER="footer",e))(ki||{});const t7=e=>{var t,n;return e.isServerOpen&&((n=(t=e.list)==null?void 0:t.length)!=null?n:0)>0},n7=()=>{const{gameCategoriesInfoList:e}=on(),t=e.find(r=>r.gameCategoryId===Z.Merged);if((t==null?void 0:t.icon)===uI.NotUploaded)return"";const{ossHost:n}=Ht(),{siteCode:o}=Ze(),a=new Qg().run({gameType:Nn.Category});return`${n}game_pictures/${Nn.Category}/${o}/${Z.Merged}/custom/more.png${a}`},o7=new Map([["hotIcon",Z.Hot],["chessCardIcon",Z.Chess],["fishingIcon",Z.Fish],["electronicIcon",Z.Electronic],["personIcon",Z.Real],["sportsIcon",Z.Sports],["lotteryIcon",Z.Lottery],["athleticsIcon",Z.Gaming],["cockfightingIcon",Z.Cockfighting],["blockchainIcon",Z.BlockChain],["freeTrialIcon",Z.Demo],["collectGamesIcon",Z.Collect],["recentGamesIcon",Z.Recent]]),Fd=()=>{var n,o;const e=(n=ue())==null?void 0:n.homeLayoutInfos,t=(o=Ht())==null?void 0:o.hostCombineDomain;return{homeLayoutInfos:e,hostCombineDomain:t}};class cd{static fillMap(t,n){const{hostCombineDomain:o}=Fd();t&&t.forEach(a=>{const r=a.value?o+a.value:"";n.set(a.key,r)})}static useHomeCustomizeIcon(){var u,d;const{homeLayoutInfos:t}=Fd(),n=(d=(u=t==null?void 0:t.advanceSetting)==null?void 0:u.day)==null?void 0:d.iconSetting,{homeTopImg:o,homeMidImg:a,homeBtmImg:r}=n||{},s=new Map,i=new Map,c=new Map,l={customizeTopIconMap:{map:s,img:o,type:"top"},customizeMiddleIconMap:{map:i,img:a,type:"middle"},customizeBottomIconMap:{map:c,img:r,type:"bottom"}};return Object.values($T).forEach(m=>{const g=l[m];g&&this.fillMap(g.img,g.map)}),{customizeTopIconMap:s,customizeMiddleIconMap:i,customizeBottomIconMap:c}}static useGameShowImage(){var u,d;const{homeLayoutInfos:t,hostCombineDomain:n}=Fd(),o=(d=(u=t==null?void 0:t.advanceSetting)==null?void 0:u.day)==null?void 0:d.iconSetting,{gameShowImg:a,gameSelectedImg:r}=o||{},s=new Map,i=new Map,c={gameIconMap:{map:s,img:a},gameIconSelectMap:{map:i,img:r}},l=(m,g)=>{m&&m.forEach(f=>{const _=o7.get(f.key);if(_!==void 0){const h=f.value?n+f.value:"";g.set(_,h)}})};return Object.values(YT).forEach(m=>{const g=c[m];g&&l(g.img,g.map)}),[s,i].forEach(m=>{m.has(Z.Merged)||m.set(Z.Merged,n7())}),{gameIconMap:s,gameIconSelectMap:i}}static useOwnerCustomizeIcon(){var u,d;const{homeLayoutInfos:t}=Fd(),n=(d=(u=t==null?void 0:t.advanceSetting)==null?void 0:u.day)==null?void 0:d.iconSetting,{ownerTopImg:o,ownerMidImg:a,ownerBtmImg:r}=n||{},s=new Map,i=new Map,c=new Map,l={ownerTopIconMap:{map:s,img:o,type:"top"},ownerMiddleIconMap:{map:i,img:a,type:"middle"},ownerBottomIconMap:{map:c,img:r,type:"list"}};return Object.values(qT).forEach(m=>{const g=l[m];g&&this.fillMap(g.img,g.map)}),{ownerTopIconMap:s,ownerMiddleIconMap:i,ownerBottomIconMap:c}}}const Ap={[ki.GAME]:{gameMenuName:"lobby.gameMenu.menu",recent:"lobby.gameMenu.loadingRecent",collect:"lobby.gameMenu.loadingCollect"},[ki.ASIDE]:{gameMenuName:"lobby.plan.aside.gameMenu.menu",recent:"lobby.plan.aside.gameMenu.loadingRecent",collect:"lobby.plan.aside.gameMenu.loadingCollect"},[ki.MIDDLE]:{gameMenuName:"lobby.plan.middle.gameMenu.menu",recent:"lobby.plan.middle.gameMenu.loadingRecent",collect:"lobby.plan.middle.gameMenu.loadingCollect"},[ki.FOOTER]:{gameMenuName:"lobby.plan.footer.gameMenu.menu",recent:"lobby.plan.footer.gameMenu.loadingRecent",collect:"lobby.plan.footer.gameMenu.loadingCollect"}};function Sf(e){const{GameMenuAssetsMap:t=Qo,useFrom:n=ki.GAME,skipCategoryMerge:o=!1}=e||{},a=on(),r=J(),{t:s}=we(),{gameIconMap:i,gameIconSelectMap:c}=cd.useGameShowImage(),l=C(()=>{const T=R=>{var D,M;return{...R,gameCategoryName:R.gameCategoryId===Z.Merged&&R.gameCategoryName||s(`${Ap[n].gameMenuName}${R.gameCategoryId}`),iconUrlNormal:i.get(R.gameCategoryId)||rr((D=t[R.gameCategoryId])==null?void 0:D.normal),iconUrlActive:c.get(R.gameCategoryId)||rr((M=t[R.gameCategoryId])==null?void 0:M.active)}};let S=0;return(o?a.gameCategoriesExtLinkInfoList.map(R=>{const D=R.gameCategoryId===Z.Merged?!1:t7(R);return{...R,display:D}}):a.gameCategoriesExtLinkInfoList).reduce((R,D)=>{D=Dg(D);const M=D.gameCategoryId===Z.Hot,B=D.gameCategoryId===Z.Demo,E=D.isExLink,Y=D.display&&!(B&&r.hasLoginedComponent)&&!E;if(M){const H=a.getHotGameList();if(a.shouldHideHotCategory)return R;R.push(T({...D,display:!0,list:H}))}else Y?R.push(T(D)):E&&(R.push({...D,linkName:D.gameCategoryName,gameCategoryId:S+a.gameCategorieExtLink.length+Ta,iconUrlNormal:D.icon,iconUrlActive:D.icon}),S+=1);return R},[])}),u=C(()=>l.value.filter(T=>!T.isExLink)),d=C(()=>{var T,S,I,R;return a.shouldHideTgDerivedCategory?[]:[{gameCategoryName:s(Ap[n].recent),gameCategoryId:Z.Recent,iconUrlNormal:i.get(Z.Recent)||rr((T=t[Z.Recent])==null?void 0:T.normal),iconUrlActive:c.get(Z.Recent)||rr((S=t[Z.Recent])==null?void 0:S.active),isCu
104stomIcon:!1,list:a.getRecentGameList()},{gameCategoryName:s(Ap[n].collect),gameCategoryId:Z.Collect,iconUrlNormal:i.get(Z.Collect)||rr((I=t[Z.Collect])==null?void 0:I.normal),iconUrlActive:c.get(Z.Collect)||rr((R=t[Z.Collect])==null?void 0:R.active),isCustomIcon:!1,list:a.getCollectGameList()}]}),m=C(()=>[...u.value,...d.value]),g=C(()=>a.gameCategorieExtLink.map((T,S)=>({...T,gameCategoryName:T.linkName,gameCategoryId:S+a.gameCategorieExtLink.length+Ta,iconUrlNormal:T.icon,iconUrlActive:T.icon}))),f=C(()=>l.value.some(S=>S.isExLink)?[...l.value,...d.value]:[...m.value,...g.value]),_=C(()=>[...m.value,...g.value]),h=C(()=>l.value.some(S=>S.isExLink)?l.value:[...u.value,...g.value]),p=C(()=>[...u.value,...g.value]),y=T=>{var S;return!!(T!=null&&T.externalLinks)||!!((S=T==null?void 0:T.jumpPosition)!=null&&S.type)},b=T=>BL(T,`${T}${Ta}`),v=(T,S=!0)=>{if(T===Z.Hot&&S){$L();return}b(T)},A=T=>{const{setScrollStickyMenuTab:S}=Ir(),I=a.gameCategoriesInfoList.find(R=>R.gameCategoryId===T);if(!(I!=null&&I.listRowCount)||vI.includes(T)){b(T);return}ve("HOME_SCROLL_STICKY_MENU_TAB").emit({gameCategoryId:T}),S(T)};return{recentCollect:d,processGameCategories:u,categorieExtLinks:g,completeGameCategorie:m,basicCustomCategories:h,basicCustomCategoriesLastLinks:p,completeGameCategorieAndExtLinks:f,completeGameCategorieAndLastLinks:_,isExternalLink:y,jumpToSubGameFromMenu:v,scrollMenuToGameCategory:A,performGameCategoryAction:(T,S=!0,I=!1)=>{if(Ow(Z).includes(T))S?A(T):v(T,I);else{const D=g.value.find(M=>(M==null?void 0:M.gameCategoryId)===T);if(D&&D.jumpPosition&&y(D)){Gb(D.jumpPosition,D.externalLinks,D.openApproach);return}}}}}const tO=e=>{const{processGameCategories:t,completeGameCategorie:n,scrollMenuToGameCategory:o}=Sf({useFrom:e==null?void 0:e.useFrom}),a=Wu(),{clubGameSetting:r}=St(a),s=_s(),{setScrollStickyMenuTab:i}=Ir(),c=C(()=>["zh","zh_hk"].includes(Ge().language)),l=C(()=>r.value.reduce((h,p)=>(h[p.clubPlatformId]=p.isOpen,h),{})),u=()=>{var b,v;const h=document.getElementById("club-menu");if(!h)return;const p=((v=(b=h.parentElement)==null?void 0:b.parentElement)==null?void 0:v.parentElement)||h;let y=p.parentElement;for(;y;){const{overflowY:A}=getComputedStyle(y);if(A==="scroll"||A==="auto")break;y=y.parentElement}if(y){const A=p.getBoundingClientRect(),L=y.getBoundingClientRect();y.scrollTop+=A.top-L.top}else p.scrollIntoView({behavior:"auto"})},d=h=>{setTimeout(()=>o(h),200)},m=C(()=>{var D,M,B,E,Y,H,F,Q,G;const{clubTableListMap:h}=Wu(),{getGameListByCategoryAndPlatform:p,getCategoriesPlatformList:y}=on(),v=((D=y(Z.ClubRoom))==null?void 0:D.some(N=>N.platformId===Yr.WG))?(B=(M=p({gameCategoryId:Z.ClubRoom,platformId:Yr.WG}))==null?void 0:M.list)==null?void 0:B.map(N=>{var $,X,j,te;return{...N,gameCategoryId:Number(N.gameCategoryId),isSkipGameList:!1,isLastExhibitGameList:!1,gameCategoryName:N.gameName,iconUrlNormal:(($=Qo[N.gameId])==null?void 0:$.normal)||"",iconUrlActive:((X=Qo[N.gameId])==null?void 0:X.active)||"",logo:c.value?(j=Kl[N.gameId])==null?void 0:j.zh:(te=Kl[N.gameId])==null?void 0:te.en,list:h[N.gameId],listRowCount:2,onClick:()=>{s.setSportTabKey(ut.Club),yt(()=>{u(),setTimeout(()=>{i(N.gameId)},200)})}}}):[],A=t.value.filter(N=>N.gameCategoryId!==Z.Demo),L=n.value.filter(N=>!(N.gameCategoryId===Z.Demo||N.gameCategoryId===Z.ClubRoom)),T=A.map(N=>{var $;return{...N,onClick:()=>{s.setSportTabKey(ut.Native),yt(()=>d(N.gameCategoryId))},list:($=N.list)==null?void 0:$.filter(X=>X.platformId===Yr.WG)}}).filter(N=>![Z.Hot,Z.ClubRoom,Z.Sports].includes(N.gameCategoryId)).filter(N=>N.list.length),S=L==null?void 0:L.map(N=>{var $;return{...N,onClick:()=>{s.setSportTabKey(ut.ThirdParty),yt(()=>d(N.gameCategoryId))},list:($=N.list)==null?void 0:$.filter(X=>X.platformId!==Yr.WG)}}).filter(N=>{var $;return[Z.Hot,Z.Recent,Z.Collect].includes(N.gameCategoryId)?!0:!!(($=N==null?void 0:N.list)!=null&&$.length)}),I=(Y=(E=t.value)==null?void 0:E.filter(N=>N.gameCategoryId===Z.ClubRoom))==null?void 0:Y[0],R=!((H=I==null?void 0:I.list)!=null&&H.length)||!((F=l.value)!=null&&F[Os.WgDuel]);return{wgList:(Q=l.value)!=null&&Q[Os.WgSelfProfit]?T:[],thirdPartyList:(G=l.value)!=null&&G[Os.ThirdParty]?S:[],clubGameList:R?[]:v!=null?v:[],originClubGameList:v}}),g=C(()=>{var b,v;const{t:h}=we(),p=(b=l.value)!=null&&b[Os.ThirdParty]?m.value.thirdPartyList.map(A=>({...A,title:A.gameCategoryName,value:A.gameCategoryId,onClick:()=>{s.setSportTabKey(ut.ThirdParty),yt(()=>d(A.gameCategoryId))}})):[];return[...[{title:h("lobby.club.clubGame"),gameCategoryName:h("lobby.club.clubGame"),gameCategoryId:ut.Club,value:"clubGame",iconUrlActive:"/lobby_asset/{layout}-{bg}-common/common/club/{clubLayout}/club_icon_dtfl_club_1.png",iconUrlNormal:"/lobby_asset/{layout}-{bg}-common/web/club/{clubLayout}/club_icon_dtfl_club_0.svg",onClick:()=>{var A,L;s.setSportTabKey(ut.Club),(L=(A=m.value.clubGameList)==null?void 0:A[0])!=null&&L.gameId&&yt(()=>{i(m.value.clubGameList[0].gameId),u()})},isHidden:!((v=m.value.clubGameList)!=null&&v.length)},{title:h("lobby.club.nativeGame"),gameCategoryName:h("lobby.club.nativeGame"),value:"nativeGame",gameCategoryId:ut.Native,iconUrlActive:"/lobby_asset/common/common/club/club_icon_ysyx.png",iconUrlNormal:"/lobby_asset/common/web/club/club_icon_dtfl_wg_0.svg",onClick:()=>{var A;s.setSportTabKey(ut.Native),(A=m.value.wgList)!=null&&A[0].gameCategoryId&&yt(()=>{var L;d((L=m.value.wgList)==null?void 0:L[0].gameCategoryId)})},isHidden:!m.value.wgList.length}].filter((A,L)=>{var T;return(T=l.value)==null?void 0:T[L+1]}).filter(A=>!A.isHidden),...p]}),f=C(()=>{var h,p,y;return{[Os.WgDuel]:!!((h=m.value.clubGameList)!=null&&h.length),[Os.WgSelfProfit]:!!((p=m.value.wgList)!=null&&p.length),[Os.ThirdParty]:!!((y=m.value.thirdPartyList)!=null&&y.length)}});return{clubGameData:m,clubQuickLinkList:g,clubTabsDataStatus:f,getClub132TabList:h=>C(()=>{var p;return((p=m.value.originClubGameList)==null?void 0:p.map(y=>{var v,A;const b=h?c.value?(v=Kl[y.gameId])==null?void 0:v.zh:(A=Kl[y.gameId])==null?void 0:A.en:SM[y.gameId];return{...y,value:y.gameId,label:y.gameName,tabIcon:b}}))||[]})}};var nO=(e=>(e[e.CNY=1]="CNY",e[e.THB=9]="THB",e[e.PHP=13]="PHP",e[e.INR=15]="INR",e[e.AUD=16]="AUD",e[e.COP=18]="COP",e[e.TZS=19]="TZS",e[e.NGN=20]="NGN",e[e.ZMW=21]="ZMW",e[e.BRL=22]="BRL",e[e.MXN=23]="MXN",e[e.RUB=24]="RUB",e[e.EGP=25]="EGP",e[e.PEN=26]="PEN",e[e.PKR=28]="PKR",e[e.BDT=29]="BDT",e[e.UGX=30]="UGX",e[e.ETB=31]="ETB",e[e.ZAR=32]="ZAR",e[e.TRY=35]="TRY",e[e.KES=38]="KES",e[e.CLP=40]="CLP",e[e.SAR=69]="SAR",e[e.AED=70]="AED",e[e.KWD=71]="KWD",e[e.USDT=200]="USDT",e[e.VND=1e3]="VND",e[e.IDR=1001]="IDR",e))(nO||{}),Lc=(e=>(e[e.ALL=0]="ALL",e[e.LIVE=1]="LIVE",e[e.PARLAY=2]="PARLAY",e[e.TODAY=3]="TODAY",e[e.EARLY=4]="EARLY",e[e.TODAY_LIVE=6]="TODAY_LIVE",e[e.OUTRIGHT=7]="OUTRIGHT",e[e.TODAY_EARLY=9]="TODAY_EARLY",e[e.FOLLOW=-1]="FOLLOW",e[e.TOPIC=100]="TOPIC",e))(Lc||{}),a7=(e=>(e[e.OUTRIGHT=1]="OUTRIGHT",e[e.MATCH=2]="MATCH",e[e.E_SPORT=3]="E_SPORT",e[e.VIRTUAL=4]="VIRTUAL",e[e.E_SPORT_OUTRIGHT=5]="E_SPORT_OUTRIGHT",e))(a7||{}),r7=(e=>(e[e.BALL=1]="BALL",e[e.E_SPORT=2]="E_SPORT",e))(r7||{}
104),bt=(e=>(e[e.Soccer=1]="Soccer",e[e.IceHockey=2]="IceHockey",e[e.Basketball=3]="Basketball",e[e.Rugby=4]="Rugby",e[e.Tennis=5]="Tennis",e[e.AmericanFootball=6]="AmericanFootball",e[e.Baseball=7]="Baseball",e[e.Handball=8]="Handball",e[e.Floorball=10]="Floorball",e[e.Golf=12]="Golf",e[e.Volleyball=13]="Volleyball",e[e.Cricket=14]="Cricket",e[e.TableTennis=15]="TableTennis",e[e.Snooker=16]="Snooker",e[e.Futsal=17]="Futsal",e[e.MixedMartialArts=18]="MixedMartialArts",e[e.Boxing=19]="Boxing",e[e.Darts=20]="Darts",e[e.Bowls=21]="Bowls",e[e.WaterPolo=24]="WaterPolo",e[e.Cycling=25]="Cycling",e[e.Badminton=47]="Badminton",e[e.BeachVolleyball=51]="BeachVolleyball",e[e.Formula1=92]="Formula1",e[e.Specials=93]="Specials",e[e.StockCarRacing=94]="StockCarRacing",e[e.MotorcycleRacing=95]="MotorcycleRacing",e[e.Olympic=100]="Olympic",e[e.AsianGame=101]="AsianGame",e[e.Dota2=164]="Dota2",e[e.LOL=165]="LOL",e[e.EFootball=177]="EFootball",e[e.EBasketball=178]="EBasketball",e[e.CS_GO=179]="CS_GO",e[e.KOG=180]="KOG",e[e.VirtualSoccer=1001]="VirtualSoccer",e[e.VirtualHorse=1020]="VirtualHorse",e[e.VirtualGreyhounds=1021]="VirtualGreyhounds",e[e.VirtualSpeedway=1022]="VirtualSpeedway",e[e.VirtualMotorbike=1023]="VirtualMotorbike",e))(bt||{});const oO=()=>{const{t:e}=we();return[{sportType:bt.Soccer,icon:"/lobby_asset/common/common/selfoperated-games/wgty_sports_soccer.png",sportName:()=>e("lobby.wg_sport.game.soccer"),asideSvg:"icon_dtfl_soccer_0",stackedSvgs:["icon_dtfl_soccer0","icon_dtfl_soccer"],animation:ht.Roll},{sportType:bt.Basketball,icon:"/lobby_asset/common/common/selfoperated-games/wgty_sports_basketball.png",sportName:()=>e("lobby.wg_sport.game.basketball"),asideSvg:"icon_dtfl_basketball_0",stackedSvgs:["icon_dtfl_basketball0","icon_dtfl_basketball"],animation:ht.Roll},{sportType:bt.Volleyball,icon:"/lobby_asset/common/common/selfoperated-games/wgty_sports_volleyball.png",sportName:()=>e("lobby.wg_sport.game.volleyball"),asideSvg:"icon_dtfl_volleyball_0",stackedSvgs:["icon_dtfl_volleyball0","icon_dtfl_volleyball"],animation:ht.Roll},{sportType:bt.Cricket,icon:"/lobby_asset/common/common/selfoperated-games/wgty_sports_cricket.png",sportName:()=>e("lobby.wg_sport.game.cricket"),asideSvg:"icon_dtfl_cricket_0",stackedSvgs:["icon_dtfl_cricket0","icon_dtfl_cricket"],animation:ht.Shake},{sportType:bt.Tennis,icon:"/lobby_asset/common/common/selfoperated-games/wgty_sports_tennis.png",sportName:()=>e("lobby.wg_sport.game.tennis"),asideSvg:"icon_dtfl_tennis_0",stackedSvgs:["icon_dtfl_tennis0","icon_dtfl_tennis"],animation:ht.Roll},{sportType:bt.TableTennis,icon:"/lobby_asset/common/common/selfoperated-games/wgty_sports_table_tennis.png",sportName:()=>e("lobby.wg_sport.game.tableTennis"),asideSvg:"icon_dtfl_table_tennis_0",stackedSvgs:["icon_dtfl_table_tennis0","icon_dtfl_table_tennis"],animation:ht.Shake},{sportType:bt.Badminton,icon:"/lobby_asset/common/common/selfoperated-games/wgty_sports_badminton.png",sportName:()=>e("lobby.wg_sport.game.badminton"),asideSvg:"icon_dtfl_badminton_0",stackedSvgs:["icon_dtfl_badminton0","icon_dtfl_badminton"],animation:ht.Shake},{sportType:bt.Baseball,icon:"/lobby_asset/common/common/selfoperated-games/wgty_sports_baseball.png",sportName:()=>e("lobby.wg_sport.game.baseball"),asideSvg:"icon_dtfl_baseball_0",stackedSvgs:["icon_dtfl_baseball0","icon_dtfl_baseball"],animation:ht.Roll},{sportType:bt.EFootball,icon:"/lobby_asset/common/common/selfoperated-games/wgty_sports_soccer_gaming.png",sportName:()=>e("lobby.wg_sport.game.eFootball"),asideSvg:"icon_dtfl_soccer_gaming_0",stackedSvgs:["icon_dtfl_soccer_gaming0","icon_dtfl_soccer_gaming"],animation:ht.Shake},{sportType:bt.Boxing,icon:"/lobby_asset/common/common/selfoperated-games/wgty_sports_boxing.png",sportName:()=>e("lobby.wg_sport.game.boxing"),asideSvg:"icon_dtfl_boxing_0",stackedSvgs:["icon_dtfl_boxing0","icon_dtfl_boxing"],animation:ht.Shake},{sportType:bt.IceHockey,icon:"/lobby_asset/common/common/selfoperated-games/wgty_sports_puck.png",sportName:()=>e("lobby.wg_sport.game.iceHockey"),asideSvg:"icon_dtfl_puck_0",stackedSvgs:["icon_dtfl_puck0","icon_dtfl_puck"],animation:ht.Shake},{sportType:bt.Handball,icon:"/lobby_asset/common/common/selfoperated-games/wgty_sports_handball.png",sportName:()=>e("lobby.wg_sport.game.handball"),asideSvg:"icon_dtfl_handball_0",stackedSvgs:["icon_dtfl_handball0","icon_dtfl_handball"],animation:ht.Roll},{sportType:bt.Golf,icon:"/lobby_asset/common/common/selfoperated-games/wgty_sports_golf.png",sportName:()=>e("lobby.wg_sport.game.golf"),asideSvg:"icon_dtfl_golf_0",stackedSvgs:["icon_dtfl_golf0","icon_dtfl_golf"],animation:ht.Roll},{sportType:bt.Snooker,icon:"/lobby_asset/common/common/selfoperated-games/wgty_sports_billiards.png",sportName:()=>e("lobby.wg_sport.game.snooker"),asideSvg:"icon_dtfl_billiards_0",stackedSvgs:["icon_dtfl_billiards0","icon_dtfl_billiards"],animation:ht.Roll},{sportType:bt.MixedMartialArts,icon:"/lobby_asset/common/common/selfoperated-games/wgty_sports_fighting.png",sportName:()=>e("lobby.wg_sport.game.mixedMartialArts"),asideSvg:"icon_dtfl_fighting_0",stackedSvgs:["icon_dtfl_fighting0","icon_dtfl_fighting"],animation:ht.Shake},{sportType:bt.BeachVolleyball,icon:"/lobby_asset/common/common/selfoperated-games/wgty_sports_beach_volleyball.png",sportName:()=>e("lobby.wg_sport.game.beachVolleyball"),asideSvg:"icon_dtfl_beach_volleyball_0",stackedSvgs:["icon_dtfl_beach_volleyball0","icon_dtfl_beach_volleyball"],animation:ht.Roll},{sportType:bt.Rugby,icon:"/lobby_asset/common/common/selfoperated-games/wgty_sports_football.png",sportName:()=>e("lobby.wg_sport.game.rugby"),asideSvg:"icon_dtfl_football_0",stackedSvgs:["icon_dtfl_football0","icon_dtfl_football"],animation:ht.Shake},{sportType:bt.AmericanFootball,icon:"/lobby_asset/common/common/selfoperated-games/wgty_sports_usa_football.png",sportName:()=>e("lobby.wg_sport.game.americanFootball"),asideSvg:"icon_dtfl_usa_football_0",stackedSvgs:["icon_dtfl_usa_football0","icon_dtfl_usa_football"],animation:ht.Shake},{sportType:bt.Floorball,icon:"/lobby_asset/common/common/selfoperated-games/wgty_sports_floorball.png",sportName:()=>e("lobby.wg_sport.game.floorball"),asideSvg:"icon_dtfl_floorball_0",stackedSvgs:["icon_dtfl_floorball0","icon_dtfl_floorball"],animation:ht.Roll},{sportType:bt.Futsal,icon:"/lobby_asset/common/common/selfoperated-games/wgty_sports_futsal.png",sportName:()=>e("lobby.wg_sport.game.futsal"),asideSvg:"icon_dtfl_futsal_0",stackedSvgs:["icon_dtfl_futsal0","icon_dtfl_futsal"],animation:ht.Roll},{sportType:bt.Darts,icon:"/lobby_asset/common/common/selfoperated-games/wgty_sports_darts.png",sportName:()=>e("lobby.wg_sport.game.darts"),asideSvg:"icon_dtfl_darts_0",stackedSvgs:["icon_dtfl_darts0","icon_dtfl_darts"],animation:ht.Shake},{sportType:bt.Bowls,icon:"/lobby_asset/common/common/selfoperated-games/wgty_sports_bowls.png",sportName:()=>e("lobby.wg_sport.game.bowls"),asideSvg:"icon_dtfl_bowls_0",stackedSvgs:["icon_dtfl_bowls0","icon_dtfl_bowls"],animation:ht.Roll},{sportType:bt.WaterPolo,icon:"/lobby_asset/common/common/selfoperated-games/wgty_sports_waterpolo.png",sportName:()=>e("lobby.wg_sport.game.waterPolo"),asideSvg:"icon_dtfl_waterpolo_0",stackedSvgs:["icon_dtfl_waterpolo0","icon_dtfl_waterpolo"],animation:ht.Roll},{sportType:bt.Cycling,icon:"/lobby_asset/common/common/selfoperated-games/wgty_sports_cycling.png",sportName:()=>e("lobby.wg_sport.game.cycling"),asideSvg:"icon_dtfl_cycling_0",stackedSvgs:["icon_dtfl_cycling0","icon_dtfl_cycling"],animation:ht.Shake},{sportType:bt.Formula1,icon:"/lobby_asset/common/common/selfoperated-games/wgty_sports_formula.png",sportName:()=>e("lobby.wg_sport.game.formula1"),asideSvg:"icon_dtfl_formula_0",stackedSvgs:["icon_dtfl_formula0","icon_dtfl_formula"],animation:ht.Shake},{sportType:bt.Specials,icon:"/lobby_asset/common/common/selfoperated-games/wgty_sports_specials.png",sportName:()=>e("lobby.wg_sport.game.specials"),asideSvg:"icon_dtfl_specials_0",stackedSvgs:["icon_dtfl_specials0","icon_dtfl_specials"],animation:ht.Shake},{sportType:bt.StockCarRacing,icon:"/lobby_asset/common/common/selfoperated-games/wgty_sports_racing.png",sportName:()=>e("lobby.wg_sport.game.stockCarRacing"),asideSvg:"icon_dtfl_racing_0",stackedSvgs:["icon_dtfl_racing0","icon_dtfl_racing"],animation:ht.Shake},{sportType:bt.MotorcycleRacing,icon:"/lobby_asset/common/common/selfoperated-games/wgty_sports_motorcycle_racing.png",sportName:()=>e("lobby.wg_sport.game.motorcycleRacing"),asideSvg:"icon_dtfl_motorcycle_racing_0",stackedSvgs:["icon_dtfl_motorcycle_racing0","icon_dtfl_motorcycle_racing"],animation:ht.Shake},{sportType:bt.Olympic,icon:"/lobby_asset/common/common/selfoperated-games/wgty_sports_olympic.png",sportName:()=>e("lobby.wg_sport.game.olympic"),asideSvg:"icon_dtfl_olympic_0",stackedSvgs:["icon_dtfl_olympic0","icon_dtfl_olympic"],animation:ht.Shake},{sportType:bt.AsianGame,icon:"/lobby_asset/common/common/selfoperated-games/wgty_sports_asian_game.png",sportName:()=>e("lobby.wg_sport.game.asianGame"),asideSvg:"icon_dtfl_asian_game_0",stackedSvgs:["icon_dtfl_asian_game0","icon_dtfl_asian_game"],animation:ht.Shake},{sportType:bt.EBasketball,icon:"/lobby_asset/common/common/selfoperated-games/wgty_sports_basketball_gaming.png",sportName:()=>e("lobby.wg_sport.game.eBasketball"),asideSvg:"icon_dtfl_basketball_gaming_0",stackedSvgs:["icon_dtfl_basketball_gaming0","icon_dtfl_basketball_gaming"],animation:ht.Shake},{sportType:bt.LOL,icon:"/lobby_asset/common/common/selfoperated-games/wgty_sports_LOL.png",sportName:()=>e("lobby.wg_sport.game.lol"),asideSvg:"icon_dtfl_LOL_0",stackedSvgs:["icon_dtfl_LOL0","icon_dtfl_LOL"],animation:ht.Shake},{sportType:bt.KOG,icon:"/lobby_asset/common/common/selfoperated-games/wgty_sports_KOG.png",sportName:()=>e("lobby.wg_sport.game.kog"),asideSvg:"icon_dtfl_KOG_0",stackedSvgs:["icon_dtfl_KOG0","icon_dtfl_KOG"],animation:ht.Shake},{sportType:bt.Dota2,icon:"/lobby_asset/common/common/selfoperated-games/wgty_sports_dota2.png",sportName:()=>e("lobby.wg_sport.game.dota2"),asideSvg:"icon_dtfl_dota2_0",stackedSvgs:["icon_dtfl_dota20","icon_dtfl_dota2"],animation:ht.Shake},{sportType:bt.CS_GO,icon:"/lobby_asset/common/common/selfoperated-games/wgty_sports_CS_GO.png",sportName:()=>e("lobby.wg_sport.game.csgo"),asideSvg:"icon_dtfl_CS_GO_0",stackedSvgs:["icon_dtfl_CS_GO0","icon_dtfl_CS_GO"],animation:ht.Shake}]},oge=()=>q1(oO(),"sportType"),ly=ke("wg-sport",()=>{const e=J(),t=oO(),n=O(t[0].sportType),o=O(t),a=C(()=>{var g,f;return(g=e.userInfos)!=null&&g.currency?nO[(f=e.userInfos)==null?void 0:f.currency]:void 0}),r=O(Lc.TODAY),s=C(()=>r.value===Lc.PARLAY),i=C(()=>r.value===Lc.OUTRIGHT),c=C(()=>r.value===Lc.FOLLOW),l=C(()=>r.value===Lc.TOPIC),u=O(),d=O(),m=(g,f)=>{u.value=g,d.value=f};return fe([r,n],()=>{m()}),{sportKey:n,sportList:o,marketKey:r,sportCurrencyId:a,isParlay:s,isOutright:i,isFollow:c,isTopic:l,dateBeginTime:u,dateEndTime:d,setDateRange:m}},{persist:{storage:sessionStorage,paths:["sportKey","marketKey"]}}),_s=ke("wg-sport-status",()=>{const e=ly(),t=Ao(null);tO();const n=on(),o=ze(),a=O(!1),r=O(!1),s=C(()=>r.value||n.gameCategoriesInfoList.length>0&&!u.value||d.value),i=C(()=>{var A;const{homeLayoutInfos:b}=ue();return((A=b==null?void 0:b.commonConfig)==null?void 0:A.sportFlag)===Gm.OPEN&&u.value||dt.enable}),c=C(()=>{const b=x8();return n.gameCategoriesInfoList.length>0&&!u.value?[]:b.concat(e.sportList)}),l=C(()=>{const b=n.gameCategoriesInfoList,v=b==null?void 0:b.find(A=>A.gameCategoryId===Z.Sports&&A.isServerOpen);return v==null?void 0:v.list.find(A=>A.gameId===J8)}),u=C(()=>!!l.value),d=C(()=>{var b;return!!((b=l.value)!=null&&b.maintainStatus)}),m=C(()=>!0),g=C(()=>Ke.isAwlaysShowSportHome===!0?u.value:i.value),f=O(),_=b=>![ut.Casino,ut.Club,ut.Native,ut.ThirdParty].some(v=>v===b)&&b!==void 0,h=C(()=>g.value&&_(f.value)),p=b=>{const v=_(b);f.value=v?ut.Sport:ut.Casino,e.sportKey=v?b:e.sportList[0].sportType},y=async()=>{h.value&&(p(ut.Casino),await yt())};return fe([()=>n.gameCategoriesInfoList,t],()=>{var v,A,L;const b=(A=(v=n.gameCategoriesInfoList)==null?void 0:v.filter(T=>T.gameCategoryId===Z.ClubRoom))==null?void 0:A[0];(L=b==null?void 0:b.list)!=null&&L.length},{immediate:!0}),fe([()=>o.currency,t],()=>{},{immediate:!0}),fe(s,b=>{b&&y()}),fe([()=>n.gameCategoriesInfoList,f,()=>{var b;return(b=t.value)==null?void 0:b.clubGameSetting}],()=>{f.value===ut.Native&&dt.enable},{immediate:!0}),{toggleParlayBetingNeedJumpToSportHome:a,isMaintenance:r,isSportMaintenance:s,isWgSportShowHome:g,getWGSportIsOpen:u,getWGSportIsMaintenance:
104d,isClubSportVisible:m,homeSportList:c,homeSportCasinoTabsKey:f,isHomeTabOnSport:h,checkIfHomeTabOnSport:_,setSportTabToCasino:y,setSportTabKey:p}},{persist:{storage:sessionStorage,paths:["homeSportCasinoTabsKey"]}}),s7=Object.freeze(Object.defineProperty({__proto__:null,useWgSportStatusStore:_s},Symbol.toStringTag,{value:"Module"})),i7=()=>{const e=on(),t=J(),n=e.gameCategoriesExtLinkInfoList;return n.length===0?[{gameCategoryId:Z.Hot,display:!0,list:e.getHotGameList()}]:n.reduce((o,a)=>{const r=Dg(a),s=r.gameCategoryId===Z.Hot,i=r.gameCategoryId===Z.Demo;return s?o.push({...r,display:!0,list:e.getHotGameList()}):r.display&&!(i&&t.hasLoginedComponent)&&!r.isExLink&&o.push(r),o},[])},c7=()=>i7(),l7=e=>{var t;return(!e.listRowCount||!((t=e==null?void 0:e.list)!=null&&t.length)||!hh.includes(e.gameCategoryId))&&e.gameCategoryId!==Z.Hot};class Cf{constructor(t,n){x(this,"nextDutyChain",null);this.name=t,this.handleFun=n}static createChainByParamsList(t){return t.reduce((n,o)=>{const a=new Cf(...o);return n&&a.setNextDutyChain(n),a},null)}setNextDutyChain(t){return this.nextDutyChain=t,this}handle(...t){const n=this.handleFun(...t);if(n)return console.log(`ãDutyChainã ${this.name} handle success!`,t),n;if(this.nextDutyChain)return this.nextDutyChain.handle(...t);console.log("No ãdutyChainã can do this!",t)}}const uy={[Ue.SearchPage]:{box:{leftRightSpacing:"0.2rem",topBotSpacing:"0.14rem",listColumnCount:3},card:{size:"2.18rem",width:"2.18rem",height:"2.04rem"},spare:{oneTextCardHeight:"1.74rem",twoTextCardHeight:"2.04rem"}},[Ue.SubGameHasSide]:{box:{leftRightSpacing:"0.2rem",topBotSpacing:"0.14rem",listColumnCount:2},card:{size:"2.60rem",width:"2.60rem",height:"2.355rem"},spare:{oneTextCardHeight:"2.03rem",twoTextCardHeight:"2.355rem"}},[Ue.SubGameNoSide]:{box:{leftRightSpacing:"0.2rem",topBotSpacing:"0.14rem",listColumnCount:3},card:{size:"2.18rem",width:"2.18rem",height:"2.04rem"},spare:{oneTextCardHeight:"1.74rem",twoTextCardHeight:"2.04rem"}},[Ue.HomeHasSide]:{box:{leftRightSpacing:"0.2rem",topBotSpacing:"0.14rem",listColumnCount:2},card:{size:"2.60rem",width:"2.60rem",height:"2.355rem"},spare:{oneTextCardHeight:"2.03rem",twoTextCardHeight:"2.355rem"}},[Ue.HomeNoSide]:{box:{leftRightSpacing:"0.2rem",topBotSpacing:"0.14rem",listColumnCount:3},card:{size:"2.18rem",width:"2.18rem",height:"2.04rem"},spare:{oneTextCardHeight:"1.74rem",twoTextCardHeight:"2.04rem"}},[Ue.JackpotInner]:{box:{leftRightSpacing:"0.40rem",topBotSpacing:"0.20rem",listColumnCount:2},card:{size:"2.60rem",width:"2.60rem",height:"2.30rem"},spare:{oneTextCardHeight:"2.00rem",twoTextCardHeight:"2.30rem"}}},dy={[Ue.SearchPage]:{box:{leftRightSpacing:"0.3rem",topBotSpacing:"0.2rem",listColumnCount:1},card:{size:"6.6rem",width:"6.6rem",height:"2.574rem"},spare:{closeLazyLength:6}},[Ue.SubGameHasSide]:{box:{leftRightSpacing:"0.2rem",topBotSpacing:"0.2rem",listColumnCount:1},card:{size:"5.2rem",width:"5.2rem",height:"2.028rem"},spare:{closeLazyLength:5}},[Ue.SubGameNoSide]:{box:{leftRightSpacing:"0.3rem",topBotSpacing:"0.2rem",listColumnCount:1},card:{size:"6.6rem",width:"6.6rem",height:"2.574rem"},spare:{closeLazyLength:5}},[Ue.HomeHasSide]:{box:{leftRightSpacing:"0.2rem",topBotSpacing:"0.2rem",listColumnCount:1},card:{size:"5.2rem",width:"5.2rem",height:"2.028rem"}},[Ue.HomeNoSide]:{box:{leftRightSpacing:"0.3rem",topBotSpacing:"0.2rem",listColumnCount:1},card:{size:"6.6rem",width:"6.6rem",height:"2.574rem"}}},my={[Ue.SearchPage]:{box:{leftRightSpacing:"0.2rem",topBotSpacing:"0.14rem",listColumnCount:2},card:{size:"3.35rem",width:"3.35rem",height:"2.385rem"},spare:{oneTextCardHeight:"2.065rem",twoTextCardHeight:"2.385rem"}},[Ue.SubGameHasSide]:{box:{leftRightSpacing:"0.2rem",topBotSpacing:"0.14rem",listColumnCount:2},card:{size:"2.60rem",width:"2.60rem",height:"2.013rem"},spare:{oneTextCardHeight:"1.67rem",twoTextCardHeight:"2.013rem"}},[Ue.SubGameNoSide]:{box:{leftRightSpacing:"0.2rem",topBotSpacing:"0.14rem",listColumnCount:2},card:{size:"3.35rem",width:"3.35rem",height:"2.385rem"},spare:{oneTextCardHeight:"2.065rem",twoTextCardHeight:"2.385rem"}},[Ue.HomeHasSide]:{box:{leftRightSpacing:"0.14rem",topBotSpacing:"0.14rem",listColumnCount:2},card:{size:"2.60rem",width:"2.60rem",height:"2.013rem"},spare:{oneTextCardHeight:"1.7rem",twoTextCardHeight:"2.013rem"}},[Ue.HomeNoSide]:{box:{leftRightSpacing:"0.2rem",topBotSpacing:"0.14rem",listColumnCount:2},card:{size:"3.35rem",width:"3.35rem",height:"2.385rem"},spare:{oneTextCardHeight:"2.065rem",twoTextCardHeight:"2.385rem"}}},WS={box:{width:"5.2rem",leftRightSpacing:"0.2rem",topBotSpacing:"0.2rem",listColumnCount:1},card:{size:"5.2rem",width:"5.2rem",height:"2.028rem"}},Lp={box:{width:"6.6rem",leftRightSpacing:"0.3rem",topBotSpacing:"0.2rem",listColumnCount:1}
104,card:{size:"6.6rem",width:"6.6rem",height:"2.574rem"}},gy={[Ue.SearchPage]:Lp,[Ue.SubGameHasSide]:WS,[Ue.SubGameNoSide]:Lp,[Ue.HomeHasSide]:WS,[Ue.HomeNoSide]:Lp},wf={[Ue.SearchSubPage]:{box:{leftRightSpacing:"0.1rem",topBotSpacing:"0.14rem",listColumnCount:4},card:{size:"1.50rem",width:"1.70rem",height:"2.18rem"},spare:{oneTextCardHeight:"1.88rem",twoTextCardHeight:"2.18rem"}},[Ue.SearchPage]:{box:{leftRightSpacing:"0.1rem",topBotSpacing:"0.14rem",listColumnCount:4},card:{size:"1.50rem",width:"1.70rem",height:"2.18rem"},spare:{oneTextCardHeight:"1.88rem",twoTextCardHeight:"2.18rem"}},[Ue.SubGameHasSide]:{box:{leftRightSpacing:"0.1rem",topBotSpacing:"0.14rem",listColumnCount:3},card:{size:"1.50rem",width:"1.70rem",height:"2.18rem"},spare:{oneTextCardHeight:"1.88rem",twoTextCardHeight:"2.18rem"}},[Ue.SubGameNoSide]:{box:{leftRightSpacing:"0.1rem",topBotSpacing:"0.14rem",listColumnCount:4},card:{size:"1.50rem",width:"1.70rem",height:"2.18rem"},spare:{oneTextCardHeight:"1.88rem",twoTextCardHeight:"2.18rem"}},[Ue.HomeHasSide]:{box:{leftRightSpacing:"0.1rem",topBotSpacing:"0.14rem",listColumnCount:3},card:{size:"1.50rem",width:"1.70rem",height:"2.18rem"},spare:{oneTextCardHeight:"1.88rem",twoTextCardHeight:"2.18rem"}},[Ue.HomeNoSide]:{box:{leftRightSpacing:"0.1rem",topBotSpacing:"0.14rem",listColumnCount:4},card:{size:"1.50rem",width:"1.70rem",height:"2.18rem"},spare:{oneTextCardHeight:"1.88rem",twoTextCardHeight:"2.18rem"}},[Ue.JackpotInner]:{box:{leftRightSpacing:"0.1rem",topBotSpacing:"0.20rem",listColumnCount:4},card:{size:"1.50rem",width:"1.70rem",height:"2.18rem"},spare:{oneTextCardHeight:"1.88rem",twoTextCardHeight:"2.18rem"}}},If={[Ue.SearchSubPage]:{box:{leftRightSpacing:"0.12rem",topBotSpacing:"0.14rem",listColumnCount:4},card:{size:"1.54rem",width:"1.7rem",height:"2.22rem"},spare:{oneTextCardHeight:"1.92rem",twoTextCardHeight:"2.22rem"}},[Ue.SearchPage]:{box:{leftRightSpacing:"0.12rem",topBotSpacing:"0.14rem",listColumnCount:4},card:{size:"1.54rem",width:"1.7rem",height:"2.22rem"},spare:{oneTextCardHeight:"1.92rem",twoTextCardHeight:"2.22rem"}},[Ue.SubGameHasSide]:{box:{leftRightSpacing:"0.15rem",topBotSpacing:"0.14rem",listColumnCount:3},card:{size:"1.54rem",width:"1.7rem",height:"2.22rem"},spare:{oneTextCardHeight:"1.92rem",twoTextCardHeight:"2.22rem"}},[Ue.SubGameNoSide]:{box:{leftRightSpacing:"0.12rem",topBotSpacing:"0.14rem",listColumnCount:4},card:{size:"1.54rem",width:"1.7rem",height:"2.22rem"},spare:{oneTextCardHeight:"1.92rem",twoTextCardHeight:"2.22rem"}},[Ue.HomeHasSide]:{box:{leftRightSpacing:"0.13rem",topBotSpacing:"0.14rem",listColumnCount:3},card:{size:"1.54rem",width:"1.7rem",height:"2.22rem"},spare:{oneTextCardHeight:"1.92rem",twoTextCardHeight:"2.22rem"}},[Ue.HomeNoSide]:{box:{leftRightSpacing:"0.10rem",topBotSpacing:"0.14rem",listColumnCount:4},card:{size:"1.54rem",width:"1.7rem",height:"2.22rem"},spare:{oneTextCardHeight:"1.92rem",twoTextCardHeight:"2.22rem"}},[Ue.JackpotInner]:{box:{leftRightSpacing:"0.10rem",topBotSpacing:"0.20rem",listColumnCount:4},card:{size:"1.54rem",width:"1.7rem",height:"2.22rem"},spare:{oneTextCardHeight:"1.92rem",twoTextCardHeight:"2.22rem"}}},fy={[Ue.SearchSubPage]:{box:{leftRightSpacing:"0.15rem",topBotSpacing:"0.14rem",listColumnCount:4},card:{size:"1.3rem",width:"1.7rem",height:"2.02rem"},spare:{closeLazyLength:4*7,oneTextCardHeight:"1.70rem",twoTextCardHeight:"2.02rem"}},[Ue.SearchPage]:{box:{leftRightSpacing:"0.15rem",topBotSpacing:"0.14rem",listColumnCount:4},card:{size:"1.3rem",width:"1.7rem",height:"2.02rem"},spare:{closeLazyLength:4*7,oneTextCardHeight:"1.70rem",twoTextCardHeight:"2.02rem"}},[Ue.SubGameHasSide]:{box:{leftRightSpacing:"0.15rem",topBotSpacing:"0.14rem",listColumnCount:3},card:{size:"1.3rem",width:"1.7rem",height:"2.02rem"},spare:{closeLazyLength:3*7,oneTextCardHeight:"1.70rem",twoTextCardHeight:"2.02rem"}},[Ue.SubGameNoSide]:{box:{leftRightSpacing:"0.15rem",topBotSpacing:"0.14rem",listColumnCount:4},card:{size:"1.3rem",width:"1.7rem",height:"2.02rem"},spare:{closeLazyLength:4*7,oneTextCardHeight:"1.70rem",twoTextCardHeight:"2.02rem"}},[Ue.HomeHasSide]:{box:{leftRightSpacing:"0.15rem",topBotSpacing:"0.14rem",listColumnCount:3},card:{size:"1.3rem",width:"1.7rem",height:"2.02rem"},spare:{oneTextCardHeight:"1.70rem",twoTextCardHeight:"2.02rem"}},[Ue.HomeNoSide]:{box:{leftRightSpacing:"0.15rem",topBotSpacing:"0.14rem",listColumnCount:4},card:{size:"1.3rem",width:"1.7rem",height:"2.02rem"},spare:{oneTextCardHeight:"1.70rem",twoTextCardHeight:"2.02rem"}},[Ue.JackpotInner]:{box:{leftRightSpacing:"0.1rem",topBotSpacing:"0.20rem",listColumnCount:4},card:{size:"1.3rem",width:"1.7rem",height:"2.02rem"},spare:{oneTextCardHeight:"1.70rem",twoTextCardHeight:"2.02rem"}}},py={[Ue.SearchSubPage]:{box:{leftRightSpacing:"0.10rem",topBotSpacing:"0.14rem",listColumnCount:4},card:{size:"1.50rem",width:"1.70rem",height:"2.68rem"},spare:{oneTextCardHeight:"2.38rem",twoTextCardHeight:"2.68rem"}},[Ue.SearchPage]:{box:{leftRightSpacing:"0.10rem",topBotSpacing:"0.14rem",listColumnCount:4},card:{size:"1.50rem",width:"1.70rem",height:"2.68rem"},spare:{oneTextCardHeight:"2.38rem",twoTextCardHeight:"2.68rem"}},[Ue.SubGameHasSide]:{box:{leftRightSpacing:"0.15rem",topBotSpacing:"0.14rem",listColumnCount:3},card:{size:"1.50rem",width:"1.70rem",height:"2.68rem"},spare:{oneTextCardHeight:"2.38rem",twoTextCardHeight:"2.68rem"}},[Ue.SubGameNoSide]:{box:{leftRightSpacing:"0.10rem",topBotSpacing:"0.14rem",listColumnCount:4},card:{size:"1.50rem",width:"1.70rem",height:"2.68rem"},spare:{oneTextCardHeight:"2.38rem",twoTextCardHeight:"2.68rem"}},[Ue.HomeHasSide]:{box:{leftRightSpacing:"0.15rem",topBotSpacing:"0.14rem",listColumnCount:3},card:{size:"1.50rem",width:"1.70rem",height:"2.68rem"},spare:{oneTextCardHeight:"2.38rem",twoTextCardHeight:"2.68rem"}},[Ue.HomeNoSide]:{box:{leftRightSpacing:"0.10rem",topBotSpacing:"0.14rem",listColumnCount:4},card:{size:"1.50rem",width:"1.70rem",height:"2.68rem"},spare:{oneTextCardHeight:"2.38rem",twoTextCardHeight:"2.68rem"}},[Ue.JackpotInner]:{box:{leftRightSpacing:"0.10rem",topBotSpacing:"0.20rem",listColumnCount:4},card:{size:"1.50rem",width:"1.70rem",height:"2.68rem"},spare:{oneTextCardHeight:"2.38rem",twoTextCardHeight:"2.68rem"}}},Af={[Ue.SearchSubPage]:{box:{leftRightSpacing:"0.3rem",topBotSpacing:"0.3rem",listColumnCount:3}
104,card:{size:"2.1rem",width:"2.1rem",height:"2.793rem"},spare:{closeLazyLength:15}},[Ue.SearchPage]:{box:{leftRightSpacing:"0.3rem",topBotSpacing:"0.3rem",listColumnCount:3},card:{size:"2.1rem",width:"2.1rem",height:"2.793rem"},spare:{closeLazyLength:15}},[Ue.SubGameHasSide]:{box:{width:"5.2rem",leftRightSpacing:"0.2rem",topBotSpacing:"0.2rem",listColumnCount:3},card:{size:"1.6rem",width:"1.6rem",height:"2.128rem"},spare:{closeLazyLength:18}},[Ue.SubGameNoSide]:{box:{width:"6.9rem",leftRightSpacing:"0.3rem",topBotSpacing:"0.3rem",listColumnCount:3},card:{size:"2.1rem",width:"2.1rem",height:"2.793rem"},spare:{closeLazyLength:15}},[Ue.HomeHasSide]:{box:{width:"5.2rem",leftRightSpacing:"0.2rem",topBotSpacing:"0.2rem",listColumnCount:3},card:{size:"1.6rem",width:"1.6rem",height:"2.128rem"}},[Ue.HomeNoSide]:{box:{width:"6.9rem",leftRightSpacing:"0.3rem",topBotSpacing:"0.3rem",listColumnCount:3},card:{size:"2.1rem",width:"2.1rem",height:"2.793rem"}},[Ue.JackpotInner]:{box:{leftRightSpacing:"0.15rem",topBotSpacing:"0.20rem",listColumnCount:4},card:{size:"1.6rem",width:"1.6rem",height:"2.13rem"}}},u7=[["chain1-1-1",e=>{if(e.isSubGameType&&e.iconStyle===he.VerticalMask)return Af}],["chain1-1-2",e=>{if(e.isSubGameType&&e.iconStyle===he.Square)return fy}],["chain1-1-3",e=>{if(e.isSubGameType&&e.iconStyle===he.Vertical)return py}],["chain1-1-4",e=>{if(e.isSubGameType&&e.iconStyle===he.SquareRightAngle)return If}],["chain1-1-5",e=>{if(e.isSubGameType&&e.iconStyle===he.Rounded)return wf}],["chain1-1-6",e=>{if(e.isSubGameType&&e.iconStyle===he.Horizontal)return uy}]],d7=[["chain1-0-1",e=>{if(!e.isSubGameType&&e.platformIconStyle===Qt.EuropeanAmerican)return Af}],["chain1-0-2",e=>{if(!e.isSubGameType&&e.platformIconStyle===Qt.LeftRight1)return dy}],["chain1-0-3",e=>{if(!e.isSubGameType&&e.platformIconStyle===Qt.LeftRight2)return gy}],["chain1-0-4",e=>{if(!e.isSubGameType&&e.platformIconStyle===Qt.Rounded)return wf}],["chain1-0-5",e=>{if(!e.isSubGameType&&e.platformIconStyle===Qt.Square)return If}],["chain1-0-6",e=>{if(!e.isSubGameType&&e.platformIconStyle===Qt.Rectangle)return my}]],m7=[...u7,...d7],g7=()=>{var a,r;const e=Cf.createChainByParamsList(m7),t=(a=ue().homeLayoutInfos)==null?void 0:a.gameIcon,n=(r=ue().homeLayoutInfos)==null?void 0:r.platformIcon;return{getListConfigMapper:s=>e.handle({iconStyle:t,platformIconStyle:n,isSubGameType:s})}},{Hot:f7,Chess:p7,Fish:h7,Electronic:_7,Real:b7,Sports:y7,Cockfighting:v7,Gaming:S7,Lottery:C7,BlockChain:w7}=Z,I7=[f7,p7,h7,_7,b7,y7,v7,S7,C7,w7],A7={1:1.68,2:1.68,4:1.68,5:1.68,7:2.3,8:1.68,22:1.68,28:1.68,29:1.68,32:1.68,58:1.68,59:1.68,60:1.68,61:1.68,63:1.68,72:1.68,83:1.68,104:1.68,109:1.68,114:1.68,115:1.68,118:1.68,119:1.68,122:2.33,144:1.68},L7={[he.Square]:1.92,[he.VerticalMask]:2.32,[he.Vertical]:2.32,[he.Rounded]:1.92,[he.SquareRightAngle]:1.92,[he.Horizontal]:1.51},T7={[he.Square]:2,[he.VerticalMask]:2.24,[he.Vertical]:2.24,[he.Rounded]:2,[he.SquareRightAngle]:2,[he.Horizontal]:2},R7={[he.Square]:3.23,[he.VerticalMask]:3.23,[he.Vertical]:3.1,[he.Rounded]:2.82,[he.SquareRightAngle]:2.82,[he.Horizontal]:2.82},O7={[he.Square]:1.89,[he.VerticalMask]:2.29,[he.Vertical]:2.29,[he.Rounded]:1.89,[he.SquareRightAngle]:1.89,[he.Horizontal]:1.48},P7={[he.Square]:1,[he.VerticalMask]:1.12,[he.Vertical]:1.12,[he.Rounded]:1,[he.SquareRightAngle]:1,[he.Horizontal]:1},D7={[he.Square]:1.8,[he.VerticalMask]:2.04,[he.Vertical]:2.04,[he.Rounded]:1.8,[he.SquareRightAngle]:1.8,[he.Horizontal]:1.78},M7={[he.Square]:.44,[he.VerticalMask]:.44,[he.Vertical]:.44,[he.Rounded]:.44,[he.SquareRightAngle]:.44,[he.Horizontal]:.44},N7={[In.STYLE1]:1,[In.STYLE2]:.8,[In.STYLE3]:.6,[In.STYLE4]:.52,[In.STYLE5]:.4,[In.STYLE6]:.448,[In.STYLE7]:.03},k7=[ca.BANNER,ca.MARQUEUE,ca.FOOTER,ca.NAV],VS={[In.STYLE1]:L7,[In.STYLE2]:T7,[In.STYLE3]:R7,[In.STYLE4]:O7,[In.STYLE5]:P7,[In.STYLE6]:D7,[In.STYLE7]:M7},aO=()=>{var a,r,s,i;const e=(s=(r=(a=Ze().brandLogoInfos)==null?void 0:a.winnerCarousels)==null?void 0:r.find(c=>c.b===ze().currency))==null?void 0:s.d,t=e&&VS[e]?e:In.STYLE1,n=(i=ue().homeLayoutInfos)==null?void 0:i.gameIcon,o=VS[t][n];return o?o+N7[t]:0},B7=(e,t)=>e>=1e10?ia(9999,t)+"M+":e>=1e8?ia(e/1e6,t)+"M":e>=1e5?ia(e/1e3,t)+"K":ia(e,t),H7=(e,t)=>e>=1e8?ia(99,t)+"M+":e>=1e6?ia(e/1e6,t)+"M":e>=1e4?ia(e/1e3,t)+"K":ia(e,t),x7=()=>{const e=C(()=>{var i,c;return(c=(i=Ze().brandLogoInfos)==null?void 0:i.winnerCarousels)==null?void 0:c.find(l=>l.b===ze().currency)}),t=C(()=>{var i;return(i=e.value)==null?void 0:i.c}),n=C(()=>{var i;return(i=e.value)==null?void 0:i.d}),o=C(()=>{var i;return(i=e.value)==null?void 0:i.e}),a=C(()=>{var i,c;return(c=(i=e.value)==null?void 0:i.f)==null?void 0:c.bonusPoolId}),r=C(()=>{var c,l,u;const i={};return(u=(l=(c=e.value)==null?void 0:c.f)==null?void 0:l.fontTypeface)==null||u.forEach(d=>{i[d.type]=d.textColor}),i}),s=C(()=>{const{hallRecords:i,winThreshold:c,winTimes:l,winTimesMax:u}=ef().winnerData,d=i==null?void 0:i.flatMap(m=>{var T,S,I;const g=Number(m.winOriginalData.g)||0,f=g>1e5?0:1,_=g>=c,h=Number((T=m.winOriginalData)==null?void 0:T.f)||0,p=h>0?g/h:0,y=p>=l&&(!u||p<=u),b={account:(S=m.winOriginalData)==null?void 0:S.a,netProfit:g,gameId:(I=m.winOriginalData)==null?void 0:I.d},v=[In.STYLE1,In.STYLE2,In.STYLE3].includes(n.value);let A=H7(p,0),L=B7(g,f);return v&&(A=String(Math.round(p)),L=ia(g,1)),_&&y?[{...m,winnerInfo:[{...b,mag:!0,netProfit:A}]},{...m,winnerInfo:[{...b,mag:!1,netProfit:L}]}]:y?{...m,winnerInfo:[{...b,mag:!0,netProfit:A}]}:{...m,winnerInfo:[{...b,mag:!1,netProfit:L}]}}).filter(m=>!!m.gameId);return n.value===In.STYLE3?d.reduce((m,g)=>{const f=m.find(_=>_.gameId===g.gameId&&_.winnerInfo.length<2);return f?f.winnerInfo.push(g.winnerInfo[0]):m.push(g),m},[]):d});return{winnerConfig:e,winnerPosition:t,winnerStyle:n,winnerBackgroun
104d:o,winnerList:s,winnerFontColor:r,winnerShowJackpotId:a}},rO=()=>{const{winnerShowJackpotId:e,winnerStyle:t}=x7(),n=(()=>{let l=[],u=!1;return()=>{if(l.length&&u)return l;const{health:d,response:m}=Pt("ossGetVirtualBonusPoolData");return d&&(l=df(m==null?void 0:m.data.data)),u=d,l}})(),o=(l,u)=>{const d=n();if(!l)return d.filter(g=>g.showType===Es.Independent)||[];const m=CT.get(l);return d.filter(g=>{const f=JSON.parse(g.showPosition||"{}");return l==="platformTop"?f.type===m&&g.showType!==Es.onPlatform&&f.value&&u===Number(f.value):f.type===m})},a=A7[nn().skinType],r=l=>{const u=l.length;let d=a,m=!1;u>=1&&(d=a*u+.2*(u-1),m=!0);const g=l.some(f=>String(f.id)===String(e.value));if(t.value===In.STYLE7&&g){const f=aO();d+=f+.04}return{height:d,isOpen:m}},s=l=>{if(l==="popular"&&on().shouldHideHotCategory)return r([]);let u=o(l);const d=u.some(m=>m.showType===Es.Carousel);return(!l||d)&&u.length>0&&(u=u.slice(0,1)),r(u)};return{jackpotModulesConfigMapper:{...(()=>{const l={},u=(g,f)=>{const _=g.filter(p=>p.jackpotType===os.Normal),{height:h}=r(_);l[$t.jackpotInPlatformTop+f]={name:$t.jackpotInPlatformTop+f,isAsync:!0,height:h,isOpen:()=>{const p=o("platformTop",f).filter(y=>y.jackpotType===os.Normal);return r(p).isOpen},marginTop:.2,marginBottom:0}},d={},m=g=>{d[$t.jackpotInPlatformRight+g]={name:$t.jackpotInPlatformRight+g,isAsync:!0,height:.68,isOpen:()=>o("platformTop",g).filter(_=>_.jackpotType===os.Mini).length>0,marginTop:0,marginBottom:0,isUnoccupied:!0}};return I7.forEach(g=>{const f=o("platformTop",g);u(f,g),m(g)}),{...l,...d}})(),[$t.jackpotInBannerTop]:{height:s("banner").height,name:$t.jackpotInBannerTop,isAsync:!0,isOpen:()=>s("banner").isOpen,marginTop:.2,marginBottom:0},[$t.jackpotInMarqueeTop]:{height:s("marquee").height,name:$t.jackpotInMarqueeTop,isAsync:!0,isOpen:()=>s("marquee").isOpen,marginTop:.2,marginBottom:0},[$t.jackpotInMiddleMenu]:{height:s("middleMenu").height,name:$t.jackpotInMiddleMenu,isAsync:!0,isOpen:()=>s("middleMenu").isOpen,marginTop:.2,marginBottom:0},[$t.jackpotInPopular]:{height:s("popular").height,name:$t.jackpotInPopular,isAsync:!0,isOpen:()=>s("popular").isOpen,marginTop:.2,marginBottom:0},[$t.jackpotInDefault]:{height:s().height,name:$t.jackpotInDefault,isAsync:!0,isOpen:()=>s().isOpen,marginTop:.2,marginBottom:0}}}},__={[Ws.SMALL]:.9,[Ws.MIDDLE]:1.34,[Ws.BIG]:1},sO=[Le.HOME_TOP_BELOW,Le.BANNER_BELOW,Le.ANNOUNCEMENT_BELOW,Le.THIRD_PARTY_GAMES_BELOW,Le.HOME_BOTTOM_ABOVE,Le.HOME_BOTTOM,Le.HOT_GAMES_BELOW,Le.THIRD_PARTY_GAMES_ABOVE,Le.HOT_GAMES_ABOVE];lt.marketInHeaderBelow+"",Le.HOME_TOP_BELOW,lt.marketInBannerBelow+"",Le.BANNER_BELOW,lt.marketInMarqueeBelow+"",Le.ANNOUNCEMENT_BELOW,lt.marketInGameBelow+"",Le.THIRD_PARTY_GAMES_BELOW,lt.marketInHomeBottomAbove+"",Le.HOME_BOTTOM_ABOVE,lt.marketInHomeBottom+"",Le.HOME_BOTTOM,lt.marketInHotGamesBelow+"",Le.HOT_GAMES_BELOW,lt.marketInThirdPartyGamesAbove+"",Le.THIRD_PARTY_GAMES_ABOVE,lt.marketInThirdPartyGamesBelow+"",Le.THIRD_PARTY_GAMES_BELOW,lt.marketInHotGamesAbove+"",Le.HOT_GAMES_ABOVE;const E7=()=>{const{formatHomeList:e,homePublicityList:t}=nd(),n={default:!!(t!=null&&t.length)};return sO.forEach(o=>{let a=!1;o in e&&(a=!0),n[o]=a}),n},U7=()=>{const{homePublicityList:e}=nd(),t={};return e.forEach(n=>{let o=__[Ws.SMALL];sO.includes(n.showPosition)&&(o=__[n.imgSize]),t[n.showPosition]=o}),t};let Tp;const iO=()=>(Tp||(Tp=(()=>{const t={},n=U7(),o=({name:a,position:r})=>{var s;t[a]={name:a,isAsync:!0,height:(s=n[r])!=null?s:__[Ws.SMALL],marginTop:.2,marginBottom:.2,isOpen:()=>E7()[r]}};return o({name:lt.marketInHeaderBelow,position:Le.HOME_TOP_BELOW}),o({name:lt.marketInBannerBelow,position:Le.BANNER_BELOW}),o({name:lt.marketInMarqueeBelow,position:Le.ANNOUNCEMENT_BELOW}),o({name:lt.marketInGameBelow,position:Le.THIRD_PARTY_GAMES_BELOW}),o({name:lt.marketInHomeBottomAbove,position:Le.HOME_BOTTOM_ABOVE}),o({name:lt.marketInHomeBottom,position:Le.HOME_BOTTOM}),o({name:lt.marketInHotGamesBelow,position:Le.HOT_GAMES_BELOW}),o({name:lt.marketInThirdPartyGamesAbove,position:Le.THIRD_PARTY_GAMES_ABOVE}),o({name:lt.marketInHotGamesAbove,position:Le.HOT_GAMES_ABOVE}),o({name:lt.marketInThirdPartyGamesBelow,position:Le.THIRD_PARTY_GAMES_BELOW}),t})()),{marketingModulesConfigMapper:Tp}),hy="Single",G7={[_n.UniversalCard]:{listOutHeight:.12+.35,indicatorHeight:.1+.12},[_n.CenterMagnify]:{listOutHeight:.12+.35,indicatorHeight:0},[_n.SlideLeftLarge]:{listOutHeight:.35+.12+.3,indicatorHeight:.16+.1},[_n.NavigationPopover]:{listOutHeight:.87,indicatorHeight:0},[_n.SlideBottomName]:{listOutHeight:.35+.12,indicatorHeight:.22},[hy]:{listOutHeight:.66,indicatorHeight:0}};_n.UniversalCard+"",_n.SlideLeftLarge+"",_n.SlideBottomName+"";const F7=[Wa.Top,Wa.Single,Wa.Bottom],{Chess:W7,Fish:V7,Electronic:$7,Real:Y7,Sports:q7,Cockfighting:z7,Gaming:j7,Lottery:K7,BlockChain:Q7}=Z,cO=[W7,V7,$7,Y7,q7,z7,j7,K7,Q7],Wd=e=>{var r;const n=(r=ue().homeLayoutInfos)==null?void 0:r.specialConfig,o=n==null?void 0:n.pos,a={default:!!(e!=null&&e.length)};
104return F7.forEach(s=>{let i=!1;o===s&&(e!=null&&e.length)&&(i=!0),a[s]=i}),a},$S={[_n.UniversalCard]:{[he.VerticalMask]:{cardHeight:2.13,listColumnCount:5,topBotSpacing:.2,slidesPerView:4},[he.Square]:{cardHeight:2.02,oneTextCardHeight:1.7,twoTextCardHeight:2.02,listColumnCount:5,topBotSpacing:.14,slidesPerView:4},[he.Vertical]:{cardHeight:2.67,oneTextCardHeight:2.37,twoTextCardHeight:2.67,listColumnCount:5,topBotSpacing:.2,slidesPerView:4},[he.SquareRightAngle]:{cardHeight:2.21,oneTextCardHeight:1.91,twoTextCardHeight:2.21,listColumnCount:5,topBotSpacing:.2,slidesPerView:4},[he.Rounded]:{cardHeight:2.17,oneTextCardHeight:1.87,twoTextCardHeight:2.17,listColumnCount:5,topBotSpacing:.2,slidesPerView:4},[he.Horizontal]:{cardHeight:2.17,oneTextCardHeight:1.87,twoTextCardHeight:2.17,listColumnCount:3,topBotSpacing:.2,slidesPerView:2.5}},[_n.CenterMagnify]:{[he.VerticalMask]:{cardHeight:2.24,listColumnCount:5,topBotSpacing:.3},[he.Square]:{cardHeight:2.61,oneTextCardHeight:2.18,twoTextCardHeight:2.61,listColumnCount:5,topBotSpacing:.14},[he.Vertical]:{cardHeight:3.05,oneTextCardHeight:2.71,twoTextCardHeight:3.05,listColumnCount:5,topBotSpacing:.3},[he.SquareRightAngle]:{cardHeight:2.46,oneTextCardHeight:2.13,twoTextCardHeight:2.46,listColumnCount:5,topBotSpacing:.14},[he.Rounded]:{cardHeight:2.48,oneTextCardHeight:2.14,twoTextCardHeight:2.48,listColumnCount:5,topBotSpacing:.14},[he.Horizontal]:{cardHeight:2.2,oneTextCardHeight:1.85,twoTextCardHeight:2.2,listColumnCount:5,topBotSpacing:.14}},[_n.SlideLeftLarge]:{[he.VerticalMask]:{cardHeight:1.68,listColumnCount:3,topBotSpacing:.27,pageCardHeight:3.63,slidesPerView:1},[he.Square]:{cardHeight:1.51,oneTextCardHeight:1.51,twoTextCardHeight:1.81,listColumnCount:3,topBotSpacing:.13,pageCardHeight:3.16,slidesPerView:1},[he.Vertical]:{cardHeight:1.99,oneTextCardHeight:1.99,twoTextCardHeight:2.29,listColumnCount:3,topBotSpacing:.08,pageCardHeight:4.14,slidesPerView:1},[he.SquareRightAngle]:{cardHeight:1.51,oneTextCardHeight:1.51,twoTextCardHeight:1.81,listColumnCount:3,topBotSpacing:.13,pageCardHeight:3.16,slidesPerView:1},[he.Rounded]:{cardHeight:1.48,oneTextCardHeight:1.48,twoTextCardHeight:1.78,listColumnCount:3,topBotSpacing:.16,pageCardHeight:3.16,slidesPerView:1},[he.Horizontal]:{cardHeight:1.29,oneTextCardHeight:1.29,twoTextCardHeight:1.59,listColumnCount:2,topBotSpacing:.06,pageCardHeight:2.72,slidesPerView:1}},[_n.NavigationPopover]:{[he.VerticalMask]:{cardHeight:3.7,oneTextCardHeight:3.38,twoTextCardHeight:3.7,listColumnCount:3,topBotSpacing:0,slidesPerView:1},[he.Square]:{cardHeight:3,oneTextCardHeight:2.68,twoTextCardHeight:3,listColumnCount:3,topBotSpacing:0,slidesPerView:1},[he.Vertical]:{cardHeight:3.7,oneTextCardHeight:3.38,twoTextCardHeight:3.7,listColumnCount:3,topBotSpacing:0,slidesPerView:1},[he.SquareRightAngle]:{cardHeight:3,oneTextCardHeight:2.68,twoTextCardHeight:3,listColumnCount:3,topBotSpacing:0,slidesPerView:1},[he.Rounded]:{cardHeight:3,oneTextCardHeight:2.68,twoTextCardHeight:3,listColumnCount:3,topBotSpacing:0,slidesPerView:1},[he.Horizontal]:{cardHeight:2.99,oneTextCardHeight:2.67,twoTextCardHeight:2.99,listColumnCount:2,topBotSpacing:0,slidesPerView:1}},[_n.SlideBottomName]:{[he.VerticalMask]:{cardHeight:1.9,oneTextCardHeight:1.64,twoTextCardHeight:1.9,listColumnCount:4,topBotSpacing:.18,slidesPerView:1},[he.Square]:{cardHeight:1.9,oneTextCardHeight:1.64,twoTextCardHeight:1.9,listColumnCount:4,topBotSpacing:.18,slidesPerView:1},[he.Vertical]:{cardHeight:1.9,oneTextCardHeight:1.64,twoTextCardHeight:1.9,listColumnCount:4,topBotSpacing:.18,slidesPerView:1},[he.SquareRightAngle]:{cardHeight:1.9,oneTextCardHeight:1.64,twoTextCardHeight:1.9,listColumnCount:4,topBotSpacing:.18,slidesPerView:1},[he.Rounded]:{cardHeight:1.9,oneTextCardHeight:1.64,twoTextCardHeight:1.9,listColumnCount:4,topBotSpacing:.18,slidesPerView:1},[he.Horizontal]:{cardHeight:1.9,oneTextCardHeight:1.64,twoTextCardHeight:1.9,listColumnCount:4,topBotSpacing:.18,slidesPerView:1}},[hy]:{[he.VerticalMask]:{cardHeight:2,listColumnCount:4,topBotSpacing:.2,slidesPerView:4},[he.Square]:{cardHeight:2.02,oneTextCardHeight:1.7,twoTextCardHeight:2.02,listColumnCount:4,topBotSpacing:.14,slidesPerView:4},[he.Vertical]:{cardHeight:2.67,oneTextCardHeight:2.38,twoTextCardHeight:2.68,listColumnCount:4,topBotSpacing:.2,slidesPerView:4},[he.SquareRightAngle]:{cardHeight:2.22,oneTextCardHeight:1.92,twoTextCardHeight:2.21,listColumnCount:4,topBotSpacing:.2,slidesPerView:4},[he.Rounded]:{cardHeight:2.17,oneTextCardHeight:1.87,twoTextCardHeight:2.17,listColumnCount:4,topBotSpacing:.2,slidesPerView:4},[he.Horizontal]:{cardHeight:2,oneTextCardHeight:1.7,twoTextCardHeight:2,listColumnCount:3,topBotSpacing:.2,slidesPerView:3}}},X7=(e,t)=>{var c;const n=J7(e),o=t!=null?t:G7;let a=o;if(eK(o))a=o[(c=n.specialStyle)!=null?c:_n.UniversalCard];else if(a.height)return a.height;const{dynamicHeight:r,listOutHeight:s,indicatorHeight:i}=Z7({...n,specialList:e,fixedHeightConfig:a});return r+s+i},Z7=({entry:e,specialStyle:t,specialList:n,fixedHeightConfig:o})=>{var d,m,g,f;
104let i=(g=((m=(d=ue().systemInfos)==null?void 0:d.loginGameRestrictions)==null?void 0:m.loginGameNameDisplayOneLineSwitch)===jt.OPEN?e.oneTextCardHeight:e.twoTextCardHeight)!=null?g:e.cardHeight;const c=o.indicatorHeight||0,l=o.listOutHeight||0;let u=!!e.slidesPerView&&n.length>e.slidesPerView;switch(t){case _n.SlideLeftLarge:i=(f=e.pageCardHeight)!=null?f:i,u=n.length>e.listColumnCount*2+1;break;case _n.NavigationPopover:i=e.cardHeight;break;case _n.SlideBottomName:{const _=n.length>e.listColumnCount?2:1;i=i*_+e.topBotSpacing*(_-1),u=n.length>e.listColumnCount*2;break}}return{dynamicHeight:i,listOutHeight:l,indicatorHeight:u?c:0}},J7=e=>{var i,c,l,u;const t=ue(),n=(i=t.homeLayoutInfos)==null?void 0:i.specialConfig;let o=(n==null?void 0:n.pos)===Wa.Single?hy:(n==null?void 0:n.style)||_n.UniversalCard;const a=(c=t.homeLayoutInfos)==null?void 0:c.gameIcon,r=(l=$S[_n.UniversalCard])==null?void 0:l[a];return o===_n.CenterMagnify&&e.length<=Number(r==null?void 0:r.slidesPerView)&&(o=_n.UniversalCard),{entry:(u=$S[o])==null?void 0:u[a],specialStyle:o}},eK=e=>Object.prototype.toString.call(e)!=="[object Object]"?!1:!!Object.values(_n).some(n=>Reflect.has(e,n)),lO=e=>{var l,u,d;const{health:t,response:n}=Pt("apiGetSpecialGameList"),o=Pt("apiGetSpecialGameListTotal");let a=[],r={};t&&n&&(a=(n==null?void 0:n.data.data)||[]),o.health&&o.response&&(r=((u=(l=o==null?void 0:o.response)==null?void 0:l.data)==null?void 0:u.data)||{});const s=(d=X7(a,e))!=null?d:0;return{specialModulesConfig:{...(()=>{const m={},g=s;return cO.forEach(f=>{var _;m[Yn.specialInGameSingle+f]={name:Yn.specialInGameSingle+f,isAsync:!0,height:g,marginTop:.2,marginBottom:0,isOpen:Number((_=r[f])!=null?_:0)>0&&Wd(a)[Wa.Single]}}),m})(),[Yn.specialInDefault]:{name:Yn.specialInDefault,height:s,isOpen:()=>Wd(a).default,isAsync:!0},[Yn.specialInGameTop]:{name:Yn.specialInGameTop,height:s,isOpen:()=>Wd(a)[Wa.Top],isAsync:!0},[Yn.specialInGameBottom]:{name:Yn.specialInGameBottom,height:s,isOpen:()=>Wd(a)[Wa.Bottom],isAsync:!0}}}},tK=()=>{var l;const{getListConfigMapper:e}=g7(),{jackpotModulesConfigMapper:t}=rO(),{marketingModulesConfigMapper:n}=iO(),{specialModulesConfig:o}=lO(),a=c7(),r=b8.reduce((u,d)=>{const m=a.find(g=>g.gameCategoryId===d);return!m||l7(m)||(u[d]={name:XR[d],height:L8({...R8(d),gameCategory:m,listConfig:e(d===Z.Hot)[Ue.HomeNoSide]}),marginTop:0,marginBottom:.2,isOpen:!!m,children:y8({cateId:d,jackConfMap:t,specConfMap:o})}),u},{}),s=r[Z.Hot];s&&((l=t[$t.jackpotInPopular])!=null&&l.isOpen&&(s.height=s.height+.2),s.children=[{...n[lt.marketInHotGamesAbove],marginTop:0,marginBottom:.2},{...t[$t.jackpotInPopular],marginTop:0,marginBottom:0},...s.children||[],{...n[lt.marketInHotGamesBelow],marginTop:.2,marginBottom:0},{...n[lt.marketInThirdPartyGamesAbove],marginTop:.2,marginBottom:0}]);const i=a.map(u=>r[u.gameCategoryId]).filter(Boolean);return{gameExhibitionModulesConfig:{name:Un.gameExhibition,height:1.08,marginTop:.2,marginBottom:.2,isOpen:!0,children:i}}},nK=()=>({gameSportModuleConfig:{name:iy,height:()=>_s().isWgSportShowHome?1.74:0,isAsync:!1,isOpen:!0}}),oK=()=>{const e=Vj[nn().skinType];return{syncHeaderConfig:{name:jR,isAsync:!1,height:e,marginTop:0,isOpen:!0}}},aK=(...e)=>{var o;const t=(o=ue().siteInfos)==null?void 0:o.skinTypeValue,n={};return e.forEach(a=>{const r=`${cy}${a.join(",")}`;n[r]={name:r,isAsync:!0,height:2.85,isOpen:()=>a.includes(t)}}),{homeVideoConfigMapper:n}},uO=ke("homeLiveStream",()=>{const e=Ze(),t=C(()=>{var r;const a=(r=e.brandLogoInfos)==null?void 0:r.live;return!a||a.entry!==1?null:a}),n=C(()=>{var a,r,s;return(s=(r=(a=e.brandLogoInfos)==null?void 0:a.live)==null?void 0:r.play)!=null?s:""});return{liveStreamConfig:t,livePlay:n,getLiveStreamByPlace:a=>C(()=>{const r=t.value;return!r||Number(r.position)!==a?null:{url:r.url,urlType:r.urlType,styleType:r.layout||ry.Style2,liveImg:r.liveImg||""}})}}),rK=e=>{const t=uO(),n={};for(const o of e){const a=t.getLiveStreamByPlace(o);n[o]={name:`${YR}_${o}`,isAsync:!0,isOpen:()=>!1,height:()=>{var s,i,c;const r=(i=(s=a.value)==null?void 0:s.styleType)!=null?i:ry.Style2;return(c=sy[r])!=null?c:Uj},marginTop:.2,marginBottom:.2}}return n},sK=e=>{const t={height:e},{height:n=.5,marginTop:o}=t;return{marqueueConfig:{name:qR,height:n,marginTop:o}}},iK=13,cK=()=>{var r,s,i,c;const e=ue();if(((s=(r=e.homeLayoutInfos)==null?void 0:r.commonConfig)==null?void 0:s.sportFlag)===Gm.OPEN||((c=(i=e.homeLayoutInfos)==null?void 0:i.commonConfig)==null?void 0:c.sportEventC
104onfig)!==Gm.OPEN)return!1;if(!ze().isSiteDefaultCurrency)return!0;const{health:t,data:n}=Pt("apiGetGameCateExtLinkList");if(!t||!n)return!1;const a=Mt.parseGameCategoriesExtLinkInfoList(n).find(l=>l.gameCategoryId===Z.Sports&&l.isServerOpen);return a==null?void 0:a.list.some(l=>l.platformId===iK&&!l.maintainStatus)},lK=()=>({recommendMatchsConfig:{name:zR,isAsync:!0,height:2.365,marginTop:.2,marginBottom:0,isOpen:cK()}}),uK=()=>{const{isHiddenByTgMiniApp:e}=yf(),t=()=>{var g,f;const o=(g=Ze().brandLogoInfos)!=null?g:{},{bootInstallationSwitch:a,combinationSwitch:r}=o;if(a===db.CLOSED||!Xb(r)||Ut().isHiddenAppEnter||e.value)return!1;const{bootInstallationStyle:s,bootInstallationStyles:i}=o;if(!(i!=null&&i.length?i==null?void 0:i.includes(`${qr.TOP}`):`${s}`==`${qr.TOP}`))return!1;const l=zo(),u=((f=l.bootInstallation)==null?void 0:f.forceInstall)===$g.OPENED,d=l.bootInstallationStatusShowTimes[qr.TOP],m=l.bootInstallationStatus[qr.TOP];return!(!u&&d&&!m)};return{topDownloadModulesConfig:{name:KR,height:$j[nn().skinType],marginTop:0,isOpen:()=>t()}}},Bl=()=>{var l,u;const{health:e,response:t}=Pt("ossGetWinnerCarouselData");let n=[];e&&t&&(n=t==null?void 0:t.data.data.hallRecords);const o=(u=(l=Ze().brandLogoInfos)==null?void 0:l.winnerCarousels)==null?void 0:u.find(d=>d.b===ze().siteDefaultCurrency),a=o==null?void 0:o.c,r=o==null?void 0:o.d,s=r!==void 0&&r in bA,i=!!n.length,c={default:i&&s};
104return k7.forEach(d=>{c[d]=a===d&&i&&s}),c},dK=()=>{const e=aO();return{winnerModulesConfig:{[Gn.winnerInDefault]:{name:Gn.winnerInDefault,height:e,isOpen:()=>Bl().default,isAsync:!0},[Gn.winnerInBannerTop]:{name:Gn.winnerInBannerTop,height:e,isOpen:()=>Bl()[ca.BANNER],isAsync:!0},[Gn.winnerInMarqueeTop]:{name:Gn.winnerInMarqueeTop,height:e,isOpen:()=>Bl()[ca.MARQUEUE],isAsync:!0},[Gn.winnerInMiddleMenuTop]:{name:Gn.winnerInMiddleMenuTop,height:e,isOpen:()=>Bl()[ca.NAV],isAsync:!0},[Gn.winnerInFooterTop]:{name:Gn.winnerInFooterTop,height:e,isOpen:()=>Bl()[ca.FOOTER],isAsync:!0,isForceLazy:!0,marginTop:.2,marginBottom:.2}}}},mK=()=>{const{topDownloadModulesConfig:e}=uK(),{syncHeaderConfig:t}=oK(),{bindNoWalletModulesConfig:n}=n8(),{winnerModulesConfig:o}=dK(),{bannerModulesConfig:a}=Kj(),{jackpotModulesConfigMapper:r}=rO(),{gameExhibitionModulesConfig:s}=tK(),{marketingModulesConfigMapper:i}=iO(),{marqueueConfig:c}=sK(.5),{homeVideoConfigMapper:l}=aK([91]),{recommendMatchsConfig:u}=lK(),{gameSportModuleConfig:d}=nK(),{asyncFooterConfig:m}=jj(),{specialModulesConfig:g}=lO(),f=rK([na.BannerTop,na.GameTop,na.FooterTop]);return d.children=[s],m.children=[{...i[lt.marketInHomeBottom],marginTop:.2,marginBottom:0}],{modulesConfig:[e,t,n,i[lt.marketInHeaderBelow],f[na.BannerTop],r[$t.jackpotInBannerTop],o[Gn.winnerInBannerTop],a,i[lt.marketInBannerBelow],r[$t.jackpotInMarqueeTop],o[Gn.winnerInMarqueeTop],c,i[lt.marketInMarqueeBelow],l[`${cy}${[91].join(",")}`],f[na.GameTop],r[$t.jackpotInMiddleMenu],o[Gn.winnerInMiddleMenuTop],g[Yn.specialInGameTop],u,d,i[lt.marketInGameBelow],f[na.FooterTop],i[lt.marketInHomeBottomAbove],{...o[Gn.winnerInFooterTop],marginTop:.2,marginBottom:.2},g[Yn.specialInGameBottom],m]}},dO={offsetTop:[Number,String]},gK={...dO,withTabsGap:String},[fK]=_e("pages-async-base-sport"),pK=gn({loader:()=>V(()=>import("./BaseSport.DeJ6F9Ir.js"),__vite__mapDeps([0,1,3,4,5,6,7,8,9,28]))}),hK=le({name:fK,setup(){const e=_s();return ll(()=>e.isHomeTabOnSport)(()=>w(pK,null,null))}}),_K=ke("wg-sport-count-data",()=>{const e=O({});return{countMap:e,getSportTotalCount:n=>{var a,r,s;let o=0;for(const i of Object.values(e.value))o+=(s=(r=(a=i==null?void 0:i.sslMap)==null?void 0:a[n])==null?void 0:r.c)!=null?s:0;return o}}}),mO=Symbol("tab_register"),gO=Symbol("tab_status"),[bK]=Wt("tabs"),_y=Symbol(bK),fO=Symbol("tabs_internal"),pO=Symbol("tabs_scrollspy"),hO=Symbol("tabs_route"),by=Symbol("tabs_sticky"),_O=Symbol("tabs_resize"),ic=Symbol("tabs_nav_strategy");function bs(){const e=He(fO);if(!e)throw new Error("[Tabs] suit component must be used inside <TabsCore>");return e}function bO(e,t){const n=He(mO),{id:o,parent:a,active:r,getName:s}=n,i=O(!1),c=()=>{i.value=!0,a.props.lazyRender&&yt(()=>{a.onRendered(s())})};fe(r,d=>{d&&!i.value&&c()},{immediate:!0}),mt(gO,r);const l=d=>d.type===z1?!1:d.type===gt?Array.isArray(d.children)&&d.children.some(m=>ao(m)&&l(m)):!0;return{id:o,parent:a,active:r,inited:i,getContent:()=>{var m;if(e.content)return e.content();const d=(m=t.default)==null?void 0:m.call(t);return d!=null&&d.some(l)?d:void 0}}}const[,yK]=Wt("tab"),vK=le({name:"TabPanelNormal",props:{content:{type:Function}},setup(e,{slots:t}){const{id:n,parent:o,active:a,inited:r,getContent:s}=bO(e,t);return()=>{const{scrollspy:i,lazyRender:c}
104=o.props,l=i||a.value,u=o.props.tabVShowMode?!0:a.value,m=r.value||i||!c?s():null;if(m)return u?vr(w("div",{id:n,class:yK("panel")},[m]),[[is,l]]):null}}}),b_=null,po=[Number,String],pr={type:Boolean,default:!0},y_={type:Boolean,default:!1},age=e=>({type:e,required:!0}),rge=e=>({type:Array,default:()=>e}),sge=e=>({type:Number,default:e}),oa=e=>({type:po,default:e}),Io=e=>({type:String,default:e}),SK={loop:pr,width:po,height:po,vertical:Boolean,autoplay:oa(0),duration:oa(500),touchable:pr,lazyRender:Boolean,initialSwipe:oa(0),indicatorColor:String,showIndicators:pr,stopPropagation:pr,itemStayTimes:{type:Array,default:()=>[]},autoHeight:Boolean,spaceBetween:{type:Number,default:0},dynamicMainBullets:{type:Number,default:null},useInBanner:Boolean,slidesPerView:oa(1),centeredSlides:Boolean,effect:{type:String,default:"slide"},coverflowEffect:{type:Object,default:()=>({rotate:0,depth:300,modifier:1,slideShadows:!1,perspective:1200})},rtlGesture:Boolean},yO={to:[Object],replace:Boolean};function CK({to:e,replace:t,$router:n}){e&&n&&n[t?"replace":"push"](e)}function vO(){const e=gs().proxy;return()=>CK(e)}const wK=e=>e===window,YS=(e,t)=>({top:0,left:0,right:e,bottom:t,width:e,height:t}),es=e=>{const t=ua(e);
104if(wK(t)){const n=t.innerWidth,o=t.innerHeight;return YS(n,o)}return t!=null&&t.getBoundingClientRect?t.getBoundingClientRect():YS(0,0)};function ige(e){const t=U_(e),n=document.createElement("div");return document.body.appendChild(n),{instance:t.mount(n),unmount(){t.unmount(),document.body.removeChild(n)}}}function cge(){const e=vt({show:!1}),t=a=>{e.show=a},n=a=>{Object.assign(e,a,{transitionAppear:!0}),t(!0)},o=()=>t(!1);return Da({open:n,close:o,toggle:t}),{open:n,close:o,state:e,toggle:t}}function IK(e){const t=[],n=o=>{Array.isArray(o)&&o.forEach(a=>{var r,s,i,c;ao(a)&&(t.push(a),(r=a.component)!=null&&r.subTree&&(t.push((s=a.component)==null?void 0:s.subTree),n((c=(i=a.component)==null?void 0:i.subTree)==null?void 0:c.children)),a.children&&n(a.children))})};return n(e),t}const qS=(e,t)=>{const n=e.indexOf(t);return n===-1?e.findIndex(o=>t.key!==void 0&&t.key!==null&&o.type===t.type&&o.key===t.key):n};function AK(e,t,n){var r;const o=IK((r=e==null?void 0:e.subTree)==null?void 0:r.children);n.sort((s,i)=>qS(o,s.vnode)-qS(o,i.vnode));const a=n.map(s=>s.proxy);t.sort((s,i)=>{const c=a.indexOf(s),l=a.indexOf(i);return c-l})}function SO(e){const t=vt([]),n=vt([]),o=gs();return{children:t,linkChildren:r=>{mt(e,Object.assign({link:c=>{c.proxy&&(n.push(c),t.push(c.proxy),AK(o,t,n))},unlink:c=>{const l=n.indexOf(c);t.splice(l,1),n.splice(l,1)},children:t,internalChildren:n},r))}}}const cc="hairline",lge=`${cc}--top`,uge=`${cc}--left`,dge=`${cc}--right`,mge=`${cc}--bottom`,LK=`${cc}--surround`,CO=`${cc}--top-bottom`,gge=`${cc}-unset--top-bottom`,zS=5,TK=10;function RK(e,t){return e>t?"horizontal":t>e?"vertical":""}function OK(e=TK){const t=O(0),n=O(0),o=O(0),a=O(0),r=O(0),s=O(0),i=O(""),c=O(!0),l=()=>i.value==="vertical",u=()=>i.value==="horizontal",d=()=>{o.value=0,a.value=0,r.value=0,s.value=0,i.value="",c.value=!0};return{move:f=>{const _=f.touches[0];o.value=(_.clientX<0?0:_.clientX)-t.value,a.value=_.clientY-n.value,r.value=Math.abs(o.value),s.value=Math.abs(a.value);const h=e;(!i.value||r.value<h&&s.value<h)&&(i.value=RK(r.value,s.value)),c.value&&(r.value>zS||s.value>zS)&&(c.value=!1)},start:f=>{d(),t.value=f.touches[0].clientX,n.value=f.touches[0].clientY},reset:d,startX:t,startY:n,deltaX:o,deltaY:a,offsetX:r,offsetY:s,direction:i,isVertical:l,isHorizontal:u,isTap:c}}const PK=Symbol();function wO(e){const t=He(PK,null);t&&fe(t,n=>{n&&e()})}let DK=0;function IO(){const e=gs(),{name:t="unknown"}=(e==null?void 0:e.type)||{};return`${t}-${++DK}`}function fge(){const e=O([]),t=[];return Pw(()=>{e.value=[]}),[e,o=>(t[o]||(t[o]=a=>{e.value[o]=a}),t[o])]}function AO(e){const t=He(e,null);if(t){const n=gs(),{link:o,unlink:a,internalChildren:r}=t;o(n),Kn(()=>a(n));const s=C(()=>r.indexOf(n));return{parent:t,index:s}}return{parent:null,index:O(-1)}}function MK(e,t,n={}){if(!da)return;const{eventName:o="click"}=n;Xs(o,r=>{(Array.isArray(e)?e:[e]).every(c=>{const l=ua(c);return l&&!l.contains(r.target)})&&t(r)},{target:document,...n})}function NK(e){const{autoplay:t,count:n,activeIndicator:o,swipeItemStayTimes:a,next:r}=e;let s;const i=O(!1),c=()=>{clearTimeout(s),i.value=!0},l=()=>{var f;i.value&&(i.value=!1),c();const m=(f=a.value)==null?void 0:f[o.value],g=typeof m=="number"&&Number.isFinite(m)&&m>0?m:+t();g>0&&n.value>1&&(s=setTimeout(()=>{r(),Bc(()=>{l()})},g))};return{autoplay:l,stopAutoplay:c,pause:()=>{c()},resume:()=>{l()},isAutoplayPaused:i}}function kK(e){const{props:t,state:n,childrenCount:o,touch:a,swipeItemHeight:r}=e,s=o,i=C(()=>t.dynamicMainBullets>0?Math.min(t.dynamicMainBullets,s.value):s.value),c=C(()=>Math.max(1,Math.floor(+t.slidesPerView))),l=C(()=>t.effect),u=C(()=>t.coverflowEffect),d=C(()=>t.effect==="coverflow"),m=C(()=>{const L=n[t.vertical?"height":"width"];return c.value>1?(L-t.spaceBetween*(c.value-1))/c.value:L}),g=C(()=>t.vertical?a.deltaY.value:a.deltaX.value),f=C(()=>{if(n.rect){const L=t.vertical?n.rect.height:n.rect.width;return c.value>1?L-(m.value+t.spaceBetween)*s.value:L+t.spaceBetween-(m.value+t.spaceBetween)*s.value}return 0}),_=C(()=>m.value?c.value>1?Math.max(0,s.value-c.value):Math.ceil(Math.abs(f.value)/m.value):s.value),h=C(()=>s.value*(m.value+t.spaceBetween)),p=C(()=>(n.active+s.value)%s.value),y=C(()=>{const L=t.vertical?"vertical":"horizontal";return a.direction.value===L}),b=C(()=>document.documentElement.getAttribute("dir")==="rtl"),v=C(()=>{const L={transitionDuration:`${n.swiping?0:t.duration}ms`};if(d.value)L.transitionTimingFunction="cubic-bezier(0.215, 0.61, 0.355, 1)",L.position="relative";else{const T=(!t.vertical&&b.value?-n.offset:+n.offset).toFixed(2),S=t.vertical?0:T,I=t.vertical?T:0;L.transform=`translate3d(${S}px, ${I}
104px, 0)`}if(m.value){const T=t.vertical?"height":"width",S=t.vertical?"width":"height";d.value?L[T]="100%":L[T]=`${h.value}px`,L[S]=t[S]?`${t[S]}px`:""}return t.autoHeight&&(L.height=r.value>0?`${r.value}px`:"100%"),L}),A=C(()=>{const L=t.itemStayTimes;return Array.isArray(L)&&L.length?L:[]});return{count:s,dynamicMainBullets:i,slidesPerView:c,effect:l,coverflowEffectComputed:u,isCoverflow:d,size:m,delta:g,minOffset:f,maxCount:_,trackSize:h,activeIndicator:p,isCorrectDirection:y,isRtl:b,trackStyle:v,swipeItemStayTimes:A}}function Lf(e){const t="scrollTop"in e?e.scrollTop:e.pageYOffset;return Math.max(t,0)}function jS(e,t){"scrollTop"in e?e.scrollTop=t:e.scrollTo(e.scrollX,t)}function BK(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function HK(e){jS(window,e),jS(document.body,e)}function wg(e,t){if(e===window)return 0;const n=t?Lf(t):BK();return es(e).top+n}n5();const xK=e=>e.stopPropagation();function v_(e,t){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),t&&xK(e)}function Vu(e){const t=ua(e);if(!t)return!1;if(typeof t.checkVisibility=="function")return!t.checkVisibility();let n=t;for(;n;){const o=window.getComputedStyle(n).display;if(o==="none"||n===t&&o==="contents")return!0;n=n.parentElement}return!1}function EK(e){const t=window.getComputedStyle(e);return t.transform!==""&&t.transform!=="none"||t.perspective!==""&&t.perspective!=="none"||["transform","perspective","filter"].some(n=>(t.willChange||"").includes(n))}function UK(e){let t=e.parentElement;for(;t;){if(t&&t.tagName!=="HTML"&&t.tagName!=="BODY"&&EK(t))return t;t=t.parentElement}return null}function GK(e){const{props:t,state:n,touch:o,track:a,emit:r,computed:s,methods:i}=e,{activeIndicator:c,delta:l,isCorrectDirection:u,isRtl:d,size:m,count:g}=s,{move:f,stopAutoplay:_,correctPosition:h,autoplay:p}=i;let y,b=!1,v=0,A=0,L=0,T=0,S="",I=!1,R=!1,D=!1;const M=N=>!t.vertical&&t.rtlGesture&&d.value?-N:N;return{onTouchStart:N=>{!t.touchable||N.touches.length>1||(o.start(N),b=!1,y=Date.now(),_(),h())},onTouchMove:N=>{if(t.touchable&&n.swiping&&(o.move(N),u.value)){const $=M(l.value);!t.loop&&(n.active===0&&$>0||n.active===g.value-1&&$<0)||(v_(N,t.stopPropagation),f({offset:$}),b||(r("dragStart",{index:c.value}),b=!0))}},onTouchEnd:()=>{if(!t.touchable||!n.swiping)return;const N=M(l.value),$=Date.now()-y,X=N/$;if((Math.abs(X)>.25||Math.abs(N)>m.value/2)&&u.value){const te=-Math[N>0?"ceil":"floor"](N/m.value);f({pace:te,emitChange:!0})}else l.value&&f({pace:0});b=!1,n.swiping=!1,r("dragEnd",{index:c.value}),p()},onPointerDown:N=>{t.touchable&&("button"in N&&N.button>0||"pointerType"in N&&N.pointerType!=="mouse"||(v=N.clientX,A=N.clientY,L=0,T=0,S="",I=!0,D=!1,b=!1,R=!1,y=Date.now(),_(),o.reset(),n.swiping=!0,h()))},onPointerMove:N=>{if("pointerType"in N&&N.pointerType!=="mouse"||!t.touchable||!n.swiping||!I)return;L=N.clientX-v,T=N.clientY-A;const $=Math.abs(L),X=Math.abs(T);S||($>=10||X>=10)&&($>X?S="horizontal":X>$?S="vertical":S=t.vertical?"vertical":"horizontal");const j=t.vertical?"vertical":"horizontal";if(S===j){const K=M(t.vertical?T:L);if(!(!t.loop&&(n.active===0&&K>0||n.active===g.value-1&&K<0))){if(N.preventDefault(),!D&&"pointerId"in N&&a.value)try{a.value.setPointerCapture(N.pointerId),D=!0}catch(ae){}f({offset:K}),b||(r("dragStart",{index:c.value}),b=!0,R=!0)}}},onPointerEnd:N=>{if("pointerType"in N&&N.pointerType!=="mouse"||!I)return;if(D&&"pointerId"in N&&a.value)try{a.value.releasePointerCapture(N.pointerId),D=!1}catch(ae){D=!1}if(I=!1,!t.touchable||!n.swiping)return;const $=M(t.vertical?T:L),X=Date.now()-y,j=$/X,te=Math.abs(j)>.25||Math.abs($)>m.value/2,K=t.vertical?"vertical":"horizontal";if(te&&S===K){const ae=-Math[$>0?"ceil":"floor"]($/m.value);f({pace:ae,emitChange:!0})}else $&&f({pace:0});R&&N.target===a.value&&(N.preventDefault(),N.stopPropagation()),b=!1,R=!1,n.swiping=!1,r("dragEnd",{index:c.value}),p()},onMouseUp:N=>{R&&(N.preventDefault(),N.stopPropagation())}}}function FK(e){const{props:t,state:n,initialized:o,root:a,track:r,computed:s,windowSize:i,methods:c}=e,{count:l}=s,{initialize:u,resize:d,autoplay:m,stopAutoplay:g,onTouchMove:f,onMouseUp:_}=c;fe(o,y=>{y&&m()}),fe(()=>
104t.initialSwipe,y=>u(+y)),fe(l,()=>u(n.active)),fe(()=>t.autoplay,m),fe([i.width,i.height,()=>t.width,()=>t.height],d),fe(Wq(),y=>{y==="visible"?m():g()}),Gt(()=>{u()}),qa(()=>u(n.active)),wO(()=>u(n.active)),za(()=>{g()}),fa(()=>{g()}),Xs("touchmove",f,{target:r}),Xs("click",_,{target:r,capture:!0});const h=Qc(a),p=Hi(a);fe(()=>[p.width.value],()=>{u(n.active)}),fe(()=>h.value,y=>{y&&u(n.active)})}function WK(e){const{props:t,state:n,computed:o,children:a,emit:r,methods:s}=e,{count:i,maxCount:c,minOffset:l,trackSize:u,size:d,activeIndicator:m,isCoverflow:g,isRtl:f,slidesPerView:_}=o,{getAutoHeight:h}=s,p=A=>{const{active:L}=n;return A?t.loop?L+A:eS(L+A,0,c.value):L},y=(A,L=0)=>{let T=A*(d.value+t.spaceBetween);t.loop||(T=Math.min(T,-l.value));let S=L-T;if(t.centeredSlides&&n.rect){const R=((t.vertical?n.rect.height:n.rect.width)-d.value)/2;S+=R}return t.loop||t.centeredSlides||(S=eS(S,l.value,0)),S},b=({pace:A=0,offset:L=0,emitChange:T})=>{var D,M;if(i.value<=1)return;const{active:S}=n,I=p(A),R=g.value?0:y(I,L);if(!g.value){const B=f.value&&t.useInBanner?-1:1;if(t.loop){const E=_.value||1;if(a[0]&&R!==l.value){const Y=R<l.value;for(let H=0;H<E&&H<i.value;H++)(D=a[H])==null||D.setOffset(Y?u.value*B:0)}if(a[i.value-1]&&R!==0){const Y=R>0;for(let H=0;H<E&&H<i.value;H++){const F=i.value-1-H;(M=a[F])==null||M.setOffset(Y?-u.value*B:0)}}}}n.active=I,n.offset=R,T&&I!==S&&r("change",m.value),t.autoHeight&&h()};return{move:b,correctPosition:()=>{n.swiping=!0,n.active<=-1?b({pace:i.value}):n.active>=i.value&&b({pace:-i.value})},getTargetActive:p,getTargetOffset:y}}function VK(e){const{root:t,props:n,state:o,initialized:a,touch:r,computed:s,children:i,emit:c,methods:l,callbacks:u}=e,{count:d,isCoverflow:m}=s,{move:g,correctPosition:f,getTargetOffset:_}=l,h=(A=+n.initialSwipe)=>{if(!t.value)return;const L=()=>{var T,S,I;if(!Vu(t)){const R={width:t.value.offsetWidth,height:t.value.offsetHeight};o.rect=R,o.width=+((T=n.width)!=null?T:R.width),o.height=+((S=n.height)!=null?S:R.height)}d.value&&(A=Math.min(d.value-1,A),A===-1&&(A=d.value-1)),o.active=A,o.swiping=!0,o.offset=m.value?0:_(A),i.forEach(R=>{R.setOffset(0)}),a.value||(c("init",A),a.value=!0),(I=u==null?void 0:u.onInitialized)==null||I.call(u)};Vu(t)?yt().then(L):L()};return{initialize:h,resize:()=>h(o.active),prev:()=>{f(),r.reset(),Bc(()=>{o.swiping=!1,g({pace:-1,emitChange:!0})})},next:()=>{f(),r.reset(),Bc(()=>{o.swiping=!1,g({pace:1,emitChange:!0})})},swipeTo:(A,L={})=>{f(),r.reset(),Bc(()=>{let T;n.loop&&A===d.value?T=o.active===0?0:A:T=A%d.value,L.immediate?Bc(()=>{o.swiping=!1}):o.swiping=!1,g({pace:T-o.active,emitChange:!0})})}}}const LO=50,$K=375,YK=1200,S_=300,qK=50,zK=.904,jK=1.4,KK=12,KS=(e,t,n)=>e===void 0||t===0?1:e/(t*n);function QK(e){var M,B,E,Y,H,F,Q,G;const{diff:t,config:n,parentSize:o,containerRect:a,vertical:r,duration:s}=e,i={},c=(M=n.modifier)!=null?M:1,l=t===0,u=n.sideSlideWidth!==void 0||n.sideSlideHeight!==void 0,d=!l&&u?((B=n.depth)!=null?B:S_)*c:Math.abs(t)*((E=n.depth)!=null?E:S_)*c,m=(Y=n.perspective)!=null?Y:YK,g=d>0?m/(m+d):1,f=(H=n.activeSlideWidth)!=null?H:o*zK,_=(F=n.activeSlideHeight)!=null?F:0,h=KS(l?void 0:n.sideSlideWidth,f,g),p=KS(l?void 0:n.sideSlideHeight,_,g);i[r?"height":"width"]=`${f}px`,_>0&&(i[r?"width":"height"]=`${_}px`),i.position="absolute",i.top="0",i.left="0",Math.abs(t)>1&&(i.display="none");const y=((Q=n.rotate)!=null?Q:qK)*t*c,v=((G=n.stretch)!=null?G:0)*c*t,A=a?((r?a.height:a.width)-f)/2:0;let L=0;_>0&&a&&(L=((r?a.width:a.height)-_)/2);const T=A+v,S=r?L:T,I=r?T:L,R=d?-d:0,D=[];if(D.push(`translate3d(${S}px, ${I}px, ${R}px)`),y&&D.push(`rotateY(${y}deg)`),(h!==1||p!==1)&&(p!==1&&_>0?D.push(`scale(${h.toFixed(4)}, ${p.toFixed(4)})`):D.push(`scaleX(${h.toFixed(4)})`)),i.transform=D.join(" "),i.transformStyle="preserve-3d",i.transition=`transform ${s}ms cubic-bezier(0.215, 0.61, 0.355, 1)`,i.zIndex=t===0?10:10-Math.abs(t),i.backfaceVisibility="hidden",n.slideShadows&&t!==0){const N=Math.max(0,1-Math.abs(t)*.3);i.boxShadow=`0 ${Math.abs(t)*5}px ${Math.abs(t)*10}px rgba(0,0,0,${N*.3})`}return i}
104const[TO,Hl]=Wt("swipe"),RO=Symbol(TO),XK=le({name:TO,props:SK,emits:["init","change","dragStart","dragEnd"],setup(e,{emit:t,slots:n}){const o=O(!1),a=O(),r=O(),s=vt({rect:null,width:0,height:0,offset:0,active:0,swiping:!1}),i=O(0),{width:c,height:l}=mf(),u=OK(),{children:d,linkChildren:m}=SO(RO),{count:g,dynamicMainBullets:f,slidesPerView:_,effect:h,coverflowEffectComputed:p,isCoverflow:y,size:b,delta:v,minOffset:A,maxCount:L,trackSize:T,activeIndicator:S,isCorrectDirection:I,isRtl:R,trackStyle:D,swipeItemStayTimes:M}=kK({props:e,state:s,childrenCount:C(()=>d.length),touch:u,swipeItemHeight:i}),B=()=>{yt(()=>{var se,Ae,Je,wt;const Me=(Je=(Ae=(se=r.value)==null?void 0:se.children)==null?void 0:Ae[S.value])==null?void 0:Je.children[0],et=(wt=Me==null?void 0:Me.clientHeight)!=null?wt:0;i.value=et})},{move:E,correctPosition:Y,getTargetOffset:H}=WK({props:{loop:e.loop,vertical:e.vertical,spaceBetween:e.spaceBetween,centeredSlides:e.centeredSlides,useInBanner:e.useInBanner,autoHeight:e.autoHeight},state:s,computed:{count:g,maxCount:L,minOffset:A,trackSize:T,size:b,activeIndicator:S,isCoverflow:y,isRtl:R,slidesPerView:_},children:d,emit:t,methods:{getAutoHeight:B}}),{initialize:F,resize:Q,prev:G,next:N,swipeTo:$}=VK({root:a,props:{initialSwipe:+e.initialSwipe,width:e.width,height:e.height,loop:e.loop},state:s,initialized:o,touch:u,computed:{count:g,isCoverflow:y},children:d,emit:t,methods:{move:E,correctPosition:Y,getTargetOffset:H},callbacks:{onInitialized:void 0}}),{autoplay:X,stopAutoplay:j,pause:te,resume:K}=NK({autoplay:()=>+e.autoplay,count:g,activeIndicator:S,swipeItemStayTimes:M,next:N}),{onTouchStart:q,onTouchMove:ae,onTouchEnd:me,onPointerDown:de,onPointerMove:ne,onPointerEnd:U,onMouseUp:W}=GK({props:{touchable:e.touchable,vertical:e.vertical,loop:e.loop,stopPropagation:e.stopPropagation,rtlGesture:!1},state:s,touch:u,track:r,emit:t,computed:{activeIndicator:S,delta:v,isCorrectDirection:I,size:b,count:g,isRtl:R},methods:{move:E,stopAutoplay:j,correctPosition:Y,autoplay:X}}),oe=(Me,et)=>{const se=et===S.value,Ae=se?{backgroundColor:e.indicatorColor}:void 0;return w("span",{style:Ae,class:[Hl("indicator",{active:se}),"swiper-pagination-bullet",se?"swiper-pagination-bullet-active":""]},null)},be=()=>{if(n.indicator)return n.indicator({active:S.value,total:g.value});if(e.showIndicators&&g.value>1)return w("div",{class:[Hl("indicators",{vertical:e.vertical}),"swiper-pagination"]},[Array(f.value).fill("").map(oe)])};Da({prev:G,next:N,state:s,resize:Q,swipeTo:$,pause:te,resume:K});const Ie=C(()=>s.rect);return m({size:b,props:e,count:g,activeIndicator:S,slidesPerView:_,effect:h,coverflowEffect:p,containerRect:Ie}),FK({props:e,state:s,initialized:o,root:a,track:r,computed:{count:g},windowSize:{width:c,height:l},methods:{initialize:F,resize:Q,autoplay:X,stopAutoplay:j,onTouchMove:ae,onMouseUp:W}}),()=>{var Me;return w("div",{ref:a,class:[Hl(),"swiper",y.value&&Hl("","coverflow")]},[w("div",{ref:r,style:D.value,class:Hl("track",{vertical:e.vertical}),onTouchstartPassive:q,onTouchend:me,onTouchcancel:me,onPointerdown:de,onPointermove:ne,onPointerup:U,onPointercancel:U,onLostpointercapture:U},[(Me=n.default)==null?void 0:Me.call(n)]),be()])}}});function ZK(e,t,n,o){const a=e-t;if(!o||n===0)return a;const r=a>=0?a:a+n,s=a<=0?a:a-n;return Math.abs(r)<Math.abs(s)?r:s}const[JK,eQ]=Wt("swipe-item"),tQ=le({name:JK,setup(e,{slots:t}){let n;const o=vt({offset:0,inited:!1,mounted:!1}),{parent:a,index:r}=AO(RO);if(!a)return;const s=C(()=>a.effect.value==="coverflow"),i=C(()=>s.value?ZK(r.value,a.activeIndicator.value,a.count.value,a.props.loop):0),c=C(()=>{const{vertical:m,spaceBetween:g,duration:f}=a.props;if(s.value&&a.size.value)return QK({diff:i.value,config:a.coverflowEffect.value,parentSize:a.size.value,containerRect:a.containerRect.value,vertical:m,duration:Number(f)});const _={};if(a.size.value&&(_[m?"height":"width"]=`${a.size.value}px`,o.offset)){const h=m?0:o.offset,p=m?o.offset:0;_.transform=`translate3d(${h}px, ${p}px, 0)`}return g&&(_[m?"margin-bottom":"margin-right"]=`${g}px`),_}),l=C(()=>{const{loop:m,lazyRender:g}=a.props;if(!g||n)return!0;
104if(!o.mounted)return!1;const f=a.activeIndicator.value,_=a.count.value-1;if(s.value&&m)return n=Math.abs(i.value)<=1,n;const h=f===0&&m?_:f-1,p=f===_&&m?0:f+1;return n=r.value===f||r.value===h||r.value===p,n}),u=C(()=>a.activeIndicator.value===0&&r.value!==0&&a.props.autoHeight),d=m=>{o.offset=m};return Gt(()=>{yt(()=>{o.mounted=!0})}),Da({setOffset:d}),()=>{var m;return w("div",{class:[eQ({hiddenItem:u.value}),"swiper-slide",i.value===0&&"swiper-slide-active"],style:c.value},[l.value?(m=t.default)==null?void 0:m.call(t):null])}}}),OO=XK,Tf=tQ,[,QS]=Wt("tab"),nQ=le({name:"TabPanelSwipe",props:{content:{type:Function}},setup(e,{slots:t}){const{id:n,parent:o,active:a,getContent:r}=bO(e,t),s=O(!a.value);return fe(a,i=>{i?s.value=!1:Bc(()=>{s.value=!0})}),()=>{const c=(o.props.tabVShowMode?!0:a.value)?r():null;return w(Tf,{id:n,class:QS("panel-wrapper",{inactive:s.value})},{default:()=>{var l;return[c?w(gt,null,[w("div",{class:QS("panel")},[c]),(l=t["panel-after"])==null?void 0:l.call(t)]):null]}})}}}),oQ={dot:Boolean,name:po,badge:po,title:[String,Function],content:Function,disabled:Boolean,isEmpty:Boolean,titleClass:b_,titleStyle:[String,Object],showZeroBadge:pr,badgeMax:Number,offset:Array,orderKey:po},[aQ]=Wt("tab-register"),rQ=le({name:aQ,props:oQ,setup(e,{slots:t,attrs:n}){var u;const o=IO(),a=He(_y,null);if(!a){console.error("[TabRegister] <TabRegister> must be a child component of <Tabs>.");return}const r=d=>({id:o,name:d,title:e.title,dot:e.dot,badge:e.badge,offset:e.offset,disabled:e.disabled,isEmpty:e.isEmpty,showZeroBadge:e.showZeroBadge,badgeMax:e.badgeMax,titleClass:e.titleClass?K1(e.titleClass):"",titleStyle:e.titleStyle&&typeof e.titleStyle!="string"?j1(Q1(e.titleStyle)):e.titleStyle,orderKey:e.orderKey}),s=a.registerTabData(r((u=e.name)!=null?u:0)),i=()=>{var d;return(d=e.name)!=null?d:s};let c=!0;qu(()=>{const d=r(i());c&&(c=!1,e.name!=null)||a.updateTabData(o,d)}),Kn(()=>{a.unregisterTabData(o)});const l=C(()=>i()===a.currentName.value);return mt(mO,{id:o,index:s,parent:a,active:l,getName:i}),()=>{var m;const d=(m=t.default)==null?void 0:m.call(t);return(d==null?void 0:d.length)===1?kn(d[0],n):d}}}),PO=(e,{slots:t})=>{const n=He(_y,null),o=n!=null&&n.props.animated||n!=null&&n.props.swipeable?nQ:vK;return w(rQ,e,{default:()=>[w(o,{content:e.content},{default:t.default,"panel-after":t["panel-after"]})]})},pge=()=>He(gO,null),DO=["change","scroll","rendered","clickTab","update:active","scrollChange"],MO={tabVShowMode:{type:Boolean,default:!0},type:Io("line"),navPosition:{type:String,default:"top"},navDraggable:{type:Boolean,default:!0},navScrollbarTrigger:{type:String,default:"none"},navScrollbarOptions:{type:Object,default:()=>({})}
104,color:String,border:Boolean,sticky:Boolean,shrink:Boolean,active:oa(0),duration:oa(.3),animated:Boolean,initialSwipeIndex:oa(0),ellipsis:pr,swipeable:Boolean,scrollspy:Boolean,scrollToSticky:Boolean,offsetTop:oa(0),stickyZIndex:po,stickyUseTeleport:Boolean,stickyContainer:Object,background:String,lazyRender:pr,showHeader:pr,lineWidth:po,lineHeight:po,beforeChange:Function,swipeThreshold:oa(5),titleActiveColor:String,titleInactiveColor:String,titleNavClass:b_,titleNavStyle:Object,contentClass:b_,contentScrollable:Boolean,contentScrollProps:{type:Object,default:()=>({})},isInitNavScrollPosition:Boolean,isRecenterOnActivated:Boolean,navigation:Object,bindRoute:String,titleScrollPosition:{type:String,default:"center"},titleScrollPositionThreshold:{type:Number,default:0},reduceMeasureTabsActivedOnScroll:{type:String,default:"default"},useNative:Boolean,stickyOffsetTopWithParent:oa(0),useNativeScroll:{type:Boolean,default:!1},pinned:Array,pinnedPosition:Io("start")},NO=Symbol("current_scroll_parent_key"),Vd={emitEvent:function(e,t,n){if(e.componentInstance)e.componentInstance.$emit(t,n);else{const o=new window.CustomEvent(t,{detail:n});e.el.dispatchEvent(o)}}},Rp={clickThresholdTimeout:300,minMoveDistance:10},XS=function(e,t,n){let o=e,a=!0,r=window;typeof t.value=="boolean"?a=t.value:typeof t.value=="object"?(typeof t.value.target=="string"?(o=e.querySelector(t.value.target),o||console.error("There is no element with the current target value.")):typeof t.value.target!="undefined"&&console.error(`The parameter "target" should be either 'undefined' or 'string'.`),typeof t.value.container=="string"?(r=document.querySelector(t.value.container),r||console.error("There is no element with the current container value.")):typeof t.value.container!="undefined"&&console.error(`The parameter "container" should be be either 'undefined' or 'string'.`),typeof t.value.active=="boolean"?a=t.value.active:typeof t.value.active!="undefined"&&console.error(`The parameter "active" value should be either 'undefined', 'true' or 'false'.`)):typeof t.value!="undefined"&&console.error("The passed value should be either 'undefined', 'true' or 'false' or 'object'.");const s=function(c,l){r===window?window.scrollBy(c,l):(r.scrollLeft+=c,r.scrollTop+=l)},i=function(){let c,l,u,d=!1,m,g;function f(){clearTimeout(g),m=!1,o.setAttribute("ondragstart","return false"),g=window.setTimeout(()=>m=!0,Rp.clickThresholdTimeout)}o.md=function(h){f();const p=h instanceof window.MouseEvent,y=p?h.pageX:h.touches[0].pageX,b=p?h.pageY:h.touches[0].pageY,v=document.elementFromPoint(y-window.pageXOffset,b-window.pageYOffset),A=t.arg==="nochilddrag",L=t.modifiers.noleft,T=t.modifiers.noright,S=t.modifiers.nomiddle,I=t.modifiers.noback,R=t.modifiers.noforward,D=t.arg==="firstchilddrag",M=v===o,B=v===o.firstChild,E=A?typeof(v==null?void 0:v.dataset.dragscroll)!="undefined":typeof(v==null?void 0:v.dataset.noDragscroll)=="undefined";!M&&(!E||D&&!B)||h.button===0&&L||h.button===1&&S||h.button===2&&T||h.button===3&&I||h.button===4&&R||(u=1,c=p?h.clientX:h.touches[0].clientX,l=p?h.clientY:h.touches[0].clientY,[o,window].forEach(Y=>{Y.addEventListener("click",o.ck,{capture:!0,once:!0})}))};const _=()=>{o.removeAttribute("ondragstart"),u=0,d&&Vd.emitEvent(n,"dragscrollend")};o.mu=function(){_()},o.mm=function(h){var v,A;const p=h instanceof window.MouseEvent;if(p&&u&&h.buttons===0){o.removeAttribute("ondragstart"),u=0,d=!1,d&&Vd.emitEvent(n,"dragscrollend");return}let y,b;if(u){h.preventDefault();const L=p?h.clientX:h.touches[0].clientX,T=p?h.clientY:h.touches[0].clientY;y=-c+L,b=-l+T;const S=(v=t.modifiers.x)!=null?v:!0,I=(A=t.modifiers.y)!=null?A:!0,R=S&&I;if(!d){if((R||S)&&Math.abs(y)<Rp.minMoveDistance||(R||I)&&Math.abs(b)<Rp.minMoveDistance)return;Vd.emitEvent(n,"dragscrollstart")}d=!0;const D=o.scrollLeft+o.clientWidth>=o.scrollWidth||o.scrollLeft===0,M=o.scrollTop+o.clientHeight>=o.scrollHeight||o.scrollTop===0;c=L,l=T,t.modifiers.pass?(o.scrollLeft-=t.modifiers.y?-0:y,o.scrollTop-=t.modifiers.x?-0:b,o===document.body&&(o.scrollLeft-=t.modifiers.y?-0:y,o.scrollTop-=t.modifiers.x?-0:b),(D||t.modifiers.y)&&s(-y,0),(M||t.modifiers.x)&&s(0,-b)):(t.modifiers.x&&(b=-0),t.modifiers.y&&(y=-0),o.scrollLeft-=y,o.scrollTop-=b,o===document.body&&(o.scrollLeft-=y,o.scrollTop-=b)),Vd.emitEvent(n,"dragscrollmove",{deltaX:-y,deltaY:-b})}},o.ck=function(h){(m||d)&&(h.stopPropagation(),h.preventDefault()),d=!1,[o,window].forEac
104h(y=>{y.removeEventListener("click",o.ck,{capture:!0,once:!0})})},o.addEventListener("mousedown",o.md,{passive:!1}),window.addEventListener("mouseup",o.mu,{passive:!1}),window.addEventListener("mousemove",o.mm,{passive:!1})};a?document.readyState==="complete"?i():window.addEventListener("load",i):kO(o)},kO=e=>{const t=e;t.removeEventListener("mousedown",t.md),window.removeEventListener("mouseup",t.mu),window.removeEventListener("mousemove",t.mm),[t,window].forEach(n=>{n.removeEventListener("click",t.ck,{capture:!0})}),t.md=null,t.mu=null,t.mm=null,t.ck=null},sQ={mounted:(e,t,n)=>XS(e,t,n),updated:(e,t,n)=>{JSON.stringify(t.value)!==JSON.stringify(t.oldValue)&&XS(e,t,n)},unmounted:e=>kO(e)},iQ={bindRoute:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},tag:{type:String,default:"div"},direction:{type:String,default:"y"},scrollable:{type:Boolean,default:!0},isInit:{type:Boolean,default:!1},scrollbarTrigger:{type:String,default:"always"},forceSystemScrollbar:{type:Boolean},scrollbarOptions:{type:Object,default:()=>({})},onScroll:{type:Function,default:()=>({})},hideSystemScrollbarInTg:{type:Boolean,default:!1},forceObserve:{type:Boolean,default:!1},observerOptions:{type:Object,default:void 0}},BO=()=>{const e=Bn(),t=O(e.name);return hs(()=>{t.value=e.name}),t},cQ="_main_zzwue_102",lQ={main:cQ};function uQ(e){if(!e)return null;if(e instanceof HTMLElement)return e;if(e.$el&&e.$el instanceof HTMLElement)return e.$el;try{const t=Em(e);if(t instanceof HTMLElement)return t;if(t!=null&&t.$el&&t.$el instanceof HTMLElement)return t.$el}catch(t){}return null}function dQ(e){try{return!e||typeof e.scrollTo!="function"?!1:typeof CSS=="undefined"||typeof CSS.supports!="function"?!0:CSS.supports("scroll-behavior","smooth")}catch(t){return!1}}function mQ(e,t,n){var g;const{onComplete:o,onEndNextRaf:a,nativeCompleteDetect:r=!1,nativeCompleteTimeoutBufferMs:s=150}=n,i=va.stopScrollAnimation()?0:((g=n.duration)!=null?g:.3)*1e3;let c,l,u=!1;const d=()=>{if(!u){if(u=!0,l){try{e.removeEventListener("scroll",l)}catch(f){}l=void 0}typeof c!="undefined"&&(clearTimeout(c),c=void 0)}};if(o&&r){const _=()=>{const h=e.scrollLeft,p=e.scrollTop;if(Math.abs(h-t.x)<=1&&Math.abs(p-t.y)<=1){d();try{o(),a&&requestAnimationFrame(a)}catch(y){}}};l=()=>{_()},e.addEventListener("scroll",l,{passive:!0}),c=window.setTimeout(()=>{d();try{o(),a&&requestAnimationFrame(a)}catch(h){}},Math.max(0,i)+s)}else(o||a)&&(c=window.setTimeout(()=>{try{o==null||o(),a&&requestAnimationFrame(a)}catch(f){}},Math.max(0,i)+120));try{e.scrollTo({left:Math.round(t.x),top:Math.round(t.y),behavior:"smooth"})}catch(f){}return()=>{d();try{const f=e.scrollLeft,_=e.scrollTop;e.scrollTo({left:Math.round(f),top:Math.round(_),behavior:"auto"})}catch(f){}}}function gQ(e,t,n,o){var s;const a=new pw(t).to(n,{duration:va.stopScrollAnimation()?0:((s=o.duration)!=null?s:.3)*1e3,onUpdate({target:{x:i,y:c}}){var l;typeof c!="undefined"&&e.scrollTop!==c&&(e.scrollTop=c),typeof i!="undefined"&&e.scrollLeft!==i&&(e.scrollLeft=i),(l=o.onUpdate)==null||l.call(o)},onComplete:()=>{var i;try{typeof n.y=="number"&&(e.scrollTop=n.y),typeof n.x=="number"&&(e.scrollLeft=n.x)}catch(c){}(i=o.onComplete)==null||i.call(o)},onEndNextRaf:o.onEndNextRaf});return()=>{try{a.kill()}catch(i){}}}function Cl(e,t,n={}){var c,l,u;if(!e)return()=>{};const o=e,a={x:(c=o.scrollLeft)!=null?c:0,y:(l=o.scrollTop)!=null?l:0},r={x:typeof t.x=="number"?t.x:a.x,y:typeof t.y=="number"?t.y:a.y},s=(u=n.useNative)!=null?u:!1,i=dQ(o);if(s&&i)try{return mQ(o,r,n)}catch(d){}return gQ(o,a,r,n)}const[fQ,pQ]=_e("scroll"),yy=le({name:fQ,props:iQ,directives:{dragscroll:sQ},emits:{init:e=>!0,scroll:e=>!0,resize:e=>!0},setup(e,{attrs:t,slots:n,emit:o}){var N;const a=O(null),r=O(null),s=hw(a);let i=0,c=0;const{x:l,y:u,arrivedState:d,directions:m,measure:g}=s;mt(NO,a);const f=C(()=>jn().isDesktop),_=C(()=>ft().browser.isFirefox),h=Et.dragScrollDisabled(),p=Et.virtualScrollBarDisabled(),y=C(()=>e.scrollbarTrigger==="none"||v.value||p?null:Pe({handlers:["drag-thumb","click-rail"],swipeEasing:!1,suppressScrollX:e.direction==="y",suppressScrollY:e.direction==="x",scrollXMarginOffset:1,scrollYMarginOffset:1},e.scrollbarOptions)),b=C(()=>document.documentElement.getAttribute("dir")==="rtl"),v=C(()=>e.scrollbarTrigger!=="none"&&(!f.value||e.forceSystemScrollbar||p||b.value));fe(()=>f.value,()=>{f.value?A():L()});async function A(){var X;if(!y.value)return;await yt();const $=uQ(a.value);if(!$){console.warn("[Scroll] createScrollbarInstance: target element not ready or not an HTMLElement",a.value);return}if(!r.value)try{const j=await pa(()=>V(()=>import("./index.enbIf5En.js"),[]))(),te=(X=j==null?void 0:j.default)!=null?X:j;if(typeof te!="function"){console.error("[Scroll] PerfectScrollbar module is not a constructor",j);return}r.value=new te($,y.value),R()}catch(j){console.error("Failed to load PerfectScrollbar:",j)}}function L(){var $;if(r.value)try{R(!1),typeof r.value.destroy=="function"?r.value.destroy():($=r.value)!=null&&$.destroyInstance&&r.value.destroyInstance()}catch(X){console.warn("[Scroll] destroyScrollbarInstance error:",X)}finally{r.value=null}}const T=I("scroll"),S={scroll:T};function I($){return function(X){o($,{x:l.value,y:u.value,arrivedState:d,directions:m,event:X})}}function R($=!0){var X;(X=r.value)!=null&&X.element&&($?(window.addEventListener("animationend",B),window.addEventListener("transitionend",B)):(window.removeEventListener("animationend",B),window.removeEventListener("transitionend",B)),Object.entries(S).forEac
104h(([j,te])=>{var K,q;$?(K=r.value)==null||K.element.addEventListener(j,te):(q=r.value)==null||q.element.removeEventListener(j,te)}))}let D=!1;const M=()=>{D||(D=!0,queueMicrotask(()=>{H(),D=!1}))},B=()=>{E()},E=()=>{y.value&&r.value&&r.value.update()};fe(()=>[e.scrollbarOptions],()=>{E()},{deep:!0}),Gt(()=>{a.value&&A()}),fa(()=>{L()}),fa(()=>{ec.remove(Em(a.value))});const Y=X1("dragscroll"),H=()=>{const{scrollWidth:$=0,scrollHeight:X=0}=a.value||{};(c!==X||i!==$)&&(a.value&&o("resize",a.value),E()),i=$,c=X};(y.value||e.forceObserve)&&v1(a,()=>{M()},(N=e.observerOptions)!=null?N:{childList:!0,attributes:!0,characterData:!0,subtree:!0}),Gt(()=>{o("init",{x:l.value,y:u.value,arrivedState:d,directions:m})});const F=BO();Da({scrollEl:a,scroller:s,scrollTo:($,X={})=>{a.value&&Cl(a.value,$,X)},scrollbar:r,updateScrollbar:E});const G=Qc(a);return fe(()=>G.value,$=>{if($&&(g(),e.isInit))switch(e.direction){case"y":u.value=0;break;case"x":l.value=0;break;default:l.value=0,u.value=0}}),()=>{const $={...t};return vr(w(e.tag,Te({"data-route-for-scroll":e.bindRoute?String(F.value):void 0,ref:a,onScroll:y.value?void 0:T,class:[lQ.main,e.scrollable?[pQ({all:e.direction==="all",x:e.direction==="x",y:e.direction==="y","system-scrollbar":v.value,"is-desktop":f.value,"is-firefox":_.value,"is-tg":fn.isActivated,"hide-in-tg":e.hideSystemScrollbarInTg})]:null,y.value?["ps",`ps-scrollbar-${e.scrollbarTrigger}`]:""]},$),{default:()=>{var X;return[(X=n.default)==null?void 0:X.call(n)]}}),h?[]:[[Y,e.scrollable&&e.draggable,"",e.direction==="all"?{}:{x:e.direction==="x",y:e.direction==="y"}]])}}});function ZS(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ao(e)}const[,Op]=Wt("tabs"),hQ=le({name:"TabsContent",setup(e,{slots:t}){const n=bs(),o=O(),a=()=>{var i;const s=(i=t.default)==null?void 0:i.call(t);return n.props.animated||n.props.swipeable?w(OO,{ref:o,loop:!1,class:Op("track"),duration:(+n.props.duration||0)*1e3,touchable:n.props.swipeable,lazyRender:n.props.lazyRender,showIndicators:!1,initialSwipe:n.props.initialSwipeIndex,onChange:n.setCurrentIndex},ZS(s)?s:{default:()=>[s]}):s},r=s=>{if(s===-1)return;const i=o.value;i&&i.state.active!==s&&i.swipeTo(s,{immediate:!n.state.inited})};return fe(()=>n.state.currentIndex,s=>{r(s)}),Gt(()=>{r(n.state.currentIndex)}),n.hooks.swipeRef=o,()=>{let s;const i=n.props.animated||n.props.swipeable;return n.props.contentScrollable?w(yy,Te({ref:n.contentRef,class:[Op("content",{animated:i}),n.props.contentClass]},n.props.contentScrollProps),ZS(s=a())?s:{default:()=>[s]}):w("div",{ref:n.contentRef,class:[Op("content",{animated:i}),n.props.contentClass]},[a()])}}});function _Q(e){const{root:t,wrapRef:n,contentRef:o,navRef:a,titleEls:r,scrollLeftCancel:s,scrollTopCancel:i,hooks:c}=e;sc(()=>{var l,u;try{s.current&&s.current(),i.current&&i.current(),(l=c.debounceMeasureActiveIndex)!=null&&l.cancel&&c.debounceMeasureActiveIndex.cancel(),(u=c.throttledNavScroll)!=null&&u.cancel&&c.throttledNavScroll.cancel(),c.lockScroll&&(c.lockScroll.value=!1),t.value=void 0,n.value=void 0,o.value=void 0,c.swipeRef=void 0,r.value=[]}catch(d){}}),Kn(()=>{a.value=void 0})}function bQ(e){const{props:t,state:n,wrapRef:o,tabHeight:a,tabDataList:r,setCurrentIndexByName:s,hooks:i}=e;fe(()=>[t.color,t.duration,t.lineWidth,t.lineHeight],()=>i.setLine()),fe(()=>t.active,m=>{m!==e.currentName.value&&(s(m),i.scrollToCurrentContent())}),fe(()=>r.length,()=>{var m;n.inited&&(((m=r[n.currentIndex])==null?void 0:m.name)!==t.active&&s(t.active,!1,!0),i.setLine(!0),yt(()=>{i.scrollIntoView(!0)}))});let c=0,l=0;fe(()=>{var m;return(m=e.navRef.value)==null?void 0:m.$el},(m,g,f)=>{if(!m)return;const _=()=>{c=m.scrollLeft,l=m.scrollTop};m.addEventListener("scroll",_,{passive:!0}),f(()=>m.removeEventListener("scroll",_))},{immediate:!0});let u;sc(()=>{u=t.active}),hs(m=>{s(t.active,!0,m),yt(()=>{var f;if(n.inited=!0,o.value&&(a.value=es(o.value).height),m){const _=(f=e.navRef.value)==null?void 0:f.$el;_&&(_.scrollLeft=c,_.scrollTop=l)}const g=m&&u!==void 0&&u!==t.active;(!m||g||t.isRecenterOnActivated)&&i.scrollIntoView(!0)})})}const yQ=Symbol("header_nav_key"),vQ=Symbol("fixed_view_key"),HO=Symbol("content_key"),SQ=/scroll|auto|overlay/i,xO=da?window:void 0;function CQ(e,t=xO){let n=e;for(;n&&n!==t&&yT(n);){const{overflowY:o}=window.getComputedStyle(n);if(SQ.test(o))return n;n=n.parentNode}return t}function vy({el:e=O(void 0),root:t=xO,onlyParent:n=!0}={}){const o=He(NO,O(null)),a=He(HO,O(null));return Gt(()=>{!o.value&&(e!=null&&e.value)&&(o.value=CQ(e.value,t))}),C(()=>
104{if(n)return o.value;{const s=a.value,i=Nt(s,"$el");return i||o.value}})}function hge(e){const t=String(BO().value),n=O(null),o=Oe(),a=fe(()=>o.route.name,s=>{s===t&&!n.value&&r(t)}),r=s=>{const i=document.querySelector(`[data-route-for-scroll="${s}"].lobby-scroll`);i&&(n.value=i,a())};return Gt(()=>{r(t)}),n}function EO(e,{args:t=[],done:n,canceled:o,error:a}){if(e){const r=e.apply(null,t);_T(r)?r.then(s=>{s?n():o&&o()}).catch(a||function(){}):r?n():o&&o()}else n()}function wQ({tabDataList:e,state:t,props:n,emit:o,hooks:a}){const r=m=>{var g,f;return(f=(g=e[m])==null?void 0:g.name)!=null?f:m},s=m=>{const g=m<t.currentIndex?-1:1;for(let f=m;f>=0&&f<e.length;f+=g){const _=e[f];if(_&&!_.disabled&&!_.isEmpty)return f}},i=(m,g,f)=>{var p;const _=s(m);if(!Ji(_))return;const h=r(_);if(t.currentIndex!==_){const y=_>t.currentIndex?0:n.titleScrollPositionThreshold;t.currentIndex=_,g||a.throttledNavScroll(!1,y),a.setLine(f)}h!==n.active&&(o("update:active",h),o("change",h,(p=e[_])==null?void 0:p.title)),a.scrollToTop()},c=(m,g,f)=>{const _=e.findIndex(h=>h.name===m);i(_===-1?0:_,g,f)};return{getTabName:r,findAvailableTab:s,setCurrentIndex:i,setCurrentIndexByName:c,onClickTab:(m,g)=>{var y;const f=e[m],_=r(m),h=(y=f==null?void 0:f.disabled)!=null?y:!1,p=f==null?void 0:f.title;h||EO(n.beforeChange,{args:[_],done:()=>{i(m),a.scrollToCurrentContent()}}),o("clickTab",{name:_,title:p,event:g,index:m,disabled:h})},scrollTo:m=>{yt(()=>{c(m),a.scrollToCurrentContent(!0)})},onRendered:m=>o("rendered",m)}}function IQ(){const e=Z1([]),t=[];return{tabDataList:e,orderKeys:t,registerTabData:r=>{const s=t;if(s!=null&&s.length&&r.orderKey!=null){const c=s.indexOf(r.orderKey);if(c!==-1){const l=e.findIndex(u=>{const d=u.orderKey!=null?s.indexOf(u.orderKey):-1;return d===-1||d>c});return l===-1?(e.push(r),e.length-1):(e.splice(l,0,r),l)}}const i=e.length;return e.push(r),i},updateTabData:(r,s)=>{const i=e.findIndex(c=>c.id===r);i!==-1&&(e[i]=s)},unregisterTabData:r=>{const s=e.findIndex(i=>i.id===r);s!==-1&&e.splice(s,1)}}}const AQ=e=>e&&typeof e=="object"&&"$el"in e?e.$el:e;function LQ(){const e=O([]),t=[];return Pw(()=>{e.value=[]}),{titleEls:e,gatherTitleElRef:o=>(t[o]||(t[o]=a=>{e.value[o]=AQ(a)}),t[o])}}function TQ(e,t){const n=O(),o=O(),a=O(),r=O(),s=O(),i={current:void 0},c={current:void 0},l=IO(),u=vy({el:o}),{titleEls:d,gatherTitleElRef:m}=LQ(),{tabDataList:g,orderKeys:f,registerTabData:_,updateTabData:h,unregisterTabData:p}=IQ(),y=vt({inited:!1,currentIndex:-1}),b={setLine:()=>{},scrollIntoView:()=>{},throttledNavScroll:Object.assign((Y,H)=>{},{cancel:()=>{}}),scrollToCurrentContent:()=>{},measureActiveIndex:()=>{},debounceMeasureActiveIndex:Object.assign(()=>{},{cancel:()=>{}}),scrollToTop:()=>{}},{getTabName:v,setCurrentIndex:A,setCurrentIndexByName:L,onClickTab:T,scrollTo:S,onRendered:I}=wQ({tabDataList:g,state:y,props:e,emit:t,hooks:b}),R=Et.reduceMeasureTabsActivedOnScrollConfig(),D=C(()=>R||(["default","debounce","disabled"].includes(e.reduceMeasureTabsActivedOnScroll)?e.reduceMeasureTabsActivedOnScroll:"default")),M=C(()=>g.length>+e.swipeThreshold||!e.ellipsis||e.shrink),B=C(()=>y.currentIndex>=0&&y.currentIndex<g.length?v(y.currentIndex):""),E=C(()=>Ga(e.offsetTop));return{props:e,state:y,tabDataList:g,tabHeight:n,root:o,navRef:a,wrapRef:r,contentRef:s,scrollLeftCancel:i,scrollTopCancel:c,id:l,scroller:u,titleEls:d,gatherTitleElRef:m,scrollable:M,currentName:B,offsetTopPx:E,reduceMeasureTabsActivedOnScroll:D,setCurrentIndex:A,setCurrentIndexByName:L,onClickTab:T,scrollTo:S,onRendered:I,hooks:b,emit:t,registerTabData:_,updateTabData:h,unregisterTabData:p,orderKeys:f}}const RQ=le({name:"TabsCore",props:MO,emits:DO,setup(e,{emit:t,slots:n,attrs:o}){const a=TQ(e,t);bQ(a),_Q(a),mt(fO,a),mt(_y,{id:a.id,props:e,setLine:()=>a.hooks.setLine(),scrollable:a.scrollable,onRendered:a.onRendered,currentName:a.currentName,gatherTitleElRef:a.gatherTitleElRef,scrollIntoView:u=>a.hooks.scrollIntoView(u),reduceMeasureTabsActivedOnScroll:a.reduceMeasureTabsActivedOnScroll,registerTabData:a.registerTabData,updateTabData:a.updateTabData,unregisterTabData:a.unregisterTabData});const r=He(pO,null),s=He(hO,null),i=He(by,null),c=He(_O,null),l=He(ic,null);return r==null||r.upTransferCore(a),s==null||s.upTransferCore(a),i==null||i.upTransferCore(a),c==null||c.upTransferCore(a),l==null||l.upTransferCore(a),()=>{var d;const u=(d=n.default)==null?void 0:d.call(n);return u!=null&&u.length?u.length===1?kn(u[0],o):u:null}}}
104),[,JS]=Wt("tabs"),OQ=le({name:"TabsLayout",setup(e,{slots:t}){const n=bs();return()=>{var o,a;return w("div",{ref:n.root,class:[JS([n.props.type]),JS("position",[n.props.navPosition])]},[(o=t["before-header"])==null?void 0:o.call(t),(a=t.default)==null?void 0:a.call(t)])}}});function PQ(e,t){const{navRef:n,props:o}=e,a=C(()=>{var c,l;return o.navPosition==="top"?(c=n.value)==null?void 0:c.scroller.arrivedState.left:(l=n.value)==null?void 0:l.scroller.arrivedState.top}),r=C(()=>{var c,l;return o.navPosition==="top"?(c=n.value)==null?void 0:c.scroller.arrivedState.right:(l=n.value)==null?void 0:l.scroller.arrivedState.bottom}),s=C(()=>{var c;return(c=t.value)!=null&&c.hiddenInArrived?a.value:!1}),i=C(()=>{var c;return(c=t.value)!=null&&c.hiddenInArrived?r.value:!1});return{arrivedPrev:a,arrivedNext:r,hiddenPrevArrow:s,hiddenNextArrow:i}}function DQ(e,t,n){const{navRef:o,titleEls:a,state:r,props:s}=e,i=(f,_)=>{if(_==="x"){const h=t.value.mode==="viewport"?f.clientWidth:f.scrollWidth-f.clientWidth;return n.value?-h:h}return t.value.mode==="viewport"?f.clientHeight:f.scrollHeight-f.clientHeight},c=f=>{const _=a.value[r.currentIndex];return _?f==="x"?_.offsetWidth:_.offsetHeight:0},l=(f,_,h,p)=>{var A,L;const y=t.value.scrollMode==="item",b=y?p:_;if(y?Math.abs(f+b)>Math.abs(h):Math.abs(f+_*2)>Math.abs(h)){const T=h-_,S=h>=0?Math.max(0,T):Math.min(0,T);return(L=(A=s.navigation)==null?void 0:A.navigateToEnd)==null||L.call(A,S),S}return f+b},u=(f,_,h)=>{var b,v;const p=t.value.scrollMode==="item"?h:_;return(n.value?f-p>0:f-p<0)?((v=(b=s.navigation)==null?void 0:b.navigateToStart)==null||v.call(b,0),0):f-p},d=f=>{var A,L;const _=(A=o.value)==null?void 0:A.$el;if(!_)return;const h=n.value?-_.scrollWidth:_.scrollWidth,p=i(_,"x"),y=c("x"),b=_.scrollLeft,v=f==="right"?l(b,p,h,y):u(b,p,y);(L=o.value)==null||L.scrollTo({x:v})},m=f=>{var A,L;const _=(A=o.value)==null?void 0:A.$el;if(!_)return;const h=_.scrollHeight,p=i(_,"y"),y=c("y"),b=_.scrollTop,v=f==="down"?l(b,p,h,y):u(b,p,y);(L=o.value)==null||L.scrollTo({y:v})};return{navigationTo:f=>{t.value.mode!=="static"&&(["left","right"].includes(f)?d(f):m(f))}}}function MQ(e){const{props:t}=e,n=C(()=>Object.assign({hiddenInArrived:!1,mode:"viewport",scrollMode:"viewport"},t.navigation)),o=C(()=>document.documentElement.getAttribute("dir")==="rtl"),{arrivedPrev:a,arrivedNext:r,hiddenPrevArrow:s,hiddenNextArrow:i}=PQ(e,n),{navigationTo:c}=DQ(e,n,o);return{navigationProps:n,isRtl:o,arrivedPrev:a,arrivedNext:r,hiddenPrevArrow:s,hiddenNextArrow:i,navigationTo:c}}const NQ={direction:String,show:y_,flipDeg:Io("180")},kQ={up:90,down:-90,left:0,right:180};_w('<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 21.999 35.998" id="ui-arrow-418a3a"><path id="ui-arrow-418a3a_comm_icon_fh" d="M2209.279,137.564l-17.743-15.773a2.024,2.024,0,0,1-.271-.228,2.009,2.009,0,0,1,0-2.83,2.02,2.02,0,0,1,.274-.23l17.74-15.77a1.992,1.992,0,0,1,2.817,2.816l-16.422,14.6,16.422,14.6a1.992,1.992,0,0,1-2.817,2.817Z" transform="translate(-2190.681 -102.15)" /></symbol>',"ui-arrow-418a3a");const BQ="ui-arrow-418a3a",[HQ,xQ]=Wt("arrow"),EQ=le({name:HQ,props:NQ,emits:["click"],setup(e,{emit:t}){const n=C(()=>Number(kQ[e.direction])+Number(e.flipDeg)),o=C(()=>e.show?{transform:`rotate(${n.value}deg)`}:null);return()=>w(_f,{key:"icon-arrow",name:BQ,style:{...o.value,transition:"transform 0.3s linear"},onClick:()=>t("click"),class:[xQ("",{[e.direction]:e.direction,flip:e.show})]},null)}}),UQ=EQ,[,eC]=Wt("tabs"),GQ=le({name:"TabsNavArrows",setup(e,{slots:t}){const n=bs(),{isRtl:o,arrivedPrev:a,arrivedNext:r,hiddenPrevArrow:s,hiddenNextArrow:i,navigationTo:c}=MQ(n),l=u=>{var d,m;return t["navigation-prev"]||t["navigation-next"]?o.value&&n.props.navPosition==="top"?(d=t[`navigation-${["right","down"].includes(u)?"prev":"next"}`])==null?void 0:d.call(t):(m=t[`navigation-${["left","up"].includes(u)?"prev":"next"}`])==null?void 0:m.call(t):w(UQ,{direction:u},null)};return()=>{const u=n.props.navPosition==="top"?"left":"up",d=n.props.navPosition==="top"?"right":"down";return w(gt,null,[vr(w("div",{onClick:()=>
104c(u),class:eC("navigation-prev",{left:n.props.navPosition==="top",top:n.props.navPosition!=="top",arrived:a.value,"next-end":r.value})},[l(u)]),[[is,!s.value]]),vr(w("div",{onClick:()=>c(d),class:eC("navigation-next",{right:n.props.navPosition==="top",down:n.props.navPosition!=="top",arrived:r.value,"prev-end":a.value})},[l(d)]),[[is,!i.value]])])}}}),FQ={dot:Boolean,max:po,tag:Io("div"),mode:String,color:String,backgroundColor:String,offset:Array,autoTransformOffset:Boolean,content:[Number,String,Object],showZero:y_,position:Io("auto"),badgeClass:String,zIndex:po,isSupportRtl:y_,isDesignBg:{type:Boolean,default:void 0},designBgMode:{type:String,default:void 0},gift:{type:Object},maxWidthOffset:{type:Number,default:0},arrowPosition:Io("left"),onBadgeClick:Function},[WQ,ws]=Wt("badge"),UO=le({name:WQ,props:FQ,setup(e,{slots:t}){const n=O(),o=Hi(n),{isRTL:a}=Rb(),{isElectronicBadge:r,isElectronicBadgeDot:s}=Ke,i=()=>{if(t.content&&t.content()[0].children)return!0;const{content:p,showZero:y}=e;return Ji(p)&&p!==""&&(y||p!==0&&p!=="0")},c=()=>{const{dot:p,max:y,content:b,isSupportRtl:v}=e;if(!p&&i())return t.content?t.content():Ji(y)&&bT(b)&&+b>+y?v?w("div",{dir:"ltr"},[`${y}+`]):`${y}+`:b},l={renderImage(){if(e.gift&&i())return w("div",{class:ws("gift")},[typeof e.gift.image=="function"?e.gift.image():w(Ve,{useSkeleton:!0,src:e.gift.image||"/lobby_asset/common/common/home/img_xzapp_jl.png"},null)])},renderSpace(){var b;const p=(b=e.gift)==null?void 0:b.shouldOccupySpace,y=(v=0)=>{var A;return(A=n.value)==null?void 0:A.style.setProperty("--badge-gift-space",v)};if(p&&i()){const v=e.gift.size==="large"?48:38,L=Zt(typeof p=="boolean"?v:p);return y(L),w("div",{class:[ws("gift--space")],style:{height:L}},null)}else y()}},u=p=>p.startsWith("-")?p.replace("-",""):`-${p}`,d=C(()=>{if(e.color)return e.color;if(e.backgroundColor!=="var(--skin__accent_3)")switch(e.mode){case"white":return Eh.White;case"yellow":return Eh.Yellow}}),m=C(()=>{var y;const p={color:d.value};if(e.backgroundColor&&(p.backgroundColor=e.backgroundColor),e.position==="auto"){if(e.offset){const[,b]=e.offset;p.top=Jo(b),e.autoTransformOffset&&b&&(p.top=Zt(b))}return p.maxWidth=Jo(o.width.value-((y=e.maxWidthOffset)!=null?y:0)),p}if(e.offset){const[b,v]=e.offset,{position:A}=e,[L,T]=A.split("-");if(t.default){typeof v=="number"?(p[L]=Jo(L==="top"?v:-v),e.autoTransformOffset&&(p[L]=Zt(L==="top"?v:-v))):p[L]=L==="top"?Jo(v):u(v);let S=T;e.isSupportRtl&&a.value&&(S=T==="left"?"right":"left"),typeof b=="number"?(p[S]=Jo(T==="left"?b:-b),e.autoTransformOffset&&(p[S]=Zt(T==="left"?b:-b))):p[S]=T==="left"?Jo(b):u(b)}else p.marginTop=Jo(v),p.marginLeft=Jo(b)}return p}),g="/lobby_asset/{layout}-{bg}-common/web/common/",f=()=>{const p={green:"img_qipao_fzl",orange:"img_qipao_fzc",blue:"img_qipao_cwl"};let y="img_qipao_fzh",b=e.designBgMode;if(!b&&e.backgroundColor===Ui.AWARD&&(b="green"),b&&p[b]&&(y=p[b]),e.dot)return w("div",{class:ws("bg")},[w(Ve,{src:"/lobby_asset/{layout}-{bg}-common/common/common/img_qipao_fzh.png",useSkeleton:!0},null)]);const v=e.arrowPosition==="center"?"_1":"";return w("div",{class:ws("bg")},[w(Ve,{src:`${g}${y}1${v}.png`,useSkeleton:!0},null),w(Ve,{class:ws("bg-center"),src:`${g}${y}2${v}.png`,useSkeleton:!0},null),w(Ve,{src:`${g}${y}3${v}.png`,useSkeleton:!0},null)])},_=C(()=>{var p,y;return e.dot?(p=e.isDesignBg)!=null?p:s:(y=e.isDesignBg)!=null?y:r}),h=()=>{var p,y,b,v;if(i()||e.dot)return w("div",{class:[ws([e.position,{dot:e.dot,fixed:!!t.default,design:_.value,gift_normal:e.gift&&(!((p=e.gift)!=null&&p.size)||((y=e.gift)==null?void 0:y.size)==="normal"),gift_large:e.gift&&((b=e.gift)==null?void 0:b.size)==="large",gift_two_line:(v=e.gift)==null?void 0:v.twoLine,arrow_center:e.arrowPosition==="center",design_arrow_center:e.arrowPosition==="center"&&_.value},{rtl:e.isSupportRtl?"rtl":""}]),e.badgeClass],style:{...m.value,"z-index":e.zIndex||1,"--badge-bg-color":e.backgroundColor||"var(--skin__accent_2)"},onClick:e.onBadgeClick},[_.value&&f(),w("div",{class:ws("content")},[c()]),l.renderImage()])};return()=>t.default?w(e.tag,{ref:n,class:ws("wrapper")},{default:()=>
104[l.renderSpace(),t.default(),h()]}):h()}}),tc=UO;function VQ(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ao(e)}const[,$Q]=Wt("tab"),GO=(e,{emit:t})=>{const{type:n,color:o,disabled:a,isActive:r,activeColor:s,inactiveColor:i}=e,c={};o&&n==="card"&&(c.borderColor=o,a||(r?c.backgroundColor=o:c.color=o));const u=r?s:i;u&&(c.color=u);const d=typeof e.title=="function"?e.title():e.title,m=()=>e.dot||Ji(e.badge)&&e.badge!==""?w(tc,{dot:e.dot,offset:e.offset,content:e.badge,showZero:e.showZeroBadge,max:e.badgeMax},VQ(d)?d:{default:()=>[d]}):d;return w("div",{id:e.id,class:[$Q([e.type,{grow:e.scrollable&&!e.shrink,shrink:e.shrink,active:e.isActive,disabled:e.disabled}])],style:c,onClick:g=>t("click",g)},[m()])};GO.emits=["click"];const FO=e=>{const t=bs(),{tabData:n,index:o,isActive:a,scrollable:r}=e;return w(GO,{id:`${t.id}-${o}`,ref:t.gatherTitleElRef(o),style:n.titleStyle,class:n.titleClass,isActive:a,controls:n.id,scrollable:r,activeColor:t.props.titleActiveColor,inactiveColor:t.props.titleInactiveColor,onClick:s=>{t.onClickTab(o,s)},type:t.props.type,color:t.props.color,shrink:t.props.shrink,dot:n.dot,badge:n.badge,offset:n.offset,disabled:n.disabled,showZeroBadge:n.showZeroBadge,badgeMax:n.badgeMax,title:n.title},null)},[,YQ]=Wt("tabs"),tC=()=>{const e=bs(),t=He(ic,null);if(!(t!=null&&t.isPinned))return null;const n=e.tabDataList.map((o,a)=>({tabData:o,index:a})).filter(({tabData:o})=>t.isPinned(o.name));return n.length?w("div",{class:YQ("pinned")},[n.map(({tabData:o,index:a})=>{const r=e.reduceMeasureTabsActivedOnScroll.value==="disabled"?!1:o.name===e.currentName.value;return w(FO,{key:o.id,tabData:o,index:a,isActive:r,scrollable:!1},null)})]):null},qQ=(e,t)=>{var i;const{nav:n,title:o,titlePrev:a,titleNext:r,threshold:s}=e;switch(t){case"center":return o.offsetLeft-(n.offsetWidth-o.offsetWidth)/2;case"targetStart":return o.offsetLeft-n.offsetLeft;case"targetPrevStart":return a.offsetLeft-n.offsetLeft;case"targetNextStart":return((i=r==null?void 0:r.offsetLeft)!=null?i:o.offsetLeft)-n.offsetLeft-s;case"firstTitle":return 0;default:return o.offsetLeft-(n.offsetWidth-o.offsetWidth)/2}};function zQ(e,t,n){const o=qQ(e,t.titleScrollPosition);n.current&&n.current(),n.current=Cl(e.nav,{x:o},{duration:e.immediate?0:+t.duration,useNative:t.useNativeScroll})}function jQ(e,t,n){const{nav:o,title:a,immediate:r}=e,s=a.getBoundingClientRect(),i=o.getBoundingClientRect();let c=Math.round(o.scrollTop+(s.top-i.top)-(i.height-s.height)/2);const l=Math.max(0,o.scrollHeight-i.height);c<0&&(c=0),c>l&&(c=l),n.current&&n.current(),n.current=Cl(o,{y:c},{duration:r?0:+t.duration,useNative:t.useNativeScroll})}function KQ(e){const{state:t,scrollable:n,navRef:o,titleEls:a,props:r,scrollLeftCancel:s,scrollTopCancel:i}=e,c=He(ic,null),l=()=>{var h;const m=(h=o.value)==null?void 0:h.$el,g=a.value;if(!n.value||!m||!g||!g[t.currentIndex])return null;const f=t.currentIndex===0?0:t.currentIndex-1,_=t.currentIndex===g.length-1?g.length-1:t.currentIndex+1;return{nav:m,title:g[t.currentIndex],titlePrev:g[f],titleNext:g[_]}},u=(m,g)=>{var h;const f=e.tabDataList[t.currentIndex];if(f&&((h=c==null?void 0:c.isPinned)!=null&&h.call(c,f.name)))return;const _=l();_&&(r.navPosition==="top"?zQ({..._,immediate:!!m,threshold:g!=null?g:0},r,s):jQ({nav:_.nav,title:_.title,immediate:!!m},r,i))},d=Zc((m,g)=>{u(m,g)},200);return{scrollIntoView:u,throttledNavScroll:d}}const QQ={width:"0px",opacity:0},XQ=200,ZQ=.2,JQ=e=>{const t=getComputedStyle(e);return e.offsetWidth-parseFloat(t.paddingLeft)-parseFloat(t.paddingRight)};function eX(e){const{state:t,root:n,titleEls:o,props:a,reduceMeasureTabsActivedOnScroll:r}=e,s=He(ic,null),i=Ao();let c=!1,l,u;const d=()=>{clearTimeout(l),l=void 0,u!==void 0&&(cancelAnimationFrame(u),u=void 0)},m=()=>{const v=o.value;return!(!v||!v[t.currentIndex]||a.type!=="line"||n.value&&Vu(n.value))},g=()=>{var A;const v=e.tabDataList[t.currentIndex];return v&&((A=s==null?void 0:s.isPinned)==null?void 0:A.call(s,v.name))},f=v=>{const A=o.value[t.currentIndex],{lineWidth:L,lineHeight:T}=a,S=A.offsetLeft+A.offsetWidth/2,I={width:Jo(L||JQ(A)),backgroundColor:a.color,transform:`translateX(${S}px) translateX(-50%)`};if(v&&(I.transitionDuration=`${a.duration}s`),Ji(T)){const R=Jo(T);I.height=R,I.borderRadius=R}return I};let _=!1,h=!1;const p=(v=!1)=>{a.navPosition!=="left"&&r.value!=="disabled"&&(h=h||v,!_&&(_=!0,yt(()=>{_=!1;const A=h;if(h=!1,!!m()){if(g()){i.value=QQ;return}if(!c){l||(l=setTimeout(()=>{l=void 0,!(!m()||g())&&(c=!0,i.value={...f(!1),opacity:0}
104,u=requestAnimationFrame(()=>{u=void 0,i.value={...f(!1),opacity:1,transitionProperty:"opacity",transitionDuration:`${ZQ}s`}}))},XQ));return}i.value=f(A?!1:t.inited)}})))},y=new ResizeObserver(()=>p(!0)),b=new Set;return J1(()=>{const v=o.value;for(const A of b)v.includes(A)||(y.unobserve(A),b.delete(A));for(const A of v)A&&!b.has(A)&&(y.observe(A),b.add(A))}),sc(d),fa(()=>{y.disconnect(),b.clear()}),{setLine:p,lineStyle:i}}const[,tX]=Wt("tabs"),nX=le({name:"TabsLine",setup(e,{slots:t}){const n=bs(),{setLine:o,lineStyle:a}=eX(n);return Object.assign(n.hooks,{setLine:o}),()=>{var r;return n.reduceMeasureTabsActivedOnScroll.value==="disabled"||n.props.navPosition!=="top"||n.props.type!=="line"||!a.value?null:w("div",{class:tX("line"),style:a.value},[(r=t.line)==null?void 0:r.call(t)])}}}),[,oX]=Wt("tabs"),aX=le({name:"TabsNavScroll",setup(e,{slots:t}){const n=bs(),o=He(ic,null),a=C(()=>({borderColor:n.props.color,background:n.props.background}));return()=>{const{type:r}=n.props;return w(yy,{isInit:n.props.isInitNavScrollPosition,ref:s=>n.navRef.value=s,scrollable:n.scrollable.value,draggable:n.scrollable.value&&n.props.navDraggable,direction:n.props.navPosition==="top"?"x":"y",scrollbarOptions:n.props.navScrollbarOptions,scrollbarTrigger:n.props.navScrollbarTrigger,class:[oX("nav",[r,{shrink:n.props.shrink,complete:n.scrollable.value,[n.props.navPosition]:!0}])],style:a.value,"aria-orientation":n.props.navPosition==="top"?"horizontal":"vertical"},{default:()=>{var s,i,c;return[(s=t["nav-left"])==null?void 0:s.call(t),n.tabDataList.map((l,u)=>{var m;if((m=o==null?void 0:o.isPinned)!=null&&m.call(o,l.name))return null;const d=n.reduceMeasureTabsActivedOnScroll.value==="disabled"?!1:l.name===n.currentName.value;if(t.title){const g=t.title({tabData:l,index:u,isActive:d}),f={key:l.id,id:`${n.id}-${u}`,ref:n.gatherTitleElRef(u),onClick:_=>{n.onClickTab(u,_)}};return g.length===1?kn(g[0],f):kn("div",f,g)}return w(FO,{key:l.id,tabData:l,index:u,isActive:d,scrollable:n.scrollable.value},null)}),(i=t["after-titles"])==null?void 0:i.call(t),(c=t["nav-right"])==null?void 0:c.call(t)]}})}}}),[,Pp]=Wt("tabs"),rX=le({name:"TabsNavBar",setup(e,{slots:t}){const n=bs(),o=He(by,null),a=He(ic,null),{scrollIntoView:r,throttledNavScroll:s}=KQ(n);Object.assign(n.hooks,{scrollIntoView:r,throttledNavScroll:s}),qu(()=>{!n.root.value&&n.wrapRef.value&&(n.root.value=n.wrapRef.value)});const i=()=>{var f,_;const{type:l,border:u,sticky:d}=n.props,m=(a==null?void 0:a.isPinned)&&n.tabDataList.some(h=>a.isPinned(h.name)),g=(a==null?void 0:a.pinnedPosition)!=="end";return w("div",{ref:h=>{d||(n.wrapRef.value=h)},style:n.props.titleNavStyle,class:[Pp("wrap",{"has-pinned":m}),n.props.titleNavClass,{[CO]:l==="line"&&u}]},[(f=t["nav-arrows"])==null?void 0:f.call(t),g&&w(tC,null,null),w(aX,null,{"nav-left":t["nav-left"],"nav-right":t["nav-right"],"after-titles":()=>w(nX,null,{line:t.line}),title:t.title}),!g&&w(tC,null,null),(_=t["nav-extra"])==null?void 0:_.call(t)])},c=()=>{var l,u;return[(l=t["nav-top"])==null?void 0:l.call(t),i(),(u=t["nav-bottom"])==null?void 0:u.call(t)]};return()=>{if(!n.props.showHeader)return null;const l=c();if(n.props.sticky){const u=w("div",{class:Pp("sticky-nav"),ref:d=>{n.wrapRef.value=d}},[l]);return o?o.wrapNavBar(u):u}return t["nav-top"]||t["nav-bottom"]?w("div",{class:Pp("collect-nav")},[l]):l}}}),sX=le({name:"TabsNavStrategy",inheritAttrs:!1,props:{pinned:{type:Array,default:()=>[]},pinnedPosition:Io("start")},setup(e,{slots:t,attrs:n}){const o=C(()=>new Set(e.pinned)),a={upTransferCore:r=>{},isPinned:r=>o.value.has(r),pinnedPosition:e.pinnedPosition};return mt(ic,a),()=>{var s;const r=(s=t.default)==null?void 0:s.call(t);return(r==null?void 0:r.length)===1?kn(r[0],n):r}}});function C_(e){var n;if(!e)return[];const t=[];for(const o of e)if(!(!o||typeof o!="object"))if(Array.isArray(o))t.push(...C_(o));else if(o.type===gt&&Array.isArray(o.children))t.push(...C_(o.children));else{const a=(n=o.props)==null?void 0:n.orderKey;a!=null&&t.push(a)}return t}function w_(e){return e&&e.map(t=>{if(!t||typeof t!="object")return t;if(Array.isArray(t))return w_(t);if(t.type===gt&&Array.isArray(t.children)){const n=Gy(t,null);return n.children=w_(t.children),n}return t.key!=null?Gy(t,{orderKey:t.key}):t})}function iX(e,t){const n=Em(e.tabDataList);if(!t.length||!n.length)return;const o=new Map(t.map((s,i)=>[s,i])),a=()=>{var s,i;for(let c=1;c<n.length;c++){const l=(s=o.get(n[c-1].orderKey))!=null?s:1/0,u=(i=o.get(n[c].orderKey))!=null?i:1/0;if(l>u)return!0}return!1},r=()=>{var i;const s=(i=n[Em(e.state).currentIndex])==null?void 0:i.name;if(e.tabDataList.sort((c,l)=>{var u,d;return((u=o.get(c.orderKey))!=null?u:1/0)-((d=o.get(l.orderKey))!=null?d:1/0)}),s!=null){const c=n.findIndex(l=>l.name===s);c!==-1&&c!==e.state.currentIndex&&(e.state.currentIndex=c)}};a()&&(r(),e.hooks.setLine(!0),e.hooks.scrollIntoView(!0))}
104const cX=le({name:"TabsOrderSync",setup(e,{slots:t}){const n=bs();let o=[];const a=()=>{n.orderKeys.length=0,n.orderKeys.push(...o),iX(n,o)};return Gt(a),Dw(a),()=>{var s;const r=w_((s=t.default)==null?void 0:s.call(t));return o=C_(r),r}}});function lX(e){const{root:t,wrapRef:n,tabHeight:o,scrollTo:a,hooks:r}=e;let s=!1,i=!1;Gt(()=>yt(()=>s=!0)),qa(()=>{s&&(i=!0)});const{width:c}=mf(),l=()=>{n.value&&(o.value=es(n.value).height)},u=()=>{r.setLine(!0),yt(()=>{var g,f;r.scrollIntoView(!0),(f=(g=r.swipeRef)==null?void 0:g.value)==null||f.resize()})};fe(c,()=>{u(),l()});const d=Qc(n);fe(()=>d.value,g=>{g&&l()});const{width:m}=Hi(t);return fe(()=>m.value,()=>{if(r.setLine(!0),i){i=!1;return}r.scrollIntoView()}),Da({resize:u,scrollTo:a}),wO(()=>r.setLine(!0)),Yq(t,()=>r.setLine(!0)),{resize:u}}const uX=le({name:"TabsResize",inheritAttrs:!1,setup(e,{slots:t,attrs:n}){return mt(_O,{upTransferCore:o=>{lX(o)}}),()=>{var a;const o=(a=t.default)==null?void 0:a.call(t);return(o==null?void 0:o.length)===1?kn(o[0],n):o}}});function dX(e){const{props:t,setCurrentIndexByName:n}=e,{replace:o}=x_(),a=Bn();let r=!0;za(()=>{r=!1}),qa(()=>{r=!0});const s=qn(c=>{r&&o({query:Object.assign({},a.query,{[t.bindRoute]:c})})},100),i=c=>{const{tabDataList:l}=e;if(l.some(d=>d.name===c))return c;const u=Number(c);return!isNaN(u)&&l.some(d=>d.name===u)?u:t5(t.active)?c:u};return fe(()=>t.active,(c,l)=>{t.bindRoute&&(a.query[t.bindRoute]!==void 0||l!==void 0)&&s(c)}),Gt(()=>{if(t.bindRoute){const c=a.query[t.bindRoute];if(c!==void 0){const l=i(c);n(l)}}}),{replaceDebounced:s}}const mX=le({name:"TabsRoute",inheritAttrs:!1,setup(e,{slots:t,attrs:n}){return mt(hO,{upTransferCore:o=>{const{replaceDebounced:a}=dX(o);sc(()=>{a==null||a.cancel()})}}),()=>{var a;const o=(a=t.default)==null?void 0:a.call(t);return(o==null?void 0:o.length)===1?kn(o[0],n):o}}});function gX(e,t,n,o){const a=Qc(e.root);fe(()=>a.value,s=>{s?(t.value=!1,n()):t.value=!0},{immediate:!0});const r=Qc(e.contentRef);fe(()=>[e.props.navPosition,e.props.offsetTop],()=>{e.props.navPosition==="left"&&n()}),fe(()=>e.props.navPosition==="left"&&r.value,s=>{s?(t.value=!1,n()):e.props.navPosition==="left"&&(t.value=!0)}),Xs("scroll",()=>{e.reduceMeasureTabsActivedOnScroll.value!=="disabled"&&(e.reduceMeasureTabsActivedOnScroll.value==="debounce"?o():n())},{target:e.scroller,passive:!0})}const nC=12,fX=220,pX=1e3;function hX(e,t){let n,o;const a=()=>{n!==void 0&&cancelAnimationFrame(n),n=void 0,o==null||o(),o=void 0},r=(s,i,c)=>{a();const l=e();let u=i,d;const m=performance.now(),g=_=>{u=_,o=Cl(l,{y:_},{useNative:!0,duration:.25})},f=()=>{if(!s.isConnected){a(),c();return}const _=performance.now(),h=wg(s,l)-t.value+1,p=h-u;Math.abs(p)>nC?(g(h),d=void 0):Math.abs(Lf(l)-u)<=nC?d!=null||(d=_):d=void 0;const y=d!==void 0&&_-d>=fX,b=_-m>=pX;if(y||b){a(),c();return}n=requestAnimationFrame(f)};n=requestAnimationFrame(f)};return Kn(a),{start:r,stop:a}}function _X(e,t){const{state:n,tabDataList:o,scroller:a,props:r,setCurrentIndex:s,scrollTopCancel:i,tabHeight:c}=e,l=Et.tabsStickyDisabled(),u=C(()=>{var A;const b=Ga(r.offsetTop);return!l&&r.sticky?b+(r.navPosition==="top"&&(A=c.value)!=null?A:0):b}),d={value:!1},m=hX(()=>a.value,u),g=b=>{const v=o[b];return v?document.getElementById(v.id):null},f=(b=!1)=>{if(!r.scrollspy&&!r.scrollToSticky)return;const v=()=>{let T=Lf(a.value),S=g(n.currentIndex);if(r.scrollspy)S&&a.value&&(T=wg(S,a.value)-u.value);else if(r.scrollToSticky){const I=S==null?void 0:S.parentElement;if(I&&a.value){if(es(I).top>u.value)return null;T=wg(I,a.value)-u.value,S=I}}return S?{to:T+1,target:S}:null},A=(T,S)=>{d.value=!0,i.current&&i.current();const I=Cl(a.value,{y:T},{duration:b?0:+r.duration,useNative:r.useNativeScroll,onEndNextRaf(){const R=()=>{d.value=!1,t({index:n.currentIndex,itemEl:S})};r.scrollspy?m.start(S,T,R):R()}});i.current=()=>{I(),m.stop()}},L=v();L&&A(L.to,L.target)},_=()=>{let b=0,v=0;for(let A=0;A<o.length;A++){const L=g(A);if(!L)continue;b=A;const{top:T}=es(L);if(T>u.value)return v;v=A}return b},h=()=>{if(r.scrollspy&&!d.value){const b=_(),v=g(b);v&&t({index:b,itemEl:v}),s(b)}},p=Et.reduceMeasureTabsActivedOnScrollDebounceWait(),y=qn(h,p);return{scrollToCurrentContent:f,measureActiveIndex:h,debounceMeasureActiveIndex:y,lockScroll:d}}const bX=le({name:"TabsScrollspy",inheritAttrs:!1,setup(e,{slots:t,attrs:n}){return mt(pO,{upTransferCore:o=>{const{scrollToCurrentContent:a,measureActiveIndex:r,debounceMeasureActiveIndex:s,lockScroll:i}=_X(o,c=>o.emit("scrollChange",c));Object.assign(o.hooks,{scrollToCurrentContent:a,measureActiveIndex:r,debounceMeasureActiveIndex:s,lockScroll:i}),gX(o,i,r,s)}}),()=>{var a;const o=(a=t.default)==null?void 0:a.call(t);return(o==null?void 0:o.length)===1?kn(o[0],n):o}}}),yX={useNative:Boolean,useTeleport:Boolean,zIndex:po,position:Io("top"),container:Object,offsetTop:oa(0),offsetBottom:oa(0),fixedClassName:{type:String,default:""}};function WO(){const e=O(!1);return qa(()=>{e.value=!1}),za(()=>{e.value=!0}),{isKeptAlive:e}}function vX(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ao(e)}
104const[SX,oC]=Wt("sticky"),CX=le({name:SX,props:yX,emits:["scroll","change"],setup(e,{emit:t,slots:n}){const o=O(),a=O(),r=O(null),s=O(null),i=vy({el:o}),c=O(!1),{width:l,height:u}=mf(),d=vt({fixed:!1,width:0,height:0,transform:0,offsetLeft:0,containingBlockOffset:0}),m=()=>window.CSS&&CSS.supports&&CSS.supports("position","sticky"),g=C(()=>e.useNative?!!m():!1),f=C(()=>Ga(e.position==="top"?e.offsetTop:e.offsetBottom)),_=C(()=>{if(c.value)return;const L=Object.assign(r_(e.zIndex),{[e.position]:`${f.value?f.value:0}px`,paddingLeft:`${d.offsetLeft}px`,position:"sticky"});if(g.value)return L;const{fixed:T,height:S,width:I}=d;return T?Object.assign({},{width:`${I}px`,height:`${S}px`}):{}}),h=C(()=>{if(!d.fixed||c.value||g.value)return;const L=Object.assign(r_(e.zIndex),{width:`${d.width}px`,height:`${d.height}px`,[e.position]:`${f.value}px`,paddingLeft:`${d.offsetLeft}px`});return d.transform&&(L.transform=`translate3d(0, ${d.transform}px, 0)`),L});if(e.useTeleport){const L=document.createElement("div");L.style.zIndex=String(e.zIndex),L.className=wR.FixedNoDesktop,document.body.appendChild(L),r.value=L}const p=L=>t("scroll",{scrollTop:L,isFixed:d.fixed}),y=()=>{var M;if(!o.value||Vu(o))return;const L=i.value,{container:T,position:S}=e,I=es(o),R=Lf(L);if(d.width=I.width,d.height=I.height,e.useTeleport)d.offsetLeft=((M=o.value)==null?void 0:M.getBoundingClientRect().left)-(r.value?r.value.getBoundingClientRect().left:0);else if(a.value){const B=s.value;B&&(d.containingBlockOffset=B instanceof window.HTMLElement?B==null?void 0:B.getBoundingClientRect().top:0)}let D=d.transform;if(S==="top")if(T){const B=es(T),E=B.bottom-f.value-d.height;d.fixed=f.value>I.top&&B.bottom>0,D=E<0?E:0}else d.fixed=f.value>I.top;else{const{clientHeight:B}=document.documentElement;if(T){const E=es(T),Y=B-E.top-f.value-d.height;d.fixed=B-f.value<I.bottom&&B>E.top,D=Y<0?-Y:0}else d.fixed=B-f.value<I.bottom}d.transform=D-d.containingBlockOffset,p(R)};fe([l,u],()=>{!o.value||Vu(o)||!d.fixed||(c.value=!0,yt(()=>{const L=es(o);d.width=L.width,d.height=L.height,c.value=!1,y()}))}),fe(()=>d.fixed,L=>t("change",L)),Xs("scroll",y,{target:i,passive:!0});const b=Qc(o);fe(()=>b.value,y),Gt(()=>{a.value&&(s.value=UK(a.value))});const{isKeptAlive:v}=WO(),A=C(()=>e.useTeleport?"absolute":g.value?"sticky":"fixed");return()=>{let L;const T=d.fixed&&!c.value&&!v.value,S=()=>{var I;return w("div",{ref:a,"data-mode":A.value,class:[oC({fixed:T}),{[e.fixedClassName]:T}],style:h.value},[(I=n.default)==null?void 0:I.call(n)])};return w("div",{class:oC(),ref:o,style:_.value},[e.useTeleport?w(eP,{to:(r==null?void 0:r.value)||document.body,disabled:!T},vX(L=S())?L:{default:()=>[L]}):S()])}}}),wX=CX;function IX(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ao(e)}const AX=le({name:"TabsSticky",inheritAttrs:!1,setup(e,{slots:t,attrs:n}){let o=null,a=!1;const r=Et.tabsStickyDisabled(),s=i=>{o&&(a=i.isFixed,o.emit("scroll",i))};return mt(by,{upTransferCore:i=>{o=i,Object.assign(i.hooks,{scrollToTop:()=>{a&&!i.props.scrollspy&&i.root.value&&HK(Math.ceil(wg(i.root.value)-i.offsetTopPx.value))}})},wrapNavBar:i=>r||!(o!=null&&o.props.sticky)?i:w(wX,{container:o.props.stickyContainer||o.root,offsetTop:o.props.useNative?o.props.stickyOffsetTopWithParent:o.offsetTopPx.value,useNative:o.props.useNative,onScroll:s,zIndex:o.props.stickyZIndex,useTeleport:o.props.stickyUseTeleport},IX(i)?i:{default:()=>[i]})}),()=>{var c;const i=(c=t.default)==null?void 0:c.call(t);return(i==null?void 0:i.length)===1?kn(i[0],n):i}}}),[LX]=Wt("tabs"),TX=le({name:LX,props:MO,emits:DO,setup(e,{emit:t,slots:n}){const o=O();return Da({scrollTo:a=>{var r,s;return(s=(r=o.value)==null?void 0:r.scrollTo)==null?void 0:s.call(r,a)},resize:()=>{var a,r;return(r=(a=o.value)==null?void 0:a.resize)==null?void 0:r.call(a)}}),()=>w(sX,{pinned:e.pinned,pinnedPosition:e.pinnedPosition},{default:()=>[w(bX,null,{default:()=>[w(mX,null,{default:()=>[w(AX,null,{default:()=>[w(uX,null,{default:()=>[w(RQ,Te({ref:o},e,{onChange:(a,r)=>t("change",a,r),onScroll:a=>t("scroll",a),onRendered:a=>t("rendered",a),onClickTab:a=>t("clickTab",a),"onUpdate:active":a=>t("update:active",a),onScrollChange:a=>t("scrollChange",a)}),{default:()=>[w(OQ,null,{"before-header":n["before-header"],default:()=>w(gt,null,[w(rX,null,{"nav-top":n["nav-top"],"nav-bottom":n["nav-bottom"],"nav-left":n["nav-left"],"nav-right":n["nav-right"],"nav-extra":n["nav-extra"],"nav-arrows":e.navigation?()=>w(GQ,null,{"navigation-prev":n["navigation-prev"],"navigation-next":n["navigation-next"]}):void 0,line:n.line,title:n.title}),w(hQ,null,{default:()=>[w(cX,null,{default:()=>{var a;return[(a=n.default)==null?void 0:a.call(n)]}})]})])})]})]})]})]})]})]})}}),VO=TX,RX="_text_xmfhc_128",OX="_date_xmfhc_173",so={"sport-tabs-home":"_sport-tabs-home_xmfhc_91","game-tabs":"_game-tabs_xmfhc_97","tab-title":"_tab-title_xmfhc_109","tab-title-wrap":"_tab-title-wrap_xmfhc_116","is-active":"_is-active_xmfhc_124","tab-img":"_tab-img_xmfhc_124",text:RX,"sport-count":"_sport-count_xmfhc_131","is-maintenance":"_is-maintenance_xmfhc_134","maintenance-tips":"_maintenance-tips_xmfhc_134","sport-tabs":"_sport-tabs_xmfhc_91",date:OX,"maintain-dialog":"_maintain-dialog_xmfhc_181","dialog-content":"_dialog-content_xmfhc_185","content-icon":"_content-icon_xmfhc_191","content-text":"_content-text_xmfhc_197"};function PX(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ao(e)}
104const[DX]=_e("sport-tabs-home"),MX=gn({loader:()=>V(()=>import("./2_SportChunk.TyhyXs9P.js").then(e=>e.ae),__vite__mapDeps([0,1,3,4,5,6,7,8,9,28]))}),NX=gn({loader:()=>V(()=>import("./2_SportChunk.TyhyXs9P.js").then(e=>e.af),__vite__mapDeps([0,1,3,4,5,6,7,8,9,28]))}),kX=le({name:DX,setup(){const{t:e}=we(),t=O(),n=O(),o=nn(),a=ly(),r=_K(),s=_s(),i=C({get:()=>s.isHomeTabOnSport?a.sportKey:ut.Casino,set:s.setSportTabKey}),c=C(()=>s.checkIfHomeTabOnSport(i.value)),u=ll(()=>c.value)(()=>vr(w("div",{class:so["sport-tabs"]},[w(MX,{countBySport:!0,pollingEnabled:f()},null),w(NX,{class:so.date},null)]),[[is,c.value]])),d=o.isNoBg?"/lobby_asset/common/common/selfoperated-games/img_dt_ty_whz.png":"/lobby_asset/common/common/selfoperated-games/img_dt_ty_whz1.png";let m=null;const g=h=>{s.checkIfHomeTabOnSport(h.sportType)&&s.isSportMaintenance&&(m&&m.then(p=>p.close()),m=yr.showDialog({showCloseButton:!0,showConfirmButton:!1,closeOnClickOverlay:!0,className:so["maintain-dialog"],onClose:()=>{m=null},message:()=>w("div",{class:so["dialog-content"]},[w(Ve,{tag:"div",class:so["content-icon"],src:d},null),w("p",{class:so["content-text"]},[w(Ve,{src:h.icon},null),e("lobby.game.sportMaintainText",{sport:h.sportName()})])])}))},f=()=>{var h;return!!((h=s.homeSportList)!=null&&h.length)&&!s.isSportMaintenance&&s.isHomeTabOnSport},_=h=>{if(s.isSportMaintenance)return w(Ve,{src:"/lobby_asset/common/common/selfoperated-games/img_dt_ty_jb_whz.png",tag:"div",class:so["maintenance-tips"]},null);const p=r.getSportTotalCount(h);if(p>0)return w("span",{class:so["sport-count"]},[p])};return()=>{var p;let h;return(p=s.homeSportList)!=null&&p.length?w("div",{ref:t,class:so["sport-tabs-home"]},[w(VO,{ref:n,shrink:!0,key:s.homeSportList.map(y=>y.sportType).join(),active:i.value,"onUpdate:active":y=>i.value=y,titleNavClass:so["game-tabs"]},PX(h=s.homeSportList.map(y=>{const b=s.checkIfHomeTabOnSport(y.sportType);return w(PO,{name:y.sportType,titleClass:so["tab-title"],disabled:y.disabled||b&&s.isSportMaintenance,title:()=>w("div",{onClick:()=>g(y),class:[so["tab-title-wrap"],i.value===y.sportType&&so["is-active"],b&&s.isSportMaintenance&&so["is-maintenance"]]},[w(Ve,{tag:"div",src:y.icon,class:so["tab-img"],useSkeleton:!0,lazy:!1},{default:()=>[b&&_(y.sportType)]}),w("div",{class:so.text},[y.sportName()])])},null)}))?h:{default:()=>[h]}),!s.isSportMaintenance&&u()]):null}}}),BX="_match_list_1gfbc_101",Rr={"main-content":"_main-content_1gfbc_91","club-main-content":"_club-main-content_1gfbc_96",match_list:BX,"tabs-content":"_tabs-content_1gfbc_115","with-pt-bg":"_with-pt-bg_1gfbc_118","content-exhibition":"_content-exhibition_1gfbc_123","with-mt":"_with-mt_1gfbc_126","content-sport":"_content-sport_1gfbc_130"},HX=gn(()=>V(()=>import("./RowsIndex.B_WkMwWZ.js"),__vite__mapDeps([0,1,3,4,5,6,10,29]))),[xX]=_e("pages-game-sport-async"),EX=le({name:xX,props:gK,setup(e,{slots:t}){const n=_s(),o=ly(),a=O(),r=C(()=>{var c;return(c=a.value)==null?void 0:c.offsetTop});mt(e7,r);const s=C(()=>n.homeSportCasinoTabsKey&&[ut.Club,ut.Native,ut.ThirdParty].includes(n.homeSportCasinoTabsKey)),i=C(()=>n.homeSportCasinoTabsKey===ut.Sport&&o.sportKey===bt.Soccer);return()=>{var c,l;return n.isWgSportShowHome?w("section",{class:Rr.content},[w("div",{class:{[Rr["tabs-content"]]:!0,[Rr["with-pt-bg"]]:e.withTabsGap==="homeBg"&&!n.isHomeTabOnSport}},[w(kX,null,null)]),i.value&&w("div",{class:Rr.match_list},[w(HX,{isCustomizeSubtitle:!0},null)]),w("div",{ref:a,class:{[Rr["main-content"]]:!0,[Rr["club-main-content"]]:s.value}},[vr(w("div",{class:{[Rr["content-exhibition"]]:!0,[Rr["with-mt"]]:e.withTabsGap==="transparent"}},[(l=t.default)==null?void 0:l.call(t)]),[[is,!n.isHomeTabOnSport]]),vr(w("div",{class:Rr["content-sport"]},[w(hK,null,null)]),[[is,n.isHomeTabOnSport]])])]):(c=t.default)==null?void 0:c.call(t)}}}),UX=(e={})=>{for(const t in e)(e[t]===void 0||e[t]===null)&&delete e[t];return e},Or=(e,t)=>t?e+t:void 0,Is=()=>{var n,o;const e=(n=ue())==null?void 0:n.homeLayoutInfos,t=(o=Ht())==null?void 0:o.hostCombineDomain;return{homeLayoutInfos:e,hostCombineDomain:t}};class zc{static useMenuBg(t="normal"){var s,i;const{homeLayoutInfos:n,hostCombineDomain:o}=Is(),a=(i=(s=n==null?void 0:n.advanceSetting)==null?void 0:s.day)==null?void 0:i.backgroundSetting;if(!a)return{base:null,select:null};const r=(c,l)=>t==="normal"?Or(o,a[c]):Or(o,a[l]);return{base:r("gameMenuBgImg2","gameMenuBgImg"),select:r("gameMenuSelectBgImg2","gameMenuSelectBgImg")}}static get hellBg(){var r,s,i;const{homeLayoutInfos:t}=Is();if(Bn().name!==k.GAME)return null;const o=(s=(r=t==null?void 0:t.advanceSetting)==null?void 0:r.day)==null?void 0:s.backgroundSetting,a={};if((i=t==null?void 0:t.hallLoginImage)!=null&&i.length){a.backgroundImage=t.hallLoginImage,a.backgroundSize="100% 100%";const c=o==null?void 0:o.cutOffset;if(c){const m=2340*(window.outerWidth/1080)*(c/2340);a.backgroundPositionY=`-${m}px`}return a}return null}static get tabBarBg(){var r,s,i;const{homeLayoutInfos:t,hostCombineDomain:n}=Is(),o=(s=(r=t==null?void 0:t.advanceSetting)==null?void 0:r.day)==null?void 0:s.backgroundSetting,a={};return(i=o==null?void 0:o.btmImg)!=null&&i.length&&(a.backgroundImage=`url(${Or(n,o.btmImg)})`,a.backgroundSize="100% auto"),a}static get hellTabsBg(){var a,r,s;const{homeLayoutInfos:t,hostCombineDomain:n}=Is(),o=(r=(a=t==null?void 0:t.advanceSetting)==null?void 0:a.day)==null?void 0:r.backgroundSetting;return(s=o==null?void 0:o.gameMenuBgImg)!=null&&s.length&&Or(n,o.gameMenuBgImg)||""}static get hellTabsActive(){var a,r,s;const{homeLayoutInfos:t,hostCombineDomain:n}=Is(),o=(r=(a=t==null?void 0:t.advanceSetting)==null?void 0:a.day)==null?void 0:r.backgroundSetting;return(s=o==null?void 0:o.gameMenuSelectBgImg)!=null&&s.length&&Or(n,o.gameMenuSelectBgImg)||""}static get hellBigTabsBg(){var a,r,s;const{homeLayoutInfos:t,hostCombineDomain:n}=Is(),o=(r=(a=t==null?void 0:t.advanceSetting)==null?void 0:a.day)==null?void 0:r.backgroundSetting;return(s=o==null?void 0:o.gameMenuBgImg2)!=null&&s.length&&Or(n,o.gameMenuBgImg2)||""}static get hellBigTabsActive(){var a,r,s;const{homeLayoutInfos:t,hostCombineDomain:n}=Is(),o=(r=(a=t==null?void 0:t.advanceSetting)==null?void 0:a.day)==null?void 0:r.backgroundSetting;return(s=o==null?void 0:o.gameMenuSelectBgImg2)!=null&&s.length&&Or(n,o.gameMenuSelectBgImg2)||""}
104static get bgBaseSortList(){var a;const{homeLayoutInfos:t}=Is(),{backgroundShading:n}=t||{},o=(a=Ht())==null?void 0:a.hostCombineDomain;return[{style:{backgroundImage:"/lobby_asset/{layout}-{bg}-{skin}/common/common/bg_pattern_tile.png",backgroundSize:"1.8rem 1.8rem",...zc.hellBg},isShow:!t||!t.backgroundShading},{style:{backgroundImage:"/lobby_asset/{layout}-{bg}-{skin}/common/common/bg_pattern_tile.png",backgroundSize:"1.8rem 1.8rem",...zc.hellBg},addedStyle:{backgroundColor:(n==null?void 0:n.backgroundColor)||"",backgroundImage:n!=null&&n.shadingType?Or(o,n==null?void 0:n.shadingType):"",backgroundSize:n!=null&&n.shadingType?"1.8rem 1.8rem":""},isShow:(n==null?void 0:n.type)===ah.Texture},{style:{backgroundImage:"/lobby_asset/{layout}-{bg}-{skin}/common/common/bg_pattern_tile.png",backgroundSize:"1.8rem 1.8rem",...zc.hellBg},addedStyle:{backgroundImage:n!=null&&n.appBackgroundShadingValue?Or(o,n==null?void 0:n.appBackgroundShadingValue):"",backgroundSize:n!=null&&n.appBackgroundShadingValue?"cover":""},isShow:(n==null?void 0:n.type)===ah.Image}]}static get bgSortList(){const t=nn(),n=t.isHolidayThemeVisible,o=t.isCustomizeFestival,a=t.customizeFestivalConfig,r=t.isShowFestivalBgPattern,i=Xu().isDark&&t.isNoBg?"1":"{bg}";return[{style:{backgroundImage:o?a==null?void 0:a.backgroundImg:`/lobby_asset/festival/{holiday}/common-${i}/common/bg_pattern_tile.png`,backgroundSize:o?"cover":"1.8rem 1.8rem",backgroundPosition:o?"center":""},isShow:n&&(o&&(a==null?void 0:a.backgroundImg)||!o)&&Ke.isShowFestivalPartern&&r},...this.bgBaseSortList]}static resolveStyle(t){let n={backgroundImage:"/lobby_asset/{layout}-{bg}-{skin}/common/common/bg_pattern_tile.png",backgroundSize:"1.8rem 1.8rem",...this.hellBg};return t==null||t.some(o=>o.isShow?(n={...o.style,...UX(o.addedStyle||{})},!0):!1),n}static get bgPatternStyle(){return this.resolveStyle(this.bgSortList)}static get bgPatternStyleWithoutFestival(){return this.resolveStyle(this.bgBaseSortList)}static getBgStyle(t){const n=nn(),o=n==null?void 0:n.isHolidayThemeVisible,a=n==null?void 0:n.isCustomizeFestival,r=n==null?void 0:n.isShowFestivalBgPattern;return!o||!r?t:a?"cover":"1.8rem 1.8rem"}}const GX={"home-pattern":"_home-pattern_101d0_91"},[FX]=_e("pages-background-image-index"),$O=le({name:FX,props:{src:String,imgStyle:Object},setup(e,{slots:t}){return()=>{var r,s,i,c,l;const{isShowFestivalBgPattern:n,isHolidayThemeVisible:o}=nn(),a=(r=zc.bgPatternStyle)!=null?r:{};return w(gt,null,[(!o||o&&!n)&&((s=t.customizeBgImg)==null?void 0:s.call(t))||w(Ve,{tag:"section",class:[GX["home-pattern"],"home-pattern"],style:Pe(Fs(a,["backgroundImage"]),(i=e.imgStyle)!=null?i:{}),src:(l=(c=e.src)!=null?c:a.backgroundImage)!=null?l:"",lazy:!1},null)])}}}),YO=Symbol("ActivityController");var Ia=(e=>(e.viewport="viewport",e.overlay="overlay",e.pageVisible="pageVisible",e.activated="activated",e.enabled="enabled",e))(Ia||{});function WX(e,t){const{hasOpeningDialog:n}=cn(),o=C(()=>!n.value),a=vt(new Map([[Ia.viewport,O(!1)],[Ia.overlay,o],[Ia.pageVisible,O(!0)],[Ia.activated,O(!0)],[Ia.enabled,O(!0)]]));function r(c,l=!0){if(a.has(c))return a.get(c);const u=O(l);return a.set(c,u),u}function s(c,l){c===Ia.overlay&&t&&console.warn("[useActivityController] æ æ³ä¿®æ¹åªè¯»signal"),a.has(c)?a.get(c).value=l:t&&console.warn(`[useActivityController] ä¸åå¨ key ${c}`)}return{isActive:C(()=>{let c=!0;const l=e?ua(e):[];return a.forEach((u,d)=>{!u.value&&!l.includes(d)&&(c=!1)}),c}),updateSignal:s,registerSignal:r}}const Sy=le({name:"ActivityController",props:{ignoredSignals:{type:Array},domRef:{type:Object},debug:{type:Boolean,default:!1}},setup(e,{slots:t,expose:n}){const o=WX(e.ignoredSignals,e.debug);mt(YO,o);const a=gs();n(o);const r=e.domRef||O(null);let s=()=>{};const i=()=>{s(),r.value&&(s=ec.addLazyBox(r.value,{callback:()=>{o.updateSignal(Ia.viewport,!0)},keepObserver:!0,leaveCallback:()=>{o.updateSignal(Ia.viewport,!1)}}))},c=()=>{if(!a||a.isUnmounted||!a.subTree)return null;let u=a.subTree.el;for(;u&&u.nodeType!==Node.ELEMENT_NODE;)u=u.nextElementSibling;u&&(r.value=u)};fe(()=>r.value,(u,d)=>{u&&u!==d&&i(),u||s()},{immediate:!0});const l=()=>{o.updateSignal(Ia.pageVisible,!document.hidden)};return Gt(()=>{e.domRef||(e.debug&&console.warn("[ActivityController] è¯·ä¼ é domRef 屿§ï¼ä»¥æé«æ§è½"),c()),document.addEventListener("visibilitychange",l)}),fa(()=>{s(),document.removeEventListener("visibilitychange",l)}),qa(()=>{o.updateSignal(Ia.activated,!0)}),za(()=>{o.updateSignal(Ia.activated,!1)}),Dw(()=>{e.domRef||c()}),()=>{var u;return(u=t.default)==null?void 0:u.call(t,{controller:o})}}});function VX(e){return le({name:"WithSwipeGuard",props:{...e.props,debug:{type:Boolean,default:!1},customPause:Function,customResume:Function},setup(t,{attrs:n,slots:o,expose:a}){const r=O(),s=He(YO);return fe(()=>s==null?void 0:s.isActive.value,i=>{var c,l;i?(t.debug&&console.log("[WithSwipeGuard] activate"),t.customResume?t.customResume():(c=r.value)==null||c.resume()):(t.debug&&console.log("[WithSwipeGuard] deactivate"),t.customPause?t.customPause():(l=r.value)==null||l.pause())}),a(new Proxy({},{get(i,c){var l;return(l=r.value)==null?void 0:l[c]},has(i,c){return c in(r.value||{})}})),()=>{const{debug:i,customPause:c,customResume:l,...u}=t;return w(e,Te(u,n,{ref:r}),o)}}})}const Cy=VX(OO),$X={mode:{type:Number,default:null},dataMode:{type:Number,default:null},dataList:{type:Array,default:()=>[]},options:{type:Object,default:()=>({})},paginationStyle:{type:Number,required:!1},customerBg:{type:String,default:"",required:!1},noClick:{type:Boolean},autoplayDuration:{type:Number,default:5e3},noTopAppDownload:{type:Boolean},dynamicMainBullets:{type:Number,default:null},maxBannerCount:{type:Number,default:null}},qO=3,YX=(e,t=1e4)=>{const n=ds(),o=O(0),a=qO,r=O(!1),s=O(!1),i=O(null),c=()=>{n.setBannerLoaded(!0)},l=()=>{s.value||(s.value=!0,n.releaseOtherModules())},u=()=>{var _;(_=e.value)==null||_.resume(),l()},d=()=>{var _;(_=i.value)==null||_.call(i),r.value=!0};(async()=>{const _=new Promise(h=>{i.value=h});await Promise.race([zn(t),_]),r.value=!0,u()})();const g=_=>Math.min(_,a);return{bannerCount:o,isAutoplayStarted:r,bannerPreLoadSuccess:d,setBannerLoaded:c,handleAutoPlayImgLoaded:_=>{o.value++;const h=g(_);o.value>=h&&!r.value&&d()}}},qX=(e,t,n)=>e===t||n&&e<qO,zX=(e,t,n)=>e===kt.min&&t<=(n!=null?n:1);var Ig=(e=>(e[e.Default=3]="Default",e[e.Big=6]="Big",e))(Ig||{});const I_={"--swiper-pagination-bottom":Zt("4px"),"--swiper-pagination-bullet-horizontal-gap":Zt("6px"),"--swiper-pagination-bullet-size":Zt("10px"),"--swiper-pagination-bullet-inactive-color":"#fff","--swiper-pagination-color":"#fff","--swiper-pagination-bullet-inactive-opacity":"0.5","--swiper-pagination-bullet-border-radius":Zt("6px"),"--swiper-pagination-bullet-width":Zt("10px"),"--swiper-pagination-bullet-height":Zt("10px")},zO={[Ig.Default]:I_,[Ig.Big]:{...I_,"--swiper-pagination-bottom":Zt("5px"),"--swiper-pagination-bullet-horizontal-gap":Zt("3px"),"--swiper-pagination-bullet-width":Zt("27px"),"--swiper-pagination-bullet-height":Zt("6px")}},jX=e=>e.length>0&&e.length<4?Array.from({length:4},(t,n)=>e[n%e.length]):e,KX=e=>e.length>=5?[e[0],...e.slice(4)]:e.length>0?[e[0]]:[],QX=e=>
104[e[1],e[2],e[3]].filter(Boolean),XX=Oa(()=>V(()=>import("./quickJump.impl.rdgXZ8YZ.js"),__vite__mapDeps([0,1,3,4,5,6])),e=>e,"QuickJump"),{quickJump:ZX}=XX;function JX(){const e=ds(),{initialBannerData:t,finalBannerData:n,finalBannerMode:o}=St(e),a=({mode:d=o.value,dataList:m=n.value})=>{var f;const g={[kt.default]:()=>m.length>=2,[kt.big]:()=>m.length>=2,[kt.min]:()=>m.length>3,[kt.cascading]:()=>t.value.length>3,[kt.middle]:()=>t.value.length>=2,[kt.bigSide]:()=>t.value.length>=5};return{isSingleList:(m==null?void 0:m.length)===1,noList:(m==null?void 0:m.length)===0,showCarousel:((f=g[d])==null?void 0:f.call(g))||!1}},r=d=>{if(!d)return;const{id:m,location_name:g,location_type:f,location_value:_}=d;Re.doReport({rule:Re.rules.SENSOR_BURIED,eventName:Re.sensorEvents.BannerClick,payload:{banner_material_id:m,hyper_page_title:g,hyper_page_type:f,hyper_page_url:_}}),ZX({...d,location_id:d.location_type,payEntryId:rc.BANNER})},s=vt({loop:!0,slidesPerView:1,spaceBetween:0,style:I_}),i=vt({...s,slidesPerView:3,spaceBetween:Ga("0.1rem")}),c=vt({...s,centeredSlides:!0,effect:"coverflow",coverflowEffect:nZ({stretch:d=>d*1.5,depth:300,modifier:1,slideShadows:!1,perspective:d=>d*12,activeSlideWidth:320,activeSlideHeight:95,sideSlideWidth:250,sideSlideHeight:74})}),l=vt({...s,style:zO[Ig.Big]}),u=vt({...s,loop:!0,slidesPerView:1});return{getCurBannerDataType:a,defaultBannerOptions:s,minBannerOptions:i,cascadingBannerOptions:c,bigBannerOptions:l,bigSideBannerOptions:u,onBannerClick:r}}const eZ=e=>t=>{if(t!==void 0)return typeof t=="function"?t(e):t*(e/LO)},tZ=(e,t)=>{const{stretch:n,sideSlideEdgeMargin:o,sideSlideWidth:a}=e;return o!==void 0&&a!==void 0?$K*(t/LO)/2-o-a/2:typeof n=="function"?n(t):n!==void 0?n:t*jK};function nZ(e={}){var i,c,l,u,d;const t=gf(),n=eZ(t),o=n(e.activeSlideWidth),a=n(e.sideSlideWidth),r=n(e.sideSlideEdgeMargin),s=tZ({stretch:e.stretch,sideSlideEdgeMargin:r,sideSlideWidth:a},t);return{rotate:(i=e.rotate)!=null?i:0,stretch:s,depth:(c=e.depth)!=null?c:S_,modifier:(l=e.modifier)!=null?l:1,slideShadows:(u=e.slideShadows)!=null?u:!1,perspective:typeof e.perspective=="function"?e.perspective(t):(d=e.perspective)!=null?d:t*KK,activeSlideWidth:o,activeSlideHeight:n(e.activeSlideHeight),sideSlideWidth:a,sideSlideHeight:n(e.sideSlideHeight)}}const oZ=()=>{const{skinType:e}=nn();return Be.CYAN_BLUE,Be.THEME_32,Be.THEME_46,Be.THEME_53,Be.THEME_64,{clubBannerMode:C(()=>"")}},aZ=e=>{const t=ds(),{bannerLoaded:n,initialBannerData:o,finalBannerData:a,finalBannerMode:r}=St(t),{clubBannerMode:s}=oZ(),{getCurBannerDataType:i,defaultBannerOptions:c,minBannerOptions:l,cascadingBannerOptions:u,bigBannerOptions:d,bigSideBannerOptions:m,onBannerClick:g}=JX();e.dataMode&&t.setBannerDataMode(e.dataMode);const f=C(()=>{var B;return s.value?s.value:(B=e.mode)!=null?B:r.value}),_=C(()=>{var Y;const B=e.dataList&&e.dataList.length>0?e.dataList:a.value,E=(Y=e.maxBannerCount)!=null?Y:20;return B.slice(0,E)}),h=C(()=>f.value===kt.bigSide?[...y.value,...b.value]:_.value),p=C(()=>jX(_.value)),y=C(()=>KX(p.value)),b=C(()=>QX(p.value)),v=C(()=>i({mode:f.value,dataList:_.value})),A=C(()=>v.value.noList),L=C(()=>{var B;return(B=h.value)==null?void 0:B.map(E=>E.stay_time?E.stay_time*1e3:e.autoplayDuration)}),T={[kt.cascading]:u,[kt.min]:l,[kt.big]:d,[kt.bigSide]:m},S=C(()=>{var H,F;const B=T[f.value]||c,E={...B.coverflowEffect||{},...((H=e.options)==null?void 0:H.coverflowEffect)||{}},Y={...B,...e.options,...(F=e.options)!=null&&F.coverflowEffect?{coverflowEffect:E}:{}};return e.paginationStyle&&(Y.style={...zO[e.paginationStyle]}),Y}),I=C(()=>f.value===kt.cascading&&(o.value.length===2||o.value.length===3)?1:0),R=C(()=>_.value.length),D=C(()=>f.value===kt.big);return{bannerLoaded:n,isBigBanner:D,curBannerMode:f,curBannerList:_,renderBannerList:h,leftBannerList:y,rightBannerList:b,curBannerDataType:v,bannerItemStayTimes:L,indicatorCount:R,curBannerOptions:S,hasNoListType:A,onBannerClick:g,defaultBannerOptions:c,initialSlideIndex:I,handleBaseBannerClick:B=>{e.noClick||g(B)}}};function rZ(){const e=on(),t=O(!1);let n,o,a,r=!1,s=!1;const i=()=>{o==null||o(),o=void 0,a!==void 0&&(clearTimeout(a),a=void 0),n==null||n.cancel(),n=void 0},c=()=>
104{if(!r||t.value||o||n)return;const l=()=>{if(o==null||o(),o=void 0,a!==void 0&&(clearTimeout(a),a=void 0),!r||t.value||n)return;const u=Fa.schedule(()=>{r&&(t.value=!0)},{priority:"normal",label:$o.BannerRestImages});n=u,u.promise.catch(()=>{}).finally(()=>{n===u&&(n=void 0)})};if(e.hotGameList.length>0){l();return}o=fe(()=>e.hotGameList.length,u=>{u>0&&l()}),a=setTimeout(l,5e3)};return Gt(()=>{s=!0,r=!0,c()}),qa(()=>{r=!0,s&&c()}),za(()=>{r=!1,i()}),Kn(()=>{r=!1,i()}),{restBannersEager:t}}class sZ{constructor(){x(this,"isBannerFirstImgLoaded",!1)}getCurFirstImgSrc(t=[]){const{img_style:n,img_url:o,img_color:a}=t[0];return[ar.IMG_LEFT,ar.IMG_RIGHT].includes(n)&&o.includes("system_message_set")||n===ar.CUSTOMIZE?o:a}judgeIsBannerFirstImgLoaded(t=[]){const{firstImgSrc:n}=St(ds());if(!t[0])return;const o=this.getCurFirstImgSrc(t),a=qs(o!=null?o:"");typeof n.value!="undefined"&&n.value===a&&(this.isBannerFirstImgLoaded=!0)}recordFirstImgLoaded(t,n=[]){if(this.isBannerFirstImgLoaded)return;const o=this.getCurFirstImgSrc(n);t===o&&(this.isBannerFirstImgLoaded=!0,ds().setFirstImgSrc(o))}}const iZ=()=>{const e=O(),t=O(!1),n=O(new sZ);return{swipeExpose:e,loadImgListLazy:n,swipeAutoPlayPause:()=>{e.value&&(t.value=!0,e.value.pause())},swipeAutoPlayResume:()=>{e.value&&t.value&&e.value.resume()}}},cZ="_common_bganimation_1w0zz_1",aC={"banner-skeleton":"_banner-skeleton_1w0zz_91",common_bganimation:cZ,"banner-skeleton-3":"_banner-skeleton-3_1w0zz_99","banner-skeleton-4":"_banner-skeleton-4_1w0zz_103","banner-skeleton-5":"_banner-skeleton-5_1w0zz_107","banner-skeleton-6":"_banner-skeleton-6_1w0zz_111","banner-skeleton-7":"_banner-skeleton-7_1w0zz_115"},[lZ]=_e("banner-components-banner-skeleton"),uZ=le({name:lZ,props:{bannerMode:{type:Number,default:null}},setup(e){return()=>w("div",{class:[aC["banner-skeleton"],aC[`banner-skeleton-${e.bannerMode}`]]},null)}}),dZ="_content_1e3d3_119",mZ="_text_1e3d3_119",Ho={"banner-item":"_banner-item_1e3d3_92","bg-img":"_bg-img_1e3d3_98","bg-img-1":"_bg-img-1_1e3d3_106","bg-img-2":"_bg-img-2_1e3d3_109","bg-img-3":"_bg-img-3_1e3d3_112","bg-cusomize-correction":"_bg-cusomize-correction_1e3d3_115",content:dZ,text:mZ,"hidden-title-text":"_hidden-title-text_1e3d3_119","inner-img-box":"_inner-img-box_1e3d3_131","inner-img":"_inner-img_1e3d3_131","inner-null":"_inner-null_1e3d3_141","publicity-name":"_publicity-name_1e3d3_157","customer-bg":"_customer-bg_1e3d3_175","mode-3":"_mode-3_1e3d3_182","mode-7":"_mode-7_1e3d3_182","mode-4":"_mode-4_1e3d3_228","mode-5":"_mode-5_1e3d3_293","mode-8":"_mode-8_1e3d3_337","mode-6":"_mode-6_1e3d3_345"},gZ=gn({loader:()=>V(()=>import("./1_PromotionChunk.DiibOkmm.js").then(e=>e.ae),__vite__mapDeps([0,1,3,4,5,6,7,8,9]))}),[fZ]=_e("banner-components-base-banner"),pZ=le({name:fZ,props:{item:{type:Object,default:()=>({})},mode:{type:Number,default:null},customerItemBg:{type:String,default:""},dir:{type:String,default:""},fetchPriority:{type:String,default:"auto"},eager:{type:Boolean,default:!1}},emits:["click","imgsLoaded","bgResolved"],setup(e,{emit:t}){Gt(()=>{s()});const n={root:".swiper",rootMargin:"0px 100%",syncFastPath:!1},o=()=>e.eager?"force-false":!0,a=O(0),r=C(()=>e.item.img_url.includes("system_message_set")&&[ar.IMG_LEFT,ar.IMG_RIGHT].includes(e.item.img_style)),s=()=>
104{if(e.item.img_style===ar.CUSTOMIZE||r.value)a.value=1;else{const{bgImg:u,innerImg:d}=c.value;a.value=[u,d].filter(m=>m).length}},i=()=>{a.value--,a.value<=0&&t("imgsLoaded",c.value)},c=C(()=>{const u={};return e.item.img_style===ar.CUSTOMIZE?u.bgImg=e.item.img_url:(u.bgImg=e.item.img_color,u.innerImg=e.item.img_icon),r.value&&(u.bgImg=e.item.img_url,u.innerImg="",u.isCombinedPicture=!0),u}),l=()=>{var u,d,m,g;return w(gt,null,[w("div",{class:Ho["inner-img-box"]},[c.value.isCombinedPicture?w("div",{class:Ho["inner-null"]},null):w(Ve,{useSkeleton:!0,lazy:o(),lazyOptions:n,src:(u=c.value)==null?void 0:u.innerImg,class:{[Ho["inner-img"]]:!0},onLoad:i},null)]),w("div",{class:Ho.content,style:{"--banner-stroke-width":(d=e.item)!=null&&d.textStroke?`${e.item.textStroke}px`:"0","--banner-stroke-color":(m=e.item)!=null&&m.textStroke&&((g=e.item)==null?void 0:g.strokeColor)||"transparent"}},[e.item.hidden===oh.SHOW&&w("span",{class:Ho["publicity-name"]},[e.item.publicity_name]),!!e.item.content&&w(gZ,{class:[Ho.text,e.item.hidden!==oh.SHOW?Ho["hidden-title-text"]:""],scaleStyle:{width:"100%"},mode:"innerHTML",unit:"rem",html:e.item.content,remUnit:40,needAddRootFontSize:!1},null)])])};return()=>w("div",{class:[Ho["banner-item"],Ho[`mode-${e.mode}`]],onClick:()=>t("click",e.item),dir:"ltr"},[e.customerItemBg&&w(Ve,{src:e.customerItemBg,class:Ho["customer-bg"],lazy:o(),lazyOptions:n},null),w(Ve,{tag:"div",useSkeleton:!0,lazy:o(),lazyOptions:n,fetchPriority:e.fetchPriority,degrade:!0,src:c.value.bgImg,class:{[Ho["bg-img"]]:!0,[Ho[`bg-img-${e.item.img_style}`]]:!0,[Ho["bg-cusomize-correction"]]:e.item.img_style===ar.CUSTOMIZE&&e.mode===kt.default,[Ho["bg-img-merge"]]:c.value.isCombinedPicture},onLoad:u=>{i(),u!=null&&u.payload&&t("bgResolved",u.payload)}},{default:()=>[e.item.img_style!==ar.CUSTOMIZE&&l()]})])}}),hZ="_common_bganimation_1rcmv_1",_Z="_topAd_1rcmv_213",Bi={"banner-container":"_banner-container_1rcmv_91","banner-skeleton":"_banner-skeleton_1rcmv_143",common_bganimation:hZ,"banner-skeleton-3":"_banner-skeleton-3_1rcmv_151","banner-skeleton-4":"_banner-skeleton-4_1rcmv_155","banner-skeleton-5":"_banner-skeleton-5_1rcmv_159","banner-skeleton-6":"_banner-skeleton-6_1rcmv_163","banner-skeleton-7":"_banner-skeleton-7_1rcmv_167","banner-skeleton-8":"_banner-skeleton-8_1rcmv_171","banner-box-3":"_banner-box-3_1rcmv_175","banner-box-4":"_banner-box-4_1rcmv_178","banner-box-5":"_banner-box-5_1rcmv_181","banner-box-6":"_banner-box-6_1rcmv_184","banner-box-7":"_banner-box-7_1rcmv_187","banner-box-8":"_banner-box-8_1rcmv_190",topAd:_Z,"side-big-left":"_side-big-left_1rcmv_286","side-big-right":"_side-big-right_1rcmv_301","side-big-right-item":"_side-big-right-item_1rcmv_306"};function rC(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ao(e)}const[bZ]=_e("banner-components-side-big-banner"),yZ=le({name:bZ,props:{leftList:{type:Array,required:!0},rightList:{type:Array,required:!0},swipeExpose:{type:Object,required:!0},options:{type:Object,required:!0},autoplayStarted:{type:Boolean,default:!1},autoplayDuration:{type:Number,default:5e3},itemStayTimes:{type:Array,default:()=>[]},showIndicators:{type:Boolean,default:!1},dynamicMainBullets:{type:Number,default:null},dir:{type:String,default:"ltr"},renderItem:{type:Function,required:!0}},emits:["change"],setup(e,{emit:t}){const n=C(()=>e.leftList.length<=1),o=C(()=>{var r;const a=(r=e.swipeExpose.value)==null?void 0:r.$el;return a instanceof HTMLElement?a:void 0});return()=>{let a;return w(gt,null,[w("div",{class:[Bi["side-big-left"]]},[w(Sy,{domRef:o},{default:()=>[w(Cy,Te({ref:e.swipeExpose},e.options,{autoplay:n.value||!e.autoplayStarted?0:e.autoplayDuration,itemStayTimes:e.autoplayStarted?e.itemStayTimes:void 0,loop:n.value?!1:e.options.loop,touchable:!n.value,showIndicators:e.showIndicators,dynamicMainBullets:e.dynamicMainBullets||e.leftList.length,useInBanner:!0,onChange:r=>t("change",r),dir:e.dir}),rC(a=e.leftList.map((r,s)=>{let i;return w(Tf,{key:s},rC(i=e.renderItem(r,s))?i:{default:()=>[i]})}))?a:{default:()=>[a]})]})]),w("div",{class:[Bi["side-big-right"]]},[e.rightList.map((r,s)=>w("div",{class:[Bi["side-big-right-item"]],key:s},[e.renderItem(r,e.leftList.length+s,!1)]))])])}}}),vZ={targetStyle:{type:Number,default:qr.TOP},downLoadBtnBg:{type:String,required:!1},backGroundImage:{type:String,required:!1},closeIcon:{type:String,required:!1,default:"/lobby_asset/common/web/common/comm_icon_x.svg"}},SZ=e=>{const{openMiddleDownloadDialog:t}=ad(),n=zo(),{bootInstallation:o,bootInstallationStatus:a,bootInstallationStatusShowTimes:r}=ss(n),{brandLogoInfos:s}=ss(Ze()),{isHiddenByTgMiniApp:i}=yf(),c=C(()=>!!a.value[e]),l=(m,g,f)=>{var L,T;if(f===db.CLOSED||!Xb(g))return;const{isHiddenAppEnter:_}=Ut();if(_||i.value||m!==k.GAME&&m!==k.HOME&&m!==k.CASINO)return;const{bootInstallationStyle:h,bootInstallationStyles:p}=(L=s.value)!=null?L:{};if(!(p!=null&&p.length?p==null?void 0:p.includes(`${e}`):`${e}`==`${h}`))return;const{forceInstall:b}=(T=o.value)!=null?T:{},v=r.value[e];!(b===$g.OPENED)&&v||n.setBootInstallationStatusHandler(e,!0)},u=Bn();return fe(()=>{var m,g;return[u.name,(m=s.value)==null?void 0:m.combinationSwitch,(g=s.value)==null?void 0:g.bootInstallationSwitch]},()=>{var m,g;return l(u.name,(m=s.value)==null?void 0:m.combinationSwitch,(g=s.value)==null?void 0:g.bootInstallationSwitch)},{immediate:!0}),{showDownload:c,openMiddleDownloadDialog:t,handleCloseShowDownload:async()=>{n.setBootInstallationStatusHandler(e,!1)},brandLogoInfos:s}},CZ=Object.assign({},yO,{formatTwoChineseCharacters:{type:Boolean,default:!0},tag:Io("button"),text:[String,Function],icon:String,type:Io("default"),size:Io("normal"),color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,allowDisabledClick:Boolean,iconPrefix:String,nativeType:Io("button"),loadingSize:po,loadingText:[String,Function],clearBackgroun
104d:Boolean,iconPosition:Io("left")}),sC=(e,t=" ")=>{if(typeof e!="string")return e;const n=e.replace(/\s+/g,""),o=/^([\u4e00-\u9fa5])([\u4e00-\u9fa5])$/;return o.test(n)?n.replace(o,`$1${t}$2`):e};_w('<symbol aria-hidden="true" viewBox="0 0 1024 1024" id="ui-loading-5695ed"><path d="M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z" /></symbol>',"ui-loading-5695ed");const wZ="ui-loading-5695ed",[IZ,AZ]=Wt("loading-icon"),LZ=le({name:IZ,props:{color:{type:String,default:"var(--skin__primary)"}},setup(e){return()=>w(_f,{name:wZ,color:e.color,class:[AZ(),go.Animated,go.Repeat.Infinite,go.Actions.Spin,go.Speed.Slow]},null)}}),[TZ,iC]=Wt("loading"),RZ=le({name:TZ,props:{iconColor:{type:String,default:"var(--skin__primary)"}},setup(e,{slots:t}){return()=>{var n,o;return w("div",{class:iC()},[(o=(n=t.default)==null?void 0:n.call(t))!=null?o:w(LZ,{class:iC("icon"),color:e.iconColor},null)])}}});function OZ(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ao(e)}const jO=le({name:"SmoothResizeTransition",props:{visible:{type:Boolean,default:!0},dimension:{type:String,default:"height"},alignment:{type:String,default:"bottom"},duration:{type:Number,default:300}},setup(e,{slots:t}){const n=O(null),o=u=>{const d=u;d.style[e.dimension]="0",d.style.overflow="hidden"},a=async(u,d)=>{const m=u;if(m.addEventListener("transitionend",d,{once:!0}),await yt(),n.value){const g=getComputedStyle(n.value)[e.dimension];m.style[e.dimension]=g==="0px"?"100%":g}},r=u=>{const d=u;d.style[e.dimension]="",d.style.overflow=""},s=u=>{const d=u;d.style[e.dimension]=`${getComputedStyle(d)[e.dimension]}`,d.style.overflow="hidden"},i=async(u,d)=>{const m=u;m.addEventListener("transitionend",d,{once:!0}),await yt(),m.style[e.dimension]="0"},c=u=>{r(u)},l=()=>{switch(e.alignment){case"top":return{justifyContent:"flex-start",flexDirection:"column"};case"bottom":return{justifyContent:"flex-end",flexDirection:"column"};case"left":return{justifyContent:"flex-start"};case"right":return{justifyContent:"flex-end"}}};return()=>{let u;return w(G_,{onBeforeEnter:o,onEnter:a,onAfterEnter:r,onBeforeLeave:s,onLeave:i,onAfterLeave:c},OZ(u=ll(()=>!0)(()=>vr(w("div",{style:{...l(),transition:`${e.dimension} ${e.duration}ms`,display:"flex",overflow:"hidden"}},[w("div",{ref:n,style:{flexShrink:0}},[t.default?t.default():null])]),[[is,e.visible]])))?u:{default:()=>[u]})}}});function cC(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ao(e)}const[PZ,li]=Wt("button"),KO=le({name:PZ,props:CZ,emits:["click","tap"],setup(e,{emit:t,slots:n}){const o=vO(),a=()=>n.loading?w("span",{class:li("loading")},[n.loading()]):w(RZ,{class:li("loading"),iconColor:"currentColor"},null),r=()=>{if(e.loading)return a();if(n.icon)return w("span",{class:li("icon")},[n.icon()]);if(e.icon)return w(SR,{class:li("icon")},null)},s=()=>{let f;return w(jO,{visible:e.loading,dimension:"width",alignment:"left"},{default:()=>[w(G_,{name:wu.Fade},cC(f=r())?f:{default:()=>[f]})]})},i=(f,_)=>_?typeof f=="string"?sC(f):f.type===tP?sC(f.children):f:f,c=()=>{let f=n.default?n.default():typeof e.text=="function"?e.text():e.text;if(e.loading&&e.loadingText&&(f=typeof e.loadingText=="function"?e.loadingText():e.loadingText),f){const _=typeof f=="string"?[f]:f;return w("span",{class:li("text")},[_.map(h=>i(h,e.formatTwoChineseCharacters))])}},l=()=>{const{color:f,plain:_,clearBackground:h}=e;let p={};return h&&(p.background="transparent"),f&&(p={color:_?f:"white"},_||(p.background=f),f.includes("gradient")?p.border=0:p.borderColor=f),p},u=f=>{e.loading?v_(f):(!e.disabled||e.allowDisabledClick)&&(t("click",f),o())},d=f=>{g(f)},m=f=>{g(f)},g=qn(f=>{e.loading?v_(f):(!e.disabled||e.allowDisabledClick)&&(t("tap",f),o())},100);return()=>{let f;const{tag:_,type:h,size:p,block:y,round:b,plain:v,square:A,loading:L,disabled:T,allowDisabledClick:S,hairline:I,nativeType:R,iconPosition:D}=e,M=[li([h,p,{plain:v,block:y,round:b,square:A,loading:L,disabled:T,hairline:I}]),{[LK]:I}],B=()=>{var Y;const E=()=>w("div",{class:li("content")},[D==="left"&&s(),c(),D==="right"&&s()]);return n.badge?(Y=n.badge)==null?void 0:Y.call(n,E):E()};return w(_,{type:R,class:M,style:l(),disabled:T&&!S,onClick:u,onMousedown:d,onTouchstart:m}
104,cC(f=B())?f:{default:()=>[f]})}}}),DZ={src:{type:String,default:"",required:!0},iconProps:{type:Object,default:()=>{}},imgProps:{type:Object,default:()=>{}},useImage:{type:Boolean,default:!1},width:String,height:String,onClick:{type:Function}},[MZ]=Wt("smartMedia"),ld=le({name:MZ,props:DZ,setup(e){var i,c;if(e.useImage)return()=>w(Ve,Te({src:e.src,useSkeleton:!0},e.imgProps),null);const t=!!((c=(i=window==null?void 0:window.LOBBY_SITE_CONFIG)==null?void 0:i.INJECT_DATA)!=null&&c.ossGetSkinHomeSvgSprite),n=C(()=>{if(!Et.useSvgSprite()||!t)return!1;if(e.src.toLowerCase().endsWith(".svg"))return!0;const d=e.src.lastIndexOf("/");return!e.src.includes(".",d+1)}),o=C(()=>e.src.indexOf("/")>=0?(e.src.split("/").pop()||"").split(".").slice(0,-1).join("."):e.src),a=C(()=>{var l;return{svgInheritSize:((l=e.iconProps)==null?void 0:l.inheritSize)||!1,...e.imgProps}}),r=l=>!l||["initial","auto","inherit","unset","revert","revert-layer","none"].includes(l.trim().toLowerCase()),s=C(()=>{const l={};return r(e.width)||(l.width=e.width),r(e.height)||(l.height=e.height),l});return()=>n.value?w(_f,Te({name:o.value,size:s.value},e.iconProps,{onClick:e.onClick}),null):w(Ve,Te({src:e.src,width:e.width,height:e.height,useSkeleton:!0},a.value,{onClick:e.onClick}),null)}}),ud=ld,Pr={"top-download":"_top-download_s6ood_91","top-download-close":"_top-download-close_s6ood_100","top-download-content":"_top-download-content_s6ood_107","top-download-inner-html":"_top-download-inner-html_s6ood_115","top-download-info":"_top-download-info_s6ood_132","top-download-title":"_top-download-title_s6ood_137","top-download-msg":"_top-download-msg_s6ood_151","download-mode-1":"_download-mode-1_s6ood_180","download-mode-0":"_download-mode-0_s6ood_199"};function lC(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ao(e)}const[NZ]=_e("top-download"),QO=le({name:NZ,props:vZ,setup(e){const{openMiddleDownloadDialog:t,handleCloseShowDownload:n,showDownload:o}=SZ(e.targetStyle),a=Ze(),{t:r}=we(),s=Ge(),{isHiddenAppEnter:i}=ss(Ut()),{isHiddenByTgMiniApp:c}=yf(),l=O(!0),u=m=>l.value&&o.value?m:w(jO,{visible:o.value},lC(m)?m:{default:()=>[m]}),d=C(()=>{var m,g,f;return((m=a.brandLogoInfos)==null?void 0:m.iconType)===mb.SYSTEM?(g=a.channelGlobalConfig)==null?void 0:g.appIcon:(f=a.brandLogoInfos)==null?void 0:f.iconLanguages});return()=>{var ae,me,de,ne;let m;if(i.value||c.value||dt.enable)return null;const{bootInstallationIconSwitch:g,type:f,brandName:_,topIconColor:h,topBgColor:p,topIconTextColor:y,topDownloadText:b,customizeH5Config:v,h5Config:A}=(ae=a.brandLogoInfos)!=null?ae:{},L=f===Nu.CUSTOM?v:A,{placement:T,iconDownloadColor:S,bgColor:I,iconCloseColor:R,brandNameColor:D,downloadLogoUrlLanguage:M,downloadTextColor:B}=L||{},E=f===Nu.IMA_TXT?_:null,Y=((me=M==null?void 0:M.find(U=>U.key.includes(s.language)))==null?void 0:me.value)||null,H=((ne=(de=b==null?void 0:b.installationHintLanguage)==null?void 0:de.find(U=>U.key.includes(s.language)))==null?void 0:ne.value)||null,F=h||S,Q=h||R,G=p||I,N={};G&&(N["--top_bg_color"]=G),Q&&(N["--top_close_icon_color"]=Q),F&&T!=="middle"&&(N["--top_download_icon_color"]=F),y&&(N["--top_icon_text_color"]=y);const $=!!e.backGroundImage,X=$?Ve:"div",j=!!e.downLoadBtnBg,te=j?Ve:"div",K=$?{tag:"div",src:e.backGroundImage,lazy:!1}:{},q=j?{tag:"div",src:e.downLoadBtnBg,lazy:!1}:{};return u(w(X,Te({class:[Pr["top-download"],Pr[`download-mode-${e.targetStyle}`]],style:{...N},onClick:()=>t(),id:"loadClick","data-sensors-click":!0},K),{default:()=>[w("span",{class:Pr["top-download-close"],onClick:U=>{U.stopPropagation(),l.value=!1,setTimeout(()=>{n()})}},[w(ud,{src:e.closeIcon},null)]),w("div",{class:Pr["top-download-content"]},[g===_A.OPENED&&d.value?w(Ve,{src:d.value,lazy:!1},null):null,H?w(Gu,{class:Pr["top-download-inner-html"],html:l5(H,1),format:U=>U},null):null,!H&&E?w("div",{class:Pr["top-download-info"]},[w("p",{class:Pr["top-download-title"],style:{color:D}},[w("p",null,[E])]),w("p",{class:Pr["top-download-msg"],style:{color:B}},[H?w(Gu,{html:H,format:U=>U},null):w("p",null,[Y])])]):null]),w(te,Te({class:Pr["btn-bg"]},q),{default:()=>[w(KO,{type:"primary",style:{border:T==="middle"?`${F} thin solid`:void 0,color:T==="middle"?F:void 0}},lC(m=r("lobby.gameMenu.toDownloadApp"))?m:{default:()=>[m]})]})]}))}}});function uC(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ao(e)}const[kZ]=_e("pages-game-banner"),BZ=le({name:kZ,emits:["changeBanner"],props:$X,setup(e,{slots:t,emit:n}){const o=Ge(),{skinType:a}=nn(),{bannerLoaded:r,curBannerMode:s,curBannerList:i,renderBannerList:c,curBannerDataType:l,bannerItemStayTimes:u,indicatorCount:d,curBannerOptions:m,hasNoListType:g,initialSlideIndex:f,handleBaseBannerClick:_,leftBannerList:h,rightBannerList:p}=aZ(e),{swipeExpose:y,loadImgListLazy:b,swipeAutoPlayPause:v,swipeAutoPlayResume:A}=iZ(),{setBannerLoaded:L,handleAutoPlayImgLoaded:T,isAutoplayStarted:S}=YX(y),I=Q=>{if(s.value===kt.bigSide){b.value.recordFirstImgLoaded(Q.bgImg,c.value),T(c.value.length);return}b.value.recordFirstImgLoaded(Q.bgImg,i.value),T(i.value.length)},R=Q=>{n("changeBanner",Q)},D=C(()=>
104o.isRtlLanguage&&a===Be.EUROPEAN_AMERICAN?"rtl":"ltr"),M=C(()=>zX(s.value,c.value.length,m.value.slidesPerView));fe(()=>i.value,()=>{b.value.judgeIsBannerFirstImgLoaded(s.value===kt.bigSide?c.value:i.value)},{immediate:!0});const B=ds(),{restBannersEager:E}=rZ(),Y=(Q,G,N)=>{const $=G===f.value,X=N!=null?N:qX(G,f.value,E.value);return w(pZ,{dir:"ltr",item:Q,mode:s.value,customerItemBg:e.customerBg,eager:X,fetchPriority:$?"high":"auto",onClick:_,onImgsLoaded:I,onBgResolved:$?j=>B.persistLcpBannerUrl(j):void 0},null)},H=C(()=>{var G;const Q=(G=y.value)==null?void 0:G.$el;return Q instanceof HTMLElement?Q:void 0}),F=()=>{var G;let Q;return g.value?(G=t.default)==null?void 0:G.call(t):s.value===kt.bigSide?w(yZ,{leftList:h.value,rightList:p.value,swipeExpose:y,options:m.value,autoplayStarted:S.value,autoplayDuration:e.autoplayDuration,itemStayTimes:u.value,showIndicators:l.value.showCarousel,dynamicMainBullets:e.dynamicMainBullets,dir:D.value,renderItem:Y,onChange:R},null):w(Sy,{domRef:H},{default:()=>[w(Cy,Te({ref:y},m.value,{class:[Bi[`banner-box-${s.value}`]],autoplay:S.value&&!M.value?e.autoplayDuration:0,loop:M.value?!1:m.value.loop,touchable:!M.value,showIndicators:l.value.showCarousel,itemStayTimes:S.value?u.value:void 0,"initial-swipe":f.value,dynamicMainBullets:e.dynamicMainBullets||d.value,useInBanner:!0,onChange:N=>R(N),dir:D.value}),uC(Q=c.value.map((N,$)=>{let X;return w(Tf,{key:$},uC(X=Y(N,$))?X:{default:()=>[X]})}))?Q:{default:()=>[Q]})]})};return hs(()=>{L()}),qa(()=>{A()}),za(()=>{v()}),Da({hasNoListType(){return g.value}}),()=>{if(!(l.value.noList&&!t.default))return w("section",{class:[Bi["banner-container"]],dir:"ltr","data-sensors-click":!0,id:"bannerClick"},[r.value?w("div",{class:[Bi[`banner-box-${s.value}`]]},[!e.noTopAppDownload&&w(QO,{dir:o.isRtlLanguage?"rtl":"ltr",targetStyle:qr.BANNER,class:Bi.topAd},null),F()]):w(uZ,{bannerMode:s.value},null)])}}}),HZ={needSpecialExpandIconPosition:{type:Boolean,default:!1},hiddenCollapse:{type:Boolean,default:!1},retryIconSrc:{type:String,default:"/lobby_asset/common/web/common/comm_icon_retry.svg"},retryIconClass:{type:String,default:""},expandIconSrc:{type:String,default:""}},xZ=gn({loader:()=>V(()=>import("./BindNoWallet.De1XmvDP.js"),__vite__mapDeps([0,30]))}),[EZ]=_e("async-bind-no-wallet"),UZ=le({name:EZ,props:HZ,setup(e,{slots:t}){const n=J(),o=vf(),a=ll(()=>o.isOpenNoWallet&&o.isNoWalletConfig);return fe([()=>n.hasLogined,()=>{var r;return(r=n.userInfos)==null?void 0:r.noWalletMerchNo},()=>o.isOpenNoWallet,()=>o.isNoWalletConfig],()=>{o.getUsNoWalletfoData(!0)},{immediate:!0}),a(()=>w(xZ,e,{...t}))}});var la=(e=>(e[e.None=1]="None",e[e.CloseFirstScreen=2]="CloseFirstScreen",e[e.CloseAll=3]="CloseAll",e))(la||{});const GZ=(e,t=2)=>{const n=va.reduceFirstScreenEagerList()?1:t;return e<n?la.CloseFirstScreen:la.None};var XO=(e=>
104(e[e.PLATFORM=133e3]="PLATFORM",e[e.HK6=133001]="HK6",e[e.MO6=133003]="MO6",e[e.JSMMC=133004]="JSMMC",e[e.XYFFC=133005]="XYFFC",e[e.TXFFC=133006]="TXFFC",e[e.HN5FC=133007]="HN5FC",e[e.JND28=133013]="JND28",e[e.PC28=133016]="PC28",e[e.CQSSC=133014]="CQSSC",e[e.JSCQSSC=133015]="JSCQSSC",e))(XO||{}),FZ=(e=>(e.MARKSIX="MARKSIX",e.FFC="FFC",e.MMC="MMC",e.JND28="JND28",e.PC28="PC28",e))(FZ||{}),WZ=(e=>(e.MARKSIX_RED="#ea4e3d",e.MARKSIX_BLUE="#1678ff",e.MARKSIX_GREEN="#04be02",e.MARKSIX_YELLOW="#ffaa09",e.MARKSIX_BROWN="#9c7101",e.JSMMC="#05BF03",e.XYFFC="#F03347",e.HN5FC="#FC6900",e.TXFFC="#F21CE5",e.RED_1="#ea4e3d",e.BLUE_1="#1678ff",e.GREEN_1="#04be02",e.YELLOW_1="#ffaa09",e.BROWN_1="#9c7101",e.GRAY_1="#999999",e))(WZ||{}),VZ=(e=>(e[e.UNSETTLED=0]="UNSETTLED",e[e.SETTLED=1]="SETTLED",e[e.CANCELED=2]="CANCELED",e[e.WITHDRAWN=3]="WITHDRAWN",e[e.EXCEPTION=4]="EXCEPTION",e[e.TIMEOUT=5]="TIMEOUT",e[e.CONFIRMING=6]="CONFIRMING",e))(VZ||{}),$Z=(e=>(e[e.NotWinning=0]="NotWinning",e[e.Draw=1]="Draw",e[e.Winning=2]="Winning",e))($Z||{}),YZ=(e=>(e[e.UNSETTLED=0]="UNSETTLED",e[e.SETTLED=1]="SETTLED",e[e.ALLRECORDS=2]="ALLRECORDS",e))(YZ||{}),qZ=(e=>(e.UNSETTLED="unsettled",e.SETTLED="settled",e.ALLRECORDS="allrecords",e))(qZ||{}),zZ=(e=>(e.WINNING_NUMBERS="winning-numbers",e.SUM_NUMBERS="sum-numbers",e.SPECIAL_NUMBER_INFORMATION="special-number-information",e.FFC_NUMBER="ffc-number",e.DOUBLE_SIDED="double-sided",e))(zZ||{});function jZ(){const e=O(!1),t=O(null),n=O();let o=0;const a=c=>{const l=++o;c().then(u=>{l===o&&(t.value=u!=null&&u.length?null:"empty")}).catch(()=>{l===o&&(t.value="retry",n.value=()=>r(c))}).finally(()=>{e.value=!1,t.value!=="retry"&&t.value!=="empty"&&(t.value=null)})},r=c=>{t.value==="retry"?e.value=!0:t.value="loading",a(c)};return{retryLoading:e,gameListLoadType:t,setGameListLoadType:c=>{t.value=c},retryFunc:n,setLoadingAndFetch:r,getLocalGameListLoadType:c=>!t.value&&!(c!=null&&c.length)?"empty":c!=null&&c.length&&(t.value==="loading"||t.value==="empty")?null:t.value}}function ZO(){const{completeGameCategorieAndExtLinks:e,categorieExtLinks:t,isExternalLink:n}=Sf(),o=on(),{setScrollStickyMenuTab:a}=Ir(),{setLoadingAndFetch:r,gameListLoadType:s,retryLoading:i,retryFunc:c,getLocalGameListLoadType:l}=jZ(),u=O(Z.Hot),d=[Z.Hot,...hh],m=p=>{if(Ow(Z).includes(p)){const b=o.gameCategoriesInfoList.find(v=>v.gameCategoryId===p);return p===Z.Search?(HL(),!1):!(b!=null&&b.listRowCount)||vI.includes(p)?(Cr(p,`${p}${Ta}`),!1):!0}else{const b=t.value.find(v=>(v==null?void 0:v.gameCategoryId)===p);if(b&&n(b)&&b.jumpPosition)return Gb(b.jumpPosition,b.externalLinks,b.openApproach),!1}return!0},g=p=>{var y;return(!p.listRowCount||!((y=p==null?void 0:p.list)!=null&&y.length)||!hh.includes(p.gameCategoryId))&&p.gameCategoryId!==Z.Hot},f=p=>{var y;return(y=p.find(b=>!g(b)))==null?void 0:y.gameCategoryId},_=p=>{const y=Number(p);d.includes(y)&&a(y)},h=C(()=>e.value.map(p=>p.gameCategoryId+p.gameCategoryName).join(","));return fe(()=>[ze().currency,J().isLogined],()=>{r(o.fetchHotGameList)},{immediate:!0}),Gt(()=>{pq("HOME_SCROLL_STICKY_MENU_TAB",p=>{p.gameCategoryId===u.value?(u.value=-1,yt(()=>{u.value=p.gameCategoryId})):u.value=p.gameCategoryId})}),{active:u,gameListLoadType:s,retryLoading:i,retryFunc:c,beforeChange:m,shouldSkipGameListDisplay:g,onChange:_,tabsKey:h,getLocalGameListLoadType:l,HotAndGameCategories:d,getShowFestivalId:f}}const KZ=e=>{const t=_s(),{homeSportCasinoTabsKey:n}=St(t),o=Wu(),{clubTableListMap:a}=o,r="club-menu",{beforeChange:s,shouldSkipGameListDisplay:i,onChange:c,gameListLoadType:l,retryLoading:u,retryFunc:d,active:m}=ZO(),g=O(),f=Ge(),{language:_}=St(f),h=C(()=>["zh","zh_hk"].includes(_.value)),p=C(()=>["zh","zh_hk","fr"].includes(_.value)),{clubGameData:y}=tO(),b=C(()=>n.value===ut.Club),v=C(()=>b.value?r:""),A=C(()=>{var I;const S={[ut.Club]:(I=y.value.clubGameList)==null?void 0:I.map(R=>({...R,value:R.gameId,label:R.gameName})),[ut.Native]:y.value.wgList.map(R=>{const D=U8(R.list).filter(M=>M.gameCategoryId===Z.Lottery?M.gameId===XO.PLATFORM:M.gameType===mn.NormalGame);return{...R,value:R.gameCategoryId,label:R.gameCategoryName,list:D}}).filter(R=>R.list.length),[ut.ThirdParty]:y.value.thirdPartyList.map(R=>({...R,value:R.gameCategoryId,label:R.gameCategoryName}))};return n.value&&n.value!==ut.Sport?S[n.value]:S[ut.Club]}),L=C(()=>({tabVShowMode:!b.value,scrollspy:!b.value})),T=S=>{var I,R;if(b.value&&S){const D=(I=A==null?void 0:A.value)==null?void 0:I.find(M=>M.value===S);(R=D==null?void 0:D.list)!=null&&R.length||(o.getTableListLoading=!0),o.refreshSingleTableList(S)}};return fe(n,S=>{var R,D,M;((R=A==null?void 0:A.value)==null?void 0:R.some(B=>B.value===m.value))||(m.value=(M=(D=A==null?void 0:A.value)==null?void 0:D[0])==null?void 0:M.value),m.value!==ut.Sport&&S===ut.Club&&T(m.value)},{immediate:!0}),fe(()=>Ir().scrollStickyMenuTab,S=>{b.value&&(m.value=S)}),fe(()=>m.value,T),fe(A,S=>{if(!b.value||!(S!=null&&S.length))return;S.some(R=>R.value===m.value)||(m.value=S[0].value)}),qa(()=>{setTimeout(()=>{const S=o.curClubGameId;b.value&&S&&(o.getTableListLoading=!0,o.refreshSingleTableList(S))},200)}
104),{clubTableListMap:a,tabConfig:L,active:m,sideBarRef:g,isClubTab:b,navTabsListOrigin:A,gameListLoadType:l,retryLoading:u,retryFunc:d,clubMenuId:v,homeSportCasinoTabsKey:n,isChinese:h,isNormalBreak:p,onChange:c,beforeChange:s,shouldSkipGameListDisplay:i}},wy=Symbol("LAZY_LOAD_MANAGER"),QZ=30,_ge={[Vr.close]:"å
³éè°è¯ä¿¡æ¯",[Vr.inRootDiv]:"å±ç¤ºå¨æ ¹èç¹",[Vr.inNewDiv]:"å±ç¤ºå¨æ°èç¹"},XZ=()=>{let e,t;const n=s=>{e=s},o=s=>{t=s};let a;return id()!==Sl.close&&(a=setTimeout(async()=>{const{verifyConfAccurate:s}=await V(async()=>{const{verifyConfAccurate:i}=await import("./verifyConfAccurate.BZWctomp.js");return{verifyConfAccurate:i}},[]);try{s({modEle:t,vNode:e})}catch(i){console.error(i)}},(QZ-5)*1e3)),{setSlotDefVNode:n,setModuleEle:o,cleanup:()=>clearTimeout(a)}},ZZ={moduleName:{type:String,required:!0,default:""},isOpen:{type:Boolean,required:!1,default:!1}},JZ=({domRef:e,isShow:t,root:n,rootMargin:o})=>{e||(e=O(void 0)),t||(t=O(!1));let a,r=!1;const s=()=>{a==null||a(),a=void 0},i=()=>{if(s(),!window.IntersectionObserver||!e.value){t.value=!0;return}const c=ua(n);if(n&&!c){t.value=!0;return}t.value=!1,setTimeout(()=>{r||!e.value||(a=ec.addLazyBox(e.value,{root:c,rootMargin:o,callback:()=>{r||(t.value=!0)}}))})};return Gt(()=>i()),fa(()=>{r=!0,s()}),{domRef:e,isShow:t,freshObserve:i,destroyObserve:s}},eJ=e=>{if(!e.isLazy)return{domRef:O(void 0),isShow:O(!0)};const{domRef:t,isShow:n}=JZ({isShow:O(!e.isLazy)});return{domRef:t,isShow:n}},tJ="_skeleton_17n6n_91",dC={skeleton:tJ,"is-unoccupied":"_is-unoccupied_17n6n_99"},A_=(e,{attrs:t})=>{let n={height:e.skeletonHeightRem,marginTop:e.marginTopRem,marginBottom:e.marginBottomRem};return e.isUnoccupied&&(n={}),w("div",Te(t,{"occupied-module-name":`ã${e.moduleName}ã`,class:[dC.skeleton,{[dC["is-unoccupied"]]:e.isUnoccupied}],style:n}),null)},nJ={"debugger-wrap":"_debugger-wrap_gv0l0_91"},xl=()=>C8(id()).debugPosition,[oJ]=_e("lazy-region-index"),ln=le({name:oJ,props:ZZ,setup(e,{attrs:t,slots:n}){var p;const o=He(wy),a=o==null?void 0:o.getModuleEle(e.moduleName),r=ze(),s=()=>{var b;let y={};return xl()!==Vr.close&&(y={"occupied-module-name":`ã${e.moduleName}ã`,...Fs(a,"name","judgeOpen"),isOpen:(b=a==null?void 0:a.judgeOpen())!=null?b:!1},a||(y["data-error"]=`[LazyRegion] [moduleName:${e.moduleName}] no LazyLoadManager provided; pass manager prop or wrap with LazyManagerProvider`)),y},{setModuleEle:i,setSlotDefVNode:c,cleanup:l}=XZ();i(a),Kn(l);const u=y=>{if(y.length!==1)return y;const b=y[0];return b.type===gt&&Array.isArray(b.children)?u(b.children):y},d=y=>{var A;const b=(A=n.default)==null?void 0:A.call(n),v=b&&u(b);if((v==null?void 0:v.length)===1){const L=kn(v[0],y);return c(L),L}return b};if(!a){let y=t;return xl()!==Vr.close&&(y={...s(),...t},console.warn(`debugger: [LazyRegion] [moduleName:${e.moduleName}] no LazyLoadManager provided; pass manager prop or wrap with LazyManagerProvider`)),()=>d(y)}const{domRef:m,isShow:g}=eJ(a);if(a.isLazy&&typeof a.preloadTime=="number"){const y=()=>{var L;const v=(L=n.default)==null?void 0:L.call(n);let A=!1;if(v)for(const T of v){const S=T==null?void 0:T.type;typeof(S==null?void 0:S.__asyncLoader)=="function"&&(S.__asyncLoader().catch(()=>{}),A=!0)}!A&&a.isAsync&&(g.value=!0)},b=Fa.schedule(y,{priority:(p=a.preloadPriority)!=null?p:"low",net:a.preloadOnWeak?"any":"skipWeak",label:$o.LazyRegionPreload});b.promise.catch(()=>{}),Kn(()=>b.cancel())}const f=y=>w(A_,Te(y,{ref:m,moduleName:e.moduleName,skeletonHeightRem:a.skeletonHeightRem,marginTopRem:a.marginTopRem,marginBottomRem:a.marginBottomRem}),null),_=y=>r.isSiteDefaultCurrency?!a.judgeOpen()&&!e.isOpen?xl()!==Vr.close?d(y):w(gt,null,null):g.value?a.isAsync?w(Mw,null,{default:()=>d(y),fallback:()=>f(y)}):d(y):f(y):d(y),h=(y,b)=>w("div",Te({class:nJ["debugger-wrap"]},y),[b]);return()=>{const y=s();return xl()===Vr.inNewDiv?h(y,_(t)):xl()===Vr.inRootDiv?_({...y,...t}):_(t)}}}),Ur=(e,{attrs:t,slots:n})=>w(ln,Te(t,{moduleName:e.moduleName,isOpen:!1}),{default:n.default}),aJ=new RegExp(`^(${Yn.specialInDefault}|${Yn.specialInGameTop}|${Yn.specialInGameBottom}|specialInGameSingle(${cO.join("|")}))$`),L_=(e,{attrs:t,slots:n})=>aJ.test(e.moduleName)?w(ln,Te(t,{moduleName:e.moduleName}),{default:n.default}):w(gt,null,null),rJ={direction:{required:!0,type:String},isHidden:{type:Boolean,default:!1}},$d={"nav-arrow":"_nav-arrow_wn0e9_91","is-hidden":"_is-hidden_wn0e9_105","arrow-icon":"_arrow-icon_wn0e9_108","nav-arrow-left":"_nav-arrow-left_wn0e9_113","nav-arrow-right":"_nav-arrow-right_wn0e9_120"},[sJ]=_e("nav-arrow"),mC=le({name:sJ,props:rJ,emits:["click"],setup(e,{emit:t}){return()=>w("section",{class:{[$d["nav-arrow"]]:!0,[$d[`nav-arrow-${e.direction}`]]:!0,[$d["is-hidden"]]:e.isHidden}},[w(ld,{class:$d["arrow-icon"],src:"/lobby_asset/common/web/common/comm_icon_fh.svg",onClick:()=>t("click")},null)])}}),iJ={type:{type:String},retry:{type:Object,default:()=>({})},loading:{type:Object,default:()=>({})},empty:{type:Object,default:()=>({})}},cJ={[cr.LOGOIMG]:()=>V(()=>import("./LogoImgIndex.CbW5xVyR.js"),__vite__mapDeps([0,1,2,31])),[cr.ARTFONT]:()=>V(()=>import("./1_EmbeddedGameChunk.BX38WWGT.js").then(e=>e.I),__vite__mapDeps([0,1,2])),[cr.TRANSPANTIMG]:()=>V(()=>
104import("./PngTransparentIndex.BV0OPZh7.js"),__vite__mapDeps([0,1,2,32])),[cr.CODESTYLE]:()=>V(()=>import("./1_EmbeddedGameChunk.BX38WWGT.js").then(e=>e.C),__vite__mapDeps([0,1,2])),[cr.PROGRESSBAR]:()=>V(()=>import("./Index.2br5sj0t.js"),__vite__mapDeps([0,1,2,33]))},[lJ,El]=_e("base-loading"),gC=le({name:lJ,props:{backgroundColor:Boolean,bottomText:String,isGlobalLoading:{default:!1,type:Boolean}},setup(e,{slots:t}){const{homeLayoutInfos:n}=ue(),o=Ze(),{hostCombineDomain:a}=Ht(),{commonConfig:r}=n!=null?n:{},s=()=>{var g,f,_,h;const d=r==null?void 0:r.loadingImage;let m=d?`${a}${d}`:"";return((f=(g=o.brandLogoInfos)==null?void 0:g.loadingStyle)==null?void 0:f.type)===cr.CUSTOMGIF&&(m=(h=(_=o.brandLogoInfos)==null?void 0:_.loadingStyle)!=null&&h.loadingImage?`${a}${o.brandLogoInfos.loadingStyle.loadingImage}`:""),w(Ve,{src:m||"/lobby_asset/common/common/animated/loading_1_default.gif",class:El("image")},null)},i=C(()=>{var d,m,g,f,_,h;if(((g=(m=(d=o.brandLogoInfos)==null?void 0:d.loadingStyle)==null?void 0:m.type)!=null?g:cr.CODESTYLE)!==cr.CUSTOMGIF){const p=(h=(_=(f=o.brandLogoInfos)==null?void 0:f.loadingStyle)==null?void 0:_.type)!=null?h:cr.CODESTYLE;return gn(cJ[p])}else return null}),c=()=>{var d,m;if(t.indicator)return(d=t.indicator)==null?void 0:d.call(t);if(i.value){const g=i.value;return w(g,{loadingStyle:(m=o==null?void 0:o.brandLogoInfos)==null?void 0:m.loadingStyle},null)}return s()},l=C(()=>{var p;const d=(p=o==null?void 0:o.brandLogoInfos)==null?void 0:p.loadingStyle,m=d==null?void 0:d.shading,g=m==null?void 0:m.sdIcon,f=(m==null?void 0:m.type)===Ph.CUSTOM&&!g,h=(d==null?void 0:d.bgColorType)===Ph.CUSTOM?d==null?void 0:d.bgColor:"var(--skin__bg_2)";return w("div",{class:El("global-spinning")},[f?w("div",{class:El("global-bg"),style:{backgroundColor:h}},null):w($O,{src:g?`${a}${g}`:void 0,imgStyle:{backgroundColor:h,...g&&{backgroundSize:"1.8rem 1.8rem",backgroundRepeat:"repeat"}}},null),u.value])}),u=C(()=>w("div",{class:El(e.backgroundColor?["spinning","background"]:"spinning")},[w(gt,null,[c(),e.bottomText&&w("div",{class:El("bottom-text")},[e.bottomText])])]));return()=>e.isGlobalLoading?l.value:u.value}}),uJ={image:{type:String,default:"/lobby_asset/{layout}-{bg}-common/common/common/img_none_sj.png"},text:{type:[String,Object]},size:{type:String,default:"normal"}},[dJ,Yd]=Wt("empty"),mJ=le({name:dJ,props:uJ,setup(e,{slots:t}){return()=>{var n,o;return w("div",{class:Yd()},[(o=(n=t.default)==null?void 0:n.call(t))!=null?o:w("div",{class:Yd("content")},[w(Ve,{class:Yd("image",e.size),src:e.image},null),e.text&&w("span",{class:Yd("text",e.size)},[e.text])])])}}}),gJ=Symbol("RETRY_IMAGE_OVERRIDE"),fJ={type:{type:String,default:"icon"},loading:{type:Boolean,default:!1},icon:{type:String,default:"/lobby_asset/common/web/common/comm_icon_retry.svg"},text:{type:String,required:!1},image:{type:String,default:"/lobby_asset/{layout}-{bg}-common/common/common/img_none_wlcs.png"},hideImage:{type:Boolean,default:!1}},[pJ,ka]=Wt("retry"),JO=le({name:pJ,props:fJ,emits:["retry"],setup(e,{emit:t}){const{t:n}=we(),o=Ge(),a=He(gJ,void 0),r=()=>t("retry"),s=O(!!e.loading),i=800;let c=null,l=0;fe(()=>e.loading,d=>{if(d)c&&clearTimeout(c),l=Date.now(),s.value=!0;else{const m=Date.now()-l;m>=i?s.value=!1:c=setTimeout(()=>{s.value=!1},i-m)}}),Kn(()=>{c&&clearTimeout(c)});const u=[go.Animated,go.Speed.Slow,go.Repeat.Infinite,go.Actions.Spin].join(" ");return()=>{var m;const d=e.type;return d==="icon"?w(Ve,{onClick:r,class:[ka("icon"),s.value?u:""],src:e.icon},null):d==="inline"?w("span",{class:[ka("inline")]},[n("lobby.error.networkTimeout3"),w(Ve,{onClick:r,class:[ka("icon"),s.value?u:""],src:e.icon},null)]):e.hideImage?w("p",{class:[ka("block"),o.rtlClass]},[n("lobby.error.networkTimeout2"),w("span",{onClick:r,class:ka("text-btn")},[n("lobby.modal.pay.retry"),w(Ve,{class:[ka("icon"),s.value?u:""],src:e.icon},null)])]):w("div",{class:[ka("block","with-image")]},[!e.hideImage&&w(Ve,{class:ka("image"),src:(a==null?void 0:a.value)||e.image},null),w("p",{class:[ka("text"),o.rtlClass]},[(m=e.text)!=null?m:n("lobby.error.networkTimeout2"),w("span",{onClick:r,class:ka("text-btn")},[n("lobby.modal.pay.retry"),w(Ve,{class:[ka("icon"),s.value?u:""],src:e.icon},null)])])])}}}),[hJ,ui]=Wt("placeholder"),_J=le({name:hJ,props:iJ,emits:["retry"],setup(e,{slots:t,emit:n}){return()=>{var r,s,i,c;const o=e.type;if(o==="loading")return w("div",{class:[ui("loading-icon"),ui()]},[w(gC,null,{indicator:t.loading})]);if(o==="empty")return w(mJ,{class:[ui()],image:e.empty.image,text:e.empty.text,size:e.empty.size},{default:t.error});if(o==="retry")return w(JO,{class:ui(),type:(r=e.retry.type)!=null?r:"block",image:e.retry.image,hideImage:(s=e.retry.hideImage)!=null?s:!1,loading:(i=e.retry.loading)!=null?i:!1,onRetry:()=>n("retry"),text:e.retry.text},null);const a=o==="nested-loading";return w("div",{class:ui({container:!0,nested:a})},[a&&w("div",{class:[ui("nested-loading"),ui("loading-icon")]},[w(gC,null,{indicator:t.loading})]),(c=t.default)==null?void 0:c.call(t)])}}}),bJ=e=>{_s().homeSportCasinoTabsKey===ut.Native?Cr(e,Yr.WG):Cr(e,`${e}${Ta}`)},$r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
104+/".split(""),yJ=e=>$r[e>>18&63]+$r[e>>12&63]+$r[e>>6&63]+$r[e&63],vJ=(e,t,n)=>{let o;const a=[];for(let r=t;r<n;r+=3)o=(e[r]<<16&16711680)+(e[r+1]<<8&65280)+(e[r+2]&255),a.push(yJ(o));return a.join("")},SJ=e=>{let t;const n=e.length,o=n%3,a=[],r=16383;for(let s=0,i=n-o;s<i;s+=r)a.push(vJ(e,s,s+r>i?i:s+r));return o===1?(t=e[n-1],a.push($r[t>>2]+$r[t<<4&63]+"==")):o===2&&(t=(e[n-2]<<8)+e[n-1],a.push($r[t>>10]+$r[t>>4&63]+$r[t<<2&63]+"=")),a.join("")},CJ=e=>/<html[^>]*>([\s\S]*?)<\/html>/.test(e),bge=e=>{if(!CJ(e))return;const n=new TextEncoder().encode(e);return SJ(n)},yge=e=>WM(e),vge=()=>{const{route:e}=Oe();return e.name===k.GAME_EMBEDDED},e0=qn(e=>{Re.doReport({rule:Re.rules.SENSOR_BURIED,eventName:Re.sensorEvents.FindGameClick,payload:e})},300),Sge=e=>!e||typeof e!="string"?"":e.replace(/^https?:\/\//,"wss://");function Cge(e,t){const o=e.length%t;if(o===0||e.length<t)return[...e];const a=t-o,r=e.slice(0,a);return[...e,...r]}const wJ={iconUrl:{required:!0,type:String},headlineName:{type:String,default:""},gameList:{required:!0,type:Array},gameCategoryId:{required:!0,type:Number},listRowCount:{required:!0,type:Number},situation:{required:!1,type:[Number,String]},isHideHeadline:{required:!1,type:Boolean},isHiddenAllBtn:{required:!1,type:Boolean},closeLazyMode:{required:!1,type:Number,default:la.None},isCloseLazy:{required:!1,type:Boolean,default:!1},isShowFestival:{required:!1,type:Boolean,default:!1},showMiniJackpot:{required:!1,type:Boolean,default:!0}};var hr=(e=>(e.start="start",e.end="end",e.middleSection="middleSection",e.complete="complete",e))(hr||{}),ul=(e=>(e.inside="inside",e.outsideLeft="outsideLeft",e))(ul||{}),Qn=(e=>(e[e.Before=1]="Before",e[e.After=2]="After",e[e.Core=100]="Core",e))(Qn||{});const Hn={iconUrl:{required:!0,type:String},headlineName:{type:String,default:""},gameList:{required:!1,type:Array,default:()=>[]},cardPropsList:{required:!1,type:Array},listRowCount:{required:!0,type:Number},situation:{required:!0,type:[Number,String]},isShowFestival:Boolean,gameCategoryId:Number,isHideHeadline:{required:!1,type:Boolean},isHiddenAllBtn:{required:!1,type:Boolean},isShowDotMode:{type:Boolean,default:!1},allButtonPosition:{type:String,default:ul.inside},closeLazyMode:{required:!1,type:Number,default:la.None},isCloseLazy:{required:!1,type:Boolean,default:!1},logo:String,clubGameId:Number,oriTabData:Object};function Sa(){const e=ue(),t=C(()=>{var r,s;return Ke.isGameNameForceOneLine?!0:((s=(r=e.systemInfos)==null?void 0:r.loginGameRestrictions)==null?void 0:s.loginGameNameDisplayOneLineSwitch)===jt.OPEN}),n=r=>(t.value?r.spare.oneTextCardHeight:r.spare.twoTextCardHeight)||r.card.height;return{gameNameTextType:C(()=>t.value?ig.One:ig.Two),getSpareCardHeight:n,generateConfigByCardHeight:r=>{const s=Fn(r);return s.spare&&(s.card.height=n(s)),s}}}const Ka={inCardRenderCategory:{type:String,required:!0},gameName:{type:String,required:!0},secondaryName:String,imgUrl:{type:String,required:!0},inCardShape:String,logoUrl:String,bgImg:String,isRemember:Boolean,rememberMode:Number,isFavorite:Boolean,isShowFavorite:Boolean,isMaintain:Boolean,isCustomIcon:Boolean,imgBackgroundColor:String,hotImgBackgroundColor:String,isPlatformExhibitHotIcon:Boolean,isAtSwiper:Boolean,atSwiperDomId:String,handleClickCard:Function,handleClickFavorIcon:Function,mySize:{required:!1,type:String},isPlatformBypassSubGame:Boolean,originServerData:{required:!0,type:Object},isCloseLazy:{required:!1,type:Boolean,default:!1}},Cn=Symbol("card_props"),IJ="custom_recommend_icon",AJ="custom_favorite_icons";var Qa=(e=>(e.TopLeft="top-left",e.TopCenter="top-center",e.Center="center",e))(Qa||{});const nc=e=>typeof e=="number"?`calc(var(--card-benchmark) * ${e})`:e,LJ={isUsableAnimation:Boolean,forbidClick:Boolean,size:{type:[Number,String],default:"0.34rem"}},TJ={"favorite-area":"_favorite-area_1ilr2_91"},RJ=(e,{slots:t})=>{var o;const n=He(Cn);return w("section",{class:{[TJ["favorite-area"]]:!0},onClick:a=>{var r;a.stopPropagation(),!e.forbidClick&&((r=n.handleClickFavorIcon)==null||r.call(n,n.isFavorite))}},[(o=t.default)==null?void 0:o.call(t)])},qd={"circle-star-icon":"_circle-star-icon_1pwjc_99","circle-star":"_circle-star_1pwjc_99","icon-animation":"_icon-animation_1pwjc_108"}
104,[OJ]=_e("circle-star"),lc=le({name:OJ,props:LJ,setup(e){const t=He(Cn),n=He(AJ,void 0),o=O(!1);fe([()=>t.isFavorite,()=>t.originServerData.webId],(i,c)=>{const[,l]=i,[,u]=c;l===u&&(o.value=!0,setTimeout(()=>{o.value=!1},400))});const a=C(()=>nc(e.size)),r=()=>w(Ve,{key:"collectedIcon",class:{[qd["circle-star-icon"]]:!0},tag:"div",src:(n==null?void 0:n.on)||"/lobby_asset/common/web/home/btn_sc_on_2.png",lazy:!1},null),s=()=>w(Ve,{key:"uncollectedIcon",tag:"div",class:{[qd["circle-star-icon"]]:!0},src:(n==null?void 0:n.off)||"/lobby_asset/common/web/home/btn_sc_off_2.png",lazy:!1},null);return()=>w(RJ,{class:{[qd["circle-star"]]:!0,[qd["icon-animation"]]:o.value&&e.isUsableAnimation},forbidClick:e.forbidClick,style:{"--circle-star-icon-side":a.value}},{default:()=>[t.isFavorite?r():s()]})}});var t0=(e=>(e.RightToLeft="rtl",e.LeftToRight="ltr",e))(t0||{});const PJ={text:{type:[String,null],required:!1,default:null},lineOneSize:{type:[Number,String],required:!1,default:null},lineTwoSize:{type:[Number,String],required:!1,default:null},isLtr:{type:Boolean,required:!1,default:!0},lineType:{type:[String,null],required:!1,default:null}},zd={"game-name-normal":"_game-name-normal_326y6_91","game-height":"_game-height_326y6_96","name-inner":"_name-inner_326y6_99","line-one":"_line-one_326y6_102","line-two":"_line-two_326y6_107"},[DJ]=_e("game-name"),Rf=le({name:DJ,props:PJ,setup(e,{slots:t}){const{gameNameTextType:n}=Sa(),o=C(()=>{var s;return(s=e.lineType)!=null?s:n.value}),a=C(()=>{const s=o.value===ig.One?e.lineOneSize:e.lineTwoSize;return nc(s)}),r=C(()=>e.isLtr?t0.LeftToRight:"");return()=>{var s,i;return w("section",{dir:r.value,class:{[zd["game-name-normal"]]:!0,[zd[`line-${o.value}`]]:!0,[`line-${o.value}`]:!0,[zd["game-height"]]:a.value},style:{"--game-height-size":a.value}},[w("h4",{class:["name-inner",zd["name-inner"]]},[(i=(s=t==null?void 0:t.default)==null?void 0:s.call(t))!=null?i:e.text])])}}}),MJ={"game-name-normal":"_game-name-normal_1arlv_92"},wl=e=>{var n,o;const t=He(Cn);return w(Rf,{class:[[MJ["game-name-normal"]]],style:{"--game-name-normal-font-size-ratio":(n=e.fontSizeRatio)!=null?n:1,"--game-name-normal-width-ratio":(o=e.widthRatio)!=null?o:1},lineOneSize:e.lineOneSize,lineTwoSize:e.lineTwoSize},{default:()=>[t.gameName]})};var ks=(e=>(e[e.VerticalMask=1]="VerticalMask",e[e.Square=2]="Square",e[e.Vertical=3]="Vertical",e[e.SquareRightAngle=4]="SquareRightAngle",e[e.Rounded=5]="Rounded",e[e.Horizontal=6]="Horizontal",e))(ks||{}),Mm=(e=>(e.Best="recTag",e.New="newTag",e.Hot="hotTag",e))(Mm||{}),Au=(e=>(e.None="0",e.Style1="1",e.Style2="2",e.Style3="3",e))(Au||{}),Xo=(e=>(e[e.Close=0]="Close",e[e.Interim=100]="Interim",e[e.Best=101]="Best",e[e.Hot=103]="Hot",e[e.New=102]="New",e))(Xo||{}),n0=(e=>(e.LeftTop="",e.RightTop="_ar",e.LeftBottom="_1",e.RightBottom="_ar_1",e))(n0||{});const NJ={[ks.Rounded]:{labelWidth:.54,labelHeight:.426667},[ks.Horizontal]:{labelWidth:.23846,labelHeight:.193438},[ks.Vertical]:{labelWidth:.4133,labelHeight:.33533},[ks.VerticalMask]:{labelWidth:.319,labelHeight:.25857},[ks.Square]:{labelWidth:.5076923,labelHeight:.41538461},[ks.SquareRightAngle]:{labelWidth:.4025974,labelHeight:.326623}},fC={[Au.Style1]:{[Xo.Best]:"tj1",[Xo.Hot]:"tj4",[Xo.New]:"tj7"},[Au.Style2]:{[Xo.Best]:"tj2",[Xo.Hot]:"tj5",[Xo.New]:"tj8"},[Au.Style3]:{[Xo.Best]:"tj3",[Xo.Hot]:"tj6",[Xo.New]:"tj9"}},pC={[Mm.Best]:Xo.Best,[Mm.New]:Xo.New,[Mm.Hot]:Xo.Hot},jd=new Map;let hC={};const kJ=e=>{if(jd.size&&rs(e,hC))return jd;hC=e;const{isRtlLanguage:t}=Ge(),{homeLayoutInfos:n}=ue(),o=(a,r)=>{let s=a;return r===Sr.ROUNDED_BELOW?s+="_2":a==="tj1"?s+="_zj":s+="_1",t&&vn.type===dm?s+="_ar":s+=e.place,{...NJ[r],imgUrl:`/lobby_asset/common/common/home/img_game_${s}.png`}};return Object.keys(pC).forEach(a=>{const r=n==null?void 0:n.commonConfig[a];if(r>=1){let s=fC[r];const i=pC[a];r>=101&&(s=fC[Au.Style1]);const c=o(s[i],e.gameIcon);jd.set(Number(i),c)}}),jd},BJ={labelWidth:{type:[Number,String],default:.2},labelHeight:{type:[Number,String],default:.15},imgUrl:{required:!1,type:String,default:"/lobby_asset/common/common/home/img_game_tj_1.png"}},HJ={"game-status-label-img":"_game-status-label-img_1p5z0_91"},Iy=e=>{const t=e;return w(Ve,{tag:"div",class:{[HJ["game-status-label-img"]]:!0},style:{"--label-icon-width":nc(t.labelWidth),"--label-icon-height":nc(t.labelHeight)},src:t.imgUrl,lazy:!1},null)};Iy.props=BJ;
104const xJ="_rounded_b2ly0_97",_C={"label-wrap":"_label-wrap_b2ly0_91",rounded:xJ},[EJ]=_e("game-label-design"),Il=le({name:EJ,props:{place:{type:String,default:n0.LeftTop},gameIcon:{type:Number,required:!0}},setup(e){const t=He(Cn),n=He(IJ,void 0),o=kJ(e),a=C(()=>{const i=o.get(t==null?void 0:t.rememberMode);return n&&i?{...i,imgUrl:n}:i}),r=C(()=>(t==null?void 0:t.rememberMode)||(t==null?void 0:t.isRemember)),s=C(()=>ks[e.gameIcon].toLocaleLowerCase());return()=>r.value?w(Iy,Te(a.value,{class:{[_C["label-wrap"]]:t==null?void 0:t.rememberMode,[_C[s.value]]:!0}}),null):null}}),UJ={"img-top-text-bot-layout":"_img-top-text-bot-layout_1meb8_92"},Al=(e,{emit:t,slots:n})=>{var o;return w("section",{class:{"img-top-text-bot-layout":!0,[UJ["img-top-text-bot-layout"]]:!0},style:{"--img-top-text-bot-layout-size":e.size},onClick:()=>t("click")},[(o=n==null?void 0:n.default)==null?void 0:o.call(n)])},GJ={exhibitPosition:{type:String,default:Qa.TopCenter},size:{type:[Number,String],default:1},iconUrl:{type:String,required:!1}},FJ=e=>`/lobby_asset/common/common/home/img_whz_style_${e}.png`,WJ=e=>{const{homeLayoutInfos:t}=ue();return{maintainIconUrl:C(()=>{var r;const o=Lw(e);if(o)return o;const a=(r=t==null?void 0:t.commonConfig)==null?void 0:r.gameMaintenanceType;return a&&String(a.type)===rh.Custom?String(a.value):FJ(Ke.maintainIconStyleNo||(a==null?void 0:a.value)||rh.Style1)})}},Kd={"mask-maintain":"_mask-maintain_btbqi_92","maintain-icon":"_maintain-icon_btbqi_107","position-top-left":"_position-top-left_btbqi_114","position-top-center":"_position-top-center_btbqi_121","position-center":"_position-center_btbqi_129"},Lr=e=>{const t=e.exhibitPosition,n=nc(e.size),{maintainIconUrl:o}=WJ(()=>e.iconUrl);return w("section",{class:{[Kd["mask-maintain"]]:!0,[Kd["mask-maintain-custom"]]:!!e.iconUrl,[Kd[`position-${t}`]]:!0}},[w(Ve,{tag:"div",svgInheritSize:!0,class:Kd["maintain-icon"],src:o.value,style:{"--maintain-icon-size":n},lazy:!1},null)])};Lr.props=GJ;const bC={"poster-image-floors":"_poster-image-floors_pxq48_95"},[VJ]=_e("poster-image-floors"),Ay=le({name:VJ,inheritAttrs:!1,props:{isRemember:Ka.isRemember,radiusSize:{type:[Number,String],default:.125,required:!1},bgImgUrl:{type:String,required:!1}},setup(e,{slots:t,attrs:n}){const o=He(Cn),a=C(()=>o.isPlatformExhibitHotIcon&&Ct.isThisType(o.originServerData)?o.hotImgBackgroundColor:o.imgBackgroundColor),r=C(()=>{const{onClick:i,onPosterImgLoaded:c,...l}=n;return l}),s=C(()=>nc(e.radiusSize));return()=>{var i,c;if(a.value===us.Transparent)return e.bgImgUrl?w(Ve,Te(r.value,{class:{[bC["poster-image-floors"]]:!0,"is-recommend":o.isRemember},style:{"--poster-image-floors-border-base-radius":s.value},tag:"div",src:e.bgImgUrl}),{default:()=>{var l;return[(l=t.default)==null?void 0:l.call(t)]}}):w("section",Te(r.value,{class:{[bC["poster-image-floors"]]:!0,"is-recommend":o.isRemember},style:{"--poster-image-floors-border-base-radius":s.value}}),[(i=t.default)==null?void 0:i.call(t)]);{const l=(c=t.default)==null?void 0:c.call(t);return(l==null?void 0:l.length)===1?kn(l[0],r.value):l}}}}),o0=Symbol("list_box_dom"),$J=Symbol("list_remove_1px_adapt"),ri=Symbol("list_box_close_lazy"),YJ=e=>{const t=O(!1),n=O(!0),o=C(()=>!(n.value||t.value)),a=i=>{n.value=!1,i.type!==zt.Success&&(t.value=!0)},r=He(Cn,null),s=r?()=>r.imgUrl:null;return s&&fe(s,()=>{t.value=!1,n.value=!0}),{isPosterFailed:t,isPosterLoading:n,isPosterSuccess:o,handlePosterLoaded:a}},Dp={"poster-image":"_poster-image_18q9n_95","shrink-bg-img":"_shrink-bg-img_18q9n_112","is-has-background-color":"_is-has-background-color_18q9n_118"},[qJ]=_e("poster-image"),Ly=le({name:qJ,props:{imgUrl:Ka.imgUrl,bgImgShrinkSize:{type:String,required:!1},tag:{type:String,default:"div"},radiusSize:{type:[Number,String],default:.125,required:!1},isCloseLazy:{required:!1,type:Boolean,default:!1}},emits:["click","posterImgLoaded"],setup(e,{slots:t,emit:n}){const o=He(Cn,{}),a=He(ri,{isCloseLazy:!1}),r=C(()=>!(a.isCloseLazy||e.isCloseLazy||o.isCloseLazy)),{isPosterSuccess:s,handlePosterLoaded:i}=YJ(),c=C(()=>nc(e.radiusSize));return()=>w(Ve,{class:{"poster-image":!0,[Dp["poster-image"]]:!0,[Dp["shrink-bg-img"]]:e.bgImgShrinkSize,[Dp["is-has-background-color"]]:!s.value,"is-has-background-color":!s.value,"is-recommend":o.isRemember},lazy:r.value,persistError:!0,style:{"--poster-image-border-base-radius":c.value,"--poster-image-shrink-background-size":e.bgImgShrinkSize},useSkeleton:!0,svgInheritSize:!0,tag:e.tag,errorSrc:"/lobby_asset/{layout}-{bg}-common/web/home/img_mryx_card.svg",src:e.imgUrl,onClick:()=>n("click"),onLoad:l=>{i(l),n("posterImgLoaded",l)}},{default:()=>{var l;return[(l=t==null?void 0:t.default)==null?void 0:l.call(t)]}})}}),zJ={"core-img":"_core-img_w2sc5_94"},uc=(e,{emit:t,slots:n})=>{const o=He(Cn);
104return w(Ay,{radiusSize:e.radiusRatio},{default:()=>{var a,r;return[w(Ly,{class:{[zJ["core-img"]]:!0},style:{"--core-img-width-ratio":(a=e.widthRatio)!=null?a:1,"--core-img-height-ratio":(r=e.heightRatio)!=null?r:1},imgUrl:o.imgUrl,radiusSize:e.radiusRatio,onClick:()=>t("click"),onPosterImgLoaded:s=>{t("posterImgLoaded",s)}},{default:()=>{var s;return[(s=n==null?void 0:n.default)==null?void 0:s.call(n)]}})]}})},Mp={"landscape-below-name":"_landscape-below-name_calb8_91","favorite-icon":"_favorite-icon_calb8_91","game-name":"_game-name_calb8_96"},[jJ]=_e("landscape-below-name"),a0=le({name:jJ,props:Ka,emits:["posterImgLoaded"],setup(e,{emit:t}){mt(Cn,e);const n=()=>e.isMaintain&&w(Lr,{exhibitPosition:Qa.Center,size:.625},null),o=()=>e.isShowFavorite&&w(lc,{class:Mp["favorite-icon"],isUsableAnimation:!0,size:"0.34rem"},null);return()=>w(Al,{class:{"landscape-below-name":!0,[Mp["landscape-below-name"]]:!0},style:{"--card-benchmark":e.mySize},size:1},{default:()=>[w(uc,{widthRatio:1,heightRatio:.625,radiusRatio:.04587,onClick:e.handleClickCard,onPosterImgLoaded:a=>t("posterImgLoaded",a)},{default:()=>[w(Il,{gameIcon:Sr.LANDSCAPE_BELOW},null),n(),o()]}),w(wl,{class:Mp["game-name"],lineOneSize:"0.3rem",lineTwoSize:"0.6rem"},null)]})}}),KJ=e=>({width:e.box.width,height:e.box.height,leftRightSpacing:e.box.leftRightSpacing,topBotSpacing:e.box.topBotSpacing,subConfig:{eleWidth:e.card.width,eleHeight:e.card.height,colNum:e.box.listColumnCount}}),QJ={...Lo(Hn,"isShowFestival","headlineName","iconUrl","isHideHeadline","listRowCount","closeLazyMode","isHiddenAllBtn","gameCategoryId"),isBelowName:{required:!1,default:!1},listConfig:{required:!0,type:Object},list:{required:!0,type:Array}},XJ={[qh.Transparent]:us.Transparent,[qh.White]:us.White},T_=e=>{var t;return(t=XJ[e.imgBackgroundColor])!=null?t:us.Other},Ty=(e,t)=>{const{gameId:n}=t,{collectGameIdList:o,setCollectGameIdList:a,getGameListByCategoryAndPlatform:r,setGameCategoryPlatformList:s}=on(),i=e?[n,...o.filter(u=>u!==n)]:o.filter(u=>u!==n),c=r({gameCategoryId:Z.Collect}).list,l=e?[t,...c.filter(u=>u.gameId!==n)]:c.filter(u=>u.gameId!==n);a(i),s({gameCategoryId:Z.Collect,gameList:l})},r0=async(e,t)=>{const{gameId:n,platformId:o,gameCategoryId:a}=t;try{await Mt.apiAddFavorite({gameId:n,platformId:o,gameCategoryId:a},e)}catch(r){Ty(!e,t)}},ZJ=async e=>{const{addTryModeCollectGame:t}=on(),{hasLogined:n}=J();n?(Ty(!0,e),await r0(!0,e)):t(e)},JJ=async e=>{const{delTryModeCollectGame:t}=on(),{hasLogined:n}=J();n?(Ty(!1,e),await r0(!1,e)):t(e)},s0=async(e,t)=>{var o;Ct.isThisType(e)&&!e.isPlatformBypassSubGame&&(e=new _t().parsePlatformCategoriesItem(e),e.gameIcon=ra.parseGameItem(e));const n=e;typeof t!="boolean"&&(t=!((o=on().getAllCollectIdList)!=null&&o.includes(n.gameId))),t?await ZJ(n):await JJ(n)},Of=(e,t,n)=>{let o={};if(n){o={...n};for(const a in o)typeof o[a]=="function"&&(a.startsWith("handle")||(o[a]=o[a](e,t)))}return o},i0=e=>{const{gameId:t,maintainStatus:n}=e,{getAllCollectIdList:o}=on(),a=!!(t&&o&&!n),r=o==null?void 0:o.includes(t);return{isShowFavorite:a,isFavorite:r}},e2=e=>!!(e.originServerData&&e.imgUrl),c0=(e,t)=>{if(_t.isThisType(e))return t2(e,t);if(Ct.isThisType(e))return n2(e,t);if(Va.isThisType(e))return o2(e,t);if(e2(e)){const n=Of(e.originServerData,e,t);return Object.assign({},e,n)}throw new Error("serverData type is error")},t2=(e,t)=>{const n=e.gameType===mn.Platform?e.isCustomIcon&&!!e.gameImgName:e.isCustomIcon,o={...i0(e),inCardRenderCategory:Zg.Game,isCustomIcon:n,imgBackgroundColor:T_(e),imgUrl:e.gameIcon||"error",logoUrl:e.platformLogo,isRemember:e.rememberMode===null?e.recommendStatus:!!e.rememberMode,rememberMode:e.rememberMode,isMaintain:e.maintainStatus,gameName:e.gameName,secondaryName:e.platformName,inCardShape:Xg.Vertical,isAtSwiper:!1,isCloseLazy:!1,isPlatformBypassSubGame:e.isPlatformBypassSubGame,isPlatformExhibitHotIcon:!1,originServerData:e,handleClickCard:()=>Ki.openGame(e),handleClickFavorIcon:()=>s0(e)},a=Of(e,o,t);return Object.assign(o,a)},n2=(e,t)=>{const n={...i0(e),inCardRenderCategory:Zg.Platform,logoUrl:e.platformLogo,imgUrl:e.platformIcon||"error",isCustomIcon:e.isCustomIcon,imgBackgroun
104dColor:T_(e),hotImgBackgroundColor:e.hotImgBackgroundColor?T_({imgBackgroundColor:e.hotImgBackgroundColor}):void 0,isMaintain:e.maintainStatus,gameName:e.brand,secondaryName:e.platformName,inCardShape:Xg.Vertical,isAtSwiper:!1,isRemember:!1,isCloseLazy:!1,isPlatformBypassSubGame:e.isPlatformBypassSubGame,isPlatformExhibitHotIcon:!1,rememberMode:xu.Close,originServerData:e,handleClickCard:()=>Ki.openGame(e),handleClickFavorIcon:()=>s0(e)},o=Of(e,n,t);return Object.assign(n,o)},o2=(e,t)=>{const{isIconStyleSquare:n}=Do(),o={inCardRenderCategory:Zg.Game,imgUrl:e.gameIcon||"error",gameName:n?e.gameName:"",isRemember:!1,rememberMode:xu.Close,isFavorite:!1,isShowFavorite:!1,isMaintain:!1,isCustomIcon:!1,isPlatformBypassSubGame:!1,isPlatformExhibitHotIcon:!1,imgBackgroundColor:"",inCardShape:Xg.Vertical,isAtSwiper:!1,isCloseLazy:!1,originServerData:e,handleClickCard:()=>Ki.openGame(e)},a=Of(e,o,t);return Object.assign(o,a)},Ry=e=>({isOutBoxCloseLazy:C(()=>[la.CloseFirstScreen,la.CloseAll].includes(e.closeLazyMode)),getScreenBoxCloseLazy:(o,a=0)=>e.closeLazyMode===la.CloseFirstScreen?o===a:e.closeLazyMode===la.CloseAll}),du=(e,t,n)=>t===0?0:Math.ceil(e/t)<n?Math.ceil(e/t):n,R_=e=>{const{total:t,rowNum:n,colNum:o,direction:a}=e;let r,s;return a==="horizontal"?(r=du(t,1,o),s=du(t,o,n)):(r=du(t,n,o),s=du(t,1,n)),{rowCount:s,colCount:r}};var Ag=(e=>(e[e.notClose=1]="notClose",e[e.onlyBox=2]="onlyBox",e[e.boxAndInner=3]="boxAndInner",e))(Ag||{});const Pf={isAllowCloseLazyByImageLoadStrategy:{required:!1,type:Boolean,default:!1},isCloseLazy:{required:!1,type:Boolean,default:!1},isPassThroughCloseLazy:{required:!1,type:Boolean,default:!0}},a2={...Pf,width:String,height:String,leftRightSpacing:String,topBotSpacing:String,list:{required:!0,type:Array},closeLazyMode:{required:!1,type:Number,default:Ag.notClose},subConfig:{required:!0,type:Object}},r2=({domRef:e,showCallback:t})=>{e||(e=O(void 0));const n=O(!1);let o;const a=()=>{n.value=!0,t==null||t()};return Gt(()=>{if(!window.IntersectionObserver||!e.value){a();return}setTimeout(()=>{o=ec.addLazyBox(e.value,{callback:a})})}),fa(()=>{o==null||o()}),{domRef:e,show:n}},s2=[Ag.onlyBox,Ag.boxAndInner],Oy=(e,t,n)=>{const{show:o}=r2({domRef:n}),a=C(()=>{if(e.isCloseLazy===!0||s2.includes(e.closeLazyMode))return!0;if(e.isAllowCloseLazyByImageLoadStrategy===!0){const r=ls.notLazy();if([Jn.NonFirstTime,Jn.Loaded].includes(r)&&!X_)return!0}return o.value});return fe(a,r=>{r===!0&&t.emit("elementLoaded")},{immediate:!0}),{isShowByLazy:a}},yC={"list-ordinary":"_list-ordinary_1d56v_91","list-ordinary-layout":"_list-ordinary-layout_1d56v_94"},[i2]=_e("list-ordinary"),c2=le({name:i2,props:a2,emits:["scaleChanged","elementLoaded"],setup(e,t){e.isPassThroughCloseLazy&&mt(ri,e);const n=He(o0,O(null)),o=He($J,!1),a=C(()=>{var m;if(e.width)return e.width;const c=e.subConfig,l=parseFloat(c.eleWidth),u=parseFloat((m=e==null?void 0:e.leftRightSpacing)!=null?m:"0");return`${(l+u)*c.colNum-u}rem`}),r=C(()=>{var g;if(e.height)return e.height;const c=e.subConfig,l=parseFloat(c.eleHeight),u=parseFloat((g=e==null?void 0:e.topBotSpacing)!=null?g:"0"),d=du(e.list.length,c.colNum,999999999);return`${(l+u)*d-u}rem`}),s=C(()=>({"--list-ordinary-width":a.value,"--list-ordinary-height":r.value,"--list-ordinary-left-right-spacing":e.leftRightSpacing,"--list-ordinary-top-bot-spacing":e.topBotSpacing,"--list-ordinary-left-right-spacing-adapt":o?"0rem":"0.01rem"}));fe(s,c=>{t.emit("scaleChanged",{width:c["--list-ordinary-width"],height:c["--list-ordinary-height"],columnGap:c["--list-ordinary-left-right-spacing"],rowGap:c["--list-ordinary-top-bot-spacing"]})},{immediate:!0});const{isShowByLazy:i}=Oy(e,t,n);return()=>{var c,l;return w("section",{class:yC["list-ordinary"]},[w("section",{class:yC["list-ordinary-layout"],style:s.value,ref:n},[i.value&&((l=(c=t.slots).default)==null?void 0:l.call(c))])])}}}),l0={iconUrl:{required:!0,type:String},headlineName:{required:!0,type:String},isShowFestival:Boolean,isHiddenAllBtn:Boolean,gameCategoryId:{required:!1,type:Number}},l2=Object.assign({},l0,{...Lo(Pf,"isCloseLazy"),dataList:{type:Array,default:()=>[]},defaultExhibitPage:{type:Number,default:1},defaultPageSize:{type:Number,default:0},pageSize:{type:Number,default:20},additionalNum:{type:Number,default:0},isHideHeadline:Boolean,isHiddenAllBtn:Boolean,platformName:{type:String,default:""}}),u2=e=>{var n;const t=ff().getPlaceConfig("platformTop",e,!0);return(n=t==null?void 0:t.filter(o=>{var a;return((a=JSON.parse(o.showPosition))==null?void 0:a.type)===Ua.PlatformTop}))==null?void 0:n.find(o=>{var a;return((a=JSON.parse(o.showPosition))==null?void 0:a.value)===String(e)})},u0=e=>{const t=u2(e);return!!(t&&t.bonusSource===bu.Virtual&&t.jackpotType===os.Mini&&Ke.hasMiniJackPotUI)},d0=ke("gameHelper",()=>{const{t:e}=we(),t=Bn(),n=Ge(),o=on(),a=C(()=>{var p;return Number((p=t==null?void 0:t.query)==null?void 0:p.gameCategoryId)||Z.Hot}),r=C(()=>{var p;return Number((p=t.query)==null?void 0:p.platformId)||-1}),s=C(()=>{var y;let p="";return jy.includes(a.value)?p=a.value===Z.Recent?e("lobby.plan.middle.gameMenu.loadingRecent"):e("lobby.plan.middle.gameMenu.loadingCollect"):a.value===Z.Merged?p=((y=g(Z.Merged))==null?void 0:y.gameCategoryName)||e(`lobby.plan.middle.gameMenu.menu${a.value}`):p=e(`lobby.plan.middle.gameMenu.menu${a.value}`),n!=null&&n.isCN?p=p.replace(/\s/g,""):n.language==="vi"&&(p=h(p)),p}),i=C(()=>+`${a.value}${Ta}`),c=C(()=>z_.includes(a.value)),l=C(()=>Bg.includes(a.value)),u=C(()=>bI.includes(a.value)),d=C(()=>yI.includes(a.value)),m=C(()=>jy.includes(a.value)),g=p=>o.gameCategoriesInfoList.find(y=>y.gameCategoryId===p),f=C(()=>a.value===Z.Demo),_=(p,y=!0)=>
104{if(n.isCN&&p){const b=p.replace(/\s/g,"");return y?`${b}${e("lobby.game.menue")}`:b}return p},h=p=>p.split(" ").map(y=>y.charAt(0).toUpperCase()+y.slice(1).toLowerCase()).join(" ");return{curGameCategoryId:a,curPlatformId:r,curAllPlatformId:i,curGameCategoryName:s,isPlatformCategoriePage:c,isGamePlatformCatgoryPage:l,isHotRecentCollectionPage:u,isHotRecentCollectionAndDemoPage:d,isSubDemoPage:f,isRecentCollectionPage:m,getGameCategoryItem:g,formatGameCategoryName:_,capitalizeSentence:h}}),d2={iconUrl:{required:!0,type:String},headlineName:{required:!0,type:String}},m2="_title_16ybs_91",Np={title:m2,"title-text":"_title-text_16ybs_98","title-icon":"_title-icon_16ybs_104"},[g2]=_e("title"),f2=le({name:g2,props:d2,setup(e){const t=He(ri,{isCloseLazy:!1});return()=>w("section",{class:[Np.title,"title"]},[w(Ve,{class:Np["title-icon"],src:e.iconUrl,svgInheritSize:!0,lazy:!t.isCloseLazy},null),w("p",{class:Np["title-text"]},[e.headlineName])])}}),kp={"game-headline":"_game-headline_dpgmj_91","trigger-text":"_trigger-text_dpgmj_100","click-area":"_click-area_dpgmj_108"},p2=bo({loader:()=>V(()=>import("./festival-ui-group.5mfKnHma.js").then(e=>e.G),__vite__mapDeps([0,1,3,4,5,7,6,8,34]))}),h2=bo({loader:()=>V(()=>import("./Common.BWIuMFf1.js"),__vite__mapDeps([0,4,35,36]))}),[_2]=_e("game-headline"),b2=le({name:_2,props:l0,emits:["clickAll"],setup(e,{emit:t}){const n=nn(),{t:o}=we(),a=He("gameCategoryId"),{formatGameCategoryName:r}=d0(),s=C(()=>r(e.headlineName,a!==Z.Merged)),i=He("isShowFestival");return()=>w("section",{class:[kp["game-headline"]]},[w(f2,{headlineName:s.value,iconUrl:e.iconUrl,isHot:a===Z.Hot},null),w(ln,{moduleName:`${$t.jackpotInPlatformRight}${a}`},{default:()=>[w(h2,{type:os.Mini,place:"platformTop",gameCategoryId:a},null)]}),(e.isShowFestival||i)&&n.isHolidayThemeVisible&&!u0(a)&&w(p2,null,null),!e.isHiddenAllBtn&&w("div",{class:[kp["trigger-text"]]},[w("div",{class:kp["click-area"],onClick:()=>t("clickAll")},[o("lobby.game.loadingAll")])])])}}),y2={"layout-box":"_layout-box_tq4g4_91"},[v2]=_e("layout-box"),S2=le({name:v2,setup(e,{slots:t}){return()=>{var n;return w("section",{class:y2["layout-box"]},[(n=t.default)==null?void 0:n.call(t)])}}}),C2=Symbol("load-finished-render");function w2(e,t="{layout}-{bg}-{skin}",n="web"){return`/lobby_asset/${t}/${n}/${e}`}const Ul={"load-more-expand":"_load-more-expand_7c2ai_91","expand-text":"_expand-text_7c2ai_98","expand-action":"_expand-action_7c2ai_101","down-arrow":"_down-arrow_7c2ai_107","load-finish":"_load-finish_7c2ai_115"},I2=({total:e,pageSize:t,exhibitedCount:n,onClick:o})=>{const{t:a}=we(),r=He(ri,{isCloseLazy:!1}),s=He(C2,null);if(n>=e){const c=s==null?void 0:s();return c||(!e||t>=e?w(gt,null,null):w("div",{class:Ul["load-finish"]},[a("lobby.game.loadingOver")]))}const i=e-n;return w("section",{class:Ul["load-more-expand"],onClick:o},[w("span",{class:Ul["expand-text"]},[a("lobby.common.searchSub.loadingInfo",{last:i})]),w("span",{class:Ul["expand-action"]},[a("lobby.game.expand"),w(Ve,{class:Ul["down-arrow"],svgInheritSize:!0,src:w2("common/comm_icon_jzgd.svg","common","web"),lazy:!r.isCloseLazy},null)])])},vC={},[A2]=_e("pagination-load-more"),L2=le({name:A2,props:l2,emits:["clickAll"],slots:Object,setup(e,{emit:t,slots:n}){mt(ri,e);const o=O(e.defaultExhibitPage),a=s=>s.map(i=>{var c;return(c=i==null?void 0:i.originServerData)==null?void 0:c.webId}).join();fe(()=>a(e.dataList),()=>{o.value=e.defaultExhibitPage});const r=C(()=>e.dataList.slice(0,e.defaultPageSize+o.value*e.pageSize));return()=>w(S2,{class:["pagination-load-more",vC["pagination-load-more"]]},{default:()=>{var s,i,c;return[!e.isHideHeadline&&w(b2,{isHiddenAllBtn:e.isHiddenAllBtn,headlineName:e.headlineName,iconUrl:e.iconUrl,isShowFestival:e.isShowFestival,onClickAll:()=>t("clickAll")},null),(s=n.listUpper)==null?void 0:s.call(n),(i=n.default)==null?void 0:i.call(n,r.value),(c=n.listBottom)==null?void 0:c.call(n),w(I2,{class:[vC["load-more-button"],"load-more-button"],exhibitedCount:r.value.length+e.additionalNum,total:e.dataList.length+e.additionalNum,onClick:()=>{var l;o.value++,e0({clickbutton:cb.MORE_CLICK,game_type:((l=r.value[0])==null?void 0:l.gameCategoryId)||e.headlineName})},pageSize:e.pageSize},null)]}})}}),SC={"list-pagination-box":"_list-pagination-box_hixa3_91","is-below-name":"_is-below-name_hixa3_91"}
104,[T2]=_e("list-pagination-box"),ys=le({name:T2,props:QJ,emits:["goSubPage"],setup(e,{emit:t,slots:n}){const{isOutBoxCloseLazy:o}=Ry(e),a=C(()=>KJ(e.listConfig)),r=C(()=>e.list.some(s=>s.originServerData)?e.list:e.list.map(s=>c0(s,{mySize:e.listConfig.card.size})));return()=>w("div",{class:{[SC["list-pagination-box"]]:!0,[SC["is-below-name"]]:e.isBelowName}},[w(L2,{dataList:r.value,pageSize:e.listRowCount*e.listConfig.box.listColumnCount,headlineName:e.headlineName,iconUrl:e.iconUrl,onClickAll:()=>t("goSubPage"),isShowFestival:e.isShowFestival,isHideHeadline:e.isHideHeadline,isHiddenAllBtn:e.isHiddenAllBtn},{listUpper:n.listUpper,default:s=>w(c2,Te(a.value,{class:"pagination-list-ordinary",list:s,isCloseLazy:o.value,isAllowCloseLazyByImageLoadStrategy:!0}),{default:()=>{var i;return[(i=n.default)==null?void 0:i.call(n,s)]}})})])}}),[R2]=_e("tab-item-game-list"),O2=le({name:R2,props:Hn,emits:["goSubPage"],slots:Object,setup(e,{emit:t,slots:n}){const{generateConfigByCardHeight:o}=Sa(),a=C(()=>o(uy[e.situation]));return()=>w(ys,{list:e.gameList,listConfig:a.value,iconUrl:e.iconUrl,listRowCount:e.listRowCount,closeLazyMode:e.closeLazyMode,headlineName:e.headlineName,isHiddenAllBtn:e.isHiddenAllBtn,isHideHeadline:e.isHideHeadline,isShowFestival:e.isShowFestival,onGoSubPage:()=>t("goSubPage"),isBelowName:!0},{listUpper:n.listUpper,default:r=>r.map(s=>w(a0,s,null))})}}),Qd={"game-platform-name":"_game-platform-name_1mvy3_92","is-follow-skin-color":"_is-follow-skin-color_1mvy3_113","is-white-bg-color":"_is-white-bg-color_1mvy3_116"},P2=()=>{const e=He(Cn);return w(Rf,{class:{"game-platform-name":!0,[Qd["game-platform-name"]]:!0,[Qd[`type-${e.inCardRenderCategory}`]]:!0,[Qd["is-white-bg-color"]]:e.imgBackgroundColor===us.White,[Qd["is-follow-skin-color"]]:e.imgBackgroundColor===us.Transparent}},{default:()=>[e.gameName]})},CC={"poster-box-core":"_poster-box-core_86b42_92","is-show-box-shadow":"_is-show-box-shadow_86b42_135"},wC=.027,D2=(e,{emit:t,slots:n})=>{const o=He(Cn);return w(Ay,{class:CC["is-show-box-shadow"],radiusSize:wC},{default:()=>[w(Ly,{class:{[CC["poster-box-core"]]:!0},radiusSize:wC,imgUrl:o.imgUrl,onClick:()=>t("click"),onPosterImgLoaded:a=>{t("posterImgLoaded",a)}},{default:()=>{var a;return[!o.isCustomIcon&&w(P2,null,null),(a=n==null?void 0:n.default)==null?void 0:a.call(n)]}})]})},M2={"landscape-left-right":"_landscape-left-right_x4f38_91"},[N2]=_e("landscape-left-right"),m0=le({name:N2,props:Ka,emits:["posterImgLoaded"],setup(e,{emit:t}){return mt(Cn,e),()=>w(D2,{class:{"landscape-left-right":!0,[M2["landscape-left-right"]]:!0},style:{"--card-benchmark":e.mySize},onClick:e.handleClickCard,onPosterImgLoaded:n=>t("posterImgLoaded",n)},{default:()=>[e.isMaintain&&w(Lr,{exhibitPosition:Qa.Center,size:.39},null)]})}}),[k2]=_e("tab-item-game-list"),B2=le({name:k2,props:Hn,emits:["goSubPage"],slots:Object,setup(e,{emit:t,slots:n}){const o=C(()=>dy[e.situation]);return()=>w(ys,{list:e.gameList,listConfig:o.value,iconUrl:e.iconUrl,listRowCount:e.listRowCount,closeLazyMode:e.closeLazyMode,headlineName:e.headlineName,isHiddenAllBtn:e.isHiddenAllBtn,isHideHeadline:e.isHideHeadline,isShowFestival:e.isShowFestival,gameCategoryId:e.gameCategoryId,onGoSubPage:()=>t("goSubPage"),isBelowName:!1},{listUpper:n.listUpper,default:a=>a.map(r=>w(m0,r,null)),listBottom:n.listBottom})}}),H2="_poster_1z0f1_96",Xd={"landscape-rectangle-below-name":"_landscape-rectangle-below-name_1z0f1_91","favorite-icon":"_favorite-icon_1z0f1_91",poster:H2,"game-name":"_game-name_1z0f1_99"},[x2]=_e("landscape-rectangle-below-name"),g0=le({name:x2,props:Ka,emits:["posterImgLoaded"],setup(e,{slots:t,emit:n}){mt(Cn,e);const o=()=>{var s;return e.isRemember&&(((s=t.labelRemember)==null?void 0:s.call(t))||w(Iy,{labelWidth:.15,labelHeight:.11375},null))},a=()=>e.isMaintain&&w(Lr,{exhibitPosition:Qa.Center,size:.492126},null),r=()=>e.isShowFavorite&&w(lc,{class:Xd["favorite-icon"],isUsableAnimation:!0,size:"0.34rem"},null);return()=>w(Al,{class:{"landscape-rectangle-below-name":!0,[Xd["landscape-rectangle-below-name"]]:!0},style:{"--card-benchmark":e.mySize},size:1},{default:()=>[w(uc,{class:Xd.poster,widthRatio:1,heightRatio:.496955224,onClick:e.handleClickCard,onPosterImgLoaded:s=>n("posterImgLoaded",s)},{default:()=>[o(),a(),r()]}),w(wl,{class:Xd["game-name"],lineOneSize:"0.32rem",lineTwoSize:"0.64rem"},null)]})}}),[E2]=_e("tab-item-game-list"),U2=le({name:E2,props:Hn,emits:["goSubPage"],slots:Object,setup(e,{emit:t,slots:n}){const{generateConfigByCardHeight:o}=Sa(),a=C(()=>o(my[e.situation]));return()=>w(ys,{list:e.gameList,listConfig:a.value,iconUrl:e.iconUrl,listRowCount:e.listRowCount,closeLazyMode:e.closeLazyMode,headlineName:e.headlineName,isHiddenAllBtn:e.isHiddenAllBtn,isHideHeadline:e.isHideHeadline,isShowFestival:e.isShowFestival,onGoSubPage:()=>t("goSubPage"),isBelowName:!0},{listUpper:n.listUpper,default:r=>r.map(s=>w(g0,s,null))})}}),Zd={"game-platform-name":"_game-platform-name_1wt7m_92","is-follow-skin-color":"_is-follow-skin-color_1wt7m_109","is-white-bg-color":"_is-white-bg-color_1wt7m_112"},G2=()=>{const e=He(Cn);return w(Rf,{class:{"game-platform-name":!0,[Zd["game-platform-name"]]:!0,[Zd[`type-${e.inCardRenderCategory}
104`]]:!0,[Zd["is-white-bg-color"]]:e.imgBackgroundColor===us.White,[Zd["is-follow-skin-color"]]:e.imgBackgroundColor===us.Transparent}},{default:()=>[e.gameName]})},IC={"poster-box-core":"_poster-box-core_1c3mu_92","is-show-box-shadow":"_is-show-box-shadow_1c3mu_102"},AC=.027,F2=(e,{emit:t,slots:n})=>{const o=He(Cn);return w(Ay,{class:IC["is-show-box-shadow"],radiusSize:AC},{default:()=>[w(Ly,{class:{[IC["poster-box-core"]]:!0},radiusSize:AC,imgUrl:o.imgUrl,onClick:()=>t("click"),onPosterImgLoaded:a=>{t("posterImgLoaded",a)}},{default:()=>{var a;return[!o.isCustomIcon&&w(G2,null,null),(a=n==null?void 0:n.default)==null?void 0:a.call(n)]}})]})},W2={"landscape-right-left":"_landscape-right-left_wzyeg_91"},[V2]=_e("landscape-right-left"),f0=le({name:V2,props:Ka,emits:["posterImgLoaded"],setup(e,{emit:t}){return mt(Cn,e),()=>w(F2,{class:{"landscape-right-left":!0,[W2["landscape-right-left"]]:!0},style:{"--card-benchmark":e.mySize},onClick:e.handleClickCard,onPosterImgLoaded:n=>t("posterImgLoaded",n)},{default:()=>[e.isMaintain&&w(Lr,{exhibitPosition:Qa.Center,size:.39},null)]})}}),[$2]=_e("tab-item-game-list"),Y2=le({name:$2,props:Hn,emits:["goSubPage"],slots:Object,setup(e,{emit:t,slots:n}){const o=C(()=>gy[e.situation]);return()=>w(ys,{list:e.gameList,listConfig:o.value,iconUrl:e.iconUrl,listRowCount:e.listRowCount,closeLazyMode:e.closeLazyMode,headlineName:e.headlineName,isHiddenAllBtn:e.isHiddenAllBtn,isHideHeadline:e.isHideHeadline,isShowFestival:e.isShowFestival,onGoSubPage:()=>t("goSubPage"),isBelowName:!1},{listUpper:n.listUpper,default:a=>a.map(r=>w(f0,r,null))})}}),Bp={"rounded-below-name":"_rounded-below-name_1atxz_91","favorite-icon":"_favorite-icon_1atxz_91","poster-core":"_poster-core_1atxz_100"},[q2]=_e("rounded-below-name"),p0=le({name:q2,props:Ka,emits:["posterImgLoaded"],setup(e,{emit:t}){mt(Cn,e);const n=()=>e.isMaintain&&w(Lr,{exhibitPosition:Qa.Center,size:1},null),o=()=>e.isShowFavorite&&w(lc,{class:Bp["favorite-icon"],isUsableAnimation:!0,size:"0.34rem"},null);return()=>w(Al,{class:{"rounded-below-name":!0,[Bp["rounded-below-name"]]:!0},style:{"--card-benchmark":e.mySize},size:1.1333333333},{default:()=>[w(uc,{class:Bp["poster-core"],widthRatio:1,heightRatio:1,onClick:e.handleClickCard,onPosterImgLoaded:a=>t("posterImgLoaded",a)},{default:()=>[w(Il,{gameIcon:Sr.ROUNDED_BELOW},null),n(),o()]}),w(wl,{fontSizeRatio:.1466667,widthRatio:1.13333333,lineOneSize:.2,lineTwoSize:.4},null)]})}}),[z2]=_e("tab-item-game-list"),j2=le({name:z2,props:Hn,emits:["goSubPage"],slots:Object,setup(e,{emit:t,slots:n}){const{generateConfigByCardHeight:o}=Sa(),a=C(()=>o(wf[e.situation]));return()=>w(ys,{list:e.gameList,listConfig:a.value,iconUrl:e.iconUrl,listRowCount:e.listRowCount,closeLazyMode:e.closeLazyMode,headlineName:e.headlineName,isHiddenAllBtn:e.isHiddenAllBtn,isHideHeadline:e.isHideHeadline,isShowFestival:e.isShowFestival,onGoSubPage:()=>t("goSubPage"),isBelowName:!0},{listUpper:n.listUpper,default:r=>r.map(s=>w(p0,s,null))})}}),LC={"square-angle-below-name":"_square-angle-below-name_pobkj_91","favorite-icon":"_favorite-icon_pobkj_91"},[K2]=_e("square-angle-below-name"),h0=le({name:K2,props:Ka,emits:["posterImgLoaded"],setup(e,{emit:t}){mt(Cn,e);const n=()=>e.isMaintain&&w(Lr,{exhibitPosition:Qa.Center,size:1},null),o=()=>e.isShowFavorite&&w(lc,{class:LC["favorite-icon"],isUsableAnimation:!0,size:"0.34rem"},null);return()=>w(Al,{class:{"square-angle-below-name":!0,[LC["square-angle-below-name"]]:!0},style:{"--card-benchmark":e.mySize},size:1.103896},{default:()=>[w(uc,{widthRatio:1,heightRatio:1,radiusRatio:.064935,onClick:e.handleClickCard,onPosterImgLoaded:a=>t("posterImgLoaded",a)},{default:()=>[w(Il,{gameIcon:Sr.SQUARE_ANGLE_BELOW},null),n(),o()]}),w(wl,{fontSizeRatio:.142857,widthRatio:1.103896,lineOneSize:.194805,lineTwoSize:.38961},null)]})}}),[Q2]=_e("tab-item-game-list"),X2=le({name:Q2,props:Hn,emits:["goSubPage"],slots:Object,setup(e,{emit:t,slots:n}){const{generateConfigByCardHeight:o}=Sa(),a=C(()=>o(If[e.situation]));return()=>w(ys,{list:e.gameList,listConfig:a.value,iconUrl:e.iconUrl,listRowCount:e.listRowCount,closeLazyMode:e.closeLazyMode,headlineName:e.headlineName,isHiddenAllBtn:e.isHiddenAllBtn,isHideHeadline:e.isHideHeadline,isShowFestival:e.isShowFestival,onGoSubPage:()=>t("goSubPage"),isBelowName:!0},{listUpper:n.listUpper,default:r=>r.map(s=>w(h0,s,null))})}}),Hp={"square-below-name":"_square-below-name_hc6ha_91","favorite-icon":"_favorite-icon_hc6ha_91","game-name":"_game-name_hc6ha_96"},[Z2]=_e("square-below-name"),_0=le({name:Z2,props:Ka,emits:["posterImgLoaded"],setup(e,{emit:t}){mt(Cn,e);const n=()=>e.isMaintain&&w(Lr,{exhibitPosition:Qa.Center,size:1},null),o=()=>e.isShowFavorite&&w(lc,{class:Hp["favorite-icon"],isUsableAnimation:!0,size:"0.4rem"},null);return()=>w(Al,{class:{"square-below-name":!0,[Hp["square-below-name"]]:!0},style:{"--card-benchmark":e.mySize},size:1.307},{default:()=>[w(uc,{widthRatio:1,heightRatio:1,radiusRatio:.1384615,onClick:e.handleClickCard,onPosterImgLoaded:a=>t("posterImgLoaded",a)},{default:()=>[w(Il,{gameIcon:Sr.SQUARE_BELOW},null),n(),o()]}),w(wl,{class:Hp["game-name"],fontSizeRatio:.1692307,widthRatio:1.3076923,lineOneSize:.246,lineTwoSize:.492},null)]})}}),J2={"tab-item-game-list":"_tab-item-game-list_akq49_91"},[eee]=_e("pagination-square-below-name"),tee=le({name:eee,props:Hn,emits:["goSubPage"],slots:Object,setup(e,{emit:t,slots:n}){const{generateConfigByCardHeight:o}=Sa(),a=C(()=>o(fy[e.situation]));return()=>w(ys,{class:J2["tab-item-game-list"],list:e.gameList,listConfig:a.value,iconUrl:e.iconUrl,listRowCount:e.listRowCount,closeLazyMode:e.closeLazyMode,headlineName:e.headlineName,isHiddenAllBtn:e.isHiddenAllBtn,isHideHeadline:e.isHideHeadline,isShowFestival:e.isShowFestival,onGoSubPage:()=>t("goSubPage"),isBelowName:!0},{listUpper:n.listUpper,default:r=>r.map(s=>w(_0,s,null)),listBottom:n.listBottom})}}),TC={"vertical-below-name":"_vertical-below-name_6dvoh_91","favorite-icon":"_favorite-icon_6dvoh_91"},[nee]=_e("vertical-below-name"),b0=le({name:nee,props:Ka,emits:["posterImgLoaded"],setup(e,{emit:t}){mt(Cn,e);const n=()=>e.isMaintain&&w(Lr,{exhibitPosition:Qa.TopCenter,size:1},null),o=()=>e.isShowFavorite&&w(lc,{class:TC["favorite-icon"],isUsableAnimation:!0,size:"0.34rem"},null);return()=>w(Al,{class:{"vertical-below-name":!0,[TC["vertical-below-name"]]:!0},style:{"--card-benchmark":e.mySize},size:1.133333333},{default:()=>[w(uc,{widthRatio:1,heightRatio:1.33333333,radiusRatio:.06666667,onClick:e.handleClickCard,onPosterImgLoaded:a=>t("posterImgLoaded",a)},{default:()=>[w(Il,{gameIcon:Sr.VERTICAL_BELOW},null),n(),o()]}),w(wl,{fontSizeRatio:.146666667,widthRatio:1,lineOneSize:.2,lineTwoSize:.4},null)]})}}),[oee]=_e("tab-item-game-list"),aee=le({name:oee,props:Hn,emits:["goSubPage"],slots:Object,setup(e,{emit:t,slots:n}){const{generateConfigByCardHeight:o}=Sa(),a=C(()=>o(py[e.situation]));return()=>w(ys,{list:e.gameList,listConfig:a.value,iconUrl:e.iconUrl,listRowCount:e.listRowCount,closeLazyMode:e.closeLazyMode,headlineName:e.headlineName,isHiddenAllBtn:e.isHiddenAllBtn,isHideHeadline:e.isHideHeadline,isShowFestival:e.isShowFestival,onGoSubPage:()=>t("goSubPage"),isBelowName:!0},{listUpper:n.listUpper,default:r=>r.map(s=>w(b0,s,null))})}}),RC={"type-platform":"_type-platform_xo253_91","type-game":"_type-game_xo253_97","game-platform-name":"_game-platform-name_xo253_104"},ree=()=>{const e=He(Cn);return w(Rf,{class:["game-platform-name",RC["game-platform-name"],RC[`type-${e.inCardRenderCategory}`]]},{default:()=>[e.gameName]})},OC={"vertical-bottom-name":"_vertical-bottom-name_1oxgs_91","favorite-icon":"_favorite-icon_1oxgs_94"}
104,[see]=_e("templates-vertical-bottom-name"),y0=le({name:see,props:Ka,emits:["posterImgLoaded"],setup(e,{emit:t}){mt(Cn,e);const n=()=>e.isMaintain&&w(Lr,{exhibitPosition:Qa.TopCenter,size:1},null),o=()=>e.isShowFavorite&&w(lc,{class:OC["favorite-icon"],isUsableAnimation:!0,size:"0.34rem"},null);return()=>w(uc,{class:OC["vertical-bottom-name"],style:{"--card-benchmark":e.mySize},widthRatio:1,heightRatio:1.33,radiusRatio:.125,onClick:e.handleClickCard,onPosterImgLoaded:a=>t("posterImgLoaded",a)},{default:()=>[w(Il,{gameIcon:Sr.VERTICAL_BOTTOM},null),n(),o(),!e.isCustomIcon&&w(ree,null,null)]})}}),[iee]=_e("tab-item-game-list"),cee=le({name:iee,props:Hn,emits:["goSubPage"],slots:Object,setup(e,{emit:t,slots:n}){const o=C(()=>Af[e.situation]);return()=>w(ys,{list:e.gameList,listConfig:o.value,iconUrl:e.iconUrl,listRowCount:e.listRowCount,closeLazyMode:e.closeLazyMode,headlineName:e.headlineName,isHiddenAllBtn:e.isHiddenAllBtn,isHideHeadline:e.isHideHeadline,isShowFestival:e.isShowFestival,onGoSubPage:()=>t("goSubPage"),isBelowName:!1},{listUpper:n.listUpper,default:a=>a.map(r=>w(y0,r,null)),listBottom:n.listBottom})}}),Ya="slide-pagination",wge="slide-center-magnify",Py=["update:modelValue","update:indicatorPage","update:reachTerminus","update:physicalCodePage","slideStateChanged","scaleChanged","elementLoaded"],lee={...Lo(Hn,"isShowFestival","headlineName","iconUrl","isHideHeadline","isHiddenAllBtn","allButtonPosition","listRowCount","situation","closeLazyMode"),listConfig:{required:!0,type:Object},list:{required:!0,type:Array,default:()=>[]},gameList:{required:!1,type:Array},isShowDotMode:{type:Boolean,default:!1}},v0={iconUrl:{required:!0,type:String},headlineName:{required:!0,type:String},isHiddenAllBtn:{required:!1,type:Boolean},reachTerminus:{required:!0,type:String},isShowFestival:Boolean,allButtonPosition:{required:!0,type:String,default:ul.inside},isFormatGameCategoryName:{type:Boolean,default:!0},gameCategoryId:{required:!1,type:Number}},uee=Object.assign({},v0,{...Lo(Pf,"isCloseLazy"),dataList:{type:Array,default:()=>[]},useSliderPagination:{type:Boolean,default:!1},isHideHeadline:Boolean,gameCategoryId:{required:!1,type:Number}}),dee={reachTerminus:{required:!0,type:String},allButtonPosition:{required:!0,type:String,default:ul.inside}},mee={direction:{required:!0,type:String},isDisable:{required:!0,type:Boolean}},gee="_arrow_1hbis_92",Jd={"arrow-btn":"_arrow-btn_1hbis_92","is-disable":"_is-disable_1hbis_104","direction-left":"_direction-left_1hbis_110",arrow:gee,"direction-right":"_direction-right_1hbis_114"},[fee]=_e("arrow-btn"),PC=le({name:fee,props:mee,emits:["click"],setup(e,{emit:t}){return()=>w("section",{class:{[Jd["arrow-btn"]]:!0,[Jd[`direction-${e.direction}`]]:!0,[Jd["is-disable"]]:e.isDisable},onClick:()=>t("click")},[w(ld,{src:"/lobby_asset/common/web/home/comm_icon_fy_jt.svg",class:Jd.arrow},null)])}}),pee="_line_1xvk6_130",Gl={"switch-pagination-box":"_switch-pagination-box_1xvk6_92","btn-all-outside":"_btn-all-outside_1xvk6_99","switch-pagination":"_switch-pagination_1xvk6_92","btn-all-inside":"_btn-all-inside_1xvk6_117",line:pee}
104,[hee]=_e("zu-jian-ming-cheng"),_ee=le({name:hee,props:dee,emits:["clickAll","clickLeft","clickRight"],setup(e,{emit:t}){const{t:n}=F_();return()=>w("section",{class:[Gl["switch-pagination-box"],"switch-pagination-box"]},[e.allButtonPosition===ul.inside?null:w("div",{class:Gl["btn-all-outside"],onClick:()=>t("clickAll")},[n("lobby.game.loadingAll")]),w("section",{class:[Gl["switch-pagination"]]},[w(PC,{direction:"left",isDisable:[hr.start,hr.complete].includes(e.reachTerminus),onClick:()=>t("clickLeft")},null),e.allButtonPosition===ul.inside?w("div",{class:Gl["btn-all-inside"],onClick:()=>t("clickAll")},[n("lobby.game.loadingAll")]):w("div",{class:Gl.line},null),w(PC,{direction:"right",isDisable:[hr.end,hr.complete].includes(e.reachTerminus),onClick:()=>t("clickRight")},null)])])}}),bee={iconUrl:{required:!0,type:String},headlineName:{required:!0,type:String}},yee="_title_1a1yg_91",xp={title:yee,"title-text":"_title-text_1a1yg_98","title-icon":"_title-icon_1a1yg_104"},[vee]=_e("title"),See=le({name:vee,props:bee,setup(e){const t=He(ri,{isCloseLazy:!1});return()=>w("section",{class:[xp.title]},[e.iconUrl&&w(ud,{src:e.iconUrl,class:xp["title-icon"],useImage:dt.enable,iconProps:{inheritSize:!0},imgProps:{lazy:t.isCloseLazy}},null),w("div",{class:xp["title-text"]},[e.headlineName])])}}),DC={"game-headline":"_game-headline_1gshk_91","mini-jackpot":"_mini-jackpot_1gshk_100"},Cee=bo({loader:()=>V(()=>import("./festival-ui-group.5mfKnHma.js").then(e=>e.G),__vite__mapDeps([0,1,3,4,5,7,6,8,34]))}),wee=bo({loader:()=>V(()=>import("./Common.BWIuMFf1.js"),__vite__mapDeps([0,4,35,36]))}),[Iee]=_e("game-headline"),Aee=le({name:Iee,props:v0,emits:["clickAll","clickLeft","clickRight"],setup(e,{emit:t}){const n=nn(),o=He("gameCategoryId"),{formatGameCategoryName:a}=d0(),r=C(()=>a(e.headlineName,o!==Z.Merged));return()=>w("section",{class:[DC["game-headline"]]},[w(See,{class:"title",headlineName:r.value,iconUrl:e.iconUrl},null),e.isShowFestival&&n.isHolidayThemeVisible&&!u0(o)&&w(Cee,null,null),w(ln,{moduleName:`${$t.jackpotInPlatformRight}${o}`},{default:()=>[w(wee,{type:os.Mini,place:"platformTop",gameCategoryId:o,class:e.isHiddenAllBtn?DC["mini-jackpot"]:""},null)]}),!e.isHiddenAllBtn&&w(_ee,{class:"switch-pagination",reachTerminus:e.reachTerminus,allButtonPosition:e.allButtonPosition,onClickAll:()=>t("clickAll"),onClickLeft:()=>t("clickLeft"),onClickRight:()=>t("clickRight")},null)])}}),Lee={"layout-box":"_layout-box_1sko8_91"},Tee=(e,{slots:t})=>{var n;return w("section",{class:Lee["layout-box"]},[(n=t.default)==null?void 0:n.call(t)])},Ree={"arrow-load-view":"_arrow-load-view_1j77v_91"},[Oee]=_e("arrow-load-view"),Pee=le({name:Oee,props:uee,emits:["clickAll","clickLeft","clickRight"],slots:Object,setup(e,{emit:t,slots:n}){return mt(ri,e),()=>w(Tee,{class:Ree["arrow-load-view"]},{default:()=>{var o,a,r;return[!e.isHideHeadline&&w(Aee,Te(e,{headlineName:e.headlineName,onClickAll:()=>t("clickAll"),onClickLeft:()=>t("clickLeft"),onClickRight:()=>t("clickRight")}),null),(o=n.listUpper)==null?void 0:o.call(n),(a=n.default)==null?void 0:a.call(n),(r=n.listBottom)==null?void 0:r.call(n)]}})}}),S0=Symbol("normalize_chunk_manager"),C0={modelValue:Number,dir:String,situation:[Number,String],isSlideOneScreen:{type:Boolean,required:!1,default:!0},gameList:{required:!0,type:Array},listRowCount:{required:!0,type:Number},listConfig:{required:!0,type:Object},closeLazyMode:{required:!1,type:Number,default:la.None},isInfiniteLoop:{required:!1,type:Boolean,default:!1},isExposeSeat:{required:!1,type:Boolean,default:!1},overscan:Number},w0=Symbol("virtual_chunk_manager"),Dee=Symbol("progressive_scaling_manager"),Mee=(e,t)=>{const n=He(Dee),{isNeedCloneList:o,defaultChunkLoadListIndex:a}=t,r=vt({chunkList:[],chunkLoaded:{}}),s=u=>(e.isSlideOneScreen?u=[u[u.length-1],...u,u[0]]:u=[u[u.length-2],u[u.length-1],...u,u[0],u[1]].filter(d=>!!d),u),i=(u,d)=>{const m={};for(let g=0;g<u.length;g++){const f={isLoaded:!1,sourceListIndex:-1};if(o.value){let _=1;e.isSlideOneScreen||(_=2),g<_?f.sourceListIndex=g+d:g>d-1+_&&(f.sourceListIndex=g-d)}m[g]=f}if(e.closeLazyMode===la.CloseAll)for(let g=0;g<u.length;g++)m[g].isLoaded=!0;if(e.closeLazyMode===la.CloseFirstScreen){const g=m[a.value];g&&(g.isLoaded=!0)}return m},c=u=>{const d=e.listConfig.box.listColumnCount;let m=0;u.forEach(g=>{g.forEach((f,_)=>{f.atCol=_%d+1+m,f.atRow=parseInt(_/d)+1}),m=g[g.length-1].atCol})},l=u=>{e.isExposeSeat&&(u=u.map(Dg),u.forEach((g,f)=>{g.atIndex=f}));const d=e.listConfig.box.listColumnCount;return nP(u||[],e.listRowCount*d)};return fe(()=>e.gameList,u=>{let d=l(u);e.isExposeSeat&&c(d),n==null||n.upTransferList(Cw(d));const m=d.length;o.value&&(d=s(d)),r.chunkList=d,r.chunkLoaded=i(d,m)},{immediate:!0}),Kn(()=>n==null?void 0:n.upTransferList([])),{gameChunk:r}},Nee=(e,t)=>
104e<t?e:t,kee=(e,t)=>{const{gameChunk:n}=t,o=C(()=>{const{listColumnCount:i}=e.listConfig.box,c=[];let l=0;for(const u of n.chunkList)c.push(l),l+=e.isSlideOneScreen?i:Nee(u.length,i);return c}),a=O(0),r=i=>{a.value=i};return{physicalChunkIndexRef:C(()=>{const i=o.value,c=a.value;for(let l=i.length-1;l>=0;l--)if(c>=i[l])return l;return 0}),updatePhysicalCodePage:r}},Df={...Pf,width:String,leftRightSpacing:String,topBotSpacing:String,modelValue:Number,height:String,permutationDirection:{type:String,default:"column"},isSlideOneScreen:{type:Boolean,required:!1,default:!0},indicatorLimit:{required:!1,type:Number,default:0},list:{required:!0,type:Array},listRowCount:{required:!0,type:Number},listColumnCount:{required:!0,type:Number},permutationCount:Number,paginationConfig:{required:!1,type:Object},isInfiniteLoop:{required:!1,type:Boolean,default:!1},requiredCloneMinimum:{required:!1,type:Number}},I0=e=>{const t=()=>{var a,r,s,i;const{paginationConfig:o}=e;return{subTotalNum:e.list.length,subRowNum:(o==null?void 0:o.rowNum)||1,subColNum:(o==null?void 0:o.colNum)||1,subIntervalTopBottom:parseFloat((a=e.topBotSpacing)!=null?a:"0"),subIntervalLeftRight:parseFloat((r=e.leftRightSpacing)!=null?r:"0"),subWidth:parseFloat((s=o==null?void 0:o.eleWidth)!=null?s:"0"),subHeight:parseFloat((i=o==null?void 0:o.eleHeight)!=null?i:"0"),orderDirection:"horizontal",indicatorLimit:e.indicatorLimit}},n=O(t());return fe(()=>{var o,a;return[e.list.length,e.requiredCloneMinimum,(o=e.paginationConfig)==null?void 0:o.rowNum,(a=e.paginationConfig)==null?void 0:a.colNum]},(o,a)=>{o.some((s,i)=>s!==a[i])&&(n.value=t())}),{ctxParams:n}},A0=e=>{const{props:t,setupCtx:n,level:o,isUseFr:a,codePagePositionMapper:r}=e,{ctxParams:s}=I0(t),i=C(()=>{if(t.width)return t.width;const{subRowNum:d,subColNum:m,subTotalNum:g}=s.value;if(g===0)return"0rem";const f=d*m;let{colCount:_}=R_({rowNum:d,colNum:m,direction:"horizontal",total:g<f?g:f});return _=m>_?m:_,`${(s.value.subWidth+s.value.subIntervalLeftRight)*_-s.value.subIntervalLeftRight}rem`}),c=C(()=>r?`${(s.value.subWidth+s.value.subIntervalLeftRight)*Object.keys(r).length-s.value.subIntervalLeftRight}rem`:i.value),l=C(()=>{if(t.height)return t.height;const{subRowNum:d,subColNum:m,subTotalNum:g}=s.value;if(g===0)return"0rem";const f=d*m;let{rowCount:_}=R_({rowNum:d,colNum:m,direction:"horizontal",total:g<f?g:f});return _=d>_?d:_,`${(s.value.subHeight+s.value.subIntervalTopBottom)*_-s.value.subIntervalTopBottom}rem`}),u=C(()=>{const d=(g=0,f="1fr")=>{if(!g)return;let _=f;for(let h=1;h<g;h++)_+=` ${f}`;return _},m=g=>{var f,_;return a?"1fr":g==="rows"?o===1?l.value:(f=t.paginationConfig)==null?void 0:f.eleHeight:o===1?i.value:(_=t.paginationConfig)==null?void 0:_.eleWidth};return{"--list-slide-width":i.value,"--list-slide-inner-content-width":c.value,"--list-slide-height":l.value,"--list-slide-column-gap":t.leftRightSpacing,"--list-slide-row-gap":t.topBotSpacing,"--list-slide-grid-auto-flow":t.permutationDirection,"--list-slide-grid-template-rows":d(t.listRowCount,m("rows")),"--list-slide-grid-template-columns":d(t.listColumnCount,m("columns")),"--debug-permutation-direction--":t.permutationDirection}});return fe(u,d=>{n.emit("scaleChanged",{width:d["--list-slide-width"],height:d["--list-slide-height"],columnGap:d["--list-slide-column-gap"],rowGap:d["--list-slide-row-gap"]})},{immediate:!0}),{listSlideStyle:u}},MC={"list-slide-layout":"_list-slide-layout_2dvj8_92","list-slide-layout-inner":"_list-slide-layout-inner_2dvj8_95"},[Bee]=_e("only-layout-box"),Hee=le({name:Bee,props:Df,emits:Py,setup(e,t){const n=O(null),{listSlideStyle:o}=A0({props:e,setupCtx:t,level:2}),{isShowByLazy:a}=Oy(e,t,n);return()=>{var r,s;return w("section",{class:[MC["list-slide-layout"],"list-slide-layout"]},[w("div",{ref:n,class:[MC["list-slide-layout-inner"],"list-slide-layout-inner"],style:o.value}
104,[a.value&&((s=(r=t.slots).default)==null?void 0:s.call(r))])])}}}),xee=Symbol("regular_slide_manager"),Eee=({props:e,setupCtx:t})=>{const n=He(xee,null);return n&&(n.upTransferSlideBoxControl({getModelValue:()=>e.modelValue,setModelValue:o=>t.emit("update:modelValue",o)}),Kn(()=>n.upTransferSlideBoxControl(null))),{regularSlideManager:n}},Uee=(e,t)=>{var r,s;const n={befCloneColNum:0,aftCloneCloNum:0},o=(s=(r=e.paginationConfig)==null?void 0:r.colNum)!=null?s:1,a=t%o||o;if(!e.isInfiniteLoop)return n;if(e.requiredCloneMinimum){if(e.list.length<e.requiredCloneMinimum)return n}else if(t<=o)return n;return e.isSlideOneScreen?t>=o&&(n.aftCloneCloNum=o,n.befCloneColNum=a):t>=o*2?(n.aftCloneCloNum=o*2,n.befCloneColNum=o+a):t>o?(n.aftCloneCloNum=o+a,n.befCloneColNum=o+a):t===o&&(n.aftCloneCloNum=o,n.befCloneColNum=o),n},Gee=(e,t)=>{const{orderDirection:n,subTotalNum:o,subRowNum:a,subColNum:r}=e,{needCountRowOrColumn:s,isFullOnlySingleView:i}=t,c=s==="column"?r:a,l=r*a;if(o<=l&&i)return c;const u=o%l||l,d=R_({total:u,rowNum:a,colNum:r,direction:n});return s==="column"?d.colCount:d.rowCount},Fee=e=>{const{subTotalNum:t,subRowNum:n,subColNum:o}=e;return Math.ceil(t/(n*o))},Wee=(e,t)=>(o=>{let a=e.subTotalNum,r=0;if(e.indicatorLimit===0){const c=Fee(e);let l=o.perScreenCount;t.isSlideOneScreen||(l=Gee(e,{needCountRowOrColumn:o.needCountRowOrColumn,isFullOnlySingleView:t.isFullOnlySingleView})),r=(c-1)*o.perScreenCount+l,a=r-(o.perScreenCount-1)}const s=o.elementSize+o.interval,i=s*a-o.interval;return{pageTotal:a,codePageTotal:r,oncePageSize:s,scrollSize:i}})({perScreenCount:e.subColNum,elementSize:e.subWidth,interval:e.subIntervalLeftRight,needCountRowOrColumn:"column"}),Dy=({domRef:e})=>{const t=C(()=>nn().skinType===2&&ir.includes(Ge().language)),n=r=>(r={...r},typeof r.left=="number"&&(r.left=-r.left),typeof r.top=="number"&&(r.top=-r.top),r);return{scrollTo:r=>{e.value&&(t.value&&(r=n(r)),typeof r.left=="number"&&(r.left>=0?e.value.style.setProperty("--list-slide-transform-scroll-area-transform",`translate3d(-${r.left}rem,0rem,0rem)`):e.value.style.setProperty("--list-slide-transform-scroll-area-transform",`translate3d(${-r.left}rem,0rem,0rem)`)),typeof r.top=="number"&&(r.top>=0?e.value.style.setProperty("--list-slide-transform-scroll-area-transform",`translate3d(0rem,-${r.top}rem,0rem)`):e.value.style.setProperty("--list-slide-transform-scroll-area-transform",`translate3d(0rem,${-r.top}rem,0rem)`)))},getScrollVal:r=>{var s,i;try{let c=0;return e.value&&(r==="left"&&(c=Number((s=e.value.style.getPropertyValue("--list-slide-transform-scroll-area-transform"))==null?void 0:s.replace(/translate3d\((-?\d+(\.\d+)?)(rem)?,0rem,0rem\)/,"$1"))),r==="top"&&(c=Number((i=e.value.style.getPropertyValue("--list-slide-transform-scroll-area-transform"))==null?void 0:i.replace(/translateY\(0rem,(-?\d+(\.\d+)?)(rem)?,0rem\)/,"$1"))),c=-c,t.value&&(c=-c)),c}catch(c){return 0}}}},Vee=(e,t,n)=>{const o=vt({pageTotal:0,oncePageSize:0,scrollSize:0,codePageTotal:0,screenColNum:0,inaccessibleColNum:0,befCloneColNum:0,aftCloneCloNum:0});fe(n,s=>{var f,_;const{scrollSize:i,oncePageSize:c,codePageTotal:l,pageTotal:u}=Wee(s,{isFullOnlySingleView:!0,isSlideOneScreen:e.isSlideOneScreen}),d=(_=(f=e.paginationConfig)==null?void 0:f.colNum)!=null?_:1;o.scrollSize=i,o.oncePageSize=c,o.pageTotal=u,o.codePageTotal=l,o.screenColNum=d,o.inaccessibleColNum=d-1;const{befCloneColNum:m,aftCloneCloNum:g}=Uee(e,l);o.befCloneColNum=m,o.aftCloneCloNum=g},{immediate:!0});const a=s=>s-1;return{pagiManager:o,scrollToPage:s=>{const i=Dy({domRef:t});e.permutationDirection==="column"?i.scrollTo({left:a(s)*o.oncePageSize}):i.scrollTo({top:a(s)*o.oncePageSize})}}};function $ee(e){return!!(e.touches||e.changedTouches)}const Us=e=>function(n){let o;if($ee(n)){const{clientX:a,clientY:r}=n.touches[0]||n.changedTouches[0]||{};o={clientX:a,clientY:r,originEvent:n}}else{const{clientX:a,clientY:r,originEvent:s}=n;o={clientX:a,clientY:r,originEvent:s}}e(o)},NC=5,kC=1,Yee=e=>{const{props:t,ctxParams:n,setupCtx:{emit:o},pagiManager:a,scrollToPage:r,scrollBoxRef:s}=e,i=v=>{let A=v;const L=a.pageTotal-(t.indicatorLimit-1);return L<=1||v<1?A=1:v>L&&(A=L>1?L:1),A},c=()=>{o("update:modelValue",1),s.value&&(s.value.style.setProperty("transition","none"),yt(()=>{var v;return(v=s.value)==null?void 0:v.style.setProperty("transition","")}))};hs(c),fe(n,()=>yt(c),{immediate:!0});const l=O(1);fe(()=>t.modelValue,(v,A)=>{if(v===A)return;typeof v!="number"&&(v=1);let L=l.value;const T=[L+kC,L+t.indicatorLimit-1-kC],S=T[1]-T[0]+1;if(!(v>=T[0]&&v<=T[1])){if(v<T[0]){const I=T[0]-v-1;L=L-(S+I)}else{const I=v-T[1]-1;L=L+(S+I)}l.value=i(L),r(l.value)}});const u=C(()=>Dy({domRef:s})),d=O({clientX:0,clientY:0}),m=O(0),g=O(!1),f=()=>g.value,_=Us(v=>{var A;(A=s.value)==null||A.style.setProperty("transition","none"),m.value=u.value.getScrollVal("left"),d.value=v,o("slideStateChanged",{phase:"dragStart"})}),h=()=>{m.value=u.value.getScrollVal("left"),d.value={clientX:0,clientY:0};const v=s.value;v&&(v.style.setProperty("transition",""),v.style.pointerEvents="auto"),g.value=!1};sc(h);const p=Us(v=>{var T;(T=s.value)==null||T.style.setProperty("transition","");const A=d.value.clientX,L=v.clientX-A;if(L<-5){let S=e.props.modelValue||1;S=S+1,o("update:modelValue",S)}else if(L>NC){let S=e.props.modelValue||1;S=S-1,o("update:modelValue",S)}h(),o("slideStateChanged",{phase:"dragEnd"})}),y=Us(()=>{h()}),b=Us(v=>{const A=d.value.clientX,L=v.clientX-A;Math.abs(L)>NC&&(g.value=!0,s.value.style.pointerEvents="none")});return{handleDragStart:_,handleDragEnd:p,handleDragMove:b,handleDragCancel:y,getIsDragging:f,adjustPositionIfCopy:()=>{}}},qee=(e,t)=>
104{const{props:n,setupCtx:{emit:o},scrollBoxRef:a}=e,{scrCon:r,codePagePositionMapper:s,codePage2ModelVal:i}=t,c=O(),l=(m=0)=>{s[m]&&a.value&&(a.value.style.setProperty("transition","none"),r.value.scrollTo({left:s[m].position}),c.value=m)};return{jumpToPage:l,scrollToPage:(m=0)=>{if(!s[m]||!a.value)return;const{position:g}=s[m];a.value.style.setProperty("transition","transform 500ms"),n.permutationDirection==="column"?r.value.scrollTo({left:g}):r.value.scrollTo({top:g}),c.value=m},adjustPositionIfCopy:m=>{if(typeof m=="number"&&(c.value=m),typeof c.value!="number")return;const{jumpType:g,realCodePage:f,indicatorPage:_}=s[c.value];g===Qn.Before||g===Qn.After?(o("slideStateChanged",{phase:"progress",value:i(f)}),o("update:modelValue",i(f)),o("update:indicatorPage",_),o("update:physicalCodePage",f),l(f),yt(()=>{o("slideStateChanged",{phase:"progressRelease"})})):(o("update:physicalCodePage",c.value),l(c.value))}}},zee=(e,t)=>{const{props:n,pagiManager:o}=e,{codePage2ModelVal:a}=t,r=vt({}),s=vt({minPosition:0,maxPosition:0,minCodePage:0,maxCodePage:0,coreMinCodePage:0,coreMaxCodePage:0});return fe(o,()=>{for(const h in r)Object.prototype.hasOwnProperty.call(r,h)&&delete r[h];const{screenColNum:c,inaccessibleColNum:l,codePageTotal:u,oncePageSize:d,befCloneColNum:m,aftCloneCloNum:g}=o,f=()=>{const h=y=>{const b=()=>y<m?Qn.Before:y>u-1+m?Qn.After:Qn.Core,v=()=>y<m-l?Qn.Before:y>u-1+m?Qn.After:Qn.Core,A=I=>I===Qn.Before?y+u:I===Qn.After?y-u:y,L=b(),T=v(),S=A(L);return{cloneType:L,jumpType:T,realCodePage:S}},p=u+m+g;for(let y=0;y<p;y++){const b=y*d,v=h(y);r[y]={...v,position:b,indicatorPage:a(v.realCodePage)},s.maxPosition=b-l*d,s.maxCodePage=y-l,v.cloneType===Qn.Core&&(s.coreMinCodePage===0&&(s.coreMinCodePage=y-l),s.coreMaxCodePage=y-l)}},_=()=>{for(let h=0;h<u;h++){const p=h*d;r[h]={cloneType:Qn.Core,jumpType:Qn.Core,position:p,realCodePage:h,indicatorPage:a(h)},s.maxPosition=p-l*d,s.maxCodePage=h-l,s.coreMaxCodePage=h-l}};return n.isInfiniteLoop?n.requiredCloneMinimum?n.list.length>=n.requiredCloneMinimum?f():_():u>c?f():_():_()},{immediate:!0}),{codePagePositionMapper:r,draggingSection:s}},jee=e=>{const t=gf();return(o=>parseFloat(o)/Kb/(t/100))(e)},L0=e=>{var s;const{codePage:t,oldCodePage:n,codePagePositionMapper:o,isDragging:a}=e;return o[t]?!(t===n||((s=o[n])==null?void 0:s.jumpType)!==Qn.Core||a):!1},Ep=.2,Kee=(e,t)=>{const{props:n,setupCtx:{emit:o},pagiManager:a,scrollBoxRef:r}=e,{scrCon:s,draggingSection:i,adjustPositionIfCopy:c,jumpToPage:l,codePage2ModelVal:u,modelVal2CodePage:d,codePagePositionMapper:m}=t,g=C(()=>nn().skinType===2&&ir.includes(Ge().language)),f=O({clientX:0,clientY:0}),_=O(0),h=O(null),p=()=>h.value===1,y=O(null),b=(M,B)=>{const{clientX:E,clientY:Y}=f.value;let H=0;return B===1?H=M.clientX-E:H=M.clientY-Y,g.value&&(H=-H),jee(H)},v=M=>{var B;h.value===null&&(Math.abs(b(M,1))>Ep?(h.value=1,(B=M.originEvent)==null||B.preventDefault()):Math.abs(b(M,2))>Ep&&(h.value=2),[sr.WINDOWS,sr.MAC].includes(Wg())&&h.value!==null&&(r.value.style.pointerEvents="none"))},A=Us(M=>{var B,E;h.value=null,c(),o("slideStateChanged",{phase:"dragStart"}),(E=(B=M.originEvent)==null?void 0:B.target)==null||E.setAttribute("ondragstart","return false"),_.value=s.value.getScrollVal("left"),f.value=M,y.value=null}),L=M=>M>i.maxCodePage?i.maxCodePage:M<i.minCodePage?i.minCodePage:M,T=(M,B)=>{const E=L(M),{indicatorPage:Y,jumpType:H}=m[E]||{};l(E),o("slideStateChanged",{phase:"progress",value:u(E)}),o("update:modelValue",u(E)),o("update:indicatorPage",Y),o("update:physicalCodePage",E);const F=H===Qn.Before||H===Qn.After,Q=L0({codePage:E,oldCodePage:B,codePagePositionMapper:m,isDragging:!1});return{isLandedOnClone:F,needsSyncAdjust:F&&!Q}},S=()=>{_.value=s.value.getScrollVal("left"),f.value={clientX:0,clientY:0};const M=r.value;M&&(M.style.setProperty("transition",""),M.style.pointerEvents="auto"),h.value=null};sc(S);const I=Us(M=>{var Y,H,F,Q,G;let B=!1,E=!1;if(h.value===1&&a.oncePageSize>0){const N=n.isSlideOneScreen&&(H=(Y=e.props.paginationConfig)==null?void 0:Y.colNum)!=null?H:1,$=a.oncePageSize*N,X=b(M,1);let j=d((F=e.props.modelValue)!=null?F:1);const te=j;X<-$||X>$?(j=j-Math.round(X/$)*N,{isLandedOnClone:B,needsSyncAdjust:E}=T(j,te)):X<-.2?(j=j- -1*N,{isLandedOnClone:B,needsSyncAdjust:E}=T(j,te)):X>Ep&&(j=j-1*N,{isLandedOnClone:B,needsSyncAdjust:E}=T(j,te))}S(),o("slideStateChanged",{phase:"dragEnd"}),(G=(Q=M.originEvent)==null?void 0:Q.target)==null||G.removeAttribute("ondragstart"),B?E&&c():yt(()=>{o("slideStateChanged",{phase:"progressRelease"})})}),R=Us(M=>{var B,E;S(),(E=(B=M.originEvent)==null?void 0:B.target)==null||E.removeAttribute("ondragstart")}),D=Us(M=>{var B,E,Y;if(i.maxCodePage!==0){if(h.value===null){v(M);return}if(h.value===1){if(a.oncePageSize===0)return;(B=M.originEvent)==null||B.preventDefault(),r.value.style.setProperty("transition","none");const H=b(M,1);let F=_.value-H;F<i.minPosition+.002?F=i.minPosition+.002:F>i.maxPosition-.002&&(F=i.maxPosition-.002),s.value.scrollTo({left:F});const Q=L(d((E=e.props.modelValue)!=null?E:1)-H/a.oncePageSize);o("slideStateChanged",{phase:"progress",value:u(Q)}),o("update:physicalCodePage",Q);const G=(Y=m[Math.round(Q)])==null?void 0:Y.indicatorPage;G!==void 0&&G!==y.value&&(y.value=G,o("update:indicatorPage",G))}}});return{handleDragStart:A,handleDragEnd:I,handleDragCancel:R,handleDragMove:D,getIsDragging:p}},Qee=(e,t)=>
104{const{props:n,ctxParams:o,setupCtx:{emit:a},pagiManager:r}=e,{codePagePositionMapper:s,draggingSection:i,codePage2ModelVal:c,modelVal2CodePage:l,jumpToPage:u,scrollToPage:d,getIsDragging:m}=t,g=h=>{r.pageTotal<=1?a("update:reachTerminus",hr.complete):!n.isInfiniteLoop&&h===i.minCodePage?a("update:reachTerminus",hr.start):!n.isInfiniteLoop&&h===i.maxCodePage?a("update:reachTerminus",hr.end):a("update:reachTerminus",hr.middleSection)};fe(()=>n.modelValue,(h,p)=>{let y=l(h!=null?h:1);const b=l(p!=null?p:1);if(!s[y]){y<i.minCodePage?y=i.coreMaxCodePage:y>i.maxCodePage&&(y=i.coreMinCodePage),u(y),g(y),a("update:modelValue",c(y));const{indicatorPage:v}=s[y];a("update:indicatorPage",v),a("update:physicalCodePage",y);return}g(y),a("update:indicatorPage",s[y].indicatorPage),a("update:physicalCodePage",y),L0({codePage:y,oldCodePage:b,codePagePositionMapper:s,isDragging:m()})&&d(y)});const _=()=>{const{befCloneColNum:h}=r,p=0+h;a("update:modelValue",c(p)),a("update:indicatorPage",c(p)),a("update:physicalCodePage",p),u(p),g(p)};hs(_),fe(o,()=>yt(_),{immediate:!0})},Xee=e=>{const{pagiManager:t}=e;return{modelVal2CodePage:a=>a-1+t.befCloneColNum,codePage2ModelVal:a=>a+1-t.befCloneColNum}},Zee=e=>{const{scrollBoxRef:t}=e,{codePage2ModelVal:n,modelVal2CodePage:o}=Xee(e),{draggingSection:a,codePagePositionMapper:r}=zee(e,{codePage2ModelVal:n}),s=C(()=>Dy({domRef:t})),{adjustPositionIfCopy:i,jumpToPage:c,scrollToPage:l}=qee(e,{codePage2ModelVal:n,codePagePositionMapper:r,scrCon:s}),{handleDragStart:u,handleDragMove:d,handleDragEnd:m,handleDragCancel:g,getIsDragging:f}=Kee(e,{scrCon:s,codePagePositionMapper:r,draggingSection:a,adjustPositionIfCopy:i,jumpToPage:c,codePage2ModelVal:n,modelVal2CodePage:o});return Qee(e,{draggingSection:a,codePagePositionMapper:r,codePage2ModelVal:n,modelVal2CodePage:o,jumpToPage:c,scrollToPage:l,getIsDragging:f}),{codePagePositionMapper:r,handleDragStart:u,handleDragEnd:m,handleDragCancel:g,handleDragMove:d,getIsDragging:f,adjustPositionIfCopy:i}},Jee=(e,t,n)=>{const{ctxParams:o}=I0(e),{pagiManager:a,scrollToPage:r}=Vee(e,n,o);return{useSyncTransform:()=>Zee({props:e,ctxParams:o,pagiManager:a,setupCtx:t,scrollBoxRef:n}),useSyncIndicator:()=>Yee({props:e,ctxParams:o,pagiManager:a,scrollToPage:r,setupCtx:t,scrollBoxRef:n})}},Fl={"list-slide-layout":"_list-slide-layout_l38le_92","list-slide-layout-inner":"_list-slide-layout-inner_l38le_95","scroll-box-transform":"_scroll-box-transform_l38le_117","scroll-box-transform-inner":"_scroll-box-transform-inner_l38le_125","is-dragging":"_is-dragging_l38le_132"},[ete]=_e("scroll-box-transform"),tte=le({name:ete,props:Df,emits:Py,setup(e,t){const n=He(o0,O(null)),{regularSlideManager:o}=Eee({props:e,setupCtx:t}),{isShowByLazy:a}=Oy(e,t,n),{useSyncTransform:r,useSyncIndicator:s}=Jee(e,t,n),{codePagePositionMapper:i,handleDragStart:c,handleDragEnd:l,handleDragCancel:u,handleDragMove:d,getIsDragging:m,adjustPositionIfCopy:g}=e.indicatorLimit===0?r():s(),{listSlideStyle:f}=A0({props:e,setupCtx:t,level:1,codePagePositionMapper:i,isUseFr:e.indicatorLimit>0});return()=>{var _,h;return w("section",{class:[Fl["list-slide-layout"],Fl["scroll-box-transform"],{[Fl["is-dragging"]]:m()}],style:f.value},[w("div",{class:[Fl["list-slide-layout-inner"],Fl["scroll-box-transform-inner"]],ref:n,onTouchstart:p=>{c(p),o==null||o.upTransferDragStart()},onTouchend:p=>{l(p),o==null||o.upTransferDragEnd()},onTouchcancel:p=>{u(p),o==null||o.upTransferDragEnd()},onTouchmove:d,onTransitionend:p=>{p.target!==p.currentTarget||p.propertyName!=="transform"||g()}},[a.value&&((h=(_=t.slots).default)==null?void 0:h.call(_))])])}}}),[nte]=_e("list-slide"),BC=Symbol("list_slide_level"),O_=le({name:nte,props:Df,emits:Py,setup(e,{slots:t,emit:n}){mt(ri,e);const o=He(BC,1);return mt(BC,o+1),o===1?()=>w(tte,Te(e,{"onUpdate:modelValue":a=>n("update:modelValue",a),"onUpdate:reachTerminus":a=>n("update:reachTerminus",a),"onUpdate:indicatorPage":a=>n("update:indicatorPage",a),"onUpdate:physicalCodePage":a=>n("update:physicalCodePage",a),onSlideStateChanged:a=>n("slideStateChanged",a),onScaleChanged:a=>n("scaleChanged",a),onElementLoaded:()=>n("elementLoaded")}),{default:()=>{var a;return[(a=t.default)==null?void 0:a.call(t)]}}):()=>w(Hee,Te(e,{onScaleChanged:a=>n("scaleChanged",a),onElementLoaded:()=>n("elementLoaded")}),{default:()=>{var a;return[(a=t.default)==null?void 0:a.call(t)]}})}});function ote(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ao(e)}const[ate]=_e("order-horizontal"),HC=(e,t)=>e<t?e:t,rte=le({name:ate,props:C0,emits:["update:modelValue","update:indicatorPage","update:reachTerminus","slideStateChanged"],setup(e,{emit:t,slots:n}){const o=C(()=>{var _;if(!e.isInfiniteLoop)return!1;const f=(_=e.listConfig.spare)==null?void 0:_.requiredCloneMinimum;return f?e.gameList.length>=f:e.gameList.length>e.listRowCount*e.listConfig.box.listColumnCount}),a=C(()=>o.value?e.isSlideOneScreen?1:2:0),{gameChunk:r}=Mee(e,{isNeedCloneList:o,defaultChunkLoadListIndex:a}),s=f=>{var _;if(o.value)try{const h=(_=r.chunkLoaded[f])==null?void 0:_.sourceListIndex;h!==-1&&(r.chunkLoaded[h].isLoaded=!0)}catch(h){}},i=C(()=>{const f=e.gameList.length,_=Math.ceil(f/e.listConfig.box.listColumnCount);return HC(e.listRowCount,_)}),c=f=>({eleWidth:e.listConfig.card.width,eleHeight:e.listConfig.card.height,rowNum:i.value,colNum:f}),{isOutBoxCloseLazy:l}=Ry(e),u=He(w0,null),{physicalChunkIndexRef:d,updatePhysicalCodePage:m}=kee(e,{gameChunk:r});u&&u.upTransferData({props:e,physicalChunkIndexRef:d,rowCount:i,gameChunk:r});const g=f=>{f.phase==="dragStart"?u==null||u.pinChunkAtDragStart():f.phase==="dragEnd"&&yt(()=>u==null?void 0:u.unpinChunk()),t("slideStateChanged",f)};return()=>{var _;let f;return w(O_,Te(e.listConfig.box,{requiredCloneMinimum:(_=e.listConfig.spare)==null?void 0:_.requiredCloneMinimum,isCloseLazy:l.value,isAllowCloseLazyByImageLoadStrategy:!0,paginationConfig:c(e.listConfig.box.listColumnCount),modelValue:e.modelValue,"onUpdate:modelValue":h=>t("update:modelValue",h),"onUpdate:indicatorPage":h=>t("update:indicatorPage",h),"onUpdate:physicalCodePage":m,onSlideStateChanged:g,permutationDirection:"column",list:e.gameList,listRowCount:1,listColumnCount:1,isSlideOneScreen:e.isSlideOneScreen,"onUpdate:reachTerminus":h=>{t("update:reachTerminus",h)},isInfiniteLoop:e.isInfiniteLoop}),ote(f=r.chunkList.map((h,p)=>{if(u&&!u.isChunkVisible(p))return w("section",{class:{[Ya]:e.isSlideOneScreen},style:u.getPlaceholderStyle()},null);const{leftRightSpacing:y,topBotSpacing:b}=e.listConfig.box;let v=e.listConfig.box.listColumnCount;return e.isSlideOneScreen||(v=HC(h.length,v)),w(O_,{class:{[Ya]:e.isSlideOneScreen},isCloseLazy:r.chunkLoaded[p].isLoaded,isAllowCloseLazyByImageLoadStrategy:p===a.value,leftRightSpacing:y,topBotSpacing:b,permutationDirection:"row",list:h,listRowCount:i.value,listColumnCount:v,paginationConfig:c(v),onElementLoaded:()=>s(p)},{default:()=>{var A;return[(A=n.default)==null?void 0:A.call(n,h)]}})}))?f:{default:()=>[f]})}}}),ste=e=>{const{physicalChunkIndexRef:t,chunkTotalCount:n,overscan:o}=e,a=C(()=>{const u=n.value;if(u===0)return 0;const d=t.value,m=Number.isFinite(d)?d:0;return Math.min(Math.max(m,0),u-1)}),r=C(()=>{const u=n.value;if(u===0)return[0,0];const d=a.value,m=Math.max(0,d-o),g=Math.min(u-1,d+o);return[m,g]}),s=O(null);return{isChunkVisible:u=>{const d=s.value;if(d&&u>=d[0]&&u<=d[1])return!0;const[m,g]=r.value;return u>=m&&u<=g},visibleRange:r,pinChunkAtDragStart:()=>{s.value=[...r.value]},unpinChunk:()=>{s.value=null}}},ite={overscan:{type:Number,default:1}},[cte]=_e("virtual-chunk"),lte=le({name:cte,props:ite,setup(e,{attrs:t,slots:n}){let o=null,a=null;return mt(w0,{upTransferData:r=>{o=ste({physicalChunkIndexRef:r.physicalChunkIndexRef,chunkTotalCount:C(()=>r.gameChunk.chunkList.length),overscan:e.overscan}),a=C(()=>{const{card:s,box:i}=r.props.listConfig,c=i.listColumnCount,l=r.rowCount.value,u=parseFloat(s.width),d=parseFloat(s.height),m=parseFloat(i.leftRightSpacing||"0"),g=parseFloat(i.topBotSpacing||"0");return{width:`${(u+m)*c-m}rem`,height:`${(d+g)*l-g}rem`}}),fe(o.visibleRange,([s,i],[c,l])=>{if(r.props.closeLazyMode===la.None)for(let u=c;u<=l;u++)(u<s||u>i)&&r.gameChunk.chunkLoaded[u]&&(r.gameChunk.chunkLoaded[u].isLoaded=!1)})},isChunkVisible:r=>o?o.isChunkVisible(r):!0,getPlaceholderStyle:()=>{var r;return(r=a==null?void 0:a.value)!=null?r:null},getVisibleRange:()=>{var r;return(r=o==null?void 0:o.visibleRange)!=null?r:null},pinChunkAtDragStart:()=>{o==null||o.pinChunkAtDragStart()},unpinChunk:()=>{o==null||o.unpinChunk()}}),()=>{var s;const r=(s=n.default)==null?void 0:s.call(n);return(r==null?void 0:r.length)===1?kn(r[0],t):r}}}),xC={"list-slide-typesetting":"_list-slide-typesetting_bertx_91","is-slide-one-screen":"_is-slide-one-screen_bertx_91"},[ute]=_e("list-slide-typesetting"),dte=le({name:ute,props:C0,slots:Object,emits:["update:modelValue","update:indicatorPage","update:rawIndicatorPage","update:reachTerminus","slideStateChanged"],setup(e,{slots:t,emit:n}){const o=He(S0,null);o&&o.upTransferConfig({gameList:C(()=>e.gameList),listRowCount:C(()=>e.listRowCount),listColumnCount:C(()=>e.listConfig.box.listColumnCount)});const a=C(()=>o?o.getNormalizedGameList():e.gameList);return()=>w(lte,{overscan:e.overscan},{default:()=>[w(rte,Te(e,{gameList:a.value,class:{[xC["list-slide-typesetting"]]:!0,[xC["is-sli
104de-one-screen"]]:e.isSlideOneScreen},"onUpdate:modelValue":r=>{n("update:modelValue",r)},"onUpdate:indicatorPage":r=>{n("update:rawIndicatorPage",r),n("update:indicatorPage",o?o.mapIndicatorPage(r):r)},"onUpdate:reachTerminus":r=>{n("update:reachTerminus",r)},onSlideStateChanged:r=>n("slideStateChanged",r)}),{default:t.default})]})}}),T0={...Lo(Df,["list","listRowCount","listColumnCount","isSlideOneScreen"]),leftRightSpacing:{required:!1,type:String,default:"0.14rem"},modelValue:{required:!1,type:Number},indicatorLimit:{required:!1,type:Number,default:5},eleWidth:{required:!1,type:String,default:"0.16rem"},eleHeight:{required:!1,type:String,default:"0.16rem"},eleWidthInActive:{required:!1,type:String,default:"0.38rem"},isHideWhenSingleDot:{type:Boolean,default:!1}},Up={"list-slide-all":"_list-slide-all_1bt3v_91","all-text":"_all-text_1bt3v_95","arrow-right":"_arrow-right_1bt3v_100"},mte=(e,{emit:t})=>{const{t:n}=F_();return w("section",{class:[Up["list-slide-all"],"list-slide-all"],onClick:()=>t("click")},[w("span",{class:[Up["all-text"],"all-text"]},[n("lobby.theme11_dz.game.all")]),w(Ve,{class:[Up["arrow-right"],"arrow-right"],src:"/lobby_asset/common/web/common/comm_icon_jzgd.svg",useSkeleton:!0},null)])},EC={"list-slide-dot":"_list-slide-dot_1jc9k_91","is-active":"_is-active_1jc9k_100"},gte=(e,{emit:t})=>w("div",{onClick:()=>t("click"),class:{[EC["list-slide-dot"]]:!0,[EC["is-active"]]:e.isActive,"list-slide-dot":!0,"is-active":e.isActive}},null),UC={"slide-indicator":"_slide-indicator_y3lw0_91"};function fte(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ao(e)}const[pte]=_e("slide-indicator"),hte=le({name:pte,props:T0,emits:["update:modelValue"],setup(e,{emit:t}){const n=He(S0,null),o=C(()=>n?n.getChunkPageCount():e.isSlideOneScreen?Math.ceil(e.list.length/(e.listRowCount*e.listColumnCount)):Math.ceil(e.list.length/e.listRowCount)),a=C(()=>new Array(o.value).fill(void 0).map((d,m)=>m+1)),r=C(()=>{let d=e.modelValue;return e.isSlideOneScreen&&(d=(e.modelValue+e.listColumnCount-1)/e.listColumnCount),d}),s=d=>(e.isSlideOneScreen&&(d=d*e.listColumnCount-(e.listColumnCount-1)),d),i=C(()=>a.value.length>e.indicatorLimit?e.indicatorLimit:a.value.length),c=C(()=>({colNum:i.value,eleWidth:e.eleWidth,eleHeight:`${parseFloat(e.eleHeight)+.005}rem`,rowNum:1})),l=C(()=>({"--slide-indicator-padding-right":`${parseFloat(e.eleWidthInActive)-parseFloat(e.eleWidth)}rem`,"--list-slide-dot-width":e.eleWidth,"--list-slide-dot-height":e.eleHeight,"--list-slide-dot-active-width":e.eleWidthInActive,"--list-slide-dot-spacing":e.leftRightSpacing})),u=C(()=>{var d;return((d=a.value)==null?void 0:d.length)<=1&&e.isHideWhenSingleDot});return()=>{let d;return u.value?null:w(O_,{class:[UC["slide-indicator"],"slide-indicator"],listColumnCount:i.value,listRowCount:1,list:a.value,modelValue:r.value,"onUpdate:modelValue":m=>t("update:modelValue",s(m)),leftRightSpacing:e.leftRightSpacing,topBotSpacing:"0rem",paginationConfig:c.value,isSlideOneScreen:!1,indicatorLimit:e.indicatorLimit,style:l.value},fte(d=a.value.map(m=>w(gte,{class:[UC["list-slide-dot"],"list-slide-dot"],isActive:m===r.value,onClick:()=>t("update:modelValue",s(m))},null)))?d:{default:()=>[d]})}}}),_te={"load-more-button":"_load-more-button_x5s20_91"},[bte]=_e("dot-list-theme-11"),yte=le({name:bte,props:T0,emits:["clickAll","update:modelValue"],setup(e,{emit:t}){return()=>e.list.length===0?null:w("section",{class:[_te["load-more-button"],"load-more-button"]},[w(hte,Te(e,{indicatorLimit:e.indicatorLimit,"onUpdate:modelValue":n=>t("update:modelValue",n)}),null),w(mte,{onClick:()=>t("clickAll")},null)])}}),vte={"list-slide-box":"_list-slide-box_17g0m_91"},[Ste]=_e("list-slide-box"),vs=le({name:Ste,props:lee,emits:["goSubPage"],slots:Object,setup(e,{emit:t,slots:n}){const o=O(1),a=O(hr.complete),r=C(()=>e.list.some(i=>i.originServerData)?e.list:e.list.map(i=>c0(i,{mySize:e.listConfig.card.size}))),{isOutBoxCloseLazy:s}=Ry(e);return()=>{const i=e.listConfig.box.listColumnCount;return w("div",{class:vte["list-slide-box"]},[w(Pee,{isShowFestival:e.isShowFestival,headlineName:e.headlineName,iconUrl:e.iconUrl,reachTerminus:a.value,onClickAll:()=>t("goSubPage"),onClickLeft:()=>o.value-=i,onClickRight:()=>
104o.value+=i,isHideHeadline:e.isHideHeadline,allButtonPosition:e.allButtonPosition,isHiddenAllBtn:e.isHiddenAllBtn,isCloseLazy:s.value},{listUpper:n.listUpper,default:()=>w(gt,null,[w(dte,{modelValue:o.value,"onUpdate:modelValue":c=>o.value=c,"onUpdate:reachTerminus":c=>{a.value=c},gameList:r.value,listRowCount:e.listRowCount,listConfig:e.listConfig,closeLazyMode:e.closeLazyMode,isSlideOneScreen:!0},{default:c=>{var l;return(l=n.default)==null?void 0:l.call(n,c)}}),e.isShowDotMode&&w(yte,{modelValue:o.value,list:r.value,listRowCount:e.listRowCount,listColumnCount:e.listConfig.box.listColumnCount,onClickAll:()=>t("goSubPage"),isSlideOneScreen:!0},null)]),listBottom:n.listBottom})])}}}),[Cte]=_e("tab-item-game-list"),wte=le({name:Cte,props:Hn,emits:["goSubPage"],slots:Object,setup(e,{emit:t,slots:n}){const{generateConfigByCardHeight:o}=Sa(),a=C(()=>o(uy[e.situation]));return()=>w(vs,Te(e,{list:e.gameList,listConfig:a.value,onGoSubPage:()=>t("goSubPage")}),{listUpper:n.listUpper,default:r=>r.map(s=>w(a0,Te(s,{class:Ya}),null))})}}),[Ite]=_e("tab-item-game-list"),Ate=le({name:Ite,props:Hn,emits:["goSubPage"],slots:Object,setup(e,{emit:t,slots:n}){const o=C(()=>dy[e.situation]);return()=>w(vs,Te(e,{list:e.gameList,listConfig:o.value,onGoSubPage:()=>t("goSubPage")}),{listUpper:n.listUpper,default:a=>a.map(r=>w(m0,Te(r,{class:Ya}),null)),listBottom:n.listBottom})}}),[Lte]=_e("tab-item-game-list"),Tte=le({name:Lte,props:Hn,emits:["goSubPage"],slots:Object,setup(e,{emit:t,slots:n}){const{generateConfigByCardHeight:o}=Sa(),a=C(()=>o(my[e.situation]));return()=>w(vs,Te(e,{list:e.gameList,listConfig:a.value,onGoSubPage:()=>t("goSubPage")}),{listUpper:n.listUpper,default:r=>r.map(s=>w(g0,Te(s,{class:Ya}),null))})}}),[Rte]=_e("tab-item-game-list"),Ote=le({name:Rte,props:Hn,emits:["goSubPage"],slots:Object,setup(e,{emit:t,slots:n}){const o=C(()=>gy[e.situation]);return()=>w(vs,Te(e,{list:e.gameList,listConfig:o.value,onGoSubPage:()=>t("goSubPage")}),{listUpper:n.listUpper,default:a=>a.map(r=>w(f0,Te(r,{class:Ya}),null))})}}),[Pte]=_e("tab-item-game-list"),Dte=le({name:Pte,props:Hn,emits:["goSubPage"],slots:Object,setup(e,{emit:t,slots:n}){const{generateConfigByCardHeight:o}=Sa(),a=C(()=>o(wf[e.situation]));return()=>w(vs,Te(e,{list:e.gameList,listConfig:a.value,onGoSubPage:()=>t("goSubPage")}),{listUpper:n.listUpper,default:r=>r.map(s=>w(p0,Te(s,{class:Ya}),null))})}}),[Mte]=_e("tab-item-game-list"),Nte=le({name:Mte,props:Hn,emits:["goSubPage"],slots:Object,setup(e,{emit:t,slots:n}){const{generateConfigByCardHeight:o}=Sa(),a=C(()=>o(If[e.situation]));return()=>w(vs,Te(e,{list:e.gameList,listConfig:a.value,onGoSubPage:()=>t("goSubPage")}),{listUpper:n.listUpper,default:r=>r.map(s=>w(h0,Te(s,{class:Ya}),null))})}}),[kte]=_e("tab-item-game-list"),Bte=le({name:kte,props:Hn,emits:["goSubPage"],slots:Object,setup(e,{emit:t,slots:n}){const{generateConfigByCardHeight:o}=Sa(),a=C(()=>o(fy[e.situation]));return()=>w(vs,Te(e,{list:e.gameList,listConfig:a.value,onGoSubPage:()=>t("goSubPage")}),{listUpper:n.listUpper,default:r=>r.map(s=>w(_0,Te(s,{class:Ya}),null)),listBottom:n.listBottom})}}),[Hte]=_e("tab-item-game-list"),xte=le({name:Hte,props:Hn,emits:["goSubPage"],slots:Object,setup(e,{emit:t,slots:n}){const{generateConfigByCardHeight:o}=Sa(),a=C(()=>o(py[e.situation]));return()=>w(vs,Te(e,{list:e.gameList,listConfig:a.value,onGoSubPage:()=>t("goSubPage")}),{listUpper:n.listUpper,default:r=>r.map(s=>w(b0,Te(s,{class:Ya}),null))})}}),[Ete]=_e("tab-item-game-list"),Ute=le({name:Ete,props:Hn,emits:["goSubPage"],slots:Object,setup(e,{emit:t,slots:n}){const o=C(()=>Af[e.situation]);return()=>w(vs,Te(e,{list:e.gameList,listConfig:o.value,onGoSubPage:()=>t("goSubPage")}),{listUpper:n.listUpper,default:a=>a.map(r=>w(y0,Te(r,{class:Ya}),null)),listBottom:n.listBottom})}}),dn={ListLoadMoreSquareBelowName:tee,ListLoadMoreLandscapeLeftRight:B2,ListLoadMoreLandscapeRightLeft:Y2,ListSlideSquareBelowName:Bte,ListSlideLandscapeLeftRight:Ate,ListSlideLandscapeRightLeft:Ote,ListLoadMoreVerticalBottomName:cee,ListSlideVerticalBottomName:Ute,ListSlideVerticalBelowName:xte,ListSlideSquareAngleBelowName:Nte,ListSlideRoundedBelowName:
104Dte,ListSlideLandscapeRectangleBelowName:Tte,ListSlideLandscapeBelowName:wte,ListLoadMoreVerticalBelowName:aee,ListLoadMoreSquareAngleBelowName:X2,ListLoadMoreRoundedBelowName:j2,ListLoadMoreLandscapeRectangleBelowName:U2,ListLoadMoreLandscapeBelowName:O2},mc=e=>e.turnPageType===fo.HandLoadPage&&e.isSubGameType,Gte=[["chain1-1-1",e=>{if(mc(e)&&e.IconStyle===he.VerticalMask)return dn.ListLoadMoreVerticalBottomName}],["chain1-1-2",e=>{if(mc(e)&&e.IconStyle===he.Square)return dn.ListLoadMoreSquareBelowName}],["chain1-1-3",e=>{if(mc(e)&&e.IconStyle===he.Vertical)return dn.ListLoadMoreVerticalBelowName}],["chain1-1-4",e=>{if(mc(e)&&e.IconStyle===he.SquareRightAngle)return dn.ListLoadMoreSquareAngleBelowName}],["chain1-1-5",e=>{if(mc(e)&&e.IconStyle===he.Rounded)return dn.ListLoadMoreRoundedBelowName}],["chain1-1-6",e=>{if(mc(e)&&e.IconStyle===he.Horizontal)return dn.ListLoadMoreLandscapeBelowName}]],gc=e=>e.turnPageType===fo.HandLoadPage&&!e.isSubGameType,Fte=[["chain1-0-1",e=>{if(gc(e)&&e.platformIconStyle===Qt.EuropeanAmerican)return dn.ListLoadMoreVerticalBottomName}],["chain1-0-2",e=>{if(gc(e)&&e.platformIconStyle===Qt.LeftRight1)return dn.ListLoadMoreLandscapeLeftRight}],["chain1-0-3",e=>{if(gc(e)&&e.platformIconStyle===Qt.LeftRight2)return dn.ListLoadMoreLandscapeRightLeft}],["chain1-0-4",e=>{if(gc(e)&&e.platformIconStyle===Qt.Rounded)return dn.ListLoadMoreRoundedBelowName}],["chain1-0-5",e=>{if(gc(e)&&e.platformIconStyle===Qt.Square)return dn.ListLoadMoreSquareAngleBelowName}],["chain1-0-6",e=>{if(gc(e)&&e.platformIconStyle===Qt.Rectangle)return dn.ListLoadMoreLandscapeRectangleBelowName}]],fc=e=>e.turnPageType===fo.HandScroll&&!e.isSubGameType,Wte=[["chain2-0-1",e=>{if(fc(e)&&e.platformIconStyle===Qt.EuropeanAmerican)return dn.ListSlideVerticalBottomName}],["chain2-0-2",e=>{if(fc(e)&&e.platformIconStyle===Qt.LeftRight1)return dn.ListSlideLandscapeLeftRight}],["chain2-0-3",e=>{if(fc(e)&&e.platformIconStyle===Qt.LeftRight2)return dn.ListSlideLandscapeRightLeft}],["chain2-0-4",e=>{if(fc(e)&&e.platformIconStyle===Qt.Rounded)return dn.ListSlideRoundedBelowName}],["chain2-0-5",e=>{if(fc(e)&&e.platformIconStyle===Qt.Square)return dn.ListSlideSquareAngleBelowName}],["chain2-0-6",e=>{if(fc(e)&&e.platformIconStyle===Qt.Rectangle)return dn.ListSlideLandscapeRectangleBelowName}]],pc=e=>e.turnPageType===fo.HandScroll&&e.isSubGameType,Vte=[["chain2-1-1",e=>{if(pc(e)&&e.IconStyle===he.VerticalMask)return dn.ListSlideVerticalBottomName}],["chain2-1-2",e=>{if(pc(e)&&e.IconStyle===he.Square)return dn.ListSlideSquareBelowName}],["chain2-1-3",e=>{if(pc(e)&&e.IconStyle===he.Vertical)return dn.ListSlideVerticalBelowName}],["chain2-1-4",e=>{if(pc(e)&&e.IconStyle===he.SquareRightAngle)return dn.ListSlideSquareAngleBelowName}],["chain2-1-5",e=>{if(pc(e)&&e.IconStyle===he.Rounded)return dn.ListSlideRoundedBelowName}],["chain2-1-6",e=>{if(pc(e)&&e.IconStyle===he.Horizontal)return dn.ListSlideLandscapeBelowName}]],$te=[...Gte,...Fte,...Wte,...Vte],Yte=e=>{const t=Cf.createChainByParamsList($te),n=C(()=>{var i;return(i=ue().homeLayoutInfos)==null?void 0:i.gameIcon}),o=C(()=>{var i;return(i=ue().homeLayoutInfos)==null?void 0:i.platformIcon}),a=C(()=>Do().gameListTurnPageType),r=C(()=>Tw(e.isSubGameType)?e.isSubGameType.value:e.isSubGameType),s=C(()=>{const i={IconStyle:n.value,platformIconStyle:o.value,isSubGameType:r.value,turnPageType:a.value};return t.handle(i)});return{turnPageType:a,DynamicListComponent:s}},qte={"tab-item-game-list-design":"_tab-item-game-list-design_wld4l_91"},[zte]=_e("tab-item-game-list-design"),jte=le({name:zte,props:wJ,slots:Object,setup(e,{slots:t}){const n=C(()=>e.gameCategoryId===Z.Hot||_s().homeSportCasinoTabsKey===ut.Native),{DynamicListComponent:o}=Yte({isSubGameType:n});return mt("gameCategoryId",e.gameCategoryId),mt("isShowFestival",e.isShowFestival),()=>w(o.value,Te(e,{class:qte["tab-item-game-list-design"],onGoSubPage:()=>{bJ(e.gameCategoryId),e0({clickbutton:cb.ALL_CLICK,game_type:e.gameCategoryId})},situation:Ue.HomeNoSide}),{listUpper:t.listUpper,listBottom:t.listBottom})}}),Kte=".ui-tabs__nav",Qte={root:Kte,rootMargin:"20px"},Xte={text:{required:!0,type:String},normalIconUrl:{required:!0,type:String},activeIconUrl:{required:!1,type:String},isActive:{required:!0,type:Boolean}},Zte="_icon_1yncn_99",Jte="_text_1yncn_117",Wl={"tab-item-title":"_tab-item-title_1yncn_91",icon:Zte,text:Jte,"is-active":"_is-active_1yncn_141"},[ene]=_e("tab-item-title"),tne=le({name:ene,props:Xte,setup(e,{slots:t}){return()=>
104w("section",{class:{[Wl["tab-item-title"]]:!0,[Wl["is-active"]]:e.isActive}},[w("section",{class:{[Wl.icon]:!0}},[w(Ve,{class:Wl["active-icon"],src:e.activeIconUrl,lazyOptions:Qte},null)]),w("p",{class:Wl.text},[e.text]),t.festivalBox?t.festivalBox():null])}}),nne="_jackpot_vm1bk_126",Vl={"game-exhibition":"_game-exhibition_vm1bk_91","game-list-box":"_game-list-box_vm1bk_120",jackpot:nne,"placeholder-box":"_placeholder-box_vm1bk_130"},GC=bo(()=>V(()=>import("./Common.BWIuMFf1.js"),__vite__mapDeps([0,4,35,36]))),Gp=bo(()=>V(()=>import("./MarketingIndex.BgWlG7mg.js"),__vite__mapDeps([0,1,3,4,5,6,37,38]))),one=bo(()=>V(()=>import("./SpecialControlIndex.CWTsDKPx.js"),__vite__mapDeps([0,39]))),hc=Ke.customPlaceholderImage,[ane]=_e("game-exhibition"),rne=le({name:ane,props:dO,setup(e){const{t}=we(),{active:n,beforeChange:o,shouldSkipGameListDisplay:a,onChange:r,getLocalGameListLoadType:s,retryFunc:i,retryLoading:c,getShowFestivalId:l}=ZO(),{completeGameCategorieAndExtLinks:u}=Sf({useFrom:ki.MIDDLE});KZ();const d=C(()=>u.value),m=C(()=>l(d.value));return()=>w(VO,{class:Vl["game-exhibition"],active:n.value,"onUpdate:active":g=>n.value=g,scrollspy:!0,reduceMeasureTabsActivedOnScroll:"disabled",offsetTop:e.offsetTop,beforeChange:o,onChange:r,navigation:{hiddenInArrived:!0},shrink:!0,useNativeScroll:!0},{default:()=>d.value.map((g,f)=>{const _=g;return w(PO,{titleClass:"titleClass",key:_.gameCategoryId,name:_.gameCategoryId,isEmpty:_.isExLink,title:()=>w(tne,{isActive:!1,activeIconUrl:_.iconUrlActive,normalIconUrl:_.iconUrlNormal,text:_.gameCategoryName},null),content:()=>a(_)?w(gt,null,null):w(ln,{moduleName:XR[_.gameCategoryId]},{default:()=>{var h,p,y;return[w("section",{class:Vl["game-list-box"]},[_.gameCategoryId===Z.Hot&&w(gt,null,[w(Ur,{moduleName:lt.marketInHotGamesAbove},{default:()=>[w(Gp,{place:Le.HOT_GAMES_ABOVE,class:"margin-top-0"},null)]}),w(ln,{moduleName:$t.jackpotInPopular},{default:()=>[w(GC,{class:Vl.jackpot,place:"popular"},null)]})]),_.isFirstThirdPartyCategory&&w(Ur,{moduleName:lt.marketInThirdPartyGamesAbove},{default:()=>[w(Gp,{place:Le.THIRD_PARTY_GAMES_ABOVE,class:"margin-bottom-0"},null)]}),w(jte,{gameCategoryId:_.gameCategoryId,isShowFestival:_.gameCategoryId===m.value,closeLazyMode:GZ(f),gameList:(h=_==null?void 0:_.list)!=null?h:[],headlineName:_.gameCategoryName,iconUrl:_.iconUrlActive,listRowCount:(p=_.listRowCount)!=null?p:3,isHiddenAllBtn:_.gameCategoryId===Z.Hot&&!((y=_==null?void 0:_.list)!=null&&y.length)},{listUpper:()=>w(gt,null,[w(ln,{moduleName:`${$t.jackpotInPlatformTop}${_.gameCategoryId}`},{default:()=>[w(GC,{class:Vl.jackpot,place:"platformTop",gameCategoryId:_.gameCategoryId},null)]}),w(L_,{moduleName:`${Yn.specialInGameSingle}${_.gameCategoryId}`},{default:()=>[w(one,{position:Wa.Single,gameCategoryId:_.gameCategoryId},null)]})])}),!(_!=null&&_.list.length)&&w(_J,{class:Vl["placeholder-box"],type:s(_.list),empty:{text:t("lobby.game.empty"),image:hc==null?void 0:hc.empty},retry:{loading:c.value,image:hc==null?void 0:hc.retry},onRetry:()=>{var b;return(b=i.value)==null?void 0:b.call(i)}},null),_.gameCategoryId===Z.Hot&&w(Ur,{moduleName:lt.marketInHotGamesBelow},{default:()=>[w(Gp,{place:Le.HOT_GAMES_BELOW},null)]})])]}})},null)}),"navigation-prev":()=>w(mC,{direction:"left"},null),"navigation-next":()=>w(mC,{direction:"right"},null)})}}),sne="_top_1wlqy_113",Fp={"bage-insert":"_bage-insert_1wlqy_91","bage-insert-panel":"_bage-insert-panel_1wlqy_99","right-top":"_right-top_1wlqy_110","top-right":"_top-right_1wlqy_113",top:sne},[ine]=_e("bage-insert"),cne=le({name:ine,props:{showTotalNum:{type:Boolean,default:!1},bagePosition:{type:String,default:"top"},mode:String,content:po,offset:Array},setup(e){return()=>{var t;return w("div",{class:[Fp["bage-insert"],Fp[e.bagePosition]]},[w(tc,{tag:"div",max:e!=null&&e.showTotalNum?99999999999:99,mode:e.mode,content:(t=e.content)!=null?t:0,offset:e.offset,position:"top-right"},{default:()=>[w("div",{class:Fp["bage-insert-panel"]},null)]})])}}}),lne="_icon_10909_102",em={"aside-toggle-button":"_aside-toggle-button_10909_91","icon-box":"_icon-box_10909_102",icon:lne,"icon-active":"_icon-active_10909_112"},[une,Wp]=_e("aside-toggle-button"),dne=le({name:une,props:{icon:{default:"/lobby_asset/{layout}-{bg}-common/web/common/btn_zcl_arrow.svg",type:String},showTotalNum:{type:Boolean,default:!1},useImage:{type:Boolean,default:!1},needActived:{type:Boolean,default:!0},imgProps:{type:Object,default:()=>{}},badgeOffset:Array},setup(e){const t=Do(),n=()=>{t.setAsideCollapsed(!t.asideCollapsed)};return()=>{var o;return w("div",{role:"button",class:[em["aside-toggle-button"],Wp()],onClick:n},[w("div",{class:[em["icon-box"],Wp("box")]},[w(cne,{content:(o=t.asideTotalBadge)!=null?o:0,offset:e.badgeOffset},null),w(ld,{class:[em.icon,Wp("icon"),e.needActived&&t.asideCollapsed&&em["icon-active"]],src:e.icon,useImage:e.useImage,imgProps:e.imgProps},null)])])}}}),mne=()=>{const e=Ze();return{logoType:C(()=>{var s,i,c;const n=((s=e.brandLogoInfos)==null?void 0:s.logoStyle)||Gr.LOGO,o=dt.enable,a=!o&&n!==Gr.LOGO&&Ke.isSupportMarqueeLogo&&!!((i=e.brandLogoInfos)!=null&&i.hallLogo)&&((c=e.brandLogoInfos)==null?void 0:c.type)===Nu.CUSTOM;return{showMarqueeLogo:a,showClubLogo:o,showNormalLogo:!a&&!0,logoStyleType:n}})}},_c={Telegram:1,Line:2,Facebook:3,QQ:4,Wechat:5,Custom:6},Ige={ClubName:1,ClubHost:2};var yi=(e=>(e[e.All=0]="All",e[e.DepositPending=1]="DepositPending",e[e.AuditPending=2]="AuditPending",e[e.Success=3]="Success",e[e.Canceled=4]="Canceled",e[e.Rejected=5]="Rejected",e))(yi||{});const gne={[Yt.GeneralManager]:0,[Yt.AssistantManager]:1,[Yt.DepartmentManager]:1,[Yt.Admin]:1,[Yt.Member]:2},tm=e=>{var t;return(t=gne[e])!=null?t:999},fne=e=>e===Yt.AssistantManager||e===Yt.DepartmentManager?Yt.Admin:e,Age=()=>{const{t:e}=we();return[{value:wn.Today,serverValue:wn.Today,label:()=>e("lobby.center.components.dateRadio.today")},{value:wn.Yesterday,serverValue:wn.Yesterday,label:()=>e("lobby.center.components.dateRadio.yesterday")},{value:wn.ThisWeek,serverValue:wn.ThisWeek,label:()=>e("lobby.center.components.dateRadio.thisWeek")},{value:wn.LastWeek,serverValue:wn.LastWeek,label:()=>e("lobby.center.components.dateRadio.lastWeek")},{value:wn.ThisMonth,serverValue:wn.ThisMonth,label:()=>e("lobby.center.components.dateRadio.thisMonth")},{value:wn.LastMonth,serverValue:wn.LastMonth,label:()=>e("lobby.center.components.dateRadio.lastMonth")},{value:wn.All,serverValue:wn.All,label:()=>e("lobby.center.components.dateRadio.all")}]},Lge=e=>{const{t}=we(),n=[{key:1,status:"success",content:t("lobby.club.normal")},{key:2,status:"error",content:t("lobby.club.frozen")},{key:6,status:"lead",content:t("lobby.club.loggedOut")}];return ti(n)},Tge=({useAll:e,listLevel:t,hideGeneralManager:n,isLimitLevel:o}={})=>{var l;const{t:a}=we(),r=Ob(),s=(l=o?r.role:t)!=null?l:Yt.GeneralManager,i=fne(s),c=[{key:Yt.Member,content:a("lobby.club.member")}];return tm(i)<=tm(Yt.Admin)&&c.unshift({key:Yt.Admin,content:a("lobby.club.admin")}),tm(i)<=tm(Yt.GeneralManager)&&!n&&c.unshift({key:Yt.GeneralManager,content:a("lobby.club.generalManager")}),e&&c.unshift({key:0,content:a("lobby.club.all")}),ti(c)},Rge=()=>{const{t:e}=we();return ti([{key:!1,content:e("lobby.club.disallowed")},{key:!0,content:e("lobby.club.allowed")}])},Oge=(e=!1)=>{const{t}=we();return ti([{key:1,content:t(`lobby.club.${e?"shortSettleDurationDay":"settleDurationDay"}`)},{key:2,content:t(`lobby.club.${e?"shortSettleDurationWeek":"settleDurationWeek"}`)},{key:3,content:t(`lobby.club.${e?"shortSettleDurationMonth":"settleDurationMonth"}`)}])},Pge=e=>{const{t}=we(),n=[{key:_c.Telegram,content:"Telegram",icon:"tg"},{key:_c.Line,content:"Line",icon:"line"},{key:_c.Facebook,content:"Facebook",icon:"facebook"}
104,{key:_c.QQ,content:"QQ",icon:"qq"},{key:_c.Wechat,content:t("lobby.game.nav.wechat"),icon:"wechat"},{key:_c.Custom,content:t("lobby.club.custom")}];return ti(n)},pne=()=>{const{t:e}=we();return ti([{key:0,extra:36,content:e("lobby.club.big")},{key:1,extra:30,content:e("lobby.club.mid")},{key:2,extra:24,content:e("lobby.club.small")}])},Dge=()=>{const{t:e}=we();return ti([{key:0,status:"neutral2",content:e("lobby.club.pendingEffect")},{key:3,status:"warning",content:e("lobby.club.resolving")},{status:"success",key:4,content:e("lobby.club.valid")}])},Mge=(e=!0)=>{const{t}=we();return ti([{key:yi.All,content:t(e?"lobby.club.all":"lobby.club.deposit.allDepositStatus"),status:"lead"},{key:yi.DepositPending,content:t("lobby.club.deposit.depositPending"),status:"warning"},{key:yi.AuditPending,content:t("lobby.club.auditPending"),status:"warning"},{key:yi.Success,content:t("lobby.club.deposit.depositSuccess"),status:"success"},{key:yi.Rejected,content:t("lobby.club.rejected"),status:"error"},{key:yi.Canceled,content:t("lobby.club.canceled"),status:"neutral1"}])},Vp={"img-text-logo":"_img-text-logo_1gjx9_91","img-logo-only":"_img-logo-only_1gjx9_108","img-title":"_img-title_1gjx9_117"},[hne]=_e("logo-index"),_ne=le({name:hne,props:{canToLink:{type:Boolean,default:!0},isRichText:{type:Boolean,default:!0}},setup(e){const t=Wu(),n=Bn(),o=()=>{e.canToLink&&n.name!==k.GAME&&tf()};return qa(t.getClubLogoSetting),()=>{var l,u,d,m,g,f,_,h,p,y;if(!t.clubLogoSetting)return null;const a=(l=t.clubLogoSetting)==null?void 0:l.clubNameStyle,r=Bv(a==null?void 0:a.outlineColor),s={fontSize:Zt(pne().get(a==null?void 0:a.fontSizeType).extra),color:Bv(a==null?void 0:a.textColor),fontWeight:a!=null&&a.isBold?"bold":"normal",fontStyle:a!=null&&a.isItalic?"italic":"normal",textShadow:r?`-1px 0 ${r}, 0 1px ${r}, 1px 0 ${r}, 0 -1px ${r}`:""},i=((u=t.clubLogoSetting)==null?void 0:u.logoType)===rg.ImageOnly;let c;return((d=t.clubLogoSetting)==null?void 0:d.logoType)===rg.ImageOnly?c=(m=t.clubLogoSetting)==null?void 0:m.pureLogo:((g=t.clubLogoSetting)==null?void 0:g.clubLogoIndex)==="-1"?c=(f=t.clubLogoSetting)==null?void 0:f.clubLogo:c=Pb[(h=(_=t.clubLogoSetting)==null?void 0:_.clubLogoIndex)!=null?h:0],w("div",{onClick:o,class:[Vp["img-text-logo"],"img-text-logo",i?Vp["img-logo-only"]:""]},[c&&w(Ve,{src:c,lazy:!1,useSkeleton:!0},null),!i&&w("span",{style:e.isRichText?s:"",title:(p=t.clubLogoSetting)==null?void 0:p.clubName,class:[Vp["img-title"],"img-title"]},[(y=t.clubLogoSetting)==null?void 0:y.clubName])])}}});function My(e){return e.startsWith("http")?e:`${location.protocol}//${e}`}const $p={"logo-box":"_logo-box_d201i_91","custom-logo":"_custom-logo_d201i_99"},[bne]=_e("logo-index"),yne=le({name:bne,props:{canToLink:{type:Boolean,default:!0}},setup(e){const t=O(),n=Ze(),o=C(()=>{var s;return((s=n==null?void 0:n.brandLogoInfos)==null?void 0:s.type)===Nu.CUSTOM}),{route:a}=Oe(),r=()=>{var i;if(!e.canToLink)return;const s=(i=n==null?void 0:n.brandLogoInfos)==null?void 0:i.realUrl;if(s)return to(My(s));if(a.name!==k.GAME)return tf()};return()=>{var s,i,c;return!n.brandLogoInfos||dt.enable?null:w("div",{ref:t,class:{[$p["logo-box"]]:!0,[$p.isCustomLogo]:o.value&&((s=n==null?void 0:n.brandLogoInfos)==null?void 0:s.hallLogo)},onClick:r},[o.value&&((i=n==null?void 0:n.brandLogoInfos)==null?void 0:i.hallLogo)&&w(Ve,{src:(c=n.brandLogoInfos)==null?void 0:c.hallLogo,class:[$p["custom-logo"],"custom-logo"],lazy:!1,useSkeleton:!0,alt:"logo",onLoad:()=>{if(t.value){const l=t.value,u=l.style.maxWidth;l.style.maxWidth="100%",requestAnimationFrame(()=>{l.style.maxWidth=u})}}},null)])}}}),vne=rt(()=>V(()=>import("./1_MineChunk.CPGTMigo.js").then(e=>e.ag),__vite__mapDeps([0,1,3,4,5,6])),e=>e.useBlindBoxStore,"useBlindBoxStore"),R0=async()=>{if(Ke.isSimpleTheme)return;(await vne()).open()},O0=()=>{var n;const e=oi();return On().isShowDiscount?((n=e.eventsList)==null?void 0:n.findIndex(o=>o.template===at.SlashOnce))>-1:!1},Sne=rt(()=>V(()=>import("./0_EntryLoginRegisterChunk.DMUz1wnE.js").then(e=>e.gT),__vite__mapDeps([0])),e=>e.useSlashOnceStore,"useSlashOnceStore"),P0=async()=>{await(await Sne()).openSlashOnce()},Cne=Oa(()=>V(()=>import("./route.impl.DXvDDKCc.js"),__vite__mapDeps([0,1,3,4,5,6,7,8,9,10,11,23,24,25,26])),e=>e,"DiscountRoute"),{toEventItemDetail:D0,judgeCustomizeLocation:wne,toEventItemDetailRedirect:Ine,toEventItemDetailPageOrDialog:Ane,getEventItemForJump:Lne,getEventItemFromList:Tne,handleJumpPageRoute:Rne,toTaskPage:Ny,toSubGameRecentPage:One,judgeDiscountRoute:Pne,judgeBeforeRouteEnter:Dne,navigateToDiscountPage:Mne,goEventDetail:M0}=Cne,Nne=Object.freeze(Object.defineProperty({__proto__:null,getEventItemForJump:Lne,getEventItemFromList:Tne,goEventDetail:M0,handleJumpPageRoute:Rne,judgeBeforeRouteEnter:Dne,judgeCustomizeLocation:wne,judgeDiscountRoute:Pne,navigateToDiscountPage:Mne,toEventItemDetail:D0,toEventItemDetailPageOrDialog:Ane,toEventItemDetailRedirect:Ine,toSubGameRecentPage:One,toTaskPage:Ny},Symbol.toStringTag,{value:"Module"})),kne=e=>{const t=Ze(),n=On(),o=Ku(),{openDialog:a}=cn(),r=J(),s=Oe(),{openLoginRegister:i}=sn(),c=O(null),l=h=>{c.value=h},u=O({wrapper:{height:"",opacity:0}
104,logo:{width:""},subLogo:{width:""}}),d={[Gr.LOGO_WITH_BIG]:400,[Gr.LOGO_WITH_EQUAL]:300,[Gr.LOGO_WITH_MEDIUM]:200,[Gr.LOGO_WITH_SMALL]:100},m=h=>{if(!h||!c.value)return;(async()=>{const y=h.getBoundingClientRect();if(!c.value)return;const{width:b,height:v}=await rb(c.value),A=100,L=d[e.logoStyle]||d[Gr.LOGO_WITH_SMALL],S=b/(v||A),I=L/A,R=S+I;let D;R>=y.width/y.height?D=y.width/R:D=y.height;const M=Math.floor(D),B=Math.floor(I*M),E=Math.floor(S*M);u.value.wrapper.height=`${M}px`,u.value.subLogo.width=`${B}px`,u.value.logo.width=`${E}px`,u.value.wrapper.opacity=1})()},g=()=>{var p;const h=(p=t.financeSetting)==null?void 0:p.claim;return h?h.cancelMargin!==gb.NotCanceled:!0};return{marqueeImgList:C(()=>{var b;const p=[{linkType:yo.NONE,onClick:()=>{}},{linkType:yo.CLAIM,routeName:[k.CLAIM],noInteraction:g},{linkType:yo.PROMOTE,routeName:[k.PROMOTE],noInteraction:()=>!o.isShowPromote.value},{linkType:yo.RECHARGE,onClick:()=>a("recharge",{openType:"overlay",options:{payEntryId:rc.MARQUEE_LOGO}})},{linkType:yo.EVENT,onClick:v=>{v.locationValue?M0(Number(v.locationValue),!1):s.push({name:k.EVENT})},noInteraction:()=>!n.isShowEvents},{linkType:yo.REBATE,routeName:[k.CASHBACK],noInteraction:()=>!n.isShowCashback},{linkType:yo.TASK,onClick:v=>{Ny(UG[v.locationTemplate])},shouldLogin:!0,noInteraction:()=>!n.isShowTask},{linkType:yo.RECHARGE_FUND,routeName:[k.RECHARGE_FUND],noInteraction:()=>!n.isShowRechargeFund},{linkType:yo.AWARD,routeName:[k.CANRECEIVE],noInteraction:()=>!n.isShowDiscount},{linkType:yo.BLINDBOX_LOTTERY,onClick:()=>{R0()},noInteraction:()=>!n.isShowBlindBox},{linkType:yo.CUT_ONE,noInteraction:()=>!O0(),onClick:()=>{P0()}},{linkType:yo.LUCKY_WHEEL,noInteraction:()=>!n.isShowLuckyWheel,routeName:[k.LUCKY_WHELL]},{linkType:yo.SVIP,noInteraction:()=>!n.isShowSVIP,routeName:[k.SVIP]},{linkType:yo.CUSTOM,onClick(v){if(!v.locationValue)return;const A=My(v.locationValue);v.locationJumpWindow===vA.NEW_WINDOW?to(A):Ub(A)}}].reduce((v,A)=>(v[A.linkType]=A,v),{});return(((b=t.brandLogoInfos)==null?void 0:b.subLogoImage)||[]).slice(0,3).map(v=>{const A={src:v.value,locationValue:v.locationValue,locationJumpWindow:v.locationJumpWindow,locationTemplate:v.locationTemplate};return{...p[v.locationId],...A}})}),marqueeItemClick:h=>{const p=typeof h.noInteraction=="function"?h.noInteraction():!!h.noInteraction;console.log(`marqueeItemClick, item info: ${JSON.stringify(h)}, noInteraction: ${p}`),(async()=>{if(!p){if(h.shouldLogin&&(!r.isLogined||r.temporaryAccountStatus.unRecharg)){i({onSuccess:()=>{h.onClick&&h.onClick(h)}});return}h.onClick?h.onClick(h):await s.push({name:h.routeName[0],query:h.query})}})()},domStyle:u,resizeWrapperHeight:m,setLogoUrl:l}},Bne="_marqueeLogo_1rlnv_91",Hne="_logoImg_1rlnv_96",xne="_content_1rlnv_102",Ene="_logoWrapper_1rlnv_107",$l={marqueeLogo:Bne,logoImg:Hne,content:xne,logoWrapper:Ene},Une=gn({loader:()=>V(()=>import("./MarqueeImgList.BHMjhEzY.js"),__vite__mapDeps([40]))}),[Gne,FC]=_e("marquee-logo"),Fne=le({name:Gne,props:{canToLink:{type:Boolean,default:!0},logoStyle:{type:Number,default:Gr.LOGO_WITH_SMALL}},setup(e){const t=Ze(),{route:n}=Oe(),o=O();S1(o,qn(()=>o.value&&i(o.value),150));const{marqueeImgList:a,marqueeItemClick:r,domStyle:s,resizeWrapperHeight:i,setLogoUrl:c}=kne(e),l=()=>{var d;if(!e.canToLink)return;const u=(d=t==null?void 0:t.brandLogoInfos)==null?void 0:d.realUrl;if(u)return to(My(u));if(n.name!==k.GAME)return tf()};return()=>{var u;return t.brandLogoInfos?w("div",{class:[$l.marqueeLogo,FC()],ref:o},[w("div",{class:$l.content,style:s.value.wrapper},[w("div",{class:$l.logoWrapper,style:{height:s.value.wrapper.height,width:s.value.logo.width}},[w(Ve,{onClick:l,src:(u=t.brandLogoInfos)==null?void 0:u.hallLogo,class:[$l.logoImg,FC("img")],lazy:!1,useSkeleton:!0,alt:"logo",onLoad:d=>{d.type===zt.Success&&(c(d.payload),i(o.value))}},null)]),w(Une,{style:s.value.subLogo,list:a.value,class:$l.marqueeList,options:{height:parseInt(s.value.wrapper.height)},marqueeItemClick:r},null)])]):null}}}),Wne="_logoArea_1xw0b_91",Yp={logoArea:Wne},[Vne]=_e("assembly-logo-index"),$ne=le({name:Vne,props:{canToLink:{type:Boolean,default:!0},isClubRichText:{type:Boolean,default:!0},clubLogoClass:[String,Object,Array],normalLogoClass:[String,Object,Array],marqueeLogoClass:[String,Object,Array],disableMarquee:Boolean},setup(e,{attrs:t}){const{logoType:n}=mne();return()=>w(gt,null,[n.value.showClubLogo&&w(_ne,Te({canToLink:e.canToLink,isRichText:e.isClubRichText,class:[e.clubLogoClass,Yp.logoArea]},t),null),(n.value.showNormalLogo||n.value.showMarqueeLogo&&e.disableMarquee)&&w(yne,Te({canToLink:e.canToLink,class:[e.normalLogoClass,Yp.logoArea]},t),null),n.value.showMarqueeLogo&&!e.disableMarquee&&w(Fne,Te({canToLink:e.canToLink,logoStyle:n.value.logoStyleType,class:[e.marqueeLogoClass,Yp.logoArea]},t),null)])}}),Yne={showSymbol:{type:Boolean,default:!0},showSymbolBgFrame:{type:Boolean,default:!0},gameLogout:{type:Boolean,default:!0},placement:Io("bottom"),offset:{type:Object,default:()=>[0,0]},showUnderline:{type:Boolean,default:!0},prefixArrow:{type:[Object,Function,String],default:void 0},showPopover:{type:Boolean,default:!0},showPopoverBorder:{type:Boolean,default:!0},popoverClassName:{type:String,default:""},arrowClassName:{type:String,default:""},showAtAside:{type:Boolean,default:!1},onlyBalance:{type:Boolean,default:!1},arrowIcon:{type:String,default:"/lobby_asset/common/web/common/comm_icon_sort.svg"},refreshIcon:{type:String,default:"/lobby_asset/{layout}-{bg}-common/web/common/comm_icon_sx.svg"},rightIconImage:{type:String,default:""},popoverZIndex:{type:Number,default:11},isToggleDisabled:{type:Boolean,default:!1},imgLazy:{type:Boolean,default:!1},badgeArrowPosition:Io("bottom-left"),showCurrencySign:{type:Boolean,default:!1},showCurrencySignEnd:{type:Boolean,default:!1},useImage:{type:Boolean,default:!1},isShowRenderCurrency:{type:Boolean,default:!0},showCurrencyText:{type:Boolean,default:!1},badgeProps:{type:Object,default:()=>({})},currencyIconBg:{type:String,default:"/lobby_asset/common/common/_sprite/img_hb_frame.png"},excludeCommonIconRoute:{type:Array,default:()=>[k.GAME]},formatMoney:{type:Boolean,default:!1},onUpdateBlance:Function,popoverProps:{type:Object},onClickCurrency:{type:Function}},[qne]=_e("count-to"),zne=le({name:qne,props:{value:[Number,String],noAnimation:Boolean,prefix:String,duration:{type:Number,default:3e3},ease:{type:String,default:"none"},formatter:{type:Function,default:e=>e.toFixed(2)},charClass:String,hideZeroAnimation:Boolean,needReRender:{type:Boolean,default:!1},showCurrencySign:{type:Boolean,default:!1}},setup(e,{slots:t}){const n=O(0);let o=null;const a=C1(18),r=Cg(),s=va.disableCountToAnimation();return fe(()=>e.value,(i,c)=>{const l={value:n.value};if(o&&o.kill(),e.noAnimation||s||e.hideZeroAnimation&&parseFloat((c!=null?c:0).toString())===0){n.value=Number(i);return}o=new pw(l,{raf:a}).to({value:Number(i)},{duration:e.duration,ease:e.ease,onUpdate({target:u}){n.value=u.value},onComplete(){n.value=Number(i)}})},{immediate:!0}),Kn(()=>{o&&o.kill()}),()=>{var l,u;const i=e.hideZeroAnimation&&n.value===0?"":String((l=e.formatter)==null?void 0:l.call(e,n.value))||"",c=i.split("").lastIndexOf(".");return w("span",null,[e.showCurrencySign&&w("span",{class:"currency-sign"},[r]),e.prefix&&((u=t.renderPrefix)==null?void 0:u.call(t,e.prefix)),i.split("").map((d,m)=>{var g;return w("span",{class:[e.charClass,m<c&&["integer-ahead-decimal"]],key:e.needReRender?`${m}-${d}`:m,"data-char":d},[((g=t.renderItem)==null?void 0:g.call(t,d,m))||d])})])}}}),jne="_gaming_1qd36_181",Kne="_encrypt_1qd36_288",Qne="_isBlack_1qd36_292",Xne="_arrow_1qd36_297",Xt={"currency-info-box":"_currency-info-box_1qd36_91","no-border":"_no-border_1qd36_136","currency-box":"_currency-box_1qd36_139","icon-currency":"_icon-currency_1qd36_149","currency-info":"_currency-info_1qd36_91","currency-count":"_currency-count_1qd36_159","no-underline":"_no-underline_1qd36_170",gaming:jne,"icon-content":"_icon-content_1qd36_187","currency-content-wrap":"_currency-content-wrap_1qd36_201","pay-bonus":"_pay-bonus_1qd36_204","pay-tips":"_pay-tips_1qd36_215","pay-bonus-bottom-right":"_pay-bonus-bottom-right_1qd36_232","currency-sign":"_currency-sign_1qd36_247","currency-text":"_currency-text_1qd36_252","refresh-icon":"_refresh-icon_1qd36_258","popover-icon":"_popover-icon_1qd36_259","right-icon-style":"_right-icon-style_1qd36_269","popover-icon-active":"_popover-icon-active_1qd36_283",encrypt:Kne,isBlack:Qne,"currency-popover":"_currency-popover_1qd36_297",arrow:Xne},Zne=gn({loader:()=>V(()=>import("./PopoverContentIndex.pCYm-lb0.js"),__vite__mapDeps([41]))}),Jne=gn({loader:()=>V(()=>import("./0_EntryLoginRegisterChunk.DMUz1wnE.js").then(e=>e.gR),__vite__mapDeps([0]))}),[eoe]=_e("currency-info"),N0=le({name:eoe,emits:["popoverVisible"],props:Yne,setup(e,{emit:t,slots:n}){const o=J(),a=Bn(),{getCurrencyIcon:r,formatCurrency:s,bonusNum:i,goCenterWallet:c,isShowBonusNum:l,temporaryAccountClick:u,updateCurrency:d,balance:m,encryptContent:g,isNeedEncryptBalance:f,isBlackUser:_,formatCurrencyShrink:h}=cT(),{gameLogout:p,showSymbol:y,prefixArrow:b,onlyBalance:v,showUnderline:A,showPopover:L,showPopoverBorder:T,arrowIcon:S,refreshIcon:I,formatMoney:R,onUpdateBlance:D}=e,{offset:M}=ss(e),{t:B}=we(),E=Ir(),Y=Cg(),H=Do(),F=O(!1),Q=ll(()=>F.value),G=()=>{if(n.symbolIcon)return n.symbolIcon();if(!y)return null;if(b)return typeof b=="function"?b():b;const pt=r.value;return!e.showSymbolBgFrame||e.currencyIconBg===""?w("div",{class:[Xt["currency-box"],"currency-box"],onClick:xt=>xt.stopPropagation()},[pt&&w(Ve,{src:pt,lazy:e.imgLazy,useSkeleton:!0,class:Xt["icon-currency"]},null)]):w(Ve,{tag:"div",useSkeleton:!0,class:[Xt["currency-box"],"currency-box"],lazy:e.imgLazy,src:e.currencyIconBg,onClick:xt=>xt.stopPropagation()},{default:()=>[pt&&w(Ve,{src:pt,lazy:e.imgLazy,useSkeleton:!0,class:Xt["icon-currency"]},null)]})},N=()=>
104{if(!_.value){if(E.isGamePlaying)return w("div",{class:Xt.gaming},[B("lobby.header.moneyInGame")]);if(E.isGameScoring||H.isFetchingPrize)return w("div",{class:Xt.gaming},[B("lobby.game.loadinged")])}return w("div",{class:Xt["currency-content-wrap"]},[w("div",{class:{[Xt["currency-count"]]:!0,[Xt["no-underline"]]:!A,"currency-count":!0},onClick:me,dir:"ltr"},[f.value?w("span",{class:[Xt.encrypt,_.value&&Xt.isBlack]},[g.value]):w(zne,{value:m(v),key:$.value?dl():"",formatter:R?h:s,noAnimation:!0},null)]),l.value&&+i.value>0&&w("div",{class:{"curreny-info-pay-bonus":!0,[Xt["pay-bonus"]]:!0,[Xt["pay-bonus-bottom-right"]]:e.badgeArrowPosition==="bottom-right"}},[w(tc,Te({backgroundColor:"var(--skin__accent_1)",designBgMode:"green",content:w("p",{class:[Xt["pay-tips"],"pay-tips"]},[w("span",null,[B("lobby.modal.pay.giveTitle")]),w("span",null,[s(i.value),oP("+")])]),style:{maxWidth:"210px"}},e.badgeProps||{}),null)])])},$=C(()=>o!=null&&o.isTemporaryAccountMode?!0:H.curAuditModeIsModeOne||!L),X=O(),j=async()=>{if(o.isTemporaryAccountMode&&!o.temporaryAccountStatus.recharged)return u();if($.value){await d(p),D==null||D();return}return ae()},te=C(()=>!e.excludeCommonIconRoute.includes(a.name)&&!$.value),K=()=>{const pt=$.value?n==null?void 0:n.refreshIcon:n==null?void 0:n.arrowIcon,xt=$.value?I:S;return w(Ve,{src:e.rightIconImage,ref:X,tag:"div",class:{[Xt["icon-content"]]:!0,"icon-content":!0,[Xt["popover-icon"]]:!$.value,[Xt["popover-icon-active"]]:!$.value&&F.value,"popover-icon-active-style":!$.value&&F.value,[Xt["refresh-icon"]]:$.value,[Xt["right-icon-style"]]:e.rightIconImage},onClick:Pn=>{Pn.stopPropagation(),j()}},{default:()=>[pt?pt($.value?F.value:""):w(ud,{src:xt,class:{[go.Animated]:$.value&&H.isFetchingPrize,[go.Actions.Spin]:$.value,[go.Repeat.Infinite]:$.value,"refresh-icon":$.value},useImage:e.useImage||te.value,imgProps:{lazy:e.imgLazy,useSkeleton:!0}},null)]})},q=()=>{var pt,xt;return w("div",{class:[Xt["currency-info"],"currency-info-custom"]},[e.showCurrencySign&&w("span",{class:[Xt["currency-sign"],"currency-sigin"]},[Y]),N(),e.showCurrencySignEnd&&!f.value&&w("span",{class:Xt["currency-sign"]},[Y]),e.showCurrencyText&&w("span",{class:[Xt["currency-text"],"currency-text"]},[(pt=o.userInfos)==null?void 0:pt.currency]),!E.isGamePlaying&&K(),(xt=n.rightIcon)==null?void 0:xt.call(n)])},ae=()=>{if(!(E.isGamePlaying||e.isToggleDisabled)){if($.value){c();return}H.asideCollapsed&&!e.showAtAside&&Do().setAsideCollapsed(!1),F.value=!F.value,t("popoverVisible",F.value)}},me=()=>{typeof e.onClickCurrency=="function"?e.onClickCurrency():ae()},de=O(),ne=O({value:0}),U=O();fe(()=>F.value,pt=>{if(pt){const{left:xt}=Hm(U);ne.value=xt}});const W=()=>{F.value=!1};Da({closePopover:W,currencyIconClick:j});const oe=O(),be=vy({el:oe,onlyParent:!1});Xs("scroll",W,{target:be,passive:!0});const Ie=O({value:0}),Me=O({value:0}),et=()=>{const{left:pt,width:xt}=Hm(X);Ie.value=pt,Me.value=xt,l.value=!1};Gt(et);const se=C(()=>{var xt,Pn,an;return{left:`calc(${((xt=Ie.value)==null?void 0:xt.value)-((Pn=ne.value)==null?void 0:Pn.value)+((an=Me.value)==null?void 0:an.value)/2}px)`}}),{width:Ae}=Hi(de);fe(()=>Ae.value,et);const Je=()=>w("div",{ref:de,class:[Xt["currency-info-box"],"currency-info-box",T?"":Xt["no-border"]],onClick:pt=>{pt.stopPropagation()}},[G(),e.isShowRenderCurrency&&q()]),wt=O(!1),Dt=fe(()=>$.value,()=>{$.value||(wt.value=!0,Dt())},{immediate:!0}),xn=ll(()=>wt.value);return()=>w("div",{class:"global-currency-info-index"},[!wt.value&&w("div",{class:"ui-popover__wrapper"},[Je()]),xn(()=>w(Jne,Te({ref:oe,class:e.popoverClassName,destroyOnClose:!1,trigger:"click",show:F.value,"onUpdate:show":pt=>{pt&&$.value||(F.value=pt)},lazyRender:!1,"z-index":e.popoverZIndex,overlayClass:Xt["currency-popover"],offset:M.value,placement:e.placement,transition:wu.DropDown,autoFlip:!0},e.popoverProps),{reference:()=>Je(),default:()=>w("div",{ref:U,style:{width:"5.22rem",minHeight:"4.3rem"}},[Q(()=>w(Zne,{showAtAside:e.showAtAside,formatCurrency:R?h:s,updateCurrency:()=>d(p),onUpdateShow:pt=>F.value=pt},null))()]),arrow:Q(()=>w("div",{style:se.value,class:[Xt.arrow,e.arrowClassName]},null))}))()])}}),Nge=Object.freeze(Object.defineProperty({__proto__:null,default:N0},Symbol.toStringTag,{value:"Module"})),toe=()=>{const{isHolidayThemeVisible:e,isNoBg:t,isCustomizeFestival:n}=St(nn());let o="";return e.value&&Ke.isHeaderShowFestivalBg?n.value||(o=`url(${ol("/lobby_asset/festival/{holiday}/common-{bg}/common/bg_pattern_tile2.png")}) !important`):t.value&&(o=`url(${ol("/lobby_asset/{layout}-{bg}-{skin}/common/common/bg_pattern_tile2.png")}) !important`),{backgroundImage:o,backgroundRepeat:"repeat-x !important",backgroundSize:"1.8rem 1.8rem"}},[noe,qp]=_e("home-header-container"),ooe=le({name:noe,props:{hasHeaderBgStyle:{type:Boolean,default:!1},customerBg:{type:String,default:""}},setup(e,{slots:t}){const n=C(()=>{let o={};const{backgroundImage:a,backgroundRepeat:r,backgroundSize:s}=toe();return e.customerBg&&(o={backgroundImage:`url(${ol(e.customerBg)})`,backgroundSize:"100%",backgroundRepeat:"no-repeat"}),e.hasHeaderBgStyle&&a&&(o={backgroundImage:o!=null&&o.backgroundImage?`${a}, ${o.backgroundImage}`:a,backgroundSize:o!=null&&o.backgroundSize?`${s}, ${o.backgroundSize}`:s,backgroundRepeat:o!=null&&o.backgroundRepeat?`${r}, ${o.backgroundRepeat}`:r}),o});return()=>{var o,a,r,s,i;return w("div",{class:[qp()],style:n.value},[w("div",{class:[qp("section",["left"])]},[(o=t.left)==null?void 0:o.call(t)]),w("div",{class:[qp("section",["right"])]},[(a=t.right)==null?void 0:a.call(t)]),((r=t.festivalBothSides)==null?void 0:r.call(t))||null,((s=t.flexibleBox)==null?void 0:s.call(t))||null,((i=t.backgroundImage)==null?void 0:i.call(t))||null])}}}),aoe={loginBg:{type:String,default:""},loginText:{type:String,default:""},registerBg:{type:String,default:""},registerText:{type:String,default:""},isBtnVariableMode:{type:Boolean,default:!1},isHiddenBG:{type:Boolean,default:!1},registerBadgePosition:{type:Array,default:[-5,-20]},showGiftImg:{type:Boolean,default:!1},badgePosition:{type:String,default:"auto"},registerOpts:{type:Object,default:()=>({})},loginOpts:{type:Object,default:()=>({})},badgeValue:{type:String,default:""},registerBadgeBgColor:{type:String,default:""},registerBadgeTextColor:{type:String,default:""}};function k0(){const e=XL(),t=Ar(),n=J(),o=On(),{getRedDotBeforeLogin:a,getNewComerBenefitBeforeLogin:r}=ed(),s=O(),i=O();r(),qu(()=>{s.value=a(mr.Register,t.state.currency),i.value=a(mr.CompleteNo,t.state.currency)});const c=p=>{if(!o.isShowDiscount||!(p!=null&&p.isPop)||!(p!=null&&p.reward))return"";const y=String(p.reward).includes("-")?String(p.reward):`+${p.reward}`;return p!=null&&p.bubbleContent?dE(p.bubbleContent,y):y},l=C(()=>c(s.value)),u=C(()=>c(i.value)),d=p=>{if(p&&l.value&&e.value.login)return l.value},m=()=>{if(l.value&&e.value.register)return l.value},g="var(--skin__accent_1)",f=C(()=>!n.hasLoginedComponent&&!!l.value),_=Bn();return{tabBadge:d,btnBadge:m,badgeValue:l,nowalletBadgeValue:u,badgeBgColor:g,showUnLoginBadge4Mine:f,goToNewBenefits:p=>{p==null||p.stopPropagation(),_.name!==k.TASK&&Ny(kc.newBenefits)}}}const roe="_btn_1vm65_105",soe="_login_1vm65_140",ioe="_register_1vm65_143",coe="_isHidden_1vm65_156",tr={"un-login":"_un-login_1vm65_91",btn:roe,"login-btn":"_login-btn_1vm65_140","register-btn":"_register-btn_1vm65_143",login:soe,register:ioe,isHidden:coe,"register-badge":"_register-badge_1vm65_159"},[loe]=_e("unLoginBtn"),uoe=le({name:loe,props:aoe,setup(e,{slots:t}){const{t:n}=we(),{openLoginRegister:o}
104=sn(),{badgeValue:a,badgeBgColor:r}=k0(),s=C(()=>e.isHiddenBG?"p":Ve),i=d=>C(()=>e.isHiddenBG?{}:{src:d,tag:"div",useSkeleton:!0,lazy:!1}),c=()=>w(s.value,Te({class:{[tr.btn]:!0,[tr["register-btn"]]:!0,[tr.register]:e.isBtnVariableMode,[tr.isHidden]:!dt.enableRegister,[tr.hasBtnAnimte]:Ke.isOpenAnimteRegister},onClick:()=>o({register:!0,...e.registerOpts})},u.value,{role:"button"}),{default:()=>{var d;return[w("span",{"data-sensors-click":!0,id:"registerClickModal"},[e.registerText||n("lobby.plan.header.register")]),(d=t==null?void 0:t.register)==null?void 0:d.call(t)]}}),l=i(e.loginBg),u=i(e.registerBg);return()=>w("div",{class:tr["un-login"]},[w(s.value,Te({class:{[tr.btn]:!0,[tr["login-btn"]]:!0,[tr.login]:e.isBtnVariableMode},onClick:()=>o({login:!0,...e.loginOpts})},l.value,{role:"button"}),{default:()=>[w("span",{"data-sensors-click":!0,id:"loginClick"},[e.loginText||n("lobby.plan.header.login")])]}),Ke.showRegisterBadge?w(UO,{backgroundColor:e.registerBadgeBgColor||r,content:e.badgeValue?e.badgeValue:a.value,color:e.registerBadgeTextColor,autoTransformOffset:!0,designBgMode:"green",class:[tr["register-badge"],"register-badge"],offset:e.registerBadgePosition,gift:e.showGiftImg?{size:"normal",shouldOccupySpace:0}:null,position:e.badgePosition},{default:()=>[w(c,null,null)]}):w(c,null,null)])}});function B0(){const{t:e}=we(),t=Do(),n=C(()=>t.payGiftScore?e("lobby.modal.pay.give",{num:t.payGiftScore}):t.payMaxCharge?e("lobby.modal.pay.give2",{num:t.payMaxCharge}):0),o=C(()=>t.payChargeBadge.backgroundColor);return{rechargeBadgeCount:n,rechargeBadgeBg:o,payChargeBadge:t.payChargeBadge}}const doe={payEntryId:{type:Number,default:rc.HOME_TOP},showPopover:{type:Boolean,default:!0},bgImg:{type:String,default:""},rechargeText:{type:String,default:""},rechargeBtnProps:{type:Object,default:()=>{}},popoverIcon:{type:String,default:""},badgePosition:{type:String,default:""},badgeOffset:{type:Array,default:()=>{}},popoverOffset:{type:Array,default:()=>[0,6]}},moe=KO,goe="_reCharge_gklub_115",foe="_active_gklub_156",Dr={"user-action-box":"_user-action-box_gklub_91","user-action-box-bg":"_user-action-box-bg_gklub_98",reCharge:goe,"user-action-popover":"_user-action-popover_gklub_
104121",active:foe,"have-bg":"_have-bg_gklub_167","user-action-content":"_user-action-content_gklub_173","popover-content":"_popover-content_gklub_173"},[poe]=_e("user-action"),hoe=le({name:poe,props:doe,setup(e,{slots:t}){const{t:n}=we(),o=O(!1),a=Ao(),r=async()=>{if(!a.value){const f=await V(()=>import("./0_EntryLoginRegisterChunk.DMUz1wnE.js").then(_=>_.gR),__vite__mapDeps([0]));a.value=f.default,await yt()}o.value=!o.value},{isShowInterest:s}=St(On()),i=Oe(),c=Ge(),l=Do(),u=B0(),d=C(()=>c.isRtlLanguage?"top-left":e.badgePosition||e.showPopover?"top-right":"auto"),m=C(()=>c.isRtlLanguage?[e.showPopover?Zt(-10):Zt(20),Zt(2)]:e.badgeOffset||[e.showPopover?Zt(-37):Zt(-20),Zt(2)]),g=()=>w(ud,{src:e.popoverIcon?e.popoverIcon:"/lobby_asset/common/web/common/comm_icon_sort.svg",imgProps:{useSkeleton:!0}},null);return()=>{const f=a.value;return w("div",{class:[Dr["user-action-box"],e.bgImg&&Dr["have-bg"]]},[e.bgImg&&w(Ve,{class:Dr["user-action-box-bg"],src:e.bgImg},null),w(tc,{backgroundColor:l.payChargeBadge.backgroundColor,content:u.rechargeBadgeCount.value,position:d.value,offset:m.value,zIndex:1,onClick:()=>{of({openType:"overlay",options:{payEntryId:rc.HOME_TOP}})},"data-sensors-click":!0,id:"depositClick"},{default:()=>{var _;return[((_=t.default)==null?void 0:_.call(t))||w(moe,Te({type:"primary",size:"small"},e.rechargeBtnProps,{class:Dr.reCharge}),{default:()=>[e.rechargeText||n("lobby.plan.header.recharge")]})]}}),e.showPopover&&(f?w(f,{offset:e.popoverOffset,placement:c.isRtlLanguage?"bottom-start":"bottom-end",wrapperClass:[Dr["user-action-popover"],o.value&&Dr.active],overlayClass:Dr["user-action-content"],showArrow:!1,show:o.value,"onUpdate:show":_=>o.value=_},{reference:g,default:()=>w("div",{class:Dr["popover-content"]},[w("div",{"data-sensors-click":!0,id:"withdrawClick",onClick:()=>$c()},[n("lobby.plan.header.withdraw")]),s.value&&w("div",{onClick:()=>i.push({name:k.INTEREST})},[n("lobby.plan.header.Interest")])])}):w("span",{class:[Dr["user-action-popover"]],onClick:r},[g()]))])}}}),_oe="_header_r006i_91",boe="_assemblyLogo_r006i_111",yoe="_rechargeImg_r006i_126",voe="_rechargeBadge_r006i_132",Yl={header:_oe,assemblyLogo:boe,rechargeImg:yoe,rechargeBadge:voe,"header-no-bottom-border":"_header-no-bottom-border_r006i_140"},Soe=gn({loader:()=>V(()=>import("./festival-ui-group.5mfKnHma.js").then(e=>e.H),__vite__mapDeps([0,1,3,4,5,7,6,8,34]))}),[Coe]=_e("pages-game-header"),woe=le({name:Coe,setup(){const e=Do(),t=J(),n=vf(),o=nn(),a=ue(),r=C(()=>e.curAuditModeIsModeOne),s=Ge(),i=()=>{var c;return s.language==="zh"&&[93].includes(((c=a.siteInfos)==null?void 0:c.skinTypeValue)||0)};return()=>w(ooe,{hasHeaderBgStyle:!Xu().isDark,class:[Yl.header,n.isOpenNoWallet&&!n.isNoWalletCollapse?Yl["header-no-bottom-border"]:""]},{left:()=>w(gt,null,[w(dne,{icon:rr("/lobby_asset/{layout}-{bg}-common/web/common/btn_zcl_arrow.svg")},null),w($ne,{class:Yl.assemblyLogo},null)]),right:()=>t.hasLoginedComponent?w(gt,null,[!Wu().isHideCurrency&&w(N0,{offset:s.isRtlLanguage?[0,Ga("0.1rem")]:[Ga("0.1rem"),Ga("0.1rem")],badgeArrowPosition:"bottom-right",placement:s.isRtlLanguage?"bottom-start":"bottom-end"},null),!i()&&r.value&&w(hoe,{badgePosition:"auto",badgeOffset:[0,0],popoverOffset:[Ga("0.11rem"),0]},null),i()&&w("div",{class:Yl.rechargeImg},[w(Ve,{src:"/lobby_asset/{layout}-{bg}-{skin}/web/home/apng_icon_lyh.png",class:Yl.rechargeBadge},null),w(Ve,{onClick:()=>of(),src:"/lobby_asset/{layout}-{bg}-{skin}/common/home/icon_topnav_pg.png"},null)])]):w(uoe,null,null),festivalBothSides:()=>o.isHolidayThemeVisible?w(Soe,null,null):w(gt,null,null)})}}),[Ioe]=_e("async-header"),Aoe=le({name:Ioe,setup(){return()=>w(woe,null,null)}}),H0={useScroll:{type:Boolean,default:!0},layoutScrollbarTrigger:{type:String,default:"always"},forceSystemScrollbar:{type:Boolean,default:!1},flatHeader:{type:Boolean,default:!1},headerClass:{type:[String,Array,Object],default:""},mainClass:{type:[String,Array,Object],default:""},footerClass:{type:[String,Array,Object],default:""},fixedViewClass:{type:[String,Array,Object],default:""},isHomeFooter:{type:Boolean,default:!0}};function Loe(){const e=gs(),t=O(0),n=o=>{let a=0,r=o;for(;r;)r.type.name==="RouterView"&&a++,r=r.parent;t.value=a};return Gt(()=>{n(e==null?void 0:e.parent)}),{level:t}}const Toe="_main_1vk4h_91",Roe={main:Toe},[Ooe,Poe]=_e("fixed-view"),Doe=le({name:Ooe,emits:["click"],setup(e,{slots:t,emit:n}){const o=a=>n("click",a);return()=>{var a;return w("div",{class:[Roe.main,Poe(),wR.FixedNoDesktop],style:{zIndex:r9["fixed-view"]},onClick:o},[(a=t==null?void 0:t.default)==null?void 0:a.call(t)])}}}),[Moe]=_e("layout-footer"),Noe=le({name:Moe,props:{isHomeFooter:{type:Boolean,default:!0}},setup(e,{slots:t}){const n=O(null),o=Hm(n),a=Qe(),r=C(()=>a.isTgAppOnIos&&e.isHomeFooter);return()=>{var s,i;return w("footer",{style:r.value?{height:`${o.height.value}px`}:{}},[r.value?w("div",{ref:n,style:{position:"fixed",width:"100%",maxWidth:"var(--lobby__max-width)",bottom:"var(--skin__safe-area-inset-bottom, 0px)"}},[(s=t.default)==null?void 0:s.call(t)]):(i=t.default)==null?void 0:i.call(t)])}}}),zp={"base-layout":"_base-layout_6p5kt_91","section-content":"_section-content_6p5kt_109"},[koe]=_e("base-layout"),x0=le({name:koe,props:H0,setup(e,{slots:t}){const n=O(null),o=O(null),a=O(null),r=O(null),{level:s}=Loe();return mt(yQ,n),mt(vQ,o),mt(HO,a),Da({headerEl:n,defaultEl:a,footerEl:r,fixedEl:o}),()=>{var i,c,l,u;return w("div",{class:[zp["base-layout"]],"data-route-view":`${s.value}`},[(i=t==null?void 0:t.backgroundImage)==null?void 0:i.call(t),t!=null&&t.header?e.flatHeader?(c=t.header)==null?void 0:c.call(t):w("header",{ref:n,class:e.headerClass},[(l=t.header)==null?void 0:l.call(t)]):null,t!=null&&t.default?e.useScroll?w(yy,{class:[zp["section-content"],e.mainClass],ref:a,tag:"section",bindRoute:!0,forceSystemScrollbar:e.forceSystemScrollbar,scrollbarTrigger:e.layoutScrollbarTrigger,direction:"y"},{default:()=>{var d,m,g;return[(g=t.default)==null?void 0:g.call(t,{scrollEl:(m=(d=a==null?void 0:a.value)==null?void 0:d.scrollEl)==null?void 0:m.value})]}}):w("section",{ref:a,class:[zp["section-content"],e.mainClass]},[(u=t.default)==null?void 0:u.call(t)]):null,t!=null&&t.footer?w(Noe,{isHomeFooter:e.isHomeFooter,ref:r,class:e.footerClass},{default:()=>{var d;return[(d=t==null?void 0:t.footer)==null?void 0:d.call(t)]}}):null,t!=null&&t.fixedView?w(Doe,{ref:o,class:e.fixedViewClass},{default:()=>{var d;return[(d=t==null?void 0:t.fixedView)==null?void 0:d.call(t)]}}):null])}}}),Boe="_main_g8m7s_94",WC={"home-layout":"_home-layout_g8m7s_91",main:Boe},[Hoe]=_e("components-home-layout"),xoe=le({name:Hoe,props:H0,setup(e,{slots:t}){return()=>w(x0,Te({class:WC["home-layout"]},e,{layoutScrollbarTrigger:e.layoutScrollbarTrigger,forceSystemScrollbar:!0,mainClass:[e.mainClass,WC.main]}),{...t})}});window.lazyLoadDataMapper={};const Eoe=async e=>{if(id()===Sl.close)return;await zn(500),["isLazy","isOpen","skeletonHeight","height","marginTop"].forEach(n=>{const o=[],a=[],r=[];for(const s of e){const i=s[1][n==="isOpen"?"judgeOpen":n],c=typeof i=="function"?i():i;o.push([s[0],c]),s[1].judgeOpen()?a.push([s[0],c]):r.push([s[0],c])}window.lazyLoadDataMapper[`all-${n}`]=o,window.lazyLoadDataMapper[`opened-${n}`]=a,window.lazyLoadDataMapper[`unopened-${n}`]=r}),console.warn(window.lazyLoadDataMapper)},Uoe=1;class Goe{constructor(t={}){x(this,"moduleEleMap",new Map);x(this,"defaultMarginTop",.2);x(this,"defaultMarginBottom",0);x(this,"defaultHeight",.2);x(this,"screenHeightGetterRem",()=>{const t=parseFloat(getComputedStyle(document.documentElement).fontSize||"16");return window.innerHeight/(isNaN(t)?16:t)});const{screenHeightGetterRem:n,defaultHeight:o,defaultMarginTop:a,defaultMarginBottom:r}=t;typeof n!="undefined"&&(this.screenHeightGetterRem=n),typeof o!="undefined"&&(this.defaultHeight=o
104),typeof a!="undefined"&&(this.defaultMarginTop=a),typeof r!="undefined"&&(this.defaultMarginBottom=r),Eoe(this.moduleEleMap)}registerModule(t){this.registerModuleEle(t)}calcHeightWhenRegister(t,n,o){const a=Ip(t.marginTop,this.defaultMarginTop),r=Ip(t.marginBottom,this.defaultMarginBottom),s=Ip(t.height,this.defaultHeight);if(n&&!t.isUnoccupied){const i=c=>{var u,d;if(!c)return;const l=m=>(typeof m=="function"&&(m=m()),`${(m*50).toFixed(2)}px`);c.skeletonHeight+=s,c.skeletonHeight+=a,c.skeletonHeight+=r,c.skeletonHeightRem=`${c.skeletonHeight}rem`,c.skeletonHeightPx=`â¤ï¸${l(c.skeletonHeight)}`,c.heightOverlayChildren||(c.heightOverlayChildren=[`[${c.name}:${l(c.height)}]`]),c.heightOverlayChildren.push(`[${t.name}:${l(t.height)}+${l((u=t.marginTop)!=null?u:.2)}+${l((d=t.marginBottom)!=null?d:0)}]`),i(c.parent)};i(o)}return{marginTop:a,marginBottom:r,height:s}}calcIsOpenWhenRegister(t,n){if(n&&!n.judgeOpen())return()=>!1;const o=t.isOpen;return typeof o=="function"?o:typeof o=="boolean"?()=>o:()=>!0}registerModuleEle(t,n){var c,l;if(Array.isArray(t))return this.registerModuleEleList(t);if(!(t!=null&&t.name))return;const o=this.calcIsOpenWhenRegister(t,n),{height:a,marginTop:r,marginBottom:s}=this.calcHeightWhenRegister(t,o(),n),i={...t,isAsync:!!t.isAsync,isUnoccupied:!!t.isUnoccupied,marginTop:r,marginBottom:s,height:a,heightRem:`${a}rem`,skeletonHeight:a,skeletonHeightRem:`${a}rem`,skeletonHeightPx:`â¤ï¸${a*50}px`,marginTopRem:`${r}rem`,marginBottomRem:`${s}rem`,isLazy:(c=t.isForceLazy)!=null?c:!1,parent:n,judgeOpen:o,preloadTime:(l=t.preloadTime)!=null?l:8e3};this.moduleEleMap.set(i.name,i),i.children&&this.registerModuleEleList(i.children,i)}registerModuleEleList(t,n){Array.isArray(t)&&t.forEach(o=>this.registerModuleEle(o,n))}getModuleEle(t){return this.moduleEleMap.get(t)}calcLazyStates(t){const n=typeof t=="number"?t:this.screenHeightGetterRem();let o=0,a=0;for(const r of this.moduleEleMap.values()){const s=r.judgeOpen();if(!s){r.isLazy=!1;continue}let i=typeof r.isForceLazy=="boolean"?r.isForceLazy:void 0;typeof i=="undefined"&&(i=o+(r.marginTop||0)>n+Uoe),r.isLazy=i,s&&r.name!==iy&&(r.lazySortNo=++a),r.isUnoccupied||(o+=(r.marginTop||0)+(r.marginBottom||0)+(r.height||0))}}clearAll(){this.moduleEleMap.clear()}}const Foe={modules:{type:Array,required:!0,default:[]},screenHeightGetterRem:{required:!1,type:Function},defaultHeight:{required:!1,type:Number},defaultMarginTop:{required:!1,type:Number},defaultMarginBottom:{required:!1,type:Number}},VC=gn({loader:()=>V(()=>import("./DebuggerSwitchButtonIndex.DPoqmtNX.js"),__vite__mapDeps([42]))}),[Woe]=_e("lazy-manager-provider-index"),Voe=le({name:Woe,inheritAttrs:!1,props:Foe,setup(e,{slots:t,attrs:n}){const o=new Goe({defaultHeight:e.defaultHeight,defaultMarginTop:e.defaultMarginTop,defaultMarginBottom:e.defaultMarginBottom,screenHeightGetterRem:e.screenHeightGetterRem});id()!==Sl.close&&V(async()=>{const{checkConfig:i}=await import("./check-config.DeDMyOfg.js");return{checkConfig:i}},[]).then(({checkConfig:i})=>{i(o)}),o.registerModule(e.modules);try{o.calcLazyStates()}
104catch(i){console.warn("[LazyManagerProvider] calcLazyStates failed in setup",i)}mt(wy,o),Da({manager:o});const a=i=>{if(i.length!==1)return i;const c=i[0];return c.type===gt&&Array.isArray(c.children)?a(c.children):i},r=()=>{var l;const i=(l=t.default)==null?void 0:l.call(t),c=i&&a(i);return(c==null?void 0:c.length)===1?kn(c[0],n):i},s=()=>{var l;const i=(l=t.default)==null?void 0:l.call(t),c=i&&a(i);return(c==null?void 0:c.length)===1?[kn(c[0],n),w(VC,null,null)]:c&&c.length>1?[...c,w(VC,null,null)]:i};return()=>S8()?s():r()}}),$oe="_style1_wq4d9_161",Yoe="_style2_wq4d9_165",qoe="_style3_wq4d9_169",zoe="_hidden_wq4d9_204",joe="_active_wq4d9_427",$C={"skeleton-wrapper":"_skeleton-wrapper_wq4d9_91","home-live-stream":"_home-live-stream_wq4d9_96","fullscreen-active":"_fullscreen-active_wq4d9_150","player-fallback":"_player-fallback_wq4d9_157",style1:$oe,style2:Yoe,style3:qoe,"cover-img":"_cover-img_wq4d9_173","cover-img-hidden":"_cover-img-hidden_wq4d9_184","cover-img-inner":"_cover-img-inner_wq4d9_187","controls-overlay":"_controls-overlay_wq4d9_193",hidden:zoe,"controls-mask":"_controls-mask_wq4d9_209","pause-mask":"_pause-mask_wq4d9_220","btn-bg":"_btn-bg_wq4d9_231","btn-icon":"_btn-icon_wq4d9_242","play-btn":"_play-btn_wq4d9_250","btn-icon-play":"_btn-icon-play_wq4d9_282","fullscreen-btn":"_fullscreen-btn_wq4d9_286","volume-btn":"_volume-btn_wq4d9_308","menu-btn":"_menu-btn_wq4d9_347","menu-panel-mask":"_menu-panel-mask_wq4d9_364","menu-panel":"_menu-panel_wq4d9_364","menu-header":"_menu-header_wq4d9_388","menu-close-btn":"_menu-close-btn_wq4d9_396","menu-list":"_menu-list_wq4d9_404","menu-item":"_menu-item_wq4d9_411",active:joe,"menu-item-thumbnail":"_menu-item-thumbnail_wq4d9_431","menu-item-info":"_menu-item-info_wq4d9_440","menu-item-label":"_menu-item-label_wq4d9_445","menu-item-description":"_menu-item-description_wq4d9_451","menu-empty":"_menu-empty_wq4d9_460"},[Koe]=_e("lazy-region-live-stream"),jp=le({name:Koe,props:{place:{type:Number,required:!0}},setup(e,{slots:t}){const o=uO().getLiveStreamByPlace(e.place),a=He(wy,null),r=O(!1);let s=null;Gt(()=>{s=setTimeout(()=>{r.value=!0},Ej)}),Kn(()=>{s!==null&&(clearTimeout(s),s=null)});const i=`${YR}_${e.place}`,c=!!(a!=null&&a.getModuleEle(i)),l=C(()=>r.value&&!!o.value),u=C(()=>`${sy[o.value.styleType]}rem`);return()=>o.value?c?w(ln,{moduleName:i,isOpen:l.value},{default:()=>{var d;return[(d=t.default)==null?void 0:d.call(t)]}}):r.value?w(Mw,null,{default:()=>{var d;return(d=t.default)==null?void 0:d.call(t)},fallback:()=>w("div",{class:$C["skeleton-wrapper"]},[w(A_,{moduleName:i,skeletonHeightRem:u.value,marginTopRem:Gd,marginBottomRem:Gd},null)])}):w("div",{class:$C["skeleton-wrapper"]},[w(A_,{moduleName:i,skeletonHeightRem:u.value,marginTopRem:Gd,marginBottomRem:Gd},null)]):null}}),Qoe=2500,Xoe=({enabled:e,next:t})=>{let n=null,o=0,a=!1,r=!1;const s=()=>{n!==null&&(clearTimeout(n),n=null),o+=1};return{cancel:s,dispose:()=>{r=!0,s()},scheduleInitialFallback:()=>{if(r||a||!e())return;a=!0,s();const l=o;n=setTimeout(()=>{n=null,!(r||l!==o)&&t()},Qoe)}}};var P_=(e=>(e.Copy="copy",e.Receive="receive",e))(P_||{});const kge={copy:["text"],receive:[]},YC=(e,t="span",n={})=>{const o=document.createElement(t);o.setAttribute("data-vue-comp",e),o.setAttribute("data-props",JSON.stringify(n));const a=o.outerHTML;return o.remove(),a},Zoe=e=>{const t=new DOMParser().parseFromString(e!=null?e:"","text/html").body,n=document.createElement("div");for(;t.firstChild;)n.appendChild(t.firstChild);return n},Joe="#ea4e3d",Bge=(e,t)=>{const o=new DOMParser().parseFromString(e,"text/html");return o.querySelectorAll("a").forEach(s=>{var l;const i=(l=s.getAttribute("href"))!=null?l:"";if(i&&/^https?:\/\/[a-zA-Z0-9-.]+\.[a-zA-Z]{2,}(\/\S*?)?$/.test(i)){const u=new URL(i);Object.entries(t).forEach(([d,m])=>{u.searchParams.has(d)||u.searchParams.append(d,m)}),s.setAttribute("href",u.toString().replace(/&/g,"&"))}}),Array.from(o.body.childNodes).map(s=>s instanceof HTMLElement?s.outerHTML:s.textContent).join("")},Hge=(e,t=!1)=>{if(t)return e.replace(/\/\||\/\#|\/\^|\/\-/g,"");const n={"/-":"#1678FF","/|":"#04BE02","/#":Joe,"/^":"#FFAA09"};for(const o in n){let a=e.indexOf(o);for(;a!==-1;){const r=n[o];e=e.replace(o,`<span style = "color: ${r}" >`),e=e.replace(o,"</span>"),a=e.indexOf(o)}}return e};function eae(e){e.querySelectorAll("*").forEach(n=>
104{n.setAttribute("style",n.style.color?`color: ${n.style.color}`:"")})}function xge(e){const t=Zoe(e);return t.querySelectorAll("*").forEach(o=>{const a=o,r=a.style.color;a.removeAttribute("style"),a.style.color=r}),t.innerHTML}function tae(e){return e.replace(/<br\s*\/?>/gi," ")}function Ege(e){return e.replace(/text-align:\s*right;/gi,"")}const Uge=(e,t={})=>{let n=e;const o=n.match(/\{\{[^}]+\}\}/g);return o==null||o.forEach(a=>{var s,i,c;const r=(i=(s=a.match(/\{\{(.+?)\}\}/))==null?void 0:s[1])==null?void 0:i.replace(/^\{+/,"");if(r){if(r.startsWith("field")){const l=(c=t[r])!=null?c:"",u=new RegExp(a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+"(?:\\s| )*\\{\\{copy\\}\\}");u.test(n)?n=n.replace(u,()=>`${l}${YC(P_.Copy,"span",{text:l})}`):n=n.replace(a,()=>l)}r.startsWith("receive")&&(n=n.replace(a,YC(P_.Receive,"div")))}}),n},nae="_retry_gufft_91",oae="_marquee_gufft_95",aae="_content_gufft_125",rae="_right_gufft_148",As={retry:nae,marquee:oae,"left-icon":"_left-icon_gufft_113","swiper-container":"_swiper-container_gufft_118",content:aae,right:rae,"message-icon":"_message-icon_gufft_153"};function sae(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ao(e)}const[iae]=Wt("pages-game-marquee"),cae=le({name:iae,props:{leftIconCommon:{type:Boolean,default:!1},rightIconDot:{type:Boolean,default:!1},unreadIcon:{type:String,default:void 0},readIcon:{type:String,default:void 0},needNoticeClick:{type:Boolean,default:!0},rightBadgeOffset:{type:Array,default:[.06,.06]},badgePosition:{type:String,default:void 0},badgeProps:{type:Object}},setup(e,{slots:t}){const o=vt({duration:500,vertical:!0,observer:!0,allowTouchMove:!1,loop:!0,touchable:!1}),a=Ge(),r=O(0),{isKeptAlive:s}=WO(),i=Oe(),c=O(),l=O(),u=O(!1),d=hf(),{marqueeList:m,homeMarqueeType:g,unreadAnnouncement:f,unreadNotice:_}=St(d),h=C(()=>f.value+_.value),p=async(F=!1)=>{u.value=F,J().hasLogined&&await d.getHomeList(),u.value=!1,c.value=g.value==="retry",o.loop=m.value.length>1,yt(()=>{const Q=document.querySelectorAll(".home-marquee-content");Q==null||Q.forEach(G=>{eae(G)}),m.value.length>1?v.scheduleInitialFallback():v.cancel()})};fe(()=>J().hasLogined,()=>{p()}),hs(F=>{p(),F&&yt(()=>{var Q;(Q=l.value)==null||Q.swipeTo(r.value,{immediate:!0})})});const y=F=>{r.value=F||0},b=O(),v=Xoe({enabled:()=>!va.disableSeamlessScroll(),next:()=>{var F;return(F=l.value)==null?void 0:F.next()}});let A=!1;const L=async()=>{var F;v.cancel(),await zn(500),!A&&((F=l.value)==null||F.next())},T=()=>v.cancel();fa(()=>{A=!0,v.dispose()});const S=()=>{if(!e.needNoticeClick)return;const F=f.value>0&&_.value===0?Fi.ANNOUNCEMENT:Fi.NOTICE;qL(F)},I=F=>{i.push({name:k.NOTICE_DETAIL,query:{noticeType:Fi.MARQUEE,id:F.id,triggerId:(F==null?void 0:F.triggerId)||""}})},{customizeTopIconMap:R}=cd.useHomeCustomizeIcon(),D=()=>{let F=rr("/lobby_asset/{layout}-{bg}-{skin}/web/home/icon_dt_pmd.png");F=nn().isNoBg&&e.leftIconCommon?"/lobby_asset/{layout}-{bg}-common/web/home/icon_dt_pmd.png":F;const Q=R.get("horseLightIcon")||F;return w(Ve,{src:Q,class:[As["left-icon"],"left-icon"],useSkeleton:!0,isApng:!R.get("horseLightIcon"),lazy:!1},null)},M=C(()=>{var N,$;const F=(X,j)=>R.get(X)||j,Q=(N=e.unreadIcon)!=null?N:F("messageUnreadIcon",rr("/lobby_asset/{layout}-{bg}-{skin}/common/_sprite/icon_dt_1xx_wd.png")),G=($=e.readIcon)!=null?$:F("messageReadIcon",rr("/lobby_asset/{layout}-{bg}-{skin}/common/_sprite/icon_dt_1xx.png"));return h.value>0?Q:G}),B=()=>{var G,N;const[F,Q]=e.rightBadgeOffset;return w(tc,Te({tag:"div",content:(G=h.value)!=null?G:0,showZero:!1,max:99,offset:[Ga(`${(a.isRtlLanguage?1:-1)*F}rem`),Ga(`${Q}rem`)],zIndex:11,position:(N=e.badgePosition)!=null?N:a.isRtlLanguage?"top-left":"top-right",dot:d.unReadNum>0?e.rightIconDot:!1},e.badgeProps),{default:()=>[w(ld,{imgProps:{useSkeleton:!0,lazy:!1},src:M.value,class:As["message-icon"]},null)]})},E=()=>w(JO,{class:As.retry,loading:u.value,type:"inline",onRetry:()=>p(!0)},null),Y=C(()=>{var F;return(F=l.value)==null?void 0:F.$el}),H=()=>{let F;return w(Sy,{ref:b,domRef:Y},{default:()=>[w(Cy,Te({ref:l},o,{class:As["swiper-container"],showIndicators:!1,onChange:y}),sae(F=m.value.map((Q,G)=>w(Tf,{key:G},{default:()=>{var N;return[w(IR,{minRequiredDuration:Q.interval,fullViewStop:m.value.length>1,resetDelay:500/1e3,disabled:G!==r.value||s.value,delay:1,onScrollend:L,onAnimationstart:T,isPaused:!((N=b.value)!=null&&N.isActive),direction:a.isRtlLanguage?Qs.Right:Qs.Left},{default:()=>[w(Gu,{onClick:()=>I(Q),class:[As.content,"home-marquee-content"],html:tae(Q.content)},null)]})]}})))?F:{default:()=>[F]})]})};return()=>{var F,Q;return w("div",{class:[As.marquee,"global-marquee"]},[((F=t.leftIcon)==null?void 0:F.call(t))||D(),c.value?E():m.value.length>0?H():w("div",{class:As["swiper-container"]},null),w("div",{class:[As.right,"right-icon"],onClick:S},[((Q=t.rightIcon)==null?void 0:Q.call(t,h.value))||B()])])}}}),lae="_bindNoWallet_1bwl0_91",uae={bindNoWallet:lae},Kp=bo(()=>V(()=>import("./Common.BWIuMFf1.js"),__vite__mapDeps([0,4,35,36]))),dae=bo(()=>V(()=>import("./AsyncFooter.DwBKZTbZ.js").then(e=>e.a),__vite__mapDeps([0,43]))),bc=bo(()=>V(()=>import("./MarketingIndex.BgWlG7mg.js"),__vite__mapDeps([0,1,3,4,5,6,37,38]))),nm=bo(()=>V(()=>import("./WinnerIndex.BX3f2L5N.js"),__vite__mapDeps([4,0,35,44]))),qC=bo(()=>V(()=>import("./SpecialControlIndex.CWTsDKPx.js"),__vite__mapDeps([0,39]))
104),mae=bo(()=>V(()=>import("./AsyncCustormAsideIndex.CtO5Kh-h.js").then(e=>e.A),[])),gae=bo(()=>V(()=>import("./HomeVideoIndex.l6y5z0PK.js").then(e=>e.H),__vite__mapDeps([45]))),Qp=bo(()=>V(()=>import("./HomeLiveStreamIndex.aXx1RDtL.js"),__vite__mapDeps([46,47]))),fae=bo(()=>V(()=>import("./RecommendMatchsIndex.DaoZEd5n.js"),__vite__mapDeps([0,1,3,4,5,6,7,8,9,28,48]))),[pae]=_e("pages-home-index"),hae=le({name:pae,setup(){const e=O(null),t=Hm(e),n=vf(),o=C(()=>{const s=n.isOpenNoWallet&&!n.isNoWalletCollapse&&n.noWalletHeight||0;return t.height.value+s}),{longConnectionJackpot:a}=ff();a();const{modulesConfig:r}=mK();return()=>w(Voe,{modules:r},{default:()=>[w(xoe,null,{header:()=>w(gt,null,[w("div",{ref:e},[w(ln,{moduleName:KR},{default:()=>[w(QO,null,null)]}),w(ln,{moduleName:jR},{default:()=>[w(Aoe,null,null)]})]),w(UZ,{class:uae.bindNoWallet},null)]),default:()=>w(gt,null,[w($O,null,null),w(mae,{headerHeight:t.height.value},null),w(Ur,{moduleName:lt.marketInHeaderBelow},{default:()=>[w(bc,{place:Le.HOME_TOP_BELOW},null)]}),w(jp,{place:na.BannerTop},{default:()=>[w(Qp,{place:na.BannerTop},null)]}),w(ln,{moduleName:$t.jackpotInBannerTop},{default:()=>[w(Kp,{place:"banner"},null)]}),w(ln,{moduleName:Gn.winnerInBannerTop},{default:()=>[w(nm,{position:ca.BANNER},null)]}),w(ln,{moduleName:$R},{default:()=>[w(BZ,null,null)]}),w(Ur,{moduleName:lt.marketInBannerBelow},{default:()=>[w(bc,{place:Le.BANNER_BELOW},null)]}),w(ln,{moduleName:$t.jackpotInMarqueeTop},{default:()=>[w(Kp,{place:"marquee"},null)]}),w(ln,{moduleName:Gn.winnerInMarqueeTop},{default:()=>[w(nm,{position:ca.MARQUEUE},null)]}),w(ln,{moduleName:qR},{default:()=>[w(cae,null,null)]}),w(Ur,{moduleName:lt.marketInMarqueeBelow},{default:()=>[w(bc,{place:Le.ANNOUNCEMENT_BELOW},null)]}),w(ln,{moduleName:`${cy}${[91].join(",")}`},{default:()=>[w(gae,{skinId:[91]},null)]}),w(jp,{place:na.GameTop},{default:()=>[w(Qp,{place:na.GameTop},null)]}),w(ln,{moduleName:$t.jackpotInMiddleMenu},{default:()=>[w(Kp,{place:"middleMenu"},null)]}),w(ln,{moduleName:Gn.winnerInMiddleMenuTop},{default:()=>[w(nm,{position:ca.NAV},null)]}),w(L_,{moduleName:Yn.specialInGameTop},{default:()=>[w(qC,{position:Wa.Top},null)]}),w(ln,{moduleName:zR},{default:()=>[w(fae,null,null)]}),w(ln,{moduleName:iy},{default:()=>[w(EX,{withTabsGap:"homeBg"},{default:()=>[w(ln,{moduleName:Un.gameExhibition},{default:()=>[w(rne,{offsetTop:o.value},null)]})]})]}),w(Ur,{moduleName:lt.marketInGameBelow},{default:()=>[w(bc,{place:Le.THIRD_PARTY_GAMES_BELOW},null)]}),w(jp,{place:na.FooterTop},{default:()=>[w(Qp,{place:na.FooterTop},null)]}),w(Ur,{moduleName:lt.marketInHomeBottomAbove},{default:()=>[w(bc,{place:Le.HOME_BOTTOM_ABOVE},null)]}),w(ln,{moduleName:Gn.winnerInFooterTop},{default:()=>[w(nm,{position:ca.FOOTER},null)]}),w(L_,{moduleName:Yn.specialInGameBottom},{default:()=>[w(qC,{position:Wa.Bottom},null)]}),w(ln,{moduleName:VR},{default:()=>[w(dae,null,{default:()=>[w(Ur,{moduleName:lt.marketInHomeBottom},{default:()=>[w(bc,{place:Le.HOME_BOTTOM},null)]})]})]})])})]})}}),Xp=le({props:{mapping:{type:Object,required:!0}},setup(e){const t=Oe(),n=Bn();return(()=>{const a={...n.query},r={...n.params},s=(i,c,l)=>{i&&i.forEach(u=>{const d=typeof u=="string"?u:u.from,m=typeof u=="string"?u:u.to;c[d]&&(l[m]=c[d],delete c[d])})};s(e.mapping.paramsToQuery,r,a),s(e.mapping.queryToParams,a,r),e.mapping.redirectTo&&t.replace({name:e.mapping.redirectTo,params:r,query:a})})(),()=>null}});var Ce=(e=>(e.NULL="null",e.CUSTOM="custom",e.MENU="menu",e.HOME="home",e.EVENT="discount",e.LOGIN="login",e.LOGINOUT="lougout",e.REGISTER="register",e.RECHARGE="recharge",e.WITHDRAW="withdraw",e.MINE="mine",e.VIP="vip",e.SHARE_EARN="shareEarn",e.AGENT_APPLY="agent",e.PROMOTE="promote",e.YUEBAO="yueBao",e.SERVICE="customer",e.DOWNLOAD="download",e.ACTIVITY="activity",e.TASK="task",e.REBATE="rebate",e.CANRECEIVE="canReceive",e.RECORDS="records",e.FEEDBACK="feedback",e.AWARD="award",e.REPORT_DETAILS="reportDetails",e.ACCOUNT_DETAILS="accountDetails",e.BETTING_RECORD="bettingRecord",e.PERSONAL_STATMENT="personalStatement",e.SETTINGS="settings",e.RECEIVERECORD="receiveRecord",e.OFFICIAL_CHANNEL="officialChannel",e.WITHDRAWMANAGEMENT="withdrawalManagement",e.GAME="GAME",e.RECHARGEFUND="rechargeFund",e.SECURITY="security",e.KYC="KYC",e.COMMONQUESTION="commonQuestion",e.MESSAGECENTER="messageCenter",e.CENTERWALLET="centerWallet",e.RECHARGE_FUND="rechargeFund",e.CLUB_APPLY="clubApply",e.ROOM_GAME="roomGame",e.CLUB_HOME="clubHome",e.CLUB_MANAGEMENT="clubManagement",e.CLUB_PROMOTE="clubPromote",e.CLUB_CONTACT="clubContact",e.CLUB_MINE="clubMine",e.CLUB_DEPOSIT_MANAGEMENT="clubDepositManagement",e.CLUB_WITHDRAW_MANAGEMENT="clubWithdrawMangement",e.FORBIDDEN_SELF="forbiddenSelf",e.CLUB_BILL_SETTLEMENT="clubBillSettlement",e.CLUB_MEMBER_MANAGEMENT="memberManagement",e.CLUB_ACCOUNT_DETAILS="clubAccountDetails",e.CLUB_CENTER_WALLET="clubCenterWallet",e.CLUB_RECHARGE="clubRecharge",e.CLUB_WITHDRAW="clubWithdraw",e.BLINDBOX_LOTTERY="blindBox",e.CREDIT_LOAN="creditLoan",e.FINDUS="findUs",e.SHARE="shareMakeMoney",e.CUT_ONE="kydActive",e.CASINO="casino",e.MOMENTS="moments",e.RECENT="recentGame",e.COLLECT="favoriteGame",e.TRY_GAME="tr
104yGame",e.LUCKYWHEEL="luckySpin",e.SVIP="svip",e.MALL="mall",e.LIVE="live",e.ACCOUNT="account",e.BETTING_TASK="bettingTask",e.MATCH_NEWS="sportEvent",e.COUPONS="coupon",e.GOSSIP="eatingPopcorn",e.CUSTOMERPAY="customerPay",e.SPORT="sport",e.SHARE_HOLDING="shareHolding",e))(Ce||{}),Ko=(e=>(e[e.Active=1]="Active",e[e.Task=2]="Task",e[e.Cashback=3]="Cashback",e[e.Interest=4]="Interest",e[e.Vip=5]="Vip",e[e.CanReceive=6]="CanReceive",e[e.Records=7]="Records",e[e.RechargeFund=8]="RechargeFund",e[e.CreditLoan=9]="CreditLoan",e[e.LuckyWheel=10]="LuckyWheel",e[e.SVIP=11]="SVIP",e[e.ClubCashback=14]="ClubCashback",e))(Ko||{}),D_=(e=>(e.Expand="expand",e.Popover="popover",e))(D_||{}),Ps=(e=>(e.Base="base",e.Special="specail",e.SpecialWithBadge="specialWithBadge",e.Big="big",e))(Ps||{}),vi=(e=>(e[e.PROMOTE=Ce.PROMOTE]="PROMOTE",e[e.RECHARGE=Ce.RECHARGE]="RECHARGE",e[e.ACTIVITY=Ce.ACTIVITY]="ACTIVITY",e[e.TASK=Ce.TASK]="TASK",e.RECHARGE_FUND="providentFund",e[e.EVENT=Ce.EVENT]="EVENT",e))(vi||{});const Nm={[vi.PROMOTE]:Ce.PROMOTE,[vi.RECHARGE]:Ce.RECHARGE,[vi.ACTIVITY]:Ce.ACTIVITY,[vi.TASK]:Ce.TASK,[vi.RECHARGE_FUND]:Ce.RECHARGE_FUND,[vi.EVENT]:Ce.EVENT},_ae={unknown:0,online:1,transfer:2,crypto:3,artificial:4,merchant:5,withdrawToRecharge:7},bae=rt(()=>V(()=>import("./1_RechargeDialogsChunk.NXAGE63U.js").then(e=>e.i),__vite__mapDeps([0,1,23,3,4,5,24])),e=>e.openRechargeModalByPreSelect,"openRechargeModalByPreSelect");var yae=(e=>(e[e.Init=0]="Init",e[e.CanReceive=1]="CanReceive",e[e.Received=2]="Received",e[e.Expired=3]="Expired",e[e.Send=4]="Send",e[e.Cancel=5]="Cancel",e[e.NeedApply=6]="NeedApply",e[e.NeedRequest=7]="NeedRequest",e[e.Reject=8]="Reject",e[e.Receipting=9]="Receipting",e))(yae||{}),M_=(e=>(e.Ing="ing",e.CanReceive="canReceive",e.HasReceived="hasReceived",e.Closed="closed",e))(M_||{});const vae="/api/yuebao/profitCount",Sae="/api/yuebao/profitRecord",E0="/api/yuebao/index",Cae=async()=>{var t;const e=await z.request({url:"/api/yuebao/getSetting",method:"post"},{cache:{useCache:"fresh",time:60},oss:{enable:!1}});return(t=e==null?void 0:e.data)==null?void 0:t.data},wae=async(e="fresh")=>{var n;const t=await z.request({url:E0,method:"post"},{cache:{useCache:e,time:1800},oss:{enable:!1}});return(n=t==null?void 0:t.data)==null?void 0:n.data},Gge=async e=>{var n;const t=await z.request({url:Sae,method:"post",data:{...e}},{cache:{useCache:"fresh",time:60},token:{type:"loginOnly"},oss:{enable:!1}});return(n=t==null?void 0:t.data)==null?void 0:n.data},Fge=async e=>{var n;const t=await z.request({url:"/api/yuebao/takeoutGold",method:"post",data:{...e}},{cache:{useCache:!1},oss:{enable:!1},error:{action:"silent"}});return(n=t==null?void 0:t.data)==null?void 0:n.data},Wge=async e=>{var n;const t=await z.request({url:"/api/yuebao/saveGold",method:"post",data:{...e}},{cache:{useCache:!1},oss:{enable:!1},error:{action:"silent"}});return(n=t==null?void 0:t.data)==null?void 0:n.data},Vge=async e=>{var n;const t=await z.request({url:vae,method:"post",data:{...e}},{cache:{useCache:"fresh",time:60},oss:{enable:!1}});return(n=t==null?void 0:t.data)==null?void 0:n.data},$ge=async e=>{var n;const t=await z.request({url:"/api/yuebao/getInterest",method:"post",data:e!=null?e:{}},{cache:{useCache:!1},oss:{enable:!1},error:{action:"noMessage"}});return(n=t==null?void 0:t.data)==null?void 0:n.data},Iae=ke("interest",()=>{const{yuebaoGetSetting:e}=St(Ze()),t=O({}),n=O(!1),o=O(""),a=O(null),r=O(!1),s=O(!1),i=O(!1),c=O(0),l=(p=!1)=>{s.value=p},u=(p=!1)=>{i.value=p},d=async(p,y=!0)=>{var L;const{useFastLogin:b}=J();if(!b||!ma())return;y&&(r.value=!0),p===0&&await z.setCacheExpired(E0);const[v,A]=await Ee(wae(p!==1));return a.value=v,r.value=!1,v?!1:(o.value=(L=A==null?void 0:A.ruleText)!=null?L:"",t.value=A,!!(A!=null&&A.switchStatus))},m=async()=>{var v,A,L,T,S;const{useFastLogin:p}=J();if(p)return;s.value=!0;const[y,b]=await Ee(Cae());s.value=!1,a.value=y,!y&&(o.value=(v=b==null?void 0:b.ruleText)!=null?v:"",t.value={yearRate:(b==null?void 0:b.yearRate)&&Number(b.yearRate)||0,interestTop:(A=b==null?void 0:b.interestTop)!=null?A:0,isPop:(L=b==null?void 0:b.isPop)!=null?L:0,ruleText:(T=b==null?void 0:b.ruleText)!=null?T:"",ruleTextData:(S=b==null?void 0:b.ruleTextData)!=null?S:""})},g=(p=!1)=>{n.value=p},f=C(()=>t.value),_=C(()=>{var S,I,R;const{useFastLogin:p,userInfos:y}=J(),{eventsAuthData:b}=On();let v=!0;const L=p?(I=(S=y==null?void 0:y.member_level)==null?void 0:S.toString())!=null?I:"":String(1),T=y==null?void 0:y.currency;
104if(b!=null&&b.yueBaoConfig&&T){const{yueBaoConfig:D}=b;(R=Object.keys(D))==null||R.forEach(M=>{var B,E;if(M===T){const Y=(B=D[M])==null?void 0:B.userLevels;v=Y===sI.All?!1:!((E=Y.split(","))!=null?E:[]).includes(L)}})}return v}),h=p=>{c.value=p};return fe(()=>e.value,(p,y)=>{if(p){const b=t.value.yearRate;(b===void 0||y&&b===+y.yearRate)&&(t.value.yearRate=+p.yearRate);const v=t.value.isPop;(v===void 0||y&&v===+y.isPop)&&(t.value.isPop=p.isPop)}}),{resData:t,isUpdateProfixData:n,ruleText:o,axiosError:a,transferInLoadingStatus:s,transferOutLoadingStatus:i,cocosGameGold:c,isInterestLoading:r,request:d,requestInterestSwitch:m,setTransferInLoadingStatus:l,setTransferOutLoadingStatus:u,updateProfixData:g,setCocosGameGold:h,getInterestData:f,getInterestSwitchIsHide:_}}),Aae="_animateDialog_1lx33_133",Lae="_modal_1lx33_142",Tae={"recharge-fund":"_recharge-fund_1lx33_91",animateDialog:Aae,modal:Lae};C(()=>{const{t:e}=we();return[{label:e("lobby.center.components.dateRadio.today"),value:uo.TODAY},{label:e("lobby.center.components.dateRadio.yesterday"),value:uo.YESTERDAY},{label:e("lobby.center.components.dateRadio.thisWeek"),value:uo.THIS_WEEK},{label:e("lobby.center.components.dateRadio.lastWeek"),value:uo.LAST_WEEK},{label:e("lobby.center.components.dateRadio.thisMonth"),value:uo.THIS_MONTH},{label:e("lobby.center.components.dateRadio.lastMonth"),value:uo.LAST_MONTH},{label:e("lobby.center.components.dateRadio.all"),value:uo.ALL}]});const zC=(e=0,t)=>{const n=ia(e,t);return e?n:0},Yge=(e=0,t=0)=>{const{t:n}=we();return e&&t?n("lobby.cpf.maxLimitText1",{num1:String(e),num2:` ${zC(t,0)}`}):e?n("lobby.cpf.maxLimitText2",{num:String(e)}):t?n("lobby.cpf.maxLimitText3",{num:` ${zC(t,0)}`}):n("lobby.cpf.maxLimitText4")},Rae=()=>{var t,n;const{siteInfos:e}=ue();return{startTime:Ye.utc().utcOffset((t=e==null?void 0:e.timeZone)!=null?t:"").startOf("day").unix(),endTime:Ye.utc().utcOffset((n=e==null?void 0:e.timeZone)!=null?n:"").endOf("day").unix()}},qge=async e=>{const t=await yr.showDialog({className:Tae.animateDialog,message:()=>kn(Ve,{src:"/lobby_asset/common/web/animated/apng_lingqu_2.png",width:"100%",canvasMode:{numPlays:1,onEnd:()=>{yr.closeDialog(t==null?void 0:t.instance)}},onLoad:({type:n})=>{n===zt.Error&&yr.closeDialog(t==null?void 0:t.instance)}}),closeOnClickOverlay:!1,showCloseButton:!1,showConfirmButton:!1})},jC={totalRecharge:0,rechargeList:[],rechargeSetting:void 0,currentPeriodReward:void 0,isRefresh:!1,listError:null,settingError:null,rewardError:null},U0=ke("rechargeFund",()=>{const e=On(),{startTime:t,endTime:n}=Rae(),o=O(Fn(jC)),a=C(()=>{var _;return((_=o.value.currentPeriodReward)==null?void 0:_.fund_amount)||0}),r=C(()=>{const{currentPeriodReward:_}=o.value;return _==null?void 0:_.show_join_again}),s=_=>{o.value=Pe(o.value,_)},i=()=>{o.value=Fn(jC)},c=C(()=>o.value.listError||o.value.settingError||o.value.rewardError),l=async _=>{const{useFastLogin:h,isTryMode:p}=J();if(!h||p)return{data:[],total:0};const[y,b]=await Ee(Rq(_));return o.value.listError=y,y?(o.value.rechargeList=[],o.value.totalRecharge=0,{err:y,data:[],total:0}):(o.value.rechargeList=b.list,o.value.totalRecharge=b.current_query_total_recharge,{data:b.list,total:b.total_count})},u=async()=>{if(!ma())return;const[_,h]=await Ee(Oq());o.value.settingError=_,!_&&(o.value.rechargeSetting=h)},d=async()=>{const{useFastLogin:_,isTryMode:h}=J();if(!_||h||!e.isShowRechargeFund)return;const[p,y]=await Ee(Pq());o.value.rewardError=p,!p&&(o.value.currentPeriodReward=y)};return{rechargeFundInfo:o,canJoinAgain:r,rechargeFundAmound:a,isError:c,getRechargeList:l,getRechargeSetting:u,getCurrentPeriodReward:d,initRecharge:()=>{u(),J().hasLogined&&d()},updateData:async _=>{o.value.isRefresh=!0,_||(_={current:1,size:20,query_start_time:t,query_end_time:n}),await z.setCacheExpired([pR,hR,Sg]),await Promise.all([d(),u(),l(_)]),o.value.isRefresh=!1},updateTamp:async()=>{await z.setCacheExpired(Sg),d()},updateRechargeFundInfo:s,resetRechargeFundInfo:i}},{persist:{paths:["rechargeFundInfo"]}}),Oae=Object.freeze(Object.defineProperty({__proto__:null,useRechargeFundStore:U0},Symbol.toStringTag,{value:"Module"}));function Pae(e=!1){const t=On(),n=Ze(),o=Iae(),a=U0(),r=C(()=>{var l;return t.getRedDotStatus(co.YUEBAO)&&(o.resData.yearRate||((l=n.yuebaoGetSetting)==null?void 0:l.yearRate))||0}),s=C(()=>{var g,f;if(!t.getRedDotStatus(co.YUEBAO))return 0;const l=n.yuebaoGetSetting,u=(g=o.resData.isPop)!=null?g:l==null?void 0:l.isPop,d=r.value&&u?`${vu(r.value)}%`:0,m=((f=t.discountRedDot)==null?void 0:f.yueBaoCount)||0;return m>0?m:d}),i=C(()=>{const u=Number(s.value)===1||!Number.isInteger(s.value)?Uh.WHITE:Uh.YELLOW,d=Number.isInteger(s.value)?"":Ui.AWARD;return{mode:u,backgroundColor:d,designBgMode:d===Ui.AWARD?"green":void 0}}),c=C(()=>{var m,g;if(!t.getRedDotStatus(co.RECHARGE_FUND))return 0;const l=((m=t.discountRedDot)==null?void 0:m.rechargeFundCount)||0,u=a.rechargeFundAmound;if(u&&u>0&&[M_.Ing,M_.CanReceive].includes((g=a.rechargeFundInfo.currentPeriodReward)==null?void 0:g.status))return vu(u);const d=t.rechargeFundRate;return d!==void 0?`${vu(d||0)}%`:l});return{interstYearRate:r,interstBadge:s,interstBadgeColor:i,rechargeFundBadge:c}}const Dae=()=>{const{isTemporaryAccountMode:e,isGuestAccount:t}=St(J()),{openLoginRegister:n}=sn(),o=Oe(),a=s=>t.value?(n({register:!0,...e.value?{skipTemporary:!0,skipGuide:!0}:{}}),!1):(s(),!0);return{guardFeedbackEntry:a,openFeedback:()=>a(()=>{o.push({name:k.NOTICE,query:{noticeType:`${Fi.FEEDBACK}`}})})}};var km=(e=>(e.slashOnce="slashOnce",e.cutOnce="cutOnce",e.newCutOnce="newCutOnce",e.taskNewBenefits="taskNewBenefits",e.taskDaily="taskDaily",e.taskWeekly="taskWeekly",e.taskMystery="taskMystery",e.taskSeries="taskSeries",e.canReceive="canReceive",e.firstCharge="firstCharge",e.eventSign="eventSign",e.unlogin="unlogin",e.findUs="findUs",e.
104noBackgroundPopup="noBackgroundPopup",e.creditLoan="creditLoan",e.mallExchange="mallExchange",e.blindBoxLottery="blindBoxLottery",e))(km||{}),N_=(e=>(e.Mail="1",e.Domain="2",e.Download="3",e))(N_||{}),Ds=(e=>(e[e.EveryLogin=1]="EveryLogin",e[e.EveryDayOnce=2]="EveryDayOnce",e[e.EveryBackHome=3]="EveryBackHome",e[e.OnlyOnce=4]="OnlyOnce",e))(Ds||{});const Mae=rt(()=>V(()=>Promise.resolve().then(()=>l$),void 0),e=>e.judgePopOpenByConfig,"judgePopOpenByConfig");function Nae(){const e=cn("findUs"),t=Oe(),n=Ze(),o=J(),a=Qe(),r=Ut(),s=C(()=>{var L;return(L=n.brandLogoInfos)==null?void 0:L.findUs}),i=()=>{var L;return((L=s.value)==null?void 0:L.isForceSave)===1},c=()=>!i()||!o.isLogined||a.isIos,l=()=>{var L;return((L=s.value)==null?void 0:L.isPop)===1&&d()&&!fn.isActivated},u=()=>{var S,I;return(((I=(S=s.value)==null?void 0:S.showType)==null?void 0:I.split(","))||[]).map(R=>{var D,M,B,E,Y,H,F;return R===N_.Download?!(r!=null&&r.isHiddenAppEnter)&&ad(A.value).downloadMiddleList.value.length>0:R===N_.Domain?[(D=s.value)==null?void 0:D.topText,(M=s.value)==null?void 0:M.domainText,(B=s.value)==null?void 0:B.backDomain,(E=s.value)==null?void 0:E.downDomain].some(Q=>!!Q):[(Y=s.value)==null?void 0:Y.topText,(H=s.value)==null?void 0:H.emailText,(F=s.value)==null?void 0:F.backEmail].some(Q=>!!Q)}).some(Boolean)},d=()=>{var L;return fn.isActivated||((L=s.value)==null?void 0:L.isEntry)!==1?!1:u()},m=()=>{var L;return((L=s.value)==null?void 0:L.popType)===1},g=()=>{var L,T,S,I;if(((L=s.value)==null?void 0:L.popType)===Ds.EveryDayOnce)return Uo.onceDay;if(((T=s.value)==null?void 0:T.popType)===Ds.EveryBackHome)return Uo.constantly;if(((S=s.value)==null?void 0:S.popType)===Ds.OnlyOnce)return Uo.onceForever;if(((I=s.value)==null?void 0:I.popType)===Ds.EveryLogin&&o.isLogined)return Uo.everyLogining},f=()=>({afterLoginPopType:g(),beforeLoginPopType:g(),...s.value}),_=()=>{var S,I;const L=((S=qe.localStorage.get("findUs"))==null?void 0:S.savedUserList)||[],T=String(((I=J().userInfos)==null?void 0:I.username)||"unlogin");return L.includes(T)},h=async L=>{var D;if(!g()||!u())return!1;const T=await bR();if(((D=s.value)==null?void 0:D.isPop)!=1||s.value.isEntry===0||i()&&_())return!1;const S=T.getUserChecked(km.findUs,"today"),I=T.getUserChecked(km.findUs,"never");if(S||I)return!1;const R=g();return L||R===Uo.everyLogining?R===Uo.everyLogining?v():!1:await Mae(km.findUs,L,f())},p=()=>{var L,T;return c()&&((L=s.value)==null?void 0:L.isPopDismiss)===1&&[Ds.EveryLogin,Ds.EveryBackHome].includes((T=s.value)==null?void 0:T.popType)&&l()},y=async L=>{var T;await e.openDialog("findUs",{openType:(T=L==null?void 0:L.openType)!=null?T:"overlay",options:{isShowCloseBtn:!0,isHideBottomCheck:!0,...L==null?void 0:L.options}})},b=()=>{var S,I;const L=((S=qe.localStorage.get("findUs"))==null?void 0:S.savedUserList)||[],T=String(((I=J().userInfos)==null?void 0:I.username)||"unlogin");L.includes(T)||L.push(T),qe.localStorage.set("findUs",{savedUserList:L})},v=()=>{var S;const L=Ln.get("recentlyLoggedIn"),T=((S=s.value)==null?void 0:S.popType)===Ds.EveryLogin&&!!L;return L&&[k.GAME,k.HOME].includes(t.route.name)&&Ln.set("recentlyLoggedIn",!1),T},A=C(()=>{const L=a.isIos||a.isMacos,{androidInstallType:T="",iosInstallType:S=""}=s.value||{},I={1:Se.Speed,2:Se.Normal,3:Se.Quick,4:Se.Vest},R={1:Se.PWA,2:Se.Speed,3:Se.Normal};let D=[];return L?D=S.split(",").map(M=>I[M]).filter(Boolean):D=T.split(",").map(M=>R[M]).filter(Boolean),D.join(",")});return{findUsConfig:s,hasOpenForceSave:i,autoShowFindUsPop:l,showEntryBtn:d,showAfterLogin:m,isShowNoPopToday:p,isShowCloseIcon:c,openFindUs:y,judgePopOpenByData:h,saveAction:b,hasLogindedInHomePage:v,transformInstallType:A}}const KC=(e,t)=>{const n=e.indexOf(t);return n===-1?t:n},kae=(e,t)=>{const n=new Set,o=e.map(a=>{n.add(a.key);const r=t.find(s=>s.key===a.key);return r!=null&&r.key?{...a,...r}:a});return t.forEach(a=>{n.has(a.key)||o.push(a)}),o},QC=e=>e.reduce((t,n)=>(t[n.key]=n,t),{}),XC=e=>e.includes("png")||e.includes("gif"),om={[Be.NORMAL]:"/lobby_asset/{layout}-{bg}-common/web/common/icon_btm_fhdb1",[Be.THEME_60]:"/lobby_asset/{layout}-{bg}-common/web/common/icon_btm_fhdb",[Be.THEME_72]:"/lobby_asset/{layout}-{bg}-common/web/common/icon_btm_fhdb",[Be.CROWN_GOLD]:"/lobby_asset/{layout}-{bg}-{skin}/common/_sprite/icon_btm_fhdb1.png",[Be.THEME_11]:"/lobby_asset/{layout}-{bg}-common/common/_sprite/icon_btm_fhdb1.png",[Be.THEME_102]:"/lobby_asset/{layout}-{bg}-{skin}/common/_sprite/icon_btm_fhdb1.png",[Be.THEME_136]:"/lobby_asset/{layout}-{bg}-common/web/_sprite/icon_btm_top1.png",[Be.THEME_138]:"/lobby_asset/{layout}-{bg}-{skin}/common/_sprite/icon_btm_zd1.png"},Bae=()=>{const e=On(),{t}=we(),n=C(()=>{var s,i,c,l,u,d,m,g,f,_;return[{label:t("lobby.plan.middle.menu.active"),routeName:[k.EVENT],redDot:(s=e.discountRedDot)==null?void 0:s.activeCount,display:e.isShowEvents,sort:Ko.Active},{label:t("lobby.plan.middle.menu.task"),routeName:[k.TASK],redDot:(i=e.discountRedDot)==null?void 0:i.taskCount,display:e.isShowTask,sort:Ko.Task},{label:t("lobby.plan.middle.menu.backwater"),routeName:[k.CASHBACK],redDot:(c=e.discountRedDot)==null?void 0:c.returnGoldCount,display:e.isShowNormalCashback,sort:Ko.Cashback},{label:t("lobby.plan.middle.menu.backwater"),routeName:[k.CASHBACK],redDot:(l=e.discountRedDot)==null?void 0:l.returnGoldCount,display:e.isShowClubCashback,sort:Ko.ClubCashback},{label:t("lobby.plan.middle.menu.Interest"),routeName:[k.INTEREST],redDot:(u=e.discountRedDot)==null?void 0:u.yueBaoCount,display:e.isShowInterest,sort:Ko.Interest},{label:t("lobby.plan.middle.menu.vip"),routeName:[k.VIP],redDot:(d=e.discountRedDot)==null?void 0:d.vipCount,display:e.isShowVip,sort:Ko.Vip},{label:t("lobby.plan.middle.menu.waitingCollect"),routeName:[k.CANRECEIVE],redDot:(m=e.discountRedDot)==null?void 0:m.receiveLogC
104ount,display:!0,sort:Ko.CanReceive},{label:t("lobby.game.nav.receiveRecord"),routeName:[k.RECORDS],redDot:0,display:!0,sort:Ko.Records},{label:e.rechargeFundCustomName||t("lobby.plan.middle.menu.rechargeFund"),routeName:[k.RECHARGE_FUND],redDot:(g=e.discountRedDot)==null?void 0:g.rechargeFundCount,display:e.isShowRechargeFund,sort:Ko.RechargeFund},{label:t("lobby.system.creditLoan"),routeName:[k.CREDITLOAN],display:e.isShowCreditLoan,sort:Ko.CreditLoan},{label:t("lobby.event.luckyWheel.title"),routeName:[k.LUCKY_WHELL],redDot:(f=e.discountRedDot)==null?void 0:f.turntableRedDot,display:e.isShowLuckyWheel,sort:Ko.LuckyWheel},{label:t("lobby.svip.title"),routeName:[k.SVIP],redDot:(_=e.discountRedDot)==null?void 0:_.svipCount,display:e.isShowSVIP,sort:Ko.SVIP}]}),o=C(()=>{const s=e.eventsAuthInfos.activePageSort,i=n.value.filter(l=>l.display);if(!s)return i;const c=s.split(",").map(Number);return i.sort((l,u)=>KC(c,l.sort)-KC(c,u.sort))}),a=C(()=>o.value.map(s=>s.routeName[0])),r=C(()=>a.value[0]||k.EVENT);return{discountTabs:n,promoteBar:o,discountRoutes:a,firstDiscountRoute:r}},Hae=rt(()=>V(()=>import("./0_EntryLoginRegisterChunk.DMUz1wnE.js").then(e=>e.gY),__vite__mapDeps([0])),e=>e.useSocialmediaShare,"useSocialmediaShare"),We=(e,t=`btm_${e}`)=>LU(`/lobby_asset/{layout}-{bg}-{skin}/common/_sprite/icon_btm_${e}.png`,`/lobby_asset/{layout}-{bg}-common/web/common/icon_${t}`),G0=()=>{const{badgeValue:e,badgeBgColor:t}=k0(),n=Ze(),o=Oe(),a=On(),{hasLogined:r,temporaryAccountStatus:s}=DR(),i=Ku(),{customizeBottomIconMap:c}=cd.useHomeCustomizeIcon(),{t:l}=we(),{openLoginRegister:u}=sn(),{openFeedback:d}=Dae(),{navigateToServicePage:m,isServiceHidden:g}=Wb(),f=Do(),_=Qb(),h=Nae(),p=ac("Lv1"),y=B0(),{discountRedDot:b,isShowCashback:v,isShowBlindBox:A,isShowVip:L,isShowInterest:T,isShowRechargeFund:S,isShowTask:I,isShowCreditLoan:R,isShowLuckyWheel:D,isShowSVIP:M}=St(a),B=kT(),{performGameCategoryAction:E}=Sf(),Y=on(),{interstBadge:H,interstBadgeColor:F,rechargeFundBadge:Q}=Pae(!0),{firstDiscountRoute:G}=Bae(),N=C(()=>{var Me;const{activeCount:ae=0,taskCount:me=0,yueBaoCount:de=0,vipCount:ne=0,returnGoldCount:U=0,rechargeFundCount:W=0,receiveLogCount:oe=0,svipCount:be=0,turntableRedDot:Ie=0}=(Me=b.value)!=null?Me:{};return ae+me+de+ne+U+W+oe+be+Ie}),$=ae=>{const me=ae===Ce.EVENT?G.value:k.EVENT,de=Pe(o.route.query);delete de.current,o.push({name:me,query:de})},{openMiddleDownloadDialog:X}=ad(),{isHiddenAppEnter:j}=St(Ut()),{unreadMsgCount:te}=St(Wi()),K=async ae=>{await o.replace({name:k.GAME}),E(ae,!1)},q=C(()=>{var ae,me,de,ne,U,W,oe;return[{key:Ce.HOME,routeName:[k.GAME],title:()=>l("lobby.plan.tabbar.home"),customUrl:c.get("homeUnIcon"),customActiveUrl:c.get("homeOnIcon"),icon:We("sy"),activeIcon:We("sy1")},{key:Ce.ROOM_GAME,title:()=>l("lobby.club.roomGame"),icon:We("fjyx"),activeIcon:We("fjyx1"),routeName:[k.ROOM_GAME]},{key:Ce.EVENT,title:()=>l("lobby.plan.tabbar.discount"),icon:We("yh"),activeIcon:We("yh1"),customUrl:c.get("activityUnIcon"),customActiveUrl:c.get("activityOnIcon"),routeName:[k.EVENT,k.TASK,k.INTEREST,k.VIP,k.CASHBACK,k.RECHARGE_FUND,k.CANRECEIVE,k.RECORDS,k.LUCKY_WHELL,k.CREDITLOAN,k.SVIP,k.SEARCH_SUB_GAME],badge:N.value,onClick:()=>$(Ce.EVENT),hidden:!a.isShowDiscount},{key:Ce.ACTIVITY,routeName:[k.EVENT],title:()=>l("lobby.plan.tabbar.event"),customUrl:c.get("activityUnIcon"),customActiveUrl:c.get("activityOnIcon"),icon:We("hd"),activeIcon:We("hd1"),badge:(ae=b.value)==null?void 0:ae.activeCount,onClick:()=>$(Ce.ACTIVITY),hidden:!a.isShowEvents},{key:Ce.TASK,routeName:[k.TASK],title:()=>l("lobby.plan.tabbar.task"),customUrl:c.get("taskUnIcon"),customActiveUrl:c.get("taskOnIcon"),icon:We("rw"),activeIcon:We("rw1"),badge:((me=b.value)==null?void 0:me.taskCount)||0,hidden:!I.value},{key:Ce.BLINDBOX_LOTTERY,title:()=>l("lobby.plan.tabbar.blindBoxLottery"),customUrl:c.get("blindBoxIcon"),icon:"/lobby_asset/{layout}-{bg}-common/web/home/apng_icon_mhcj.png",isApng:!0,activeIcon:"/lobby_asset/{layout}-{bg}-common/web/home/apng_icon_mhcj.png",onClick:()=>R0(),hidden:!A.value},{key:Ce.CREDIT_LOAN,title:()=>l("lobby.system.creditLoan"),routeName:[k.CREDITLOAN],customUrl:c.get("creditLoanUnIcon"),customActiveUrl:c.get("creditLoanOnIcon"),icon:We("xyjk"),activeIcon:We("xyjk1"),hidden:!R.value},{key:Ce.REBATE,routeName:[k.CASHBACK],title:()=>l("lobby.plan.tabbar.backwater"),customUrl:c.get("rebateUnIcon"),customActiveUrl:c.get("rebateOnIcon"),icon:We("fs"),activeIcon:We("fs1"),badge:((de=b.value)==null?void 0:de.returnGoldCount)||0,hidden:!v.value},{key:Ce.ACCOUNT_DETAILS,title:()=>l("lobby.game.nav.accountDetails"),icon:We("zhmx","btm_zhmx1"),shouldLogin:!0,routeName:[k.REPORT],query:{reportCurrent:Hs.ACCOUNT}},{key:Ce.BETTING_RECORD,title:()=>l("lobby.game.nav.bettingRecord"),icon:We("tzjl","btm_tzjl1"),shouldLogin:!0,routeName:[k.REPORT],query:{reportCurrent:Hs.BETTING}},{key:Ce.PERSONAL_STATMENT,title:()=>l("lobby.game.nav.personalStatement"),icon:We("grbb","btm_grbb1"),shouldLogin:!0,routeName:[k.REPORT],query:{reportCurrent:Hs.PERSONAL}},{key:Ce.FEEDBACK,title:()=>l("lobby.header.menus.feedback"),icon:We("yjfk","btm_yjfk1"),onClick:d},{key:Ce.RECEIVERECORD,title:()=>l("lobby.promote.pickUpRecord"),icon:We("lqjl"),activeIcon:We("lqjl1"),hidden:!a.isShowDiscount,routeName:[k.RECORDS]},{key:Ce.AWARD,routeName:[k.CANRECEIVE],title:()=>l("lobby.reward.base.toBeCollected"),hidden:!a.isShowDiscount,badge:(ne=a.discountRedDot)==null?void 0:ne.receiveLogC
104ount,icon:We("jl"),activeIcon:We("jl1")},{key:Ce.LOGIN,title:()=>l("lobby.plan.tabbar.login"),customUrl:c.get("loginIcon"),icon:We("dl"),hidden:r.value,onClick:()=>u({login:!0})},{key:Ce.REGISTER,title:()=>l("lobby.plan.tabbar.register"),customUrl:c.get("registerIcon"),icon:We("zc"),hidden:r.value,onClick:()=>u({register:!0}),badge:e.value||0,badgeProps:{backgroundColor:t,designBgMode:"green"}},{key:Ce.RECHARGE,title:()=>l("lobby.plan.tabbar.recharge"),customUrl:c.get("rechargeIcon"),icon:We("cz"),isLogin:!J().hasLoginedComponent,onClick:()=>of({openType:"overlay",options:{payEntryId:rc.HOME_BOTTOM}}),badge:y.rechargeBadgeCount.value,badgeProps:f.payChargeBadge,hidden:n.isHideRechargeEntry},{key:Ce.WITHDRAW,routeName:[k.WITHDRAW],title:()=>l("lobby.plan.tabbar.withDraw"),customUrl:c.get("withdrawIcon"),icon:We("tx"),isLogin:!0,onClick:()=>$c(),hidden:n.isHideWithdrawEntry},{key:Ce.MINE,routeName:[k.MINE],title:()=>l("lobby.plan.tabbar.mine"),customUrl:c.get("mineUnIcon"),customActiveUrl:c.get("mineOnIcon"),icon:We("wd"),activeIcon:We("wd1"),badge:te.value||0},{key:Ce.VIP,routeName:[k.VIP],title:()=>l("lobby.plan.tabbar.vip"),customUrl:c.get("vipUnIcon"),customActiveUrl:c.get("vipOnIcon"),icon:We("vip"),activeIcon:We("vip1"),hidden:!L.value,isLogin:!0,badge:((U=b.value)==null?void 0:U.vipCount)||0},{key:Ce.SERVICE,title:()=>l("lobby.plan.tabbar.service"),customUrl:c.get("customerIcon"),icon:We("kf"),onClick:m,hidden:g.value},{key:Ce.YUEBAO,title:()=>l("lobby.plan.tabbar.Interest"),routeName:[k.INTEREST],customUrl:c.get("yueBaoUnIcon"),customActiveUrl:c.get("yueBaoOnIcon"),icon:We("yeb"),activeIcon:We("yeb1"),hidden:!T.value,badge:H.value,badgeProps:{...F.value}},{key:Ce.PROMOTE,title:()=>n.isClubSite?l("lobby.promote.shareEarn.agentCenter"):i.isShowAgentShareEarn.value?l("lobby.promote.promoteShare"):l("lobby.system.promoteAgent"),customUrl:c.get("promoteIcon"),badge:a.promoteReward,icon:We("tg"),showTotalNum:!0,badgeProps:{backgroundColor:Ui.AWARD,designBgMode:"green"},hidden:!i.isShowPromote.value,onClick:()=>zL()},{key:Ce.DOWNLOAD,title:()=>l("lobby.plan.tabbar.download"),hidden:!Ke.forceShowAppDownloadEntry&&j.value,customUrl:c.get("appDownloadIcon"),icon:We("app"),onClick:()=>X({forcePop:Ke.forceShowAppDownloadEntry})},{key:Ce.RECHARGE_FUND,routeName:[k.RECHARGE_FUND],title:()=>a.rechargeFundCustomName||l("lobby.plan.tabbar.rechargeFund"),hidden:!S.value,badge:Q.value,badgeProps:{backgroundColor:Ui.AWARD,designBgMode:"green"},icon:We("gjj"),activeIcon:We("gjj1"),showTotalNum:!0},{key:Ce.GAME,title:()=>l("lobby.game.menue"),icon:We("yx"),onClick:()=>{Cr(Z.Electronic)}},{key:Ce.CUT_ONE,title:()=>{var Ie;const be=(Ie=oi().eventsList)==null?void 0:Ie.find(Me=>Me.template===at.SlashOnce);return(be==null?void 0:be.activeName)||l("lobby.plan.tabbar.cutOne")},icon:"/lobby_asset/{layout}-{bg}-common/web/home/apng_icon_kyd_alpha.png",hidden:!O0(),customUrl:c.get("cutKnifeIcon"),isApng:!0,isHiddenText:!0,onClick:()=>P0()},{key:Ce.MATCH_NEWS,title:()=>n.customEventName,hidden:n.isHideMatchNews,customUrl:c.get("eventNewsIcon"),customActiveUrl:c.get("eventNewsIcon"),icon:We("sszx"),activeIcon:We("sszx1"),routeName:[k.MATCH_NEWS]},{key:Ce.SHARE,title:()=>l("lobby.plan.tabbar.share"),icon:We("ljfx"),customUrl:c.get("shareNowIcon"),onClick:async()=>{const{navigatorShare:be,getShareLink:Ie}=await Hae({apiNoErrorMessage:!1}),Me=await Ie();be(Me||window.location.origin,!1)}},{key:Ce.RECENT,title:()=>l("lobby.plan.tabbar.recent"),customUrl:c.get("recentGamesIcon"),icon:We("zj"),activeIcon:We("zj1"),onClick:()=>{K(Z.Recent)}},{key:Ce.COLLECT,title:()=>l("lobby.plan.tabbar.collect"),customUrl:c.get("collectGamesIcon"),icon:We("sc"),activeIcon:We("sc1"),onClick:()=>{K(Z.Collect)}},{key:Ce.TRY_GAME,title:()=>l("lobby.plan.tabbar.tryGame"),customUrl:c.get("freeTrialIcon"),icon:We("sw"),activeIcon:We("sw1"),onClick:()=>{K(Z.Demo)},hidden:J().hasLoginedComponent||!Y.getCategoriesIsOpen(Z.Demo)},{key:Ce.MOMENTS,routeName:[k.PLAZZA],title:()=>B.plazzaTitle,customUrl:c.get("findIcon"),customActiveUrl:c.get("findIcon"),icon:We("fx"),activeIcon:"/lobby_asset/{layout}-{bg}-common/common/_sprite/icon_dt_1fx.png",hidden:!B.isShowPlazza,badge:B.isShowDot?1:0,dot:B.isShowDot},{key:Ce.COUPONS,routeName:[k.COUPON],title:()=>l("lobby.plan.tabbar.coupon"),icon:"/lobby_asset/{layout}-{bg}-common/common/_sprite/icon_btm_zkq.png",hidden:!_.isCouponEntryShow,badge:_.couponBadgeForMine,showTotalNum:!0,badgeProps:{backgroundColor:Ui.AWARD,designBgMode:"green"}},{key:Ce.GOSSIP,title:()=>n.gossipName,icon:n.gossipIcon||"/lobby_asset/{layout}-{bg}-common/common/_sprite/icon_btm_cgw.png",activeIcon:n.gossipIcon||"/lobby_asset/{layout}-{bg}-common/common/_sprite/icon_btm_cgw.png",onClick:()=>{jL()}
104,hidden:!n.isShowGossip},{key:Ce.LUCKYWHEEL,title:()=>l("lobby.plan.tabbar.luckySpin"),icon:"/lobby_asset/{layout}-{bg}-common/web/home/apng_icon_xyzp_alpha.png",routeName:[k.LUCKY_WHELL],isApng:!0,hidden:!D.value,customUrl:c.get("luckyWheelUnIcon"),customActiveUrl:c.get("luckyWheelOnIcon"),badge:((W=b.value)==null?void 0:W.turntableRedDot)||0},{key:Ce.SVIP,title:()=>l("lobby.plan.tabbar.svip"),icon:"/lobby_asset/{layout}-{bg}-common/common/_sprite/icon_btm_jrsvip.png",activeIcon:"/lobby_asset/{layout}-{bg}-common/common/_sprite/icon_btm_jrsvip.png",routeName:[k.SVIP],hidden:!M.value,customUrl:c.get("svipUnIcon"),customActiveUrl:c.get("svipOnIcon"),badge:((oe=b.value)==null?void 0:oe.svipCount)||0},{key:Ce.BETTING_TASK,title:()=>l("lobby.game.nav.audit"),icon:We("jh","tzrw_jh"),onClick:()=>$c(ns.BETTING_TASK),hidden:dt.enable},{key:Ce.ACCOUNT_DETAILS,title:()=>l("lobby.center.report.tabs.accountDetails"),icon:We("zhmx","tzrw_zhmx"),shouldLogin:!0,onClick:()=>o.push({name:k.REPORT,query:{reportCurrent:Hs.ACCOUNT}}),hidden:p.value&&dt.enable},{key:Ce.FINDUS,title:()=>l("lobby.findUs.title"),icon:We("zdwm","tzrw_zdwm"),onClick:()=>h.openFindUs(),hidden:!h.showEntryBtn()},{key:Ce.SECURITY,title:()=>l("lobby.header.menus.security"),icon:We("aqzx","tzrw_aqzx"),onClick:()=>o.push({name:k.SECURITY})},{key:Ce.MALL,title:()=>l("lobby.mall.title"),icon:"/lobby_asset/{layout}-{bg}-common/common/_sprite/icon_btm_yhsc.png",hidden:!a.isShowMall,onClick:()=>{KL()}},{key:Ce.CENTERWALLET,title:()=>l("lobby.finance.center.wallet.title"),icon:We("zhye"),shouldLogin:!0,onClick:()=>o.push({name:k.REPORT,query:{reportCurrent:Hs.CENTER_WALLET}}),hidden:dt.enable},{key:Ce.WITHDRAWMANAGEMENT,title:()=>l("lobby.header.menus.withdrawalManagement"),icon:We("txgl"),hidden:n.isHideWithdrawEntry,shouldLogin:!0,onClick:()=>{$c(ns.ACCOUNT_MANAGEMENT)}},{key:Ce.SETTINGS,title:()=>l("lobby.header.menus.settings"),shouldLogin:!0,icon:We("sz"),onClick:()=>o.push({name:k.SETTING})},{key:Ce.FORBIDDEN_SELF,title:()=>l("lobby.center.forbiddenSelf.title"),shouldLogin:!0,icon:We("zwjz"),onClick:()=>o.push({name:k.FORBIDDEN_SELF})},{key:Ce.CUSTOMERPAY,title:()=>l("lobby.plan.middle.menu.customerPay"),icon:We("kfdc"),badge:f.customerPayBadge,onClick:()=>bae({payKind:_ae.artificial}),badgeProps:{backgroundColor:f.customerPayCharge.customerColor},hidden:!f.customerPayCharge.customerMode||s.value.unLogin||n.isHideRechargeEntry}]});return{discountRedDot:b,discountCount:N,commonTabs:q,onEventClick:$}},F0=()=>{const e=J(),t=ue(),{commonTabs:n}=G0(),o=C(()=>{const{loginBtmItems:r=[],btmItems:s=[]}=t.homeLayoutInfos||{},i=e.hasLoginedComponent?r:s;if((i==null?void 0:i.length)!==5)return!1;const{btmBigIconBefore:c,btmBigIconAfter:l}=t.homeLayoutInfos||{},u=e.hasLoginedComponent?l:c,d=u?Nm==null?void 0:Nm[u.linkUrl]:"";if(!d)return!1;const m=n.value.find(g=>g.key===d);return!!m&&!m.hidden}),a=C(()=>{if(!o.value)return{};const{btmBigIconBefore:r,btmBigIconAfter:s}=t.homeLayoutInfos||{},i=e.hasLoginedComponent?s:r;return i!=null&&i.iconCode?{iconCode:i.iconCode,iconUrl:/^\d+_\d+$/.test(i==null?void 0:i.iconUrl)?`/lobby_asset/common/common/home/btm_fxzq_style${i==null?void 0:i.iconUrl}.gif`:i==null?void 0:i.iconUrl,linkUrl:i.linkUrl}:{}});return{showIconPlus:o,iconPlusConfig:a}},xae=66,Eae=2;function Uae(){const e=Oe(),t=J(),n=Bn(),o=O(0),a=O(""),r=C(()=>{const c=e.route.name;return Ke.isScrollHideTabbar&&!!c&&[k.HOME,k.GAME].includes(c)});Xs("scroll",c=>{var _,h;const l=c.target;if(!l||!((_=l.classList)!=null&&_.contains("lobby-scroll--y"))||!((h=l.closest)!=null&&h.call(l,"#app")))return;const u=l.scrollTop,d=l.scrollHeight-l.clientHeight,m=0,g=o.value,f=u-g;if(u<=m||u>=d){o.value=u;return}f<-2&&(a.value="up"),!(l.scrollHeight-document.body.clientHeight<=xae)&&(f>Eae&&(a.value="down"),o.value=u)},{capture:!0,passive:!0});const i=C(()=>r.value&&a.value==="down");return fe(()=>[t.hasLogined,t.isTemporaryAccountMode,n.path],()=>{a.value="up"}),{fullScreen:i,scrollDirection:a,openScrollWatching:r}}const Gae=300;class Fae{constructor(){x(this,"isPageVisible",O(da?document.visibilityState==="visible":!0));x(this,"visiblePopupCount",O(0));x(this,"hasPopupOpen",C(()=>this.visiblePopupCount.value>0));x(this,"isPageActive",C(()=>this.isPageVisible.value&&!this.hasPopupOpen.value));x(this,"inited",!1);x(this,"rawPopupCount",0);x(this,"closeBufferTimer",null);x(this,"onVisibilityChange",()=>{da&&(this.isPageVisible.value=document.visibilityState==="visible")});x(this,"onBaseUiDialogOpen",()=>{this.closeBufferTimer&&(clearTimeout(this.closeBufferTimer),this.closeBufferTimer=null),this.rawPopupCount+=1,this.visiblePopupCount.value=this.rawPopupCount});x(this,"onBaseUiDialogClose",()=>{if(this.rawPopupCount=Math.max(0,this.rawPopupCount-1),this.rawPopupCount>0){this.visiblePopupCount.value=this.rawPopupCount;return}this.closeBufferTimer||(this.closeBufferTimer=setTimeout(()=>{this.closeBufferTimer=null,this.visiblePopupCount.value=this.rawPopupCount},Gae))});x(this,"init",()=>{!da||this.inited||(this.inited=!0,this.isPageVisible.value=document.visibilityState==="visible",this.rawPopupCount=0,this.visiblePopupCount.value=0,document.addEventListener("visibilitychange",this.onVisibilityChange),ve("BASE_UI_DIALOG_OPEN",this.onBaseUiDialogOpen),ve("BASE_UI_DIALOG_CLOSE",this.onBaseUiDialogClose))})}}const am=new Fae;function Wae(){return am.init(),{isPageVisible:am.isPageVisible,hasPopupOpen:am.hasPopupOpen,isPageActive:am.isPageActive}}const Vae=()=>va.stopRechargeDecorativeImages(Ze().financeSetting);var $ae=(e=>(e[e.Category=1]="Category",e[e.SubCategory=2]="SubCategory",e[e.Channel=3]="Channel",e[e.SmartMergeChannel=4]="SmartMergeChannel",e))($ae||{}),Yae=(e=>(e[e.Online=100]="Online",e[e.Transfer=200]="Transfer",e[e.Crypto=300]="Crypto",e[e.Artificial=400]="Artificial",e[e.Merchant=500]="Merchant",e[e.WithdrawToRecharge=700]="WithdrawToRecharge",e[e.EWallet=800]="EWallet",e))(Yae||{}),qae=(e=>(e[e.Frontend=1]="Frontend",e[e.Backend=2]="Backend",e[e.Challenge=3]="Challenge",e))(qae||{}),zae=(e=>(e[e.NextStep=0]="NextStep",e[e.Download=1]="Download",e[e.EnterWallet=2]="EnterWallet",e[e.SendSmsCode=3]="SendSmsCode",e))(zae||{}),jae=(e=>(e[e.NORMAL=1]="NORMAL",e[e.QR_CODE=2]="QR_CODE",e))(jae||{}),Kae=(e=>(e[e.RECOMMEND=1]="RECOMMEND",e))(Kae||{}),Qae=(e=>(e[e.BOTTOM=0]="BOTTOM",e[e.PULL=1]="PULL",e[e.NORMAL=2]="NORMAL",e[e.MINI=3]="MINI",e))(Qae||{}),Xae=(e=>(e[e.ACTIVITY=0]="ACTIVITY",e[e.MULTIPLE=1]="MULTIPLE",e))(Xae||{}),Zae=(e=>(e[e.GAP=-2]="GAP",e[e.NO_PARTICIPATED=-1]="NO_PARTICIPATED",e[e.PARTICIPATED=1]="PARTICIPATED",e[e.OPTION=2]="OPTION",e[e.AUTO_OPTION=3]="AUTO_OPTION",e[e.PARTICIPATED_AUTO_OPTION=4]="PARTICIPATED_AUTO_OPTION",e))(Zae||{}),Jae=(e=>(e[e.ENABLED=1]="ENABLED",e[e.DISABLED=0]="DISABLED",e[e.MULTIPLE_OF_ONE=2]="MULTIPLE_OF_ONE",e[e.MULTIPLE_OF_TEN=3]="MULTIPLE_OF_TEN",e[e.MULTIPLE_OF_HUNDRED=4]="MULTIPLE_OF_HUNDRED",e))(Jae||{}),ere=(e=>(e[e.ID=12]="ID",e[e.RUT=13]="RUT",e[e.PASSPORT=14]="PASSPORT",e))(ere||{}),tre=(e=>(e[e.RechargeCurrency=0]="RechargeCurrency",e[e.AddPointsMode=1]="AddPointsMode",e))(tre||{}),nre=(e=>(e.LEFT="0",e.CENTER="1",e.RIGHT="2",e.TOP="3",e.BOTTOM="4",e))(nre||{}),ore=(e=>(e[e.Paid=1]="Paid",e[e.Unpaid=2]="Unpaid",e))(ore||{}),Bm=(e=>(e.SHOW_REWARD_PANEL="1",e.SHOW_RECOMMEND_REWARD="2",e.SHOW_INPUT_REWARD="3",e))(Bm||{}),W0=(e=>(e[e.TWO=2]="TWO",e[e.THREE=3]="THREE",e[e.FOUR=4]="FOUR",e))(W0||{}),are=(e=>(e.ACTIVITY="101",e.MEMBER="102",e.HOME="103",e.GAME="104",e.FINANCE="105",e.CLUB="106",e))(are||{}),rre=(e=>(e.DEFAULT="000",e.ACTIVITY="001",e.TASK="002",e.LUCKY_WHEEL="003",e.MYSTERY_BOX_LOTTERY="004",e.REAL_TIME_REBATE="005",e.INTEREST_TREASURE="006",e.VIP_REWARD="00
1047",e.FINANCIAL_SVIP="008",e.PROVIDENT_FUND="009",e.DISCOUNT_COUPON="010",e.UNEXPECTED_SURPRISE="011",e.CREDIT_LOAN="012",e.MALL="013",e.FLOATING_QUICK_ENTRY="014",e.CLAIM_LIMIT_POPUP="015",e.REGISTER_SUCCESS_POPUP="001",e.TEMP_ACCOUNT_UPGRADE_POPUP="002",e.SMART_GUIDE_DEPOSIT_POPUP="003",e.HOME_TOP="001",e.HOME_MIDDLE="002",e.HOME_BOTTOM="003",e.HOME_SIDEBAR="004",e.MY_PAGE="005",e.MULTI_WALLET_DROPDOWN="006",e.BANNER="007",e.MARKETING_AD="008",e.MARQUEE_LOGO="009",e.MESSAGE_POPUP="010",e.FOOTER="011",e.SELF_OPERATED_GAME_ENTRY="001",e.THIRD_PARTY_GAME_ENTRY="002",e.BETTING_TASK="001",e.CLUB_LEADER_MANAGEMENT="001",e))(rre||{});function sre(){const e=Ze(),t=C(()=>{var m,g;return((g=(m=e.financeSetting)==null?void 0:m.rechargeBtnStyle)==null?void 0:g.styleType)===eo.CLOSE}),n=C(()=>{var m,g;return t.value||((g=(m=e.financeSetting)==null?void 0:m.rechargeBtnStyle)==null?void 0:g.disEnableScrollBottom)}),o=C(()=>{var m,g;return(g=(m=e.financeSetting)==null?void 0:m.defaultCategoryRowNum)!=null?g:W0.TWO}),a=C(()=>{var m;return((m=e.financeSetting)==null?void 0:m.categoryExpandMode)===eo.OPEN}),r=C(()=>{var m;return((m=e.financeSetting)==null?void 0:m.channelExpandMode)===eo.OPEN}),s=C(()=>{var m;return((m=e.financeSetting)==null?void 0:m.recommendAmountPosition)===eo.OPEN}),i=C(()=>{var m;return((m=e.financeSetting)==null?void 0:m.tipsShowPosition)===eo.OPEN}),c=C(()=>{var g,f;return((f=(g=e.financeSetting)==null?void 0:g.payRewardDisplaySwitch)!=null?f:"").split(",").filter(Boolean)}),l=C(()=>c.value.includes(Bm.SHOW_REWARD_PANEL)),u=C(()=>c.value.includes(Bm.SHOW_RECOMMEND_REWARD)),d=C(()=>c.value.includes(Bm.SHOW_INPUT_REWARD));return{isStickyBottom:t,disEnableScrollBottom:n,defaultCategoryRowNum:o,isCategoryExpand:a,isChannelExpand:r,isRecommendAmountAbove:s,isTipsAboveInput:i,payRewardDisplaySwitch:c,showRewardPanel:l,showRecommendReward:u,showInputReward:d}}function ire(){const e=J(),{visible:t}=cn("recharge"),n=On(),{showRewardPanel:o}=sre(),a=Ze();let r=0,s=[];const i=()=>{r++;for(const l of s)l.cancel();s=[]};fe(()=>[e.uid,e.hasLogined],i,{flush:"sync"}),fe(()=>!!t.value,i,{flush:"sync"});const c=ve("LOGIN_SUCCESS",({userInfos:l})=>{i();const u=l==null?void 0:l.account_type;if(u!==qt.Normal&&u!==qt.Temporary)return;const d=r,m=e.uid,g=()=>d===r&&e.hasLogined&&e.uid===m,f=(A,L,T)=>{g()&&s.push(Fa.schedule(()=>{if(g())return T()},{priority:L,label:A}))};let _;const h=async()=>(_!=null||(_=V(()=>import("./0_EntryLoginRegisterChunk.DMUz1wnE.js").then(A=>A.gO),__vite__mapDeps([0]))),(await _).useFinanceSettingStore());let p,y;const b=()=>{var T,S;if(!n.isShowDiscount||!(p!=null&&p.initial)||!y)return;const A=o.value&&(((T=p.eventRechargeDataList)==null?void 0:T.some(I=>{var R;return(R=I.canGiveList)==null?void 0:R.length}))||((S=p.autoEventRechargeDataList)==null?void 0:S.some(I=>{var R;return(R=I.canGiveList)==null?void 0:R.length}))),L=y.isCouponEntryShow&&y.couponListDataLength>0;if(A&&L)return"CombinedRewardAndCouponIndex";if(A)return"RechargeRewardIndex";if(L)return"CouponIndex"},v=async()=>{var D;if(t.value||!b())return;const A=await h(),L=()=>g()&&!t.value&&!A.isRechargeSimple;if(!L()||!b())return;const[T,{preloadRechargeRewardImages:S}]=await Promise.all([V(()=>import("./0_RechargeLegacyChunk.2wHYgfDJ.js").then(M=>M.r),__vite__mapDeps([0,1,49])),V(()=>import("./0_RechargeLegacyChunk.2wHYgfDJ.js").then(M=>M.d),__vite__mapDeps([0,1,49]))]),I=b();if(!L()||!I)return;const R=I==="CombinedRewardAndCouponIndex"?[T.CombinedRewardAndCouponIndex,T.RechargeRewardIndex,T.CouponIndex]:[T[I]];return Promise.all([S({hasReward:I!=="CouponIndex",hasCoupon:I!=="RechargeRewardIndex",couponStyle:y==null?void 0:y.style,menuStyle:(D=a.financeSetting)==null?void 0:D.payRewardMenuStyle}),...R.map(M=>M.preload())])};f($o.RechargeDataPreload,"high",async()=>{const A=await h();for(;g();){const L=A.isRechargeSimple,T=!!A.paymentMode,S=()=>L!==A.isRechargeSimple||T!==!!A.paymentMode;
104if(L){const{useRechargeSimpleStore:I}=await V(async()=>{const{useRechargeSimpleStore:R}=await import("./0_RechargeSimpleDialogChunk.BnH4UIg7.js").then(D=>D.m);return{useRechargeSimpleStore:R}},__vite__mapDeps([0,1,23,50]));if(!g())return;if(S())continue;await I().prefetch()}else if(T){const{useRechargeMianStore:I}=await V(async()=>{const{useRechargeMianStore:R}=await import("./0_RechargeCommonChunk.DDWWiKeW.js").then(D=>D.bH);return{useRechargeMianStore:R}},__vite__mapDeps([0,1]));if(!g())return;if(S())continue;I().getRechargeType(0,{silent:!0,preloadGift:!0})}else{const{useRechargeStore:I}=await V(async()=>{const{useRechargeStore:R}=await import("./0_RechargeCommonChunk.DDWWiKeW.js").then(D=>D.bG);return{useRechargeStore:R}},__vite__mapDeps([0,1]));if(!g())return;if(S())continue;await I().getRechargeCategory(void 0,!0)}break}}),f($o.RechargeActivityPreload,"low",async()=>{const A=await h();if(!g()||A.isRechargeSimple)return;const{useEventRechargeStore:L}=await V(async()=>{const{useEventRechargeStore:S}=await import("./0_EntryLoginRegisterChunk.DMUz1wnE.js").then(I=>I.gS);return{useEventRechargeStore:S}},__vite__mapDeps([0]));if(!g()||A.isRechargeSimple)return;const T=L();if(await T.initDataList(),!(!g()||A.isRechargeSimple))return p=T,v()}),f($o.RechargeCouponPreload,"low",async()=>{const A=await h();if(!g()||A.isRechargeSimple)return;const{useCouponStore:L}=await V(async()=>{const{useCouponStore:S}=await Promise.resolve().then(()=>A$);return{useCouponStore:S}},void 0);if(!g()||A.isRechargeSimple)return;const T=L();if(await T.initDataList(),!(!g()||A.isRechargeSimple))return y=T,v()}),Vae()||f($o.RechargeImagesPreload,"low",async()=>{const A=await h();if(!g()||A.isRechargeSimple)return;const{preloadRechargeImages:L}=await V(async()=>{const{preloadRechargeImages:T}=await import("./0_RechargeLegacyChunk.2wHYgfDJ.js").then(S=>S.p);return{preloadRechargeImages:T}},__vite__mapDeps([0,1,49]));if(g()&&!A.isRechargeSimple)return L(["/lobby_asset/common/common/deposit/img_jlqp_cw.png","/lobby_asset/common/common/deposit/img_czjl_mccz.png","/lobby_asset/common/common/deposit/img_czjl_xs.png","/lobby_asset/common/common/deposit/img_czjl_bcy.png","/lobby_asset/common/common/deposit/img_czjl_zh.png","/lobby_asset/common/web/common/comm_icon_sort.svg","/lobby_asset/common/web/common/comm_icon_tc_gant.svg","/lobby_asset/common/web/deposit/img_cz_czyh_bg01.svg","/lobby_asset/common/web/deposit/comm_icon_cz_kf.svg","/lobby_asset/common/web/deposit/comm_icon_cz_jl.svg","/lobby_asset/common/web/deposit/icon_cz_zxcz1.svg","/lobby_asset/common/web/deposit/icon_cz_zz.svg","/lobby_asset/common/web/deposit/icon_cz_xnhb.svg","/lobby_asset/common/web/deposit/icon_cz_rgcz.svg","/lobby_asset/common/web/deposit/icon_cz_ys.svg"])})});Kn(()=>{c.off(),i()})}const ZC=["pages-login-register","pages-security","pages-dialogs-login-register-upgrade-guide","pages-game-embedded","pages-setting","forbiddenSelf","pages-event-item-entry","pages-club-add-member","pages-club-update-member","pages-club-bill-detail","pages-club-withdraw-account-setting"],[cre]=_e("base-transition"),lre=le({name:cre,props:{mode:{type:String,validator:function(e){return["Base","Push","Pop"].includes(e)}},onBeforeEnter:{type:Function},onAfterEnter:{type:Function},onBeforeLeave:{type:Function},onAfterLeave:{type:Function}},setup(e,{slots:t}){const n=lf(),o=C(()=>({None:"",Base:wu.WithoutNormalFlow.Page.Fade,Push:wu.WithoutNormalFlow.Page.Push,Pop:wu.WithoutNormalFlow.Page.Pop})[e.mode||n.currentRouterViewTransitionMode]);return()=>w(G_,{onBeforeEnter:e.onBeforeEnter,onBeforeLeave:e.onBeforeLeave,onAfterLeave:e.onAfterLeave,onAfterEnter:e.onAfterEnter,name:o.value,css:!!o.value},{default:()=>{var a;return[(a=t.default)==null?void 0:a.call(t)]}})}}),JC={"base-view":"_base-view_1j182_91","hollowing-out":"_hollowing-out_1j182_99"},[ure]=_e("base-router-view"),ew=Symbol("isParentTransitioning"),dre=le({props:{useScroll:{type:Boolean,default:!1},observeParentTransition:{type:Boolean,default:!0},useBaselayout:{type:Boolean,default:!0},layoutClass:{type:[String,Array,Object],default:""},flatHeader:{type:Boolean,default:!1},hollowingOut:{type:Boolean,default:!1},layoutProps:{type:Object,default:()=>({})}},name:ure,setup(e,{slots:t}){const n=O(!1),o=He(ew,O(!1));mt(ew,n);const a=(u,d=!0)=>{e.observeParentTransition&&o.value?u.style.animationName=d?"none":"":u.style.animationName=""},r=va.stopRouterAnimation(),s=()=>w(Rw,null,{default:({Component:u})=>w(lre,{mode:r?"None":void 0,onBeforeLeave:d=>{n.value=!0,a(d,!0)},onAfterLeave:d=>{n.value=!1,a(d,!1)},onBeforeEnter:d=>{n.value=!0,a(d,!0)},onAfterEnter:d=>{n.value=!1,a(d,!1)}},{default:()=>[w(Fy,{exclude:ZC.map(d=>`lobby-${d}`)},[u])]})}),i=Bn(),c=C(()=>{var u;return(u=i.meta)!=null&&u.fullScreenLayout?"1":void 0}),l=()=>w(Fy,{exclude:ZC.map(u=>`lobby-${u}`)},[w(x0,Te(e.layoutProps,{useScroll:e.useScroll,class:[JC["base-view"],e.layoutClass,{[JC["hollowing-out"]]:e.hollowingOut}],"data-full-screen-layout":c.value,flatHeader:e.flatHeader}),{header:t.header,default:s,footer:t.footer,fixedView:t.fixedView})]);return()=>e.useBaselayout?l():w(s,null,null)}}),V0={itemKey:{type:String,default:""},icon:{type:String,required:!0,default:""},customUrl:{type:String,default:""},activeIcon:{type:String,required:!0,default:""},customActiveUrl:{type:String,default:""},isActive:{type:Boolean,required:!0},title:{type:String,required:!0},isHiddenText:{type:Boolean,required:!1,default:!1},isSpeicalIcon:{type:Boolean,required:!1,default:!1},badgeSpecialIcon:{type:Boolean,default:!1},customItemSetting:{type:Object,default:()=>({key:"",className:"",isApng:!1})},isCustom:{type:Boolean,default:!1},isBiggerIcon:{type:Boolean,required:!1}},mre={badgeOptions:{type:Object,required:!1}
104,customBackground:{type:[Boolean,String],required:!1,validator:e=>typeof e=="boolean"||typeof e=="string"&&e.trim()!==""},transferData:{type:Object,default:()=>({})},customTabs:{type:[Array,Object],default:()=>[]},customLayouts:{type:[Array,Object],default:()=>[]},expandOptions:{type:Object,default:()=>({})},customItemSetting:{type:Object,default:()=>({key:"",className:"",isApng:!1})},supportEmptyTab:{type:Boolean,default:!1},tabbarClass:{type:[String,Array,Object],default:""}},gre="_tabbar_1tt5r_95",fre="_itemContent_1tt5r_112",pre="_dot_1tt5r_127",hre="_item_1tt5r_112",_re="_specialBox_1tt5r_219",bre="_specialImg_1tt5r_223",yre="_assembly_1tt5r_232",vre="_itemOutsideImg_1tt5r_238",Sre="_itemCoreImg_1tt5r_242",Cre="_itemImg_1tt5r_248",wre="_itemActiveImg_1tt5r_257",Ire="_text_1tt5r_260",Are="_active_1tt5r_283",Lre="_cutOne_1tt5r_286",Tre="_lucky_1tt5r_367",Rre="_bindBox_1tt5r_374",je={tabbar:gre,"tabbar-item":"_tabbar-item_1tt5r_109",itemContent:fre,dot:pre,"last-badge":"_last-badge_1tt5r_132","tabbar-bg":"_tabbar-bg_1tt5r_140","expand-tabar":"_expand-tabar_1tt5r_149","expand-list":"_expand-list_1tt5r_152","mode-expand":"_mode-expand_1tt5r_173","expand-wrapper":"_expand-wrapper_1tt5r_173","mode-popover":"_mode-popover_1tt5r_178","expand-open":"_expand-open_1tt5r_187",item:hre,"ui-badge__content":"_ui-badge__content_1tt5r_216",specialBox:_re,specialImg:bre,assembly:yre,itemOutsideImg:vre,itemCoreImg:Sre,itemImg:Cre,itemActiveImg:wre,text:Ire,active:Are,cutOne:Lre,"specail-badge":"_specail-badge_1tt5r_302","big-item":"_big-item_1tt5r_325","big-icon-badge":"_big-icon-badge_1tt5r_341","big-item-img":"_big-item-img_1tt5r_349",lucky:Tre,bindBox:Rre},[Ore]=_e("pages-home-tabbar-item"),Pre=le({props:V0,name:Ore,setup(e,{slots:t}){const n=C(()=>e.isBiggerIcon?Ps.Big:e.isSpeicalIcon&&e.badgeSpecialIcon?Ps.SpecialWithBadge:e.isSpeicalIcon&&!e.badgeSpecialIcon?Ps.Special:Ps.Base),o=C(()=>{var u;return(u=e.customItemSetting)!=null&&u.key&&e.customItemSetting.key===e.itemKey?e.customItemSetting.className:""}),a=C(()=>{var u,d;return((u=e.customItemSetting)==null?void 0:u.isApng)&&((d=e.customItemSetting)==null?void 0:d.key)&&e.customItemSetting.key===e.itemKey}),r=(u,d=!0)=>{const m={iconProps:{inheritSize:!0},imgProps:{isApng:a.value,lazy:!1,svgInheritSize:!0},useImage:!0,class:[je.itemImg],...u};return vr(w(ud,Te({key:m.src},m),null),[[is,d]])},s=u=>e.customUrl||XC(e.icon)?r({src:e.customUrl||e.icon},u):vr(w("i",{class:je.assembly},[r({class:[je.itemImg,je.itemOutsideImg],useImage:!1,src:`${e.icon}.svg`}),r({class:[je.itemImg,je.itemCoreImg],useImage:!1,src:`${e.icon}0.svg`})]),[[is,u]]),i=()=>e.isCustom?r({class:[je.itemImg,je.itemNormalImg],src:e.customUrl||e.icon},!e.isActive):s(!e.isActive),c=()=>e.isCustom?r({class:[je.itemImg,je.itemActiveImg],src:e.customActiveUrl||e.activeIcon||e.customUrl||e.icon},e.isActive):e.activeIcon||e.customActiveUrl?e.customActiveUrl||XC(e.activeIcon)?r({class:[je.itemImg,je.itemActiveImg],src:e.customActiveUrl||e.activeIcon||e.customUrl}
104,e.isActive):r({src:`${e.activeIcon}.svg`,class:[je.itemImg,je.itemActiveImg],useImage:!1},e.isActive):s(e.isActive),l=()=>{var d,m,g,f;if(n.value===Ps.Big)return(d=t.badge)==null?void 0:d.call(t,w("div",{class:[je["big-icon-badge"],"big-icon-badge"]},[w(Ve,{class:[je["big-item-img"],"big-item-img"],isApng:!0,useSkeleton:!0,lazy:!1,src:e.customUrl},null)]));const u=e.isActive&&e.customActiveUrl;if([Ps.Special,Ps.SpecialWithBadge].includes(n.value)&&!u){const _=e.isActive?e.customActiveUrl||e.activeIcon||e.icon:e.customUrl||e.icon,h=()=>w("div",{class:[je.specialBox,"specialBox"]},[w(Ve,{class:[je.specialImg,"specialImg"],isApng:!0,lazy:!1,src:_},null)]);return e.badgeSpecialIcon?!e.isActive&&e.customUrl?(m=t.badge)==null?void 0:m.call(t,i()):w("div",{class:je["specail-badge"]},[(g=t.badge)==null?void 0:g.call(t,h())]):h()}return(f=t.badge)==null?void 0:f.call(t,w(gt,null,[i(),c()]))};return()=>w("div",{class:[je.item,e.isActive?je["active-item"]:"",o.value,{[je["big-item"]]:e.isBiggerIcon},{"big-item":e.isBiggerIcon},{"custom-icon":(e.isActive?!!e.customActiveUrl:!!e.customUrl)&&!e.isBiggerIcon}]},[l(),!e.isHiddenText&&w("span",{class:[je.text,e.isActive?je.active:""]},[e.title])])}}),Dre="_imgBadge_6f2uh_91",Mre="_hideBadge_6f2uh_99",tw={imgBadge:Dre,hideBadge:Mre},[Nre]=_e("pages-home-tabbar-item"),kre=le({props:V0,name:Nre,inheritAttrs:!1,setup(e,{slots:t,attrs:n}){const{t:o}=we(),a=Ge(),r=ue(),s=()=>{var c;return e.itemKey===Ce.RECHARGE&&a.language==="zh"&&[93].includes(((c=r.siteInfos)==null?void 0:c.skinTypeValue)||0)},i=()=>{const c="/lobby_asset/{layout}-{bg}-{skin}/common/_sprite/icon_btm_pg.png";return s()?{icon:c,activeIcon:c,title:o("lobby.theme2_dz.pgWallet"),class:tw.hideBadge}:{}};return()=>{const c=i();return w(gt,null,[w(Pre,Te(n,e,c),{...t}),s()&&w(Ve,{class:tw.imgBadge,src:"/lobby_asset/{layout}-{bg}-{skin}/web/home/apng_icon_bbs.png"},null)])}}}),Bre={route:Boolean,fixed:pr,border:pr,zIndex:po,placeholder:Boolean,activeColor:String,beforeChange:Function,inactiveColor:String,modelValue:oa(0),safeAreaInsetBottom:{type:Boolean,default:null}},[$0,Hre]=Wt("tabbar"),Y0=Symbol($0),xre=le({name:$0,props:Bre,emits:["change","update:modelValue"],setup(e,{emit:t,slots:n}){const o=O(),{linkChildren:a}=SO(Y0),r=()=>{var c;return(c=e.safeAreaInsetBottom)!=null?c:e.fixed},s=()=>{var d;const{fixed:c,zIndex:l,border:u}=e;return w("div",{ref:o,role:"tablist",style:r_(l),class:[Hre({fixed:c}),{[CO]:u,"ui-safe-area-bottom":r()}]},[(d=n.default)==null?void 0:d.call(n)])};return a({props:e,setActive:(c,l)=>{EO(e.beforeChange,{args:[c],done(){t("update:modelValue",c),t("change",c),l()}})}}),()=>s()}}),Ere=xre,Ure=Object.assign({},yO,{name:po}),[Gre,Fre]=Wt("tabbar-item"),Wre=le({name:Gre,props:Ure,emits:["click"],setup(e,{emit:t,slots:n}){const o=vO(),a=gs().proxy,{parent:r,index:s}=AO(Y0);if(!r)return;const i=C(()=>{var d;const{route:l,modelValue:u}=r.props;if(l&&"$route"in a){const{$route:m}=a,{to:g}=e,f=hT(g)?g:{path:g};return!!m.matched.find(_=>{const h="path"in f&&f.path===_.path,p="name"in f&&f.name===_.name;return h||p})}return((d=e.name)!=null?d:s.value)===u}),c=l=>{var u;i.value||r.setActive((u=e.name)!=null?u:s.value,o),t("click",l)};return()=>{var m;const{activeColor:l,inactiveColor:u}=r.props,d=i.value?l:u;return w("div",{role:"tab",class:Fre({active:i.value}),style:{color:d},tabindex:0,"aria-selected":i.value,onClick:c},[(m=n.default)==null?void 0:m.call(n,{active:i.value})])}}}),Vre=Wre,$re=()=>{const{t:e}=F_(),t=Bn(),n=J(),o=ue(),a=oi(),r=On(),s=af(),i=C(()=>{var g,f;const d=((g=o.homeLayoutInfos)==null?void 0:g.layoutIcons)||[],m=(f=n.userInfos)==null?void 0:f.currency;return d.filter(_=>{var p,y;if(!r.isShowDiscount&&_.linkType===Um.Active)return!1;const h=JSON.parse(_.actInfo||"{}");return!(h.currency&&h.currency!=="0"&&!((y=(p=h.currency)==null?void 0:p.split(","))!=null?y:[]).includes(m))})}),c=C(()=>{var d;return(d=i.value)==null?void 0:d.map(m=>m.iconCode)}),l=async d=>{var _;if(d.linkType===Um.Link){if(d.linkMethod===Xw.Yes){to(d.linkUrl);return}Nb({url:d.linkUrl});return}a.isLoadedCategories||await a.getEventCategoriesAndEvents();const m=d.actInfo?JSON.parse(d.actInfo):{},g=a.isLoadedCategories?(_=a.eventsList)==null?void 0:_.find(h=>h.activeId===(m==null?void 0:m.id)):void 0;if(!g||!u(g)){_o.error(e("lobby.event.discountCode.notMetMessage"));return}const f={activeId:String(m.id),jumpMethod:"push",template:String(m.type)};m.type===at.DiscountCode&&t.name===k.GAME&&Reflect.set(f,"pageType",fI.Modal),D0(f)},u=d=>{var m;return!(!s.filter({startTime:d==null?void 0:d.startShowTime,endTime:d==null?void 0:d.endSh
104owTime,showLevel:d==null?void 0:d.userLevel,showVip:d.vipLevel,registerDay:d==null?void 0:d.register_days_limit,showDeviceType:d==null?void 0:d.clientShowDeviceType})||(m=d.operation)!=null&&m.operationStatus&&!ay(d.operation))};return{customIcons:i,customIconKeys:c,customItemClick:l}},zge=(e="")=>{let t=0;if(e.includes(":")){const n=e.split(":").map(o=>Number(o));(n==null?void 0:n.length)>0&&(t=n[0]*3600+n[1]*60)}return t},jge={[at.Proxy]:["#505453","#1f1f1f"],[at.RedPocket]:["#fee441","#fcc511"],[at.Collection]:["#ff7e3b","#ff4510"],[at.GuessingSports]:["#9e33d2","#6625ba"],[at.Customize]:["#fe5f3f","#fc2a18"],[at.DailyBonus]:["#5a8bfc","#4065f3"],[at.Wager]:["#fc5145","#f92614"],[at.Invest]:["#fe8d8b","#ff4441"],[at.Promote]:["#9551fb","#781ef3"],[at.Rescue]:["#ff7e3b","#ff4510"],[at.LuckyWheel]:["#c359dc","#9b18e2"],[at.LuckyWheelNew]:["#c359dc","#9b18e2"],[at.Deposit]:["#2c94fc","#0b6ef8"],[at.LuckyBet]:["#af73ff","#8239f6"],[at.DiscountCode]:["#ff892d","#ff5a04"],[at.CutOnce]:["#fe6444","#ff4221"],[at.NewCutOnce]:["#fe6444","#ff4221"],[at.Ranking]:["#ffb83c","#ff7d00"],default:["#fe5f3f","#fc2a18"]},q0="float-bar-scroll-content",Kge=[k.GAME_EMBEDDED,k.REGISTER,k.LOGIN_REGISTER_UPGRADE_GUIDE,k.LOGIN,k.DEMO_REGISTER,k.FORBIDDEN_SELF,k.MATCH_NEWS,k.MATCH_NEWS_SEARCH,k.MATCH_NEWS_DETAIL],Yre=[k.LOTTERY_HOME,k.LOTTERY_RECORD,k.LOTTERY_HISTORY,k.SPORT,k.SPORT_EVENT_DETAIL,k.SPORT_RECORD,k.SPORT_FILTER,k.SPORT_RESULT,k.SPORT_RULE,k.EXTERNAL_EMBEDDED,k.SERVICE_IFRAME],z0=ke("fastEntry",()=>{const e=nd(),t=oi(),{getActiveId:n}=e,o=O(!1),a=S=>{o.value=S},r=O({date:null,list:[]}),s=()=>{r.value={date:null,list:[]}},i=(...S)=>{r.value.date=Ye(),r.value.list=r.value.list.concat(S)},c=O([]),l=S=>{c.value=[...c.value,S]},u=S=>{c.value=c.value.filter(I=>I!==S)},d=S=>{const I=[];return S.forEach(R=>{var Y;let D={};try{D=JSON.parse(R.actConfig||"{}")}catch(H){}const M=!!((Y=t.eventsList)!=null&&Y.find(H=>H.activeId===R.activeId))||!t.isLoadedCategories;if(R.jumpType===Vi.SYSTEMACTIVE&&!M)return;const E={...R,isShowCountDown:D.isShowCountDown,template:D.template,detail:{timingList:D.timingList}};I.push(E)}),I},m=(S,I)=>S.find(R=>{var D;return R.jumpType===Vi.SYSTEM&&!c_.includes((D=R.jumpInfo)==null?void 0:D.insideModuleId)&&n(R)===I}),g=S=>{var R;const I=(R=m(S,At.SURPRISE))!=null?R:m(S,At.PROMOTE_REMARD);return I?[I]:S.slice(0,1)},f=(S,I)=>{var M;const R=Ke.isSimpleTheme&&I===Le.BOTTOM_RIGHT_FLOATING;if(Ke.isSimpleTheme&&!R)return[];const D=(M=S==null?void 0:S[I])==null?void 0:M.reduce((B,E)=>{var Q,G;if((G=(Q=r.value)==null?void 0:Q.list)==null?void 0:G.includes(E.id))return B;const H=d(E.infos)||[];if(!H.length)return B;const F=R?g(H):H;return[...B,{...E,infos:F}]},[]);return R?D==null?void 0:D.slice(0,1):D},_=C(()=>f(e.formatFloatList,Le.BOTTOM_LEFT_FLOATING)),h=C(()=>f(e.formatFloatList,Le.BOTTOM_RIGHT_FLOATING)),p=O(Yre),y=O(!1),b=O([k.GAME]);return{fastEntryHideData:r,isPut:o,onlyShowToTopPage:p,hiddenToTop:y,showToTopPage:b,leftFloatList:_,rightFloatList:h,miniModules:c,addMini:l,removeMini:u,resetFastEntryHideData:s,addFastEntryHideData:i,setPut:a,setHiddenToTop:S=>{y.value=S},setOnlyShowToTop:S=>{p.value.includes(S)||p.value.push(S)},setShowToTopPage:S=>{b.value.includes(S)||b.value.push(S)},setHideToTopPage:S=>{b.value=b.value.filter(I=>I!==S)}}},{persist:{paths:["fastEntryHideData"]}}),qre=1e3;function zre(){const e=z0(),t=O(null),n=()=>{e.isPut||e.setPut(!0)},o=qn(()=>{e.setPut(!1)},qre),a=Zc(s=>{if(s!=null&&s.target){const i=s.target,c=i.getAttribute("data-route-for-scroll");c&&e.showToTopPage.includes(c)&&(t.value=i)}},200);return Xs("scroll",function(s){const i=s.target;!i||!i.classList||!i.classList.contains("lobby-scroll--y")||i.classList.contains(q0)||!i.closest||!i.closest("#app")||!(i.scrollHeight>i.clientHeight)||(n(),o(),a(s))},{capture:!0,passive:!0}),sc(()=>{var s,i;try{(s=o==null?void 0:o.cancel)==null||s.call(o),(i=a==null?void 0:a.cancel)==null||i.call(a)}catch(c){}}),{scrollRef:t}}const nw=200,jre=({value:e=100,disabled:t=!1,scrollRoot:n})=>{const o=z0(),a=O(0),r=C(()=>a.value>s.value),s=C(()=>{var g;return e||((g=n.value)==null?void 0:g.clientHeight)});if(t)return{visible:C(()=>!0),scrollRoot:n};const{y:i}=hw(n),c=()=>{a.value=i.value};fe(()=>i.value,()=>{c()});const l=Zc(()=>{o.setPut(!0)},nw/2),u=qn(()=>{o.setPut(!1)},nw),d=function(g){const f=g.target;f&&(f!=null&&f.closest("#app"))&&f.classList.contains("lobby-scroll--y")&&!f.classList.contains(q0)&&f.scrollHeight>f.clientHeight&&(l(),u(),m(g))},m=Zc(function(g){g.target&&o.showToTopPage.includes(g.target.getAttribute("data-route-for-scroll"))&&(n.value=g.target)});return Gt(()=>{c(),document.addEventListener("scroll",d,!0)}),fa(()=>{document.removeEventListener("scroll",d)}),{visible:r,scrollRoot:n}},Kre=()=>{const{t:e}=we(),t=ue(),{customizeBottomIconMap:n}=cd.useHomeCustomizeIcon(),o=C(()=>{var m;const d=(m=t.siteConfig)==null?void 0:m.type;return{bindKey:Ce.HOME,title:()=>e(Ke.homeTabBarToTopTextKey),customActiveUrl:n.get("backToTopIcon"),icon:(om==null?void 0:om[d])||om[Be.NORMAL]}}),{isSupportHomeTabBarToTop:a}=Ke,r=Oe(),{scrollRef:s}=a?zre():{scrollRef:O(null)},{visible:i}=a?jre({value:0,scrollRoot:s}):{visible:O(!1)},c=C(()=>r.route.name);return{showBackToTop:C(()=>a&&c.value===k.GAME&&i.value),scrollToTop:()=>{Cl(s.value,{y:0},{useNative:!0})},topConfig:o}},Qre=(e,t,n,o)=>{const a=Oe(),r=Bn(),s=oi(),i=F0(),c=J(),l=ue(),{discountRedDot:u,discountCount:d,commonTabs:m}
104=G0(),{scrollToTop:g,showBackToTop:f,topConfig:_}=Kre(),h=[Ce.LUCKYWHEEL],p=C(()=>{const j=[Ce.CUT_ONE];return y.get("blindBoxIcon")||j.push(Ce.BLINDBOX_LOTTERY),(!y.get("luckyWheelUnIcon")||!y.get("luckyWheelOnIcon"))&&j.push(Ce.LUCKYWHEEL),j}),{customizeBottomIconMap:y}=cd.useHomeCustomizeIcon();Gt(()=>{const{loginBtmItems:j=[],btmItems:te=[],layoutIcons:K=[],midItems:q=[],loginMidItems:ae=[],midItemsMore:me=[]}=l.homeLayoutInfos||{},de=new Set([...j,...te]),ne=new Set([...q,...ae,...me]),W=K.filter(oe=>oe.linkType===Um.Active).map(oe=>oe.iconCode).some(oe=>ne.has(oe)||de.has(oe));r.name!==k.EVENT&&!s.hasHomeActiveCategory&&!s.isLoadedCategories&&(de.has(Ce.CUT_ONE)||W)&&s.getEventCategoriesAndEvents()});const b=C(()=>{var K,q,ae;const j=(K=ua(t))!=null&&K.length?ua(t):c.hasLoginedComponent?(q=l.homeLayoutInfos)==null?void 0:q.loginBtmItems.map(me=>me):(ae=l.homeLayoutInfos)==null?void 0:ae.btmItems.map(me=>me);return(typeof(o==null?void 0:o.customLayouts)=="function"&&j?o.customLayouts(j):j)||[]}),v=C(()=>i.iconPlusConfig.value),A=C(()=>typeof(o==null?void 0:o.topConfig)=="function"?o.topConfig(_.value):_.value),{customIcons:L,customIconKeys:T,customItemClick:S}=$re(),I=C(()=>b.value.filter(te=>T.value.includes(te)).reduce((te,K)=>{const q=L.value.find(me=>me.iconCode===K);if(!q)return te;const ae={key:K,title:()=>(q==null?void 0:q.entryName)||"",icon:(q==null?void 0:q.iconUrl)||"",hidden:!1,isCustom:!0,onClick:()=>S(q)};return{...te,[K]:ae}},{})),R=C(()=>{var ae;if(!((ae=b.value)!=null&&ae.length))return[];const j=kae(m.value,ua(e)||[]),te=QC(j),K={key:Ce.NULL,title:()=>"",icon:"",isSpeicalIcon:!1},q=b.value.reduce((me,de)=>{var W,oe,be;if(Reflect.has(I.value,de))return[...me,I.value[de]];const ne=((W=v.value)==null?void 0:W.iconCode)===de,U=te[ne?Nm[(oe=v.value)==null?void 0:oe.linkUrl]:de];if(U&&!U.hidden){const Ie=U.key===A.value.bindKey;let Me=U;if(Ie&&f.value){const et={icon:U.icon,activeIcon:U.activeIcon,customUrl:U.customUrl,customActiveUrl:U.customActiveUrl};Me={...U,...A.value,activeIcon:A.value.icon,customUrl:A.value.customActiveUrl,defaultIcon:et,showToTop:!0,onClick:g}}me.push({isSpeicalIcon:(be=p.value)==null?void 0:be.includes(U.key),badgeSpecialIcon:h.includes(U.key),isBiggerIcon:ne,...Me,customUrl:ne?v.value.iconUrl:Me.customUrl})}else n&&me.push(K);return me},[]);return typeof(o==null?void 0:o.tabItems)=="function"?o.tabItems(q):q}),D=C(()=>R.value.find(j=>(j==null?void 0:j.key)===Ce.MENU)||Ke.renderAsideInTabbar),M=C(()=>String(r==null?void 0:r.name)),B=j=>R.value.find(te=>{var K;if(j.find(q=>q.key===te.key))return(K=te.routeName)==null?void 0:K.includes(M==null?void 0:M.value)}),E=O(),Y=O(),H=j=>{E.value=j},F=C(()=>{var q,ae,me;if(E.value)return E.value;if((M==null?void 0:M.value)===k.SUB_GAME&&r.query.gameCategoryId){const de=Number(r.query.gameCategoryId),ne=(q={[Z.Collect]:Ce.COLLECT,[Z.Recent]:Ce.RECENT,[Z.Demo]:Ce.TRY_GAME}[de])!=null?q:Ce.GAME;return(ae=R.value.find(U=>U.key===ne))==null?void 0:ae.key}const j=R.value.filter(de=>de.key!==Ce.EVENT&&de.key!==Ce.ACTIVITY),te=R.value.filter(de=>de.key===Ce.EVENT||de.key===Ce.ACTIVITY),K=B(j)||B(te);if(Y.value&&((K==null?void 0:K.key)===Ce.EVENT||(K==null?void 0:K.key)===Ce.ACTIVITY)){const de=R.value.find(ne=>ne.key===Y.value);if((me=de==null?void 0:de.routeName)!=null&&me.includes(M.value))return Y.value}return K!=null&&K.key?K==null?void 0:K.key:void 0}),{updateRouterViewTransitionModeOnce:Q}=lf(),{openLoginRegister:G}=sn(),N=(j,te)=>{const K=async()=>{if(j.showToTop)return j.onClick(),!1;if(j.key===F.value)return!1;if(j.shouldLogin&&(!c.isLogined||c.temporaryAccountStatus.unRecharg))return G({onSuccess:()=>{j.onClick&&j.onClick()}}),!1;if(j.onClick)return(j.key===Ce.EVENT||j.key===Ce.ACTIVITY)&&(Y.value=j.key),j.onClick(),!1;{if(!j.routeName)return!1;const q=R.value.findIndex(ae=>ae.key===F.value);return await Q(te>q?"Push":"Pop",async()=>{await a.push({name:j.routeName[0],query:j.query})}),!0}};typeof(o==null?void 0:o.beforeChange)=="function"?o==null||o.beforeChange(j.key,K,j):K()},$=new Map([[Ce.BLINDBOX_LOTTERY,"bindBox"],[Ce.CUT_ONE,"cutOne"],[Ce.LUCKYWHEEL,"lucky"]]);return{active:F,showAside:D,tabItems:R,routeName:M,beforeChange:N,discountRedDot:u,discountCount:d,createTabConfigKeyMap:QC,specialTabClassName:$,updateTabbarActive:H,getSpecialTabClassName:j=>$.get(j.key)}},Xre=(e,t)=>
104{const n=C(()=>(t==null?void 0:t.mode)&&[D_.Expand,D_.Popover].includes(t==null?void 0:t.mode)),o=typeof(t==null?void 0:t.defaultLen)=="number"?t==null?void 0:t.defaultLen:5,a=C(()=>[...ua(e)].splice(0,o)),r=C(()=>{var c;return(c=[...ua(e)].splice(o))==null?void 0:c.filter(l=>l.key!==Ce.NULL)}),s=O();MK(s,()=>{i.value&&(i.value=!1)},{eventName:"click"});const i=O(!1);return{expandStatus:n,defaultTabs:a,expandTabs:r,tabbarRef:s,isOpen:i,defaultLen:o}};function ow(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ao(e)}const Zre=gn({loader:()=>V(()=>import("./AsyncCustormAsideIndex.CtO5Kh-h.js").then(e=>e.A),[])}),Jre=gn({loader:()=>V(()=>import("./festival-ui-group.5mfKnHma.js").then(e=>e.T),__vite__mapDeps([0,1,3,4,5,7,6,8,34]))}),[ese]=_e("pages-home-tabbar-index"),tse=le({emits:["expandChange"],props:mre,name:ese,setup(e,{slots:t,emit:n}){const o=nn(),{active:a,tabItems:r,beforeChange:s,showAside:i,getSpecialTabClassName:c,updateTabbarActive:l}=Qre(e.customTabs,e.customLayouts,e.supportEmptyTab,e.transferData),{expandStatus:u,isOpen:d,expandTabs:m,defaultTabs:g,tabbarRef:f,defaultLen:_}=Xre(r,e.expandOptions),h=C(()=>typeof e.customBackground=="boolean"&&e.customBackground?"/lobby_asset/{layout}-{bg}-{skin}/web/common/img_db_dt_btm.png":typeof e.customBackground=="string"?e.customBackground:""),p=C(()=>{var I,R;return(I=e.badgeOptions)!=null&&I.dotOffset?(R=e.badgeOptions)==null?void 0:R.dotOffset:["-0.15rem","0.05rem"]});Da({updateTabbarActive:l});const y=(I,R)=>{var B,E;const D=Y=>{var H,F;return w(tc,Te({class:{[je["last-badge"]]:_-1===R,[je.dot]:I.dot},tag:"div",max:I.showTotalNum?99999999999:99,content:I.badge||0},I.badgeProps||{},{isSupportRtl:!0,zIndex:5,dot:I.dot},e.badgeOptions,{offset:I.dot?p.value:(H=e.badgeOptions)==null?void 0:H.offset,position:I.dot?"top-right":((F=e.badgeOptions)==null?void 0:F.position)||"top-right"}),ow(Y)?Y:{default:()=>[Y]})},M=c(I);return w(kre,{itemKey:I.key,icon:I.icon,customUrl:I.customUrl,customActiveUrl:I.customActiveUrl,activeIcon:Ke.isTabbarShowActiveIcon?I.activeIcon:I.icon,isActive:I.key===a.value,isSpeicalIcon:I.isS
104peicalIcon,badgeSpecialIcon:I.badgeSpecialIcon,isBiggerIcon:I.isBiggerIcon,isHiddenText:I.isHiddenText,title:(E=(B=I==null?void 0:I.title)==null?void 0:B.call(I))!=null?E:"",class:[M?[je[M],M]:"",je[`item-${I.key}`]],key:I.key,customItemSetting:e.customItemSetting,isCustom:I.isCustom},{badge:D})},b=I=>{const R=r.value.findIndex(D=>D.key===I);s(r.value[R],R)},v=()=>{const I=u.value?g.value:r.value,R=I.length%2===1?Math.floor(I.length/2):-1;return w(gt,null,[i.value?w(Zre,null,null):w(gt,null,null),w(Ere,{class:[je.tabbar,e.tabbarClass],active:a.value,"onUpdate:active":D=>a.value=D,beforeChange:b,fixed:!1,style:zc.tabBarBg},{default:()=>{var D;return[(D=t.tabbarAnimate)==null?void 0:D.call(t),o.isHolidayThemeVisible?w(Jre,null,null):w(gt,null,null),I.map((M,B)=>w(Vre,Te({key:M.key===Ce.NULL?`${Ce.NULL}_${B}`:M.key,name:M.key,class:[je["tabbar-item"],je[`tabbar-item-${B}`]]},M.key===Ce.RECHARGE?{id:"depositClick","data-sensors-click":!0}:{}),{default:()=>{var E,Y;return[w("div",{class:[je.itemContent,R===B&&je.middleTabItemContent,M.key===a.value&&je["tabbar-active"]]},[y(M,B),(E=t.baseItem)==null?void 0:E.call(t,M,B),a.value===M.key&&((Y=t.activeItem)==null?void 0:Y.call(t))])]}}))]}})])},A=(I,R)=>{var M;const D=c(I);return w("div",Te({class:[je.itemContent,I.key===a.value?je["tabbar-active"]:""],onClick:B=>{B.stopPropagation(),d.value=!1,s(I,R)}},I.key===Ce.RECHARGE?{id:"depositClick","data-sensors-click":!0}:{}),[w(tc,Te({tag:"div",class:[je["expand-items"],{"last-badge":(R+1)%_===0},D,D?je[D]:"",I.dot?[je.dot]:""],max:I.showTotalNum?99999999999:99,content:(M=I.badge)!=null?M:0,position:"top-right",isSupportRtl:!0,zIndex:2,dot:I.dot},I.badgeProps||{},e.badgeOptions),{default:()=>{var B;return[w(Ve,{src:Ke.isTabbarShowActiveIcon&&a.value===I.key?I.activeIcon:I.icon,class:[je.itemIcon,I.itemClss?je[I.itemClss]:""],isApng:I.isApng,useSkeleton:!0},null),w("span",{class:{[je.itemTitle]:!0,[je.actived]:a.value===I.key,"expand-item-actived":a.value===I.key}},[(B=I==null?void 0:I.title)==null?void 0:B.call(I)])]}})])};fe(d,I=>n("expandChange",{open:I,active:a.value}));const L=C(()=>Math.ceil(m.value.length/_)),T=()=>{var I,R,D;return w("div",{class:[je["expand-tabar"],[je[`mode-${e.expandOptions.mode}`]]]},[u.value&&w("div",{class:[je["tabbar-toggle"],{open:d.value}],onClick:()=>d.value=!d.value,ref:f},[(I=t.toggle)==null?void 0:I.call(t,d.value)]),v(),w("div",{class:[je["expand-wrapper"],d.value?je["expand-open"]:""],style:{"--rows":L.value}},[w("div",{class:je["expand-list"]},[(R=t.expandCenter)==null?void 0:R.call(t),(D=m.value)==null?void 0:D.map((M,B)=>A(M,B))])])])},S=()=>u.value?T():v();return()=>{let I;return w("div",{class:je["tabbar-wrap"]},[h.value?w(Ve,{tag:"div",useSkeleton:!0,src:h.value,class:je["tabbar-bg"]},ow(I=S())?I:{default:()=>[I]}):S()])}}}),[nse]=_e("pages-root"),ose=le({name:nse,setup(e,{slots:t}){const n=F0(),o=Ze(),a=Oe(),r=Uae(),{isPageActive:s}=Wae(),i=C(()=>{var f;const u=a.route.name,d=(f=a.route.meta)==null?void 0:f.showTabbar,m=Ke.forceShowTabbarRoutes.includes(u),g=UL.includes(u)&&(o.showTabbarOnSubPage||m);return(d||g)&&!0});Do();const{getEventsAuthInfos:c,getDiscountRedDot:l}=On();return fe(()=>J().hasLogined&&!!J().userInfos,(u,d)=>{u!==d&&(c(),l())},{immediate:!0}),ire(),fe(()=>a.route.name,(u,d)=>{[k.GAME,k.EVENT].includes(u)&&u!==d&&l()},{immediate:!0}),()=>w(dre,{useBaselayout:!0,"data-show-tabbar":~~i.value,"data-full-screen":~~r.fullScreen.value,"data-show-big-icon":~~n.showIconPlus.value,"data-page-active":s.value?1:0,layoutProps:{footerClass:"layout-footer"},"data-jackpot-common-space":~~Ke.jackpotCommonSpace},{...t,footer:()=>i.value?w(tse,null,null):null})}}),ase=[{path:"/",name:k.ROOT,redirect:{name:k.GAME},component:ose,children:[{path:"/home",name:k.HOME,redirect:{name:k.GAME}},{path:"/",name:k.GAME,meta:{title:k.GAME,depIndex:0,showTabbar:!0},component:hae},{name:k.MINE,path:"/home/mine",component:()=>V(()=>import("./1_MineChunk.CPGTMigo.js").then(e=>e.aj),__vite__mapDeps([0,1,3,4,5,6])),meta:{title:k.MINE,depIndex:1,private:!Ke.isNologinMine,whiteRoleType:[qt.Demo],showTabbar:!0}},{path:"/home/discount",component:()=>V(()=>import("./1_PromotionChunk.DiibOkmm.js").then(e=>e.af),__vite__mapDeps([0,1,3,4,5,6,7,8,9])),redirect:{name:k.EVENT},children:[{path:"/home/event",name:k.EVENT,component:()=>V(()=>import("./1_PromotionChunk.DiibOkmm.js").then(e=>e.ag),__vite__mapDeps([0,1,3,4,5,6,7,8,9])),meta:{title:k.EVENT,depIndex:1,showTabbar:!0}},{path:"/home/task",name:k.TASK,component:()=>V(()=>import("./1_PromotionChunk.DiibOkmm.js").then(e=>e.ah),__vite__mapDeps([0,1,3,4,5,6,7,8,9])),meta:{title:k.TASK,depIndex:1,showTabbar:!0}},{path:"/home/yuebao",name:k.INTEREST,component:()=>V(()=>import("./EventSubPageChunk.DBmz0utZ.js").then(e=>e.$),__vite__mapDeps([0,1,3,4,5,6,7,8,9,10,11,23,24,25,26])),meta:{title:k.INTEREST,depIndex:1,showTabbar:!0}},{path:"/home/vip",name:k.VIP,component:()=>V(()=>import("./1_PromotionChunk.DiibOkmm.js").then(e=>e.ai),__vite__mapDeps([0,1,3,4,5,6,7,8,9])),meta:{title:k.VIP,depIndex:1,showTabbar:!0}},{path:"/home/cashback",name:k.CASHBACK,component:()=>V(()=>import("./1_PromotionChunk.DiibOkmm.js").then(e=>e.aj),__vite__mapDeps([0,1,3,4,5,6,7,8,9])),meta:{title:k.CASHBACK,depIndex:1,showTabbar:!0}},{path:"/home/rechargeFund",name:k.RECHARGE_FUND,component:()=>V(()=>import("./EventSubPageChunk.DBmz0utZ.js").then(e=>e.a0),__vite__mapDeps([0,1,3,4,5,6,7,8,9,10,11,23,24,25,26])),meta:{title:k.RECHARGE_FUND,depIndex:1,showTabbar:!0}},{path:"/home/canReceive",name:k.CANRECEIVE,component:()=>V(()=>import("./1_PromotionChunk.DiibOkmm.js").then(e=>e.ak),__vite__mapDeps([0,1,3,4,5,6,7,8,9])),meta:{title:k.CANRECEIVE,depIndex:1,showTabbar:!0}},{path:"/home/records",name:k.RECORDS,component:()=>V(()=>import("./1_PromotionChunk.DiibOkmm.js").then(e=>e.al),__vite__mapDeps([0,1,3,4,5,6,7,8,9])),meta:{title:k.RECORDS,depIndex:1,showTabbar:!0}},{path:"/home/creditLoan",name:k.CREDITLOAN,component:()=>V(()=>import("./EventSubPageChunk.DBmz0utZ.js").then(e=>e.a1),__vite__mapDeps([0,1,3,4,5,6,7,8,9,10,11,23,24,25,26])),meta:{title:k.CREDITLOAN,depIndex:1,showTabbar:!0}},{path:"/home/lucky-wheel",name:k.LUCKY_WHELL,component:()=>V(()=>import("./EventSubPageChunk.DBmz0utZ.js").then(e=>e.a2),__vite__mapDeps([0,1,3,4,5,6,7,8,9,10,11,23,24,25,26])),meta:{title:k.LUCKY_WHELL,depIndex:1,showTabbar:!0}},{path:"/home/svip",name:k.SVIP,component:()=>V(()=>import("./EventSubPageChunk.DBmz0utZ.js").then(e=>e.a3),__vite__mapDeps([0,1,3,4,5,6,7,8,9,10,11,23,24,25,26])),meta:{title:k.SVIP,depIndex:1,showTabbar:!0}}]},{path:"/home/preview-svip",name:k.PREVIEW_SVIP,component:()=>V(()=>import("./PreviewSvipIndex.DH0BgD8l.js"),__vite__mapDeps([0,1,3,4,5,6,7,8,9,10,11,23,24,25,26])),meta:{title:k.PREVIEW_SVIP,depIndex:1,showTabbar:!1,dialogLimit:{include:[]}}},{path:"/more-menu",name:k.MORE_MENU,component:()=>V(()=>import("./MoreMenuIndex.BnKugsz7.js"),__vite__mapDeps([0,1,3,4,5,6,10,51])),meta:{depIndex:2}}
104,{path:"/home/coupon",name:k.COUPON,component:()=>V(()=>import("./CouponIndex.32xhJV62.js"),__vite__mapDeps([0,1,3,4,5,6,7,8,9,10,11,52])),meta:{depIndex:2}},{path:"/home/repayment",name:k.REPAYMENT,component:()=>V(()=>import("./RepaymentIndex.bYGu4Tme.js"),__vite__mapDeps([0,1,23,3,4,5,24,7,6,8,9,25,10,11,26,53])),meta:{depIndex:2,private:!1}},{path:"/home/user-loan",name:k.LOAN,component:()=>V(()=>import("./LoanIndex.Dhrtjqr5.js"),__vite__mapDeps([0,1,23,3,4,5,24,7,6,8,9,25,10,11,26,54])),meta:{depIndex:2,private:!1}},{path:"/promote-game",name:k.PROMOTE_GAME,component:()=>V(()=>import("./PromoteGameIndex.rY2Cj8Dd.js"),__vite__mapDeps([0,1,2,14,55])),meta:{depIndex:2}},{path:"/home/cashback-rates",name:k.CASHBACK_RATES,redirect:{name:k.CASHBACK}},{name:k.SUB_GAME,path:"/home/subgame",component:()=>V(()=>import("./1_SubGameChunk.DtOVQV6_.js").then(e=>e.S),__vite__mapDeps([0,1,3,4,5,6,10,15,7,8,16])),meta:{depIndex:2}},{name:k.SEARCH_SUB_GAME,path:"/home/searchsubgame",component:()=>V(()=>import("./1_SearchSubGameChunk.Bo8ph44R.js").then(e=>e.a),__vite__mapDeps([0,1,3,4,5,15])),meta:{depIndex:2}},{name:k.GAME_EMBEDDED,path:"/home/embedded",component:()=>V(()=>import("./1_EmbeddedGameChunk.BX38WWGT.js").then(e=>e.q),__vite__mapDeps([0,1,2])),meta:{depIndex:2,fullScreenLayout:!0}},{name:k.GAME_SEARCH,path:"/home/search",component:()=>V(()=>import("./1_SearchGameChunk.DPxG-dhI.js").then(e=>e.F),__vite__mapDeps([0,1,3,4,5,6,10])),meta:{depIndex:2}},{name:k.MORE_CATEGORY,path:"/home/moreCategory",component:()=>V(()=>import("./0_GameMoreCategoryChunk.CzzAtkh2.js"),[]),meta:{depIndex:2}},{name:k.VERSION_UPDATE,path:"/home/version-update",component:()=>V(()=>import("./VersionUpdateIndex.ocGNTdxR.js"),__vite__mapDeps([0,1,3,4,5,56])),meta:{depIndex:3}},{name:k.SPORT,path:"/home/sport",component:()=>V(()=>import("./2_SportChunk.TyhyXs9P.js").then(e=>e.ag),__vite__mapDeps([0,1,3,4,5,6,7,8,9,28])),meta:{depIndex:2}},{name:k.SPORT_RECORD,path:"/home/sport-record",component:()=>V(()=>import("./RecordIndex.DR3yNzA9.js"),__vite__mapDeps([0,1,3,4,5,6,7,8,9,28,57,58])),meta:{depIndex:3}},{name:k.SPORT_EVENT_DETAIL,path:"/home/sport-event-detail",component:()=>V(()=>import("./DetailIndex.C5FaCNHx.js"),__vite__mapDeps([0,1,3,4,5,6,7,8,9,28,59])),meta:{depIndex:3}},{name:k.SPORT_FILTER,path:"/home/sport-filter",component:()=>V(()=>import("./FilterIndex.sNJOtL5m.js"),__vite__mapDeps([0,1,3,4,5,6,7,8,9,28,60])),meta:{depIndex:3}},{name:k.SPORT_RESULT,path:"/home/sport-result",component:()=>V(()=>import("./ResultIndex.BANqTJSW.js"),__vite__mapDeps([0,1,3,4,5,6,7,8,9,28,61])),meta:{depIndex:3}},{name:k.SPORT_RULE,path:"/home/sport-rule",component:()=>V(()=>import("./RuleIndex.dptRIYb3.js"),__vite__mapDeps([0,1,3,4,5,6,7,8,9,28,62])),meta:{depIndex:3}},{name:k.ABOUT_US,path:"/home/about",beforeEnter:async(e,t)=>{const{useAboutUsStore:n}=await V(async()=>{const{useAboutUsStore:r}=await Promise.resolve().then(()=>Kv);return{useAboutUsStore:r}},void 0),a=await n().getAboutUsInfoData();return t.name!==k.ABOUT_US_DETAIL&&(a==null?void 0:a.length)===1?{name:k.ABOUT_US_DETAIL,params:{id:String(a[0].id)},query:e.query}:!0},component:()=>V(()=>import("./HomeIndex.BSdqhIyf.js"),__vite__mapDeps([0,1,3,4,5,63])),meta:{depIndex:2}},{name:k.ABOUT_US_DETAIL,path:"/home/about-detail/:id",beforeEnter:async e=>{var r;const{useAboutUsStore:t}=await V(async()=>{const{useAboutUsStore:s}=await Promise.resolve().then(()=>Kv);return{useAboutUsStore:s}},void 0),n=t(),o=Number((r=e.params.id)!=null?r:0),a=n.filteredAboutUsList.find(s=>
104s.id===o);return(!a||typeof a.content!="string")&&await n.getAboutUsInfoData(),!0},component:()=>V(()=>import("./DetailIndex.v2DnAwcx.js"),__vite__mapDeps([0,1,3,4,5,64])),meta:{depIndex:3}},{name:k.EVENT_SEARCH,path:"/home/event/search",component:()=>V(()=>import("./EventSubPageChunk.DBmz0utZ.js").then(e=>e.a4),__vite__mapDeps([0,1,3,4,5,6,7,8,9,10,11,23,24,25,26])),meta:{depIndex:2}},{name:k.EVENT_DETAIL,path:"/home/event/detail",component:()=>V(()=>import("./2_ItemIndexChunk.CM_BzGjR.js"),__vite__mapDeps([0,1,3,4,5,6,7,8,9,65])),meta:{depIndex:3}},{name:k.RECEIVERECORDS,path:"/home/receive-records",component:()=>V(()=>import("./ReceiveRecordsIndex.VVb433nd.js"),__vite__mapDeps([0,1,3,4,5,6,7,8,9,66])),meta:{depIndex:3,title:k.RECEIVERECORDS}},{name:k.RECEIVE_FORM,path:"/home/receive-form",component:()=>V(()=>import("./ReceiveFormIndex.Dwgb3BK2.js"),__vite__mapDeps([0,1,3,4,5,6,7,8,9,23,67])),meta:{depIndex:3,title:k.RECEIVERECORDS}},{name:k.BETTING_RECORDS,path:"/home/betting-records",component:()=>V(()=>import("./BettingRecordsIndex.CdHIwIaQ.js"),__vite__mapDeps([0,1,3,4,5,68])),meta:{depIndex:3,title:k.BETTING_RECORDS}},{name:k.INTEGRALS,path:"/home/integrals",component:()=>V(()=>import("./IntegralsIndex.B7yFLe6D.js"),__vite__mapDeps([0,1,3,4,5,6,7,8,9,69])),meta:{depIndex:3,title:k.INTEGRALS}},{name:k.INVEST_NOW,path:"/home/invest-now",component:()=>V(()=>import("./InvestNowIndex.CYdd-2k1.js"),__vite__mapDeps([0,1,3,4,5,6,7,8,9,70])),meta:{depIndex:3,title:k.INVEST_NOW}},{name:k.NOTICE,path:"/home/notice",component:()=>V(()=>import("./2_NoticePageChunk.BuXLUQrV.js").then(e=>e.N),__vite__mapDeps([0,1,3,4,5,6,7,8,9,23,10,15,16,71])),meta:{depIndex:2}},{name:k.NOTICE_DETAIL,path:"/home/notice/detail",component:()=>V(()=>import("./2_NoticePageChunk.BuXLUQrV.js").then(e=>e.e),__vite__mapDeps([0,1,3,4,5,6,7,8,9,23,10,15,16,71])),meta:{depIndex:3}},{name:k.FEEDBACK_DETAIL,path:"/home/feedback-detail",component:()=>V(()=>import("./2_NoticePageChunk.BuXLUQrV.js").then(e=>e.F),__vite__mapDeps([0,1,3,4,5,6,7,8,9,23,10,15,16,71])),meta:{depIndex:3,title:k.FEEDBACK_DETAIL}},{name:k.CUSTOMERS_QUESTION_SEARCH,path:"/home/customers-question-search",component:()=>V(()=>import("./2_NoticePageChunk.BuXLUQrV.js").then(e=>e.C),__vite__mapDeps([0,1,3,4,5,6,7,8,9,23,10,15,16,71])),meta:{depIndex:3,title:k.FEEDBACK_DETAIL}},{name:k.SERVICE_IFRAME,path:"/home/service-iframe",component:()=>V(()=>import("./ServiceIframeIndex.BeCwZpAB.js"),__vite__mapDeps([0,1,3,4,5,72])),meta:{depIndex:3,title:k.SERVICE_IFRAME}},{name:k.SETTING,path:"/home/setting",component:()=>V(()=>import("./SettingIndex.C1NbeDO7.js"),__vite__mapDeps([0,1,3,4,5,73,6,7,8,9,74,75,76,77,78])),meta:{depIndex:2,private:!0,whiteRoleType:[qt.Demo]}},{name:k.UPDATE_AVATOR,path:"/home/setting/updateAvator",component:()=>V(()=>import("./UpdateAvatorIndex.DAWpWf0i.js"),__vite__mapDeps([0,1,3,4,5,79])),meta:{depIndex:3,private:!0,whiteRoleType:[qt.Demo]}},{name:k.UPDATE_REALNAME,path:"/home/setting/updateRealName",component:()=>V(()=>import("./UpdateRealNameIndex.l-trLCbu.js"),__vite__mapDeps([0,80,1,3,81,4,5,6,82,83,84])),meta:{depIndex:3,private:!0,whiteRoleType:[qt.Demo]}},{name:k.WITHDRAW,path:"/home/withdraw",component:()=>V(()=>import("./0_WithdrawChunk.B8tEuVYo.js").then(e=>e.I),__vite__mapDeps([0,1,3])),meta:{depIndex:2,private:!0,whiteRoleType:[qt.Demo]}},{name:k.WITHDRAWAL_RECORD_DETAILS,path:"/home/withdraw-record-detail",component:()=>V(()=>import("./2_WithdrawSubChunk.D8dmxAPL.js").then(e=>e.W),__vite__mapDeps([0,1,3,4,5,23,24,7,6,8,9,25,85,10,86])),meta:{depIndex:3,private:!0,whiteRoleType:[qt.Demo]}},{name:k.BETTING_TASK_DETAILS,path:"/home/betting-task-detail",component:()=>V(()=>import("./2_WithdrawSubChunk.D8dmxAPL.js").then(e=>e.B),__vite__mapDeps([0,1,3,4,5,23,24,7,6,8,9,25,85,10,86])),meta:{depIndex:3,private:!0,whiteRoleType:[qt.Demo]}},{name:k.CENTER_WALLET,path:"/home/center-wallet",component:()=>V(()=>import("./2_ReportChunk.CrEYjW3N.js").then(e=>e.N),__vite__mapDeps([0,1,23,3,4,5,24,7,6,8,9,25])),meta:{depIndex:2,private:!0}},{name:k.REPORT,path:"/home/report",component:()=>V(()=>import("./2_ReportChunk.CrEYjW3N.js").then(e=>e.O),__vite__mapDeps([0,1,23,3,4,5,24,7,6,8,9,25])),meta:{depIndex:2}},{name:k.ACCOUNT_DETAIL,path:"/home/account-detail",component:()=>V(()=>import("./AccountDetailIndex.BrxMfBEh.js"),__vite__mapDeps([0,1,3,4,5,7,6,8,87])),meta:{depIndex:3}},{name:k.BETTING_DETAIL,path:"/home/betting-detail",component:()=>V(()=>import("./BettingDetailIndex.ClHyaaMm.js"),__vite__mapDeps([0,1,3,4,5,7,6,8,23,24,9,25,88])),meta:{depIndex:3}},{name:k.PERSONAL_DAILY_REPORT,path:"/home/personal-daily-report",component:()=>V(()=>import("./PersonalDailyReportIndex.CTFR05TD.js"),__vite__mapDeps([0,1,3,23,4,5,24,7,6,8,9,25,89])),meta:{depIndex:3}},{name:k.PROMOTE,path:"/home/promote",component:()=>V(()=>import("./1_PromoteChunk.PKn1eerk.js").then(e=>e.y),__vite__mapDeps([0,1,3,4,5,7,6,8])),meta:{depIndex:2}},{name:k.CLUB_REBATE_MANAGEMENT,path:"/home/club-rebate",component:()=>V(()=>import("./1_ClubRebateChunk.DdJFd5ov.js").then(e=>e.d),__vite__mapDeps([0,1,3,4,5,7])),meta:{depIndex:2,private:!0}},{name:k.AGENT_CENTER,path:"/home/agent-center",component:()=>V(()=>import("./1_AgentCenterChunk.qBSEz8xL.js").then(e=>e.a5),__vite__mapDeps([0,1,3,4,5])),meta:{depIndex:2}},{name:k.CREDIT_MANAGE,path:"/home/credit-manage",component:()=>V(()=>
104import("./1_CreditManageChunk.Bq_SJDQj.js"),__vite__mapDeps([0,1,3,4,5,90])),meta:{depIndex:2}},{name:k.GENERALPROMOTINDEX,path:"/home/shareEarn",component:()=>V(()=>import("./GeneralPromotIndex.HJT37g6j.js"),__vite__mapDeps([0,1,3,4,5,7,6,8,91])),meta:{depIndex:2}},{name:k.SHAREHOLDING,path:"/home/shareholding",component:()=>V(()=>import("./ShareholdingIndex.DI_w3uzV.js"),__vite__mapDeps([0,1,23,3,4,5,24,7,6,8,9,25,92])),meta:{depIndex:2}},{path:"/home/promote/myTransferRecord",name:k.MYTRANSFERRECORD,component:()=>V(()=>import("./TransferRecordIndex.CRhfC4bE.js"),__vite__mapDeps([0,1,3,4,5,7,6,8,93])),meta:{title:k.MYTRANSFERRECORD,depIndex:2}},{path:"/home/promote/clubAgentCalculator",name:k.CLUB_AGENT_CALCULATOR,component:()=>V(()=>import("./ClubAgentCalculatorIndex.y9ljpHcy.js"),__vite__mapDeps([0,1,3,4,5,7,6,8,94])),meta:{depIndex:2}},{name:k.KYC,path:"/home/kyc",component:()=>V(()=>import("./KYCIndex.DYyqKE0S.js"),__vite__mapDeps([0,1,3,4,5,19,20])),meta:{depIndex:2,private:!0,dialogLimit:{include:[]}}},{name:k.KYC_FACE,path:"/home/kycFace",component:()=>V(()=>import("./FaceIndex.Cd-0qHbV.js"),__vite__mapDeps([0,1,3,4,5,19,95])),meta:{depIndex:2,private:!0,dialogLimit:{include:[]}}},{name:k.IDSelfie,path:"/home/idSelfie",component:()=>V(()=>import("./IDSelfieIndex.vgJ_yO9v.js"),__vite__mapDeps([0,1,3,4,5,96])),meta:{depIndex:2,private:!1,dialogLimit:{include:[]}}},{name:k.SECURITY,path:"/home/security",component:()=>V(()=>import("./SecurityIndex.CCfdtCxE.js"),__vite__mapDeps([0,1,3,4,5,6,80,81,82,83,97])),meta:{depIndex:2,private:!0,whiteRoleType:[qt.Demo],dialogLimit:{exclude:["needKycValidate"]}}},{name:k.DEVICE_INFO,path:"/home/device-info",component:()=>V(()=>import("./DeviceInfoIndex.BA8AWdI4.js"),__vite__mapDeps([0,1,3,4,5,98,99])),meta:{depIndex:2,private:!0}},{name:k.CLAIM,path:"/home/claim",component:()=>V(()=>import("./3_ClaimChunk.DNjDxKDH.js").then(e=>e.C),__vite__mapDeps([0,1,3,4,5,23,24,7,6,8,9,25,100])),meta:{depIndex:2,private:()=>!Wi().claimToken}},{name:k.APPLY_CLAIM,path:"/home/apply-claim",component:()=>V(()=>import("./3_ClaimSubChunk.CMNjxr4_.js").then(e=>e.A),__vite__mapDeps([0,1,3,4,5,23,24,7,6,8,9,25,100,101])),meta:{depIndex:2,private:()=>!Wi().claimToken}},{name:k.COOKIE_POLICY,path:"/home/cookie-policy",component:()=>V(()=>import("./CookiePolicyIndex.BZRzqbwK.js"),__vite__mapDeps([0,1,3,4,5,102])),meta:{depIndex:2,private:!1}},{name:k.CLAIM_ORDER_DETAIL,path:"/home/claim-order-detail",component:()=>V(()=>import("./3_ClaimSubChunk.CMNjxr4_.js").then(e=>e.O),__vite__mapDeps([0,1,3,4,5,23,24,7,6,8,9,25,100,101])),meta:{depIndex:3,private:()=>!Wi().claimToken}},{name:k.FORBIDDEN_SELF,path:"/home/self-exclusion",component:()=>V(()=>import("./ForbiddenSelfIndex.CTlsmn6I.js"),__vite__mapDeps([0,1,3,4,5,98,80,103])),meta:{private:!0,depIndex:2}},{name:k.EXTERNAL_EMBEDDED,path:"/home/external-embedded",component:()=>V(()=>import("./ExternalEmbedded.E5BqcFoH.js"),__vite__mapDeps([0,1,3,4,5,104])),meta:{depIndex:2}},{name:k.CLUB_APPLY,path:"/home/club-apply",component:()=>V(()=>import("./ApplyIndex.DL4DalXs.js"),__vite__mapDeps([0,1,3,4,5,6,7,8,9,23,10,15,16,71,105,24,25,106,107])),meta:{private:!0,depIndex:2}},{path:"/home/event/item/:template/:eventId",component:Xp,props:{mapping:{redirectTo:k.EVENT_DETAIL,paramsToQuery:["template","eventId"]}}},{path:"/home/withdraw-record-detail/:orderNo",component:Xp,props:{mapping:{redirectTo:k.WITHDRAWAL_RECORD_DETAILS,paramsToQuery:[{from:"orderNo",to:"orderNo"}]}}},{path:"/home/betting-task-detail/:id",component:Xp,props:{mapping:{redirectTo:k.BETTING_TASK_DETAILS,paramsToQuery:[{from:"id",to:"id"}]}}},{name:k.WITHDRAW_TASK,path:"/home/withdraw-task-detail",component:()=>V(()=>import("./WithdrawTaskDetailIndex.u0bxz23T.js"),__vite__mapDeps([0,1,3,4,5,6,7,8,9,85,108,109])),meta:{depIndex:3}},{name:k.LOTTERY_HOME,path:"/home/lottery",component:()=>V(()=>import("./HomeIndex.DXvdTQl2.js").then(e=>e.H),__vite__mapDeps([0,1,3,4,5,6,7,8,9,28,110,111,112,113])),meta:{depIndex:3}},{name:k.LOTTERY_RECORD,path:"/home/lottery/record",component:()=>V(()=>import("./RecordIndex.DaT3fFi5.js"),__vite__mapDeps([0,1,3,4,5,6,7,8,9,28,110,111,114])),meta:{depIndex:4}},{name:k.LOTTERY_HISTORY,path:"/home/lottery/history",component:()=>V(()=>import("./HistoryIndex.Bt2Z-3EI.js"),__vite__mapDeps([0,1,3,4,5,111,112])),meta:{depIndex:4}},{name:k.PLAZZA,path:"/home/plazza",component:()=>V(()=>import("./PublicityPlazzaIndex.Dw8ymejW.js"),__vite__mapDeps([0,1,3,4,5,6,10,115,116])),meta:{depIndex:2}},{name:k.PLAZZA_PUBLISHER,path:"/home/plazza/publisher/:id",component:()=>V(()=>import("./PublisherIndex.CDgaQkvz.js"),__vite__mapDeps([0,1,3,4,5,6,10,115,117])),meta:{depIndex:3}},{name:k.PLAZZA_POST,path:"/home/plazza/post",component:()=>V(()=>import("./PlazzaPostIndex.BIii4fk6.js"),__vite__mapDeps([0,1,3,4,5,118,23,119])),meta:{depIndex:3,private:!0,whiteRoleType:[qt.Demo]}},{name:k.PLAZZA_SEARCH,path:"/home/plazza/search",component:()=>V(()=>import("./PlazzaSearchPageIndex.B8X3uhVr.js"),__vite__mapDeps([0,1,3,4,5,6,10,115,120])),meta:{depIndex:3}},{name:k.MATCH_NEWS,path:"/home/match-news",component:()=>V(()=>import("./index.CxRWTigt.js"),__vite__mapDeps([0,1,3,4,5,6,10,46,7,8,9,28,121,122,29,123,124]))},{name:k.MATCH_NEWS_SEARCH,path:"/home/match-news-search",component:()=>V(()=>import("./index.CzmN0AqO.js"),__vite__mapDeps([0,1,3,4,5,6,10,123,125]))},{name:k.MATCH_NEWS_DETAIL,path:"/home/match-news-detail",component:()=>V(()=>import("./index.DR9iA0f4.js"),__vite__mapDeps([0,1,3,4,5,6,10,46,7,8,9,28,121,122,126,127]))},{name:k.MALL,path:"/home/mall",component:()=>V(()=>import("./HomeIndex.CsAxsjqG.js"),__vite__mapDeps([0,1,3,4,5,6,128,129,7,8,9,10,11,23,24,25,26,82,130,74,131,132])),meta:{depIndex:2,private:!1}},{name:k.MALL_RECORDS,path:"/home/mall-records",component:()=>V(()=>import("./RecordsIndex.BiGazLZH.js"),__vite__mapDeps([0,1,3,4,5,6,128,129,7,8,9,82,133])),meta:{depIndex:3,private:!1}}]},{name:k.PAGE_DOWNLOAD,path:"/home/download",component:()=>V(()=>import("./DownloadIndex.7X7dJhTB.js"),__vite__mapDeps([0,1,3,4,5,6,10,134,135])),meta:{depIndex:2,dialogLimit:{include:["appDownloadTutorialPopup","downloadPWADialogInHome","downloadShortcut","downloadShortcutGuide","kwaiNonsupportDialog"]}}},{path:"/loading-game",name:k.LOADING_GAME,component:()=>V(()=>import("./LoadingGameIndex.BKp64cUL.js"),__vite__mapDeps([0,1,2,14,136]))},{path:"/:pathMatch(.*)*",redirect:{name:k.ROOT}}],dd=aP({history:rP("/"),routes:ase,scrollBehavior:kj});Hj(dd);HY(dd);Bj(dd);const ky=e=>{try{["Unable to preload","Failed to fetch","ChunkLoadError","Loading CSS chunk","Unexpected token '<'","Loading chunk"].some(t=>{var n;return(n=e==null?void 0:e.includes)==null?void 0:n.call(e,t)})&&ve("ALIVE_CHECK").emit()}catch(t){}};dd.onError(e=>{nt.error(`route error: ${e.message}`),e.message!=="cancel"&&ve("ALIVE_CHECK").emit({source:"route"})});window.onerror=function(e,t,n,o,a){try{const r=typeof e=="string"?e:(a==null?void 0:a.message)||"";ky(r)}catch(r){}};window.addEventListener("unhandledrejection",e=>{try{const t=(e==null?void 0:e.reason)||"";ky(t)}catch(t){}});const rse=async()=>{Lt.end(Lt.target.appSetup,Lt.target.appAsyncStart),Lt.start(Lt.target.appAsyncStart),console.time("persistent ready"),await Promise.race([Ym.memory.ready(),zn(500)]),c
104onsole.timeEnd("persistent ready");const e=U_(fj);e.config.errorHandler=function(t,n,o){var a;try{const r=t.message;ky(r);const s=[`[Vue error]: ${o}`,t];console.error(...s);const i=(a=t.stack)==null?void 0:a.split(` 105`),c=i==null?void 0:i.slice(0,2).join(" | ");ve("COMPONENT_ERROR").emit({message:c})}catch(r){}},e.config.warnHandler=function(t,n,o){if((n==null?void 0:n.$.type.name)==="Swiper"&&/Slot ".*" invoked outside of the render function/.test(t)||/Extraneous non-props attributes.*\(data-v-inspector\).*passed to component but could not be automatically inherited/.test(t))return;const a=[`[Vue warn]: ${t}`,o];console.warn(...a)},Ln.set("App",e),await kB().catch(()=>{});{const t=Nw();t.use(kw({key:Ib.key})),e.use(t),e.use(dd),e.use(JT.i18n),e.use({install:()=>{e.component("LivePlayer",gn({loader:async()=>(Object.assign(window,{Vue:sP}),await Gg([{src:"/libs/[email protected]/dist/component/liveplayer-lib.min.js"},{src:"/libs/[email protected]/dist/component/liveplayer-component.min.js"}]).serial(),window.LivePlayer.default)}))}}),e.use({install:()=>{e.component("QrcodeVue",gn({loader:()=>V(()=>import("./BaseQrCode.DS5Qb9VQ.js"),[])}))}})}await Dj(),e.mount("#app"),_j().catch(()=>{}),Lt.end(Lt.target.appAsyncStart,Lt.target.appMounted)},sse=async()=>{console.log("lobbyPwa: try get oss");try{const e=YE();if(!e)throw new Error("dont have lobby_iframe_oss");const{lobby_domain:t}=await GE(e);if(t!=null&&t.length)return console.log("lobbyPwa: oss respones domans is",t),Lb(t),j0(!1);throw new Error(`get ossUrl :${e} is error `)}catch(e){return console.log("lobbyPwa: get oss error",e),""}},ise=async e=>{try{const t=new URL(e).origin,{domain:n}=await Ab(t);return console.log("lobbyPwa: check url is actived",e),n}catch(t){return console.log("lobbyPwa: check url is dead",e,t),j0()}},j0=async(e=!0)=>{try{const t=nL();if(console.log("lobbyPwa: domain list is",t),t.length===0)throw new Error("domains not find");const{domain:n}=await FE(t);return console.log("lobbyPwa: get fast url is",n),n}catch(t){return e?sse():""}},cse=e=>{const t=Zs(e),n=t._ti,o=window.btoa(String(Date.now())),a=VE();return n&&(t._et=o),a&&(t._ti=a,t._et=o),t._ti&&Object.assign(t,pb(zE()),hb(jE())),t},lse=async()=>{console.group("getAccessibleDomain");const{isiOSWebClip:e}=Qe(),t=aL(),n=rL(),{webClipData:o}=Zs(t);let a={};if(o&&e)try{const c=window.atob(o);a=JSON.parse(c)}catch(c){console.log("lobbyPwa: decode err",c)}console.log("lobbyPwa: currentDomain ",t);const r=await ise(t),s=Ra(r,{...a,...cse(t),webClipData:void 0,"fixed.share":1,...n!=null?n:{},restore:1});r&&oL(s);const i=r&&s;return console.log("lobbyPwa: response url",i),console.groupEnd(),i},use=/^(?:javascript|data|vbscript):/,dse=/[\s\x00-\x1f\x7f-\x9f]/g,mse=(e,t="href")=>{if(!e)return;const n=e.replace(dse,"").toLowerCase();use.test(n)||(t==="winOpen"?window.open(e,"_blank"):location.href=e)},gse=(e=[],t)=>{const{isNewiOSWebClip:n,isH5Shortcut:o}=Qe(),{isIOS:a}=ft().os,{isIpad:r}=ft().device;(n||(a||r)&&o)&&window.CGFrameStorageProxy&&window.CGFrameStorageProxy.registerParentProxy();const s=new Set([window.location.origin]),i=l=>{if(l)try{s.add(new URL(l).origin)}catch(u){}};e.forEach(i);const c=l=>{var u;try{if(typeof l.data!="string")return;const d=JSON.parse(l.data),{type:m,payload:g}=d;if(s.has(l.origin))switch(t==null||t(m),console.log("[lobbyPwa]: Listener",m,g),m){case Mn.EVENT_DESTROY_SKELETON_SCREEN:window.initSplash.destroy();break;case Mn.EVENT_UPDATE_LOBBY_DOMAIN:Lb(g.lobby_domain),((u=g.lobby_domain)!=null?u:[]).forEac
105h(i);break;case Mn.EVENT_UPDATE_TOKEN:WE(g.token);break;case Mn.EVENT_SET_THEMECOLOR:window.updateThemeColor(g.themeColor);break;case Mn.EVENT_UPDATE_LOBBY_OSS:$E(g.oss_domain);break;case Mn.EVENT_SHARE:navigator.share&&navigator.share(g);break;case Mn.EVENT_JPUSH_PARAMS:(async()=>{try{oT(d)}catch(f){console.error("Failed to load webPush",f)}})();break;case Mn.EVENT_OPEN_URL:mse(g.url,g.type);break;case Mn.EVENT_UPDATE_URL_PARAMS:qE(g);break;default:return}}catch(d){console.log("lobbyPwa: Listener error",d)}};window.addEventListener("message",c)},fse={"pwa-iframe":"_pwa-iframe_r9hqj_91"},[pse]=Wt("pwa-iframe"),hse=le({name:pse,setup(){const e=O(),t=()=>{e.value&&setTimeout(()=>{window.initSplash.destroy()},5e3)};return iP(async()=>{const n=await lse();n&&(e.value=n,gse([n,...nL()]))}),()=>w(gt,null,[e.value&&w("iframe",{class:{[fse["pwa-iframe"]]:!0,"pwa-iframe":!0},allow:"fullscreen; geolocation; autoplay; encrypted-media; clipboard-write; clipboard-read; accelerometer; web-share; publickey-credentials-get; publickey-credentials-create;",allowfullscreen:!0,src:e.value,onLoad:t},null)])}}),_se=le({setup(){return()=>w(hse,null,null)}}),bse=async()=>{const e=U_(_se),t=Nw();t.use(kw({key:Ib.key})),e.use(t),e.mount("#app")};Ln.initialize();Nz();kz();(()=>{const e=new URLSearchParams(location.search),t=e.get("fbPixelId");t&&e.get("pwaLaunch")==="1"&&window.top!==window&&V(async()=>{const{injectFbSdkAndPageView:n}=await import("./fb.sdk.D6D3yM6o.js");return{injectFbSdkAndPageView:n}},[]).then(({injectFbSdkAndPageView:n})=>{n(t)})})();xz();const yse=e=>{try{let t=!1;if((()=>{const n=sessionStorage.getItem("abcdefg_open");(n==="true"||n==="eruda"||n==="vconsole")&&(t=n==="true"?!0:n)}
105)(),Ln.set("abcdefg_open",t),t){const o={eruda:{gloablVar:"eruda",url:"/libs/eruda/eruda.js",setup:()=>{window.eruda.init()}},vconsole:{gloablVar:"VConsole",url:"/libs/[email protected]/dist/vconsole.min.js",setup:()=>{try{new window.VConsole}catch(a){}}}}[t===!0?"eruda":t];if(!window[o.gloablVar]){const a=document.createElement("script"),r=document.querySelector("body");a.setAttribute("src",o.url),r==null||r.appendChild(a),a.onload=()=>{o.setup(),e()},a.onerror=()=>{e()}}}else e()}catch(t){e()}},rm=()=>{window.__ONLY_PRELOAD_ASSETS||yse(()=>{console.time("cache initialize"),qe.initialize(),console.timeEnd("cache initialize"),Bz()?bse():rse()})};var iw,cw,lw,sm,uw;if(window.LOBBY_SITE_CONFIG.humanVerify>-1&&!localStorage.getItem("wg.visited"))try{const e={zh:'<div class="wg antiban"><div class="antiban-box"><p class="antiban-message">å½åç½ç«è®¿é®éè¾å¤§ï¼è¯·ç¹å»æé®ç»§ç»è®¿é®</p><a class="antiban-forward">è¿å
¥ç½ç«</a></div></div>',en:'<div class="wg antiban"><div class="antiban-box"><p class="antiban-message">The current website has a large number of visits, please click the button to continue visiting.</p><a class="antiban-forward">Enter the website</a></div></div>'};document.body.insertAdjacentHTML("beforeend",(cw=(iw=window.LOBBY_SITE_CONFIG)==null?void 0:iw.languageCode)!=null&&cw.includes("zh")?e.zh:e.en);const t=window.setTimeout(()=>{var n;rm(),(n=document.querySelector(".antiban"))==null||n.remove()},window.LOBBY_SITE_CONFIG.humanVerify*1e3);(lw=document.querySelector(".antiban .antiban-forward"))==null||lw.addEventListener("click",()=>{var n;clearTimeout(t),localStorage.setItem("wg.visited","1"),rm(),(n=document.querySelector(".antiban"))==null||n.remove()}),(uw=(sm=window.jsBridge)==null?void 0:sm.getWGConfigInfo)==null||uw.call(sm)}catch(e){rm()}else rm();export{ac as $,we as A,pl as B,wR as C,TH as D,_D as E,va as F,DH as G,ye as H,_f as I,ma as J,OH as K,RZ as L,RH as M,MH as N,PH as O,re as P,Ni as Q,yr as R,Zt as S,Wb as T,mr as U,jn as V,kU as W,xa as X,_t as Y,ra as Z,kb as _,da as a,zP as a$,_o as a0,To as a1,eo as a2,nt as a3,ns as a4,Do as a5,Vue as a6,Oo as a7,pa as a8,Tue as a9,k as aA,Co as aB,fi as aC,Gg as aD,Ge as aE,wr as aF,pq as aG,cn as aH,Ar as aI,Kt as aJ,nie as aK,to as aL,Yae as aM,nn as aN,Be as aO,_ae as aP,fn as aQ,UB as aR,VB as aS,WB as aT,Jse as aU,eie as aV,tie as aW,yle as aX,Vce as aY,$v as aZ,Nme as a_,y_ as aa,v_ as ab,Jo as ac,Aue as ad,Zv as ae,KO as af,uge as ag,UO as ah,lge as ai,nl as aj,TG as ak,RG as al,DG as am,Wh as an,Vh as ao,Su as ap,die as aq,Tt as ar,ed as as,Wce as at,mue as au,cue as av,ub as aw,bn as ax,Eu as ay,Xn as az,ll as b,cf as b$,kme as b0,Bme as b1,rf as b2,xv as b3,sn as b4,st as b5,yV as b6,ot as b7,jg as b8,Ls as b9,wue as bA,Iue as bB,IO as bC,yy as bD,xK as bE,BQ as bF,iue as bG,uce as bH,RD as bI,sue as bJ,pi as bK,go as bL,qce as bM,Yce as bN,ZL as bO,pg as bP,Et as bQ,Xm as bR,on as bS,XL as bT,op as bU,Z as bV,jt as bW,QP as bX,Gu as bY,$ce as bZ,k0 as b_,dr as ba,ob as bb,Yse as bc,fJ as bd,_e as be,JO as bf,Io as bg,vy as bh,Ga as bi,gC as bj,_J as bk,po as bl,rge as bm,SO as bn,AO as bo,Ve as bp,fg as bq,_ue as br,TD as bs,Ji as bt,hme as bu,MK as bv,dge as bw,es as bx,mge as by,Rb as bz,Wt as c,Zn as c$,moe as c0,tc as c1,sp as c2,Vt as c3,un as c4,Sd as c5,ta as c6,LV as c7,tL as c8,hue as c9,Oue as cA,mR as cB,gge as cC,Rue as cD,Due as cE,Lue as cF,Lde as cG,ze as cH,cx as cI,qs as cJ,Ble as cK,ice as cL,sce as cM,qP as cN,ex as cO,sg as cP,dW as cQ,uW as cR,fV as cS,Fce as cT,Rh as cU,Oe as cV,a_ as cW,Gce as cX,Uce as cY,Ece as cZ,ml as c_,wV as ca,Dc as cb,lT as cc,_r as cd,Uu as ce,vo as cf,due as cg,uue as ch,cD as ci,$e as cj,rce as ck,vue as cl,en as cm,KP as cn,nh as co,dt as cp,qg as cq,rue as cr,RE as cs,Ca as ct,fD as cu,eS as cv,sge as cw,age as cx,oa as cy,OK as cz,Ke as d,hI as d$,I3 as d0,A3 as d1,VO as d2,PO as d3,ai as d4,qb as d5,ol as d6,$se as d7,oi as d8,at as d9,PR as dA,tz as dB,yne as dC,sQ as dD,Eg as dE,vk as dF,ld as dG,Yo as dH,qt as dI,Ku as dJ,oY as dK,uh as dL,vme as dM,_ie as dN,$de as dO,$ge as dP,ct as dQ,vu as dR,IL as dS,GG as dT,sA as dU,Rt as dV,Qe as dW,uM as dX,FG as dY,VG as dZ,qG as d_,TT as da,
105km as db,xo as dc,rt as dd,On as de,Xae as df,Qb as dg,bae as dh,rc as di,RT as dj,X5 as dk,tR as dl,ia as dm,e$ as dn,$c as dp,QD as dq,One as dr,PM as ds,OM as dt,RM as du,sd as dv,fI as dw,oy as dx,Z5 as dy,zue as dz,ve as e,yme as e$,cV as e0,_le as e1,jG as e2,EG as e3,Kg as e4,QV as e5,LR as e6,$G as e7,YG as e8,XV as e9,Rs as eA,IM as eB,Nae as eC,Dse as eD,n6 as eE,J9 as eF,tT as eG,iW as eH,hs as eI,Ot as eJ,gr as eK,Mn as eL,Qs as eM,IR as eN,nz as eO,zn as eP,AM as eQ,aue as eR,qf as eS,fx as eT,SV as eU,B0 as eV,Fm as eW,CV as eX,$9 as eY,Nde as eZ,KD as e_,ble as ea,ple as eb,HG as ec,xG as ed,QB as ee,Yle as ef,BW as eg,of as eh,ez as ei,Zle as ej,h4 as ek,Ir as el,Re as em,aie as en,n5 as eo,Dq as ep,gg as eq,gV as er,Ale as es,pV as et,vL as eu,yl as ev,th as ew,fR as ex,Eo as ey,eW as ez,Xs as f,lz as f$,Mr as f0,rI as f1,ny as f2,Cme as f3,t_ as f4,zle as f5,Y9 as f6,m$ as f7,hv as f8,Q9 as f9,Rx as fA,EA as fB,kue as fC,Lf as fD,pge as fE,Vu as fF,Ede as fG,fl as fH,Sn as fI,Rde as fJ,Gi as fK,Fc as fL,Jae as fM,sre as fN,Ome as fO,Tme as fP,Ime as fQ,iz as fR,y$ as fS,xg as fT,An as fU,lx as fV,ft as fW,Wg as fX,Vg as fY,qe as fZ,AL as f_,mM as fa,dde as fb,CM as fc,rre as fd,are as fe,ode as ff,Zo as fg,Rse as fh,Jle as fi,ND as fj,MD as fk,CR as fl,M0 as fm,I9 as fn,Wr as fo,Ny as fp,UG as fq,rR as fr,Qce as fs,pie as ft,hie as fu,Lx as fv,bie as fw,yie as fx,o_ as fy,Zce as fz,pme as g,x0 as g$,fu as g0,Vae as g1,qae as g2,zae as g3,$ae as g4,tre as g5,as as g6,$i as g7,Fue as g8,kc as g9,Lme as gA,Rme as gB,Ame as gC,ere as gD,nf as gE,N0 as gF,Lle as gG,jae as gH,nre as gI,SD as gJ,AD as gK,ID as gL,LD as gM,CD as gN,lle as gO,mle as gP,fle as gQ,r_ as gR,LK as gS,Hs as gT,yD as gU,gD as gV,wn as gW,VP as gX,tf as gY,fge as gZ,mf as g_,co as ga,dE as gb,Mue as gc,Wi as gd,FH as ge,kH as gf,UQ as gg,fce as gh,gce as gi,Cl as gj,Fa as gk,gJ as gl,$o as gm,Yb as gn,Jn as go,kde as gp,Fi as gq,nx as gr,dd as gs,Qae as gt,CQ as gu,NO as gv,MR as gw,bf as gx,Mme as gy,dz as gz,fme as h,uD as h$,qL as h0,BO as h1,LH as h2,toe as h3,gf as h4,Kb as h5,Tde as h6,Ode as h7,UD as h8,aI as h9,bge as hA,CJ as hB,ty as hC,rle as hD,$B as hE,Ht as hF,ju as hG,vge as hH,Ese as hI,_u as hJ,Oi as hK,Iae as hL,Sge as hM,sb as hN,VT as hO,M4 as hP,io as hQ,rS as hR,vde as hS,xr as hT,BI as hU,cr as hV,JL as hW,Nc as hX,LG as hY,Qde as hZ,mD as h_,AR as ha,W9 as hb,ED as hc,qle as hd,yQ as he,eue as hf,D0 as hg,p4 as hh,oz as hi,TX as hj,kce as hk,EQ as hl,dA as hm,xse as hn,FB as ho,BB as hp,HB as hq,GB as hr,Ut as hs,XT as ht,TL as hu,Ume as hv,mV as hw,yge as hx,jP as hy,Ki as hz,yT as i,cT as i$,eu as i0,Sme as i1,Mi as i2,Os as i3,rg as i4,Pb as i5,Pce as i6,mie as i7,_ce as i8,Ce as i9,rme as iA,ame as iB,PD as iC,dme as iD,lD as iE,mme as iF,ume as iG,Mb as iH,cce as iI,kT as iJ,ad as iK,jL as iL,Zse as iM,ele as iN,cd as iO,hf as iP,Le as iQ,Dce as iR,Mce as iS,Q3 as iT,W3 as iU,V3 as iV,q3 as iW,pD as iX,jde as iY,yL as iZ,Wu as i_,Xu as ia,lf as ib,U0 as ic,Pae as id,KL as ie,Ob as ig,Dae as ih,$3 as ii,Ui as ij,zL as ik,cle as il,bD as im,gb as io,tI as ip,tme as iq,nme as ir,ome as is,iD as it,gue as iu,dD as iv,ime as iw,sme as ix,lme as iy,cme as iz,EO as j,mJ as j$,UZ as j0,vf as j1,qT as j2,Uh as j3,WG as j4,LM as j5,sC as j6,FQ as j7,zG as j8,F0 as j9,Bae as jA,dre as jB,Pse as jC,Ose as jD,xD as jE,HD as jF,MO as jG,Wue as jH,mh as jI,wne as jJ,DM as jK,WT as jL,Ea as jM,aM as jN,T4 as jO,ZX as jP,BT as jQ,Rne as jR,WD as jS,rM as jT,lM as jU,FD as jV,jle as jW,Lse as jX,Tse as jY,nd as jZ,gh as j_,XP as ja,w2 as jb,e_ as jc,h3 as jd,$P as je,Vb as jf,JZ as jg,zc as jh,tn as ji,xL as jj,jm as jk,Qm as jl,hb as jm,pb as jn,aA as jo,CO as jp,yO as jq,vO as jr,Jv as js,Bc as jt,Pue as ju,r2 as jv,Zoe as jw,Ac as jx,sM as jy,WO as jz,Da as k,R0 as k$,hle as k0,uo as k1,Dde as k2,pM as k3,gM as k4,Ju as k5,vie as k6,fM as k7,q9 as k8,_M as k9,c0 as kA,a0 as kB,c2 as kC,dy as kD,m0 as kE,Ag as kF,my as kG,g0 as kH,gy as kI,f0 as kJ,L2 as kK,mn as kL,wf as kM,p0 as kN,If as kO,h0 as kP,fy as kQ,_0 as kR,py as kS,b0 as kT,Af as kU,y0 as kV,he as kW,Qt as kX,fo as kY,Cf as kZ,Wae as k_,X9 as ka,hM as kb,t7 as kc,Qo as kd,qW as ke,YW as kf,lI as kg,zW as kh,Pne as ki,Mne as kj,ude as kk,lde as kl,ore as km,cz as kn,LZ as ko,P0 as kp,O0 as kq,Hae as kr,Sf as ks,zb as kt,U3 as ku,d0 as kv,Sa as kw,uy as kx,KJ as ky,Ct as kz,wu as l,nR as l$,t6 as l0,Mt as l1,wb as l2,vz as l3,cA as l4,Hr as l5,Ch as l6,tQ as l7,OO as l8,SR as l9,xu as lA,wJ as lB,wle as lC,Jf as lD,tse as lE,Ta as lF,Wc as lG,Jg as lH,_F as lI,Bg as lJ,yM as lK,n7 as lL,Yr as lM,J8 as lN,tp as lO,bI as lP,hh as lQ,Cr as lR,RQ as lS,rX as lT,rQ as lU,mX as lV,OQ as lW,GQ as lX,C2 as lY,ts as lZ,Se as l_,cge as la,T$ as lb,it as lc,Cu as ld,_g as le,Zr as lf,L$ as lg,Ue as lh,_s as li,f3 as lj,jZ as lk,vM as ll,tO as lm,la as ln,ul as lo,rr as lp,ki as lq,Pf as lr,f2 as ls,os as lt,u0 as lu,ri as lv,e0 as lw,cb as lx,S2 as ly,Ry as lz,Ze as m,i_ as m$,cl as m0,zo as m1,Ide as m2,bg as m3,Hge as m4,Zl as m5,ZY as m6,jV as m7,jx as m8,VY as m9,n$ as mA,z9 as mB,t$ as mC,J5 as mD,Yue as mE,K9 as mF,G3 as mG,E3 as mH,que as mI,K5 as mJ,Q5 as mK,zt as mL,LT as mM,$ue as mN,r$ as mO,s$ as mP,JD as mQ,VD as mR,iI as mS,mde as mT,$D as mU,YD as mV,ZE as mW,su as mX,xT as mY,_de as mZ,xe as m_,KV as ma,jr as mb,gT as mc,Qz as md,ud as me,Nh as mf,WA as mg,o$ as mh,i$ as mi,u$ as mj,jue as mk,Que as ml,Kue as mm,Uo as mn,fT as mo,pI as mp,ay as mq,ade as mr,Vs as ms,v$ as mt,rde as mu,PT as mv,Om as mw,Qle as mx,V9 as my,a$ as mz,z as n,Y8 as n$,F5 as n0,U5 as n1,dI as n2,vce as n3,DR as n4,w3 as n5,rA as n6,ou as n7,b3 as n8,v3 as n9,Eme as nA,sr as nB,um as nC,tU as nD,Oce as nE,eU as nF,wme as nG,WJ as nH,Lc as
105nI,ly as nJ,bt as nK,eO as nL,X8 as nM,q8 as nN,Sde as nO,Nse as nP,vd as nQ,r7 as nR,Jme as nS,Xme as nT,z8 as nU,_K as nV,W8 as nW,G8 as nX,V8 as nY,F8 as nZ,$8 as n_,Age as na,Sce as nb,S3 as nc,xge as nd,tae as ne,_3 as nf,Ege as ng,Zue as nh,Jue as ni,ede as nj,nde as nk,y3 as nl,N3 as nm,P_ as nn,kge as no,gde as np,Xue as nq,Bge as nr,tde as ns,Uge as nt,Nb as nu,sc as nv,zce as nw,qse as nx,zne as ny,Gme as nz,ue as o,Sg as o$,Ib as o0,Qme as o1,a7 as o2,jme as o3,j8 as o4,ege as o5,qme as o6,zme as o7,ht as o8,nge as o9,WH as oA,xle as oB,Ule as oC,Wle as oD,Fle as oE,Ele as oF,xH as oG,Pde as oH,LW as oI,GH as oJ,Gle as oK,VA as oL,wde as oM,bo as oN,Xl as oO,Fb as oP,Ax as oQ,Gge as oR,Vge as oS,vae as oT,Sae as oU,Wge as oV,Fge as oW,Rq as oX,pR as oY,yae as oZ,Yde as o_,oO as oa,Nue as ob,Yme as oc,K8 as od,Tf as oe,oge as of,Z8 as og,e7 as oh,z0 as oi,Xle as oj,Cle as ok,lo as ol,CA as om,HH as on,AW as oo,TW as op,Hle as oq,aT as or,UH as os,EH as ot,Pme as ou,IW as ov,BH as ow,Vle as ox,$le as oy,kle as oz,J as p,Ro as p$,zC as p0,Yge as p1,qge as p2,Tae as p3,kW as p4,cE as p5,sk as p6,QN as p7,XN as p8,ZN as p9,W_ as pA,oL as pB,Bu as pC,ku as pD,Vde as pE,Vo as pF,oI as pG,ule as pH,gA as pI,lA as pJ,JB as pK,FZ as pL,id as pM,Sl as pN,QZ as pO,Tne as pP,Lne as pQ,Z9 as pR,j9 as pS,J3 as pT,yde as pU,d3 as pV,LL as pW,Ine as pX,Ane as pY,cI as pZ,ga as p_,JN as pa,ek as pb,tk as pc,Gf as pd,nk as pe,ok as pf,Use as pg,MI as ph,DI as pi,NI as pj,kI as pk,ov as pl,av as pm,nv as pn,qN as po,Uq as pp,rW as pq,Gde as pr,Wde as ps,Fde as pt,sle as pu,pn as pv,Ln as pw,CS as px,ib as py,oue as pz,sf as q,Hu as q$,nue as q0,Vv as q1,oM as q2,BG as q3,bJ as q4,Doe as q5,wH as q6,IH as q7,Tge as q8,pce as q9,rie as qA,mH as qB,tF as qC,bM as qD,vH as qE,lre as qF,cM as qG,hde as qH,Kle as qI,l5 as qJ,pue as qK,fue as qL,Kde as qM,Wy as qN,cde as qO,ide as qP,UM as qQ,p3 as qR,YO as qS,AH as qT,Ice as qU,Cce as qV,Lge as qW,Yt as qX,Rge as qY,Mde as qZ,FY as q_,Pge as qa,XO as qb,zZ as qc,ff as qd,Kse as qe,zse as qf,jse as qg,Vse as qh,Fg as qi,Fse as qj,tb as qk,Wse as ql,qk as qm,Xse as qn,Qse as qo,jI as qp,ji as qq,VI as qr,M5 as qs,C3 as qt,_d as qu,ck as qv,uP as qw,Xce as qx,Kae as qy,uA as qz,hD as r,Ws as r$,Kl as r0,tue as r1,Jl as r2,qde as r3,zde as r4,Q8 as r5,kse as r6,_c as r7,lW as r8,uL as r9,sD as rA,Nu as rB,tt as rC,Bce as rD,Hce as rE,QR as rF,Zj as rG,Jj as rH,QL as rI,HZ as rJ,Sy as rK,Cy as rL,NH as rM,Ace as rN,Rce as rO,Tce as rP,OD as rQ,gme as rR,XD as rS,dce as rT,YL as rU,pde as rV,gR as rW,qc as rX,nH as rY,nB as rZ,rb as r_,jce as ra,ir as rb,Kce as rc,DD as rd,dm as re,kG as rf,m5 as rg,Tle as rh,hR as ri,gle as rj,g3 as rk,Cde as rl,eF as rm,iie as rn,sie as ro,uie as rp,cie as rq,Pi as rr,lie as rs,Sle as rt,UU as ru,VZ as rv,$Z as rw,$z as rx,rj as ry,xce as rz,_a as s,Qie as s$,At as s0,wa as s1,Vi as s2,c_ as s3,tW as s4,IA as s5,Ude as s6,P3 as s7,_me as s8,r9 as s9,uf as sA,nle as sB,Gse as sC,fie as sD,ale as sE,ds as sF,zre as sG,jre as sH,aD as sI,WP as sJ,Ng as sK,lue as sL,bue as sM,rD as sN,AT as sO,Ly as sP,Qa as sQ,Lr as sR,Uie as sS,Gie as sT,Vie as sU,$ie as sV,Yie as sW,qie as sX,zie as sY,jie as sZ,Kie as s_,dL as sa,Nle as sb,Sm as sc,mU as sd,TM as se,sde as sf,Xte as sg,c5 as sh,z3 as si,j3 as sj,K3 as sk,Cue as sl,EE as sm,HE as sn,xE as so,yE as sp,_E as sq,Lt as sr,vn as ss,oie as st,iM as su,Wq as sv,gie as sw,lce as sx,EI as sy,ole as sz,pr as t,Nce as t$,Zie as t0,Die as t1,Mie as t2,Jie as t3,ece as t4,tce as t5,nce as t6,oce as t7,Tie as t8,Rie as t9,Mse as tA,FP as tB,lG as tC,fG as tD,pG as tE,Ple as tF,Mle as tG,wse as tH,Dle as tI,C8 as tJ,Fme as tK,Vr as tL,_ge as tM,Oge as tN,Cg as tO,Z3 as tP,jD as tQ,ZD as tR,yI as tS,WZ as tT,ile as tU,nI as tV,_I as tW,S$ as tX,dh as tY,e5 as tZ,mce as t_,Pie as ta,Oie as tb,Xie as tc,Lie as td,Aie as te,Nie as tf,Eie as tg,xie as th,Hie as ti,Bie as tj,fE as tk,Wie as tl,kie as tm,Fie as tn,Iie as to,gE as tp,WM as tq,Er as tr,TE as ts,Hq as tt,tle as tu,MG as tv,ige as tw,hT as tx,Bse as ty,Jce as tz,b_ as u,SA as u$,Am as u0,Hb as u1,Bb as u2,AF as u3,IF as u4,no as u5,T_ as u6,LF as u7,ba as u8,TF as u9,Ise as uA,Ase as uB,Sie as uC,Vk as uD,uO as uE,xme as uF,$C as uG,Hme as uH,ZA as uI,Gj as uJ,ry as uK,GD as uL,YZ as uM,qZ as uN,Rm as uO,ZP as uP,O_ as uQ,tM as uR,qD as uS,zD as uT,jge as uU,zge as uV,QW as uW,XW as uX,q0 as uY,Ade as uZ,qm as u_,mL as ua,al as ub,rl as uc,ms as ud,tge as ue,wX as uf,cu as ug,f6 as uh,m6 as ui,S6 as uj,dV as uk,De as ul,Wme as um,Id as un,ZR as uo,Vme as up,yue as uq,eme as ur,ih as us,Zde as ut,Jde as uu,O3 as uv,R3 as uw,Zme as ux,
105cK as uy,ec as uz,YP as v,bce as v$,Kge as v0,MS as v1,Jr as v2,hV as v3,Mh as v4,wie as v5,Cie as v6,Es as v7,Uue as v8,Hue as v9,fde as vA,Sr as vB,wL as vC,vT as vD,N_ as vE,Kme as vF,s_ as vG,B5 as vH,E5 as vI,G5 as vJ,x5 as vK,H5 as vL,k5 as vM,XG as vN,W5 as vO,hge as vP,HL as vQ,Y3 as vR,nM as vS,ace as vT,Xde as vU,Ka as vV,Bs as vW,qr as vX,XA as vY,$me as vZ,yce as v_,Bue as va,bu as vb,Eue as vc,xue as vd,Gue as ve,or as vf,Gb as vg,x7 as vh,In as vi,Yh as vj,Dme as vk,CT as vl,jl as vm,jW as vn,KW as vo,kk as vp,Bk as vq,Q_ as vr,qV as vs,Hse as vt,GP as vu,Hn as vv,vs as vw,g6 as vx,Dne as vy,Mge as vz,Rle as w,Ige as w0,Lce as w1,_L as w2,wce as w3,hce as w4,Dge as w5,L7 as w6,Cn as w7,T7 as w8,Cge as w9,Ya as wA,hte as wB,Dee as wC,S0 as wD,wge as wE,Yn as wF,wy as wG,QH as wH,vle as wI,Ile as wJ,Ole as wK,oW as wL,Sue as wM,A$ as wN,bde as wO,Bde as wP,Hde as wQ,xde as wR,bme as wS,Nge as wT,R7 as wa,Vj as wb,ca as wc,Wj as wd,Zae as we,Rf as wf,YJ as wg,d6 as wh,u6 as wi,CX as wj,eM as wk,rq as wl,$ne as wm,O7 as wn,Ay as wo,ree as wp,hr as wq,P7 as wr,D7 as ws,M7 as wt,Fj as wu,_n as wv,Wa as ww,Il as wx,lc as wy,dte as wz,Qq as x,wD as y,vD as z};
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.