<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">import{_ as m}from"./LotteryResultItem.CmtRWZ7I.js";import{d as p}from"./states.UHbo47K_.js";import{_ as f,G as g,o as k,I as y,N as D}from"./entry.Chh_kENP.js";import{x as h}from"./xiao.Cq12Mehg.js";const w={data(){return{data:{currentResult:{}},stateChangeLottery:p(),selectLotteryId:g.configs.lotteryId??2,socketData:{1:{},2:{},4:{},"1kj":{},"2kj":{},"4kj":{},date:new Date().toLocaleString().slice(0,10).replace(",",""),new:!0}}},mounted(){this.socket()},methods:{async getKaijang(){var t=g.configs.kjHosts??[];typeof t=="object"&amp;&amp;Math.floor(Math.random()*Object.keys(t).length);var o=g.configs.lotteryId;const l="lotteryId",a=localStorage.getItem(l);a?o=parseInt(a):localStorage.setItem(l,o),this.selectLotteryId=o,g.configs.lotteryId=o;var i="https://tkapi3.352722.com/app/loto/"+o+"?"+new Date().getTime();const s=(await(await fetch(i)).json()).k.split(",");this.handleKjData(s,o)},handleKjData(t,o,l){if(o!=this.selectLotteryId)return;var a=new Date().getHours(),i=new Date().getMinutes(),r=new Date;a&lt;21&amp;&amp;i&lt;30&amp;&amp;(r=r.setDate(r.getDate()-1),r=new Date(r));var e=t[8].substr(0,4);let s=[t[1],t[2],t[3],t[4],t[5],t[6],t[7]];this.data.currentResult.qishu=t[0].substr(-3),this.data.currentResult.qishuText=e+""+t[0].substr(-3),this.data.currentResult.nextQishu=t[8].substr(-3);var c=e+""+t[8].substr(-3);this.data.currentResult.nextQishuText=c,s=s.map(u=&gt;({color:h.getColor(u,!1),number:u,shengXiao:h.getXiao(Number(u),l),wuXing:h.getFive(Number(u),l),wuXingClass:h.getFiveClass(Number(u),l)})),this.data.currentResult.numberList=s;var n="";if(o==3&amp;&amp;(n=`ç¬¬${c}æœŸ ${e}/${t[9]}/${t[10]} ${t[12]} æ˜ŸæœŸ${t[11]}`),o==2){var d=t[12].split(":");const u=d[1]?`${d[0]}ç‚¹${d[1]}åˆ†`:d+"åˆ†";n=`ç¬¬${c}æœŸ ${e}/${t[9]}/${t[10]} ${u} æ˜ŸæœŸ${t[11]}`}o==1&amp;&amp;(this.data.currentResult.nextQishuText=this.data.currentResult.nextQishu,n=`ç¬¬${this.data.currentResult.nextQishu}æœŸ ${e}/${t[9]}/${t[10]} ${t[12]} æ˜ŸæœŸ${t[11]}`),this.data.currentResult.nextQishuFullText=n},socket(){var t=this,o=new Date;let l=o.getFullYear(),a=o.getMonth()+1,i=o.getDate(),r=h.getYearLunar(l,a,i);var e=new io("wss://ws.edgoapp.com",{transports:["websocket"]});e.on("notification",function(s){t.socketData=s,t.showData()}),e.on("amloto",function(s){let c=2;t.socketData.new=!0,t.socketData[c]=s,t.handleKjData(s,c,r)}),e.on("hkloto",function(s){let c=1;t.socketData.new=!0,t.socketData[c]=s;let n=t.socketData[`${c}kj`].k.split(",");n[1]=s[1],n[2]=s[2],n[3]=s[3],n[4]=s[4],n[5]=s[5],n[6]=s[6],n[7]=s[7],t.handleKjData(n,c,r)})},showData(){var t=g.configs.lotteryId;const o="lotteryId",l=localStorage.getItem(o);l?t=parseInt(l):localStorage.setItem(o,t),this.selectLotteryId=t,g.configs.lotteryId=t;let a=this.socketData[`${t}`],i=new Date().getFullYear();if(a.hasOwnProperty("p1")){let e=a.day.split("-");i=h.getYearLunar(e[0],e[1],e[2]),a=this.socketData[`${t}kj`].k.split(",")}else if(this.selectLotteryId==1){let e=this.socketData[`${t}kj`].k.split(",");e[1]=a[1],e[2]=a[2],e[3]=a[3],e[4]=a[4],e[5]=a[5],e[6]=a[6],e[7]=a[7];var r=new Date;let s=r.getFullYear(),c=r.getMonth()+1,n=r.getDate();i=h.getYearLunar(s,c,n),a=e}this.handleKjData(a,t,i)}},watch:{stateChangeLottery(t){t&amp;&amp;(this.showData(),this.stateChangeLottery=!this.stateChangeLottery)}}};function $(t,o,l,a,i,r){const e=m;return i.data?(k(),y(e,{key:0,isCurrent:!0,data:i.data.currentResult},null,8,["data"])):D("",!0)}const v=f(w,[["render",$]]);export{v as _};
</pre></body></html>